]>
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 | |
649 | LIB_PTHREAD | |
a5f46f6a | 650 | UDEV_RULES |
ec6a6fbe AK |
651 | STATIC_LINK |
652 | STATICDIR | |
653 | SNAPSHOTS | |
654 | POOL | |
655 | PKGCONFIG | |
656 | OWNER | |
657 | MIRRORS | |
658 | LVM_RELEASE_DATE | |
659 | LVM_RELEASE | |
660 | LVM_PATCHLEVEL | |
661 | LVM_MINOR | |
662 | LVM_MAJOR | |
bf456146 | 663 | LVM_LIBAPI |
ec6a6fbe | 664 | LVM_VERSION |
ec6a6fbe AK |
665 | LVM1_FALLBACK |
666 | LVM1 | |
667 | LOCALEDIR | |
668 | LIB_SUFFIX | |
669 | LDDEPS | |
670 | JOBS | |
671 | INTL_PACKAGE | |
672 | INTL | |
673 | HAVE_SELINUX | |
674 | HAVE_REALTIME | |
675 | HAVE_LIBDL | |
676 | GROUP | |
677 | FSADM | |
678 | DM_LIB_PATCHLEVEL | |
679 | DM_LIB_VERSION | |
680 | DM_IOCTLS | |
681 | DM_DEVICE_UID | |
682 | DM_DEVICE_MODE | |
683 | DM_DEVICE_GID | |
684 | DM_COMPAT | |
685 | DMEVENTD | |
686 | DEVMAPPER | |
687 | DEBUG | |
688 | COPTIMISE_FLAG | |
e2997b73 | 689 | CONFDIR |
ec6a6fbe AK |
690 | CMDLIB |
691 | CLVMD | |
692 | CLUSTER | |
693 | CLDWHOLEARCHIVE | |
694 | CLDNOWHOLEARCHIVE | |
695 | CLDFLAGS | |
696 | BUILD_DMEVENTD | |
572fefeb | 697 | APPLIB |
ec6a6fbe AK |
698 | MODPROBE_CMD |
699 | MSGFMT | |
700 | LVM2CMD_LIB | |
572fefeb | 701 | LVM2APP_LIB |
ec6a6fbe AK |
702 | GENHTML |
703 | LCOV | |
e2997b73 AK |
704 | CPG_LIBS |
705 | CPG_CFLAGS | |
706 | CONFDB_LIBS | |
707 | CONFDB_CFLAGS | |
708 | QUORUM_LIBS | |
709 | QUORUM_CFLAGS | |
710 | PKG_CONFIG | |
ec6a6fbe AK |
711 | POW_LIB |
712 | LIBOBJS | |
713 | ALLOCA | |
714 | CSCOPE_CMD | |
715 | CFLOW_CMD | |
716 | RANLIB | |
717 | MKDIR_P | |
718 | SET_MAKE | |
719 | LN_S | |
720 | INSTALL_DATA | |
721 | INSTALL_SCRIPT | |
722 | INSTALL_PROGRAM | |
723 | EGREP | |
724 | GREP | |
725 | CPP | |
726 | OBJEXT | |
727 | EXEEXT | |
728 | ac_ct_CC | |
729 | CPPFLAGS | |
730 | LDFLAGS | |
731 | CFLAGS | |
732 | CC | |
733 | AWK | |
734 | SED | |
735 | target_os | |
736 | target_vendor | |
737 | target_cpu | |
738 | target | |
739 | host_os | |
740 | host_vendor | |
741 | host_cpu | |
742 | host | |
743 | build_os | |
744 | build_vendor | |
745 | build_cpu | |
746 | build | |
747 | target_alias | |
748 | host_alias | |
749 | build_alias | |
750 | LIBS | |
751 | ECHO_T | |
752 | ECHO_N | |
753 | ECHO_C | |
754 | DEFS | |
755 | mandir | |
756 | localedir | |
757 | libdir | |
758 | psdir | |
759 | pdfdir | |
760 | dvidir | |
761 | htmldir | |
762 | infodir | |
763 | docdir | |
764 | oldincludedir | |
765 | includedir | |
766 | localstatedir | |
767 | sharedstatedir | |
768 | sysconfdir | |
769 | datadir | |
770 | datarootdir | |
771 | libexecdir | |
772 | sbindir | |
773 | bindir | |
774 | program_transform_name | |
775 | prefix | |
776 | exec_prefix | |
777 | PACKAGE_BUGREPORT | |
778 | PACKAGE_STRING | |
779 | PACKAGE_VERSION | |
780 | PACKAGE_TARNAME | |
781 | PACKAGE_NAME | |
782 | PATH_SEPARATOR | |
783 | SHELL' | |
ad6254c5 | 784 | ac_subst_files='' |
ec6a6fbe AK |
785 | ac_user_opts=' |
786 | enable_option_checking | |
787 | enable_static_link | |
788 | with_user | |
789 | with_group | |
790 | with_device_uid | |
791 | with_device_gid | |
792 | with_device_mode | |
793 | enable_lvm1_fallback | |
794 | with_lvm1 | |
795 | with_pool | |
796 | with_cluster | |
797 | with_snapshots | |
798 | with_mirrors | |
799 | enable_readline | |
800 | enable_realtime | |
801 | with_clvmd | |
802 | enable_debug | |
803 | with_optimisation | |
804 | enable_profiling | |
805 | enable_devmapper | |
a5f46f6a AK |
806 | enable_udev_sync |
807 | enable_udev_rules | |
ec6a6fbe AK |
808 | enable_compat |
809 | enable_ioctl | |
810 | enable_o_direct | |
572fefeb | 811 | enable_applib |
ec6a6fbe AK |
812 | enable_cmdlib |
813 | enable_pkgconfig | |
814 | enable_fsadm | |
815 | enable_dmeventd | |
816 | enable_selinux | |
817 | enable_nls | |
818 | with_localedir | |
819 | with_confdir | |
820 | with_staticdir | |
821 | with_usrlibdir | |
822 | with_usrsbindir | |
a5f46f6a | 823 | with_udev_prefix |
ec6a6fbe AK |
824 | with_dmeventd_pidfile |
825 | with_dmeventd_path | |
826 | with_interface | |
827 | ' | |
7a197a62 AK |
828 | ac_precious_vars='build_alias |
829 | host_alias | |
830 | target_alias | |
831 | CC | |
832 | CFLAGS | |
833 | LDFLAGS | |
25fbec5b | 834 | LIBS |
7a197a62 | 835 | CPPFLAGS |
e2997b73 AK |
836 | CPP |
837 | PKG_CONFIG | |
838 | QUORUM_CFLAGS | |
839 | QUORUM_LIBS | |
840 | CONFDB_CFLAGS | |
841 | CONFDB_LIBS | |
842 | CPG_CFLAGS | |
843 | CPG_LIBS' | |
7a197a62 | 844 | |
795ca3e5 AK |
845 | |
846 | # Initialize some variables set by options. | |
ad6254c5 AK |
847 | ac_init_help= |
848 | ac_init_version=false | |
ec6a6fbe AK |
849 | ac_unrecognized_opts= |
850 | ac_unrecognized_sep= | |
795ca3e5 AK |
851 | # The variables have the same names as the options, with |
852 | # dashes changed to underlines. | |
ad6254c5 | 853 | cache_file=/dev/null |
795ca3e5 | 854 | exec_prefix=NONE |
795ca3e5 | 855 | no_create= |
795ca3e5 AK |
856 | no_recursion= |
857 | prefix=NONE | |
858 | program_prefix=NONE | |
859 | program_suffix=NONE | |
860 | program_transform_name=s,x,x, | |
861 | silent= | |
862 | site= | |
863 | srcdir= | |
795ca3e5 AK |
864 | verbose= |
865 | x_includes=NONE | |
866 | x_libraries=NONE | |
ad6254c5 AK |
867 | |
868 | # Installation directory options. | |
869 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
870 | # and all the variables that are supposed to be based on exec_prefix | |
871 | # by default will actually change. | |
872 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
7a197a62 | 873 | # (The list follows the same order as the GNU Coding Standards.) |
795ca3e5 AK |
874 | bindir='${exec_prefix}/bin' |
875 | sbindir='${exec_prefix}/sbin' | |
876 | libexecdir='${exec_prefix}/libexec' | |
7a197a62 AK |
877 | datarootdir='${prefix}/share' |
878 | datadir='${datarootdir}' | |
795ca3e5 AK |
879 | sysconfdir='${prefix}/etc' |
880 | sharedstatedir='${prefix}/com' | |
881 | localstatedir='${prefix}/var' | |
795ca3e5 AK |
882 | includedir='${prefix}/include' |
883 | oldincludedir='/usr/include' | |
7a197a62 AK |
884 | docdir='${datarootdir}/doc/${PACKAGE}' |
885 | infodir='${datarootdir}/info' | |
886 | htmldir='${docdir}' | |
887 | dvidir='${docdir}' | |
888 | pdfdir='${docdir}' | |
889 | psdir='${docdir}' | |
890 | libdir='${exec_prefix}/lib' | |
891 | localedir='${datarootdir}/locale' | |
892 | mandir='${datarootdir}/man' | |
795ca3e5 | 893 | |
795ca3e5 | 894 | ac_prev= |
7a197a62 | 895 | ac_dashdash= |
795ca3e5 AK |
896 | for ac_option |
897 | do | |
795ca3e5 AK |
898 | # If the previous option needs an argument, assign it. |
899 | if test -n "$ac_prev"; then | |
7a197a62 | 900 | eval $ac_prev=\$ac_option |
795ca3e5 AK |
901 | ac_prev= |
902 | continue | |
903 | fi | |
904 | ||
7a197a62 AK |
905 | case $ac_option in |
906 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
907 | *) ac_optarg=yes ;; | |
908 | esac | |
795ca3e5 AK |
909 | |
910 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
911 | ||
7a197a62 AK |
912 | case $ac_dashdash$ac_option in |
913 | --) | |
914 | ac_dashdash=yes ;; | |
795ca3e5 AK |
915 | |
916 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
917 | ac_prev=bindir ;; | |
918 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
ad6254c5 | 919 | bindir=$ac_optarg ;; |
795ca3e5 AK |
920 | |
921 | -build | --build | --buil | --bui | --bu) | |
ad6254c5 | 922 | ac_prev=build_alias ;; |
795ca3e5 | 923 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
ad6254c5 | 924 | build_alias=$ac_optarg ;; |
795ca3e5 AK |
925 | |
926 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
927 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
928 | ac_prev=cache_file ;; | |
929 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
930 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
ad6254c5 AK |
931 | cache_file=$ac_optarg ;; |
932 | ||
933 | --config-cache | -C) | |
934 | cache_file=config.cache ;; | |
795ca3e5 | 935 | |
7a197a62 | 936 | -datadir | --datadir | --datadi | --datad) |
795ca3e5 | 937 | ac_prev=datadir ;; |
7a197a62 | 938 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
ad6254c5 | 939 | datadir=$ac_optarg ;; |
795ca3e5 | 940 | |
7a197a62 AK |
941 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
942 | | --dataroo | --dataro | --datar) | |
943 | ac_prev=datarootdir ;; | |
944 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
945 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
946 | datarootdir=$ac_optarg ;; | |
947 | ||
795ca3e5 | 948 | -disable-* | --disable-*) |
ec6a6fbe | 949 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
795ca3e5 | 950 | # Reject names that are not valid shell variable names. |
ec6a6fbe AK |
951 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
952 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 | |
ad6254c5 | 953 | { (exit 1); exit 1; }; } |
ec6a6fbe AK |
954 | ac_useropt_orig=$ac_useropt |
955 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
956 | case $ac_user_opts in | |
957 | *" | |
958 | "enable_$ac_useropt" | |
959 | "*) ;; | |
960 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
961 | ac_unrecognized_sep=', ';; | |
962 | esac | |
963 | eval enable_$ac_useropt=no ;; | |
7a197a62 AK |
964 | |
965 | -docdir | --docdir | --docdi | --doc | --do) | |
966 | ac_prev=docdir ;; | |
967 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
968 | docdir=$ac_optarg ;; | |
969 | ||
970 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
971 | ac_prev=dvidir ;; | |
972 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
973 | dvidir=$ac_optarg ;; | |
795ca3e5 AK |
974 | |
975 | -enable-* | --enable-*) | |
ec6a6fbe | 976 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
795ca3e5 | 977 | # Reject names that are not valid shell variable names. |
ec6a6fbe AK |
978 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
979 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 | |
ad6254c5 | 980 | { (exit 1); exit 1; }; } |
ec6a6fbe AK |
981 | ac_useropt_orig=$ac_useropt |
982 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
983 | case $ac_user_opts in | |
984 | *" | |
985 | "enable_$ac_useropt" | |
986 | "*) ;; | |
987 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
988 | ac_unrecognized_sep=', ';; | |
989 | esac | |
990 | eval enable_$ac_useropt=\$ac_optarg ;; | |
795ca3e5 AK |
991 | |
992 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
993 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
994 | | --exec | --exe | --ex) | |
995 | ac_prev=exec_prefix ;; | |
996 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
997 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
998 | | --exec=* | --exe=* | --ex=*) | |
ad6254c5 | 999 | exec_prefix=$ac_optarg ;; |
795ca3e5 AK |
1000 | |
1001 | -gas | --gas | --ga | --g) | |
1002 | # Obsolete; use --with-gas. | |
1003 | with_gas=yes ;; | |
1004 | ||
ad6254c5 AK |
1005 | -help | --help | --hel | --he | -h) |
1006 | ac_init_help=long ;; | |
1007 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1008 | ac_init_help=recursive ;; | |
1009 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1010 | ac_init_help=short ;; | |
795ca3e5 AK |
1011 | |
1012 | -host | --host | --hos | --ho) | |
ad6254c5 | 1013 | ac_prev=host_alias ;; |
795ca3e5 | 1014 | -host=* | --host=* | --hos=* | --ho=*) |
ad6254c5 | 1015 | host_alias=$ac_optarg ;; |
795ca3e5 | 1016 | |
7a197a62 AK |
1017 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1018 | ac_prev=htmldir ;; | |
1019 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1020 | | --ht=*) | |
1021 | htmldir=$ac_optarg ;; | |
1022 | ||
795ca3e5 AK |
1023 | -includedir | --includedir | --includedi | --included | --include \ |
1024 | | --includ | --inclu | --incl | --inc) | |
1025 | ac_prev=includedir ;; | |
1026 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1027 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
ad6254c5 | 1028 | includedir=$ac_optarg ;; |
795ca3e5 AK |
1029 | |
1030 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1031 | ac_prev=infodir ;; | |
1032 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
ad6254c5 | 1033 | infodir=$ac_optarg ;; |
795ca3e5 AK |
1034 | |
1035 | -libdir | --libdir | --libdi | --libd) | |
1036 | ac_prev=libdir ;; | |
1037 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
ad6254c5 | 1038 | libdir=$ac_optarg ;; |
795ca3e5 AK |
1039 | |
1040 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1041 | | --libexe | --libex | --libe) | |
1042 | ac_prev=libexecdir ;; | |
1043 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1044 | | --libexe=* | --libex=* | --libe=*) | |
ad6254c5 | 1045 | libexecdir=$ac_optarg ;; |
795ca3e5 | 1046 | |
7a197a62 AK |
1047 | -localedir | --localedir | --localedi | --localed | --locale) |
1048 | ac_prev=localedir ;; | |
1049 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1050 | localedir=$ac_optarg ;; | |
1051 | ||
795ca3e5 | 1052 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
7a197a62 | 1053 | | --localstate | --localstat | --localsta | --localst | --locals) |
795ca3e5 AK |
1054 | ac_prev=localstatedir ;; |
1055 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
7a197a62 | 1056 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
ad6254c5 | 1057 | localstatedir=$ac_optarg ;; |
795ca3e5 AK |
1058 | |
1059 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1060 | ac_prev=mandir ;; | |
1061 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
ad6254c5 | 1062 | mandir=$ac_optarg ;; |
795ca3e5 AK |
1063 | |
1064 | -nfp | --nfp | --nf) | |
1065 | # Obsolete; use --without-fp. | |
1066 | with_fp=no ;; | |
1067 | ||
1068 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
ad6254c5 | 1069 | | --no-cr | --no-c | -n) |
795ca3e5 AK |
1070 | no_create=yes ;; |
1071 | ||
1072 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1073 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1074 | no_recursion=yes ;; | |
1075 | ||
1076 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1077 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1078 | | --oldin | --oldi | --old | --ol | --o) | |
1079 | ac_prev=oldincludedir ;; | |
1080 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1081 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1082 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
ad6254c5 | 1083 | oldincludedir=$ac_optarg ;; |
795ca3e5 AK |
1084 | |
1085 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1086 | ac_prev=prefix ;; | |
1087 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
ad6254c5 | 1088 | prefix=$ac_optarg ;; |
795ca3e5 AK |
1089 | |
1090 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1091 | | --program-pre | --program-pr | --program-p) | |
1092 | ac_prev=program_prefix ;; | |
1093 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1094 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
ad6254c5 | 1095 | program_prefix=$ac_optarg ;; |
795ca3e5 AK |
1096 | |
1097 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1098 | | --program-suf | --program-su | --program-s) | |
1099 | ac_prev=program_suffix ;; | |
1100 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1101 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
ad6254c5 | 1102 | program_suffix=$ac_optarg ;; |
795ca3e5 AK |
1103 | |
1104 | -program-transform-name | --program-transform-name \ | |
1105 | | --program-transform-nam | --program-transform-na \ | |
1106 | | --program-transform-n | --program-transform- \ | |
1107 | | --program-transform | --program-transfor \ | |
1108 | | --program-transfo | --program-transf \ | |
1109 | | --program-trans | --program-tran \ | |
1110 | | --progr-tra | --program-tr | --program-t) | |
1111 | ac_prev=program_transform_name ;; | |
1112 | -program-transform-name=* | --program-transform-name=* \ | |
1113 | | --program-transform-nam=* | --program-transform-na=* \ | |
1114 | | --program-transform-n=* | --program-transform-=* \ | |
1115 | | --program-transform=* | --program-transfor=* \ | |
1116 | | --program-transfo=* | --program-transf=* \ | |
1117 | | --program-trans=* | --program-tran=* \ | |
1118 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
ad6254c5 | 1119 | program_transform_name=$ac_optarg ;; |
795ca3e5 | 1120 | |
7a197a62 AK |
1121 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1122 | ac_prev=pdfdir ;; | |
1123 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1124 | pdfdir=$ac_optarg ;; | |
1125 | ||
1126 | -psdir | --psdir | --psdi | --psd | --ps) | |
1127 | ac_prev=psdir ;; | |
1128 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1129 | psdir=$ac_optarg ;; | |
1130 | ||
795ca3e5 AK |
1131 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1132 | | -silent | --silent | --silen | --sile | --sil) | |
1133 | silent=yes ;; | |
1134 | ||
1135 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1136 | ac_prev=sbindir ;; | |
1137 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1138 | | --sbi=* | --sb=*) | |
ad6254c5 | 1139 | sbindir=$ac_optarg ;; |
795ca3e5 AK |
1140 | |
1141 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1142 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1143 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1144 | | --sha | --sh) | |
1145 | ac_prev=sharedstatedir ;; | |
1146 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1147 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1148 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1149 | | --sha=* | --sh=*) | |
ad6254c5 | 1150 | sharedstatedir=$ac_optarg ;; |
795ca3e5 AK |
1151 | |
1152 | -site | --site | --sit) | |
1153 | ac_prev=site ;; | |
1154 | -site=* | --site=* | --sit=*) | |
ad6254c5 | 1155 | site=$ac_optarg ;; |
795ca3e5 AK |
1156 | |
1157 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1158 | ac_prev=srcdir ;; | |
1159 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
ad6254c5 | 1160 | srcdir=$ac_optarg ;; |
795ca3e5 AK |
1161 | |
1162 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1163 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1164 | ac_prev=sysconfdir ;; | |
1165 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1166 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
ad6254c5 | 1167 | sysconfdir=$ac_optarg ;; |
795ca3e5 AK |
1168 | |
1169 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
ad6254c5 | 1170 | ac_prev=target_alias ;; |
795ca3e5 | 1171 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
ad6254c5 | 1172 | target_alias=$ac_optarg ;; |
795ca3e5 AK |
1173 | |
1174 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1175 | verbose=yes ;; | |
1176 | ||
ad6254c5 AK |
1177 | -version | --version | --versio | --versi | --vers | -V) |
1178 | ac_init_version=: ;; | |
795ca3e5 AK |
1179 | |
1180 | -with-* | --with-*) | |
ec6a6fbe | 1181 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
795ca3e5 | 1182 | # Reject names that are not valid shell variable names. |
ec6a6fbe AK |
1183 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1184 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 | |
ad6254c5 | 1185 | { (exit 1); exit 1; }; } |
ec6a6fbe AK |
1186 | ac_useropt_orig=$ac_useropt |
1187 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1188 | case $ac_user_opts in | |
1189 | *" | |
1190 | "with_$ac_useropt" | |
1191 | "*) ;; | |
1192 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1193 | ac_unrecognized_sep=', ';; | |
1194 | esac | |
1195 | eval with_$ac_useropt=\$ac_optarg ;; | |
795ca3e5 AK |
1196 | |
1197 | -without-* | --without-*) | |
ec6a6fbe | 1198 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
795ca3e5 | 1199 | # Reject names that are not valid shell variable names. |
ec6a6fbe AK |
1200 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1201 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 | |
ad6254c5 | 1202 | { (exit 1); exit 1; }; } |
ec6a6fbe AK |
1203 | ac_useropt_orig=$ac_useropt |
1204 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1205 | case $ac_user_opts in | |
1206 | *" | |
1207 | "with_$ac_useropt" | |
1208 | "*) ;; | |
1209 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1210 | ac_unrecognized_sep=', ';; | |
1211 | esac | |
1212 | eval with_$ac_useropt=no ;; | |
795ca3e5 AK |
1213 | |
1214 | --x) | |
1215 | # Obsolete; use --with-x. | |
1216 | with_x=yes ;; | |
1217 | ||
1218 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1219 | | --x-incl | --x-inc | --x-in | --x-i) | |
1220 | ac_prev=x_includes ;; | |
1221 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1222 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
ad6254c5 | 1223 | x_includes=$ac_optarg ;; |
795ca3e5 AK |
1224 | |
1225 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1226 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1227 | ac_prev=x_libraries ;; | |
1228 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1229 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
ad6254c5 | 1230 | x_libraries=$ac_optarg ;; |
795ca3e5 | 1231 | |
ec6a6fbe | 1232 | -*) { $as_echo "$as_me: error: unrecognized option: $ac_option |
ad6254c5 AK |
1233 | Try \`$0 --help' for more information." >&2 |
1234 | { (exit 1); exit 1; }; } | |
795ca3e5 AK |
1235 | ;; |
1236 | ||
ad6254c5 AK |
1237 | *=*) |
1238 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1239 | # Reject names that are not valid shell variable names. | |
1240 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
ec6a6fbe | 1241 | { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
ad6254c5 | 1242 | { (exit 1); exit 1; }; } |
7a197a62 | 1243 | eval $ac_envvar=\$ac_optarg |
ad6254c5 AK |
1244 | export $ac_envvar ;; |
1245 | ||
795ca3e5 | 1246 | *) |
ad6254c5 | 1247 | # FIXME: should be removed in autoconf 3.0. |
ec6a6fbe | 1248 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
ad6254c5 | 1249 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
ec6a6fbe | 1250 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
ad6254c5 | 1251 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
795ca3e5 AK |
1252 | ;; |
1253 | ||
1254 | esac | |
1255 | done | |
1256 | ||
1257 | if test -n "$ac_prev"; then | |
ad6254c5 | 1258 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
ec6a6fbe | 1259 | { $as_echo "$as_me: error: missing argument to $ac_option" >&2 |
ad6254c5 | 1260 | { (exit 1); exit 1; }; } |
795ca3e5 | 1261 | fi |
795ca3e5 | 1262 | |
ec6a6fbe AK |
1263 | if test -n "$ac_unrecognized_opts"; then |
1264 | case $enable_option_checking in | |
1265 | no) ;; | |
1266 | fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 | |
1267 | { (exit 1); exit 1; }; } ;; | |
1268 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
1269 | esac | |
1270 | fi | |
1271 | ||
1272 | # Check all directory arguments for consistency. | |
7a197a62 AK |
1273 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1274 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1275 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1276 | libdir localedir mandir | |
795ca3e5 | 1277 | do |
7a197a62 | 1278 | eval ac_val=\$$ac_var |
ec6a6fbe AK |
1279 | # Remove trailing slashes. |
1280 | case $ac_val in | |
1281 | */ ) | |
1282 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1283 | eval $ac_var=\$ac_val;; | |
1284 | esac | |
1285 | # Be sure to have absolute directory names. | |
ad6254c5 | 1286 | case $ac_val in |
7a197a62 AK |
1287 | [\\/$]* | ?:[\\/]* ) continue;; |
1288 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
795ca3e5 | 1289 | esac |
ec6a6fbe | 1290 | { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
7a197a62 | 1291 | { (exit 1); exit 1; }; } |
795ca3e5 AK |
1292 | done |
1293 | ||
ad6254c5 AK |
1294 | # There might be people who depend on the old broken behavior: `$host' |
1295 | # used to hold the argument of --host etc. | |
1296 | # FIXME: To remove some day. | |
1297 | build=$build_alias | |
1298 | host=$host_alias | |
1299 | target=$target_alias | |
1300 | ||
1301 | # FIXME: To remove some day. | |
1302 | if test "x$host_alias" != x; then | |
1303 | if test "x$build_alias" = x; then | |
1304 | cross_compiling=maybe | |
ec6a6fbe | 1305 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
ad6254c5 AK |
1306 | If a cross compiler is detected then cross compile mode will be used." >&2 |
1307 | elif test "x$build_alias" != "x$host_alias"; then | |
1308 | cross_compiling=yes | |
1309 | fi | |
1310 | fi | |
8106cdd5 | 1311 | |
ad6254c5 AK |
1312 | ac_tool_prefix= |
1313 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1314 | ||
1315 | test "$silent" = yes && exec 6>/dev/null | |
795ca3e5 | 1316 | |
795ca3e5 | 1317 | |
7a197a62 AK |
1318 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1319 | ac_ls_di=`ls -di .` && | |
1320 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
ec6a6fbe | 1321 | { $as_echo "$as_me: error: working directory cannot be determined" >&2 |
7a197a62 AK |
1322 | { (exit 1); exit 1; }; } |
1323 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
ec6a6fbe | 1324 | { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 |
7a197a62 AK |
1325 | { (exit 1); exit 1; }; } |
1326 | ||
1327 | ||
795ca3e5 AK |
1328 | # Find the source files, if location was not specified. |
1329 | if test -z "$srcdir"; then | |
1330 | ac_srcdir_defaulted=yes | |
7a197a62 | 1331 | # Try the directory containing this script, then the parent directory. |
ec6a6fbe AK |
1332 | ac_confdir=`$as_dirname -- "$as_myself" || |
1333 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1334 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1335 | X"$as_myself" : 'X\(//\)$' \| \ | |
1336 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1337 | $as_echo X"$as_myself" | | |
7a197a62 AK |
1338 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1339 | s//\1/ | |
1340 | q | |
1341 | } | |
1342 | /^X\(\/\/\)[^/].*/{ | |
1343 | s//\1/ | |
1344 | q | |
1345 | } | |
1346 | /^X\(\/\/\)$/{ | |
1347 | s//\1/ | |
1348 | q | |
1349 | } | |
1350 | /^X\(\/\).*/{ | |
1351 | s//\1/ | |
1352 | q | |
1353 | } | |
1354 | s/.*/./; q'` | |
795ca3e5 | 1355 | srcdir=$ac_confdir |
7a197a62 | 1356 | if test ! -r "$srcdir/$ac_unique_file"; then |
795ca3e5 AK |
1357 | srcdir=.. |
1358 | fi | |
1359 | else | |
1360 | ac_srcdir_defaulted=no | |
1361 | fi | |
7a197a62 AK |
1362 | if test ! -r "$srcdir/$ac_unique_file"; then |
1363 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
ec6a6fbe | 1364 | { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
ad6254c5 | 1365 | { (exit 1); exit 1; }; } |
795ca3e5 | 1366 | fi |
7a197a62 AK |
1367 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1368 | ac_abs_confdir=`( | |
ec6a6fbe | 1369 | cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 |
ad6254c5 | 1370 | { (exit 1); exit 1; }; } |
7a197a62 AK |
1371 | pwd)` |
1372 | # When building in place, set srcdir=. | |
1373 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1374 | srcdir=. | |
1375 | fi | |
1376 | # Remove unnecessary trailing slashes from srcdir. | |
1377 | # Double slashes in file names in object file debugging info | |
1378 | # mess up M-x gdb in Emacs. | |
1379 | case $srcdir in | |
1380 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1381 | esac | |
1382 | for ac_var in $ac_precious_vars; do | |
1383 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1384 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1385 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1386 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1387 | done | |
ad6254c5 AK |
1388 | |
1389 | # | |
1390 | # Report the --help message. | |
1391 | # | |
1392 | if test "$ac_init_help" = "long"; then | |
1393 | # Omit some internal or obsolete options to make the list less imposing. | |
1394 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1395 | cat <<_ACEOF | |
1396 | \`configure' configures this package to adapt to many kinds of systems. | |
1397 | ||
1398 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1399 | ||
1400 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1401 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1402 | ||
1403 | Defaults for the options are specified in brackets. | |
1404 | ||
1405 | Configuration: | |
1406 | -h, --help display this help and exit | |
1407 | --help=short display options specific to this package | |
1408 | --help=recursive display the short help of all the included packages | |
1409 | -V, --version display version information and exit | |
1410 | -q, --quiet, --silent do not print \`checking...' messages | |
1411 | --cache-file=FILE cache test results in FILE [disabled] | |
1412 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1413 | -n, --no-create do not create output files | |
1414 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1415 | ||
ad6254c5 AK |
1416 | Installation directories: |
1417 | --prefix=PREFIX install architecture-independent files in PREFIX | |
ec6a6fbe | 1418 | [$ac_default_prefix] |
ad6254c5 | 1419 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
ec6a6fbe | 1420 | [PREFIX] |
ad6254c5 AK |
1421 | |
1422 | By default, \`make install' will install all the files in | |
1423 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1424 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1425 | for instance \`--prefix=\$HOME'. | |
1426 | ||
1427 | For better control, use the options below. | |
1428 | ||
1429 | Fine tuning of the installation directories: | |
ec6a6fbe AK |
1430 | --bindir=DIR user executables [EPREFIX/bin] |
1431 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1432 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1433 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1434 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1435 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1436 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1437 | --includedir=DIR C header files [PREFIX/include] | |
1438 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1439 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1440 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1441 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1442 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1443 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1444 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1445 | --htmldir=DIR html documentation [DOCDIR] | |
1446 | --dvidir=DIR dvi documentation [DOCDIR] | |
1447 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1448 | --psdir=DIR ps documentation [DOCDIR] | |
ad6254c5 AK |
1449 | _ACEOF |
1450 | ||
1451 | cat <<\_ACEOF | |
1452 | ||
1453 | System types: | |
1454 | --build=BUILD configure for building on BUILD [guessed] | |
1455 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1456 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1457 | _ACEOF | |
1458 | fi | |
1459 | ||
1460 | if test -n "$ac_init_help"; then | |
1461 | ||
1462 | cat <<\_ACEOF | |
1463 | ||
1464 | Optional Features: | |
ec6a6fbe | 1465 | --disable-option-checking ignore unrecognized --enable/--with options |
ad6254c5 AK |
1466 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1467 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
9c961554 MB |
1468 | --enable-static_link Use this to link the tools to their libraries |
1469 | statically. Default is dynamic linking | |
ad6254c5 AK |
1470 | --enable-lvm1_fallback Use this to fall back and use LVM1 binaries if |
1471 | device-mapper is missing from the kernel | |
1b523347 | 1472 | --disable-readline Disable readline support |
3d978351 | 1473 | --disable-realtime Disable realtime clock support |
ad6254c5 | 1474 | --enable-debug Enable debugging |
5556819a | 1475 | --enable-profiling Gather gcov profiling data |
93bd259b | 1476 | --disable-devmapper Disable LVM2 device-mapper interaction |
a5f46f6a AK |
1477 | --enable-udev_sync Enable synchronisation with udev processing |
1478 | --enable-udev_rules Install rule files needed for udev synchronisation | |
93bd259b AK |
1479 | --enable-compat Enable support for old device-mapper versions |
1480 | --disable-driver Disable calls to device-mapper in the kernel | |
ad6254c5 | 1481 | --disable-o_direct Disable O_DIRECT |
572fefeb | 1482 | --enable-applib Build application library |
ad6254c5 | 1483 | --enable-cmdlib Build shared command library |
93bd259b | 1484 | --enable-pkgconfig Install pkgconfig support |
ad6254c5 | 1485 | --enable-fsadm Enable fsadm |
15d91f5a | 1486 | --enable-dmeventd Enable the device-mapper event daemon |
d0191583 | 1487 | --disable-selinux Disable selinux support |
ad6254c5 AK |
1488 | --enable-nls Enable Native Language Support |
1489 | ||
1490 | Optional Packages: | |
1491 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1492 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
d0191583 JM |
1493 | --with-user=USER Set the owner of installed files [USER=root] |
1494 | --with-group=GROUP Set the group owner of installed files [GROUP=root] | |
24bbc4d7 AK |
1495 | --with-device-uid=UID Set the owner used for new device nodes [UID=0] |
1496 | --with-device-gid=UID Set the group used for new device nodes [GID=0] | |
93bd259b | 1497 | --with-device-mode=MODE Set the mode used for new device nodes [MODE=0600] |
ad6254c5 AK |
1498 | --with-lvm1=TYPE LVM1 metadata support: internal/shared/none |
1499 | TYPE=internal | |
1500 | --with-pool=TYPE GFS pool read-only support: internal/shared/none | |
1501 | TYPE=internal | |
1502 | --with-cluster=TYPE Cluster LVM locking support: internal/shared/none | |
1503 | TYPE=internal | |
1504 | --with-snapshots=TYPE Snapshot support: internal/shared/none | |
1505 | TYPE=internal | |
1506 | --with-mirrors=TYPE Mirror support: internal/shared/none | |
1507 | TYPE=internal | |
ec6a6fbe | 1508 | --with-clvmd=TYPE Build cluster LVM Daemon: cman/gulm/corosync/none/all |
a266258f | 1509 | TYPE=none |
d0191583 JM |
1510 | --with-optimisation=OPT C optimisation flag [OPT=-O2] |
1511 | --with-localedir=DIR Translation files in DIR [PREFIX/share/locale] | |
a5f46f6a AK |
1512 | --with-confdir=DIR Configuration files in DIR [/etc] |
1513 | --with-staticdir=DIR Static binary in DIR [EPREFIX/sbin] | |
68f2de6d AK |
1514 | --with-usrlibdir=DIR |
1515 | --with-usrsbindir=DIR | |
a5f46f6a | 1516 | --with-udev-prefix=UPREFIX Install udev rule files in UPREFIX [EPREFIX] |
93bd259b | 1517 | --with-dmeventd-pidfile=PATH dmeventd pidfile [/var/run/dmeventd.pid] |
a5f46f6a | 1518 | --with-dmeventd-path=PATH dmeventd path [EPREFIX/sbin/dmeventd] |
93bd259b | 1519 | --with-interface=IFACE Choose kernel interface (ioctl) [ioctl] |
ad6254c5 AK |
1520 | |
1521 | Some influential environment variables: | |
1522 | CC C compiler command | |
1523 | CFLAGS C compiler flags | |
1524 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1525 | nonstandard directory <lib dir> | |
25fbec5b | 1526 | LIBS libraries to pass to the linker, e.g. -l<library> |
7a197a62 AK |
1527 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
1528 | you have headers in a nonstandard directory <include dir> | |
ad6254c5 | 1529 | CPP C preprocessor |
e2997b73 AK |
1530 | PKG_CONFIG path to pkg-config utility |
1531 | QUORUM_CFLAGS | |
1532 | C compiler flags for QUORUM, overriding pkg-config | |
1533 | QUORUM_LIBS linker flags for QUORUM, overriding pkg-config | |
1534 | CONFDB_CFLAGS | |
1535 | C compiler flags for CONFDB, overriding pkg-config | |
1536 | CONFDB_LIBS linker flags for CONFDB, overriding pkg-config | |
1537 | CPG_CFLAGS C compiler flags for CPG, overriding pkg-config | |
1538 | CPG_LIBS linker flags for CPG, overriding pkg-config | |
ad6254c5 AK |
1539 | |
1540 | Use these variables to override the choices made by `configure' or to help | |
1541 | it to find libraries and programs with nonstandard names/locations. | |
1542 | ||
1543 | _ACEOF | |
7a197a62 | 1544 | ac_status=$? |
ad6254c5 AK |
1545 | fi |
1546 | ||
1547 | if test "$ac_init_help" = "recursive"; then | |
1548 | # If there are subdirs, report their specific --help. | |
ad6254c5 | 1549 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
ec6a6fbe AK |
1550 | test -d "$ac_dir" || |
1551 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1552 | continue | |
ad6254c5 AK |
1553 | ac_builddir=. |
1554 | ||
7a197a62 AK |
1555 | case "$ac_dir" in |
1556 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1557 | *) | |
ec6a6fbe | 1558 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
7a197a62 | 1559 | # A ".." for each directory in $ac_dir_suffix. |
ec6a6fbe | 1560 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
7a197a62 AK |
1561 | case $ac_top_builddir_sub in |
1562 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1563 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1564 | esac ;; | |
1565 | esac | |
1566 | ac_abs_top_builddir=$ac_pwd | |
1567 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1568 | # for backward compatibility: | |
1569 | ac_top_builddir=$ac_top_build_prefix | |
ad6254c5 AK |
1570 | |
1571 | case $srcdir in | |
7a197a62 | 1572 | .) # We are building in place. |
ad6254c5 | 1573 | ac_srcdir=. |
7a197a62 AK |
1574 | ac_top_srcdir=$ac_top_builddir_sub |
1575 | ac_abs_top_srcdir=$ac_pwd ;; | |
1576 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
ad6254c5 | 1577 | ac_srcdir=$srcdir$ac_dir_suffix; |
7a197a62 AK |
1578 | ac_top_srcdir=$srcdir |
1579 | ac_abs_top_srcdir=$srcdir ;; | |
1580 | *) # Relative name. | |
1581 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1582 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1583 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
8a2fc586 | 1584 | esac |
7a197a62 AK |
1585 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1586 | ||
1587 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1588 | # Check for guested configure. | |
1589 | if test -f "$ac_srcdir/configure.gnu"; then | |
1590 | echo && | |
1591 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1592 | elif test -f "$ac_srcdir/configure"; then | |
1593 | echo && | |
1594 | $SHELL "$ac_srcdir/configure" --help=recursive | |
ad6254c5 | 1595 | else |
ec6a6fbe | 1596 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
7a197a62 AK |
1597 | fi || ac_status=$? |
1598 | cd "$ac_pwd" || { ac_status=$?; break; } | |
ad6254c5 AK |
1599 | done |
1600 | fi | |
1601 | ||
7a197a62 | 1602 | test -n "$ac_init_help" && exit $ac_status |
ad6254c5 AK |
1603 | if $ac_init_version; then |
1604 | cat <<\_ACEOF | |
7a197a62 | 1605 | configure |
ec6a6fbe | 1606 | generated by GNU Autoconf 2.63 |
ad6254c5 | 1607 | |
7a197a62 | 1608 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
ec6a6fbe | 1609 | 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
ad6254c5 AK |
1610 | This configure script is free software; the Free Software Foundation |
1611 | gives unlimited permission to copy, distribute and modify it. | |
1612 | _ACEOF | |
7a197a62 | 1613 | exit |
ad6254c5 | 1614 | fi |
7a197a62 | 1615 | cat >config.log <<_ACEOF |
ad6254c5 AK |
1616 | This file contains any messages produced by compilers while |
1617 | running configure, to aid debugging if configure makes a mistake. | |
1618 | ||
1619 | It was created by $as_me, which was | |
ec6a6fbe | 1620 | generated by GNU Autoconf 2.63. Invocation command line was |
ad6254c5 AK |
1621 | |
1622 | $ $0 $@ | |
1623 | ||
1624 | _ACEOF | |
7a197a62 | 1625 | exec 5>>config.log |
ad6254c5 AK |
1626 | { |
1627 | cat <<_ASUNAME | |
1628 | ## --------- ## | |
1629 | ## Platform. ## | |
1630 | ## --------- ## | |
1631 | ||
1632 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1633 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1634 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1635 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1636 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1637 | ||
1638 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1639 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1640 | ||
1641 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1642 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1643 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
7a197a62 | 1644 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
ad6254c5 AK |
1645 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1646 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1647 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1648 | ||
1649 | _ASUNAME | |
1650 | ||
1651 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1652 | for as_dir in $PATH | |
1653 | do | |
1654 | IFS=$as_save_IFS | |
1655 | test -z "$as_dir" && as_dir=. | |
ec6a6fbe | 1656 | $as_echo "PATH: $as_dir" |
ad6254c5 | 1657 | done |
7a197a62 | 1658 | IFS=$as_save_IFS |
ad6254c5 AK |
1659 | |
1660 | } >&5 | |
1661 | ||
1662 | cat >&5 <<_ACEOF | |
1663 | ||
1664 | ||
1665 | ## ----------- ## | |
1666 | ## Core tests. ## | |
1667 | ## ----------- ## | |
1668 | ||
1669 | _ACEOF | |
1670 | ||
1671 | ||
1672 | # Keep a trace of the command line. | |
1673 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1674 | # Strip out --silent because we don't want to record it for future runs. | |
1675 | # Also quote any args containing shell meta-characters. | |
1676 | # Make two passes to allow for proper duplicate-argument suppression. | |
1677 | ac_configure_args= | |
1678 | ac_configure_args0= | |
1679 | ac_configure_args1= | |
ad6254c5 AK |
1680 | ac_must_keep_next=false |
1681 | for ac_pass in 1 2 | |
1682 | do | |
1683 | for ac_arg | |
1684 | do | |
1685 | case $ac_arg in | |
1686 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1687 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1688 | | -silent | --silent | --silen | --sile | --sil) | |
1689 | continue ;; | |
7a197a62 | 1690 | *\'*) |
ec6a6fbe | 1691 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
ad6254c5 AK |
1692 | esac |
1693 | case $ac_pass in | |
1694 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1695 | 2) | |
1696 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1697 | if test $ac_must_keep_next = true; then | |
8a2fc586 | 1698 | ac_must_keep_next=false # Got value, back to normal. |
ad6254c5 | 1699 | else |
8a2fc586 AK |
1700 | case $ac_arg in |
1701 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1702 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1703 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1704 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1705 | case "$ac_configure_args0 " in | |
1706 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1707 | esac | |
1708 | ;; | |
1709 | -* ) ac_must_keep_next=true ;; | |
1710 | esac | |
ad6254c5 | 1711 | fi |
7a197a62 | 1712 | ac_configure_args="$ac_configure_args '$ac_arg'" |
ad6254c5 AK |
1713 | ;; |
1714 | esac | |
1715 | done | |
1716 | done | |
1717 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1718 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1719 | ||
1720 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1721 | # config.log. We remove comments because anyway the quotes in there | |
1722 | # would cause problems or look ugly. | |
7a197a62 AK |
1723 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1724 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
ad6254c5 AK |
1725 | trap 'exit_status=$? |
1726 | # Save into config.log some information that might help in debugging. | |
1727 | { | |
1728 | echo | |
1729 | ||
1730 | cat <<\_ASBOX | |
1731 | ## ---------------- ## | |
1732 | ## Cache variables. ## | |
1733 | ## ---------------- ## | |
1734 | _ASBOX | |
1735 | echo | |
1736 | # The following way of writing the cache mishandles newlines in values, | |
7a197a62 AK |
1737 | ( |
1738 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1739 | eval ac_val=\$$ac_var | |
1740 | case $ac_val in #( | |
1741 | *${as_nl}*) | |
1742 | case $ac_var in #( | |
ec6a6fbe AK |
1743 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 |
1744 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
7a197a62 AK |
1745 | esac |
1746 | case $ac_var in #( | |
1747 | _ | IFS | as_nl) ;; #( | |
ec6a6fbe | 1748 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
7a197a62 AK |
1749 | *) $as_unset $ac_var ;; |
1750 | esac ;; | |
1751 | esac | |
1752 | done | |
ad6254c5 | 1753 | (set) 2>&1 | |
7a197a62 AK |
1754 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
1755 | *${as_nl}ac_space=\ *) | |
ad6254c5 | 1756 | sed -n \ |
7a197a62 AK |
1757 | "s/'\''/'\''\\\\'\'''\''/g; |
1758 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
1759 | ;; #( | |
ad6254c5 | 1760 | *) |
7a197a62 | 1761 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
ad6254c5 | 1762 | ;; |
7a197a62 AK |
1763 | esac | |
1764 | sort | |
1765 | ) | |
ad6254c5 AK |
1766 | echo |
1767 | ||
1768 | cat <<\_ASBOX | |
1769 | ## ----------------- ## | |
1770 | ## Output variables. ## | |
1771 | ## ----------------- ## | |
1772 | _ASBOX | |
1773 | echo | |
1774 | for ac_var in $ac_subst_vars | |
1775 | do | |
7a197a62 AK |
1776 | eval ac_val=\$$ac_var |
1777 | case $ac_val in | |
ec6a6fbe | 1778 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
7a197a62 | 1779 | esac |
ec6a6fbe | 1780 | $as_echo "$ac_var='\''$ac_val'\''" |
ad6254c5 AK |
1781 | done | sort |
1782 | echo | |
1783 | ||
1784 | if test -n "$ac_subst_files"; then | |
1785 | cat <<\_ASBOX | |
7a197a62 AK |
1786 | ## ------------------- ## |
1787 | ## File substitutions. ## | |
1788 | ## ------------------- ## | |
ad6254c5 AK |
1789 | _ASBOX |
1790 | echo | |
1791 | for ac_var in $ac_subst_files | |
1792 | do | |
7a197a62 AK |
1793 | eval ac_val=\$$ac_var |
1794 | case $ac_val in | |
ec6a6fbe | 1795 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
7a197a62 | 1796 | esac |
ec6a6fbe | 1797 | $as_echo "$ac_var='\''$ac_val'\''" |
ad6254c5 AK |
1798 | done | sort |
1799 | echo | |
1800 | fi | |
1801 | ||
1802 | if test -s confdefs.h; then | |
1803 | cat <<\_ASBOX | |
1804 | ## ----------- ## | |
1805 | ## confdefs.h. ## | |
1806 | ## ----------- ## | |
1807 | _ASBOX | |
1808 | echo | |
7a197a62 | 1809 | cat confdefs.h |
ad6254c5 AK |
1810 | echo |
1811 | fi | |
1812 | test "$ac_signal" != 0 && | |
ec6a6fbe AK |
1813 | $as_echo "$as_me: caught signal $ac_signal" |
1814 | $as_echo "$as_me: exit $exit_status" | |
ad6254c5 | 1815 | } >&5 |
7a197a62 AK |
1816 | rm -f core *.core core.conftest.* && |
1817 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
ad6254c5 | 1818 | exit $exit_status |
7a197a62 | 1819 | ' 0 |
ad6254c5 AK |
1820 | for ac_signal in 1 2 13 15; do |
1821 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1822 | done | |
1823 | ac_signal=0 | |
1824 | ||
1825 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
7a197a62 | 1826 | rm -f -r conftest* confdefs.h |
ad6254c5 AK |
1827 | |
1828 | # Predefined preprocessor variables. | |
1829 | ||
1830 | cat >>confdefs.h <<_ACEOF | |
1831 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1832 | _ACEOF | |
1833 | ||
1834 | ||
1835 | cat >>confdefs.h <<_ACEOF | |
1836 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1837 | _ACEOF | |
1838 | ||
1839 | ||
1840 | cat >>confdefs.h <<_ACEOF | |
1841 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1842 | _ACEOF | |
8106cdd5 | 1843 | |
ad6254c5 AK |
1844 | |
1845 | cat >>confdefs.h <<_ACEOF | |
1846 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1847 | _ACEOF | |
1848 | ||
1849 | ||
1850 | cat >>confdefs.h <<_ACEOF | |
1851 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1852 | _ACEOF | |
1853 | ||
1854 | ||
1855 | # Let the site file select an alternate cache file if it wants to. | |
ec6a6fbe AK |
1856 | # Prefer an explicitly selected file to automatically selected ones. |
1857 | ac_site_file1=NONE | |
1858 | ac_site_file2=NONE | |
7a197a62 | 1859 | if test -n "$CONFIG_SITE"; then |
ec6a6fbe | 1860 | ac_site_file1=$CONFIG_SITE |
7a197a62 | 1861 | elif test "x$prefix" != xNONE; then |
ec6a6fbe AK |
1862 | ac_site_file1=$prefix/share/config.site |
1863 | ac_site_file2=$prefix/etc/config.site | |
7a197a62 | 1864 | else |
ec6a6fbe AK |
1865 | ac_site_file1=$ac_default_prefix/share/config.site |
1866 | ac_site_file2=$ac_default_prefix/etc/config.site | |
795ca3e5 | 1867 | fi |
ec6a6fbe | 1868 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
7a197a62 | 1869 | do |
ec6a6fbe | 1870 | test "x$ac_site_file" = xNONE && continue |
795ca3e5 | 1871 | if test -r "$ac_site_file"; then |
ec6a6fbe AK |
1872 | { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1873 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
ad6254c5 | 1874 | sed 's/^/| /' "$ac_site_file" >&5 |
795ca3e5 AK |
1875 | . "$ac_site_file" |
1876 | fi | |
1877 | done | |
1878 | ||
1879 | if test -r "$cache_file"; then | |
ad6254c5 AK |
1880 | # Some versions of bash will fail to source /dev/null (special |
1881 | # files actually), so we avoid doing that. | |
1882 | if test -f "$cache_file"; then | |
ec6a6fbe AK |
1883 | { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
1884 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
ad6254c5 | 1885 | case $cache_file in |
7a197a62 AK |
1886 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
1887 | *) . "./$cache_file";; | |
ad6254c5 AK |
1888 | esac |
1889 | fi | |
795ca3e5 | 1890 | else |
ec6a6fbe AK |
1891 | { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
1892 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
ad6254c5 AK |
1893 | >$cache_file |
1894 | fi | |
1895 | ||
1896 | # Check that the precious variables saved in the cache have kept the same | |
1897 | # value. | |
1898 | ac_cache_corrupted=false | |
7a197a62 | 1899 | for ac_var in $ac_precious_vars; do |
ad6254c5 AK |
1900 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1901 | eval ac_new_set=\$ac_env_${ac_var}_set | |
7a197a62 AK |
1902 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
1903 | eval ac_new_val=\$ac_env_${ac_var}_value | |
ad6254c5 AK |
1904 | case $ac_old_set,$ac_new_set in |
1905 | set,) | |
ec6a6fbe AK |
1906 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
1907 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
ad6254c5 AK |
1908 | ac_cache_corrupted=: ;; |
1909 | ,set) | |
ec6a6fbe AK |
1910 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
1911 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
ad6254c5 AK |
1912 | ac_cache_corrupted=: ;; |
1913 | ,);; | |
1914 | *) | |
1915 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
ec6a6fbe AK |
1916 | # differences in whitespace do not lead to failure. |
1917 | ac_old_val_w=`echo x $ac_old_val` | |
1918 | ac_new_val_w=`echo x $ac_new_val` | |
1919 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
1920 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
1921 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1922 | ac_cache_corrupted=: | |
1923 | else | |
1924 | { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
1925 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
1926 | eval $ac_var=\$ac_old_val | |
1927 | fi | |
1928 | { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 | |
1929 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
1930 | { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 | |
1931 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
ad6254c5 AK |
1932 | fi;; |
1933 | esac | |
1934 | # Pass precious variables to config.status. | |
1935 | if test "$ac_new_set" = set; then | |
1936 | case $ac_new_val in | |
ec6a6fbe | 1937 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
ad6254c5 AK |
1938 | *) ac_arg=$ac_var=$ac_new_val ;; |
1939 | esac | |
1940 | case " $ac_configure_args " in | |
1941 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1942 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1943 | esac | |
1944 | fi | |
1945 | done | |
1946 | if $ac_cache_corrupted; then | |
ec6a6fbe AK |
1947 | { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
1948 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
1949 | { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1950 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1951 | { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1952 | $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
ad6254c5 | 1953 | { (exit 1); exit 1; }; } |
795ca3e5 AK |
1954 | fi |
1955 | ||
ad6254c5 AK |
1956 | |
1957 | ||
1958 | ||
1959 | ||
1960 | ||
1961 | ||
1962 | ||
1963 | ||
1964 | ||
1965 | ||
1966 | ||
1967 | ||
1968 | ||
1969 | ||
1970 | ||
1971 | ||
7a197a62 AK |
1972 | ac_ext=c |
1973 | ac_cpp='$CPP $CPPFLAGS' | |
1974 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1975 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1976 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ad6254c5 | 1977 | |
795ca3e5 AK |
1978 | |
1979 | ||
7a197a62 | 1980 | ac_config_headers="$ac_config_headers lib/misc/configure.h" |
72b2cb61 AK |
1981 | |
1982 | ||
80992638 | 1983 | ################################################################################ |
795ca3e5 | 1984 | ac_aux_dir= |
7a197a62 AK |
1985 | for ac_dir in autoconf "$srcdir"/autoconf; do |
1986 | if test -f "$ac_dir/install-sh"; then | |
795ca3e5 AK |
1987 | ac_aux_dir=$ac_dir |
1988 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1989 | break | |
7a197a62 | 1990 | elif test -f "$ac_dir/install.sh"; then |
795ca3e5 AK |
1991 | ac_aux_dir=$ac_dir |
1992 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1993 | break | |
7a197a62 | 1994 | elif test -f "$ac_dir/shtool"; then |
ad6254c5 AK |
1995 | ac_aux_dir=$ac_dir |
1996 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1997 | break | |
795ca3e5 AK |
1998 | fi |
1999 | done | |
2000 | if test -z "$ac_aux_dir"; then | |
ec6a6fbe AK |
2001 | { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5 |
2002 | $as_echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;} | |
ad6254c5 | 2003 | { (exit 1); exit 1; }; } |
795ca3e5 | 2004 | fi |
7a197a62 AK |
2005 | |
2006 | # These three variables are undocumented and unsupported, | |
2007 | # and are intended to be withdrawn in a future Autoconf release. | |
2008 | # They can cause serious problems if a builder's source tree is in a directory | |
2009 | # whose full name contains unusual characters. | |
2010 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2011 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2012 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2013 | ||
8ce0cbda AK |
2014 | |
2015 | ||
ad6254c5 | 2016 | ################################################################################ |
8ce0cbda | 2017 | # Make sure we can run config.sub. |
7a197a62 | 2018 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
ec6a6fbe AK |
2019 | { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
2020 | $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} | |
ad6254c5 AK |
2021 | { (exit 1); exit 1; }; } |
2022 | ||
ec6a6fbe AK |
2023 | { $as_echo "$as_me:$LINENO: checking build system type" >&5 |
2024 | $as_echo_n "checking build system type... " >&6; } | |
ad6254c5 | 2025 | if test "${ac_cv_build+set}" = set; then |
ec6a6fbe | 2026 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 2027 | else |
7a197a62 AK |
2028 | ac_build_alias=$build_alias |
2029 | test "x$ac_build_alias" = x && | |
2030 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2031 | test "x$ac_build_alias" = x && | |
ec6a6fbe AK |
2032 | { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
2033 | $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
ad6254c5 | 2034 | { (exit 1); exit 1; }; } |
7a197a62 | 2035 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
ec6a6fbe AK |
2036 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
2037 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} | |
ad6254c5 AK |
2038 | { (exit 1); exit 1; }; } |
2039 | ||
2040 | fi | |
ec6a6fbe AK |
2041 | { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
2042 | $as_echo "$ac_cv_build" >&6; } | |
7a197a62 AK |
2043 | case $ac_cv_build in |
2044 | *-*-*) ;; | |
ec6a6fbe AK |
2045 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
2046 | $as_echo "$as_me: error: invalid value of canonical build" >&2;} | |
7a197a62 AK |
2047 | { (exit 1); exit 1; }; };; |
2048 | esac | |
ad6254c5 | 2049 | build=$ac_cv_build |
7a197a62 AK |
2050 | ac_save_IFS=$IFS; IFS='-' |
2051 | set x $ac_cv_build | |
2052 | shift | |
2053 | build_cpu=$1 | |
2054 | build_vendor=$2 | |
2055 | shift; shift | |
2056 | # Remember, the first character of IFS is used to create $*, | |
2057 | # except with old shells: | |
2058 | build_os=$* | |
2059 | IFS=$ac_save_IFS | |
2060 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
ad6254c5 AK |
2061 | |
2062 | ||
ec6a6fbe AK |
2063 | { $as_echo "$as_me:$LINENO: checking host system type" >&5 |
2064 | $as_echo_n "checking host system type... " >&6; } | |
ad6254c5 | 2065 | if test "${ac_cv_host+set}" = set; then |
ec6a6fbe | 2066 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 2067 | else |
7a197a62 AK |
2068 | if test "x$host_alias" = x; then |
2069 | ac_cv_host=$ac_cv_build | |
2070 | else | |
2071 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
ec6a6fbe AK |
2072 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
2073 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} | |
ad6254c5 | 2074 | { (exit 1); exit 1; }; } |
7a197a62 | 2075 | fi |
ad6254c5 AK |
2076 | |
2077 | fi | |
ec6a6fbe AK |
2078 | { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
2079 | $as_echo "$ac_cv_host" >&6; } | |
7a197a62 AK |
2080 | case $ac_cv_host in |
2081 | *-*-*) ;; | |
ec6a6fbe AK |
2082 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
2083 | $as_echo "$as_me: error: invalid value of canonical host" >&2;} | |
7a197a62 AK |
2084 | { (exit 1); exit 1; }; };; |
2085 | esac | |
ad6254c5 | 2086 | host=$ac_cv_host |
7a197a62 AK |
2087 | ac_save_IFS=$IFS; IFS='-' |
2088 | set x $ac_cv_host | |
2089 | shift | |
2090 | host_cpu=$1 | |
2091 | host_vendor=$2 | |
2092 | shift; shift | |
2093 | # Remember, the first character of IFS is used to create $*, | |
2094 | # except with old shells: | |
2095 | host_os=$* | |
2096 | IFS=$ac_save_IFS | |
2097 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
ad6254c5 AK |
2098 | |
2099 | ||
ec6a6fbe AK |
2100 | { $as_echo "$as_me:$LINENO: checking target system type" >&5 |
2101 | $as_echo_n "checking target system type... " >&6; } | |
ad6254c5 | 2102 | if test "${ac_cv_target+set}" = set; then |
ec6a6fbe | 2103 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 2104 | else |
7a197a62 AK |
2105 | if test "x$target_alias" = x; then |
2106 | ac_cv_target=$ac_cv_host | |
2107 | else | |
2108 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
ec6a6fbe AK |
2109 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 |
2110 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} | |
ad6254c5 | 2111 | { (exit 1); exit 1; }; } |
7a197a62 | 2112 | fi |
8ce0cbda | 2113 | |
ad6254c5 | 2114 | fi |
ec6a6fbe AK |
2115 | { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
2116 | $as_echo "$ac_cv_target" >&6; } | |
7a197a62 AK |
2117 | case $ac_cv_target in |
2118 | *-*-*) ;; | |
ec6a6fbe AK |
2119 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 |
2120 | $as_echo "$as_me: error: invalid value of canonical target" >&2;} | |
7a197a62 AK |
2121 | { (exit 1); exit 1; }; };; |
2122 | esac | |
ad6254c5 | 2123 | target=$ac_cv_target |
7a197a62 AK |
2124 | ac_save_IFS=$IFS; IFS='-' |
2125 | set x $ac_cv_target | |
2126 | shift | |
2127 | target_cpu=$1 | |
2128 | target_vendor=$2 | |
2129 | shift; shift | |
2130 | # Remember, the first character of IFS is used to create $*, | |
2131 | # except with old shells: | |
2132 | target_os=$* | |
2133 | IFS=$ac_save_IFS | |
2134 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
8ce0cbda | 2135 | |
8ce0cbda | 2136 | |
ad6254c5 AK |
2137 | # The aliases save the names the user supplied, while $host etc. |
2138 | # will get canonicalized. | |
2139 | test -n "$target_alias" && | |
8ce0cbda AK |
2140 | test "$program_prefix$program_suffix$program_transform_name" = \ |
2141 | NONENONEs,x,x, && | |
2142 | program_prefix=${target_alias}- | |
2143 | ||
8ce0cbda AK |
2144 | case "$host_os" in |
2145 | linux*) | |
7f54ef36 | 2146 | CFLAGS="$CFLAGS" |
8ce0cbda AK |
2147 | COPTIMISE_FLAG="-O2" |
2148 | CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym" | |
2149 | CLDWHOLEARCHIVE="-Wl,-whole-archive" | |
2150 | CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive" | |
2151 | LDDEPS="$LDDEPS .export.sym" | |
2152 | LDFLAGS="$LDFLAGS -Wl,--export-dynamic" | |
d0191583 | 2153 | LIB_SUFFIX=so |
8ce0cbda AK |
2154 | DEVMAPPER=yes |
2155 | ODIRECT=yes | |
d0191583 | 2156 | DM_IOCTLS=yes |
8ce0cbda | 2157 | SELINUX=yes |
8b1a3214 | 2158 | REALTIME=yes |
8ce0cbda | 2159 | CLUSTER=internal |
93bd259b | 2160 | FSADM=yes |
d0191583 | 2161 | ;; |
8ce0cbda AK |
2162 | darwin*) |
2163 | CFLAGS="$CFLAGS -no-cpp-precomp -fno-common" | |
2164 | COPTIMISE_FLAG="-O2" | |
2165 | CLDFLAGS="$CLDFLAGS" | |
2166 | CLDWHOLEARCHIVE="-all_load" | |
2167 | CLDNOWHOLEARCHIVE= | |
d0191583 | 2168 | LIB_SUFFIX=dylib |
a653923f | 2169 | DEVMAPPER=yes |
8ce0cbda | 2170 | ODIRECT=no |
d0191583 | 2171 | DM_IOCTLS=no |
8ce0cbda | 2172 | SELINUX=no |
8b1a3214 | 2173 | REALTIME=no |
8ce0cbda | 2174 | CLUSTER=none |
d0191583 JM |
2175 | FSADM=no |
2176 | ;; | |
8ce0cbda AK |
2177 | esac |
2178 | ||
80992638 | 2179 | ################################################################################ |
ec6a6fbe AK |
2180 | { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
2181 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
5951ef33 | 2182 | if test "${ac_cv_path_SED+set}" = set; then |
ec6a6fbe | 2183 | $as_echo_n "(cached) " >&6 |
5951ef33 AK |
2184 | else |
2185 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
2186 | for ac_i in 1 2 3 4 5 6 7; do | |
2187 | ac_script="$ac_script$as_nl$ac_script" | |
2188 | done | |
ec6a6fbe | 2189 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed |
5951ef33 | 2190 | $as_unset ac_script || ac_script= |
ec6a6fbe | 2191 | if test -z "$SED"; then |
5951ef33 | 2192 | ac_path_SED_found=false |
ec6a6fbe AK |
2193 | # Loop through the user's path and test for each of PROGNAME-LIST |
2194 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5951ef33 AK |
2195 | for as_dir in $PATH |
2196 | do | |
2197 | IFS=$as_save_IFS | |
2198 | test -z "$as_dir" && as_dir=. | |
2199 | for ac_prog in sed gsed; do | |
ec6a6fbe AK |
2200 | for ac_exec_ext in '' $ac_executable_extensions; do |
2201 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
2202 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | |
2203 | # Check for GNU ac_path_SED and select it if it is found. | |
5951ef33 AK |
2204 | # Check for GNU $ac_path_SED |
2205 | case `"$ac_path_SED" --version 2>&1` in | |
2206 | *GNU*) | |
2207 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
2208 | *) | |
2209 | ac_count=0 | |
ec6a6fbe | 2210 | $as_echo_n 0123456789 >"conftest.in" |
5951ef33 AK |
2211 | while : |
2212 | do | |
2213 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
2214 | mv "conftest.tmp" "conftest.in" | |
2215 | cp "conftest.in" "conftest.nl" | |
ec6a6fbe | 2216 | $as_echo '' >> "conftest.nl" |
5951ef33 AK |
2217 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break |
2218 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
2219 | ac_count=`expr $ac_count + 1` | |
2220 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
2221 | # Best one so far, save it but keep looking for a better one | |
2222 | ac_cv_path_SED="$ac_path_SED" | |
2223 | ac_path_SED_max=$ac_count | |
2224 | fi | |
2225 | # 10*(2^10) chars as input seems more than enough | |
2226 | test $ac_count -gt 10 && break | |
2227 | done | |
2228 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
2229 | esac | |
2230 | ||
ec6a6fbe AK |
2231 | $ac_path_SED_found && break 3 |
2232 | done | |
5951ef33 AK |
2233 | done |
2234 | done | |
5951ef33 | 2235 | IFS=$as_save_IFS |
ec6a6fbe AK |
2236 | if test -z "$ac_cv_path_SED"; then |
2237 | { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5 | |
2238 | $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;} | |
5951ef33 | 2239 | { (exit 1); exit 1; }; } |
ec6a6fbe | 2240 | fi |
5951ef33 AK |
2241 | else |
2242 | ac_cv_path_SED=$SED | |
2243 | fi | |
2244 | ||
2245 | fi | |
ec6a6fbe AK |
2246 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5 |
2247 | $as_echo "$ac_cv_path_SED" >&6; } | |
5951ef33 AK |
2248 | SED="$ac_cv_path_SED" |
2249 | rm -f conftest.sed | |
2250 | ||
ad6254c5 | 2251 | for ac_prog in gawk mawk nawk awk |
795ca3e5 | 2252 | do |
ad6254c5 | 2253 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
795ca3e5 | 2254 | set dummy $ac_prog; ac_word=$2 |
ec6a6fbe AK |
2255 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2256 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2257 | if test "${ac_cv_prog_AWK+set}" = set; then |
ec6a6fbe | 2258 | $as_echo_n "(cached) " >&6 |
795ca3e5 AK |
2259 | else |
2260 | if test -n "$AWK"; then | |
2261 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2262 | else | |
ad6254c5 AK |
2263 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2264 | for as_dir in $PATH | |
2265 | do | |
2266 | IFS=$as_save_IFS | |
2267 | test -z "$as_dir" && as_dir=. | |
2268 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2269 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2270 | ac_cv_prog_AWK="$ac_prog" |
ec6a6fbe | 2271 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2272 | break 2 |
2273 | fi | |
2274 | done | |
2275 | done | |
7a197a62 | 2276 | IFS=$as_save_IFS |
ad6254c5 | 2277 | |
795ca3e5 AK |
2278 | fi |
2279 | fi | |
ad6254c5 | 2280 | AWK=$ac_cv_prog_AWK |
795ca3e5 | 2281 | if test -n "$AWK"; then |
ec6a6fbe AK |
2282 | { $as_echo "$as_me:$LINENO: result: $AWK" >&5 |
2283 | $as_echo "$AWK" >&6; } | |
795ca3e5 | 2284 | else |
ec6a6fbe AK |
2285 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2286 | $as_echo "no" >&6; } | |
795ca3e5 AK |
2287 | fi |
2288 | ||
7a197a62 | 2289 | |
ad6254c5 AK |
2290 | test -n "$AWK" && break |
2291 | done | |
2292 | ||
2293 | ac_ext=c | |
2294 | ac_cpp='$CPP $CPPFLAGS' | |
2295 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2296 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2297 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2298 | if test -n "$ac_tool_prefix"; then | |
2299 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2300 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
ec6a6fbe AK |
2301 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2302 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2303 | if test "${ac_cv_prog_CC+set}" = set; then |
ec6a6fbe | 2304 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
2305 | else |
2306 | if test -n "$CC"; then | |
2307 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2308 | else | |
2309 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2310 | for as_dir in $PATH | |
2311 | do | |
2312 | IFS=$as_save_IFS | |
2313 | test -z "$as_dir" && as_dir=. | |
2314 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2315 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2316 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
ec6a6fbe | 2317 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2318 | break 2 |
2319 | fi | |
2320 | done | |
8106cdd5 | 2321 | done |
7a197a62 | 2322 | IFS=$as_save_IFS |
8106cdd5 | 2323 | |
ad6254c5 AK |
2324 | fi |
2325 | fi | |
2326 | CC=$ac_cv_prog_CC | |
2327 | if test -n "$CC"; then | |
ec6a6fbe AK |
2328 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2329 | $as_echo "$CC" >&6; } | |
ad6254c5 | 2330 | else |
ec6a6fbe AK |
2331 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2332 | $as_echo "no" >&6; } | |
ad6254c5 AK |
2333 | fi |
2334 | ||
7a197a62 | 2335 | |
ad6254c5 AK |
2336 | fi |
2337 | if test -z "$ac_cv_prog_CC"; then | |
2338 | ac_ct_CC=$CC | |
2339 | # Extract the first word of "gcc", so it can be a program name with args. | |
8106cdd5 | 2340 | set dummy gcc; ac_word=$2 |
ec6a6fbe AK |
2341 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2342 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2343 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
ec6a6fbe | 2344 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
2345 | else |
2346 | if test -n "$ac_ct_CC"; then | |
2347 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2348 | else | |
2349 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2350 | for as_dir in $PATH | |
2351 | do | |
2352 | IFS=$as_save_IFS | |
2353 | test -z "$as_dir" && as_dir=. | |
2354 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2355 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2356 | ac_cv_prog_ac_ct_CC="gcc" |
ec6a6fbe | 2357 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2358 | break 2 |
2359 | fi | |
2360 | done | |
2361 | done | |
7a197a62 | 2362 | IFS=$as_save_IFS |
ad6254c5 AK |
2363 | |
2364 | fi | |
2365 | fi | |
2366 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2367 | if test -n "$ac_ct_CC"; then | |
ec6a6fbe AK |
2368 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2369 | $as_echo "$ac_ct_CC" >&6; } | |
ad6254c5 | 2370 | else |
ec6a6fbe AK |
2371 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2372 | $as_echo "no" >&6; } | |
ad6254c5 AK |
2373 | fi |
2374 | ||
7a197a62 AK |
2375 | if test "x$ac_ct_CC" = x; then |
2376 | CC="" | |
2377 | else | |
2378 | case $cross_compiling:$ac_tool_warned in | |
2379 | yes:) | |
ec6a6fbe AK |
2380 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
2381 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7a197a62 AK |
2382 | ac_tool_warned=yes ;; |
2383 | esac | |
2384 | CC=$ac_ct_CC | |
2385 | fi | |
ad6254c5 AK |
2386 | else |
2387 | CC="$ac_cv_prog_CC" | |
2388 | fi | |
2389 | ||
2390 | if test -z "$CC"; then | |
7a197a62 AK |
2391 | if test -n "$ac_tool_prefix"; then |
2392 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
ad6254c5 | 2393 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
ec6a6fbe AK |
2394 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2395 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2396 | if test "${ac_cv_prog_CC+set}" = set; then |
ec6a6fbe | 2397 | $as_echo_n "(cached) " >&6 |
8106cdd5 AK |
2398 | else |
2399 | if test -n "$CC"; then | |
2400 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2401 | else | |
ad6254c5 AK |
2402 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2403 | for as_dir in $PATH | |
2404 | do | |
2405 | IFS=$as_save_IFS | |
2406 | test -z "$as_dir" && as_dir=. | |
2407 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2408 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2409 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
ec6a6fbe | 2410 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2411 | break 2 |
2412 | fi | |
2413 | done | |
2414 | done | |
7a197a62 | 2415 | IFS=$as_save_IFS |
ad6254c5 | 2416 | |
8106cdd5 AK |
2417 | fi |
2418 | fi | |
ad6254c5 | 2419 | CC=$ac_cv_prog_CC |
8106cdd5 | 2420 | if test -n "$CC"; then |
ec6a6fbe AK |
2421 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2422 | $as_echo "$CC" >&6; } | |
ad6254c5 | 2423 | else |
ec6a6fbe AK |
2424 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2425 | $as_echo "no" >&6; } | |
ad6254c5 AK |
2426 | fi |
2427 | ||
8106cdd5 | 2428 | |
7a197a62 | 2429 | fi |
ad6254c5 | 2430 | fi |
795ca3e5 AK |
2431 | if test -z "$CC"; then |
2432 | # Extract the first word of "cc", so it can be a program name with args. | |
2433 | set dummy cc; ac_word=$2 | |
ec6a6fbe AK |
2434 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2435 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2436 | if test "${ac_cv_prog_CC+set}" = set; then |
ec6a6fbe | 2437 | $as_echo_n "(cached) " >&6 |
795ca3e5 AK |
2438 | else |
2439 | if test -n "$CC"; then | |
2440 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2441 | else | |
795ca3e5 | 2442 | ac_prog_rejected=no |
ad6254c5 AK |
2443 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2444 | for as_dir in $PATH | |
2445 | do | |
2446 | IFS=$as_save_IFS | |
2447 | test -z "$as_dir" && as_dir=. | |
2448 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2449 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 AK |
2450 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2451 | ac_prog_rejected=yes | |
2452 | continue | |
2453 | fi | |
2454 | ac_cv_prog_CC="cc" | |
ec6a6fbe | 2455 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2456 | break 2 |
2457 | fi | |
2458 | done | |
2459 | done | |
7a197a62 | 2460 | IFS=$as_save_IFS |
ad6254c5 | 2461 | |
795ca3e5 AK |
2462 | if test $ac_prog_rejected = yes; then |
2463 | # We found a bogon in the path, so make sure we never use it. | |
2464 | set dummy $ac_cv_prog_CC | |
2465 | shift | |
ad6254c5 | 2466 | if test $# != 0; then |
795ca3e5 AK |
2467 | # We chose a different compiler from the bogus one. |
2468 | # However, it has the same basename, so the bogon will be chosen | |
2469 | # first if we set CC to just the basename; use the full file name. | |
2470 | shift | |
ad6254c5 | 2471 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
795ca3e5 AK |
2472 | fi |
2473 | fi | |
2474 | fi | |
2475 | fi | |
ad6254c5 | 2476 | CC=$ac_cv_prog_CC |
795ca3e5 | 2477 | if test -n "$CC"; then |
ec6a6fbe AK |
2478 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2479 | $as_echo "$CC" >&6; } | |
795ca3e5 | 2480 | else |
ec6a6fbe AK |
2481 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2482 | $as_echo "no" >&6; } | |
795ca3e5 AK |
2483 | fi |
2484 | ||
7a197a62 | 2485 | |
ad6254c5 AK |
2486 | fi |
2487 | if test -z "$CC"; then | |
2488 | if test -n "$ac_tool_prefix"; then | |
7a197a62 | 2489 | for ac_prog in cl.exe |
ad6254c5 AK |
2490 | do |
2491 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2492 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
ec6a6fbe AK |
2493 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2494 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2495 | if test "${ac_cv_prog_CC+set}" = set; then |
ec6a6fbe | 2496 | $as_echo_n "(cached) " >&6 |
795ca3e5 AK |
2497 | else |
2498 | if test -n "$CC"; then | |
2499 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2500 | else | |
ad6254c5 AK |
2501 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2502 | for as_dir in $PATH | |
2503 | do | |
2504 | IFS=$as_save_IFS | |
2505 | test -z "$as_dir" && as_dir=. | |
2506 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2507 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2508 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
ec6a6fbe | 2509 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2510 | break 2 |
2511 | fi | |
2512 | done | |
2513 | done | |
7a197a62 | 2514 | IFS=$as_save_IFS |
ad6254c5 | 2515 | |
795ca3e5 AK |
2516 | fi |
2517 | fi | |
ad6254c5 | 2518 | CC=$ac_cv_prog_CC |
795ca3e5 | 2519 | if test -n "$CC"; then |
ec6a6fbe AK |
2520 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2521 | $as_echo "$CC" >&6; } | |
795ca3e5 | 2522 | else |
ec6a6fbe AK |
2523 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2524 | $as_echo "no" >&6; } | |
795ca3e5 | 2525 | fi |
ad6254c5 | 2526 | |
7a197a62 | 2527 | |
ad6254c5 AK |
2528 | test -n "$CC" && break |
2529 | done | |
2530 | fi | |
2531 | if test -z "$CC"; then | |
2532 | ac_ct_CC=$CC | |
7a197a62 | 2533 | for ac_prog in cl.exe |
ad6254c5 AK |
2534 | do |
2535 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2536 | set dummy $ac_prog; ac_word=$2 | |
ec6a6fbe AK |
2537 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2538 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2539 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
ec6a6fbe | 2540 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
2541 | else |
2542 | if test -n "$ac_ct_CC"; then | |
2543 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2544 | else | |
2545 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2546 | for as_dir in $PATH | |
2547 | do | |
2548 | IFS=$as_save_IFS | |
2549 | test -z "$as_dir" && as_dir=. | |
2550 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2551 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2552 | ac_cv_prog_ac_ct_CC="$ac_prog" |
ec6a6fbe | 2553 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 | 2554 | break 2 |
795ca3e5 | 2555 | fi |
ad6254c5 AK |
2556 | done |
2557 | done | |
7a197a62 | 2558 | IFS=$as_save_IFS |
ad6254c5 AK |
2559 | |
2560 | fi | |
2561 | fi | |
2562 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2563 | if test -n "$ac_ct_CC"; then | |
ec6a6fbe AK |
2564 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2565 | $as_echo "$ac_ct_CC" >&6; } | |
ad6254c5 | 2566 | else |
ec6a6fbe AK |
2567 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2568 | $as_echo "no" >&6; } | |
795ca3e5 AK |
2569 | fi |
2570 | ||
7a197a62 | 2571 | |
ad6254c5 AK |
2572 | test -n "$ac_ct_CC" && break |
2573 | done | |
795ca3e5 | 2574 | |
7a197a62 AK |
2575 | if test "x$ac_ct_CC" = x; then |
2576 | CC="" | |
2577 | else | |
2578 | case $cross_compiling:$ac_tool_warned in | |
2579 | yes:) | |
ec6a6fbe AK |
2580 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
2581 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7a197a62 AK |
2582 | ac_tool_warned=yes ;; |
2583 | esac | |
2584 | CC=$ac_ct_CC | |
2585 | fi | |
ad6254c5 AK |
2586 | fi |
2587 | ||
2588 | fi | |
2589 | ||
2590 | ||
ec6a6fbe AK |
2591 | test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2592 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2593 | { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
ad6254c5 | 2594 | See \`config.log' for more details." >&5 |
ec6a6fbe | 2595 | $as_echo "$as_me: error: no acceptable C compiler found in \$PATH |
ad6254c5 | 2596 | See \`config.log' for more details." >&2;} |
ec6a6fbe | 2597 | { (exit 1); exit 1; }; }; } |
ad6254c5 AK |
2598 | |
2599 | # Provide some information about the compiler. | |
ec6a6fbe AK |
2600 | $as_echo "$as_me:$LINENO: checking for C compiler version" >&5 |
2601 | set X $ac_compile | |
2602 | ac_compiler=$2 | |
7a197a62 AK |
2603 | { (ac_try="$ac_compiler --version >&5" |
2604 | case "(($ac_try" in | |
2605 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2606 | *) ac_try_echo=$ac_try;; | |
2607 | esac | |
ec6a6fbe AK |
2608 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2609 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2610 | (eval "$ac_compiler --version >&5") 2>&5 |
ad6254c5 | 2611 | ac_status=$? |
ec6a6fbe | 2612 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 2613 | (exit $ac_status); } |
7a197a62 AK |
2614 | { (ac_try="$ac_compiler -v >&5" |
2615 | case "(($ac_try" in | |
2616 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2617 | *) ac_try_echo=$ac_try;; | |
2618 | esac | |
ec6a6fbe AK |
2619 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2620 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2621 | (eval "$ac_compiler -v >&5") 2>&5 |
ad6254c5 | 2622 | ac_status=$? |
ec6a6fbe | 2623 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 2624 | (exit $ac_status); } |
7a197a62 AK |
2625 | { (ac_try="$ac_compiler -V >&5" |
2626 | case "(($ac_try" in | |
2627 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2628 | *) ac_try_echo=$ac_try;; | |
2629 | esac | |
ec6a6fbe AK |
2630 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2631 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2632 | (eval "$ac_compiler -V >&5") 2>&5 |
ad6254c5 | 2633 | ac_status=$? |
ec6a6fbe | 2634 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
2635 | (exit $ac_status); } |
2636 | ||
2637 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
2638 | /* confdefs.h. */ |
2639 | _ACEOF | |
2640 | cat confdefs.h >>conftest.$ac_ext | |
2641 | cat >>conftest.$ac_ext <<_ACEOF | |
2642 | /* end confdefs.h. */ | |
2643 | ||
2644 | int | |
2645 | main () | |
2646 | { | |
2647 | ||
2648 | ; | |
2649 | return 0; | |
2650 | } | |
2651 | _ACEOF | |
2652 | ac_clean_files_save=$ac_clean_files | |
ec6a6fbe | 2653 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
ad6254c5 AK |
2654 | # Try to create an executable without -o first, disregard a.out. |
2655 | # It will help us diagnose broken compilers, and finding out an intuition | |
2656 | # of exeext. | |
ec6a6fbe AK |
2657 | { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
2658 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
2659 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
2660 | ||
2661 | # The possible output files: | |
2662 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
2663 | ||
7a197a62 AK |
2664 | ac_rmfiles= |
2665 | for ac_file in $ac_files | |
2666 | do | |
2667 | case $ac_file in | |
ec6a6fbe | 2668 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
7a197a62 AK |
2669 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
2670 | esac | |
2671 | done | |
2672 | rm -f $ac_rmfiles | |
2673 | ||
2674 | if { (ac_try="$ac_link_default" | |
2675 | case "(($ac_try" in | |
2676 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2677 | *) ac_try_echo=$ac_try;; | |
2678 | esac | |
ec6a6fbe AK |
2679 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2680 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2681 | (eval "$ac_link_default") 2>&5 |
ad6254c5 | 2682 | ac_status=$? |
ec6a6fbe | 2683 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 2684 | (exit $ac_status); }; then |
7a197a62 AK |
2685 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
2686 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
2687 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
2688 | # so that the user can short-circuit this test for compilers unknown to | |
2689 | # Autoconf. | |
25fbec5b | 2690 | for ac_file in $ac_files '' |
ad6254c5 AK |
2691 | do |
2692 | test -f "$ac_file" || continue | |
2693 | case $ac_file in | |
ec6a6fbe | 2694 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
8a2fc586 | 2695 | ;; |
ad6254c5 | 2696 | [ab].out ) |
8a2fc586 AK |
2697 | # We found the default executable, but exeext='' is most |
2698 | # certainly right. | |
2699 | break;; | |
ad6254c5 | 2700 | *.* ) |
7a197a62 AK |
2701 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
2702 | then :; else | |
2703 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2704 | fi | |
2705 | # We set ac_cv_exeext here because the later test for it is not | |
2706 | # safe: cross compilers may not add the suffix if given an `-o' | |
2707 | # argument, so we may need to know it at that point already. | |
2708 | # Even if this section looks crufty: it has the advantage of | |
2709 | # actually working. | |
8a2fc586 | 2710 | break;; |
ad6254c5 | 2711 | * ) |
8a2fc586 | 2712 | break;; |
ad6254c5 AK |
2713 | esac |
2714 | done | |
7a197a62 AK |
2715 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
2716 | ||
ad6254c5 | 2717 | else |
25fbec5b AK |
2718 | ac_file='' |
2719 | fi | |
2720 | ||
ec6a6fbe AK |
2721 | { $as_echo "$as_me:$LINENO: result: $ac_file" >&5 |
2722 | $as_echo "$ac_file" >&6; } | |
25fbec5b | 2723 | if test -z "$ac_file"; then |
ec6a6fbe | 2724 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
2725 | sed 's/^/| /' conftest.$ac_ext >&5 |
2726 | ||
ec6a6fbe AK |
2727 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2728 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2729 | { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables | |
ad6254c5 | 2730 | See \`config.log' for more details." >&5 |
ec6a6fbe | 2731 | $as_echo "$as_me: error: C compiler cannot create executables |
ad6254c5 | 2732 | See \`config.log' for more details." >&2;} |
ec6a6fbe | 2733 | { (exit 77); exit 77; }; }; } |
ad6254c5 AK |
2734 | fi |
2735 | ||
2736 | ac_exeext=$ac_cv_exeext | |
ad6254c5 | 2737 | |
7a197a62 | 2738 | # Check that the compiler produces executables we can run. If not, either |
ad6254c5 | 2739 | # the compiler is broken, or we cross compile. |
ec6a6fbe AK |
2740 | { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
2741 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
ad6254c5 AK |
2742 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
2743 | # If not cross compiling, check that we can run a simple program. | |
2744 | if test "$cross_compiling" != yes; then | |
2745 | if { ac_try='./$ac_file' | |
7a197a62 AK |
2746 | { (case "(($ac_try" in |
2747 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2748 | *) ac_try_echo=$ac_try;; | |
2749 | esac | |
ec6a6fbe AK |
2750 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2751 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2752 | (eval "$ac_try") 2>&5 |
ad6254c5 | 2753 | ac_status=$? |
ec6a6fbe | 2754 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
2755 | (exit $ac_status); }; }; then |
2756 | cross_compiling=no | |
795ca3e5 | 2757 | else |
ad6254c5 AK |
2758 | if test "$cross_compiling" = maybe; then |
2759 | cross_compiling=yes | |
2760 | else | |
ec6a6fbe AK |
2761 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2762 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2763 | { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
ad6254c5 AK |
2764 | If you meant to cross compile, use \`--host'. |
2765 | See \`config.log' for more details." >&5 | |
ec6a6fbe | 2766 | $as_echo "$as_me: error: cannot run C compiled programs. |
ad6254c5 AK |
2767 | If you meant to cross compile, use \`--host'. |
2768 | See \`config.log' for more details." >&2;} | |
ec6a6fbe | 2769 | { (exit 1); exit 1; }; }; } |
ad6254c5 | 2770 | fi |
795ca3e5 | 2771 | fi |
80992638 | 2772 | fi |
ec6a6fbe AK |
2773 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
2774 | $as_echo "yes" >&6; } | |
ad6254c5 | 2775 | |
ec6a6fbe | 2776 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
ad6254c5 | 2777 | ac_clean_files=$ac_clean_files_save |
7a197a62 | 2778 | # Check that the compiler produces executables we can run. If not, either |
ad6254c5 | 2779 | # the compiler is broken, or we cross compile. |
ec6a6fbe AK |
2780 | { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
2781 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
2782 | { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
2783 | $as_echo "$cross_compiling" >&6; } | |
7a197a62 | 2784 | |
ec6a6fbe AK |
2785 | { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
2786 | $as_echo_n "checking for suffix of executables... " >&6; } | |
7a197a62 AK |
2787 | if { (ac_try="$ac_link" |
2788 | case "(($ac_try" in | |
2789 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2790 | *) ac_try_echo=$ac_try;; | |
2791 | esac | |
ec6a6fbe AK |
2792 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2793 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2794 | (eval "$ac_link") 2>&5 |
ad6254c5 | 2795 | ac_status=$? |
ec6a6fbe | 2796 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
2797 | (exit $ac_status); }; then |
2798 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2799 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2800 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2801 | # `rm'. | |
2802 | for ac_file in conftest.exe conftest conftest.*; do | |
2803 | test -f "$ac_file" || continue | |
2804 | case $ac_file in | |
ec6a6fbe | 2805 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
ad6254c5 | 2806 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
8a2fc586 | 2807 | break;; |
ad6254c5 AK |
2808 | * ) break;; |
2809 | esac | |
2810 | done | |
80992638 | 2811 | else |
ec6a6fbe AK |
2812 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2813 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2814 | { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
ad6254c5 | 2815 | See \`config.log' for more details." >&5 |
ec6a6fbe | 2816 | $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
ad6254c5 | 2817 | See \`config.log' for more details." >&2;} |
ec6a6fbe | 2818 | { (exit 1); exit 1; }; }; } |
ad6254c5 AK |
2819 | fi |
2820 | ||
2821 | rm -f conftest$ac_cv_exeext | |
ec6a6fbe AK |
2822 | { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
2823 | $as_echo "$ac_cv_exeext" >&6; } | |
ad6254c5 AK |
2824 | |
2825 | rm -f conftest.$ac_ext | |
2826 | EXEEXT=$ac_cv_exeext | |
2827 | ac_exeext=$EXEEXT | |
ec6a6fbe AK |
2828 | { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
2829 | $as_echo_n "checking for suffix of object files... " >&6; } | |
ad6254c5 | 2830 | if test "${ac_cv_objext+set}" = set; then |
ec6a6fbe | 2831 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 2832 | else |
ad6254c5 | 2833 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
2834 | /* confdefs.h. */ |
2835 | _ACEOF | |
2836 | cat confdefs.h >>conftest.$ac_ext | |
2837 | cat >>conftest.$ac_ext <<_ACEOF | |
2838 | /* end confdefs.h. */ | |
2839 | ||
2840 | int | |
2841 | main () | |
2842 | { | |
2843 | ||
2844 | ; | |
2845 | return 0; | |
2846 | } | |
2847 | _ACEOF | |
2848 | rm -f conftest.o conftest.obj | |
7a197a62 AK |
2849 | if { (ac_try="$ac_compile" |
2850 | case "(($ac_try" in | |
2851 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2852 | *) ac_try_echo=$ac_try;; | |
2853 | esac | |
ec6a6fbe AK |
2854 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2855 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2856 | (eval "$ac_compile") 2>&5 |
ad6254c5 | 2857 | ac_status=$? |
ec6a6fbe | 2858 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 2859 | (exit $ac_status); }; then |
7a197a62 AK |
2860 | for ac_file in conftest.o conftest.obj conftest.*; do |
2861 | test -f "$ac_file" || continue; | |
ad6254c5 | 2862 | case $ac_file in |
ec6a6fbe | 2863 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
ad6254c5 AK |
2864 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
2865 | break;; | |
2866 | esac | |
2867 | done | |
2868 | else | |
ec6a6fbe | 2869 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
2870 | sed 's/^/| /' conftest.$ac_ext >&5 |
2871 | ||
ec6a6fbe AK |
2872 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2873 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2874 | { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
ad6254c5 | 2875 | See \`config.log' for more details." >&5 |
ec6a6fbe | 2876 | $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile |
ad6254c5 | 2877 | See \`config.log' for more details." >&2;} |
ec6a6fbe | 2878 | { (exit 1); exit 1; }; }; } |
ad6254c5 AK |
2879 | fi |
2880 | ||
2881 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
2882 | fi | |
ec6a6fbe AK |
2883 | { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
2884 | $as_echo "$ac_cv_objext" >&6; } | |
ad6254c5 AK |
2885 | OBJEXT=$ac_cv_objext |
2886 | ac_objext=$OBJEXT | |
ec6a6fbe AK |
2887 | { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
2888 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
ad6254c5 | 2889 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
ec6a6fbe | 2890 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
2891 | else |
2892 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
2893 | /* confdefs.h. */ |
2894 | _ACEOF | |
2895 | cat confdefs.h >>conftest.$ac_ext | |
2896 | cat >>conftest.$ac_ext <<_ACEOF | |
2897 | /* end confdefs.h. */ | |
2898 | ||
2899 | int | |
2900 | main () | |
2901 | { | |
2902 | #ifndef __GNUC__ | |
2903 | choke me | |
2904 | #endif | |
80992638 | 2905 | |
ad6254c5 AK |
2906 | ; |
2907 | return 0; | |
2908 | } | |
2909 | _ACEOF | |
2910 | rm -f conftest.$ac_objext | |
7a197a62 AK |
2911 | if { (ac_try="$ac_compile" |
2912 | case "(($ac_try" in | |
2913 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2914 | *) ac_try_echo=$ac_try;; | |
2915 | esac | |
ec6a6fbe AK |
2916 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2917 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2918 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 2919 | ac_status=$? |
8a2fc586 AK |
2920 | grep -v '^ *+' conftest.er1 >conftest.err |
2921 | rm -f conftest.er1 | |
2922 | cat conftest.err >&5 | |
ec6a6fbe | 2923 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
2924 | (exit $ac_status); } && { |
2925 | test -z "$ac_c_werror_flag" || | |
2926 | test ! -s conftest.err | |
2927 | } && test -s conftest.$ac_objext; then | |
ad6254c5 | 2928 | ac_compiler_gnu=yes |
80992638 | 2929 | else |
ec6a6fbe | 2930 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
2931 | sed 's/^/| /' conftest.$ac_ext >&5 |
2932 | ||
7a197a62 | 2933 | ac_compiler_gnu=no |
8106cdd5 | 2934 | fi |
7a197a62 AK |
2935 | |
2936 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 2937 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
80992638 | 2938 | |
ad6254c5 | 2939 | fi |
ec6a6fbe AK |
2940 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
2941 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
2942 | if test $ac_compiler_gnu = yes; then | |
2943 | GCC=yes | |
2944 | else | |
2945 | GCC= | |
2946 | fi | |
ad6254c5 AK |
2947 | ac_test_CFLAGS=${CFLAGS+set} |
2948 | ac_save_CFLAGS=$CFLAGS | |
ec6a6fbe AK |
2949 | { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
2950 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
ad6254c5 | 2951 | if test "${ac_cv_prog_cc_g+set}" = set; then |
ec6a6fbe | 2952 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 2953 | else |
7a197a62 AK |
2954 | ac_save_c_werror_flag=$ac_c_werror_flag |
2955 | ac_c_werror_flag=yes | |
2956 | ac_cv_prog_cc_g=no | |
2957 | CFLAGS="-g" | |
2958 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
2959 | /* confdefs.h. */ |
2960 | _ACEOF | |
2961 | cat confdefs.h >>conftest.$ac_ext | |
2962 | cat >>conftest.$ac_ext <<_ACEOF | |
2963 | /* end confdefs.h. */ | |
2964 | ||
2965 | int | |
2966 | main () | |
2967 | { | |
2968 | ||
2969 | ; | |
2970 | return 0; | |
2971 | } | |
2972 | _ACEOF | |
2973 | rm -f conftest.$ac_objext | |
7a197a62 AK |
2974 | if { (ac_try="$ac_compile" |
2975 | case "(($ac_try" in | |
2976 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2977 | *) ac_try_echo=$ac_try;; | |
2978 | esac | |
ec6a6fbe AK |
2979 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2980 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2981 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 2982 | ac_status=$? |
8a2fc586 AK |
2983 | grep -v '^ *+' conftest.er1 >conftest.err |
2984 | rm -f conftest.er1 | |
2985 | cat conftest.err >&5 | |
ec6a6fbe | 2986 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
2987 | (exit $ac_status); } && { |
2988 | test -z "$ac_c_werror_flag" || | |
2989 | test ! -s conftest.err | |
2990 | } && test -s conftest.$ac_objext; then | |
7a197a62 AK |
2991 | ac_cv_prog_cc_g=yes |
2992 | else | |
ec6a6fbe | 2993 | $as_echo "$as_me: failed program was:" >&5 |
7a197a62 AK |
2994 | sed 's/^/| /' conftest.$ac_ext >&5 |
2995 | ||
2996 | CFLAGS="" | |
2997 | cat >conftest.$ac_ext <<_ACEOF | |
2998 | /* confdefs.h. */ | |
2999 | _ACEOF | |
3000 | cat confdefs.h >>conftest.$ac_ext | |
3001 | cat >>conftest.$ac_ext <<_ACEOF | |
3002 | /* end confdefs.h. */ | |
3003 | ||
3004 | int | |
3005 | main () | |
3006 | { | |
3007 | ||
3008 | ; | |
3009 | return 0; | |
3010 | } | |
3011 | _ACEOF | |
3012 | rm -f conftest.$ac_objext | |
3013 | if { (ac_try="$ac_compile" | |
3014 | case "(($ac_try" in | |
3015 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3016 | *) ac_try_echo=$ac_try;; | |
3017 | esac | |
ec6a6fbe AK |
3018 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3019 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 3020 | (eval "$ac_compile") 2>conftest.er1 |
8a2fc586 | 3021 | ac_status=$? |
7a197a62 AK |
3022 | grep -v '^ *+' conftest.er1 >conftest.err |
3023 | rm -f conftest.er1 | |
3024 | cat conftest.err >&5 | |
ec6a6fbe | 3025 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
3026 | (exit $ac_status); } && { |
3027 | test -z "$ac_c_werror_flag" || | |
3028 | test ! -s conftest.err | |
3029 | } && test -s conftest.$ac_objext; then | |
7a197a62 AK |
3030 | : |
3031 | else | |
ec6a6fbe | 3032 | $as_echo "$as_me: failed program was:" >&5 |
7a197a62 AK |
3033 | sed 's/^/| /' conftest.$ac_ext >&5 |
3034 | ||
3035 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3036 | CFLAGS="-g" | |
3037 | cat >conftest.$ac_ext <<_ACEOF | |
3038 | /* confdefs.h. */ | |
3039 | _ACEOF | |
3040 | cat confdefs.h >>conftest.$ac_ext | |
3041 | cat >>conftest.$ac_ext <<_ACEOF | |
3042 | /* end confdefs.h. */ | |
3043 | ||
3044 | int | |
3045 | main () | |
3046 | { | |
3047 | ||
3048 | ; | |
3049 | return 0; | |
3050 | } | |
3051 | _ACEOF | |
3052 | rm -f conftest.$ac_objext | |
3053 | if { (ac_try="$ac_compile" | |
3054 | case "(($ac_try" in | |
3055 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3056 | *) ac_try_echo=$ac_try;; | |
3057 | esac | |
ec6a6fbe AK |
3058 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3059 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 3060 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 3061 | ac_status=$? |
7a197a62 AK |
3062 | grep -v '^ *+' conftest.er1 >conftest.err |
3063 | rm -f conftest.er1 | |
3064 | cat conftest.err >&5 | |
ec6a6fbe | 3065 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
3066 | (exit $ac_status); } && { |
3067 | test -z "$ac_c_werror_flag" || | |
3068 | test ! -s conftest.err | |
3069 | } && test -s conftest.$ac_objext; then | |
795ca3e5 AK |
3070 | ac_cv_prog_cc_g=yes |
3071 | else | |
ec6a6fbe | 3072 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 | 3073 | sed 's/^/| /' conftest.$ac_ext >&5 |
80992638 | 3074 | |
7a197a62 AK |
3075 | |
3076 | fi | |
3077 | ||
3078 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3079 | fi | |
3080 | ||
3081 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8106cdd5 | 3082 | fi |
7a197a62 AK |
3083 | |
3084 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3085 | ac_c_werror_flag=$ac_save_c_werror_flag | |
ad6254c5 | 3086 | fi |
ec6a6fbe AK |
3087 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
3088 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
795ca3e5 | 3089 | if test "$ac_test_CFLAGS" = set; then |
ad6254c5 | 3090 | CFLAGS=$ac_save_CFLAGS |
795ca3e5 AK |
3091 | elif test $ac_cv_prog_cc_g = yes; then |
3092 | if test "$GCC" = yes; then | |
3093 | CFLAGS="-g -O2" | |
3094 | else | |
3095 | CFLAGS="-g" | |
3096 | fi | |
3097 | else | |
3098 | if test "$GCC" = yes; then | |
3099 | CFLAGS="-O2" | |
3100 | else | |
3101 | CFLAGS= | |
3102 | fi | |
3103 | fi | |
ec6a6fbe AK |
3104 | { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
3105 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
7a197a62 | 3106 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
ec6a6fbe | 3107 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3108 | else |
7a197a62 | 3109 | ac_cv_prog_cc_c89=no |
ad6254c5 AK |
3110 | ac_save_CC=$CC |
3111 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3112 | /* confdefs.h. */ |
3113 | _ACEOF | |
3114 | cat confdefs.h >>conftest.$ac_ext | |
3115 | cat >>conftest.$ac_ext <<_ACEOF | |
3116 | /* end confdefs.h. */ | |
3117 | #include <stdarg.h> | |
3118 | #include <stdio.h> | |
3119 | #include <sys/types.h> | |
3120 | #include <sys/stat.h> | |
3121 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3122 | struct buf { int x; }; | |
3123 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3124 | static char *e (p, i) | |
3125 | char **p; | |
3126 | int i; | |
3127 | { | |
3128 | return p[i]; | |
3129 | } | |
3130 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3131 | { | |
3132 | char *s; | |
3133 | va_list v; | |
3134 | va_start (v,p); | |
3135 | s = g (p, va_arg (v,int)); | |
3136 | va_end (v); | |
3137 | return s; | |
3138 | } | |
8a2fc586 AK |
3139 | |
3140 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3141 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3142 | These don't provoke an error unfortunately, instead are silently treated | |
7a197a62 | 3143 | as 'x'. The following induces an error, until -std is added to get |
8a2fc586 AK |
3144 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
3145 | array size at least. It's necessary to write '\x00'==0 to get something | |
7a197a62 | 3146 | that's true only with -std. */ |
8a2fc586 AK |
3147 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
3148 | ||
7a197a62 AK |
3149 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3150 | inside strings and character constants. */ | |
3151 | #define FOO(x) 'x' | |
3152 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3153 | ||
ad6254c5 AK |
3154 | int test (int i, double x); |
3155 | struct s1 {int (*f) (int a);}; | |
3156 | struct s2 {int (*f) (double a);}; | |
3157 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3158 | int argc; | |
3159 | char **argv; | |
3160 | int | |
3161 | main () | |
3162 | { | |
3163 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3164 | ; | |
3165 | return 0; | |
3166 | } | |
3167 | _ACEOF | |
7a197a62 AK |
3168 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3169 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
ad6254c5 AK |
3170 | do |
3171 | CC="$ac_save_CC $ac_arg" | |
3172 | rm -f conftest.$ac_objext | |
7a197a62 AK |
3173 | if { (ac_try="$ac_compile" |
3174 | case "(($ac_try" in | |
3175 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3176 | *) ac_try_echo=$ac_try;; | |
3177 | esac | |
ec6a6fbe AK |
3178 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3179 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 3180 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 3181 | ac_status=$? |
8a2fc586 AK |
3182 | grep -v '^ *+' conftest.er1 >conftest.err |
3183 | rm -f conftest.er1 | |
3184 | cat conftest.err >&5 | |
ec6a6fbe | 3185 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
3186 | (exit $ac_status); } && { |
3187 | test -z "$ac_c_werror_flag" || | |
3188 | test ! -s conftest.err | |
3189 | } && test -s conftest.$ac_objext; then | |
7a197a62 | 3190 | ac_cv_prog_cc_c89=$ac_arg |
ad6254c5 | 3191 | else |
ec6a6fbe | 3192 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
3193 | sed 's/^/| /' conftest.$ac_ext >&5 |
3194 | ||
7a197a62 | 3195 | |
ad6254c5 | 3196 | fi |
7a197a62 AK |
3197 | |
3198 | rm -f core conftest.err conftest.$ac_objext | |
3199 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
ad6254c5 | 3200 | done |
7a197a62 | 3201 | rm -f conftest.$ac_ext |
ad6254c5 AK |
3202 | CC=$ac_save_CC |
3203 | ||
3204 | fi | |
7a197a62 AK |
3205 | # AC_CACHE_VAL |
3206 | case "x$ac_cv_prog_cc_c89" in | |
3207 | x) | |
ec6a6fbe AK |
3208 | { $as_echo "$as_me:$LINENO: result: none needed" >&5 |
3209 | $as_echo "none needed" >&6; } ;; | |
7a197a62 | 3210 | xno) |
ec6a6fbe AK |
3211 | { $as_echo "$as_me:$LINENO: result: unsupported" >&5 |
3212 | $as_echo "unsupported" >&6; } ;; | |
ad6254c5 | 3213 | *) |
7a197a62 | 3214 | CC="$CC $ac_cv_prog_cc_c89" |
ec6a6fbe AK |
3215 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
3216 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
ad6254c5 AK |
3217 | esac |
3218 | ||
ad6254c5 | 3219 | |
ad6254c5 AK |
3220 | ac_ext=c |
3221 | ac_cpp='$CPP $CPPFLAGS' | |
3222 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3223 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3224 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
795ca3e5 | 3225 | |
d0191583 JM |
3226 | |
3227 | ||
3228 | ac_ext=c | |
3229 | ac_cpp='$CPP $CPPFLAGS' | |
3230 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3231 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3232 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ec6a6fbe AK |
3233 | { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
3234 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
d0191583 JM |
3235 | # On Suns, sometimes $CPP names a directory. |
3236 | if test -n "$CPP" && test -d "$CPP"; then | |
3237 | CPP= | |
3238 | fi | |
3239 | if test -z "$CPP"; then | |
3240 | if test "${ac_cv_prog_CPP+set}" = set; then | |
ec6a6fbe | 3241 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3242 | else |
d0191583 JM |
3243 | # Double quotes because CPP needs to be expanded |
3244 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3245 | do | |
3246 | ac_preproc_ok=false | |
3247 | for ac_c_preproc_warn_flag in '' yes | |
ad6254c5 | 3248 | do |
d0191583 JM |
3249 | # Use a header file that comes with gcc, so configuring glibc |
3250 | # with a fresh cross-compiler works. | |
3251 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3252 | # <limits.h> exists even on freestanding compilers. | |
3253 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3254 | # not just through cpp. "Syntax error" is here to catch this case. | |
3255 | cat >conftest.$ac_ext <<_ACEOF | |
3256 | /* confdefs.h. */ | |
3257 | _ACEOF | |
3258 | cat confdefs.h >>conftest.$ac_ext | |
3259 | cat >>conftest.$ac_ext <<_ACEOF | |
3260 | /* end confdefs.h. */ | |
3261 | #ifdef __STDC__ | |
3262 | # include <limits.h> | |
3263 | #else | |
3264 | # include <assert.h> | |
3265 | #endif | |
3266 | Syntax error | |
3267 | _ACEOF | |
3268 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3269 | case "(($ac_try" in | |
3270 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3271 | *) ac_try_echo=$ac_try;; | |
ad6254c5 | 3272 | esac |
ec6a6fbe AK |
3273 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3274 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
3275 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3276 | ac_status=$? | |
3277 | grep -v '^ *+' conftest.er1 >conftest.err | |
3278 | rm -f conftest.er1 | |
3279 | cat conftest.err >&5 | |
ec6a6fbe | 3280 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
3281 | (exit $ac_status); } >/dev/null && { |
3282 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3283 | test ! -s conftest.err | |
3284 | }; then | |
3285 | : | |
3286 | else | |
ec6a6fbe | 3287 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 3288 | sed 's/^/| /' conftest.$ac_ext >&5 |
795ca3e5 | 3289 | |
d0191583 JM |
3290 | # Broken: fails on valid input. |
3291 | continue | |
795ca3e5 | 3292 | fi |
795ca3e5 | 3293 | |
d0191583 | 3294 | rm -f conftest.err conftest.$ac_ext |
795ca3e5 | 3295 | |
d0191583 JM |
3296 | # OK, works on sane cases. Now check whether nonexistent headers |
3297 | # can be detected and how. | |
3298 | cat >conftest.$ac_ext <<_ACEOF | |
3299 | /* confdefs.h. */ | |
3300 | _ACEOF | |
3301 | cat confdefs.h >>conftest.$ac_ext | |
3302 | cat >>conftest.$ac_ext <<_ACEOF | |
3303 | /* end confdefs.h. */ | |
3304 | #include <ac_nonexistent.h> | |
3305 | _ACEOF | |
3306 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3307 | case "(($ac_try" in | |
3308 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3309 | *) ac_try_echo=$ac_try;; | |
3310 | esac | |
ec6a6fbe AK |
3311 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3312 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
3313 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3314 | ac_status=$? | |
3315 | grep -v '^ *+' conftest.er1 >conftest.err | |
3316 | rm -f conftest.er1 | |
3317 | cat conftest.err >&5 | |
ec6a6fbe | 3318 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
3319 | (exit $ac_status); } >/dev/null && { |
3320 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3321 | test ! -s conftest.err | |
3322 | }; then | |
3323 | # Broken: success on invalid input. | |
3324 | continue | |
3325 | else | |
ec6a6fbe | 3326 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 3327 | sed 's/^/| /' conftest.$ac_ext >&5 |
795ca3e5 | 3328 | |
d0191583 JM |
3329 | # Passes both tests. |
3330 | ac_preproc_ok=: | |
3331 | break | |
3332 | fi | |
795ca3e5 | 3333 | |
d0191583 JM |
3334 | rm -f conftest.err conftest.$ac_ext |
3335 | ||
3336 | done | |
3337 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3338 | rm -f conftest.err conftest.$ac_ext | |
3339 | if $ac_preproc_ok; then | |
3340 | break | |
795ca3e5 AK |
3341 | fi |
3342 | ||
d0191583 JM |
3343 | done |
3344 | ac_cv_prog_CPP=$CPP | |
3345 | ||
3346 | fi | |
3347 | CPP=$ac_cv_prog_CPP | |
795ca3e5 | 3348 | else |
d0191583 JM |
3349 | ac_cv_prog_CPP=$CPP |
3350 | fi | |
ec6a6fbe AK |
3351 | { $as_echo "$as_me:$LINENO: result: $CPP" >&5 |
3352 | $as_echo "$CPP" >&6; } | |
d0191583 JM |
3353 | ac_preproc_ok=false |
3354 | for ac_c_preproc_warn_flag in '' yes | |
3355 | do | |
3356 | # Use a header file that comes with gcc, so configuring glibc | |
3357 | # with a fresh cross-compiler works. | |
3358 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3359 | # <limits.h> exists even on freestanding compilers. | |
3360 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3361 | # not just through cpp. "Syntax error" is here to catch this case. | |
3362 | cat >conftest.$ac_ext <<_ACEOF | |
3363 | /* confdefs.h. */ | |
ad6254c5 | 3364 | _ACEOF |
d0191583 JM |
3365 | cat confdefs.h >>conftest.$ac_ext |
3366 | cat >>conftest.$ac_ext <<_ACEOF | |
3367 | /* end confdefs.h. */ | |
3368 | #ifdef __STDC__ | |
3369 | # include <limits.h> | |
3370 | #else | |
3371 | # include <assert.h> | |
3372 | #endif | |
3373 | Syntax error | |
3374 | _ACEOF | |
3375 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3376 | case "(($ac_try" in | |
3377 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3378 | *) ac_try_echo=$ac_try;; | |
7a197a62 | 3379 | esac |
ec6a6fbe AK |
3380 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3381 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
3382 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3383 | ac_status=$? | |
3384 | grep -v '^ *+' conftest.er1 >conftest.err | |
3385 | rm -f conftest.er1 | |
3386 | cat conftest.err >&5 | |
ec6a6fbe | 3387 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
3388 | (exit $ac_status); } >/dev/null && { |
3389 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3390 | test ! -s conftest.err | |
3391 | }; then | |
3392 | : | |
795ca3e5 | 3393 | else |
ec6a6fbe | 3394 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 JM |
3395 | sed 's/^/| /' conftest.$ac_ext >&5 |
3396 | ||
3397 | # Broken: fails on valid input. | |
3398 | continue | |
795ca3e5 AK |
3399 | fi |
3400 | ||
d0191583 JM |
3401 | rm -f conftest.err conftest.$ac_ext |
3402 | ||
3403 | # OK, works on sane cases. Now check whether nonexistent headers | |
3404 | # can be detected and how. | |
3405 | cat >conftest.$ac_ext <<_ACEOF | |
3406 | /* confdefs.h. */ | |
3407 | _ACEOF | |
3408 | cat confdefs.h >>conftest.$ac_ext | |
3409 | cat >>conftest.$ac_ext <<_ACEOF | |
3410 | /* end confdefs.h. */ | |
3411 | #include <ac_nonexistent.h> | |
3412 | _ACEOF | |
3413 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3414 | case "(($ac_try" in | |
3415 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3416 | *) ac_try_echo=$ac_try;; | |
3417 | esac | |
ec6a6fbe AK |
3418 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3419 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
3420 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3421 | ac_status=$? | |
3422 | grep -v '^ *+' conftest.er1 >conftest.err | |
3423 | rm -f conftest.er1 | |
3424 | cat conftest.err >&5 | |
ec6a6fbe | 3425 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
3426 | (exit $ac_status); } >/dev/null && { |
3427 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3428 | test ! -s conftest.err | |
3429 | }; then | |
3430 | # Broken: success on invalid input. | |
3431 | continue | |
795ca3e5 | 3432 | else |
ec6a6fbe | 3433 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 3434 | sed 's/^/| /' conftest.$ac_ext >&5 |
ad6254c5 | 3435 | |
d0191583 JM |
3436 | # Passes both tests. |
3437 | ac_preproc_ok=: | |
3438 | break | |
795ca3e5 | 3439 | fi |
d0191583 JM |
3440 | |
3441 | rm -f conftest.err conftest.$ac_ext | |
3442 | ||
3443 | done | |
3444 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3445 | rm -f conftest.err conftest.$ac_ext | |
3446 | if $ac_preproc_ok; then | |
3447 | : | |
8106cdd5 | 3448 | else |
ec6a6fbe AK |
3449 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
3450 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3451 | { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
d0191583 | 3452 | See \`config.log' for more details." >&5 |
ec6a6fbe | 3453 | $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
d0191583 | 3454 | See \`config.log' for more details." >&2;} |
ec6a6fbe | 3455 | { (exit 1); exit 1; }; }; } |
8106cdd5 AK |
3456 | fi |
3457 | ||
d0191583 JM |
3458 | ac_ext=c |
3459 | ac_cpp='$CPP $CPPFLAGS' | |
3460 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3461 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3462 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3463 | ||
7a197a62 | 3464 | |
ec6a6fbe AK |
3465 | { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
3466 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
5556819a | 3467 | if test "${ac_cv_path_GREP+set}" = set; then |
ec6a6fbe | 3468 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3469 | else |
ec6a6fbe | 3470 | if test -z "$GREP"; then |
d0191583 | 3471 | ac_path_GREP_found=false |
ec6a6fbe AK |
3472 | # Loop through the user's path and test for each of PROGNAME-LIST |
3473 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
d0191583 | 3474 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
ad6254c5 AK |
3475 | do |
3476 | IFS=$as_save_IFS | |
3477 | test -z "$as_dir" && as_dir=. | |
d0191583 | 3478 | for ac_prog in grep ggrep; do |
ec6a6fbe AK |
3479 | for ac_exec_ext in '' $ac_executable_extensions; do |
3480 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
3481 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
3482 | # Check for GNU ac_path_GREP and select it if it is found. | |
d0191583 JM |
3483 | # Check for GNU $ac_path_GREP |
3484 | case `"$ac_path_GREP" --version 2>&1` in | |
3485 | *GNU*) | |
3486 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
3487 | *) | |
3488 | ac_count=0 | |
ec6a6fbe | 3489 | $as_echo_n 0123456789 >"conftest.in" |
d0191583 JM |
3490 | while : |
3491 | do | |
3492 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3493 | mv "conftest.tmp" "conftest.in" | |
3494 | cp "conftest.in" "conftest.nl" | |
ec6a6fbe | 3495 | $as_echo 'GREP' >> "conftest.nl" |
d0191583 JM |
3496 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
3497 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3498 | ac_count=`expr $ac_count + 1` | |
3499 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
3500 | # Best one so far, save it but keep looking for a better one | |
3501 | ac_cv_path_GREP="$ac_path_GREP" | |
3502 | ac_path_GREP_max=$ac_count | |
3503 | fi | |
3504 | # 10*(2^10) chars as input seems more than enough | |
3505 | test $ac_count -gt 10 && break | |
3506 | done | |
3507 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3508 | esac | |
3509 | ||
ec6a6fbe AK |
3510 | $ac_path_GREP_found && break 3 |
3511 | done | |
d0191583 | 3512 | done |
ad6254c5 | 3513 | done |
7a197a62 | 3514 | IFS=$as_save_IFS |
ec6a6fbe AK |
3515 | if test -z "$ac_cv_path_GREP"; then |
3516 | { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
3517 | $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
d0191583 | 3518 | { (exit 1); exit 1; }; } |
ec6a6fbe | 3519 | fi |
80992638 | 3520 | else |
d0191583 | 3521 | ac_cv_path_GREP=$GREP |
8106cdd5 | 3522 | fi |
8106cdd5 | 3523 | |
80992638 | 3524 | fi |
ec6a6fbe AK |
3525 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
3526 | $as_echo "$ac_cv_path_GREP" >&6; } | |
d0191583 | 3527 | GREP="$ac_cv_path_GREP" |
795ca3e5 | 3528 | |
d0191583 | 3529 | |
ec6a6fbe AK |
3530 | { $as_echo "$as_me:$LINENO: checking for egrep" >&5 |
3531 | $as_echo_n "checking for egrep... " >&6; } | |
d0191583 | 3532 | if test "${ac_cv_path_EGREP+set}" = set; then |
ec6a6fbe | 3533 | $as_echo_n "(cached) " >&6 |
8a2fc586 | 3534 | else |
d0191583 JM |
3535 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
3536 | then ac_cv_path_EGREP="$GREP -E" | |
3537 | else | |
ec6a6fbe | 3538 | if test -z "$EGREP"; then |
d0191583 | 3539 | ac_path_EGREP_found=false |
ec6a6fbe AK |
3540 | # Loop through the user's path and test for each of PROGNAME-LIST |
3541 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
d0191583 | 3542 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
8a2fc586 AK |
3543 | do |
3544 | IFS=$as_save_IFS | |
3545 | test -z "$as_dir" && as_dir=. | |
d0191583 | 3546 | for ac_prog in egrep; do |
ec6a6fbe AK |
3547 | for ac_exec_ext in '' $ac_executable_extensions; do |
3548 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
3549 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
3550 | # Check for GNU ac_path_EGREP and select it if it is found. | |
d0191583 JM |
3551 | # Check for GNU $ac_path_EGREP |
3552 | case `"$ac_path_EGREP" --version 2>&1` in | |
3553 | *GNU*) | |
3554 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
3555 | *) | |
3556 | ac_count=0 | |
ec6a6fbe | 3557 | $as_echo_n 0123456789 >"conftest.in" |
d0191583 JM |
3558 | while : |
3559 | do | |
3560 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3561 | mv "conftest.tmp" "conftest.in" | |
3562 | cp "conftest.in" "conftest.nl" | |
ec6a6fbe | 3563 | $as_echo 'EGREP' >> "conftest.nl" |
d0191583 JM |
3564 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
3565 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3566 | ac_count=`expr $ac_count + 1` | |
3567 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
3568 | # Best one so far, save it but keep looking for a better one | |
3569 | ac_cv_path_EGREP="$ac_path_EGREP" | |
3570 | ac_path_EGREP_max=$ac_count | |
3571 | fi | |
3572 | # 10*(2^10) chars as input seems more than enough | |
3573 | test $ac_count -gt 10 && break | |
3574 | done | |
3575 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
8a2fc586 | 3576 | esac |
8a2fc586 | 3577 | |
ec6a6fbe AK |
3578 | $ac_path_EGREP_found && break 3 |
3579 | done | |
d0191583 | 3580 | done |
8a2fc586 | 3581 | done |
7a197a62 | 3582 | IFS=$as_save_IFS |
ec6a6fbe AK |
3583 | if test -z "$ac_cv_path_EGREP"; then |
3584 | { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
3585 | $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
d0191583 | 3586 | { (exit 1); exit 1; }; } |
ec6a6fbe | 3587 | fi |
d0191583 JM |
3588 | else |
3589 | ac_cv_path_EGREP=$EGREP | |
3590 | fi | |
ad6254c5 | 3591 | |
d0191583 JM |
3592 | fi |
3593 | fi | |
ec6a6fbe AK |
3594 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
3595 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
d0191583 | 3596 | EGREP="$ac_cv_path_EGREP" |
ad6254c5 AK |
3597 | |
3598 | ||
d0191583 | 3599 | if test $ac_cv_c_compiler_gnu = yes; then |
ec6a6fbe AK |
3600 | { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 |
3601 | $as_echo_n "checking whether $CC needs -traditional... " >&6; } | |
d0191583 | 3602 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then |
ec6a6fbe | 3603 | $as_echo_n "(cached) " >&6 |
8106cdd5 | 3604 | else |
d0191583 | 3605 | ac_pattern="Autoconf.*'x'" |
ad6254c5 | 3606 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
3607 | /* confdefs.h. */ |
3608 | _ACEOF | |
3609 | cat confdefs.h >>conftest.$ac_ext | |
3610 | cat >>conftest.$ac_ext <<_ACEOF | |
3611 | /* end confdefs.h. */ | |
d0191583 JM |
3612 | #include <sgtty.h> |
3613 | Autoconf TIOCGETP | |
ad6254c5 | 3614 | _ACEOF |
d0191583 JM |
3615 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
3616 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
3617 | ac_cv_prog_gcc_traditional=yes | |
8106cdd5 | 3618 | else |
d0191583 | 3619 | ac_cv_prog_gcc_traditional=no |
80992638 | 3620 | fi |
d0191583 | 3621 | rm -f conftest* |
ad6254c5 | 3622 | |
8106cdd5 | 3623 | |
d0191583 JM |
3624 | if test $ac_cv_prog_gcc_traditional = no; then |
3625 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3626 | /* confdefs.h. */ |
3627 | _ACEOF | |
3628 | cat confdefs.h >>conftest.$ac_ext | |
3629 | cat >>conftest.$ac_ext <<_ACEOF | |
3630 | /* end confdefs.h. */ | |
d0191583 JM |
3631 | #include <termio.h> |
3632 | Autoconf TCGETA | |
ad6254c5 | 3633 | _ACEOF |
d0191583 JM |
3634 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
3635 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
3636 | ac_cv_prog_gcc_traditional=yes | |
7a197a62 | 3637 | fi |
d0191583 | 3638 | rm -f conftest* |
795ca3e5 | 3639 | |
d0191583 | 3640 | fi |
795ca3e5 | 3641 | fi |
ec6a6fbe AK |
3642 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 |
3643 | $as_echo "$ac_cv_prog_gcc_traditional" >&6; } | |
d0191583 JM |
3644 | if test $ac_cv_prog_gcc_traditional = yes; then |
3645 | CC="$CC -traditional" | |
3646 | fi | |
795ca3e5 AK |
3647 | fi |
3648 | ||
d0191583 JM |
3649 | # Find a good install program. We prefer a C program (faster), |
3650 | # so one script is as good as another. But avoid the broken or | |
3651 | # incompatible versions: | |
3652 | # SysV /etc/install, /usr/sbin/install | |
3653 | # SunOS /usr/etc/install | |
3654 | # IRIX /sbin/install | |
3655 | # AIX /bin/install | |
3656 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
3657 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
3658 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
3659 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
3660 | # OS/2's system install, which has a completely different semantic | |
3661 | # ./install, which can be erroneously created by make from ./install.sh. | |
ec6a6fbe AK |
3662 | # Reject install programs that cannot install multiple files. |
3663 | { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
3664 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
d0191583 JM |
3665 | if test -z "$INSTALL"; then |
3666 | if test "${ac_cv_path_install+set}" = set; then | |
ec6a6fbe | 3667 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3668 | else |
d0191583 JM |
3669 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3670 | for as_dir in $PATH | |
3671 | do | |
3672 | IFS=$as_save_IFS | |
3673 | test -z "$as_dir" && as_dir=. | |
3674 | # Account for people who put trailing slashes in PATH elements. | |
3675 | case $as_dir/ in | |
3676 | ./ | .// | /cC/* | \ | |
3677 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
3678 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
3679 | /usr/ucb/* ) ;; | |
3680 | *) | |
3681 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
3682 | # Don't use installbsd from OSF since it installs stuff as root | |
3683 | # by default. | |
3684 | for ac_prog in ginstall scoinst install; do | |
3685 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3686 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | |
3687 | if test $ac_prog = install && | |
3688 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3689 | # AIX install. It has an incompatible calling convention. | |
3690 | : | |
3691 | elif test $ac_prog = install && | |
3692 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3693 | # program-specific install script used by HP pwplus--don't use. | |
3694 | : | |
3695 | else | |
ec6a6fbe AK |
3696 | rm -rf conftest.one conftest.two conftest.dir |
3697 | echo one > conftest.one | |
3698 | echo two > conftest.two | |
3699 | mkdir conftest.dir | |
3700 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
3701 | test -s conftest.one && test -s conftest.two && | |
3702 | test -s conftest.dir/conftest.one && | |
3703 | test -s conftest.dir/conftest.two | |
3704 | then | |
3705 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
3706 | break 3 | |
3707 | fi | |
d0191583 JM |
3708 | fi |
3709 | fi | |
3710 | done | |
3711 | done | |
3712 | ;; | |
3713 | esac | |
ec6a6fbe | 3714 | |
d0191583 JM |
3715 | done |
3716 | IFS=$as_save_IFS | |
80992638 | 3717 | |
ec6a6fbe | 3718 | rm -rf conftest.one conftest.two conftest.dir |
d0191583 JM |
3719 | |
3720 | fi | |
3721 | if test "${ac_cv_path_install+set}" = set; then | |
3722 | INSTALL=$ac_cv_path_install | |
7a197a62 | 3723 | else |
d0191583 JM |
3724 | # As a last resort, use the slow shell script. Don't cache a |
3725 | # value for INSTALL within a source directory, because that will | |
3726 | # break other packages using the cache if that directory is | |
3727 | # removed, or if the value is a relative name. | |
3728 | INSTALL=$ac_install_sh | |
7a197a62 | 3729 | fi |
d0191583 | 3730 | fi |
ec6a6fbe AK |
3731 | { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 |
3732 | $as_echo "$INSTALL" >&6; } | |
ad6254c5 | 3733 | |
d0191583 JM |
3734 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
3735 | # It thinks the first close brace ends the variable substitution. | |
3736 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
ad6254c5 | 3737 | |
d0191583 | 3738 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
80992638 | 3739 | |
d0191583 JM |
3740 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
3741 | ||
ec6a6fbe AK |
3742 | { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
3743 | $as_echo_n "checking whether ln -s works... " >&6; } | |
d0191583 JM |
3744 | LN_S=$as_ln_s |
3745 | if test "$LN_S" = "ln -s"; then | |
ec6a6fbe AK |
3746 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
3747 | $as_echo "yes" >&6; } | |
d0191583 | 3748 | else |
ec6a6fbe AK |
3749 | { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
3750 | $as_echo "no, using $LN_S" >&6; } | |
795ca3e5 | 3751 | fi |
d0191583 | 3752 | |
ec6a6fbe AK |
3753 | { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
3754 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
3755 | set x ${MAKE-make} | |
3756 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
d0191583 | 3757 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 3758 | $as_echo_n "(cached) " >&6 |
7a197a62 | 3759 | else |
d0191583 JM |
3760 | cat >conftest.make <<\_ACEOF |
3761 | SHELL = /bin/sh | |
3762 | all: | |
3763 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
3764 | _ACEOF | |
3765 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
3766 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
3767 | *@@@%%%=?*=@@@%%%*) | |
3768 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
3769 | *) | |
3770 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
3771 | esac | |
3772 | rm -f conftest.make | |
ad6254c5 | 3773 | fi |
d0191583 | 3774 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
ec6a6fbe AK |
3775 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
3776 | $as_echo "yes" >&6; } | |
d0191583 JM |
3777 | SET_MAKE= |
3778 | else | |
ec6a6fbe AK |
3779 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
3780 | $as_echo "no" >&6; } | |
d0191583 | 3781 | SET_MAKE="MAKE=${MAKE-make}" |
795ca3e5 | 3782 | fi |
8106cdd5 | 3783 | |
ec6a6fbe AK |
3784 | { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 |
3785 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
5556819a AK |
3786 | if test -z "$MKDIR_P"; then |
3787 | if test "${ac_cv_path_mkdir+set}" = set; then | |
ec6a6fbe | 3788 | $as_echo_n "(cached) " >&6 |
5556819a AK |
3789 | else |
3790 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3791 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
3792 | do | |
3793 | IFS=$as_save_IFS | |
3794 | test -z "$as_dir" && as_dir=. | |
3795 | for ac_prog in mkdir gmkdir; do | |
3796 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3797 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue | |
3798 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
3799 | 'mkdir (GNU coreutils) '* | \ | |
3800 | 'mkdir (coreutils) '* | \ | |
3801 | 'mkdir (fileutils) '4.1*) | |
3802 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
3803 | break 3;; | |
3804 | esac | |
3805 | done | |
3806 | done | |
3807 | done | |
3808 | IFS=$as_save_IFS | |
3809 | ||
3810 | fi | |
3811 | ||
3812 | if test "${ac_cv_path_mkdir+set}" = set; then | |
3813 | MKDIR_P="$ac_cv_path_mkdir -p" | |
3814 | else | |
3815 | # As a last resort, use the slow shell script. Don't cache a | |
3816 | # value for MKDIR_P within a source directory, because that will | |
3817 | # break other packages using the cache if that directory is | |
3818 | # removed, or if the value is a relative name. | |
3819 | test -d ./--version && rmdir ./--version | |
3820 | MKDIR_P="$ac_install_sh -d" | |
3821 | fi | |
3822 | fi | |
ec6a6fbe AK |
3823 | { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5 |
3824 | $as_echo "$MKDIR_P" >&6; } | |
5556819a | 3825 | |
d0191583 JM |
3826 | if test -n "$ac_tool_prefix"; then |
3827 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
3828 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
ec6a6fbe AK |
3829 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3830 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0191583 | 3831 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
ec6a6fbe | 3832 | $as_echo_n "(cached) " >&6 |
d0191583 JM |
3833 | else |
3834 | if test -n "$RANLIB"; then | |
3835 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
3836 | else | |
3837 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3838 | for as_dir in $PATH | |
3839 | do | |
3840 | IFS=$as_save_IFS | |
3841 | test -z "$as_dir" && as_dir=. | |
3842 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3843 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3844 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
ec6a6fbe | 3845 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d0191583 JM |
3846 | break 2 |
3847 | fi | |
3848 | done | |
3849 | done | |
3850 | IFS=$as_save_IFS | |
8106cdd5 | 3851 | |
795ca3e5 | 3852 | fi |
d0191583 JM |
3853 | fi |
3854 | RANLIB=$ac_cv_prog_RANLIB | |
3855 | if test -n "$RANLIB"; then | |
ec6a6fbe AK |
3856 | { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 |
3857 | $as_echo "$RANLIB" >&6; } | |
d0191583 | 3858 | else |
ec6a6fbe AK |
3859 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
3860 | $as_echo "no" >&6; } | |
d0191583 JM |
3861 | fi |
3862 | ||
8106cdd5 | 3863 | |
ad6254c5 | 3864 | fi |
d0191583 JM |
3865 | if test -z "$ac_cv_prog_RANLIB"; then |
3866 | ac_ct_RANLIB=$RANLIB | |
3867 | # Extract the first word of "ranlib", so it can be a program name with args. | |
3868 | set dummy ranlib; ac_word=$2 | |
ec6a6fbe AK |
3869 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3870 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0191583 | 3871 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
ec6a6fbe | 3872 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3873 | else |
d0191583 JM |
3874 | if test -n "$ac_ct_RANLIB"; then |
3875 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
3876 | else | |
3877 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3878 | for as_dir in $PATH | |
8106cdd5 | 3879 | do |
d0191583 JM |
3880 | IFS=$as_save_IFS |
3881 | test -z "$as_dir" && as_dir=. | |
3882 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3883 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3884 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
ec6a6fbe | 3885 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d0191583 JM |
3886 | break 2 |
3887 | fi | |
3888 | done | |
3889 | done | |
3890 | IFS=$as_save_IFS | |
3891 | ||
3892 | fi | |
3893 | fi | |
3894 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
3895 | if test -n "$ac_ct_RANLIB"; then | |
ec6a6fbe AK |
3896 | { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
3897 | $as_echo "$ac_ct_RANLIB" >&6; } | |
ad6254c5 | 3898 | else |
ec6a6fbe AK |
3899 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
3900 | $as_echo "no" >&6; } | |
d0191583 | 3901 | fi |
ad6254c5 | 3902 | |
d0191583 JM |
3903 | if test "x$ac_ct_RANLIB" = x; then |
3904 | RANLIB=":" | |
3905 | else | |
3906 | case $cross_compiling:$ac_tool_warned in | |
3907 | yes:) | |
ec6a6fbe AK |
3908 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
3909 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
d0191583 JM |
3910 | ac_tool_warned=yes ;; |
3911 | esac | |
3912 | RANLIB=$ac_ct_RANLIB | |
3913 | fi | |
3914 | else | |
3915 | RANLIB="$ac_cv_prog_RANLIB" | |
ad6254c5 | 3916 | fi |
7a197a62 | 3917 | |
d0191583 JM |
3918 | # Extract the first word of "cflow", so it can be a program name with args. |
3919 | set dummy cflow; ac_word=$2 | |
ec6a6fbe AK |
3920 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3921 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0191583 | 3922 | if test "${ac_cv_path_CFLOW_CMD+set}" = set; then |
ec6a6fbe | 3923 | $as_echo_n "(cached) " >&6 |
d0191583 JM |
3924 | else |
3925 | case $CFLOW_CMD in | |
3926 | [\\/]* | ?:[\\/]*) | |
3927 | ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path. | |
3928 | ;; | |
3929 | *) | |
3930 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3931 | for as_dir in $PATH | |
3932 | do | |
3933 | IFS=$as_save_IFS | |
3934 | test -z "$as_dir" && as_dir=. | |
3935 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3936 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3937 | ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext" | |
ec6a6fbe | 3938 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d0191583 JM |
3939 | break 2 |
3940 | fi | |
3941 | done | |
3942 | done | |
3943 | IFS=$as_save_IFS | |
ad6254c5 | 3944 | |
d0191583 | 3945 | ;; |
7a197a62 | 3946 | esac |
d0191583 JM |
3947 | fi |
3948 | CFLOW_CMD=$ac_cv_path_CFLOW_CMD | |
3949 | if test -n "$CFLOW_CMD"; then | |
ec6a6fbe AK |
3950 | { $as_echo "$as_me:$LINENO: result: $CFLOW_CMD" >&5 |
3951 | $as_echo "$CFLOW_CMD" >&6; } | |
80992638 | 3952 | else |
ec6a6fbe AK |
3953 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
3954 | $as_echo "no" >&6; } | |
795ca3e5 | 3955 | fi |
7a197a62 | 3956 | |
ad6254c5 | 3957 | |
d0191583 JM |
3958 | # Extract the first word of "cscope", so it can be a program name with args. |
3959 | set dummy cscope; ac_word=$2 | |
ec6a6fbe AK |
3960 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3961 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0191583 | 3962 | if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then |
ec6a6fbe | 3963 | $as_echo_n "(cached) " >&6 |
d0191583 JM |
3964 | else |
3965 | case $CSCOPE_CMD in | |
3966 | [\\/]* | ?:[\\/]*) | |
3967 | ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path. | |
3968 | ;; | |
3969 | *) | |
3970 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3971 | for as_dir in $PATH | |
3972 | do | |
3973 | IFS=$as_save_IFS | |
3974 | test -z "$as_dir" && as_dir=. | |
3975 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3976 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3977 | ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext" | |
ec6a6fbe | 3978 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d0191583 JM |
3979 | break 2 |
3980 | fi | |
795ca3e5 | 3981 | done |
d0191583 JM |
3982 | done |
3983 | IFS=$as_save_IFS | |
795ca3e5 | 3984 | |
d0191583 JM |
3985 | ;; |
3986 | esac | |
ad6254c5 | 3987 | fi |
d0191583 JM |
3988 | CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD |
3989 | if test -n "$CSCOPE_CMD"; then | |
ec6a6fbe AK |
3990 | { $as_echo "$as_me:$LINENO: result: $CSCOPE_CMD" >&5 |
3991 | $as_echo "$CSCOPE_CMD" >&6; } | |
795ca3e5 | 3992 | else |
ec6a6fbe AK |
3993 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
3994 | $as_echo "no" >&6; } | |
795ca3e5 | 3995 | fi |
ad6254c5 | 3996 | |
7a197a62 | 3997 | |
ad6254c5 | 3998 | |
d0191583 JM |
3999 | ################################################################################ |
4000 | ||
4001 | ||
4002 | ||
4003 | ||
4004 | ||
4005 | ac_header_dirent=no | |
4006 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do | |
ec6a6fbe AK |
4007 | as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
4008 | { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 | |
4009 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } | |
d0191583 | 4010 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 4011 | $as_echo_n "(cached) " >&6 |
d0191583 | 4012 | else |
ad6254c5 | 4013 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4014 | /* confdefs.h. */ |
4015 | _ACEOF | |
4016 | cat confdefs.h >>conftest.$ac_ext | |
4017 | cat >>conftest.$ac_ext <<_ACEOF | |
4018 | /* end confdefs.h. */ | |
d0191583 JM |
4019 | #include <sys/types.h> |
4020 | #include <$ac_hdr> | |
4021 | ||
4022 | int | |
4023 | main () | |
4024 | { | |
4025 | if ((DIR *) 0) | |
4026 | return 0; | |
4027 | ; | |
4028 | return 0; | |
4029 | } | |
ad6254c5 | 4030 | _ACEOF |
d0191583 JM |
4031 | rm -f conftest.$ac_objext |
4032 | if { (ac_try="$ac_compile" | |
7a197a62 AK |
4033 | case "(($ac_try" in |
4034 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4035 | *) ac_try_echo=$ac_try;; | |
4036 | esac | |
ec6a6fbe AK |
4037 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4038 | $as_echo "$ac_try_echo") >&5 | |
d0191583 | 4039 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 AK |
4040 | ac_status=$? |
4041 | grep -v '^ *+' conftest.er1 >conftest.err | |
4042 | rm -f conftest.er1 | |
4043 | cat conftest.err >&5 | |
ec6a6fbe | 4044 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
4045 | (exit $ac_status); } && { |
4046 | test -z "$ac_c_werror_flag" || | |
25fbec5b | 4047 | test ! -s conftest.err |
d0191583 JM |
4048 | } && test -s conftest.$ac_objext; then |
4049 | eval "$as_ac_Header=yes" | |
ad6254c5 | 4050 | else |
ec6a6fbe | 4051 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 | 4052 | sed 's/^/| /' conftest.$ac_ext >&5 |
8106cdd5 | 4053 | |
d0191583 | 4054 | eval "$as_ac_Header=no" |
795ca3e5 | 4055 | fi |
7a197a62 | 4056 | |
d0191583 | 4057 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
795ca3e5 | 4058 | fi |
ec6a6fbe AK |
4059 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
4060 | $as_echo "$as_val"'` | |
4061 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4062 | $as_echo "$ac_res" >&6; } | |
4063 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
4064 | $as_echo "$as_val"'` | |
4065 | if test "x$as_val" = x""yes; then | |
d0191583 | 4066 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 4067 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
d0191583 | 4068 | _ACEOF |
795ca3e5 | 4069 | |
d0191583 JM |
4070 | ac_header_dirent=$ac_hdr; break |
4071 | fi | |
ad6254c5 | 4072 | |
d0191583 JM |
4073 | done |
4074 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | |
4075 | if test $ac_header_dirent = dirent.h; then | |
ec6a6fbe AK |
4076 | { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
4077 | $as_echo_n "checking for library containing opendir... " >&6; } | |
d0191583 | 4078 | if test "${ac_cv_search_opendir+set}" = set; then |
ec6a6fbe | 4079 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 4080 | else |
d0191583 JM |
4081 | ac_func_search_save_LIBS=$LIBS |
4082 | cat >conftest.$ac_ext <<_ACEOF | |
4083 | /* confdefs.h. */ | |
4084 | _ACEOF | |
4085 | cat confdefs.h >>conftest.$ac_ext | |
4086 | cat >>conftest.$ac_ext <<_ACEOF | |
4087 | /* end confdefs.h. */ | |
ad6254c5 | 4088 | |
d0191583 JM |
4089 | /* Override any GCC internal prototype to avoid an error. |
4090 | Use char because int might match the return type of a GCC | |
4091 | builtin and then its argument prototype would still apply. */ | |
4092 | #ifdef __cplusplus | |
4093 | extern "C" | |
4094 | #endif | |
4095 | char opendir (); | |
4096 | int | |
4097 | main () | |
4098 | { | |
4099 | return opendir (); | |
4100 | ; | |
4101 | return 0; | |
4102 | } | |
4103 | _ACEOF | |
4104 | for ac_lib in '' dir; do | |
4105 | if test -z "$ac_lib"; then | |
4106 | ac_res="none required" | |
4107 | else | |
4108 | ac_res=-l$ac_lib | |
4109 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
4110 | fi | |
4111 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4112 | if { (ac_try="$ac_link" | |
4113 | case "(($ac_try" in | |
4114 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4115 | *) ac_try_echo=$ac_try;; | |
4116 | esac | |
ec6a6fbe AK |
4117 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4118 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
4119 | (eval "$ac_link") 2>conftest.er1 |
4120 | ac_status=$? | |
4121 | grep -v '^ *+' conftest.er1 >conftest.err | |
4122 | rm -f conftest.er1 | |
4123 | cat conftest.err >&5 | |
ec6a6fbe | 4124 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
4125 | (exit $ac_status); } && { |
4126 | test -z "$ac_c_werror_flag" || | |
4127 | test ! -s conftest.err | |
ec6a6fbe AK |
4128 | } && test -s conftest$ac_exeext && { |
4129 | test "$cross_compiling" = yes || | |
4130 | $as_test_x conftest$ac_exeext | |
4131 | }; then | |
d0191583 JM |
4132 | ac_cv_search_opendir=$ac_res |
4133 | else | |
ec6a6fbe | 4134 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 4135 | sed 's/^/| /' conftest.$ac_ext >&5 |
ad6254c5 | 4136 | |
ad6254c5 | 4137 | |
795ca3e5 | 4138 | fi |
ad6254c5 | 4139 | |
ec6a6fbe | 4140 | rm -rf conftest.dSYM |
d0191583 JM |
4141 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
4142 | conftest$ac_exeext | |
4143 | if test "${ac_cv_search_opendir+set}" = set; then | |
4144 | break | |
7a197a62 | 4145 | fi |
d0191583 JM |
4146 | done |
4147 | if test "${ac_cv_search_opendir+set}" = set; then | |
4148 | : | |
7a197a62 | 4149 | else |
d0191583 | 4150 | ac_cv_search_opendir=no |
7a197a62 | 4151 | fi |
d0191583 JM |
4152 | rm conftest.$ac_ext |
4153 | LIBS=$ac_func_search_save_LIBS | |
7a197a62 | 4154 | fi |
ec6a6fbe AK |
4155 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
4156 | $as_echo "$ac_cv_search_opendir" >&6; } | |
d0191583 JM |
4157 | ac_res=$ac_cv_search_opendir |
4158 | if test "$ac_res" != no; then | |
4159 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
7a197a62 | 4160 | |
d0191583 | 4161 | fi |
7a197a62 | 4162 | |
7a197a62 | 4163 | else |
ec6a6fbe AK |
4164 | { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
4165 | $as_echo_n "checking for library containing opendir... " >&6; } | |
d0191583 | 4166 | if test "${ac_cv_search_opendir+set}" = set; then |
ec6a6fbe | 4167 | $as_echo_n "(cached) " >&6 |
7a197a62 | 4168 | else |
d0191583 JM |
4169 | ac_func_search_save_LIBS=$LIBS |
4170 | cat >conftest.$ac_ext <<_ACEOF | |
4171 | /* confdefs.h. */ | |
4172 | _ACEOF | |
4173 | cat confdefs.h >>conftest.$ac_ext | |
4174 | cat >>conftest.$ac_ext <<_ACEOF | |
4175 | /* end confdefs.h. */ | |
7a197a62 | 4176 | |
d0191583 JM |
4177 | /* Override any GCC internal prototype to avoid an error. |
4178 | Use char because int might match the return type of a GCC | |
4179 | builtin and then its argument prototype would still apply. */ | |
4180 | #ifdef __cplusplus | |
4181 | extern "C" | |
4182 | #endif | |
4183 | char opendir (); | |
4184 | int | |
4185 | main () | |
4186 | { | |
4187 | return opendir (); | |
4188 | ; | |
4189 | return 0; | |
4190 | } | |
4191 | _ACEOF | |
4192 | for ac_lib in '' x; do | |
4193 | if test -z "$ac_lib"; then | |
4194 | ac_res="none required" | |
4195 | else | |
4196 | ac_res=-l$ac_lib | |
4197 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
4198 | fi | |
4199 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4200 | if { (ac_try="$ac_link" | |
4201 | case "(($ac_try" in | |
4202 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4203 | *) ac_try_echo=$ac_try;; | |
4204 | esac | |
ec6a6fbe AK |
4205 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4206 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
4207 | (eval "$ac_link") 2>conftest.er1 |
4208 | ac_status=$? | |
4209 | grep -v '^ *+' conftest.er1 >conftest.err | |
4210 | rm -f conftest.er1 | |
4211 | cat conftest.err >&5 | |
ec6a6fbe | 4212 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
4213 | (exit $ac_status); } && { |
4214 | test -z "$ac_c_werror_flag" || | |
4215 | test ! -s conftest.err | |
ec6a6fbe AK |
4216 | } && test -s conftest$ac_exeext && { |
4217 | test "$cross_compiling" = yes || | |
4218 | $as_test_x conftest$ac_exeext | |
4219 | }; then | |
d0191583 JM |
4220 | ac_cv_search_opendir=$ac_res |
4221 | else | |
ec6a6fbe | 4222 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 4223 | sed 's/^/| /' conftest.$ac_ext >&5 |
7a197a62 AK |
4224 | |
4225 | ||
4226 | fi | |
4227 | ||
ec6a6fbe | 4228 | rm -rf conftest.dSYM |
d0191583 JM |
4229 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
4230 | conftest$ac_exeext | |
4231 | if test "${ac_cv_search_opendir+set}" = set; then | |
4232 | break | |
7a197a62 | 4233 | fi |
d0191583 JM |
4234 | done |
4235 | if test "${ac_cv_search_opendir+set}" = set; then | |
4236 | : | |
7a197a62 | 4237 | else |
d0191583 | 4238 | ac_cv_search_opendir=no |
7a197a62 | 4239 | fi |
d0191583 JM |
4240 | rm conftest.$ac_ext |
4241 | LIBS=$ac_func_search_save_LIBS | |
4242 | fi | |
ec6a6fbe AK |
4243 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
4244 | $as_echo "$ac_cv_search_opendir" >&6; } | |
d0191583 JM |
4245 | ac_res=$ac_cv_search_opendir |
4246 | if test "$ac_res" != no; then | |
4247 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
7a197a62 | 4248 | |
7a197a62 | 4249 | fi |
7a197a62 | 4250 | |
d0191583 | 4251 | fi |
7a197a62 | 4252 | |
ec6a6fbe AK |
4253 | { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
4254 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
7a197a62 | 4255 | if test "${ac_cv_header_stdc+set}" = set; then |
ec6a6fbe | 4256 | $as_echo_n "(cached) " >&6 |
7a197a62 AK |
4257 | else |
4258 | cat >conftest.$ac_ext <<_ACEOF | |
4259 | /* confdefs.h. */ | |
4260 | _ACEOF | |
4261 | cat confdefs.h >>conftest.$ac_ext | |
4262 | cat >>conftest.$ac_ext <<_ACEOF | |
4263 | /* end confdefs.h. */ | |
4264 | #include <stdlib.h> | |
4265 | #include <stdarg.h> | |
4266 | #include <string.h> | |
4267 | #include <float.h> | |
4268 | ||
4269 | int | |
4270 | main () | |
4271 | { | |
4272 | ||
4273 | ; | |
4274 | return 0; | |
4275 | } | |
4276 | _ACEOF | |
4277 | rm -f conftest.$ac_objext | |
4278 | if { (ac_try="$ac_compile" | |
4279 | case "(($ac_try" in | |
4280 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4281 | *) ac_try_echo=$ac_try;; | |
4282 | esac | |
ec6a6fbe AK |
4283 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4284 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 AK |
4285 | (eval "$ac_compile") 2>conftest.er1 |
4286 | ac_status=$? | |
4287 | grep -v '^ *+' conftest.er1 >conftest.err | |
4288 | rm -f conftest.er1 | |
4289 | cat conftest.err >&5 | |
ec6a6fbe | 4290 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4291 | (exit $ac_status); } && { |
4292 | test -z "$ac_c_werror_flag" || | |
4293 | test ! -s conftest.err | |
4294 | } && test -s conftest.$ac_objext; then | |
7a197a62 AK |
4295 | ac_cv_header_stdc=yes |
4296 | else | |
ec6a6fbe | 4297 | $as_echo "$as_me: failed program was:" >&5 |
7a197a62 AK |
4298 | sed 's/^/| /' conftest.$ac_ext >&5 |
4299 | ||
4300 | ac_cv_header_stdc=no | |
4301 | fi | |
4302 | ||
4303 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4304 | ||
4305 | if test $ac_cv_header_stdc = yes; then | |
4306 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
ad6254c5 | 4307 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4308 | /* confdefs.h. */ |
4309 | _ACEOF | |
4310 | cat confdefs.h >>conftest.$ac_ext | |
4311 | cat >>conftest.$ac_ext <<_ACEOF | |
4312 | /* end confdefs.h. */ | |
4313 | #include <string.h> | |
8106cdd5 | 4314 | |
ad6254c5 AK |
4315 | _ACEOF |
4316 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4317 | $EGREP "memchr" >/dev/null 2>&1; then | |
4318 | : | |
4319 | else | |
4320 | ac_cv_header_stdc=no | |
80992638 | 4321 | fi |
ad6254c5 | 4322 | rm -f conftest* |
795ca3e5 AK |
4323 | |
4324 | fi | |
4325 | ||
ad6254c5 AK |
4326 | if test $ac_cv_header_stdc = yes; then |
4327 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4328 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
4329 | /* confdefs.h. */ |
4330 | _ACEOF | |
4331 | cat confdefs.h >>conftest.$ac_ext | |
4332 | cat >>conftest.$ac_ext <<_ACEOF | |
4333 | /* end confdefs.h. */ | |
80992638 | 4334 | #include <stdlib.h> |
ad6254c5 AK |
4335 | |
4336 | _ACEOF | |
80992638 | 4337 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
ad6254c5 AK |
4338 | $EGREP "free" >/dev/null 2>&1; then |
4339 | : | |
795ca3e5 | 4340 | else |
ad6254c5 | 4341 | ac_cv_header_stdc=no |
795ca3e5 | 4342 | fi |
80992638 | 4343 | rm -f conftest* |
8106cdd5 | 4344 | |
795ca3e5 AK |
4345 | fi |
4346 | ||
ad6254c5 AK |
4347 | if test $ac_cv_header_stdc = yes; then |
4348 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4349 | if test "$cross_compiling" = yes; then | |
4350 | : | |
795ca3e5 | 4351 | else |
ad6254c5 | 4352 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4353 | /* confdefs.h. */ |
4354 | _ACEOF | |
4355 | cat confdefs.h >>conftest.$ac_ext | |
4356 | cat >>conftest.$ac_ext <<_ACEOF | |
4357 | /* end confdefs.h. */ | |
4358 | #include <ctype.h> | |
7a197a62 | 4359 | #include <stdlib.h> |
ad6254c5 AK |
4360 | #if ((' ' & 0x0FF) == 0x020) |
4361 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4362 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4363 | #else | |
4364 | # define ISLOWER(c) \ | |
8a2fc586 AK |
4365 | (('a' <= (c) && (c) <= 'i') \ |
4366 | || ('j' <= (c) && (c) <= 'r') \ | |
4367 | || ('s' <= (c) && (c) <= 'z')) | |
ad6254c5 | 4368 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
80992638 | 4369 | #endif |
ad6254c5 AK |
4370 | |
4371 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
4372 | int | |
4373 | main () | |
4374 | { | |
4375 | int i; | |
4376 | for (i = 0; i < 256; i++) | |
4377 | if (XOR (islower (i), ISLOWER (i)) | |
8a2fc586 | 4378 | || toupper (i) != TOUPPER (i)) |
7a197a62 AK |
4379 | return 2; |
4380 | return 0; | |
ad6254c5 AK |
4381 | } |
4382 | _ACEOF | |
4383 | rm -f conftest$ac_exeext | |
7a197a62 AK |
4384 | if { (ac_try="$ac_link" |
4385 | case "(($ac_try" in | |
4386 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4387 | *) ac_try_echo=$ac_try;; | |
4388 | esac | |
ec6a6fbe AK |
4389 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4390 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4391 | (eval "$ac_link") 2>&5 |
ad6254c5 | 4392 | ac_status=$? |
ec6a6fbe | 4393 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 4394 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
4395 | { (case "(($ac_try" in |
4396 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4397 | *) ac_try_echo=$ac_try;; | |
4398 | esac | |
ec6a6fbe AK |
4399 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4400 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4401 | (eval "$ac_try") 2>&5 |
ad6254c5 | 4402 | ac_status=$? |
ec6a6fbe | 4403 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
4404 | (exit $ac_status); }; }; then |
4405 | : | |
795ca3e5 | 4406 | else |
ec6a6fbe AK |
4407 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
4408 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 | 4409 | sed 's/^/| /' conftest.$ac_ext >&5 |
8106cdd5 | 4410 | |
ad6254c5 AK |
4411 | ( exit $ac_status ) |
4412 | ac_cv_header_stdc=no | |
80992638 | 4413 | fi |
ec6a6fbe | 4414 | rm -rf conftest.dSYM |
7a197a62 | 4415 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 4416 | fi |
7a197a62 AK |
4417 | |
4418 | ||
ad6254c5 AK |
4419 | fi |
4420 | fi | |
ec6a6fbe AK |
4421 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
4422 | $as_echo "$ac_cv_header_stdc" >&6; } | |
ad6254c5 AK |
4423 | if test $ac_cv_header_stdc = yes; then |
4424 | ||
4425 | cat >>confdefs.h <<\_ACEOF | |
4426 | #define STDC_HEADERS 1 | |
4427 | _ACEOF | |
795ca3e5 AK |
4428 | |
4429 | fi | |
4430 | ||
ec6a6fbe AK |
4431 | { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
4432 | $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } | |
ad6254c5 | 4433 | if test "${ac_cv_header_sys_wait_h+set}" = set; then |
ec6a6fbe | 4434 | $as_echo_n "(cached) " >&6 |
8106cdd5 | 4435 | else |
ad6254c5 | 4436 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4437 | /* confdefs.h. */ |
4438 | _ACEOF | |
4439 | cat confdefs.h >>conftest.$ac_ext | |
4440 | cat >>conftest.$ac_ext <<_ACEOF | |
4441 | /* end confdefs.h. */ | |
80992638 | 4442 | #include <sys/types.h> |
ad6254c5 AK |
4443 | #include <sys/wait.h> |
4444 | #ifndef WEXITSTATUS | |
7a197a62 | 4445 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) |
ad6254c5 AK |
4446 | #endif |
4447 | #ifndef WIFEXITED | |
4448 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) | |
4449 | #endif | |
4450 | ||
4451 | int | |
4452 | main () | |
4453 | { | |
4454 | int s; | |
4455 | wait (&s); | |
4456 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; | |
4457 | ; | |
4458 | return 0; | |
4459 | } | |
4460 | _ACEOF | |
4461 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4462 | if { (ac_try="$ac_compile" |
4463 | case "(($ac_try" in | |
4464 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4465 | *) ac_try_echo=$ac_try;; | |
4466 | esac | |
ec6a6fbe AK |
4467 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4468 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4469 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4470 | ac_status=$? |
8a2fc586 AK |
4471 | grep -v '^ *+' conftest.er1 >conftest.err |
4472 | rm -f conftest.er1 | |
4473 | cat conftest.err >&5 | |
ec6a6fbe | 4474 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4475 | (exit $ac_status); } && { |
4476 | test -z "$ac_c_werror_flag" || | |
4477 | test ! -s conftest.err | |
4478 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
4479 | ac_cv_header_sys_wait_h=yes |
4480 | else | |
ec6a6fbe | 4481 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4482 | sed 's/^/| /' conftest.$ac_ext >&5 |
4483 | ||
7a197a62 | 4484 | ac_cv_header_sys_wait_h=no |
8106cdd5 | 4485 | fi |
7a197a62 AK |
4486 | |
4487 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
795ca3e5 | 4488 | fi |
ec6a6fbe AK |
4489 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
4490 | $as_echo "$ac_cv_header_sys_wait_h" >&6; } | |
ad6254c5 | 4491 | if test $ac_cv_header_sys_wait_h = yes; then |
8106cdd5 | 4492 | |
ad6254c5 AK |
4493 | cat >>confdefs.h <<\_ACEOF |
4494 | #define HAVE_SYS_WAIT_H 1 | |
4495 | _ACEOF | |
795ca3e5 AK |
4496 | |
4497 | fi | |
4498 | ||
ec6a6fbe AK |
4499 | { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
4500 | $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } | |
ad6254c5 | 4501 | if test "${ac_cv_header_time+set}" = set; then |
ec6a6fbe | 4502 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 4503 | else |
ad6254c5 | 4504 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4505 | /* confdefs.h. */ |
4506 | _ACEOF | |
4507 | cat confdefs.h >>conftest.$ac_ext | |
4508 | cat >>conftest.$ac_ext <<_ACEOF | |
4509 | /* end confdefs.h. */ | |
795ca3e5 AK |
4510 | #include <sys/types.h> |
4511 | #include <sys/time.h> | |
4512 | #include <time.h> | |
ad6254c5 AK |
4513 | |
4514 | int | |
4515 | main () | |
4516 | { | |
4517 | if ((struct tm *) 0) | |
4518 | return 0; | |
4519 | ; | |
4520 | return 0; | |
4521 | } | |
4522 | _ACEOF | |
4523 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4524 | if { (ac_try="$ac_compile" |
4525 | case "(($ac_try" in | |
4526 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4527 | *) ac_try_echo=$ac_try;; | |
4528 | esac | |
ec6a6fbe AK |
4529 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4530 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4531 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4532 | ac_status=$? |
8a2fc586 AK |
4533 | grep -v '^ *+' conftest.er1 >conftest.err |
4534 | rm -f conftest.er1 | |
4535 | cat conftest.err >&5 | |
ec6a6fbe | 4536 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4537 | (exit $ac_status); } && { |
4538 | test -z "$ac_c_werror_flag" || | |
4539 | test ! -s conftest.err | |
4540 | } && test -s conftest.$ac_objext; then | |
795ca3e5 AK |
4541 | ac_cv_header_time=yes |
4542 | else | |
ec6a6fbe | 4543 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4544 | sed 's/^/| /' conftest.$ac_ext >&5 |
4545 | ||
7a197a62 | 4546 | ac_cv_header_time=no |
795ca3e5 | 4547 | fi |
7a197a62 AK |
4548 | |
4549 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
795ca3e5 | 4550 | fi |
ec6a6fbe AK |
4551 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
4552 | $as_echo "$ac_cv_header_time" >&6; } | |
80992638 | 4553 | if test $ac_cv_header_time = yes; then |
ad6254c5 AK |
4554 | |
4555 | cat >>confdefs.h <<\_ACEOF | |
795ca3e5 | 4556 | #define TIME_WITH_SYS_TIME 1 |
ad6254c5 | 4557 | _ACEOF |
b896caa1 | 4558 | |
8106cdd5 | 4559 | fi |
b896caa1 | 4560 | |
b896caa1 | 4561 | |
d0191583 JM |
4562 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
4563 | ||
4564 | ||
4565 | ||
4566 | ||
4567 | ||
4568 | ||
4569 | ||
4570 | ||
4571 | ||
4572 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
4573 | inttypes.h stdint.h unistd.h | |
4574 | do | |
ec6a6fbe AK |
4575 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
4576 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4577 | $as_echo_n "checking for $ac_header... " >&6; } | |
d0191583 | 4578 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 4579 | $as_echo_n "(cached) " >&6 |
d0191583 JM |
4580 | else |
4581 | cat >conftest.$ac_ext <<_ACEOF | |
4582 | /* confdefs.h. */ | |
4583 | _ACEOF | |
4584 | cat confdefs.h >>conftest.$ac_ext | |
4585 | cat >>conftest.$ac_ext <<_ACEOF | |
4586 | /* end confdefs.h. */ | |
4587 | $ac_includes_default | |
4588 | ||
4589 | #include <$ac_header> | |
4590 | _ACEOF | |
4591 | rm -f conftest.$ac_objext | |
4592 | if { (ac_try="$ac_compile" | |
4593 | case "(($ac_try" in | |
4594 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4595 | *) ac_try_echo=$ac_try;; | |
4596 | esac | |
ec6a6fbe AK |
4597 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4598 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
4599 | (eval "$ac_compile") 2>conftest.er1 |
4600 | ac_status=$? | |
4601 | grep -v '^ *+' conftest.er1 >conftest.err | |
4602 | rm -f conftest.er1 | |
4603 | cat conftest.err >&5 | |
ec6a6fbe | 4604 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
4605 | (exit $ac_status); } && { |
4606 | test -z "$ac_c_werror_flag" || | |
4607 | test ! -s conftest.err | |
4608 | } && test -s conftest.$ac_objext; then | |
4609 | eval "$as_ac_Header=yes" | |
4610 | else | |
ec6a6fbe | 4611 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 JM |
4612 | sed 's/^/| /' conftest.$ac_ext >&5 |
4613 | ||
4614 | eval "$as_ac_Header=no" | |
4615 | fi | |
4616 | ||
4617 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4618 | fi | |
ec6a6fbe AK |
4619 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
4620 | $as_echo "$as_val"'` | |
4621 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4622 | $as_echo "$ac_res" >&6; } | |
4623 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
4624 | $as_echo "$as_val"'` | |
4625 | if test "x$as_val" = x""yes; then | |
d0191583 | 4626 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 4627 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
d0191583 JM |
4628 | _ACEOF |
4629 | ||
4630 | fi | |
4631 | ||
4632 | done | |
4633 | ||
b896caa1 | 4634 | |
b896caa1 AK |
4635 | |
4636 | ||
795ca3e5 | 4637 | |
8106cdd5 | 4638 | |
80992638 | 4639 | |
795ca3e5 | 4640 | |
a38df97f | 4641 | |
80992638 | 4642 | |
d0191583 JM |
4643 | |
4644 | ||
4645 | ||
4646 | ||
4647 | ||
4648 | for ac_header in locale.h stddef.h syslog.h sys/file.h sys/time.h assert.h \ | |
4649 | libgen.h signal.h sys/mman.h sys/resource.h sys/utsname.h sys/wait.h time.h | |
ad6254c5 | 4650 | do |
ec6a6fbe | 4651 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
d0191583 | 4652 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
4653 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4654 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 4655 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 4656 | $as_echo_n "(cached) " >&6 |
d0191583 | 4657 | fi |
ec6a6fbe AK |
4658 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
4659 | $as_echo "$as_val"'` | |
4660 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4661 | $as_echo "$ac_res" >&6; } | |
ad6254c5 | 4662 | else |
d0191583 | 4663 | # Is the header compilable? |
ec6a6fbe AK |
4664 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
4665 | $as_echo_n "checking $ac_header usability... " >&6; } | |
d0191583 | 4666 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4667 | /* confdefs.h. */ |
4668 | _ACEOF | |
4669 | cat confdefs.h >>conftest.$ac_ext | |
4670 | cat >>conftest.$ac_ext <<_ACEOF | |
4671 | /* end confdefs.h. */ | |
4672 | $ac_includes_default | |
ad6254c5 AK |
4673 | #include <$ac_header> |
4674 | _ACEOF | |
4675 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4676 | if { (ac_try="$ac_compile" |
4677 | case "(($ac_try" in | |
4678 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4679 | *) ac_try_echo=$ac_try;; | |
4680 | esac | |
ec6a6fbe AK |
4681 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4682 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4683 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4684 | ac_status=$? |
8a2fc586 AK |
4685 | grep -v '^ *+' conftest.er1 >conftest.err |
4686 | rm -f conftest.er1 | |
4687 | cat conftest.err >&5 | |
ec6a6fbe | 4688 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4689 | (exit $ac_status); } && { |
4690 | test -z "$ac_c_werror_flag" || | |
4691 | test ! -s conftest.err | |
4692 | } && test -s conftest.$ac_objext; then | |
d0191583 | 4693 | ac_header_compiler=yes |
ad6254c5 | 4694 | else |
ec6a6fbe | 4695 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 | 4696 | sed 's/^/| /' conftest.$ac_ext >&5 |
795ca3e5 | 4697 | |
d0191583 | 4698 | ac_header_compiler=no |
ad6254c5 | 4699 | fi |
7a197a62 AK |
4700 | |
4701 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
4702 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
4703 | $as_echo "$ac_header_compiler" >&6; } | |
d0191583 JM |
4704 | |
4705 | # Is the header present? | |
ec6a6fbe AK |
4706 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
4707 | $as_echo_n "checking $ac_header presence... " >&6; } | |
d0191583 JM |
4708 | cat >conftest.$ac_ext <<_ACEOF |
4709 | /* confdefs.h. */ | |
4710 | _ACEOF | |
4711 | cat confdefs.h >>conftest.$ac_ext | |
4712 | cat >>conftest.$ac_ext <<_ACEOF | |
4713 | /* end confdefs.h. */ | |
4714 | #include <$ac_header> | |
4715 | _ACEOF | |
4716 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
4717 | case "(($ac_try" in | |
4718 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4719 | *) ac_try_echo=$ac_try;; | |
4720 | esac | |
ec6a6fbe AK |
4721 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4722 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
4723 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
4724 | ac_status=$? | |
4725 | grep -v '^ *+' conftest.er1 >conftest.err | |
4726 | rm -f conftest.er1 | |
4727 | cat conftest.err >&5 | |
ec6a6fbe | 4728 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
4729 | (exit $ac_status); } >/dev/null && { |
4730 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4731 | test ! -s conftest.err | |
4732 | }; then | |
4733 | ac_header_preproc=yes | |
4734 | else | |
ec6a6fbe | 4735 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 JM |
4736 | sed 's/^/| /' conftest.$ac_ext >&5 |
4737 | ||
4738 | ac_header_preproc=no | |
4739 | fi | |
4740 | ||
4741 | rm -f conftest.err conftest.$ac_ext | |
ec6a6fbe AK |
4742 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4743 | $as_echo "$ac_header_preproc" >&6; } | |
d0191583 JM |
4744 | |
4745 | # So? What about this header? | |
4746 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
4747 | yes:no: ) | |
ec6a6fbe AK |
4748 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
4749 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4750 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
4751 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
d0191583 JM |
4752 | ac_header_preproc=yes |
4753 | ;; | |
4754 | no:yes:* ) | |
ec6a6fbe AK |
4755 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
4756 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4757 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4758 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4759 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4760 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4761 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4762 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
4763 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4764 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
4765 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
4766 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
d0191583 JM |
4767 | |
4768 | ;; | |
4769 | esac | |
ec6a6fbe AK |
4770 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4771 | $as_echo_n "checking for $ac_header... " >&6; } | |
d0191583 | 4772 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 4773 | $as_echo_n "(cached) " >&6 |
d0191583 JM |
4774 | else |
4775 | eval "$as_ac_Header=\$ac_header_preproc" | |
a38df97f | 4776 | fi |
ec6a6fbe AK |
4777 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
4778 | $as_echo "$as_val"'` | |
4779 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4780 | $as_echo "$ac_res" >&6; } | |
d0191583 JM |
4781 | |
4782 | fi | |
ec6a6fbe AK |
4783 | as_val=`eval 'as_val=${'$as_ac_Header'} |
4784 | $as_echo "$as_val"'` | |
4785 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 4786 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 4787 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 4788 | _ACEOF |
a38df97f | 4789 | |
d0191583 | 4790 | else |
ec6a6fbe AK |
4791 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
4792 | $as_echo "$as_me: error: bailing out" >&2;} | |
d0191583 | 4793 | { (exit 1); exit 1; }; } |
80992638 AK |
4794 | fi |
4795 | ||
ad6254c5 AK |
4796 | done |
4797 | ||
7d1552c9 | 4798 | |
d0191583 JM |
4799 | case "$host_os" in |
4800 | linux*) | |
7d1552c9 | 4801 | |
80992638 | 4802 | |
5a52dca9 | 4803 | |
d0191583 | 4804 | for ac_header in asm/byteorder.h linux/fs.h malloc.h |
ad6254c5 | 4805 | do |
ec6a6fbe | 4806 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 4807 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
4808 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4809 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 4810 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 4811 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 4812 | fi |
ec6a6fbe AK |
4813 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
4814 | $as_echo "$as_val"'` | |
4815 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4816 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
4817 | else |
4818 | # Is the header compilable? | |
ec6a6fbe AK |
4819 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
4820 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 4821 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4822 | /* confdefs.h. */ |
4823 | _ACEOF | |
4824 | cat confdefs.h >>conftest.$ac_ext | |
4825 | cat >>conftest.$ac_ext <<_ACEOF | |
4826 | /* end confdefs.h. */ | |
4827 | $ac_includes_default | |
4828 | #include <$ac_header> | |
4829 | _ACEOF | |
4830 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4831 | if { (ac_try="$ac_compile" |
4832 | case "(($ac_try" in | |
4833 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4834 | *) ac_try_echo=$ac_try;; | |
4835 | esac | |
ec6a6fbe AK |
4836 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4837 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4838 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4839 | ac_status=$? |
8a2fc586 AK |
4840 | grep -v '^ *+' conftest.er1 >conftest.err |
4841 | rm -f conftest.er1 | |
4842 | cat conftest.err >&5 | |
ec6a6fbe | 4843 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4844 | (exit $ac_status); } && { |
4845 | test -z "$ac_c_werror_flag" || | |
4846 | test ! -s conftest.err | |
4847 | } && test -s conftest.$ac_objext; then | |
fc54be10 AK |
4848 | ac_header_compiler=yes |
4849 | else | |
ec6a6fbe | 4850 | $as_echo "$as_me: failed program was:" >&5 |
fc54be10 AK |
4851 | sed 's/^/| /' conftest.$ac_ext >&5 |
4852 | ||
4853 | ac_header_compiler=no | |
4854 | fi | |
4855 | ||
4856 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
4857 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
4858 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
4859 | |
4860 | # Is the header present? | |
ec6a6fbe AK |
4861 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
4862 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 4863 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4864 | /* confdefs.h. */ |
4865 | _ACEOF | |
4866 | cat confdefs.h >>conftest.$ac_ext | |
4867 | cat >>conftest.$ac_ext <<_ACEOF | |
4868 | /* end confdefs.h. */ | |
4869 | #include <$ac_header> | |
4870 | _ACEOF | |
7a197a62 AK |
4871 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4872 | case "(($ac_try" in | |
4873 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4874 | *) ac_try_echo=$ac_try;; | |
4875 | esac | |
ec6a6fbe AK |
4876 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4877 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4878 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
4879 | ac_status=$? |
4880 | grep -v '^ *+' conftest.er1 >conftest.err | |
4881 | rm -f conftest.er1 | |
4882 | cat conftest.err >&5 | |
ec6a6fbe | 4883 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4884 | (exit $ac_status); } >/dev/null && { |
4885 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4886 | test ! -s conftest.err | |
4887 | }; then | |
ad6254c5 AK |
4888 | ac_header_preproc=yes |
4889 | else | |
ec6a6fbe | 4890 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4891 | sed 's/^/| /' conftest.$ac_ext >&5 |
4892 | ||
4893 | ac_header_preproc=no | |
4894 | fi | |
7a197a62 | 4895 | |
ad6254c5 | 4896 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
4897 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4898 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
4899 | |
4900 | # So? What about this header? | |
8a2fc586 AK |
4901 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
4902 | yes:no: ) | |
ec6a6fbe AK |
4903 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
4904 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4905 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
4906 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 4907 | ac_header_preproc=yes |
ad6254c5 | 4908 | ;; |
8a2fc586 | 4909 | no:yes:* ) |
ec6a6fbe AK |
4910 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
4911 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4912 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4913 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4914 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4915 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4916 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4917 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
4918 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4919 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
4920 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
4921 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 4922 | |
ad6254c5 AK |
4923 | ;; |
4924 | esac | |
ec6a6fbe AK |
4925 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4926 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 4927 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 4928 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 4929 | else |
8a2fc586 | 4930 | eval "$as_ac_Header=\$ac_header_preproc" |
b896caa1 | 4931 | fi |
ec6a6fbe AK |
4932 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
4933 | $as_echo "$as_val"'` | |
4934 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4935 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
4936 | |
4937 | fi | |
ec6a6fbe AK |
4938 | as_val=`eval 'as_val=${'$as_ac_Header'} |
4939 | $as_echo "$as_val"'` | |
4940 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 4941 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 4942 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 4943 | _ACEOF |
b896caa1 | 4944 | |
d8ac0fbc | 4945 | else |
ec6a6fbe AK |
4946 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
4947 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 4948 | { (exit 1); exit 1; }; } |
80992638 AK |
4949 | fi |
4950 | ||
ad6254c5 | 4951 | done |
d0191583 JM |
4952 | ;; |
4953 | darwin*) | |
d8ac0fbc | 4954 | |
d8ac0fbc | 4955 | |
d0191583 | 4956 | for ac_header in machine/endian.h sys/disk.h |
ad6254c5 | 4957 | do |
ec6a6fbe | 4958 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 4959 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
4960 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4961 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 4962 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 4963 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 4964 | fi |
ec6a6fbe AK |
4965 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
4966 | $as_echo "$as_val"'` | |
4967 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4968 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
4969 | else |
4970 | # Is the header compilable? | |
ec6a6fbe AK |
4971 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
4972 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 4973 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4974 | /* confdefs.h. */ |
4975 | _ACEOF | |
4976 | cat confdefs.h >>conftest.$ac_ext | |
4977 | cat >>conftest.$ac_ext <<_ACEOF | |
4978 | /* end confdefs.h. */ | |
4979 | $ac_includes_default | |
4980 | #include <$ac_header> | |
4981 | _ACEOF | |
4982 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4983 | if { (ac_try="$ac_compile" |
4984 | case "(($ac_try" in | |
4985 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4986 | *) ac_try_echo=$ac_try;; | |
4987 | esac | |
ec6a6fbe AK |
4988 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4989 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4990 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4991 | ac_status=$? |
8a2fc586 AK |
4992 | grep -v '^ *+' conftest.er1 >conftest.err |
4993 | rm -f conftest.er1 | |
4994 | cat conftest.err >&5 | |
ec6a6fbe | 4995 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4996 | (exit $ac_status); } && { |
4997 | test -z "$ac_c_werror_flag" || | |
4998 | test ! -s conftest.err | |
4999 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
5000 | ac_header_compiler=yes |
5001 | else | |
ec6a6fbe | 5002 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5003 | sed 's/^/| /' conftest.$ac_ext >&5 |
5004 | ||
7a197a62 | 5005 | ac_header_compiler=no |
ad6254c5 | 5006 | fi |
7a197a62 AK |
5007 | |
5008 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
5009 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
5010 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
5011 | |
5012 | # Is the header present? | |
ec6a6fbe AK |
5013 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
5014 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 5015 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5016 | /* confdefs.h. */ |
5017 | _ACEOF | |
5018 | cat confdefs.h >>conftest.$ac_ext | |
5019 | cat >>conftest.$ac_ext <<_ACEOF | |
5020 | /* end confdefs.h. */ | |
5021 | #include <$ac_header> | |
5022 | _ACEOF | |
7a197a62 AK |
5023 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5024 | case "(($ac_try" in | |
5025 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5026 | *) ac_try_echo=$ac_try;; | |
5027 | esac | |
ec6a6fbe AK |
5028 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5029 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5030 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
5031 | ac_status=$? |
5032 | grep -v '^ *+' conftest.er1 >conftest.err | |
5033 | rm -f conftest.er1 | |
5034 | cat conftest.err >&5 | |
ec6a6fbe | 5035 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5036 | (exit $ac_status); } >/dev/null && { |
5037 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5038 | test ! -s conftest.err | |
5039 | }; then | |
ad6254c5 AK |
5040 | ac_header_preproc=yes |
5041 | else | |
ec6a6fbe | 5042 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5043 | sed 's/^/| /' conftest.$ac_ext >&5 |
5044 | ||
5045 | ac_header_preproc=no | |
5046 | fi | |
7a197a62 | 5047 | |
ad6254c5 | 5048 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
5049 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
5050 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
5051 | |
5052 | # So? What about this header? | |
8a2fc586 AK |
5053 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
5054 | yes:no: ) | |
ec6a6fbe AK |
5055 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
5056 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5057 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
5058 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 5059 | ac_header_preproc=yes |
ad6254c5 | 5060 | ;; |
8a2fc586 | 5061 | no:yes:* ) |
ec6a6fbe AK |
5062 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
5063 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5064 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5065 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5066 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5067 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5068 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5069 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
5070 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5071 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5072 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
5073 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 5074 | |
ad6254c5 AK |
5075 | ;; |
5076 | esac | |
ec6a6fbe AK |
5077 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5078 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 5079 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 5080 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 5081 | else |
8a2fc586 | 5082 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 5083 | fi |
ec6a6fbe AK |
5084 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
5085 | $as_echo "$as_val"'` | |
5086 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5087 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
5088 | |
5089 | fi | |
ec6a6fbe AK |
5090 | as_val=`eval 'as_val=${'$as_ac_Header'} |
5091 | $as_echo "$as_val"'` | |
5092 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 5093 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 5094 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 5095 | _ACEOF |
4922197a | 5096 | |
4922197a | 5097 | else |
ec6a6fbe AK |
5098 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
5099 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 5100 | { (exit 1); exit 1; }; } |
80992638 AK |
5101 | fi |
5102 | ||
ad6254c5 | 5103 | done |
d0191583 JM |
5104 | ;; |
5105 | esac | |
4922197a | 5106 | |
4922197a | 5107 | |
4922197a | 5108 | |
ad6254c5 AK |
5109 | |
5110 | ||
d0191583 JM |
5111 | |
5112 | ||
5113 | ||
5114 | ||
5115 | ||
5116 | ||
5117 | ||
5118 | ||
5119 | ||
5120 | ||
5121 | ||
5122 | ||
5123 | for ac_header in ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h \ | |
5124 | stdarg.h stdio.h stdlib.h string.h sys/ioctl.h sys/param.h sys/stat.h \ | |
5125 | sys/types.h unistd.h | |
ad6254c5 | 5126 | do |
ec6a6fbe | 5127 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 5128 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
5129 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5130 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 5131 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 5132 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 5133 | fi |
ec6a6fbe AK |
5134 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
5135 | $as_echo "$as_val"'` | |
5136 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5137 | $as_echo "$ac_res" >&6; } | |
795ca3e5 | 5138 | else |
ad6254c5 | 5139 | # Is the header compilable? |
ec6a6fbe AK |
5140 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
5141 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 5142 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5143 | /* confdefs.h. */ |
5144 | _ACEOF | |
5145 | cat confdefs.h >>conftest.$ac_ext | |
5146 | cat >>conftest.$ac_ext <<_ACEOF | |
5147 | /* end confdefs.h. */ | |
5148 | $ac_includes_default | |
5149 | #include <$ac_header> | |
5150 | _ACEOF | |
5151 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5152 | if { (ac_try="$ac_compile" |
5153 | case "(($ac_try" in | |
5154 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5155 | *) ac_try_echo=$ac_try;; | |
5156 | esac | |
ec6a6fbe AK |
5157 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5158 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5159 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5160 | ac_status=$? |
8a2fc586 AK |
5161 | grep -v '^ *+' conftest.er1 >conftest.err |
5162 | rm -f conftest.er1 | |
5163 | cat conftest.err >&5 | |
ec6a6fbe | 5164 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5165 | (exit $ac_status); } && { |
5166 | test -z "$ac_c_werror_flag" || | |
5167 | test ! -s conftest.err | |
5168 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
5169 | ac_header_compiler=yes |
5170 | else | |
ec6a6fbe | 5171 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5172 | sed 's/^/| /' conftest.$ac_ext >&5 |
5173 | ||
7a197a62 | 5174 | ac_header_compiler=no |
ad6254c5 | 5175 | fi |
7a197a62 AK |
5176 | |
5177 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
5178 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
5179 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
5180 | |
5181 | # Is the header present? | |
ec6a6fbe AK |
5182 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
5183 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 5184 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5185 | /* confdefs.h. */ |
5186 | _ACEOF | |
5187 | cat confdefs.h >>conftest.$ac_ext | |
5188 | cat >>conftest.$ac_ext <<_ACEOF | |
5189 | /* end confdefs.h. */ | |
5190 | #include <$ac_header> | |
5191 | _ACEOF | |
7a197a62 AK |
5192 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5193 | case "(($ac_try" in | |
5194 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5195 | *) ac_try_echo=$ac_try;; | |
5196 | esac | |
ec6a6fbe AK |
5197 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5198 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5199 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
5200 | ac_status=$? |
5201 | grep -v '^ *+' conftest.er1 >conftest.err | |
5202 | rm -f conftest.er1 | |
5203 | cat conftest.err >&5 | |
ec6a6fbe | 5204 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5205 | (exit $ac_status); } >/dev/null && { |
5206 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5207 | test ! -s conftest.err | |
5208 | }; then | |
ad6254c5 AK |
5209 | ac_header_preproc=yes |
5210 | else | |
ec6a6fbe | 5211 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5212 | sed 's/^/| /' conftest.$ac_ext >&5 |
5213 | ||
5214 | ac_header_preproc=no | |
5215 | fi | |
7a197a62 | 5216 | |
ad6254c5 | 5217 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
5218 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
5219 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
5220 | |
5221 | # So? What about this header? | |
8a2fc586 AK |
5222 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
5223 | yes:no: ) | |
ec6a6fbe AK |
5224 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
5225 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5226 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
5227 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 5228 | ac_header_preproc=yes |
ad6254c5 | 5229 | ;; |
8a2fc586 | 5230 | no:yes:* ) |
ec6a6fbe AK |
5231 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
5232 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5233 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5234 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5235 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5236 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5237 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5238 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
5239 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5240 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5241 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
5242 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 5243 | |
ad6254c5 AK |
5244 | ;; |
5245 | esac | |
ec6a6fbe AK |
5246 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5247 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 5248 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 5249 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 5250 | else |
8a2fc586 | 5251 | eval "$as_ac_Header=\$ac_header_preproc" |
80992638 | 5252 | fi |
ec6a6fbe AK |
5253 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
5254 | $as_echo "$as_val"'` | |
5255 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5256 | $as_echo "$ac_res" >&6; } | |
80992638 | 5257 | |
ad6254c5 | 5258 | fi |
ec6a6fbe AK |
5259 | as_val=`eval 'as_val=${'$as_ac_Header'} |
5260 | $as_echo "$as_val"'` | |
5261 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 5262 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 5263 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 5264 | _ACEOF |
795ca3e5 | 5265 | |
795ca3e5 | 5266 | else |
ec6a6fbe AK |
5267 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
5268 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 5269 | { (exit 1); exit 1; }; } |
80992638 AK |
5270 | fi |
5271 | ||
ad6254c5 | 5272 | done |
ad6254c5 | 5273 | |
795ca3e5 | 5274 | |
d0191583 JM |
5275 | |
5276 | for ac_header in termios.h sys/statvfs.h | |
ad6254c5 | 5277 | do |
ec6a6fbe | 5278 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 5279 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
5280 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5281 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 5282 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 5283 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 5284 | fi |
ec6a6fbe AK |
5285 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
5286 | $as_echo "$as_val"'` | |
5287 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5288 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
5289 | else |
5290 | # Is the header compilable? | |
ec6a6fbe AK |
5291 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
5292 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 5293 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5294 | /* confdefs.h. */ |
5295 | _ACEOF | |
5296 | cat confdefs.h >>conftest.$ac_ext | |
5297 | cat >>conftest.$ac_ext <<_ACEOF | |
5298 | /* end confdefs.h. */ | |
5299 | $ac_includes_default | |
5300 | #include <$ac_header> | |
5301 | _ACEOF | |
5302 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5303 | if { (ac_try="$ac_compile" |
5304 | case "(($ac_try" in | |
5305 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5306 | *) ac_try_echo=$ac_try;; | |
5307 | esac | |
ec6a6fbe AK |
5308 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5309 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5310 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5311 | ac_status=$? |
8a2fc586 AK |
5312 | grep -v '^ *+' conftest.er1 >conftest.err |
5313 | rm -f conftest.er1 | |
5314 | cat conftest.err >&5 | |
ec6a6fbe | 5315 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5316 | (exit $ac_status); } && { |
5317 | test -z "$ac_c_werror_flag" || | |
5318 | test ! -s conftest.err | |
5319 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
5320 | ac_header_compiler=yes |
5321 | else | |
ec6a6fbe | 5322 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5323 | sed 's/^/| /' conftest.$ac_ext >&5 |
5324 | ||
7a197a62 | 5325 | ac_header_compiler=no |
ad6254c5 | 5326 | fi |
7a197a62 AK |
5327 | |
5328 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
5329 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
5330 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
5331 | |
5332 | # Is the header present? | |
ec6a6fbe AK |
5333 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
5334 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 5335 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5336 | /* confdefs.h. */ |
5337 | _ACEOF | |
5338 | cat confdefs.h >>conftest.$ac_ext | |
5339 | cat >>conftest.$ac_ext <<_ACEOF | |
5340 | /* end confdefs.h. */ | |
5341 | #include <$ac_header> | |
5342 | _ACEOF | |
7a197a62 AK |
5343 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5344 | case "(($ac_try" in | |
5345 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5346 | *) ac_try_echo=$ac_try;; | |
5347 | esac | |
ec6a6fbe AK |
5348 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5349 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5350 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
5351 | ac_status=$? |
5352 | grep -v '^ *+' conftest.er1 >conftest.err | |
5353 | rm -f conftest.er1 | |
5354 | cat conftest.err >&5 | |
ec6a6fbe | 5355 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5356 | (exit $ac_status); } >/dev/null && { |
5357 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5358 | test ! -s conftest.err | |
5359 | }; then | |
ad6254c5 AK |
5360 | ac_header_preproc=yes |
5361 | else | |
ec6a6fbe | 5362 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5363 | sed 's/^/| /' conftest.$ac_ext >&5 |
5364 | ||
5365 | ac_header_preproc=no | |
5366 | fi | |
7a197a62 | 5367 | |
ad6254c5 | 5368 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
5369 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
5370 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
5371 | |
5372 | # So? What about this header? | |
8a2fc586 AK |
5373 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
5374 | yes:no: ) | |
ec6a6fbe AK |
5375 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
5376 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5377 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
5378 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 5379 | ac_header_preproc=yes |
ad6254c5 | 5380 | ;; |
8a2fc586 | 5381 | no:yes:* ) |
ec6a6fbe AK |
5382 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
5383 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5384 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5385 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5386 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5387 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5388 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5389 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
5390 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5391 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5392 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
5393 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 5394 | |
ad6254c5 AK |
5395 | ;; |
5396 | esac | |
ec6a6fbe AK |
5397 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5398 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 5399 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 5400 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 5401 | else |
8a2fc586 | 5402 | eval "$as_ac_Header=\$ac_header_preproc" |
b896caa1 | 5403 | fi |
ec6a6fbe AK |
5404 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
5405 | $as_echo "$as_val"'` | |
5406 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5407 | $as_echo "$ac_res" >&6; } | |
b896caa1 | 5408 | |
ad6254c5 | 5409 | fi |
ec6a6fbe AK |
5410 | as_val=`eval 'as_val=${'$as_ac_Header'} |
5411 | $as_echo "$as_val"'` | |
5412 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 5413 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 5414 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
5415 | _ACEOF |
5416 | ||
80992638 AK |
5417 | fi |
5418 | ||
ad6254c5 | 5419 | done |
d0191583 | 5420 | |
d3c8211f | 5421 | |
80992638 | 5422 | ################################################################################ |
ec6a6fbe AK |
5423 | { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
5424 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } | |
ad6254c5 | 5425 | if test "${ac_cv_c_const+set}" = set; then |
ec6a6fbe | 5426 | $as_echo_n "(cached) " >&6 |
d3c8211f | 5427 | else |
ad6254c5 | 5428 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5429 | /* confdefs.h. */ |
5430 | _ACEOF | |
5431 | cat confdefs.h >>conftest.$ac_ext | |
5432 | cat >>conftest.$ac_ext <<_ACEOF | |
5433 | /* end confdefs.h. */ | |
5434 | ||
5435 | int | |
5436 | main () | |
5437 | { | |
5438 | /* FIXME: Include the comments suggested by Paul. */ | |
5439 | #ifndef __cplusplus | |
5440 | /* Ultrix mips cc rejects this. */ | |
5441 | typedef int charset[2]; | |
25fbec5b | 5442 | const charset cs; |
ad6254c5 | 5443 | /* SunOS 4.1.1 cc rejects this. */ |
25fbec5b AK |
5444 | char const *const *pcpcc; |
5445 | char **ppc; | |
ad6254c5 AK |
5446 | /* NEC SVR4.0.2 mips cc rejects this. */ |
5447 | struct point {int x, y;}; | |
5448 | static struct point const zero = {0,0}; | |
5449 | /* AIX XL C 1.02.0.0 rejects this. | |
5450 | It does not let you subtract one const X* pointer from another in | |
5451 | an arm of an if-expression whose if-part is not a constant | |
5452 | expression */ | |
5453 | const char *g = "string"; | |
25fbec5b | 5454 | pcpcc = &g + (g ? g-g : 0); |
ad6254c5 | 5455 | /* HPUX 7.0 cc rejects these. */ |
25fbec5b AK |
5456 | ++pcpcc; |
5457 | ppc = (char**) pcpcc; | |
5458 | pcpcc = (char const *const *) ppc; | |
ad6254c5 AK |
5459 | { /* SCO 3.2v4 cc rejects this. */ |
5460 | char *t; | |
5461 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
5462 | ||
5463 | *t++ = 0; | |
7a197a62 | 5464 | if (s) return 0; |
ad6254c5 AK |
5465 | } |
5466 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
5467 | int x[] = {25, 17}; | |
5468 | const int *foo = &x[0]; | |
5469 | ++foo; | |
5470 | } | |
5471 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
5472 | typedef const int *iptr; | |
5473 | iptr p = 0; | |
5474 | ++p; | |
5475 | } | |
5476 | { /* AIX XL C 1.02.0.0 rejects this saying | |
5477 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
5478 | struct s { int j; const int *ap[3]; }; | |
5479 | struct s *b; b->j = 5; | |
5480 | } | |
5481 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
5482 | const int foo = 10; | |
7a197a62 | 5483 | if (!foo) return 0; |
ad6254c5 | 5484 | } |
25fbec5b | 5485 | return !cs[0] && !zero.x; |
ad6254c5 AK |
5486 | #endif |
5487 | ||
5488 | ; | |
5489 | return 0; | |
5490 | } | |
5491 | _ACEOF | |
5492 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5493 | if { (ac_try="$ac_compile" |
5494 | case "(($ac_try" in | |
5495 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5496 | *) ac_try_echo=$ac_try;; | |
5497 | esac | |
ec6a6fbe AK |
5498 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5499 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5500 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5501 | ac_status=$? |
8a2fc586 AK |
5502 | grep -v '^ *+' conftest.er1 >conftest.err |
5503 | rm -f conftest.er1 | |
5504 | cat conftest.err >&5 | |
ec6a6fbe | 5505 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5506 | (exit $ac_status); } && { |
5507 | test -z "$ac_c_werror_flag" || | |
5508 | test ! -s conftest.err | |
5509 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
5510 | ac_cv_c_const=yes |
5511 | else | |
ec6a6fbe | 5512 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5513 | sed 's/^/| /' conftest.$ac_ext >&5 |
5514 | ||
7a197a62 | 5515 | ac_cv_c_const=no |
ad6254c5 | 5516 | fi |
7a197a62 AK |
5517 | |
5518 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
80992638 | 5519 | fi |
ec6a6fbe AK |
5520 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
5521 | $as_echo "$ac_cv_c_const" >&6; } | |
ad6254c5 | 5522 | if test $ac_cv_c_const = no; then |
80992638 | 5523 | |
ad6254c5 | 5524 | cat >>confdefs.h <<\_ACEOF |
ec6a6fbe | 5525 | #define const /**/ |
ad6254c5 | 5526 | _ACEOF |
80992638 | 5527 | |
d3c8211f | 5528 | fi |
d3c8211f | 5529 | |
ec6a6fbe AK |
5530 | { $as_echo "$as_me:$LINENO: checking for inline" >&5 |
5531 | $as_echo_n "checking for inline... " >&6; } | |
ad6254c5 | 5532 | if test "${ac_cv_c_inline+set}" = set; then |
ec6a6fbe | 5533 | $as_echo_n "(cached) " >&6 |
8ef2b021 | 5534 | else |
ad6254c5 AK |
5535 | ac_cv_c_inline=no |
5536 | for ac_kw in inline __inline__ __inline; do | |
5537 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5538 | /* confdefs.h. */ |
5539 | _ACEOF | |
5540 | cat confdefs.h >>conftest.$ac_ext | |
5541 | cat >>conftest.$ac_ext <<_ACEOF | |
5542 | /* end confdefs.h. */ | |
5543 | #ifndef __cplusplus | |
5544 | typedef int foo_t; | |
5545 | static $ac_kw foo_t static_foo () {return 0; } | |
5546 | $ac_kw foo_t foo () {return 0; } | |
5547 | #endif | |
80992638 | 5548 | |
ad6254c5 AK |
5549 | _ACEOF |
5550 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5551 | if { (ac_try="$ac_compile" |
5552 | case "(($ac_try" in | |
5553 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5554 | *) ac_try_echo=$ac_try;; | |
5555 | esac | |
ec6a6fbe AK |
5556 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5557 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5558 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5559 | ac_status=$? |
8a2fc586 AK |
5560 | grep -v '^ *+' conftest.er1 >conftest.err |
5561 | rm -f conftest.er1 | |
5562 | cat conftest.err >&5 | |
ec6a6fbe | 5563 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5564 | (exit $ac_status); } && { |
5565 | test -z "$ac_c_werror_flag" || | |
5566 | test ! -s conftest.err | |
5567 | } && test -s conftest.$ac_objext; then | |
7a197a62 | 5568 | ac_cv_c_inline=$ac_kw |
ad6254c5 | 5569 | else |
ec6a6fbe | 5570 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 | 5571 | sed 's/^/| /' conftest.$ac_ext >&5 |
8ef2b021 | 5572 | |
7a197a62 | 5573 | |
8ce0cbda | 5574 | fi |
7a197a62 AK |
5575 | |
5576 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5577 | test "$ac_cv_c_inline" != no && break | |
ad6254c5 | 5578 | done |
8ce0cbda | 5579 | |
8ce0cbda | 5580 | fi |
ec6a6fbe AK |
5581 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
5582 | $as_echo "$ac_cv_c_inline" >&6; } | |
8a2fc586 AK |
5583 | |
5584 | ||
ad6254c5 AK |
5585 | case $ac_cv_c_inline in |
5586 | inline | yes) ;; | |
8a2fc586 AK |
5587 | *) |
5588 | case $ac_cv_c_inline in | |
5589 | no) ac_val=;; | |
5590 | *) ac_val=$ac_cv_c_inline;; | |
5591 | esac | |
5592 | cat >>confdefs.h <<_ACEOF | |
5593 | #ifndef __cplusplus | |
5594 | #define inline $ac_val | |
5595 | #endif | |
c1c065a3 | 5596 | _ACEOF |
d0191583 JM |
5597 | ;; |
5598 | esac | |
5599 | ||
ec6a6fbe AK |
5600 | { $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 |
5601 | $as_echo_n "checking for struct stat.st_rdev... " >&6; } | |
d0191583 | 5602 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then |
ec6a6fbe | 5603 | $as_echo_n "(cached) " >&6 |
d0191583 JM |
5604 | else |
5605 | cat >conftest.$ac_ext <<_ACEOF | |
5606 | /* confdefs.h. */ | |
5607 | _ACEOF | |
5608 | cat confdefs.h >>conftest.$ac_ext | |
5609 | cat >>conftest.$ac_ext <<_ACEOF | |
5610 | /* end confdefs.h. */ | |
5611 | $ac_includes_default | |
5612 | int | |
5613 | main () | |
5614 | { | |
5615 | static struct stat ac_aggr; | |
5616 | if (ac_aggr.st_rdev) | |
5617 | return 0; | |
5618 | ; | |
5619 | return 0; | |
5620 | } | |
5621 | _ACEOF | |
5622 | rm -f conftest.$ac_objext | |
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 | |
5630 | (eval "$ac_compile") 2>conftest.er1 | |
5631 | ac_status=$? | |
5632 | grep -v '^ *+' conftest.er1 >conftest.err | |
5633 | rm -f conftest.er1 | |
5634 | cat conftest.err >&5 | |
5635 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5636 | (exit $ac_status); } && { | |
5637 | test -z "$ac_c_werror_flag" || | |
5638 | test ! -s conftest.err | |
5639 | } && test -s conftest.$ac_objext; then | |
5640 | ac_cv_member_struct_stat_st_rdev=yes | |
5641 | else | |
5642 | $as_echo "$as_me: failed program was:" >&5 | |
5643 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5644 | ||
5645 | cat >conftest.$ac_ext <<_ACEOF | |
5646 | /* confdefs.h. */ | |
5647 | _ACEOF | |
5648 | cat confdefs.h >>conftest.$ac_ext | |
5649 | cat >>conftest.$ac_ext <<_ACEOF | |
5650 | /* end confdefs.h. */ | |
5651 | $ac_includes_default | |
5652 | int | |
5653 | main () | |
5654 | { | |
5655 | static struct stat ac_aggr; | |
5656 | if (sizeof ac_aggr.st_rdev) | |
5657 | return 0; | |
5658 | ; | |
5659 | return 0; | |
5660 | } | |
5661 | _ACEOF | |
5662 | rm -f conftest.$ac_objext | |
5663 | if { (ac_try="$ac_compile" | |
5664 | case "(($ac_try" in | |
5665 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5666 | *) ac_try_echo=$ac_try;; | |
5667 | esac | |
5668 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5669 | $as_echo "$ac_try_echo") >&5 | |
5670 | (eval "$ac_compile") 2>conftest.er1 | |
5671 | ac_status=$? | |
5672 | grep -v '^ *+' conftest.er1 >conftest.err | |
5673 | rm -f conftest.er1 | |
5674 | cat conftest.err >&5 | |
5675 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5676 | (exit $ac_status); } && { | |
5677 | test -z "$ac_c_werror_flag" || | |
5678 | test ! -s conftest.err | |
5679 | } && test -s conftest.$ac_objext; then | |
5680 | ac_cv_member_struct_stat_st_rdev=yes | |
5681 | else | |
5682 | $as_echo "$as_me: failed program was:" >&5 | |
5683 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5684 | ||
5685 | ac_cv_member_struct_stat_st_rdev=no | |
5686 | fi | |
5687 | ||
5688 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5689 | fi | |
5690 | ||
5691 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5692 | fi | |
5693 | { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 | |
5694 | $as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; } | |
5695 | if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then | |
5696 | ||
5697 | cat >>confdefs.h <<_ACEOF | |
5698 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | |
5699 | _ACEOF | |
5700 | ||
5701 | ||
5702 | fi | |
5703 | ||
5704 | { $as_echo "$as_me:$LINENO: checking for off_t" >&5 | |
5705 | $as_echo_n "checking for off_t... " >&6; } | |
5706 | if test "${ac_cv_type_off_t+set}" = set; then | |
5707 | $as_echo_n "(cached) " >&6 | |
5708 | else | |
5709 | ac_cv_type_off_t=no | |
5710 | cat >conftest.$ac_ext <<_ACEOF | |
5711 | /* confdefs.h. */ | |
5712 | _ACEOF | |
5713 | cat confdefs.h >>conftest.$ac_ext | |
5714 | cat >>conftest.$ac_ext <<_ACEOF | |
5715 | /* end confdefs.h. */ | |
5716 | $ac_includes_default | |
5717 | int | |
5718 | main () | |
5719 | { | |
5720 | if (sizeof (off_t)) | |
5721 | return 0; | |
5722 | ; | |
5723 | return 0; | |
5724 | } | |
5725 | _ACEOF | |
5726 | rm -f conftest.$ac_objext | |
5727 | if { (ac_try="$ac_compile" | |
5728 | case "(($ac_try" in | |
5729 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5730 | *) ac_try_echo=$ac_try;; | |
5731 | esac | |
5732 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5733 | $as_echo "$ac_try_echo") >&5 | |
5734 | (eval "$ac_compile") 2>conftest.er1 | |
5735 | ac_status=$? | |
5736 | grep -v '^ *+' conftest.er1 >conftest.err | |
5737 | rm -f conftest.er1 | |
5738 | cat conftest.err >&5 | |
5739 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5740 | (exit $ac_status); } && { | |
5741 | test -z "$ac_c_werror_flag" || | |
5742 | test ! -s conftest.err | |
5743 | } && test -s conftest.$ac_objext; then | |
5744 | cat >conftest.$ac_ext <<_ACEOF | |
5745 | /* confdefs.h. */ | |
5746 | _ACEOF | |
5747 | cat confdefs.h >>conftest.$ac_ext | |
5748 | cat >>conftest.$ac_ext <<_ACEOF | |
5749 | /* end confdefs.h. */ | |
5750 | $ac_includes_default | |
5751 | int | |
5752 | main () | |
5753 | { | |
5754 | if (sizeof ((off_t))) | |
5755 | return 0; | |
5756 | ; | |
5757 | return 0; | |
5758 | } | |
5759 | _ACEOF | |
5760 | rm -f conftest.$ac_objext | |
5761 | if { (ac_try="$ac_compile" | |
5762 | case "(($ac_try" in | |
5763 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5764 | *) ac_try_echo=$ac_try;; | |
5765 | esac | |
5766 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5767 | $as_echo "$ac_try_echo") >&5 | |
5768 | (eval "$ac_compile") 2>conftest.er1 | |
5769 | ac_status=$? | |
5770 | grep -v '^ *+' conftest.er1 >conftest.err | |
5771 | rm -f conftest.er1 | |
5772 | cat conftest.err >&5 | |
5773 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5774 | (exit $ac_status); } && { | |
5775 | test -z "$ac_c_werror_flag" || | |
5776 | test ! -s conftest.err | |
5777 | } && test -s conftest.$ac_objext; then | |
5778 | : | |
5779 | else | |
5780 | $as_echo "$as_me: failed program was:" >&5 | |
5781 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5782 | ||
5783 | ac_cv_type_off_t=yes | |
5784 | fi | |
5785 | ||
5786 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5787 | else | |
5788 | $as_echo "$as_me: failed program was:" >&5 | |
5789 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5790 | ||
5791 | ||
5792 | fi | |
5793 | ||
5794 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5795 | fi | |
5796 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 | |
5797 | $as_echo "$ac_cv_type_off_t" >&6; } | |
5798 | if test "x$ac_cv_type_off_t" = x""yes; then | |
5799 | : | |
5800 | else | |
5801 | ||
5802 | cat >>confdefs.h <<_ACEOF | |
5803 | #define off_t long int | |
5804 | _ACEOF | |
5805 | ||
5806 | fi | |
5807 | ||
5808 | { $as_echo "$as_me:$LINENO: checking for pid_t" >&5 | |
5809 | $as_echo_n "checking for pid_t... " >&6; } | |
5810 | if test "${ac_cv_type_pid_t+set}" = set; then | |
5811 | $as_echo_n "(cached) " >&6 | |
5812 | else | |
5813 | ac_cv_type_pid_t=no | |
5814 | cat >conftest.$ac_ext <<_ACEOF | |
5815 | /* confdefs.h. */ | |
5816 | _ACEOF | |
5817 | cat confdefs.h >>conftest.$ac_ext | |
5818 | cat >>conftest.$ac_ext <<_ACEOF | |
5819 | /* end confdefs.h. */ | |
5820 | $ac_includes_default | |
5821 | int | |
5822 | main () | |
5823 | { | |
5824 | if (sizeof (pid_t)) | |
5825 | return 0; | |
5826 | ; | |
5827 | return 0; | |
5828 | } | |
5829 | _ACEOF | |
5830 | rm -f conftest.$ac_objext | |
5831 | if { (ac_try="$ac_compile" | |
5832 | case "(($ac_try" in | |
5833 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5834 | *) ac_try_echo=$ac_try;; | |
5835 | esac | |
5836 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5837 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
5838 | (eval "$ac_compile") 2>conftest.er1 |
5839 | ac_status=$? | |
5840 | grep -v '^ *+' conftest.er1 >conftest.err | |
5841 | rm -f conftest.er1 | |
5842 | cat conftest.err >&5 | |
ec6a6fbe | 5843 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
5844 | (exit $ac_status); } && { |
5845 | test -z "$ac_c_werror_flag" || | |
5846 | test ! -s conftest.err | |
5847 | } && test -s conftest.$ac_objext; then | |
ec6a6fbe | 5848 | cat >conftest.$ac_ext <<_ACEOF |
d0191583 JM |
5849 | /* confdefs.h. */ |
5850 | _ACEOF | |
5851 | cat confdefs.h >>conftest.$ac_ext | |
5852 | cat >>conftest.$ac_ext <<_ACEOF | |
5853 | /* end confdefs.h. */ | |
5854 | $ac_includes_default | |
5855 | int | |
5856 | main () | |
5857 | { | |
ec6a6fbe AK |
5858 | if (sizeof ((pid_t))) |
5859 | return 0; | |
d0191583 JM |
5860 | ; |
5861 | return 0; | |
5862 | } | |
5863 | _ACEOF | |
5864 | rm -f conftest.$ac_objext | |
5865 | if { (ac_try="$ac_compile" | |
5866 | case "(($ac_try" in | |
5867 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5868 | *) ac_try_echo=$ac_try;; | |
5869 | esac | |
ec6a6fbe AK |
5870 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5871 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
5872 | (eval "$ac_compile") 2>conftest.er1 |
5873 | ac_status=$? | |
5874 | grep -v '^ *+' conftest.er1 >conftest.err | |
5875 | rm -f conftest.er1 | |
5876 | cat conftest.err >&5 | |
ec6a6fbe | 5877 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
5878 | (exit $ac_status); } && { |
5879 | test -z "$ac_c_werror_flag" || | |
5880 | test ! -s conftest.err | |
5881 | } && test -s conftest.$ac_objext; then | |
ec6a6fbe | 5882 | : |
d0191583 | 5883 | else |
ec6a6fbe | 5884 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 JM |
5885 | sed 's/^/| /' conftest.$ac_ext >&5 |
5886 | ||
ec6a6fbe | 5887 | ac_cv_type_pid_t=yes |
d0191583 JM |
5888 | fi |
5889 | ||
5890 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
5891 | else |
5892 | $as_echo "$as_me: failed program was:" >&5 | |
5893 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5894 | ||
5895 | ||
d0191583 JM |
5896 | fi |
5897 | ||
5898 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5899 | fi | |
ec6a6fbe AK |
5900 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
5901 | $as_echo "$ac_cv_type_pid_t" >&6; } | |
5902 | if test "x$ac_cv_type_pid_t" = x""yes; then | |
5903 | : | |
5904 | else | |
d0191583 JM |
5905 | |
5906 | cat >>confdefs.h <<_ACEOF | |
ec6a6fbe | 5907 | #define pid_t int |
d0191583 JM |
5908 | _ACEOF |
5909 | ||
d0191583 | 5910 | fi |
8ce0cbda | 5911 | |
ec6a6fbe AK |
5912 | { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
5913 | $as_echo_n "checking return type of signal handlers... " >&6; } | |
5914 | if test "${ac_cv_type_signal+set}" = set; then | |
5915 | $as_echo_n "(cached) " >&6 | |
ad6254c5 | 5916 | else |
b145d876 ZK |
5917 | cat >conftest.$ac_ext <<_ACEOF |
5918 | /* confdefs.h. */ | |
5919 | _ACEOF | |
5920 | cat confdefs.h >>conftest.$ac_ext | |
5921 | cat >>conftest.$ac_ext <<_ACEOF | |
5922 | /* end confdefs.h. */ | |
ec6a6fbe AK |
5923 | #include <sys/types.h> |
5924 | #include <signal.h> | |
5925 | ||
b145d876 ZK |
5926 | int |
5927 | main () | |
5928 | { | |
ec6a6fbe | 5929 | return *(signal (0, 0)) (0) == 1; |
ad6254c5 AK |
5930 | ; |
5931 | return 0; | |
5932 | } | |
5933 | _ACEOF | |
5934 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5935 | if { (ac_try="$ac_compile" |
5936 | case "(($ac_try" in | |
5937 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5938 | *) ac_try_echo=$ac_try;; | |
5939 | esac | |
ec6a6fbe AK |
5940 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5941 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5942 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5943 | ac_status=$? |
8a2fc586 AK |
5944 | grep -v '^ *+' conftest.er1 >conftest.err |
5945 | rm -f conftest.er1 | |
5946 | cat conftest.err >&5 | |
ec6a6fbe | 5947 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5948 | (exit $ac_status); } && { |
5949 | test -z "$ac_c_werror_flag" || | |
5950 | test ! -s conftest.err | |
5951 | } && test -s conftest.$ac_objext; then | |
ec6a6fbe | 5952 | ac_cv_type_signal=int |
b145d876 | 5953 | else |
ec6a6fbe | 5954 | $as_echo "$as_me: failed program was:" >&5 |
b145d876 ZK |
5955 | sed 's/^/| /' conftest.$ac_ext >&5 |
5956 | ||
ec6a6fbe | 5957 | ac_cv_type_signal=void |
ad6254c5 | 5958 | fi |
b145d876 ZK |
5959 | |
5960 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5961 | fi | |
ec6a6fbe AK |
5962 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
5963 | $as_echo "$ac_cv_type_signal" >&6; } | |
80992638 | 5964 | |
ad6254c5 | 5965 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 5966 | #define RETSIGTYPE $ac_cv_type_signal |
ad6254c5 | 5967 | _ACEOF |
199e490e | 5968 | |
b896caa1 | 5969 | |
ec6a6fbe AK |
5970 | { $as_echo "$as_me:$LINENO: checking for size_t" >&5 |
5971 | $as_echo_n "checking for size_t... " >&6; } | |
5972 | if test "${ac_cv_type_size_t+set}" = set; then | |
5973 | $as_echo_n "(cached) " >&6 | |
ad6254c5 | 5974 | else |
ec6a6fbe AK |
5975 | ac_cv_type_size_t=no |
5976 | cat >conftest.$ac_ext <<_ACEOF | |
b145d876 ZK |
5977 | /* confdefs.h. */ |
5978 | _ACEOF | |
5979 | cat confdefs.h >>conftest.$ac_ext | |
5980 | cat >>conftest.$ac_ext <<_ACEOF | |
5981 | /* end confdefs.h. */ | |
5982 | $ac_includes_default | |
5983 | int | |
5984 | main () | |
5985 | { | |
ec6a6fbe AK |
5986 | if (sizeof (size_t)) |
5987 | return 0; | |
ad6254c5 AK |
5988 | ; |
5989 | return 0; | |
5990 | } | |
5991 | _ACEOF | |
5992 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5993 | if { (ac_try="$ac_compile" |
5994 | case "(($ac_try" in | |
5995 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5996 | *) ac_try_echo=$ac_try;; | |
5997 | esac | |
ec6a6fbe AK |
5998 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5999 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6000 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6001 | ac_status=$? |
8a2fc586 AK |
6002 | grep -v '^ *+' conftest.er1 >conftest.err |
6003 | rm -f conftest.er1 | |
6004 | cat conftest.err >&5 | |
ec6a6fbe | 6005 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6006 | (exit $ac_status); } && { |
6007 | test -z "$ac_c_werror_flag" || | |
6008 | test ! -s conftest.err | |
6009 | } && test -s conftest.$ac_objext; then | |
d0191583 JM |
6010 | cat >conftest.$ac_ext <<_ACEOF |
6011 | /* confdefs.h. */ | |
6012 | _ACEOF | |
6013 | cat confdefs.h >>conftest.$ac_ext | |
6014 | cat >>conftest.$ac_ext <<_ACEOF | |
6015 | /* end confdefs.h. */ | |
ec6a6fbe | 6016 | $ac_includes_default |
d0191583 JM |
6017 | int |
6018 | main () | |
6019 | { | |
ec6a6fbe AK |
6020 | if (sizeof ((size_t))) |
6021 | return 0; | |
d0191583 JM |
6022 | ; |
6023 | return 0; | |
6024 | } | |
6025 | _ACEOF | |
6026 | rm -f conftest.$ac_objext | |
6027 | if { (ac_try="$ac_compile" | |
6028 | case "(($ac_try" in | |
6029 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6030 | *) ac_try_echo=$ac_try;; | |
6031 | esac | |
ec6a6fbe AK |
6032 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6033 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
6034 | (eval "$ac_compile") 2>conftest.er1 |
6035 | ac_status=$? | |
6036 | grep -v '^ *+' conftest.er1 >conftest.err | |
6037 | rm -f conftest.er1 | |
6038 | cat conftest.err >&5 | |
ec6a6fbe | 6039 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
6040 | (exit $ac_status); } && { |
6041 | test -z "$ac_c_werror_flag" || | |
6042 | test ! -s conftest.err | |
6043 | } && test -s conftest.$ac_objext; then | |
ec6a6fbe | 6044 | : |
d0191583 | 6045 | else |
ec6a6fbe | 6046 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 JM |
6047 | sed 's/^/| /' conftest.$ac_ext >&5 |
6048 | ||
ec6a6fbe AK |
6049 | ac_cv_type_size_t=yes |
6050 | fi | |
6051 | ||
6052 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6053 | else | |
6054 | $as_echo "$as_me: failed program was:" >&5 | |
6055 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6056 | ||
6057 | ||
d0191583 JM |
6058 | fi |
6059 | ||
6060 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6061 | fi | |
ec6a6fbe AK |
6062 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
6063 | $as_echo "$ac_cv_type_size_t" >&6; } | |
6064 | if test "x$ac_cv_type_size_t" = x""yes; then | |
6065 | : | |
6066 | else | |
d0191583 JM |
6067 | |
6068 | cat >>confdefs.h <<_ACEOF | |
ec6a6fbe | 6069 | #define size_t unsigned int |
d0191583 JM |
6070 | _ACEOF |
6071 | ||
ec6a6fbe | 6072 | fi |
d0191583 | 6073 | |
ec6a6fbe AK |
6074 | { $as_echo "$as_me:$LINENO: checking for mode_t" >&5 |
6075 | $as_echo_n "checking for mode_t... " >&6; } | |
6076 | if test "${ac_cv_type_mode_t+set}" = set; then | |
6077 | $as_echo_n "(cached) " >&6 | |
8106cdd5 | 6078 | else |
ec6a6fbe AK |
6079 | ac_cv_type_mode_t=no |
6080 | cat >conftest.$ac_ext <<_ACEOF | |
b145d876 ZK |
6081 | /* confdefs.h. */ |
6082 | _ACEOF | |
6083 | cat confdefs.h >>conftest.$ac_ext | |
6084 | cat >>conftest.$ac_ext <<_ACEOF | |
6085 | /* end confdefs.h. */ | |
6086 | $ac_includes_default | |
6087 | int | |
6088 | main () | |
6089 | { | |
ec6a6fbe AK |
6090 | if (sizeof (mode_t)) |
6091 | return 0; | |
ad6254c5 AK |
6092 | ; |
6093 | return 0; | |
6094 | } | |
6095 | _ACEOF | |
6096 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6097 | if { (ac_try="$ac_compile" |
6098 | case "(($ac_try" in | |
6099 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6100 | *) ac_try_echo=$ac_try;; | |
6101 | esac | |
ec6a6fbe AK |
6102 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6103 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6104 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6105 | ac_status=$? |
8a2fc586 AK |
6106 | grep -v '^ *+' conftest.er1 >conftest.err |
6107 | rm -f conftest.er1 | |
6108 | cat conftest.err >&5 | |
ec6a6fbe | 6109 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6110 | (exit $ac_status); } && { |
6111 | test -z "$ac_c_werror_flag" || | |
6112 | test ! -s conftest.err | |
6113 | } && test -s conftest.$ac_objext; then | |
b145d876 ZK |
6114 | cat >conftest.$ac_ext <<_ACEOF |
6115 | /* confdefs.h. */ | |
6116 | _ACEOF | |
6117 | cat confdefs.h >>conftest.$ac_ext | |
6118 | cat >>conftest.$ac_ext <<_ACEOF | |
6119 | /* end confdefs.h. */ | |
6120 | $ac_includes_default | |
6121 | int | |
6122 | main () | |
6123 | { | |
ec6a6fbe AK |
6124 | if (sizeof ((mode_t))) |
6125 | return 0; | |
ad6254c5 AK |
6126 | ; |
6127 | return 0; | |
6128 | } | |
6129 | _ACEOF | |
6130 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6131 | if { (ac_try="$ac_compile" |
6132 | case "(($ac_try" in | |
6133 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6134 | *) ac_try_echo=$ac_try;; | |
6135 | esac | |
ec6a6fbe AK |
6136 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6137 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6138 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6139 | ac_status=$? |
8a2fc586 AK |
6140 | grep -v '^ *+' conftest.er1 >conftest.err |
6141 | rm -f conftest.er1 | |
6142 | cat conftest.err >&5 | |
ec6a6fbe | 6143 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6144 | (exit $ac_status); } && { |
6145 | test -z "$ac_c_werror_flag" || | |
6146 | test ! -s conftest.err | |
6147 | } && test -s conftest.$ac_objext; then | |
ec6a6fbe AK |
6148 | : |
6149 | else | |
6150 | $as_echo "$as_me: failed program was:" >&5 | |
6151 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6152 | ||
6153 | ac_cv_type_mode_t=yes | |
6154 | fi | |
6155 | ||
6156 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
fddafd51 | 6157 | else |
ec6a6fbe | 6158 | $as_echo "$as_me: failed program was:" >&5 |
fddafd51 ZK |
6159 | sed 's/^/| /' conftest.$ac_ext >&5 |
6160 | ||
ec6a6fbe | 6161 | |
80992638 | 6162 | fi |
7a197a62 AK |
6163 | |
6164 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 6165 | fi |
ec6a6fbe AK |
6166 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
6167 | $as_echo "$ac_cv_type_mode_t" >&6; } | |
6168 | if test "x$ac_cv_type_mode_t" = x""yes; then | |
ad6254c5 AK |
6169 | : |
6170 | else | |
80992638 | 6171 | |
ad6254c5 AK |
6172 | cat >>confdefs.h <<_ACEOF |
6173 | #define mode_t int | |
6174 | _ACEOF | |
6175 | ||
6176 | fi | |
6177 | ||
ec6a6fbe AK |
6178 | { $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 |
6179 | $as_echo_n "checking for struct stat.st_rdev... " >&6; } | |
ad6254c5 | 6180 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then |
ec6a6fbe | 6181 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
6182 | else |
6183 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6184 | /* confdefs.h. */ |
6185 | _ACEOF | |
6186 | cat confdefs.h >>conftest.$ac_ext | |
6187 | cat >>conftest.$ac_ext <<_ACEOF | |
6188 | /* end confdefs.h. */ | |
6189 | $ac_includes_default | |
6190 | int | |
6191 | main () | |
6192 | { | |
6193 | static struct stat ac_aggr; | |
6194 | if (ac_aggr.st_rdev) | |
6195 | return 0; | |
6196 | ; | |
6197 | return 0; | |
6198 | } | |
6199 | _ACEOF | |
6200 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6201 | if { (ac_try="$ac_compile" |
6202 | case "(($ac_try" in | |
6203 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6204 | *) ac_try_echo=$ac_try;; | |
6205 | esac | |
ec6a6fbe AK |
6206 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6207 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6208 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6209 | ac_status=$? |
8a2fc586 AK |
6210 | grep -v '^ *+' conftest.er1 >conftest.err |
6211 | rm -f conftest.er1 | |
6212 | cat conftest.err >&5 | |
ec6a6fbe | 6213 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6214 | (exit $ac_status); } && { |
6215 | test -z "$ac_c_werror_flag" || | |
6216 | test ! -s conftest.err | |
6217 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
6218 | ac_cv_member_struct_stat_st_rdev=yes |
6219 | else | |
ec6a6fbe | 6220 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6221 | sed 's/^/| /' conftest.$ac_ext >&5 |
6222 | ||
7a197a62 | 6223 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
6224 | /* confdefs.h. */ |
6225 | _ACEOF | |
6226 | cat confdefs.h >>conftest.$ac_ext | |
6227 | cat >>conftest.$ac_ext <<_ACEOF | |
6228 | /* end confdefs.h. */ | |
6229 | $ac_includes_default | |
6230 | int | |
6231 | main () | |
6232 | { | |
6233 | static struct stat ac_aggr; | |
6234 | if (sizeof ac_aggr.st_rdev) | |
6235 | return 0; | |
6236 | ; | |
6237 | return 0; | |
6238 | } | |
6239 | _ACEOF | |
6240 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6241 | if { (ac_try="$ac_compile" |
6242 | case "(($ac_try" in | |
6243 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6244 | *) ac_try_echo=$ac_try;; | |
6245 | esac | |
ec6a6fbe AK |
6246 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6247 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6248 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6249 | ac_status=$? |
8a2fc586 AK |
6250 | grep -v '^ *+' conftest.er1 >conftest.err |
6251 | rm -f conftest.er1 | |
6252 | cat conftest.err >&5 | |
ec6a6fbe | 6253 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6254 | (exit $ac_status); } && { |
6255 | test -z "$ac_c_werror_flag" || | |
6256 | test ! -s conftest.err | |
6257 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
6258 | ac_cv_member_struct_stat_st_rdev=yes |
6259 | else | |
ec6a6fbe | 6260 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6261 | sed 's/^/| /' conftest.$ac_ext >&5 |
6262 | ||
7a197a62 | 6263 | ac_cv_member_struct_stat_st_rdev=no |
ad6254c5 | 6264 | fi |
7a197a62 AK |
6265 | |
6266 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 6267 | fi |
7a197a62 AK |
6268 | |
6269 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 6270 | fi |
ec6a6fbe AK |
6271 | { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 |
6272 | $as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; } | |
6273 | if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then | |
ad6254c5 AK |
6274 | |
6275 | cat >>confdefs.h <<_ACEOF | |
6276 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | |
6277 | _ACEOF | |
6278 | ||
6279 | ||
ad6254c5 AK |
6280 | fi |
6281 | ||
ec6a6fbe AK |
6282 | { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
6283 | $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } | |
ad6254c5 | 6284 | if test "${ac_cv_struct_tm+set}" = set; then |
ec6a6fbe | 6285 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
6286 | else |
6287 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6288 | /* confdefs.h. */ |
6289 | _ACEOF | |
6290 | cat confdefs.h >>conftest.$ac_ext | |
6291 | cat >>conftest.$ac_ext <<_ACEOF | |
6292 | /* end confdefs.h. */ | |
6293 | #include <sys/types.h> | |
6294 | #include <time.h> | |
6295 | ||
6296 | int | |
6297 | main () | |
6298 | { | |
25fbec5b AK |
6299 | struct tm tm; |
6300 | int *p = &tm.tm_sec; | |
ec6a6fbe | 6301 | return !p; |
ad6254c5 AK |
6302 | ; |
6303 | return 0; | |
6304 | } | |
6305 | _ACEOF | |
6306 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6307 | if { (ac_try="$ac_compile" |
6308 | case "(($ac_try" in | |
6309 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6310 | *) ac_try_echo=$ac_try;; | |
6311 | esac | |
ec6a6fbe AK |
6312 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6313 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6314 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6315 | ac_status=$? |
8a2fc586 AK |
6316 | grep -v '^ *+' conftest.er1 >conftest.err |
6317 | rm -f conftest.er1 | |
6318 | cat conftest.err >&5 | |
ec6a6fbe | 6319 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6320 | (exit $ac_status); } && { |
6321 | test -z "$ac_c_werror_flag" || | |
6322 | test ! -s conftest.err | |
6323 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
6324 | ac_cv_struct_tm=time.h |
6325 | else | |
ec6a6fbe | 6326 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6327 | sed 's/^/| /' conftest.$ac_ext >&5 |
6328 | ||
7a197a62 | 6329 | ac_cv_struct_tm=sys/time.h |
ad6254c5 | 6330 | fi |
7a197a62 AK |
6331 | |
6332 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 6333 | fi |
ec6a6fbe AK |
6334 | { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
6335 | $as_echo "$ac_cv_struct_tm" >&6; } | |
ad6254c5 AK |
6336 | if test $ac_cv_struct_tm = sys/time.h; then |
6337 | ||
6338 | cat >>confdefs.h <<\_ACEOF | |
6339 | #define TM_IN_SYS_TIME 1 | |
6340 | _ACEOF | |
6341 | ||
6342 | fi | |
809fae91 | 6343 | |
795ca3e5 | 6344 | |
80992638 | 6345 | ################################################################################ |
ad6254c5 AK |
6346 | |
6347 | ||
6348 | ||
6349 | ||
6350 | ||
6351 | ||
6352 | ||
6353 | ||
6354 | ||
6355 | ||
6356 | ||
6357 | ||
6358 | ||
6359 | ||
d0191583 JM |
6360 | |
6361 | ||
6362 | ||
6363 | for ac_func in gethostname getpagesize memset mkdir rmdir munmap setlocale \ | |
6364 | strcasecmp strchr strdup strncasecmp strerror strrchr strstr strtol strtoul \ | |
6365 | uname | |
ad6254c5 | 6366 | do |
ec6a6fbe AK |
6367 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
6368 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
6369 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 6370 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 6371 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 6372 | else |
ad6254c5 | 6373 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
6374 | /* confdefs.h. */ |
6375 | _ACEOF | |
6376 | cat confdefs.h >>conftest.$ac_ext | |
6377 | cat >>conftest.$ac_ext <<_ACEOF | |
6378 | /* end confdefs.h. */ | |
8a2fc586 AK |
6379 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
6380 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6381 | #define $ac_func innocuous_$ac_func | |
6382 | ||
ad6254c5 AK |
6383 | /* System header to define __stub macros and hopefully few prototypes, |
6384 | which can conflict with char $ac_func (); below. | |
6385 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6386 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 6387 | |
ad6254c5 AK |
6388 | #ifdef __STDC__ |
6389 | # include <limits.h> | |
6390 | #else | |
6391 | # include <assert.h> | |
6392 | #endif | |
8a2fc586 AK |
6393 | |
6394 | #undef $ac_func | |
6395 | ||
7a197a62 AK |
6396 | /* Override any GCC internal prototype to avoid an error. |
6397 | Use char because int might match the return type of a GCC | |
6398 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
6399 | #ifdef __cplusplus |
6400 | extern "C" | |
ad6254c5 | 6401 | #endif |
ad6254c5 AK |
6402 | char $ac_func (); |
6403 | /* The GNU C library defines this for functions which it implements | |
6404 | to always fail with ENOSYS. Some functions are actually named | |
6405 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 6406 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 6407 | choke me |
ad6254c5 AK |
6408 | #endif |
6409 | ||
6410 | int | |
6411 | main () | |
6412 | { | |
7a197a62 | 6413 | return $ac_func (); |
ad6254c5 AK |
6414 | ; |
6415 | return 0; | |
6416 | } | |
6417 | _ACEOF | |
6418 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
6419 | if { (ac_try="$ac_link" |
6420 | case "(($ac_try" in | |
6421 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6422 | *) ac_try_echo=$ac_try;; | |
6423 | esac | |
ec6a6fbe AK |
6424 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6425 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6426 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 6427 | ac_status=$? |
8a2fc586 AK |
6428 | grep -v '^ *+' conftest.er1 >conftest.err |
6429 | rm -f conftest.er1 | |
6430 | cat conftest.err >&5 | |
ec6a6fbe | 6431 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6432 | (exit $ac_status); } && { |
6433 | test -z "$ac_c_werror_flag" || | |
6434 | test ! -s conftest.err | |
ec6a6fbe AK |
6435 | } && test -s conftest$ac_exeext && { |
6436 | test "$cross_compiling" = yes || | |
6437 | $as_test_x conftest$ac_exeext | |
6438 | }; then | |
fc54be10 AK |
6439 | eval "$as_ac_var=yes" |
6440 | else | |
ec6a6fbe | 6441 | $as_echo "$as_me: failed program was:" >&5 |
fc54be10 AK |
6442 | sed 's/^/| /' conftest.$ac_ext >&5 |
6443 | ||
6444 | eval "$as_ac_var=no" | |
6445 | fi | |
6446 | ||
ec6a6fbe | 6447 | rm -rf conftest.dSYM |
25fbec5b | 6448 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
fc54be10 AK |
6449 | conftest$ac_exeext conftest.$ac_ext |
6450 | fi | |
ec6a6fbe AK |
6451 | ac_res=`eval 'as_val=${'$as_ac_var'} |
6452 | $as_echo "$as_val"'` | |
6453 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6454 | $as_echo "$ac_res" >&6; } | |
6455 | as_val=`eval 'as_val=${'$as_ac_var'} | |
6456 | $as_echo "$as_val"'` | |
6457 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 6458 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 6459 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
6460 | _ACEOF |
6461 | ||
6462 | else | |
ec6a6fbe AK |
6463 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
6464 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 AK |
6465 | { (exit 1); exit 1; }; } |
6466 | fi | |
6467 | done | |
795ca3e5 | 6468 | |
ad6254c5 AK |
6469 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
6470 | # for constant arguments. Useless! | |
ec6a6fbe AK |
6471 | { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
6472 | $as_echo_n "checking for working alloca.h... " >&6; } | |
ad6254c5 | 6473 | if test "${ac_cv_working_alloca_h+set}" = set; then |
ec6a6fbe | 6474 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
6475 | else |
6476 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6477 | /* confdefs.h. */ |
6478 | _ACEOF | |
6479 | cat confdefs.h >>conftest.$ac_ext | |
6480 | cat >>conftest.$ac_ext <<_ACEOF | |
6481 | /* end confdefs.h. */ | |
6482 | #include <alloca.h> | |
6483 | int | |
6484 | main () | |
6485 | { | |
6486 | char *p = (char *) alloca (2 * sizeof (int)); | |
7a197a62 | 6487 | if (p) return 0; |
ad6254c5 AK |
6488 | ; |
6489 | return 0; | |
6490 | } | |
6491 | _ACEOF | |
6492 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
6493 | if { (ac_try="$ac_link" |
6494 | case "(($ac_try" in | |
6495 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6496 | *) ac_try_echo=$ac_try;; | |
6497 | esac | |
ec6a6fbe AK |
6498 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6499 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6500 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 6501 | ac_status=$? |
8a2fc586 AK |
6502 | grep -v '^ *+' conftest.er1 >conftest.err |
6503 | rm -f conftest.er1 | |
6504 | cat conftest.err >&5 | |
ec6a6fbe | 6505 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6506 | (exit $ac_status); } && { |
6507 | test -z "$ac_c_werror_flag" || | |
6508 | test ! -s conftest.err | |
ec6a6fbe AK |
6509 | } && test -s conftest$ac_exeext && { |
6510 | test "$cross_compiling" = yes || | |
6511 | $as_test_x conftest$ac_exeext | |
6512 | }; then | |
ad6254c5 AK |
6513 | ac_cv_working_alloca_h=yes |
6514 | else | |
ec6a6fbe | 6515 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 | 6516 | sed 's/^/| /' conftest.$ac_ext >&5 |
795ca3e5 | 6517 | |
7a197a62 | 6518 | ac_cv_working_alloca_h=no |
ad6254c5 | 6519 | fi |
7a197a62 | 6520 | |
ec6a6fbe | 6521 | rm -rf conftest.dSYM |
25fbec5b | 6522 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 6523 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 6524 | fi |
ec6a6fbe AK |
6525 | { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
6526 | $as_echo "$ac_cv_working_alloca_h" >&6; } | |
ad6254c5 AK |
6527 | if test $ac_cv_working_alloca_h = yes; then |
6528 | ||
6529 | cat >>confdefs.h <<\_ACEOF | |
6530 | #define HAVE_ALLOCA_H 1 | |
6531 | _ACEOF | |
6532 | ||
6533 | fi | |
6534 | ||
ec6a6fbe AK |
6535 | { $as_echo "$as_me:$LINENO: checking for alloca" >&5 |
6536 | $as_echo_n "checking for alloca... " >&6; } | |
ad6254c5 | 6537 | if test "${ac_cv_func_alloca_works+set}" = set; then |
ec6a6fbe | 6538 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
6539 | else |
6540 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6541 | /* confdefs.h. */ |
6542 | _ACEOF | |
6543 | cat confdefs.h >>conftest.$ac_ext | |
6544 | cat >>conftest.$ac_ext <<_ACEOF | |
6545 | /* end confdefs.h. */ | |
6546 | #ifdef __GNUC__ | |
6547 | # define alloca __builtin_alloca | |
6548 | #else | |
6549 | # ifdef _MSC_VER | |
6550 | # include <malloc.h> | |
6551 | # define alloca _alloca | |
6552 | # else | |
25fbec5b | 6553 | # ifdef HAVE_ALLOCA_H |
ad6254c5 AK |
6554 | # include <alloca.h> |
6555 | # else | |
6556 | # ifdef _AIX | |
6557 | #pragma alloca | |
6558 | # else | |
6559 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
6560 | char *alloca (); | |
6561 | # endif | |
6562 | # endif | |
6563 | # endif | |
6564 | # endif | |
6565 | #endif | |
6566 | ||
6567 | int | |
6568 | main () | |
6569 | { | |
6570 | char *p = (char *) alloca (1); | |
7a197a62 | 6571 | if (p) return 0; |
ad6254c5 AK |
6572 | ; |
6573 | return 0; | |
6574 | } | |
6575 | _ACEOF | |
6576 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
6577 | if { (ac_try="$ac_link" |
6578 | case "(($ac_try" in | |
6579 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6580 | *) ac_try_echo=$ac_try;; | |
6581 | esac | |
ec6a6fbe AK |
6582 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6583 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6584 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 6585 | ac_status=$? |
8a2fc586 AK |
6586 | grep -v '^ *+' conftest.er1 >conftest.err |
6587 | rm -f conftest.er1 | |
6588 | cat conftest.err >&5 | |
ec6a6fbe | 6589 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6590 | (exit $ac_status); } && { |
6591 | test -z "$ac_c_werror_flag" || | |
6592 | test ! -s conftest.err | |
ec6a6fbe AK |
6593 | } && test -s conftest$ac_exeext && { |
6594 | test "$cross_compiling" = yes || | |
6595 | $as_test_x conftest$ac_exeext | |
6596 | }; then | |
ad6254c5 AK |
6597 | ac_cv_func_alloca_works=yes |
6598 | else | |
ec6a6fbe | 6599 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6600 | sed 's/^/| /' conftest.$ac_ext >&5 |
6601 | ||
7a197a62 | 6602 | ac_cv_func_alloca_works=no |
ad6254c5 | 6603 | fi |
7a197a62 | 6604 | |
ec6a6fbe | 6605 | rm -rf conftest.dSYM |
25fbec5b | 6606 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 6607 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 6608 | fi |
ec6a6fbe AK |
6609 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
6610 | $as_echo "$ac_cv_func_alloca_works" >&6; } | |
ad6254c5 AK |
6611 | |
6612 | if test $ac_cv_func_alloca_works = yes; then | |
6613 | ||
6614 | cat >>confdefs.h <<\_ACEOF | |
6615 | #define HAVE_ALLOCA 1 | |
6616 | _ACEOF | |
6617 | ||
6618 | else | |
6619 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
6620 | # that cause trouble. Some versions do not even contain alloca or | |
6621 | # contain a buggy version. If you still want to use their alloca, | |
6622 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
6623 | ||
7a197a62 | 6624 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
ad6254c5 AK |
6625 | |
6626 | cat >>confdefs.h <<\_ACEOF | |
6627 | #define C_ALLOCA 1 | |
6628 | _ACEOF | |
6629 | ||
6630 | ||
ec6a6fbe AK |
6631 | { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
6632 | $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } | |
ad6254c5 | 6633 | if test "${ac_cv_os_cray+set}" = set; then |
ec6a6fbe | 6634 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
6635 | else |
6636 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6637 | /* confdefs.h. */ |
6638 | _ACEOF | |
6639 | cat confdefs.h >>conftest.$ac_ext | |
6640 | cat >>conftest.$ac_ext <<_ACEOF | |
6641 | /* end confdefs.h. */ | |
7a197a62 | 6642 | #if defined CRAY && ! defined CRAY2 |
ad6254c5 AK |
6643 | webecray |
6644 | #else | |
6645 | wenotbecray | |
6646 | #endif | |
6647 | ||
6648 | _ACEOF | |
795ca3e5 | 6649 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
ad6254c5 AK |
6650 | $EGREP "webecray" >/dev/null 2>&1; then |
6651 | ac_cv_os_cray=yes | |
6652 | else | |
6653 | ac_cv_os_cray=no | |
795ca3e5 AK |
6654 | fi |
6655 | rm -f conftest* | |
6656 | ||
795ca3e5 | 6657 | fi |
ec6a6fbe AK |
6658 | { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
6659 | $as_echo "$ac_cv_os_cray" >&6; } | |
ad6254c5 AK |
6660 | if test $ac_cv_os_cray = yes; then |
6661 | for ac_func in _getb67 GETB67 getb67; do | |
ec6a6fbe AK |
6662 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
6663 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
6664 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 6665 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 6666 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
6667 | else |
6668 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6669 | /* confdefs.h. */ |
6670 | _ACEOF | |
6671 | cat confdefs.h >>conftest.$ac_ext | |
6672 | cat >>conftest.$ac_ext <<_ACEOF | |
6673 | /* end confdefs.h. */ | |
8a2fc586 AK |
6674 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
6675 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6676 | #define $ac_func innocuous_$ac_func | |
6677 | ||
ad6254c5 AK |
6678 | /* System header to define __stub macros and hopefully few prototypes, |
6679 | which can conflict with char $ac_func (); below. | |
6680 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6681 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 6682 | |
ad6254c5 AK |
6683 | #ifdef __STDC__ |
6684 | # include <limits.h> | |
6685 | #else | |
6686 | # include <assert.h> | |
6687 | #endif | |
8a2fc586 AK |
6688 | |
6689 | #undef $ac_func | |
6690 | ||
7a197a62 AK |
6691 | /* Override any GCC internal prototype to avoid an error. |
6692 | Use char because int might match the return type of a GCC | |
6693 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
6694 | #ifdef __cplusplus |
6695 | extern "C" | |
ad6254c5 | 6696 | #endif |
ad6254c5 AK |
6697 | char $ac_func (); |
6698 | /* The GNU C library defines this for functions which it implements | |
6699 | to always fail with ENOSYS. Some functions are actually named | |
6700 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 6701 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 6702 | choke me |
ad6254c5 AK |
6703 | #endif |
6704 | ||
6705 | int | |
6706 | main () | |
6707 | { | |
7a197a62 | 6708 | return $ac_func (); |
ad6254c5 AK |
6709 | ; |
6710 | return 0; | |
6711 | } | |
6712 | _ACEOF | |
6713 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
6714 | if { (ac_try="$ac_link" |
6715 | case "(($ac_try" in | |
6716 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6717 | *) ac_try_echo=$ac_try;; | |
6718 | esac | |
ec6a6fbe AK |
6719 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6720 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6721 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 6722 | ac_status=$? |
8a2fc586 AK |
6723 | grep -v '^ *+' conftest.er1 >conftest.err |
6724 | rm -f conftest.er1 | |
6725 | cat conftest.err >&5 | |
ec6a6fbe | 6726 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6727 | (exit $ac_status); } && { |
6728 | test -z "$ac_c_werror_flag" || | |
6729 | test ! -s conftest.err | |
ec6a6fbe AK |
6730 | } && test -s conftest$ac_exeext && { |
6731 | test "$cross_compiling" = yes || | |
6732 | $as_test_x conftest$ac_exeext | |
6733 | }; then | |
ad6254c5 AK |
6734 | eval "$as_ac_var=yes" |
6735 | else | |
ec6a6fbe | 6736 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6737 | sed 's/^/| /' conftest.$ac_ext >&5 |
6738 | ||
7a197a62 | 6739 | eval "$as_ac_var=no" |
ad6254c5 | 6740 | fi |
7a197a62 | 6741 | |
ec6a6fbe | 6742 | rm -rf conftest.dSYM |
25fbec5b | 6743 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 6744 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 6745 | fi |
ec6a6fbe AK |
6746 | ac_res=`eval 'as_val=${'$as_ac_var'} |
6747 | $as_echo "$as_val"'` | |
6748 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6749 | $as_echo "$ac_res" >&6; } | |
6750 | as_val=`eval 'as_val=${'$as_ac_var'} | |
6751 | $as_echo "$as_val"'` | |
6752 | if test "x$as_val" = x""yes; then | |
80992638 | 6753 | |
ad6254c5 AK |
6754 | cat >>confdefs.h <<_ACEOF |
6755 | #define CRAY_STACKSEG_END $ac_func | |
6756 | _ACEOF | |
6757 | ||
6758 | break | |
6759 | fi | |
6760 | ||
6761 | done | |
6762 | fi | |
6763 | ||
ec6a6fbe AK |
6764 | { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
6765 | $as_echo_n "checking stack direction for C alloca... " >&6; } | |
ad6254c5 | 6766 | if test "${ac_cv_c_stack_direction+set}" = set; then |
ec6a6fbe | 6767 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
6768 | else |
6769 | if test "$cross_compiling" = yes; then | |
6770 | ac_cv_c_stack_direction=0 | |
6771 | else | |
6772 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6773 | /* confdefs.h. */ |
6774 | _ACEOF | |
6775 | cat confdefs.h >>conftest.$ac_ext | |
6776 | cat >>conftest.$ac_ext <<_ACEOF | |
6777 | /* end confdefs.h. */ | |
7a197a62 | 6778 | $ac_includes_default |
ad6254c5 AK |
6779 | int |
6780 | find_stack_direction () | |
6781 | { | |
6782 | static char *addr = 0; | |
6783 | auto char dummy; | |
6784 | if (addr == 0) | |
6785 | { | |
6786 | addr = &dummy; | |
6787 | return find_stack_direction (); | |
6788 | } | |
6789 | else | |
6790 | return (&dummy > addr) ? 1 : -1; | |
6791 | } | |
6792 | ||
6793 | int | |
6794 | main () | |
6795 | { | |
7a197a62 | 6796 | return find_stack_direction () < 0; |
ad6254c5 AK |
6797 | } |
6798 | _ACEOF | |
6799 | rm -f conftest$ac_exeext | |
7a197a62 AK |
6800 | if { (ac_try="$ac_link" |
6801 | case "(($ac_try" in | |
6802 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6803 | *) ac_try_echo=$ac_try;; | |
6804 | esac | |
ec6a6fbe AK |
6805 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6806 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6807 | (eval "$ac_link") 2>&5 |
ad6254c5 | 6808 | ac_status=$? |
ec6a6fbe | 6809 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 6810 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
6811 | { (case "(($ac_try" in |
6812 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6813 | *) ac_try_echo=$ac_try;; | |
6814 | esac | |
ec6a6fbe AK |
6815 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6816 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6817 | (eval "$ac_try") 2>&5 |
ad6254c5 | 6818 | ac_status=$? |
ec6a6fbe | 6819 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
6820 | (exit $ac_status); }; }; then |
6821 | ac_cv_c_stack_direction=1 | |
6822 | else | |
ec6a6fbe AK |
6823 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
6824 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
6825 | sed 's/^/| /' conftest.$ac_ext >&5 |
6826 | ||
6827 | ( exit $ac_status ) | |
6828 | ac_cv_c_stack_direction=-1 | |
6829 | fi | |
ec6a6fbe | 6830 | rm -rf conftest.dSYM |
7a197a62 | 6831 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 6832 | fi |
7a197a62 AK |
6833 | |
6834 | ||
ad6254c5 | 6835 | fi |
ec6a6fbe AK |
6836 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
6837 | $as_echo "$ac_cv_c_stack_direction" >&6; } | |
ad6254c5 AK |
6838 | |
6839 | cat >>confdefs.h <<_ACEOF | |
6840 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
6841 | _ACEOF | |
6842 | ||
6843 | ||
6844 | fi | |
6845 | ||
ec6a6fbe AK |
6846 | { $as_echo "$as_me:$LINENO: checking whether closedir returns void" >&5 |
6847 | $as_echo_n "checking whether closedir returns void... " >&6; } | |
ad6254c5 | 6848 | if test "${ac_cv_func_closedir_void+set}" = set; then |
ec6a6fbe | 6849 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
6850 | else |
6851 | if test "$cross_compiling" = yes; then | |
6852 | ac_cv_func_closedir_void=yes | |
6853 | else | |
6854 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6855 | /* confdefs.h. */ |
6856 | _ACEOF | |
6857 | cat confdefs.h >>conftest.$ac_ext | |
6858 | cat >>conftest.$ac_ext <<_ACEOF | |
6859 | /* end confdefs.h. */ | |
6860 | $ac_includes_default | |
6861 | #include <$ac_header_dirent> | |
6862 | #ifndef __cplusplus | |
6863 | int closedir (); | |
6864 | #endif | |
6865 | ||
6866 | int | |
6867 | main () | |
6868 | { | |
7a197a62 | 6869 | return closedir (opendir (".")) != 0; |
ad6254c5 AK |
6870 | ; |
6871 | return 0; | |
6872 | } | |
6873 | _ACEOF | |
6874 | rm -f conftest$ac_exeext | |
7a197a62 AK |
6875 | if { (ac_try="$ac_link" |
6876 | case "(($ac_try" in | |
6877 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6878 | *) ac_try_echo=$ac_try;; | |
6879 | esac | |
ec6a6fbe AK |
6880 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6881 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6882 | (eval "$ac_link") 2>&5 |
ad6254c5 | 6883 | ac_status=$? |
ec6a6fbe | 6884 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 6885 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
6886 | { (case "(($ac_try" in |
6887 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6888 | *) ac_try_echo=$ac_try;; | |
6889 | esac | |
ec6a6fbe AK |
6890 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6891 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6892 | (eval "$ac_try") 2>&5 |
ad6254c5 | 6893 | ac_status=$? |
ec6a6fbe | 6894 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
6895 | (exit $ac_status); }; }; then |
6896 | ac_cv_func_closedir_void=no | |
6897 | else | |
ec6a6fbe AK |
6898 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
6899 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
6900 | sed 's/^/| /' conftest.$ac_ext >&5 |
6901 | ||
6902 | ( exit $ac_status ) | |
6903 | ac_cv_func_closedir_void=yes | |
6904 | fi | |
ec6a6fbe | 6905 | rm -rf conftest.dSYM |
7a197a62 | 6906 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 6907 | fi |
7a197a62 AK |
6908 | |
6909 | ||
ad6254c5 | 6910 | fi |
ec6a6fbe AK |
6911 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5 |
6912 | $as_echo "$ac_cv_func_closedir_void" >&6; } | |
ad6254c5 AK |
6913 | if test $ac_cv_func_closedir_void = yes; then |
6914 | ||
6915 | cat >>confdefs.h <<\_ACEOF | |
6916 | #define CLOSEDIR_VOID 1 | |
6917 | _ACEOF | |
6918 | ||
6919 | fi | |
6920 | ||
6921 | ||
7a197a62 | 6922 | for ac_header in vfork.h |
ad6254c5 | 6923 | do |
ec6a6fbe | 6924 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 6925 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
6926 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
6927 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 6928 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 6929 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 6930 | fi |
ec6a6fbe AK |
6931 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
6932 | $as_echo "$as_val"'` | |
6933 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6934 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
6935 | else |
6936 | # Is the header compilable? | |
ec6a6fbe AK |
6937 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
6938 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 6939 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
6940 | /* confdefs.h. */ |
6941 | _ACEOF | |
6942 | cat confdefs.h >>conftest.$ac_ext | |
6943 | cat >>conftest.$ac_ext <<_ACEOF | |
6944 | /* end confdefs.h. */ | |
6945 | $ac_includes_default | |
6946 | #include <$ac_header> | |
6947 | _ACEOF | |
6948 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6949 | if { (ac_try="$ac_compile" |
6950 | case "(($ac_try" in | |
6951 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6952 | *) ac_try_echo=$ac_try;; | |
6953 | esac | |
ec6a6fbe AK |
6954 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6955 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6956 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6957 | ac_status=$? |
8a2fc586 AK |
6958 | grep -v '^ *+' conftest.er1 >conftest.err |
6959 | rm -f conftest.er1 | |
6960 | cat conftest.err >&5 | |
ec6a6fbe | 6961 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6962 | (exit $ac_status); } && { |
6963 | test -z "$ac_c_werror_flag" || | |
6964 | test ! -s conftest.err | |
6965 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
6966 | ac_header_compiler=yes |
6967 | else | |
ec6a6fbe | 6968 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6969 | sed 's/^/| /' conftest.$ac_ext >&5 |
6970 | ||
7a197a62 | 6971 | ac_header_compiler=no |
ad6254c5 | 6972 | fi |
7a197a62 AK |
6973 | |
6974 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
6975 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
6976 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
6977 | |
6978 | # Is the header present? | |
ec6a6fbe AK |
6979 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
6980 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 6981 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
6982 | /* confdefs.h. */ |
6983 | _ACEOF | |
6984 | cat confdefs.h >>conftest.$ac_ext | |
6985 | cat >>conftest.$ac_ext <<_ACEOF | |
6986 | /* end confdefs.h. */ | |
6987 | #include <$ac_header> | |
6988 | _ACEOF | |
7a197a62 AK |
6989 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
6990 | case "(($ac_try" in | |
6991 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6992 | *) ac_try_echo=$ac_try;; | |
6993 | esac | |
ec6a6fbe AK |
6994 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6995 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6996 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
6997 | ac_status=$? |
6998 | grep -v '^ *+' conftest.er1 >conftest.err | |
6999 | rm -f conftest.er1 | |
7000 | cat conftest.err >&5 | |
ec6a6fbe | 7001 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7002 | (exit $ac_status); } >/dev/null && { |
7003 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
7004 | test ! -s conftest.err | |
7005 | }; then | |
ad6254c5 AK |
7006 | ac_header_preproc=yes |
7007 | else | |
ec6a6fbe | 7008 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7009 | sed 's/^/| /' conftest.$ac_ext >&5 |
7010 | ||
7011 | ac_header_preproc=no | |
7012 | fi | |
7a197a62 | 7013 | |
ad6254c5 | 7014 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
7015 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
7016 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
7017 | |
7018 | # So? What about this header? | |
8a2fc586 AK |
7019 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
7020 | yes:no: ) | |
ec6a6fbe AK |
7021 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
7022 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7023 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
7024 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 7025 | ac_header_preproc=yes |
ad6254c5 | 7026 | ;; |
8a2fc586 | 7027 | no:yes:* ) |
ec6a6fbe AK |
7028 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
7029 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
7030 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
7031 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
7032 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
7033 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
7034 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
7035 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
7036 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
7037 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
7038 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
7039 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 7040 | |
ad6254c5 AK |
7041 | ;; |
7042 | esac | |
ec6a6fbe AK |
7043 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7044 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 7045 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 7046 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 7047 | else |
8a2fc586 | 7048 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 7049 | fi |
ec6a6fbe AK |
7050 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
7051 | $as_echo "$as_val"'` | |
7052 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7053 | $as_echo "$ac_res" >&6; } | |
ad6254c5 | 7054 | |
795ca3e5 | 7055 | fi |
ec6a6fbe AK |
7056 | as_val=`eval 'as_val=${'$as_ac_Header'} |
7057 | $as_echo "$as_val"'` | |
7058 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 7059 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 7060 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
7061 | _ACEOF |
7062 | ||
7063 | fi | |
7064 | ||
7065 | done | |
795ca3e5 | 7066 | |
ad6254c5 AK |
7067 | |
7068 | ||
7069 | for ac_func in fork vfork | |
7070 | do | |
ec6a6fbe AK |
7071 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
7072 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
7073 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 7074 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 7075 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 7076 | else |
ad6254c5 | 7077 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
7078 | /* confdefs.h. */ |
7079 | _ACEOF | |
7080 | cat confdefs.h >>conftest.$ac_ext | |
7081 | cat >>conftest.$ac_ext <<_ACEOF | |
7082 | /* end confdefs.h. */ | |
8a2fc586 AK |
7083 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
7084 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
7085 | #define $ac_func innocuous_$ac_func | |
7086 | ||
ad6254c5 AK |
7087 | /* System header to define __stub macros and hopefully few prototypes, |
7088 | which can conflict with char $ac_func (); below. | |
7089 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7090 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 7091 | |
ad6254c5 AK |
7092 | #ifdef __STDC__ |
7093 | # include <limits.h> | |
7094 | #else | |
7095 | # include <assert.h> | |
795ca3e5 | 7096 | #endif |
8a2fc586 AK |
7097 | |
7098 | #undef $ac_func | |
7099 | ||
7a197a62 AK |
7100 | /* Override any GCC internal prototype to avoid an error. |
7101 | Use char because int might match the return type of a GCC | |
7102 | builtin and then its argument prototype would still apply. */ | |
795ca3e5 | 7103 | #ifdef __cplusplus |
ad6254c5 | 7104 | extern "C" |
ad6254c5 | 7105 | #endif |
ad6254c5 AK |
7106 | char $ac_func (); |
7107 | /* The GNU C library defines this for functions which it implements | |
7108 | to always fail with ENOSYS. Some functions are actually named | |
7109 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 7110 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 7111 | choke me |
795ca3e5 AK |
7112 | #endif |
7113 | ||
ad6254c5 AK |
7114 | int |
7115 | main () | |
7116 | { | |
7a197a62 | 7117 | return $ac_func (); |
ad6254c5 AK |
7118 | ; |
7119 | return 0; | |
7120 | } | |
7121 | _ACEOF | |
7122 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
7123 | if { (ac_try="$ac_link" |
7124 | case "(($ac_try" in | |
7125 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7126 | *) ac_try_echo=$ac_try;; | |
7127 | esac | |
ec6a6fbe AK |
7128 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7129 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7130 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 7131 | ac_status=$? |
8a2fc586 AK |
7132 | grep -v '^ *+' conftest.er1 >conftest.err |
7133 | rm -f conftest.er1 | |
7134 | cat conftest.err >&5 | |
ec6a6fbe | 7135 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7136 | (exit $ac_status); } && { |
7137 | test -z "$ac_c_werror_flag" || | |
7138 | test ! -s conftest.err | |
ec6a6fbe AK |
7139 | } && test -s conftest$ac_exeext && { |
7140 | test "$cross_compiling" = yes || | |
7141 | $as_test_x conftest$ac_exeext | |
7142 | }; then | |
ad6254c5 | 7143 | eval "$as_ac_var=yes" |
795ca3e5 | 7144 | else |
ec6a6fbe | 7145 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7146 | sed 's/^/| /' conftest.$ac_ext >&5 |
7147 | ||
7a197a62 | 7148 | eval "$as_ac_var=no" |
795ca3e5 | 7149 | fi |
7a197a62 | 7150 | |
ec6a6fbe | 7151 | rm -rf conftest.dSYM |
25fbec5b | 7152 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 7153 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 7154 | fi |
ec6a6fbe AK |
7155 | ac_res=`eval 'as_val=${'$as_ac_var'} |
7156 | $as_echo "$as_val"'` | |
7157 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7158 | $as_echo "$ac_res" >&6; } | |
7159 | as_val=`eval 'as_val=${'$as_ac_var'} | |
7160 | $as_echo "$as_val"'` | |
7161 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 7162 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 7163 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
7164 | _ACEOF |
7165 | ||
7166 | fi | |
7167 | done | |
7168 | ||
7169 | if test "x$ac_cv_func_fork" = xyes; then | |
ec6a6fbe AK |
7170 | { $as_echo "$as_me:$LINENO: checking for working fork" >&5 |
7171 | $as_echo_n "checking for working fork... " >&6; } | |
ad6254c5 | 7172 | if test "${ac_cv_func_fork_works+set}" = set; then |
ec6a6fbe | 7173 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
7174 | else |
7175 | if test "$cross_compiling" = yes; then | |
7176 | ac_cv_func_fork_works=cross | |
7177 | else | |
7178 | cat >conftest.$ac_ext <<_ACEOF | |
7a197a62 AK |
7179 | /* confdefs.h. */ |
7180 | _ACEOF | |
7181 | cat confdefs.h >>conftest.$ac_ext | |
7182 | cat >>conftest.$ac_ext <<_ACEOF | |
7183 | /* end confdefs.h. */ | |
7184 | $ac_includes_default | |
7185 | int | |
7186 | main () | |
7187 | { | |
7188 | ||
7189 | /* By Ruediger Kuhlmann. */ | |
7190 | return fork () < 0; | |
7191 | ||
7192 | ; | |
7193 | return 0; | |
7194 | } | |
ad6254c5 AK |
7195 | _ACEOF |
7196 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7197 | if { (ac_try="$ac_link" |
7198 | case "(($ac_try" in | |
7199 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7200 | *) ac_try_echo=$ac_try;; | |
7201 | esac | |
ec6a6fbe AK |
7202 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7203 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7204 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7205 | ac_status=$? |
ec6a6fbe | 7206 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7207 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7208 | { (case "(($ac_try" in |
7209 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7210 | *) ac_try_echo=$ac_try;; | |
7211 | esac | |
ec6a6fbe AK |
7212 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7213 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7214 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7215 | ac_status=$? |
ec6a6fbe | 7216 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
7217 | (exit $ac_status); }; }; then |
7218 | ac_cv_func_fork_works=yes | |
7219 | else | |
ec6a6fbe AK |
7220 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
7221 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7222 | sed 's/^/| /' conftest.$ac_ext >&5 |
7223 | ||
7224 | ( exit $ac_status ) | |
7225 | ac_cv_func_fork_works=no | |
7226 | fi | |
ec6a6fbe | 7227 | rm -rf conftest.dSYM |
7a197a62 | 7228 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7229 | fi |
7a197a62 AK |
7230 | |
7231 | ||
ad6254c5 | 7232 | fi |
ec6a6fbe AK |
7233 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5 |
7234 | $as_echo "$ac_cv_func_fork_works" >&6; } | |
ad6254c5 AK |
7235 | |
7236 | else | |
7237 | ac_cv_func_fork_works=$ac_cv_func_fork | |
7238 | fi | |
7239 | if test "x$ac_cv_func_fork_works" = xcross; then | |
7240 | case $host in | |
7241 | *-*-amigaos* | *-*-msdosdjgpp*) | |
7242 | # Override, as these systems have only a dummy fork() stub | |
7243 | ac_cv_func_fork_works=no | |
7244 | ;; | |
7245 | *) | |
7246 | ac_cv_func_fork_works=yes | |
7247 | ;; | |
7248 | esac | |
ec6a6fbe AK |
7249 | { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 |
7250 | $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} | |
ad6254c5 AK |
7251 | fi |
7252 | ac_cv_func_vfork_works=$ac_cv_func_vfork | |
7253 | if test "x$ac_cv_func_vfork" = xyes; then | |
ec6a6fbe AK |
7254 | { $as_echo "$as_me:$LINENO: checking for working vfork" >&5 |
7255 | $as_echo_n "checking for working vfork... " >&6; } | |
ad6254c5 | 7256 | if test "${ac_cv_func_vfork_works+set}" = set; then |
ec6a6fbe | 7257 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
7258 | else |
7259 | if test "$cross_compiling" = yes; then | |
7260 | ac_cv_func_vfork_works=cross | |
7261 | else | |
7262 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7263 | /* confdefs.h. */ |
7264 | _ACEOF | |
7265 | cat confdefs.h >>conftest.$ac_ext | |
7266 | cat >>conftest.$ac_ext <<_ACEOF | |
7267 | /* end confdefs.h. */ | |
7268 | /* Thanks to Paul Eggert for this test. */ | |
7a197a62 | 7269 | $ac_includes_default |
ad6254c5 | 7270 | #include <sys/wait.h> |
25fbec5b | 7271 | #ifdef HAVE_VFORK_H |
ad6254c5 AK |
7272 | # include <vfork.h> |
7273 | #endif | |
7274 | /* On some sparc systems, changes by the child to local and incoming | |
7275 | argument registers are propagated back to the parent. The compiler | |
7276 | is told about this with #include <vfork.h>, but some compilers | |
7277 | (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a | |
7278 | static variable whose address is put into a register that is | |
7279 | clobbered by the vfork. */ | |
7280 | static void | |
7281 | #ifdef __cplusplus | |
7282 | sparc_address_test (int arg) | |
7283 | # else | |
7284 | sparc_address_test (arg) int arg; | |
7285 | #endif | |
7286 | { | |
7287 | static pid_t child; | |
7288 | if (!child) { | |
7289 | child = vfork (); | |
7290 | if (child < 0) { | |
7291 | perror ("vfork"); | |
7292 | _exit(2); | |
7293 | } | |
7294 | if (!child) { | |
7295 | arg = getpid(); | |
7296 | write(-1, "", 0); | |
7297 | _exit (arg); | |
7298 | } | |
7299 | } | |
7300 | } | |
7301 | ||
7302 | int | |
7303 | main () | |
7304 | { | |
7305 | pid_t parent = getpid (); | |
7306 | pid_t child; | |
7307 | ||
7308 | sparc_address_test (0); | |
7309 | ||
7310 | child = vfork (); | |
7311 | ||
7312 | if (child == 0) { | |
7313 | /* Here is another test for sparc vfork register problems. This | |
7314 | test uses lots of local variables, at least as many local | |
7315 | variables as main has allocated so far including compiler | |
7316 | temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris | |
7317 | 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should | |
7318 | reuse the register of parent for one of the local variables, | |
7319 | since it will think that parent can't possibly be used any more | |
7320 | in this routine. Assigning to the local variable will thus | |
7321 | munge parent in the parent process. */ | |
7322 | pid_t | |
7323 | p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), | |
7324 | p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); | |
7325 | /* Convince the compiler that p..p7 are live; otherwise, it might | |
7326 | use the same hardware register for all 8 local variables. */ | |
7327 | if (p != p1 || p != p2 || p != p3 || p != p4 | |
7328 | || p != p5 || p != p6 || p != p7) | |
7329 | _exit(1); | |
7330 | ||
7331 | /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent | |
7332 | from child file descriptors. If the child closes a descriptor | |
7333 | before it execs or exits, this munges the parent's descriptor | |
7334 | as well. Test for this by closing stdout in the child. */ | |
7335 | _exit(close(fileno(stdout)) != 0); | |
7336 | } else { | |
7337 | int status; | |
7338 | struct stat st; | |
7339 | ||
7340 | while (wait(&status) != child) | |
7341 | ; | |
7a197a62 | 7342 | return ( |
ad6254c5 AK |
7343 | /* Was there some problem with vforking? */ |
7344 | child < 0 | |
7345 | ||
7346 | /* Did the child fail? (This shouldn't happen.) */ | |
7347 | || status | |
7348 | ||
7349 | /* Did the vfork/compiler bug occur? */ | |
7350 | || parent != getpid() | |
7351 | ||
7352 | /* Did the file descriptor bug occur? */ | |
7353 | || fstat(fileno(stdout), &st) != 0 | |
7354 | ); | |
7355 | } | |
7356 | } | |
7357 | _ACEOF | |
7358 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7359 | if { (ac_try="$ac_link" |
7360 | case "(($ac_try" in | |
7361 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7362 | *) ac_try_echo=$ac_try;; | |
7363 | esac | |
ec6a6fbe AK |
7364 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7365 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7366 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7367 | ac_status=$? |
ec6a6fbe | 7368 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7369 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7370 | { (case "(($ac_try" in |
7371 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7372 | *) ac_try_echo=$ac_try;; | |
7373 | esac | |
ec6a6fbe AK |
7374 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7375 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7376 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7377 | ac_status=$? |
ec6a6fbe | 7378 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
7379 | (exit $ac_status); }; }; then |
7380 | ac_cv_func_vfork_works=yes | |
7381 | else | |
ec6a6fbe AK |
7382 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
7383 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7384 | sed 's/^/| /' conftest.$ac_ext >&5 |
7385 | ||
7386 | ( exit $ac_status ) | |
7387 | ac_cv_func_vfork_works=no | |
7388 | fi | |
ec6a6fbe | 7389 | rm -rf conftest.dSYM |
7a197a62 | 7390 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7391 | fi |
7a197a62 AK |
7392 | |
7393 | ||
ad6254c5 | 7394 | fi |
ec6a6fbe AK |
7395 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5 |
7396 | $as_echo "$ac_cv_func_vfork_works" >&6; } | |
ad6254c5 AK |
7397 | |
7398 | fi; | |
7399 | if test "x$ac_cv_func_fork_works" = xcross; then | |
8a2fc586 | 7400 | ac_cv_func_vfork_works=$ac_cv_func_vfork |
ec6a6fbe AK |
7401 | { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 |
7402 | $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} | |
ad6254c5 AK |
7403 | fi |
7404 | ||
7405 | if test "x$ac_cv_func_vfork_works" = xyes; then | |
7406 | ||
7407 | cat >>confdefs.h <<\_ACEOF | |
7408 | #define HAVE_WORKING_VFORK 1 | |
7409 | _ACEOF | |
7410 | ||
7411 | else | |
7412 | ||
7413 | cat >>confdefs.h <<\_ACEOF | |
7414 | #define vfork fork | |
7415 | _ACEOF | |
7416 | ||
7417 | fi | |
7418 | if test "x$ac_cv_func_fork_works" = xyes; then | |
7419 | ||
7420 | cat >>confdefs.h <<\_ACEOF | |
7421 | #define HAVE_WORKING_FORK 1 | |
7422 | _ACEOF | |
7423 | ||
7424 | fi | |
7425 | ||
ec6a6fbe AK |
7426 | { $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5 |
7427 | $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; } | |
ad6254c5 | 7428 | if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then |
ec6a6fbe | 7429 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
7430 | else |
7431 | rm -f conftest.sym conftest.file | |
7432 | echo >conftest.file | |
7433 | if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then | |
7434 | if test "$cross_compiling" = yes; then | |
7435 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
7436 | else | |
7437 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7438 | /* confdefs.h. */ |
7439 | _ACEOF | |
7440 | cat confdefs.h >>conftest.$ac_ext | |
7441 | cat >>conftest.$ac_ext <<_ACEOF | |
7442 | /* end confdefs.h. */ | |
7443 | $ac_includes_default | |
7444 | int | |
7445 | main () | |
7446 | { | |
7447 | struct stat sbuf; | |
7448 | /* Linux will dereference the symlink and fail. | |
8a2fc586 AK |
7449 | That is better in the sense that it means we will not |
7450 | have to compile and use the lstat wrapper. */ | |
7a197a62 | 7451 | return lstat ("conftest.sym/", &sbuf) == 0; |
ad6254c5 AK |
7452 | ; |
7453 | return 0; | |
7454 | } | |
7455 | _ACEOF | |
7456 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7457 | if { (ac_try="$ac_link" |
7458 | case "(($ac_try" in | |
7459 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7460 | *) ac_try_echo=$ac_try;; | |
7461 | esac | |
ec6a6fbe AK |
7462 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7463 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7464 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7465 | ac_status=$? |
ec6a6fbe | 7466 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7467 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7468 | { (case "(($ac_try" in |
7469 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7470 | *) ac_try_echo=$ac_try;; | |
7471 | esac | |
ec6a6fbe AK |
7472 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7473 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7474 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7475 | ac_status=$? |
ec6a6fbe | 7476 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
7477 | (exit $ac_status); }; }; then |
7478 | ac_cv_func_lstat_dereferences_slashed_symlink=yes | |
7479 | else | |
ec6a6fbe AK |
7480 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
7481 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7482 | sed 's/^/| /' conftest.$ac_ext >&5 |
7483 | ||
7484 | ( exit $ac_status ) | |
7485 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
7486 | fi | |
ec6a6fbe | 7487 | rm -rf conftest.dSYM |
7a197a62 | 7488 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7489 | fi |
7a197a62 AK |
7490 | |
7491 | ||
ad6254c5 AK |
7492 | else |
7493 | # If the `ln -s' command failed, then we probably don't even | |
7494 | # have an lstat function. | |
7495 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
7496 | fi | |
7497 | rm -f conftest.sym conftest.file | |
7498 | ||
7499 | fi | |
ec6a6fbe AK |
7500 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5 |
7501 | $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; } | |
ad6254c5 AK |
7502 | |
7503 | test $ac_cv_func_lstat_dereferences_slashed_symlink = yes && | |
7504 | ||
7505 | cat >>confdefs.h <<_ACEOF | |
7506 | #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 | |
7507 | _ACEOF | |
7508 | ||
7509 | ||
7510 | if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then | |
7a197a62 | 7511 | case " $LIBOBJS " in |
8a2fc586 | 7512 | *" lstat.$ac_objext "* ) ;; |
7a197a62 AK |
7513 | *) LIBOBJS="$LIBOBJS lstat.$ac_objext" |
7514 | ;; | |
8a2fc586 AK |
7515 | esac |
7516 | ||
ad6254c5 AK |
7517 | fi |
7518 | ||
ec6a6fbe AK |
7519 | { $as_echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5 |
7520 | $as_echo_n "checking whether lstat accepts an empty string... " >&6; } | |
ad6254c5 | 7521 | if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then |
ec6a6fbe | 7522 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
7523 | else |
7524 | if test "$cross_compiling" = yes; then | |
7525 | ac_cv_func_lstat_empty_string_bug=yes | |
7526 | else | |
7527 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7528 | /* confdefs.h. */ |
7529 | _ACEOF | |
7530 | cat confdefs.h >>conftest.$ac_ext | |
7531 | cat >>conftest.$ac_ext <<_ACEOF | |
7532 | /* end confdefs.h. */ | |
7533 | $ac_includes_default | |
7534 | int | |
7535 | main () | |
7536 | { | |
7537 | struct stat sbuf; | |
7a197a62 | 7538 | return lstat ("", &sbuf) == 0; |
ad6254c5 AK |
7539 | ; |
7540 | return 0; | |
7541 | } | |
7542 | _ACEOF | |
7543 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7544 | if { (ac_try="$ac_link" |
7545 | case "(($ac_try" in | |
7546 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7547 | *) ac_try_echo=$ac_try;; | |
7548 | esac | |
ec6a6fbe AK |
7549 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7550 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7551 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7552 | ac_status=$? |
ec6a6fbe | 7553 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7554 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7555 | { (case "(($ac_try" in |
7556 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7557 | *) ac_try_echo=$ac_try;; | |
7558 | esac | |
ec6a6fbe AK |
7559 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7560 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7561 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7562 | ac_status=$? |
ec6a6fbe | 7563 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7564 | (exit $ac_status); }; }; then |
7a197a62 | 7565 | ac_cv_func_lstat_empty_string_bug=no |
ad6254c5 | 7566 | else |
ec6a6fbe AK |
7567 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
7568 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7569 | sed 's/^/| /' conftest.$ac_ext >&5 |
7570 | ||
7571 | ( exit $ac_status ) | |
7a197a62 | 7572 | ac_cv_func_lstat_empty_string_bug=yes |
ad6254c5 | 7573 | fi |
ec6a6fbe | 7574 | rm -rf conftest.dSYM |
7a197a62 | 7575 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7576 | fi |
7a197a62 AK |
7577 | |
7578 | ||
ad6254c5 | 7579 | fi |
ec6a6fbe AK |
7580 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5 |
7581 | $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; } | |
ad6254c5 | 7582 | if test $ac_cv_func_lstat_empty_string_bug = yes; then |
7a197a62 | 7583 | case " $LIBOBJS " in |
8a2fc586 | 7584 | *" lstat.$ac_objext "* ) ;; |
7a197a62 AK |
7585 | *) LIBOBJS="$LIBOBJS lstat.$ac_objext" |
7586 | ;; | |
8a2fc586 AK |
7587 | esac |
7588 | ||
ad6254c5 AK |
7589 | |
7590 | cat >>confdefs.h <<_ACEOF | |
7591 | #define HAVE_LSTAT_EMPTY_STRING_BUG 1 | |
7592 | _ACEOF | |
7593 | ||
7594 | fi | |
7595 | ||
7596 | ||
7597 | for ac_header in stdlib.h | |
7598 | do | |
ec6a6fbe | 7599 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 7600 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
7601 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7602 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 7603 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 7604 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 7605 | fi |
ec6a6fbe AK |
7606 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
7607 | $as_echo "$as_val"'` | |
7608 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7609 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
7610 | else |
7611 | # Is the header compilable? | |
ec6a6fbe AK |
7612 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
7613 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 7614 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
7615 | /* confdefs.h. */ |
7616 | _ACEOF | |
7617 | cat confdefs.h >>conftest.$ac_ext | |
7618 | cat >>conftest.$ac_ext <<_ACEOF | |
7619 | /* end confdefs.h. */ | |
7620 | $ac_includes_default | |
7621 | #include <$ac_header> | |
7622 | _ACEOF | |
7623 | rm -f conftest.$ac_objext | |
7a197a62 AK |
7624 | if { (ac_try="$ac_compile" |
7625 | case "(($ac_try" in | |
7626 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7627 | *) ac_try_echo=$ac_try;; | |
7628 | esac | |
ec6a6fbe AK |
7629 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7630 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7631 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 7632 | ac_status=$? |
8a2fc586 AK |
7633 | grep -v '^ *+' conftest.er1 >conftest.err |
7634 | rm -f conftest.er1 | |
7635 | cat conftest.err >&5 | |
ec6a6fbe | 7636 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7637 | (exit $ac_status); } && { |
7638 | test -z "$ac_c_werror_flag" || | |
7639 | test ! -s conftest.err | |
7640 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
7641 | ac_header_compiler=yes |
7642 | else | |
ec6a6fbe | 7643 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7644 | sed 's/^/| /' conftest.$ac_ext >&5 |
7645 | ||
7a197a62 | 7646 | ac_header_compiler=no |
ad6254c5 | 7647 | fi |
7a197a62 AK |
7648 | |
7649 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
7650 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
7651 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
7652 | |
7653 | # Is the header present? | |
ec6a6fbe AK |
7654 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
7655 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 7656 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
7657 | /* confdefs.h. */ |
7658 | _ACEOF | |
7659 | cat confdefs.h >>conftest.$ac_ext | |
7660 | cat >>conftest.$ac_ext <<_ACEOF | |
7661 | /* end confdefs.h. */ | |
7662 | #include <$ac_header> | |
7663 | _ACEOF | |
7a197a62 AK |
7664 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
7665 | case "(($ac_try" in | |
7666 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7667 | *) ac_try_echo=$ac_try;; | |
7668 | esac | |
ec6a6fbe AK |
7669 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7670 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7671 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
7672 | ac_status=$? |
7673 | grep -v '^ *+' conftest.er1 >conftest.err | |
7674 | rm -f conftest.er1 | |
7675 | cat conftest.err >&5 | |
ec6a6fbe | 7676 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7677 | (exit $ac_status); } >/dev/null && { |
7678 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
7679 | test ! -s conftest.err | |
7680 | }; then | |
ad6254c5 AK |
7681 | ac_header_preproc=yes |
7682 | else | |
ec6a6fbe | 7683 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7684 | sed 's/^/| /' conftest.$ac_ext >&5 |
7685 | ||
7686 | ac_header_preproc=no | |
7687 | fi | |
7a197a62 | 7688 | |
ad6254c5 | 7689 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
7690 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
7691 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
7692 | |
7693 | # So? What about this header? | |
8a2fc586 AK |
7694 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
7695 | yes:no: ) | |
ec6a6fbe AK |
7696 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
7697 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7698 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
7699 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 7700 | ac_header_preproc=yes |
ad6254c5 | 7701 | ;; |
8a2fc586 | 7702 | no:yes:* ) |
ec6a6fbe AK |
7703 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
7704 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
7705 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
7706 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
7707 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
7708 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
7709 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
7710 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
7711 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
7712 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
7713 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
7714 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 7715 | |
ad6254c5 AK |
7716 | ;; |
7717 | esac | |
ec6a6fbe AK |
7718 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7719 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 7720 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 7721 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 7722 | else |
8a2fc586 | 7723 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 7724 | fi |
ec6a6fbe AK |
7725 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
7726 | $as_echo "$as_val"'` | |
7727 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7728 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
7729 | |
7730 | fi | |
ec6a6fbe AK |
7731 | as_val=`eval 'as_val=${'$as_ac_Header'} |
7732 | $as_echo "$as_val"'` | |
7733 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 7734 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 7735 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
7736 | _ACEOF |
7737 | ||
7738 | fi | |
7739 | ||
7740 | done | |
7741 | ||
ec6a6fbe AK |
7742 | { $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5 |
7743 | $as_echo_n "checking for GNU libc compatible malloc... " >&6; } | |
ad6254c5 | 7744 | if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then |
ec6a6fbe | 7745 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
7746 | else |
7747 | if test "$cross_compiling" = yes; then | |
7748 | ac_cv_func_malloc_0_nonnull=no | |
7749 | else | |
7750 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7751 | /* confdefs.h. */ |
7752 | _ACEOF | |
7753 | cat confdefs.h >>conftest.$ac_ext | |
7754 | cat >>conftest.$ac_ext <<_ACEOF | |
7755 | /* end confdefs.h. */ | |
25fbec5b | 7756 | #if defined STDC_HEADERS || defined HAVE_STDLIB_H |
ad6254c5 AK |
7757 | # include <stdlib.h> |
7758 | #else | |
7759 | char *malloc (); | |
7760 | #endif | |
7761 | ||
7762 | int | |
7763 | main () | |
7764 | { | |
7a197a62 | 7765 | return ! malloc (0); |
ad6254c5 AK |
7766 | ; |
7767 | return 0; | |
7768 | } | |
7769 | _ACEOF | |
7770 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7771 | if { (ac_try="$ac_link" |
7772 | case "(($ac_try" in | |
7773 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7774 | *) ac_try_echo=$ac_try;; | |
7775 | esac | |
ec6a6fbe AK |
7776 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7777 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7778 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7779 | ac_status=$? |
ec6a6fbe | 7780 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7781 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7782 | { (case "(($ac_try" in |
7783 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7784 | *) ac_try_echo=$ac_try;; | |
7785 | esac | |
ec6a6fbe AK |
7786 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7787 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7788 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7789 | ac_status=$? |
ec6a6fbe | 7790 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
7791 | (exit $ac_status); }; }; then |
7792 | ac_cv_func_malloc_0_nonnull=yes | |
7793 | else | |
ec6a6fbe AK |
7794 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
7795 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7796 | sed 's/^/| /' conftest.$ac_ext >&5 |
7797 | ||
7798 | ( exit $ac_status ) | |
7799 | ac_cv_func_malloc_0_nonnull=no | |
7800 | fi | |
ec6a6fbe | 7801 | rm -rf conftest.dSYM |
7a197a62 | 7802 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7803 | fi |
7a197a62 AK |
7804 | |
7805 | ||
ad6254c5 | 7806 | fi |
ec6a6fbe AK |
7807 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5 |
7808 | $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; } | |
ad6254c5 AK |
7809 | if test $ac_cv_func_malloc_0_nonnull = yes; then |
7810 | ||
7811 | cat >>confdefs.h <<\_ACEOF | |
7812 | #define HAVE_MALLOC 1 | |
7813 | _ACEOF | |
7814 | ||
7815 | else | |
7816 | cat >>confdefs.h <<\_ACEOF | |
7817 | #define HAVE_MALLOC 0 | |
7818 | _ACEOF | |
7819 | ||
7a197a62 | 7820 | case " $LIBOBJS " in |
8a2fc586 | 7821 | *" malloc.$ac_objext "* ) ;; |
7a197a62 AK |
7822 | *) LIBOBJS="$LIBOBJS malloc.$ac_objext" |
7823 | ;; | |
8a2fc586 AK |
7824 | esac |
7825 | ||
ad6254c5 AK |
7826 | |
7827 | cat >>confdefs.h <<\_ACEOF | |
7828 | #define malloc rpl_malloc | |
7829 | _ACEOF | |
7830 | ||
7831 | fi | |
7832 | ||
7833 | ||
7834 | ||
ec6a6fbe AK |
7835 | { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5 |
7836 | $as_echo_n "checking for working memcmp... " >&6; } | |
ad6254c5 | 7837 | if test "${ac_cv_func_memcmp_working+set}" = set; then |
ec6a6fbe | 7838 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
7839 | else |
7840 | if test "$cross_compiling" = yes; then | |
7841 | ac_cv_func_memcmp_working=no | |
7842 | else | |
7843 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7844 | /* confdefs.h. */ |
7845 | _ACEOF | |
7846 | cat confdefs.h >>conftest.$ac_ext | |
7847 | cat >>conftest.$ac_ext <<_ACEOF | |
7848 | /* end confdefs.h. */ | |
8a2fc586 | 7849 | $ac_includes_default |
ad6254c5 AK |
7850 | int |
7851 | main () | |
7852 | { | |
7853 | ||
7854 | /* Some versions of memcmp are not 8-bit clean. */ | |
7a197a62 | 7855 | char c0 = '\100', c1 = '\200', c2 = '\201'; |
ad6254c5 | 7856 | if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) |
7a197a62 | 7857 | return 1; |
ad6254c5 AK |
7858 | |
7859 | /* The Next x86 OpenStep bug shows up only when comparing 16 bytes | |
7860 | or more and with at least one buffer not starting on a 4-byte boundary. | |
7861 | William Lewis provided this test program. */ | |
7862 | { | |
7863 | char foo[21]; | |
7864 | char bar[21]; | |
7865 | int i; | |
7866 | for (i = 0; i < 4; i++) | |
7867 | { | |
8a2fc586 AK |
7868 | char *a = foo + i; |
7869 | char *b = bar + i; | |
7870 | strcpy (a, "--------01111111"); | |
7871 | strcpy (b, "--------10000000"); | |
7872 | if (memcmp (a, b, 16) >= 0) | |
7a197a62 | 7873 | return 1; |
ad6254c5 | 7874 | } |
7a197a62 | 7875 | return 0; |
ad6254c5 AK |
7876 | } |
7877 | ||
7878 | ; | |
7879 | return 0; | |
7880 | } | |
7881 | _ACEOF | |
7882 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7883 | if { (ac_try="$ac_link" |
7884 | case "(($ac_try" in | |
7885 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7886 | *) ac_try_echo=$ac_try;; | |
7887 | esac | |
ec6a6fbe AK |
7888 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7889 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7890 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7891 | ac_status=$? |
ec6a6fbe | 7892 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7893 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7894 | { (case "(($ac_try" in |
7895 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7896 | *) ac_try_echo=$ac_try;; | |
7897 | esac | |
ec6a6fbe AK |
7898 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7899 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7900 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7901 | ac_status=$? |
ec6a6fbe | 7902 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
7903 | (exit $ac_status); }; }; then |
7904 | ac_cv_func_memcmp_working=yes | |
7905 | else | |
ec6a6fbe AK |
7906 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
7907 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7908 | sed 's/^/| /' conftest.$ac_ext >&5 |
7909 | ||
7910 | ( exit $ac_status ) | |
7911 | ac_cv_func_memcmp_working=no | |
7912 | fi | |
ec6a6fbe | 7913 | rm -rf conftest.dSYM |
7a197a62 | 7914 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7915 | fi |
7a197a62 AK |
7916 | |
7917 | ||
ad6254c5 | 7918 | fi |
ec6a6fbe AK |
7919 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5 |
7920 | $as_echo "$ac_cv_func_memcmp_working" >&6; } | |
7a197a62 | 7921 | test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in |
8a2fc586 | 7922 | *" memcmp.$ac_objext "* ) ;; |
7a197a62 AK |
7923 | *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" |
7924 | ;; | |
8a2fc586 AK |
7925 | esac |
7926 | ||
ad6254c5 AK |
7927 | |
7928 | ||
7929 | ||
7930 | for ac_header in stdlib.h unistd.h | |
7931 | do | |
ec6a6fbe | 7932 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 7933 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
7934 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7935 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 7936 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 7937 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 7938 | fi |
ec6a6fbe AK |
7939 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
7940 | $as_echo "$as_val"'` | |
7941 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7942 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
7943 | else |
7944 | # Is the header compilable? | |
ec6a6fbe AK |
7945 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
7946 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 7947 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
7948 | /* confdefs.h. */ |
7949 | _ACEOF | |
7950 | cat confdefs.h >>conftest.$ac_ext | |
7951 | cat >>conftest.$ac_ext <<_ACEOF | |
7952 | /* end confdefs.h. */ | |
7953 | $ac_includes_default | |
7954 | #include <$ac_header> | |
7955 | _ACEOF | |
7956 | rm -f conftest.$ac_objext | |
7a197a62 AK |
7957 | if { (ac_try="$ac_compile" |
7958 | case "(($ac_try" in | |
7959 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7960 | *) ac_try_echo=$ac_try;; | |
7961 | esac | |
ec6a6fbe AK |
7962 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7963 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7964 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 7965 | ac_status=$? |
8a2fc586 AK |
7966 | grep -v '^ *+' conftest.er1 >conftest.err |
7967 | rm -f conftest.er1 | |
7968 | cat conftest.err >&5 | |
ec6a6fbe | 7969 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7970 | (exit $ac_status); } && { |
7971 | test -z "$ac_c_werror_flag" || | |
7972 | test ! -s conftest.err | |
7973 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
7974 | ac_header_compiler=yes |
7975 | else | |
ec6a6fbe | 7976 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7977 | sed 's/^/| /' conftest.$ac_ext >&5 |
7978 | ||
7a197a62 | 7979 | ac_header_compiler=no |
ad6254c5 | 7980 | fi |
7a197a62 AK |
7981 | |
7982 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
7983 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
7984 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
7985 | |
7986 | # Is the header present? | |
ec6a6fbe AK |
7987 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
7988 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 7989 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
7990 | /* confdefs.h. */ |
7991 | _ACEOF | |
7992 | cat confdefs.h >>conftest.$ac_ext | |
7993 | cat >>conftest.$ac_ext <<_ACEOF | |
7994 | /* end confdefs.h. */ | |
7995 | #include <$ac_header> | |
7996 | _ACEOF | |
7a197a62 AK |
7997 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
7998 | case "(($ac_try" in | |
7999 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8000 | *) ac_try_echo=$ac_try;; | |
8001 | esac | |
ec6a6fbe AK |
8002 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8003 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8004 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
8005 | ac_status=$? |
8006 | grep -v '^ *+' conftest.er1 >conftest.err | |
8007 | rm -f conftest.er1 | |
8008 | cat conftest.err >&5 | |
ec6a6fbe | 8009 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8010 | (exit $ac_status); } >/dev/null && { |
8011 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
8012 | test ! -s conftest.err | |
8013 | }; then | |
ad6254c5 AK |
8014 | ac_header_preproc=yes |
8015 | else | |
ec6a6fbe | 8016 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8017 | sed 's/^/| /' conftest.$ac_ext >&5 |
8018 | ||
8019 | ac_header_preproc=no | |
8020 | fi | |
7a197a62 | 8021 | |
ad6254c5 | 8022 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
8023 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
8024 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
8025 | |
8026 | # So? What about this header? | |
8a2fc586 AK |
8027 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
8028 | yes:no: ) | |
ec6a6fbe AK |
8029 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
8030 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8031 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
8032 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 8033 | ac_header_preproc=yes |
ad6254c5 | 8034 | ;; |
8a2fc586 | 8035 | no:yes:* ) |
ec6a6fbe AK |
8036 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
8037 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8038 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
8039 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
8040 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
8041 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
8042 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
8043 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
8044 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
8045 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8046 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
8047 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 8048 | |
ad6254c5 AK |
8049 | ;; |
8050 | esac | |
ec6a6fbe AK |
8051 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8052 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 8053 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 8054 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 8055 | else |
8a2fc586 | 8056 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 8057 | fi |
ec6a6fbe AK |
8058 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
8059 | $as_echo "$as_val"'` | |
8060 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8061 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
8062 | |
8063 | fi | |
ec6a6fbe AK |
8064 | as_val=`eval 'as_val=${'$as_ac_Header'} |
8065 | $as_echo "$as_val"'` | |
8066 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 8067 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 8068 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
8069 | _ACEOF |
8070 | ||
8071 | fi | |
8072 | ||
8073 | done | |
8074 | ||
8075 | ||
8076 | for ac_func in getpagesize | |
8077 | do | |
ec6a6fbe AK |
8078 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
8079 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
8080 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 8081 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 8082 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8083 | else |
8084 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8085 | /* confdefs.h. */ |
8086 | _ACEOF | |
8087 | cat confdefs.h >>conftest.$ac_ext | |
8088 | cat >>conftest.$ac_ext <<_ACEOF | |
8089 | /* end confdefs.h. */ | |
8a2fc586 AK |
8090 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
8091 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8092 | #define $ac_func innocuous_$ac_func | |
8093 | ||
ad6254c5 AK |
8094 | /* System header to define __stub macros and hopefully few prototypes, |
8095 | which can conflict with char $ac_func (); below. | |
8096 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8097 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 8098 | |
ad6254c5 AK |
8099 | #ifdef __STDC__ |
8100 | # include <limits.h> | |
8101 | #else | |
8102 | # include <assert.h> | |
8103 | #endif | |
8a2fc586 AK |
8104 | |
8105 | #undef $ac_func | |
8106 | ||
7a197a62 AK |
8107 | /* Override any GCC internal prototype to avoid an error. |
8108 | Use char because int might match the return type of a GCC | |
8109 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
8110 | #ifdef __cplusplus |
8111 | extern "C" | |
ad6254c5 | 8112 | #endif |
ad6254c5 AK |
8113 | char $ac_func (); |
8114 | /* The GNU C library defines this for functions which it implements | |
8115 | to always fail with ENOSYS. Some functions are actually named | |
8116 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 8117 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 8118 | choke me |
ad6254c5 AK |
8119 | #endif |
8120 | ||
8121 | int | |
8122 | main () | |
8123 | { | |
7a197a62 | 8124 | return $ac_func (); |
ad6254c5 AK |
8125 | ; |
8126 | return 0; | |
8127 | } | |
8128 | _ACEOF | |
8129 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
8130 | if { (ac_try="$ac_link" |
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_link") 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 | |
ec6a6fbe AK |
8146 | } && test -s conftest$ac_exeext && { |
8147 | test "$cross_compiling" = yes || | |
8148 | $as_test_x conftest$ac_exeext | |
8149 | }; then | |
ad6254c5 AK |
8150 | eval "$as_ac_var=yes" |
8151 | else | |
ec6a6fbe | 8152 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8153 | sed 's/^/| /' conftest.$ac_ext >&5 |
8154 | ||
7a197a62 | 8155 | eval "$as_ac_var=no" |
ad6254c5 | 8156 | fi |
7a197a62 | 8157 | |
ec6a6fbe | 8158 | rm -rf conftest.dSYM |
25fbec5b | 8159 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 8160 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 8161 | fi |
ec6a6fbe AK |
8162 | ac_res=`eval 'as_val=${'$as_ac_var'} |
8163 | $as_echo "$as_val"'` | |
8164 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8165 | $as_echo "$ac_res" >&6; } | |
8166 | as_val=`eval 'as_val=${'$as_ac_var'} | |
8167 | $as_echo "$as_val"'` | |
8168 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 8169 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 8170 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
8171 | _ACEOF |
8172 | ||
8173 | fi | |
8174 | done | |
8175 | ||
ec6a6fbe AK |
8176 | { $as_echo "$as_me:$LINENO: checking for working mmap" >&5 |
8177 | $as_echo_n "checking for working mmap... " >&6; } | |
ad6254c5 | 8178 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
ec6a6fbe | 8179 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8180 | else |
8181 | if test "$cross_compiling" = yes; then | |
8182 | ac_cv_func_mmap_fixed_mapped=no | |
8183 | else | |
8184 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8185 | /* confdefs.h. */ |
8186 | _ACEOF | |
8187 | cat confdefs.h >>conftest.$ac_ext | |
8188 | cat >>conftest.$ac_ext <<_ACEOF | |
8189 | /* end confdefs.h. */ | |
8190 | $ac_includes_default | |
8191 | /* malloc might have been renamed as rpl_malloc. */ | |
8192 | #undef malloc | |
8193 | ||
8194 | /* Thanks to Mike Haertel and Jim Avera for this test. | |
8195 | Here is a matrix of mmap possibilities: | |
8196 | mmap private not fixed | |
8197 | mmap private fixed at somewhere currently unmapped | |
8198 | mmap private fixed at somewhere already mapped | |
8199 | mmap shared not fixed | |
8200 | mmap shared fixed at somewhere currently unmapped | |
8201 | mmap shared fixed at somewhere already mapped | |
8202 | For private mappings, we should verify that changes cannot be read() | |
8203 | back from the file, nor mmap's back from the file at a different | |
8204 | address. (There have been systems where private was not correctly | |
8205 | implemented like the infamous i386 svr4.0, and systems where the | |
8206 | VM page cache was not coherent with the file system buffer cache | |
8207 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
8208 | For shared mappings, we should conversely verify that changes get | |
8209 | propagated back to all the places they're supposed to be. | |
8210 | ||
8211 | Grep wants private fixed already mapped. | |
8212 | The main things grep needs to know about mmap are: | |
8213 | * does it exist and is it safe to write into the mmap'd area | |
8214 | * how to use it (BSD variants) */ | |
8215 | ||
8216 | #include <fcntl.h> | |
8217 | #include <sys/mman.h> | |
8218 | ||
25fbec5b | 8219 | #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H |
ad6254c5 AK |
8220 | char *malloc (); |
8221 | #endif | |
8222 | ||
8223 | /* This mess was copied from the GNU getpagesize.h. */ | |
25fbec5b | 8224 | #ifndef HAVE_GETPAGESIZE |
ad6254c5 | 8225 | /* Assume that all systems that can run configure have sys/param.h. */ |
25fbec5b | 8226 | # ifndef HAVE_SYS_PARAM_H |
ad6254c5 AK |
8227 | # define HAVE_SYS_PARAM_H 1 |
8228 | # endif | |
8229 | ||
8230 | # ifdef _SC_PAGESIZE | |
8231 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
8232 | # else /* no _SC_PAGESIZE */ | |
25fbec5b | 8233 | # ifdef HAVE_SYS_PARAM_H |
ad6254c5 AK |
8234 | # include <sys/param.h> |
8235 | # ifdef EXEC_PAGESIZE | |
8236 | # define getpagesize() EXEC_PAGESIZE | |
8237 | # else /* no EXEC_PAGESIZE */ | |
8238 | # ifdef NBPG | |
8239 | # define getpagesize() NBPG * CLSIZE | |
8240 | # ifndef CLSIZE | |
8241 | # define CLSIZE 1 | |
8242 | # endif /* no CLSIZE */ | |
8243 | # else /* no NBPG */ | |
8244 | # ifdef NBPC | |
8245 | # define getpagesize() NBPC | |
8246 | # else /* no NBPC */ | |
8247 | # ifdef PAGESIZE | |
8248 | # define getpagesize() PAGESIZE | |
8249 | # endif /* PAGESIZE */ | |
8250 | # endif /* no NBPC */ | |
8251 | # endif /* no NBPG */ | |
8252 | # endif /* no EXEC_PAGESIZE */ | |
8253 | # else /* no HAVE_SYS_PARAM_H */ | |
8254 | # define getpagesize() 8192 /* punt totally */ | |
8255 | # endif /* no HAVE_SYS_PARAM_H */ | |
8256 | # endif /* no _SC_PAGESIZE */ | |
8257 | ||
8258 | #endif /* no HAVE_GETPAGESIZE */ | |
8259 | ||
8260 | int | |
8261 | main () | |
8262 | { | |
8263 | char *data, *data2, *data3; | |
8264 | int i, pagesize; | |
8265 | int fd; | |
8266 | ||
8267 | pagesize = getpagesize (); | |
8268 | ||
8269 | /* First, make a file with some known garbage in it. */ | |
8270 | data = (char *) malloc (pagesize); | |
8271 | if (!data) | |
7a197a62 | 8272 | return 1; |
ad6254c5 AK |
8273 | for (i = 0; i < pagesize; ++i) |
8274 | *(data + i) = rand (); | |
8275 | umask (0); | |
8276 | fd = creat ("conftest.mmap", 0600); | |
8277 | if (fd < 0) | |
7a197a62 | 8278 | return 1; |
ad6254c5 | 8279 | if (write (fd, data, pagesize) != pagesize) |
7a197a62 | 8280 | return 1; |
ad6254c5 AK |
8281 | close (fd); |
8282 | ||
8283 | /* Next, try to mmap the file at a fixed address which already has | |
8284 | something else allocated at it. If we can, also make sure that | |
8285 | we see the same garbage. */ | |
8286 | fd = open ("conftest.mmap", O_RDWR); | |
8287 | if (fd < 0) | |
7a197a62 | 8288 | return 1; |
ad6254c5 AK |
8289 | data2 = (char *) malloc (2 * pagesize); |
8290 | if (!data2) | |
7a197a62 AK |
8291 | return 1; |
8292 | data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); | |
ad6254c5 | 8293 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
8a2fc586 | 8294 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
7a197a62 | 8295 | return 1; |
ad6254c5 AK |
8296 | for (i = 0; i < pagesize; ++i) |
8297 | if (*(data + i) != *(data2 + i)) | |
7a197a62 | 8298 | return 1; |
ad6254c5 AK |
8299 | |
8300 | /* Finally, make sure that changes to the mapped area do not | |
8301 | percolate back to the file as seen by read(). (This is a bug on | |
8302 | some variants of i386 svr4.0.) */ | |
8303 | for (i = 0; i < pagesize; ++i) | |
8304 | *(data2 + i) = *(data2 + i) + 1; | |
8305 | data3 = (char *) malloc (pagesize); | |
8306 | if (!data3) | |
7a197a62 | 8307 | return 1; |
ad6254c5 | 8308 | if (read (fd, data3, pagesize) != pagesize) |
7a197a62 | 8309 | return 1; |
ad6254c5 AK |
8310 | for (i = 0; i < pagesize; ++i) |
8311 | if (*(data + i) != *(data3 + i)) | |
7a197a62 | 8312 | return 1; |
ad6254c5 | 8313 | close (fd); |
7a197a62 | 8314 | return 0; |
ad6254c5 AK |
8315 | } |
8316 | _ACEOF | |
8317 | rm -f conftest$ac_exeext | |
7a197a62 AK |
8318 | if { (ac_try="$ac_link" |
8319 | case "(($ac_try" in | |
8320 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8321 | *) ac_try_echo=$ac_try;; | |
8322 | esac | |
ec6a6fbe AK |
8323 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8324 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8325 | (eval "$ac_link") 2>&5 |
ad6254c5 | 8326 | ac_status=$? |
ec6a6fbe | 8327 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 8328 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
8329 | { (case "(($ac_try" in |
8330 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8331 | *) ac_try_echo=$ac_try;; | |
8332 | esac | |
ec6a6fbe AK |
8333 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8334 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8335 | (eval "$ac_try") 2>&5 |
ad6254c5 | 8336 | ac_status=$? |
ec6a6fbe | 8337 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
8338 | (exit $ac_status); }; }; then |
8339 | ac_cv_func_mmap_fixed_mapped=yes | |
8340 | else | |
ec6a6fbe AK |
8341 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
8342 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
8343 | sed 's/^/| /' conftest.$ac_ext >&5 |
8344 | ||
8345 | ( exit $ac_status ) | |
8346 | ac_cv_func_mmap_fixed_mapped=no | |
8347 | fi | |
ec6a6fbe | 8348 | rm -rf conftest.dSYM |
7a197a62 | 8349 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 8350 | fi |
7a197a62 AK |
8351 | |
8352 | ||
ad6254c5 | 8353 | fi |
ec6a6fbe AK |
8354 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
8355 | $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } | |
ad6254c5 AK |
8356 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
8357 | ||
8358 | cat >>confdefs.h <<\_ACEOF | |
8359 | #define HAVE_MMAP 1 | |
8360 | _ACEOF | |
8361 | ||
8362 | fi | |
8363 | rm -f conftest.mmap | |
8364 | ||
ec6a6fbe AK |
8365 | { $as_echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5 |
8366 | $as_echo_n "checking whether stat accepts an empty string... " >&6; } | |
ad6254c5 | 8367 | if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then |
ec6a6fbe | 8368 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8369 | else |
8370 | if test "$cross_compiling" = yes; then | |
8371 | ac_cv_func_stat_empty_string_bug=yes | |
8372 | else | |
8373 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8374 | /* confdefs.h. */ |
8375 | _ACEOF | |
8376 | cat confdefs.h >>conftest.$ac_ext | |
8377 | cat >>conftest.$ac_ext <<_ACEOF | |
8378 | /* end confdefs.h. */ | |
8379 | $ac_includes_default | |
8380 | int | |
8381 | main () | |
8382 | { | |
8383 | struct stat sbuf; | |
7a197a62 | 8384 | return stat ("", &sbuf) == 0; |
ad6254c5 AK |
8385 | ; |
8386 | return 0; | |
8387 | } | |
8388 | _ACEOF | |
8389 | rm -f conftest$ac_exeext | |
7a197a62 AK |
8390 | if { (ac_try="$ac_link" |
8391 | case "(($ac_try" in | |
8392 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8393 | *) ac_try_echo=$ac_try;; | |
8394 | esac | |
ec6a6fbe AK |
8395 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8396 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8397 | (eval "$ac_link") 2>&5 |
ad6254c5 | 8398 | ac_status=$? |
ec6a6fbe | 8399 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 8400 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
8401 | { (case "(($ac_try" in |
8402 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8403 | *) ac_try_echo=$ac_try;; | |
8404 | esac | |
ec6a6fbe AK |
8405 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8406 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8407 | (eval "$ac_try") 2>&5 |
ad6254c5 | 8408 | ac_status=$? |
ec6a6fbe | 8409 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 8410 | (exit $ac_status); }; }; then |
7a197a62 | 8411 | ac_cv_func_stat_empty_string_bug=no |
ad6254c5 | 8412 | else |
ec6a6fbe AK |
8413 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
8414 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
8415 | sed 's/^/| /' conftest.$ac_ext >&5 |
8416 | ||
8417 | ( exit $ac_status ) | |
7a197a62 | 8418 | ac_cv_func_stat_empty_string_bug=yes |
ad6254c5 | 8419 | fi |
ec6a6fbe | 8420 | rm -rf conftest.dSYM |
7a197a62 | 8421 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 8422 | fi |
7a197a62 AK |
8423 | |
8424 | ||
ad6254c5 | 8425 | fi |
ec6a6fbe AK |
8426 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5 |
8427 | $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; } | |
ad6254c5 | 8428 | if test $ac_cv_func_stat_empty_string_bug = yes; then |
7a197a62 | 8429 | case " $LIBOBJS " in |
8a2fc586 | 8430 | *" stat.$ac_objext "* ) ;; |
7a197a62 AK |
8431 | *) LIBOBJS="$LIBOBJS stat.$ac_objext" |
8432 | ;; | |
8a2fc586 AK |
8433 | esac |
8434 | ||
ad6254c5 AK |
8435 | |
8436 | cat >>confdefs.h <<_ACEOF | |
8437 | #define HAVE_STAT_EMPTY_STRING_BUG 1 | |
8438 | _ACEOF | |
8439 | ||
8440 | fi | |
8441 | ||
ec6a6fbe AK |
8442 | { $as_echo "$as_me:$LINENO: checking for working strtod" >&5 |
8443 | $as_echo_n "checking for working strtod... " >&6; } | |
ad6254c5 | 8444 | if test "${ac_cv_func_strtod+set}" = set; then |
ec6a6fbe | 8445 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8446 | else |
8447 | if test "$cross_compiling" = yes; then | |
8448 | ac_cv_func_strtod=no | |
8449 | else | |
8450 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8451 | /* confdefs.h. */ |
8452 | _ACEOF | |
8453 | cat confdefs.h >>conftest.$ac_ext | |
8454 | cat >>conftest.$ac_ext <<_ACEOF | |
8455 | /* end confdefs.h. */ | |
8456 | ||
7a197a62 AK |
8457 | $ac_includes_default |
8458 | #ifndef strtod | |
ad6254c5 | 8459 | double strtod (); |
7a197a62 | 8460 | #endif |
ad6254c5 AK |
8461 | int |
8462 | main() | |
8463 | { | |
8464 | { | |
8465 | /* Some versions of Linux strtod mis-parse strings with leading '+'. */ | |
8466 | char *string = " +69"; | |
8467 | char *term; | |
8468 | double value; | |
8469 | value = strtod (string, &term); | |
8470 | if (value != 69 || term != (string + 4)) | |
7a197a62 | 8471 | return 1; |
ad6254c5 AK |
8472 | } |
8473 | ||
8474 | { | |
8475 | /* Under Solaris 2.4, strtod returns the wrong value for the | |
8476 | terminating character under some conditions. */ | |
8477 | char *string = "NaN"; | |
8478 | char *term; | |
8479 | strtod (string, &term); | |
8480 | if (term != string && *(term - 1) == 0) | |
7a197a62 | 8481 | return 1; |
ad6254c5 | 8482 | } |
7a197a62 | 8483 | return 0; |
ad6254c5 AK |
8484 | } |
8485 | ||
8486 | _ACEOF | |
8487 | rm -f conftest$ac_exeext | |
7a197a62 AK |
8488 | if { (ac_try="$ac_link" |
8489 | case "(($ac_try" in | |
8490 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8491 | *) ac_try_echo=$ac_try;; | |
8492 | esac | |
ec6a6fbe AK |
8493 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8494 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8495 | (eval "$ac_link") 2>&5 |
ad6254c5 | 8496 | ac_status=$? |
ec6a6fbe | 8497 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 8498 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
8499 | { (case "(($ac_try" in |
8500 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8501 | *) ac_try_echo=$ac_try;; | |
8502 | esac | |
ec6a6fbe AK |
8503 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8504 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8505 | (eval "$ac_try") 2>&5 |
ad6254c5 | 8506 | ac_status=$? |
ec6a6fbe | 8507 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
8508 | (exit $ac_status); }; }; then |
8509 | ac_cv_func_strtod=yes | |
8510 | else | |
ec6a6fbe AK |
8511 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
8512 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
8513 | sed 's/^/| /' conftest.$ac_ext >&5 |
8514 | ||
8515 | ( exit $ac_status ) | |
8516 | ac_cv_func_strtod=no | |
8517 | fi | |
ec6a6fbe | 8518 | rm -rf conftest.dSYM |
7a197a62 | 8519 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 8520 | fi |
7a197a62 AK |
8521 | |
8522 | ||
ad6254c5 | 8523 | fi |
ec6a6fbe AK |
8524 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5 |
8525 | $as_echo "$ac_cv_func_strtod" >&6; } | |
ad6254c5 | 8526 | if test $ac_cv_func_strtod = no; then |
7a197a62 | 8527 | case " $LIBOBJS " in |
8a2fc586 | 8528 | *" strtod.$ac_objext "* ) ;; |
7a197a62 AK |
8529 | *) LIBOBJS="$LIBOBJS strtod.$ac_objext" |
8530 | ;; | |
8a2fc586 AK |
8531 | esac |
8532 | ||
ec6a6fbe AK |
8533 | { $as_echo "$as_me:$LINENO: checking for pow" >&5 |
8534 | $as_echo_n "checking for pow... " >&6; } | |
ad6254c5 | 8535 | if test "${ac_cv_func_pow+set}" = set; then |
ec6a6fbe | 8536 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8537 | else |
8538 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8539 | /* confdefs.h. */ |
8540 | _ACEOF | |
8541 | cat confdefs.h >>conftest.$ac_ext | |
8542 | cat >>conftest.$ac_ext <<_ACEOF | |
8543 | /* end confdefs.h. */ | |
8a2fc586 AK |
8544 | /* Define pow to an innocuous variant, in case <limits.h> declares pow. |
8545 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8546 | #define pow innocuous_pow | |
8547 | ||
ad6254c5 AK |
8548 | /* System header to define __stub macros and hopefully few prototypes, |
8549 | which can conflict with char pow (); below. | |
8550 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8551 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 8552 | |
ad6254c5 AK |
8553 | #ifdef __STDC__ |
8554 | # include <limits.h> | |
8555 | #else | |
8556 | # include <assert.h> | |
8557 | #endif | |
8a2fc586 AK |
8558 | |
8559 | #undef pow | |
8560 | ||
7a197a62 AK |
8561 | /* Override any GCC internal prototype to avoid an error. |
8562 | Use char because int might match the return type of a GCC | |
8563 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
8564 | #ifdef __cplusplus |
8565 | extern "C" | |
ad6254c5 | 8566 | #endif |
ad6254c5 AK |
8567 | char pow (); |
8568 | /* The GNU C library defines this for functions which it implements | |
8569 | to always fail with ENOSYS. Some functions are actually named | |
8570 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 8571 | #if defined __stub_pow || defined __stub___pow |
ad6254c5 | 8572 | choke me |
ad6254c5 AK |
8573 | #endif |
8574 | ||
8575 | int | |
8576 | main () | |
8577 | { | |
7a197a62 | 8578 | return pow (); |
ad6254c5 AK |
8579 | ; |
8580 | return 0; | |
8581 | } | |
8582 | _ACEOF | |
8583 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
8584 | if { (ac_try="$ac_link" |
8585 | case "(($ac_try" in | |
8586 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8587 | *) ac_try_echo=$ac_try;; | |
8588 | esac | |
ec6a6fbe AK |
8589 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8590 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8591 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 8592 | ac_status=$? |
8a2fc586 AK |
8593 | grep -v '^ *+' conftest.er1 >conftest.err |
8594 | rm -f conftest.er1 | |
8595 | cat conftest.err >&5 | |
ec6a6fbe | 8596 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8597 | (exit $ac_status); } && { |
8598 | test -z "$ac_c_werror_flag" || | |
8599 | test ! -s conftest.err | |
ec6a6fbe AK |
8600 | } && test -s conftest$ac_exeext && { |
8601 | test "$cross_compiling" = yes || | |
8602 | $as_test_x conftest$ac_exeext | |
8603 | }; then | |
ad6254c5 AK |
8604 | ac_cv_func_pow=yes |
8605 | else | |
ec6a6fbe | 8606 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8607 | sed 's/^/| /' conftest.$ac_ext >&5 |
8608 | ||
7a197a62 | 8609 | ac_cv_func_pow=no |
ad6254c5 | 8610 | fi |
7a197a62 | 8611 | |
ec6a6fbe | 8612 | rm -rf conftest.dSYM |
25fbec5b | 8613 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 8614 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 8615 | fi |
ec6a6fbe AK |
8616 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5 |
8617 | $as_echo "$ac_cv_func_pow" >&6; } | |
ad6254c5 AK |
8618 | |
8619 | if test $ac_cv_func_pow = no; then | |
ec6a6fbe AK |
8620 | { $as_echo "$as_me:$LINENO: checking for pow in -lm" >&5 |
8621 | $as_echo_n "checking for pow in -lm... " >&6; } | |
ad6254c5 | 8622 | if test "${ac_cv_lib_m_pow+set}" = set; then |
ec6a6fbe | 8623 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8624 | else |
8625 | ac_check_lib_save_LIBS=$LIBS | |
8626 | LIBS="-lm $LIBS" | |
8627 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8628 | /* confdefs.h. */ |
8629 | _ACEOF | |
8630 | cat confdefs.h >>conftest.$ac_ext | |
8631 | cat >>conftest.$ac_ext <<_ACEOF | |
8632 | /* end confdefs.h. */ | |
8633 | ||
7a197a62 AK |
8634 | /* Override any GCC internal prototype to avoid an error. |
8635 | Use char because int might match the return type of a GCC | |
8636 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
8637 | #ifdef __cplusplus |
8638 | extern "C" | |
8639 | #endif | |
ad6254c5 AK |
8640 | char pow (); |
8641 | int | |
8642 | main () | |
8643 | { | |
7a197a62 | 8644 | return pow (); |
ad6254c5 AK |
8645 | ; |
8646 | return 0; | |
8647 | } | |
8648 | _ACEOF | |
8649 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
8650 | if { (ac_try="$ac_link" |
8651 | case "(($ac_try" in | |
8652 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8653 | *) ac_try_echo=$ac_try;; | |
8654 | esac | |
ec6a6fbe AK |
8655 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8656 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8657 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 8658 | ac_status=$? |
8a2fc586 AK |
8659 | grep -v '^ *+' conftest.er1 >conftest.err |
8660 | rm -f conftest.er1 | |
8661 | cat conftest.err >&5 | |
ec6a6fbe | 8662 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8663 | (exit $ac_status); } && { |
8664 | test -z "$ac_c_werror_flag" || | |
8665 | test ! -s conftest.err | |
ec6a6fbe AK |
8666 | } && test -s conftest$ac_exeext && { |
8667 | test "$cross_compiling" = yes || | |
8668 | $as_test_x conftest$ac_exeext | |
8669 | }; then | |
ad6254c5 AK |
8670 | ac_cv_lib_m_pow=yes |
8671 | else | |
ec6a6fbe | 8672 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8673 | sed 's/^/| /' conftest.$ac_ext >&5 |
8674 | ||
7a197a62 | 8675 | ac_cv_lib_m_pow=no |
ad6254c5 | 8676 | fi |
7a197a62 | 8677 | |
ec6a6fbe | 8678 | rm -rf conftest.dSYM |
25fbec5b | 8679 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 8680 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 8681 | LIBS=$ac_check_lib_save_LIBS |
d0191583 | 8682 | fi |
ec6a6fbe AK |
8683 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5 |
8684 | $as_echo "$ac_cv_lib_m_pow" >&6; } | |
8685 | if test "x$ac_cv_lib_m_pow" = x""yes; then | |
d0191583 JM |
8686 | POW_LIB=-lm |
8687 | else | |
ec6a6fbe AK |
8688 | { $as_echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5 |
8689 | $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;} | |
d0191583 | 8690 | fi |
72b2cb61 | 8691 | |
d0191583 | 8692 | fi |
72b2cb61 | 8693 | |
ad6254c5 AK |
8694 | fi |
8695 | ||
ad6254c5 | 8696 | |
d0191583 JM |
8697 | for ac_func in vprintf |
8698 | do | |
ec6a6fbe AK |
8699 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
8700 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
8701 | $as_echo_n "checking for $ac_func... " >&6; } | |
d0191583 | 8702 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 8703 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 8704 | else |
d0191583 JM |
8705 | cat >conftest.$ac_ext <<_ACEOF |
8706 | /* confdefs.h. */ | |
8707 | _ACEOF | |
8708 | cat confdefs.h >>conftest.$ac_ext | |
8709 | cat >>conftest.$ac_ext <<_ACEOF | |
8710 | /* end confdefs.h. */ | |
8711 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
8712 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8713 | #define $ac_func innocuous_$ac_func | |
7a197a62 | 8714 | |
d0191583 JM |
8715 | /* System header to define __stub macros and hopefully few prototypes, |
8716 | which can conflict with char $ac_func (); below. | |
8717 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8718 | <limits.h> exists even on freestanding compilers. */ | |
ad6254c5 | 8719 | |
d0191583 JM |
8720 | #ifdef __STDC__ |
8721 | # include <limits.h> | |
8722 | #else | |
8723 | # include <assert.h> | |
8724 | #endif | |
ad6254c5 | 8725 | |
d0191583 | 8726 | #undef $ac_func |
72b2cb61 | 8727 | |
d0191583 JM |
8728 | /* Override any GCC internal prototype to avoid an error. |
8729 | Use char because int might match the return type of a GCC | |
8730 | builtin and then its argument prototype would still apply. */ | |
8731 | #ifdef __cplusplus | |
8732 | extern "C" | |
8733 | #endif | |
8734 | char $ac_func (); | |
8735 | /* The GNU C library defines this for functions which it implements | |
8736 | to always fail with ENOSYS. Some functions are actually named | |
8737 | something starting with __ and the normal name is an alias. */ | |
8738 | #if defined __stub_$ac_func || defined __stub___$ac_func | |
8739 | choke me | |
8740 | #endif | |
8741 | ||
8742 | int | |
8743 | main () | |
8744 | { | |
8745 | return $ac_func (); | |
8746 | ; | |
8747 | return 0; | |
8748 | } | |
72b2cb61 | 8749 | _ACEOF |
d0191583 JM |
8750 | rm -f conftest.$ac_objext conftest$ac_exeext |
8751 | if { (ac_try="$ac_link" | |
8752 | case "(($ac_try" in | |
8753 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8754 | *) ac_try_echo=$ac_try;; | |
8755 | esac | |
ec6a6fbe AK |
8756 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8757 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
8758 | (eval "$ac_link") 2>conftest.er1 |
8759 | ac_status=$? | |
8760 | grep -v '^ *+' conftest.er1 >conftest.err | |
8761 | rm -f conftest.er1 | |
8762 | cat conftest.err >&5 | |
ec6a6fbe | 8763 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
8764 | (exit $ac_status); } && { |
8765 | test -z "$ac_c_werror_flag" || | |
8766 | test ! -s conftest.err | |
ec6a6fbe AK |
8767 | } && test -s conftest$ac_exeext && { |
8768 | test "$cross_compiling" = yes || | |
8769 | $as_test_x conftest$ac_exeext | |
8770 | }; then | |
d0191583 JM |
8771 | eval "$as_ac_var=yes" |
8772 | else | |
ec6a6fbe | 8773 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 8774 | sed 's/^/| /' conftest.$ac_ext >&5 |
72b2cb61 | 8775 | |
d0191583 | 8776 | eval "$as_ac_var=no" |
ad6254c5 AK |
8777 | fi |
8778 | ||
ec6a6fbe | 8779 | rm -rf conftest.dSYM |
d0191583 JM |
8780 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8781 | conftest$ac_exeext conftest.$ac_ext | |
7a197a62 | 8782 | fi |
ec6a6fbe AK |
8783 | ac_res=`eval 'as_val=${'$as_ac_var'} |
8784 | $as_echo "$as_val"'` | |
8785 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8786 | $as_echo "$ac_res" >&6; } | |
8787 | as_val=`eval 'as_val=${'$as_ac_var'} | |
8788 | $as_echo "$as_val"'` | |
8789 | if test "x$as_val" = x""yes; then | |
d0191583 | 8790 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 8791 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
d0191583 | 8792 | _ACEOF |
7a197a62 | 8793 | |
ec6a6fbe AK |
8794 | { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5 |
8795 | $as_echo_n "checking for _doprnt... " >&6; } | |
d0191583 | 8796 | if test "${ac_cv_func__doprnt+set}" = set; then |
ec6a6fbe | 8797 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 8798 | else |
d0191583 JM |
8799 | cat >conftest.$ac_ext <<_ACEOF |
8800 | /* confdefs.h. */ | |
8801 | _ACEOF | |
8802 | cat confdefs.h >>conftest.$ac_ext | |
8803 | cat >>conftest.$ac_ext <<_ACEOF | |
8804 | /* end confdefs.h. */ | |
8805 | /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt. | |
8806 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8807 | #define _doprnt innocuous__doprnt | |
7a197a62 | 8808 | |
d0191583 JM |
8809 | /* System header to define __stub macros and hopefully few prototypes, |
8810 | which can conflict with char _doprnt (); below. | |
8811 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8812 | <limits.h> exists even on freestanding compilers. */ | |
ad6254c5 | 8813 | |
d0191583 JM |
8814 | #ifdef __STDC__ |
8815 | # include <limits.h> | |
8816 | #else | |
8817 | # include <assert.h> | |
8818 | #endif | |
72b2cb61 | 8819 | |
d0191583 JM |
8820 | #undef _doprnt |
8821 | ||
8822 | /* Override any GCC internal prototype to avoid an error. | |
8823 | Use char because int might match the return type of a GCC | |
8824 | builtin and then its argument prototype would still apply. */ | |
8825 | #ifdef __cplusplus | |
8826 | extern "C" | |
8827 | #endif | |
8828 | char _doprnt (); | |
8829 | /* The GNU C library defines this for functions which it implements | |
8830 | to always fail with ENOSYS. Some functions are actually named | |
8831 | something starting with __ and the normal name is an alias. */ | |
8832 | #if defined __stub__doprnt || defined __stub____doprnt | |
8833 | choke me | |
8834 | #endif | |
8835 | ||
8836 | int | |
8837 | main () | |
8838 | { | |
8839 | return _doprnt (); | |
8840 | ; | |
8841 | return 0; | |
8842 | } | |
72b2cb61 | 8843 | _ACEOF |
d0191583 JM |
8844 | rm -f conftest.$ac_objext conftest$ac_exeext |
8845 | if { (ac_try="$ac_link" | |
8846 | case "(($ac_try" in | |
8847 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8848 | *) ac_try_echo=$ac_try;; | |
8849 | esac | |
ec6a6fbe AK |
8850 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8851 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
8852 | (eval "$ac_link") 2>conftest.er1 |
8853 | ac_status=$? | |
8854 | grep -v '^ *+' conftest.er1 >conftest.err | |
8855 | rm -f conftest.er1 | |
8856 | cat conftest.err >&5 | |
ec6a6fbe | 8857 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
8858 | (exit $ac_status); } && { |
8859 | test -z "$ac_c_werror_flag" || | |
8860 | test ! -s conftest.err | |
ec6a6fbe AK |
8861 | } && test -s conftest$ac_exeext && { |
8862 | test "$cross_compiling" = yes || | |
8863 | $as_test_x conftest$ac_exeext | |
8864 | }; then | |
d0191583 JM |
8865 | ac_cv_func__doprnt=yes |
8866 | else | |
ec6a6fbe | 8867 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 8868 | sed 's/^/| /' conftest.$ac_ext >&5 |
72b2cb61 | 8869 | |
d0191583 | 8870 | ac_cv_func__doprnt=no |
ad6254c5 AK |
8871 | fi |
8872 | ||
ec6a6fbe | 8873 | rm -rf conftest.dSYM |
d0191583 JM |
8874 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8875 | conftest$ac_exeext conftest.$ac_ext | |
7a197a62 | 8876 | fi |
ec6a6fbe AK |
8877 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5 |
8878 | $as_echo "$ac_cv_func__doprnt" >&6; } | |
8879 | if test "x$ac_cv_func__doprnt" = x""yes; then | |
7a197a62 | 8880 | |
d0191583 JM |
8881 | cat >>confdefs.h <<\_ACEOF |
8882 | #define HAVE_DOPRNT 1 | |
8883 | _ACEOF | |
ad6254c5 | 8884 | |
7a197a62 AK |
8885 | fi |
8886 | ||
d0191583 JM |
8887 | fi |
8888 | done | |
8b1a3214 | 8889 | |
ad6254c5 | 8890 | |
7a197a62 | 8891 | |
9c961554 | 8892 | ################################################################################ |
ec6a6fbe AK |
8893 | { $as_echo "$as_me:$LINENO: checking whether to use static linking" >&5 |
8894 | $as_echo_n "checking whether to use static linking... " >&6; } | |
9c961554 MB |
8895 | # Check whether --enable-static_link was given. |
8896 | if test "${enable_static_link+set}" = set; then | |
8897 | enableval=$enable_static_link; STATIC_LINK=$enableval | |
8898 | else | |
8899 | STATIC_LINK=no | |
8900 | fi | |
8901 | ||
ec6a6fbe AK |
8902 | { $as_echo "$as_me:$LINENO: result: $STATIC_LINK" >&5 |
8903 | $as_echo "$STATIC_LINK" >&6; } | |
9c961554 | 8904 | |
d0191583 | 8905 | ################################################################################ |
ad6254c5 | 8906 | |
ad6254c5 AK |
8907 | |
8908 | ################################################################################ | |
ec6a6fbe AK |
8909 | { $as_echo "$as_me:$LINENO: checking file owner" >&5 |
8910 | $as_echo_n "checking file owner... " >&6; } | |
d0191583 JM |
8911 | OWNER="root" |
8912 | ||
8913 | ||
8914 | # Check whether --with-user was given. | |
8915 | if test "${with_user+set}" = set; then | |
8916 | withval=$with_user; OWNER="$withval" | |
7a197a62 AK |
8917 | fi |
8918 | ||
ec6a6fbe AK |
8919 | { $as_echo "$as_me:$LINENO: result: $OWNER" >&5 |
8920 | $as_echo "$OWNER" >&6; } | |
ad6254c5 | 8921 | |
d0191583 JM |
8922 | if test x$OWNER != x; then |
8923 | OWNER="-o $OWNER" | |
ad6254c5 AK |
8924 | fi |
8925 | ||
8926 | ################################################################################ | |
ec6a6fbe AK |
8927 | { $as_echo "$as_me:$LINENO: checking group owner" >&5 |
8928 | $as_echo_n "checking group owner... " >&6; } | |
d0191583 | 8929 | GROUP="root" |
ad6254c5 | 8930 | |
d0191583 JM |
8931 | # Check whether --with-group was given. |
8932 | if test "${with_group+set}" = set; then | |
8933 | withval=$with_group; GROUP="$withval" | |
7a197a62 AK |
8934 | fi |
8935 | ||
ec6a6fbe AK |
8936 | { $as_echo "$as_me:$LINENO: result: $GROUP" >&5 |
8937 | $as_echo "$GROUP" >&6; } | |
d0191583 JM |
8938 | |
8939 | if test x$GROUP != x; then | |
8940 | GROUP="-g $GROUP" | |
8941 | fi | |
ad6254c5 | 8942 | |
24bbc4d7 | 8943 | ################################################################################ |
ec6a6fbe AK |
8944 | { $as_echo "$as_me:$LINENO: checking device node uid" >&5 |
8945 | $as_echo_n "checking device node uid... " >&6; } | |
24bbc4d7 AK |
8946 | |
8947 | ||
8948 | # Check whether --with-device-uid was given. | |
8949 | if test "${with_device_uid+set}" = set; then | |
8950 | withval=$with_device_uid; DM_DEVICE_UID="$withval" | |
8951 | else | |
8952 | DM_DEVICE_UID="0" | |
8953 | fi | |
8954 | ||
ec6a6fbe AK |
8955 | { $as_echo "$as_me:$LINENO: result: $DM_DEVICE_UID" >&5 |
8956 | $as_echo "$DM_DEVICE_UID" >&6; } | |
24bbc4d7 AK |
8957 | |
8958 | ################################################################################ | |
ec6a6fbe AK |
8959 | { $as_echo "$as_me:$LINENO: checking device node gid" >&5 |
8960 | $as_echo_n "checking device node gid... " >&6; } | |
24bbc4d7 AK |
8961 | |
8962 | ||
8963 | # Check whether --with-device-gid was given. | |
8964 | if test "${with_device_gid+set}" = set; then | |
8965 | withval=$with_device_gid; DM_DEVICE_GID="$withval" | |
8966 | else | |
8967 | DM_DEVICE_GID="0" | |
8968 | fi | |
8969 | ||
ec6a6fbe AK |
8970 | { $as_echo "$as_me:$LINENO: result: $DM_DEVICE_GID" >&5 |
8971 | $as_echo "$DM_DEVICE_GID" >&6; } | |
24bbc4d7 | 8972 | |
93bd259b | 8973 | ################################################################################ |
ec6a6fbe AK |
8974 | { $as_echo "$as_me:$LINENO: checking device node mode" >&5 |
8975 | $as_echo_n "checking device node mode... " >&6; } | |
93bd259b AK |
8976 | |
8977 | ||
8978 | # Check whether --with-device-mode was given. | |
8979 | if test "${with_device_mode+set}" = set; then | |
8980 | withval=$with_device_mode; DM_DEVICE_MODE="$withval" | |
8981 | else | |
8982 | DM_DEVICE_MODE="0600" | |
8983 | fi | |
8984 | ||
ec6a6fbe AK |
8985 | { $as_echo "$as_me:$LINENO: result: $DM_DEVICE_MODE" >&5 |
8986 | $as_echo "$DM_DEVICE_MODE" >&6; } | |
93bd259b | 8987 | |
ad6254c5 | 8988 | ################################################################################ |
ec6a6fbe AK |
8989 | { $as_echo "$as_me:$LINENO: checking whether to enable lvm1 fallback" >&5 |
8990 | $as_echo_n "checking whether to enable lvm1 fallback... " >&6; } | |
d0191583 JM |
8991 | # Check whether --enable-lvm1_fallback was given. |
8992 | if test "${enable_lvm1_fallback+set}" = set; then | |
8993 | enableval=$enable_lvm1_fallback; LVM1_FALLBACK=$enableval | |
8994 | else | |
8995 | LVM1_FALLBACK=no | |
7a197a62 AK |
8996 | fi |
8997 | ||
ec6a6fbe AK |
8998 | { $as_echo "$as_me:$LINENO: result: $LVM1_FALLBACK" >&5 |
8999 | $as_echo "$LVM1_FALLBACK" >&6; } | |
ad6254c5 | 9000 | |
d0191583 | 9001 | if test x$LVM1_FALLBACK = xyes; then |
72b2cb61 AK |
9002 | |
9003 | cat >>confdefs.h <<\_ACEOF | |
d0191583 | 9004 | #define LVM1_FALLBACK 1 |
72b2cb61 AK |
9005 | _ACEOF |
9006 | ||
ad6254c5 AK |
9007 | fi |
9008 | ||
9009 | ################################################################################ | |
ec6a6fbe AK |
9010 | { $as_echo "$as_me:$LINENO: checking whether to include support for lvm1 metadata" >&5 |
9011 | $as_echo_n "checking whether to include support for lvm1 metadata... " >&6; } | |
d0191583 JM |
9012 | |
9013 | # Check whether --with-lvm1 was given. | |
9014 | if test "${with_lvm1+set}" = set; then | |
9015 | withval=$with_lvm1; LVM1="$withval" | |
9016 | else | |
9017 | LVM1="internal" | |
7a197a62 AK |
9018 | fi |
9019 | ||
ec6a6fbe AK |
9020 | { $as_echo "$as_me:$LINENO: result: $LVM1" >&5 |
9021 | $as_echo "$LVM1" >&6; } | |
ad6254c5 | 9022 | |
d0191583 | 9023 | if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ]; |
ec6a6fbe | 9024 | then { { $as_echo "$as_me:$LINENO: error: --with-lvm1 parameter invalid |
d0191583 | 9025 | " >&5 |
ec6a6fbe | 9026 | $as_echo "$as_me: error: --with-lvm1 parameter invalid |
d0191583 JM |
9027 | " >&2;} |
9028 | { (exit 1); exit 1; }; } | |
9029 | fi; | |
9030 | ||
9031 | if test x$LVM1 = xinternal; then | |
72b2cb61 AK |
9032 | |
9033 | cat >>confdefs.h <<\_ACEOF | |
d0191583 | 9034 | #define LVM1_INTERNAL 1 |
72b2cb61 AK |
9035 | _ACEOF |
9036 | ||
ad6254c5 AK |
9037 | fi |
9038 | ||
9039 | ################################################################################ | |
ec6a6fbe AK |
9040 | { $as_echo "$as_me:$LINENO: checking whether to include support for GFS pool metadata" >&5 |
9041 | $as_echo_n "checking whether to include support for GFS pool metadata... " >&6; } | |
d0191583 JM |
9042 | |
9043 | # Check whether --with-pool was given. | |
9044 | if test "${with_pool+set}" = set; then | |
9045 | withval=$with_pool; POOL="$withval" | |
ad6254c5 | 9046 | else |
d0191583 | 9047 | POOL="internal" |
7a197a62 AK |
9048 | fi |
9049 | ||
ec6a6fbe AK |
9050 | { $as_echo "$as_me:$LINENO: result: $POOL" >&5 |
9051 | $as_echo "$POOL" >&6; } | |
ad6254c5 | 9052 | |
d0191583 | 9053 | if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ]; |
ec6a6fbe | 9054 | then { { $as_echo "$as_me:$LINENO: error: --with-pool parameter invalid |
d0191583 | 9055 | " >&5 |
ec6a6fbe | 9056 | $as_echo "$as_me: error: --with-pool parameter invalid |
d0191583 JM |
9057 | " >&2;} |
9058 | { (exit 1); exit 1; }; } | |
9059 | fi; | |
7a197a62 | 9060 | |
d0191583 JM |
9061 | if test x$POOL = xinternal; then |
9062 | ||
9063 | cat >>confdefs.h <<\_ACEOF | |
9064 | #define POOL_INTERNAL 1 | |
9065 | _ACEOF | |
9066 | ||
9067 | fi | |
ad6254c5 | 9068 | |
06f62ad1 | 9069 | ################################################################################ |
ec6a6fbe AK |
9070 | { $as_echo "$as_me:$LINENO: checking whether to include support for cluster locking" >&5 |
9071 | $as_echo_n "checking whether to include support for cluster locking... " >&6; } | |
d0191583 JM |
9072 | |
9073 | # Check whether --with-cluster was given. | |
9074 | if test "${with_cluster+set}" = set; then | |
9075 | withval=$with_cluster; CLUSTER="$withval" | |
7a197a62 AK |
9076 | fi |
9077 | ||
ec6a6fbe AK |
9078 | { $as_echo "$as_me:$LINENO: result: $CLUSTER" >&5 |
9079 | $as_echo "$CLUSTER" >&6; } | |
06f62ad1 | 9080 | |
d0191583 | 9081 | if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ]; |
ec6a6fbe | 9082 | then { { $as_echo "$as_me:$LINENO: error: --with-cluster parameter invalid |
06f62ad1 | 9083 | " >&5 |
ec6a6fbe | 9084 | $as_echo "$as_me: error: --with-cluster parameter invalid |
06f62ad1 AK |
9085 | " >&2;} |
9086 | { (exit 1); exit 1; }; } | |
d0191583 | 9087 | fi; |
06f62ad1 | 9088 | |
d0191583 | 9089 | if test x$CLUSTER = xinternal; then |
72b2cb61 AK |
9090 | |
9091 | cat >>confdefs.h <<\_ACEOF | |
d0191583 | 9092 | #define CLUSTER_LOCKING_INTERNAL 1 |
72b2cb61 AK |
9093 | _ACEOF |
9094 | ||
15d91f5a | 9095 | fi |
ad6254c5 AK |
9096 | |
9097 | ################################################################################ | |
ec6a6fbe AK |
9098 | { $as_echo "$as_me:$LINENO: checking whether to include snapshots" >&5 |
9099 | $as_echo_n "checking whether to include snapshots... " >&6; } | |
ad6254c5 | 9100 | |
d0191583 JM |
9101 | # Check whether --with-snapshots was given. |
9102 | if test "${with_snapshots+set}" = set; then | |
9103 | withval=$with_snapshots; SNAPSHOTS="$withval" | |
9104 | else | |
9105 | SNAPSHOTS="internal" | |
ad6254c5 AK |
9106 | fi |
9107 | ||
ec6a6fbe AK |
9108 | { $as_echo "$as_me:$LINENO: result: $SNAPSHOTS" >&5 |
9109 | $as_echo "$SNAPSHOTS" >&6; } | |
ad6254c5 | 9110 | |
d0191583 | 9111 | if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ]; |
ec6a6fbe | 9112 | then { { $as_echo "$as_me:$LINENO: error: --with-snapshots parameter invalid |
d0191583 | 9113 | " >&5 |
ec6a6fbe | 9114 | $as_echo "$as_me: error: --with-snapshots parameter invalid |
d0191583 JM |
9115 | " >&2;} |
9116 | { (exit 1); exit 1; }; } | |
9117 | fi; | |
9118 | ||
9119 | if test x$SNAPSHOTS = xinternal; then | |
9120 | ||
9121 | cat >>confdefs.h <<\_ACEOF | |
9122 | #define SNAPSHOT_INTERNAL 1 | |
9123 | _ACEOF | |
ad6254c5 | 9124 | |
ad6254c5 | 9125 | fi |
7a197a62 | 9126 | |
d0191583 | 9127 | ################################################################################ |
ec6a6fbe AK |
9128 | { $as_echo "$as_me:$LINENO: checking whether to include mirrors" >&5 |
9129 | $as_echo_n "checking whether to include mirrors... " >&6; } | |
d0191583 JM |
9130 | |
9131 | # Check whether --with-mirrors was given. | |
9132 | if test "${with_mirrors+set}" = set; then | |
9133 | withval=$with_mirrors; MIRRORS="$withval" | |
9134 | else | |
9135 | MIRRORS="internal" | |
ad6254c5 | 9136 | fi |
ad6254c5 | 9137 | |
ec6a6fbe AK |
9138 | { $as_echo "$as_me:$LINENO: result: $MIRRORS" >&5 |
9139 | $as_echo "$MIRRORS" >&6; } | |
ad6254c5 | 9140 | |
d0191583 | 9141 | if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ]; |
ec6a6fbe | 9142 | then { { $as_echo "$as_me:$LINENO: error: --with-mirrors parameter invalid |
d0191583 | 9143 | " >&5 |
ec6a6fbe | 9144 | $as_echo "$as_me: error: --with-mirrors parameter invalid |
d0191583 JM |
9145 | " >&2;} |
9146 | { (exit 1); exit 1; }; } | |
9147 | fi; | |
ad6254c5 | 9148 | |
d0191583 | 9149 | if test x$MIRRORS = xinternal; then |
ad6254c5 | 9150 | |
d0191583 JM |
9151 | cat >>confdefs.h <<\_ACEOF |
9152 | #define MIRRORED_INTERNAL 1 | |
ad6254c5 | 9153 | _ACEOF |
8a2fc586 | 9154 | |
d0191583 | 9155 | fi |
8a2fc586 | 9156 | |
d0191583 | 9157 | ################################################################################ |
ec6a6fbe AK |
9158 | { $as_echo "$as_me:$LINENO: checking whether to enable readline" >&5 |
9159 | $as_echo_n "checking whether to enable readline... " >&6; } | |
d0191583 JM |
9160 | # Check whether --enable-readline was given. |
9161 | if test "${enable_readline+set}" = set; then | |
9162 | enableval=$enable_readline; READLINE=$enableval | |
9163 | else | |
06e459df | 9164 | READLINE=maybe |
d0191583 | 9165 | fi |
8a2fc586 | 9166 | |
ec6a6fbe AK |
9167 | { $as_echo "$as_me:$LINENO: result: $READLINE" >&5 |
9168 | $as_echo "$READLINE" >&6; } | |
8a2fc586 | 9169 | |
d0191583 | 9170 | ################################################################################ |
ec6a6fbe AK |
9171 | { $as_echo "$as_me:$LINENO: checking whether to enable realtime support" >&5 |
9172 | $as_echo_n "checking whether to enable realtime support... " >&6; } | |
d0191583 JM |
9173 | # Check whether --enable-realtime was given. |
9174 | if test "${enable_realtime+set}" = set; then | |
9175 | enableval=$enable_realtime; REALTIME=$enableval | |
ad6254c5 | 9176 | fi |
ad6254c5 | 9177 | |
ec6a6fbe AK |
9178 | { $as_echo "$as_me:$LINENO: result: $REALTIME" >&5 |
9179 | $as_echo "$REALTIME" >&6; } | |
d0191583 JM |
9180 | |
9181 | ################################################################################ | |
ec6a6fbe AK |
9182 | { $as_echo "$as_me:$LINENO: checking whether to build cluster LVM daemon" >&5 |
9183 | $as_echo_n "checking whether to build cluster LVM daemon... " >&6; } | |
d0191583 JM |
9184 | |
9185 | # Check whether --with-clvmd was given. | |
9186 | if test "${with_clvmd+set}" = set; then | |
9187 | withval=$with_clvmd; CLVMD="$withval" | |
ad6254c5 | 9188 | else |
d0191583 JM |
9189 | CLVMD="none" |
9190 | fi | |
8a2fc586 | 9191 | |
d0191583 JM |
9192 | if test x$CLVMD = xyes; then |
9193 | CLVMD=all | |
9194 | fi | |
ec6a6fbe AK |
9195 | { $as_echo "$as_me:$LINENO: result: $CLVMD" >&5 |
9196 | $as_echo "$CLVMD" >&6; } | |
8a2fc586 | 9197 | |
d0191583 JM |
9198 | if test x$CLVMD != xnone && test x$CLUSTER = xnone; then |
9199 | CLUSTER=internal | |
9200 | fi | |
8a2fc586 | 9201 | |
f15a2320 | 9202 | if [ "x$CLVMD" = xall -o `expr x"$CLVMD" : '.*corosync.*'` != 0 ]; then |
e2997b73 AK |
9203 | |
9204 | ||
9205 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | |
9206 | if test -n "$ac_tool_prefix"; then | |
9207 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | |
9208 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | |
9209 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
9210 | $as_echo_n "checking for $ac_word... " >&6; } | |
9211 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
9212 | $as_echo_n "(cached) " >&6 | |
9213 | else | |
9214 | case $PKG_CONFIG in | |
9215 | [\\/]* | ?:[\\/]*) | |
9216 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
9217 | ;; | |
9218 | *) | |
9219 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9220 | for as_dir in $PATH | |
9221 | do | |
9222 | IFS=$as_save_IFS | |
9223 | test -z "$as_dir" && as_dir=. | |
9224 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9225 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9226 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
9227 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9228 | break 2 | |
9229 | fi | |
9230 | done | |
9231 | done | |
9232 | IFS=$as_save_IFS | |
9233 | ||
9234 | ;; | |
9235 | esac | |
9236 | fi | |
9237 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
9238 | if test -n "$PKG_CONFIG"; then | |
9239 | { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
9240 | $as_echo "$PKG_CONFIG" >&6; } | |
9241 | else | |
9242 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
9243 | $as_echo "no" >&6; } | |
9244 | fi | |
9245 | ||
9246 | ||
9247 | fi | |
9248 | if test -z "$ac_cv_path_PKG_CONFIG"; then | |
9249 | ac_pt_PKG_CONFIG=$PKG_CONFIG | |
9250 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
9251 | set dummy pkg-config; ac_word=$2 | |
9252 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
9253 | $as_echo_n "checking for $ac_word... " >&6; } | |
9254 | if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then | |
9255 | $as_echo_n "(cached) " >&6 | |
9256 | else | |
9257 | case $ac_pt_PKG_CONFIG in | |
9258 | [\\/]* | ?:[\\/]*) | |
9259 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | |
9260 | ;; | |
9261 | *) | |
9262 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9263 | for as_dir in $PATH | |
9264 | do | |
9265 | IFS=$as_save_IFS | |
9266 | test -z "$as_dir" && as_dir=. | |
9267 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9268 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9269 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
9270 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9271 | break 2 | |
9272 | fi | |
9273 | done | |
9274 | done | |
9275 | IFS=$as_save_IFS | |
9276 | ||
9277 | ;; | |
9278 | esac | |
9279 | fi | |
9280 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | |
9281 | if test -n "$ac_pt_PKG_CONFIG"; then | |
9282 | { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 | |
9283 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | |
9284 | else | |
9285 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
9286 | $as_echo "no" >&6; } | |
9287 | fi | |
9288 | ||
9289 | if test "x$ac_pt_PKG_CONFIG" = x; then | |
9290 | PKG_CONFIG="" | |
9291 | else | |
9292 | case $cross_compiling:$ac_tool_warned in | |
9293 | yes:) | |
9294 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
9295 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
9296 | ac_tool_warned=yes ;; | |
9297 | esac | |
9298 | PKG_CONFIG=$ac_pt_PKG_CONFIG | |
9299 | fi | |
9300 | else | |
9301 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
9302 | fi | |
9303 | ||
9304 | fi | |
9305 | if test -n "$PKG_CONFIG"; then | |
9306 | _pkg_min_version=0.9.0 | |
9307 | { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 | |
9308 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } | |
9309 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | |
9310 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
9311 | $as_echo "yes" >&6; } | |
9312 | else | |
9313 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
9314 | $as_echo "no" >&6; } | |
9315 | PKG_CONFIG="" | |
9316 | fi | |
9317 | ||
9318 | fi | |
9319 | ||
9320 | pkg_failed=no | |
9321 | { $as_echo "$as_me:$LINENO: checking for QUORUM" >&5 | |
9322 | $as_echo_n "checking for QUORUM... " >&6; } | |
9323 | ||
9324 | if test -n "$QUORUM_CFLAGS"; then | |
9325 | pkg_cv_QUORUM_CFLAGS="$QUORUM_CFLAGS" | |
9326 | elif test -n "$PKG_CONFIG"; then | |
9327 | if test -n "$PKG_CONFIG" && \ | |
9328 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libquorum\"") >&5 | |
9329 | ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5 | |
9330 | ac_status=$? | |
9331 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9332 | (exit $ac_status); }; then | |
9333 | pkg_cv_QUORUM_CFLAGS=`$PKG_CONFIG --cflags "libquorum" 2>/dev/null` | |
9334 | else | |
9335 | pkg_failed=yes | |
9336 | fi | |
9337 | else | |
9338 | pkg_failed=untried | |
9339 | fi | |
9340 | if test -n "$QUORUM_LIBS"; then | |
9341 | pkg_cv_QUORUM_LIBS="$QUORUM_LIBS" | |
9342 | elif test -n "$PKG_CONFIG"; then | |
9343 | if test -n "$PKG_CONFIG" && \ | |
9344 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libquorum\"") >&5 | |
9345 | ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5 | |
9346 | ac_status=$? | |
9347 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9348 | (exit $ac_status); }; then | |
9349 | pkg_cv_QUORUM_LIBS=`$PKG_CONFIG --libs "libquorum" 2>/dev/null` | |
9350 | else | |
9351 | pkg_failed=yes | |
9352 | fi | |
9353 | else | |
9354 | pkg_failed=untried | |
9355 | fi | |
9356 | ||
9357 | ||
9358 | ||
9359 | if test $pkg_failed = yes; then | |
9360 | ||
9361 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
9362 | _pkg_short_errors_supported=yes | |
9363 | else | |
9364 | _pkg_short_errors_supported=no | |
9365 | fi | |
9366 | if test $_pkg_short_errors_supported = yes; then | |
9367 | QUORUM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libquorum" 2>&1` | |
9368 | else | |
9369 | QUORUM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libquorum" 2>&1` | |
9370 | fi | |
9371 | # Put the nasty error message in config.log where it belongs | |
9372 | echo "$QUORUM_PKG_ERRORS" >&5 | |
9373 | ||
9374 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
9375 | $as_echo "no" >&6; } | |
9376 | { $as_echo "$as_me:$LINENO: result: no pkg for quorum library, using -lquorum" >&5 | |
9377 | $as_echo "no pkg for quorum library, using -lquorum" >&6; }; | |
9378 | QUORUM_LIBS="-lquorum" | |
9379 | elif test $pkg_failed = untried; then | |
9380 | { $as_echo "$as_me:$LINENO: result: no pkg for quorum library, using -lquorum" >&5 | |
9381 | $as_echo "no pkg for quorum library, using -lquorum" >&6; }; | |
9382 | QUORUM_LIBS="-lquorum" | |
9383 | else | |
9384 | QUORUM_CFLAGS=$pkg_cv_QUORUM_CFLAGS | |
9385 | QUORUM_LIBS=$pkg_cv_QUORUM_LIBS | |
9386 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
9387 | $as_echo "yes" >&6; } | |
9388 | : | |
9389 | fi | |
9390 | ||
9391 | pkg_failed=no | |
9392 | { $as_echo "$as_me:$LINENO: checking for CONFDB" >&5 | |
9393 | $as_echo_n "checking for CONFDB... " >&6; } | |
9394 | ||
9395 | if test -n "$CONFDB_CFLAGS"; then | |
9396 | pkg_cv_CONFDB_CFLAGS="$CONFDB_CFLAGS" | |
9397 | elif test -n "$PKG_CONFIG"; then | |
9398 | if test -n "$PKG_CONFIG" && \ | |
9399 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libconfdb\"") >&5 | |
9400 | ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5 | |
9401 | ac_status=$? | |
9402 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9403 | (exit $ac_status); }; then | |
9404 | pkg_cv_CONFDB_CFLAGS=`$PKG_CONFIG --cflags "libconfdb" 2>/dev/null` | |
9405 | else | |
9406 | pkg_failed=yes | |
9407 | fi | |
9408 | else | |
9409 | pkg_failed=untried | |
9410 | fi | |
9411 | if test -n "$CONFDB_LIBS"; then | |
9412 | pkg_cv_CONFDB_LIBS="$CONFDB_LIBS" | |
9413 | elif test -n "$PKG_CONFIG"; then | |
9414 | if test -n "$PKG_CONFIG" && \ | |
9415 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libconfdb\"") >&5 | |
9416 | ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5 | |
9417 | ac_status=$? | |
9418 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9419 | (exit $ac_status); }; then | |
9420 | pkg_cv_CONFDB_LIBS=`$PKG_CONFIG --libs "libconfdb" 2>/dev/null` | |
9421 | else | |
9422 | pkg_failed=yes | |
9423 | fi | |
9424 | else | |
9425 | pkg_failed=untried | |
9426 | fi | |
9427 | ||
9428 | ||
9429 | ||
9430 | if test $pkg_failed = yes; then | |
9431 | ||
9432 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
9433 | _pkg_short_errors_supported=yes | |
9434 | else | |
9435 | _pkg_short_errors_supported=no | |
9436 | fi | |
9437 | if test $_pkg_short_errors_supported = yes; then | |
9438 | CONFDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libconfdb" 2>&1` | |
9439 | else | |
9440 | CONFDB_PKG_ERRORS=`$PKG_CONFIG --print-errors "libconfdb" 2>&1` | |
9441 | fi | |
9442 | # Put the nasty error message in config.log where it belongs | |
9443 | echo "$CONFDB_PKG_ERRORS" >&5 | |
9444 | ||
9445 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
9446 | $as_echo "no" >&6; } | |
9447 | { $as_echo "$as_me:$LINENO: result: no pkg for confdb library, using -lconfdb" >&5 | |
9448 | $as_echo "no pkg for confdb library, using -lconfdb" >&6; }; | |
9449 | CONFDB_LIBS="-lconfdb" | |
9450 | elif test $pkg_failed = untried; then | |
9451 | { $as_echo "$as_me:$LINENO: result: no pkg for confdb library, using -lconfdb" >&5 | |
9452 | $as_echo "no pkg for confdb library, using -lconfdb" >&6; }; | |
9453 | CONFDB_LIBS="-lconfdb" | |
9454 | else | |
9455 | CONFDB_CFLAGS=$pkg_cv_CONFDB_CFLAGS | |
9456 | CONFDB_LIBS=$pkg_cv_CONFDB_LIBS | |
9457 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
9458 | $as_echo "yes" >&6; } | |
9459 | : | |
9460 | fi | |
9461 | ||
9462 | pkg_failed=no | |
9463 | { $as_echo "$as_me:$LINENO: checking for CPG" >&5 | |
9464 | $as_echo_n "checking for CPG... " >&6; } | |
9465 | ||
9466 | if test -n "$CPG_CFLAGS"; then | |
9467 | pkg_cv_CPG_CFLAGS="$CPG_CFLAGS" | |
9468 | elif test -n "$PKG_CONFIG"; then | |
9469 | if test -n "$PKG_CONFIG" && \ | |
9470 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5 | |
9471 | ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5 | |
9472 | ac_status=$? | |
9473 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9474 | (exit $ac_status); }; then | |
9475 | pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null` | |
9476 | else | |
9477 | pkg_failed=yes | |
9478 | fi | |
9479 | else | |
9480 | pkg_failed=untried | |
9481 | fi | |
9482 | if test -n "$CPG_LIBS"; then | |
9483 | pkg_cv_CPG_LIBS="$CPG_LIBS" | |
9484 | elif test -n "$PKG_CONFIG"; then | |
9485 | if test -n "$PKG_CONFIG" && \ | |
9486 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5 | |
9487 | ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5 | |
9488 | ac_status=$? | |
9489 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9490 | (exit $ac_status); }; then | |
9491 | pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null` | |
9492 | else | |
9493 | pkg_failed=yes | |
9494 | fi | |
9495 | else | |
9496 | pkg_failed=untried | |
9497 | fi | |
9498 | ||
9499 | ||
9500 | ||
9501 | if test $pkg_failed = yes; then | |
9502 | ||
9503 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
9504 | _pkg_short_errors_supported=yes | |
9505 | else | |
9506 | _pkg_short_errors_supported=no | |
9507 | fi | |
9508 | if test $_pkg_short_errors_supported = yes; then | |
9509 | CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1` | |
9510 | else | |
9511 | CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1` | |
9512 | fi | |
9513 | # Put the nasty error message in config.log where it belongs | |
9514 | echo "$CPG_PKG_ERRORS" >&5 | |
9515 | ||
9516 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
9517 | $as_echo "no" >&6; } | |
9518 | { $as_echo "$as_me:$LINENO: result: no pkg for libcpg library, using -lcpg" >&5 | |
9519 | $as_echo "no pkg for libcpg library, using -lcpg" >&6; }; | |
9520 | CPG_LIBS="-lcpg" | |
9521 | elif test $pkg_failed = untried; then | |
9522 | { $as_echo "$as_me:$LINENO: result: no pkg for libcpg library, using -lcpg" >&5 | |
9523 | $as_echo "no pkg for libcpg library, using -lcpg" >&6; }; | |
9524 | CPG_LIBS="-lcpg" | |
9525 | else | |
9526 | CPG_CFLAGS=$pkg_cv_CPG_CFLAGS | |
9527 | CPG_LIBS=$pkg_cv_CPG_LIBS | |
9528 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
9529 | $as_echo "yes" >&6; } | |
9530 | : | |
9531 | fi | |
9532 | fi | |
9533 | ||
d0191583 | 9534 | ################################################################################ |
ec6a6fbe AK |
9535 | { $as_echo "$as_me:$LINENO: checking whether to enable debugging" >&5 |
9536 | $as_echo_n "checking whether to enable debugging... " >&6; } | |
d0191583 JM |
9537 | # Check whether --enable-debug was given. |
9538 | if test "${enable_debug+set}" = set; then | |
9539 | enableval=$enable_debug; DEBUG=$enableval | |
9540 | else | |
9541 | DEBUG=no | |
9542 | fi | |
8a2fc586 | 9543 | |
ec6a6fbe AK |
9544 | { $as_echo "$as_me:$LINENO: result: $DEBUG" >&5 |
9545 | $as_echo "$DEBUG" >&6; } | |
ad6254c5 | 9546 | |
d0191583 JM |
9547 | if test x$DEBUG = xyes; then |
9548 | COPTIMISE_FLAG= | |
fc54be10 | 9549 | else |
d0191583 JM |
9550 | CSCOPE_CMD= |
9551 | fi | |
fc54be10 | 9552 | |
d0191583 | 9553 | ################################################################################ |
ec6a6fbe AK |
9554 | { $as_echo "$as_me:$LINENO: checking for C optimisation flag" >&5 |
9555 | $as_echo_n "checking for C optimisation flag... " >&6; } | |
d0191583 JM |
9556 | |
9557 | # Check whether --with-optimisation was given. | |
9558 | if test "${with_optimisation+set}" = set; then | |
9559 | withval=$with_optimisation; COPTIMISE_FLAG="$withval" | |
9560 | fi | |
9561 | ||
ec6a6fbe AK |
9562 | { $as_echo "$as_me:$LINENO: result: $COPTIMISE_FLAG" >&5 |
9563 | $as_echo "$COPTIMISE_FLAG" >&6; } | |
fddafd51 ZK |
9564 | |
9565 | ################################################################################ | |
ec6a6fbe AK |
9566 | { $as_echo "$as_me:$LINENO: checking whether to gather gcov profiling data" >&5 |
9567 | $as_echo_n "checking whether to gather gcov profiling data... " >&6; } | |
fddafd51 ZK |
9568 | # Check whether --enable-profiling was given. |
9569 | if test "${enable_profiling+set}" = set; then | |
5556819a | 9570 | enableval=$enable_profiling; PROFILING=$enableval |
fddafd51 | 9571 | else |
5556819a | 9572 | PROFILING=no |
fddafd51 ZK |
9573 | fi |
9574 | ||
ec6a6fbe AK |
9575 | { $as_echo "$as_me:$LINENO: result: $PROFILING" >&5 |
9576 | $as_echo "$PROFILING" >&6; } | |
5556819a AK |
9577 | |
9578 | if test "x$PROFILING" = xyes; then | |
9579 | COPTIMISE_FLAG="$COPTIMISE_FLAG -fprofile-arcs -ftest-coverage" | |
9580 | # Extract the first word of "lcov", so it can be a program name with args. | |
fddafd51 | 9581 | set dummy lcov; ac_word=$2 |
ec6a6fbe AK |
9582 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
9583 | $as_echo_n "checking for $ac_word... " >&6; } | |
fddafd51 | 9584 | if test "${ac_cv_path_LCOV+set}" = set; then |
ec6a6fbe | 9585 | $as_echo_n "(cached) " >&6 |
fddafd51 ZK |
9586 | else |
9587 | case $LCOV in | |
9588 | [\\/]* | ?:[\\/]*) | |
9589 | ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path. | |
9590 | ;; | |
9591 | *) | |
9592 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9593 | for as_dir in $PATH | |
9594 | do | |
9595 | IFS=$as_save_IFS | |
9596 | test -z "$as_dir" && as_dir=. | |
9597 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9598 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9599 | ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext" | |
ec6a6fbe | 9600 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
fddafd51 ZK |
9601 | break 2 |
9602 | fi | |
9603 | done | |
9604 | done | |
9605 | IFS=$as_save_IFS | |
9606 | ||
b145d876 | 9607 | test -z "$ac_cv_path_LCOV" && ac_cv_path_LCOV="no" |
fddafd51 ZK |
9608 | ;; |
9609 | esac | |
9610 | fi | |
9611 | LCOV=$ac_cv_path_LCOV | |
9612 | if test -n "$LCOV"; then | |
ec6a6fbe AK |
9613 | { $as_echo "$as_me:$LINENO: result: $LCOV" >&5 |
9614 | $as_echo "$LCOV" >&6; } | |
fddafd51 | 9615 | else |
ec6a6fbe AK |
9616 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
9617 | $as_echo "no" >&6; } | |
fddafd51 ZK |
9618 | fi |
9619 | ||
9620 | ||
5556819a | 9621 | # Extract the first word of "genhtml", so it can be a program name with args. |
fddafd51 | 9622 | set dummy genhtml; ac_word=$2 |
ec6a6fbe AK |
9623 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
9624 | $as_echo_n "checking for $ac_word... " >&6; } | |
fddafd51 | 9625 | if test "${ac_cv_path_GENHTML+set}" = set; then |
ec6a6fbe | 9626 | $as_echo_n "(cached) " >&6 |
fddafd51 ZK |
9627 | else |
9628 | case $GENHTML in | |
9629 | [\\/]* | ?:[\\/]*) | |
9630 | ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path. | |
9631 | ;; | |
9632 | *) | |
9633 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9634 | for as_dir in $PATH | |
9635 | do | |
9636 | IFS=$as_save_IFS | |
9637 | test -z "$as_dir" && as_dir=. | |
9638 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9639 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9640 | ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext" | |
ec6a6fbe | 9641 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
fddafd51 ZK |
9642 | break 2 |
9643 | fi | |
9644 | done | |
9645 | done | |
9646 | IFS=$as_save_IFS | |
9647 | ||
b145d876 | 9648 | test -z "$ac_cv_path_GENHTML" && ac_cv_path_GENHTML="no" |
fddafd51 ZK |
9649 | ;; |
9650 | esac | |
9651 | fi | |
9652 | GENHTML=$ac_cv_path_GENHTML | |
9653 | if test -n "$GENHTML"; then | |
ec6a6fbe AK |
9654 | { $as_echo "$as_me:$LINENO: result: $GENHTML" >&5 |
9655 | $as_echo "$GENHTML" >&6; } | |
fddafd51 | 9656 | else |
ec6a6fbe AK |
9657 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
9658 | $as_echo "no" >&6; } | |
fddafd51 ZK |
9659 | fi |
9660 | ||
9661 | ||
b145d876 | 9662 | if test "$LCOV" = no -o "$GENHTML" = no ; then |
ec6a6fbe AK |
9663 | { { $as_echo "$as_me:$LINENO: error: lcov and genhtml are required for profiling" >&5 |
9664 | $as_echo "$as_me: error: lcov and genhtml are required for profiling" >&2;} | |
b145d876 ZK |
9665 | { (exit 1); exit 1; }; } |
9666 | fi | |
5556819a | 9667 | fi |
d0191583 JM |
9668 | |
9669 | ################################################################################ | |
ec6a6fbe AK |
9670 | { $as_echo "$as_me:$LINENO: checking whether to use device-mapper" >&5 |
9671 | $as_echo_n "checking whether to use device-mapper... " >&6; } | |
d0191583 JM |
9672 | # Check whether --enable-devmapper was given. |
9673 | if test "${enable_devmapper+set}" = set; then | |
9674 | enableval=$enable_devmapper; DEVMAPPER=$enableval | |
fc54be10 AK |
9675 | fi |
9676 | ||
ec6a6fbe AK |
9677 | { $as_echo "$as_me:$LINENO: result: $DEVMAPPER" >&5 |
9678 | $as_echo "$DEVMAPPER" >&6; } | |
d0191583 JM |
9679 | |
9680 | if test x$DEVMAPPER = xyes; then | |
ad6254c5 AK |
9681 | |
9682 | cat >>confdefs.h <<\_ACEOF | |
d0191583 | 9683 | #define DEVMAPPER_SUPPORT 1 |
ad6254c5 AK |
9684 | _ACEOF |
9685 | ||
9686 | fi | |
9687 | ||
a5f46f6a AK |
9688 | ################################################################################ |
9689 | { $as_echo "$as_me:$LINENO: checking whether to enable synchronisation with udev processing" >&5 | |
9690 | $as_echo_n "checking whether to enable synchronisation with udev processing... " >&6; } | |
9691 | # Check whether --enable-udev_sync was given. | |
9692 | if test "${enable_udev_sync+set}" = set; then | |
9693 | enableval=$enable_udev_sync; UDEV_SYNC=$enableval | |
9694 | else | |
9695 | UDEV_SYNC=no | |
9696 | fi | |
9697 | ||
9698 | { $as_echo "$as_me:$LINENO: result: $UDEV_SYNC" >&5 | |
9699 | $as_echo "$UDEV_SYNC" >&6; } | |
9700 | ||
9701 | if test x$UDEV_SYNC = xyes; then | |
9702 | ||
9703 | cat >>confdefs.h <<\_ACEOF | |
9704 | #define UDEV_SYNC_SUPPORT 1 | |
9705 | _ACEOF | |
9706 | ||
9707 | fi | |
9708 | ||
9709 | { $as_echo "$as_me:$LINENO: checking whether to enable installation of udev rules required for synchronisation" >&5 | |
9710 | $as_echo_n "checking whether to enable installation of udev rules required for synchronisation... " >&6; } | |
9711 | # Check whether --enable-udev_rules was given. | |
9712 | if test "${enable_udev_rules+set}" = set; then | |
9713 | enableval=$enable_udev_rules; UDEV_RULES=$enableval | |
9714 | else | |
9715 | UDEV_RULES=$UDEV_SYNC | |
9716 | fi | |
9717 | ||
9718 | { $as_echo "$as_me:$LINENO: result: $UDEV_RULES" >&5 | |
9719 | $as_echo "$UDEV_RULES" >&6; } | |
9720 | ||
93bd259b AK |
9721 | ################################################################################ |
9722 | # Check whether --enable-compat was given. | |
9723 | if test "${enable_compat+set}" = set; then | |
9724 | enableval=$enable_compat; DM_COMPAT=$enableval | |
9725 | else | |
9726 | DM_COMPAT=no | |
9727 | fi | |
9728 | ||
9729 | ||
9730 | ################################################################################ | |
9731 | # Check whether --enable-ioctl was given. | |
9732 | if test "${enable_ioctl+set}" = set; then | |
9733 | enableval=$enable_ioctl; DM_IOCTLS=$enableval | |
9734 | fi | |
9735 | ||
9736 | ||
d0191583 | 9737 | ################################################################################ |
ec6a6fbe AK |
9738 | { $as_echo "$as_me:$LINENO: checking whether to enable O_DIRECT" >&5 |
9739 | $as_echo_n "checking whether to enable O_DIRECT... " >&6; } | |
d0191583 JM |
9740 | # Check whether --enable-o_direct was given. |
9741 | if test "${enable_o_direct+set}" = set; then | |
9742 | enableval=$enable_o_direct; ODIRECT=$enableval | |
ad6254c5 | 9743 | fi |
ad6254c5 | 9744 | |
ec6a6fbe AK |
9745 | { $as_echo "$as_me:$LINENO: result: $ODIRECT" >&5 |
9746 | $as_echo "$ODIRECT" >&6; } | |
ad6254c5 | 9747 | |
d0191583 | 9748 | if test x$ODIRECT = xyes; then |
ad6254c5 | 9749 | |
d0191583 JM |
9750 | cat >>confdefs.h <<\_ACEOF |
9751 | #define O_DIRECT_SUPPORT 1 | |
9752 | _ACEOF | |
ad6254c5 | 9753 | |
d0191583 | 9754 | fi |
ad6254c5 | 9755 | |
572fefeb AK |
9756 | ################################################################################ |
9757 | { $as_echo "$as_me:$LINENO: checking whether to build liblvm2app.so application library" >&5 | |
9758 | $as_echo_n "checking whether to build liblvm2app.so application library... " >&6; } | |
9759 | # Check whether --enable-applib was given. | |
9760 | if test "${enable_applib+set}" = set; then | |
9761 | enableval=$enable_applib; APPLIB=$enableval | |
9762 | else | |
9763 | APPLIB=no | |
9764 | fi | |
9765 | ||
9766 | { $as_echo "$as_me:$LINENO: result: $APPLIB" >&5 | |
9767 | $as_echo "$APPLIB" >&6; } | |
9768 | ||
9769 | test x$APPLIB = xyes \ | |
9770 | && LVM2APP_LIB=-llvm2app \ | |
9771 | || LVM2APP_LIB= | |
9772 | ||
d0191583 | 9773 | ################################################################################ |
ec6a6fbe AK |
9774 | { $as_echo "$as_me:$LINENO: checking whether to compile liblvm2cmd.so" >&5 |
9775 | $as_echo_n "checking whether to compile liblvm2cmd.so... " >&6; } | |
d0191583 JM |
9776 | # Check whether --enable-cmdlib was given. |
9777 | if test "${enable_cmdlib+set}" = set; then | |
9778 | enableval=$enable_cmdlib; CMDLIB=$enableval | |
ad6254c5 | 9779 | else |
d0191583 JM |
9780 | CMDLIB=no |
9781 | fi | |
8a2fc586 | 9782 | |
ec6a6fbe AK |
9783 | { $as_echo "$as_me:$LINENO: result: $CMDLIB" >&5 |
9784 | $as_echo "$CMDLIB" >&6; } | |
8a2fc586 | 9785 | |
2a9a80c9 | 9786 | test x$CMDLIB = xyes \ |
d179cc7a JM |
9787 | && LVM2CMD_LIB=-llvm2cmd \ |
9788 | || LVM2CMD_LIB= | |
9789 | ||
93bd259b AK |
9790 | ################################################################################ |
9791 | # Check whether --enable-pkgconfig was given. | |
9792 | if test "${enable_pkgconfig+set}" = set; then | |
9793 | enableval=$enable_pkgconfig; PKGCONFIG=$enableval | |
9794 | else | |
9795 | PKGCONFIG=no | |
9796 | fi | |
9797 | ||
2a9a80c9 | 9798 | |
d0191583 | 9799 | ################################################################################ |
ec6a6fbe AK |
9800 | { $as_echo "$as_me:$LINENO: checking whether to install fsadm" >&5 |
9801 | $as_echo_n "checking whether to install fsadm... " >&6; } | |
d0191583 JM |
9802 | # Check whether --enable-fsadm was given. |
9803 | if test "${enable_fsadm+set}" = set; then | |
9804 | enableval=$enable_fsadm; FSADM=$enableval | |
9805 | fi | |
8a2fc586 | 9806 | |
ec6a6fbe AK |
9807 | { $as_echo "$as_me:$LINENO: result: $FSADM" >&5 |
9808 | $as_echo "$FSADM" >&6; } | |
8a2fc586 | 9809 | |
d0191583 | 9810 | ################################################################################ |
ec6a6fbe AK |
9811 | { $as_echo "$as_me:$LINENO: checking whether to use dmeventd" >&5 |
9812 | $as_echo_n "checking whether to use dmeventd... " >&6; } | |
d0191583 JM |
9813 | # Check whether --enable-dmeventd was given. |
9814 | if test "${enable_dmeventd+set}" = set; then | |
9815 | enableval=$enable_dmeventd; DMEVENTD=$enableval | |
9816 | fi | |
ad6254c5 | 9817 | |
ec6a6fbe AK |
9818 | { $as_echo "$as_me:$LINENO: result: $DMEVENTD" >&5 |
9819 | $as_echo "$DMEVENTD" >&6; } | |
ad6254c5 | 9820 | |
93bd259b AK |
9821 | BUILD_DMEVENTD=$DMEVENTD |
9822 | ||
2a9a80c9 PR |
9823 | if test x$DMEVENTD = xyes; then |
9824 | if test x$MIRRORS != xinternal; then | |
ec6a6fbe | 9825 | { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd currently requires --with-mirrors=internal |
2a9a80c9 | 9826 | " >&5 |
ec6a6fbe | 9827 | $as_echo "$as_me: error: --enable-dmeventd currently requires --with-mirrors=internal |
2a9a80c9 | 9828 | " >&2;} |
d0191583 | 9829 | { (exit 1); exit 1; }; } |
2a9a80c9 PR |
9830 | fi |
9831 | if test x$CMDLIB = xno; then | |
ec6a6fbe | 9832 | { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd requires --enable-cmdlib to be used as well |
2a9a80c9 | 9833 | " >&5 |
ec6a6fbe | 9834 | $as_echo "$as_me: error: --enable-dmeventd requires --enable-cmdlib to be used as well |
2a9a80c9 PR |
9835 | " >&2;} |
9836 | { (exit 1); exit 1; }; } | |
9837 | fi | |
ad6254c5 | 9838 | fi |
7a197a62 | 9839 | |
d0191583 JM |
9840 | if test x$DMEVENTD = xyes; then |
9841 | ||
9842 | cat >>confdefs.h <<\_ACEOF | |
9843 | #define DMEVENTD 1 | |
ad6254c5 AK |
9844 | _ACEOF |
9845 | ||
ad6254c5 | 9846 | fi |
93bd259b AK |
9847 | |
9848 | ################################################################################ | |
9849 | ||
ec6a6fbe AK |
9850 | { $as_echo "$as_me:$LINENO: checking for getline in -lc" >&5 |
9851 | $as_echo_n "checking for getline in -lc... " >&6; } | |
93bd259b | 9852 | if test "${ac_cv_lib_c_getline+set}" = set; then |
ec6a6fbe | 9853 | $as_echo_n "(cached) " >&6 |
93bd259b AK |
9854 | else |
9855 | ac_check_lib_save_LIBS=$LIBS | |
9856 | LIBS="-lc $LIBS" | |
9857 | cat >conftest.$ac_ext <<_ACEOF | |
9858 | /* confdefs.h. */ | |
9859 | _ACEOF | |
9860 | cat confdefs.h >>conftest.$ac_ext | |
9861 | cat >>conftest.$ac_ext <<_ACEOF | |
9862 | /* end confdefs.h. */ | |
9863 | ||
9864 | /* Override any GCC internal prototype to avoid an error. | |
9865 | Use char because int might match the return type of a GCC | |
9866 | builtin and then its argument prototype would still apply. */ | |
9867 | #ifdef __cplusplus | |
9868 | extern "C" | |
9869 | #endif | |
9870 | char getline (); | |
9871 | int | |
9872 | main () | |
9873 | { | |
9874 | return getline (); | |
9875 | ; | |
9876 | return 0; | |
9877 | } | |
9878 | _ACEOF | |
9879 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9880 | if { (ac_try="$ac_link" | |
9881 | case "(($ac_try" in | |
9882 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9883 | *) ac_try_echo=$ac_try;; | |
9884 | esac | |
ec6a6fbe AK |
9885 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9886 | $as_echo "$ac_try_echo") >&5 | |
93bd259b AK |
9887 | (eval "$ac_link") 2>conftest.er1 |
9888 | ac_status=$? | |
9889 | grep -v '^ *+' conftest.er1 >conftest.err | |
9890 | rm -f conftest.er1 | |
9891 | cat conftest.err >&5 | |
ec6a6fbe | 9892 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
93bd259b AK |
9893 | (exit $ac_status); } && { |
9894 | test -z "$ac_c_werror_flag" || | |
9895 | test ! -s conftest.err | |
ec6a6fbe AK |
9896 | } && test -s conftest$ac_exeext && { |
9897 | test "$cross_compiling" = yes || | |
9898 | $as_test_x conftest$ac_exeext | |
9899 | }; then | |
93bd259b AK |
9900 | ac_cv_lib_c_getline=yes |
9901 | else | |
ec6a6fbe | 9902 | $as_echo "$as_me: failed program was:" >&5 |
93bd259b AK |
9903 | sed 's/^/| /' conftest.$ac_ext >&5 |
9904 | ||
9905 | ac_cv_lib_c_getline=no | |
9906 | fi | |
9907 | ||
ec6a6fbe | 9908 | rm -rf conftest.dSYM |
93bd259b AK |
9909 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
9910 | conftest$ac_exeext conftest.$ac_ext | |
9911 | LIBS=$ac_check_lib_save_LIBS | |
9912 | fi | |
ec6a6fbe AK |
9913 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_getline" >&5 |
9914 | $as_echo "$ac_cv_lib_c_getline" >&6; } | |
9915 | if test "x$ac_cv_lib_c_getline" = x""yes; then | |
93bd259b AK |
9916 | |
9917 | cat >>confdefs.h <<\_ACEOF | |
9918 | #define HAVE_GETLINE 1 | |
9919 | _ACEOF | |
9920 | ||
9921 | fi | |
9922 | ||
9923 | ||
9924 | ################################################################################ | |
9925 | ||
ec6a6fbe AK |
9926 | { $as_echo "$as_me:$LINENO: checking for canonicalize_file_name in -lc" >&5 |
9927 | $as_echo_n "checking for canonicalize_file_name in -lc... " >&6; } | |
93bd259b | 9928 | if test "${ac_cv_lib_c_canonicalize_file_name+set}" = set; then |
ec6a6fbe | 9929 | $as_echo_n "(cached) " >&6 |
93bd259b AK |
9930 | else |
9931 | ac_check_lib_save_LIBS=$LIBS | |
9932 | LIBS="-lc $LIBS" | |
9933 | cat >conftest.$ac_ext <<_ACEOF | |
9934 | /* confdefs.h. */ | |
9935 | _ACEOF | |
9936 | cat confdefs.h >>conftest.$ac_ext | |
9937 | cat >>conftest.$ac_ext <<_ACEOF | |
9938 | /* end confdefs.h. */ | |
9939 | ||
9940 | /* Override any GCC internal prototype to avoid an error. | |
9941 | Use char because int might match the return type of a GCC | |
9942 | builtin and then its argument prototype would still apply. */ | |
9943 | #ifdef __cplusplus | |
9944 | extern "C" | |
9945 | #endif | |
9946 | char canonicalize_file_name (); | |
9947 | int | |
9948 | main () | |
9949 | { | |
9950 | return canonicalize_file_name (); | |
9951 | ; | |
9952 | return 0; | |
9953 | } | |
9954 | _ACEOF | |
9955 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9956 | if { (ac_try="$ac_link" | |
9957 | case "(($ac_try" in | |
9958 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9959 | *) ac_try_echo=$ac_try;; | |
9960 | esac | |
ec6a6fbe AK |
9961 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9962 | $as_echo "$ac_try_echo") >&5 | |
93bd259b AK |
9963 | (eval "$ac_link") 2>conftest.er1 |
9964 | ac_status=$? | |
9965 | grep -v '^ *+' conftest.er1 >conftest.err | |
9966 | rm -f conftest.er1 | |
9967 | cat conftest.err >&5 | |
ec6a6fbe | 9968 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
93bd259b AK |
9969 | (exit $ac_status); } && { |
9970 | test -z "$ac_c_werror_flag" || | |
9971 | test ! -s conftest.err | |
ec6a6fbe AK |
9972 | } && test -s conftest$ac_exeext && { |
9973 | test "$cross_compiling" = yes || | |
9974 | $as_test_x conftest$ac_exeext | |
9975 | }; then | |
93bd259b AK |
9976 | ac_cv_lib_c_canonicalize_file_name=yes |
9977 | else | |
ec6a6fbe | 9978 | $as_echo "$as_me: failed program was:" >&5 |
93bd259b AK |
9979 | sed 's/^/| /' conftest.$ac_ext >&5 |
9980 | ||
9981 | ac_cv_lib_c_canonicalize_file_name=no | |
9982 | fi | |
9983 | ||
ec6a6fbe | 9984 | rm -rf conftest.dSYM |
93bd259b AK |
9985 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
9986 | conftest$ac_exeext conftest.$ac_ext | |
9987 | LIBS=$ac_check_lib_save_LIBS | |
9988 | fi | |
ec6a6fbe AK |
9989 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_canonicalize_file_name" >&5 |
9990 | $as_echo "$ac_cv_lib_c_canonicalize_file_name" >&6; } | |
9991 | if test "x$ac_cv_lib_c_canonicalize_file_name" = x""yes; then | |
93bd259b AK |
9992 | |
9993 | cat >>confdefs.h <<\_ACEOF | |
9994 | #define HAVE_CANONICALIZE_FILE_NAME 1 | |
9995 | _ACEOF | |
9996 | ||
9997 | fi | |
9998 | ||
9999 | ||
d0191583 JM |
10000 | ################################################################################ |
10001 | if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ]; | |
10002 | then exec_prefix=""; | |
10003 | fi; | |
ad6254c5 AK |
10004 | |
10005 | ################################################################################ | |
06e459df | 10006 | if test x$READLINE != xno; then |
ec6a6fbe AK |
10007 | { $as_echo "$as_me:$LINENO: checking for library containing tgetent" >&5 |
10008 | $as_echo_n "checking for library containing tgetent... " >&6; } | |
ad6254c5 | 10009 | if test "${ac_cv_search_tgetent+set}" = set; then |
ec6a6fbe | 10010 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
10011 | else |
10012 | ac_func_search_save_LIBS=$LIBS | |
ad6254c5 | 10013 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10014 | /* confdefs.h. */ |
10015 | _ACEOF | |
10016 | cat confdefs.h >>conftest.$ac_ext | |
10017 | cat >>conftest.$ac_ext <<_ACEOF | |
10018 | /* end confdefs.h. */ | |
10019 | ||
7a197a62 AK |
10020 | /* Override any GCC internal prototype to avoid an error. |
10021 | Use char because int might match the return type of a GCC | |
10022 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
10023 | #ifdef __cplusplus |
10024 | extern "C" | |
10025 | #endif | |
ad6254c5 AK |
10026 | char tgetent (); |
10027 | int | |
10028 | main () | |
10029 | { | |
7a197a62 | 10030 | return tgetent (); |
ad6254c5 AK |
10031 | ; |
10032 | return 0; | |
10033 | } | |
10034 | _ACEOF | |
18dcfb69 | 10035 | for ac_lib in '' tinfo ncurses curses termcap termlib; do |
7a197a62 AK |
10036 | if test -z "$ac_lib"; then |
10037 | ac_res="none required" | |
10038 | else | |
10039 | ac_res=-l$ac_lib | |
10040 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
10041 | fi | |
10042 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10043 | if { (ac_try="$ac_link" | |
10044 | case "(($ac_try" in | |
10045 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10046 | *) ac_try_echo=$ac_try;; | |
10047 | esac | |
ec6a6fbe AK |
10048 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10049 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10050 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 10051 | ac_status=$? |
8a2fc586 AK |
10052 | grep -v '^ *+' conftest.er1 >conftest.err |
10053 | rm -f conftest.er1 | |
10054 | cat conftest.err >&5 | |
ec6a6fbe | 10055 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10056 | (exit $ac_status); } && { |
10057 | test -z "$ac_c_werror_flag" || | |
10058 | test ! -s conftest.err | |
ec6a6fbe AK |
10059 | } && test -s conftest$ac_exeext && { |
10060 | test "$cross_compiling" = yes || | |
10061 | $as_test_x conftest$ac_exeext | |
10062 | }; then | |
7a197a62 | 10063 | ac_cv_search_tgetent=$ac_res |
ad6254c5 | 10064 | else |
ec6a6fbe | 10065 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10066 | sed 's/^/| /' conftest.$ac_ext >&5 |
10067 | ||
ad6254c5 | 10068 | |
7a197a62 | 10069 | fi |
ad6254c5 | 10070 | |
ec6a6fbe | 10071 | rm -rf conftest.dSYM |
25fbec5b | 10072 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
7a197a62 AK |
10073 | conftest$ac_exeext |
10074 | if test "${ac_cv_search_tgetent+set}" = set; then | |
10075 | break | |
ad6254c5 | 10076 | fi |
7a197a62 AK |
10077 | done |
10078 | if test "${ac_cv_search_tgetent+set}" = set; then | |
10079 | : | |
10080 | else | |
10081 | ac_cv_search_tgetent=no | |
ad6254c5 | 10082 | fi |
7a197a62 | 10083 | rm conftest.$ac_ext |
ad6254c5 AK |
10084 | LIBS=$ac_func_search_save_LIBS |
10085 | fi | |
ec6a6fbe AK |
10086 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5 |
10087 | $as_echo "$ac_cv_search_tgetent" >&6; } | |
7a197a62 AK |
10088 | ac_res=$ac_cv_search_tgetent |
10089 | if test "$ac_res" != no; then | |
10090 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
06e459df | 10091 | tg_found=yes |
ad6254c5 | 10092 | else |
06e459df JM |
10093 | tg_found=no |
10094 | fi | |
10095 | ||
10096 | test x$READLINE:$tg_found = xyes:no && | |
ec6a6fbe | 10097 | { { $as_echo "$as_me:$LINENO: error: termcap could not be found which is required for the |
ad6254c5 AK |
10098 | --enable-readline option (which is enabled by default). Either disable readline |
10099 | support with --disable-readline or download and install termcap from: | |
10100 | ftp.gnu.org/gnu/termcap | |
10101 | Note: if you are using precompiled packages you will also need the development | |
10102 | package as well (which may be called termcap-devel or something similar). | |
10103 | Note: (n)curses also seems to work as a substitute for termcap. This was | |
10104 | not found either - but you could try installing that as well. | |
10105 | " >&5 | |
ec6a6fbe | 10106 | $as_echo "$as_me: error: termcap could not be found which is required for the |
ad6254c5 AK |
10107 | --enable-readline option (which is enabled by default). Either disable readline |
10108 | support with --disable-readline or download and install termcap from: | |
10109 | ftp.gnu.org/gnu/termcap | |
10110 | Note: if you are using precompiled packages you will also need the development | |
10111 | package as well (which may be called termcap-devel or something similar). | |
10112 | Note: (n)curses also seems to work as a substitute for termcap. This was | |
10113 | not found either - but you could try installing that as well. | |
10114 | " >&2;} | |
10115 | { (exit 1); exit 1; }; } | |
ad6254c5 AK |
10116 | fi |
10117 | ||
10118 | ################################################################################ | |
ec6a6fbe AK |
10119 | { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
10120 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
ad6254c5 | 10121 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
ec6a6fbe | 10122 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
10123 | else |
10124 | ac_check_lib_save_LIBS=$LIBS | |
10125 | LIBS="-ldl $LIBS" | |
10126 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
10127 | /* confdefs.h. */ |
10128 | _ACEOF | |
10129 | cat confdefs.h >>conftest.$ac_ext | |
10130 | cat >>conftest.$ac_ext <<_ACEOF | |
10131 | /* end confdefs.h. */ | |
10132 | ||
7a197a62 AK |
10133 | /* Override any GCC internal prototype to avoid an error. |
10134 | Use char because int might match the return type of a GCC | |
10135 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
10136 | #ifdef __cplusplus |
10137 | extern "C" | |
10138 | #endif | |
ad6254c5 AK |
10139 | char dlopen (); |
10140 | int | |
10141 | main () | |
10142 | { | |
7a197a62 | 10143 | return dlopen (); |
ad6254c5 AK |
10144 | ; |
10145 | return 0; | |
10146 | } | |
10147 | _ACEOF | |
10148 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
10149 | if { (ac_try="$ac_link" |
10150 | case "(($ac_try" in | |
10151 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10152 | *) ac_try_echo=$ac_try;; | |
10153 | esac | |
ec6a6fbe AK |
10154 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10155 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10156 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 10157 | ac_status=$? |
8a2fc586 AK |
10158 | grep -v '^ *+' conftest.er1 >conftest.err |
10159 | rm -f conftest.er1 | |
10160 | cat conftest.err >&5 | |
ec6a6fbe | 10161 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10162 | (exit $ac_status); } && { |
10163 | test -z "$ac_c_werror_flag" || | |
10164 | test ! -s conftest.err | |
ec6a6fbe AK |
10165 | } && test -s conftest$ac_exeext && { |
10166 | test "$cross_compiling" = yes || | |
10167 | $as_test_x conftest$ac_exeext | |
10168 | }; then | |
ad6254c5 AK |
10169 | ac_cv_lib_dl_dlopen=yes |
10170 | else | |
ec6a6fbe | 10171 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10172 | sed 's/^/| /' conftest.$ac_ext >&5 |
10173 | ||
7a197a62 | 10174 | ac_cv_lib_dl_dlopen=no |
ad6254c5 | 10175 | fi |
7a197a62 | 10176 | |
ec6a6fbe | 10177 | rm -rf conftest.dSYM |
25fbec5b | 10178 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 10179 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 AK |
10180 | LIBS=$ac_check_lib_save_LIBS |
10181 | fi | |
ec6a6fbe AK |
10182 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
10183 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
10184 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then | |
ad6254c5 AK |
10185 | HAVE_LIBDL=yes |
10186 | else | |
10187 | HAVE_LIBDL=no | |
10188 | fi | |
10189 | ||
10190 | ||
7e9e9502 | 10191 | if [ "x$HAVE_LIBDL" = xyes ]; then |
72b2cb61 AK |
10192 | |
10193 | cat >>confdefs.h <<\_ACEOF | |
10194 | #define HAVE_LIBDL 1 | |
10195 | _ACEOF | |
10196 | ||
ad6254c5 AK |
10197 | LIBS="-ldl $LIBS" |
10198 | else | |
10199 | HAVE_LIBDL=no | |
10200 | fi | |
10201 | ||
10202 | ################################################################################ | |
10203 | if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \ | |
10204 | -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \ | |
10205 | \) -a "x$STATIC_LINK" = xyes ]; | |
ec6a6fbe | 10206 | then { { $as_echo "$as_me:$LINENO: error: Features cannot be 'shared' when building statically |
ad6254c5 | 10207 | " >&5 |
ec6a6fbe | 10208 | $as_echo "$as_me: error: Features cannot be 'shared' when building statically |
ad6254c5 AK |
10209 | " >&2;} |
10210 | { (exit 1); exit 1; }; } | |
10211 | fi | |
10212 | ||
d0191583 | 10213 | ################################################################################ |
ec6a6fbe AK |
10214 | { $as_echo "$as_me:$LINENO: checking whether to enable selinux support" >&5 |
10215 | $as_echo_n "checking whether to enable selinux support... " >&6; } | |
d0191583 JM |
10216 | # Check whether --enable-selinux was given. |
10217 | if test "${enable_selinux+set}" = set; then | |
10218 | enableval=$enable_selinux; SELINUX=$enableval | |
10219 | fi | |
10220 | ||
ec6a6fbe AK |
10221 | { $as_echo "$as_me:$LINENO: result: $SELINUX" >&5 |
10222 | $as_echo "$SELINUX" >&6; } | |
d0191583 | 10223 | |
ad6254c5 AK |
10224 | ################################################################################ |
10225 | if test x$SELINUX = xyes; then | |
ec6a6fbe AK |
10226 | { $as_echo "$as_me:$LINENO: checking for sepol_check_context in -lsepol" >&5 |
10227 | $as_echo_n "checking for sepol_check_context in -lsepol... " >&6; } | |
8a2fc586 | 10228 | if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then |
ec6a6fbe | 10229 | $as_echo_n "(cached) " >&6 |
8a2fc586 AK |
10230 | else |
10231 | ac_check_lib_save_LIBS=$LIBS | |
10232 | LIBS="-lsepol $LIBS" | |
10233 | cat >conftest.$ac_ext <<_ACEOF | |
10234 | /* confdefs.h. */ | |
10235 | _ACEOF | |
10236 | cat confdefs.h >>conftest.$ac_ext | |
10237 | cat >>conftest.$ac_ext <<_ACEOF | |
10238 | /* end confdefs.h. */ | |
10239 | ||
7a197a62 AK |
10240 | /* Override any GCC internal prototype to avoid an error. |
10241 | Use char because int might match the return type of a GCC | |
10242 | builtin and then its argument prototype would still apply. */ | |
8a2fc586 AK |
10243 | #ifdef __cplusplus |
10244 | extern "C" | |
10245 | #endif | |
8a2fc586 AK |
10246 | char sepol_check_context (); |
10247 | int | |
10248 | main () | |
10249 | { | |
7a197a62 | 10250 | return sepol_check_context (); |
8a2fc586 AK |
10251 | ; |
10252 | return 0; | |
10253 | } | |
10254 | _ACEOF | |
10255 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
10256 | if { (ac_try="$ac_link" |
10257 | case "(($ac_try" in | |
10258 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10259 | *) ac_try_echo=$ac_try;; | |
10260 | esac | |
ec6a6fbe AK |
10261 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10262 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10263 | (eval "$ac_link") 2>conftest.er1 |
8a2fc586 AK |
10264 | ac_status=$? |
10265 | grep -v '^ *+' conftest.er1 >conftest.err | |
10266 | rm -f conftest.er1 | |
10267 | cat conftest.err >&5 | |
ec6a6fbe | 10268 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10269 | (exit $ac_status); } && { |
10270 | test -z "$ac_c_werror_flag" || | |
10271 | test ! -s conftest.err | |
ec6a6fbe AK |
10272 | } && test -s conftest$ac_exeext && { |
10273 | test "$cross_compiling" = yes || | |
10274 | $as_test_x conftest$ac_exeext | |
10275 | }; then | |
8a2fc586 AK |
10276 | ac_cv_lib_sepol_sepol_check_context=yes |
10277 | else | |
ec6a6fbe | 10278 | $as_echo "$as_me: failed program was:" >&5 |
8a2fc586 AK |
10279 | sed 's/^/| /' conftest.$ac_ext >&5 |
10280 | ||
7a197a62 | 10281 | ac_cv_lib_sepol_sepol_check_context=no |
8a2fc586 | 10282 | fi |
7a197a62 | 10283 | |
ec6a6fbe | 10284 | rm -rf conftest.dSYM |
25fbec5b | 10285 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 AK |
10286 | conftest$ac_exeext conftest.$ac_ext |
10287 | LIBS=$ac_check_lib_save_LIBS | |
10288 | fi | |
ec6a6fbe AK |
10289 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sepol_sepol_check_context" >&5 |
10290 | $as_echo "$ac_cv_lib_sepol_sepol_check_context" >&6; } | |
10291 | if test "x$ac_cv_lib_sepol_sepol_check_context" = x""yes; then | |
8a2fc586 AK |
10292 | HAVE_SEPOL=yes |
10293 | else | |
10294 | HAVE_SEPOL=no | |
10295 | fi | |
10296 | ||
8a2fc586 AK |
10297 | |
10298 | if test x$HAVE_SEPOL = xyes; then | |
d0191583 JM |
10299 | |
10300 | cat >>confdefs.h <<\_ACEOF | |
10301 | #define HAVE_SEPOL 1 | |
10302 | _ACEOF | |
10303 | ||
8a2fc586 AK |
10304 | LIBS="-lsepol $LIBS" |
10305 | fi | |
10306 | ||
ec6a6fbe AK |
10307 | { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5 |
10308 | $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; } | |
ad6254c5 | 10309 | if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then |
ec6a6fbe | 10310 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
10311 | else |
10312 | ac_check_lib_save_LIBS=$LIBS | |
10313 | LIBS="-lselinux $LIBS" | |
10314 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
10315 | /* confdefs.h. */ |
10316 | _ACEOF | |
10317 | cat confdefs.h >>conftest.$ac_ext | |
10318 | cat >>conftest.$ac_ext <<_ACEOF | |
10319 | /* end confdefs.h. */ | |
10320 | ||
7a197a62 AK |
10321 | /* Override any GCC internal prototype to avoid an error. |
10322 | Use char because int might match the return type of a GCC | |
10323 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
10324 | #ifdef __cplusplus |
10325 | extern "C" | |
10326 | #endif | |
ad6254c5 AK |
10327 | char is_selinux_enabled (); |
10328 | int | |
10329 | main () | |
10330 | { | |
7a197a62 | 10331 | return is_selinux_enabled (); |
ad6254c5 AK |
10332 | ; |
10333 | return 0; | |
10334 | } | |
10335 | _ACEOF | |
10336 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
10337 | if { (ac_try="$ac_link" |
10338 | case "(($ac_try" in | |
10339 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10340 | *) ac_try_echo=$ac_try;; | |
10341 | esac | |
ec6a6fbe AK |
10342 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10343 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10344 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 10345 | ac_status=$? |
8a2fc586 AK |
10346 | grep -v '^ *+' conftest.er1 >conftest.err |
10347 | rm -f conftest.er1 | |
10348 | cat conftest.err >&5 | |
ec6a6fbe | 10349 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10350 | (exit $ac_status); } && { |
10351 | test -z "$ac_c_werror_flag" || | |
10352 | test ! -s conftest.err | |
ec6a6fbe AK |
10353 | } && test -s conftest$ac_exeext && { |
10354 | test "$cross_compiling" = yes || | |
10355 | $as_test_x conftest$ac_exeext | |
10356 | }; then | |
ad6254c5 AK |
10357 | ac_cv_lib_selinux_is_selinux_enabled=yes |
10358 | else | |
ec6a6fbe | 10359 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10360 | sed 's/^/| /' conftest.$ac_ext >&5 |
10361 | ||
7a197a62 | 10362 | ac_cv_lib_selinux_is_selinux_enabled=no |
ad6254c5 | 10363 | fi |
7a197a62 | 10364 | |
ec6a6fbe | 10365 | rm -rf conftest.dSYM |
25fbec5b | 10366 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 10367 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 AK |
10368 | LIBS=$ac_check_lib_save_LIBS |
10369 | fi | |
ec6a6fbe AK |
10370 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5 |
10371 | $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; } | |
10372 | if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then | |
ad6254c5 AK |
10373 | HAVE_SELINUX=yes |
10374 | else | |
10375 | HAVE_SELINUX=no | |
10376 | fi | |
10377 | ||
ad6254c5 AK |
10378 | |
10379 | if test x$HAVE_SELINUX = xyes; then | |
72b2cb61 AK |
10380 | |
10381 | cat >>confdefs.h <<\_ACEOF | |
10382 | #define HAVE_SELINUX 1 | |
10383 | _ACEOF | |
10384 | ||
ad6254c5 AK |
10385 | LIBS="-lselinux $LIBS" |
10386 | else | |
ec6a6fbe AK |
10387 | { $as_echo "$as_me:$LINENO: WARNING: Disabling selinux" >&5 |
10388 | $as_echo "$as_me: WARNING: Disabling selinux" >&2;} | |
66e941e8 JM |
10389 | fi |
10390 | ||
d0191583 | 10391 | # With --enable-static_link and selinux enabled, linking |
66e941e8 JM |
10392 | # fails on at least Debian unstable due to unsatisfied references |
10393 | # to pthread_mutex_lock and _unlock. See if we need -lpthread. | |
10394 | if test "$STATIC_LINK-$HAVE_SELINUX" = yes-yes; then | |
10395 | lvm_saved_libs=$LIBS | |
10396 | LIBS="$LIBS -static" | |
ec6a6fbe AK |
10397 | { $as_echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5 |
10398 | $as_echo_n "checking for library containing pthread_mutex_lock... " >&6; } | |
66e941e8 | 10399 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
ec6a6fbe | 10400 | $as_echo_n "(cached) " >&6 |
66e941e8 JM |
10401 | else |
10402 | ac_func_search_save_LIBS=$LIBS | |
10403 | cat >conftest.$ac_ext <<_ACEOF | |
10404 | /* confdefs.h. */ | |
10405 | _ACEOF | |
10406 | cat confdefs.h >>conftest.$ac_ext | |
10407 | cat >>conftest.$ac_ext <<_ACEOF | |
10408 | /* end confdefs.h. */ | |
10409 | ||
10410 | /* Override any GCC internal prototype to avoid an error. | |
10411 | Use char because int might match the return type of a GCC | |
10412 | builtin and then its argument prototype would still apply. */ | |
10413 | #ifdef __cplusplus | |
10414 | extern "C" | |
10415 | #endif | |
10416 | char pthread_mutex_lock (); | |
10417 | int | |
10418 | main () | |
10419 | { | |
10420 | return pthread_mutex_lock (); | |
10421 | ; | |
10422 | return 0; | |
10423 | } | |
10424 | _ACEOF | |
10425 | for ac_lib in '' pthread; do | |
10426 | if test -z "$ac_lib"; then | |
10427 | ac_res="none required" | |
10428 | else | |
10429 | ac_res=-l$ac_lib | |
10430 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
10431 | fi | |
10432 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10433 | if { (ac_try="$ac_link" | |
10434 | case "(($ac_try" in | |
10435 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10436 | *) ac_try_echo=$ac_try;; | |
10437 | esac | |
ec6a6fbe AK |
10438 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10439 | $as_echo "$ac_try_echo") >&5 | |
66e941e8 JM |
10440 | (eval "$ac_link") 2>conftest.er1 |
10441 | ac_status=$? | |
10442 | grep -v '^ *+' conftest.er1 >conftest.err | |
10443 | rm -f conftest.er1 | |
10444 | cat conftest.err >&5 | |
ec6a6fbe | 10445 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10446 | (exit $ac_status); } && { |
10447 | test -z "$ac_c_werror_flag" || | |
10448 | test ! -s conftest.err | |
ec6a6fbe AK |
10449 | } && test -s conftest$ac_exeext && { |
10450 | test "$cross_compiling" = yes || | |
10451 | $as_test_x conftest$ac_exeext | |
10452 | }; then | |
66e941e8 JM |
10453 | ac_cv_search_pthread_mutex_lock=$ac_res |
10454 | else | |
ec6a6fbe | 10455 | $as_echo "$as_me: failed program was:" >&5 |
66e941e8 JM |
10456 | sed 's/^/| /' conftest.$ac_ext >&5 |
10457 | ||
10458 | ||
10459 | fi | |
10460 | ||
ec6a6fbe | 10461 | rm -rf conftest.dSYM |
25fbec5b | 10462 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
66e941e8 JM |
10463 | conftest$ac_exeext |
10464 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then | |
10465 | break | |
10466 | fi | |
10467 | done | |
10468 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then | |
10469 | : | |
10470 | else | |
10471 | ac_cv_search_pthread_mutex_lock=no | |
10472 | fi | |
10473 | rm conftest.$ac_ext | |
10474 | LIBS=$ac_func_search_save_LIBS | |
10475 | fi | |
ec6a6fbe AK |
10476 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5 |
10477 | $as_echo "$ac_cv_search_pthread_mutex_lock" >&6; } | |
66e941e8 JM |
10478 | ac_res=$ac_cv_search_pthread_mutex_lock |
10479 | if test "$ac_res" != no; then | |
10480 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
10481 | test "$ac_cv_search_pthread_mutex_lock" = "none required" || | |
10482 | LIB_PTHREAD=-lpthread | |
10483 | fi | |
10484 | ||
10485 | LIBS=$lvm_saved_libs | |
ad6254c5 AK |
10486 | fi |
10487 | fi | |
10488 | ||
8b1a3214 AK |
10489 | ################################################################################ |
10490 | if test x$REALTIME = xyes; then | |
ec6a6fbe AK |
10491 | { $as_echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5 |
10492 | $as_echo_n "checking for clock_gettime in -lrt... " >&6; } | |
8b1a3214 | 10493 | if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then |
ec6a6fbe | 10494 | $as_echo_n "(cached) " >&6 |
8b1a3214 AK |
10495 | else |
10496 | ac_check_lib_save_LIBS=$LIBS | |
10497 | LIBS="-lrt $LIBS" | |
10498 | cat >conftest.$ac_ext <<_ACEOF | |
10499 | /* confdefs.h. */ | |
10500 | _ACEOF | |
10501 | cat confdefs.h >>conftest.$ac_ext | |
10502 | cat >>conftest.$ac_ext <<_ACEOF | |
10503 | /* end confdefs.h. */ | |
10504 | ||
7a197a62 AK |
10505 | /* Override any GCC internal prototype to avoid an error. |
10506 | Use char because int might match the return type of a GCC | |
10507 | builtin and then its argument prototype would still apply. */ | |
8b1a3214 AK |
10508 | #ifdef __cplusplus |
10509 | extern "C" | |
10510 | #endif | |
8b1a3214 AK |
10511 | char clock_gettime (); |
10512 | int | |
10513 | main () | |
10514 | { | |
7a197a62 | 10515 | return clock_gettime (); |
8b1a3214 AK |
10516 | ; |
10517 | return 0; | |
10518 | } | |
10519 | _ACEOF | |
10520 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
10521 | if { (ac_try="$ac_link" |
10522 | case "(($ac_try" in | |
10523 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10524 | *) ac_try_echo=$ac_try;; | |
10525 | esac | |
ec6a6fbe AK |
10526 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10527 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10528 | (eval "$ac_link") 2>conftest.er1 |
8b1a3214 AK |
10529 | ac_status=$? |
10530 | grep -v '^ *+' conftest.er1 >conftest.err | |
10531 | rm -f conftest.er1 | |
10532 | cat conftest.err >&5 | |
ec6a6fbe | 10533 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10534 | (exit $ac_status); } && { |
10535 | test -z "$ac_c_werror_flag" || | |
10536 | test ! -s conftest.err | |
ec6a6fbe AK |
10537 | } && test -s conftest$ac_exeext && { |
10538 | test "$cross_compiling" = yes || | |
10539 | $as_test_x conftest$ac_exeext | |
10540 | }; then | |
8b1a3214 AK |
10541 | ac_cv_lib_rt_clock_gettime=yes |
10542 | else | |
ec6a6fbe | 10543 | $as_echo "$as_me: failed program was:" >&5 |
8b1a3214 AK |
10544 | sed 's/^/| /' conftest.$ac_ext >&5 |
10545 | ||
7a197a62 | 10546 | ac_cv_lib_rt_clock_gettime=no |
8b1a3214 | 10547 | fi |
7a197a62 | 10548 | |
ec6a6fbe | 10549 | rm -rf conftest.dSYM |
25fbec5b | 10550 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8b1a3214 AK |
10551 | conftest$ac_exeext conftest.$ac_ext |
10552 | LIBS=$ac_check_lib_save_LIBS | |
10553 | fi | |
ec6a6fbe AK |
10554 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5 |
10555 | $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; } | |
10556 | if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then | |
8b1a3214 AK |
10557 | HAVE_REALTIME=yes |
10558 | else | |
10559 | HAVE_REALTIME=no | |
10560 | fi | |
10561 | ||
8b1a3214 AK |
10562 | |
10563 | if test x$HAVE_REALTIME = xyes; then | |
10564 | ||
10565 | cat >>confdefs.h <<\_ACEOF | |
10566 | #define HAVE_REALTIME 1 | |
10567 | _ACEOF | |
10568 | ||
10569 | LIBS="-lrt $LIBS" | |
10570 | else | |
ec6a6fbe AK |
10571 | { $as_echo "$as_me:$LINENO: WARNING: Disabling realtime clock" >&5 |
10572 | $as_echo "$as_me: WARNING: Disabling realtime clock" >&2;} | |
8b1a3214 AK |
10573 | fi |
10574 | fi | |
10575 | ||
ad6254c5 AK |
10576 | ################################################################################ |
10577 | ||
10578 | for ac_header in getopt.h | |
10579 | do | |
ec6a6fbe | 10580 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 10581 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
10582 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10583 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 10584 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 10585 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 10586 | fi |
ec6a6fbe AK |
10587 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
10588 | $as_echo "$as_val"'` | |
10589 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10590 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
10591 | else |
10592 | # Is the header compilable? | |
ec6a6fbe AK |
10593 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
10594 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 10595 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10596 | /* confdefs.h. */ |
10597 | _ACEOF | |
10598 | cat confdefs.h >>conftest.$ac_ext | |
10599 | cat >>conftest.$ac_ext <<_ACEOF | |
10600 | /* end confdefs.h. */ | |
10601 | $ac_includes_default | |
10602 | #include <$ac_header> | |
10603 | _ACEOF | |
10604 | rm -f conftest.$ac_objext | |
7a197a62 AK |
10605 | if { (ac_try="$ac_compile" |
10606 | case "(($ac_try" in | |
10607 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10608 | *) ac_try_echo=$ac_try;; | |
10609 | esac | |
ec6a6fbe AK |
10610 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10611 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10612 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 10613 | ac_status=$? |
8a2fc586 AK |
10614 | grep -v '^ *+' conftest.er1 >conftest.err |
10615 | rm -f conftest.er1 | |
10616 | cat conftest.err >&5 | |
ec6a6fbe | 10617 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10618 | (exit $ac_status); } && { |
10619 | test -z "$ac_c_werror_flag" || | |
10620 | test ! -s conftest.err | |
10621 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
10622 | ac_header_compiler=yes |
10623 | else | |
ec6a6fbe | 10624 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10625 | sed 's/^/| /' conftest.$ac_ext >&5 |
10626 | ||
7a197a62 | 10627 | ac_header_compiler=no |
ad6254c5 | 10628 | fi |
7a197a62 AK |
10629 | |
10630 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
10631 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10632 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
10633 | |
10634 | # Is the header present? | |
ec6a6fbe AK |
10635 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10636 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 10637 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10638 | /* confdefs.h. */ |
10639 | _ACEOF | |
10640 | cat confdefs.h >>conftest.$ac_ext | |
10641 | cat >>conftest.$ac_ext <<_ACEOF | |
10642 | /* end confdefs.h. */ | |
10643 | #include <$ac_header> | |
10644 | _ACEOF | |
7a197a62 AK |
10645 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
10646 | case "(($ac_try" in | |
10647 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10648 | *) ac_try_echo=$ac_try;; | |
10649 | esac | |
ec6a6fbe AK |
10650 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10651 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10652 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
10653 | ac_status=$? |
10654 | grep -v '^ *+' conftest.er1 >conftest.err | |
10655 | rm -f conftest.er1 | |
10656 | cat conftest.err >&5 | |
ec6a6fbe | 10657 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10658 | (exit $ac_status); } >/dev/null && { |
10659 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
10660 | test ! -s conftest.err | |
10661 | }; then | |
ad6254c5 AK |
10662 | ac_header_preproc=yes |
10663 | else | |
ec6a6fbe | 10664 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10665 | sed 's/^/| /' conftest.$ac_ext >&5 |
10666 | ||
10667 | ac_header_preproc=no | |
10668 | fi | |
7a197a62 | 10669 | |
ad6254c5 | 10670 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
10671 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10672 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
10673 | |
10674 | # So? What about this header? | |
8a2fc586 AK |
10675 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
10676 | yes:no: ) | |
ec6a6fbe AK |
10677 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
10678 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10679 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10680 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 10681 | ac_header_preproc=yes |
ad6254c5 | 10682 | ;; |
8a2fc586 | 10683 | no:yes:* ) |
ec6a6fbe AK |
10684 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
10685 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10686 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10687 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10688 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10689 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10690 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10691 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10692 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10693 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10694 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10695 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 10696 | |
ad6254c5 AK |
10697 | ;; |
10698 | esac | |
ec6a6fbe AK |
10699 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10700 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 10701 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 10702 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 10703 | else |
8a2fc586 | 10704 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 10705 | fi |
ec6a6fbe AK |
10706 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
10707 | $as_echo "$as_val"'` | |
10708 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10709 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
10710 | |
10711 | fi | |
ec6a6fbe AK |
10712 | as_val=`eval 'as_val=${'$as_ac_Header'} |
10713 | $as_echo "$as_val"'` | |
10714 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 10715 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 10716 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 10717 | _ACEOF |
72b2cb61 AK |
10718 | |
10719 | cat >>confdefs.h <<\_ACEOF | |
10720 | #define HAVE_GETOPTLONG 1 | |
10721 | _ACEOF | |
10722 | ||
ad6254c5 AK |
10723 | fi |
10724 | ||
10725 | done | |
10726 | ||
10727 | ||
10728 | ################################################################################ | |
06e459df | 10729 | if test x$READLINE != xno; then |
bc1024f8 JM |
10730 | rl_found=yes |
10731 | ||
ec6a6fbe AK |
10732 | { $as_echo "$as_me:$LINENO: checking for readline in -lreadline" >&5 |
10733 | $as_echo_n "checking for readline in -lreadline... " >&6; } | |
ad6254c5 | 10734 | if test "${ac_cv_lib_readline_readline+set}" = set; then |
ec6a6fbe | 10735 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
10736 | else |
10737 | ac_check_lib_save_LIBS=$LIBS | |
10738 | LIBS="-lreadline $LIBS" | |
10739 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
10740 | /* confdefs.h. */ |
10741 | _ACEOF | |
10742 | cat confdefs.h >>conftest.$ac_ext | |
10743 | cat >>conftest.$ac_ext <<_ACEOF | |
10744 | /* end confdefs.h. */ | |
10745 | ||
7a197a62 AK |
10746 | /* Override any GCC internal prototype to avoid an error. |
10747 | Use char because int might match the return type of a GCC | |
10748 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
10749 | #ifdef __cplusplus |
10750 | extern "C" | |
10751 | #endif | |
ad6254c5 AK |
10752 | char readline (); |
10753 | int | |
10754 | main () | |
10755 | { | |
7a197a62 | 10756 | return readline (); |
ad6254c5 AK |
10757 | ; |
10758 | return 0; | |
10759 | } | |
10760 | _ACEOF | |
10761 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
10762 | if { (ac_try="$ac_link" |
10763 | case "(($ac_try" in | |
10764 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10765 | *) ac_try_echo=$ac_try;; | |
10766 | esac | |
ec6a6fbe AK |
10767 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10768 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10769 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 10770 | ac_status=$? |
8a2fc586 AK |
10771 | grep -v '^ *+' conftest.er1 >conftest.err |
10772 | rm -f conftest.er1 | |
10773 | cat conftest.err >&5 | |
ec6a6fbe | 10774 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10775 | (exit $ac_status); } && { |
10776 | test -z "$ac_c_werror_flag" || | |
10777 | test ! -s conftest.err | |
ec6a6fbe AK |
10778 | } && test -s conftest$ac_exeext && { |
10779 | test "$cross_compiling" = yes || | |
10780 | $as_test_x conftest$ac_exeext | |
10781 | }; then | |
ad6254c5 AK |
10782 | ac_cv_lib_readline_readline=yes |
10783 | else | |
ec6a6fbe | 10784 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10785 | sed 's/^/| /' conftest.$ac_ext >&5 |
10786 | ||
7a197a62 | 10787 | ac_cv_lib_readline_readline=no |
ad6254c5 | 10788 | fi |
7a197a62 | 10789 | |
ec6a6fbe | 10790 | rm -rf conftest.dSYM |
25fbec5b | 10791 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 10792 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 AK |
10793 | LIBS=$ac_check_lib_save_LIBS |
10794 | fi | |
ec6a6fbe AK |
10795 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5 |
10796 | $as_echo "$ac_cv_lib_readline_readline" >&6; } | |
10797 | if test "x$ac_cv_lib_readline_readline" = x""yes; then | |
bc1024f8 JM |
10798 | cat >>confdefs.h <<_ACEOF |
10799 | #define HAVE_LIBREADLINE 1 | |
10800 | _ACEOF | |
10801 | ||
10802 | LIBS="-lreadline $LIBS" | |
10803 | ||
ad6254c5 | 10804 | else |
06e459df JM |
10805 | rl_found=no |
10806 | fi | |
10807 | ||
10808 | test x$READLINE:$rl_found = xyes:no && | |
ec6a6fbe | 10809 | { { $as_echo "$as_me:$LINENO: error: GNU Readline could not be found which is required for the |
ad6254c5 AK |
10810 | --enable-readline option (which is enabled by default). Either disable readline |
10811 | support with --disable-readline or download and install readline from: | |
10812 | ftp.gnu.org/gnu/readline | |
10813 | Note: if you are using precompiled packages you will also need the development | |
10814 | package as well (which may be called readline-devel or something similar). | |
10815 | " >&5 | |
ec6a6fbe | 10816 | $as_echo "$as_me: error: GNU Readline could not be found which is required for the |
ad6254c5 AK |
10817 | --enable-readline option (which is enabled by default). Either disable readline |
10818 | support with --disable-readline or download and install readline from: | |
10819 | ftp.gnu.org/gnu/readline | |
10820 | Note: if you are using precompiled packages you will also need the development | |
10821 | package as well (which may be called readline-devel or something similar). | |
10822 | " >&2;} | |
10823 | { (exit 1); exit 1; }; } | |
06e459df | 10824 | if test $rl_found = yes; then |
bc1024f8 JM |
10825 | |
10826 | for ac_func in rl_completion_matches | |
10827 | do | |
ec6a6fbe AK |
10828 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
10829 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
10830 | $as_echo_n "checking for $ac_func... " >&6; } | |
bc1024f8 | 10831 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 10832 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
10833 | else |
10834 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
10835 | /* confdefs.h. */ |
10836 | _ACEOF | |
10837 | cat confdefs.h >>conftest.$ac_ext | |
10838 | cat >>conftest.$ac_ext <<_ACEOF | |
10839 | /* end confdefs.h. */ | |
bc1024f8 | 10840 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
8a2fc586 | 10841 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
bc1024f8 | 10842 | #define $ac_func innocuous_$ac_func |
8a2fc586 | 10843 | |
ad6254c5 | 10844 | /* System header to define __stub macros and hopefully few prototypes, |
bc1024f8 | 10845 | which can conflict with char $ac_func (); below. |
ad6254c5 AK |
10846 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
10847 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 10848 | |
ad6254c5 AK |
10849 | #ifdef __STDC__ |
10850 | # include <limits.h> | |
10851 | #else | |
10852 | # include <assert.h> | |
10853 | #endif | |
8a2fc586 | 10854 | |
bc1024f8 | 10855 | #undef $ac_func |
8a2fc586 | 10856 | |
7a197a62 AK |
10857 | /* Override any GCC internal prototype to avoid an error. |
10858 | Use char because int might match the return type of a GCC | |
10859 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
10860 | #ifdef __cplusplus |
10861 | extern "C" | |
ad6254c5 | 10862 | #endif |
bc1024f8 | 10863 | char $ac_func (); |
ad6254c5 AK |
10864 | /* The GNU C library defines this for functions which it implements |
10865 | to always fail with ENOSYS. Some functions are actually named | |
10866 | something starting with __ and the normal name is an alias. */ | |
bc1024f8 | 10867 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 10868 | choke me |
ad6254c5 AK |
10869 | #endif |
10870 | ||
10871 | int | |
10872 | main () | |
10873 | { | |
bc1024f8 | 10874 | return $ac_func (); |
ad6254c5 AK |
10875 | ; |
10876 | return 0; | |
10877 | } | |
10878 | _ACEOF | |
10879 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
10880 | if { (ac_try="$ac_link" |
10881 | case "(($ac_try" in | |
10882 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10883 | *) ac_try_echo=$ac_try;; | |
10884 | esac | |
ec6a6fbe AK |
10885 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10886 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10887 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 10888 | ac_status=$? |
8a2fc586 AK |
10889 | grep -v '^ *+' conftest.er1 >conftest.err |
10890 | rm -f conftest.er1 | |
10891 | cat conftest.err >&5 | |
ec6a6fbe | 10892 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10893 | (exit $ac_status); } && { |
10894 | test -z "$ac_c_werror_flag" || | |
10895 | test ! -s conftest.err | |
ec6a6fbe AK |
10896 | } && test -s conftest$ac_exeext && { |
10897 | test "$cross_compiling" = yes || | |
10898 | $as_test_x conftest$ac_exeext | |
10899 | }; then | |
bc1024f8 | 10900 | eval "$as_ac_var=yes" |
ad6254c5 | 10901 | else |
ec6a6fbe | 10902 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10903 | sed 's/^/| /' conftest.$ac_ext >&5 |
10904 | ||
bc1024f8 | 10905 | eval "$as_ac_var=no" |
ad6254c5 | 10906 | fi |
7a197a62 | 10907 | |
ec6a6fbe | 10908 | rm -rf conftest.dSYM |
25fbec5b | 10909 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 10910 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 10911 | fi |
ec6a6fbe AK |
10912 | ac_res=`eval 'as_val=${'$as_ac_var'} |
10913 | $as_echo "$as_val"'` | |
10914 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10915 | $as_echo "$ac_res" >&6; } | |
10916 | as_val=`eval 'as_val=${'$as_ac_var'} | |
10917 | $as_echo "$as_val"'` | |
10918 | if test "x$as_val" = x""yes; then | |
bc1024f8 | 10919 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 10920 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
72b2cb61 AK |
10921 | _ACEOF |
10922 | ||
10923 | fi | |
bc1024f8 | 10924 | done |
ad6254c5 | 10925 | |
d179cc7a JM |
10926 | |
10927 | cat >>confdefs.h <<\_ACEOF | |
10928 | #define READLINE_SUPPORT 1 | |
10929 | _ACEOF | |
10930 | ||
06e459df | 10931 | fi |
ad6254c5 AK |
10932 | fi |
10933 | ||
10934 | ################################################################################ | |
ec6a6fbe AK |
10935 | { $as_echo "$as_me:$LINENO: checking whether to enable internationalisation" >&5 |
10936 | $as_echo_n "checking whether to enable internationalisation... " >&6; } | |
7a197a62 | 10937 | # Check whether --enable-nls was given. |
ad6254c5 | 10938 | if test "${enable_nls+set}" = set; then |
7a197a62 | 10939 | enableval=$enable_nls; INTL=$enableval |
ad6254c5 AK |
10940 | else |
10941 | INTL=no | |
7a197a62 AK |
10942 | fi |
10943 | ||
ec6a6fbe AK |
10944 | { $as_echo "$as_me:$LINENO: result: $INTL" >&5 |
10945 | $as_echo "$INTL" >&6; } | |
ad6254c5 AK |
10946 | |
10947 | if test x$INTL = xyes; then | |
93bd259b | 10948 | # FIXME - Move this - can be device-mapper too |
ad6254c5 AK |
10949 | INTL_PACKAGE="lvm2" |
10950 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
10951 | set dummy msgfmt; ac_word=$2 | |
ec6a6fbe AK |
10952 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
10953 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 10954 | if test "${ac_cv_path_MSGFMT+set}" = set; then |
ec6a6fbe | 10955 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
10956 | else |
10957 | case $MSGFMT in | |
10958 | [\\/]* | ?:[\\/]*) | |
10959 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
10960 | ;; | |
10961 | *) | |
10962 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10963 | for as_dir in $PATH | |
10964 | do | |
10965 | IFS=$as_save_IFS | |
10966 | test -z "$as_dir" && as_dir=. | |
10967 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 10968 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 10969 | ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext" |
ec6a6fbe | 10970 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
10971 | break 2 |
10972 | fi | |
10973 | done | |
10974 | done | |
7a197a62 | 10975 | IFS=$as_save_IFS |
ad6254c5 AK |
10976 | |
10977 | ;; | |
10978 | esac | |
10979 | fi | |
10980 | MSGFMT=$ac_cv_path_MSGFMT | |
ad6254c5 | 10981 | if test -n "$MSGFMT"; then |
ec6a6fbe AK |
10982 | { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5 |
10983 | $as_echo "$MSGFMT" >&6; } | |
ad6254c5 | 10984 | else |
ec6a6fbe AK |
10985 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
10986 | $as_echo "no" >&6; } | |
ad6254c5 AK |
10987 | fi |
10988 | ||
7a197a62 | 10989 | |
ad6254c5 | 10990 | if [ "x$MSGFMT" == x ]; |
ec6a6fbe | 10991 | then { { $as_echo "$as_me:$LINENO: error: msgfmt not found in path $PATH |
ad6254c5 | 10992 | " >&5 |
ec6a6fbe | 10993 | $as_echo "$as_me: error: msgfmt not found in path $PATH |
ad6254c5 AK |
10994 | " >&2;} |
10995 | { (exit 1); exit 1; }; } | |
10996 | fi; | |
10997 | ||
10998 | ||
7a197a62 | 10999 | # Check whether --with-localedir was given. |
ad6254c5 | 11000 | if test "${with_localedir+set}" = set; then |
7a197a62 | 11001 | withval=$with_localedir; LOCALEDIR="$withval" |
ad6254c5 AK |
11002 | else |
11003 | LOCALEDIR='${prefix}/share/locale' | |
7a197a62 AK |
11004 | fi |
11005 | ||
ad6254c5 AK |
11006 | fi |
11007 | ||
11008 | ################################################################################ | |
11009 | ||
7a197a62 | 11010 | # Check whether --with-confdir was given. |
ad6254c5 | 11011 | if test "${with_confdir+set}" = set; then |
7a197a62 | 11012 | withval=$with_confdir; CONFDIR="$withval" |
ad6254c5 AK |
11013 | else |
11014 | CONFDIR='/etc' | |
7a197a62 AK |
11015 | fi |
11016 | ||
ad6254c5 AK |
11017 | |
11018 | ||
7a197a62 | 11019 | # Check whether --with-staticdir was given. |
ad6254c5 | 11020 | if test "${with_staticdir+set}" = set; then |
7a197a62 | 11021 | withval=$with_staticdir; STATICDIR="$withval" |
ad6254c5 AK |
11022 | else |
11023 | STATICDIR='${exec_prefix}/sbin' | |
7a197a62 | 11024 | fi |
ad6254c5 | 11025 | |
33f732c5 | 11026 | |
7a197a62 | 11027 | |
68f2de6d AK |
11028 | # Check whether --with-usrlibdir was given. |
11029 | if test "${with_usrlibdir+set}" = set; then | |
11030 | withval=$with_usrlibdir; usrlibdir="$withval" | |
11031 | else | |
11032 | usrlibdir='${prefix}/lib' | |
11033 | fi | |
11034 | ||
11035 | ||
11036 | ||
11037 | # Check whether --with-usrsbindir was given. | |
11038 | if test "${with_usrsbindir+set}" = set; then | |
11039 | withval=$with_usrsbindir; usrsbindir="$withval" | |
11040 | else | |
11041 | usrsbindir='${prefix}/sbin' | |
11042 | fi | |
11043 | ||
11044 | ||
a5f46f6a AK |
11045 | ################################################################################ |
11046 | ||
11047 | # Check whether --with-udev_prefix was given. | |
11048 | if test "${with_udev_prefix+set}" = set; then | |
11049 | withval=$with_udev_prefix; udev_prefix="$withval" | |
11050 | else | |
11051 | udev_prefix='${exec_prefix}' | |
11052 | fi | |
11053 | ||
11054 | ||
11055 | udevdir='${udev_prefix}/lib/udev/rules.d' | |
11056 | ||
ad6254c5 AK |
11057 | ################################################################################ |
11058 | if test x$READLINE = xyes; then | |
11059 | ||
11060 | ||
11061 | for ac_header in readline/readline.h readline/history.h | |
11062 | do | |
ec6a6fbe | 11063 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 11064 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
11065 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11066 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 11067 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 11068 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 11069 | fi |
ec6a6fbe AK |
11070 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
11071 | $as_echo "$as_val"'` | |
11072 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11073 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
11074 | else |
11075 | # Is the header compilable? | |
ec6a6fbe AK |
11076 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
11077 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 11078 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
11079 | /* confdefs.h. */ |
11080 | _ACEOF | |
11081 | cat confdefs.h >>conftest.$ac_ext | |
11082 | cat >>conftest.$ac_ext <<_ACEOF | |
11083 | /* end confdefs.h. */ | |
11084 | $ac_includes_default | |
11085 | #include <$ac_header> | |
11086 | _ACEOF | |
11087 | rm -f conftest.$ac_objext | |
7a197a62 AK |
11088 | if { (ac_try="$ac_compile" |
11089 | case "(($ac_try" in | |
11090 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11091 | *) ac_try_echo=$ac_try;; | |
11092 | esac | |
ec6a6fbe AK |
11093 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
11094 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 11095 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 11096 | ac_status=$? |
8a2fc586 AK |
11097 | grep -v '^ *+' conftest.er1 >conftest.err |
11098 | rm -f conftest.er1 | |
11099 | cat conftest.err >&5 | |
ec6a6fbe | 11100 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
11101 | (exit $ac_status); } && { |
11102 | test -z "$ac_c_werror_flag" || | |
11103 | test ! -s conftest.err | |
11104 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
11105 | ac_header_compiler=yes |
11106 | else | |
ec6a6fbe | 11107 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11108 | sed 's/^/| /' conftest.$ac_ext >&5 |
11109 | ||
7a197a62 | 11110 | ac_header_compiler=no |
ad6254c5 | 11111 | fi |
7a197a62 AK |
11112 | |
11113 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
11114 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
11115 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
11116 | |
11117 | # Is the header present? | |
ec6a6fbe AK |
11118 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
11119 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 11120 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
11121 | /* confdefs.h. */ |
11122 | _ACEOF | |
11123 | cat confdefs.h >>conftest.$ac_ext | |
11124 | cat >>conftest.$ac_ext <<_ACEOF | |
11125 | /* end confdefs.h. */ | |
11126 | #include <$ac_header> | |
11127 | _ACEOF | |
7a197a62 AK |
11128 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
11129 | case "(($ac_try" in | |
11130 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11131 | *) ac_try_echo=$ac_try;; | |
11132 | esac | |
ec6a6fbe AK |
11133 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
11134 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 11135 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
11136 | ac_status=$? |
11137 | grep -v '^ *+' conftest.er1 >conftest.err | |
11138 | rm -f conftest.er1 | |
11139 | cat conftest.err >&5 | |
ec6a6fbe | 11140 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
11141 | (exit $ac_status); } >/dev/null && { |
11142 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
11143 | test ! -s conftest.err | |
11144 | }; then | |
ad6254c5 AK |
11145 | ac_header_preproc=yes |
11146 | else | |
ec6a6fbe | 11147 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11148 | sed 's/^/| /' conftest.$ac_ext >&5 |
11149 | ||
11150 | ac_header_preproc=no | |
11151 | fi | |
7a197a62 | 11152 | |
ad6254c5 | 11153 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
11154 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11155 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
11156 | |
11157 | # So? What about this header? | |
8a2fc586 AK |
11158 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
11159 | yes:no: ) | |
ec6a6fbe AK |
11160 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
11161 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11162 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11163 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 11164 | ac_header_preproc=yes |
ad6254c5 | 11165 | ;; |
8a2fc586 | 11166 | no:yes:* ) |
ec6a6fbe AK |
11167 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
11168 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11169 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11170 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11171 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11172 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11173 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11174 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11175 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11176 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11177 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11178 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 11179 | |
ad6254c5 AK |
11180 | ;; |
11181 | esac | |
ec6a6fbe AK |
11182 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11183 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 11184 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 11185 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 11186 | else |
8a2fc586 | 11187 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 11188 | fi |
ec6a6fbe AK |
11189 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
11190 | $as_echo "$as_val"'` | |
11191 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11192 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
11193 | |
11194 | fi | |
ec6a6fbe AK |
11195 | as_val=`eval 'as_val=${'$as_ac_Header'} |
11196 | $as_echo "$as_val"'` | |
11197 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 11198 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 11199 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
11200 | _ACEOF |
11201 | ||
11202 | else | |
ec6a6fbe AK |
11203 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
11204 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 AK |
11205 | { (exit 1); exit 1; }; } |
11206 | fi | |
11207 | ||
11208 | done | |
11209 | ||
11210 | fi | |
11211 | ||
5c7fc7c4 | 11212 | if test x$CLVMD != xnone; then |
ad6254c5 AK |
11213 | |
11214 | ||
11215 | ||
11216 | ||
11217 | ||
11218 | ||
11219 | ||
11220 | ||
11221 | ||
11222 | ||
11223 | 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 | |
11224 | do | |
ec6a6fbe | 11225 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 11226 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
11227 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11228 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 11229 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 11230 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 11231 | fi |
ec6a6fbe AK |
11232 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
11233 | $as_echo "$as_val"'` | |
11234 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11235 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
11236 | else |
11237 | # Is the header compilable? | |
ec6a6fbe AK |
11238 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
11239 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 11240 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
11241 | /* confdefs.h. */ |
11242 | _ACEOF | |
11243 | cat confdefs.h >>conftest.$ac_ext | |
11244 | cat >>conftest.$ac_ext <<_ACEOF | |
11245 | /* end confdefs.h. */ | |
11246 | $ac_includes_default | |
11247 | #include <$ac_header> | |
11248 | _ACEOF | |
11249 | rm -f conftest.$ac_objext | |
7a197a62 AK |
11250 | if { (ac_try="$ac_compile" |
11251 | case "(($ac_try" in | |
11252 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11253 | *) ac_try_echo=$ac_try;; | |
11254 | esac | |
ec6a6fbe AK |
11255 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
11256 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 11257 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 11258 | ac_status=$? |
8a2fc586 AK |
11259 | grep -v '^ *+' conftest.er1 >conftest.err |
11260 | rm -f conftest.er1 | |
11261 | cat conftest.err >&5 | |
ec6a6fbe | 11262 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
11263 | (exit $ac_status); } && { |
11264 | test -z "$ac_c_werror_flag" || | |
11265 | test ! -s conftest.err | |
11266 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
11267 | ac_header_compiler=yes |
11268 | else | |
ec6a6fbe | 11269 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11270 | sed 's/^/| /' conftest.$ac_ext >&5 |
11271 | ||
7a197a62 | 11272 | ac_header_compiler=no |
ad6254c5 | 11273 | fi |
7a197a62 AK |
11274 | |
11275 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
11276 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
11277 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
11278 | |
11279 | # Is the header present? | |
ec6a6fbe AK |
11280 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
11281 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 11282 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
11283 | /* confdefs.h. */ |
11284 | _ACEOF | |
11285 | cat confdefs.h >>conftest.$ac_ext | |
11286 | cat >>conftest.$ac_ext <<_ACEOF | |
11287 | /* end confdefs.h. */ | |
11288 | #include <$ac_header> | |
11289 | _ACEOF | |
7a197a62 AK |
11290 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
11291 | case "(($ac_try" in | |
11292 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11293 | *) ac_try_echo=$ac_try;; | |
11294 | esac | |
ec6a6fbe AK |
11295 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
11296 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 11297 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
11298 | ac_status=$? |
11299 | grep -v '^ *+' conftest.er1 >conftest.err | |
11300 | rm -f conftest.er1 | |
11301 | cat conftest.err >&5 | |
ec6a6fbe | 11302 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
11303 | (exit $ac_status); } >/dev/null && { |
11304 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
11305 | test ! -s conftest.err | |
11306 | }; then | |
ad6254c5 AK |
11307 | ac_header_preproc=yes |
11308 | else | |
ec6a6fbe | 11309 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11310 | sed 's/^/| /' conftest.$ac_ext >&5 |
11311 | ||
11312 | ac_header_preproc=no | |
11313 | fi | |
7a197a62 | 11314 | |
ad6254c5 | 11315 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
11316 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11317 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
11318 | |
11319 | # So? What about this header? | |
8a2fc586 AK |
11320 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
11321 | yes:no: ) | |
ec6a6fbe AK |
11322 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
11323 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11324 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11325 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 11326 | ac_header_preproc=yes |
ad6254c5 | 11327 | ;; |
8a2fc586 | 11328 | no:yes:* ) |
ec6a6fbe AK |
11329 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
11330 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11331 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11332 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11333 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11334 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11335 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11336 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11337 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11338 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11339 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11340 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 11341 | |
ad6254c5 AK |
11342 | ;; |
11343 | esac | |
ec6a6fbe AK |
11344 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11345 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 11346 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 11347 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 11348 | else |
8a2fc586 | 11349 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 11350 | fi |
ec6a6fbe AK |
11351 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
11352 | $as_echo "$as_val"'` | |
11353 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11354 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
11355 | |
11356 | fi | |
ec6a6fbe AK |
11357 | as_val=`eval 'as_val=${'$as_ac_Header'} |
11358 | $as_echo "$as_val"'` | |
11359 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 11360 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 11361 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
11362 | _ACEOF |
11363 | ||
11364 | else | |
ec6a6fbe AK |
11365 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
11366 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 11367 | { (exit 1); exit 1; }; } |
795ca3e5 AK |
11368 | fi |
11369 | ||
ad6254c5 AK |
11370 | done |
11371 | ||
11372 | ||
795ca3e5 | 11373 | |
8106cdd5 | 11374 | |
ad6254c5 AK |
11375 | |
11376 | ||
11377 | for ac_func in dup2 getmntent memmove select socket | |
11378 | do | |
ec6a6fbe AK |
11379 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
11380 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
11381 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 11382 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 11383 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 11384 | else |
ad6254c5 | 11385 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
11386 | /* confdefs.h. */ |
11387 | _ACEOF | |
11388 | cat confdefs.h >>conftest.$ac_ext | |
11389 | cat >>conftest.$ac_ext <<_ACEOF | |
11390 | /* end confdefs.h. */ | |
8a2fc586 AK |
11391 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
11392 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
11393 | #define $ac_func innocuous_$ac_func | |
11394 | ||
795ca3e5 | 11395 | /* System header to define __stub macros and hopefully few prototypes, |
ad6254c5 AK |
11396 | which can conflict with char $ac_func (); below. |
11397 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11398 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 11399 | |
ad6254c5 AK |
11400 | #ifdef __STDC__ |
11401 | # include <limits.h> | |
11402 | #else | |
11403 | # include <assert.h> | |
11404 | #endif | |
8a2fc586 AK |
11405 | |
11406 | #undef $ac_func | |
11407 | ||
7a197a62 AK |
11408 | /* Override any GCC internal prototype to avoid an error. |
11409 | Use char because int might match the return type of a GCC | |
11410 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
11411 | #ifdef __cplusplus |
11412 | extern "C" | |
ad6254c5 | 11413 | #endif |
ad6254c5 | 11414 | char $ac_func (); |
795ca3e5 AK |
11415 | /* The GNU C library defines this for functions which it implements |
11416 | to always fail with ENOSYS. Some functions are actually named | |
11417 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 11418 | #if defined __stub_$ac_func || defined __stub___$ac_func |
795ca3e5 | 11419 | choke me |
795ca3e5 AK |
11420 | #endif |
11421 | ||
ad6254c5 AK |
11422 | int |
11423 | main () | |
11424 | { | |
7a197a62 | 11425 | return $ac_func (); |
ad6254c5 AK |
11426 | ; |
11427 | return 0; | |
11428 | } | |
11429 | _ACEOF | |
11430 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
11431 | if { (ac_try="$ac_link" |
11432 | case "(($ac_try" in | |
11433 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11434 | *) ac_try_echo=$ac_try;; | |
11435 | esac | |
ec6a6fbe AK |
11436 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
11437 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 11438 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 11439 | ac_status=$? |
8a2fc586 AK |
11440 | grep -v '^ *+' conftest.er1 >conftest.err |
11441 | rm -f conftest.er1 | |
11442 | cat conftest.err >&5 | |
ec6a6fbe | 11443 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
11444 | (exit $ac_status); } && { |
11445 | test -z "$ac_c_werror_flag" || | |
11446 | test ! -s conftest.err | |
ec6a6fbe AK |
11447 | } && test -s conftest$ac_exeext && { |
11448 | test "$cross_compiling" = yes || | |
11449 | $as_test_x conftest$ac_exeext | |
11450 | }; then | |
ad6254c5 | 11451 | eval "$as_ac_var=yes" |
795ca3e5 | 11452 | else |
ec6a6fbe | 11453 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11454 | sed 's/^/| /' conftest.$ac_ext >&5 |
11455 | ||
7a197a62 | 11456 | eval "$as_ac_var=no" |
80992638 | 11457 | fi |
7a197a62 | 11458 | |
ec6a6fbe | 11459 | rm -rf conftest.dSYM |
25fbec5b | 11460 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 11461 | conftest$ac_exeext conftest.$ac_ext |
795ca3e5 | 11462 | fi |
ec6a6fbe AK |
11463 | ac_res=`eval 'as_val=${'$as_ac_var'} |
11464 | $as_echo "$as_val"'` | |
11465 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11466 | $as_echo "$ac_res" >&6; } | |
11467 | as_val=`eval 'as_val=${'$as_ac_var'} | |
11468 | $as_echo "$as_val"'` | |
11469 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 11470 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 11471 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 | 11472 | _ACEOF |
80992638 AK |
11473 | |
11474 | else | |
ec6a6fbe AK |
11475 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
11476 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 11477 | { (exit 1); exit 1; }; } |
8106cdd5 | 11478 | fi |
ad6254c5 | 11479 | done |
795ca3e5 | 11480 | |
25fbec5b AK |
11481 | # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4, |
11482 | # -lseq on Dynix/PTX, -lgen on Unixware. | |
ec6a6fbe AK |
11483 | { $as_echo "$as_me:$LINENO: checking for library containing getmntent" >&5 |
11484 | $as_echo_n "checking for library containing getmntent... " >&6; } | |
25fbec5b | 11485 | if test "${ac_cv_search_getmntent+set}" = set; then |
ec6a6fbe | 11486 | $as_echo_n "(cached) " >&6 |
25fbec5b AK |
11487 | else |
11488 | ac_func_search_save_LIBS=$LIBS | |
11489 | cat >conftest.$ac_ext <<_ACEOF | |
11490 | /* confdefs.h. */ | |
11491 | _ACEOF | |
11492 | cat confdefs.h >>conftest.$ac_ext | |
11493 | cat >>conftest.$ac_ext <<_ACEOF | |
11494 | /* end confdefs.h. */ | |
80992638 | 11495 | |
7a197a62 AK |
11496 | /* Override any GCC internal prototype to avoid an error. |
11497 | Use char because int might match the return type of a GCC | |
ad6254c5 | 11498 | builtin and then its argument prototype would still apply. */ |
ad6254c5 AK |
11499 | #ifdef __cplusplus |
11500 | extern "C" | |
11501 | #endif | |
25fbec5b | 11502 | char getmntent (); |
ad6254c5 AK |
11503 | int |
11504 | main () | |
11505 | { | |
25fbec5b | 11506 | return getmntent (); |
ad6254c5 AK |
11507 | ; |
11508 | return 0; | |
11509 | } | |
11510 | _ACEOF | |
25fbec5b AK |
11511 | for ac_lib in '' sun seq gen; do |
11512 | if test -z "$ac_lib"; then | |
11513 | ac_res="none required" | |
11514 | else | |
11515 | ac_res=-l$ac_lib | |
11516 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
11517 | fi | |
11518 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
11519 | if { (ac_try="$ac_link" |
11520 | case "(($ac_try" in | |
11521 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11522 | *) ac_try_echo=$ac_try;; | |
11523 | esac | |
ec6a6fbe AK |
11524 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
11525 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 11526 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 11527 | ac_status=$? |
8a2fc586 AK |
11528 | grep -v '^ *+' conftest.er1 >conftest.err |
11529 | rm -f conftest.er1 | |
11530 | cat conftest.err >&5 | |
ec6a6fbe | 11531 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
11532 | (exit $ac_status); } && { |
11533 | test -z "$ac_c_werror_flag" || | |
11534 | test ! -s conftest.err | |
ec6a6fbe AK |
11535 | } && test -s conftest$ac_exeext && { |
11536 | test "$cross_compiling" = yes || | |
11537 | $as_test_x conftest$ac_exeext | |
11538 | }; then | |
25fbec5b | 11539 | ac_cv_search_getmntent=$ac_res |
80992638 | 11540 | else |
ec6a6fbe | 11541 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11542 | sed 's/^/| /' conftest.$ac_ext >&5 |
11543 | ||
25fbec5b | 11544 | |
795ca3e5 AK |
11545 | fi |
11546 | ||
ec6a6fbe | 11547 | rm -rf conftest.dSYM |
25fbec5b AK |
11548 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
11549 | conftest$ac_exeext | |
11550 | if test "${ac_cv_search_getmntent+set}" = set; then | |
11551 | break | |
795ca3e5 | 11552 | fi |
25fbec5b AK |
11553 | done |
11554 | if test "${ac_cv_search_getmntent+set}" = set; then | |
11555 | : | |
11556 | else | |
11557 | ac_cv_search_getmntent=no | |
11558 | fi | |
11559 | rm conftest.$ac_ext | |
11560 | LIBS=$ac_func_search_save_LIBS | |
11561 | fi | |
ec6a6fbe AK |
11562 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5 |
11563 | $as_echo "$ac_cv_search_getmntent" >&6; } | |
25fbec5b AK |
11564 | ac_res=$ac_cv_search_getmntent |
11565 | if test "$ac_res" != no; then | |
11566 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
11567 | ac_cv_func_getmntent=yes | |
11568 | ||
11569 | cat >>confdefs.h <<\_ACEOF | |
9c961554 | 11570 | #define HAVE_GETMNTENT 1 |
ad6254c5 | 11571 | _ACEOF |
795ca3e5 | 11572 | |
25fbec5b AK |
11573 | else |
11574 | ac_cv_func_getmntent=no | |
795ca3e5 | 11575 | fi |
795ca3e5 AK |
11576 | |
11577 | ||
ad6254c5 AK |
11578 | # AC_FUNC_REALLOC |
11579 | ||
11580 | ||
11581 | for ac_header in sys/select.h sys/socket.h | |
11582 | do | |
ec6a6fbe | 11583 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 11584 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
11585 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11586 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 11587 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 11588 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 11589 | fi |
ec6a6fbe AK |
11590 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
11591 | $as_echo "$as_val"'` | |
11592 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11593 | $as_echo "$ac_res" >&6; } | |
795ca3e5 | 11594 | else |
ad6254c5 | 11595 | # Is the header compilable? |
ec6a6fbe AK |
11596 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
11597 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 11598 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
11599 | /* confdefs.h. */ |
11600 | _ACEOF | |
11601 | cat confdefs.h >>conftest.$ac_ext | |
11602 | cat >>conftest.$ac_ext <<_ACEOF | |
11603 | /* end confdefs.h. */ | |
11604 | $ac_includes_default | |
11605 | #include <$ac_header> | |
11606 | _ACEOF | |
11607 | rm -f conftest.$ac_objext | |
7a197a62 AK |
11608 | if { (ac_try="$ac_compile" |
11609 | case "(($ac_try" in | |
11610 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11611 | *) ac_try_echo=$ac_try;; | |
11612 | esac | |
ec6a6fbe AK |
11613 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
11614 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 11615 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 11616 | ac_status=$? |
8a2fc586 AK |
11617 | grep -v '^ *+' conftest.er1 >conftest.err |
11618 | rm -f conftest.er1 | |
11619 | cat conftest.err >&5 | |
ec6a6fbe | 11620 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
11621 | (exit $ac_status); } && { |
11622 | test -z "$ac_c_werror_flag" || | |
11623 | test ! -s conftest.err | |
11624 | } && test -s conftest.$ac_objext; then | |
ad6254c5 | 11625 | ac_header_compiler=yes |
80992638 | 11626 | else |
ec6a6fbe | 11627 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11628 | sed 's/^/| /' conftest.$ac_ext >&5 |
11629 | ||
7a197a62 | 11630 | ac_header_compiler=no |
ad6254c5 | 11631 | fi |
7a197a62 AK |
11632 | |
11633 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
11634 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
11635 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
11636 | |
11637 | # Is the header present? | |
ec6a6fbe AK |
11638 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
11639 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 11640 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
11641 | /* confdefs.h. */ |
11642 | _ACEOF | |
11643 | cat confdefs.h >>conftest.$ac_ext | |
11644 | cat >>conftest.$ac_ext <<_ACEOF | |
11645 | /* end confdefs.h. */ | |
11646 | #include <$ac_header> | |
11647 | _ACEOF | |
7a197a62 AK |
11648 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
11649 | case "(($ac_try" in | |
11650 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11651 | *) ac_try_echo=$ac_try;; | |
11652 | esac | |
ec6a6fbe AK |
11653 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
11654 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 11655 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
11656 | ac_status=$? |
11657 | grep -v '^ *+' conftest.er1 >conftest.err | |
11658 | rm -f conftest.er1 | |
11659 | cat conftest.err >&5 | |
ec6a6fbe | 11660 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
11661 | (exit $ac_status); } >/dev/null && { |
11662 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
11663 | test ! -s conftest.err | |
11664 | }; then | |
ad6254c5 AK |
11665 | ac_header_preproc=yes |
11666 | else | |
ec6a6fbe | 11667 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11668 | sed 's/^/| /' conftest.$ac_ext >&5 |
11669 | ||
11670 | ac_header_preproc=no | |
11671 | fi | |
7a197a62 | 11672 | |
ad6254c5 | 11673 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
11674 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11675 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
11676 | |
11677 | # So? What about this header? | |
8a2fc586 AK |
11678 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
11679 | yes:no: ) | |
ec6a6fbe AK |
11680 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
11681 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11682 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11683 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 11684 | ac_header_preproc=yes |
ad6254c5 | 11685 | ;; |
8a2fc586 | 11686 | no:yes:* ) |
ec6a6fbe AK |
11687 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
11688 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11689 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11690 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11691 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11692 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11693 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11694 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11695 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11696 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11697 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11698 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 11699 | |
ad6254c5 AK |
11700 | ;; |
11701 | esac | |
ec6a6fbe AK |
11702 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11703 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 11704 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 11705 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 11706 | else |
8a2fc586 | 11707 | eval "$as_ac_Header=\$ac_header_preproc" |
8106cdd5 | 11708 | fi |
ec6a6fbe AK |
11709 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
11710 | $as_echo "$as_val"'` | |
11711 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11712 | $as_echo "$ac_res" >&6; } | |
8106cdd5 | 11713 | |
795ca3e5 | 11714 | fi |
ec6a6fbe AK |
11715 | as_val=`eval 'as_val=${'$as_ac_Header'} |
11716 | $as_echo "$as_val"'` | |
11717 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 11718 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 11719 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
11720 | _ACEOF |
11721 | ||
795ca3e5 AK |
11722 | fi |
11723 | ||
ad6254c5 AK |
11724 | done |
11725 | ||
ec6a6fbe AK |
11726 | { $as_echo "$as_me:$LINENO: checking types of arguments for select" >&5 |
11727 | $as_echo_n "checking types of arguments for select... " >&6; } | |
ad6254c5 | 11728 | if test "${ac_cv_func_select_args+set}" = set; then |
ec6a6fbe | 11729 | $as_echo_n "(cached) " >&6 |
26e7f2e0 | 11730 | else |
ad6254c5 | 11731 | for ac_arg234 in 'fd_set *' 'int *' 'void *'; do |
7a197a62 | 11732 | for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do |
ad6254c5 AK |
11733 | for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do |
11734 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
11735 | /* confdefs.h. */ |
11736 | _ACEOF | |
11737 | cat confdefs.h >>conftest.$ac_ext | |
11738 | cat >>conftest.$ac_ext <<_ACEOF | |
11739 | /* end confdefs.h. */ | |
11740 | $ac_includes_default | |
25fbec5b | 11741 | #ifdef HAVE_SYS_SELECT_H |
ad6254c5 AK |
11742 | # include <sys/select.h> |
11743 | #endif | |
25fbec5b | 11744 | #ifdef HAVE_SYS_SOCKET_H |
ad6254c5 AK |
11745 | # include <sys/socket.h> |
11746 | #endif | |
11747 | ||
11748 | int | |
11749 | main () | |
11750 | { | |
11751 | extern int select ($ac_arg1, | |
8a2fc586 AK |
11752 | $ac_arg234, $ac_arg234, $ac_arg234, |
11753 | $ac_arg5); | |
ad6254c5 AK |
11754 | ; |
11755 | return 0; | |
11756 | } | |
11757 | _ACEOF | |
11758 | rm -f conftest.$ac_objext | |
7a197a62 AK |
11759 | if { (ac_try="$ac_compile" |
11760 | case "(($ac_try" in | |
11761 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11762 | *) ac_try_echo=$ac_try;; | |
11763 | esac | |
ec6a6fbe AK |
11764 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
11765 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 11766 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 11767 | ac_status=$? |
8a2fc586 AK |
11768 | grep -v '^ *+' conftest.er1 >conftest.err |
11769 | rm -f conftest.er1 | |
11770 | cat conftest.err >&5 | |
ec6a6fbe | 11771 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
11772 | (exit $ac_status); } && { |
11773 | test -z "$ac_c_werror_flag" || | |
11774 | test ! -s conftest.err | |
11775 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
11776 | ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3 |
11777 | else | |
ec6a6fbe | 11778 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11779 | sed 's/^/| /' conftest.$ac_ext >&5 |
11780 | ||
7a197a62 | 11781 | |
ad6254c5 | 11782 | fi |
7a197a62 AK |
11783 | |
11784 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 AK |
11785 | done |
11786 | done | |
11787 | done | |
11788 | # Provide a safe default value. | |
11789 | : ${ac_cv_func_select_args='int,int *,struct timeval *'} | |
11790 | ||
26e7f2e0 | 11791 | fi |
ec6a6fbe AK |
11792 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5 |
11793 | $as_echo "$ac_cv_func_select_args" >&6; } | |
ad6254c5 AK |
11794 | ac_save_IFS=$IFS; IFS=',' |
11795 | set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'` | |
11796 | IFS=$ac_save_IFS | |
11797 | shift | |
11798 | ||
11799 | cat >>confdefs.h <<_ACEOF | |
11800 | #define SELECT_TYPE_ARG1 $1 | |
11801 | _ACEOF | |
11802 | ||
11803 | ||
11804 | cat >>confdefs.h <<_ACEOF | |
11805 | #define SELECT_TYPE_ARG234 ($2) | |
11806 | _ACEOF | |
11807 | ||
11808 | ||
11809 | cat >>confdefs.h <<_ACEOF | |
11810 | #define SELECT_TYPE_ARG5 ($3) | |
11811 | _ACEOF | |
11812 | ||
80992638 | 11813 | rm -f conftest* |
80992638 | 11814 | |
8106cdd5 | 11815 | fi |
ad6254c5 | 11816 | |
ad6254c5 AK |
11817 | if test x$CLUSTER != xnone; then |
11818 | ||
11819 | ||
11820 | for ac_header in sys/socket.h sys/un.h | |
b896caa1 | 11821 | do |
ec6a6fbe | 11822 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 11823 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
11824 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11825 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 11826 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 11827 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 11828 | fi |
ec6a6fbe AK |
11829 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
11830 | $as_echo "$as_val"'` | |
11831 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11832 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
11833 | else |
11834 | # Is the header compilable? | |
ec6a6fbe AK |
11835 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
11836 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 11837 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
11838 | /* confdefs.h. */ |
11839 | _ACEOF | |
11840 | cat confdefs.h >>conftest.$ac_ext | |
11841 | cat >>conftest.$ac_ext <<_ACEOF | |
11842 | /* end confdefs.h. */ | |
11843 | $ac_includes_default | |
11844 | #include <$ac_header> | |
11845 | _ACEOF | |
11846 | rm -f conftest.$ac_objext | |
7a197a62 AK |
11847 | if { (ac_try="$ac_compile" |
11848 | case "(($ac_try" in | |
11849 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11850 | *) ac_try_echo=$ac_try;; | |
11851 | esac | |
ec6a6fbe AK |
11852 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
11853 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 11854 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 11855 | ac_status=$? |
8a2fc586 AK |
11856 | grep -v '^ *+' conftest.er1 >conftest.err |
11857 | rm -f conftest.er1 | |
11858 | cat conftest.err >&5 | |
ec6a6fbe | 11859 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
11860 | (exit $ac_status); } && { |
11861 | test -z "$ac_c_werror_flag" || | |
11862 | test ! -s conftest.err | |
11863 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
11864 | ac_header_compiler=yes |
11865 | else | |
ec6a6fbe | 11866 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11867 | sed 's/^/| /' conftest.$ac_ext >&5 |
11868 | ||
7a197a62 | 11869 | ac_header_compiler=no |
ad6254c5 | 11870 | fi |
7a197a62 AK |
11871 | |
11872 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
11873 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
11874 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
11875 | |
11876 | # Is the header present? | |
ec6a6fbe AK |
11877 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
11878 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 11879 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
11880 | /* confdefs.h. */ |
11881 | _ACEOF | |
11882 | cat confdefs.h >>conftest.$ac_ext | |
11883 | cat >>conftest.$ac_ext <<_ACEOF | |
11884 | /* end confdefs.h. */ | |
11885 | #include <$ac_header> | |
11886 | _ACEOF | |
7a197a62 AK |
11887 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
11888 | case "(($ac_try" in | |
11889 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11890 | *) ac_try_echo=$ac_try;; | |
11891 | esac | |
ec6a6fbe AK |
11892 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
11893 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 11894 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
11895 | ac_status=$? |
11896 | grep -v '^ *+' conftest.er1 >conftest.err | |
11897 | rm -f conftest.er1 | |
11898 | cat conftest.err >&5 | |
ec6a6fbe | 11899 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
11900 | (exit $ac_status); } >/dev/null && { |
11901 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
11902 | test ! -s conftest.err | |
11903 | }; then | |
ad6254c5 AK |
11904 | ac_header_preproc=yes |
11905 | else | |
ec6a6fbe | 11906 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11907 | sed 's/^/| /' conftest.$ac_ext >&5 |
11908 | ||
11909 | ac_header_preproc=no | |
11910 | fi | |
7a197a62 | 11911 | |
ad6254c5 | 11912 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
11913 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11914 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
11915 | |
11916 | # So? What about this header? | |
8a2fc586 AK |
11917 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
11918 | yes:no: ) | |
ec6a6fbe AK |
11919 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
11920 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11921 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11922 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 11923 | ac_header_preproc=yes |
ad6254c5 | 11924 | ;; |
8a2fc586 | 11925 | no:yes:* ) |
ec6a6fbe AK |
11926 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
11927 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11928 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11929 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11930 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11931 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11932 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11933 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11934 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11935 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11936 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11937 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 11938 | |
ad6254c5 AK |
11939 | ;; |
11940 | esac | |
ec6a6fbe AK |
11941 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11942 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 11943 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 11944 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 11945 | else |
8a2fc586 | 11946 | eval "$as_ac_Header=\$ac_header_preproc" |
b896caa1 | 11947 | fi |
ec6a6fbe AK |
11948 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
11949 | $as_echo "$as_val"'` | |
11950 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11951 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
11952 | |
11953 | fi | |
ec6a6fbe AK |
11954 | as_val=`eval 'as_val=${'$as_ac_Header'} |
11955 | $as_echo "$as_val"'` | |
11956 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 11957 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 11958 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
11959 | _ACEOF |
11960 | ||
80992638 | 11961 | else |
ec6a6fbe AK |
11962 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
11963 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 11964 | { (exit 1); exit 1; }; } |
b896caa1 | 11965 | fi |
ad6254c5 | 11966 | |
b896caa1 AK |
11967 | done |
11968 | ||
11969 | ||
ad6254c5 AK |
11970 | for ac_func in socket |
11971 | do | |
ec6a6fbe AK |
11972 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
11973 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
11974 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 11975 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 11976 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 11977 | else |
ad6254c5 | 11978 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
11979 | /* confdefs.h. */ |
11980 | _ACEOF | |
11981 | cat confdefs.h >>conftest.$ac_ext | |
11982 | cat >>conftest.$ac_ext <<_ACEOF | |
11983 | /* end confdefs.h. */ | |
8a2fc586 AK |
11984 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
11985 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
11986 | #define $ac_func innocuous_$ac_func | |
11987 | ||
ad6254c5 AK |
11988 | /* System header to define __stub macros and hopefully few prototypes, |
11989 | which can conflict with char $ac_func (); below. | |
11990 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11991 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 11992 | |
ad6254c5 AK |
11993 | #ifdef __STDC__ |
11994 | # include <limits.h> | |
11995 | #else | |
11996 | # include <assert.h> | |
11997 | #endif | |
8a2fc586 AK |
11998 | |
11999 | #undef $ac_func | |
12000 | ||
7a197a62 AK |
12001 | /* Override any GCC internal prototype to avoid an error. |
12002 | Use char because int might match the return type of a GCC | |
12003 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
12004 | #ifdef __cplusplus |
12005 | extern "C" | |
ad6254c5 | 12006 | #endif |
ad6254c5 AK |
12007 | char $ac_func (); |
12008 | /* The GNU C library defines this for functions which it implements | |
12009 | to always fail with ENOSYS. Some functions are actually named | |
12010 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 12011 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 12012 | choke me |
ad6254c5 AK |
12013 | #endif |
12014 | ||
12015 | int | |
12016 | main () | |
12017 | { | |
7a197a62 | 12018 | return $ac_func (); |
ad6254c5 AK |
12019 | ; |
12020 | return 0; | |
12021 | } | |
12022 | _ACEOF | |
12023 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
12024 | if { (ac_try="$ac_link" |
12025 | case "(($ac_try" in | |
12026 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12027 | *) ac_try_echo=$ac_try;; | |
12028 | esac | |
ec6a6fbe AK |
12029 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
12030 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 12031 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 12032 | ac_status=$? |
8a2fc586 AK |
12033 | grep -v '^ *+' conftest.er1 >conftest.err |
12034 | rm -f conftest.er1 | |
12035 | cat conftest.err >&5 | |
ec6a6fbe | 12036 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
12037 | (exit $ac_status); } && { |
12038 | test -z "$ac_c_werror_flag" || | |
12039 | test ! -s conftest.err | |
ec6a6fbe AK |
12040 | } && test -s conftest$ac_exeext && { |
12041 | test "$cross_compiling" = yes || | |
12042 | $as_test_x conftest$ac_exeext | |
12043 | }; then | |
ad6254c5 AK |
12044 | eval "$as_ac_var=yes" |
12045 | else | |
ec6a6fbe | 12046 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
12047 | sed 's/^/| /' conftest.$ac_ext >&5 |
12048 | ||
7a197a62 | 12049 | eval "$as_ac_var=no" |
ad6254c5 | 12050 | fi |
7a197a62 | 12051 | |
ec6a6fbe | 12052 | rm -rf conftest.dSYM |
25fbec5b | 12053 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 12054 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 12055 | fi |
ec6a6fbe AK |
12056 | ac_res=`eval 'as_val=${'$as_ac_var'} |
12057 | $as_echo "$as_val"'` | |
12058 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12059 | $as_echo "$ac_res" >&6; } | |
12060 | as_val=`eval 'as_val=${'$as_ac_var'} | |
12061 | $as_echo "$as_val"'` | |
12062 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 12063 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 12064 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
12065 | _ACEOF |
12066 | ||
12067 | else | |
ec6a6fbe AK |
12068 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
12069 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 AK |
12070 | { (exit 1); exit 1; }; } |
12071 | fi | |
12072 | done | |
12073 | ||
12074 | fi | |
12075 | ||
12076 | if test x$HAVE_LIBDL = xyes; then | |
12077 | ||
12078 | for ac_header in dlfcn.h | |
12079 | do | |
ec6a6fbe | 12080 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 12081 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
12082 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
12083 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 12084 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 12085 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 12086 | fi |
ec6a6fbe AK |
12087 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
12088 | $as_echo "$as_val"'` | |
12089 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12090 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
12091 | else |
12092 | # Is the header compilable? | |
ec6a6fbe AK |
12093 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
12094 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 12095 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
12096 | /* confdefs.h. */ |
12097 | _ACEOF | |
12098 | cat confdefs.h >>conftest.$ac_ext | |
12099 | cat >>conftest.$ac_ext <<_ACEOF | |
12100 | /* end confdefs.h. */ | |
12101 | $ac_includes_default | |
12102 | #include <$ac_header> | |
12103 | _ACEOF | |
12104 | rm -f conftest.$ac_objext | |
7a197a62 AK |
12105 | if { (ac_try="$ac_compile" |
12106 | case "(($ac_try" in | |
12107 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12108 | *) ac_try_echo=$ac_try;; | |
12109 | esac | |
ec6a6fbe AK |
12110 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
12111 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 12112 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 12113 | ac_status=$? |
8a2fc586 AK |
12114 | grep -v '^ *+' conftest.er1 >conftest.err |
12115 | rm -f conftest.er1 | |
12116 | cat conftest.err >&5 | |
ec6a6fbe | 12117 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
12118 | (exit $ac_status); } && { |
12119 | test -z "$ac_c_werror_flag" || | |
12120 | test ! -s conftest.err | |
12121 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
12122 | ac_header_compiler=yes |
12123 | else | |
ec6a6fbe | 12124 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
12125 | sed 's/^/| /' conftest.$ac_ext >&5 |
12126 | ||
7a197a62 | 12127 | ac_header_compiler=no |
ad6254c5 | 12128 | fi |
7a197a62 AK |
12129 | |
12130 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
12131 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
12132 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
12133 | |
12134 | # Is the header present? | |
ec6a6fbe AK |
12135 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
12136 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 12137 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
12138 | /* confdefs.h. */ |
12139 | _ACEOF | |
12140 | cat confdefs.h >>conftest.$ac_ext | |
12141 | cat >>conftest.$ac_ext <<_ACEOF | |
12142 | /* end confdefs.h. */ | |
12143 | #include <$ac_header> | |
12144 | _ACEOF | |
7a197a62 AK |
12145 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
12146 | case "(($ac_try" in | |
12147 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12148 | *) ac_try_echo=$ac_try;; | |
12149 | esac | |
ec6a6fbe AK |
12150 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
12151 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 12152 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
12153 | ac_status=$? |
12154 | grep -v '^ *+' conftest.er1 >conftest.err | |
12155 | rm -f conftest.er1 | |
12156 | cat conftest.err >&5 | |
ec6a6fbe | 12157 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
12158 | (exit $ac_status); } >/dev/null && { |
12159 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
12160 | test ! -s conftest.err | |
12161 | }; then | |
ad6254c5 AK |
12162 | ac_header_preproc=yes |
12163 | else | |
ec6a6fbe | 12164 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
12165 | sed 's/^/| /' conftest.$ac_ext >&5 |
12166 | ||
12167 | ac_header_preproc=no | |
12168 | fi | |
7a197a62 | 12169 | |
ad6254c5 | 12170 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
12171 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
12172 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
12173 | |
12174 | # So? What about this header? | |
8a2fc586 AK |
12175 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
12176 | yes:no: ) | |
ec6a6fbe AK |
12177 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
12178 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12179 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
12180 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 12181 | ac_header_preproc=yes |
ad6254c5 | 12182 | ;; |
8a2fc586 | 12183 | no:yes:* ) |
ec6a6fbe AK |
12184 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
12185 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12186 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12187 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12188 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12189 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12190 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12191 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
12192 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12193 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12194 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
12195 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 12196 | |
ad6254c5 AK |
12197 | ;; |
12198 | esac | |
ec6a6fbe AK |
12199 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
12200 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 12201 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 12202 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 12203 | else |
8a2fc586 | 12204 | eval "$as_ac_Header=\$ac_header_preproc" |
795ca3e5 | 12205 | fi |
ec6a6fbe AK |
12206 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
12207 | $as_echo "$as_val"'` | |
12208 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12209 | $as_echo "$ac_res" >&6; } | |
80992638 | 12210 | |
8106cdd5 | 12211 | fi |
ec6a6fbe AK |
12212 | as_val=`eval 'as_val=${'$as_ac_Header'} |
12213 | $as_echo "$as_val"'` | |
12214 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 12215 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 12216 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 12217 | _ACEOF |
795ca3e5 AK |
12218 | |
12219 | else | |
ec6a6fbe AK |
12220 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
12221 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 12222 | { (exit 1); exit 1; }; } |
795ca3e5 AK |
12223 | fi |
12224 | ||
ad6254c5 | 12225 | done |
80992638 | 12226 | |
ad6254c5 | 12227 | fi |
80992638 | 12228 | |
ad6254c5 | 12229 | if test x$INTL = xyes; then |
83912faa | 12230 | |
ad6254c5 AK |
12231 | for ac_header in libintl.h |
12232 | do | |
ec6a6fbe | 12233 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 12234 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
12235 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
12236 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 12237 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 12238 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 12239 | fi |
ec6a6fbe AK |
12240 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
12241 | $as_echo "$as_val"'` | |
12242 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12243 | $as_echo "$ac_res" >&6; } | |
83912faa | 12244 | else |
ad6254c5 | 12245 | # Is the header compilable? |
ec6a6fbe AK |
12246 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
12247 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 12248 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
12249 | /* confdefs.h. */ |
12250 | _ACEOF | |
12251 | cat confdefs.h >>conftest.$ac_ext | |
12252 | cat >>conftest.$ac_ext <<_ACEOF | |
12253 | /* end confdefs.h. */ | |
12254 | $ac_includes_default | |
12255 | #include <$ac_header> | |
12256 | _ACEOF | |
12257 | rm -f conftest.$ac_objext | |
7a197a62 AK |
12258 | if { (ac_try="$ac_compile" |
12259 | case "(($ac_try" in | |
12260 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12261 | *) ac_try_echo=$ac_try;; | |
12262 | esac | |
ec6a6fbe AK |
12263 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
12264 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 12265 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 12266 | ac_status=$? |
8a2fc586 AK |
12267 | grep -v '^ *+' conftest.er1 >conftest.err |
12268 | rm -f conftest.er1 | |
12269 | cat conftest.err >&5 | |
ec6a6fbe | 12270 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
12271 | (exit $ac_status); } && { |
12272 | test -z "$ac_c_werror_flag" || | |
12273 | test ! -s conftest.err | |
12274 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
12275 | ac_header_compiler=yes |
12276 | else | |
ec6a6fbe | 12277 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
12278 | sed 's/^/| /' conftest.$ac_ext >&5 |
12279 | ||
7a197a62 | 12280 | ac_header_compiler=no |
ad6254c5 | 12281 | fi |
7a197a62 AK |
12282 | |
12283 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
12284 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
12285 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
12286 | |
12287 | # Is the header present? | |
ec6a6fbe AK |
12288 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
12289 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 12290 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
12291 | /* confdefs.h. */ |
12292 | _ACEOF | |
12293 | cat confdefs.h >>conftest.$ac_ext | |
12294 | cat >>conftest.$ac_ext <<_ACEOF | |
12295 | /* end confdefs.h. */ | |
12296 | #include <$ac_header> | |
12297 | _ACEOF | |
7a197a62 AK |
12298 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
12299 | case "(($ac_try" in | |
12300 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12301 | *) ac_try_echo=$ac_try;; | |
12302 | esac | |
ec6a6fbe AK |
12303 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
12304 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 12305 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
12306 | ac_status=$? |
12307 | grep -v '^ *+' conftest.er1 >conftest.err | |
12308 | rm -f conftest.er1 | |
12309 | cat conftest.err >&5 | |
ec6a6fbe | 12310 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
12311 | (exit $ac_status); } >/dev/null && { |
12312 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
12313 | test ! -s conftest.err | |
12314 | }; then | |
ad6254c5 AK |
12315 | ac_header_preproc=yes |
12316 | else | |
ec6a6fbe | 12317 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
12318 | sed 's/^/| /' conftest.$ac_ext >&5 |
12319 | ||
12320 | ac_header_preproc=no | |
12321 | fi | |
7a197a62 | 12322 | |
ad6254c5 | 12323 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
12324 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
12325 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
12326 | |
12327 | # So? What about this header? | |
8a2fc586 AK |
12328 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
12329 | yes:no: ) | |
ec6a6fbe AK |
12330 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
12331 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12332 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
12333 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 12334 | ac_header_preproc=yes |
ad6254c5 | 12335 | ;; |
8a2fc586 | 12336 | no:yes:* ) |
ec6a6fbe AK |
12337 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
12338 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12339 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12340 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12341 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12342 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12343 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12344 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
12345 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12346 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12347 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
12348 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 12349 | |
ad6254c5 AK |
12350 | ;; |
12351 | esac | |
ec6a6fbe AK |
12352 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
12353 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 12354 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 12355 | $as_echo_n "(cached) " >&6 |
80992638 | 12356 | else |
8a2fc586 | 12357 | eval "$as_ac_Header=\$ac_header_preproc" |
83912faa | 12358 | fi |
ec6a6fbe AK |
12359 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
12360 | $as_echo "$as_val"'` | |
12361 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12362 | $as_echo "$ac_res" >&6; } | |
83912faa | 12363 | |
69792976 | 12364 | fi |
ec6a6fbe AK |
12365 | as_val=`eval 'as_val=${'$as_ac_Header'} |
12366 | $as_echo "$as_val"'` | |
12367 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 12368 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 12369 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 12370 | _ACEOF |
69792976 | 12371 | |
69792976 | 12372 | else |
ec6a6fbe AK |
12373 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
12374 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 12375 | { (exit 1); exit 1; }; } |
80992638 AK |
12376 | fi |
12377 | ||
ad6254c5 | 12378 | done |
69792976 | 12379 | |
ad6254c5 AK |
12380 | fi |
12381 | ||
ad6254c5 AK |
12382 | if test x$HAVE_SELINUX = xyes; then |
12383 | ||
12384 | for ac_header in selinux/selinux.h | |
12385 | do | |
ec6a6fbe | 12386 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 12387 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
12388 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
12389 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 12390 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 12391 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 12392 | fi |
ec6a6fbe AK |
12393 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
12394 | $as_echo "$as_val"'` | |
12395 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12396 | $as_echo "$ac_res" >&6; } | |
4a7f3eb2 | 12397 | else |
ad6254c5 | 12398 | # Is the header compilable? |
ec6a6fbe AK |
12399 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
12400 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 12401 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
12402 | /* confdefs.h. */ |
12403 | _ACEOF | |
12404 | cat confdefs.h >>conftest.$ac_ext | |
12405 | cat >>conftest.$ac_ext <<_ACEOF | |
12406 | /* end confdefs.h. */ | |
12407 | $ac_includes_default | |
12408 | #include <$ac_header> | |
12409 | _ACEOF | |
12410 | rm -f conftest.$ac_objext | |
7a197a62 AK |
12411 | if { (ac_try="$ac_compile" |
12412 | case "(($ac_try" in | |
12413 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12414 | *) ac_try_echo=$ac_try;; | |
12415 | esac | |
ec6a6fbe AK |
12416 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
12417 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 12418 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 12419 | ac_status=$? |
8a2fc586 AK |
12420 | grep -v '^ *+' conftest.er1 >conftest.err |
12421 | rm -f conftest.er1 | |
12422 | cat conftest.err >&5 | |
ec6a6fbe | 12423 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
12424 | (exit $ac_status); } && { |
12425 | test -z "$ac_c_werror_flag" || | |
12426 | test ! -s conftest.err | |
12427 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
12428 | ac_header_compiler=yes |
12429 | else | |
ec6a6fbe | 12430 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
12431 | sed 's/^/| /' conftest.$ac_ext >&5 |
12432 | ||
7a197a62 | 12433 | ac_header_compiler=no |
ad6254c5 | 12434 | fi |
7a197a62 AK |
12435 | |
12436 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
12437 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
12438 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
12439 | |
12440 | # Is the header present? | |
ec6a6fbe AK |
12441 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
12442 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 12443 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
12444 | /* confdefs.h. */ |
12445 | _ACEOF | |
12446 | cat confdefs.h >>conftest.$ac_ext | |
12447 | cat >>conftest.$ac_ext <<_ACEOF | |
12448 | /* end confdefs.h. */ | |
12449 | #include <$ac_header> | |
12450 | _ACEOF | |
7a197a62 AK |
12451 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
12452 | case "(($ac_try" in | |
12453 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12454 | *) ac_try_echo=$ac_try;; | |
12455 | esac | |
ec6a6fbe AK |
12456 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
12457 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 12458 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
12459 | ac_status=$? |
12460 | grep -v '^ *+' conftest.er1 >conftest.err | |
12461 | rm -f conftest.er1 | |
12462 | cat conftest.err >&5 | |
ec6a6fbe | 12463 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
12464 | (exit $ac_status); } >/dev/null && { |
12465 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
12466 | test ! -s conftest.err | |
12467 | }; then | |
ad6254c5 AK |
12468 | ac_header_preproc=yes |
12469 | else | |
ec6a6fbe | 12470 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
12471 | sed 's/^/| /' conftest.$ac_ext >&5 |
12472 | ||
12473 | ac_header_preproc=no | |
12474 | fi | |
7a197a62 | 12475 | |
ad6254c5 | 12476 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
12477 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
12478 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
12479 | |
12480 | # So? What about this header? | |
8a2fc586 AK |
12481 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
12482 | yes:no: ) | |
ec6a6fbe AK |
12483 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
12484 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12485 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
12486 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 12487 | ac_header_preproc=yes |
ad6254c5 | 12488 | ;; |
8a2fc586 | 12489 | no:yes:* ) |
ec6a6fbe AK |
12490 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
12491 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12492 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12493 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12494 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12495 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12496 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12497 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
12498 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12499 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12500 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
12501 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 12502 | |
ad6254c5 AK |
12503 | ;; |
12504 | esac | |
ec6a6fbe AK |
12505 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
12506 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 12507 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 12508 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 12509 | else |
8a2fc586 | 12510 | eval "$as_ac_Header=\$ac_header_preproc" |
80992638 | 12511 | fi |
ec6a6fbe AK |
12512 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
12513 | $as_echo "$as_val"'` | |
12514 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12515 | $as_echo "$ac_res" >&6; } | |
4a7f3eb2 | 12516 | |
ad6254c5 | 12517 | fi |
ec6a6fbe AK |
12518 | as_val=`eval 'as_val=${'$as_ac_Header'} |
12519 | $as_echo "$as_val"'` | |
12520 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 12521 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 12522 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 12523 | _ACEOF |
0a62c911 | 12524 | |
0a62c911 | 12525 | else |
ec6a6fbe AK |
12526 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
12527 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 12528 | { (exit 1); exit 1; }; } |
80992638 AK |
12529 | fi |
12530 | ||
ad6254c5 | 12531 | done |
0a62c911 | 12532 | |
ad6254c5 | 12533 | fi |
0a62c911 | 12534 | |
a5f46f6a AK |
12535 | if test x$UDEV_SYNC = xyes; then |
12536 | ||
12537 | ||
12538 | for ac_header in sys/ipc.h sys/sem.h | |
12539 | do | |
12540 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12541 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
12542 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12543 | $as_echo_n "checking for $ac_header... " >&6; } | |
12544 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
12545 | $as_echo_n "(cached) " >&6 | |
12546 | fi | |
12547 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
12548 | $as_echo "$as_val"'` | |
12549 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12550 | $as_echo "$ac_res" >&6; } | |
12551 | else | |
12552 | # Is the header compilable? | |
12553 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12554 | $as_echo_n "checking $ac_header usability... " >&6; } | |
12555 | cat >conftest.$ac_ext <<_ACEOF | |
12556 | /* confdefs.h. */ | |
12557 | _ACEOF | |
12558 | cat confdefs.h >>conftest.$ac_ext | |
12559 | cat >>conftest.$ac_ext <<_ACEOF | |
12560 | /* end confdefs.h. */ | |
12561 | $ac_includes_default | |
12562 | #include <$ac_header> | |
12563 | _ACEOF | |
12564 | rm -f conftest.$ac_objext | |
12565 | if { (ac_try="$ac_compile" | |
12566 | case "(($ac_try" in | |
12567 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12568 | *) ac_try_echo=$ac_try;; | |
12569 | esac | |
12570 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12571 | $as_echo "$ac_try_echo") >&5 | |
12572 | (eval "$ac_compile") 2>conftest.er1 | |
12573 | ac_status=$? | |
12574 | grep -v '^ *+' conftest.er1 >conftest.err | |
12575 | rm -f conftest.er1 | |
12576 | cat conftest.err >&5 | |
12577 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12578 | (exit $ac_status); } && { | |
12579 | test -z "$ac_c_werror_flag" || | |
12580 | test ! -s conftest.err | |
12581 | } && test -s conftest.$ac_objext; then | |
12582 | ac_header_compiler=yes | |
12583 | else | |
12584 | $as_echo "$as_me: failed program was:" >&5 | |
12585 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12586 | ||
12587 | ac_header_compiler=no | |
12588 | fi | |
12589 | ||
12590 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12591 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12592 | $as_echo "$ac_header_compiler" >&6; } | |
12593 | ||
12594 | # Is the header present? | |
12595 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12596 | $as_echo_n "checking $ac_header presence... " >&6; } | |
12597 | cat >conftest.$ac_ext <<_ACEOF | |
12598 | /* confdefs.h. */ | |
12599 | _ACEOF | |
12600 | cat confdefs.h >>conftest.$ac_ext | |
12601 | cat >>conftest.$ac_ext <<_ACEOF | |
12602 | /* end confdefs.h. */ | |
12603 | #include <$ac_header> | |
12604 | _ACEOF | |
12605 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
12606 | case "(($ac_try" in | |
12607 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12608 | *) ac_try_echo=$ac_try;; | |
12609 | esac | |
12610 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12611 | $as_echo "$ac_try_echo") >&5 | |
12612 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
12613 | ac_status=$? | |
12614 | grep -v '^ *+' conftest.er1 >conftest.err | |
12615 | rm -f conftest.er1 | |
12616 | cat conftest.err >&5 | |
12617 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12618 | (exit $ac_status); } >/dev/null && { | |
12619 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
12620 | test ! -s conftest.err | |
12621 | }; then | |
12622 | ac_header_preproc=yes | |
12623 | else | |
12624 | $as_echo "$as_me: failed program was:" >&5 | |
12625 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12626 | ||
12627 | ac_header_preproc=no | |
12628 | fi | |
12629 | ||
12630 | rm -f conftest.err conftest.$ac_ext | |
12631 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12632 | $as_echo "$ac_header_preproc" >&6; } | |
12633 | ||
12634 | # So? What about this header? | |
12635 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
12636 | yes:no: ) | |
12637 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12638 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12639 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
12640 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
12641 | ac_header_preproc=yes | |
12642 | ;; | |
12643 | no:yes:* ) | |
12644 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12645 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12646 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12647 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12648 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12649 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12650 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12651 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
12652 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12653 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12654 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
12655 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
12656 | ||
12657 | ;; | |
12658 | esac | |
12659 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12660 | $as_echo_n "checking for $ac_header... " >&6; } | |
12661 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
12662 | $as_echo_n "(cached) " >&6 | |
12663 | else | |
12664 | eval "$as_ac_Header=\$ac_header_preproc" | |
12665 | fi | |
12666 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
12667 | $as_echo "$as_val"'` | |
12668 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12669 | $as_echo "$ac_res" >&6; } | |
12670 | ||
12671 | fi | |
12672 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
12673 | $as_echo "$as_val"'` | |
12674 | if test "x$as_val" = x""yes; then | |
12675 | cat >>confdefs.h <<_ACEOF | |
12676 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12677 | _ACEOF | |
12678 | ||
12679 | else | |
12680 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 | |
12681 | $as_echo "$as_me: error: bailing out" >&2;} | |
12682 | { (exit 1); exit 1; }; } | |
12683 | fi | |
12684 | ||
12685 | done | |
12686 | ||
12687 | fi | |
12688 | ||
a653923f AK |
12689 | ################################################################################ |
12690 | # Extract the first word of "modprobe", so it can be a program name with args. | |
12691 | set dummy modprobe; ac_word=$2 | |
ec6a6fbe AK |
12692 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
12693 | $as_echo_n "checking for $ac_word... " >&6; } | |
72b2cb61 | 12694 | if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then |
ec6a6fbe | 12695 | $as_echo_n "(cached) " >&6 |
72b2cb61 AK |
12696 | else |
12697 | case $MODPROBE_CMD in | |
12698 | [\\/]* | ?:[\\/]*) | |
12699 | ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path. | |
12700 | ;; | |
12701 | *) | |
12702 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12703 | for as_dir in $PATH | |
12704 | do | |
12705 | IFS=$as_save_IFS | |
12706 | test -z "$as_dir" && as_dir=. | |
12707 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 12708 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
72b2cb61 | 12709 | ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext" |
ec6a6fbe | 12710 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
72b2cb61 AK |
12711 | break 2 |
12712 | fi | |
12713 | done | |
12714 | done | |
7a197a62 | 12715 | IFS=$as_save_IFS |
72b2cb61 AK |
12716 | |
12717 | ;; | |
12718 | esac | |
12719 | fi | |
12720 | MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD | |
72b2cb61 | 12721 | if test -n "$MODPROBE_CMD"; then |
ec6a6fbe AK |
12722 | { $as_echo "$as_me:$LINENO: result: $MODPROBE_CMD" >&5 |
12723 | $as_echo "$MODPROBE_CMD" >&6; } | |
72b2cb61 | 12724 | else |
ec6a6fbe AK |
12725 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
12726 | $as_echo "no" >&6; } | |
72b2cb61 AK |
12727 | fi |
12728 | ||
a653923f | 12729 | |
7a197a62 | 12730 | |
a653923f | 12731 | if test x$MODPROBE_CMD != x; then |
72b2cb61 AK |
12732 | |
12733 | cat >>confdefs.h <<_ACEOF | |
12734 | #define MODPROBE_CMD "$MODPROBE_CMD" | |
12735 | _ACEOF | |
12736 | ||
a653923f AK |
12737 | fi |
12738 | ||
80992638 | 12739 | ################################################################################ |
93bd259b AK |
12740 | |
12741 | ||
12742 | if test "$BUILD_DMEVENTD" = yes; then | |
12743 | ||
12744 | # Check whether --with-dmeventd-pidfile was given. | |
12745 | if test "${with_dmeventd_pidfile+set}" = set; then | |
12746 | withval=$with_dmeventd_pidfile; cat >>confdefs.h <<_ACEOF | |
12747 | #define DMEVENTD_PIDFILE "$withval" | |
12748 | _ACEOF | |
12749 | ||
12750 | else | |
12751 | cat >>confdefs.h <<_ACEOF | |
12752 | #define DMEVENTD_PIDFILE "/var/run/dmeventd.pid" | |
12753 | _ACEOF | |
12754 | ||
12755 | fi | |
12756 | ||
12757 | fi | |
12758 | ||
12759 | ||
12760 | ||
12761 | if test "$BUILD_DMEVENTD" = yes; then | |
12762 | dmeventd_prefix="$exec_prefix" | |
12763 | if test "x$dmeventd_prefix" = "xNONE"; then | |
12764 | dmeventd_prefix="$prefix" | |
12765 | fi | |
12766 | if test "x$dmeventd_prefix" = "xNONE"; then | |
12767 | dmeventd_prefix="" | |
12768 | fi | |
12769 | ||
12770 | # Check whether --with-dmeventd-path was given. | |
12771 | if test "${with_dmeventd_path+set}" = set; then | |
12772 | withval=$with_dmeventd_path; cat >>confdefs.h <<_ACEOF | |
12773 | #define DMEVENTD_PATH "$withval" | |
12774 | _ACEOF | |
12775 | ||
12776 | else | |
12777 | cat >>confdefs.h <<_ACEOF | |
12778 | #define DMEVENTD_PATH "$dmeventd_prefix/sbin/dmeventd" | |
12779 | _ACEOF | |
12780 | ||
12781 | fi | |
12782 | ||
12783 | fi | |
12784 | ||
12785 | ################################################################################ | |
ec6a6fbe AK |
12786 | { $as_echo "$as_me:$LINENO: checking for kernel interface choice" >&5 |
12787 | $as_echo_n "checking for kernel interface choice... " >&6; } | |
93bd259b AK |
12788 | |
12789 | # Check whether --with-interface was given. | |
12790 | if test "${with_interface+set}" = set; then | |
12791 | withval=$with_interface; interface="$withval" | |
12792 | else | |
12793 | interface=ioctl | |
12794 | fi | |
12795 | ||
12796 | if [ "x$interface" != xioctl ]; | |
12797 | then | |
ec6a6fbe AK |
12798 | { { $as_echo "$as_me:$LINENO: error: --with-interface=ioctl required. fs no longer supported." >&5 |
12799 | $as_echo "$as_me: error: --with-interface=ioctl required. fs no longer supported." >&2;} | |
93bd259b AK |
12800 | { (exit 1); exit 1; }; } |
12801 | fi | |
ec6a6fbe AK |
12802 | { $as_echo "$as_me:$LINENO: result: $interface" >&5 |
12803 | $as_echo "$interface" >&6; } | |
93bd259b AK |
12804 | |
12805 | ################################################################################ | |
2c44337b | 12806 | DM_LIB_VERSION="\"`cat VERSION_DM 2>/dev/null || echo Unknown`\"" |
24bbc4d7 AK |
12807 | |
12808 | cat >>confdefs.h <<_ACEOF | |
12809 | #define DM_LIB_VERSION $DM_LIB_VERSION | |
12810 | _ACEOF | |
12811 | ||
12812 | ||
ec6a6fbe | 12813 | DM_LIB_PATCHLEVEL=`cat VERSION_DM | $AWK -F '[-. ]' '{printf "%s.%s.%s",$1,$2,$3}'` |
7e3fe830 | 12814 | |
d0191583 | 12815 | LVM_VERSION="\"`cat VERSION 2>/dev/null || echo Unknown`\"" |
fae0c576 | 12816 | |
ec6a6fbe | 12817 | VER=`cat VERSION` |
bf456146 | 12818 | LVM_RELEASE_DATE="\"`echo $VER | $SED 's/.* (//;s/).*//'`\"" |
ec6a6fbe AK |
12819 | VER=`echo "$VER" | $AWK '{print $1}'` |
12820 | LVM_RELEASE="\"`echo "$VER" | $AWK -F '-' '{print $2}'`\"" | |
12821 | VER=`echo "$VER" | $AWK -F '-' '{print $1}'` | |
12822 | LVM_MAJOR=`echo "$VER" | $AWK -F '.' '{print $1}'` | |
12823 | LVM_MINOR=`echo "$VER" | $AWK -F '.' '{print $2}'` | |
bf456146 AK |
12824 | LVM_PATCHLEVEL=`echo "$VER" | $AWK -F '[(.]' '{print $3}'` |
12825 | LVM_LIBAPI=`echo "$VER" | $AWK -F '[()]' '{print $2}'` | |
ec6a6fbe | 12826 | |
80992638 | 12827 | ################################################################################ |
fae0c576 | 12828 | |
83912faa | 12829 | |
795ca3e5 AK |
12830 | |
12831 | ||
12832 | ||
12833 | ||
12834 | ||
12835 | ||
5a52dca9 | 12836 | |
8ef2b021 | 12837 | |
199e490e | 12838 | |
69792976 AK |
12839 | |
12840 | ||
12841 | ||
d0191583 | 12842 | |
69792976 | 12843 | |
8106cdd5 AK |
12844 | |
12845 | ||
12846 | ||
12847 | ||
12848 | ||
d68a82ec | 12849 | |
036f273a | 12850 | |
7d1552c9 | 12851 | |
8106cdd5 | 12852 | |
0a62c911 | 12853 | |
8106cdd5 | 12854 | |
4a7f3eb2 | 12855 | |
4922197a AK |
12856 | |
12857 | ||
d8ac0fbc | 12858 | |
1a9ea74d | 12859 | |
8a2fc586 AK |
12860 | |
12861 | ||
d0191583 | 12862 | |
93bd259b AK |
12863 | |
12864 | ||
12865 | ||
12866 | ||
12867 | ||
d0191583 JM |
12868 | |
12869 | ||
12870 | ||
12871 | ||
12872 | ||
8a2fc586 | 12873 | |
8ce0cbda | 12874 | |
8b1a3214 | 12875 | |
ec6a6fbe AK |
12876 | |
12877 | ||
12878 | ||
12879 | ||
e2997b73 AK |
12880 | |
12881 | ||
12882 | ||
12883 | ||
12884 | ||
12885 | ||
ec6a6fbe | 12886 | |
33f732c5 | 12887 | |
66e941e8 | 12888 | |
d3c8211f | 12889 | |
7e3fe830 | 12890 | |
a5f46f6a AK |
12891 | |
12892 | ||
12893 | ||
572fefeb | 12894 | |
bf456146 | 12895 | |
68f2de6d AK |
12896 | |
12897 | ||
80992638 | 12898 | ################################################################################ |
a5f46f6a | 12899 | ac_config_files="$ac_config_files Makefile make.tmpl daemons/Makefile daemons/clvmd/Makefile daemons/dmeventd/Makefile daemons/dmeventd/libdevmapper-event.pc daemons/dmeventd/plugins/Makefile daemons/dmeventd/plugins/mirror/Makefile daemons/dmeventd/plugins/snapshot/Makefile doc/Makefile include/Makefile lib/Makefile lib/format1/Makefile lib/format_pool/Makefile lib/locking/Makefile lib/mirror/Makefile lib/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/Makefile test/Makefile test/api/Makefile tools/Makefile udev/Makefile" |
7a197a62 | 12900 | |
ad6254c5 | 12901 | cat >confcache <<\_ACEOF |
795ca3e5 AK |
12902 | # This file is a shell script that caches the results of configure |
12903 | # tests run on this system so they can be shared between configure | |
ad6254c5 AK |
12904 | # scripts and configure runs, see configure's option --config-cache. |
12905 | # It is not useful on other systems. If it contains results you don't | |
12906 | # want to keep, you may remove or edit it. | |
795ca3e5 | 12907 | # |
ad6254c5 AK |
12908 | # config.status only pays attention to the cache file if you give it |
12909 | # the --recheck option to rerun configure. | |
795ca3e5 | 12910 | # |
ad6254c5 AK |
12911 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
12912 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
12913 | # following values. | |
12914 | ||
12915 | _ACEOF | |
12916 | ||
795ca3e5 AK |
12917 | # The following way of writing the cache mishandles newlines in values, |
12918 | # but we know of no workaround that is simple, portable, and efficient. | |
7a197a62 | 12919 | # So, we kill variables containing newlines. |
795ca3e5 AK |
12920 | # Ultrix sh set writes to stderr and can't be redirected directly, |
12921 | # and sets the high bit in the cache file unless we assign to the vars. | |
7a197a62 AK |
12922 | ( |
12923 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
12924 | eval ac_val=\$$ac_var | |
12925 | case $ac_val in #( | |
12926 | *${as_nl}*) | |
12927 | case $ac_var in #( | |
ec6a6fbe AK |
12928 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 |
12929 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
7a197a62 AK |
12930 | esac |
12931 | case $ac_var in #( | |
12932 | _ | IFS | as_nl) ;; #( | |
ec6a6fbe | 12933 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
7a197a62 AK |
12934 | *) $as_unset $ac_var ;; |
12935 | esac ;; | |
12936 | esac | |
12937 | done | |
12938 | ||
ad6254c5 | 12939 | (set) 2>&1 | |
7a197a62 AK |
12940 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
12941 | *${as_nl}ac_space=\ *) | |
ad6254c5 AK |
12942 | # `set' does not quote correctly, so add quotes (double-quote |
12943 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
12944 | sed -n \ | |
8a2fc586 AK |
12945 | "s/'/'\\\\''/g; |
12946 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
7a197a62 | 12947 | ;; #( |
ad6254c5 AK |
12948 | *) |
12949 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
7a197a62 | 12950 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
ad6254c5 | 12951 | ;; |
7a197a62 AK |
12952 | esac | |
12953 | sort | |
12954 | ) | | |
ad6254c5 | 12955 | sed ' |
7a197a62 | 12956 | /^ac_cv_env_/b end |
ad6254c5 | 12957 | t clear |
7a197a62 | 12958 | :clear |
ad6254c5 AK |
12959 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
12960 | t end | |
7a197a62 AK |
12961 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
12962 | :end' >>confcache | |
12963 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
12964 | if test -w "$cache_file"; then | |
12965 | test "x$cache_file" != "x/dev/null" && | |
ec6a6fbe AK |
12966 | { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
12967 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
ad6254c5 | 12968 | cat confcache >$cache_file |
795ca3e5 | 12969 | else |
ec6a6fbe AK |
12970 | { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
12971 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
795ca3e5 AK |
12972 | fi |
12973 | fi | |
12974 | rm -f confcache | |
12975 | ||
795ca3e5 AK |
12976 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
12977 | # Let make expand exec_prefix. | |
12978 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
12979 | ||
72b2cb61 | 12980 | DEFS=-DHAVE_CONFIG_H |
ad6254c5 AK |
12981 | |
12982 | ac_libobjs= | |
12983 | ac_ltlibobjs= | |
12984 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
12985 | # 1. Remove the extension, and $U if already installed. | |
7a197a62 | 12986 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
ec6a6fbe | 12987 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
7a197a62 AK |
12988 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
12989 | # will be set to the directory where LIBOBJS objects are built. | |
12990 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
12991 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' | |
ad6254c5 AK |
12992 | done |
12993 | LIBOBJS=$ac_libobjs | |
80992638 | 12994 | |
ad6254c5 AK |
12995 | LTLIBOBJS=$ac_ltlibobjs |
12996 | ||
12997 | ||
12998 | ||
12999 | : ${CONFIG_STATUS=./config.status} | |
ec6a6fbe | 13000 | ac_write_fail=0 |
ad6254c5 AK |
13001 | ac_clean_files_save=$ac_clean_files |
13002 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
ec6a6fbe AK |
13003 | { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
13004 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
13005 | cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
ad6254c5 AK |
13006 | #! $SHELL |
13007 | # Generated by $as_me. | |
795ca3e5 | 13008 | # Run this file to recreate the current configuration. |
795ca3e5 | 13009 | # Compiler output produced by configure, useful for debugging |
ad6254c5 AK |
13010 | # configure, is in config.log if it exists. |
13011 | ||
13012 | debug=false | |
13013 | ac_cs_recheck=false | |
13014 | ac_cs_silent=false | |
13015 | SHELL=\${CONFIG_SHELL-$SHELL} | |
13016 | _ACEOF | |
13017 | ||
ec6a6fbe | 13018 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
ad6254c5 AK |
13019 | ## --------------------- ## |
13020 | ## M4sh Initialization. ## | |
13021 | ## --------------------- ## | |
13022 | ||
25fbec5b AK |
13023 | # Be more Bourne compatible |
13024 | DUALCASE=1; export DUALCASE # for MKS sh | |
ad6254c5 AK |
13025 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
13026 | emulate sh | |
13027 | NULLCMD=: | |
ec6a6fbe | 13028 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
ad6254c5 AK |
13029 | # is contrary to our usage. Disable this feature. |
13030 | alias -g '${1+"$@"}'='"$@"' | |
7a197a62 AK |
13031 | setopt NO_GLOB_SUBST |
13032 | else | |
25fbec5b AK |
13033 | case `(set -o) 2>/dev/null` in |
13034 | *posix*) set -o posix ;; | |
13035 | esac | |
13036 | ||
7a197a62 | 13037 | fi |
25fbec5b AK |
13038 | |
13039 | ||
7a197a62 AK |
13040 | |
13041 | ||
13042 | # PATH needs CR | |
13043 | # Avoid depending upon Character Ranges. | |
13044 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
13045 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
13046 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
13047 | as_cr_digits='0123456789' | |
13048 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
13049 | ||
ec6a6fbe AK |
13050 | as_nl=' |
13051 | ' | |
13052 | export as_nl | |
13053 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
13054 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
13055 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
13056 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
13057 | if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
13058 | as_echo='printf %s\n' | |
13059 | as_echo_n='printf %s' | |
13060 | else | |
13061 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
13062 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
13063 | as_echo_n='/usr/ucb/echo -n' | |
68f2de6d | 13064 | else |
ec6a6fbe AK |
13065 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
13066 | as_echo_n_body='eval | |
13067 | arg=$1; | |
13068 | case $arg in | |
13069 | *"$as_nl"*) | |
13070 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
13071 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
13072 | esac; | |
13073 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
13074 | ' | |
13075 | export as_echo_n_body | |
13076 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
68f2de6d | 13077 | fi |
ec6a6fbe AK |
13078 | export as_echo_body |
13079 | as_echo='sh -c $as_echo_body as_echo' | |
13080 | fi | |
13081 | ||
13082 | # The user is always right. | |
13083 | if test "${PATH_SEPARATOR+set}" != set; then | |
13084 | PATH_SEPARATOR=: | |
13085 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
13086 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
13087 | PATH_SEPARATOR=';' | |
13088 | } | |
ad6254c5 AK |
13089 | fi |
13090 | ||
13091 | # Support unset when possible. | |
8a2fc586 | 13092 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
ad6254c5 AK |
13093 | as_unset=unset |
13094 | else | |
13095 | as_unset=false | |
13096 | fi | |
8106cdd5 | 13097 | |
ad6254c5 | 13098 | |
7a197a62 AK |
13099 | # IFS |
13100 | # We need space, tab and new line, in precisely that order. Quoting is | |
13101 | # there to prevent editors from complaining about space-tab. | |
13102 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
13103 | # splitting by setting IFS to empty value.) | |
7a197a62 AK |
13104 | IFS=" "" $as_nl" |
13105 | ||
13106 | # Find who we are. Look in the path if we contain no directory separator. | |
13107 | case $0 in | |
13108 | *[\\/]* ) as_myself=$0 ;; | |
13109 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13110 | for as_dir in $PATH | |
13111 | do | |
13112 | IFS=$as_save_IFS | |
13113 | test -z "$as_dir" && as_dir=. | |
13114 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
13115 | done | |
13116 | IFS=$as_save_IFS | |
13117 | ||
13118 | ;; | |
13119 | esac | |
13120 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
13121 | # in which case we are not to be found in the path. | |
13122 | if test "x$as_myself" = x; then | |
13123 | as_myself=$0 | |
13124 | fi | |
13125 | if test ! -f "$as_myself"; then | |
ec6a6fbe | 13126 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
7a197a62 AK |
13127 | { (exit 1); exit 1; } |
13128 | fi | |
13129 | ||
ad6254c5 | 13130 | # Work around bugs in pre-3.0 UWIN ksh. |
7a197a62 AK |
13131 | for as_var in ENV MAIL MAILPATH |
13132 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
13133 | done | |
ad6254c5 AK |
13134 | PS1='$ ' |
13135 | PS2='> ' | |
13136 | PS4='+ ' | |
13137 | ||
13138 | # NLS nuisances. | |
ec6a6fbe AK |
13139 | LC_ALL=C |
13140 | export LC_ALL | |
13141 | LANGUAGE=C | |
13142 | export LANGUAGE | |
8106cdd5 | 13143 | |
ad6254c5 | 13144 | # Required to use basename. |
7a197a62 AK |
13145 | if expr a : '\(a\)' >/dev/null 2>&1 && |
13146 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
ad6254c5 AK |
13147 | as_expr=expr |
13148 | else | |
13149 | as_expr=false | |
13150 | fi | |
8106cdd5 | 13151 | |
7a197a62 | 13152 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
ad6254c5 AK |
13153 | as_basename=basename |
13154 | else | |
13155 | as_basename=false | |
13156 | fi | |
13157 | ||
13158 | ||
13159 | # Name of the executable. | |
7a197a62 | 13160 | as_me=`$as_basename -- "$0" || |
ad6254c5 AK |
13161 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
13162 | X"$0" : 'X\(//\)$' \| \ | |
7a197a62 | 13163 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
ec6a6fbe | 13164 | $as_echo X/"$0" | |
7a197a62 AK |
13165 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
13166 | s//\1/ | |
13167 | q | |
13168 | } | |
13169 | /^X\/\(\/\/\)$/{ | |
13170 | s//\1/ | |
13171 | q | |
13172 | } | |
13173 | /^X\/\(\/\).*/{ | |
13174 | s//\1/ | |
13175 | q | |
13176 | } | |
13177 | s/.*/./; q'` | |
ad6254c5 | 13178 | |
7a197a62 AK |
13179 | # CDPATH. |
13180 | $as_unset CDPATH | |
ad6254c5 AK |
13181 | |
13182 | ||
ad6254c5 | 13183 | |
ad6254c5 AK |
13184 | as_lineno_1=$LINENO |
13185 | as_lineno_2=$LINENO | |
ad6254c5 | 13186 | test "x$as_lineno_1" != "x$as_lineno_2" && |
7a197a62 | 13187 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
795ca3e5 | 13188 | |
ad6254c5 AK |
13189 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
13190 | # uniformly replaced by the line number. The first 'sed' inserts a | |
7a197a62 AK |
13191 | # line-number line after each line using $LINENO; the second 'sed' |
13192 | # does the real work. The second script uses 'N' to pair each | |
13193 | # line-number line with the line containing $LINENO, and appends | |
13194 | # trailing '-' during substitution so that $LINENO is not a special | |
13195 | # case at line end. | |
ad6254c5 | 13196 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
7a197a62 AK |
13197 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
13198 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
13199 | sed -n ' | |
13200 | p | |
13201 | /[$]LINENO/= | |
13202 | ' <$as_myself | | |
ad6254c5 | 13203 | sed ' |
7a197a62 AK |
13204 | s/[$]LINENO.*/&-/ |
13205 | t lineno | |
13206 | b | |
13207 | :lineno | |
ad6254c5 | 13208 | N |
7a197a62 AK |
13209 | :loop |
13210 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
ad6254c5 | 13211 | t loop |
7a197a62 | 13212 | s/-\n.*// |
ad6254c5 | 13213 | ' >$as_me.lineno && |
7a197a62 | 13214 | chmod +x "$as_me.lineno" || |
ec6a6fbe | 13215 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
ad6254c5 AK |
13216 | { (exit 1); exit 1; }; } |
13217 | ||
13218 | # Don't try to exec as it changes $[0], causing all sort of problems | |
13219 | # (the dirname of $[0] is not the place where we might find the | |
7a197a62 AK |
13220 | # original and so on. Autoconf is especially sensitive to this). |
13221 | . "./$as_me.lineno" | |
ad6254c5 AK |
13222 | # Exit status is that of the last command. |
13223 | exit | |
13224 | } | |
13225 | ||
13226 | ||
7a197a62 AK |
13227 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
13228 | as_dirname=dirname | |
13229 | else | |
13230 | as_dirname=false | |
13231 | fi | |
13232 | ||
13233 | ECHO_C= ECHO_N= ECHO_T= | |
13234 | case `echo -n x` in | |
13235 | -n*) | |
13236 | case `echo 'x\c'` in | |
13237 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
13238 | *) ECHO_C='\c';; | |
13239 | esac;; | |
13240 | *) | |
13241 | ECHO_N='-n';; | |
ad6254c5 | 13242 | esac |
7a197a62 AK |
13243 | if expr a : '\(a\)' >/dev/null 2>&1 && |
13244 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
ad6254c5 AK |
13245 | as_expr=expr |
13246 | else | |
13247 | as_expr=false | |
13248 | fi | |
80992638 | 13249 | |
ad6254c5 | 13250 | rm -f conf$$ conf$$.exe conf$$.file |
7a197a62 AK |
13251 | if test -d conf$$.dir; then |
13252 | rm -f conf$$.dir/conf$$.file | |
13253 | else | |
13254 | rm -f conf$$.dir | |
ec6a6fbe AK |
13255 | mkdir conf$$.dir 2>/dev/null |
13256 | fi | |
13257 | if (echo >conf$$.file) 2>/dev/null; then | |
13258 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
13259 | as_ln_s='ln -s' | |
13260 | # ... but there are two gotchas: | |
13261 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
13262 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
13263 | # In both cases, we have to default to `cp -p'. | |
13264 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
13265 | as_ln_s='cp -p' | |
13266 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
13267 | as_ln_s=ln | |
13268 | else | |
ad6254c5 | 13269 | as_ln_s='cp -p' |
ec6a6fbe | 13270 | fi |
ad6254c5 AK |
13271 | else |
13272 | as_ln_s='cp -p' | |
13273 | fi | |
7a197a62 AK |
13274 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
13275 | rmdir conf$$.dir 2>/dev/null | |
8106cdd5 | 13276 | |
ad6254c5 AK |
13277 | if mkdir -p . 2>/dev/null; then |
13278 | as_mkdir_p=: | |
13279 | else | |
8a2fc586 | 13280 | test -d ./-p && rmdir ./-p |
ad6254c5 AK |
13281 | as_mkdir_p=false |
13282 | fi | |
13283 | ||
25fbec5b AK |
13284 | if test -x / >/dev/null 2>&1; then |
13285 | as_test_x='test -x' | |
7a197a62 | 13286 | else |
25fbec5b AK |
13287 | if ls -dL / >/dev/null 2>&1; then |
13288 | as_ls_L_option=L | |
13289 | else | |
13290 | as_ls_L_option= | |
13291 | fi | |
13292 | as_test_x=' | |
13293 | eval sh -c '\'' | |
13294 | if test -d "$1"; then | |
ec6a6fbe | 13295 | test -d "$1/."; |
25fbec5b AK |
13296 | else |
13297 | case $1 in | |
ec6a6fbe | 13298 | -*)set "./$1";; |
25fbec5b AK |
13299 | esac; |
13300 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
13301 | ???[sx]*):;;*)false;;esac;fi | |
13302 | '\'' sh | |
13303 | ' | |
7a197a62 | 13304 | fi |
25fbec5b | 13305 | as_executable_p=$as_test_x |
ad6254c5 AK |
13306 | |
13307 | # Sed expression to map a string onto a valid CPP name. | |
8a2fc586 | 13308 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
13309 | |
13310 | # Sed expression to map a string onto a valid variable name. | |
8a2fc586 | 13311 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
13312 | |
13313 | ||
ad6254c5 AK |
13314 | exec 6>&1 |
13315 | ||
7a197a62 | 13316 | # Save the log message, to keep $[0] and so on meaningful, and to |
ad6254c5 | 13317 | # report actual input values of CONFIG_FILES etc. instead of their |
7a197a62 AK |
13318 | # values after options handling. |
13319 | ac_log=" | |
ad6254c5 | 13320 | This file was extended by $as_me, which was |
ec6a6fbe | 13321 | generated by GNU Autoconf 2.63. Invocation command line was |
ad6254c5 AK |
13322 | |
13323 | CONFIG_FILES = $CONFIG_FILES | |
13324 | CONFIG_HEADERS = $CONFIG_HEADERS | |
13325 | CONFIG_LINKS = $CONFIG_LINKS | |
13326 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
13327 | $ $0 $@ | |
13328 | ||
7a197a62 AK |
13329 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
13330 | " | |
13331 | ||
ad6254c5 AK |
13332 | _ACEOF |
13333 | ||
ec6a6fbe AK |
13334 | case $ac_config_files in *" |
13335 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
13336 | esac | |
13337 | ||
13338 | case $ac_config_headers in *" | |
13339 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
13340 | esac | |
13341 | ||
13342 | ||
13343 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
ad6254c5 | 13344 | # Files that config.status was made for. |
68f2de6d AK |
13345 | config_files="$ac_config_files" |
13346 | config_headers="$ac_config_headers" | |
ad6254c5 | 13347 | |
7a197a62 | 13348 | _ACEOF |
ad6254c5 | 13349 | |
ec6a6fbe | 13350 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
ad6254c5 AK |
13351 | ac_cs_usage="\ |
13352 | \`$as_me' instantiates files from templates according to the | |
13353 | current configuration. | |
13354 | ||
ec6a6fbe | 13355 | Usage: $0 [OPTION]... [FILE]... |
ad6254c5 AK |
13356 | |
13357 | -h, --help print this help, then exit | |
25fbec5b | 13358 | -V, --version print version number and configuration settings, then exit |
ec6a6fbe AK |
13359 | -q, --quiet, --silent |
13360 | do not print progress messages | |
ad6254c5 AK |
13361 | -d, --debug don't remove temporary files |
13362 | --recheck update $as_me by reconfiguring in the same conditions | |
ec6a6fbe AK |
13363 | --file=FILE[:TEMPLATE] |
13364 | instantiate the configuration file FILE | |
13365 | --header=FILE[:TEMPLATE] | |
13366 | instantiate the configuration header FILE | |
ad6254c5 AK |
13367 | |
13368 | Configuration files: | |
13369 | $config_files | |
13370 | ||
72b2cb61 AK |
13371 | Configuration headers: |
13372 | $config_headers | |
13373 | ||
ad6254c5 | 13374 | Report bugs to <bug-autoconf@gnu.org>." |
ad6254c5 | 13375 | |
7a197a62 | 13376 | _ACEOF |
ec6a6fbe | 13377 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
ad6254c5 AK |
13378 | ac_cs_version="\\ |
13379 | config.status | |
ec6a6fbe AK |
13380 | configured by $0, generated by GNU Autoconf 2.63, |
13381 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
ad6254c5 | 13382 | |
ec6a6fbe | 13383 | Copyright (C) 2008 Free Software Foundation, Inc. |
ad6254c5 AK |
13384 | This config.status script is free software; the Free Software Foundation |
13385 | gives unlimited permission to copy, distribute and modify it." | |
7a197a62 AK |
13386 | |
13387 | ac_pwd='$ac_pwd' | |
13388 | srcdir='$srcdir' | |
13389 | INSTALL='$INSTALL' | |
fddafd51 | 13390 | MKDIR_P='$MKDIR_P' |
ec6a6fbe AK |
13391 | AWK='$AWK' |
13392 | test -n "\$AWK" || AWK=awk | |
ad6254c5 AK |
13393 | _ACEOF |
13394 | ||
ec6a6fbe AK |
13395 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
13396 | # The default lists apply if the user does not specify any file. | |
ad6254c5 AK |
13397 | ac_need_defaults=: |
13398 | while test $# != 0 | |
13399 | do | |
13400 | case $1 in | |
13401 | --*=*) | |
7a197a62 AK |
13402 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
13403 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
ad6254c5 AK |
13404 | ac_shift=: |
13405 | ;; | |
7a197a62 | 13406 | *) |
ad6254c5 AK |
13407 | ac_option=$1 |
13408 | ac_optarg=$2 | |
13409 | ac_shift=shift | |
13410 | ;; | |
ad6254c5 AK |
13411 | esac |
13412 | ||
13413 | case $ac_option in | |
13414 | # Handling of the options. | |
ad6254c5 AK |
13415 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
13416 | ac_cs_recheck=: ;; | |
7a197a62 | 13417 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
ec6a6fbe | 13418 | $as_echo "$ac_cs_version"; exit ;; |
7a197a62 | 13419 | --debug | --debu | --deb | --de | --d | -d ) |
ad6254c5 AK |
13420 | debug=: ;; |
13421 | --file | --fil | --fi | --f ) | |
13422 | $ac_shift | |
ec6a6fbe AK |
13423 | case $ac_optarg in |
13424 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
13425 | esac | |
13426 | CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" | |
ad6254c5 AK |
13427 | ac_need_defaults=false;; |
13428 | --header | --heade | --head | --hea ) | |
13429 | $ac_shift | |
ec6a6fbe AK |
13430 | case $ac_optarg in |
13431 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
13432 | esac | |
13433 | CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" | |
ad6254c5 | 13434 | ac_need_defaults=false;; |
7a197a62 AK |
13435 | --he | --h) |
13436 | # Conflict between --help and --header | |
ec6a6fbe | 13437 | { $as_echo "$as_me: error: ambiguous option: $1 |
7a197a62 AK |
13438 | Try \`$0 --help' for more information." >&2 |
13439 | { (exit 1); exit 1; }; };; | |
13440 | --help | --hel | -h ) | |
ec6a6fbe | 13441 | $as_echo "$ac_cs_usage"; exit ;; |
ad6254c5 AK |
13442 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
13443 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
13444 | ac_cs_silent=: ;; | |
13445 | ||
13446 | # This is an error. | |
ec6a6fbe | 13447 | -*) { $as_echo "$as_me: error: unrecognized option: $1 |
7a197a62 | 13448 | Try \`$0 --help' for more information." >&2 |
ad6254c5 AK |
13449 | { (exit 1); exit 1; }; } ;; |
13450 | ||
7a197a62 AK |
13451 | *) ac_config_targets="$ac_config_targets $1" |
13452 | ac_need_defaults=false ;; | |
ad6254c5 AK |
13453 | |
13454 | esac | |
13455 | shift | |
13456 | done | |
13457 | ||
13458 | ac_configure_extra_args= | |
13459 | ||
13460 | if $ac_cs_silent; then | |
13461 | exec 6>/dev/null | |
13462 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
13463 | fi | |
13464 | ||
13465 | _ACEOF | |
ec6a6fbe | 13466 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
ad6254c5 | 13467 | if \$ac_cs_recheck; then |
ec6a6fbe AK |
13468 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
13469 | shift | |
13470 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
13471 | CONFIG_SHELL='$SHELL' | |
7a197a62 | 13472 | export CONFIG_SHELL |
ec6a6fbe | 13473 | exec "\$@" |
ad6254c5 AK |
13474 | fi |
13475 | ||
13476 | _ACEOF | |
ec6a6fbe | 13477 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
13478 | exec 5>>config.log |
13479 | { | |
13480 | echo | |
13481 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
13482 | ## Running $as_me. ## | |
13483 | _ASBOX | |
ec6a6fbe | 13484 | $as_echo "$ac_log" |
7a197a62 | 13485 | } >&5 |
ad6254c5 | 13486 | |
7a197a62 | 13487 | _ACEOF |
ec6a6fbe | 13488 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
7a197a62 | 13489 | _ACEOF |
ad6254c5 | 13490 | |
ec6a6fbe | 13491 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
13492 | |
13493 | # Handling of arguments. | |
ad6254c5 AK |
13494 | for ac_config_target in $ac_config_targets |
13495 | do | |
7a197a62 AK |
13496 | case $ac_config_target in |
13497 | "lib/misc/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;; | |
13498 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
13499 | "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;; | |
13500 | "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;; | |
13501 | "daemons/clvmd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;; | |
93bd259b AK |
13502 | "daemons/dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/Makefile" ;; |
13503 | "daemons/dmeventd/libdevmapper-event.pc") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/libdevmapper-event.pc" ;; | |
04f06bc9 | 13504 | "daemons/dmeventd/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/Makefile" ;; |
93bd259b AK |
13505 | "daemons/dmeventd/plugins/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/mirror/Makefile" ;; |
13506 | "daemons/dmeventd/plugins/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/snapshot/Makefile" ;; | |
7a197a62 | 13507 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
93bd259b AK |
13508 | "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; |
13509 | "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; | |
7a197a62 AK |
13510 | "lib/format1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;; |
13511 | "lib/format_pool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;; | |
13512 | "lib/locking/Makefile") CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;; | |
13513 | "lib/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;; | |
ec6a6fbe | 13514 | "lib/misc/lvm-version.h") CONFIG_FILES="$CONFIG_FILES lib/misc/lvm-version.h" ;; |
7a197a62 | 13515 | "lib/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;; |
93bd259b AK |
13516 | "libdm/Makefile") CONFIG_FILES="$CONFIG_FILES libdm/Makefile" ;; |
13517 | "libdm/libdevmapper.pc") CONFIG_FILES="$CONFIG_FILES libdm/libdevmapper.pc" ;; | |
e0c64c6c | 13518 | "liblvm/Makefile") CONFIG_FILES="$CONFIG_FILES liblvm/Makefile" ;; |
70046623 | 13519 | "liblvm/liblvm2app.pc") CONFIG_FILES="$CONFIG_FILES liblvm/liblvm2app.pc" ;; |
93bd259b AK |
13520 | "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; |
13521 | "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;; | |
75ad7143 | 13522 | "scripts/clvmd_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/clvmd_init_red_hat" ;; |
7a197a62 | 13523 | "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;; |
93bd259b | 13524 | "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; |
c7e363f9 | 13525 | "test/api/Makefile") CONFIG_FILES="$CONFIG_FILES test/api/Makefile" ;; |
7a197a62 | 13526 | "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; |
a5f46f6a | 13527 | "udev/Makefile") CONFIG_FILES="$CONFIG_FILES udev/Makefile" ;; |
7a197a62 | 13528 | |
ec6a6fbe AK |
13529 | *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
13530 | $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
ad6254c5 | 13531 | { (exit 1); exit 1; }; };; |
80992638 | 13532 | esac |
ad6254c5 AK |
13533 | done |
13534 | ||
7a197a62 | 13535 | |
ad6254c5 AK |
13536 | # If the user did not use the arguments to specify the items to instantiate, |
13537 | # then the envvar interface is used. Set only those that are not. | |
13538 | # We use the long form for the default assignment because of an extremely | |
13539 | # bizarre bug on SunOS 4.1.3. | |
13540 | if $ac_need_defaults; then | |
13541 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
72b2cb61 | 13542 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
ad6254c5 AK |
13543 | fi |
13544 | ||
13545 | # Have a temporary directory for convenience. Make it in the build tree | |
7a197a62 | 13546 | # simply because there is no reason against having it here, and in addition, |
ad6254c5 | 13547 | # creating and moving files from /tmp can sometimes cause problems. |
7a197a62 AK |
13548 | # Hook for its removal unless debugging. |
13549 | # Note that there is a small window in which the directory will not be cleaned: | |
13550 | # after its creation but before its name has been assigned to `$tmp'. | |
ad6254c5 AK |
13551 | $debug || |
13552 | { | |
7a197a62 AK |
13553 | tmp= |
13554 | trap 'exit_status=$? | |
13555 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
13556 | ' 0 | |
ad6254c5 AK |
13557 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
13558 | } | |
ad6254c5 AK |
13559 | # Create a (secure) tmp directory for tmp files. |
13560 | ||
13561 | { | |
7a197a62 | 13562 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
ad6254c5 AK |
13563 | test -n "$tmp" && test -d "$tmp" |
13564 | } || | |
13565 | { | |
7a197a62 AK |
13566 | tmp=./conf$$-$RANDOM |
13567 | (umask 077 && mkdir "$tmp") | |
ad6254c5 AK |
13568 | } || |
13569 | { | |
ec6a6fbe | 13570 | $as_echo "$as_me: cannot create a temporary directory in ." >&2 |
ad6254c5 AK |
13571 | { (exit 1); exit 1; } |
13572 | } | |
13573 | ||
ec6a6fbe AK |
13574 | # Set up the scripts for CONFIG_FILES section. |
13575 | # No need to generate them if there are no CONFIG_FILES. | |
13576 | # This happens for instance with `./config.status config.h'. | |
1995c9ff | 13577 | if test -n "$CONFIG_FILES"; then |
7a197a62 | 13578 | |
68f2de6d | 13579 | |
ec6a6fbe AK |
13580 | ac_cr='\r' |
13581 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
13582 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
13583 | ac_cs_awk_cr='\\r' | |
13584 | else | |
13585 | ac_cs_awk_cr=$ac_cr | |
1995c9ff | 13586 | fi |
7a197a62 | 13587 | |
ec6a6fbe | 13588 | echo 'BEGIN {' >"$tmp/subs1.awk" && |
1995c9ff | 13589 | _ACEOF |
7a197a62 | 13590 | |
8106cdd5 | 13591 | |
ec6a6fbe AK |
13592 | { |
13593 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
13594 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
13595 | echo "_ACEOF" | |
13596 | } >conf$$subs.sh || | |
13597 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
13598 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
13599 | { (exit 1); exit 1; }; } | |
13600 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | |
1995c9ff AK |
13601 | ac_delim='%!_!# ' |
13602 | for ac_last_try in false false false false false :; do | |
ec6a6fbe AK |
13603 | . ./conf$$subs.sh || |
13604 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
13605 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
13606 | { (exit 1); exit 1; }; } | |
13607 | ||
13608 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
13609 | if test $ac_delim_n = $ac_delim_num; then | |
1995c9ff AK |
13610 | break |
13611 | elif $ac_last_try; then | |
ec6a6fbe AK |
13612 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
13613 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
1995c9ff AK |
13614 | { (exit 1); exit 1; }; } |
13615 | else | |
13616 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
13617 | fi | |
13618 | done | |
ec6a6fbe AK |
13619 | rm -f conf$$subs.sh |
13620 | ||
13621 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
13622 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
13623 | _ACEOF | |
13624 | sed -n ' | |
13625 | h | |
13626 | s/^/S["/; s/!.*/"]=/ | |
13627 | p | |
13628 | g | |
13629 | s/^[^!]*!// | |
13630 | :repl | |
13631 | t repl | |
13632 | s/'"$ac_delim"'$// | |
13633 | t delim | |
13634 | :nl | |
13635 | h | |
13636 | s/\(.\{148\}\).*/\1/ | |
13637 | t more1 | |
13638 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
13639 | p | |
13640 | n | |
13641 | b repl | |
13642 | :more1 | |
13643 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
13644 | p | |
13645 | g | |
13646 | s/.\{148\}// | |
13647 | t nl | |
13648 | :delim | |
13649 | h | |
13650 | s/\(.\{148\}\).*/\1/ | |
13651 | t more2 | |
13652 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
13653 | p | |
13654 | b | |
13655 | :more2 | |
13656 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
13657 | p | |
13658 | g | |
13659 | s/.\{148\}// | |
13660 | t delim | |
13661 | ' <conf$$subs.awk | sed ' | |
13662 | /^[^""]/{ | |
13663 | N | |
13664 | s/\n// | |
13665 | } | |
13666 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
13667 | rm -f conf$$subs.awk | |
13668 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
13669 | _ACAWK | |
13670 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
13671 | for (key in S) S_is_set[key] = 1 | |
13672 | FS = "\a" | |
7a197a62 | 13673 | |
ec6a6fbe AK |
13674 | } |
13675 | { | |
13676 | line = $ 0 | |
13677 | nfields = split(line, field, "@") | |
13678 | substed = 0 | |
13679 | len = length(field[1]) | |
13680 | for (i = 2; i < nfields; i++) { | |
13681 | key = field[i] | |
13682 | keylen = length(key) | |
13683 | if (S_is_set[key]) { | |
13684 | value = S[key] | |
13685 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
13686 | len += length(value) + length(field[++i]) | |
13687 | substed = 1 | |
13688 | } else | |
13689 | len += 1 + keylen | |
13690 | } | |
13691 | ||
13692 | print line | |
13693 | } | |
fddafd51 | 13694 | |
ec6a6fbe | 13695 | _ACAWK |
1995c9ff | 13696 | _ACEOF |
ec6a6fbe AK |
13697 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
13698 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
13699 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
13700 | else | |
13701 | cat | |
13702 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
13703 | || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 | |
13704 | $as_echo "$as_me: error: could not setup config files machinery" >&2;} | |
13705 | { (exit 1); exit 1; }; } | |
7a197a62 AK |
13706 | _ACEOF |
13707 | ||
7a197a62 AK |
13708 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
13709 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
13710 | # trailing colons and then remove the whole line if VPATH becomes empty | |
13711 | # (actually we leave an empty line to preserve line numbers). | |
13712 | if test "x$srcdir" = x.; then | |
13713 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
13714 | s/:*\$(srcdir):*/:/ | |
13715 | s/:*\${srcdir}:*/:/ | |
13716 | s/:*@srcdir@:*/:/ | |
13717 | s/^\([^=]*=[ ]*\):*/\1/ | |
13718 | s/:*$// | |
13719 | s/^[^=]*=[ ]*$// | |
13720 | }' | |
13721 | fi | |
13722 | ||
ec6a6fbe | 13723 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
13724 | fi # test -n "$CONFIG_FILES" |
13725 | ||
ec6a6fbe AK |
13726 | # Set up the scripts for CONFIG_HEADERS section. |
13727 | # No need to generate them if there are no CONFIG_HEADERS. | |
13728 | # This happens for instance with `./config.status Makefile'. | |
13729 | if test -n "$CONFIG_HEADERS"; then | |
13730 | cat >"$tmp/defines.awk" <<\_ACAWK || | |
13731 | BEGIN { | |
13732 | _ACEOF | |
13733 | ||
13734 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
13735 | # here-document in config.status, that substitutes the proper values into | |
13736 | # config.h.in to produce config.h. | |
13737 | ||
13738 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
13739 | # handling of long lines. | |
13740 | ac_delim='%!_!# ' | |
13741 | for ac_last_try in false false :; do | |
13742 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` | |
13743 | if test -z "$ac_t"; then | |
13744 | break | |
13745 | elif $ac_last_try; then | |
13746 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 | |
13747 | $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} | |
13748 | { (exit 1); exit 1; }; } | |
13749 | else | |
13750 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
13751 | fi | |
13752 | done | |
13753 | ||
13754 | # For the awk script, D is an array of macro values keyed by name, | |
13755 | # likewise P contains macro parameters if any. Preserve backslash | |
13756 | # newline sequences. | |
13757 | ||
13758 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
13759 | sed -n ' | |
13760 | s/.\{148\}/&'"$ac_delim"'/g | |
13761 | t rset | |
13762 | :rset | |
13763 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
13764 | t def | |
13765 | d | |
13766 | :def | |
13767 | s/\\$// | |
13768 | t bsnl | |
13769 | s/["\\]/\\&/g | |
13770 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
13771 | D["\1"]=" \3"/p | |
13772 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
13773 | d | |
13774 | :bsnl | |
13775 | s/["\\]/\\&/g | |
13776 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
13777 | D["\1"]=" \3\\\\\\n"\\/p | |
13778 | t cont | |
13779 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
13780 | t cont | |
13781 | d | |
13782 | :cont | |
13783 | n | |
13784 | s/.\{148\}/&'"$ac_delim"'/g | |
13785 | t clear | |
13786 | :clear | |
13787 | s/\\$// | |
13788 | t bsnlc | |
13789 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
13790 | d | |
13791 | :bsnlc | |
13792 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
13793 | b cont | |
13794 | ' <confdefs.h | sed ' | |
13795 | s/'"$ac_delim"'/"\\\ | |
13796 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
13797 | ||
13798 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
13799 | for (key in D) D_is_set[key] = 1 | |
13800 | FS = "\a" | |
13801 | } | |
13802 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
13803 | line = \$ 0 | |
13804 | split(line, arg, " ") | |
13805 | if (arg[1] == "#") { | |
13806 | defundef = arg[2] | |
13807 | mac1 = arg[3] | |
13808 | } else { | |
13809 | defundef = substr(arg[1], 2) | |
13810 | mac1 = arg[2] | |
13811 | } | |
13812 | split(mac1, mac2, "(") #) | |
13813 | macro = mac2[1] | |
13814 | prefix = substr(line, 1, index(line, defundef) - 1) | |
13815 | if (D_is_set[macro]) { | |
13816 | # Preserve the white space surrounding the "#". | |
13817 | print prefix "define", macro P[macro] D[macro] | |
13818 | next | |
13819 | } else { | |
13820 | # Replace #undef with comments. This is necessary, for example, | |
13821 | # in the case of _POSIX_SOURCE, which is predefined and required | |
13822 | # on some systems where configure will not decide to define it. | |
13823 | if (defundef == "undef") { | |
13824 | print "/*", prefix defundef, macro, "*/" | |
13825 | next | |
13826 | } | |
13827 | } | |
13828 | } | |
13829 | { print } | |
13830 | _ACAWK | |
13831 | _ACEOF | |
13832 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
13833 | { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 | |
13834 | $as_echo "$as_me: error: could not setup config headers machinery" >&2;} | |
13835 | { (exit 1); exit 1; }; } | |
13836 | fi # test -n "$CONFIG_HEADERS" | |
13837 | ||
7a197a62 | 13838 | |
ec6a6fbe AK |
13839 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " |
13840 | shift | |
13841 | for ac_tag | |
7a197a62 AK |
13842 | do |
13843 | case $ac_tag in | |
13844 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
13845 | esac | |
13846 | case $ac_mode$ac_tag in | |
13847 | :[FHL]*:*);; | |
ec6a6fbe AK |
13848 | :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 |
13849 | $as_echo "$as_me: error: invalid tag $ac_tag" >&2;} | |
7a197a62 AK |
13850 | { (exit 1); exit 1; }; };; |
13851 | :[FH]-) ac_tag=-:-;; | |
13852 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
13853 | esac | |
13854 | ac_save_IFS=$IFS | |
13855 | IFS=: | |
13856 | set x $ac_tag | |
13857 | IFS=$ac_save_IFS | |
13858 | shift | |
13859 | ac_file=$1 | |
13860 | shift | |
13861 | ||
13862 | case $ac_mode in | |
13863 | :L) ac_source=$1;; | |
13864 | :[FH]) | |
13865 | ac_file_inputs= | |
13866 | for ac_f | |
13867 | do | |
13868 | case $ac_f in | |
13869 | -) ac_f="$tmp/stdin";; | |
13870 | *) # Look for the file first in the build tree, then in the source tree | |
13871 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
13872 | # because $ac_f cannot contain `:'. | |
13873 | test -f "$ac_f" || | |
13874 | case $ac_f in | |
13875 | [\\/$]*) false;; | |
13876 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
13877 | esac || | |
ec6a6fbe AK |
13878 | { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
13879 | $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} | |
7a197a62 AK |
13880 | { (exit 1); exit 1; }; };; |
13881 | esac | |
ec6a6fbe AK |
13882 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
13883 | ac_file_inputs="$ac_file_inputs '$ac_f'" | |
7a197a62 AK |
13884 | done |
13885 | ||
13886 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
13887 | # use $as_me), people would be surprised to read: | |
13888 | # /* config.h. Generated by config.status. */ | |
ec6a6fbe AK |
13889 | configure_input='Generated from '` |
13890 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
13891 | `' by configure.' | |
7a197a62 AK |
13892 | if test x"$ac_file" != x-; then |
13893 | configure_input="$ac_file. $configure_input" | |
ec6a6fbe AK |
13894 | { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 |
13895 | $as_echo "$as_me: creating $ac_file" >&6;} | |
7a197a62 | 13896 | fi |
ec6a6fbe AK |
13897 | # Neutralize special characters interpreted by sed in replacement strings. |
13898 | case $configure_input in #( | |
13899 | *\&* | *\|* | *\\* ) | |
13900 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
13901 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
13902 | *) ac_sed_conf_input=$configure_input;; | |
13903 | esac | |
7a197a62 AK |
13904 | |
13905 | case $ac_tag in | |
ec6a6fbe AK |
13906 | *:-:* | *:-) cat >"$tmp/stdin" \ |
13907 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
13908 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
13909 | { (exit 1); exit 1; }; } ;; | |
7a197a62 AK |
13910 | esac |
13911 | ;; | |
80992638 | 13912 | esac |
8106cdd5 | 13913 | |
7a197a62 | 13914 | ac_dir=`$as_dirname -- "$ac_file" || |
ad6254c5 | 13915 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8a2fc586 AK |
13916 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
13917 | X"$ac_file" : 'X\(//\)$' \| \ | |
7a197a62 | 13918 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
ec6a6fbe | 13919 | $as_echo X"$ac_file" | |
7a197a62 AK |
13920 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
13921 | s//\1/ | |
13922 | q | |
13923 | } | |
13924 | /^X\(\/\/\)[^/].*/{ | |
13925 | s//\1/ | |
13926 | q | |
13927 | } | |
13928 | /^X\(\/\/\)$/{ | |
13929 | s//\1/ | |
13930 | q | |
13931 | } | |
13932 | /^X\(\/\).*/{ | |
13933 | s//\1/ | |
13934 | q | |
13935 | } | |
13936 | s/.*/./; q'` | |
13937 | { as_dir="$ac_dir" | |
13938 | case $as_dir in #( | |
13939 | -*) as_dir=./$as_dir;; | |
13940 | esac | |
13941 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
ad6254c5 | 13942 | as_dirs= |
7a197a62 AK |
13943 | while :; do |
13944 | case $as_dir in #( | |
ec6a6fbe | 13945 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
7a197a62 AK |
13946 | *) as_qdir=$as_dir;; |
13947 | esac | |
13948 | as_dirs="'$as_qdir' $as_dirs" | |
13949 | as_dir=`$as_dirname -- "$as_dir" || | |
ad6254c5 | 13950 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8a2fc586 AK |
13951 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
13952 | X"$as_dir" : 'X\(//\)$' \| \ | |
7a197a62 | 13953 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
ec6a6fbe | 13954 | $as_echo X"$as_dir" | |
7a197a62 AK |
13955 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
13956 | s//\1/ | |
13957 | q | |
13958 | } | |
13959 | /^X\(\/\/\)[^/].*/{ | |
13960 | s//\1/ | |
13961 | q | |
13962 | } | |
13963 | /^X\(\/\/\)$/{ | |
13964 | s//\1/ | |
13965 | q | |
13966 | } | |
13967 | /^X\(\/\).*/{ | |
13968 | s//\1/ | |
13969 | q | |
13970 | } | |
13971 | s/.*/./; q'` | |
13972 | test -d "$as_dir" && break | |
ad6254c5 | 13973 | done |
7a197a62 | 13974 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
ec6a6fbe AK |
13975 | } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
13976 | $as_echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
ad6254c5 | 13977 | { (exit 1); exit 1; }; }; } |
ad6254c5 AK |
13978 | ac_builddir=. |
13979 | ||
7a197a62 AK |
13980 | case "$ac_dir" in |
13981 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
13982 | *) | |
ec6a6fbe | 13983 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
7a197a62 | 13984 | # A ".." for each directory in $ac_dir_suffix. |
ec6a6fbe | 13985 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
7a197a62 AK |
13986 | case $ac_top_builddir_sub in |
13987 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
13988 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
13989 | esac ;; | |
13990 | esac | |
13991 | ac_abs_top_builddir=$ac_pwd | |
13992 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
13993 | # for backward compatibility: | |
13994 | ac_top_builddir=$ac_top_build_prefix | |
ad6254c5 AK |
13995 | |
13996 | case $srcdir in | |
7a197a62 | 13997 | .) # We are building in place. |
ad6254c5 | 13998 | ac_srcdir=. |
7a197a62 AK |
13999 | ac_top_srcdir=$ac_top_builddir_sub |
14000 | ac_abs_top_srcdir=$ac_pwd ;; | |
14001 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
ad6254c5 | 14002 | ac_srcdir=$srcdir$ac_dir_suffix; |
7a197a62 AK |
14003 | ac_top_srcdir=$srcdir |
14004 | ac_abs_top_srcdir=$srcdir ;; | |
14005 | *) # Relative name. | |
14006 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
14007 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
14008 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
ad6254c5 | 14009 | esac |
7a197a62 | 14010 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
8a2fc586 | 14011 | |
ad6254c5 | 14012 | |
7a197a62 AK |
14013 | case $ac_mode in |
14014 | :F) | |
14015 | # | |
14016 | # CONFIG_FILE | |
14017 | # | |
ad6254c5 AK |
14018 | |
14019 | case $INSTALL in | |
14020 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
7a197a62 | 14021 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
795ca3e5 | 14022 | esac |
fddafd51 ZK |
14023 | ac_MKDIR_P=$MKDIR_P |
14024 | case $MKDIR_P in | |
14025 | [\\/$]* | ?:[\\/]* ) ;; | |
14026 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
14027 | esac | |
7a197a62 | 14028 | _ACEOF |
795ca3e5 | 14029 | |
ec6a6fbe | 14030 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
14031 | # If the template does not know about datarootdir, expand it. |
14032 | # FIXME: This hack should be removed a few years after 2.60. | |
14033 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
14034 | ||
ec6a6fbe AK |
14035 | ac_sed_dataroot=' |
14036 | /datarootdir/ { | |
7a197a62 AK |
14037 | p |
14038 | q | |
14039 | } | |
14040 | /@datadir@/p | |
14041 | /@docdir@/p | |
14042 | /@infodir@/p | |
14043 | /@localedir@/p | |
14044 | /@mandir@/p | |
ec6a6fbe AK |
14045 | ' |
14046 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
7a197a62 AK |
14047 | *datarootdir*) ac_datarootdir_seen=yes;; |
14048 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
ec6a6fbe AK |
14049 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
14050 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
ad6254c5 | 14051 | _ACEOF |
ec6a6fbe | 14052 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
7a197a62 AK |
14053 | ac_datarootdir_hack=' |
14054 | s&@datadir@&$datadir&g | |
14055 | s&@docdir@&$docdir&g | |
14056 | s&@infodir@&$infodir&g | |
14057 | s&@localedir@&$localedir&g | |
14058 | s&@mandir@&$mandir&g | |
14059 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
14060 | esac | |
14061 | _ACEOF | |
14062 | ||
14063 | # Neutralize VPATH when `$srcdir' = `.'. | |
14064 | # Shell code in configure.ac might set extrasub. | |
14065 | # FIXME: do we really want to maintain this feature? | |
ec6a6fbe AK |
14066 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
14067 | ac_sed_extra="$ac_vpsub | |
ad6254c5 AK |
14068 | $extrasub |
14069 | _ACEOF | |
ec6a6fbe | 14070 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
ad6254c5 AK |
14071 | :t |
14072 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
ec6a6fbe | 14073 | s|@configure_input@|$ac_sed_conf_input|;t t |
7a197a62 | 14074 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
ec6a6fbe | 14075 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
7a197a62 AK |
14076 | s&@srcdir@&$ac_srcdir&;t t |
14077 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
14078 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
14079 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
14080 | s&@builddir@&$ac_builddir&;t t | |
14081 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
14082 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
14083 | s&@INSTALL@&$ac_INSTALL&;t t | |
fddafd51 | 14084 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
7a197a62 | 14085 | $ac_datarootdir_hack |
ec6a6fbe AK |
14086 | " |
14087 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ | |
14088 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
14089 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
14090 | { (exit 1); exit 1; }; } | |
7a197a62 AK |
14091 | |
14092 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
14093 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
14094 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
ec6a6fbe | 14095 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
7a197a62 | 14096 | which seems to be undefined. Please make sure it is defined." >&5 |
ec6a6fbe | 14097 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
7a197a62 AK |
14098 | which seems to be undefined. Please make sure it is defined." >&2;} |
14099 | ||
14100 | rm -f "$tmp/stdin" | |
72b2cb61 | 14101 | case $ac_file in |
ec6a6fbe AK |
14102 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
14103 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
14104 | esac \ | |
14105 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
14106 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
14107 | { (exit 1); exit 1; }; } | |
7a197a62 AK |
14108 | ;; |
14109 | :H) | |
14110 | # | |
14111 | # CONFIG_HEADER | |
14112 | # | |
72b2cb61 | 14113 | if test x"$ac_file" != x-; then |
ec6a6fbe AK |
14114 | { |
14115 | $as_echo "/* $configure_input */" \ | |
14116 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" | |
14117 | } >"$tmp/config.h" \ | |
14118 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
14119 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
14120 | { (exit 1); exit 1; }; } | |
14121 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then | |
14122 | { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
14123 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
72b2cb61 | 14124 | else |
ec6a6fbe AK |
14125 | rm -f "$ac_file" |
14126 | mv "$tmp/config.h" "$ac_file" \ | |
14127 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
14128 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
14129 | { (exit 1); exit 1; }; } | |
72b2cb61 AK |
14130 | fi |
14131 | else | |
ec6a6fbe AK |
14132 | $as_echo "/* $configure_input */" \ |
14133 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ | |
14134 | || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 | |
14135 | $as_echo "$as_me: error: could not create -" >&2;} | |
14136 | { (exit 1); exit 1; }; } | |
72b2cb61 | 14137 | fi |
7a197a62 AK |
14138 | ;; |
14139 | ||
14140 | ||
14141 | esac | |
14142 | ||
14143 | done # for ac_tag | |
795ca3e5 | 14144 | |
795ca3e5 | 14145 | |
ad6254c5 AK |
14146 | { (exit 0); exit 0; } |
14147 | _ACEOF | |
795ca3e5 | 14148 | chmod +x $CONFIG_STATUS |
ad6254c5 AK |
14149 | ac_clean_files=$ac_clean_files_save |
14150 | ||
ec6a6fbe AK |
14151 | test $ac_write_fail = 0 || |
14152 | { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 | |
14153 | $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} | |
14154 | { (exit 1); exit 1; }; } | |
14155 | ||
ad6254c5 AK |
14156 | |
14157 | # configure is writing to config.log, and then calls config.status. | |
14158 | # config.status does its own redirection, appending to config.log. | |
14159 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
14160 | # by configure, so config.status won't be able to write to it; its | |
14161 | # output is simply discarded. So we exec the FD to /dev/null, | |
14162 | # effectively closing config.log, so it can be properly (re)opened and | |
14163 | # appended to by config.status. When coming back to configure, we | |
14164 | # need to make the FD available again. | |
14165 | if test "$no_create" != yes; then | |
14166 | ac_cs_success=: | |
14167 | ac_config_status_args= | |
14168 | test "$silent" = yes && | |
14169 | ac_config_status_args="$ac_config_status_args --quiet" | |
14170 | exec 5>/dev/null | |
14171 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
14172 | exec 5>>config.log | |
14173 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
14174 | # would make configure fail if this is the last instruction. | |
14175 | $ac_cs_success || { (exit 1); exit 1; } | |
14176 | fi | |
ec6a6fbe AK |
14177 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
14178 | { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
14179 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
14180 | fi | |
795ca3e5 | 14181 | |
2dc95e1c AK |
14182 | |
14183 | if test x$ODIRECT != xyes; then | |
ec6a6fbe AK |
14184 | { $as_echo "$as_me:$LINENO: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5 |
14185 | $as_echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;} | |
2dc95e1c | 14186 | fi |