]> sourceware.org Git - lvm2.git/blame - configure
Added generation of the versioned libdevmapper-event.so for LVM's test
[lvm2.git] / configure
CommitLineData
795ca3e5 1#! /bin/sh
795ca3e5 2# Guess values for system-dependent variables and create Makefiles.
fddafd51 3# Generated by GNU Autoconf 2.62.
795ca3e5 4#
7a197a62 5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
fddafd51 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
14DUALCASE=1; export DUALCASE # for MKS sh
ad6254c5
AK
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
fddafd51 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
22else
25fbec5b
AK
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25esac
26
7a197a62 27fi
25fbec5b
AK
28
29
7a197a62
AK
30
31
32# PATH needs CR
33# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
39
fddafd51
ZK
40as_nl='
41'
42export as_nl
43# Printing a long string crashes Solaris 7 /usr/bin/printf.
44as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47if (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'
50else
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'
7a197a62 54 else
fddafd51
ZK
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'
7a197a62 67 fi
fddafd51
ZK
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if 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
79fi
80
81# Support unset when possible.
8a2fc586 82if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
ad6254c5
AK
83 as_unset=unset
84else
85 as_unset=false
86fi
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
94IFS=" "" $as_nl"
95
96# Find who we are. Look in the path if we contain no directory separator.
97case $0 in
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100for as_dir in $PATH
101do
102 IFS=$as_save_IFS
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105done
106IFS=$as_save_IFS
107
108 ;;
109esac
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.
112if test "x$as_myself" = x; then
113 as_myself=$0
114fi
115if test ! -f "$as_myself"; then
fddafd51 116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7a197a62
AK
117 { (exit 1); exit 1; }
118fi
119
ad6254c5 120# Work around bugs in pre-3.0 UWIN ksh.
7a197a62
AK
121for as_var in ENV MAIL MAILPATH
122do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123done
ad6254c5
AK
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
fddafd51
ZK
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
ad6254c5
AK
133
134# Required to use basename.
7a197a62
AK
135if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
137 as_expr=expr
138else
139 as_expr=false
140fi
141
7a197a62 142if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
ad6254c5
AK
143 as_basename=basename
144else
145 as_basename=false
146fi
147
148
149# Name of the executable.
7a197a62 150as_me=`$as_basename -- "$0" ||
ad6254c5
AK
151$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
7a197a62 153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
fddafd51 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
173if test "x$CONFIG_SHELL" = x; then
174 if (eval ":") 2>/dev/null; then
175 as_have_required=yes
176else
177 as_have_required=no
ad6254c5
AK
178fi
179
fddafd51 180 if test $as_have_required = yes && (eval ":
7a197a62
AK
181(as_func_return () {
182 (exit \$1)
183}
184as_func_success () {
185 as_func_return 0
186}
187as_func_failure () {
188 as_func_return 1
189}
190as_func_ret_success () {
191 return 0
192}
193as_func_ret_failure () {
194 return 1
195}
ad6254c5 196
7a197a62
AK
197exitcode=0
198if as_func_success; then
199 :
200else
201 exitcode=1
202 echo as_func_success failed.
203fi
ad6254c5 204
7a197a62
AK
205if as_func_failure; then
206 exitcode=1
207 echo as_func_failure succeeded.
208fi
209
210if as_func_ret_success; then
211 :
212else
213 exitcode=1
214 echo as_func_ret_success failed.
215fi
216
217if as_func_ret_failure; then
218 exitcode=1
219 echo as_func_ret_failure succeeded.
220fi
221
222if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223 :
224else
225 exitcode=1
226 echo positional parameters were not saved.
227fi
228
229test \$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 :
238else
239 as_candidate_shells=
ad6254c5 240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25fbec5b 241for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
ad6254c5
AK
242do
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
251done
252IFS=$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
259if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 emulate sh
261 NULLCMD=:
fddafd51 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
266else
25fbec5b
AK
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
269esac
270
7a197a62 271fi
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
280if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281 emulate sh
282 NULLCMD=:
fddafd51 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
287else
25fbec5b
AK
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
290esac
291
7a197a62 292fi
25fbec5b 293
7a197a62
AK
294
295:
296(as_func_return () {
297 (exit $1)
298}
299as_func_success () {
300 as_func_return 0
301}
302as_func_failure () {
303 as_func_return 1
304}
305as_func_ret_success () {
306 return 0
307}
308as_func_ret_failure () {
309 return 1
310}
311
312exitcode=0
313if as_func_success; then
314 :
315else
316 exitcode=1
317 echo as_func_success failed.
318fi
319
320if as_func_failure; then
321 exitcode=1
322 echo as_func_failure succeeded.
323fi
324
325if as_func_ret_success; then
326 :
327else
328 exitcode=1
329 echo as_func_ret_success failed.
330fi
331
332if as_func_ret_failure; then
333 exitcode=1
334 echo as_func_ret_failure succeeded.
335fi
336
337if ( set x; as_func_ret_success y && test x = "$1" ); then
338 :
339else
340 exitcode=1
341 echo positional parameters were not saved.
342fi
343
344test $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
355fi
356
357fi
358
359 done
360
361 if test "x$CONFIG_SHELL" != x; then
362 for as_var in BASH_ENV ENV
fddafd51
ZK
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
367fi
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; }
376fi
377
378
379fi
380
381fi
382
383
384
385(eval "as_func_return () {
386 (exit \$1)
387}
388as_func_success () {
389 as_func_return 0
390}
391as_func_failure () {
392 as_func_return 1
393}
394as_func_ret_success () {
395 return 0
396}
397as_func_ret_failure () {
398 return 1
399}
400
401exitcode=0
402if as_func_success; then
403 :
404else
405 exitcode=1
406 echo as_func_success failed.
407fi
408
409if as_func_failure; then
410 exitcode=1
411 echo as_func_failure succeeded.
412fi
413
414if as_func_ret_success; then
415 :
416else
417 exitcode=1
418 echo as_func_ret_success failed.
419fi
420
421if as_func_ret_failure; then
422 exitcode=1
423 echo as_func_ret_failure succeeded.
424fi
425
426if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
427 :
428else
429 exitcode=1
430 echo positional parameters were not saved.
431fi
432
433test \$exitcode = 0") || {
434 echo No shell found that supports shell functions.
fddafd51
ZK
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" ||
fddafd51 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
486if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487 as_dirname=dirname
488else
489 as_dirname=false
490fi
491
492ECHO_C= ECHO_N= ECHO_T=
493case `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 501esac
7a197a62
AK
502if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
504 as_expr=expr
505else
506 as_expr=false
507fi
508
509rm -f conf$$ conf$$.exe conf$$.file
7a197a62
AK
510if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
512else
513 rm -f conf$$.dir
fddafd51
ZK
514 mkdir conf$$.dir 2>/dev/null
515fi
516if (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'
fddafd51 529 fi
ad6254c5
AK
530else
531 as_ln_s='cp -p'
532fi
7a197a62
AK
533rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534rmdir conf$$.dir 2>/dev/null
ad6254c5
AK
535
536if mkdir -p . 2>/dev/null; then
537 as_mkdir_p=:
538else
8a2fc586 539 test -d ./-p && rmdir ./-p
ad6254c5
AK
540 as_mkdir_p=false
541fi
542
25fbec5b
AK
543if test -x / >/dev/null 2>&1; then
544 as_test_x='test -x'
7a197a62 545else
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
fddafd51 554 test -d "$1/.";
25fbec5b
AK
555 else
556 case $1 in
fddafd51 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 563fi
25fbec5b 564as_executable_p=$as_test_x
ad6254c5
AK
565
566# Sed expression to map a string onto a valid CPP name.
8a2fc586 567as_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 570as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
571
572
ad6254c5 573
7a197a62 574exec 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.
579ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
580
ad6254c5
AK
581#
582# Initializations.
583#
795ca3e5 584ac_default_prefix=/usr/local
7a197a62 585ac_clean_files=
ad6254c5 586ac_config_libobj_dir=.
7a197a62 587LIBOBJS=
ad6254c5
AK
588cross_compiling=no
589subdirs=
590MFLAGS=
591MAKEFLAGS=
592SHELL=${CONFIG_SHELL-/bin/sh}
593
ad6254c5
AK
594# Identity of this package.
595PACKAGE_NAME=
596PACKAGE_TARNAME=
597PACKAGE_VERSION=
598PACKAGE_STRING=
599PACKAGE_BUGREPORT=
600
601ac_unique_file="lib/device/dev-cache.h"
602# Factoring default headers for most tests.
603ac_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 638ac_default_prefix=/usr
7a197a62
AK
639ac_subst_vars='SHELL
640PATH_SEPARATOR
641PACKAGE_NAME
642PACKAGE_TARNAME
643PACKAGE_VERSION
644PACKAGE_STRING
645PACKAGE_BUGREPORT
646exec_prefix
647prefix
648program_transform_name
649bindir
650sbindir
651libexecdir
652datarootdir
653datadir
654sysconfdir
655sharedstatedir
656localstatedir
657includedir
658oldincludedir
659docdir
660infodir
661htmldir
662dvidir
663pdfdir
664psdir
665libdir
666localedir
667mandir
668DEFS
669ECHO_C
670ECHO_N
671ECHO_T
672LIBS
673build_alias
674host_alias
675target_alias
676build
677build_cpu
678build_vendor
679build_os
680host
681host_cpu
682host_vendor
683host_os
684target
685target_cpu
686target_vendor
687target_os
688AWK
689CC
690CFLAGS
691LDFLAGS
692CPPFLAGS
693ac_ct_CC
694EXEEXT
695OBJEXT
d0191583
JM
696CPP
697GREP
698EGREP
7a197a62
AK
699INSTALL_PROGRAM
700INSTALL_SCRIPT
701INSTALL_DATA
702LN_S
703SET_MAKE
704RANLIB
fddafd51 705MKDIR_P
7a197a62
AK
706CFLOW_CMD
707CSCOPE_CMD
7a197a62
AK
708ALLOCA
709LIBOBJS
710POW_LIB
fddafd51
ZK
711LCOV
712GENHTML
d179cc7a 713LVM2CMD_LIB
7a197a62
AK
714MSGFMT
715MODPROBE_CMD
d0191583 716BUILD_DMEVENTD
7a197a62 717CLDFLAGS
7a197a62 718CLDNOWHOLEARCHIVE
d0191583
JM
719CLDWHOLEARCHIVE
720CLUSTER
721CLVMD
722CMDLIB
723COPTIMISE_FLAG
7a197a62
AK
724DEBUG
725DEVMAPPER
d0191583
JM
726DMDIR
727DMEVENTD
728DM_COMPAT
729DM_DEVICE_GID
730DM_DEVICE_MODE
731DM_DEVICE_UID
732DM_IOCTLS
733DM_LIB_VERSION
734FSADM
735GROUP
7a197a62 736HAVE_LIBDL
7a197a62 737HAVE_REALTIME
d0191583
JM
738HAVE_SELINUX
739INTL
740INTL_PACKAGE
741JOBS
742LDDEPS
743LIB_SUFFIX
7a197a62 744LOCALEDIR
d0191583
JM
745LVM1
746LVM1_FALLBACK
7a197a62 747CONFDIR
d0191583
JM
748LVM_VERSION
749MIRRORS
750OWNER
751PKGCONFIG
752POOL
753SNAPSHOTS
7a197a62 754STATICDIR
d0191583 755STATIC_LINK
66e941e8 756LIB_PTHREAD
7a197a62 757LTLIBOBJS'
ad6254c5 758ac_subst_files=''
fddafd51
ZK
759ac_user_opts='
760enable_option_checking
761with_user
762with_group
763enable_lvm1_fallback
764with_lvm1
765with_pool
766with_cluster
767with_snapshots
768with_mirrors
769enable_readline
770enable_realtime
771with_clvmd
772enable_debug
773with_optimisation
774enable_profiling
775enable_devmapper
776enable_o_direct
777enable_cmdlib
778enable_fsadm
779enable_dmeventd
780enable_static_link
781enable_selinux
782enable_nls
783with_localedir
784with_confdir
785with_staticdir
786with_dmdir
787'
7a197a62
AK
788 ac_precious_vars='build_alias
789host_alias
790target_alias
791CC
792CFLAGS
793LDFLAGS
25fbec5b 794LIBS
7a197a62
AK
795CPPFLAGS
796CPP'
797
795ca3e5
AK
798
799# Initialize some variables set by options.
ad6254c5
AK
800ac_init_help=
801ac_init_version=false
fddafd51
ZK
802ac_unrecognized_opts=
803ac_unrecognized_sep=
795ca3e5
AK
804# The variables have the same names as the options, with
805# dashes changed to underlines.
ad6254c5 806cache_file=/dev/null
795ca3e5 807exec_prefix=NONE
795ca3e5 808no_create=
795ca3e5
AK
809no_recursion=
810prefix=NONE
811program_prefix=NONE
812program_suffix=NONE
813program_transform_name=s,x,x,
814silent=
815site=
816srcdir=
795ca3e5
AK
817verbose=
818x_includes=NONE
819x_libraries=NONE
ad6254c5
AK
820
821# Installation directory options.
822# These are left unexpanded so users can "make install exec_prefix=/foo"
823# and all the variables that are supposed to be based on exec_prefix
824# by default will actually change.
825# Use braces instead of parens because sh, perl, etc. also accept them.
7a197a62 826# (The list follows the same order as the GNU Coding Standards.)
795ca3e5
AK
827bindir='${exec_prefix}/bin'
828sbindir='${exec_prefix}/sbin'
829libexecdir='${exec_prefix}/libexec'
7a197a62
AK
830datarootdir='${prefix}/share'
831datadir='${datarootdir}'
795ca3e5
AK
832sysconfdir='${prefix}/etc'
833sharedstatedir='${prefix}/com'
834localstatedir='${prefix}/var'
795ca3e5
AK
835includedir='${prefix}/include'
836oldincludedir='/usr/include'
7a197a62
AK
837docdir='${datarootdir}/doc/${PACKAGE}'
838infodir='${datarootdir}/info'
839htmldir='${docdir}'
840dvidir='${docdir}'
841pdfdir='${docdir}'
842psdir='${docdir}'
843libdir='${exec_prefix}/lib'
844localedir='${datarootdir}/locale'
845mandir='${datarootdir}/man'
795ca3e5 846
795ca3e5 847ac_prev=
7a197a62 848ac_dashdash=
795ca3e5
AK
849for ac_option
850do
795ca3e5
AK
851 # If the previous option needs an argument, assign it.
852 if test -n "$ac_prev"; then
7a197a62 853 eval $ac_prev=\$ac_option
795ca3e5
AK
854 ac_prev=
855 continue
856 fi
857
7a197a62
AK
858 case $ac_option in
859 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
860 *) ac_optarg=yes ;;
861 esac
795ca3e5
AK
862
863 # Accept the important Cygnus configure options, so we can diagnose typos.
864
7a197a62
AK
865 case $ac_dashdash$ac_option in
866 --)
867 ac_dashdash=yes ;;
795ca3e5
AK
868
869 -bindir | --bindir | --bindi | --bind | --bin | --bi)
870 ac_prev=bindir ;;
871 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
ad6254c5 872 bindir=$ac_optarg ;;
795ca3e5
AK
873
874 -build | --build | --buil | --bui | --bu)
ad6254c5 875 ac_prev=build_alias ;;
795ca3e5 876 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
ad6254c5 877 build_alias=$ac_optarg ;;
795ca3e5
AK
878
879 -cache-file | --cache-file | --cache-fil | --cache-fi \
880 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
881 ac_prev=cache_file ;;
882 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
883 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
ad6254c5
AK
884 cache_file=$ac_optarg ;;
885
886 --config-cache | -C)
887 cache_file=config.cache ;;
795ca3e5 888
7a197a62 889 -datadir | --datadir | --datadi | --datad)
795ca3e5 890 ac_prev=datadir ;;
7a197a62 891 -datadir=* | --datadir=* | --datadi=* | --datad=*)
ad6254c5 892 datadir=$ac_optarg ;;
795ca3e5 893
7a197a62
AK
894 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
895 | --dataroo | --dataro | --datar)
896 ac_prev=datarootdir ;;
897 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
898 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
899 datarootdir=$ac_optarg ;;
900
795ca3e5 901 -disable-* | --disable-*)
fddafd51 902 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
795ca3e5 903 # Reject names that are not valid shell variable names.
fddafd51
ZK
904 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
905 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
ad6254c5 906 { (exit 1); exit 1; }; }
fddafd51
ZK
907 ac_useropt_orig=$ac_useropt
908 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
909 case $ac_user_opts in
910 *"
911"enable_$ac_useropt"
912"*) ;;
913 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
914 ac_unrecognized_sep=', ';;
915 esac
916 eval enable_$ac_useropt=no ;;
7a197a62
AK
917
918 -docdir | --docdir | --docdi | --doc | --do)
919 ac_prev=docdir ;;
920 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
921 docdir=$ac_optarg ;;
922
923 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
924 ac_prev=dvidir ;;
925 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
926 dvidir=$ac_optarg ;;
795ca3e5
AK
927
928 -enable-* | --enable-*)
fddafd51 929 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
795ca3e5 930 # Reject names that are not valid shell variable names.
fddafd51
ZK
931 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
932 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
ad6254c5 933 { (exit 1); exit 1; }; }
fddafd51
ZK
934 ac_useropt_orig=$ac_useropt
935 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
936 case $ac_user_opts in
937 *"
938"enable_$ac_useropt"
939"*) ;;
940 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
941 ac_unrecognized_sep=', ';;
942 esac
943 eval enable_$ac_useropt=\$ac_optarg ;;
795ca3e5
AK
944
945 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
946 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
947 | --exec | --exe | --ex)
948 ac_prev=exec_prefix ;;
949 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
950 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
951 | --exec=* | --exe=* | --ex=*)
ad6254c5 952 exec_prefix=$ac_optarg ;;
795ca3e5
AK
953
954 -gas | --gas | --ga | --g)
955 # Obsolete; use --with-gas.
956 with_gas=yes ;;
957
ad6254c5
AK
958 -help | --help | --hel | --he | -h)
959 ac_init_help=long ;;
960 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
961 ac_init_help=recursive ;;
962 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
963 ac_init_help=short ;;
795ca3e5
AK
964
965 -host | --host | --hos | --ho)
ad6254c5 966 ac_prev=host_alias ;;
795ca3e5 967 -host=* | --host=* | --hos=* | --ho=*)
ad6254c5 968 host_alias=$ac_optarg ;;
795ca3e5 969
7a197a62
AK
970 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
971 ac_prev=htmldir ;;
972 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
973 | --ht=*)
974 htmldir=$ac_optarg ;;
975
795ca3e5
AK
976 -includedir | --includedir | --includedi | --included | --include \
977 | --includ | --inclu | --incl | --inc)
978 ac_prev=includedir ;;
979 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
980 | --includ=* | --inclu=* | --incl=* | --inc=*)
ad6254c5 981 includedir=$ac_optarg ;;
795ca3e5
AK
982
983 -infodir | --infodir | --infodi | --infod | --info | --inf)
984 ac_prev=infodir ;;
985 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
ad6254c5 986 infodir=$ac_optarg ;;
795ca3e5
AK
987
988 -libdir | --libdir | --libdi | --libd)
989 ac_prev=libdir ;;
990 -libdir=* | --libdir=* | --libdi=* | --libd=*)
ad6254c5 991 libdir=$ac_optarg ;;
795ca3e5
AK
992
993 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
994 | --libexe | --libex | --libe)
995 ac_prev=libexecdir ;;
996 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
997 | --libexe=* | --libex=* | --libe=*)
ad6254c5 998 libexecdir=$ac_optarg ;;
795ca3e5 999
7a197a62
AK
1000 -localedir | --localedir | --localedi | --localed | --locale)
1001 ac_prev=localedir ;;
1002 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1003 localedir=$ac_optarg ;;
1004
795ca3e5 1005 -localstatedir | --localstatedir | --localstatedi | --localstated \
7a197a62 1006 | --localstate | --localstat | --localsta | --localst | --locals)
795ca3e5
AK
1007 ac_prev=localstatedir ;;
1008 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
7a197a62 1009 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
ad6254c5 1010 localstatedir=$ac_optarg ;;
795ca3e5
AK
1011
1012 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1013 ac_prev=mandir ;;
1014 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
ad6254c5 1015 mandir=$ac_optarg ;;
795ca3e5
AK
1016
1017 -nfp | --nfp | --nf)
1018 # Obsolete; use --without-fp.
1019 with_fp=no ;;
1020
1021 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
ad6254c5 1022 | --no-cr | --no-c | -n)
795ca3e5
AK
1023 no_create=yes ;;
1024
1025 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1026 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1027 no_recursion=yes ;;
1028
1029 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1030 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1031 | --oldin | --oldi | --old | --ol | --o)
1032 ac_prev=oldincludedir ;;
1033 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1034 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1035 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
ad6254c5 1036 oldincludedir=$ac_optarg ;;
795ca3e5
AK
1037
1038 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1039 ac_prev=prefix ;;
1040 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
ad6254c5 1041 prefix=$ac_optarg ;;
795ca3e5
AK
1042
1043 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1044 | --program-pre | --program-pr | --program-p)
1045 ac_prev=program_prefix ;;
1046 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1047 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
ad6254c5 1048 program_prefix=$ac_optarg ;;
795ca3e5
AK
1049
1050 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1051 | --program-suf | --program-su | --program-s)
1052 ac_prev=program_suffix ;;
1053 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1054 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
ad6254c5 1055 program_suffix=$ac_optarg ;;
795ca3e5
AK
1056
1057 -program-transform-name | --program-transform-name \
1058 | --program-transform-nam | --program-transform-na \
1059 | --program-transform-n | --program-transform- \
1060 | --program-transform | --program-transfor \
1061 | --program-transfo | --program-transf \
1062 | --program-trans | --program-tran \
1063 | --progr-tra | --program-tr | --program-t)
1064 ac_prev=program_transform_name ;;
1065 -program-transform-name=* | --program-transform-name=* \
1066 | --program-transform-nam=* | --program-transform-na=* \
1067 | --program-transform-n=* | --program-transform-=* \
1068 | --program-transform=* | --program-transfor=* \
1069 | --program-transfo=* | --program-transf=* \
1070 | --program-trans=* | --program-tran=* \
1071 | --progr-tra=* | --program-tr=* | --program-t=*)
ad6254c5 1072 program_transform_name=$ac_optarg ;;
795ca3e5 1073
7a197a62
AK
1074 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1075 ac_prev=pdfdir ;;
1076 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1077 pdfdir=$ac_optarg ;;
1078
1079 -psdir | --psdir | --psdi | --psd | --ps)
1080 ac_prev=psdir ;;
1081 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1082 psdir=$ac_optarg ;;
1083
795ca3e5
AK
1084 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1085 | -silent | --silent | --silen | --sile | --sil)
1086 silent=yes ;;
1087
1088 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1089 ac_prev=sbindir ;;
1090 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1091 | --sbi=* | --sb=*)
ad6254c5 1092 sbindir=$ac_optarg ;;
795ca3e5
AK
1093
1094 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1095 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1096 | --sharedst | --shareds | --shared | --share | --shar \
1097 | --sha | --sh)
1098 ac_prev=sharedstatedir ;;
1099 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1100 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1101 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1102 | --sha=* | --sh=*)
ad6254c5 1103 sharedstatedir=$ac_optarg ;;
795ca3e5
AK
1104
1105 -site | --site | --sit)
1106 ac_prev=site ;;
1107 -site=* | --site=* | --sit=*)
ad6254c5 1108 site=$ac_optarg ;;
795ca3e5
AK
1109
1110 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1111 ac_prev=srcdir ;;
1112 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
ad6254c5 1113 srcdir=$ac_optarg ;;
795ca3e5
AK
1114
1115 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1116 | --syscon | --sysco | --sysc | --sys | --sy)
1117 ac_prev=sysconfdir ;;
1118 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1119 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
ad6254c5 1120 sysconfdir=$ac_optarg ;;
795ca3e5
AK
1121
1122 -target | --target | --targe | --targ | --tar | --ta | --t)
ad6254c5 1123 ac_prev=target_alias ;;
795ca3e5 1124 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
ad6254c5 1125 target_alias=$ac_optarg ;;
795ca3e5
AK
1126
1127 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1128 verbose=yes ;;
1129
ad6254c5
AK
1130 -version | --version | --versio | --versi | --vers | -V)
1131 ac_init_version=: ;;
795ca3e5
AK
1132
1133 -with-* | --with-*)
fddafd51 1134 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
795ca3e5 1135 # Reject names that are not valid shell variable names.
fddafd51
ZK
1136 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1137 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
ad6254c5 1138 { (exit 1); exit 1; }; }
fddafd51
ZK
1139 ac_useropt_orig=$ac_useropt
1140 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1141 case $ac_user_opts in
1142 *"
1143"with_$ac_useropt"
1144"*) ;;
1145 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1146 ac_unrecognized_sep=', ';;
1147 esac
1148 eval with_$ac_useropt=\$ac_optarg ;;
795ca3e5
AK
1149
1150 -without-* | --without-*)
fddafd51 1151 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
795ca3e5 1152 # Reject names that are not valid shell variable names.
fddafd51
ZK
1153 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1154 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
ad6254c5 1155 { (exit 1); exit 1; }; }
fddafd51
ZK
1156 ac_useropt_orig=$ac_useropt
1157 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1158 case $ac_user_opts in
1159 *"
1160"with_$ac_useropt"
1161"*) ;;
1162 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1163 ac_unrecognized_sep=', ';;
1164 esac
1165 eval with_$ac_useropt=no ;;
795ca3e5
AK
1166
1167 --x)
1168 # Obsolete; use --with-x.
1169 with_x=yes ;;
1170
1171 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1172 | --x-incl | --x-inc | --x-in | --x-i)
1173 ac_prev=x_includes ;;
1174 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1175 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
ad6254c5 1176 x_includes=$ac_optarg ;;
795ca3e5
AK
1177
1178 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1179 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1180 ac_prev=x_libraries ;;
1181 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1182 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
ad6254c5 1183 x_libraries=$ac_optarg ;;
795ca3e5 1184
fddafd51 1185 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
ad6254c5
AK
1186Try \`$0 --help' for more information." >&2
1187 { (exit 1); exit 1; }; }
795ca3e5
AK
1188 ;;
1189
ad6254c5
AK
1190 *=*)
1191 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1192 # Reject names that are not valid shell variable names.
1193 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
fddafd51 1194 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
ad6254c5 1195 { (exit 1); exit 1; }; }
7a197a62 1196 eval $ac_envvar=\$ac_optarg
ad6254c5
AK
1197 export $ac_envvar ;;
1198
795ca3e5 1199 *)
ad6254c5 1200 # FIXME: should be removed in autoconf 3.0.
fddafd51 1201 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
ad6254c5 1202 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
fddafd51 1203 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
ad6254c5 1204 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
795ca3e5
AK
1205 ;;
1206
1207 esac
1208done
1209
1210if test -n "$ac_prev"; then
ad6254c5 1211 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
fddafd51 1212 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
ad6254c5 1213 { (exit 1); exit 1; }; }
795ca3e5 1214fi
795ca3e5 1215
fddafd51
ZK
1216if test -n "$ac_unrecognized_opts"; then
1217 case $enable_option_checking in
1218 no) ;;
1219 fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
1220 { (exit 1); exit 1; }; } ;;
1221 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
1222 esac
1223fi
1224
1225# Check all directory arguments for consistency.
7a197a62
AK
1226for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1227 datadir sysconfdir sharedstatedir localstatedir includedir \
1228 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1229 libdir localedir mandir
795ca3e5 1230do
7a197a62 1231 eval ac_val=\$$ac_var
fddafd51
ZK
1232 # Remove trailing slashes.
1233 case $ac_val in
1234 */ )
1235 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1236 eval $ac_var=\$ac_val;;
1237 esac
1238 # Be sure to have absolute directory names.
ad6254c5 1239 case $ac_val in
7a197a62
AK
1240 [\\/$]* | ?:[\\/]* ) continue;;
1241 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
795ca3e5 1242 esac
fddafd51 1243 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
7a197a62 1244 { (exit 1); exit 1; }; }
795ca3e5
AK
1245done
1246
ad6254c5
AK
1247# There might be people who depend on the old broken behavior: `$host'
1248# used to hold the argument of --host etc.
1249# FIXME: To remove some day.
1250build=$build_alias
1251host=$host_alias
1252target=$target_alias
1253
1254# FIXME: To remove some day.
1255if test "x$host_alias" != x; then
1256 if test "x$build_alias" = x; then
1257 cross_compiling=maybe
fddafd51 1258 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
ad6254c5
AK
1259 If a cross compiler is detected then cross compile mode will be used." >&2
1260 elif test "x$build_alias" != "x$host_alias"; then
1261 cross_compiling=yes
1262 fi
1263fi
8106cdd5 1264
ad6254c5
AK
1265ac_tool_prefix=
1266test -n "$host_alias" && ac_tool_prefix=$host_alias-
1267
1268test "$silent" = yes && exec 6>/dev/null
795ca3e5 1269
795ca3e5 1270
7a197a62
AK
1271ac_pwd=`pwd` && test -n "$ac_pwd" &&
1272ac_ls_di=`ls -di .` &&
1273ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
fddafd51 1274 { $as_echo "$as_me: error: Working directory cannot be determined" >&2
7a197a62
AK
1275 { (exit 1); exit 1; }; }
1276test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
fddafd51 1277 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
7a197a62
AK
1278 { (exit 1); exit 1; }; }
1279
1280
795ca3e5
AK
1281# Find the source files, if location was not specified.
1282if test -z "$srcdir"; then
1283 ac_srcdir_defaulted=yes
7a197a62 1284 # Try the directory containing this script, then the parent directory.
fddafd51
ZK
1285 ac_confdir=`$as_dirname -- "$as_myself" ||
1286$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1287 X"$as_myself" : 'X\(//\)[^/]' \| \
1288 X"$as_myself" : 'X\(//\)$' \| \
1289 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1290$as_echo X"$as_myself" |
7a197a62
AK
1291 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1292 s//\1/
1293 q
1294 }
1295 /^X\(\/\/\)[^/].*/{
1296 s//\1/
1297 q
1298 }
1299 /^X\(\/\/\)$/{
1300 s//\1/
1301 q
1302 }
1303 /^X\(\/\).*/{
1304 s//\1/
1305 q
1306 }
1307 s/.*/./; q'`
795ca3e5 1308 srcdir=$ac_confdir
7a197a62 1309 if test ! -r "$srcdir/$ac_unique_file"; then
795ca3e5
AK
1310 srcdir=..
1311 fi
1312else
1313 ac_srcdir_defaulted=no
1314fi
7a197a62
AK
1315if test ! -r "$srcdir/$ac_unique_file"; then
1316 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
fddafd51 1317 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
ad6254c5 1318 { (exit 1); exit 1; }; }
795ca3e5 1319fi
7a197a62
AK
1320ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1321ac_abs_confdir=`(
fddafd51 1322 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
ad6254c5 1323 { (exit 1); exit 1; }; }
7a197a62
AK
1324 pwd)`
1325# When building in place, set srcdir=.
1326if test "$ac_abs_confdir" = "$ac_pwd"; then
1327 srcdir=.
1328fi
1329# Remove unnecessary trailing slashes from srcdir.
1330# Double slashes in file names in object file debugging info
1331# mess up M-x gdb in Emacs.
1332case $srcdir in
1333*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1334esac
1335for ac_var in $ac_precious_vars; do
1336 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1337 eval ac_env_${ac_var}_value=\$${ac_var}
1338 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1339 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1340done
ad6254c5
AK
1341
1342#
1343# Report the --help message.
1344#
1345if test "$ac_init_help" = "long"; then
1346 # Omit some internal or obsolete options to make the list less imposing.
1347 # This message is too long to be a string in the A/UX 3.1 sh.
1348 cat <<_ACEOF
1349\`configure' configures this package to adapt to many kinds of systems.
1350
1351Usage: $0 [OPTION]... [VAR=VALUE]...
1352
1353To assign environment variables (e.g., CC, CFLAGS...), specify them as
1354VAR=VALUE. See below for descriptions of some of the useful variables.
1355
1356Defaults for the options are specified in brackets.
1357
1358Configuration:
1359 -h, --help display this help and exit
1360 --help=short display options specific to this package
1361 --help=recursive display the short help of all the included packages
1362 -V, --version display version information and exit
1363 -q, --quiet, --silent do not print \`checking...' messages
1364 --cache-file=FILE cache test results in FILE [disabled]
1365 -C, --config-cache alias for \`--cache-file=config.cache'
1366 -n, --no-create do not create output files
1367 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1368
ad6254c5
AK
1369Installation directories:
1370 --prefix=PREFIX install architecture-independent files in PREFIX
fddafd51 1371 [$ac_default_prefix]
ad6254c5 1372 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
fddafd51 1373 [PREFIX]
ad6254c5
AK
1374
1375By default, \`make install' will install all the files in
1376\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1377an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1378for instance \`--prefix=\$HOME'.
1379
1380For better control, use the options below.
1381
1382Fine tuning of the installation directories:
fddafd51
ZK
1383 --bindir=DIR user executables [EPREFIX/bin]
1384 --sbindir=DIR system admin executables [EPREFIX/sbin]
1385 --libexecdir=DIR program executables [EPREFIX/libexec]
1386 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1387 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1388 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1389 --libdir=DIR object code libraries [EPREFIX/lib]
1390 --includedir=DIR C header files [PREFIX/include]
1391 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1392 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1393 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1394 --infodir=DIR info documentation [DATAROOTDIR/info]
1395 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1396 --mandir=DIR man documentation [DATAROOTDIR/man]
1397 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1398 --htmldir=DIR html documentation [DOCDIR]
1399 --dvidir=DIR dvi documentation [DOCDIR]
1400 --pdfdir=DIR pdf documentation [DOCDIR]
1401 --psdir=DIR ps documentation [DOCDIR]
ad6254c5
AK
1402_ACEOF
1403
1404 cat <<\_ACEOF
1405
1406System types:
1407 --build=BUILD configure for building on BUILD [guessed]
1408 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1409 --target=TARGET configure for building compilers for TARGET [HOST]
1410_ACEOF
1411fi
1412
1413if test -n "$ac_init_help"; then
1414
1415 cat <<\_ACEOF
1416
1417Optional Features:
fddafd51 1418 --disable-option-checking ignore unrecognized --enable/--with options
ad6254c5
AK
1419 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1420 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
ad6254c5
AK
1421 --enable-lvm1_fallback Use this to fall back and use LVM1 binaries if
1422 device-mapper is missing from the kernel
ad6254c5 1423 --enable-readline Enable readline support
3d978351 1424 --disable-realtime Disable realtime clock support
ad6254c5 1425 --enable-debug Enable debugging
fddafd51 1426 --enable-profiling compile with gcov profiling flags
ad6254c5
AK
1427 --disable-devmapper Disable device-mapper interaction
1428 --disable-o_direct Disable O_DIRECT
1429 --enable-cmdlib Build shared command library
1430 --enable-fsadm Enable fsadm
15d91f5a 1431 --enable-dmeventd Enable the device-mapper event daemon
d0191583
JM
1432 --enable-static_link Use this to link the tools to their libraries
1433 statically. Default is dynamic linking
1434 --disable-selinux Disable selinux support
ad6254c5
AK
1435 --enable-nls Enable Native Language Support
1436
1437Optional Packages:
1438 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1439 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
d0191583
JM
1440 --with-user=USER Set the owner of installed files [USER=root]
1441 --with-group=GROUP Set the group owner of installed files [GROUP=root]
ad6254c5
AK
1442 --with-lvm1=TYPE LVM1 metadata support: internal/shared/none
1443 TYPE=internal
1444 --with-pool=TYPE GFS pool read-only support: internal/shared/none
1445 TYPE=internal
1446 --with-cluster=TYPE Cluster LVM locking support: internal/shared/none
1447 TYPE=internal
1448 --with-snapshots=TYPE Snapshot support: internal/shared/none
1449 TYPE=internal
1450 --with-mirrors=TYPE Mirror support: internal/shared/none
1451 TYPE=internal
5c7fc7c4 1452 --with-clvmd=TYPE Build cluster LVM Daemon: cman/gulm/none/all
a266258f 1453 TYPE=none
d0191583
JM
1454 --with-optimisation=OPT C optimisation flag [OPT=-O2]
1455 --with-localedir=DIR Translation files in DIR [PREFIX/share/locale]
ad6254c5
AK
1456 --with-confdir=DIR Configuration files in DIR /etc
1457 --with-staticdir=DIR Static binary in DIR EXEC_PREFIX/sbin
33f732c5 1458 --with-dmdir=DIR Build against device-mapper source tree in DIR
ad6254c5
AK
1459
1460Some influential environment variables:
1461 CC C compiler command
1462 CFLAGS C compiler flags
1463 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1464 nonstandard directory <lib dir>
25fbec5b 1465 LIBS libraries to pass to the linker, e.g. -l<library>
7a197a62
AK
1466 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1467 you have headers in a nonstandard directory <include dir>
ad6254c5
AK
1468 CPP C preprocessor
1469
1470Use these variables to override the choices made by `configure' or to help
1471it to find libraries and programs with nonstandard names/locations.
1472
1473_ACEOF
7a197a62 1474ac_status=$?
ad6254c5
AK
1475fi
1476
1477if test "$ac_init_help" = "recursive"; then
1478 # If there are subdirs, report their specific --help.
ad6254c5 1479 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
fddafd51
ZK
1480 test -d "$ac_dir" ||
1481 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1482 continue
ad6254c5
AK
1483 ac_builddir=.
1484
7a197a62
AK
1485case "$ac_dir" in
1486.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1487*)
fddafd51 1488 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7a197a62 1489 # A ".." for each directory in $ac_dir_suffix.
fddafd51 1490 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7a197a62
AK
1491 case $ac_top_builddir_sub in
1492 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1493 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1494 esac ;;
1495esac
1496ac_abs_top_builddir=$ac_pwd
1497ac_abs_builddir=$ac_pwd$ac_dir_suffix
1498# for backward compatibility:
1499ac_top_builddir=$ac_top_build_prefix
ad6254c5
AK
1500
1501case $srcdir in
7a197a62 1502 .) # We are building in place.
ad6254c5 1503 ac_srcdir=.
7a197a62
AK
1504 ac_top_srcdir=$ac_top_builddir_sub
1505 ac_abs_top_srcdir=$ac_pwd ;;
1506 [\\/]* | ?:[\\/]* ) # Absolute name.
ad6254c5 1507 ac_srcdir=$srcdir$ac_dir_suffix;
7a197a62
AK
1508 ac_top_srcdir=$srcdir
1509 ac_abs_top_srcdir=$srcdir ;;
1510 *) # Relative name.
1511 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1512 ac_top_srcdir=$ac_top_build_prefix$srcdir
1513 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8a2fc586 1514esac
7a197a62
AK
1515ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1516
1517 cd "$ac_dir" || { ac_status=$?; continue; }
1518 # Check for guested configure.
1519 if test -f "$ac_srcdir/configure.gnu"; then
1520 echo &&
1521 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1522 elif test -f "$ac_srcdir/configure"; then
1523 echo &&
1524 $SHELL "$ac_srcdir/configure" --help=recursive
ad6254c5 1525 else
fddafd51 1526 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
7a197a62
AK
1527 fi || ac_status=$?
1528 cd "$ac_pwd" || { ac_status=$?; break; }
ad6254c5
AK
1529 done
1530fi
1531
7a197a62 1532test -n "$ac_init_help" && exit $ac_status
ad6254c5
AK
1533if $ac_init_version; then
1534 cat <<\_ACEOF
7a197a62 1535configure
fddafd51 1536generated by GNU Autoconf 2.62
ad6254c5 1537
7a197a62 1538Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
fddafd51 15392002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
ad6254c5
AK
1540This configure script is free software; the Free Software Foundation
1541gives unlimited permission to copy, distribute and modify it.
1542_ACEOF
7a197a62 1543 exit
ad6254c5 1544fi
7a197a62 1545cat >config.log <<_ACEOF
ad6254c5
AK
1546This file contains any messages produced by compilers while
1547running configure, to aid debugging if configure makes a mistake.
1548
1549It was created by $as_me, which was
fddafd51 1550generated by GNU Autoconf 2.62. Invocation command line was
ad6254c5
AK
1551
1552 $ $0 $@
1553
1554_ACEOF
7a197a62 1555exec 5>>config.log
ad6254c5
AK
1556{
1557cat <<_ASUNAME
1558## --------- ##
1559## Platform. ##
1560## --------- ##
1561
1562hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1563uname -m = `(uname -m) 2>/dev/null || echo unknown`
1564uname -r = `(uname -r) 2>/dev/null || echo unknown`
1565uname -s = `(uname -s) 2>/dev/null || echo unknown`
1566uname -v = `(uname -v) 2>/dev/null || echo unknown`
1567
1568/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1569/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1570
1571/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1572/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1573/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
7a197a62 1574/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
ad6254c5
AK
1575/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1576/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1577/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1578
1579_ASUNAME
1580
1581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1582for as_dir in $PATH
1583do
1584 IFS=$as_save_IFS
1585 test -z "$as_dir" && as_dir=.
fddafd51 1586 $as_echo "PATH: $as_dir"
ad6254c5 1587done
7a197a62 1588IFS=$as_save_IFS
ad6254c5
AK
1589
1590} >&5
1591
1592cat >&5 <<_ACEOF
1593
1594
1595## ----------- ##
1596## Core tests. ##
1597## ----------- ##
1598
1599_ACEOF
1600
1601
1602# Keep a trace of the command line.
1603# Strip out --no-create and --no-recursion so they do not pile up.
1604# Strip out --silent because we don't want to record it for future runs.
1605# Also quote any args containing shell meta-characters.
1606# Make two passes to allow for proper duplicate-argument suppression.
1607ac_configure_args=
1608ac_configure_args0=
1609ac_configure_args1=
ad6254c5
AK
1610ac_must_keep_next=false
1611for ac_pass in 1 2
1612do
1613 for ac_arg
1614 do
1615 case $ac_arg in
1616 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1617 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1618 | -silent | --silent | --silen | --sile | --sil)
1619 continue ;;
7a197a62 1620 *\'*)
fddafd51 1621 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
ad6254c5
AK
1622 esac
1623 case $ac_pass in
1624 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1625 2)
1626 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1627 if test $ac_must_keep_next = true; then
8a2fc586 1628 ac_must_keep_next=false # Got value, back to normal.
ad6254c5 1629 else
8a2fc586
AK
1630 case $ac_arg in
1631 *=* | --config-cache | -C | -disable-* | --disable-* \
1632 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1633 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1634 | -with-* | --with-* | -without-* | --without-* | --x)
1635 case "$ac_configure_args0 " in
1636 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1637 esac
1638 ;;
1639 -* ) ac_must_keep_next=true ;;
1640 esac
ad6254c5 1641 fi
7a197a62 1642 ac_configure_args="$ac_configure_args '$ac_arg'"
ad6254c5
AK
1643 ;;
1644 esac
1645 done
1646done
1647$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1648$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1649
1650# When interrupted or exit'd, cleanup temporary files, and complete
1651# config.log. We remove comments because anyway the quotes in there
1652# would cause problems or look ugly.
7a197a62
AK
1653# WARNING: Use '\'' to represent an apostrophe within the trap.
1654# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
ad6254c5
AK
1655trap 'exit_status=$?
1656 # Save into config.log some information that might help in debugging.
1657 {
1658 echo
1659
1660 cat <<\_ASBOX
1661## ---------------- ##
1662## Cache variables. ##
1663## ---------------- ##
1664_ASBOX
1665 echo
1666 # The following way of writing the cache mishandles newlines in values,
7a197a62
AK
1667(
1668 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1669 eval ac_val=\$$ac_var
1670 case $ac_val in #(
1671 *${as_nl}*)
1672 case $ac_var in #(
fddafd51
ZK
1673 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1674$as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
7a197a62
AK
1675 esac
1676 case $ac_var in #(
1677 _ | IFS | as_nl) ;; #(
fddafd51 1678 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7a197a62
AK
1679 *) $as_unset $ac_var ;;
1680 esac ;;
1681 esac
1682 done
ad6254c5 1683 (set) 2>&1 |
7a197a62
AK
1684 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1685 *${as_nl}ac_space=\ *)
ad6254c5 1686 sed -n \
7a197a62
AK
1687 "s/'\''/'\''\\\\'\'''\''/g;
1688 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1689 ;; #(
ad6254c5 1690 *)
7a197a62 1691 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
ad6254c5 1692 ;;
7a197a62
AK
1693 esac |
1694 sort
1695)
ad6254c5
AK
1696 echo
1697
1698 cat <<\_ASBOX
1699## ----------------- ##
1700## Output variables. ##
1701## ----------------- ##
1702_ASBOX
1703 echo
1704 for ac_var in $ac_subst_vars
1705 do
7a197a62
AK
1706 eval ac_val=\$$ac_var
1707 case $ac_val in
fddafd51 1708 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
7a197a62 1709 esac
fddafd51 1710 $as_echo "$ac_var='\''$ac_val'\''"
ad6254c5
AK
1711 done | sort
1712 echo
1713
1714 if test -n "$ac_subst_files"; then
1715 cat <<\_ASBOX
7a197a62
AK
1716## ------------------- ##
1717## File substitutions. ##
1718## ------------------- ##
ad6254c5
AK
1719_ASBOX
1720 echo
1721 for ac_var in $ac_subst_files
1722 do
7a197a62
AK
1723 eval ac_val=\$$ac_var
1724 case $ac_val in
fddafd51 1725 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
7a197a62 1726 esac
fddafd51 1727 $as_echo "$ac_var='\''$ac_val'\''"
ad6254c5
AK
1728 done | sort
1729 echo
1730 fi
1731
1732 if test -s confdefs.h; then
1733 cat <<\_ASBOX
1734## ----------- ##
1735## confdefs.h. ##
1736## ----------- ##
1737_ASBOX
1738 echo
7a197a62 1739 cat confdefs.h
ad6254c5
AK
1740 echo
1741 fi
1742 test "$ac_signal" != 0 &&
fddafd51
ZK
1743 $as_echo "$as_me: caught signal $ac_signal"
1744 $as_echo "$as_me: exit $exit_status"
ad6254c5 1745 } >&5
7a197a62
AK
1746 rm -f core *.core core.conftest.* &&
1747 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
ad6254c5 1748 exit $exit_status
7a197a62 1749' 0
ad6254c5
AK
1750for ac_signal in 1 2 13 15; do
1751 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1752done
1753ac_signal=0
1754
1755# confdefs.h avoids OS command line length limits that DEFS can exceed.
7a197a62 1756rm -f -r conftest* confdefs.h
ad6254c5
AK
1757
1758# Predefined preprocessor variables.
1759
1760cat >>confdefs.h <<_ACEOF
1761#define PACKAGE_NAME "$PACKAGE_NAME"
1762_ACEOF
1763
1764
1765cat >>confdefs.h <<_ACEOF
1766#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1767_ACEOF
1768
1769
1770cat >>confdefs.h <<_ACEOF
1771#define PACKAGE_VERSION "$PACKAGE_VERSION"
1772_ACEOF
8106cdd5 1773
ad6254c5
AK
1774
1775cat >>confdefs.h <<_ACEOF
1776#define PACKAGE_STRING "$PACKAGE_STRING"
1777_ACEOF
1778
1779
1780cat >>confdefs.h <<_ACEOF
1781#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1782_ACEOF
1783
1784
1785# Let the site file select an alternate cache file if it wants to.
fddafd51
ZK
1786# Prefer an explicitly selected file to automatically selected ones.
1787ac_site_file1=NONE
1788ac_site_file2=NONE
7a197a62 1789if test -n "$CONFIG_SITE"; then
fddafd51 1790 ac_site_file1=$CONFIG_SITE
7a197a62 1791elif test "x$prefix" != xNONE; then
fddafd51
ZK
1792 ac_site_file1=$prefix/share/config.site
1793 ac_site_file2=$prefix/etc/config.site
7a197a62 1794else
fddafd51
ZK
1795 ac_site_file1=$ac_default_prefix/share/config.site
1796 ac_site_file2=$ac_default_prefix/etc/config.site
795ca3e5 1797fi
fddafd51 1798for ac_site_file in "$ac_site_file1" "$ac_site_file2"
7a197a62 1799do
fddafd51 1800 test "x$ac_site_file" = xNONE && continue
795ca3e5 1801 if test -r "$ac_site_file"; then
fddafd51
ZK
1802 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1803$as_echo "$as_me: loading site script $ac_site_file" >&6;}
ad6254c5 1804 sed 's/^/| /' "$ac_site_file" >&5
795ca3e5
AK
1805 . "$ac_site_file"
1806 fi
1807done
1808
1809if test -r "$cache_file"; then
ad6254c5
AK
1810 # Some versions of bash will fail to source /dev/null (special
1811 # files actually), so we avoid doing that.
1812 if test -f "$cache_file"; then
fddafd51
ZK
1813 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1814$as_echo "$as_me: loading cache $cache_file" >&6;}
ad6254c5 1815 case $cache_file in
7a197a62
AK
1816 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1817 *) . "./$cache_file";;
ad6254c5
AK
1818 esac
1819 fi
795ca3e5 1820else
fddafd51
ZK
1821 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1822$as_echo "$as_me: creating cache $cache_file" >&6;}
ad6254c5
AK
1823 >$cache_file
1824fi
1825
1826# Check that the precious variables saved in the cache have kept the same
1827# value.
1828ac_cache_corrupted=false
7a197a62 1829for ac_var in $ac_precious_vars; do
ad6254c5
AK
1830 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1831 eval ac_new_set=\$ac_env_${ac_var}_set
7a197a62
AK
1832 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1833 eval ac_new_val=\$ac_env_${ac_var}_value
ad6254c5
AK
1834 case $ac_old_set,$ac_new_set in
1835 set,)
fddafd51
ZK
1836 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1837$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
ad6254c5
AK
1838 ac_cache_corrupted=: ;;
1839 ,set)
fddafd51
ZK
1840 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1841$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
ad6254c5
AK
1842 ac_cache_corrupted=: ;;
1843 ,);;
1844 *)
1845 if test "x$ac_old_val" != "x$ac_new_val"; then
fddafd51
ZK
1846 # differences in whitespace do not lead to failure.
1847 ac_old_val_w=`echo x $ac_old_val`
1848 ac_new_val_w=`echo x $ac_new_val`
1849 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1850 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1851$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1852 ac_cache_corrupted=:
1853 else
1854 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1855$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1856 eval $ac_var=\$ac_old_val
1857 fi
1858 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1859$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1860 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1861$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
ad6254c5
AK
1862 fi;;
1863 esac
1864 # Pass precious variables to config.status.
1865 if test "$ac_new_set" = set; then
1866 case $ac_new_val in
fddafd51 1867 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
ad6254c5
AK
1868 *) ac_arg=$ac_var=$ac_new_val ;;
1869 esac
1870 case " $ac_configure_args " in
1871 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1872 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1873 esac
1874 fi
1875done
1876if $ac_cache_corrupted; then
fddafd51
ZK
1877 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1878$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1879 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1880$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
ad6254c5 1881 { (exit 1); exit 1; }; }
795ca3e5
AK
1882fi
1883
ad6254c5
AK
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
7a197a62
AK
1900ac_ext=c
1901ac_cpp='$CPP $CPPFLAGS'
1902ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1903ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1904ac_compiler_gnu=$ac_cv_c_compiler_gnu
ad6254c5 1905
795ca3e5
AK
1906
1907
7a197a62 1908ac_config_headers="$ac_config_headers lib/misc/configure.h"
72b2cb61
AK
1909
1910
80992638 1911################################################################################
795ca3e5 1912ac_aux_dir=
7a197a62
AK
1913for ac_dir in autoconf "$srcdir"/autoconf; do
1914 if test -f "$ac_dir/install-sh"; then
795ca3e5
AK
1915 ac_aux_dir=$ac_dir
1916 ac_install_sh="$ac_aux_dir/install-sh -c"
1917 break
7a197a62 1918 elif test -f "$ac_dir/install.sh"; then
795ca3e5
AK
1919 ac_aux_dir=$ac_dir
1920 ac_install_sh="$ac_aux_dir/install.sh -c"
1921 break
7a197a62 1922 elif test -f "$ac_dir/shtool"; then
ad6254c5
AK
1923 ac_aux_dir=$ac_dir
1924 ac_install_sh="$ac_aux_dir/shtool install -c"
1925 break
795ca3e5
AK
1926 fi
1927done
1928if test -z "$ac_aux_dir"; then
fddafd51
ZK
1929 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1930$as_echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
ad6254c5 1931 { (exit 1); exit 1; }; }
795ca3e5 1932fi
7a197a62
AK
1933
1934# These three variables are undocumented and unsupported,
1935# and are intended to be withdrawn in a future Autoconf release.
1936# They can cause serious problems if a builder's source tree is in a directory
1937# whose full name contains unusual characters.
1938ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1939ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1940ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1941
8ce0cbda
AK
1942
1943
ad6254c5 1944################################################################################
8ce0cbda 1945# Make sure we can run config.sub.
7a197a62 1946$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
fddafd51
ZK
1947 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1948$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
ad6254c5
AK
1949 { (exit 1); exit 1; }; }
1950
fddafd51
ZK
1951{ $as_echo "$as_me:$LINENO: checking build system type" >&5
1952$as_echo_n "checking build system type... " >&6; }
ad6254c5 1953if test "${ac_cv_build+set}" = set; then
fddafd51 1954 $as_echo_n "(cached) " >&6
ad6254c5 1955else
7a197a62
AK
1956 ac_build_alias=$build_alias
1957test "x$ac_build_alias" = x &&
1958 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1959test "x$ac_build_alias" = x &&
fddafd51
ZK
1960 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1961$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
ad6254c5 1962 { (exit 1); exit 1; }; }
7a197a62 1963ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
fddafd51
ZK
1964 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1965$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
ad6254c5
AK
1966 { (exit 1); exit 1; }; }
1967
1968fi
fddafd51
ZK
1969{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1970$as_echo "$ac_cv_build" >&6; }
7a197a62
AK
1971case $ac_cv_build in
1972*-*-*) ;;
fddafd51
ZK
1973*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1974$as_echo "$as_me: error: invalid value of canonical build" >&2;}
7a197a62
AK
1975 { (exit 1); exit 1; }; };;
1976esac
ad6254c5 1977build=$ac_cv_build
7a197a62
AK
1978ac_save_IFS=$IFS; IFS='-'
1979set x $ac_cv_build
1980shift
1981build_cpu=$1
1982build_vendor=$2
1983shift; shift
1984# Remember, the first character of IFS is used to create $*,
1985# except with old shells:
1986build_os=$*
1987IFS=$ac_save_IFS
1988case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
ad6254c5
AK
1989
1990
fddafd51
ZK
1991{ $as_echo "$as_me:$LINENO: checking host system type" >&5
1992$as_echo_n "checking host system type... " >&6; }
ad6254c5 1993if test "${ac_cv_host+set}" = set; then
fddafd51 1994 $as_echo_n "(cached) " >&6
ad6254c5 1995else
7a197a62
AK
1996 if test "x$host_alias" = x; then
1997 ac_cv_host=$ac_cv_build
1998else
1999 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
fddafd51
ZK
2000 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2001$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
ad6254c5 2002 { (exit 1); exit 1; }; }
7a197a62 2003fi
ad6254c5
AK
2004
2005fi
fddafd51
ZK
2006{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2007$as_echo "$ac_cv_host" >&6; }
7a197a62
AK
2008case $ac_cv_host in
2009*-*-*) ;;
fddafd51
ZK
2010*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2011$as_echo "$as_me: error: invalid value of canonical host" >&2;}
7a197a62
AK
2012 { (exit 1); exit 1; }; };;
2013esac
ad6254c5 2014host=$ac_cv_host
7a197a62
AK
2015ac_save_IFS=$IFS; IFS='-'
2016set x $ac_cv_host
2017shift
2018host_cpu=$1
2019host_vendor=$2
2020shift; shift
2021# Remember, the first character of IFS is used to create $*,
2022# except with old shells:
2023host_os=$*
2024IFS=$ac_save_IFS
2025case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
ad6254c5
AK
2026
2027
fddafd51
ZK
2028{ $as_echo "$as_me:$LINENO: checking target system type" >&5
2029$as_echo_n "checking target system type... " >&6; }
ad6254c5 2030if test "${ac_cv_target+set}" = set; then
fddafd51 2031 $as_echo_n "(cached) " >&6
ad6254c5 2032else
7a197a62
AK
2033 if test "x$target_alias" = x; then
2034 ac_cv_target=$ac_cv_host
2035else
2036 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
fddafd51
ZK
2037 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2038$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
ad6254c5 2039 { (exit 1); exit 1; }; }
7a197a62 2040fi
8ce0cbda 2041
ad6254c5 2042fi
fddafd51
ZK
2043{ $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2044$as_echo "$ac_cv_target" >&6; }
7a197a62
AK
2045case $ac_cv_target in
2046*-*-*) ;;
fddafd51
ZK
2047*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2048$as_echo "$as_me: error: invalid value of canonical target" >&2;}
7a197a62
AK
2049 { (exit 1); exit 1; }; };;
2050esac
ad6254c5 2051target=$ac_cv_target
7a197a62
AK
2052ac_save_IFS=$IFS; IFS='-'
2053set x $ac_cv_target
2054shift
2055target_cpu=$1
2056target_vendor=$2
2057shift; shift
2058# Remember, the first character of IFS is used to create $*,
2059# except with old shells:
2060target_os=$*
2061IFS=$ac_save_IFS
2062case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
8ce0cbda 2063
8ce0cbda 2064
ad6254c5
AK
2065# The aliases save the names the user supplied, while $host etc.
2066# will get canonicalized.
2067test -n "$target_alias" &&
8ce0cbda
AK
2068 test "$program_prefix$program_suffix$program_transform_name" = \
2069 NONENONEs,x,x, &&
2070 program_prefix=${target_alias}-
2071
8ce0cbda
AK
2072case "$host_os" in
2073 linux*)
8ce0cbda
AK
2074 COPTIMISE_FLAG="-O2"
2075 CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym"
2076 CLDWHOLEARCHIVE="-Wl,-whole-archive"
2077 CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive"
2078 LDDEPS="$LDDEPS .export.sym"
2079 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
d0191583 2080 LIB_SUFFIX=so
8ce0cbda
AK
2081 DEVMAPPER=yes
2082 ODIRECT=yes
d0191583 2083 DM_IOCTLS=yes
8ce0cbda 2084 SELINUX=yes
8b1a3214 2085 REALTIME=yes
8ce0cbda 2086 CLUSTER=internal
d0191583
JM
2087 FSADM=no
2088 ;;
8ce0cbda
AK
2089 darwin*)
2090 CFLAGS="$CFLAGS -no-cpp-precomp -fno-common"
2091 COPTIMISE_FLAG="-O2"
2092 CLDFLAGS="$CLDFLAGS"
2093 CLDWHOLEARCHIVE="-all_load"
2094 CLDNOWHOLEARCHIVE=
d0191583 2095 LIB_SUFFIX=dylib
a653923f 2096 DEVMAPPER=yes
8ce0cbda 2097 ODIRECT=no
d0191583 2098 DM_IOCTLS=no
8ce0cbda 2099 SELINUX=no
8b1a3214 2100 REALTIME=no
8ce0cbda 2101 CLUSTER=none
d0191583
JM
2102 FSADM=no
2103 ;;
8ce0cbda
AK
2104esac
2105
80992638 2106################################################################################
ad6254c5 2107for ac_prog in gawk mawk nawk awk
795ca3e5 2108do
ad6254c5 2109 # Extract the first word of "$ac_prog", so it can be a program name with args.
795ca3e5 2110set dummy $ac_prog; ac_word=$2
fddafd51
ZK
2111{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2112$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2113if test "${ac_cv_prog_AWK+set}" = set; then
fddafd51 2114 $as_echo_n "(cached) " >&6
795ca3e5
AK
2115else
2116 if test -n "$AWK"; then
2117 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2118else
ad6254c5
AK
2119as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2120for as_dir in $PATH
2121do
2122 IFS=$as_save_IFS
2123 test -z "$as_dir" && as_dir=.
2124 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2126 ac_cv_prog_AWK="$ac_prog"
fddafd51 2127 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2128 break 2
2129 fi
2130done
2131done
7a197a62 2132IFS=$as_save_IFS
ad6254c5 2133
795ca3e5
AK
2134fi
2135fi
ad6254c5 2136AWK=$ac_cv_prog_AWK
795ca3e5 2137if test -n "$AWK"; then
fddafd51
ZK
2138 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2139$as_echo "$AWK" >&6; }
795ca3e5 2140else
fddafd51
ZK
2141 { $as_echo "$as_me:$LINENO: result: no" >&5
2142$as_echo "no" >&6; }
795ca3e5
AK
2143fi
2144
7a197a62 2145
ad6254c5
AK
2146 test -n "$AWK" && break
2147done
2148
2149ac_ext=c
2150ac_cpp='$CPP $CPPFLAGS'
2151ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2152ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2153ac_compiler_gnu=$ac_cv_c_compiler_gnu
2154if test -n "$ac_tool_prefix"; then
2155 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2156set dummy ${ac_tool_prefix}gcc; ac_word=$2
fddafd51
ZK
2157{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2158$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2159if test "${ac_cv_prog_CC+set}" = set; then
fddafd51 2160 $as_echo_n "(cached) " >&6
ad6254c5
AK
2161else
2162 if test -n "$CC"; then
2163 ac_cv_prog_CC="$CC" # Let the user override the test.
2164else
2165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2166for as_dir in $PATH
2167do
2168 IFS=$as_save_IFS
2169 test -z "$as_dir" && as_dir=.
2170 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2172 ac_cv_prog_CC="${ac_tool_prefix}gcc"
fddafd51 2173 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2174 break 2
2175 fi
2176done
8106cdd5 2177done
7a197a62 2178IFS=$as_save_IFS
8106cdd5 2179
ad6254c5
AK
2180fi
2181fi
2182CC=$ac_cv_prog_CC
2183if test -n "$CC"; then
fddafd51
ZK
2184 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2185$as_echo "$CC" >&6; }
ad6254c5 2186else
fddafd51
ZK
2187 { $as_echo "$as_me:$LINENO: result: no" >&5
2188$as_echo "no" >&6; }
ad6254c5
AK
2189fi
2190
7a197a62 2191
ad6254c5
AK
2192fi
2193if test -z "$ac_cv_prog_CC"; then
2194 ac_ct_CC=$CC
2195 # Extract the first word of "gcc", so it can be a program name with args.
8106cdd5 2196set dummy gcc; ac_word=$2
fddafd51
ZK
2197{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2198$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2199if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
fddafd51 2200 $as_echo_n "(cached) " >&6
ad6254c5
AK
2201else
2202 if test -n "$ac_ct_CC"; then
2203 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2204else
2205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2206for as_dir in $PATH
2207do
2208 IFS=$as_save_IFS
2209 test -z "$as_dir" && as_dir=.
2210 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2212 ac_cv_prog_ac_ct_CC="gcc"
fddafd51 2213 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2214 break 2
2215 fi
2216done
2217done
7a197a62 2218IFS=$as_save_IFS
ad6254c5
AK
2219
2220fi
2221fi
2222ac_ct_CC=$ac_cv_prog_ac_ct_CC
2223if test -n "$ac_ct_CC"; then
fddafd51
ZK
2224 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2225$as_echo "$ac_ct_CC" >&6; }
ad6254c5 2226else
fddafd51
ZK
2227 { $as_echo "$as_me:$LINENO: result: no" >&5
2228$as_echo "no" >&6; }
ad6254c5
AK
2229fi
2230
7a197a62
AK
2231 if test "x$ac_ct_CC" = x; then
2232 CC=""
2233 else
2234 case $cross_compiling:$ac_tool_warned in
2235yes:)
fddafd51 2236{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7a197a62
AK
2237whose name does not start with the host triplet. If you think this
2238configuration is useful to you, please write to autoconf@gnu.org." >&5
fddafd51 2239$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7a197a62
AK
2240whose name does not start with the host triplet. If you think this
2241configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2242ac_tool_warned=yes ;;
2243esac
2244 CC=$ac_ct_CC
2245 fi
ad6254c5
AK
2246else
2247 CC="$ac_cv_prog_CC"
2248fi
2249
2250if test -z "$CC"; then
7a197a62
AK
2251 if test -n "$ac_tool_prefix"; then
2252 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
ad6254c5 2253set dummy ${ac_tool_prefix}cc; ac_word=$2
fddafd51
ZK
2254{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2255$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2256if test "${ac_cv_prog_CC+set}" = set; then
fddafd51 2257 $as_echo_n "(cached) " >&6
8106cdd5
AK
2258else
2259 if test -n "$CC"; then
2260 ac_cv_prog_CC="$CC" # Let the user override the test.
2261else
ad6254c5
AK
2262as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2263for as_dir in $PATH
2264do
2265 IFS=$as_save_IFS
2266 test -z "$as_dir" && as_dir=.
2267 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2269 ac_cv_prog_CC="${ac_tool_prefix}cc"
fddafd51 2270 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2271 break 2
2272 fi
2273done
2274done
7a197a62 2275IFS=$as_save_IFS
ad6254c5 2276
8106cdd5
AK
2277fi
2278fi
ad6254c5 2279CC=$ac_cv_prog_CC
8106cdd5 2280if test -n "$CC"; then
fddafd51
ZK
2281 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2282$as_echo "$CC" >&6; }
ad6254c5 2283else
fddafd51
ZK
2284 { $as_echo "$as_me:$LINENO: result: no" >&5
2285$as_echo "no" >&6; }
ad6254c5
AK
2286fi
2287
8106cdd5 2288
7a197a62 2289 fi
ad6254c5 2290fi
795ca3e5
AK
2291if test -z "$CC"; then
2292 # Extract the first word of "cc", so it can be a program name with args.
2293set dummy cc; ac_word=$2
fddafd51
ZK
2294{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2295$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2296if test "${ac_cv_prog_CC+set}" = set; then
fddafd51 2297 $as_echo_n "(cached) " >&6
795ca3e5
AK
2298else
2299 if test -n "$CC"; then
2300 ac_cv_prog_CC="$CC" # Let the user override the test.
2301else
795ca3e5 2302 ac_prog_rejected=no
ad6254c5
AK
2303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2304for as_dir in $PATH
2305do
2306 IFS=$as_save_IFS
2307 test -z "$as_dir" && as_dir=.
2308 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5
AK
2310 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2311 ac_prog_rejected=yes
2312 continue
2313 fi
2314 ac_cv_prog_CC="cc"
fddafd51 2315 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2316 break 2
2317 fi
2318done
2319done
7a197a62 2320IFS=$as_save_IFS
ad6254c5 2321
795ca3e5
AK
2322if test $ac_prog_rejected = yes; then
2323 # We found a bogon in the path, so make sure we never use it.
2324 set dummy $ac_cv_prog_CC
2325 shift
ad6254c5 2326 if test $# != 0; then
795ca3e5
AK
2327 # We chose a different compiler from the bogus one.
2328 # However, it has the same basename, so the bogon will be chosen
2329 # first if we set CC to just the basename; use the full file name.
2330 shift
ad6254c5 2331 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
795ca3e5
AK
2332 fi
2333fi
2334fi
2335fi
ad6254c5 2336CC=$ac_cv_prog_CC
795ca3e5 2337if test -n "$CC"; then
fddafd51
ZK
2338 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2339$as_echo "$CC" >&6; }
795ca3e5 2340else
fddafd51
ZK
2341 { $as_echo "$as_me:$LINENO: result: no" >&5
2342$as_echo "no" >&6; }
795ca3e5
AK
2343fi
2344
7a197a62 2345
ad6254c5
AK
2346fi
2347if test -z "$CC"; then
2348 if test -n "$ac_tool_prefix"; then
7a197a62 2349 for ac_prog in cl.exe
ad6254c5
AK
2350 do
2351 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2352set dummy $ac_tool_prefix$ac_prog; ac_word=$2
fddafd51
ZK
2353{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2354$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2355if test "${ac_cv_prog_CC+set}" = set; then
fddafd51 2356 $as_echo_n "(cached) " >&6
795ca3e5
AK
2357else
2358 if test -n "$CC"; then
2359 ac_cv_prog_CC="$CC" # Let the user override the test.
2360else
ad6254c5
AK
2361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2362for as_dir in $PATH
2363do
2364 IFS=$as_save_IFS
2365 test -z "$as_dir" && as_dir=.
2366 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2368 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
fddafd51 2369 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2370 break 2
2371 fi
2372done
2373done
7a197a62 2374IFS=$as_save_IFS
ad6254c5 2375
795ca3e5
AK
2376fi
2377fi
ad6254c5 2378CC=$ac_cv_prog_CC
795ca3e5 2379if test -n "$CC"; then
fddafd51
ZK
2380 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2381$as_echo "$CC" >&6; }
795ca3e5 2382else
fddafd51
ZK
2383 { $as_echo "$as_me:$LINENO: result: no" >&5
2384$as_echo "no" >&6; }
795ca3e5 2385fi
ad6254c5 2386
7a197a62 2387
ad6254c5
AK
2388 test -n "$CC" && break
2389 done
2390fi
2391if test -z "$CC"; then
2392 ac_ct_CC=$CC
7a197a62 2393 for ac_prog in cl.exe
ad6254c5
AK
2394do
2395 # Extract the first word of "$ac_prog", so it can be a program name with args.
2396set dummy $ac_prog; ac_word=$2
fddafd51
ZK
2397{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2398$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2399if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
fddafd51 2400 $as_echo_n "(cached) " >&6
ad6254c5
AK
2401else
2402 if test -n "$ac_ct_CC"; then
2403 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2404else
2405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2406for as_dir in $PATH
2407do
2408 IFS=$as_save_IFS
2409 test -z "$as_dir" && as_dir=.
2410 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2412 ac_cv_prog_ac_ct_CC="$ac_prog"
fddafd51 2413 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5 2414 break 2
795ca3e5 2415 fi
ad6254c5
AK
2416done
2417done
7a197a62 2418IFS=$as_save_IFS
ad6254c5
AK
2419
2420fi
2421fi
2422ac_ct_CC=$ac_cv_prog_ac_ct_CC
2423if test -n "$ac_ct_CC"; then
fddafd51
ZK
2424 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2425$as_echo "$ac_ct_CC" >&6; }
ad6254c5 2426else
fddafd51
ZK
2427 { $as_echo "$as_me:$LINENO: result: no" >&5
2428$as_echo "no" >&6; }
795ca3e5
AK
2429fi
2430
7a197a62 2431
ad6254c5
AK
2432 test -n "$ac_ct_CC" && break
2433done
795ca3e5 2434
7a197a62
AK
2435 if test "x$ac_ct_CC" = x; then
2436 CC=""
2437 else
2438 case $cross_compiling:$ac_tool_warned in
2439yes:)
fddafd51 2440{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7a197a62
AK
2441whose name does not start with the host triplet. If you think this
2442configuration is useful to you, please write to autoconf@gnu.org." >&5
fddafd51 2443$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7a197a62
AK
2444whose name does not start with the host triplet. If you think this
2445configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2446ac_tool_warned=yes ;;
2447esac
2448 CC=$ac_ct_CC
2449 fi
ad6254c5
AK
2450fi
2451
2452fi
2453
2454
fddafd51 2455test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
ad6254c5 2456See \`config.log' for more details." >&5
fddafd51 2457$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
ad6254c5
AK
2458See \`config.log' for more details." >&2;}
2459 { (exit 1); exit 1; }; }
2460
2461# Provide some information about the compiler.
fddafd51
ZK
2462$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2463set X $ac_compile
2464ac_compiler=$2
7a197a62
AK
2465{ (ac_try="$ac_compiler --version >&5"
2466case "(($ac_try" in
2467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2468 *) ac_try_echo=$ac_try;;
2469esac
fddafd51
ZK
2470eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2471$as_echo "$ac_try_echo") >&5
7a197a62 2472 (eval "$ac_compiler --version >&5") 2>&5
ad6254c5 2473 ac_status=$?
fddafd51 2474 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2475 (exit $ac_status); }
7a197a62
AK
2476{ (ac_try="$ac_compiler -v >&5"
2477case "(($ac_try" in
2478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2479 *) ac_try_echo=$ac_try;;
2480esac
fddafd51
ZK
2481eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2482$as_echo "$ac_try_echo") >&5
7a197a62 2483 (eval "$ac_compiler -v >&5") 2>&5
ad6254c5 2484 ac_status=$?
fddafd51 2485 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2486 (exit $ac_status); }
7a197a62
AK
2487{ (ac_try="$ac_compiler -V >&5"
2488case "(($ac_try" in
2489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2490 *) ac_try_echo=$ac_try;;
2491esac
fddafd51
ZK
2492eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2493$as_echo "$ac_try_echo") >&5
7a197a62 2494 (eval "$ac_compiler -V >&5") 2>&5
ad6254c5 2495 ac_status=$?
fddafd51 2496 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
2497 (exit $ac_status); }
2498
2499cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2500/* confdefs.h. */
2501_ACEOF
2502cat confdefs.h >>conftest.$ac_ext
2503cat >>conftest.$ac_ext <<_ACEOF
2504/* end confdefs.h. */
2505
2506int
2507main ()
2508{
2509
2510 ;
2511 return 0;
2512}
2513_ACEOF
2514ac_clean_files_save=$ac_clean_files
fddafd51 2515ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
ad6254c5
AK
2516# Try to create an executable without -o first, disregard a.out.
2517# It will help us diagnose broken compilers, and finding out an intuition
2518# of exeext.
fddafd51
ZK
2519{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2520$as_echo_n "checking for C compiler default output file name... " >&6; }
2521ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2522
2523# The possible output files:
2524ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2525
7a197a62
AK
2526ac_rmfiles=
2527for ac_file in $ac_files
2528do
2529 case $ac_file in
fddafd51 2530 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
7a197a62
AK
2531 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2532 esac
2533done
2534rm -f $ac_rmfiles
2535
2536if { (ac_try="$ac_link_default"
2537case "(($ac_try" in
2538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2539 *) ac_try_echo=$ac_try;;
2540esac
fddafd51
ZK
2541eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2542$as_echo "$ac_try_echo") >&5
7a197a62 2543 (eval "$ac_link_default") 2>&5
ad6254c5 2544 ac_status=$?
fddafd51 2545 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2546 (exit $ac_status); }; then
7a197a62
AK
2547 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2548# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2549# in a Makefile. We should not override ac_cv_exeext if it was cached,
2550# so that the user can short-circuit this test for compilers unknown to
2551# Autoconf.
25fbec5b 2552for ac_file in $ac_files ''
ad6254c5
AK
2553do
2554 test -f "$ac_file" || continue
2555 case $ac_file in
fddafd51 2556 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
8a2fc586 2557 ;;
ad6254c5 2558 [ab].out )
8a2fc586
AK
2559 # We found the default executable, but exeext='' is most
2560 # certainly right.
2561 break;;
ad6254c5 2562 *.* )
7a197a62
AK
2563 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2564 then :; else
2565 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2566 fi
2567 # We set ac_cv_exeext here because the later test for it is not
2568 # safe: cross compilers may not add the suffix if given an `-o'
2569 # argument, so we may need to know it at that point already.
2570 # Even if this section looks crufty: it has the advantage of
2571 # actually working.
8a2fc586 2572 break;;
ad6254c5 2573 * )
8a2fc586 2574 break;;
ad6254c5
AK
2575 esac
2576done
7a197a62
AK
2577test "$ac_cv_exeext" = no && ac_cv_exeext=
2578
ad6254c5 2579else
25fbec5b
AK
2580 ac_file=''
2581fi
2582
fddafd51
ZK
2583{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2584$as_echo "$ac_file" >&6; }
25fbec5b 2585if test -z "$ac_file"; then
fddafd51 2586 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
2587sed 's/^/| /' conftest.$ac_ext >&5
2588
fddafd51 2589{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
ad6254c5 2590See \`config.log' for more details." >&5
fddafd51 2591$as_echo "$as_me: error: C compiler cannot create executables
ad6254c5
AK
2592See \`config.log' for more details." >&2;}
2593 { (exit 77); exit 77; }; }
2594fi
2595
2596ac_exeext=$ac_cv_exeext
ad6254c5 2597
7a197a62 2598# Check that the compiler produces executables we can run. If not, either
ad6254c5 2599# the compiler is broken, or we cross compile.
fddafd51
ZK
2600{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2601$as_echo_n "checking whether the C compiler works... " >&6; }
ad6254c5
AK
2602# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2603# If not cross compiling, check that we can run a simple program.
2604if test "$cross_compiling" != yes; then
2605 if { ac_try='./$ac_file'
7a197a62
AK
2606 { (case "(($ac_try" in
2607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2608 *) ac_try_echo=$ac_try;;
2609esac
fddafd51
ZK
2610eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2611$as_echo "$ac_try_echo") >&5
7a197a62 2612 (eval "$ac_try") 2>&5
ad6254c5 2613 ac_status=$?
fddafd51 2614 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
2615 (exit $ac_status); }; }; then
2616 cross_compiling=no
795ca3e5 2617 else
ad6254c5
AK
2618 if test "$cross_compiling" = maybe; then
2619 cross_compiling=yes
2620 else
fddafd51 2621 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
ad6254c5
AK
2622If you meant to cross compile, use \`--host'.
2623See \`config.log' for more details." >&5
fddafd51 2624$as_echo "$as_me: error: cannot run C compiled programs.
ad6254c5
AK
2625If you meant to cross compile, use \`--host'.
2626See \`config.log' for more details." >&2;}
2627 { (exit 1); exit 1; }; }
2628 fi
795ca3e5 2629 fi
80992638 2630fi
fddafd51
ZK
2631{ $as_echo "$as_me:$LINENO: result: yes" >&5
2632$as_echo "yes" >&6; }
ad6254c5 2633
fddafd51 2634rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
ad6254c5 2635ac_clean_files=$ac_clean_files_save
7a197a62 2636# Check that the compiler produces executables we can run. If not, either
ad6254c5 2637# the compiler is broken, or we cross compile.
fddafd51
ZK
2638{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2639$as_echo_n "checking whether we are cross compiling... " >&6; }
2640{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2641$as_echo "$cross_compiling" >&6; }
7a197a62 2642
fddafd51
ZK
2643{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2644$as_echo_n "checking for suffix of executables... " >&6; }
7a197a62
AK
2645if { (ac_try="$ac_link"
2646case "(($ac_try" in
2647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2648 *) ac_try_echo=$ac_try;;
2649esac
fddafd51
ZK
2650eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2651$as_echo "$ac_try_echo") >&5
7a197a62 2652 (eval "$ac_link") 2>&5
ad6254c5 2653 ac_status=$?
fddafd51 2654 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
2655 (exit $ac_status); }; then
2656 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2657# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2658# work properly (i.e., refer to `conftest.exe'), while it won't with
2659# `rm'.
2660for ac_file in conftest.exe conftest conftest.*; do
2661 test -f "$ac_file" || continue
2662 case $ac_file in
fddafd51 2663 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
ad6254c5 2664 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
8a2fc586 2665 break;;
ad6254c5
AK
2666 * ) break;;
2667 esac
2668done
80992638 2669else
fddafd51 2670 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
ad6254c5 2671See \`config.log' for more details." >&5
fddafd51 2672$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
ad6254c5
AK
2673See \`config.log' for more details." >&2;}
2674 { (exit 1); exit 1; }; }
2675fi
2676
2677rm -f conftest$ac_cv_exeext
fddafd51
ZK
2678{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2679$as_echo "$ac_cv_exeext" >&6; }
ad6254c5
AK
2680
2681rm -f conftest.$ac_ext
2682EXEEXT=$ac_cv_exeext
2683ac_exeext=$EXEEXT
fddafd51
ZK
2684{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2685$as_echo_n "checking for suffix of object files... " >&6; }
ad6254c5 2686if test "${ac_cv_objext+set}" = set; then
fddafd51 2687 $as_echo_n "(cached) " >&6
795ca3e5 2688else
ad6254c5 2689 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2690/* confdefs.h. */
2691_ACEOF
2692cat confdefs.h >>conftest.$ac_ext
2693cat >>conftest.$ac_ext <<_ACEOF
2694/* end confdefs.h. */
2695
2696int
2697main ()
2698{
2699
2700 ;
2701 return 0;
2702}
2703_ACEOF
2704rm -f conftest.o conftest.obj
7a197a62
AK
2705if { (ac_try="$ac_compile"
2706case "(($ac_try" in
2707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2708 *) ac_try_echo=$ac_try;;
2709esac
fddafd51
ZK
2710eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2711$as_echo "$ac_try_echo") >&5
7a197a62 2712 (eval "$ac_compile") 2>&5
ad6254c5 2713 ac_status=$?
fddafd51 2714 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2715 (exit $ac_status); }; then
7a197a62
AK
2716 for ac_file in conftest.o conftest.obj conftest.*; do
2717 test -f "$ac_file" || continue;
ad6254c5 2718 case $ac_file in
fddafd51 2719 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
ad6254c5
AK
2720 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2721 break;;
2722 esac
2723done
2724else
fddafd51 2725 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
2726sed 's/^/| /' conftest.$ac_ext >&5
2727
fddafd51 2728{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
ad6254c5 2729See \`config.log' for more details." >&5
fddafd51 2730$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
ad6254c5
AK
2731See \`config.log' for more details." >&2;}
2732 { (exit 1); exit 1; }; }
2733fi
2734
2735rm -f conftest.$ac_cv_objext conftest.$ac_ext
2736fi
fddafd51
ZK
2737{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2738$as_echo "$ac_cv_objext" >&6; }
ad6254c5
AK
2739OBJEXT=$ac_cv_objext
2740ac_objext=$OBJEXT
fddafd51
ZK
2741{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2742$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
ad6254c5 2743if test "${ac_cv_c_compiler_gnu+set}" = set; then
fddafd51 2744 $as_echo_n "(cached) " >&6
ad6254c5
AK
2745else
2746 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2747/* confdefs.h. */
2748_ACEOF
2749cat confdefs.h >>conftest.$ac_ext
2750cat >>conftest.$ac_ext <<_ACEOF
2751/* end confdefs.h. */
2752
2753int
2754main ()
2755{
2756#ifndef __GNUC__
2757 choke me
2758#endif
80992638 2759
ad6254c5
AK
2760 ;
2761 return 0;
2762}
2763_ACEOF
2764rm -f conftest.$ac_objext
7a197a62
AK
2765if { (ac_try="$ac_compile"
2766case "(($ac_try" in
2767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2768 *) ac_try_echo=$ac_try;;
2769esac
fddafd51
ZK
2770eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2771$as_echo "$ac_try_echo") >&5
7a197a62 2772 (eval "$ac_compile") 2>conftest.er1
ad6254c5 2773 ac_status=$?
8a2fc586
AK
2774 grep -v '^ *+' conftest.er1 >conftest.err
2775 rm -f conftest.er1
2776 cat conftest.err >&5
fddafd51 2777 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
2778 (exit $ac_status); } && {
2779 test -z "$ac_c_werror_flag" ||
2780 test ! -s conftest.err
2781 } && test -s conftest.$ac_objext; then
ad6254c5 2782 ac_compiler_gnu=yes
80992638 2783else
fddafd51 2784 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
2785sed 's/^/| /' conftest.$ac_ext >&5
2786
7a197a62 2787 ac_compiler_gnu=no
8106cdd5 2788fi
7a197a62
AK
2789
2790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 2791ac_cv_c_compiler_gnu=$ac_compiler_gnu
80992638 2792
ad6254c5 2793fi
fddafd51
ZK
2794{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2795$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2796if test $ac_compiler_gnu = yes; then
2797 GCC=yes
2798else
2799 GCC=
2800fi
ad6254c5
AK
2801ac_test_CFLAGS=${CFLAGS+set}
2802ac_save_CFLAGS=$CFLAGS
fddafd51
ZK
2803{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2804$as_echo_n "checking whether $CC accepts -g... " >&6; }
ad6254c5 2805if test "${ac_cv_prog_cc_g+set}" = set; then
fddafd51 2806 $as_echo_n "(cached) " >&6
795ca3e5 2807else
7a197a62
AK
2808 ac_save_c_werror_flag=$ac_c_werror_flag
2809 ac_c_werror_flag=yes
2810 ac_cv_prog_cc_g=no
2811 CFLAGS="-g"
2812 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2813/* confdefs.h. */
2814_ACEOF
2815cat confdefs.h >>conftest.$ac_ext
2816cat >>conftest.$ac_ext <<_ACEOF
2817/* end confdefs.h. */
2818
2819int
2820main ()
2821{
2822
2823 ;
2824 return 0;
2825}
2826_ACEOF
2827rm -f conftest.$ac_objext
7a197a62
AK
2828if { (ac_try="$ac_compile"
2829case "(($ac_try" in
2830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2831 *) ac_try_echo=$ac_try;;
2832esac
fddafd51
ZK
2833eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2834$as_echo "$ac_try_echo") >&5
7a197a62 2835 (eval "$ac_compile") 2>conftest.er1
ad6254c5 2836 ac_status=$?
8a2fc586
AK
2837 grep -v '^ *+' conftest.er1 >conftest.err
2838 rm -f conftest.er1
2839 cat conftest.err >&5
fddafd51 2840 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
2841 (exit $ac_status); } && {
2842 test -z "$ac_c_werror_flag" ||
2843 test ! -s conftest.err
2844 } && test -s conftest.$ac_objext; then
7a197a62
AK
2845 ac_cv_prog_cc_g=yes
2846else
fddafd51 2847 $as_echo "$as_me: failed program was:" >&5
7a197a62
AK
2848sed 's/^/| /' conftest.$ac_ext >&5
2849
2850 CFLAGS=""
2851 cat >conftest.$ac_ext <<_ACEOF
2852/* confdefs.h. */
2853_ACEOF
2854cat confdefs.h >>conftest.$ac_ext
2855cat >>conftest.$ac_ext <<_ACEOF
2856/* end confdefs.h. */
2857
2858int
2859main ()
2860{
2861
2862 ;
2863 return 0;
2864}
2865_ACEOF
2866rm -f conftest.$ac_objext
2867if { (ac_try="$ac_compile"
2868case "(($ac_try" in
2869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2870 *) ac_try_echo=$ac_try;;
2871esac
fddafd51
ZK
2872eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2873$as_echo "$ac_try_echo") >&5
7a197a62 2874 (eval "$ac_compile") 2>conftest.er1
8a2fc586 2875 ac_status=$?
7a197a62
AK
2876 grep -v '^ *+' conftest.er1 >conftest.err
2877 rm -f conftest.er1
2878 cat conftest.err >&5
fddafd51 2879 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
2880 (exit $ac_status); } && {
2881 test -z "$ac_c_werror_flag" ||
2882 test ! -s conftest.err
2883 } && test -s conftest.$ac_objext; then
7a197a62
AK
2884 :
2885else
fddafd51 2886 $as_echo "$as_me: failed program was:" >&5
7a197a62
AK
2887sed 's/^/| /' conftest.$ac_ext >&5
2888
2889 ac_c_werror_flag=$ac_save_c_werror_flag
2890 CFLAGS="-g"
2891 cat >conftest.$ac_ext <<_ACEOF
2892/* confdefs.h. */
2893_ACEOF
2894cat confdefs.h >>conftest.$ac_ext
2895cat >>conftest.$ac_ext <<_ACEOF
2896/* end confdefs.h. */
2897
2898int
2899main ()
2900{
2901
2902 ;
2903 return 0;
2904}
2905_ACEOF
2906rm -f conftest.$ac_objext
2907if { (ac_try="$ac_compile"
2908case "(($ac_try" in
2909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2910 *) ac_try_echo=$ac_try;;
2911esac
fddafd51
ZK
2912eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2913$as_echo "$ac_try_echo") >&5
7a197a62 2914 (eval "$ac_compile") 2>conftest.er1
ad6254c5 2915 ac_status=$?
7a197a62
AK
2916 grep -v '^ *+' conftest.er1 >conftest.err
2917 rm -f conftest.er1
2918 cat conftest.err >&5
fddafd51 2919 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
2920 (exit $ac_status); } && {
2921 test -z "$ac_c_werror_flag" ||
2922 test ! -s conftest.err
2923 } && test -s conftest.$ac_objext; then
795ca3e5
AK
2924 ac_cv_prog_cc_g=yes
2925else
fddafd51 2926 $as_echo "$as_me: failed program was:" >&5
ad6254c5 2927sed 's/^/| /' conftest.$ac_ext >&5
80992638 2928
7a197a62
AK
2929
2930fi
2931
2932rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2933fi
2934
2935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8106cdd5 2936fi
7a197a62
AK
2937
2938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2939 ac_c_werror_flag=$ac_save_c_werror_flag
ad6254c5 2940fi
fddafd51
ZK
2941{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2942$as_echo "$ac_cv_prog_cc_g" >&6; }
795ca3e5 2943if test "$ac_test_CFLAGS" = set; then
ad6254c5 2944 CFLAGS=$ac_save_CFLAGS
795ca3e5
AK
2945elif test $ac_cv_prog_cc_g = yes; then
2946 if test "$GCC" = yes; then
2947 CFLAGS="-g -O2"
2948 else
2949 CFLAGS="-g"
2950 fi
2951else
2952 if test "$GCC" = yes; then
2953 CFLAGS="-O2"
2954 else
2955 CFLAGS=
2956 fi
2957fi
fddafd51
ZK
2958{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2959$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
7a197a62 2960if test "${ac_cv_prog_cc_c89+set}" = set; then
fddafd51 2961 $as_echo_n "(cached) " >&6
ad6254c5 2962else
7a197a62 2963 ac_cv_prog_cc_c89=no
ad6254c5
AK
2964ac_save_CC=$CC
2965cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2966/* confdefs.h. */
2967_ACEOF
2968cat confdefs.h >>conftest.$ac_ext
2969cat >>conftest.$ac_ext <<_ACEOF
2970/* end confdefs.h. */
2971#include <stdarg.h>
2972#include <stdio.h>
2973#include <sys/types.h>
2974#include <sys/stat.h>
2975/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2976struct buf { int x; };
2977FILE * (*rcsopen) (struct buf *, struct stat *, int);
2978static char *e (p, i)
2979 char **p;
2980 int i;
2981{
2982 return p[i];
2983}
2984static char *f (char * (*g) (char **, int), char **p, ...)
2985{
2986 char *s;
2987 va_list v;
2988 va_start (v,p);
2989 s = g (p, va_arg (v,int));
2990 va_end (v);
2991 return s;
2992}
8a2fc586
AK
2993
2994/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2995 function prototypes and stuff, but not '\xHH' hex character constants.
2996 These don't provoke an error unfortunately, instead are silently treated
7a197a62 2997 as 'x'. The following induces an error, until -std is added to get
8a2fc586
AK
2998 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2999 array size at least. It's necessary to write '\x00'==0 to get something
7a197a62 3000 that's true only with -std. */
8a2fc586
AK
3001int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3002
7a197a62
AK
3003/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3004 inside strings and character constants. */
3005#define FOO(x) 'x'
3006int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3007
ad6254c5
AK
3008int test (int i, double x);
3009struct s1 {int (*f) (int a);};
3010struct s2 {int (*f) (double a);};
3011int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3012int argc;
3013char **argv;
3014int
3015main ()
3016{
3017return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3018 ;
3019 return 0;
3020}
3021_ACEOF
7a197a62
AK
3022for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3023 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
ad6254c5
AK
3024do
3025 CC="$ac_save_CC $ac_arg"
3026 rm -f conftest.$ac_objext
7a197a62
AK
3027if { (ac_try="$ac_compile"
3028case "(($ac_try" in
3029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3030 *) ac_try_echo=$ac_try;;
3031esac
fddafd51
ZK
3032eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3033$as_echo "$ac_try_echo") >&5
7a197a62 3034 (eval "$ac_compile") 2>conftest.er1
ad6254c5 3035 ac_status=$?
8a2fc586
AK
3036 grep -v '^ *+' conftest.er1 >conftest.err
3037 rm -f conftest.er1
3038 cat conftest.err >&5
fddafd51 3039 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
3040 (exit $ac_status); } && {
3041 test -z "$ac_c_werror_flag" ||
3042 test ! -s conftest.err
3043 } && test -s conftest.$ac_objext; then
7a197a62 3044 ac_cv_prog_cc_c89=$ac_arg
ad6254c5 3045else
fddafd51 3046 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
3047sed 's/^/| /' conftest.$ac_ext >&5
3048
7a197a62 3049
ad6254c5 3050fi
7a197a62
AK
3051
3052rm -f core conftest.err conftest.$ac_objext
3053 test "x$ac_cv_prog_cc_c89" != "xno" && break
ad6254c5 3054done
7a197a62 3055rm -f conftest.$ac_ext
ad6254c5
AK
3056CC=$ac_save_CC
3057
3058fi
7a197a62
AK
3059# AC_CACHE_VAL
3060case "x$ac_cv_prog_cc_c89" in
3061 x)
fddafd51
ZK
3062 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3063$as_echo "none needed" >&6; } ;;
7a197a62 3064 xno)
fddafd51
ZK
3065 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3066$as_echo "unsupported" >&6; } ;;
ad6254c5 3067 *)
7a197a62 3068 CC="$CC $ac_cv_prog_cc_c89"
fddafd51
ZK
3069 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3070$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
ad6254c5
AK
3071esac
3072
ad6254c5 3073
ad6254c5
AK
3074ac_ext=c
3075ac_cpp='$CPP $CPPFLAGS'
3076ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3077ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3078ac_compiler_gnu=$ac_cv_c_compiler_gnu
795ca3e5 3079
d0191583
JM
3080
3081
3082ac_ext=c
3083ac_cpp='$CPP $CPPFLAGS'
3084ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3085ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3086ac_compiler_gnu=$ac_cv_c_compiler_gnu
fddafd51
ZK
3087{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3088$as_echo_n "checking how to run the C preprocessor... " >&6; }
d0191583
JM
3089# On Suns, sometimes $CPP names a directory.
3090if test -n "$CPP" && test -d "$CPP"; then
3091 CPP=
3092fi
3093if test -z "$CPP"; then
3094 if test "${ac_cv_prog_CPP+set}" = set; then
fddafd51 3095 $as_echo_n "(cached) " >&6
ad6254c5 3096else
d0191583
JM
3097 # Double quotes because CPP needs to be expanded
3098 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3099 do
3100 ac_preproc_ok=false
3101for ac_c_preproc_warn_flag in '' yes
ad6254c5 3102do
d0191583
JM
3103 # Use a header file that comes with gcc, so configuring glibc
3104 # with a fresh cross-compiler works.
3105 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3106 # <limits.h> exists even on freestanding compilers.
3107 # On the NeXT, cc -E runs the code through the compiler's parser,
3108 # not just through cpp. "Syntax error" is here to catch this case.
3109 cat >conftest.$ac_ext <<_ACEOF
3110/* confdefs.h. */
3111_ACEOF
3112cat confdefs.h >>conftest.$ac_ext
3113cat >>conftest.$ac_ext <<_ACEOF
3114/* end confdefs.h. */
3115#ifdef __STDC__
3116# include <limits.h>
3117#else
3118# include <assert.h>
3119#endif
3120 Syntax error
3121_ACEOF
3122if { (ac_try="$ac_cpp conftest.$ac_ext"
3123case "(($ac_try" in
3124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3125 *) ac_try_echo=$ac_try;;
ad6254c5 3126esac
fddafd51
ZK
3127eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3128$as_echo "$ac_try_echo") >&5
d0191583
JM
3129 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3130 ac_status=$?
3131 grep -v '^ *+' conftest.er1 >conftest.err
3132 rm -f conftest.er1
3133 cat conftest.err >&5
fddafd51 3134 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3135 (exit $ac_status); } >/dev/null && {
3136 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3137 test ! -s conftest.err
3138 }; then
3139 :
3140else
fddafd51 3141 $as_echo "$as_me: failed program was:" >&5
d0191583 3142sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 3143
d0191583
JM
3144 # Broken: fails on valid input.
3145continue
795ca3e5 3146fi
795ca3e5 3147
d0191583 3148rm -f conftest.err conftest.$ac_ext
795ca3e5 3149
d0191583
JM
3150 # OK, works on sane cases. Now check whether nonexistent headers
3151 # can be detected and how.
3152 cat >conftest.$ac_ext <<_ACEOF
3153/* confdefs.h. */
3154_ACEOF
3155cat confdefs.h >>conftest.$ac_ext
3156cat >>conftest.$ac_ext <<_ACEOF
3157/* end confdefs.h. */
3158#include <ac_nonexistent.h>
3159_ACEOF
3160if { (ac_try="$ac_cpp conftest.$ac_ext"
3161case "(($ac_try" in
3162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3163 *) ac_try_echo=$ac_try;;
3164esac
fddafd51
ZK
3165eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3166$as_echo "$ac_try_echo") >&5
d0191583
JM
3167 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3168 ac_status=$?
3169 grep -v '^ *+' conftest.er1 >conftest.err
3170 rm -f conftest.er1
3171 cat conftest.err >&5
fddafd51 3172 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3173 (exit $ac_status); } >/dev/null && {
3174 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3175 test ! -s conftest.err
3176 }; then
3177 # Broken: success on invalid input.
3178continue
3179else
fddafd51 3180 $as_echo "$as_me: failed program was:" >&5
d0191583 3181sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 3182
d0191583
JM
3183 # Passes both tests.
3184ac_preproc_ok=:
3185break
3186fi
795ca3e5 3187
d0191583
JM
3188rm -f conftest.err conftest.$ac_ext
3189
3190done
3191# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3192rm -f conftest.err conftest.$ac_ext
3193if $ac_preproc_ok; then
3194 break
795ca3e5
AK
3195fi
3196
d0191583
JM
3197 done
3198 ac_cv_prog_CPP=$CPP
3199
3200fi
3201 CPP=$ac_cv_prog_CPP
795ca3e5 3202else
d0191583
JM
3203 ac_cv_prog_CPP=$CPP
3204fi
fddafd51
ZK
3205{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
3206$as_echo "$CPP" >&6; }
d0191583
JM
3207ac_preproc_ok=false
3208for ac_c_preproc_warn_flag in '' yes
3209do
3210 # Use a header file that comes with gcc, so configuring glibc
3211 # with a fresh cross-compiler works.
3212 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3213 # <limits.h> exists even on freestanding compilers.
3214 # On the NeXT, cc -E runs the code through the compiler's parser,
3215 # not just through cpp. "Syntax error" is here to catch this case.
3216 cat >conftest.$ac_ext <<_ACEOF
3217/* confdefs.h. */
ad6254c5 3218_ACEOF
d0191583
JM
3219cat confdefs.h >>conftest.$ac_ext
3220cat >>conftest.$ac_ext <<_ACEOF
3221/* end confdefs.h. */
3222#ifdef __STDC__
3223# include <limits.h>
3224#else
3225# include <assert.h>
3226#endif
3227 Syntax error
3228_ACEOF
3229if { (ac_try="$ac_cpp conftest.$ac_ext"
3230case "(($ac_try" in
3231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3232 *) ac_try_echo=$ac_try;;
7a197a62 3233esac
fddafd51
ZK
3234eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3235$as_echo "$ac_try_echo") >&5
d0191583
JM
3236 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3237 ac_status=$?
3238 grep -v '^ *+' conftest.er1 >conftest.err
3239 rm -f conftest.er1
3240 cat conftest.err >&5
fddafd51 3241 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3242 (exit $ac_status); } >/dev/null && {
3243 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3244 test ! -s conftest.err
3245 }; then
3246 :
795ca3e5 3247else
fddafd51 3248 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
3249sed 's/^/| /' conftest.$ac_ext >&5
3250
3251 # Broken: fails on valid input.
3252continue
795ca3e5
AK
3253fi
3254
d0191583
JM
3255rm -f conftest.err conftest.$ac_ext
3256
3257 # OK, works on sane cases. Now check whether nonexistent headers
3258 # can be detected and how.
3259 cat >conftest.$ac_ext <<_ACEOF
3260/* confdefs.h. */
3261_ACEOF
3262cat confdefs.h >>conftest.$ac_ext
3263cat >>conftest.$ac_ext <<_ACEOF
3264/* end confdefs.h. */
3265#include <ac_nonexistent.h>
3266_ACEOF
3267if { (ac_try="$ac_cpp conftest.$ac_ext"
3268case "(($ac_try" in
3269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3270 *) ac_try_echo=$ac_try;;
3271esac
fddafd51
ZK
3272eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3273$as_echo "$ac_try_echo") >&5
d0191583
JM
3274 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3275 ac_status=$?
3276 grep -v '^ *+' conftest.er1 >conftest.err
3277 rm -f conftest.er1
3278 cat conftest.err >&5
fddafd51 3279 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3280 (exit $ac_status); } >/dev/null && {
3281 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3282 test ! -s conftest.err
3283 }; then
3284 # Broken: success on invalid input.
3285continue
795ca3e5 3286else
fddafd51 3287 $as_echo "$as_me: failed program was:" >&5
d0191583 3288sed 's/^/| /' conftest.$ac_ext >&5
ad6254c5 3289
d0191583
JM
3290 # Passes both tests.
3291ac_preproc_ok=:
3292break
795ca3e5 3293fi
d0191583
JM
3294
3295rm -f conftest.err conftest.$ac_ext
3296
3297done
3298# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3299rm -f conftest.err conftest.$ac_ext
3300if $ac_preproc_ok; then
3301 :
8106cdd5 3302else
fddafd51 3303 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
d0191583 3304See \`config.log' for more details." >&5
fddafd51 3305$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
d0191583
JM
3306See \`config.log' for more details." >&2;}
3307 { (exit 1); exit 1; }; }
8106cdd5
AK
3308fi
3309
d0191583
JM
3310ac_ext=c
3311ac_cpp='$CPP $CPPFLAGS'
3312ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3313ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3314ac_compiler_gnu=$ac_cv_c_compiler_gnu
3315
7a197a62 3316
fddafd51
ZK
3317{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3318$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
d0191583 3319if test "${ac_cv_path_GREP+set}" = set; then
fddafd51 3320 $as_echo_n "(cached) " >&6
ad6254c5 3321else
fddafd51 3322 if test -z "$GREP"; then
d0191583 3323 ac_path_GREP_found=false
fddafd51
ZK
3324 # Loop through the user's path and test for each of PROGNAME-LIST
3325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
d0191583 3326for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
ad6254c5
AK
3327do
3328 IFS=$as_save_IFS
3329 test -z "$as_dir" && as_dir=.
d0191583 3330 for ac_prog in grep ggrep; do
fddafd51
ZK
3331 for ac_exec_ext in '' $ac_executable_extensions; do
3332 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3333 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3334# Check for GNU ac_path_GREP and select it if it is found.
d0191583
JM
3335 # Check for GNU $ac_path_GREP
3336case `"$ac_path_GREP" --version 2>&1` in
3337*GNU*)
3338 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3339*)
3340 ac_count=0
fddafd51 3341 $as_echo_n 0123456789 >"conftest.in"
d0191583
JM
3342 while :
3343 do
3344 cat "conftest.in" "conftest.in" >"conftest.tmp"
3345 mv "conftest.tmp" "conftest.in"
3346 cp "conftest.in" "conftest.nl"
fddafd51 3347 $as_echo 'GREP' >> "conftest.nl"
d0191583
JM
3348 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3349 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3350 ac_count=`expr $ac_count + 1`
3351 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3352 # Best one so far, save it but keep looking for a better one
3353 ac_cv_path_GREP="$ac_path_GREP"
3354 ac_path_GREP_max=$ac_count
3355 fi
3356 # 10*(2^10) chars as input seems more than enough
3357 test $ac_count -gt 10 && break
3358 done
3359 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3360esac
3361
fddafd51
ZK
3362 $ac_path_GREP_found && break 3
3363 done
d0191583 3364 done
ad6254c5 3365done
7a197a62 3366IFS=$as_save_IFS
fddafd51
ZK
3367 if test -z "$ac_cv_path_GREP"; then
3368 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3369$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
d0191583 3370 { (exit 1); exit 1; }; }
fddafd51 3371 fi
80992638 3372else
d0191583 3373 ac_cv_path_GREP=$GREP
8106cdd5 3374fi
8106cdd5 3375
80992638 3376fi
fddafd51
ZK
3377{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3378$as_echo "$ac_cv_path_GREP" >&6; }
d0191583 3379 GREP="$ac_cv_path_GREP"
795ca3e5 3380
d0191583 3381
fddafd51
ZK
3382{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
3383$as_echo_n "checking for egrep... " >&6; }
d0191583 3384if test "${ac_cv_path_EGREP+set}" = set; then
fddafd51 3385 $as_echo_n "(cached) " >&6
8a2fc586 3386else
d0191583
JM
3387 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3388 then ac_cv_path_EGREP="$GREP -E"
3389 else
fddafd51 3390 if test -z "$EGREP"; then
d0191583 3391 ac_path_EGREP_found=false
fddafd51
ZK
3392 # Loop through the user's path and test for each of PROGNAME-LIST
3393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
d0191583 3394for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8a2fc586
AK
3395do
3396 IFS=$as_save_IFS
3397 test -z "$as_dir" && as_dir=.
d0191583 3398 for ac_prog in egrep; do
fddafd51
ZK
3399 for ac_exec_ext in '' $ac_executable_extensions; do
3400 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3401 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3402# Check for GNU ac_path_EGREP and select it if it is found.
d0191583
JM
3403 # Check for GNU $ac_path_EGREP
3404case `"$ac_path_EGREP" --version 2>&1` in
3405*GNU*)
3406 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3407*)
3408 ac_count=0
fddafd51 3409 $as_echo_n 0123456789 >"conftest.in"
d0191583
JM
3410 while :
3411 do
3412 cat "conftest.in" "conftest.in" >"conftest.tmp"
3413 mv "conftest.tmp" "conftest.in"
3414 cp "conftest.in" "conftest.nl"
fddafd51 3415 $as_echo 'EGREP' >> "conftest.nl"
d0191583
JM
3416 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3417 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3418 ac_count=`expr $ac_count + 1`
3419 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3420 # Best one so far, save it but keep looking for a better one
3421 ac_cv_path_EGREP="$ac_path_EGREP"
3422 ac_path_EGREP_max=$ac_count
3423 fi
3424 # 10*(2^10) chars as input seems more than enough
3425 test $ac_count -gt 10 && break
3426 done
3427 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8a2fc586 3428esac
8a2fc586 3429
fddafd51
ZK
3430 $ac_path_EGREP_found && break 3
3431 done
d0191583 3432 done
8a2fc586 3433done
7a197a62 3434IFS=$as_save_IFS
fddafd51
ZK
3435 if test -z "$ac_cv_path_EGREP"; then
3436 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3437$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
d0191583 3438 { (exit 1); exit 1; }; }
fddafd51 3439 fi
d0191583
JM
3440else
3441 ac_cv_path_EGREP=$EGREP
3442fi
ad6254c5 3443
d0191583
JM
3444 fi
3445fi
fddafd51
ZK
3446{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3447$as_echo "$ac_cv_path_EGREP" >&6; }
d0191583 3448 EGREP="$ac_cv_path_EGREP"
ad6254c5
AK
3449
3450
d0191583 3451if test $ac_cv_c_compiler_gnu = yes; then
fddafd51
ZK
3452 { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3453$as_echo_n "checking whether $CC needs -traditional... " >&6; }
d0191583 3454if test "${ac_cv_prog_gcc_traditional+set}" = set; then
fddafd51 3455 $as_echo_n "(cached) " >&6
8106cdd5 3456else
d0191583 3457 ac_pattern="Autoconf.*'x'"
ad6254c5 3458 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3459/* confdefs.h. */
3460_ACEOF
3461cat confdefs.h >>conftest.$ac_ext
3462cat >>conftest.$ac_ext <<_ACEOF
3463/* end confdefs.h. */
d0191583
JM
3464#include <sgtty.h>
3465Autoconf TIOCGETP
ad6254c5 3466_ACEOF
d0191583
JM
3467if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3468 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3469 ac_cv_prog_gcc_traditional=yes
8106cdd5 3470else
d0191583 3471 ac_cv_prog_gcc_traditional=no
80992638 3472fi
d0191583 3473rm -f conftest*
ad6254c5 3474
8106cdd5 3475
d0191583
JM
3476 if test $ac_cv_prog_gcc_traditional = no; then
3477 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3478/* confdefs.h. */
3479_ACEOF
3480cat confdefs.h >>conftest.$ac_ext
3481cat >>conftest.$ac_ext <<_ACEOF
3482/* end confdefs.h. */
d0191583
JM
3483#include <termio.h>
3484Autoconf TCGETA
ad6254c5 3485_ACEOF
d0191583
JM
3486if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3487 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3488 ac_cv_prog_gcc_traditional=yes
7a197a62 3489fi
d0191583 3490rm -f conftest*
795ca3e5 3491
d0191583 3492 fi
795ca3e5 3493fi
fddafd51
ZK
3494{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3495$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
d0191583
JM
3496 if test $ac_cv_prog_gcc_traditional = yes; then
3497 CC="$CC -traditional"
3498 fi
795ca3e5
AK
3499fi
3500
d0191583
JM
3501# Find a good install program. We prefer a C program (faster),
3502# so one script is as good as another. But avoid the broken or
3503# incompatible versions:
3504# SysV /etc/install, /usr/sbin/install
3505# SunOS /usr/etc/install
3506# IRIX /sbin/install
3507# AIX /bin/install
3508# AmigaOS /C/install, which installs bootblocks on floppy discs
3509# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3510# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3511# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3512# OS/2's system install, which has a completely different semantic
3513# ./install, which can be erroneously created by make from ./install.sh.
fddafd51
ZK
3514# Reject install programs that cannot install multiple files.
3515{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3516$as_echo_n "checking for a BSD-compatible install... " >&6; }
d0191583
JM
3517if test -z "$INSTALL"; then
3518if test "${ac_cv_path_install+set}" = set; then
fddafd51 3519 $as_echo_n "(cached) " >&6
ad6254c5 3520else
d0191583
JM
3521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3522for as_dir in $PATH
3523do
3524 IFS=$as_save_IFS
3525 test -z "$as_dir" && as_dir=.
3526 # Account for people who put trailing slashes in PATH elements.
3527case $as_dir/ in
3528 ./ | .// | /cC/* | \
3529 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3530 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3531 /usr/ucb/* ) ;;
3532 *)
3533 # OSF1 and SCO ODT 3.0 have their own names for install.
3534 # Don't use installbsd from OSF since it installs stuff as root
3535 # by default.
3536 for ac_prog in ginstall scoinst install; do
3537 for ac_exec_ext in '' $ac_executable_extensions; do
3538 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3539 if test $ac_prog = install &&
3540 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3541 # AIX install. It has an incompatible calling convention.
3542 :
3543 elif test $ac_prog = install &&
3544 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3545 # program-specific install script used by HP pwplus--don't use.
3546 :
3547 else
fddafd51
ZK
3548 rm -rf conftest.one conftest.two conftest.dir
3549 echo one > conftest.one
3550 echo two > conftest.two
3551 mkdir conftest.dir
3552 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3553 test -s conftest.one && test -s conftest.two &&
3554 test -s conftest.dir/conftest.one &&
3555 test -s conftest.dir/conftest.two
3556 then
3557 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3558 break 3
3559 fi
d0191583
JM
3560 fi
3561 fi
3562 done
3563 done
3564 ;;
3565esac
fddafd51 3566
d0191583
JM
3567done
3568IFS=$as_save_IFS
80992638 3569
fddafd51 3570rm -rf conftest.one conftest.two conftest.dir
d0191583
JM
3571
3572fi
3573 if test "${ac_cv_path_install+set}" = set; then
3574 INSTALL=$ac_cv_path_install
7a197a62 3575 else
d0191583
JM
3576 # As a last resort, use the slow shell script. Don't cache a
3577 # value for INSTALL within a source directory, because that will
3578 # break other packages using the cache if that directory is
3579 # removed, or if the value is a relative name.
3580 INSTALL=$ac_install_sh
7a197a62 3581 fi
d0191583 3582fi
fddafd51
ZK
3583{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3584$as_echo "$INSTALL" >&6; }
ad6254c5 3585
d0191583
JM
3586# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3587# It thinks the first close brace ends the variable substitution.
3588test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
ad6254c5 3589
d0191583 3590test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
80992638 3591
d0191583
JM
3592test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3593
fddafd51
ZK
3594{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
3595$as_echo_n "checking whether ln -s works... " >&6; }
d0191583
JM
3596LN_S=$as_ln_s
3597if test "$LN_S" = "ln -s"; then
fddafd51
ZK
3598 { $as_echo "$as_me:$LINENO: result: yes" >&5
3599$as_echo "yes" >&6; }
d0191583 3600else
fddafd51
ZK
3601 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3602$as_echo "no, using $LN_S" >&6; }
795ca3e5 3603fi
d0191583 3604
fddafd51
ZK
3605{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3606$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3607set x ${MAKE-make}
3608ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
d0191583 3609if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
fddafd51 3610 $as_echo_n "(cached) " >&6
7a197a62 3611else
d0191583
JM
3612 cat >conftest.make <<\_ACEOF
3613SHELL = /bin/sh
3614all:
3615 @echo '@@@%%%=$(MAKE)=@@@%%%'
3616_ACEOF
3617# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3618case `${MAKE-make} -f conftest.make 2>/dev/null` in
3619 *@@@%%%=?*=@@@%%%*)
3620 eval ac_cv_prog_make_${ac_make}_set=yes;;
3621 *)
3622 eval ac_cv_prog_make_${ac_make}_set=no;;
3623esac
3624rm -f conftest.make
ad6254c5 3625fi
d0191583 3626if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
fddafd51
ZK
3627 { $as_echo "$as_me:$LINENO: result: yes" >&5
3628$as_echo "yes" >&6; }
d0191583
JM
3629 SET_MAKE=
3630else
fddafd51
ZK
3631 { $as_echo "$as_me:$LINENO: result: no" >&5
3632$as_echo "no" >&6; }
d0191583 3633 SET_MAKE="MAKE=${MAKE-make}"
795ca3e5 3634fi
8106cdd5 3635
d0191583
JM
3636if test -n "$ac_tool_prefix"; then
3637 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3638set dummy ${ac_tool_prefix}ranlib; ac_word=$2
fddafd51
ZK
3639{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3640$as_echo_n "checking for $ac_word... " >&6; }
d0191583 3641if test "${ac_cv_prog_RANLIB+set}" = set; then
fddafd51 3642 $as_echo_n "(cached) " >&6
d0191583
JM
3643else
3644 if test -n "$RANLIB"; then
3645 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3646else
3647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3648for as_dir in $PATH
3649do
3650 IFS=$as_save_IFS
3651 test -z "$as_dir" && as_dir=.
3652 for ac_exec_ext in '' $ac_executable_extensions; do
3653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3654 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
fddafd51 3655 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
3656 break 2
3657 fi
3658done
3659done
3660IFS=$as_save_IFS
8106cdd5 3661
795ca3e5 3662fi
d0191583
JM
3663fi
3664RANLIB=$ac_cv_prog_RANLIB
3665if test -n "$RANLIB"; then
fddafd51
ZK
3666 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
3667$as_echo "$RANLIB" >&6; }
d0191583 3668else
fddafd51
ZK
3669 { $as_echo "$as_me:$LINENO: result: no" >&5
3670$as_echo "no" >&6; }
d0191583
JM
3671fi
3672
8106cdd5 3673
ad6254c5 3674fi
d0191583
JM
3675if test -z "$ac_cv_prog_RANLIB"; then
3676 ac_ct_RANLIB=$RANLIB
3677 # Extract the first word of "ranlib", so it can be a program name with args.
3678set dummy ranlib; ac_word=$2
fddafd51
ZK
3679{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3680$as_echo_n "checking for $ac_word... " >&6; }
d0191583 3681if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
fddafd51 3682 $as_echo_n "(cached) " >&6
ad6254c5 3683else
d0191583
JM
3684 if test -n "$ac_ct_RANLIB"; then
3685 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3686else
3687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3688for as_dir in $PATH
8106cdd5 3689do
d0191583
JM
3690 IFS=$as_save_IFS
3691 test -z "$as_dir" && as_dir=.
3692 for ac_exec_ext in '' $ac_executable_extensions; do
3693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3694 ac_cv_prog_ac_ct_RANLIB="ranlib"
fddafd51 3695 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
3696 break 2
3697 fi
3698done
3699done
3700IFS=$as_save_IFS
3701
3702fi
3703fi
3704ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3705if test -n "$ac_ct_RANLIB"; then
fddafd51
ZK
3706 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3707$as_echo "$ac_ct_RANLIB" >&6; }
ad6254c5 3708else
fddafd51
ZK
3709 { $as_echo "$as_me:$LINENO: result: no" >&5
3710$as_echo "no" >&6; }
d0191583 3711fi
ad6254c5 3712
d0191583
JM
3713 if test "x$ac_ct_RANLIB" = x; then
3714 RANLIB=":"
3715 else
3716 case $cross_compiling:$ac_tool_warned in
3717yes:)
fddafd51 3718{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
d0191583
JM
3719whose name does not start with the host triplet. If you think this
3720configuration is useful to you, please write to autoconf@gnu.org." >&5
fddafd51 3721$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
d0191583
JM
3722whose name does not start with the host triplet. If you think this
3723configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3724ac_tool_warned=yes ;;
3725esac
3726 RANLIB=$ac_ct_RANLIB
3727 fi
3728else
3729 RANLIB="$ac_cv_prog_RANLIB"
ad6254c5 3730fi
7a197a62 3731
fddafd51
ZK
3732{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
3733$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3734if test -z "$MKDIR_P"; then
3735 if test "${ac_cv_path_mkdir+set}" = set; then
3736 $as_echo_n "(cached) " >&6
3737else
3738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3739for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3740do
3741 IFS=$as_save_IFS
3742 test -z "$as_dir" && as_dir=.
3743 for ac_prog in mkdir gmkdir; do
3744 for ac_exec_ext in '' $ac_executable_extensions; do
3745 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3746 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3747 'mkdir (GNU coreutils) '* | \
3748 'mkdir (coreutils) '* | \
3749 'mkdir (fileutils) '4.1*)
3750 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3751 break 3;;
3752 esac
3753 done
3754 done
3755done
3756IFS=$as_save_IFS
3757
3758fi
3759
3760 if test "${ac_cv_path_mkdir+set}" = set; then
3761 MKDIR_P="$ac_cv_path_mkdir -p"
3762 else
3763 # As a last resort, use the slow shell script. Don't cache a
3764 # value for MKDIR_P within a source directory, because that will
3765 # break other packages using the cache if that directory is
3766 # removed, or if the value is a relative name.
3767 test -d ./--version && rmdir ./--version
3768 MKDIR_P="$ac_install_sh -d"
3769 fi
3770fi
3771{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
3772$as_echo "$MKDIR_P" >&6; }
3773
d0191583
JM
3774# Extract the first word of "cflow", so it can be a program name with args.
3775set dummy cflow; ac_word=$2
fddafd51
ZK
3776{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3777$as_echo_n "checking for $ac_word... " >&6; }
d0191583 3778if test "${ac_cv_path_CFLOW_CMD+set}" = set; then
fddafd51 3779 $as_echo_n "(cached) " >&6
d0191583
JM
3780else
3781 case $CFLOW_CMD in
3782 [\\/]* | ?:[\\/]*)
3783 ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path.
3784 ;;
3785 *)
3786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3787for as_dir in $PATH
3788do
3789 IFS=$as_save_IFS
3790 test -z "$as_dir" && as_dir=.
3791 for ac_exec_ext in '' $ac_executable_extensions; do
3792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3793 ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext"
fddafd51 3794 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
3795 break 2
3796 fi
3797done
3798done
3799IFS=$as_save_IFS
ad6254c5 3800
d0191583 3801 ;;
7a197a62 3802esac
d0191583
JM
3803fi
3804CFLOW_CMD=$ac_cv_path_CFLOW_CMD
3805if test -n "$CFLOW_CMD"; then
fddafd51
ZK
3806 { $as_echo "$as_me:$LINENO: result: $CFLOW_CMD" >&5
3807$as_echo "$CFLOW_CMD" >&6; }
80992638 3808else
fddafd51
ZK
3809 { $as_echo "$as_me:$LINENO: result: no" >&5
3810$as_echo "no" >&6; }
795ca3e5 3811fi
7a197a62 3812
ad6254c5 3813
d0191583
JM
3814# Extract the first word of "cscope", so it can be a program name with args.
3815set dummy cscope; ac_word=$2
fddafd51
ZK
3816{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3817$as_echo_n "checking for $ac_word... " >&6; }
d0191583 3818if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then
fddafd51 3819 $as_echo_n "(cached) " >&6
d0191583
JM
3820else
3821 case $CSCOPE_CMD in
3822 [\\/]* | ?:[\\/]*)
3823 ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path.
3824 ;;
3825 *)
3826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3827for as_dir in $PATH
3828do
3829 IFS=$as_save_IFS
3830 test -z "$as_dir" && as_dir=.
3831 for ac_exec_ext in '' $ac_executable_extensions; do
3832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3833 ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext"
fddafd51 3834 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
3835 break 2
3836 fi
795ca3e5 3837done
d0191583
JM
3838done
3839IFS=$as_save_IFS
795ca3e5 3840
d0191583
JM
3841 ;;
3842esac
ad6254c5 3843fi
d0191583
JM
3844CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD
3845if test -n "$CSCOPE_CMD"; then
fddafd51
ZK
3846 { $as_echo "$as_me:$LINENO: result: $CSCOPE_CMD" >&5
3847$as_echo "$CSCOPE_CMD" >&6; }
795ca3e5 3848else
fddafd51
ZK
3849 { $as_echo "$as_me:$LINENO: result: no" >&5
3850$as_echo "no" >&6; }
795ca3e5 3851fi
ad6254c5 3852
7a197a62 3853
ad6254c5 3854
d0191583
JM
3855################################################################################
3856
3857
3858
3859
3860
3861ac_header_dirent=no
3862for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
fddafd51
ZK
3863 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
3864{ $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
3865$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
d0191583 3866if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
fddafd51 3867 $as_echo_n "(cached) " >&6
d0191583 3868else
ad6254c5 3869 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3870/* confdefs.h. */
3871_ACEOF
3872cat confdefs.h >>conftest.$ac_ext
3873cat >>conftest.$ac_ext <<_ACEOF
3874/* end confdefs.h. */
d0191583
JM
3875#include <sys/types.h>
3876#include <$ac_hdr>
3877
3878int
3879main ()
3880{
3881if ((DIR *) 0)
3882return 0;
3883 ;
3884 return 0;
3885}
ad6254c5 3886_ACEOF
d0191583
JM
3887rm -f conftest.$ac_objext
3888if { (ac_try="$ac_compile"
7a197a62
AK
3889case "(($ac_try" in
3890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3891 *) ac_try_echo=$ac_try;;
3892esac
fddafd51
ZK
3893eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3894$as_echo "$ac_try_echo") >&5
d0191583 3895 (eval "$ac_compile") 2>conftest.er1
ad6254c5
AK
3896 ac_status=$?
3897 grep -v '^ *+' conftest.er1 >conftest.err
3898 rm -f conftest.er1
3899 cat conftest.err >&5
fddafd51 3900 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3901 (exit $ac_status); } && {
3902 test -z "$ac_c_werror_flag" ||
25fbec5b 3903 test ! -s conftest.err
d0191583
JM
3904 } && test -s conftest.$ac_objext; then
3905 eval "$as_ac_Header=yes"
ad6254c5 3906else
fddafd51 3907 $as_echo "$as_me: failed program was:" >&5
ad6254c5 3908sed 's/^/| /' conftest.$ac_ext >&5
8106cdd5 3909
d0191583 3910 eval "$as_ac_Header=no"
795ca3e5 3911fi
7a197a62 3912
d0191583 3913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
795ca3e5 3914fi
fddafd51
ZK
3915ac_res=`eval 'as_val=${'$as_ac_Header'}
3916 $as_echo "$as_val"'`
3917 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
3918$as_echo "$ac_res" >&6; }
3919if test `eval 'as_val=${'$as_ac_Header'}
3920 $as_echo "$as_val"'` = yes; then
d0191583 3921 cat >>confdefs.h <<_ACEOF
fddafd51 3922#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
d0191583 3923_ACEOF
795ca3e5 3924
d0191583
JM
3925ac_header_dirent=$ac_hdr; break
3926fi
ad6254c5 3927
d0191583
JM
3928done
3929# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3930if test $ac_header_dirent = dirent.h; then
fddafd51
ZK
3931 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
3932$as_echo_n "checking for library containing opendir... " >&6; }
d0191583 3933if test "${ac_cv_search_opendir+set}" = set; then
fddafd51 3934 $as_echo_n "(cached) " >&6
ad6254c5 3935else
d0191583
JM
3936 ac_func_search_save_LIBS=$LIBS
3937cat >conftest.$ac_ext <<_ACEOF
3938/* confdefs.h. */
3939_ACEOF
3940cat confdefs.h >>conftest.$ac_ext
3941cat >>conftest.$ac_ext <<_ACEOF
3942/* end confdefs.h. */
ad6254c5 3943
d0191583
JM
3944/* Override any GCC internal prototype to avoid an error.
3945 Use char because int might match the return type of a GCC
3946 builtin and then its argument prototype would still apply. */
3947#ifdef __cplusplus
3948extern "C"
3949#endif
3950char opendir ();
3951int
3952main ()
3953{
3954return opendir ();
3955 ;
3956 return 0;
3957}
3958_ACEOF
3959for ac_lib in '' dir; do
3960 if test -z "$ac_lib"; then
3961 ac_res="none required"
3962 else
3963 ac_res=-l$ac_lib
3964 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3965 fi
3966 rm -f conftest.$ac_objext conftest$ac_exeext
3967if { (ac_try="$ac_link"
3968case "(($ac_try" in
3969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3970 *) ac_try_echo=$ac_try;;
3971esac
fddafd51
ZK
3972eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3973$as_echo "$ac_try_echo") >&5
d0191583
JM
3974 (eval "$ac_link") 2>conftest.er1
3975 ac_status=$?
3976 grep -v '^ *+' conftest.er1 >conftest.err
3977 rm -f conftest.er1
3978 cat conftest.err >&5
fddafd51 3979 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3980 (exit $ac_status); } && {
3981 test -z "$ac_c_werror_flag" ||
3982 test ! -s conftest.err
fddafd51
ZK
3983 } && test -s conftest$ac_exeext && {
3984 test "$cross_compiling" = yes ||
3985 $as_test_x conftest$ac_exeext
3986 }; then
d0191583
JM
3987 ac_cv_search_opendir=$ac_res
3988else
fddafd51 3989 $as_echo "$as_me: failed program was:" >&5
d0191583 3990sed 's/^/| /' conftest.$ac_ext >&5
ad6254c5 3991
ad6254c5 3992
795ca3e5 3993fi
ad6254c5 3994
fddafd51 3995rm -rf conftest.dSYM
d0191583
JM
3996rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3997 conftest$ac_exeext
3998 if test "${ac_cv_search_opendir+set}" = set; then
3999 break
7a197a62 4000fi
d0191583
JM
4001done
4002if test "${ac_cv_search_opendir+set}" = set; then
4003 :
7a197a62 4004else
d0191583 4005 ac_cv_search_opendir=no
7a197a62 4006fi
d0191583
JM
4007rm conftest.$ac_ext
4008LIBS=$ac_func_search_save_LIBS
7a197a62 4009fi
fddafd51
ZK
4010{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4011$as_echo "$ac_cv_search_opendir" >&6; }
d0191583
JM
4012ac_res=$ac_cv_search_opendir
4013if test "$ac_res" != no; then
4014 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7a197a62 4015
d0191583 4016fi
7a197a62 4017
7a197a62 4018else
fddafd51
ZK
4019 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
4020$as_echo_n "checking for library containing opendir... " >&6; }
d0191583 4021if test "${ac_cv_search_opendir+set}" = set; then
fddafd51 4022 $as_echo_n "(cached) " >&6
7a197a62 4023else
d0191583
JM
4024 ac_func_search_save_LIBS=$LIBS
4025cat >conftest.$ac_ext <<_ACEOF
4026/* confdefs.h. */
4027_ACEOF
4028cat confdefs.h >>conftest.$ac_ext
4029cat >>conftest.$ac_ext <<_ACEOF
4030/* end confdefs.h. */
7a197a62 4031
d0191583
JM
4032/* Override any GCC internal prototype to avoid an error.
4033 Use char because int might match the return type of a GCC
4034 builtin and then its argument prototype would still apply. */
4035#ifdef __cplusplus
4036extern "C"
4037#endif
4038char opendir ();
4039int
4040main ()
4041{
4042return opendir ();
4043 ;
4044 return 0;
4045}
4046_ACEOF
4047for ac_lib in '' x; do
4048 if test -z "$ac_lib"; then
4049 ac_res="none required"
4050 else
4051 ac_res=-l$ac_lib
4052 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4053 fi
4054 rm -f conftest.$ac_objext conftest$ac_exeext
4055if { (ac_try="$ac_link"
4056case "(($ac_try" in
4057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4058 *) ac_try_echo=$ac_try;;
4059esac
fddafd51
ZK
4060eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4061$as_echo "$ac_try_echo") >&5
d0191583
JM
4062 (eval "$ac_link") 2>conftest.er1
4063 ac_status=$?
4064 grep -v '^ *+' conftest.er1 >conftest.err
4065 rm -f conftest.er1
4066 cat conftest.err >&5
fddafd51 4067 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4068 (exit $ac_status); } && {
4069 test -z "$ac_c_werror_flag" ||
4070 test ! -s conftest.err
fddafd51
ZK
4071 } && test -s conftest$ac_exeext && {
4072 test "$cross_compiling" = yes ||
4073 $as_test_x conftest$ac_exeext
4074 }; then
d0191583
JM
4075 ac_cv_search_opendir=$ac_res
4076else
fddafd51 4077 $as_echo "$as_me: failed program was:" >&5
d0191583 4078sed 's/^/| /' conftest.$ac_ext >&5
7a197a62
AK
4079
4080
4081fi
4082
fddafd51 4083rm -rf conftest.dSYM
d0191583
JM
4084rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4085 conftest$ac_exeext
4086 if test "${ac_cv_search_opendir+set}" = set; then
4087 break
7a197a62 4088fi
d0191583
JM
4089done
4090if test "${ac_cv_search_opendir+set}" = set; then
4091 :
7a197a62 4092else
d0191583 4093 ac_cv_search_opendir=no
7a197a62 4094fi
d0191583
JM
4095rm conftest.$ac_ext
4096LIBS=$ac_func_search_save_LIBS
4097fi
fddafd51
ZK
4098{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4099$as_echo "$ac_cv_search_opendir" >&6; }
d0191583
JM
4100ac_res=$ac_cv_search_opendir
4101if test "$ac_res" != no; then
4102 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7a197a62 4103
7a197a62 4104fi
7a197a62 4105
d0191583 4106fi
7a197a62 4107
fddafd51
ZK
4108{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4109$as_echo_n "checking for ANSI C header files... " >&6; }
7a197a62 4110if test "${ac_cv_header_stdc+set}" = set; then
fddafd51 4111 $as_echo_n "(cached) " >&6
7a197a62
AK
4112else
4113 cat >conftest.$ac_ext <<_ACEOF
4114/* confdefs.h. */
4115_ACEOF
4116cat confdefs.h >>conftest.$ac_ext
4117cat >>conftest.$ac_ext <<_ACEOF
4118/* end confdefs.h. */
4119#include <stdlib.h>
4120#include <stdarg.h>
4121#include <string.h>
4122#include <float.h>
4123
4124int
4125main ()
4126{
4127
4128 ;
4129 return 0;
4130}
4131_ACEOF
4132rm -f conftest.$ac_objext
4133if { (ac_try="$ac_compile"
4134case "(($ac_try" in
4135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4136 *) ac_try_echo=$ac_try;;
4137esac
fddafd51
ZK
4138eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4139$as_echo "$ac_try_echo") >&5
7a197a62
AK
4140 (eval "$ac_compile") 2>conftest.er1
4141 ac_status=$?
4142 grep -v '^ *+' conftest.er1 >conftest.err
4143 rm -f conftest.er1
4144 cat conftest.err >&5
fddafd51 4145 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4146 (exit $ac_status); } && {
4147 test -z "$ac_c_werror_flag" ||
4148 test ! -s conftest.err
4149 } && test -s conftest.$ac_objext; then
7a197a62
AK
4150 ac_cv_header_stdc=yes
4151else
fddafd51 4152 $as_echo "$as_me: failed program was:" >&5
7a197a62
AK
4153sed 's/^/| /' conftest.$ac_ext >&5
4154
4155 ac_cv_header_stdc=no
4156fi
4157
4158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4159
4160if test $ac_cv_header_stdc = yes; then
4161 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
ad6254c5 4162 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4163/* confdefs.h. */
4164_ACEOF
4165cat confdefs.h >>conftest.$ac_ext
4166cat >>conftest.$ac_ext <<_ACEOF
4167/* end confdefs.h. */
4168#include <string.h>
8106cdd5 4169
ad6254c5
AK
4170_ACEOF
4171if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4172 $EGREP "memchr" >/dev/null 2>&1; then
4173 :
4174else
4175 ac_cv_header_stdc=no
80992638 4176fi
ad6254c5 4177rm -f conftest*
795ca3e5
AK
4178
4179fi
4180
ad6254c5
AK
4181if test $ac_cv_header_stdc = yes; then
4182 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4183 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4184/* confdefs.h. */
4185_ACEOF
4186cat confdefs.h >>conftest.$ac_ext
4187cat >>conftest.$ac_ext <<_ACEOF
4188/* end confdefs.h. */
80992638 4189#include <stdlib.h>
ad6254c5
AK
4190
4191_ACEOF
80992638 4192if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ad6254c5
AK
4193 $EGREP "free" >/dev/null 2>&1; then
4194 :
795ca3e5 4195else
ad6254c5 4196 ac_cv_header_stdc=no
795ca3e5 4197fi
80992638 4198rm -f conftest*
8106cdd5 4199
795ca3e5
AK
4200fi
4201
ad6254c5
AK
4202if test $ac_cv_header_stdc = yes; then
4203 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4204 if test "$cross_compiling" = yes; then
4205 :
795ca3e5 4206else
ad6254c5 4207 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4208/* confdefs.h. */
4209_ACEOF
4210cat confdefs.h >>conftest.$ac_ext
4211cat >>conftest.$ac_ext <<_ACEOF
4212/* end confdefs.h. */
4213#include <ctype.h>
7a197a62 4214#include <stdlib.h>
ad6254c5
AK
4215#if ((' ' & 0x0FF) == 0x020)
4216# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4217# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4218#else
4219# define ISLOWER(c) \
8a2fc586
AK
4220 (('a' <= (c) && (c) <= 'i') \
4221 || ('j' <= (c) && (c) <= 'r') \
4222 || ('s' <= (c) && (c) <= 'z'))
ad6254c5 4223# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
80992638 4224#endif
ad6254c5
AK
4225
4226#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4227int
4228main ()
4229{
4230 int i;
4231 for (i = 0; i < 256; i++)
4232 if (XOR (islower (i), ISLOWER (i))
8a2fc586 4233 || toupper (i) != TOUPPER (i))
7a197a62
AK
4234 return 2;
4235 return 0;
ad6254c5
AK
4236}
4237_ACEOF
4238rm -f conftest$ac_exeext
7a197a62
AK
4239if { (ac_try="$ac_link"
4240case "(($ac_try" in
4241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4242 *) ac_try_echo=$ac_try;;
4243esac
fddafd51
ZK
4244eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4245$as_echo "$ac_try_echo") >&5
7a197a62 4246 (eval "$ac_link") 2>&5
ad6254c5 4247 ac_status=$?
fddafd51 4248 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 4249 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
4250 { (case "(($ac_try" in
4251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4252 *) ac_try_echo=$ac_try;;
4253esac
fddafd51
ZK
4254eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4255$as_echo "$ac_try_echo") >&5
7a197a62 4256 (eval "$ac_try") 2>&5
ad6254c5 4257 ac_status=$?
fddafd51 4258 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
4259 (exit $ac_status); }; }; then
4260 :
795ca3e5 4261else
fddafd51
ZK
4262 $as_echo "$as_me: program exited with status $ac_status" >&5
4263$as_echo "$as_me: failed program was:" >&5
ad6254c5 4264sed 's/^/| /' conftest.$ac_ext >&5
8106cdd5 4265
ad6254c5
AK
4266( exit $ac_status )
4267ac_cv_header_stdc=no
80992638 4268fi
fddafd51 4269rm -rf conftest.dSYM
7a197a62 4270rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 4271fi
7a197a62
AK
4272
4273
ad6254c5
AK
4274fi
4275fi
fddafd51
ZK
4276{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4277$as_echo "$ac_cv_header_stdc" >&6; }
ad6254c5
AK
4278if test $ac_cv_header_stdc = yes; then
4279
4280cat >>confdefs.h <<\_ACEOF
4281#define STDC_HEADERS 1
4282_ACEOF
795ca3e5
AK
4283
4284fi
4285
fddafd51
ZK
4286{ $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
4287$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
ad6254c5 4288if test "${ac_cv_header_sys_wait_h+set}" = set; then
fddafd51 4289 $as_echo_n "(cached) " >&6
8106cdd5 4290else
ad6254c5 4291 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4292/* confdefs.h. */
4293_ACEOF
4294cat confdefs.h >>conftest.$ac_ext
4295cat >>conftest.$ac_ext <<_ACEOF
4296/* end confdefs.h. */
80992638 4297#include <sys/types.h>
ad6254c5
AK
4298#include <sys/wait.h>
4299#ifndef WEXITSTATUS
7a197a62 4300# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
ad6254c5
AK
4301#endif
4302#ifndef WIFEXITED
4303# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4304#endif
4305
4306int
4307main ()
4308{
4309 int s;
4310 wait (&s);
4311 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4312 ;
4313 return 0;
4314}
4315_ACEOF
4316rm -f conftest.$ac_objext
7a197a62
AK
4317if { (ac_try="$ac_compile"
4318case "(($ac_try" in
4319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4320 *) ac_try_echo=$ac_try;;
4321esac
fddafd51
ZK
4322eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4323$as_echo "$ac_try_echo") >&5
7a197a62 4324 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4325 ac_status=$?
8a2fc586
AK
4326 grep -v '^ *+' conftest.er1 >conftest.err
4327 rm -f conftest.er1
4328 cat conftest.err >&5
fddafd51 4329 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4330 (exit $ac_status); } && {
4331 test -z "$ac_c_werror_flag" ||
4332 test ! -s conftest.err
4333 } && test -s conftest.$ac_objext; then
ad6254c5
AK
4334 ac_cv_header_sys_wait_h=yes
4335else
fddafd51 4336 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
4337sed 's/^/| /' conftest.$ac_ext >&5
4338
7a197a62 4339 ac_cv_header_sys_wait_h=no
8106cdd5 4340fi
7a197a62
AK
4341
4342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
795ca3e5 4343fi
fddafd51
ZK
4344{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
4345$as_echo "$ac_cv_header_sys_wait_h" >&6; }
ad6254c5 4346if test $ac_cv_header_sys_wait_h = yes; then
8106cdd5 4347
ad6254c5
AK
4348cat >>confdefs.h <<\_ACEOF
4349#define HAVE_SYS_WAIT_H 1
4350_ACEOF
795ca3e5
AK
4351
4352fi
4353
fddafd51
ZK
4354{ $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4355$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
ad6254c5 4356if test "${ac_cv_header_time+set}" = set; then
fddafd51 4357 $as_echo_n "(cached) " >&6
795ca3e5 4358else
ad6254c5 4359 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4360/* confdefs.h. */
4361_ACEOF
4362cat confdefs.h >>conftest.$ac_ext
4363cat >>conftest.$ac_ext <<_ACEOF
4364/* end confdefs.h. */
795ca3e5
AK
4365#include <sys/types.h>
4366#include <sys/time.h>
4367#include <time.h>
ad6254c5
AK
4368
4369int
4370main ()
4371{
4372if ((struct tm *) 0)
4373return 0;
4374 ;
4375 return 0;
4376}
4377_ACEOF
4378rm -f conftest.$ac_objext
7a197a62
AK
4379if { (ac_try="$ac_compile"
4380case "(($ac_try" in
4381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4382 *) ac_try_echo=$ac_try;;
4383esac
fddafd51
ZK
4384eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4385$as_echo "$ac_try_echo") >&5
7a197a62 4386 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4387 ac_status=$?
8a2fc586
AK
4388 grep -v '^ *+' conftest.er1 >conftest.err
4389 rm -f conftest.er1
4390 cat conftest.err >&5
fddafd51 4391 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4392 (exit $ac_status); } && {
4393 test -z "$ac_c_werror_flag" ||
4394 test ! -s conftest.err
4395 } && test -s conftest.$ac_objext; then
795ca3e5
AK
4396 ac_cv_header_time=yes
4397else
fddafd51 4398 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
4399sed 's/^/| /' conftest.$ac_ext >&5
4400
7a197a62 4401 ac_cv_header_time=no
795ca3e5 4402fi
7a197a62
AK
4403
4404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
795ca3e5 4405fi
fddafd51
ZK
4406{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4407$as_echo "$ac_cv_header_time" >&6; }
80992638 4408if test $ac_cv_header_time = yes; then
ad6254c5
AK
4409
4410cat >>confdefs.h <<\_ACEOF
795ca3e5 4411#define TIME_WITH_SYS_TIME 1
ad6254c5 4412_ACEOF
b896caa1 4413
8106cdd5 4414fi
b896caa1 4415
b896caa1 4416
d0191583
JM
4417# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4428 inttypes.h stdint.h unistd.h
4429do
fddafd51
ZK
4430as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4431{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4432$as_echo_n "checking for $ac_header... " >&6; }
d0191583 4433if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
fddafd51 4434 $as_echo_n "(cached) " >&6
d0191583
JM
4435else
4436 cat >conftest.$ac_ext <<_ACEOF
4437/* confdefs.h. */
4438_ACEOF
4439cat confdefs.h >>conftest.$ac_ext
4440cat >>conftest.$ac_ext <<_ACEOF
4441/* end confdefs.h. */
4442$ac_includes_default
4443
4444#include <$ac_header>
4445_ACEOF
4446rm -f conftest.$ac_objext
4447if { (ac_try="$ac_compile"
4448case "(($ac_try" in
4449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4450 *) ac_try_echo=$ac_try;;
4451esac
fddafd51
ZK
4452eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4453$as_echo "$ac_try_echo") >&5
d0191583
JM
4454 (eval "$ac_compile") 2>conftest.er1
4455 ac_status=$?
4456 grep -v '^ *+' conftest.er1 >conftest.err
4457 rm -f conftest.er1
4458 cat conftest.err >&5
fddafd51 4459 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4460 (exit $ac_status); } && {
4461 test -z "$ac_c_werror_flag" ||
4462 test ! -s conftest.err
4463 } && test -s conftest.$ac_objext; then
4464 eval "$as_ac_Header=yes"
4465else
fddafd51 4466 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
4467sed 's/^/| /' conftest.$ac_ext >&5
4468
4469 eval "$as_ac_Header=no"
4470fi
4471
4472rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4473fi
fddafd51
ZK
4474ac_res=`eval 'as_val=${'$as_ac_Header'}
4475 $as_echo "$as_val"'`
4476 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4477$as_echo "$ac_res" >&6; }
4478if test `eval 'as_val=${'$as_ac_Header'}
4479 $as_echo "$as_val"'` = yes; then
d0191583 4480 cat >>confdefs.h <<_ACEOF
fddafd51 4481#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
d0191583
JM
4482_ACEOF
4483
4484fi
4485
4486done
4487
b896caa1 4488
b896caa1
AK
4489
4490
795ca3e5 4491
8106cdd5 4492
80992638 4493
795ca3e5 4494
a38df97f 4495
80992638 4496
d0191583
JM
4497
4498
4499
4500
4501
4502for ac_header in locale.h stddef.h syslog.h sys/file.h sys/time.h assert.h \
4503 libgen.h signal.h sys/mman.h sys/resource.h sys/utsname.h sys/wait.h time.h
ad6254c5 4504do
fddafd51 4505as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
d0191583 4506if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
fddafd51
ZK
4507 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4508$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 4509if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
fddafd51 4510 $as_echo_n "(cached) " >&6
d0191583 4511fi
fddafd51
ZK
4512ac_res=`eval 'as_val=${'$as_ac_Header'}
4513 $as_echo "$as_val"'`
4514 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4515$as_echo "$ac_res" >&6; }
ad6254c5 4516else
d0191583 4517 # Is the header compilable?
fddafd51
ZK
4518{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4519$as_echo_n "checking $ac_header usability... " >&6; }
d0191583 4520cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4521/* confdefs.h. */
4522_ACEOF
4523cat confdefs.h >>conftest.$ac_ext
4524cat >>conftest.$ac_ext <<_ACEOF
4525/* end confdefs.h. */
4526$ac_includes_default
ad6254c5
AK
4527#include <$ac_header>
4528_ACEOF
4529rm -f conftest.$ac_objext
7a197a62
AK
4530if { (ac_try="$ac_compile"
4531case "(($ac_try" in
4532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4533 *) ac_try_echo=$ac_try;;
4534esac
fddafd51
ZK
4535eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4536$as_echo "$ac_try_echo") >&5
7a197a62 4537 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4538 ac_status=$?
8a2fc586
AK
4539 grep -v '^ *+' conftest.er1 >conftest.err
4540 rm -f conftest.er1
4541 cat conftest.err >&5
fddafd51 4542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4543 (exit $ac_status); } && {
4544 test -z "$ac_c_werror_flag" ||
4545 test ! -s conftest.err
4546 } && test -s conftest.$ac_objext; then
d0191583 4547 ac_header_compiler=yes
ad6254c5 4548else
fddafd51 4549 $as_echo "$as_me: failed program was:" >&5
ad6254c5 4550sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 4551
d0191583 4552 ac_header_compiler=no
ad6254c5 4553fi
7a197a62
AK
4554
4555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fddafd51
ZK
4556{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4557$as_echo "$ac_header_compiler" >&6; }
d0191583
JM
4558
4559# Is the header present?
fddafd51
ZK
4560{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4561$as_echo_n "checking $ac_header presence... " >&6; }
d0191583
JM
4562cat >conftest.$ac_ext <<_ACEOF
4563/* confdefs.h. */
4564_ACEOF
4565cat confdefs.h >>conftest.$ac_ext
4566cat >>conftest.$ac_ext <<_ACEOF
4567/* end confdefs.h. */
4568#include <$ac_header>
4569_ACEOF
4570if { (ac_try="$ac_cpp conftest.$ac_ext"
4571case "(($ac_try" in
4572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4573 *) ac_try_echo=$ac_try;;
4574esac
fddafd51
ZK
4575eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4576$as_echo "$ac_try_echo") >&5
d0191583
JM
4577 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4578 ac_status=$?
4579 grep -v '^ *+' conftest.er1 >conftest.err
4580 rm -f conftest.er1
4581 cat conftest.err >&5
fddafd51 4582 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4583 (exit $ac_status); } >/dev/null && {
4584 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4585 test ! -s conftest.err
4586 }; then
4587 ac_header_preproc=yes
4588else
fddafd51 4589 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
4590sed 's/^/| /' conftest.$ac_ext >&5
4591
4592 ac_header_preproc=no
4593fi
4594
4595rm -f conftest.err conftest.$ac_ext
fddafd51
ZK
4596{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4597$as_echo "$ac_header_preproc" >&6; }
d0191583
JM
4598
4599# So? What about this header?
4600case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4601 yes:no: )
fddafd51
ZK
4602 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4603$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4604 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4605$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
d0191583
JM
4606 ac_header_preproc=yes
4607 ;;
4608 no:yes:* )
fddafd51
ZK
4609 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4610$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4611 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4612$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4613 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4614$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4615 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4616$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4617 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4618$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4619 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4620$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
d0191583
JM
4621
4622 ;;
4623esac
fddafd51
ZK
4624{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4625$as_echo_n "checking for $ac_header... " >&6; }
d0191583 4626if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
fddafd51 4627 $as_echo_n "(cached) " >&6
d0191583
JM
4628else
4629 eval "$as_ac_Header=\$ac_header_preproc"
a38df97f 4630fi
fddafd51
ZK
4631ac_res=`eval 'as_val=${'$as_ac_Header'}
4632 $as_echo "$as_val"'`
4633 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4634$as_echo "$ac_res" >&6; }
d0191583
JM
4635
4636fi
fddafd51
ZK
4637if test `eval 'as_val=${'$as_ac_Header'}
4638 $as_echo "$as_val"'` = yes; then
ad6254c5 4639 cat >>confdefs.h <<_ACEOF
fddafd51 4640#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 4641_ACEOF
a38df97f 4642
d0191583 4643else
fddafd51
ZK
4644 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
4645$as_echo "$as_me: error: bailing out" >&2;}
d0191583 4646 { (exit 1); exit 1; }; }
80992638
AK
4647fi
4648
ad6254c5
AK
4649done
4650
7d1552c9 4651
d0191583
JM
4652case "$host_os" in
4653 linux*)
7d1552c9 4654
80992638 4655
5a52dca9 4656
d0191583 4657for ac_header in asm/byteorder.h linux/fs.h malloc.h
ad6254c5 4658do
fddafd51 4659as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 4660if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
fddafd51
ZK
4661 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4662$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 4663if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
fddafd51 4664 $as_echo_n "(cached) " >&6
ad6254c5 4665fi
fddafd51
ZK
4666ac_res=`eval 'as_val=${'$as_ac_Header'}
4667 $as_echo "$as_val"'`
4668 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4669$as_echo "$ac_res" >&6; }
ad6254c5
AK
4670else
4671 # Is the header compilable?
fddafd51
ZK
4672{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4673$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 4674cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4675/* confdefs.h. */
4676_ACEOF
4677cat confdefs.h >>conftest.$ac_ext
4678cat >>conftest.$ac_ext <<_ACEOF
4679/* end confdefs.h. */
4680$ac_includes_default
4681#include <$ac_header>
4682_ACEOF
4683rm -f conftest.$ac_objext
7a197a62
AK
4684if { (ac_try="$ac_compile"
4685case "(($ac_try" in
4686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4687 *) ac_try_echo=$ac_try;;
4688esac
fddafd51
ZK
4689eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4690$as_echo "$ac_try_echo") >&5
7a197a62 4691 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4692 ac_status=$?
8a2fc586
AK
4693 grep -v '^ *+' conftest.er1 >conftest.err
4694 rm -f conftest.er1
4695 cat conftest.err >&5
fddafd51 4696 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4697 (exit $ac_status); } && {
4698 test -z "$ac_c_werror_flag" ||
4699 test ! -s conftest.err
4700 } && test -s conftest.$ac_objext; then
fc54be10
AK
4701 ac_header_compiler=yes
4702else
fddafd51 4703 $as_echo "$as_me: failed program was:" >&5
fc54be10
AK
4704sed 's/^/| /' conftest.$ac_ext >&5
4705
4706 ac_header_compiler=no
4707fi
4708
4709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fddafd51
ZK
4710{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4711$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
4712
4713# Is the header present?
fddafd51
ZK
4714{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4715$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 4716cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4717/* confdefs.h. */
4718_ACEOF
4719cat confdefs.h >>conftest.$ac_ext
4720cat >>conftest.$ac_ext <<_ACEOF
4721/* end confdefs.h. */
4722#include <$ac_header>
4723_ACEOF
7a197a62
AK
4724if { (ac_try="$ac_cpp conftest.$ac_ext"
4725case "(($ac_try" in
4726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4727 *) ac_try_echo=$ac_try;;
4728esac
fddafd51
ZK
4729eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4730$as_echo "$ac_try_echo") >&5
7a197a62 4731 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
4732 ac_status=$?
4733 grep -v '^ *+' conftest.er1 >conftest.err
4734 rm -f conftest.er1
4735 cat conftest.err >&5
fddafd51 4736 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4737 (exit $ac_status); } >/dev/null && {
4738 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4739 test ! -s conftest.err
4740 }; then
ad6254c5
AK
4741 ac_header_preproc=yes
4742else
fddafd51 4743 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
4744sed 's/^/| /' conftest.$ac_ext >&5
4745
4746 ac_header_preproc=no
4747fi
7a197a62 4748
ad6254c5 4749rm -f conftest.err conftest.$ac_ext
fddafd51
ZK
4750{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4751$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
4752
4753# So? What about this header?
8a2fc586
AK
4754case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4755 yes:no: )
fddafd51
ZK
4756 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4757$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4758 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4759$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 4760 ac_header_preproc=yes
ad6254c5 4761 ;;
8a2fc586 4762 no:yes:* )
fddafd51
ZK
4763 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4764$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4765 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4766$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4767 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4768$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4769 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4770$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4771 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4772$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4773 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4774$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 4775
ad6254c5
AK
4776 ;;
4777esac
fddafd51
ZK
4778{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4779$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 4780if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
fddafd51 4781 $as_echo_n "(cached) " >&6
ad6254c5 4782else
8a2fc586 4783 eval "$as_ac_Header=\$ac_header_preproc"
b896caa1 4784fi
fddafd51
ZK
4785ac_res=`eval 'as_val=${'$as_ac_Header'}
4786 $as_echo "$as_val"'`
4787 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4788$as_echo "$ac_res" >&6; }
ad6254c5
AK
4789
4790fi
fddafd51
ZK
4791if test `eval 'as_val=${'$as_ac_Header'}
4792 $as_echo "$as_val"'` = yes; then
ad6254c5 4793 cat >>confdefs.h <<_ACEOF
fddafd51 4794#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 4795_ACEOF
b896caa1 4796
d8ac0fbc 4797else
fddafd51
ZK
4798 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
4799$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 4800 { (exit 1); exit 1; }; }
80992638
AK
4801fi
4802
ad6254c5 4803done
d0191583
JM
4804 ;;
4805 darwin*)
d8ac0fbc 4806
d8ac0fbc 4807
d0191583 4808for ac_header in machine/endian.h sys/disk.h
ad6254c5 4809do
fddafd51 4810as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 4811if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
fddafd51
ZK
4812 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4813$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 4814if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
fddafd51 4815 $as_echo_n "(cached) " >&6
ad6254c5 4816fi
fddafd51
ZK
4817ac_res=`eval 'as_val=${'$as_ac_Header'}
4818 $as_echo "$as_val"'`
4819 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4820$as_echo "$ac_res" >&6; }
ad6254c5
AK
4821else
4822 # Is the header compilable?
fddafd51
ZK
4823{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4824$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 4825cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4826/* confdefs.h. */
4827_ACEOF
4828cat confdefs.h >>conftest.$ac_ext
4829cat >>conftest.$ac_ext <<_ACEOF
4830/* end confdefs.h. */
4831$ac_includes_default
4832#include <$ac_header>
4833_ACEOF
4834rm -f conftest.$ac_objext
7a197a62
AK
4835if { (ac_try="$ac_compile"
4836case "(($ac_try" in
4837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4838 *) ac_try_echo=$ac_try;;
4839esac
fddafd51
ZK
4840eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4841$as_echo "$ac_try_echo") >&5
7a197a62 4842 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4843 ac_status=$?
8a2fc586
AK
4844 grep -v '^ *+' conftest.er1 >conftest.err
4845 rm -f conftest.er1
4846 cat conftest.err >&5
fddafd51 4847 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4848 (exit $ac_status); } && {
4849 test -z "$ac_c_werror_flag" ||
4850 test ! -s conftest.err
4851 } && test -s conftest.$ac_objext; then
ad6254c5
AK
4852 ac_header_compiler=yes
4853else
fddafd51 4854 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
4855sed 's/^/| /' conftest.$ac_ext >&5
4856
7a197a62 4857 ac_header_compiler=no
ad6254c5 4858fi
7a197a62
AK
4859
4860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fddafd51
ZK
4861{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4862$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
4863
4864# Is the header present?
fddafd51
ZK
4865{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4866$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 4867cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4868/* confdefs.h. */
4869_ACEOF
4870cat confdefs.h >>conftest.$ac_ext
4871cat >>conftest.$ac_ext <<_ACEOF
4872/* end confdefs.h. */
4873#include <$ac_header>
4874_ACEOF
7a197a62
AK
4875if { (ac_try="$ac_cpp conftest.$ac_ext"
4876case "(($ac_try" in
4877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4878 *) ac_try_echo=$ac_try;;
4879esac
fddafd51
ZK
4880eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4881$as_echo "$ac_try_echo") >&5
7a197a62 4882 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
4883 ac_status=$?
4884 grep -v '^ *+' conftest.er1 >conftest.err
4885 rm -f conftest.er1
4886 cat conftest.err >&5
fddafd51 4887 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4888 (exit $ac_status); } >/dev/null && {
4889 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4890 test ! -s conftest.err
4891 }; then
ad6254c5
AK
4892 ac_header_preproc=yes
4893else
fddafd51 4894 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
4895sed 's/^/| /' conftest.$ac_ext >&5
4896
4897 ac_header_preproc=no
4898fi
7a197a62 4899
ad6254c5 4900rm -f conftest.err conftest.$ac_ext
fddafd51
ZK
4901{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4902$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
4903
4904# So? What about this header?
8a2fc586
AK
4905case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4906 yes:no: )
fddafd51
ZK
4907 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4908$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4909 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4910$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 4911 ac_header_preproc=yes
ad6254c5 4912 ;;
8a2fc586 4913 no:yes:* )
fddafd51
ZK
4914 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4915$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4916 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4917$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4918 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4919$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4920 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4921$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4922 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4923$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4924 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4925$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 4926
ad6254c5
AK
4927 ;;
4928esac
fddafd51
ZK
4929{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4930$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 4931if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
fddafd51 4932 $as_echo_n "(cached) " >&6
ad6254c5 4933else
8a2fc586 4934 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 4935fi
fddafd51
ZK
4936ac_res=`eval 'as_val=${'$as_ac_Header'}
4937 $as_echo "$as_val"'`
4938 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4939$as_echo "$ac_res" >&6; }
ad6254c5
AK
4940
4941fi
fddafd51
ZK
4942if test `eval 'as_val=${'$as_ac_Header'}
4943 $as_echo "$as_val"'` = yes; then
ad6254c5 4944 cat >>confdefs.h <<_ACEOF
fddafd51 4945#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 4946_ACEOF
4922197a 4947
4922197a 4948else
fddafd51
ZK
4949 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
4950$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 4951 { (exit 1); exit 1; }; }
80992638
AK
4952fi
4953
ad6254c5 4954done
d0191583
JM
4955 ;;
4956esac
4922197a 4957
4922197a 4958
4922197a 4959
ad6254c5
AK
4960
4961
d0191583
JM
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974for ac_header in ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h \
4975 stdarg.h stdio.h stdlib.h string.h sys/ioctl.h sys/param.h sys/stat.h \
4976 sys/types.h unistd.h
ad6254c5 4977do
fddafd51 4978as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 4979if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
fddafd51
ZK
4980 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4981$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 4982if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
fddafd51 4983 $as_echo_n "(cached) " >&6
ad6254c5 4984fi
fddafd51
ZK
4985ac_res=`eval 'as_val=${'$as_ac_Header'}
4986 $as_echo "$as_val"'`
4987 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4988$as_echo "$ac_res" >&6; }
795ca3e5 4989else
ad6254c5 4990 # Is the header compilable?
fddafd51
ZK
4991{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4992$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 4993cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4994/* confdefs.h. */
4995_ACEOF
4996cat confdefs.h >>conftest.$ac_ext
4997cat >>conftest.$ac_ext <<_ACEOF
4998/* end confdefs.h. */
4999$ac_includes_default
5000#include <$ac_header>
5001_ACEOF
5002rm -f conftest.$ac_objext
7a197a62
AK
5003if { (ac_try="$ac_compile"
5004case "(($ac_try" in
5005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5006 *) ac_try_echo=$ac_try;;
5007esac
fddafd51
ZK
5008eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5009$as_echo "$ac_try_echo") >&5
7a197a62 5010 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5011 ac_status=$?
8a2fc586
AK
5012 grep -v '^ *+' conftest.er1 >conftest.err
5013 rm -f conftest.er1
5014 cat conftest.err >&5
fddafd51 5015 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5016 (exit $ac_status); } && {
5017 test -z "$ac_c_werror_flag" ||
5018 test ! -s conftest.err
5019 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5020 ac_header_compiler=yes
5021else
fddafd51 5022 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5023sed 's/^/| /' conftest.$ac_ext >&5
5024
7a197a62 5025 ac_header_compiler=no
ad6254c5 5026fi
7a197a62
AK
5027
5028rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fddafd51
ZK
5029{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5030$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
5031
5032# Is the header present?
fddafd51
ZK
5033{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5034$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 5035cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5036/* confdefs.h. */
5037_ACEOF
5038cat confdefs.h >>conftest.$ac_ext
5039cat >>conftest.$ac_ext <<_ACEOF
5040/* end confdefs.h. */
5041#include <$ac_header>
5042_ACEOF
7a197a62
AK
5043if { (ac_try="$ac_cpp conftest.$ac_ext"
5044case "(($ac_try" in
5045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5046 *) ac_try_echo=$ac_try;;
5047esac
fddafd51
ZK
5048eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5049$as_echo "$ac_try_echo") >&5
7a197a62 5050 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
5051 ac_status=$?
5052 grep -v '^ *+' conftest.er1 >conftest.err
5053 rm -f conftest.er1
5054 cat conftest.err >&5
fddafd51 5055 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5056 (exit $ac_status); } >/dev/null && {
5057 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5058 test ! -s conftest.err
5059 }; then
ad6254c5
AK
5060 ac_header_preproc=yes
5061else
fddafd51 5062 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5063sed 's/^/| /' conftest.$ac_ext >&5
5064
5065 ac_header_preproc=no
5066fi
7a197a62 5067
ad6254c5 5068rm -f conftest.err conftest.$ac_ext
fddafd51
ZK
5069{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5070$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
5071
5072# So? What about this header?
8a2fc586
AK
5073case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5074 yes:no: )
fddafd51
ZK
5075 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5076$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5077 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5078$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 5079 ac_header_preproc=yes
ad6254c5 5080 ;;
8a2fc586 5081 no:yes:* )
fddafd51
ZK
5082 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5083$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5084 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5085$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5086 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5087$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5088 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5089$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5090 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5091$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5092 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5093$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 5094
ad6254c5
AK
5095 ;;
5096esac
fddafd51
ZK
5097{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5098$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 5099if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
fddafd51 5100 $as_echo_n "(cached) " >&6
ad6254c5 5101else
8a2fc586 5102 eval "$as_ac_Header=\$ac_header_preproc"
80992638 5103fi
fddafd51
ZK
5104ac_res=`eval 'as_val=${'$as_ac_Header'}
5105 $as_echo "$as_val"'`
5106 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5107$as_echo "$ac_res" >&6; }
80992638 5108
ad6254c5 5109fi
fddafd51
ZK
5110if test `eval 'as_val=${'$as_ac_Header'}
5111 $as_echo "$as_val"'` = yes; then
ad6254c5 5112 cat >>confdefs.h <<_ACEOF
fddafd51 5113#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 5114_ACEOF
795ca3e5 5115
795ca3e5 5116else
fddafd51
ZK
5117 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5118$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 5119 { (exit 1); exit 1; }; }
80992638
AK
5120fi
5121
ad6254c5 5122done
ad6254c5 5123
795ca3e5 5124
d0191583
JM
5125
5126for ac_header in termios.h sys/statvfs.h
ad6254c5 5127do
fddafd51 5128as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 5129if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
fddafd51
ZK
5130 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5131$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 5132if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
fddafd51 5133 $as_echo_n "(cached) " >&6
ad6254c5 5134fi
fddafd51
ZK
5135ac_res=`eval 'as_val=${'$as_ac_Header'}
5136 $as_echo "$as_val"'`
5137 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5138$as_echo "$ac_res" >&6; }
ad6254c5
AK
5139else
5140 # Is the header compilable?
fddafd51
ZK
5141{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5142$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 5143cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5144/* confdefs.h. */
5145_ACEOF
5146cat confdefs.h >>conftest.$ac_ext
5147cat >>conftest.$ac_ext <<_ACEOF
5148/* end confdefs.h. */
5149$ac_includes_default
5150#include <$ac_header>
5151_ACEOF
5152rm -f conftest.$ac_objext
7a197a62
AK
5153if { (ac_try="$ac_compile"
5154case "(($ac_try" in
5155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5156 *) ac_try_echo=$ac_try;;
5157esac
fddafd51
ZK
5158eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5159$as_echo "$ac_try_echo") >&5
7a197a62 5160 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5161 ac_status=$?
8a2fc586
AK
5162 grep -v '^ *+' conftest.er1 >conftest.err
5163 rm -f conftest.er1
5164 cat conftest.err >&5
fddafd51 5165 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5166 (exit $ac_status); } && {
5167 test -z "$ac_c_werror_flag" ||
5168 test ! -s conftest.err
5169 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5170 ac_header_compiler=yes
5171else
fddafd51 5172 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5173sed 's/^/| /' conftest.$ac_ext >&5
5174
7a197a62 5175 ac_header_compiler=no
ad6254c5 5176fi
7a197a62
AK
5177
5178rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fddafd51
ZK
5179{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5180$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
5181
5182# Is the header present?
fddafd51
ZK
5183{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5184$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 5185cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5186/* confdefs.h. */
5187_ACEOF
5188cat confdefs.h >>conftest.$ac_ext
5189cat >>conftest.$ac_ext <<_ACEOF
5190/* end confdefs.h. */
5191#include <$ac_header>
5192_ACEOF
7a197a62
AK
5193if { (ac_try="$ac_cpp conftest.$ac_ext"
5194case "(($ac_try" in
5195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5196 *) ac_try_echo=$ac_try;;
5197esac
fddafd51
ZK
5198eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5199$as_echo "$ac_try_echo") >&5
7a197a62 5200 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
5201 ac_status=$?
5202 grep -v '^ *+' conftest.er1 >conftest.err
5203 rm -f conftest.er1
5204 cat conftest.err >&5
fddafd51 5205 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5206 (exit $ac_status); } >/dev/null && {
5207 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5208 test ! -s conftest.err
5209 }; then
ad6254c5
AK
5210 ac_header_preproc=yes
5211else
fddafd51 5212 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5213sed 's/^/| /' conftest.$ac_ext >&5
5214
5215 ac_header_preproc=no
5216fi
7a197a62 5217
ad6254c5 5218rm -f conftest.err conftest.$ac_ext
fddafd51
ZK
5219{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5220$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
5221
5222# So? What about this header?
8a2fc586
AK
5223case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5224 yes:no: )
fddafd51
ZK
5225 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5226$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5227 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5228$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 5229 ac_header_preproc=yes
ad6254c5 5230 ;;
8a2fc586 5231 no:yes:* )
fddafd51
ZK
5232 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5233$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5234 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5235$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5236 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5237$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5238 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5239$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5240 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5241$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5242 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5243$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 5244
ad6254c5
AK
5245 ;;
5246esac
fddafd51
ZK
5247{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5248$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 5249if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
fddafd51 5250 $as_echo_n "(cached) " >&6
ad6254c5 5251else
8a2fc586 5252 eval "$as_ac_Header=\$ac_header_preproc"
b896caa1 5253fi
fddafd51
ZK
5254ac_res=`eval 'as_val=${'$as_ac_Header'}
5255 $as_echo "$as_val"'`
5256 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5257$as_echo "$ac_res" >&6; }
b896caa1 5258
ad6254c5 5259fi
fddafd51
ZK
5260if test `eval 'as_val=${'$as_ac_Header'}
5261 $as_echo "$as_val"'` = yes; then
ad6254c5 5262 cat >>confdefs.h <<_ACEOF
fddafd51 5263#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
5264_ACEOF
5265
80992638
AK
5266fi
5267
ad6254c5 5268done
d0191583 5269
d3c8211f 5270
80992638 5271################################################################################
fddafd51
ZK
5272{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5273$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
ad6254c5 5274if test "${ac_cv_c_const+set}" = set; then
fddafd51 5275 $as_echo_n "(cached) " >&6
d3c8211f 5276else
ad6254c5 5277 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5278/* confdefs.h. */
5279_ACEOF
5280cat confdefs.h >>conftest.$ac_ext
5281cat >>conftest.$ac_ext <<_ACEOF
5282/* end confdefs.h. */
5283
5284int
5285main ()
5286{
5287/* FIXME: Include the comments suggested by Paul. */
5288#ifndef __cplusplus
5289 /* Ultrix mips cc rejects this. */
5290 typedef int charset[2];
25fbec5b 5291 const charset cs;
ad6254c5 5292 /* SunOS 4.1.1 cc rejects this. */
25fbec5b
AK
5293 char const *const *pcpcc;
5294 char **ppc;
ad6254c5
AK
5295 /* NEC SVR4.0.2 mips cc rejects this. */
5296 struct point {int x, y;};
5297 static struct point const zero = {0,0};
5298 /* AIX XL C 1.02.0.0 rejects this.
5299 It does not let you subtract one const X* pointer from another in
5300 an arm of an if-expression whose if-part is not a constant
5301 expression */
5302 const char *g = "string";
25fbec5b 5303 pcpcc = &g + (g ? g-g : 0);
ad6254c5 5304 /* HPUX 7.0 cc rejects these. */
25fbec5b
AK
5305 ++pcpcc;
5306 ppc = (char**) pcpcc;
5307 pcpcc = (char const *const *) ppc;
ad6254c5
AK
5308 { /* SCO 3.2v4 cc rejects this. */
5309 char *t;
5310 char const *s = 0 ? (char *) 0 : (char const *) 0;
5311
5312 *t++ = 0;
7a197a62 5313 if (s) return 0;
ad6254c5
AK
5314 }
5315 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5316 int x[] = {25, 17};
5317 const int *foo = &x[0];
5318 ++foo;
5319 }
5320 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5321 typedef const int *iptr;
5322 iptr p = 0;
5323 ++p;
5324 }
5325 { /* AIX XL C 1.02.0.0 rejects this saying
5326 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5327 struct s { int j; const int *ap[3]; };
5328 struct s *b; b->j = 5;
5329 }
5330 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5331 const int foo = 10;
7a197a62 5332 if (!foo) return 0;
ad6254c5 5333 }
25fbec5b 5334 return !cs[0] && !zero.x;
ad6254c5
AK
5335#endif
5336
5337 ;
5338 return 0;
5339}
5340_ACEOF
5341rm -f conftest.$ac_objext
7a197a62
AK
5342if { (ac_try="$ac_compile"
5343case "(($ac_try" in
5344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5345 *) ac_try_echo=$ac_try;;
5346esac
fddafd51
ZK
5347eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5348$as_echo "$ac_try_echo") >&5
7a197a62 5349 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5350 ac_status=$?
8a2fc586
AK
5351 grep -v '^ *+' conftest.er1 >conftest.err
5352 rm -f conftest.er1
5353 cat conftest.err >&5
fddafd51 5354 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5355 (exit $ac_status); } && {
5356 test -z "$ac_c_werror_flag" ||
5357 test ! -s conftest.err
5358 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5359 ac_cv_c_const=yes
5360else
fddafd51 5361 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5362sed 's/^/| /' conftest.$ac_ext >&5
5363
7a197a62 5364 ac_cv_c_const=no
ad6254c5 5365fi
7a197a62
AK
5366
5367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
80992638 5368fi
fddafd51
ZK
5369{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5370$as_echo "$ac_cv_c_const" >&6; }
ad6254c5 5371if test $ac_cv_c_const = no; then
80992638 5372
ad6254c5 5373cat >>confdefs.h <<\_ACEOF
fddafd51 5374#define const /**/
ad6254c5 5375_ACEOF
80992638 5376
d3c8211f 5377fi
d3c8211f 5378
fddafd51
ZK
5379{ $as_echo "$as_me:$LINENO: checking for inline" >&5
5380$as_echo_n "checking for inline... " >&6; }
ad6254c5 5381if test "${ac_cv_c_inline+set}" = set; then
fddafd51 5382 $as_echo_n "(cached) " >&6
8ef2b021 5383else
ad6254c5
AK
5384 ac_cv_c_inline=no
5385for ac_kw in inline __inline__ __inline; do
5386 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5387/* confdefs.h. */
5388_ACEOF
5389cat confdefs.h >>conftest.$ac_ext
5390cat >>conftest.$ac_ext <<_ACEOF
5391/* end confdefs.h. */
5392#ifndef __cplusplus
5393typedef int foo_t;
5394static $ac_kw foo_t static_foo () {return 0; }
5395$ac_kw foo_t foo () {return 0; }
5396#endif
80992638 5397
ad6254c5
AK
5398_ACEOF
5399rm -f conftest.$ac_objext
7a197a62
AK
5400if { (ac_try="$ac_compile"
5401case "(($ac_try" in
5402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5403 *) ac_try_echo=$ac_try;;
5404esac
fddafd51
ZK
5405eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5406$as_echo "$ac_try_echo") >&5
7a197a62 5407 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5408 ac_status=$?
8a2fc586
AK
5409 grep -v '^ *+' conftest.er1 >conftest.err
5410 rm -f conftest.er1
5411 cat conftest.err >&5
fddafd51 5412 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5413 (exit $ac_status); } && {
5414 test -z "$ac_c_werror_flag" ||
5415 test ! -s conftest.err
5416 } && test -s conftest.$ac_objext; then
7a197a62 5417 ac_cv_c_inline=$ac_kw
ad6254c5 5418else
fddafd51 5419 $as_echo "$as_me: failed program was:" >&5
ad6254c5 5420sed 's/^/| /' conftest.$ac_ext >&5
8ef2b021 5421
7a197a62 5422
8ce0cbda 5423fi
7a197a62
AK
5424
5425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5426 test "$ac_cv_c_inline" != no && break
ad6254c5 5427done
8ce0cbda 5428
8ce0cbda 5429fi
fddafd51
ZK
5430{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5431$as_echo "$ac_cv_c_inline" >&6; }
8a2fc586
AK
5432
5433
ad6254c5
AK
5434case $ac_cv_c_inline in
5435 inline | yes) ;;
8a2fc586
AK
5436 *)
5437 case $ac_cv_c_inline in
5438 no) ac_val=;;
5439 *) ac_val=$ac_cv_c_inline;;
5440 esac
5441 cat >>confdefs.h <<_ACEOF
5442#ifndef __cplusplus
5443#define inline $ac_val
5444#endif
c1c065a3 5445_ACEOF
d0191583
JM
5446 ;;
5447esac
5448
fddafd51
ZK
5449{ $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
5450$as_echo_n "checking for struct stat.st_rdev... " >&6; }
d0191583 5451if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
fddafd51 5452 $as_echo_n "(cached) " >&6
d0191583
JM
5453else
5454 cat >conftest.$ac_ext <<_ACEOF
5455/* confdefs.h. */
5456_ACEOF
5457cat confdefs.h >>conftest.$ac_ext
5458cat >>conftest.$ac_ext <<_ACEOF
5459/* end confdefs.h. */
5460$ac_includes_default
5461int
5462main ()
5463{
5464static struct stat ac_aggr;
5465if (ac_aggr.st_rdev)
5466return 0;
5467 ;
5468 return 0;
5469}
5470_ACEOF
5471rm -f conftest.$ac_objext
5472if { (ac_try="$ac_compile"
5473case "(($ac_try" in
5474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5475 *) ac_try_echo=$ac_try;;
5476esac
fddafd51
ZK
5477eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5478$as_echo "$ac_try_echo") >&5
d0191583
JM
5479 (eval "$ac_compile") 2>conftest.er1
5480 ac_status=$?
5481 grep -v '^ *+' conftest.er1 >conftest.err
5482 rm -f conftest.er1
5483 cat conftest.err >&5
fddafd51 5484 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
5485 (exit $ac_status); } && {
5486 test -z "$ac_c_werror_flag" ||
5487 test ! -s conftest.err
5488 } && test -s conftest.$ac_objext; then
5489 ac_cv_member_struct_stat_st_rdev=yes
5490else
fddafd51 5491 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
5492sed 's/^/| /' conftest.$ac_ext >&5
5493
5494 cat >conftest.$ac_ext <<_ACEOF
5495/* confdefs.h. */
5496_ACEOF
5497cat confdefs.h >>conftest.$ac_ext
5498cat >>conftest.$ac_ext <<_ACEOF
5499/* end confdefs.h. */
5500$ac_includes_default
5501int
5502main ()
5503{
5504static struct stat ac_aggr;
5505if (sizeof ac_aggr.st_rdev)
5506return 0;
5507 ;
5508 return 0;
5509}
5510_ACEOF
5511rm -f conftest.$ac_objext
5512if { (ac_try="$ac_compile"
5513case "(($ac_try" in
5514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5515 *) ac_try_echo=$ac_try;;
5516esac
fddafd51
ZK
5517eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5518$as_echo "$ac_try_echo") >&5
d0191583
JM
5519 (eval "$ac_compile") 2>conftest.er1
5520 ac_status=$?
5521 grep -v '^ *+' conftest.er1 >conftest.err
5522 rm -f conftest.er1
5523 cat conftest.err >&5
fddafd51 5524 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
5525 (exit $ac_status); } && {
5526 test -z "$ac_c_werror_flag" ||
5527 test ! -s conftest.err
5528 } && test -s conftest.$ac_objext; then
5529 ac_cv_member_struct_stat_st_rdev=yes
5530else
fddafd51 5531 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
5532sed 's/^/| /' conftest.$ac_ext >&5
5533
5534 ac_cv_member_struct_stat_st_rdev=no
5535fi
5536
5537rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5538fi
5539
5540rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5541fi
fddafd51
ZK
5542{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
5543$as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; }
d0191583
JM
5544if test $ac_cv_member_struct_stat_st_rdev = yes; then
5545
5546cat >>confdefs.h <<_ACEOF
5547#define HAVE_STRUCT_STAT_ST_RDEV 1
5548_ACEOF
5549
5550
5551fi
8ce0cbda 5552
fddafd51
ZK
5553{ $as_echo "$as_me:$LINENO: checking for off_t" >&5
5554$as_echo_n "checking for off_t... " >&6; }
ad6254c5 5555if test "${ac_cv_type_off_t+set}" = set; then
fddafd51 5556 $as_echo_n "(cached) " >&6
ad6254c5 5557else
fddafd51
ZK
5558 ac_cv_type_off_t=no
5559cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5560/* confdefs.h. */
5561_ACEOF
5562cat confdefs.h >>conftest.$ac_ext
5563cat >>conftest.$ac_ext <<_ACEOF
5564/* end confdefs.h. */
5565$ac_includes_default
5566int
5567main ()
5568{
fddafd51
ZK
5569if (sizeof (off_t))
5570 return 0;
5571 ;
ad6254c5 5572 return 0;
fddafd51
ZK
5573}
5574_ACEOF
5575rm -f conftest.$ac_objext
5576if { (ac_try="$ac_compile"
5577case "(($ac_try" in
5578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5579 *) ac_try_echo=$ac_try;;
5580esac
5581eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5582$as_echo "$ac_try_echo") >&5
5583 (eval "$ac_compile") 2>conftest.er1
5584 ac_status=$?
5585 grep -v '^ *+' conftest.er1 >conftest.err
5586 rm -f conftest.er1
5587 cat conftest.err >&5
5588 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5589 (exit $ac_status); } && {
5590 test -z "$ac_c_werror_flag" ||
5591 test ! -s conftest.err
5592 } && test -s conftest.$ac_objext; then
5593 cat >conftest.$ac_ext <<_ACEOF
5594/* confdefs.h. */
5595_ACEOF
5596cat confdefs.h >>conftest.$ac_ext
5597cat >>conftest.$ac_ext <<_ACEOF
5598/* end confdefs.h. */
5599$ac_includes_default
5600int
5601main ()
5602{
5603if (sizeof ((off_t)))
5604 return 0;
ad6254c5
AK
5605 ;
5606 return 0;
5607}
5608_ACEOF
5609rm -f conftest.$ac_objext
7a197a62
AK
5610if { (ac_try="$ac_compile"
5611case "(($ac_try" in
5612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5613 *) ac_try_echo=$ac_try;;
5614esac
fddafd51
ZK
5615eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5616$as_echo "$ac_try_echo") >&5
7a197a62 5617 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5618 ac_status=$?
8a2fc586
AK
5619 grep -v '^ *+' conftest.er1 >conftest.err
5620 rm -f conftest.er1
5621 cat conftest.err >&5
fddafd51 5622 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5623 (exit $ac_status); } && {
5624 test -z "$ac_c_werror_flag" ||
5625 test ! -s conftest.err
5626 } && test -s conftest.$ac_objext; then
fddafd51 5627 :
ad6254c5 5628else
fddafd51 5629 $as_echo "$as_me: failed program was:" >&5
ad6254c5 5630sed 's/^/| /' conftest.$ac_ext >&5
8ce0cbda 5631
fddafd51
ZK
5632 ac_cv_type_off_t=yes
5633fi
5634
5635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5636else
5637 $as_echo "$as_me: failed program was:" >&5
5638sed 's/^/| /' conftest.$ac_ext >&5
5639
5640
80992638 5641fi
7a197a62
AK
5642
5643rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 5644fi
fddafd51
ZK
5645{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5646$as_echo "$ac_cv_type_off_t" >&6; }
ad6254c5
AK
5647if test $ac_cv_type_off_t = yes; then
5648 :
5649else
80992638 5650
ad6254c5 5651cat >>confdefs.h <<_ACEOF
7a197a62 5652#define off_t long int
ad6254c5 5653_ACEOF
199e490e 5654
b896caa1
AK
5655fi
5656
fddafd51
ZK
5657{ $as_echo "$as_me:$LINENO: checking for pid_t" >&5
5658$as_echo_n "checking for pid_t... " >&6; }
ad6254c5 5659if test "${ac_cv_type_pid_t+set}" = set; then
fddafd51 5660 $as_echo_n "(cached) " >&6
ad6254c5 5661else
fddafd51
ZK
5662 ac_cv_type_pid_t=no
5663cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5664/* confdefs.h. */
5665_ACEOF
5666cat confdefs.h >>conftest.$ac_ext
5667cat >>conftest.$ac_ext <<_ACEOF
5668/* end confdefs.h. */
5669$ac_includes_default
5670int
5671main ()
5672{
fddafd51
ZK
5673if (sizeof (pid_t))
5674 return 0;
5675 ;
ad6254c5 5676 return 0;
fddafd51
ZK
5677}
5678_ACEOF
5679rm -f conftest.$ac_objext
5680if { (ac_try="$ac_compile"
5681case "(($ac_try" in
5682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5683 *) ac_try_echo=$ac_try;;
5684esac
5685eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5686$as_echo "$ac_try_echo") >&5
5687 (eval "$ac_compile") 2>conftest.er1
5688 ac_status=$?
5689 grep -v '^ *+' conftest.er1 >conftest.err
5690 rm -f conftest.er1
5691 cat conftest.err >&5
5692 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5693 (exit $ac_status); } && {
5694 test -z "$ac_c_werror_flag" ||
5695 test ! -s conftest.err
5696 } && test -s conftest.$ac_objext; then
5697 cat >conftest.$ac_ext <<_ACEOF
5698/* confdefs.h. */
5699_ACEOF
5700cat confdefs.h >>conftest.$ac_ext
5701cat >>conftest.$ac_ext <<_ACEOF
5702/* end confdefs.h. */
5703$ac_includes_default
5704int
5705main ()
5706{
5707if (sizeof ((pid_t)))
5708 return 0;
ad6254c5
AK
5709 ;
5710 return 0;
5711}
5712_ACEOF
5713rm -f conftest.$ac_objext
7a197a62
AK
5714if { (ac_try="$ac_compile"
5715case "(($ac_try" in
5716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5717 *) ac_try_echo=$ac_try;;
5718esac
fddafd51
ZK
5719eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5720$as_echo "$ac_try_echo") >&5
7a197a62 5721 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5722 ac_status=$?
8a2fc586
AK
5723 grep -v '^ *+' conftest.er1 >conftest.err
5724 rm -f conftest.er1
5725 cat conftest.err >&5
fddafd51 5726 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5727 (exit $ac_status); } && {
5728 test -z "$ac_c_werror_flag" ||
5729 test ! -s conftest.err
5730 } && test -s conftest.$ac_objext; then
fddafd51
ZK
5731 :
5732else
5733 $as_echo "$as_me: failed program was:" >&5
5734sed 's/^/| /' conftest.$ac_ext >&5
5735
5736 ac_cv_type_pid_t=yes
5737fi
5738
5739rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 5740else
fddafd51 5741 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5742sed 's/^/| /' conftest.$ac_ext >&5
5743
fddafd51 5744
ad6254c5 5745fi
7a197a62
AK
5746
5747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
80992638 5748fi
fddafd51
ZK
5749{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
5750$as_echo "$ac_cv_type_pid_t" >&6; }
ad6254c5
AK
5751if test $ac_cv_type_pid_t = yes; then
5752 :
5753else
80992638 5754
ad6254c5
AK
5755cat >>confdefs.h <<_ACEOF
5756#define pid_t int
5757_ACEOF
2dc95e1c 5758
2dc95e1c
AK
5759fi
5760
fddafd51
ZK
5761{ $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5762$as_echo_n "checking return type of signal handlers... " >&6; }
d0191583 5763if test "${ac_cv_type_signal+set}" = set; then
fddafd51 5764 $as_echo_n "(cached) " >&6
d0191583
JM
5765else
5766 cat >conftest.$ac_ext <<_ACEOF
5767/* confdefs.h. */
5768_ACEOF
5769cat confdefs.h >>conftest.$ac_ext
5770cat >>conftest.$ac_ext <<_ACEOF
5771/* end confdefs.h. */
5772#include <sys/types.h>
5773#include <signal.h>
5774
5775int
5776main ()
5777{
5778return *(signal (0, 0)) (0) == 1;
5779 ;
5780 return 0;
5781}
5782_ACEOF
5783rm -f conftest.$ac_objext
5784if { (ac_try="$ac_compile"
5785case "(($ac_try" in
5786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5787 *) ac_try_echo=$ac_try;;
5788esac
fddafd51
ZK
5789eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5790$as_echo "$ac_try_echo") >&5
d0191583
JM
5791 (eval "$ac_compile") 2>conftest.er1
5792 ac_status=$?
5793 grep -v '^ *+' conftest.er1 >conftest.err
5794 rm -f conftest.er1
5795 cat conftest.err >&5
fddafd51 5796 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
5797 (exit $ac_status); } && {
5798 test -z "$ac_c_werror_flag" ||
5799 test ! -s conftest.err
5800 } && test -s conftest.$ac_objext; then
5801 ac_cv_type_signal=int
5802else
fddafd51 5803 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
5804sed 's/^/| /' conftest.$ac_ext >&5
5805
5806 ac_cv_type_signal=void
5807fi
5808
5809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5810fi
fddafd51
ZK
5811{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
5812$as_echo "$ac_cv_type_signal" >&6; }
d0191583
JM
5813
5814cat >>confdefs.h <<_ACEOF
5815#define RETSIGTYPE $ac_cv_type_signal
5816_ACEOF
5817
5818
fddafd51
ZK
5819{ $as_echo "$as_me:$LINENO: checking for size_t" >&5
5820$as_echo_n "checking for size_t... " >&6; }
ad6254c5 5821if test "${ac_cv_type_size_t+set}" = set; then
fddafd51 5822 $as_echo_n "(cached) " >&6
8106cdd5 5823else
fddafd51
ZK
5824 ac_cv_type_size_t=no
5825cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5826/* confdefs.h. */
5827_ACEOF
5828cat confdefs.h >>conftest.$ac_ext
5829cat >>conftest.$ac_ext <<_ACEOF
5830/* end confdefs.h. */
5831$ac_includes_default
5832int
5833main ()
5834{
fddafd51
ZK
5835if (sizeof (size_t))
5836 return 0;
5837 ;
ad6254c5 5838 return 0;
fddafd51
ZK
5839}
5840_ACEOF
5841rm -f conftest.$ac_objext
5842if { (ac_try="$ac_compile"
5843case "(($ac_try" in
5844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5845 *) ac_try_echo=$ac_try;;
5846esac
5847eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5848$as_echo "$ac_try_echo") >&5
5849 (eval "$ac_compile") 2>conftest.er1
5850 ac_status=$?
5851 grep -v '^ *+' conftest.er1 >conftest.err
5852 rm -f conftest.er1
5853 cat conftest.err >&5
5854 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5855 (exit $ac_status); } && {
5856 test -z "$ac_c_werror_flag" ||
5857 test ! -s conftest.err
5858 } && test -s conftest.$ac_objext; then
5859 cat >conftest.$ac_ext <<_ACEOF
5860/* confdefs.h. */
5861_ACEOF
5862cat confdefs.h >>conftest.$ac_ext
5863cat >>conftest.$ac_ext <<_ACEOF
5864/* end confdefs.h. */
5865$ac_includes_default
5866int
5867main ()
5868{
5869if (sizeof ((size_t)))
5870 return 0;
ad6254c5
AK
5871 ;
5872 return 0;
5873}
5874_ACEOF
5875rm -f conftest.$ac_objext
7a197a62
AK
5876if { (ac_try="$ac_compile"
5877case "(($ac_try" in
5878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5879 *) ac_try_echo=$ac_try;;
5880esac
fddafd51
ZK
5881eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5882$as_echo "$ac_try_echo") >&5
7a197a62 5883 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5884 ac_status=$?
8a2fc586
AK
5885 grep -v '^ *+' conftest.er1 >conftest.err
5886 rm -f conftest.er1
5887 cat conftest.err >&5
fddafd51 5888 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5889 (exit $ac_status); } && {
5890 test -z "$ac_c_werror_flag" ||
5891 test ! -s conftest.err
5892 } && test -s conftest.$ac_objext; then
fddafd51 5893 :
ad6254c5 5894else
fddafd51 5895 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5896sed 's/^/| /' conftest.$ac_ext >&5
5897
fddafd51 5898 ac_cv_type_size_t=yes
80992638 5899fi
7a197a62
AK
5900
5901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fddafd51
ZK
5902else
5903 $as_echo "$as_me: failed program was:" >&5
5904sed 's/^/| /' conftest.$ac_ext >&5
5905
5906
ad6254c5 5907fi
fddafd51
ZK
5908
5909rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5910fi
5911{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5912$as_echo "$ac_cv_type_size_t" >&6; }
ad6254c5
AK
5913if test $ac_cv_type_size_t = yes; then
5914 :
5915else
80992638 5916
ad6254c5 5917cat >>confdefs.h <<_ACEOF
7a197a62 5918#define size_t unsigned int
ad6254c5 5919_ACEOF
8106cdd5 5920
8106cdd5
AK
5921fi
5922
fddafd51
ZK
5923{ $as_echo "$as_me:$LINENO: checking for mode_t" >&5
5924$as_echo_n "checking for mode_t... " >&6; }
ad6254c5 5925if test "${ac_cv_type_mode_t+set}" = set; then
fddafd51 5926 $as_echo_n "(cached) " >&6
ad6254c5 5927else
fddafd51
ZK
5928 ac_cv_type_mode_t=no
5929cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5930/* confdefs.h. */
5931_ACEOF
5932cat confdefs.h >>conftest.$ac_ext
5933cat >>conftest.$ac_ext <<_ACEOF
5934/* end confdefs.h. */
5935$ac_includes_default
5936int
5937main ()
5938{
fddafd51
ZK
5939if (sizeof (mode_t))
5940 return 0;
5941 ;
ad6254c5 5942 return 0;
fddafd51
ZK
5943}
5944_ACEOF
5945rm -f conftest.$ac_objext
5946if { (ac_try="$ac_compile"
5947case "(($ac_try" in
5948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5949 *) ac_try_echo=$ac_try;;
5950esac
5951eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5952$as_echo "$ac_try_echo") >&5
5953 (eval "$ac_compile") 2>conftest.er1
5954 ac_status=$?
5955 grep -v '^ *+' conftest.er1 >conftest.err
5956 rm -f conftest.er1
5957 cat conftest.err >&5
5958 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5959 (exit $ac_status); } && {
5960 test -z "$ac_c_werror_flag" ||
5961 test ! -s conftest.err
5962 } && test -s conftest.$ac_objext; then
5963 cat >conftest.$ac_ext <<_ACEOF
5964/* confdefs.h. */
5965_ACEOF
5966cat confdefs.h >>conftest.$ac_ext
5967cat >>conftest.$ac_ext <<_ACEOF
5968/* end confdefs.h. */
5969$ac_includes_default
5970int
5971main ()
5972{
5973if (sizeof ((mode_t)))
5974 return 0;
ad6254c5
AK
5975 ;
5976 return 0;
5977}
5978_ACEOF
5979rm -f conftest.$ac_objext
7a197a62
AK
5980if { (ac_try="$ac_compile"
5981case "(($ac_try" in
5982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5983 *) ac_try_echo=$ac_try;;
5984esac
fddafd51
ZK
5985eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5986$as_echo "$ac_try_echo") >&5
7a197a62 5987 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5988 ac_status=$?
8a2fc586
AK
5989 grep -v '^ *+' conftest.er1 >conftest.err
5990 rm -f conftest.er1
5991 cat conftest.err >&5
fddafd51 5992 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5993 (exit $ac_status); } && {
5994 test -z "$ac_c_werror_flag" ||
5995 test ! -s conftest.err
5996 } && test -s conftest.$ac_objext; then
fddafd51
ZK
5997 :
5998else
5999 $as_echo "$as_me: failed program was:" >&5
6000sed 's/^/| /' conftest.$ac_ext >&5
6001
6002 ac_cv_type_mode_t=yes
6003fi
6004
6005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 6006else
fddafd51 6007 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6008sed 's/^/| /' conftest.$ac_ext >&5
6009
fddafd51 6010
80992638 6011fi
7a197a62
AK
6012
6013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 6014fi
fddafd51
ZK
6015{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6016$as_echo "$ac_cv_type_mode_t" >&6; }
ad6254c5
AK
6017if test $ac_cv_type_mode_t = yes; then
6018 :
6019else
80992638 6020
ad6254c5
AK
6021cat >>confdefs.h <<_ACEOF
6022#define mode_t int
6023_ACEOF
6024
6025fi
6026
fddafd51
ZK
6027{ $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
6028$as_echo_n "checking for struct stat.st_rdev... " >&6; }
ad6254c5 6029if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
fddafd51 6030 $as_echo_n "(cached) " >&6
ad6254c5
AK
6031else
6032 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6033/* confdefs.h. */
6034_ACEOF
6035cat confdefs.h >>conftest.$ac_ext
6036cat >>conftest.$ac_ext <<_ACEOF
6037/* end confdefs.h. */
6038$ac_includes_default
6039int
6040main ()
6041{
6042static struct stat ac_aggr;
6043if (ac_aggr.st_rdev)
6044return 0;
6045 ;
6046 return 0;
6047}
6048_ACEOF
6049rm -f conftest.$ac_objext
7a197a62
AK
6050if { (ac_try="$ac_compile"
6051case "(($ac_try" in
6052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6053 *) ac_try_echo=$ac_try;;
6054esac
fddafd51
ZK
6055eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6056$as_echo "$ac_try_echo") >&5
7a197a62 6057 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6058 ac_status=$?
8a2fc586
AK
6059 grep -v '^ *+' conftest.er1 >conftest.err
6060 rm -f conftest.er1
6061 cat conftest.err >&5
fddafd51 6062 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6063 (exit $ac_status); } && {
6064 test -z "$ac_c_werror_flag" ||
6065 test ! -s conftest.err
6066 } && test -s conftest.$ac_objext; then
ad6254c5
AK
6067 ac_cv_member_struct_stat_st_rdev=yes
6068else
fddafd51 6069 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6070sed 's/^/| /' conftest.$ac_ext >&5
6071
7a197a62 6072 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6073/* confdefs.h. */
6074_ACEOF
6075cat confdefs.h >>conftest.$ac_ext
6076cat >>conftest.$ac_ext <<_ACEOF
6077/* end confdefs.h. */
6078$ac_includes_default
6079int
6080main ()
6081{
6082static struct stat ac_aggr;
6083if (sizeof ac_aggr.st_rdev)
6084return 0;
6085 ;
6086 return 0;
6087}
6088_ACEOF
6089rm -f conftest.$ac_objext
7a197a62
AK
6090if { (ac_try="$ac_compile"
6091case "(($ac_try" in
6092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6093 *) ac_try_echo=$ac_try;;
6094esac
fddafd51
ZK
6095eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6096$as_echo "$ac_try_echo") >&5
7a197a62 6097 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6098 ac_status=$?
8a2fc586
AK
6099 grep -v '^ *+' conftest.er1 >conftest.err
6100 rm -f conftest.er1
6101 cat conftest.err >&5
fddafd51 6102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6103 (exit $ac_status); } && {
6104 test -z "$ac_c_werror_flag" ||
6105 test ! -s conftest.err
6106 } && test -s conftest.$ac_objext; then
ad6254c5
AK
6107 ac_cv_member_struct_stat_st_rdev=yes
6108else
fddafd51 6109 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6110sed 's/^/| /' conftest.$ac_ext >&5
6111
7a197a62 6112 ac_cv_member_struct_stat_st_rdev=no
ad6254c5 6113fi
7a197a62
AK
6114
6115rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 6116fi
7a197a62
AK
6117
6118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 6119fi
fddafd51
ZK
6120{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
6121$as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; }
ad6254c5
AK
6122if test $ac_cv_member_struct_stat_st_rdev = yes; then
6123
6124cat >>confdefs.h <<_ACEOF
6125#define HAVE_STRUCT_STAT_ST_RDEV 1
6126_ACEOF
6127
6128
ad6254c5
AK
6129fi
6130
fddafd51
ZK
6131{ $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6132$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
ad6254c5 6133if test "${ac_cv_struct_tm+set}" = set; then
fddafd51 6134 $as_echo_n "(cached) " >&6
ad6254c5
AK
6135else
6136 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6137/* confdefs.h. */
6138_ACEOF
6139cat confdefs.h >>conftest.$ac_ext
6140cat >>conftest.$ac_ext <<_ACEOF
6141/* end confdefs.h. */
6142#include <sys/types.h>
6143#include <time.h>
6144
6145int
6146main ()
6147{
25fbec5b
AK
6148struct tm tm;
6149 int *p = &tm.tm_sec;
fddafd51 6150 return !p;
ad6254c5
AK
6151 ;
6152 return 0;
6153}
6154_ACEOF
6155rm -f conftest.$ac_objext
7a197a62
AK
6156if { (ac_try="$ac_compile"
6157case "(($ac_try" in
6158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6159 *) ac_try_echo=$ac_try;;
6160esac
fddafd51
ZK
6161eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6162$as_echo "$ac_try_echo") >&5
7a197a62 6163 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6164 ac_status=$?
8a2fc586
AK
6165 grep -v '^ *+' conftest.er1 >conftest.err
6166 rm -f conftest.er1
6167 cat conftest.err >&5
fddafd51 6168 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6169 (exit $ac_status); } && {
6170 test -z "$ac_c_werror_flag" ||
6171 test ! -s conftest.err
6172 } && test -s conftest.$ac_objext; then
ad6254c5
AK
6173 ac_cv_struct_tm=time.h
6174else
fddafd51 6175 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6176sed 's/^/| /' conftest.$ac_ext >&5
6177
7a197a62 6178 ac_cv_struct_tm=sys/time.h
ad6254c5 6179fi
7a197a62
AK
6180
6181rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 6182fi
fddafd51
ZK
6183{ $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6184$as_echo "$ac_cv_struct_tm" >&6; }
ad6254c5
AK
6185if test $ac_cv_struct_tm = sys/time.h; then
6186
6187cat >>confdefs.h <<\_ACEOF
6188#define TM_IN_SYS_TIME 1
6189_ACEOF
6190
6191fi
809fae91 6192
795ca3e5 6193
80992638 6194################################################################################
ad6254c5
AK
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
d0191583
JM
6209
6210
6211
6212for ac_func in gethostname getpagesize memset mkdir rmdir munmap setlocale \
6213 strcasecmp strchr strdup strncasecmp strerror strrchr strstr strtol strtoul \
6214 uname
ad6254c5 6215do
fddafd51
ZK
6216as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6217{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6218$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 6219if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
fddafd51 6220 $as_echo_n "(cached) " >&6
795ca3e5 6221else
ad6254c5 6222 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6223/* confdefs.h. */
6224_ACEOF
6225cat confdefs.h >>conftest.$ac_ext
6226cat >>conftest.$ac_ext <<_ACEOF
6227/* end confdefs.h. */
8a2fc586
AK
6228/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6229 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6230#define $ac_func innocuous_$ac_func
6231
ad6254c5
AK
6232/* System header to define __stub macros and hopefully few prototypes,
6233 which can conflict with char $ac_func (); below.
6234 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6235 <limits.h> exists even on freestanding compilers. */
8a2fc586 6236
ad6254c5
AK
6237#ifdef __STDC__
6238# include <limits.h>
6239#else
6240# include <assert.h>
6241#endif
8a2fc586
AK
6242
6243#undef $ac_func
6244
7a197a62
AK
6245/* Override any GCC internal prototype to avoid an error.
6246 Use char because int might match the return type of a GCC
6247 builtin and then its argument prototype would still apply. */
ad6254c5
AK
6248#ifdef __cplusplus
6249extern "C"
ad6254c5 6250#endif
ad6254c5
AK
6251char $ac_func ();
6252/* The GNU C library defines this for functions which it implements
6253 to always fail with ENOSYS. Some functions are actually named
6254 something starting with __ and the normal name is an alias. */
7a197a62 6255#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 6256choke me
ad6254c5
AK
6257#endif
6258
6259int
6260main ()
6261{
7a197a62 6262return $ac_func ();
ad6254c5
AK
6263 ;
6264 return 0;
6265}
6266_ACEOF
6267rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
6268if { (ac_try="$ac_link"
6269case "(($ac_try" in
6270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6271 *) ac_try_echo=$ac_try;;
6272esac
fddafd51
ZK
6273eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6274$as_echo "$ac_try_echo") >&5
7a197a62 6275 (eval "$ac_link") 2>conftest.er1
ad6254c5 6276 ac_status=$?
8a2fc586
AK
6277 grep -v '^ *+' conftest.er1 >conftest.err
6278 rm -f conftest.er1
6279 cat conftest.err >&5
fddafd51 6280 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6281 (exit $ac_status); } && {
6282 test -z "$ac_c_werror_flag" ||
6283 test ! -s conftest.err
fddafd51
ZK
6284 } && test -s conftest$ac_exeext && {
6285 test "$cross_compiling" = yes ||
6286 $as_test_x conftest$ac_exeext
6287 }; then
fc54be10
AK
6288 eval "$as_ac_var=yes"
6289else
fddafd51 6290 $as_echo "$as_me: failed program was:" >&5
fc54be10
AK
6291sed 's/^/| /' conftest.$ac_ext >&5
6292
6293 eval "$as_ac_var=no"
6294fi
6295
fddafd51 6296rm -rf conftest.dSYM
25fbec5b 6297rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
fc54be10
AK
6298 conftest$ac_exeext conftest.$ac_ext
6299fi
fddafd51
ZK
6300ac_res=`eval 'as_val=${'$as_ac_var'}
6301 $as_echo "$as_val"'`
6302 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6303$as_echo "$ac_res" >&6; }
6304if test `eval 'as_val=${'$as_ac_var'}
6305 $as_echo "$as_val"'` = yes; then
ad6254c5 6306 cat >>confdefs.h <<_ACEOF
fddafd51 6307#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
6308_ACEOF
6309
6310else
fddafd51
ZK
6311 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
6312$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5
AK
6313 { (exit 1); exit 1; }; }
6314fi
6315done
795ca3e5 6316
ad6254c5
AK
6317# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6318# for constant arguments. Useless!
fddafd51
ZK
6319{ $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
6320$as_echo_n "checking for working alloca.h... " >&6; }
ad6254c5 6321if test "${ac_cv_working_alloca_h+set}" = set; then
fddafd51 6322 $as_echo_n "(cached) " >&6
ad6254c5
AK
6323else
6324 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6325/* confdefs.h. */
6326_ACEOF
6327cat confdefs.h >>conftest.$ac_ext
6328cat >>conftest.$ac_ext <<_ACEOF
6329/* end confdefs.h. */
6330#include <alloca.h>
6331int
6332main ()
6333{
6334char *p = (char *) alloca (2 * sizeof (int));
7a197a62 6335 if (p) return 0;
ad6254c5
AK
6336 ;
6337 return 0;
6338}
6339_ACEOF
6340rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
6341if { (ac_try="$ac_link"
6342case "(($ac_try" in
6343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6344 *) ac_try_echo=$ac_try;;
6345esac
fddafd51
ZK
6346eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6347$as_echo "$ac_try_echo") >&5
7a197a62 6348 (eval "$ac_link") 2>conftest.er1
ad6254c5 6349 ac_status=$?
8a2fc586
AK
6350 grep -v '^ *+' conftest.er1 >conftest.err
6351 rm -f conftest.er1
6352 cat conftest.err >&5
fddafd51 6353 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6354 (exit $ac_status); } && {
6355 test -z "$ac_c_werror_flag" ||
6356 test ! -s conftest.err
fddafd51
ZK
6357 } && test -s conftest$ac_exeext && {
6358 test "$cross_compiling" = yes ||
6359 $as_test_x conftest$ac_exeext
6360 }; then
ad6254c5
AK
6361 ac_cv_working_alloca_h=yes
6362else
fddafd51 6363 $as_echo "$as_me: failed program was:" >&5
ad6254c5 6364sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 6365
7a197a62 6366 ac_cv_working_alloca_h=no
ad6254c5 6367fi
7a197a62 6368
fddafd51 6369rm -rf conftest.dSYM
25fbec5b 6370rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 6371 conftest$ac_exeext conftest.$ac_ext
ad6254c5 6372fi
fddafd51
ZK
6373{ $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6374$as_echo "$ac_cv_working_alloca_h" >&6; }
ad6254c5
AK
6375if test $ac_cv_working_alloca_h = yes; then
6376
6377cat >>confdefs.h <<\_ACEOF
6378#define HAVE_ALLOCA_H 1
6379_ACEOF
6380
6381fi
6382
fddafd51
ZK
6383{ $as_echo "$as_me:$LINENO: checking for alloca" >&5
6384$as_echo_n "checking for alloca... " >&6; }
ad6254c5 6385if test "${ac_cv_func_alloca_works+set}" = set; then
fddafd51 6386 $as_echo_n "(cached) " >&6
ad6254c5
AK
6387else
6388 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6389/* confdefs.h. */
6390_ACEOF
6391cat confdefs.h >>conftest.$ac_ext
6392cat >>conftest.$ac_ext <<_ACEOF
6393/* end confdefs.h. */
6394#ifdef __GNUC__
6395# define alloca __builtin_alloca
6396#else
6397# ifdef _MSC_VER
6398# include <malloc.h>
6399# define alloca _alloca
6400# else
25fbec5b 6401# ifdef HAVE_ALLOCA_H
ad6254c5
AK
6402# include <alloca.h>
6403# else
6404# ifdef _AIX
6405 #pragma alloca
6406# else
6407# ifndef alloca /* predefined by HP cc +Olibcalls */
6408char *alloca ();
6409# endif
6410# endif
6411# endif
6412# endif
6413#endif
6414
6415int
6416main ()
6417{
6418char *p = (char *) alloca (1);
7a197a62 6419 if (p) return 0;
ad6254c5
AK
6420 ;
6421 return 0;
6422}
6423_ACEOF
6424rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
6425if { (ac_try="$ac_link"
6426case "(($ac_try" in
6427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6428 *) ac_try_echo=$ac_try;;
6429esac
fddafd51
ZK
6430eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6431$as_echo "$ac_try_echo") >&5
7a197a62 6432 (eval "$ac_link") 2>conftest.er1
ad6254c5 6433 ac_status=$?
8a2fc586
AK
6434 grep -v '^ *+' conftest.er1 >conftest.err
6435 rm -f conftest.er1
6436 cat conftest.err >&5
fddafd51 6437 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6438 (exit $ac_status); } && {
6439 test -z "$ac_c_werror_flag" ||
6440 test ! -s conftest.err
fddafd51
ZK
6441 } && test -s conftest$ac_exeext && {
6442 test "$cross_compiling" = yes ||
6443 $as_test_x conftest$ac_exeext
6444 }; then
ad6254c5
AK
6445 ac_cv_func_alloca_works=yes
6446else
fddafd51 6447 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6448sed 's/^/| /' conftest.$ac_ext >&5
6449
7a197a62 6450 ac_cv_func_alloca_works=no
ad6254c5 6451fi
7a197a62 6452
fddafd51 6453rm -rf conftest.dSYM
25fbec5b 6454rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 6455 conftest$ac_exeext conftest.$ac_ext
ad6254c5 6456fi
fddafd51
ZK
6457{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6458$as_echo "$ac_cv_func_alloca_works" >&6; }
ad6254c5
AK
6459
6460if test $ac_cv_func_alloca_works = yes; then
6461
6462cat >>confdefs.h <<\_ACEOF
6463#define HAVE_ALLOCA 1
6464_ACEOF
6465
6466else
6467 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6468# that cause trouble. Some versions do not even contain alloca or
6469# contain a buggy version. If you still want to use their alloca,
6470# use ar to extract alloca.o from them instead of compiling alloca.c.
6471
7a197a62 6472ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
ad6254c5
AK
6473
6474cat >>confdefs.h <<\_ACEOF
6475#define C_ALLOCA 1
6476_ACEOF
6477
6478
fddafd51
ZK
6479{ $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6480$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
ad6254c5 6481if test "${ac_cv_os_cray+set}" = set; then
fddafd51 6482 $as_echo_n "(cached) " >&6
ad6254c5
AK
6483else
6484 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6485/* confdefs.h. */
6486_ACEOF
6487cat confdefs.h >>conftest.$ac_ext
6488cat >>conftest.$ac_ext <<_ACEOF
6489/* end confdefs.h. */
7a197a62 6490#if defined CRAY && ! defined CRAY2
ad6254c5
AK
6491webecray
6492#else
6493wenotbecray
6494#endif
6495
6496_ACEOF
795ca3e5 6497if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ad6254c5
AK
6498 $EGREP "webecray" >/dev/null 2>&1; then
6499 ac_cv_os_cray=yes
6500else
6501 ac_cv_os_cray=no
795ca3e5
AK
6502fi
6503rm -f conftest*
6504
795ca3e5 6505fi
fddafd51
ZK
6506{ $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6507$as_echo "$ac_cv_os_cray" >&6; }
ad6254c5
AK
6508if test $ac_cv_os_cray = yes; then
6509 for ac_func in _getb67 GETB67 getb67; do
fddafd51
ZK
6510 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6511{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6512$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 6513if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
fddafd51 6514 $as_echo_n "(cached) " >&6
ad6254c5
AK
6515else
6516 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6517/* confdefs.h. */
6518_ACEOF
6519cat confdefs.h >>conftest.$ac_ext
6520cat >>conftest.$ac_ext <<_ACEOF
6521/* end confdefs.h. */
8a2fc586
AK
6522/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6523 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6524#define $ac_func innocuous_$ac_func
6525
ad6254c5
AK
6526/* System header to define __stub macros and hopefully few prototypes,
6527 which can conflict with char $ac_func (); below.
6528 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6529 <limits.h> exists even on freestanding compilers. */
8a2fc586 6530
ad6254c5
AK
6531#ifdef __STDC__
6532# include <limits.h>
6533#else
6534# include <assert.h>
6535#endif
8a2fc586
AK
6536
6537#undef $ac_func
6538
7a197a62
AK
6539/* Override any GCC internal prototype to avoid an error.
6540 Use char because int might match the return type of a GCC
6541 builtin and then its argument prototype would still apply. */
ad6254c5
AK
6542#ifdef __cplusplus
6543extern "C"
ad6254c5 6544#endif
ad6254c5
AK
6545char $ac_func ();
6546/* The GNU C library defines this for functions which it implements
6547 to always fail with ENOSYS. Some functions are actually named
6548 something starting with __ and the normal name is an alias. */
7a197a62 6549#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 6550choke me
ad6254c5
AK
6551#endif
6552
6553int
6554main ()
6555{
7a197a62 6556return $ac_func ();
ad6254c5
AK
6557 ;
6558 return 0;
6559}
6560_ACEOF
6561rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
6562if { (ac_try="$ac_link"
6563case "(($ac_try" in
6564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6565 *) ac_try_echo=$ac_try;;
6566esac
fddafd51
ZK
6567eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6568$as_echo "$ac_try_echo") >&5
7a197a62 6569 (eval "$ac_link") 2>conftest.er1
ad6254c5 6570 ac_status=$?
8a2fc586
AK
6571 grep -v '^ *+' conftest.er1 >conftest.err
6572 rm -f conftest.er1
6573 cat conftest.err >&5
fddafd51 6574 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6575 (exit $ac_status); } && {
6576 test -z "$ac_c_werror_flag" ||
6577 test ! -s conftest.err
fddafd51
ZK
6578 } && test -s conftest$ac_exeext && {
6579 test "$cross_compiling" = yes ||
6580 $as_test_x conftest$ac_exeext
6581 }; then
ad6254c5
AK
6582 eval "$as_ac_var=yes"
6583else
fddafd51 6584 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6585sed 's/^/| /' conftest.$ac_ext >&5
6586
7a197a62 6587 eval "$as_ac_var=no"
ad6254c5 6588fi
7a197a62 6589
fddafd51 6590rm -rf conftest.dSYM
25fbec5b 6591rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 6592 conftest$ac_exeext conftest.$ac_ext
ad6254c5 6593fi
fddafd51
ZK
6594ac_res=`eval 'as_val=${'$as_ac_var'}
6595 $as_echo "$as_val"'`
6596 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6597$as_echo "$ac_res" >&6; }
6598if test `eval 'as_val=${'$as_ac_var'}
6599 $as_echo "$as_val"'` = yes; then
80992638 6600
ad6254c5
AK
6601cat >>confdefs.h <<_ACEOF
6602#define CRAY_STACKSEG_END $ac_func
6603_ACEOF
6604
6605 break
6606fi
6607
6608 done
6609fi
6610
fddafd51
ZK
6611{ $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6612$as_echo_n "checking stack direction for C alloca... " >&6; }
ad6254c5 6613if test "${ac_cv_c_stack_direction+set}" = set; then
fddafd51 6614 $as_echo_n "(cached) " >&6
ad6254c5
AK
6615else
6616 if test "$cross_compiling" = yes; then
6617 ac_cv_c_stack_direction=0
6618else
6619 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6620/* confdefs.h. */
6621_ACEOF
6622cat confdefs.h >>conftest.$ac_ext
6623cat >>conftest.$ac_ext <<_ACEOF
6624/* end confdefs.h. */
7a197a62 6625$ac_includes_default
ad6254c5
AK
6626int
6627find_stack_direction ()
6628{
6629 static char *addr = 0;
6630 auto char dummy;
6631 if (addr == 0)
6632 {
6633 addr = &dummy;
6634 return find_stack_direction ();
6635 }
6636 else
6637 return (&dummy > addr) ? 1 : -1;
6638}
6639
6640int
6641main ()
6642{
7a197a62 6643 return find_stack_direction () < 0;
ad6254c5
AK
6644}
6645_ACEOF
6646rm -f conftest$ac_exeext
7a197a62
AK
6647if { (ac_try="$ac_link"
6648case "(($ac_try" in
6649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6650 *) ac_try_echo=$ac_try;;
6651esac
fddafd51
ZK
6652eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6653$as_echo "$ac_try_echo") >&5
7a197a62 6654 (eval "$ac_link") 2>&5
ad6254c5 6655 ac_status=$?
fddafd51 6656 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 6657 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
6658 { (case "(($ac_try" in
6659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6660 *) ac_try_echo=$ac_try;;
6661esac
fddafd51
ZK
6662eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6663$as_echo "$ac_try_echo") >&5
7a197a62 6664 (eval "$ac_try") 2>&5
ad6254c5 6665 ac_status=$?
fddafd51 6666 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
6667 (exit $ac_status); }; }; then
6668 ac_cv_c_stack_direction=1
6669else
fddafd51
ZK
6670 $as_echo "$as_me: program exited with status $ac_status" >&5
6671$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6672sed 's/^/| /' conftest.$ac_ext >&5
6673
6674( exit $ac_status )
6675ac_cv_c_stack_direction=-1
6676fi
fddafd51 6677rm -rf conftest.dSYM
7a197a62 6678rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 6679fi
7a197a62
AK
6680
6681
ad6254c5 6682fi
fddafd51
ZK
6683{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6684$as_echo "$ac_cv_c_stack_direction" >&6; }
ad6254c5
AK
6685
6686cat >>confdefs.h <<_ACEOF
6687#define STACK_DIRECTION $ac_cv_c_stack_direction
6688_ACEOF
6689
6690
6691fi
6692
fddafd51
ZK
6693{ $as_echo "$as_me:$LINENO: checking whether closedir returns void" >&5
6694$as_echo_n "checking whether closedir returns void... " >&6; }
ad6254c5 6695if test "${ac_cv_func_closedir_void+set}" = set; then
fddafd51 6696 $as_echo_n "(cached) " >&6
ad6254c5
AK
6697else
6698 if test "$cross_compiling" = yes; then
6699 ac_cv_func_closedir_void=yes
6700else
6701 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6702/* confdefs.h. */
6703_ACEOF
6704cat confdefs.h >>conftest.$ac_ext
6705cat >>conftest.$ac_ext <<_ACEOF
6706/* end confdefs.h. */
6707$ac_includes_default
6708#include <$ac_header_dirent>
6709#ifndef __cplusplus
6710int closedir ();
6711#endif
6712
6713int
6714main ()
6715{
7a197a62 6716return closedir (opendir (".")) != 0;
ad6254c5
AK
6717 ;
6718 return 0;
6719}
6720_ACEOF
6721rm -f conftest$ac_exeext
7a197a62
AK
6722if { (ac_try="$ac_link"
6723case "(($ac_try" in
6724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6725 *) ac_try_echo=$ac_try;;
6726esac
fddafd51
ZK
6727eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6728$as_echo "$ac_try_echo") >&5
7a197a62 6729 (eval "$ac_link") 2>&5
ad6254c5 6730 ac_status=$?
fddafd51 6731 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 6732 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
6733 { (case "(($ac_try" in
6734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6735 *) ac_try_echo=$ac_try;;
6736esac
fddafd51
ZK
6737eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6738$as_echo "$ac_try_echo") >&5
7a197a62 6739 (eval "$ac_try") 2>&5
ad6254c5 6740 ac_status=$?
fddafd51 6741 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
6742 (exit $ac_status); }; }; then
6743 ac_cv_func_closedir_void=no
6744else
fddafd51
ZK
6745 $as_echo "$as_me: program exited with status $ac_status" >&5
6746$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6747sed 's/^/| /' conftest.$ac_ext >&5
6748
6749( exit $ac_status )
6750ac_cv_func_closedir_void=yes
6751fi
fddafd51 6752rm -rf conftest.dSYM
7a197a62 6753rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 6754fi
7a197a62
AK
6755
6756
ad6254c5 6757fi
fddafd51
ZK
6758{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
6759$as_echo "$ac_cv_func_closedir_void" >&6; }
ad6254c5
AK
6760if test $ac_cv_func_closedir_void = yes; then
6761
6762cat >>confdefs.h <<\_ACEOF
6763#define CLOSEDIR_VOID 1
6764_ACEOF
6765
6766fi
6767
6768
7a197a62 6769for ac_header in vfork.h
ad6254c5 6770do
fddafd51 6771as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 6772if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
fddafd51
ZK
6773 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6774$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 6775if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
fddafd51 6776 $as_echo_n "(cached) " >&6
ad6254c5 6777fi
fddafd51
ZK
6778ac_res=`eval 'as_val=${'$as_ac_Header'}
6779 $as_echo "$as_val"'`
6780 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6781$as_echo "$ac_res" >&6; }
ad6254c5
AK
6782else
6783 # Is the header compilable?
fddafd51
ZK
6784{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6785$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 6786cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6787/* confdefs.h. */
6788_ACEOF
6789cat confdefs.h >>conftest.$ac_ext
6790cat >>conftest.$ac_ext <<_ACEOF
6791/* end confdefs.h. */
6792$ac_includes_default
6793#include <$ac_header>
6794_ACEOF
6795rm -f conftest.$ac_objext
7a197a62
AK
6796if { (ac_try="$ac_compile"
6797case "(($ac_try" in
6798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6799 *) ac_try_echo=$ac_try;;
6800esac
fddafd51
ZK
6801eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6802$as_echo "$ac_try_echo") >&5
7a197a62 6803 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6804 ac_status=$?
8a2fc586
AK
6805 grep -v '^ *+' conftest.er1 >conftest.err
6806 rm -f conftest.er1
6807 cat conftest.err >&5
fddafd51 6808 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6809 (exit $ac_status); } && {
6810 test -z "$ac_c_werror_flag" ||
6811 test ! -s conftest.err
6812 } && test -s conftest.$ac_objext; then
ad6254c5
AK
6813 ac_header_compiler=yes
6814else
fddafd51 6815 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6816sed 's/^/| /' conftest.$ac_ext >&5
6817
7a197a62 6818 ac_header_compiler=no
ad6254c5 6819fi
7a197a62
AK
6820
6821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fddafd51
ZK
6822{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6823$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
6824
6825# Is the header present?
fddafd51
ZK
6826{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6827$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 6828cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6829/* confdefs.h. */
6830_ACEOF
6831cat confdefs.h >>conftest.$ac_ext
6832cat >>conftest.$ac_ext <<_ACEOF
6833/* end confdefs.h. */
6834#include <$ac_header>
6835_ACEOF
7a197a62
AK
6836if { (ac_try="$ac_cpp conftest.$ac_ext"
6837case "(($ac_try" in
6838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6839 *) ac_try_echo=$ac_try;;
6840esac
fddafd51
ZK
6841eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6842$as_echo "$ac_try_echo") >&5
7a197a62 6843 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
6844 ac_status=$?
6845 grep -v '^ *+' conftest.er1 >conftest.err
6846 rm -f conftest.er1
6847 cat conftest.err >&5
fddafd51 6848 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6849 (exit $ac_status); } >/dev/null && {
6850 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6851 test ! -s conftest.err
6852 }; then
ad6254c5
AK
6853 ac_header_preproc=yes
6854else
fddafd51 6855 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6856sed 's/^/| /' conftest.$ac_ext >&5
6857
6858 ac_header_preproc=no
6859fi
7a197a62 6860
ad6254c5 6861rm -f conftest.err conftest.$ac_ext
fddafd51
ZK
6862{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6863$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
6864
6865# So? What about this header?
8a2fc586
AK
6866case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6867 yes:no: )
fddafd51
ZK
6868 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6869$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6870 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6871$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 6872 ac_header_preproc=yes
ad6254c5 6873 ;;
8a2fc586 6874 no:yes:* )
fddafd51
ZK
6875 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6876$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6877 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6878$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6879 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6880$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6881 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6882$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6883 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6884$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6885 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6886$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 6887
ad6254c5
AK
6888 ;;
6889esac
fddafd51
ZK
6890{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6891$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 6892if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
fddafd51 6893 $as_echo_n "(cached) " >&6
ad6254c5 6894else
8a2fc586 6895 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 6896fi
fddafd51
ZK
6897ac_res=`eval 'as_val=${'$as_ac_Header'}
6898 $as_echo "$as_val"'`
6899 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6900$as_echo "$ac_res" >&6; }
ad6254c5 6901
795ca3e5 6902fi
fddafd51
ZK
6903if test `eval 'as_val=${'$as_ac_Header'}
6904 $as_echo "$as_val"'` = yes; then
ad6254c5 6905 cat >>confdefs.h <<_ACEOF
fddafd51 6906#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
6907_ACEOF
6908
6909fi
6910
6911done
795ca3e5 6912
ad6254c5
AK
6913
6914
6915for ac_func in fork vfork
6916do
fddafd51
ZK
6917as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6918{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6919$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 6920if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
fddafd51 6921 $as_echo_n "(cached) " >&6
795ca3e5 6922else
ad6254c5 6923 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6924/* confdefs.h. */
6925_ACEOF
6926cat confdefs.h >>conftest.$ac_ext
6927cat >>conftest.$ac_ext <<_ACEOF
6928/* end confdefs.h. */
8a2fc586
AK
6929/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6930 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6931#define $ac_func innocuous_$ac_func
6932
ad6254c5
AK
6933/* System header to define __stub macros and hopefully few prototypes,
6934 which can conflict with char $ac_func (); below.
6935 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6936 <limits.h> exists even on freestanding compilers. */
8a2fc586 6937
ad6254c5
AK
6938#ifdef __STDC__
6939# include <limits.h>
6940#else
6941# include <assert.h>
795ca3e5 6942#endif
8a2fc586
AK
6943
6944#undef $ac_func
6945
7a197a62
AK
6946/* Override any GCC internal prototype to avoid an error.
6947 Use char because int might match the return type of a GCC
6948 builtin and then its argument prototype would still apply. */
795ca3e5 6949#ifdef __cplusplus
ad6254c5 6950extern "C"
ad6254c5 6951#endif
ad6254c5
AK
6952char $ac_func ();
6953/* The GNU C library defines this for functions which it implements
6954 to always fail with ENOSYS. Some functions are actually named
6955 something starting with __ and the normal name is an alias. */
7a197a62 6956#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 6957choke me
795ca3e5
AK
6958#endif
6959
ad6254c5
AK
6960int
6961main ()
6962{
7a197a62 6963return $ac_func ();
ad6254c5
AK
6964 ;
6965 return 0;
6966}
6967_ACEOF
6968rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
6969if { (ac_try="$ac_link"
6970case "(($ac_try" in
6971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6972 *) ac_try_echo=$ac_try;;
6973esac
fddafd51
ZK
6974eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6975$as_echo "$ac_try_echo") >&5
7a197a62 6976 (eval "$ac_link") 2>conftest.er1
ad6254c5 6977 ac_status=$?
8a2fc586
AK
6978 grep -v '^ *+' conftest.er1 >conftest.err
6979 rm -f conftest.er1
6980 cat conftest.err >&5
fddafd51 6981 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6982 (exit $ac_status); } && {
6983 test -z "$ac_c_werror_flag" ||
6984 test ! -s conftest.err
fddafd51
ZK
6985 } && test -s conftest$ac_exeext && {
6986 test "$cross_compiling" = yes ||
6987 $as_test_x conftest$ac_exeext
6988 }; then
ad6254c5 6989 eval "$as_ac_var=yes"
795ca3e5 6990else
fddafd51 6991 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6992sed 's/^/| /' conftest.$ac_ext >&5
6993
7a197a62 6994 eval "$as_ac_var=no"
795ca3e5 6995fi
7a197a62 6996
fddafd51 6997rm -rf conftest.dSYM
25fbec5b 6998rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 6999 conftest$ac_exeext conftest.$ac_ext
ad6254c5 7000fi
fddafd51
ZK
7001ac_res=`eval 'as_val=${'$as_ac_var'}
7002 $as_echo "$as_val"'`
7003 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7004$as_echo "$ac_res" >&6; }
7005if test `eval 'as_val=${'$as_ac_var'}
7006 $as_echo "$as_val"'` = yes; then
ad6254c5 7007 cat >>confdefs.h <<_ACEOF
fddafd51 7008#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
7009_ACEOF
7010
7011fi
7012done
7013
7014if test "x$ac_cv_func_fork" = xyes; then
fddafd51
ZK
7015 { $as_echo "$as_me:$LINENO: checking for working fork" >&5
7016$as_echo_n "checking for working fork... " >&6; }
ad6254c5 7017if test "${ac_cv_func_fork_works+set}" = set; then
fddafd51 7018 $as_echo_n "(cached) " >&6
ad6254c5
AK
7019else
7020 if test "$cross_compiling" = yes; then
7021 ac_cv_func_fork_works=cross
7022else
7023 cat >conftest.$ac_ext <<_ACEOF
7a197a62
AK
7024/* confdefs.h. */
7025_ACEOF
7026cat confdefs.h >>conftest.$ac_ext
7027cat >>conftest.$ac_ext <<_ACEOF
7028/* end confdefs.h. */
7029$ac_includes_default
7030int
7031main ()
7032{
7033
7034 /* By Ruediger Kuhlmann. */
7035 return fork () < 0;
7036
7037 ;
7038 return 0;
7039}
ad6254c5
AK
7040_ACEOF
7041rm -f conftest$ac_exeext
7a197a62
AK
7042if { (ac_try="$ac_link"
7043case "(($ac_try" in
7044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7045 *) ac_try_echo=$ac_try;;
7046esac
fddafd51
ZK
7047eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7048$as_echo "$ac_try_echo") >&5
7a197a62 7049 (eval "$ac_link") 2>&5
ad6254c5 7050 ac_status=$?
fddafd51 7051 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7052 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7053 { (case "(($ac_try" in
7054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7055 *) ac_try_echo=$ac_try;;
7056esac
fddafd51
ZK
7057eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7058$as_echo "$ac_try_echo") >&5
7a197a62 7059 (eval "$ac_try") 2>&5
ad6254c5 7060 ac_status=$?
fddafd51 7061 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7062 (exit $ac_status); }; }; then
7063 ac_cv_func_fork_works=yes
7064else
fddafd51
ZK
7065 $as_echo "$as_me: program exited with status $ac_status" >&5
7066$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7067sed 's/^/| /' conftest.$ac_ext >&5
7068
7069( exit $ac_status )
7070ac_cv_func_fork_works=no
7071fi
fddafd51 7072rm -rf conftest.dSYM
7a197a62 7073rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7074fi
7a197a62
AK
7075
7076
ad6254c5 7077fi
fddafd51
ZK
7078{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
7079$as_echo "$ac_cv_func_fork_works" >&6; }
ad6254c5
AK
7080
7081else
7082 ac_cv_func_fork_works=$ac_cv_func_fork
7083fi
7084if test "x$ac_cv_func_fork_works" = xcross; then
7085 case $host in
7086 *-*-amigaos* | *-*-msdosdjgpp*)
7087 # Override, as these systems have only a dummy fork() stub
7088 ac_cv_func_fork_works=no
7089 ;;
7090 *)
7091 ac_cv_func_fork_works=yes
7092 ;;
7093 esac
fddafd51
ZK
7094 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
7095$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
ad6254c5
AK
7096fi
7097ac_cv_func_vfork_works=$ac_cv_func_vfork
7098if test "x$ac_cv_func_vfork" = xyes; then
fddafd51
ZK
7099 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
7100$as_echo_n "checking for working vfork... " >&6; }
ad6254c5 7101if test "${ac_cv_func_vfork_works+set}" = set; then
fddafd51 7102 $as_echo_n "(cached) " >&6
ad6254c5
AK
7103else
7104 if test "$cross_compiling" = yes; then
7105 ac_cv_func_vfork_works=cross
7106else
7107 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7108/* confdefs.h. */
7109_ACEOF
7110cat confdefs.h >>conftest.$ac_ext
7111cat >>conftest.$ac_ext <<_ACEOF
7112/* end confdefs.h. */
7113/* Thanks to Paul Eggert for this test. */
7a197a62 7114$ac_includes_default
ad6254c5 7115#include <sys/wait.h>
25fbec5b 7116#ifdef HAVE_VFORK_H
ad6254c5
AK
7117# include <vfork.h>
7118#endif
7119/* On some sparc systems, changes by the child to local and incoming
7120 argument registers are propagated back to the parent. The compiler
7121 is told about this with #include <vfork.h>, but some compilers
7122 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
7123 static variable whose address is put into a register that is
7124 clobbered by the vfork. */
7125static void
7126#ifdef __cplusplus
7127sparc_address_test (int arg)
7128# else
7129sparc_address_test (arg) int arg;
7130#endif
7131{
7132 static pid_t child;
7133 if (!child) {
7134 child = vfork ();
7135 if (child < 0) {
7136 perror ("vfork");
7137 _exit(2);
7138 }
7139 if (!child) {
7140 arg = getpid();
7141 write(-1, "", 0);
7142 _exit (arg);
7143 }
7144 }
7145}
7146
7147int
7148main ()
7149{
7150 pid_t parent = getpid ();
7151 pid_t child;
7152
7153 sparc_address_test (0);
7154
7155 child = vfork ();
7156
7157 if (child == 0) {
7158 /* Here is another test for sparc vfork register problems. This
7159 test uses lots of local variables, at least as many local
7160 variables as main has allocated so far including compiler
7161 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
7162 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
7163 reuse the register of parent for one of the local variables,
7164 since it will think that parent can't possibly be used any more
7165 in this routine. Assigning to the local variable will thus
7166 munge parent in the parent process. */
7167 pid_t
7168 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
7169 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
7170 /* Convince the compiler that p..p7 are live; otherwise, it might
7171 use the same hardware register for all 8 local variables. */
7172 if (p != p1 || p != p2 || p != p3 || p != p4
7173 || p != p5 || p != p6 || p != p7)
7174 _exit(1);
7175
7176 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
7177 from child file descriptors. If the child closes a descriptor
7178 before it execs or exits, this munges the parent's descriptor
7179 as well. Test for this by closing stdout in the child. */
7180 _exit(close(fileno(stdout)) != 0);
7181 } else {
7182 int status;
7183 struct stat st;
7184
7185 while (wait(&status) != child)
7186 ;
7a197a62 7187 return (
ad6254c5
AK
7188 /* Was there some problem with vforking? */
7189 child < 0
7190
7191 /* Did the child fail? (This shouldn't happen.) */
7192 || status
7193
7194 /* Did the vfork/compiler bug occur? */
7195 || parent != getpid()
7196
7197 /* Did the file descriptor bug occur? */
7198 || fstat(fileno(stdout), &st) != 0
7199 );
7200 }
7201}
7202_ACEOF
7203rm -f conftest$ac_exeext
7a197a62
AK
7204if { (ac_try="$ac_link"
7205case "(($ac_try" in
7206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7207 *) ac_try_echo=$ac_try;;
7208esac
fddafd51
ZK
7209eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7210$as_echo "$ac_try_echo") >&5
7a197a62 7211 (eval "$ac_link") 2>&5
ad6254c5 7212 ac_status=$?
fddafd51 7213 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7214 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7215 { (case "(($ac_try" in
7216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7217 *) ac_try_echo=$ac_try;;
7218esac
fddafd51
ZK
7219eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7220$as_echo "$ac_try_echo") >&5
7a197a62 7221 (eval "$ac_try") 2>&5
ad6254c5 7222 ac_status=$?
fddafd51 7223 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7224 (exit $ac_status); }; }; then
7225 ac_cv_func_vfork_works=yes
7226else
fddafd51
ZK
7227 $as_echo "$as_me: program exited with status $ac_status" >&5
7228$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7229sed 's/^/| /' conftest.$ac_ext >&5
7230
7231( exit $ac_status )
7232ac_cv_func_vfork_works=no
7233fi
fddafd51 7234rm -rf conftest.dSYM
7a197a62 7235rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7236fi
7a197a62
AK
7237
7238
ad6254c5 7239fi
fddafd51
ZK
7240{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
7241$as_echo "$ac_cv_func_vfork_works" >&6; }
ad6254c5
AK
7242
7243fi;
7244if test "x$ac_cv_func_fork_works" = xcross; then
8a2fc586 7245 ac_cv_func_vfork_works=$ac_cv_func_vfork
fddafd51
ZK
7246 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
7247$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
ad6254c5
AK
7248fi
7249
7250if test "x$ac_cv_func_vfork_works" = xyes; then
7251
7252cat >>confdefs.h <<\_ACEOF
7253#define HAVE_WORKING_VFORK 1
7254_ACEOF
7255
7256else
7257
7258cat >>confdefs.h <<\_ACEOF
7259#define vfork fork
7260_ACEOF
7261
7262fi
7263if test "x$ac_cv_func_fork_works" = xyes; then
7264
7265cat >>confdefs.h <<\_ACEOF
7266#define HAVE_WORKING_FORK 1
7267_ACEOF
7268
7269fi
7270
fddafd51
ZK
7271{ $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
7272$as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
ad6254c5 7273if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
fddafd51 7274 $as_echo_n "(cached) " >&6
ad6254c5
AK
7275else
7276 rm -f conftest.sym conftest.file
7277echo >conftest.file
7278if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
7279 if test "$cross_compiling" = yes; then
7280 ac_cv_func_lstat_dereferences_slashed_symlink=no
7281else
7282 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7283/* confdefs.h. */
7284_ACEOF
7285cat confdefs.h >>conftest.$ac_ext
7286cat >>conftest.$ac_ext <<_ACEOF
7287/* end confdefs.h. */
7288$ac_includes_default
7289int
7290main ()
7291{
7292struct stat sbuf;
7293 /* Linux will dereference the symlink and fail.
8a2fc586
AK
7294 That is better in the sense that it means we will not
7295 have to compile and use the lstat wrapper. */
7a197a62 7296 return lstat ("conftest.sym/", &sbuf) == 0;
ad6254c5
AK
7297 ;
7298 return 0;
7299}
7300_ACEOF
7301rm -f conftest$ac_exeext
7a197a62
AK
7302if { (ac_try="$ac_link"
7303case "(($ac_try" in
7304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7305 *) ac_try_echo=$ac_try;;
7306esac
fddafd51
ZK
7307eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7308$as_echo "$ac_try_echo") >&5
7a197a62 7309 (eval "$ac_link") 2>&5
ad6254c5 7310 ac_status=$?
fddafd51 7311 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7312 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7313 { (case "(($ac_try" in
7314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7315 *) ac_try_echo=$ac_try;;
7316esac
fddafd51
ZK
7317eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7318$as_echo "$ac_try_echo") >&5
7a197a62 7319 (eval "$ac_try") 2>&5
ad6254c5 7320 ac_status=$?
fddafd51 7321 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7322 (exit $ac_status); }; }; then
7323 ac_cv_func_lstat_dereferences_slashed_symlink=yes
7324else
fddafd51
ZK
7325 $as_echo "$as_me: program exited with status $ac_status" >&5
7326$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7327sed 's/^/| /' conftest.$ac_ext >&5
7328
7329( exit $ac_status )
7330ac_cv_func_lstat_dereferences_slashed_symlink=no
7331fi
fddafd51 7332rm -rf conftest.dSYM
7a197a62 7333rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7334fi
7a197a62
AK
7335
7336
ad6254c5
AK
7337else
7338 # If the `ln -s' command failed, then we probably don't even
7339 # have an lstat function.
7340 ac_cv_func_lstat_dereferences_slashed_symlink=no
7341fi
7342rm -f conftest.sym conftest.file
7343
7344fi
fddafd51
ZK
7345{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
7346$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
ad6254c5
AK
7347
7348test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
7349
7350cat >>confdefs.h <<_ACEOF
7351#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
7352_ACEOF
7353
7354
7355if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
7a197a62 7356 case " $LIBOBJS " in
8a2fc586 7357 *" lstat.$ac_objext "* ) ;;
7a197a62
AK
7358 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
7359 ;;
8a2fc586
AK
7360esac
7361
ad6254c5
AK
7362fi
7363
fddafd51
ZK
7364{ $as_echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
7365$as_echo_n "checking whether lstat accepts an empty string... " >&6; }
ad6254c5 7366if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
fddafd51 7367 $as_echo_n "(cached) " >&6
ad6254c5
AK
7368else
7369 if test "$cross_compiling" = yes; then
7370 ac_cv_func_lstat_empty_string_bug=yes
7371else
7372 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7373/* confdefs.h. */
7374_ACEOF
7375cat confdefs.h >>conftest.$ac_ext
7376cat >>conftest.$ac_ext <<_ACEOF
7377/* end confdefs.h. */
7378$ac_includes_default
7379int
7380main ()
7381{
7382struct stat sbuf;
7a197a62 7383 return lstat ("", &sbuf) == 0;
ad6254c5
AK
7384 ;
7385 return 0;
7386}
7387_ACEOF
7388rm -f conftest$ac_exeext
7a197a62
AK
7389if { (ac_try="$ac_link"
7390case "(($ac_try" in
7391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7392 *) ac_try_echo=$ac_try;;
7393esac
fddafd51
ZK
7394eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7395$as_echo "$ac_try_echo") >&5
7a197a62 7396 (eval "$ac_link") 2>&5
ad6254c5 7397 ac_status=$?
fddafd51 7398 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7399 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7400 { (case "(($ac_try" in
7401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7402 *) ac_try_echo=$ac_try;;
7403esac
fddafd51
ZK
7404eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7405$as_echo "$ac_try_echo") >&5
7a197a62 7406 (eval "$ac_try") 2>&5
ad6254c5 7407 ac_status=$?
fddafd51 7408 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7409 (exit $ac_status); }; }; then
7a197a62 7410 ac_cv_func_lstat_empty_string_bug=no
ad6254c5 7411else
fddafd51
ZK
7412 $as_echo "$as_me: program exited with status $ac_status" >&5
7413$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7414sed 's/^/| /' conftest.$ac_ext >&5
7415
7416( exit $ac_status )
7a197a62 7417ac_cv_func_lstat_empty_string_bug=yes
ad6254c5 7418fi
fddafd51 7419rm -rf conftest.dSYM
7a197a62 7420rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7421fi
7a197a62
AK
7422
7423
ad6254c5 7424fi
fddafd51
ZK
7425{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
7426$as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
ad6254c5 7427if test $ac_cv_func_lstat_empty_string_bug = yes; then
7a197a62 7428 case " $LIBOBJS " in
8a2fc586 7429 *" lstat.$ac_objext "* ) ;;
7a197a62
AK
7430 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
7431 ;;
8a2fc586
AK
7432esac
7433
ad6254c5
AK
7434
7435cat >>confdefs.h <<_ACEOF
7436#define HAVE_LSTAT_EMPTY_STRING_BUG 1
7437_ACEOF
7438
7439fi
7440
7441
7442for ac_header in stdlib.h
7443do
fddafd51 7444as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 7445if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
fddafd51
ZK
7446 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7447$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 7448if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
fddafd51 7449 $as_echo_n "(cached) " >&6
ad6254c5 7450fi
fddafd51
ZK
7451ac_res=`eval 'as_val=${'$as_ac_Header'}
7452 $as_echo "$as_val"'`
7453 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7454$as_echo "$ac_res" >&6; }
ad6254c5
AK
7455else
7456 # Is the header compilable?
fddafd51
ZK
7457{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7458$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 7459cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7460/* confdefs.h. */
7461_ACEOF
7462cat confdefs.h >>conftest.$ac_ext
7463cat >>conftest.$ac_ext <<_ACEOF
7464/* end confdefs.h. */
7465$ac_includes_default
7466#include <$ac_header>
7467_ACEOF
7468rm -f conftest.$ac_objext
7a197a62
AK
7469if { (ac_try="$ac_compile"
7470case "(($ac_try" in
7471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7472 *) ac_try_echo=$ac_try;;
7473esac
fddafd51
ZK
7474eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7475$as_echo "$ac_try_echo") >&5
7a197a62 7476 (eval "$ac_compile") 2>conftest.er1
ad6254c5 7477 ac_status=$?
8a2fc586
AK
7478 grep -v '^ *+' conftest.er1 >conftest.err
7479 rm -f conftest.er1
7480 cat conftest.err >&5
fddafd51 7481 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7482 (exit $ac_status); } && {
7483 test -z "$ac_c_werror_flag" ||
7484 test ! -s conftest.err
7485 } && test -s conftest.$ac_objext; then
ad6254c5
AK
7486 ac_header_compiler=yes
7487else
fddafd51 7488 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7489sed 's/^/| /' conftest.$ac_ext >&5
7490
7a197a62 7491 ac_header_compiler=no
ad6254c5 7492fi
7a197a62
AK
7493
7494rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fddafd51
ZK
7495{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7496$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
7497
7498# Is the header present?
fddafd51
ZK
7499{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7500$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 7501cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7502/* confdefs.h. */
7503_ACEOF
7504cat confdefs.h >>conftest.$ac_ext
7505cat >>conftest.$ac_ext <<_ACEOF
7506/* end confdefs.h. */
7507#include <$ac_header>
7508_ACEOF
7a197a62
AK
7509if { (ac_try="$ac_cpp conftest.$ac_ext"
7510case "(($ac_try" in
7511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7512 *) ac_try_echo=$ac_try;;
7513esac
fddafd51
ZK
7514eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7515$as_echo "$ac_try_echo") >&5
7a197a62 7516 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
7517 ac_status=$?
7518 grep -v '^ *+' conftest.er1 >conftest.err
7519 rm -f conftest.er1
7520 cat conftest.err >&5
fddafd51 7521 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7522 (exit $ac_status); } >/dev/null && {
7523 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7524 test ! -s conftest.err
7525 }; then
ad6254c5
AK
7526 ac_header_preproc=yes
7527else
fddafd51 7528 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7529sed 's/^/| /' conftest.$ac_ext >&5
7530
7531 ac_header_preproc=no
7532fi
7a197a62 7533
ad6254c5 7534rm -f conftest.err conftest.$ac_ext
fddafd51
ZK
7535{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7536$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
7537
7538# So? What about this header?
8a2fc586
AK
7539case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7540 yes:no: )
fddafd51
ZK
7541 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7542$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7543 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7544$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 7545 ac_header_preproc=yes
ad6254c5 7546 ;;
8a2fc586 7547 no:yes:* )
fddafd51
ZK
7548 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7549$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7550 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7551$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7552 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7553$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7554 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7555$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7556 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7557$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7558 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7559$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 7560
ad6254c5
AK
7561 ;;
7562esac
fddafd51
ZK
7563{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7564$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 7565if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
fddafd51 7566 $as_echo_n "(cached) " >&6
ad6254c5 7567else
8a2fc586 7568 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 7569fi
fddafd51
ZK
7570ac_res=`eval 'as_val=${'$as_ac_Header'}
7571 $as_echo "$as_val"'`
7572 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7573$as_echo "$ac_res" >&6; }
ad6254c5
AK
7574
7575fi
fddafd51
ZK
7576if test `eval 'as_val=${'$as_ac_Header'}
7577 $as_echo "$as_val"'` = yes; then
ad6254c5 7578 cat >>confdefs.h <<_ACEOF
fddafd51 7579#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
7580_ACEOF
7581
7582fi
7583
7584done
7585
fddafd51
ZK
7586{ $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
7587$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
ad6254c5 7588if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
fddafd51 7589 $as_echo_n "(cached) " >&6
ad6254c5
AK
7590else
7591 if test "$cross_compiling" = yes; then
7592 ac_cv_func_malloc_0_nonnull=no
7593else
7594 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7595/* confdefs.h. */
7596_ACEOF
7597cat confdefs.h >>conftest.$ac_ext
7598cat >>conftest.$ac_ext <<_ACEOF
7599/* end confdefs.h. */
25fbec5b 7600#if defined STDC_HEADERS || defined HAVE_STDLIB_H
ad6254c5
AK
7601# include <stdlib.h>
7602#else
7603char *malloc ();
7604#endif
7605
7606int
7607main ()
7608{
7a197a62 7609return ! malloc (0);
ad6254c5
AK
7610 ;
7611 return 0;
7612}
7613_ACEOF
7614rm -f conftest$ac_exeext
7a197a62
AK
7615if { (ac_try="$ac_link"
7616case "(($ac_try" in
7617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7618 *) ac_try_echo=$ac_try;;
7619esac
fddafd51
ZK
7620eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7621$as_echo "$ac_try_echo") >&5
7a197a62 7622 (eval "$ac_link") 2>&5
ad6254c5 7623 ac_status=$?
fddafd51 7624 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7625 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7626 { (case "(($ac_try" in
7627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7628 *) ac_try_echo=$ac_try;;
7629esac
fddafd51
ZK
7630eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7631$as_echo "$ac_try_echo") >&5
7a197a62 7632 (eval "$ac_try") 2>&5
ad6254c5 7633 ac_status=$?
fddafd51 7634 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7635 (exit $ac_status); }; }; then
7636 ac_cv_func_malloc_0_nonnull=yes
7637else
fddafd51
ZK
7638 $as_echo "$as_me: program exited with status $ac_status" >&5
7639$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7640sed 's/^/| /' conftest.$ac_ext >&5
7641
7642( exit $ac_status )
7643ac_cv_func_malloc_0_nonnull=no
7644fi
fddafd51 7645rm -rf conftest.dSYM
7a197a62 7646rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7647fi
7a197a62
AK
7648
7649
ad6254c5 7650fi
fddafd51
ZK
7651{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
7652$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
ad6254c5
AK
7653if test $ac_cv_func_malloc_0_nonnull = yes; then
7654
7655cat >>confdefs.h <<\_ACEOF
7656#define HAVE_MALLOC 1
7657_ACEOF
7658
7659else
7660 cat >>confdefs.h <<\_ACEOF
7661#define HAVE_MALLOC 0
7662_ACEOF
7663
7a197a62 7664 case " $LIBOBJS " in
8a2fc586 7665 *" malloc.$ac_objext "* ) ;;
7a197a62
AK
7666 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
7667 ;;
8a2fc586
AK
7668esac
7669
ad6254c5
AK
7670
7671cat >>confdefs.h <<\_ACEOF
7672#define malloc rpl_malloc
7673_ACEOF
7674
7675fi
7676
7677
7678
fddafd51
ZK
7679{ $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
7680$as_echo_n "checking for working memcmp... " >&6; }
ad6254c5 7681if test "${ac_cv_func_memcmp_working+set}" = set; then
fddafd51 7682 $as_echo_n "(cached) " >&6
ad6254c5
AK
7683else
7684 if test "$cross_compiling" = yes; then
7685 ac_cv_func_memcmp_working=no
7686else
7687 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7688/* confdefs.h. */
7689_ACEOF
7690cat confdefs.h >>conftest.$ac_ext
7691cat >>conftest.$ac_ext <<_ACEOF
7692/* end confdefs.h. */
8a2fc586 7693$ac_includes_default
ad6254c5
AK
7694int
7695main ()
7696{
7697
7698 /* Some versions of memcmp are not 8-bit clean. */
7a197a62 7699 char c0 = '\100', c1 = '\200', c2 = '\201';
ad6254c5 7700 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
7a197a62 7701 return 1;
ad6254c5
AK
7702
7703 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
7704 or more and with at least one buffer not starting on a 4-byte boundary.
7705 William Lewis provided this test program. */
7706 {
7707 char foo[21];
7708 char bar[21];
7709 int i;
7710 for (i = 0; i < 4; i++)
7711 {
8a2fc586
AK
7712 char *a = foo + i;
7713 char *b = bar + i;
7714 strcpy (a, "--------01111111");
7715 strcpy (b, "--------10000000");
7716 if (memcmp (a, b, 16) >= 0)
7a197a62 7717 return 1;
ad6254c5 7718 }
7a197a62 7719 return 0;
ad6254c5
AK
7720 }
7721
7722 ;
7723 return 0;
7724}
7725_ACEOF
7726rm -f conftest$ac_exeext
7a197a62
AK
7727if { (ac_try="$ac_link"
7728case "(($ac_try" in
7729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7730 *) ac_try_echo=$ac_try;;
7731esac
fddafd51
ZK
7732eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7733$as_echo "$ac_try_echo") >&5
7a197a62 7734 (eval "$ac_link") 2>&5
ad6254c5 7735 ac_status=$?
fddafd51 7736 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7737 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7738 { (case "(($ac_try" in
7739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7740 *) ac_try_echo=$ac_try;;
7741esac
fddafd51
ZK
7742eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7743$as_echo "$ac_try_echo") >&5
7a197a62 7744 (eval "$ac_try") 2>&5
ad6254c5 7745 ac_status=$?
fddafd51 7746 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7747 (exit $ac_status); }; }; then
7748 ac_cv_func_memcmp_working=yes
7749else
fddafd51
ZK
7750 $as_echo "$as_me: program exited with status $ac_status" >&5
7751$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7752sed 's/^/| /' conftest.$ac_ext >&5
7753
7754( exit $ac_status )
7755ac_cv_func_memcmp_working=no
7756fi
fddafd51 7757rm -rf conftest.dSYM
7a197a62 7758rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7759fi
7a197a62
AK
7760
7761
ad6254c5 7762fi
fddafd51
ZK
7763{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
7764$as_echo "$ac_cv_func_memcmp_working" >&6; }
7a197a62 7765test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
8a2fc586 7766 *" memcmp.$ac_objext "* ) ;;
7a197a62
AK
7767 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
7768 ;;
8a2fc586
AK
7769esac
7770
ad6254c5
AK
7771
7772
7773
7774for ac_header in stdlib.h unistd.h
7775do
fddafd51 7776as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 7777if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
fddafd51
ZK
7778 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7779$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 7780if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
fddafd51 7781 $as_echo_n "(cached) " >&6
ad6254c5 7782fi
fddafd51
ZK
7783ac_res=`eval 'as_val=${'$as_ac_Header'}
7784 $as_echo "$as_val"'`
7785 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7786$as_echo "$ac_res" >&6; }
ad6254c5
AK
7787else
7788 # Is the header compilable?
fddafd51
ZK
7789{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7790$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 7791cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7792/* confdefs.h. */
7793_ACEOF
7794cat confdefs.h >>conftest.$ac_ext
7795cat >>conftest.$ac_ext <<_ACEOF
7796/* end confdefs.h. */
7797$ac_includes_default
7798#include <$ac_header>
7799_ACEOF
7800rm -f conftest.$ac_objext
7a197a62
AK
7801if { (ac_try="$ac_compile"
7802case "(($ac_try" in
7803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7804 *) ac_try_echo=$ac_try;;
7805esac
fddafd51
ZK
7806eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7807$as_echo "$ac_try_echo") >&5
7a197a62 7808 (eval "$ac_compile") 2>conftest.er1
ad6254c5 7809 ac_status=$?
8a2fc586
AK
7810 grep -v '^ *+' conftest.er1 >conftest.err
7811 rm -f conftest.er1
7812 cat conftest.err >&5
fddafd51 7813 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7814 (exit $ac_status); } && {
7815 test -z "$ac_c_werror_flag" ||
7816 test ! -s conftest.err
7817 } && test -s conftest.$ac_objext; then
ad6254c5
AK
7818 ac_header_compiler=yes
7819else
fddafd51 7820 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7821sed 's/^/| /' conftest.$ac_ext >&5
7822
7a197a62 7823 ac_header_compiler=no
ad6254c5 7824fi
7a197a62
AK
7825
7826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fddafd51
ZK
7827{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7828$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
7829
7830# Is the header present?
fddafd51
ZK
7831{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7832$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 7833cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7834/* confdefs.h. */
7835_ACEOF
7836cat confdefs.h >>conftest.$ac_ext
7837cat >>conftest.$ac_ext <<_ACEOF
7838/* end confdefs.h. */
7839#include <$ac_header>
7840_ACEOF
7a197a62
AK
7841if { (ac_try="$ac_cpp conftest.$ac_ext"
7842case "(($ac_try" in
7843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7844 *) ac_try_echo=$ac_try;;
7845esac
fddafd51
ZK
7846eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7847$as_echo "$ac_try_echo") >&5
7a197a62 7848 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
7849 ac_status=$?
7850 grep -v '^ *+' conftest.er1 >conftest.err
7851 rm -f conftest.er1
7852 cat conftest.err >&5
fddafd51 7853 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7854 (exit $ac_status); } >/dev/null && {
7855 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7856 test ! -s conftest.err
7857 }; then
ad6254c5
AK
7858 ac_header_preproc=yes
7859else
fddafd51 7860 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7861sed 's/^/| /' conftest.$ac_ext >&5
7862
7863 ac_header_preproc=no
7864fi
7a197a62 7865
ad6254c5 7866rm -f conftest.err conftest.$ac_ext
fddafd51
ZK
7867{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7868$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
7869
7870# So? What about this header?
8a2fc586
AK
7871case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7872 yes:no: )
fddafd51
ZK
7873 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7874$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7875 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7876$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 7877 ac_header_preproc=yes
ad6254c5 7878 ;;
8a2fc586 7879 no:yes:* )
fddafd51
ZK
7880 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7881$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7882 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7883$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7884 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7885$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7886 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7887$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7888 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7889$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7890 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7891$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 7892
ad6254c5
AK
7893 ;;
7894esac
fddafd51
ZK
7895{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7896$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 7897if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
fddafd51 7898 $as_echo_n "(cached) " >&6
ad6254c5 7899else
8a2fc586 7900 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 7901fi
fddafd51
ZK
7902ac_res=`eval 'as_val=${'$as_ac_Header'}
7903 $as_echo "$as_val"'`
7904 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7905$as_echo "$ac_res" >&6; }
ad6254c5
AK
7906
7907fi
fddafd51
ZK
7908if test `eval 'as_val=${'$as_ac_Header'}
7909 $as_echo "$as_val"'` = yes; then
ad6254c5 7910 cat >>confdefs.h <<_ACEOF
fddafd51 7911#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
7912_ACEOF
7913
7914fi
7915
7916done
7917
7918
7919for ac_func in getpagesize
7920do
fddafd51
ZK
7921as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7922{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7923$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 7924if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
fddafd51 7925 $as_echo_n "(cached) " >&6
ad6254c5
AK
7926else
7927 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7928/* confdefs.h. */
7929_ACEOF
7930cat confdefs.h >>conftest.$ac_ext
7931cat >>conftest.$ac_ext <<_ACEOF
7932/* end confdefs.h. */
8a2fc586
AK
7933/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7934 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7935#define $ac_func innocuous_$ac_func
7936
ad6254c5
AK
7937/* System header to define __stub macros and hopefully few prototypes,
7938 which can conflict with char $ac_func (); below.
7939 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7940 <limits.h> exists even on freestanding compilers. */
8a2fc586 7941
ad6254c5
AK
7942#ifdef __STDC__
7943# include <limits.h>
7944#else
7945# include <assert.h>
7946#endif
8a2fc586
AK
7947
7948#undef $ac_func
7949
7a197a62
AK
7950/* Override any GCC internal prototype to avoid an error.
7951 Use char because int might match the return type of a GCC
7952 builtin and then its argument prototype would still apply. */
ad6254c5
AK
7953#ifdef __cplusplus
7954extern "C"
ad6254c5 7955#endif
ad6254c5
AK
7956char $ac_func ();
7957/* The GNU C library defines this for functions which it implements
7958 to always fail with ENOSYS. Some functions are actually named
7959 something starting with __ and the normal name is an alias. */
7a197a62 7960#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 7961choke me
ad6254c5
AK
7962#endif
7963
7964int
7965main ()
7966{
7a197a62 7967return $ac_func ();
ad6254c5
AK
7968 ;
7969 return 0;
7970}
7971_ACEOF
7972rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
7973if { (ac_try="$ac_link"
7974case "(($ac_try" in
7975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7976 *) ac_try_echo=$ac_try;;
7977esac
fddafd51
ZK
7978eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7979$as_echo "$ac_try_echo") >&5
7a197a62 7980 (eval "$ac_link") 2>conftest.er1
ad6254c5 7981 ac_status=$?
8a2fc586
AK
7982 grep -v '^ *+' conftest.er1 >conftest.err
7983 rm -f conftest.er1
7984 cat conftest.err >&5
fddafd51 7985 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7986 (exit $ac_status); } && {
7987 test -z "$ac_c_werror_flag" ||
7988 test ! -s conftest.err
fddafd51
ZK
7989 } && test -s conftest$ac_exeext && {
7990 test "$cross_compiling" = yes ||
7991 $as_test_x conftest$ac_exeext
7992 }; then
ad6254c5
AK
7993 eval "$as_ac_var=yes"
7994else
fddafd51 7995 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7996sed 's/^/| /' conftest.$ac_ext >&5
7997
7a197a62 7998 eval "$as_ac_var=no"
ad6254c5 7999fi
7a197a62 8000
fddafd51 8001rm -rf conftest.dSYM
25fbec5b 8002rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 8003 conftest$ac_exeext conftest.$ac_ext
ad6254c5 8004fi
fddafd51
ZK
8005ac_res=`eval 'as_val=${'$as_ac_var'}
8006 $as_echo "$as_val"'`
8007 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8008$as_echo "$ac_res" >&6; }
8009if test `eval 'as_val=${'$as_ac_var'}
8010 $as_echo "$as_val"'` = yes; then
ad6254c5 8011 cat >>confdefs.h <<_ACEOF
fddafd51 8012#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
8013_ACEOF
8014
8015fi
8016done
8017
fddafd51
ZK
8018{ $as_echo "$as_me:$LINENO: checking for working mmap" >&5
8019$as_echo_n "checking for working mmap... " >&6; }
ad6254c5 8020if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
fddafd51 8021 $as_echo_n "(cached) " >&6
ad6254c5
AK
8022else
8023 if test "$cross_compiling" = yes; then
8024 ac_cv_func_mmap_fixed_mapped=no
8025else
8026 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8027/* confdefs.h. */
8028_ACEOF
8029cat confdefs.h >>conftest.$ac_ext
8030cat >>conftest.$ac_ext <<_ACEOF
8031/* end confdefs.h. */
8032$ac_includes_default
8033/* malloc might have been renamed as rpl_malloc. */
8034#undef malloc
8035
8036/* Thanks to Mike Haertel and Jim Avera for this test.
8037 Here is a matrix of mmap possibilities:
8038 mmap private not fixed
8039 mmap private fixed at somewhere currently unmapped
8040 mmap private fixed at somewhere already mapped
8041 mmap shared not fixed
8042 mmap shared fixed at somewhere currently unmapped
8043 mmap shared fixed at somewhere already mapped
8044 For private mappings, we should verify that changes cannot be read()
8045 back from the file, nor mmap's back from the file at a different
8046 address. (There have been systems where private was not correctly
8047 implemented like the infamous i386 svr4.0, and systems where the
8048 VM page cache was not coherent with the file system buffer cache
8049 like early versions of FreeBSD and possibly contemporary NetBSD.)
8050 For shared mappings, we should conversely verify that changes get
8051 propagated back to all the places they're supposed to be.
8052
8053 Grep wants private fixed already mapped.
8054 The main things grep needs to know about mmap are:
8055 * does it exist and is it safe to write into the mmap'd area
8056 * how to use it (BSD variants) */
8057
8058#include <fcntl.h>
8059#include <sys/mman.h>
8060
25fbec5b 8061#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
ad6254c5
AK
8062char *malloc ();
8063#endif
8064
8065/* This mess was copied from the GNU getpagesize.h. */
25fbec5b 8066#ifndef HAVE_GETPAGESIZE
ad6254c5 8067/* Assume that all systems that can run configure have sys/param.h. */
25fbec5b 8068# ifndef HAVE_SYS_PARAM_H
ad6254c5
AK
8069# define HAVE_SYS_PARAM_H 1
8070# endif
8071
8072# ifdef _SC_PAGESIZE
8073# define getpagesize() sysconf(_SC_PAGESIZE)
8074# else /* no _SC_PAGESIZE */
25fbec5b 8075# ifdef HAVE_SYS_PARAM_H
ad6254c5
AK
8076# include <sys/param.h>
8077# ifdef EXEC_PAGESIZE
8078# define getpagesize() EXEC_PAGESIZE
8079# else /* no EXEC_PAGESIZE */
8080# ifdef NBPG
8081# define getpagesize() NBPG * CLSIZE
8082# ifndef CLSIZE
8083# define CLSIZE 1
8084# endif /* no CLSIZE */
8085# else /* no NBPG */
8086# ifdef NBPC
8087# define getpagesize() NBPC
8088# else /* no NBPC */
8089# ifdef PAGESIZE
8090# define getpagesize() PAGESIZE
8091# endif /* PAGESIZE */
8092# endif /* no NBPC */
8093# endif /* no NBPG */
8094# endif /* no EXEC_PAGESIZE */
8095# else /* no HAVE_SYS_PARAM_H */
8096# define getpagesize() 8192 /* punt totally */
8097# endif /* no HAVE_SYS_PARAM_H */
8098# endif /* no _SC_PAGESIZE */
8099
8100#endif /* no HAVE_GETPAGESIZE */
8101
8102int
8103main ()
8104{
8105 char *data, *data2, *data3;
8106 int i, pagesize;
8107 int fd;
8108
8109 pagesize = getpagesize ();
8110
8111 /* First, make a file with some known garbage in it. */
8112 data = (char *) malloc (pagesize);
8113 if (!data)
7a197a62 8114 return 1;
ad6254c5
AK
8115 for (i = 0; i < pagesize; ++i)
8116 *(data + i) = rand ();
8117 umask (0);
8118 fd = creat ("conftest.mmap", 0600);
8119 if (fd < 0)
7a197a62 8120 return 1;
ad6254c5 8121 if (write (fd, data, pagesize) != pagesize)
7a197a62 8122 return 1;
ad6254c5
AK
8123 close (fd);
8124
8125 /* Next, try to mmap the file at a fixed address which already has
8126 something else allocated at it. If we can, also make sure that
8127 we see the same garbage. */
8128 fd = open ("conftest.mmap", O_RDWR);
8129 if (fd < 0)
7a197a62 8130 return 1;
ad6254c5
AK
8131 data2 = (char *) malloc (2 * pagesize);
8132 if (!data2)
7a197a62
AK
8133 return 1;
8134 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
ad6254c5 8135 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8a2fc586 8136 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7a197a62 8137 return 1;
ad6254c5
AK
8138 for (i = 0; i < pagesize; ++i)
8139 if (*(data + i) != *(data2 + i))
7a197a62 8140 return 1;
ad6254c5
AK
8141
8142 /* Finally, make sure that changes to the mapped area do not
8143 percolate back to the file as seen by read(). (This is a bug on
8144 some variants of i386 svr4.0.) */
8145 for (i = 0; i < pagesize; ++i)
8146 *(data2 + i) = *(data2 + i) + 1;
8147 data3 = (char *) malloc (pagesize);
8148 if (!data3)
7a197a62 8149 return 1;
ad6254c5 8150 if (read (fd, data3, pagesize) != pagesize)
7a197a62 8151 return 1;
ad6254c5
AK
8152 for (i = 0; i < pagesize; ++i)
8153 if (*(data + i) != *(data3 + i))
7a197a62 8154 return 1;
ad6254c5 8155 close (fd);
7a197a62 8156 return 0;
ad6254c5
AK
8157}
8158_ACEOF
8159rm -f conftest$ac_exeext
7a197a62
AK
8160if { (ac_try="$ac_link"
8161case "(($ac_try" in
8162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8163 *) ac_try_echo=$ac_try;;
8164esac
fddafd51
ZK
8165eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8166$as_echo "$ac_try_echo") >&5
7a197a62 8167 (eval "$ac_link") 2>&5
ad6254c5 8168 ac_status=$?
fddafd51 8169 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 8170 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
8171 { (case "(($ac_try" in
8172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8173 *) ac_try_echo=$ac_try;;
8174esac
fddafd51
ZK
8175eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8176$as_echo "$ac_try_echo") >&5
7a197a62 8177 (eval "$ac_try") 2>&5
ad6254c5 8178 ac_status=$?
fddafd51 8179 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
8180 (exit $ac_status); }; }; then
8181 ac_cv_func_mmap_fixed_mapped=yes
8182else
fddafd51
ZK
8183 $as_echo "$as_me: program exited with status $ac_status" >&5
8184$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8185sed 's/^/| /' conftest.$ac_ext >&5
8186
8187( exit $ac_status )
8188ac_cv_func_mmap_fixed_mapped=no
8189fi
fddafd51 8190rm -rf conftest.dSYM
7a197a62 8191rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 8192fi
7a197a62
AK
8193
8194
ad6254c5 8195fi
fddafd51
ZK
8196{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8197$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
ad6254c5
AK
8198if test $ac_cv_func_mmap_fixed_mapped = yes; then
8199
8200cat >>confdefs.h <<\_ACEOF
8201#define HAVE_MMAP 1
8202_ACEOF
8203
8204fi
8205rm -f conftest.mmap
8206
fddafd51
ZK
8207{ $as_echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
8208$as_echo_n "checking whether stat accepts an empty string... " >&6; }
ad6254c5 8209if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
fddafd51 8210 $as_echo_n "(cached) " >&6
ad6254c5
AK
8211else
8212 if test "$cross_compiling" = yes; then
8213 ac_cv_func_stat_empty_string_bug=yes
8214else
8215 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8216/* confdefs.h. */
8217_ACEOF
8218cat confdefs.h >>conftest.$ac_ext
8219cat >>conftest.$ac_ext <<_ACEOF
8220/* end confdefs.h. */
8221$ac_includes_default
8222int
8223main ()
8224{
8225struct stat sbuf;
7a197a62 8226 return stat ("", &sbuf) == 0;
ad6254c5
AK
8227 ;
8228 return 0;
8229}
8230_ACEOF
8231rm -f conftest$ac_exeext
7a197a62
AK
8232if { (ac_try="$ac_link"
8233case "(($ac_try" in
8234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8235 *) ac_try_echo=$ac_try;;
8236esac
fddafd51
ZK
8237eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8238$as_echo "$ac_try_echo") >&5
7a197a62 8239 (eval "$ac_link") 2>&5
ad6254c5 8240 ac_status=$?
fddafd51 8241 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 8242 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
8243 { (case "(($ac_try" in
8244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8245 *) ac_try_echo=$ac_try;;
8246esac
fddafd51
ZK
8247eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8248$as_echo "$ac_try_echo") >&5
7a197a62 8249 (eval "$ac_try") 2>&5
ad6254c5 8250 ac_status=$?
fddafd51 8251 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 8252 (exit $ac_status); }; }; then
7a197a62 8253 ac_cv_func_stat_empty_string_bug=no
ad6254c5 8254else
fddafd51
ZK
8255 $as_echo "$as_me: program exited with status $ac_status" >&5
8256$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8257sed 's/^/| /' conftest.$ac_ext >&5
8258
8259( exit $ac_status )
7a197a62 8260ac_cv_func_stat_empty_string_bug=yes
ad6254c5 8261fi
fddafd51 8262rm -rf conftest.dSYM
7a197a62 8263rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 8264fi
7a197a62
AK
8265
8266
ad6254c5 8267fi
fddafd51
ZK
8268{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
8269$as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
ad6254c5 8270if test $ac_cv_func_stat_empty_string_bug = yes; then
7a197a62 8271 case " $LIBOBJS " in
8a2fc586 8272 *" stat.$ac_objext "* ) ;;
7a197a62
AK
8273 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
8274 ;;
8a2fc586
AK
8275esac
8276
ad6254c5
AK
8277
8278cat >>confdefs.h <<_ACEOF
8279#define HAVE_STAT_EMPTY_STRING_BUG 1
8280_ACEOF
8281
8282fi
8283
fddafd51
ZK
8284{ $as_echo "$as_me:$LINENO: checking for working strtod" >&5
8285$as_echo_n "checking for working strtod... " >&6; }
ad6254c5 8286if test "${ac_cv_func_strtod+set}" = set; then
fddafd51 8287 $as_echo_n "(cached) " >&6
ad6254c5
AK
8288else
8289 if test "$cross_compiling" = yes; then
8290 ac_cv_func_strtod=no
8291else
8292 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8293/* confdefs.h. */
8294_ACEOF
8295cat confdefs.h >>conftest.$ac_ext
8296cat >>conftest.$ac_ext <<_ACEOF
8297/* end confdefs.h. */
8298
7a197a62
AK
8299$ac_includes_default
8300#ifndef strtod
ad6254c5 8301double strtod ();
7a197a62 8302#endif
ad6254c5
AK
8303int
8304main()
8305{
8306 {
8307 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
8308 char *string = " +69";
8309 char *term;
8310 double value;
8311 value = strtod (string, &term);
8312 if (value != 69 || term != (string + 4))
7a197a62 8313 return 1;
ad6254c5
AK
8314 }
8315
8316 {
8317 /* Under Solaris 2.4, strtod returns the wrong value for the
8318 terminating character under some conditions. */
8319 char *string = "NaN";
8320 char *term;
8321 strtod (string, &term);
8322 if (term != string && *(term - 1) == 0)
7a197a62 8323 return 1;
ad6254c5 8324 }
7a197a62 8325 return 0;
ad6254c5
AK
8326}
8327
8328_ACEOF
8329rm -f conftest$ac_exeext
7a197a62
AK
8330if { (ac_try="$ac_link"
8331case "(($ac_try" in
8332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8333 *) ac_try_echo=$ac_try;;
8334esac
fddafd51
ZK
8335eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8336$as_echo "$ac_try_echo") >&5
7a197a62 8337 (eval "$ac_link") 2>&5
ad6254c5 8338 ac_status=$?
fddafd51 8339 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 8340 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
8341 { (case "(($ac_try" in
8342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8343 *) ac_try_echo=$ac_try;;
8344esac
fddafd51
ZK
8345eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8346$as_echo "$ac_try_echo") >&5
7a197a62 8347 (eval "$ac_try") 2>&5
ad6254c5 8348 ac_status=$?
fddafd51 8349 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
8350 (exit $ac_status); }; }; then
8351 ac_cv_func_strtod=yes
8352else
fddafd51
ZK
8353 $as_echo "$as_me: program exited with status $ac_status" >&5
8354$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8355sed 's/^/| /' conftest.$ac_ext >&5
8356
8357( exit $ac_status )
8358ac_cv_func_strtod=no
8359fi
fddafd51 8360rm -rf conftest.dSYM
7a197a62 8361rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 8362fi
7a197a62
AK
8363
8364
ad6254c5 8365fi
fddafd51
ZK
8366{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
8367$as_echo "$ac_cv_func_strtod" >&6; }
ad6254c5 8368if test $ac_cv_func_strtod = no; then
7a197a62 8369 case " $LIBOBJS " in
8a2fc586 8370 *" strtod.$ac_objext "* ) ;;
7a197a62
AK
8371 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
8372 ;;
8a2fc586
AK
8373esac
8374
fddafd51
ZK
8375{ $as_echo "$as_me:$LINENO: checking for pow" >&5
8376$as_echo_n "checking for pow... " >&6; }
ad6254c5 8377if test "${ac_cv_func_pow+set}" = set; then
fddafd51 8378 $as_echo_n "(cached) " >&6
ad6254c5
AK
8379else
8380 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8381/* confdefs.h. */
8382_ACEOF
8383cat confdefs.h >>conftest.$ac_ext
8384cat >>conftest.$ac_ext <<_ACEOF
8385/* end confdefs.h. */
8a2fc586
AK
8386/* Define pow to an innocuous variant, in case <limits.h> declares pow.
8387 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8388#define pow innocuous_pow
8389
ad6254c5
AK
8390/* System header to define __stub macros and hopefully few prototypes,
8391 which can conflict with char pow (); below.
8392 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8393 <limits.h> exists even on freestanding compilers. */
8a2fc586 8394
ad6254c5
AK
8395#ifdef __STDC__
8396# include <limits.h>
8397#else
8398# include <assert.h>
8399#endif
8a2fc586
AK
8400
8401#undef pow
8402
7a197a62
AK
8403/* Override any GCC internal prototype to avoid an error.
8404 Use char because int might match the return type of a GCC
8405 builtin and then its argument prototype would still apply. */
ad6254c5
AK
8406#ifdef __cplusplus
8407extern "C"
ad6254c5 8408#endif
ad6254c5
AK
8409char pow ();
8410/* The GNU C library defines this for functions which it implements
8411 to always fail with ENOSYS. Some functions are actually named
8412 something starting with __ and the normal name is an alias. */
7a197a62 8413#if defined __stub_pow || defined __stub___pow
ad6254c5 8414choke me
ad6254c5
AK
8415#endif
8416
8417int
8418main ()
8419{
7a197a62 8420return pow ();
ad6254c5
AK
8421 ;
8422 return 0;
8423}
8424_ACEOF
8425rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
8426if { (ac_try="$ac_link"
8427case "(($ac_try" in
8428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8429 *) ac_try_echo=$ac_try;;
8430esac
fddafd51
ZK
8431eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8432$as_echo "$ac_try_echo") >&5
7a197a62 8433 (eval "$ac_link") 2>conftest.er1
ad6254c5 8434 ac_status=$?
8a2fc586
AK
8435 grep -v '^ *+' conftest.er1 >conftest.err
8436 rm -f conftest.er1
8437 cat conftest.err >&5
fddafd51 8438 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8439 (exit $ac_status); } && {
8440 test -z "$ac_c_werror_flag" ||
8441 test ! -s conftest.err
fddafd51
ZK
8442 } && test -s conftest$ac_exeext && {
8443 test "$cross_compiling" = yes ||
8444 $as_test_x conftest$ac_exeext
8445 }; then
ad6254c5
AK
8446 ac_cv_func_pow=yes
8447else
fddafd51 8448 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8449sed 's/^/| /' conftest.$ac_ext >&5
8450
7a197a62 8451 ac_cv_func_pow=no
ad6254c5 8452fi
7a197a62 8453
fddafd51 8454rm -rf conftest.dSYM
25fbec5b 8455rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 8456 conftest$ac_exeext conftest.$ac_ext
ad6254c5 8457fi
fddafd51
ZK
8458{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
8459$as_echo "$ac_cv_func_pow" >&6; }
ad6254c5
AK
8460
8461if test $ac_cv_func_pow = no; then
fddafd51
ZK
8462 { $as_echo "$as_me:$LINENO: checking for pow in -lm" >&5
8463$as_echo_n "checking for pow in -lm... " >&6; }
ad6254c5 8464if test "${ac_cv_lib_m_pow+set}" = set; then
fddafd51 8465 $as_echo_n "(cached) " >&6
ad6254c5
AK
8466else
8467 ac_check_lib_save_LIBS=$LIBS
8468LIBS="-lm $LIBS"
8469cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8470/* confdefs.h. */
8471_ACEOF
8472cat confdefs.h >>conftest.$ac_ext
8473cat >>conftest.$ac_ext <<_ACEOF
8474/* end confdefs.h. */
8475
7a197a62
AK
8476/* Override any GCC internal prototype to avoid an error.
8477 Use char because int might match the return type of a GCC
8478 builtin and then its argument prototype would still apply. */
ad6254c5
AK
8479#ifdef __cplusplus
8480extern "C"
8481#endif
ad6254c5
AK
8482char pow ();
8483int
8484main ()
8485{
7a197a62 8486return pow ();
ad6254c5
AK
8487 ;
8488 return 0;
8489}
8490_ACEOF
8491rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
8492if { (ac_try="$ac_link"
8493case "(($ac_try" in
8494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8495 *) ac_try_echo=$ac_try;;
8496esac
fddafd51
ZK
8497eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8498$as_echo "$ac_try_echo") >&5
7a197a62 8499 (eval "$ac_link") 2>conftest.er1
ad6254c5 8500 ac_status=$?
8a2fc586
AK
8501 grep -v '^ *+' conftest.er1 >conftest.err
8502 rm -f conftest.er1
8503 cat conftest.err >&5
fddafd51 8504 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8505 (exit $ac_status); } && {
8506 test -z "$ac_c_werror_flag" ||
8507 test ! -s conftest.err
fddafd51
ZK
8508 } && test -s conftest$ac_exeext && {
8509 test "$cross_compiling" = yes ||
8510 $as_test_x conftest$ac_exeext
8511 }; then
ad6254c5
AK
8512 ac_cv_lib_m_pow=yes
8513else
fddafd51 8514 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8515sed 's/^/| /' conftest.$ac_ext >&5
8516
7a197a62 8517 ac_cv_lib_m_pow=no
ad6254c5 8518fi
7a197a62 8519
fddafd51 8520rm -rf conftest.dSYM
25fbec5b 8521rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 8522 conftest$ac_exeext conftest.$ac_ext
ad6254c5 8523LIBS=$ac_check_lib_save_LIBS
d0191583 8524fi
fddafd51
ZK
8525{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
8526$as_echo "$ac_cv_lib_m_pow" >&6; }
d0191583
JM
8527if test $ac_cv_lib_m_pow = yes; then
8528 POW_LIB=-lm
8529else
fddafd51
ZK
8530 { $as_echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
8531$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
d0191583 8532fi
72b2cb61 8533
d0191583 8534fi
72b2cb61 8535
ad6254c5
AK
8536fi
8537
ad6254c5 8538
d0191583
JM
8539for ac_func in vprintf
8540do
fddafd51
ZK
8541as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8542{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8543$as_echo_n "checking for $ac_func... " >&6; }
d0191583 8544if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
fddafd51 8545 $as_echo_n "(cached) " >&6
ad6254c5 8546else
d0191583
JM
8547 cat >conftest.$ac_ext <<_ACEOF
8548/* confdefs.h. */
8549_ACEOF
8550cat confdefs.h >>conftest.$ac_ext
8551cat >>conftest.$ac_ext <<_ACEOF
8552/* end confdefs.h. */
8553/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8554 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8555#define $ac_func innocuous_$ac_func
7a197a62 8556
d0191583
JM
8557/* System header to define __stub macros and hopefully few prototypes,
8558 which can conflict with char $ac_func (); below.
8559 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8560 <limits.h> exists even on freestanding compilers. */
ad6254c5 8561
d0191583
JM
8562#ifdef __STDC__
8563# include <limits.h>
8564#else
8565# include <assert.h>
8566#endif
ad6254c5 8567
d0191583 8568#undef $ac_func
72b2cb61 8569
d0191583
JM
8570/* Override any GCC internal prototype to avoid an error.
8571 Use char because int might match the return type of a GCC
8572 builtin and then its argument prototype would still apply. */
8573#ifdef __cplusplus
8574extern "C"
8575#endif
8576char $ac_func ();
8577/* The GNU C library defines this for functions which it implements
8578 to always fail with ENOSYS. Some functions are actually named
8579 something starting with __ and the normal name is an alias. */
8580#if defined __stub_$ac_func || defined __stub___$ac_func
8581choke me
8582#endif
8583
8584int
8585main ()
8586{
8587return $ac_func ();
8588 ;
8589 return 0;
8590}
72b2cb61 8591_ACEOF
d0191583
JM
8592rm -f conftest.$ac_objext conftest$ac_exeext
8593if { (ac_try="$ac_link"
8594case "(($ac_try" in
8595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8596 *) ac_try_echo=$ac_try;;
8597esac
fddafd51
ZK
8598eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8599$as_echo "$ac_try_echo") >&5
d0191583
JM
8600 (eval "$ac_link") 2>conftest.er1
8601 ac_status=$?
8602 grep -v '^ *+' conftest.er1 >conftest.err
8603 rm -f conftest.er1
8604 cat conftest.err >&5
fddafd51 8605 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
8606 (exit $ac_status); } && {
8607 test -z "$ac_c_werror_flag" ||
8608 test ! -s conftest.err
fddafd51
ZK
8609 } && test -s conftest$ac_exeext && {
8610 test "$cross_compiling" = yes ||
8611 $as_test_x conftest$ac_exeext
8612 }; then
d0191583
JM
8613 eval "$as_ac_var=yes"
8614else
fddafd51 8615 $as_echo "$as_me: failed program was:" >&5
d0191583 8616sed 's/^/| /' conftest.$ac_ext >&5
72b2cb61 8617
d0191583 8618 eval "$as_ac_var=no"
ad6254c5
AK
8619fi
8620
fddafd51 8621rm -rf conftest.dSYM
d0191583
JM
8622rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8623 conftest$ac_exeext conftest.$ac_ext
7a197a62 8624fi
fddafd51
ZK
8625ac_res=`eval 'as_val=${'$as_ac_var'}
8626 $as_echo "$as_val"'`
8627 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8628$as_echo "$ac_res" >&6; }
8629if test `eval 'as_val=${'$as_ac_var'}
8630 $as_echo "$as_val"'` = yes; then
d0191583 8631 cat >>confdefs.h <<_ACEOF
fddafd51 8632#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
d0191583 8633_ACEOF
7a197a62 8634
fddafd51
ZK
8635{ $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
8636$as_echo_n "checking for _doprnt... " >&6; }
d0191583 8637if test "${ac_cv_func__doprnt+set}" = set; then
fddafd51 8638 $as_echo_n "(cached) " >&6
ad6254c5 8639else
d0191583
JM
8640 cat >conftest.$ac_ext <<_ACEOF
8641/* confdefs.h. */
8642_ACEOF
8643cat confdefs.h >>conftest.$ac_ext
8644cat >>conftest.$ac_ext <<_ACEOF
8645/* end confdefs.h. */
8646/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
8647 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8648#define _doprnt innocuous__doprnt
7a197a62 8649
d0191583
JM
8650/* System header to define __stub macros and hopefully few prototypes,
8651 which can conflict with char _doprnt (); below.
8652 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8653 <limits.h> exists even on freestanding compilers. */
ad6254c5 8654
d0191583
JM
8655#ifdef __STDC__
8656# include <limits.h>
8657#else
8658# include <assert.h>
8659#endif
72b2cb61 8660
d0191583
JM
8661#undef _doprnt
8662
8663/* Override any GCC internal prototype to avoid an error.
8664 Use char because int might match the return type of a GCC
8665 builtin and then its argument prototype would still apply. */
8666#ifdef __cplusplus
8667extern "C"
8668#endif
8669char _doprnt ();
8670/* The GNU C library defines this for functions which it implements
8671 to always fail with ENOSYS. Some functions are actually named
8672 something starting with __ and the normal name is an alias. */
8673#if defined __stub__doprnt || defined __stub____doprnt
8674choke me
8675#endif
8676
8677int
8678main ()
8679{
8680return _doprnt ();
8681 ;
8682 return 0;
8683}
72b2cb61 8684_ACEOF
d0191583
JM
8685rm -f conftest.$ac_objext conftest$ac_exeext
8686if { (ac_try="$ac_link"
8687case "(($ac_try" in
8688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8689 *) ac_try_echo=$ac_try;;
8690esac
fddafd51
ZK
8691eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8692$as_echo "$ac_try_echo") >&5
d0191583
JM
8693 (eval "$ac_link") 2>conftest.er1
8694 ac_status=$?
8695 grep -v '^ *+' conftest.er1 >conftest.err
8696 rm -f conftest.er1
8697 cat conftest.err >&5
fddafd51 8698 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
8699 (exit $ac_status); } && {
8700 test -z "$ac_c_werror_flag" ||
8701 test ! -s conftest.err
fddafd51
ZK
8702 } && test -s conftest$ac_exeext && {
8703 test "$cross_compiling" = yes ||
8704 $as_test_x conftest$ac_exeext
8705 }; then
d0191583
JM
8706 ac_cv_func__doprnt=yes
8707else
fddafd51 8708 $as_echo "$as_me: failed program was:" >&5
d0191583 8709sed 's/^/| /' conftest.$ac_ext >&5
72b2cb61 8710
d0191583 8711 ac_cv_func__doprnt=no
ad6254c5
AK
8712fi
8713
fddafd51 8714rm -rf conftest.dSYM
d0191583
JM
8715rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8716 conftest$ac_exeext conftest.$ac_ext
7a197a62 8717fi
fddafd51
ZK
8718{ $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
8719$as_echo "$ac_cv_func__doprnt" >&6; }
d0191583 8720if test $ac_cv_func__doprnt = yes; then
7a197a62 8721
d0191583
JM
8722cat >>confdefs.h <<\_ACEOF
8723#define HAVE_DOPRNT 1
8724_ACEOF
ad6254c5 8725
7a197a62
AK
8726fi
8727
d0191583
JM
8728fi
8729done
8b1a3214 8730
ad6254c5 8731
7a197a62 8732
d0191583 8733################################################################################
ad6254c5 8734
ad6254c5
AK
8735
8736################################################################################
fddafd51
ZK
8737{ $as_echo "$as_me:$LINENO: checking file owner" >&5
8738$as_echo_n "checking file owner... " >&6; }
d0191583
JM
8739OWNER="root"
8740
8741
8742# Check whether --with-user was given.
8743if test "${with_user+set}" = set; then
8744 withval=$with_user; OWNER="$withval"
7a197a62
AK
8745fi
8746
fddafd51
ZK
8747{ $as_echo "$as_me:$LINENO: result: $OWNER" >&5
8748$as_echo "$OWNER" >&6; }
ad6254c5 8749
d0191583
JM
8750if test x$OWNER != x; then
8751 OWNER="-o $OWNER"
ad6254c5
AK
8752fi
8753
8754################################################################################
fddafd51
ZK
8755{ $as_echo "$as_me:$LINENO: checking group owner" >&5
8756$as_echo_n "checking group owner... " >&6; }
d0191583 8757GROUP="root"
ad6254c5 8758
d0191583
JM
8759# Check whether --with-group was given.
8760if test "${with_group+set}" = set; then
8761 withval=$with_group; GROUP="$withval"
7a197a62
AK
8762fi
8763
fddafd51
ZK
8764{ $as_echo "$as_me:$LINENO: result: $GROUP" >&5
8765$as_echo "$GROUP" >&6; }
d0191583
JM
8766
8767if test x$GROUP != x; then
8768 GROUP="-g $GROUP"
8769fi
ad6254c5
AK
8770
8771################################################################################
fddafd51
ZK
8772{ $as_echo "$as_me:$LINENO: checking whether to enable lvm1 fallback" >&5
8773$as_echo_n "checking whether to enable lvm1 fallback... " >&6; }
d0191583
JM
8774# Check whether --enable-lvm1_fallback was given.
8775if test "${enable_lvm1_fallback+set}" = set; then
8776 enableval=$enable_lvm1_fallback; LVM1_FALLBACK=$enableval
8777else
8778 LVM1_FALLBACK=no
7a197a62
AK
8779fi
8780
fddafd51
ZK
8781{ $as_echo "$as_me:$LINENO: result: $LVM1_FALLBACK" >&5
8782$as_echo "$LVM1_FALLBACK" >&6; }
ad6254c5 8783
d0191583 8784if test x$LVM1_FALLBACK = xyes; then
72b2cb61
AK
8785
8786cat >>confdefs.h <<\_ACEOF
d0191583 8787#define LVM1_FALLBACK 1
72b2cb61
AK
8788_ACEOF
8789
ad6254c5
AK
8790fi
8791
8792################################################################################
fddafd51
ZK
8793{ $as_echo "$as_me:$LINENO: checking whether to include support for lvm1 metadata" >&5
8794$as_echo_n "checking whether to include support for lvm1 metadata... " >&6; }
d0191583
JM
8795
8796# Check whether --with-lvm1 was given.
8797if test "${with_lvm1+set}" = set; then
8798 withval=$with_lvm1; LVM1="$withval"
8799else
8800 LVM1="internal"
7a197a62
AK
8801fi
8802
fddafd51
ZK
8803{ $as_echo "$as_me:$LINENO: result: $LVM1" >&5
8804$as_echo "$LVM1" >&6; }
ad6254c5 8805
d0191583 8806if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ];
fddafd51 8807 then { { $as_echo "$as_me:$LINENO: error: --with-lvm1 parameter invalid
d0191583 8808" >&5
fddafd51 8809$as_echo "$as_me: error: --with-lvm1 parameter invalid
d0191583
JM
8810" >&2;}
8811 { (exit 1); exit 1; }; }
8812fi;
8813
8814if test x$LVM1 = xinternal; then
72b2cb61
AK
8815
8816cat >>confdefs.h <<\_ACEOF
d0191583 8817#define LVM1_INTERNAL 1
72b2cb61
AK
8818_ACEOF
8819
ad6254c5
AK
8820fi
8821
8822################################################################################
fddafd51
ZK
8823{ $as_echo "$as_me:$LINENO: checking whether to include support for GFS pool metadata" >&5
8824$as_echo_n "checking whether to include support for GFS pool metadata... " >&6; }
d0191583
JM
8825
8826# Check whether --with-pool was given.
8827if test "${with_pool+set}" = set; then
8828 withval=$with_pool; POOL="$withval"
ad6254c5 8829else
d0191583 8830 POOL="internal"
7a197a62
AK
8831fi
8832
fddafd51
ZK
8833{ $as_echo "$as_me:$LINENO: result: $POOL" >&5
8834$as_echo "$POOL" >&6; }
ad6254c5 8835
d0191583 8836if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ];
fddafd51 8837 then { { $as_echo "$as_me:$LINENO: error: --with-pool parameter invalid
d0191583 8838" >&5
fddafd51 8839$as_echo "$as_me: error: --with-pool parameter invalid
d0191583
JM
8840" >&2;}
8841 { (exit 1); exit 1; }; }
8842fi;
7a197a62 8843
d0191583
JM
8844if test x$POOL = xinternal; then
8845
8846cat >>confdefs.h <<\_ACEOF
8847#define POOL_INTERNAL 1
8848_ACEOF
8849
8850fi
ad6254c5 8851
06f62ad1 8852################################################################################
fddafd51
ZK
8853{ $as_echo "$as_me:$LINENO: checking whether to include support for cluster locking" >&5
8854$as_echo_n "checking whether to include support for cluster locking... " >&6; }
d0191583
JM
8855
8856# Check whether --with-cluster was given.
8857if test "${with_cluster+set}" = set; then
8858 withval=$with_cluster; CLUSTER="$withval"
7a197a62
AK
8859fi
8860
fddafd51
ZK
8861{ $as_echo "$as_me:$LINENO: result: $CLUSTER" >&5
8862$as_echo "$CLUSTER" >&6; }
06f62ad1 8863
d0191583 8864if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ];
fddafd51 8865 then { { $as_echo "$as_me:$LINENO: error: --with-cluster parameter invalid
06f62ad1 8866" >&5
fddafd51 8867$as_echo "$as_me: error: --with-cluster parameter invalid
06f62ad1
AK
8868" >&2;}
8869 { (exit 1); exit 1; }; }
d0191583 8870fi;
06f62ad1 8871
d0191583 8872if test x$CLUSTER = xinternal; then
72b2cb61
AK
8873
8874cat >>confdefs.h <<\_ACEOF
d0191583 8875#define CLUSTER_LOCKING_INTERNAL 1
72b2cb61
AK
8876_ACEOF
8877
15d91f5a 8878fi
ad6254c5
AK
8879
8880################################################################################
fddafd51
ZK
8881{ $as_echo "$as_me:$LINENO: checking whether to include snapshots" >&5
8882$as_echo_n "checking whether to include snapshots... " >&6; }
ad6254c5 8883
d0191583
JM
8884# Check whether --with-snapshots was given.
8885if test "${with_snapshots+set}" = set; then
8886 withval=$with_snapshots; SNAPSHOTS="$withval"
8887else
8888 SNAPSHOTS="internal"
ad6254c5
AK
8889fi
8890
fddafd51
ZK
8891{ $as_echo "$as_me:$LINENO: result: $SNAPSHOTS" >&5
8892$as_echo "$SNAPSHOTS" >&6; }
ad6254c5 8893
d0191583 8894if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ];
fddafd51 8895 then { { $as_echo "$as_me:$LINENO: error: --with-snapshots parameter invalid
d0191583 8896" >&5
fddafd51 8897$as_echo "$as_me: error: --with-snapshots parameter invalid
d0191583
JM
8898" >&2;}
8899 { (exit 1); exit 1; }; }
8900fi;
8901
8902if test x$SNAPSHOTS = xinternal; then
8903
8904cat >>confdefs.h <<\_ACEOF
8905#define SNAPSHOT_INTERNAL 1
8906_ACEOF
ad6254c5 8907
ad6254c5 8908fi
7a197a62 8909
d0191583 8910################################################################################
fddafd51
ZK
8911{ $as_echo "$as_me:$LINENO: checking whether to include mirrors" >&5
8912$as_echo_n "checking whether to include mirrors... " >&6; }
d0191583
JM
8913
8914# Check whether --with-mirrors was given.
8915if test "${with_mirrors+set}" = set; then
8916 withval=$with_mirrors; MIRRORS="$withval"
8917else
8918 MIRRORS="internal"
ad6254c5 8919fi
ad6254c5 8920
fddafd51
ZK
8921{ $as_echo "$as_me:$LINENO: result: $MIRRORS" >&5
8922$as_echo "$MIRRORS" >&6; }
ad6254c5 8923
d0191583 8924if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ];
fddafd51 8925 then { { $as_echo "$as_me:$LINENO: error: --with-mirrors parameter invalid
d0191583 8926" >&5
fddafd51 8927$as_echo "$as_me: error: --with-mirrors parameter invalid
d0191583
JM
8928" >&2;}
8929 { (exit 1); exit 1; }; }
8930fi;
ad6254c5 8931
d0191583 8932if test x$MIRRORS = xinternal; then
ad6254c5 8933
d0191583
JM
8934cat >>confdefs.h <<\_ACEOF
8935#define MIRRORED_INTERNAL 1
ad6254c5 8936_ACEOF
8a2fc586 8937
d0191583 8938fi
8a2fc586 8939
d0191583 8940################################################################################
fddafd51
ZK
8941{ $as_echo "$as_me:$LINENO: checking whether to enable readline" >&5
8942$as_echo_n "checking whether to enable readline... " >&6; }
d0191583
JM
8943# Check whether --enable-readline was given.
8944if test "${enable_readline+set}" = set; then
8945 enableval=$enable_readline; READLINE=$enableval
8946else
8947 READLINE=no
8948fi
8a2fc586 8949
fddafd51
ZK
8950{ $as_echo "$as_me:$LINENO: result: $READLINE" >&5
8951$as_echo "$READLINE" >&6; }
8a2fc586 8952
d0191583 8953################################################################################
fddafd51
ZK
8954{ $as_echo "$as_me:$LINENO: checking whether to enable realtime support" >&5
8955$as_echo_n "checking whether to enable realtime support... " >&6; }
d0191583
JM
8956# Check whether --enable-realtime was given.
8957if test "${enable_realtime+set}" = set; then
8958 enableval=$enable_realtime; REALTIME=$enableval
ad6254c5 8959fi
ad6254c5 8960
fddafd51
ZK
8961{ $as_echo "$as_me:$LINENO: result: $REALTIME" >&5
8962$as_echo "$REALTIME" >&6; }
d0191583
JM
8963
8964################################################################################
fddafd51
ZK
8965{ $as_echo "$as_me:$LINENO: checking whether to build cluster LVM daemon" >&5
8966$as_echo_n "checking whether to build cluster LVM daemon... " >&6; }
d0191583
JM
8967
8968# Check whether --with-clvmd was given.
8969if test "${with_clvmd+set}" = set; then
8970 withval=$with_clvmd; CLVMD="$withval"
ad6254c5 8971else
d0191583
JM
8972 CLVMD="none"
8973fi
8a2fc586 8974
d0191583
JM
8975if test x$CLVMD = xyes; then
8976 CLVMD=all
8977fi
fddafd51
ZK
8978{ $as_echo "$as_me:$LINENO: result: $CLVMD" >&5
8979$as_echo "$CLVMD" >&6; }
8a2fc586 8980
d0191583
JM
8981if test x$CLVMD != xnone && test x$CLUSTER = xnone; then
8982 CLUSTER=internal
8983fi
8a2fc586 8984
d0191583 8985################################################################################
fddafd51
ZK
8986{ $as_echo "$as_me:$LINENO: checking whether to enable debugging" >&5
8987$as_echo_n "checking whether to enable debugging... " >&6; }
d0191583
JM
8988# Check whether --enable-debug was given.
8989if test "${enable_debug+set}" = set; then
8990 enableval=$enable_debug; DEBUG=$enableval
8991else
8992 DEBUG=no
8993fi
8a2fc586 8994
fddafd51
ZK
8995{ $as_echo "$as_me:$LINENO: result: $DEBUG" >&5
8996$as_echo "$DEBUG" >&6; }
ad6254c5 8997
d0191583
JM
8998if test x$DEBUG = xyes; then
8999 COPTIMISE_FLAG=
fc54be10 9000else
d0191583
JM
9001 CSCOPE_CMD=
9002fi
fc54be10 9003
d0191583 9004################################################################################
fddafd51
ZK
9005{ $as_echo "$as_me:$LINENO: checking for C optimisation flag" >&5
9006$as_echo_n "checking for C optimisation flag... " >&6; }
d0191583
JM
9007
9008# Check whether --with-optimisation was given.
9009if test "${with_optimisation+set}" = set; then
9010 withval=$with_optimisation; COPTIMISE_FLAG="$withval"
9011fi
9012
fddafd51
ZK
9013{ $as_echo "$as_me:$LINENO: result: $COPTIMISE_FLAG" >&5
9014$as_echo "$COPTIMISE_FLAG" >&6; }
9015
9016################################################################################
9017# Check whether --enable-profiling was given.
9018if test "${enable_profiling+set}" = set; then
9019 enableval=$enable_profiling;
9020else
9021 enable_profiling=no
9022fi
9023
9024 test "$enable_profiling" = yes && COPTIMISE_FLAG="$COPTIMISE_FLAG -fprofile-arcs -ftest-coverage"
9025# Extract the first word of "lcov", so it can be a program name with args.
9026set dummy lcov; ac_word=$2
9027{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9028$as_echo_n "checking for $ac_word... " >&6; }
9029if test "${ac_cv_path_LCOV+set}" = set; then
9030 $as_echo_n "(cached) " >&6
9031else
9032 case $LCOV in
9033 [\\/]* | ?:[\\/]*)
9034 ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path.
9035 ;;
9036 *)
9037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9038for as_dir in $PATH
9039do
9040 IFS=$as_save_IFS
9041 test -z "$as_dir" && as_dir=.
9042 for ac_exec_ext in '' $ac_executable_extensions; do
9043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9044 ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext"
9045 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9046 break 2
9047 fi
9048done
9049done
9050IFS=$as_save_IFS
9051
9052 ;;
9053esac
9054fi
9055LCOV=$ac_cv_path_LCOV
9056if test -n "$LCOV"; then
9057 { $as_echo "$as_me:$LINENO: result: $LCOV" >&5
9058$as_echo "$LCOV" >&6; }
9059else
9060 { $as_echo "$as_me:$LINENO: result: no" >&5
9061$as_echo "no" >&6; }
9062fi
9063
9064
9065# Extract the first word of "genhtml", so it can be a program name with args.
9066set dummy genhtml; ac_word=$2
9067{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9068$as_echo_n "checking for $ac_word... " >&6; }
9069if test "${ac_cv_path_GENHTML+set}" = set; then
9070 $as_echo_n "(cached) " >&6
9071else
9072 case $GENHTML in
9073 [\\/]* | ?:[\\/]*)
9074 ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path.
9075 ;;
9076 *)
9077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9078for as_dir in $PATH
9079do
9080 IFS=$as_save_IFS
9081 test -z "$as_dir" && as_dir=.
9082 for ac_exec_ext in '' $ac_executable_extensions; do
9083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9084 ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext"
9085 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9086 break 2
9087 fi
9088done
9089done
9090IFS=$as_save_IFS
9091
9092 ;;
9093esac
9094fi
9095GENHTML=$ac_cv_path_GENHTML
9096if test -n "$GENHTML"; then
9097 { $as_echo "$as_me:$LINENO: result: $GENHTML" >&5
9098$as_echo "$GENHTML" >&6; }
9099else
9100 { $as_echo "$as_me:$LINENO: result: no" >&5
9101$as_echo "no" >&6; }
9102fi
9103
9104
d0191583
JM
9105
9106################################################################################
fddafd51
ZK
9107{ $as_echo "$as_me:$LINENO: checking whether to use device-mapper" >&5
9108$as_echo_n "checking whether to use device-mapper... " >&6; }
d0191583
JM
9109# Check whether --enable-devmapper was given.
9110if test "${enable_devmapper+set}" = set; then
9111 enableval=$enable_devmapper; DEVMAPPER=$enableval
fc54be10
AK
9112fi
9113
fddafd51
ZK
9114{ $as_echo "$as_me:$LINENO: result: $DEVMAPPER" >&5
9115$as_echo "$DEVMAPPER" >&6; }
d0191583
JM
9116
9117if test x$DEVMAPPER = xyes; then
ad6254c5
AK
9118
9119cat >>confdefs.h <<\_ACEOF
d0191583 9120#define DEVMAPPER_SUPPORT 1
ad6254c5
AK
9121_ACEOF
9122
9123fi
9124
d0191583 9125################################################################################
fddafd51
ZK
9126{ $as_echo "$as_me:$LINENO: checking whether to enable O_DIRECT" >&5
9127$as_echo_n "checking whether to enable O_DIRECT... " >&6; }
d0191583
JM
9128# Check whether --enable-o_direct was given.
9129if test "${enable_o_direct+set}" = set; then
9130 enableval=$enable_o_direct; ODIRECT=$enableval
ad6254c5 9131fi
ad6254c5 9132
fddafd51
ZK
9133{ $as_echo "$as_me:$LINENO: result: $ODIRECT" >&5
9134$as_echo "$ODIRECT" >&6; }
ad6254c5 9135
d0191583 9136if test x$ODIRECT = xyes; then
ad6254c5 9137
d0191583
JM
9138cat >>confdefs.h <<\_ACEOF
9139#define O_DIRECT_SUPPORT 1
9140_ACEOF
ad6254c5 9141
d0191583 9142fi
ad6254c5 9143
d0191583 9144################################################################################
fddafd51
ZK
9145{ $as_echo "$as_me:$LINENO: checking whether to compile liblvm2cmd.so" >&5
9146$as_echo_n "checking whether to compile liblvm2cmd.so... " >&6; }
d0191583
JM
9147# Check whether --enable-cmdlib was given.
9148if test "${enable_cmdlib+set}" = set; then
9149 enableval=$enable_cmdlib; CMDLIB=$enableval
ad6254c5 9150else
d0191583
JM
9151 CMDLIB=no
9152fi
8a2fc586 9153
fddafd51
ZK
9154{ $as_echo "$as_me:$LINENO: result: $CMDLIB" >&5
9155$as_echo "$CMDLIB" >&6; }
8a2fc586 9156
d179cc7a
JM
9157test $CMDLIB=yes \
9158 && LVM2CMD_LIB=-llvm2cmd \
9159 || LVM2CMD_LIB=
9160
d0191583 9161################################################################################
fddafd51
ZK
9162{ $as_echo "$as_me:$LINENO: checking whether to install fsadm" >&5
9163$as_echo_n "checking whether to install fsadm... " >&6; }
d0191583
JM
9164# Check whether --enable-fsadm was given.
9165if test "${enable_fsadm+set}" = set; then
9166 enableval=$enable_fsadm; FSADM=$enableval
9167fi
8a2fc586 9168
fddafd51
ZK
9169{ $as_echo "$as_me:$LINENO: result: $FSADM" >&5
9170$as_echo "$FSADM" >&6; }
8a2fc586 9171
d0191583 9172################################################################################
fddafd51
ZK
9173{ $as_echo "$as_me:$LINENO: checking whether to use dmeventd" >&5
9174$as_echo_n "checking whether to use dmeventd... " >&6; }
d0191583
JM
9175# Check whether --enable-dmeventd was given.
9176if test "${enable_dmeventd+set}" = set; then
9177 enableval=$enable_dmeventd; DMEVENTD=$enableval
9178fi
ad6254c5 9179
fddafd51
ZK
9180{ $as_echo "$as_me:$LINENO: result: $DMEVENTD" >&5
9181$as_echo "$DMEVENTD" >&6; }
ad6254c5 9182
d0191583 9183if test x$DMEVENTD = xyes && test x$MIRRORS != xinternal; then
fddafd51 9184{ { $as_echo "$as_me:$LINENO: error: --enable-dmeventd currently requires --with-mirrors=internal
d0191583 9185" >&5
fddafd51 9186$as_echo "$as_me: error: --enable-dmeventd currently requires --with-mirrors=internal
d0191583
JM
9187" >&2;}
9188 { (exit 1); exit 1; }; }
ad6254c5 9189fi
7a197a62 9190
d0191583
JM
9191if test x$DMEVENTD = xyes; then
9192
9193cat >>confdefs.h <<\_ACEOF
9194#define DMEVENTD 1
ad6254c5
AK
9195_ACEOF
9196
ad6254c5 9197fi
d0191583
JM
9198################################################################################
9199if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ];
9200 then exec_prefix="";
9201fi;
ad6254c5
AK
9202
9203################################################################################
9204if test x$READLINE = xyes; then
fddafd51
ZK
9205 { $as_echo "$as_me:$LINENO: checking for library containing tgetent" >&5
9206$as_echo_n "checking for library containing tgetent... " >&6; }
ad6254c5 9207if test "${ac_cv_search_tgetent+set}" = set; then
fddafd51 9208 $as_echo_n "(cached) " >&6
ad6254c5
AK
9209else
9210 ac_func_search_save_LIBS=$LIBS
ad6254c5 9211cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9212/* confdefs.h. */
9213_ACEOF
9214cat confdefs.h >>conftest.$ac_ext
9215cat >>conftest.$ac_ext <<_ACEOF
9216/* end confdefs.h. */
9217
7a197a62
AK
9218/* Override any GCC internal prototype to avoid an error.
9219 Use char because int might match the return type of a GCC
9220 builtin and then its argument prototype would still apply. */
ad6254c5
AK
9221#ifdef __cplusplus
9222extern "C"
9223#endif
ad6254c5
AK
9224char tgetent ();
9225int
9226main ()
9227{
7a197a62 9228return tgetent ();
ad6254c5
AK
9229 ;
9230 return 0;
9231}
9232_ACEOF
7a197a62
AK
9233for ac_lib in '' ncurses curses termcap termlib; do
9234 if test -z "$ac_lib"; then
9235 ac_res="none required"
9236 else
9237 ac_res=-l$ac_lib
9238 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9239 fi
9240 rm -f conftest.$ac_objext conftest$ac_exeext
9241if { (ac_try="$ac_link"
9242case "(($ac_try" in
9243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9244 *) ac_try_echo=$ac_try;;
9245esac
fddafd51
ZK
9246eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9247$as_echo "$ac_try_echo") >&5
7a197a62 9248 (eval "$ac_link") 2>conftest.er1
ad6254c5 9249 ac_status=$?
8a2fc586
AK
9250 grep -v '^ *+' conftest.er1 >conftest.err
9251 rm -f conftest.er1
9252 cat conftest.err >&5
fddafd51 9253 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9254 (exit $ac_status); } && {
9255 test -z "$ac_c_werror_flag" ||
9256 test ! -s conftest.err
fddafd51
ZK
9257 } && test -s conftest$ac_exeext && {
9258 test "$cross_compiling" = yes ||
9259 $as_test_x conftest$ac_exeext
9260 }; then
7a197a62 9261 ac_cv_search_tgetent=$ac_res
ad6254c5 9262else
fddafd51 9263 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
9264sed 's/^/| /' conftest.$ac_ext >&5
9265
ad6254c5 9266
7a197a62 9267fi
ad6254c5 9268
fddafd51 9269rm -rf conftest.dSYM
25fbec5b 9270rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7a197a62
AK
9271 conftest$ac_exeext
9272 if test "${ac_cv_search_tgetent+set}" = set; then
9273 break
ad6254c5 9274fi
7a197a62
AK
9275done
9276if test "${ac_cv_search_tgetent+set}" = set; then
9277 :
9278else
9279 ac_cv_search_tgetent=no
ad6254c5 9280fi
7a197a62 9281rm conftest.$ac_ext
ad6254c5
AK
9282LIBS=$ac_func_search_save_LIBS
9283fi
fddafd51
ZK
9284{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
9285$as_echo "$ac_cv_search_tgetent" >&6; }
7a197a62
AK
9286ac_res=$ac_cv_search_tgetent
9287if test "$ac_res" != no; then
9288 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
ad6254c5
AK
9289
9290else
fddafd51 9291 { { $as_echo "$as_me:$LINENO: error: termcap could not be found which is required for the
ad6254c5
AK
9292--enable-readline option (which is enabled by default). Either disable readline
9293support with --disable-readline or download and install termcap from:
9294 ftp.gnu.org/gnu/termcap
9295Note: if you are using precompiled packages you will also need the development
9296 package as well (which may be called termcap-devel or something similar).
9297Note: (n)curses also seems to work as a substitute for termcap. This was
9298 not found either - but you could try installing that as well.
9299" >&5
fddafd51 9300$as_echo "$as_me: error: termcap could not be found which is required for the
ad6254c5
AK
9301--enable-readline option (which is enabled by default). Either disable readline
9302support with --disable-readline or download and install termcap from:
9303 ftp.gnu.org/gnu/termcap
9304Note: if you are using precompiled packages you will also need the development
9305 package as well (which may be called termcap-devel or something similar).
9306Note: (n)curses also seems to work as a substitute for termcap. This was
9307 not found either - but you could try installing that as well.
9308" >&2;}
9309 { (exit 1); exit 1; }; }
9310
9311fi
9312
9313fi
9314
9315################################################################################
fddafd51
ZK
9316{ $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9317$as_echo_n "checking for dlopen in -ldl... " >&6; }
ad6254c5 9318if test "${ac_cv_lib_dl_dlopen+set}" = set; then
fddafd51 9319 $as_echo_n "(cached) " >&6
ad6254c5
AK
9320else
9321 ac_check_lib_save_LIBS=$LIBS
9322LIBS="-ldl $LIBS"
9323cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9324/* confdefs.h. */
9325_ACEOF
9326cat confdefs.h >>conftest.$ac_ext
9327cat >>conftest.$ac_ext <<_ACEOF
9328/* end confdefs.h. */
9329
7a197a62
AK
9330/* Override any GCC internal prototype to avoid an error.
9331 Use char because int might match the return type of a GCC
9332 builtin and then its argument prototype would still apply. */
ad6254c5
AK
9333#ifdef __cplusplus
9334extern "C"
9335#endif
ad6254c5
AK
9336char dlopen ();
9337int
9338main ()
9339{
7a197a62 9340return dlopen ();
ad6254c5
AK
9341 ;
9342 return 0;
9343}
9344_ACEOF
9345rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
9346if { (ac_try="$ac_link"
9347case "(($ac_try" in
9348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9349 *) ac_try_echo=$ac_try;;
9350esac
fddafd51
ZK
9351eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9352$as_echo "$ac_try_echo") >&5
7a197a62 9353 (eval "$ac_link") 2>conftest.er1
ad6254c5 9354 ac_status=$?
8a2fc586
AK
9355 grep -v '^ *+' conftest.er1 >conftest.err
9356 rm -f conftest.er1
9357 cat conftest.err >&5
fddafd51 9358 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9359 (exit $ac_status); } && {
9360 test -z "$ac_c_werror_flag" ||
9361 test ! -s conftest.err
fddafd51
ZK
9362 } && test -s conftest$ac_exeext && {
9363 test "$cross_compiling" = yes ||
9364 $as_test_x conftest$ac_exeext
9365 }; then
ad6254c5
AK
9366 ac_cv_lib_dl_dlopen=yes
9367else
fddafd51 9368 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
9369sed 's/^/| /' conftest.$ac_ext >&5
9370
7a197a62 9371 ac_cv_lib_dl_dlopen=no
ad6254c5 9372fi
7a197a62 9373
fddafd51 9374rm -rf conftest.dSYM
25fbec5b 9375rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 9376 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
9377LIBS=$ac_check_lib_save_LIBS
9378fi
fddafd51
ZK
9379{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9380$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
ad6254c5
AK
9381if test $ac_cv_lib_dl_dlopen = yes; then
9382 HAVE_LIBDL=yes
9383else
9384 HAVE_LIBDL=no
9385fi
9386
9387
7e9e9502 9388if [ "x$HAVE_LIBDL" = xyes ]; then
72b2cb61
AK
9389
9390cat >>confdefs.h <<\_ACEOF
9391#define HAVE_LIBDL 1
9392_ACEOF
9393
ad6254c5
AK
9394 LIBS="-ldl $LIBS"
9395else
9396 HAVE_LIBDL=no
9397fi
9398
9399################################################################################
9400if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \
9401 -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \
9402 \) -a "x$STATIC_LINK" = xyes ];
fddafd51 9403 then { { $as_echo "$as_me:$LINENO: error: Features cannot be 'shared' when building statically
ad6254c5 9404" >&5
fddafd51 9405$as_echo "$as_me: error: Features cannot be 'shared' when building statically
ad6254c5
AK
9406" >&2;}
9407 { (exit 1); exit 1; }; }
9408fi
9409
d0191583 9410################################################################################
fddafd51
ZK
9411{ $as_echo "$as_me:$LINENO: checking whether to use static linking" >&5
9412$as_echo_n "checking whether to use static linking... " >&6; }
d0191583
JM
9413# Check whether --enable-static_link was given.
9414if test "${enable_static_link+set}" = set; then
9415 enableval=$enable_static_link; STATIC_LINK=$enableval
9416else
9417 STATIC_LINK=no
9418fi
9419
fddafd51
ZK
9420{ $as_echo "$as_me:$LINENO: result: $STATIC_LINK" >&5
9421$as_echo "$STATIC_LINK" >&6; }
d0191583
JM
9422
9423################################################################################
fddafd51
ZK
9424{ $as_echo "$as_me:$LINENO: checking whether to enable selinux support" >&5
9425$as_echo_n "checking whether to enable selinux support... " >&6; }
d0191583
JM
9426# Check whether --enable-selinux was given.
9427if test "${enable_selinux+set}" = set; then
9428 enableval=$enable_selinux; SELINUX=$enableval
9429fi
9430
fddafd51
ZK
9431{ $as_echo "$as_me:$LINENO: result: $SELINUX" >&5
9432$as_echo "$SELINUX" >&6; }
d0191583 9433
ad6254c5
AK
9434################################################################################
9435if test x$SELINUX = xyes; then
fddafd51
ZK
9436 { $as_echo "$as_me:$LINENO: checking for sepol_check_context in -lsepol" >&5
9437$as_echo_n "checking for sepol_check_context in -lsepol... " >&6; }
8a2fc586 9438if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then
fddafd51 9439 $as_echo_n "(cached) " >&6
8a2fc586
AK
9440else
9441 ac_check_lib_save_LIBS=$LIBS
9442LIBS="-lsepol $LIBS"
9443cat >conftest.$ac_ext <<_ACEOF
9444/* confdefs.h. */
9445_ACEOF
9446cat confdefs.h >>conftest.$ac_ext
9447cat >>conftest.$ac_ext <<_ACEOF
9448/* end confdefs.h. */
9449
7a197a62
AK
9450/* Override any GCC internal prototype to avoid an error.
9451 Use char because int might match the return type of a GCC
9452 builtin and then its argument prototype would still apply. */
8a2fc586
AK
9453#ifdef __cplusplus
9454extern "C"
9455#endif
8a2fc586
AK
9456char sepol_check_context ();
9457int
9458main ()
9459{
7a197a62 9460return sepol_check_context ();
8a2fc586
AK
9461 ;
9462 return 0;
9463}
9464_ACEOF
9465rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
9466if { (ac_try="$ac_link"
9467case "(($ac_try" in
9468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9469 *) ac_try_echo=$ac_try;;
9470esac
fddafd51
ZK
9471eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9472$as_echo "$ac_try_echo") >&5
7a197a62 9473 (eval "$ac_link") 2>conftest.er1
8a2fc586
AK
9474 ac_status=$?
9475 grep -v '^ *+' conftest.er1 >conftest.err
9476 rm -f conftest.er1
9477 cat conftest.err >&5
fddafd51 9478 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9479 (exit $ac_status); } && {
9480 test -z "$ac_c_werror_flag" ||
9481 test ! -s conftest.err
fddafd51
ZK
9482 } && test -s conftest$ac_exeext && {
9483 test "$cross_compiling" = yes ||
9484 $as_test_x conftest$ac_exeext
9485 }; then
8a2fc586
AK
9486 ac_cv_lib_sepol_sepol_check_context=yes
9487else
fddafd51 9488 $as_echo "$as_me: failed program was:" >&5
8a2fc586
AK
9489sed 's/^/| /' conftest.$ac_ext >&5
9490
7a197a62 9491 ac_cv_lib_sepol_sepol_check_context=no
8a2fc586 9492fi
7a197a62 9493
fddafd51 9494rm -rf conftest.dSYM
25fbec5b 9495rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586
AK
9496 conftest$ac_exeext conftest.$ac_ext
9497LIBS=$ac_check_lib_save_LIBS
9498fi
fddafd51
ZK
9499{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sepol_sepol_check_context" >&5
9500$as_echo "$ac_cv_lib_sepol_sepol_check_context" >&6; }
8a2fc586
AK
9501if test $ac_cv_lib_sepol_sepol_check_context = yes; then
9502 HAVE_SEPOL=yes
9503else
9504 HAVE_SEPOL=no
9505fi
9506
8a2fc586
AK
9507
9508 if test x$HAVE_SEPOL = xyes; then
d0191583
JM
9509
9510cat >>confdefs.h <<\_ACEOF
9511#define HAVE_SEPOL 1
9512_ACEOF
9513
8a2fc586
AK
9514 LIBS="-lsepol $LIBS"
9515 fi
9516
fddafd51
ZK
9517 { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
9518$as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
ad6254c5 9519if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
fddafd51 9520 $as_echo_n "(cached) " >&6
ad6254c5
AK
9521else
9522 ac_check_lib_save_LIBS=$LIBS
9523LIBS="-lselinux $LIBS"
9524cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9525/* confdefs.h. */
9526_ACEOF
9527cat confdefs.h >>conftest.$ac_ext
9528cat >>conftest.$ac_ext <<_ACEOF
9529/* end confdefs.h. */
9530
7a197a62
AK
9531/* Override any GCC internal prototype to avoid an error.
9532 Use char because int might match the return type of a GCC
9533 builtin and then its argument prototype would still apply. */
ad6254c5
AK
9534#ifdef __cplusplus
9535extern "C"
9536#endif
ad6254c5
AK
9537char is_selinux_enabled ();
9538int
9539main ()
9540{
7a197a62 9541return is_selinux_enabled ();
ad6254c5
AK
9542 ;
9543 return 0;
9544}
9545_ACEOF
9546rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
9547if { (ac_try="$ac_link"
9548case "(($ac_try" in
9549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9550 *) ac_try_echo=$ac_try;;
9551esac
fddafd51
ZK
9552eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9553$as_echo "$ac_try_echo") >&5
7a197a62 9554 (eval "$ac_link") 2>conftest.er1
ad6254c5 9555 ac_status=$?
8a2fc586
AK
9556 grep -v '^ *+' conftest.er1 >conftest.err
9557 rm -f conftest.er1
9558 cat conftest.err >&5
fddafd51 9559 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9560 (exit $ac_status); } && {
9561 test -z "$ac_c_werror_flag" ||
9562 test ! -s conftest.err
fddafd51
ZK
9563 } && test -s conftest$ac_exeext && {
9564 test "$cross_compiling" = yes ||
9565 $as_test_x conftest$ac_exeext
9566 }; then
ad6254c5
AK
9567 ac_cv_lib_selinux_is_selinux_enabled=yes
9568else
fddafd51 9569 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
9570sed 's/^/| /' conftest.$ac_ext >&5
9571
7a197a62 9572 ac_cv_lib_selinux_is_selinux_enabled=no
ad6254c5 9573fi
7a197a62 9574
fddafd51 9575rm -rf conftest.dSYM
25fbec5b 9576rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 9577 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
9578LIBS=$ac_check_lib_save_LIBS
9579fi
fddafd51
ZK
9580{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
9581$as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
ad6254c5
AK
9582if test $ac_cv_lib_selinux_is_selinux_enabled = yes; then
9583 HAVE_SELINUX=yes
9584else
9585 HAVE_SELINUX=no
9586fi
9587
ad6254c5
AK
9588
9589 if test x$HAVE_SELINUX = xyes; then
72b2cb61
AK
9590
9591cat >>confdefs.h <<\_ACEOF
9592#define HAVE_SELINUX 1
9593_ACEOF
9594
ad6254c5
AK
9595 LIBS="-lselinux $LIBS"
9596 else
fddafd51
ZK
9597 { $as_echo "$as_me:$LINENO: WARNING: Disabling selinux" >&5
9598$as_echo "$as_me: WARNING: Disabling selinux" >&2;}
66e941e8
JM
9599 fi
9600
d0191583 9601 # With --enable-static_link and selinux enabled, linking
66e941e8
JM
9602 # fails on at least Debian unstable due to unsatisfied references
9603 # to pthread_mutex_lock and _unlock. See if we need -lpthread.
9604 if test "$STATIC_LINK-$HAVE_SELINUX" = yes-yes; then
9605 lvm_saved_libs=$LIBS
9606 LIBS="$LIBS -static"
fddafd51
ZK
9607 { $as_echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
9608$as_echo_n "checking for library containing pthread_mutex_lock... " >&6; }
66e941e8 9609if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
fddafd51 9610 $as_echo_n "(cached) " >&6
66e941e8
JM
9611else
9612 ac_func_search_save_LIBS=$LIBS
9613cat >conftest.$ac_ext <<_ACEOF
9614/* confdefs.h. */
9615_ACEOF
9616cat confdefs.h >>conftest.$ac_ext
9617cat >>conftest.$ac_ext <<_ACEOF
9618/* end confdefs.h. */
9619
9620/* Override any GCC internal prototype to avoid an error.
9621 Use char because int might match the return type of a GCC
9622 builtin and then its argument prototype would still apply. */
9623#ifdef __cplusplus
9624extern "C"
9625#endif
9626char pthread_mutex_lock ();
9627int
9628main ()
9629{
9630return pthread_mutex_lock ();
9631 ;
9632 return 0;
9633}
9634_ACEOF
9635for ac_lib in '' pthread; do
9636 if test -z "$ac_lib"; then
9637 ac_res="none required"
9638 else
9639 ac_res=-l$ac_lib
9640 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9641 fi
9642 rm -f conftest.$ac_objext conftest$ac_exeext
9643if { (ac_try="$ac_link"
9644case "(($ac_try" in
9645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9646 *) ac_try_echo=$ac_try;;
9647esac
fddafd51
ZK
9648eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9649$as_echo "$ac_try_echo") >&5
66e941e8
JM
9650 (eval "$ac_link") 2>conftest.er1
9651 ac_status=$?
9652 grep -v '^ *+' conftest.er1 >conftest.err
9653 rm -f conftest.er1
9654 cat conftest.err >&5
fddafd51 9655 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9656 (exit $ac_status); } && {
9657 test -z "$ac_c_werror_flag" ||
9658 test ! -s conftest.err
fddafd51
ZK
9659 } && test -s conftest$ac_exeext && {
9660 test "$cross_compiling" = yes ||
9661 $as_test_x conftest$ac_exeext
9662 }; then
66e941e8
JM
9663 ac_cv_search_pthread_mutex_lock=$ac_res
9664else
fddafd51 9665 $as_echo "$as_me: failed program was:" >&5
66e941e8
JM
9666sed 's/^/| /' conftest.$ac_ext >&5
9667
9668
9669fi
9670
fddafd51 9671rm -rf conftest.dSYM
25fbec5b 9672rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
66e941e8
JM
9673 conftest$ac_exeext
9674 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9675 break
9676fi
9677done
9678if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9679 :
9680else
9681 ac_cv_search_pthread_mutex_lock=no
9682fi
9683rm conftest.$ac_ext
9684LIBS=$ac_func_search_save_LIBS
9685fi
fddafd51
ZK
9686{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
9687$as_echo "$ac_cv_search_pthread_mutex_lock" >&6; }
66e941e8
JM
9688ac_res=$ac_cv_search_pthread_mutex_lock
9689if test "$ac_res" != no; then
9690 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9691 test "$ac_cv_search_pthread_mutex_lock" = "none required" ||
9692 LIB_PTHREAD=-lpthread
9693fi
9694
9695 LIBS=$lvm_saved_libs
ad6254c5
AK
9696 fi
9697fi
9698
8b1a3214
AK
9699################################################################################
9700if test x$REALTIME = xyes; then
fddafd51
ZK
9701 { $as_echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
9702$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
8b1a3214 9703if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
fddafd51 9704 $as_echo_n "(cached) " >&6
8b1a3214
AK
9705else
9706 ac_check_lib_save_LIBS=$LIBS
9707LIBS="-lrt $LIBS"
9708cat >conftest.$ac_ext <<_ACEOF
9709/* confdefs.h. */
9710_ACEOF
9711cat confdefs.h >>conftest.$ac_ext
9712cat >>conftest.$ac_ext <<_ACEOF
9713/* end confdefs.h. */
9714
7a197a62
AK
9715/* Override any GCC internal prototype to avoid an error.
9716 Use char because int might match the return type of a GCC
9717 builtin and then its argument prototype would still apply. */
8b1a3214
AK
9718#ifdef __cplusplus
9719extern "C"
9720#endif
8b1a3214
AK
9721char clock_gettime ();
9722int
9723main ()
9724{
7a197a62 9725return clock_gettime ();
8b1a3214
AK
9726 ;
9727 return 0;
9728}
9729_ACEOF
9730rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
9731if { (ac_try="$ac_link"
9732case "(($ac_try" in
9733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9734 *) ac_try_echo=$ac_try;;
9735esac
fddafd51
ZK
9736eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9737$as_echo "$ac_try_echo") >&5
7a197a62 9738 (eval "$ac_link") 2>conftest.er1
8b1a3214
AK
9739 ac_status=$?
9740 grep -v '^ *+' conftest.er1 >conftest.err
9741 rm -f conftest.er1
9742 cat conftest.err >&5
fddafd51 9743 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9744 (exit $ac_status); } && {
9745 test -z "$ac_c_werror_flag" ||
9746 test ! -s conftest.err
fddafd51
ZK
9747 } && test -s conftest$ac_exeext && {
9748 test "$cross_compiling" = yes ||
9749 $as_test_x conftest$ac_exeext
9750 }; then
8b1a3214
AK
9751 ac_cv_lib_rt_clock_gettime=yes
9752else
fddafd51 9753 $as_echo "$as_me: failed program was:" >&5
8b1a3214
AK
9754sed 's/^/| /' conftest.$ac_ext >&5
9755
7a197a62 9756 ac_cv_lib_rt_clock_gettime=no
8b1a3214 9757fi
7a197a62 9758
fddafd51 9759rm -rf conftest.dSYM
25fbec5b 9760rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8b1a3214
AK
9761 conftest$ac_exeext conftest.$ac_ext
9762LIBS=$ac_check_lib_save_LIBS
9763fi
fddafd51
ZK
9764{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
9765$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
8b1a3214
AK
9766if test $ac_cv_lib_rt_clock_gettime = yes; then
9767 HAVE_REALTIME=yes
9768else
9769 HAVE_REALTIME=no
9770fi
9771
8b1a3214
AK
9772
9773 if test x$HAVE_REALTIME = xyes; then
9774
9775cat >>confdefs.h <<\_ACEOF
9776#define HAVE_REALTIME 1
9777_ACEOF
9778
9779 LIBS="-lrt $LIBS"
9780 else
fddafd51
ZK
9781 { $as_echo "$as_me:$LINENO: WARNING: Disabling realtime clock" >&5
9782$as_echo "$as_me: WARNING: Disabling realtime clock" >&2;}
8b1a3214
AK
9783 fi
9784fi
9785
ad6254c5
AK
9786################################################################################
9787
9788for ac_header in getopt.h
9789do
fddafd51 9790as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 9791if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
fddafd51
ZK
9792 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9793$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 9794if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
fddafd51 9795 $as_echo_n "(cached) " >&6
ad6254c5 9796fi
fddafd51
ZK
9797ac_res=`eval 'as_val=${'$as_ac_Header'}
9798 $as_echo "$as_val"'`
9799 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9800$as_echo "$ac_res" >&6; }
ad6254c5
AK
9801else
9802 # Is the header compilable?
fddafd51
ZK
9803{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9804$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 9805cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9806/* confdefs.h. */
9807_ACEOF
9808cat confdefs.h >>conftest.$ac_ext
9809cat >>conftest.$ac_ext <<_ACEOF
9810/* end confdefs.h. */
9811$ac_includes_default
9812#include <$ac_header>
9813_ACEOF
9814rm -f conftest.$ac_objext
7a197a62
AK
9815if { (ac_try="$ac_compile"
9816case "(($ac_try" in
9817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9818 *) ac_try_echo=$ac_try;;
9819esac
fddafd51
ZK
9820eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9821$as_echo "$ac_try_echo") >&5
7a197a62 9822 (eval "$ac_compile") 2>conftest.er1
ad6254c5 9823 ac_status=$?
8a2fc586
AK
9824 grep -v '^ *+' conftest.er1 >conftest.err
9825 rm -f conftest.er1
9826 cat conftest.err >&5
fddafd51 9827 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9828 (exit $ac_status); } && {
9829 test -z "$ac_c_werror_flag" ||
9830 test ! -s conftest.err
9831 } && test -s conftest.$ac_objext; then
ad6254c5
AK
9832 ac_header_compiler=yes
9833else
fddafd51 9834 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
9835sed 's/^/| /' conftest.$ac_ext >&5
9836
7a197a62 9837 ac_header_compiler=no
ad6254c5 9838fi
7a197a62
AK
9839
9840rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fddafd51
ZK
9841{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9842$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
9843
9844# Is the header present?
fddafd51
ZK
9845{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9846$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 9847cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9848/* confdefs.h. */
9849_ACEOF
9850cat confdefs.h >>conftest.$ac_ext
9851cat >>conftest.$ac_ext <<_ACEOF
9852/* end confdefs.h. */
9853#include <$ac_header>
9854_ACEOF
7a197a62
AK
9855if { (ac_try="$ac_cpp conftest.$ac_ext"
9856case "(($ac_try" in
9857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9858 *) ac_try_echo=$ac_try;;
9859esac
fddafd51
ZK
9860eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9861$as_echo "$ac_try_echo") >&5
7a197a62 9862 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
9863 ac_status=$?
9864 grep -v '^ *+' conftest.er1 >conftest.err
9865 rm -f conftest.er1
9866 cat conftest.err >&5
fddafd51 9867 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9868 (exit $ac_status); } >/dev/null && {
9869 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9870 test ! -s conftest.err
9871 }; then
ad6254c5
AK
9872 ac_header_preproc=yes
9873else
fddafd51 9874 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
9875sed 's/^/| /' conftest.$ac_ext >&5
9876
9877 ac_header_preproc=no
9878fi
7a197a62 9879
ad6254c5 9880rm -f conftest.err conftest.$ac_ext
fddafd51
ZK
9881{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9882$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
9883
9884# So? What about this header?
8a2fc586
AK
9885case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9886 yes:no: )
fddafd51
ZK
9887 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9888$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9889 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9890$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 9891 ac_header_preproc=yes
ad6254c5 9892 ;;
8a2fc586 9893 no:yes:* )
fddafd51
ZK
9894 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9895$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9896 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9897$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9898 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9899$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9900 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9901$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9902 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9903$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9904 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9905$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 9906
ad6254c5
AK
9907 ;;
9908esac
fddafd51
ZK
9909{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9910$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 9911if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
fddafd51 9912 $as_echo_n "(cached) " >&6
ad6254c5 9913else
8a2fc586 9914 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 9915fi
fddafd51
ZK
9916ac_res=`eval 'as_val=${'$as_ac_Header'}
9917 $as_echo "$as_val"'`
9918 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9919$as_echo "$ac_res" >&6; }
ad6254c5
AK
9920
9921fi
fddafd51
ZK
9922if test `eval 'as_val=${'$as_ac_Header'}
9923 $as_echo "$as_val"'` = yes; then
ad6254c5 9924 cat >>confdefs.h <<_ACEOF
fddafd51 9925#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 9926_ACEOF
72b2cb61
AK
9927
9928cat >>confdefs.h <<\_ACEOF
9929#define HAVE_GETOPTLONG 1
9930_ACEOF
9931
ad6254c5
AK
9932fi
9933
9934done
9935
9936
9937################################################################################
9938if test x$READLINE = xyes; then
9939
fddafd51
ZK
9940{ $as_echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
9941$as_echo_n "checking for readline in -lreadline... " >&6; }
ad6254c5 9942if test "${ac_cv_lib_readline_readline+set}" = set; then
fddafd51 9943 $as_echo_n "(cached) " >&6
ad6254c5
AK
9944else
9945 ac_check_lib_save_LIBS=$LIBS
9946LIBS="-lreadline $LIBS"
9947cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9948/* confdefs.h. */
9949_ACEOF
9950cat confdefs.h >>conftest.$ac_ext
9951cat >>conftest.$ac_ext <<_ACEOF
9952/* end confdefs.h. */
9953
7a197a62
AK
9954/* Override any GCC internal prototype to avoid an error.
9955 Use char because int might match the return type of a GCC
9956 builtin and then its argument prototype would still apply. */
ad6254c5
AK
9957#ifdef __cplusplus
9958extern "C"
9959#endif
ad6254c5
AK
9960char readline ();
9961int
9962main ()
9963{
7a197a62 9964return readline ();
ad6254c5
AK
9965 ;
9966 return 0;
9967}
9968_ACEOF
9969rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
9970if { (ac_try="$ac_link"
9971case "(($ac_try" in
9972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9973 *) ac_try_echo=$ac_try;;
9974esac
fddafd51
ZK
9975eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9976$as_echo "$ac_try_echo") >&5
7a197a62 9977 (eval "$ac_link") 2>conftest.er1
ad6254c5 9978 ac_status=$?
8a2fc586
AK
9979 grep -v '^ *+' conftest.er1 >conftest.err
9980 rm -f conftest.er1
9981 cat conftest.err >&5
fddafd51 9982 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9983 (exit $ac_status); } && {
9984 test -z "$ac_c_werror_flag" ||
9985 test ! -s conftest.err
fddafd51
ZK
9986 } && test -s conftest$ac_exeext && {
9987 test "$cross_compiling" = yes ||
9988 $as_test_x conftest$ac_exeext
9989 }; then
ad6254c5
AK
9990 ac_cv_lib_readline_readline=yes
9991else
fddafd51 9992 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
9993sed 's/^/| /' conftest.$ac_ext >&5
9994
7a197a62 9995 ac_cv_lib_readline_readline=no
ad6254c5 9996fi
7a197a62 9997
fddafd51 9998rm -rf conftest.dSYM
25fbec5b 9999rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 10000 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
10001LIBS=$ac_check_lib_save_LIBS
10002fi
fddafd51
ZK
10003{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
10004$as_echo "$ac_cv_lib_readline_readline" >&6; }
ad6254c5
AK
10005if test $ac_cv_lib_readline_readline = yes; then
10006 cat >>confdefs.h <<_ACEOF
10007#define HAVE_LIBREADLINE 1
10008_ACEOF
10009
10010 LIBS="-lreadline $LIBS"
10011
10012else
fddafd51 10013 { { $as_echo "$as_me:$LINENO: error: GNU Readline could not be found which is required for the
ad6254c5
AK
10014--enable-readline option (which is enabled by default). Either disable readline
10015support with --disable-readline or download and install readline from:
10016 ftp.gnu.org/gnu/readline
10017Note: if you are using precompiled packages you will also need the development
10018package as well (which may be called readline-devel or something similar).
10019" >&5
fddafd51 10020$as_echo "$as_me: error: GNU Readline could not be found which is required for the
ad6254c5
AK
10021--enable-readline option (which is enabled by default). Either disable readline
10022support with --disable-readline or download and install readline from:
10023 ftp.gnu.org/gnu/readline
10024Note: if you are using precompiled packages you will also need the development
10025package as well (which may be called readline-devel or something similar).
10026" >&2;}
10027 { (exit 1); exit 1; }; }
10028
10029fi
10030
fddafd51
ZK
10031 { $as_echo "$as_me:$LINENO: checking for rl_completion_matches" >&5
10032$as_echo_n "checking for rl_completion_matches... " >&6; }
ad6254c5 10033if test "${ac_cv_func_rl_completion_matches+set}" = set; then
fddafd51 10034 $as_echo_n "(cached) " >&6
ad6254c5
AK
10035else
10036 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10037/* confdefs.h. */
10038_ACEOF
10039cat confdefs.h >>conftest.$ac_ext
10040cat >>conftest.$ac_ext <<_ACEOF
10041/* end confdefs.h. */
8a2fc586
AK
10042/* Define rl_completion_matches to an innocuous variant, in case <limits.h> declares rl_completion_matches.
10043 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10044#define rl_completion_matches innocuous_rl_completion_matches
10045
ad6254c5
AK
10046/* System header to define __stub macros and hopefully few prototypes,
10047 which can conflict with char rl_completion_matches (); below.
10048 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10049 <limits.h> exists even on freestanding compilers. */
8a2fc586 10050
ad6254c5
AK
10051#ifdef __STDC__
10052# include <limits.h>
10053#else
10054# include <assert.h>
10055#endif
8a2fc586
AK
10056
10057#undef rl_completion_matches
10058
7a197a62
AK
10059/* Override any GCC internal prototype to avoid an error.
10060 Use char because int might match the return type of a GCC
10061 builtin and then its argument prototype would still apply. */
ad6254c5
AK
10062#ifdef __cplusplus
10063extern "C"
ad6254c5 10064#endif
ad6254c5
AK
10065char rl_completion_matches ();
10066/* The GNU C library defines this for functions which it implements
10067 to always fail with ENOSYS. Some functions are actually named
10068 something starting with __ and the normal name is an alias. */
7a197a62 10069#if defined __stub_rl_completion_matches || defined __stub___rl_completion_matches
ad6254c5 10070choke me
ad6254c5
AK
10071#endif
10072
10073int
10074main ()
10075{
7a197a62 10076return rl_completion_matches ();
ad6254c5
AK
10077 ;
10078 return 0;
10079}
10080_ACEOF
10081rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
10082if { (ac_try="$ac_link"
10083case "(($ac_try" in
10084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10085 *) ac_try_echo=$ac_try;;
10086esac
fddafd51
ZK
10087eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10088$as_echo "$ac_try_echo") >&5
7a197a62 10089 (eval "$ac_link") 2>conftest.er1
ad6254c5 10090 ac_status=$?
8a2fc586
AK
10091 grep -v '^ *+' conftest.er1 >conftest.err
10092 rm -f conftest.er1
10093 cat conftest.err >&5
fddafd51 10094 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10095 (exit $ac_status); } && {
10096 test -z "$ac_c_werror_flag" ||
10097 test ! -s conftest.err
fddafd51
ZK
10098 } && test -s conftest$ac_exeext && {
10099 test "$cross_compiling" = yes ||
10100 $as_test_x conftest$ac_exeext
10101 }; then
ad6254c5
AK
10102 ac_cv_func_rl_completion_matches=yes
10103else
fddafd51 10104 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10105sed 's/^/| /' conftest.$ac_ext >&5
10106
7a197a62 10107 ac_cv_func_rl_completion_matches=no
ad6254c5 10108fi
7a197a62 10109
fddafd51 10110rm -rf conftest.dSYM
25fbec5b 10111rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 10112 conftest$ac_exeext conftest.$ac_ext
ad6254c5 10113fi
fddafd51
ZK
10114{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_rl_completion_matches" >&5
10115$as_echo "$ac_cv_func_rl_completion_matches" >&6; }
ad6254c5 10116if test $ac_cv_func_rl_completion_matches = yes; then
ad6254c5 10117
72b2cb61
AK
10118cat >>confdefs.h <<\_ACEOF
10119#define HAVE_RL_COMPLETION_MATCHES 1
10120_ACEOF
10121
10122fi
ad6254c5 10123
d179cc7a
JM
10124
10125cat >>confdefs.h <<\_ACEOF
10126#define READLINE_SUPPORT 1
10127_ACEOF
10128
ad6254c5
AK
10129fi
10130
10131################################################################################
fddafd51
ZK
10132{ $as_echo "$as_me:$LINENO: checking whether to enable internationalisation" >&5
10133$as_echo_n "checking whether to enable internationalisation... " >&6; }
7a197a62 10134# Check whether --enable-nls was given.
ad6254c5 10135if test "${enable_nls+set}" = set; then
7a197a62 10136 enableval=$enable_nls; INTL=$enableval
ad6254c5
AK
10137else
10138 INTL=no
7a197a62
AK
10139fi
10140
fddafd51
ZK
10141{ $as_echo "$as_me:$LINENO: result: $INTL" >&5
10142$as_echo "$INTL" >&6; }
ad6254c5
AK
10143
10144if test x$INTL = xyes; then
10145 INTL_PACKAGE="lvm2"
10146 # Extract the first word of "msgfmt", so it can be a program name with args.
10147set dummy msgfmt; ac_word=$2
fddafd51
ZK
10148{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10149$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 10150if test "${ac_cv_path_MSGFMT+set}" = set; then
fddafd51 10151 $as_echo_n "(cached) " >&6
ad6254c5
AK
10152else
10153 case $MSGFMT in
10154 [\\/]* | ?:[\\/]*)
10155 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
10156 ;;
10157 *)
10158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10159for as_dir in $PATH
10160do
10161 IFS=$as_save_IFS
10162 test -z "$as_dir" && as_dir=.
10163 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 10164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 10165 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
fddafd51 10166 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
10167 break 2
10168 fi
10169done
10170done
7a197a62 10171IFS=$as_save_IFS
ad6254c5
AK
10172
10173 ;;
10174esac
10175fi
10176MSGFMT=$ac_cv_path_MSGFMT
ad6254c5 10177if test -n "$MSGFMT"; then
fddafd51
ZK
10178 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
10179$as_echo "$MSGFMT" >&6; }
ad6254c5 10180else
fddafd51
ZK
10181 { $as_echo "$as_me:$LINENO: result: no" >&5
10182$as_echo "no" >&6; }
ad6254c5
AK
10183fi
10184
7a197a62 10185
ad6254c5 10186 if [ "x$MSGFMT" == x ];
fddafd51 10187 then { { $as_echo "$as_me:$LINENO: error: msgfmt not found in path $PATH
ad6254c5 10188 " >&5
fddafd51 10189$as_echo "$as_me: error: msgfmt not found in path $PATH
ad6254c5
AK
10190 " >&2;}
10191 { (exit 1); exit 1; }; }
10192 fi;
10193
10194
7a197a62 10195# Check whether --with-localedir was given.
ad6254c5 10196if test "${with_localedir+set}" = set; then
7a197a62 10197 withval=$with_localedir; LOCALEDIR="$withval"
ad6254c5
AK
10198else
10199 LOCALEDIR='${prefix}/share/locale'
7a197a62
AK
10200fi
10201
ad6254c5
AK
10202fi
10203
10204################################################################################
10205
7a197a62 10206# Check whether --with-confdir was given.
ad6254c5 10207if test "${with_confdir+set}" = set; then
7a197a62 10208 withval=$with_confdir; CONFDIR="$withval"
ad6254c5
AK
10209else
10210 CONFDIR='/etc'
7a197a62
AK
10211fi
10212
ad6254c5
AK
10213
10214
7a197a62 10215# Check whether --with-staticdir was given.
ad6254c5 10216if test "${with_staticdir+set}" = set; then
7a197a62 10217 withval=$with_staticdir; STATICDIR="$withval"
ad6254c5
AK
10218else
10219 STATICDIR='${exec_prefix}/sbin'
7a197a62 10220fi
ad6254c5 10221
33f732c5 10222
7a197a62
AK
10223
10224# Check whether --with-dmdir was given.
33f732c5 10225if test "${with_dmdir+set}" = set; then
7a197a62 10226 withval=$with_dmdir; DMDIR="$withval" CPPFLAGS="$CPPFLAGS -I$DMDIR/include"
33f732c5
AK
10227else
10228 DMDIR=
7a197a62
AK
10229fi
10230
33f732c5 10231
09339e2b 10232# Convert a relative dir name to absolute.
25fbec5b
AK
10233case $DMDIR in
10234 /*) ;;
10235 *) DMDIR="`pwd`/$DMDIR" ;;
09339e2b
JM
10236esac
10237
ad6254c5
AK
10238################################################################################
10239if test x$READLINE = xyes; then
10240
10241
10242for ac_header in readline/readline.h readline/history.h
10243do
fddafd51 10244as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 10245if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
fddafd51
ZK
10246 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10247$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 10248if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
fddafd51 10249 $as_echo_n "(cached) " >&6
ad6254c5 10250fi
fddafd51
ZK
10251ac_res=`eval 'as_val=${'$as_ac_Header'}
10252 $as_echo "$as_val"'`
10253 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10254$as_echo "$ac_res" >&6; }
ad6254c5
AK
10255else
10256 # Is the header compilable?
fddafd51
ZK
10257{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10258$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 10259cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10260/* confdefs.h. */
10261_ACEOF
10262cat confdefs.h >>conftest.$ac_ext
10263cat >>conftest.$ac_ext <<_ACEOF
10264/* end confdefs.h. */
10265$ac_includes_default
10266#include <$ac_header>
10267_ACEOF
10268rm -f conftest.$ac_objext
7a197a62
AK
10269if { (ac_try="$ac_compile"
10270case "(($ac_try" in
10271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10272 *) ac_try_echo=$ac_try;;
10273esac
fddafd51
ZK
10274eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10275$as_echo "$ac_try_echo") >&5
7a197a62 10276 (eval "$ac_compile") 2>conftest.er1
ad6254c5 10277 ac_status=$?
8a2fc586
AK
10278 grep -v '^ *+' conftest.er1 >conftest.err
10279 rm -f conftest.er1
10280 cat conftest.err >&5
fddafd51 10281 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10282 (exit $ac_status); } && {
10283 test -z "$ac_c_werror_flag" ||
10284 test ! -s conftest.err
10285 } && test -s conftest.$ac_objext; then
ad6254c5
AK
10286 ac_header_compiler=yes
10287else
fddafd51 10288 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10289sed 's/^/| /' conftest.$ac_ext >&5
10290
7a197a62 10291 ac_header_compiler=no
ad6254c5 10292fi
7a197a62
AK
10293
10294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fddafd51
ZK
10295{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10296$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
10297
10298# Is the header present?
fddafd51
ZK
10299{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10300$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 10301cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10302/* confdefs.h. */
10303_ACEOF
10304cat confdefs.h >>conftest.$ac_ext
10305cat >>conftest.$ac_ext <<_ACEOF
10306/* end confdefs.h. */
10307#include <$ac_header>
10308_ACEOF
7a197a62
AK
10309if { (ac_try="$ac_cpp conftest.$ac_ext"
10310case "(($ac_try" in
10311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10312 *) ac_try_echo=$ac_try;;
10313esac
fddafd51
ZK
10314eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10315$as_echo "$ac_try_echo") >&5
7a197a62 10316 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
10317 ac_status=$?
10318 grep -v '^ *+' conftest.er1 >conftest.err
10319 rm -f conftest.er1
10320 cat conftest.err >&5
fddafd51 10321 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10322 (exit $ac_status); } >/dev/null && {
10323 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10324 test ! -s conftest.err
10325 }; then
ad6254c5
AK
10326 ac_header_preproc=yes
10327else
fddafd51 10328 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10329sed 's/^/| /' conftest.$ac_ext >&5
10330
10331 ac_header_preproc=no
10332fi
7a197a62 10333
ad6254c5 10334rm -f conftest.err conftest.$ac_ext
fddafd51
ZK
10335{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10336$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
10337
10338# So? What about this header?
8a2fc586
AK
10339case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10340 yes:no: )
fddafd51
ZK
10341 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10342$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10343 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10344$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 10345 ac_header_preproc=yes
ad6254c5 10346 ;;
8a2fc586 10347 no:yes:* )
fddafd51
ZK
10348 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10349$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10350 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10351$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10352 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10353$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10354 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10355$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10356 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10357$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10358 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10359$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 10360
ad6254c5
AK
10361 ;;
10362esac
fddafd51
ZK
10363{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10364$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 10365if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
fddafd51 10366 $as_echo_n "(cached) " >&6
ad6254c5 10367else
8a2fc586 10368 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 10369fi
fddafd51
ZK
10370ac_res=`eval 'as_val=${'$as_ac_Header'}
10371 $as_echo "$as_val"'`
10372 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10373$as_echo "$ac_res" >&6; }
ad6254c5
AK
10374
10375fi
fddafd51
ZK
10376if test `eval 'as_val=${'$as_ac_Header'}
10377 $as_echo "$as_val"'` = yes; then
ad6254c5 10378 cat >>confdefs.h <<_ACEOF
fddafd51 10379#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
10380_ACEOF
10381
10382else
fddafd51
ZK
10383 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
10384$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5
AK
10385 { (exit 1); exit 1; }; }
10386fi
10387
10388done
10389
10390fi
10391
5c7fc7c4 10392if test x$CLVMD != xnone; then
ad6254c5
AK
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403for 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
10404do
fddafd51 10405as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 10406if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
fddafd51
ZK
10407 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10408$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 10409if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
fddafd51 10410 $as_echo_n "(cached) " >&6
ad6254c5 10411fi
fddafd51
ZK
10412ac_res=`eval 'as_val=${'$as_ac_Header'}
10413 $as_echo "$as_val"'`
10414 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10415$as_echo "$ac_res" >&6; }
ad6254c5
AK
10416else
10417 # Is the header compilable?
fddafd51
ZK
10418{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10419$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 10420cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10421/* confdefs.h. */
10422_ACEOF
10423cat confdefs.h >>conftest.$ac_ext
10424cat >>conftest.$ac_ext <<_ACEOF
10425/* end confdefs.h. */
10426$ac_includes_default
10427#include <$ac_header>
10428_ACEOF
10429rm -f conftest.$ac_objext
7a197a62
AK
10430if { (ac_try="$ac_compile"
10431case "(($ac_try" in
10432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10433 *) ac_try_echo=$ac_try;;
10434esac
fddafd51
ZK
10435eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10436$as_echo "$ac_try_echo") >&5
7a197a62 10437 (eval "$ac_compile") 2>conftest.er1
ad6254c5 10438 ac_status=$?
8a2fc586
AK
10439 grep -v '^ *+' conftest.er1 >conftest.err
10440 rm -f conftest.er1
10441 cat conftest.err >&5
fddafd51 10442 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10443 (exit $ac_status); } && {
10444 test -z "$ac_c_werror_flag" ||
10445 test ! -s conftest.err
10446 } && test -s conftest.$ac_objext; then
ad6254c5
AK
10447 ac_header_compiler=yes
10448else
fddafd51 10449 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10450sed 's/^/| /' conftest.$ac_ext >&5
10451
7a197a62 10452 ac_header_compiler=no
ad6254c5 10453fi
7a197a62
AK
10454
10455rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fddafd51
ZK
10456{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10457$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
10458
10459# Is the header present?
fddafd51
ZK
10460{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10461$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 10462cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10463/* confdefs.h. */
10464_ACEOF
10465cat confdefs.h >>conftest.$ac_ext
10466cat >>conftest.$ac_ext <<_ACEOF
10467/* end confdefs.h. */
10468#include <$ac_header>
10469_ACEOF
7a197a62
AK
10470if { (ac_try="$ac_cpp conftest.$ac_ext"
10471case "(($ac_try" in
10472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10473 *) ac_try_echo=$ac_try;;
10474esac
fddafd51
ZK
10475eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10476$as_echo "$ac_try_echo") >&5
7a197a62 10477 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
10478 ac_status=$?
10479 grep -v '^ *+' conftest.er1 >conftest.err
10480 rm -f conftest.er1
10481 cat conftest.err >&5
fddafd51 10482 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10483 (exit $ac_status); } >/dev/null && {
10484 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10485 test ! -s conftest.err
10486 }; then
ad6254c5
AK
10487 ac_header_preproc=yes
10488else
fddafd51 10489 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10490sed 's/^/| /' conftest.$ac_ext >&5
10491
10492 ac_header_preproc=no
10493fi
7a197a62 10494
ad6254c5 10495rm -f conftest.err conftest.$ac_ext
fddafd51
ZK
10496{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10497$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
10498
10499# So? What about this header?
8a2fc586
AK
10500case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10501 yes:no: )
fddafd51
ZK
10502 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10503$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10504 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10505$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 10506 ac_header_preproc=yes
ad6254c5 10507 ;;
8a2fc586 10508 no:yes:* )
fddafd51
ZK
10509 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10510$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10511 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10512$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10513 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10514$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10515 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10516$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10517 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10518$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10519 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10520$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 10521
ad6254c5
AK
10522 ;;
10523esac
fddafd51
ZK
10524{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10525$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 10526if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
fddafd51 10527 $as_echo_n "(cached) " >&6
ad6254c5 10528else
8a2fc586 10529 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 10530fi
fddafd51
ZK
10531ac_res=`eval 'as_val=${'$as_ac_Header'}
10532 $as_echo "$as_val"'`
10533 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10534$as_echo "$ac_res" >&6; }
ad6254c5
AK
10535
10536fi
fddafd51
ZK
10537if test `eval 'as_val=${'$as_ac_Header'}
10538 $as_echo "$as_val"'` = yes; then
ad6254c5 10539 cat >>confdefs.h <<_ACEOF
fddafd51 10540#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
10541_ACEOF
10542
10543else
fddafd51
ZK
10544 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
10545$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 10546 { (exit 1); exit 1; }; }
795ca3e5
AK
10547fi
10548
ad6254c5
AK
10549done
10550
10551
795ca3e5 10552
8106cdd5 10553
ad6254c5
AK
10554
10555
10556for ac_func in dup2 getmntent memmove select socket
10557do
fddafd51
ZK
10558as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10559{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10560$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 10561if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
fddafd51 10562 $as_echo_n "(cached) " >&6
795ca3e5 10563else
ad6254c5 10564 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10565/* confdefs.h. */
10566_ACEOF
10567cat confdefs.h >>conftest.$ac_ext
10568cat >>conftest.$ac_ext <<_ACEOF
10569/* end confdefs.h. */
8a2fc586
AK
10570/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10571 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10572#define $ac_func innocuous_$ac_func
10573
795ca3e5 10574/* System header to define __stub macros and hopefully few prototypes,
ad6254c5
AK
10575 which can conflict with char $ac_func (); below.
10576 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10577 <limits.h> exists even on freestanding compilers. */
8a2fc586 10578
ad6254c5
AK
10579#ifdef __STDC__
10580# include <limits.h>
10581#else
10582# include <assert.h>
10583#endif
8a2fc586
AK
10584
10585#undef $ac_func
10586
7a197a62
AK
10587/* Override any GCC internal prototype to avoid an error.
10588 Use char because int might match the return type of a GCC
10589 builtin and then its argument prototype would still apply. */
ad6254c5
AK
10590#ifdef __cplusplus
10591extern "C"
ad6254c5 10592#endif
ad6254c5 10593char $ac_func ();
795ca3e5
AK
10594/* The GNU C library defines this for functions which it implements
10595 to always fail with ENOSYS. Some functions are actually named
10596 something starting with __ and the normal name is an alias. */
7a197a62 10597#if defined __stub_$ac_func || defined __stub___$ac_func
795ca3e5 10598choke me
795ca3e5
AK
10599#endif
10600
ad6254c5
AK
10601int
10602main ()
10603{
7a197a62 10604return $ac_func ();
ad6254c5
AK
10605 ;
10606 return 0;
10607}
10608_ACEOF
10609rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
10610if { (ac_try="$ac_link"
10611case "(($ac_try" in
10612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10613 *) ac_try_echo=$ac_try;;
10614esac
fddafd51
ZK
10615eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10616$as_echo "$ac_try_echo") >&5
7a197a62 10617 (eval "$ac_link") 2>conftest.er1
ad6254c5 10618 ac_status=$?
8a2fc586
AK
10619 grep -v '^ *+' conftest.er1 >conftest.err
10620 rm -f conftest.er1
10621 cat conftest.err >&5
fddafd51 10622 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10623 (exit $ac_status); } && {
10624 test -z "$ac_c_werror_flag" ||
10625 test ! -s conftest.err
fddafd51
ZK
10626 } && test -s conftest$ac_exeext && {
10627 test "$cross_compiling" = yes ||
10628 $as_test_x conftest$ac_exeext
10629 }; then
ad6254c5 10630 eval "$as_ac_var=yes"
795ca3e5 10631else
fddafd51 10632 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10633sed 's/^/| /' conftest.$ac_ext >&5
10634
7a197a62 10635 eval "$as_ac_var=no"
80992638 10636fi
7a197a62 10637
fddafd51 10638rm -rf conftest.dSYM
25fbec5b 10639rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 10640 conftest$ac_exeext conftest.$ac_ext
795ca3e5 10641fi
fddafd51
ZK
10642ac_res=`eval 'as_val=${'$as_ac_var'}
10643 $as_echo "$as_val"'`
10644 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10645$as_echo "$ac_res" >&6; }
10646if test `eval 'as_val=${'$as_ac_var'}
10647 $as_echo "$as_val"'` = yes; then
ad6254c5 10648 cat >>confdefs.h <<_ACEOF
fddafd51 10649#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5 10650_ACEOF
80992638
AK
10651
10652else
fddafd51
ZK
10653 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
10654$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 10655 { (exit 1); exit 1; }; }
8106cdd5 10656fi
ad6254c5 10657done
795ca3e5 10658
25fbec5b
AK
10659 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
10660# -lseq on Dynix/PTX, -lgen on Unixware.
fddafd51
ZK
10661{ $as_echo "$as_me:$LINENO: checking for library containing getmntent" >&5
10662$as_echo_n "checking for library containing getmntent... " >&6; }
25fbec5b 10663if test "${ac_cv_search_getmntent+set}" = set; then
fddafd51 10664 $as_echo_n "(cached) " >&6
25fbec5b
AK
10665else
10666 ac_func_search_save_LIBS=$LIBS
10667cat >conftest.$ac_ext <<_ACEOF
10668/* confdefs.h. */
10669_ACEOF
10670cat confdefs.h >>conftest.$ac_ext
10671cat >>conftest.$ac_ext <<_ACEOF
10672/* end confdefs.h. */
80992638 10673
7a197a62
AK
10674/* Override any GCC internal prototype to avoid an error.
10675 Use char because int might match the return type of a GCC
ad6254c5 10676 builtin and then its argument prototype would still apply. */
ad6254c5
AK
10677#ifdef __cplusplus
10678extern "C"
10679#endif
25fbec5b 10680char getmntent ();
ad6254c5
AK
10681int
10682main ()
10683{
25fbec5b 10684return getmntent ();
ad6254c5
AK
10685 ;
10686 return 0;
10687}
10688_ACEOF
25fbec5b
AK
10689for ac_lib in '' sun seq gen; do
10690 if test -z "$ac_lib"; then
10691 ac_res="none required"
10692 else
10693 ac_res=-l$ac_lib
10694 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10695 fi
10696 rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
10697if { (ac_try="$ac_link"
10698case "(($ac_try" in
10699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10700 *) ac_try_echo=$ac_try;;
10701esac
fddafd51
ZK
10702eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10703$as_echo "$ac_try_echo") >&5
7a197a62 10704 (eval "$ac_link") 2>conftest.er1
ad6254c5 10705 ac_status=$?
8a2fc586
AK
10706 grep -v '^ *+' conftest.er1 >conftest.err
10707 rm -f conftest.er1
10708 cat conftest.err >&5
fddafd51 10709 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10710 (exit $ac_status); } && {
10711 test -z "$ac_c_werror_flag" ||
10712 test ! -s conftest.err
fddafd51
ZK
10713 } && test -s conftest$ac_exeext && {
10714 test "$cross_compiling" = yes ||
10715 $as_test_x conftest$ac_exeext
10716 }; then
25fbec5b 10717 ac_cv_search_getmntent=$ac_res
80992638 10718else
fddafd51 10719 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10720sed 's/^/| /' conftest.$ac_ext >&5
10721
25fbec5b 10722
795ca3e5
AK
10723fi
10724
fddafd51 10725rm -rf conftest.dSYM
25fbec5b
AK
10726rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10727 conftest$ac_exeext
10728 if test "${ac_cv_search_getmntent+set}" = set; then
10729 break
795ca3e5 10730fi
25fbec5b
AK
10731done
10732if test "${ac_cv_search_getmntent+set}" = set; then
10733 :
10734else
10735 ac_cv_search_getmntent=no
10736fi
10737rm conftest.$ac_ext
10738LIBS=$ac_func_search_save_LIBS
10739fi
fddafd51
ZK
10740{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
10741$as_echo "$ac_cv_search_getmntent" >&6; }
25fbec5b
AK
10742ac_res=$ac_cv_search_getmntent
10743if test "$ac_res" != no; then
10744 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10745 ac_cv_func_getmntent=yes
10746
10747cat >>confdefs.h <<\_ACEOF
d0191583 10748#define HAVE_GETMNTENT 1
ad6254c5 10749_ACEOF
795ca3e5 10750
25fbec5b
AK
10751else
10752 ac_cv_func_getmntent=no
795ca3e5 10753fi
795ca3e5
AK
10754
10755
ad6254c5
AK
10756# AC_FUNC_REALLOC
10757
10758
10759for ac_header in sys/select.h sys/socket.h
10760do
fddafd51 10761as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 10762if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
fddafd51
ZK
10763 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10764$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 10765if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
fddafd51 10766 $as_echo_n "(cached) " >&6
ad6254c5 10767fi
fddafd51
ZK
10768ac_res=`eval 'as_val=${'$as_ac_Header'}
10769 $as_echo "$as_val"'`
10770 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10771$as_echo "$ac_res" >&6; }
795ca3e5 10772else
ad6254c5 10773 # Is the header compilable?
fddafd51
ZK
10774{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10775$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 10776cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10777/* confdefs.h. */
10778_ACEOF
10779cat confdefs.h >>conftest.$ac_ext
10780cat >>conftest.$ac_ext <<_ACEOF
10781/* end confdefs.h. */
10782$ac_includes_default
10783#include <$ac_header>
10784_ACEOF
10785rm -f conftest.$ac_objext
7a197a62
AK
10786if { (ac_try="$ac_compile"
10787case "(($ac_try" in
10788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10789 *) ac_try_echo=$ac_try;;
10790esac
fddafd51
ZK
10791eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10792$as_echo "$ac_try_echo") >&5
7a197a62 10793 (eval "$ac_compile") 2>conftest.er1
ad6254c5 10794 ac_status=$?
8a2fc586
AK
10795 grep -v '^ *+' conftest.er1 >conftest.err
10796 rm -f conftest.er1
10797 cat conftest.err >&5
fddafd51 10798 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10799 (exit $ac_status); } && {
10800 test -z "$ac_c_werror_flag" ||
10801 test ! -s conftest.err
10802 } && test -s conftest.$ac_objext; then
ad6254c5 10803 ac_header_compiler=yes
80992638 10804else
fddafd51 10805 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10806sed 's/^/| /' conftest.$ac_ext >&5
10807
7a197a62 10808 ac_header_compiler=no
ad6254c5 10809fi
7a197a62
AK
10810
10811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fddafd51
ZK
10812{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10813$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
10814
10815# Is the header present?
fddafd51
ZK
10816{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10817$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 10818cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10819/* confdefs.h. */
10820_ACEOF
10821cat confdefs.h >>conftest.$ac_ext
10822cat >>conftest.$ac_ext <<_ACEOF
10823/* end confdefs.h. */
10824#include <$ac_header>
10825_ACEOF
7a197a62
AK
10826if { (ac_try="$ac_cpp conftest.$ac_ext"
10827case "(($ac_try" in
10828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10829 *) ac_try_echo=$ac_try;;
10830esac
fddafd51
ZK
10831eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10832$as_echo "$ac_try_echo") >&5
7a197a62 10833 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
10834 ac_status=$?
10835 grep -v '^ *+' conftest.er1 >conftest.err
10836 rm -f conftest.er1
10837 cat conftest.err >&5
fddafd51 10838 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10839 (exit $ac_status); } >/dev/null && {
10840 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10841 test ! -s conftest.err
10842 }; then
ad6254c5
AK
10843 ac_header_preproc=yes
10844else
fddafd51 10845 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10846sed 's/^/| /' conftest.$ac_ext >&5
10847
10848 ac_header_preproc=no
10849fi
7a197a62 10850
ad6254c5 10851rm -f conftest.err conftest.$ac_ext
fddafd51
ZK
10852{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10853$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
10854
10855# So? What about this header?
8a2fc586
AK
10856case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10857 yes:no: )
fddafd51
ZK
10858 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10859$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10860 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10861$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 10862 ac_header_preproc=yes
ad6254c5 10863 ;;
8a2fc586 10864 no:yes:* )
fddafd51
ZK
10865 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10866$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10867 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10868$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10869 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10870$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10871 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10872$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10873 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10874$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10875 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10876$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 10877
ad6254c5
AK
10878 ;;
10879esac
fddafd51
ZK
10880{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10881$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 10882if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
fddafd51 10883 $as_echo_n "(cached) " >&6
ad6254c5 10884else
8a2fc586 10885 eval "$as_ac_Header=\$ac_header_preproc"
8106cdd5 10886fi
fddafd51
ZK
10887ac_res=`eval 'as_val=${'$as_ac_Header'}
10888 $as_echo "$as_val"'`
10889 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10890$as_echo "$ac_res" >&6; }
8106cdd5 10891
795ca3e5 10892fi
fddafd51
ZK
10893if test `eval 'as_val=${'$as_ac_Header'}
10894 $as_echo "$as_val"'` = yes; then
ad6254c5 10895 cat >>confdefs.h <<_ACEOF
fddafd51 10896#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
10897_ACEOF
10898
795ca3e5
AK
10899fi
10900
ad6254c5
AK
10901done
10902
fddafd51
ZK
10903{ $as_echo "$as_me:$LINENO: checking types of arguments for select" >&5
10904$as_echo_n "checking types of arguments for select... " >&6; }
ad6254c5 10905if test "${ac_cv_func_select_args+set}" = set; then
fddafd51 10906 $as_echo_n "(cached) " >&6
26e7f2e0 10907else
ad6254c5 10908 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
7a197a62 10909 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
ad6254c5
AK
10910 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
10911 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10912/* confdefs.h. */
10913_ACEOF
10914cat confdefs.h >>conftest.$ac_ext
10915cat >>conftest.$ac_ext <<_ACEOF
10916/* end confdefs.h. */
10917$ac_includes_default
25fbec5b 10918#ifdef HAVE_SYS_SELECT_H
ad6254c5
AK
10919# include <sys/select.h>
10920#endif
25fbec5b 10921#ifdef HAVE_SYS_SOCKET_H
ad6254c5
AK
10922# include <sys/socket.h>
10923#endif
10924
10925int
10926main ()
10927{
10928extern int select ($ac_arg1,
8a2fc586
AK
10929 $ac_arg234, $ac_arg234, $ac_arg234,
10930 $ac_arg5);
ad6254c5
AK
10931 ;
10932 return 0;
10933}
10934_ACEOF
10935rm -f conftest.$ac_objext
7a197a62
AK
10936if { (ac_try="$ac_compile"
10937case "(($ac_try" in
10938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10939 *) ac_try_echo=$ac_try;;
10940esac
fddafd51
ZK
10941eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10942$as_echo "$ac_try_echo") >&5
7a197a62 10943 (eval "$ac_compile") 2>conftest.er1
ad6254c5 10944 ac_status=$?
8a2fc586
AK
10945 grep -v '^ *+' conftest.er1 >conftest.err
10946 rm -f conftest.er1
10947 cat conftest.err >&5
fddafd51 10948 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10949 (exit $ac_status); } && {
10950 test -z "$ac_c_werror_flag" ||
10951 test ! -s conftest.err
10952 } && test -s conftest.$ac_objext; then
ad6254c5
AK
10953 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
10954else
fddafd51 10955 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10956sed 's/^/| /' conftest.$ac_ext >&5
10957
7a197a62 10958
ad6254c5 10959fi
7a197a62
AK
10960
10961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
10962 done
10963 done
10964done
10965# Provide a safe default value.
10966: ${ac_cv_func_select_args='int,int *,struct timeval *'}
10967
26e7f2e0 10968fi
fddafd51
ZK
10969{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
10970$as_echo "$ac_cv_func_select_args" >&6; }
ad6254c5
AK
10971ac_save_IFS=$IFS; IFS=','
10972set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
10973IFS=$ac_save_IFS
10974shift
10975
10976cat >>confdefs.h <<_ACEOF
10977#define SELECT_TYPE_ARG1 $1
10978_ACEOF
10979
10980
10981cat >>confdefs.h <<_ACEOF
10982#define SELECT_TYPE_ARG234 ($2)
10983_ACEOF
10984
10985
10986cat >>confdefs.h <<_ACEOF
10987#define SELECT_TYPE_ARG5 ($3)
10988_ACEOF
10989
80992638 10990rm -f conftest*
80992638 10991
8106cdd5 10992fi
ad6254c5 10993
ad6254c5
AK
10994if test x$CLUSTER != xnone; then
10995
10996
10997for ac_header in sys/socket.h sys/un.h
b896caa1 10998do
fddafd51 10999as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 11000if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
fddafd51
ZK
11001 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11002$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 11003if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
fddafd51 11004 $as_echo_n "(cached) " >&6
ad6254c5 11005fi
fddafd51
ZK
11006ac_res=`eval 'as_val=${'$as_ac_Header'}
11007 $as_echo "$as_val"'`
11008 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11009$as_echo "$ac_res" >&6; }
ad6254c5
AK
11010else
11011 # Is the header compilable?
fddafd51
ZK
11012{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11013$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 11014cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11015/* confdefs.h. */
11016_ACEOF
11017cat confdefs.h >>conftest.$ac_ext
11018cat >>conftest.$ac_ext <<_ACEOF
11019/* end confdefs.h. */
11020$ac_includes_default
11021#include <$ac_header>
11022_ACEOF
11023rm -f conftest.$ac_objext
7a197a62
AK
11024if { (ac_try="$ac_compile"
11025case "(($ac_try" in
11026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11027 *) ac_try_echo=$ac_try;;
11028esac
fddafd51
ZK
11029eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11030$as_echo "$ac_try_echo") >&5
7a197a62 11031 (eval "$ac_compile") 2>conftest.er1
ad6254c5 11032 ac_status=$?
8a2fc586
AK
11033 grep -v '^ *+' conftest.er1 >conftest.err
11034 rm -f conftest.er1
11035 cat conftest.err >&5
fddafd51 11036 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11037 (exit $ac_status); } && {
11038 test -z "$ac_c_werror_flag" ||
11039 test ! -s conftest.err
11040 } && test -s conftest.$ac_objext; then
ad6254c5
AK
11041 ac_header_compiler=yes
11042else
fddafd51 11043 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
11044sed 's/^/| /' conftest.$ac_ext >&5
11045
7a197a62 11046 ac_header_compiler=no
ad6254c5 11047fi
7a197a62
AK
11048
11049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fddafd51
ZK
11050{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11051$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
11052
11053# Is the header present?
fddafd51
ZK
11054{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11055$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 11056cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11057/* confdefs.h. */
11058_ACEOF
11059cat confdefs.h >>conftest.$ac_ext
11060cat >>conftest.$ac_ext <<_ACEOF
11061/* end confdefs.h. */
11062#include <$ac_header>
11063_ACEOF
7a197a62
AK
11064if { (ac_try="$ac_cpp conftest.$ac_ext"
11065case "(($ac_try" in
11066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11067 *) ac_try_echo=$ac_try;;
11068esac
fddafd51
ZK
11069eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11070$as_echo "$ac_try_echo") >&5
7a197a62 11071 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
11072 ac_status=$?
11073 grep -v '^ *+' conftest.er1 >conftest.err
11074 rm -f conftest.er1
11075 cat conftest.err >&5
fddafd51 11076 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11077 (exit $ac_status); } >/dev/null && {
11078 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11079 test ! -s conftest.err
11080 }; then
ad6254c5
AK
11081 ac_header_preproc=yes
11082else
fddafd51 11083 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
11084sed 's/^/| /' conftest.$ac_ext >&5
11085
11086 ac_header_preproc=no
11087fi
7a197a62 11088
ad6254c5 11089rm -f conftest.err conftest.$ac_ext
fddafd51
ZK
11090{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11091$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
11092
11093# So? What about this header?
8a2fc586
AK
11094case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11095 yes:no: )
fddafd51
ZK
11096 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11097$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11098 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11099$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 11100 ac_header_preproc=yes
ad6254c5 11101 ;;
8a2fc586 11102 no:yes:* )
fddafd51
ZK
11103 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11104$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11105 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11106$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11107 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11108$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11109 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11110$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11111 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11112$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11113 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11114$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 11115
ad6254c5
AK
11116 ;;
11117esac
fddafd51
ZK
11118{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11119$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 11120if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
fddafd51 11121 $as_echo_n "(cached) " >&6
ad6254c5 11122else
8a2fc586 11123 eval "$as_ac_Header=\$ac_header_preproc"
b896caa1 11124fi
fddafd51
ZK
11125ac_res=`eval 'as_val=${'$as_ac_Header'}
11126 $as_echo "$as_val"'`
11127 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11128$as_echo "$ac_res" >&6; }
ad6254c5
AK
11129
11130fi
fddafd51
ZK
11131if test `eval 'as_val=${'$as_ac_Header'}
11132 $as_echo "$as_val"'` = yes; then
ad6254c5 11133 cat >>confdefs.h <<_ACEOF
fddafd51 11134#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
11135_ACEOF
11136
80992638 11137else
fddafd51
ZK
11138 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
11139$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 11140 { (exit 1); exit 1; }; }
b896caa1 11141fi
ad6254c5 11142
b896caa1
AK
11143done
11144
11145
ad6254c5
AK
11146for ac_func in socket
11147do
fddafd51
ZK
11148as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11149{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11150$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 11151if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
fddafd51 11152 $as_echo_n "(cached) " >&6
795ca3e5 11153else
ad6254c5 11154 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11155/* confdefs.h. */
11156_ACEOF
11157cat confdefs.h >>conftest.$ac_ext
11158cat >>conftest.$ac_ext <<_ACEOF
11159/* end confdefs.h. */
8a2fc586
AK
11160/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11161 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11162#define $ac_func innocuous_$ac_func
11163
ad6254c5
AK
11164/* System header to define __stub macros and hopefully few prototypes,
11165 which can conflict with char $ac_func (); below.
11166 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11167 <limits.h> exists even on freestanding compilers. */
8a2fc586 11168
ad6254c5
AK
11169#ifdef __STDC__
11170# include <limits.h>
11171#else
11172# include <assert.h>
11173#endif
8a2fc586
AK
11174
11175#undef $ac_func
11176
7a197a62
AK
11177/* Override any GCC internal prototype to avoid an error.
11178 Use char because int might match the return type of a GCC
11179 builtin and then its argument prototype would still apply. */
ad6254c5
AK
11180#ifdef __cplusplus
11181extern "C"
ad6254c5 11182#endif
ad6254c5
AK
11183char $ac_func ();
11184/* The GNU C library defines this for functions which it implements
11185 to always fail with ENOSYS. Some functions are actually named
11186 something starting with __ and the normal name is an alias. */
7a197a62 11187#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 11188choke me
ad6254c5
AK
11189#endif
11190
11191int
11192main ()
11193{
7a197a62 11194return $ac_func ();
ad6254c5
AK
11195 ;
11196 return 0;
11197}
11198_ACEOF
11199rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
11200if { (ac_try="$ac_link"
11201case "(($ac_try" in
11202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11203 *) ac_try_echo=$ac_try;;
11204esac
fddafd51
ZK
11205eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11206$as_echo "$ac_try_echo") >&5
7a197a62 11207 (eval "$ac_link") 2>conftest.er1
ad6254c5 11208 ac_status=$?
8a2fc586
AK
11209 grep -v '^ *+' conftest.er1 >conftest.err
11210 rm -f conftest.er1
11211 cat conftest.err >&5
fddafd51 11212 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11213 (exit $ac_status); } && {
11214 test -z "$ac_c_werror_flag" ||
11215 test ! -s conftest.err
fddafd51
ZK
11216 } && test -s conftest$ac_exeext && {
11217 test "$cross_compiling" = yes ||
11218 $as_test_x conftest$ac_exeext
11219 }; then
ad6254c5
AK
11220 eval "$as_ac_var=yes"
11221else
fddafd51 11222 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
11223sed 's/^/| /' conftest.$ac_ext >&5
11224
7a197a62 11225 eval "$as_ac_var=no"
ad6254c5 11226fi
7a197a62 11227
fddafd51 11228rm -rf conftest.dSYM
25fbec5b 11229rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 11230 conftest$ac_exeext conftest.$ac_ext
ad6254c5 11231fi
fddafd51
ZK
11232ac_res=`eval 'as_val=${'$as_ac_var'}
11233 $as_echo "$as_val"'`
11234 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11235$as_echo "$ac_res" >&6; }
11236if test `eval 'as_val=${'$as_ac_var'}
11237 $as_echo "$as_val"'` = yes; then
ad6254c5 11238 cat >>confdefs.h <<_ACEOF
fddafd51 11239#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
11240_ACEOF
11241
11242else
fddafd51
ZK
11243 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
11244$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5
AK
11245 { (exit 1); exit 1; }; }
11246fi
11247done
11248
11249fi
11250
11251if test x$HAVE_LIBDL = xyes; then
11252
11253for ac_header in dlfcn.h
11254do
fddafd51 11255as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 11256if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
fddafd51
ZK
11257 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11258$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 11259if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
fddafd51 11260 $as_echo_n "(cached) " >&6
ad6254c5 11261fi
fddafd51
ZK
11262ac_res=`eval 'as_val=${'$as_ac_Header'}
11263 $as_echo "$as_val"'`
11264 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11265$as_echo "$ac_res" >&6; }
ad6254c5
AK
11266else
11267 # Is the header compilable?
fddafd51
ZK
11268{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11269$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 11270cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11271/* confdefs.h. */
11272_ACEOF
11273cat confdefs.h >>conftest.$ac_ext
11274cat >>conftest.$ac_ext <<_ACEOF
11275/* end confdefs.h. */
11276$ac_includes_default
11277#include <$ac_header>
11278_ACEOF
11279rm -f conftest.$ac_objext
7a197a62
AK
11280if { (ac_try="$ac_compile"
11281case "(($ac_try" in
11282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11283 *) ac_try_echo=$ac_try;;
11284esac
fddafd51
ZK
11285eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11286$as_echo "$ac_try_echo") >&5
7a197a62 11287 (eval "$ac_compile") 2>conftest.er1
ad6254c5 11288 ac_status=$?
8a2fc586
AK
11289 grep -v '^ *+' conftest.er1 >conftest.err
11290 rm -f conftest.er1
11291 cat conftest.err >&5
fddafd51 11292 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11293 (exit $ac_status); } && {
11294 test -z "$ac_c_werror_flag" ||
11295 test ! -s conftest.err
11296 } && test -s conftest.$ac_objext; then
ad6254c5
AK
11297 ac_header_compiler=yes
11298else
fddafd51 11299 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
11300sed 's/^/| /' conftest.$ac_ext >&5
11301
7a197a62 11302 ac_header_compiler=no
ad6254c5 11303fi
7a197a62
AK
11304
11305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fddafd51
ZK
11306{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11307$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
11308
11309# Is the header present?
fddafd51
ZK
11310{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11311$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 11312cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11313/* confdefs.h. */
11314_ACEOF
11315cat confdefs.h >>conftest.$ac_ext
11316cat >>conftest.$ac_ext <<_ACEOF
11317/* end confdefs.h. */
11318#include <$ac_header>
11319_ACEOF
7a197a62
AK
11320if { (ac_try="$ac_cpp conftest.$ac_ext"
11321case "(($ac_try" in
11322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11323 *) ac_try_echo=$ac_try;;
11324esac
fddafd51
ZK
11325eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11326$as_echo "$ac_try_echo") >&5
7a197a62 11327 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
11328 ac_status=$?
11329 grep -v '^ *+' conftest.er1 >conftest.err
11330 rm -f conftest.er1
11331 cat conftest.err >&5
fddafd51 11332 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11333 (exit $ac_status); } >/dev/null && {
11334 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11335 test ! -s conftest.err
11336 }; then
ad6254c5
AK
11337 ac_header_preproc=yes
11338else
fddafd51 11339 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
11340sed 's/^/| /' conftest.$ac_ext >&5
11341
11342 ac_header_preproc=no
11343fi
7a197a62 11344
ad6254c5 11345rm -f conftest.err conftest.$ac_ext
fddafd51
ZK
11346{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11347$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
11348
11349# So? What about this header?
8a2fc586
AK
11350case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11351 yes:no: )
fddafd51
ZK
11352 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11353$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11354 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11355$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 11356 ac_header_preproc=yes
ad6254c5 11357 ;;
8a2fc586 11358 no:yes:* )
fddafd51
ZK
11359 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11360$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11361 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11362$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11363 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11364$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11365 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11366$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11367 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11368$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11369 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11370$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 11371
ad6254c5
AK
11372 ;;
11373esac
fddafd51
ZK
11374{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11375$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 11376if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
fddafd51 11377 $as_echo_n "(cached) " >&6
ad6254c5 11378else
8a2fc586 11379 eval "$as_ac_Header=\$ac_header_preproc"
795ca3e5 11380fi
fddafd51
ZK
11381ac_res=`eval 'as_val=${'$as_ac_Header'}
11382 $as_echo "$as_val"'`
11383 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11384$as_echo "$ac_res" >&6; }
80992638 11385
8106cdd5 11386fi
fddafd51
ZK
11387if test `eval 'as_val=${'$as_ac_Header'}
11388 $as_echo "$as_val"'` = yes; then
ad6254c5 11389 cat >>confdefs.h <<_ACEOF
fddafd51 11390#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 11391_ACEOF
795ca3e5
AK
11392
11393else
fddafd51
ZK
11394 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
11395$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 11396 { (exit 1); exit 1; }; }
795ca3e5
AK
11397fi
11398
ad6254c5 11399done
80992638 11400
ad6254c5 11401fi
80992638 11402
ad6254c5 11403if test x$INTL = xyes; then
83912faa 11404
ad6254c5
AK
11405for ac_header in libintl.h
11406do
fddafd51 11407as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 11408if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
fddafd51
ZK
11409 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11410$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 11411if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
fddafd51 11412 $as_echo_n "(cached) " >&6
ad6254c5 11413fi
fddafd51
ZK
11414ac_res=`eval 'as_val=${'$as_ac_Header'}
11415 $as_echo "$as_val"'`
11416 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11417$as_echo "$ac_res" >&6; }
83912faa 11418else
ad6254c5 11419 # Is the header compilable?
fddafd51
ZK
11420{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11421$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 11422cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11423/* confdefs.h. */
11424_ACEOF
11425cat confdefs.h >>conftest.$ac_ext
11426cat >>conftest.$ac_ext <<_ACEOF
11427/* end confdefs.h. */
11428$ac_includes_default
11429#include <$ac_header>
11430_ACEOF
11431rm -f conftest.$ac_objext
7a197a62
AK
11432if { (ac_try="$ac_compile"
11433case "(($ac_try" in
11434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11435 *) ac_try_echo=$ac_try;;
11436esac
fddafd51
ZK
11437eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11438$as_echo "$ac_try_echo") >&5
7a197a62 11439 (eval "$ac_compile") 2>conftest.er1
ad6254c5 11440 ac_status=$?
8a2fc586
AK
11441 grep -v '^ *+' conftest.er1 >conftest.err
11442 rm -f conftest.er1
11443 cat conftest.err >&5
fddafd51 11444 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11445 (exit $ac_status); } && {
11446 test -z "$ac_c_werror_flag" ||
11447 test ! -s conftest.err
11448 } && test -s conftest.$ac_objext; then
ad6254c5
AK
11449 ac_header_compiler=yes
11450else
fddafd51 11451 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
11452sed 's/^/| /' conftest.$ac_ext >&5
11453
7a197a62 11454 ac_header_compiler=no
ad6254c5 11455fi
7a197a62
AK
11456
11457rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fddafd51
ZK
11458{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11459$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
11460
11461# Is the header present?
fddafd51
ZK
11462{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11463$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 11464cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11465/* confdefs.h. */
11466_ACEOF
11467cat confdefs.h >>conftest.$ac_ext
11468cat >>conftest.$ac_ext <<_ACEOF
11469/* end confdefs.h. */
11470#include <$ac_header>
11471_ACEOF
7a197a62
AK
11472if { (ac_try="$ac_cpp conftest.$ac_ext"
11473case "(($ac_try" in
11474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11475 *) ac_try_echo=$ac_try;;
11476esac
fddafd51
ZK
11477eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11478$as_echo "$ac_try_echo") >&5
7a197a62 11479 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
11480 ac_status=$?
11481 grep -v '^ *+' conftest.er1 >conftest.err
11482 rm -f conftest.er1
11483 cat conftest.err >&5
fddafd51 11484 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11485 (exit $ac_status); } >/dev/null && {
11486 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11487 test ! -s conftest.err
11488 }; then
ad6254c5
AK
11489 ac_header_preproc=yes
11490else
fddafd51 11491 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
11492sed 's/^/| /' conftest.$ac_ext >&5
11493
11494 ac_header_preproc=no
11495fi
7a197a62 11496
ad6254c5 11497rm -f conftest.err conftest.$ac_ext
fddafd51
ZK
11498{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11499$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
11500
11501# So? What about this header?
8a2fc586
AK
11502case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11503 yes:no: )
fddafd51
ZK
11504 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11505$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11506 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11507$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 11508 ac_header_preproc=yes
ad6254c5 11509 ;;
8a2fc586 11510 no:yes:* )
fddafd51
ZK
11511 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11512$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11513 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11514$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11515 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11516$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11517 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11518$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11519 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11520$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11521 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11522$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 11523
ad6254c5
AK
11524 ;;
11525esac
fddafd51
ZK
11526{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11527$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 11528if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
fddafd51 11529 $as_echo_n "(cached) " >&6
80992638 11530else
8a2fc586 11531 eval "$as_ac_Header=\$ac_header_preproc"
83912faa 11532fi
fddafd51
ZK
11533ac_res=`eval 'as_val=${'$as_ac_Header'}
11534 $as_echo "$as_val"'`
11535 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11536$as_echo "$ac_res" >&6; }
83912faa 11537
69792976 11538fi
fddafd51
ZK
11539if test `eval 'as_val=${'$as_ac_Header'}
11540 $as_echo "$as_val"'` = yes; then
ad6254c5 11541 cat >>confdefs.h <<_ACEOF
fddafd51 11542#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 11543_ACEOF
69792976 11544
69792976 11545else
fddafd51
ZK
11546 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
11547$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 11548 { (exit 1); exit 1; }; }
80992638
AK
11549fi
11550
ad6254c5 11551done
69792976 11552
ad6254c5
AK
11553fi
11554
ad6254c5
AK
11555
11556for ac_header in libdevmapper.h
11557do
fddafd51 11558as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 11559if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
fddafd51
ZK
11560 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11561$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 11562if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
fddafd51 11563 $as_echo_n "(cached) " >&6
ad6254c5 11564fi
fddafd51
ZK
11565ac_res=`eval 'as_val=${'$as_ac_Header'}
11566 $as_echo "$as_val"'`
11567 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11568$as_echo "$ac_res" >&6; }
69792976 11569else
ad6254c5 11570 # Is the header compilable?
fddafd51
ZK
11571{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11572$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 11573cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11574/* confdefs.h. */
11575_ACEOF
11576cat confdefs.h >>conftest.$ac_ext
11577cat >>conftest.$ac_ext <<_ACEOF
11578/* end confdefs.h. */
11579$ac_includes_default
11580#include <$ac_header>
11581_ACEOF
11582rm -f conftest.$ac_objext
7a197a62
AK
11583if { (ac_try="$ac_compile"
11584case "(($ac_try" in
11585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11586 *) ac_try_echo=$ac_try;;
11587esac
fddafd51
ZK
11588eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11589$as_echo "$ac_try_echo") >&5
7a197a62 11590 (eval "$ac_compile") 2>conftest.er1
ad6254c5 11591 ac_status=$?
8a2fc586
AK
11592 grep -v '^ *+' conftest.er1 >conftest.err
11593 rm -f conftest.er1
11594 cat conftest.err >&5
fddafd51 11595 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11596 (exit $ac_status); } && {
11597 test -z "$ac_c_werror_flag" ||
11598 test ! -s conftest.err
11599 } && test -s conftest.$ac_objext; then
ad6254c5
AK
11600 ac_header_compiler=yes
11601else
fddafd51 11602 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
11603sed 's/^/| /' conftest.$ac_ext >&5
11604
7a197a62 11605 ac_header_compiler=no
ad6254c5 11606fi
7a197a62
AK
11607
11608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fddafd51
ZK
11609{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11610$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
11611
11612# Is the header present?
fddafd51
ZK
11613{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11614$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 11615cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11616/* confdefs.h. */
11617_ACEOF
11618cat confdefs.h >>conftest.$ac_ext
11619cat >>conftest.$ac_ext <<_ACEOF
11620/* end confdefs.h. */
11621#include <$ac_header>
11622_ACEOF
7a197a62
AK
11623if { (ac_try="$ac_cpp conftest.$ac_ext"
11624case "(($ac_try" in
11625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11626 *) ac_try_echo=$ac_try;;
11627esac
fddafd51
ZK
11628eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11629$as_echo "$ac_try_echo") >&5
7a197a62 11630 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
11631 ac_status=$?
11632 grep -v '^ *+' conftest.er1 >conftest.err
11633 rm -f conftest.er1
11634 cat conftest.err >&5
fddafd51 11635 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11636 (exit $ac_status); } >/dev/null && {
11637 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11638 test ! -s conftest.err
11639 }; then
ad6254c5
AK
11640 ac_header_preproc=yes
11641else
fddafd51 11642 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
11643sed 's/^/| /' conftest.$ac_ext >&5
11644
11645 ac_header_preproc=no
11646fi
7a197a62 11647
ad6254c5 11648rm -f conftest.err conftest.$ac_ext
fddafd51
ZK
11649{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11650$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
11651
11652# So? What about this header?
8a2fc586
AK
11653case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11654 yes:no: )
fddafd51
ZK
11655 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11656$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11657 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11658$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 11659 ac_header_preproc=yes
ad6254c5 11660 ;;
8a2fc586 11661 no:yes:* )
fddafd51
ZK
11662 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11663$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11664 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11665$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11666 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11667$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11668 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11669$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11670 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11671$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11672 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11673$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 11674
ad6254c5
AK
11675 ;;
11676esac
fddafd51
ZK
11677{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11678$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 11679if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
fddafd51 11680 $as_echo_n "(cached) " >&6
69792976 11681else
8a2fc586 11682 eval "$as_ac_Header=\$ac_header_preproc"
69792976 11683fi
fddafd51
ZK
11684ac_res=`eval 'as_val=${'$as_ac_Header'}
11685 $as_echo "$as_val"'`
11686 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11687$as_echo "$ac_res" >&6; }
69792976 11688
ad6254c5 11689fi
fddafd51
ZK
11690if test `eval 'as_val=${'$as_ac_Header'}
11691 $as_echo "$as_val"'` = yes; then
ad6254c5 11692 cat >>confdefs.h <<_ACEOF
fddafd51 11693#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 11694_ACEOF
69792976 11695
69792976 11696else
fddafd51
ZK
11697 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
11698$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 11699 { (exit 1); exit 1; }; }
83912faa
AK
11700fi
11701
ad6254c5
AK
11702done
11703
4a7f3eb2 11704
ad6254c5
AK
11705if test x$HAVE_SELINUX = xyes; then
11706
11707for ac_header in selinux/selinux.h
11708do
fddafd51 11709as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 11710if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
fddafd51
ZK
11711 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11712$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 11713if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
fddafd51 11714 $as_echo_n "(cached) " >&6
ad6254c5 11715fi
fddafd51
ZK
11716ac_res=`eval 'as_val=${'$as_ac_Header'}
11717 $as_echo "$as_val"'`
11718 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11719$as_echo "$ac_res" >&6; }
4a7f3eb2 11720else
ad6254c5 11721 # Is the header compilable?
fddafd51
ZK
11722{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11723$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 11724cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11725/* confdefs.h. */
11726_ACEOF
11727cat confdefs.h >>conftest.$ac_ext
11728cat >>conftest.$ac_ext <<_ACEOF
11729/* end confdefs.h. */
11730$ac_includes_default
11731#include <$ac_header>
11732_ACEOF
11733rm -f conftest.$ac_objext
7a197a62
AK
11734if { (ac_try="$ac_compile"
11735case "(($ac_try" in
11736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11737 *) ac_try_echo=$ac_try;;
11738esac
fddafd51
ZK
11739eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11740$as_echo "$ac_try_echo") >&5
7a197a62 11741 (eval "$ac_compile") 2>conftest.er1
ad6254c5 11742 ac_status=$?
8a2fc586
AK
11743 grep -v '^ *+' conftest.er1 >conftest.err
11744 rm -f conftest.er1
11745 cat conftest.err >&5
fddafd51 11746 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11747 (exit $ac_status); } && {
11748 test -z "$ac_c_werror_flag" ||
11749 test ! -s conftest.err
11750 } && test -s conftest.$ac_objext; then
ad6254c5
AK
11751 ac_header_compiler=yes
11752else
fddafd51 11753 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
11754sed 's/^/| /' conftest.$ac_ext >&5
11755
7a197a62 11756 ac_header_compiler=no
ad6254c5 11757fi
7a197a62
AK
11758
11759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fddafd51
ZK
11760{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11761$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
11762
11763# Is the header present?
fddafd51
ZK
11764{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11765$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 11766cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11767/* confdefs.h. */
11768_ACEOF
11769cat confdefs.h >>conftest.$ac_ext
11770cat >>conftest.$ac_ext <<_ACEOF
11771/* end confdefs.h. */
11772#include <$ac_header>
11773_ACEOF
7a197a62
AK
11774if { (ac_try="$ac_cpp conftest.$ac_ext"
11775case "(($ac_try" in
11776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11777 *) ac_try_echo=$ac_try;;
11778esac
fddafd51
ZK
11779eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11780$as_echo "$ac_try_echo") >&5
7a197a62 11781 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
11782 ac_status=$?
11783 grep -v '^ *+' conftest.er1 >conftest.err
11784 rm -f conftest.er1
11785 cat conftest.err >&5
fddafd51 11786 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11787 (exit $ac_status); } >/dev/null && {
11788 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11789 test ! -s conftest.err
11790 }; then
ad6254c5
AK
11791 ac_header_preproc=yes
11792else
fddafd51 11793 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
11794sed 's/^/| /' conftest.$ac_ext >&5
11795
11796 ac_header_preproc=no
11797fi
7a197a62 11798
ad6254c5 11799rm -f conftest.err conftest.$ac_ext
fddafd51
ZK
11800{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11801$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
11802
11803# So? What about this header?
8a2fc586
AK
11804case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11805 yes:no: )
fddafd51
ZK
11806 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11807$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11808 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11809$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 11810 ac_header_preproc=yes
ad6254c5 11811 ;;
8a2fc586 11812 no:yes:* )
fddafd51
ZK
11813 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11814$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11815 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11816$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11817 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11818$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11819 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11820$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11821 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11822$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11823 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11824$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 11825
ad6254c5
AK
11826 ;;
11827esac
fddafd51
ZK
11828{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11829$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 11830if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
fddafd51 11831 $as_echo_n "(cached) " >&6
ad6254c5 11832else
8a2fc586 11833 eval "$as_ac_Header=\$ac_header_preproc"
80992638 11834fi
fddafd51
ZK
11835ac_res=`eval 'as_val=${'$as_ac_Header'}
11836 $as_echo "$as_val"'`
11837 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11838$as_echo "$ac_res" >&6; }
4a7f3eb2 11839
ad6254c5 11840fi
fddafd51
ZK
11841if test `eval 'as_val=${'$as_ac_Header'}
11842 $as_echo "$as_val"'` = yes; then
ad6254c5 11843 cat >>confdefs.h <<_ACEOF
fddafd51 11844#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 11845_ACEOF
0a62c911 11846
0a62c911 11847else
fddafd51
ZK
11848 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
11849$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 11850 { (exit 1); exit 1; }; }
80992638
AK
11851fi
11852
ad6254c5 11853done
0a62c911 11854
ad6254c5 11855fi
0a62c911 11856
a653923f
AK
11857################################################################################
11858# Extract the first word of "modprobe", so it can be a program name with args.
11859set dummy modprobe; ac_word=$2
fddafd51
ZK
11860{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11861$as_echo_n "checking for $ac_word... " >&6; }
72b2cb61 11862if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then
fddafd51 11863 $as_echo_n "(cached) " >&6
72b2cb61
AK
11864else
11865 case $MODPROBE_CMD in
11866 [\\/]* | ?:[\\/]*)
11867 ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path.
11868 ;;
11869 *)
11870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11871for as_dir in $PATH
11872do
11873 IFS=$as_save_IFS
11874 test -z "$as_dir" && as_dir=.
11875 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 11876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
72b2cb61 11877 ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext"
fddafd51 11878 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
72b2cb61
AK
11879 break 2
11880 fi
11881done
11882done
7a197a62 11883IFS=$as_save_IFS
72b2cb61
AK
11884
11885 ;;
11886esac
11887fi
11888MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD
72b2cb61 11889if test -n "$MODPROBE_CMD"; then
fddafd51
ZK
11890 { $as_echo "$as_me:$LINENO: result: $MODPROBE_CMD" >&5
11891$as_echo "$MODPROBE_CMD" >&6; }
72b2cb61 11892else
fddafd51
ZK
11893 { $as_echo "$as_me:$LINENO: result: no" >&5
11894$as_echo "no" >&6; }
72b2cb61
AK
11895fi
11896
a653923f 11897
7a197a62 11898
a653923f 11899if test x$MODPROBE_CMD != x; then
72b2cb61
AK
11900
11901cat >>confdefs.h <<_ACEOF
11902#define MODPROBE_CMD "$MODPROBE_CMD"
11903_ACEOF
11904
a653923f
AK
11905fi
11906
80992638 11907################################################################################
d0191583 11908LVM_VERSION="\"`cat VERSION 2>/dev/null || echo Unknown`\""
fae0c576 11909
80992638 11910################################################################################
fae0c576 11911
83912faa 11912
795ca3e5
AK
11913
11914
11915
11916
11917
11918
5a52dca9 11919
8ef2b021 11920
199e490e 11921
69792976
AK
11922
11923
11924
d0191583
JM
11925# FIXME: rename to LVM_USE_DMEVENTD
11926
69792976 11927
8106cdd5
AK
11928
11929
11930
11931
11932
d68a82ec 11933
036f273a 11934
7d1552c9 11935
8106cdd5 11936
0a62c911 11937
8106cdd5 11938
4a7f3eb2 11939
4922197a
AK
11940
11941
d8ac0fbc 11942
1a9ea74d 11943
8a2fc586
AK
11944
11945
d0191583
JM
11946
11947# FIXME: rename to LVM_CONF_DIR
11948
11949
11950
11951
11952
8a2fc586 11953
8ce0cbda 11954
8b1a3214 11955
33f732c5 11956
66e941e8 11957
d3c8211f
AK
11958
11959
80992638 11960################################################################################
d0191583 11961ac_config_files="$ac_config_files Makefile make.tmpl include/Makefile lib/Makefile man/Makefile po/Makefile dmeventd/Makefile daemons/Makefile daemons/clvmd/Makefile dmeventd/mirror/Makefile dmeventd/snapshot/Makefile doc/Makefile lib/format1/Makefile lib/format_pool/Makefile lib/locking/Makefile lib/mirror/Makefile lib/snapshot/Makefile test/Makefile scripts/Makefile tools/Makefile tools/version.h"
7a197a62 11962
ad6254c5 11963cat >confcache <<\_ACEOF
795ca3e5
AK
11964# This file is a shell script that caches the results of configure
11965# tests run on this system so they can be shared between configure
ad6254c5
AK
11966# scripts and configure runs, see configure's option --config-cache.
11967# It is not useful on other systems. If it contains results you don't
11968# want to keep, you may remove or edit it.
795ca3e5 11969#
ad6254c5
AK
11970# config.status only pays attention to the cache file if you give it
11971# the --recheck option to rerun configure.
795ca3e5 11972#
ad6254c5
AK
11973# `ac_cv_env_foo' variables (set or unset) will be overridden when
11974# loading this file, other *unset* `ac_cv_foo' will be assigned the
11975# following values.
11976
11977_ACEOF
11978
795ca3e5
AK
11979# The following way of writing the cache mishandles newlines in values,
11980# but we know of no workaround that is simple, portable, and efficient.
7a197a62 11981# So, we kill variables containing newlines.
795ca3e5
AK
11982# Ultrix sh set writes to stderr and can't be redirected directly,
11983# and sets the high bit in the cache file unless we assign to the vars.
7a197a62
AK
11984(
11985 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11986 eval ac_val=\$$ac_var
11987 case $ac_val in #(
11988 *${as_nl}*)
11989 case $ac_var in #(
fddafd51
ZK
11990 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
11991$as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
7a197a62
AK
11992 esac
11993 case $ac_var in #(
11994 _ | IFS | as_nl) ;; #(
fddafd51 11995 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7a197a62
AK
11996 *) $as_unset $ac_var ;;
11997 esac ;;
11998 esac
11999 done
12000
ad6254c5 12001 (set) 2>&1 |
7a197a62
AK
12002 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12003 *${as_nl}ac_space=\ *)
ad6254c5
AK
12004 # `set' does not quote correctly, so add quotes (double-quote
12005 # substitution turns \\\\ into \\, and sed turns \\ into \).
12006 sed -n \
8a2fc586
AK
12007 "s/'/'\\\\''/g;
12008 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7a197a62 12009 ;; #(
ad6254c5
AK
12010 *)
12011 # `set' quotes correctly as required by POSIX, so do not add quotes.
7a197a62 12012 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
ad6254c5 12013 ;;
7a197a62
AK
12014 esac |
12015 sort
12016) |
ad6254c5 12017 sed '
7a197a62 12018 /^ac_cv_env_/b end
ad6254c5 12019 t clear
7a197a62 12020 :clear
ad6254c5
AK
12021 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12022 t end
7a197a62
AK
12023 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12024 :end' >>confcache
12025if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12026 if test -w "$cache_file"; then
12027 test "x$cache_file" != "x/dev/null" &&
fddafd51
ZK
12028 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
12029$as_echo "$as_me: updating cache $cache_file" >&6;}
ad6254c5 12030 cat confcache >$cache_file
795ca3e5 12031 else
fddafd51
ZK
12032 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
12033$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
795ca3e5
AK
12034 fi
12035fi
12036rm -f confcache
12037
795ca3e5
AK
12038test "x$prefix" = xNONE && prefix=$ac_default_prefix
12039# Let make expand exec_prefix.
12040test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12041
72b2cb61 12042DEFS=-DHAVE_CONFIG_H
ad6254c5
AK
12043
12044ac_libobjs=
12045ac_ltlibobjs=
12046for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12047 # 1. Remove the extension, and $U if already installed.
7a197a62 12048 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
fddafd51 12049 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7a197a62
AK
12050 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12051 # will be set to the directory where LIBOBJS objects are built.
12052 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12053 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
ad6254c5
AK
12054done
12055LIBOBJS=$ac_libobjs
80992638 12056
ad6254c5
AK
12057LTLIBOBJS=$ac_ltlibobjs
12058
12059
12060
12061: ${CONFIG_STATUS=./config.status}
fddafd51 12062ac_write_fail=0
ad6254c5
AK
12063ac_clean_files_save=$ac_clean_files
12064ac_clean_files="$ac_clean_files $CONFIG_STATUS"
fddafd51
ZK
12065{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12066$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12067cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5
AK
12068#! $SHELL
12069# Generated by $as_me.
795ca3e5 12070# Run this file to recreate the current configuration.
795ca3e5 12071# Compiler output produced by configure, useful for debugging
ad6254c5
AK
12072# configure, is in config.log if it exists.
12073
12074debug=false
12075ac_cs_recheck=false
12076ac_cs_silent=false
12077SHELL=\${CONFIG_SHELL-$SHELL}
12078_ACEOF
12079
fddafd51 12080cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ad6254c5
AK
12081## --------------------- ##
12082## M4sh Initialization. ##
12083## --------------------- ##
12084
25fbec5b
AK
12085# Be more Bourne compatible
12086DUALCASE=1; export DUALCASE # for MKS sh
ad6254c5
AK
12087if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12088 emulate sh
12089 NULLCMD=:
fddafd51 12090 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
ad6254c5
AK
12091 # is contrary to our usage. Disable this feature.
12092 alias -g '${1+"$@"}'='"$@"'
7a197a62
AK
12093 setopt NO_GLOB_SUBST
12094else
25fbec5b
AK
12095 case `(set -o) 2>/dev/null` in
12096 *posix*) set -o posix ;;
12097esac
12098
7a197a62 12099fi
25fbec5b
AK
12100
12101
7a197a62
AK
12102
12103
12104# PATH needs CR
12105# Avoid depending upon Character Ranges.
12106as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12107as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12108as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12109as_cr_digits='0123456789'
12110as_cr_alnum=$as_cr_Letters$as_cr_digits
12111
fddafd51
ZK
12112as_nl='
12113'
12114export as_nl
12115# Printing a long string crashes Solaris 7 /usr/bin/printf.
12116as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12117as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12118as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12119if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12120 as_echo='printf %s\n'
12121 as_echo_n='printf %s'
12122else
12123 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12124 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12125 as_echo_n='/usr/ucb/echo -n'
7a197a62 12126 else
fddafd51
ZK
12127 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12128 as_echo_n_body='eval
12129 arg=$1;
12130 case $arg in
12131 *"$as_nl"*)
12132 expr "X$arg" : "X\\(.*\\)$as_nl";
12133 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12134 esac;
12135 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12136 '
12137 export as_echo_n_body
12138 as_echo_n='sh -c $as_echo_n_body as_echo'
7a197a62 12139 fi
fddafd51
ZK
12140 export as_echo_body
12141 as_echo='sh -c $as_echo_body as_echo'
12142fi
12143
12144# The user is always right.
12145if test "${PATH_SEPARATOR+set}" != set; then
12146 PATH_SEPARATOR=:
12147 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12148 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12149 PATH_SEPARATOR=';'
12150 }
ad6254c5
AK
12151fi
12152
12153# Support unset when possible.
8a2fc586 12154if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
ad6254c5
AK
12155 as_unset=unset
12156else
12157 as_unset=false
12158fi
8106cdd5 12159
ad6254c5 12160
7a197a62
AK
12161# IFS
12162# We need space, tab and new line, in precisely that order. Quoting is
12163# there to prevent editors from complaining about space-tab.
12164# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12165# splitting by setting IFS to empty value.)
7a197a62
AK
12166IFS=" "" $as_nl"
12167
12168# Find who we are. Look in the path if we contain no directory separator.
12169case $0 in
12170 *[\\/]* ) as_myself=$0 ;;
12171 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12172for as_dir in $PATH
12173do
12174 IFS=$as_save_IFS
12175 test -z "$as_dir" && as_dir=.
12176 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12177done
12178IFS=$as_save_IFS
12179
12180 ;;
12181esac
12182# We did not find ourselves, most probably we were run as `sh COMMAND'
12183# in which case we are not to be found in the path.
12184if test "x$as_myself" = x; then
12185 as_myself=$0
12186fi
12187if test ! -f "$as_myself"; then
fddafd51 12188 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7a197a62
AK
12189 { (exit 1); exit 1; }
12190fi
12191
ad6254c5 12192# Work around bugs in pre-3.0 UWIN ksh.
7a197a62
AK
12193for as_var in ENV MAIL MAILPATH
12194do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12195done
ad6254c5
AK
12196PS1='$ '
12197PS2='> '
12198PS4='+ '
12199
12200# NLS nuisances.
fddafd51
ZK
12201LC_ALL=C
12202export LC_ALL
12203LANGUAGE=C
12204export LANGUAGE
8106cdd5 12205
ad6254c5 12206# Required to use basename.
7a197a62
AK
12207if expr a : '\(a\)' >/dev/null 2>&1 &&
12208 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
12209 as_expr=expr
12210else
12211 as_expr=false
12212fi
8106cdd5 12213
7a197a62 12214if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
ad6254c5
AK
12215 as_basename=basename
12216else
12217 as_basename=false
12218fi
12219
12220
12221# Name of the executable.
7a197a62 12222as_me=`$as_basename -- "$0" ||
ad6254c5
AK
12223$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12224 X"$0" : 'X\(//\)$' \| \
7a197a62 12225 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
fddafd51 12226$as_echo X/"$0" |
7a197a62
AK
12227 sed '/^.*\/\([^/][^/]*\)\/*$/{
12228 s//\1/
12229 q
12230 }
12231 /^X\/\(\/\/\)$/{
12232 s//\1/
12233 q
12234 }
12235 /^X\/\(\/\).*/{
12236 s//\1/
12237 q
12238 }
12239 s/.*/./; q'`
ad6254c5 12240
7a197a62
AK
12241# CDPATH.
12242$as_unset CDPATH
ad6254c5
AK
12243
12244
ad6254c5 12245
ad6254c5
AK
12246 as_lineno_1=$LINENO
12247 as_lineno_2=$LINENO
ad6254c5 12248 test "x$as_lineno_1" != "x$as_lineno_2" &&
7a197a62 12249 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
795ca3e5 12250
ad6254c5
AK
12251 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12252 # uniformly replaced by the line number. The first 'sed' inserts a
7a197a62
AK
12253 # line-number line after each line using $LINENO; the second 'sed'
12254 # does the real work. The second script uses 'N' to pair each
12255 # line-number line with the line containing $LINENO, and appends
12256 # trailing '-' during substitution so that $LINENO is not a special
12257 # case at line end.
ad6254c5 12258 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7a197a62
AK
12259 # scripts with optimization help from Paolo Bonzini. Blame Lee
12260 # E. McMahon (1931-1989) for sed's syntax. :-)
12261 sed -n '
12262 p
12263 /[$]LINENO/=
12264 ' <$as_myself |
ad6254c5 12265 sed '
7a197a62
AK
12266 s/[$]LINENO.*/&-/
12267 t lineno
12268 b
12269 :lineno
ad6254c5 12270 N
7a197a62
AK
12271 :loop
12272 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
ad6254c5 12273 t loop
7a197a62 12274 s/-\n.*//
ad6254c5 12275 ' >$as_me.lineno &&
7a197a62 12276 chmod +x "$as_me.lineno" ||
fddafd51 12277 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
ad6254c5
AK
12278 { (exit 1); exit 1; }; }
12279
12280 # Don't try to exec as it changes $[0], causing all sort of problems
12281 # (the dirname of $[0] is not the place where we might find the
7a197a62
AK
12282 # original and so on. Autoconf is especially sensitive to this).
12283 . "./$as_me.lineno"
ad6254c5
AK
12284 # Exit status is that of the last command.
12285 exit
12286}
12287
12288
7a197a62
AK
12289if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12290 as_dirname=dirname
12291else
12292 as_dirname=false
12293fi
12294
12295ECHO_C= ECHO_N= ECHO_T=
12296case `echo -n x` in
12297-n*)
12298 case `echo 'x\c'` in
12299 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12300 *) ECHO_C='\c';;
12301 esac;;
12302*)
12303 ECHO_N='-n';;
ad6254c5 12304esac
7a197a62
AK
12305if expr a : '\(a\)' >/dev/null 2>&1 &&
12306 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
12307 as_expr=expr
12308else
12309 as_expr=false
12310fi
80992638 12311
ad6254c5 12312rm -f conf$$ conf$$.exe conf$$.file
7a197a62
AK
12313if test -d conf$$.dir; then
12314 rm -f conf$$.dir/conf$$.file
12315else
12316 rm -f conf$$.dir
fddafd51
ZK
12317 mkdir conf$$.dir 2>/dev/null
12318fi
12319if (echo >conf$$.file) 2>/dev/null; then
12320 if ln -s conf$$.file conf$$ 2>/dev/null; then
12321 as_ln_s='ln -s'
12322 # ... but there are two gotchas:
12323 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12324 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12325 # In both cases, we have to default to `cp -p'.
12326 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12327 as_ln_s='cp -p'
12328 elif ln conf$$.file conf$$ 2>/dev/null; then
12329 as_ln_s=ln
12330 else
ad6254c5 12331 as_ln_s='cp -p'
fddafd51 12332 fi
ad6254c5
AK
12333else
12334 as_ln_s='cp -p'
12335fi
7a197a62
AK
12336rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12337rmdir conf$$.dir 2>/dev/null
8106cdd5 12338
ad6254c5
AK
12339if mkdir -p . 2>/dev/null; then
12340 as_mkdir_p=:
12341else
8a2fc586 12342 test -d ./-p && rmdir ./-p
ad6254c5
AK
12343 as_mkdir_p=false
12344fi
12345
25fbec5b
AK
12346if test -x / >/dev/null 2>&1; then
12347 as_test_x='test -x'
7a197a62 12348else
25fbec5b
AK
12349 if ls -dL / >/dev/null 2>&1; then
12350 as_ls_L_option=L
12351 else
12352 as_ls_L_option=
12353 fi
12354 as_test_x='
12355 eval sh -c '\''
12356 if test -d "$1"; then
fddafd51 12357 test -d "$1/.";
25fbec5b
AK
12358 else
12359 case $1 in
fddafd51 12360 -*)set "./$1";;
25fbec5b
AK
12361 esac;
12362 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
12363 ???[sx]*):;;*)false;;esac;fi
12364 '\'' sh
12365 '
7a197a62 12366fi
25fbec5b 12367as_executable_p=$as_test_x
ad6254c5
AK
12368
12369# Sed expression to map a string onto a valid CPP name.
8a2fc586 12370as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
12371
12372# Sed expression to map a string onto a valid variable name.
8a2fc586 12373as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
12374
12375
ad6254c5
AK
12376exec 6>&1
12377
7a197a62 12378# Save the log message, to keep $[0] and so on meaningful, and to
ad6254c5 12379# report actual input values of CONFIG_FILES etc. instead of their
7a197a62
AK
12380# values after options handling.
12381ac_log="
ad6254c5 12382This file was extended by $as_me, which was
fddafd51 12383generated by GNU Autoconf 2.62. Invocation command line was
ad6254c5
AK
12384
12385 CONFIG_FILES = $CONFIG_FILES
12386 CONFIG_HEADERS = $CONFIG_HEADERS
12387 CONFIG_LINKS = $CONFIG_LINKS
12388 CONFIG_COMMANDS = $CONFIG_COMMANDS
12389 $ $0 $@
12390
7a197a62
AK
12391on `(hostname || uname -n) 2>/dev/null | sed 1q`
12392"
12393
ad6254c5
AK
12394_ACEOF
12395
fddafd51 12396cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5 12397# Files that config.status was made for.
7a197a62
AK
12398config_files="$ac_config_files"
12399config_headers="$ac_config_headers"
ad6254c5 12400
7a197a62 12401_ACEOF
ad6254c5 12402
fddafd51 12403cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ad6254c5
AK
12404ac_cs_usage="\
12405\`$as_me' instantiates files from templates according to the
12406current configuration.
12407
12408Usage: $0 [OPTIONS] [FILE]...
12409
12410 -h, --help print this help, then exit
25fbec5b 12411 -V, --version print version number and configuration settings, then exit
ad6254c5
AK
12412 -q, --quiet do not print progress messages
12413 -d, --debug don't remove temporary files
12414 --recheck update $as_me by reconfiguring in the same conditions
12415 --file=FILE[:TEMPLATE]
fddafd51 12416 instantiate the configuration file FILE
72b2cb61 12417 --header=FILE[:TEMPLATE]
fddafd51 12418 instantiate the configuration header FILE
ad6254c5
AK
12419
12420Configuration files:
12421$config_files
12422
72b2cb61
AK
12423Configuration headers:
12424$config_headers
12425
ad6254c5 12426Report bugs to <bug-autoconf@gnu.org>."
ad6254c5 12427
7a197a62 12428_ACEOF
fddafd51 12429cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5
AK
12430ac_cs_version="\\
12431config.status
fddafd51
ZK
12432configured by $0, generated by GNU Autoconf 2.62,
12433 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
ad6254c5 12434
fddafd51 12435Copyright (C) 2008 Free Software Foundation, Inc.
ad6254c5
AK
12436This config.status script is free software; the Free Software Foundation
12437gives unlimited permission to copy, distribute and modify it."
7a197a62
AK
12438
12439ac_pwd='$ac_pwd'
12440srcdir='$srcdir'
12441INSTALL='$INSTALL'
fddafd51
ZK
12442MKDIR_P='$MKDIR_P'
12443AWK='$AWK'
12444test -n "\$AWK" || AWK=awk
ad6254c5
AK
12445_ACEOF
12446
fddafd51
ZK
12447cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12448# The default lists apply if the user does not specify any file.
ad6254c5
AK
12449ac_need_defaults=:
12450while test $# != 0
12451do
12452 case $1 in
12453 --*=*)
7a197a62
AK
12454 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12455 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
ad6254c5
AK
12456 ac_shift=:
12457 ;;
7a197a62 12458 *)
ad6254c5
AK
12459 ac_option=$1
12460 ac_optarg=$2
12461 ac_shift=shift
12462 ;;
ad6254c5
AK
12463 esac
12464
12465 case $ac_option in
12466 # Handling of the options.
ad6254c5
AK
12467 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12468 ac_cs_recheck=: ;;
7a197a62 12469 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
fddafd51 12470 $as_echo "$ac_cs_version"; exit ;;
7a197a62 12471 --debug | --debu | --deb | --de | --d | -d )
ad6254c5
AK
12472 debug=: ;;
12473 --file | --fil | --fi | --f )
12474 $ac_shift
fddafd51
ZK
12475 case $ac_optarg in
12476 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12477 esac
12478 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
ad6254c5
AK
12479 ac_need_defaults=false;;
12480 --header | --heade | --head | --hea )
12481 $ac_shift
fddafd51
ZK
12482 case $ac_optarg in
12483 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12484 esac
12485 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
ad6254c5 12486 ac_need_defaults=false;;
7a197a62
AK
12487 --he | --h)
12488 # Conflict between --help and --header
fddafd51 12489 { $as_echo "$as_me: error: ambiguous option: $1
7a197a62
AK
12490Try \`$0 --help' for more information." >&2
12491 { (exit 1); exit 1; }; };;
12492 --help | --hel | -h )
fddafd51 12493 $as_echo "$ac_cs_usage"; exit ;;
ad6254c5
AK
12494 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12495 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12496 ac_cs_silent=: ;;
12497
12498 # This is an error.
fddafd51 12499 -*) { $as_echo "$as_me: error: unrecognized option: $1
7a197a62 12500Try \`$0 --help' for more information." >&2
ad6254c5
AK
12501 { (exit 1); exit 1; }; } ;;
12502
7a197a62
AK
12503 *) ac_config_targets="$ac_config_targets $1"
12504 ac_need_defaults=false ;;
ad6254c5
AK
12505
12506 esac
12507 shift
12508done
12509
12510ac_configure_extra_args=
12511
12512if $ac_cs_silent; then
12513 exec 6>/dev/null
12514 ac_configure_extra_args="$ac_configure_extra_args --silent"
12515fi
12516
12517_ACEOF
fddafd51 12518cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5 12519if \$ac_cs_recheck; then
fddafd51
ZK
12520 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12521 shift
12522 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12523 CONFIG_SHELL='$SHELL'
7a197a62 12524 export CONFIG_SHELL
fddafd51 12525 exec "\$@"
ad6254c5
AK
12526fi
12527
12528_ACEOF
fddafd51 12529cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
12530exec 5>>config.log
12531{
12532 echo
12533 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12534## Running $as_me. ##
12535_ASBOX
fddafd51 12536 $as_echo "$ac_log"
7a197a62 12537} >&5
ad6254c5 12538
7a197a62 12539_ACEOF
fddafd51 12540cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7a197a62 12541_ACEOF
ad6254c5 12542
fddafd51 12543cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
12544
12545# Handling of arguments.
ad6254c5
AK
12546for ac_config_target in $ac_config_targets
12547do
7a197a62
AK
12548 case $ac_config_target in
12549 "lib/misc/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;;
12550 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12551 "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;;
d0191583
JM
12552 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
12553 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
12554 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12555 "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
12556 "dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES dmeventd/Makefile" ;;
7a197a62
AK
12557 "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;;
12558 "daemons/clvmd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;;
7a197a62 12559 "dmeventd/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES dmeventd/mirror/Makefile" ;;
d0191583 12560 "dmeventd/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES dmeventd/snapshot/Makefile" ;;
7a197a62 12561 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
7a197a62
AK
12562 "lib/format1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;;
12563 "lib/format_pool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;;
12564 "lib/locking/Makefile") CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;;
12565 "lib/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;;
12566 "lib/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;;
09339e2b 12567 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
7a197a62
AK
12568 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
12569 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
12570 "tools/version.h") CONFIG_FILES="$CONFIG_FILES tools/version.h" ;;
7a197a62 12571
fddafd51
ZK
12572 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12573$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
ad6254c5 12574 { (exit 1); exit 1; }; };;
80992638 12575 esac
ad6254c5
AK
12576done
12577
7a197a62 12578
ad6254c5
AK
12579# If the user did not use the arguments to specify the items to instantiate,
12580# then the envvar interface is used. Set only those that are not.
12581# We use the long form for the default assignment because of an extremely
12582# bizarre bug on SunOS 4.1.3.
12583if $ac_need_defaults; then
12584 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
72b2cb61 12585 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
ad6254c5
AK
12586fi
12587
12588# Have a temporary directory for convenience. Make it in the build tree
7a197a62 12589# simply because there is no reason against having it here, and in addition,
ad6254c5 12590# creating and moving files from /tmp can sometimes cause problems.
7a197a62
AK
12591# Hook for its removal unless debugging.
12592# Note that there is a small window in which the directory will not be cleaned:
12593# after its creation but before its name has been assigned to `$tmp'.
ad6254c5
AK
12594$debug ||
12595{
7a197a62
AK
12596 tmp=
12597 trap 'exit_status=$?
12598 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12599' 0
ad6254c5
AK
12600 trap '{ (exit 1); exit 1; }' 1 2 13 15
12601}
ad6254c5
AK
12602# Create a (secure) tmp directory for tmp files.
12603
12604{
7a197a62 12605 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
ad6254c5
AK
12606 test -n "$tmp" && test -d "$tmp"
12607} ||
12608{
7a197a62
AK
12609 tmp=./conf$$-$RANDOM
12610 (umask 077 && mkdir "$tmp")
ad6254c5
AK
12611} ||
12612{
fddafd51 12613 $as_echo "$as_me: cannot create a temporary directory in ." >&2
ad6254c5
AK
12614 { (exit 1); exit 1; }
12615}
12616
fddafd51
ZK
12617# Set up the scripts for CONFIG_FILES section.
12618# No need to generate them if there are no CONFIG_FILES.
12619# This happens for instance with `./config.status config.h'.
1995c9ff 12620if test -n "$CONFIG_FILES"; then
7a197a62 12621
7a197a62 12622
fddafd51
ZK
12623ac_cr='\r'
12624ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12625if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12626 ac_cs_awk_cr='\\r'
12627else
12628 ac_cs_awk_cr=$ac_cr
1995c9ff 12629fi
7a197a62 12630
fddafd51 12631echo 'BEGIN {' >"$tmp/subs1.awk" &&
1995c9ff 12632_ACEOF
7a197a62 12633
8106cdd5 12634
fddafd51
ZK
12635{
12636 echo "cat >conf$$subs.awk <<_ACEOF" &&
12637 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12638 echo "_ACEOF"
12639} >conf$$subs.sh ||
12640 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12641$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12642 { (exit 1); exit 1; }; }
12643ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
1995c9ff
AK
12644ac_delim='%!_!# '
12645for ac_last_try in false false false false false :; do
fddafd51
ZK
12646 . ./conf$$subs.sh ||
12647 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12648$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12649 { (exit 1); exit 1; }; }
12650
12651 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then
1995c9ff
AK
12652 break
12653 elif $ac_last_try; then
fddafd51
ZK
12654 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12655$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
1995c9ff
AK
12656 { (exit 1); exit 1; }; }
12657 else
12658 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12659 fi
12660done
fddafd51
ZK
12661rm -f conf$$subs.sh
12662
12663cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12664cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
12665_ACEOF
12666sed -n '
12667h
12668s/^/S["/; s/!.*/"]=/
12669p
12670g
12671s/^[^!]*!//
12672:repl
12673t repl
12674s/'"$ac_delim"'$//
12675t delim
12676:nl
12677h
12678s/\(.\{148\}\).*/\1/
12679t more1
12680s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12681p
12682n
12683b repl
12684:more1
12685s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12686p
12687g
12688s/.\{148\}//
12689t nl
12690:delim
12691h
12692s/\(.\{148\}\).*/\1/
12693t more2
12694s/["\\]/\\&/g; s/^/"/; s/$/"/
12695p
12696b
12697:more2
12698s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12699p
12700g
12701s/.\{148\}//
12702t delim
12703' <conf$$subs.awk | sed '
12704/^[^""]/{
12705 N
12706 s/\n//
12707}
12708' >>$CONFIG_STATUS || ac_write_fail=1
12709rm -f conf$$subs.awk
12710cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12711_ACAWK
12712cat >>"\$tmp/subs1.awk" <<_ACAWK &&
12713 for (key in S) S_is_set[key] = 1
12714 FS = "\a"
1995c9ff 12715
fddafd51
ZK
12716}
12717{
12718 line = $ 0
12719 nfields = split(line, field, "@")
12720 substed = 0
12721 len = length(field[1])
12722 for (i = 2; i < nfields; i++) {
12723 key = field[i]
12724 keylen = length(key)
12725 if (S_is_set[key]) {
12726 value = S[key]
12727 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12728 len += length(value) + length(field[++i])
12729 substed = 1
12730 } else
12731 len += 1 + keylen
12732 }
7a197a62 12733
fddafd51
ZK
12734 print line
12735}
12736
12737_ACAWK
1995c9ff 12738_ACEOF
fddafd51
ZK
12739cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12740if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12741 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12742else
12743 cat
12744fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
12745 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
12746$as_echo "$as_me: error: could not setup config files machinery" >&2;}
12747 { (exit 1); exit 1; }; }
7a197a62
AK
12748_ACEOF
12749
7a197a62
AK
12750# VPATH may cause trouble with some makes, so we remove $(srcdir),
12751# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12752# trailing colons and then remove the whole line if VPATH becomes empty
12753# (actually we leave an empty line to preserve line numbers).
12754if test "x$srcdir" = x.; then
12755 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12756s/:*\$(srcdir):*/:/
12757s/:*\${srcdir}:*/:/
12758s/:*@srcdir@:*/:/
12759s/^\([^=]*=[ ]*\):*/\1/
12760s/:*$//
12761s/^[^=]*=[ ]*$//
12762}'
12763fi
12764
fddafd51 12765cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
12766fi # test -n "$CONFIG_FILES"
12767
fddafd51
ZK
12768# Set up the scripts for CONFIG_HEADERS section.
12769# No need to generate them if there are no CONFIG_HEADERS.
12770# This happens for instance with `./config.status Makefile'.
12771if test -n "$CONFIG_HEADERS"; then
12772cat >"$tmp/defines.awk" <<\_ACAWK ||
12773BEGIN {
12774_ACEOF
12775
12776# Transform confdefs.h into an awk script `defines.awk', embedded as
12777# here-document in config.status, that substitutes the proper values into
12778# config.h.in to produce config.h.
12779
12780# Create a delimiter string that does not exist in confdefs.h, to ease
12781# handling of long lines.
12782ac_delim='%!_!# '
12783for ac_last_try in false false :; do
12784 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
12785 if test -z "$ac_t"; then
12786 break
12787 elif $ac_last_try; then
12788 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
12789$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
12790 { (exit 1); exit 1; }; }
12791 else
12792 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12793 fi
12794done
12795
12796# For the awk script, D is an array of macro values keyed by name,
12797# likewise P contains macro parameters if any. Preserve backslash
12798# newline sequences.
12799
12800ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12801sed -n '
12802s/.\{148\}/&'"$ac_delim"'/g
12803t rset
12804:rset
12805s/^[ ]*#[ ]*define[ ][ ]*/ /
12806t def
12807d
12808:def
12809s/\\$//
12810t bsnl
12811s/["\\]/\\&/g
12812s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12813D["\1"]=" \3"/p
12814s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12815d
12816:bsnl
12817s/["\\]/\\&/g
12818s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12819D["\1"]=" \3\\\\\\n"\\/p
12820t cont
12821s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12822t cont
12823d
12824:cont
12825n
12826s/.\{148\}/&'"$ac_delim"'/g
12827t clear
12828:clear
12829s/\\$//
12830t bsnlc
12831s/["\\]/\\&/g; s/^/"/; s/$/"/p
12832d
12833:bsnlc
12834s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12835b cont
12836' <confdefs.h | sed '
12837s/'"$ac_delim"'/"\\\
12838"/g' >>$CONFIG_STATUS || ac_write_fail=1
12839
12840cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12841 for (key in D) D_is_set[key] = 1
12842 FS = "\a"
12843}
12844/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12845 line = \$ 0
12846 split(line, arg, " ")
12847 if (arg[1] == "#") {
12848 defundef = arg[2]
12849 mac1 = arg[3]
12850 } else {
12851 defundef = substr(arg[1], 2)
12852 mac1 = arg[2]
12853 }
12854 split(mac1, mac2, "(") #)
12855 macro = mac2[1]
12856 prefix = substr(line, 1, index(line, defundef) - 1)
12857 if (D_is_set[macro]) {
12858 # Preserve the white space surrounding the "#".
12859 print prefix "define", macro P[macro] D[macro]
12860 next
12861 } else {
12862 # Replace #undef with comments. This is necessary, for example,
12863 # in the case of _POSIX_SOURCE, which is predefined and required
12864 # on some systems where configure will not decide to define it.
12865 if (defundef == "undef") {
12866 print "/*", prefix defundef, macro, "*/"
12867 next
12868 }
12869 }
12870}
12871{ print }
12872_ACAWK
12873_ACEOF
12874cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12875 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
12876$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
12877 { (exit 1); exit 1; }; }
12878fi # test -n "$CONFIG_HEADERS"
12879
7a197a62 12880
fddafd51
ZK
12881eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
12882shift
12883for ac_tag
7a197a62
AK
12884do
12885 case $ac_tag in
12886 :[FHLC]) ac_mode=$ac_tag; continue;;
12887 esac
12888 case $ac_mode$ac_tag in
12889 :[FHL]*:*);;
fddafd51
ZK
12890 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
12891$as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
7a197a62
AK
12892 { (exit 1); exit 1; }; };;
12893 :[FH]-) ac_tag=-:-;;
12894 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12895 esac
12896 ac_save_IFS=$IFS
12897 IFS=:
12898 set x $ac_tag
12899 IFS=$ac_save_IFS
12900 shift
12901 ac_file=$1
12902 shift
12903
12904 case $ac_mode in
12905 :L) ac_source=$1;;
12906 :[FH])
12907 ac_file_inputs=
12908 for ac_f
12909 do
12910 case $ac_f in
12911 -) ac_f="$tmp/stdin";;
12912 *) # Look for the file first in the build tree, then in the source tree
12913 # (if the path is not absolute). The absolute path cannot be DOS-style,
12914 # because $ac_f cannot contain `:'.
12915 test -f "$ac_f" ||
12916 case $ac_f in
12917 [\\/$]*) false;;
12918 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12919 esac ||
fddafd51
ZK
12920 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
12921$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
7a197a62
AK
12922 { (exit 1); exit 1; }; };;
12923 esac
fddafd51
ZK
12924 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12925 ac_file_inputs="$ac_file_inputs '$ac_f'"
7a197a62
AK
12926 done
12927
12928 # Let's still pretend it is `configure' which instantiates (i.e., don't
12929 # use $as_me), people would be surprised to read:
12930 # /* config.h. Generated by config.status. */
fddafd51
ZK
12931 configure_input='Generated from '`
12932 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12933 `' by configure.'
7a197a62
AK
12934 if test x"$ac_file" != x-; then
12935 configure_input="$ac_file. $configure_input"
fddafd51
ZK
12936 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
12937$as_echo "$as_me: creating $ac_file" >&6;}
7a197a62 12938 fi
fddafd51
ZK
12939 # Neutralize special characters interpreted by sed in replacement strings.
12940 case $configure_input in #(
12941 *\&* | *\|* | *\\* )
12942 ac_sed_conf_input=`$as_echo "$configure_input" |
12943 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12944 *) ac_sed_conf_input=$configure_input;;
12945 esac
7a197a62
AK
12946
12947 case $ac_tag in
fddafd51
ZK
12948 *:-:* | *:-) cat >"$tmp/stdin" \
12949 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
12950$as_echo "$as_me: error: could not create $ac_file" >&2;}
12951 { (exit 1); exit 1; }; } ;;
7a197a62
AK
12952 esac
12953 ;;
80992638 12954 esac
8106cdd5 12955
7a197a62 12956 ac_dir=`$as_dirname -- "$ac_file" ||
ad6254c5 12957$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8a2fc586
AK
12958 X"$ac_file" : 'X\(//\)[^/]' \| \
12959 X"$ac_file" : 'X\(//\)$' \| \
7a197a62 12960 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
fddafd51 12961$as_echo X"$ac_file" |
7a197a62
AK
12962 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12963 s//\1/
12964 q
12965 }
12966 /^X\(\/\/\)[^/].*/{
12967 s//\1/
12968 q
12969 }
12970 /^X\(\/\/\)$/{
12971 s//\1/
12972 q
12973 }
12974 /^X\(\/\).*/{
12975 s//\1/
12976 q
12977 }
12978 s/.*/./; q'`
12979 { as_dir="$ac_dir"
12980 case $as_dir in #(
12981 -*) as_dir=./$as_dir;;
12982 esac
12983 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
ad6254c5 12984 as_dirs=
7a197a62
AK
12985 while :; do
12986 case $as_dir in #(
fddafd51 12987 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7a197a62
AK
12988 *) as_qdir=$as_dir;;
12989 esac
12990 as_dirs="'$as_qdir' $as_dirs"
12991 as_dir=`$as_dirname -- "$as_dir" ||
ad6254c5 12992$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8a2fc586
AK
12993 X"$as_dir" : 'X\(//\)[^/]' \| \
12994 X"$as_dir" : 'X\(//\)$' \| \
7a197a62 12995 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
fddafd51 12996$as_echo X"$as_dir" |
7a197a62
AK
12997 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12998 s//\1/
12999 q
13000 }
13001 /^X\(\/\/\)[^/].*/{
13002 s//\1/
13003 q
13004 }
13005 /^X\(\/\/\)$/{
13006 s//\1/
13007 q
13008 }
13009 /^X\(\/\).*/{
13010 s//\1/
13011 q
13012 }
13013 s/.*/./; q'`
13014 test -d "$as_dir" && break
ad6254c5 13015 done
7a197a62 13016 test -z "$as_dirs" || eval "mkdir $as_dirs"
fddafd51
ZK
13017 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
13018$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
ad6254c5 13019 { (exit 1); exit 1; }; }; }
ad6254c5
AK
13020 ac_builddir=.
13021
7a197a62
AK
13022case "$ac_dir" in
13023.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13024*)
fddafd51 13025 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7a197a62 13026 # A ".." for each directory in $ac_dir_suffix.
fddafd51 13027 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7a197a62
AK
13028 case $ac_top_builddir_sub in
13029 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13030 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13031 esac ;;
13032esac
13033ac_abs_top_builddir=$ac_pwd
13034ac_abs_builddir=$ac_pwd$ac_dir_suffix
13035# for backward compatibility:
13036ac_top_builddir=$ac_top_build_prefix
ad6254c5
AK
13037
13038case $srcdir in
7a197a62 13039 .) # We are building in place.
ad6254c5 13040 ac_srcdir=.
7a197a62
AK
13041 ac_top_srcdir=$ac_top_builddir_sub
13042 ac_abs_top_srcdir=$ac_pwd ;;
13043 [\\/]* | ?:[\\/]* ) # Absolute name.
ad6254c5 13044 ac_srcdir=$srcdir$ac_dir_suffix;
7a197a62
AK
13045 ac_top_srcdir=$srcdir
13046 ac_abs_top_srcdir=$srcdir ;;
13047 *) # Relative name.
13048 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13049 ac_top_srcdir=$ac_top_build_prefix$srcdir
13050 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
ad6254c5 13051esac
7a197a62 13052ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8a2fc586 13053
ad6254c5 13054
7a197a62
AK
13055 case $ac_mode in
13056 :F)
13057 #
13058 # CONFIG_FILE
13059 #
ad6254c5
AK
13060
13061 case $INSTALL in
13062 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7a197a62 13063 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
795ca3e5 13064 esac
fddafd51
ZK
13065 ac_MKDIR_P=$MKDIR_P
13066 case $MKDIR_P in
13067 [\\/$]* | ?:[\\/]* ) ;;
13068 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13069 esac
7a197a62 13070_ACEOF
795ca3e5 13071
fddafd51 13072cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
13073# If the template does not know about datarootdir, expand it.
13074# FIXME: This hack should be removed a few years after 2.60.
13075ac_datarootdir_hack=; ac_datarootdir_seen=
13076
fddafd51
ZK
13077ac_sed_dataroot='
13078/datarootdir/ {
7a197a62
AK
13079 p
13080 q
13081}
13082/@datadir@/p
13083/@docdir@/p
13084/@infodir@/p
13085/@localedir@/p
13086/@mandir@/p
fddafd51
ZK
13087'
13088case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7a197a62
AK
13089*datarootdir*) ac_datarootdir_seen=yes;;
13090*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
fddafd51
ZK
13091 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13092$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
ad6254c5 13093_ACEOF
fddafd51 13094cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7a197a62
AK
13095 ac_datarootdir_hack='
13096 s&@datadir@&$datadir&g
13097 s&@docdir@&$docdir&g
13098 s&@infodir@&$infodir&g
13099 s&@localedir@&$localedir&g
13100 s&@mandir@&$mandir&g
13101 s&\\\${datarootdir}&$datarootdir&g' ;;
13102esac
13103_ACEOF
13104
13105# Neutralize VPATH when `$srcdir' = `.'.
13106# Shell code in configure.ac might set extrasub.
13107# FIXME: do we really want to maintain this feature?
fddafd51
ZK
13108cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13109ac_sed_extra="$ac_vpsub
ad6254c5
AK
13110$extrasub
13111_ACEOF
fddafd51 13112cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ad6254c5
AK
13113:t
13114/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
fddafd51 13115s|@configure_input@|$ac_sed_conf_input|;t t
7a197a62 13116s&@top_builddir@&$ac_top_builddir_sub&;t t
fddafd51 13117s&@top_build_prefix@&$ac_top_build_prefix&;t t
7a197a62
AK
13118s&@srcdir@&$ac_srcdir&;t t
13119s&@abs_srcdir@&$ac_abs_srcdir&;t t
13120s&@top_srcdir@&$ac_top_srcdir&;t t
13121s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13122s&@builddir@&$ac_builddir&;t t
13123s&@abs_builddir@&$ac_abs_builddir&;t t
13124s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13125s&@INSTALL@&$ac_INSTALL&;t t
fddafd51 13126s&@MKDIR_P@&$ac_MKDIR_P&;t t
7a197a62 13127$ac_datarootdir_hack
fddafd51
ZK
13128"
13129eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
13130 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13131$as_echo "$as_me: error: could not create $ac_file" >&2;}
13132 { (exit 1); exit 1; }; }
7a197a62
AK
13133
13134test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13135 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13136 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
fddafd51 13137 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7a197a62 13138which seems to be undefined. Please make sure it is defined." >&5
fddafd51 13139$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7a197a62
AK
13140which seems to be undefined. Please make sure it is defined." >&2;}
13141
13142 rm -f "$tmp/stdin"
72b2cb61 13143 case $ac_file in
fddafd51
ZK
13144 -) cat "$tmp/out" && rm -f "$tmp/out";;
13145 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
13146 esac \
13147 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13148$as_echo "$as_me: error: could not create $ac_file" >&2;}
13149 { (exit 1); exit 1; }; }
7a197a62
AK
13150 ;;
13151 :H)
13152 #
13153 # CONFIG_HEADER
13154 #
72b2cb61 13155 if test x"$ac_file" != x-; then
fddafd51
ZK
13156 {
13157 $as_echo "/* $configure_input */" \
13158 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
13159 } >"$tmp/config.h" \
13160 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13161$as_echo "$as_me: error: could not create $ac_file" >&2;}
13162 { (exit 1); exit 1; }; }
13163 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
13164 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13165$as_echo "$as_me: $ac_file is unchanged" >&6;}
72b2cb61 13166 else
fddafd51
ZK
13167 rm -f "$ac_file"
13168 mv "$tmp/config.h" "$ac_file" \
13169 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13170$as_echo "$as_me: error: could not create $ac_file" >&2;}
13171 { (exit 1); exit 1; }; }
72b2cb61
AK
13172 fi
13173 else
fddafd51
ZK
13174 $as_echo "/* $configure_input */" \
13175 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
13176 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
13177$as_echo "$as_me: error: could not create -" >&2;}
13178 { (exit 1); exit 1; }; }
72b2cb61 13179 fi
7a197a62
AK
13180 ;;
13181
13182
13183 esac
13184
13185done # for ac_tag
795ca3e5 13186
795ca3e5 13187
ad6254c5
AK
13188{ (exit 0); exit 0; }
13189_ACEOF
795ca3e5 13190chmod +x $CONFIG_STATUS
ad6254c5
AK
13191ac_clean_files=$ac_clean_files_save
13192
fddafd51
ZK
13193test $ac_write_fail = 0 ||
13194 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
13195$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
13196 { (exit 1); exit 1; }; }
13197
ad6254c5
AK
13198
13199# configure is writing to config.log, and then calls config.status.
13200# config.status does its own redirection, appending to config.log.
13201# Unfortunately, on DOS this fails, as config.log is still kept open
13202# by configure, so config.status won't be able to write to it; its
13203# output is simply discarded. So we exec the FD to /dev/null,
13204# effectively closing config.log, so it can be properly (re)opened and
13205# appended to by config.status. When coming back to configure, we
13206# need to make the FD available again.
13207if test "$no_create" != yes; then
13208 ac_cs_success=:
13209 ac_config_status_args=
13210 test "$silent" = yes &&
13211 ac_config_status_args="$ac_config_status_args --quiet"
13212 exec 5>/dev/null
13213 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13214 exec 5>>config.log
13215 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13216 # would make configure fail if this is the last instruction.
13217 $ac_cs_success || { (exit 1); exit 1; }
13218fi
fddafd51
ZK
13219if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13220 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
13221$as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}
13222fi
795ca3e5 13223
2dc95e1c
AK
13224
13225if test x$ODIRECT != xyes; then
fddafd51
ZK
13226 { $as_echo "$as_me:$LINENO: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5
13227$as_echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;}
2dc95e1c 13228fi
809fae91
AK
13229
13230if test x$FSADM == xyes; then
fddafd51
ZK
13231 { $as_echo "$as_me:$LINENO: WARNING: fsadm support is untested" >&5
13232$as_echo "$as_me: WARNING: fsadm support is untested" >&2;}
809fae91 13233fi
06f62ad1
AK
13234
13235if test x$DMEVENTD == xyes; then
fddafd51
ZK
13236 { $as_echo "$as_me:$LINENO: WARNING: dmeventd support is untested" >&5
13237$as_echo "$as_me: WARNING: dmeventd support is untested" >&2;}
06f62ad1 13238fi
This page took 1.614392 seconds and 5 git commands to generate.