]> sourceware.org Git - lvm2.git/blame - configure
Add usrsbindir to configure.
[lvm2.git] / configure
CommitLineData
795ca3e5 1#! /bin/sh
795ca3e5 2# Guess values for system-dependent variables and create Makefiles.
b145d876 3# Generated by GNU Autoconf 2.62.
795ca3e5 4#
7a197a62 5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
b145d876 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=:
b145d876 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
b145d876
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'
5556819a 54 else
b145d876
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'
5556819a 67 fi
b145d876
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
b145d876 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.
b145d876
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 ||
b145d876 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
b145d876 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=:
b145d876 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=:
b145d876 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
b145d876
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.
b145d876
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" ||
b145d876 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
b145d876
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'
b145d876 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
b145d876 554 test -d "$1/.";
25fbec5b
AK
555 else
556 case $1 in
b145d876 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
b145d876 704MKDIR_P
7a197a62
AK
705RANLIB
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=''
b145d876
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
b145d876
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-*)
b145d876 902 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
795ca3e5 903 # Reject names that are not valid shell variable names.
b145d876
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; }; }
b145d876
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-*)
b145d876 929 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
795ca3e5 930 # Reject names that are not valid shell variable names.
b145d876
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; }; }
b145d876
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-*)
b145d876 1134 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
795ca3e5 1135 # Reject names that are not valid shell variable names.
b145d876
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; }; }
b145d876
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-*)
b145d876 1151 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
795ca3e5 1152 # Reject names that are not valid shell variable names.
b145d876
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; }; }
b145d876
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
b145d876 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 &&
b145d876 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.
b145d876 1201 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
ad6254c5 1202 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
b145d876 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'`
b145d876 1212 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
ad6254c5 1213 { (exit 1); exit 1; }; }
795ca3e5 1214fi
795ca3e5 1215
b145d876
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
b145d876
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
b145d876 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
b145d876 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 .` ||
b145d876 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" ||
b145d876 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.
b145d876
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 .."
b145d876 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=`(
b145d876 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
b145d876 1371 [$ac_default_prefix]
ad6254c5 1372 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
b145d876 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:
b145d876
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:
b145d876 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
1b523347 1423 --disable-readline Disable readline support
3d978351 1424 --disable-realtime Disable realtime clock support
ad6254c5 1425 --enable-debug Enable debugging
5556819a 1426 --enable-profiling Gather gcov profiling data
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
b145d876
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*)
b145d876 1488 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7a197a62 1489 # A ".." for each directory in $ac_dir_suffix.
b145d876 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
b145d876 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
b145d876 1536generated by GNU Autoconf 2.62
ad6254c5 1537
7a197a62 1538Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
b145d876 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
b145d876 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=.
b145d876 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 *\'*)
b145d876 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 #(
b145d876
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) ;; #(
b145d876 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
b145d876 1708 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
7a197a62 1709 esac
b145d876 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
b145d876 1725 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
7a197a62 1726 esac
b145d876 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 &&
b145d876
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.
b145d876
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
b145d876 1790 ac_site_file1=$CONFIG_SITE
7a197a62 1791elif test "x$prefix" != xNONE; then
b145d876
ZK
1792 ac_site_file1=$prefix/share/config.site
1793 ac_site_file2=$prefix/etc/config.site
7a197a62 1794else
b145d876
ZK
1795 ac_site_file1=$ac_default_prefix/share/config.site
1796 ac_site_file2=$ac_default_prefix/etc/config.site
795ca3e5 1797fi
b145d876 1798for ac_site_file in "$ac_site_file1" "$ac_site_file2"
7a197a62 1799do
b145d876 1800 test "x$ac_site_file" = xNONE && continue
795ca3e5 1801 if test -r "$ac_site_file"; then
b145d876
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
b145d876
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
b145d876
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,)
b145d876
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)
b145d876
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
b145d876
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
b145d876 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
b145d876
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
b145d876
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 ||
b145d876
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
b145d876
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
b145d876 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 &&
b145d876
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` ||
b145d876
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
b145d876
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*-*-*) ;;
b145d876
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
b145d876
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
b145d876 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` ||
b145d876
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
b145d876
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*-*-*) ;;
b145d876
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
b145d876
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
b145d876 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` ||
b145d876
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
b145d876
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*-*-*) ;;
b145d876
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
b145d876
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
b145d876 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"
b145d876 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
b145d876
ZK
2138 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2139$as_echo "$AWK" >&6; }
795ca3e5 2140else
b145d876
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
b145d876
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
b145d876 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"
b145d876 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
b145d876
ZK
2184 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2185$as_echo "$CC" >&6; }
ad6254c5 2186else
b145d876
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
b145d876
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
b145d876 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"
b145d876 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
b145d876
ZK
2224 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2225$as_echo "$ac_ct_CC" >&6; }
ad6254c5 2226else
b145d876
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:)
b145d876 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
b145d876 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
b145d876
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
b145d876 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"
b145d876 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
b145d876
ZK
2281 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2282$as_echo "$CC" >&6; }
ad6254c5 2283else
b145d876
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
b145d876
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
b145d876 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"
b145d876 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
b145d876
ZK
2338 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2339$as_echo "$CC" >&6; }
795ca3e5 2340else
b145d876
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
b145d876
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
b145d876 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"
b145d876 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
b145d876
ZK
2380 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2381$as_echo "$CC" >&6; }
795ca3e5 2382else
b145d876
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
b145d876
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
b145d876 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"
b145d876 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
b145d876
ZK
2424 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2425$as_echo "$ac_ct_CC" >&6; }
ad6254c5 2426else
b145d876
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:)
b145d876 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
b145d876 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
b145d876 2455test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
ad6254c5 2456See \`config.log' for more details." >&5
b145d876 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.
b145d876
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
b145d876
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=$?
b145d876 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
b145d876
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=$?
b145d876 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
b145d876
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=$?
b145d876 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
b145d876 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.
b145d876
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
b145d876 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
b145d876
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=$?
b145d876 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
b145d876 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
b145d876
ZK
2583{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2584$as_echo "$ac_file" >&6; }
25fbec5b 2585if test -z "$ac_file"; then
b145d876 2586 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
2587sed 's/^/| /' conftest.$ac_ext >&5
2588
b145d876 2589{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
ad6254c5 2590See \`config.log' for more details." >&5
b145d876 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.
b145d876
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
b145d876
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=$?
b145d876 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
b145d876 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
b145d876 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
b145d876
ZK
2631{ $as_echo "$as_me:$LINENO: result: yes" >&5
2632$as_echo "yes" >&6; }
ad6254c5 2633
b145d876 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.
b145d876
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
b145d876
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
b145d876
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=$?
b145d876 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
b145d876 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
b145d876 2670 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
ad6254c5 2671See \`config.log' for more details." >&5
b145d876 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
b145d876
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
b145d876
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
b145d876 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
b145d876
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=$?
b145d876 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
b145d876 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
b145d876 2725 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
2726sed 's/^/| /' conftest.$ac_ext >&5
2727
b145d876 2728{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
ad6254c5 2729See \`config.log' for more details." >&5
b145d876 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
b145d876
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
b145d876
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
b145d876 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
b145d876
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
b145d876 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
b145d876 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
b145d876
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
b145d876
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
b145d876 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
b145d876
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
b145d876 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
b145d876 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
b145d876
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
b145d876 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
b145d876 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
b145d876
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
b145d876 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
b145d876 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
b145d876
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
b145d876
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
b145d876 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
b145d876
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
b145d876 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
b145d876 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)
b145d876
ZK
3062 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3063$as_echo "none needed" >&6; } ;;
7a197a62 3064 xno)
b145d876
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"
b145d876
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
b145d876
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
b145d876 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
b145d876
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
b145d876 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
b145d876 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
b145d876
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
b145d876 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
b145d876 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
b145d876
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
b145d876
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
b145d876 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
b145d876 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
b145d876
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
b145d876 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
b145d876 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
b145d876 3303 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
d0191583 3304See \`config.log' for more details." >&5
b145d876 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
b145d876
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; }
5556819a 3319if test "${ac_cv_path_GREP+set}" = set; then
b145d876 3320 $as_echo_n "(cached) " >&6
ad6254c5 3321else
b145d876 3322 if test -z "$GREP"; then
d0191583 3323 ac_path_GREP_found=false
b145d876
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
b145d876
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
b145d876 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"
b145d876 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
b145d876
ZK
3362 $ac_path_GREP_found && break 3
3363 done
d0191583 3364 done
ad6254c5 3365done
7a197a62 3366IFS=$as_save_IFS
b145d876
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; }; }
b145d876 3371 fi
80992638 3372else
d0191583 3373 ac_cv_path_GREP=$GREP
8106cdd5 3374fi
8106cdd5 3375
80992638 3376fi
b145d876
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
b145d876
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
b145d876 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
b145d876 3390 if test -z "$EGREP"; then
d0191583 3391 ac_path_EGREP_found=false
b145d876
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
b145d876
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
b145d876 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"
b145d876 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
b145d876
ZK
3430 $ac_path_EGREP_found && break 3
3431 done
d0191583 3432 done
8a2fc586 3433done
7a197a62 3434IFS=$as_save_IFS
b145d876
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; }; }
b145d876 3439 fi
d0191583
JM
3440else
3441 ac_cv_path_EGREP=$EGREP
3442fi
ad6254c5 3443
d0191583
JM
3444 fi
3445fi
b145d876
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
b145d876
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
b145d876 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
b145d876
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.
b145d876
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
b145d876 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
b145d876
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
b145d876 3566
d0191583
JM
3567done
3568IFS=$as_save_IFS
80992638 3569
b145d876 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
b145d876
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
b145d876
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
b145d876
ZK
3598 { $as_echo "$as_me:$LINENO: result: yes" >&5
3599$as_echo "yes" >&6; }
d0191583 3600else
b145d876
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
b145d876
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
b145d876 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
b145d876
ZK
3627 { $as_echo "$as_me:$LINENO: result: yes" >&5
3628$as_echo "yes" >&6; }
d0191583
JM
3629 SET_MAKE=
3630else
b145d876
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
b145d876
ZK
3636{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
3637$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
5556819a
AK
3638if test -z "$MKDIR_P"; then
3639 if test "${ac_cv_path_mkdir+set}" = set; then
b145d876 3640 $as_echo_n "(cached) " >&6
5556819a
AK
3641else
3642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3643for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3644do
3645 IFS=$as_save_IFS
3646 test -z "$as_dir" && as_dir=.
3647 for ac_prog in mkdir gmkdir; do
3648 for ac_exec_ext in '' $ac_executable_extensions; do
3649 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3650 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3651 'mkdir (GNU coreutils) '* | \
3652 'mkdir (coreutils) '* | \
3653 'mkdir (fileutils) '4.1*)
3654 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3655 break 3;;
3656 esac
3657 done
3658 done
3659done
3660IFS=$as_save_IFS
3661
3662fi
3663
3664 if test "${ac_cv_path_mkdir+set}" = set; then
3665 MKDIR_P="$ac_cv_path_mkdir -p"
3666 else
3667 # As a last resort, use the slow shell script. Don't cache a
3668 # value for MKDIR_P within a source directory, because that will
3669 # break other packages using the cache if that directory is
3670 # removed, or if the value is a relative name.
3671 test -d ./--version && rmdir ./--version
3672 MKDIR_P="$ac_install_sh -d"
3673 fi
3674fi
b145d876
ZK
3675{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
3676$as_echo "$MKDIR_P" >&6; }
5556819a 3677
d0191583
JM
3678if test -n "$ac_tool_prefix"; then
3679 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3680set dummy ${ac_tool_prefix}ranlib; ac_word=$2
b145d876
ZK
3681{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3682$as_echo_n "checking for $ac_word... " >&6; }
d0191583 3683if test "${ac_cv_prog_RANLIB+set}" = set; then
b145d876 3684 $as_echo_n "(cached) " >&6
d0191583
JM
3685else
3686 if test -n "$RANLIB"; then
3687 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3688else
3689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3690for as_dir in $PATH
3691do
3692 IFS=$as_save_IFS
3693 test -z "$as_dir" && as_dir=.
3694 for ac_exec_ext in '' $ac_executable_extensions; do
3695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3696 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
b145d876 3697 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
3698 break 2
3699 fi
3700done
3701done
3702IFS=$as_save_IFS
8106cdd5 3703
795ca3e5 3704fi
d0191583
JM
3705fi
3706RANLIB=$ac_cv_prog_RANLIB
3707if test -n "$RANLIB"; then
b145d876
ZK
3708 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
3709$as_echo "$RANLIB" >&6; }
d0191583 3710else
b145d876
ZK
3711 { $as_echo "$as_me:$LINENO: result: no" >&5
3712$as_echo "no" >&6; }
d0191583
JM
3713fi
3714
8106cdd5 3715
ad6254c5 3716fi
d0191583
JM
3717if test -z "$ac_cv_prog_RANLIB"; then
3718 ac_ct_RANLIB=$RANLIB
3719 # Extract the first word of "ranlib", so it can be a program name with args.
3720set dummy ranlib; ac_word=$2
b145d876
ZK
3721{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3722$as_echo_n "checking for $ac_word... " >&6; }
d0191583 3723if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
b145d876 3724 $as_echo_n "(cached) " >&6
ad6254c5 3725else
d0191583
JM
3726 if test -n "$ac_ct_RANLIB"; then
3727 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3728else
3729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3730for as_dir in $PATH
8106cdd5 3731do
d0191583
JM
3732 IFS=$as_save_IFS
3733 test -z "$as_dir" && as_dir=.
3734 for ac_exec_ext in '' $ac_executable_extensions; do
3735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3736 ac_cv_prog_ac_ct_RANLIB="ranlib"
b145d876 3737 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
3738 break 2
3739 fi
3740done
3741done
3742IFS=$as_save_IFS
3743
3744fi
3745fi
3746ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3747if test -n "$ac_ct_RANLIB"; then
b145d876
ZK
3748 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3749$as_echo "$ac_ct_RANLIB" >&6; }
ad6254c5 3750else
b145d876
ZK
3751 { $as_echo "$as_me:$LINENO: result: no" >&5
3752$as_echo "no" >&6; }
d0191583 3753fi
ad6254c5 3754
d0191583
JM
3755 if test "x$ac_ct_RANLIB" = x; then
3756 RANLIB=":"
3757 else
3758 case $cross_compiling:$ac_tool_warned in
3759yes:)
b145d876 3760{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
d0191583
JM
3761whose name does not start with the host triplet. If you think this
3762configuration is useful to you, please write to autoconf@gnu.org." >&5
b145d876 3763$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
d0191583
JM
3764whose name does not start with the host triplet. If you think this
3765configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3766ac_tool_warned=yes ;;
3767esac
3768 RANLIB=$ac_ct_RANLIB
3769 fi
3770else
3771 RANLIB="$ac_cv_prog_RANLIB"
ad6254c5 3772fi
7a197a62 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
b145d876
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
b145d876 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"
b145d876 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
b145d876
ZK
3806 { $as_echo "$as_me:$LINENO: result: $CFLOW_CMD" >&5
3807$as_echo "$CFLOW_CMD" >&6; }
80992638 3808else
b145d876
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
b145d876
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
b145d876 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"
b145d876 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
b145d876
ZK
3846 { $as_echo "$as_me:$LINENO: result: $CSCOPE_CMD" >&5
3847$as_echo "$CSCOPE_CMD" >&6; }
795ca3e5 3848else
b145d876
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
b145d876
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
b145d876 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
b145d876
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
b145d876 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
b145d876 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
b145d876
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
b145d876 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
b145d876
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
b145d876 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
b145d876
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
b145d876 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
b145d876
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
b145d876 3989 $as_echo "$as_me: failed program was:" >&5
d0191583 3990sed 's/^/| /' conftest.$ac_ext >&5
ad6254c5 3991
ad6254c5 3992
795ca3e5 3993fi
ad6254c5 3994
b145d876 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
b145d876
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
b145d876
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
b145d876 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
b145d876
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
b145d876 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
b145d876
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
b145d876 4077 $as_echo "$as_me: failed program was:" >&5
d0191583 4078sed 's/^/| /' conftest.$ac_ext >&5
7a197a62
AK
4079
4080
4081fi
4082
b145d876 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
b145d876
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
b145d876
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
b145d876 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
b145d876
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
b145d876 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
b145d876 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
b145d876
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=$?
b145d876 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
b145d876
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=$?
b145d876 4258 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
4259 (exit $ac_status); }; }; then
4260 :
795ca3e5 4261else
b145d876
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
b145d876 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
b145d876
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
b145d876
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
b145d876 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
b145d876
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
b145d876 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
b145d876 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
b145d876
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
b145d876
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
b145d876 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
b145d876
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
b145d876 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
b145d876 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
b145d876
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
b145d876
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
b145d876 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
b145d876
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
b145d876 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
b145d876 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
b145d876
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
b145d876 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
b145d876 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
b145d876
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
b145d876 4510 $as_echo_n "(cached) " >&6
d0191583 4511fi
b145d876
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?
b145d876
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
b145d876
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
b145d876 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
b145d876 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
b145d876
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?
b145d876
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
b145d876
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
b145d876 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
b145d876 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
b145d876
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: )
b145d876
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:* )
b145d876
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
b145d876
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
b145d876 4627 $as_echo_n "(cached) " >&6
d0191583
JM
4628else
4629 eval "$as_ac_Header=\$ac_header_preproc"
a38df97f 4630fi
b145d876
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
b145d876
ZK
4637if test `eval 'as_val=${'$as_ac_Header'}
4638 $as_echo "$as_val"'` = yes; then
ad6254c5 4639 cat >>confdefs.h <<_ACEOF
b145d876 4640#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 4641_ACEOF
a38df97f 4642
d0191583 4643else
b145d876
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
b145d876 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
b145d876
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
b145d876 4664 $as_echo_n "(cached) " >&6
ad6254c5 4665fi
b145d876
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?
b145d876
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
b145d876
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
b145d876 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
b145d876 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
b145d876
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?
b145d876
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
b145d876
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
b145d876 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
b145d876 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
b145d876
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: )
b145d876
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:* )
b145d876
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
b145d876
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
b145d876 4781 $as_echo_n "(cached) " >&6
ad6254c5 4782else
8a2fc586 4783 eval "$as_ac_Header=\$ac_header_preproc"
b896caa1 4784fi
b145d876
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
b145d876
ZK
4791if test `eval 'as_val=${'$as_ac_Header'}
4792 $as_echo "$as_val"'` = yes; then
ad6254c5 4793 cat >>confdefs.h <<_ACEOF
b145d876 4794#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 4795_ACEOF
b896caa1 4796
d8ac0fbc 4797else
b145d876
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
b145d876 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
b145d876
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
b145d876 4815 $as_echo_n "(cached) " >&6
ad6254c5 4816fi
b145d876
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?
b145d876
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
b145d876
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
b145d876 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
b145d876 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
b145d876
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?
b145d876
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
b145d876
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
b145d876 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
b145d876 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
b145d876
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: )
b145d876
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:* )
b145d876
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
b145d876
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
b145d876 4932 $as_echo_n "(cached) " >&6
ad6254c5 4933else
8a2fc586 4934 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 4935fi
b145d876
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
b145d876
ZK
4942if test `eval 'as_val=${'$as_ac_Header'}
4943 $as_echo "$as_val"'` = yes; then
ad6254c5 4944 cat >>confdefs.h <<_ACEOF
b145d876 4945#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 4946_ACEOF
4922197a 4947
4922197a 4948else
b145d876
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
b145d876 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
b145d876
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
b145d876 4983 $as_echo_n "(cached) " >&6
ad6254c5 4984fi
b145d876
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?
b145d876
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
b145d876
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
b145d876 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
b145d876 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
b145d876
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?
b145d876
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
b145d876
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
b145d876 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
b145d876 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
b145d876
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: )
b145d876
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:* )
b145d876
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
b145d876
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
b145d876 5100 $as_echo_n "(cached) " >&6
ad6254c5 5101else
8a2fc586 5102 eval "$as_ac_Header=\$ac_header_preproc"
80992638 5103fi
b145d876
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
b145d876
ZK
5110if test `eval 'as_val=${'$as_ac_Header'}
5111 $as_echo "$as_val"'` = yes; then
ad6254c5 5112 cat >>confdefs.h <<_ACEOF
b145d876 5113#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 5114_ACEOF
795ca3e5 5115
795ca3e5 5116else
b145d876
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
b145d876 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
b145d876
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
b145d876 5133 $as_echo_n "(cached) " >&6
ad6254c5 5134fi
b145d876
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?
b145d876
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
b145d876
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
b145d876 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
b145d876 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
b145d876
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?
b145d876
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
b145d876
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
b145d876 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
b145d876 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
b145d876
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: )
b145d876
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:* )
b145d876
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
b145d876
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
b145d876 5250 $as_echo_n "(cached) " >&6
ad6254c5 5251else
8a2fc586 5252 eval "$as_ac_Header=\$ac_header_preproc"
b896caa1 5253fi
b145d876
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
b145d876
ZK
5260if test `eval 'as_val=${'$as_ac_Header'}
5261 $as_echo "$as_val"'` = yes; then
ad6254c5 5262 cat >>confdefs.h <<_ACEOF
b145d876 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################################################################################
b145d876
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
b145d876 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
b145d876
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
b145d876 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
b145d876 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
b145d876
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
b145d876 5374#define const /**/
ad6254c5 5375_ACEOF
80992638 5376
d3c8211f 5377fi
d3c8211f 5378
b145d876
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
b145d876 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
b145d876
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
b145d876 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
b145d876 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
b145d876
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
b145d876
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
b145d876 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
b145d876
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
b145d876 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
b145d876 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
b145d876
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
b145d876 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
b145d876 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
b145d876
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
b145d876
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
b145d876 5556 $as_echo_n "(cached) " >&6
ad6254c5 5557else
b145d876
ZK
5558 ac_cv_type_off_t=no
5559cat >conftest.$ac_ext <<_ACEOF
fddafd51
ZK
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{
b145d876
ZK
5569if (sizeof (off_t))
5570 return 0;
5571 ;
5556819a 5572 return 0;
b145d876
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
b145d876
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
b145d876 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
b145d876 5627 :
ad6254c5 5628else
b145d876 5629 $as_echo "$as_me: failed program was:" >&5
ad6254c5 5630sed 's/^/| /' conftest.$ac_ext >&5
8ce0cbda 5631
b145d876 5632 ac_cv_type_off_t=yes
80992638 5633fi
7a197a62
AK
5634
5635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b145d876
ZK
5636else
5637 $as_echo "$as_me: failed program was:" >&5
5638sed 's/^/| /' conftest.$ac_ext >&5
5639
5640
ad6254c5 5641fi
b145d876
ZK
5642
5643rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5644fi
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
b145d876
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
b145d876 5660 $as_echo_n "(cached) " >&6
ad6254c5 5661else
b145d876
ZK
5662 ac_cv_type_pid_t=no
5663cat >conftest.$ac_ext <<_ACEOF
fddafd51
ZK
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{
b145d876
ZK
5673if (sizeof (pid_t))
5674 return 0;
5675 ;
5556819a 5676 return 0;
b145d876
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
b145d876
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
b145d876 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
b145d876 5731 :
ad6254c5 5732else
b145d876 5733 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5734sed 's/^/| /' conftest.$ac_ext >&5
5735
b145d876 5736 ac_cv_type_pid_t=yes
ad6254c5 5737fi
7a197a62
AK
5738
5739rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b145d876
ZK
5740else
5741 $as_echo "$as_me: failed program was:" >&5
5742sed 's/^/| /' conftest.$ac_ext >&5
5743
5744
80992638 5745fi
b145d876
ZK
5746
5747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5748fi
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
b145d876
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
b145d876 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
b145d876
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
b145d876 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
b145d876 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
b145d876
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
b145d876
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
b145d876 5822 $as_echo_n "(cached) " >&6
8106cdd5 5823else
b145d876
ZK
5824 ac_cv_type_size_t=no
5825cat >conftest.$ac_ext <<_ACEOF
fddafd51
ZK
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{
b145d876
ZK
5835if (sizeof (size_t))
5836 return 0;
5837 ;
5556819a 5838 return 0;
b145d876
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
b145d876
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
b145d876 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
b145d876 5893 :
ad6254c5 5894else
b145d876 5895 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5896sed 's/^/| /' conftest.$ac_ext >&5
5897
b145d876 5898 ac_cv_type_size_t=yes
80992638 5899fi
7a197a62
AK
5900
5901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b145d876
ZK
5902else
5903 $as_echo "$as_me: failed program was:" >&5
5904sed 's/^/| /' conftest.$ac_ext >&5
5905
5906
ad6254c5 5907fi
b145d876
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
b145d876
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
b145d876 5926 $as_echo_n "(cached) " >&6
ad6254c5 5927else
b145d876
ZK
5928 ac_cv_type_mode_t=no
5929cat >conftest.$ac_ext <<_ACEOF
fddafd51
ZK
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{
b145d876
ZK
5939if (sizeof (mode_t))
5940 return 0;
5941 ;
5556819a 5942 return 0;
b145d876
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
b145d876
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
b145d876 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
b145d876 5997 :
fddafd51 5998else
b145d876 5999 $as_echo "$as_me: failed program was:" >&5
fddafd51
ZK
6000sed 's/^/| /' conftest.$ac_ext >&5
6001
b145d876
ZK
6002 ac_cv_type_mode_t=yes
6003fi
6004
6005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6006else
6007 $as_echo "$as_me: failed program was:" >&5
6008sed 's/^/| /' conftest.$ac_ext >&5
6009
6010
80992638 6011fi
7a197a62
AK
6012
6013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 6014fi
b145d876
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
b145d876
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
b145d876 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
b145d876
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
b145d876 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
b145d876 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
b145d876
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
b145d876 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
b145d876 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
b145d876
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
b145d876
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
b145d876 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;
b145d876 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
b145d876
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
b145d876 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
b145d876 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
b145d876
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
b145d876
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
b145d876 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
b145d876
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
b145d876 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
b145d876
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
b145d876 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
b145d876 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
b145d876
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
b145d876 6307#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
6308_ACEOF
6309
6310else
b145d876
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!
b145d876
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
b145d876 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
b145d876
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
b145d876 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
b145d876
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
b145d876 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
b145d876 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
b145d876
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
b145d876
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
b145d876 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
b145d876
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
b145d876 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
b145d876
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
b145d876 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
b145d876 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
b145d876
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
b145d876
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
b145d876 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
b145d876
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
b145d876
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
b145d876 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
b145d876
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
b145d876 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
b145d876
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
b145d876 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
b145d876 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
b145d876
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
b145d876
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
b145d876 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
b145d876
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=$?
b145d876 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
b145d876
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=$?
b145d876 6666 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
6667 (exit $ac_status); }; }; then
6668 ac_cv_c_stack_direction=1
6669else
b145d876
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
b145d876 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
b145d876
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
b145d876
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
b145d876 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
b145d876
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=$?
b145d876 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
b145d876
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=$?
b145d876 6741 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
6742 (exit $ac_status); }; }; then
6743 ac_cv_func_closedir_void=no
6744else
b145d876
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
b145d876 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
b145d876
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
b145d876 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
b145d876
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
b145d876 6776 $as_echo_n "(cached) " >&6
ad6254c5 6777fi
b145d876
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?
b145d876
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
b145d876
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
b145d876 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
b145d876 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
b145d876
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?
b145d876
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
b145d876
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
b145d876 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
b145d876 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
b145d876
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: )
b145d876
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:* )
b145d876
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
b145d876
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
b145d876 6893 $as_echo_n "(cached) " >&6
ad6254c5 6894else
8a2fc586 6895 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 6896fi
b145d876
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
b145d876
ZK
6903if test `eval 'as_val=${'$as_ac_Header'}
6904 $as_echo "$as_val"'` = yes; then
ad6254c5 6905 cat >>confdefs.h <<_ACEOF
b145d876 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
b145d876
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
b145d876 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
b145d876
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
b145d876 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
b145d876
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
b145d876 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
b145d876 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
b145d876
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
b145d876 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
b145d876
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
b145d876 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
b145d876
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=$?
b145d876 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
b145d876
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=$?
b145d876 7061 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7062 (exit $ac_status); }; }; then
7063 ac_cv_func_fork_works=yes
7064else
b145d876
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
b145d876 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
b145d876
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
b145d876
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
b145d876
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
b145d876 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
b145d876
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=$?
b145d876 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
b145d876
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=$?
b145d876 7223 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7224 (exit $ac_status); }; }; then
7225 ac_cv_func_vfork_works=yes
7226else
b145d876
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
b145d876 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
b145d876
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
b145d876
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
b145d876
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
b145d876 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
b145d876
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=$?
b145d876 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
b145d876
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=$?
b145d876 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
b145d876
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
b145d876 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
b145d876
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
b145d876
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
b145d876 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
b145d876
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=$?
b145d876 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
b145d876
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=$?
b145d876 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
b145d876
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
b145d876 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
b145d876
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
b145d876 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
b145d876
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
b145d876 7449 $as_echo_n "(cached) " >&6
ad6254c5 7450fi
b145d876
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?
b145d876
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
b145d876
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
b145d876 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
b145d876 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
b145d876
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?
b145d876
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
b145d876
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
b145d876 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
b145d876 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
b145d876
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: )
b145d876
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:* )
b145d876
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
b145d876
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
b145d876 7566 $as_echo_n "(cached) " >&6
ad6254c5 7567else
8a2fc586 7568 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 7569fi
b145d876
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
b145d876
ZK
7576if test `eval 'as_val=${'$as_ac_Header'}
7577 $as_echo "$as_val"'` = yes; then
ad6254c5 7578 cat >>confdefs.h <<_ACEOF
b145d876 7579#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
7580_ACEOF
7581
7582fi
7583
7584done
7585
b145d876
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
b145d876 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
b145d876
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=$?
b145d876 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
b145d876
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=$?
b145d876 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
b145d876
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
b145d876 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
b145d876
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
b145d876
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
b145d876 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
b145d876
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=$?
b145d876 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
b145d876
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=$?
b145d876 7746 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7747 (exit $ac_status); }; }; then
7748 ac_cv_func_memcmp_working=yes
7749else
b145d876
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
b145d876 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
b145d876
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
b145d876 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
b145d876
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
b145d876 7781 $as_echo_n "(cached) " >&6
ad6254c5 7782fi
b145d876
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?
b145d876
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
b145d876
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
b145d876 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
b145d876 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
b145d876
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?
b145d876
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
b145d876
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
b145d876 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
b145d876 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
b145d876
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: )
b145d876
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:* )
b145d876
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
b145d876
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
b145d876 7898 $as_echo_n "(cached) " >&6
ad6254c5 7899else
8a2fc586 7900 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 7901fi
b145d876
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
b145d876
ZK
7908if test `eval 'as_val=${'$as_ac_Header'}
7909 $as_echo "$as_val"'` = yes; then
ad6254c5 7910 cat >>confdefs.h <<_ACEOF
b145d876 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
b145d876
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
b145d876 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
b145d876
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
b145d876 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
b145d876
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
b145d876 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
b145d876 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
b145d876
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
b145d876 8012#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
8013_ACEOF
8014
8015fi
8016done
8017
b145d876
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
b145d876 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
b145d876
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=$?
b145d876 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
b145d876
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=$?
b145d876 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
b145d876
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
b145d876 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
b145d876
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
b145d876
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
b145d876 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
b145d876
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=$?
b145d876 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
b145d876
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=$?
b145d876 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
b145d876
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
b145d876 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
b145d876
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
b145d876
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
b145d876 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
b145d876
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=$?
b145d876 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
b145d876
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=$?
b145d876 8349 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
8350 (exit $ac_status); }; }; then
8351 ac_cv_func_strtod=yes
8352else
b145d876
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
b145d876 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
b145d876
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
b145d876
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
b145d876 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
b145d876
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
b145d876 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
b145d876
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
b145d876 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
b145d876 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
b145d876
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
b145d876
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
b145d876 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
b145d876
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
b145d876 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
b145d876
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
b145d876 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
b145d876 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
b145d876
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
b145d876
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
b145d876
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
b145d876 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
b145d876
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
b145d876 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
b145d876
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
b145d876 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
b145d876 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
b145d876
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
b145d876 8632#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
d0191583 8633_ACEOF
7a197a62 8634
b145d876
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
b145d876 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
b145d876
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
b145d876 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
b145d876
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
b145d876 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
b145d876 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
b145d876
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################################################################################
b145d876
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
b145d876
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################################################################################
b145d876
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
b145d876
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################################################################################
b145d876
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
b145d876
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################################################################################
b145d876
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
b145d876
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 ];
b145d876 8807 then { { $as_echo "$as_me:$LINENO: error: --with-lvm1 parameter invalid
d0191583 8808" >&5
b145d876 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################################################################################
b145d876
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
b145d876
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 ];
b145d876 8837 then { { $as_echo "$as_me:$LINENO: error: --with-pool parameter invalid
d0191583 8838" >&5
b145d876 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################################################################################
b145d876
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
b145d876
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 ];
b145d876 8865 then { { $as_echo "$as_me:$LINENO: error: --with-cluster parameter invalid
06f62ad1 8866" >&5
b145d876 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################################################################################
b145d876
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
b145d876
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 ];
b145d876 8895 then { { $as_echo "$as_me:$LINENO: error: --with-snapshots parameter invalid
d0191583 8896" >&5
b145d876 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################################################################################
b145d876
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
b145d876
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 ];
b145d876 8925 then { { $as_echo "$as_me:$LINENO: error: --with-mirrors parameter invalid
d0191583 8926" >&5
b145d876 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################################################################################
b145d876
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
06e459df 8947 READLINE=maybe
d0191583 8948fi
8a2fc586 8949
b145d876
ZK
8950{ $as_echo "$as_me:$LINENO: result: $READLINE" >&5
8951$as_echo "$READLINE" >&6; }
8a2fc586 8952
d0191583 8953################################################################################
b145d876
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
b145d876
ZK
8961{ $as_echo "$as_me:$LINENO: result: $REALTIME" >&5
8962$as_echo "$REALTIME" >&6; }
d0191583
JM
8963
8964################################################################################
b145d876
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
b145d876
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################################################################################
b145d876
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
b145d876
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################################################################################
b145d876
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
b145d876
ZK
9013{ $as_echo "$as_me:$LINENO: result: $COPTIMISE_FLAG" >&5
9014$as_echo "$COPTIMISE_FLAG" >&6; }
fddafd51
ZK
9015
9016################################################################################
b145d876
ZK
9017{ $as_echo "$as_me:$LINENO: checking whether to gather gcov profiling data" >&5
9018$as_echo_n "checking whether to gather gcov profiling data... " >&6; }
fddafd51
ZK
9019# Check whether --enable-profiling was given.
9020if test "${enable_profiling+set}" = set; then
5556819a 9021 enableval=$enable_profiling; PROFILING=$enableval
fddafd51 9022else
5556819a 9023 PROFILING=no
fddafd51
ZK
9024fi
9025
b145d876
ZK
9026{ $as_echo "$as_me:$LINENO: result: $PROFILING" >&5
9027$as_echo "$PROFILING" >&6; }
5556819a
AK
9028
9029if test "x$PROFILING" = xyes; then
9030 COPTIMISE_FLAG="$COPTIMISE_FLAG -fprofile-arcs -ftest-coverage"
9031 # Extract the first word of "lcov", so it can be a program name with args.
fddafd51 9032set dummy lcov; ac_word=$2
b145d876
ZK
9033{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9034$as_echo_n "checking for $ac_word... " >&6; }
fddafd51 9035if test "${ac_cv_path_LCOV+set}" = set; then
b145d876 9036 $as_echo_n "(cached) " >&6
fddafd51
ZK
9037else
9038 case $LCOV in
9039 [\\/]* | ?:[\\/]*)
9040 ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path.
9041 ;;
9042 *)
9043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9044for as_dir in $PATH
9045do
9046 IFS=$as_save_IFS
9047 test -z "$as_dir" && as_dir=.
9048 for ac_exec_ext in '' $ac_executable_extensions; do
9049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9050 ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext"
b145d876 9051 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
fddafd51
ZK
9052 break 2
9053 fi
9054done
9055done
9056IFS=$as_save_IFS
9057
b145d876 9058 test -z "$ac_cv_path_LCOV" && ac_cv_path_LCOV="no"
fddafd51
ZK
9059 ;;
9060esac
9061fi
9062LCOV=$ac_cv_path_LCOV
9063if test -n "$LCOV"; then
b145d876
ZK
9064 { $as_echo "$as_me:$LINENO: result: $LCOV" >&5
9065$as_echo "$LCOV" >&6; }
fddafd51 9066else
b145d876
ZK
9067 { $as_echo "$as_me:$LINENO: result: no" >&5
9068$as_echo "no" >&6; }
fddafd51
ZK
9069fi
9070
9071
5556819a 9072 # Extract the first word of "genhtml", so it can be a program name with args.
fddafd51 9073set dummy genhtml; ac_word=$2
b145d876
ZK
9074{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9075$as_echo_n "checking for $ac_word... " >&6; }
fddafd51 9076if test "${ac_cv_path_GENHTML+set}" = set; then
b145d876 9077 $as_echo_n "(cached) " >&6
fddafd51
ZK
9078else
9079 case $GENHTML in
9080 [\\/]* | ?:[\\/]*)
9081 ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path.
9082 ;;
9083 *)
9084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9085for as_dir in $PATH
9086do
9087 IFS=$as_save_IFS
9088 test -z "$as_dir" && as_dir=.
9089 for ac_exec_ext in '' $ac_executable_extensions; do
9090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9091 ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext"
b145d876 9092 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
fddafd51
ZK
9093 break 2
9094 fi
9095done
9096done
9097IFS=$as_save_IFS
9098
b145d876 9099 test -z "$ac_cv_path_GENHTML" && ac_cv_path_GENHTML="no"
fddafd51
ZK
9100 ;;
9101esac
9102fi
9103GENHTML=$ac_cv_path_GENHTML
9104if test -n "$GENHTML"; then
b145d876
ZK
9105 { $as_echo "$as_me:$LINENO: result: $GENHTML" >&5
9106$as_echo "$GENHTML" >&6; }
fddafd51 9107else
b145d876
ZK
9108 { $as_echo "$as_me:$LINENO: result: no" >&5
9109$as_echo "no" >&6; }
fddafd51
ZK
9110fi
9111
9112
b145d876
ZK
9113 if test "$LCOV" = no -o "$GENHTML" = no ; then
9114 { { $as_echo "$as_me:$LINENO: error: lcov and genhtml are required for profiling" >&5
9115$as_echo "$as_me: error: lcov and genhtml are required for profiling" >&2;}
9116 { (exit 1); exit 1; }; }
9117 fi
5556819a 9118fi
d0191583
JM
9119
9120################################################################################
b145d876
ZK
9121{ $as_echo "$as_me:$LINENO: checking whether to use device-mapper" >&5
9122$as_echo_n "checking whether to use device-mapper... " >&6; }
d0191583
JM
9123# Check whether --enable-devmapper was given.
9124if test "${enable_devmapper+set}" = set; then
9125 enableval=$enable_devmapper; DEVMAPPER=$enableval
fc54be10
AK
9126fi
9127
b145d876
ZK
9128{ $as_echo "$as_me:$LINENO: result: $DEVMAPPER" >&5
9129$as_echo "$DEVMAPPER" >&6; }
d0191583
JM
9130
9131if test x$DEVMAPPER = xyes; then
ad6254c5
AK
9132
9133cat >>confdefs.h <<\_ACEOF
d0191583 9134#define DEVMAPPER_SUPPORT 1
ad6254c5
AK
9135_ACEOF
9136
9137fi
9138
d0191583 9139################################################################################
b145d876
ZK
9140{ $as_echo "$as_me:$LINENO: checking whether to enable O_DIRECT" >&5
9141$as_echo_n "checking whether to enable O_DIRECT... " >&6; }
d0191583
JM
9142# Check whether --enable-o_direct was given.
9143if test "${enable_o_direct+set}" = set; then
9144 enableval=$enable_o_direct; ODIRECT=$enableval
ad6254c5 9145fi
ad6254c5 9146
b145d876
ZK
9147{ $as_echo "$as_me:$LINENO: result: $ODIRECT" >&5
9148$as_echo "$ODIRECT" >&6; }
ad6254c5 9149
d0191583 9150if test x$ODIRECT = xyes; then
ad6254c5 9151
d0191583
JM
9152cat >>confdefs.h <<\_ACEOF
9153#define O_DIRECT_SUPPORT 1
9154_ACEOF
ad6254c5 9155
d0191583 9156fi
ad6254c5 9157
d0191583 9158################################################################################
b145d876
ZK
9159{ $as_echo "$as_me:$LINENO: checking whether to compile liblvm2cmd.so" >&5
9160$as_echo_n "checking whether to compile liblvm2cmd.so... " >&6; }
d0191583
JM
9161# Check whether --enable-cmdlib was given.
9162if test "${enable_cmdlib+set}" = set; then
9163 enableval=$enable_cmdlib; CMDLIB=$enableval
ad6254c5 9164else
d0191583
JM
9165 CMDLIB=no
9166fi
8a2fc586 9167
b145d876
ZK
9168{ $as_echo "$as_me:$LINENO: result: $CMDLIB" >&5
9169$as_echo "$CMDLIB" >&6; }
8a2fc586 9170
2a9a80c9 9171test x$CMDLIB = xyes \
d179cc7a
JM
9172 && LVM2CMD_LIB=-llvm2cmd \
9173 || LVM2CMD_LIB=
9174
2a9a80c9 9175
d0191583 9176################################################################################
b145d876
ZK
9177{ $as_echo "$as_me:$LINENO: checking whether to install fsadm" >&5
9178$as_echo_n "checking whether to install fsadm... " >&6; }
d0191583
JM
9179# Check whether --enable-fsadm was given.
9180if test "${enable_fsadm+set}" = set; then
9181 enableval=$enable_fsadm; FSADM=$enableval
9182fi
8a2fc586 9183
b145d876
ZK
9184{ $as_echo "$as_me:$LINENO: result: $FSADM" >&5
9185$as_echo "$FSADM" >&6; }
8a2fc586 9186
d0191583 9187################################################################################
b145d876
ZK
9188{ $as_echo "$as_me:$LINENO: checking whether to use dmeventd" >&5
9189$as_echo_n "checking whether to use dmeventd... " >&6; }
d0191583
JM
9190# Check whether --enable-dmeventd was given.
9191if test "${enable_dmeventd+set}" = set; then
9192 enableval=$enable_dmeventd; DMEVENTD=$enableval
9193fi
ad6254c5 9194
b145d876
ZK
9195{ $as_echo "$as_me:$LINENO: result: $DMEVENTD" >&5
9196$as_echo "$DMEVENTD" >&6; }
ad6254c5 9197
2a9a80c9
PR
9198if test x$DMEVENTD = xyes; then
9199 if test x$MIRRORS != xinternal; then
b145d876 9200 { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd currently requires --with-mirrors=internal
2a9a80c9 9201 " >&5
b145d876 9202$as_echo "$as_me: error: --enable-dmeventd currently requires --with-mirrors=internal
2a9a80c9 9203 " >&2;}
d0191583 9204 { (exit 1); exit 1; }; }
2a9a80c9
PR
9205 fi
9206 if test x$CMDLIB = xno; then
b145d876 9207 { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd requires --enable-cmdlib to be used as well
2a9a80c9 9208 " >&5
b145d876 9209$as_echo "$as_me: error: --enable-dmeventd requires --enable-cmdlib to be used as well
2a9a80c9
PR
9210 " >&2;}
9211 { (exit 1); exit 1; }; }
9212 fi
ad6254c5 9213fi
7a197a62 9214
d0191583
JM
9215if test x$DMEVENTD = xyes; then
9216
9217cat >>confdefs.h <<\_ACEOF
9218#define DMEVENTD 1
ad6254c5
AK
9219_ACEOF
9220
ad6254c5 9221fi
d0191583
JM
9222################################################################################
9223if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ];
9224 then exec_prefix="";
9225fi;
ad6254c5
AK
9226
9227################################################################################
06e459df 9228if test x$READLINE != xno; then
b145d876
ZK
9229 { $as_echo "$as_me:$LINENO: checking for library containing tgetent" >&5
9230$as_echo_n "checking for library containing tgetent... " >&6; }
ad6254c5 9231if test "${ac_cv_search_tgetent+set}" = set; then
b145d876 9232 $as_echo_n "(cached) " >&6
ad6254c5
AK
9233else
9234 ac_func_search_save_LIBS=$LIBS
ad6254c5 9235cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9236/* confdefs.h. */
9237_ACEOF
9238cat confdefs.h >>conftest.$ac_ext
9239cat >>conftest.$ac_ext <<_ACEOF
9240/* end confdefs.h. */
9241
7a197a62
AK
9242/* Override any GCC internal prototype to avoid an error.
9243 Use char because int might match the return type of a GCC
9244 builtin and then its argument prototype would still apply. */
ad6254c5
AK
9245#ifdef __cplusplus
9246extern "C"
9247#endif
ad6254c5
AK
9248char tgetent ();
9249int
9250main ()
9251{
7a197a62 9252return tgetent ();
ad6254c5
AK
9253 ;
9254 return 0;
9255}
9256_ACEOF
7a197a62
AK
9257for ac_lib in '' ncurses curses termcap termlib; do
9258 if test -z "$ac_lib"; then
9259 ac_res="none required"
9260 else
9261 ac_res=-l$ac_lib
9262 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9263 fi
9264 rm -f conftest.$ac_objext conftest$ac_exeext
9265if { (ac_try="$ac_link"
9266case "(($ac_try" in
9267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9268 *) ac_try_echo=$ac_try;;
9269esac
b145d876
ZK
9270eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9271$as_echo "$ac_try_echo") >&5
7a197a62 9272 (eval "$ac_link") 2>conftest.er1
ad6254c5 9273 ac_status=$?
8a2fc586
AK
9274 grep -v '^ *+' conftest.er1 >conftest.err
9275 rm -f conftest.er1
9276 cat conftest.err >&5
b145d876 9277 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9278 (exit $ac_status); } && {
9279 test -z "$ac_c_werror_flag" ||
9280 test ! -s conftest.err
b145d876
ZK
9281 } && test -s conftest$ac_exeext && {
9282 test "$cross_compiling" = yes ||
9283 $as_test_x conftest$ac_exeext
9284 }; then
7a197a62 9285 ac_cv_search_tgetent=$ac_res
ad6254c5 9286else
b145d876 9287 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
9288sed 's/^/| /' conftest.$ac_ext >&5
9289
ad6254c5 9290
7a197a62 9291fi
ad6254c5 9292
b145d876 9293rm -rf conftest.dSYM
25fbec5b 9294rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7a197a62
AK
9295 conftest$ac_exeext
9296 if test "${ac_cv_search_tgetent+set}" = set; then
9297 break
ad6254c5 9298fi
7a197a62
AK
9299done
9300if test "${ac_cv_search_tgetent+set}" = set; then
9301 :
9302else
9303 ac_cv_search_tgetent=no
ad6254c5 9304fi
7a197a62 9305rm conftest.$ac_ext
ad6254c5
AK
9306LIBS=$ac_func_search_save_LIBS
9307fi
b145d876
ZK
9308{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
9309$as_echo "$ac_cv_search_tgetent" >&6; }
7a197a62
AK
9310ac_res=$ac_cv_search_tgetent
9311if test "$ac_res" != no; then
9312 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
06e459df 9313 tg_found=yes
ad6254c5 9314else
06e459df
JM
9315 tg_found=no
9316fi
9317
9318 test x$READLINE:$tg_found = xyes:no &&
b145d876 9319 { { $as_echo "$as_me:$LINENO: error: termcap could not be found which is required for the
ad6254c5
AK
9320--enable-readline option (which is enabled by default). Either disable readline
9321support with --disable-readline or download and install termcap from:
9322 ftp.gnu.org/gnu/termcap
9323Note: if you are using precompiled packages you will also need the development
9324 package as well (which may be called termcap-devel or something similar).
9325Note: (n)curses also seems to work as a substitute for termcap. This was
9326 not found either - but you could try installing that as well.
9327" >&5
b145d876 9328$as_echo "$as_me: error: termcap could not be found which is required for the
ad6254c5
AK
9329--enable-readline option (which is enabled by default). Either disable readline
9330support with --disable-readline or download and install termcap from:
9331 ftp.gnu.org/gnu/termcap
9332Note: if you are using precompiled packages you will also need the development
9333 package as well (which may be called termcap-devel or something similar).
9334Note: (n)curses also seems to work as a substitute for termcap. This was
9335 not found either - but you could try installing that as well.
9336" >&2;}
9337 { (exit 1); exit 1; }; }
ad6254c5
AK
9338fi
9339
9340################################################################################
b145d876
ZK
9341{ $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9342$as_echo_n "checking for dlopen in -ldl... " >&6; }
ad6254c5 9343if test "${ac_cv_lib_dl_dlopen+set}" = set; then
b145d876 9344 $as_echo_n "(cached) " >&6
ad6254c5
AK
9345else
9346 ac_check_lib_save_LIBS=$LIBS
9347LIBS="-ldl $LIBS"
9348cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9349/* confdefs.h. */
9350_ACEOF
9351cat confdefs.h >>conftest.$ac_ext
9352cat >>conftest.$ac_ext <<_ACEOF
9353/* end confdefs.h. */
9354
7a197a62
AK
9355/* Override any GCC internal prototype to avoid an error.
9356 Use char because int might match the return type of a GCC
9357 builtin and then its argument prototype would still apply. */
ad6254c5
AK
9358#ifdef __cplusplus
9359extern "C"
9360#endif
ad6254c5
AK
9361char dlopen ();
9362int
9363main ()
9364{
7a197a62 9365return dlopen ();
ad6254c5
AK
9366 ;
9367 return 0;
9368}
9369_ACEOF
9370rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
9371if { (ac_try="$ac_link"
9372case "(($ac_try" in
9373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9374 *) ac_try_echo=$ac_try;;
9375esac
b145d876
ZK
9376eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9377$as_echo "$ac_try_echo") >&5
7a197a62 9378 (eval "$ac_link") 2>conftest.er1
ad6254c5 9379 ac_status=$?
8a2fc586
AK
9380 grep -v '^ *+' conftest.er1 >conftest.err
9381 rm -f conftest.er1
9382 cat conftest.err >&5
b145d876 9383 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9384 (exit $ac_status); } && {
9385 test -z "$ac_c_werror_flag" ||
9386 test ! -s conftest.err
b145d876
ZK
9387 } && test -s conftest$ac_exeext && {
9388 test "$cross_compiling" = yes ||
9389 $as_test_x conftest$ac_exeext
9390 }; then
ad6254c5
AK
9391 ac_cv_lib_dl_dlopen=yes
9392else
b145d876 9393 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
9394sed 's/^/| /' conftest.$ac_ext >&5
9395
7a197a62 9396 ac_cv_lib_dl_dlopen=no
ad6254c5 9397fi
7a197a62 9398
b145d876 9399rm -rf conftest.dSYM
25fbec5b 9400rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 9401 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
9402LIBS=$ac_check_lib_save_LIBS
9403fi
b145d876
ZK
9404{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9405$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
ad6254c5
AK
9406if test $ac_cv_lib_dl_dlopen = yes; then
9407 HAVE_LIBDL=yes
9408else
9409 HAVE_LIBDL=no
9410fi
9411
9412
7e9e9502 9413if [ "x$HAVE_LIBDL" = xyes ]; then
72b2cb61
AK
9414
9415cat >>confdefs.h <<\_ACEOF
9416#define HAVE_LIBDL 1
9417_ACEOF
9418
ad6254c5
AK
9419 LIBS="-ldl $LIBS"
9420else
9421 HAVE_LIBDL=no
9422fi
9423
9424################################################################################
9425if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \
9426 -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \
9427 \) -a "x$STATIC_LINK" = xyes ];
b145d876 9428 then { { $as_echo "$as_me:$LINENO: error: Features cannot be 'shared' when building statically
ad6254c5 9429" >&5
b145d876 9430$as_echo "$as_me: error: Features cannot be 'shared' when building statically
ad6254c5
AK
9431" >&2;}
9432 { (exit 1); exit 1; }; }
9433fi
9434
d0191583 9435################################################################################
b145d876
ZK
9436{ $as_echo "$as_me:$LINENO: checking whether to use static linking" >&5
9437$as_echo_n "checking whether to use static linking... " >&6; }
d0191583
JM
9438# Check whether --enable-static_link was given.
9439if test "${enable_static_link+set}" = set; then
9440 enableval=$enable_static_link; STATIC_LINK=$enableval
9441else
9442 STATIC_LINK=no
9443fi
9444
b145d876
ZK
9445{ $as_echo "$as_me:$LINENO: result: $STATIC_LINK" >&5
9446$as_echo "$STATIC_LINK" >&6; }
d0191583
JM
9447
9448################################################################################
b145d876
ZK
9449{ $as_echo "$as_me:$LINENO: checking whether to enable selinux support" >&5
9450$as_echo_n "checking whether to enable selinux support... " >&6; }
d0191583
JM
9451# Check whether --enable-selinux was given.
9452if test "${enable_selinux+set}" = set; then
9453 enableval=$enable_selinux; SELINUX=$enableval
9454fi
9455
b145d876
ZK
9456{ $as_echo "$as_me:$LINENO: result: $SELINUX" >&5
9457$as_echo "$SELINUX" >&6; }
d0191583 9458
ad6254c5
AK
9459################################################################################
9460if test x$SELINUX = xyes; then
b145d876
ZK
9461 { $as_echo "$as_me:$LINENO: checking for sepol_check_context in -lsepol" >&5
9462$as_echo_n "checking for sepol_check_context in -lsepol... " >&6; }
8a2fc586 9463if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then
b145d876 9464 $as_echo_n "(cached) " >&6
8a2fc586
AK
9465else
9466 ac_check_lib_save_LIBS=$LIBS
9467LIBS="-lsepol $LIBS"
9468cat >conftest.$ac_ext <<_ACEOF
9469/* confdefs.h. */
9470_ACEOF
9471cat confdefs.h >>conftest.$ac_ext
9472cat >>conftest.$ac_ext <<_ACEOF
9473/* end confdefs.h. */
9474
7a197a62
AK
9475/* Override any GCC internal prototype to avoid an error.
9476 Use char because int might match the return type of a GCC
9477 builtin and then its argument prototype would still apply. */
8a2fc586
AK
9478#ifdef __cplusplus
9479extern "C"
9480#endif
8a2fc586
AK
9481char sepol_check_context ();
9482int
9483main ()
9484{
7a197a62 9485return sepol_check_context ();
8a2fc586
AK
9486 ;
9487 return 0;
9488}
9489_ACEOF
9490rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
9491if { (ac_try="$ac_link"
9492case "(($ac_try" in
9493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9494 *) ac_try_echo=$ac_try;;
9495esac
b145d876
ZK
9496eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9497$as_echo "$ac_try_echo") >&5
7a197a62 9498 (eval "$ac_link") 2>conftest.er1
8a2fc586
AK
9499 ac_status=$?
9500 grep -v '^ *+' conftest.er1 >conftest.err
9501 rm -f conftest.er1
9502 cat conftest.err >&5
b145d876 9503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9504 (exit $ac_status); } && {
9505 test -z "$ac_c_werror_flag" ||
9506 test ! -s conftest.err
b145d876
ZK
9507 } && test -s conftest$ac_exeext && {
9508 test "$cross_compiling" = yes ||
9509 $as_test_x conftest$ac_exeext
9510 }; then
8a2fc586
AK
9511 ac_cv_lib_sepol_sepol_check_context=yes
9512else
b145d876 9513 $as_echo "$as_me: failed program was:" >&5
8a2fc586
AK
9514sed 's/^/| /' conftest.$ac_ext >&5
9515
7a197a62 9516 ac_cv_lib_sepol_sepol_check_context=no
8a2fc586 9517fi
7a197a62 9518
b145d876 9519rm -rf conftest.dSYM
25fbec5b 9520rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586
AK
9521 conftest$ac_exeext conftest.$ac_ext
9522LIBS=$ac_check_lib_save_LIBS
9523fi
b145d876
ZK
9524{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sepol_sepol_check_context" >&5
9525$as_echo "$ac_cv_lib_sepol_sepol_check_context" >&6; }
8a2fc586
AK
9526if test $ac_cv_lib_sepol_sepol_check_context = yes; then
9527 HAVE_SEPOL=yes
9528else
9529 HAVE_SEPOL=no
9530fi
9531
8a2fc586
AK
9532
9533 if test x$HAVE_SEPOL = xyes; then
d0191583
JM
9534
9535cat >>confdefs.h <<\_ACEOF
9536#define HAVE_SEPOL 1
9537_ACEOF
9538
8a2fc586
AK
9539 LIBS="-lsepol $LIBS"
9540 fi
9541
b145d876
ZK
9542 { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
9543$as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
ad6254c5 9544if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
b145d876 9545 $as_echo_n "(cached) " >&6
ad6254c5
AK
9546else
9547 ac_check_lib_save_LIBS=$LIBS
9548LIBS="-lselinux $LIBS"
9549cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9550/* confdefs.h. */
9551_ACEOF
9552cat confdefs.h >>conftest.$ac_ext
9553cat >>conftest.$ac_ext <<_ACEOF
9554/* end confdefs.h. */
9555
7a197a62
AK
9556/* Override any GCC internal prototype to avoid an error.
9557 Use char because int might match the return type of a GCC
9558 builtin and then its argument prototype would still apply. */
ad6254c5
AK
9559#ifdef __cplusplus
9560extern "C"
9561#endif
ad6254c5
AK
9562char is_selinux_enabled ();
9563int
9564main ()
9565{
7a197a62 9566return is_selinux_enabled ();
ad6254c5
AK
9567 ;
9568 return 0;
9569}
9570_ACEOF
9571rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
9572if { (ac_try="$ac_link"
9573case "(($ac_try" in
9574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9575 *) ac_try_echo=$ac_try;;
9576esac
b145d876
ZK
9577eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9578$as_echo "$ac_try_echo") >&5
7a197a62 9579 (eval "$ac_link") 2>conftest.er1
ad6254c5 9580 ac_status=$?
8a2fc586
AK
9581 grep -v '^ *+' conftest.er1 >conftest.err
9582 rm -f conftest.er1
9583 cat conftest.err >&5
b145d876 9584 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9585 (exit $ac_status); } && {
9586 test -z "$ac_c_werror_flag" ||
9587 test ! -s conftest.err
b145d876
ZK
9588 } && test -s conftest$ac_exeext && {
9589 test "$cross_compiling" = yes ||
9590 $as_test_x conftest$ac_exeext
9591 }; then
ad6254c5
AK
9592 ac_cv_lib_selinux_is_selinux_enabled=yes
9593else
b145d876 9594 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
9595sed 's/^/| /' conftest.$ac_ext >&5
9596
7a197a62 9597 ac_cv_lib_selinux_is_selinux_enabled=no
ad6254c5 9598fi
7a197a62 9599
b145d876 9600rm -rf conftest.dSYM
25fbec5b 9601rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 9602 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
9603LIBS=$ac_check_lib_save_LIBS
9604fi
b145d876
ZK
9605{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
9606$as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
ad6254c5
AK
9607if test $ac_cv_lib_selinux_is_selinux_enabled = yes; then
9608 HAVE_SELINUX=yes
9609else
9610 HAVE_SELINUX=no
9611fi
9612
ad6254c5
AK
9613
9614 if test x$HAVE_SELINUX = xyes; then
72b2cb61
AK
9615
9616cat >>confdefs.h <<\_ACEOF
9617#define HAVE_SELINUX 1
9618_ACEOF
9619
ad6254c5
AK
9620 LIBS="-lselinux $LIBS"
9621 else
b145d876
ZK
9622 { $as_echo "$as_me:$LINENO: WARNING: Disabling selinux" >&5
9623$as_echo "$as_me: WARNING: Disabling selinux" >&2;}
66e941e8
JM
9624 fi
9625
d0191583 9626 # With --enable-static_link and selinux enabled, linking
66e941e8
JM
9627 # fails on at least Debian unstable due to unsatisfied references
9628 # to pthread_mutex_lock and _unlock. See if we need -lpthread.
9629 if test "$STATIC_LINK-$HAVE_SELINUX" = yes-yes; then
9630 lvm_saved_libs=$LIBS
9631 LIBS="$LIBS -static"
b145d876
ZK
9632 { $as_echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
9633$as_echo_n "checking for library containing pthread_mutex_lock... " >&6; }
66e941e8 9634if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
b145d876 9635 $as_echo_n "(cached) " >&6
66e941e8
JM
9636else
9637 ac_func_search_save_LIBS=$LIBS
9638cat >conftest.$ac_ext <<_ACEOF
9639/* confdefs.h. */
9640_ACEOF
9641cat confdefs.h >>conftest.$ac_ext
9642cat >>conftest.$ac_ext <<_ACEOF
9643/* end confdefs.h. */
9644
9645/* Override any GCC internal prototype to avoid an error.
9646 Use char because int might match the return type of a GCC
9647 builtin and then its argument prototype would still apply. */
9648#ifdef __cplusplus
9649extern "C"
9650#endif
9651char pthread_mutex_lock ();
9652int
9653main ()
9654{
9655return pthread_mutex_lock ();
9656 ;
9657 return 0;
9658}
9659_ACEOF
9660for ac_lib in '' pthread; do
9661 if test -z "$ac_lib"; then
9662 ac_res="none required"
9663 else
9664 ac_res=-l$ac_lib
9665 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9666 fi
9667 rm -f conftest.$ac_objext conftest$ac_exeext
9668if { (ac_try="$ac_link"
9669case "(($ac_try" in
9670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9671 *) ac_try_echo=$ac_try;;
9672esac
b145d876
ZK
9673eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9674$as_echo "$ac_try_echo") >&5
66e941e8
JM
9675 (eval "$ac_link") 2>conftest.er1
9676 ac_status=$?
9677 grep -v '^ *+' conftest.er1 >conftest.err
9678 rm -f conftest.er1
9679 cat conftest.err >&5
b145d876 9680 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9681 (exit $ac_status); } && {
9682 test -z "$ac_c_werror_flag" ||
9683 test ! -s conftest.err
b145d876
ZK
9684 } && test -s conftest$ac_exeext && {
9685 test "$cross_compiling" = yes ||
9686 $as_test_x conftest$ac_exeext
9687 }; then
66e941e8
JM
9688 ac_cv_search_pthread_mutex_lock=$ac_res
9689else
b145d876 9690 $as_echo "$as_me: failed program was:" >&5
66e941e8
JM
9691sed 's/^/| /' conftest.$ac_ext >&5
9692
9693
9694fi
9695
b145d876 9696rm -rf conftest.dSYM
25fbec5b 9697rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
66e941e8
JM
9698 conftest$ac_exeext
9699 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9700 break
9701fi
9702done
9703if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9704 :
9705else
9706 ac_cv_search_pthread_mutex_lock=no
9707fi
9708rm conftest.$ac_ext
9709LIBS=$ac_func_search_save_LIBS
9710fi
b145d876
ZK
9711{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
9712$as_echo "$ac_cv_search_pthread_mutex_lock" >&6; }
66e941e8
JM
9713ac_res=$ac_cv_search_pthread_mutex_lock
9714if test "$ac_res" != no; then
9715 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9716 test "$ac_cv_search_pthread_mutex_lock" = "none required" ||
9717 LIB_PTHREAD=-lpthread
9718fi
9719
9720 LIBS=$lvm_saved_libs
ad6254c5
AK
9721 fi
9722fi
9723
8b1a3214
AK
9724################################################################################
9725if test x$REALTIME = xyes; then
b145d876
ZK
9726 { $as_echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
9727$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
8b1a3214 9728if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
b145d876 9729 $as_echo_n "(cached) " >&6
8b1a3214
AK
9730else
9731 ac_check_lib_save_LIBS=$LIBS
9732LIBS="-lrt $LIBS"
9733cat >conftest.$ac_ext <<_ACEOF
9734/* confdefs.h. */
9735_ACEOF
9736cat confdefs.h >>conftest.$ac_ext
9737cat >>conftest.$ac_ext <<_ACEOF
9738/* end confdefs.h. */
9739
7a197a62
AK
9740/* Override any GCC internal prototype to avoid an error.
9741 Use char because int might match the return type of a GCC
9742 builtin and then its argument prototype would still apply. */
8b1a3214
AK
9743#ifdef __cplusplus
9744extern "C"
9745#endif
8b1a3214
AK
9746char clock_gettime ();
9747int
9748main ()
9749{
7a197a62 9750return clock_gettime ();
8b1a3214
AK
9751 ;
9752 return 0;
9753}
9754_ACEOF
9755rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
9756if { (ac_try="$ac_link"
9757case "(($ac_try" in
9758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9759 *) ac_try_echo=$ac_try;;
9760esac
b145d876
ZK
9761eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9762$as_echo "$ac_try_echo") >&5
7a197a62 9763 (eval "$ac_link") 2>conftest.er1
8b1a3214
AK
9764 ac_status=$?
9765 grep -v '^ *+' conftest.er1 >conftest.err
9766 rm -f conftest.er1
9767 cat conftest.err >&5
b145d876 9768 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9769 (exit $ac_status); } && {
9770 test -z "$ac_c_werror_flag" ||
9771 test ! -s conftest.err
b145d876
ZK
9772 } && test -s conftest$ac_exeext && {
9773 test "$cross_compiling" = yes ||
9774 $as_test_x conftest$ac_exeext
9775 }; then
8b1a3214
AK
9776 ac_cv_lib_rt_clock_gettime=yes
9777else
b145d876 9778 $as_echo "$as_me: failed program was:" >&5
8b1a3214
AK
9779sed 's/^/| /' conftest.$ac_ext >&5
9780
7a197a62 9781 ac_cv_lib_rt_clock_gettime=no
8b1a3214 9782fi
7a197a62 9783
b145d876 9784rm -rf conftest.dSYM
25fbec5b 9785rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8b1a3214
AK
9786 conftest$ac_exeext conftest.$ac_ext
9787LIBS=$ac_check_lib_save_LIBS
9788fi
b145d876
ZK
9789{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
9790$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
8b1a3214
AK
9791if test $ac_cv_lib_rt_clock_gettime = yes; then
9792 HAVE_REALTIME=yes
9793else
9794 HAVE_REALTIME=no
9795fi
9796
8b1a3214
AK
9797
9798 if test x$HAVE_REALTIME = xyes; then
9799
9800cat >>confdefs.h <<\_ACEOF
9801#define HAVE_REALTIME 1
9802_ACEOF
9803
9804 LIBS="-lrt $LIBS"
9805 else
b145d876
ZK
9806 { $as_echo "$as_me:$LINENO: WARNING: Disabling realtime clock" >&5
9807$as_echo "$as_me: WARNING: Disabling realtime clock" >&2;}
8b1a3214
AK
9808 fi
9809fi
9810
ad6254c5
AK
9811################################################################################
9812
9813for ac_header in getopt.h
9814do
b145d876 9815as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 9816if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
b145d876
ZK
9817 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9818$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 9819if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
b145d876 9820 $as_echo_n "(cached) " >&6
ad6254c5 9821fi
b145d876
ZK
9822ac_res=`eval 'as_val=${'$as_ac_Header'}
9823 $as_echo "$as_val"'`
9824 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9825$as_echo "$ac_res" >&6; }
ad6254c5
AK
9826else
9827 # Is the header compilable?
b145d876
ZK
9828{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9829$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 9830cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9831/* confdefs.h. */
9832_ACEOF
9833cat confdefs.h >>conftest.$ac_ext
9834cat >>conftest.$ac_ext <<_ACEOF
9835/* end confdefs.h. */
9836$ac_includes_default
9837#include <$ac_header>
9838_ACEOF
9839rm -f conftest.$ac_objext
7a197a62
AK
9840if { (ac_try="$ac_compile"
9841case "(($ac_try" in
9842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9843 *) ac_try_echo=$ac_try;;
9844esac
b145d876
ZK
9845eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9846$as_echo "$ac_try_echo") >&5
7a197a62 9847 (eval "$ac_compile") 2>conftest.er1
ad6254c5 9848 ac_status=$?
8a2fc586
AK
9849 grep -v '^ *+' conftest.er1 >conftest.err
9850 rm -f conftest.er1
9851 cat conftest.err >&5
b145d876 9852 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9853 (exit $ac_status); } && {
9854 test -z "$ac_c_werror_flag" ||
9855 test ! -s conftest.err
9856 } && test -s conftest.$ac_objext; then
ad6254c5
AK
9857 ac_header_compiler=yes
9858else
b145d876 9859 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
9860sed 's/^/| /' conftest.$ac_ext >&5
9861
7a197a62 9862 ac_header_compiler=no
ad6254c5 9863fi
7a197a62
AK
9864
9865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b145d876
ZK
9866{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9867$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
9868
9869# Is the header present?
b145d876
ZK
9870{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9871$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 9872cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9873/* confdefs.h. */
9874_ACEOF
9875cat confdefs.h >>conftest.$ac_ext
9876cat >>conftest.$ac_ext <<_ACEOF
9877/* end confdefs.h. */
9878#include <$ac_header>
9879_ACEOF
7a197a62
AK
9880if { (ac_try="$ac_cpp conftest.$ac_ext"
9881case "(($ac_try" in
9882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9883 *) ac_try_echo=$ac_try;;
9884esac
b145d876
ZK
9885eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9886$as_echo "$ac_try_echo") >&5
7a197a62 9887 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
9888 ac_status=$?
9889 grep -v '^ *+' conftest.er1 >conftest.err
9890 rm -f conftest.er1
9891 cat conftest.err >&5
b145d876 9892 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9893 (exit $ac_status); } >/dev/null && {
9894 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9895 test ! -s conftest.err
9896 }; then
ad6254c5
AK
9897 ac_header_preproc=yes
9898else
b145d876 9899 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
9900sed 's/^/| /' conftest.$ac_ext >&5
9901
9902 ac_header_preproc=no
9903fi
7a197a62 9904
ad6254c5 9905rm -f conftest.err conftest.$ac_ext
b145d876
ZK
9906{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9907$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
9908
9909# So? What about this header?
8a2fc586
AK
9910case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9911 yes:no: )
b145d876
ZK
9912 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9913$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9914 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9915$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 9916 ac_header_preproc=yes
ad6254c5 9917 ;;
8a2fc586 9918 no:yes:* )
b145d876
ZK
9919 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9920$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9921 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9922$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9923 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9924$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9925 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9926$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9927 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9928$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9929 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9930$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 9931
ad6254c5
AK
9932 ;;
9933esac
b145d876
ZK
9934{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9935$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 9936if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
b145d876 9937 $as_echo_n "(cached) " >&6
ad6254c5 9938else
8a2fc586 9939 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 9940fi
b145d876
ZK
9941ac_res=`eval 'as_val=${'$as_ac_Header'}
9942 $as_echo "$as_val"'`
9943 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9944$as_echo "$ac_res" >&6; }
ad6254c5
AK
9945
9946fi
b145d876
ZK
9947if test `eval 'as_val=${'$as_ac_Header'}
9948 $as_echo "$as_val"'` = yes; then
ad6254c5 9949 cat >>confdefs.h <<_ACEOF
b145d876 9950#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 9951_ACEOF
72b2cb61
AK
9952
9953cat >>confdefs.h <<\_ACEOF
9954#define HAVE_GETOPTLONG 1
9955_ACEOF
9956
ad6254c5
AK
9957fi
9958
9959done
9960
9961
9962################################################################################
06e459df 9963if test x$READLINE != xno; then
bc1024f8
JM
9964 rl_found=yes
9965
b145d876
ZK
9966{ $as_echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
9967$as_echo_n "checking for readline in -lreadline... " >&6; }
ad6254c5 9968if test "${ac_cv_lib_readline_readline+set}" = set; then
b145d876 9969 $as_echo_n "(cached) " >&6
ad6254c5
AK
9970else
9971 ac_check_lib_save_LIBS=$LIBS
9972LIBS="-lreadline $LIBS"
9973cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9974/* confdefs.h. */
9975_ACEOF
9976cat confdefs.h >>conftest.$ac_ext
9977cat >>conftest.$ac_ext <<_ACEOF
9978/* end confdefs.h. */
9979
7a197a62
AK
9980/* Override any GCC internal prototype to avoid an error.
9981 Use char because int might match the return type of a GCC
9982 builtin and then its argument prototype would still apply. */
ad6254c5
AK
9983#ifdef __cplusplus
9984extern "C"
9985#endif
ad6254c5
AK
9986char readline ();
9987int
9988main ()
9989{
7a197a62 9990return readline ();
ad6254c5
AK
9991 ;
9992 return 0;
9993}
9994_ACEOF
9995rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
9996if { (ac_try="$ac_link"
9997case "(($ac_try" in
9998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9999 *) ac_try_echo=$ac_try;;
10000esac
b145d876
ZK
10001eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10002$as_echo "$ac_try_echo") >&5
7a197a62 10003 (eval "$ac_link") 2>conftest.er1
ad6254c5 10004 ac_status=$?
8a2fc586
AK
10005 grep -v '^ *+' conftest.er1 >conftest.err
10006 rm -f conftest.er1
10007 cat conftest.err >&5
b145d876 10008 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10009 (exit $ac_status); } && {
10010 test -z "$ac_c_werror_flag" ||
10011 test ! -s conftest.err
b145d876
ZK
10012 } && test -s conftest$ac_exeext && {
10013 test "$cross_compiling" = yes ||
10014 $as_test_x conftest$ac_exeext
10015 }; then
ad6254c5
AK
10016 ac_cv_lib_readline_readline=yes
10017else
b145d876 10018 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10019sed 's/^/| /' conftest.$ac_ext >&5
10020
7a197a62 10021 ac_cv_lib_readline_readline=no
ad6254c5 10022fi
7a197a62 10023
b145d876 10024rm -rf conftest.dSYM
25fbec5b 10025rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 10026 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
10027LIBS=$ac_check_lib_save_LIBS
10028fi
b145d876
ZK
10029{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
10030$as_echo "$ac_cv_lib_readline_readline" >&6; }
ad6254c5 10031if test $ac_cv_lib_readline_readline = yes; then
bc1024f8
JM
10032 cat >>confdefs.h <<_ACEOF
10033#define HAVE_LIBREADLINE 1
10034_ACEOF
10035
10036 LIBS="-lreadline $LIBS"
10037
ad6254c5 10038else
06e459df
JM
10039 rl_found=no
10040fi
10041
10042 test x$READLINE:$rl_found = xyes:no &&
b145d876 10043 { { $as_echo "$as_me:$LINENO: error: GNU Readline could not be found which is required for the
ad6254c5
AK
10044--enable-readline option (which is enabled by default). Either disable readline
10045support with --disable-readline or download and install readline from:
10046 ftp.gnu.org/gnu/readline
10047Note: if you are using precompiled packages you will also need the development
10048package as well (which may be called readline-devel or something similar).
10049" >&5
b145d876 10050$as_echo "$as_me: error: GNU Readline could not be found which is required for the
ad6254c5
AK
10051--enable-readline option (which is enabled by default). Either disable readline
10052support with --disable-readline or download and install readline from:
10053 ftp.gnu.org/gnu/readline
10054Note: if you are using precompiled packages you will also need the development
10055package as well (which may be called readline-devel or something similar).
10056" >&2;}
10057 { (exit 1); exit 1; }; }
06e459df 10058 if test $rl_found = yes; then
bc1024f8
JM
10059
10060for ac_func in rl_completion_matches
10061do
b145d876
ZK
10062as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10063{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10064$as_echo_n "checking for $ac_func... " >&6; }
bc1024f8 10065if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
b145d876 10066 $as_echo_n "(cached) " >&6
ad6254c5
AK
10067else
10068 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10069/* confdefs.h. */
10070_ACEOF
10071cat confdefs.h >>conftest.$ac_ext
10072cat >>conftest.$ac_ext <<_ACEOF
10073/* end confdefs.h. */
bc1024f8 10074/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8a2fc586 10075 For example, HP-UX 11i <limits.h> declares gettimeofday. */
bc1024f8 10076#define $ac_func innocuous_$ac_func
8a2fc586 10077
ad6254c5 10078/* System header to define __stub macros and hopefully few prototypes,
bc1024f8 10079 which can conflict with char $ac_func (); below.
ad6254c5
AK
10080 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10081 <limits.h> exists even on freestanding compilers. */
8a2fc586 10082
ad6254c5
AK
10083#ifdef __STDC__
10084# include <limits.h>
10085#else
10086# include <assert.h>
10087#endif
8a2fc586 10088
bc1024f8 10089#undef $ac_func
8a2fc586 10090
7a197a62
AK
10091/* Override any GCC internal prototype to avoid an error.
10092 Use char because int might match the return type of a GCC
10093 builtin and then its argument prototype would still apply. */
ad6254c5
AK
10094#ifdef __cplusplus
10095extern "C"
ad6254c5 10096#endif
bc1024f8 10097char $ac_func ();
ad6254c5
AK
10098/* The GNU C library defines this for functions which it implements
10099 to always fail with ENOSYS. Some functions are actually named
10100 something starting with __ and the normal name is an alias. */
bc1024f8 10101#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 10102choke me
ad6254c5
AK
10103#endif
10104
10105int
10106main ()
10107{
bc1024f8 10108return $ac_func ();
ad6254c5
AK
10109 ;
10110 return 0;
10111}
10112_ACEOF
10113rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
10114if { (ac_try="$ac_link"
10115case "(($ac_try" in
10116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10117 *) ac_try_echo=$ac_try;;
10118esac
b145d876
ZK
10119eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10120$as_echo "$ac_try_echo") >&5
7a197a62 10121 (eval "$ac_link") 2>conftest.er1
ad6254c5 10122 ac_status=$?
8a2fc586
AK
10123 grep -v '^ *+' conftest.er1 >conftest.err
10124 rm -f conftest.er1
10125 cat conftest.err >&5
b145d876 10126 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10127 (exit $ac_status); } && {
10128 test -z "$ac_c_werror_flag" ||
10129 test ! -s conftest.err
b145d876
ZK
10130 } && test -s conftest$ac_exeext && {
10131 test "$cross_compiling" = yes ||
10132 $as_test_x conftest$ac_exeext
10133 }; then
bc1024f8 10134 eval "$as_ac_var=yes"
ad6254c5 10135else
b145d876 10136 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10137sed 's/^/| /' conftest.$ac_ext >&5
10138
bc1024f8 10139 eval "$as_ac_var=no"
ad6254c5 10140fi
7a197a62 10141
b145d876 10142rm -rf conftest.dSYM
25fbec5b 10143rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 10144 conftest$ac_exeext conftest.$ac_ext
ad6254c5 10145fi
b145d876
ZK
10146ac_res=`eval 'as_val=${'$as_ac_var'}
10147 $as_echo "$as_val"'`
10148 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10149$as_echo "$ac_res" >&6; }
10150if test `eval 'as_val=${'$as_ac_var'}
10151 $as_echo "$as_val"'` = yes; then
bc1024f8 10152 cat >>confdefs.h <<_ACEOF
b145d876 10153#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
72b2cb61
AK
10154_ACEOF
10155
10156fi
bc1024f8 10157done
ad6254c5 10158
d179cc7a
JM
10159
10160cat >>confdefs.h <<\_ACEOF
10161#define READLINE_SUPPORT 1
10162_ACEOF
10163
06e459df 10164 fi
ad6254c5
AK
10165fi
10166
10167################################################################################
b145d876
ZK
10168{ $as_echo "$as_me:$LINENO: checking whether to enable internationalisation" >&5
10169$as_echo_n "checking whether to enable internationalisation... " >&6; }
7a197a62 10170# Check whether --enable-nls was given.
ad6254c5 10171if test "${enable_nls+set}" = set; then
7a197a62 10172 enableval=$enable_nls; INTL=$enableval
ad6254c5
AK
10173else
10174 INTL=no
7a197a62
AK
10175fi
10176
b145d876
ZK
10177{ $as_echo "$as_me:$LINENO: result: $INTL" >&5
10178$as_echo "$INTL" >&6; }
ad6254c5
AK
10179
10180if test x$INTL = xyes; then
10181 INTL_PACKAGE="lvm2"
10182 # Extract the first word of "msgfmt", so it can be a program name with args.
10183set dummy msgfmt; ac_word=$2
b145d876
ZK
10184{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10185$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 10186if test "${ac_cv_path_MSGFMT+set}" = set; then
b145d876 10187 $as_echo_n "(cached) " >&6
ad6254c5
AK
10188else
10189 case $MSGFMT in
10190 [\\/]* | ?:[\\/]*)
10191 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
10192 ;;
10193 *)
10194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10195for as_dir in $PATH
10196do
10197 IFS=$as_save_IFS
10198 test -z "$as_dir" && as_dir=.
10199 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 10200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 10201 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
b145d876 10202 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
10203 break 2
10204 fi
10205done
10206done
7a197a62 10207IFS=$as_save_IFS
ad6254c5
AK
10208
10209 ;;
10210esac
10211fi
10212MSGFMT=$ac_cv_path_MSGFMT
ad6254c5 10213if test -n "$MSGFMT"; then
b145d876
ZK
10214 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
10215$as_echo "$MSGFMT" >&6; }
ad6254c5 10216else
b145d876
ZK
10217 { $as_echo "$as_me:$LINENO: result: no" >&5
10218$as_echo "no" >&6; }
ad6254c5
AK
10219fi
10220
7a197a62 10221
ad6254c5 10222 if [ "x$MSGFMT" == x ];
b145d876 10223 then { { $as_echo "$as_me:$LINENO: error: msgfmt not found in path $PATH
ad6254c5 10224 " >&5
b145d876 10225$as_echo "$as_me: error: msgfmt not found in path $PATH
ad6254c5
AK
10226 " >&2;}
10227 { (exit 1); exit 1; }; }
10228 fi;
10229
10230
7a197a62 10231# Check whether --with-localedir was given.
ad6254c5 10232if test "${with_localedir+set}" = set; then
7a197a62 10233 withval=$with_localedir; LOCALEDIR="$withval"
ad6254c5
AK
10234else
10235 LOCALEDIR='${prefix}/share/locale'
7a197a62
AK
10236fi
10237
ad6254c5
AK
10238fi
10239
10240################################################################################
10241
7a197a62 10242# Check whether --with-confdir was given.
ad6254c5 10243if test "${with_confdir+set}" = set; then
7a197a62 10244 withval=$with_confdir; CONFDIR="$withval"
ad6254c5
AK
10245else
10246 CONFDIR='/etc'
7a197a62
AK
10247fi
10248
ad6254c5
AK
10249
10250
7a197a62 10251# Check whether --with-staticdir was given.
ad6254c5 10252if test "${with_staticdir+set}" = set; then
7a197a62 10253 withval=$with_staticdir; STATICDIR="$withval"
ad6254c5
AK
10254else
10255 STATICDIR='${exec_prefix}/sbin'
7a197a62 10256fi
ad6254c5 10257
33f732c5 10258
7a197a62
AK
10259
10260# Check whether --with-dmdir was given.
33f732c5 10261if test "${with_dmdir+set}" = set; then
7a197a62 10262 withval=$with_dmdir; DMDIR="$withval" CPPFLAGS="$CPPFLAGS -I$DMDIR/include"
33f732c5
AK
10263else
10264 DMDIR=
7a197a62
AK
10265fi
10266
33f732c5 10267
09339e2b 10268# Convert a relative dir name to absolute.
25fbec5b
AK
10269case $DMDIR in
10270 /*) ;;
10271 *) DMDIR="`pwd`/$DMDIR" ;;
09339e2b
JM
10272esac
10273
ad6254c5
AK
10274################################################################################
10275if test x$READLINE = xyes; then
10276
10277
10278for ac_header in readline/readline.h readline/history.h
10279do
b145d876 10280as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 10281if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
b145d876
ZK
10282 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10283$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 10284if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
b145d876 10285 $as_echo_n "(cached) " >&6
ad6254c5 10286fi
b145d876
ZK
10287ac_res=`eval 'as_val=${'$as_ac_Header'}
10288 $as_echo "$as_val"'`
10289 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10290$as_echo "$ac_res" >&6; }
ad6254c5
AK
10291else
10292 # Is the header compilable?
b145d876
ZK
10293{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10294$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 10295cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10296/* confdefs.h. */
10297_ACEOF
10298cat confdefs.h >>conftest.$ac_ext
10299cat >>conftest.$ac_ext <<_ACEOF
10300/* end confdefs.h. */
10301$ac_includes_default
10302#include <$ac_header>
10303_ACEOF
10304rm -f conftest.$ac_objext
7a197a62
AK
10305if { (ac_try="$ac_compile"
10306case "(($ac_try" in
10307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10308 *) ac_try_echo=$ac_try;;
10309esac
b145d876
ZK
10310eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10311$as_echo "$ac_try_echo") >&5
7a197a62 10312 (eval "$ac_compile") 2>conftest.er1
ad6254c5 10313 ac_status=$?
8a2fc586
AK
10314 grep -v '^ *+' conftest.er1 >conftest.err
10315 rm -f conftest.er1
10316 cat conftest.err >&5
b145d876 10317 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10318 (exit $ac_status); } && {
10319 test -z "$ac_c_werror_flag" ||
10320 test ! -s conftest.err
10321 } && test -s conftest.$ac_objext; then
ad6254c5
AK
10322 ac_header_compiler=yes
10323else
b145d876 10324 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10325sed 's/^/| /' conftest.$ac_ext >&5
10326
7a197a62 10327 ac_header_compiler=no
ad6254c5 10328fi
7a197a62
AK
10329
10330rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b145d876
ZK
10331{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10332$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
10333
10334# Is the header present?
b145d876
ZK
10335{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10336$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 10337cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10338/* confdefs.h. */
10339_ACEOF
10340cat confdefs.h >>conftest.$ac_ext
10341cat >>conftest.$ac_ext <<_ACEOF
10342/* end confdefs.h. */
10343#include <$ac_header>
10344_ACEOF
7a197a62
AK
10345if { (ac_try="$ac_cpp conftest.$ac_ext"
10346case "(($ac_try" in
10347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10348 *) ac_try_echo=$ac_try;;
10349esac
b145d876
ZK
10350eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10351$as_echo "$ac_try_echo") >&5
7a197a62 10352 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
10353 ac_status=$?
10354 grep -v '^ *+' conftest.er1 >conftest.err
10355 rm -f conftest.er1
10356 cat conftest.err >&5
b145d876 10357 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10358 (exit $ac_status); } >/dev/null && {
10359 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10360 test ! -s conftest.err
10361 }; then
ad6254c5
AK
10362 ac_header_preproc=yes
10363else
b145d876 10364 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10365sed 's/^/| /' conftest.$ac_ext >&5
10366
10367 ac_header_preproc=no
10368fi
7a197a62 10369
ad6254c5 10370rm -f conftest.err conftest.$ac_ext
b145d876
ZK
10371{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10372$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
10373
10374# So? What about this header?
8a2fc586
AK
10375case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10376 yes:no: )
b145d876
ZK
10377 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10378$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10379 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10380$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 10381 ac_header_preproc=yes
ad6254c5 10382 ;;
8a2fc586 10383 no:yes:* )
b145d876
ZK
10384 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10385$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10386 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10387$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10388 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10389$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10390 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10391$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10392 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10393$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10394 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10395$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 10396
ad6254c5
AK
10397 ;;
10398esac
b145d876
ZK
10399{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10400$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 10401if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
b145d876 10402 $as_echo_n "(cached) " >&6
ad6254c5 10403else
8a2fc586 10404 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 10405fi
b145d876
ZK
10406ac_res=`eval 'as_val=${'$as_ac_Header'}
10407 $as_echo "$as_val"'`
10408 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10409$as_echo "$ac_res" >&6; }
ad6254c5
AK
10410
10411fi
b145d876
ZK
10412if test `eval 'as_val=${'$as_ac_Header'}
10413 $as_echo "$as_val"'` = yes; then
ad6254c5 10414 cat >>confdefs.h <<_ACEOF
b145d876 10415#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
10416_ACEOF
10417
10418else
b145d876
ZK
10419 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
10420$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5
AK
10421 { (exit 1); exit 1; }; }
10422fi
10423
10424done
10425
10426fi
10427
5c7fc7c4 10428if test x$CLVMD != xnone; then
ad6254c5
AK
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439for 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
10440do
b145d876 10441as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 10442if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
b145d876
ZK
10443 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10444$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 10445if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
b145d876 10446 $as_echo_n "(cached) " >&6
ad6254c5 10447fi
b145d876
ZK
10448ac_res=`eval 'as_val=${'$as_ac_Header'}
10449 $as_echo "$as_val"'`
10450 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10451$as_echo "$ac_res" >&6; }
ad6254c5
AK
10452else
10453 # Is the header compilable?
b145d876
ZK
10454{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10455$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 10456cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10457/* confdefs.h. */
10458_ACEOF
10459cat confdefs.h >>conftest.$ac_ext
10460cat >>conftest.$ac_ext <<_ACEOF
10461/* end confdefs.h. */
10462$ac_includes_default
10463#include <$ac_header>
10464_ACEOF
10465rm -f conftest.$ac_objext
7a197a62
AK
10466if { (ac_try="$ac_compile"
10467case "(($ac_try" in
10468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10469 *) ac_try_echo=$ac_try;;
10470esac
b145d876
ZK
10471eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10472$as_echo "$ac_try_echo") >&5
7a197a62 10473 (eval "$ac_compile") 2>conftest.er1
ad6254c5 10474 ac_status=$?
8a2fc586
AK
10475 grep -v '^ *+' conftest.er1 >conftest.err
10476 rm -f conftest.er1
10477 cat conftest.err >&5
b145d876 10478 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10479 (exit $ac_status); } && {
10480 test -z "$ac_c_werror_flag" ||
10481 test ! -s conftest.err
10482 } && test -s conftest.$ac_objext; then
ad6254c5
AK
10483 ac_header_compiler=yes
10484else
b145d876 10485 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10486sed 's/^/| /' conftest.$ac_ext >&5
10487
7a197a62 10488 ac_header_compiler=no
ad6254c5 10489fi
7a197a62
AK
10490
10491rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b145d876
ZK
10492{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10493$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
10494
10495# Is the header present?
b145d876
ZK
10496{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10497$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 10498cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10499/* confdefs.h. */
10500_ACEOF
10501cat confdefs.h >>conftest.$ac_ext
10502cat >>conftest.$ac_ext <<_ACEOF
10503/* end confdefs.h. */
10504#include <$ac_header>
10505_ACEOF
7a197a62
AK
10506if { (ac_try="$ac_cpp conftest.$ac_ext"
10507case "(($ac_try" in
10508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10509 *) ac_try_echo=$ac_try;;
10510esac
b145d876
ZK
10511eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10512$as_echo "$ac_try_echo") >&5
7a197a62 10513 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
10514 ac_status=$?
10515 grep -v '^ *+' conftest.er1 >conftest.err
10516 rm -f conftest.er1
10517 cat conftest.err >&5
b145d876 10518 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10519 (exit $ac_status); } >/dev/null && {
10520 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10521 test ! -s conftest.err
10522 }; then
ad6254c5
AK
10523 ac_header_preproc=yes
10524else
b145d876 10525 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10526sed 's/^/| /' conftest.$ac_ext >&5
10527
10528 ac_header_preproc=no
10529fi
7a197a62 10530
ad6254c5 10531rm -f conftest.err conftest.$ac_ext
b145d876
ZK
10532{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10533$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
10534
10535# So? What about this header?
8a2fc586
AK
10536case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10537 yes:no: )
b145d876
ZK
10538 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10539$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10540 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10541$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 10542 ac_header_preproc=yes
ad6254c5 10543 ;;
8a2fc586 10544 no:yes:* )
b145d876
ZK
10545 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10546$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10547 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10548$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10549 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10550$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10551 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10552$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10553 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10554$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10555 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10556$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 10557
ad6254c5
AK
10558 ;;
10559esac
b145d876
ZK
10560{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10561$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 10562if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
b145d876 10563 $as_echo_n "(cached) " >&6
ad6254c5 10564else
8a2fc586 10565 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 10566fi
b145d876
ZK
10567ac_res=`eval 'as_val=${'$as_ac_Header'}
10568 $as_echo "$as_val"'`
10569 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10570$as_echo "$ac_res" >&6; }
ad6254c5
AK
10571
10572fi
b145d876
ZK
10573if test `eval 'as_val=${'$as_ac_Header'}
10574 $as_echo "$as_val"'` = yes; then
ad6254c5 10575 cat >>confdefs.h <<_ACEOF
b145d876 10576#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
10577_ACEOF
10578
10579else
b145d876
ZK
10580 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
10581$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 10582 { (exit 1); exit 1; }; }
795ca3e5
AK
10583fi
10584
ad6254c5
AK
10585done
10586
10587
795ca3e5 10588
8106cdd5 10589
ad6254c5
AK
10590
10591
10592for ac_func in dup2 getmntent memmove select socket
10593do
b145d876
ZK
10594as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10595{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10596$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 10597if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
b145d876 10598 $as_echo_n "(cached) " >&6
795ca3e5 10599else
ad6254c5 10600 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10601/* confdefs.h. */
10602_ACEOF
10603cat confdefs.h >>conftest.$ac_ext
10604cat >>conftest.$ac_ext <<_ACEOF
10605/* end confdefs.h. */
8a2fc586
AK
10606/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10607 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10608#define $ac_func innocuous_$ac_func
10609
795ca3e5 10610/* System header to define __stub macros and hopefully few prototypes,
ad6254c5
AK
10611 which can conflict with char $ac_func (); below.
10612 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10613 <limits.h> exists even on freestanding compilers. */
8a2fc586 10614
ad6254c5
AK
10615#ifdef __STDC__
10616# include <limits.h>
10617#else
10618# include <assert.h>
10619#endif
8a2fc586
AK
10620
10621#undef $ac_func
10622
7a197a62
AK
10623/* Override any GCC internal prototype to avoid an error.
10624 Use char because int might match the return type of a GCC
10625 builtin and then its argument prototype would still apply. */
ad6254c5
AK
10626#ifdef __cplusplus
10627extern "C"
ad6254c5 10628#endif
ad6254c5 10629char $ac_func ();
795ca3e5
AK
10630/* The GNU C library defines this for functions which it implements
10631 to always fail with ENOSYS. Some functions are actually named
10632 something starting with __ and the normal name is an alias. */
7a197a62 10633#if defined __stub_$ac_func || defined __stub___$ac_func
795ca3e5 10634choke me
795ca3e5
AK
10635#endif
10636
ad6254c5
AK
10637int
10638main ()
10639{
7a197a62 10640return $ac_func ();
ad6254c5
AK
10641 ;
10642 return 0;
10643}
10644_ACEOF
10645rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
10646if { (ac_try="$ac_link"
10647case "(($ac_try" in
10648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10649 *) ac_try_echo=$ac_try;;
10650esac
b145d876
ZK
10651eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10652$as_echo "$ac_try_echo") >&5
7a197a62 10653 (eval "$ac_link") 2>conftest.er1
ad6254c5 10654 ac_status=$?
8a2fc586
AK
10655 grep -v '^ *+' conftest.er1 >conftest.err
10656 rm -f conftest.er1
10657 cat conftest.err >&5
b145d876 10658 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10659 (exit $ac_status); } && {
10660 test -z "$ac_c_werror_flag" ||
10661 test ! -s conftest.err
b145d876
ZK
10662 } && test -s conftest$ac_exeext && {
10663 test "$cross_compiling" = yes ||
10664 $as_test_x conftest$ac_exeext
10665 }; then
ad6254c5 10666 eval "$as_ac_var=yes"
795ca3e5 10667else
b145d876 10668 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10669sed 's/^/| /' conftest.$ac_ext >&5
10670
7a197a62 10671 eval "$as_ac_var=no"
80992638 10672fi
7a197a62 10673
b145d876 10674rm -rf conftest.dSYM
25fbec5b 10675rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 10676 conftest$ac_exeext conftest.$ac_ext
795ca3e5 10677fi
b145d876
ZK
10678ac_res=`eval 'as_val=${'$as_ac_var'}
10679 $as_echo "$as_val"'`
10680 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10681$as_echo "$ac_res" >&6; }
10682if test `eval 'as_val=${'$as_ac_var'}
10683 $as_echo "$as_val"'` = yes; then
ad6254c5 10684 cat >>confdefs.h <<_ACEOF
b145d876 10685#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5 10686_ACEOF
80992638
AK
10687
10688else
b145d876
ZK
10689 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
10690$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 10691 { (exit 1); exit 1; }; }
8106cdd5 10692fi
ad6254c5 10693done
795ca3e5 10694
25fbec5b
AK
10695 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
10696# -lseq on Dynix/PTX, -lgen on Unixware.
b145d876
ZK
10697{ $as_echo "$as_me:$LINENO: checking for library containing getmntent" >&5
10698$as_echo_n "checking for library containing getmntent... " >&6; }
25fbec5b 10699if test "${ac_cv_search_getmntent+set}" = set; then
b145d876 10700 $as_echo_n "(cached) " >&6
25fbec5b
AK
10701else
10702 ac_func_search_save_LIBS=$LIBS
10703cat >conftest.$ac_ext <<_ACEOF
10704/* confdefs.h. */
10705_ACEOF
10706cat confdefs.h >>conftest.$ac_ext
10707cat >>conftest.$ac_ext <<_ACEOF
10708/* end confdefs.h. */
80992638 10709
7a197a62
AK
10710/* Override any GCC internal prototype to avoid an error.
10711 Use char because int might match the return type of a GCC
ad6254c5 10712 builtin and then its argument prototype would still apply. */
ad6254c5
AK
10713#ifdef __cplusplus
10714extern "C"
10715#endif
25fbec5b 10716char getmntent ();
ad6254c5
AK
10717int
10718main ()
10719{
25fbec5b 10720return getmntent ();
ad6254c5
AK
10721 ;
10722 return 0;
10723}
10724_ACEOF
25fbec5b
AK
10725for ac_lib in '' sun seq gen; do
10726 if test -z "$ac_lib"; then
10727 ac_res="none required"
10728 else
10729 ac_res=-l$ac_lib
10730 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10731 fi
10732 rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
10733if { (ac_try="$ac_link"
10734case "(($ac_try" in
10735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10736 *) ac_try_echo=$ac_try;;
10737esac
b145d876
ZK
10738eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10739$as_echo "$ac_try_echo") >&5
7a197a62 10740 (eval "$ac_link") 2>conftest.er1
ad6254c5 10741 ac_status=$?
8a2fc586
AK
10742 grep -v '^ *+' conftest.er1 >conftest.err
10743 rm -f conftest.er1
10744 cat conftest.err >&5
b145d876 10745 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10746 (exit $ac_status); } && {
10747 test -z "$ac_c_werror_flag" ||
10748 test ! -s conftest.err
b145d876
ZK
10749 } && test -s conftest$ac_exeext && {
10750 test "$cross_compiling" = yes ||
10751 $as_test_x conftest$ac_exeext
10752 }; then
25fbec5b 10753 ac_cv_search_getmntent=$ac_res
80992638 10754else
b145d876 10755 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10756sed 's/^/| /' conftest.$ac_ext >&5
10757
25fbec5b 10758
795ca3e5
AK
10759fi
10760
b145d876 10761rm -rf conftest.dSYM
25fbec5b
AK
10762rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10763 conftest$ac_exeext
10764 if test "${ac_cv_search_getmntent+set}" = set; then
10765 break
795ca3e5 10766fi
25fbec5b
AK
10767done
10768if test "${ac_cv_search_getmntent+set}" = set; then
10769 :
10770else
10771 ac_cv_search_getmntent=no
10772fi
10773rm conftest.$ac_ext
10774LIBS=$ac_func_search_save_LIBS
10775fi
b145d876
ZK
10776{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
10777$as_echo "$ac_cv_search_getmntent" >&6; }
25fbec5b
AK
10778ac_res=$ac_cv_search_getmntent
10779if test "$ac_res" != no; then
10780 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10781 ac_cv_func_getmntent=yes
10782
10783cat >>confdefs.h <<\_ACEOF
2a9a80c9 10784#define HAVE_GETMNTENT 1
ad6254c5 10785_ACEOF
795ca3e5 10786
25fbec5b
AK
10787else
10788 ac_cv_func_getmntent=no
795ca3e5 10789fi
795ca3e5
AK
10790
10791
ad6254c5
AK
10792# AC_FUNC_REALLOC
10793
10794
10795for ac_header in sys/select.h sys/socket.h
10796do
b145d876 10797as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 10798if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
b145d876
ZK
10799 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10800$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 10801if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
b145d876 10802 $as_echo_n "(cached) " >&6
ad6254c5 10803fi
b145d876
ZK
10804ac_res=`eval 'as_val=${'$as_ac_Header'}
10805 $as_echo "$as_val"'`
10806 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10807$as_echo "$ac_res" >&6; }
795ca3e5 10808else
ad6254c5 10809 # Is the header compilable?
b145d876
ZK
10810{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10811$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 10812cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10813/* confdefs.h. */
10814_ACEOF
10815cat confdefs.h >>conftest.$ac_ext
10816cat >>conftest.$ac_ext <<_ACEOF
10817/* end confdefs.h. */
10818$ac_includes_default
10819#include <$ac_header>
10820_ACEOF
10821rm -f conftest.$ac_objext
7a197a62
AK
10822if { (ac_try="$ac_compile"
10823case "(($ac_try" in
10824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10825 *) ac_try_echo=$ac_try;;
10826esac
b145d876
ZK
10827eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10828$as_echo "$ac_try_echo") >&5
7a197a62 10829 (eval "$ac_compile") 2>conftest.er1
ad6254c5 10830 ac_status=$?
8a2fc586
AK
10831 grep -v '^ *+' conftest.er1 >conftest.err
10832 rm -f conftest.er1
10833 cat conftest.err >&5
b145d876 10834 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10835 (exit $ac_status); } && {
10836 test -z "$ac_c_werror_flag" ||
10837 test ! -s conftest.err
10838 } && test -s conftest.$ac_objext; then
ad6254c5 10839 ac_header_compiler=yes
80992638 10840else
b145d876 10841 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10842sed 's/^/| /' conftest.$ac_ext >&5
10843
7a197a62 10844 ac_header_compiler=no
ad6254c5 10845fi
7a197a62
AK
10846
10847rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b145d876
ZK
10848{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10849$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
10850
10851# Is the header present?
b145d876
ZK
10852{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10853$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 10854cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10855/* confdefs.h. */
10856_ACEOF
10857cat confdefs.h >>conftest.$ac_ext
10858cat >>conftest.$ac_ext <<_ACEOF
10859/* end confdefs.h. */
10860#include <$ac_header>
10861_ACEOF
7a197a62
AK
10862if { (ac_try="$ac_cpp conftest.$ac_ext"
10863case "(($ac_try" in
10864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10865 *) ac_try_echo=$ac_try;;
10866esac
b145d876
ZK
10867eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10868$as_echo "$ac_try_echo") >&5
7a197a62 10869 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
10870 ac_status=$?
10871 grep -v '^ *+' conftest.er1 >conftest.err
10872 rm -f conftest.er1
10873 cat conftest.err >&5
b145d876 10874 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10875 (exit $ac_status); } >/dev/null && {
10876 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10877 test ! -s conftest.err
10878 }; then
ad6254c5
AK
10879 ac_header_preproc=yes
10880else
b145d876 10881 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10882sed 's/^/| /' conftest.$ac_ext >&5
10883
10884 ac_header_preproc=no
10885fi
7a197a62 10886
ad6254c5 10887rm -f conftest.err conftest.$ac_ext
b145d876
ZK
10888{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10889$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
10890
10891# So? What about this header?
8a2fc586
AK
10892case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10893 yes:no: )
b145d876
ZK
10894 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10895$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10896 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10897$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 10898 ac_header_preproc=yes
ad6254c5 10899 ;;
8a2fc586 10900 no:yes:* )
b145d876
ZK
10901 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10902$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10903 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10904$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10905 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10906$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10907 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10908$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10909 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10910$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10911 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10912$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 10913
ad6254c5
AK
10914 ;;
10915esac
b145d876
ZK
10916{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10917$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 10918if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
b145d876 10919 $as_echo_n "(cached) " >&6
ad6254c5 10920else
8a2fc586 10921 eval "$as_ac_Header=\$ac_header_preproc"
8106cdd5 10922fi
b145d876
ZK
10923ac_res=`eval 'as_val=${'$as_ac_Header'}
10924 $as_echo "$as_val"'`
10925 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10926$as_echo "$ac_res" >&6; }
8106cdd5 10927
795ca3e5 10928fi
b145d876
ZK
10929if test `eval 'as_val=${'$as_ac_Header'}
10930 $as_echo "$as_val"'` = yes; then
ad6254c5 10931 cat >>confdefs.h <<_ACEOF
b145d876 10932#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
10933_ACEOF
10934
795ca3e5
AK
10935fi
10936
ad6254c5
AK
10937done
10938
b145d876
ZK
10939{ $as_echo "$as_me:$LINENO: checking types of arguments for select" >&5
10940$as_echo_n "checking types of arguments for select... " >&6; }
ad6254c5 10941if test "${ac_cv_func_select_args+set}" = set; then
b145d876 10942 $as_echo_n "(cached) " >&6
26e7f2e0 10943else
ad6254c5 10944 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
7a197a62 10945 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
ad6254c5
AK
10946 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
10947 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10948/* confdefs.h. */
10949_ACEOF
10950cat confdefs.h >>conftest.$ac_ext
10951cat >>conftest.$ac_ext <<_ACEOF
10952/* end confdefs.h. */
10953$ac_includes_default
25fbec5b 10954#ifdef HAVE_SYS_SELECT_H
ad6254c5
AK
10955# include <sys/select.h>
10956#endif
25fbec5b 10957#ifdef HAVE_SYS_SOCKET_H
ad6254c5
AK
10958# include <sys/socket.h>
10959#endif
10960
10961int
10962main ()
10963{
10964extern int select ($ac_arg1,
8a2fc586
AK
10965 $ac_arg234, $ac_arg234, $ac_arg234,
10966 $ac_arg5);
ad6254c5
AK
10967 ;
10968 return 0;
10969}
10970_ACEOF
10971rm -f conftest.$ac_objext
7a197a62
AK
10972if { (ac_try="$ac_compile"
10973case "(($ac_try" in
10974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10975 *) ac_try_echo=$ac_try;;
10976esac
b145d876
ZK
10977eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10978$as_echo "$ac_try_echo") >&5
7a197a62 10979 (eval "$ac_compile") 2>conftest.er1
ad6254c5 10980 ac_status=$?
8a2fc586
AK
10981 grep -v '^ *+' conftest.er1 >conftest.err
10982 rm -f conftest.er1
10983 cat conftest.err >&5
b145d876 10984 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10985 (exit $ac_status); } && {
10986 test -z "$ac_c_werror_flag" ||
10987 test ! -s conftest.err
10988 } && test -s conftest.$ac_objext; then
ad6254c5
AK
10989 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
10990else
b145d876 10991 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10992sed 's/^/| /' conftest.$ac_ext >&5
10993
7a197a62 10994
ad6254c5 10995fi
7a197a62
AK
10996
10997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
10998 done
10999 done
11000done
11001# Provide a safe default value.
11002: ${ac_cv_func_select_args='int,int *,struct timeval *'}
11003
26e7f2e0 11004fi
b145d876
ZK
11005{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
11006$as_echo "$ac_cv_func_select_args" >&6; }
ad6254c5
AK
11007ac_save_IFS=$IFS; IFS=','
11008set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
11009IFS=$ac_save_IFS
11010shift
11011
11012cat >>confdefs.h <<_ACEOF
11013#define SELECT_TYPE_ARG1 $1
11014_ACEOF
11015
11016
11017cat >>confdefs.h <<_ACEOF
11018#define SELECT_TYPE_ARG234 ($2)
11019_ACEOF
11020
11021
11022cat >>confdefs.h <<_ACEOF
11023#define SELECT_TYPE_ARG5 ($3)
11024_ACEOF
11025
80992638 11026rm -f conftest*
80992638 11027
8106cdd5 11028fi
ad6254c5 11029
ad6254c5
AK
11030if test x$CLUSTER != xnone; then
11031
11032
11033for ac_header in sys/socket.h sys/un.h
b896caa1 11034do
b145d876 11035as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 11036if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
b145d876
ZK
11037 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11038$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 11039if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
b145d876 11040 $as_echo_n "(cached) " >&6
ad6254c5 11041fi
b145d876
ZK
11042ac_res=`eval 'as_val=${'$as_ac_Header'}
11043 $as_echo "$as_val"'`
11044 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11045$as_echo "$ac_res" >&6; }
ad6254c5
AK
11046else
11047 # Is the header compilable?
b145d876
ZK
11048{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11049$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 11050cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11051/* confdefs.h. */
11052_ACEOF
11053cat confdefs.h >>conftest.$ac_ext
11054cat >>conftest.$ac_ext <<_ACEOF
11055/* end confdefs.h. */
11056$ac_includes_default
11057#include <$ac_header>
11058_ACEOF
11059rm -f conftest.$ac_objext
7a197a62
AK
11060if { (ac_try="$ac_compile"
11061case "(($ac_try" in
11062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11063 *) ac_try_echo=$ac_try;;
11064esac
b145d876
ZK
11065eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11066$as_echo "$ac_try_echo") >&5
7a197a62 11067 (eval "$ac_compile") 2>conftest.er1
ad6254c5 11068 ac_status=$?
8a2fc586
AK
11069 grep -v '^ *+' conftest.er1 >conftest.err
11070 rm -f conftest.er1
11071 cat conftest.err >&5
b145d876 11072 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11073 (exit $ac_status); } && {
11074 test -z "$ac_c_werror_flag" ||
11075 test ! -s conftest.err
11076 } && test -s conftest.$ac_objext; then
ad6254c5
AK
11077 ac_header_compiler=yes
11078else
b145d876 11079 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
11080sed 's/^/| /' conftest.$ac_ext >&5
11081
7a197a62 11082 ac_header_compiler=no
ad6254c5 11083fi
7a197a62
AK
11084
11085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b145d876
ZK
11086{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11087$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
11088
11089# Is the header present?
b145d876
ZK
11090{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11091$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 11092cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11093/* confdefs.h. */
11094_ACEOF
11095cat confdefs.h >>conftest.$ac_ext
11096cat >>conftest.$ac_ext <<_ACEOF
11097/* end confdefs.h. */
11098#include <$ac_header>
11099_ACEOF
7a197a62
AK
11100if { (ac_try="$ac_cpp conftest.$ac_ext"
11101case "(($ac_try" in
11102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11103 *) ac_try_echo=$ac_try;;
11104esac
b145d876
ZK
11105eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11106$as_echo "$ac_try_echo") >&5
7a197a62 11107 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
11108 ac_status=$?
11109 grep -v '^ *+' conftest.er1 >conftest.err
11110 rm -f conftest.er1
11111 cat conftest.err >&5
b145d876 11112 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11113 (exit $ac_status); } >/dev/null && {
11114 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11115 test ! -s conftest.err
11116 }; then
ad6254c5
AK
11117 ac_header_preproc=yes
11118else
b145d876 11119 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
11120sed 's/^/| /' conftest.$ac_ext >&5
11121
11122 ac_header_preproc=no
11123fi
7a197a62 11124
ad6254c5 11125rm -f conftest.err conftest.$ac_ext
b145d876
ZK
11126{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11127$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
11128
11129# So? What about this header?
8a2fc586
AK
11130case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11131 yes:no: )
b145d876
ZK
11132 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11133$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11134 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11135$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 11136 ac_header_preproc=yes
ad6254c5 11137 ;;
8a2fc586 11138 no:yes:* )
b145d876
ZK
11139 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11140$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11141 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11142$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11143 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11144$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11145 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11146$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11147 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11148$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11149 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11150$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 11151
ad6254c5
AK
11152 ;;
11153esac
b145d876
ZK
11154{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11155$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 11156if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
b145d876 11157 $as_echo_n "(cached) " >&6
ad6254c5 11158else
8a2fc586 11159 eval "$as_ac_Header=\$ac_header_preproc"
b896caa1 11160fi
b145d876
ZK
11161ac_res=`eval 'as_val=${'$as_ac_Header'}
11162 $as_echo "$as_val"'`
11163 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11164$as_echo "$ac_res" >&6; }
ad6254c5
AK
11165
11166fi
b145d876
ZK
11167if test `eval 'as_val=${'$as_ac_Header'}
11168 $as_echo "$as_val"'` = yes; then
ad6254c5 11169 cat >>confdefs.h <<_ACEOF
b145d876 11170#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
11171_ACEOF
11172
80992638 11173else
b145d876
ZK
11174 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
11175$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 11176 { (exit 1); exit 1; }; }
b896caa1 11177fi
ad6254c5 11178
b896caa1
AK
11179done
11180
11181
ad6254c5
AK
11182for ac_func in socket
11183do
b145d876
ZK
11184as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11185{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11186$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 11187if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
b145d876 11188 $as_echo_n "(cached) " >&6
795ca3e5 11189else
ad6254c5 11190 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11191/* confdefs.h. */
11192_ACEOF
11193cat confdefs.h >>conftest.$ac_ext
11194cat >>conftest.$ac_ext <<_ACEOF
11195/* end confdefs.h. */
8a2fc586
AK
11196/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11197 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11198#define $ac_func innocuous_$ac_func
11199
ad6254c5
AK
11200/* System header to define __stub macros and hopefully few prototypes,
11201 which can conflict with char $ac_func (); below.
11202 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11203 <limits.h> exists even on freestanding compilers. */
8a2fc586 11204
ad6254c5
AK
11205#ifdef __STDC__
11206# include <limits.h>
11207#else
11208# include <assert.h>
11209#endif
8a2fc586
AK
11210
11211#undef $ac_func
11212
7a197a62
AK
11213/* Override any GCC internal prototype to avoid an error.
11214 Use char because int might match the return type of a GCC
11215 builtin and then its argument prototype would still apply. */
ad6254c5
AK
11216#ifdef __cplusplus
11217extern "C"
ad6254c5 11218#endif
ad6254c5
AK
11219char $ac_func ();
11220/* The GNU C library defines this for functions which it implements
11221 to always fail with ENOSYS. Some functions are actually named
11222 something starting with __ and the normal name is an alias. */
7a197a62 11223#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 11224choke me
ad6254c5
AK
11225#endif
11226
11227int
11228main ()
11229{
7a197a62 11230return $ac_func ();
ad6254c5
AK
11231 ;
11232 return 0;
11233}
11234_ACEOF
11235rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
11236if { (ac_try="$ac_link"
11237case "(($ac_try" in
11238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11239 *) ac_try_echo=$ac_try;;
11240esac
b145d876
ZK
11241eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11242$as_echo "$ac_try_echo") >&5
7a197a62 11243 (eval "$ac_link") 2>conftest.er1
ad6254c5 11244 ac_status=$?
8a2fc586
AK
11245 grep -v '^ *+' conftest.er1 >conftest.err
11246 rm -f conftest.er1
11247 cat conftest.err >&5
b145d876 11248 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11249 (exit $ac_status); } && {
11250 test -z "$ac_c_werror_flag" ||
11251 test ! -s conftest.err
b145d876
ZK
11252 } && test -s conftest$ac_exeext && {
11253 test "$cross_compiling" = yes ||
11254 $as_test_x conftest$ac_exeext
11255 }; then
ad6254c5
AK
11256 eval "$as_ac_var=yes"
11257else
b145d876 11258 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
11259sed 's/^/| /' conftest.$ac_ext >&5
11260
7a197a62 11261 eval "$as_ac_var=no"
ad6254c5 11262fi
7a197a62 11263
b145d876 11264rm -rf conftest.dSYM
25fbec5b 11265rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 11266 conftest$ac_exeext conftest.$ac_ext
ad6254c5 11267fi
b145d876
ZK
11268ac_res=`eval 'as_val=${'$as_ac_var'}
11269 $as_echo "$as_val"'`
11270 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11271$as_echo "$ac_res" >&6; }
11272if test `eval 'as_val=${'$as_ac_var'}
11273 $as_echo "$as_val"'` = yes; then
ad6254c5 11274 cat >>confdefs.h <<_ACEOF
b145d876 11275#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
11276_ACEOF
11277
11278else
b145d876
ZK
11279 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
11280$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5
AK
11281 { (exit 1); exit 1; }; }
11282fi
11283done
11284
11285fi
11286
11287if test x$HAVE_LIBDL = xyes; then
11288
11289for ac_header in dlfcn.h
11290do
b145d876 11291as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 11292if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
b145d876
ZK
11293 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11294$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 11295if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
b145d876 11296 $as_echo_n "(cached) " >&6
ad6254c5 11297fi
b145d876
ZK
11298ac_res=`eval 'as_val=${'$as_ac_Header'}
11299 $as_echo "$as_val"'`
11300 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11301$as_echo "$ac_res" >&6; }
ad6254c5
AK
11302else
11303 # Is the header compilable?
b145d876
ZK
11304{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11305$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 11306cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11307/* confdefs.h. */
11308_ACEOF
11309cat confdefs.h >>conftest.$ac_ext
11310cat >>conftest.$ac_ext <<_ACEOF
11311/* end confdefs.h. */
11312$ac_includes_default
11313#include <$ac_header>
11314_ACEOF
11315rm -f conftest.$ac_objext
7a197a62
AK
11316if { (ac_try="$ac_compile"
11317case "(($ac_try" in
11318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11319 *) ac_try_echo=$ac_try;;
11320esac
b145d876
ZK
11321eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11322$as_echo "$ac_try_echo") >&5
7a197a62 11323 (eval "$ac_compile") 2>conftest.er1
ad6254c5 11324 ac_status=$?
8a2fc586
AK
11325 grep -v '^ *+' conftest.er1 >conftest.err
11326 rm -f conftest.er1
11327 cat conftest.err >&5
b145d876 11328 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11329 (exit $ac_status); } && {
11330 test -z "$ac_c_werror_flag" ||
11331 test ! -s conftest.err
11332 } && test -s conftest.$ac_objext; then
ad6254c5
AK
11333 ac_header_compiler=yes
11334else
b145d876 11335 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
11336sed 's/^/| /' conftest.$ac_ext >&5
11337
7a197a62 11338 ac_header_compiler=no
ad6254c5 11339fi
7a197a62
AK
11340
11341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b145d876
ZK
11342{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11343$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
11344
11345# Is the header present?
b145d876
ZK
11346{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11347$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 11348cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11349/* confdefs.h. */
11350_ACEOF
11351cat confdefs.h >>conftest.$ac_ext
11352cat >>conftest.$ac_ext <<_ACEOF
11353/* end confdefs.h. */
11354#include <$ac_header>
11355_ACEOF
7a197a62
AK
11356if { (ac_try="$ac_cpp conftest.$ac_ext"
11357case "(($ac_try" in
11358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11359 *) ac_try_echo=$ac_try;;
11360esac
b145d876
ZK
11361eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11362$as_echo "$ac_try_echo") >&5
7a197a62 11363 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
11364 ac_status=$?
11365 grep -v '^ *+' conftest.er1 >conftest.err
11366 rm -f conftest.er1
11367 cat conftest.err >&5
b145d876 11368 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11369 (exit $ac_status); } >/dev/null && {
11370 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11371 test ! -s conftest.err
11372 }; then
ad6254c5
AK
11373 ac_header_preproc=yes
11374else
b145d876 11375 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
11376sed 's/^/| /' conftest.$ac_ext >&5
11377
11378 ac_header_preproc=no
11379fi
7a197a62 11380
ad6254c5 11381rm -f conftest.err conftest.$ac_ext
b145d876
ZK
11382{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11383$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
11384
11385# So? What about this header?
8a2fc586
AK
11386case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11387 yes:no: )
b145d876
ZK
11388 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11389$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11390 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11391$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 11392 ac_header_preproc=yes
ad6254c5 11393 ;;
8a2fc586 11394 no:yes:* )
b145d876
ZK
11395 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11396$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11397 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11398$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11399 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11400$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11401 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11402$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11403 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11404$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11405 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11406$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 11407
ad6254c5
AK
11408 ;;
11409esac
b145d876
ZK
11410{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11411$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 11412if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
b145d876 11413 $as_echo_n "(cached) " >&6
ad6254c5 11414else
8a2fc586 11415 eval "$as_ac_Header=\$ac_header_preproc"
795ca3e5 11416fi
b145d876
ZK
11417ac_res=`eval 'as_val=${'$as_ac_Header'}
11418 $as_echo "$as_val"'`
11419 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11420$as_echo "$ac_res" >&6; }
80992638 11421
8106cdd5 11422fi
b145d876
ZK
11423if test `eval 'as_val=${'$as_ac_Header'}
11424 $as_echo "$as_val"'` = yes; then
ad6254c5 11425 cat >>confdefs.h <<_ACEOF
b145d876 11426#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 11427_ACEOF
795ca3e5
AK
11428
11429else
b145d876
ZK
11430 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
11431$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 11432 { (exit 1); exit 1; }; }
795ca3e5
AK
11433fi
11434
ad6254c5 11435done
80992638 11436
ad6254c5 11437fi
80992638 11438
ad6254c5 11439if test x$INTL = xyes; then
83912faa 11440
ad6254c5
AK
11441for ac_header in libintl.h
11442do
b145d876 11443as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 11444if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
b145d876
ZK
11445 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11446$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 11447if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
b145d876 11448 $as_echo_n "(cached) " >&6
ad6254c5 11449fi
b145d876
ZK
11450ac_res=`eval 'as_val=${'$as_ac_Header'}
11451 $as_echo "$as_val"'`
11452 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11453$as_echo "$ac_res" >&6; }
83912faa 11454else
ad6254c5 11455 # Is the header compilable?
b145d876
ZK
11456{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11457$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 11458cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11459/* confdefs.h. */
11460_ACEOF
11461cat confdefs.h >>conftest.$ac_ext
11462cat >>conftest.$ac_ext <<_ACEOF
11463/* end confdefs.h. */
11464$ac_includes_default
11465#include <$ac_header>
11466_ACEOF
11467rm -f conftest.$ac_objext
7a197a62
AK
11468if { (ac_try="$ac_compile"
11469case "(($ac_try" in
11470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11471 *) ac_try_echo=$ac_try;;
11472esac
b145d876
ZK
11473eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11474$as_echo "$ac_try_echo") >&5
7a197a62 11475 (eval "$ac_compile") 2>conftest.er1
ad6254c5 11476 ac_status=$?
8a2fc586
AK
11477 grep -v '^ *+' conftest.er1 >conftest.err
11478 rm -f conftest.er1
11479 cat conftest.err >&5
b145d876 11480 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11481 (exit $ac_status); } && {
11482 test -z "$ac_c_werror_flag" ||
11483 test ! -s conftest.err
11484 } && test -s conftest.$ac_objext; then
ad6254c5
AK
11485 ac_header_compiler=yes
11486else
b145d876 11487 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
11488sed 's/^/| /' conftest.$ac_ext >&5
11489
7a197a62 11490 ac_header_compiler=no
ad6254c5 11491fi
7a197a62
AK
11492
11493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b145d876
ZK
11494{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11495$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
11496
11497# Is the header present?
b145d876
ZK
11498{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11499$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 11500cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11501/* confdefs.h. */
11502_ACEOF
11503cat confdefs.h >>conftest.$ac_ext
11504cat >>conftest.$ac_ext <<_ACEOF
11505/* end confdefs.h. */
11506#include <$ac_header>
11507_ACEOF
7a197a62
AK
11508if { (ac_try="$ac_cpp conftest.$ac_ext"
11509case "(($ac_try" in
11510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11511 *) ac_try_echo=$ac_try;;
11512esac
b145d876
ZK
11513eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11514$as_echo "$ac_try_echo") >&5
7a197a62 11515 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
11516 ac_status=$?
11517 grep -v '^ *+' conftest.er1 >conftest.err
11518 rm -f conftest.er1
11519 cat conftest.err >&5
b145d876 11520 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11521 (exit $ac_status); } >/dev/null && {
11522 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11523 test ! -s conftest.err
11524 }; then
ad6254c5
AK
11525 ac_header_preproc=yes
11526else
b145d876 11527 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
11528sed 's/^/| /' conftest.$ac_ext >&5
11529
11530 ac_header_preproc=no
11531fi
7a197a62 11532
ad6254c5 11533rm -f conftest.err conftest.$ac_ext
b145d876
ZK
11534{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11535$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
11536
11537# So? What about this header?
8a2fc586
AK
11538case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11539 yes:no: )
b145d876
ZK
11540 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11541$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11542 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11543$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 11544 ac_header_preproc=yes
ad6254c5 11545 ;;
8a2fc586 11546 no:yes:* )
b145d876
ZK
11547 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11548$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11549 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11550$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11551 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11552$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11553 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11554$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11555 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11556$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11557 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11558$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 11559
ad6254c5
AK
11560 ;;
11561esac
b145d876
ZK
11562{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11563$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 11564if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
b145d876 11565 $as_echo_n "(cached) " >&6
80992638 11566else
8a2fc586 11567 eval "$as_ac_Header=\$ac_header_preproc"
83912faa 11568fi
b145d876
ZK
11569ac_res=`eval 'as_val=${'$as_ac_Header'}
11570 $as_echo "$as_val"'`
11571 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11572$as_echo "$ac_res" >&6; }
83912faa 11573
69792976 11574fi
b145d876
ZK
11575if test `eval 'as_val=${'$as_ac_Header'}
11576 $as_echo "$as_val"'` = yes; then
ad6254c5 11577 cat >>confdefs.h <<_ACEOF
b145d876 11578#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 11579_ACEOF
69792976 11580
69792976 11581else
b145d876
ZK
11582 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
11583$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 11584 { (exit 1); exit 1; }; }
80992638
AK
11585fi
11586
ad6254c5 11587done
69792976 11588
ad6254c5
AK
11589fi
11590
ad6254c5
AK
11591
11592for ac_header in libdevmapper.h
11593do
b145d876 11594as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 11595if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
b145d876
ZK
11596 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11597$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 11598if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
b145d876 11599 $as_echo_n "(cached) " >&6
ad6254c5 11600fi
b145d876
ZK
11601ac_res=`eval 'as_val=${'$as_ac_Header'}
11602 $as_echo "$as_val"'`
11603 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11604$as_echo "$ac_res" >&6; }
69792976 11605else
ad6254c5 11606 # Is the header compilable?
b145d876
ZK
11607{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11608$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 11609cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11610/* confdefs.h. */
11611_ACEOF
11612cat confdefs.h >>conftest.$ac_ext
11613cat >>conftest.$ac_ext <<_ACEOF
11614/* end confdefs.h. */
11615$ac_includes_default
11616#include <$ac_header>
11617_ACEOF
11618rm -f conftest.$ac_objext
7a197a62
AK
11619if { (ac_try="$ac_compile"
11620case "(($ac_try" in
11621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11622 *) ac_try_echo=$ac_try;;
11623esac
b145d876
ZK
11624eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11625$as_echo "$ac_try_echo") >&5
7a197a62 11626 (eval "$ac_compile") 2>conftest.er1
ad6254c5 11627 ac_status=$?
8a2fc586
AK
11628 grep -v '^ *+' conftest.er1 >conftest.err
11629 rm -f conftest.er1
11630 cat conftest.err >&5
b145d876 11631 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11632 (exit $ac_status); } && {
11633 test -z "$ac_c_werror_flag" ||
11634 test ! -s conftest.err
11635 } && test -s conftest.$ac_objext; then
ad6254c5
AK
11636 ac_header_compiler=yes
11637else
b145d876 11638 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
11639sed 's/^/| /' conftest.$ac_ext >&5
11640
7a197a62 11641 ac_header_compiler=no
ad6254c5 11642fi
7a197a62
AK
11643
11644rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b145d876
ZK
11645{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11646$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
11647
11648# Is the header present?
b145d876
ZK
11649{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11650$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 11651cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11652/* confdefs.h. */
11653_ACEOF
11654cat confdefs.h >>conftest.$ac_ext
11655cat >>conftest.$ac_ext <<_ACEOF
11656/* end confdefs.h. */
11657#include <$ac_header>
11658_ACEOF
7a197a62
AK
11659if { (ac_try="$ac_cpp conftest.$ac_ext"
11660case "(($ac_try" in
11661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11662 *) ac_try_echo=$ac_try;;
11663esac
b145d876
ZK
11664eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11665$as_echo "$ac_try_echo") >&5
7a197a62 11666 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
11667 ac_status=$?
11668 grep -v '^ *+' conftest.er1 >conftest.err
11669 rm -f conftest.er1
11670 cat conftest.err >&5
b145d876 11671 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11672 (exit $ac_status); } >/dev/null && {
11673 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11674 test ! -s conftest.err
11675 }; then
ad6254c5
AK
11676 ac_header_preproc=yes
11677else
b145d876 11678 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
11679sed 's/^/| /' conftest.$ac_ext >&5
11680
11681 ac_header_preproc=no
11682fi
7a197a62 11683
ad6254c5 11684rm -f conftest.err conftest.$ac_ext
b145d876
ZK
11685{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11686$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
11687
11688# So? What about this header?
8a2fc586
AK
11689case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11690 yes:no: )
b145d876
ZK
11691 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11692$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11693 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11694$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 11695 ac_header_preproc=yes
ad6254c5 11696 ;;
8a2fc586 11697 no:yes:* )
b145d876
ZK
11698 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11699$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11700 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11701$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11702 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11703$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11704 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11705$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11706 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11707$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11708 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11709$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 11710
ad6254c5
AK
11711 ;;
11712esac
b145d876
ZK
11713{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11714$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 11715if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
b145d876 11716 $as_echo_n "(cached) " >&6
69792976 11717else
8a2fc586 11718 eval "$as_ac_Header=\$ac_header_preproc"
69792976 11719fi
b145d876
ZK
11720ac_res=`eval 'as_val=${'$as_ac_Header'}
11721 $as_echo "$as_val"'`
11722 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11723$as_echo "$ac_res" >&6; }
69792976 11724
ad6254c5 11725fi
b145d876
ZK
11726if test `eval 'as_val=${'$as_ac_Header'}
11727 $as_echo "$as_val"'` = yes; then
ad6254c5 11728 cat >>confdefs.h <<_ACEOF
b145d876 11729#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 11730_ACEOF
69792976 11731
69792976 11732else
b145d876
ZK
11733 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
11734$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 11735 { (exit 1); exit 1; }; }
83912faa
AK
11736fi
11737
ad6254c5
AK
11738done
11739
4a7f3eb2 11740
ad6254c5
AK
11741if test x$HAVE_SELINUX = xyes; then
11742
11743for ac_header in selinux/selinux.h
11744do
b145d876 11745as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 11746if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
b145d876
ZK
11747 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11748$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 11749if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
b145d876 11750 $as_echo_n "(cached) " >&6
ad6254c5 11751fi
b145d876
ZK
11752ac_res=`eval 'as_val=${'$as_ac_Header'}
11753 $as_echo "$as_val"'`
11754 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11755$as_echo "$ac_res" >&6; }
4a7f3eb2 11756else
ad6254c5 11757 # Is the header compilable?
b145d876
ZK
11758{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11759$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 11760cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11761/* confdefs.h. */
11762_ACEOF
11763cat confdefs.h >>conftest.$ac_ext
11764cat >>conftest.$ac_ext <<_ACEOF
11765/* end confdefs.h. */
11766$ac_includes_default
11767#include <$ac_header>
11768_ACEOF
11769rm -f conftest.$ac_objext
7a197a62
AK
11770if { (ac_try="$ac_compile"
11771case "(($ac_try" in
11772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11773 *) ac_try_echo=$ac_try;;
11774esac
b145d876
ZK
11775eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11776$as_echo "$ac_try_echo") >&5
7a197a62 11777 (eval "$ac_compile") 2>conftest.er1
ad6254c5 11778 ac_status=$?
8a2fc586
AK
11779 grep -v '^ *+' conftest.er1 >conftest.err
11780 rm -f conftest.er1
11781 cat conftest.err >&5
b145d876 11782 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11783 (exit $ac_status); } && {
11784 test -z "$ac_c_werror_flag" ||
11785 test ! -s conftest.err
11786 } && test -s conftest.$ac_objext; then
ad6254c5
AK
11787 ac_header_compiler=yes
11788else
b145d876 11789 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
11790sed 's/^/| /' conftest.$ac_ext >&5
11791
7a197a62 11792 ac_header_compiler=no
ad6254c5 11793fi
7a197a62
AK
11794
11795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b145d876
ZK
11796{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11797$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
11798
11799# Is the header present?
b145d876
ZK
11800{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11801$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 11802cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11803/* confdefs.h. */
11804_ACEOF
11805cat confdefs.h >>conftest.$ac_ext
11806cat >>conftest.$ac_ext <<_ACEOF
11807/* end confdefs.h. */
11808#include <$ac_header>
11809_ACEOF
7a197a62
AK
11810if { (ac_try="$ac_cpp conftest.$ac_ext"
11811case "(($ac_try" in
11812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11813 *) ac_try_echo=$ac_try;;
11814esac
b145d876
ZK
11815eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11816$as_echo "$ac_try_echo") >&5
7a197a62 11817 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
11818 ac_status=$?
11819 grep -v '^ *+' conftest.er1 >conftest.err
11820 rm -f conftest.er1
11821 cat conftest.err >&5
b145d876 11822 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11823 (exit $ac_status); } >/dev/null && {
11824 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11825 test ! -s conftest.err
11826 }; then
ad6254c5
AK
11827 ac_header_preproc=yes
11828else
b145d876 11829 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
11830sed 's/^/| /' conftest.$ac_ext >&5
11831
11832 ac_header_preproc=no
11833fi
7a197a62 11834
ad6254c5 11835rm -f conftest.err conftest.$ac_ext
b145d876
ZK
11836{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11837$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
11838
11839# So? What about this header?
8a2fc586
AK
11840case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11841 yes:no: )
b145d876
ZK
11842 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11843$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11844 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11845$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 11846 ac_header_preproc=yes
ad6254c5 11847 ;;
8a2fc586 11848 no:yes:* )
b145d876
ZK
11849 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11850$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11851 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11852$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11853 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11854$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11855 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11856$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11857 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11858$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11859 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11860$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 11861
ad6254c5
AK
11862 ;;
11863esac
b145d876
ZK
11864{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11865$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 11866if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
b145d876 11867 $as_echo_n "(cached) " >&6
ad6254c5 11868else
8a2fc586 11869 eval "$as_ac_Header=\$ac_header_preproc"
80992638 11870fi
b145d876
ZK
11871ac_res=`eval 'as_val=${'$as_ac_Header'}
11872 $as_echo "$as_val"'`
11873 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11874$as_echo "$ac_res" >&6; }
4a7f3eb2 11875
ad6254c5 11876fi
b145d876
ZK
11877if test `eval 'as_val=${'$as_ac_Header'}
11878 $as_echo "$as_val"'` = yes; then
ad6254c5 11879 cat >>confdefs.h <<_ACEOF
b145d876 11880#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 11881_ACEOF
0a62c911 11882
0a62c911 11883else
b145d876
ZK
11884 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
11885$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 11886 { (exit 1); exit 1; }; }
80992638
AK
11887fi
11888
ad6254c5 11889done
0a62c911 11890
ad6254c5 11891fi
0a62c911 11892
a653923f
AK
11893################################################################################
11894# Extract the first word of "modprobe", so it can be a program name with args.
11895set dummy modprobe; ac_word=$2
b145d876
ZK
11896{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11897$as_echo_n "checking for $ac_word... " >&6; }
72b2cb61 11898if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then
b145d876 11899 $as_echo_n "(cached) " >&6
72b2cb61
AK
11900else
11901 case $MODPROBE_CMD in
11902 [\\/]* | ?:[\\/]*)
11903 ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path.
11904 ;;
11905 *)
11906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11907for as_dir in $PATH
11908do
11909 IFS=$as_save_IFS
11910 test -z "$as_dir" && as_dir=.
11911 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 11912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
72b2cb61 11913 ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext"
b145d876 11914 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
72b2cb61
AK
11915 break 2
11916 fi
11917done
11918done
7a197a62 11919IFS=$as_save_IFS
72b2cb61
AK
11920
11921 ;;
11922esac
11923fi
11924MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD
72b2cb61 11925if test -n "$MODPROBE_CMD"; then
b145d876
ZK
11926 { $as_echo "$as_me:$LINENO: result: $MODPROBE_CMD" >&5
11927$as_echo "$MODPROBE_CMD" >&6; }
72b2cb61 11928else
b145d876
ZK
11929 { $as_echo "$as_me:$LINENO: result: no" >&5
11930$as_echo "no" >&6; }
72b2cb61
AK
11931fi
11932
a653923f 11933
7a197a62 11934
a653923f 11935if test x$MODPROBE_CMD != x; then
72b2cb61
AK
11936
11937cat >>confdefs.h <<_ACEOF
11938#define MODPROBE_CMD "$MODPROBE_CMD"
11939_ACEOF
11940
a653923f
AK
11941fi
11942
80992638 11943################################################################################
d0191583 11944LVM_VERSION="\"`cat VERSION 2>/dev/null || echo Unknown`\""
fae0c576 11945
80992638 11946################################################################################
fae0c576 11947
83912faa 11948
795ca3e5
AK
11949
11950
11951
11952
11953
11954
5a52dca9 11955
8ef2b021 11956
199e490e 11957
69792976
AK
11958
11959
11960
d0191583
JM
11961# FIXME: rename to LVM_USE_DMEVENTD
11962
69792976 11963
8106cdd5
AK
11964
11965
11966
11967
11968
d68a82ec 11969
036f273a 11970
7d1552c9 11971
8106cdd5 11972
0a62c911 11973
8106cdd5 11974
4a7f3eb2 11975
4922197a
AK
11976
11977
d8ac0fbc 11978
1a9ea74d 11979
8a2fc586
AK
11980
11981
d0191583
JM
11982
11983# FIXME: rename to LVM_CONF_DIR
11984
11985
11986
11987
11988
8a2fc586 11989
8ce0cbda 11990
8b1a3214 11991
33f732c5 11992
66e941e8 11993
d3c8211f
AK
11994
11995
80992638 11996################################################################################
d0191583 11997ac_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 11998
ad6254c5 11999cat >confcache <<\_ACEOF
795ca3e5
AK
12000# This file is a shell script that caches the results of configure
12001# tests run on this system so they can be shared between configure
ad6254c5
AK
12002# scripts and configure runs, see configure's option --config-cache.
12003# It is not useful on other systems. If it contains results you don't
12004# want to keep, you may remove or edit it.
795ca3e5 12005#
ad6254c5
AK
12006# config.status only pays attention to the cache file if you give it
12007# the --recheck option to rerun configure.
795ca3e5 12008#
ad6254c5
AK
12009# `ac_cv_env_foo' variables (set or unset) will be overridden when
12010# loading this file, other *unset* `ac_cv_foo' will be assigned the
12011# following values.
12012
12013_ACEOF
12014
795ca3e5
AK
12015# The following way of writing the cache mishandles newlines in values,
12016# but we know of no workaround that is simple, portable, and efficient.
7a197a62 12017# So, we kill variables containing newlines.
795ca3e5
AK
12018# Ultrix sh set writes to stderr and can't be redirected directly,
12019# and sets the high bit in the cache file unless we assign to the vars.
7a197a62
AK
12020(
12021 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12022 eval ac_val=\$$ac_var
12023 case $ac_val in #(
12024 *${as_nl}*)
12025 case $ac_var in #(
b145d876
ZK
12026 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
12027$as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
7a197a62
AK
12028 esac
12029 case $ac_var in #(
12030 _ | IFS | as_nl) ;; #(
b145d876 12031 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7a197a62
AK
12032 *) $as_unset $ac_var ;;
12033 esac ;;
12034 esac
12035 done
12036
ad6254c5 12037 (set) 2>&1 |
7a197a62
AK
12038 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12039 *${as_nl}ac_space=\ *)
ad6254c5
AK
12040 # `set' does not quote correctly, so add quotes (double-quote
12041 # substitution turns \\\\ into \\, and sed turns \\ into \).
12042 sed -n \
8a2fc586
AK
12043 "s/'/'\\\\''/g;
12044 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7a197a62 12045 ;; #(
ad6254c5
AK
12046 *)
12047 # `set' quotes correctly as required by POSIX, so do not add quotes.
7a197a62 12048 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
ad6254c5 12049 ;;
7a197a62
AK
12050 esac |
12051 sort
12052) |
ad6254c5 12053 sed '
7a197a62 12054 /^ac_cv_env_/b end
ad6254c5 12055 t clear
7a197a62 12056 :clear
ad6254c5
AK
12057 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12058 t end
7a197a62
AK
12059 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12060 :end' >>confcache
12061if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12062 if test -w "$cache_file"; then
12063 test "x$cache_file" != "x/dev/null" &&
b145d876
ZK
12064 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
12065$as_echo "$as_me: updating cache $cache_file" >&6;}
ad6254c5 12066 cat confcache >$cache_file
795ca3e5 12067 else
b145d876
ZK
12068 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
12069$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
795ca3e5
AK
12070 fi
12071fi
12072rm -f confcache
12073
795ca3e5
AK
12074test "x$prefix" = xNONE && prefix=$ac_default_prefix
12075# Let make expand exec_prefix.
12076test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12077
72b2cb61 12078DEFS=-DHAVE_CONFIG_H
ad6254c5
AK
12079
12080ac_libobjs=
12081ac_ltlibobjs=
12082for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12083 # 1. Remove the extension, and $U if already installed.
7a197a62 12084 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
b145d876 12085 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7a197a62
AK
12086 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12087 # will be set to the directory where LIBOBJS objects are built.
12088 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12089 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
ad6254c5
AK
12090done
12091LIBOBJS=$ac_libobjs
80992638 12092
ad6254c5
AK
12093LTLIBOBJS=$ac_ltlibobjs
12094
12095
12096
12097: ${CONFIG_STATUS=./config.status}
b145d876 12098ac_write_fail=0
ad6254c5
AK
12099ac_clean_files_save=$ac_clean_files
12100ac_clean_files="$ac_clean_files $CONFIG_STATUS"
b145d876
ZK
12101{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12102$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12103cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5
AK
12104#! $SHELL
12105# Generated by $as_me.
795ca3e5 12106# Run this file to recreate the current configuration.
795ca3e5 12107# Compiler output produced by configure, useful for debugging
ad6254c5
AK
12108# configure, is in config.log if it exists.
12109
12110debug=false
12111ac_cs_recheck=false
12112ac_cs_silent=false
12113SHELL=\${CONFIG_SHELL-$SHELL}
12114_ACEOF
12115
b145d876 12116cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ad6254c5
AK
12117## --------------------- ##
12118## M4sh Initialization. ##
12119## --------------------- ##
12120
25fbec5b
AK
12121# Be more Bourne compatible
12122DUALCASE=1; export DUALCASE # for MKS sh
ad6254c5
AK
12123if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12124 emulate sh
12125 NULLCMD=:
b145d876 12126 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
ad6254c5
AK
12127 # is contrary to our usage. Disable this feature.
12128 alias -g '${1+"$@"}'='"$@"'
7a197a62
AK
12129 setopt NO_GLOB_SUBST
12130else
25fbec5b
AK
12131 case `(set -o) 2>/dev/null` in
12132 *posix*) set -o posix ;;
12133esac
12134
7a197a62 12135fi
25fbec5b
AK
12136
12137
7a197a62
AK
12138
12139
12140# PATH needs CR
12141# Avoid depending upon Character Ranges.
12142as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12143as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12144as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12145as_cr_digits='0123456789'
12146as_cr_alnum=$as_cr_Letters$as_cr_digits
12147
b145d876
ZK
12148as_nl='
12149'
12150export as_nl
12151# Printing a long string crashes Solaris 7 /usr/bin/printf.
12152as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12153as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12154as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12155if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12156 as_echo='printf %s\n'
12157 as_echo_n='printf %s'
12158else
12159 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12160 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12161 as_echo_n='/usr/ucb/echo -n'
5556819a 12162 else
b145d876
ZK
12163 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12164 as_echo_n_body='eval
12165 arg=$1;
12166 case $arg in
12167 *"$as_nl"*)
12168 expr "X$arg" : "X\\(.*\\)$as_nl";
12169 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12170 esac;
12171 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12172 '
12173 export as_echo_n_body
12174 as_echo_n='sh -c $as_echo_n_body as_echo'
5556819a 12175 fi
b145d876
ZK
12176 export as_echo_body
12177 as_echo='sh -c $as_echo_body as_echo'
12178fi
12179
12180# The user is always right.
12181if test "${PATH_SEPARATOR+set}" != set; then
12182 PATH_SEPARATOR=:
12183 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12184 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12185 PATH_SEPARATOR=';'
12186 }
ad6254c5
AK
12187fi
12188
12189# Support unset when possible.
8a2fc586 12190if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
ad6254c5
AK
12191 as_unset=unset
12192else
12193 as_unset=false
12194fi
8106cdd5 12195
ad6254c5 12196
7a197a62
AK
12197# IFS
12198# We need space, tab and new line, in precisely that order. Quoting is
12199# there to prevent editors from complaining about space-tab.
12200# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12201# splitting by setting IFS to empty value.)
7a197a62
AK
12202IFS=" "" $as_nl"
12203
12204# Find who we are. Look in the path if we contain no directory separator.
12205case $0 in
12206 *[\\/]* ) as_myself=$0 ;;
12207 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12208for as_dir in $PATH
12209do
12210 IFS=$as_save_IFS
12211 test -z "$as_dir" && as_dir=.
12212 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12213done
12214IFS=$as_save_IFS
12215
12216 ;;
12217esac
12218# We did not find ourselves, most probably we were run as `sh COMMAND'
12219# in which case we are not to be found in the path.
12220if test "x$as_myself" = x; then
12221 as_myself=$0
12222fi
12223if test ! -f "$as_myself"; then
b145d876 12224 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7a197a62
AK
12225 { (exit 1); exit 1; }
12226fi
12227
ad6254c5 12228# Work around bugs in pre-3.0 UWIN ksh.
7a197a62
AK
12229for as_var in ENV MAIL MAILPATH
12230do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12231done
ad6254c5
AK
12232PS1='$ '
12233PS2='> '
12234PS4='+ '
12235
12236# NLS nuisances.
b145d876
ZK
12237LC_ALL=C
12238export LC_ALL
12239LANGUAGE=C
12240export LANGUAGE
8106cdd5 12241
ad6254c5 12242# Required to use basename.
7a197a62
AK
12243if expr a : '\(a\)' >/dev/null 2>&1 &&
12244 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
12245 as_expr=expr
12246else
12247 as_expr=false
12248fi
8106cdd5 12249
7a197a62 12250if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
ad6254c5
AK
12251 as_basename=basename
12252else
12253 as_basename=false
12254fi
12255
12256
12257# Name of the executable.
7a197a62 12258as_me=`$as_basename -- "$0" ||
ad6254c5
AK
12259$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12260 X"$0" : 'X\(//\)$' \| \
7a197a62 12261 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
b145d876 12262$as_echo X/"$0" |
7a197a62
AK
12263 sed '/^.*\/\([^/][^/]*\)\/*$/{
12264 s//\1/
12265 q
12266 }
12267 /^X\/\(\/\/\)$/{
12268 s//\1/
12269 q
12270 }
12271 /^X\/\(\/\).*/{
12272 s//\1/
12273 q
12274 }
12275 s/.*/./; q'`
ad6254c5 12276
7a197a62
AK
12277# CDPATH.
12278$as_unset CDPATH
ad6254c5
AK
12279
12280
ad6254c5 12281
ad6254c5
AK
12282 as_lineno_1=$LINENO
12283 as_lineno_2=$LINENO
ad6254c5 12284 test "x$as_lineno_1" != "x$as_lineno_2" &&
7a197a62 12285 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
795ca3e5 12286
ad6254c5
AK
12287 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12288 # uniformly replaced by the line number. The first 'sed' inserts a
7a197a62
AK
12289 # line-number line after each line using $LINENO; the second 'sed'
12290 # does the real work. The second script uses 'N' to pair each
12291 # line-number line with the line containing $LINENO, and appends
12292 # trailing '-' during substitution so that $LINENO is not a special
12293 # case at line end.
ad6254c5 12294 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7a197a62
AK
12295 # scripts with optimization help from Paolo Bonzini. Blame Lee
12296 # E. McMahon (1931-1989) for sed's syntax. :-)
12297 sed -n '
12298 p
12299 /[$]LINENO/=
12300 ' <$as_myself |
ad6254c5 12301 sed '
7a197a62
AK
12302 s/[$]LINENO.*/&-/
12303 t lineno
12304 b
12305 :lineno
ad6254c5 12306 N
7a197a62
AK
12307 :loop
12308 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
ad6254c5 12309 t loop
7a197a62 12310 s/-\n.*//
ad6254c5 12311 ' >$as_me.lineno &&
7a197a62 12312 chmod +x "$as_me.lineno" ||
b145d876 12313 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
ad6254c5
AK
12314 { (exit 1); exit 1; }; }
12315
12316 # Don't try to exec as it changes $[0], causing all sort of problems
12317 # (the dirname of $[0] is not the place where we might find the
7a197a62
AK
12318 # original and so on. Autoconf is especially sensitive to this).
12319 . "./$as_me.lineno"
ad6254c5
AK
12320 # Exit status is that of the last command.
12321 exit
12322}
12323
12324
7a197a62
AK
12325if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12326 as_dirname=dirname
12327else
12328 as_dirname=false
12329fi
12330
12331ECHO_C= ECHO_N= ECHO_T=
12332case `echo -n x` in
12333-n*)
12334 case `echo 'x\c'` in
12335 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12336 *) ECHO_C='\c';;
12337 esac;;
12338*)
12339 ECHO_N='-n';;
ad6254c5 12340esac
7a197a62
AK
12341if expr a : '\(a\)' >/dev/null 2>&1 &&
12342 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
12343 as_expr=expr
12344else
12345 as_expr=false
12346fi
80992638 12347
ad6254c5 12348rm -f conf$$ conf$$.exe conf$$.file
7a197a62
AK
12349if test -d conf$$.dir; then
12350 rm -f conf$$.dir/conf$$.file
12351else
12352 rm -f conf$$.dir
b145d876
ZK
12353 mkdir conf$$.dir 2>/dev/null
12354fi
12355if (echo >conf$$.file) 2>/dev/null; then
12356 if ln -s conf$$.file conf$$ 2>/dev/null; then
12357 as_ln_s='ln -s'
12358 # ... but there are two gotchas:
12359 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12360 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12361 # In both cases, we have to default to `cp -p'.
12362 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12363 as_ln_s='cp -p'
12364 elif ln conf$$.file conf$$ 2>/dev/null; then
12365 as_ln_s=ln
12366 else
ad6254c5 12367 as_ln_s='cp -p'
b145d876 12368 fi
ad6254c5
AK
12369else
12370 as_ln_s='cp -p'
12371fi
7a197a62
AK
12372rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12373rmdir conf$$.dir 2>/dev/null
8106cdd5 12374
ad6254c5
AK
12375if mkdir -p . 2>/dev/null; then
12376 as_mkdir_p=:
12377else
8a2fc586 12378 test -d ./-p && rmdir ./-p
ad6254c5
AK
12379 as_mkdir_p=false
12380fi
12381
25fbec5b
AK
12382if test -x / >/dev/null 2>&1; then
12383 as_test_x='test -x'
7a197a62 12384else
25fbec5b
AK
12385 if ls -dL / >/dev/null 2>&1; then
12386 as_ls_L_option=L
12387 else
12388 as_ls_L_option=
12389 fi
12390 as_test_x='
12391 eval sh -c '\''
12392 if test -d "$1"; then
b145d876 12393 test -d "$1/.";
25fbec5b
AK
12394 else
12395 case $1 in
b145d876 12396 -*)set "./$1";;
25fbec5b
AK
12397 esac;
12398 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
12399 ???[sx]*):;;*)false;;esac;fi
12400 '\'' sh
12401 '
7a197a62 12402fi
25fbec5b 12403as_executable_p=$as_test_x
ad6254c5
AK
12404
12405# Sed expression to map a string onto a valid CPP name.
8a2fc586 12406as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
12407
12408# Sed expression to map a string onto a valid variable name.
8a2fc586 12409as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
12410
12411
ad6254c5
AK
12412exec 6>&1
12413
7a197a62 12414# Save the log message, to keep $[0] and so on meaningful, and to
ad6254c5 12415# report actual input values of CONFIG_FILES etc. instead of their
7a197a62
AK
12416# values after options handling.
12417ac_log="
ad6254c5 12418This file was extended by $as_me, which was
b145d876 12419generated by GNU Autoconf 2.62. Invocation command line was
ad6254c5
AK
12420
12421 CONFIG_FILES = $CONFIG_FILES
12422 CONFIG_HEADERS = $CONFIG_HEADERS
12423 CONFIG_LINKS = $CONFIG_LINKS
12424 CONFIG_COMMANDS = $CONFIG_COMMANDS
12425 $ $0 $@
12426
7a197a62
AK
12427on `(hostname || uname -n) 2>/dev/null | sed 1q`
12428"
12429
ad6254c5
AK
12430_ACEOF
12431
b145d876 12432cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5 12433# Files that config.status was made for.
b145d876
ZK
12434config_files="`echo $ac_config_files`"
12435config_headers="`echo $ac_config_headers`"
ad6254c5 12436
7a197a62 12437_ACEOF
ad6254c5 12438
b145d876 12439cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ad6254c5
AK
12440ac_cs_usage="\
12441\`$as_me' instantiates files from templates according to the
12442current configuration.
12443
12444Usage: $0 [OPTIONS] [FILE]...
12445
12446 -h, --help print this help, then exit
25fbec5b 12447 -V, --version print version number and configuration settings, then exit
ad6254c5
AK
12448 -q, --quiet do not print progress messages
12449 -d, --debug don't remove temporary files
12450 --recheck update $as_me by reconfiguring in the same conditions
12451 --file=FILE[:TEMPLATE]
b145d876 12452 instantiate the configuration file FILE
72b2cb61 12453 --header=FILE[:TEMPLATE]
b145d876 12454 instantiate the configuration header FILE
ad6254c5
AK
12455
12456Configuration files:
12457$config_files
12458
72b2cb61
AK
12459Configuration headers:
12460$config_headers
12461
ad6254c5 12462Report bugs to <bug-autoconf@gnu.org>."
ad6254c5 12463
7a197a62 12464_ACEOF
b145d876 12465cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5
AK
12466ac_cs_version="\\
12467config.status
b145d876
ZK
12468configured by $0, generated by GNU Autoconf 2.62,
12469 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
ad6254c5 12470
b145d876 12471Copyright (C) 2008 Free Software Foundation, Inc.
ad6254c5
AK
12472This config.status script is free software; the Free Software Foundation
12473gives unlimited permission to copy, distribute and modify it."
7a197a62
AK
12474
12475ac_pwd='$ac_pwd'
12476srcdir='$srcdir'
12477INSTALL='$INSTALL'
fddafd51 12478MKDIR_P='$MKDIR_P'
b145d876
ZK
12479AWK='$AWK'
12480test -n "\$AWK" || AWK=awk
ad6254c5
AK
12481_ACEOF
12482
b145d876
ZK
12483cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12484# The default lists apply if the user does not specify any file.
ad6254c5
AK
12485ac_need_defaults=:
12486while test $# != 0
12487do
12488 case $1 in
12489 --*=*)
7a197a62
AK
12490 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12491 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
ad6254c5
AK
12492 ac_shift=:
12493 ;;
7a197a62 12494 *)
ad6254c5
AK
12495 ac_option=$1
12496 ac_optarg=$2
12497 ac_shift=shift
12498 ;;
ad6254c5
AK
12499 esac
12500
12501 case $ac_option in
12502 # Handling of the options.
ad6254c5
AK
12503 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12504 ac_cs_recheck=: ;;
7a197a62 12505 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
b145d876 12506 $as_echo "$ac_cs_version"; exit ;;
7a197a62 12507 --debug | --debu | --deb | --de | --d | -d )
ad6254c5
AK
12508 debug=: ;;
12509 --file | --fil | --fi | --f )
12510 $ac_shift
b145d876
ZK
12511 case $ac_optarg in
12512 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12513 esac
12514 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
ad6254c5
AK
12515 ac_need_defaults=false;;
12516 --header | --heade | --head | --hea )
12517 $ac_shift
b145d876
ZK
12518 case $ac_optarg in
12519 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12520 esac
12521 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
ad6254c5 12522 ac_need_defaults=false;;
7a197a62
AK
12523 --he | --h)
12524 # Conflict between --help and --header
b145d876 12525 { $as_echo "$as_me: error: ambiguous option: $1
7a197a62
AK
12526Try \`$0 --help' for more information." >&2
12527 { (exit 1); exit 1; }; };;
12528 --help | --hel | -h )
b145d876 12529 $as_echo "$ac_cs_usage"; exit ;;
ad6254c5
AK
12530 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12531 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12532 ac_cs_silent=: ;;
12533
12534 # This is an error.
b145d876 12535 -*) { $as_echo "$as_me: error: unrecognized option: $1
7a197a62 12536Try \`$0 --help' for more information." >&2
ad6254c5
AK
12537 { (exit 1); exit 1; }; } ;;
12538
7a197a62
AK
12539 *) ac_config_targets="$ac_config_targets $1"
12540 ac_need_defaults=false ;;
ad6254c5
AK
12541
12542 esac
12543 shift
12544done
12545
12546ac_configure_extra_args=
12547
12548if $ac_cs_silent; then
12549 exec 6>/dev/null
12550 ac_configure_extra_args="$ac_configure_extra_args --silent"
12551fi
12552
12553_ACEOF
b145d876 12554cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5 12555if \$ac_cs_recheck; then
b145d876
ZK
12556 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12557 shift
12558 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12559 CONFIG_SHELL='$SHELL'
7a197a62 12560 export CONFIG_SHELL
b145d876 12561 exec "\$@"
ad6254c5
AK
12562fi
12563
12564_ACEOF
b145d876 12565cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
12566exec 5>>config.log
12567{
12568 echo
12569 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12570## Running $as_me. ##
12571_ASBOX
b145d876 12572 $as_echo "$ac_log"
7a197a62 12573} >&5
ad6254c5 12574
7a197a62 12575_ACEOF
b145d876 12576cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7a197a62 12577_ACEOF
ad6254c5 12578
b145d876 12579cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
12580
12581# Handling of arguments.
ad6254c5
AK
12582for ac_config_target in $ac_config_targets
12583do
7a197a62
AK
12584 case $ac_config_target in
12585 "lib/misc/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;;
12586 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12587 "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;;
d0191583
JM
12588 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
12589 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
12590 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12591 "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
12592 "dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES dmeventd/Makefile" ;;
7a197a62
AK
12593 "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;;
12594 "daemons/clvmd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;;
7a197a62 12595 "dmeventd/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES dmeventd/mirror/Makefile" ;;
d0191583 12596 "dmeventd/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES dmeventd/snapshot/Makefile" ;;
7a197a62 12597 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
7a197a62
AK
12598 "lib/format1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;;
12599 "lib/format_pool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;;
12600 "lib/locking/Makefile") CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;;
12601 "lib/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;;
12602 "lib/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;;
09339e2b 12603 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
7a197a62
AK
12604 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
12605 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
12606 "tools/version.h") CONFIG_FILES="$CONFIG_FILES tools/version.h" ;;
7a197a62 12607
b145d876
ZK
12608 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12609$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
ad6254c5 12610 { (exit 1); exit 1; }; };;
80992638 12611 esac
ad6254c5
AK
12612done
12613
7a197a62 12614
ad6254c5
AK
12615# If the user did not use the arguments to specify the items to instantiate,
12616# then the envvar interface is used. Set only those that are not.
12617# We use the long form for the default assignment because of an extremely
12618# bizarre bug on SunOS 4.1.3.
12619if $ac_need_defaults; then
12620 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
72b2cb61 12621 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
ad6254c5
AK
12622fi
12623
12624# Have a temporary directory for convenience. Make it in the build tree
7a197a62 12625# simply because there is no reason against having it here, and in addition,
ad6254c5 12626# creating and moving files from /tmp can sometimes cause problems.
7a197a62
AK
12627# Hook for its removal unless debugging.
12628# Note that there is a small window in which the directory will not be cleaned:
12629# after its creation but before its name has been assigned to `$tmp'.
ad6254c5
AK
12630$debug ||
12631{
7a197a62
AK
12632 tmp=
12633 trap 'exit_status=$?
12634 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12635' 0
ad6254c5
AK
12636 trap '{ (exit 1); exit 1; }' 1 2 13 15
12637}
ad6254c5
AK
12638# Create a (secure) tmp directory for tmp files.
12639
12640{
7a197a62 12641 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
ad6254c5
AK
12642 test -n "$tmp" && test -d "$tmp"
12643} ||
12644{
7a197a62
AK
12645 tmp=./conf$$-$RANDOM
12646 (umask 077 && mkdir "$tmp")
ad6254c5
AK
12647} ||
12648{
b145d876 12649 $as_echo "$as_me: cannot create a temporary directory in ." >&2
ad6254c5
AK
12650 { (exit 1); exit 1; }
12651}
12652
b145d876
ZK
12653# Set up the scripts for CONFIG_FILES section.
12654# No need to generate them if there are no CONFIG_FILES.
12655# This happens for instance with `./config.status config.h'.
1995c9ff 12656if test -n "$CONFIG_FILES"; then
7a197a62 12657
5556819a 12658
b145d876
ZK
12659ac_cr='\r'
12660ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12661if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12662 ac_cs_awk_cr='\\r'
12663else
12664 ac_cs_awk_cr=$ac_cr
1995c9ff 12665fi
7a197a62 12666
b145d876 12667echo 'BEGIN {' >"$tmp/subs1.awk" &&
1995c9ff 12668_ACEOF
7a197a62 12669
8106cdd5 12670
b145d876
ZK
12671{
12672 echo "cat >conf$$subs.awk <<_ACEOF" &&
12673 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12674 echo "_ACEOF"
12675} >conf$$subs.sh ||
12676 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12677$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12678 { (exit 1); exit 1; }; }
12679ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
1995c9ff
AK
12680ac_delim='%!_!# '
12681for ac_last_try in false false false false false :; do
b145d876
ZK
12682 . ./conf$$subs.sh ||
12683 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12684$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12685 { (exit 1); exit 1; }; }
12686
12687 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then
1995c9ff
AK
12688 break
12689 elif $ac_last_try; then
b145d876
ZK
12690 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12691$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
1995c9ff
AK
12692 { (exit 1); exit 1; }; }
12693 else
12694 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12695 fi
12696done
b145d876
ZK
12697rm -f conf$$subs.sh
12698
12699cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12700cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
12701_ACEOF
12702sed -n '
12703h
12704s/^/S["/; s/!.*/"]=/
12705p
12706g
12707s/^[^!]*!//
12708:repl
12709t repl
12710s/'"$ac_delim"'$//
12711t delim
12712:nl
12713h
12714s/\(.\{148\}\).*/\1/
12715t more1
12716s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12717p
12718n
12719b repl
12720:more1
12721s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12722p
12723g
12724s/.\{148\}//
12725t nl
12726:delim
12727h
12728s/\(.\{148\}\).*/\1/
12729t more2
12730s/["\\]/\\&/g; s/^/"/; s/$/"/
12731p
12732b
12733:more2
12734s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12735p
12736g
12737s/.\{148\}//
12738t delim
12739' <conf$$subs.awk | sed '
12740/^[^""]/{
12741 N
12742 s/\n//
12743}
12744' >>$CONFIG_STATUS || ac_write_fail=1
12745rm -f conf$$subs.awk
12746cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12747_ACAWK
12748cat >>"\$tmp/subs1.awk" <<_ACAWK &&
12749 for (key in S) S_is_set[key] = 1
12750 FS = "\a"
7a197a62 12751
b145d876
ZK
12752}
12753{
12754 line = $ 0
12755 nfields = split(line, field, "@")
12756 substed = 0
12757 len = length(field[1])
12758 for (i = 2; i < nfields; i++) {
12759 key = field[i]
12760 keylen = length(key)
12761 if (S_is_set[key]) {
12762 value = S[key]
12763 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12764 len += length(value) + length(field[++i])
12765 substed = 1
12766 } else
12767 len += 1 + keylen
12768 }
12769
12770 print line
12771}
fddafd51 12772
b145d876 12773_ACAWK
1995c9ff 12774_ACEOF
b145d876
ZK
12775cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12776if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12777 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12778else
12779 cat
12780fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
12781 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
12782$as_echo "$as_me: error: could not setup config files machinery" >&2;}
12783 { (exit 1); exit 1; }; }
7a197a62
AK
12784_ACEOF
12785
7a197a62
AK
12786# VPATH may cause trouble with some makes, so we remove $(srcdir),
12787# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12788# trailing colons and then remove the whole line if VPATH becomes empty
12789# (actually we leave an empty line to preserve line numbers).
12790if test "x$srcdir" = x.; then
12791 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12792s/:*\$(srcdir):*/:/
12793s/:*\${srcdir}:*/:/
12794s/:*@srcdir@:*/:/
12795s/^\([^=]*=[ ]*\):*/\1/
12796s/:*$//
12797s/^[^=]*=[ ]*$//
12798}'
12799fi
12800
b145d876 12801cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
12802fi # test -n "$CONFIG_FILES"
12803
b145d876
ZK
12804# Set up the scripts for CONFIG_HEADERS section.
12805# No need to generate them if there are no CONFIG_HEADERS.
12806# This happens for instance with `./config.status Makefile'.
12807if test -n "$CONFIG_HEADERS"; then
12808cat >"$tmp/defines.awk" <<\_ACAWK ||
12809BEGIN {
12810_ACEOF
12811
12812# Transform confdefs.h into an awk script `defines.awk', embedded as
12813# here-document in config.status, that substitutes the proper values into
12814# config.h.in to produce config.h.
12815
12816# Create a delimiter string that does not exist in confdefs.h, to ease
12817# handling of long lines.
12818ac_delim='%!_!# '
12819for ac_last_try in false false :; do
12820 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
12821 if test -z "$ac_t"; then
12822 break
12823 elif $ac_last_try; then
12824 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
12825$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
12826 { (exit 1); exit 1; }; }
12827 else
12828 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12829 fi
12830done
12831
12832# For the awk script, D is an array of macro values keyed by name,
12833# likewise P contains macro parameters if any. Preserve backslash
12834# newline sequences.
7a197a62 12835
b145d876
ZK
12836ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12837sed -n '
12838s/.\{148\}/&'"$ac_delim"'/g
12839t rset
12840:rset
12841s/^[ ]*#[ ]*define[ ][ ]*/ /
12842t def
12843d
12844:def
12845s/\\$//
12846t bsnl
12847s/["\\]/\\&/g
12848s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12849D["\1"]=" \3"/p
12850s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12851d
12852:bsnl
12853s/["\\]/\\&/g
12854s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12855D["\1"]=" \3\\\\\\n"\\/p
12856t cont
12857s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12858t cont
12859d
12860:cont
12861n
12862s/.\{148\}/&'"$ac_delim"'/g
12863t clear
12864:clear
12865s/\\$//
12866t bsnlc
12867s/["\\]/\\&/g; s/^/"/; s/$/"/p
12868d
12869:bsnlc
12870s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12871b cont
12872' <confdefs.h | sed '
12873s/'"$ac_delim"'/"\\\
12874"/g' >>$CONFIG_STATUS || ac_write_fail=1
12875
12876cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12877 for (key in D) D_is_set[key] = 1
12878 FS = "\a"
12879}
12880/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12881 line = \$ 0
12882 split(line, arg, " ")
12883 if (arg[1] == "#") {
12884 defundef = arg[2]
12885 mac1 = arg[3]
12886 } else {
12887 defundef = substr(arg[1], 2)
12888 mac1 = arg[2]
12889 }
12890 split(mac1, mac2, "(") #)
12891 macro = mac2[1]
12892 prefix = substr(line, 1, index(line, defundef) - 1)
12893 if (D_is_set[macro]) {
12894 # Preserve the white space surrounding the "#".
12895 print prefix "define", macro P[macro] D[macro]
12896 next
12897 } else {
12898 # Replace #undef with comments. This is necessary, for example,
12899 # in the case of _POSIX_SOURCE, which is predefined and required
12900 # on some systems where configure will not decide to define it.
12901 if (defundef == "undef") {
12902 print "/*", prefix defundef, macro, "*/"
12903 next
12904 }
12905 }
12906}
12907{ print }
12908_ACAWK
12909_ACEOF
12910cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12911 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
12912$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
12913 { (exit 1); exit 1; }; }
12914fi # test -n "$CONFIG_HEADERS"
12915
12916
12917eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
12918shift
12919for ac_tag
7a197a62
AK
12920do
12921 case $ac_tag in
12922 :[FHLC]) ac_mode=$ac_tag; continue;;
12923 esac
12924 case $ac_mode$ac_tag in
12925 :[FHL]*:*);;
b145d876
ZK
12926 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
12927$as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
7a197a62
AK
12928 { (exit 1); exit 1; }; };;
12929 :[FH]-) ac_tag=-:-;;
12930 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12931 esac
12932 ac_save_IFS=$IFS
12933 IFS=:
12934 set x $ac_tag
12935 IFS=$ac_save_IFS
12936 shift
12937 ac_file=$1
12938 shift
12939
12940 case $ac_mode in
12941 :L) ac_source=$1;;
12942 :[FH])
12943 ac_file_inputs=
12944 for ac_f
12945 do
12946 case $ac_f in
12947 -) ac_f="$tmp/stdin";;
12948 *) # Look for the file first in the build tree, then in the source tree
12949 # (if the path is not absolute). The absolute path cannot be DOS-style,
12950 # because $ac_f cannot contain `:'.
12951 test -f "$ac_f" ||
12952 case $ac_f in
12953 [\\/$]*) false;;
12954 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12955 esac ||
b145d876
ZK
12956 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
12957$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
7a197a62
AK
12958 { (exit 1); exit 1; }; };;
12959 esac
b145d876
ZK
12960 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12961 ac_file_inputs="$ac_file_inputs '$ac_f'"
7a197a62
AK
12962 done
12963
12964 # Let's still pretend it is `configure' which instantiates (i.e., don't
12965 # use $as_me), people would be surprised to read:
12966 # /* config.h. Generated by config.status. */
b145d876
ZK
12967 configure_input='Generated from '`
12968 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12969 `' by configure.'
7a197a62
AK
12970 if test x"$ac_file" != x-; then
12971 configure_input="$ac_file. $configure_input"
b145d876
ZK
12972 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
12973$as_echo "$as_me: creating $ac_file" >&6;}
7a197a62 12974 fi
b145d876
ZK
12975 # Neutralize special characters interpreted by sed in replacement strings.
12976 case $configure_input in #(
12977 *\&* | *\|* | *\\* )
12978 ac_sed_conf_input=`$as_echo "$configure_input" |
12979 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12980 *) ac_sed_conf_input=$configure_input;;
12981 esac
7a197a62
AK
12982
12983 case $ac_tag in
b145d876
ZK
12984 *:-:* | *:-) cat >"$tmp/stdin" \
12985 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
12986$as_echo "$as_me: error: could not create $ac_file" >&2;}
12987 { (exit 1); exit 1; }; } ;;
7a197a62
AK
12988 esac
12989 ;;
80992638 12990 esac
8106cdd5 12991
7a197a62 12992 ac_dir=`$as_dirname -- "$ac_file" ||
ad6254c5 12993$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8a2fc586
AK
12994 X"$ac_file" : 'X\(//\)[^/]' \| \
12995 X"$ac_file" : 'X\(//\)$' \| \
7a197a62 12996 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
b145d876 12997$as_echo X"$ac_file" |
7a197a62
AK
12998 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12999 s//\1/
13000 q
13001 }
13002 /^X\(\/\/\)[^/].*/{
13003 s//\1/
13004 q
13005 }
13006 /^X\(\/\/\)$/{
13007 s//\1/
13008 q
13009 }
13010 /^X\(\/\).*/{
13011 s//\1/
13012 q
13013 }
13014 s/.*/./; q'`
13015 { as_dir="$ac_dir"
13016 case $as_dir in #(
13017 -*) as_dir=./$as_dir;;
13018 esac
13019 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
ad6254c5 13020 as_dirs=
7a197a62
AK
13021 while :; do
13022 case $as_dir in #(
b145d876 13023 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7a197a62
AK
13024 *) as_qdir=$as_dir;;
13025 esac
13026 as_dirs="'$as_qdir' $as_dirs"
13027 as_dir=`$as_dirname -- "$as_dir" ||
ad6254c5 13028$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8a2fc586
AK
13029 X"$as_dir" : 'X\(//\)[^/]' \| \
13030 X"$as_dir" : 'X\(//\)$' \| \
7a197a62 13031 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
b145d876 13032$as_echo X"$as_dir" |
7a197a62
AK
13033 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13034 s//\1/
13035 q
13036 }
13037 /^X\(\/\/\)[^/].*/{
13038 s//\1/
13039 q
13040 }
13041 /^X\(\/\/\)$/{
13042 s//\1/
13043 q
13044 }
13045 /^X\(\/\).*/{
13046 s//\1/
13047 q
13048 }
13049 s/.*/./; q'`
13050 test -d "$as_dir" && break
ad6254c5 13051 done
7a197a62 13052 test -z "$as_dirs" || eval "mkdir $as_dirs"
b145d876
ZK
13053 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
13054$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
ad6254c5 13055 { (exit 1); exit 1; }; }; }
ad6254c5
AK
13056 ac_builddir=.
13057
7a197a62
AK
13058case "$ac_dir" in
13059.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13060*)
b145d876 13061 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7a197a62 13062 # A ".." for each directory in $ac_dir_suffix.
b145d876 13063 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7a197a62
AK
13064 case $ac_top_builddir_sub in
13065 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13066 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13067 esac ;;
13068esac
13069ac_abs_top_builddir=$ac_pwd
13070ac_abs_builddir=$ac_pwd$ac_dir_suffix
13071# for backward compatibility:
13072ac_top_builddir=$ac_top_build_prefix
ad6254c5
AK
13073
13074case $srcdir in
7a197a62 13075 .) # We are building in place.
ad6254c5 13076 ac_srcdir=.
7a197a62
AK
13077 ac_top_srcdir=$ac_top_builddir_sub
13078 ac_abs_top_srcdir=$ac_pwd ;;
13079 [\\/]* | ?:[\\/]* ) # Absolute name.
ad6254c5 13080 ac_srcdir=$srcdir$ac_dir_suffix;
7a197a62
AK
13081 ac_top_srcdir=$srcdir
13082 ac_abs_top_srcdir=$srcdir ;;
13083 *) # Relative name.
13084 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13085 ac_top_srcdir=$ac_top_build_prefix$srcdir
13086 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
ad6254c5 13087esac
7a197a62 13088ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8a2fc586 13089
ad6254c5 13090
7a197a62
AK
13091 case $ac_mode in
13092 :F)
13093 #
13094 # CONFIG_FILE
13095 #
ad6254c5
AK
13096
13097 case $INSTALL in
13098 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7a197a62 13099 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
795ca3e5 13100 esac
fddafd51
ZK
13101 ac_MKDIR_P=$MKDIR_P
13102 case $MKDIR_P in
13103 [\\/$]* | ?:[\\/]* ) ;;
13104 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13105 esac
7a197a62 13106_ACEOF
795ca3e5 13107
b145d876 13108cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
13109# If the template does not know about datarootdir, expand it.
13110# FIXME: This hack should be removed a few years after 2.60.
13111ac_datarootdir_hack=; ac_datarootdir_seen=
13112
b145d876
ZK
13113ac_sed_dataroot='
13114/datarootdir/ {
7a197a62
AK
13115 p
13116 q
13117}
13118/@datadir@/p
13119/@docdir@/p
13120/@infodir@/p
13121/@localedir@/p
13122/@mandir@/p
b145d876
ZK
13123'
13124case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7a197a62
AK
13125*datarootdir*) ac_datarootdir_seen=yes;;
13126*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
b145d876
ZK
13127 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13128$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
ad6254c5 13129_ACEOF
b145d876 13130cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7a197a62
AK
13131 ac_datarootdir_hack='
13132 s&@datadir@&$datadir&g
13133 s&@docdir@&$docdir&g
13134 s&@infodir@&$infodir&g
13135 s&@localedir@&$localedir&g
13136 s&@mandir@&$mandir&g
13137 s&\\\${datarootdir}&$datarootdir&g' ;;
13138esac
13139_ACEOF
13140
13141# Neutralize VPATH when `$srcdir' = `.'.
13142# Shell code in configure.ac might set extrasub.
13143# FIXME: do we really want to maintain this feature?
b145d876
ZK
13144cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13145ac_sed_extra="$ac_vpsub
ad6254c5
AK
13146$extrasub
13147_ACEOF
b145d876 13148cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ad6254c5
AK
13149:t
13150/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
b145d876 13151s|@configure_input@|$ac_sed_conf_input|;t t
7a197a62 13152s&@top_builddir@&$ac_top_builddir_sub&;t t
b145d876 13153s&@top_build_prefix@&$ac_top_build_prefix&;t t
7a197a62
AK
13154s&@srcdir@&$ac_srcdir&;t t
13155s&@abs_srcdir@&$ac_abs_srcdir&;t t
13156s&@top_srcdir@&$ac_top_srcdir&;t t
13157s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13158s&@builddir@&$ac_builddir&;t t
13159s&@abs_builddir@&$ac_abs_builddir&;t t
13160s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13161s&@INSTALL@&$ac_INSTALL&;t t
fddafd51 13162s&@MKDIR_P@&$ac_MKDIR_P&;t t
7a197a62 13163$ac_datarootdir_hack
b145d876
ZK
13164"
13165eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
13166 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13167$as_echo "$as_me: error: could not create $ac_file" >&2;}
13168 { (exit 1); exit 1; }; }
7a197a62
AK
13169
13170test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13171 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13172 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
b145d876 13173 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7a197a62 13174which seems to be undefined. Please make sure it is defined." >&5
b145d876 13175$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7a197a62
AK
13176which seems to be undefined. Please make sure it is defined." >&2;}
13177
13178 rm -f "$tmp/stdin"
72b2cb61 13179 case $ac_file in
b145d876
ZK
13180 -) cat "$tmp/out" && rm -f "$tmp/out";;
13181 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
13182 esac \
13183 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13184$as_echo "$as_me: error: could not create $ac_file" >&2;}
13185 { (exit 1); exit 1; }; }
7a197a62
AK
13186 ;;
13187 :H)
13188 #
13189 # CONFIG_HEADER
13190 #
72b2cb61 13191 if test x"$ac_file" != x-; then
b145d876
ZK
13192 {
13193 $as_echo "/* $configure_input */" \
13194 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
13195 } >"$tmp/config.h" \
13196 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13197$as_echo "$as_me: error: could not create $ac_file" >&2;}
13198 { (exit 1); exit 1; }; }
13199 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
13200 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13201$as_echo "$as_me: $ac_file is unchanged" >&6;}
72b2cb61 13202 else
b145d876
ZK
13203 rm -f "$ac_file"
13204 mv "$tmp/config.h" "$ac_file" \
13205 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13206$as_echo "$as_me: error: could not create $ac_file" >&2;}
13207 { (exit 1); exit 1; }; }
72b2cb61
AK
13208 fi
13209 else
b145d876
ZK
13210 $as_echo "/* $configure_input */" \
13211 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
13212 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
13213$as_echo "$as_me: error: could not create -" >&2;}
13214 { (exit 1); exit 1; }; }
72b2cb61 13215 fi
7a197a62
AK
13216 ;;
13217
13218
13219 esac
13220
13221done # for ac_tag
795ca3e5 13222
795ca3e5 13223
ad6254c5
AK
13224{ (exit 0); exit 0; }
13225_ACEOF
795ca3e5 13226chmod +x $CONFIG_STATUS
ad6254c5
AK
13227ac_clean_files=$ac_clean_files_save
13228
b145d876
ZK
13229test $ac_write_fail = 0 ||
13230 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
13231$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
13232 { (exit 1); exit 1; }; }
13233
ad6254c5
AK
13234
13235# configure is writing to config.log, and then calls config.status.
13236# config.status does its own redirection, appending to config.log.
13237# Unfortunately, on DOS this fails, as config.log is still kept open
13238# by configure, so config.status won't be able to write to it; its
13239# output is simply discarded. So we exec the FD to /dev/null,
13240# effectively closing config.log, so it can be properly (re)opened and
13241# appended to by config.status. When coming back to configure, we
13242# need to make the FD available again.
13243if test "$no_create" != yes; then
13244 ac_cs_success=:
13245 ac_config_status_args=
13246 test "$silent" = yes &&
13247 ac_config_status_args="$ac_config_status_args --quiet"
13248 exec 5>/dev/null
13249 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13250 exec 5>>config.log
13251 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13252 # would make configure fail if this is the last instruction.
13253 $ac_cs_success || { (exit 1); exit 1; }
13254fi
b145d876
ZK
13255if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13256 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
13257$as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}
13258fi
795ca3e5 13259
2dc95e1c
AK
13260
13261if test x$ODIRECT != xyes; then
b145d876
ZK
13262 { $as_echo "$as_me:$LINENO: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5
13263$as_echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;}
2dc95e1c 13264fi
809fae91
AK
13265
13266if test x$FSADM == xyes; then
b145d876
ZK
13267 { $as_echo "$as_me:$LINENO: WARNING: fsadm support is untested" >&5
13268$as_echo "$as_me: WARNING: fsadm support is untested" >&2;}
809fae91 13269fi
06f62ad1
AK
13270
13271if test x$DMEVENTD == xyes; then
b145d876
ZK
13272 { $as_echo "$as_me:$LINENO: WARNING: dmeventd support is untested" >&5
13273$as_echo "$as_me: WARNING: dmeventd support is untested" >&2;}
06f62ad1 13274fi
This page took 1.745087 seconds and 5 git commands to generate.