]> sourceware.org Git - lvm2.git/blame - configure
Fix up cache for PVs without mdas after consistent VG metadata is processed.
[lvm2.git] / configure
CommitLineData
795ca3e5 1#! /bin/sh
795ca3e5 2# Guess values for system-dependent variables and create Makefiles.
25fbec5b 3# Generated by GNU Autoconf 2.61.
795ca3e5 4#
7a197a62
AK
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
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=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
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
40# The user is always right.
41if test "${PATH_SEPARATOR+set}" != set; then
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.)
1995c9ff
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
1995c9ff 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.
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
8a2fc586 108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
ad6254c5
AK
109 eval $as_var=C; export $as_var
110 else
7a197a62 111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
ad6254c5
AK
112 fi
113done
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 ||
1995c9ff 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
7a197a62
AK
161 if test $as_have_required = yes && (eval ":
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=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
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=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
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
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+"$@"}
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.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
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" ||
1995c9ff 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
1995c9ff 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
495 mkdir conf$$.dir
496fi
ad6254c5
AK
497echo >conf$$.file
498if ln -s conf$$.file conf$$ 2>/dev/null; then
7a197a62
AK
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'
ad6254c5
AK
506elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
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
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
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
666AWK
667CC
668CFLAGS
669LDFLAGS
670CPPFLAGS
671ac_ct_CC
672EXEEXT
673OBJEXT
d0191583
JM
674CPP
675GREP
676EGREP
7a197a62
AK
677INSTALL_PROGRAM
678INSTALL_SCRIPT
679INSTALL_DATA
680LN_S
681SET_MAKE
682RANLIB
683CFLOW_CMD
684CSCOPE_CMD
7a197a62
AK
685ALLOCA
686LIBOBJS
687POW_LIB
d179cc7a 688LVM2CMD_LIB
7a197a62
AK
689MSGFMT
690MODPROBE_CMD
d0191583 691BUILD_DMEVENTD
7a197a62 692CLDFLAGS
7a197a62 693CLDNOWHOLEARCHIVE
d0191583
JM
694CLDWHOLEARCHIVE
695CLUSTER
696CLVMD
697CMDLIB
698COPTIMISE_FLAG
7a197a62
AK
699DEBUG
700DEVMAPPER
d0191583
JM
701DMDIR
702DMEVENTD
703DM_COMPAT
704DM_DEVICE_GID
705DM_DEVICE_MODE
706DM_DEVICE_UID
707DM_IOCTLS
708DM_LIB_VERSION
709FSADM
710GROUP
7a197a62 711HAVE_LIBDL
7a197a62 712HAVE_REALTIME
d0191583
JM
713HAVE_SELINUX
714INTL
715INTL_PACKAGE
716JOBS
717LDDEPS
718LIB_SUFFIX
7a197a62 719LOCALEDIR
d0191583
JM
720LVM1
721LVM1_FALLBACK
7a197a62 722CONFDIR
d0191583
JM
723LVM_VERSION
724MIRRORS
725OWNER
726PKGCONFIG
727POOL
728SNAPSHOTS
7a197a62 729STATICDIR
d0191583 730STATIC_LINK
66e941e8 731LIB_PTHREAD
7a197a62 732LTLIBOBJS'
ad6254c5 733ac_subst_files=''
7a197a62
AK
734 ac_precious_vars='build_alias
735host_alias
736target_alias
737CC
738CFLAGS
739LDFLAGS
25fbec5b 740LIBS
7a197a62
AK
741CPPFLAGS
742CPP'
743
795ca3e5
AK
744
745# Initialize some variables set by options.
ad6254c5
AK
746ac_init_help=
747ac_init_version=false
795ca3e5
AK
748# The variables have the same names as the options, with
749# dashes changed to underlines.
ad6254c5 750cache_file=/dev/null
795ca3e5 751exec_prefix=NONE
795ca3e5 752no_create=
795ca3e5
AK
753no_recursion=
754prefix=NONE
755program_prefix=NONE
756program_suffix=NONE
757program_transform_name=s,x,x,
758silent=
759site=
760srcdir=
795ca3e5
AK
761verbose=
762x_includes=NONE
763x_libraries=NONE
ad6254c5
AK
764
765# Installation directory options.
766# These are left unexpanded so users can "make install exec_prefix=/foo"
767# and all the variables that are supposed to be based on exec_prefix
768# by default will actually change.
769# Use braces instead of parens because sh, perl, etc. also accept them.
7a197a62 770# (The list follows the same order as the GNU Coding Standards.)
795ca3e5
AK
771bindir='${exec_prefix}/bin'
772sbindir='${exec_prefix}/sbin'
773libexecdir='${exec_prefix}/libexec'
7a197a62
AK
774datarootdir='${prefix}/share'
775datadir='${datarootdir}'
795ca3e5
AK
776sysconfdir='${prefix}/etc'
777sharedstatedir='${prefix}/com'
778localstatedir='${prefix}/var'
795ca3e5
AK
779includedir='${prefix}/include'
780oldincludedir='/usr/include'
7a197a62
AK
781docdir='${datarootdir}/doc/${PACKAGE}'
782infodir='${datarootdir}/info'
783htmldir='${docdir}'
784dvidir='${docdir}'
785pdfdir='${docdir}'
786psdir='${docdir}'
787libdir='${exec_prefix}/lib'
788localedir='${datarootdir}/locale'
789mandir='${datarootdir}/man'
795ca3e5 790
795ca3e5 791ac_prev=
7a197a62 792ac_dashdash=
795ca3e5
AK
793for ac_option
794do
795ca3e5
AK
795 # If the previous option needs an argument, assign it.
796 if test -n "$ac_prev"; then
7a197a62 797 eval $ac_prev=\$ac_option
795ca3e5
AK
798 ac_prev=
799 continue
800 fi
801
7a197a62
AK
802 case $ac_option in
803 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
804 *) ac_optarg=yes ;;
805 esac
795ca3e5
AK
806
807 # Accept the important Cygnus configure options, so we can diagnose typos.
808
7a197a62
AK
809 case $ac_dashdash$ac_option in
810 --)
811 ac_dashdash=yes ;;
795ca3e5
AK
812
813 -bindir | --bindir | --bindi | --bind | --bin | --bi)
814 ac_prev=bindir ;;
815 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
ad6254c5 816 bindir=$ac_optarg ;;
795ca3e5
AK
817
818 -build | --build | --buil | --bui | --bu)
ad6254c5 819 ac_prev=build_alias ;;
795ca3e5 820 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
ad6254c5 821 build_alias=$ac_optarg ;;
795ca3e5
AK
822
823 -cache-file | --cache-file | --cache-fil | --cache-fi \
824 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
825 ac_prev=cache_file ;;
826 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
827 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
ad6254c5
AK
828 cache_file=$ac_optarg ;;
829
830 --config-cache | -C)
831 cache_file=config.cache ;;
795ca3e5 832
7a197a62 833 -datadir | --datadir | --datadi | --datad)
795ca3e5 834 ac_prev=datadir ;;
7a197a62 835 -datadir=* | --datadir=* | --datadi=* | --datad=*)
ad6254c5 836 datadir=$ac_optarg ;;
795ca3e5 837
7a197a62
AK
838 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
839 | --dataroo | --dataro | --datar)
840 ac_prev=datarootdir ;;
841 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
842 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
843 datarootdir=$ac_optarg ;;
844
795ca3e5 845 -disable-* | --disable-*)
1995c9ff 846 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
795ca3e5 847 # Reject names that are not valid shell variable names.
25fbec5b 848 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1995c9ff 849 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
ad6254c5 850 { (exit 1); exit 1; }; }
25fbec5b 851 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1995c9ff 852 eval enable_$ac_feature=no ;;
7a197a62
AK
853
854 -docdir | --docdir | --docdi | --doc | --do)
855 ac_prev=docdir ;;
856 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
857 docdir=$ac_optarg ;;
858
859 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
860 ac_prev=dvidir ;;
861 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
862 dvidir=$ac_optarg ;;
795ca3e5
AK
863
864 -enable-* | --enable-*)
1995c9ff 865 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
795ca3e5 866 # Reject names that are not valid shell variable names.
25fbec5b 867 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1995c9ff 868 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
ad6254c5 869 { (exit 1); exit 1; }; }
25fbec5b 870 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1995c9ff 871 eval enable_$ac_feature=\$ac_optarg ;;
795ca3e5
AK
872
873 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
874 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
875 | --exec | --exe | --ex)
876 ac_prev=exec_prefix ;;
877 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
878 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
879 | --exec=* | --exe=* | --ex=*)
ad6254c5 880 exec_prefix=$ac_optarg ;;
795ca3e5
AK
881
882 -gas | --gas | --ga | --g)
883 # Obsolete; use --with-gas.
884 with_gas=yes ;;
885
ad6254c5
AK
886 -help | --help | --hel | --he | -h)
887 ac_init_help=long ;;
888 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
889 ac_init_help=recursive ;;
890 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
891 ac_init_help=short ;;
795ca3e5
AK
892
893 -host | --host | --hos | --ho)
ad6254c5 894 ac_prev=host_alias ;;
795ca3e5 895 -host=* | --host=* | --hos=* | --ho=*)
ad6254c5 896 host_alias=$ac_optarg ;;
795ca3e5 897
7a197a62
AK
898 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
899 ac_prev=htmldir ;;
900 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
901 | --ht=*)
902 htmldir=$ac_optarg ;;
903
795ca3e5
AK
904 -includedir | --includedir | --includedi | --included | --include \
905 | --includ | --inclu | --incl | --inc)
906 ac_prev=includedir ;;
907 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
908 | --includ=* | --inclu=* | --incl=* | --inc=*)
ad6254c5 909 includedir=$ac_optarg ;;
795ca3e5
AK
910
911 -infodir | --infodir | --infodi | --infod | --info | --inf)
912 ac_prev=infodir ;;
913 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
ad6254c5 914 infodir=$ac_optarg ;;
795ca3e5
AK
915
916 -libdir | --libdir | --libdi | --libd)
917 ac_prev=libdir ;;
918 -libdir=* | --libdir=* | --libdi=* | --libd=*)
ad6254c5 919 libdir=$ac_optarg ;;
795ca3e5
AK
920
921 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
922 | --libexe | --libex | --libe)
923 ac_prev=libexecdir ;;
924 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
925 | --libexe=* | --libex=* | --libe=*)
ad6254c5 926 libexecdir=$ac_optarg ;;
795ca3e5 927
7a197a62
AK
928 -localedir | --localedir | --localedi | --localed | --locale)
929 ac_prev=localedir ;;
930 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
931 localedir=$ac_optarg ;;
932
795ca3e5 933 -localstatedir | --localstatedir | --localstatedi | --localstated \
7a197a62 934 | --localstate | --localstat | --localsta | --localst | --locals)
795ca3e5
AK
935 ac_prev=localstatedir ;;
936 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
7a197a62 937 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
ad6254c5 938 localstatedir=$ac_optarg ;;
795ca3e5
AK
939
940 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
941 ac_prev=mandir ;;
942 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
ad6254c5 943 mandir=$ac_optarg ;;
795ca3e5
AK
944
945 -nfp | --nfp | --nf)
946 # Obsolete; use --without-fp.
947 with_fp=no ;;
948
949 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
ad6254c5 950 | --no-cr | --no-c | -n)
795ca3e5
AK
951 no_create=yes ;;
952
953 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
954 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
955 no_recursion=yes ;;
956
957 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
958 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
959 | --oldin | --oldi | --old | --ol | --o)
960 ac_prev=oldincludedir ;;
961 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
962 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
963 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
ad6254c5 964 oldincludedir=$ac_optarg ;;
795ca3e5
AK
965
966 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
967 ac_prev=prefix ;;
968 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
ad6254c5 969 prefix=$ac_optarg ;;
795ca3e5
AK
970
971 -program-prefix | --program-prefix | --program-prefi | --program-pref \
972 | --program-pre | --program-pr | --program-p)
973 ac_prev=program_prefix ;;
974 -program-prefix=* | --program-prefix=* | --program-prefi=* \
975 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
ad6254c5 976 program_prefix=$ac_optarg ;;
795ca3e5
AK
977
978 -program-suffix | --program-suffix | --program-suffi | --program-suff \
979 | --program-suf | --program-su | --program-s)
980 ac_prev=program_suffix ;;
981 -program-suffix=* | --program-suffix=* | --program-suffi=* \
982 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
ad6254c5 983 program_suffix=$ac_optarg ;;
795ca3e5
AK
984
985 -program-transform-name | --program-transform-name \
986 | --program-transform-nam | --program-transform-na \
987 | --program-transform-n | --program-transform- \
988 | --program-transform | --program-transfor \
989 | --program-transfo | --program-transf \
990 | --program-trans | --program-tran \
991 | --progr-tra | --program-tr | --program-t)
992 ac_prev=program_transform_name ;;
993 -program-transform-name=* | --program-transform-name=* \
994 | --program-transform-nam=* | --program-transform-na=* \
995 | --program-transform-n=* | --program-transform-=* \
996 | --program-transform=* | --program-transfor=* \
997 | --program-transfo=* | --program-transf=* \
998 | --program-trans=* | --program-tran=* \
999 | --progr-tra=* | --program-tr=* | --program-t=*)
ad6254c5 1000 program_transform_name=$ac_optarg ;;
795ca3e5 1001
7a197a62
AK
1002 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1003 ac_prev=pdfdir ;;
1004 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1005 pdfdir=$ac_optarg ;;
1006
1007 -psdir | --psdir | --psdi | --psd | --ps)
1008 ac_prev=psdir ;;
1009 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1010 psdir=$ac_optarg ;;
1011
795ca3e5
AK
1012 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1013 | -silent | --silent | --silen | --sile | --sil)
1014 silent=yes ;;
1015
1016 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1017 ac_prev=sbindir ;;
1018 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1019 | --sbi=* | --sb=*)
ad6254c5 1020 sbindir=$ac_optarg ;;
795ca3e5
AK
1021
1022 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1023 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1024 | --sharedst | --shareds | --shared | --share | --shar \
1025 | --sha | --sh)
1026 ac_prev=sharedstatedir ;;
1027 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1028 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1029 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1030 | --sha=* | --sh=*)
ad6254c5 1031 sharedstatedir=$ac_optarg ;;
795ca3e5
AK
1032
1033 -site | --site | --sit)
1034 ac_prev=site ;;
1035 -site=* | --site=* | --sit=*)
ad6254c5 1036 site=$ac_optarg ;;
795ca3e5
AK
1037
1038 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1039 ac_prev=srcdir ;;
1040 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
ad6254c5 1041 srcdir=$ac_optarg ;;
795ca3e5
AK
1042
1043 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1044 | --syscon | --sysco | --sysc | --sys | --sy)
1045 ac_prev=sysconfdir ;;
1046 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1047 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
ad6254c5 1048 sysconfdir=$ac_optarg ;;
795ca3e5
AK
1049
1050 -target | --target | --targe | --targ | --tar | --ta | --t)
ad6254c5 1051 ac_prev=target_alias ;;
795ca3e5 1052 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
ad6254c5 1053 target_alias=$ac_optarg ;;
795ca3e5
AK
1054
1055 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1056 verbose=yes ;;
1057
ad6254c5
AK
1058 -version | --version | --versio | --versi | --vers | -V)
1059 ac_init_version=: ;;
795ca3e5
AK
1060
1061 -with-* | --with-*)
1995c9ff 1062 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
795ca3e5 1063 # Reject names that are not valid shell variable names.
25fbec5b 1064 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1995c9ff 1065 { echo "$as_me: error: invalid package name: $ac_package" >&2
ad6254c5 1066 { (exit 1); exit 1; }; }
25fbec5b 1067 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1995c9ff 1068 eval with_$ac_package=\$ac_optarg ;;
795ca3e5
AK
1069
1070 -without-* | --without-*)
1995c9ff 1071 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
795ca3e5 1072 # Reject names that are not valid shell variable names.
25fbec5b 1073 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1995c9ff 1074 { echo "$as_me: error: invalid package name: $ac_package" >&2
ad6254c5 1075 { (exit 1); exit 1; }; }
25fbec5b 1076 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1995c9ff 1077 eval with_$ac_package=no ;;
795ca3e5
AK
1078
1079 --x)
1080 # Obsolete; use --with-x.
1081 with_x=yes ;;
1082
1083 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1084 | --x-incl | --x-inc | --x-in | --x-i)
1085 ac_prev=x_includes ;;
1086 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1087 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
ad6254c5 1088 x_includes=$ac_optarg ;;
795ca3e5
AK
1089
1090 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1091 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1092 ac_prev=x_libraries ;;
1093 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1094 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
ad6254c5 1095 x_libraries=$ac_optarg ;;
795ca3e5 1096
1995c9ff 1097 -*) { echo "$as_me: error: unrecognized option: $ac_option
ad6254c5
AK
1098Try \`$0 --help' for more information." >&2
1099 { (exit 1); exit 1; }; }
795ca3e5
AK
1100 ;;
1101
ad6254c5
AK
1102 *=*)
1103 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1104 # Reject names that are not valid shell variable names.
1105 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1995c9ff 1106 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
ad6254c5 1107 { (exit 1); exit 1; }; }
7a197a62 1108 eval $ac_envvar=\$ac_optarg
ad6254c5
AK
1109 export $ac_envvar ;;
1110
795ca3e5 1111 *)
ad6254c5 1112 # FIXME: should be removed in autoconf 3.0.
1995c9ff 1113 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
ad6254c5 1114 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1995c9ff 1115 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
ad6254c5 1116 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
795ca3e5
AK
1117 ;;
1118
1119 esac
1120done
1121
1122if test -n "$ac_prev"; then
ad6254c5 1123 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1995c9ff 1124 { echo "$as_me: error: missing argument to $ac_option" >&2
ad6254c5 1125 { (exit 1); exit 1; }; }
795ca3e5 1126fi
795ca3e5 1127
7a197a62
AK
1128# Be sure to have absolute directory names.
1129for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1130 datadir sysconfdir sharedstatedir localstatedir includedir \
1131 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1132 libdir localedir mandir
795ca3e5 1133do
7a197a62 1134 eval ac_val=\$$ac_var
ad6254c5 1135 case $ac_val in
7a197a62
AK
1136 [\\/$]* | ?:[\\/]* ) continue;;
1137 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
795ca3e5 1138 esac
1995c9ff 1139 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
7a197a62 1140 { (exit 1); exit 1; }; }
795ca3e5
AK
1141done
1142
ad6254c5
AK
1143# There might be people who depend on the old broken behavior: `$host'
1144# used to hold the argument of --host etc.
1145# FIXME: To remove some day.
1146build=$build_alias
1147host=$host_alias
1148target=$target_alias
1149
1150# FIXME: To remove some day.
1151if test "x$host_alias" != x; then
1152 if test "x$build_alias" = x; then
1153 cross_compiling=maybe
1995c9ff 1154 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
ad6254c5
AK
1155 If a cross compiler is detected then cross compile mode will be used." >&2
1156 elif test "x$build_alias" != "x$host_alias"; then
1157 cross_compiling=yes
1158 fi
1159fi
8106cdd5 1160
ad6254c5
AK
1161ac_tool_prefix=
1162test -n "$host_alias" && ac_tool_prefix=$host_alias-
1163
1164test "$silent" = yes && exec 6>/dev/null
795ca3e5 1165
795ca3e5 1166
7a197a62
AK
1167ac_pwd=`pwd` && test -n "$ac_pwd" &&
1168ac_ls_di=`ls -di .` &&
1169ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1995c9ff 1170 { echo "$as_me: error: Working directory cannot be determined" >&2
7a197a62
AK
1171 { (exit 1); exit 1; }; }
1172test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1995c9ff 1173 { echo "$as_me: error: pwd does not report name of working directory" >&2
7a197a62
AK
1174 { (exit 1); exit 1; }; }
1175
1176
795ca3e5
AK
1177# Find the source files, if location was not specified.
1178if test -z "$srcdir"; then
1179 ac_srcdir_defaulted=yes
7a197a62
AK
1180 # Try the directory containing this script, then the parent directory.
1181 ac_confdir=`$as_dirname -- "$0" ||
ad6254c5 1182$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8a2fc586
AK
1183 X"$0" : 'X\(//\)[^/]' \| \
1184 X"$0" : 'X\(//\)$' \| \
7a197a62 1185 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1995c9ff 1186echo X"$0" |
7a197a62
AK
1187 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1188 s//\1/
1189 q
1190 }
1191 /^X\(\/\/\)[^/].*/{
1192 s//\1/
1193 q
1194 }
1195 /^X\(\/\/\)$/{
1196 s//\1/
1197 q
1198 }
1199 /^X\(\/\).*/{
1200 s//\1/
1201 q
1202 }
1203 s/.*/./; q'`
795ca3e5 1204 srcdir=$ac_confdir
7a197a62 1205 if test ! -r "$srcdir/$ac_unique_file"; then
795ca3e5
AK
1206 srcdir=..
1207 fi
1208else
1209 ac_srcdir_defaulted=no
1210fi
7a197a62
AK
1211if test ! -r "$srcdir/$ac_unique_file"; then
1212 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1995c9ff 1213 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
ad6254c5 1214 { (exit 1); exit 1; }; }
795ca3e5 1215fi
7a197a62
AK
1216ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1217ac_abs_confdir=`(
1995c9ff 1218 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
ad6254c5 1219 { (exit 1); exit 1; }; }
7a197a62
AK
1220 pwd)`
1221# When building in place, set srcdir=.
1222if test "$ac_abs_confdir" = "$ac_pwd"; then
1223 srcdir=.
1224fi
1225# Remove unnecessary trailing slashes from srcdir.
1226# Double slashes in file names in object file debugging info
1227# mess up M-x gdb in Emacs.
1228case $srcdir in
1229*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1230esac
1231for ac_var in $ac_precious_vars; do
1232 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1233 eval ac_env_${ac_var}_value=\$${ac_var}
1234 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1235 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1236done
ad6254c5
AK
1237
1238#
1239# Report the --help message.
1240#
1241if test "$ac_init_help" = "long"; then
1242 # Omit some internal or obsolete options to make the list less imposing.
1243 # This message is too long to be a string in the A/UX 3.1 sh.
1244 cat <<_ACEOF
1245\`configure' configures this package to adapt to many kinds of systems.
1246
1247Usage: $0 [OPTION]... [VAR=VALUE]...
1248
1249To assign environment variables (e.g., CC, CFLAGS...), specify them as
1250VAR=VALUE. See below for descriptions of some of the useful variables.
1251
1252Defaults for the options are specified in brackets.
1253
1254Configuration:
1255 -h, --help display this help and exit
1256 --help=short display options specific to this package
1257 --help=recursive display the short help of all the included packages
1258 -V, --version display version information and exit
1259 -q, --quiet, --silent do not print \`checking...' messages
1260 --cache-file=FILE cache test results in FILE [disabled]
1261 -C, --config-cache alias for \`--cache-file=config.cache'
1262 -n, --no-create do not create output files
1263 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1264
ad6254c5
AK
1265Installation directories:
1266 --prefix=PREFIX install architecture-independent files in PREFIX
8a2fc586 1267 [$ac_default_prefix]
ad6254c5 1268 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
8a2fc586 1269 [PREFIX]
ad6254c5
AK
1270
1271By default, \`make install' will install all the files in
1272\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1273an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1274for instance \`--prefix=\$HOME'.
1275
1276For better control, use the options below.
1277
1278Fine tuning of the installation directories:
1279 --bindir=DIR user executables [EPREFIX/bin]
1280 --sbindir=DIR system admin executables [EPREFIX/sbin]
1281 --libexecdir=DIR program executables [EPREFIX/libexec]
ad6254c5
AK
1282 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1283 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1284 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1285 --libdir=DIR object code libraries [EPREFIX/lib]
1286 --includedir=DIR C header files [PREFIX/include]
1287 --oldincludedir=DIR C header files for non-gcc [/usr/include]
7a197a62
AK
1288 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1289 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1290 --infodir=DIR info documentation [DATAROOTDIR/info]
1291 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1292 --mandir=DIR man documentation [DATAROOTDIR/man]
1293 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1294 --htmldir=DIR html documentation [DOCDIR]
1295 --dvidir=DIR dvi documentation [DOCDIR]
1296 --pdfdir=DIR pdf documentation [DOCDIR]
1297 --psdir=DIR ps documentation [DOCDIR]
ad6254c5
AK
1298_ACEOF
1299
1300 cat <<\_ACEOF
1301
1302System types:
1303 --build=BUILD configure for building on BUILD [guessed]
1304 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1305 --target=TARGET configure for building compilers for TARGET [HOST]
1306_ACEOF
1307fi
1308
1309if test -n "$ac_init_help"; then
1310
1311 cat <<\_ACEOF
1312
1313Optional Features:
1314 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1315 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
ad6254c5
AK
1316 --enable-lvm1_fallback Use this to fall back and use LVM1 binaries if
1317 device-mapper is missing from the kernel
ad6254c5 1318 --enable-readline Enable readline support
3d978351 1319 --disable-realtime Disable realtime clock support
ad6254c5
AK
1320 --enable-debug Enable debugging
1321 --disable-devmapper Disable device-mapper interaction
1322 --disable-o_direct Disable O_DIRECT
1323 --enable-cmdlib Build shared command library
1324 --enable-fsadm Enable fsadm
15d91f5a 1325 --enable-dmeventd Enable the device-mapper event daemon
d0191583
JM
1326 --enable-static_link Use this to link the tools to their libraries
1327 statically. Default is dynamic linking
1328 --disable-selinux Disable selinux support
ad6254c5
AK
1329 --enable-nls Enable Native Language Support
1330
1331Optional Packages:
1332 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1333 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
d0191583
JM
1334 --with-user=USER Set the owner of installed files [USER=root]
1335 --with-group=GROUP Set the group owner of installed files [GROUP=root]
ad6254c5
AK
1336 --with-lvm1=TYPE LVM1 metadata support: internal/shared/none
1337 TYPE=internal
1338 --with-pool=TYPE GFS pool read-only support: internal/shared/none
1339 TYPE=internal
1340 --with-cluster=TYPE Cluster LVM locking support: internal/shared/none
1341 TYPE=internal
1342 --with-snapshots=TYPE Snapshot support: internal/shared/none
1343 TYPE=internal
1344 --with-mirrors=TYPE Mirror support: internal/shared/none
1345 TYPE=internal
5c7fc7c4 1346 --with-clvmd=TYPE Build cluster LVM Daemon: cman/gulm/none/all
a266258f 1347 TYPE=none
d0191583
JM
1348 --with-optimisation=OPT C optimisation flag [OPT=-O2]
1349 --with-localedir=DIR Translation files in DIR [PREFIX/share/locale]
ad6254c5
AK
1350 --with-confdir=DIR Configuration files in DIR /etc
1351 --with-staticdir=DIR Static binary in DIR EXEC_PREFIX/sbin
33f732c5 1352 --with-dmdir=DIR Build against device-mapper source tree in DIR
ad6254c5
AK
1353
1354Some influential environment variables:
1355 CC C compiler command
1356 CFLAGS C compiler flags
1357 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1358 nonstandard directory <lib dir>
25fbec5b 1359 LIBS libraries to pass to the linker, e.g. -l<library>
7a197a62
AK
1360 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1361 you have headers in a nonstandard directory <include dir>
ad6254c5
AK
1362 CPP C preprocessor
1363
1364Use these variables to override the choices made by `configure' or to help
1365it to find libraries and programs with nonstandard names/locations.
1366
1367_ACEOF
7a197a62 1368ac_status=$?
ad6254c5
AK
1369fi
1370
1371if test "$ac_init_help" = "recursive"; then
1372 # If there are subdirs, report their specific --help.
ad6254c5 1373 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
7a197a62 1374 test -d "$ac_dir" || continue
ad6254c5
AK
1375 ac_builddir=.
1376
7a197a62
AK
1377case "$ac_dir" in
1378.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1379*)
1995c9ff 1380 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7a197a62 1381 # A ".." for each directory in $ac_dir_suffix.
1995c9ff 1382 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
7a197a62
AK
1383 case $ac_top_builddir_sub in
1384 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1385 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1386 esac ;;
1387esac
1388ac_abs_top_builddir=$ac_pwd
1389ac_abs_builddir=$ac_pwd$ac_dir_suffix
1390# for backward compatibility:
1391ac_top_builddir=$ac_top_build_prefix
ad6254c5
AK
1392
1393case $srcdir in
7a197a62 1394 .) # We are building in place.
ad6254c5 1395 ac_srcdir=.
7a197a62
AK
1396 ac_top_srcdir=$ac_top_builddir_sub
1397 ac_abs_top_srcdir=$ac_pwd ;;
1398 [\\/]* | ?:[\\/]* ) # Absolute name.
ad6254c5 1399 ac_srcdir=$srcdir$ac_dir_suffix;
7a197a62
AK
1400 ac_top_srcdir=$srcdir
1401 ac_abs_top_srcdir=$srcdir ;;
1402 *) # Relative name.
1403 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1404 ac_top_srcdir=$ac_top_build_prefix$srcdir
1405 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8a2fc586 1406esac
7a197a62
AK
1407ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1408
1409 cd "$ac_dir" || { ac_status=$?; continue; }
1410 # Check for guested configure.
1411 if test -f "$ac_srcdir/configure.gnu"; then
1412 echo &&
1413 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1414 elif test -f "$ac_srcdir/configure"; then
1415 echo &&
1416 $SHELL "$ac_srcdir/configure" --help=recursive
ad6254c5 1417 else
1995c9ff 1418 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
7a197a62
AK
1419 fi || ac_status=$?
1420 cd "$ac_pwd" || { ac_status=$?; break; }
ad6254c5
AK
1421 done
1422fi
1423
7a197a62 1424test -n "$ac_init_help" && exit $ac_status
ad6254c5
AK
1425if $ac_init_version; then
1426 cat <<\_ACEOF
7a197a62 1427configure
25fbec5b 1428generated by GNU Autoconf 2.61
ad6254c5 1429
7a197a62
AK
1430Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
14312002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
ad6254c5
AK
1432This configure script is free software; the Free Software Foundation
1433gives unlimited permission to copy, distribute and modify it.
1434_ACEOF
7a197a62 1435 exit
ad6254c5 1436fi
7a197a62 1437cat >config.log <<_ACEOF
ad6254c5
AK
1438This file contains any messages produced by compilers while
1439running configure, to aid debugging if configure makes a mistake.
1440
1441It was created by $as_me, which was
25fbec5b 1442generated by GNU Autoconf 2.61. Invocation command line was
ad6254c5
AK
1443
1444 $ $0 $@
1445
1446_ACEOF
7a197a62 1447exec 5>>config.log
ad6254c5
AK
1448{
1449cat <<_ASUNAME
1450## --------- ##
1451## Platform. ##
1452## --------- ##
1453
1454hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1455uname -m = `(uname -m) 2>/dev/null || echo unknown`
1456uname -r = `(uname -r) 2>/dev/null || echo unknown`
1457uname -s = `(uname -s) 2>/dev/null || echo unknown`
1458uname -v = `(uname -v) 2>/dev/null || echo unknown`
1459
1460/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1461/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1462
1463/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1464/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1465/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
7a197a62 1466/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
ad6254c5
AK
1467/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1468/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1469/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1470
1471_ASUNAME
1472
1473as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1474for as_dir in $PATH
1475do
1476 IFS=$as_save_IFS
1477 test -z "$as_dir" && as_dir=.
1995c9ff 1478 echo "PATH: $as_dir"
ad6254c5 1479done
7a197a62 1480IFS=$as_save_IFS
ad6254c5
AK
1481
1482} >&5
1483
1484cat >&5 <<_ACEOF
1485
1486
1487## ----------- ##
1488## Core tests. ##
1489## ----------- ##
1490
1491_ACEOF
1492
1493
1494# Keep a trace of the command line.
1495# Strip out --no-create and --no-recursion so they do not pile up.
1496# Strip out --silent because we don't want to record it for future runs.
1497# Also quote any args containing shell meta-characters.
1498# Make two passes to allow for proper duplicate-argument suppression.
1499ac_configure_args=
1500ac_configure_args0=
1501ac_configure_args1=
ad6254c5
AK
1502ac_must_keep_next=false
1503for ac_pass in 1 2
1504do
1505 for ac_arg
1506 do
1507 case $ac_arg in
1508 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1509 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1510 | -silent | --silent | --silen | --sile | --sil)
1511 continue ;;
7a197a62 1512 *\'*)
1995c9ff 1513 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
ad6254c5
AK
1514 esac
1515 case $ac_pass in
1516 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1517 2)
1518 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1519 if test $ac_must_keep_next = true; then
8a2fc586 1520 ac_must_keep_next=false # Got value, back to normal.
ad6254c5 1521 else
8a2fc586
AK
1522 case $ac_arg in
1523 *=* | --config-cache | -C | -disable-* | --disable-* \
1524 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1525 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1526 | -with-* | --with-* | -without-* | --without-* | --x)
1527 case "$ac_configure_args0 " in
1528 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1529 esac
1530 ;;
1531 -* ) ac_must_keep_next=true ;;
1532 esac
ad6254c5 1533 fi
7a197a62 1534 ac_configure_args="$ac_configure_args '$ac_arg'"
ad6254c5
AK
1535 ;;
1536 esac
1537 done
1538done
1539$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1540$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1541
1542# When interrupted or exit'd, cleanup temporary files, and complete
1543# config.log. We remove comments because anyway the quotes in there
1544# would cause problems or look ugly.
7a197a62
AK
1545# WARNING: Use '\'' to represent an apostrophe within the trap.
1546# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
ad6254c5
AK
1547trap 'exit_status=$?
1548 # Save into config.log some information that might help in debugging.
1549 {
1550 echo
1551
1552 cat <<\_ASBOX
1553## ---------------- ##
1554## Cache variables. ##
1555## ---------------- ##
1556_ASBOX
1557 echo
1558 # The following way of writing the cache mishandles newlines in values,
7a197a62
AK
1559(
1560 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1561 eval ac_val=\$$ac_var
1562 case $ac_val in #(
1563 *${as_nl}*)
1564 case $ac_var in #(
1995c9ff
AK
1565 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1566echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
7a197a62
AK
1567 esac
1568 case $ac_var in #(
1569 _ | IFS | as_nl) ;; #(
1570 *) $as_unset $ac_var ;;
1571 esac ;;
1572 esac
1573 done
ad6254c5 1574 (set) 2>&1 |
7a197a62
AK
1575 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1576 *${as_nl}ac_space=\ *)
ad6254c5 1577 sed -n \
7a197a62
AK
1578 "s/'\''/'\''\\\\'\'''\''/g;
1579 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1580 ;; #(
ad6254c5 1581 *)
7a197a62 1582 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
ad6254c5 1583 ;;
7a197a62
AK
1584 esac |
1585 sort
1586)
ad6254c5
AK
1587 echo
1588
1589 cat <<\_ASBOX
1590## ----------------- ##
1591## Output variables. ##
1592## ----------------- ##
1593_ASBOX
1594 echo
1595 for ac_var in $ac_subst_vars
1596 do
7a197a62
AK
1597 eval ac_val=\$$ac_var
1598 case $ac_val in
1995c9ff 1599 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
7a197a62 1600 esac
1995c9ff 1601 echo "$ac_var='\''$ac_val'\''"
ad6254c5
AK
1602 done | sort
1603 echo
1604
1605 if test -n "$ac_subst_files"; then
1606 cat <<\_ASBOX
7a197a62
AK
1607## ------------------- ##
1608## File substitutions. ##
1609## ------------------- ##
ad6254c5
AK
1610_ASBOX
1611 echo
1612 for ac_var in $ac_subst_files
1613 do
7a197a62
AK
1614 eval ac_val=\$$ac_var
1615 case $ac_val in
1995c9ff 1616 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
7a197a62 1617 esac
1995c9ff 1618 echo "$ac_var='\''$ac_val'\''"
ad6254c5
AK
1619 done | sort
1620 echo
1621 fi
1622
1623 if test -s confdefs.h; then
1624 cat <<\_ASBOX
1625## ----------- ##
1626## confdefs.h. ##
1627## ----------- ##
1628_ASBOX
1629 echo
7a197a62 1630 cat confdefs.h
ad6254c5
AK
1631 echo
1632 fi
1633 test "$ac_signal" != 0 &&
1995c9ff
AK
1634 echo "$as_me: caught signal $ac_signal"
1635 echo "$as_me: exit $exit_status"
ad6254c5 1636 } >&5
7a197a62
AK
1637 rm -f core *.core core.conftest.* &&
1638 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
ad6254c5 1639 exit $exit_status
7a197a62 1640' 0
ad6254c5
AK
1641for ac_signal in 1 2 13 15; do
1642 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1643done
1644ac_signal=0
1645
1646# confdefs.h avoids OS command line length limits that DEFS can exceed.
7a197a62 1647rm -f -r conftest* confdefs.h
ad6254c5
AK
1648
1649# Predefined preprocessor variables.
1650
1651cat >>confdefs.h <<_ACEOF
1652#define PACKAGE_NAME "$PACKAGE_NAME"
1653_ACEOF
1654
1655
1656cat >>confdefs.h <<_ACEOF
1657#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1658_ACEOF
1659
1660
1661cat >>confdefs.h <<_ACEOF
1662#define PACKAGE_VERSION "$PACKAGE_VERSION"
1663_ACEOF
8106cdd5 1664
ad6254c5
AK
1665
1666cat >>confdefs.h <<_ACEOF
1667#define PACKAGE_STRING "$PACKAGE_STRING"
1668_ACEOF
1669
1670
1671cat >>confdefs.h <<_ACEOF
1672#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1673_ACEOF
1674
1675
1676# Let the site file select an alternate cache file if it wants to.
795ca3e5 1677# Prefer explicitly selected file to automatically selected ones.
7a197a62
AK
1678if test -n "$CONFIG_SITE"; then
1679 set x "$CONFIG_SITE"
1680elif test "x$prefix" != xNONE; then
1681 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1682else
1683 set x "$ac_default_prefix/share/config.site" \
1684 "$ac_default_prefix/etc/config.site"
795ca3e5 1685fi
7a197a62
AK
1686shift
1687for ac_site_file
1688do
795ca3e5 1689 if test -r "$ac_site_file"; then
1995c9ff
AK
1690 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1691echo "$as_me: loading site script $ac_site_file" >&6;}
ad6254c5 1692 sed 's/^/| /' "$ac_site_file" >&5
795ca3e5
AK
1693 . "$ac_site_file"
1694 fi
1695done
1696
1697if test -r "$cache_file"; then
ad6254c5
AK
1698 # Some versions of bash will fail to source /dev/null (special
1699 # files actually), so we avoid doing that.
1700 if test -f "$cache_file"; then
1995c9ff
AK
1701 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1702echo "$as_me: loading cache $cache_file" >&6;}
ad6254c5 1703 case $cache_file in
7a197a62
AK
1704 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1705 *) . "./$cache_file";;
ad6254c5
AK
1706 esac
1707 fi
795ca3e5 1708else
1995c9ff
AK
1709 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1710echo "$as_me: creating cache $cache_file" >&6;}
ad6254c5
AK
1711 >$cache_file
1712fi
1713
1714# Check that the precious variables saved in the cache have kept the same
1715# value.
1716ac_cache_corrupted=false
7a197a62 1717for ac_var in $ac_precious_vars; do
ad6254c5
AK
1718 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1719 eval ac_new_set=\$ac_env_${ac_var}_set
7a197a62
AK
1720 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1721 eval ac_new_val=\$ac_env_${ac_var}_value
ad6254c5
AK
1722 case $ac_old_set,$ac_new_set in
1723 set,)
1995c9ff
AK
1724 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1725echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
ad6254c5
AK
1726 ac_cache_corrupted=: ;;
1727 ,set)
1995c9ff
AK
1728 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1729echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
ad6254c5
AK
1730 ac_cache_corrupted=: ;;
1731 ,);;
1732 *)
1733 if test "x$ac_old_val" != "x$ac_new_val"; then
1995c9ff
AK
1734 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1735echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1736 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1737echo "$as_me: former value: $ac_old_val" >&2;}
1738 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1739echo "$as_me: current value: $ac_new_val" >&2;}
8a2fc586 1740 ac_cache_corrupted=:
ad6254c5
AK
1741 fi;;
1742 esac
1743 # Pass precious variables to config.status.
1744 if test "$ac_new_set" = set; then
1745 case $ac_new_val in
1995c9ff 1746 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
ad6254c5
AK
1747 *) ac_arg=$ac_var=$ac_new_val ;;
1748 esac
1749 case " $ac_configure_args " in
1750 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1751 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1752 esac
1753 fi
1754done
1755if $ac_cache_corrupted; then
1995c9ff
AK
1756 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1757echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1758 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1759echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
ad6254c5 1760 { (exit 1); exit 1; }; }
795ca3e5
AK
1761fi
1762
ad6254c5
AK
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
7a197a62
AK
1779ac_ext=c
1780ac_cpp='$CPP $CPPFLAGS'
1781ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1782ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1783ac_compiler_gnu=$ac_cv_c_compiler_gnu
ad6254c5 1784
795ca3e5
AK
1785
1786
7a197a62 1787ac_config_headers="$ac_config_headers lib/misc/configure.h"
72b2cb61
AK
1788
1789
80992638 1790################################################################################
795ca3e5 1791ac_aux_dir=
7a197a62
AK
1792for ac_dir in autoconf "$srcdir"/autoconf; do
1793 if test -f "$ac_dir/install-sh"; then
795ca3e5
AK
1794 ac_aux_dir=$ac_dir
1795 ac_install_sh="$ac_aux_dir/install-sh -c"
1796 break
7a197a62 1797 elif test -f "$ac_dir/install.sh"; then
795ca3e5
AK
1798 ac_aux_dir=$ac_dir
1799 ac_install_sh="$ac_aux_dir/install.sh -c"
1800 break
7a197a62 1801 elif test -f "$ac_dir/shtool"; then
ad6254c5
AK
1802 ac_aux_dir=$ac_dir
1803 ac_install_sh="$ac_aux_dir/shtool install -c"
1804 break
795ca3e5
AK
1805 fi
1806done
1807if test -z "$ac_aux_dir"; then
1995c9ff
AK
1808 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1809echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
ad6254c5 1810 { (exit 1); exit 1; }; }
795ca3e5 1811fi
7a197a62
AK
1812
1813# These three variables are undocumented and unsupported,
1814# and are intended to be withdrawn in a future Autoconf release.
1815# They can cause serious problems if a builder's source tree is in a directory
1816# whose full name contains unusual characters.
1817ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1818ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1819ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1820
8ce0cbda
AK
1821
1822
ad6254c5 1823################################################################################
8ce0cbda 1824# Make sure we can run config.sub.
7a197a62 1825$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1995c9ff
AK
1826 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1827echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
ad6254c5
AK
1828 { (exit 1); exit 1; }; }
1829
1995c9ff
AK
1830{ echo "$as_me:$LINENO: checking build system type" >&5
1831echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
ad6254c5 1832if test "${ac_cv_build+set}" = set; then
1995c9ff 1833 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 1834else
7a197a62
AK
1835 ac_build_alias=$build_alias
1836test "x$ac_build_alias" = x &&
1837 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1838test "x$ac_build_alias" = x &&
1995c9ff
AK
1839 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1840echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
ad6254c5 1841 { (exit 1); exit 1; }; }
7a197a62 1842ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1995c9ff
AK
1843 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1844echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
ad6254c5
AK
1845 { (exit 1); exit 1; }; }
1846
1847fi
1995c9ff
AK
1848{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1849echo "${ECHO_T}$ac_cv_build" >&6; }
7a197a62
AK
1850case $ac_cv_build in
1851*-*-*) ;;
1995c9ff
AK
1852*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1853echo "$as_me: error: invalid value of canonical build" >&2;}
7a197a62
AK
1854 { (exit 1); exit 1; }; };;
1855esac
ad6254c5 1856build=$ac_cv_build
7a197a62
AK
1857ac_save_IFS=$IFS; IFS='-'
1858set x $ac_cv_build
1859shift
1860build_cpu=$1
1861build_vendor=$2
1862shift; shift
1863# Remember, the first character of IFS is used to create $*,
1864# except with old shells:
1865build_os=$*
1866IFS=$ac_save_IFS
1867case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
ad6254c5
AK
1868
1869
1995c9ff
AK
1870{ echo "$as_me:$LINENO: checking host system type" >&5
1871echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
ad6254c5 1872if test "${ac_cv_host+set}" = set; then
1995c9ff 1873 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 1874else
7a197a62
AK
1875 if test "x$host_alias" = x; then
1876 ac_cv_host=$ac_cv_build
1877else
1878 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1995c9ff
AK
1879 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1880echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
ad6254c5 1881 { (exit 1); exit 1; }; }
7a197a62 1882fi
ad6254c5
AK
1883
1884fi
1995c9ff
AK
1885{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1886echo "${ECHO_T}$ac_cv_host" >&6; }
7a197a62
AK
1887case $ac_cv_host in
1888*-*-*) ;;
1995c9ff
AK
1889*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1890echo "$as_me: error: invalid value of canonical host" >&2;}
7a197a62
AK
1891 { (exit 1); exit 1; }; };;
1892esac
ad6254c5 1893host=$ac_cv_host
7a197a62
AK
1894ac_save_IFS=$IFS; IFS='-'
1895set x $ac_cv_host
1896shift
1897host_cpu=$1
1898host_vendor=$2
1899shift; shift
1900# Remember, the first character of IFS is used to create $*,
1901# except with old shells:
1902host_os=$*
1903IFS=$ac_save_IFS
1904case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
ad6254c5
AK
1905
1906
1995c9ff
AK
1907{ echo "$as_me:$LINENO: checking target system type" >&5
1908echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
ad6254c5 1909if test "${ac_cv_target+set}" = set; then
1995c9ff 1910 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 1911else
7a197a62
AK
1912 if test "x$target_alias" = x; then
1913 ac_cv_target=$ac_cv_host
1914else
1915 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
1995c9ff
AK
1916 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
1917echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
ad6254c5 1918 { (exit 1); exit 1; }; }
7a197a62 1919fi
8ce0cbda 1920
ad6254c5 1921fi
1995c9ff
AK
1922{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1923echo "${ECHO_T}$ac_cv_target" >&6; }
7a197a62
AK
1924case $ac_cv_target in
1925*-*-*) ;;
1995c9ff
AK
1926*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
1927echo "$as_me: error: invalid value of canonical target" >&2;}
7a197a62
AK
1928 { (exit 1); exit 1; }; };;
1929esac
ad6254c5 1930target=$ac_cv_target
7a197a62
AK
1931ac_save_IFS=$IFS; IFS='-'
1932set x $ac_cv_target
1933shift
1934target_cpu=$1
1935target_vendor=$2
1936shift; shift
1937# Remember, the first character of IFS is used to create $*,
1938# except with old shells:
1939target_os=$*
1940IFS=$ac_save_IFS
1941case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
8ce0cbda 1942
8ce0cbda 1943
ad6254c5
AK
1944# The aliases save the names the user supplied, while $host etc.
1945# will get canonicalized.
1946test -n "$target_alias" &&
8ce0cbda
AK
1947 test "$program_prefix$program_suffix$program_transform_name" = \
1948 NONENONEs,x,x, &&
1949 program_prefix=${target_alias}-
1950
8ce0cbda
AK
1951case "$host_os" in
1952 linux*)
8ce0cbda
AK
1953 COPTIMISE_FLAG="-O2"
1954 CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym"
1955 CLDWHOLEARCHIVE="-Wl,-whole-archive"
1956 CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive"
1957 LDDEPS="$LDDEPS .export.sym"
1958 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
d0191583 1959 LIB_SUFFIX=so
8ce0cbda
AK
1960 DEVMAPPER=yes
1961 ODIRECT=yes
d0191583 1962 DM_IOCTLS=yes
8ce0cbda 1963 SELINUX=yes
8b1a3214 1964 REALTIME=yes
8ce0cbda 1965 CLUSTER=internal
d0191583
JM
1966 FSADM=no
1967 ;;
8ce0cbda
AK
1968 darwin*)
1969 CFLAGS="$CFLAGS -no-cpp-precomp -fno-common"
1970 COPTIMISE_FLAG="-O2"
1971 CLDFLAGS="$CLDFLAGS"
1972 CLDWHOLEARCHIVE="-all_load"
1973 CLDNOWHOLEARCHIVE=
d0191583 1974 LIB_SUFFIX=dylib
a653923f 1975 DEVMAPPER=yes
8ce0cbda 1976 ODIRECT=no
d0191583 1977 DM_IOCTLS=no
8ce0cbda 1978 SELINUX=no
8b1a3214 1979 REALTIME=no
8ce0cbda 1980 CLUSTER=none
d0191583
JM
1981 FSADM=no
1982 ;;
8ce0cbda
AK
1983esac
1984
80992638 1985################################################################################
ad6254c5 1986for ac_prog in gawk mawk nawk awk
795ca3e5 1987do
ad6254c5 1988 # Extract the first word of "$ac_prog", so it can be a program name with args.
795ca3e5 1989set dummy $ac_prog; ac_word=$2
1995c9ff
AK
1990{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1991echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
ad6254c5 1992if test "${ac_cv_prog_AWK+set}" = set; then
1995c9ff 1993 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5
AK
1994else
1995 if test -n "$AWK"; then
1996 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1997else
ad6254c5
AK
1998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1999for as_dir in $PATH
2000do
2001 IFS=$as_save_IFS
2002 test -z "$as_dir" && as_dir=.
2003 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2005 ac_cv_prog_AWK="$ac_prog"
1995c9ff 2006 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2007 break 2
2008 fi
2009done
2010done
7a197a62 2011IFS=$as_save_IFS
ad6254c5 2012
795ca3e5
AK
2013fi
2014fi
ad6254c5 2015AWK=$ac_cv_prog_AWK
795ca3e5 2016if test -n "$AWK"; then
1995c9ff
AK
2017 { echo "$as_me:$LINENO: result: $AWK" >&5
2018echo "${ECHO_T}$AWK" >&6; }
795ca3e5 2019else
1995c9ff
AK
2020 { echo "$as_me:$LINENO: result: no" >&5
2021echo "${ECHO_T}no" >&6; }
795ca3e5
AK
2022fi
2023
7a197a62 2024
ad6254c5
AK
2025 test -n "$AWK" && break
2026done
2027
2028ac_ext=c
2029ac_cpp='$CPP $CPPFLAGS'
2030ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2031ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2032ac_compiler_gnu=$ac_cv_c_compiler_gnu
2033if test -n "$ac_tool_prefix"; then
2034 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2035set dummy ${ac_tool_prefix}gcc; ac_word=$2
1995c9ff
AK
2036{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2037echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
ad6254c5 2038if test "${ac_cv_prog_CC+set}" = set; then
1995c9ff 2039 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
2040else
2041 if test -n "$CC"; then
2042 ac_cv_prog_CC="$CC" # Let the user override the test.
2043else
2044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2045for as_dir in $PATH
2046do
2047 IFS=$as_save_IFS
2048 test -z "$as_dir" && as_dir=.
2049 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2051 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1995c9ff 2052 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2053 break 2
2054 fi
2055done
8106cdd5 2056done
7a197a62 2057IFS=$as_save_IFS
8106cdd5 2058
ad6254c5
AK
2059fi
2060fi
2061CC=$ac_cv_prog_CC
2062if test -n "$CC"; then
1995c9ff
AK
2063 { echo "$as_me:$LINENO: result: $CC" >&5
2064echo "${ECHO_T}$CC" >&6; }
ad6254c5 2065else
1995c9ff
AK
2066 { echo "$as_me:$LINENO: result: no" >&5
2067echo "${ECHO_T}no" >&6; }
ad6254c5
AK
2068fi
2069
7a197a62 2070
ad6254c5
AK
2071fi
2072if test -z "$ac_cv_prog_CC"; then
2073 ac_ct_CC=$CC
2074 # Extract the first word of "gcc", so it can be a program name with args.
8106cdd5 2075set dummy gcc; ac_word=$2
1995c9ff
AK
2076{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2077echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
ad6254c5 2078if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1995c9ff 2079 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
2080else
2081 if test -n "$ac_ct_CC"; then
2082 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2083else
2084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2085for as_dir in $PATH
2086do
2087 IFS=$as_save_IFS
2088 test -z "$as_dir" && as_dir=.
2089 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2091 ac_cv_prog_ac_ct_CC="gcc"
1995c9ff 2092 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2093 break 2
2094 fi
2095done
2096done
7a197a62 2097IFS=$as_save_IFS
ad6254c5
AK
2098
2099fi
2100fi
2101ac_ct_CC=$ac_cv_prog_ac_ct_CC
2102if test -n "$ac_ct_CC"; then
1995c9ff
AK
2103 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2104echo "${ECHO_T}$ac_ct_CC" >&6; }
ad6254c5 2105else
1995c9ff
AK
2106 { echo "$as_me:$LINENO: result: no" >&5
2107echo "${ECHO_T}no" >&6; }
ad6254c5
AK
2108fi
2109
7a197a62
AK
2110 if test "x$ac_ct_CC" = x; then
2111 CC=""
2112 else
2113 case $cross_compiling:$ac_tool_warned in
2114yes:)
1995c9ff 2115{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7a197a62
AK
2116whose name does not start with the host triplet. If you think this
2117configuration is useful to you, please write to autoconf@gnu.org." >&5
1995c9ff 2118echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7a197a62
AK
2119whose name does not start with the host triplet. If you think this
2120configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2121ac_tool_warned=yes ;;
2122esac
2123 CC=$ac_ct_CC
2124 fi
ad6254c5
AK
2125else
2126 CC="$ac_cv_prog_CC"
2127fi
2128
2129if test -z "$CC"; then
7a197a62
AK
2130 if test -n "$ac_tool_prefix"; then
2131 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
ad6254c5 2132set dummy ${ac_tool_prefix}cc; ac_word=$2
1995c9ff
AK
2133{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2134echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
ad6254c5 2135if test "${ac_cv_prog_CC+set}" = set; then
1995c9ff 2136 echo $ECHO_N "(cached) $ECHO_C" >&6
8106cdd5
AK
2137else
2138 if test -n "$CC"; then
2139 ac_cv_prog_CC="$CC" # Let the user override the test.
2140else
ad6254c5
AK
2141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2142for as_dir in $PATH
2143do
2144 IFS=$as_save_IFS
2145 test -z "$as_dir" && as_dir=.
2146 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2148 ac_cv_prog_CC="${ac_tool_prefix}cc"
1995c9ff 2149 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2150 break 2
2151 fi
2152done
2153done
7a197a62 2154IFS=$as_save_IFS
ad6254c5 2155
8106cdd5
AK
2156fi
2157fi
ad6254c5 2158CC=$ac_cv_prog_CC
8106cdd5 2159if test -n "$CC"; then
1995c9ff
AK
2160 { echo "$as_me:$LINENO: result: $CC" >&5
2161echo "${ECHO_T}$CC" >&6; }
ad6254c5 2162else
1995c9ff
AK
2163 { echo "$as_me:$LINENO: result: no" >&5
2164echo "${ECHO_T}no" >&6; }
ad6254c5
AK
2165fi
2166
8106cdd5 2167
7a197a62 2168 fi
ad6254c5 2169fi
795ca3e5
AK
2170if test -z "$CC"; then
2171 # Extract the first word of "cc", so it can be a program name with args.
2172set dummy cc; ac_word=$2
1995c9ff
AK
2173{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2174echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
ad6254c5 2175if test "${ac_cv_prog_CC+set}" = set; then
1995c9ff 2176 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5
AK
2177else
2178 if test -n "$CC"; then
2179 ac_cv_prog_CC="$CC" # Let the user override the test.
2180else
795ca3e5 2181 ac_prog_rejected=no
ad6254c5
AK
2182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2183for as_dir in $PATH
2184do
2185 IFS=$as_save_IFS
2186 test -z "$as_dir" && as_dir=.
2187 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5
AK
2189 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2190 ac_prog_rejected=yes
2191 continue
2192 fi
2193 ac_cv_prog_CC="cc"
1995c9ff 2194 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2195 break 2
2196 fi
2197done
2198done
7a197a62 2199IFS=$as_save_IFS
ad6254c5 2200
795ca3e5
AK
2201if test $ac_prog_rejected = yes; then
2202 # We found a bogon in the path, so make sure we never use it.
2203 set dummy $ac_cv_prog_CC
2204 shift
ad6254c5 2205 if test $# != 0; then
795ca3e5
AK
2206 # We chose a different compiler from the bogus one.
2207 # However, it has the same basename, so the bogon will be chosen
2208 # first if we set CC to just the basename; use the full file name.
2209 shift
ad6254c5 2210 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
795ca3e5
AK
2211 fi
2212fi
2213fi
2214fi
ad6254c5 2215CC=$ac_cv_prog_CC
795ca3e5 2216if test -n "$CC"; then
1995c9ff
AK
2217 { echo "$as_me:$LINENO: result: $CC" >&5
2218echo "${ECHO_T}$CC" >&6; }
795ca3e5 2219else
1995c9ff
AK
2220 { echo "$as_me:$LINENO: result: no" >&5
2221echo "${ECHO_T}no" >&6; }
795ca3e5
AK
2222fi
2223
7a197a62 2224
ad6254c5
AK
2225fi
2226if test -z "$CC"; then
2227 if test -n "$ac_tool_prefix"; then
7a197a62 2228 for ac_prog in cl.exe
ad6254c5
AK
2229 do
2230 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2231set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1995c9ff
AK
2232{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2233echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
ad6254c5 2234if test "${ac_cv_prog_CC+set}" = set; then
1995c9ff 2235 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5
AK
2236else
2237 if test -n "$CC"; then
2238 ac_cv_prog_CC="$CC" # Let the user override the test.
2239else
ad6254c5
AK
2240as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2241for as_dir in $PATH
2242do
2243 IFS=$as_save_IFS
2244 test -z "$as_dir" && as_dir=.
2245 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2247 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1995c9ff 2248 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2249 break 2
2250 fi
2251done
2252done
7a197a62 2253IFS=$as_save_IFS
ad6254c5 2254
795ca3e5
AK
2255fi
2256fi
ad6254c5 2257CC=$ac_cv_prog_CC
795ca3e5 2258if test -n "$CC"; then
1995c9ff
AK
2259 { echo "$as_me:$LINENO: result: $CC" >&5
2260echo "${ECHO_T}$CC" >&6; }
795ca3e5 2261else
1995c9ff
AK
2262 { echo "$as_me:$LINENO: result: no" >&5
2263echo "${ECHO_T}no" >&6; }
795ca3e5 2264fi
ad6254c5 2265
7a197a62 2266
ad6254c5
AK
2267 test -n "$CC" && break
2268 done
2269fi
2270if test -z "$CC"; then
2271 ac_ct_CC=$CC
7a197a62 2272 for ac_prog in cl.exe
ad6254c5
AK
2273do
2274 # Extract the first word of "$ac_prog", so it can be a program name with args.
2275set dummy $ac_prog; ac_word=$2
1995c9ff
AK
2276{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2277echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
ad6254c5 2278if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1995c9ff 2279 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
2280else
2281 if test -n "$ac_ct_CC"; then
2282 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2283else
2284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2285for as_dir in $PATH
2286do
2287 IFS=$as_save_IFS
2288 test -z "$as_dir" && as_dir=.
2289 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2291 ac_cv_prog_ac_ct_CC="$ac_prog"
1995c9ff 2292 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5 2293 break 2
795ca3e5 2294 fi
ad6254c5
AK
2295done
2296done
7a197a62 2297IFS=$as_save_IFS
ad6254c5
AK
2298
2299fi
2300fi
2301ac_ct_CC=$ac_cv_prog_ac_ct_CC
2302if test -n "$ac_ct_CC"; then
1995c9ff
AK
2303 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2304echo "${ECHO_T}$ac_ct_CC" >&6; }
ad6254c5 2305else
1995c9ff
AK
2306 { echo "$as_me:$LINENO: result: no" >&5
2307echo "${ECHO_T}no" >&6; }
795ca3e5
AK
2308fi
2309
7a197a62 2310
ad6254c5
AK
2311 test -n "$ac_ct_CC" && break
2312done
795ca3e5 2313
7a197a62
AK
2314 if test "x$ac_ct_CC" = x; then
2315 CC=""
2316 else
2317 case $cross_compiling:$ac_tool_warned in
2318yes:)
1995c9ff 2319{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7a197a62
AK
2320whose name does not start with the host triplet. If you think this
2321configuration is useful to you, please write to autoconf@gnu.org." >&5
1995c9ff 2322echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7a197a62
AK
2323whose name does not start with the host triplet. If you think this
2324configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2325ac_tool_warned=yes ;;
2326esac
2327 CC=$ac_ct_CC
2328 fi
ad6254c5
AK
2329fi
2330
2331fi
2332
2333
1995c9ff 2334test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
ad6254c5 2335See \`config.log' for more details." >&5
1995c9ff 2336echo "$as_me: error: no acceptable C compiler found in \$PATH
ad6254c5
AK
2337See \`config.log' for more details." >&2;}
2338 { (exit 1); exit 1; }; }
2339
2340# Provide some information about the compiler.
1995c9ff
AK
2341echo "$as_me:$LINENO: checking for C compiler version" >&5
2342ac_compiler=`set X $ac_compile; echo $2`
7a197a62
AK
2343{ (ac_try="$ac_compiler --version >&5"
2344case "(($ac_try" in
2345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2346 *) ac_try_echo=$ac_try;;
2347esac
1995c9ff 2348eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 2349 (eval "$ac_compiler --version >&5") 2>&5
ad6254c5 2350 ac_status=$?
1995c9ff 2351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2352 (exit $ac_status); }
7a197a62
AK
2353{ (ac_try="$ac_compiler -v >&5"
2354case "(($ac_try" in
2355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2356 *) ac_try_echo=$ac_try;;
2357esac
1995c9ff 2358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 2359 (eval "$ac_compiler -v >&5") 2>&5
ad6254c5 2360 ac_status=$?
1995c9ff 2361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2362 (exit $ac_status); }
7a197a62
AK
2363{ (ac_try="$ac_compiler -V >&5"
2364case "(($ac_try" in
2365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2366 *) ac_try_echo=$ac_try;;
2367esac
1995c9ff 2368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 2369 (eval "$ac_compiler -V >&5") 2>&5
ad6254c5 2370 ac_status=$?
1995c9ff 2371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
2372 (exit $ac_status); }
2373
2374cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2375/* confdefs.h. */
2376_ACEOF
2377cat confdefs.h >>conftest.$ac_ext
2378cat >>conftest.$ac_ext <<_ACEOF
2379/* end confdefs.h. */
2380
2381int
2382main ()
2383{
2384
2385 ;
2386 return 0;
2387}
2388_ACEOF
2389ac_clean_files_save=$ac_clean_files
2390ac_clean_files="$ac_clean_files a.out a.exe b.out"
2391# Try to create an executable without -o first, disregard a.out.
2392# It will help us diagnose broken compilers, and finding out an intuition
2393# of exeext.
1995c9ff
AK
2394{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2395echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2396ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
7a197a62
AK
2397#
2398# List of possible output files, starting from the most likely.
2399# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2400# only as a last resort. b.out is created by i960 compilers.
2401ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2402#
2403# The IRIX 6 linker writes into existing files which may not be
2404# executable, retaining their permissions. Remove them first so a
2405# subsequent execution test works.
2406ac_rmfiles=
2407for ac_file in $ac_files
2408do
2409 case $ac_file in
2410 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2411 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2412 esac
2413done
2414rm -f $ac_rmfiles
2415
2416if { (ac_try="$ac_link_default"
2417case "(($ac_try" in
2418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2419 *) ac_try_echo=$ac_try;;
2420esac
1995c9ff 2421eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 2422 (eval "$ac_link_default") 2>&5
ad6254c5 2423 ac_status=$?
1995c9ff 2424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2425 (exit $ac_status); }; then
7a197a62
AK
2426 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2427# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2428# in a Makefile. We should not override ac_cv_exeext if it was cached,
2429# so that the user can short-circuit this test for compilers unknown to
2430# Autoconf.
25fbec5b 2431for ac_file in $ac_files ''
ad6254c5
AK
2432do
2433 test -f "$ac_file" || continue
2434 case $ac_file in
7a197a62 2435 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
8a2fc586 2436 ;;
ad6254c5 2437 [ab].out )
8a2fc586
AK
2438 # We found the default executable, but exeext='' is most
2439 # certainly right.
2440 break;;
ad6254c5 2441 *.* )
7a197a62
AK
2442 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2443 then :; else
2444 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2445 fi
2446 # We set ac_cv_exeext here because the later test for it is not
2447 # safe: cross compilers may not add the suffix if given an `-o'
2448 # argument, so we may need to know it at that point already.
2449 # Even if this section looks crufty: it has the advantage of
2450 # actually working.
8a2fc586 2451 break;;
ad6254c5 2452 * )
8a2fc586 2453 break;;
ad6254c5
AK
2454 esac
2455done
7a197a62
AK
2456test "$ac_cv_exeext" = no && ac_cv_exeext=
2457
ad6254c5 2458else
25fbec5b
AK
2459 ac_file=''
2460fi
2461
2462{ echo "$as_me:$LINENO: result: $ac_file" >&5
2463echo "${ECHO_T}$ac_file" >&6; }
2464if test -z "$ac_file"; then
1995c9ff 2465 echo "$as_me: failed program was:" >&5
ad6254c5
AK
2466sed 's/^/| /' conftest.$ac_ext >&5
2467
1995c9ff 2468{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
ad6254c5 2469See \`config.log' for more details." >&5
1995c9ff 2470echo "$as_me: error: C compiler cannot create executables
ad6254c5
AK
2471See \`config.log' for more details." >&2;}
2472 { (exit 77); exit 77; }; }
2473fi
2474
2475ac_exeext=$ac_cv_exeext
ad6254c5 2476
7a197a62 2477# Check that the compiler produces executables we can run. If not, either
ad6254c5 2478# the compiler is broken, or we cross compile.
1995c9ff
AK
2479{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2480echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
ad6254c5
AK
2481# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2482# If not cross compiling, check that we can run a simple program.
2483if test "$cross_compiling" != yes; then
2484 if { ac_try='./$ac_file'
7a197a62
AK
2485 { (case "(($ac_try" in
2486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2487 *) ac_try_echo=$ac_try;;
2488esac
1995c9ff 2489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 2490 (eval "$ac_try") 2>&5
ad6254c5 2491 ac_status=$?
1995c9ff 2492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
2493 (exit $ac_status); }; }; then
2494 cross_compiling=no
795ca3e5 2495 else
ad6254c5
AK
2496 if test "$cross_compiling" = maybe; then
2497 cross_compiling=yes
2498 else
1995c9ff 2499 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
ad6254c5
AK
2500If you meant to cross compile, use \`--host'.
2501See \`config.log' for more details." >&5
1995c9ff 2502echo "$as_me: error: cannot run C compiled programs.
ad6254c5
AK
2503If you meant to cross compile, use \`--host'.
2504See \`config.log' for more details." >&2;}
2505 { (exit 1); exit 1; }; }
2506 fi
795ca3e5 2507 fi
80992638 2508fi
1995c9ff
AK
2509{ echo "$as_me:$LINENO: result: yes" >&5
2510echo "${ECHO_T}yes" >&6; }
ad6254c5
AK
2511
2512rm -f a.out a.exe conftest$ac_cv_exeext b.out
2513ac_clean_files=$ac_clean_files_save
7a197a62 2514# Check that the compiler produces executables we can run. If not, either
ad6254c5 2515# the compiler is broken, or we cross compile.
1995c9ff
AK
2516{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2517echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2518{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2519echo "${ECHO_T}$cross_compiling" >&6; }
7a197a62 2520
1995c9ff
AK
2521{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2522echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
7a197a62
AK
2523if { (ac_try="$ac_link"
2524case "(($ac_try" in
2525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2526 *) ac_try_echo=$ac_try;;
2527esac
1995c9ff 2528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 2529 (eval "$ac_link") 2>&5
ad6254c5 2530 ac_status=$?
1995c9ff 2531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
2532 (exit $ac_status); }; then
2533 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2534# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2535# work properly (i.e., refer to `conftest.exe'), while it won't with
2536# `rm'.
2537for ac_file in conftest.exe conftest conftest.*; do
2538 test -f "$ac_file" || continue
2539 case $ac_file in
7a197a62 2540 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
ad6254c5 2541 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
8a2fc586 2542 break;;
ad6254c5
AK
2543 * ) break;;
2544 esac
2545done
80992638 2546else
1995c9ff 2547 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
ad6254c5 2548See \`config.log' for more details." >&5
1995c9ff 2549echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
ad6254c5
AK
2550See \`config.log' for more details." >&2;}
2551 { (exit 1); exit 1; }; }
2552fi
2553
2554rm -f conftest$ac_cv_exeext
1995c9ff
AK
2555{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2556echo "${ECHO_T}$ac_cv_exeext" >&6; }
ad6254c5
AK
2557
2558rm -f conftest.$ac_ext
2559EXEEXT=$ac_cv_exeext
2560ac_exeext=$EXEEXT
1995c9ff
AK
2561{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2562echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
ad6254c5 2563if test "${ac_cv_objext+set}" = set; then
1995c9ff 2564 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 2565else
ad6254c5 2566 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2567/* confdefs.h. */
2568_ACEOF
2569cat confdefs.h >>conftest.$ac_ext
2570cat >>conftest.$ac_ext <<_ACEOF
2571/* end confdefs.h. */
2572
2573int
2574main ()
2575{
2576
2577 ;
2578 return 0;
2579}
2580_ACEOF
2581rm -f conftest.o conftest.obj
7a197a62
AK
2582if { (ac_try="$ac_compile"
2583case "(($ac_try" in
2584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2585 *) ac_try_echo=$ac_try;;
2586esac
1995c9ff 2587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 2588 (eval "$ac_compile") 2>&5
ad6254c5 2589 ac_status=$?
1995c9ff 2590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2591 (exit $ac_status); }; then
7a197a62
AK
2592 for ac_file in conftest.o conftest.obj conftest.*; do
2593 test -f "$ac_file" || continue;
ad6254c5 2594 case $ac_file in
7a197a62 2595 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
ad6254c5
AK
2596 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2597 break;;
2598 esac
2599done
2600else
1995c9ff 2601 echo "$as_me: failed program was:" >&5
ad6254c5
AK
2602sed 's/^/| /' conftest.$ac_ext >&5
2603
1995c9ff 2604{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
ad6254c5 2605See \`config.log' for more details." >&5
1995c9ff 2606echo "$as_me: error: cannot compute suffix of object files: cannot compile
ad6254c5
AK
2607See \`config.log' for more details." >&2;}
2608 { (exit 1); exit 1; }; }
2609fi
2610
2611rm -f conftest.$ac_cv_objext conftest.$ac_ext
2612fi
1995c9ff
AK
2613{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2614echo "${ECHO_T}$ac_cv_objext" >&6; }
ad6254c5
AK
2615OBJEXT=$ac_cv_objext
2616ac_objext=$OBJEXT
1995c9ff
AK
2617{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2618echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
ad6254c5 2619if test "${ac_cv_c_compiler_gnu+set}" = set; then
1995c9ff 2620 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
2621else
2622 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2623/* confdefs.h. */
2624_ACEOF
2625cat confdefs.h >>conftest.$ac_ext
2626cat >>conftest.$ac_ext <<_ACEOF
2627/* end confdefs.h. */
2628
2629int
2630main ()
2631{
2632#ifndef __GNUC__
2633 choke me
2634#endif
80992638 2635
ad6254c5
AK
2636 ;
2637 return 0;
2638}
2639_ACEOF
2640rm -f conftest.$ac_objext
7a197a62
AK
2641if { (ac_try="$ac_compile"
2642case "(($ac_try" in
2643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2644 *) ac_try_echo=$ac_try;;
2645esac
1995c9ff 2646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 2647 (eval "$ac_compile") 2>conftest.er1
ad6254c5 2648 ac_status=$?
8a2fc586
AK
2649 grep -v '^ *+' conftest.er1 >conftest.err
2650 rm -f conftest.er1
2651 cat conftest.err >&5
1995c9ff 2652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
2653 (exit $ac_status); } && {
2654 test -z "$ac_c_werror_flag" ||
2655 test ! -s conftest.err
2656 } && test -s conftest.$ac_objext; then
ad6254c5 2657 ac_compiler_gnu=yes
80992638 2658else
1995c9ff 2659 echo "$as_me: failed program was:" >&5
ad6254c5
AK
2660sed 's/^/| /' conftest.$ac_ext >&5
2661
7a197a62 2662 ac_compiler_gnu=no
8106cdd5 2663fi
7a197a62
AK
2664
2665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 2666ac_cv_c_compiler_gnu=$ac_compiler_gnu
80992638 2667
ad6254c5 2668fi
1995c9ff
AK
2669{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2670echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2671GCC=`test $ac_compiler_gnu = yes && echo yes`
ad6254c5
AK
2672ac_test_CFLAGS=${CFLAGS+set}
2673ac_save_CFLAGS=$CFLAGS
1995c9ff
AK
2674{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2675echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
ad6254c5 2676if test "${ac_cv_prog_cc_g+set}" = set; then
1995c9ff 2677 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 2678else
7a197a62
AK
2679 ac_save_c_werror_flag=$ac_c_werror_flag
2680 ac_c_werror_flag=yes
2681 ac_cv_prog_cc_g=no
2682 CFLAGS="-g"
2683 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2684/* confdefs.h. */
2685_ACEOF
2686cat confdefs.h >>conftest.$ac_ext
2687cat >>conftest.$ac_ext <<_ACEOF
2688/* end confdefs.h. */
2689
2690int
2691main ()
2692{
2693
2694 ;
2695 return 0;
2696}
2697_ACEOF
2698rm -f conftest.$ac_objext
7a197a62
AK
2699if { (ac_try="$ac_compile"
2700case "(($ac_try" in
2701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2702 *) ac_try_echo=$ac_try;;
2703esac
1995c9ff 2704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 2705 (eval "$ac_compile") 2>conftest.er1
ad6254c5 2706 ac_status=$?
8a2fc586
AK
2707 grep -v '^ *+' conftest.er1 >conftest.err
2708 rm -f conftest.er1
2709 cat conftest.err >&5
1995c9ff 2710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
2711 (exit $ac_status); } && {
2712 test -z "$ac_c_werror_flag" ||
2713 test ! -s conftest.err
2714 } && test -s conftest.$ac_objext; then
7a197a62
AK
2715 ac_cv_prog_cc_g=yes
2716else
1995c9ff 2717 echo "$as_me: failed program was:" >&5
7a197a62
AK
2718sed 's/^/| /' conftest.$ac_ext >&5
2719
2720 CFLAGS=""
2721 cat >conftest.$ac_ext <<_ACEOF
2722/* confdefs.h. */
2723_ACEOF
2724cat confdefs.h >>conftest.$ac_ext
2725cat >>conftest.$ac_ext <<_ACEOF
2726/* end confdefs.h. */
2727
2728int
2729main ()
2730{
2731
2732 ;
2733 return 0;
2734}
2735_ACEOF
2736rm -f conftest.$ac_objext
2737if { (ac_try="$ac_compile"
2738case "(($ac_try" in
2739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2740 *) ac_try_echo=$ac_try;;
2741esac
1995c9ff 2742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 2743 (eval "$ac_compile") 2>conftest.er1
8a2fc586 2744 ac_status=$?
7a197a62
AK
2745 grep -v '^ *+' conftest.er1 >conftest.err
2746 rm -f conftest.er1
2747 cat conftest.err >&5
1995c9ff 2748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
2749 (exit $ac_status); } && {
2750 test -z "$ac_c_werror_flag" ||
2751 test ! -s conftest.err
2752 } && test -s conftest.$ac_objext; then
7a197a62
AK
2753 :
2754else
1995c9ff 2755 echo "$as_me: failed program was:" >&5
7a197a62
AK
2756sed 's/^/| /' conftest.$ac_ext >&5
2757
2758 ac_c_werror_flag=$ac_save_c_werror_flag
2759 CFLAGS="-g"
2760 cat >conftest.$ac_ext <<_ACEOF
2761/* confdefs.h. */
2762_ACEOF
2763cat confdefs.h >>conftest.$ac_ext
2764cat >>conftest.$ac_ext <<_ACEOF
2765/* end confdefs.h. */
2766
2767int
2768main ()
2769{
2770
2771 ;
2772 return 0;
2773}
2774_ACEOF
2775rm -f conftest.$ac_objext
2776if { (ac_try="$ac_compile"
2777case "(($ac_try" in
2778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2779 *) ac_try_echo=$ac_try;;
2780esac
1995c9ff 2781eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 2782 (eval "$ac_compile") 2>conftest.er1
ad6254c5 2783 ac_status=$?
7a197a62
AK
2784 grep -v '^ *+' conftest.er1 >conftest.err
2785 rm -f conftest.er1
2786 cat conftest.err >&5
1995c9ff 2787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
2788 (exit $ac_status); } && {
2789 test -z "$ac_c_werror_flag" ||
2790 test ! -s conftest.err
2791 } && test -s conftest.$ac_objext; then
795ca3e5
AK
2792 ac_cv_prog_cc_g=yes
2793else
1995c9ff 2794 echo "$as_me: failed program was:" >&5
ad6254c5 2795sed 's/^/| /' conftest.$ac_ext >&5
80992638 2796
7a197a62
AK
2797
2798fi
2799
2800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2801fi
2802
2803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8106cdd5 2804fi
7a197a62
AK
2805
2806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2807 ac_c_werror_flag=$ac_save_c_werror_flag
ad6254c5 2808fi
1995c9ff
AK
2809{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2810echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
795ca3e5 2811if test "$ac_test_CFLAGS" = set; then
ad6254c5 2812 CFLAGS=$ac_save_CFLAGS
795ca3e5
AK
2813elif test $ac_cv_prog_cc_g = yes; then
2814 if test "$GCC" = yes; then
2815 CFLAGS="-g -O2"
2816 else
2817 CFLAGS="-g"
2818 fi
2819else
2820 if test "$GCC" = yes; then
2821 CFLAGS="-O2"
2822 else
2823 CFLAGS=
2824 fi
2825fi
1995c9ff
AK
2826{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2827echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
7a197a62 2828if test "${ac_cv_prog_cc_c89+set}" = set; then
1995c9ff 2829 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 2830else
7a197a62 2831 ac_cv_prog_cc_c89=no
ad6254c5
AK
2832ac_save_CC=$CC
2833cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2834/* confdefs.h. */
2835_ACEOF
2836cat confdefs.h >>conftest.$ac_ext
2837cat >>conftest.$ac_ext <<_ACEOF
2838/* end confdefs.h. */
2839#include <stdarg.h>
2840#include <stdio.h>
2841#include <sys/types.h>
2842#include <sys/stat.h>
2843/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2844struct buf { int x; };
2845FILE * (*rcsopen) (struct buf *, struct stat *, int);
2846static char *e (p, i)
2847 char **p;
2848 int i;
2849{
2850 return p[i];
2851}
2852static char *f (char * (*g) (char **, int), char **p, ...)
2853{
2854 char *s;
2855 va_list v;
2856 va_start (v,p);
2857 s = g (p, va_arg (v,int));
2858 va_end (v);
2859 return s;
2860}
8a2fc586
AK
2861
2862/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2863 function prototypes and stuff, but not '\xHH' hex character constants.
2864 These don't provoke an error unfortunately, instead are silently treated
7a197a62 2865 as 'x'. The following induces an error, until -std is added to get
8a2fc586
AK
2866 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2867 array size at least. It's necessary to write '\x00'==0 to get something
7a197a62 2868 that's true only with -std. */
8a2fc586
AK
2869int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2870
7a197a62
AK
2871/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2872 inside strings and character constants. */
2873#define FOO(x) 'x'
2874int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2875
ad6254c5
AK
2876int test (int i, double x);
2877struct s1 {int (*f) (int a);};
2878struct s2 {int (*f) (double a);};
2879int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2880int argc;
2881char **argv;
2882int
2883main ()
2884{
2885return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2886 ;
2887 return 0;
2888}
2889_ACEOF
7a197a62
AK
2890for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2891 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
ad6254c5
AK
2892do
2893 CC="$ac_save_CC $ac_arg"
2894 rm -f conftest.$ac_objext
7a197a62
AK
2895if { (ac_try="$ac_compile"
2896case "(($ac_try" in
2897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2898 *) ac_try_echo=$ac_try;;
2899esac
1995c9ff 2900eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 2901 (eval "$ac_compile") 2>conftest.er1
ad6254c5 2902 ac_status=$?
8a2fc586
AK
2903 grep -v '^ *+' conftest.er1 >conftest.err
2904 rm -f conftest.er1
2905 cat conftest.err >&5
1995c9ff 2906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
2907 (exit $ac_status); } && {
2908 test -z "$ac_c_werror_flag" ||
2909 test ! -s conftest.err
2910 } && test -s conftest.$ac_objext; then
7a197a62 2911 ac_cv_prog_cc_c89=$ac_arg
ad6254c5 2912else
1995c9ff 2913 echo "$as_me: failed program was:" >&5
ad6254c5
AK
2914sed 's/^/| /' conftest.$ac_ext >&5
2915
7a197a62 2916
ad6254c5 2917fi
7a197a62
AK
2918
2919rm -f core conftest.err conftest.$ac_objext
2920 test "x$ac_cv_prog_cc_c89" != "xno" && break
ad6254c5 2921done
7a197a62 2922rm -f conftest.$ac_ext
ad6254c5
AK
2923CC=$ac_save_CC
2924
2925fi
7a197a62
AK
2926# AC_CACHE_VAL
2927case "x$ac_cv_prog_cc_c89" in
2928 x)
1995c9ff
AK
2929 { echo "$as_me:$LINENO: result: none needed" >&5
2930echo "${ECHO_T}none needed" >&6; } ;;
7a197a62 2931 xno)
1995c9ff
AK
2932 { echo "$as_me:$LINENO: result: unsupported" >&5
2933echo "${ECHO_T}unsupported" >&6; } ;;
ad6254c5 2934 *)
7a197a62 2935 CC="$CC $ac_cv_prog_cc_c89"
1995c9ff
AK
2936 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2937echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
ad6254c5
AK
2938esac
2939
ad6254c5 2940
ad6254c5
AK
2941ac_ext=c
2942ac_cpp='$CPP $CPPFLAGS'
2943ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2944ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2945ac_compiler_gnu=$ac_cv_c_compiler_gnu
795ca3e5 2946
d0191583
JM
2947
2948
2949ac_ext=c
2950ac_cpp='$CPP $CPPFLAGS'
2951ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2952ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2953ac_compiler_gnu=$ac_cv_c_compiler_gnu
2954{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2955echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2956# On Suns, sometimes $CPP names a directory.
2957if test -n "$CPP" && test -d "$CPP"; then
2958 CPP=
2959fi
2960if test -z "$CPP"; then
2961 if test "${ac_cv_prog_CPP+set}" = set; then
1995c9ff 2962 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 2963else
d0191583
JM
2964 # Double quotes because CPP needs to be expanded
2965 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2966 do
2967 ac_preproc_ok=false
2968for ac_c_preproc_warn_flag in '' yes
ad6254c5 2969do
d0191583
JM
2970 # Use a header file that comes with gcc, so configuring glibc
2971 # with a fresh cross-compiler works.
2972 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2973 # <limits.h> exists even on freestanding compilers.
2974 # On the NeXT, cc -E runs the code through the compiler's parser,
2975 # not just through cpp. "Syntax error" is here to catch this case.
2976 cat >conftest.$ac_ext <<_ACEOF
2977/* confdefs.h. */
2978_ACEOF
2979cat confdefs.h >>conftest.$ac_ext
2980cat >>conftest.$ac_ext <<_ACEOF
2981/* end confdefs.h. */
2982#ifdef __STDC__
2983# include <limits.h>
2984#else
2985# include <assert.h>
2986#endif
2987 Syntax error
2988_ACEOF
2989if { (ac_try="$ac_cpp conftest.$ac_ext"
2990case "(($ac_try" in
2991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2992 *) ac_try_echo=$ac_try;;
ad6254c5 2993esac
d0191583
JM
2994eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2995 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2996 ac_status=$?
2997 grep -v '^ *+' conftest.er1 >conftest.err
2998 rm -f conftest.er1
2999 cat conftest.err >&5
3000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3001 (exit $ac_status); } >/dev/null && {
3002 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3003 test ! -s conftest.err
3004 }; then
3005 :
3006else
3007 echo "$as_me: failed program was:" >&5
3008sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 3009
d0191583
JM
3010 # Broken: fails on valid input.
3011continue
795ca3e5 3012fi
795ca3e5 3013
d0191583 3014rm -f conftest.err conftest.$ac_ext
795ca3e5 3015
d0191583
JM
3016 # OK, works on sane cases. Now check whether nonexistent headers
3017 # can be detected and how.
3018 cat >conftest.$ac_ext <<_ACEOF
3019/* confdefs.h. */
3020_ACEOF
3021cat confdefs.h >>conftest.$ac_ext
3022cat >>conftest.$ac_ext <<_ACEOF
3023/* end confdefs.h. */
3024#include <ac_nonexistent.h>
3025_ACEOF
3026if { (ac_try="$ac_cpp conftest.$ac_ext"
3027case "(($ac_try" in
3028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3029 *) ac_try_echo=$ac_try;;
3030esac
3031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3032 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3033 ac_status=$?
3034 grep -v '^ *+' conftest.er1 >conftest.err
3035 rm -f conftest.er1
3036 cat conftest.err >&5
3037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3038 (exit $ac_status); } >/dev/null && {
3039 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3040 test ! -s conftest.err
3041 }; then
3042 # Broken: success on invalid input.
3043continue
3044else
3045 echo "$as_me: failed program was:" >&5
3046sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 3047
d0191583
JM
3048 # Passes both tests.
3049ac_preproc_ok=:
3050break
3051fi
795ca3e5 3052
d0191583
JM
3053rm -f conftest.err conftest.$ac_ext
3054
3055done
3056# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3057rm -f conftest.err conftest.$ac_ext
3058if $ac_preproc_ok; then
3059 break
795ca3e5
AK
3060fi
3061
d0191583
JM
3062 done
3063 ac_cv_prog_CPP=$CPP
3064
3065fi
3066 CPP=$ac_cv_prog_CPP
795ca3e5 3067else
d0191583
JM
3068 ac_cv_prog_CPP=$CPP
3069fi
3070{ echo "$as_me:$LINENO: result: $CPP" >&5
3071echo "${ECHO_T}$CPP" >&6; }
3072ac_preproc_ok=false
3073for ac_c_preproc_warn_flag in '' yes
3074do
3075 # Use a header file that comes with gcc, so configuring glibc
3076 # with a fresh cross-compiler works.
3077 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3078 # <limits.h> exists even on freestanding compilers.
3079 # On the NeXT, cc -E runs the code through the compiler's parser,
3080 # not just through cpp. "Syntax error" is here to catch this case.
3081 cat >conftest.$ac_ext <<_ACEOF
3082/* confdefs.h. */
ad6254c5 3083_ACEOF
d0191583
JM
3084cat confdefs.h >>conftest.$ac_ext
3085cat >>conftest.$ac_ext <<_ACEOF
3086/* end confdefs.h. */
3087#ifdef __STDC__
3088# include <limits.h>
3089#else
3090# include <assert.h>
3091#endif
3092 Syntax error
3093_ACEOF
3094if { (ac_try="$ac_cpp conftest.$ac_ext"
3095case "(($ac_try" in
3096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3097 *) ac_try_echo=$ac_try;;
7a197a62 3098esac
d0191583
JM
3099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3100 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3101 ac_status=$?
3102 grep -v '^ *+' conftest.er1 >conftest.err
3103 rm -f conftest.er1
3104 cat conftest.err >&5
3105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3106 (exit $ac_status); } >/dev/null && {
3107 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3108 test ! -s conftest.err
3109 }; then
3110 :
795ca3e5 3111else
d0191583
JM
3112 echo "$as_me: failed program was:" >&5
3113sed 's/^/| /' conftest.$ac_ext >&5
3114
3115 # Broken: fails on valid input.
3116continue
795ca3e5
AK
3117fi
3118
d0191583
JM
3119rm -f conftest.err conftest.$ac_ext
3120
3121 # OK, works on sane cases. Now check whether nonexistent headers
3122 # can be detected and how.
3123 cat >conftest.$ac_ext <<_ACEOF
3124/* confdefs.h. */
3125_ACEOF
3126cat confdefs.h >>conftest.$ac_ext
3127cat >>conftest.$ac_ext <<_ACEOF
3128/* end confdefs.h. */
3129#include <ac_nonexistent.h>
3130_ACEOF
3131if { (ac_try="$ac_cpp conftest.$ac_ext"
3132case "(($ac_try" in
3133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3134 *) ac_try_echo=$ac_try;;
3135esac
3136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3137 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3138 ac_status=$?
3139 grep -v '^ *+' conftest.er1 >conftest.err
3140 rm -f conftest.er1
3141 cat conftest.err >&5
3142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3143 (exit $ac_status); } >/dev/null && {
3144 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3145 test ! -s conftest.err
3146 }; then
3147 # Broken: success on invalid input.
3148continue
795ca3e5 3149else
d0191583
JM
3150 echo "$as_me: failed program was:" >&5
3151sed 's/^/| /' conftest.$ac_ext >&5
ad6254c5 3152
d0191583
JM
3153 # Passes both tests.
3154ac_preproc_ok=:
3155break
795ca3e5 3156fi
d0191583
JM
3157
3158rm -f conftest.err conftest.$ac_ext
3159
3160done
3161# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3162rm -f conftest.err conftest.$ac_ext
3163if $ac_preproc_ok; then
3164 :
8106cdd5 3165else
d0191583
JM
3166 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3167See \`config.log' for more details." >&5
3168echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3169See \`config.log' for more details." >&2;}
3170 { (exit 1); exit 1; }; }
8106cdd5
AK
3171fi
3172
d0191583
JM
3173ac_ext=c
3174ac_cpp='$CPP $CPPFLAGS'
3175ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3176ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3177ac_compiler_gnu=$ac_cv_c_compiler_gnu
3178
7a197a62 3179
d0191583
JM
3180{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3181echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3182if test "${ac_cv_path_GREP+set}" = set; then
1995c9ff 3183 echo $ECHO_N "(cached) $ECHO_C" >&6
80992638 3184else
d0191583
JM
3185 # Extract the first word of "grep ggrep" to use in msg output
3186if test -z "$GREP"; then
3187set dummy grep ggrep; ac_prog_name=$2
3188if test "${ac_cv_path_GREP+set}" = set; then
3189 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 3190else
d0191583
JM
3191 ac_path_GREP_found=false
3192# Loop through the user's path and test for each of PROGNAME-LIST
ad6254c5 3193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
d0191583 3194for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
ad6254c5
AK
3195do
3196 IFS=$as_save_IFS
3197 test -z "$as_dir" && as_dir=.
d0191583 3198 for ac_prog in grep ggrep; do
ad6254c5 3199 for ac_exec_ext in '' $ac_executable_extensions; do
d0191583
JM
3200 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3201 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3202 # Check for GNU ac_path_GREP and select it if it is found.
3203 # Check for GNU $ac_path_GREP
3204case `"$ac_path_GREP" --version 2>&1` in
3205*GNU*)
3206 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3207*)
3208 ac_count=0
3209 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3210 while :
3211 do
3212 cat "conftest.in" "conftest.in" >"conftest.tmp"
3213 mv "conftest.tmp" "conftest.in"
3214 cp "conftest.in" "conftest.nl"
3215 echo 'GREP' >> "conftest.nl"
3216 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3217 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3218 ac_count=`expr $ac_count + 1`
3219 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3220 # Best one so far, save it but keep looking for a better one
3221 ac_cv_path_GREP="$ac_path_GREP"
3222 ac_path_GREP_max=$ac_count
3223 fi
3224 # 10*(2^10) chars as input seems more than enough
3225 test $ac_count -gt 10 && break
3226 done
3227 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3228esac
3229
3230
3231 $ac_path_GREP_found && break 3
3232 done
ad6254c5 3233done
d0191583 3234
795ca3e5 3235done
7a197a62 3236IFS=$as_save_IFS
8106cdd5 3237
d0191583 3238
795ca3e5 3239fi
d0191583
JM
3240
3241GREP="$ac_cv_path_GREP"
3242if test -z "$GREP"; then
3243 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3244echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3245 { (exit 1); exit 1; }; }
80992638 3246fi
d0191583 3247
80992638 3248else
d0191583 3249 ac_cv_path_GREP=$GREP
8106cdd5 3250fi
8106cdd5 3251
d0191583 3252
80992638 3253fi
d0191583
JM
3254{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3255echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3256 GREP="$ac_cv_path_GREP"
795ca3e5 3257
d0191583
JM
3258
3259{ echo "$as_me:$LINENO: checking for egrep" >&5
3260echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3261if test "${ac_cv_path_EGREP+set}" = set; then
1995c9ff 3262 echo $ECHO_N "(cached) $ECHO_C" >&6
8a2fc586 3263else
d0191583
JM
3264 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3265 then ac_cv_path_EGREP="$GREP -E"
3266 else
3267 # Extract the first word of "egrep" to use in msg output
3268if test -z "$EGREP"; then
3269set dummy egrep; ac_prog_name=$2
3270if test "${ac_cv_path_EGREP+set}" = set; then
3271 echo $ECHO_N "(cached) $ECHO_C" >&6
3272else
3273 ac_path_EGREP_found=false
3274# Loop through the user's path and test for each of PROGNAME-LIST
3275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3276for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8a2fc586
AK
3277do
3278 IFS=$as_save_IFS
3279 test -z "$as_dir" && as_dir=.
d0191583 3280 for ac_prog in egrep; do
8a2fc586 3281 for ac_exec_ext in '' $ac_executable_extensions; do
d0191583
JM
3282 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3283 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3284 # Check for GNU ac_path_EGREP and select it if it is found.
3285 # Check for GNU $ac_path_EGREP
3286case `"$ac_path_EGREP" --version 2>&1` in
3287*GNU*)
3288 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3289*)
3290 ac_count=0
3291 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3292 while :
3293 do
3294 cat "conftest.in" "conftest.in" >"conftest.tmp"
3295 mv "conftest.tmp" "conftest.in"
3296 cp "conftest.in" "conftest.nl"
3297 echo 'EGREP' >> "conftest.nl"
3298 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3299 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3300 ac_count=`expr $ac_count + 1`
3301 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3302 # Best one so far, save it but keep looking for a better one
3303 ac_cv_path_EGREP="$ac_path_EGREP"
3304 ac_path_EGREP_max=$ac_count
3305 fi
3306 # 10*(2^10) chars as input seems more than enough
3307 test $ac_count -gt 10 && break
3308 done
3309 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8a2fc586 3310esac
8a2fc586 3311
7a197a62 3312
d0191583
JM
3313 $ac_path_EGREP_found && break 3
3314 done
8a2fc586 3315done
d0191583 3316
8a2fc586 3317done
7a197a62 3318IFS=$as_save_IFS
8a2fc586 3319
7a197a62 3320
d0191583 3321fi
ad6254c5 3322
d0191583
JM
3323EGREP="$ac_cv_path_EGREP"
3324if test -z "$EGREP"; then
3325 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3326echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3327 { (exit 1); exit 1; }; }
3328fi
ad6254c5 3329
d0191583
JM
3330else
3331 ac_cv_path_EGREP=$EGREP
3332fi
ad6254c5
AK
3333
3334
d0191583
JM
3335 fi
3336fi
3337{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3338echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3339 EGREP="$ac_cv_path_EGREP"
ad6254c5
AK
3340
3341
d0191583
JM
3342if test $ac_cv_c_compiler_gnu = yes; then
3343 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3344echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
3345if test "${ac_cv_prog_gcc_traditional+set}" = set; then
1995c9ff 3346 echo $ECHO_N "(cached) $ECHO_C" >&6
8106cdd5 3347else
d0191583 3348 ac_pattern="Autoconf.*'x'"
ad6254c5 3349 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3350/* confdefs.h. */
3351_ACEOF
3352cat confdefs.h >>conftest.$ac_ext
3353cat >>conftest.$ac_ext <<_ACEOF
3354/* end confdefs.h. */
d0191583
JM
3355#include <sgtty.h>
3356Autoconf TIOCGETP
ad6254c5 3357_ACEOF
d0191583
JM
3358if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3359 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3360 ac_cv_prog_gcc_traditional=yes
8106cdd5 3361else
d0191583 3362 ac_cv_prog_gcc_traditional=no
80992638 3363fi
d0191583 3364rm -f conftest*
ad6254c5 3365
8106cdd5 3366
d0191583
JM
3367 if test $ac_cv_prog_gcc_traditional = no; then
3368 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3369/* confdefs.h. */
3370_ACEOF
3371cat confdefs.h >>conftest.$ac_ext
3372cat >>conftest.$ac_ext <<_ACEOF
3373/* end confdefs.h. */
d0191583
JM
3374#include <termio.h>
3375Autoconf TCGETA
ad6254c5 3376_ACEOF
d0191583
JM
3377if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3378 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3379 ac_cv_prog_gcc_traditional=yes
7a197a62 3380fi
d0191583 3381rm -f conftest*
795ca3e5 3382
d0191583 3383 fi
795ca3e5 3384fi
d0191583
JM
3385{ echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3386echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
3387 if test $ac_cv_prog_gcc_traditional = yes; then
3388 CC="$CC -traditional"
3389 fi
795ca3e5
AK
3390fi
3391
d0191583
JM
3392# Find a good install program. We prefer a C program (faster),
3393# so one script is as good as another. But avoid the broken or
3394# incompatible versions:
3395# SysV /etc/install, /usr/sbin/install
3396# SunOS /usr/etc/install
3397# IRIX /sbin/install
3398# AIX /bin/install
3399# AmigaOS /C/install, which installs bootblocks on floppy discs
3400# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3401# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3402# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3403# OS/2's system install, which has a completely different semantic
3404# ./install, which can be erroneously created by make from ./install.sh.
3405{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3406echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3407if test -z "$INSTALL"; then
3408if test "${ac_cv_path_install+set}" = set; then
1995c9ff 3409 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 3410else
d0191583
JM
3411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3412for as_dir in $PATH
3413do
3414 IFS=$as_save_IFS
3415 test -z "$as_dir" && as_dir=.
3416 # Account for people who put trailing slashes in PATH elements.
3417case $as_dir/ in
3418 ./ | .// | /cC/* | \
3419 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3420 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3421 /usr/ucb/* ) ;;
3422 *)
3423 # OSF1 and SCO ODT 3.0 have their own names for install.
3424 # Don't use installbsd from OSF since it installs stuff as root
3425 # by default.
3426 for ac_prog in ginstall scoinst install; do
3427 for ac_exec_ext in '' $ac_executable_extensions; do
3428 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3429 if test $ac_prog = install &&
3430 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3431 # AIX install. It has an incompatible calling convention.
3432 :
3433 elif test $ac_prog = install &&
3434 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3435 # program-specific install script used by HP pwplus--don't use.
3436 :
3437 else
3438 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3439 break 3
3440 fi
3441 fi
3442 done
3443 done
3444 ;;
3445esac
3446done
3447IFS=$as_save_IFS
80992638 3448
d0191583
JM
3449
3450fi
3451 if test "${ac_cv_path_install+set}" = set; then
3452 INSTALL=$ac_cv_path_install
7a197a62 3453 else
d0191583
JM
3454 # As a last resort, use the slow shell script. Don't cache a
3455 # value for INSTALL within a source directory, because that will
3456 # break other packages using the cache if that directory is
3457 # removed, or if the value is a relative name.
3458 INSTALL=$ac_install_sh
7a197a62 3459 fi
d0191583
JM
3460fi
3461{ echo "$as_me:$LINENO: result: $INSTALL" >&5
3462echo "${ECHO_T}$INSTALL" >&6; }
ad6254c5 3463
d0191583
JM
3464# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3465# It thinks the first close brace ends the variable substitution.
3466test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
ad6254c5 3467
d0191583 3468test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
80992638 3469
d0191583
JM
3470test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3471
3472{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
3473echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
3474LN_S=$as_ln_s
3475if test "$LN_S" = "ln -s"; then
3476 { echo "$as_me:$LINENO: result: yes" >&5
3477echo "${ECHO_T}yes" >&6; }
3478else
3479 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3480echo "${ECHO_T}no, using $LN_S" >&6; }
795ca3e5 3481fi
d0191583
JM
3482
3483{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3484echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
3485set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3486if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3487 echo $ECHO_N "(cached) $ECHO_C" >&6
7a197a62 3488else
d0191583
JM
3489 cat >conftest.make <<\_ACEOF
3490SHELL = /bin/sh
3491all:
3492 @echo '@@@%%%=$(MAKE)=@@@%%%'
3493_ACEOF
3494# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3495case `${MAKE-make} -f conftest.make 2>/dev/null` in
3496 *@@@%%%=?*=@@@%%%*)
3497 eval ac_cv_prog_make_${ac_make}_set=yes;;
3498 *)
3499 eval ac_cv_prog_make_${ac_make}_set=no;;
3500esac
3501rm -f conftest.make
ad6254c5 3502fi
d0191583
JM
3503if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3504 { echo "$as_me:$LINENO: result: yes" >&5
3505echo "${ECHO_T}yes" >&6; }
3506 SET_MAKE=
3507else
3508 { echo "$as_me:$LINENO: result: no" >&5
3509echo "${ECHO_T}no" >&6; }
3510 SET_MAKE="MAKE=${MAKE-make}"
795ca3e5 3511fi
8106cdd5 3512
d0191583
JM
3513if test -n "$ac_tool_prefix"; then
3514 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3515set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3516{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3517echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3518if test "${ac_cv_prog_RANLIB+set}" = set; then
3519 echo $ECHO_N "(cached) $ECHO_C" >&6
3520else
3521 if test -n "$RANLIB"; then
3522 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3523else
3524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3525for as_dir in $PATH
3526do
3527 IFS=$as_save_IFS
3528 test -z "$as_dir" && as_dir=.
3529 for ac_exec_ext in '' $ac_executable_extensions; do
3530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3531 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3533 break 2
3534 fi
3535done
3536done
3537IFS=$as_save_IFS
8106cdd5 3538
795ca3e5 3539fi
d0191583
JM
3540fi
3541RANLIB=$ac_cv_prog_RANLIB
3542if test -n "$RANLIB"; then
3543 { echo "$as_me:$LINENO: result: $RANLIB" >&5
3544echo "${ECHO_T}$RANLIB" >&6; }
3545else
3546 { echo "$as_me:$LINENO: result: no" >&5
3547echo "${ECHO_T}no" >&6; }
3548fi
3549
8106cdd5 3550
ad6254c5 3551fi
d0191583
JM
3552if test -z "$ac_cv_prog_RANLIB"; then
3553 ac_ct_RANLIB=$RANLIB
3554 # Extract the first word of "ranlib", so it can be a program name with args.
3555set dummy ranlib; ac_word=$2
3556{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3557echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3558if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
1995c9ff 3559 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 3560else
d0191583
JM
3561 if test -n "$ac_ct_RANLIB"; then
3562 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3563else
3564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3565for as_dir in $PATH
8106cdd5 3566do
d0191583
JM
3567 IFS=$as_save_IFS
3568 test -z "$as_dir" && as_dir=.
3569 for ac_exec_ext in '' $ac_executable_extensions; do
3570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3571 ac_cv_prog_ac_ct_RANLIB="ranlib"
3572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3573 break 2
3574 fi
3575done
3576done
3577IFS=$as_save_IFS
3578
3579fi
3580fi
3581ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3582if test -n "$ac_ct_RANLIB"; then
3583 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3584echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
ad6254c5 3585else
d0191583
JM
3586 { echo "$as_me:$LINENO: result: no" >&5
3587echo "${ECHO_T}no" >&6; }
3588fi
ad6254c5 3589
d0191583
JM
3590 if test "x$ac_ct_RANLIB" = x; then
3591 RANLIB=":"
3592 else
3593 case $cross_compiling:$ac_tool_warned in
3594yes:)
3595{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3596whose name does not start with the host triplet. If you think this
3597configuration is useful to you, please write to autoconf@gnu.org." >&5
3598echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3599whose name does not start with the host triplet. If you think this
3600configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3601ac_tool_warned=yes ;;
3602esac
3603 RANLIB=$ac_ct_RANLIB
3604 fi
3605else
3606 RANLIB="$ac_cv_prog_RANLIB"
ad6254c5 3607fi
7a197a62 3608
d0191583
JM
3609# Extract the first word of "cflow", so it can be a program name with args.
3610set dummy cflow; ac_word=$2
3611{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3612echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3613if test "${ac_cv_path_CFLOW_CMD+set}" = set; then
3614 echo $ECHO_N "(cached) $ECHO_C" >&6
3615else
3616 case $CFLOW_CMD in
3617 [\\/]* | ?:[\\/]*)
3618 ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path.
3619 ;;
3620 *)
3621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3622for as_dir in $PATH
3623do
3624 IFS=$as_save_IFS
3625 test -z "$as_dir" && as_dir=.
3626 for ac_exec_ext in '' $ac_executable_extensions; do
3627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3628 ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext"
3629 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3630 break 2
3631 fi
3632done
3633done
3634IFS=$as_save_IFS
ad6254c5 3635
d0191583 3636 ;;
7a197a62 3637esac
d0191583
JM
3638fi
3639CFLOW_CMD=$ac_cv_path_CFLOW_CMD
3640if test -n "$CFLOW_CMD"; then
3641 { echo "$as_me:$LINENO: result: $CFLOW_CMD" >&5
3642echo "${ECHO_T}$CFLOW_CMD" >&6; }
80992638 3643else
d0191583
JM
3644 { echo "$as_me:$LINENO: result: no" >&5
3645echo "${ECHO_T}no" >&6; }
795ca3e5 3646fi
7a197a62 3647
ad6254c5 3648
d0191583
JM
3649# Extract the first word of "cscope", so it can be a program name with args.
3650set dummy cscope; ac_word=$2
3651{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3652echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3653if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then
3654 echo $ECHO_N "(cached) $ECHO_C" >&6
3655else
3656 case $CSCOPE_CMD in
3657 [\\/]* | ?:[\\/]*)
3658 ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path.
3659 ;;
3660 *)
3661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3662for as_dir in $PATH
3663do
3664 IFS=$as_save_IFS
3665 test -z "$as_dir" && as_dir=.
3666 for ac_exec_ext in '' $ac_executable_extensions; do
3667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3668 ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext"
3669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3670 break 2
3671 fi
795ca3e5 3672done
d0191583
JM
3673done
3674IFS=$as_save_IFS
795ca3e5 3675
d0191583
JM
3676 ;;
3677esac
ad6254c5 3678fi
d0191583
JM
3679CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD
3680if test -n "$CSCOPE_CMD"; then
3681 { echo "$as_me:$LINENO: result: $CSCOPE_CMD" >&5
3682echo "${ECHO_T}$CSCOPE_CMD" >&6; }
795ca3e5 3683else
d0191583
JM
3684 { echo "$as_me:$LINENO: result: no" >&5
3685echo "${ECHO_T}no" >&6; }
795ca3e5 3686fi
ad6254c5 3687
7a197a62 3688
ad6254c5 3689
d0191583
JM
3690################################################################################
3691
3692
3693
3694
3695
3696ac_header_dirent=no
3697for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
3698 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
3699{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
3700echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
3701if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3702 echo $ECHO_N "(cached) $ECHO_C" >&6
3703else
ad6254c5 3704 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3705/* confdefs.h. */
3706_ACEOF
3707cat confdefs.h >>conftest.$ac_ext
3708cat >>conftest.$ac_ext <<_ACEOF
3709/* end confdefs.h. */
d0191583
JM
3710#include <sys/types.h>
3711#include <$ac_hdr>
3712
3713int
3714main ()
3715{
3716if ((DIR *) 0)
3717return 0;
3718 ;
3719 return 0;
3720}
ad6254c5 3721_ACEOF
d0191583
JM
3722rm -f conftest.$ac_objext
3723if { (ac_try="$ac_compile"
7a197a62
AK
3724case "(($ac_try" in
3725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3726 *) ac_try_echo=$ac_try;;
3727esac
1995c9ff 3728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
d0191583 3729 (eval "$ac_compile") 2>conftest.er1
ad6254c5
AK
3730 ac_status=$?
3731 grep -v '^ *+' conftest.er1 >conftest.err
3732 rm -f conftest.er1
3733 cat conftest.err >&5
1995c9ff 3734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3735 (exit $ac_status); } && {
3736 test -z "$ac_c_werror_flag" ||
25fbec5b 3737 test ! -s conftest.err
d0191583
JM
3738 } && test -s conftest.$ac_objext; then
3739 eval "$as_ac_Header=yes"
ad6254c5 3740else
1995c9ff 3741 echo "$as_me: failed program was:" >&5
ad6254c5 3742sed 's/^/| /' conftest.$ac_ext >&5
8106cdd5 3743
d0191583 3744 eval "$as_ac_Header=no"
795ca3e5 3745fi
7a197a62 3746
d0191583 3747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
795ca3e5 3748fi
d0191583
JM
3749ac_res=`eval echo '${'$as_ac_Header'}'`
3750 { echo "$as_me:$LINENO: result: $ac_res" >&5
3751echo "${ECHO_T}$ac_res" >&6; }
3752if test `eval echo '${'$as_ac_Header'}'` = yes; then
3753 cat >>confdefs.h <<_ACEOF
3754#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
3755_ACEOF
795ca3e5 3756
d0191583
JM
3757ac_header_dirent=$ac_hdr; break
3758fi
ad6254c5 3759
d0191583
JM
3760done
3761# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3762if test $ac_header_dirent = dirent.h; then
3763 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
3764echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
3765if test "${ac_cv_search_opendir+set}" = set; then
1995c9ff 3766 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 3767else
d0191583
JM
3768 ac_func_search_save_LIBS=$LIBS
3769cat >conftest.$ac_ext <<_ACEOF
3770/* confdefs.h. */
3771_ACEOF
3772cat confdefs.h >>conftest.$ac_ext
3773cat >>conftest.$ac_ext <<_ACEOF
3774/* end confdefs.h. */
ad6254c5 3775
d0191583
JM
3776/* Override any GCC internal prototype to avoid an error.
3777 Use char because int might match the return type of a GCC
3778 builtin and then its argument prototype would still apply. */
3779#ifdef __cplusplus
3780extern "C"
3781#endif
3782char opendir ();
3783int
3784main ()
3785{
3786return opendir ();
3787 ;
3788 return 0;
3789}
3790_ACEOF
3791for ac_lib in '' dir; do
3792 if test -z "$ac_lib"; then
3793 ac_res="none required"
3794 else
3795 ac_res=-l$ac_lib
3796 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3797 fi
3798 rm -f conftest.$ac_objext conftest$ac_exeext
3799if { (ac_try="$ac_link"
3800case "(($ac_try" in
3801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3802 *) ac_try_echo=$ac_try;;
3803esac
3804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3805 (eval "$ac_link") 2>conftest.er1
3806 ac_status=$?
3807 grep -v '^ *+' conftest.er1 >conftest.err
3808 rm -f conftest.er1
3809 cat conftest.err >&5
3810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3811 (exit $ac_status); } && {
3812 test -z "$ac_c_werror_flag" ||
3813 test ! -s conftest.err
3814 } && test -s conftest$ac_exeext &&
3815 $as_test_x conftest$ac_exeext; then
3816 ac_cv_search_opendir=$ac_res
3817else
3818 echo "$as_me: failed program was:" >&5
3819sed 's/^/| /' conftest.$ac_ext >&5
ad6254c5 3820
ad6254c5 3821
795ca3e5 3822fi
ad6254c5 3823
d0191583
JM
3824rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3825 conftest$ac_exeext
3826 if test "${ac_cv_search_opendir+set}" = set; then
3827 break
7a197a62 3828fi
d0191583
JM
3829done
3830if test "${ac_cv_search_opendir+set}" = set; then
3831 :
7a197a62 3832else
d0191583 3833 ac_cv_search_opendir=no
7a197a62 3834fi
d0191583
JM
3835rm conftest.$ac_ext
3836LIBS=$ac_func_search_save_LIBS
7a197a62 3837fi
d0191583
JM
3838{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3839echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
3840ac_res=$ac_cv_search_opendir
3841if test "$ac_res" != no; then
3842 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7a197a62 3843
d0191583 3844fi
7a197a62 3845
7a197a62 3846else
d0191583
JM
3847 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
3848echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
3849if test "${ac_cv_search_opendir+set}" = set; then
1995c9ff 3850 echo $ECHO_N "(cached) $ECHO_C" >&6
7a197a62 3851else
d0191583
JM
3852 ac_func_search_save_LIBS=$LIBS
3853cat >conftest.$ac_ext <<_ACEOF
3854/* confdefs.h. */
3855_ACEOF
3856cat confdefs.h >>conftest.$ac_ext
3857cat >>conftest.$ac_ext <<_ACEOF
3858/* end confdefs.h. */
7a197a62 3859
d0191583
JM
3860/* Override any GCC internal prototype to avoid an error.
3861 Use char because int might match the return type of a GCC
3862 builtin and then its argument prototype would still apply. */
3863#ifdef __cplusplus
3864extern "C"
3865#endif
3866char opendir ();
3867int
3868main ()
3869{
3870return opendir ();
3871 ;
3872 return 0;
3873}
3874_ACEOF
3875for ac_lib in '' x; do
3876 if test -z "$ac_lib"; then
3877 ac_res="none required"
3878 else
3879 ac_res=-l$ac_lib
3880 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3881 fi
3882 rm -f conftest.$ac_objext conftest$ac_exeext
3883if { (ac_try="$ac_link"
3884case "(($ac_try" in
3885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3886 *) ac_try_echo=$ac_try;;
3887esac
3888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3889 (eval "$ac_link") 2>conftest.er1
3890 ac_status=$?
3891 grep -v '^ *+' conftest.er1 >conftest.err
3892 rm -f conftest.er1
3893 cat conftest.err >&5
3894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3895 (exit $ac_status); } && {
3896 test -z "$ac_c_werror_flag" ||
3897 test ! -s conftest.err
3898 } && test -s conftest$ac_exeext &&
3899 $as_test_x conftest$ac_exeext; then
3900 ac_cv_search_opendir=$ac_res
3901else
3902 echo "$as_me: failed program was:" >&5
3903sed 's/^/| /' conftest.$ac_ext >&5
7a197a62
AK
3904
3905
3906fi
3907
d0191583
JM
3908rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3909 conftest$ac_exeext
3910 if test "${ac_cv_search_opendir+set}" = set; then
3911 break
7a197a62 3912fi
d0191583
JM
3913done
3914if test "${ac_cv_search_opendir+set}" = set; then
3915 :
7a197a62 3916else
d0191583 3917 ac_cv_search_opendir=no
7a197a62 3918fi
d0191583
JM
3919rm conftest.$ac_ext
3920LIBS=$ac_func_search_save_LIBS
3921fi
3922{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3923echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
3924ac_res=$ac_cv_search_opendir
3925if test "$ac_res" != no; then
3926 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7a197a62 3927
7a197a62 3928fi
7a197a62 3929
d0191583 3930fi
7a197a62 3931
1995c9ff
AK
3932{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3933echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7a197a62 3934if test "${ac_cv_header_stdc+set}" = set; then
1995c9ff 3935 echo $ECHO_N "(cached) $ECHO_C" >&6
7a197a62
AK
3936else
3937 cat >conftest.$ac_ext <<_ACEOF
3938/* confdefs.h. */
3939_ACEOF
3940cat confdefs.h >>conftest.$ac_ext
3941cat >>conftest.$ac_ext <<_ACEOF
3942/* end confdefs.h. */
3943#include <stdlib.h>
3944#include <stdarg.h>
3945#include <string.h>
3946#include <float.h>
3947
3948int
3949main ()
3950{
3951
3952 ;
3953 return 0;
3954}
3955_ACEOF
3956rm -f conftest.$ac_objext
3957if { (ac_try="$ac_compile"
3958case "(($ac_try" in
3959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3960 *) ac_try_echo=$ac_try;;
3961esac
1995c9ff 3962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62
AK
3963 (eval "$ac_compile") 2>conftest.er1
3964 ac_status=$?
3965 grep -v '^ *+' conftest.er1 >conftest.err
3966 rm -f conftest.er1
3967 cat conftest.err >&5
1995c9ff 3968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
3969 (exit $ac_status); } && {
3970 test -z "$ac_c_werror_flag" ||
3971 test ! -s conftest.err
3972 } && test -s conftest.$ac_objext; then
7a197a62
AK
3973 ac_cv_header_stdc=yes
3974else
1995c9ff 3975 echo "$as_me: failed program was:" >&5
7a197a62
AK
3976sed 's/^/| /' conftest.$ac_ext >&5
3977
3978 ac_cv_header_stdc=no
3979fi
3980
3981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3982
3983if test $ac_cv_header_stdc = yes; then
3984 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
ad6254c5 3985 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3986/* confdefs.h. */
3987_ACEOF
3988cat confdefs.h >>conftest.$ac_ext
3989cat >>conftest.$ac_ext <<_ACEOF
3990/* end confdefs.h. */
3991#include <string.h>
8106cdd5 3992
ad6254c5
AK
3993_ACEOF
3994if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3995 $EGREP "memchr" >/dev/null 2>&1; then
3996 :
3997else
3998 ac_cv_header_stdc=no
80992638 3999fi
ad6254c5 4000rm -f conftest*
795ca3e5
AK
4001
4002fi
4003
ad6254c5
AK
4004if test $ac_cv_header_stdc = yes; then
4005 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4006 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4007/* confdefs.h. */
4008_ACEOF
4009cat confdefs.h >>conftest.$ac_ext
4010cat >>conftest.$ac_ext <<_ACEOF
4011/* end confdefs.h. */
80992638 4012#include <stdlib.h>
ad6254c5
AK
4013
4014_ACEOF
80992638 4015if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ad6254c5
AK
4016 $EGREP "free" >/dev/null 2>&1; then
4017 :
795ca3e5 4018else
ad6254c5 4019 ac_cv_header_stdc=no
795ca3e5 4020fi
80992638 4021rm -f conftest*
8106cdd5 4022
795ca3e5
AK
4023fi
4024
ad6254c5
AK
4025if test $ac_cv_header_stdc = yes; then
4026 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4027 if test "$cross_compiling" = yes; then
4028 :
795ca3e5 4029else
ad6254c5 4030 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4031/* confdefs.h. */
4032_ACEOF
4033cat confdefs.h >>conftest.$ac_ext
4034cat >>conftest.$ac_ext <<_ACEOF
4035/* end confdefs.h. */
4036#include <ctype.h>
7a197a62 4037#include <stdlib.h>
ad6254c5
AK
4038#if ((' ' & 0x0FF) == 0x020)
4039# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4040# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4041#else
4042# define ISLOWER(c) \
8a2fc586
AK
4043 (('a' <= (c) && (c) <= 'i') \
4044 || ('j' <= (c) && (c) <= 'r') \
4045 || ('s' <= (c) && (c) <= 'z'))
ad6254c5 4046# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
80992638 4047#endif
ad6254c5
AK
4048
4049#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4050int
4051main ()
4052{
4053 int i;
4054 for (i = 0; i < 256; i++)
4055 if (XOR (islower (i), ISLOWER (i))
8a2fc586 4056 || toupper (i) != TOUPPER (i))
7a197a62
AK
4057 return 2;
4058 return 0;
ad6254c5
AK
4059}
4060_ACEOF
4061rm -f conftest$ac_exeext
7a197a62
AK
4062if { (ac_try="$ac_link"
4063case "(($ac_try" in
4064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4065 *) ac_try_echo=$ac_try;;
4066esac
1995c9ff 4067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 4068 (eval "$ac_link") 2>&5
ad6254c5 4069 ac_status=$?
1995c9ff 4070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 4071 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
4072 { (case "(($ac_try" in
4073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4074 *) ac_try_echo=$ac_try;;
4075esac
1995c9ff 4076eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 4077 (eval "$ac_try") 2>&5
ad6254c5 4078 ac_status=$?
1995c9ff 4079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
4080 (exit $ac_status); }; }; then
4081 :
795ca3e5 4082else
1995c9ff
AK
4083 echo "$as_me: program exited with status $ac_status" >&5
4084echo "$as_me: failed program was:" >&5
ad6254c5 4085sed 's/^/| /' conftest.$ac_ext >&5
8106cdd5 4086
ad6254c5
AK
4087( exit $ac_status )
4088ac_cv_header_stdc=no
80992638 4089fi
7a197a62 4090rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 4091fi
7a197a62
AK
4092
4093
ad6254c5
AK
4094fi
4095fi
1995c9ff
AK
4096{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4097echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
ad6254c5
AK
4098if test $ac_cv_header_stdc = yes; then
4099
4100cat >>confdefs.h <<\_ACEOF
4101#define STDC_HEADERS 1
4102_ACEOF
795ca3e5
AK
4103
4104fi
4105
1995c9ff
AK
4106{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
4107echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
ad6254c5 4108if test "${ac_cv_header_sys_wait_h+set}" = set; then
1995c9ff 4109 echo $ECHO_N "(cached) $ECHO_C" >&6
8106cdd5 4110else
ad6254c5 4111 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4112/* confdefs.h. */
4113_ACEOF
4114cat confdefs.h >>conftest.$ac_ext
4115cat >>conftest.$ac_ext <<_ACEOF
4116/* end confdefs.h. */
80992638 4117#include <sys/types.h>
ad6254c5
AK
4118#include <sys/wait.h>
4119#ifndef WEXITSTATUS
7a197a62 4120# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
ad6254c5
AK
4121#endif
4122#ifndef WIFEXITED
4123# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4124#endif
4125
4126int
4127main ()
4128{
4129 int s;
4130 wait (&s);
4131 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4132 ;
4133 return 0;
4134}
4135_ACEOF
4136rm -f conftest.$ac_objext
7a197a62
AK
4137if { (ac_try="$ac_compile"
4138case "(($ac_try" in
4139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4140 *) ac_try_echo=$ac_try;;
4141esac
1995c9ff 4142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 4143 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4144 ac_status=$?
8a2fc586
AK
4145 grep -v '^ *+' conftest.er1 >conftest.err
4146 rm -f conftest.er1
4147 cat conftest.err >&5
1995c9ff 4148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4149 (exit $ac_status); } && {
4150 test -z "$ac_c_werror_flag" ||
4151 test ! -s conftest.err
4152 } && test -s conftest.$ac_objext; then
ad6254c5
AK
4153 ac_cv_header_sys_wait_h=yes
4154else
1995c9ff 4155 echo "$as_me: failed program was:" >&5
ad6254c5
AK
4156sed 's/^/| /' conftest.$ac_ext >&5
4157
7a197a62 4158 ac_cv_header_sys_wait_h=no
8106cdd5 4159fi
7a197a62
AK
4160
4161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
795ca3e5 4162fi
1995c9ff
AK
4163{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
4164echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
ad6254c5 4165if test $ac_cv_header_sys_wait_h = yes; then
8106cdd5 4166
ad6254c5
AK
4167cat >>confdefs.h <<\_ACEOF
4168#define HAVE_SYS_WAIT_H 1
4169_ACEOF
795ca3e5
AK
4170
4171fi
4172
1995c9ff
AK
4173{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4174echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
ad6254c5 4175if test "${ac_cv_header_time+set}" = set; then
1995c9ff 4176 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 4177else
ad6254c5 4178 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4179/* confdefs.h. */
4180_ACEOF
4181cat confdefs.h >>conftest.$ac_ext
4182cat >>conftest.$ac_ext <<_ACEOF
4183/* end confdefs.h. */
795ca3e5
AK
4184#include <sys/types.h>
4185#include <sys/time.h>
4186#include <time.h>
ad6254c5
AK
4187
4188int
4189main ()
4190{
4191if ((struct tm *) 0)
4192return 0;
4193 ;
4194 return 0;
4195}
4196_ACEOF
4197rm -f conftest.$ac_objext
7a197a62
AK
4198if { (ac_try="$ac_compile"
4199case "(($ac_try" in
4200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4201 *) ac_try_echo=$ac_try;;
4202esac
1995c9ff 4203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 4204 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4205 ac_status=$?
8a2fc586
AK
4206 grep -v '^ *+' conftest.er1 >conftest.err
4207 rm -f conftest.er1
4208 cat conftest.err >&5
1995c9ff 4209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4210 (exit $ac_status); } && {
4211 test -z "$ac_c_werror_flag" ||
4212 test ! -s conftest.err
4213 } && test -s conftest.$ac_objext; then
795ca3e5
AK
4214 ac_cv_header_time=yes
4215else
1995c9ff 4216 echo "$as_me: failed program was:" >&5
ad6254c5
AK
4217sed 's/^/| /' conftest.$ac_ext >&5
4218
7a197a62 4219 ac_cv_header_time=no
795ca3e5 4220fi
7a197a62
AK
4221
4222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
795ca3e5 4223fi
1995c9ff
AK
4224{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4225echo "${ECHO_T}$ac_cv_header_time" >&6; }
80992638 4226if test $ac_cv_header_time = yes; then
ad6254c5
AK
4227
4228cat >>confdefs.h <<\_ACEOF
795ca3e5 4229#define TIME_WITH_SYS_TIME 1
ad6254c5 4230_ACEOF
b896caa1 4231
8106cdd5 4232fi
b896caa1 4233
b896caa1 4234
d0191583
JM
4235# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4246 inttypes.h stdint.h unistd.h
4247do
4248as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4249{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4250echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4251if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4252 echo $ECHO_N "(cached) $ECHO_C" >&6
4253else
4254 cat >conftest.$ac_ext <<_ACEOF
4255/* confdefs.h. */
4256_ACEOF
4257cat confdefs.h >>conftest.$ac_ext
4258cat >>conftest.$ac_ext <<_ACEOF
4259/* end confdefs.h. */
4260$ac_includes_default
4261
4262#include <$ac_header>
4263_ACEOF
4264rm -f conftest.$ac_objext
4265if { (ac_try="$ac_compile"
4266case "(($ac_try" in
4267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4268 *) ac_try_echo=$ac_try;;
4269esac
4270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4271 (eval "$ac_compile") 2>conftest.er1
4272 ac_status=$?
4273 grep -v '^ *+' conftest.er1 >conftest.err
4274 rm -f conftest.er1
4275 cat conftest.err >&5
4276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4277 (exit $ac_status); } && {
4278 test -z "$ac_c_werror_flag" ||
4279 test ! -s conftest.err
4280 } && test -s conftest.$ac_objext; then
4281 eval "$as_ac_Header=yes"
4282else
4283 echo "$as_me: failed program was:" >&5
4284sed 's/^/| /' conftest.$ac_ext >&5
4285
4286 eval "$as_ac_Header=no"
4287fi
4288
4289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4290fi
4291ac_res=`eval echo '${'$as_ac_Header'}'`
4292 { echo "$as_me:$LINENO: result: $ac_res" >&5
4293echo "${ECHO_T}$ac_res" >&6; }
4294if test `eval echo '${'$as_ac_Header'}'` = yes; then
4295 cat >>confdefs.h <<_ACEOF
4296#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4297_ACEOF
4298
4299fi
4300
4301done
4302
b896caa1 4303
b896caa1
AK
4304
4305
795ca3e5 4306
8106cdd5 4307
80992638 4308
795ca3e5 4309
a38df97f 4310
80992638 4311
d0191583
JM
4312
4313
4314
4315
4316
4317for ac_header in locale.h stddef.h syslog.h sys/file.h sys/time.h assert.h \
4318 libgen.h signal.h sys/mman.h sys/resource.h sys/utsname.h sys/wait.h time.h
ad6254c5 4319do
1995c9ff 4320as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
d0191583
JM
4321if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4322 { echo "$as_me:$LINENO: checking for $ac_header" >&5
1995c9ff 4323echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 4324if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff 4325 echo $ECHO_N "(cached) $ECHO_C" >&6
d0191583
JM
4326fi
4327ac_res=`eval echo '${'$as_ac_Header'}'`
4328 { echo "$as_me:$LINENO: result: $ac_res" >&5
4329echo "${ECHO_T}$ac_res" >&6; }
ad6254c5 4330else
d0191583
JM
4331 # Is the header compilable?
4332{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
4333echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4334cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4335/* confdefs.h. */
4336_ACEOF
4337cat confdefs.h >>conftest.$ac_ext
4338cat >>conftest.$ac_ext <<_ACEOF
4339/* end confdefs.h. */
4340$ac_includes_default
ad6254c5
AK
4341#include <$ac_header>
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
1995c9ff 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
1995c9ff 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
d0191583 4360 ac_header_compiler=yes
ad6254c5 4361else
1995c9ff 4362 echo "$as_me: failed program was:" >&5
ad6254c5 4363sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 4364
d0191583 4365 ac_header_compiler=no
ad6254c5 4366fi
7a197a62
AK
4367
4368rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d0191583
JM
4369{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4370echo "${ECHO_T}$ac_header_compiler" >&6; }
4371
4372# Is the header present?
4373{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
4374echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4375cat >conftest.$ac_ext <<_ACEOF
4376/* confdefs.h. */
4377_ACEOF
4378cat confdefs.h >>conftest.$ac_ext
4379cat >>conftest.$ac_ext <<_ACEOF
4380/* end confdefs.h. */
4381#include <$ac_header>
4382_ACEOF
4383if { (ac_try="$ac_cpp conftest.$ac_ext"
4384case "(($ac_try" in
4385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4386 *) ac_try_echo=$ac_try;;
4387esac
4388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4389 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4390 ac_status=$?
4391 grep -v '^ *+' conftest.er1 >conftest.err
4392 rm -f conftest.er1
4393 cat conftest.err >&5
4394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4395 (exit $ac_status); } >/dev/null && {
4396 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4397 test ! -s conftest.err
4398 }; then
4399 ac_header_preproc=yes
4400else
4401 echo "$as_me: failed program was:" >&5
4402sed 's/^/| /' conftest.$ac_ext >&5
4403
4404 ac_header_preproc=no
4405fi
4406
4407rm -f conftest.err conftest.$ac_ext
4408{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4409echo "${ECHO_T}$ac_header_preproc" >&6; }
4410
4411# So? What about this header?
4412case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4413 yes:no: )
4414 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4415echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4416 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4417echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4418 ac_header_preproc=yes
4419 ;;
4420 no:yes:* )
4421 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4422echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4423 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4424echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4425 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4426echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4427 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4428echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4429 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4430echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4431 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4432echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4433
4434 ;;
4435esac
4436{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4437echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4438if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4439 echo $ECHO_N "(cached) $ECHO_C" >&6
4440else
4441 eval "$as_ac_Header=\$ac_header_preproc"
a38df97f 4442fi
1995c9ff
AK
4443ac_res=`eval echo '${'$as_ac_Header'}'`
4444 { echo "$as_me:$LINENO: result: $ac_res" >&5
4445echo "${ECHO_T}$ac_res" >&6; }
d0191583
JM
4446
4447fi
1995c9ff 4448if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 4449 cat >>confdefs.h <<_ACEOF
1995c9ff 4450#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 4451_ACEOF
a38df97f 4452
d0191583
JM
4453else
4454 { { echo "$as_me:$LINENO: error: bailing out" >&5
4455echo "$as_me: error: bailing out" >&2;}
4456 { (exit 1); exit 1; }; }
80992638
AK
4457fi
4458
ad6254c5
AK
4459done
4460
7d1552c9 4461
d0191583
JM
4462case "$host_os" in
4463 linux*)
7d1552c9 4464
80992638 4465
5a52dca9 4466
d0191583 4467for ac_header in asm/byteorder.h linux/fs.h malloc.h
ad6254c5 4468do
1995c9ff 4469as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 4470if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff
AK
4471 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4472echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 4473if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff 4474 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 4475fi
1995c9ff
AK
4476ac_res=`eval echo '${'$as_ac_Header'}'`
4477 { echo "$as_me:$LINENO: result: $ac_res" >&5
4478echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
4479else
4480 # Is the header compilable?
1995c9ff
AK
4481{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
4482echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 4483cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4484/* confdefs.h. */
4485_ACEOF
4486cat confdefs.h >>conftest.$ac_ext
4487cat >>conftest.$ac_ext <<_ACEOF
4488/* end confdefs.h. */
4489$ac_includes_default
4490#include <$ac_header>
4491_ACEOF
4492rm -f conftest.$ac_objext
7a197a62
AK
4493if { (ac_try="$ac_compile"
4494case "(($ac_try" in
4495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4496 *) ac_try_echo=$ac_try;;
4497esac
1995c9ff 4498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 4499 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4500 ac_status=$?
8a2fc586
AK
4501 grep -v '^ *+' conftest.er1 >conftest.err
4502 rm -f conftest.er1
4503 cat conftest.err >&5
1995c9ff 4504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4505 (exit $ac_status); } && {
4506 test -z "$ac_c_werror_flag" ||
4507 test ! -s conftest.err
4508 } && test -s conftest.$ac_objext; then
fc54be10
AK
4509 ac_header_compiler=yes
4510else
4511 echo "$as_me: failed program was:" >&5
4512sed 's/^/| /' conftest.$ac_ext >&5
4513
4514 ac_header_compiler=no
4515fi
4516
4517rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1995c9ff
AK
4518{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4519echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
4520
4521# Is the header present?
1995c9ff
AK
4522{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
4523echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 4524cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4525/* confdefs.h. */
4526_ACEOF
4527cat confdefs.h >>conftest.$ac_ext
4528cat >>conftest.$ac_ext <<_ACEOF
4529/* end confdefs.h. */
4530#include <$ac_header>
4531_ACEOF
7a197a62
AK
4532if { (ac_try="$ac_cpp conftest.$ac_ext"
4533case "(($ac_try" in
4534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4535 *) ac_try_echo=$ac_try;;
4536esac
1995c9ff 4537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 4538 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
4539 ac_status=$?
4540 grep -v '^ *+' conftest.er1 >conftest.err
4541 rm -f conftest.er1
4542 cat conftest.err >&5
1995c9ff 4543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4544 (exit $ac_status); } >/dev/null && {
4545 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4546 test ! -s conftest.err
4547 }; then
ad6254c5
AK
4548 ac_header_preproc=yes
4549else
1995c9ff 4550 echo "$as_me: failed program was:" >&5
ad6254c5
AK
4551sed 's/^/| /' conftest.$ac_ext >&5
4552
4553 ac_header_preproc=no
4554fi
7a197a62 4555
ad6254c5 4556rm -f conftest.err conftest.$ac_ext
1995c9ff
AK
4557{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4558echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
4559
4560# So? What about this header?
8a2fc586
AK
4561case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4562 yes:no: )
1995c9ff
AK
4563 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4564echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4565 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4566echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 4567 ac_header_preproc=yes
ad6254c5 4568 ;;
8a2fc586 4569 no:yes:* )
1995c9ff
AK
4570 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4571echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4572 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4573echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4574 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4575echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4576 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4577echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4578 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4579echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4580 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4581echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 4582
ad6254c5
AK
4583 ;;
4584esac
1995c9ff
AK
4585{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4586echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 4587if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff 4588 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 4589else
8a2fc586 4590 eval "$as_ac_Header=\$ac_header_preproc"
b896caa1 4591fi
1995c9ff
AK
4592ac_res=`eval echo '${'$as_ac_Header'}'`
4593 { echo "$as_me:$LINENO: result: $ac_res" >&5
4594echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
4595
4596fi
1995c9ff 4597if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 4598 cat >>confdefs.h <<_ACEOF
1995c9ff 4599#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 4600_ACEOF
b896caa1 4601
d8ac0fbc 4602else
1995c9ff
AK
4603 { { echo "$as_me:$LINENO: error: bailing out" >&5
4604echo "$as_me: error: bailing out" >&2;}
ad6254c5 4605 { (exit 1); exit 1; }; }
80992638
AK
4606fi
4607
ad6254c5 4608done
d0191583
JM
4609 ;;
4610 darwin*)
d8ac0fbc 4611
d8ac0fbc 4612
d0191583 4613for ac_header in machine/endian.h sys/disk.h
ad6254c5 4614do
1995c9ff 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
1995c9ff
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
1995c9ff 4620 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 4621fi
1995c9ff
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?
1995c9ff
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
1995c9ff 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
1995c9ff 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
ad6254c5
AK
4655 ac_header_compiler=yes
4656else
1995c9ff 4657 echo "$as_me: failed program was:" >&5
ad6254c5
AK
4658sed 's/^/| /' conftest.$ac_ext >&5
4659
7a197a62 4660 ac_header_compiler=no
ad6254c5 4661fi
7a197a62
AK
4662
4663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1995c9ff
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?
1995c9ff
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
1995c9ff 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
1995c9ff 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
1995c9ff 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
1995c9ff
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: )
1995c9ff
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:* )
1995c9ff
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
1995c9ff
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
1995c9ff 4734 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 4735else
8a2fc586 4736 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 4737fi
1995c9ff
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
1995c9ff 4743if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 4744 cat >>confdefs.h <<_ACEOF
1995c9ff 4745#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 4746_ACEOF
4922197a 4747
4922197a 4748else
1995c9ff
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 ;;
4756esac
4922197a 4757
4922197a 4758
4922197a 4759
ad6254c5
AK
4760
4761
d0191583
JM
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774for ac_header in ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h \
4775 stdarg.h stdio.h stdlib.h string.h sys/ioctl.h sys/param.h sys/stat.h \
4776 sys/types.h unistd.h
ad6254c5 4777do
1995c9ff 4778as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 4779if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff
AK
4780 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4781echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 4782if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff 4783 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 4784fi
1995c9ff
AK
4785ac_res=`eval echo '${'$as_ac_Header'}'`
4786 { echo "$as_me:$LINENO: result: $ac_res" >&5
4787echo "${ECHO_T}$ac_res" >&6; }
795ca3e5 4788else
ad6254c5 4789 # Is the header compilable?
1995c9ff
AK
4790{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
4791echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 4792cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4793/* confdefs.h. */
4794_ACEOF
4795cat confdefs.h >>conftest.$ac_ext
4796cat >>conftest.$ac_ext <<_ACEOF
4797/* end confdefs.h. */
4798$ac_includes_default
4799#include <$ac_header>
4800_ACEOF
4801rm -f conftest.$ac_objext
7a197a62
AK
4802if { (ac_try="$ac_compile"
4803case "(($ac_try" in
4804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4805 *) ac_try_echo=$ac_try;;
4806esac
1995c9ff 4807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 4808 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4809 ac_status=$?
8a2fc586
AK
4810 grep -v '^ *+' conftest.er1 >conftest.err
4811 rm -f conftest.er1
4812 cat conftest.err >&5
1995c9ff 4813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4814 (exit $ac_status); } && {
4815 test -z "$ac_c_werror_flag" ||
4816 test ! -s conftest.err
4817 } && test -s conftest.$ac_objext; then
ad6254c5
AK
4818 ac_header_compiler=yes
4819else
1995c9ff 4820 echo "$as_me: failed program was:" >&5
ad6254c5
AK
4821sed 's/^/| /' conftest.$ac_ext >&5
4822
7a197a62 4823 ac_header_compiler=no
ad6254c5 4824fi
7a197a62
AK
4825
4826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1995c9ff
AK
4827{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4828echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
4829
4830# Is the header present?
1995c9ff
AK
4831{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
4832echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 4833cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4834/* confdefs.h. */
4835_ACEOF
4836cat confdefs.h >>conftest.$ac_ext
4837cat >>conftest.$ac_ext <<_ACEOF
4838/* end confdefs.h. */
4839#include <$ac_header>
4840_ACEOF
7a197a62
AK
4841if { (ac_try="$ac_cpp conftest.$ac_ext"
4842case "(($ac_try" in
4843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4844 *) ac_try_echo=$ac_try;;
4845esac
1995c9ff 4846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 4847 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
4848 ac_status=$?
4849 grep -v '^ *+' conftest.er1 >conftest.err
4850 rm -f conftest.er1
4851 cat conftest.err >&5
1995c9ff 4852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4853 (exit $ac_status); } >/dev/null && {
4854 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4855 test ! -s conftest.err
4856 }; then
ad6254c5
AK
4857 ac_header_preproc=yes
4858else
1995c9ff 4859 echo "$as_me: failed program was:" >&5
ad6254c5
AK
4860sed 's/^/| /' conftest.$ac_ext >&5
4861
4862 ac_header_preproc=no
4863fi
7a197a62 4864
ad6254c5 4865rm -f conftest.err conftest.$ac_ext
1995c9ff
AK
4866{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4867echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
4868
4869# So? What about this header?
8a2fc586
AK
4870case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4871 yes:no: )
1995c9ff
AK
4872 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4873echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4874 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4875echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 4876 ac_header_preproc=yes
ad6254c5 4877 ;;
8a2fc586 4878 no:yes:* )
1995c9ff
AK
4879 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4880echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4881 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4882echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4883 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4884echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4885 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4886echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4887 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4888echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4889 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4890echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 4891
ad6254c5
AK
4892 ;;
4893esac
1995c9ff
AK
4894{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4895echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 4896if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff 4897 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 4898else
8a2fc586 4899 eval "$as_ac_Header=\$ac_header_preproc"
80992638 4900fi
1995c9ff
AK
4901ac_res=`eval echo '${'$as_ac_Header'}'`
4902 { echo "$as_me:$LINENO: result: $ac_res" >&5
4903echo "${ECHO_T}$ac_res" >&6; }
80992638 4904
ad6254c5 4905fi
1995c9ff 4906if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 4907 cat >>confdefs.h <<_ACEOF
1995c9ff 4908#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 4909_ACEOF
795ca3e5 4910
795ca3e5 4911else
1995c9ff
AK
4912 { { echo "$as_me:$LINENO: error: bailing out" >&5
4913echo "$as_me: error: bailing out" >&2;}
ad6254c5 4914 { (exit 1); exit 1; }; }
80992638
AK
4915fi
4916
ad6254c5 4917done
ad6254c5 4918
795ca3e5 4919
d0191583
JM
4920
4921for ac_header in termios.h sys/statvfs.h
ad6254c5 4922do
1995c9ff 4923as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 4924if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff
AK
4925 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4926echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 4927if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff 4928 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 4929fi
1995c9ff
AK
4930ac_res=`eval echo '${'$as_ac_Header'}'`
4931 { echo "$as_me:$LINENO: result: $ac_res" >&5
4932echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
4933else
4934 # Is the header compilable?
1995c9ff
AK
4935{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
4936echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 4937cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4938/* confdefs.h. */
4939_ACEOF
4940cat confdefs.h >>conftest.$ac_ext
4941cat >>conftest.$ac_ext <<_ACEOF
4942/* end confdefs.h. */
4943$ac_includes_default
4944#include <$ac_header>
4945_ACEOF
4946rm -f conftest.$ac_objext
7a197a62
AK
4947if { (ac_try="$ac_compile"
4948case "(($ac_try" in
4949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4950 *) ac_try_echo=$ac_try;;
4951esac
1995c9ff 4952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 4953 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4954 ac_status=$?
8a2fc586
AK
4955 grep -v '^ *+' conftest.er1 >conftest.err
4956 rm -f conftest.er1
4957 cat conftest.err >&5
1995c9ff 4958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4959 (exit $ac_status); } && {
4960 test -z "$ac_c_werror_flag" ||
4961 test ! -s conftest.err
4962 } && test -s conftest.$ac_objext; then
ad6254c5
AK
4963 ac_header_compiler=yes
4964else
1995c9ff 4965 echo "$as_me: failed program was:" >&5
ad6254c5
AK
4966sed 's/^/| /' conftest.$ac_ext >&5
4967
7a197a62 4968 ac_header_compiler=no
ad6254c5 4969fi
7a197a62
AK
4970
4971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1995c9ff
AK
4972{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4973echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
4974
4975# Is the header present?
1995c9ff
AK
4976{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
4977echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 4978cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4979/* confdefs.h. */
4980_ACEOF
4981cat confdefs.h >>conftest.$ac_ext
4982cat >>conftest.$ac_ext <<_ACEOF
4983/* end confdefs.h. */
4984#include <$ac_header>
4985_ACEOF
7a197a62
AK
4986if { (ac_try="$ac_cpp conftest.$ac_ext"
4987case "(($ac_try" in
4988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4989 *) ac_try_echo=$ac_try;;
4990esac
1995c9ff 4991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 4992 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
4993 ac_status=$?
4994 grep -v '^ *+' conftest.er1 >conftest.err
4995 rm -f conftest.er1
4996 cat conftest.err >&5
1995c9ff 4997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4998 (exit $ac_status); } >/dev/null && {
4999 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5000 test ! -s conftest.err
5001 }; then
ad6254c5
AK
5002 ac_header_preproc=yes
5003else
1995c9ff 5004 echo "$as_me: failed program was:" >&5
ad6254c5
AK
5005sed 's/^/| /' conftest.$ac_ext >&5
5006
5007 ac_header_preproc=no
5008fi
7a197a62 5009
ad6254c5 5010rm -f conftest.err conftest.$ac_ext
1995c9ff
AK
5011{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5012echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
5013
5014# So? What about this header?
8a2fc586
AK
5015case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5016 yes:no: )
1995c9ff
AK
5017 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5018echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5019 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5020echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 5021 ac_header_preproc=yes
ad6254c5 5022 ;;
8a2fc586 5023 no:yes:* )
1995c9ff
AK
5024 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5025echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5026 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5027echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5028 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5029echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5030 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5031echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5032 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5033echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5034 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5035echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 5036
ad6254c5
AK
5037 ;;
5038esac
1995c9ff
AK
5039{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5040echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 5041if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff 5042 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 5043else
8a2fc586 5044 eval "$as_ac_Header=\$ac_header_preproc"
b896caa1 5045fi
1995c9ff
AK
5046ac_res=`eval echo '${'$as_ac_Header'}'`
5047 { echo "$as_me:$LINENO: result: $ac_res" >&5
5048echo "${ECHO_T}$ac_res" >&6; }
b896caa1 5049
ad6254c5 5050fi
1995c9ff 5051if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 5052 cat >>confdefs.h <<_ACEOF
1995c9ff 5053#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
5054_ACEOF
5055
80992638
AK
5056fi
5057
ad6254c5 5058done
d0191583 5059
d3c8211f 5060
80992638 5061################################################################################
1995c9ff
AK
5062{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5063echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
ad6254c5 5064if test "${ac_cv_c_const+set}" = set; then
1995c9ff 5065 echo $ECHO_N "(cached) $ECHO_C" >&6
d3c8211f 5066else
ad6254c5 5067 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5068/* confdefs.h. */
5069_ACEOF
5070cat confdefs.h >>conftest.$ac_ext
5071cat >>conftest.$ac_ext <<_ACEOF
5072/* end confdefs.h. */
5073
5074int
5075main ()
5076{
5077/* FIXME: Include the comments suggested by Paul. */
5078#ifndef __cplusplus
5079 /* Ultrix mips cc rejects this. */
5080 typedef int charset[2];
25fbec5b 5081 const charset cs;
ad6254c5 5082 /* SunOS 4.1.1 cc rejects this. */
25fbec5b
AK
5083 char const *const *pcpcc;
5084 char **ppc;
ad6254c5
AK
5085 /* NEC SVR4.0.2 mips cc rejects this. */
5086 struct point {int x, y;};
5087 static struct point const zero = {0,0};
5088 /* AIX XL C 1.02.0.0 rejects this.
5089 It does not let you subtract one const X* pointer from another in
5090 an arm of an if-expression whose if-part is not a constant
5091 expression */
5092 const char *g = "string";
25fbec5b 5093 pcpcc = &g + (g ? g-g : 0);
ad6254c5 5094 /* HPUX 7.0 cc rejects these. */
25fbec5b
AK
5095 ++pcpcc;
5096 ppc = (char**) pcpcc;
5097 pcpcc = (char const *const *) ppc;
ad6254c5
AK
5098 { /* SCO 3.2v4 cc rejects this. */
5099 char *t;
5100 char const *s = 0 ? (char *) 0 : (char const *) 0;
5101
5102 *t++ = 0;
7a197a62 5103 if (s) return 0;
ad6254c5
AK
5104 }
5105 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5106 int x[] = {25, 17};
5107 const int *foo = &x[0];
5108 ++foo;
5109 }
5110 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5111 typedef const int *iptr;
5112 iptr p = 0;
5113 ++p;
5114 }
5115 { /* AIX XL C 1.02.0.0 rejects this saying
5116 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5117 struct s { int j; const int *ap[3]; };
5118 struct s *b; b->j = 5;
5119 }
5120 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5121 const int foo = 10;
7a197a62 5122 if (!foo) return 0;
ad6254c5 5123 }
25fbec5b 5124 return !cs[0] && !zero.x;
ad6254c5
AK
5125#endif
5126
5127 ;
5128 return 0;
5129}
5130_ACEOF
5131rm -f conftest.$ac_objext
7a197a62
AK
5132if { (ac_try="$ac_compile"
5133case "(($ac_try" in
5134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5135 *) ac_try_echo=$ac_try;;
5136esac
1995c9ff 5137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 5138 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5139 ac_status=$?
8a2fc586
AK
5140 grep -v '^ *+' conftest.er1 >conftest.err
5141 rm -f conftest.er1
5142 cat conftest.err >&5
1995c9ff 5143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5144 (exit $ac_status); } && {
5145 test -z "$ac_c_werror_flag" ||
5146 test ! -s conftest.err
5147 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5148 ac_cv_c_const=yes
5149else
1995c9ff 5150 echo "$as_me: failed program was:" >&5
ad6254c5
AK
5151sed 's/^/| /' conftest.$ac_ext >&5
5152
7a197a62 5153 ac_cv_c_const=no
ad6254c5 5154fi
7a197a62
AK
5155
5156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
80992638 5157fi
1995c9ff
AK
5158{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5159echo "${ECHO_T}$ac_cv_c_const" >&6; }
ad6254c5 5160if test $ac_cv_c_const = no; then
80992638 5161
ad6254c5
AK
5162cat >>confdefs.h <<\_ACEOF
5163#define const
5164_ACEOF
80992638 5165
d3c8211f 5166fi
d3c8211f 5167
1995c9ff
AK
5168{ echo "$as_me:$LINENO: checking for inline" >&5
5169echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
ad6254c5 5170if test "${ac_cv_c_inline+set}" = set; then
1995c9ff 5171 echo $ECHO_N "(cached) $ECHO_C" >&6
8ef2b021 5172else
ad6254c5
AK
5173 ac_cv_c_inline=no
5174for ac_kw in inline __inline__ __inline; do
5175 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5176/* confdefs.h. */
5177_ACEOF
5178cat confdefs.h >>conftest.$ac_ext
5179cat >>conftest.$ac_ext <<_ACEOF
5180/* end confdefs.h. */
5181#ifndef __cplusplus
5182typedef int foo_t;
5183static $ac_kw foo_t static_foo () {return 0; }
5184$ac_kw foo_t foo () {return 0; }
5185#endif
80992638 5186
ad6254c5
AK
5187_ACEOF
5188rm -f conftest.$ac_objext
7a197a62
AK
5189if { (ac_try="$ac_compile"
5190case "(($ac_try" in
5191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5192 *) ac_try_echo=$ac_try;;
5193esac
1995c9ff 5194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 5195 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5196 ac_status=$?
8a2fc586
AK
5197 grep -v '^ *+' conftest.er1 >conftest.err
5198 rm -f conftest.er1
5199 cat conftest.err >&5
1995c9ff 5200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5201 (exit $ac_status); } && {
5202 test -z "$ac_c_werror_flag" ||
5203 test ! -s conftest.err
5204 } && test -s conftest.$ac_objext; then
7a197a62 5205 ac_cv_c_inline=$ac_kw
ad6254c5 5206else
1995c9ff 5207 echo "$as_me: failed program was:" >&5
ad6254c5 5208sed 's/^/| /' conftest.$ac_ext >&5
8ef2b021 5209
7a197a62 5210
8ce0cbda 5211fi
7a197a62
AK
5212
5213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5214 test "$ac_cv_c_inline" != no && break
ad6254c5 5215done
8ce0cbda 5216
8ce0cbda 5217fi
1995c9ff
AK
5218{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5219echo "${ECHO_T}$ac_cv_c_inline" >&6; }
8a2fc586
AK
5220
5221
ad6254c5
AK
5222case $ac_cv_c_inline in
5223 inline | yes) ;;
8a2fc586
AK
5224 *)
5225 case $ac_cv_c_inline in
5226 no) ac_val=;;
5227 *) ac_val=$ac_cv_c_inline;;
5228 esac
5229 cat >>confdefs.h <<_ACEOF
5230#ifndef __cplusplus
5231#define inline $ac_val
5232#endif
c1c065a3 5233_ACEOF
d0191583
JM
5234 ;;
5235esac
5236
5237{ echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
5238echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
5239if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
5240 echo $ECHO_N "(cached) $ECHO_C" >&6
5241else
5242 cat >conftest.$ac_ext <<_ACEOF
5243/* confdefs.h. */
5244_ACEOF
5245cat confdefs.h >>conftest.$ac_ext
5246cat >>conftest.$ac_ext <<_ACEOF
5247/* end confdefs.h. */
5248$ac_includes_default
5249int
5250main ()
5251{
5252static struct stat ac_aggr;
5253if (ac_aggr.st_rdev)
5254return 0;
5255 ;
5256 return 0;
5257}
5258_ACEOF
5259rm -f conftest.$ac_objext
5260if { (ac_try="$ac_compile"
5261case "(($ac_try" in
5262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5263 *) ac_try_echo=$ac_try;;
5264esac
5265eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5266 (eval "$ac_compile") 2>conftest.er1
5267 ac_status=$?
5268 grep -v '^ *+' conftest.er1 >conftest.err
5269 rm -f conftest.er1
5270 cat conftest.err >&5
5271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5272 (exit $ac_status); } && {
5273 test -z "$ac_c_werror_flag" ||
5274 test ! -s conftest.err
5275 } && test -s conftest.$ac_objext; then
5276 ac_cv_member_struct_stat_st_rdev=yes
5277else
5278 echo "$as_me: failed program was:" >&5
5279sed 's/^/| /' conftest.$ac_ext >&5
5280
5281 cat >conftest.$ac_ext <<_ACEOF
5282/* confdefs.h. */
5283_ACEOF
5284cat confdefs.h >>conftest.$ac_ext
5285cat >>conftest.$ac_ext <<_ACEOF
5286/* end confdefs.h. */
5287$ac_includes_default
5288int
5289main ()
5290{
5291static struct stat ac_aggr;
5292if (sizeof ac_aggr.st_rdev)
5293return 0;
5294 ;
5295 return 0;
5296}
5297_ACEOF
5298rm -f conftest.$ac_objext
5299if { (ac_try="$ac_compile"
5300case "(($ac_try" in
5301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5302 *) ac_try_echo=$ac_try;;
5303esac
5304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5305 (eval "$ac_compile") 2>conftest.er1
5306 ac_status=$?
5307 grep -v '^ *+' conftest.er1 >conftest.err
5308 rm -f conftest.er1
5309 cat conftest.err >&5
5310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5311 (exit $ac_status); } && {
5312 test -z "$ac_c_werror_flag" ||
5313 test ! -s conftest.err
5314 } && test -s conftest.$ac_objext; then
5315 ac_cv_member_struct_stat_st_rdev=yes
5316else
5317 echo "$as_me: failed program was:" >&5
5318sed 's/^/| /' conftest.$ac_ext >&5
5319
5320 ac_cv_member_struct_stat_st_rdev=no
5321fi
5322
5323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5324fi
5325
5326rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5327fi
5328{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
5329echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
5330if test $ac_cv_member_struct_stat_st_rdev = yes; then
5331
5332cat >>confdefs.h <<_ACEOF
5333#define HAVE_STRUCT_STAT_ST_RDEV 1
5334_ACEOF
5335
5336
5337fi
8ce0cbda 5338
1995c9ff
AK
5339{ echo "$as_me:$LINENO: checking for off_t" >&5
5340echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
ad6254c5 5341if test "${ac_cv_type_off_t+set}" = set; then
1995c9ff 5342 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
5343else
5344 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5345/* confdefs.h. */
5346_ACEOF
5347cat confdefs.h >>conftest.$ac_ext
5348cat >>conftest.$ac_ext <<_ACEOF
5349/* end confdefs.h. */
5350$ac_includes_default
7a197a62 5351typedef off_t ac__type_new_;
ad6254c5
AK
5352int
5353main ()
5354{
7a197a62 5355if ((ac__type_new_ *) 0)
ad6254c5 5356 return 0;
7a197a62 5357if (sizeof (ac__type_new_))
ad6254c5
AK
5358 return 0;
5359 ;
5360 return 0;
5361}
5362_ACEOF
5363rm -f conftest.$ac_objext
7a197a62
AK
5364if { (ac_try="$ac_compile"
5365case "(($ac_try" in
5366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5367 *) ac_try_echo=$ac_try;;
5368esac
1995c9ff 5369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 5370 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5371 ac_status=$?
8a2fc586
AK
5372 grep -v '^ *+' conftest.er1 >conftest.err
5373 rm -f conftest.er1
5374 cat conftest.err >&5
1995c9ff 5375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5376 (exit $ac_status); } && {
5377 test -z "$ac_c_werror_flag" ||
5378 test ! -s conftest.err
5379 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5380 ac_cv_type_off_t=yes
5381else
1995c9ff 5382 echo "$as_me: failed program was:" >&5
ad6254c5 5383sed 's/^/| /' conftest.$ac_ext >&5
8ce0cbda 5384
7a197a62 5385 ac_cv_type_off_t=no
80992638 5386fi
7a197a62
AK
5387
5388rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 5389fi
1995c9ff
AK
5390{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5391echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
ad6254c5
AK
5392if test $ac_cv_type_off_t = yes; then
5393 :
5394else
80992638 5395
ad6254c5 5396cat >>confdefs.h <<_ACEOF
7a197a62 5397#define off_t long int
ad6254c5 5398_ACEOF
199e490e 5399
b896caa1
AK
5400fi
5401
1995c9ff
AK
5402{ echo "$as_me:$LINENO: checking for pid_t" >&5
5403echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
ad6254c5 5404if test "${ac_cv_type_pid_t+set}" = set; then
1995c9ff 5405 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
5406else
5407 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5408/* confdefs.h. */
5409_ACEOF
5410cat confdefs.h >>conftest.$ac_ext
5411cat >>conftest.$ac_ext <<_ACEOF
5412/* end confdefs.h. */
5413$ac_includes_default
7a197a62 5414typedef pid_t ac__type_new_;
ad6254c5
AK
5415int
5416main ()
5417{
7a197a62 5418if ((ac__type_new_ *) 0)
ad6254c5 5419 return 0;
7a197a62 5420if (sizeof (ac__type_new_))
ad6254c5
AK
5421 return 0;
5422 ;
5423 return 0;
5424}
5425_ACEOF
5426rm -f conftest.$ac_objext
7a197a62
AK
5427if { (ac_try="$ac_compile"
5428case "(($ac_try" in
5429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5430 *) ac_try_echo=$ac_try;;
5431esac
1995c9ff 5432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 5433 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5434 ac_status=$?
8a2fc586
AK
5435 grep -v '^ *+' conftest.er1 >conftest.err
5436 rm -f conftest.er1
5437 cat conftest.err >&5
1995c9ff 5438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5439 (exit $ac_status); } && {
5440 test -z "$ac_c_werror_flag" ||
5441 test ! -s conftest.err
5442 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5443 ac_cv_type_pid_t=yes
5444else
1995c9ff 5445 echo "$as_me: failed program was:" >&5
ad6254c5
AK
5446sed 's/^/| /' conftest.$ac_ext >&5
5447
7a197a62 5448 ac_cv_type_pid_t=no
ad6254c5 5449fi
7a197a62
AK
5450
5451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
80992638 5452fi
1995c9ff
AK
5453{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
5454echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
ad6254c5
AK
5455if test $ac_cv_type_pid_t = yes; then
5456 :
5457else
80992638 5458
ad6254c5
AK
5459cat >>confdefs.h <<_ACEOF
5460#define pid_t int
5461_ACEOF
2dc95e1c 5462
2dc95e1c
AK
5463fi
5464
d0191583
JM
5465{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5466echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
5467if test "${ac_cv_type_signal+set}" = set; then
5468 echo $ECHO_N "(cached) $ECHO_C" >&6
5469else
5470 cat >conftest.$ac_ext <<_ACEOF
5471/* confdefs.h. */
5472_ACEOF
5473cat confdefs.h >>conftest.$ac_ext
5474cat >>conftest.$ac_ext <<_ACEOF
5475/* end confdefs.h. */
5476#include <sys/types.h>
5477#include <signal.h>
5478
5479int
5480main ()
5481{
5482return *(signal (0, 0)) (0) == 1;
5483 ;
5484 return 0;
5485}
5486_ACEOF
5487rm -f conftest.$ac_objext
5488if { (ac_try="$ac_compile"
5489case "(($ac_try" in
5490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5491 *) ac_try_echo=$ac_try;;
5492esac
5493eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5494 (eval "$ac_compile") 2>conftest.er1
5495 ac_status=$?
5496 grep -v '^ *+' conftest.er1 >conftest.err
5497 rm -f conftest.er1
5498 cat conftest.err >&5
5499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5500 (exit $ac_status); } && {
5501 test -z "$ac_c_werror_flag" ||
5502 test ! -s conftest.err
5503 } && test -s conftest.$ac_objext; then
5504 ac_cv_type_signal=int
5505else
5506 echo "$as_me: failed program was:" >&5
5507sed 's/^/| /' conftest.$ac_ext >&5
5508
5509 ac_cv_type_signal=void
5510fi
5511
5512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5513fi
5514{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
5515echo "${ECHO_T}$ac_cv_type_signal" >&6; }
5516
5517cat >>confdefs.h <<_ACEOF
5518#define RETSIGTYPE $ac_cv_type_signal
5519_ACEOF
5520
5521
1995c9ff
AK
5522{ echo "$as_me:$LINENO: checking for size_t" >&5
5523echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
ad6254c5 5524if test "${ac_cv_type_size_t+set}" = set; then
1995c9ff 5525 echo $ECHO_N "(cached) $ECHO_C" >&6
8106cdd5 5526else
ad6254c5 5527 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5528/* confdefs.h. */
5529_ACEOF
5530cat confdefs.h >>conftest.$ac_ext
5531cat >>conftest.$ac_ext <<_ACEOF
5532/* end confdefs.h. */
5533$ac_includes_default
7a197a62 5534typedef size_t ac__type_new_;
ad6254c5
AK
5535int
5536main ()
5537{
7a197a62 5538if ((ac__type_new_ *) 0)
ad6254c5 5539 return 0;
7a197a62 5540if (sizeof (ac__type_new_))
ad6254c5
AK
5541 return 0;
5542 ;
5543 return 0;
5544}
5545_ACEOF
5546rm -f conftest.$ac_objext
7a197a62
AK
5547if { (ac_try="$ac_compile"
5548case "(($ac_try" in
5549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5550 *) ac_try_echo=$ac_try;;
5551esac
1995c9ff 5552eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 5553 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5554 ac_status=$?
8a2fc586
AK
5555 grep -v '^ *+' conftest.er1 >conftest.err
5556 rm -f conftest.er1
5557 cat conftest.err >&5
1995c9ff 5558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5559 (exit $ac_status); } && {
5560 test -z "$ac_c_werror_flag" ||
5561 test ! -s conftest.err
5562 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5563 ac_cv_type_size_t=yes
5564else
1995c9ff 5565 echo "$as_me: failed program was:" >&5
ad6254c5
AK
5566sed 's/^/| /' conftest.$ac_ext >&5
5567
7a197a62 5568 ac_cv_type_size_t=no
80992638 5569fi
7a197a62
AK
5570
5571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 5572fi
1995c9ff
AK
5573{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5574echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
ad6254c5
AK
5575if test $ac_cv_type_size_t = yes; then
5576 :
5577else
80992638 5578
ad6254c5 5579cat >>confdefs.h <<_ACEOF
7a197a62 5580#define size_t unsigned int
ad6254c5 5581_ACEOF
8106cdd5 5582
8106cdd5
AK
5583fi
5584
1995c9ff
AK
5585{ echo "$as_me:$LINENO: checking for mode_t" >&5
5586echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
ad6254c5 5587if test "${ac_cv_type_mode_t+set}" = set; then
1995c9ff 5588 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
5589else
5590 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5591/* confdefs.h. */
5592_ACEOF
5593cat confdefs.h >>conftest.$ac_ext
5594cat >>conftest.$ac_ext <<_ACEOF
5595/* end confdefs.h. */
5596$ac_includes_default
7a197a62 5597typedef mode_t ac__type_new_;
ad6254c5
AK
5598int
5599main ()
5600{
7a197a62 5601if ((ac__type_new_ *) 0)
ad6254c5 5602 return 0;
7a197a62 5603if (sizeof (ac__type_new_))
ad6254c5
AK
5604 return 0;
5605 ;
5606 return 0;
5607}
5608_ACEOF
5609rm -f conftest.$ac_objext
7a197a62
AK
5610if { (ac_try="$ac_compile"
5611case "(($ac_try" in
5612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5613 *) ac_try_echo=$ac_try;;
5614esac
1995c9ff 5615eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 5616 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5617 ac_status=$?
8a2fc586
AK
5618 grep -v '^ *+' conftest.er1 >conftest.err
5619 rm -f conftest.er1
5620 cat conftest.err >&5
1995c9ff 5621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5622 (exit $ac_status); } && {
5623 test -z "$ac_c_werror_flag" ||
5624 test ! -s conftest.err
5625 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5626 ac_cv_type_mode_t=yes
5627else
1995c9ff 5628 echo "$as_me: failed program was:" >&5
ad6254c5
AK
5629sed 's/^/| /' conftest.$ac_ext >&5
5630
7a197a62 5631 ac_cv_type_mode_t=no
80992638 5632fi
7a197a62
AK
5633
5634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 5635fi
1995c9ff
AK
5636{ echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
5637echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
ad6254c5
AK
5638if test $ac_cv_type_mode_t = yes; then
5639 :
5640else
80992638 5641
ad6254c5
AK
5642cat >>confdefs.h <<_ACEOF
5643#define mode_t int
5644_ACEOF
5645
5646fi
5647
1995c9ff
AK
5648{ echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
5649echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
ad6254c5 5650if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
1995c9ff 5651 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
5652else
5653 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5654/* confdefs.h. */
5655_ACEOF
5656cat confdefs.h >>conftest.$ac_ext
5657cat >>conftest.$ac_ext <<_ACEOF
5658/* end confdefs.h. */
5659$ac_includes_default
5660int
5661main ()
5662{
5663static struct stat ac_aggr;
5664if (ac_aggr.st_rdev)
5665return 0;
5666 ;
5667 return 0;
5668}
5669_ACEOF
5670rm -f conftest.$ac_objext
7a197a62
AK
5671if { (ac_try="$ac_compile"
5672case "(($ac_try" in
5673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5674 *) ac_try_echo=$ac_try;;
5675esac
1995c9ff 5676eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 5677 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5678 ac_status=$?
8a2fc586
AK
5679 grep -v '^ *+' conftest.er1 >conftest.err
5680 rm -f conftest.er1
5681 cat conftest.err >&5
1995c9ff 5682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5683 (exit $ac_status); } && {
5684 test -z "$ac_c_werror_flag" ||
5685 test ! -s conftest.err
5686 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5687 ac_cv_member_struct_stat_st_rdev=yes
5688else
1995c9ff 5689 echo "$as_me: failed program was:" >&5
ad6254c5
AK
5690sed 's/^/| /' conftest.$ac_ext >&5
5691
7a197a62 5692 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5693/* confdefs.h. */
5694_ACEOF
5695cat confdefs.h >>conftest.$ac_ext
5696cat >>conftest.$ac_ext <<_ACEOF
5697/* end confdefs.h. */
5698$ac_includes_default
5699int
5700main ()
5701{
5702static struct stat ac_aggr;
5703if (sizeof ac_aggr.st_rdev)
5704return 0;
5705 ;
5706 return 0;
5707}
5708_ACEOF
5709rm -f conftest.$ac_objext
7a197a62
AK
5710if { (ac_try="$ac_compile"
5711case "(($ac_try" in
5712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5713 *) ac_try_echo=$ac_try;;
5714esac
1995c9ff 5715eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 5716 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5717 ac_status=$?
8a2fc586
AK
5718 grep -v '^ *+' conftest.er1 >conftest.err
5719 rm -f conftest.er1
5720 cat conftest.err >&5
1995c9ff 5721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5722 (exit $ac_status); } && {
5723 test -z "$ac_c_werror_flag" ||
5724 test ! -s conftest.err
5725 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5726 ac_cv_member_struct_stat_st_rdev=yes
5727else
1995c9ff 5728 echo "$as_me: failed program was:" >&5
ad6254c5
AK
5729sed 's/^/| /' conftest.$ac_ext >&5
5730
7a197a62 5731 ac_cv_member_struct_stat_st_rdev=no
ad6254c5 5732fi
7a197a62
AK
5733
5734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 5735fi
7a197a62
AK
5736
5737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 5738fi
1995c9ff
AK
5739{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
5740echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
ad6254c5
AK
5741if test $ac_cv_member_struct_stat_st_rdev = yes; then
5742
5743cat >>confdefs.h <<_ACEOF
5744#define HAVE_STRUCT_STAT_ST_RDEV 1
5745_ACEOF
5746
5747
ad6254c5
AK
5748fi
5749
1995c9ff
AK
5750{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
5751echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
ad6254c5 5752if test "${ac_cv_struct_tm+set}" = set; then
1995c9ff 5753 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
5754else
5755 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5756/* confdefs.h. */
5757_ACEOF
5758cat confdefs.h >>conftest.$ac_ext
5759cat >>conftest.$ac_ext <<_ACEOF
5760/* end confdefs.h. */
5761#include <sys/types.h>
5762#include <time.h>
5763
5764int
5765main ()
5766{
25fbec5b
AK
5767struct tm tm;
5768 int *p = &tm.tm_sec;
5769 return !p;
ad6254c5
AK
5770 ;
5771 return 0;
5772}
5773_ACEOF
5774rm -f conftest.$ac_objext
7a197a62
AK
5775if { (ac_try="$ac_compile"
5776case "(($ac_try" in
5777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5778 *) ac_try_echo=$ac_try;;
5779esac
1995c9ff 5780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 5781 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5782 ac_status=$?
8a2fc586
AK
5783 grep -v '^ *+' conftest.er1 >conftest.err
5784 rm -f conftest.er1
5785 cat conftest.err >&5
1995c9ff 5786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5787 (exit $ac_status); } && {
5788 test -z "$ac_c_werror_flag" ||
5789 test ! -s conftest.err
5790 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5791 ac_cv_struct_tm=time.h
5792else
1995c9ff 5793 echo "$as_me: failed program was:" >&5
ad6254c5
AK
5794sed 's/^/| /' conftest.$ac_ext >&5
5795
7a197a62 5796 ac_cv_struct_tm=sys/time.h
ad6254c5 5797fi
7a197a62
AK
5798
5799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 5800fi
1995c9ff
AK
5801{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
5802echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
ad6254c5
AK
5803if test $ac_cv_struct_tm = sys/time.h; then
5804
5805cat >>confdefs.h <<\_ACEOF
5806#define TM_IN_SYS_TIME 1
5807_ACEOF
5808
5809fi
809fae91 5810
795ca3e5 5811
80992638 5812################################################################################
ad6254c5
AK
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
d0191583
JM
5827
5828
5829
5830for ac_func in gethostname getpagesize memset mkdir rmdir munmap setlocale \
5831 strcasecmp strchr strdup strncasecmp strerror strrchr strstr strtol strtoul \
5832 uname
ad6254c5 5833do
1995c9ff
AK
5834as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5835{ echo "$as_me:$LINENO: checking for $ac_func" >&5
5836echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7a197a62 5837if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff 5838 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 5839else
ad6254c5 5840 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5841/* confdefs.h. */
5842_ACEOF
5843cat confdefs.h >>conftest.$ac_ext
5844cat >>conftest.$ac_ext <<_ACEOF
5845/* end confdefs.h. */
8a2fc586
AK
5846/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5847 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5848#define $ac_func innocuous_$ac_func
5849
ad6254c5
AK
5850/* System header to define __stub macros and hopefully few prototypes,
5851 which can conflict with char $ac_func (); below.
5852 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5853 <limits.h> exists even on freestanding compilers. */
8a2fc586 5854
ad6254c5
AK
5855#ifdef __STDC__
5856# include <limits.h>
5857#else
5858# include <assert.h>
5859#endif
8a2fc586
AK
5860
5861#undef $ac_func
5862
7a197a62
AK
5863/* Override any GCC internal prototype to avoid an error.
5864 Use char because int might match the return type of a GCC
5865 builtin and then its argument prototype would still apply. */
ad6254c5
AK
5866#ifdef __cplusplus
5867extern "C"
ad6254c5 5868#endif
ad6254c5
AK
5869char $ac_func ();
5870/* The GNU C library defines this for functions which it implements
5871 to always fail with ENOSYS. Some functions are actually named
5872 something starting with __ and the normal name is an alias. */
7a197a62 5873#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 5874choke me
ad6254c5
AK
5875#endif
5876
5877int
5878main ()
5879{
7a197a62 5880return $ac_func ();
ad6254c5
AK
5881 ;
5882 return 0;
5883}
5884_ACEOF
5885rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
5886if { (ac_try="$ac_link"
5887case "(($ac_try" in
5888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5889 *) ac_try_echo=$ac_try;;
5890esac
1995c9ff 5891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 5892 (eval "$ac_link") 2>conftest.er1
ad6254c5 5893 ac_status=$?
8a2fc586
AK
5894 grep -v '^ *+' conftest.er1 >conftest.err
5895 rm -f conftest.er1
5896 cat conftest.err >&5
1995c9ff 5897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5898 (exit $ac_status); } && {
5899 test -z "$ac_c_werror_flag" ||
5900 test ! -s conftest.err
5901 } && test -s conftest$ac_exeext &&
5902 $as_test_x conftest$ac_exeext; then
fc54be10
AK
5903 eval "$as_ac_var=yes"
5904else
5905 echo "$as_me: failed program was:" >&5
5906sed 's/^/| /' conftest.$ac_ext >&5
5907
5908 eval "$as_ac_var=no"
5909fi
5910
25fbec5b 5911rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
fc54be10
AK
5912 conftest$ac_exeext conftest.$ac_ext
5913fi
1995c9ff
AK
5914ac_res=`eval echo '${'$as_ac_var'}'`
5915 { echo "$as_me:$LINENO: result: $ac_res" >&5
5916echo "${ECHO_T}$ac_res" >&6; }
5917if test `eval echo '${'$as_ac_var'}'` = yes; then
ad6254c5 5918 cat >>confdefs.h <<_ACEOF
1995c9ff 5919#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
5920_ACEOF
5921
5922else
1995c9ff
AK
5923 { { echo "$as_me:$LINENO: error: bailing out" >&5
5924echo "$as_me: error: bailing out" >&2;}
ad6254c5
AK
5925 { (exit 1); exit 1; }; }
5926fi
5927done
795ca3e5 5928
ad6254c5
AK
5929# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5930# for constant arguments. Useless!
1995c9ff
AK
5931{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
5932echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
ad6254c5 5933if test "${ac_cv_working_alloca_h+set}" = set; then
1995c9ff 5934 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
5935else
5936 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5937/* confdefs.h. */
5938_ACEOF
5939cat confdefs.h >>conftest.$ac_ext
5940cat >>conftest.$ac_ext <<_ACEOF
5941/* end confdefs.h. */
5942#include <alloca.h>
5943int
5944main ()
5945{
5946char *p = (char *) alloca (2 * sizeof (int));
7a197a62 5947 if (p) return 0;
ad6254c5
AK
5948 ;
5949 return 0;
5950}
5951_ACEOF
5952rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
5953if { (ac_try="$ac_link"
5954case "(($ac_try" in
5955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5956 *) ac_try_echo=$ac_try;;
5957esac
1995c9ff 5958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 5959 (eval "$ac_link") 2>conftest.er1
ad6254c5 5960 ac_status=$?
8a2fc586
AK
5961 grep -v '^ *+' conftest.er1 >conftest.err
5962 rm -f conftest.er1
5963 cat conftest.err >&5
1995c9ff 5964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5965 (exit $ac_status); } && {
5966 test -z "$ac_c_werror_flag" ||
5967 test ! -s conftest.err
5968 } && test -s conftest$ac_exeext &&
5969 $as_test_x conftest$ac_exeext; then
ad6254c5
AK
5970 ac_cv_working_alloca_h=yes
5971else
1995c9ff 5972 echo "$as_me: failed program was:" >&5
ad6254c5 5973sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 5974
7a197a62 5975 ac_cv_working_alloca_h=no
ad6254c5 5976fi
7a197a62 5977
25fbec5b 5978rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 5979 conftest$ac_exeext conftest.$ac_ext
ad6254c5 5980fi
1995c9ff
AK
5981{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
5982echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
ad6254c5
AK
5983if test $ac_cv_working_alloca_h = yes; then
5984
5985cat >>confdefs.h <<\_ACEOF
5986#define HAVE_ALLOCA_H 1
5987_ACEOF
5988
5989fi
5990
1995c9ff
AK
5991{ echo "$as_me:$LINENO: checking for alloca" >&5
5992echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
ad6254c5 5993if test "${ac_cv_func_alloca_works+set}" = set; then
1995c9ff 5994 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
5995else
5996 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5997/* confdefs.h. */
5998_ACEOF
5999cat confdefs.h >>conftest.$ac_ext
6000cat >>conftest.$ac_ext <<_ACEOF
6001/* end confdefs.h. */
6002#ifdef __GNUC__
6003# define alloca __builtin_alloca
6004#else
6005# ifdef _MSC_VER
6006# include <malloc.h>
6007# define alloca _alloca
6008# else
25fbec5b 6009# ifdef HAVE_ALLOCA_H
ad6254c5
AK
6010# include <alloca.h>
6011# else
6012# ifdef _AIX
6013 #pragma alloca
6014# else
6015# ifndef alloca /* predefined by HP cc +Olibcalls */
6016char *alloca ();
6017# endif
6018# endif
6019# endif
6020# endif
6021#endif
6022
6023int
6024main ()
6025{
6026char *p = (char *) alloca (1);
7a197a62 6027 if (p) return 0;
ad6254c5
AK
6028 ;
6029 return 0;
6030}
6031_ACEOF
6032rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
6033if { (ac_try="$ac_link"
6034case "(($ac_try" in
6035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6036 *) ac_try_echo=$ac_try;;
6037esac
1995c9ff 6038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6039 (eval "$ac_link") 2>conftest.er1
ad6254c5 6040 ac_status=$?
8a2fc586
AK
6041 grep -v '^ *+' conftest.er1 >conftest.err
6042 rm -f conftest.er1
6043 cat conftest.err >&5
1995c9ff 6044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6045 (exit $ac_status); } && {
6046 test -z "$ac_c_werror_flag" ||
6047 test ! -s conftest.err
6048 } && test -s conftest$ac_exeext &&
6049 $as_test_x conftest$ac_exeext; then
ad6254c5
AK
6050 ac_cv_func_alloca_works=yes
6051else
1995c9ff 6052 echo "$as_me: failed program was:" >&5
ad6254c5
AK
6053sed 's/^/| /' conftest.$ac_ext >&5
6054
7a197a62 6055 ac_cv_func_alloca_works=no
ad6254c5 6056fi
7a197a62 6057
25fbec5b 6058rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 6059 conftest$ac_exeext conftest.$ac_ext
ad6254c5 6060fi
1995c9ff
AK
6061{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6062echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
ad6254c5
AK
6063
6064if test $ac_cv_func_alloca_works = yes; then
6065
6066cat >>confdefs.h <<\_ACEOF
6067#define HAVE_ALLOCA 1
6068_ACEOF
6069
6070else
6071 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6072# that cause trouble. Some versions do not even contain alloca or
6073# contain a buggy version. If you still want to use their alloca,
6074# use ar to extract alloca.o from them instead of compiling alloca.c.
6075
7a197a62 6076ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
ad6254c5
AK
6077
6078cat >>confdefs.h <<\_ACEOF
6079#define C_ALLOCA 1
6080_ACEOF
6081
6082
1995c9ff
AK
6083{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6084echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
ad6254c5 6085if test "${ac_cv_os_cray+set}" = set; then
1995c9ff 6086 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
6087else
6088 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6089/* confdefs.h. */
6090_ACEOF
6091cat confdefs.h >>conftest.$ac_ext
6092cat >>conftest.$ac_ext <<_ACEOF
6093/* end confdefs.h. */
7a197a62 6094#if defined CRAY && ! defined CRAY2
ad6254c5
AK
6095webecray
6096#else
6097wenotbecray
6098#endif
6099
6100_ACEOF
795ca3e5 6101if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ad6254c5
AK
6102 $EGREP "webecray" >/dev/null 2>&1; then
6103 ac_cv_os_cray=yes
6104else
6105 ac_cv_os_cray=no
795ca3e5
AK
6106fi
6107rm -f conftest*
6108
795ca3e5 6109fi
1995c9ff
AK
6110{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6111echo "${ECHO_T}$ac_cv_os_cray" >&6; }
ad6254c5
AK
6112if test $ac_cv_os_cray = yes; then
6113 for ac_func in _getb67 GETB67 getb67; do
1995c9ff
AK
6114 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6115{ echo "$as_me:$LINENO: checking for $ac_func" >&5
6116echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7a197a62 6117if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff 6118 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
6119else
6120 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6121/* confdefs.h. */
6122_ACEOF
6123cat confdefs.h >>conftest.$ac_ext
6124cat >>conftest.$ac_ext <<_ACEOF
6125/* end confdefs.h. */
8a2fc586
AK
6126/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6127 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6128#define $ac_func innocuous_$ac_func
6129
ad6254c5
AK
6130/* System header to define __stub macros and hopefully few prototypes,
6131 which can conflict with char $ac_func (); below.
6132 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6133 <limits.h> exists even on freestanding compilers. */
8a2fc586 6134
ad6254c5
AK
6135#ifdef __STDC__
6136# include <limits.h>
6137#else
6138# include <assert.h>
6139#endif
8a2fc586
AK
6140
6141#undef $ac_func
6142
7a197a62
AK
6143/* Override any GCC internal prototype to avoid an error.
6144 Use char because int might match the return type of a GCC
6145 builtin and then its argument prototype would still apply. */
ad6254c5
AK
6146#ifdef __cplusplus
6147extern "C"
ad6254c5 6148#endif
ad6254c5
AK
6149char $ac_func ();
6150/* The GNU C library defines this for functions which it implements
6151 to always fail with ENOSYS. Some functions are actually named
6152 something starting with __ and the normal name is an alias. */
7a197a62 6153#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 6154choke me
ad6254c5
AK
6155#endif
6156
6157int
6158main ()
6159{
7a197a62 6160return $ac_func ();
ad6254c5
AK
6161 ;
6162 return 0;
6163}
6164_ACEOF
6165rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
6166if { (ac_try="$ac_link"
6167case "(($ac_try" in
6168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6169 *) ac_try_echo=$ac_try;;
6170esac
1995c9ff 6171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6172 (eval "$ac_link") 2>conftest.er1
ad6254c5 6173 ac_status=$?
8a2fc586
AK
6174 grep -v '^ *+' conftest.er1 >conftest.err
6175 rm -f conftest.er1
6176 cat conftest.err >&5
1995c9ff 6177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6178 (exit $ac_status); } && {
6179 test -z "$ac_c_werror_flag" ||
6180 test ! -s conftest.err
6181 } && test -s conftest$ac_exeext &&
6182 $as_test_x conftest$ac_exeext; then
ad6254c5
AK
6183 eval "$as_ac_var=yes"
6184else
1995c9ff 6185 echo "$as_me: failed program was:" >&5
ad6254c5
AK
6186sed 's/^/| /' conftest.$ac_ext >&5
6187
7a197a62 6188 eval "$as_ac_var=no"
ad6254c5 6189fi
7a197a62 6190
25fbec5b 6191rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 6192 conftest$ac_exeext conftest.$ac_ext
ad6254c5 6193fi
1995c9ff
AK
6194ac_res=`eval echo '${'$as_ac_var'}'`
6195 { echo "$as_me:$LINENO: result: $ac_res" >&5
6196echo "${ECHO_T}$ac_res" >&6; }
6197if test `eval echo '${'$as_ac_var'}'` = yes; then
80992638 6198
ad6254c5
AK
6199cat >>confdefs.h <<_ACEOF
6200#define CRAY_STACKSEG_END $ac_func
6201_ACEOF
6202
6203 break
6204fi
6205
6206 done
6207fi
6208
1995c9ff
AK
6209{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6210echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
ad6254c5 6211if test "${ac_cv_c_stack_direction+set}" = set; then
1995c9ff 6212 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
6213else
6214 if test "$cross_compiling" = yes; then
6215 ac_cv_c_stack_direction=0
6216else
6217 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6218/* confdefs.h. */
6219_ACEOF
6220cat confdefs.h >>conftest.$ac_ext
6221cat >>conftest.$ac_ext <<_ACEOF
6222/* end confdefs.h. */
7a197a62 6223$ac_includes_default
ad6254c5
AK
6224int
6225find_stack_direction ()
6226{
6227 static char *addr = 0;
6228 auto char dummy;
6229 if (addr == 0)
6230 {
6231 addr = &dummy;
6232 return find_stack_direction ();
6233 }
6234 else
6235 return (&dummy > addr) ? 1 : -1;
6236}
6237
6238int
6239main ()
6240{
7a197a62 6241 return find_stack_direction () < 0;
ad6254c5
AK
6242}
6243_ACEOF
6244rm -f conftest$ac_exeext
7a197a62
AK
6245if { (ac_try="$ac_link"
6246case "(($ac_try" in
6247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6248 *) ac_try_echo=$ac_try;;
6249esac
1995c9ff 6250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6251 (eval "$ac_link") 2>&5
ad6254c5 6252 ac_status=$?
1995c9ff 6253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 6254 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
6255 { (case "(($ac_try" in
6256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6257 *) ac_try_echo=$ac_try;;
6258esac
1995c9ff 6259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6260 (eval "$ac_try") 2>&5
ad6254c5 6261 ac_status=$?
1995c9ff 6262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
6263 (exit $ac_status); }; }; then
6264 ac_cv_c_stack_direction=1
6265else
1995c9ff
AK
6266 echo "$as_me: program exited with status $ac_status" >&5
6267echo "$as_me: failed program was:" >&5
ad6254c5
AK
6268sed 's/^/| /' conftest.$ac_ext >&5
6269
6270( exit $ac_status )
6271ac_cv_c_stack_direction=-1
6272fi
7a197a62 6273rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 6274fi
7a197a62
AK
6275
6276
ad6254c5 6277fi
1995c9ff
AK
6278{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6279echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
ad6254c5
AK
6280
6281cat >>confdefs.h <<_ACEOF
6282#define STACK_DIRECTION $ac_cv_c_stack_direction
6283_ACEOF
6284
6285
6286fi
6287
1995c9ff
AK
6288{ echo "$as_me:$LINENO: checking whether closedir returns void" >&5
6289echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
ad6254c5 6290if test "${ac_cv_func_closedir_void+set}" = set; then
1995c9ff 6291 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
6292else
6293 if test "$cross_compiling" = yes; then
6294 ac_cv_func_closedir_void=yes
6295else
6296 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6297/* confdefs.h. */
6298_ACEOF
6299cat confdefs.h >>conftest.$ac_ext
6300cat >>conftest.$ac_ext <<_ACEOF
6301/* end confdefs.h. */
6302$ac_includes_default
6303#include <$ac_header_dirent>
6304#ifndef __cplusplus
6305int closedir ();
6306#endif
6307
6308int
6309main ()
6310{
7a197a62 6311return closedir (opendir (".")) != 0;
ad6254c5
AK
6312 ;
6313 return 0;
6314}
6315_ACEOF
6316rm -f conftest$ac_exeext
7a197a62
AK
6317if { (ac_try="$ac_link"
6318case "(($ac_try" in
6319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6320 *) ac_try_echo=$ac_try;;
6321esac
1995c9ff 6322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6323 (eval "$ac_link") 2>&5
ad6254c5 6324 ac_status=$?
1995c9ff 6325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 6326 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
6327 { (case "(($ac_try" in
6328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6329 *) ac_try_echo=$ac_try;;
6330esac
1995c9ff 6331eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6332 (eval "$ac_try") 2>&5
ad6254c5 6333 ac_status=$?
1995c9ff 6334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
6335 (exit $ac_status); }; }; then
6336 ac_cv_func_closedir_void=no
6337else
1995c9ff
AK
6338 echo "$as_me: program exited with status $ac_status" >&5
6339echo "$as_me: failed program was:" >&5
ad6254c5
AK
6340sed 's/^/| /' conftest.$ac_ext >&5
6341
6342( exit $ac_status )
6343ac_cv_func_closedir_void=yes
6344fi
7a197a62 6345rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 6346fi
7a197a62
AK
6347
6348
ad6254c5 6349fi
1995c9ff
AK
6350{ echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
6351echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
ad6254c5
AK
6352if test $ac_cv_func_closedir_void = yes; then
6353
6354cat >>confdefs.h <<\_ACEOF
6355#define CLOSEDIR_VOID 1
6356_ACEOF
6357
6358fi
6359
6360
7a197a62 6361for ac_header in vfork.h
ad6254c5 6362do
1995c9ff 6363as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 6364if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff
AK
6365 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6366echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 6367if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff 6368 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 6369fi
1995c9ff
AK
6370ac_res=`eval echo '${'$as_ac_Header'}'`
6371 { echo "$as_me:$LINENO: result: $ac_res" >&5
6372echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
6373else
6374 # Is the header compilable?
1995c9ff
AK
6375{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
6376echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 6377cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6378/* confdefs.h. */
6379_ACEOF
6380cat confdefs.h >>conftest.$ac_ext
6381cat >>conftest.$ac_ext <<_ACEOF
6382/* end confdefs.h. */
6383$ac_includes_default
6384#include <$ac_header>
6385_ACEOF
6386rm -f conftest.$ac_objext
7a197a62
AK
6387if { (ac_try="$ac_compile"
6388case "(($ac_try" in
6389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6390 *) ac_try_echo=$ac_try;;
6391esac
1995c9ff 6392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6393 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6394 ac_status=$?
8a2fc586
AK
6395 grep -v '^ *+' conftest.er1 >conftest.err
6396 rm -f conftest.er1
6397 cat conftest.err >&5
1995c9ff 6398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6399 (exit $ac_status); } && {
6400 test -z "$ac_c_werror_flag" ||
6401 test ! -s conftest.err
6402 } && test -s conftest.$ac_objext; then
ad6254c5
AK
6403 ac_header_compiler=yes
6404else
1995c9ff 6405 echo "$as_me: failed program was:" >&5
ad6254c5
AK
6406sed 's/^/| /' conftest.$ac_ext >&5
6407
7a197a62 6408 ac_header_compiler=no
ad6254c5 6409fi
7a197a62
AK
6410
6411rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1995c9ff
AK
6412{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6413echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
6414
6415# Is the header present?
1995c9ff
AK
6416{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
6417echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 6418cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6419/* confdefs.h. */
6420_ACEOF
6421cat confdefs.h >>conftest.$ac_ext
6422cat >>conftest.$ac_ext <<_ACEOF
6423/* end confdefs.h. */
6424#include <$ac_header>
6425_ACEOF
7a197a62
AK
6426if { (ac_try="$ac_cpp conftest.$ac_ext"
6427case "(($ac_try" in
6428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6429 *) ac_try_echo=$ac_try;;
6430esac
1995c9ff 6431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6432 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
6433 ac_status=$?
6434 grep -v '^ *+' conftest.er1 >conftest.err
6435 rm -f conftest.er1
6436 cat conftest.err >&5
1995c9ff 6437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6438 (exit $ac_status); } >/dev/null && {
6439 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6440 test ! -s conftest.err
6441 }; then
ad6254c5
AK
6442 ac_header_preproc=yes
6443else
1995c9ff 6444 echo "$as_me: failed program was:" >&5
ad6254c5
AK
6445sed 's/^/| /' conftest.$ac_ext >&5
6446
6447 ac_header_preproc=no
6448fi
7a197a62 6449
ad6254c5 6450rm -f conftest.err conftest.$ac_ext
1995c9ff
AK
6451{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6452echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
6453
6454# So? What about this header?
8a2fc586
AK
6455case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6456 yes:no: )
1995c9ff
AK
6457 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6458echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6459 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6460echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 6461 ac_header_preproc=yes
ad6254c5 6462 ;;
8a2fc586 6463 no:yes:* )
1995c9ff
AK
6464 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6465echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6466 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6467echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6468 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6469echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6470 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6471echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6472 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6473echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6474 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6475echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 6476
ad6254c5
AK
6477 ;;
6478esac
1995c9ff
AK
6479{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6480echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 6481if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff 6482 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 6483else
8a2fc586 6484 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 6485fi
1995c9ff
AK
6486ac_res=`eval echo '${'$as_ac_Header'}'`
6487 { echo "$as_me:$LINENO: result: $ac_res" >&5
6488echo "${ECHO_T}$ac_res" >&6; }
ad6254c5 6489
795ca3e5 6490fi
1995c9ff 6491if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 6492 cat >>confdefs.h <<_ACEOF
1995c9ff 6493#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
6494_ACEOF
6495
6496fi
6497
6498done
795ca3e5 6499
ad6254c5
AK
6500
6501
6502for ac_func in fork vfork
6503do
1995c9ff
AK
6504as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6505{ echo "$as_me:$LINENO: checking for $ac_func" >&5
6506echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7a197a62 6507if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff 6508 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 6509else
ad6254c5 6510 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6511/* confdefs.h. */
6512_ACEOF
6513cat confdefs.h >>conftest.$ac_ext
6514cat >>conftest.$ac_ext <<_ACEOF
6515/* end confdefs.h. */
8a2fc586
AK
6516/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6517 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6518#define $ac_func innocuous_$ac_func
6519
ad6254c5
AK
6520/* System header to define __stub macros and hopefully few prototypes,
6521 which can conflict with char $ac_func (); below.
6522 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6523 <limits.h> exists even on freestanding compilers. */
8a2fc586 6524
ad6254c5
AK
6525#ifdef __STDC__
6526# include <limits.h>
6527#else
6528# include <assert.h>
795ca3e5 6529#endif
8a2fc586
AK
6530
6531#undef $ac_func
6532
7a197a62
AK
6533/* Override any GCC internal prototype to avoid an error.
6534 Use char because int might match the return type of a GCC
6535 builtin and then its argument prototype would still apply. */
795ca3e5 6536#ifdef __cplusplus
ad6254c5 6537extern "C"
ad6254c5 6538#endif
ad6254c5
AK
6539char $ac_func ();
6540/* The GNU C library defines this for functions which it implements
6541 to always fail with ENOSYS. Some functions are actually named
6542 something starting with __ and the normal name is an alias. */
7a197a62 6543#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 6544choke me
795ca3e5
AK
6545#endif
6546
ad6254c5
AK
6547int
6548main ()
6549{
7a197a62 6550return $ac_func ();
ad6254c5
AK
6551 ;
6552 return 0;
6553}
6554_ACEOF
6555rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
6556if { (ac_try="$ac_link"
6557case "(($ac_try" in
6558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6559 *) ac_try_echo=$ac_try;;
6560esac
1995c9ff 6561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6562 (eval "$ac_link") 2>conftest.er1
ad6254c5 6563 ac_status=$?
8a2fc586
AK
6564 grep -v '^ *+' conftest.er1 >conftest.err
6565 rm -f conftest.er1
6566 cat conftest.err >&5
1995c9ff 6567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6568 (exit $ac_status); } && {
6569 test -z "$ac_c_werror_flag" ||
6570 test ! -s conftest.err
6571 } && test -s conftest$ac_exeext &&
6572 $as_test_x conftest$ac_exeext; then
ad6254c5 6573 eval "$as_ac_var=yes"
795ca3e5 6574else
1995c9ff 6575 echo "$as_me: failed program was:" >&5
ad6254c5
AK
6576sed 's/^/| /' conftest.$ac_ext >&5
6577
7a197a62 6578 eval "$as_ac_var=no"
795ca3e5 6579fi
7a197a62 6580
25fbec5b 6581rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 6582 conftest$ac_exeext conftest.$ac_ext
ad6254c5 6583fi
1995c9ff
AK
6584ac_res=`eval echo '${'$as_ac_var'}'`
6585 { echo "$as_me:$LINENO: result: $ac_res" >&5
6586echo "${ECHO_T}$ac_res" >&6; }
6587if test `eval echo '${'$as_ac_var'}'` = yes; then
ad6254c5 6588 cat >>confdefs.h <<_ACEOF
1995c9ff 6589#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
6590_ACEOF
6591
6592fi
6593done
6594
6595if test "x$ac_cv_func_fork" = xyes; then
1995c9ff
AK
6596 { echo "$as_me:$LINENO: checking for working fork" >&5
6597echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
ad6254c5 6598if test "${ac_cv_func_fork_works+set}" = set; then
1995c9ff 6599 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
6600else
6601 if test "$cross_compiling" = yes; then
6602 ac_cv_func_fork_works=cross
6603else
6604 cat >conftest.$ac_ext <<_ACEOF
7a197a62
AK
6605/* confdefs.h. */
6606_ACEOF
6607cat confdefs.h >>conftest.$ac_ext
6608cat >>conftest.$ac_ext <<_ACEOF
6609/* end confdefs.h. */
6610$ac_includes_default
6611int
6612main ()
6613{
6614
6615 /* By Ruediger Kuhlmann. */
6616 return fork () < 0;
6617
6618 ;
6619 return 0;
6620}
ad6254c5
AK
6621_ACEOF
6622rm -f conftest$ac_exeext
7a197a62
AK
6623if { (ac_try="$ac_link"
6624case "(($ac_try" in
6625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6626 *) ac_try_echo=$ac_try;;
6627esac
1995c9ff 6628eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6629 (eval "$ac_link") 2>&5
ad6254c5 6630 ac_status=$?
1995c9ff 6631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 6632 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
6633 { (case "(($ac_try" in
6634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6635 *) ac_try_echo=$ac_try;;
6636esac
1995c9ff 6637eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6638 (eval "$ac_try") 2>&5
ad6254c5 6639 ac_status=$?
1995c9ff 6640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
6641 (exit $ac_status); }; }; then
6642 ac_cv_func_fork_works=yes
6643else
1995c9ff
AK
6644 echo "$as_me: program exited with status $ac_status" >&5
6645echo "$as_me: failed program was:" >&5
ad6254c5
AK
6646sed 's/^/| /' conftest.$ac_ext >&5
6647
6648( exit $ac_status )
6649ac_cv_func_fork_works=no
6650fi
7a197a62 6651rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 6652fi
7a197a62
AK
6653
6654
ad6254c5 6655fi
1995c9ff
AK
6656{ echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
6657echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
ad6254c5
AK
6658
6659else
6660 ac_cv_func_fork_works=$ac_cv_func_fork
6661fi
6662if test "x$ac_cv_func_fork_works" = xcross; then
6663 case $host in
6664 *-*-amigaos* | *-*-msdosdjgpp*)
6665 # Override, as these systems have only a dummy fork() stub
6666 ac_cv_func_fork_works=no
6667 ;;
6668 *)
6669 ac_cv_func_fork_works=yes
6670 ;;
6671 esac
1995c9ff
AK
6672 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
6673echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
ad6254c5
AK
6674fi
6675ac_cv_func_vfork_works=$ac_cv_func_vfork
6676if test "x$ac_cv_func_vfork" = xyes; then
1995c9ff
AK
6677 { echo "$as_me:$LINENO: checking for working vfork" >&5
6678echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
ad6254c5 6679if test "${ac_cv_func_vfork_works+set}" = set; then
1995c9ff 6680 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
6681else
6682 if test "$cross_compiling" = yes; then
6683 ac_cv_func_vfork_works=cross
6684else
6685 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6686/* confdefs.h. */
6687_ACEOF
6688cat confdefs.h >>conftest.$ac_ext
6689cat >>conftest.$ac_ext <<_ACEOF
6690/* end confdefs.h. */
6691/* Thanks to Paul Eggert for this test. */
7a197a62 6692$ac_includes_default
ad6254c5 6693#include <sys/wait.h>
25fbec5b 6694#ifdef HAVE_VFORK_H
ad6254c5
AK
6695# include <vfork.h>
6696#endif
6697/* On some sparc systems, changes by the child to local and incoming
6698 argument registers are propagated back to the parent. The compiler
6699 is told about this with #include <vfork.h>, but some compilers
6700 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
6701 static variable whose address is put into a register that is
6702 clobbered by the vfork. */
6703static void
6704#ifdef __cplusplus
6705sparc_address_test (int arg)
6706# else
6707sparc_address_test (arg) int arg;
6708#endif
6709{
6710 static pid_t child;
6711 if (!child) {
6712 child = vfork ();
6713 if (child < 0) {
6714 perror ("vfork");
6715 _exit(2);
6716 }
6717 if (!child) {
6718 arg = getpid();
6719 write(-1, "", 0);
6720 _exit (arg);
6721 }
6722 }
6723}
6724
6725int
6726main ()
6727{
6728 pid_t parent = getpid ();
6729 pid_t child;
6730
6731 sparc_address_test (0);
6732
6733 child = vfork ();
6734
6735 if (child == 0) {
6736 /* Here is another test for sparc vfork register problems. This
6737 test uses lots of local variables, at least as many local
6738 variables as main has allocated so far including compiler
6739 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
6740 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
6741 reuse the register of parent for one of the local variables,
6742 since it will think that parent can't possibly be used any more
6743 in this routine. Assigning to the local variable will thus
6744 munge parent in the parent process. */
6745 pid_t
6746 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
6747 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
6748 /* Convince the compiler that p..p7 are live; otherwise, it might
6749 use the same hardware register for all 8 local variables. */
6750 if (p != p1 || p != p2 || p != p3 || p != p4
6751 || p != p5 || p != p6 || p != p7)
6752 _exit(1);
6753
6754 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
6755 from child file descriptors. If the child closes a descriptor
6756 before it execs or exits, this munges the parent's descriptor
6757 as well. Test for this by closing stdout in the child. */
6758 _exit(close(fileno(stdout)) != 0);
6759 } else {
6760 int status;
6761 struct stat st;
6762
6763 while (wait(&status) != child)
6764 ;
7a197a62 6765 return (
ad6254c5
AK
6766 /* Was there some problem with vforking? */
6767 child < 0
6768
6769 /* Did the child fail? (This shouldn't happen.) */
6770 || status
6771
6772 /* Did the vfork/compiler bug occur? */
6773 || parent != getpid()
6774
6775 /* Did the file descriptor bug occur? */
6776 || fstat(fileno(stdout), &st) != 0
6777 );
6778 }
6779}
6780_ACEOF
6781rm -f conftest$ac_exeext
7a197a62
AK
6782if { (ac_try="$ac_link"
6783case "(($ac_try" in
6784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6785 *) ac_try_echo=$ac_try;;
6786esac
1995c9ff 6787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6788 (eval "$ac_link") 2>&5
ad6254c5 6789 ac_status=$?
1995c9ff 6790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 6791 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
6792 { (case "(($ac_try" in
6793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6794 *) ac_try_echo=$ac_try;;
6795esac
1995c9ff 6796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6797 (eval "$ac_try") 2>&5
ad6254c5 6798 ac_status=$?
1995c9ff 6799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
6800 (exit $ac_status); }; }; then
6801 ac_cv_func_vfork_works=yes
6802else
1995c9ff
AK
6803 echo "$as_me: program exited with status $ac_status" >&5
6804echo "$as_me: failed program was:" >&5
ad6254c5
AK
6805sed 's/^/| /' conftest.$ac_ext >&5
6806
6807( exit $ac_status )
6808ac_cv_func_vfork_works=no
6809fi
7a197a62 6810rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 6811fi
7a197a62
AK
6812
6813
ad6254c5 6814fi
1995c9ff
AK
6815{ echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
6816echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
ad6254c5
AK
6817
6818fi;
6819if test "x$ac_cv_func_fork_works" = xcross; then
8a2fc586 6820 ac_cv_func_vfork_works=$ac_cv_func_vfork
1995c9ff
AK
6821 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
6822echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
ad6254c5
AK
6823fi
6824
6825if test "x$ac_cv_func_vfork_works" = xyes; then
6826
6827cat >>confdefs.h <<\_ACEOF
6828#define HAVE_WORKING_VFORK 1
6829_ACEOF
6830
6831else
6832
6833cat >>confdefs.h <<\_ACEOF
6834#define vfork fork
6835_ACEOF
6836
6837fi
6838if test "x$ac_cv_func_fork_works" = xyes; then
6839
6840cat >>confdefs.h <<\_ACEOF
6841#define HAVE_WORKING_FORK 1
6842_ACEOF
6843
6844fi
6845
1995c9ff
AK
6846{ echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
6847echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
ad6254c5 6848if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
1995c9ff 6849 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
6850else
6851 rm -f conftest.sym conftest.file
6852echo >conftest.file
6853if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
6854 if test "$cross_compiling" = yes; then
6855 ac_cv_func_lstat_dereferences_slashed_symlink=no
6856else
6857 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6858/* confdefs.h. */
6859_ACEOF
6860cat confdefs.h >>conftest.$ac_ext
6861cat >>conftest.$ac_ext <<_ACEOF
6862/* end confdefs.h. */
6863$ac_includes_default
6864int
6865main ()
6866{
6867struct stat sbuf;
6868 /* Linux will dereference the symlink and fail.
8a2fc586
AK
6869 That is better in the sense that it means we will not
6870 have to compile and use the lstat wrapper. */
7a197a62 6871 return lstat ("conftest.sym/", &sbuf) == 0;
ad6254c5
AK
6872 ;
6873 return 0;
6874}
6875_ACEOF
6876rm -f conftest$ac_exeext
7a197a62
AK
6877if { (ac_try="$ac_link"
6878case "(($ac_try" in
6879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6880 *) ac_try_echo=$ac_try;;
6881esac
1995c9ff 6882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6883 (eval "$ac_link") 2>&5
ad6254c5 6884 ac_status=$?
1995c9ff 6885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 6886 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
6887 { (case "(($ac_try" in
6888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6889 *) ac_try_echo=$ac_try;;
6890esac
1995c9ff 6891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6892 (eval "$ac_try") 2>&5
ad6254c5 6893 ac_status=$?
1995c9ff 6894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
6895 (exit $ac_status); }; }; then
6896 ac_cv_func_lstat_dereferences_slashed_symlink=yes
6897else
1995c9ff
AK
6898 echo "$as_me: program exited with status $ac_status" >&5
6899echo "$as_me: failed program was:" >&5
ad6254c5
AK
6900sed 's/^/| /' conftest.$ac_ext >&5
6901
6902( exit $ac_status )
6903ac_cv_func_lstat_dereferences_slashed_symlink=no
6904fi
7a197a62 6905rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 6906fi
7a197a62
AK
6907
6908
ad6254c5
AK
6909else
6910 # If the `ln -s' command failed, then we probably don't even
6911 # have an lstat function.
6912 ac_cv_func_lstat_dereferences_slashed_symlink=no
6913fi
6914rm -f conftest.sym conftest.file
6915
6916fi
1995c9ff
AK
6917{ echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
6918echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
ad6254c5
AK
6919
6920test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
6921
6922cat >>confdefs.h <<_ACEOF
6923#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
6924_ACEOF
6925
6926
6927if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
7a197a62 6928 case " $LIBOBJS " in
8a2fc586 6929 *" lstat.$ac_objext "* ) ;;
7a197a62
AK
6930 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
6931 ;;
8a2fc586
AK
6932esac
6933
ad6254c5
AK
6934fi
6935
1995c9ff
AK
6936{ echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
6937echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6; }
ad6254c5 6938if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
1995c9ff 6939 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
6940else
6941 if test "$cross_compiling" = yes; then
6942 ac_cv_func_lstat_empty_string_bug=yes
6943else
6944 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6945/* confdefs.h. */
6946_ACEOF
6947cat confdefs.h >>conftest.$ac_ext
6948cat >>conftest.$ac_ext <<_ACEOF
6949/* end confdefs.h. */
6950$ac_includes_default
6951int
6952main ()
6953{
6954struct stat sbuf;
7a197a62 6955 return lstat ("", &sbuf) == 0;
ad6254c5
AK
6956 ;
6957 return 0;
6958}
6959_ACEOF
6960rm -f conftest$ac_exeext
7a197a62
AK
6961if { (ac_try="$ac_link"
6962case "(($ac_try" in
6963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6964 *) ac_try_echo=$ac_try;;
6965esac
1995c9ff 6966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6967 (eval "$ac_link") 2>&5
ad6254c5 6968 ac_status=$?
1995c9ff 6969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 6970 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
6971 { (case "(($ac_try" in
6972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6973 *) ac_try_echo=$ac_try;;
6974esac
1995c9ff 6975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6976 (eval "$ac_try") 2>&5
ad6254c5 6977 ac_status=$?
1995c9ff 6978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 6979 (exit $ac_status); }; }; then
7a197a62 6980 ac_cv_func_lstat_empty_string_bug=no
ad6254c5 6981else
1995c9ff
AK
6982 echo "$as_me: program exited with status $ac_status" >&5
6983echo "$as_me: failed program was:" >&5
ad6254c5
AK
6984sed 's/^/| /' conftest.$ac_ext >&5
6985
6986( exit $ac_status )
7a197a62 6987ac_cv_func_lstat_empty_string_bug=yes
ad6254c5 6988fi
7a197a62 6989rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 6990fi
7a197a62
AK
6991
6992
ad6254c5 6993fi
1995c9ff
AK
6994{ echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
6995echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6; }
ad6254c5 6996if test $ac_cv_func_lstat_empty_string_bug = yes; then
7a197a62 6997 case " $LIBOBJS " in
8a2fc586 6998 *" lstat.$ac_objext "* ) ;;
7a197a62
AK
6999 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
7000 ;;
8a2fc586
AK
7001esac
7002
ad6254c5
AK
7003
7004cat >>confdefs.h <<_ACEOF
7005#define HAVE_LSTAT_EMPTY_STRING_BUG 1
7006_ACEOF
7007
7008fi
7009
7010
7011for ac_header in stdlib.h
7012do
1995c9ff 7013as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 7014if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff
AK
7015 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7016echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 7017if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff 7018 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 7019fi
1995c9ff
AK
7020ac_res=`eval echo '${'$as_ac_Header'}'`
7021 { echo "$as_me:$LINENO: result: $ac_res" >&5
7022echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
7023else
7024 # Is the header compilable?
1995c9ff
AK
7025{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
7026echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 7027cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7028/* confdefs.h. */
7029_ACEOF
7030cat confdefs.h >>conftest.$ac_ext
7031cat >>conftest.$ac_ext <<_ACEOF
7032/* end confdefs.h. */
7033$ac_includes_default
7034#include <$ac_header>
7035_ACEOF
7036rm -f conftest.$ac_objext
7a197a62
AK
7037if { (ac_try="$ac_compile"
7038case "(($ac_try" in
7039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7040 *) ac_try_echo=$ac_try;;
7041esac
1995c9ff 7042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7043 (eval "$ac_compile") 2>conftest.er1
ad6254c5 7044 ac_status=$?
8a2fc586
AK
7045 grep -v '^ *+' conftest.er1 >conftest.err
7046 rm -f conftest.er1
7047 cat conftest.err >&5
1995c9ff 7048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7049 (exit $ac_status); } && {
7050 test -z "$ac_c_werror_flag" ||
7051 test ! -s conftest.err
7052 } && test -s conftest.$ac_objext; then
ad6254c5
AK
7053 ac_header_compiler=yes
7054else
1995c9ff 7055 echo "$as_me: failed program was:" >&5
ad6254c5
AK
7056sed 's/^/| /' conftest.$ac_ext >&5
7057
7a197a62 7058 ac_header_compiler=no
ad6254c5 7059fi
7a197a62
AK
7060
7061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1995c9ff
AK
7062{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7063echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
7064
7065# Is the header present?
1995c9ff
AK
7066{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
7067echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 7068cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7069/* confdefs.h. */
7070_ACEOF
7071cat confdefs.h >>conftest.$ac_ext
7072cat >>conftest.$ac_ext <<_ACEOF
7073/* end confdefs.h. */
7074#include <$ac_header>
7075_ACEOF
7a197a62
AK
7076if { (ac_try="$ac_cpp conftest.$ac_ext"
7077case "(($ac_try" in
7078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7079 *) ac_try_echo=$ac_try;;
7080esac
1995c9ff 7081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7082 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
7083 ac_status=$?
7084 grep -v '^ *+' conftest.er1 >conftest.err
7085 rm -f conftest.er1
7086 cat conftest.err >&5
1995c9ff 7087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7088 (exit $ac_status); } >/dev/null && {
7089 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7090 test ! -s conftest.err
7091 }; then
ad6254c5
AK
7092 ac_header_preproc=yes
7093else
1995c9ff 7094 echo "$as_me: failed program was:" >&5
ad6254c5
AK
7095sed 's/^/| /' conftest.$ac_ext >&5
7096
7097 ac_header_preproc=no
7098fi
7a197a62 7099
ad6254c5 7100rm -f conftest.err conftest.$ac_ext
1995c9ff
AK
7101{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7102echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
7103
7104# So? What about this header?
8a2fc586
AK
7105case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7106 yes:no: )
1995c9ff
AK
7107 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7108echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7109 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7110echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 7111 ac_header_preproc=yes
ad6254c5 7112 ;;
8a2fc586 7113 no:yes:* )
1995c9ff
AK
7114 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7115echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7116 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7117echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7118 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7119echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7120 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7121echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7122 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7123echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7124 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7125echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 7126
ad6254c5
AK
7127 ;;
7128esac
1995c9ff
AK
7129{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7130echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 7131if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff 7132 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 7133else
8a2fc586 7134 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 7135fi
1995c9ff
AK
7136ac_res=`eval echo '${'$as_ac_Header'}'`
7137 { echo "$as_me:$LINENO: result: $ac_res" >&5
7138echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
7139
7140fi
1995c9ff 7141if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 7142 cat >>confdefs.h <<_ACEOF
1995c9ff 7143#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
7144_ACEOF
7145
7146fi
7147
7148done
7149
1995c9ff
AK
7150{ echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
7151echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
ad6254c5 7152if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
1995c9ff 7153 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
7154else
7155 if test "$cross_compiling" = yes; then
7156 ac_cv_func_malloc_0_nonnull=no
7157else
7158 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7159/* confdefs.h. */
7160_ACEOF
7161cat confdefs.h >>conftest.$ac_ext
7162cat >>conftest.$ac_ext <<_ACEOF
7163/* end confdefs.h. */
25fbec5b 7164#if defined STDC_HEADERS || defined HAVE_STDLIB_H
ad6254c5
AK
7165# include <stdlib.h>
7166#else
7167char *malloc ();
7168#endif
7169
7170int
7171main ()
7172{
7a197a62 7173return ! malloc (0);
ad6254c5
AK
7174 ;
7175 return 0;
7176}
7177_ACEOF
7178rm -f conftest$ac_exeext
7a197a62
AK
7179if { (ac_try="$ac_link"
7180case "(($ac_try" in
7181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7182 *) ac_try_echo=$ac_try;;
7183esac
1995c9ff 7184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7185 (eval "$ac_link") 2>&5
ad6254c5 7186 ac_status=$?
1995c9ff 7187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7188 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7189 { (case "(($ac_try" in
7190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7191 *) ac_try_echo=$ac_try;;
7192esac
1995c9ff 7193eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7194 (eval "$ac_try") 2>&5
ad6254c5 7195 ac_status=$?
1995c9ff 7196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7197 (exit $ac_status); }; }; then
7198 ac_cv_func_malloc_0_nonnull=yes
7199else
1995c9ff
AK
7200 echo "$as_me: program exited with status $ac_status" >&5
7201echo "$as_me: failed program was:" >&5
ad6254c5
AK
7202sed 's/^/| /' conftest.$ac_ext >&5
7203
7204( exit $ac_status )
7205ac_cv_func_malloc_0_nonnull=no
7206fi
7a197a62 7207rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7208fi
7a197a62
AK
7209
7210
ad6254c5 7211fi
1995c9ff
AK
7212{ echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
7213echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
ad6254c5
AK
7214if test $ac_cv_func_malloc_0_nonnull = yes; then
7215
7216cat >>confdefs.h <<\_ACEOF
7217#define HAVE_MALLOC 1
7218_ACEOF
7219
7220else
7221 cat >>confdefs.h <<\_ACEOF
7222#define HAVE_MALLOC 0
7223_ACEOF
7224
7a197a62 7225 case " $LIBOBJS " in
8a2fc586 7226 *" malloc.$ac_objext "* ) ;;
7a197a62
AK
7227 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
7228 ;;
8a2fc586
AK
7229esac
7230
ad6254c5
AK
7231
7232cat >>confdefs.h <<\_ACEOF
7233#define malloc rpl_malloc
7234_ACEOF
7235
7236fi
7237
7238
7239
1995c9ff
AK
7240{ echo "$as_me:$LINENO: checking for working memcmp" >&5
7241echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
ad6254c5 7242if test "${ac_cv_func_memcmp_working+set}" = set; then
1995c9ff 7243 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
7244else
7245 if test "$cross_compiling" = yes; then
7246 ac_cv_func_memcmp_working=no
7247else
7248 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7249/* confdefs.h. */
7250_ACEOF
7251cat confdefs.h >>conftest.$ac_ext
7252cat >>conftest.$ac_ext <<_ACEOF
7253/* end confdefs.h. */
8a2fc586 7254$ac_includes_default
ad6254c5
AK
7255int
7256main ()
7257{
7258
7259 /* Some versions of memcmp are not 8-bit clean. */
7a197a62 7260 char c0 = '\100', c1 = '\200', c2 = '\201';
ad6254c5 7261 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
7a197a62 7262 return 1;
ad6254c5
AK
7263
7264 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
7265 or more and with at least one buffer not starting on a 4-byte boundary.
7266 William Lewis provided this test program. */
7267 {
7268 char foo[21];
7269 char bar[21];
7270 int i;
7271 for (i = 0; i < 4; i++)
7272 {
8a2fc586
AK
7273 char *a = foo + i;
7274 char *b = bar + i;
7275 strcpy (a, "--------01111111");
7276 strcpy (b, "--------10000000");
7277 if (memcmp (a, b, 16) >= 0)
7a197a62 7278 return 1;
ad6254c5 7279 }
7a197a62 7280 return 0;
ad6254c5
AK
7281 }
7282
7283 ;
7284 return 0;
7285}
7286_ACEOF
7287rm -f conftest$ac_exeext
7a197a62
AK
7288if { (ac_try="$ac_link"
7289case "(($ac_try" in
7290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7291 *) ac_try_echo=$ac_try;;
7292esac
1995c9ff 7293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7294 (eval "$ac_link") 2>&5
ad6254c5 7295 ac_status=$?
1995c9ff 7296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7297 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7298 { (case "(($ac_try" in
7299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7300 *) ac_try_echo=$ac_try;;
7301esac
1995c9ff 7302eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7303 (eval "$ac_try") 2>&5
ad6254c5 7304 ac_status=$?
1995c9ff 7305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7306 (exit $ac_status); }; }; then
7307 ac_cv_func_memcmp_working=yes
7308else
1995c9ff
AK
7309 echo "$as_me: program exited with status $ac_status" >&5
7310echo "$as_me: failed program was:" >&5
ad6254c5
AK
7311sed 's/^/| /' conftest.$ac_ext >&5
7312
7313( exit $ac_status )
7314ac_cv_func_memcmp_working=no
7315fi
7a197a62 7316rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7317fi
7a197a62
AK
7318
7319
ad6254c5 7320fi
1995c9ff
AK
7321{ echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
7322echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
7a197a62 7323test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
8a2fc586 7324 *" memcmp.$ac_objext "* ) ;;
7a197a62
AK
7325 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
7326 ;;
8a2fc586
AK
7327esac
7328
ad6254c5
AK
7329
7330
7331
7332for ac_header in stdlib.h unistd.h
7333do
1995c9ff 7334as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 7335if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff
AK
7336 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7337echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 7338if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff 7339 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 7340fi
1995c9ff
AK
7341ac_res=`eval echo '${'$as_ac_Header'}'`
7342 { echo "$as_me:$LINENO: result: $ac_res" >&5
7343echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
7344else
7345 # Is the header compilable?
1995c9ff
AK
7346{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
7347echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 7348cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7349/* confdefs.h. */
7350_ACEOF
7351cat confdefs.h >>conftest.$ac_ext
7352cat >>conftest.$ac_ext <<_ACEOF
7353/* end confdefs.h. */
7354$ac_includes_default
7355#include <$ac_header>
7356_ACEOF
7357rm -f conftest.$ac_objext
7a197a62
AK
7358if { (ac_try="$ac_compile"
7359case "(($ac_try" in
7360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7361 *) ac_try_echo=$ac_try;;
7362esac
1995c9ff 7363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7364 (eval "$ac_compile") 2>conftest.er1
ad6254c5 7365 ac_status=$?
8a2fc586
AK
7366 grep -v '^ *+' conftest.er1 >conftest.err
7367 rm -f conftest.er1
7368 cat conftest.err >&5
1995c9ff 7369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7370 (exit $ac_status); } && {
7371 test -z "$ac_c_werror_flag" ||
7372 test ! -s conftest.err
7373 } && test -s conftest.$ac_objext; then
ad6254c5
AK
7374 ac_header_compiler=yes
7375else
1995c9ff 7376 echo "$as_me: failed program was:" >&5
ad6254c5
AK
7377sed 's/^/| /' conftest.$ac_ext >&5
7378
7a197a62 7379 ac_header_compiler=no
ad6254c5 7380fi
7a197a62
AK
7381
7382rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1995c9ff
AK
7383{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7384echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
7385
7386# Is the header present?
1995c9ff
AK
7387{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
7388echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 7389cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7390/* confdefs.h. */
7391_ACEOF
7392cat confdefs.h >>conftest.$ac_ext
7393cat >>conftest.$ac_ext <<_ACEOF
7394/* end confdefs.h. */
7395#include <$ac_header>
7396_ACEOF
7a197a62
AK
7397if { (ac_try="$ac_cpp conftest.$ac_ext"
7398case "(($ac_try" in
7399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7400 *) ac_try_echo=$ac_try;;
7401esac
1995c9ff 7402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7403 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
7404 ac_status=$?
7405 grep -v '^ *+' conftest.er1 >conftest.err
7406 rm -f conftest.er1
7407 cat conftest.err >&5
1995c9ff 7408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7409 (exit $ac_status); } >/dev/null && {
7410 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7411 test ! -s conftest.err
7412 }; then
ad6254c5
AK
7413 ac_header_preproc=yes
7414else
1995c9ff 7415 echo "$as_me: failed program was:" >&5
ad6254c5
AK
7416sed 's/^/| /' conftest.$ac_ext >&5
7417
7418 ac_header_preproc=no
7419fi
7a197a62 7420
ad6254c5 7421rm -f conftest.err conftest.$ac_ext
1995c9ff
AK
7422{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7423echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
7424
7425# So? What about this header?
8a2fc586
AK
7426case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7427 yes:no: )
1995c9ff
AK
7428 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7429echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7430 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7431echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 7432 ac_header_preproc=yes
ad6254c5 7433 ;;
8a2fc586 7434 no:yes:* )
1995c9ff
AK
7435 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7436echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7437 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7438echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7439 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7440echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7441 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7442echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7443 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7444echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7445 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7446echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 7447
ad6254c5
AK
7448 ;;
7449esac
1995c9ff
AK
7450{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7451echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 7452if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff 7453 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 7454else
8a2fc586 7455 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 7456fi
1995c9ff
AK
7457ac_res=`eval echo '${'$as_ac_Header'}'`
7458 { echo "$as_me:$LINENO: result: $ac_res" >&5
7459echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
7460
7461fi
1995c9ff 7462if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 7463 cat >>confdefs.h <<_ACEOF
1995c9ff 7464#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
7465_ACEOF
7466
7467fi
7468
7469done
7470
7471
7472for ac_func in getpagesize
7473do
1995c9ff
AK
7474as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7475{ echo "$as_me:$LINENO: checking for $ac_func" >&5
7476echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7a197a62 7477if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff 7478 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
7479else
7480 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7481/* confdefs.h. */
7482_ACEOF
7483cat confdefs.h >>conftest.$ac_ext
7484cat >>conftest.$ac_ext <<_ACEOF
7485/* end confdefs.h. */
8a2fc586
AK
7486/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7487 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7488#define $ac_func innocuous_$ac_func
7489
ad6254c5
AK
7490/* System header to define __stub macros and hopefully few prototypes,
7491 which can conflict with char $ac_func (); below.
7492 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7493 <limits.h> exists even on freestanding compilers. */
8a2fc586 7494
ad6254c5
AK
7495#ifdef __STDC__
7496# include <limits.h>
7497#else
7498# include <assert.h>
7499#endif
8a2fc586
AK
7500
7501#undef $ac_func
7502
7a197a62
AK
7503/* Override any GCC internal prototype to avoid an error.
7504 Use char because int might match the return type of a GCC
7505 builtin and then its argument prototype would still apply. */
ad6254c5
AK
7506#ifdef __cplusplus
7507extern "C"
ad6254c5 7508#endif
ad6254c5
AK
7509char $ac_func ();
7510/* The GNU C library defines this for functions which it implements
7511 to always fail with ENOSYS. Some functions are actually named
7512 something starting with __ and the normal name is an alias. */
7a197a62 7513#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 7514choke me
ad6254c5
AK
7515#endif
7516
7517int
7518main ()
7519{
7a197a62 7520return $ac_func ();
ad6254c5
AK
7521 ;
7522 return 0;
7523}
7524_ACEOF
7525rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
7526if { (ac_try="$ac_link"
7527case "(($ac_try" in
7528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7529 *) ac_try_echo=$ac_try;;
7530esac
1995c9ff 7531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7532 (eval "$ac_link") 2>conftest.er1
ad6254c5 7533 ac_status=$?
8a2fc586
AK
7534 grep -v '^ *+' conftest.er1 >conftest.err
7535 rm -f conftest.er1
7536 cat conftest.err >&5
1995c9ff 7537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7538 (exit $ac_status); } && {
7539 test -z "$ac_c_werror_flag" ||
7540 test ! -s conftest.err
7541 } && test -s conftest$ac_exeext &&
7542 $as_test_x conftest$ac_exeext; then
ad6254c5
AK
7543 eval "$as_ac_var=yes"
7544else
1995c9ff 7545 echo "$as_me: failed program was:" >&5
ad6254c5
AK
7546sed 's/^/| /' conftest.$ac_ext >&5
7547
7a197a62 7548 eval "$as_ac_var=no"
ad6254c5 7549fi
7a197a62 7550
25fbec5b 7551rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 7552 conftest$ac_exeext conftest.$ac_ext
ad6254c5 7553fi
1995c9ff
AK
7554ac_res=`eval echo '${'$as_ac_var'}'`
7555 { echo "$as_me:$LINENO: result: $ac_res" >&5
7556echo "${ECHO_T}$ac_res" >&6; }
7557if test `eval echo '${'$as_ac_var'}'` = yes; then
ad6254c5 7558 cat >>confdefs.h <<_ACEOF
1995c9ff 7559#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
7560_ACEOF
7561
7562fi
7563done
7564
1995c9ff
AK
7565{ echo "$as_me:$LINENO: checking for working mmap" >&5
7566echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
ad6254c5 7567if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
1995c9ff 7568 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
7569else
7570 if test "$cross_compiling" = yes; then
7571 ac_cv_func_mmap_fixed_mapped=no
7572else
7573 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7574/* confdefs.h. */
7575_ACEOF
7576cat confdefs.h >>conftest.$ac_ext
7577cat >>conftest.$ac_ext <<_ACEOF
7578/* end confdefs.h. */
7579$ac_includes_default
7580/* malloc might have been renamed as rpl_malloc. */
7581#undef malloc
7582
7583/* Thanks to Mike Haertel and Jim Avera for this test.
7584 Here is a matrix of mmap possibilities:
7585 mmap private not fixed
7586 mmap private fixed at somewhere currently unmapped
7587 mmap private fixed at somewhere already mapped
7588 mmap shared not fixed
7589 mmap shared fixed at somewhere currently unmapped
7590 mmap shared fixed at somewhere already mapped
7591 For private mappings, we should verify that changes cannot be read()
7592 back from the file, nor mmap's back from the file at a different
7593 address. (There have been systems where private was not correctly
7594 implemented like the infamous i386 svr4.0, and systems where the
7595 VM page cache was not coherent with the file system buffer cache
7596 like early versions of FreeBSD and possibly contemporary NetBSD.)
7597 For shared mappings, we should conversely verify that changes get
7598 propagated back to all the places they're supposed to be.
7599
7600 Grep wants private fixed already mapped.
7601 The main things grep needs to know about mmap are:
7602 * does it exist and is it safe to write into the mmap'd area
7603 * how to use it (BSD variants) */
7604
7605#include <fcntl.h>
7606#include <sys/mman.h>
7607
25fbec5b 7608#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
ad6254c5
AK
7609char *malloc ();
7610#endif
7611
7612/* This mess was copied from the GNU getpagesize.h. */
25fbec5b 7613#ifndef HAVE_GETPAGESIZE
ad6254c5 7614/* Assume that all systems that can run configure have sys/param.h. */
25fbec5b 7615# ifndef HAVE_SYS_PARAM_H
ad6254c5
AK
7616# define HAVE_SYS_PARAM_H 1
7617# endif
7618
7619# ifdef _SC_PAGESIZE
7620# define getpagesize() sysconf(_SC_PAGESIZE)
7621# else /* no _SC_PAGESIZE */
25fbec5b 7622# ifdef HAVE_SYS_PARAM_H
ad6254c5
AK
7623# include <sys/param.h>
7624# ifdef EXEC_PAGESIZE
7625# define getpagesize() EXEC_PAGESIZE
7626# else /* no EXEC_PAGESIZE */
7627# ifdef NBPG
7628# define getpagesize() NBPG * CLSIZE
7629# ifndef CLSIZE
7630# define CLSIZE 1
7631# endif /* no CLSIZE */
7632# else /* no NBPG */
7633# ifdef NBPC
7634# define getpagesize() NBPC
7635# else /* no NBPC */
7636# ifdef PAGESIZE
7637# define getpagesize() PAGESIZE
7638# endif /* PAGESIZE */
7639# endif /* no NBPC */
7640# endif /* no NBPG */
7641# endif /* no EXEC_PAGESIZE */
7642# else /* no HAVE_SYS_PARAM_H */
7643# define getpagesize() 8192 /* punt totally */
7644# endif /* no HAVE_SYS_PARAM_H */
7645# endif /* no _SC_PAGESIZE */
7646
7647#endif /* no HAVE_GETPAGESIZE */
7648
7649int
7650main ()
7651{
7652 char *data, *data2, *data3;
7653 int i, pagesize;
7654 int fd;
7655
7656 pagesize = getpagesize ();
7657
7658 /* First, make a file with some known garbage in it. */
7659 data = (char *) malloc (pagesize);
7660 if (!data)
7a197a62 7661 return 1;
ad6254c5
AK
7662 for (i = 0; i < pagesize; ++i)
7663 *(data + i) = rand ();
7664 umask (0);
7665 fd = creat ("conftest.mmap", 0600);
7666 if (fd < 0)
7a197a62 7667 return 1;
ad6254c5 7668 if (write (fd, data, pagesize) != pagesize)
7a197a62 7669 return 1;
ad6254c5
AK
7670 close (fd);
7671
7672 /* Next, try to mmap the file at a fixed address which already has
7673 something else allocated at it. If we can, also make sure that
7674 we see the same garbage. */
7675 fd = open ("conftest.mmap", O_RDWR);
7676 if (fd < 0)
7a197a62 7677 return 1;
ad6254c5
AK
7678 data2 = (char *) malloc (2 * pagesize);
7679 if (!data2)
7a197a62
AK
7680 return 1;
7681 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
ad6254c5 7682 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8a2fc586 7683 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7a197a62 7684 return 1;
ad6254c5
AK
7685 for (i = 0; i < pagesize; ++i)
7686 if (*(data + i) != *(data2 + i))
7a197a62 7687 return 1;
ad6254c5
AK
7688
7689 /* Finally, make sure that changes to the mapped area do not
7690 percolate back to the file as seen by read(). (This is a bug on
7691 some variants of i386 svr4.0.) */
7692 for (i = 0; i < pagesize; ++i)
7693 *(data2 + i) = *(data2 + i) + 1;
7694 data3 = (char *) malloc (pagesize);
7695 if (!data3)
7a197a62 7696 return 1;
ad6254c5 7697 if (read (fd, data3, pagesize) != pagesize)
7a197a62 7698 return 1;
ad6254c5
AK
7699 for (i = 0; i < pagesize; ++i)
7700 if (*(data + i) != *(data3 + i))
7a197a62 7701 return 1;
ad6254c5 7702 close (fd);
7a197a62 7703 return 0;
ad6254c5
AK
7704}
7705_ACEOF
7706rm -f conftest$ac_exeext
7a197a62
AK
7707if { (ac_try="$ac_link"
7708case "(($ac_try" in
7709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7710 *) ac_try_echo=$ac_try;;
7711esac
1995c9ff 7712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7713 (eval "$ac_link") 2>&5
ad6254c5 7714 ac_status=$?
1995c9ff 7715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7716 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7717 { (case "(($ac_try" in
7718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7719 *) ac_try_echo=$ac_try;;
7720esac
1995c9ff 7721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7722 (eval "$ac_try") 2>&5
ad6254c5 7723 ac_status=$?
1995c9ff 7724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7725 (exit $ac_status); }; }; then
7726 ac_cv_func_mmap_fixed_mapped=yes
7727else
1995c9ff
AK
7728 echo "$as_me: program exited with status $ac_status" >&5
7729echo "$as_me: failed program was:" >&5
ad6254c5
AK
7730sed 's/^/| /' conftest.$ac_ext >&5
7731
7732( exit $ac_status )
7733ac_cv_func_mmap_fixed_mapped=no
7734fi
7a197a62 7735rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7736fi
7a197a62
AK
7737
7738
ad6254c5 7739fi
1995c9ff
AK
7740{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7741echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
ad6254c5
AK
7742if test $ac_cv_func_mmap_fixed_mapped = yes; then
7743
7744cat >>confdefs.h <<\_ACEOF
7745#define HAVE_MMAP 1
7746_ACEOF
7747
7748fi
7749rm -f conftest.mmap
7750
1995c9ff
AK
7751{ echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
7752echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
ad6254c5 7753if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
1995c9ff 7754 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
7755else
7756 if test "$cross_compiling" = yes; then
7757 ac_cv_func_stat_empty_string_bug=yes
7758else
7759 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7760/* confdefs.h. */
7761_ACEOF
7762cat confdefs.h >>conftest.$ac_ext
7763cat >>conftest.$ac_ext <<_ACEOF
7764/* end confdefs.h. */
7765$ac_includes_default
7766int
7767main ()
7768{
7769struct stat sbuf;
7a197a62 7770 return stat ("", &sbuf) == 0;
ad6254c5
AK
7771 ;
7772 return 0;
7773}
7774_ACEOF
7775rm -f conftest$ac_exeext
7a197a62
AK
7776if { (ac_try="$ac_link"
7777case "(($ac_try" in
7778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7779 *) ac_try_echo=$ac_try;;
7780esac
1995c9ff 7781eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7782 (eval "$ac_link") 2>&5
ad6254c5 7783 ac_status=$?
1995c9ff 7784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7785 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7786 { (case "(($ac_try" in
7787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7788 *) ac_try_echo=$ac_try;;
7789esac
1995c9ff 7790eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7791 (eval "$ac_try") 2>&5
ad6254c5 7792 ac_status=$?
1995c9ff 7793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7794 (exit $ac_status); }; }; then
7a197a62 7795 ac_cv_func_stat_empty_string_bug=no
ad6254c5 7796else
1995c9ff
AK
7797 echo "$as_me: program exited with status $ac_status" >&5
7798echo "$as_me: failed program was:" >&5
ad6254c5
AK
7799sed 's/^/| /' conftest.$ac_ext >&5
7800
7801( exit $ac_status )
7a197a62 7802ac_cv_func_stat_empty_string_bug=yes
ad6254c5 7803fi
7a197a62 7804rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7805fi
7a197a62
AK
7806
7807
ad6254c5 7808fi
1995c9ff
AK
7809{ echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
7810echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
ad6254c5 7811if test $ac_cv_func_stat_empty_string_bug = yes; then
7a197a62 7812 case " $LIBOBJS " in
8a2fc586 7813 *" stat.$ac_objext "* ) ;;
7a197a62
AK
7814 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
7815 ;;
8a2fc586
AK
7816esac
7817
ad6254c5
AK
7818
7819cat >>confdefs.h <<_ACEOF
7820#define HAVE_STAT_EMPTY_STRING_BUG 1
7821_ACEOF
7822
7823fi
7824
1995c9ff
AK
7825{ echo "$as_me:$LINENO: checking for working strtod" >&5
7826echo $ECHO_N "checking for working strtod... $ECHO_C" >&6; }
ad6254c5 7827if test "${ac_cv_func_strtod+set}" = set; then
1995c9ff 7828 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
7829else
7830 if test "$cross_compiling" = yes; then
7831 ac_cv_func_strtod=no
7832else
7833 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7834/* confdefs.h. */
7835_ACEOF
7836cat confdefs.h >>conftest.$ac_ext
7837cat >>conftest.$ac_ext <<_ACEOF
7838/* end confdefs.h. */
7839
7a197a62
AK
7840$ac_includes_default
7841#ifndef strtod
ad6254c5 7842double strtod ();
7a197a62 7843#endif
ad6254c5
AK
7844int
7845main()
7846{
7847 {
7848 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
7849 char *string = " +69";
7850 char *term;
7851 double value;
7852 value = strtod (string, &term);
7853 if (value != 69 || term != (string + 4))
7a197a62 7854 return 1;
ad6254c5
AK
7855 }
7856
7857 {
7858 /* Under Solaris 2.4, strtod returns the wrong value for the
7859 terminating character under some conditions. */
7860 char *string = "NaN";
7861 char *term;
7862 strtod (string, &term);
7863 if (term != string && *(term - 1) == 0)
7a197a62 7864 return 1;
ad6254c5 7865 }
7a197a62 7866 return 0;
ad6254c5
AK
7867}
7868
7869_ACEOF
7870rm -f conftest$ac_exeext
7a197a62
AK
7871if { (ac_try="$ac_link"
7872case "(($ac_try" in
7873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7874 *) ac_try_echo=$ac_try;;
7875esac
1995c9ff 7876eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7877 (eval "$ac_link") 2>&5
ad6254c5 7878 ac_status=$?
1995c9ff 7879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7880 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7881 { (case "(($ac_try" in
7882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7883 *) ac_try_echo=$ac_try;;
7884esac
1995c9ff 7885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7886 (eval "$ac_try") 2>&5
ad6254c5 7887 ac_status=$?
1995c9ff 7888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7889 (exit $ac_status); }; }; then
7890 ac_cv_func_strtod=yes
7891else
1995c9ff
AK
7892 echo "$as_me: program exited with status $ac_status" >&5
7893echo "$as_me: failed program was:" >&5
ad6254c5
AK
7894sed 's/^/| /' conftest.$ac_ext >&5
7895
7896( exit $ac_status )
7897ac_cv_func_strtod=no
7898fi
7a197a62 7899rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7900fi
7a197a62
AK
7901
7902
ad6254c5 7903fi
1995c9ff
AK
7904{ echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
7905echo "${ECHO_T}$ac_cv_func_strtod" >&6; }
ad6254c5 7906if test $ac_cv_func_strtod = no; then
7a197a62 7907 case " $LIBOBJS " in
8a2fc586 7908 *" strtod.$ac_objext "* ) ;;
7a197a62
AK
7909 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
7910 ;;
8a2fc586
AK
7911esac
7912
1995c9ff
AK
7913{ echo "$as_me:$LINENO: checking for pow" >&5
7914echo $ECHO_N "checking for pow... $ECHO_C" >&6; }
ad6254c5 7915if test "${ac_cv_func_pow+set}" = set; then
1995c9ff 7916 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
7917else
7918 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7919/* confdefs.h. */
7920_ACEOF
7921cat confdefs.h >>conftest.$ac_ext
7922cat >>conftest.$ac_ext <<_ACEOF
7923/* end confdefs.h. */
8a2fc586
AK
7924/* Define pow to an innocuous variant, in case <limits.h> declares pow.
7925 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7926#define pow innocuous_pow
7927
ad6254c5
AK
7928/* System header to define __stub macros and hopefully few prototypes,
7929 which can conflict with char pow (); below.
7930 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7931 <limits.h> exists even on freestanding compilers. */
8a2fc586 7932
ad6254c5
AK
7933#ifdef __STDC__
7934# include <limits.h>
7935#else
7936# include <assert.h>
7937#endif
8a2fc586
AK
7938
7939#undef pow
7940
7a197a62
AK
7941/* Override any GCC internal prototype to avoid an error.
7942 Use char because int might match the return type of a GCC
7943 builtin and then its argument prototype would still apply. */
ad6254c5
AK
7944#ifdef __cplusplus
7945extern "C"
ad6254c5 7946#endif
ad6254c5
AK
7947char pow ();
7948/* The GNU C library defines this for functions which it implements
7949 to always fail with ENOSYS. Some functions are actually named
7950 something starting with __ and the normal name is an alias. */
7a197a62 7951#if defined __stub_pow || defined __stub___pow
ad6254c5 7952choke me
ad6254c5
AK
7953#endif
7954
7955int
7956main ()
7957{
7a197a62 7958return pow ();
ad6254c5
AK
7959 ;
7960 return 0;
7961}
7962_ACEOF
7963rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
7964if { (ac_try="$ac_link"
7965case "(($ac_try" in
7966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7967 *) ac_try_echo=$ac_try;;
7968esac
1995c9ff 7969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7970 (eval "$ac_link") 2>conftest.er1
ad6254c5 7971 ac_status=$?
8a2fc586
AK
7972 grep -v '^ *+' conftest.er1 >conftest.err
7973 rm -f conftest.er1
7974 cat conftest.err >&5
1995c9ff 7975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7976 (exit $ac_status); } && {
7977 test -z "$ac_c_werror_flag" ||
7978 test ! -s conftest.err
7979 } && test -s conftest$ac_exeext &&
7980 $as_test_x conftest$ac_exeext; then
ad6254c5
AK
7981 ac_cv_func_pow=yes
7982else
1995c9ff 7983 echo "$as_me: failed program was:" >&5
ad6254c5
AK
7984sed 's/^/| /' conftest.$ac_ext >&5
7985
7a197a62 7986 ac_cv_func_pow=no
ad6254c5 7987fi
7a197a62 7988
25fbec5b 7989rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 7990 conftest$ac_exeext conftest.$ac_ext
ad6254c5 7991fi
1995c9ff
AK
7992{ echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
7993echo "${ECHO_T}$ac_cv_func_pow" >&6; }
ad6254c5
AK
7994
7995if test $ac_cv_func_pow = no; then
1995c9ff
AK
7996 { echo "$as_me:$LINENO: checking for pow in -lm" >&5
7997echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6; }
ad6254c5 7998if test "${ac_cv_lib_m_pow+set}" = set; then
1995c9ff 7999 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
8000else
8001 ac_check_lib_save_LIBS=$LIBS
8002LIBS="-lm $LIBS"
8003cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8004/* confdefs.h. */
8005_ACEOF
8006cat confdefs.h >>conftest.$ac_ext
8007cat >>conftest.$ac_ext <<_ACEOF
8008/* end confdefs.h. */
8009
7a197a62
AK
8010/* Override any GCC internal prototype to avoid an error.
8011 Use char because int might match the return type of a GCC
8012 builtin and then its argument prototype would still apply. */
ad6254c5
AK
8013#ifdef __cplusplus
8014extern "C"
8015#endif
ad6254c5
AK
8016char pow ();
8017int
8018main ()
8019{
7a197a62 8020return pow ();
ad6254c5
AK
8021 ;
8022 return 0;
8023}
8024_ACEOF
8025rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
8026if { (ac_try="$ac_link"
8027case "(($ac_try" in
8028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8029 *) ac_try_echo=$ac_try;;
8030esac
1995c9ff 8031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 8032 (eval "$ac_link") 2>conftest.er1
ad6254c5 8033 ac_status=$?
8a2fc586
AK
8034 grep -v '^ *+' conftest.er1 >conftest.err
8035 rm -f conftest.er1
8036 cat conftest.err >&5
1995c9ff 8037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8038 (exit $ac_status); } && {
8039 test -z "$ac_c_werror_flag" ||
8040 test ! -s conftest.err
8041 } && test -s conftest$ac_exeext &&
8042 $as_test_x conftest$ac_exeext; then
ad6254c5
AK
8043 ac_cv_lib_m_pow=yes
8044else
1995c9ff 8045 echo "$as_me: failed program was:" >&5
ad6254c5
AK
8046sed 's/^/| /' conftest.$ac_ext >&5
8047
7a197a62 8048 ac_cv_lib_m_pow=no
ad6254c5 8049fi
7a197a62 8050
25fbec5b 8051rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 8052 conftest$ac_exeext conftest.$ac_ext
ad6254c5 8053LIBS=$ac_check_lib_save_LIBS
d0191583
JM
8054fi
8055{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
8056echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; }
8057if test $ac_cv_lib_m_pow = yes; then
8058 POW_LIB=-lm
8059else
8060 { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
8061echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
8062fi
72b2cb61 8063
d0191583 8064fi
72b2cb61 8065
ad6254c5
AK
8066fi
8067
ad6254c5 8068
d0191583
JM
8069for ac_func in vprintf
8070do
8071as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8072{ echo "$as_me:$LINENO: checking for $ac_func" >&5
8073echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8074if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8075 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 8076else
d0191583
JM
8077 cat >conftest.$ac_ext <<_ACEOF
8078/* confdefs.h. */
8079_ACEOF
8080cat confdefs.h >>conftest.$ac_ext
8081cat >>conftest.$ac_ext <<_ACEOF
8082/* end confdefs.h. */
8083/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8084 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8085#define $ac_func innocuous_$ac_func
7a197a62 8086
d0191583
JM
8087/* System header to define __stub macros and hopefully few prototypes,
8088 which can conflict with char $ac_func (); below.
8089 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8090 <limits.h> exists even on freestanding compilers. */
ad6254c5 8091
d0191583
JM
8092#ifdef __STDC__
8093# include <limits.h>
8094#else
8095# include <assert.h>
8096#endif
ad6254c5 8097
d0191583 8098#undef $ac_func
72b2cb61 8099
d0191583
JM
8100/* Override any GCC internal prototype to avoid an error.
8101 Use char because int might match the return type of a GCC
8102 builtin and then its argument prototype would still apply. */
8103#ifdef __cplusplus
8104extern "C"
8105#endif
8106char $ac_func ();
8107/* The GNU C library defines this for functions which it implements
8108 to always fail with ENOSYS. Some functions are actually named
8109 something starting with __ and the normal name is an alias. */
8110#if defined __stub_$ac_func || defined __stub___$ac_func
8111choke me
8112#endif
8113
8114int
8115main ()
8116{
8117return $ac_func ();
8118 ;
8119 return 0;
8120}
72b2cb61 8121_ACEOF
d0191583
JM
8122rm -f conftest.$ac_objext conftest$ac_exeext
8123if { (ac_try="$ac_link"
8124case "(($ac_try" in
8125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8126 *) ac_try_echo=$ac_try;;
8127esac
8128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8129 (eval "$ac_link") 2>conftest.er1
8130 ac_status=$?
8131 grep -v '^ *+' conftest.er1 >conftest.err
8132 rm -f conftest.er1
8133 cat conftest.err >&5
8134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8135 (exit $ac_status); } && {
8136 test -z "$ac_c_werror_flag" ||
8137 test ! -s conftest.err
8138 } && test -s conftest$ac_exeext &&
8139 $as_test_x conftest$ac_exeext; then
8140 eval "$as_ac_var=yes"
8141else
8142 echo "$as_me: failed program was:" >&5
8143sed 's/^/| /' conftest.$ac_ext >&5
72b2cb61 8144
d0191583 8145 eval "$as_ac_var=no"
ad6254c5
AK
8146fi
8147
d0191583
JM
8148rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8149 conftest$ac_exeext conftest.$ac_ext
7a197a62 8150fi
d0191583
JM
8151ac_res=`eval echo '${'$as_ac_var'}'`
8152 { echo "$as_me:$LINENO: result: $ac_res" >&5
8153echo "${ECHO_T}$ac_res" >&6; }
8154if test `eval echo '${'$as_ac_var'}'` = yes; then
8155 cat >>confdefs.h <<_ACEOF
8156#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8157_ACEOF
7a197a62 8158
d0191583
JM
8159{ echo "$as_me:$LINENO: checking for _doprnt" >&5
8160echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
8161if test "${ac_cv_func__doprnt+set}" = set; then
8162 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 8163else
d0191583
JM
8164 cat >conftest.$ac_ext <<_ACEOF
8165/* confdefs.h. */
8166_ACEOF
8167cat confdefs.h >>conftest.$ac_ext
8168cat >>conftest.$ac_ext <<_ACEOF
8169/* end confdefs.h. */
8170/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
8171 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8172#define _doprnt innocuous__doprnt
7a197a62 8173
d0191583
JM
8174/* System header to define __stub macros and hopefully few prototypes,
8175 which can conflict with char _doprnt (); below.
8176 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8177 <limits.h> exists even on freestanding compilers. */
ad6254c5 8178
d0191583
JM
8179#ifdef __STDC__
8180# include <limits.h>
8181#else
8182# include <assert.h>
8183#endif
72b2cb61 8184
d0191583
JM
8185#undef _doprnt
8186
8187/* Override any GCC internal prototype to avoid an error.
8188 Use char because int might match the return type of a GCC
8189 builtin and then its argument prototype would still apply. */
8190#ifdef __cplusplus
8191extern "C"
8192#endif
8193char _doprnt ();
8194/* The GNU C library defines this for functions which it implements
8195 to always fail with ENOSYS. Some functions are actually named
8196 something starting with __ and the normal name is an alias. */
8197#if defined __stub__doprnt || defined __stub____doprnt
8198choke me
8199#endif
8200
8201int
8202main ()
8203{
8204return _doprnt ();
8205 ;
8206 return 0;
8207}
72b2cb61 8208_ACEOF
d0191583
JM
8209rm -f conftest.$ac_objext conftest$ac_exeext
8210if { (ac_try="$ac_link"
8211case "(($ac_try" in
8212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8213 *) ac_try_echo=$ac_try;;
8214esac
8215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8216 (eval "$ac_link") 2>conftest.er1
8217 ac_status=$?
8218 grep -v '^ *+' conftest.er1 >conftest.err
8219 rm -f conftest.er1
8220 cat conftest.err >&5
8221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8222 (exit $ac_status); } && {
8223 test -z "$ac_c_werror_flag" ||
8224 test ! -s conftest.err
8225 } && test -s conftest$ac_exeext &&
8226 $as_test_x conftest$ac_exeext; then
8227 ac_cv_func__doprnt=yes
8228else
8229 echo "$as_me: failed program was:" >&5
8230sed 's/^/| /' conftest.$ac_ext >&5
72b2cb61 8231
d0191583 8232 ac_cv_func__doprnt=no
ad6254c5
AK
8233fi
8234
d0191583
JM
8235rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8236 conftest$ac_exeext conftest.$ac_ext
7a197a62 8237fi
d0191583
JM
8238{ echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
8239echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
8240if test $ac_cv_func__doprnt = yes; then
7a197a62 8241
d0191583
JM
8242cat >>confdefs.h <<\_ACEOF
8243#define HAVE_DOPRNT 1
8244_ACEOF
ad6254c5 8245
7a197a62
AK
8246fi
8247
d0191583
JM
8248fi
8249done
8b1a3214 8250
ad6254c5 8251
7a197a62 8252
d0191583 8253################################################################################
ad6254c5 8254
ad6254c5
AK
8255
8256################################################################################
d0191583
JM
8257{ echo "$as_me:$LINENO: checking file owner" >&5
8258echo $ECHO_N "checking file owner... $ECHO_C" >&6; }
8259OWNER="root"
8260
8261
8262# Check whether --with-user was given.
8263if test "${with_user+set}" = set; then
8264 withval=$with_user; OWNER="$withval"
7a197a62
AK
8265fi
8266
d0191583
JM
8267{ echo "$as_me:$LINENO: result: $OWNER" >&5
8268echo "${ECHO_T}$OWNER" >&6; }
ad6254c5 8269
d0191583
JM
8270if test x$OWNER != x; then
8271 OWNER="-o $OWNER"
ad6254c5
AK
8272fi
8273
8274################################################################################
d0191583
JM
8275{ echo "$as_me:$LINENO: checking group owner" >&5
8276echo $ECHO_N "checking group owner... $ECHO_C" >&6; }
8277GROUP="root"
ad6254c5 8278
d0191583
JM
8279# Check whether --with-group was given.
8280if test "${with_group+set}" = set; then
8281 withval=$with_group; GROUP="$withval"
7a197a62
AK
8282fi
8283
d0191583
JM
8284{ echo "$as_me:$LINENO: result: $GROUP" >&5
8285echo "${ECHO_T}$GROUP" >&6; }
8286
8287if test x$GROUP != x; then
8288 GROUP="-g $GROUP"
8289fi
ad6254c5
AK
8290
8291################################################################################
d0191583
JM
8292{ echo "$as_me:$LINENO: checking whether to enable lvm1 fallback" >&5
8293echo $ECHO_N "checking whether to enable lvm1 fallback... $ECHO_C" >&6; }
8294# Check whether --enable-lvm1_fallback was given.
8295if test "${enable_lvm1_fallback+set}" = set; then
8296 enableval=$enable_lvm1_fallback; LVM1_FALLBACK=$enableval
8297else
8298 LVM1_FALLBACK=no
7a197a62
AK
8299fi
8300
d0191583
JM
8301{ echo "$as_me:$LINENO: result: $LVM1_FALLBACK" >&5
8302echo "${ECHO_T}$LVM1_FALLBACK" >&6; }
ad6254c5 8303
d0191583 8304if test x$LVM1_FALLBACK = xyes; then
72b2cb61
AK
8305
8306cat >>confdefs.h <<\_ACEOF
d0191583 8307#define LVM1_FALLBACK 1
72b2cb61
AK
8308_ACEOF
8309
ad6254c5
AK
8310fi
8311
8312################################################################################
d0191583
JM
8313{ echo "$as_me:$LINENO: checking whether to include support for lvm1 metadata" >&5
8314echo $ECHO_N "checking whether to include support for lvm1 metadata... $ECHO_C" >&6; }
8315
8316# Check whether --with-lvm1 was given.
8317if test "${with_lvm1+set}" = set; then
8318 withval=$with_lvm1; LVM1="$withval"
8319else
8320 LVM1="internal"
7a197a62
AK
8321fi
8322
d0191583
JM
8323{ echo "$as_me:$LINENO: result: $LVM1" >&5
8324echo "${ECHO_T}$LVM1" >&6; }
ad6254c5 8325
d0191583
JM
8326if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ];
8327 then { { echo "$as_me:$LINENO: error: --with-lvm1 parameter invalid
8328" >&5
8329echo "$as_me: error: --with-lvm1 parameter invalid
8330" >&2;}
8331 { (exit 1); exit 1; }; }
8332fi;
8333
8334if test x$LVM1 = xinternal; then
72b2cb61
AK
8335
8336cat >>confdefs.h <<\_ACEOF
d0191583 8337#define LVM1_INTERNAL 1
72b2cb61
AK
8338_ACEOF
8339
ad6254c5
AK
8340fi
8341
8342################################################################################
d0191583
JM
8343{ echo "$as_me:$LINENO: checking whether to include support for GFS pool metadata" >&5
8344echo $ECHO_N "checking whether to include support for GFS pool metadata... $ECHO_C" >&6; }
8345
8346# Check whether --with-pool was given.
8347if test "${with_pool+set}" = set; then
8348 withval=$with_pool; POOL="$withval"
ad6254c5 8349else
d0191583 8350 POOL="internal"
7a197a62
AK
8351fi
8352
d0191583
JM
8353{ echo "$as_me:$LINENO: result: $POOL" >&5
8354echo "${ECHO_T}$POOL" >&6; }
ad6254c5 8355
d0191583
JM
8356if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ];
8357 then { { echo "$as_me:$LINENO: error: --with-pool parameter invalid
8358" >&5
8359echo "$as_me: error: --with-pool parameter invalid
8360" >&2;}
8361 { (exit 1); exit 1; }; }
8362fi;
7a197a62 8363
d0191583
JM
8364if test x$POOL = xinternal; then
8365
8366cat >>confdefs.h <<\_ACEOF
8367#define POOL_INTERNAL 1
8368_ACEOF
8369
8370fi
ad6254c5 8371
06f62ad1 8372################################################################################
d0191583
JM
8373{ echo "$as_me:$LINENO: checking whether to include support for cluster locking" >&5
8374echo $ECHO_N "checking whether to include support for cluster locking... $ECHO_C" >&6; }
8375
8376# Check whether --with-cluster was given.
8377if test "${with_cluster+set}" = set; then
8378 withval=$with_cluster; CLUSTER="$withval"
7a197a62
AK
8379fi
8380
d0191583
JM
8381{ echo "$as_me:$LINENO: result: $CLUSTER" >&5
8382echo "${ECHO_T}$CLUSTER" >&6; }
06f62ad1 8383
d0191583
JM
8384if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ];
8385 then { { echo "$as_me:$LINENO: error: --with-cluster parameter invalid
06f62ad1 8386" >&5
d0191583 8387echo "$as_me: error: --with-cluster parameter invalid
06f62ad1
AK
8388" >&2;}
8389 { (exit 1); exit 1; }; }
d0191583 8390fi;
06f62ad1 8391
d0191583 8392if test x$CLUSTER = xinternal; then
72b2cb61
AK
8393
8394cat >>confdefs.h <<\_ACEOF
d0191583 8395#define CLUSTER_LOCKING_INTERNAL 1
72b2cb61
AK
8396_ACEOF
8397
15d91f5a 8398fi
ad6254c5
AK
8399
8400################################################################################
d0191583
JM
8401{ echo "$as_me:$LINENO: checking whether to include snapshots" >&5
8402echo $ECHO_N "checking whether to include snapshots... $ECHO_C" >&6; }
ad6254c5 8403
d0191583
JM
8404# Check whether --with-snapshots was given.
8405if test "${with_snapshots+set}" = set; then
8406 withval=$with_snapshots; SNAPSHOTS="$withval"
8407else
8408 SNAPSHOTS="internal"
ad6254c5
AK
8409fi
8410
d0191583
JM
8411{ echo "$as_me:$LINENO: result: $SNAPSHOTS" >&5
8412echo "${ECHO_T}$SNAPSHOTS" >&6; }
ad6254c5 8413
d0191583
JM
8414if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ];
8415 then { { echo "$as_me:$LINENO: error: --with-snapshots parameter invalid
8416" >&5
8417echo "$as_me: error: --with-snapshots parameter invalid
8418" >&2;}
8419 { (exit 1); exit 1; }; }
8420fi;
8421
8422if test x$SNAPSHOTS = xinternal; then
8423
8424cat >>confdefs.h <<\_ACEOF
8425#define SNAPSHOT_INTERNAL 1
8426_ACEOF
ad6254c5 8427
ad6254c5 8428fi
7a197a62 8429
d0191583
JM
8430################################################################################
8431{ echo "$as_me:$LINENO: checking whether to include mirrors" >&5
8432echo $ECHO_N "checking whether to include mirrors... $ECHO_C" >&6; }
8433
8434# Check whether --with-mirrors was given.
8435if test "${with_mirrors+set}" = set; then
8436 withval=$with_mirrors; MIRRORS="$withval"
8437else
8438 MIRRORS="internal"
ad6254c5 8439fi
ad6254c5 8440
d0191583
JM
8441{ echo "$as_me:$LINENO: result: $MIRRORS" >&5
8442echo "${ECHO_T}$MIRRORS" >&6; }
ad6254c5 8443
d0191583
JM
8444if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ];
8445 then { { echo "$as_me:$LINENO: error: --with-mirrors parameter invalid
8446" >&5
8447echo "$as_me: error: --with-mirrors parameter invalid
8448" >&2;}
8449 { (exit 1); exit 1; }; }
8450fi;
ad6254c5 8451
d0191583 8452if test x$MIRRORS = xinternal; then
ad6254c5 8453
d0191583
JM
8454cat >>confdefs.h <<\_ACEOF
8455#define MIRRORED_INTERNAL 1
ad6254c5 8456_ACEOF
8a2fc586 8457
d0191583 8458fi
8a2fc586 8459
d0191583
JM
8460################################################################################
8461{ echo "$as_me:$LINENO: checking whether to enable readline" >&5
8462echo $ECHO_N "checking whether to enable readline... $ECHO_C" >&6; }
8463# Check whether --enable-readline was given.
8464if test "${enable_readline+set}" = set; then
8465 enableval=$enable_readline; READLINE=$enableval
8466else
8467 READLINE=no
8468fi
8a2fc586 8469
d0191583
JM
8470{ echo "$as_me:$LINENO: result: $READLINE" >&5
8471echo "${ECHO_T}$READLINE" >&6; }
8a2fc586 8472
d0191583
JM
8473################################################################################
8474{ echo "$as_me:$LINENO: checking whether to enable realtime support" >&5
8475echo $ECHO_N "checking whether to enable realtime support... $ECHO_C" >&6; }
8476# Check whether --enable-realtime was given.
8477if test "${enable_realtime+set}" = set; then
8478 enableval=$enable_realtime; REALTIME=$enableval
ad6254c5 8479fi
ad6254c5 8480
d0191583
JM
8481{ echo "$as_me:$LINENO: result: $REALTIME" >&5
8482echo "${ECHO_T}$REALTIME" >&6; }
8483
8484################################################################################
8485{ echo "$as_me:$LINENO: checking whether to build cluster LVM daemon" >&5
8486echo $ECHO_N "checking whether to build cluster LVM daemon... $ECHO_C" >&6; }
8487
8488# Check whether --with-clvmd was given.
8489if test "${with_clvmd+set}" = set; then
8490 withval=$with_clvmd; CLVMD="$withval"
ad6254c5 8491else
d0191583
JM
8492 CLVMD="none"
8493fi
8a2fc586 8494
d0191583
JM
8495if test x$CLVMD = xyes; then
8496 CLVMD=all
8497fi
8498{ echo "$as_me:$LINENO: result: $CLVMD" >&5
8499echo "${ECHO_T}$CLVMD" >&6; }
8a2fc586 8500
d0191583
JM
8501if test x$CLVMD != xnone && test x$CLUSTER = xnone; then
8502 CLUSTER=internal
8503fi
8a2fc586 8504
d0191583
JM
8505################################################################################
8506{ echo "$as_me:$LINENO: checking whether to enable debugging" >&5
8507echo $ECHO_N "checking whether to enable debugging... $ECHO_C" >&6; }
8508# Check whether --enable-debug was given.
8509if test "${enable_debug+set}" = set; then
8510 enableval=$enable_debug; DEBUG=$enableval
8511else
8512 DEBUG=no
8513fi
8a2fc586 8514
d0191583
JM
8515{ echo "$as_me:$LINENO: result: $DEBUG" >&5
8516echo "${ECHO_T}$DEBUG" >&6; }
ad6254c5 8517
d0191583
JM
8518if test x$DEBUG = xyes; then
8519 COPTIMISE_FLAG=
fc54be10 8520else
d0191583
JM
8521 CSCOPE_CMD=
8522fi
fc54be10 8523
d0191583
JM
8524################################################################################
8525{ echo "$as_me:$LINENO: checking for C optimisation flag" >&5
8526echo $ECHO_N "checking for C optimisation flag... $ECHO_C" >&6; }
8527
8528# Check whether --with-optimisation was given.
8529if test "${with_optimisation+set}" = set; then
8530 withval=$with_optimisation; COPTIMISE_FLAG="$withval"
8531fi
8532
8533{ echo "$as_me:$LINENO: result: $COPTIMISE_FLAG" >&5
8534echo "${ECHO_T}$COPTIMISE_FLAG" >&6; }
8535
8536################################################################################
8537{ echo "$as_me:$LINENO: checking whether to use device-mapper" >&5
8538echo $ECHO_N "checking whether to use device-mapper... $ECHO_C" >&6; }
8539# Check whether --enable-devmapper was given.
8540if test "${enable_devmapper+set}" = set; then
8541 enableval=$enable_devmapper; DEVMAPPER=$enableval
fc54be10
AK
8542fi
8543
d0191583
JM
8544{ echo "$as_me:$LINENO: result: $DEVMAPPER" >&5
8545echo "${ECHO_T}$DEVMAPPER" >&6; }
8546
8547if test x$DEVMAPPER = xyes; then
ad6254c5
AK
8548
8549cat >>confdefs.h <<\_ACEOF
d0191583 8550#define DEVMAPPER_SUPPORT 1
ad6254c5
AK
8551_ACEOF
8552
8553fi
8554
d0191583
JM
8555################################################################################
8556{ echo "$as_me:$LINENO: checking whether to enable O_DIRECT" >&5
8557echo $ECHO_N "checking whether to enable O_DIRECT... $ECHO_C" >&6; }
8558# Check whether --enable-o_direct was given.
8559if test "${enable_o_direct+set}" = set; then
8560 enableval=$enable_o_direct; ODIRECT=$enableval
ad6254c5 8561fi
ad6254c5 8562
d0191583
JM
8563{ echo "$as_me:$LINENO: result: $ODIRECT" >&5
8564echo "${ECHO_T}$ODIRECT" >&6; }
ad6254c5 8565
d0191583 8566if test x$ODIRECT = xyes; then
ad6254c5 8567
d0191583
JM
8568cat >>confdefs.h <<\_ACEOF
8569#define O_DIRECT_SUPPORT 1
8570_ACEOF
ad6254c5 8571
d0191583 8572fi
ad6254c5 8573
d0191583
JM
8574################################################################################
8575{ echo "$as_me:$LINENO: checking whether to compile liblvm2cmd.so" >&5
8576echo $ECHO_N "checking whether to compile liblvm2cmd.so... $ECHO_C" >&6; }
8577# Check whether --enable-cmdlib was given.
8578if test "${enable_cmdlib+set}" = set; then
8579 enableval=$enable_cmdlib; CMDLIB=$enableval
ad6254c5 8580else
d0191583
JM
8581 CMDLIB=no
8582fi
8a2fc586 8583
d0191583
JM
8584{ echo "$as_me:$LINENO: result: $CMDLIB" >&5
8585echo "${ECHO_T}$CMDLIB" >&6; }
8a2fc586 8586
d179cc7a
JM
8587test $CMDLIB=yes \
8588 && LVM2CMD_LIB=-llvm2cmd \
8589 || LVM2CMD_LIB=
8590
d0191583
JM
8591################################################################################
8592{ echo "$as_me:$LINENO: checking whether to install fsadm" >&5
8593echo $ECHO_N "checking whether to install fsadm... $ECHO_C" >&6; }
8594# Check whether --enable-fsadm was given.
8595if test "${enable_fsadm+set}" = set; then
8596 enableval=$enable_fsadm; FSADM=$enableval
8597fi
8a2fc586 8598
d0191583
JM
8599{ echo "$as_me:$LINENO: result: $FSADM" >&5
8600echo "${ECHO_T}$FSADM" >&6; }
8a2fc586 8601
d0191583
JM
8602################################################################################
8603{ echo "$as_me:$LINENO: checking whether to use dmeventd" >&5
8604echo $ECHO_N "checking whether to use dmeventd... $ECHO_C" >&6; }
8605# Check whether --enable-dmeventd was given.
8606if test "${enable_dmeventd+set}" = set; then
8607 enableval=$enable_dmeventd; DMEVENTD=$enableval
8608fi
ad6254c5 8609
d0191583
JM
8610{ echo "$as_me:$LINENO: result: $DMEVENTD" >&5
8611echo "${ECHO_T}$DMEVENTD" >&6; }
ad6254c5 8612
d0191583
JM
8613if test x$DMEVENTD = xyes && test x$MIRRORS != xinternal; then
8614{ { echo "$as_me:$LINENO: error: --enable-dmeventd currently requires --with-mirrors=internal
8615" >&5
8616echo "$as_me: error: --enable-dmeventd currently requires --with-mirrors=internal
8617" >&2;}
8618 { (exit 1); exit 1; }; }
ad6254c5 8619fi
7a197a62 8620
d0191583
JM
8621if test x$DMEVENTD = xyes; then
8622
8623cat >>confdefs.h <<\_ACEOF
8624#define DMEVENTD 1
ad6254c5
AK
8625_ACEOF
8626
ad6254c5 8627fi
d0191583
JM
8628################################################################################
8629if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ];
8630 then exec_prefix="";
8631fi;
ad6254c5
AK
8632
8633################################################################################
8634if test x$READLINE = xyes; then
1995c9ff
AK
8635 { echo "$as_me:$LINENO: checking for library containing tgetent" >&5
8636echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6; }
ad6254c5 8637if test "${ac_cv_search_tgetent+set}" = set; then
1995c9ff 8638 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
8639else
8640 ac_func_search_save_LIBS=$LIBS
ad6254c5 8641cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8642/* confdefs.h. */
8643_ACEOF
8644cat confdefs.h >>conftest.$ac_ext
8645cat >>conftest.$ac_ext <<_ACEOF
8646/* end confdefs.h. */
8647
7a197a62
AK
8648/* Override any GCC internal prototype to avoid an error.
8649 Use char because int might match the return type of a GCC
8650 builtin and then its argument prototype would still apply. */
ad6254c5
AK
8651#ifdef __cplusplus
8652extern "C"
8653#endif
ad6254c5
AK
8654char tgetent ();
8655int
8656main ()
8657{
7a197a62 8658return tgetent ();
ad6254c5
AK
8659 ;
8660 return 0;
8661}
8662_ACEOF
7a197a62
AK
8663for ac_lib in '' ncurses curses termcap termlib; do
8664 if test -z "$ac_lib"; then
8665 ac_res="none required"
8666 else
8667 ac_res=-l$ac_lib
8668 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8669 fi
8670 rm -f conftest.$ac_objext conftest$ac_exeext
8671if { (ac_try="$ac_link"
8672case "(($ac_try" in
8673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8674 *) ac_try_echo=$ac_try;;
8675esac
1995c9ff 8676eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 8677 (eval "$ac_link") 2>conftest.er1
ad6254c5 8678 ac_status=$?
8a2fc586
AK
8679 grep -v '^ *+' conftest.er1 >conftest.err
8680 rm -f conftest.er1
8681 cat conftest.err >&5
1995c9ff 8682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8683 (exit $ac_status); } && {
8684 test -z "$ac_c_werror_flag" ||
8685 test ! -s conftest.err
8686 } && test -s conftest$ac_exeext &&
8687 $as_test_x conftest$ac_exeext; then
7a197a62 8688 ac_cv_search_tgetent=$ac_res
ad6254c5 8689else
1995c9ff 8690 echo "$as_me: failed program was:" >&5
ad6254c5
AK
8691sed 's/^/| /' conftest.$ac_ext >&5
8692
ad6254c5 8693
7a197a62 8694fi
ad6254c5 8695
25fbec5b 8696rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7a197a62
AK
8697 conftest$ac_exeext
8698 if test "${ac_cv_search_tgetent+set}" = set; then
8699 break
ad6254c5 8700fi
7a197a62
AK
8701done
8702if test "${ac_cv_search_tgetent+set}" = set; then
8703 :
8704else
8705 ac_cv_search_tgetent=no
ad6254c5 8706fi
7a197a62 8707rm conftest.$ac_ext
ad6254c5
AK
8708LIBS=$ac_func_search_save_LIBS
8709fi
1995c9ff
AK
8710{ echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
8711echo "${ECHO_T}$ac_cv_search_tgetent" >&6; }
7a197a62
AK
8712ac_res=$ac_cv_search_tgetent
8713if test "$ac_res" != no; then
8714 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
ad6254c5
AK
8715
8716else
1995c9ff 8717 { { echo "$as_me:$LINENO: error: termcap could not be found which is required for the
ad6254c5
AK
8718--enable-readline option (which is enabled by default). Either disable readline
8719support with --disable-readline or download and install termcap from:
8720 ftp.gnu.org/gnu/termcap
8721Note: if you are using precompiled packages you will also need the development
8722 package as well (which may be called termcap-devel or something similar).
8723Note: (n)curses also seems to work as a substitute for termcap. This was
8724 not found either - but you could try installing that as well.
8725" >&5
1995c9ff 8726echo "$as_me: error: termcap could not be found which is required for the
ad6254c5
AK
8727--enable-readline option (which is enabled by default). Either disable readline
8728support with --disable-readline or download and install termcap from:
8729 ftp.gnu.org/gnu/termcap
8730Note: if you are using precompiled packages you will also need the development
8731 package as well (which may be called termcap-devel or something similar).
8732Note: (n)curses also seems to work as a substitute for termcap. This was
8733 not found either - but you could try installing that as well.
8734" >&2;}
8735 { (exit 1); exit 1; }; }
8736
8737fi
8738
8739fi
8740
8741################################################################################
1995c9ff
AK
8742{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8743echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
ad6254c5 8744if test "${ac_cv_lib_dl_dlopen+set}" = set; then
1995c9ff 8745 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
8746else
8747 ac_check_lib_save_LIBS=$LIBS
8748LIBS="-ldl $LIBS"
8749cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8750/* confdefs.h. */
8751_ACEOF
8752cat confdefs.h >>conftest.$ac_ext
8753cat >>conftest.$ac_ext <<_ACEOF
8754/* end confdefs.h. */
8755
7a197a62
AK
8756/* Override any GCC internal prototype to avoid an error.
8757 Use char because int might match the return type of a GCC
8758 builtin and then its argument prototype would still apply. */
ad6254c5
AK
8759#ifdef __cplusplus
8760extern "C"
8761#endif
ad6254c5
AK
8762char dlopen ();
8763int
8764main ()
8765{
7a197a62 8766return dlopen ();
ad6254c5
AK
8767 ;
8768 return 0;
8769}
8770_ACEOF
8771rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
8772if { (ac_try="$ac_link"
8773case "(($ac_try" in
8774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8775 *) ac_try_echo=$ac_try;;
8776esac
1995c9ff 8777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 8778 (eval "$ac_link") 2>conftest.er1
ad6254c5 8779 ac_status=$?
8a2fc586
AK
8780 grep -v '^ *+' conftest.er1 >conftest.err
8781 rm -f conftest.er1
8782 cat conftest.err >&5
1995c9ff 8783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8784 (exit $ac_status); } && {
8785 test -z "$ac_c_werror_flag" ||
8786 test ! -s conftest.err
8787 } && test -s conftest$ac_exeext &&
8788 $as_test_x conftest$ac_exeext; then
ad6254c5
AK
8789 ac_cv_lib_dl_dlopen=yes
8790else
1995c9ff 8791 echo "$as_me: failed program was:" >&5
ad6254c5
AK
8792sed 's/^/| /' conftest.$ac_ext >&5
8793
7a197a62 8794 ac_cv_lib_dl_dlopen=no
ad6254c5 8795fi
7a197a62 8796
25fbec5b 8797rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 8798 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
8799LIBS=$ac_check_lib_save_LIBS
8800fi
1995c9ff
AK
8801{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8802echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
ad6254c5
AK
8803if test $ac_cv_lib_dl_dlopen = yes; then
8804 HAVE_LIBDL=yes
8805else
8806 HAVE_LIBDL=no
8807fi
8808
8809
7e9e9502 8810if [ "x$HAVE_LIBDL" = xyes ]; then
72b2cb61
AK
8811
8812cat >>confdefs.h <<\_ACEOF
8813#define HAVE_LIBDL 1
8814_ACEOF
8815
ad6254c5
AK
8816 LIBS="-ldl $LIBS"
8817else
8818 HAVE_LIBDL=no
8819fi
8820
8821################################################################################
8822if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \
8823 -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \
8824 \) -a "x$STATIC_LINK" = xyes ];
1995c9ff 8825 then { { echo "$as_me:$LINENO: error: Features cannot be 'shared' when building statically
ad6254c5 8826" >&5
1995c9ff 8827echo "$as_me: error: Features cannot be 'shared' when building statically
ad6254c5
AK
8828" >&2;}
8829 { (exit 1); exit 1; }; }
8830fi
8831
d0191583
JM
8832################################################################################
8833{ echo "$as_me:$LINENO: checking whether to use static linking" >&5
8834echo $ECHO_N "checking whether to use static linking... $ECHO_C" >&6; }
8835# Check whether --enable-static_link was given.
8836if test "${enable_static_link+set}" = set; then
8837 enableval=$enable_static_link; STATIC_LINK=$enableval
8838else
8839 STATIC_LINK=no
8840fi
8841
8842{ echo "$as_me:$LINENO: result: $STATIC_LINK" >&5
8843echo "${ECHO_T}$STATIC_LINK" >&6; }
8844
8845################################################################################
8846{ echo "$as_me:$LINENO: checking whether to enable selinux support" >&5
8847echo $ECHO_N "checking whether to enable selinux support... $ECHO_C" >&6; }
8848# Check whether --enable-selinux was given.
8849if test "${enable_selinux+set}" = set; then
8850 enableval=$enable_selinux; SELINUX=$enableval
8851fi
8852
8853{ echo "$as_me:$LINENO: result: $SELINUX" >&5
8854echo "${ECHO_T}$SELINUX" >&6; }
8855
ad6254c5
AK
8856################################################################################
8857if test x$SELINUX = xyes; then
1995c9ff
AK
8858 { echo "$as_me:$LINENO: checking for sepol_check_context in -lsepol" >&5
8859echo $ECHO_N "checking for sepol_check_context in -lsepol... $ECHO_C" >&6; }
8a2fc586 8860if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then
1995c9ff 8861 echo $ECHO_N "(cached) $ECHO_C" >&6
8a2fc586
AK
8862else
8863 ac_check_lib_save_LIBS=$LIBS
8864LIBS="-lsepol $LIBS"
8865cat >conftest.$ac_ext <<_ACEOF
8866/* confdefs.h. */
8867_ACEOF
8868cat confdefs.h >>conftest.$ac_ext
8869cat >>conftest.$ac_ext <<_ACEOF
8870/* end confdefs.h. */
8871
7a197a62
AK
8872/* Override any GCC internal prototype to avoid an error.
8873 Use char because int might match the return type of a GCC
8874 builtin and then its argument prototype would still apply. */
8a2fc586
AK
8875#ifdef __cplusplus
8876extern "C"
8877#endif
8a2fc586
AK
8878char sepol_check_context ();
8879int
8880main ()
8881{
7a197a62 8882return sepol_check_context ();
8a2fc586
AK
8883 ;
8884 return 0;
8885}
8886_ACEOF
8887rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
8888if { (ac_try="$ac_link"
8889case "(($ac_try" in
8890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8891 *) ac_try_echo=$ac_try;;
8892esac
1995c9ff 8893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 8894 (eval "$ac_link") 2>conftest.er1
8a2fc586
AK
8895 ac_status=$?
8896 grep -v '^ *+' conftest.er1 >conftest.err
8897 rm -f conftest.er1
8898 cat conftest.err >&5
1995c9ff 8899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8900 (exit $ac_status); } && {
8901 test -z "$ac_c_werror_flag" ||
8902 test ! -s conftest.err
8903 } && test -s conftest$ac_exeext &&
8904 $as_test_x conftest$ac_exeext; then
8a2fc586
AK
8905 ac_cv_lib_sepol_sepol_check_context=yes
8906else
1995c9ff 8907 echo "$as_me: failed program was:" >&5
8a2fc586
AK
8908sed 's/^/| /' conftest.$ac_ext >&5
8909
7a197a62 8910 ac_cv_lib_sepol_sepol_check_context=no
8a2fc586 8911fi
7a197a62 8912
25fbec5b 8913rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586
AK
8914 conftest$ac_exeext conftest.$ac_ext
8915LIBS=$ac_check_lib_save_LIBS
8916fi
1995c9ff
AK
8917{ echo "$as_me:$LINENO: result: $ac_cv_lib_sepol_sepol_check_context" >&5
8918echo "${ECHO_T}$ac_cv_lib_sepol_sepol_check_context" >&6; }
8a2fc586
AK
8919if test $ac_cv_lib_sepol_sepol_check_context = yes; then
8920 HAVE_SEPOL=yes
8921else
8922 HAVE_SEPOL=no
8923fi
8924
8a2fc586
AK
8925
8926 if test x$HAVE_SEPOL = xyes; then
d0191583
JM
8927
8928cat >>confdefs.h <<\_ACEOF
8929#define HAVE_SEPOL 1
8930_ACEOF
8931
8a2fc586
AK
8932 LIBS="-lsepol $LIBS"
8933 fi
8934
1995c9ff
AK
8935 { echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
8936echo $ECHO_N "checking for is_selinux_enabled in -lselinux... $ECHO_C" >&6; }
ad6254c5 8937if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
1995c9ff 8938 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
8939else
8940 ac_check_lib_save_LIBS=$LIBS
8941LIBS="-lselinux $LIBS"
8942cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8943/* confdefs.h. */
8944_ACEOF
8945cat confdefs.h >>conftest.$ac_ext
8946cat >>conftest.$ac_ext <<_ACEOF
8947/* end confdefs.h. */
8948
7a197a62
AK
8949/* Override any GCC internal prototype to avoid an error.
8950 Use char because int might match the return type of a GCC
8951 builtin and then its argument prototype would still apply. */
ad6254c5
AK
8952#ifdef __cplusplus
8953extern "C"
8954#endif
ad6254c5
AK
8955char is_selinux_enabled ();
8956int
8957main ()
8958{
7a197a62 8959return is_selinux_enabled ();
ad6254c5
AK
8960 ;
8961 return 0;
8962}
8963_ACEOF
8964rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
8965if { (ac_try="$ac_link"
8966case "(($ac_try" in
8967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8968 *) ac_try_echo=$ac_try;;
8969esac
1995c9ff 8970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 8971 (eval "$ac_link") 2>conftest.er1
ad6254c5 8972 ac_status=$?
8a2fc586
AK
8973 grep -v '^ *+' conftest.er1 >conftest.err
8974 rm -f conftest.er1
8975 cat conftest.err >&5
1995c9ff 8976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8977 (exit $ac_status); } && {
8978 test -z "$ac_c_werror_flag" ||
8979 test ! -s conftest.err
8980 } && test -s conftest$ac_exeext &&
8981 $as_test_x conftest$ac_exeext; then
ad6254c5
AK
8982 ac_cv_lib_selinux_is_selinux_enabled=yes
8983else
1995c9ff 8984 echo "$as_me: failed program was:" >&5
ad6254c5
AK
8985sed 's/^/| /' conftest.$ac_ext >&5
8986
7a197a62 8987 ac_cv_lib_selinux_is_selinux_enabled=no
ad6254c5 8988fi
7a197a62 8989
25fbec5b 8990rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 8991 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
8992LIBS=$ac_check_lib_save_LIBS
8993fi
1995c9ff
AK
8994{ echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
8995echo "${ECHO_T}$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
ad6254c5
AK
8996if test $ac_cv_lib_selinux_is_selinux_enabled = yes; then
8997 HAVE_SELINUX=yes
8998else
8999 HAVE_SELINUX=no
9000fi
9001
ad6254c5
AK
9002
9003 if test x$HAVE_SELINUX = xyes; then
72b2cb61
AK
9004
9005cat >>confdefs.h <<\_ACEOF
9006#define HAVE_SELINUX 1
9007_ACEOF
9008
ad6254c5
AK
9009 LIBS="-lselinux $LIBS"
9010 else
1995c9ff
AK
9011 { echo "$as_me:$LINENO: WARNING: Disabling selinux" >&5
9012echo "$as_me: WARNING: Disabling selinux" >&2;}
66e941e8
JM
9013 fi
9014
d0191583 9015 # With --enable-static_link and selinux enabled, linking
66e941e8
JM
9016 # fails on at least Debian unstable due to unsatisfied references
9017 # to pthread_mutex_lock and _unlock. See if we need -lpthread.
9018 if test "$STATIC_LINK-$HAVE_SELINUX" = yes-yes; then
9019 lvm_saved_libs=$LIBS
9020 LIBS="$LIBS -static"
1995c9ff
AK
9021 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
9022echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
66e941e8 9023if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
1995c9ff 9024 echo $ECHO_N "(cached) $ECHO_C" >&6
66e941e8
JM
9025else
9026 ac_func_search_save_LIBS=$LIBS
9027cat >conftest.$ac_ext <<_ACEOF
9028/* confdefs.h. */
9029_ACEOF
9030cat confdefs.h >>conftest.$ac_ext
9031cat >>conftest.$ac_ext <<_ACEOF
9032/* end confdefs.h. */
9033
9034/* Override any GCC internal prototype to avoid an error.
9035 Use char because int might match the return type of a GCC
9036 builtin and then its argument prototype would still apply. */
9037#ifdef __cplusplus
9038extern "C"
9039#endif
9040char pthread_mutex_lock ();
9041int
9042main ()
9043{
9044return pthread_mutex_lock ();
9045 ;
9046 return 0;
9047}
9048_ACEOF
9049for ac_lib in '' pthread; do
9050 if test -z "$ac_lib"; then
9051 ac_res="none required"
9052 else
9053 ac_res=-l$ac_lib
9054 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9055 fi
9056 rm -f conftest.$ac_objext conftest$ac_exeext
9057if { (ac_try="$ac_link"
9058case "(($ac_try" in
9059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9060 *) ac_try_echo=$ac_try;;
9061esac
1995c9ff 9062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
66e941e8
JM
9063 (eval "$ac_link") 2>conftest.er1
9064 ac_status=$?
9065 grep -v '^ *+' conftest.er1 >conftest.err
9066 rm -f conftest.er1
9067 cat conftest.err >&5
1995c9ff 9068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9069 (exit $ac_status); } && {
9070 test -z "$ac_c_werror_flag" ||
9071 test ! -s conftest.err
9072 } && test -s conftest$ac_exeext &&
9073 $as_test_x conftest$ac_exeext; then
66e941e8
JM
9074 ac_cv_search_pthread_mutex_lock=$ac_res
9075else
1995c9ff 9076 echo "$as_me: failed program was:" >&5
66e941e8
JM
9077sed 's/^/| /' conftest.$ac_ext >&5
9078
9079
9080fi
9081
25fbec5b 9082rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
66e941e8
JM
9083 conftest$ac_exeext
9084 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9085 break
9086fi
9087done
9088if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9089 :
9090else
9091 ac_cv_search_pthread_mutex_lock=no
9092fi
9093rm conftest.$ac_ext
9094LIBS=$ac_func_search_save_LIBS
9095fi
1995c9ff
AK
9096{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
9097echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
66e941e8
JM
9098ac_res=$ac_cv_search_pthread_mutex_lock
9099if test "$ac_res" != no; then
9100 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9101 test "$ac_cv_search_pthread_mutex_lock" = "none required" ||
9102 LIB_PTHREAD=-lpthread
9103fi
9104
9105 LIBS=$lvm_saved_libs
ad6254c5
AK
9106 fi
9107fi
9108
8b1a3214
AK
9109################################################################################
9110if test x$REALTIME = xyes; then
1995c9ff
AK
9111 { echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
9112echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6; }
8b1a3214 9113if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
1995c9ff 9114 echo $ECHO_N "(cached) $ECHO_C" >&6
8b1a3214
AK
9115else
9116 ac_check_lib_save_LIBS=$LIBS
9117LIBS="-lrt $LIBS"
9118cat >conftest.$ac_ext <<_ACEOF
9119/* confdefs.h. */
9120_ACEOF
9121cat confdefs.h >>conftest.$ac_ext
9122cat >>conftest.$ac_ext <<_ACEOF
9123/* end confdefs.h. */
9124
7a197a62
AK
9125/* Override any GCC internal prototype to avoid an error.
9126 Use char because int might match the return type of a GCC
9127 builtin and then its argument prototype would still apply. */
8b1a3214
AK
9128#ifdef __cplusplus
9129extern "C"
9130#endif
8b1a3214
AK
9131char clock_gettime ();
9132int
9133main ()
9134{
7a197a62 9135return clock_gettime ();
8b1a3214
AK
9136 ;
9137 return 0;
9138}
9139_ACEOF
9140rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
9141if { (ac_try="$ac_link"
9142case "(($ac_try" in
9143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9144 *) ac_try_echo=$ac_try;;
9145esac
1995c9ff 9146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 9147 (eval "$ac_link") 2>conftest.er1
8b1a3214
AK
9148 ac_status=$?
9149 grep -v '^ *+' conftest.er1 >conftest.err
9150 rm -f conftest.er1
9151 cat conftest.err >&5
1995c9ff 9152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9153 (exit $ac_status); } && {
9154 test -z "$ac_c_werror_flag" ||
9155 test ! -s conftest.err
9156 } && test -s conftest$ac_exeext &&
9157 $as_test_x conftest$ac_exeext; then
8b1a3214
AK
9158 ac_cv_lib_rt_clock_gettime=yes
9159else
1995c9ff 9160 echo "$as_me: failed program was:" >&5
8b1a3214
AK
9161sed 's/^/| /' conftest.$ac_ext >&5
9162
7a197a62 9163 ac_cv_lib_rt_clock_gettime=no
8b1a3214 9164fi
7a197a62 9165
25fbec5b 9166rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8b1a3214
AK
9167 conftest$ac_exeext conftest.$ac_ext
9168LIBS=$ac_check_lib_save_LIBS
9169fi
1995c9ff
AK
9170{ echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
9171echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6; }
8b1a3214
AK
9172if test $ac_cv_lib_rt_clock_gettime = yes; then
9173 HAVE_REALTIME=yes
9174else
9175 HAVE_REALTIME=no
9176fi
9177
8b1a3214
AK
9178
9179 if test x$HAVE_REALTIME = xyes; then
9180
9181cat >>confdefs.h <<\_ACEOF
9182#define HAVE_REALTIME 1
9183_ACEOF
9184
9185 LIBS="-lrt $LIBS"
9186 else
1995c9ff
AK
9187 { echo "$as_me:$LINENO: WARNING: Disabling realtime clock" >&5
9188echo "$as_me: WARNING: Disabling realtime clock" >&2;}
8b1a3214
AK
9189 fi
9190fi
9191
ad6254c5
AK
9192################################################################################
9193
9194for ac_header in getopt.h
9195do
1995c9ff 9196as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 9197if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff
AK
9198 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9199echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 9200if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff 9201 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 9202fi
1995c9ff
AK
9203ac_res=`eval echo '${'$as_ac_Header'}'`
9204 { echo "$as_me:$LINENO: result: $ac_res" >&5
9205echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
9206else
9207 # Is the header compilable?
1995c9ff
AK
9208{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9209echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 9210cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9211/* confdefs.h. */
9212_ACEOF
9213cat confdefs.h >>conftest.$ac_ext
9214cat >>conftest.$ac_ext <<_ACEOF
9215/* end confdefs.h. */
9216$ac_includes_default
9217#include <$ac_header>
9218_ACEOF
9219rm -f conftest.$ac_objext
7a197a62
AK
9220if { (ac_try="$ac_compile"
9221case "(($ac_try" in
9222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9223 *) ac_try_echo=$ac_try;;
9224esac
1995c9ff 9225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 9226 (eval "$ac_compile") 2>conftest.er1
ad6254c5 9227 ac_status=$?
8a2fc586
AK
9228 grep -v '^ *+' conftest.er1 >conftest.err
9229 rm -f conftest.er1
9230 cat conftest.err >&5
1995c9ff 9231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9232 (exit $ac_status); } && {
9233 test -z "$ac_c_werror_flag" ||
9234 test ! -s conftest.err
9235 } && test -s conftest.$ac_objext; then
ad6254c5
AK
9236 ac_header_compiler=yes
9237else
1995c9ff 9238 echo "$as_me: failed program was:" >&5
ad6254c5
AK
9239sed 's/^/| /' conftest.$ac_ext >&5
9240
7a197a62 9241 ac_header_compiler=no
ad6254c5 9242fi
7a197a62
AK
9243
9244rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1995c9ff
AK
9245{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9246echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
9247
9248# Is the header present?
1995c9ff
AK
9249{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9250echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 9251cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9252/* confdefs.h. */
9253_ACEOF
9254cat confdefs.h >>conftest.$ac_ext
9255cat >>conftest.$ac_ext <<_ACEOF
9256/* end confdefs.h. */
9257#include <$ac_header>
9258_ACEOF
7a197a62
AK
9259if { (ac_try="$ac_cpp conftest.$ac_ext"
9260case "(($ac_try" in
9261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9262 *) ac_try_echo=$ac_try;;
9263esac
1995c9ff 9264eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 9265 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
9266 ac_status=$?
9267 grep -v '^ *+' conftest.er1 >conftest.err
9268 rm -f conftest.er1
9269 cat conftest.err >&5
1995c9ff 9270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9271 (exit $ac_status); } >/dev/null && {
9272 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9273 test ! -s conftest.err
9274 }; then
ad6254c5
AK
9275 ac_header_preproc=yes
9276else
1995c9ff 9277 echo "$as_me: failed program was:" >&5
ad6254c5
AK
9278sed 's/^/| /' conftest.$ac_ext >&5
9279
9280 ac_header_preproc=no
9281fi
7a197a62 9282
ad6254c5 9283rm -f conftest.err conftest.$ac_ext
1995c9ff
AK
9284{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9285echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
9286
9287# So? What about this header?
8a2fc586
AK
9288case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9289 yes:no: )
1995c9ff
AK
9290 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9291echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9292 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9293echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 9294 ac_header_preproc=yes
ad6254c5 9295 ;;
8a2fc586 9296 no:yes:* )
1995c9ff
AK
9297 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9298echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9299 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9300echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9301 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9302echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9303 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9304echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9305 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9306echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9307 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9308echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 9309
ad6254c5
AK
9310 ;;
9311esac
1995c9ff
AK
9312{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9313echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 9314if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff 9315 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 9316else
8a2fc586 9317 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 9318fi
1995c9ff
AK
9319ac_res=`eval echo '${'$as_ac_Header'}'`
9320 { echo "$as_me:$LINENO: result: $ac_res" >&5
9321echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
9322
9323fi
1995c9ff 9324if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 9325 cat >>confdefs.h <<_ACEOF
1995c9ff 9326#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 9327_ACEOF
72b2cb61
AK
9328
9329cat >>confdefs.h <<\_ACEOF
9330#define HAVE_GETOPTLONG 1
9331_ACEOF
9332
ad6254c5
AK
9333fi
9334
9335done
9336
9337
9338################################################################################
9339if test x$READLINE = xyes; then
9340
1995c9ff
AK
9341{ echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
9342echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6; }
ad6254c5 9343if test "${ac_cv_lib_readline_readline+set}" = set; then
1995c9ff 9344 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
9345else
9346 ac_check_lib_save_LIBS=$LIBS
9347LIBS="-lreadline $LIBS"
9348cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9349/* confdefs.h. */
9350_ACEOF
9351cat confdefs.h >>conftest.$ac_ext
9352cat >>conftest.$ac_ext <<_ACEOF
9353/* end confdefs.h. */
9354
7a197a62
AK
9355/* Override any GCC internal prototype to avoid an error.
9356 Use char because int might match the return type of a GCC
9357 builtin and then its argument prototype would still apply. */
ad6254c5
AK
9358#ifdef __cplusplus
9359extern "C"
9360#endif
ad6254c5
AK
9361char readline ();
9362int
9363main ()
9364{
7a197a62 9365return readline ();
ad6254c5
AK
9366 ;
9367 return 0;
9368}
9369_ACEOF
9370rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
9371if { (ac_try="$ac_link"
9372case "(($ac_try" in
9373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9374 *) ac_try_echo=$ac_try;;
9375esac
1995c9ff 9376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 9377 (eval "$ac_link") 2>conftest.er1
ad6254c5 9378 ac_status=$?
8a2fc586
AK
9379 grep -v '^ *+' conftest.er1 >conftest.err
9380 rm -f conftest.er1
9381 cat conftest.err >&5
1995c9ff 9382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9383 (exit $ac_status); } && {
9384 test -z "$ac_c_werror_flag" ||
9385 test ! -s conftest.err
9386 } && test -s conftest$ac_exeext &&
9387 $as_test_x conftest$ac_exeext; then
ad6254c5
AK
9388 ac_cv_lib_readline_readline=yes
9389else
1995c9ff 9390 echo "$as_me: failed program was:" >&5
ad6254c5
AK
9391sed 's/^/| /' conftest.$ac_ext >&5
9392
7a197a62 9393 ac_cv_lib_readline_readline=no
ad6254c5 9394fi
7a197a62 9395
25fbec5b 9396rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 9397 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
9398LIBS=$ac_check_lib_save_LIBS
9399fi
1995c9ff
AK
9400{ echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
9401echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6; }
ad6254c5
AK
9402if test $ac_cv_lib_readline_readline = yes; then
9403 cat >>confdefs.h <<_ACEOF
9404#define HAVE_LIBREADLINE 1
9405_ACEOF
9406
9407 LIBS="-lreadline $LIBS"
9408
9409else
1995c9ff 9410 { { echo "$as_me:$LINENO: error: GNU Readline could not be found which is required for the
ad6254c5
AK
9411--enable-readline option (which is enabled by default). Either disable readline
9412support with --disable-readline or download and install readline from:
9413 ftp.gnu.org/gnu/readline
9414Note: if you are using precompiled packages you will also need the development
9415package as well (which may be called readline-devel or something similar).
9416" >&5
1995c9ff 9417echo "$as_me: error: GNU Readline could not be found which is required for the
ad6254c5
AK
9418--enable-readline option (which is enabled by default). Either disable readline
9419support with --disable-readline or download and install readline from:
9420 ftp.gnu.org/gnu/readline
9421Note: if you are using precompiled packages you will also need the development
9422package as well (which may be called readline-devel or something similar).
9423" >&2;}
9424 { (exit 1); exit 1; }; }
9425
9426fi
9427
1995c9ff
AK
9428 { echo "$as_me:$LINENO: checking for rl_completion_matches" >&5
9429echo $ECHO_N "checking for rl_completion_matches... $ECHO_C" >&6; }
ad6254c5 9430if test "${ac_cv_func_rl_completion_matches+set}" = set; then
1995c9ff 9431 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
9432else
9433 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9434/* confdefs.h. */
9435_ACEOF
9436cat confdefs.h >>conftest.$ac_ext
9437cat >>conftest.$ac_ext <<_ACEOF
9438/* end confdefs.h. */
8a2fc586
AK
9439/* Define rl_completion_matches to an innocuous variant, in case <limits.h> declares rl_completion_matches.
9440 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9441#define rl_completion_matches innocuous_rl_completion_matches
9442
ad6254c5
AK
9443/* System header to define __stub macros and hopefully few prototypes,
9444 which can conflict with char rl_completion_matches (); below.
9445 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9446 <limits.h> exists even on freestanding compilers. */
8a2fc586 9447
ad6254c5
AK
9448#ifdef __STDC__
9449# include <limits.h>
9450#else
9451# include <assert.h>
9452#endif
8a2fc586
AK
9453
9454#undef rl_completion_matches
9455
7a197a62
AK
9456/* Override any GCC internal prototype to avoid an error.
9457 Use char because int might match the return type of a GCC
9458 builtin and then its argument prototype would still apply. */
ad6254c5
AK
9459#ifdef __cplusplus
9460extern "C"
ad6254c5 9461#endif
ad6254c5
AK
9462char rl_completion_matches ();
9463/* The GNU C library defines this for functions which it implements
9464 to always fail with ENOSYS. Some functions are actually named
9465 something starting with __ and the normal name is an alias. */
7a197a62 9466#if defined __stub_rl_completion_matches || defined __stub___rl_completion_matches
ad6254c5 9467choke me
ad6254c5
AK
9468#endif
9469
9470int
9471main ()
9472{
7a197a62 9473return rl_completion_matches ();
ad6254c5
AK
9474 ;
9475 return 0;
9476}
9477_ACEOF
9478rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
9479if { (ac_try="$ac_link"
9480case "(($ac_try" in
9481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9482 *) ac_try_echo=$ac_try;;
9483esac
1995c9ff 9484eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 9485 (eval "$ac_link") 2>conftest.er1
ad6254c5 9486 ac_status=$?
8a2fc586
AK
9487 grep -v '^ *+' conftest.er1 >conftest.err
9488 rm -f conftest.er1
9489 cat conftest.err >&5
1995c9ff 9490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9491 (exit $ac_status); } && {
9492 test -z "$ac_c_werror_flag" ||
9493 test ! -s conftest.err
9494 } && test -s conftest$ac_exeext &&
9495 $as_test_x conftest$ac_exeext; then
ad6254c5
AK
9496 ac_cv_func_rl_completion_matches=yes
9497else
1995c9ff 9498 echo "$as_me: failed program was:" >&5
ad6254c5
AK
9499sed 's/^/| /' conftest.$ac_ext >&5
9500
7a197a62 9501 ac_cv_func_rl_completion_matches=no
ad6254c5 9502fi
7a197a62 9503
25fbec5b 9504rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 9505 conftest$ac_exeext conftest.$ac_ext
ad6254c5 9506fi
1995c9ff
AK
9507{ echo "$as_me:$LINENO: result: $ac_cv_func_rl_completion_matches" >&5
9508echo "${ECHO_T}$ac_cv_func_rl_completion_matches" >&6; }
ad6254c5 9509if test $ac_cv_func_rl_completion_matches = yes; then
ad6254c5 9510
72b2cb61
AK
9511cat >>confdefs.h <<\_ACEOF
9512#define HAVE_RL_COMPLETION_MATCHES 1
9513_ACEOF
9514
9515fi
ad6254c5 9516
d179cc7a
JM
9517
9518cat >>confdefs.h <<\_ACEOF
9519#define READLINE_SUPPORT 1
9520_ACEOF
9521
ad6254c5
AK
9522fi
9523
9524################################################################################
1995c9ff
AK
9525{ echo "$as_me:$LINENO: checking whether to enable internationalisation" >&5
9526echo $ECHO_N "checking whether to enable internationalisation... $ECHO_C" >&6; }
7a197a62 9527# Check whether --enable-nls was given.
ad6254c5 9528if test "${enable_nls+set}" = set; then
7a197a62 9529 enableval=$enable_nls; INTL=$enableval
ad6254c5
AK
9530else
9531 INTL=no
7a197a62
AK
9532fi
9533
1995c9ff
AK
9534{ echo "$as_me:$LINENO: result: $INTL" >&5
9535echo "${ECHO_T}$INTL" >&6; }
ad6254c5
AK
9536
9537if test x$INTL = xyes; then
9538 INTL_PACKAGE="lvm2"
9539 # Extract the first word of "msgfmt", so it can be a program name with args.
9540set dummy msgfmt; ac_word=$2
1995c9ff
AK
9541{ echo "$as_me:$LINENO: checking for $ac_word" >&5
9542echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
ad6254c5 9543if test "${ac_cv_path_MSGFMT+set}" = set; then
1995c9ff 9544 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
9545else
9546 case $MSGFMT in
9547 [\\/]* | ?:[\\/]*)
9548 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
9549 ;;
9550 *)
9551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9552for as_dir in $PATH
9553do
9554 IFS=$as_save_IFS
9555 test -z "$as_dir" && as_dir=.
9556 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 9557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 9558 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
1995c9ff 9559 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
9560 break 2
9561 fi
9562done
9563done
7a197a62 9564IFS=$as_save_IFS
ad6254c5
AK
9565
9566 ;;
9567esac
9568fi
9569MSGFMT=$ac_cv_path_MSGFMT
ad6254c5 9570if test -n "$MSGFMT"; then
1995c9ff
AK
9571 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
9572echo "${ECHO_T}$MSGFMT" >&6; }
ad6254c5 9573else
1995c9ff
AK
9574 { echo "$as_me:$LINENO: result: no" >&5
9575echo "${ECHO_T}no" >&6; }
ad6254c5
AK
9576fi
9577
7a197a62 9578
ad6254c5 9579 if [ "x$MSGFMT" == x ];
1995c9ff 9580 then { { echo "$as_me:$LINENO: error: msgfmt not found in path $PATH
ad6254c5 9581 " >&5
1995c9ff 9582echo "$as_me: error: msgfmt not found in path $PATH
ad6254c5
AK
9583 " >&2;}
9584 { (exit 1); exit 1; }; }
9585 fi;
9586
9587
7a197a62 9588# Check whether --with-localedir was given.
ad6254c5 9589if test "${with_localedir+set}" = set; then
7a197a62 9590 withval=$with_localedir; LOCALEDIR="$withval"
ad6254c5
AK
9591else
9592 LOCALEDIR='${prefix}/share/locale'
7a197a62
AK
9593fi
9594
ad6254c5
AK
9595fi
9596
9597################################################################################
9598
7a197a62 9599# Check whether --with-confdir was given.
ad6254c5 9600if test "${with_confdir+set}" = set; then
7a197a62 9601 withval=$with_confdir; CONFDIR="$withval"
ad6254c5
AK
9602else
9603 CONFDIR='/etc'
7a197a62
AK
9604fi
9605
ad6254c5
AK
9606
9607
7a197a62 9608# Check whether --with-staticdir was given.
ad6254c5 9609if test "${with_staticdir+set}" = set; then
7a197a62 9610 withval=$with_staticdir; STATICDIR="$withval"
ad6254c5
AK
9611else
9612 STATICDIR='${exec_prefix}/sbin'
7a197a62 9613fi
ad6254c5 9614
33f732c5 9615
7a197a62
AK
9616
9617# Check whether --with-dmdir was given.
33f732c5 9618if test "${with_dmdir+set}" = set; then
7a197a62 9619 withval=$with_dmdir; DMDIR="$withval" CPPFLAGS="$CPPFLAGS -I$DMDIR/include"
33f732c5
AK
9620else
9621 DMDIR=
7a197a62
AK
9622fi
9623
33f732c5 9624
09339e2b 9625# Convert a relative dir name to absolute.
25fbec5b
AK
9626case $DMDIR in
9627 /*) ;;
9628 *) DMDIR="`pwd`/$DMDIR" ;;
09339e2b
JM
9629esac
9630
ad6254c5
AK
9631################################################################################
9632if test x$READLINE = xyes; then
9633
9634
9635for ac_header in readline/readline.h readline/history.h
9636do
1995c9ff 9637as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 9638if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff
AK
9639 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9640echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 9641if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff 9642 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 9643fi
1995c9ff
AK
9644ac_res=`eval echo '${'$as_ac_Header'}'`
9645 { echo "$as_me:$LINENO: result: $ac_res" >&5
9646echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
9647else
9648 # Is the header compilable?
1995c9ff
AK
9649{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9650echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 9651cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9652/* confdefs.h. */
9653_ACEOF
9654cat confdefs.h >>conftest.$ac_ext
9655cat >>conftest.$ac_ext <<_ACEOF
9656/* end confdefs.h. */
9657$ac_includes_default
9658#include <$ac_header>
9659_ACEOF
9660rm -f conftest.$ac_objext
7a197a62
AK
9661if { (ac_try="$ac_compile"
9662case "(($ac_try" in
9663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9664 *) ac_try_echo=$ac_try;;
9665esac
1995c9ff 9666eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 9667 (eval "$ac_compile") 2>conftest.er1
ad6254c5 9668 ac_status=$?
8a2fc586
AK
9669 grep -v '^ *+' conftest.er1 >conftest.err
9670 rm -f conftest.er1
9671 cat conftest.err >&5
1995c9ff 9672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9673 (exit $ac_status); } && {
9674 test -z "$ac_c_werror_flag" ||
9675 test ! -s conftest.err
9676 } && test -s conftest.$ac_objext; then
ad6254c5
AK
9677 ac_header_compiler=yes
9678else
1995c9ff 9679 echo "$as_me: failed program was:" >&5
ad6254c5
AK
9680sed 's/^/| /' conftest.$ac_ext >&5
9681
7a197a62 9682 ac_header_compiler=no
ad6254c5 9683fi
7a197a62
AK
9684
9685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1995c9ff
AK
9686{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9687echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
9688
9689# Is the header present?
1995c9ff
AK
9690{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9691echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 9692cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9693/* confdefs.h. */
9694_ACEOF
9695cat confdefs.h >>conftest.$ac_ext
9696cat >>conftest.$ac_ext <<_ACEOF
9697/* end confdefs.h. */
9698#include <$ac_header>
9699_ACEOF
7a197a62
AK
9700if { (ac_try="$ac_cpp conftest.$ac_ext"
9701case "(($ac_try" in
9702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9703 *) ac_try_echo=$ac_try;;
9704esac
1995c9ff 9705eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 9706 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
9707 ac_status=$?
9708 grep -v '^ *+' conftest.er1 >conftest.err
9709 rm -f conftest.er1
9710 cat conftest.err >&5
1995c9ff 9711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9712 (exit $ac_status); } >/dev/null && {
9713 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9714 test ! -s conftest.err
9715 }; then
ad6254c5
AK
9716 ac_header_preproc=yes
9717else
1995c9ff 9718 echo "$as_me: failed program was:" >&5
ad6254c5
AK
9719sed 's/^/| /' conftest.$ac_ext >&5
9720
9721 ac_header_preproc=no
9722fi
7a197a62 9723
ad6254c5 9724rm -f conftest.err conftest.$ac_ext
1995c9ff
AK
9725{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9726echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
9727
9728# So? What about this header?
8a2fc586
AK
9729case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9730 yes:no: )
1995c9ff
AK
9731 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9732echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9733 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9734echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 9735 ac_header_preproc=yes
ad6254c5 9736 ;;
8a2fc586 9737 no:yes:* )
1995c9ff
AK
9738 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9739echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9740 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9741echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9742 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9743echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9744 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9745echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9746 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9747echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9748 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9749echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 9750
ad6254c5
AK
9751 ;;
9752esac
1995c9ff
AK
9753{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9754echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 9755if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff 9756 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 9757else
8a2fc586 9758 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 9759fi
1995c9ff
AK
9760ac_res=`eval echo '${'$as_ac_Header'}'`
9761 { echo "$as_me:$LINENO: result: $ac_res" >&5
9762echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
9763
9764fi
1995c9ff 9765if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 9766 cat >>confdefs.h <<_ACEOF
1995c9ff 9767#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
9768_ACEOF
9769
9770else
1995c9ff
AK
9771 { { echo "$as_me:$LINENO: error: bailing out" >&5
9772echo "$as_me: error: bailing out" >&2;}
ad6254c5
AK
9773 { (exit 1); exit 1; }; }
9774fi
9775
9776done
9777
9778fi
9779
5c7fc7c4 9780if test x$CLVMD != xnone; then
ad6254c5
AK
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791for 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
9792do
1995c9ff 9793as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 9794if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff
AK
9795 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9796echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 9797if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff 9798 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 9799fi
1995c9ff
AK
9800ac_res=`eval echo '${'$as_ac_Header'}'`
9801 { echo "$as_me:$LINENO: result: $ac_res" >&5
9802echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
9803else
9804 # Is the header compilable?
1995c9ff
AK
9805{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9806echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 9807cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9808/* confdefs.h. */
9809_ACEOF
9810cat confdefs.h >>conftest.$ac_ext
9811cat >>conftest.$ac_ext <<_ACEOF
9812/* end confdefs.h. */
9813$ac_includes_default
9814#include <$ac_header>
9815_ACEOF
9816rm -f conftest.$ac_objext
7a197a62
AK
9817if { (ac_try="$ac_compile"
9818case "(($ac_try" in
9819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9820 *) ac_try_echo=$ac_try;;
9821esac
1995c9ff 9822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 9823 (eval "$ac_compile") 2>conftest.er1
ad6254c5 9824 ac_status=$?
8a2fc586
AK
9825 grep -v '^ *+' conftest.er1 >conftest.err
9826 rm -f conftest.er1
9827 cat conftest.err >&5
1995c9ff 9828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9829 (exit $ac_status); } && {
9830 test -z "$ac_c_werror_flag" ||
9831 test ! -s conftest.err
9832 } && test -s conftest.$ac_objext; then
ad6254c5
AK
9833 ac_header_compiler=yes
9834else
1995c9ff 9835 echo "$as_me: failed program was:" >&5
ad6254c5
AK
9836sed 's/^/| /' conftest.$ac_ext >&5
9837
7a197a62 9838 ac_header_compiler=no
ad6254c5 9839fi
7a197a62
AK
9840
9841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1995c9ff
AK
9842{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9843echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
9844
9845# Is the header present?
1995c9ff
AK
9846{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9847echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 9848cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9849/* confdefs.h. */
9850_ACEOF
9851cat confdefs.h >>conftest.$ac_ext
9852cat >>conftest.$ac_ext <<_ACEOF
9853/* end confdefs.h. */
9854#include <$ac_header>
9855_ACEOF
7a197a62
AK
9856if { (ac_try="$ac_cpp conftest.$ac_ext"
9857case "(($ac_try" in
9858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9859 *) ac_try_echo=$ac_try;;
9860esac
1995c9ff 9861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 9862 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
9863 ac_status=$?
9864 grep -v '^ *+' conftest.er1 >conftest.err
9865 rm -f conftest.er1
9866 cat conftest.err >&5
1995c9ff 9867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9868 (exit $ac_status); } >/dev/null && {
9869 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9870 test ! -s conftest.err
9871 }; then
ad6254c5
AK
9872 ac_header_preproc=yes
9873else
1995c9ff 9874 echo "$as_me: failed program was:" >&5
ad6254c5
AK
9875sed 's/^/| /' conftest.$ac_ext >&5
9876
9877 ac_header_preproc=no
9878fi
7a197a62 9879
ad6254c5 9880rm -f conftest.err conftest.$ac_ext
1995c9ff
AK
9881{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9882echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
9883
9884# So? What about this header?
8a2fc586
AK
9885case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9886 yes:no: )
1995c9ff
AK
9887 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9888echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9889 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9890echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 9891 ac_header_preproc=yes
ad6254c5 9892 ;;
8a2fc586 9893 no:yes:* )
1995c9ff
AK
9894 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9895echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9896 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9897echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9898 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9899echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9900 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9901echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9902 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9903echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9904 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9905echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 9906
ad6254c5
AK
9907 ;;
9908esac
1995c9ff
AK
9909{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9910echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 9911if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff 9912 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 9913else
8a2fc586 9914 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 9915fi
1995c9ff
AK
9916ac_res=`eval echo '${'$as_ac_Header'}'`
9917 { echo "$as_me:$LINENO: result: $ac_res" >&5
9918echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
9919
9920fi
1995c9ff 9921if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 9922 cat >>confdefs.h <<_ACEOF
1995c9ff 9923#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
9924_ACEOF
9925
9926else
1995c9ff
AK
9927 { { echo "$as_me:$LINENO: error: bailing out" >&5
9928echo "$as_me: error: bailing out" >&2;}
ad6254c5 9929 { (exit 1); exit 1; }; }
795ca3e5
AK
9930fi
9931
ad6254c5
AK
9932done
9933
9934
795ca3e5 9935
8106cdd5 9936
ad6254c5
AK
9937
9938
9939for ac_func in dup2 getmntent memmove select socket
9940do
1995c9ff
AK
9941as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9942{ echo "$as_me:$LINENO: checking for $ac_func" >&5
9943echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7a197a62 9944if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff 9945 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 9946else
ad6254c5 9947 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9948/* confdefs.h. */
9949_ACEOF
9950cat confdefs.h >>conftest.$ac_ext
9951cat >>conftest.$ac_ext <<_ACEOF
9952/* end confdefs.h. */
8a2fc586
AK
9953/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9954 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9955#define $ac_func innocuous_$ac_func
9956
795ca3e5 9957/* System header to define __stub macros and hopefully few prototypes,
ad6254c5
AK
9958 which can conflict with char $ac_func (); below.
9959 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9960 <limits.h> exists even on freestanding compilers. */
8a2fc586 9961
ad6254c5
AK
9962#ifdef __STDC__
9963# include <limits.h>
9964#else
9965# include <assert.h>
9966#endif
8a2fc586
AK
9967
9968#undef $ac_func
9969
7a197a62
AK
9970/* Override any GCC internal prototype to avoid an error.
9971 Use char because int might match the return type of a GCC
9972 builtin and then its argument prototype would still apply. */
ad6254c5
AK
9973#ifdef __cplusplus
9974extern "C"
ad6254c5 9975#endif
ad6254c5 9976char $ac_func ();
795ca3e5
AK
9977/* The GNU C library defines this for functions which it implements
9978 to always fail with ENOSYS. Some functions are actually named
9979 something starting with __ and the normal name is an alias. */
7a197a62 9980#if defined __stub_$ac_func || defined __stub___$ac_func
795ca3e5 9981choke me
795ca3e5
AK
9982#endif
9983
ad6254c5
AK
9984int
9985main ()
9986{
7a197a62 9987return $ac_func ();
ad6254c5
AK
9988 ;
9989 return 0;
9990}
9991_ACEOF
9992rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
9993if { (ac_try="$ac_link"
9994case "(($ac_try" in
9995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9996 *) ac_try_echo=$ac_try;;
9997esac
1995c9ff 9998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 9999 (eval "$ac_link") 2>conftest.er1
ad6254c5 10000 ac_status=$?
8a2fc586
AK
10001 grep -v '^ *+' conftest.er1 >conftest.err
10002 rm -f conftest.er1
10003 cat conftest.err >&5
1995c9ff 10004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10005 (exit $ac_status); } && {
10006 test -z "$ac_c_werror_flag" ||
10007 test ! -s conftest.err
10008 } && test -s conftest$ac_exeext &&
10009 $as_test_x conftest$ac_exeext; then
ad6254c5 10010 eval "$as_ac_var=yes"
795ca3e5 10011else
1995c9ff 10012 echo "$as_me: failed program was:" >&5
ad6254c5
AK
10013sed 's/^/| /' conftest.$ac_ext >&5
10014
7a197a62 10015 eval "$as_ac_var=no"
80992638 10016fi
7a197a62 10017
25fbec5b 10018rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 10019 conftest$ac_exeext conftest.$ac_ext
795ca3e5 10020fi
1995c9ff
AK
10021ac_res=`eval echo '${'$as_ac_var'}'`
10022 { echo "$as_me:$LINENO: result: $ac_res" >&5
10023echo "${ECHO_T}$ac_res" >&6; }
10024if test `eval echo '${'$as_ac_var'}'` = yes; then
ad6254c5 10025 cat >>confdefs.h <<_ACEOF
1995c9ff 10026#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5 10027_ACEOF
80992638
AK
10028
10029else
1995c9ff
AK
10030 { { echo "$as_me:$LINENO: error: bailing out" >&5
10031echo "$as_me: error: bailing out" >&2;}
ad6254c5 10032 { (exit 1); exit 1; }; }
8106cdd5 10033fi
ad6254c5 10034done
795ca3e5 10035
25fbec5b
AK
10036 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
10037# -lseq on Dynix/PTX, -lgen on Unixware.
10038{ echo "$as_me:$LINENO: checking for library containing getmntent" >&5
10039echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
10040if test "${ac_cv_search_getmntent+set}" = set; then
10041 echo $ECHO_N "(cached) $ECHO_C" >&6
10042else
10043 ac_func_search_save_LIBS=$LIBS
10044cat >conftest.$ac_ext <<_ACEOF
10045/* confdefs.h. */
10046_ACEOF
10047cat confdefs.h >>conftest.$ac_ext
10048cat >>conftest.$ac_ext <<_ACEOF
10049/* end confdefs.h. */
80992638 10050
7a197a62
AK
10051/* Override any GCC internal prototype to avoid an error.
10052 Use char because int might match the return type of a GCC
ad6254c5 10053 builtin and then its argument prototype would still apply. */
ad6254c5
AK
10054#ifdef __cplusplus
10055extern "C"
10056#endif
25fbec5b 10057char getmntent ();
ad6254c5
AK
10058int
10059main ()
10060{
25fbec5b 10061return getmntent ();
ad6254c5
AK
10062 ;
10063 return 0;
10064}
10065_ACEOF
25fbec5b
AK
10066for ac_lib in '' sun seq gen; do
10067 if test -z "$ac_lib"; then
10068 ac_res="none required"
10069 else
10070 ac_res=-l$ac_lib
10071 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10072 fi
10073 rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
10074if { (ac_try="$ac_link"
10075case "(($ac_try" in
10076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10077 *) ac_try_echo=$ac_try;;
10078esac
1995c9ff 10079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 10080 (eval "$ac_link") 2>conftest.er1
ad6254c5 10081 ac_status=$?
8a2fc586
AK
10082 grep -v '^ *+' conftest.er1 >conftest.err
10083 rm -f conftest.er1
10084 cat conftest.err >&5
1995c9ff 10085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10086 (exit $ac_status); } && {
10087 test -z "$ac_c_werror_flag" ||
10088 test ! -s conftest.err
10089 } && test -s conftest$ac_exeext &&
10090 $as_test_x conftest$ac_exeext; then
10091 ac_cv_search_getmntent=$ac_res
80992638 10092else
1995c9ff 10093 echo "$as_me: failed program was:" >&5
ad6254c5
AK
10094sed 's/^/| /' conftest.$ac_ext >&5
10095
25fbec5b 10096
795ca3e5
AK
10097fi
10098
25fbec5b
AK
10099rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10100 conftest$ac_exeext
10101 if test "${ac_cv_search_getmntent+set}" = set; then
10102 break
795ca3e5 10103fi
25fbec5b
AK
10104done
10105if test "${ac_cv_search_getmntent+set}" = set; then
10106 :
10107else
10108 ac_cv_search_getmntent=no
10109fi
10110rm conftest.$ac_ext
10111LIBS=$ac_func_search_save_LIBS
10112fi
10113{ echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
10114echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
10115ac_res=$ac_cv_search_getmntent
10116if test "$ac_res" != no; then
10117 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10118 ac_cv_func_getmntent=yes
10119
10120cat >>confdefs.h <<\_ACEOF
d0191583 10121#define HAVE_GETMNTENT 1
ad6254c5 10122_ACEOF
795ca3e5 10123
25fbec5b
AK
10124else
10125 ac_cv_func_getmntent=no
795ca3e5 10126fi
795ca3e5
AK
10127
10128
ad6254c5
AK
10129# AC_FUNC_REALLOC
10130
10131
10132for ac_header in sys/select.h sys/socket.h
10133do
1995c9ff 10134as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 10135if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff
AK
10136 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10137echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 10138if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff 10139 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 10140fi
1995c9ff
AK
10141ac_res=`eval echo '${'$as_ac_Header'}'`
10142 { echo "$as_me:$LINENO: result: $ac_res" >&5
10143echo "${ECHO_T}$ac_res" >&6; }
795ca3e5 10144else
ad6254c5 10145 # Is the header compilable?
1995c9ff
AK
10146{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10147echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 10148cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10149/* confdefs.h. */
10150_ACEOF
10151cat confdefs.h >>conftest.$ac_ext
10152cat >>conftest.$ac_ext <<_ACEOF
10153/* end confdefs.h. */
10154$ac_includes_default
10155#include <$ac_header>
10156_ACEOF
10157rm -f conftest.$ac_objext
7a197a62
AK
10158if { (ac_try="$ac_compile"
10159case "(($ac_try" in
10160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10161 *) ac_try_echo=$ac_try;;
10162esac
1995c9ff 10163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 10164 (eval "$ac_compile") 2>conftest.er1
ad6254c5 10165 ac_status=$?
8a2fc586
AK
10166 grep -v '^ *+' conftest.er1 >conftest.err
10167 rm -f conftest.er1
10168 cat conftest.err >&5
1995c9ff 10169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10170 (exit $ac_status); } && {
10171 test -z "$ac_c_werror_flag" ||
10172 test ! -s conftest.err
10173 } && test -s conftest.$ac_objext; then
ad6254c5 10174 ac_header_compiler=yes
80992638 10175else
1995c9ff 10176 echo "$as_me: failed program was:" >&5
ad6254c5
AK
10177sed 's/^/| /' conftest.$ac_ext >&5
10178
7a197a62 10179 ac_header_compiler=no
ad6254c5 10180fi
7a197a62
AK
10181
10182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1995c9ff
AK
10183{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10184echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
10185
10186# Is the header present?
1995c9ff
AK
10187{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10188echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 10189cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10190/* confdefs.h. */
10191_ACEOF
10192cat confdefs.h >>conftest.$ac_ext
10193cat >>conftest.$ac_ext <<_ACEOF
10194/* end confdefs.h. */
10195#include <$ac_header>
10196_ACEOF
7a197a62
AK
10197if { (ac_try="$ac_cpp conftest.$ac_ext"
10198case "(($ac_try" in
10199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10200 *) ac_try_echo=$ac_try;;
10201esac
1995c9ff 10202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 10203 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
10204 ac_status=$?
10205 grep -v '^ *+' conftest.er1 >conftest.err
10206 rm -f conftest.er1
10207 cat conftest.err >&5
1995c9ff 10208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10209 (exit $ac_status); } >/dev/null && {
10210 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10211 test ! -s conftest.err
10212 }; then
ad6254c5
AK
10213 ac_header_preproc=yes
10214else
1995c9ff 10215 echo "$as_me: failed program was:" >&5
ad6254c5
AK
10216sed 's/^/| /' conftest.$ac_ext >&5
10217
10218 ac_header_preproc=no
10219fi
7a197a62 10220
ad6254c5 10221rm -f conftest.err conftest.$ac_ext
1995c9ff
AK
10222{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10223echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
10224
10225# So? What about this header?
8a2fc586
AK
10226case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10227 yes:no: )
1995c9ff
AK
10228 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10229echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10230 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10231echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 10232 ac_header_preproc=yes
ad6254c5 10233 ;;
8a2fc586 10234 no:yes:* )
1995c9ff
AK
10235 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10236echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10237 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10238echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10239 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10240echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10241 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10242echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10243 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10244echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10245 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10246echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 10247
ad6254c5
AK
10248 ;;
10249esac
1995c9ff
AK
10250{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10251echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 10252if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff 10253 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 10254else
8a2fc586 10255 eval "$as_ac_Header=\$ac_header_preproc"
8106cdd5 10256fi
1995c9ff
AK
10257ac_res=`eval echo '${'$as_ac_Header'}'`
10258 { echo "$as_me:$LINENO: result: $ac_res" >&5
10259echo "${ECHO_T}$ac_res" >&6; }
8106cdd5 10260
795ca3e5 10261fi
1995c9ff 10262if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 10263 cat >>confdefs.h <<_ACEOF
1995c9ff 10264#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
10265_ACEOF
10266
795ca3e5
AK
10267fi
10268
ad6254c5
AK
10269done
10270
1995c9ff
AK
10271{ echo "$as_me:$LINENO: checking types of arguments for select" >&5
10272echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
ad6254c5 10273if test "${ac_cv_func_select_args+set}" = set; then
1995c9ff 10274 echo $ECHO_N "(cached) $ECHO_C" >&6
26e7f2e0 10275else
ad6254c5 10276 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
7a197a62 10277 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
ad6254c5
AK
10278 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
10279 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10280/* confdefs.h. */
10281_ACEOF
10282cat confdefs.h >>conftest.$ac_ext
10283cat >>conftest.$ac_ext <<_ACEOF
10284/* end confdefs.h. */
10285$ac_includes_default
25fbec5b 10286#ifdef HAVE_SYS_SELECT_H
ad6254c5
AK
10287# include <sys/select.h>
10288#endif
25fbec5b 10289#ifdef HAVE_SYS_SOCKET_H
ad6254c5
AK
10290# include <sys/socket.h>
10291#endif
10292
10293int
10294main ()
10295{
10296extern int select ($ac_arg1,
8a2fc586
AK
10297 $ac_arg234, $ac_arg234, $ac_arg234,
10298 $ac_arg5);
ad6254c5
AK
10299 ;
10300 return 0;
10301}
10302_ACEOF
10303rm -f conftest.$ac_objext
7a197a62
AK
10304if { (ac_try="$ac_compile"
10305case "(($ac_try" in
10306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10307 *) ac_try_echo=$ac_try;;
10308esac
1995c9ff 10309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 10310 (eval "$ac_compile") 2>conftest.er1
ad6254c5 10311 ac_status=$?
8a2fc586
AK
10312 grep -v '^ *+' conftest.er1 >conftest.err
10313 rm -f conftest.er1
10314 cat conftest.err >&5
1995c9ff 10315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10316 (exit $ac_status); } && {
10317 test -z "$ac_c_werror_flag" ||
10318 test ! -s conftest.err
10319 } && test -s conftest.$ac_objext; then
ad6254c5
AK
10320 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
10321else
1995c9ff 10322 echo "$as_me: failed program was:" >&5
ad6254c5
AK
10323sed 's/^/| /' conftest.$ac_ext >&5
10324
7a197a62 10325
ad6254c5 10326fi
7a197a62
AK
10327
10328rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
10329 done
10330 done
10331done
10332# Provide a safe default value.
10333: ${ac_cv_func_select_args='int,int *,struct timeval *'}
10334
26e7f2e0 10335fi
1995c9ff
AK
10336{ echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
10337echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
ad6254c5
AK
10338ac_save_IFS=$IFS; IFS=','
10339set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
10340IFS=$ac_save_IFS
10341shift
10342
10343cat >>confdefs.h <<_ACEOF
10344#define SELECT_TYPE_ARG1 $1
10345_ACEOF
10346
10347
10348cat >>confdefs.h <<_ACEOF
10349#define SELECT_TYPE_ARG234 ($2)
10350_ACEOF
10351
10352
10353cat >>confdefs.h <<_ACEOF
10354#define SELECT_TYPE_ARG5 ($3)
10355_ACEOF
10356
80992638 10357rm -f conftest*
80992638 10358
8106cdd5 10359fi
ad6254c5 10360
ad6254c5
AK
10361if test x$CLUSTER != xnone; then
10362
10363
10364for ac_header in sys/socket.h sys/un.h
b896caa1 10365do
1995c9ff 10366as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 10367if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff
AK
10368 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10369echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 10370if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff 10371 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 10372fi
1995c9ff
AK
10373ac_res=`eval echo '${'$as_ac_Header'}'`
10374 { echo "$as_me:$LINENO: result: $ac_res" >&5
10375echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
10376else
10377 # Is the header compilable?
1995c9ff
AK
10378{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10379echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 10380cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10381/* confdefs.h. */
10382_ACEOF
10383cat confdefs.h >>conftest.$ac_ext
10384cat >>conftest.$ac_ext <<_ACEOF
10385/* end confdefs.h. */
10386$ac_includes_default
10387#include <$ac_header>
10388_ACEOF
10389rm -f conftest.$ac_objext
7a197a62
AK
10390if { (ac_try="$ac_compile"
10391case "(($ac_try" in
10392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10393 *) ac_try_echo=$ac_try;;
10394esac
1995c9ff 10395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 10396 (eval "$ac_compile") 2>conftest.er1
ad6254c5 10397 ac_status=$?
8a2fc586
AK
10398 grep -v '^ *+' conftest.er1 >conftest.err
10399 rm -f conftest.er1
10400 cat conftest.err >&5
1995c9ff 10401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10402 (exit $ac_status); } && {
10403 test -z "$ac_c_werror_flag" ||
10404 test ! -s conftest.err
10405 } && test -s conftest.$ac_objext; then
ad6254c5
AK
10406 ac_header_compiler=yes
10407else
1995c9ff 10408 echo "$as_me: failed program was:" >&5
ad6254c5
AK
10409sed 's/^/| /' conftest.$ac_ext >&5
10410
7a197a62 10411 ac_header_compiler=no
ad6254c5 10412fi
7a197a62
AK
10413
10414rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1995c9ff
AK
10415{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10416echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
10417
10418# Is the header present?
1995c9ff
AK
10419{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10420echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 10421cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10422/* confdefs.h. */
10423_ACEOF
10424cat confdefs.h >>conftest.$ac_ext
10425cat >>conftest.$ac_ext <<_ACEOF
10426/* end confdefs.h. */
10427#include <$ac_header>
10428_ACEOF
7a197a62
AK
10429if { (ac_try="$ac_cpp conftest.$ac_ext"
10430case "(($ac_try" in
10431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10432 *) ac_try_echo=$ac_try;;
10433esac
1995c9ff 10434eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 10435 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
10436 ac_status=$?
10437 grep -v '^ *+' conftest.er1 >conftest.err
10438 rm -f conftest.er1
10439 cat conftest.err >&5
1995c9ff 10440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10441 (exit $ac_status); } >/dev/null && {
10442 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10443 test ! -s conftest.err
10444 }; then
ad6254c5
AK
10445 ac_header_preproc=yes
10446else
1995c9ff 10447 echo "$as_me: failed program was:" >&5
ad6254c5
AK
10448sed 's/^/| /' conftest.$ac_ext >&5
10449
10450 ac_header_preproc=no
10451fi
7a197a62 10452
ad6254c5 10453rm -f conftest.err conftest.$ac_ext
1995c9ff
AK
10454{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10455echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
10456
10457# So? What about this header?
8a2fc586
AK
10458case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10459 yes:no: )
1995c9ff
AK
10460 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10461echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10462 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10463echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 10464 ac_header_preproc=yes
ad6254c5 10465 ;;
8a2fc586 10466 no:yes:* )
1995c9ff
AK
10467 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10468echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10469 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10470echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10471 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10472echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10473 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10474echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10475 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10476echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10477 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10478echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 10479
ad6254c5
AK
10480 ;;
10481esac
1995c9ff
AK
10482{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10483echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 10484if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff 10485 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 10486else
8a2fc586 10487 eval "$as_ac_Header=\$ac_header_preproc"
b896caa1 10488fi
1995c9ff
AK
10489ac_res=`eval echo '${'$as_ac_Header'}'`
10490 { echo "$as_me:$LINENO: result: $ac_res" >&5
10491echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
10492
10493fi
1995c9ff 10494if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 10495 cat >>confdefs.h <<_ACEOF
1995c9ff 10496#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
10497_ACEOF
10498
80992638 10499else
1995c9ff
AK
10500 { { echo "$as_me:$LINENO: error: bailing out" >&5
10501echo "$as_me: error: bailing out" >&2;}
ad6254c5 10502 { (exit 1); exit 1; }; }
b896caa1 10503fi
ad6254c5 10504
b896caa1
AK
10505done
10506
10507
ad6254c5
AK
10508for ac_func in socket
10509do
1995c9ff
AK
10510as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10511{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10512echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7a197a62 10513if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff 10514 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 10515else
ad6254c5 10516 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10517/* confdefs.h. */
10518_ACEOF
10519cat confdefs.h >>conftest.$ac_ext
10520cat >>conftest.$ac_ext <<_ACEOF
10521/* end confdefs.h. */
8a2fc586
AK
10522/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10523 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10524#define $ac_func innocuous_$ac_func
10525
ad6254c5
AK
10526/* System header to define __stub macros and hopefully few prototypes,
10527 which can conflict with char $ac_func (); below.
10528 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10529 <limits.h> exists even on freestanding compilers. */
8a2fc586 10530
ad6254c5
AK
10531#ifdef __STDC__
10532# include <limits.h>
10533#else
10534# include <assert.h>
10535#endif
8a2fc586
AK
10536
10537#undef $ac_func
10538
7a197a62
AK
10539/* Override any GCC internal prototype to avoid an error.
10540 Use char because int might match the return type of a GCC
10541 builtin and then its argument prototype would still apply. */
ad6254c5
AK
10542#ifdef __cplusplus
10543extern "C"
ad6254c5 10544#endif
ad6254c5
AK
10545char $ac_func ();
10546/* The GNU C library defines this for functions which it implements
10547 to always fail with ENOSYS. Some functions are actually named
10548 something starting with __ and the normal name is an alias. */
7a197a62 10549#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 10550choke me
ad6254c5
AK
10551#endif
10552
10553int
10554main ()
10555{
7a197a62 10556return $ac_func ();
ad6254c5
AK
10557 ;
10558 return 0;
10559}
10560_ACEOF
10561rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
10562if { (ac_try="$ac_link"
10563case "(($ac_try" in
10564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10565 *) ac_try_echo=$ac_try;;
10566esac
1995c9ff 10567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 10568 (eval "$ac_link") 2>conftest.er1
ad6254c5 10569 ac_status=$?
8a2fc586
AK
10570 grep -v '^ *+' conftest.er1 >conftest.err
10571 rm -f conftest.er1
10572 cat conftest.err >&5
1995c9ff 10573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10574 (exit $ac_status); } && {
10575 test -z "$ac_c_werror_flag" ||
10576 test ! -s conftest.err
10577 } && test -s conftest$ac_exeext &&
10578 $as_test_x conftest$ac_exeext; then
ad6254c5
AK
10579 eval "$as_ac_var=yes"
10580else
1995c9ff 10581 echo "$as_me: failed program was:" >&5
ad6254c5
AK
10582sed 's/^/| /' conftest.$ac_ext >&5
10583
7a197a62 10584 eval "$as_ac_var=no"
ad6254c5 10585fi
7a197a62 10586
25fbec5b 10587rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 10588 conftest$ac_exeext conftest.$ac_ext
ad6254c5 10589fi
1995c9ff
AK
10590ac_res=`eval echo '${'$as_ac_var'}'`
10591 { echo "$as_me:$LINENO: result: $ac_res" >&5
10592echo "${ECHO_T}$ac_res" >&6; }
10593if test `eval echo '${'$as_ac_var'}'` = yes; then
ad6254c5 10594 cat >>confdefs.h <<_ACEOF
1995c9ff 10595#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
10596_ACEOF
10597
10598else
1995c9ff
AK
10599 { { echo "$as_me:$LINENO: error: bailing out" >&5
10600echo "$as_me: error: bailing out" >&2;}
ad6254c5
AK
10601 { (exit 1); exit 1; }; }
10602fi
10603done
10604
10605fi
10606
10607if test x$HAVE_LIBDL = xyes; then
10608
10609for ac_header in dlfcn.h
10610do
1995c9ff 10611as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 10612if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff
AK
10613 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10614echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 10615if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff 10616 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 10617fi
1995c9ff
AK
10618ac_res=`eval echo '${'$as_ac_Header'}'`
10619 { echo "$as_me:$LINENO: result: $ac_res" >&5
10620echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
10621else
10622 # Is the header compilable?
1995c9ff
AK
10623{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10624echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 10625cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10626/* confdefs.h. */
10627_ACEOF
10628cat confdefs.h >>conftest.$ac_ext
10629cat >>conftest.$ac_ext <<_ACEOF
10630/* end confdefs.h. */
10631$ac_includes_default
10632#include <$ac_header>
10633_ACEOF
10634rm -f conftest.$ac_objext
7a197a62
AK
10635if { (ac_try="$ac_compile"
10636case "(($ac_try" in
10637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10638 *) ac_try_echo=$ac_try;;
10639esac
1995c9ff 10640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 10641 (eval "$ac_compile") 2>conftest.er1
ad6254c5 10642 ac_status=$?
8a2fc586
AK
10643 grep -v '^ *+' conftest.er1 >conftest.err
10644 rm -f conftest.er1
10645 cat conftest.err >&5
1995c9ff 10646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10647 (exit $ac_status); } && {
10648 test -z "$ac_c_werror_flag" ||
10649 test ! -s conftest.err
10650 } && test -s conftest.$ac_objext; then
ad6254c5
AK
10651 ac_header_compiler=yes
10652else
1995c9ff 10653 echo "$as_me: failed program was:" >&5
ad6254c5
AK
10654sed 's/^/| /' conftest.$ac_ext >&5
10655
7a197a62 10656 ac_header_compiler=no
ad6254c5 10657fi
7a197a62
AK
10658
10659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1995c9ff
AK
10660{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10661echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
10662
10663# Is the header present?
1995c9ff
AK
10664{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10665echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 10666cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10667/* confdefs.h. */
10668_ACEOF
10669cat confdefs.h >>conftest.$ac_ext
10670cat >>conftest.$ac_ext <<_ACEOF
10671/* end confdefs.h. */
10672#include <$ac_header>
10673_ACEOF
7a197a62
AK
10674if { (ac_try="$ac_cpp conftest.$ac_ext"
10675case "(($ac_try" in
10676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10677 *) ac_try_echo=$ac_try;;
10678esac
1995c9ff 10679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 10680 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
10681 ac_status=$?
10682 grep -v '^ *+' conftest.er1 >conftest.err
10683 rm -f conftest.er1
10684 cat conftest.err >&5
1995c9ff 10685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10686 (exit $ac_status); } >/dev/null && {
10687 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10688 test ! -s conftest.err
10689 }; then
ad6254c5
AK
10690 ac_header_preproc=yes
10691else
1995c9ff 10692 echo "$as_me: failed program was:" >&5
ad6254c5
AK
10693sed 's/^/| /' conftest.$ac_ext >&5
10694
10695 ac_header_preproc=no
10696fi
7a197a62 10697
ad6254c5 10698rm -f conftest.err conftest.$ac_ext
1995c9ff
AK
10699{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10700echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
10701
10702# So? What about this header?
8a2fc586
AK
10703case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10704 yes:no: )
1995c9ff
AK
10705 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10706echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10707 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10708echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 10709 ac_header_preproc=yes
ad6254c5 10710 ;;
8a2fc586 10711 no:yes:* )
1995c9ff
AK
10712 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10713echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10714 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10715echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10716 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10717echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10718 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10719echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10720 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10721echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10722 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10723echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 10724
ad6254c5
AK
10725 ;;
10726esac
1995c9ff
AK
10727{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10728echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 10729if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff 10730 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 10731else
8a2fc586 10732 eval "$as_ac_Header=\$ac_header_preproc"
795ca3e5 10733fi
1995c9ff
AK
10734ac_res=`eval echo '${'$as_ac_Header'}'`
10735 { echo "$as_me:$LINENO: result: $ac_res" >&5
10736echo "${ECHO_T}$ac_res" >&6; }
80992638 10737
8106cdd5 10738fi
1995c9ff 10739if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 10740 cat >>confdefs.h <<_ACEOF
1995c9ff 10741#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 10742_ACEOF
795ca3e5
AK
10743
10744else
1995c9ff
AK
10745 { { echo "$as_me:$LINENO: error: bailing out" >&5
10746echo "$as_me: error: bailing out" >&2;}
ad6254c5 10747 { (exit 1); exit 1; }; }
795ca3e5
AK
10748fi
10749
ad6254c5 10750done
80992638 10751
ad6254c5 10752fi
80992638 10753
ad6254c5 10754if test x$INTL = xyes; then
83912faa 10755
ad6254c5
AK
10756for ac_header in libintl.h
10757do
1995c9ff 10758as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 10759if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff
AK
10760 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10761echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 10762if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff 10763 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 10764fi
1995c9ff
AK
10765ac_res=`eval echo '${'$as_ac_Header'}'`
10766 { echo "$as_me:$LINENO: result: $ac_res" >&5
10767echo "${ECHO_T}$ac_res" >&6; }
83912faa 10768else
ad6254c5 10769 # Is the header compilable?
1995c9ff
AK
10770{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10771echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 10772cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10773/* confdefs.h. */
10774_ACEOF
10775cat confdefs.h >>conftest.$ac_ext
10776cat >>conftest.$ac_ext <<_ACEOF
10777/* end confdefs.h. */
10778$ac_includes_default
10779#include <$ac_header>
10780_ACEOF
10781rm -f conftest.$ac_objext
7a197a62
AK
10782if { (ac_try="$ac_compile"
10783case "(($ac_try" in
10784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10785 *) ac_try_echo=$ac_try;;
10786esac
1995c9ff 10787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 10788 (eval "$ac_compile") 2>conftest.er1
ad6254c5 10789 ac_status=$?
8a2fc586
AK
10790 grep -v '^ *+' conftest.er1 >conftest.err
10791 rm -f conftest.er1
10792 cat conftest.err >&5
1995c9ff 10793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10794 (exit $ac_status); } && {
10795 test -z "$ac_c_werror_flag" ||
10796 test ! -s conftest.err
10797 } && test -s conftest.$ac_objext; then
ad6254c5
AK
10798 ac_header_compiler=yes
10799else
1995c9ff 10800 echo "$as_me: failed program was:" >&5
ad6254c5
AK
10801sed 's/^/| /' conftest.$ac_ext >&5
10802
7a197a62 10803 ac_header_compiler=no
ad6254c5 10804fi
7a197a62
AK
10805
10806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1995c9ff
AK
10807{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10808echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
10809
10810# Is the header present?
1995c9ff
AK
10811{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10812echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 10813cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10814/* confdefs.h. */
10815_ACEOF
10816cat confdefs.h >>conftest.$ac_ext
10817cat >>conftest.$ac_ext <<_ACEOF
10818/* end confdefs.h. */
10819#include <$ac_header>
10820_ACEOF
7a197a62
AK
10821if { (ac_try="$ac_cpp conftest.$ac_ext"
10822case "(($ac_try" in
10823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10824 *) ac_try_echo=$ac_try;;
10825esac
1995c9ff 10826eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 10827 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
10828 ac_status=$?
10829 grep -v '^ *+' conftest.er1 >conftest.err
10830 rm -f conftest.er1
10831 cat conftest.err >&5
1995c9ff 10832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10833 (exit $ac_status); } >/dev/null && {
10834 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10835 test ! -s conftest.err
10836 }; then
ad6254c5
AK
10837 ac_header_preproc=yes
10838else
1995c9ff 10839 echo "$as_me: failed program was:" >&5
ad6254c5
AK
10840sed 's/^/| /' conftest.$ac_ext >&5
10841
10842 ac_header_preproc=no
10843fi
7a197a62 10844
ad6254c5 10845rm -f conftest.err conftest.$ac_ext
1995c9ff
AK
10846{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10847echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
10848
10849# So? What about this header?
8a2fc586
AK
10850case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10851 yes:no: )
1995c9ff
AK
10852 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10853echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10854 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10855echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 10856 ac_header_preproc=yes
ad6254c5 10857 ;;
8a2fc586 10858 no:yes:* )
1995c9ff
AK
10859 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10860echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10861 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10862echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10863 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10864echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10865 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10866echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10867 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10868echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10869 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10870echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 10871
ad6254c5
AK
10872 ;;
10873esac
1995c9ff
AK
10874{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10875echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 10876if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff 10877 echo $ECHO_N "(cached) $ECHO_C" >&6
80992638 10878else
8a2fc586 10879 eval "$as_ac_Header=\$ac_header_preproc"
83912faa 10880fi
1995c9ff
AK
10881ac_res=`eval echo '${'$as_ac_Header'}'`
10882 { echo "$as_me:$LINENO: result: $ac_res" >&5
10883echo "${ECHO_T}$ac_res" >&6; }
83912faa 10884
69792976 10885fi
1995c9ff 10886if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 10887 cat >>confdefs.h <<_ACEOF
1995c9ff 10888#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 10889_ACEOF
69792976 10890
69792976 10891else
1995c9ff
AK
10892 { { echo "$as_me:$LINENO: error: bailing out" >&5
10893echo "$as_me: error: bailing out" >&2;}
ad6254c5 10894 { (exit 1); exit 1; }; }
80992638
AK
10895fi
10896
ad6254c5 10897done
69792976 10898
ad6254c5
AK
10899fi
10900
ad6254c5
AK
10901
10902for ac_header in libdevmapper.h
10903do
1995c9ff 10904as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 10905if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff
AK
10906 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10907echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 10908if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff 10909 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 10910fi
1995c9ff
AK
10911ac_res=`eval echo '${'$as_ac_Header'}'`
10912 { echo "$as_me:$LINENO: result: $ac_res" >&5
10913echo "${ECHO_T}$ac_res" >&6; }
69792976 10914else
ad6254c5 10915 # Is the header compilable?
1995c9ff
AK
10916{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10917echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 10918cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10919/* confdefs.h. */
10920_ACEOF
10921cat confdefs.h >>conftest.$ac_ext
10922cat >>conftest.$ac_ext <<_ACEOF
10923/* end confdefs.h. */
10924$ac_includes_default
10925#include <$ac_header>
10926_ACEOF
10927rm -f conftest.$ac_objext
7a197a62
AK
10928if { (ac_try="$ac_compile"
10929case "(($ac_try" in
10930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10931 *) ac_try_echo=$ac_try;;
10932esac
1995c9ff 10933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 10934 (eval "$ac_compile") 2>conftest.er1
ad6254c5 10935 ac_status=$?
8a2fc586
AK
10936 grep -v '^ *+' conftest.er1 >conftest.err
10937 rm -f conftest.er1
10938 cat conftest.err >&5
1995c9ff 10939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10940 (exit $ac_status); } && {
10941 test -z "$ac_c_werror_flag" ||
10942 test ! -s conftest.err
10943 } && test -s conftest.$ac_objext; then
ad6254c5
AK
10944 ac_header_compiler=yes
10945else
1995c9ff 10946 echo "$as_me: failed program was:" >&5
ad6254c5
AK
10947sed 's/^/| /' conftest.$ac_ext >&5
10948
7a197a62 10949 ac_header_compiler=no
ad6254c5 10950fi
7a197a62
AK
10951
10952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1995c9ff
AK
10953{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10954echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
10955
10956# Is the header present?
1995c9ff
AK
10957{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10958echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 10959cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10960/* confdefs.h. */
10961_ACEOF
10962cat confdefs.h >>conftest.$ac_ext
10963cat >>conftest.$ac_ext <<_ACEOF
10964/* end confdefs.h. */
10965#include <$ac_header>
10966_ACEOF
7a197a62
AK
10967if { (ac_try="$ac_cpp conftest.$ac_ext"
10968case "(($ac_try" in
10969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10970 *) ac_try_echo=$ac_try;;
10971esac
1995c9ff 10972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 10973 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
10974 ac_status=$?
10975 grep -v '^ *+' conftest.er1 >conftest.err
10976 rm -f conftest.er1
10977 cat conftest.err >&5
1995c9ff 10978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10979 (exit $ac_status); } >/dev/null && {
10980 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10981 test ! -s conftest.err
10982 }; then
ad6254c5
AK
10983 ac_header_preproc=yes
10984else
1995c9ff 10985 echo "$as_me: failed program was:" >&5
ad6254c5
AK
10986sed 's/^/| /' conftest.$ac_ext >&5
10987
10988 ac_header_preproc=no
10989fi
7a197a62 10990
ad6254c5 10991rm -f conftest.err conftest.$ac_ext
1995c9ff
AK
10992{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10993echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
10994
10995# So? What about this header?
8a2fc586
AK
10996case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10997 yes:no: )
1995c9ff
AK
10998 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10999echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11000 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11001echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 11002 ac_header_preproc=yes
ad6254c5 11003 ;;
8a2fc586 11004 no:yes:* )
1995c9ff
AK
11005 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11006echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11007 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11008echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11009 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11010echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11011 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11012echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11013 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11014echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11015 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11016echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 11017
ad6254c5
AK
11018 ;;
11019esac
1995c9ff
AK
11020{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11021echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 11022if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff 11023 echo $ECHO_N "(cached) $ECHO_C" >&6
69792976 11024else
8a2fc586 11025 eval "$as_ac_Header=\$ac_header_preproc"
69792976 11026fi
1995c9ff
AK
11027ac_res=`eval echo '${'$as_ac_Header'}'`
11028 { echo "$as_me:$LINENO: result: $ac_res" >&5
11029echo "${ECHO_T}$ac_res" >&6; }
69792976 11030
ad6254c5 11031fi
1995c9ff 11032if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 11033 cat >>confdefs.h <<_ACEOF
1995c9ff 11034#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 11035_ACEOF
69792976 11036
69792976 11037else
1995c9ff
AK
11038 { { echo "$as_me:$LINENO: error: bailing out" >&5
11039echo "$as_me: error: bailing out" >&2;}
ad6254c5 11040 { (exit 1); exit 1; }; }
83912faa
AK
11041fi
11042
ad6254c5
AK
11043done
11044
4a7f3eb2 11045
ad6254c5
AK
11046if test x$HAVE_SELINUX = xyes; then
11047
11048for ac_header in selinux/selinux.h
11049do
1995c9ff 11050as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 11051if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff
AK
11052 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11053echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 11054if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff 11055 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 11056fi
1995c9ff
AK
11057ac_res=`eval echo '${'$as_ac_Header'}'`
11058 { echo "$as_me:$LINENO: result: $ac_res" >&5
11059echo "${ECHO_T}$ac_res" >&6; }
4a7f3eb2 11060else
ad6254c5 11061 # Is the header compilable?
1995c9ff
AK
11062{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11063echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 11064cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11065/* confdefs.h. */
11066_ACEOF
11067cat confdefs.h >>conftest.$ac_ext
11068cat >>conftest.$ac_ext <<_ACEOF
11069/* end confdefs.h. */
11070$ac_includes_default
11071#include <$ac_header>
11072_ACEOF
11073rm -f conftest.$ac_objext
7a197a62
AK
11074if { (ac_try="$ac_compile"
11075case "(($ac_try" in
11076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11077 *) ac_try_echo=$ac_try;;
11078esac
1995c9ff 11079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 11080 (eval "$ac_compile") 2>conftest.er1
ad6254c5 11081 ac_status=$?
8a2fc586
AK
11082 grep -v '^ *+' conftest.er1 >conftest.err
11083 rm -f conftest.er1
11084 cat conftest.err >&5
1995c9ff 11085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11086 (exit $ac_status); } && {
11087 test -z "$ac_c_werror_flag" ||
11088 test ! -s conftest.err
11089 } && test -s conftest.$ac_objext; then
ad6254c5
AK
11090 ac_header_compiler=yes
11091else
1995c9ff 11092 echo "$as_me: failed program was:" >&5
ad6254c5
AK
11093sed 's/^/| /' conftest.$ac_ext >&5
11094
7a197a62 11095 ac_header_compiler=no
ad6254c5 11096fi
7a197a62
AK
11097
11098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1995c9ff
AK
11099{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11100echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
11101
11102# Is the header present?
1995c9ff
AK
11103{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11104echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 11105cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11106/* confdefs.h. */
11107_ACEOF
11108cat confdefs.h >>conftest.$ac_ext
11109cat >>conftest.$ac_ext <<_ACEOF
11110/* end confdefs.h. */
11111#include <$ac_header>
11112_ACEOF
7a197a62
AK
11113if { (ac_try="$ac_cpp conftest.$ac_ext"
11114case "(($ac_try" in
11115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11116 *) ac_try_echo=$ac_try;;
11117esac
1995c9ff 11118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 11119 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
11120 ac_status=$?
11121 grep -v '^ *+' conftest.er1 >conftest.err
11122 rm -f conftest.er1
11123 cat conftest.err >&5
1995c9ff 11124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11125 (exit $ac_status); } >/dev/null && {
11126 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11127 test ! -s conftest.err
11128 }; then
ad6254c5
AK
11129 ac_header_preproc=yes
11130else
1995c9ff 11131 echo "$as_me: failed program was:" >&5
ad6254c5
AK
11132sed 's/^/| /' conftest.$ac_ext >&5
11133
11134 ac_header_preproc=no
11135fi
7a197a62 11136
ad6254c5 11137rm -f conftest.err conftest.$ac_ext
1995c9ff
AK
11138{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11139echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
11140
11141# So? What about this header?
8a2fc586
AK
11142case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11143 yes:no: )
1995c9ff
AK
11144 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11145echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11146 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11147echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 11148 ac_header_preproc=yes
ad6254c5 11149 ;;
8a2fc586 11150 no:yes:* )
1995c9ff
AK
11151 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11152echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11153 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11154echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11155 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11156echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11157 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11158echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11159 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11160echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11161 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11162echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 11163
ad6254c5
AK
11164 ;;
11165esac
1995c9ff
AK
11166{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11167echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 11168if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff 11169 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 11170else
8a2fc586 11171 eval "$as_ac_Header=\$ac_header_preproc"
80992638 11172fi
1995c9ff
AK
11173ac_res=`eval echo '${'$as_ac_Header'}'`
11174 { echo "$as_me:$LINENO: result: $ac_res" >&5
11175echo "${ECHO_T}$ac_res" >&6; }
4a7f3eb2 11176
ad6254c5 11177fi
1995c9ff 11178if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 11179 cat >>confdefs.h <<_ACEOF
1995c9ff 11180#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 11181_ACEOF
0a62c911 11182
0a62c911 11183else
1995c9ff
AK
11184 { { echo "$as_me:$LINENO: error: bailing out" >&5
11185echo "$as_me: error: bailing out" >&2;}
ad6254c5 11186 { (exit 1); exit 1; }; }
80992638
AK
11187fi
11188
ad6254c5 11189done
0a62c911 11190
ad6254c5 11191fi
0a62c911 11192
a653923f
AK
11193################################################################################
11194# Extract the first word of "modprobe", so it can be a program name with args.
11195set dummy modprobe; ac_word=$2
1995c9ff
AK
11196{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11197echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
72b2cb61 11198if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then
1995c9ff 11199 echo $ECHO_N "(cached) $ECHO_C" >&6
72b2cb61
AK
11200else
11201 case $MODPROBE_CMD in
11202 [\\/]* | ?:[\\/]*)
11203 ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path.
11204 ;;
11205 *)
11206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11207for as_dir in $PATH
11208do
11209 IFS=$as_save_IFS
11210 test -z "$as_dir" && as_dir=.
11211 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 11212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
72b2cb61 11213 ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext"
1995c9ff 11214 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
72b2cb61
AK
11215 break 2
11216 fi
11217done
11218done
7a197a62 11219IFS=$as_save_IFS
72b2cb61
AK
11220
11221 ;;
11222esac
11223fi
11224MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD
72b2cb61 11225if test -n "$MODPROBE_CMD"; then
1995c9ff
AK
11226 { echo "$as_me:$LINENO: result: $MODPROBE_CMD" >&5
11227echo "${ECHO_T}$MODPROBE_CMD" >&6; }
72b2cb61 11228else
1995c9ff
AK
11229 { echo "$as_me:$LINENO: result: no" >&5
11230echo "${ECHO_T}no" >&6; }
72b2cb61
AK
11231fi
11232
a653923f 11233
7a197a62 11234
a653923f 11235if test x$MODPROBE_CMD != x; then
72b2cb61
AK
11236
11237cat >>confdefs.h <<_ACEOF
11238#define MODPROBE_CMD "$MODPROBE_CMD"
11239_ACEOF
11240
a653923f
AK
11241fi
11242
80992638 11243################################################################################
d0191583 11244LVM_VERSION="\"`cat VERSION 2>/dev/null || echo Unknown`\""
fae0c576 11245
80992638 11246################################################################################
fae0c576 11247
83912faa 11248
795ca3e5
AK
11249
11250
11251
11252
11253
11254
5a52dca9 11255
8ef2b021 11256
199e490e 11257
69792976
AK
11258
11259
11260
d0191583
JM
11261# FIXME: rename to LVM_USE_DMEVENTD
11262
69792976 11263
8106cdd5
AK
11264
11265
11266
11267
11268
d68a82ec 11269
036f273a 11270
7d1552c9 11271
8106cdd5 11272
0a62c911 11273
8106cdd5 11274
4a7f3eb2 11275
4922197a
AK
11276
11277
d8ac0fbc 11278
1a9ea74d 11279
8a2fc586
AK
11280
11281
d0191583
JM
11282
11283# FIXME: rename to LVM_CONF_DIR
11284
11285
11286
11287
11288
8a2fc586 11289
8ce0cbda 11290
8b1a3214 11291
33f732c5 11292
66e941e8 11293
d3c8211f
AK
11294
11295
80992638 11296################################################################################
d0191583 11297ac_config_files="$ac_config_files Makefile make.tmpl include/Makefile lib/Makefile man/Makefile po/Makefile dmeventd/Makefile daemons/Makefile daemons/clvmd/Makefile dmeventd/mirror/Makefile dmeventd/snapshot/Makefile doc/Makefile lib/format1/Makefile lib/format_pool/Makefile lib/locking/Makefile lib/mirror/Makefile lib/snapshot/Makefile test/Makefile scripts/Makefile tools/Makefile tools/version.h"
7a197a62 11298
ad6254c5 11299cat >confcache <<\_ACEOF
795ca3e5
AK
11300# This file is a shell script that caches the results of configure
11301# tests run on this system so they can be shared between configure
ad6254c5
AK
11302# scripts and configure runs, see configure's option --config-cache.
11303# It is not useful on other systems. If it contains results you don't
11304# want to keep, you may remove or edit it.
795ca3e5 11305#
ad6254c5
AK
11306# config.status only pays attention to the cache file if you give it
11307# the --recheck option to rerun configure.
795ca3e5 11308#
ad6254c5
AK
11309# `ac_cv_env_foo' variables (set or unset) will be overridden when
11310# loading this file, other *unset* `ac_cv_foo' will be assigned the
11311# following values.
11312
11313_ACEOF
11314
795ca3e5
AK
11315# The following way of writing the cache mishandles newlines in values,
11316# but we know of no workaround that is simple, portable, and efficient.
7a197a62 11317# So, we kill variables containing newlines.
795ca3e5
AK
11318# Ultrix sh set writes to stderr and can't be redirected directly,
11319# and sets the high bit in the cache file unless we assign to the vars.
7a197a62
AK
11320(
11321 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11322 eval ac_val=\$$ac_var
11323 case $ac_val in #(
11324 *${as_nl}*)
11325 case $ac_var in #(
1995c9ff
AK
11326 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
11327echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
7a197a62
AK
11328 esac
11329 case $ac_var in #(
11330 _ | IFS | as_nl) ;; #(
11331 *) $as_unset $ac_var ;;
11332 esac ;;
11333 esac
11334 done
11335
ad6254c5 11336 (set) 2>&1 |
7a197a62
AK
11337 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11338 *${as_nl}ac_space=\ *)
ad6254c5
AK
11339 # `set' does not quote correctly, so add quotes (double-quote
11340 # substitution turns \\\\ into \\, and sed turns \\ into \).
11341 sed -n \
8a2fc586
AK
11342 "s/'/'\\\\''/g;
11343 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7a197a62 11344 ;; #(
ad6254c5
AK
11345 *)
11346 # `set' quotes correctly as required by POSIX, so do not add quotes.
7a197a62 11347 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
ad6254c5 11348 ;;
7a197a62
AK
11349 esac |
11350 sort
11351) |
ad6254c5 11352 sed '
7a197a62 11353 /^ac_cv_env_/b end
ad6254c5 11354 t clear
7a197a62 11355 :clear
ad6254c5
AK
11356 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11357 t end
7a197a62
AK
11358 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11359 :end' >>confcache
11360if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11361 if test -w "$cache_file"; then
11362 test "x$cache_file" != "x/dev/null" &&
1995c9ff
AK
11363 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
11364echo "$as_me: updating cache $cache_file" >&6;}
ad6254c5 11365 cat confcache >$cache_file
795ca3e5 11366 else
1995c9ff
AK
11367 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
11368echo "$as_me: not updating unwritable cache $cache_file" >&6;}
795ca3e5
AK
11369 fi
11370fi
11371rm -f confcache
11372
795ca3e5
AK
11373test "x$prefix" = xNONE && prefix=$ac_default_prefix
11374# Let make expand exec_prefix.
11375test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11376
72b2cb61 11377DEFS=-DHAVE_CONFIG_H
ad6254c5
AK
11378
11379ac_libobjs=
11380ac_ltlibobjs=
11381for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11382 # 1. Remove the extension, and $U if already installed.
7a197a62 11383 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
1995c9ff 11384 ac_i=`echo "$ac_i" | sed "$ac_script"`
7a197a62
AK
11385 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11386 # will be set to the directory where LIBOBJS objects are built.
11387 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11388 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
ad6254c5
AK
11389done
11390LIBOBJS=$ac_libobjs
80992638 11391
ad6254c5
AK
11392LTLIBOBJS=$ac_ltlibobjs
11393
11394
11395
11396: ${CONFIG_STATUS=./config.status}
11397ac_clean_files_save=$ac_clean_files
11398ac_clean_files="$ac_clean_files $CONFIG_STATUS"
1995c9ff
AK
11399{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11400echo "$as_me: creating $CONFIG_STATUS" >&6;}
ad6254c5
AK
11401cat >$CONFIG_STATUS <<_ACEOF
11402#! $SHELL
11403# Generated by $as_me.
795ca3e5 11404# Run this file to recreate the current configuration.
795ca3e5 11405# Compiler output produced by configure, useful for debugging
ad6254c5
AK
11406# configure, is in config.log if it exists.
11407
11408debug=false
11409ac_cs_recheck=false
11410ac_cs_silent=false
11411SHELL=\${CONFIG_SHELL-$SHELL}
11412_ACEOF
11413
11414cat >>$CONFIG_STATUS <<\_ACEOF
11415## --------------------- ##
11416## M4sh Initialization. ##
11417## --------------------- ##
11418
25fbec5b
AK
11419# Be more Bourne compatible
11420DUALCASE=1; export DUALCASE # for MKS sh
ad6254c5
AK
11421if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11422 emulate sh
11423 NULLCMD=:
11424 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11425 # is contrary to our usage. Disable this feature.
11426 alias -g '${1+"$@"}'='"$@"'
7a197a62
AK
11427 setopt NO_GLOB_SUBST
11428else
25fbec5b
AK
11429 case `(set -o) 2>/dev/null` in
11430 *posix*) set -o posix ;;
11431esac
11432
7a197a62 11433fi
25fbec5b
AK
11434
11435
7a197a62
AK
11436
11437
11438# PATH needs CR
11439# Avoid depending upon Character Ranges.
11440as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11441as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11442as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11443as_cr_digits='0123456789'
11444as_cr_alnum=$as_cr_Letters$as_cr_digits
11445
11446# The user is always right.
11447if test "${PATH_SEPARATOR+set}" != set; then
11448 echo "#! /bin/sh" >conf$$.sh
11449 echo "exit 0" >>conf$$.sh
11450 chmod +x conf$$.sh
11451 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11452 PATH_SEPARATOR=';'
11453 else
11454 PATH_SEPARATOR=:
11455 fi
11456 rm -f conf$$.sh
ad6254c5
AK
11457fi
11458
11459# Support unset when possible.
8a2fc586 11460if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
ad6254c5
AK
11461 as_unset=unset
11462else
11463 as_unset=false
11464fi
8106cdd5 11465
ad6254c5 11466
7a197a62
AK
11467# IFS
11468# We need space, tab and new line, in precisely that order. Quoting is
11469# there to prevent editors from complaining about space-tab.
11470# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11471# splitting by setting IFS to empty value.)
1995c9ff
AK
11472as_nl='
11473'
7a197a62
AK
11474IFS=" "" $as_nl"
11475
11476# Find who we are. Look in the path if we contain no directory separator.
11477case $0 in
11478 *[\\/]* ) as_myself=$0 ;;
11479 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11480for as_dir in $PATH
11481do
11482 IFS=$as_save_IFS
11483 test -z "$as_dir" && as_dir=.
11484 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11485done
11486IFS=$as_save_IFS
11487
11488 ;;
11489esac
11490# We did not find ourselves, most probably we were run as `sh COMMAND'
11491# in which case we are not to be found in the path.
11492if test "x$as_myself" = x; then
11493 as_myself=$0
11494fi
11495if test ! -f "$as_myself"; then
1995c9ff 11496 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7a197a62
AK
11497 { (exit 1); exit 1; }
11498fi
11499
ad6254c5 11500# Work around bugs in pre-3.0 UWIN ksh.
7a197a62
AK
11501for as_var in ENV MAIL MAILPATH
11502do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11503done
ad6254c5
AK
11504PS1='$ '
11505PS2='> '
11506PS4='+ '
11507
11508# NLS nuisances.
11509for as_var in \
11510 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11511 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11512 LC_TELEPHONE LC_TIME
8106cdd5 11513do
8a2fc586 11514 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
ad6254c5
AK
11515 eval $as_var=C; export $as_var
11516 else
7a197a62 11517 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
ad6254c5 11518 fi
8106cdd5
AK
11519done
11520
ad6254c5 11521# Required to use basename.
7a197a62
AK
11522if expr a : '\(a\)' >/dev/null 2>&1 &&
11523 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
11524 as_expr=expr
11525else
11526 as_expr=false
11527fi
8106cdd5 11528
7a197a62 11529if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
ad6254c5
AK
11530 as_basename=basename
11531else
11532 as_basename=false
11533fi
11534
11535
11536# Name of the executable.
7a197a62 11537as_me=`$as_basename -- "$0" ||
ad6254c5
AK
11538$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11539 X"$0" : 'X\(//\)$' \| \
7a197a62 11540 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1995c9ff 11541echo X/"$0" |
7a197a62
AK
11542 sed '/^.*\/\([^/][^/]*\)\/*$/{
11543 s//\1/
11544 q
11545 }
11546 /^X\/\(\/\/\)$/{
11547 s//\1/
11548 q
11549 }
11550 /^X\/\(\/\).*/{
11551 s//\1/
11552 q
11553 }
11554 s/.*/./; q'`
ad6254c5 11555
7a197a62
AK
11556# CDPATH.
11557$as_unset CDPATH
ad6254c5
AK
11558
11559
ad6254c5 11560
ad6254c5
AK
11561 as_lineno_1=$LINENO
11562 as_lineno_2=$LINENO
ad6254c5 11563 test "x$as_lineno_1" != "x$as_lineno_2" &&
7a197a62 11564 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
795ca3e5 11565
ad6254c5
AK
11566 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11567 # uniformly replaced by the line number. The first 'sed' inserts a
7a197a62
AK
11568 # line-number line after each line using $LINENO; the second 'sed'
11569 # does the real work. The second script uses 'N' to pair each
11570 # line-number line with the line containing $LINENO, and appends
11571 # trailing '-' during substitution so that $LINENO is not a special
11572 # case at line end.
ad6254c5 11573 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7a197a62
AK
11574 # scripts with optimization help from Paolo Bonzini. Blame Lee
11575 # E. McMahon (1931-1989) for sed's syntax. :-)
11576 sed -n '
11577 p
11578 /[$]LINENO/=
11579 ' <$as_myself |
ad6254c5 11580 sed '
7a197a62
AK
11581 s/[$]LINENO.*/&-/
11582 t lineno
11583 b
11584 :lineno
ad6254c5 11585 N
7a197a62
AK
11586 :loop
11587 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
ad6254c5 11588 t loop
7a197a62 11589 s/-\n.*//
ad6254c5 11590 ' >$as_me.lineno &&
7a197a62 11591 chmod +x "$as_me.lineno" ||
1995c9ff 11592 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
ad6254c5
AK
11593 { (exit 1); exit 1; }; }
11594
11595 # Don't try to exec as it changes $[0], causing all sort of problems
11596 # (the dirname of $[0] is not the place where we might find the
7a197a62
AK
11597 # original and so on. Autoconf is especially sensitive to this).
11598 . "./$as_me.lineno"
ad6254c5
AK
11599 # Exit status is that of the last command.
11600 exit
11601}
11602
11603
7a197a62
AK
11604if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11605 as_dirname=dirname
11606else
11607 as_dirname=false
11608fi
11609
11610ECHO_C= ECHO_N= ECHO_T=
11611case `echo -n x` in
11612-n*)
11613 case `echo 'x\c'` in
11614 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11615 *) ECHO_C='\c';;
11616 esac;;
11617*)
11618 ECHO_N='-n';;
ad6254c5 11619esac
1995c9ff 11620
7a197a62
AK
11621if expr a : '\(a\)' >/dev/null 2>&1 &&
11622 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
11623 as_expr=expr
11624else
11625 as_expr=false
11626fi
80992638 11627
ad6254c5 11628rm -f conf$$ conf$$.exe conf$$.file
7a197a62
AK
11629if test -d conf$$.dir; then
11630 rm -f conf$$.dir/conf$$.file
11631else
11632 rm -f conf$$.dir
11633 mkdir conf$$.dir
11634fi
ad6254c5
AK
11635echo >conf$$.file
11636if ln -s conf$$.file conf$$ 2>/dev/null; then
7a197a62
AK
11637 as_ln_s='ln -s'
11638 # ... but there are two gotchas:
11639 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11640 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11641 # In both cases, we have to default to `cp -p'.
11642 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
ad6254c5 11643 as_ln_s='cp -p'
ad6254c5
AK
11644elif ln conf$$.file conf$$ 2>/dev/null; then
11645 as_ln_s=ln
11646else
11647 as_ln_s='cp -p'
11648fi
7a197a62
AK
11649rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11650rmdir conf$$.dir 2>/dev/null
8106cdd5 11651
ad6254c5
AK
11652if mkdir -p . 2>/dev/null; then
11653 as_mkdir_p=:
11654else
8a2fc586 11655 test -d ./-p && rmdir ./-p
ad6254c5
AK
11656 as_mkdir_p=false
11657fi
11658
25fbec5b
AK
11659if test -x / >/dev/null 2>&1; then
11660 as_test_x='test -x'
7a197a62 11661else
25fbec5b
AK
11662 if ls -dL / >/dev/null 2>&1; then
11663 as_ls_L_option=L
11664 else
11665 as_ls_L_option=
11666 fi
11667 as_test_x='
11668 eval sh -c '\''
11669 if test -d "$1"; then
11670 test -d "$1/.";
11671 else
11672 case $1 in
11673 -*)set "./$1";;
11674 esac;
11675 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
11676 ???[sx]*):;;*)false;;esac;fi
11677 '\'' sh
11678 '
7a197a62 11679fi
25fbec5b 11680as_executable_p=$as_test_x
ad6254c5
AK
11681
11682# Sed expression to map a string onto a valid CPP name.
8a2fc586 11683as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
11684
11685# Sed expression to map a string onto a valid variable name.
8a2fc586 11686as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
11687
11688
ad6254c5
AK
11689exec 6>&1
11690
7a197a62 11691# Save the log message, to keep $[0] and so on meaningful, and to
ad6254c5 11692# report actual input values of CONFIG_FILES etc. instead of their
7a197a62
AK
11693# values after options handling.
11694ac_log="
ad6254c5 11695This file was extended by $as_me, which was
25fbec5b 11696generated by GNU Autoconf 2.61. Invocation command line was
ad6254c5
AK
11697
11698 CONFIG_FILES = $CONFIG_FILES
11699 CONFIG_HEADERS = $CONFIG_HEADERS
11700 CONFIG_LINKS = $CONFIG_LINKS
11701 CONFIG_COMMANDS = $CONFIG_COMMANDS
11702 $ $0 $@
11703
7a197a62
AK
11704on `(hostname || uname -n) 2>/dev/null | sed 1q`
11705"
11706
ad6254c5
AK
11707_ACEOF
11708
7a197a62 11709cat >>$CONFIG_STATUS <<_ACEOF
ad6254c5 11710# Files that config.status was made for.
7a197a62
AK
11711config_files="$ac_config_files"
11712config_headers="$ac_config_headers"
ad6254c5 11713
7a197a62 11714_ACEOF
ad6254c5
AK
11715
11716cat >>$CONFIG_STATUS <<\_ACEOF
ad6254c5
AK
11717ac_cs_usage="\
11718\`$as_me' instantiates files from templates according to the
11719current configuration.
11720
11721Usage: $0 [OPTIONS] [FILE]...
11722
11723 -h, --help print this help, then exit
25fbec5b 11724 -V, --version print version number and configuration settings, then exit
ad6254c5
AK
11725 -q, --quiet do not print progress messages
11726 -d, --debug don't remove temporary files
11727 --recheck update $as_me by reconfiguring in the same conditions
11728 --file=FILE[:TEMPLATE]
8a2fc586 11729 instantiate the configuration file FILE
72b2cb61
AK
11730 --header=FILE[:TEMPLATE]
11731 instantiate the configuration header FILE
ad6254c5
AK
11732
11733Configuration files:
11734$config_files
11735
72b2cb61
AK
11736Configuration headers:
11737$config_headers
11738
ad6254c5 11739Report bugs to <bug-autoconf@gnu.org>."
ad6254c5 11740
7a197a62 11741_ACEOF
ad6254c5
AK
11742cat >>$CONFIG_STATUS <<_ACEOF
11743ac_cs_version="\\
11744config.status
25fbec5b 11745configured by $0, generated by GNU Autoconf 2.61,
1995c9ff 11746 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
ad6254c5 11747
7a197a62 11748Copyright (C) 2006 Free Software Foundation, Inc.
ad6254c5
AK
11749This config.status script is free software; the Free Software Foundation
11750gives unlimited permission to copy, distribute and modify it."
7a197a62
AK
11751
11752ac_pwd='$ac_pwd'
11753srcdir='$srcdir'
11754INSTALL='$INSTALL'
ad6254c5
AK
11755_ACEOF
11756
11757cat >>$CONFIG_STATUS <<\_ACEOF
11758# If no file are specified by the user, then we need to provide default
11759# value. By we need to know if files were specified by the user.
11760ac_need_defaults=:
11761while test $# != 0
11762do
11763 case $1 in
11764 --*=*)
7a197a62
AK
11765 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11766 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
ad6254c5
AK
11767 ac_shift=:
11768 ;;
7a197a62 11769 *)
ad6254c5
AK
11770 ac_option=$1
11771 ac_optarg=$2
11772 ac_shift=shift
11773 ;;
ad6254c5
AK
11774 esac
11775
11776 case $ac_option in
11777 # Handling of the options.
ad6254c5
AK
11778 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11779 ac_cs_recheck=: ;;
7a197a62 11780 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
1995c9ff 11781 echo "$ac_cs_version"; exit ;;
7a197a62 11782 --debug | --debu | --deb | --de | --d | -d )
ad6254c5
AK
11783 debug=: ;;
11784 --file | --fil | --fi | --f )
11785 $ac_shift
11786 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11787 ac_need_defaults=false;;
11788 --header | --heade | --head | --hea )
11789 $ac_shift
11790 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11791 ac_need_defaults=false;;
7a197a62
AK
11792 --he | --h)
11793 # Conflict between --help and --header
1995c9ff 11794 { echo "$as_me: error: ambiguous option: $1
7a197a62
AK
11795Try \`$0 --help' for more information." >&2
11796 { (exit 1); exit 1; }; };;
11797 --help | --hel | -h )
1995c9ff 11798 echo "$ac_cs_usage"; exit ;;
ad6254c5
AK
11799 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11800 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11801 ac_cs_silent=: ;;
11802
11803 # This is an error.
1995c9ff 11804 -*) { echo "$as_me: error: unrecognized option: $1
7a197a62 11805Try \`$0 --help' for more information." >&2
ad6254c5
AK
11806 { (exit 1); exit 1; }; } ;;
11807
7a197a62
AK
11808 *) ac_config_targets="$ac_config_targets $1"
11809 ac_need_defaults=false ;;
ad6254c5
AK
11810
11811 esac
11812 shift
11813done
11814
11815ac_configure_extra_args=
11816
11817if $ac_cs_silent; then
11818 exec 6>/dev/null
11819 ac_configure_extra_args="$ac_configure_extra_args --silent"
11820fi
11821
11822_ACEOF
11823cat >>$CONFIG_STATUS <<_ACEOF
11824if \$ac_cs_recheck; then
1995c9ff
AK
11825 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11826 CONFIG_SHELL=$SHELL
7a197a62 11827 export CONFIG_SHELL
1995c9ff 11828 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
ad6254c5
AK
11829fi
11830
11831_ACEOF
7a197a62
AK
11832cat >>$CONFIG_STATUS <<\_ACEOF
11833exec 5>>config.log
11834{
11835 echo
11836 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11837## Running $as_me. ##
11838_ASBOX
1995c9ff 11839 echo "$ac_log"
7a197a62 11840} >&5
ad6254c5 11841
7a197a62
AK
11842_ACEOF
11843cat >>$CONFIG_STATUS <<_ACEOF
11844_ACEOF
ad6254c5
AK
11845
11846cat >>$CONFIG_STATUS <<\_ACEOF
7a197a62
AK
11847
11848# Handling of arguments.
ad6254c5
AK
11849for ac_config_target in $ac_config_targets
11850do
7a197a62
AK
11851 case $ac_config_target in
11852 "lib/misc/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;;
11853 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11854 "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;;
d0191583
JM
11855 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
11856 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
11857 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
11858 "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
11859 "dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES dmeventd/Makefile" ;;
7a197a62
AK
11860 "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;;
11861 "daemons/clvmd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;;
7a197a62 11862 "dmeventd/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES dmeventd/mirror/Makefile" ;;
d0191583 11863 "dmeventd/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES dmeventd/snapshot/Makefile" ;;
7a197a62 11864 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
7a197a62
AK
11865 "lib/format1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;;
11866 "lib/format_pool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;;
11867 "lib/locking/Makefile") CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;;
11868 "lib/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;;
11869 "lib/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;;
09339e2b 11870 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
7a197a62
AK
11871 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
11872 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
11873 "tools/version.h") CONFIG_FILES="$CONFIG_FILES tools/version.h" ;;
7a197a62 11874
1995c9ff
AK
11875 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11876echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
ad6254c5 11877 { (exit 1); exit 1; }; };;
80992638 11878 esac
ad6254c5
AK
11879done
11880
7a197a62 11881
ad6254c5
AK
11882# If the user did not use the arguments to specify the items to instantiate,
11883# then the envvar interface is used. Set only those that are not.
11884# We use the long form for the default assignment because of an extremely
11885# bizarre bug on SunOS 4.1.3.
11886if $ac_need_defaults; then
11887 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
72b2cb61 11888 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
ad6254c5
AK
11889fi
11890
11891# Have a temporary directory for convenience. Make it in the build tree
7a197a62 11892# simply because there is no reason against having it here, and in addition,
ad6254c5 11893# creating and moving files from /tmp can sometimes cause problems.
7a197a62
AK
11894# Hook for its removal unless debugging.
11895# Note that there is a small window in which the directory will not be cleaned:
11896# after its creation but before its name has been assigned to `$tmp'.
ad6254c5
AK
11897$debug ||
11898{
7a197a62
AK
11899 tmp=
11900 trap 'exit_status=$?
11901 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11902' 0
ad6254c5
AK
11903 trap '{ (exit 1); exit 1; }' 1 2 13 15
11904}
ad6254c5
AK
11905# Create a (secure) tmp directory for tmp files.
11906
11907{
7a197a62 11908 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
ad6254c5
AK
11909 test -n "$tmp" && test -d "$tmp"
11910} ||
11911{
7a197a62
AK
11912 tmp=./conf$$-$RANDOM
11913 (umask 077 && mkdir "$tmp")
ad6254c5
AK
11914} ||
11915{
1995c9ff 11916 echo "$me: cannot create a temporary directory in ." >&2
ad6254c5
AK
11917 { (exit 1); exit 1; }
11918}
11919
1995c9ff
AK
11920#
11921# Set up the sed scripts for CONFIG_FILES section.
11922#
7a197a62 11923
1995c9ff
AK
11924# No need to generate the scripts if there are no CONFIG_FILES.
11925# This happens for instance when ./config.status config.h
11926if test -n "$CONFIG_FILES"; then
7a197a62 11927
66e941e8 11928_ACEOF
7a197a62
AK
11929
11930
1995c9ff 11931
7a197a62
AK
11932ac_delim='%!_!# '
11933for ac_last_try in false false false false false :; do
1995c9ff
AK
11934 cat >conf$$subs.sed <<_ACEOF
11935SHELL!$SHELL$ac_delim
11936PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
11937PACKAGE_NAME!$PACKAGE_NAME$ac_delim
11938PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
11939PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
11940PACKAGE_STRING!$PACKAGE_STRING$ac_delim
11941PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
11942exec_prefix!$exec_prefix$ac_delim
11943prefix!$prefix$ac_delim
11944program_transform_name!$program_transform_name$ac_delim
11945bindir!$bindir$ac_delim
11946sbindir!$sbindir$ac_delim
11947libexecdir!$libexecdir$ac_delim
11948datarootdir!$datarootdir$ac_delim
11949datadir!$datadir$ac_delim
11950sysconfdir!$sysconfdir$ac_delim
11951sharedstatedir!$sharedstatedir$ac_delim
11952localstatedir!$localstatedir$ac_delim
11953includedir!$includedir$ac_delim
11954oldincludedir!$oldincludedir$ac_delim
11955docdir!$docdir$ac_delim
11956infodir!$infodir$ac_delim
11957htmldir!$htmldir$ac_delim
11958dvidir!$dvidir$ac_delim
11959pdfdir!$pdfdir$ac_delim
11960psdir!$psdir$ac_delim
11961libdir!$libdir$ac_delim
11962localedir!$localedir$ac_delim
11963mandir!$mandir$ac_delim
11964DEFS!$DEFS$ac_delim
11965ECHO_C!$ECHO_C$ac_delim
11966ECHO_N!$ECHO_N$ac_delim
11967ECHO_T!$ECHO_T$ac_delim
11968LIBS!$LIBS$ac_delim
11969build_alias!$build_alias$ac_delim
11970host_alias!$host_alias$ac_delim
11971target_alias!$target_alias$ac_delim
11972build!$build$ac_delim
11973build_cpu!$build_cpu$ac_delim
11974build_vendor!$build_vendor$ac_delim
11975build_os!$build_os$ac_delim
11976host!$host$ac_delim
11977host_cpu!$host_cpu$ac_delim
11978host_vendor!$host_vendor$ac_delim
11979host_os!$host_os$ac_delim
11980target!$target$ac_delim
11981target_cpu!$target_cpu$ac_delim
11982target_vendor!$target_vendor$ac_delim
11983target_os!$target_os$ac_delim
11984AWK!$AWK$ac_delim
11985CC!$CC$ac_delim
11986CFLAGS!$CFLAGS$ac_delim
11987LDFLAGS!$LDFLAGS$ac_delim
11988CPPFLAGS!$CPPFLAGS$ac_delim
11989ac_ct_CC!$ac_ct_CC$ac_delim
11990EXEEXT!$EXEEXT$ac_delim
11991OBJEXT!$OBJEXT$ac_delim
d0191583
JM
11992CPP!$CPP$ac_delim
11993GREP!$GREP$ac_delim
11994EGREP!$EGREP$ac_delim
1995c9ff
AK
11995INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
11996INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
11997INSTALL_DATA!$INSTALL_DATA$ac_delim
11998LN_S!$LN_S$ac_delim
11999SET_MAKE!$SET_MAKE$ac_delim
12000RANLIB!$RANLIB$ac_delim
12001CFLOW_CMD!$CFLOW_CMD$ac_delim
12002CSCOPE_CMD!$CSCOPE_CMD$ac_delim
1995c9ff
AK
12003ALLOCA!$ALLOCA$ac_delim
12004LIBOBJS!$LIBOBJS$ac_delim
12005POW_LIB!$POW_LIB$ac_delim
d179cc7a 12006LVM2CMD_LIB!$LVM2CMD_LIB$ac_delim
1995c9ff
AK
12007MSGFMT!$MSGFMT$ac_delim
12008MODPROBE_CMD!$MODPROBE_CMD$ac_delim
d0191583 12009BUILD_DMEVENTD!$BUILD_DMEVENTD$ac_delim
1995c9ff 12010CLDFLAGS!$CLDFLAGS$ac_delim
1995c9ff 12011CLDNOWHOLEARCHIVE!$CLDNOWHOLEARCHIVE$ac_delim
d0191583
JM
12012CLDWHOLEARCHIVE!$CLDWHOLEARCHIVE$ac_delim
12013CLUSTER!$CLUSTER$ac_delim
12014CLVMD!$CLVMD$ac_delim
12015CMDLIB!$CMDLIB$ac_delim
12016COPTIMISE_FLAG!$COPTIMISE_FLAG$ac_delim
1995c9ff
AK
12017DEBUG!$DEBUG$ac_delim
12018DEVMAPPER!$DEVMAPPER$ac_delim
d0191583
JM
12019DMDIR!$DMDIR$ac_delim
12020DMEVENTD!$DMEVENTD$ac_delim
12021DM_COMPAT!$DM_COMPAT$ac_delim
12022DM_DEVICE_GID!$DM_DEVICE_GID$ac_delim
12023DM_DEVICE_MODE!$DM_DEVICE_MODE$ac_delim
12024DM_DEVICE_UID!$DM_DEVICE_UID$ac_delim
12025DM_IOCTLS!$DM_IOCTLS$ac_delim
12026DM_LIB_VERSION!$DM_LIB_VERSION$ac_delim
12027FSADM!$FSADM$ac_delim
12028GROUP!$GROUP$ac_delim
1995c9ff 12029HAVE_LIBDL!$HAVE_LIBDL$ac_delim
1995c9ff 12030HAVE_REALTIME!$HAVE_REALTIME$ac_delim
d0191583 12031HAVE_SELINUX!$HAVE_SELINUX$ac_delim
1995c9ff
AK
12032_ACEOF
12033
12034 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
7a197a62
AK
12035 break
12036 elif $ac_last_try; then
1995c9ff
AK
12037 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12038echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
7a197a62
AK
12039 { (exit 1); exit 1; }; }
12040 else
12041 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
ad6254c5 12042 fi
7a197a62 12043done
1995c9ff
AK
12044
12045ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
12046if test -n "$ac_eof"; then
12047 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
12048 ac_eof=`expr $ac_eof + 1`
12049fi
7a197a62
AK
12050
12051cat >>$CONFIG_STATUS <<_ACEOF
1995c9ff
AK
12052cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
12053/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12054_ACEOF
12055sed '
12056s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
12057s/^/s,@/; s/!/@,|#_!!_#|/
12058:n
12059t n
12060s/'"$ac_delim"'$/,g/; t
12061s/$/\\/; p
12062N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
12063' >>$CONFIG_STATUS <conf$$subs.sed
12064rm -f conf$$subs.sed
7a197a62 12065cat >>$CONFIG_STATUS <<_ACEOF
1995c9ff
AK
12066CEOF$ac_eof
12067_ACEOF
7a197a62 12068
8106cdd5 12069
1995c9ff
AK
12070ac_delim='%!_!# '
12071for ac_last_try in false false false false false :; do
12072 cat >conf$$subs.sed <<_ACEOF
d179cc7a 12073INTL!$INTL$ac_delim
1995c9ff 12074INTL_PACKAGE!$INTL_PACKAGE$ac_delim
d0191583
JM
12075JOBS!$JOBS$ac_delim
12076LDDEPS!$LDDEPS$ac_delim
12077LIB_SUFFIX!$LIB_SUFFIX$ac_delim
12078LOCALEDIR!$LOCALEDIR$ac_delim
12079LVM1!$LVM1$ac_delim
12080LVM1_FALLBACK!$LVM1_FALLBACK$ac_delim
12081CONFDIR!$CONFDIR$ac_delim
12082LVM_VERSION!$LVM_VERSION$ac_delim
12083MIRRORS!$MIRRORS$ac_delim
12084OWNER!$OWNER$ac_delim
12085PKGCONFIG!$PKGCONFIG$ac_delim
12086POOL!$POOL$ac_delim
12087SNAPSHOTS!$SNAPSHOTS$ac_delim
12088STATICDIR!$STATICDIR$ac_delim
12089STATIC_LINK!$STATIC_LINK$ac_delim
1995c9ff
AK
12090LIB_PTHREAD!$LIB_PTHREAD$ac_delim
12091LTLIBOBJS!$LTLIBOBJS$ac_delim
12092_ACEOF
12093
d179cc7a 12094 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 19; then
1995c9ff
AK
12095 break
12096 elif $ac_last_try; then
12097 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12098echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12099 { (exit 1); exit 1; }; }
12100 else
12101 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12102 fi
12103done
12104
12105ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
12106if test -n "$ac_eof"; then
12107 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
12108 ac_eof=`expr $ac_eof + 1`
12109fi
7a197a62 12110
1995c9ff
AK
12111cat >>$CONFIG_STATUS <<_ACEOF
12112cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
12113/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
12114_ACEOF
12115sed '
12116s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
12117s/^/s,@/; s/!/@,|#_!!_#|/
12118:n
12119t n
12120s/'"$ac_delim"'$/,g/; t
12121s/$/\\/; p
12122N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
12123' >>$CONFIG_STATUS <conf$$subs.sed
12124rm -f conf$$subs.sed
12125cat >>$CONFIG_STATUS <<_ACEOF
12126:end
12127s/|#_!!_#|//g
12128CEOF$ac_eof
7a197a62
AK
12129_ACEOF
12130
1995c9ff 12131
7a197a62
AK
12132# VPATH may cause trouble with some makes, so we remove $(srcdir),
12133# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12134# trailing colons and then remove the whole line if VPATH becomes empty
12135# (actually we leave an empty line to preserve line numbers).
12136if test "x$srcdir" = x.; then
12137 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12138s/:*\$(srcdir):*/:/
12139s/:*\${srcdir}:*/:/
12140s/:*@srcdir@:*/:/
12141s/^\([^=]*=[ ]*\):*/\1/
12142s/:*$//
12143s/^[^=]*=[ ]*$//
12144}'
12145fi
12146
ad6254c5 12147cat >>$CONFIG_STATUS <<\_ACEOF
7a197a62
AK
12148fi # test -n "$CONFIG_FILES"
12149
12150
12151for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
12152do
12153 case $ac_tag in
12154 :[FHLC]) ac_mode=$ac_tag; continue;;
12155 esac
12156 case $ac_mode$ac_tag in
12157 :[FHL]*:*);;
1995c9ff
AK
12158 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
12159echo "$as_me: error: Invalid tag $ac_tag." >&2;}
7a197a62
AK
12160 { (exit 1); exit 1; }; };;
12161 :[FH]-) ac_tag=-:-;;
12162 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12163 esac
12164 ac_save_IFS=$IFS
12165 IFS=:
12166 set x $ac_tag
12167 IFS=$ac_save_IFS
12168 shift
12169 ac_file=$1
12170 shift
12171
12172 case $ac_mode in
12173 :L) ac_source=$1;;
12174 :[FH])
12175 ac_file_inputs=
12176 for ac_f
12177 do
12178 case $ac_f in
12179 -) ac_f="$tmp/stdin";;
12180 *) # Look for the file first in the build tree, then in the source tree
12181 # (if the path is not absolute). The absolute path cannot be DOS-style,
12182 # because $ac_f cannot contain `:'.
12183 test -f "$ac_f" ||
12184 case $ac_f in
12185 [\\/$]*) false;;
12186 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12187 esac ||
1995c9ff
AK
12188 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
12189echo "$as_me: error: cannot find input file: $ac_f" >&2;}
7a197a62
AK
12190 { (exit 1); exit 1; }; };;
12191 esac
12192 ac_file_inputs="$ac_file_inputs $ac_f"
12193 done
12194
12195 # Let's still pretend it is `configure' which instantiates (i.e., don't
12196 # use $as_me), people would be surprised to read:
12197 # /* config.h. Generated by config.status. */
1995c9ff
AK
12198 configure_input="Generated from "`IFS=:
12199 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
7a197a62
AK
12200 if test x"$ac_file" != x-; then
12201 configure_input="$ac_file. $configure_input"
1995c9ff
AK
12202 { echo "$as_me:$LINENO: creating $ac_file" >&5
12203echo "$as_me: creating $ac_file" >&6;}
7a197a62
AK
12204 fi
12205
12206 case $ac_tag in
12207 *:-:* | *:-) cat >"$tmp/stdin";;
12208 esac
12209 ;;
80992638 12210 esac
8106cdd5 12211
7a197a62 12212 ac_dir=`$as_dirname -- "$ac_file" ||
ad6254c5 12213$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8a2fc586
AK
12214 X"$ac_file" : 'X\(//\)[^/]' \| \
12215 X"$ac_file" : 'X\(//\)$' \| \
7a197a62 12216 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
1995c9ff 12217echo X"$ac_file" |
7a197a62
AK
12218 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12219 s//\1/
12220 q
12221 }
12222 /^X\(\/\/\)[^/].*/{
12223 s//\1/
12224 q
12225 }
12226 /^X\(\/\/\)$/{
12227 s//\1/
12228 q
12229 }
12230 /^X\(\/\).*/{
12231 s//\1/
12232 q
12233 }
12234 s/.*/./; q'`
12235 { as_dir="$ac_dir"
12236 case $as_dir in #(
12237 -*) as_dir=./$as_dir;;
12238 esac
12239 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
ad6254c5 12240 as_dirs=
7a197a62
AK
12241 while :; do
12242 case $as_dir in #(
1995c9ff 12243 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
7a197a62
AK
12244 *) as_qdir=$as_dir;;
12245 esac
12246 as_dirs="'$as_qdir' $as_dirs"
12247 as_dir=`$as_dirname -- "$as_dir" ||
ad6254c5 12248$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8a2fc586
AK
12249 X"$as_dir" : 'X\(//\)[^/]' \| \
12250 X"$as_dir" : 'X\(//\)$' \| \
7a197a62 12251 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
1995c9ff 12252echo X"$as_dir" |
7a197a62
AK
12253 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12254 s//\1/
12255 q
12256 }
12257 /^X\(\/\/\)[^/].*/{
12258 s//\1/
12259 q
12260 }
12261 /^X\(\/\/\)$/{
12262 s//\1/
12263 q
12264 }
12265 /^X\(\/\).*/{
12266 s//\1/
12267 q
12268 }
12269 s/.*/./; q'`
12270 test -d "$as_dir" && break
ad6254c5 12271 done
7a197a62 12272 test -z "$as_dirs" || eval "mkdir $as_dirs"
1995c9ff
AK
12273 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12274echo "$as_me: error: cannot create directory $as_dir" >&2;}
ad6254c5 12275 { (exit 1); exit 1; }; }; }
ad6254c5
AK
12276 ac_builddir=.
12277
7a197a62
AK
12278case "$ac_dir" in
12279.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12280*)
1995c9ff 12281 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7a197a62 12282 # A ".." for each directory in $ac_dir_suffix.
1995c9ff 12283 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
7a197a62
AK
12284 case $ac_top_builddir_sub in
12285 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12286 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12287 esac ;;
12288esac
12289ac_abs_top_builddir=$ac_pwd
12290ac_abs_builddir=$ac_pwd$ac_dir_suffix
12291# for backward compatibility:
12292ac_top_builddir=$ac_top_build_prefix
ad6254c5
AK
12293
12294case $srcdir in
7a197a62 12295 .) # We are building in place.
ad6254c5 12296 ac_srcdir=.
7a197a62
AK
12297 ac_top_srcdir=$ac_top_builddir_sub
12298 ac_abs_top_srcdir=$ac_pwd ;;
12299 [\\/]* | ?:[\\/]* ) # Absolute name.
ad6254c5 12300 ac_srcdir=$srcdir$ac_dir_suffix;
7a197a62
AK
12301 ac_top_srcdir=$srcdir
12302 ac_abs_top_srcdir=$srcdir ;;
12303 *) # Relative name.
12304 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12305 ac_top_srcdir=$ac_top_build_prefix$srcdir
12306 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
ad6254c5 12307esac
7a197a62 12308ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8a2fc586 12309
ad6254c5 12310
7a197a62
AK
12311 case $ac_mode in
12312 :F)
12313 #
12314 # CONFIG_FILE
12315 #
ad6254c5
AK
12316
12317 case $INSTALL in
12318 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7a197a62 12319 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
795ca3e5 12320 esac
7a197a62 12321_ACEOF
795ca3e5 12322
7a197a62
AK
12323cat >>$CONFIG_STATUS <<\_ACEOF
12324# If the template does not know about datarootdir, expand it.
12325# FIXME: This hack should be removed a few years after 2.60.
12326ac_datarootdir_hack=; ac_datarootdir_seen=
12327
12328case `sed -n '/datarootdir/ {
12329 p
12330 q
12331}
12332/@datadir@/p
12333/@docdir@/p
12334/@infodir@/p
12335/@localedir@/p
12336/@mandir@/p
12337' $ac_file_inputs` in
12338*datarootdir*) ac_datarootdir_seen=yes;;
12339*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
1995c9ff
AK
12340 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12341echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
ad6254c5 12342_ACEOF
7a197a62
AK
12343cat >>$CONFIG_STATUS <<_ACEOF
12344 ac_datarootdir_hack='
12345 s&@datadir@&$datadir&g
12346 s&@docdir@&$docdir&g
12347 s&@infodir@&$infodir&g
12348 s&@localedir@&$localedir&g
12349 s&@mandir@&$mandir&g
12350 s&\\\${datarootdir}&$datarootdir&g' ;;
12351esac
12352_ACEOF
12353
12354# Neutralize VPATH when `$srcdir' = `.'.
12355# Shell code in configure.ac might set extrasub.
12356# FIXME: do we really want to maintain this feature?
ad6254c5
AK
12357cat >>$CONFIG_STATUS <<_ACEOF
12358 sed "$ac_vpsub
12359$extrasub
12360_ACEOF
12361cat >>$CONFIG_STATUS <<\_ACEOF
12362:t
12363/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7a197a62
AK
12364s&@configure_input@&$configure_input&;t t
12365s&@top_builddir@&$ac_top_builddir_sub&;t t
12366s&@srcdir@&$ac_srcdir&;t t
12367s&@abs_srcdir@&$ac_abs_srcdir&;t t
12368s&@top_srcdir@&$ac_top_srcdir&;t t
12369s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12370s&@builddir@&$ac_builddir&;t t
12371s&@abs_builddir@&$ac_abs_builddir&;t t
12372s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12373s&@INSTALL@&$ac_INSTALL&;t t
12374$ac_datarootdir_hack
1995c9ff 12375" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
7a197a62
AK
12376
12377test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12378 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12379 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
1995c9ff 12380 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7a197a62 12381which seems to be undefined. Please make sure it is defined." >&5
1995c9ff 12382echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7a197a62
AK
12383which seems to be undefined. Please make sure it is defined." >&2;}
12384
12385 rm -f "$tmp/stdin"
72b2cb61 12386 case $ac_file in
7a197a62
AK
12387 -) cat "$tmp/out"; rm -f "$tmp/out";;
12388 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
72b2cb61 12389 esac
7a197a62
AK
12390 ;;
12391 :H)
12392 #
12393 # CONFIG_HEADER
12394 #
12395_ACEOF
12396
12397# Transform confdefs.h into a sed script `conftest.defines', that
12398# substitutes the proper values into config.h.in to produce config.h.
12399rm -f conftest.defines conftest.tail
12400# First, append a space to every undef/define line, to ease matching.
12401echo 's/$/ /' >conftest.defines
12402# Then, protect against being on the right side of a sed subst, or in
12403# an unquoted here document, in config.status. If some macros were
12404# called several times there might be several #defines for the same
12405# symbol, which is useless. But do not sort them, since the last
12406# AC_DEFINE must be honored.
12407ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12408# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
12409# NAME is the cpp macro being defined, VALUE is the value it is being given.
12410# PARAMS is the parameter list in the macro definition--in most cases, it's
12411# just an empty string.
12412ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
12413ac_dB='\\)[ (].*,\\1define\\2'
12414ac_dC=' '
12415ac_dD=' ,'
12416
12417uniq confdefs.h |
12418 sed -n '
12419 t rset
12420 :rset
12421 s/^[ ]*#[ ]*define[ ][ ]*//
12422 t ok
12423 d
12424 :ok
12425 s/[\\&,]/\\&/g
12426 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
12427 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
12428 ' >>conftest.defines
12429
12430# Remove the space that was appended to ease matching.
12431# Then replace #undef with comments. This is necessary, for
72b2cb61
AK
12432# example, in the case of _POSIX_SOURCE, which is predefined and required
12433# on some systems where configure will not decide to define it.
7a197a62
AK
12434# (The regexp can be short, since the line contains either #define or #undef.)
12435echo 's/ $//
12436s,^[ #]*u.*,/* & */,' >>conftest.defines
12437
12438# Break up conftest.defines:
12439ac_max_sed_lines=50
12440
12441# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
12442# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
12443# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
12444# et cetera.
12445ac_in='$ac_file_inputs'
12446ac_out='"$tmp/out1"'
12447ac_nxt='"$tmp/out2"'
12448
12449while :
72b2cb61 12450do
7a197a62
AK
12451 # Write a here document:
12452 cat >>$CONFIG_STATUS <<_ACEOF
12453 # First, check the format of the line:
12454 cat >"\$tmp/defines.sed" <<\\CEOF
12455/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
12456/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
12457b
12458:def
12459_ACEOF
12460 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
72b2cb61 12461 echo 'CEOF
7a197a62
AK
12462 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
12463 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
12464 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
12465 grep . conftest.tail >/dev/null || break
72b2cb61
AK
12466 rm -f conftest.defines
12467 mv conftest.tail conftest.defines
12468done
7a197a62 12469rm -f conftest.defines conftest.tail
72b2cb61 12470
7a197a62 12471echo "ac_result=$ac_in" >>$CONFIG_STATUS
72b2cb61 12472cat >>$CONFIG_STATUS <<\_ACEOF
72b2cb61 12473 if test x"$ac_file" != x-; then
1995c9ff 12474 echo "/* $configure_input */" >"$tmp/config.h"
7a197a62
AK
12475 cat "$ac_result" >>"$tmp/config.h"
12476 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
1995c9ff
AK
12477 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12478echo "$as_me: $ac_file is unchanged" >&6;}
72b2cb61 12479 else
72b2cb61 12480 rm -f $ac_file
7a197a62 12481 mv "$tmp/config.h" $ac_file
72b2cb61
AK
12482 fi
12483 else
1995c9ff 12484 echo "/* $configure_input */"
7a197a62 12485 cat "$ac_result"
72b2cb61 12486 fi
7a197a62
AK
12487 rm -f "$tmp/out12"
12488 ;;
12489
12490
12491 esac
12492
12493done # for ac_tag
795ca3e5 12494
795ca3e5 12495
ad6254c5
AK
12496{ (exit 0); exit 0; }
12497_ACEOF
795ca3e5 12498chmod +x $CONFIG_STATUS
ad6254c5
AK
12499ac_clean_files=$ac_clean_files_save
12500
12501
12502# configure is writing to config.log, and then calls config.status.
12503# config.status does its own redirection, appending to config.log.
12504# Unfortunately, on DOS this fails, as config.log is still kept open
12505# by configure, so config.status won't be able to write to it; its
12506# output is simply discarded. So we exec the FD to /dev/null,
12507# effectively closing config.log, so it can be properly (re)opened and
12508# appended to by config.status. When coming back to configure, we
12509# need to make the FD available again.
12510if test "$no_create" != yes; then
12511 ac_cs_success=:
12512 ac_config_status_args=
12513 test "$silent" = yes &&
12514 ac_config_status_args="$ac_config_status_args --quiet"
12515 exec 5>/dev/null
12516 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12517 exec 5>>config.log
12518 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12519 # would make configure fail if this is the last instruction.
12520 $ac_cs_success || { (exit 1); exit 1; }
12521fi
795ca3e5 12522
2dc95e1c
AK
12523
12524if test x$ODIRECT != xyes; then
1995c9ff
AK
12525 { echo "$as_me:$LINENO: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5
12526echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;}
2dc95e1c 12527fi
809fae91
AK
12528
12529if test x$FSADM == xyes; then
1995c9ff
AK
12530 { echo "$as_me:$LINENO: WARNING: fsadm support is untested" >&5
12531echo "$as_me: WARNING: fsadm support is untested" >&2;}
809fae91 12532fi
06f62ad1
AK
12533
12534if test x$DMEVENTD == xyes; then
1995c9ff
AK
12535 { echo "$as_me:$LINENO: WARNING: dmeventd support is untested" >&5
12536echo "$as_me: WARNING: dmeventd support is untested" >&2;}
06f62ad1 12537fi
This page took 1.440955 seconds and 5 git commands to generate.