]> sourceware.org Git - lvm2.git/blame - configure
Use simple x.y.z library version in libdevmapper.pc
[lvm2.git] / configure
CommitLineData
795ca3e5 1#! /bin/sh
795ca3e5 2# Guess values for system-dependent variables and create Makefiles.
68f2de6d 3# Generated by GNU Autoconf 2.61.
795ca3e5 4#
7a197a62 5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
68f2de6d 6# 2002, 2003, 2004, 2005, 2006 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=:
68f2de6d 18 # Zsh 3.x and 4.x performs 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
40# The user is always right.
41if test "${PATH_SEPARATOR+set}" != set; then
68f2de6d
AK
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
ad6254c5
AK
51fi
52
53# Support unset when possible.
8a2fc586 54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
ad6254c5
AK
55 as_unset=unset
56else
57 as_unset=false
58fi
59
60
7a197a62
AK
61# IFS
62# We need space, tab and new line, in precisely that order. Quoting is
63# there to prevent editors from complaining about space-tab.
64# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65# splitting by setting IFS to empty value.)
68f2de6d
AK
66as_nl='
67'
7a197a62
AK
68IFS=" "" $as_nl"
69
70# Find who we are. Look in the path if we contain no directory separator.
71case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74for as_dir in $PATH
75do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79done
80IFS=$as_save_IFS
81
82 ;;
83esac
84# We did not find ourselves, most probably we were run as `sh COMMAND'
85# in which case we are not to be found in the path.
86if test "x$as_myself" = x; then
87 as_myself=$0
88fi
89if test ! -f "$as_myself"; then
68f2de6d 90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7a197a62
AK
91 { (exit 1); exit 1; }
92fi
93
ad6254c5 94# Work around bugs in pre-3.0 UWIN ksh.
7a197a62
AK
95for as_var in ENV MAIL MAILPATH
96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97done
ad6254c5
AK
98PS1='$ '
99PS2='> '
100PS4='+ '
101
102# NLS nuisances.
68f2de6d
AK
103for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
107do
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112 fi
113done
ad6254c5
AK
114
115# Required to use basename.
7a197a62
AK
116if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
118 as_expr=expr
119else
120 as_expr=false
121fi
122
7a197a62 123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
ad6254c5
AK
124 as_basename=basename
125else
126 as_basename=false
127fi
128
129
130# Name of the executable.
7a197a62 131as_me=`$as_basename -- "$0" ||
ad6254c5
AK
132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
7a197a62 134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
68f2de6d 135echo X/"$0" |
7a197a62
AK
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
148 s/.*/./; q'`
ad6254c5 149
7a197a62
AK
150# CDPATH.
151$as_unset CDPATH
ad6254c5 152
ad6254c5 153
7a197a62
AK
154if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157else
158 as_have_required=no
ad6254c5
AK
159fi
160
68f2de6d 161 if test $as_have_required = yes && (eval ":
7a197a62
AK
162(as_func_return () {
163 (exit \$1)
164}
165as_func_success () {
166 as_func_return 0
167}
168as_func_failure () {
169 as_func_return 1
170}
171as_func_ret_success () {
172 return 0
173}
174as_func_ret_failure () {
175 return 1
176}
ad6254c5 177
7a197a62
AK
178exitcode=0
179if as_func_success; then
180 :
181else
182 exitcode=1
183 echo as_func_success failed.
184fi
ad6254c5 185
7a197a62
AK
186if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189fi
190
191if as_func_ret_success; then
192 :
193else
194 exitcode=1
195 echo as_func_ret_success failed.
196fi
197
198if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201fi
202
203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205else
206 exitcode=1
207 echo positional parameters were not saved.
208fi
209
210test \$exitcode = 0) || { (exit 1); exit 1; }
211
212(
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217") 2> /dev/null; then
218 :
219else
220 as_candidate_shells=
ad6254c5 221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25fbec5b 222for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
ad6254c5
AK
223do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
7a197a62 226 case $as_dir in
ad6254c5 227 /*)
7a197a62
AK
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232done
233IFS=$as_save_IFS
234
235
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
68f2de6d 243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7a197a62
AK
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247else
25fbec5b
AK
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250esac
251
7a197a62 252fi
25fbec5b 253
7a197a62
AK
254
255:
256_ASEOF
257}; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
68f2de6d 264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7a197a62
AK
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268else
25fbec5b
AK
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271esac
272
7a197a62 273fi
25fbec5b 274
7a197a62
AK
275
276:
277(as_func_return () {
278 (exit $1)
279}
280as_func_success () {
281 as_func_return 0
282}
283as_func_failure () {
284 as_func_return 1
285}
286as_func_ret_success () {
287 return 0
288}
289as_func_ret_failure () {
290 return 1
291}
292
293exitcode=0
294if as_func_success; then
295 :
296else
297 exitcode=1
298 echo as_func_success failed.
299fi
300
301if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
304fi
305
306if as_func_ret_success; then
307 :
308else
309 exitcode=1
310 echo as_func_ret_success failed.
311fi
312
313if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
316fi
317
318if ( set x; as_func_ret_success y && test x = "$1" ); then
319 :
320else
321 exitcode=1
322 echo positional parameters were not saved.
323fi
324
325test $exitcode = 0) || { (exit 1); exit 1; }
326
327(
ad6254c5
AK
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
ad6254c5 330 test "x$as_lineno_1" != "x$as_lineno_2" &&
7a197a62
AK
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333_ASEOF
334}; then
335 break
336fi
337
338fi
339
340 done
341
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
68f2de6d
AK
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
7a197a62
AK
348fi
349
350
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
357fi
358
359
360fi
361
362fi
363
364
365
366(eval "as_func_return () {
367 (exit \$1)
368}
369as_func_success () {
370 as_func_return 0
371}
372as_func_failure () {
373 as_func_return 1
374}
375as_func_ret_success () {
376 return 0
377}
378as_func_ret_failure () {
379 return 1
380}
381
382exitcode=0
383if as_func_success; then
384 :
385else
386 exitcode=1
387 echo as_func_success failed.
388fi
389
390if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
393fi
394
395if as_func_ret_success; then
396 :
397else
398 exitcode=1
399 echo as_func_ret_success failed.
400fi
401
402if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
405fi
406
407if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408 :
409else
410 exitcode=1
411 echo positional parameters were not saved.
412fi
413
414test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
68f2de6d
AK
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
7a197a62
AK
419}
420
421
422
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
ad6254c5
AK
427
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
7a197a62
AK
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
ad6254c5 435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7a197a62
AK
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
439 p
440 /[$]LINENO/=
441 ' <$as_myself |
ad6254c5 442 sed '
7a197a62
AK
443 s/[$]LINENO.*/&-/
444 t lineno
445 b
446 :lineno
ad6254c5 447 N
7a197a62
AK
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
ad6254c5 450 t loop
7a197a62 451 s/-\n.*//
ad6254c5 452 ' >$as_me.lineno &&
7a197a62 453 chmod +x "$as_me.lineno" ||
68f2de6d 454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
ad6254c5
AK
455 { (exit 1); exit 1; }; }
456
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
7a197a62
AK
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
ad6254c5
AK
461 # Exit status is that of the last command.
462 exit
463}
795ca3e5 464
ad6254c5 465
7a197a62
AK
466if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468else
469 as_dirname=false
470fi
471
472ECHO_C= ECHO_N= ECHO_T=
473case `echo -n x` in
474-n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
479*)
480 ECHO_N='-n';;
ad6254c5 481esac
68f2de6d 482
7a197a62
AK
483if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
485 as_expr=expr
486else
487 as_expr=false
488fi
489
490rm -f conf$$ conf$$.exe conf$$.file
7a197a62
AK
491if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493else
494 rm -f conf$$.dir
68f2de6d
AK
495 mkdir conf$$.dir
496fi
497echo >conf$$.file
498if ln -s conf$$.file conf$$ 2>/dev/null; then
499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
ad6254c5 505 as_ln_s='cp -p'
68f2de6d
AK
506elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
ad6254c5
AK
508else
509 as_ln_s='cp -p'
510fi
7a197a62
AK
511rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512rmdir conf$$.dir 2>/dev/null
ad6254c5
AK
513
514if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516else
8a2fc586 517 test -d ./-p && rmdir ./-p
ad6254c5
AK
518 as_mkdir_p=false
519fi
520
25fbec5b
AK
521if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
7a197a62 523else
25fbec5b
AK
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
528 fi
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
68f2de6d 532 test -d "$1/.";
25fbec5b
AK
533 else
534 case $1 in
68f2de6d 535 -*)set "./$1";;
25fbec5b
AK
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
540 '
7a197a62 541fi
25fbec5b 542as_executable_p=$as_test_x
ad6254c5
AK
543
544# Sed expression to map a string onto a valid CPP name.
8a2fc586 545as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
546
547# Sed expression to map a string onto a valid variable name.
8a2fc586 548as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
549
550
ad6254c5 551
7a197a62 552exec 7<&0 </dev/null 6>&1
ad6254c5
AK
553
554# Name of the host.
555# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556# so uname gets run too.
557ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
ad6254c5
AK
559#
560# Initializations.
561#
795ca3e5 562ac_default_prefix=/usr/local
7a197a62 563ac_clean_files=
ad6254c5 564ac_config_libobj_dir=.
7a197a62 565LIBOBJS=
ad6254c5
AK
566cross_compiling=no
567subdirs=
568MFLAGS=
569MAKEFLAGS=
570SHELL=${CONFIG_SHELL-/bin/sh}
571
ad6254c5
AK
572# Identity of this package.
573PACKAGE_NAME=
574PACKAGE_TARNAME=
575PACKAGE_VERSION=
576PACKAGE_STRING=
577PACKAGE_BUGREPORT=
578
579ac_unique_file="lib/device/dev-cache.h"
580# Factoring default headers for most tests.
581ac_includes_default="\
582#include <stdio.h>
25fbec5b 583#ifdef HAVE_SYS_TYPES_H
ad6254c5
AK
584# include <sys/types.h>
585#endif
25fbec5b 586#ifdef HAVE_SYS_STAT_H
ad6254c5
AK
587# include <sys/stat.h>
588#endif
25fbec5b 589#ifdef STDC_HEADERS
ad6254c5
AK
590# include <stdlib.h>
591# include <stddef.h>
592#else
25fbec5b 593# ifdef HAVE_STDLIB_H
ad6254c5
AK
594# include <stdlib.h>
595# endif
596#endif
25fbec5b
AK
597#ifdef HAVE_STRING_H
598# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
ad6254c5
AK
599# include <memory.h>
600# endif
601# include <string.h>
602#endif
25fbec5b 603#ifdef HAVE_STRINGS_H
ad6254c5
AK
604# include <strings.h>
605#endif
25fbec5b 606#ifdef HAVE_INTTYPES_H
ad6254c5 607# include <inttypes.h>
ad6254c5 608#endif
25fbec5b 609#ifdef HAVE_STDINT_H
7a197a62
AK
610# include <stdint.h>
611#endif
25fbec5b 612#ifdef HAVE_UNISTD_H
ad6254c5
AK
613# include <unistd.h>
614#endif"
615
795ca3e5 616ac_default_prefix=/usr
7a197a62
AK
617ac_subst_vars='SHELL
618PATH_SEPARATOR
619PACKAGE_NAME
620PACKAGE_TARNAME
621PACKAGE_VERSION
622PACKAGE_STRING
623PACKAGE_BUGREPORT
624exec_prefix
625prefix
626program_transform_name
627bindir
628sbindir
629libexecdir
630datarootdir
631datadir
632sysconfdir
633sharedstatedir
634localstatedir
635includedir
636oldincludedir
637docdir
638infodir
639htmldir
640dvidir
641pdfdir
642psdir
643libdir
644localedir
645mandir
646DEFS
647ECHO_C
648ECHO_N
649ECHO_T
650LIBS
651build_alias
652host_alias
653target_alias
654build
655build_cpu
656build_vendor
657build_os
658host
659host_cpu
660host_vendor
661host_os
662target
663target_cpu
664target_vendor
665target_os
5951ef33 666SED
7a197a62
AK
667AWK
668CC
669CFLAGS
670LDFLAGS
671CPPFLAGS
672ac_ct_CC
673EXEEXT
674OBJEXT
d0191583
JM
675CPP
676GREP
677EGREP
7a197a62
AK
678INSTALL_PROGRAM
679INSTALL_SCRIPT
680INSTALL_DATA
681LN_S
682SET_MAKE
683RANLIB
684CFLOW_CMD
685CSCOPE_CMD
7a197a62
AK
686ALLOCA
687LIBOBJS
688POW_LIB
fddafd51
ZK
689LCOV
690GENHTML
d179cc7a 691LVM2CMD_LIB
7a197a62
AK
692MSGFMT
693MODPROBE_CMD
d0191583 694BUILD_DMEVENTD
7a197a62 695CLDFLAGS
7a197a62 696CLDNOWHOLEARCHIVE
d0191583
JM
697CLDWHOLEARCHIVE
698CLUSTER
699CLVMD
700CMDLIB
701COPTIMISE_FLAG
7a197a62
AK
702DEBUG
703DEVMAPPER
d0191583
JM
704DMEVENTD
705DM_COMPAT
706DM_DEVICE_GID
707DM_DEVICE_MODE
708DM_DEVICE_UID
709DM_IOCTLS
710DM_LIB_VERSION
711FSADM
712GROUP
7a197a62 713HAVE_LIBDL
7a197a62 714HAVE_REALTIME
d0191583
JM
715HAVE_SELINUX
716INTL
717INTL_PACKAGE
718JOBS
719LDDEPS
720LIB_SUFFIX
7a197a62 721LOCALEDIR
d0191583
JM
722LVM1
723LVM1_FALLBACK
7a197a62 724CONFDIR
d0191583
JM
725LVM_VERSION
726MIRRORS
727OWNER
728PKGCONFIG
729POOL
730SNAPSHOTS
7a197a62 731STATICDIR
d0191583 732STATIC_LINK
66e941e8 733LIB_PTHREAD
93bd259b
AK
734interface
735kerneldir
736missingkernel
737kernelvsn
738tmpdir
68f2de6d
AK
739usrlibdir
740usrsbindir
7a197a62 741LTLIBOBJS'
ad6254c5 742ac_subst_files=''
7a197a62
AK
743 ac_precious_vars='build_alias
744host_alias
745target_alias
746CC
747CFLAGS
748LDFLAGS
25fbec5b 749LIBS
7a197a62
AK
750CPPFLAGS
751CPP'
752
795ca3e5
AK
753
754# Initialize some variables set by options.
ad6254c5
AK
755ac_init_help=
756ac_init_version=false
795ca3e5
AK
757# The variables have the same names as the options, with
758# dashes changed to underlines.
ad6254c5 759cache_file=/dev/null
795ca3e5 760exec_prefix=NONE
795ca3e5 761no_create=
795ca3e5
AK
762no_recursion=
763prefix=NONE
764program_prefix=NONE
765program_suffix=NONE
766program_transform_name=s,x,x,
767silent=
768site=
769srcdir=
795ca3e5
AK
770verbose=
771x_includes=NONE
772x_libraries=NONE
ad6254c5
AK
773
774# Installation directory options.
775# These are left unexpanded so users can "make install exec_prefix=/foo"
776# and all the variables that are supposed to be based on exec_prefix
777# by default will actually change.
778# Use braces instead of parens because sh, perl, etc. also accept them.
7a197a62 779# (The list follows the same order as the GNU Coding Standards.)
795ca3e5
AK
780bindir='${exec_prefix}/bin'
781sbindir='${exec_prefix}/sbin'
782libexecdir='${exec_prefix}/libexec'
7a197a62
AK
783datarootdir='${prefix}/share'
784datadir='${datarootdir}'
795ca3e5
AK
785sysconfdir='${prefix}/etc'
786sharedstatedir='${prefix}/com'
787localstatedir='${prefix}/var'
795ca3e5
AK
788includedir='${prefix}/include'
789oldincludedir='/usr/include'
7a197a62
AK
790docdir='${datarootdir}/doc/${PACKAGE}'
791infodir='${datarootdir}/info'
792htmldir='${docdir}'
793dvidir='${docdir}'
794pdfdir='${docdir}'
795psdir='${docdir}'
796libdir='${exec_prefix}/lib'
797localedir='${datarootdir}/locale'
798mandir='${datarootdir}/man'
795ca3e5 799
795ca3e5 800ac_prev=
7a197a62 801ac_dashdash=
795ca3e5
AK
802for ac_option
803do
795ca3e5
AK
804 # If the previous option needs an argument, assign it.
805 if test -n "$ac_prev"; then
7a197a62 806 eval $ac_prev=\$ac_option
795ca3e5
AK
807 ac_prev=
808 continue
809 fi
810
7a197a62
AK
811 case $ac_option in
812 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
813 *) ac_optarg=yes ;;
814 esac
795ca3e5
AK
815
816 # Accept the important Cygnus configure options, so we can diagnose typos.
817
7a197a62
AK
818 case $ac_dashdash$ac_option in
819 --)
820 ac_dashdash=yes ;;
795ca3e5
AK
821
822 -bindir | --bindir | --bindi | --bind | --bin | --bi)
823 ac_prev=bindir ;;
824 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
ad6254c5 825 bindir=$ac_optarg ;;
795ca3e5
AK
826
827 -build | --build | --buil | --bui | --bu)
ad6254c5 828 ac_prev=build_alias ;;
795ca3e5 829 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
ad6254c5 830 build_alias=$ac_optarg ;;
795ca3e5
AK
831
832 -cache-file | --cache-file | --cache-fil | --cache-fi \
833 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
834 ac_prev=cache_file ;;
835 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
836 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
ad6254c5
AK
837 cache_file=$ac_optarg ;;
838
839 --config-cache | -C)
840 cache_file=config.cache ;;
795ca3e5 841
7a197a62 842 -datadir | --datadir | --datadi | --datad)
795ca3e5 843 ac_prev=datadir ;;
7a197a62 844 -datadir=* | --datadir=* | --datadi=* | --datad=*)
ad6254c5 845 datadir=$ac_optarg ;;
795ca3e5 846
7a197a62
AK
847 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
848 | --dataroo | --dataro | --datar)
849 ac_prev=datarootdir ;;
850 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
851 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
852 datarootdir=$ac_optarg ;;
853
795ca3e5 854 -disable-* | --disable-*)
68f2de6d 855 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
795ca3e5 856 # Reject names that are not valid shell variable names.
68f2de6d
AK
857 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
858 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
ad6254c5 859 { (exit 1); exit 1; }; }
68f2de6d
AK
860 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
861 eval enable_$ac_feature=no ;;
7a197a62
AK
862
863 -docdir | --docdir | --docdi | --doc | --do)
864 ac_prev=docdir ;;
865 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
866 docdir=$ac_optarg ;;
867
868 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
869 ac_prev=dvidir ;;
870 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
871 dvidir=$ac_optarg ;;
795ca3e5
AK
872
873 -enable-* | --enable-*)
68f2de6d 874 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
795ca3e5 875 # Reject names that are not valid shell variable names.
68f2de6d
AK
876 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
877 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
ad6254c5 878 { (exit 1); exit 1; }; }
68f2de6d
AK
879 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
880 eval enable_$ac_feature=\$ac_optarg ;;
795ca3e5
AK
881
882 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
883 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
884 | --exec | --exe | --ex)
885 ac_prev=exec_prefix ;;
886 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
887 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
888 | --exec=* | --exe=* | --ex=*)
ad6254c5 889 exec_prefix=$ac_optarg ;;
795ca3e5
AK
890
891 -gas | --gas | --ga | --g)
892 # Obsolete; use --with-gas.
893 with_gas=yes ;;
894
ad6254c5
AK
895 -help | --help | --hel | --he | -h)
896 ac_init_help=long ;;
897 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
898 ac_init_help=recursive ;;
899 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
900 ac_init_help=short ;;
795ca3e5
AK
901
902 -host | --host | --hos | --ho)
ad6254c5 903 ac_prev=host_alias ;;
795ca3e5 904 -host=* | --host=* | --hos=* | --ho=*)
ad6254c5 905 host_alias=$ac_optarg ;;
795ca3e5 906
7a197a62
AK
907 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
908 ac_prev=htmldir ;;
909 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
910 | --ht=*)
911 htmldir=$ac_optarg ;;
912
795ca3e5
AK
913 -includedir | --includedir | --includedi | --included | --include \
914 | --includ | --inclu | --incl | --inc)
915 ac_prev=includedir ;;
916 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
917 | --includ=* | --inclu=* | --incl=* | --inc=*)
ad6254c5 918 includedir=$ac_optarg ;;
795ca3e5
AK
919
920 -infodir | --infodir | --infodi | --infod | --info | --inf)
921 ac_prev=infodir ;;
922 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
ad6254c5 923 infodir=$ac_optarg ;;
795ca3e5
AK
924
925 -libdir | --libdir | --libdi | --libd)
926 ac_prev=libdir ;;
927 -libdir=* | --libdir=* | --libdi=* | --libd=*)
ad6254c5 928 libdir=$ac_optarg ;;
795ca3e5
AK
929
930 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
931 | --libexe | --libex | --libe)
932 ac_prev=libexecdir ;;
933 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
934 | --libexe=* | --libex=* | --libe=*)
ad6254c5 935 libexecdir=$ac_optarg ;;
795ca3e5 936
7a197a62
AK
937 -localedir | --localedir | --localedi | --localed | --locale)
938 ac_prev=localedir ;;
939 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
940 localedir=$ac_optarg ;;
941
795ca3e5 942 -localstatedir | --localstatedir | --localstatedi | --localstated \
7a197a62 943 | --localstate | --localstat | --localsta | --localst | --locals)
795ca3e5
AK
944 ac_prev=localstatedir ;;
945 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
7a197a62 946 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
ad6254c5 947 localstatedir=$ac_optarg ;;
795ca3e5
AK
948
949 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
950 ac_prev=mandir ;;
951 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
ad6254c5 952 mandir=$ac_optarg ;;
795ca3e5
AK
953
954 -nfp | --nfp | --nf)
955 # Obsolete; use --without-fp.
956 with_fp=no ;;
957
958 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
ad6254c5 959 | --no-cr | --no-c | -n)
795ca3e5
AK
960 no_create=yes ;;
961
962 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
963 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
964 no_recursion=yes ;;
965
966 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
967 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
968 | --oldin | --oldi | --old | --ol | --o)
969 ac_prev=oldincludedir ;;
970 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
971 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
972 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
ad6254c5 973 oldincludedir=$ac_optarg ;;
795ca3e5
AK
974
975 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
976 ac_prev=prefix ;;
977 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
ad6254c5 978 prefix=$ac_optarg ;;
795ca3e5
AK
979
980 -program-prefix | --program-prefix | --program-prefi | --program-pref \
981 | --program-pre | --program-pr | --program-p)
982 ac_prev=program_prefix ;;
983 -program-prefix=* | --program-prefix=* | --program-prefi=* \
984 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
ad6254c5 985 program_prefix=$ac_optarg ;;
795ca3e5
AK
986
987 -program-suffix | --program-suffix | --program-suffi | --program-suff \
988 | --program-suf | --program-su | --program-s)
989 ac_prev=program_suffix ;;
990 -program-suffix=* | --program-suffix=* | --program-suffi=* \
991 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
ad6254c5 992 program_suffix=$ac_optarg ;;
795ca3e5
AK
993
994 -program-transform-name | --program-transform-name \
995 | --program-transform-nam | --program-transform-na \
996 | --program-transform-n | --program-transform- \
997 | --program-transform | --program-transfor \
998 | --program-transfo | --program-transf \
999 | --program-trans | --program-tran \
1000 | --progr-tra | --program-tr | --program-t)
1001 ac_prev=program_transform_name ;;
1002 -program-transform-name=* | --program-transform-name=* \
1003 | --program-transform-nam=* | --program-transform-na=* \
1004 | --program-transform-n=* | --program-transform-=* \
1005 | --program-transform=* | --program-transfor=* \
1006 | --program-transfo=* | --program-transf=* \
1007 | --program-trans=* | --program-tran=* \
1008 | --progr-tra=* | --program-tr=* | --program-t=*)
ad6254c5 1009 program_transform_name=$ac_optarg ;;
795ca3e5 1010
7a197a62
AK
1011 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1012 ac_prev=pdfdir ;;
1013 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1014 pdfdir=$ac_optarg ;;
1015
1016 -psdir | --psdir | --psdi | --psd | --ps)
1017 ac_prev=psdir ;;
1018 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1019 psdir=$ac_optarg ;;
1020
795ca3e5
AK
1021 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1022 | -silent | --silent | --silen | --sile | --sil)
1023 silent=yes ;;
1024
1025 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1026 ac_prev=sbindir ;;
1027 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1028 | --sbi=* | --sb=*)
ad6254c5 1029 sbindir=$ac_optarg ;;
795ca3e5
AK
1030
1031 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1032 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1033 | --sharedst | --shareds | --shared | --share | --shar \
1034 | --sha | --sh)
1035 ac_prev=sharedstatedir ;;
1036 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1037 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1038 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1039 | --sha=* | --sh=*)
ad6254c5 1040 sharedstatedir=$ac_optarg ;;
795ca3e5
AK
1041
1042 -site | --site | --sit)
1043 ac_prev=site ;;
1044 -site=* | --site=* | --sit=*)
ad6254c5 1045 site=$ac_optarg ;;
795ca3e5
AK
1046
1047 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1048 ac_prev=srcdir ;;
1049 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
ad6254c5 1050 srcdir=$ac_optarg ;;
795ca3e5
AK
1051
1052 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1053 | --syscon | --sysco | --sysc | --sys | --sy)
1054 ac_prev=sysconfdir ;;
1055 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1056 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
ad6254c5 1057 sysconfdir=$ac_optarg ;;
795ca3e5
AK
1058
1059 -target | --target | --targe | --targ | --tar | --ta | --t)
ad6254c5 1060 ac_prev=target_alias ;;
795ca3e5 1061 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
ad6254c5 1062 target_alias=$ac_optarg ;;
795ca3e5
AK
1063
1064 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1065 verbose=yes ;;
1066
ad6254c5
AK
1067 -version | --version | --versio | --versi | --vers | -V)
1068 ac_init_version=: ;;
795ca3e5
AK
1069
1070 -with-* | --with-*)
68f2de6d 1071 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
795ca3e5 1072 # Reject names that are not valid shell variable names.
68f2de6d
AK
1073 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1074 { echo "$as_me: error: invalid package name: $ac_package" >&2
ad6254c5 1075 { (exit 1); exit 1; }; }
68f2de6d
AK
1076 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1077 eval with_$ac_package=\$ac_optarg ;;
795ca3e5
AK
1078
1079 -without-* | --without-*)
68f2de6d 1080 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
795ca3e5 1081 # Reject names that are not valid shell variable names.
68f2de6d
AK
1082 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1083 { echo "$as_me: error: invalid package name: $ac_package" >&2
ad6254c5 1084 { (exit 1); exit 1; }; }
68f2de6d
AK
1085 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1086 eval with_$ac_package=no ;;
795ca3e5
AK
1087
1088 --x)
1089 # Obsolete; use --with-x.
1090 with_x=yes ;;
1091
1092 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1093 | --x-incl | --x-inc | --x-in | --x-i)
1094 ac_prev=x_includes ;;
1095 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1096 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
ad6254c5 1097 x_includes=$ac_optarg ;;
795ca3e5
AK
1098
1099 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1100 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1101 ac_prev=x_libraries ;;
1102 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1103 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
ad6254c5 1104 x_libraries=$ac_optarg ;;
795ca3e5 1105
68f2de6d 1106 -*) { echo "$as_me: error: unrecognized option: $ac_option
ad6254c5
AK
1107Try \`$0 --help' for more information." >&2
1108 { (exit 1); exit 1; }; }
795ca3e5
AK
1109 ;;
1110
ad6254c5
AK
1111 *=*)
1112 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1113 # Reject names that are not valid shell variable names.
1114 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
68f2de6d 1115 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
ad6254c5 1116 { (exit 1); exit 1; }; }
7a197a62 1117 eval $ac_envvar=\$ac_optarg
ad6254c5
AK
1118 export $ac_envvar ;;
1119
795ca3e5 1120 *)
ad6254c5 1121 # FIXME: should be removed in autoconf 3.0.
68f2de6d 1122 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
ad6254c5 1123 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
68f2de6d 1124 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
ad6254c5 1125 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
795ca3e5
AK
1126 ;;
1127
1128 esac
1129done
1130
1131if test -n "$ac_prev"; then
ad6254c5 1132 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
68f2de6d 1133 { echo "$as_me: error: missing argument to $ac_option" >&2
ad6254c5 1134 { (exit 1); exit 1; }; }
795ca3e5 1135fi
795ca3e5 1136
68f2de6d 1137# Be sure to have absolute directory names.
7a197a62
AK
1138for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1139 datadir sysconfdir sharedstatedir localstatedir includedir \
1140 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1141 libdir localedir mandir
795ca3e5 1142do
7a197a62 1143 eval ac_val=\$$ac_var
ad6254c5 1144 case $ac_val in
7a197a62
AK
1145 [\\/$]* | ?:[\\/]* ) continue;;
1146 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
795ca3e5 1147 esac
68f2de6d 1148 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
7a197a62 1149 { (exit 1); exit 1; }; }
795ca3e5
AK
1150done
1151
ad6254c5
AK
1152# There might be people who depend on the old broken behavior: `$host'
1153# used to hold the argument of --host etc.
1154# FIXME: To remove some day.
1155build=$build_alias
1156host=$host_alias
1157target=$target_alias
1158
1159# FIXME: To remove some day.
1160if test "x$host_alias" != x; then
1161 if test "x$build_alias" = x; then
1162 cross_compiling=maybe
68f2de6d 1163 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
ad6254c5
AK
1164 If a cross compiler is detected then cross compile mode will be used." >&2
1165 elif test "x$build_alias" != "x$host_alias"; then
1166 cross_compiling=yes
1167 fi
1168fi
8106cdd5 1169
ad6254c5
AK
1170ac_tool_prefix=
1171test -n "$host_alias" && ac_tool_prefix=$host_alias-
1172
1173test "$silent" = yes && exec 6>/dev/null
795ca3e5 1174
795ca3e5 1175
7a197a62
AK
1176ac_pwd=`pwd` && test -n "$ac_pwd" &&
1177ac_ls_di=`ls -di .` &&
1178ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
68f2de6d 1179 { echo "$as_me: error: Working directory cannot be determined" >&2
7a197a62
AK
1180 { (exit 1); exit 1; }; }
1181test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
68f2de6d 1182 { echo "$as_me: error: pwd does not report name of working directory" >&2
7a197a62
AK
1183 { (exit 1); exit 1; }; }
1184
1185
795ca3e5
AK
1186# Find the source files, if location was not specified.
1187if test -z "$srcdir"; then
1188 ac_srcdir_defaulted=yes
7a197a62 1189 # Try the directory containing this script, then the parent directory.
68f2de6d
AK
1190 ac_confdir=`$as_dirname -- "$0" ||
1191$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1192 X"$0" : 'X\(//\)[^/]' \| \
1193 X"$0" : 'X\(//\)$' \| \
1194 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1195echo X"$0" |
7a197a62
AK
1196 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1197 s//\1/
1198 q
1199 }
1200 /^X\(\/\/\)[^/].*/{
1201 s//\1/
1202 q
1203 }
1204 /^X\(\/\/\)$/{
1205 s//\1/
1206 q
1207 }
1208 /^X\(\/\).*/{
1209 s//\1/
1210 q
1211 }
1212 s/.*/./; q'`
795ca3e5 1213 srcdir=$ac_confdir
7a197a62 1214 if test ! -r "$srcdir/$ac_unique_file"; then
795ca3e5
AK
1215 srcdir=..
1216 fi
1217else
1218 ac_srcdir_defaulted=no
1219fi
7a197a62
AK
1220if test ! -r "$srcdir/$ac_unique_file"; then
1221 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
68f2de6d 1222 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
ad6254c5 1223 { (exit 1); exit 1; }; }
795ca3e5 1224fi
7a197a62
AK
1225ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1226ac_abs_confdir=`(
68f2de6d 1227 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
ad6254c5 1228 { (exit 1); exit 1; }; }
7a197a62
AK
1229 pwd)`
1230# When building in place, set srcdir=.
1231if test "$ac_abs_confdir" = "$ac_pwd"; then
1232 srcdir=.
1233fi
1234# Remove unnecessary trailing slashes from srcdir.
1235# Double slashes in file names in object file debugging info
1236# mess up M-x gdb in Emacs.
1237case $srcdir in
1238*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1239esac
1240for ac_var in $ac_precious_vars; do
1241 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1242 eval ac_env_${ac_var}_value=\$${ac_var}
1243 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1244 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1245done
ad6254c5
AK
1246
1247#
1248# Report the --help message.
1249#
1250if test "$ac_init_help" = "long"; then
1251 # Omit some internal or obsolete options to make the list less imposing.
1252 # This message is too long to be a string in the A/UX 3.1 sh.
1253 cat <<_ACEOF
1254\`configure' configures this package to adapt to many kinds of systems.
1255
1256Usage: $0 [OPTION]... [VAR=VALUE]...
1257
1258To assign environment variables (e.g., CC, CFLAGS...), specify them as
1259VAR=VALUE. See below for descriptions of some of the useful variables.
1260
1261Defaults for the options are specified in brackets.
1262
1263Configuration:
1264 -h, --help display this help and exit
1265 --help=short display options specific to this package
1266 --help=recursive display the short help of all the included packages
1267 -V, --version display version information and exit
1268 -q, --quiet, --silent do not print \`checking...' messages
1269 --cache-file=FILE cache test results in FILE [disabled]
1270 -C, --config-cache alias for \`--cache-file=config.cache'
1271 -n, --no-create do not create output files
1272 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1273
ad6254c5
AK
1274Installation directories:
1275 --prefix=PREFIX install architecture-independent files in PREFIX
68f2de6d 1276 [$ac_default_prefix]
ad6254c5 1277 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
68f2de6d 1278 [PREFIX]
ad6254c5
AK
1279
1280By default, \`make install' will install all the files in
1281\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1282an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1283for instance \`--prefix=\$HOME'.
1284
1285For better control, use the options below.
1286
1287Fine tuning of the installation directories:
68f2de6d
AK
1288 --bindir=DIR user executables [EPREFIX/bin]
1289 --sbindir=DIR system admin executables [EPREFIX/sbin]
1290 --libexecdir=DIR program executables [EPREFIX/libexec]
1291 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1292 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1293 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1294 --libdir=DIR object code libraries [EPREFIX/lib]
1295 --includedir=DIR C header files [PREFIX/include]
1296 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1297 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1298 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1299 --infodir=DIR info documentation [DATAROOTDIR/info]
1300 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1301 --mandir=DIR man documentation [DATAROOTDIR/man]
1302 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1303 --htmldir=DIR html documentation [DOCDIR]
1304 --dvidir=DIR dvi documentation [DOCDIR]
1305 --pdfdir=DIR pdf documentation [DOCDIR]
1306 --psdir=DIR ps documentation [DOCDIR]
ad6254c5
AK
1307_ACEOF
1308
1309 cat <<\_ACEOF
1310
1311System types:
1312 --build=BUILD configure for building on BUILD [guessed]
1313 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1314 --target=TARGET configure for building compilers for TARGET [HOST]
1315_ACEOF
1316fi
1317
1318if test -n "$ac_init_help"; then
1319
1320 cat <<\_ACEOF
1321
1322Optional Features:
1323 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1324 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
ad6254c5
AK
1325 --enable-lvm1_fallback Use this to fall back and use LVM1 binaries if
1326 device-mapper is missing from the kernel
1b523347 1327 --disable-readline Disable readline support
3d978351 1328 --disable-realtime Disable realtime clock support
ad6254c5 1329 --enable-debug Enable debugging
5556819a 1330 --enable-profiling Gather gcov profiling data
93bd259b
AK
1331 --disable-devmapper Disable LVM2 device-mapper interaction
1332 --enable-compat Enable support for old device-mapper versions
1333 --disable-driver Disable calls to device-mapper in the kernel
ad6254c5
AK
1334 --disable-o_direct Disable O_DIRECT
1335 --enable-cmdlib Build shared command library
93bd259b 1336 --enable-pkgconfig Install pkgconfig support
ad6254c5 1337 --enable-fsadm Enable fsadm
15d91f5a 1338 --enable-dmeventd Enable the device-mapper event daemon
d0191583
JM
1339 --enable-static_link Use this to link the tools to their libraries
1340 statically. Default is dynamic linking
1341 --disable-selinux Disable selinux support
ad6254c5
AK
1342 --enable-nls Enable Native Language Support
1343
1344Optional Packages:
1345 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1346 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
d0191583
JM
1347 --with-user=USER Set the owner of installed files [USER=root]
1348 --with-group=GROUP Set the group owner of installed files [GROUP=root]
24bbc4d7
AK
1349 --with-device-uid=UID Set the owner used for new device nodes [UID=0]
1350 --with-device-gid=UID Set the group used for new device nodes [GID=0]
93bd259b 1351 --with-device-mode=MODE Set the mode used for new device nodes [MODE=0600]
ad6254c5
AK
1352 --with-lvm1=TYPE LVM1 metadata support: internal/shared/none
1353 TYPE=internal
1354 --with-pool=TYPE GFS pool read-only support: internal/shared/none
1355 TYPE=internal
1356 --with-cluster=TYPE Cluster LVM locking support: internal/shared/none
1357 TYPE=internal
1358 --with-snapshots=TYPE Snapshot support: internal/shared/none
1359 TYPE=internal
1360 --with-mirrors=TYPE Mirror support: internal/shared/none
1361 TYPE=internal
5c7fc7c4 1362 --with-clvmd=TYPE Build cluster LVM Daemon: cman/gulm/none/all
a266258f 1363 TYPE=none
d0191583
JM
1364 --with-optimisation=OPT C optimisation flag [OPT=-O2]
1365 --with-localedir=DIR Translation files in DIR [PREFIX/share/locale]
ad6254c5
AK
1366 --with-confdir=DIR Configuration files in DIR /etc
1367 --with-staticdir=DIR Static binary in DIR EXEC_PREFIX/sbin
68f2de6d
AK
1368 --with-usrlibdir=DIR
1369 --with-usrsbindir=DIR
93bd259b
AK
1370 --with-dmeventd-pidfile=PATH dmeventd pidfile [/var/run/dmeventd.pid]
1371 --with-dmeventd-path=PATH dmeventd path [${exec_prefix}/sbin/dmeventd]
1372 --with-interface=IFACE Choose kernel interface (ioctl) [ioctl]
ad6254c5
AK
1373
1374Some influential environment variables:
1375 CC C compiler command
1376 CFLAGS C compiler flags
1377 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1378 nonstandard directory <lib dir>
25fbec5b 1379 LIBS libraries to pass to the linker, e.g. -l<library>
7a197a62
AK
1380 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1381 you have headers in a nonstandard directory <include dir>
ad6254c5
AK
1382 CPP C preprocessor
1383
1384Use these variables to override the choices made by `configure' or to help
1385it to find libraries and programs with nonstandard names/locations.
1386
1387_ACEOF
7a197a62 1388ac_status=$?
ad6254c5
AK
1389fi
1390
1391if test "$ac_init_help" = "recursive"; then
1392 # If there are subdirs, report their specific --help.
ad6254c5 1393 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
68f2de6d 1394 test -d "$ac_dir" || continue
ad6254c5
AK
1395 ac_builddir=.
1396
7a197a62
AK
1397case "$ac_dir" in
1398.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1399*)
68f2de6d 1400 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7a197a62 1401 # A ".." for each directory in $ac_dir_suffix.
68f2de6d 1402 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
7a197a62
AK
1403 case $ac_top_builddir_sub in
1404 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1405 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1406 esac ;;
1407esac
1408ac_abs_top_builddir=$ac_pwd
1409ac_abs_builddir=$ac_pwd$ac_dir_suffix
1410# for backward compatibility:
1411ac_top_builddir=$ac_top_build_prefix
ad6254c5
AK
1412
1413case $srcdir in
7a197a62 1414 .) # We are building in place.
ad6254c5 1415 ac_srcdir=.
7a197a62
AK
1416 ac_top_srcdir=$ac_top_builddir_sub
1417 ac_abs_top_srcdir=$ac_pwd ;;
1418 [\\/]* | ?:[\\/]* ) # Absolute name.
ad6254c5 1419 ac_srcdir=$srcdir$ac_dir_suffix;
7a197a62
AK
1420 ac_top_srcdir=$srcdir
1421 ac_abs_top_srcdir=$srcdir ;;
1422 *) # Relative name.
1423 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1424 ac_top_srcdir=$ac_top_build_prefix$srcdir
1425 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8a2fc586 1426esac
7a197a62
AK
1427ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1428
1429 cd "$ac_dir" || { ac_status=$?; continue; }
1430 # Check for guested configure.
1431 if test -f "$ac_srcdir/configure.gnu"; then
1432 echo &&
1433 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1434 elif test -f "$ac_srcdir/configure"; then
1435 echo &&
1436 $SHELL "$ac_srcdir/configure" --help=recursive
ad6254c5 1437 else
68f2de6d 1438 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
7a197a62
AK
1439 fi || ac_status=$?
1440 cd "$ac_pwd" || { ac_status=$?; break; }
ad6254c5
AK
1441 done
1442fi
1443
7a197a62 1444test -n "$ac_init_help" && exit $ac_status
ad6254c5
AK
1445if $ac_init_version; then
1446 cat <<\_ACEOF
7a197a62 1447configure
68f2de6d 1448generated by GNU Autoconf 2.61
ad6254c5 1449
7a197a62 1450Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
68f2de6d 14512002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
ad6254c5
AK
1452This configure script is free software; the Free Software Foundation
1453gives unlimited permission to copy, distribute and modify it.
1454_ACEOF
7a197a62 1455 exit
ad6254c5 1456fi
7a197a62 1457cat >config.log <<_ACEOF
ad6254c5
AK
1458This file contains any messages produced by compilers while
1459running configure, to aid debugging if configure makes a mistake.
1460
1461It was created by $as_me, which was
68f2de6d 1462generated by GNU Autoconf 2.61. Invocation command line was
ad6254c5
AK
1463
1464 $ $0 $@
1465
1466_ACEOF
7a197a62 1467exec 5>>config.log
ad6254c5
AK
1468{
1469cat <<_ASUNAME
1470## --------- ##
1471## Platform. ##
1472## --------- ##
1473
1474hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1475uname -m = `(uname -m) 2>/dev/null || echo unknown`
1476uname -r = `(uname -r) 2>/dev/null || echo unknown`
1477uname -s = `(uname -s) 2>/dev/null || echo unknown`
1478uname -v = `(uname -v) 2>/dev/null || echo unknown`
1479
1480/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1481/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1482
1483/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1484/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1485/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
7a197a62 1486/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
ad6254c5
AK
1487/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1488/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1489/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1490
1491_ASUNAME
1492
1493as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1494for as_dir in $PATH
1495do
1496 IFS=$as_save_IFS
1497 test -z "$as_dir" && as_dir=.
68f2de6d 1498 echo "PATH: $as_dir"
ad6254c5 1499done
7a197a62 1500IFS=$as_save_IFS
ad6254c5
AK
1501
1502} >&5
1503
1504cat >&5 <<_ACEOF
1505
1506
1507## ----------- ##
1508## Core tests. ##
1509## ----------- ##
1510
1511_ACEOF
1512
1513
1514# Keep a trace of the command line.
1515# Strip out --no-create and --no-recursion so they do not pile up.
1516# Strip out --silent because we don't want to record it for future runs.
1517# Also quote any args containing shell meta-characters.
1518# Make two passes to allow for proper duplicate-argument suppression.
1519ac_configure_args=
1520ac_configure_args0=
1521ac_configure_args1=
ad6254c5
AK
1522ac_must_keep_next=false
1523for ac_pass in 1 2
1524do
1525 for ac_arg
1526 do
1527 case $ac_arg in
1528 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1529 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1530 | -silent | --silent | --silen | --sile | --sil)
1531 continue ;;
7a197a62 1532 *\'*)
68f2de6d 1533 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
ad6254c5
AK
1534 esac
1535 case $ac_pass in
1536 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1537 2)
1538 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1539 if test $ac_must_keep_next = true; then
8a2fc586 1540 ac_must_keep_next=false # Got value, back to normal.
ad6254c5 1541 else
8a2fc586
AK
1542 case $ac_arg in
1543 *=* | --config-cache | -C | -disable-* | --disable-* \
1544 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1545 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1546 | -with-* | --with-* | -without-* | --without-* | --x)
1547 case "$ac_configure_args0 " in
1548 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1549 esac
1550 ;;
1551 -* ) ac_must_keep_next=true ;;
1552 esac
ad6254c5 1553 fi
7a197a62 1554 ac_configure_args="$ac_configure_args '$ac_arg'"
ad6254c5
AK
1555 ;;
1556 esac
1557 done
1558done
1559$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1560$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1561
1562# When interrupted or exit'd, cleanup temporary files, and complete
1563# config.log. We remove comments because anyway the quotes in there
1564# would cause problems or look ugly.
7a197a62
AK
1565# WARNING: Use '\'' to represent an apostrophe within the trap.
1566# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
ad6254c5
AK
1567trap 'exit_status=$?
1568 # Save into config.log some information that might help in debugging.
1569 {
1570 echo
1571
1572 cat <<\_ASBOX
1573## ---------------- ##
1574## Cache variables. ##
1575## ---------------- ##
1576_ASBOX
1577 echo
1578 # The following way of writing the cache mishandles newlines in values,
7a197a62
AK
1579(
1580 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1581 eval ac_val=\$$ac_var
1582 case $ac_val in #(
1583 *${as_nl}*)
1584 case $ac_var in #(
68f2de6d
AK
1585 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1586echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
7a197a62
AK
1587 esac
1588 case $ac_var in #(
1589 _ | IFS | as_nl) ;; #(
1590 *) $as_unset $ac_var ;;
1591 esac ;;
1592 esac
1593 done
ad6254c5 1594 (set) 2>&1 |
7a197a62
AK
1595 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1596 *${as_nl}ac_space=\ *)
ad6254c5 1597 sed -n \
7a197a62
AK
1598 "s/'\''/'\''\\\\'\'''\''/g;
1599 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1600 ;; #(
ad6254c5 1601 *)
7a197a62 1602 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
ad6254c5 1603 ;;
7a197a62
AK
1604 esac |
1605 sort
1606)
ad6254c5
AK
1607 echo
1608
1609 cat <<\_ASBOX
1610## ----------------- ##
1611## Output variables. ##
1612## ----------------- ##
1613_ASBOX
1614 echo
1615 for ac_var in $ac_subst_vars
1616 do
7a197a62
AK
1617 eval ac_val=\$$ac_var
1618 case $ac_val in
68f2de6d 1619 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
7a197a62 1620 esac
68f2de6d 1621 echo "$ac_var='\''$ac_val'\''"
ad6254c5
AK
1622 done | sort
1623 echo
1624
1625 if test -n "$ac_subst_files"; then
1626 cat <<\_ASBOX
7a197a62
AK
1627## ------------------- ##
1628## File substitutions. ##
1629## ------------------- ##
ad6254c5
AK
1630_ASBOX
1631 echo
1632 for ac_var in $ac_subst_files
1633 do
7a197a62
AK
1634 eval ac_val=\$$ac_var
1635 case $ac_val in
68f2de6d 1636 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
7a197a62 1637 esac
68f2de6d 1638 echo "$ac_var='\''$ac_val'\''"
ad6254c5
AK
1639 done | sort
1640 echo
1641 fi
1642
1643 if test -s confdefs.h; then
1644 cat <<\_ASBOX
1645## ----------- ##
1646## confdefs.h. ##
1647## ----------- ##
1648_ASBOX
1649 echo
7a197a62 1650 cat confdefs.h
ad6254c5
AK
1651 echo
1652 fi
1653 test "$ac_signal" != 0 &&
68f2de6d
AK
1654 echo "$as_me: caught signal $ac_signal"
1655 echo "$as_me: exit $exit_status"
ad6254c5 1656 } >&5
7a197a62
AK
1657 rm -f core *.core core.conftest.* &&
1658 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
ad6254c5 1659 exit $exit_status
7a197a62 1660' 0
ad6254c5
AK
1661for ac_signal in 1 2 13 15; do
1662 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1663done
1664ac_signal=0
1665
1666# confdefs.h avoids OS command line length limits that DEFS can exceed.
7a197a62 1667rm -f -r conftest* confdefs.h
ad6254c5
AK
1668
1669# Predefined preprocessor variables.
1670
1671cat >>confdefs.h <<_ACEOF
1672#define PACKAGE_NAME "$PACKAGE_NAME"
1673_ACEOF
1674
1675
1676cat >>confdefs.h <<_ACEOF
1677#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1678_ACEOF
1679
1680
1681cat >>confdefs.h <<_ACEOF
1682#define PACKAGE_VERSION "$PACKAGE_VERSION"
1683_ACEOF
8106cdd5 1684
ad6254c5
AK
1685
1686cat >>confdefs.h <<_ACEOF
1687#define PACKAGE_STRING "$PACKAGE_STRING"
1688_ACEOF
1689
1690
1691cat >>confdefs.h <<_ACEOF
1692#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1693_ACEOF
1694
1695
1696# Let the site file select an alternate cache file if it wants to.
68f2de6d 1697# Prefer explicitly selected file to automatically selected ones.
7a197a62 1698if test -n "$CONFIG_SITE"; then
68f2de6d 1699 set x "$CONFIG_SITE"
7a197a62 1700elif test "x$prefix" != xNONE; then
68f2de6d 1701 set x "$prefix/share/config.site" "$prefix/etc/config.site"
7a197a62 1702else
68f2de6d
AK
1703 set x "$ac_default_prefix/share/config.site" \
1704 "$ac_default_prefix/etc/config.site"
795ca3e5 1705fi
68f2de6d
AK
1706shift
1707for ac_site_file
7a197a62 1708do
795ca3e5 1709 if test -r "$ac_site_file"; then
68f2de6d
AK
1710 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1711echo "$as_me: loading site script $ac_site_file" >&6;}
ad6254c5 1712 sed 's/^/| /' "$ac_site_file" >&5
795ca3e5
AK
1713 . "$ac_site_file"
1714 fi
1715done
1716
1717if test -r "$cache_file"; then
ad6254c5
AK
1718 # Some versions of bash will fail to source /dev/null (special
1719 # files actually), so we avoid doing that.
1720 if test -f "$cache_file"; then
68f2de6d
AK
1721 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1722echo "$as_me: loading cache $cache_file" >&6;}
ad6254c5 1723 case $cache_file in
7a197a62
AK
1724 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1725 *) . "./$cache_file";;
ad6254c5
AK
1726 esac
1727 fi
795ca3e5 1728else
68f2de6d
AK
1729 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1730echo "$as_me: creating cache $cache_file" >&6;}
ad6254c5
AK
1731 >$cache_file
1732fi
1733
1734# Check that the precious variables saved in the cache have kept the same
1735# value.
1736ac_cache_corrupted=false
7a197a62 1737for ac_var in $ac_precious_vars; do
ad6254c5
AK
1738 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1739 eval ac_new_set=\$ac_env_${ac_var}_set
7a197a62
AK
1740 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1741 eval ac_new_val=\$ac_env_${ac_var}_value
ad6254c5
AK
1742 case $ac_old_set,$ac_new_set in
1743 set,)
68f2de6d
AK
1744 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1745echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
ad6254c5
AK
1746 ac_cache_corrupted=: ;;
1747 ,set)
68f2de6d
AK
1748 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1749echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
ad6254c5
AK
1750 ac_cache_corrupted=: ;;
1751 ,);;
1752 *)
1753 if test "x$ac_old_val" != "x$ac_new_val"; then
68f2de6d
AK
1754 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1755echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1756 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1757echo "$as_me: former value: $ac_old_val" >&2;}
1758 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1759echo "$as_me: current value: $ac_new_val" >&2;}
1760 ac_cache_corrupted=:
ad6254c5
AK
1761 fi;;
1762 esac
1763 # Pass precious variables to config.status.
1764 if test "$ac_new_set" = set; then
1765 case $ac_new_val in
68f2de6d 1766 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
ad6254c5
AK
1767 *) ac_arg=$ac_var=$ac_new_val ;;
1768 esac
1769 case " $ac_configure_args " in
1770 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1771 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1772 esac
1773 fi
1774done
1775if $ac_cache_corrupted; then
68f2de6d
AK
1776 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1777echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1778 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1779echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
ad6254c5 1780 { (exit 1); exit 1; }; }
795ca3e5
AK
1781fi
1782
ad6254c5
AK
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
7a197a62
AK
1799ac_ext=c
1800ac_cpp='$CPP $CPPFLAGS'
1801ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1802ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1803ac_compiler_gnu=$ac_cv_c_compiler_gnu
ad6254c5 1804
795ca3e5
AK
1805
1806
7a197a62 1807ac_config_headers="$ac_config_headers lib/misc/configure.h"
72b2cb61
AK
1808
1809
80992638 1810################################################################################
795ca3e5 1811ac_aux_dir=
7a197a62
AK
1812for ac_dir in autoconf "$srcdir"/autoconf; do
1813 if test -f "$ac_dir/install-sh"; then
795ca3e5
AK
1814 ac_aux_dir=$ac_dir
1815 ac_install_sh="$ac_aux_dir/install-sh -c"
1816 break
7a197a62 1817 elif test -f "$ac_dir/install.sh"; then
795ca3e5
AK
1818 ac_aux_dir=$ac_dir
1819 ac_install_sh="$ac_aux_dir/install.sh -c"
1820 break
7a197a62 1821 elif test -f "$ac_dir/shtool"; then
ad6254c5
AK
1822 ac_aux_dir=$ac_dir
1823 ac_install_sh="$ac_aux_dir/shtool install -c"
1824 break
795ca3e5
AK
1825 fi
1826done
1827if test -z "$ac_aux_dir"; then
68f2de6d
AK
1828 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1829echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
ad6254c5 1830 { (exit 1); exit 1; }; }
795ca3e5 1831fi
7a197a62
AK
1832
1833# These three variables are undocumented and unsupported,
1834# and are intended to be withdrawn in a future Autoconf release.
1835# They can cause serious problems if a builder's source tree is in a directory
1836# whose full name contains unusual characters.
1837ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1838ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1839ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1840
8ce0cbda
AK
1841
1842
ad6254c5 1843################################################################################
8ce0cbda 1844# Make sure we can run config.sub.
7a197a62 1845$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
68f2de6d
AK
1846 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1847echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
ad6254c5
AK
1848 { (exit 1); exit 1; }; }
1849
68f2de6d
AK
1850{ echo "$as_me:$LINENO: checking build system type" >&5
1851echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
ad6254c5 1852if test "${ac_cv_build+set}" = set; then
68f2de6d 1853 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 1854else
7a197a62
AK
1855 ac_build_alias=$build_alias
1856test "x$ac_build_alias" = x &&
1857 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1858test "x$ac_build_alias" = x &&
68f2de6d
AK
1859 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1860echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
ad6254c5 1861 { (exit 1); exit 1; }; }
7a197a62 1862ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
68f2de6d
AK
1863 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1864echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
ad6254c5
AK
1865 { (exit 1); exit 1; }; }
1866
1867fi
68f2de6d
AK
1868{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1869echo "${ECHO_T}$ac_cv_build" >&6; }
7a197a62
AK
1870case $ac_cv_build in
1871*-*-*) ;;
68f2de6d
AK
1872*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1873echo "$as_me: error: invalid value of canonical build" >&2;}
7a197a62
AK
1874 { (exit 1); exit 1; }; };;
1875esac
ad6254c5 1876build=$ac_cv_build
7a197a62
AK
1877ac_save_IFS=$IFS; IFS='-'
1878set x $ac_cv_build
1879shift
1880build_cpu=$1
1881build_vendor=$2
1882shift; shift
1883# Remember, the first character of IFS is used to create $*,
1884# except with old shells:
1885build_os=$*
1886IFS=$ac_save_IFS
1887case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
ad6254c5
AK
1888
1889
68f2de6d
AK
1890{ echo "$as_me:$LINENO: checking host system type" >&5
1891echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
ad6254c5 1892if test "${ac_cv_host+set}" = set; then
68f2de6d 1893 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 1894else
7a197a62
AK
1895 if test "x$host_alias" = x; then
1896 ac_cv_host=$ac_cv_build
1897else
1898 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
68f2de6d
AK
1899 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1900echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
ad6254c5 1901 { (exit 1); exit 1; }; }
7a197a62 1902fi
ad6254c5
AK
1903
1904fi
68f2de6d
AK
1905{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1906echo "${ECHO_T}$ac_cv_host" >&6; }
7a197a62
AK
1907case $ac_cv_host in
1908*-*-*) ;;
68f2de6d
AK
1909*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1910echo "$as_me: error: invalid value of canonical host" >&2;}
7a197a62
AK
1911 { (exit 1); exit 1; }; };;
1912esac
ad6254c5 1913host=$ac_cv_host
7a197a62
AK
1914ac_save_IFS=$IFS; IFS='-'
1915set x $ac_cv_host
1916shift
1917host_cpu=$1
1918host_vendor=$2
1919shift; shift
1920# Remember, the first character of IFS is used to create $*,
1921# except with old shells:
1922host_os=$*
1923IFS=$ac_save_IFS
1924case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
ad6254c5
AK
1925
1926
68f2de6d
AK
1927{ echo "$as_me:$LINENO: checking target system type" >&5
1928echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
ad6254c5 1929if test "${ac_cv_target+set}" = set; then
68f2de6d 1930 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 1931else
7a197a62
AK
1932 if test "x$target_alias" = x; then
1933 ac_cv_target=$ac_cv_host
1934else
1935 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
68f2de6d
AK
1936 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
1937echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
ad6254c5 1938 { (exit 1); exit 1; }; }
7a197a62 1939fi
8ce0cbda 1940
ad6254c5 1941fi
68f2de6d
AK
1942{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1943echo "${ECHO_T}$ac_cv_target" >&6; }
7a197a62
AK
1944case $ac_cv_target in
1945*-*-*) ;;
68f2de6d
AK
1946*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
1947echo "$as_me: error: invalid value of canonical target" >&2;}
7a197a62
AK
1948 { (exit 1); exit 1; }; };;
1949esac
ad6254c5 1950target=$ac_cv_target
7a197a62
AK
1951ac_save_IFS=$IFS; IFS='-'
1952set x $ac_cv_target
1953shift
1954target_cpu=$1
1955target_vendor=$2
1956shift; shift
1957# Remember, the first character of IFS is used to create $*,
1958# except with old shells:
1959target_os=$*
1960IFS=$ac_save_IFS
1961case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
8ce0cbda 1962
8ce0cbda 1963
ad6254c5
AK
1964# The aliases save the names the user supplied, while $host etc.
1965# will get canonicalized.
1966test -n "$target_alias" &&
8ce0cbda
AK
1967 test "$program_prefix$program_suffix$program_transform_name" = \
1968 NONENONEs,x,x, &&
1969 program_prefix=${target_alias}-
1970
8ce0cbda
AK
1971case "$host_os" in
1972 linux*)
8ce0cbda
AK
1973 COPTIMISE_FLAG="-O2"
1974 CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym"
1975 CLDWHOLEARCHIVE="-Wl,-whole-archive"
1976 CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive"
1977 LDDEPS="$LDDEPS .export.sym"
1978 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
d0191583 1979 LIB_SUFFIX=so
8ce0cbda
AK
1980 DEVMAPPER=yes
1981 ODIRECT=yes
d0191583 1982 DM_IOCTLS=yes
8ce0cbda 1983 SELINUX=yes
8b1a3214 1984 REALTIME=yes
8ce0cbda 1985 CLUSTER=internal
93bd259b 1986 FSADM=yes
d0191583 1987 ;;
8ce0cbda
AK
1988 darwin*)
1989 CFLAGS="$CFLAGS -no-cpp-precomp -fno-common"
1990 COPTIMISE_FLAG="-O2"
1991 CLDFLAGS="$CLDFLAGS"
1992 CLDWHOLEARCHIVE="-all_load"
1993 CLDNOWHOLEARCHIVE=
d0191583 1994 LIB_SUFFIX=dylib
a653923f 1995 DEVMAPPER=yes
8ce0cbda 1996 ODIRECT=no
d0191583 1997 DM_IOCTLS=no
8ce0cbda 1998 SELINUX=no
8b1a3214 1999 REALTIME=no
8ce0cbda 2000 CLUSTER=none
d0191583
JM
2001 FSADM=no
2002 ;;
8ce0cbda
AK
2003esac
2004
80992638 2005################################################################################
5951ef33
AK
2006{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
2007echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
2008if test "${ac_cv_path_SED+set}" = set; then
2009 echo $ECHO_N "(cached) $ECHO_C" >&6
2010else
2011 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2012 for ac_i in 1 2 3 4 5 6 7; do
2013 ac_script="$ac_script$as_nl$ac_script"
2014 done
2015 echo "$ac_script" | sed 99q >conftest.sed
2016 $as_unset ac_script || ac_script=
2017 # Extract the first word of "sed gsed" to use in msg output
2018if test -z "$SED"; then
2019set dummy sed gsed; ac_prog_name=$2
2020if test "${ac_cv_path_SED+set}" = set; then
2021 echo $ECHO_N "(cached) $ECHO_C" >&6
2022else
2023 ac_path_SED_found=false
2024# Loop through the user's path and test for each of PROGNAME-LIST
2025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2026for as_dir in $PATH
2027do
2028 IFS=$as_save_IFS
2029 test -z "$as_dir" && as_dir=.
2030 for ac_prog in sed gsed; do
2031 for ac_exec_ext in '' $ac_executable_extensions; do
2032 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2033 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2034 # Check for GNU ac_path_SED and select it if it is found.
2035 # Check for GNU $ac_path_SED
2036case `"$ac_path_SED" --version 2>&1` in
2037*GNU*)
2038 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2039*)
2040 ac_count=0
2041 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
2042 while :
2043 do
2044 cat "conftest.in" "conftest.in" >"conftest.tmp"
2045 mv "conftest.tmp" "conftest.in"
2046 cp "conftest.in" "conftest.nl"
2047 echo '' >> "conftest.nl"
2048 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2049 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2050 ac_count=`expr $ac_count + 1`
2051 if test $ac_count -gt ${ac_path_SED_max-0}; then
2052 # Best one so far, save it but keep looking for a better one
2053 ac_cv_path_SED="$ac_path_SED"
2054 ac_path_SED_max=$ac_count
2055 fi
2056 # 10*(2^10) chars as input seems more than enough
2057 test $ac_count -gt 10 && break
2058 done
2059 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2060esac
2061
2062
2063 $ac_path_SED_found && break 3
2064 done
2065done
2066
2067done
2068IFS=$as_save_IFS
2069
2070
2071fi
2072
2073SED="$ac_cv_path_SED"
2074if test -z "$SED"; then
2075 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
2076echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
2077 { (exit 1); exit 1; }; }
2078fi
2079
2080else
2081 ac_cv_path_SED=$SED
2082fi
2083
2084fi
2085{ echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
2086echo "${ECHO_T}$ac_cv_path_SED" >&6; }
2087 SED="$ac_cv_path_SED"
2088 rm -f conftest.sed
2089
ad6254c5 2090for ac_prog in gawk mawk nawk awk
795ca3e5 2091do
ad6254c5 2092 # Extract the first word of "$ac_prog", so it can be a program name with args.
795ca3e5 2093set dummy $ac_prog; ac_word=$2
68f2de6d
AK
2094{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2095echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
ad6254c5 2096if test "${ac_cv_prog_AWK+set}" = set; then
68f2de6d 2097 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5
AK
2098else
2099 if test -n "$AWK"; then
2100 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2101else
ad6254c5
AK
2102as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2103for as_dir in $PATH
2104do
2105 IFS=$as_save_IFS
2106 test -z "$as_dir" && as_dir=.
2107 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2109 ac_cv_prog_AWK="$ac_prog"
68f2de6d 2110 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2111 break 2
2112 fi
2113done
2114done
7a197a62 2115IFS=$as_save_IFS
ad6254c5 2116
795ca3e5
AK
2117fi
2118fi
ad6254c5 2119AWK=$ac_cv_prog_AWK
795ca3e5 2120if test -n "$AWK"; then
68f2de6d
AK
2121 { echo "$as_me:$LINENO: result: $AWK" >&5
2122echo "${ECHO_T}$AWK" >&6; }
795ca3e5 2123else
68f2de6d
AK
2124 { echo "$as_me:$LINENO: result: no" >&5
2125echo "${ECHO_T}no" >&6; }
795ca3e5
AK
2126fi
2127
7a197a62 2128
ad6254c5
AK
2129 test -n "$AWK" && break
2130done
2131
2132ac_ext=c
2133ac_cpp='$CPP $CPPFLAGS'
2134ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2135ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2136ac_compiler_gnu=$ac_cv_c_compiler_gnu
2137if test -n "$ac_tool_prefix"; then
2138 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2139set dummy ${ac_tool_prefix}gcc; ac_word=$2
68f2de6d
AK
2140{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2141echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
ad6254c5 2142if test "${ac_cv_prog_CC+set}" = set; then
68f2de6d 2143 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
2144else
2145 if test -n "$CC"; then
2146 ac_cv_prog_CC="$CC" # Let the user override the test.
2147else
2148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2149for as_dir in $PATH
2150do
2151 IFS=$as_save_IFS
2152 test -z "$as_dir" && as_dir=.
2153 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2155 ac_cv_prog_CC="${ac_tool_prefix}gcc"
68f2de6d 2156 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2157 break 2
2158 fi
2159done
8106cdd5 2160done
7a197a62 2161IFS=$as_save_IFS
8106cdd5 2162
ad6254c5
AK
2163fi
2164fi
2165CC=$ac_cv_prog_CC
2166if test -n "$CC"; then
68f2de6d
AK
2167 { echo "$as_me:$LINENO: result: $CC" >&5
2168echo "${ECHO_T}$CC" >&6; }
ad6254c5 2169else
68f2de6d
AK
2170 { echo "$as_me:$LINENO: result: no" >&5
2171echo "${ECHO_T}no" >&6; }
ad6254c5
AK
2172fi
2173
7a197a62 2174
ad6254c5
AK
2175fi
2176if test -z "$ac_cv_prog_CC"; then
2177 ac_ct_CC=$CC
2178 # Extract the first word of "gcc", so it can be a program name with args.
8106cdd5 2179set dummy gcc; ac_word=$2
68f2de6d
AK
2180{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2181echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
ad6254c5 2182if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
68f2de6d 2183 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
2184else
2185 if test -n "$ac_ct_CC"; then
2186 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2187else
2188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2189for as_dir in $PATH
2190do
2191 IFS=$as_save_IFS
2192 test -z "$as_dir" && as_dir=.
2193 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2195 ac_cv_prog_ac_ct_CC="gcc"
68f2de6d 2196 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2197 break 2
2198 fi
2199done
2200done
7a197a62 2201IFS=$as_save_IFS
ad6254c5
AK
2202
2203fi
2204fi
2205ac_ct_CC=$ac_cv_prog_ac_ct_CC
2206if test -n "$ac_ct_CC"; then
68f2de6d
AK
2207 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2208echo "${ECHO_T}$ac_ct_CC" >&6; }
ad6254c5 2209else
68f2de6d
AK
2210 { echo "$as_me:$LINENO: result: no" >&5
2211echo "${ECHO_T}no" >&6; }
ad6254c5
AK
2212fi
2213
7a197a62
AK
2214 if test "x$ac_ct_CC" = x; then
2215 CC=""
2216 else
2217 case $cross_compiling:$ac_tool_warned in
2218yes:)
68f2de6d 2219{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7a197a62
AK
2220whose name does not start with the host triplet. If you think this
2221configuration is useful to you, please write to autoconf@gnu.org." >&5
68f2de6d 2222echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7a197a62
AK
2223whose name does not start with the host triplet. If you think this
2224configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2225ac_tool_warned=yes ;;
2226esac
2227 CC=$ac_ct_CC
2228 fi
ad6254c5
AK
2229else
2230 CC="$ac_cv_prog_CC"
2231fi
2232
2233if test -z "$CC"; then
7a197a62
AK
2234 if test -n "$ac_tool_prefix"; then
2235 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
ad6254c5 2236set dummy ${ac_tool_prefix}cc; ac_word=$2
68f2de6d
AK
2237{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2238echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
ad6254c5 2239if test "${ac_cv_prog_CC+set}" = set; then
68f2de6d 2240 echo $ECHO_N "(cached) $ECHO_C" >&6
8106cdd5
AK
2241else
2242 if test -n "$CC"; then
2243 ac_cv_prog_CC="$CC" # Let the user override the test.
2244else
ad6254c5
AK
2245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2246for as_dir in $PATH
2247do
2248 IFS=$as_save_IFS
2249 test -z "$as_dir" && as_dir=.
2250 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2252 ac_cv_prog_CC="${ac_tool_prefix}cc"
68f2de6d 2253 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2254 break 2
2255 fi
2256done
2257done
7a197a62 2258IFS=$as_save_IFS
ad6254c5 2259
8106cdd5
AK
2260fi
2261fi
ad6254c5 2262CC=$ac_cv_prog_CC
8106cdd5 2263if test -n "$CC"; then
68f2de6d
AK
2264 { echo "$as_me:$LINENO: result: $CC" >&5
2265echo "${ECHO_T}$CC" >&6; }
ad6254c5 2266else
68f2de6d
AK
2267 { echo "$as_me:$LINENO: result: no" >&5
2268echo "${ECHO_T}no" >&6; }
ad6254c5
AK
2269fi
2270
8106cdd5 2271
7a197a62 2272 fi
ad6254c5 2273fi
795ca3e5
AK
2274if test -z "$CC"; then
2275 # Extract the first word of "cc", so it can be a program name with args.
2276set dummy cc; ac_word=$2
68f2de6d
AK
2277{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2278echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
ad6254c5 2279if test "${ac_cv_prog_CC+set}" = set; then
68f2de6d 2280 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5
AK
2281else
2282 if test -n "$CC"; then
2283 ac_cv_prog_CC="$CC" # Let the user override the test.
2284else
795ca3e5 2285 ac_prog_rejected=no
ad6254c5
AK
2286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2287for as_dir in $PATH
2288do
2289 IFS=$as_save_IFS
2290 test -z "$as_dir" && as_dir=.
2291 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5
AK
2293 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2294 ac_prog_rejected=yes
2295 continue
2296 fi
2297 ac_cv_prog_CC="cc"
68f2de6d 2298 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2299 break 2
2300 fi
2301done
2302done
7a197a62 2303IFS=$as_save_IFS
ad6254c5 2304
795ca3e5
AK
2305if test $ac_prog_rejected = yes; then
2306 # We found a bogon in the path, so make sure we never use it.
2307 set dummy $ac_cv_prog_CC
2308 shift
ad6254c5 2309 if test $# != 0; then
795ca3e5
AK
2310 # We chose a different compiler from the bogus one.
2311 # However, it has the same basename, so the bogon will be chosen
2312 # first if we set CC to just the basename; use the full file name.
2313 shift
ad6254c5 2314 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
795ca3e5
AK
2315 fi
2316fi
2317fi
2318fi
ad6254c5 2319CC=$ac_cv_prog_CC
795ca3e5 2320if test -n "$CC"; then
68f2de6d
AK
2321 { echo "$as_me:$LINENO: result: $CC" >&5
2322echo "${ECHO_T}$CC" >&6; }
795ca3e5 2323else
68f2de6d
AK
2324 { echo "$as_me:$LINENO: result: no" >&5
2325echo "${ECHO_T}no" >&6; }
795ca3e5
AK
2326fi
2327
7a197a62 2328
ad6254c5
AK
2329fi
2330if test -z "$CC"; then
2331 if test -n "$ac_tool_prefix"; then
7a197a62 2332 for ac_prog in cl.exe
ad6254c5
AK
2333 do
2334 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2335set dummy $ac_tool_prefix$ac_prog; ac_word=$2
68f2de6d
AK
2336{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2337echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
ad6254c5 2338if test "${ac_cv_prog_CC+set}" = set; then
68f2de6d 2339 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5
AK
2340else
2341 if test -n "$CC"; then
2342 ac_cv_prog_CC="$CC" # Let the user override the test.
2343else
ad6254c5
AK
2344as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2345for as_dir in $PATH
2346do
2347 IFS=$as_save_IFS
2348 test -z "$as_dir" && as_dir=.
2349 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2351 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
68f2de6d 2352 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2353 break 2
2354 fi
2355done
2356done
7a197a62 2357IFS=$as_save_IFS
ad6254c5 2358
795ca3e5
AK
2359fi
2360fi
ad6254c5 2361CC=$ac_cv_prog_CC
795ca3e5 2362if test -n "$CC"; then
68f2de6d
AK
2363 { echo "$as_me:$LINENO: result: $CC" >&5
2364echo "${ECHO_T}$CC" >&6; }
795ca3e5 2365else
68f2de6d
AK
2366 { echo "$as_me:$LINENO: result: no" >&5
2367echo "${ECHO_T}no" >&6; }
795ca3e5 2368fi
ad6254c5 2369
7a197a62 2370
ad6254c5
AK
2371 test -n "$CC" && break
2372 done
2373fi
2374if test -z "$CC"; then
2375 ac_ct_CC=$CC
7a197a62 2376 for ac_prog in cl.exe
ad6254c5
AK
2377do
2378 # Extract the first word of "$ac_prog", so it can be a program name with args.
2379set dummy $ac_prog; ac_word=$2
68f2de6d
AK
2380{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2381echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
ad6254c5 2382if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
68f2de6d 2383 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
2384else
2385 if test -n "$ac_ct_CC"; then
2386 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2387else
2388as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2389for as_dir in $PATH
2390do
2391 IFS=$as_save_IFS
2392 test -z "$as_dir" && as_dir=.
2393 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2395 ac_cv_prog_ac_ct_CC="$ac_prog"
68f2de6d 2396 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5 2397 break 2
795ca3e5 2398 fi
ad6254c5
AK
2399done
2400done
7a197a62 2401IFS=$as_save_IFS
ad6254c5
AK
2402
2403fi
2404fi
2405ac_ct_CC=$ac_cv_prog_ac_ct_CC
2406if test -n "$ac_ct_CC"; then
68f2de6d
AK
2407 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2408echo "${ECHO_T}$ac_ct_CC" >&6; }
ad6254c5 2409else
68f2de6d
AK
2410 { echo "$as_me:$LINENO: result: no" >&5
2411echo "${ECHO_T}no" >&6; }
795ca3e5
AK
2412fi
2413
7a197a62 2414
ad6254c5
AK
2415 test -n "$ac_ct_CC" && break
2416done
795ca3e5 2417
7a197a62
AK
2418 if test "x$ac_ct_CC" = x; then
2419 CC=""
2420 else
2421 case $cross_compiling:$ac_tool_warned in
2422yes:)
68f2de6d 2423{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7a197a62
AK
2424whose name does not start with the host triplet. If you think this
2425configuration is useful to you, please write to autoconf@gnu.org." >&5
68f2de6d 2426echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7a197a62
AK
2427whose name does not start with the host triplet. If you think this
2428configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2429ac_tool_warned=yes ;;
2430esac
2431 CC=$ac_ct_CC
2432 fi
ad6254c5
AK
2433fi
2434
2435fi
2436
2437
68f2de6d 2438test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
ad6254c5 2439See \`config.log' for more details." >&5
68f2de6d 2440echo "$as_me: error: no acceptable C compiler found in \$PATH
ad6254c5
AK
2441See \`config.log' for more details." >&2;}
2442 { (exit 1); exit 1; }; }
2443
2444# Provide some information about the compiler.
68f2de6d
AK
2445echo "$as_me:$LINENO: checking for C compiler version" >&5
2446ac_compiler=`set X $ac_compile; echo $2`
7a197a62
AK
2447{ (ac_try="$ac_compiler --version >&5"
2448case "(($ac_try" in
2449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2450 *) ac_try_echo=$ac_try;;
2451esac
68f2de6d 2452eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 2453 (eval "$ac_compiler --version >&5") 2>&5
ad6254c5 2454 ac_status=$?
68f2de6d 2455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2456 (exit $ac_status); }
7a197a62
AK
2457{ (ac_try="$ac_compiler -v >&5"
2458case "(($ac_try" in
2459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2460 *) ac_try_echo=$ac_try;;
2461esac
68f2de6d 2462eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 2463 (eval "$ac_compiler -v >&5") 2>&5
ad6254c5 2464 ac_status=$?
68f2de6d 2465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2466 (exit $ac_status); }
7a197a62
AK
2467{ (ac_try="$ac_compiler -V >&5"
2468case "(($ac_try" in
2469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2470 *) ac_try_echo=$ac_try;;
2471esac
68f2de6d 2472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 2473 (eval "$ac_compiler -V >&5") 2>&5
ad6254c5 2474 ac_status=$?
68f2de6d 2475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
2476 (exit $ac_status); }
2477
2478cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2479/* confdefs.h. */
2480_ACEOF
2481cat confdefs.h >>conftest.$ac_ext
2482cat >>conftest.$ac_ext <<_ACEOF
2483/* end confdefs.h. */
2484
2485int
2486main ()
2487{
2488
2489 ;
2490 return 0;
2491}
2492_ACEOF
2493ac_clean_files_save=$ac_clean_files
68f2de6d 2494ac_clean_files="$ac_clean_files a.out a.exe b.out"
ad6254c5
AK
2495# Try to create an executable without -o first, disregard a.out.
2496# It will help us diagnose broken compilers, and finding out an intuition
2497# of exeext.
68f2de6d
AK
2498{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2499echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2500ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2501#
2502# List of possible output files, starting from the most likely.
2503# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2504# only as a last resort. b.out is created by i960 compilers.
2505ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2506#
2507# The IRIX 6 linker writes into existing files which may not be
2508# executable, retaining their permissions. Remove them first so a
2509# subsequent execution test works.
7a197a62
AK
2510ac_rmfiles=
2511for ac_file in $ac_files
2512do
2513 case $ac_file in
68f2de6d 2514 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
7a197a62
AK
2515 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2516 esac
2517done
2518rm -f $ac_rmfiles
2519
2520if { (ac_try="$ac_link_default"
2521case "(($ac_try" in
2522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2523 *) ac_try_echo=$ac_try;;
2524esac
68f2de6d 2525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 2526 (eval "$ac_link_default") 2>&5
ad6254c5 2527 ac_status=$?
68f2de6d 2528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2529 (exit $ac_status); }; then
7a197a62
AK
2530 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2531# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2532# in a Makefile. We should not override ac_cv_exeext if it was cached,
2533# so that the user can short-circuit this test for compilers unknown to
2534# Autoconf.
25fbec5b 2535for ac_file in $ac_files ''
ad6254c5
AK
2536do
2537 test -f "$ac_file" || continue
2538 case $ac_file in
68f2de6d 2539 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
8a2fc586 2540 ;;
ad6254c5 2541 [ab].out )
8a2fc586
AK
2542 # We found the default executable, but exeext='' is most
2543 # certainly right.
2544 break;;
ad6254c5 2545 *.* )
7a197a62
AK
2546 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2547 then :; else
2548 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2549 fi
2550 # We set ac_cv_exeext here because the later test for it is not
2551 # safe: cross compilers may not add the suffix if given an `-o'
2552 # argument, so we may need to know it at that point already.
2553 # Even if this section looks crufty: it has the advantage of
2554 # actually working.
8a2fc586 2555 break;;
ad6254c5 2556 * )
8a2fc586 2557 break;;
ad6254c5
AK
2558 esac
2559done
7a197a62
AK
2560test "$ac_cv_exeext" = no && ac_cv_exeext=
2561
ad6254c5 2562else
25fbec5b
AK
2563 ac_file=''
2564fi
2565
68f2de6d
AK
2566{ echo "$as_me:$LINENO: result: $ac_file" >&5
2567echo "${ECHO_T}$ac_file" >&6; }
25fbec5b 2568if test -z "$ac_file"; then
68f2de6d 2569 echo "$as_me: failed program was:" >&5
ad6254c5
AK
2570sed 's/^/| /' conftest.$ac_ext >&5
2571
68f2de6d 2572{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
ad6254c5 2573See \`config.log' for more details." >&5
68f2de6d 2574echo "$as_me: error: C compiler cannot create executables
ad6254c5
AK
2575See \`config.log' for more details." >&2;}
2576 { (exit 77); exit 77; }; }
2577fi
2578
2579ac_exeext=$ac_cv_exeext
ad6254c5 2580
7a197a62 2581# Check that the compiler produces executables we can run. If not, either
ad6254c5 2582# the compiler is broken, or we cross compile.
68f2de6d
AK
2583{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2584echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
ad6254c5
AK
2585# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2586# If not cross compiling, check that we can run a simple program.
2587if test "$cross_compiling" != yes; then
2588 if { ac_try='./$ac_file'
7a197a62
AK
2589 { (case "(($ac_try" in
2590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2591 *) ac_try_echo=$ac_try;;
2592esac
68f2de6d 2593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 2594 (eval "$ac_try") 2>&5
ad6254c5 2595 ac_status=$?
68f2de6d 2596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
2597 (exit $ac_status); }; }; then
2598 cross_compiling=no
795ca3e5 2599 else
ad6254c5
AK
2600 if test "$cross_compiling" = maybe; then
2601 cross_compiling=yes
2602 else
68f2de6d 2603 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
ad6254c5
AK
2604If you meant to cross compile, use \`--host'.
2605See \`config.log' for more details." >&5
68f2de6d 2606echo "$as_me: error: cannot run C compiled programs.
ad6254c5
AK
2607If you meant to cross compile, use \`--host'.
2608See \`config.log' for more details." >&2;}
2609 { (exit 1); exit 1; }; }
2610 fi
795ca3e5 2611 fi
80992638 2612fi
68f2de6d
AK
2613{ echo "$as_me:$LINENO: result: yes" >&5
2614echo "${ECHO_T}yes" >&6; }
ad6254c5 2615
68f2de6d 2616rm -f a.out a.exe conftest$ac_cv_exeext b.out
ad6254c5 2617ac_clean_files=$ac_clean_files_save
7a197a62 2618# Check that the compiler produces executables we can run. If not, either
ad6254c5 2619# the compiler is broken, or we cross compile.
68f2de6d
AK
2620{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2621echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2622{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2623echo "${ECHO_T}$cross_compiling" >&6; }
7a197a62 2624
68f2de6d
AK
2625{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2626echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
7a197a62
AK
2627if { (ac_try="$ac_link"
2628case "(($ac_try" in
2629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2630 *) ac_try_echo=$ac_try;;
2631esac
68f2de6d 2632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 2633 (eval "$ac_link") 2>&5
ad6254c5 2634 ac_status=$?
68f2de6d 2635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
2636 (exit $ac_status); }; then
2637 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2638# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2639# work properly (i.e., refer to `conftest.exe'), while it won't with
2640# `rm'.
2641for ac_file in conftest.exe conftest conftest.*; do
2642 test -f "$ac_file" || continue
2643 case $ac_file in
68f2de6d 2644 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
ad6254c5 2645 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
8a2fc586 2646 break;;
ad6254c5
AK
2647 * ) break;;
2648 esac
2649done
80992638 2650else
68f2de6d 2651 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
ad6254c5 2652See \`config.log' for more details." >&5
68f2de6d 2653echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
ad6254c5
AK
2654See \`config.log' for more details." >&2;}
2655 { (exit 1); exit 1; }; }
2656fi
2657
2658rm -f conftest$ac_cv_exeext
68f2de6d
AK
2659{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2660echo "${ECHO_T}$ac_cv_exeext" >&6; }
ad6254c5
AK
2661
2662rm -f conftest.$ac_ext
2663EXEEXT=$ac_cv_exeext
2664ac_exeext=$EXEEXT
68f2de6d
AK
2665{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2666echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
ad6254c5 2667if test "${ac_cv_objext+set}" = set; then
68f2de6d 2668 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 2669else
ad6254c5 2670 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2671/* confdefs.h. */
2672_ACEOF
2673cat confdefs.h >>conftest.$ac_ext
2674cat >>conftest.$ac_ext <<_ACEOF
2675/* end confdefs.h. */
2676
2677int
2678main ()
2679{
2680
2681 ;
2682 return 0;
2683}
2684_ACEOF
2685rm -f conftest.o conftest.obj
7a197a62
AK
2686if { (ac_try="$ac_compile"
2687case "(($ac_try" in
2688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2689 *) ac_try_echo=$ac_try;;
2690esac
68f2de6d 2691eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 2692 (eval "$ac_compile") 2>&5
ad6254c5 2693 ac_status=$?
68f2de6d 2694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2695 (exit $ac_status); }; then
7a197a62
AK
2696 for ac_file in conftest.o conftest.obj conftest.*; do
2697 test -f "$ac_file" || continue;
ad6254c5 2698 case $ac_file in
68f2de6d 2699 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
ad6254c5
AK
2700 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2701 break;;
2702 esac
2703done
2704else
68f2de6d 2705 echo "$as_me: failed program was:" >&5
ad6254c5
AK
2706sed 's/^/| /' conftest.$ac_ext >&5
2707
68f2de6d 2708{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
ad6254c5 2709See \`config.log' for more details." >&5
68f2de6d 2710echo "$as_me: error: cannot compute suffix of object files: cannot compile
ad6254c5
AK
2711See \`config.log' for more details." >&2;}
2712 { (exit 1); exit 1; }; }
2713fi
2714
2715rm -f conftest.$ac_cv_objext conftest.$ac_ext
2716fi
68f2de6d
AK
2717{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2718echo "${ECHO_T}$ac_cv_objext" >&6; }
ad6254c5
AK
2719OBJEXT=$ac_cv_objext
2720ac_objext=$OBJEXT
68f2de6d
AK
2721{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2722echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
ad6254c5 2723if test "${ac_cv_c_compiler_gnu+set}" = set; then
68f2de6d 2724 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
2725else
2726 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2727/* confdefs.h. */
2728_ACEOF
2729cat confdefs.h >>conftest.$ac_ext
2730cat >>conftest.$ac_ext <<_ACEOF
2731/* end confdefs.h. */
2732
2733int
2734main ()
2735{
2736#ifndef __GNUC__
2737 choke me
2738#endif
80992638 2739
ad6254c5
AK
2740 ;
2741 return 0;
2742}
2743_ACEOF
2744rm -f conftest.$ac_objext
7a197a62
AK
2745if { (ac_try="$ac_compile"
2746case "(($ac_try" in
2747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2748 *) ac_try_echo=$ac_try;;
2749esac
68f2de6d 2750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 2751 (eval "$ac_compile") 2>conftest.er1
ad6254c5 2752 ac_status=$?
8a2fc586
AK
2753 grep -v '^ *+' conftest.er1 >conftest.err
2754 rm -f conftest.er1
2755 cat conftest.err >&5
68f2de6d 2756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
2757 (exit $ac_status); } && {
2758 test -z "$ac_c_werror_flag" ||
2759 test ! -s conftest.err
2760 } && test -s conftest.$ac_objext; then
ad6254c5 2761 ac_compiler_gnu=yes
80992638 2762else
68f2de6d 2763 echo "$as_me: failed program was:" >&5
ad6254c5
AK
2764sed 's/^/| /' conftest.$ac_ext >&5
2765
7a197a62 2766 ac_compiler_gnu=no
8106cdd5 2767fi
7a197a62
AK
2768
2769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 2770ac_cv_c_compiler_gnu=$ac_compiler_gnu
80992638 2771
ad6254c5 2772fi
68f2de6d
AK
2773{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2774echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2775GCC=`test $ac_compiler_gnu = yes && echo yes`
ad6254c5
AK
2776ac_test_CFLAGS=${CFLAGS+set}
2777ac_save_CFLAGS=$CFLAGS
68f2de6d
AK
2778{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2779echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
ad6254c5 2780if test "${ac_cv_prog_cc_g+set}" = set; then
68f2de6d 2781 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 2782else
7a197a62
AK
2783 ac_save_c_werror_flag=$ac_c_werror_flag
2784 ac_c_werror_flag=yes
2785 ac_cv_prog_cc_g=no
2786 CFLAGS="-g"
2787 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2788/* confdefs.h. */
2789_ACEOF
2790cat confdefs.h >>conftest.$ac_ext
2791cat >>conftest.$ac_ext <<_ACEOF
2792/* end confdefs.h. */
2793
2794int
2795main ()
2796{
2797
2798 ;
2799 return 0;
2800}
2801_ACEOF
2802rm -f conftest.$ac_objext
7a197a62
AK
2803if { (ac_try="$ac_compile"
2804case "(($ac_try" in
2805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2806 *) ac_try_echo=$ac_try;;
2807esac
68f2de6d 2808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 2809 (eval "$ac_compile") 2>conftest.er1
ad6254c5 2810 ac_status=$?
8a2fc586
AK
2811 grep -v '^ *+' conftest.er1 >conftest.err
2812 rm -f conftest.er1
2813 cat conftest.err >&5
68f2de6d 2814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
2815 (exit $ac_status); } && {
2816 test -z "$ac_c_werror_flag" ||
2817 test ! -s conftest.err
2818 } && test -s conftest.$ac_objext; then
7a197a62
AK
2819 ac_cv_prog_cc_g=yes
2820else
68f2de6d 2821 echo "$as_me: failed program was:" >&5
7a197a62
AK
2822sed 's/^/| /' conftest.$ac_ext >&5
2823
2824 CFLAGS=""
2825 cat >conftest.$ac_ext <<_ACEOF
2826/* confdefs.h. */
2827_ACEOF
2828cat confdefs.h >>conftest.$ac_ext
2829cat >>conftest.$ac_ext <<_ACEOF
2830/* end confdefs.h. */
2831
2832int
2833main ()
2834{
2835
2836 ;
2837 return 0;
2838}
2839_ACEOF
2840rm -f conftest.$ac_objext
2841if { (ac_try="$ac_compile"
2842case "(($ac_try" in
2843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2844 *) ac_try_echo=$ac_try;;
2845esac
68f2de6d 2846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 2847 (eval "$ac_compile") 2>conftest.er1
8a2fc586 2848 ac_status=$?
7a197a62
AK
2849 grep -v '^ *+' conftest.er1 >conftest.err
2850 rm -f conftest.er1
2851 cat conftest.err >&5
68f2de6d 2852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
2853 (exit $ac_status); } && {
2854 test -z "$ac_c_werror_flag" ||
2855 test ! -s conftest.err
2856 } && test -s conftest.$ac_objext; then
7a197a62
AK
2857 :
2858else
68f2de6d 2859 echo "$as_me: failed program was:" >&5
7a197a62
AK
2860sed 's/^/| /' conftest.$ac_ext >&5
2861
2862 ac_c_werror_flag=$ac_save_c_werror_flag
2863 CFLAGS="-g"
2864 cat >conftest.$ac_ext <<_ACEOF
2865/* confdefs.h. */
2866_ACEOF
2867cat confdefs.h >>conftest.$ac_ext
2868cat >>conftest.$ac_ext <<_ACEOF
2869/* end confdefs.h. */
2870
2871int
2872main ()
2873{
2874
2875 ;
2876 return 0;
2877}
2878_ACEOF
2879rm -f conftest.$ac_objext
2880if { (ac_try="$ac_compile"
2881case "(($ac_try" in
2882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2883 *) ac_try_echo=$ac_try;;
2884esac
68f2de6d 2885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 2886 (eval "$ac_compile") 2>conftest.er1
ad6254c5 2887 ac_status=$?
7a197a62
AK
2888 grep -v '^ *+' conftest.er1 >conftest.err
2889 rm -f conftest.er1
2890 cat conftest.err >&5
68f2de6d 2891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
2892 (exit $ac_status); } && {
2893 test -z "$ac_c_werror_flag" ||
2894 test ! -s conftest.err
2895 } && test -s conftest.$ac_objext; then
795ca3e5
AK
2896 ac_cv_prog_cc_g=yes
2897else
68f2de6d 2898 echo "$as_me: failed program was:" >&5
ad6254c5 2899sed 's/^/| /' conftest.$ac_ext >&5
80992638 2900
7a197a62
AK
2901
2902fi
2903
2904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2905fi
2906
2907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8106cdd5 2908fi
7a197a62
AK
2909
2910rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2911 ac_c_werror_flag=$ac_save_c_werror_flag
ad6254c5 2912fi
68f2de6d
AK
2913{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2914echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
795ca3e5 2915if test "$ac_test_CFLAGS" = set; then
ad6254c5 2916 CFLAGS=$ac_save_CFLAGS
795ca3e5
AK
2917elif test $ac_cv_prog_cc_g = yes; then
2918 if test "$GCC" = yes; then
2919 CFLAGS="-g -O2"
2920 else
2921 CFLAGS="-g"
2922 fi
2923else
2924 if test "$GCC" = yes; then
2925 CFLAGS="-O2"
2926 else
2927 CFLAGS=
2928 fi
2929fi
68f2de6d
AK
2930{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2931echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
7a197a62 2932if test "${ac_cv_prog_cc_c89+set}" = set; then
68f2de6d 2933 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 2934else
7a197a62 2935 ac_cv_prog_cc_c89=no
ad6254c5
AK
2936ac_save_CC=$CC
2937cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2938/* confdefs.h. */
2939_ACEOF
2940cat confdefs.h >>conftest.$ac_ext
2941cat >>conftest.$ac_ext <<_ACEOF
2942/* end confdefs.h. */
2943#include <stdarg.h>
2944#include <stdio.h>
2945#include <sys/types.h>
2946#include <sys/stat.h>
2947/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2948struct buf { int x; };
2949FILE * (*rcsopen) (struct buf *, struct stat *, int);
2950static char *e (p, i)
2951 char **p;
2952 int i;
2953{
2954 return p[i];
2955}
2956static char *f (char * (*g) (char **, int), char **p, ...)
2957{
2958 char *s;
2959 va_list v;
2960 va_start (v,p);
2961 s = g (p, va_arg (v,int));
2962 va_end (v);
2963 return s;
2964}
8a2fc586
AK
2965
2966/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2967 function prototypes and stuff, but not '\xHH' hex character constants.
2968 These don't provoke an error unfortunately, instead are silently treated
7a197a62 2969 as 'x'. The following induces an error, until -std is added to get
8a2fc586
AK
2970 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2971 array size at least. It's necessary to write '\x00'==0 to get something
7a197a62 2972 that's true only with -std. */
8a2fc586
AK
2973int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2974
7a197a62
AK
2975/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2976 inside strings and character constants. */
2977#define FOO(x) 'x'
2978int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2979
ad6254c5
AK
2980int test (int i, double x);
2981struct s1 {int (*f) (int a);};
2982struct s2 {int (*f) (double a);};
2983int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2984int argc;
2985char **argv;
2986int
2987main ()
2988{
2989return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2990 ;
2991 return 0;
2992}
2993_ACEOF
7a197a62
AK
2994for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2995 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
ad6254c5
AK
2996do
2997 CC="$ac_save_CC $ac_arg"
2998 rm -f conftest.$ac_objext
7a197a62
AK
2999if { (ac_try="$ac_compile"
3000case "(($ac_try" in
3001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3002 *) ac_try_echo=$ac_try;;
3003esac
68f2de6d 3004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 3005 (eval "$ac_compile") 2>conftest.er1
ad6254c5 3006 ac_status=$?
8a2fc586
AK
3007 grep -v '^ *+' conftest.er1 >conftest.err
3008 rm -f conftest.er1
3009 cat conftest.err >&5
68f2de6d 3010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
3011 (exit $ac_status); } && {
3012 test -z "$ac_c_werror_flag" ||
3013 test ! -s conftest.err
3014 } && test -s conftest.$ac_objext; then
7a197a62 3015 ac_cv_prog_cc_c89=$ac_arg
ad6254c5 3016else
68f2de6d 3017 echo "$as_me: failed program was:" >&5
ad6254c5
AK
3018sed 's/^/| /' conftest.$ac_ext >&5
3019
7a197a62 3020
ad6254c5 3021fi
7a197a62
AK
3022
3023rm -f core conftest.err conftest.$ac_objext
3024 test "x$ac_cv_prog_cc_c89" != "xno" && break
ad6254c5 3025done
7a197a62 3026rm -f conftest.$ac_ext
ad6254c5
AK
3027CC=$ac_save_CC
3028
3029fi
7a197a62
AK
3030# AC_CACHE_VAL
3031case "x$ac_cv_prog_cc_c89" in
3032 x)
68f2de6d
AK
3033 { echo "$as_me:$LINENO: result: none needed" >&5
3034echo "${ECHO_T}none needed" >&6; } ;;
7a197a62 3035 xno)
68f2de6d
AK
3036 { echo "$as_me:$LINENO: result: unsupported" >&5
3037echo "${ECHO_T}unsupported" >&6; } ;;
ad6254c5 3038 *)
7a197a62 3039 CC="$CC $ac_cv_prog_cc_c89"
68f2de6d
AK
3040 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3041echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
ad6254c5
AK
3042esac
3043
ad6254c5 3044
ad6254c5
AK
3045ac_ext=c
3046ac_cpp='$CPP $CPPFLAGS'
3047ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3048ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3049ac_compiler_gnu=$ac_cv_c_compiler_gnu
795ca3e5 3050
d0191583
JM
3051
3052
3053ac_ext=c
3054ac_cpp='$CPP $CPPFLAGS'
3055ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3056ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3057ac_compiler_gnu=$ac_cv_c_compiler_gnu
68f2de6d
AK
3058{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3059echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
d0191583
JM
3060# On Suns, sometimes $CPP names a directory.
3061if test -n "$CPP" && test -d "$CPP"; then
3062 CPP=
3063fi
3064if test -z "$CPP"; then
3065 if test "${ac_cv_prog_CPP+set}" = set; then
68f2de6d 3066 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 3067else
d0191583
JM
3068 # Double quotes because CPP needs to be expanded
3069 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3070 do
3071 ac_preproc_ok=false
3072for ac_c_preproc_warn_flag in '' yes
ad6254c5 3073do
d0191583
JM
3074 # Use a header file that comes with gcc, so configuring glibc
3075 # with a fresh cross-compiler works.
3076 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3077 # <limits.h> exists even on freestanding compilers.
3078 # On the NeXT, cc -E runs the code through the compiler's parser,
3079 # not just through cpp. "Syntax error" is here to catch this case.
3080 cat >conftest.$ac_ext <<_ACEOF
3081/* confdefs.h. */
3082_ACEOF
3083cat confdefs.h >>conftest.$ac_ext
3084cat >>conftest.$ac_ext <<_ACEOF
3085/* end confdefs.h. */
3086#ifdef __STDC__
3087# include <limits.h>
3088#else
3089# include <assert.h>
3090#endif
3091 Syntax error
3092_ACEOF
3093if { (ac_try="$ac_cpp conftest.$ac_ext"
3094case "(($ac_try" in
3095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3096 *) ac_try_echo=$ac_try;;
ad6254c5 3097esac
68f2de6d 3098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
d0191583
JM
3099 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3100 ac_status=$?
3101 grep -v '^ *+' conftest.er1 >conftest.err
3102 rm -f conftest.er1
3103 cat conftest.err >&5
68f2de6d 3104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3105 (exit $ac_status); } >/dev/null && {
3106 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3107 test ! -s conftest.err
3108 }; then
3109 :
3110else
68f2de6d 3111 echo "$as_me: failed program was:" >&5
d0191583 3112sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 3113
d0191583
JM
3114 # Broken: fails on valid input.
3115continue
795ca3e5 3116fi
795ca3e5 3117
d0191583 3118rm -f conftest.err conftest.$ac_ext
795ca3e5 3119
d0191583
JM
3120 # OK, works on sane cases. Now check whether nonexistent headers
3121 # can be detected and how.
3122 cat >conftest.$ac_ext <<_ACEOF
3123/* confdefs.h. */
3124_ACEOF
3125cat confdefs.h >>conftest.$ac_ext
3126cat >>conftest.$ac_ext <<_ACEOF
3127/* end confdefs.h. */
3128#include <ac_nonexistent.h>
3129_ACEOF
3130if { (ac_try="$ac_cpp conftest.$ac_ext"
3131case "(($ac_try" in
3132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3133 *) ac_try_echo=$ac_try;;
3134esac
68f2de6d 3135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
d0191583
JM
3136 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3137 ac_status=$?
3138 grep -v '^ *+' conftest.er1 >conftest.err
3139 rm -f conftest.er1
3140 cat conftest.err >&5
68f2de6d 3141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3142 (exit $ac_status); } >/dev/null && {
3143 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3144 test ! -s conftest.err
3145 }; then
3146 # Broken: success on invalid input.
3147continue
3148else
68f2de6d 3149 echo "$as_me: failed program was:" >&5
d0191583 3150sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 3151
d0191583
JM
3152 # Passes both tests.
3153ac_preproc_ok=:
3154break
3155fi
795ca3e5 3156
d0191583
JM
3157rm -f conftest.err conftest.$ac_ext
3158
3159done
3160# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3161rm -f conftest.err conftest.$ac_ext
3162if $ac_preproc_ok; then
3163 break
795ca3e5
AK
3164fi
3165
d0191583
JM
3166 done
3167 ac_cv_prog_CPP=$CPP
3168
3169fi
3170 CPP=$ac_cv_prog_CPP
795ca3e5 3171else
d0191583
JM
3172 ac_cv_prog_CPP=$CPP
3173fi
68f2de6d
AK
3174{ echo "$as_me:$LINENO: result: $CPP" >&5
3175echo "${ECHO_T}$CPP" >&6; }
d0191583
JM
3176ac_preproc_ok=false
3177for ac_c_preproc_warn_flag in '' yes
3178do
3179 # Use a header file that comes with gcc, so configuring glibc
3180 # with a fresh cross-compiler works.
3181 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3182 # <limits.h> exists even on freestanding compilers.
3183 # On the NeXT, cc -E runs the code through the compiler's parser,
3184 # not just through cpp. "Syntax error" is here to catch this case.
3185 cat >conftest.$ac_ext <<_ACEOF
3186/* confdefs.h. */
ad6254c5 3187_ACEOF
d0191583
JM
3188cat confdefs.h >>conftest.$ac_ext
3189cat >>conftest.$ac_ext <<_ACEOF
3190/* end confdefs.h. */
3191#ifdef __STDC__
3192# include <limits.h>
3193#else
3194# include <assert.h>
3195#endif
3196 Syntax error
3197_ACEOF
3198if { (ac_try="$ac_cpp conftest.$ac_ext"
3199case "(($ac_try" in
3200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3201 *) ac_try_echo=$ac_try;;
7a197a62 3202esac
68f2de6d 3203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
d0191583
JM
3204 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3205 ac_status=$?
3206 grep -v '^ *+' conftest.er1 >conftest.err
3207 rm -f conftest.er1
3208 cat conftest.err >&5
68f2de6d 3209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3210 (exit $ac_status); } >/dev/null && {
3211 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3212 test ! -s conftest.err
3213 }; then
3214 :
795ca3e5 3215else
68f2de6d 3216 echo "$as_me: failed program was:" >&5
d0191583
JM
3217sed 's/^/| /' conftest.$ac_ext >&5
3218
3219 # Broken: fails on valid input.
3220continue
795ca3e5
AK
3221fi
3222
d0191583
JM
3223rm -f conftest.err conftest.$ac_ext
3224
3225 # OK, works on sane cases. Now check whether nonexistent headers
3226 # can be detected and how.
3227 cat >conftest.$ac_ext <<_ACEOF
3228/* confdefs.h. */
3229_ACEOF
3230cat confdefs.h >>conftest.$ac_ext
3231cat >>conftest.$ac_ext <<_ACEOF
3232/* end confdefs.h. */
3233#include <ac_nonexistent.h>
3234_ACEOF
3235if { (ac_try="$ac_cpp conftest.$ac_ext"
3236case "(($ac_try" in
3237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3238 *) ac_try_echo=$ac_try;;
3239esac
68f2de6d 3240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
d0191583
JM
3241 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3242 ac_status=$?
3243 grep -v '^ *+' conftest.er1 >conftest.err
3244 rm -f conftest.er1
3245 cat conftest.err >&5
68f2de6d 3246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3247 (exit $ac_status); } >/dev/null && {
3248 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3249 test ! -s conftest.err
3250 }; then
3251 # Broken: success on invalid input.
3252continue
795ca3e5 3253else
68f2de6d 3254 echo "$as_me: failed program was:" >&5
d0191583 3255sed 's/^/| /' conftest.$ac_ext >&5
ad6254c5 3256
d0191583
JM
3257 # Passes both tests.
3258ac_preproc_ok=:
3259break
795ca3e5 3260fi
d0191583
JM
3261
3262rm -f conftest.err conftest.$ac_ext
3263
3264done
3265# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3266rm -f conftest.err conftest.$ac_ext
3267if $ac_preproc_ok; then
3268 :
8106cdd5 3269else
68f2de6d 3270 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
d0191583 3271See \`config.log' for more details." >&5
68f2de6d 3272echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
d0191583
JM
3273See \`config.log' for more details." >&2;}
3274 { (exit 1); exit 1; }; }
8106cdd5
AK
3275fi
3276
d0191583
JM
3277ac_ext=c
3278ac_cpp='$CPP $CPPFLAGS'
3279ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3280ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3281ac_compiler_gnu=$ac_cv_c_compiler_gnu
3282
7a197a62 3283
68f2de6d
AK
3284{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3285echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3286if test "${ac_cv_path_GREP+set}" = set; then
3287 echo $ECHO_N "(cached) $ECHO_C" >&6
3288else
3289 # Extract the first word of "grep ggrep" to use in msg output
3290if test -z "$GREP"; then
3291set dummy grep ggrep; ac_prog_name=$2
5556819a 3292if test "${ac_cv_path_GREP+set}" = set; then
68f2de6d 3293 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 3294else
d0191583 3295 ac_path_GREP_found=false
68f2de6d
AK
3296# Loop through the user's path and test for each of PROGNAME-LIST
3297as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
d0191583 3298for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
ad6254c5
AK
3299do
3300 IFS=$as_save_IFS
3301 test -z "$as_dir" && as_dir=.
d0191583 3302 for ac_prog in grep ggrep; do
68f2de6d
AK
3303 for ac_exec_ext in '' $ac_executable_extensions; do
3304 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3305 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3306 # Check for GNU ac_path_GREP and select it if it is found.
d0191583
JM
3307 # Check for GNU $ac_path_GREP
3308case `"$ac_path_GREP" --version 2>&1` in
3309*GNU*)
3310 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3311*)
3312 ac_count=0
68f2de6d 3313 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
d0191583
JM
3314 while :
3315 do
3316 cat "conftest.in" "conftest.in" >"conftest.tmp"
3317 mv "conftest.tmp" "conftest.in"
3318 cp "conftest.in" "conftest.nl"
68f2de6d 3319 echo 'GREP' >> "conftest.nl"
d0191583
JM
3320 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3321 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3322 ac_count=`expr $ac_count + 1`
3323 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3324 # Best one so far, save it but keep looking for a better one
3325 ac_cv_path_GREP="$ac_path_GREP"
3326 ac_path_GREP_max=$ac_count
3327 fi
3328 # 10*(2^10) chars as input seems more than enough
3329 test $ac_count -gt 10 && break
3330 done
3331 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3332esac
3333
68f2de6d
AK
3334
3335 $ac_path_GREP_found && break 3
d0191583 3336 done
ad6254c5 3337done
68f2de6d
AK
3338
3339done
7a197a62 3340IFS=$as_save_IFS
68f2de6d
AK
3341
3342
3343fi
3344
3345GREP="$ac_cv_path_GREP"
3346if test -z "$GREP"; then
3347 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3348echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
d0191583 3349 { (exit 1); exit 1; }; }
68f2de6d
AK
3350fi
3351
80992638 3352else
d0191583 3353 ac_cv_path_GREP=$GREP
8106cdd5 3354fi
8106cdd5 3355
68f2de6d 3356
80992638 3357fi
68f2de6d
AK
3358{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3359echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
d0191583 3360 GREP="$ac_cv_path_GREP"
795ca3e5 3361
d0191583 3362
68f2de6d
AK
3363{ echo "$as_me:$LINENO: checking for egrep" >&5
3364echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
d0191583 3365if test "${ac_cv_path_EGREP+set}" = set; then
68f2de6d 3366 echo $ECHO_N "(cached) $ECHO_C" >&6
8a2fc586 3367else
d0191583
JM
3368 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3369 then ac_cv_path_EGREP="$GREP -E"
3370 else
68f2de6d
AK
3371 # Extract the first word of "egrep" to use in msg output
3372if test -z "$EGREP"; then
3373set dummy egrep; ac_prog_name=$2
3374if test "${ac_cv_path_EGREP+set}" = set; then
3375 echo $ECHO_N "(cached) $ECHO_C" >&6
3376else
d0191583 3377 ac_path_EGREP_found=false
68f2de6d
AK
3378# Loop through the user's path and test for each of PROGNAME-LIST
3379as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
d0191583 3380for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8a2fc586
AK
3381do
3382 IFS=$as_save_IFS
3383 test -z "$as_dir" && as_dir=.
d0191583 3384 for ac_prog in egrep; do
68f2de6d
AK
3385 for ac_exec_ext in '' $ac_executable_extensions; do
3386 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3387 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3388 # Check for GNU ac_path_EGREP and select it if it is found.
d0191583
JM
3389 # Check for GNU $ac_path_EGREP
3390case `"$ac_path_EGREP" --version 2>&1` in
3391*GNU*)
3392 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3393*)
3394 ac_count=0
68f2de6d 3395 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
d0191583
JM
3396 while :
3397 do
3398 cat "conftest.in" "conftest.in" >"conftest.tmp"
3399 mv "conftest.tmp" "conftest.in"
3400 cp "conftest.in" "conftest.nl"
68f2de6d 3401 echo 'EGREP' >> "conftest.nl"
d0191583
JM
3402 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3403 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3404 ac_count=`expr $ac_count + 1`
3405 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3406 # Best one so far, save it but keep looking for a better one
3407 ac_cv_path_EGREP="$ac_path_EGREP"
3408 ac_path_EGREP_max=$ac_count
3409 fi
3410 # 10*(2^10) chars as input seems more than enough
3411 test $ac_count -gt 10 && break
3412 done
3413 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8a2fc586 3414esac
8a2fc586 3415
68f2de6d
AK
3416
3417 $ac_path_EGREP_found && break 3
d0191583 3418 done
8a2fc586 3419done
68f2de6d
AK
3420
3421done
7a197a62 3422IFS=$as_save_IFS
68f2de6d
AK
3423
3424
3425fi
3426
3427EGREP="$ac_cv_path_EGREP"
3428if test -z "$EGREP"; then
3429 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3430echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
d0191583 3431 { (exit 1); exit 1; }; }
68f2de6d
AK
3432fi
3433
d0191583
JM
3434else
3435 ac_cv_path_EGREP=$EGREP
3436fi
ad6254c5 3437
68f2de6d 3438
d0191583
JM
3439 fi
3440fi
68f2de6d
AK
3441{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3442echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
d0191583 3443 EGREP="$ac_cv_path_EGREP"
ad6254c5
AK
3444
3445
d0191583 3446if test $ac_cv_c_compiler_gnu = yes; then
68f2de6d
AK
3447 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3448echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
d0191583 3449if test "${ac_cv_prog_gcc_traditional+set}" = set; then
68f2de6d 3450 echo $ECHO_N "(cached) $ECHO_C" >&6
8106cdd5 3451else
d0191583 3452 ac_pattern="Autoconf.*'x'"
ad6254c5 3453 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3454/* confdefs.h. */
3455_ACEOF
3456cat confdefs.h >>conftest.$ac_ext
3457cat >>conftest.$ac_ext <<_ACEOF
3458/* end confdefs.h. */
d0191583
JM
3459#include <sgtty.h>
3460Autoconf TIOCGETP
ad6254c5 3461_ACEOF
d0191583
JM
3462if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3463 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3464 ac_cv_prog_gcc_traditional=yes
8106cdd5 3465else
d0191583 3466 ac_cv_prog_gcc_traditional=no
80992638 3467fi
d0191583 3468rm -f conftest*
ad6254c5 3469
8106cdd5 3470
d0191583
JM
3471 if test $ac_cv_prog_gcc_traditional = no; then
3472 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3473/* confdefs.h. */
3474_ACEOF
3475cat confdefs.h >>conftest.$ac_ext
3476cat >>conftest.$ac_ext <<_ACEOF
3477/* end confdefs.h. */
d0191583
JM
3478#include <termio.h>
3479Autoconf TCGETA
ad6254c5 3480_ACEOF
d0191583
JM
3481if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3482 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3483 ac_cv_prog_gcc_traditional=yes
7a197a62 3484fi
d0191583 3485rm -f conftest*
795ca3e5 3486
d0191583 3487 fi
795ca3e5 3488fi
68f2de6d
AK
3489{ echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3490echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
d0191583
JM
3491 if test $ac_cv_prog_gcc_traditional = yes; then
3492 CC="$CC -traditional"
3493 fi
795ca3e5
AK
3494fi
3495
d0191583
JM
3496# Find a good install program. We prefer a C program (faster),
3497# so one script is as good as another. But avoid the broken or
3498# incompatible versions:
3499# SysV /etc/install, /usr/sbin/install
3500# SunOS /usr/etc/install
3501# IRIX /sbin/install
3502# AIX /bin/install
3503# AmigaOS /C/install, which installs bootblocks on floppy discs
3504# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3505# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3506# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3507# OS/2's system install, which has a completely different semantic
3508# ./install, which can be erroneously created by make from ./install.sh.
68f2de6d
AK
3509{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3510echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
d0191583
JM
3511if test -z "$INSTALL"; then
3512if test "${ac_cv_path_install+set}" = set; then
68f2de6d 3513 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 3514else
d0191583
JM
3515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3516for as_dir in $PATH
3517do
3518 IFS=$as_save_IFS
3519 test -z "$as_dir" && as_dir=.
3520 # Account for people who put trailing slashes in PATH elements.
3521case $as_dir/ in
3522 ./ | .// | /cC/* | \
3523 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3524 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3525 /usr/ucb/* ) ;;
3526 *)
3527 # OSF1 and SCO ODT 3.0 have their own names for install.
3528 # Don't use installbsd from OSF since it installs stuff as root
3529 # by default.
3530 for ac_prog in ginstall scoinst install; do
3531 for ac_exec_ext in '' $ac_executable_extensions; do
3532 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3533 if test $ac_prog = install &&
3534 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3535 # AIX install. It has an incompatible calling convention.
3536 :
3537 elif test $ac_prog = install &&
3538 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3539 # program-specific install script used by HP pwplus--don't use.
3540 :
3541 else
68f2de6d
AK
3542 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3543 break 3
d0191583
JM
3544 fi
3545 fi
3546 done
3547 done
3548 ;;
3549esac
3550done
3551IFS=$as_save_IFS
80992638 3552
d0191583
JM
3553
3554fi
3555 if test "${ac_cv_path_install+set}" = set; then
3556 INSTALL=$ac_cv_path_install
7a197a62 3557 else
d0191583
JM
3558 # As a last resort, use the slow shell script. Don't cache a
3559 # value for INSTALL within a source directory, because that will
3560 # break other packages using the cache if that directory is
3561 # removed, or if the value is a relative name.
3562 INSTALL=$ac_install_sh
7a197a62 3563 fi
d0191583 3564fi
68f2de6d
AK
3565{ echo "$as_me:$LINENO: result: $INSTALL" >&5
3566echo "${ECHO_T}$INSTALL" >&6; }
ad6254c5 3567
d0191583
JM
3568# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3569# It thinks the first close brace ends the variable substitution.
3570test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
ad6254c5 3571
d0191583 3572test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
80992638 3573
d0191583
JM
3574test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3575
68f2de6d
AK
3576{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
3577echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
d0191583
JM
3578LN_S=$as_ln_s
3579if test "$LN_S" = "ln -s"; then
68f2de6d
AK
3580 { echo "$as_me:$LINENO: result: yes" >&5
3581echo "${ECHO_T}yes" >&6; }
d0191583 3582else
68f2de6d
AK
3583 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3584echo "${ECHO_T}no, using $LN_S" >&6; }
795ca3e5 3585fi
d0191583 3586
68f2de6d
AK
3587{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3588echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
3589set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
d0191583 3590if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 3591 echo $ECHO_N "(cached) $ECHO_C" >&6
7a197a62 3592else
d0191583
JM
3593 cat >conftest.make <<\_ACEOF
3594SHELL = /bin/sh
3595all:
3596 @echo '@@@%%%=$(MAKE)=@@@%%%'
3597_ACEOF
3598# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3599case `${MAKE-make} -f conftest.make 2>/dev/null` in
3600 *@@@%%%=?*=@@@%%%*)
3601 eval ac_cv_prog_make_${ac_make}_set=yes;;
3602 *)
3603 eval ac_cv_prog_make_${ac_make}_set=no;;
3604esac
3605rm -f conftest.make
ad6254c5 3606fi
d0191583 3607if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
68f2de6d
AK
3608 { echo "$as_me:$LINENO: result: yes" >&5
3609echo "${ECHO_T}yes" >&6; }
d0191583
JM
3610 SET_MAKE=
3611else
68f2de6d
AK
3612 { echo "$as_me:$LINENO: result: no" >&5
3613echo "${ECHO_T}no" >&6; }
d0191583 3614 SET_MAKE="MAKE=${MAKE-make}"
795ca3e5 3615fi
8106cdd5 3616
68f2de6d
AK
3617{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
3618echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
5556819a
AK
3619if test -z "$MKDIR_P"; then
3620 if test "${ac_cv_path_mkdir+set}" = set; then
68f2de6d 3621 echo $ECHO_N "(cached) $ECHO_C" >&6
5556819a
AK
3622else
3623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3624for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3625do
3626 IFS=$as_save_IFS
3627 test -z "$as_dir" && as_dir=.
3628 for ac_prog in mkdir gmkdir; do
3629 for ac_exec_ext in '' $ac_executable_extensions; do
3630 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3631 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3632 'mkdir (GNU coreutils) '* | \
3633 'mkdir (coreutils) '* | \
3634 'mkdir (fileutils) '4.1*)
3635 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3636 break 3;;
3637 esac
3638 done
3639 done
3640done
3641IFS=$as_save_IFS
3642
3643fi
3644
3645 if test "${ac_cv_path_mkdir+set}" = set; then
3646 MKDIR_P="$ac_cv_path_mkdir -p"
3647 else
3648 # As a last resort, use the slow shell script. Don't cache a
3649 # value for MKDIR_P within a source directory, because that will
3650 # break other packages using the cache if that directory is
3651 # removed, or if the value is a relative name.
3652 test -d ./--version && rmdir ./--version
3653 MKDIR_P="$ac_install_sh -d"
3654 fi
3655fi
68f2de6d
AK
3656{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
3657echo "${ECHO_T}$MKDIR_P" >&6; }
5556819a 3658
d0191583
JM
3659if test -n "$ac_tool_prefix"; then
3660 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3661set dummy ${ac_tool_prefix}ranlib; ac_word=$2
68f2de6d
AK
3662{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3663echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d0191583 3664if test "${ac_cv_prog_RANLIB+set}" = set; then
68f2de6d 3665 echo $ECHO_N "(cached) $ECHO_C" >&6
d0191583
JM
3666else
3667 if test -n "$RANLIB"; then
3668 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3669else
3670as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3671for as_dir in $PATH
3672do
3673 IFS=$as_save_IFS
3674 test -z "$as_dir" && as_dir=.
3675 for ac_exec_ext in '' $ac_executable_extensions; do
3676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3677 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
68f2de6d 3678 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
3679 break 2
3680 fi
3681done
3682done
3683IFS=$as_save_IFS
8106cdd5 3684
795ca3e5 3685fi
d0191583
JM
3686fi
3687RANLIB=$ac_cv_prog_RANLIB
3688if test -n "$RANLIB"; then
68f2de6d
AK
3689 { echo "$as_me:$LINENO: result: $RANLIB" >&5
3690echo "${ECHO_T}$RANLIB" >&6; }
d0191583 3691else
68f2de6d
AK
3692 { echo "$as_me:$LINENO: result: no" >&5
3693echo "${ECHO_T}no" >&6; }
d0191583
JM
3694fi
3695
8106cdd5 3696
ad6254c5 3697fi
d0191583
JM
3698if test -z "$ac_cv_prog_RANLIB"; then
3699 ac_ct_RANLIB=$RANLIB
3700 # Extract the first word of "ranlib", so it can be a program name with args.
3701set dummy ranlib; ac_word=$2
68f2de6d
AK
3702{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3703echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d0191583 3704if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
68f2de6d 3705 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 3706else
d0191583
JM
3707 if test -n "$ac_ct_RANLIB"; then
3708 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3709else
3710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3711for as_dir in $PATH
8106cdd5 3712do
d0191583
JM
3713 IFS=$as_save_IFS
3714 test -z "$as_dir" && as_dir=.
3715 for ac_exec_ext in '' $ac_executable_extensions; do
3716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3717 ac_cv_prog_ac_ct_RANLIB="ranlib"
68f2de6d 3718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
3719 break 2
3720 fi
3721done
3722done
3723IFS=$as_save_IFS
3724
3725fi
3726fi
3727ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3728if test -n "$ac_ct_RANLIB"; then
68f2de6d
AK
3729 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3730echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
ad6254c5 3731else
68f2de6d
AK
3732 { echo "$as_me:$LINENO: result: no" >&5
3733echo "${ECHO_T}no" >&6; }
d0191583 3734fi
ad6254c5 3735
d0191583
JM
3736 if test "x$ac_ct_RANLIB" = x; then
3737 RANLIB=":"
3738 else
3739 case $cross_compiling:$ac_tool_warned in
3740yes:)
68f2de6d 3741{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
d0191583
JM
3742whose name does not start with the host triplet. If you think this
3743configuration is useful to you, please write to autoconf@gnu.org." >&5
68f2de6d 3744echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
d0191583
JM
3745whose name does not start with the host triplet. If you think this
3746configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3747ac_tool_warned=yes ;;
3748esac
3749 RANLIB=$ac_ct_RANLIB
3750 fi
3751else
3752 RANLIB="$ac_cv_prog_RANLIB"
ad6254c5 3753fi
7a197a62 3754
d0191583
JM
3755# Extract the first word of "cflow", so it can be a program name with args.
3756set dummy cflow; ac_word=$2
68f2de6d
AK
3757{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3758echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d0191583 3759if test "${ac_cv_path_CFLOW_CMD+set}" = set; then
68f2de6d 3760 echo $ECHO_N "(cached) $ECHO_C" >&6
d0191583
JM
3761else
3762 case $CFLOW_CMD in
3763 [\\/]* | ?:[\\/]*)
3764 ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path.
3765 ;;
3766 *)
3767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3768for as_dir in $PATH
3769do
3770 IFS=$as_save_IFS
3771 test -z "$as_dir" && as_dir=.
3772 for ac_exec_ext in '' $ac_executable_extensions; do
3773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3774 ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext"
68f2de6d 3775 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
3776 break 2
3777 fi
3778done
3779done
3780IFS=$as_save_IFS
ad6254c5 3781
d0191583 3782 ;;
7a197a62 3783esac
d0191583
JM
3784fi
3785CFLOW_CMD=$ac_cv_path_CFLOW_CMD
3786if test -n "$CFLOW_CMD"; then
68f2de6d
AK
3787 { echo "$as_me:$LINENO: result: $CFLOW_CMD" >&5
3788echo "${ECHO_T}$CFLOW_CMD" >&6; }
80992638 3789else
68f2de6d
AK
3790 { echo "$as_me:$LINENO: result: no" >&5
3791echo "${ECHO_T}no" >&6; }
795ca3e5 3792fi
7a197a62 3793
ad6254c5 3794
d0191583
JM
3795# Extract the first word of "cscope", so it can be a program name with args.
3796set dummy cscope; ac_word=$2
68f2de6d
AK
3797{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3798echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d0191583 3799if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then
68f2de6d 3800 echo $ECHO_N "(cached) $ECHO_C" >&6
d0191583
JM
3801else
3802 case $CSCOPE_CMD in
3803 [\\/]* | ?:[\\/]*)
3804 ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path.
3805 ;;
3806 *)
3807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3808for as_dir in $PATH
3809do
3810 IFS=$as_save_IFS
3811 test -z "$as_dir" && as_dir=.
3812 for ac_exec_ext in '' $ac_executable_extensions; do
3813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3814 ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext"
68f2de6d 3815 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
3816 break 2
3817 fi
795ca3e5 3818done
d0191583
JM
3819done
3820IFS=$as_save_IFS
795ca3e5 3821
d0191583
JM
3822 ;;
3823esac
ad6254c5 3824fi
d0191583
JM
3825CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD
3826if test -n "$CSCOPE_CMD"; then
68f2de6d
AK
3827 { echo "$as_me:$LINENO: result: $CSCOPE_CMD" >&5
3828echo "${ECHO_T}$CSCOPE_CMD" >&6; }
795ca3e5 3829else
68f2de6d
AK
3830 { echo "$as_me:$LINENO: result: no" >&5
3831echo "${ECHO_T}no" >&6; }
795ca3e5 3832fi
ad6254c5 3833
7a197a62 3834
ad6254c5 3835
d0191583
JM
3836################################################################################
3837
3838
3839
3840
3841
3842ac_header_dirent=no
3843for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
68f2de6d
AK
3844 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
3845{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
3846echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
d0191583 3847if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 3848 echo $ECHO_N "(cached) $ECHO_C" >&6
d0191583 3849else
ad6254c5 3850 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3851/* confdefs.h. */
3852_ACEOF
3853cat confdefs.h >>conftest.$ac_ext
3854cat >>conftest.$ac_ext <<_ACEOF
3855/* end confdefs.h. */
d0191583
JM
3856#include <sys/types.h>
3857#include <$ac_hdr>
3858
3859int
3860main ()
3861{
3862if ((DIR *) 0)
3863return 0;
3864 ;
3865 return 0;
3866}
ad6254c5 3867_ACEOF
d0191583
JM
3868rm -f conftest.$ac_objext
3869if { (ac_try="$ac_compile"
7a197a62
AK
3870case "(($ac_try" in
3871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3872 *) ac_try_echo=$ac_try;;
3873esac
68f2de6d 3874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
d0191583 3875 (eval "$ac_compile") 2>conftest.er1
ad6254c5
AK
3876 ac_status=$?
3877 grep -v '^ *+' conftest.er1 >conftest.err
3878 rm -f conftest.er1
3879 cat conftest.err >&5
68f2de6d 3880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3881 (exit $ac_status); } && {
3882 test -z "$ac_c_werror_flag" ||
25fbec5b 3883 test ! -s conftest.err
d0191583
JM
3884 } && test -s conftest.$ac_objext; then
3885 eval "$as_ac_Header=yes"
ad6254c5 3886else
68f2de6d 3887 echo "$as_me: failed program was:" >&5
ad6254c5 3888sed 's/^/| /' conftest.$ac_ext >&5
8106cdd5 3889
d0191583 3890 eval "$as_ac_Header=no"
795ca3e5 3891fi
7a197a62 3892
d0191583 3893rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
795ca3e5 3894fi
68f2de6d
AK
3895ac_res=`eval echo '${'$as_ac_Header'}'`
3896 { echo "$as_me:$LINENO: result: $ac_res" >&5
3897echo "${ECHO_T}$ac_res" >&6; }
3898if test `eval echo '${'$as_ac_Header'}'` = yes; then
d0191583 3899 cat >>confdefs.h <<_ACEOF
68f2de6d 3900#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
d0191583 3901_ACEOF
795ca3e5 3902
d0191583
JM
3903ac_header_dirent=$ac_hdr; break
3904fi
ad6254c5 3905
d0191583
JM
3906done
3907# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3908if test $ac_header_dirent = dirent.h; then
68f2de6d
AK
3909 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
3910echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
d0191583 3911if test "${ac_cv_search_opendir+set}" = set; then
68f2de6d 3912 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 3913else
d0191583
JM
3914 ac_func_search_save_LIBS=$LIBS
3915cat >conftest.$ac_ext <<_ACEOF
3916/* confdefs.h. */
3917_ACEOF
3918cat confdefs.h >>conftest.$ac_ext
3919cat >>conftest.$ac_ext <<_ACEOF
3920/* end confdefs.h. */
ad6254c5 3921
d0191583
JM
3922/* Override any GCC internal prototype to avoid an error.
3923 Use char because int might match the return type of a GCC
3924 builtin and then its argument prototype would still apply. */
3925#ifdef __cplusplus
3926extern "C"
3927#endif
3928char opendir ();
3929int
3930main ()
3931{
3932return opendir ();
3933 ;
3934 return 0;
3935}
3936_ACEOF
3937for ac_lib in '' dir; do
3938 if test -z "$ac_lib"; then
3939 ac_res="none required"
3940 else
3941 ac_res=-l$ac_lib
3942 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3943 fi
3944 rm -f conftest.$ac_objext conftest$ac_exeext
3945if { (ac_try="$ac_link"
3946case "(($ac_try" in
3947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3948 *) ac_try_echo=$ac_try;;
3949esac
68f2de6d 3950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
d0191583
JM
3951 (eval "$ac_link") 2>conftest.er1
3952 ac_status=$?
3953 grep -v '^ *+' conftest.er1 >conftest.err
3954 rm -f conftest.er1
3955 cat conftest.err >&5
68f2de6d 3956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3957 (exit $ac_status); } && {
3958 test -z "$ac_c_werror_flag" ||
3959 test ! -s conftest.err
68f2de6d
AK
3960 } && test -s conftest$ac_exeext &&
3961 $as_test_x conftest$ac_exeext; then
d0191583
JM
3962 ac_cv_search_opendir=$ac_res
3963else
68f2de6d 3964 echo "$as_me: failed program was:" >&5
d0191583 3965sed 's/^/| /' conftest.$ac_ext >&5
ad6254c5 3966
ad6254c5 3967
795ca3e5 3968fi
ad6254c5 3969
d0191583
JM
3970rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3971 conftest$ac_exeext
3972 if test "${ac_cv_search_opendir+set}" = set; then
3973 break
7a197a62 3974fi
d0191583
JM
3975done
3976if test "${ac_cv_search_opendir+set}" = set; then
3977 :
7a197a62 3978else
d0191583 3979 ac_cv_search_opendir=no
7a197a62 3980fi
d0191583
JM
3981rm conftest.$ac_ext
3982LIBS=$ac_func_search_save_LIBS
7a197a62 3983fi
68f2de6d
AK
3984{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3985echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
d0191583
JM
3986ac_res=$ac_cv_search_opendir
3987if test "$ac_res" != no; then
3988 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7a197a62 3989
d0191583 3990fi
7a197a62 3991
7a197a62 3992else
68f2de6d
AK
3993 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
3994echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
d0191583 3995if test "${ac_cv_search_opendir+set}" = set; then
68f2de6d 3996 echo $ECHO_N "(cached) $ECHO_C" >&6
7a197a62 3997else
d0191583
JM
3998 ac_func_search_save_LIBS=$LIBS
3999cat >conftest.$ac_ext <<_ACEOF
4000/* confdefs.h. */
4001_ACEOF
4002cat confdefs.h >>conftest.$ac_ext
4003cat >>conftest.$ac_ext <<_ACEOF
4004/* end confdefs.h. */
7a197a62 4005
d0191583
JM
4006/* Override any GCC internal prototype to avoid an error.
4007 Use char because int might match the return type of a GCC
4008 builtin and then its argument prototype would still apply. */
4009#ifdef __cplusplus
4010extern "C"
4011#endif
4012char opendir ();
4013int
4014main ()
4015{
4016return opendir ();
4017 ;
4018 return 0;
4019}
4020_ACEOF
4021for ac_lib in '' x; do
4022 if test -z "$ac_lib"; then
4023 ac_res="none required"
4024 else
4025 ac_res=-l$ac_lib
4026 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4027 fi
4028 rm -f conftest.$ac_objext conftest$ac_exeext
4029if { (ac_try="$ac_link"
4030case "(($ac_try" in
4031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4032 *) ac_try_echo=$ac_try;;
4033esac
68f2de6d 4034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
d0191583
JM
4035 (eval "$ac_link") 2>conftest.er1
4036 ac_status=$?
4037 grep -v '^ *+' conftest.er1 >conftest.err
4038 rm -f conftest.er1
4039 cat conftest.err >&5
68f2de6d 4040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4041 (exit $ac_status); } && {
4042 test -z "$ac_c_werror_flag" ||
4043 test ! -s conftest.err
68f2de6d
AK
4044 } && test -s conftest$ac_exeext &&
4045 $as_test_x conftest$ac_exeext; then
d0191583
JM
4046 ac_cv_search_opendir=$ac_res
4047else
68f2de6d 4048 echo "$as_me: failed program was:" >&5
d0191583 4049sed 's/^/| /' conftest.$ac_ext >&5
7a197a62
AK
4050
4051
4052fi
4053
d0191583
JM
4054rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4055 conftest$ac_exeext
4056 if test "${ac_cv_search_opendir+set}" = set; then
4057 break
7a197a62 4058fi
d0191583
JM
4059done
4060if test "${ac_cv_search_opendir+set}" = set; then
4061 :
7a197a62 4062else
d0191583 4063 ac_cv_search_opendir=no
7a197a62 4064fi
d0191583
JM
4065rm conftest.$ac_ext
4066LIBS=$ac_func_search_save_LIBS
4067fi
68f2de6d
AK
4068{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4069echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
d0191583
JM
4070ac_res=$ac_cv_search_opendir
4071if test "$ac_res" != no; then
4072 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7a197a62 4073
7a197a62 4074fi
7a197a62 4075
d0191583 4076fi
7a197a62 4077
68f2de6d
AK
4078{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4079echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7a197a62 4080if test "${ac_cv_header_stdc+set}" = set; then
68f2de6d 4081 echo $ECHO_N "(cached) $ECHO_C" >&6
7a197a62
AK
4082else
4083 cat >conftest.$ac_ext <<_ACEOF
4084/* confdefs.h. */
4085_ACEOF
4086cat confdefs.h >>conftest.$ac_ext
4087cat >>conftest.$ac_ext <<_ACEOF
4088/* end confdefs.h. */
4089#include <stdlib.h>
4090#include <stdarg.h>
4091#include <string.h>
4092#include <float.h>
4093
4094int
4095main ()
4096{
4097
4098 ;
4099 return 0;
4100}
4101_ACEOF
4102rm -f conftest.$ac_objext
4103if { (ac_try="$ac_compile"
4104case "(($ac_try" in
4105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4106 *) ac_try_echo=$ac_try;;
4107esac
68f2de6d 4108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62
AK
4109 (eval "$ac_compile") 2>conftest.er1
4110 ac_status=$?
4111 grep -v '^ *+' conftest.er1 >conftest.err
4112 rm -f conftest.er1
4113 cat conftest.err >&5
68f2de6d 4114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4115 (exit $ac_status); } && {
4116 test -z "$ac_c_werror_flag" ||
4117 test ! -s conftest.err
4118 } && test -s conftest.$ac_objext; then
7a197a62
AK
4119 ac_cv_header_stdc=yes
4120else
68f2de6d 4121 echo "$as_me: failed program was:" >&5
7a197a62
AK
4122sed 's/^/| /' conftest.$ac_ext >&5
4123
4124 ac_cv_header_stdc=no
4125fi
4126
4127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4128
4129if test $ac_cv_header_stdc = yes; then
4130 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
ad6254c5 4131 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4132/* confdefs.h. */
4133_ACEOF
4134cat confdefs.h >>conftest.$ac_ext
4135cat >>conftest.$ac_ext <<_ACEOF
4136/* end confdefs.h. */
4137#include <string.h>
8106cdd5 4138
ad6254c5
AK
4139_ACEOF
4140if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4141 $EGREP "memchr" >/dev/null 2>&1; then
4142 :
4143else
4144 ac_cv_header_stdc=no
80992638 4145fi
ad6254c5 4146rm -f conftest*
795ca3e5
AK
4147
4148fi
4149
ad6254c5
AK
4150if test $ac_cv_header_stdc = yes; then
4151 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4152 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4153/* confdefs.h. */
4154_ACEOF
4155cat confdefs.h >>conftest.$ac_ext
4156cat >>conftest.$ac_ext <<_ACEOF
4157/* end confdefs.h. */
80992638 4158#include <stdlib.h>
ad6254c5
AK
4159
4160_ACEOF
80992638 4161if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ad6254c5
AK
4162 $EGREP "free" >/dev/null 2>&1; then
4163 :
795ca3e5 4164else
ad6254c5 4165 ac_cv_header_stdc=no
795ca3e5 4166fi
80992638 4167rm -f conftest*
8106cdd5 4168
795ca3e5
AK
4169fi
4170
ad6254c5
AK
4171if test $ac_cv_header_stdc = yes; then
4172 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4173 if test "$cross_compiling" = yes; then
4174 :
795ca3e5 4175else
ad6254c5 4176 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4177/* confdefs.h. */
4178_ACEOF
4179cat confdefs.h >>conftest.$ac_ext
4180cat >>conftest.$ac_ext <<_ACEOF
4181/* end confdefs.h. */
4182#include <ctype.h>
7a197a62 4183#include <stdlib.h>
ad6254c5
AK
4184#if ((' ' & 0x0FF) == 0x020)
4185# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4186# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4187#else
4188# define ISLOWER(c) \
8a2fc586
AK
4189 (('a' <= (c) && (c) <= 'i') \
4190 || ('j' <= (c) && (c) <= 'r') \
4191 || ('s' <= (c) && (c) <= 'z'))
ad6254c5 4192# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
80992638 4193#endif
ad6254c5
AK
4194
4195#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4196int
4197main ()
4198{
4199 int i;
4200 for (i = 0; i < 256; i++)
4201 if (XOR (islower (i), ISLOWER (i))
8a2fc586 4202 || toupper (i) != TOUPPER (i))
7a197a62
AK
4203 return 2;
4204 return 0;
ad6254c5
AK
4205}
4206_ACEOF
4207rm -f conftest$ac_exeext
7a197a62
AK
4208if { (ac_try="$ac_link"
4209case "(($ac_try" in
4210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4211 *) ac_try_echo=$ac_try;;
4212esac
68f2de6d 4213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 4214 (eval "$ac_link") 2>&5
ad6254c5 4215 ac_status=$?
68f2de6d 4216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 4217 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
4218 { (case "(($ac_try" in
4219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4220 *) ac_try_echo=$ac_try;;
4221esac
68f2de6d 4222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 4223 (eval "$ac_try") 2>&5
ad6254c5 4224 ac_status=$?
68f2de6d 4225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
4226 (exit $ac_status); }; }; then
4227 :
795ca3e5 4228else
68f2de6d
AK
4229 echo "$as_me: program exited with status $ac_status" >&5
4230echo "$as_me: failed program was:" >&5
ad6254c5 4231sed 's/^/| /' conftest.$ac_ext >&5
8106cdd5 4232
ad6254c5
AK
4233( exit $ac_status )
4234ac_cv_header_stdc=no
80992638 4235fi
7a197a62 4236rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 4237fi
7a197a62
AK
4238
4239
ad6254c5
AK
4240fi
4241fi
68f2de6d
AK
4242{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4243echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
ad6254c5
AK
4244if test $ac_cv_header_stdc = yes; then
4245
4246cat >>confdefs.h <<\_ACEOF
4247#define STDC_HEADERS 1
4248_ACEOF
795ca3e5
AK
4249
4250fi
4251
68f2de6d
AK
4252{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
4253echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
ad6254c5 4254if test "${ac_cv_header_sys_wait_h+set}" = set; then
68f2de6d 4255 echo $ECHO_N "(cached) $ECHO_C" >&6
8106cdd5 4256else
ad6254c5 4257 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4258/* confdefs.h. */
4259_ACEOF
4260cat confdefs.h >>conftest.$ac_ext
4261cat >>conftest.$ac_ext <<_ACEOF
4262/* end confdefs.h. */
80992638 4263#include <sys/types.h>
ad6254c5
AK
4264#include <sys/wait.h>
4265#ifndef WEXITSTATUS
7a197a62 4266# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
ad6254c5
AK
4267#endif
4268#ifndef WIFEXITED
4269# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4270#endif
4271
4272int
4273main ()
4274{
4275 int s;
4276 wait (&s);
4277 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4278 ;
4279 return 0;
4280}
4281_ACEOF
4282rm -f conftest.$ac_objext
7a197a62
AK
4283if { (ac_try="$ac_compile"
4284case "(($ac_try" in
4285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4286 *) ac_try_echo=$ac_try;;
4287esac
68f2de6d 4288eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 4289 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4290 ac_status=$?
8a2fc586
AK
4291 grep -v '^ *+' conftest.er1 >conftest.err
4292 rm -f conftest.er1
4293 cat conftest.err >&5
68f2de6d 4294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4295 (exit $ac_status); } && {
4296 test -z "$ac_c_werror_flag" ||
4297 test ! -s conftest.err
4298 } && test -s conftest.$ac_objext; then
ad6254c5
AK
4299 ac_cv_header_sys_wait_h=yes
4300else
68f2de6d 4301 echo "$as_me: failed program was:" >&5
ad6254c5
AK
4302sed 's/^/| /' conftest.$ac_ext >&5
4303
7a197a62 4304 ac_cv_header_sys_wait_h=no
8106cdd5 4305fi
7a197a62
AK
4306
4307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
795ca3e5 4308fi
68f2de6d
AK
4309{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
4310echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
ad6254c5 4311if test $ac_cv_header_sys_wait_h = yes; then
8106cdd5 4312
ad6254c5
AK
4313cat >>confdefs.h <<\_ACEOF
4314#define HAVE_SYS_WAIT_H 1
4315_ACEOF
795ca3e5
AK
4316
4317fi
4318
68f2de6d
AK
4319{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4320echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
ad6254c5 4321if test "${ac_cv_header_time+set}" = set; then
68f2de6d 4322 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 4323else
ad6254c5 4324 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4325/* confdefs.h. */
4326_ACEOF
4327cat confdefs.h >>conftest.$ac_ext
4328cat >>conftest.$ac_ext <<_ACEOF
4329/* end confdefs.h. */
795ca3e5
AK
4330#include <sys/types.h>
4331#include <sys/time.h>
4332#include <time.h>
ad6254c5
AK
4333
4334int
4335main ()
4336{
4337if ((struct tm *) 0)
4338return 0;
4339 ;
4340 return 0;
4341}
4342_ACEOF
4343rm -f conftest.$ac_objext
7a197a62
AK
4344if { (ac_try="$ac_compile"
4345case "(($ac_try" in
4346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4347 *) ac_try_echo=$ac_try;;
4348esac
68f2de6d 4349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 4350 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4351 ac_status=$?
8a2fc586
AK
4352 grep -v '^ *+' conftest.er1 >conftest.err
4353 rm -f conftest.er1
4354 cat conftest.err >&5
68f2de6d 4355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4356 (exit $ac_status); } && {
4357 test -z "$ac_c_werror_flag" ||
4358 test ! -s conftest.err
4359 } && test -s conftest.$ac_objext; then
795ca3e5
AK
4360 ac_cv_header_time=yes
4361else
68f2de6d 4362 echo "$as_me: failed program was:" >&5
ad6254c5
AK
4363sed 's/^/| /' conftest.$ac_ext >&5
4364
7a197a62 4365 ac_cv_header_time=no
795ca3e5 4366fi
7a197a62
AK
4367
4368rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
795ca3e5 4369fi
68f2de6d
AK
4370{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4371echo "${ECHO_T}$ac_cv_header_time" >&6; }
80992638 4372if test $ac_cv_header_time = yes; then
ad6254c5
AK
4373
4374cat >>confdefs.h <<\_ACEOF
795ca3e5 4375#define TIME_WITH_SYS_TIME 1
ad6254c5 4376_ACEOF
b896caa1 4377
8106cdd5 4378fi
b896caa1 4379
b896caa1 4380
d0191583
JM
4381# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4392 inttypes.h stdint.h unistd.h
4393do
68f2de6d
AK
4394as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4395{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4396echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
d0191583 4397if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 4398 echo $ECHO_N "(cached) $ECHO_C" >&6
d0191583
JM
4399else
4400 cat >conftest.$ac_ext <<_ACEOF
4401/* confdefs.h. */
4402_ACEOF
4403cat confdefs.h >>conftest.$ac_ext
4404cat >>conftest.$ac_ext <<_ACEOF
4405/* end confdefs.h. */
4406$ac_includes_default
4407
4408#include <$ac_header>
4409_ACEOF
4410rm -f conftest.$ac_objext
4411if { (ac_try="$ac_compile"
4412case "(($ac_try" in
4413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4414 *) ac_try_echo=$ac_try;;
4415esac
68f2de6d 4416eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
d0191583
JM
4417 (eval "$ac_compile") 2>conftest.er1
4418 ac_status=$?
4419 grep -v '^ *+' conftest.er1 >conftest.err
4420 rm -f conftest.er1
4421 cat conftest.err >&5
68f2de6d 4422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4423 (exit $ac_status); } && {
4424 test -z "$ac_c_werror_flag" ||
4425 test ! -s conftest.err
4426 } && test -s conftest.$ac_objext; then
4427 eval "$as_ac_Header=yes"
4428else
68f2de6d 4429 echo "$as_me: failed program was:" >&5
d0191583
JM
4430sed 's/^/| /' conftest.$ac_ext >&5
4431
4432 eval "$as_ac_Header=no"
4433fi
4434
4435rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4436fi
68f2de6d
AK
4437ac_res=`eval echo '${'$as_ac_Header'}'`
4438 { echo "$as_me:$LINENO: result: $ac_res" >&5
4439echo "${ECHO_T}$ac_res" >&6; }
4440if test `eval echo '${'$as_ac_Header'}'` = yes; then
d0191583 4441 cat >>confdefs.h <<_ACEOF
68f2de6d 4442#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
d0191583
JM
4443_ACEOF
4444
4445fi
4446
4447done
4448
b896caa1 4449
b896caa1
AK
4450
4451
795ca3e5 4452
8106cdd5 4453
80992638 4454
795ca3e5 4455
a38df97f 4456
80992638 4457
d0191583
JM
4458
4459
4460
4461
4462
4463for ac_header in locale.h stddef.h syslog.h sys/file.h sys/time.h assert.h \
4464 libgen.h signal.h sys/mman.h sys/resource.h sys/utsname.h sys/wait.h time.h
ad6254c5 4465do
68f2de6d 4466as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
d0191583 4467if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d
AK
4468 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4469echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 4470if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 4471 echo $ECHO_N "(cached) $ECHO_C" >&6
d0191583 4472fi
68f2de6d
AK
4473ac_res=`eval echo '${'$as_ac_Header'}'`
4474 { echo "$as_me:$LINENO: result: $ac_res" >&5
4475echo "${ECHO_T}$ac_res" >&6; }
ad6254c5 4476else
d0191583 4477 # Is the header compilable?
68f2de6d
AK
4478{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
4479echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
d0191583 4480cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4481/* confdefs.h. */
4482_ACEOF
4483cat confdefs.h >>conftest.$ac_ext
4484cat >>conftest.$ac_ext <<_ACEOF
4485/* end confdefs.h. */
4486$ac_includes_default
ad6254c5
AK
4487#include <$ac_header>
4488_ACEOF
4489rm -f conftest.$ac_objext
7a197a62
AK
4490if { (ac_try="$ac_compile"
4491case "(($ac_try" in
4492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4493 *) ac_try_echo=$ac_try;;
4494esac
68f2de6d 4495eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 4496 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4497 ac_status=$?
8a2fc586
AK
4498 grep -v '^ *+' conftest.er1 >conftest.err
4499 rm -f conftest.er1
4500 cat conftest.err >&5
68f2de6d 4501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4502 (exit $ac_status); } && {
4503 test -z "$ac_c_werror_flag" ||
4504 test ! -s conftest.err
4505 } && test -s conftest.$ac_objext; then
d0191583 4506 ac_header_compiler=yes
ad6254c5 4507else
68f2de6d 4508 echo "$as_me: failed program was:" >&5
ad6254c5 4509sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 4510
d0191583 4511 ac_header_compiler=no
ad6254c5 4512fi
7a197a62
AK
4513
4514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
68f2de6d
AK
4515{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4516echo "${ECHO_T}$ac_header_compiler" >&6; }
d0191583
JM
4517
4518# Is the header present?
68f2de6d
AK
4519{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
4520echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
d0191583
JM
4521cat >conftest.$ac_ext <<_ACEOF
4522/* confdefs.h. */
4523_ACEOF
4524cat confdefs.h >>conftest.$ac_ext
4525cat >>conftest.$ac_ext <<_ACEOF
4526/* end confdefs.h. */
4527#include <$ac_header>
4528_ACEOF
4529if { (ac_try="$ac_cpp conftest.$ac_ext"
4530case "(($ac_try" in
4531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4532 *) ac_try_echo=$ac_try;;
4533esac
68f2de6d 4534eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
d0191583
JM
4535 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4536 ac_status=$?
4537 grep -v '^ *+' conftest.er1 >conftest.err
4538 rm -f conftest.er1
4539 cat conftest.err >&5
68f2de6d 4540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4541 (exit $ac_status); } >/dev/null && {
4542 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4543 test ! -s conftest.err
4544 }; then
4545 ac_header_preproc=yes
4546else
68f2de6d 4547 echo "$as_me: failed program was:" >&5
d0191583
JM
4548sed 's/^/| /' conftest.$ac_ext >&5
4549
4550 ac_header_preproc=no
4551fi
4552
4553rm -f conftest.err conftest.$ac_ext
68f2de6d
AK
4554{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4555echo "${ECHO_T}$ac_header_preproc" >&6; }
d0191583
JM
4556
4557# So? What about this header?
4558case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4559 yes:no: )
68f2de6d
AK
4560 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4561echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4562 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4563echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
d0191583
JM
4564 ac_header_preproc=yes
4565 ;;
4566 no:yes:* )
68f2de6d
AK
4567 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4568echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4569 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4570echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4571 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4572echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4573 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4574echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4575 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4576echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4577 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4578echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
d0191583
JM
4579
4580 ;;
4581esac
68f2de6d
AK
4582{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4583echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
d0191583 4584if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 4585 echo $ECHO_N "(cached) $ECHO_C" >&6
d0191583
JM
4586else
4587 eval "$as_ac_Header=\$ac_header_preproc"
a38df97f 4588fi
68f2de6d
AK
4589ac_res=`eval echo '${'$as_ac_Header'}'`
4590 { echo "$as_me:$LINENO: result: $ac_res" >&5
4591echo "${ECHO_T}$ac_res" >&6; }
d0191583
JM
4592
4593fi
68f2de6d 4594if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 4595 cat >>confdefs.h <<_ACEOF
68f2de6d 4596#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 4597_ACEOF
a38df97f 4598
d0191583 4599else
68f2de6d
AK
4600 { { echo "$as_me:$LINENO: error: bailing out" >&5
4601echo "$as_me: error: bailing out" >&2;}
d0191583 4602 { (exit 1); exit 1; }; }
80992638
AK
4603fi
4604
ad6254c5
AK
4605done
4606
7d1552c9 4607
d0191583
JM
4608case "$host_os" in
4609 linux*)
7d1552c9 4610
80992638 4611
5a52dca9 4612
d0191583 4613for ac_header in asm/byteorder.h linux/fs.h malloc.h
ad6254c5 4614do
68f2de6d 4615as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 4616if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d
AK
4617 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4618echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 4619if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 4620 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 4621fi
68f2de6d
AK
4622ac_res=`eval echo '${'$as_ac_Header'}'`
4623 { echo "$as_me:$LINENO: result: $ac_res" >&5
4624echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
4625else
4626 # Is the header compilable?
68f2de6d
AK
4627{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
4628echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 4629cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4630/* confdefs.h. */
4631_ACEOF
4632cat confdefs.h >>conftest.$ac_ext
4633cat >>conftest.$ac_ext <<_ACEOF
4634/* end confdefs.h. */
4635$ac_includes_default
4636#include <$ac_header>
4637_ACEOF
4638rm -f conftest.$ac_objext
7a197a62
AK
4639if { (ac_try="$ac_compile"
4640case "(($ac_try" in
4641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4642 *) ac_try_echo=$ac_try;;
4643esac
68f2de6d 4644eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 4645 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4646 ac_status=$?
8a2fc586
AK
4647 grep -v '^ *+' conftest.er1 >conftest.err
4648 rm -f conftest.er1
4649 cat conftest.err >&5
68f2de6d 4650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4651 (exit $ac_status); } && {
4652 test -z "$ac_c_werror_flag" ||
4653 test ! -s conftest.err
4654 } && test -s conftest.$ac_objext; then
fc54be10
AK
4655 ac_header_compiler=yes
4656else
68f2de6d 4657 echo "$as_me: failed program was:" >&5
fc54be10
AK
4658sed 's/^/| /' conftest.$ac_ext >&5
4659
4660 ac_header_compiler=no
4661fi
4662
4663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
68f2de6d
AK
4664{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4665echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
4666
4667# Is the header present?
68f2de6d
AK
4668{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
4669echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 4670cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4671/* confdefs.h. */
4672_ACEOF
4673cat confdefs.h >>conftest.$ac_ext
4674cat >>conftest.$ac_ext <<_ACEOF
4675/* end confdefs.h. */
4676#include <$ac_header>
4677_ACEOF
7a197a62
AK
4678if { (ac_try="$ac_cpp conftest.$ac_ext"
4679case "(($ac_try" in
4680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4681 *) ac_try_echo=$ac_try;;
4682esac
68f2de6d 4683eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 4684 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
4685 ac_status=$?
4686 grep -v '^ *+' conftest.er1 >conftest.err
4687 rm -f conftest.er1
4688 cat conftest.err >&5
68f2de6d 4689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4690 (exit $ac_status); } >/dev/null && {
4691 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4692 test ! -s conftest.err
4693 }; then
ad6254c5
AK
4694 ac_header_preproc=yes
4695else
68f2de6d 4696 echo "$as_me: failed program was:" >&5
ad6254c5
AK
4697sed 's/^/| /' conftest.$ac_ext >&5
4698
4699 ac_header_preproc=no
4700fi
7a197a62 4701
ad6254c5 4702rm -f conftest.err conftest.$ac_ext
68f2de6d
AK
4703{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4704echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
4705
4706# So? What about this header?
8a2fc586
AK
4707case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4708 yes:no: )
68f2de6d
AK
4709 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4710echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4711 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4712echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 4713 ac_header_preproc=yes
ad6254c5 4714 ;;
8a2fc586 4715 no:yes:* )
68f2de6d
AK
4716 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4717echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4718 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4719echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4720 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4721echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4722 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4723echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4724 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4725echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4726 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4727echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 4728
ad6254c5
AK
4729 ;;
4730esac
68f2de6d
AK
4731{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4732echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 4733if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 4734 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 4735else
8a2fc586 4736 eval "$as_ac_Header=\$ac_header_preproc"
b896caa1 4737fi
68f2de6d
AK
4738ac_res=`eval echo '${'$as_ac_Header'}'`
4739 { echo "$as_me:$LINENO: result: $ac_res" >&5
4740echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
4741
4742fi
68f2de6d 4743if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 4744 cat >>confdefs.h <<_ACEOF
68f2de6d 4745#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 4746_ACEOF
b896caa1 4747
d8ac0fbc 4748else
68f2de6d
AK
4749 { { echo "$as_me:$LINENO: error: bailing out" >&5
4750echo "$as_me: error: bailing out" >&2;}
ad6254c5 4751 { (exit 1); exit 1; }; }
80992638
AK
4752fi
4753
ad6254c5 4754done
d0191583
JM
4755 ;;
4756 darwin*)
d8ac0fbc 4757
d8ac0fbc 4758
d0191583 4759for ac_header in machine/endian.h sys/disk.h
ad6254c5 4760do
68f2de6d 4761as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 4762if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d
AK
4763 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4764echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 4765if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 4766 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 4767fi
68f2de6d
AK
4768ac_res=`eval echo '${'$as_ac_Header'}'`
4769 { echo "$as_me:$LINENO: result: $ac_res" >&5
4770echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
4771else
4772 # Is the header compilable?
68f2de6d
AK
4773{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
4774echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 4775cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4776/* confdefs.h. */
4777_ACEOF
4778cat confdefs.h >>conftest.$ac_ext
4779cat >>conftest.$ac_ext <<_ACEOF
4780/* end confdefs.h. */
4781$ac_includes_default
4782#include <$ac_header>
4783_ACEOF
4784rm -f conftest.$ac_objext
7a197a62
AK
4785if { (ac_try="$ac_compile"
4786case "(($ac_try" in
4787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4788 *) ac_try_echo=$ac_try;;
4789esac
68f2de6d 4790eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 4791 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4792 ac_status=$?
8a2fc586
AK
4793 grep -v '^ *+' conftest.er1 >conftest.err
4794 rm -f conftest.er1
4795 cat conftest.err >&5
68f2de6d 4796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4797 (exit $ac_status); } && {
4798 test -z "$ac_c_werror_flag" ||
4799 test ! -s conftest.err
4800 } && test -s conftest.$ac_objext; then
ad6254c5
AK
4801 ac_header_compiler=yes
4802else
68f2de6d 4803 echo "$as_me: failed program was:" >&5
ad6254c5
AK
4804sed 's/^/| /' conftest.$ac_ext >&5
4805
7a197a62 4806 ac_header_compiler=no
ad6254c5 4807fi
7a197a62
AK
4808
4809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
68f2de6d
AK
4810{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4811echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
4812
4813# Is the header present?
68f2de6d
AK
4814{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
4815echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 4816cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4817/* confdefs.h. */
4818_ACEOF
4819cat confdefs.h >>conftest.$ac_ext
4820cat >>conftest.$ac_ext <<_ACEOF
4821/* end confdefs.h. */
4822#include <$ac_header>
4823_ACEOF
7a197a62
AK
4824if { (ac_try="$ac_cpp conftest.$ac_ext"
4825case "(($ac_try" in
4826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4827 *) ac_try_echo=$ac_try;;
4828esac
68f2de6d 4829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 4830 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
4831 ac_status=$?
4832 grep -v '^ *+' conftest.er1 >conftest.err
4833 rm -f conftest.er1
4834 cat conftest.err >&5
68f2de6d 4835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4836 (exit $ac_status); } >/dev/null && {
4837 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4838 test ! -s conftest.err
4839 }; then
ad6254c5
AK
4840 ac_header_preproc=yes
4841else
68f2de6d 4842 echo "$as_me: failed program was:" >&5
ad6254c5
AK
4843sed 's/^/| /' conftest.$ac_ext >&5
4844
4845 ac_header_preproc=no
4846fi
7a197a62 4847
ad6254c5 4848rm -f conftest.err conftest.$ac_ext
68f2de6d
AK
4849{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4850echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
4851
4852# So? What about this header?
8a2fc586
AK
4853case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4854 yes:no: )
68f2de6d
AK
4855 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4856echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4857 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4858echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 4859 ac_header_preproc=yes
ad6254c5 4860 ;;
8a2fc586 4861 no:yes:* )
68f2de6d
AK
4862 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4863echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4864 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4865echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4866 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4867echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4868 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4869echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4870 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4871echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4872 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4873echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 4874
ad6254c5
AK
4875 ;;
4876esac
68f2de6d
AK
4877{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4878echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 4879if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 4880 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 4881else
8a2fc586 4882 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 4883fi
68f2de6d
AK
4884ac_res=`eval echo '${'$as_ac_Header'}'`
4885 { echo "$as_me:$LINENO: result: $ac_res" >&5
4886echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
4887
4888fi
68f2de6d 4889if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 4890 cat >>confdefs.h <<_ACEOF
68f2de6d 4891#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 4892_ACEOF
4922197a 4893
4922197a 4894else
68f2de6d
AK
4895 { { echo "$as_me:$LINENO: error: bailing out" >&5
4896echo "$as_me: error: bailing out" >&2;}
ad6254c5 4897 { (exit 1); exit 1; }; }
80992638
AK
4898fi
4899
ad6254c5 4900done
d0191583
JM
4901 ;;
4902esac
4922197a 4903
4922197a 4904
4922197a 4905
ad6254c5
AK
4906
4907
d0191583
JM
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920for ac_header in ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h \
4921 stdarg.h stdio.h stdlib.h string.h sys/ioctl.h sys/param.h sys/stat.h \
4922 sys/types.h unistd.h
ad6254c5 4923do
68f2de6d 4924as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 4925if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d
AK
4926 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4927echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 4928if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 4929 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 4930fi
68f2de6d
AK
4931ac_res=`eval echo '${'$as_ac_Header'}'`
4932 { echo "$as_me:$LINENO: result: $ac_res" >&5
4933echo "${ECHO_T}$ac_res" >&6; }
795ca3e5 4934else
ad6254c5 4935 # Is the header compilable?
68f2de6d
AK
4936{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
4937echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 4938cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4939/* confdefs.h. */
4940_ACEOF
4941cat confdefs.h >>conftest.$ac_ext
4942cat >>conftest.$ac_ext <<_ACEOF
4943/* end confdefs.h. */
4944$ac_includes_default
4945#include <$ac_header>
4946_ACEOF
4947rm -f conftest.$ac_objext
7a197a62
AK
4948if { (ac_try="$ac_compile"
4949case "(($ac_try" in
4950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4951 *) ac_try_echo=$ac_try;;
4952esac
68f2de6d 4953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 4954 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4955 ac_status=$?
8a2fc586
AK
4956 grep -v '^ *+' conftest.er1 >conftest.err
4957 rm -f conftest.er1
4958 cat conftest.err >&5
68f2de6d 4959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4960 (exit $ac_status); } && {
4961 test -z "$ac_c_werror_flag" ||
4962 test ! -s conftest.err
4963 } && test -s conftest.$ac_objext; then
ad6254c5
AK
4964 ac_header_compiler=yes
4965else
68f2de6d 4966 echo "$as_me: failed program was:" >&5
ad6254c5
AK
4967sed 's/^/| /' conftest.$ac_ext >&5
4968
7a197a62 4969 ac_header_compiler=no
ad6254c5 4970fi
7a197a62
AK
4971
4972rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
68f2de6d
AK
4973{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4974echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
4975
4976# Is the header present?
68f2de6d
AK
4977{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
4978echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 4979cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4980/* confdefs.h. */
4981_ACEOF
4982cat confdefs.h >>conftest.$ac_ext
4983cat >>conftest.$ac_ext <<_ACEOF
4984/* end confdefs.h. */
4985#include <$ac_header>
4986_ACEOF
7a197a62
AK
4987if { (ac_try="$ac_cpp conftest.$ac_ext"
4988case "(($ac_try" in
4989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4990 *) ac_try_echo=$ac_try;;
4991esac
68f2de6d 4992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 4993 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
4994 ac_status=$?
4995 grep -v '^ *+' conftest.er1 >conftest.err
4996 rm -f conftest.er1
4997 cat conftest.err >&5
68f2de6d 4998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4999 (exit $ac_status); } >/dev/null && {
5000 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5001 test ! -s conftest.err
5002 }; then
ad6254c5
AK
5003 ac_header_preproc=yes
5004else
68f2de6d 5005 echo "$as_me: failed program was:" >&5
ad6254c5
AK
5006sed 's/^/| /' conftest.$ac_ext >&5
5007
5008 ac_header_preproc=no
5009fi
7a197a62 5010
ad6254c5 5011rm -f conftest.err conftest.$ac_ext
68f2de6d
AK
5012{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5013echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
5014
5015# So? What about this header?
8a2fc586
AK
5016case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5017 yes:no: )
68f2de6d
AK
5018 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5019echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5020 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5021echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 5022 ac_header_preproc=yes
ad6254c5 5023 ;;
8a2fc586 5024 no:yes:* )
68f2de6d
AK
5025 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5026echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5027 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5028echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5029 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5030echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5031 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5032echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5033 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5034echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5035 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5036echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 5037
ad6254c5
AK
5038 ;;
5039esac
68f2de6d
AK
5040{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5041echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 5042if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 5043 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 5044else
8a2fc586 5045 eval "$as_ac_Header=\$ac_header_preproc"
80992638 5046fi
68f2de6d
AK
5047ac_res=`eval echo '${'$as_ac_Header'}'`
5048 { echo "$as_me:$LINENO: result: $ac_res" >&5
5049echo "${ECHO_T}$ac_res" >&6; }
80992638 5050
ad6254c5 5051fi
68f2de6d 5052if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 5053 cat >>confdefs.h <<_ACEOF
68f2de6d 5054#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 5055_ACEOF
795ca3e5 5056
795ca3e5 5057else
68f2de6d
AK
5058 { { echo "$as_me:$LINENO: error: bailing out" >&5
5059echo "$as_me: error: bailing out" >&2;}
ad6254c5 5060 { (exit 1); exit 1; }; }
80992638
AK
5061fi
5062
ad6254c5 5063done
ad6254c5 5064
795ca3e5 5065
d0191583
JM
5066
5067for ac_header in termios.h sys/statvfs.h
ad6254c5 5068do
68f2de6d 5069as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 5070if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d
AK
5071 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5072echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 5073if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 5074 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 5075fi
68f2de6d
AK
5076ac_res=`eval echo '${'$as_ac_Header'}'`
5077 { echo "$as_me:$LINENO: result: $ac_res" >&5
5078echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
5079else
5080 # Is the header compilable?
68f2de6d
AK
5081{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5082echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 5083cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5084/* confdefs.h. */
5085_ACEOF
5086cat confdefs.h >>conftest.$ac_ext
5087cat >>conftest.$ac_ext <<_ACEOF
5088/* end confdefs.h. */
5089$ac_includes_default
5090#include <$ac_header>
5091_ACEOF
5092rm -f conftest.$ac_objext
7a197a62
AK
5093if { (ac_try="$ac_compile"
5094case "(($ac_try" in
5095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5096 *) ac_try_echo=$ac_try;;
5097esac
68f2de6d 5098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 5099 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5100 ac_status=$?
8a2fc586
AK
5101 grep -v '^ *+' conftest.er1 >conftest.err
5102 rm -f conftest.er1
5103 cat conftest.err >&5
68f2de6d 5104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5105 (exit $ac_status); } && {
5106 test -z "$ac_c_werror_flag" ||
5107 test ! -s conftest.err
5108 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5109 ac_header_compiler=yes
5110else
68f2de6d 5111 echo "$as_me: failed program was:" >&5
ad6254c5
AK
5112sed 's/^/| /' conftest.$ac_ext >&5
5113
7a197a62 5114 ac_header_compiler=no
ad6254c5 5115fi
7a197a62
AK
5116
5117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
68f2de6d
AK
5118{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5119echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
5120
5121# Is the header present?
68f2de6d
AK
5122{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5123echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 5124cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5125/* confdefs.h. */
5126_ACEOF
5127cat confdefs.h >>conftest.$ac_ext
5128cat >>conftest.$ac_ext <<_ACEOF
5129/* end confdefs.h. */
5130#include <$ac_header>
5131_ACEOF
7a197a62
AK
5132if { (ac_try="$ac_cpp conftest.$ac_ext"
5133case "(($ac_try" in
5134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5135 *) ac_try_echo=$ac_try;;
5136esac
68f2de6d 5137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 5138 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
5139 ac_status=$?
5140 grep -v '^ *+' conftest.er1 >conftest.err
5141 rm -f conftest.er1
5142 cat conftest.err >&5
68f2de6d 5143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5144 (exit $ac_status); } >/dev/null && {
5145 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5146 test ! -s conftest.err
5147 }; then
ad6254c5
AK
5148 ac_header_preproc=yes
5149else
68f2de6d 5150 echo "$as_me: failed program was:" >&5
ad6254c5
AK
5151sed 's/^/| /' conftest.$ac_ext >&5
5152
5153 ac_header_preproc=no
5154fi
7a197a62 5155
ad6254c5 5156rm -f conftest.err conftest.$ac_ext
68f2de6d
AK
5157{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5158echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
5159
5160# So? What about this header?
8a2fc586
AK
5161case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5162 yes:no: )
68f2de6d
AK
5163 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5164echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5165 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5166echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 5167 ac_header_preproc=yes
ad6254c5 5168 ;;
8a2fc586 5169 no:yes:* )
68f2de6d
AK
5170 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5171echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5172 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5173echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5174 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5175echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5176 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5177echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5178 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5179echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5180 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5181echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 5182
ad6254c5
AK
5183 ;;
5184esac
68f2de6d
AK
5185{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5186echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 5187if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 5188 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 5189else
8a2fc586 5190 eval "$as_ac_Header=\$ac_header_preproc"
b896caa1 5191fi
68f2de6d
AK
5192ac_res=`eval echo '${'$as_ac_Header'}'`
5193 { echo "$as_me:$LINENO: result: $ac_res" >&5
5194echo "${ECHO_T}$ac_res" >&6; }
b896caa1 5195
ad6254c5 5196fi
68f2de6d 5197if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 5198 cat >>confdefs.h <<_ACEOF
68f2de6d 5199#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
5200_ACEOF
5201
80992638
AK
5202fi
5203
ad6254c5 5204done
d0191583 5205
d3c8211f 5206
80992638 5207################################################################################
68f2de6d
AK
5208{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5209echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
ad6254c5 5210if test "${ac_cv_c_const+set}" = set; then
68f2de6d 5211 echo $ECHO_N "(cached) $ECHO_C" >&6
d3c8211f 5212else
ad6254c5 5213 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5214/* confdefs.h. */
5215_ACEOF
5216cat confdefs.h >>conftest.$ac_ext
5217cat >>conftest.$ac_ext <<_ACEOF
5218/* end confdefs.h. */
5219
5220int
5221main ()
5222{
5223/* FIXME: Include the comments suggested by Paul. */
5224#ifndef __cplusplus
5225 /* Ultrix mips cc rejects this. */
5226 typedef int charset[2];
25fbec5b 5227 const charset cs;
ad6254c5 5228 /* SunOS 4.1.1 cc rejects this. */
25fbec5b
AK
5229 char const *const *pcpcc;
5230 char **ppc;
ad6254c5
AK
5231 /* NEC SVR4.0.2 mips cc rejects this. */
5232 struct point {int x, y;};
5233 static struct point const zero = {0,0};
5234 /* AIX XL C 1.02.0.0 rejects this.
5235 It does not let you subtract one const X* pointer from another in
5236 an arm of an if-expression whose if-part is not a constant
5237 expression */
5238 const char *g = "string";
25fbec5b 5239 pcpcc = &g + (g ? g-g : 0);
ad6254c5 5240 /* HPUX 7.0 cc rejects these. */
25fbec5b
AK
5241 ++pcpcc;
5242 ppc = (char**) pcpcc;
5243 pcpcc = (char const *const *) ppc;
ad6254c5
AK
5244 { /* SCO 3.2v4 cc rejects this. */
5245 char *t;
5246 char const *s = 0 ? (char *) 0 : (char const *) 0;
5247
5248 *t++ = 0;
7a197a62 5249 if (s) return 0;
ad6254c5
AK
5250 }
5251 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5252 int x[] = {25, 17};
5253 const int *foo = &x[0];
5254 ++foo;
5255 }
5256 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5257 typedef const int *iptr;
5258 iptr p = 0;
5259 ++p;
5260 }
5261 { /* AIX XL C 1.02.0.0 rejects this saying
5262 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5263 struct s { int j; const int *ap[3]; };
5264 struct s *b; b->j = 5;
5265 }
5266 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5267 const int foo = 10;
7a197a62 5268 if (!foo) return 0;
ad6254c5 5269 }
25fbec5b 5270 return !cs[0] && !zero.x;
ad6254c5
AK
5271#endif
5272
5273 ;
5274 return 0;
5275}
5276_ACEOF
5277rm -f conftest.$ac_objext
7a197a62
AK
5278if { (ac_try="$ac_compile"
5279case "(($ac_try" in
5280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5281 *) ac_try_echo=$ac_try;;
5282esac
68f2de6d 5283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 5284 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5285 ac_status=$?
8a2fc586
AK
5286 grep -v '^ *+' conftest.er1 >conftest.err
5287 rm -f conftest.er1
5288 cat conftest.err >&5
68f2de6d 5289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5290 (exit $ac_status); } && {
5291 test -z "$ac_c_werror_flag" ||
5292 test ! -s conftest.err
5293 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5294 ac_cv_c_const=yes
5295else
68f2de6d 5296 echo "$as_me: failed program was:" >&5
ad6254c5
AK
5297sed 's/^/| /' conftest.$ac_ext >&5
5298
7a197a62 5299 ac_cv_c_const=no
ad6254c5 5300fi
7a197a62
AK
5301
5302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
80992638 5303fi
68f2de6d
AK
5304{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5305echo "${ECHO_T}$ac_cv_c_const" >&6; }
ad6254c5 5306if test $ac_cv_c_const = no; then
80992638 5307
ad6254c5 5308cat >>confdefs.h <<\_ACEOF
68f2de6d 5309#define const
ad6254c5 5310_ACEOF
80992638 5311
d3c8211f 5312fi
d3c8211f 5313
68f2de6d
AK
5314{ echo "$as_me:$LINENO: checking for inline" >&5
5315echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
ad6254c5 5316if test "${ac_cv_c_inline+set}" = set; then
68f2de6d 5317 echo $ECHO_N "(cached) $ECHO_C" >&6
8ef2b021 5318else
ad6254c5
AK
5319 ac_cv_c_inline=no
5320for ac_kw in inline __inline__ __inline; do
5321 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5322/* confdefs.h. */
5323_ACEOF
5324cat confdefs.h >>conftest.$ac_ext
5325cat >>conftest.$ac_ext <<_ACEOF
5326/* end confdefs.h. */
5327#ifndef __cplusplus
5328typedef int foo_t;
5329static $ac_kw foo_t static_foo () {return 0; }
5330$ac_kw foo_t foo () {return 0; }
5331#endif
80992638 5332
ad6254c5
AK
5333_ACEOF
5334rm -f conftest.$ac_objext
7a197a62
AK
5335if { (ac_try="$ac_compile"
5336case "(($ac_try" in
5337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5338 *) ac_try_echo=$ac_try;;
5339esac
68f2de6d 5340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 5341 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5342 ac_status=$?
8a2fc586
AK
5343 grep -v '^ *+' conftest.er1 >conftest.err
5344 rm -f conftest.er1
5345 cat conftest.err >&5
68f2de6d 5346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5347 (exit $ac_status); } && {
5348 test -z "$ac_c_werror_flag" ||
5349 test ! -s conftest.err
5350 } && test -s conftest.$ac_objext; then
7a197a62 5351 ac_cv_c_inline=$ac_kw
ad6254c5 5352else
68f2de6d 5353 echo "$as_me: failed program was:" >&5
ad6254c5 5354sed 's/^/| /' conftest.$ac_ext >&5
8ef2b021 5355
7a197a62 5356
8ce0cbda 5357fi
7a197a62
AK
5358
5359rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5360 test "$ac_cv_c_inline" != no && break
ad6254c5 5361done
8ce0cbda 5362
8ce0cbda 5363fi
68f2de6d
AK
5364{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5365echo "${ECHO_T}$ac_cv_c_inline" >&6; }
8a2fc586
AK
5366
5367
ad6254c5
AK
5368case $ac_cv_c_inline in
5369 inline | yes) ;;
8a2fc586
AK
5370 *)
5371 case $ac_cv_c_inline in
5372 no) ac_val=;;
5373 *) ac_val=$ac_cv_c_inline;;
5374 esac
5375 cat >>confdefs.h <<_ACEOF
5376#ifndef __cplusplus
5377#define inline $ac_val
5378#endif
c1c065a3 5379_ACEOF
d0191583
JM
5380 ;;
5381esac
5382
68f2de6d
AK
5383{ echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
5384echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
d0191583 5385if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
68f2de6d 5386 echo $ECHO_N "(cached) $ECHO_C" >&6
d0191583
JM
5387else
5388 cat >conftest.$ac_ext <<_ACEOF
5389/* confdefs.h. */
5390_ACEOF
5391cat confdefs.h >>conftest.$ac_ext
5392cat >>conftest.$ac_ext <<_ACEOF
5393/* end confdefs.h. */
5394$ac_includes_default
5395int
5396main ()
5397{
5398static struct stat ac_aggr;
5399if (ac_aggr.st_rdev)
5400return 0;
5401 ;
5402 return 0;
5403}
5404_ACEOF
5405rm -f conftest.$ac_objext
5406if { (ac_try="$ac_compile"
5407case "(($ac_try" in
5408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5409 *) ac_try_echo=$ac_try;;
5410esac
68f2de6d 5411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
d0191583
JM
5412 (eval "$ac_compile") 2>conftest.er1
5413 ac_status=$?
5414 grep -v '^ *+' conftest.er1 >conftest.err
5415 rm -f conftest.er1
5416 cat conftest.err >&5
68f2de6d 5417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
5418 (exit $ac_status); } && {
5419 test -z "$ac_c_werror_flag" ||
5420 test ! -s conftest.err
5421 } && test -s conftest.$ac_objext; then
5422 ac_cv_member_struct_stat_st_rdev=yes
5423else
68f2de6d 5424 echo "$as_me: failed program was:" >&5
d0191583
JM
5425sed 's/^/| /' conftest.$ac_ext >&5
5426
5427 cat >conftest.$ac_ext <<_ACEOF
5428/* confdefs.h. */
5429_ACEOF
5430cat confdefs.h >>conftest.$ac_ext
5431cat >>conftest.$ac_ext <<_ACEOF
5432/* end confdefs.h. */
5433$ac_includes_default
5434int
5435main ()
5436{
5437static struct stat ac_aggr;
5438if (sizeof ac_aggr.st_rdev)
5439return 0;
5440 ;
5441 return 0;
5442}
5443_ACEOF
5444rm -f conftest.$ac_objext
5445if { (ac_try="$ac_compile"
5446case "(($ac_try" in
5447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5448 *) ac_try_echo=$ac_try;;
5449esac
68f2de6d 5450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
d0191583
JM
5451 (eval "$ac_compile") 2>conftest.er1
5452 ac_status=$?
5453 grep -v '^ *+' conftest.er1 >conftest.err
5454 rm -f conftest.er1
5455 cat conftest.err >&5
68f2de6d 5456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
5457 (exit $ac_status); } && {
5458 test -z "$ac_c_werror_flag" ||
5459 test ! -s conftest.err
5460 } && test -s conftest.$ac_objext; then
5461 ac_cv_member_struct_stat_st_rdev=yes
5462else
68f2de6d 5463 echo "$as_me: failed program was:" >&5
d0191583
JM
5464sed 's/^/| /' conftest.$ac_ext >&5
5465
5466 ac_cv_member_struct_stat_st_rdev=no
5467fi
5468
5469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5470fi
5471
5472rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5473fi
68f2de6d
AK
5474{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
5475echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
d0191583
JM
5476if test $ac_cv_member_struct_stat_st_rdev = yes; then
5477
5478cat >>confdefs.h <<_ACEOF
5479#define HAVE_STRUCT_STAT_ST_RDEV 1
5480_ACEOF
5481
5482
5483fi
8ce0cbda 5484
68f2de6d
AK
5485{ echo "$as_me:$LINENO: checking for off_t" >&5
5486echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
ad6254c5 5487if test "${ac_cv_type_off_t+set}" = set; then
68f2de6d 5488 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 5489else
b145d876
ZK
5490 cat >conftest.$ac_ext <<_ACEOF
5491/* confdefs.h. */
5492_ACEOF
5493cat confdefs.h >>conftest.$ac_ext
5494cat >>conftest.$ac_ext <<_ACEOF
5495/* end confdefs.h. */
5496$ac_includes_default
68f2de6d 5497typedef off_t ac__type_new_;
b145d876
ZK
5498int
5499main ()
5500{
68f2de6d
AK
5501if ((ac__type_new_ *) 0)
5502 return 0;
5503if (sizeof (ac__type_new_))
5504 return 0;
ad6254c5
AK
5505 ;
5506 return 0;
5507}
5508_ACEOF
5509rm -f conftest.$ac_objext
7a197a62
AK
5510if { (ac_try="$ac_compile"
5511case "(($ac_try" in
5512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5513 *) ac_try_echo=$ac_try;;
5514esac
68f2de6d 5515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 5516 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5517 ac_status=$?
8a2fc586
AK
5518 grep -v '^ *+' conftest.er1 >conftest.err
5519 rm -f conftest.er1
5520 cat conftest.err >&5
68f2de6d 5521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5522 (exit $ac_status); } && {
5523 test -z "$ac_c_werror_flag" ||
5524 test ! -s conftest.err
5525 } && test -s conftest.$ac_objext; then
68f2de6d 5526 ac_cv_type_off_t=yes
b145d876 5527else
68f2de6d 5528 echo "$as_me: failed program was:" >&5
b145d876
ZK
5529sed 's/^/| /' conftest.$ac_ext >&5
5530
68f2de6d 5531 ac_cv_type_off_t=no
ad6254c5 5532fi
b145d876
ZK
5533
5534rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5535fi
68f2de6d
AK
5536{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5537echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
ad6254c5
AK
5538if test $ac_cv_type_off_t = yes; then
5539 :
5540else
80992638 5541
ad6254c5 5542cat >>confdefs.h <<_ACEOF
7a197a62 5543#define off_t long int
ad6254c5 5544_ACEOF
199e490e 5545
b896caa1
AK
5546fi
5547
68f2de6d
AK
5548{ echo "$as_me:$LINENO: checking for pid_t" >&5
5549echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
ad6254c5 5550if test "${ac_cv_type_pid_t+set}" = set; then
68f2de6d 5551 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 5552else
b145d876
ZK
5553 cat >conftest.$ac_ext <<_ACEOF
5554/* confdefs.h. */
5555_ACEOF
5556cat confdefs.h >>conftest.$ac_ext
5557cat >>conftest.$ac_ext <<_ACEOF
5558/* end confdefs.h. */
5559$ac_includes_default
68f2de6d 5560typedef pid_t ac__type_new_;
b145d876
ZK
5561int
5562main ()
5563{
68f2de6d
AK
5564if ((ac__type_new_ *) 0)
5565 return 0;
5566if (sizeof (ac__type_new_))
5567 return 0;
ad6254c5
AK
5568 ;
5569 return 0;
5570}
5571_ACEOF
5572rm -f conftest.$ac_objext
7a197a62
AK
5573if { (ac_try="$ac_compile"
5574case "(($ac_try" in
5575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5576 *) ac_try_echo=$ac_try;;
5577esac
68f2de6d 5578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 5579 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5580 ac_status=$?
8a2fc586
AK
5581 grep -v '^ *+' conftest.er1 >conftest.err
5582 rm -f conftest.er1
5583 cat conftest.err >&5
68f2de6d 5584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5585 (exit $ac_status); } && {
5586 test -z "$ac_c_werror_flag" ||
5587 test ! -s conftest.err
5588 } && test -s conftest.$ac_objext; then
68f2de6d 5589 ac_cv_type_pid_t=yes
ad6254c5 5590else
68f2de6d 5591 echo "$as_me: failed program was:" >&5
ad6254c5
AK
5592sed 's/^/| /' conftest.$ac_ext >&5
5593
68f2de6d 5594 ac_cv_type_pid_t=no
ad6254c5 5595fi
7a197a62
AK
5596
5597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
80992638 5598fi
68f2de6d
AK
5599{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
5600echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
ad6254c5
AK
5601if test $ac_cv_type_pid_t = yes; then
5602 :
5603else
80992638 5604
ad6254c5
AK
5605cat >>confdefs.h <<_ACEOF
5606#define pid_t int
5607_ACEOF
2dc95e1c 5608
2dc95e1c
AK
5609fi
5610
68f2de6d
AK
5611{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5612echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
d0191583 5613if test "${ac_cv_type_signal+set}" = set; then
68f2de6d 5614 echo $ECHO_N "(cached) $ECHO_C" >&6
d0191583
JM
5615else
5616 cat >conftest.$ac_ext <<_ACEOF
5617/* confdefs.h. */
5618_ACEOF
5619cat confdefs.h >>conftest.$ac_ext
5620cat >>conftest.$ac_ext <<_ACEOF
5621/* end confdefs.h. */
5622#include <sys/types.h>
5623#include <signal.h>
5624
5625int
5626main ()
5627{
5628return *(signal (0, 0)) (0) == 1;
5629 ;
5630 return 0;
5631}
5632_ACEOF
5633rm -f conftest.$ac_objext
5634if { (ac_try="$ac_compile"
5635case "(($ac_try" in
5636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5637 *) ac_try_echo=$ac_try;;
5638esac
68f2de6d 5639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
d0191583
JM
5640 (eval "$ac_compile") 2>conftest.er1
5641 ac_status=$?
5642 grep -v '^ *+' conftest.er1 >conftest.err
5643 rm -f conftest.er1
5644 cat conftest.err >&5
68f2de6d 5645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
5646 (exit $ac_status); } && {
5647 test -z "$ac_c_werror_flag" ||
5648 test ! -s conftest.err
5649 } && test -s conftest.$ac_objext; then
5650 ac_cv_type_signal=int
5651else
68f2de6d 5652 echo "$as_me: failed program was:" >&5
d0191583
JM
5653sed 's/^/| /' conftest.$ac_ext >&5
5654
5655 ac_cv_type_signal=void
5656fi
5657
5658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5659fi
68f2de6d
AK
5660{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
5661echo "${ECHO_T}$ac_cv_type_signal" >&6; }
d0191583
JM
5662
5663cat >>confdefs.h <<_ACEOF
5664#define RETSIGTYPE $ac_cv_type_signal
5665_ACEOF
5666
5667
68f2de6d
AK
5668{ echo "$as_me:$LINENO: checking for size_t" >&5
5669echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
ad6254c5 5670if test "${ac_cv_type_size_t+set}" = set; then
68f2de6d 5671 echo $ECHO_N "(cached) $ECHO_C" >&6
8106cdd5 5672else
b145d876
ZK
5673 cat >conftest.$ac_ext <<_ACEOF
5674/* confdefs.h. */
5675_ACEOF
5676cat confdefs.h >>conftest.$ac_ext
5677cat >>conftest.$ac_ext <<_ACEOF
5678/* end confdefs.h. */
5679$ac_includes_default
68f2de6d 5680typedef size_t ac__type_new_;
b145d876
ZK
5681int
5682main ()
5683{
68f2de6d
AK
5684if ((ac__type_new_ *) 0)
5685 return 0;
5686if (sizeof (ac__type_new_))
5687 return 0;
ad6254c5
AK
5688 ;
5689 return 0;
5690}
5691_ACEOF
5692rm -f conftest.$ac_objext
7a197a62
AK
5693if { (ac_try="$ac_compile"
5694case "(($ac_try" in
5695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5696 *) ac_try_echo=$ac_try;;
5697esac
68f2de6d 5698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 5699 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5700 ac_status=$?
8a2fc586
AK
5701 grep -v '^ *+' conftest.er1 >conftest.err
5702 rm -f conftest.er1
5703 cat conftest.err >&5
68f2de6d 5704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5705 (exit $ac_status); } && {
5706 test -z "$ac_c_werror_flag" ||
5707 test ! -s conftest.err
5708 } && test -s conftest.$ac_objext; then
68f2de6d 5709 ac_cv_type_size_t=yes
b145d876 5710else
68f2de6d 5711 echo "$as_me: failed program was:" >&5
b145d876
ZK
5712sed 's/^/| /' conftest.$ac_ext >&5
5713
68f2de6d 5714 ac_cv_type_size_t=no
ad6254c5 5715fi
b145d876
ZK
5716
5717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5718fi
68f2de6d
AK
5719{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5720echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
ad6254c5
AK
5721if test $ac_cv_type_size_t = yes; then
5722 :
5723else
80992638 5724
ad6254c5 5725cat >>confdefs.h <<_ACEOF
7a197a62 5726#define size_t unsigned int
ad6254c5 5727_ACEOF
8106cdd5 5728
8106cdd5
AK
5729fi
5730
68f2de6d
AK
5731{ echo "$as_me:$LINENO: checking for mode_t" >&5
5732echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
ad6254c5 5733if test "${ac_cv_type_mode_t+set}" = set; then
68f2de6d 5734 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 5735else
b145d876
ZK
5736 cat >conftest.$ac_ext <<_ACEOF
5737/* confdefs.h. */
5738_ACEOF
5739cat confdefs.h >>conftest.$ac_ext
5740cat >>conftest.$ac_ext <<_ACEOF
5741/* end confdefs.h. */
5742$ac_includes_default
68f2de6d 5743typedef mode_t ac__type_new_;
b145d876
ZK
5744int
5745main ()
5746{
68f2de6d
AK
5747if ((ac__type_new_ *) 0)
5748 return 0;
5749if (sizeof (ac__type_new_))
5750 return 0;
ad6254c5
AK
5751 ;
5752 return 0;
5753}
5754_ACEOF
5755rm -f conftest.$ac_objext
7a197a62
AK
5756if { (ac_try="$ac_compile"
5757case "(($ac_try" in
5758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5759 *) ac_try_echo=$ac_try;;
5760esac
68f2de6d 5761eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 5762 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5763 ac_status=$?
8a2fc586
AK
5764 grep -v '^ *+' conftest.er1 >conftest.err
5765 rm -f conftest.er1
5766 cat conftest.err >&5
68f2de6d 5767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5768 (exit $ac_status); } && {
5769 test -z "$ac_c_werror_flag" ||
5770 test ! -s conftest.err
5771 } && test -s conftest.$ac_objext; then
68f2de6d 5772 ac_cv_type_mode_t=yes
fddafd51 5773else
68f2de6d 5774 echo "$as_me: failed program was:" >&5
fddafd51
ZK
5775sed 's/^/| /' conftest.$ac_ext >&5
5776
68f2de6d 5777 ac_cv_type_mode_t=no
80992638 5778fi
7a197a62
AK
5779
5780rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 5781fi
68f2de6d
AK
5782{ echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
5783echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
ad6254c5
AK
5784if test $ac_cv_type_mode_t = yes; then
5785 :
5786else
80992638 5787
ad6254c5
AK
5788cat >>confdefs.h <<_ACEOF
5789#define mode_t int
5790_ACEOF
5791
5792fi
5793
68f2de6d
AK
5794{ echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
5795echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
ad6254c5 5796if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
68f2de6d 5797 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
5798else
5799 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5800/* confdefs.h. */
5801_ACEOF
5802cat confdefs.h >>conftest.$ac_ext
5803cat >>conftest.$ac_ext <<_ACEOF
5804/* end confdefs.h. */
5805$ac_includes_default
5806int
5807main ()
5808{
5809static struct stat ac_aggr;
5810if (ac_aggr.st_rdev)
5811return 0;
5812 ;
5813 return 0;
5814}
5815_ACEOF
5816rm -f conftest.$ac_objext
7a197a62
AK
5817if { (ac_try="$ac_compile"
5818case "(($ac_try" in
5819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5820 *) ac_try_echo=$ac_try;;
5821esac
68f2de6d 5822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 5823 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5824 ac_status=$?
8a2fc586
AK
5825 grep -v '^ *+' conftest.er1 >conftest.err
5826 rm -f conftest.er1
5827 cat conftest.err >&5
68f2de6d 5828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5829 (exit $ac_status); } && {
5830 test -z "$ac_c_werror_flag" ||
5831 test ! -s conftest.err
5832 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5833 ac_cv_member_struct_stat_st_rdev=yes
5834else
68f2de6d 5835 echo "$as_me: failed program was:" >&5
ad6254c5
AK
5836sed 's/^/| /' conftest.$ac_ext >&5
5837
7a197a62 5838 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5839/* confdefs.h. */
5840_ACEOF
5841cat confdefs.h >>conftest.$ac_ext
5842cat >>conftest.$ac_ext <<_ACEOF
5843/* end confdefs.h. */
5844$ac_includes_default
5845int
5846main ()
5847{
5848static struct stat ac_aggr;
5849if (sizeof ac_aggr.st_rdev)
5850return 0;
5851 ;
5852 return 0;
5853}
5854_ACEOF
5855rm -f conftest.$ac_objext
7a197a62
AK
5856if { (ac_try="$ac_compile"
5857case "(($ac_try" in
5858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5859 *) ac_try_echo=$ac_try;;
5860esac
68f2de6d 5861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 5862 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5863 ac_status=$?
8a2fc586
AK
5864 grep -v '^ *+' conftest.er1 >conftest.err
5865 rm -f conftest.er1
5866 cat conftest.err >&5
68f2de6d 5867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5868 (exit $ac_status); } && {
5869 test -z "$ac_c_werror_flag" ||
5870 test ! -s conftest.err
5871 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5872 ac_cv_member_struct_stat_st_rdev=yes
5873else
68f2de6d 5874 echo "$as_me: failed program was:" >&5
ad6254c5
AK
5875sed 's/^/| /' conftest.$ac_ext >&5
5876
7a197a62 5877 ac_cv_member_struct_stat_st_rdev=no
ad6254c5 5878fi
7a197a62
AK
5879
5880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 5881fi
7a197a62
AK
5882
5883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 5884fi
68f2de6d
AK
5885{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
5886echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
ad6254c5
AK
5887if test $ac_cv_member_struct_stat_st_rdev = yes; then
5888
5889cat >>confdefs.h <<_ACEOF
5890#define HAVE_STRUCT_STAT_ST_RDEV 1
5891_ACEOF
5892
5893
ad6254c5
AK
5894fi
5895
68f2de6d
AK
5896{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
5897echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
ad6254c5 5898if test "${ac_cv_struct_tm+set}" = set; then
68f2de6d 5899 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
5900else
5901 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5902/* confdefs.h. */
5903_ACEOF
5904cat confdefs.h >>conftest.$ac_ext
5905cat >>conftest.$ac_ext <<_ACEOF
5906/* end confdefs.h. */
5907#include <sys/types.h>
5908#include <time.h>
5909
5910int
5911main ()
5912{
25fbec5b
AK
5913struct tm tm;
5914 int *p = &tm.tm_sec;
68f2de6d 5915 return !p;
ad6254c5
AK
5916 ;
5917 return 0;
5918}
5919_ACEOF
5920rm -f conftest.$ac_objext
7a197a62
AK
5921if { (ac_try="$ac_compile"
5922case "(($ac_try" in
5923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5924 *) ac_try_echo=$ac_try;;
5925esac
68f2de6d 5926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 5927 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5928 ac_status=$?
8a2fc586
AK
5929 grep -v '^ *+' conftest.er1 >conftest.err
5930 rm -f conftest.er1
5931 cat conftest.err >&5
68f2de6d 5932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5933 (exit $ac_status); } && {
5934 test -z "$ac_c_werror_flag" ||
5935 test ! -s conftest.err
5936 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5937 ac_cv_struct_tm=time.h
5938else
68f2de6d 5939 echo "$as_me: failed program was:" >&5
ad6254c5
AK
5940sed 's/^/| /' conftest.$ac_ext >&5
5941
7a197a62 5942 ac_cv_struct_tm=sys/time.h
ad6254c5 5943fi
7a197a62
AK
5944
5945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 5946fi
68f2de6d
AK
5947{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
5948echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
ad6254c5
AK
5949if test $ac_cv_struct_tm = sys/time.h; then
5950
5951cat >>confdefs.h <<\_ACEOF
5952#define TM_IN_SYS_TIME 1
5953_ACEOF
5954
5955fi
809fae91 5956
795ca3e5 5957
80992638 5958################################################################################
ad6254c5
AK
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
d0191583
JM
5973
5974
5975
5976for ac_func in gethostname getpagesize memset mkdir rmdir munmap setlocale \
5977 strcasecmp strchr strdup strncasecmp strerror strrchr strstr strtol strtoul \
5978 uname
ad6254c5 5979do
68f2de6d
AK
5980as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5981{ echo "$as_me:$LINENO: checking for $ac_func" >&5
5982echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7a197a62 5983if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 5984 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 5985else
ad6254c5 5986 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5987/* confdefs.h. */
5988_ACEOF
5989cat confdefs.h >>conftest.$ac_ext
5990cat >>conftest.$ac_ext <<_ACEOF
5991/* end confdefs.h. */
8a2fc586
AK
5992/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5993 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5994#define $ac_func innocuous_$ac_func
5995
ad6254c5
AK
5996/* System header to define __stub macros and hopefully few prototypes,
5997 which can conflict with char $ac_func (); below.
5998 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5999 <limits.h> exists even on freestanding compilers. */
8a2fc586 6000
ad6254c5
AK
6001#ifdef __STDC__
6002# include <limits.h>
6003#else
6004# include <assert.h>
6005#endif
8a2fc586
AK
6006
6007#undef $ac_func
6008
7a197a62
AK
6009/* Override any GCC internal prototype to avoid an error.
6010 Use char because int might match the return type of a GCC
6011 builtin and then its argument prototype would still apply. */
ad6254c5
AK
6012#ifdef __cplusplus
6013extern "C"
ad6254c5 6014#endif
ad6254c5
AK
6015char $ac_func ();
6016/* The GNU C library defines this for functions which it implements
6017 to always fail with ENOSYS. Some functions are actually named
6018 something starting with __ and the normal name is an alias. */
7a197a62 6019#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 6020choke me
ad6254c5
AK
6021#endif
6022
6023int
6024main ()
6025{
7a197a62 6026return $ac_func ();
ad6254c5
AK
6027 ;
6028 return 0;
6029}
6030_ACEOF
6031rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
6032if { (ac_try="$ac_link"
6033case "(($ac_try" in
6034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6035 *) ac_try_echo=$ac_try;;
6036esac
68f2de6d 6037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6038 (eval "$ac_link") 2>conftest.er1
ad6254c5 6039 ac_status=$?
8a2fc586
AK
6040 grep -v '^ *+' conftest.er1 >conftest.err
6041 rm -f conftest.er1
6042 cat conftest.err >&5
68f2de6d 6043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6044 (exit $ac_status); } && {
6045 test -z "$ac_c_werror_flag" ||
6046 test ! -s conftest.err
68f2de6d
AK
6047 } && test -s conftest$ac_exeext &&
6048 $as_test_x conftest$ac_exeext; then
fc54be10
AK
6049 eval "$as_ac_var=yes"
6050else
68f2de6d 6051 echo "$as_me: failed program was:" >&5
fc54be10
AK
6052sed 's/^/| /' conftest.$ac_ext >&5
6053
6054 eval "$as_ac_var=no"
6055fi
6056
25fbec5b 6057rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
fc54be10
AK
6058 conftest$ac_exeext conftest.$ac_ext
6059fi
68f2de6d
AK
6060ac_res=`eval echo '${'$as_ac_var'}'`
6061 { echo "$as_me:$LINENO: result: $ac_res" >&5
6062echo "${ECHO_T}$ac_res" >&6; }
6063if test `eval echo '${'$as_ac_var'}'` = yes; then
ad6254c5 6064 cat >>confdefs.h <<_ACEOF
68f2de6d 6065#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
6066_ACEOF
6067
6068else
68f2de6d
AK
6069 { { echo "$as_me:$LINENO: error: bailing out" >&5
6070echo "$as_me: error: bailing out" >&2;}
ad6254c5
AK
6071 { (exit 1); exit 1; }; }
6072fi
6073done
795ca3e5 6074
ad6254c5
AK
6075# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6076# for constant arguments. Useless!
68f2de6d
AK
6077{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
6078echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
ad6254c5 6079if test "${ac_cv_working_alloca_h+set}" = set; then
68f2de6d 6080 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
6081else
6082 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6083/* confdefs.h. */
6084_ACEOF
6085cat confdefs.h >>conftest.$ac_ext
6086cat >>conftest.$ac_ext <<_ACEOF
6087/* end confdefs.h. */
6088#include <alloca.h>
6089int
6090main ()
6091{
6092char *p = (char *) alloca (2 * sizeof (int));
7a197a62 6093 if (p) return 0;
ad6254c5
AK
6094 ;
6095 return 0;
6096}
6097_ACEOF
6098rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
6099if { (ac_try="$ac_link"
6100case "(($ac_try" in
6101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6102 *) ac_try_echo=$ac_try;;
6103esac
68f2de6d 6104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6105 (eval "$ac_link") 2>conftest.er1
ad6254c5 6106 ac_status=$?
8a2fc586
AK
6107 grep -v '^ *+' conftest.er1 >conftest.err
6108 rm -f conftest.er1
6109 cat conftest.err >&5
68f2de6d 6110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6111 (exit $ac_status); } && {
6112 test -z "$ac_c_werror_flag" ||
6113 test ! -s conftest.err
68f2de6d
AK
6114 } && test -s conftest$ac_exeext &&
6115 $as_test_x conftest$ac_exeext; then
ad6254c5
AK
6116 ac_cv_working_alloca_h=yes
6117else
68f2de6d 6118 echo "$as_me: failed program was:" >&5
ad6254c5 6119sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 6120
7a197a62 6121 ac_cv_working_alloca_h=no
ad6254c5 6122fi
7a197a62 6123
25fbec5b 6124rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 6125 conftest$ac_exeext conftest.$ac_ext
ad6254c5 6126fi
68f2de6d
AK
6127{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6128echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
ad6254c5
AK
6129if test $ac_cv_working_alloca_h = yes; then
6130
6131cat >>confdefs.h <<\_ACEOF
6132#define HAVE_ALLOCA_H 1
6133_ACEOF
6134
6135fi
6136
68f2de6d
AK
6137{ echo "$as_me:$LINENO: checking for alloca" >&5
6138echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
ad6254c5 6139if test "${ac_cv_func_alloca_works+set}" = set; then
68f2de6d 6140 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
6141else
6142 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6143/* confdefs.h. */
6144_ACEOF
6145cat confdefs.h >>conftest.$ac_ext
6146cat >>conftest.$ac_ext <<_ACEOF
6147/* end confdefs.h. */
6148#ifdef __GNUC__
6149# define alloca __builtin_alloca
6150#else
6151# ifdef _MSC_VER
6152# include <malloc.h>
6153# define alloca _alloca
6154# else
25fbec5b 6155# ifdef HAVE_ALLOCA_H
ad6254c5
AK
6156# include <alloca.h>
6157# else
6158# ifdef _AIX
6159 #pragma alloca
6160# else
6161# ifndef alloca /* predefined by HP cc +Olibcalls */
6162char *alloca ();
6163# endif
6164# endif
6165# endif
6166# endif
6167#endif
6168
6169int
6170main ()
6171{
6172char *p = (char *) alloca (1);
7a197a62 6173 if (p) return 0;
ad6254c5
AK
6174 ;
6175 return 0;
6176}
6177_ACEOF
6178rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
6179if { (ac_try="$ac_link"
6180case "(($ac_try" in
6181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6182 *) ac_try_echo=$ac_try;;
6183esac
68f2de6d 6184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6185 (eval "$ac_link") 2>conftest.er1
ad6254c5 6186 ac_status=$?
8a2fc586
AK
6187 grep -v '^ *+' conftest.er1 >conftest.err
6188 rm -f conftest.er1
6189 cat conftest.err >&5
68f2de6d 6190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6191 (exit $ac_status); } && {
6192 test -z "$ac_c_werror_flag" ||
6193 test ! -s conftest.err
68f2de6d
AK
6194 } && test -s conftest$ac_exeext &&
6195 $as_test_x conftest$ac_exeext; then
ad6254c5
AK
6196 ac_cv_func_alloca_works=yes
6197else
68f2de6d 6198 echo "$as_me: failed program was:" >&5
ad6254c5
AK
6199sed 's/^/| /' conftest.$ac_ext >&5
6200
7a197a62 6201 ac_cv_func_alloca_works=no
ad6254c5 6202fi
7a197a62 6203
25fbec5b 6204rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 6205 conftest$ac_exeext conftest.$ac_ext
ad6254c5 6206fi
68f2de6d
AK
6207{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6208echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
ad6254c5
AK
6209
6210if test $ac_cv_func_alloca_works = yes; then
6211
6212cat >>confdefs.h <<\_ACEOF
6213#define HAVE_ALLOCA 1
6214_ACEOF
6215
6216else
6217 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6218# that cause trouble. Some versions do not even contain alloca or
6219# contain a buggy version. If you still want to use their alloca,
6220# use ar to extract alloca.o from them instead of compiling alloca.c.
6221
7a197a62 6222ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
ad6254c5
AK
6223
6224cat >>confdefs.h <<\_ACEOF
6225#define C_ALLOCA 1
6226_ACEOF
6227
6228
68f2de6d
AK
6229{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6230echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
ad6254c5 6231if test "${ac_cv_os_cray+set}" = set; then
68f2de6d 6232 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
6233else
6234 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6235/* confdefs.h. */
6236_ACEOF
6237cat confdefs.h >>conftest.$ac_ext
6238cat >>conftest.$ac_ext <<_ACEOF
6239/* end confdefs.h. */
7a197a62 6240#if defined CRAY && ! defined CRAY2
ad6254c5
AK
6241webecray
6242#else
6243wenotbecray
6244#endif
6245
6246_ACEOF
795ca3e5 6247if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ad6254c5
AK
6248 $EGREP "webecray" >/dev/null 2>&1; then
6249 ac_cv_os_cray=yes
6250else
6251 ac_cv_os_cray=no
795ca3e5
AK
6252fi
6253rm -f conftest*
6254
795ca3e5 6255fi
68f2de6d
AK
6256{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6257echo "${ECHO_T}$ac_cv_os_cray" >&6; }
ad6254c5
AK
6258if test $ac_cv_os_cray = yes; then
6259 for ac_func in _getb67 GETB67 getb67; do
68f2de6d
AK
6260 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6261{ echo "$as_me:$LINENO: checking for $ac_func" >&5
6262echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7a197a62 6263if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 6264 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
6265else
6266 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6267/* confdefs.h. */
6268_ACEOF
6269cat confdefs.h >>conftest.$ac_ext
6270cat >>conftest.$ac_ext <<_ACEOF
6271/* end confdefs.h. */
8a2fc586
AK
6272/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6273 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6274#define $ac_func innocuous_$ac_func
6275
ad6254c5
AK
6276/* System header to define __stub macros and hopefully few prototypes,
6277 which can conflict with char $ac_func (); below.
6278 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6279 <limits.h> exists even on freestanding compilers. */
8a2fc586 6280
ad6254c5
AK
6281#ifdef __STDC__
6282# include <limits.h>
6283#else
6284# include <assert.h>
6285#endif
8a2fc586
AK
6286
6287#undef $ac_func
6288
7a197a62
AK
6289/* Override any GCC internal prototype to avoid an error.
6290 Use char because int might match the return type of a GCC
6291 builtin and then its argument prototype would still apply. */
ad6254c5
AK
6292#ifdef __cplusplus
6293extern "C"
ad6254c5 6294#endif
ad6254c5
AK
6295char $ac_func ();
6296/* The GNU C library defines this for functions which it implements
6297 to always fail with ENOSYS. Some functions are actually named
6298 something starting with __ and the normal name is an alias. */
7a197a62 6299#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 6300choke me
ad6254c5
AK
6301#endif
6302
6303int
6304main ()
6305{
7a197a62 6306return $ac_func ();
ad6254c5
AK
6307 ;
6308 return 0;
6309}
6310_ACEOF
6311rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
6312if { (ac_try="$ac_link"
6313case "(($ac_try" in
6314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6315 *) ac_try_echo=$ac_try;;
6316esac
68f2de6d 6317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6318 (eval "$ac_link") 2>conftest.er1
ad6254c5 6319 ac_status=$?
8a2fc586
AK
6320 grep -v '^ *+' conftest.er1 >conftest.err
6321 rm -f conftest.er1
6322 cat conftest.err >&5
68f2de6d 6323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6324 (exit $ac_status); } && {
6325 test -z "$ac_c_werror_flag" ||
6326 test ! -s conftest.err
68f2de6d
AK
6327 } && test -s conftest$ac_exeext &&
6328 $as_test_x conftest$ac_exeext; then
ad6254c5
AK
6329 eval "$as_ac_var=yes"
6330else
68f2de6d 6331 echo "$as_me: failed program was:" >&5
ad6254c5
AK
6332sed 's/^/| /' conftest.$ac_ext >&5
6333
7a197a62 6334 eval "$as_ac_var=no"
ad6254c5 6335fi
7a197a62 6336
25fbec5b 6337rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 6338 conftest$ac_exeext conftest.$ac_ext
ad6254c5 6339fi
68f2de6d
AK
6340ac_res=`eval echo '${'$as_ac_var'}'`
6341 { echo "$as_me:$LINENO: result: $ac_res" >&5
6342echo "${ECHO_T}$ac_res" >&6; }
6343if test `eval echo '${'$as_ac_var'}'` = yes; then
80992638 6344
ad6254c5
AK
6345cat >>confdefs.h <<_ACEOF
6346#define CRAY_STACKSEG_END $ac_func
6347_ACEOF
6348
6349 break
6350fi
6351
6352 done
6353fi
6354
68f2de6d
AK
6355{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6356echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
ad6254c5 6357if test "${ac_cv_c_stack_direction+set}" = set; then
68f2de6d 6358 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
6359else
6360 if test "$cross_compiling" = yes; then
6361 ac_cv_c_stack_direction=0
6362else
6363 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6364/* confdefs.h. */
6365_ACEOF
6366cat confdefs.h >>conftest.$ac_ext
6367cat >>conftest.$ac_ext <<_ACEOF
6368/* end confdefs.h. */
7a197a62 6369$ac_includes_default
ad6254c5
AK
6370int
6371find_stack_direction ()
6372{
6373 static char *addr = 0;
6374 auto char dummy;
6375 if (addr == 0)
6376 {
6377 addr = &dummy;
6378 return find_stack_direction ();
6379 }
6380 else
6381 return (&dummy > addr) ? 1 : -1;
6382}
6383
6384int
6385main ()
6386{
7a197a62 6387 return find_stack_direction () < 0;
ad6254c5
AK
6388}
6389_ACEOF
6390rm -f conftest$ac_exeext
7a197a62
AK
6391if { (ac_try="$ac_link"
6392case "(($ac_try" in
6393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6394 *) ac_try_echo=$ac_try;;
6395esac
68f2de6d 6396eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6397 (eval "$ac_link") 2>&5
ad6254c5 6398 ac_status=$?
68f2de6d 6399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 6400 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
6401 { (case "(($ac_try" in
6402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6403 *) ac_try_echo=$ac_try;;
6404esac
68f2de6d 6405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6406 (eval "$ac_try") 2>&5
ad6254c5 6407 ac_status=$?
68f2de6d 6408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
6409 (exit $ac_status); }; }; then
6410 ac_cv_c_stack_direction=1
6411else
68f2de6d
AK
6412 echo "$as_me: program exited with status $ac_status" >&5
6413echo "$as_me: failed program was:" >&5
ad6254c5
AK
6414sed 's/^/| /' conftest.$ac_ext >&5
6415
6416( exit $ac_status )
6417ac_cv_c_stack_direction=-1
6418fi
7a197a62 6419rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 6420fi
7a197a62
AK
6421
6422
ad6254c5 6423fi
68f2de6d
AK
6424{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6425echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
ad6254c5
AK
6426
6427cat >>confdefs.h <<_ACEOF
6428#define STACK_DIRECTION $ac_cv_c_stack_direction
6429_ACEOF
6430
6431
6432fi
6433
68f2de6d
AK
6434{ echo "$as_me:$LINENO: checking whether closedir returns void" >&5
6435echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
ad6254c5 6436if test "${ac_cv_func_closedir_void+set}" = set; then
68f2de6d 6437 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
6438else
6439 if test "$cross_compiling" = yes; then
6440 ac_cv_func_closedir_void=yes
6441else
6442 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6443/* confdefs.h. */
6444_ACEOF
6445cat confdefs.h >>conftest.$ac_ext
6446cat >>conftest.$ac_ext <<_ACEOF
6447/* end confdefs.h. */
6448$ac_includes_default
6449#include <$ac_header_dirent>
6450#ifndef __cplusplus
6451int closedir ();
6452#endif
6453
6454int
6455main ()
6456{
7a197a62 6457return closedir (opendir (".")) != 0;
ad6254c5
AK
6458 ;
6459 return 0;
6460}
6461_ACEOF
6462rm -f conftest$ac_exeext
7a197a62
AK
6463if { (ac_try="$ac_link"
6464case "(($ac_try" in
6465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6466 *) ac_try_echo=$ac_try;;
6467esac
68f2de6d 6468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6469 (eval "$ac_link") 2>&5
ad6254c5 6470 ac_status=$?
68f2de6d 6471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 6472 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
6473 { (case "(($ac_try" in
6474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6475 *) ac_try_echo=$ac_try;;
6476esac
68f2de6d 6477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6478 (eval "$ac_try") 2>&5
ad6254c5 6479 ac_status=$?
68f2de6d 6480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
6481 (exit $ac_status); }; }; then
6482 ac_cv_func_closedir_void=no
6483else
68f2de6d
AK
6484 echo "$as_me: program exited with status $ac_status" >&5
6485echo "$as_me: failed program was:" >&5
ad6254c5
AK
6486sed 's/^/| /' conftest.$ac_ext >&5
6487
6488( exit $ac_status )
6489ac_cv_func_closedir_void=yes
6490fi
7a197a62 6491rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 6492fi
7a197a62
AK
6493
6494
ad6254c5 6495fi
68f2de6d
AK
6496{ echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
6497echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
ad6254c5
AK
6498if test $ac_cv_func_closedir_void = yes; then
6499
6500cat >>confdefs.h <<\_ACEOF
6501#define CLOSEDIR_VOID 1
6502_ACEOF
6503
6504fi
6505
6506
7a197a62 6507for ac_header in vfork.h
ad6254c5 6508do
68f2de6d 6509as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 6510if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d
AK
6511 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6512echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 6513if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 6514 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 6515fi
68f2de6d
AK
6516ac_res=`eval echo '${'$as_ac_Header'}'`
6517 { echo "$as_me:$LINENO: result: $ac_res" >&5
6518echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
6519else
6520 # Is the header compilable?
68f2de6d
AK
6521{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
6522echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 6523cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6524/* confdefs.h. */
6525_ACEOF
6526cat confdefs.h >>conftest.$ac_ext
6527cat >>conftest.$ac_ext <<_ACEOF
6528/* end confdefs.h. */
6529$ac_includes_default
6530#include <$ac_header>
6531_ACEOF
6532rm -f conftest.$ac_objext
7a197a62
AK
6533if { (ac_try="$ac_compile"
6534case "(($ac_try" in
6535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6536 *) ac_try_echo=$ac_try;;
6537esac
68f2de6d 6538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6539 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6540 ac_status=$?
8a2fc586
AK
6541 grep -v '^ *+' conftest.er1 >conftest.err
6542 rm -f conftest.er1
6543 cat conftest.err >&5
68f2de6d 6544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6545 (exit $ac_status); } && {
6546 test -z "$ac_c_werror_flag" ||
6547 test ! -s conftest.err
6548 } && test -s conftest.$ac_objext; then
ad6254c5
AK
6549 ac_header_compiler=yes
6550else
68f2de6d 6551 echo "$as_me: failed program was:" >&5
ad6254c5
AK
6552sed 's/^/| /' conftest.$ac_ext >&5
6553
7a197a62 6554 ac_header_compiler=no
ad6254c5 6555fi
7a197a62
AK
6556
6557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
68f2de6d
AK
6558{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6559echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
6560
6561# Is the header present?
68f2de6d
AK
6562{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
6563echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 6564cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6565/* confdefs.h. */
6566_ACEOF
6567cat confdefs.h >>conftest.$ac_ext
6568cat >>conftest.$ac_ext <<_ACEOF
6569/* end confdefs.h. */
6570#include <$ac_header>
6571_ACEOF
7a197a62
AK
6572if { (ac_try="$ac_cpp conftest.$ac_ext"
6573case "(($ac_try" in
6574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6575 *) ac_try_echo=$ac_try;;
6576esac
68f2de6d 6577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6578 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
6579 ac_status=$?
6580 grep -v '^ *+' conftest.er1 >conftest.err
6581 rm -f conftest.er1
6582 cat conftest.err >&5
68f2de6d 6583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6584 (exit $ac_status); } >/dev/null && {
6585 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6586 test ! -s conftest.err
6587 }; then
ad6254c5
AK
6588 ac_header_preproc=yes
6589else
68f2de6d 6590 echo "$as_me: failed program was:" >&5
ad6254c5
AK
6591sed 's/^/| /' conftest.$ac_ext >&5
6592
6593 ac_header_preproc=no
6594fi
7a197a62 6595
ad6254c5 6596rm -f conftest.err conftest.$ac_ext
68f2de6d
AK
6597{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6598echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
6599
6600# So? What about this header?
8a2fc586
AK
6601case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6602 yes:no: )
68f2de6d
AK
6603 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6604echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6605 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6606echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 6607 ac_header_preproc=yes
ad6254c5 6608 ;;
8a2fc586 6609 no:yes:* )
68f2de6d
AK
6610 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6611echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6612 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6613echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6614 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6615echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6616 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6617echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6618 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6619echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6620 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6621echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 6622
ad6254c5
AK
6623 ;;
6624esac
68f2de6d
AK
6625{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6626echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 6627if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 6628 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 6629else
8a2fc586 6630 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 6631fi
68f2de6d
AK
6632ac_res=`eval echo '${'$as_ac_Header'}'`
6633 { echo "$as_me:$LINENO: result: $ac_res" >&5
6634echo "${ECHO_T}$ac_res" >&6; }
ad6254c5 6635
795ca3e5 6636fi
68f2de6d 6637if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 6638 cat >>confdefs.h <<_ACEOF
68f2de6d 6639#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
6640_ACEOF
6641
6642fi
6643
6644done
795ca3e5 6645
ad6254c5
AK
6646
6647
6648for ac_func in fork vfork
6649do
68f2de6d
AK
6650as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6651{ echo "$as_me:$LINENO: checking for $ac_func" >&5
6652echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7a197a62 6653if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 6654 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 6655else
ad6254c5 6656 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6657/* confdefs.h. */
6658_ACEOF
6659cat confdefs.h >>conftest.$ac_ext
6660cat >>conftest.$ac_ext <<_ACEOF
6661/* end confdefs.h. */
8a2fc586
AK
6662/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6663 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6664#define $ac_func innocuous_$ac_func
6665
ad6254c5
AK
6666/* System header to define __stub macros and hopefully few prototypes,
6667 which can conflict with char $ac_func (); below.
6668 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6669 <limits.h> exists even on freestanding compilers. */
8a2fc586 6670
ad6254c5
AK
6671#ifdef __STDC__
6672# include <limits.h>
6673#else
6674# include <assert.h>
795ca3e5 6675#endif
8a2fc586
AK
6676
6677#undef $ac_func
6678
7a197a62
AK
6679/* Override any GCC internal prototype to avoid an error.
6680 Use char because int might match the return type of a GCC
6681 builtin and then its argument prototype would still apply. */
795ca3e5 6682#ifdef __cplusplus
ad6254c5 6683extern "C"
ad6254c5 6684#endif
ad6254c5
AK
6685char $ac_func ();
6686/* The GNU C library defines this for functions which it implements
6687 to always fail with ENOSYS. Some functions are actually named
6688 something starting with __ and the normal name is an alias. */
7a197a62 6689#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 6690choke me
795ca3e5
AK
6691#endif
6692
ad6254c5
AK
6693int
6694main ()
6695{
7a197a62 6696return $ac_func ();
ad6254c5
AK
6697 ;
6698 return 0;
6699}
6700_ACEOF
6701rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
6702if { (ac_try="$ac_link"
6703case "(($ac_try" in
6704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6705 *) ac_try_echo=$ac_try;;
6706esac
68f2de6d 6707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6708 (eval "$ac_link") 2>conftest.er1
ad6254c5 6709 ac_status=$?
8a2fc586
AK
6710 grep -v '^ *+' conftest.er1 >conftest.err
6711 rm -f conftest.er1
6712 cat conftest.err >&5
68f2de6d 6713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6714 (exit $ac_status); } && {
6715 test -z "$ac_c_werror_flag" ||
6716 test ! -s conftest.err
68f2de6d
AK
6717 } && test -s conftest$ac_exeext &&
6718 $as_test_x conftest$ac_exeext; then
ad6254c5 6719 eval "$as_ac_var=yes"
795ca3e5 6720else
68f2de6d 6721 echo "$as_me: failed program was:" >&5
ad6254c5
AK
6722sed 's/^/| /' conftest.$ac_ext >&5
6723
7a197a62 6724 eval "$as_ac_var=no"
795ca3e5 6725fi
7a197a62 6726
25fbec5b 6727rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 6728 conftest$ac_exeext conftest.$ac_ext
ad6254c5 6729fi
68f2de6d
AK
6730ac_res=`eval echo '${'$as_ac_var'}'`
6731 { echo "$as_me:$LINENO: result: $ac_res" >&5
6732echo "${ECHO_T}$ac_res" >&6; }
6733if test `eval echo '${'$as_ac_var'}'` = yes; then
ad6254c5 6734 cat >>confdefs.h <<_ACEOF
68f2de6d 6735#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
6736_ACEOF
6737
6738fi
6739done
6740
6741if test "x$ac_cv_func_fork" = xyes; then
68f2de6d
AK
6742 { echo "$as_me:$LINENO: checking for working fork" >&5
6743echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
ad6254c5 6744if test "${ac_cv_func_fork_works+set}" = set; then
68f2de6d 6745 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
6746else
6747 if test "$cross_compiling" = yes; then
6748 ac_cv_func_fork_works=cross
6749else
6750 cat >conftest.$ac_ext <<_ACEOF
7a197a62
AK
6751/* confdefs.h. */
6752_ACEOF
6753cat confdefs.h >>conftest.$ac_ext
6754cat >>conftest.$ac_ext <<_ACEOF
6755/* end confdefs.h. */
6756$ac_includes_default
6757int
6758main ()
6759{
6760
6761 /* By Ruediger Kuhlmann. */
6762 return fork () < 0;
6763
6764 ;
6765 return 0;
6766}
ad6254c5
AK
6767_ACEOF
6768rm -f conftest$ac_exeext
7a197a62
AK
6769if { (ac_try="$ac_link"
6770case "(($ac_try" in
6771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6772 *) ac_try_echo=$ac_try;;
6773esac
68f2de6d 6774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6775 (eval "$ac_link") 2>&5
ad6254c5 6776 ac_status=$?
68f2de6d 6777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 6778 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
6779 { (case "(($ac_try" in
6780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6781 *) ac_try_echo=$ac_try;;
6782esac
68f2de6d 6783eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6784 (eval "$ac_try") 2>&5
ad6254c5 6785 ac_status=$?
68f2de6d 6786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
6787 (exit $ac_status); }; }; then
6788 ac_cv_func_fork_works=yes
6789else
68f2de6d
AK
6790 echo "$as_me: program exited with status $ac_status" >&5
6791echo "$as_me: failed program was:" >&5
ad6254c5
AK
6792sed 's/^/| /' conftest.$ac_ext >&5
6793
6794( exit $ac_status )
6795ac_cv_func_fork_works=no
6796fi
7a197a62 6797rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 6798fi
7a197a62
AK
6799
6800
ad6254c5 6801fi
68f2de6d
AK
6802{ echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
6803echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
ad6254c5
AK
6804
6805else
6806 ac_cv_func_fork_works=$ac_cv_func_fork
6807fi
6808if test "x$ac_cv_func_fork_works" = xcross; then
6809 case $host in
6810 *-*-amigaos* | *-*-msdosdjgpp*)
6811 # Override, as these systems have only a dummy fork() stub
6812 ac_cv_func_fork_works=no
6813 ;;
6814 *)
6815 ac_cv_func_fork_works=yes
6816 ;;
6817 esac
68f2de6d
AK
6818 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
6819echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
ad6254c5
AK
6820fi
6821ac_cv_func_vfork_works=$ac_cv_func_vfork
6822if test "x$ac_cv_func_vfork" = xyes; then
68f2de6d
AK
6823 { echo "$as_me:$LINENO: checking for working vfork" >&5
6824echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
ad6254c5 6825if test "${ac_cv_func_vfork_works+set}" = set; then
68f2de6d 6826 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
6827else
6828 if test "$cross_compiling" = yes; then
6829 ac_cv_func_vfork_works=cross
6830else
6831 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6832/* confdefs.h. */
6833_ACEOF
6834cat confdefs.h >>conftest.$ac_ext
6835cat >>conftest.$ac_ext <<_ACEOF
6836/* end confdefs.h. */
6837/* Thanks to Paul Eggert for this test. */
7a197a62 6838$ac_includes_default
ad6254c5 6839#include <sys/wait.h>
25fbec5b 6840#ifdef HAVE_VFORK_H
ad6254c5
AK
6841# include <vfork.h>
6842#endif
6843/* On some sparc systems, changes by the child to local and incoming
6844 argument registers are propagated back to the parent. The compiler
6845 is told about this with #include <vfork.h>, but some compilers
6846 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
6847 static variable whose address is put into a register that is
6848 clobbered by the vfork. */
6849static void
6850#ifdef __cplusplus
6851sparc_address_test (int arg)
6852# else
6853sparc_address_test (arg) int arg;
6854#endif
6855{
6856 static pid_t child;
6857 if (!child) {
6858 child = vfork ();
6859 if (child < 0) {
6860 perror ("vfork");
6861 _exit(2);
6862 }
6863 if (!child) {
6864 arg = getpid();
6865 write(-1, "", 0);
6866 _exit (arg);
6867 }
6868 }
6869}
6870
6871int
6872main ()
6873{
6874 pid_t parent = getpid ();
6875 pid_t child;
6876
6877 sparc_address_test (0);
6878
6879 child = vfork ();
6880
6881 if (child == 0) {
6882 /* Here is another test for sparc vfork register problems. This
6883 test uses lots of local variables, at least as many local
6884 variables as main has allocated so far including compiler
6885 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
6886 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
6887 reuse the register of parent for one of the local variables,
6888 since it will think that parent can't possibly be used any more
6889 in this routine. Assigning to the local variable will thus
6890 munge parent in the parent process. */
6891 pid_t
6892 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
6893 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
6894 /* Convince the compiler that p..p7 are live; otherwise, it might
6895 use the same hardware register for all 8 local variables. */
6896 if (p != p1 || p != p2 || p != p3 || p != p4
6897 || p != p5 || p != p6 || p != p7)
6898 _exit(1);
6899
6900 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
6901 from child file descriptors. If the child closes a descriptor
6902 before it execs or exits, this munges the parent's descriptor
6903 as well. Test for this by closing stdout in the child. */
6904 _exit(close(fileno(stdout)) != 0);
6905 } else {
6906 int status;
6907 struct stat st;
6908
6909 while (wait(&status) != child)
6910 ;
7a197a62 6911 return (
ad6254c5
AK
6912 /* Was there some problem with vforking? */
6913 child < 0
6914
6915 /* Did the child fail? (This shouldn't happen.) */
6916 || status
6917
6918 /* Did the vfork/compiler bug occur? */
6919 || parent != getpid()
6920
6921 /* Did the file descriptor bug occur? */
6922 || fstat(fileno(stdout), &st) != 0
6923 );
6924 }
6925}
6926_ACEOF
6927rm -f conftest$ac_exeext
7a197a62
AK
6928if { (ac_try="$ac_link"
6929case "(($ac_try" in
6930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6931 *) ac_try_echo=$ac_try;;
6932esac
68f2de6d 6933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6934 (eval "$ac_link") 2>&5
ad6254c5 6935 ac_status=$?
68f2de6d 6936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 6937 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
6938 { (case "(($ac_try" in
6939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6940 *) ac_try_echo=$ac_try;;
6941esac
68f2de6d 6942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6943 (eval "$ac_try") 2>&5
ad6254c5 6944 ac_status=$?
68f2de6d 6945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
6946 (exit $ac_status); }; }; then
6947 ac_cv_func_vfork_works=yes
6948else
68f2de6d
AK
6949 echo "$as_me: program exited with status $ac_status" >&5
6950echo "$as_me: failed program was:" >&5
ad6254c5
AK
6951sed 's/^/| /' conftest.$ac_ext >&5
6952
6953( exit $ac_status )
6954ac_cv_func_vfork_works=no
6955fi
7a197a62 6956rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 6957fi
7a197a62
AK
6958
6959
ad6254c5 6960fi
68f2de6d
AK
6961{ echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
6962echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
ad6254c5
AK
6963
6964fi;
6965if test "x$ac_cv_func_fork_works" = xcross; then
8a2fc586 6966 ac_cv_func_vfork_works=$ac_cv_func_vfork
68f2de6d
AK
6967 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
6968echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
ad6254c5
AK
6969fi
6970
6971if test "x$ac_cv_func_vfork_works" = xyes; then
6972
6973cat >>confdefs.h <<\_ACEOF
6974#define HAVE_WORKING_VFORK 1
6975_ACEOF
6976
6977else
6978
6979cat >>confdefs.h <<\_ACEOF
6980#define vfork fork
6981_ACEOF
6982
6983fi
6984if test "x$ac_cv_func_fork_works" = xyes; then
6985
6986cat >>confdefs.h <<\_ACEOF
6987#define HAVE_WORKING_FORK 1
6988_ACEOF
6989
6990fi
6991
68f2de6d
AK
6992{ echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
6993echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
ad6254c5 6994if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
68f2de6d 6995 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
6996else
6997 rm -f conftest.sym conftest.file
6998echo >conftest.file
6999if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
7000 if test "$cross_compiling" = yes; then
7001 ac_cv_func_lstat_dereferences_slashed_symlink=no
7002else
7003 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7004/* confdefs.h. */
7005_ACEOF
7006cat confdefs.h >>conftest.$ac_ext
7007cat >>conftest.$ac_ext <<_ACEOF
7008/* end confdefs.h. */
7009$ac_includes_default
7010int
7011main ()
7012{
7013struct stat sbuf;
7014 /* Linux will dereference the symlink and fail.
8a2fc586
AK
7015 That is better in the sense that it means we will not
7016 have to compile and use the lstat wrapper. */
7a197a62 7017 return lstat ("conftest.sym/", &sbuf) == 0;
ad6254c5
AK
7018 ;
7019 return 0;
7020}
7021_ACEOF
7022rm -f conftest$ac_exeext
7a197a62
AK
7023if { (ac_try="$ac_link"
7024case "(($ac_try" in
7025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7026 *) ac_try_echo=$ac_try;;
7027esac
68f2de6d 7028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7029 (eval "$ac_link") 2>&5
ad6254c5 7030 ac_status=$?
68f2de6d 7031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7032 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7033 { (case "(($ac_try" in
7034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7035 *) ac_try_echo=$ac_try;;
7036esac
68f2de6d 7037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7038 (eval "$ac_try") 2>&5
ad6254c5 7039 ac_status=$?
68f2de6d 7040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7041 (exit $ac_status); }; }; then
7042 ac_cv_func_lstat_dereferences_slashed_symlink=yes
7043else
68f2de6d
AK
7044 echo "$as_me: program exited with status $ac_status" >&5
7045echo "$as_me: failed program was:" >&5
ad6254c5
AK
7046sed 's/^/| /' conftest.$ac_ext >&5
7047
7048( exit $ac_status )
7049ac_cv_func_lstat_dereferences_slashed_symlink=no
7050fi
7a197a62 7051rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7052fi
7a197a62
AK
7053
7054
ad6254c5
AK
7055else
7056 # If the `ln -s' command failed, then we probably don't even
7057 # have an lstat function.
7058 ac_cv_func_lstat_dereferences_slashed_symlink=no
7059fi
7060rm -f conftest.sym conftest.file
7061
7062fi
68f2de6d
AK
7063{ echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
7064echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
ad6254c5
AK
7065
7066test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
7067
7068cat >>confdefs.h <<_ACEOF
7069#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
7070_ACEOF
7071
7072
7073if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
7a197a62 7074 case " $LIBOBJS " in
8a2fc586 7075 *" lstat.$ac_objext "* ) ;;
7a197a62
AK
7076 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
7077 ;;
8a2fc586
AK
7078esac
7079
ad6254c5
AK
7080fi
7081
68f2de6d
AK
7082{ echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
7083echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6; }
ad6254c5 7084if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
68f2de6d 7085 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
7086else
7087 if test "$cross_compiling" = yes; then
7088 ac_cv_func_lstat_empty_string_bug=yes
7089else
7090 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7091/* confdefs.h. */
7092_ACEOF
7093cat confdefs.h >>conftest.$ac_ext
7094cat >>conftest.$ac_ext <<_ACEOF
7095/* end confdefs.h. */
7096$ac_includes_default
7097int
7098main ()
7099{
7100struct stat sbuf;
7a197a62 7101 return lstat ("", &sbuf) == 0;
ad6254c5
AK
7102 ;
7103 return 0;
7104}
7105_ACEOF
7106rm -f conftest$ac_exeext
7a197a62
AK
7107if { (ac_try="$ac_link"
7108case "(($ac_try" in
7109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7110 *) ac_try_echo=$ac_try;;
7111esac
68f2de6d 7112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7113 (eval "$ac_link") 2>&5
ad6254c5 7114 ac_status=$?
68f2de6d 7115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7116 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7117 { (case "(($ac_try" in
7118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7119 *) ac_try_echo=$ac_try;;
7120esac
68f2de6d 7121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7122 (eval "$ac_try") 2>&5
ad6254c5 7123 ac_status=$?
68f2de6d 7124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7125 (exit $ac_status); }; }; then
7a197a62 7126 ac_cv_func_lstat_empty_string_bug=no
ad6254c5 7127else
68f2de6d
AK
7128 echo "$as_me: program exited with status $ac_status" >&5
7129echo "$as_me: failed program was:" >&5
ad6254c5
AK
7130sed 's/^/| /' conftest.$ac_ext >&5
7131
7132( exit $ac_status )
7a197a62 7133ac_cv_func_lstat_empty_string_bug=yes
ad6254c5 7134fi
7a197a62 7135rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7136fi
7a197a62
AK
7137
7138
ad6254c5 7139fi
68f2de6d
AK
7140{ echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
7141echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6; }
ad6254c5 7142if test $ac_cv_func_lstat_empty_string_bug = yes; then
7a197a62 7143 case " $LIBOBJS " in
8a2fc586 7144 *" lstat.$ac_objext "* ) ;;
7a197a62
AK
7145 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
7146 ;;
8a2fc586
AK
7147esac
7148
ad6254c5
AK
7149
7150cat >>confdefs.h <<_ACEOF
7151#define HAVE_LSTAT_EMPTY_STRING_BUG 1
7152_ACEOF
7153
7154fi
7155
7156
7157for ac_header in stdlib.h
7158do
68f2de6d 7159as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 7160if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d
AK
7161 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7162echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 7163if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 7164 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 7165fi
68f2de6d
AK
7166ac_res=`eval echo '${'$as_ac_Header'}'`
7167 { echo "$as_me:$LINENO: result: $ac_res" >&5
7168echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
7169else
7170 # Is the header compilable?
68f2de6d
AK
7171{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
7172echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 7173cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7174/* confdefs.h. */
7175_ACEOF
7176cat confdefs.h >>conftest.$ac_ext
7177cat >>conftest.$ac_ext <<_ACEOF
7178/* end confdefs.h. */
7179$ac_includes_default
7180#include <$ac_header>
7181_ACEOF
7182rm -f conftest.$ac_objext
7a197a62
AK
7183if { (ac_try="$ac_compile"
7184case "(($ac_try" in
7185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7186 *) ac_try_echo=$ac_try;;
7187esac
68f2de6d 7188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7189 (eval "$ac_compile") 2>conftest.er1
ad6254c5 7190 ac_status=$?
8a2fc586
AK
7191 grep -v '^ *+' conftest.er1 >conftest.err
7192 rm -f conftest.er1
7193 cat conftest.err >&5
68f2de6d 7194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7195 (exit $ac_status); } && {
7196 test -z "$ac_c_werror_flag" ||
7197 test ! -s conftest.err
7198 } && test -s conftest.$ac_objext; then
ad6254c5
AK
7199 ac_header_compiler=yes
7200else
68f2de6d 7201 echo "$as_me: failed program was:" >&5
ad6254c5
AK
7202sed 's/^/| /' conftest.$ac_ext >&5
7203
7a197a62 7204 ac_header_compiler=no
ad6254c5 7205fi
7a197a62
AK
7206
7207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
68f2de6d
AK
7208{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7209echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
7210
7211# Is the header present?
68f2de6d
AK
7212{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
7213echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 7214cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7215/* confdefs.h. */
7216_ACEOF
7217cat confdefs.h >>conftest.$ac_ext
7218cat >>conftest.$ac_ext <<_ACEOF
7219/* end confdefs.h. */
7220#include <$ac_header>
7221_ACEOF
7a197a62
AK
7222if { (ac_try="$ac_cpp conftest.$ac_ext"
7223case "(($ac_try" in
7224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7225 *) ac_try_echo=$ac_try;;
7226esac
68f2de6d 7227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7228 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
7229 ac_status=$?
7230 grep -v '^ *+' conftest.er1 >conftest.err
7231 rm -f conftest.er1
7232 cat conftest.err >&5
68f2de6d 7233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7234 (exit $ac_status); } >/dev/null && {
7235 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7236 test ! -s conftest.err
7237 }; then
ad6254c5
AK
7238 ac_header_preproc=yes
7239else
68f2de6d 7240 echo "$as_me: failed program was:" >&5
ad6254c5
AK
7241sed 's/^/| /' conftest.$ac_ext >&5
7242
7243 ac_header_preproc=no
7244fi
7a197a62 7245
ad6254c5 7246rm -f conftest.err conftest.$ac_ext
68f2de6d
AK
7247{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7248echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
7249
7250# So? What about this header?
8a2fc586
AK
7251case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7252 yes:no: )
68f2de6d
AK
7253 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7254echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7255 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7256echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 7257 ac_header_preproc=yes
ad6254c5 7258 ;;
8a2fc586 7259 no:yes:* )
68f2de6d
AK
7260 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7261echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7262 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7263echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7264 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7265echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7266 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7267echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7268 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7269echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7270 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7271echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 7272
ad6254c5
AK
7273 ;;
7274esac
68f2de6d
AK
7275{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7276echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 7277if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 7278 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 7279else
8a2fc586 7280 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 7281fi
68f2de6d
AK
7282ac_res=`eval echo '${'$as_ac_Header'}'`
7283 { echo "$as_me:$LINENO: result: $ac_res" >&5
7284echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
7285
7286fi
68f2de6d 7287if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 7288 cat >>confdefs.h <<_ACEOF
68f2de6d 7289#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
7290_ACEOF
7291
7292fi
7293
7294done
7295
68f2de6d
AK
7296{ echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
7297echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
ad6254c5 7298if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
68f2de6d 7299 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
7300else
7301 if test "$cross_compiling" = yes; then
7302 ac_cv_func_malloc_0_nonnull=no
7303else
7304 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7305/* confdefs.h. */
7306_ACEOF
7307cat confdefs.h >>conftest.$ac_ext
7308cat >>conftest.$ac_ext <<_ACEOF
7309/* end confdefs.h. */
25fbec5b 7310#if defined STDC_HEADERS || defined HAVE_STDLIB_H
ad6254c5
AK
7311# include <stdlib.h>
7312#else
7313char *malloc ();
7314#endif
7315
7316int
7317main ()
7318{
7a197a62 7319return ! malloc (0);
ad6254c5
AK
7320 ;
7321 return 0;
7322}
7323_ACEOF
7324rm -f conftest$ac_exeext
7a197a62
AK
7325if { (ac_try="$ac_link"
7326case "(($ac_try" in
7327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7328 *) ac_try_echo=$ac_try;;
7329esac
68f2de6d 7330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7331 (eval "$ac_link") 2>&5
ad6254c5 7332 ac_status=$?
68f2de6d 7333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7334 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7335 { (case "(($ac_try" in
7336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7337 *) ac_try_echo=$ac_try;;
7338esac
68f2de6d 7339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7340 (eval "$ac_try") 2>&5
ad6254c5 7341 ac_status=$?
68f2de6d 7342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7343 (exit $ac_status); }; }; then
7344 ac_cv_func_malloc_0_nonnull=yes
7345else
68f2de6d
AK
7346 echo "$as_me: program exited with status $ac_status" >&5
7347echo "$as_me: failed program was:" >&5
ad6254c5
AK
7348sed 's/^/| /' conftest.$ac_ext >&5
7349
7350( exit $ac_status )
7351ac_cv_func_malloc_0_nonnull=no
7352fi
7a197a62 7353rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7354fi
7a197a62
AK
7355
7356
ad6254c5 7357fi
68f2de6d
AK
7358{ echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
7359echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
ad6254c5
AK
7360if test $ac_cv_func_malloc_0_nonnull = yes; then
7361
7362cat >>confdefs.h <<\_ACEOF
7363#define HAVE_MALLOC 1
7364_ACEOF
7365
7366else
7367 cat >>confdefs.h <<\_ACEOF
7368#define HAVE_MALLOC 0
7369_ACEOF
7370
7a197a62 7371 case " $LIBOBJS " in
8a2fc586 7372 *" malloc.$ac_objext "* ) ;;
7a197a62
AK
7373 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
7374 ;;
8a2fc586
AK
7375esac
7376
ad6254c5
AK
7377
7378cat >>confdefs.h <<\_ACEOF
7379#define malloc rpl_malloc
7380_ACEOF
7381
7382fi
7383
7384
7385
68f2de6d
AK
7386{ echo "$as_me:$LINENO: checking for working memcmp" >&5
7387echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
ad6254c5 7388if test "${ac_cv_func_memcmp_working+set}" = set; then
68f2de6d 7389 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
7390else
7391 if test "$cross_compiling" = yes; then
7392 ac_cv_func_memcmp_working=no
7393else
7394 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7395/* confdefs.h. */
7396_ACEOF
7397cat confdefs.h >>conftest.$ac_ext
7398cat >>conftest.$ac_ext <<_ACEOF
7399/* end confdefs.h. */
8a2fc586 7400$ac_includes_default
ad6254c5
AK
7401int
7402main ()
7403{
7404
7405 /* Some versions of memcmp are not 8-bit clean. */
7a197a62 7406 char c0 = '\100', c1 = '\200', c2 = '\201';
ad6254c5 7407 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
7a197a62 7408 return 1;
ad6254c5
AK
7409
7410 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
7411 or more and with at least one buffer not starting on a 4-byte boundary.
7412 William Lewis provided this test program. */
7413 {
7414 char foo[21];
7415 char bar[21];
7416 int i;
7417 for (i = 0; i < 4; i++)
7418 {
8a2fc586
AK
7419 char *a = foo + i;
7420 char *b = bar + i;
7421 strcpy (a, "--------01111111");
7422 strcpy (b, "--------10000000");
7423 if (memcmp (a, b, 16) >= 0)
7a197a62 7424 return 1;
ad6254c5 7425 }
7a197a62 7426 return 0;
ad6254c5
AK
7427 }
7428
7429 ;
7430 return 0;
7431}
7432_ACEOF
7433rm -f conftest$ac_exeext
7a197a62
AK
7434if { (ac_try="$ac_link"
7435case "(($ac_try" in
7436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7437 *) ac_try_echo=$ac_try;;
7438esac
68f2de6d 7439eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7440 (eval "$ac_link") 2>&5
ad6254c5 7441 ac_status=$?
68f2de6d 7442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7443 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7444 { (case "(($ac_try" in
7445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7446 *) ac_try_echo=$ac_try;;
7447esac
68f2de6d 7448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7449 (eval "$ac_try") 2>&5
ad6254c5 7450 ac_status=$?
68f2de6d 7451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7452 (exit $ac_status); }; }; then
7453 ac_cv_func_memcmp_working=yes
7454else
68f2de6d
AK
7455 echo "$as_me: program exited with status $ac_status" >&5
7456echo "$as_me: failed program was:" >&5
ad6254c5
AK
7457sed 's/^/| /' conftest.$ac_ext >&5
7458
7459( exit $ac_status )
7460ac_cv_func_memcmp_working=no
7461fi
7a197a62 7462rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7463fi
7a197a62
AK
7464
7465
ad6254c5 7466fi
68f2de6d
AK
7467{ echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
7468echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
7a197a62 7469test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
8a2fc586 7470 *" memcmp.$ac_objext "* ) ;;
7a197a62
AK
7471 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
7472 ;;
8a2fc586
AK
7473esac
7474
ad6254c5
AK
7475
7476
7477
7478for ac_header in stdlib.h unistd.h
7479do
68f2de6d 7480as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 7481if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d
AK
7482 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7483echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 7484if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 7485 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 7486fi
68f2de6d
AK
7487ac_res=`eval echo '${'$as_ac_Header'}'`
7488 { echo "$as_me:$LINENO: result: $ac_res" >&5
7489echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
7490else
7491 # Is the header compilable?
68f2de6d
AK
7492{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
7493echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 7494cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7495/* confdefs.h. */
7496_ACEOF
7497cat confdefs.h >>conftest.$ac_ext
7498cat >>conftest.$ac_ext <<_ACEOF
7499/* end confdefs.h. */
7500$ac_includes_default
7501#include <$ac_header>
7502_ACEOF
7503rm -f conftest.$ac_objext
7a197a62
AK
7504if { (ac_try="$ac_compile"
7505case "(($ac_try" in
7506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7507 *) ac_try_echo=$ac_try;;
7508esac
68f2de6d 7509eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7510 (eval "$ac_compile") 2>conftest.er1
ad6254c5 7511 ac_status=$?
8a2fc586
AK
7512 grep -v '^ *+' conftest.er1 >conftest.err
7513 rm -f conftest.er1
7514 cat conftest.err >&5
68f2de6d 7515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7516 (exit $ac_status); } && {
7517 test -z "$ac_c_werror_flag" ||
7518 test ! -s conftest.err
7519 } && test -s conftest.$ac_objext; then
ad6254c5
AK
7520 ac_header_compiler=yes
7521else
68f2de6d 7522 echo "$as_me: failed program was:" >&5
ad6254c5
AK
7523sed 's/^/| /' conftest.$ac_ext >&5
7524
7a197a62 7525 ac_header_compiler=no
ad6254c5 7526fi
7a197a62
AK
7527
7528rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
68f2de6d
AK
7529{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7530echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
7531
7532# Is the header present?
68f2de6d
AK
7533{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
7534echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 7535cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7536/* confdefs.h. */
7537_ACEOF
7538cat confdefs.h >>conftest.$ac_ext
7539cat >>conftest.$ac_ext <<_ACEOF
7540/* end confdefs.h. */
7541#include <$ac_header>
7542_ACEOF
7a197a62
AK
7543if { (ac_try="$ac_cpp conftest.$ac_ext"
7544case "(($ac_try" in
7545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7546 *) ac_try_echo=$ac_try;;
7547esac
68f2de6d 7548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7549 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
7550 ac_status=$?
7551 grep -v '^ *+' conftest.er1 >conftest.err
7552 rm -f conftest.er1
7553 cat conftest.err >&5
68f2de6d 7554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7555 (exit $ac_status); } >/dev/null && {
7556 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7557 test ! -s conftest.err
7558 }; then
ad6254c5
AK
7559 ac_header_preproc=yes
7560else
68f2de6d 7561 echo "$as_me: failed program was:" >&5
ad6254c5
AK
7562sed 's/^/| /' conftest.$ac_ext >&5
7563
7564 ac_header_preproc=no
7565fi
7a197a62 7566
ad6254c5 7567rm -f conftest.err conftest.$ac_ext
68f2de6d
AK
7568{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7569echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
7570
7571# So? What about this header?
8a2fc586
AK
7572case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7573 yes:no: )
68f2de6d
AK
7574 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7575echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7576 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7577echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 7578 ac_header_preproc=yes
ad6254c5 7579 ;;
8a2fc586 7580 no:yes:* )
68f2de6d
AK
7581 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7582echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7583 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7584echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7585 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7586echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7587 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7588echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7589 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7590echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7591 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7592echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 7593
ad6254c5
AK
7594 ;;
7595esac
68f2de6d
AK
7596{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7597echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 7598if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 7599 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 7600else
8a2fc586 7601 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 7602fi
68f2de6d
AK
7603ac_res=`eval echo '${'$as_ac_Header'}'`
7604 { echo "$as_me:$LINENO: result: $ac_res" >&5
7605echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
7606
7607fi
68f2de6d 7608if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 7609 cat >>confdefs.h <<_ACEOF
68f2de6d 7610#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
7611_ACEOF
7612
7613fi
7614
7615done
7616
7617
7618for ac_func in getpagesize
7619do
68f2de6d
AK
7620as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7621{ echo "$as_me:$LINENO: checking for $ac_func" >&5
7622echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7a197a62 7623if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 7624 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
7625else
7626 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7627/* confdefs.h. */
7628_ACEOF
7629cat confdefs.h >>conftest.$ac_ext
7630cat >>conftest.$ac_ext <<_ACEOF
7631/* end confdefs.h. */
8a2fc586
AK
7632/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7633 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7634#define $ac_func innocuous_$ac_func
7635
ad6254c5
AK
7636/* System header to define __stub macros and hopefully few prototypes,
7637 which can conflict with char $ac_func (); below.
7638 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7639 <limits.h> exists even on freestanding compilers. */
8a2fc586 7640
ad6254c5
AK
7641#ifdef __STDC__
7642# include <limits.h>
7643#else
7644# include <assert.h>
7645#endif
8a2fc586
AK
7646
7647#undef $ac_func
7648
7a197a62
AK
7649/* Override any GCC internal prototype to avoid an error.
7650 Use char because int might match the return type of a GCC
7651 builtin and then its argument prototype would still apply. */
ad6254c5
AK
7652#ifdef __cplusplus
7653extern "C"
ad6254c5 7654#endif
ad6254c5
AK
7655char $ac_func ();
7656/* The GNU C library defines this for functions which it implements
7657 to always fail with ENOSYS. Some functions are actually named
7658 something starting with __ and the normal name is an alias. */
7a197a62 7659#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 7660choke me
ad6254c5
AK
7661#endif
7662
7663int
7664main ()
7665{
7a197a62 7666return $ac_func ();
ad6254c5
AK
7667 ;
7668 return 0;
7669}
7670_ACEOF
7671rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
7672if { (ac_try="$ac_link"
7673case "(($ac_try" in
7674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7675 *) ac_try_echo=$ac_try;;
7676esac
68f2de6d 7677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7678 (eval "$ac_link") 2>conftest.er1
ad6254c5 7679 ac_status=$?
8a2fc586
AK
7680 grep -v '^ *+' conftest.er1 >conftest.err
7681 rm -f conftest.er1
7682 cat conftest.err >&5
68f2de6d 7683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7684 (exit $ac_status); } && {
7685 test -z "$ac_c_werror_flag" ||
7686 test ! -s conftest.err
68f2de6d
AK
7687 } && test -s conftest$ac_exeext &&
7688 $as_test_x conftest$ac_exeext; then
ad6254c5
AK
7689 eval "$as_ac_var=yes"
7690else
68f2de6d 7691 echo "$as_me: failed program was:" >&5
ad6254c5
AK
7692sed 's/^/| /' conftest.$ac_ext >&5
7693
7a197a62 7694 eval "$as_ac_var=no"
ad6254c5 7695fi
7a197a62 7696
25fbec5b 7697rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 7698 conftest$ac_exeext conftest.$ac_ext
ad6254c5 7699fi
68f2de6d
AK
7700ac_res=`eval echo '${'$as_ac_var'}'`
7701 { echo "$as_me:$LINENO: result: $ac_res" >&5
7702echo "${ECHO_T}$ac_res" >&6; }
7703if test `eval echo '${'$as_ac_var'}'` = yes; then
ad6254c5 7704 cat >>confdefs.h <<_ACEOF
68f2de6d 7705#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
7706_ACEOF
7707
7708fi
7709done
7710
68f2de6d
AK
7711{ echo "$as_me:$LINENO: checking for working mmap" >&5
7712echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
ad6254c5 7713if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
68f2de6d 7714 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
7715else
7716 if test "$cross_compiling" = yes; then
7717 ac_cv_func_mmap_fixed_mapped=no
7718else
7719 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7720/* confdefs.h. */
7721_ACEOF
7722cat confdefs.h >>conftest.$ac_ext
7723cat >>conftest.$ac_ext <<_ACEOF
7724/* end confdefs.h. */
7725$ac_includes_default
7726/* malloc might have been renamed as rpl_malloc. */
7727#undef malloc
7728
7729/* Thanks to Mike Haertel and Jim Avera for this test.
7730 Here is a matrix of mmap possibilities:
7731 mmap private not fixed
7732 mmap private fixed at somewhere currently unmapped
7733 mmap private fixed at somewhere already mapped
7734 mmap shared not fixed
7735 mmap shared fixed at somewhere currently unmapped
7736 mmap shared fixed at somewhere already mapped
7737 For private mappings, we should verify that changes cannot be read()
7738 back from the file, nor mmap's back from the file at a different
7739 address. (There have been systems where private was not correctly
7740 implemented like the infamous i386 svr4.0, and systems where the
7741 VM page cache was not coherent with the file system buffer cache
7742 like early versions of FreeBSD and possibly contemporary NetBSD.)
7743 For shared mappings, we should conversely verify that changes get
7744 propagated back to all the places they're supposed to be.
7745
7746 Grep wants private fixed already mapped.
7747 The main things grep needs to know about mmap are:
7748 * does it exist and is it safe to write into the mmap'd area
7749 * how to use it (BSD variants) */
7750
7751#include <fcntl.h>
7752#include <sys/mman.h>
7753
25fbec5b 7754#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
ad6254c5
AK
7755char *malloc ();
7756#endif
7757
7758/* This mess was copied from the GNU getpagesize.h. */
25fbec5b 7759#ifndef HAVE_GETPAGESIZE
ad6254c5 7760/* Assume that all systems that can run configure have sys/param.h. */
25fbec5b 7761# ifndef HAVE_SYS_PARAM_H
ad6254c5
AK
7762# define HAVE_SYS_PARAM_H 1
7763# endif
7764
7765# ifdef _SC_PAGESIZE
7766# define getpagesize() sysconf(_SC_PAGESIZE)
7767# else /* no _SC_PAGESIZE */
25fbec5b 7768# ifdef HAVE_SYS_PARAM_H
ad6254c5
AK
7769# include <sys/param.h>
7770# ifdef EXEC_PAGESIZE
7771# define getpagesize() EXEC_PAGESIZE
7772# else /* no EXEC_PAGESIZE */
7773# ifdef NBPG
7774# define getpagesize() NBPG * CLSIZE
7775# ifndef CLSIZE
7776# define CLSIZE 1
7777# endif /* no CLSIZE */
7778# else /* no NBPG */
7779# ifdef NBPC
7780# define getpagesize() NBPC
7781# else /* no NBPC */
7782# ifdef PAGESIZE
7783# define getpagesize() PAGESIZE
7784# endif /* PAGESIZE */
7785# endif /* no NBPC */
7786# endif /* no NBPG */
7787# endif /* no EXEC_PAGESIZE */
7788# else /* no HAVE_SYS_PARAM_H */
7789# define getpagesize() 8192 /* punt totally */
7790# endif /* no HAVE_SYS_PARAM_H */
7791# endif /* no _SC_PAGESIZE */
7792
7793#endif /* no HAVE_GETPAGESIZE */
7794
7795int
7796main ()
7797{
7798 char *data, *data2, *data3;
7799 int i, pagesize;
7800 int fd;
7801
7802 pagesize = getpagesize ();
7803
7804 /* First, make a file with some known garbage in it. */
7805 data = (char *) malloc (pagesize);
7806 if (!data)
7a197a62 7807 return 1;
ad6254c5
AK
7808 for (i = 0; i < pagesize; ++i)
7809 *(data + i) = rand ();
7810 umask (0);
7811 fd = creat ("conftest.mmap", 0600);
7812 if (fd < 0)
7a197a62 7813 return 1;
ad6254c5 7814 if (write (fd, data, pagesize) != pagesize)
7a197a62 7815 return 1;
ad6254c5
AK
7816 close (fd);
7817
7818 /* Next, try to mmap the file at a fixed address which already has
7819 something else allocated at it. If we can, also make sure that
7820 we see the same garbage. */
7821 fd = open ("conftest.mmap", O_RDWR);
7822 if (fd < 0)
7a197a62 7823 return 1;
ad6254c5
AK
7824 data2 = (char *) malloc (2 * pagesize);
7825 if (!data2)
7a197a62
AK
7826 return 1;
7827 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
ad6254c5 7828 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8a2fc586 7829 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7a197a62 7830 return 1;
ad6254c5
AK
7831 for (i = 0; i < pagesize; ++i)
7832 if (*(data + i) != *(data2 + i))
7a197a62 7833 return 1;
ad6254c5
AK
7834
7835 /* Finally, make sure that changes to the mapped area do not
7836 percolate back to the file as seen by read(). (This is a bug on
7837 some variants of i386 svr4.0.) */
7838 for (i = 0; i < pagesize; ++i)
7839 *(data2 + i) = *(data2 + i) + 1;
7840 data3 = (char *) malloc (pagesize);
7841 if (!data3)
7a197a62 7842 return 1;
ad6254c5 7843 if (read (fd, data3, pagesize) != pagesize)
7a197a62 7844 return 1;
ad6254c5
AK
7845 for (i = 0; i < pagesize; ++i)
7846 if (*(data + i) != *(data3 + i))
7a197a62 7847 return 1;
ad6254c5 7848 close (fd);
7a197a62 7849 return 0;
ad6254c5
AK
7850}
7851_ACEOF
7852rm -f conftest$ac_exeext
7a197a62
AK
7853if { (ac_try="$ac_link"
7854case "(($ac_try" in
7855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7856 *) ac_try_echo=$ac_try;;
7857esac
68f2de6d 7858eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7859 (eval "$ac_link") 2>&5
ad6254c5 7860 ac_status=$?
68f2de6d 7861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7862 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7863 { (case "(($ac_try" in
7864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7865 *) ac_try_echo=$ac_try;;
7866esac
68f2de6d 7867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7868 (eval "$ac_try") 2>&5
ad6254c5 7869 ac_status=$?
68f2de6d 7870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7871 (exit $ac_status); }; }; then
7872 ac_cv_func_mmap_fixed_mapped=yes
7873else
68f2de6d
AK
7874 echo "$as_me: program exited with status $ac_status" >&5
7875echo "$as_me: failed program was:" >&5
ad6254c5
AK
7876sed 's/^/| /' conftest.$ac_ext >&5
7877
7878( exit $ac_status )
7879ac_cv_func_mmap_fixed_mapped=no
7880fi
7a197a62 7881rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7882fi
7a197a62
AK
7883
7884
ad6254c5 7885fi
68f2de6d
AK
7886{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7887echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
ad6254c5
AK
7888if test $ac_cv_func_mmap_fixed_mapped = yes; then
7889
7890cat >>confdefs.h <<\_ACEOF
7891#define HAVE_MMAP 1
7892_ACEOF
7893
7894fi
7895rm -f conftest.mmap
7896
68f2de6d
AK
7897{ echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
7898echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
ad6254c5 7899if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
68f2de6d 7900 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
7901else
7902 if test "$cross_compiling" = yes; then
7903 ac_cv_func_stat_empty_string_bug=yes
7904else
7905 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7906/* confdefs.h. */
7907_ACEOF
7908cat confdefs.h >>conftest.$ac_ext
7909cat >>conftest.$ac_ext <<_ACEOF
7910/* end confdefs.h. */
7911$ac_includes_default
7912int
7913main ()
7914{
7915struct stat sbuf;
7a197a62 7916 return stat ("", &sbuf) == 0;
ad6254c5
AK
7917 ;
7918 return 0;
7919}
7920_ACEOF
7921rm -f conftest$ac_exeext
7a197a62
AK
7922if { (ac_try="$ac_link"
7923case "(($ac_try" in
7924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7925 *) ac_try_echo=$ac_try;;
7926esac
68f2de6d 7927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7928 (eval "$ac_link") 2>&5
ad6254c5 7929 ac_status=$?
68f2de6d 7930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7931 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7932 { (case "(($ac_try" in
7933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7934 *) ac_try_echo=$ac_try;;
7935esac
68f2de6d 7936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7937 (eval "$ac_try") 2>&5
ad6254c5 7938 ac_status=$?
68f2de6d 7939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7940 (exit $ac_status); }; }; then
7a197a62 7941 ac_cv_func_stat_empty_string_bug=no
ad6254c5 7942else
68f2de6d
AK
7943 echo "$as_me: program exited with status $ac_status" >&5
7944echo "$as_me: failed program was:" >&5
ad6254c5
AK
7945sed 's/^/| /' conftest.$ac_ext >&5
7946
7947( exit $ac_status )
7a197a62 7948ac_cv_func_stat_empty_string_bug=yes
ad6254c5 7949fi
7a197a62 7950rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7951fi
7a197a62
AK
7952
7953
ad6254c5 7954fi
68f2de6d
AK
7955{ echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
7956echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
ad6254c5 7957if test $ac_cv_func_stat_empty_string_bug = yes; then
7a197a62 7958 case " $LIBOBJS " in
8a2fc586 7959 *" stat.$ac_objext "* ) ;;
7a197a62
AK
7960 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
7961 ;;
8a2fc586
AK
7962esac
7963
ad6254c5
AK
7964
7965cat >>confdefs.h <<_ACEOF
7966#define HAVE_STAT_EMPTY_STRING_BUG 1
7967_ACEOF
7968
7969fi
7970
68f2de6d
AK
7971{ echo "$as_me:$LINENO: checking for working strtod" >&5
7972echo $ECHO_N "checking for working strtod... $ECHO_C" >&6; }
ad6254c5 7973if test "${ac_cv_func_strtod+set}" = set; then
68f2de6d 7974 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
7975else
7976 if test "$cross_compiling" = yes; then
7977 ac_cv_func_strtod=no
7978else
7979 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7980/* confdefs.h. */
7981_ACEOF
7982cat confdefs.h >>conftest.$ac_ext
7983cat >>conftest.$ac_ext <<_ACEOF
7984/* end confdefs.h. */
7985
7a197a62
AK
7986$ac_includes_default
7987#ifndef strtod
ad6254c5 7988double strtod ();
7a197a62 7989#endif
ad6254c5
AK
7990int
7991main()
7992{
7993 {
7994 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
7995 char *string = " +69";
7996 char *term;
7997 double value;
7998 value = strtod (string, &term);
7999 if (value != 69 || term != (string + 4))
7a197a62 8000 return 1;
ad6254c5
AK
8001 }
8002
8003 {
8004 /* Under Solaris 2.4, strtod returns the wrong value for the
8005 terminating character under some conditions. */
8006 char *string = "NaN";
8007 char *term;
8008 strtod (string, &term);
8009 if (term != string && *(term - 1) == 0)
7a197a62 8010 return 1;
ad6254c5 8011 }
7a197a62 8012 return 0;
ad6254c5
AK
8013}
8014
8015_ACEOF
8016rm -f conftest$ac_exeext
7a197a62
AK
8017if { (ac_try="$ac_link"
8018case "(($ac_try" in
8019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8020 *) ac_try_echo=$ac_try;;
8021esac
68f2de6d 8022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 8023 (eval "$ac_link") 2>&5
ad6254c5 8024 ac_status=$?
68f2de6d 8025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 8026 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
8027 { (case "(($ac_try" in
8028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8029 *) ac_try_echo=$ac_try;;
8030esac
68f2de6d 8031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 8032 (eval "$ac_try") 2>&5
ad6254c5 8033 ac_status=$?
68f2de6d 8034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
8035 (exit $ac_status); }; }; then
8036 ac_cv_func_strtod=yes
8037else
68f2de6d
AK
8038 echo "$as_me: program exited with status $ac_status" >&5
8039echo "$as_me: failed program was:" >&5
ad6254c5
AK
8040sed 's/^/| /' conftest.$ac_ext >&5
8041
8042( exit $ac_status )
8043ac_cv_func_strtod=no
8044fi
7a197a62 8045rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 8046fi
7a197a62
AK
8047
8048
ad6254c5 8049fi
68f2de6d
AK
8050{ echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
8051echo "${ECHO_T}$ac_cv_func_strtod" >&6; }
ad6254c5 8052if test $ac_cv_func_strtod = no; then
7a197a62 8053 case " $LIBOBJS " in
8a2fc586 8054 *" strtod.$ac_objext "* ) ;;
7a197a62
AK
8055 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
8056 ;;
8a2fc586
AK
8057esac
8058
68f2de6d
AK
8059{ echo "$as_me:$LINENO: checking for pow" >&5
8060echo $ECHO_N "checking for pow... $ECHO_C" >&6; }
ad6254c5 8061if test "${ac_cv_func_pow+set}" = set; then
68f2de6d 8062 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
8063else
8064 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8065/* confdefs.h. */
8066_ACEOF
8067cat confdefs.h >>conftest.$ac_ext
8068cat >>conftest.$ac_ext <<_ACEOF
8069/* end confdefs.h. */
8a2fc586
AK
8070/* Define pow to an innocuous variant, in case <limits.h> declares pow.
8071 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8072#define pow innocuous_pow
8073
ad6254c5
AK
8074/* System header to define __stub macros and hopefully few prototypes,
8075 which can conflict with char pow (); below.
8076 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8077 <limits.h> exists even on freestanding compilers. */
8a2fc586 8078
ad6254c5
AK
8079#ifdef __STDC__
8080# include <limits.h>
8081#else
8082# include <assert.h>
8083#endif
8a2fc586
AK
8084
8085#undef pow
8086
7a197a62
AK
8087/* Override any GCC internal prototype to avoid an error.
8088 Use char because int might match the return type of a GCC
8089 builtin and then its argument prototype would still apply. */
ad6254c5
AK
8090#ifdef __cplusplus
8091extern "C"
ad6254c5 8092#endif
ad6254c5
AK
8093char pow ();
8094/* The GNU C library defines this for functions which it implements
8095 to always fail with ENOSYS. Some functions are actually named
8096 something starting with __ and the normal name is an alias. */
7a197a62 8097#if defined __stub_pow || defined __stub___pow
ad6254c5 8098choke me
ad6254c5
AK
8099#endif
8100
8101int
8102main ()
8103{
7a197a62 8104return pow ();
ad6254c5
AK
8105 ;
8106 return 0;
8107}
8108_ACEOF
8109rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
8110if { (ac_try="$ac_link"
8111case "(($ac_try" in
8112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8113 *) ac_try_echo=$ac_try;;
8114esac
68f2de6d 8115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 8116 (eval "$ac_link") 2>conftest.er1
ad6254c5 8117 ac_status=$?
8a2fc586
AK
8118 grep -v '^ *+' conftest.er1 >conftest.err
8119 rm -f conftest.er1
8120 cat conftest.err >&5
68f2de6d 8121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8122 (exit $ac_status); } && {
8123 test -z "$ac_c_werror_flag" ||
8124 test ! -s conftest.err
68f2de6d
AK
8125 } && test -s conftest$ac_exeext &&
8126 $as_test_x conftest$ac_exeext; then
ad6254c5
AK
8127 ac_cv_func_pow=yes
8128else
68f2de6d 8129 echo "$as_me: failed program was:" >&5
ad6254c5
AK
8130sed 's/^/| /' conftest.$ac_ext >&5
8131
7a197a62 8132 ac_cv_func_pow=no
ad6254c5 8133fi
7a197a62 8134
25fbec5b 8135rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 8136 conftest$ac_exeext conftest.$ac_ext
ad6254c5 8137fi
68f2de6d
AK
8138{ echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
8139echo "${ECHO_T}$ac_cv_func_pow" >&6; }
ad6254c5
AK
8140
8141if test $ac_cv_func_pow = no; then
68f2de6d
AK
8142 { echo "$as_me:$LINENO: checking for pow in -lm" >&5
8143echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6; }
ad6254c5 8144if test "${ac_cv_lib_m_pow+set}" = set; then
68f2de6d 8145 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
8146else
8147 ac_check_lib_save_LIBS=$LIBS
8148LIBS="-lm $LIBS"
8149cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8150/* confdefs.h. */
8151_ACEOF
8152cat confdefs.h >>conftest.$ac_ext
8153cat >>conftest.$ac_ext <<_ACEOF
8154/* end confdefs.h. */
8155
7a197a62
AK
8156/* Override any GCC internal prototype to avoid an error.
8157 Use char because int might match the return type of a GCC
8158 builtin and then its argument prototype would still apply. */
ad6254c5
AK
8159#ifdef __cplusplus
8160extern "C"
8161#endif
ad6254c5
AK
8162char pow ();
8163int
8164main ()
8165{
7a197a62 8166return pow ();
ad6254c5
AK
8167 ;
8168 return 0;
8169}
8170_ACEOF
8171rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
8172if { (ac_try="$ac_link"
8173case "(($ac_try" in
8174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8175 *) ac_try_echo=$ac_try;;
8176esac
68f2de6d 8177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 8178 (eval "$ac_link") 2>conftest.er1
ad6254c5 8179 ac_status=$?
8a2fc586
AK
8180 grep -v '^ *+' conftest.er1 >conftest.err
8181 rm -f conftest.er1
8182 cat conftest.err >&5
68f2de6d 8183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8184 (exit $ac_status); } && {
8185 test -z "$ac_c_werror_flag" ||
8186 test ! -s conftest.err
68f2de6d
AK
8187 } && test -s conftest$ac_exeext &&
8188 $as_test_x conftest$ac_exeext; then
ad6254c5
AK
8189 ac_cv_lib_m_pow=yes
8190else
68f2de6d 8191 echo "$as_me: failed program was:" >&5
ad6254c5
AK
8192sed 's/^/| /' conftest.$ac_ext >&5
8193
7a197a62 8194 ac_cv_lib_m_pow=no
ad6254c5 8195fi
7a197a62 8196
25fbec5b 8197rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 8198 conftest$ac_exeext conftest.$ac_ext
ad6254c5 8199LIBS=$ac_check_lib_save_LIBS
d0191583 8200fi
68f2de6d
AK
8201{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
8202echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; }
d0191583
JM
8203if test $ac_cv_lib_m_pow = yes; then
8204 POW_LIB=-lm
8205else
68f2de6d
AK
8206 { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
8207echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
d0191583 8208fi
72b2cb61 8209
d0191583 8210fi
72b2cb61 8211
ad6254c5
AK
8212fi
8213
ad6254c5 8214
d0191583
JM
8215for ac_func in vprintf
8216do
68f2de6d
AK
8217as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8218{ echo "$as_me:$LINENO: checking for $ac_func" >&5
8219echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
d0191583 8220if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 8221 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 8222else
d0191583
JM
8223 cat >conftest.$ac_ext <<_ACEOF
8224/* confdefs.h. */
8225_ACEOF
8226cat confdefs.h >>conftest.$ac_ext
8227cat >>conftest.$ac_ext <<_ACEOF
8228/* end confdefs.h. */
8229/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8230 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8231#define $ac_func innocuous_$ac_func
7a197a62 8232
d0191583
JM
8233/* System header to define __stub macros and hopefully few prototypes,
8234 which can conflict with char $ac_func (); below.
8235 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8236 <limits.h> exists even on freestanding compilers. */
ad6254c5 8237
d0191583
JM
8238#ifdef __STDC__
8239# include <limits.h>
8240#else
8241# include <assert.h>
8242#endif
ad6254c5 8243
d0191583 8244#undef $ac_func
72b2cb61 8245
d0191583
JM
8246/* Override any GCC internal prototype to avoid an error.
8247 Use char because int might match the return type of a GCC
8248 builtin and then its argument prototype would still apply. */
8249#ifdef __cplusplus
8250extern "C"
8251#endif
8252char $ac_func ();
8253/* The GNU C library defines this for functions which it implements
8254 to always fail with ENOSYS. Some functions are actually named
8255 something starting with __ and the normal name is an alias. */
8256#if defined __stub_$ac_func || defined __stub___$ac_func
8257choke me
8258#endif
8259
8260int
8261main ()
8262{
8263return $ac_func ();
8264 ;
8265 return 0;
8266}
72b2cb61 8267_ACEOF
d0191583
JM
8268rm -f conftest.$ac_objext conftest$ac_exeext
8269if { (ac_try="$ac_link"
8270case "(($ac_try" in
8271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8272 *) ac_try_echo=$ac_try;;
8273esac
68f2de6d 8274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
d0191583
JM
8275 (eval "$ac_link") 2>conftest.er1
8276 ac_status=$?
8277 grep -v '^ *+' conftest.er1 >conftest.err
8278 rm -f conftest.er1
8279 cat conftest.err >&5
68f2de6d 8280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
8281 (exit $ac_status); } && {
8282 test -z "$ac_c_werror_flag" ||
8283 test ! -s conftest.err
68f2de6d
AK
8284 } && test -s conftest$ac_exeext &&
8285 $as_test_x conftest$ac_exeext; then
d0191583
JM
8286 eval "$as_ac_var=yes"
8287else
68f2de6d 8288 echo "$as_me: failed program was:" >&5
d0191583 8289sed 's/^/| /' conftest.$ac_ext >&5
72b2cb61 8290
d0191583 8291 eval "$as_ac_var=no"
ad6254c5
AK
8292fi
8293
d0191583
JM
8294rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8295 conftest$ac_exeext conftest.$ac_ext
7a197a62 8296fi
68f2de6d
AK
8297ac_res=`eval echo '${'$as_ac_var'}'`
8298 { echo "$as_me:$LINENO: result: $ac_res" >&5
8299echo "${ECHO_T}$ac_res" >&6; }
8300if test `eval echo '${'$as_ac_var'}'` = yes; then
d0191583 8301 cat >>confdefs.h <<_ACEOF
68f2de6d 8302#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
d0191583 8303_ACEOF
7a197a62 8304
68f2de6d
AK
8305{ echo "$as_me:$LINENO: checking for _doprnt" >&5
8306echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
d0191583 8307if test "${ac_cv_func__doprnt+set}" = set; then
68f2de6d 8308 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 8309else
d0191583
JM
8310 cat >conftest.$ac_ext <<_ACEOF
8311/* confdefs.h. */
8312_ACEOF
8313cat confdefs.h >>conftest.$ac_ext
8314cat >>conftest.$ac_ext <<_ACEOF
8315/* end confdefs.h. */
8316/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
8317 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8318#define _doprnt innocuous__doprnt
7a197a62 8319
d0191583
JM
8320/* System header to define __stub macros and hopefully few prototypes,
8321 which can conflict with char _doprnt (); below.
8322 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8323 <limits.h> exists even on freestanding compilers. */
ad6254c5 8324
d0191583
JM
8325#ifdef __STDC__
8326# include <limits.h>
8327#else
8328# include <assert.h>
8329#endif
72b2cb61 8330
d0191583
JM
8331#undef _doprnt
8332
8333/* Override any GCC internal prototype to avoid an error.
8334 Use char because int might match the return type of a GCC
8335 builtin and then its argument prototype would still apply. */
8336#ifdef __cplusplus
8337extern "C"
8338#endif
8339char _doprnt ();
8340/* The GNU C library defines this for functions which it implements
8341 to always fail with ENOSYS. Some functions are actually named
8342 something starting with __ and the normal name is an alias. */
8343#if defined __stub__doprnt || defined __stub____doprnt
8344choke me
8345#endif
8346
8347int
8348main ()
8349{
8350return _doprnt ();
8351 ;
8352 return 0;
8353}
72b2cb61 8354_ACEOF
d0191583
JM
8355rm -f conftest.$ac_objext conftest$ac_exeext
8356if { (ac_try="$ac_link"
8357case "(($ac_try" in
8358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8359 *) ac_try_echo=$ac_try;;
8360esac
68f2de6d 8361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
d0191583
JM
8362 (eval "$ac_link") 2>conftest.er1
8363 ac_status=$?
8364 grep -v '^ *+' conftest.er1 >conftest.err
8365 rm -f conftest.er1
8366 cat conftest.err >&5
68f2de6d 8367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
8368 (exit $ac_status); } && {
8369 test -z "$ac_c_werror_flag" ||
8370 test ! -s conftest.err
68f2de6d
AK
8371 } && test -s conftest$ac_exeext &&
8372 $as_test_x conftest$ac_exeext; then
d0191583
JM
8373 ac_cv_func__doprnt=yes
8374else
68f2de6d 8375 echo "$as_me: failed program was:" >&5
d0191583 8376sed 's/^/| /' conftest.$ac_ext >&5
72b2cb61 8377
d0191583 8378 ac_cv_func__doprnt=no
ad6254c5
AK
8379fi
8380
d0191583
JM
8381rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8382 conftest$ac_exeext conftest.$ac_ext
7a197a62 8383fi
68f2de6d
AK
8384{ echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
8385echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
d0191583 8386if test $ac_cv_func__doprnt = yes; then
7a197a62 8387
d0191583
JM
8388cat >>confdefs.h <<\_ACEOF
8389#define HAVE_DOPRNT 1
8390_ACEOF
ad6254c5 8391
7a197a62
AK
8392fi
8393
d0191583
JM
8394fi
8395done
8b1a3214 8396
ad6254c5 8397
7a197a62 8398
d0191583 8399################################################################################
ad6254c5 8400
ad6254c5
AK
8401
8402################################################################################
68f2de6d
AK
8403{ echo "$as_me:$LINENO: checking file owner" >&5
8404echo $ECHO_N "checking file owner... $ECHO_C" >&6; }
d0191583
JM
8405OWNER="root"
8406
8407
8408# Check whether --with-user was given.
8409if test "${with_user+set}" = set; then
8410 withval=$with_user; OWNER="$withval"
7a197a62
AK
8411fi
8412
68f2de6d
AK
8413{ echo "$as_me:$LINENO: result: $OWNER" >&5
8414echo "${ECHO_T}$OWNER" >&6; }
ad6254c5 8415
d0191583
JM
8416if test x$OWNER != x; then
8417 OWNER="-o $OWNER"
ad6254c5
AK
8418fi
8419
8420################################################################################
68f2de6d
AK
8421{ echo "$as_me:$LINENO: checking group owner" >&5
8422echo $ECHO_N "checking group owner... $ECHO_C" >&6; }
d0191583 8423GROUP="root"
ad6254c5 8424
d0191583
JM
8425# Check whether --with-group was given.
8426if test "${with_group+set}" = set; then
8427 withval=$with_group; GROUP="$withval"
7a197a62
AK
8428fi
8429
68f2de6d
AK
8430{ echo "$as_me:$LINENO: result: $GROUP" >&5
8431echo "${ECHO_T}$GROUP" >&6; }
d0191583
JM
8432
8433if test x$GROUP != x; then
8434 GROUP="-g $GROUP"
8435fi
ad6254c5 8436
24bbc4d7
AK
8437################################################################################
8438{ echo "$as_me:$LINENO: checking device node uid" >&5
8439echo $ECHO_N "checking device node uid... $ECHO_C" >&6; }
8440
8441
8442# Check whether --with-device-uid was given.
8443if test "${with_device_uid+set}" = set; then
8444 withval=$with_device_uid; DM_DEVICE_UID="$withval"
8445else
8446 DM_DEVICE_UID="0"
8447fi
8448
8449{ echo "$as_me:$LINENO: result: $DM_DEVICE_UID" >&5
8450echo "${ECHO_T}$DM_DEVICE_UID" >&6; }
8451
8452################################################################################
8453{ echo "$as_me:$LINENO: checking device node gid" >&5
8454echo $ECHO_N "checking device node gid... $ECHO_C" >&6; }
8455
8456
8457# Check whether --with-device-gid was given.
8458if test "${with_device_gid+set}" = set; then
8459 withval=$with_device_gid; DM_DEVICE_GID="$withval"
8460else
8461 DM_DEVICE_GID="0"
8462fi
8463
8464{ echo "$as_me:$LINENO: result: $DM_DEVICE_GID" >&5
8465echo "${ECHO_T}$DM_DEVICE_GID" >&6; }
8466
93bd259b
AK
8467################################################################################
8468{ echo "$as_me:$LINENO: checking device node mode" >&5
8469echo $ECHO_N "checking device node mode... $ECHO_C" >&6; }
8470
8471
8472# Check whether --with-device-mode was given.
8473if test "${with_device_mode+set}" = set; then
8474 withval=$with_device_mode; DM_DEVICE_MODE="$withval"
8475else
8476 DM_DEVICE_MODE="0600"
8477fi
8478
8479{ echo "$as_me:$LINENO: result: $DM_DEVICE_MODE" >&5
8480echo "${ECHO_T}$DM_DEVICE_MODE" >&6; }
8481
ad6254c5 8482################################################################################
68f2de6d
AK
8483{ echo "$as_me:$LINENO: checking whether to enable lvm1 fallback" >&5
8484echo $ECHO_N "checking whether to enable lvm1 fallback... $ECHO_C" >&6; }
d0191583
JM
8485# Check whether --enable-lvm1_fallback was given.
8486if test "${enable_lvm1_fallback+set}" = set; then
8487 enableval=$enable_lvm1_fallback; LVM1_FALLBACK=$enableval
8488else
8489 LVM1_FALLBACK=no
7a197a62
AK
8490fi
8491
68f2de6d
AK
8492{ echo "$as_me:$LINENO: result: $LVM1_FALLBACK" >&5
8493echo "${ECHO_T}$LVM1_FALLBACK" >&6; }
ad6254c5 8494
d0191583 8495if test x$LVM1_FALLBACK = xyes; then
72b2cb61
AK
8496
8497cat >>confdefs.h <<\_ACEOF
d0191583 8498#define LVM1_FALLBACK 1
72b2cb61
AK
8499_ACEOF
8500
ad6254c5
AK
8501fi
8502
8503################################################################################
68f2de6d
AK
8504{ echo "$as_me:$LINENO: checking whether to include support for lvm1 metadata" >&5
8505echo $ECHO_N "checking whether to include support for lvm1 metadata... $ECHO_C" >&6; }
d0191583
JM
8506
8507# Check whether --with-lvm1 was given.
8508if test "${with_lvm1+set}" = set; then
8509 withval=$with_lvm1; LVM1="$withval"
8510else
8511 LVM1="internal"
7a197a62
AK
8512fi
8513
68f2de6d
AK
8514{ echo "$as_me:$LINENO: result: $LVM1" >&5
8515echo "${ECHO_T}$LVM1" >&6; }
ad6254c5 8516
d0191583 8517if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ];
68f2de6d 8518 then { { echo "$as_me:$LINENO: error: --with-lvm1 parameter invalid
d0191583 8519" >&5
68f2de6d 8520echo "$as_me: error: --with-lvm1 parameter invalid
d0191583
JM
8521" >&2;}
8522 { (exit 1); exit 1; }; }
8523fi;
8524
8525if test x$LVM1 = xinternal; then
72b2cb61
AK
8526
8527cat >>confdefs.h <<\_ACEOF
d0191583 8528#define LVM1_INTERNAL 1
72b2cb61
AK
8529_ACEOF
8530
ad6254c5
AK
8531fi
8532
8533################################################################################
68f2de6d
AK
8534{ echo "$as_me:$LINENO: checking whether to include support for GFS pool metadata" >&5
8535echo $ECHO_N "checking whether to include support for GFS pool metadata... $ECHO_C" >&6; }
d0191583
JM
8536
8537# Check whether --with-pool was given.
8538if test "${with_pool+set}" = set; then
8539 withval=$with_pool; POOL="$withval"
ad6254c5 8540else
d0191583 8541 POOL="internal"
7a197a62
AK
8542fi
8543
68f2de6d
AK
8544{ echo "$as_me:$LINENO: result: $POOL" >&5
8545echo "${ECHO_T}$POOL" >&6; }
ad6254c5 8546
d0191583 8547if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ];
68f2de6d 8548 then { { echo "$as_me:$LINENO: error: --with-pool parameter invalid
d0191583 8549" >&5
68f2de6d 8550echo "$as_me: error: --with-pool parameter invalid
d0191583
JM
8551" >&2;}
8552 { (exit 1); exit 1; }; }
8553fi;
7a197a62 8554
d0191583
JM
8555if test x$POOL = xinternal; then
8556
8557cat >>confdefs.h <<\_ACEOF
8558#define POOL_INTERNAL 1
8559_ACEOF
8560
8561fi
ad6254c5 8562
06f62ad1 8563################################################################################
68f2de6d
AK
8564{ echo "$as_me:$LINENO: checking whether to include support for cluster locking" >&5
8565echo $ECHO_N "checking whether to include support for cluster locking... $ECHO_C" >&6; }
d0191583
JM
8566
8567# Check whether --with-cluster was given.
8568if test "${with_cluster+set}" = set; then
8569 withval=$with_cluster; CLUSTER="$withval"
7a197a62
AK
8570fi
8571
68f2de6d
AK
8572{ echo "$as_me:$LINENO: result: $CLUSTER" >&5
8573echo "${ECHO_T}$CLUSTER" >&6; }
06f62ad1 8574
d0191583 8575if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ];
68f2de6d 8576 then { { echo "$as_me:$LINENO: error: --with-cluster parameter invalid
06f62ad1 8577" >&5
68f2de6d 8578echo "$as_me: error: --with-cluster parameter invalid
06f62ad1
AK
8579" >&2;}
8580 { (exit 1); exit 1; }; }
d0191583 8581fi;
06f62ad1 8582
d0191583 8583if test x$CLUSTER = xinternal; then
72b2cb61
AK
8584
8585cat >>confdefs.h <<\_ACEOF
d0191583 8586#define CLUSTER_LOCKING_INTERNAL 1
72b2cb61
AK
8587_ACEOF
8588
15d91f5a 8589fi
ad6254c5
AK
8590
8591################################################################################
68f2de6d
AK
8592{ echo "$as_me:$LINENO: checking whether to include snapshots" >&5
8593echo $ECHO_N "checking whether to include snapshots... $ECHO_C" >&6; }
ad6254c5 8594
d0191583
JM
8595# Check whether --with-snapshots was given.
8596if test "${with_snapshots+set}" = set; then
8597 withval=$with_snapshots; SNAPSHOTS="$withval"
8598else
8599 SNAPSHOTS="internal"
ad6254c5
AK
8600fi
8601
68f2de6d
AK
8602{ echo "$as_me:$LINENO: result: $SNAPSHOTS" >&5
8603echo "${ECHO_T}$SNAPSHOTS" >&6; }
ad6254c5 8604
d0191583 8605if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ];
68f2de6d 8606 then { { echo "$as_me:$LINENO: error: --with-snapshots parameter invalid
d0191583 8607" >&5
68f2de6d 8608echo "$as_me: error: --with-snapshots parameter invalid
d0191583
JM
8609" >&2;}
8610 { (exit 1); exit 1; }; }
8611fi;
8612
8613if test x$SNAPSHOTS = xinternal; then
8614
8615cat >>confdefs.h <<\_ACEOF
8616#define SNAPSHOT_INTERNAL 1
8617_ACEOF
ad6254c5 8618
ad6254c5 8619fi
7a197a62 8620
d0191583 8621################################################################################
68f2de6d
AK
8622{ echo "$as_me:$LINENO: checking whether to include mirrors" >&5
8623echo $ECHO_N "checking whether to include mirrors... $ECHO_C" >&6; }
d0191583
JM
8624
8625# Check whether --with-mirrors was given.
8626if test "${with_mirrors+set}" = set; then
8627 withval=$with_mirrors; MIRRORS="$withval"
8628else
8629 MIRRORS="internal"
ad6254c5 8630fi
ad6254c5 8631
68f2de6d
AK
8632{ echo "$as_me:$LINENO: result: $MIRRORS" >&5
8633echo "${ECHO_T}$MIRRORS" >&6; }
ad6254c5 8634
d0191583 8635if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ];
68f2de6d 8636 then { { echo "$as_me:$LINENO: error: --with-mirrors parameter invalid
d0191583 8637" >&5
68f2de6d 8638echo "$as_me: error: --with-mirrors parameter invalid
d0191583
JM
8639" >&2;}
8640 { (exit 1); exit 1; }; }
8641fi;
ad6254c5 8642
d0191583 8643if test x$MIRRORS = xinternal; then
ad6254c5 8644
d0191583
JM
8645cat >>confdefs.h <<\_ACEOF
8646#define MIRRORED_INTERNAL 1
ad6254c5 8647_ACEOF
8a2fc586 8648
d0191583 8649fi
8a2fc586 8650
d0191583 8651################################################################################
68f2de6d
AK
8652{ echo "$as_me:$LINENO: checking whether to enable readline" >&5
8653echo $ECHO_N "checking whether to enable readline... $ECHO_C" >&6; }
d0191583
JM
8654# Check whether --enable-readline was given.
8655if test "${enable_readline+set}" = set; then
8656 enableval=$enable_readline; READLINE=$enableval
8657else
06e459df 8658 READLINE=maybe
d0191583 8659fi
8a2fc586 8660
68f2de6d
AK
8661{ echo "$as_me:$LINENO: result: $READLINE" >&5
8662echo "${ECHO_T}$READLINE" >&6; }
8a2fc586 8663
d0191583 8664################################################################################
68f2de6d
AK
8665{ echo "$as_me:$LINENO: checking whether to enable realtime support" >&5
8666echo $ECHO_N "checking whether to enable realtime support... $ECHO_C" >&6; }
d0191583
JM
8667# Check whether --enable-realtime was given.
8668if test "${enable_realtime+set}" = set; then
8669 enableval=$enable_realtime; REALTIME=$enableval
ad6254c5 8670fi
ad6254c5 8671
68f2de6d
AK
8672{ echo "$as_me:$LINENO: result: $REALTIME" >&5
8673echo "${ECHO_T}$REALTIME" >&6; }
d0191583
JM
8674
8675################################################################################
68f2de6d
AK
8676{ echo "$as_me:$LINENO: checking whether to build cluster LVM daemon" >&5
8677echo $ECHO_N "checking whether to build cluster LVM daemon... $ECHO_C" >&6; }
d0191583
JM
8678
8679# Check whether --with-clvmd was given.
8680if test "${with_clvmd+set}" = set; then
8681 withval=$with_clvmd; CLVMD="$withval"
ad6254c5 8682else
d0191583
JM
8683 CLVMD="none"
8684fi
8a2fc586 8685
d0191583
JM
8686if test x$CLVMD = xyes; then
8687 CLVMD=all
8688fi
68f2de6d
AK
8689{ echo "$as_me:$LINENO: result: $CLVMD" >&5
8690echo "${ECHO_T}$CLVMD" >&6; }
8a2fc586 8691
d0191583
JM
8692if test x$CLVMD != xnone && test x$CLUSTER = xnone; then
8693 CLUSTER=internal
8694fi
8a2fc586 8695
d0191583 8696################################################################################
68f2de6d
AK
8697{ echo "$as_me:$LINENO: checking whether to enable debugging" >&5
8698echo $ECHO_N "checking whether to enable debugging... $ECHO_C" >&6; }
d0191583
JM
8699# Check whether --enable-debug was given.
8700if test "${enable_debug+set}" = set; then
8701 enableval=$enable_debug; DEBUG=$enableval
8702else
8703 DEBUG=no
8704fi
8a2fc586 8705
68f2de6d
AK
8706{ echo "$as_me:$LINENO: result: $DEBUG" >&5
8707echo "${ECHO_T}$DEBUG" >&6; }
ad6254c5 8708
d0191583
JM
8709if test x$DEBUG = xyes; then
8710 COPTIMISE_FLAG=
fc54be10 8711else
d0191583
JM
8712 CSCOPE_CMD=
8713fi
fc54be10 8714
d0191583 8715################################################################################
68f2de6d
AK
8716{ echo "$as_me:$LINENO: checking for C optimisation flag" >&5
8717echo $ECHO_N "checking for C optimisation flag... $ECHO_C" >&6; }
d0191583
JM
8718
8719# Check whether --with-optimisation was given.
8720if test "${with_optimisation+set}" = set; then
8721 withval=$with_optimisation; COPTIMISE_FLAG="$withval"
8722fi
8723
68f2de6d
AK
8724{ echo "$as_me:$LINENO: result: $COPTIMISE_FLAG" >&5
8725echo "${ECHO_T}$COPTIMISE_FLAG" >&6; }
fddafd51
ZK
8726
8727################################################################################
68f2de6d
AK
8728{ echo "$as_me:$LINENO: checking whether to gather gcov profiling data" >&5
8729echo $ECHO_N "checking whether to gather gcov profiling data... $ECHO_C" >&6; }
fddafd51
ZK
8730# Check whether --enable-profiling was given.
8731if test "${enable_profiling+set}" = set; then
5556819a 8732 enableval=$enable_profiling; PROFILING=$enableval
fddafd51 8733else
5556819a 8734 PROFILING=no
fddafd51
ZK
8735fi
8736
68f2de6d
AK
8737{ echo "$as_me:$LINENO: result: $PROFILING" >&5
8738echo "${ECHO_T}$PROFILING" >&6; }
5556819a
AK
8739
8740if test "x$PROFILING" = xyes; then
8741 COPTIMISE_FLAG="$COPTIMISE_FLAG -fprofile-arcs -ftest-coverage"
8742 # Extract the first word of "lcov", so it can be a program name with args.
fddafd51 8743set dummy lcov; ac_word=$2
68f2de6d
AK
8744{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8745echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
fddafd51 8746if test "${ac_cv_path_LCOV+set}" = set; then
68f2de6d 8747 echo $ECHO_N "(cached) $ECHO_C" >&6
fddafd51
ZK
8748else
8749 case $LCOV in
8750 [\\/]* | ?:[\\/]*)
8751 ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path.
8752 ;;
8753 *)
8754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8755for as_dir in $PATH
8756do
8757 IFS=$as_save_IFS
8758 test -z "$as_dir" && as_dir=.
8759 for ac_exec_ext in '' $ac_executable_extensions; do
8760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8761 ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext"
68f2de6d 8762 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
fddafd51
ZK
8763 break 2
8764 fi
8765done
8766done
8767IFS=$as_save_IFS
8768
b145d876 8769 test -z "$ac_cv_path_LCOV" && ac_cv_path_LCOV="no"
fddafd51
ZK
8770 ;;
8771esac
8772fi
8773LCOV=$ac_cv_path_LCOV
8774if test -n "$LCOV"; then
68f2de6d
AK
8775 { echo "$as_me:$LINENO: result: $LCOV" >&5
8776echo "${ECHO_T}$LCOV" >&6; }
fddafd51 8777else
68f2de6d
AK
8778 { echo "$as_me:$LINENO: result: no" >&5
8779echo "${ECHO_T}no" >&6; }
fddafd51
ZK
8780fi
8781
8782
5556819a 8783 # Extract the first word of "genhtml", so it can be a program name with args.
fddafd51 8784set dummy genhtml; ac_word=$2
68f2de6d
AK
8785{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8786echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
fddafd51 8787if test "${ac_cv_path_GENHTML+set}" = set; then
68f2de6d 8788 echo $ECHO_N "(cached) $ECHO_C" >&6
fddafd51
ZK
8789else
8790 case $GENHTML in
8791 [\\/]* | ?:[\\/]*)
8792 ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path.
8793 ;;
8794 *)
8795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8796for as_dir in $PATH
8797do
8798 IFS=$as_save_IFS
8799 test -z "$as_dir" && as_dir=.
8800 for ac_exec_ext in '' $ac_executable_extensions; do
8801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8802 ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext"
68f2de6d 8803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
fddafd51
ZK
8804 break 2
8805 fi
8806done
8807done
8808IFS=$as_save_IFS
8809
b145d876 8810 test -z "$ac_cv_path_GENHTML" && ac_cv_path_GENHTML="no"
fddafd51
ZK
8811 ;;
8812esac
8813fi
8814GENHTML=$ac_cv_path_GENHTML
8815if test -n "$GENHTML"; then
68f2de6d
AK
8816 { echo "$as_me:$LINENO: result: $GENHTML" >&5
8817echo "${ECHO_T}$GENHTML" >&6; }
fddafd51 8818else
68f2de6d
AK
8819 { echo "$as_me:$LINENO: result: no" >&5
8820echo "${ECHO_T}no" >&6; }
fddafd51
ZK
8821fi
8822
8823
b145d876 8824 if test "$LCOV" = no -o "$GENHTML" = no ; then
68f2de6d
AK
8825 { { echo "$as_me:$LINENO: error: lcov and genhtml are required for profiling" >&5
8826echo "$as_me: error: lcov and genhtml are required for profiling" >&2;}
b145d876
ZK
8827 { (exit 1); exit 1; }; }
8828 fi
5556819a 8829fi
d0191583
JM
8830
8831################################################################################
68f2de6d
AK
8832{ echo "$as_me:$LINENO: checking whether to use device-mapper" >&5
8833echo $ECHO_N "checking whether to use device-mapper... $ECHO_C" >&6; }
d0191583
JM
8834# Check whether --enable-devmapper was given.
8835if test "${enable_devmapper+set}" = set; then
8836 enableval=$enable_devmapper; DEVMAPPER=$enableval
fc54be10
AK
8837fi
8838
68f2de6d
AK
8839{ echo "$as_me:$LINENO: result: $DEVMAPPER" >&5
8840echo "${ECHO_T}$DEVMAPPER" >&6; }
d0191583
JM
8841
8842if test x$DEVMAPPER = xyes; then
ad6254c5
AK
8843
8844cat >>confdefs.h <<\_ACEOF
d0191583 8845#define DEVMAPPER_SUPPORT 1
ad6254c5
AK
8846_ACEOF
8847
8848fi
8849
93bd259b
AK
8850################################################################################
8851# Check whether --enable-compat was given.
8852if test "${enable_compat+set}" = set; then
8853 enableval=$enable_compat; DM_COMPAT=$enableval
8854else
8855 DM_COMPAT=no
8856fi
8857
8858
8859################################################################################
8860# Check whether --enable-ioctl was given.
8861if test "${enable_ioctl+set}" = set; then
8862 enableval=$enable_ioctl; DM_IOCTLS=$enableval
8863fi
8864
8865
d0191583 8866################################################################################
68f2de6d
AK
8867{ echo "$as_me:$LINENO: checking whether to enable O_DIRECT" >&5
8868echo $ECHO_N "checking whether to enable O_DIRECT... $ECHO_C" >&6; }
d0191583
JM
8869# Check whether --enable-o_direct was given.
8870if test "${enable_o_direct+set}" = set; then
8871 enableval=$enable_o_direct; ODIRECT=$enableval
ad6254c5 8872fi
ad6254c5 8873
68f2de6d
AK
8874{ echo "$as_me:$LINENO: result: $ODIRECT" >&5
8875echo "${ECHO_T}$ODIRECT" >&6; }
ad6254c5 8876
d0191583 8877if test x$ODIRECT = xyes; then
ad6254c5 8878
d0191583
JM
8879cat >>confdefs.h <<\_ACEOF
8880#define O_DIRECT_SUPPORT 1
8881_ACEOF
ad6254c5 8882
d0191583 8883fi
ad6254c5 8884
d0191583 8885################################################################################
68f2de6d
AK
8886{ echo "$as_me:$LINENO: checking whether to compile liblvm2cmd.so" >&5
8887echo $ECHO_N "checking whether to compile liblvm2cmd.so... $ECHO_C" >&6; }
d0191583
JM
8888# Check whether --enable-cmdlib was given.
8889if test "${enable_cmdlib+set}" = set; then
8890 enableval=$enable_cmdlib; CMDLIB=$enableval
ad6254c5 8891else
d0191583
JM
8892 CMDLIB=no
8893fi
8a2fc586 8894
68f2de6d
AK
8895{ echo "$as_me:$LINENO: result: $CMDLIB" >&5
8896echo "${ECHO_T}$CMDLIB" >&6; }
8a2fc586 8897
2a9a80c9 8898test x$CMDLIB = xyes \
d179cc7a
JM
8899 && LVM2CMD_LIB=-llvm2cmd \
8900 || LVM2CMD_LIB=
8901
93bd259b
AK
8902################################################################################
8903# Check whether --enable-pkgconfig was given.
8904if test "${enable_pkgconfig+set}" = set; then
8905 enableval=$enable_pkgconfig; PKGCONFIG=$enableval
8906else
8907 PKGCONFIG=no
8908fi
8909
2a9a80c9 8910
d0191583 8911################################################################################
68f2de6d
AK
8912{ echo "$as_me:$LINENO: checking whether to install fsadm" >&5
8913echo $ECHO_N "checking whether to install fsadm... $ECHO_C" >&6; }
d0191583
JM
8914# Check whether --enable-fsadm was given.
8915if test "${enable_fsadm+set}" = set; then
8916 enableval=$enable_fsadm; FSADM=$enableval
8917fi
8a2fc586 8918
68f2de6d
AK
8919{ echo "$as_me:$LINENO: result: $FSADM" >&5
8920echo "${ECHO_T}$FSADM" >&6; }
8a2fc586 8921
d0191583 8922################################################################################
68f2de6d
AK
8923{ echo "$as_me:$LINENO: checking whether to use dmeventd" >&5
8924echo $ECHO_N "checking whether to use dmeventd... $ECHO_C" >&6; }
d0191583
JM
8925# Check whether --enable-dmeventd was given.
8926if test "${enable_dmeventd+set}" = set; then
8927 enableval=$enable_dmeventd; DMEVENTD=$enableval
8928fi
ad6254c5 8929
68f2de6d
AK
8930{ echo "$as_me:$LINENO: result: $DMEVENTD" >&5
8931echo "${ECHO_T}$DMEVENTD" >&6; }
ad6254c5 8932
93bd259b
AK
8933BUILD_DMEVENTD=$DMEVENTD
8934
2a9a80c9
PR
8935if test x$DMEVENTD = xyes; then
8936 if test x$MIRRORS != xinternal; then
68f2de6d 8937 { { echo "$as_me:$LINENO: error: --enable-dmeventd currently requires --with-mirrors=internal
2a9a80c9 8938 " >&5
68f2de6d 8939echo "$as_me: error: --enable-dmeventd currently requires --with-mirrors=internal
2a9a80c9 8940 " >&2;}
d0191583 8941 { (exit 1); exit 1; }; }
2a9a80c9
PR
8942 fi
8943 if test x$CMDLIB = xno; then
68f2de6d 8944 { { echo "$as_me:$LINENO: error: --enable-dmeventd requires --enable-cmdlib to be used as well
2a9a80c9 8945 " >&5
68f2de6d 8946echo "$as_me: error: --enable-dmeventd requires --enable-cmdlib to be used as well
2a9a80c9
PR
8947 " >&2;}
8948 { (exit 1); exit 1; }; }
8949 fi
ad6254c5 8950fi
7a197a62 8951
d0191583
JM
8952if test x$DMEVENTD = xyes; then
8953
8954cat >>confdefs.h <<\_ACEOF
8955#define DMEVENTD 1
ad6254c5
AK
8956_ACEOF
8957
ad6254c5 8958fi
93bd259b
AK
8959
8960################################################################################
8961
8962{ echo "$as_me:$LINENO: checking for getline in -lc" >&5
8963echo $ECHO_N "checking for getline in -lc... $ECHO_C" >&6; }
8964if test "${ac_cv_lib_c_getline+set}" = set; then
8965 echo $ECHO_N "(cached) $ECHO_C" >&6
8966else
8967 ac_check_lib_save_LIBS=$LIBS
8968LIBS="-lc $LIBS"
8969cat >conftest.$ac_ext <<_ACEOF
8970/* confdefs.h. */
8971_ACEOF
8972cat confdefs.h >>conftest.$ac_ext
8973cat >>conftest.$ac_ext <<_ACEOF
8974/* end confdefs.h. */
8975
8976/* Override any GCC internal prototype to avoid an error.
8977 Use char because int might match the return type of a GCC
8978 builtin and then its argument prototype would still apply. */
8979#ifdef __cplusplus
8980extern "C"
8981#endif
8982char getline ();
8983int
8984main ()
8985{
8986return getline ();
8987 ;
8988 return 0;
8989}
8990_ACEOF
8991rm -f conftest.$ac_objext conftest$ac_exeext
8992if { (ac_try="$ac_link"
8993case "(($ac_try" in
8994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8995 *) ac_try_echo=$ac_try;;
8996esac
8997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8998 (eval "$ac_link") 2>conftest.er1
8999 ac_status=$?
9000 grep -v '^ *+' conftest.er1 >conftest.err
9001 rm -f conftest.er1
9002 cat conftest.err >&5
9003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9004 (exit $ac_status); } && {
9005 test -z "$ac_c_werror_flag" ||
9006 test ! -s conftest.err
9007 } && test -s conftest$ac_exeext &&
9008 $as_test_x conftest$ac_exeext; then
9009 ac_cv_lib_c_getline=yes
9010else
9011 echo "$as_me: failed program was:" >&5
9012sed 's/^/| /' conftest.$ac_ext >&5
9013
9014 ac_cv_lib_c_getline=no
9015fi
9016
9017rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9018 conftest$ac_exeext conftest.$ac_ext
9019LIBS=$ac_check_lib_save_LIBS
9020fi
9021{ echo "$as_me:$LINENO: result: $ac_cv_lib_c_getline" >&5
9022echo "${ECHO_T}$ac_cv_lib_c_getline" >&6; }
9023if test $ac_cv_lib_c_getline = yes; then
9024
9025cat >>confdefs.h <<\_ACEOF
9026#define HAVE_GETLINE 1
9027_ACEOF
9028
9029fi
9030
9031
9032################################################################################
9033
9034{ echo "$as_me:$LINENO: checking for canonicalize_file_name in -lc" >&5
9035echo $ECHO_N "checking for canonicalize_file_name in -lc... $ECHO_C" >&6; }
9036if test "${ac_cv_lib_c_canonicalize_file_name+set}" = set; then
9037 echo $ECHO_N "(cached) $ECHO_C" >&6
9038else
9039 ac_check_lib_save_LIBS=$LIBS
9040LIBS="-lc $LIBS"
9041cat >conftest.$ac_ext <<_ACEOF
9042/* confdefs.h. */
9043_ACEOF
9044cat confdefs.h >>conftest.$ac_ext
9045cat >>conftest.$ac_ext <<_ACEOF
9046/* end confdefs.h. */
9047
9048/* Override any GCC internal prototype to avoid an error.
9049 Use char because int might match the return type of a GCC
9050 builtin and then its argument prototype would still apply. */
9051#ifdef __cplusplus
9052extern "C"
9053#endif
9054char canonicalize_file_name ();
9055int
9056main ()
9057{
9058return canonicalize_file_name ();
9059 ;
9060 return 0;
9061}
9062_ACEOF
9063rm -f conftest.$ac_objext conftest$ac_exeext
9064if { (ac_try="$ac_link"
9065case "(($ac_try" in
9066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9067 *) ac_try_echo=$ac_try;;
9068esac
9069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9070 (eval "$ac_link") 2>conftest.er1
9071 ac_status=$?
9072 grep -v '^ *+' conftest.er1 >conftest.err
9073 rm -f conftest.er1
9074 cat conftest.err >&5
9075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9076 (exit $ac_status); } && {
9077 test -z "$ac_c_werror_flag" ||
9078 test ! -s conftest.err
9079 } && test -s conftest$ac_exeext &&
9080 $as_test_x conftest$ac_exeext; then
9081 ac_cv_lib_c_canonicalize_file_name=yes
9082else
9083 echo "$as_me: failed program was:" >&5
9084sed 's/^/| /' conftest.$ac_ext >&5
9085
9086 ac_cv_lib_c_canonicalize_file_name=no
9087fi
9088
9089rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9090 conftest$ac_exeext conftest.$ac_ext
9091LIBS=$ac_check_lib_save_LIBS
9092fi
9093{ echo "$as_me:$LINENO: result: $ac_cv_lib_c_canonicalize_file_name" >&5
9094echo "${ECHO_T}$ac_cv_lib_c_canonicalize_file_name" >&6; }
9095if test $ac_cv_lib_c_canonicalize_file_name = yes; then
9096
9097cat >>confdefs.h <<\_ACEOF
9098#define HAVE_CANONICALIZE_FILE_NAME 1
9099_ACEOF
9100
9101fi
9102
9103
d0191583
JM
9104################################################################################
9105if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ];
9106 then exec_prefix="";
9107fi;
ad6254c5
AK
9108
9109################################################################################
06e459df 9110if test x$READLINE != xno; then
68f2de6d
AK
9111 { echo "$as_me:$LINENO: checking for library containing tgetent" >&5
9112echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6; }
ad6254c5 9113if test "${ac_cv_search_tgetent+set}" = set; then
68f2de6d 9114 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
9115else
9116 ac_func_search_save_LIBS=$LIBS
ad6254c5 9117cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9118/* confdefs.h. */
9119_ACEOF
9120cat confdefs.h >>conftest.$ac_ext
9121cat >>conftest.$ac_ext <<_ACEOF
9122/* end confdefs.h. */
9123
7a197a62
AK
9124/* Override any GCC internal prototype to avoid an error.
9125 Use char because int might match the return type of a GCC
9126 builtin and then its argument prototype would still apply. */
ad6254c5
AK
9127#ifdef __cplusplus
9128extern "C"
9129#endif
ad6254c5
AK
9130char tgetent ();
9131int
9132main ()
9133{
7a197a62 9134return tgetent ();
ad6254c5
AK
9135 ;
9136 return 0;
9137}
9138_ACEOF
7a197a62
AK
9139for ac_lib in '' ncurses curses termcap termlib; do
9140 if test -z "$ac_lib"; then
9141 ac_res="none required"
9142 else
9143 ac_res=-l$ac_lib
9144 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9145 fi
9146 rm -f conftest.$ac_objext conftest$ac_exeext
9147if { (ac_try="$ac_link"
9148case "(($ac_try" in
9149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9150 *) ac_try_echo=$ac_try;;
9151esac
68f2de6d 9152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 9153 (eval "$ac_link") 2>conftest.er1
ad6254c5 9154 ac_status=$?
8a2fc586
AK
9155 grep -v '^ *+' conftest.er1 >conftest.err
9156 rm -f conftest.er1
9157 cat conftest.err >&5
68f2de6d 9158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9159 (exit $ac_status); } && {
9160 test -z "$ac_c_werror_flag" ||
9161 test ! -s conftest.err
68f2de6d
AK
9162 } && test -s conftest$ac_exeext &&
9163 $as_test_x conftest$ac_exeext; then
7a197a62 9164 ac_cv_search_tgetent=$ac_res
ad6254c5 9165else
68f2de6d 9166 echo "$as_me: failed program was:" >&5
ad6254c5
AK
9167sed 's/^/| /' conftest.$ac_ext >&5
9168
ad6254c5 9169
7a197a62 9170fi
ad6254c5 9171
25fbec5b 9172rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7a197a62
AK
9173 conftest$ac_exeext
9174 if test "${ac_cv_search_tgetent+set}" = set; then
9175 break
ad6254c5 9176fi
7a197a62
AK
9177done
9178if test "${ac_cv_search_tgetent+set}" = set; then
9179 :
9180else
9181 ac_cv_search_tgetent=no
ad6254c5 9182fi
7a197a62 9183rm conftest.$ac_ext
ad6254c5
AK
9184LIBS=$ac_func_search_save_LIBS
9185fi
68f2de6d
AK
9186{ echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
9187echo "${ECHO_T}$ac_cv_search_tgetent" >&6; }
7a197a62
AK
9188ac_res=$ac_cv_search_tgetent
9189if test "$ac_res" != no; then
9190 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
06e459df 9191 tg_found=yes
ad6254c5 9192else
06e459df
JM
9193 tg_found=no
9194fi
9195
9196 test x$READLINE:$tg_found = xyes:no &&
68f2de6d 9197 { { echo "$as_me:$LINENO: error: termcap could not be found which is required for the
ad6254c5
AK
9198--enable-readline option (which is enabled by default). Either disable readline
9199support with --disable-readline or download and install termcap from:
9200 ftp.gnu.org/gnu/termcap
9201Note: if you are using precompiled packages you will also need the development
9202 package as well (which may be called termcap-devel or something similar).
9203Note: (n)curses also seems to work as a substitute for termcap. This was
9204 not found either - but you could try installing that as well.
9205" >&5
68f2de6d 9206echo "$as_me: error: termcap could not be found which is required for the
ad6254c5
AK
9207--enable-readline option (which is enabled by default). Either disable readline
9208support with --disable-readline or download and install termcap from:
9209 ftp.gnu.org/gnu/termcap
9210Note: if you are using precompiled packages you will also need the development
9211 package as well (which may be called termcap-devel or something similar).
9212Note: (n)curses also seems to work as a substitute for termcap. This was
9213 not found either - but you could try installing that as well.
9214" >&2;}
9215 { (exit 1); exit 1; }; }
ad6254c5
AK
9216fi
9217
9218################################################################################
68f2de6d
AK
9219{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9220echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
ad6254c5 9221if test "${ac_cv_lib_dl_dlopen+set}" = set; then
68f2de6d 9222 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
9223else
9224 ac_check_lib_save_LIBS=$LIBS
9225LIBS="-ldl $LIBS"
9226cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9227/* confdefs.h. */
9228_ACEOF
9229cat confdefs.h >>conftest.$ac_ext
9230cat >>conftest.$ac_ext <<_ACEOF
9231/* end confdefs.h. */
9232
7a197a62
AK
9233/* Override any GCC internal prototype to avoid an error.
9234 Use char because int might match the return type of a GCC
9235 builtin and then its argument prototype would still apply. */
ad6254c5
AK
9236#ifdef __cplusplus
9237extern "C"
9238#endif
ad6254c5
AK
9239char dlopen ();
9240int
9241main ()
9242{
7a197a62 9243return dlopen ();
ad6254c5
AK
9244 ;
9245 return 0;
9246}
9247_ACEOF
9248rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
9249if { (ac_try="$ac_link"
9250case "(($ac_try" in
9251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9252 *) ac_try_echo=$ac_try;;
9253esac
68f2de6d 9254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 9255 (eval "$ac_link") 2>conftest.er1
ad6254c5 9256 ac_status=$?
8a2fc586
AK
9257 grep -v '^ *+' conftest.er1 >conftest.err
9258 rm -f conftest.er1
9259 cat conftest.err >&5
68f2de6d 9260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9261 (exit $ac_status); } && {
9262 test -z "$ac_c_werror_flag" ||
9263 test ! -s conftest.err
68f2de6d
AK
9264 } && test -s conftest$ac_exeext &&
9265 $as_test_x conftest$ac_exeext; then
ad6254c5
AK
9266 ac_cv_lib_dl_dlopen=yes
9267else
68f2de6d 9268 echo "$as_me: failed program was:" >&5
ad6254c5
AK
9269sed 's/^/| /' conftest.$ac_ext >&5
9270
7a197a62 9271 ac_cv_lib_dl_dlopen=no
ad6254c5 9272fi
7a197a62 9273
25fbec5b 9274rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 9275 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
9276LIBS=$ac_check_lib_save_LIBS
9277fi
68f2de6d
AK
9278{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9279echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
ad6254c5
AK
9280if test $ac_cv_lib_dl_dlopen = yes; then
9281 HAVE_LIBDL=yes
9282else
9283 HAVE_LIBDL=no
9284fi
9285
9286
7e9e9502 9287if [ "x$HAVE_LIBDL" = xyes ]; then
72b2cb61
AK
9288
9289cat >>confdefs.h <<\_ACEOF
9290#define HAVE_LIBDL 1
9291_ACEOF
9292
ad6254c5
AK
9293 LIBS="-ldl $LIBS"
9294else
9295 HAVE_LIBDL=no
9296fi
9297
9298################################################################################
9299if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \
9300 -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \
9301 \) -a "x$STATIC_LINK" = xyes ];
68f2de6d 9302 then { { echo "$as_me:$LINENO: error: Features cannot be 'shared' when building statically
ad6254c5 9303" >&5
68f2de6d 9304echo "$as_me: error: Features cannot be 'shared' when building statically
ad6254c5
AK
9305" >&2;}
9306 { (exit 1); exit 1; }; }
9307fi
9308
d0191583 9309################################################################################
68f2de6d
AK
9310{ echo "$as_me:$LINENO: checking whether to use static linking" >&5
9311echo $ECHO_N "checking whether to use static linking... $ECHO_C" >&6; }
d0191583
JM
9312# Check whether --enable-static_link was given.
9313if test "${enable_static_link+set}" = set; then
9314 enableval=$enable_static_link; STATIC_LINK=$enableval
9315else
9316 STATIC_LINK=no
9317fi
9318
68f2de6d
AK
9319{ echo "$as_me:$LINENO: result: $STATIC_LINK" >&5
9320echo "${ECHO_T}$STATIC_LINK" >&6; }
d0191583
JM
9321
9322################################################################################
68f2de6d
AK
9323{ echo "$as_me:$LINENO: checking whether to enable selinux support" >&5
9324echo $ECHO_N "checking whether to enable selinux support... $ECHO_C" >&6; }
d0191583
JM
9325# Check whether --enable-selinux was given.
9326if test "${enable_selinux+set}" = set; then
9327 enableval=$enable_selinux; SELINUX=$enableval
9328fi
9329
68f2de6d
AK
9330{ echo "$as_me:$LINENO: result: $SELINUX" >&5
9331echo "${ECHO_T}$SELINUX" >&6; }
d0191583 9332
ad6254c5
AK
9333################################################################################
9334if test x$SELINUX = xyes; then
68f2de6d
AK
9335 { echo "$as_me:$LINENO: checking for sepol_check_context in -lsepol" >&5
9336echo $ECHO_N "checking for sepol_check_context in -lsepol... $ECHO_C" >&6; }
8a2fc586 9337if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then
68f2de6d 9338 echo $ECHO_N "(cached) $ECHO_C" >&6
8a2fc586
AK
9339else
9340 ac_check_lib_save_LIBS=$LIBS
9341LIBS="-lsepol $LIBS"
9342cat >conftest.$ac_ext <<_ACEOF
9343/* confdefs.h. */
9344_ACEOF
9345cat confdefs.h >>conftest.$ac_ext
9346cat >>conftest.$ac_ext <<_ACEOF
9347/* end confdefs.h. */
9348
7a197a62
AK
9349/* Override any GCC internal prototype to avoid an error.
9350 Use char because int might match the return type of a GCC
9351 builtin and then its argument prototype would still apply. */
8a2fc586
AK
9352#ifdef __cplusplus
9353extern "C"
9354#endif
8a2fc586
AK
9355char sepol_check_context ();
9356int
9357main ()
9358{
7a197a62 9359return sepol_check_context ();
8a2fc586
AK
9360 ;
9361 return 0;
9362}
9363_ACEOF
9364rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
9365if { (ac_try="$ac_link"
9366case "(($ac_try" in
9367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9368 *) ac_try_echo=$ac_try;;
9369esac
68f2de6d 9370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 9371 (eval "$ac_link") 2>conftest.er1
8a2fc586
AK
9372 ac_status=$?
9373 grep -v '^ *+' conftest.er1 >conftest.err
9374 rm -f conftest.er1
9375 cat conftest.err >&5
68f2de6d 9376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9377 (exit $ac_status); } && {
9378 test -z "$ac_c_werror_flag" ||
9379 test ! -s conftest.err
68f2de6d
AK
9380 } && test -s conftest$ac_exeext &&
9381 $as_test_x conftest$ac_exeext; then
8a2fc586
AK
9382 ac_cv_lib_sepol_sepol_check_context=yes
9383else
68f2de6d 9384 echo "$as_me: failed program was:" >&5
8a2fc586
AK
9385sed 's/^/| /' conftest.$ac_ext >&5
9386
7a197a62 9387 ac_cv_lib_sepol_sepol_check_context=no
8a2fc586 9388fi
7a197a62 9389
25fbec5b 9390rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586
AK
9391 conftest$ac_exeext conftest.$ac_ext
9392LIBS=$ac_check_lib_save_LIBS
9393fi
68f2de6d
AK
9394{ echo "$as_me:$LINENO: result: $ac_cv_lib_sepol_sepol_check_context" >&5
9395echo "${ECHO_T}$ac_cv_lib_sepol_sepol_check_context" >&6; }
8a2fc586
AK
9396if test $ac_cv_lib_sepol_sepol_check_context = yes; then
9397 HAVE_SEPOL=yes
9398else
9399 HAVE_SEPOL=no
9400fi
9401
8a2fc586
AK
9402
9403 if test x$HAVE_SEPOL = xyes; then
d0191583
JM
9404
9405cat >>confdefs.h <<\_ACEOF
9406#define HAVE_SEPOL 1
9407_ACEOF
9408
8a2fc586
AK
9409 LIBS="-lsepol $LIBS"
9410 fi
9411
68f2de6d
AK
9412 { echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
9413echo $ECHO_N "checking for is_selinux_enabled in -lselinux... $ECHO_C" >&6; }
ad6254c5 9414if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
68f2de6d 9415 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
9416else
9417 ac_check_lib_save_LIBS=$LIBS
9418LIBS="-lselinux $LIBS"
9419cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9420/* confdefs.h. */
9421_ACEOF
9422cat confdefs.h >>conftest.$ac_ext
9423cat >>conftest.$ac_ext <<_ACEOF
9424/* end confdefs.h. */
9425
7a197a62
AK
9426/* Override any GCC internal prototype to avoid an error.
9427 Use char because int might match the return type of a GCC
9428 builtin and then its argument prototype would still apply. */
ad6254c5
AK
9429#ifdef __cplusplus
9430extern "C"
9431#endif
ad6254c5
AK
9432char is_selinux_enabled ();
9433int
9434main ()
9435{
7a197a62 9436return is_selinux_enabled ();
ad6254c5
AK
9437 ;
9438 return 0;
9439}
9440_ACEOF
9441rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
9442if { (ac_try="$ac_link"
9443case "(($ac_try" in
9444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9445 *) ac_try_echo=$ac_try;;
9446esac
68f2de6d 9447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 9448 (eval "$ac_link") 2>conftest.er1
ad6254c5 9449 ac_status=$?
8a2fc586
AK
9450 grep -v '^ *+' conftest.er1 >conftest.err
9451 rm -f conftest.er1
9452 cat conftest.err >&5
68f2de6d 9453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9454 (exit $ac_status); } && {
9455 test -z "$ac_c_werror_flag" ||
9456 test ! -s conftest.err
68f2de6d
AK
9457 } && test -s conftest$ac_exeext &&
9458 $as_test_x conftest$ac_exeext; then
ad6254c5
AK
9459 ac_cv_lib_selinux_is_selinux_enabled=yes
9460else
68f2de6d 9461 echo "$as_me: failed program was:" >&5
ad6254c5
AK
9462sed 's/^/| /' conftest.$ac_ext >&5
9463
7a197a62 9464 ac_cv_lib_selinux_is_selinux_enabled=no
ad6254c5 9465fi
7a197a62 9466
25fbec5b 9467rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 9468 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
9469LIBS=$ac_check_lib_save_LIBS
9470fi
68f2de6d
AK
9471{ echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
9472echo "${ECHO_T}$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
ad6254c5
AK
9473if test $ac_cv_lib_selinux_is_selinux_enabled = yes; then
9474 HAVE_SELINUX=yes
9475else
9476 HAVE_SELINUX=no
9477fi
9478
ad6254c5
AK
9479
9480 if test x$HAVE_SELINUX = xyes; then
72b2cb61
AK
9481
9482cat >>confdefs.h <<\_ACEOF
9483#define HAVE_SELINUX 1
9484_ACEOF
9485
ad6254c5
AK
9486 LIBS="-lselinux $LIBS"
9487 else
68f2de6d
AK
9488 { echo "$as_me:$LINENO: WARNING: Disabling selinux" >&5
9489echo "$as_me: WARNING: Disabling selinux" >&2;}
66e941e8
JM
9490 fi
9491
d0191583 9492 # With --enable-static_link and selinux enabled, linking
66e941e8
JM
9493 # fails on at least Debian unstable due to unsatisfied references
9494 # to pthread_mutex_lock and _unlock. See if we need -lpthread.
9495 if test "$STATIC_LINK-$HAVE_SELINUX" = yes-yes; then
9496 lvm_saved_libs=$LIBS
9497 LIBS="$LIBS -static"
68f2de6d
AK
9498 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
9499echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
66e941e8 9500if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
68f2de6d 9501 echo $ECHO_N "(cached) $ECHO_C" >&6
66e941e8
JM
9502else
9503 ac_func_search_save_LIBS=$LIBS
9504cat >conftest.$ac_ext <<_ACEOF
9505/* confdefs.h. */
9506_ACEOF
9507cat confdefs.h >>conftest.$ac_ext
9508cat >>conftest.$ac_ext <<_ACEOF
9509/* end confdefs.h. */
9510
9511/* Override any GCC internal prototype to avoid an error.
9512 Use char because int might match the return type of a GCC
9513 builtin and then its argument prototype would still apply. */
9514#ifdef __cplusplus
9515extern "C"
9516#endif
9517char pthread_mutex_lock ();
9518int
9519main ()
9520{
9521return pthread_mutex_lock ();
9522 ;
9523 return 0;
9524}
9525_ACEOF
9526for ac_lib in '' pthread; do
9527 if test -z "$ac_lib"; then
9528 ac_res="none required"
9529 else
9530 ac_res=-l$ac_lib
9531 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9532 fi
9533 rm -f conftest.$ac_objext conftest$ac_exeext
9534if { (ac_try="$ac_link"
9535case "(($ac_try" in
9536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9537 *) ac_try_echo=$ac_try;;
9538esac
68f2de6d 9539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
66e941e8
JM
9540 (eval "$ac_link") 2>conftest.er1
9541 ac_status=$?
9542 grep -v '^ *+' conftest.er1 >conftest.err
9543 rm -f conftest.er1
9544 cat conftest.err >&5
68f2de6d 9545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9546 (exit $ac_status); } && {
9547 test -z "$ac_c_werror_flag" ||
9548 test ! -s conftest.err
68f2de6d
AK
9549 } && test -s conftest$ac_exeext &&
9550 $as_test_x conftest$ac_exeext; then
66e941e8
JM
9551 ac_cv_search_pthread_mutex_lock=$ac_res
9552else
68f2de6d 9553 echo "$as_me: failed program was:" >&5
66e941e8
JM
9554sed 's/^/| /' conftest.$ac_ext >&5
9555
9556
9557fi
9558
25fbec5b 9559rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
66e941e8
JM
9560 conftest$ac_exeext
9561 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9562 break
9563fi
9564done
9565if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9566 :
9567else
9568 ac_cv_search_pthread_mutex_lock=no
9569fi
9570rm conftest.$ac_ext
9571LIBS=$ac_func_search_save_LIBS
9572fi
68f2de6d
AK
9573{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
9574echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
66e941e8
JM
9575ac_res=$ac_cv_search_pthread_mutex_lock
9576if test "$ac_res" != no; then
9577 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9578 test "$ac_cv_search_pthread_mutex_lock" = "none required" ||
9579 LIB_PTHREAD=-lpthread
9580fi
9581
9582 LIBS=$lvm_saved_libs
ad6254c5
AK
9583 fi
9584fi
9585
8b1a3214
AK
9586################################################################################
9587if test x$REALTIME = xyes; then
68f2de6d
AK
9588 { echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
9589echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6; }
8b1a3214 9590if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
68f2de6d 9591 echo $ECHO_N "(cached) $ECHO_C" >&6
8b1a3214
AK
9592else
9593 ac_check_lib_save_LIBS=$LIBS
9594LIBS="-lrt $LIBS"
9595cat >conftest.$ac_ext <<_ACEOF
9596/* confdefs.h. */
9597_ACEOF
9598cat confdefs.h >>conftest.$ac_ext
9599cat >>conftest.$ac_ext <<_ACEOF
9600/* end confdefs.h. */
9601
7a197a62
AK
9602/* Override any GCC internal prototype to avoid an error.
9603 Use char because int might match the return type of a GCC
9604 builtin and then its argument prototype would still apply. */
8b1a3214
AK
9605#ifdef __cplusplus
9606extern "C"
9607#endif
8b1a3214
AK
9608char clock_gettime ();
9609int
9610main ()
9611{
7a197a62 9612return clock_gettime ();
8b1a3214
AK
9613 ;
9614 return 0;
9615}
9616_ACEOF
9617rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
9618if { (ac_try="$ac_link"
9619case "(($ac_try" in
9620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9621 *) ac_try_echo=$ac_try;;
9622esac
68f2de6d 9623eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 9624 (eval "$ac_link") 2>conftest.er1
8b1a3214
AK
9625 ac_status=$?
9626 grep -v '^ *+' conftest.er1 >conftest.err
9627 rm -f conftest.er1
9628 cat conftest.err >&5
68f2de6d 9629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9630 (exit $ac_status); } && {
9631 test -z "$ac_c_werror_flag" ||
9632 test ! -s conftest.err
68f2de6d
AK
9633 } && test -s conftest$ac_exeext &&
9634 $as_test_x conftest$ac_exeext; then
8b1a3214
AK
9635 ac_cv_lib_rt_clock_gettime=yes
9636else
68f2de6d 9637 echo "$as_me: failed program was:" >&5
8b1a3214
AK
9638sed 's/^/| /' conftest.$ac_ext >&5
9639
7a197a62 9640 ac_cv_lib_rt_clock_gettime=no
8b1a3214 9641fi
7a197a62 9642
25fbec5b 9643rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8b1a3214
AK
9644 conftest$ac_exeext conftest.$ac_ext
9645LIBS=$ac_check_lib_save_LIBS
9646fi
68f2de6d
AK
9647{ echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
9648echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6; }
8b1a3214
AK
9649if test $ac_cv_lib_rt_clock_gettime = yes; then
9650 HAVE_REALTIME=yes
9651else
9652 HAVE_REALTIME=no
9653fi
9654
8b1a3214
AK
9655
9656 if test x$HAVE_REALTIME = xyes; then
9657
9658cat >>confdefs.h <<\_ACEOF
9659#define HAVE_REALTIME 1
9660_ACEOF
9661
9662 LIBS="-lrt $LIBS"
9663 else
68f2de6d
AK
9664 { echo "$as_me:$LINENO: WARNING: Disabling realtime clock" >&5
9665echo "$as_me: WARNING: Disabling realtime clock" >&2;}
8b1a3214
AK
9666 fi
9667fi
9668
ad6254c5
AK
9669################################################################################
9670
9671for ac_header in getopt.h
9672do
68f2de6d 9673as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 9674if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d
AK
9675 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9676echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 9677if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 9678 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 9679fi
68f2de6d
AK
9680ac_res=`eval echo '${'$as_ac_Header'}'`
9681 { echo "$as_me:$LINENO: result: $ac_res" >&5
9682echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
9683else
9684 # Is the header compilable?
68f2de6d
AK
9685{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9686echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 9687cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9688/* confdefs.h. */
9689_ACEOF
9690cat confdefs.h >>conftest.$ac_ext
9691cat >>conftest.$ac_ext <<_ACEOF
9692/* end confdefs.h. */
9693$ac_includes_default
9694#include <$ac_header>
9695_ACEOF
9696rm -f conftest.$ac_objext
7a197a62
AK
9697if { (ac_try="$ac_compile"
9698case "(($ac_try" in
9699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9700 *) ac_try_echo=$ac_try;;
9701esac
68f2de6d 9702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 9703 (eval "$ac_compile") 2>conftest.er1
ad6254c5 9704 ac_status=$?
8a2fc586
AK
9705 grep -v '^ *+' conftest.er1 >conftest.err
9706 rm -f conftest.er1
9707 cat conftest.err >&5
68f2de6d 9708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9709 (exit $ac_status); } && {
9710 test -z "$ac_c_werror_flag" ||
9711 test ! -s conftest.err
9712 } && test -s conftest.$ac_objext; then
ad6254c5
AK
9713 ac_header_compiler=yes
9714else
68f2de6d 9715 echo "$as_me: failed program was:" >&5
ad6254c5
AK
9716sed 's/^/| /' conftest.$ac_ext >&5
9717
7a197a62 9718 ac_header_compiler=no
ad6254c5 9719fi
7a197a62
AK
9720
9721rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
68f2de6d
AK
9722{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9723echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
9724
9725# Is the header present?
68f2de6d
AK
9726{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9727echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 9728cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9729/* confdefs.h. */
9730_ACEOF
9731cat confdefs.h >>conftest.$ac_ext
9732cat >>conftest.$ac_ext <<_ACEOF
9733/* end confdefs.h. */
9734#include <$ac_header>
9735_ACEOF
7a197a62
AK
9736if { (ac_try="$ac_cpp conftest.$ac_ext"
9737case "(($ac_try" in
9738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9739 *) ac_try_echo=$ac_try;;
9740esac
68f2de6d 9741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 9742 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
9743 ac_status=$?
9744 grep -v '^ *+' conftest.er1 >conftest.err
9745 rm -f conftest.er1
9746 cat conftest.err >&5
68f2de6d 9747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9748 (exit $ac_status); } >/dev/null && {
9749 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9750 test ! -s conftest.err
9751 }; then
ad6254c5
AK
9752 ac_header_preproc=yes
9753else
68f2de6d 9754 echo "$as_me: failed program was:" >&5
ad6254c5
AK
9755sed 's/^/| /' conftest.$ac_ext >&5
9756
9757 ac_header_preproc=no
9758fi
7a197a62 9759
ad6254c5 9760rm -f conftest.err conftest.$ac_ext
68f2de6d
AK
9761{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9762echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
9763
9764# So? What about this header?
8a2fc586
AK
9765case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9766 yes:no: )
68f2de6d
AK
9767 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9768echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9769 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9770echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 9771 ac_header_preproc=yes
ad6254c5 9772 ;;
8a2fc586 9773 no:yes:* )
68f2de6d
AK
9774 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9775echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9776 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9777echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9778 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9779echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9780 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9781echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9782 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9783echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9784 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9785echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 9786
ad6254c5
AK
9787 ;;
9788esac
68f2de6d
AK
9789{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9790echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 9791if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 9792 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 9793else
8a2fc586 9794 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 9795fi
68f2de6d
AK
9796ac_res=`eval echo '${'$as_ac_Header'}'`
9797 { echo "$as_me:$LINENO: result: $ac_res" >&5
9798echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
9799
9800fi
68f2de6d 9801if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 9802 cat >>confdefs.h <<_ACEOF
68f2de6d 9803#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 9804_ACEOF
72b2cb61
AK
9805
9806cat >>confdefs.h <<\_ACEOF
9807#define HAVE_GETOPTLONG 1
9808_ACEOF
9809
ad6254c5
AK
9810fi
9811
9812done
9813
9814
9815################################################################################
06e459df 9816if test x$READLINE != xno; then
bc1024f8
JM
9817 rl_found=yes
9818
68f2de6d
AK
9819{ echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
9820echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6; }
ad6254c5 9821if test "${ac_cv_lib_readline_readline+set}" = set; then
68f2de6d 9822 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
9823else
9824 ac_check_lib_save_LIBS=$LIBS
9825LIBS="-lreadline $LIBS"
9826cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9827/* confdefs.h. */
9828_ACEOF
9829cat confdefs.h >>conftest.$ac_ext
9830cat >>conftest.$ac_ext <<_ACEOF
9831/* end confdefs.h. */
9832
7a197a62
AK
9833/* Override any GCC internal prototype to avoid an error.
9834 Use char because int might match the return type of a GCC
9835 builtin and then its argument prototype would still apply. */
ad6254c5
AK
9836#ifdef __cplusplus
9837extern "C"
9838#endif
ad6254c5
AK
9839char readline ();
9840int
9841main ()
9842{
7a197a62 9843return readline ();
ad6254c5
AK
9844 ;
9845 return 0;
9846}
9847_ACEOF
9848rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
9849if { (ac_try="$ac_link"
9850case "(($ac_try" in
9851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9852 *) ac_try_echo=$ac_try;;
9853esac
68f2de6d 9854eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 9855 (eval "$ac_link") 2>conftest.er1
ad6254c5 9856 ac_status=$?
8a2fc586
AK
9857 grep -v '^ *+' conftest.er1 >conftest.err
9858 rm -f conftest.er1
9859 cat conftest.err >&5
68f2de6d 9860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9861 (exit $ac_status); } && {
9862 test -z "$ac_c_werror_flag" ||
9863 test ! -s conftest.err
68f2de6d
AK
9864 } && test -s conftest$ac_exeext &&
9865 $as_test_x conftest$ac_exeext; then
ad6254c5
AK
9866 ac_cv_lib_readline_readline=yes
9867else
68f2de6d 9868 echo "$as_me: failed program was:" >&5
ad6254c5
AK
9869sed 's/^/| /' conftest.$ac_ext >&5
9870
7a197a62 9871 ac_cv_lib_readline_readline=no
ad6254c5 9872fi
7a197a62 9873
25fbec5b 9874rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 9875 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
9876LIBS=$ac_check_lib_save_LIBS
9877fi
68f2de6d
AK
9878{ echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
9879echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6; }
ad6254c5 9880if test $ac_cv_lib_readline_readline = yes; then
bc1024f8
JM
9881 cat >>confdefs.h <<_ACEOF
9882#define HAVE_LIBREADLINE 1
9883_ACEOF
9884
9885 LIBS="-lreadline $LIBS"
9886
ad6254c5 9887else
06e459df
JM
9888 rl_found=no
9889fi
9890
9891 test x$READLINE:$rl_found = xyes:no &&
68f2de6d 9892 { { echo "$as_me:$LINENO: error: GNU Readline could not be found which is required for the
ad6254c5
AK
9893--enable-readline option (which is enabled by default). Either disable readline
9894support with --disable-readline or download and install readline from:
9895 ftp.gnu.org/gnu/readline
9896Note: if you are using precompiled packages you will also need the development
9897package as well (which may be called readline-devel or something similar).
9898" >&5
68f2de6d 9899echo "$as_me: error: GNU Readline could not be found which is required for the
ad6254c5
AK
9900--enable-readline option (which is enabled by default). Either disable readline
9901support with --disable-readline or download and install readline from:
9902 ftp.gnu.org/gnu/readline
9903Note: if you are using precompiled packages you will also need the development
9904package as well (which may be called readline-devel or something similar).
9905" >&2;}
9906 { (exit 1); exit 1; }; }
06e459df 9907 if test $rl_found = yes; then
bc1024f8
JM
9908
9909for ac_func in rl_completion_matches
9910do
68f2de6d
AK
9911as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9912{ echo "$as_me:$LINENO: checking for $ac_func" >&5
9913echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
bc1024f8 9914if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 9915 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
9916else
9917 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9918/* confdefs.h. */
9919_ACEOF
9920cat confdefs.h >>conftest.$ac_ext
9921cat >>conftest.$ac_ext <<_ACEOF
9922/* end confdefs.h. */
bc1024f8 9923/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8a2fc586 9924 For example, HP-UX 11i <limits.h> declares gettimeofday. */
bc1024f8 9925#define $ac_func innocuous_$ac_func
8a2fc586 9926
ad6254c5 9927/* System header to define __stub macros and hopefully few prototypes,
bc1024f8 9928 which can conflict with char $ac_func (); below.
ad6254c5
AK
9929 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9930 <limits.h> exists even on freestanding compilers. */
8a2fc586 9931
ad6254c5
AK
9932#ifdef __STDC__
9933# include <limits.h>
9934#else
9935# include <assert.h>
9936#endif
8a2fc586 9937
bc1024f8 9938#undef $ac_func
8a2fc586 9939
7a197a62
AK
9940/* Override any GCC internal prototype to avoid an error.
9941 Use char because int might match the return type of a GCC
9942 builtin and then its argument prototype would still apply. */
ad6254c5
AK
9943#ifdef __cplusplus
9944extern "C"
ad6254c5 9945#endif
bc1024f8 9946char $ac_func ();
ad6254c5
AK
9947/* The GNU C library defines this for functions which it implements
9948 to always fail with ENOSYS. Some functions are actually named
9949 something starting with __ and the normal name is an alias. */
bc1024f8 9950#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 9951choke me
ad6254c5
AK
9952#endif
9953
9954int
9955main ()
9956{
bc1024f8 9957return $ac_func ();
ad6254c5
AK
9958 ;
9959 return 0;
9960}
9961_ACEOF
9962rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
9963if { (ac_try="$ac_link"
9964case "(($ac_try" in
9965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9966 *) ac_try_echo=$ac_try;;
9967esac
68f2de6d 9968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 9969 (eval "$ac_link") 2>conftest.er1
ad6254c5 9970 ac_status=$?
8a2fc586
AK
9971 grep -v '^ *+' conftest.er1 >conftest.err
9972 rm -f conftest.er1
9973 cat conftest.err >&5
68f2de6d 9974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9975 (exit $ac_status); } && {
9976 test -z "$ac_c_werror_flag" ||
9977 test ! -s conftest.err
68f2de6d
AK
9978 } && test -s conftest$ac_exeext &&
9979 $as_test_x conftest$ac_exeext; then
bc1024f8 9980 eval "$as_ac_var=yes"
ad6254c5 9981else
68f2de6d 9982 echo "$as_me: failed program was:" >&5
ad6254c5
AK
9983sed 's/^/| /' conftest.$ac_ext >&5
9984
bc1024f8 9985 eval "$as_ac_var=no"
ad6254c5 9986fi
7a197a62 9987
25fbec5b 9988rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 9989 conftest$ac_exeext conftest.$ac_ext
ad6254c5 9990fi
68f2de6d
AK
9991ac_res=`eval echo '${'$as_ac_var'}'`
9992 { echo "$as_me:$LINENO: result: $ac_res" >&5
9993echo "${ECHO_T}$ac_res" >&6; }
9994if test `eval echo '${'$as_ac_var'}'` = yes; then
bc1024f8 9995 cat >>confdefs.h <<_ACEOF
68f2de6d 9996#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
72b2cb61
AK
9997_ACEOF
9998
9999fi
bc1024f8 10000done
ad6254c5 10001
d179cc7a
JM
10002
10003cat >>confdefs.h <<\_ACEOF
10004#define READLINE_SUPPORT 1
10005_ACEOF
10006
06e459df 10007 fi
ad6254c5
AK
10008fi
10009
10010################################################################################
68f2de6d
AK
10011{ echo "$as_me:$LINENO: checking whether to enable internationalisation" >&5
10012echo $ECHO_N "checking whether to enable internationalisation... $ECHO_C" >&6; }
7a197a62 10013# Check whether --enable-nls was given.
ad6254c5 10014if test "${enable_nls+set}" = set; then
7a197a62 10015 enableval=$enable_nls; INTL=$enableval
ad6254c5
AK
10016else
10017 INTL=no
7a197a62
AK
10018fi
10019
68f2de6d
AK
10020{ echo "$as_me:$LINENO: result: $INTL" >&5
10021echo "${ECHO_T}$INTL" >&6; }
ad6254c5
AK
10022
10023if test x$INTL = xyes; then
93bd259b 10024# FIXME - Move this - can be device-mapper too
ad6254c5
AK
10025 INTL_PACKAGE="lvm2"
10026 # Extract the first word of "msgfmt", so it can be a program name with args.
10027set dummy msgfmt; ac_word=$2
68f2de6d
AK
10028{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10029echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
ad6254c5 10030if test "${ac_cv_path_MSGFMT+set}" = set; then
68f2de6d 10031 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
10032else
10033 case $MSGFMT in
10034 [\\/]* | ?:[\\/]*)
10035 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
10036 ;;
10037 *)
10038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10039for as_dir in $PATH
10040do
10041 IFS=$as_save_IFS
10042 test -z "$as_dir" && as_dir=.
10043 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 10044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 10045 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
68f2de6d 10046 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
10047 break 2
10048 fi
10049done
10050done
7a197a62 10051IFS=$as_save_IFS
ad6254c5
AK
10052
10053 ;;
10054esac
10055fi
10056MSGFMT=$ac_cv_path_MSGFMT
ad6254c5 10057if test -n "$MSGFMT"; then
68f2de6d
AK
10058 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
10059echo "${ECHO_T}$MSGFMT" >&6; }
ad6254c5 10060else
68f2de6d
AK
10061 { echo "$as_me:$LINENO: result: no" >&5
10062echo "${ECHO_T}no" >&6; }
ad6254c5
AK
10063fi
10064
7a197a62 10065
ad6254c5 10066 if [ "x$MSGFMT" == x ];
68f2de6d 10067 then { { echo "$as_me:$LINENO: error: msgfmt not found in path $PATH
ad6254c5 10068 " >&5
68f2de6d 10069echo "$as_me: error: msgfmt not found in path $PATH
ad6254c5
AK
10070 " >&2;}
10071 { (exit 1); exit 1; }; }
10072 fi;
10073
10074
7a197a62 10075# Check whether --with-localedir was given.
ad6254c5 10076if test "${with_localedir+set}" = set; then
7a197a62 10077 withval=$with_localedir; LOCALEDIR="$withval"
ad6254c5
AK
10078else
10079 LOCALEDIR='${prefix}/share/locale'
7a197a62
AK
10080fi
10081
ad6254c5
AK
10082fi
10083
10084################################################################################
10085
7a197a62 10086# Check whether --with-confdir was given.
ad6254c5 10087if test "${with_confdir+set}" = set; then
7a197a62 10088 withval=$with_confdir; CONFDIR="$withval"
ad6254c5
AK
10089else
10090 CONFDIR='/etc'
7a197a62
AK
10091fi
10092
ad6254c5
AK
10093
10094
7a197a62 10095# Check whether --with-staticdir was given.
ad6254c5 10096if test "${with_staticdir+set}" = set; then
7a197a62 10097 withval=$with_staticdir; STATICDIR="$withval"
ad6254c5
AK
10098else
10099 STATICDIR='${exec_prefix}/sbin'
7a197a62 10100fi
ad6254c5 10101
33f732c5 10102
7a197a62 10103
68f2de6d
AK
10104# Check whether --with-usrlibdir was given.
10105if test "${with_usrlibdir+set}" = set; then
10106 withval=$with_usrlibdir; usrlibdir="$withval"
10107else
10108 usrlibdir='${prefix}/lib'
10109fi
10110
10111
10112
10113# Check whether --with-usrsbindir was given.
10114if test "${with_usrsbindir+set}" = set; then
10115 withval=$with_usrsbindir; usrsbindir="$withval"
10116else
10117 usrsbindir='${prefix}/sbin'
10118fi
10119
10120
ad6254c5
AK
10121################################################################################
10122if test x$READLINE = xyes; then
10123
10124
10125for ac_header in readline/readline.h readline/history.h
10126do
68f2de6d 10127as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 10128if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d
AK
10129 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10130echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 10131if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 10132 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 10133fi
68f2de6d
AK
10134ac_res=`eval echo '${'$as_ac_Header'}'`
10135 { echo "$as_me:$LINENO: result: $ac_res" >&5
10136echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
10137else
10138 # Is the header compilable?
68f2de6d
AK
10139{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10140echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 10141cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10142/* confdefs.h. */
10143_ACEOF
10144cat confdefs.h >>conftest.$ac_ext
10145cat >>conftest.$ac_ext <<_ACEOF
10146/* end confdefs.h. */
10147$ac_includes_default
10148#include <$ac_header>
10149_ACEOF
10150rm -f conftest.$ac_objext
7a197a62
AK
10151if { (ac_try="$ac_compile"
10152case "(($ac_try" in
10153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10154 *) ac_try_echo=$ac_try;;
10155esac
68f2de6d 10156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 10157 (eval "$ac_compile") 2>conftest.er1
ad6254c5 10158 ac_status=$?
8a2fc586
AK
10159 grep -v '^ *+' conftest.er1 >conftest.err
10160 rm -f conftest.er1
10161 cat conftest.err >&5
68f2de6d 10162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10163 (exit $ac_status); } && {
10164 test -z "$ac_c_werror_flag" ||
10165 test ! -s conftest.err
10166 } && test -s conftest.$ac_objext; then
ad6254c5
AK
10167 ac_header_compiler=yes
10168else
68f2de6d 10169 echo "$as_me: failed program was:" >&5
ad6254c5
AK
10170sed 's/^/| /' conftest.$ac_ext >&5
10171
7a197a62 10172 ac_header_compiler=no
ad6254c5 10173fi
7a197a62
AK
10174
10175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
68f2de6d
AK
10176{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10177echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
10178
10179# Is the header present?
68f2de6d
AK
10180{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10181echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 10182cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10183/* confdefs.h. */
10184_ACEOF
10185cat confdefs.h >>conftest.$ac_ext
10186cat >>conftest.$ac_ext <<_ACEOF
10187/* end confdefs.h. */
10188#include <$ac_header>
10189_ACEOF
7a197a62
AK
10190if { (ac_try="$ac_cpp conftest.$ac_ext"
10191case "(($ac_try" in
10192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10193 *) ac_try_echo=$ac_try;;
10194esac
68f2de6d 10195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 10196 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
10197 ac_status=$?
10198 grep -v '^ *+' conftest.er1 >conftest.err
10199 rm -f conftest.er1
10200 cat conftest.err >&5
68f2de6d 10201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10202 (exit $ac_status); } >/dev/null && {
10203 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10204 test ! -s conftest.err
10205 }; then
ad6254c5
AK
10206 ac_header_preproc=yes
10207else
68f2de6d 10208 echo "$as_me: failed program was:" >&5
ad6254c5
AK
10209sed 's/^/| /' conftest.$ac_ext >&5
10210
10211 ac_header_preproc=no
10212fi
7a197a62 10213
ad6254c5 10214rm -f conftest.err conftest.$ac_ext
68f2de6d
AK
10215{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10216echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
10217
10218# So? What about this header?
8a2fc586
AK
10219case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10220 yes:no: )
68f2de6d
AK
10221 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10222echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10223 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10224echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 10225 ac_header_preproc=yes
ad6254c5 10226 ;;
8a2fc586 10227 no:yes:* )
68f2de6d
AK
10228 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10229echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10230 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10231echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10232 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10233echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10234 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10235echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10236 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10237echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10238 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10239echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 10240
ad6254c5
AK
10241 ;;
10242esac
68f2de6d
AK
10243{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10244echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 10245if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 10246 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 10247else
8a2fc586 10248 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 10249fi
68f2de6d
AK
10250ac_res=`eval echo '${'$as_ac_Header'}'`
10251 { echo "$as_me:$LINENO: result: $ac_res" >&5
10252echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
10253
10254fi
68f2de6d 10255if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 10256 cat >>confdefs.h <<_ACEOF
68f2de6d 10257#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
10258_ACEOF
10259
10260else
68f2de6d
AK
10261 { { echo "$as_me:$LINENO: error: bailing out" >&5
10262echo "$as_me: error: bailing out" >&2;}
ad6254c5
AK
10263 { (exit 1); exit 1; }; }
10264fi
10265
10266done
10267
10268fi
10269
5c7fc7c4 10270if test x$CLVMD != xnone; then
ad6254c5
AK
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281for 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
10282do
68f2de6d 10283as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 10284if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d
AK
10285 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10286echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 10287if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 10288 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 10289fi
68f2de6d
AK
10290ac_res=`eval echo '${'$as_ac_Header'}'`
10291 { echo "$as_me:$LINENO: result: $ac_res" >&5
10292echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
10293else
10294 # Is the header compilable?
68f2de6d
AK
10295{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10296echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 10297cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10298/* confdefs.h. */
10299_ACEOF
10300cat confdefs.h >>conftest.$ac_ext
10301cat >>conftest.$ac_ext <<_ACEOF
10302/* end confdefs.h. */
10303$ac_includes_default
10304#include <$ac_header>
10305_ACEOF
10306rm -f conftest.$ac_objext
7a197a62
AK
10307if { (ac_try="$ac_compile"
10308case "(($ac_try" in
10309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10310 *) ac_try_echo=$ac_try;;
10311esac
68f2de6d 10312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 10313 (eval "$ac_compile") 2>conftest.er1
ad6254c5 10314 ac_status=$?
8a2fc586
AK
10315 grep -v '^ *+' conftest.er1 >conftest.err
10316 rm -f conftest.er1
10317 cat conftest.err >&5
68f2de6d 10318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10319 (exit $ac_status); } && {
10320 test -z "$ac_c_werror_flag" ||
10321 test ! -s conftest.err
10322 } && test -s conftest.$ac_objext; then
ad6254c5
AK
10323 ac_header_compiler=yes
10324else
68f2de6d 10325 echo "$as_me: failed program was:" >&5
ad6254c5
AK
10326sed 's/^/| /' conftest.$ac_ext >&5
10327
7a197a62 10328 ac_header_compiler=no
ad6254c5 10329fi
7a197a62
AK
10330
10331rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
68f2de6d
AK
10332{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10333echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
10334
10335# Is the header present?
68f2de6d
AK
10336{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10337echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 10338cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10339/* confdefs.h. */
10340_ACEOF
10341cat confdefs.h >>conftest.$ac_ext
10342cat >>conftest.$ac_ext <<_ACEOF
10343/* end confdefs.h. */
10344#include <$ac_header>
10345_ACEOF
7a197a62
AK
10346if { (ac_try="$ac_cpp conftest.$ac_ext"
10347case "(($ac_try" in
10348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10349 *) ac_try_echo=$ac_try;;
10350esac
68f2de6d 10351eval "echo \"\$as_me:$LINENO: $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
68f2de6d 10357 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
68f2de6d 10364 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
68f2de6d
AK
10371{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10372echo "${ECHO_T}$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: )
68f2de6d
AK
10377 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10378echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10379 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10380echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 10381 ac_header_preproc=yes
ad6254c5 10382 ;;
8a2fc586 10383 no:yes:* )
68f2de6d
AK
10384 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10385echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10386 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10387echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10388 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10389echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10390 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10391echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10392 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10393echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10394 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10395echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 10396
ad6254c5
AK
10397 ;;
10398esac
68f2de6d
AK
10399{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10400echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 10401if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 10402 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 10403else
8a2fc586 10404 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 10405fi
68f2de6d
AK
10406ac_res=`eval echo '${'$as_ac_Header'}'`
10407 { echo "$as_me:$LINENO: result: $ac_res" >&5
10408echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
10409
10410fi
68f2de6d 10411if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 10412 cat >>confdefs.h <<_ACEOF
68f2de6d 10413#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
10414_ACEOF
10415
10416else
68f2de6d
AK
10417 { { echo "$as_me:$LINENO: error: bailing out" >&5
10418echo "$as_me: error: bailing out" >&2;}
ad6254c5 10419 { (exit 1); exit 1; }; }
795ca3e5
AK
10420fi
10421
ad6254c5
AK
10422done
10423
10424
795ca3e5 10425
8106cdd5 10426
ad6254c5
AK
10427
10428
10429for ac_func in dup2 getmntent memmove select socket
10430do
68f2de6d
AK
10431as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10432{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10433echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7a197a62 10434if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 10435 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 10436else
ad6254c5 10437 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10438/* confdefs.h. */
10439_ACEOF
10440cat confdefs.h >>conftest.$ac_ext
10441cat >>conftest.$ac_ext <<_ACEOF
10442/* end confdefs.h. */
8a2fc586
AK
10443/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10444 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10445#define $ac_func innocuous_$ac_func
10446
795ca3e5 10447/* System header to define __stub macros and hopefully few prototypes,
ad6254c5
AK
10448 which can conflict with char $ac_func (); below.
10449 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10450 <limits.h> exists even on freestanding compilers. */
8a2fc586 10451
ad6254c5
AK
10452#ifdef __STDC__
10453# include <limits.h>
10454#else
10455# include <assert.h>
10456#endif
8a2fc586
AK
10457
10458#undef $ac_func
10459
7a197a62
AK
10460/* Override any GCC internal prototype to avoid an error.
10461 Use char because int might match the return type of a GCC
10462 builtin and then its argument prototype would still apply. */
ad6254c5
AK
10463#ifdef __cplusplus
10464extern "C"
ad6254c5 10465#endif
ad6254c5 10466char $ac_func ();
795ca3e5
AK
10467/* The GNU C library defines this for functions which it implements
10468 to always fail with ENOSYS. Some functions are actually named
10469 something starting with __ and the normal name is an alias. */
7a197a62 10470#if defined __stub_$ac_func || defined __stub___$ac_func
795ca3e5 10471choke me
795ca3e5
AK
10472#endif
10473
ad6254c5
AK
10474int
10475main ()
10476{
7a197a62 10477return $ac_func ();
ad6254c5
AK
10478 ;
10479 return 0;
10480}
10481_ACEOF
10482rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
10483if { (ac_try="$ac_link"
10484case "(($ac_try" in
10485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10486 *) ac_try_echo=$ac_try;;
10487esac
68f2de6d 10488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 10489 (eval "$ac_link") 2>conftest.er1
ad6254c5 10490 ac_status=$?
8a2fc586
AK
10491 grep -v '^ *+' conftest.er1 >conftest.err
10492 rm -f conftest.er1
10493 cat conftest.err >&5
68f2de6d 10494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10495 (exit $ac_status); } && {
10496 test -z "$ac_c_werror_flag" ||
10497 test ! -s conftest.err
68f2de6d
AK
10498 } && test -s conftest$ac_exeext &&
10499 $as_test_x conftest$ac_exeext; then
ad6254c5 10500 eval "$as_ac_var=yes"
795ca3e5 10501else
68f2de6d 10502 echo "$as_me: failed program was:" >&5
ad6254c5
AK
10503sed 's/^/| /' conftest.$ac_ext >&5
10504
7a197a62 10505 eval "$as_ac_var=no"
80992638 10506fi
7a197a62 10507
25fbec5b 10508rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 10509 conftest$ac_exeext conftest.$ac_ext
795ca3e5 10510fi
68f2de6d
AK
10511ac_res=`eval echo '${'$as_ac_var'}'`
10512 { echo "$as_me:$LINENO: result: $ac_res" >&5
10513echo "${ECHO_T}$ac_res" >&6; }
10514if test `eval echo '${'$as_ac_var'}'` = yes; then
ad6254c5 10515 cat >>confdefs.h <<_ACEOF
68f2de6d 10516#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5 10517_ACEOF
80992638
AK
10518
10519else
68f2de6d
AK
10520 { { echo "$as_me:$LINENO: error: bailing out" >&5
10521echo "$as_me: error: bailing out" >&2;}
ad6254c5 10522 { (exit 1); exit 1; }; }
8106cdd5 10523fi
ad6254c5 10524done
795ca3e5 10525
25fbec5b
AK
10526 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
10527# -lseq on Dynix/PTX, -lgen on Unixware.
68f2de6d
AK
10528{ echo "$as_me:$LINENO: checking for library containing getmntent" >&5
10529echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
25fbec5b 10530if test "${ac_cv_search_getmntent+set}" = set; then
68f2de6d 10531 echo $ECHO_N "(cached) $ECHO_C" >&6
25fbec5b
AK
10532else
10533 ac_func_search_save_LIBS=$LIBS
10534cat >conftest.$ac_ext <<_ACEOF
10535/* confdefs.h. */
10536_ACEOF
10537cat confdefs.h >>conftest.$ac_ext
10538cat >>conftest.$ac_ext <<_ACEOF
10539/* end confdefs.h. */
80992638 10540
7a197a62
AK
10541/* Override any GCC internal prototype to avoid an error.
10542 Use char because int might match the return type of a GCC
ad6254c5 10543 builtin and then its argument prototype would still apply. */
ad6254c5
AK
10544#ifdef __cplusplus
10545extern "C"
10546#endif
25fbec5b 10547char getmntent ();
ad6254c5
AK
10548int
10549main ()
10550{
25fbec5b 10551return getmntent ();
ad6254c5
AK
10552 ;
10553 return 0;
10554}
10555_ACEOF
25fbec5b
AK
10556for ac_lib in '' sun seq gen; do
10557 if test -z "$ac_lib"; then
10558 ac_res="none required"
10559 else
10560 ac_res=-l$ac_lib
10561 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10562 fi
10563 rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
10564if { (ac_try="$ac_link"
10565case "(($ac_try" in
10566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10567 *) ac_try_echo=$ac_try;;
10568esac
68f2de6d 10569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 10570 (eval "$ac_link") 2>conftest.er1
ad6254c5 10571 ac_status=$?
8a2fc586
AK
10572 grep -v '^ *+' conftest.er1 >conftest.err
10573 rm -f conftest.er1
10574 cat conftest.err >&5
68f2de6d 10575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10576 (exit $ac_status); } && {
10577 test -z "$ac_c_werror_flag" ||
10578 test ! -s conftest.err
68f2de6d
AK
10579 } && test -s conftest$ac_exeext &&
10580 $as_test_x conftest$ac_exeext; then
25fbec5b 10581 ac_cv_search_getmntent=$ac_res
80992638 10582else
68f2de6d 10583 echo "$as_me: failed program was:" >&5
ad6254c5
AK
10584sed 's/^/| /' conftest.$ac_ext >&5
10585
25fbec5b 10586
795ca3e5
AK
10587fi
10588
25fbec5b
AK
10589rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10590 conftest$ac_exeext
10591 if test "${ac_cv_search_getmntent+set}" = set; then
10592 break
795ca3e5 10593fi
25fbec5b
AK
10594done
10595if test "${ac_cv_search_getmntent+set}" = set; then
10596 :
10597else
10598 ac_cv_search_getmntent=no
10599fi
10600rm conftest.$ac_ext
10601LIBS=$ac_func_search_save_LIBS
10602fi
68f2de6d
AK
10603{ echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
10604echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
25fbec5b
AK
10605ac_res=$ac_cv_search_getmntent
10606if test "$ac_res" != no; then
10607 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10608 ac_cv_func_getmntent=yes
10609
10610cat >>confdefs.h <<\_ACEOF
68f2de6d 10611#define HAVE_GETMNTENT
ad6254c5 10612_ACEOF
795ca3e5 10613
25fbec5b
AK
10614else
10615 ac_cv_func_getmntent=no
795ca3e5 10616fi
795ca3e5
AK
10617
10618
ad6254c5
AK
10619# AC_FUNC_REALLOC
10620
10621
10622for ac_header in sys/select.h sys/socket.h
10623do
68f2de6d 10624as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 10625if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d
AK
10626 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10627echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 10628if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 10629 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 10630fi
68f2de6d
AK
10631ac_res=`eval echo '${'$as_ac_Header'}'`
10632 { echo "$as_me:$LINENO: result: $ac_res" >&5
10633echo "${ECHO_T}$ac_res" >&6; }
795ca3e5 10634else
ad6254c5 10635 # Is the header compilable?
68f2de6d
AK
10636{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10637echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 10638cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10639/* confdefs.h. */
10640_ACEOF
10641cat confdefs.h >>conftest.$ac_ext
10642cat >>conftest.$ac_ext <<_ACEOF
10643/* end confdefs.h. */
10644$ac_includes_default
10645#include <$ac_header>
10646_ACEOF
10647rm -f conftest.$ac_objext
7a197a62
AK
10648if { (ac_try="$ac_compile"
10649case "(($ac_try" in
10650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10651 *) ac_try_echo=$ac_try;;
10652esac
68f2de6d 10653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 10654 (eval "$ac_compile") 2>conftest.er1
ad6254c5 10655 ac_status=$?
8a2fc586
AK
10656 grep -v '^ *+' conftest.er1 >conftest.err
10657 rm -f conftest.er1
10658 cat conftest.err >&5
68f2de6d 10659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10660 (exit $ac_status); } && {
10661 test -z "$ac_c_werror_flag" ||
10662 test ! -s conftest.err
10663 } && test -s conftest.$ac_objext; then
ad6254c5 10664 ac_header_compiler=yes
80992638 10665else
68f2de6d 10666 echo "$as_me: failed program was:" >&5
ad6254c5
AK
10667sed 's/^/| /' conftest.$ac_ext >&5
10668
7a197a62 10669 ac_header_compiler=no
ad6254c5 10670fi
7a197a62
AK
10671
10672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
68f2de6d
AK
10673{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10674echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
10675
10676# Is the header present?
68f2de6d
AK
10677{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10678echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 10679cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10680/* confdefs.h. */
10681_ACEOF
10682cat confdefs.h >>conftest.$ac_ext
10683cat >>conftest.$ac_ext <<_ACEOF
10684/* end confdefs.h. */
10685#include <$ac_header>
10686_ACEOF
7a197a62
AK
10687if { (ac_try="$ac_cpp conftest.$ac_ext"
10688case "(($ac_try" in
10689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10690 *) ac_try_echo=$ac_try;;
10691esac
68f2de6d 10692eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 10693 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
10694 ac_status=$?
10695 grep -v '^ *+' conftest.er1 >conftest.err
10696 rm -f conftest.er1
10697 cat conftest.err >&5
68f2de6d 10698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10699 (exit $ac_status); } >/dev/null && {
10700 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10701 test ! -s conftest.err
10702 }; then
ad6254c5
AK
10703 ac_header_preproc=yes
10704else
68f2de6d 10705 echo "$as_me: failed program was:" >&5
ad6254c5
AK
10706sed 's/^/| /' conftest.$ac_ext >&5
10707
10708 ac_header_preproc=no
10709fi
7a197a62 10710
ad6254c5 10711rm -f conftest.err conftest.$ac_ext
68f2de6d
AK
10712{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10713echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
10714
10715# So? What about this header?
8a2fc586
AK
10716case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10717 yes:no: )
68f2de6d
AK
10718 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10719echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10720 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10721echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 10722 ac_header_preproc=yes
ad6254c5 10723 ;;
8a2fc586 10724 no:yes:* )
68f2de6d
AK
10725 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10726echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10727 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10728echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10729 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10730echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10731 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10732echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10733 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10734echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10735 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10736echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 10737
ad6254c5
AK
10738 ;;
10739esac
68f2de6d
AK
10740{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10741echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 10742if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 10743 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 10744else
8a2fc586 10745 eval "$as_ac_Header=\$ac_header_preproc"
8106cdd5 10746fi
68f2de6d
AK
10747ac_res=`eval echo '${'$as_ac_Header'}'`
10748 { echo "$as_me:$LINENO: result: $ac_res" >&5
10749echo "${ECHO_T}$ac_res" >&6; }
8106cdd5 10750
795ca3e5 10751fi
68f2de6d 10752if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 10753 cat >>confdefs.h <<_ACEOF
68f2de6d 10754#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
10755_ACEOF
10756
795ca3e5
AK
10757fi
10758
ad6254c5
AK
10759done
10760
68f2de6d
AK
10761{ echo "$as_me:$LINENO: checking types of arguments for select" >&5
10762echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
ad6254c5 10763if test "${ac_cv_func_select_args+set}" = set; then
68f2de6d 10764 echo $ECHO_N "(cached) $ECHO_C" >&6
26e7f2e0 10765else
ad6254c5 10766 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
7a197a62 10767 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
ad6254c5
AK
10768 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
10769 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10770/* confdefs.h. */
10771_ACEOF
10772cat confdefs.h >>conftest.$ac_ext
10773cat >>conftest.$ac_ext <<_ACEOF
10774/* end confdefs.h. */
10775$ac_includes_default
25fbec5b 10776#ifdef HAVE_SYS_SELECT_H
ad6254c5
AK
10777# include <sys/select.h>
10778#endif
25fbec5b 10779#ifdef HAVE_SYS_SOCKET_H
ad6254c5
AK
10780# include <sys/socket.h>
10781#endif
10782
10783int
10784main ()
10785{
10786extern int select ($ac_arg1,
8a2fc586
AK
10787 $ac_arg234, $ac_arg234, $ac_arg234,
10788 $ac_arg5);
ad6254c5
AK
10789 ;
10790 return 0;
10791}
10792_ACEOF
10793rm -f conftest.$ac_objext
7a197a62
AK
10794if { (ac_try="$ac_compile"
10795case "(($ac_try" in
10796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10797 *) ac_try_echo=$ac_try;;
10798esac
68f2de6d 10799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 10800 (eval "$ac_compile") 2>conftest.er1
ad6254c5 10801 ac_status=$?
8a2fc586
AK
10802 grep -v '^ *+' conftest.er1 >conftest.err
10803 rm -f conftest.er1
10804 cat conftest.err >&5
68f2de6d 10805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10806 (exit $ac_status); } && {
10807 test -z "$ac_c_werror_flag" ||
10808 test ! -s conftest.err
10809 } && test -s conftest.$ac_objext; then
ad6254c5
AK
10810 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
10811else
68f2de6d 10812 echo "$as_me: failed program was:" >&5
ad6254c5
AK
10813sed 's/^/| /' conftest.$ac_ext >&5
10814
7a197a62 10815
ad6254c5 10816fi
7a197a62
AK
10817
10818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
10819 done
10820 done
10821done
10822# Provide a safe default value.
10823: ${ac_cv_func_select_args='int,int *,struct timeval *'}
10824
26e7f2e0 10825fi
68f2de6d
AK
10826{ echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
10827echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
ad6254c5
AK
10828ac_save_IFS=$IFS; IFS=','
10829set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
10830IFS=$ac_save_IFS
10831shift
10832
10833cat >>confdefs.h <<_ACEOF
10834#define SELECT_TYPE_ARG1 $1
10835_ACEOF
10836
10837
10838cat >>confdefs.h <<_ACEOF
10839#define SELECT_TYPE_ARG234 ($2)
10840_ACEOF
10841
10842
10843cat >>confdefs.h <<_ACEOF
10844#define SELECT_TYPE_ARG5 ($3)
10845_ACEOF
10846
80992638 10847rm -f conftest*
80992638 10848
8106cdd5 10849fi
ad6254c5 10850
ad6254c5
AK
10851if test x$CLUSTER != xnone; then
10852
10853
10854for ac_header in sys/socket.h sys/un.h
b896caa1 10855do
68f2de6d 10856as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 10857if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d
AK
10858 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10859echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 10860if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 10861 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 10862fi
68f2de6d
AK
10863ac_res=`eval echo '${'$as_ac_Header'}'`
10864 { echo "$as_me:$LINENO: result: $ac_res" >&5
10865echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
10866else
10867 # Is the header compilable?
68f2de6d
AK
10868{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10869echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 10870cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10871/* confdefs.h. */
10872_ACEOF
10873cat confdefs.h >>conftest.$ac_ext
10874cat >>conftest.$ac_ext <<_ACEOF
10875/* end confdefs.h. */
10876$ac_includes_default
10877#include <$ac_header>
10878_ACEOF
10879rm -f conftest.$ac_objext
7a197a62
AK
10880if { (ac_try="$ac_compile"
10881case "(($ac_try" in
10882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10883 *) ac_try_echo=$ac_try;;
10884esac
68f2de6d 10885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 10886 (eval "$ac_compile") 2>conftest.er1
ad6254c5 10887 ac_status=$?
8a2fc586
AK
10888 grep -v '^ *+' conftest.er1 >conftest.err
10889 rm -f conftest.er1
10890 cat conftest.err >&5
68f2de6d 10891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10892 (exit $ac_status); } && {
10893 test -z "$ac_c_werror_flag" ||
10894 test ! -s conftest.err
10895 } && test -s conftest.$ac_objext; then
ad6254c5
AK
10896 ac_header_compiler=yes
10897else
68f2de6d 10898 echo "$as_me: failed program was:" >&5
ad6254c5
AK
10899sed 's/^/| /' conftest.$ac_ext >&5
10900
7a197a62 10901 ac_header_compiler=no
ad6254c5 10902fi
7a197a62
AK
10903
10904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
68f2de6d
AK
10905{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10906echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
10907
10908# Is the header present?
68f2de6d
AK
10909{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10910echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 10911cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10912/* confdefs.h. */
10913_ACEOF
10914cat confdefs.h >>conftest.$ac_ext
10915cat >>conftest.$ac_ext <<_ACEOF
10916/* end confdefs.h. */
10917#include <$ac_header>
10918_ACEOF
7a197a62
AK
10919if { (ac_try="$ac_cpp conftest.$ac_ext"
10920case "(($ac_try" in
10921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10922 *) ac_try_echo=$ac_try;;
10923esac
68f2de6d 10924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 10925 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
10926 ac_status=$?
10927 grep -v '^ *+' conftest.er1 >conftest.err
10928 rm -f conftest.er1
10929 cat conftest.err >&5
68f2de6d 10930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10931 (exit $ac_status); } >/dev/null && {
10932 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10933 test ! -s conftest.err
10934 }; then
ad6254c5
AK
10935 ac_header_preproc=yes
10936else
68f2de6d 10937 echo "$as_me: failed program was:" >&5
ad6254c5
AK
10938sed 's/^/| /' conftest.$ac_ext >&5
10939
10940 ac_header_preproc=no
10941fi
7a197a62 10942
ad6254c5 10943rm -f conftest.err conftest.$ac_ext
68f2de6d
AK
10944{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10945echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
10946
10947# So? What about this header?
8a2fc586
AK
10948case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10949 yes:no: )
68f2de6d
AK
10950 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10951echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10952 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10953echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 10954 ac_header_preproc=yes
ad6254c5 10955 ;;
8a2fc586 10956 no:yes:* )
68f2de6d
AK
10957 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10958echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10959 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10960echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10961 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10962echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10963 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10964echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10965 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10966echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10967 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10968echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 10969
ad6254c5
AK
10970 ;;
10971esac
68f2de6d
AK
10972{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10973echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 10974if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 10975 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 10976else
8a2fc586 10977 eval "$as_ac_Header=\$ac_header_preproc"
b896caa1 10978fi
68f2de6d
AK
10979ac_res=`eval echo '${'$as_ac_Header'}'`
10980 { echo "$as_me:$LINENO: result: $ac_res" >&5
10981echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
10982
10983fi
68f2de6d 10984if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 10985 cat >>confdefs.h <<_ACEOF
68f2de6d 10986#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
10987_ACEOF
10988
80992638 10989else
68f2de6d
AK
10990 { { echo "$as_me:$LINENO: error: bailing out" >&5
10991echo "$as_me: error: bailing out" >&2;}
ad6254c5 10992 { (exit 1); exit 1; }; }
b896caa1 10993fi
ad6254c5 10994
b896caa1
AK
10995done
10996
10997
ad6254c5
AK
10998for ac_func in socket
10999do
68f2de6d
AK
11000as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11001{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11002echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7a197a62 11003if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 11004 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 11005else
ad6254c5 11006 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11007/* confdefs.h. */
11008_ACEOF
11009cat confdefs.h >>conftest.$ac_ext
11010cat >>conftest.$ac_ext <<_ACEOF
11011/* end confdefs.h. */
8a2fc586
AK
11012/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11013 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11014#define $ac_func innocuous_$ac_func
11015
ad6254c5
AK
11016/* System header to define __stub macros and hopefully few prototypes,
11017 which can conflict with char $ac_func (); below.
11018 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11019 <limits.h> exists even on freestanding compilers. */
8a2fc586 11020
ad6254c5
AK
11021#ifdef __STDC__
11022# include <limits.h>
11023#else
11024# include <assert.h>
11025#endif
8a2fc586
AK
11026
11027#undef $ac_func
11028
7a197a62
AK
11029/* Override any GCC internal prototype to avoid an error.
11030 Use char because int might match the return type of a GCC
11031 builtin and then its argument prototype would still apply. */
ad6254c5
AK
11032#ifdef __cplusplus
11033extern "C"
ad6254c5 11034#endif
ad6254c5
AK
11035char $ac_func ();
11036/* The GNU C library defines this for functions which it implements
11037 to always fail with ENOSYS. Some functions are actually named
11038 something starting with __ and the normal name is an alias. */
7a197a62 11039#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 11040choke me
ad6254c5
AK
11041#endif
11042
11043int
11044main ()
11045{
7a197a62 11046return $ac_func ();
ad6254c5
AK
11047 ;
11048 return 0;
11049}
11050_ACEOF
11051rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
11052if { (ac_try="$ac_link"
11053case "(($ac_try" in
11054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11055 *) ac_try_echo=$ac_try;;
11056esac
68f2de6d 11057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 11058 (eval "$ac_link") 2>conftest.er1
ad6254c5 11059 ac_status=$?
8a2fc586
AK
11060 grep -v '^ *+' conftest.er1 >conftest.err
11061 rm -f conftest.er1
11062 cat conftest.err >&5
68f2de6d 11063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11064 (exit $ac_status); } && {
11065 test -z "$ac_c_werror_flag" ||
11066 test ! -s conftest.err
68f2de6d
AK
11067 } && test -s conftest$ac_exeext &&
11068 $as_test_x conftest$ac_exeext; then
ad6254c5
AK
11069 eval "$as_ac_var=yes"
11070else
68f2de6d 11071 echo "$as_me: failed program was:" >&5
ad6254c5
AK
11072sed 's/^/| /' conftest.$ac_ext >&5
11073
7a197a62 11074 eval "$as_ac_var=no"
ad6254c5 11075fi
7a197a62 11076
25fbec5b 11077rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 11078 conftest$ac_exeext conftest.$ac_ext
ad6254c5 11079fi
68f2de6d
AK
11080ac_res=`eval echo '${'$as_ac_var'}'`
11081 { echo "$as_me:$LINENO: result: $ac_res" >&5
11082echo "${ECHO_T}$ac_res" >&6; }
11083if test `eval echo '${'$as_ac_var'}'` = yes; then
ad6254c5 11084 cat >>confdefs.h <<_ACEOF
68f2de6d 11085#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
11086_ACEOF
11087
11088else
68f2de6d
AK
11089 { { echo "$as_me:$LINENO: error: bailing out" >&5
11090echo "$as_me: error: bailing out" >&2;}
ad6254c5
AK
11091 { (exit 1); exit 1; }; }
11092fi
11093done
11094
11095fi
11096
11097if test x$HAVE_LIBDL = xyes; then
11098
11099for ac_header in dlfcn.h
11100do
68f2de6d 11101as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 11102if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d
AK
11103 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11104echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 11105if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 11106 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 11107fi
68f2de6d
AK
11108ac_res=`eval echo '${'$as_ac_Header'}'`
11109 { echo "$as_me:$LINENO: result: $ac_res" >&5
11110echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
11111else
11112 # Is the header compilable?
68f2de6d
AK
11113{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11114echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 11115cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11116/* confdefs.h. */
11117_ACEOF
11118cat confdefs.h >>conftest.$ac_ext
11119cat >>conftest.$ac_ext <<_ACEOF
11120/* end confdefs.h. */
11121$ac_includes_default
11122#include <$ac_header>
11123_ACEOF
11124rm -f conftest.$ac_objext
7a197a62
AK
11125if { (ac_try="$ac_compile"
11126case "(($ac_try" in
11127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11128 *) ac_try_echo=$ac_try;;
11129esac
68f2de6d 11130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 11131 (eval "$ac_compile") 2>conftest.er1
ad6254c5 11132 ac_status=$?
8a2fc586
AK
11133 grep -v '^ *+' conftest.er1 >conftest.err
11134 rm -f conftest.er1
11135 cat conftest.err >&5
68f2de6d 11136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11137 (exit $ac_status); } && {
11138 test -z "$ac_c_werror_flag" ||
11139 test ! -s conftest.err
11140 } && test -s conftest.$ac_objext; then
ad6254c5
AK
11141 ac_header_compiler=yes
11142else
68f2de6d 11143 echo "$as_me: failed program was:" >&5
ad6254c5
AK
11144sed 's/^/| /' conftest.$ac_ext >&5
11145
7a197a62 11146 ac_header_compiler=no
ad6254c5 11147fi
7a197a62
AK
11148
11149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
68f2de6d
AK
11150{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11151echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
11152
11153# Is the header present?
68f2de6d
AK
11154{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11155echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 11156cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11157/* confdefs.h. */
11158_ACEOF
11159cat confdefs.h >>conftest.$ac_ext
11160cat >>conftest.$ac_ext <<_ACEOF
11161/* end confdefs.h. */
11162#include <$ac_header>
11163_ACEOF
7a197a62
AK
11164if { (ac_try="$ac_cpp conftest.$ac_ext"
11165case "(($ac_try" in
11166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11167 *) ac_try_echo=$ac_try;;
11168esac
68f2de6d 11169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 11170 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
11171 ac_status=$?
11172 grep -v '^ *+' conftest.er1 >conftest.err
11173 rm -f conftest.er1
11174 cat conftest.err >&5
68f2de6d 11175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11176 (exit $ac_status); } >/dev/null && {
11177 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11178 test ! -s conftest.err
11179 }; then
ad6254c5
AK
11180 ac_header_preproc=yes
11181else
68f2de6d 11182 echo "$as_me: failed program was:" >&5
ad6254c5
AK
11183sed 's/^/| /' conftest.$ac_ext >&5
11184
11185 ac_header_preproc=no
11186fi
7a197a62 11187
ad6254c5 11188rm -f conftest.err conftest.$ac_ext
68f2de6d
AK
11189{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11190echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
11191
11192# So? What about this header?
8a2fc586
AK
11193case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11194 yes:no: )
68f2de6d
AK
11195 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11196echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11197 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11198echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 11199 ac_header_preproc=yes
ad6254c5 11200 ;;
8a2fc586 11201 no:yes:* )
68f2de6d
AK
11202 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11203echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11204 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11205echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11206 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11207echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11208 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11209echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11210 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11211echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11212 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11213echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 11214
ad6254c5
AK
11215 ;;
11216esac
68f2de6d
AK
11217{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11218echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 11219if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 11220 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 11221else
8a2fc586 11222 eval "$as_ac_Header=\$ac_header_preproc"
795ca3e5 11223fi
68f2de6d
AK
11224ac_res=`eval echo '${'$as_ac_Header'}'`
11225 { echo "$as_me:$LINENO: result: $ac_res" >&5
11226echo "${ECHO_T}$ac_res" >&6; }
80992638 11227
8106cdd5 11228fi
68f2de6d 11229if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 11230 cat >>confdefs.h <<_ACEOF
68f2de6d 11231#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 11232_ACEOF
795ca3e5
AK
11233
11234else
68f2de6d
AK
11235 { { echo "$as_me:$LINENO: error: bailing out" >&5
11236echo "$as_me: error: bailing out" >&2;}
ad6254c5 11237 { (exit 1); exit 1; }; }
795ca3e5
AK
11238fi
11239
ad6254c5 11240done
80992638 11241
ad6254c5 11242fi
80992638 11243
ad6254c5 11244if test x$INTL = xyes; then
83912faa 11245
ad6254c5
AK
11246for ac_header in libintl.h
11247do
68f2de6d 11248as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 11249if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d
AK
11250 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11251echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 11252if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 11253 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 11254fi
68f2de6d
AK
11255ac_res=`eval echo '${'$as_ac_Header'}'`
11256 { echo "$as_me:$LINENO: result: $ac_res" >&5
11257echo "${ECHO_T}$ac_res" >&6; }
83912faa 11258else
ad6254c5 11259 # Is the header compilable?
68f2de6d
AK
11260{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11261echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 11262cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11263/* confdefs.h. */
11264_ACEOF
11265cat confdefs.h >>conftest.$ac_ext
11266cat >>conftest.$ac_ext <<_ACEOF
11267/* end confdefs.h. */
11268$ac_includes_default
11269#include <$ac_header>
11270_ACEOF
11271rm -f conftest.$ac_objext
7a197a62
AK
11272if { (ac_try="$ac_compile"
11273case "(($ac_try" in
11274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11275 *) ac_try_echo=$ac_try;;
11276esac
68f2de6d 11277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 11278 (eval "$ac_compile") 2>conftest.er1
ad6254c5 11279 ac_status=$?
8a2fc586
AK
11280 grep -v '^ *+' conftest.er1 >conftest.err
11281 rm -f conftest.er1
11282 cat conftest.err >&5
68f2de6d 11283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11284 (exit $ac_status); } && {
11285 test -z "$ac_c_werror_flag" ||
11286 test ! -s conftest.err
11287 } && test -s conftest.$ac_objext; then
ad6254c5
AK
11288 ac_header_compiler=yes
11289else
68f2de6d 11290 echo "$as_me: failed program was:" >&5
ad6254c5
AK
11291sed 's/^/| /' conftest.$ac_ext >&5
11292
7a197a62 11293 ac_header_compiler=no
ad6254c5 11294fi
7a197a62
AK
11295
11296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
68f2de6d
AK
11297{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11298echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
11299
11300# Is the header present?
68f2de6d
AK
11301{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11302echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 11303cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11304/* confdefs.h. */
11305_ACEOF
11306cat confdefs.h >>conftest.$ac_ext
11307cat >>conftest.$ac_ext <<_ACEOF
11308/* end confdefs.h. */
11309#include <$ac_header>
11310_ACEOF
7a197a62
AK
11311if { (ac_try="$ac_cpp conftest.$ac_ext"
11312case "(($ac_try" in
11313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11314 *) ac_try_echo=$ac_try;;
11315esac
68f2de6d 11316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 11317 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
11318 ac_status=$?
11319 grep -v '^ *+' conftest.er1 >conftest.err
11320 rm -f conftest.er1
11321 cat conftest.err >&5
68f2de6d 11322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11323 (exit $ac_status); } >/dev/null && {
11324 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11325 test ! -s conftest.err
11326 }; then
ad6254c5
AK
11327 ac_header_preproc=yes
11328else
68f2de6d 11329 echo "$as_me: failed program was:" >&5
ad6254c5
AK
11330sed 's/^/| /' conftest.$ac_ext >&5
11331
11332 ac_header_preproc=no
11333fi
7a197a62 11334
ad6254c5 11335rm -f conftest.err conftest.$ac_ext
68f2de6d
AK
11336{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11337echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
11338
11339# So? What about this header?
8a2fc586
AK
11340case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11341 yes:no: )
68f2de6d
AK
11342 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11343echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11344 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11345echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 11346 ac_header_preproc=yes
ad6254c5 11347 ;;
8a2fc586 11348 no:yes:* )
68f2de6d
AK
11349 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11350echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11351 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11352echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11353 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11354echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11355 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11356echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11357 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11358echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11359 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11360echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 11361
ad6254c5
AK
11362 ;;
11363esac
68f2de6d
AK
11364{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11365echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 11366if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 11367 echo $ECHO_N "(cached) $ECHO_C" >&6
80992638 11368else
8a2fc586 11369 eval "$as_ac_Header=\$ac_header_preproc"
83912faa 11370fi
68f2de6d
AK
11371ac_res=`eval echo '${'$as_ac_Header'}'`
11372 { echo "$as_me:$LINENO: result: $ac_res" >&5
11373echo "${ECHO_T}$ac_res" >&6; }
83912faa 11374
69792976 11375fi
68f2de6d 11376if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 11377 cat >>confdefs.h <<_ACEOF
68f2de6d 11378#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 11379_ACEOF
69792976 11380
69792976 11381else
68f2de6d
AK
11382 { { echo "$as_me:$LINENO: error: bailing out" >&5
11383echo "$as_me: error: bailing out" >&2;}
ad6254c5 11384 { (exit 1); exit 1; }; }
80992638
AK
11385fi
11386
ad6254c5 11387done
69792976 11388
ad6254c5
AK
11389fi
11390
ad6254c5
AK
11391
11392for ac_header in libdevmapper.h
11393do
68f2de6d 11394as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 11395if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d
AK
11396 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11397echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 11398if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 11399 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 11400fi
68f2de6d
AK
11401ac_res=`eval echo '${'$as_ac_Header'}'`
11402 { echo "$as_me:$LINENO: result: $ac_res" >&5
11403echo "${ECHO_T}$ac_res" >&6; }
69792976 11404else
ad6254c5 11405 # Is the header compilable?
68f2de6d
AK
11406{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11407echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 11408cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11409/* confdefs.h. */
11410_ACEOF
11411cat confdefs.h >>conftest.$ac_ext
11412cat >>conftest.$ac_ext <<_ACEOF
11413/* end confdefs.h. */
11414$ac_includes_default
11415#include <$ac_header>
11416_ACEOF
11417rm -f conftest.$ac_objext
7a197a62
AK
11418if { (ac_try="$ac_compile"
11419case "(($ac_try" in
11420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11421 *) ac_try_echo=$ac_try;;
11422esac
68f2de6d 11423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 11424 (eval "$ac_compile") 2>conftest.er1
ad6254c5 11425 ac_status=$?
8a2fc586
AK
11426 grep -v '^ *+' conftest.er1 >conftest.err
11427 rm -f conftest.er1
11428 cat conftest.err >&5
68f2de6d 11429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11430 (exit $ac_status); } && {
11431 test -z "$ac_c_werror_flag" ||
11432 test ! -s conftest.err
11433 } && test -s conftest.$ac_objext; then
ad6254c5
AK
11434 ac_header_compiler=yes
11435else
68f2de6d 11436 echo "$as_me: failed program was:" >&5
ad6254c5
AK
11437sed 's/^/| /' conftest.$ac_ext >&5
11438
7a197a62 11439 ac_header_compiler=no
ad6254c5 11440fi
7a197a62
AK
11441
11442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
68f2de6d
AK
11443{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11444echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
11445
11446# Is the header present?
68f2de6d
AK
11447{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11448echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 11449cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11450/* confdefs.h. */
11451_ACEOF
11452cat confdefs.h >>conftest.$ac_ext
11453cat >>conftest.$ac_ext <<_ACEOF
11454/* end confdefs.h. */
11455#include <$ac_header>
11456_ACEOF
7a197a62
AK
11457if { (ac_try="$ac_cpp conftest.$ac_ext"
11458case "(($ac_try" in
11459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11460 *) ac_try_echo=$ac_try;;
11461esac
68f2de6d 11462eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 11463 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
11464 ac_status=$?
11465 grep -v '^ *+' conftest.er1 >conftest.err
11466 rm -f conftest.er1
11467 cat conftest.err >&5
68f2de6d 11468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11469 (exit $ac_status); } >/dev/null && {
11470 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11471 test ! -s conftest.err
11472 }; then
ad6254c5
AK
11473 ac_header_preproc=yes
11474else
68f2de6d 11475 echo "$as_me: failed program was:" >&5
ad6254c5
AK
11476sed 's/^/| /' conftest.$ac_ext >&5
11477
11478 ac_header_preproc=no
11479fi
7a197a62 11480
ad6254c5 11481rm -f conftest.err conftest.$ac_ext
68f2de6d
AK
11482{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11483echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
11484
11485# So? What about this header?
8a2fc586
AK
11486case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11487 yes:no: )
68f2de6d
AK
11488 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11489echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11490 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11491echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 11492 ac_header_preproc=yes
ad6254c5 11493 ;;
8a2fc586 11494 no:yes:* )
68f2de6d
AK
11495 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11496echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11497 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11498echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11499 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11500echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11501 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11502echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11503 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11504echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11505 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11506echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 11507
ad6254c5
AK
11508 ;;
11509esac
68f2de6d
AK
11510{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11511echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 11512if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 11513 echo $ECHO_N "(cached) $ECHO_C" >&6
69792976 11514else
8a2fc586 11515 eval "$as_ac_Header=\$ac_header_preproc"
69792976 11516fi
68f2de6d
AK
11517ac_res=`eval echo '${'$as_ac_Header'}'`
11518 { echo "$as_me:$LINENO: result: $ac_res" >&5
11519echo "${ECHO_T}$ac_res" >&6; }
69792976 11520
ad6254c5 11521fi
68f2de6d 11522if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 11523 cat >>confdefs.h <<_ACEOF
68f2de6d 11524#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 11525_ACEOF
69792976 11526
69792976 11527else
68f2de6d
AK
11528 { { echo "$as_me:$LINENO: error: bailing out" >&5
11529echo "$as_me: error: bailing out" >&2;}
ad6254c5 11530 { (exit 1); exit 1; }; }
83912faa
AK
11531fi
11532
ad6254c5
AK
11533done
11534
4a7f3eb2 11535
ad6254c5
AK
11536if test x$HAVE_SELINUX = xyes; then
11537
11538for ac_header in selinux/selinux.h
11539do
68f2de6d 11540as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 11541if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d
AK
11542 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11543echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 11544if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 11545 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 11546fi
68f2de6d
AK
11547ac_res=`eval echo '${'$as_ac_Header'}'`
11548 { echo "$as_me:$LINENO: result: $ac_res" >&5
11549echo "${ECHO_T}$ac_res" >&6; }
4a7f3eb2 11550else
ad6254c5 11551 # Is the header compilable?
68f2de6d
AK
11552{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11553echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 11554cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11555/* confdefs.h. */
11556_ACEOF
11557cat confdefs.h >>conftest.$ac_ext
11558cat >>conftest.$ac_ext <<_ACEOF
11559/* end confdefs.h. */
11560$ac_includes_default
11561#include <$ac_header>
11562_ACEOF
11563rm -f conftest.$ac_objext
7a197a62
AK
11564if { (ac_try="$ac_compile"
11565case "(($ac_try" in
11566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11567 *) ac_try_echo=$ac_try;;
11568esac
68f2de6d 11569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 11570 (eval "$ac_compile") 2>conftest.er1
ad6254c5 11571 ac_status=$?
8a2fc586
AK
11572 grep -v '^ *+' conftest.er1 >conftest.err
11573 rm -f conftest.er1
11574 cat conftest.err >&5
68f2de6d 11575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11576 (exit $ac_status); } && {
11577 test -z "$ac_c_werror_flag" ||
11578 test ! -s conftest.err
11579 } && test -s conftest.$ac_objext; then
ad6254c5
AK
11580 ac_header_compiler=yes
11581else
68f2de6d 11582 echo "$as_me: failed program was:" >&5
ad6254c5
AK
11583sed 's/^/| /' conftest.$ac_ext >&5
11584
7a197a62 11585 ac_header_compiler=no
ad6254c5 11586fi
7a197a62
AK
11587
11588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
68f2de6d
AK
11589{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11590echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
11591
11592# Is the header present?
68f2de6d
AK
11593{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11594echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 11595cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11596/* confdefs.h. */
11597_ACEOF
11598cat confdefs.h >>conftest.$ac_ext
11599cat >>conftest.$ac_ext <<_ACEOF
11600/* end confdefs.h. */
11601#include <$ac_header>
11602_ACEOF
7a197a62
AK
11603if { (ac_try="$ac_cpp conftest.$ac_ext"
11604case "(($ac_try" in
11605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11606 *) ac_try_echo=$ac_try;;
11607esac
68f2de6d 11608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 11609 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
11610 ac_status=$?
11611 grep -v '^ *+' conftest.er1 >conftest.err
11612 rm -f conftest.er1
11613 cat conftest.err >&5
68f2de6d 11614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11615 (exit $ac_status); } >/dev/null && {
11616 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11617 test ! -s conftest.err
11618 }; then
ad6254c5
AK
11619 ac_header_preproc=yes
11620else
68f2de6d 11621 echo "$as_me: failed program was:" >&5
ad6254c5
AK
11622sed 's/^/| /' conftest.$ac_ext >&5
11623
11624 ac_header_preproc=no
11625fi
7a197a62 11626
ad6254c5 11627rm -f conftest.err conftest.$ac_ext
68f2de6d
AK
11628{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11629echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
11630
11631# So? What about this header?
8a2fc586
AK
11632case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11633 yes:no: )
68f2de6d
AK
11634 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11635echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11636 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11637echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 11638 ac_header_preproc=yes
ad6254c5 11639 ;;
8a2fc586 11640 no:yes:* )
68f2de6d
AK
11641 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11642echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11643 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11644echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11645 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11646echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11647 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11648echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11649 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11650echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11651 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11652echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 11653
ad6254c5
AK
11654 ;;
11655esac
68f2de6d
AK
11656{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11657echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 11658if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 11659 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 11660else
8a2fc586 11661 eval "$as_ac_Header=\$ac_header_preproc"
80992638 11662fi
68f2de6d
AK
11663ac_res=`eval echo '${'$as_ac_Header'}'`
11664 { echo "$as_me:$LINENO: result: $ac_res" >&5
11665echo "${ECHO_T}$ac_res" >&6; }
4a7f3eb2 11666
ad6254c5 11667fi
68f2de6d 11668if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 11669 cat >>confdefs.h <<_ACEOF
68f2de6d 11670#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 11671_ACEOF
0a62c911 11672
0a62c911 11673else
68f2de6d
AK
11674 { { echo "$as_me:$LINENO: error: bailing out" >&5
11675echo "$as_me: error: bailing out" >&2;}
ad6254c5 11676 { (exit 1); exit 1; }; }
80992638
AK
11677fi
11678
ad6254c5 11679done
0a62c911 11680
ad6254c5 11681fi
0a62c911 11682
a653923f
AK
11683################################################################################
11684# Extract the first word of "modprobe", so it can be a program name with args.
11685set dummy modprobe; ac_word=$2
68f2de6d
AK
11686{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11687echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
72b2cb61 11688if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then
68f2de6d 11689 echo $ECHO_N "(cached) $ECHO_C" >&6
72b2cb61
AK
11690else
11691 case $MODPROBE_CMD in
11692 [\\/]* | ?:[\\/]*)
11693 ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path.
11694 ;;
11695 *)
11696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11697for as_dir in $PATH
11698do
11699 IFS=$as_save_IFS
11700 test -z "$as_dir" && as_dir=.
11701 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 11702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
72b2cb61 11703 ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext"
68f2de6d 11704 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
72b2cb61
AK
11705 break 2
11706 fi
11707done
11708done
7a197a62 11709IFS=$as_save_IFS
72b2cb61
AK
11710
11711 ;;
11712esac
11713fi
11714MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD
72b2cb61 11715if test -n "$MODPROBE_CMD"; then
68f2de6d
AK
11716 { echo "$as_me:$LINENO: result: $MODPROBE_CMD" >&5
11717echo "${ECHO_T}$MODPROBE_CMD" >&6; }
72b2cb61 11718else
68f2de6d
AK
11719 { echo "$as_me:$LINENO: result: no" >&5
11720echo "${ECHO_T}no" >&6; }
72b2cb61
AK
11721fi
11722
a653923f 11723
7a197a62 11724
a653923f 11725if test x$MODPROBE_CMD != x; then
72b2cb61
AK
11726
11727cat >>confdefs.h <<_ACEOF
11728#define MODPROBE_CMD "$MODPROBE_CMD"
11729_ACEOF
11730
a653923f
AK
11731fi
11732
80992638 11733################################################################################
93bd259b
AK
11734
11735
11736if test "$BUILD_DMEVENTD" = yes; then
11737
11738# Check whether --with-dmeventd-pidfile was given.
11739if test "${with_dmeventd_pidfile+set}" = set; then
11740 withval=$with_dmeventd_pidfile; cat >>confdefs.h <<_ACEOF
11741#define DMEVENTD_PIDFILE "$withval"
11742_ACEOF
11743
11744else
11745 cat >>confdefs.h <<_ACEOF
11746#define DMEVENTD_PIDFILE "/var/run/dmeventd.pid"
11747_ACEOF
11748
11749fi
11750
11751fi
11752
11753
11754
11755if test "$BUILD_DMEVENTD" = yes; then
11756 dmeventd_prefix="$exec_prefix"
11757 if test "x$dmeventd_prefix" = "xNONE"; then
11758 dmeventd_prefix="$prefix"
11759 fi
11760 if test "x$dmeventd_prefix" = "xNONE"; then
11761 dmeventd_prefix=""
11762 fi
11763
11764# Check whether --with-dmeventd-path was given.
11765if test "${with_dmeventd_path+set}" = set; then
11766 withval=$with_dmeventd_path; cat >>confdefs.h <<_ACEOF
11767#define DMEVENTD_PATH "$withval"
11768_ACEOF
11769
11770else
11771 cat >>confdefs.h <<_ACEOF
11772#define DMEVENTD_PATH "$dmeventd_prefix/sbin/dmeventd"
11773_ACEOF
11774
11775fi
11776
11777fi
11778
11779################################################################################
11780{ echo "$as_me:$LINENO: checking for kernel interface choice" >&5
11781echo $ECHO_N "checking for kernel interface choice... $ECHO_C" >&6; }
11782
11783# Check whether --with-interface was given.
11784if test "${with_interface+set}" = set; then
11785 withval=$with_interface; interface="$withval"
11786else
11787 interface=ioctl
11788fi
11789
11790if [ "x$interface" != xioctl ];
11791then
11792 { { echo "$as_me:$LINENO: error: --with-interface=ioctl required. fs no longer supported." >&5
11793echo "$as_me: error: --with-interface=ioctl required. fs no longer supported." >&2;}
11794 { (exit 1); exit 1; }; }
11795fi
11796{ echo "$as_me:$LINENO: result: $interface" >&5
11797echo "${ECHO_T}$interface" >&6; }
11798
11799################################################################################
11800DM_LIB_VERSION="\"`cat VERSION_LIB 2>/dev/null || echo Unknown`\""
24bbc4d7
AK
11801
11802cat >>confdefs.h <<_ACEOF
11803#define DM_LIB_VERSION $DM_LIB_VERSION
11804_ACEOF
11805
11806
d0191583 11807LVM_VERSION="\"`cat VERSION 2>/dev/null || echo Unknown`\""
fae0c576 11808
80992638 11809################################################################################
fae0c576 11810
83912faa 11811
795ca3e5
AK
11812
11813
11814
11815
11816
11817
5a52dca9 11818
8ef2b021 11819
199e490e 11820
69792976
AK
11821
11822
11823
d0191583 11824
69792976 11825
8106cdd5
AK
11826
11827
11828
11829
11830
d68a82ec 11831
036f273a 11832
7d1552c9 11833
8106cdd5 11834
0a62c911 11835
8106cdd5 11836
4a7f3eb2 11837
4922197a
AK
11838
11839
d8ac0fbc 11840
1a9ea74d 11841
8a2fc586
AK
11842
11843
d0191583 11844
93bd259b
AK
11845
11846
11847
11848
11849
d0191583
JM
11850
11851
11852
11853
11854
8a2fc586 11855
8ce0cbda 11856
8b1a3214 11857
33f732c5 11858
66e941e8 11859
d3c8211f 11860
68f2de6d
AK
11861
11862
80992638 11863################################################################################
04f06bc9 11864ac_config_files="$ac_config_files Makefile make.tmpl daemons/Makefile daemons/clvmd/Makefile daemons/dmeventd/Makefile daemons/dmeventd/libdevmapper-event.pc daemons/dmeventd/plugins/Makefile daemons/dmeventd/plugins/mirror/Makefile daemons/dmeventd/plugins/snapshot/Makefile doc/Makefile include/Makefile lib/Makefile lib/format1/Makefile lib/format_pool/Makefile lib/locking/Makefile lib/mirror/Makefile lib/snapshot/Makefile libdm/Makefile libdm/libdevmapper.pc man/Makefile po/Makefile scripts/Makefile test/Makefile tools/Makefile tools/version.h"
7a197a62 11865
ad6254c5 11866cat >confcache <<\_ACEOF
795ca3e5
AK
11867# This file is a shell script that caches the results of configure
11868# tests run on this system so they can be shared between configure
ad6254c5
AK
11869# scripts and configure runs, see configure's option --config-cache.
11870# It is not useful on other systems. If it contains results you don't
11871# want to keep, you may remove or edit it.
795ca3e5 11872#
ad6254c5
AK
11873# config.status only pays attention to the cache file if you give it
11874# the --recheck option to rerun configure.
795ca3e5 11875#
ad6254c5
AK
11876# `ac_cv_env_foo' variables (set or unset) will be overridden when
11877# loading this file, other *unset* `ac_cv_foo' will be assigned the
11878# following values.
11879
11880_ACEOF
11881
795ca3e5
AK
11882# The following way of writing the cache mishandles newlines in values,
11883# but we know of no workaround that is simple, portable, and efficient.
7a197a62 11884# So, we kill variables containing newlines.
795ca3e5
AK
11885# Ultrix sh set writes to stderr and can't be redirected directly,
11886# and sets the high bit in the cache file unless we assign to the vars.
7a197a62
AK
11887(
11888 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11889 eval ac_val=\$$ac_var
11890 case $ac_val in #(
11891 *${as_nl}*)
11892 case $ac_var in #(
68f2de6d
AK
11893 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
11894echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
7a197a62
AK
11895 esac
11896 case $ac_var in #(
11897 _ | IFS | as_nl) ;; #(
11898 *) $as_unset $ac_var ;;
11899 esac ;;
11900 esac
11901 done
11902
ad6254c5 11903 (set) 2>&1 |
7a197a62
AK
11904 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11905 *${as_nl}ac_space=\ *)
ad6254c5
AK
11906 # `set' does not quote correctly, so add quotes (double-quote
11907 # substitution turns \\\\ into \\, and sed turns \\ into \).
11908 sed -n \
8a2fc586
AK
11909 "s/'/'\\\\''/g;
11910 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7a197a62 11911 ;; #(
ad6254c5
AK
11912 *)
11913 # `set' quotes correctly as required by POSIX, so do not add quotes.
7a197a62 11914 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
ad6254c5 11915 ;;
7a197a62
AK
11916 esac |
11917 sort
11918) |
ad6254c5 11919 sed '
7a197a62 11920 /^ac_cv_env_/b end
ad6254c5 11921 t clear
7a197a62 11922 :clear
ad6254c5
AK
11923 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11924 t end
7a197a62
AK
11925 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11926 :end' >>confcache
11927if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11928 if test -w "$cache_file"; then
11929 test "x$cache_file" != "x/dev/null" &&
68f2de6d
AK
11930 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
11931echo "$as_me: updating cache $cache_file" >&6;}
ad6254c5 11932 cat confcache >$cache_file
795ca3e5 11933 else
68f2de6d
AK
11934 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
11935echo "$as_me: not updating unwritable cache $cache_file" >&6;}
795ca3e5
AK
11936 fi
11937fi
11938rm -f confcache
11939
795ca3e5
AK
11940test "x$prefix" = xNONE && prefix=$ac_default_prefix
11941# Let make expand exec_prefix.
11942test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11943
72b2cb61 11944DEFS=-DHAVE_CONFIG_H
ad6254c5
AK
11945
11946ac_libobjs=
11947ac_ltlibobjs=
11948for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11949 # 1. Remove the extension, and $U if already installed.
7a197a62 11950 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
68f2de6d 11951 ac_i=`echo "$ac_i" | sed "$ac_script"`
7a197a62
AK
11952 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11953 # will be set to the directory where LIBOBJS objects are built.
11954 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11955 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
ad6254c5
AK
11956done
11957LIBOBJS=$ac_libobjs
80992638 11958
ad6254c5
AK
11959LTLIBOBJS=$ac_ltlibobjs
11960
11961
11962
11963: ${CONFIG_STATUS=./config.status}
11964ac_clean_files_save=$ac_clean_files
11965ac_clean_files="$ac_clean_files $CONFIG_STATUS"
68f2de6d
AK
11966{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11967echo "$as_me: creating $CONFIG_STATUS" >&6;}
11968cat >$CONFIG_STATUS <<_ACEOF
ad6254c5
AK
11969#! $SHELL
11970# Generated by $as_me.
795ca3e5 11971# Run this file to recreate the current configuration.
795ca3e5 11972# Compiler output produced by configure, useful for debugging
ad6254c5
AK
11973# configure, is in config.log if it exists.
11974
11975debug=false
11976ac_cs_recheck=false
11977ac_cs_silent=false
11978SHELL=\${CONFIG_SHELL-$SHELL}
11979_ACEOF
11980
68f2de6d 11981cat >>$CONFIG_STATUS <<\_ACEOF
ad6254c5
AK
11982## --------------------- ##
11983## M4sh Initialization. ##
11984## --------------------- ##
11985
25fbec5b
AK
11986# Be more Bourne compatible
11987DUALCASE=1; export DUALCASE # for MKS sh
ad6254c5
AK
11988if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11989 emulate sh
11990 NULLCMD=:
68f2de6d 11991 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
ad6254c5
AK
11992 # is contrary to our usage. Disable this feature.
11993 alias -g '${1+"$@"}'='"$@"'
7a197a62
AK
11994 setopt NO_GLOB_SUBST
11995else
25fbec5b
AK
11996 case `(set -o) 2>/dev/null` in
11997 *posix*) set -o posix ;;
11998esac
11999
7a197a62 12000fi
25fbec5b
AK
12001
12002
7a197a62
AK
12003
12004
12005# PATH needs CR
12006# Avoid depending upon Character Ranges.
12007as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12008as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12009as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12010as_cr_digits='0123456789'
12011as_cr_alnum=$as_cr_Letters$as_cr_digits
12012
b145d876
ZK
12013# The user is always right.
12014if test "${PATH_SEPARATOR+set}" != set; then
68f2de6d
AK
12015 echo "#! /bin/sh" >conf$$.sh
12016 echo "exit 0" >>conf$$.sh
12017 chmod +x conf$$.sh
12018 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12019 PATH_SEPARATOR=';'
12020 else
12021 PATH_SEPARATOR=:
12022 fi
12023 rm -f conf$$.sh
ad6254c5
AK
12024fi
12025
12026# Support unset when possible.
8a2fc586 12027if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
ad6254c5
AK
12028 as_unset=unset
12029else
12030 as_unset=false
12031fi
8106cdd5 12032
ad6254c5 12033
7a197a62
AK
12034# IFS
12035# We need space, tab and new line, in precisely that order. Quoting is
12036# there to prevent editors from complaining about space-tab.
12037# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12038# splitting by setting IFS to empty value.)
68f2de6d
AK
12039as_nl='
12040'
7a197a62
AK
12041IFS=" "" $as_nl"
12042
12043# Find who we are. Look in the path if we contain no directory separator.
12044case $0 in
12045 *[\\/]* ) as_myself=$0 ;;
12046 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12047for as_dir in $PATH
12048do
12049 IFS=$as_save_IFS
12050 test -z "$as_dir" && as_dir=.
12051 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12052done
12053IFS=$as_save_IFS
12054
12055 ;;
12056esac
12057# We did not find ourselves, most probably we were run as `sh COMMAND'
12058# in which case we are not to be found in the path.
12059if test "x$as_myself" = x; then
12060 as_myself=$0
12061fi
12062if test ! -f "$as_myself"; then
68f2de6d 12063 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7a197a62
AK
12064 { (exit 1); exit 1; }
12065fi
12066
ad6254c5 12067# Work around bugs in pre-3.0 UWIN ksh.
7a197a62
AK
12068for as_var in ENV MAIL MAILPATH
12069do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12070done
ad6254c5
AK
12071PS1='$ '
12072PS2='> '
12073PS4='+ '
12074
12075# NLS nuisances.
68f2de6d
AK
12076for as_var in \
12077 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12078 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12079 LC_TELEPHONE LC_TIME
12080do
12081 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12082 eval $as_var=C; export $as_var
12083 else
12084 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12085 fi
12086done
8106cdd5 12087
ad6254c5 12088# Required to use basename.
7a197a62
AK
12089if expr a : '\(a\)' >/dev/null 2>&1 &&
12090 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
12091 as_expr=expr
12092else
12093 as_expr=false
12094fi
8106cdd5 12095
7a197a62 12096if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
ad6254c5
AK
12097 as_basename=basename
12098else
12099 as_basename=false
12100fi
12101
12102
12103# Name of the executable.
7a197a62 12104as_me=`$as_basename -- "$0" ||
ad6254c5
AK
12105$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12106 X"$0" : 'X\(//\)$' \| \
7a197a62 12107 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
68f2de6d 12108echo X/"$0" |
7a197a62
AK
12109 sed '/^.*\/\([^/][^/]*\)\/*$/{
12110 s//\1/
12111 q
12112 }
12113 /^X\/\(\/\/\)$/{
12114 s//\1/
12115 q
12116 }
12117 /^X\/\(\/\).*/{
12118 s//\1/
12119 q
12120 }
12121 s/.*/./; q'`
ad6254c5 12122
7a197a62
AK
12123# CDPATH.
12124$as_unset CDPATH
ad6254c5
AK
12125
12126
ad6254c5 12127
ad6254c5
AK
12128 as_lineno_1=$LINENO
12129 as_lineno_2=$LINENO
ad6254c5 12130 test "x$as_lineno_1" != "x$as_lineno_2" &&
7a197a62 12131 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
795ca3e5 12132
ad6254c5
AK
12133 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12134 # uniformly replaced by the line number. The first 'sed' inserts a
7a197a62
AK
12135 # line-number line after each line using $LINENO; the second 'sed'
12136 # does the real work. The second script uses 'N' to pair each
12137 # line-number line with the line containing $LINENO, and appends
12138 # trailing '-' during substitution so that $LINENO is not a special
12139 # case at line end.
ad6254c5 12140 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7a197a62
AK
12141 # scripts with optimization help from Paolo Bonzini. Blame Lee
12142 # E. McMahon (1931-1989) for sed's syntax. :-)
12143 sed -n '
12144 p
12145 /[$]LINENO/=
12146 ' <$as_myself |
ad6254c5 12147 sed '
7a197a62
AK
12148 s/[$]LINENO.*/&-/
12149 t lineno
12150 b
12151 :lineno
ad6254c5 12152 N
7a197a62
AK
12153 :loop
12154 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
ad6254c5 12155 t loop
7a197a62 12156 s/-\n.*//
ad6254c5 12157 ' >$as_me.lineno &&
7a197a62 12158 chmod +x "$as_me.lineno" ||
68f2de6d 12159 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
ad6254c5
AK
12160 { (exit 1); exit 1; }; }
12161
12162 # Don't try to exec as it changes $[0], causing all sort of problems
12163 # (the dirname of $[0] is not the place where we might find the
7a197a62
AK
12164 # original and so on. Autoconf is especially sensitive to this).
12165 . "./$as_me.lineno"
ad6254c5
AK
12166 # Exit status is that of the last command.
12167 exit
12168}
12169
12170
7a197a62
AK
12171if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12172 as_dirname=dirname
12173else
12174 as_dirname=false
12175fi
12176
12177ECHO_C= ECHO_N= ECHO_T=
12178case `echo -n x` in
12179-n*)
12180 case `echo 'x\c'` in
12181 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12182 *) ECHO_C='\c';;
12183 esac;;
12184*)
12185 ECHO_N='-n';;
ad6254c5 12186esac
68f2de6d 12187
7a197a62
AK
12188if expr a : '\(a\)' >/dev/null 2>&1 &&
12189 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
12190 as_expr=expr
12191else
12192 as_expr=false
12193fi
80992638 12194
ad6254c5 12195rm -f conf$$ conf$$.exe conf$$.file
7a197a62
AK
12196if test -d conf$$.dir; then
12197 rm -f conf$$.dir/conf$$.file
12198else
12199 rm -f conf$$.dir
68f2de6d
AK
12200 mkdir conf$$.dir
12201fi
12202echo >conf$$.file
12203if ln -s conf$$.file conf$$ 2>/dev/null; then
12204 as_ln_s='ln -s'
12205 # ... but there are two gotchas:
12206 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12207 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12208 # In both cases, we have to default to `cp -p'.
12209 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
ad6254c5 12210 as_ln_s='cp -p'
68f2de6d
AK
12211elif ln conf$$.file conf$$ 2>/dev/null; then
12212 as_ln_s=ln
ad6254c5
AK
12213else
12214 as_ln_s='cp -p'
12215fi
7a197a62
AK
12216rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12217rmdir conf$$.dir 2>/dev/null
8106cdd5 12218
ad6254c5
AK
12219if mkdir -p . 2>/dev/null; then
12220 as_mkdir_p=:
12221else
8a2fc586 12222 test -d ./-p && rmdir ./-p
ad6254c5
AK
12223 as_mkdir_p=false
12224fi
12225
25fbec5b
AK
12226if test -x / >/dev/null 2>&1; then
12227 as_test_x='test -x'
7a197a62 12228else
25fbec5b
AK
12229 if ls -dL / >/dev/null 2>&1; then
12230 as_ls_L_option=L
12231 else
12232 as_ls_L_option=
12233 fi
12234 as_test_x='
12235 eval sh -c '\''
12236 if test -d "$1"; then
68f2de6d 12237 test -d "$1/.";
25fbec5b
AK
12238 else
12239 case $1 in
68f2de6d 12240 -*)set "./$1";;
25fbec5b
AK
12241 esac;
12242 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
12243 ???[sx]*):;;*)false;;esac;fi
12244 '\'' sh
12245 '
7a197a62 12246fi
25fbec5b 12247as_executable_p=$as_test_x
ad6254c5
AK
12248
12249# Sed expression to map a string onto a valid CPP name.
8a2fc586 12250as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
12251
12252# Sed expression to map a string onto a valid variable name.
8a2fc586 12253as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
12254
12255
ad6254c5
AK
12256exec 6>&1
12257
7a197a62 12258# Save the log message, to keep $[0] and so on meaningful, and to
ad6254c5 12259# report actual input values of CONFIG_FILES etc. instead of their
7a197a62
AK
12260# values after options handling.
12261ac_log="
ad6254c5 12262This file was extended by $as_me, which was
68f2de6d 12263generated by GNU Autoconf 2.61. Invocation command line was
ad6254c5
AK
12264
12265 CONFIG_FILES = $CONFIG_FILES
12266 CONFIG_HEADERS = $CONFIG_HEADERS
12267 CONFIG_LINKS = $CONFIG_LINKS
12268 CONFIG_COMMANDS = $CONFIG_COMMANDS
12269 $ $0 $@
12270
7a197a62
AK
12271on `(hostname || uname -n) 2>/dev/null | sed 1q`
12272"
12273
ad6254c5
AK
12274_ACEOF
12275
68f2de6d 12276cat >>$CONFIG_STATUS <<_ACEOF
ad6254c5 12277# Files that config.status was made for.
68f2de6d
AK
12278config_files="$ac_config_files"
12279config_headers="$ac_config_headers"
ad6254c5 12280
7a197a62 12281_ACEOF
ad6254c5 12282
68f2de6d 12283cat >>$CONFIG_STATUS <<\_ACEOF
ad6254c5
AK
12284ac_cs_usage="\
12285\`$as_me' instantiates files from templates according to the
12286current configuration.
12287
12288Usage: $0 [OPTIONS] [FILE]...
12289
12290 -h, --help print this help, then exit
25fbec5b 12291 -V, --version print version number and configuration settings, then exit
ad6254c5
AK
12292 -q, --quiet do not print progress messages
12293 -d, --debug don't remove temporary files
12294 --recheck update $as_me by reconfiguring in the same conditions
12295 --file=FILE[:TEMPLATE]
68f2de6d 12296 instantiate the configuration file FILE
72b2cb61 12297 --header=FILE[:TEMPLATE]
68f2de6d 12298 instantiate the configuration header FILE
ad6254c5
AK
12299
12300Configuration files:
12301$config_files
12302
72b2cb61
AK
12303Configuration headers:
12304$config_headers
12305
ad6254c5 12306Report bugs to <bug-autoconf@gnu.org>."
ad6254c5 12307
7a197a62 12308_ACEOF
68f2de6d 12309cat >>$CONFIG_STATUS <<_ACEOF
ad6254c5
AK
12310ac_cs_version="\\
12311config.status
68f2de6d
AK
12312configured by $0, generated by GNU Autoconf 2.61,
12313 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
ad6254c5 12314
68f2de6d 12315Copyright (C) 2006 Free Software Foundation, Inc.
ad6254c5
AK
12316This config.status script is free software; the Free Software Foundation
12317gives unlimited permission to copy, distribute and modify it."
7a197a62
AK
12318
12319ac_pwd='$ac_pwd'
12320srcdir='$srcdir'
12321INSTALL='$INSTALL'
fddafd51 12322MKDIR_P='$MKDIR_P'
ad6254c5
AK
12323_ACEOF
12324
68f2de6d
AK
12325cat >>$CONFIG_STATUS <<\_ACEOF
12326# If no file are specified by the user, then we need to provide default
12327# value. By we need to know if files were specified by the user.
ad6254c5
AK
12328ac_need_defaults=:
12329while test $# != 0
12330do
12331 case $1 in
12332 --*=*)
7a197a62
AK
12333 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12334 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
ad6254c5
AK
12335 ac_shift=:
12336 ;;
7a197a62 12337 *)
ad6254c5
AK
12338 ac_option=$1
12339 ac_optarg=$2
12340 ac_shift=shift
12341 ;;
ad6254c5
AK
12342 esac
12343
12344 case $ac_option in
12345 # Handling of the options.
ad6254c5
AK
12346 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12347 ac_cs_recheck=: ;;
7a197a62 12348 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
68f2de6d 12349 echo "$ac_cs_version"; exit ;;
7a197a62 12350 --debug | --debu | --deb | --de | --d | -d )
ad6254c5
AK
12351 debug=: ;;
12352 --file | --fil | --fi | --f )
12353 $ac_shift
68f2de6d 12354 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
ad6254c5
AK
12355 ac_need_defaults=false;;
12356 --header | --heade | --head | --hea )
12357 $ac_shift
68f2de6d 12358 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
ad6254c5 12359 ac_need_defaults=false;;
7a197a62
AK
12360 --he | --h)
12361 # Conflict between --help and --header
68f2de6d 12362 { echo "$as_me: error: ambiguous option: $1
7a197a62
AK
12363Try \`$0 --help' for more information." >&2
12364 { (exit 1); exit 1; }; };;
12365 --help | --hel | -h )
68f2de6d 12366 echo "$ac_cs_usage"; exit ;;
ad6254c5
AK
12367 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12368 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12369 ac_cs_silent=: ;;
12370
12371 # This is an error.
68f2de6d 12372 -*) { echo "$as_me: error: unrecognized option: $1
7a197a62 12373Try \`$0 --help' for more information." >&2
ad6254c5
AK
12374 { (exit 1); exit 1; }; } ;;
12375
7a197a62
AK
12376 *) ac_config_targets="$ac_config_targets $1"
12377 ac_need_defaults=false ;;
ad6254c5
AK
12378
12379 esac
12380 shift
12381done
12382
12383ac_configure_extra_args=
12384
12385if $ac_cs_silent; then
12386 exec 6>/dev/null
12387 ac_configure_extra_args="$ac_configure_extra_args --silent"
12388fi
12389
12390_ACEOF
68f2de6d 12391cat >>$CONFIG_STATUS <<_ACEOF
ad6254c5 12392if \$ac_cs_recheck; then
68f2de6d
AK
12393 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12394 CONFIG_SHELL=$SHELL
7a197a62 12395 export CONFIG_SHELL
68f2de6d 12396 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
ad6254c5
AK
12397fi
12398
12399_ACEOF
68f2de6d 12400cat >>$CONFIG_STATUS <<\_ACEOF
7a197a62
AK
12401exec 5>>config.log
12402{
12403 echo
12404 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12405## Running $as_me. ##
12406_ASBOX
68f2de6d 12407 echo "$ac_log"
7a197a62 12408} >&5
ad6254c5 12409
7a197a62 12410_ACEOF
68f2de6d 12411cat >>$CONFIG_STATUS <<_ACEOF
7a197a62 12412_ACEOF
ad6254c5 12413
68f2de6d 12414cat >>$CONFIG_STATUS <<\_ACEOF
7a197a62
AK
12415
12416# Handling of arguments.
ad6254c5
AK
12417for ac_config_target in $ac_config_targets
12418do
7a197a62
AK
12419 case $ac_config_target in
12420 "lib/misc/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;;
12421 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12422 "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;;
12423 "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;;
12424 "daemons/clvmd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;;
93bd259b
AK
12425 "daemons/dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/Makefile" ;;
12426 "daemons/dmeventd/libdevmapper-event.pc") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/libdevmapper-event.pc" ;;
04f06bc9 12427 "daemons/dmeventd/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/Makefile" ;;
93bd259b
AK
12428 "daemons/dmeventd/plugins/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/mirror/Makefile" ;;
12429 "daemons/dmeventd/plugins/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/snapshot/Makefile" ;;
7a197a62 12430 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
93bd259b
AK
12431 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
12432 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
7a197a62
AK
12433 "lib/format1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;;
12434 "lib/format_pool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;;
12435 "lib/locking/Makefile") CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;;
12436 "lib/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;;
12437 "lib/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;;
93bd259b
AK
12438 "libdm/Makefile") CONFIG_FILES="$CONFIG_FILES libdm/Makefile" ;;
12439 "libdm/libdevmapper.pc") CONFIG_FILES="$CONFIG_FILES libdm/libdevmapper.pc" ;;
12440 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12441 "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
7a197a62 12442 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
93bd259b 12443 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
7a197a62
AK
12444 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
12445 "tools/version.h") CONFIG_FILES="$CONFIG_FILES tools/version.h" ;;
7a197a62 12446
68f2de6d
AK
12447 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12448echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
ad6254c5 12449 { (exit 1); exit 1; }; };;
80992638 12450 esac
ad6254c5
AK
12451done
12452
7a197a62 12453
ad6254c5
AK
12454# If the user did not use the arguments to specify the items to instantiate,
12455# then the envvar interface is used. Set only those that are not.
12456# We use the long form for the default assignment because of an extremely
12457# bizarre bug on SunOS 4.1.3.
12458if $ac_need_defaults; then
12459 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
72b2cb61 12460 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
ad6254c5
AK
12461fi
12462
12463# Have a temporary directory for convenience. Make it in the build tree
7a197a62 12464# simply because there is no reason against having it here, and in addition,
ad6254c5 12465# creating and moving files from /tmp can sometimes cause problems.
7a197a62
AK
12466# Hook for its removal unless debugging.
12467# Note that there is a small window in which the directory will not be cleaned:
12468# after its creation but before its name has been assigned to `$tmp'.
ad6254c5
AK
12469$debug ||
12470{
7a197a62
AK
12471 tmp=
12472 trap 'exit_status=$?
12473 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12474' 0
ad6254c5
AK
12475 trap '{ (exit 1); exit 1; }' 1 2 13 15
12476}
ad6254c5
AK
12477# Create a (secure) tmp directory for tmp files.
12478
12479{
7a197a62 12480 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
ad6254c5
AK
12481 test -n "$tmp" && test -d "$tmp"
12482} ||
12483{
7a197a62
AK
12484 tmp=./conf$$-$RANDOM
12485 (umask 077 && mkdir "$tmp")
ad6254c5
AK
12486} ||
12487{
68f2de6d 12488 echo "$me: cannot create a temporary directory in ." >&2
ad6254c5
AK
12489 { (exit 1); exit 1; }
12490}
12491
68f2de6d
AK
12492#
12493# Set up the sed scripts for CONFIG_FILES section.
12494#
12495
12496# No need to generate the scripts if there are no CONFIG_FILES.
12497# This happens for instance when ./config.status config.h
1995c9ff 12498if test -n "$CONFIG_FILES"; then
7a197a62 12499
68f2de6d 12500_ACEOF
5556819a 12501
68f2de6d
AK
12502
12503
12504ac_delim='%!_!# '
12505for ac_last_try in false false false false false :; do
12506 cat >conf$$subs.sed <<_ACEOF
12507SHELL!$SHELL$ac_delim
12508PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
12509PACKAGE_NAME!$PACKAGE_NAME$ac_delim
12510PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
12511PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
12512PACKAGE_STRING!$PACKAGE_STRING$ac_delim
12513PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
12514exec_prefix!$exec_prefix$ac_delim
12515prefix!$prefix$ac_delim
12516program_transform_name!$program_transform_name$ac_delim
12517bindir!$bindir$ac_delim
12518sbindir!$sbindir$ac_delim
12519libexecdir!$libexecdir$ac_delim
12520datarootdir!$datarootdir$ac_delim
12521datadir!$datadir$ac_delim
12522sysconfdir!$sysconfdir$ac_delim
12523sharedstatedir!$sharedstatedir$ac_delim
12524localstatedir!$localstatedir$ac_delim
12525includedir!$includedir$ac_delim
12526oldincludedir!$oldincludedir$ac_delim
12527docdir!$docdir$ac_delim
12528infodir!$infodir$ac_delim
12529htmldir!$htmldir$ac_delim
12530dvidir!$dvidir$ac_delim
12531pdfdir!$pdfdir$ac_delim
12532psdir!$psdir$ac_delim
12533libdir!$libdir$ac_delim
12534localedir!$localedir$ac_delim
12535mandir!$mandir$ac_delim
12536DEFS!$DEFS$ac_delim
12537ECHO_C!$ECHO_C$ac_delim
12538ECHO_N!$ECHO_N$ac_delim
12539ECHO_T!$ECHO_T$ac_delim
12540LIBS!$LIBS$ac_delim
12541build_alias!$build_alias$ac_delim
12542host_alias!$host_alias$ac_delim
12543target_alias!$target_alias$ac_delim
12544build!$build$ac_delim
12545build_cpu!$build_cpu$ac_delim
12546build_vendor!$build_vendor$ac_delim
12547build_os!$build_os$ac_delim
12548host!$host$ac_delim
12549host_cpu!$host_cpu$ac_delim
12550host_vendor!$host_vendor$ac_delim
12551host_os!$host_os$ac_delim
12552target!$target$ac_delim
12553target_cpu!$target_cpu$ac_delim
12554target_vendor!$target_vendor$ac_delim
12555target_os!$target_os$ac_delim
5951ef33 12556SED!$SED$ac_delim
68f2de6d
AK
12557AWK!$AWK$ac_delim
12558CC!$CC$ac_delim
12559CFLAGS!$CFLAGS$ac_delim
12560LDFLAGS!$LDFLAGS$ac_delim
12561CPPFLAGS!$CPPFLAGS$ac_delim
12562ac_ct_CC!$ac_ct_CC$ac_delim
12563EXEEXT!$EXEEXT$ac_delim
12564OBJEXT!$OBJEXT$ac_delim
12565CPP!$CPP$ac_delim
12566GREP!$GREP$ac_delim
12567EGREP!$EGREP$ac_delim
12568INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
12569INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
12570INSTALL_DATA!$INSTALL_DATA$ac_delim
12571LN_S!$LN_S$ac_delim
12572SET_MAKE!$SET_MAKE$ac_delim
12573RANLIB!$RANLIB$ac_delim
12574CFLOW_CMD!$CFLOW_CMD$ac_delim
12575CSCOPE_CMD!$CSCOPE_CMD$ac_delim
12576ALLOCA!$ALLOCA$ac_delim
12577LIBOBJS!$LIBOBJS$ac_delim
12578POW_LIB!$POW_LIB$ac_delim
12579LCOV!$LCOV$ac_delim
12580GENHTML!$GENHTML$ac_delim
12581LVM2CMD_LIB!$LVM2CMD_LIB$ac_delim
12582MSGFMT!$MSGFMT$ac_delim
12583MODPROBE_CMD!$MODPROBE_CMD$ac_delim
12584BUILD_DMEVENTD!$BUILD_DMEVENTD$ac_delim
12585CLDFLAGS!$CLDFLAGS$ac_delim
12586CLDNOWHOLEARCHIVE!$CLDNOWHOLEARCHIVE$ac_delim
12587CLDWHOLEARCHIVE!$CLDWHOLEARCHIVE$ac_delim
12588CLUSTER!$CLUSTER$ac_delim
12589CLVMD!$CLVMD$ac_delim
12590CMDLIB!$CMDLIB$ac_delim
12591COPTIMISE_FLAG!$COPTIMISE_FLAG$ac_delim
12592DEBUG!$DEBUG$ac_delim
12593DEVMAPPER!$DEVMAPPER$ac_delim
68f2de6d
AK
12594DMEVENTD!$DMEVENTD$ac_delim
12595DM_COMPAT!$DM_COMPAT$ac_delim
12596DM_DEVICE_GID!$DM_DEVICE_GID$ac_delim
12597DM_DEVICE_MODE!$DM_DEVICE_MODE$ac_delim
12598DM_DEVICE_UID!$DM_DEVICE_UID$ac_delim
12599DM_IOCTLS!$DM_IOCTLS$ac_delim
12600DM_LIB_VERSION!$DM_LIB_VERSION$ac_delim
12601FSADM!$FSADM$ac_delim
12602GROUP!$GROUP$ac_delim
04f06bc9 12603HAVE_LIBDL!$HAVE_LIBDL$ac_delim
68f2de6d
AK
12604_ACEOF
12605
12606 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
12607 break
12608 elif $ac_last_try; then
12609 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12610echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12611 { (exit 1); exit 1; }; }
12612 else
12613 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12614 fi
12615done
12616
12617ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
12618if test -n "$ac_eof"; then
12619 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
12620 ac_eof=`expr $ac_eof + 1`
1995c9ff 12621fi
7a197a62 12622
68f2de6d
AK
12623cat >>$CONFIG_STATUS <<_ACEOF
12624cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
12625/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12626_ACEOF
12627sed '
12628s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
12629s/^/s,@/; s/!/@,|#_!!_#|/
12630:n
12631t n
12632s/'"$ac_delim"'$/,g/; t
12633s/$/\\/; p
12634N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
12635' >>$CONFIG_STATUS <conf$$subs.sed
12636rm -f conf$$subs.sed
12637cat >>$CONFIG_STATUS <<_ACEOF
12638CEOF$ac_eof
1995c9ff 12639_ACEOF
7a197a62 12640
8106cdd5 12641
1995c9ff
AK
12642ac_delim='%!_!# '
12643for ac_last_try in false false false false false :; do
68f2de6d
AK
12644 cat >conf$$subs.sed <<_ACEOF
12645HAVE_REALTIME!$HAVE_REALTIME$ac_delim
12646HAVE_SELINUX!$HAVE_SELINUX$ac_delim
12647INTL!$INTL$ac_delim
12648INTL_PACKAGE!$INTL_PACKAGE$ac_delim
12649JOBS!$JOBS$ac_delim
12650LDDEPS!$LDDEPS$ac_delim
12651LIB_SUFFIX!$LIB_SUFFIX$ac_delim
12652LOCALEDIR!$LOCALEDIR$ac_delim
12653LVM1!$LVM1$ac_delim
12654LVM1_FALLBACK!$LVM1_FALLBACK$ac_delim
12655CONFDIR!$CONFDIR$ac_delim
12656LVM_VERSION!$LVM_VERSION$ac_delim
12657MIRRORS!$MIRRORS$ac_delim
12658OWNER!$OWNER$ac_delim
12659PKGCONFIG!$PKGCONFIG$ac_delim
12660POOL!$POOL$ac_delim
12661SNAPSHOTS!$SNAPSHOTS$ac_delim
12662STATICDIR!$STATICDIR$ac_delim
12663STATIC_LINK!$STATIC_LINK$ac_delim
12664LIB_PTHREAD!$LIB_PTHREAD$ac_delim
93bd259b
AK
12665interface!$interface$ac_delim
12666kerneldir!$kerneldir$ac_delim
12667missingkernel!$missingkernel$ac_delim
12668kernelvsn!$kernelvsn$ac_delim
12669tmpdir!$tmpdir$ac_delim
68f2de6d
AK
12670usrlibdir!$usrlibdir$ac_delim
12671usrsbindir!$usrsbindir$ac_delim
12672LTLIBOBJS!$LTLIBOBJS$ac_delim
12673_ACEOF
12674
04f06bc9 12675 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 28; then
1995c9ff
AK
12676 break
12677 elif $ac_last_try; then
68f2de6d
AK
12678 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12679echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
1995c9ff
AK
12680 { (exit 1); exit 1; }; }
12681 else
12682 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12683 fi
12684done
7a197a62 12685
68f2de6d
AK
12686ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
12687if test -n "$ac_eof"; then
12688 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
12689 ac_eof=`expr $ac_eof + 1`
12690fi
fddafd51 12691
68f2de6d
AK
12692cat >>$CONFIG_STATUS <<_ACEOF
12693cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
12694/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
1995c9ff 12695_ACEOF
68f2de6d
AK
12696sed '
12697s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
12698s/^/s,@/; s/!/@,|#_!!_#|/
12699:n
12700t n
12701s/'"$ac_delim"'$/,g/; t
12702s/$/\\/; p
12703N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
12704' >>$CONFIG_STATUS <conf$$subs.sed
12705rm -f conf$$subs.sed
12706cat >>$CONFIG_STATUS <<_ACEOF
12707:end
12708s/|#_!!_#|//g
12709CEOF$ac_eof
7a197a62
AK
12710_ACEOF
12711
68f2de6d 12712
7a197a62
AK
12713# VPATH may cause trouble with some makes, so we remove $(srcdir),
12714# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12715# trailing colons and then remove the whole line if VPATH becomes empty
12716# (actually we leave an empty line to preserve line numbers).
12717if test "x$srcdir" = x.; then
12718 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12719s/:*\$(srcdir):*/:/
12720s/:*\${srcdir}:*/:/
12721s/:*@srcdir@:*/:/
12722s/^\([^=]*=[ ]*\):*/\1/
12723s/:*$//
12724s/^[^=]*=[ ]*$//
12725}'
12726fi
12727
68f2de6d 12728cat >>$CONFIG_STATUS <<\_ACEOF
7a197a62
AK
12729fi # test -n "$CONFIG_FILES"
12730
12731
68f2de6d 12732for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
7a197a62
AK
12733do
12734 case $ac_tag in
12735 :[FHLC]) ac_mode=$ac_tag; continue;;
12736 esac
12737 case $ac_mode$ac_tag in
12738 :[FHL]*:*);;
68f2de6d
AK
12739 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
12740echo "$as_me: error: Invalid tag $ac_tag." >&2;}
7a197a62
AK
12741 { (exit 1); exit 1; }; };;
12742 :[FH]-) ac_tag=-:-;;
12743 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12744 esac
12745 ac_save_IFS=$IFS
12746 IFS=:
12747 set x $ac_tag
12748 IFS=$ac_save_IFS
12749 shift
12750 ac_file=$1
12751 shift
12752
12753 case $ac_mode in
12754 :L) ac_source=$1;;
12755 :[FH])
12756 ac_file_inputs=
12757 for ac_f
12758 do
12759 case $ac_f in
12760 -) ac_f="$tmp/stdin";;
12761 *) # Look for the file first in the build tree, then in the source tree
12762 # (if the path is not absolute). The absolute path cannot be DOS-style,
12763 # because $ac_f cannot contain `:'.
12764 test -f "$ac_f" ||
12765 case $ac_f in
12766 [\\/$]*) false;;
12767 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12768 esac ||
68f2de6d
AK
12769 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
12770echo "$as_me: error: cannot find input file: $ac_f" >&2;}
7a197a62
AK
12771 { (exit 1); exit 1; }; };;
12772 esac
68f2de6d 12773 ac_file_inputs="$ac_file_inputs $ac_f"
7a197a62
AK
12774 done
12775
12776 # Let's still pretend it is `configure' which instantiates (i.e., don't
12777 # use $as_me), people would be surprised to read:
12778 # /* config.h. Generated by config.status. */
68f2de6d
AK
12779 configure_input="Generated from "`IFS=:
12780 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
7a197a62
AK
12781 if test x"$ac_file" != x-; then
12782 configure_input="$ac_file. $configure_input"
68f2de6d
AK
12783 { echo "$as_me:$LINENO: creating $ac_file" >&5
12784echo "$as_me: creating $ac_file" >&6;}
7a197a62
AK
12785 fi
12786
12787 case $ac_tag in
68f2de6d 12788 *:-:* | *:-) cat >"$tmp/stdin";;
7a197a62
AK
12789 esac
12790 ;;
80992638 12791 esac
8106cdd5 12792
7a197a62 12793 ac_dir=`$as_dirname -- "$ac_file" ||
ad6254c5 12794$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8a2fc586
AK
12795 X"$ac_file" : 'X\(//\)[^/]' \| \
12796 X"$ac_file" : 'X\(//\)$' \| \
7a197a62 12797 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
68f2de6d 12798echo X"$ac_file" |
7a197a62
AK
12799 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12800 s//\1/
12801 q
12802 }
12803 /^X\(\/\/\)[^/].*/{
12804 s//\1/
12805 q
12806 }
12807 /^X\(\/\/\)$/{
12808 s//\1/
12809 q
12810 }
12811 /^X\(\/\).*/{
12812 s//\1/
12813 q
12814 }
12815 s/.*/./; q'`
12816 { as_dir="$ac_dir"
12817 case $as_dir in #(
12818 -*) as_dir=./$as_dir;;
12819 esac
12820 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
ad6254c5 12821 as_dirs=
7a197a62
AK
12822 while :; do
12823 case $as_dir in #(
68f2de6d 12824 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
7a197a62
AK
12825 *) as_qdir=$as_dir;;
12826 esac
12827 as_dirs="'$as_qdir' $as_dirs"
12828 as_dir=`$as_dirname -- "$as_dir" ||
ad6254c5 12829$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8a2fc586
AK
12830 X"$as_dir" : 'X\(//\)[^/]' \| \
12831 X"$as_dir" : 'X\(//\)$' \| \
7a197a62 12832 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
68f2de6d 12833echo X"$as_dir" |
7a197a62
AK
12834 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12835 s//\1/
12836 q
12837 }
12838 /^X\(\/\/\)[^/].*/{
12839 s//\1/
12840 q
12841 }
12842 /^X\(\/\/\)$/{
12843 s//\1/
12844 q
12845 }
12846 /^X\(\/\).*/{
12847 s//\1/
12848 q
12849 }
12850 s/.*/./; q'`
12851 test -d "$as_dir" && break
ad6254c5 12852 done
7a197a62 12853 test -z "$as_dirs" || eval "mkdir $as_dirs"
68f2de6d
AK
12854 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12855echo "$as_me: error: cannot create directory $as_dir" >&2;}
ad6254c5 12856 { (exit 1); exit 1; }; }; }
ad6254c5
AK
12857 ac_builddir=.
12858
7a197a62
AK
12859case "$ac_dir" in
12860.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12861*)
68f2de6d 12862 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7a197a62 12863 # A ".." for each directory in $ac_dir_suffix.
68f2de6d 12864 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
7a197a62
AK
12865 case $ac_top_builddir_sub in
12866 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12867 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12868 esac ;;
12869esac
12870ac_abs_top_builddir=$ac_pwd
12871ac_abs_builddir=$ac_pwd$ac_dir_suffix
12872# for backward compatibility:
12873ac_top_builddir=$ac_top_build_prefix
ad6254c5
AK
12874
12875case $srcdir in
7a197a62 12876 .) # We are building in place.
ad6254c5 12877 ac_srcdir=.
7a197a62
AK
12878 ac_top_srcdir=$ac_top_builddir_sub
12879 ac_abs_top_srcdir=$ac_pwd ;;
12880 [\\/]* | ?:[\\/]* ) # Absolute name.
ad6254c5 12881 ac_srcdir=$srcdir$ac_dir_suffix;
7a197a62
AK
12882 ac_top_srcdir=$srcdir
12883 ac_abs_top_srcdir=$srcdir ;;
12884 *) # Relative name.
12885 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12886 ac_top_srcdir=$ac_top_build_prefix$srcdir
12887 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
ad6254c5 12888esac
7a197a62 12889ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8a2fc586 12890
ad6254c5 12891
7a197a62
AK
12892 case $ac_mode in
12893 :F)
12894 #
12895 # CONFIG_FILE
12896 #
ad6254c5
AK
12897
12898 case $INSTALL in
12899 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7a197a62 12900 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
795ca3e5 12901 esac
fddafd51
ZK
12902 ac_MKDIR_P=$MKDIR_P
12903 case $MKDIR_P in
12904 [\\/$]* | ?:[\\/]* ) ;;
12905 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12906 esac
7a197a62 12907_ACEOF
795ca3e5 12908
68f2de6d 12909cat >>$CONFIG_STATUS <<\_ACEOF
7a197a62
AK
12910# If the template does not know about datarootdir, expand it.
12911# FIXME: This hack should be removed a few years after 2.60.
12912ac_datarootdir_hack=; ac_datarootdir_seen=
12913
68f2de6d 12914case `sed -n '/datarootdir/ {
7a197a62
AK
12915 p
12916 q
12917}
12918/@datadir@/p
12919/@docdir@/p
12920/@infodir@/p
12921/@localedir@/p
12922/@mandir@/p
68f2de6d 12923' $ac_file_inputs` in
7a197a62
AK
12924*datarootdir*) ac_datarootdir_seen=yes;;
12925*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
68f2de6d
AK
12926 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12927echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
ad6254c5 12928_ACEOF
68f2de6d 12929cat >>$CONFIG_STATUS <<_ACEOF
7a197a62
AK
12930 ac_datarootdir_hack='
12931 s&@datadir@&$datadir&g
12932 s&@docdir@&$docdir&g
12933 s&@infodir@&$infodir&g
12934 s&@localedir@&$localedir&g
12935 s&@mandir@&$mandir&g
12936 s&\\\${datarootdir}&$datarootdir&g' ;;
12937esac
12938_ACEOF
12939
12940# Neutralize VPATH when `$srcdir' = `.'.
12941# Shell code in configure.ac might set extrasub.
12942# FIXME: do we really want to maintain this feature?
68f2de6d
AK
12943cat >>$CONFIG_STATUS <<_ACEOF
12944 sed "$ac_vpsub
ad6254c5
AK
12945$extrasub
12946_ACEOF
68f2de6d 12947cat >>$CONFIG_STATUS <<\_ACEOF
ad6254c5
AK
12948:t
12949/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
68f2de6d 12950s&@configure_input@&$configure_input&;t t
7a197a62
AK
12951s&@top_builddir@&$ac_top_builddir_sub&;t t
12952s&@srcdir@&$ac_srcdir&;t t
12953s&@abs_srcdir@&$ac_abs_srcdir&;t t
12954s&@top_srcdir@&$ac_top_srcdir&;t t
12955s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12956s&@builddir@&$ac_builddir&;t t
12957s&@abs_builddir@&$ac_abs_builddir&;t t
12958s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12959s&@INSTALL@&$ac_INSTALL&;t t
fddafd51 12960s&@MKDIR_P@&$ac_MKDIR_P&;t t
7a197a62 12961$ac_datarootdir_hack
68f2de6d 12962" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
7a197a62
AK
12963
12964test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12965 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12966 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
68f2de6d 12967 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7a197a62 12968which seems to be undefined. Please make sure it is defined." >&5
68f2de6d 12969echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7a197a62
AK
12970which seems to be undefined. Please make sure it is defined." >&2;}
12971
12972 rm -f "$tmp/stdin"
72b2cb61 12973 case $ac_file in
68f2de6d
AK
12974 -) cat "$tmp/out"; rm -f "$tmp/out";;
12975 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
12976 esac
7a197a62
AK
12977 ;;
12978 :H)
12979 #
12980 # CONFIG_HEADER
12981 #
68f2de6d
AK
12982_ACEOF
12983
12984# Transform confdefs.h into a sed script `conftest.defines', that
12985# substitutes the proper values into config.h.in to produce config.h.
12986rm -f conftest.defines conftest.tail
12987# First, append a space to every undef/define line, to ease matching.
12988echo 's/$/ /' >conftest.defines
12989# Then, protect against being on the right side of a sed subst, or in
12990# an unquoted here document, in config.status. If some macros were
12991# called several times there might be several #defines for the same
12992# symbol, which is useless. But do not sort them, since the last
12993# AC_DEFINE must be honored.
12994ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12995# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
12996# NAME is the cpp macro being defined, VALUE is the value it is being given.
12997# PARAMS is the parameter list in the macro definition--in most cases, it's
12998# just an empty string.
12999ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
13000ac_dB='\\)[ (].*,\\1define\\2'
13001ac_dC=' '
13002ac_dD=' ,'
13003
13004uniq confdefs.h |
13005 sed -n '
13006 t rset
13007 :rset
13008 s/^[ ]*#[ ]*define[ ][ ]*//
13009 t ok
13010 d
13011 :ok
13012 s/[\\&,]/\\&/g
13013 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
13014 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
13015 ' >>conftest.defines
13016
13017# Remove the space that was appended to ease matching.
13018# Then replace #undef with comments. This is necessary, for
13019# example, in the case of _POSIX_SOURCE, which is predefined and required
13020# on some systems where configure will not decide to define it.
13021# (The regexp can be short, since the line contains either #define or #undef.)
13022echo 's/ $//
13023s,^[ #]*u.*,/* & */,' >>conftest.defines
13024
13025# Break up conftest.defines:
13026ac_max_sed_lines=50
13027
13028# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
13029# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
13030# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
13031# et cetera.
13032ac_in='$ac_file_inputs'
13033ac_out='"$tmp/out1"'
13034ac_nxt='"$tmp/out2"'
13035
13036while :
13037do
13038 # Write a here document:
13039 cat >>$CONFIG_STATUS <<_ACEOF
13040 # First, check the format of the line:
13041 cat >"\$tmp/defines.sed" <<\\CEOF
13042/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
13043/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
13044b
13045:def
13046_ACEOF
13047 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
13048 echo 'CEOF
13049 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
13050 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
13051 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
13052 grep . conftest.tail >/dev/null || break
13053 rm -f conftest.defines
13054 mv conftest.tail conftest.defines
13055done
13056rm -f conftest.defines conftest.tail
13057
13058echo "ac_result=$ac_in" >>$CONFIG_STATUS
13059cat >>$CONFIG_STATUS <<\_ACEOF
72b2cb61 13060 if test x"$ac_file" != x-; then
68f2de6d
AK
13061 echo "/* $configure_input */" >"$tmp/config.h"
13062 cat "$ac_result" >>"$tmp/config.h"
13063 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
13064 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13065echo "$as_me: $ac_file is unchanged" >&6;}
72b2cb61 13066 else
68f2de6d
AK
13067 rm -f $ac_file
13068 mv "$tmp/config.h" $ac_file
72b2cb61
AK
13069 fi
13070 else
68f2de6d
AK
13071 echo "/* $configure_input */"
13072 cat "$ac_result"
72b2cb61 13073 fi
68f2de6d 13074 rm -f "$tmp/out12"
7a197a62
AK
13075 ;;
13076
13077
13078 esac
13079
13080done # for ac_tag
795ca3e5 13081
795ca3e5 13082
ad6254c5
AK
13083{ (exit 0); exit 0; }
13084_ACEOF
795ca3e5 13085chmod +x $CONFIG_STATUS
ad6254c5
AK
13086ac_clean_files=$ac_clean_files_save
13087
13088
13089# configure is writing to config.log, and then calls config.status.
13090# config.status does its own redirection, appending to config.log.
13091# Unfortunately, on DOS this fails, as config.log is still kept open
13092# by configure, so config.status won't be able to write to it; its
13093# output is simply discarded. So we exec the FD to /dev/null,
13094# effectively closing config.log, so it can be properly (re)opened and
13095# appended to by config.status. When coming back to configure, we
13096# need to make the FD available again.
13097if test "$no_create" != yes; then
13098 ac_cs_success=:
13099 ac_config_status_args=
13100 test "$silent" = yes &&
13101 ac_config_status_args="$ac_config_status_args --quiet"
13102 exec 5>/dev/null
13103 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13104 exec 5>>config.log
13105 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13106 # would make configure fail if this is the last instruction.
13107 $ac_cs_success || { (exit 1); exit 1; }
13108fi
795ca3e5 13109
2dc95e1c
AK
13110
13111if test x$ODIRECT != xyes; then
68f2de6d
AK
13112 { echo "$as_me:$LINENO: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5
13113echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;}
2dc95e1c 13114fi
This page took 1.759785 seconds and 5 git commands to generate.