]> sourceware.org Git - lvm2.git/blame - configure
Reinstate version in liblvm2cmd.so soname. (2.02.44)
[lvm2.git] / configure
CommitLineData
795ca3e5 1#! /bin/sh
795ca3e5 2# Guess values for system-dependent variables and create Makefiles.
ec6a6fbe 3# Generated by GNU Autoconf 2.63.
795ca3e5 4#
7a197a62 5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
ec6a6fbe 6# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
795ca3e5
AK
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
ad6254c5
AK
9## --------------------- ##
10## M4sh Initialization. ##
11## --------------------- ##
12
25fbec5b
AK
13# Be more Bourne compatible
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=:
ec6a6fbe 18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
ad6254c5
AK
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
7a197a62
AK
21 setopt NO_GLOB_SUBST
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
ec6a6fbe
AK
40as_nl='
41'
42export as_nl
43# Printing a long string crashes Solaris 7 /usr/bin/printf.
44as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
68f2de6d 54 else
ec6a6fbe
AK
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68f2de6d 67 fi
ec6a6fbe
AK
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
ad6254c5
AK
79fi
80
81# Support unset when possible.
8a2fc586 82if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
ad6254c5
AK
83 as_unset=unset
84else
85 as_unset=false
86fi
87
88
7a197a62
AK
89# IFS
90# We need space, tab and new line, in precisely that order. Quoting is
91# there to prevent editors from complaining about space-tab.
92# (If _AS_PATH_WALK were called with IFS unset, it would disable word
93# splitting by setting IFS to empty value.)
7a197a62
AK
94IFS=" "" $as_nl"
95
96# Find who we are. Look in the path if we contain no directory separator.
97case $0 in
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100for as_dir in $PATH
101do
102 IFS=$as_save_IFS
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105done
106IFS=$as_save_IFS
107
108 ;;
109esac
110# We did not find ourselves, most probably we were run as `sh COMMAND'
111# in which case we are not to be found in the path.
112if test "x$as_myself" = x; then
113 as_myself=$0
114fi
115if test ! -f "$as_myself"; then
ec6a6fbe 116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7a197a62
AK
117 { (exit 1); exit 1; }
118fi
119
ad6254c5 120# Work around bugs in pre-3.0 UWIN ksh.
7a197a62
AK
121for as_var in ENV MAIL MAILPATH
122do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123done
ad6254c5
AK
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
ec6a6fbe
AK
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
ad6254c5
AK
133
134# Required to use basename.
7a197a62
AK
135if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
137 as_expr=expr
138else
139 as_expr=false
140fi
141
7a197a62 142if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
ad6254c5
AK
143 as_basename=basename
144else
145 as_basename=false
146fi
147
148
149# Name of the executable.
7a197a62 150as_me=`$as_basename -- "$0" ||
ad6254c5
AK
151$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
7a197a62 153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 154$as_echo X/"$0" |
7a197a62
AK
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 s//\1/
157 q
158 }
159 /^X\/\(\/\/\)$/{
160 s//\1/
161 q
162 }
163 /^X\/\(\/\).*/{
164 s//\1/
165 q
166 }
167 s/.*/./; q'`
ad6254c5 168
7a197a62
AK
169# CDPATH.
170$as_unset CDPATH
ad6254c5 171
ad6254c5 172
7a197a62
AK
173if test "x$CONFIG_SHELL" = x; then
174 if (eval ":") 2>/dev/null; then
175 as_have_required=yes
176else
177 as_have_required=no
ad6254c5
AK
178fi
179
ec6a6fbe 180 if test $as_have_required = yes && (eval ":
7a197a62
AK
181(as_func_return () {
182 (exit \$1)
183}
184as_func_success () {
185 as_func_return 0
186}
187as_func_failure () {
188 as_func_return 1
189}
190as_func_ret_success () {
191 return 0
192}
193as_func_ret_failure () {
194 return 1
195}
ad6254c5 196
7a197a62
AK
197exitcode=0
198if as_func_success; then
199 :
200else
201 exitcode=1
202 echo as_func_success failed.
203fi
ad6254c5 204
7a197a62
AK
205if as_func_failure; then
206 exitcode=1
207 echo as_func_failure succeeded.
208fi
209
210if as_func_ret_success; then
211 :
212else
213 exitcode=1
214 echo as_func_ret_success failed.
215fi
216
217if as_func_ret_failure; then
218 exitcode=1
219 echo as_func_ret_failure succeeded.
220fi
221
222if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223 :
224else
225 exitcode=1
226 echo positional parameters were not saved.
227fi
228
229test \$exitcode = 0) || { (exit 1); exit 1; }
230
231(
232 as_lineno_1=\$LINENO
233 as_lineno_2=\$LINENO
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236") 2> /dev/null; then
237 :
238else
239 as_candidate_shells=
ad6254c5 240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25fbec5b 241for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
ad6254c5
AK
242do
243 IFS=$as_save_IFS
244 test -z "$as_dir" && as_dir=.
7a197a62 245 case $as_dir in
ad6254c5 246 /*)
7a197a62
AK
247 for as_base in sh bash ksh sh5; do
248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249 done;;
250 esac
251done
252IFS=$as_save_IFS
253
254
255 for as_shell in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev/null <<\_ASEOF
259if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 emulate sh
261 NULLCMD=:
ec6a6fbe 262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7a197a62
AK
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
265 setopt NO_GLOB_SUBST
266else
25fbec5b
AK
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
269esac
270
7a197a62 271fi
25fbec5b 272
7a197a62
AK
273
274:
275_ASEOF
276}; then
277 CONFIG_SHELL=$as_shell
278 as_have_required=yes
279 if { "$as_shell" 2> /dev/null <<\_ASEOF
280if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281 emulate sh
282 NULLCMD=:
ec6a6fbe 283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7a197a62
AK
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
286 setopt NO_GLOB_SUBST
287else
25fbec5b
AK
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
290esac
291
7a197a62 292fi
25fbec5b 293
7a197a62
AK
294
295:
296(as_func_return () {
297 (exit $1)
298}
299as_func_success () {
300 as_func_return 0
301}
302as_func_failure () {
303 as_func_return 1
304}
305as_func_ret_success () {
306 return 0
307}
308as_func_ret_failure () {
309 return 1
310}
311
312exitcode=0
313if as_func_success; then
314 :
315else
316 exitcode=1
317 echo as_func_success failed.
318fi
319
320if as_func_failure; then
321 exitcode=1
322 echo as_func_failure succeeded.
323fi
324
325if as_func_ret_success; then
326 :
327else
328 exitcode=1
329 echo as_func_ret_success failed.
330fi
331
332if as_func_ret_failure; then
333 exitcode=1
334 echo as_func_ret_failure succeeded.
335fi
336
337if ( set x; as_func_ret_success y && test x = "$1" ); then
338 :
339else
340 exitcode=1
341 echo positional parameters were not saved.
342fi
343
344test $exitcode = 0) || { (exit 1); exit 1; }
345
346(
ad6254c5
AK
347 as_lineno_1=$LINENO
348 as_lineno_2=$LINENO
ad6254c5 349 test "x$as_lineno_1" != "x$as_lineno_2" &&
7a197a62
AK
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
351
352_ASEOF
353}; then
354 break
355fi
356
357fi
358
359 done
360
361 if test "x$CONFIG_SHELL" != x; then
362 for as_var in BASH_ENV ENV
ec6a6fbe
AK
363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364 done
365 export CONFIG_SHELL
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
7a197a62
AK
367fi
368
369
370 if test $as_have_required = no; then
371 echo This script requires a shell more modern than all the
372 echo shells that I found on your system. Please install a
373 echo modern shell, or manually run the script under such a
374 echo shell if you do have one.
375 { (exit 1); exit 1; }
376fi
377
378
379fi
380
381fi
382
383
384
385(eval "as_func_return () {
386 (exit \$1)
387}
388as_func_success () {
389 as_func_return 0
390}
391as_func_failure () {
392 as_func_return 1
393}
394as_func_ret_success () {
395 return 0
396}
397as_func_ret_failure () {
398 return 1
399}
400
401exitcode=0
402if as_func_success; then
403 :
404else
405 exitcode=1
406 echo as_func_success failed.
407fi
408
409if as_func_failure; then
410 exitcode=1
411 echo as_func_failure succeeded.
412fi
413
414if as_func_ret_success; then
415 :
416else
417 exitcode=1
418 echo as_func_ret_success failed.
419fi
420
421if as_func_ret_failure; then
422 exitcode=1
423 echo as_func_ret_failure succeeded.
424fi
425
426if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
427 :
428else
429 exitcode=1
430 echo positional parameters were not saved.
431fi
432
433test \$exitcode = 0") || {
434 echo No shell found that supports shell functions.
ec6a6fbe
AK
435 echo Please tell bug-autoconf@gnu.org about your system,
436 echo including any error possibly output before this message.
437 echo This can help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
7a197a62
AK
439}
440
441
442
443 as_lineno_1=$LINENO
444 as_lineno_2=$LINENO
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
ad6254c5
AK
447
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
7a197a62
AK
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
454 # case at line end.
ad6254c5 455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7a197a62
AK
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
458 sed -n '
459 p
460 /[$]LINENO/=
461 ' <$as_myself |
ad6254c5 462 sed '
7a197a62
AK
463 s/[$]LINENO.*/&-/
464 t lineno
465 b
466 :lineno
ad6254c5 467 N
7a197a62
AK
468 :loop
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
ad6254c5 470 t loop
7a197a62 471 s/-\n.*//
ad6254c5 472 ' >$as_me.lineno &&
7a197a62 473 chmod +x "$as_me.lineno" ||
ec6a6fbe 474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
ad6254c5
AK
475 { (exit 1); exit 1; }; }
476
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
7a197a62
AK
479 # original and so on. Autoconf is especially sensitive to this).
480 . "./$as_me.lineno"
ad6254c5
AK
481 # Exit status is that of the last command.
482 exit
483}
795ca3e5 484
ad6254c5 485
7a197a62
AK
486if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487 as_dirname=dirname
488else
489 as_dirname=false
490fi
491
492ECHO_C= ECHO_N= ECHO_T=
493case `echo -n x` in
494-n*)
495 case `echo 'x\c'` in
496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
497 *) ECHO_C='\c';;
498 esac;;
499*)
500 ECHO_N='-n';;
ad6254c5 501esac
7a197a62
AK
502if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
504 as_expr=expr
505else
506 as_expr=false
507fi
508
509rm -f conf$$ conf$$.exe conf$$.file
7a197a62
AK
510if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
512else
513 rm -f conf$$.dir
ec6a6fbe
AK
514 mkdir conf$$.dir 2>/dev/null
515fi
516if (echo >conf$$.file) 2>/dev/null; then
517 if ln -s conf$$.file conf$$ 2>/dev/null; then
518 as_ln_s='ln -s'
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524 as_ln_s='cp -p'
525 elif ln conf$$.file conf$$ 2>/dev/null; then
526 as_ln_s=ln
527 else
ad6254c5 528 as_ln_s='cp -p'
ec6a6fbe 529 fi
ad6254c5
AK
530else
531 as_ln_s='cp -p'
532fi
7a197a62
AK
533rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534rmdir conf$$.dir 2>/dev/null
ad6254c5
AK
535
536if mkdir -p . 2>/dev/null; then
537 as_mkdir_p=:
538else
8a2fc586 539 test -d ./-p && rmdir ./-p
ad6254c5
AK
540 as_mkdir_p=false
541fi
542
25fbec5b
AK
543if test -x / >/dev/null 2>&1; then
544 as_test_x='test -x'
7a197a62 545else
25fbec5b
AK
546 if ls -dL / >/dev/null 2>&1; then
547 as_ls_L_option=L
548 else
549 as_ls_L_option=
550 fi
551 as_test_x='
552 eval sh -c '\''
553 if test -d "$1"; then
ec6a6fbe 554 test -d "$1/.";
25fbec5b
AK
555 else
556 case $1 in
ec6a6fbe 557 -*)set "./$1";;
25fbec5b
AK
558 esac;
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
561 '\'' sh
562 '
7a197a62 563fi
25fbec5b 564as_executable_p=$as_test_x
ad6254c5
AK
565
566# Sed expression to map a string onto a valid CPP name.
8a2fc586 567as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
568
569# Sed expression to map a string onto a valid variable name.
8a2fc586 570as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
571
572
ad6254c5 573
7a197a62 574exec 7<&0 </dev/null 6>&1
ad6254c5
AK
575
576# Name of the host.
577# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578# so uname gets run too.
579ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
580
ad6254c5
AK
581#
582# Initializations.
583#
795ca3e5 584ac_default_prefix=/usr/local
7a197a62 585ac_clean_files=
ad6254c5 586ac_config_libobj_dir=.
7a197a62 587LIBOBJS=
ad6254c5
AK
588cross_compiling=no
589subdirs=
590MFLAGS=
591MAKEFLAGS=
592SHELL=${CONFIG_SHELL-/bin/sh}
593
ad6254c5
AK
594# Identity of this package.
595PACKAGE_NAME=
596PACKAGE_TARNAME=
597PACKAGE_VERSION=
598PACKAGE_STRING=
599PACKAGE_BUGREPORT=
600
601ac_unique_file="lib/device/dev-cache.h"
602# Factoring default headers for most tests.
603ac_includes_default="\
604#include <stdio.h>
25fbec5b 605#ifdef HAVE_SYS_TYPES_H
ad6254c5
AK
606# include <sys/types.h>
607#endif
25fbec5b 608#ifdef HAVE_SYS_STAT_H
ad6254c5
AK
609# include <sys/stat.h>
610#endif
25fbec5b 611#ifdef STDC_HEADERS
ad6254c5
AK
612# include <stdlib.h>
613# include <stddef.h>
614#else
25fbec5b 615# ifdef HAVE_STDLIB_H
ad6254c5
AK
616# include <stdlib.h>
617# endif
618#endif
25fbec5b
AK
619#ifdef HAVE_STRING_H
620# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
ad6254c5
AK
621# include <memory.h>
622# endif
623# include <string.h>
624#endif
25fbec5b 625#ifdef HAVE_STRINGS_H
ad6254c5
AK
626# include <strings.h>
627#endif
25fbec5b 628#ifdef HAVE_INTTYPES_H
ad6254c5 629# include <inttypes.h>
ad6254c5 630#endif
25fbec5b 631#ifdef HAVE_STDINT_H
7a197a62
AK
632# include <stdint.h>
633#endif
25fbec5b 634#ifdef HAVE_UNISTD_H
ad6254c5
AK
635# include <unistd.h>
636#endif"
637
795ca3e5 638ac_default_prefix=/usr
ec6a6fbe 639ac_subst_vars='LTLIBOBJS
68f2de6d 640usrsbindir
ec6a6fbe
AK
641usrlibdir
642tmpdir
643kernelvsn
644missingkernel
645kerneldir
646interface
647LIB_PTHREAD
648STATIC_LINK
649STATICDIR
650SNAPSHOTS
651POOL
652PKGCONFIG
653OWNER
654MIRRORS
655LVM_RELEASE_DATE
656LVM_RELEASE
657LVM_PATCHLEVEL
658LVM_MINOR
659LVM_MAJOR
660LVM_VERSION
ec6a6fbe
AK
661LVM1_FALLBACK
662LVM1
663LOCALEDIR
664LIB_SUFFIX
665LDDEPS
666JOBS
667INTL_PACKAGE
668INTL
669HAVE_SELINUX
670HAVE_REALTIME
671HAVE_LIBDL
672GROUP
673FSADM
674DM_LIB_PATCHLEVEL
675DM_LIB_VERSION
676DM_IOCTLS
677DM_DEVICE_UID
678DM_DEVICE_MODE
679DM_DEVICE_GID
680DM_COMPAT
681DMEVENTD
682DEVMAPPER
683DEBUG
684COPTIMISE_FLAG
e2997b73 685CONFDIR
ec6a6fbe
AK
686CMDLIB
687CLVMD
688CLUSTER
689CLDWHOLEARCHIVE
690CLDNOWHOLEARCHIVE
691CLDFLAGS
692BUILD_DMEVENTD
693MODPROBE_CMD
694MSGFMT
695LVM2CMD_LIB
696GENHTML
697LCOV
e2997b73
AK
698CPG_LIBS
699CPG_CFLAGS
700CONFDB_LIBS
701CONFDB_CFLAGS
702QUORUM_LIBS
703QUORUM_CFLAGS
704PKG_CONFIG
ec6a6fbe
AK
705POW_LIB
706LIBOBJS
707ALLOCA
708CSCOPE_CMD
709CFLOW_CMD
710RANLIB
711MKDIR_P
712SET_MAKE
713LN_S
714INSTALL_DATA
715INSTALL_SCRIPT
716INSTALL_PROGRAM
717EGREP
718GREP
719CPP
720OBJEXT
721EXEEXT
722ac_ct_CC
723CPPFLAGS
724LDFLAGS
725CFLAGS
726CC
727AWK
728SED
729target_os
730target_vendor
731target_cpu
732target
733host_os
734host_vendor
735host_cpu
736host
737build_os
738build_vendor
739build_cpu
740build
741target_alias
742host_alias
743build_alias
744LIBS
745ECHO_T
746ECHO_N
747ECHO_C
748DEFS
749mandir
750localedir
751libdir
752psdir
753pdfdir
754dvidir
755htmldir
756infodir
757docdir
758oldincludedir
759includedir
760localstatedir
761sharedstatedir
762sysconfdir
763datadir
764datarootdir
765libexecdir
766sbindir
767bindir
768program_transform_name
769prefix
770exec_prefix
771PACKAGE_BUGREPORT
772PACKAGE_STRING
773PACKAGE_VERSION
774PACKAGE_TARNAME
775PACKAGE_NAME
776PATH_SEPARATOR
777SHELL'
ad6254c5 778ac_subst_files=''
ec6a6fbe
AK
779ac_user_opts='
780enable_option_checking
781enable_static_link
782with_user
783with_group
784with_device_uid
785with_device_gid
786with_device_mode
787enable_lvm1_fallback
788with_lvm1
789with_pool
790with_cluster
791with_snapshots
792with_mirrors
793enable_readline
794enable_realtime
795with_clvmd
796enable_debug
797with_optimisation
798enable_profiling
799enable_devmapper
800enable_compat
801enable_ioctl
802enable_o_direct
803enable_cmdlib
804enable_pkgconfig
805enable_fsadm
806enable_dmeventd
807enable_selinux
808enable_nls
809with_localedir
810with_confdir
811with_staticdir
812with_usrlibdir
813with_usrsbindir
814with_dmeventd_pidfile
815with_dmeventd_path
816with_interface
817'
7a197a62
AK
818 ac_precious_vars='build_alias
819host_alias
820target_alias
821CC
822CFLAGS
823LDFLAGS
25fbec5b 824LIBS
7a197a62 825CPPFLAGS
e2997b73
AK
826CPP
827PKG_CONFIG
828QUORUM_CFLAGS
829QUORUM_LIBS
830CONFDB_CFLAGS
831CONFDB_LIBS
832CPG_CFLAGS
833CPG_LIBS'
7a197a62 834
795ca3e5
AK
835
836# Initialize some variables set by options.
ad6254c5
AK
837ac_init_help=
838ac_init_version=false
ec6a6fbe
AK
839ac_unrecognized_opts=
840ac_unrecognized_sep=
795ca3e5
AK
841# The variables have the same names as the options, with
842# dashes changed to underlines.
ad6254c5 843cache_file=/dev/null
795ca3e5 844exec_prefix=NONE
795ca3e5 845no_create=
795ca3e5
AK
846no_recursion=
847prefix=NONE
848program_prefix=NONE
849program_suffix=NONE
850program_transform_name=s,x,x,
851silent=
852site=
853srcdir=
795ca3e5
AK
854verbose=
855x_includes=NONE
856x_libraries=NONE
ad6254c5
AK
857
858# Installation directory options.
859# These are left unexpanded so users can "make install exec_prefix=/foo"
860# and all the variables that are supposed to be based on exec_prefix
861# by default will actually change.
862# Use braces instead of parens because sh, perl, etc. also accept them.
7a197a62 863# (The list follows the same order as the GNU Coding Standards.)
795ca3e5
AK
864bindir='${exec_prefix}/bin'
865sbindir='${exec_prefix}/sbin'
866libexecdir='${exec_prefix}/libexec'
7a197a62
AK
867datarootdir='${prefix}/share'
868datadir='${datarootdir}'
795ca3e5
AK
869sysconfdir='${prefix}/etc'
870sharedstatedir='${prefix}/com'
871localstatedir='${prefix}/var'
795ca3e5
AK
872includedir='${prefix}/include'
873oldincludedir='/usr/include'
7a197a62
AK
874docdir='${datarootdir}/doc/${PACKAGE}'
875infodir='${datarootdir}/info'
876htmldir='${docdir}'
877dvidir='${docdir}'
878pdfdir='${docdir}'
879psdir='${docdir}'
880libdir='${exec_prefix}/lib'
881localedir='${datarootdir}/locale'
882mandir='${datarootdir}/man'
795ca3e5 883
795ca3e5 884ac_prev=
7a197a62 885ac_dashdash=
795ca3e5
AK
886for ac_option
887do
795ca3e5
AK
888 # If the previous option needs an argument, assign it.
889 if test -n "$ac_prev"; then
7a197a62 890 eval $ac_prev=\$ac_option
795ca3e5
AK
891 ac_prev=
892 continue
893 fi
894
7a197a62
AK
895 case $ac_option in
896 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
897 *) ac_optarg=yes ;;
898 esac
795ca3e5
AK
899
900 # Accept the important Cygnus configure options, so we can diagnose typos.
901
7a197a62
AK
902 case $ac_dashdash$ac_option in
903 --)
904 ac_dashdash=yes ;;
795ca3e5
AK
905
906 -bindir | --bindir | --bindi | --bind | --bin | --bi)
907 ac_prev=bindir ;;
908 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
ad6254c5 909 bindir=$ac_optarg ;;
795ca3e5
AK
910
911 -build | --build | --buil | --bui | --bu)
ad6254c5 912 ac_prev=build_alias ;;
795ca3e5 913 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
ad6254c5 914 build_alias=$ac_optarg ;;
795ca3e5
AK
915
916 -cache-file | --cache-file | --cache-fil | --cache-fi \
917 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
918 ac_prev=cache_file ;;
919 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
920 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
ad6254c5
AK
921 cache_file=$ac_optarg ;;
922
923 --config-cache | -C)
924 cache_file=config.cache ;;
795ca3e5 925
7a197a62 926 -datadir | --datadir | --datadi | --datad)
795ca3e5 927 ac_prev=datadir ;;
7a197a62 928 -datadir=* | --datadir=* | --datadi=* | --datad=*)
ad6254c5 929 datadir=$ac_optarg ;;
795ca3e5 930
7a197a62
AK
931 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
932 | --dataroo | --dataro | --datar)
933 ac_prev=datarootdir ;;
934 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
935 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
936 datarootdir=$ac_optarg ;;
937
795ca3e5 938 -disable-* | --disable-*)
ec6a6fbe 939 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
795ca3e5 940 # Reject names that are not valid shell variable names.
ec6a6fbe
AK
941 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
942 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
ad6254c5 943 { (exit 1); exit 1; }; }
ec6a6fbe
AK
944 ac_useropt_orig=$ac_useropt
945 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
946 case $ac_user_opts in
947 *"
948"enable_$ac_useropt"
949"*) ;;
950 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
951 ac_unrecognized_sep=', ';;
952 esac
953 eval enable_$ac_useropt=no ;;
7a197a62
AK
954
955 -docdir | --docdir | --docdi | --doc | --do)
956 ac_prev=docdir ;;
957 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
958 docdir=$ac_optarg ;;
959
960 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
961 ac_prev=dvidir ;;
962 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
963 dvidir=$ac_optarg ;;
795ca3e5
AK
964
965 -enable-* | --enable-*)
ec6a6fbe 966 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
795ca3e5 967 # Reject names that are not valid shell variable names.
ec6a6fbe
AK
968 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
969 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
ad6254c5 970 { (exit 1); exit 1; }; }
ec6a6fbe
AK
971 ac_useropt_orig=$ac_useropt
972 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
973 case $ac_user_opts in
974 *"
975"enable_$ac_useropt"
976"*) ;;
977 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
978 ac_unrecognized_sep=', ';;
979 esac
980 eval enable_$ac_useropt=\$ac_optarg ;;
795ca3e5
AK
981
982 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
983 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
984 | --exec | --exe | --ex)
985 ac_prev=exec_prefix ;;
986 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
987 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
988 | --exec=* | --exe=* | --ex=*)
ad6254c5 989 exec_prefix=$ac_optarg ;;
795ca3e5
AK
990
991 -gas | --gas | --ga | --g)
992 # Obsolete; use --with-gas.
993 with_gas=yes ;;
994
ad6254c5
AK
995 -help | --help | --hel | --he | -h)
996 ac_init_help=long ;;
997 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
998 ac_init_help=recursive ;;
999 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1000 ac_init_help=short ;;
795ca3e5
AK
1001
1002 -host | --host | --hos | --ho)
ad6254c5 1003 ac_prev=host_alias ;;
795ca3e5 1004 -host=* | --host=* | --hos=* | --ho=*)
ad6254c5 1005 host_alias=$ac_optarg ;;
795ca3e5 1006
7a197a62
AK
1007 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1008 ac_prev=htmldir ;;
1009 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1010 | --ht=*)
1011 htmldir=$ac_optarg ;;
1012
795ca3e5
AK
1013 -includedir | --includedir | --includedi | --included | --include \
1014 | --includ | --inclu | --incl | --inc)
1015 ac_prev=includedir ;;
1016 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1017 | --includ=* | --inclu=* | --incl=* | --inc=*)
ad6254c5 1018 includedir=$ac_optarg ;;
795ca3e5
AK
1019
1020 -infodir | --infodir | --infodi | --infod | --info | --inf)
1021 ac_prev=infodir ;;
1022 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
ad6254c5 1023 infodir=$ac_optarg ;;
795ca3e5
AK
1024
1025 -libdir | --libdir | --libdi | --libd)
1026 ac_prev=libdir ;;
1027 -libdir=* | --libdir=* | --libdi=* | --libd=*)
ad6254c5 1028 libdir=$ac_optarg ;;
795ca3e5
AK
1029
1030 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1031 | --libexe | --libex | --libe)
1032 ac_prev=libexecdir ;;
1033 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1034 | --libexe=* | --libex=* | --libe=*)
ad6254c5 1035 libexecdir=$ac_optarg ;;
795ca3e5 1036
7a197a62
AK
1037 -localedir | --localedir | --localedi | --localed | --locale)
1038 ac_prev=localedir ;;
1039 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1040 localedir=$ac_optarg ;;
1041
795ca3e5 1042 -localstatedir | --localstatedir | --localstatedi | --localstated \
7a197a62 1043 | --localstate | --localstat | --localsta | --localst | --locals)
795ca3e5
AK
1044 ac_prev=localstatedir ;;
1045 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
7a197a62 1046 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
ad6254c5 1047 localstatedir=$ac_optarg ;;
795ca3e5
AK
1048
1049 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1050 ac_prev=mandir ;;
1051 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
ad6254c5 1052 mandir=$ac_optarg ;;
795ca3e5
AK
1053
1054 -nfp | --nfp | --nf)
1055 # Obsolete; use --without-fp.
1056 with_fp=no ;;
1057
1058 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
ad6254c5 1059 | --no-cr | --no-c | -n)
795ca3e5
AK
1060 no_create=yes ;;
1061
1062 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1063 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1064 no_recursion=yes ;;
1065
1066 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1067 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1068 | --oldin | --oldi | --old | --ol | --o)
1069 ac_prev=oldincludedir ;;
1070 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1071 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1072 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
ad6254c5 1073 oldincludedir=$ac_optarg ;;
795ca3e5
AK
1074
1075 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1076 ac_prev=prefix ;;
1077 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
ad6254c5 1078 prefix=$ac_optarg ;;
795ca3e5
AK
1079
1080 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1081 | --program-pre | --program-pr | --program-p)
1082 ac_prev=program_prefix ;;
1083 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1084 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
ad6254c5 1085 program_prefix=$ac_optarg ;;
795ca3e5
AK
1086
1087 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1088 | --program-suf | --program-su | --program-s)
1089 ac_prev=program_suffix ;;
1090 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1091 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
ad6254c5 1092 program_suffix=$ac_optarg ;;
795ca3e5
AK
1093
1094 -program-transform-name | --program-transform-name \
1095 | --program-transform-nam | --program-transform-na \
1096 | --program-transform-n | --program-transform- \
1097 | --program-transform | --program-transfor \
1098 | --program-transfo | --program-transf \
1099 | --program-trans | --program-tran \
1100 | --progr-tra | --program-tr | --program-t)
1101 ac_prev=program_transform_name ;;
1102 -program-transform-name=* | --program-transform-name=* \
1103 | --program-transform-nam=* | --program-transform-na=* \
1104 | --program-transform-n=* | --program-transform-=* \
1105 | --program-transform=* | --program-transfor=* \
1106 | --program-transfo=* | --program-transf=* \
1107 | --program-trans=* | --program-tran=* \
1108 | --progr-tra=* | --program-tr=* | --program-t=*)
ad6254c5 1109 program_transform_name=$ac_optarg ;;
795ca3e5 1110
7a197a62
AK
1111 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1112 ac_prev=pdfdir ;;
1113 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1114 pdfdir=$ac_optarg ;;
1115
1116 -psdir | --psdir | --psdi | --psd | --ps)
1117 ac_prev=psdir ;;
1118 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1119 psdir=$ac_optarg ;;
1120
795ca3e5
AK
1121 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1122 | -silent | --silent | --silen | --sile | --sil)
1123 silent=yes ;;
1124
1125 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1126 ac_prev=sbindir ;;
1127 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1128 | --sbi=* | --sb=*)
ad6254c5 1129 sbindir=$ac_optarg ;;
795ca3e5
AK
1130
1131 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1132 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1133 | --sharedst | --shareds | --shared | --share | --shar \
1134 | --sha | --sh)
1135 ac_prev=sharedstatedir ;;
1136 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1137 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1138 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1139 | --sha=* | --sh=*)
ad6254c5 1140 sharedstatedir=$ac_optarg ;;
795ca3e5
AK
1141
1142 -site | --site | --sit)
1143 ac_prev=site ;;
1144 -site=* | --site=* | --sit=*)
ad6254c5 1145 site=$ac_optarg ;;
795ca3e5
AK
1146
1147 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1148 ac_prev=srcdir ;;
1149 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
ad6254c5 1150 srcdir=$ac_optarg ;;
795ca3e5
AK
1151
1152 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1153 | --syscon | --sysco | --sysc | --sys | --sy)
1154 ac_prev=sysconfdir ;;
1155 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1156 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
ad6254c5 1157 sysconfdir=$ac_optarg ;;
795ca3e5
AK
1158
1159 -target | --target | --targe | --targ | --tar | --ta | --t)
ad6254c5 1160 ac_prev=target_alias ;;
795ca3e5 1161 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
ad6254c5 1162 target_alias=$ac_optarg ;;
795ca3e5
AK
1163
1164 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1165 verbose=yes ;;
1166
ad6254c5
AK
1167 -version | --version | --versio | --versi | --vers | -V)
1168 ac_init_version=: ;;
795ca3e5
AK
1169
1170 -with-* | --with-*)
ec6a6fbe 1171 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
795ca3e5 1172 # Reject names that are not valid shell variable names.
ec6a6fbe
AK
1173 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1174 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
ad6254c5 1175 { (exit 1); exit 1; }; }
ec6a6fbe
AK
1176 ac_useropt_orig=$ac_useropt
1177 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1178 case $ac_user_opts in
1179 *"
1180"with_$ac_useropt"
1181"*) ;;
1182 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1183 ac_unrecognized_sep=', ';;
1184 esac
1185 eval with_$ac_useropt=\$ac_optarg ;;
795ca3e5
AK
1186
1187 -without-* | --without-*)
ec6a6fbe 1188 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
795ca3e5 1189 # Reject names that are not valid shell variable names.
ec6a6fbe
AK
1190 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1191 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
ad6254c5 1192 { (exit 1); exit 1; }; }
ec6a6fbe
AK
1193 ac_useropt_orig=$ac_useropt
1194 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1195 case $ac_user_opts in
1196 *"
1197"with_$ac_useropt"
1198"*) ;;
1199 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1200 ac_unrecognized_sep=', ';;
1201 esac
1202 eval with_$ac_useropt=no ;;
795ca3e5
AK
1203
1204 --x)
1205 # Obsolete; use --with-x.
1206 with_x=yes ;;
1207
1208 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1209 | --x-incl | --x-inc | --x-in | --x-i)
1210 ac_prev=x_includes ;;
1211 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1212 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
ad6254c5 1213 x_includes=$ac_optarg ;;
795ca3e5
AK
1214
1215 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1216 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1217 ac_prev=x_libraries ;;
1218 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1219 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
ad6254c5 1220 x_libraries=$ac_optarg ;;
795ca3e5 1221
ec6a6fbe 1222 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
ad6254c5
AK
1223Try \`$0 --help' for more information." >&2
1224 { (exit 1); exit 1; }; }
795ca3e5
AK
1225 ;;
1226
ad6254c5
AK
1227 *=*)
1228 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1229 # Reject names that are not valid shell variable names.
1230 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
ec6a6fbe 1231 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
ad6254c5 1232 { (exit 1); exit 1; }; }
7a197a62 1233 eval $ac_envvar=\$ac_optarg
ad6254c5
AK
1234 export $ac_envvar ;;
1235
795ca3e5 1236 *)
ad6254c5 1237 # FIXME: should be removed in autoconf 3.0.
ec6a6fbe 1238 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
ad6254c5 1239 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
ec6a6fbe 1240 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
ad6254c5 1241 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
795ca3e5
AK
1242 ;;
1243
1244 esac
1245done
1246
1247if test -n "$ac_prev"; then
ad6254c5 1248 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
ec6a6fbe 1249 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
ad6254c5 1250 { (exit 1); exit 1; }; }
795ca3e5 1251fi
795ca3e5 1252
ec6a6fbe
AK
1253if test -n "$ac_unrecognized_opts"; then
1254 case $enable_option_checking in
1255 no) ;;
1256 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1257 { (exit 1); exit 1; }; } ;;
1258 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1259 esac
1260fi
1261
1262# Check all directory arguments for consistency.
7a197a62
AK
1263for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1264 datadir sysconfdir sharedstatedir localstatedir includedir \
1265 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1266 libdir localedir mandir
795ca3e5 1267do
7a197a62 1268 eval ac_val=\$$ac_var
ec6a6fbe
AK
1269 # Remove trailing slashes.
1270 case $ac_val in
1271 */ )
1272 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1273 eval $ac_var=\$ac_val;;
1274 esac
1275 # Be sure to have absolute directory names.
ad6254c5 1276 case $ac_val in
7a197a62
AK
1277 [\\/$]* | ?:[\\/]* ) continue;;
1278 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
795ca3e5 1279 esac
ec6a6fbe 1280 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
7a197a62 1281 { (exit 1); exit 1; }; }
795ca3e5
AK
1282done
1283
ad6254c5
AK
1284# There might be people who depend on the old broken behavior: `$host'
1285# used to hold the argument of --host etc.
1286# FIXME: To remove some day.
1287build=$build_alias
1288host=$host_alias
1289target=$target_alias
1290
1291# FIXME: To remove some day.
1292if test "x$host_alias" != x; then
1293 if test "x$build_alias" = x; then
1294 cross_compiling=maybe
ec6a6fbe 1295 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
ad6254c5
AK
1296 If a cross compiler is detected then cross compile mode will be used." >&2
1297 elif test "x$build_alias" != "x$host_alias"; then
1298 cross_compiling=yes
1299 fi
1300fi
8106cdd5 1301
ad6254c5
AK
1302ac_tool_prefix=
1303test -n "$host_alias" && ac_tool_prefix=$host_alias-
1304
1305test "$silent" = yes && exec 6>/dev/null
795ca3e5 1306
795ca3e5 1307
7a197a62
AK
1308ac_pwd=`pwd` && test -n "$ac_pwd" &&
1309ac_ls_di=`ls -di .` &&
1310ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
ec6a6fbe 1311 { $as_echo "$as_me: error: working directory cannot be determined" >&2
7a197a62
AK
1312 { (exit 1); exit 1; }; }
1313test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
ec6a6fbe 1314 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
7a197a62
AK
1315 { (exit 1); exit 1; }; }
1316
1317
795ca3e5
AK
1318# Find the source files, if location was not specified.
1319if test -z "$srcdir"; then
1320 ac_srcdir_defaulted=yes
7a197a62 1321 # Try the directory containing this script, then the parent directory.
ec6a6fbe
AK
1322 ac_confdir=`$as_dirname -- "$as_myself" ||
1323$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1324 X"$as_myself" : 'X\(//\)[^/]' \| \
1325 X"$as_myself" : 'X\(//\)$' \| \
1326 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1327$as_echo X"$as_myself" |
7a197a62
AK
1328 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1329 s//\1/
1330 q
1331 }
1332 /^X\(\/\/\)[^/].*/{
1333 s//\1/
1334 q
1335 }
1336 /^X\(\/\/\)$/{
1337 s//\1/
1338 q
1339 }
1340 /^X\(\/\).*/{
1341 s//\1/
1342 q
1343 }
1344 s/.*/./; q'`
795ca3e5 1345 srcdir=$ac_confdir
7a197a62 1346 if test ! -r "$srcdir/$ac_unique_file"; then
795ca3e5
AK
1347 srcdir=..
1348 fi
1349else
1350 ac_srcdir_defaulted=no
1351fi
7a197a62
AK
1352if test ! -r "$srcdir/$ac_unique_file"; then
1353 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
ec6a6fbe 1354 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
ad6254c5 1355 { (exit 1); exit 1; }; }
795ca3e5 1356fi
7a197a62
AK
1357ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1358ac_abs_confdir=`(
ec6a6fbe 1359 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
ad6254c5 1360 { (exit 1); exit 1; }; }
7a197a62
AK
1361 pwd)`
1362# When building in place, set srcdir=.
1363if test "$ac_abs_confdir" = "$ac_pwd"; then
1364 srcdir=.
1365fi
1366# Remove unnecessary trailing slashes from srcdir.
1367# Double slashes in file names in object file debugging info
1368# mess up M-x gdb in Emacs.
1369case $srcdir in
1370*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1371esac
1372for ac_var in $ac_precious_vars; do
1373 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1374 eval ac_env_${ac_var}_value=\$${ac_var}
1375 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1376 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1377done
ad6254c5
AK
1378
1379#
1380# Report the --help message.
1381#
1382if test "$ac_init_help" = "long"; then
1383 # Omit some internal or obsolete options to make the list less imposing.
1384 # This message is too long to be a string in the A/UX 3.1 sh.
1385 cat <<_ACEOF
1386\`configure' configures this package to adapt to many kinds of systems.
1387
1388Usage: $0 [OPTION]... [VAR=VALUE]...
1389
1390To assign environment variables (e.g., CC, CFLAGS...), specify them as
1391VAR=VALUE. See below for descriptions of some of the useful variables.
1392
1393Defaults for the options are specified in brackets.
1394
1395Configuration:
1396 -h, --help display this help and exit
1397 --help=short display options specific to this package
1398 --help=recursive display the short help of all the included packages
1399 -V, --version display version information and exit
1400 -q, --quiet, --silent do not print \`checking...' messages
1401 --cache-file=FILE cache test results in FILE [disabled]
1402 -C, --config-cache alias for \`--cache-file=config.cache'
1403 -n, --no-create do not create output files
1404 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1405
ad6254c5
AK
1406Installation directories:
1407 --prefix=PREFIX install architecture-independent files in PREFIX
ec6a6fbe 1408 [$ac_default_prefix]
ad6254c5 1409 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
ec6a6fbe 1410 [PREFIX]
ad6254c5
AK
1411
1412By default, \`make install' will install all the files in
1413\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1414an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1415for instance \`--prefix=\$HOME'.
1416
1417For better control, use the options below.
1418
1419Fine tuning of the installation directories:
ec6a6fbe
AK
1420 --bindir=DIR user executables [EPREFIX/bin]
1421 --sbindir=DIR system admin executables [EPREFIX/sbin]
1422 --libexecdir=DIR program executables [EPREFIX/libexec]
1423 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1424 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1425 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1426 --libdir=DIR object code libraries [EPREFIX/lib]
1427 --includedir=DIR C header files [PREFIX/include]
1428 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1429 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1430 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1431 --infodir=DIR info documentation [DATAROOTDIR/info]
1432 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1433 --mandir=DIR man documentation [DATAROOTDIR/man]
1434 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1435 --htmldir=DIR html documentation [DOCDIR]
1436 --dvidir=DIR dvi documentation [DOCDIR]
1437 --pdfdir=DIR pdf documentation [DOCDIR]
1438 --psdir=DIR ps documentation [DOCDIR]
ad6254c5
AK
1439_ACEOF
1440
1441 cat <<\_ACEOF
1442
1443System types:
1444 --build=BUILD configure for building on BUILD [guessed]
1445 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1446 --target=TARGET configure for building compilers for TARGET [HOST]
1447_ACEOF
1448fi
1449
1450if test -n "$ac_init_help"; then
1451
1452 cat <<\_ACEOF
1453
1454Optional Features:
ec6a6fbe 1455 --disable-option-checking ignore unrecognized --enable/--with options
ad6254c5
AK
1456 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1457 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
9c961554
MB
1458 --enable-static_link Use this to link the tools to their libraries
1459 statically. Default is dynamic linking
ad6254c5
AK
1460 --enable-lvm1_fallback Use this to fall back and use LVM1 binaries if
1461 device-mapper is missing from the kernel
1b523347 1462 --disable-readline Disable readline support
3d978351 1463 --disable-realtime Disable realtime clock support
ad6254c5 1464 --enable-debug Enable debugging
5556819a 1465 --enable-profiling Gather gcov profiling data
93bd259b
AK
1466 --disable-devmapper Disable LVM2 device-mapper interaction
1467 --enable-compat Enable support for old device-mapper versions
1468 --disable-driver Disable calls to device-mapper in the kernel
ad6254c5
AK
1469 --disable-o_direct Disable O_DIRECT
1470 --enable-cmdlib Build shared command library
93bd259b 1471 --enable-pkgconfig Install pkgconfig support
ad6254c5 1472 --enable-fsadm Enable fsadm
15d91f5a 1473 --enable-dmeventd Enable the device-mapper event daemon
d0191583 1474 --disable-selinux Disable selinux support
ad6254c5
AK
1475 --enable-nls Enable Native Language Support
1476
1477Optional Packages:
1478 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1479 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
d0191583
JM
1480 --with-user=USER Set the owner of installed files [USER=root]
1481 --with-group=GROUP Set the group owner of installed files [GROUP=root]
24bbc4d7
AK
1482 --with-device-uid=UID Set the owner used for new device nodes [UID=0]
1483 --with-device-gid=UID Set the group used for new device nodes [GID=0]
93bd259b 1484 --with-device-mode=MODE Set the mode used for new device nodes [MODE=0600]
ad6254c5
AK
1485 --with-lvm1=TYPE LVM1 metadata support: internal/shared/none
1486 TYPE=internal
1487 --with-pool=TYPE GFS pool read-only support: internal/shared/none
1488 TYPE=internal
1489 --with-cluster=TYPE Cluster LVM locking support: internal/shared/none
1490 TYPE=internal
1491 --with-snapshots=TYPE Snapshot support: internal/shared/none
1492 TYPE=internal
1493 --with-mirrors=TYPE Mirror support: internal/shared/none
1494 TYPE=internal
ec6a6fbe 1495 --with-clvmd=TYPE Build cluster LVM Daemon: cman/gulm/corosync/none/all
a266258f 1496 TYPE=none
d0191583
JM
1497 --with-optimisation=OPT C optimisation flag [OPT=-O2]
1498 --with-localedir=DIR Translation files in DIR [PREFIX/share/locale]
ad6254c5
AK
1499 --with-confdir=DIR Configuration files in DIR /etc
1500 --with-staticdir=DIR Static binary in DIR EXEC_PREFIX/sbin
68f2de6d
AK
1501 --with-usrlibdir=DIR
1502 --with-usrsbindir=DIR
93bd259b
AK
1503 --with-dmeventd-pidfile=PATH dmeventd pidfile [/var/run/dmeventd.pid]
1504 --with-dmeventd-path=PATH dmeventd path [${exec_prefix}/sbin/dmeventd]
1505 --with-interface=IFACE Choose kernel interface (ioctl) [ioctl]
ad6254c5
AK
1506
1507Some influential environment variables:
1508 CC C compiler command
1509 CFLAGS C compiler flags
1510 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1511 nonstandard directory <lib dir>
25fbec5b 1512 LIBS libraries to pass to the linker, e.g. -l<library>
7a197a62
AK
1513 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1514 you have headers in a nonstandard directory <include dir>
ad6254c5 1515 CPP C preprocessor
e2997b73
AK
1516 PKG_CONFIG path to pkg-config utility
1517 QUORUM_CFLAGS
1518 C compiler flags for QUORUM, overriding pkg-config
1519 QUORUM_LIBS linker flags for QUORUM, overriding pkg-config
1520 CONFDB_CFLAGS
1521 C compiler flags for CONFDB, overriding pkg-config
1522 CONFDB_LIBS linker flags for CONFDB, overriding pkg-config
1523 CPG_CFLAGS C compiler flags for CPG, overriding pkg-config
1524 CPG_LIBS linker flags for CPG, overriding pkg-config
ad6254c5
AK
1525
1526Use these variables to override the choices made by `configure' or to help
1527it to find libraries and programs with nonstandard names/locations.
1528
1529_ACEOF
7a197a62 1530ac_status=$?
ad6254c5
AK
1531fi
1532
1533if test "$ac_init_help" = "recursive"; then
1534 # If there are subdirs, report their specific --help.
ad6254c5 1535 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
ec6a6fbe
AK
1536 test -d "$ac_dir" ||
1537 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1538 continue
ad6254c5
AK
1539 ac_builddir=.
1540
7a197a62
AK
1541case "$ac_dir" in
1542.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1543*)
ec6a6fbe 1544 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7a197a62 1545 # A ".." for each directory in $ac_dir_suffix.
ec6a6fbe 1546 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7a197a62
AK
1547 case $ac_top_builddir_sub in
1548 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1549 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1550 esac ;;
1551esac
1552ac_abs_top_builddir=$ac_pwd
1553ac_abs_builddir=$ac_pwd$ac_dir_suffix
1554# for backward compatibility:
1555ac_top_builddir=$ac_top_build_prefix
ad6254c5
AK
1556
1557case $srcdir in
7a197a62 1558 .) # We are building in place.
ad6254c5 1559 ac_srcdir=.
7a197a62
AK
1560 ac_top_srcdir=$ac_top_builddir_sub
1561 ac_abs_top_srcdir=$ac_pwd ;;
1562 [\\/]* | ?:[\\/]* ) # Absolute name.
ad6254c5 1563 ac_srcdir=$srcdir$ac_dir_suffix;
7a197a62
AK
1564 ac_top_srcdir=$srcdir
1565 ac_abs_top_srcdir=$srcdir ;;
1566 *) # Relative name.
1567 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1568 ac_top_srcdir=$ac_top_build_prefix$srcdir
1569 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8a2fc586 1570esac
7a197a62
AK
1571ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1572
1573 cd "$ac_dir" || { ac_status=$?; continue; }
1574 # Check for guested configure.
1575 if test -f "$ac_srcdir/configure.gnu"; then
1576 echo &&
1577 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1578 elif test -f "$ac_srcdir/configure"; then
1579 echo &&
1580 $SHELL "$ac_srcdir/configure" --help=recursive
ad6254c5 1581 else
ec6a6fbe 1582 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
7a197a62
AK
1583 fi || ac_status=$?
1584 cd "$ac_pwd" || { ac_status=$?; break; }
ad6254c5
AK
1585 done
1586fi
1587
7a197a62 1588test -n "$ac_init_help" && exit $ac_status
ad6254c5
AK
1589if $ac_init_version; then
1590 cat <<\_ACEOF
7a197a62 1591configure
ec6a6fbe 1592generated by GNU Autoconf 2.63
ad6254c5 1593
7a197a62 1594Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
ec6a6fbe 15952002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
ad6254c5
AK
1596This configure script is free software; the Free Software Foundation
1597gives unlimited permission to copy, distribute and modify it.
1598_ACEOF
7a197a62 1599 exit
ad6254c5 1600fi
7a197a62 1601cat >config.log <<_ACEOF
ad6254c5
AK
1602This file contains any messages produced by compilers while
1603running configure, to aid debugging if configure makes a mistake.
1604
1605It was created by $as_me, which was
ec6a6fbe 1606generated by GNU Autoconf 2.63. Invocation command line was
ad6254c5
AK
1607
1608 $ $0 $@
1609
1610_ACEOF
7a197a62 1611exec 5>>config.log
ad6254c5
AK
1612{
1613cat <<_ASUNAME
1614## --------- ##
1615## Platform. ##
1616## --------- ##
1617
1618hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1619uname -m = `(uname -m) 2>/dev/null || echo unknown`
1620uname -r = `(uname -r) 2>/dev/null || echo unknown`
1621uname -s = `(uname -s) 2>/dev/null || echo unknown`
1622uname -v = `(uname -v) 2>/dev/null || echo unknown`
1623
1624/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1625/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1626
1627/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1628/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1629/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
7a197a62 1630/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
ad6254c5
AK
1631/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1632/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1633/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1634
1635_ASUNAME
1636
1637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1638for as_dir in $PATH
1639do
1640 IFS=$as_save_IFS
1641 test -z "$as_dir" && as_dir=.
ec6a6fbe 1642 $as_echo "PATH: $as_dir"
ad6254c5 1643done
7a197a62 1644IFS=$as_save_IFS
ad6254c5
AK
1645
1646} >&5
1647
1648cat >&5 <<_ACEOF
1649
1650
1651## ----------- ##
1652## Core tests. ##
1653## ----------- ##
1654
1655_ACEOF
1656
1657
1658# Keep a trace of the command line.
1659# Strip out --no-create and --no-recursion so they do not pile up.
1660# Strip out --silent because we don't want to record it for future runs.
1661# Also quote any args containing shell meta-characters.
1662# Make two passes to allow for proper duplicate-argument suppression.
1663ac_configure_args=
1664ac_configure_args0=
1665ac_configure_args1=
ad6254c5
AK
1666ac_must_keep_next=false
1667for ac_pass in 1 2
1668do
1669 for ac_arg
1670 do
1671 case $ac_arg in
1672 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1673 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1674 | -silent | --silent | --silen | --sile | --sil)
1675 continue ;;
7a197a62 1676 *\'*)
ec6a6fbe 1677 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
ad6254c5
AK
1678 esac
1679 case $ac_pass in
1680 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1681 2)
1682 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1683 if test $ac_must_keep_next = true; then
8a2fc586 1684 ac_must_keep_next=false # Got value, back to normal.
ad6254c5 1685 else
8a2fc586
AK
1686 case $ac_arg in
1687 *=* | --config-cache | -C | -disable-* | --disable-* \
1688 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1689 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1690 | -with-* | --with-* | -without-* | --without-* | --x)
1691 case "$ac_configure_args0 " in
1692 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1693 esac
1694 ;;
1695 -* ) ac_must_keep_next=true ;;
1696 esac
ad6254c5 1697 fi
7a197a62 1698 ac_configure_args="$ac_configure_args '$ac_arg'"
ad6254c5
AK
1699 ;;
1700 esac
1701 done
1702done
1703$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1704$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1705
1706# When interrupted or exit'd, cleanup temporary files, and complete
1707# config.log. We remove comments because anyway the quotes in there
1708# would cause problems or look ugly.
7a197a62
AK
1709# WARNING: Use '\'' to represent an apostrophe within the trap.
1710# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
ad6254c5
AK
1711trap 'exit_status=$?
1712 # Save into config.log some information that might help in debugging.
1713 {
1714 echo
1715
1716 cat <<\_ASBOX
1717## ---------------- ##
1718## Cache variables. ##
1719## ---------------- ##
1720_ASBOX
1721 echo
1722 # The following way of writing the cache mishandles newlines in values,
7a197a62
AK
1723(
1724 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1725 eval ac_val=\$$ac_var
1726 case $ac_val in #(
1727 *${as_nl}*)
1728 case $ac_var in #(
ec6a6fbe
AK
1729 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1730$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7a197a62
AK
1731 esac
1732 case $ac_var in #(
1733 _ | IFS | as_nl) ;; #(
ec6a6fbe 1734 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7a197a62
AK
1735 *) $as_unset $ac_var ;;
1736 esac ;;
1737 esac
1738 done
ad6254c5 1739 (set) 2>&1 |
7a197a62
AK
1740 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1741 *${as_nl}ac_space=\ *)
ad6254c5 1742 sed -n \
7a197a62
AK
1743 "s/'\''/'\''\\\\'\'''\''/g;
1744 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1745 ;; #(
ad6254c5 1746 *)
7a197a62 1747 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
ad6254c5 1748 ;;
7a197a62
AK
1749 esac |
1750 sort
1751)
ad6254c5
AK
1752 echo
1753
1754 cat <<\_ASBOX
1755## ----------------- ##
1756## Output variables. ##
1757## ----------------- ##
1758_ASBOX
1759 echo
1760 for ac_var in $ac_subst_vars
1761 do
7a197a62
AK
1762 eval ac_val=\$$ac_var
1763 case $ac_val in
ec6a6fbe 1764 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
7a197a62 1765 esac
ec6a6fbe 1766 $as_echo "$ac_var='\''$ac_val'\''"
ad6254c5
AK
1767 done | sort
1768 echo
1769
1770 if test -n "$ac_subst_files"; then
1771 cat <<\_ASBOX
7a197a62
AK
1772## ------------------- ##
1773## File substitutions. ##
1774## ------------------- ##
ad6254c5
AK
1775_ASBOX
1776 echo
1777 for ac_var in $ac_subst_files
1778 do
7a197a62
AK
1779 eval ac_val=\$$ac_var
1780 case $ac_val in
ec6a6fbe 1781 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
7a197a62 1782 esac
ec6a6fbe 1783 $as_echo "$ac_var='\''$ac_val'\''"
ad6254c5
AK
1784 done | sort
1785 echo
1786 fi
1787
1788 if test -s confdefs.h; then
1789 cat <<\_ASBOX
1790## ----------- ##
1791## confdefs.h. ##
1792## ----------- ##
1793_ASBOX
1794 echo
7a197a62 1795 cat confdefs.h
ad6254c5
AK
1796 echo
1797 fi
1798 test "$ac_signal" != 0 &&
ec6a6fbe
AK
1799 $as_echo "$as_me: caught signal $ac_signal"
1800 $as_echo "$as_me: exit $exit_status"
ad6254c5 1801 } >&5
7a197a62
AK
1802 rm -f core *.core core.conftest.* &&
1803 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
ad6254c5 1804 exit $exit_status
7a197a62 1805' 0
ad6254c5
AK
1806for ac_signal in 1 2 13 15; do
1807 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1808done
1809ac_signal=0
1810
1811# confdefs.h avoids OS command line length limits that DEFS can exceed.
7a197a62 1812rm -f -r conftest* confdefs.h
ad6254c5
AK
1813
1814# Predefined preprocessor variables.
1815
1816cat >>confdefs.h <<_ACEOF
1817#define PACKAGE_NAME "$PACKAGE_NAME"
1818_ACEOF
1819
1820
1821cat >>confdefs.h <<_ACEOF
1822#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1823_ACEOF
1824
1825
1826cat >>confdefs.h <<_ACEOF
1827#define PACKAGE_VERSION "$PACKAGE_VERSION"
1828_ACEOF
8106cdd5 1829
ad6254c5
AK
1830
1831cat >>confdefs.h <<_ACEOF
1832#define PACKAGE_STRING "$PACKAGE_STRING"
1833_ACEOF
1834
1835
1836cat >>confdefs.h <<_ACEOF
1837#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1838_ACEOF
1839
1840
1841# Let the site file select an alternate cache file if it wants to.
ec6a6fbe
AK
1842# Prefer an explicitly selected file to automatically selected ones.
1843ac_site_file1=NONE
1844ac_site_file2=NONE
7a197a62 1845if test -n "$CONFIG_SITE"; then
ec6a6fbe 1846 ac_site_file1=$CONFIG_SITE
7a197a62 1847elif test "x$prefix" != xNONE; then
ec6a6fbe
AK
1848 ac_site_file1=$prefix/share/config.site
1849 ac_site_file2=$prefix/etc/config.site
7a197a62 1850else
ec6a6fbe
AK
1851 ac_site_file1=$ac_default_prefix/share/config.site
1852 ac_site_file2=$ac_default_prefix/etc/config.site
795ca3e5 1853fi
ec6a6fbe 1854for ac_site_file in "$ac_site_file1" "$ac_site_file2"
7a197a62 1855do
ec6a6fbe 1856 test "x$ac_site_file" = xNONE && continue
795ca3e5 1857 if test -r "$ac_site_file"; then
ec6a6fbe
AK
1858 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1859$as_echo "$as_me: loading site script $ac_site_file" >&6;}
ad6254c5 1860 sed 's/^/| /' "$ac_site_file" >&5
795ca3e5
AK
1861 . "$ac_site_file"
1862 fi
1863done
1864
1865if test -r "$cache_file"; then
ad6254c5
AK
1866 # Some versions of bash will fail to source /dev/null (special
1867 # files actually), so we avoid doing that.
1868 if test -f "$cache_file"; then
ec6a6fbe
AK
1869 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1870$as_echo "$as_me: loading cache $cache_file" >&6;}
ad6254c5 1871 case $cache_file in
7a197a62
AK
1872 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1873 *) . "./$cache_file";;
ad6254c5
AK
1874 esac
1875 fi
795ca3e5 1876else
ec6a6fbe
AK
1877 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1878$as_echo "$as_me: creating cache $cache_file" >&6;}
ad6254c5
AK
1879 >$cache_file
1880fi
1881
1882# Check that the precious variables saved in the cache have kept the same
1883# value.
1884ac_cache_corrupted=false
7a197a62 1885for ac_var in $ac_precious_vars; do
ad6254c5
AK
1886 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1887 eval ac_new_set=\$ac_env_${ac_var}_set
7a197a62
AK
1888 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1889 eval ac_new_val=\$ac_env_${ac_var}_value
ad6254c5
AK
1890 case $ac_old_set,$ac_new_set in
1891 set,)
ec6a6fbe
AK
1892 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1893$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
ad6254c5
AK
1894 ac_cache_corrupted=: ;;
1895 ,set)
ec6a6fbe
AK
1896 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1897$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
ad6254c5
AK
1898 ac_cache_corrupted=: ;;
1899 ,);;
1900 *)
1901 if test "x$ac_old_val" != "x$ac_new_val"; then
ec6a6fbe
AK
1902 # differences in whitespace do not lead to failure.
1903 ac_old_val_w=`echo x $ac_old_val`
1904 ac_new_val_w=`echo x $ac_new_val`
1905 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1906 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1907$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1908 ac_cache_corrupted=:
1909 else
1910 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1911$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1912 eval $ac_var=\$ac_old_val
1913 fi
1914 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1915$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1916 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1917$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
ad6254c5
AK
1918 fi;;
1919 esac
1920 # Pass precious variables to config.status.
1921 if test "$ac_new_set" = set; then
1922 case $ac_new_val in
ec6a6fbe 1923 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
ad6254c5
AK
1924 *) ac_arg=$ac_var=$ac_new_val ;;
1925 esac
1926 case " $ac_configure_args " in
1927 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1928 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1929 esac
1930 fi
1931done
1932if $ac_cache_corrupted; then
ec6a6fbe
AK
1933 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1934$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1935 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1936$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1937 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1938$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
ad6254c5 1939 { (exit 1); exit 1; }; }
795ca3e5
AK
1940fi
1941
ad6254c5
AK
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
7a197a62
AK
1958ac_ext=c
1959ac_cpp='$CPP $CPPFLAGS'
1960ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1961ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1962ac_compiler_gnu=$ac_cv_c_compiler_gnu
ad6254c5 1963
795ca3e5
AK
1964
1965
7a197a62 1966ac_config_headers="$ac_config_headers lib/misc/configure.h"
72b2cb61
AK
1967
1968
80992638 1969################################################################################
795ca3e5 1970ac_aux_dir=
7a197a62
AK
1971for ac_dir in autoconf "$srcdir"/autoconf; do
1972 if test -f "$ac_dir/install-sh"; then
795ca3e5
AK
1973 ac_aux_dir=$ac_dir
1974 ac_install_sh="$ac_aux_dir/install-sh -c"
1975 break
7a197a62 1976 elif test -f "$ac_dir/install.sh"; then
795ca3e5
AK
1977 ac_aux_dir=$ac_dir
1978 ac_install_sh="$ac_aux_dir/install.sh -c"
1979 break
7a197a62 1980 elif test -f "$ac_dir/shtool"; then
ad6254c5
AK
1981 ac_aux_dir=$ac_dir
1982 ac_install_sh="$ac_aux_dir/shtool install -c"
1983 break
795ca3e5
AK
1984 fi
1985done
1986if test -z "$ac_aux_dir"; then
ec6a6fbe
AK
1987 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1988$as_echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
ad6254c5 1989 { (exit 1); exit 1; }; }
795ca3e5 1990fi
7a197a62
AK
1991
1992# These three variables are undocumented and unsupported,
1993# and are intended to be withdrawn in a future Autoconf release.
1994# They can cause serious problems if a builder's source tree is in a directory
1995# whose full name contains unusual characters.
1996ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1997ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1998ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1999
8ce0cbda
AK
2000
2001
ad6254c5 2002################################################################################
8ce0cbda 2003# Make sure we can run config.sub.
7a197a62 2004$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
ec6a6fbe
AK
2005 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2006$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
ad6254c5
AK
2007 { (exit 1); exit 1; }; }
2008
ec6a6fbe
AK
2009{ $as_echo "$as_me:$LINENO: checking build system type" >&5
2010$as_echo_n "checking build system type... " >&6; }
ad6254c5 2011if test "${ac_cv_build+set}" = set; then
ec6a6fbe 2012 $as_echo_n "(cached) " >&6
ad6254c5 2013else
7a197a62
AK
2014 ac_build_alias=$build_alias
2015test "x$ac_build_alias" = x &&
2016 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2017test "x$ac_build_alias" = x &&
ec6a6fbe
AK
2018 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2019$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
ad6254c5 2020 { (exit 1); exit 1; }; }
7a197a62 2021ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
ec6a6fbe
AK
2022 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2023$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
ad6254c5
AK
2024 { (exit 1); exit 1; }; }
2025
2026fi
ec6a6fbe
AK
2027{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2028$as_echo "$ac_cv_build" >&6; }
7a197a62
AK
2029case $ac_cv_build in
2030*-*-*) ;;
ec6a6fbe
AK
2031*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2032$as_echo "$as_me: error: invalid value of canonical build" >&2;}
7a197a62
AK
2033 { (exit 1); exit 1; }; };;
2034esac
ad6254c5 2035build=$ac_cv_build
7a197a62
AK
2036ac_save_IFS=$IFS; IFS='-'
2037set x $ac_cv_build
2038shift
2039build_cpu=$1
2040build_vendor=$2
2041shift; shift
2042# Remember, the first character of IFS is used to create $*,
2043# except with old shells:
2044build_os=$*
2045IFS=$ac_save_IFS
2046case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
ad6254c5
AK
2047
2048
ec6a6fbe
AK
2049{ $as_echo "$as_me:$LINENO: checking host system type" >&5
2050$as_echo_n "checking host system type... " >&6; }
ad6254c5 2051if test "${ac_cv_host+set}" = set; then
ec6a6fbe 2052 $as_echo_n "(cached) " >&6
ad6254c5 2053else
7a197a62
AK
2054 if test "x$host_alias" = x; then
2055 ac_cv_host=$ac_cv_build
2056else
2057 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
ec6a6fbe
AK
2058 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2059$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
ad6254c5 2060 { (exit 1); exit 1; }; }
7a197a62 2061fi
ad6254c5
AK
2062
2063fi
ec6a6fbe
AK
2064{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2065$as_echo "$ac_cv_host" >&6; }
7a197a62
AK
2066case $ac_cv_host in
2067*-*-*) ;;
ec6a6fbe
AK
2068*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2069$as_echo "$as_me: error: invalid value of canonical host" >&2;}
7a197a62
AK
2070 { (exit 1); exit 1; }; };;
2071esac
ad6254c5 2072host=$ac_cv_host
7a197a62
AK
2073ac_save_IFS=$IFS; IFS='-'
2074set x $ac_cv_host
2075shift
2076host_cpu=$1
2077host_vendor=$2
2078shift; shift
2079# Remember, the first character of IFS is used to create $*,
2080# except with old shells:
2081host_os=$*
2082IFS=$ac_save_IFS
2083case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
ad6254c5
AK
2084
2085
ec6a6fbe
AK
2086{ $as_echo "$as_me:$LINENO: checking target system type" >&5
2087$as_echo_n "checking target system type... " >&6; }
ad6254c5 2088if test "${ac_cv_target+set}" = set; then
ec6a6fbe 2089 $as_echo_n "(cached) " >&6
ad6254c5 2090else
7a197a62
AK
2091 if test "x$target_alias" = x; then
2092 ac_cv_target=$ac_cv_host
2093else
2094 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
ec6a6fbe
AK
2095 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2096$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
ad6254c5 2097 { (exit 1); exit 1; }; }
7a197a62 2098fi
8ce0cbda 2099
ad6254c5 2100fi
ec6a6fbe
AK
2101{ $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2102$as_echo "$ac_cv_target" >&6; }
7a197a62
AK
2103case $ac_cv_target in
2104*-*-*) ;;
ec6a6fbe
AK
2105*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2106$as_echo "$as_me: error: invalid value of canonical target" >&2;}
7a197a62
AK
2107 { (exit 1); exit 1; }; };;
2108esac
ad6254c5 2109target=$ac_cv_target
7a197a62
AK
2110ac_save_IFS=$IFS; IFS='-'
2111set x $ac_cv_target
2112shift
2113target_cpu=$1
2114target_vendor=$2
2115shift; shift
2116# Remember, the first character of IFS is used to create $*,
2117# except with old shells:
2118target_os=$*
2119IFS=$ac_save_IFS
2120case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
8ce0cbda 2121
8ce0cbda 2122
ad6254c5
AK
2123# The aliases save the names the user supplied, while $host etc.
2124# will get canonicalized.
2125test -n "$target_alias" &&
8ce0cbda
AK
2126 test "$program_prefix$program_suffix$program_transform_name" = \
2127 NONENONEs,x,x, &&
2128 program_prefix=${target_alias}-
2129
8ce0cbda
AK
2130case "$host_os" in
2131 linux*)
7f54ef36 2132 CFLAGS="$CFLAGS"
8ce0cbda
AK
2133 COPTIMISE_FLAG="-O2"
2134 CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym"
2135 CLDWHOLEARCHIVE="-Wl,-whole-archive"
2136 CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive"
2137 LDDEPS="$LDDEPS .export.sym"
2138 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
d0191583 2139 LIB_SUFFIX=so
8ce0cbda
AK
2140 DEVMAPPER=yes
2141 ODIRECT=yes
d0191583 2142 DM_IOCTLS=yes
8ce0cbda 2143 SELINUX=yes
8b1a3214 2144 REALTIME=yes
8ce0cbda 2145 CLUSTER=internal
93bd259b 2146 FSADM=yes
d0191583 2147 ;;
8ce0cbda
AK
2148 darwin*)
2149 CFLAGS="$CFLAGS -no-cpp-precomp -fno-common"
2150 COPTIMISE_FLAG="-O2"
2151 CLDFLAGS="$CLDFLAGS"
2152 CLDWHOLEARCHIVE="-all_load"
2153 CLDNOWHOLEARCHIVE=
d0191583 2154 LIB_SUFFIX=dylib
a653923f 2155 DEVMAPPER=yes
8ce0cbda 2156 ODIRECT=no
d0191583 2157 DM_IOCTLS=no
8ce0cbda 2158 SELINUX=no
8b1a3214 2159 REALTIME=no
8ce0cbda 2160 CLUSTER=none
d0191583
JM
2161 FSADM=no
2162 ;;
8ce0cbda
AK
2163esac
2164
80992638 2165################################################################################
ec6a6fbe
AK
2166{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
2167$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5951ef33 2168if test "${ac_cv_path_SED+set}" = set; then
ec6a6fbe 2169 $as_echo_n "(cached) " >&6
5951ef33
AK
2170else
2171 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2172 for ac_i in 1 2 3 4 5 6 7; do
2173 ac_script="$ac_script$as_nl$ac_script"
2174 done
ec6a6fbe 2175 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5951ef33 2176 $as_unset ac_script || ac_script=
ec6a6fbe 2177 if test -z "$SED"; then
5951ef33 2178 ac_path_SED_found=false
ec6a6fbe
AK
2179 # Loop through the user's path and test for each of PROGNAME-LIST
2180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5951ef33
AK
2181for as_dir in $PATH
2182do
2183 IFS=$as_save_IFS
2184 test -z "$as_dir" && as_dir=.
2185 for ac_prog in sed gsed; do
ec6a6fbe
AK
2186 for ac_exec_ext in '' $ac_executable_extensions; do
2187 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2188 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2189# Check for GNU ac_path_SED and select it if it is found.
5951ef33
AK
2190 # Check for GNU $ac_path_SED
2191case `"$ac_path_SED" --version 2>&1` in
2192*GNU*)
2193 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2194*)
2195 ac_count=0
ec6a6fbe 2196 $as_echo_n 0123456789 >"conftest.in"
5951ef33
AK
2197 while :
2198 do
2199 cat "conftest.in" "conftest.in" >"conftest.tmp"
2200 mv "conftest.tmp" "conftest.in"
2201 cp "conftest.in" "conftest.nl"
ec6a6fbe 2202 $as_echo '' >> "conftest.nl"
5951ef33
AK
2203 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2204 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2205 ac_count=`expr $ac_count + 1`
2206 if test $ac_count -gt ${ac_path_SED_max-0}; then
2207 # Best one so far, save it but keep looking for a better one
2208 ac_cv_path_SED="$ac_path_SED"
2209 ac_path_SED_max=$ac_count
2210 fi
2211 # 10*(2^10) chars as input seems more than enough
2212 test $ac_count -gt 10 && break
2213 done
2214 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2215esac
2216
ec6a6fbe
AK
2217 $ac_path_SED_found && break 3
2218 done
5951ef33
AK
2219 done
2220done
5951ef33 2221IFS=$as_save_IFS
ec6a6fbe
AK
2222 if test -z "$ac_cv_path_SED"; then
2223 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
2224$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
5951ef33 2225 { (exit 1); exit 1; }; }
ec6a6fbe 2226 fi
5951ef33
AK
2227else
2228 ac_cv_path_SED=$SED
2229fi
2230
2231fi
ec6a6fbe
AK
2232{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
2233$as_echo "$ac_cv_path_SED" >&6; }
5951ef33
AK
2234 SED="$ac_cv_path_SED"
2235 rm -f conftest.sed
2236
ad6254c5 2237for ac_prog in gawk mawk nawk awk
795ca3e5 2238do
ad6254c5 2239 # Extract the first word of "$ac_prog", so it can be a program name with args.
795ca3e5 2240set dummy $ac_prog; ac_word=$2
ec6a6fbe
AK
2241{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2242$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2243if test "${ac_cv_prog_AWK+set}" = set; then
ec6a6fbe 2244 $as_echo_n "(cached) " >&6
795ca3e5
AK
2245else
2246 if test -n "$AWK"; then
2247 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2248else
ad6254c5
AK
2249as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2250for as_dir in $PATH
2251do
2252 IFS=$as_save_IFS
2253 test -z "$as_dir" && as_dir=.
2254 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2256 ac_cv_prog_AWK="$ac_prog"
ec6a6fbe 2257 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2258 break 2
2259 fi
2260done
2261done
7a197a62 2262IFS=$as_save_IFS
ad6254c5 2263
795ca3e5
AK
2264fi
2265fi
ad6254c5 2266AWK=$ac_cv_prog_AWK
795ca3e5 2267if test -n "$AWK"; then
ec6a6fbe
AK
2268 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2269$as_echo "$AWK" >&6; }
795ca3e5 2270else
ec6a6fbe
AK
2271 { $as_echo "$as_me:$LINENO: result: no" >&5
2272$as_echo "no" >&6; }
795ca3e5
AK
2273fi
2274
7a197a62 2275
ad6254c5
AK
2276 test -n "$AWK" && break
2277done
2278
2279ac_ext=c
2280ac_cpp='$CPP $CPPFLAGS'
2281ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2282ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2283ac_compiler_gnu=$ac_cv_c_compiler_gnu
2284if test -n "$ac_tool_prefix"; then
2285 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2286set dummy ${ac_tool_prefix}gcc; ac_word=$2
ec6a6fbe
AK
2287{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2288$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2289if test "${ac_cv_prog_CC+set}" = set; then
ec6a6fbe 2290 $as_echo_n "(cached) " >&6
ad6254c5
AK
2291else
2292 if test -n "$CC"; then
2293 ac_cv_prog_CC="$CC" # Let the user override the test.
2294else
2295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2296for as_dir in $PATH
2297do
2298 IFS=$as_save_IFS
2299 test -z "$as_dir" && as_dir=.
2300 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2302 ac_cv_prog_CC="${ac_tool_prefix}gcc"
ec6a6fbe 2303 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2304 break 2
2305 fi
2306done
8106cdd5 2307done
7a197a62 2308IFS=$as_save_IFS
8106cdd5 2309
ad6254c5
AK
2310fi
2311fi
2312CC=$ac_cv_prog_CC
2313if test -n "$CC"; then
ec6a6fbe
AK
2314 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2315$as_echo "$CC" >&6; }
ad6254c5 2316else
ec6a6fbe
AK
2317 { $as_echo "$as_me:$LINENO: result: no" >&5
2318$as_echo "no" >&6; }
ad6254c5
AK
2319fi
2320
7a197a62 2321
ad6254c5
AK
2322fi
2323if test -z "$ac_cv_prog_CC"; then
2324 ac_ct_CC=$CC
2325 # Extract the first word of "gcc", so it can be a program name with args.
8106cdd5 2326set dummy gcc; ac_word=$2
ec6a6fbe
AK
2327{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2328$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2329if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
ec6a6fbe 2330 $as_echo_n "(cached) " >&6
ad6254c5
AK
2331else
2332 if test -n "$ac_ct_CC"; then
2333 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2334else
2335as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2336for as_dir in $PATH
2337do
2338 IFS=$as_save_IFS
2339 test -z "$as_dir" && as_dir=.
2340 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2342 ac_cv_prog_ac_ct_CC="gcc"
ec6a6fbe 2343 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2344 break 2
2345 fi
2346done
2347done
7a197a62 2348IFS=$as_save_IFS
ad6254c5
AK
2349
2350fi
2351fi
2352ac_ct_CC=$ac_cv_prog_ac_ct_CC
2353if test -n "$ac_ct_CC"; then
ec6a6fbe
AK
2354 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2355$as_echo "$ac_ct_CC" >&6; }
ad6254c5 2356else
ec6a6fbe
AK
2357 { $as_echo "$as_me:$LINENO: result: no" >&5
2358$as_echo "no" >&6; }
ad6254c5
AK
2359fi
2360
7a197a62
AK
2361 if test "x$ac_ct_CC" = x; then
2362 CC=""
2363 else
2364 case $cross_compiling:$ac_tool_warned in
2365yes:)
ec6a6fbe
AK
2366{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2367$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7a197a62
AK
2368ac_tool_warned=yes ;;
2369esac
2370 CC=$ac_ct_CC
2371 fi
ad6254c5
AK
2372else
2373 CC="$ac_cv_prog_CC"
2374fi
2375
2376if test -z "$CC"; then
7a197a62
AK
2377 if test -n "$ac_tool_prefix"; then
2378 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
ad6254c5 2379set dummy ${ac_tool_prefix}cc; ac_word=$2
ec6a6fbe
AK
2380{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2381$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2382if test "${ac_cv_prog_CC+set}" = set; then
ec6a6fbe 2383 $as_echo_n "(cached) " >&6
8106cdd5
AK
2384else
2385 if test -n "$CC"; then
2386 ac_cv_prog_CC="$CC" # Let the user override the test.
2387else
ad6254c5
AK
2388as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2389for as_dir in $PATH
2390do
2391 IFS=$as_save_IFS
2392 test -z "$as_dir" && as_dir=.
2393 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2395 ac_cv_prog_CC="${ac_tool_prefix}cc"
ec6a6fbe 2396 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2397 break 2
2398 fi
2399done
2400done
7a197a62 2401IFS=$as_save_IFS
ad6254c5 2402
8106cdd5
AK
2403fi
2404fi
ad6254c5 2405CC=$ac_cv_prog_CC
8106cdd5 2406if test -n "$CC"; then
ec6a6fbe
AK
2407 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2408$as_echo "$CC" >&6; }
ad6254c5 2409else
ec6a6fbe
AK
2410 { $as_echo "$as_me:$LINENO: result: no" >&5
2411$as_echo "no" >&6; }
ad6254c5
AK
2412fi
2413
8106cdd5 2414
7a197a62 2415 fi
ad6254c5 2416fi
795ca3e5
AK
2417if test -z "$CC"; then
2418 # Extract the first word of "cc", so it can be a program name with args.
2419set dummy cc; ac_word=$2
ec6a6fbe
AK
2420{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2421$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2422if test "${ac_cv_prog_CC+set}" = set; then
ec6a6fbe 2423 $as_echo_n "(cached) " >&6
795ca3e5
AK
2424else
2425 if test -n "$CC"; then
2426 ac_cv_prog_CC="$CC" # Let the user override the test.
2427else
795ca3e5 2428 ac_prog_rejected=no
ad6254c5
AK
2429as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2430for as_dir in $PATH
2431do
2432 IFS=$as_save_IFS
2433 test -z "$as_dir" && as_dir=.
2434 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5
AK
2436 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2437 ac_prog_rejected=yes
2438 continue
2439 fi
2440 ac_cv_prog_CC="cc"
ec6a6fbe 2441 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2442 break 2
2443 fi
2444done
2445done
7a197a62 2446IFS=$as_save_IFS
ad6254c5 2447
795ca3e5
AK
2448if test $ac_prog_rejected = yes; then
2449 # We found a bogon in the path, so make sure we never use it.
2450 set dummy $ac_cv_prog_CC
2451 shift
ad6254c5 2452 if test $# != 0; then
795ca3e5
AK
2453 # We chose a different compiler from the bogus one.
2454 # However, it has the same basename, so the bogon will be chosen
2455 # first if we set CC to just the basename; use the full file name.
2456 shift
ad6254c5 2457 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
795ca3e5
AK
2458 fi
2459fi
2460fi
2461fi
ad6254c5 2462CC=$ac_cv_prog_CC
795ca3e5 2463if test -n "$CC"; then
ec6a6fbe
AK
2464 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2465$as_echo "$CC" >&6; }
795ca3e5 2466else
ec6a6fbe
AK
2467 { $as_echo "$as_me:$LINENO: result: no" >&5
2468$as_echo "no" >&6; }
795ca3e5
AK
2469fi
2470
7a197a62 2471
ad6254c5
AK
2472fi
2473if test -z "$CC"; then
2474 if test -n "$ac_tool_prefix"; then
7a197a62 2475 for ac_prog in cl.exe
ad6254c5
AK
2476 do
2477 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2478set dummy $ac_tool_prefix$ac_prog; ac_word=$2
ec6a6fbe
AK
2479{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2480$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2481if test "${ac_cv_prog_CC+set}" = set; then
ec6a6fbe 2482 $as_echo_n "(cached) " >&6
795ca3e5
AK
2483else
2484 if test -n "$CC"; then
2485 ac_cv_prog_CC="$CC" # Let the user override the test.
2486else
ad6254c5
AK
2487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2488for as_dir in $PATH
2489do
2490 IFS=$as_save_IFS
2491 test -z "$as_dir" && as_dir=.
2492 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2494 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
ec6a6fbe 2495 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2496 break 2
2497 fi
2498done
2499done
7a197a62 2500IFS=$as_save_IFS
ad6254c5 2501
795ca3e5
AK
2502fi
2503fi
ad6254c5 2504CC=$ac_cv_prog_CC
795ca3e5 2505if test -n "$CC"; then
ec6a6fbe
AK
2506 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2507$as_echo "$CC" >&6; }
795ca3e5 2508else
ec6a6fbe
AK
2509 { $as_echo "$as_me:$LINENO: result: no" >&5
2510$as_echo "no" >&6; }
795ca3e5 2511fi
ad6254c5 2512
7a197a62 2513
ad6254c5
AK
2514 test -n "$CC" && break
2515 done
2516fi
2517if test -z "$CC"; then
2518 ac_ct_CC=$CC
7a197a62 2519 for ac_prog in cl.exe
ad6254c5
AK
2520do
2521 # Extract the first word of "$ac_prog", so it can be a program name with args.
2522set dummy $ac_prog; ac_word=$2
ec6a6fbe
AK
2523{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2524$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2525if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
ec6a6fbe 2526 $as_echo_n "(cached) " >&6
ad6254c5
AK
2527else
2528 if test -n "$ac_ct_CC"; then
2529 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2530else
2531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2532for as_dir in $PATH
2533do
2534 IFS=$as_save_IFS
2535 test -z "$as_dir" && as_dir=.
2536 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2538 ac_cv_prog_ac_ct_CC="$ac_prog"
ec6a6fbe 2539 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5 2540 break 2
795ca3e5 2541 fi
ad6254c5
AK
2542done
2543done
7a197a62 2544IFS=$as_save_IFS
ad6254c5
AK
2545
2546fi
2547fi
2548ac_ct_CC=$ac_cv_prog_ac_ct_CC
2549if test -n "$ac_ct_CC"; then
ec6a6fbe
AK
2550 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2551$as_echo "$ac_ct_CC" >&6; }
ad6254c5 2552else
ec6a6fbe
AK
2553 { $as_echo "$as_me:$LINENO: result: no" >&5
2554$as_echo "no" >&6; }
795ca3e5
AK
2555fi
2556
7a197a62 2557
ad6254c5
AK
2558 test -n "$ac_ct_CC" && break
2559done
795ca3e5 2560
7a197a62
AK
2561 if test "x$ac_ct_CC" = x; then
2562 CC=""
2563 else
2564 case $cross_compiling:$ac_tool_warned in
2565yes:)
ec6a6fbe
AK
2566{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2567$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7a197a62
AK
2568ac_tool_warned=yes ;;
2569esac
2570 CC=$ac_ct_CC
2571 fi
ad6254c5
AK
2572fi
2573
2574fi
2575
2576
ec6a6fbe
AK
2577test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2578$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2579{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
ad6254c5 2580See \`config.log' for more details." >&5
ec6a6fbe 2581$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
ad6254c5 2582See \`config.log' for more details." >&2;}
ec6a6fbe 2583 { (exit 1); exit 1; }; }; }
ad6254c5
AK
2584
2585# Provide some information about the compiler.
ec6a6fbe
AK
2586$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2587set X $ac_compile
2588ac_compiler=$2
7a197a62
AK
2589{ (ac_try="$ac_compiler --version >&5"
2590case "(($ac_try" in
2591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2592 *) ac_try_echo=$ac_try;;
2593esac
ec6a6fbe
AK
2594eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2595$as_echo "$ac_try_echo") >&5
7a197a62 2596 (eval "$ac_compiler --version >&5") 2>&5
ad6254c5 2597 ac_status=$?
ec6a6fbe 2598 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2599 (exit $ac_status); }
7a197a62
AK
2600{ (ac_try="$ac_compiler -v >&5"
2601case "(($ac_try" in
2602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2603 *) ac_try_echo=$ac_try;;
2604esac
ec6a6fbe
AK
2605eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2606$as_echo "$ac_try_echo") >&5
7a197a62 2607 (eval "$ac_compiler -v >&5") 2>&5
ad6254c5 2608 ac_status=$?
ec6a6fbe 2609 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2610 (exit $ac_status); }
7a197a62
AK
2611{ (ac_try="$ac_compiler -V >&5"
2612case "(($ac_try" in
2613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2614 *) ac_try_echo=$ac_try;;
2615esac
ec6a6fbe
AK
2616eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2617$as_echo "$ac_try_echo") >&5
7a197a62 2618 (eval "$ac_compiler -V >&5") 2>&5
ad6254c5 2619 ac_status=$?
ec6a6fbe 2620 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
2621 (exit $ac_status); }
2622
2623cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2624/* confdefs.h. */
2625_ACEOF
2626cat confdefs.h >>conftest.$ac_ext
2627cat >>conftest.$ac_ext <<_ACEOF
2628/* end confdefs.h. */
2629
2630int
2631main ()
2632{
2633
2634 ;
2635 return 0;
2636}
2637_ACEOF
2638ac_clean_files_save=$ac_clean_files
ec6a6fbe 2639ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
ad6254c5
AK
2640# Try to create an executable without -o first, disregard a.out.
2641# It will help us diagnose broken compilers, and finding out an intuition
2642# of exeext.
ec6a6fbe
AK
2643{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2644$as_echo_n "checking for C compiler default output file name... " >&6; }
2645ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2646
2647# The possible output files:
2648ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2649
7a197a62
AK
2650ac_rmfiles=
2651for ac_file in $ac_files
2652do
2653 case $ac_file in
ec6a6fbe 2654 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
7a197a62
AK
2655 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2656 esac
2657done
2658rm -f $ac_rmfiles
2659
2660if { (ac_try="$ac_link_default"
2661case "(($ac_try" in
2662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2663 *) ac_try_echo=$ac_try;;
2664esac
ec6a6fbe
AK
2665eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2666$as_echo "$ac_try_echo") >&5
7a197a62 2667 (eval "$ac_link_default") 2>&5
ad6254c5 2668 ac_status=$?
ec6a6fbe 2669 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2670 (exit $ac_status); }; then
7a197a62
AK
2671 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2672# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2673# in a Makefile. We should not override ac_cv_exeext if it was cached,
2674# so that the user can short-circuit this test for compilers unknown to
2675# Autoconf.
25fbec5b 2676for ac_file in $ac_files ''
ad6254c5
AK
2677do
2678 test -f "$ac_file" || continue
2679 case $ac_file in
ec6a6fbe 2680 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
8a2fc586 2681 ;;
ad6254c5 2682 [ab].out )
8a2fc586
AK
2683 # We found the default executable, but exeext='' is most
2684 # certainly right.
2685 break;;
ad6254c5 2686 *.* )
7a197a62
AK
2687 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2688 then :; else
2689 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2690 fi
2691 # We set ac_cv_exeext here because the later test for it is not
2692 # safe: cross compilers may not add the suffix if given an `-o'
2693 # argument, so we may need to know it at that point already.
2694 # Even if this section looks crufty: it has the advantage of
2695 # actually working.
8a2fc586 2696 break;;
ad6254c5 2697 * )
8a2fc586 2698 break;;
ad6254c5
AK
2699 esac
2700done
7a197a62
AK
2701test "$ac_cv_exeext" = no && ac_cv_exeext=
2702
ad6254c5 2703else
25fbec5b
AK
2704 ac_file=''
2705fi
2706
ec6a6fbe
AK
2707{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2708$as_echo "$ac_file" >&6; }
25fbec5b 2709if test -z "$ac_file"; then
ec6a6fbe 2710 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
2711sed 's/^/| /' conftest.$ac_ext >&5
2712
ec6a6fbe
AK
2713{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2714$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2715{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
ad6254c5 2716See \`config.log' for more details." >&5
ec6a6fbe 2717$as_echo "$as_me: error: C compiler cannot create executables
ad6254c5 2718See \`config.log' for more details." >&2;}
ec6a6fbe 2719 { (exit 77); exit 77; }; }; }
ad6254c5
AK
2720fi
2721
2722ac_exeext=$ac_cv_exeext
ad6254c5 2723
7a197a62 2724# Check that the compiler produces executables we can run. If not, either
ad6254c5 2725# the compiler is broken, or we cross compile.
ec6a6fbe
AK
2726{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2727$as_echo_n "checking whether the C compiler works... " >&6; }
ad6254c5
AK
2728# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2729# If not cross compiling, check that we can run a simple program.
2730if test "$cross_compiling" != yes; then
2731 if { ac_try='./$ac_file'
7a197a62
AK
2732 { (case "(($ac_try" in
2733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2734 *) ac_try_echo=$ac_try;;
2735esac
ec6a6fbe
AK
2736eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2737$as_echo "$ac_try_echo") >&5
7a197a62 2738 (eval "$ac_try") 2>&5
ad6254c5 2739 ac_status=$?
ec6a6fbe 2740 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
2741 (exit $ac_status); }; }; then
2742 cross_compiling=no
795ca3e5 2743 else
ad6254c5
AK
2744 if test "$cross_compiling" = maybe; then
2745 cross_compiling=yes
2746 else
ec6a6fbe
AK
2747 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2748$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2749{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
ad6254c5
AK
2750If you meant to cross compile, use \`--host'.
2751See \`config.log' for more details." >&5
ec6a6fbe 2752$as_echo "$as_me: error: cannot run C compiled programs.
ad6254c5
AK
2753If you meant to cross compile, use \`--host'.
2754See \`config.log' for more details." >&2;}
ec6a6fbe 2755 { (exit 1); exit 1; }; }; }
ad6254c5 2756 fi
795ca3e5 2757 fi
80992638 2758fi
ec6a6fbe
AK
2759{ $as_echo "$as_me:$LINENO: result: yes" >&5
2760$as_echo "yes" >&6; }
ad6254c5 2761
ec6a6fbe 2762rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
ad6254c5 2763ac_clean_files=$ac_clean_files_save
7a197a62 2764# Check that the compiler produces executables we can run. If not, either
ad6254c5 2765# the compiler is broken, or we cross compile.
ec6a6fbe
AK
2766{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2767$as_echo_n "checking whether we are cross compiling... " >&6; }
2768{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2769$as_echo "$cross_compiling" >&6; }
7a197a62 2770
ec6a6fbe
AK
2771{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2772$as_echo_n "checking for suffix of executables... " >&6; }
7a197a62
AK
2773if { (ac_try="$ac_link"
2774case "(($ac_try" in
2775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2776 *) ac_try_echo=$ac_try;;
2777esac
ec6a6fbe
AK
2778eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2779$as_echo "$ac_try_echo") >&5
7a197a62 2780 (eval "$ac_link") 2>&5
ad6254c5 2781 ac_status=$?
ec6a6fbe 2782 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
2783 (exit $ac_status); }; then
2784 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2785# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2786# work properly (i.e., refer to `conftest.exe'), while it won't with
2787# `rm'.
2788for ac_file in conftest.exe conftest conftest.*; do
2789 test -f "$ac_file" || continue
2790 case $ac_file in
ec6a6fbe 2791 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
ad6254c5 2792 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
8a2fc586 2793 break;;
ad6254c5
AK
2794 * ) break;;
2795 esac
2796done
80992638 2797else
ec6a6fbe
AK
2798 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2799$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2800{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
ad6254c5 2801See \`config.log' for more details." >&5
ec6a6fbe 2802$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
ad6254c5 2803See \`config.log' for more details." >&2;}
ec6a6fbe 2804 { (exit 1); exit 1; }; }; }
ad6254c5
AK
2805fi
2806
2807rm -f conftest$ac_cv_exeext
ec6a6fbe
AK
2808{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2809$as_echo "$ac_cv_exeext" >&6; }
ad6254c5
AK
2810
2811rm -f conftest.$ac_ext
2812EXEEXT=$ac_cv_exeext
2813ac_exeext=$EXEEXT
ec6a6fbe
AK
2814{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2815$as_echo_n "checking for suffix of object files... " >&6; }
ad6254c5 2816if test "${ac_cv_objext+set}" = set; then
ec6a6fbe 2817 $as_echo_n "(cached) " >&6
795ca3e5 2818else
ad6254c5 2819 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2820/* confdefs.h. */
2821_ACEOF
2822cat confdefs.h >>conftest.$ac_ext
2823cat >>conftest.$ac_ext <<_ACEOF
2824/* end confdefs.h. */
2825
2826int
2827main ()
2828{
2829
2830 ;
2831 return 0;
2832}
2833_ACEOF
2834rm -f conftest.o conftest.obj
7a197a62
AK
2835if { (ac_try="$ac_compile"
2836case "(($ac_try" in
2837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2838 *) ac_try_echo=$ac_try;;
2839esac
ec6a6fbe
AK
2840eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2841$as_echo "$ac_try_echo") >&5
7a197a62 2842 (eval "$ac_compile") 2>&5
ad6254c5 2843 ac_status=$?
ec6a6fbe 2844 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2845 (exit $ac_status); }; then
7a197a62
AK
2846 for ac_file in conftest.o conftest.obj conftest.*; do
2847 test -f "$ac_file" || continue;
ad6254c5 2848 case $ac_file in
ec6a6fbe 2849 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
ad6254c5
AK
2850 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2851 break;;
2852 esac
2853done
2854else
ec6a6fbe 2855 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
2856sed 's/^/| /' conftest.$ac_ext >&5
2857
ec6a6fbe
AK
2858{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2859$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2860{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
ad6254c5 2861See \`config.log' for more details." >&5
ec6a6fbe 2862$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
ad6254c5 2863See \`config.log' for more details." >&2;}
ec6a6fbe 2864 { (exit 1); exit 1; }; }; }
ad6254c5
AK
2865fi
2866
2867rm -f conftest.$ac_cv_objext conftest.$ac_ext
2868fi
ec6a6fbe
AK
2869{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2870$as_echo "$ac_cv_objext" >&6; }
ad6254c5
AK
2871OBJEXT=$ac_cv_objext
2872ac_objext=$OBJEXT
ec6a6fbe
AK
2873{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2874$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
ad6254c5 2875if test "${ac_cv_c_compiler_gnu+set}" = set; then
ec6a6fbe 2876 $as_echo_n "(cached) " >&6
ad6254c5
AK
2877else
2878 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2879/* confdefs.h. */
2880_ACEOF
2881cat confdefs.h >>conftest.$ac_ext
2882cat >>conftest.$ac_ext <<_ACEOF
2883/* end confdefs.h. */
2884
2885int
2886main ()
2887{
2888#ifndef __GNUC__
2889 choke me
2890#endif
80992638 2891
ad6254c5
AK
2892 ;
2893 return 0;
2894}
2895_ACEOF
2896rm -f conftest.$ac_objext
7a197a62
AK
2897if { (ac_try="$ac_compile"
2898case "(($ac_try" in
2899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2900 *) ac_try_echo=$ac_try;;
2901esac
ec6a6fbe
AK
2902eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2903$as_echo "$ac_try_echo") >&5
7a197a62 2904 (eval "$ac_compile") 2>conftest.er1
ad6254c5 2905 ac_status=$?
8a2fc586
AK
2906 grep -v '^ *+' conftest.er1 >conftest.err
2907 rm -f conftest.er1
2908 cat conftest.err >&5
ec6a6fbe 2909 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
2910 (exit $ac_status); } && {
2911 test -z "$ac_c_werror_flag" ||
2912 test ! -s conftest.err
2913 } && test -s conftest.$ac_objext; then
ad6254c5 2914 ac_compiler_gnu=yes
80992638 2915else
ec6a6fbe 2916 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
2917sed 's/^/| /' conftest.$ac_ext >&5
2918
7a197a62 2919 ac_compiler_gnu=no
8106cdd5 2920fi
7a197a62
AK
2921
2922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 2923ac_cv_c_compiler_gnu=$ac_compiler_gnu
80992638 2924
ad6254c5 2925fi
ec6a6fbe
AK
2926{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2927$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2928if test $ac_compiler_gnu = yes; then
2929 GCC=yes
2930else
2931 GCC=
2932fi
ad6254c5
AK
2933ac_test_CFLAGS=${CFLAGS+set}
2934ac_save_CFLAGS=$CFLAGS
ec6a6fbe
AK
2935{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2936$as_echo_n "checking whether $CC accepts -g... " >&6; }
ad6254c5 2937if test "${ac_cv_prog_cc_g+set}" = set; then
ec6a6fbe 2938 $as_echo_n "(cached) " >&6
795ca3e5 2939else
7a197a62
AK
2940 ac_save_c_werror_flag=$ac_c_werror_flag
2941 ac_c_werror_flag=yes
2942 ac_cv_prog_cc_g=no
2943 CFLAGS="-g"
2944 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2945/* confdefs.h. */
2946_ACEOF
2947cat confdefs.h >>conftest.$ac_ext
2948cat >>conftest.$ac_ext <<_ACEOF
2949/* end confdefs.h. */
2950
2951int
2952main ()
2953{
2954
2955 ;
2956 return 0;
2957}
2958_ACEOF
2959rm -f conftest.$ac_objext
7a197a62
AK
2960if { (ac_try="$ac_compile"
2961case "(($ac_try" in
2962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2963 *) ac_try_echo=$ac_try;;
2964esac
ec6a6fbe
AK
2965eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2966$as_echo "$ac_try_echo") >&5
7a197a62 2967 (eval "$ac_compile") 2>conftest.er1
ad6254c5 2968 ac_status=$?
8a2fc586
AK
2969 grep -v '^ *+' conftest.er1 >conftest.err
2970 rm -f conftest.er1
2971 cat conftest.err >&5
ec6a6fbe 2972 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
2973 (exit $ac_status); } && {
2974 test -z "$ac_c_werror_flag" ||
2975 test ! -s conftest.err
2976 } && test -s conftest.$ac_objext; then
7a197a62
AK
2977 ac_cv_prog_cc_g=yes
2978else
ec6a6fbe 2979 $as_echo "$as_me: failed program was:" >&5
7a197a62
AK
2980sed 's/^/| /' conftest.$ac_ext >&5
2981
2982 CFLAGS=""
2983 cat >conftest.$ac_ext <<_ACEOF
2984/* confdefs.h. */
2985_ACEOF
2986cat confdefs.h >>conftest.$ac_ext
2987cat >>conftest.$ac_ext <<_ACEOF
2988/* end confdefs.h. */
2989
2990int
2991main ()
2992{
2993
2994 ;
2995 return 0;
2996}
2997_ACEOF
2998rm -f conftest.$ac_objext
2999if { (ac_try="$ac_compile"
3000case "(($ac_try" in
3001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3002 *) ac_try_echo=$ac_try;;
3003esac
ec6a6fbe
AK
3004eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3005$as_echo "$ac_try_echo") >&5
7a197a62 3006 (eval "$ac_compile") 2>conftest.er1
8a2fc586 3007 ac_status=$?
7a197a62
AK
3008 grep -v '^ *+' conftest.er1 >conftest.err
3009 rm -f conftest.er1
3010 cat conftest.err >&5
ec6a6fbe 3011 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
3012 (exit $ac_status); } && {
3013 test -z "$ac_c_werror_flag" ||
3014 test ! -s conftest.err
3015 } && test -s conftest.$ac_objext; then
7a197a62
AK
3016 :
3017else
ec6a6fbe 3018 $as_echo "$as_me: failed program was:" >&5
7a197a62
AK
3019sed 's/^/| /' conftest.$ac_ext >&5
3020
3021 ac_c_werror_flag=$ac_save_c_werror_flag
3022 CFLAGS="-g"
3023 cat >conftest.$ac_ext <<_ACEOF
3024/* confdefs.h. */
3025_ACEOF
3026cat confdefs.h >>conftest.$ac_ext
3027cat >>conftest.$ac_ext <<_ACEOF
3028/* end confdefs.h. */
3029
3030int
3031main ()
3032{
3033
3034 ;
3035 return 0;
3036}
3037_ACEOF
3038rm -f conftest.$ac_objext
3039if { (ac_try="$ac_compile"
3040case "(($ac_try" in
3041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3042 *) ac_try_echo=$ac_try;;
3043esac
ec6a6fbe
AK
3044eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3045$as_echo "$ac_try_echo") >&5
7a197a62 3046 (eval "$ac_compile") 2>conftest.er1
ad6254c5 3047 ac_status=$?
7a197a62
AK
3048 grep -v '^ *+' conftest.er1 >conftest.err
3049 rm -f conftest.er1
3050 cat conftest.err >&5
ec6a6fbe 3051 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
3052 (exit $ac_status); } && {
3053 test -z "$ac_c_werror_flag" ||
3054 test ! -s conftest.err
3055 } && test -s conftest.$ac_objext; then
795ca3e5
AK
3056 ac_cv_prog_cc_g=yes
3057else
ec6a6fbe 3058 $as_echo "$as_me: failed program was:" >&5
ad6254c5 3059sed 's/^/| /' conftest.$ac_ext >&5
80992638 3060
7a197a62
AK
3061
3062fi
3063
3064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3065fi
3066
3067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8106cdd5 3068fi
7a197a62
AK
3069
3070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3071 ac_c_werror_flag=$ac_save_c_werror_flag
ad6254c5 3072fi
ec6a6fbe
AK
3073{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3074$as_echo "$ac_cv_prog_cc_g" >&6; }
795ca3e5 3075if test "$ac_test_CFLAGS" = set; then
ad6254c5 3076 CFLAGS=$ac_save_CFLAGS
795ca3e5
AK
3077elif test $ac_cv_prog_cc_g = yes; then
3078 if test "$GCC" = yes; then
3079 CFLAGS="-g -O2"
3080 else
3081 CFLAGS="-g"
3082 fi
3083else
3084 if test "$GCC" = yes; then
3085 CFLAGS="-O2"
3086 else
3087 CFLAGS=
3088 fi
3089fi
ec6a6fbe
AK
3090{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3091$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
7a197a62 3092if test "${ac_cv_prog_cc_c89+set}" = set; then
ec6a6fbe 3093 $as_echo_n "(cached) " >&6
ad6254c5 3094else
7a197a62 3095 ac_cv_prog_cc_c89=no
ad6254c5
AK
3096ac_save_CC=$CC
3097cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3098/* confdefs.h. */
3099_ACEOF
3100cat confdefs.h >>conftest.$ac_ext
3101cat >>conftest.$ac_ext <<_ACEOF
3102/* end confdefs.h. */
3103#include <stdarg.h>
3104#include <stdio.h>
3105#include <sys/types.h>
3106#include <sys/stat.h>
3107/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3108struct buf { int x; };
3109FILE * (*rcsopen) (struct buf *, struct stat *, int);
3110static char *e (p, i)
3111 char **p;
3112 int i;
3113{
3114 return p[i];
3115}
3116static char *f (char * (*g) (char **, int), char **p, ...)
3117{
3118 char *s;
3119 va_list v;
3120 va_start (v,p);
3121 s = g (p, va_arg (v,int));
3122 va_end (v);
3123 return s;
3124}
8a2fc586
AK
3125
3126/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3127 function prototypes and stuff, but not '\xHH' hex character constants.
3128 These don't provoke an error unfortunately, instead are silently treated
7a197a62 3129 as 'x'. The following induces an error, until -std is added to get
8a2fc586
AK
3130 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3131 array size at least. It's necessary to write '\x00'==0 to get something
7a197a62 3132 that's true only with -std. */
8a2fc586
AK
3133int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3134
7a197a62
AK
3135/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3136 inside strings and character constants. */
3137#define FOO(x) 'x'
3138int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3139
ad6254c5
AK
3140int test (int i, double x);
3141struct s1 {int (*f) (int a);};
3142struct s2 {int (*f) (double a);};
3143int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3144int argc;
3145char **argv;
3146int
3147main ()
3148{
3149return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3150 ;
3151 return 0;
3152}
3153_ACEOF
7a197a62
AK
3154for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3155 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
ad6254c5
AK
3156do
3157 CC="$ac_save_CC $ac_arg"
3158 rm -f conftest.$ac_objext
7a197a62
AK
3159if { (ac_try="$ac_compile"
3160case "(($ac_try" in
3161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3162 *) ac_try_echo=$ac_try;;
3163esac
ec6a6fbe
AK
3164eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3165$as_echo "$ac_try_echo") >&5
7a197a62 3166 (eval "$ac_compile") 2>conftest.er1
ad6254c5 3167 ac_status=$?
8a2fc586
AK
3168 grep -v '^ *+' conftest.er1 >conftest.err
3169 rm -f conftest.er1
3170 cat conftest.err >&5
ec6a6fbe 3171 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
3172 (exit $ac_status); } && {
3173 test -z "$ac_c_werror_flag" ||
3174 test ! -s conftest.err
3175 } && test -s conftest.$ac_objext; then
7a197a62 3176 ac_cv_prog_cc_c89=$ac_arg
ad6254c5 3177else
ec6a6fbe 3178 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
3179sed 's/^/| /' conftest.$ac_ext >&5
3180
7a197a62 3181
ad6254c5 3182fi
7a197a62
AK
3183
3184rm -f core conftest.err conftest.$ac_objext
3185 test "x$ac_cv_prog_cc_c89" != "xno" && break
ad6254c5 3186done
7a197a62 3187rm -f conftest.$ac_ext
ad6254c5
AK
3188CC=$ac_save_CC
3189
3190fi
7a197a62
AK
3191# AC_CACHE_VAL
3192case "x$ac_cv_prog_cc_c89" in
3193 x)
ec6a6fbe
AK
3194 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3195$as_echo "none needed" >&6; } ;;
7a197a62 3196 xno)
ec6a6fbe
AK
3197 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3198$as_echo "unsupported" >&6; } ;;
ad6254c5 3199 *)
7a197a62 3200 CC="$CC $ac_cv_prog_cc_c89"
ec6a6fbe
AK
3201 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3202$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
ad6254c5
AK
3203esac
3204
ad6254c5 3205
ad6254c5
AK
3206ac_ext=c
3207ac_cpp='$CPP $CPPFLAGS'
3208ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3209ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3210ac_compiler_gnu=$ac_cv_c_compiler_gnu
795ca3e5 3211
d0191583
JM
3212
3213
3214ac_ext=c
3215ac_cpp='$CPP $CPPFLAGS'
3216ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3217ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3218ac_compiler_gnu=$ac_cv_c_compiler_gnu
ec6a6fbe
AK
3219{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3220$as_echo_n "checking how to run the C preprocessor... " >&6; }
d0191583
JM
3221# On Suns, sometimes $CPP names a directory.
3222if test -n "$CPP" && test -d "$CPP"; then
3223 CPP=
3224fi
3225if test -z "$CPP"; then
3226 if test "${ac_cv_prog_CPP+set}" = set; then
ec6a6fbe 3227 $as_echo_n "(cached) " >&6
ad6254c5 3228else
d0191583
JM
3229 # Double quotes because CPP needs to be expanded
3230 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3231 do
3232 ac_preproc_ok=false
3233for ac_c_preproc_warn_flag in '' yes
ad6254c5 3234do
d0191583
JM
3235 # Use a header file that comes with gcc, so configuring glibc
3236 # with a fresh cross-compiler works.
3237 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3238 # <limits.h> exists even on freestanding compilers.
3239 # On the NeXT, cc -E runs the code through the compiler's parser,
3240 # not just through cpp. "Syntax error" is here to catch this case.
3241 cat >conftest.$ac_ext <<_ACEOF
3242/* confdefs.h. */
3243_ACEOF
3244cat confdefs.h >>conftest.$ac_ext
3245cat >>conftest.$ac_ext <<_ACEOF
3246/* end confdefs.h. */
3247#ifdef __STDC__
3248# include <limits.h>
3249#else
3250# include <assert.h>
3251#endif
3252 Syntax error
3253_ACEOF
3254if { (ac_try="$ac_cpp conftest.$ac_ext"
3255case "(($ac_try" in
3256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3257 *) ac_try_echo=$ac_try;;
ad6254c5 3258esac
ec6a6fbe
AK
3259eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3260$as_echo "$ac_try_echo") >&5
d0191583
JM
3261 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3262 ac_status=$?
3263 grep -v '^ *+' conftest.er1 >conftest.err
3264 rm -f conftest.er1
3265 cat conftest.err >&5
ec6a6fbe 3266 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3267 (exit $ac_status); } >/dev/null && {
3268 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3269 test ! -s conftest.err
3270 }; then
3271 :
3272else
ec6a6fbe 3273 $as_echo "$as_me: failed program was:" >&5
d0191583 3274sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 3275
d0191583
JM
3276 # Broken: fails on valid input.
3277continue
795ca3e5 3278fi
795ca3e5 3279
d0191583 3280rm -f conftest.err conftest.$ac_ext
795ca3e5 3281
d0191583
JM
3282 # OK, works on sane cases. Now check whether nonexistent headers
3283 # can be detected and how.
3284 cat >conftest.$ac_ext <<_ACEOF
3285/* confdefs.h. */
3286_ACEOF
3287cat confdefs.h >>conftest.$ac_ext
3288cat >>conftest.$ac_ext <<_ACEOF
3289/* end confdefs.h. */
3290#include <ac_nonexistent.h>
3291_ACEOF
3292if { (ac_try="$ac_cpp conftest.$ac_ext"
3293case "(($ac_try" in
3294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3295 *) ac_try_echo=$ac_try;;
3296esac
ec6a6fbe
AK
3297eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3298$as_echo "$ac_try_echo") >&5
d0191583
JM
3299 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3300 ac_status=$?
3301 grep -v '^ *+' conftest.er1 >conftest.err
3302 rm -f conftest.er1
3303 cat conftest.err >&5
ec6a6fbe 3304 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3305 (exit $ac_status); } >/dev/null && {
3306 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3307 test ! -s conftest.err
3308 }; then
3309 # Broken: success on invalid input.
3310continue
3311else
ec6a6fbe 3312 $as_echo "$as_me: failed program was:" >&5
d0191583 3313sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 3314
d0191583
JM
3315 # Passes both tests.
3316ac_preproc_ok=:
3317break
3318fi
795ca3e5 3319
d0191583
JM
3320rm -f conftest.err conftest.$ac_ext
3321
3322done
3323# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3324rm -f conftest.err conftest.$ac_ext
3325if $ac_preproc_ok; then
3326 break
795ca3e5
AK
3327fi
3328
d0191583
JM
3329 done
3330 ac_cv_prog_CPP=$CPP
3331
3332fi
3333 CPP=$ac_cv_prog_CPP
795ca3e5 3334else
d0191583
JM
3335 ac_cv_prog_CPP=$CPP
3336fi
ec6a6fbe
AK
3337{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
3338$as_echo "$CPP" >&6; }
d0191583
JM
3339ac_preproc_ok=false
3340for ac_c_preproc_warn_flag in '' yes
3341do
3342 # Use a header file that comes with gcc, so configuring glibc
3343 # with a fresh cross-compiler works.
3344 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3345 # <limits.h> exists even on freestanding compilers.
3346 # On the NeXT, cc -E runs the code through the compiler's parser,
3347 # not just through cpp. "Syntax error" is here to catch this case.
3348 cat >conftest.$ac_ext <<_ACEOF
3349/* confdefs.h. */
ad6254c5 3350_ACEOF
d0191583
JM
3351cat confdefs.h >>conftest.$ac_ext
3352cat >>conftest.$ac_ext <<_ACEOF
3353/* end confdefs.h. */
3354#ifdef __STDC__
3355# include <limits.h>
3356#else
3357# include <assert.h>
3358#endif
3359 Syntax error
3360_ACEOF
3361if { (ac_try="$ac_cpp conftest.$ac_ext"
3362case "(($ac_try" in
3363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3364 *) ac_try_echo=$ac_try;;
7a197a62 3365esac
ec6a6fbe
AK
3366eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3367$as_echo "$ac_try_echo") >&5
d0191583
JM
3368 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3369 ac_status=$?
3370 grep -v '^ *+' conftest.er1 >conftest.err
3371 rm -f conftest.er1
3372 cat conftest.err >&5
ec6a6fbe 3373 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3374 (exit $ac_status); } >/dev/null && {
3375 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3376 test ! -s conftest.err
3377 }; then
3378 :
795ca3e5 3379else
ec6a6fbe 3380 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
3381sed 's/^/| /' conftest.$ac_ext >&5
3382
3383 # Broken: fails on valid input.
3384continue
795ca3e5
AK
3385fi
3386
d0191583
JM
3387rm -f conftest.err conftest.$ac_ext
3388
3389 # OK, works on sane cases. Now check whether nonexistent headers
3390 # can be detected and how.
3391 cat >conftest.$ac_ext <<_ACEOF
3392/* confdefs.h. */
3393_ACEOF
3394cat confdefs.h >>conftest.$ac_ext
3395cat >>conftest.$ac_ext <<_ACEOF
3396/* end confdefs.h. */
3397#include <ac_nonexistent.h>
3398_ACEOF
3399if { (ac_try="$ac_cpp conftest.$ac_ext"
3400case "(($ac_try" in
3401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3402 *) ac_try_echo=$ac_try;;
3403esac
ec6a6fbe
AK
3404eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3405$as_echo "$ac_try_echo") >&5
d0191583
JM
3406 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3407 ac_status=$?
3408 grep -v '^ *+' conftest.er1 >conftest.err
3409 rm -f conftest.er1
3410 cat conftest.err >&5
ec6a6fbe 3411 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3412 (exit $ac_status); } >/dev/null && {
3413 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3414 test ! -s conftest.err
3415 }; then
3416 # Broken: success on invalid input.
3417continue
795ca3e5 3418else
ec6a6fbe 3419 $as_echo "$as_me: failed program was:" >&5
d0191583 3420sed 's/^/| /' conftest.$ac_ext >&5
ad6254c5 3421
d0191583
JM
3422 # Passes both tests.
3423ac_preproc_ok=:
3424break
795ca3e5 3425fi
d0191583
JM
3426
3427rm -f conftest.err conftest.$ac_ext
3428
3429done
3430# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3431rm -f conftest.err conftest.$ac_ext
3432if $ac_preproc_ok; then
3433 :
8106cdd5 3434else
ec6a6fbe
AK
3435 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3436$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3437{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
d0191583 3438See \`config.log' for more details." >&5
ec6a6fbe 3439$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
d0191583 3440See \`config.log' for more details." >&2;}
ec6a6fbe 3441 { (exit 1); exit 1; }; }; }
8106cdd5
AK
3442fi
3443
d0191583
JM
3444ac_ext=c
3445ac_cpp='$CPP $CPPFLAGS'
3446ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3447ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3448ac_compiler_gnu=$ac_cv_c_compiler_gnu
3449
7a197a62 3450
ec6a6fbe
AK
3451{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3452$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5556819a 3453if test "${ac_cv_path_GREP+set}" = set; then
ec6a6fbe 3454 $as_echo_n "(cached) " >&6
ad6254c5 3455else
ec6a6fbe 3456 if test -z "$GREP"; then
d0191583 3457 ac_path_GREP_found=false
ec6a6fbe
AK
3458 # Loop through the user's path and test for each of PROGNAME-LIST
3459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
d0191583 3460for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
ad6254c5
AK
3461do
3462 IFS=$as_save_IFS
3463 test -z "$as_dir" && as_dir=.
d0191583 3464 for ac_prog in grep ggrep; do
ec6a6fbe
AK
3465 for ac_exec_ext in '' $ac_executable_extensions; do
3466 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3467 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3468# Check for GNU ac_path_GREP and select it if it is found.
d0191583
JM
3469 # Check for GNU $ac_path_GREP
3470case `"$ac_path_GREP" --version 2>&1` in
3471*GNU*)
3472 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3473*)
3474 ac_count=0
ec6a6fbe 3475 $as_echo_n 0123456789 >"conftest.in"
d0191583
JM
3476 while :
3477 do
3478 cat "conftest.in" "conftest.in" >"conftest.tmp"
3479 mv "conftest.tmp" "conftest.in"
3480 cp "conftest.in" "conftest.nl"
ec6a6fbe 3481 $as_echo 'GREP' >> "conftest.nl"
d0191583
JM
3482 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3483 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3484 ac_count=`expr $ac_count + 1`
3485 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3486 # Best one so far, save it but keep looking for a better one
3487 ac_cv_path_GREP="$ac_path_GREP"
3488 ac_path_GREP_max=$ac_count
3489 fi
3490 # 10*(2^10) chars as input seems more than enough
3491 test $ac_count -gt 10 && break
3492 done
3493 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3494esac
3495
ec6a6fbe
AK
3496 $ac_path_GREP_found && break 3
3497 done
d0191583 3498 done
ad6254c5 3499done
7a197a62 3500IFS=$as_save_IFS
ec6a6fbe
AK
3501 if test -z "$ac_cv_path_GREP"; then
3502 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3503$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
d0191583 3504 { (exit 1); exit 1; }; }
ec6a6fbe 3505 fi
80992638 3506else
d0191583 3507 ac_cv_path_GREP=$GREP
8106cdd5 3508fi
8106cdd5 3509
80992638 3510fi
ec6a6fbe
AK
3511{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3512$as_echo "$ac_cv_path_GREP" >&6; }
d0191583 3513 GREP="$ac_cv_path_GREP"
795ca3e5 3514
d0191583 3515
ec6a6fbe
AK
3516{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
3517$as_echo_n "checking for egrep... " >&6; }
d0191583 3518if test "${ac_cv_path_EGREP+set}" = set; then
ec6a6fbe 3519 $as_echo_n "(cached) " >&6
8a2fc586 3520else
d0191583
JM
3521 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3522 then ac_cv_path_EGREP="$GREP -E"
3523 else
ec6a6fbe 3524 if test -z "$EGREP"; then
d0191583 3525 ac_path_EGREP_found=false
ec6a6fbe
AK
3526 # Loop through the user's path and test for each of PROGNAME-LIST
3527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
d0191583 3528for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8a2fc586
AK
3529do
3530 IFS=$as_save_IFS
3531 test -z "$as_dir" && as_dir=.
d0191583 3532 for ac_prog in egrep; do
ec6a6fbe
AK
3533 for ac_exec_ext in '' $ac_executable_extensions; do
3534 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3535 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3536# Check for GNU ac_path_EGREP and select it if it is found.
d0191583
JM
3537 # Check for GNU $ac_path_EGREP
3538case `"$ac_path_EGREP" --version 2>&1` in
3539*GNU*)
3540 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3541*)
3542 ac_count=0
ec6a6fbe 3543 $as_echo_n 0123456789 >"conftest.in"
d0191583
JM
3544 while :
3545 do
3546 cat "conftest.in" "conftest.in" >"conftest.tmp"
3547 mv "conftest.tmp" "conftest.in"
3548 cp "conftest.in" "conftest.nl"
ec6a6fbe 3549 $as_echo 'EGREP' >> "conftest.nl"
d0191583
JM
3550 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3551 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3552 ac_count=`expr $ac_count + 1`
3553 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3554 # Best one so far, save it but keep looking for a better one
3555 ac_cv_path_EGREP="$ac_path_EGREP"
3556 ac_path_EGREP_max=$ac_count
3557 fi
3558 # 10*(2^10) chars as input seems more than enough
3559 test $ac_count -gt 10 && break
3560 done
3561 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8a2fc586 3562esac
8a2fc586 3563
ec6a6fbe
AK
3564 $ac_path_EGREP_found && break 3
3565 done
d0191583 3566 done
8a2fc586 3567done
7a197a62 3568IFS=$as_save_IFS
ec6a6fbe
AK
3569 if test -z "$ac_cv_path_EGREP"; then
3570 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3571$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
d0191583 3572 { (exit 1); exit 1; }; }
ec6a6fbe 3573 fi
d0191583
JM
3574else
3575 ac_cv_path_EGREP=$EGREP
3576fi
ad6254c5 3577
d0191583
JM
3578 fi
3579fi
ec6a6fbe
AK
3580{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3581$as_echo "$ac_cv_path_EGREP" >&6; }
d0191583 3582 EGREP="$ac_cv_path_EGREP"
ad6254c5
AK
3583
3584
d0191583 3585if test $ac_cv_c_compiler_gnu = yes; then
ec6a6fbe
AK
3586 { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3587$as_echo_n "checking whether $CC needs -traditional... " >&6; }
d0191583 3588if test "${ac_cv_prog_gcc_traditional+set}" = set; then
ec6a6fbe 3589 $as_echo_n "(cached) " >&6
8106cdd5 3590else
d0191583 3591 ac_pattern="Autoconf.*'x'"
ad6254c5 3592 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3593/* confdefs.h. */
3594_ACEOF
3595cat confdefs.h >>conftest.$ac_ext
3596cat >>conftest.$ac_ext <<_ACEOF
3597/* end confdefs.h. */
d0191583
JM
3598#include <sgtty.h>
3599Autoconf TIOCGETP
ad6254c5 3600_ACEOF
d0191583
JM
3601if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3602 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3603 ac_cv_prog_gcc_traditional=yes
8106cdd5 3604else
d0191583 3605 ac_cv_prog_gcc_traditional=no
80992638 3606fi
d0191583 3607rm -f conftest*
ad6254c5 3608
8106cdd5 3609
d0191583
JM
3610 if test $ac_cv_prog_gcc_traditional = no; then
3611 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3612/* confdefs.h. */
3613_ACEOF
3614cat confdefs.h >>conftest.$ac_ext
3615cat >>conftest.$ac_ext <<_ACEOF
3616/* end confdefs.h. */
d0191583
JM
3617#include <termio.h>
3618Autoconf TCGETA
ad6254c5 3619_ACEOF
d0191583
JM
3620if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3621 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3622 ac_cv_prog_gcc_traditional=yes
7a197a62 3623fi
d0191583 3624rm -f conftest*
795ca3e5 3625
d0191583 3626 fi
795ca3e5 3627fi
ec6a6fbe
AK
3628{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3629$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
d0191583
JM
3630 if test $ac_cv_prog_gcc_traditional = yes; then
3631 CC="$CC -traditional"
3632 fi
795ca3e5
AK
3633fi
3634
d0191583
JM
3635# Find a good install program. We prefer a C program (faster),
3636# so one script is as good as another. But avoid the broken or
3637# incompatible versions:
3638# SysV /etc/install, /usr/sbin/install
3639# SunOS /usr/etc/install
3640# IRIX /sbin/install
3641# AIX /bin/install
3642# AmigaOS /C/install, which installs bootblocks on floppy discs
3643# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3644# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3645# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3646# OS/2's system install, which has a completely different semantic
3647# ./install, which can be erroneously created by make from ./install.sh.
ec6a6fbe
AK
3648# Reject install programs that cannot install multiple files.
3649{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3650$as_echo_n "checking for a BSD-compatible install... " >&6; }
d0191583
JM
3651if test -z "$INSTALL"; then
3652if test "${ac_cv_path_install+set}" = set; then
ec6a6fbe 3653 $as_echo_n "(cached) " >&6
ad6254c5 3654else
d0191583
JM
3655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3656for as_dir in $PATH
3657do
3658 IFS=$as_save_IFS
3659 test -z "$as_dir" && as_dir=.
3660 # Account for people who put trailing slashes in PATH elements.
3661case $as_dir/ in
3662 ./ | .// | /cC/* | \
3663 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3664 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3665 /usr/ucb/* ) ;;
3666 *)
3667 # OSF1 and SCO ODT 3.0 have their own names for install.
3668 # Don't use installbsd from OSF since it installs stuff as root
3669 # by default.
3670 for ac_prog in ginstall scoinst install; do
3671 for ac_exec_ext in '' $ac_executable_extensions; do
3672 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3673 if test $ac_prog = install &&
3674 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3675 # AIX install. It has an incompatible calling convention.
3676 :
3677 elif test $ac_prog = install &&
3678 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3679 # program-specific install script used by HP pwplus--don't use.
3680 :
3681 else
ec6a6fbe
AK
3682 rm -rf conftest.one conftest.two conftest.dir
3683 echo one > conftest.one
3684 echo two > conftest.two
3685 mkdir conftest.dir
3686 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3687 test -s conftest.one && test -s conftest.two &&
3688 test -s conftest.dir/conftest.one &&
3689 test -s conftest.dir/conftest.two
3690 then
3691 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3692 break 3
3693 fi
d0191583
JM
3694 fi
3695 fi
3696 done
3697 done
3698 ;;
3699esac
ec6a6fbe 3700
d0191583
JM
3701done
3702IFS=$as_save_IFS
80992638 3703
ec6a6fbe 3704rm -rf conftest.one conftest.two conftest.dir
d0191583
JM
3705
3706fi
3707 if test "${ac_cv_path_install+set}" = set; then
3708 INSTALL=$ac_cv_path_install
7a197a62 3709 else
d0191583
JM
3710 # As a last resort, use the slow shell script. Don't cache a
3711 # value for INSTALL within a source directory, because that will
3712 # break other packages using the cache if that directory is
3713 # removed, or if the value is a relative name.
3714 INSTALL=$ac_install_sh
7a197a62 3715 fi
d0191583 3716fi
ec6a6fbe
AK
3717{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3718$as_echo "$INSTALL" >&6; }
ad6254c5 3719
d0191583
JM
3720# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3721# It thinks the first close brace ends the variable substitution.
3722test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
ad6254c5 3723
d0191583 3724test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
80992638 3725
d0191583
JM
3726test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3727
ec6a6fbe
AK
3728{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
3729$as_echo_n "checking whether ln -s works... " >&6; }
d0191583
JM
3730LN_S=$as_ln_s
3731if test "$LN_S" = "ln -s"; then
ec6a6fbe
AK
3732 { $as_echo "$as_me:$LINENO: result: yes" >&5
3733$as_echo "yes" >&6; }
d0191583 3734else
ec6a6fbe
AK
3735 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3736$as_echo "no, using $LN_S" >&6; }
795ca3e5 3737fi
d0191583 3738
ec6a6fbe
AK
3739{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3740$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3741set x ${MAKE-make}
3742ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
d0191583 3743if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 3744 $as_echo_n "(cached) " >&6
7a197a62 3745else
d0191583
JM
3746 cat >conftest.make <<\_ACEOF
3747SHELL = /bin/sh
3748all:
3749 @echo '@@@%%%=$(MAKE)=@@@%%%'
3750_ACEOF
3751# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3752case `${MAKE-make} -f conftest.make 2>/dev/null` in
3753 *@@@%%%=?*=@@@%%%*)
3754 eval ac_cv_prog_make_${ac_make}_set=yes;;
3755 *)
3756 eval ac_cv_prog_make_${ac_make}_set=no;;
3757esac
3758rm -f conftest.make
ad6254c5 3759fi
d0191583 3760if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
ec6a6fbe
AK
3761 { $as_echo "$as_me:$LINENO: result: yes" >&5
3762$as_echo "yes" >&6; }
d0191583
JM
3763 SET_MAKE=
3764else
ec6a6fbe
AK
3765 { $as_echo "$as_me:$LINENO: result: no" >&5
3766$as_echo "no" >&6; }
d0191583 3767 SET_MAKE="MAKE=${MAKE-make}"
795ca3e5 3768fi
8106cdd5 3769
ec6a6fbe
AK
3770{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
3771$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
5556819a
AK
3772if test -z "$MKDIR_P"; then
3773 if test "${ac_cv_path_mkdir+set}" = set; then
ec6a6fbe 3774 $as_echo_n "(cached) " >&6
5556819a
AK
3775else
3776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3777for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3778do
3779 IFS=$as_save_IFS
3780 test -z "$as_dir" && as_dir=.
3781 for ac_prog in mkdir gmkdir; do
3782 for ac_exec_ext in '' $ac_executable_extensions; do
3783 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3784 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3785 'mkdir (GNU coreutils) '* | \
3786 'mkdir (coreutils) '* | \
3787 'mkdir (fileutils) '4.1*)
3788 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3789 break 3;;
3790 esac
3791 done
3792 done
3793done
3794IFS=$as_save_IFS
3795
3796fi
3797
3798 if test "${ac_cv_path_mkdir+set}" = set; then
3799 MKDIR_P="$ac_cv_path_mkdir -p"
3800 else
3801 # As a last resort, use the slow shell script. Don't cache a
3802 # value for MKDIR_P within a source directory, because that will
3803 # break other packages using the cache if that directory is
3804 # removed, or if the value is a relative name.
3805 test -d ./--version && rmdir ./--version
3806 MKDIR_P="$ac_install_sh -d"
3807 fi
3808fi
ec6a6fbe
AK
3809{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
3810$as_echo "$MKDIR_P" >&6; }
5556819a 3811
d0191583
JM
3812if test -n "$ac_tool_prefix"; then
3813 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3814set dummy ${ac_tool_prefix}ranlib; ac_word=$2
ec6a6fbe
AK
3815{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3816$as_echo_n "checking for $ac_word... " >&6; }
d0191583 3817if test "${ac_cv_prog_RANLIB+set}" = set; then
ec6a6fbe 3818 $as_echo_n "(cached) " >&6
d0191583
JM
3819else
3820 if test -n "$RANLIB"; then
3821 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3822else
3823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3824for as_dir in $PATH
3825do
3826 IFS=$as_save_IFS
3827 test -z "$as_dir" && as_dir=.
3828 for ac_exec_ext in '' $ac_executable_extensions; do
3829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3830 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
ec6a6fbe 3831 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
3832 break 2
3833 fi
3834done
3835done
3836IFS=$as_save_IFS
8106cdd5 3837
795ca3e5 3838fi
d0191583
JM
3839fi
3840RANLIB=$ac_cv_prog_RANLIB
3841if test -n "$RANLIB"; then
ec6a6fbe
AK
3842 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
3843$as_echo "$RANLIB" >&6; }
d0191583 3844else
ec6a6fbe
AK
3845 { $as_echo "$as_me:$LINENO: result: no" >&5
3846$as_echo "no" >&6; }
d0191583
JM
3847fi
3848
8106cdd5 3849
ad6254c5 3850fi
d0191583
JM
3851if test -z "$ac_cv_prog_RANLIB"; then
3852 ac_ct_RANLIB=$RANLIB
3853 # Extract the first word of "ranlib", so it can be a program name with args.
3854set dummy ranlib; ac_word=$2
ec6a6fbe
AK
3855{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3856$as_echo_n "checking for $ac_word... " >&6; }
d0191583 3857if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
ec6a6fbe 3858 $as_echo_n "(cached) " >&6
ad6254c5 3859else
d0191583
JM
3860 if test -n "$ac_ct_RANLIB"; then
3861 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3862else
3863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3864for as_dir in $PATH
8106cdd5 3865do
d0191583
JM
3866 IFS=$as_save_IFS
3867 test -z "$as_dir" && as_dir=.
3868 for ac_exec_ext in '' $ac_executable_extensions; do
3869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3870 ac_cv_prog_ac_ct_RANLIB="ranlib"
ec6a6fbe 3871 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
3872 break 2
3873 fi
3874done
3875done
3876IFS=$as_save_IFS
3877
3878fi
3879fi
3880ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3881if test -n "$ac_ct_RANLIB"; then
ec6a6fbe
AK
3882 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3883$as_echo "$ac_ct_RANLIB" >&6; }
ad6254c5 3884else
ec6a6fbe
AK
3885 { $as_echo "$as_me:$LINENO: result: no" >&5
3886$as_echo "no" >&6; }
d0191583 3887fi
ad6254c5 3888
d0191583
JM
3889 if test "x$ac_ct_RANLIB" = x; then
3890 RANLIB=":"
3891 else
3892 case $cross_compiling:$ac_tool_warned in
3893yes:)
ec6a6fbe
AK
3894{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3895$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
d0191583
JM
3896ac_tool_warned=yes ;;
3897esac
3898 RANLIB=$ac_ct_RANLIB
3899 fi
3900else
3901 RANLIB="$ac_cv_prog_RANLIB"
ad6254c5 3902fi
7a197a62 3903
d0191583
JM
3904# Extract the first word of "cflow", so it can be a program name with args.
3905set dummy cflow; ac_word=$2
ec6a6fbe
AK
3906{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3907$as_echo_n "checking for $ac_word... " >&6; }
d0191583 3908if test "${ac_cv_path_CFLOW_CMD+set}" = set; then
ec6a6fbe 3909 $as_echo_n "(cached) " >&6
d0191583
JM
3910else
3911 case $CFLOW_CMD in
3912 [\\/]* | ?:[\\/]*)
3913 ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path.
3914 ;;
3915 *)
3916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3917for as_dir in $PATH
3918do
3919 IFS=$as_save_IFS
3920 test -z "$as_dir" && as_dir=.
3921 for ac_exec_ext in '' $ac_executable_extensions; do
3922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3923 ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 3924 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
3925 break 2
3926 fi
3927done
3928done
3929IFS=$as_save_IFS
ad6254c5 3930
d0191583 3931 ;;
7a197a62 3932esac
d0191583
JM
3933fi
3934CFLOW_CMD=$ac_cv_path_CFLOW_CMD
3935if test -n "$CFLOW_CMD"; then
ec6a6fbe
AK
3936 { $as_echo "$as_me:$LINENO: result: $CFLOW_CMD" >&5
3937$as_echo "$CFLOW_CMD" >&6; }
80992638 3938else
ec6a6fbe
AK
3939 { $as_echo "$as_me:$LINENO: result: no" >&5
3940$as_echo "no" >&6; }
795ca3e5 3941fi
7a197a62 3942
ad6254c5 3943
d0191583
JM
3944# Extract the first word of "cscope", so it can be a program name with args.
3945set dummy cscope; ac_word=$2
ec6a6fbe
AK
3946{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3947$as_echo_n "checking for $ac_word... " >&6; }
d0191583 3948if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then
ec6a6fbe 3949 $as_echo_n "(cached) " >&6
d0191583
JM
3950else
3951 case $CSCOPE_CMD in
3952 [\\/]* | ?:[\\/]*)
3953 ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path.
3954 ;;
3955 *)
3956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3957for as_dir in $PATH
3958do
3959 IFS=$as_save_IFS
3960 test -z "$as_dir" && as_dir=.
3961 for ac_exec_ext in '' $ac_executable_extensions; do
3962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3963 ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 3964 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
3965 break 2
3966 fi
795ca3e5 3967done
d0191583
JM
3968done
3969IFS=$as_save_IFS
795ca3e5 3970
d0191583
JM
3971 ;;
3972esac
ad6254c5 3973fi
d0191583
JM
3974CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD
3975if test -n "$CSCOPE_CMD"; then
ec6a6fbe
AK
3976 { $as_echo "$as_me:$LINENO: result: $CSCOPE_CMD" >&5
3977$as_echo "$CSCOPE_CMD" >&6; }
795ca3e5 3978else
ec6a6fbe
AK
3979 { $as_echo "$as_me:$LINENO: result: no" >&5
3980$as_echo "no" >&6; }
795ca3e5 3981fi
ad6254c5 3982
7a197a62 3983
ad6254c5 3984
d0191583
JM
3985################################################################################
3986
3987
3988
3989
3990
3991ac_header_dirent=no
3992for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
ec6a6fbe
AK
3993 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
3994{ $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
3995$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
d0191583 3996if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 3997 $as_echo_n "(cached) " >&6
d0191583 3998else
ad6254c5 3999 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4000/* confdefs.h. */
4001_ACEOF
4002cat confdefs.h >>conftest.$ac_ext
4003cat >>conftest.$ac_ext <<_ACEOF
4004/* end confdefs.h. */
d0191583
JM
4005#include <sys/types.h>
4006#include <$ac_hdr>
4007
4008int
4009main ()
4010{
4011if ((DIR *) 0)
4012return 0;
4013 ;
4014 return 0;
4015}
ad6254c5 4016_ACEOF
d0191583
JM
4017rm -f conftest.$ac_objext
4018if { (ac_try="$ac_compile"
7a197a62
AK
4019case "(($ac_try" in
4020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4021 *) ac_try_echo=$ac_try;;
4022esac
ec6a6fbe
AK
4023eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4024$as_echo "$ac_try_echo") >&5
d0191583 4025 (eval "$ac_compile") 2>conftest.er1
ad6254c5
AK
4026 ac_status=$?
4027 grep -v '^ *+' conftest.er1 >conftest.err
4028 rm -f conftest.er1
4029 cat conftest.err >&5
ec6a6fbe 4030 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4031 (exit $ac_status); } && {
4032 test -z "$ac_c_werror_flag" ||
25fbec5b 4033 test ! -s conftest.err
d0191583
JM
4034 } && test -s conftest.$ac_objext; then
4035 eval "$as_ac_Header=yes"
ad6254c5 4036else
ec6a6fbe 4037 $as_echo "$as_me: failed program was:" >&5
ad6254c5 4038sed 's/^/| /' conftest.$ac_ext >&5
8106cdd5 4039
d0191583 4040 eval "$as_ac_Header=no"
795ca3e5 4041fi
7a197a62 4042
d0191583 4043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
795ca3e5 4044fi
ec6a6fbe
AK
4045ac_res=`eval 'as_val=${'$as_ac_Header'}
4046 $as_echo "$as_val"'`
4047 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4048$as_echo "$ac_res" >&6; }
4049as_val=`eval 'as_val=${'$as_ac_Header'}
4050 $as_echo "$as_val"'`
4051 if test "x$as_val" = x""yes; then
d0191583 4052 cat >>confdefs.h <<_ACEOF
ec6a6fbe 4053#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
d0191583 4054_ACEOF
795ca3e5 4055
d0191583
JM
4056ac_header_dirent=$ac_hdr; break
4057fi
ad6254c5 4058
d0191583
JM
4059done
4060# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4061if test $ac_header_dirent = dirent.h; then
ec6a6fbe
AK
4062 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
4063$as_echo_n "checking for library containing opendir... " >&6; }
d0191583 4064if test "${ac_cv_search_opendir+set}" = set; then
ec6a6fbe 4065 $as_echo_n "(cached) " >&6
ad6254c5 4066else
d0191583
JM
4067 ac_func_search_save_LIBS=$LIBS
4068cat >conftest.$ac_ext <<_ACEOF
4069/* confdefs.h. */
4070_ACEOF
4071cat confdefs.h >>conftest.$ac_ext
4072cat >>conftest.$ac_ext <<_ACEOF
4073/* end confdefs.h. */
ad6254c5 4074
d0191583
JM
4075/* Override any GCC internal prototype to avoid an error.
4076 Use char because int might match the return type of a GCC
4077 builtin and then its argument prototype would still apply. */
4078#ifdef __cplusplus
4079extern "C"
4080#endif
4081char opendir ();
4082int
4083main ()
4084{
4085return opendir ();
4086 ;
4087 return 0;
4088}
4089_ACEOF
4090for ac_lib in '' dir; do
4091 if test -z "$ac_lib"; then
4092 ac_res="none required"
4093 else
4094 ac_res=-l$ac_lib
4095 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4096 fi
4097 rm -f conftest.$ac_objext conftest$ac_exeext
4098if { (ac_try="$ac_link"
4099case "(($ac_try" in
4100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4101 *) ac_try_echo=$ac_try;;
4102esac
ec6a6fbe
AK
4103eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4104$as_echo "$ac_try_echo") >&5
d0191583
JM
4105 (eval "$ac_link") 2>conftest.er1
4106 ac_status=$?
4107 grep -v '^ *+' conftest.er1 >conftest.err
4108 rm -f conftest.er1
4109 cat conftest.err >&5
ec6a6fbe 4110 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4111 (exit $ac_status); } && {
4112 test -z "$ac_c_werror_flag" ||
4113 test ! -s conftest.err
ec6a6fbe
AK
4114 } && test -s conftest$ac_exeext && {
4115 test "$cross_compiling" = yes ||
4116 $as_test_x conftest$ac_exeext
4117 }; then
d0191583
JM
4118 ac_cv_search_opendir=$ac_res
4119else
ec6a6fbe 4120 $as_echo "$as_me: failed program was:" >&5
d0191583 4121sed 's/^/| /' conftest.$ac_ext >&5
ad6254c5 4122
ad6254c5 4123
795ca3e5 4124fi
ad6254c5 4125
ec6a6fbe 4126rm -rf conftest.dSYM
d0191583
JM
4127rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4128 conftest$ac_exeext
4129 if test "${ac_cv_search_opendir+set}" = set; then
4130 break
7a197a62 4131fi
d0191583
JM
4132done
4133if test "${ac_cv_search_opendir+set}" = set; then
4134 :
7a197a62 4135else
d0191583 4136 ac_cv_search_opendir=no
7a197a62 4137fi
d0191583
JM
4138rm conftest.$ac_ext
4139LIBS=$ac_func_search_save_LIBS
7a197a62 4140fi
ec6a6fbe
AK
4141{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4142$as_echo "$ac_cv_search_opendir" >&6; }
d0191583
JM
4143ac_res=$ac_cv_search_opendir
4144if test "$ac_res" != no; then
4145 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7a197a62 4146
d0191583 4147fi
7a197a62 4148
7a197a62 4149else
ec6a6fbe
AK
4150 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
4151$as_echo_n "checking for library containing opendir... " >&6; }
d0191583 4152if test "${ac_cv_search_opendir+set}" = set; then
ec6a6fbe 4153 $as_echo_n "(cached) " >&6
7a197a62 4154else
d0191583
JM
4155 ac_func_search_save_LIBS=$LIBS
4156cat >conftest.$ac_ext <<_ACEOF
4157/* confdefs.h. */
4158_ACEOF
4159cat confdefs.h >>conftest.$ac_ext
4160cat >>conftest.$ac_ext <<_ACEOF
4161/* end confdefs.h. */
7a197a62 4162
d0191583
JM
4163/* Override any GCC internal prototype to avoid an error.
4164 Use char because int might match the return type of a GCC
4165 builtin and then its argument prototype would still apply. */
4166#ifdef __cplusplus
4167extern "C"
4168#endif
4169char opendir ();
4170int
4171main ()
4172{
4173return opendir ();
4174 ;
4175 return 0;
4176}
4177_ACEOF
4178for ac_lib in '' x; do
4179 if test -z "$ac_lib"; then
4180 ac_res="none required"
4181 else
4182 ac_res=-l$ac_lib
4183 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4184 fi
4185 rm -f conftest.$ac_objext conftest$ac_exeext
4186if { (ac_try="$ac_link"
4187case "(($ac_try" in
4188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4189 *) ac_try_echo=$ac_try;;
4190esac
ec6a6fbe
AK
4191eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4192$as_echo "$ac_try_echo") >&5
d0191583
JM
4193 (eval "$ac_link") 2>conftest.er1
4194 ac_status=$?
4195 grep -v '^ *+' conftest.er1 >conftest.err
4196 rm -f conftest.er1
4197 cat conftest.err >&5
ec6a6fbe 4198 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4199 (exit $ac_status); } && {
4200 test -z "$ac_c_werror_flag" ||
4201 test ! -s conftest.err
ec6a6fbe
AK
4202 } && test -s conftest$ac_exeext && {
4203 test "$cross_compiling" = yes ||
4204 $as_test_x conftest$ac_exeext
4205 }; then
d0191583
JM
4206 ac_cv_search_opendir=$ac_res
4207else
ec6a6fbe 4208 $as_echo "$as_me: failed program was:" >&5
d0191583 4209sed 's/^/| /' conftest.$ac_ext >&5
7a197a62
AK
4210
4211
4212fi
4213
ec6a6fbe 4214rm -rf conftest.dSYM
d0191583
JM
4215rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4216 conftest$ac_exeext
4217 if test "${ac_cv_search_opendir+set}" = set; then
4218 break
7a197a62 4219fi
d0191583
JM
4220done
4221if test "${ac_cv_search_opendir+set}" = set; then
4222 :
7a197a62 4223else
d0191583 4224 ac_cv_search_opendir=no
7a197a62 4225fi
d0191583
JM
4226rm conftest.$ac_ext
4227LIBS=$ac_func_search_save_LIBS
4228fi
ec6a6fbe
AK
4229{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4230$as_echo "$ac_cv_search_opendir" >&6; }
d0191583
JM
4231ac_res=$ac_cv_search_opendir
4232if test "$ac_res" != no; then
4233 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7a197a62 4234
7a197a62 4235fi
7a197a62 4236
d0191583 4237fi
7a197a62 4238
ec6a6fbe
AK
4239{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4240$as_echo_n "checking for ANSI C header files... " >&6; }
7a197a62 4241if test "${ac_cv_header_stdc+set}" = set; then
ec6a6fbe 4242 $as_echo_n "(cached) " >&6
7a197a62
AK
4243else
4244 cat >conftest.$ac_ext <<_ACEOF
4245/* confdefs.h. */
4246_ACEOF
4247cat confdefs.h >>conftest.$ac_ext
4248cat >>conftest.$ac_ext <<_ACEOF
4249/* end confdefs.h. */
4250#include <stdlib.h>
4251#include <stdarg.h>
4252#include <string.h>
4253#include <float.h>
4254
4255int
4256main ()
4257{
4258
4259 ;
4260 return 0;
4261}
4262_ACEOF
4263rm -f conftest.$ac_objext
4264if { (ac_try="$ac_compile"
4265case "(($ac_try" in
4266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4267 *) ac_try_echo=$ac_try;;
4268esac
ec6a6fbe
AK
4269eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4270$as_echo "$ac_try_echo") >&5
7a197a62
AK
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
ec6a6fbe 4276 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4277 (exit $ac_status); } && {
4278 test -z "$ac_c_werror_flag" ||
4279 test ! -s conftest.err
4280 } && test -s conftest.$ac_objext; then
7a197a62
AK
4281 ac_cv_header_stdc=yes
4282else
ec6a6fbe 4283 $as_echo "$as_me: failed program was:" >&5
7a197a62
AK
4284sed 's/^/| /' conftest.$ac_ext >&5
4285
4286 ac_cv_header_stdc=no
4287fi
4288
4289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4290
4291if test $ac_cv_header_stdc = yes; then
4292 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
ad6254c5 4293 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4294/* confdefs.h. */
4295_ACEOF
4296cat confdefs.h >>conftest.$ac_ext
4297cat >>conftest.$ac_ext <<_ACEOF
4298/* end confdefs.h. */
4299#include <string.h>
8106cdd5 4300
ad6254c5
AK
4301_ACEOF
4302if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4303 $EGREP "memchr" >/dev/null 2>&1; then
4304 :
4305else
4306 ac_cv_header_stdc=no
80992638 4307fi
ad6254c5 4308rm -f conftest*
795ca3e5
AK
4309
4310fi
4311
ad6254c5
AK
4312if test $ac_cv_header_stdc = yes; then
4313 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4314 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4315/* confdefs.h. */
4316_ACEOF
4317cat confdefs.h >>conftest.$ac_ext
4318cat >>conftest.$ac_ext <<_ACEOF
4319/* end confdefs.h. */
80992638 4320#include <stdlib.h>
ad6254c5
AK
4321
4322_ACEOF
80992638 4323if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ad6254c5
AK
4324 $EGREP "free" >/dev/null 2>&1; then
4325 :
795ca3e5 4326else
ad6254c5 4327 ac_cv_header_stdc=no
795ca3e5 4328fi
80992638 4329rm -f conftest*
8106cdd5 4330
795ca3e5
AK
4331fi
4332
ad6254c5
AK
4333if test $ac_cv_header_stdc = yes; then
4334 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4335 if test "$cross_compiling" = yes; then
4336 :
795ca3e5 4337else
ad6254c5 4338 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4339/* confdefs.h. */
4340_ACEOF
4341cat confdefs.h >>conftest.$ac_ext
4342cat >>conftest.$ac_ext <<_ACEOF
4343/* end confdefs.h. */
4344#include <ctype.h>
7a197a62 4345#include <stdlib.h>
ad6254c5
AK
4346#if ((' ' & 0x0FF) == 0x020)
4347# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4348# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4349#else
4350# define ISLOWER(c) \
8a2fc586
AK
4351 (('a' <= (c) && (c) <= 'i') \
4352 || ('j' <= (c) && (c) <= 'r') \
4353 || ('s' <= (c) && (c) <= 'z'))
ad6254c5 4354# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
80992638 4355#endif
ad6254c5
AK
4356
4357#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4358int
4359main ()
4360{
4361 int i;
4362 for (i = 0; i < 256; i++)
4363 if (XOR (islower (i), ISLOWER (i))
8a2fc586 4364 || toupper (i) != TOUPPER (i))
7a197a62
AK
4365 return 2;
4366 return 0;
ad6254c5
AK
4367}
4368_ACEOF
4369rm -f conftest$ac_exeext
7a197a62
AK
4370if { (ac_try="$ac_link"
4371case "(($ac_try" in
4372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4373 *) ac_try_echo=$ac_try;;
4374esac
ec6a6fbe
AK
4375eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4376$as_echo "$ac_try_echo") >&5
7a197a62 4377 (eval "$ac_link") 2>&5
ad6254c5 4378 ac_status=$?
ec6a6fbe 4379 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 4380 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
4381 { (case "(($ac_try" in
4382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4383 *) ac_try_echo=$ac_try;;
4384esac
ec6a6fbe
AK
4385eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4386$as_echo "$ac_try_echo") >&5
7a197a62 4387 (eval "$ac_try") 2>&5
ad6254c5 4388 ac_status=$?
ec6a6fbe 4389 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
4390 (exit $ac_status); }; }; then
4391 :
795ca3e5 4392else
ec6a6fbe
AK
4393 $as_echo "$as_me: program exited with status $ac_status" >&5
4394$as_echo "$as_me: failed program was:" >&5
ad6254c5 4395sed 's/^/| /' conftest.$ac_ext >&5
8106cdd5 4396
ad6254c5
AK
4397( exit $ac_status )
4398ac_cv_header_stdc=no
80992638 4399fi
ec6a6fbe 4400rm -rf conftest.dSYM
7a197a62 4401rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 4402fi
7a197a62
AK
4403
4404
ad6254c5
AK
4405fi
4406fi
ec6a6fbe
AK
4407{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4408$as_echo "$ac_cv_header_stdc" >&6; }
ad6254c5
AK
4409if test $ac_cv_header_stdc = yes; then
4410
4411cat >>confdefs.h <<\_ACEOF
4412#define STDC_HEADERS 1
4413_ACEOF
795ca3e5
AK
4414
4415fi
4416
ec6a6fbe
AK
4417{ $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
4418$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
ad6254c5 4419if test "${ac_cv_header_sys_wait_h+set}" = set; then
ec6a6fbe 4420 $as_echo_n "(cached) " >&6
8106cdd5 4421else
ad6254c5 4422 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4423/* confdefs.h. */
4424_ACEOF
4425cat confdefs.h >>conftest.$ac_ext
4426cat >>conftest.$ac_ext <<_ACEOF
4427/* end confdefs.h. */
80992638 4428#include <sys/types.h>
ad6254c5
AK
4429#include <sys/wait.h>
4430#ifndef WEXITSTATUS
7a197a62 4431# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
ad6254c5
AK
4432#endif
4433#ifndef WIFEXITED
4434# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4435#endif
4436
4437int
4438main ()
4439{
4440 int s;
4441 wait (&s);
4442 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4443 ;
4444 return 0;
4445}
4446_ACEOF
4447rm -f conftest.$ac_objext
7a197a62
AK
4448if { (ac_try="$ac_compile"
4449case "(($ac_try" in
4450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4451 *) ac_try_echo=$ac_try;;
4452esac
ec6a6fbe
AK
4453eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4454$as_echo "$ac_try_echo") >&5
7a197a62 4455 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4456 ac_status=$?
8a2fc586
AK
4457 grep -v '^ *+' conftest.er1 >conftest.err
4458 rm -f conftest.er1
4459 cat conftest.err >&5
ec6a6fbe 4460 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4461 (exit $ac_status); } && {
4462 test -z "$ac_c_werror_flag" ||
4463 test ! -s conftest.err
4464 } && test -s conftest.$ac_objext; then
ad6254c5
AK
4465 ac_cv_header_sys_wait_h=yes
4466else
ec6a6fbe 4467 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
4468sed 's/^/| /' conftest.$ac_ext >&5
4469
7a197a62 4470 ac_cv_header_sys_wait_h=no
8106cdd5 4471fi
7a197a62
AK
4472
4473rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
795ca3e5 4474fi
ec6a6fbe
AK
4475{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
4476$as_echo "$ac_cv_header_sys_wait_h" >&6; }
ad6254c5 4477if test $ac_cv_header_sys_wait_h = yes; then
8106cdd5 4478
ad6254c5
AK
4479cat >>confdefs.h <<\_ACEOF
4480#define HAVE_SYS_WAIT_H 1
4481_ACEOF
795ca3e5
AK
4482
4483fi
4484
ec6a6fbe
AK
4485{ $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4486$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
ad6254c5 4487if test "${ac_cv_header_time+set}" = set; then
ec6a6fbe 4488 $as_echo_n "(cached) " >&6
795ca3e5 4489else
ad6254c5 4490 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4491/* confdefs.h. */
4492_ACEOF
4493cat confdefs.h >>conftest.$ac_ext
4494cat >>conftest.$ac_ext <<_ACEOF
4495/* end confdefs.h. */
795ca3e5
AK
4496#include <sys/types.h>
4497#include <sys/time.h>
4498#include <time.h>
ad6254c5
AK
4499
4500int
4501main ()
4502{
4503if ((struct tm *) 0)
4504return 0;
4505 ;
4506 return 0;
4507}
4508_ACEOF
4509rm -f conftest.$ac_objext
7a197a62
AK
4510if { (ac_try="$ac_compile"
4511case "(($ac_try" in
4512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4513 *) ac_try_echo=$ac_try;;
4514esac
ec6a6fbe
AK
4515eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4516$as_echo "$ac_try_echo") >&5
7a197a62 4517 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4518 ac_status=$?
8a2fc586
AK
4519 grep -v '^ *+' conftest.er1 >conftest.err
4520 rm -f conftest.er1
4521 cat conftest.err >&5
ec6a6fbe 4522 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4523 (exit $ac_status); } && {
4524 test -z "$ac_c_werror_flag" ||
4525 test ! -s conftest.err
4526 } && test -s conftest.$ac_objext; then
795ca3e5
AK
4527 ac_cv_header_time=yes
4528else
ec6a6fbe 4529 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
4530sed 's/^/| /' conftest.$ac_ext >&5
4531
7a197a62 4532 ac_cv_header_time=no
795ca3e5 4533fi
7a197a62
AK
4534
4535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
795ca3e5 4536fi
ec6a6fbe
AK
4537{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4538$as_echo "$ac_cv_header_time" >&6; }
80992638 4539if test $ac_cv_header_time = yes; then
ad6254c5
AK
4540
4541cat >>confdefs.h <<\_ACEOF
795ca3e5 4542#define TIME_WITH_SYS_TIME 1
ad6254c5 4543_ACEOF
b896caa1 4544
8106cdd5 4545fi
b896caa1 4546
b896caa1 4547
d0191583
JM
4548# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4559 inttypes.h stdint.h unistd.h
4560do
ec6a6fbe
AK
4561as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4562{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4563$as_echo_n "checking for $ac_header... " >&6; }
d0191583 4564if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 4565 $as_echo_n "(cached) " >&6
d0191583
JM
4566else
4567 cat >conftest.$ac_ext <<_ACEOF
4568/* confdefs.h. */
4569_ACEOF
4570cat confdefs.h >>conftest.$ac_ext
4571cat >>conftest.$ac_ext <<_ACEOF
4572/* end confdefs.h. */
4573$ac_includes_default
4574
4575#include <$ac_header>
4576_ACEOF
4577rm -f conftest.$ac_objext
4578if { (ac_try="$ac_compile"
4579case "(($ac_try" in
4580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4581 *) ac_try_echo=$ac_try;;
4582esac
ec6a6fbe
AK
4583eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4584$as_echo "$ac_try_echo") >&5
d0191583
JM
4585 (eval "$ac_compile") 2>conftest.er1
4586 ac_status=$?
4587 grep -v '^ *+' conftest.er1 >conftest.err
4588 rm -f conftest.er1
4589 cat conftest.err >&5
ec6a6fbe 4590 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4591 (exit $ac_status); } && {
4592 test -z "$ac_c_werror_flag" ||
4593 test ! -s conftest.err
4594 } && test -s conftest.$ac_objext; then
4595 eval "$as_ac_Header=yes"
4596else
ec6a6fbe 4597 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
4598sed 's/^/| /' conftest.$ac_ext >&5
4599
4600 eval "$as_ac_Header=no"
4601fi
4602
4603rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4604fi
ec6a6fbe
AK
4605ac_res=`eval 'as_val=${'$as_ac_Header'}
4606 $as_echo "$as_val"'`
4607 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4608$as_echo "$ac_res" >&6; }
4609as_val=`eval 'as_val=${'$as_ac_Header'}
4610 $as_echo "$as_val"'`
4611 if test "x$as_val" = x""yes; then
d0191583 4612 cat >>confdefs.h <<_ACEOF
ec6a6fbe 4613#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
d0191583
JM
4614_ACEOF
4615
4616fi
4617
4618done
4619
b896caa1 4620
b896caa1
AK
4621
4622
795ca3e5 4623
8106cdd5 4624
80992638 4625
795ca3e5 4626
a38df97f 4627
80992638 4628
d0191583
JM
4629
4630
4631
4632
4633
4634for ac_header in locale.h stddef.h syslog.h sys/file.h sys/time.h assert.h \
4635 libgen.h signal.h sys/mman.h sys/resource.h sys/utsname.h sys/wait.h time.h
ad6254c5 4636do
ec6a6fbe 4637as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
d0191583 4638if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
4639 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4640$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 4641if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 4642 $as_echo_n "(cached) " >&6
d0191583 4643fi
ec6a6fbe
AK
4644ac_res=`eval 'as_val=${'$as_ac_Header'}
4645 $as_echo "$as_val"'`
4646 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4647$as_echo "$ac_res" >&6; }
ad6254c5 4648else
d0191583 4649 # Is the header compilable?
ec6a6fbe
AK
4650{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4651$as_echo_n "checking $ac_header usability... " >&6; }
d0191583 4652cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4653/* confdefs.h. */
4654_ACEOF
4655cat confdefs.h >>conftest.$ac_ext
4656cat >>conftest.$ac_ext <<_ACEOF
4657/* end confdefs.h. */
4658$ac_includes_default
ad6254c5
AK
4659#include <$ac_header>
4660_ACEOF
4661rm -f conftest.$ac_objext
7a197a62
AK
4662if { (ac_try="$ac_compile"
4663case "(($ac_try" in
4664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4665 *) ac_try_echo=$ac_try;;
4666esac
ec6a6fbe
AK
4667eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4668$as_echo "$ac_try_echo") >&5
7a197a62 4669 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4670 ac_status=$?
8a2fc586
AK
4671 grep -v '^ *+' conftest.er1 >conftest.err
4672 rm -f conftest.er1
4673 cat conftest.err >&5
ec6a6fbe 4674 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4675 (exit $ac_status); } && {
4676 test -z "$ac_c_werror_flag" ||
4677 test ! -s conftest.err
4678 } && test -s conftest.$ac_objext; then
d0191583 4679 ac_header_compiler=yes
ad6254c5 4680else
ec6a6fbe 4681 $as_echo "$as_me: failed program was:" >&5
ad6254c5 4682sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 4683
d0191583 4684 ac_header_compiler=no
ad6254c5 4685fi
7a197a62
AK
4686
4687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
4688{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4689$as_echo "$ac_header_compiler" >&6; }
d0191583
JM
4690
4691# Is the header present?
ec6a6fbe
AK
4692{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4693$as_echo_n "checking $ac_header presence... " >&6; }
d0191583
JM
4694cat >conftest.$ac_ext <<_ACEOF
4695/* confdefs.h. */
4696_ACEOF
4697cat confdefs.h >>conftest.$ac_ext
4698cat >>conftest.$ac_ext <<_ACEOF
4699/* end confdefs.h. */
4700#include <$ac_header>
4701_ACEOF
4702if { (ac_try="$ac_cpp conftest.$ac_ext"
4703case "(($ac_try" in
4704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4705 *) ac_try_echo=$ac_try;;
4706esac
ec6a6fbe
AK
4707eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4708$as_echo "$ac_try_echo") >&5
d0191583
JM
4709 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4710 ac_status=$?
4711 grep -v '^ *+' conftest.er1 >conftest.err
4712 rm -f conftest.er1
4713 cat conftest.err >&5
ec6a6fbe 4714 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4715 (exit $ac_status); } >/dev/null && {
4716 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4717 test ! -s conftest.err
4718 }; then
4719 ac_header_preproc=yes
4720else
ec6a6fbe 4721 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
4722sed 's/^/| /' conftest.$ac_ext >&5
4723
4724 ac_header_preproc=no
4725fi
4726
4727rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
4728{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4729$as_echo "$ac_header_preproc" >&6; }
d0191583
JM
4730
4731# So? What about this header?
4732case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4733 yes:no: )
ec6a6fbe
AK
4734 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4735$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4736 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4737$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
d0191583
JM
4738 ac_header_preproc=yes
4739 ;;
4740 no:yes:* )
ec6a6fbe
AK
4741 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4742$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4743 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4744$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4745 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4746$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4747 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4748$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4749 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4750$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4751 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4752$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
d0191583
JM
4753
4754 ;;
4755esac
ec6a6fbe
AK
4756{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4757$as_echo_n "checking for $ac_header... " >&6; }
d0191583 4758if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 4759 $as_echo_n "(cached) " >&6
d0191583
JM
4760else
4761 eval "$as_ac_Header=\$ac_header_preproc"
a38df97f 4762fi
ec6a6fbe
AK
4763ac_res=`eval 'as_val=${'$as_ac_Header'}
4764 $as_echo "$as_val"'`
4765 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4766$as_echo "$ac_res" >&6; }
d0191583
JM
4767
4768fi
ec6a6fbe
AK
4769as_val=`eval 'as_val=${'$as_ac_Header'}
4770 $as_echo "$as_val"'`
4771 if test "x$as_val" = x""yes; then
ad6254c5 4772 cat >>confdefs.h <<_ACEOF
ec6a6fbe 4773#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 4774_ACEOF
a38df97f 4775
d0191583 4776else
ec6a6fbe
AK
4777 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
4778$as_echo "$as_me: error: bailing out" >&2;}
d0191583 4779 { (exit 1); exit 1; }; }
80992638
AK
4780fi
4781
ad6254c5
AK
4782done
4783
7d1552c9 4784
d0191583
JM
4785case "$host_os" in
4786 linux*)
7d1552c9 4787
80992638 4788
5a52dca9 4789
d0191583 4790for ac_header in asm/byteorder.h linux/fs.h malloc.h
ad6254c5 4791do
ec6a6fbe 4792as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 4793if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
4794 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4795$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 4796if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 4797 $as_echo_n "(cached) " >&6
ad6254c5 4798fi
ec6a6fbe
AK
4799ac_res=`eval 'as_val=${'$as_ac_Header'}
4800 $as_echo "$as_val"'`
4801 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4802$as_echo "$ac_res" >&6; }
ad6254c5
AK
4803else
4804 # Is the header compilable?
ec6a6fbe
AK
4805{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4806$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 4807cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4808/* confdefs.h. */
4809_ACEOF
4810cat confdefs.h >>conftest.$ac_ext
4811cat >>conftest.$ac_ext <<_ACEOF
4812/* end confdefs.h. */
4813$ac_includes_default
4814#include <$ac_header>
4815_ACEOF
4816rm -f conftest.$ac_objext
7a197a62
AK
4817if { (ac_try="$ac_compile"
4818case "(($ac_try" in
4819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4820 *) ac_try_echo=$ac_try;;
4821esac
ec6a6fbe
AK
4822eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4823$as_echo "$ac_try_echo") >&5
7a197a62 4824 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4825 ac_status=$?
8a2fc586
AK
4826 grep -v '^ *+' conftest.er1 >conftest.err
4827 rm -f conftest.er1
4828 cat conftest.err >&5
ec6a6fbe 4829 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4830 (exit $ac_status); } && {
4831 test -z "$ac_c_werror_flag" ||
4832 test ! -s conftest.err
4833 } && test -s conftest.$ac_objext; then
fc54be10
AK
4834 ac_header_compiler=yes
4835else
ec6a6fbe 4836 $as_echo "$as_me: failed program was:" >&5
fc54be10
AK
4837sed 's/^/| /' conftest.$ac_ext >&5
4838
4839 ac_header_compiler=no
4840fi
4841
4842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
4843{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4844$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
4845
4846# Is the header present?
ec6a6fbe
AK
4847{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4848$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 4849cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4850/* confdefs.h. */
4851_ACEOF
4852cat confdefs.h >>conftest.$ac_ext
4853cat >>conftest.$ac_ext <<_ACEOF
4854/* end confdefs.h. */
4855#include <$ac_header>
4856_ACEOF
7a197a62
AK
4857if { (ac_try="$ac_cpp conftest.$ac_ext"
4858case "(($ac_try" in
4859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4860 *) ac_try_echo=$ac_try;;
4861esac
ec6a6fbe
AK
4862eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4863$as_echo "$ac_try_echo") >&5
7a197a62 4864 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
4865 ac_status=$?
4866 grep -v '^ *+' conftest.er1 >conftest.err
4867 rm -f conftest.er1
4868 cat conftest.err >&5
ec6a6fbe 4869 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4870 (exit $ac_status); } >/dev/null && {
4871 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4872 test ! -s conftest.err
4873 }; then
ad6254c5
AK
4874 ac_header_preproc=yes
4875else
ec6a6fbe 4876 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
4877sed 's/^/| /' conftest.$ac_ext >&5
4878
4879 ac_header_preproc=no
4880fi
7a197a62 4881
ad6254c5 4882rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
4883{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4884$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
4885
4886# So? What about this header?
8a2fc586
AK
4887case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4888 yes:no: )
ec6a6fbe
AK
4889 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4890$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4891 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4892$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 4893 ac_header_preproc=yes
ad6254c5 4894 ;;
8a2fc586 4895 no:yes:* )
ec6a6fbe
AK
4896 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4897$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4898 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4899$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4900 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4901$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4902 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4903$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4904 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4905$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4906 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4907$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 4908
ad6254c5
AK
4909 ;;
4910esac
ec6a6fbe
AK
4911{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4912$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 4913if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 4914 $as_echo_n "(cached) " >&6
ad6254c5 4915else
8a2fc586 4916 eval "$as_ac_Header=\$ac_header_preproc"
b896caa1 4917fi
ec6a6fbe
AK
4918ac_res=`eval 'as_val=${'$as_ac_Header'}
4919 $as_echo "$as_val"'`
4920 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4921$as_echo "$ac_res" >&6; }
ad6254c5
AK
4922
4923fi
ec6a6fbe
AK
4924as_val=`eval 'as_val=${'$as_ac_Header'}
4925 $as_echo "$as_val"'`
4926 if test "x$as_val" = x""yes; then
ad6254c5 4927 cat >>confdefs.h <<_ACEOF
ec6a6fbe 4928#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 4929_ACEOF
b896caa1 4930
d8ac0fbc 4931else
ec6a6fbe
AK
4932 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
4933$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 4934 { (exit 1); exit 1; }; }
80992638
AK
4935fi
4936
ad6254c5 4937done
d0191583
JM
4938 ;;
4939 darwin*)
d8ac0fbc 4940
d8ac0fbc 4941
d0191583 4942for ac_header in machine/endian.h sys/disk.h
ad6254c5 4943do
ec6a6fbe 4944as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 4945if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
4946 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4947$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 4948if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 4949 $as_echo_n "(cached) " >&6
ad6254c5 4950fi
ec6a6fbe
AK
4951ac_res=`eval 'as_val=${'$as_ac_Header'}
4952 $as_echo "$as_val"'`
4953 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4954$as_echo "$ac_res" >&6; }
ad6254c5
AK
4955else
4956 # Is the header compilable?
ec6a6fbe
AK
4957{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4958$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 4959cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4960/* confdefs.h. */
4961_ACEOF
4962cat confdefs.h >>conftest.$ac_ext
4963cat >>conftest.$ac_ext <<_ACEOF
4964/* end confdefs.h. */
4965$ac_includes_default
4966#include <$ac_header>
4967_ACEOF
4968rm -f conftest.$ac_objext
7a197a62
AK
4969if { (ac_try="$ac_compile"
4970case "(($ac_try" in
4971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4972 *) ac_try_echo=$ac_try;;
4973esac
ec6a6fbe
AK
4974eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4975$as_echo "$ac_try_echo") >&5
7a197a62 4976 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4977 ac_status=$?
8a2fc586
AK
4978 grep -v '^ *+' conftest.er1 >conftest.err
4979 rm -f conftest.er1
4980 cat conftest.err >&5
ec6a6fbe 4981 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4982 (exit $ac_status); } && {
4983 test -z "$ac_c_werror_flag" ||
4984 test ! -s conftest.err
4985 } && test -s conftest.$ac_objext; then
ad6254c5
AK
4986 ac_header_compiler=yes
4987else
ec6a6fbe 4988 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
4989sed 's/^/| /' conftest.$ac_ext >&5
4990
7a197a62 4991 ac_header_compiler=no
ad6254c5 4992fi
7a197a62
AK
4993
4994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
4995{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4996$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
4997
4998# Is the header present?
ec6a6fbe
AK
4999{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5000$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 5001cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5002/* confdefs.h. */
5003_ACEOF
5004cat confdefs.h >>conftest.$ac_ext
5005cat >>conftest.$ac_ext <<_ACEOF
5006/* end confdefs.h. */
5007#include <$ac_header>
5008_ACEOF
7a197a62
AK
5009if { (ac_try="$ac_cpp conftest.$ac_ext"
5010case "(($ac_try" in
5011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5012 *) ac_try_echo=$ac_try;;
5013esac
ec6a6fbe
AK
5014eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5015$as_echo "$ac_try_echo") >&5
7a197a62 5016 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
5017 ac_status=$?
5018 grep -v '^ *+' conftest.er1 >conftest.err
5019 rm -f conftest.er1
5020 cat conftest.err >&5
ec6a6fbe 5021 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5022 (exit $ac_status); } >/dev/null && {
5023 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5024 test ! -s conftest.err
5025 }; then
ad6254c5
AK
5026 ac_header_preproc=yes
5027else
ec6a6fbe 5028 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5029sed 's/^/| /' conftest.$ac_ext >&5
5030
5031 ac_header_preproc=no
5032fi
7a197a62 5033
ad6254c5 5034rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
5035{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5036$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
5037
5038# So? What about this header?
8a2fc586
AK
5039case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5040 yes:no: )
ec6a6fbe
AK
5041 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5042$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5043 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5044$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 5045 ac_header_preproc=yes
ad6254c5 5046 ;;
8a2fc586 5047 no:yes:* )
ec6a6fbe
AK
5048 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5049$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5050 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5051$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5052 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5053$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5054 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5055$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5056 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5057$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5058 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5059$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 5060
ad6254c5
AK
5061 ;;
5062esac
ec6a6fbe
AK
5063{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5064$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 5065if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 5066 $as_echo_n "(cached) " >&6
ad6254c5 5067else
8a2fc586 5068 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 5069fi
ec6a6fbe
AK
5070ac_res=`eval 'as_val=${'$as_ac_Header'}
5071 $as_echo "$as_val"'`
5072 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5073$as_echo "$ac_res" >&6; }
ad6254c5
AK
5074
5075fi
ec6a6fbe
AK
5076as_val=`eval 'as_val=${'$as_ac_Header'}
5077 $as_echo "$as_val"'`
5078 if test "x$as_val" = x""yes; then
ad6254c5 5079 cat >>confdefs.h <<_ACEOF
ec6a6fbe 5080#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 5081_ACEOF
4922197a 5082
4922197a 5083else
ec6a6fbe
AK
5084 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5085$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 5086 { (exit 1); exit 1; }; }
80992638
AK
5087fi
5088
ad6254c5 5089done
d0191583
JM
5090 ;;
5091esac
4922197a 5092
4922197a 5093
4922197a 5094
ad6254c5
AK
5095
5096
d0191583
JM
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109for ac_header in ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h \
5110 stdarg.h stdio.h stdlib.h string.h sys/ioctl.h sys/param.h sys/stat.h \
5111 sys/types.h unistd.h
ad6254c5 5112do
ec6a6fbe 5113as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 5114if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
5115 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5116$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 5117if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 5118 $as_echo_n "(cached) " >&6
ad6254c5 5119fi
ec6a6fbe
AK
5120ac_res=`eval 'as_val=${'$as_ac_Header'}
5121 $as_echo "$as_val"'`
5122 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5123$as_echo "$ac_res" >&6; }
795ca3e5 5124else
ad6254c5 5125 # Is the header compilable?
ec6a6fbe
AK
5126{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5127$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 5128cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5129/* confdefs.h. */
5130_ACEOF
5131cat confdefs.h >>conftest.$ac_ext
5132cat >>conftest.$ac_ext <<_ACEOF
5133/* end confdefs.h. */
5134$ac_includes_default
5135#include <$ac_header>
5136_ACEOF
5137rm -f conftest.$ac_objext
7a197a62
AK
5138if { (ac_try="$ac_compile"
5139case "(($ac_try" in
5140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5141 *) ac_try_echo=$ac_try;;
5142esac
ec6a6fbe
AK
5143eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5144$as_echo "$ac_try_echo") >&5
7a197a62 5145 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5146 ac_status=$?
8a2fc586
AK
5147 grep -v '^ *+' conftest.er1 >conftest.err
5148 rm -f conftest.er1
5149 cat conftest.err >&5
ec6a6fbe 5150 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5151 (exit $ac_status); } && {
5152 test -z "$ac_c_werror_flag" ||
5153 test ! -s conftest.err
5154 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5155 ac_header_compiler=yes
5156else
ec6a6fbe 5157 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5158sed 's/^/| /' conftest.$ac_ext >&5
5159
7a197a62 5160 ac_header_compiler=no
ad6254c5 5161fi
7a197a62
AK
5162
5163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
5164{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5165$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
5166
5167# Is the header present?
ec6a6fbe
AK
5168{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5169$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 5170cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5171/* confdefs.h. */
5172_ACEOF
5173cat confdefs.h >>conftest.$ac_ext
5174cat >>conftest.$ac_ext <<_ACEOF
5175/* end confdefs.h. */
5176#include <$ac_header>
5177_ACEOF
7a197a62
AK
5178if { (ac_try="$ac_cpp conftest.$ac_ext"
5179case "(($ac_try" in
5180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5181 *) ac_try_echo=$ac_try;;
5182esac
ec6a6fbe
AK
5183eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5184$as_echo "$ac_try_echo") >&5
7a197a62 5185 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
5186 ac_status=$?
5187 grep -v '^ *+' conftest.er1 >conftest.err
5188 rm -f conftest.er1
5189 cat conftest.err >&5
ec6a6fbe 5190 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5191 (exit $ac_status); } >/dev/null && {
5192 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5193 test ! -s conftest.err
5194 }; then
ad6254c5
AK
5195 ac_header_preproc=yes
5196else
ec6a6fbe 5197 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5198sed 's/^/| /' conftest.$ac_ext >&5
5199
5200 ac_header_preproc=no
5201fi
7a197a62 5202
ad6254c5 5203rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
5204{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5205$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
5206
5207# So? What about this header?
8a2fc586
AK
5208case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5209 yes:no: )
ec6a6fbe
AK
5210 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5211$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5212 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5213$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 5214 ac_header_preproc=yes
ad6254c5 5215 ;;
8a2fc586 5216 no:yes:* )
ec6a6fbe
AK
5217 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5218$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5219 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5220$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5221 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5222$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5223 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5224$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5225 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5226$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5227 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5228$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 5229
ad6254c5
AK
5230 ;;
5231esac
ec6a6fbe
AK
5232{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5233$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 5234if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 5235 $as_echo_n "(cached) " >&6
ad6254c5 5236else
8a2fc586 5237 eval "$as_ac_Header=\$ac_header_preproc"
80992638 5238fi
ec6a6fbe
AK
5239ac_res=`eval 'as_val=${'$as_ac_Header'}
5240 $as_echo "$as_val"'`
5241 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5242$as_echo "$ac_res" >&6; }
80992638 5243
ad6254c5 5244fi
ec6a6fbe
AK
5245as_val=`eval 'as_val=${'$as_ac_Header'}
5246 $as_echo "$as_val"'`
5247 if test "x$as_val" = x""yes; then
ad6254c5 5248 cat >>confdefs.h <<_ACEOF
ec6a6fbe 5249#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 5250_ACEOF
795ca3e5 5251
795ca3e5 5252else
ec6a6fbe
AK
5253 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5254$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 5255 { (exit 1); exit 1; }; }
80992638
AK
5256fi
5257
ad6254c5 5258done
ad6254c5 5259
795ca3e5 5260
d0191583
JM
5261
5262for ac_header in termios.h sys/statvfs.h
ad6254c5 5263do
ec6a6fbe 5264as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 5265if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
5266 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5267$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 5268if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 5269 $as_echo_n "(cached) " >&6
ad6254c5 5270fi
ec6a6fbe
AK
5271ac_res=`eval 'as_val=${'$as_ac_Header'}
5272 $as_echo "$as_val"'`
5273 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5274$as_echo "$ac_res" >&6; }
ad6254c5
AK
5275else
5276 # Is the header compilable?
ec6a6fbe
AK
5277{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5278$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 5279cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5280/* confdefs.h. */
5281_ACEOF
5282cat confdefs.h >>conftest.$ac_ext
5283cat >>conftest.$ac_ext <<_ACEOF
5284/* end confdefs.h. */
5285$ac_includes_default
5286#include <$ac_header>
5287_ACEOF
5288rm -f conftest.$ac_objext
7a197a62
AK
5289if { (ac_try="$ac_compile"
5290case "(($ac_try" in
5291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5292 *) ac_try_echo=$ac_try;;
5293esac
ec6a6fbe
AK
5294eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5295$as_echo "$ac_try_echo") >&5
7a197a62 5296 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5297 ac_status=$?
8a2fc586
AK
5298 grep -v '^ *+' conftest.er1 >conftest.err
5299 rm -f conftest.er1
5300 cat conftest.err >&5
ec6a6fbe 5301 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5302 (exit $ac_status); } && {
5303 test -z "$ac_c_werror_flag" ||
5304 test ! -s conftest.err
5305 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5306 ac_header_compiler=yes
5307else
ec6a6fbe 5308 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5309sed 's/^/| /' conftest.$ac_ext >&5
5310
7a197a62 5311 ac_header_compiler=no
ad6254c5 5312fi
7a197a62
AK
5313
5314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
5315{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5316$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
5317
5318# Is the header present?
ec6a6fbe
AK
5319{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5320$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 5321cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5322/* confdefs.h. */
5323_ACEOF
5324cat confdefs.h >>conftest.$ac_ext
5325cat >>conftest.$ac_ext <<_ACEOF
5326/* end confdefs.h. */
5327#include <$ac_header>
5328_ACEOF
7a197a62
AK
5329if { (ac_try="$ac_cpp conftest.$ac_ext"
5330case "(($ac_try" in
5331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5332 *) ac_try_echo=$ac_try;;
5333esac
ec6a6fbe
AK
5334eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5335$as_echo "$ac_try_echo") >&5
7a197a62 5336 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
5337 ac_status=$?
5338 grep -v '^ *+' conftest.er1 >conftest.err
5339 rm -f conftest.er1
5340 cat conftest.err >&5
ec6a6fbe 5341 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5342 (exit $ac_status); } >/dev/null && {
5343 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5344 test ! -s conftest.err
5345 }; then
ad6254c5
AK
5346 ac_header_preproc=yes
5347else
ec6a6fbe 5348 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5349sed 's/^/| /' conftest.$ac_ext >&5
5350
5351 ac_header_preproc=no
5352fi
7a197a62 5353
ad6254c5 5354rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
5355{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5356$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
5357
5358# So? What about this header?
8a2fc586
AK
5359case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5360 yes:no: )
ec6a6fbe
AK
5361 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5362$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5363 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5364$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 5365 ac_header_preproc=yes
ad6254c5 5366 ;;
8a2fc586 5367 no:yes:* )
ec6a6fbe
AK
5368 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5369$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5370 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5371$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5372 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5373$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5374 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5375$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5376 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5377$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5378 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5379$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 5380
ad6254c5
AK
5381 ;;
5382esac
ec6a6fbe
AK
5383{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5384$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 5385if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 5386 $as_echo_n "(cached) " >&6
ad6254c5 5387else
8a2fc586 5388 eval "$as_ac_Header=\$ac_header_preproc"
b896caa1 5389fi
ec6a6fbe
AK
5390ac_res=`eval 'as_val=${'$as_ac_Header'}
5391 $as_echo "$as_val"'`
5392 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5393$as_echo "$ac_res" >&6; }
b896caa1 5394
ad6254c5 5395fi
ec6a6fbe
AK
5396as_val=`eval 'as_val=${'$as_ac_Header'}
5397 $as_echo "$as_val"'`
5398 if test "x$as_val" = x""yes; then
ad6254c5 5399 cat >>confdefs.h <<_ACEOF
ec6a6fbe 5400#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
5401_ACEOF
5402
80992638
AK
5403fi
5404
ad6254c5 5405done
d0191583 5406
d3c8211f 5407
80992638 5408################################################################################
ec6a6fbe
AK
5409{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5410$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
ad6254c5 5411if test "${ac_cv_c_const+set}" = set; then
ec6a6fbe 5412 $as_echo_n "(cached) " >&6
d3c8211f 5413else
ad6254c5 5414 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5415/* confdefs.h. */
5416_ACEOF
5417cat confdefs.h >>conftest.$ac_ext
5418cat >>conftest.$ac_ext <<_ACEOF
5419/* end confdefs.h. */
5420
5421int
5422main ()
5423{
5424/* FIXME: Include the comments suggested by Paul. */
5425#ifndef __cplusplus
5426 /* Ultrix mips cc rejects this. */
5427 typedef int charset[2];
25fbec5b 5428 const charset cs;
ad6254c5 5429 /* SunOS 4.1.1 cc rejects this. */
25fbec5b
AK
5430 char const *const *pcpcc;
5431 char **ppc;
ad6254c5
AK
5432 /* NEC SVR4.0.2 mips cc rejects this. */
5433 struct point {int x, y;};
5434 static struct point const zero = {0,0};
5435 /* AIX XL C 1.02.0.0 rejects this.
5436 It does not let you subtract one const X* pointer from another in
5437 an arm of an if-expression whose if-part is not a constant
5438 expression */
5439 const char *g = "string";
25fbec5b 5440 pcpcc = &g + (g ? g-g : 0);
ad6254c5 5441 /* HPUX 7.0 cc rejects these. */
25fbec5b
AK
5442 ++pcpcc;
5443 ppc = (char**) pcpcc;
5444 pcpcc = (char const *const *) ppc;
ad6254c5
AK
5445 { /* SCO 3.2v4 cc rejects this. */
5446 char *t;
5447 char const *s = 0 ? (char *) 0 : (char const *) 0;
5448
5449 *t++ = 0;
7a197a62 5450 if (s) return 0;
ad6254c5
AK
5451 }
5452 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5453 int x[] = {25, 17};
5454 const int *foo = &x[0];
5455 ++foo;
5456 }
5457 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5458 typedef const int *iptr;
5459 iptr p = 0;
5460 ++p;
5461 }
5462 { /* AIX XL C 1.02.0.0 rejects this saying
5463 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5464 struct s { int j; const int *ap[3]; };
5465 struct s *b; b->j = 5;
5466 }
5467 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5468 const int foo = 10;
7a197a62 5469 if (!foo) return 0;
ad6254c5 5470 }
25fbec5b 5471 return !cs[0] && !zero.x;
ad6254c5
AK
5472#endif
5473
5474 ;
5475 return 0;
5476}
5477_ACEOF
5478rm -f conftest.$ac_objext
7a197a62
AK
5479if { (ac_try="$ac_compile"
5480case "(($ac_try" in
5481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5482 *) ac_try_echo=$ac_try;;
5483esac
ec6a6fbe
AK
5484eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5485$as_echo "$ac_try_echo") >&5
7a197a62 5486 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5487 ac_status=$?
8a2fc586
AK
5488 grep -v '^ *+' conftest.er1 >conftest.err
5489 rm -f conftest.er1
5490 cat conftest.err >&5
ec6a6fbe 5491 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5492 (exit $ac_status); } && {
5493 test -z "$ac_c_werror_flag" ||
5494 test ! -s conftest.err
5495 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5496 ac_cv_c_const=yes
5497else
ec6a6fbe 5498 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5499sed 's/^/| /' conftest.$ac_ext >&5
5500
7a197a62 5501 ac_cv_c_const=no
ad6254c5 5502fi
7a197a62
AK
5503
5504rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
80992638 5505fi
ec6a6fbe
AK
5506{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5507$as_echo "$ac_cv_c_const" >&6; }
ad6254c5 5508if test $ac_cv_c_const = no; then
80992638 5509
ad6254c5 5510cat >>confdefs.h <<\_ACEOF
ec6a6fbe 5511#define const /**/
ad6254c5 5512_ACEOF
80992638 5513
d3c8211f 5514fi
d3c8211f 5515
ec6a6fbe
AK
5516{ $as_echo "$as_me:$LINENO: checking for inline" >&5
5517$as_echo_n "checking for inline... " >&6; }
ad6254c5 5518if test "${ac_cv_c_inline+set}" = set; then
ec6a6fbe 5519 $as_echo_n "(cached) " >&6
8ef2b021 5520else
ad6254c5
AK
5521 ac_cv_c_inline=no
5522for ac_kw in inline __inline__ __inline; do
5523 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5524/* confdefs.h. */
5525_ACEOF
5526cat confdefs.h >>conftest.$ac_ext
5527cat >>conftest.$ac_ext <<_ACEOF
5528/* end confdefs.h. */
5529#ifndef __cplusplus
5530typedef int foo_t;
5531static $ac_kw foo_t static_foo () {return 0; }
5532$ac_kw foo_t foo () {return 0; }
5533#endif
80992638 5534
ad6254c5
AK
5535_ACEOF
5536rm -f conftest.$ac_objext
7a197a62
AK
5537if { (ac_try="$ac_compile"
5538case "(($ac_try" in
5539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5540 *) ac_try_echo=$ac_try;;
5541esac
ec6a6fbe
AK
5542eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5543$as_echo "$ac_try_echo") >&5
7a197a62 5544 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5545 ac_status=$?
8a2fc586
AK
5546 grep -v '^ *+' conftest.er1 >conftest.err
5547 rm -f conftest.er1
5548 cat conftest.err >&5
ec6a6fbe 5549 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5550 (exit $ac_status); } && {
5551 test -z "$ac_c_werror_flag" ||
5552 test ! -s conftest.err
5553 } && test -s conftest.$ac_objext; then
7a197a62 5554 ac_cv_c_inline=$ac_kw
ad6254c5 5555else
ec6a6fbe 5556 $as_echo "$as_me: failed program was:" >&5
ad6254c5 5557sed 's/^/| /' conftest.$ac_ext >&5
8ef2b021 5558
7a197a62 5559
8ce0cbda 5560fi
7a197a62
AK
5561
5562rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5563 test "$ac_cv_c_inline" != no && break
ad6254c5 5564done
8ce0cbda 5565
8ce0cbda 5566fi
ec6a6fbe
AK
5567{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5568$as_echo "$ac_cv_c_inline" >&6; }
8a2fc586
AK
5569
5570
ad6254c5
AK
5571case $ac_cv_c_inline in
5572 inline | yes) ;;
8a2fc586
AK
5573 *)
5574 case $ac_cv_c_inline in
5575 no) ac_val=;;
5576 *) ac_val=$ac_cv_c_inline;;
5577 esac
5578 cat >>confdefs.h <<_ACEOF
5579#ifndef __cplusplus
5580#define inline $ac_val
5581#endif
c1c065a3 5582_ACEOF
d0191583
JM
5583 ;;
5584esac
5585
ec6a6fbe
AK
5586{ $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
5587$as_echo_n "checking for struct stat.st_rdev... " >&6; }
d0191583 5588if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
ec6a6fbe 5589 $as_echo_n "(cached) " >&6
d0191583
JM
5590else
5591 cat >conftest.$ac_ext <<_ACEOF
5592/* confdefs.h. */
5593_ACEOF
5594cat confdefs.h >>conftest.$ac_ext
5595cat >>conftest.$ac_ext <<_ACEOF
5596/* end confdefs.h. */
5597$ac_includes_default
5598int
5599main ()
5600{
5601static struct stat ac_aggr;
5602if (ac_aggr.st_rdev)
5603return 0;
5604 ;
5605 return 0;
5606}
5607_ACEOF
5608rm -f conftest.$ac_objext
5609if { (ac_try="$ac_compile"
5610case "(($ac_try" in
5611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5612 *) ac_try_echo=$ac_try;;
5613esac
ec6a6fbe
AK
5614eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5615$as_echo "$ac_try_echo") >&5
5616 (eval "$ac_compile") 2>conftest.er1
5617 ac_status=$?
5618 grep -v '^ *+' conftest.er1 >conftest.err
5619 rm -f conftest.er1
5620 cat conftest.err >&5
5621 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5622 (exit $ac_status); } && {
5623 test -z "$ac_c_werror_flag" ||
5624 test ! -s conftest.err
5625 } && test -s conftest.$ac_objext; then
5626 ac_cv_member_struct_stat_st_rdev=yes
5627else
5628 $as_echo "$as_me: failed program was:" >&5
5629sed 's/^/| /' conftest.$ac_ext >&5
5630
5631 cat >conftest.$ac_ext <<_ACEOF
5632/* confdefs.h. */
5633_ACEOF
5634cat confdefs.h >>conftest.$ac_ext
5635cat >>conftest.$ac_ext <<_ACEOF
5636/* end confdefs.h. */
5637$ac_includes_default
5638int
5639main ()
5640{
5641static struct stat ac_aggr;
5642if (sizeof ac_aggr.st_rdev)
5643return 0;
5644 ;
5645 return 0;
5646}
5647_ACEOF
5648rm -f conftest.$ac_objext
5649if { (ac_try="$ac_compile"
5650case "(($ac_try" in
5651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5652 *) ac_try_echo=$ac_try;;
5653esac
5654eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5655$as_echo "$ac_try_echo") >&5
5656 (eval "$ac_compile") 2>conftest.er1
5657 ac_status=$?
5658 grep -v '^ *+' conftest.er1 >conftest.err
5659 rm -f conftest.er1
5660 cat conftest.err >&5
5661 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5662 (exit $ac_status); } && {
5663 test -z "$ac_c_werror_flag" ||
5664 test ! -s conftest.err
5665 } && test -s conftest.$ac_objext; then
5666 ac_cv_member_struct_stat_st_rdev=yes
5667else
5668 $as_echo "$as_me: failed program was:" >&5
5669sed 's/^/| /' conftest.$ac_ext >&5
5670
5671 ac_cv_member_struct_stat_st_rdev=no
5672fi
5673
5674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5675fi
5676
5677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5678fi
5679{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
5680$as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; }
5681if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then
5682
5683cat >>confdefs.h <<_ACEOF
5684#define HAVE_STRUCT_STAT_ST_RDEV 1
5685_ACEOF
5686
5687
5688fi
5689
5690{ $as_echo "$as_me:$LINENO: checking for off_t" >&5
5691$as_echo_n "checking for off_t... " >&6; }
5692if test "${ac_cv_type_off_t+set}" = set; then
5693 $as_echo_n "(cached) " >&6
5694else
5695 ac_cv_type_off_t=no
5696cat >conftest.$ac_ext <<_ACEOF
5697/* confdefs.h. */
5698_ACEOF
5699cat confdefs.h >>conftest.$ac_ext
5700cat >>conftest.$ac_ext <<_ACEOF
5701/* end confdefs.h. */
5702$ac_includes_default
5703int
5704main ()
5705{
5706if (sizeof (off_t))
5707 return 0;
5708 ;
5709 return 0;
5710}
5711_ACEOF
5712rm -f conftest.$ac_objext
5713if { (ac_try="$ac_compile"
5714case "(($ac_try" in
5715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5716 *) ac_try_echo=$ac_try;;
5717esac
5718eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5719$as_echo "$ac_try_echo") >&5
5720 (eval "$ac_compile") 2>conftest.er1
5721 ac_status=$?
5722 grep -v '^ *+' conftest.er1 >conftest.err
5723 rm -f conftest.er1
5724 cat conftest.err >&5
5725 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5726 (exit $ac_status); } && {
5727 test -z "$ac_c_werror_flag" ||
5728 test ! -s conftest.err
5729 } && test -s conftest.$ac_objext; then
5730 cat >conftest.$ac_ext <<_ACEOF
5731/* confdefs.h. */
5732_ACEOF
5733cat confdefs.h >>conftest.$ac_ext
5734cat >>conftest.$ac_ext <<_ACEOF
5735/* end confdefs.h. */
5736$ac_includes_default
5737int
5738main ()
5739{
5740if (sizeof ((off_t)))
5741 return 0;
5742 ;
5743 return 0;
5744}
5745_ACEOF
5746rm -f conftest.$ac_objext
5747if { (ac_try="$ac_compile"
5748case "(($ac_try" in
5749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5750 *) ac_try_echo=$ac_try;;
5751esac
5752eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5753$as_echo "$ac_try_echo") >&5
5754 (eval "$ac_compile") 2>conftest.er1
5755 ac_status=$?
5756 grep -v '^ *+' conftest.er1 >conftest.err
5757 rm -f conftest.er1
5758 cat conftest.err >&5
5759 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5760 (exit $ac_status); } && {
5761 test -z "$ac_c_werror_flag" ||
5762 test ! -s conftest.err
5763 } && test -s conftest.$ac_objext; then
5764 :
5765else
5766 $as_echo "$as_me: failed program was:" >&5
5767sed 's/^/| /' conftest.$ac_ext >&5
5768
5769 ac_cv_type_off_t=yes
5770fi
5771
5772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5773else
5774 $as_echo "$as_me: failed program was:" >&5
5775sed 's/^/| /' conftest.$ac_ext >&5
5776
5777
5778fi
5779
5780rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5781fi
5782{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5783$as_echo "$ac_cv_type_off_t" >&6; }
5784if test "x$ac_cv_type_off_t" = x""yes; then
5785 :
5786else
5787
5788cat >>confdefs.h <<_ACEOF
5789#define off_t long int
5790_ACEOF
5791
5792fi
5793
5794{ $as_echo "$as_me:$LINENO: checking for pid_t" >&5
5795$as_echo_n "checking for pid_t... " >&6; }
5796if test "${ac_cv_type_pid_t+set}" = set; then
5797 $as_echo_n "(cached) " >&6
5798else
5799 ac_cv_type_pid_t=no
5800cat >conftest.$ac_ext <<_ACEOF
5801/* confdefs.h. */
5802_ACEOF
5803cat confdefs.h >>conftest.$ac_ext
5804cat >>conftest.$ac_ext <<_ACEOF
5805/* end confdefs.h. */
5806$ac_includes_default
5807int
5808main ()
5809{
5810if (sizeof (pid_t))
5811 return 0;
5812 ;
5813 return 0;
5814}
5815_ACEOF
5816rm -f conftest.$ac_objext
5817if { (ac_try="$ac_compile"
5818case "(($ac_try" in
5819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5820 *) ac_try_echo=$ac_try;;
5821esac
5822eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5823$as_echo "$ac_try_echo") >&5
d0191583
JM
5824 (eval "$ac_compile") 2>conftest.er1
5825 ac_status=$?
5826 grep -v '^ *+' conftest.er1 >conftest.err
5827 rm -f conftest.er1
5828 cat conftest.err >&5
ec6a6fbe 5829 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
5830 (exit $ac_status); } && {
5831 test -z "$ac_c_werror_flag" ||
5832 test ! -s conftest.err
5833 } && test -s conftest.$ac_objext; then
ec6a6fbe 5834 cat >conftest.$ac_ext <<_ACEOF
d0191583
JM
5835/* confdefs.h. */
5836_ACEOF
5837cat confdefs.h >>conftest.$ac_ext
5838cat >>conftest.$ac_ext <<_ACEOF
5839/* end confdefs.h. */
5840$ac_includes_default
5841int
5842main ()
5843{
ec6a6fbe
AK
5844if (sizeof ((pid_t)))
5845 return 0;
d0191583
JM
5846 ;
5847 return 0;
5848}
5849_ACEOF
5850rm -f conftest.$ac_objext
5851if { (ac_try="$ac_compile"
5852case "(($ac_try" in
5853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5854 *) ac_try_echo=$ac_try;;
5855esac
ec6a6fbe
AK
5856eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5857$as_echo "$ac_try_echo") >&5
d0191583
JM
5858 (eval "$ac_compile") 2>conftest.er1
5859 ac_status=$?
5860 grep -v '^ *+' conftest.er1 >conftest.err
5861 rm -f conftest.er1
5862 cat conftest.err >&5
ec6a6fbe 5863 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
5864 (exit $ac_status); } && {
5865 test -z "$ac_c_werror_flag" ||
5866 test ! -s conftest.err
5867 } && test -s conftest.$ac_objext; then
ec6a6fbe 5868 :
d0191583 5869else
ec6a6fbe 5870 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
5871sed 's/^/| /' conftest.$ac_ext >&5
5872
ec6a6fbe 5873 ac_cv_type_pid_t=yes
d0191583
JM
5874fi
5875
5876rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
5877else
5878 $as_echo "$as_me: failed program was:" >&5
5879sed 's/^/| /' conftest.$ac_ext >&5
5880
5881
d0191583
JM
5882fi
5883
5884rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5885fi
ec6a6fbe
AK
5886{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
5887$as_echo "$ac_cv_type_pid_t" >&6; }
5888if test "x$ac_cv_type_pid_t" = x""yes; then
5889 :
5890else
d0191583
JM
5891
5892cat >>confdefs.h <<_ACEOF
ec6a6fbe 5893#define pid_t int
d0191583
JM
5894_ACEOF
5895
d0191583 5896fi
8ce0cbda 5897
ec6a6fbe
AK
5898{ $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5899$as_echo_n "checking return type of signal handlers... " >&6; }
5900if test "${ac_cv_type_signal+set}" = set; then
5901 $as_echo_n "(cached) " >&6
ad6254c5 5902else
b145d876
ZK
5903 cat >conftest.$ac_ext <<_ACEOF
5904/* confdefs.h. */
5905_ACEOF
5906cat confdefs.h >>conftest.$ac_ext
5907cat >>conftest.$ac_ext <<_ACEOF
5908/* end confdefs.h. */
ec6a6fbe
AK
5909#include <sys/types.h>
5910#include <signal.h>
5911
b145d876
ZK
5912int
5913main ()
5914{
ec6a6fbe 5915return *(signal (0, 0)) (0) == 1;
ad6254c5
AK
5916 ;
5917 return 0;
5918}
5919_ACEOF
5920rm -f conftest.$ac_objext
7a197a62
AK
5921if { (ac_try="$ac_compile"
5922case "(($ac_try" in
5923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5924 *) ac_try_echo=$ac_try;;
5925esac
ec6a6fbe
AK
5926eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5927$as_echo "$ac_try_echo") >&5
7a197a62 5928 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5929 ac_status=$?
8a2fc586
AK
5930 grep -v '^ *+' conftest.er1 >conftest.err
5931 rm -f conftest.er1
5932 cat conftest.err >&5
ec6a6fbe 5933 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5934 (exit $ac_status); } && {
5935 test -z "$ac_c_werror_flag" ||
5936 test ! -s conftest.err
5937 } && test -s conftest.$ac_objext; then
ec6a6fbe 5938 ac_cv_type_signal=int
b145d876 5939else
ec6a6fbe 5940 $as_echo "$as_me: failed program was:" >&5
b145d876
ZK
5941sed 's/^/| /' conftest.$ac_ext >&5
5942
ec6a6fbe 5943 ac_cv_type_signal=void
ad6254c5 5944fi
b145d876
ZK
5945
5946rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5947fi
ec6a6fbe
AK
5948{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
5949$as_echo "$ac_cv_type_signal" >&6; }
80992638 5950
ad6254c5 5951cat >>confdefs.h <<_ACEOF
ec6a6fbe 5952#define RETSIGTYPE $ac_cv_type_signal
ad6254c5 5953_ACEOF
199e490e 5954
b896caa1 5955
ec6a6fbe
AK
5956{ $as_echo "$as_me:$LINENO: checking for size_t" >&5
5957$as_echo_n "checking for size_t... " >&6; }
5958if test "${ac_cv_type_size_t+set}" = set; then
5959 $as_echo_n "(cached) " >&6
ad6254c5 5960else
ec6a6fbe
AK
5961 ac_cv_type_size_t=no
5962cat >conftest.$ac_ext <<_ACEOF
b145d876
ZK
5963/* confdefs.h. */
5964_ACEOF
5965cat confdefs.h >>conftest.$ac_ext
5966cat >>conftest.$ac_ext <<_ACEOF
5967/* end confdefs.h. */
5968$ac_includes_default
5969int
5970main ()
5971{
ec6a6fbe
AK
5972if (sizeof (size_t))
5973 return 0;
ad6254c5
AK
5974 ;
5975 return 0;
5976}
5977_ACEOF
5978rm -f conftest.$ac_objext
7a197a62
AK
5979if { (ac_try="$ac_compile"
5980case "(($ac_try" in
5981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5982 *) ac_try_echo=$ac_try;;
5983esac
ec6a6fbe
AK
5984eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5985$as_echo "$ac_try_echo") >&5
7a197a62 5986 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5987 ac_status=$?
8a2fc586
AK
5988 grep -v '^ *+' conftest.er1 >conftest.err
5989 rm -f conftest.er1
5990 cat conftest.err >&5
ec6a6fbe 5991 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5992 (exit $ac_status); } && {
5993 test -z "$ac_c_werror_flag" ||
5994 test ! -s conftest.err
5995 } && test -s conftest.$ac_objext; then
d0191583
JM
5996 cat >conftest.$ac_ext <<_ACEOF
5997/* confdefs.h. */
5998_ACEOF
5999cat confdefs.h >>conftest.$ac_ext
6000cat >>conftest.$ac_ext <<_ACEOF
6001/* end confdefs.h. */
ec6a6fbe 6002$ac_includes_default
d0191583
JM
6003int
6004main ()
6005{
ec6a6fbe
AK
6006if (sizeof ((size_t)))
6007 return 0;
d0191583
JM
6008 ;
6009 return 0;
6010}
6011_ACEOF
6012rm -f conftest.$ac_objext
6013if { (ac_try="$ac_compile"
6014case "(($ac_try" in
6015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6016 *) ac_try_echo=$ac_try;;
6017esac
ec6a6fbe
AK
6018eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6019$as_echo "$ac_try_echo") >&5
d0191583
JM
6020 (eval "$ac_compile") 2>conftest.er1
6021 ac_status=$?
6022 grep -v '^ *+' conftest.er1 >conftest.err
6023 rm -f conftest.er1
6024 cat conftest.err >&5
ec6a6fbe 6025 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
6026 (exit $ac_status); } && {
6027 test -z "$ac_c_werror_flag" ||
6028 test ! -s conftest.err
6029 } && test -s conftest.$ac_objext; then
ec6a6fbe 6030 :
d0191583 6031else
ec6a6fbe 6032 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
6033sed 's/^/| /' conftest.$ac_ext >&5
6034
ec6a6fbe
AK
6035 ac_cv_type_size_t=yes
6036fi
6037
6038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6039else
6040 $as_echo "$as_me: failed program was:" >&5
6041sed 's/^/| /' conftest.$ac_ext >&5
6042
6043
d0191583
JM
6044fi
6045
6046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6047fi
ec6a6fbe
AK
6048{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6049$as_echo "$ac_cv_type_size_t" >&6; }
6050if test "x$ac_cv_type_size_t" = x""yes; then
6051 :
6052else
d0191583
JM
6053
6054cat >>confdefs.h <<_ACEOF
ec6a6fbe 6055#define size_t unsigned int
d0191583
JM
6056_ACEOF
6057
ec6a6fbe 6058fi
d0191583 6059
ec6a6fbe
AK
6060{ $as_echo "$as_me:$LINENO: checking for mode_t" >&5
6061$as_echo_n "checking for mode_t... " >&6; }
6062if test "${ac_cv_type_mode_t+set}" = set; then
6063 $as_echo_n "(cached) " >&6
8106cdd5 6064else
ec6a6fbe
AK
6065 ac_cv_type_mode_t=no
6066cat >conftest.$ac_ext <<_ACEOF
b145d876
ZK
6067/* confdefs.h. */
6068_ACEOF
6069cat confdefs.h >>conftest.$ac_ext
6070cat >>conftest.$ac_ext <<_ACEOF
6071/* end confdefs.h. */
6072$ac_includes_default
6073int
6074main ()
6075{
ec6a6fbe
AK
6076if (sizeof (mode_t))
6077 return 0;
ad6254c5
AK
6078 ;
6079 return 0;
6080}
6081_ACEOF
6082rm -f conftest.$ac_objext
7a197a62
AK
6083if { (ac_try="$ac_compile"
6084case "(($ac_try" in
6085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6086 *) ac_try_echo=$ac_try;;
6087esac
ec6a6fbe
AK
6088eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6089$as_echo "$ac_try_echo") >&5
7a197a62 6090 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6091 ac_status=$?
8a2fc586
AK
6092 grep -v '^ *+' conftest.er1 >conftest.err
6093 rm -f conftest.er1
6094 cat conftest.err >&5
ec6a6fbe 6095 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6096 (exit $ac_status); } && {
6097 test -z "$ac_c_werror_flag" ||
6098 test ! -s conftest.err
6099 } && test -s conftest.$ac_objext; then
b145d876
ZK
6100 cat >conftest.$ac_ext <<_ACEOF
6101/* confdefs.h. */
6102_ACEOF
6103cat confdefs.h >>conftest.$ac_ext
6104cat >>conftest.$ac_ext <<_ACEOF
6105/* end confdefs.h. */
6106$ac_includes_default
6107int
6108main ()
6109{
ec6a6fbe
AK
6110if (sizeof ((mode_t)))
6111 return 0;
ad6254c5
AK
6112 ;
6113 return 0;
6114}
6115_ACEOF
6116rm -f conftest.$ac_objext
7a197a62
AK
6117if { (ac_try="$ac_compile"
6118case "(($ac_try" in
6119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6120 *) ac_try_echo=$ac_try;;
6121esac
ec6a6fbe
AK
6122eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6123$as_echo "$ac_try_echo") >&5
7a197a62 6124 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6125 ac_status=$?
8a2fc586
AK
6126 grep -v '^ *+' conftest.er1 >conftest.err
6127 rm -f conftest.er1
6128 cat conftest.err >&5
ec6a6fbe 6129 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6130 (exit $ac_status); } && {
6131 test -z "$ac_c_werror_flag" ||
6132 test ! -s conftest.err
6133 } && test -s conftest.$ac_objext; then
ec6a6fbe
AK
6134 :
6135else
6136 $as_echo "$as_me: failed program was:" >&5
6137sed 's/^/| /' conftest.$ac_ext >&5
6138
6139 ac_cv_type_mode_t=yes
6140fi
6141
6142rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fddafd51 6143else
ec6a6fbe 6144 $as_echo "$as_me: failed program was:" >&5
fddafd51
ZK
6145sed 's/^/| /' conftest.$ac_ext >&5
6146
ec6a6fbe 6147
80992638 6148fi
7a197a62
AK
6149
6150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 6151fi
ec6a6fbe
AK
6152{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6153$as_echo "$ac_cv_type_mode_t" >&6; }
6154if test "x$ac_cv_type_mode_t" = x""yes; then
ad6254c5
AK
6155 :
6156else
80992638 6157
ad6254c5
AK
6158cat >>confdefs.h <<_ACEOF
6159#define mode_t int
6160_ACEOF
6161
6162fi
6163
ec6a6fbe
AK
6164{ $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
6165$as_echo_n "checking for struct stat.st_rdev... " >&6; }
ad6254c5 6166if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
ec6a6fbe 6167 $as_echo_n "(cached) " >&6
ad6254c5
AK
6168else
6169 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6170/* confdefs.h. */
6171_ACEOF
6172cat confdefs.h >>conftest.$ac_ext
6173cat >>conftest.$ac_ext <<_ACEOF
6174/* end confdefs.h. */
6175$ac_includes_default
6176int
6177main ()
6178{
6179static struct stat ac_aggr;
6180if (ac_aggr.st_rdev)
6181return 0;
6182 ;
6183 return 0;
6184}
6185_ACEOF
6186rm -f conftest.$ac_objext
7a197a62
AK
6187if { (ac_try="$ac_compile"
6188case "(($ac_try" in
6189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6190 *) ac_try_echo=$ac_try;;
6191esac
ec6a6fbe
AK
6192eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6193$as_echo "$ac_try_echo") >&5
7a197a62 6194 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6195 ac_status=$?
8a2fc586
AK
6196 grep -v '^ *+' conftest.er1 >conftest.err
6197 rm -f conftest.er1
6198 cat conftest.err >&5
ec6a6fbe 6199 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6200 (exit $ac_status); } && {
6201 test -z "$ac_c_werror_flag" ||
6202 test ! -s conftest.err
6203 } && test -s conftest.$ac_objext; then
ad6254c5
AK
6204 ac_cv_member_struct_stat_st_rdev=yes
6205else
ec6a6fbe 6206 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6207sed 's/^/| /' conftest.$ac_ext >&5
6208
7a197a62 6209 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6210/* confdefs.h. */
6211_ACEOF
6212cat confdefs.h >>conftest.$ac_ext
6213cat >>conftest.$ac_ext <<_ACEOF
6214/* end confdefs.h. */
6215$ac_includes_default
6216int
6217main ()
6218{
6219static struct stat ac_aggr;
6220if (sizeof ac_aggr.st_rdev)
6221return 0;
6222 ;
6223 return 0;
6224}
6225_ACEOF
6226rm -f conftest.$ac_objext
7a197a62
AK
6227if { (ac_try="$ac_compile"
6228case "(($ac_try" in
6229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6230 *) ac_try_echo=$ac_try;;
6231esac
ec6a6fbe
AK
6232eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6233$as_echo "$ac_try_echo") >&5
7a197a62 6234 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6235 ac_status=$?
8a2fc586
AK
6236 grep -v '^ *+' conftest.er1 >conftest.err
6237 rm -f conftest.er1
6238 cat conftest.err >&5
ec6a6fbe 6239 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6240 (exit $ac_status); } && {
6241 test -z "$ac_c_werror_flag" ||
6242 test ! -s conftest.err
6243 } && test -s conftest.$ac_objext; then
ad6254c5
AK
6244 ac_cv_member_struct_stat_st_rdev=yes
6245else
ec6a6fbe 6246 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6247sed 's/^/| /' conftest.$ac_ext >&5
6248
7a197a62 6249 ac_cv_member_struct_stat_st_rdev=no
ad6254c5 6250fi
7a197a62
AK
6251
6252rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 6253fi
7a197a62
AK
6254
6255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 6256fi
ec6a6fbe
AK
6257{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
6258$as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; }
6259if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then
ad6254c5
AK
6260
6261cat >>confdefs.h <<_ACEOF
6262#define HAVE_STRUCT_STAT_ST_RDEV 1
6263_ACEOF
6264
6265
ad6254c5
AK
6266fi
6267
ec6a6fbe
AK
6268{ $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6269$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
ad6254c5 6270if test "${ac_cv_struct_tm+set}" = set; then
ec6a6fbe 6271 $as_echo_n "(cached) " >&6
ad6254c5
AK
6272else
6273 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6274/* confdefs.h. */
6275_ACEOF
6276cat confdefs.h >>conftest.$ac_ext
6277cat >>conftest.$ac_ext <<_ACEOF
6278/* end confdefs.h. */
6279#include <sys/types.h>
6280#include <time.h>
6281
6282int
6283main ()
6284{
25fbec5b
AK
6285struct tm tm;
6286 int *p = &tm.tm_sec;
ec6a6fbe 6287 return !p;
ad6254c5
AK
6288 ;
6289 return 0;
6290}
6291_ACEOF
6292rm -f conftest.$ac_objext
7a197a62
AK
6293if { (ac_try="$ac_compile"
6294case "(($ac_try" in
6295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6296 *) ac_try_echo=$ac_try;;
6297esac
ec6a6fbe
AK
6298eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6299$as_echo "$ac_try_echo") >&5
7a197a62 6300 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6301 ac_status=$?
8a2fc586
AK
6302 grep -v '^ *+' conftest.er1 >conftest.err
6303 rm -f conftest.er1
6304 cat conftest.err >&5
ec6a6fbe 6305 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6306 (exit $ac_status); } && {
6307 test -z "$ac_c_werror_flag" ||
6308 test ! -s conftest.err
6309 } && test -s conftest.$ac_objext; then
ad6254c5
AK
6310 ac_cv_struct_tm=time.h
6311else
ec6a6fbe 6312 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6313sed 's/^/| /' conftest.$ac_ext >&5
6314
7a197a62 6315 ac_cv_struct_tm=sys/time.h
ad6254c5 6316fi
7a197a62
AK
6317
6318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 6319fi
ec6a6fbe
AK
6320{ $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6321$as_echo "$ac_cv_struct_tm" >&6; }
ad6254c5
AK
6322if test $ac_cv_struct_tm = sys/time.h; then
6323
6324cat >>confdefs.h <<\_ACEOF
6325#define TM_IN_SYS_TIME 1
6326_ACEOF
6327
6328fi
809fae91 6329
795ca3e5 6330
80992638 6331################################################################################
ad6254c5
AK
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
d0191583
JM
6346
6347
6348
6349for ac_func in gethostname getpagesize memset mkdir rmdir munmap setlocale \
6350 strcasecmp strchr strdup strncasecmp strerror strrchr strstr strtol strtoul \
6351 uname
ad6254c5 6352do
ec6a6fbe
AK
6353as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6354{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6355$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 6356if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 6357 $as_echo_n "(cached) " >&6
795ca3e5 6358else
ad6254c5 6359 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6360/* confdefs.h. */
6361_ACEOF
6362cat confdefs.h >>conftest.$ac_ext
6363cat >>conftest.$ac_ext <<_ACEOF
6364/* end confdefs.h. */
8a2fc586
AK
6365/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6366 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6367#define $ac_func innocuous_$ac_func
6368
ad6254c5
AK
6369/* System header to define __stub macros and hopefully few prototypes,
6370 which can conflict with char $ac_func (); below.
6371 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6372 <limits.h> exists even on freestanding compilers. */
8a2fc586 6373
ad6254c5
AK
6374#ifdef __STDC__
6375# include <limits.h>
6376#else
6377# include <assert.h>
6378#endif
8a2fc586
AK
6379
6380#undef $ac_func
6381
7a197a62
AK
6382/* Override any GCC internal prototype to avoid an error.
6383 Use char because int might match the return type of a GCC
6384 builtin and then its argument prototype would still apply. */
ad6254c5
AK
6385#ifdef __cplusplus
6386extern "C"
ad6254c5 6387#endif
ad6254c5
AK
6388char $ac_func ();
6389/* The GNU C library defines this for functions which it implements
6390 to always fail with ENOSYS. Some functions are actually named
6391 something starting with __ and the normal name is an alias. */
7a197a62 6392#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 6393choke me
ad6254c5
AK
6394#endif
6395
6396int
6397main ()
6398{
7a197a62 6399return $ac_func ();
ad6254c5
AK
6400 ;
6401 return 0;
6402}
6403_ACEOF
6404rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
6405if { (ac_try="$ac_link"
6406case "(($ac_try" in
6407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6408 *) ac_try_echo=$ac_try;;
6409esac
ec6a6fbe
AK
6410eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6411$as_echo "$ac_try_echo") >&5
7a197a62 6412 (eval "$ac_link") 2>conftest.er1
ad6254c5 6413 ac_status=$?
8a2fc586
AK
6414 grep -v '^ *+' conftest.er1 >conftest.err
6415 rm -f conftest.er1
6416 cat conftest.err >&5
ec6a6fbe 6417 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6418 (exit $ac_status); } && {
6419 test -z "$ac_c_werror_flag" ||
6420 test ! -s conftest.err
ec6a6fbe
AK
6421 } && test -s conftest$ac_exeext && {
6422 test "$cross_compiling" = yes ||
6423 $as_test_x conftest$ac_exeext
6424 }; then
fc54be10
AK
6425 eval "$as_ac_var=yes"
6426else
ec6a6fbe 6427 $as_echo "$as_me: failed program was:" >&5
fc54be10
AK
6428sed 's/^/| /' conftest.$ac_ext >&5
6429
6430 eval "$as_ac_var=no"
6431fi
6432
ec6a6fbe 6433rm -rf conftest.dSYM
25fbec5b 6434rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
fc54be10
AK
6435 conftest$ac_exeext conftest.$ac_ext
6436fi
ec6a6fbe
AK
6437ac_res=`eval 'as_val=${'$as_ac_var'}
6438 $as_echo "$as_val"'`
6439 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6440$as_echo "$ac_res" >&6; }
6441as_val=`eval 'as_val=${'$as_ac_var'}
6442 $as_echo "$as_val"'`
6443 if test "x$as_val" = x""yes; then
ad6254c5 6444 cat >>confdefs.h <<_ACEOF
ec6a6fbe 6445#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
6446_ACEOF
6447
6448else
ec6a6fbe
AK
6449 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
6450$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5
AK
6451 { (exit 1); exit 1; }; }
6452fi
6453done
795ca3e5 6454
ad6254c5
AK
6455# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6456# for constant arguments. Useless!
ec6a6fbe
AK
6457{ $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
6458$as_echo_n "checking for working alloca.h... " >&6; }
ad6254c5 6459if test "${ac_cv_working_alloca_h+set}" = set; then
ec6a6fbe 6460 $as_echo_n "(cached) " >&6
ad6254c5
AK
6461else
6462 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6463/* confdefs.h. */
6464_ACEOF
6465cat confdefs.h >>conftest.$ac_ext
6466cat >>conftest.$ac_ext <<_ACEOF
6467/* end confdefs.h. */
6468#include <alloca.h>
6469int
6470main ()
6471{
6472char *p = (char *) alloca (2 * sizeof (int));
7a197a62 6473 if (p) return 0;
ad6254c5
AK
6474 ;
6475 return 0;
6476}
6477_ACEOF
6478rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
6479if { (ac_try="$ac_link"
6480case "(($ac_try" in
6481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6482 *) ac_try_echo=$ac_try;;
6483esac
ec6a6fbe
AK
6484eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6485$as_echo "$ac_try_echo") >&5
7a197a62 6486 (eval "$ac_link") 2>conftest.er1
ad6254c5 6487 ac_status=$?
8a2fc586
AK
6488 grep -v '^ *+' conftest.er1 >conftest.err
6489 rm -f conftest.er1
6490 cat conftest.err >&5
ec6a6fbe 6491 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6492 (exit $ac_status); } && {
6493 test -z "$ac_c_werror_flag" ||
6494 test ! -s conftest.err
ec6a6fbe
AK
6495 } && test -s conftest$ac_exeext && {
6496 test "$cross_compiling" = yes ||
6497 $as_test_x conftest$ac_exeext
6498 }; then
ad6254c5
AK
6499 ac_cv_working_alloca_h=yes
6500else
ec6a6fbe 6501 $as_echo "$as_me: failed program was:" >&5
ad6254c5 6502sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 6503
7a197a62 6504 ac_cv_working_alloca_h=no
ad6254c5 6505fi
7a197a62 6506
ec6a6fbe 6507rm -rf conftest.dSYM
25fbec5b 6508rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 6509 conftest$ac_exeext conftest.$ac_ext
ad6254c5 6510fi
ec6a6fbe
AK
6511{ $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6512$as_echo "$ac_cv_working_alloca_h" >&6; }
ad6254c5
AK
6513if test $ac_cv_working_alloca_h = yes; then
6514
6515cat >>confdefs.h <<\_ACEOF
6516#define HAVE_ALLOCA_H 1
6517_ACEOF
6518
6519fi
6520
ec6a6fbe
AK
6521{ $as_echo "$as_me:$LINENO: checking for alloca" >&5
6522$as_echo_n "checking for alloca... " >&6; }
ad6254c5 6523if test "${ac_cv_func_alloca_works+set}" = set; then
ec6a6fbe 6524 $as_echo_n "(cached) " >&6
ad6254c5
AK
6525else
6526 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6527/* confdefs.h. */
6528_ACEOF
6529cat confdefs.h >>conftest.$ac_ext
6530cat >>conftest.$ac_ext <<_ACEOF
6531/* end confdefs.h. */
6532#ifdef __GNUC__
6533# define alloca __builtin_alloca
6534#else
6535# ifdef _MSC_VER
6536# include <malloc.h>
6537# define alloca _alloca
6538# else
25fbec5b 6539# ifdef HAVE_ALLOCA_H
ad6254c5
AK
6540# include <alloca.h>
6541# else
6542# ifdef _AIX
6543 #pragma alloca
6544# else
6545# ifndef alloca /* predefined by HP cc +Olibcalls */
6546char *alloca ();
6547# endif
6548# endif
6549# endif
6550# endif
6551#endif
6552
6553int
6554main ()
6555{
6556char *p = (char *) alloca (1);
7a197a62 6557 if (p) return 0;
ad6254c5
AK
6558 ;
6559 return 0;
6560}
6561_ACEOF
6562rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
6563if { (ac_try="$ac_link"
6564case "(($ac_try" in
6565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6566 *) ac_try_echo=$ac_try;;
6567esac
ec6a6fbe
AK
6568eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6569$as_echo "$ac_try_echo") >&5
7a197a62 6570 (eval "$ac_link") 2>conftest.er1
ad6254c5 6571 ac_status=$?
8a2fc586
AK
6572 grep -v '^ *+' conftest.er1 >conftest.err
6573 rm -f conftest.er1
6574 cat conftest.err >&5
ec6a6fbe 6575 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6576 (exit $ac_status); } && {
6577 test -z "$ac_c_werror_flag" ||
6578 test ! -s conftest.err
ec6a6fbe
AK
6579 } && test -s conftest$ac_exeext && {
6580 test "$cross_compiling" = yes ||
6581 $as_test_x conftest$ac_exeext
6582 }; then
ad6254c5
AK
6583 ac_cv_func_alloca_works=yes
6584else
ec6a6fbe 6585 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6586sed 's/^/| /' conftest.$ac_ext >&5
6587
7a197a62 6588 ac_cv_func_alloca_works=no
ad6254c5 6589fi
7a197a62 6590
ec6a6fbe 6591rm -rf conftest.dSYM
25fbec5b 6592rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 6593 conftest$ac_exeext conftest.$ac_ext
ad6254c5 6594fi
ec6a6fbe
AK
6595{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6596$as_echo "$ac_cv_func_alloca_works" >&6; }
ad6254c5
AK
6597
6598if test $ac_cv_func_alloca_works = yes; then
6599
6600cat >>confdefs.h <<\_ACEOF
6601#define HAVE_ALLOCA 1
6602_ACEOF
6603
6604else
6605 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6606# that cause trouble. Some versions do not even contain alloca or
6607# contain a buggy version. If you still want to use their alloca,
6608# use ar to extract alloca.o from them instead of compiling alloca.c.
6609
7a197a62 6610ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
ad6254c5
AK
6611
6612cat >>confdefs.h <<\_ACEOF
6613#define C_ALLOCA 1
6614_ACEOF
6615
6616
ec6a6fbe
AK
6617{ $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6618$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
ad6254c5 6619if test "${ac_cv_os_cray+set}" = set; then
ec6a6fbe 6620 $as_echo_n "(cached) " >&6
ad6254c5
AK
6621else
6622 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6623/* confdefs.h. */
6624_ACEOF
6625cat confdefs.h >>conftest.$ac_ext
6626cat >>conftest.$ac_ext <<_ACEOF
6627/* end confdefs.h. */
7a197a62 6628#if defined CRAY && ! defined CRAY2
ad6254c5
AK
6629webecray
6630#else
6631wenotbecray
6632#endif
6633
6634_ACEOF
795ca3e5 6635if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ad6254c5
AK
6636 $EGREP "webecray" >/dev/null 2>&1; then
6637 ac_cv_os_cray=yes
6638else
6639 ac_cv_os_cray=no
795ca3e5
AK
6640fi
6641rm -f conftest*
6642
795ca3e5 6643fi
ec6a6fbe
AK
6644{ $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6645$as_echo "$ac_cv_os_cray" >&6; }
ad6254c5
AK
6646if test $ac_cv_os_cray = yes; then
6647 for ac_func in _getb67 GETB67 getb67; do
ec6a6fbe
AK
6648 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6649{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6650$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 6651if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 6652 $as_echo_n "(cached) " >&6
ad6254c5
AK
6653else
6654 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6655/* confdefs.h. */
6656_ACEOF
6657cat confdefs.h >>conftest.$ac_ext
6658cat >>conftest.$ac_ext <<_ACEOF
6659/* end confdefs.h. */
8a2fc586
AK
6660/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6661 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6662#define $ac_func innocuous_$ac_func
6663
ad6254c5
AK
6664/* System header to define __stub macros and hopefully few prototypes,
6665 which can conflict with char $ac_func (); below.
6666 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6667 <limits.h> exists even on freestanding compilers. */
8a2fc586 6668
ad6254c5
AK
6669#ifdef __STDC__
6670# include <limits.h>
6671#else
6672# include <assert.h>
6673#endif
8a2fc586
AK
6674
6675#undef $ac_func
6676
7a197a62
AK
6677/* Override any GCC internal prototype to avoid an error.
6678 Use char because int might match the return type of a GCC
6679 builtin and then its argument prototype would still apply. */
ad6254c5
AK
6680#ifdef __cplusplus
6681extern "C"
ad6254c5 6682#endif
ad6254c5
AK
6683char $ac_func ();
6684/* The GNU C library defines this for functions which it implements
6685 to always fail with ENOSYS. Some functions are actually named
6686 something starting with __ and the normal name is an alias. */
7a197a62 6687#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 6688choke me
ad6254c5
AK
6689#endif
6690
6691int
6692main ()
6693{
7a197a62 6694return $ac_func ();
ad6254c5
AK
6695 ;
6696 return 0;
6697}
6698_ACEOF
6699rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
6700if { (ac_try="$ac_link"
6701case "(($ac_try" in
6702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6703 *) ac_try_echo=$ac_try;;
6704esac
ec6a6fbe
AK
6705eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6706$as_echo "$ac_try_echo") >&5
7a197a62 6707 (eval "$ac_link") 2>conftest.er1
ad6254c5 6708 ac_status=$?
8a2fc586
AK
6709 grep -v '^ *+' conftest.er1 >conftest.err
6710 rm -f conftest.er1
6711 cat conftest.err >&5
ec6a6fbe 6712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6713 (exit $ac_status); } && {
6714 test -z "$ac_c_werror_flag" ||
6715 test ! -s conftest.err
ec6a6fbe
AK
6716 } && test -s conftest$ac_exeext && {
6717 test "$cross_compiling" = yes ||
6718 $as_test_x conftest$ac_exeext
6719 }; then
ad6254c5
AK
6720 eval "$as_ac_var=yes"
6721else
ec6a6fbe 6722 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6723sed 's/^/| /' conftest.$ac_ext >&5
6724
7a197a62 6725 eval "$as_ac_var=no"
ad6254c5 6726fi
7a197a62 6727
ec6a6fbe 6728rm -rf conftest.dSYM
25fbec5b 6729rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 6730 conftest$ac_exeext conftest.$ac_ext
ad6254c5 6731fi
ec6a6fbe
AK
6732ac_res=`eval 'as_val=${'$as_ac_var'}
6733 $as_echo "$as_val"'`
6734 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6735$as_echo "$ac_res" >&6; }
6736as_val=`eval 'as_val=${'$as_ac_var'}
6737 $as_echo "$as_val"'`
6738 if test "x$as_val" = x""yes; then
80992638 6739
ad6254c5
AK
6740cat >>confdefs.h <<_ACEOF
6741#define CRAY_STACKSEG_END $ac_func
6742_ACEOF
6743
6744 break
6745fi
6746
6747 done
6748fi
6749
ec6a6fbe
AK
6750{ $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6751$as_echo_n "checking stack direction for C alloca... " >&6; }
ad6254c5 6752if test "${ac_cv_c_stack_direction+set}" = set; then
ec6a6fbe 6753 $as_echo_n "(cached) " >&6
ad6254c5
AK
6754else
6755 if test "$cross_compiling" = yes; then
6756 ac_cv_c_stack_direction=0
6757else
6758 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6759/* confdefs.h. */
6760_ACEOF
6761cat confdefs.h >>conftest.$ac_ext
6762cat >>conftest.$ac_ext <<_ACEOF
6763/* end confdefs.h. */
7a197a62 6764$ac_includes_default
ad6254c5
AK
6765int
6766find_stack_direction ()
6767{
6768 static char *addr = 0;
6769 auto char dummy;
6770 if (addr == 0)
6771 {
6772 addr = &dummy;
6773 return find_stack_direction ();
6774 }
6775 else
6776 return (&dummy > addr) ? 1 : -1;
6777}
6778
6779int
6780main ()
6781{
7a197a62 6782 return find_stack_direction () < 0;
ad6254c5
AK
6783}
6784_ACEOF
6785rm -f conftest$ac_exeext
7a197a62
AK
6786if { (ac_try="$ac_link"
6787case "(($ac_try" in
6788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6789 *) ac_try_echo=$ac_try;;
6790esac
ec6a6fbe
AK
6791eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6792$as_echo "$ac_try_echo") >&5
7a197a62 6793 (eval "$ac_link") 2>&5
ad6254c5 6794 ac_status=$?
ec6a6fbe 6795 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 6796 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
6797 { (case "(($ac_try" in
6798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6799 *) ac_try_echo=$ac_try;;
6800esac
ec6a6fbe
AK
6801eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6802$as_echo "$ac_try_echo") >&5
7a197a62 6803 (eval "$ac_try") 2>&5
ad6254c5 6804 ac_status=$?
ec6a6fbe 6805 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
6806 (exit $ac_status); }; }; then
6807 ac_cv_c_stack_direction=1
6808else
ec6a6fbe
AK
6809 $as_echo "$as_me: program exited with status $ac_status" >&5
6810$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6811sed 's/^/| /' conftest.$ac_ext >&5
6812
6813( exit $ac_status )
6814ac_cv_c_stack_direction=-1
6815fi
ec6a6fbe 6816rm -rf conftest.dSYM
7a197a62 6817rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 6818fi
7a197a62
AK
6819
6820
ad6254c5 6821fi
ec6a6fbe
AK
6822{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6823$as_echo "$ac_cv_c_stack_direction" >&6; }
ad6254c5
AK
6824
6825cat >>confdefs.h <<_ACEOF
6826#define STACK_DIRECTION $ac_cv_c_stack_direction
6827_ACEOF
6828
6829
6830fi
6831
ec6a6fbe
AK
6832{ $as_echo "$as_me:$LINENO: checking whether closedir returns void" >&5
6833$as_echo_n "checking whether closedir returns void... " >&6; }
ad6254c5 6834if test "${ac_cv_func_closedir_void+set}" = set; then
ec6a6fbe 6835 $as_echo_n "(cached) " >&6
ad6254c5
AK
6836else
6837 if test "$cross_compiling" = yes; then
6838 ac_cv_func_closedir_void=yes
6839else
6840 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6841/* confdefs.h. */
6842_ACEOF
6843cat confdefs.h >>conftest.$ac_ext
6844cat >>conftest.$ac_ext <<_ACEOF
6845/* end confdefs.h. */
6846$ac_includes_default
6847#include <$ac_header_dirent>
6848#ifndef __cplusplus
6849int closedir ();
6850#endif
6851
6852int
6853main ()
6854{
7a197a62 6855return closedir (opendir (".")) != 0;
ad6254c5
AK
6856 ;
6857 return 0;
6858}
6859_ACEOF
6860rm -f conftest$ac_exeext
7a197a62
AK
6861if { (ac_try="$ac_link"
6862case "(($ac_try" in
6863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6864 *) ac_try_echo=$ac_try;;
6865esac
ec6a6fbe
AK
6866eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6867$as_echo "$ac_try_echo") >&5
7a197a62 6868 (eval "$ac_link") 2>&5
ad6254c5 6869 ac_status=$?
ec6a6fbe 6870 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 6871 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
6872 { (case "(($ac_try" in
6873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6874 *) ac_try_echo=$ac_try;;
6875esac
ec6a6fbe
AK
6876eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6877$as_echo "$ac_try_echo") >&5
7a197a62 6878 (eval "$ac_try") 2>&5
ad6254c5 6879 ac_status=$?
ec6a6fbe 6880 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
6881 (exit $ac_status); }; }; then
6882 ac_cv_func_closedir_void=no
6883else
ec6a6fbe
AK
6884 $as_echo "$as_me: program exited with status $ac_status" >&5
6885$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6886sed 's/^/| /' conftest.$ac_ext >&5
6887
6888( exit $ac_status )
6889ac_cv_func_closedir_void=yes
6890fi
ec6a6fbe 6891rm -rf conftest.dSYM
7a197a62 6892rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 6893fi
7a197a62
AK
6894
6895
ad6254c5 6896fi
ec6a6fbe
AK
6897{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
6898$as_echo "$ac_cv_func_closedir_void" >&6; }
ad6254c5
AK
6899if test $ac_cv_func_closedir_void = yes; then
6900
6901cat >>confdefs.h <<\_ACEOF
6902#define CLOSEDIR_VOID 1
6903_ACEOF
6904
6905fi
6906
6907
7a197a62 6908for ac_header in vfork.h
ad6254c5 6909do
ec6a6fbe 6910as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 6911if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
6912 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6913$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 6914if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 6915 $as_echo_n "(cached) " >&6
ad6254c5 6916fi
ec6a6fbe
AK
6917ac_res=`eval 'as_val=${'$as_ac_Header'}
6918 $as_echo "$as_val"'`
6919 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6920$as_echo "$ac_res" >&6; }
ad6254c5
AK
6921else
6922 # Is the header compilable?
ec6a6fbe
AK
6923{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6924$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 6925cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6926/* confdefs.h. */
6927_ACEOF
6928cat confdefs.h >>conftest.$ac_ext
6929cat >>conftest.$ac_ext <<_ACEOF
6930/* end confdefs.h. */
6931$ac_includes_default
6932#include <$ac_header>
6933_ACEOF
6934rm -f conftest.$ac_objext
7a197a62
AK
6935if { (ac_try="$ac_compile"
6936case "(($ac_try" in
6937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6938 *) ac_try_echo=$ac_try;;
6939esac
ec6a6fbe
AK
6940eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6941$as_echo "$ac_try_echo") >&5
7a197a62 6942 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6943 ac_status=$?
8a2fc586
AK
6944 grep -v '^ *+' conftest.er1 >conftest.err
6945 rm -f conftest.er1
6946 cat conftest.err >&5
ec6a6fbe 6947 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6948 (exit $ac_status); } && {
6949 test -z "$ac_c_werror_flag" ||
6950 test ! -s conftest.err
6951 } && test -s conftest.$ac_objext; then
ad6254c5
AK
6952 ac_header_compiler=yes
6953else
ec6a6fbe 6954 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6955sed 's/^/| /' conftest.$ac_ext >&5
6956
7a197a62 6957 ac_header_compiler=no
ad6254c5 6958fi
7a197a62
AK
6959
6960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
6961{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6962$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
6963
6964# Is the header present?
ec6a6fbe
AK
6965{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6966$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 6967cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6968/* confdefs.h. */
6969_ACEOF
6970cat confdefs.h >>conftest.$ac_ext
6971cat >>conftest.$ac_ext <<_ACEOF
6972/* end confdefs.h. */
6973#include <$ac_header>
6974_ACEOF
7a197a62
AK
6975if { (ac_try="$ac_cpp conftest.$ac_ext"
6976case "(($ac_try" in
6977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6978 *) ac_try_echo=$ac_try;;
6979esac
ec6a6fbe
AK
6980eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6981$as_echo "$ac_try_echo") >&5
7a197a62 6982 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
6983 ac_status=$?
6984 grep -v '^ *+' conftest.er1 >conftest.err
6985 rm -f conftest.er1
6986 cat conftest.err >&5
ec6a6fbe 6987 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6988 (exit $ac_status); } >/dev/null && {
6989 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6990 test ! -s conftest.err
6991 }; then
ad6254c5
AK
6992 ac_header_preproc=yes
6993else
ec6a6fbe 6994 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6995sed 's/^/| /' conftest.$ac_ext >&5
6996
6997 ac_header_preproc=no
6998fi
7a197a62 6999
ad6254c5 7000rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
7001{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7002$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
7003
7004# So? What about this header?
8a2fc586
AK
7005case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7006 yes:no: )
ec6a6fbe
AK
7007 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7008$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7009 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7010$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 7011 ac_header_preproc=yes
ad6254c5 7012 ;;
8a2fc586 7013 no:yes:* )
ec6a6fbe
AK
7014 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7015$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7016 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7017$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7018 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7019$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7020 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7021$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7022 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7023$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7024 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7025$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 7026
ad6254c5
AK
7027 ;;
7028esac
ec6a6fbe
AK
7029{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7030$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 7031if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 7032 $as_echo_n "(cached) " >&6
ad6254c5 7033else
8a2fc586 7034 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 7035fi
ec6a6fbe
AK
7036ac_res=`eval 'as_val=${'$as_ac_Header'}
7037 $as_echo "$as_val"'`
7038 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7039$as_echo "$ac_res" >&6; }
ad6254c5 7040
795ca3e5 7041fi
ec6a6fbe
AK
7042as_val=`eval 'as_val=${'$as_ac_Header'}
7043 $as_echo "$as_val"'`
7044 if test "x$as_val" = x""yes; then
ad6254c5 7045 cat >>confdefs.h <<_ACEOF
ec6a6fbe 7046#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
7047_ACEOF
7048
7049fi
7050
7051done
795ca3e5 7052
ad6254c5
AK
7053
7054
7055for ac_func in fork vfork
7056do
ec6a6fbe
AK
7057as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7058{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7059$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 7060if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 7061 $as_echo_n "(cached) " >&6
795ca3e5 7062else
ad6254c5 7063 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7064/* confdefs.h. */
7065_ACEOF
7066cat confdefs.h >>conftest.$ac_ext
7067cat >>conftest.$ac_ext <<_ACEOF
7068/* end confdefs.h. */
8a2fc586
AK
7069/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7070 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7071#define $ac_func innocuous_$ac_func
7072
ad6254c5
AK
7073/* System header to define __stub macros and hopefully few prototypes,
7074 which can conflict with char $ac_func (); below.
7075 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7076 <limits.h> exists even on freestanding compilers. */
8a2fc586 7077
ad6254c5
AK
7078#ifdef __STDC__
7079# include <limits.h>
7080#else
7081# include <assert.h>
795ca3e5 7082#endif
8a2fc586
AK
7083
7084#undef $ac_func
7085
7a197a62
AK
7086/* Override any GCC internal prototype to avoid an error.
7087 Use char because int might match the return type of a GCC
7088 builtin and then its argument prototype would still apply. */
795ca3e5 7089#ifdef __cplusplus
ad6254c5 7090extern "C"
ad6254c5 7091#endif
ad6254c5
AK
7092char $ac_func ();
7093/* The GNU C library defines this for functions which it implements
7094 to always fail with ENOSYS. Some functions are actually named
7095 something starting with __ and the normal name is an alias. */
7a197a62 7096#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 7097choke me
795ca3e5
AK
7098#endif
7099
ad6254c5
AK
7100int
7101main ()
7102{
7a197a62 7103return $ac_func ();
ad6254c5
AK
7104 ;
7105 return 0;
7106}
7107_ACEOF
7108rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
7109if { (ac_try="$ac_link"
7110case "(($ac_try" in
7111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7112 *) ac_try_echo=$ac_try;;
7113esac
ec6a6fbe
AK
7114eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7115$as_echo "$ac_try_echo") >&5
7a197a62 7116 (eval "$ac_link") 2>conftest.er1
ad6254c5 7117 ac_status=$?
8a2fc586
AK
7118 grep -v '^ *+' conftest.er1 >conftest.err
7119 rm -f conftest.er1
7120 cat conftest.err >&5
ec6a6fbe 7121 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7122 (exit $ac_status); } && {
7123 test -z "$ac_c_werror_flag" ||
7124 test ! -s conftest.err
ec6a6fbe
AK
7125 } && test -s conftest$ac_exeext && {
7126 test "$cross_compiling" = yes ||
7127 $as_test_x conftest$ac_exeext
7128 }; then
ad6254c5 7129 eval "$as_ac_var=yes"
795ca3e5 7130else
ec6a6fbe 7131 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7132sed 's/^/| /' conftest.$ac_ext >&5
7133
7a197a62 7134 eval "$as_ac_var=no"
795ca3e5 7135fi
7a197a62 7136
ec6a6fbe 7137rm -rf conftest.dSYM
25fbec5b 7138rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 7139 conftest$ac_exeext conftest.$ac_ext
ad6254c5 7140fi
ec6a6fbe
AK
7141ac_res=`eval 'as_val=${'$as_ac_var'}
7142 $as_echo "$as_val"'`
7143 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7144$as_echo "$ac_res" >&6; }
7145as_val=`eval 'as_val=${'$as_ac_var'}
7146 $as_echo "$as_val"'`
7147 if test "x$as_val" = x""yes; then
ad6254c5 7148 cat >>confdefs.h <<_ACEOF
ec6a6fbe 7149#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
7150_ACEOF
7151
7152fi
7153done
7154
7155if test "x$ac_cv_func_fork" = xyes; then
ec6a6fbe
AK
7156 { $as_echo "$as_me:$LINENO: checking for working fork" >&5
7157$as_echo_n "checking for working fork... " >&6; }
ad6254c5 7158if test "${ac_cv_func_fork_works+set}" = set; then
ec6a6fbe 7159 $as_echo_n "(cached) " >&6
ad6254c5
AK
7160else
7161 if test "$cross_compiling" = yes; then
7162 ac_cv_func_fork_works=cross
7163else
7164 cat >conftest.$ac_ext <<_ACEOF
7a197a62
AK
7165/* confdefs.h. */
7166_ACEOF
7167cat confdefs.h >>conftest.$ac_ext
7168cat >>conftest.$ac_ext <<_ACEOF
7169/* end confdefs.h. */
7170$ac_includes_default
7171int
7172main ()
7173{
7174
7175 /* By Ruediger Kuhlmann. */
7176 return fork () < 0;
7177
7178 ;
7179 return 0;
7180}
ad6254c5
AK
7181_ACEOF
7182rm -f conftest$ac_exeext
7a197a62
AK
7183if { (ac_try="$ac_link"
7184case "(($ac_try" in
7185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7186 *) ac_try_echo=$ac_try;;
7187esac
ec6a6fbe
AK
7188eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7189$as_echo "$ac_try_echo") >&5
7a197a62 7190 (eval "$ac_link") 2>&5
ad6254c5 7191 ac_status=$?
ec6a6fbe 7192 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7193 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7194 { (case "(($ac_try" in
7195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7196 *) ac_try_echo=$ac_try;;
7197esac
ec6a6fbe
AK
7198eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7199$as_echo "$ac_try_echo") >&5
7a197a62 7200 (eval "$ac_try") 2>&5
ad6254c5 7201 ac_status=$?
ec6a6fbe 7202 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7203 (exit $ac_status); }; }; then
7204 ac_cv_func_fork_works=yes
7205else
ec6a6fbe
AK
7206 $as_echo "$as_me: program exited with status $ac_status" >&5
7207$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7208sed 's/^/| /' conftest.$ac_ext >&5
7209
7210( exit $ac_status )
7211ac_cv_func_fork_works=no
7212fi
ec6a6fbe 7213rm -rf conftest.dSYM
7a197a62 7214rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7215fi
7a197a62
AK
7216
7217
ad6254c5 7218fi
ec6a6fbe
AK
7219{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
7220$as_echo "$ac_cv_func_fork_works" >&6; }
ad6254c5
AK
7221
7222else
7223 ac_cv_func_fork_works=$ac_cv_func_fork
7224fi
7225if test "x$ac_cv_func_fork_works" = xcross; then
7226 case $host in
7227 *-*-amigaos* | *-*-msdosdjgpp*)
7228 # Override, as these systems have only a dummy fork() stub
7229 ac_cv_func_fork_works=no
7230 ;;
7231 *)
7232 ac_cv_func_fork_works=yes
7233 ;;
7234 esac
ec6a6fbe
AK
7235 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
7236$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
ad6254c5
AK
7237fi
7238ac_cv_func_vfork_works=$ac_cv_func_vfork
7239if test "x$ac_cv_func_vfork" = xyes; then
ec6a6fbe
AK
7240 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
7241$as_echo_n "checking for working vfork... " >&6; }
ad6254c5 7242if test "${ac_cv_func_vfork_works+set}" = set; then
ec6a6fbe 7243 $as_echo_n "(cached) " >&6
ad6254c5
AK
7244else
7245 if test "$cross_compiling" = yes; then
7246 ac_cv_func_vfork_works=cross
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. */
7254/* Thanks to Paul Eggert for this test. */
7a197a62 7255$ac_includes_default
ad6254c5 7256#include <sys/wait.h>
25fbec5b 7257#ifdef HAVE_VFORK_H
ad6254c5
AK
7258# include <vfork.h>
7259#endif
7260/* On some sparc systems, changes by the child to local and incoming
7261 argument registers are propagated back to the parent. The compiler
7262 is told about this with #include <vfork.h>, but some compilers
7263 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
7264 static variable whose address is put into a register that is
7265 clobbered by the vfork. */
7266static void
7267#ifdef __cplusplus
7268sparc_address_test (int arg)
7269# else
7270sparc_address_test (arg) int arg;
7271#endif
7272{
7273 static pid_t child;
7274 if (!child) {
7275 child = vfork ();
7276 if (child < 0) {
7277 perror ("vfork");
7278 _exit(2);
7279 }
7280 if (!child) {
7281 arg = getpid();
7282 write(-1, "", 0);
7283 _exit (arg);
7284 }
7285 }
7286}
7287
7288int
7289main ()
7290{
7291 pid_t parent = getpid ();
7292 pid_t child;
7293
7294 sparc_address_test (0);
7295
7296 child = vfork ();
7297
7298 if (child == 0) {
7299 /* Here is another test for sparc vfork register problems. This
7300 test uses lots of local variables, at least as many local
7301 variables as main has allocated so far including compiler
7302 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
7303 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
7304 reuse the register of parent for one of the local variables,
7305 since it will think that parent can't possibly be used any more
7306 in this routine. Assigning to the local variable will thus
7307 munge parent in the parent process. */
7308 pid_t
7309 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
7310 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
7311 /* Convince the compiler that p..p7 are live; otherwise, it might
7312 use the same hardware register for all 8 local variables. */
7313 if (p != p1 || p != p2 || p != p3 || p != p4
7314 || p != p5 || p != p6 || p != p7)
7315 _exit(1);
7316
7317 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
7318 from child file descriptors. If the child closes a descriptor
7319 before it execs or exits, this munges the parent's descriptor
7320 as well. Test for this by closing stdout in the child. */
7321 _exit(close(fileno(stdout)) != 0);
7322 } else {
7323 int status;
7324 struct stat st;
7325
7326 while (wait(&status) != child)
7327 ;
7a197a62 7328 return (
ad6254c5
AK
7329 /* Was there some problem with vforking? */
7330 child < 0
7331
7332 /* Did the child fail? (This shouldn't happen.) */
7333 || status
7334
7335 /* Did the vfork/compiler bug occur? */
7336 || parent != getpid()
7337
7338 /* Did the file descriptor bug occur? */
7339 || fstat(fileno(stdout), &st) != 0
7340 );
7341 }
7342}
7343_ACEOF
7344rm -f conftest$ac_exeext
7a197a62
AK
7345if { (ac_try="$ac_link"
7346case "(($ac_try" in
7347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7348 *) ac_try_echo=$ac_try;;
7349esac
ec6a6fbe
AK
7350eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7351$as_echo "$ac_try_echo") >&5
7a197a62 7352 (eval "$ac_link") 2>&5
ad6254c5 7353 ac_status=$?
ec6a6fbe 7354 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7355 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7356 { (case "(($ac_try" in
7357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7358 *) ac_try_echo=$ac_try;;
7359esac
ec6a6fbe
AK
7360eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7361$as_echo "$ac_try_echo") >&5
7a197a62 7362 (eval "$ac_try") 2>&5
ad6254c5 7363 ac_status=$?
ec6a6fbe 7364 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7365 (exit $ac_status); }; }; then
7366 ac_cv_func_vfork_works=yes
7367else
ec6a6fbe
AK
7368 $as_echo "$as_me: program exited with status $ac_status" >&5
7369$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7370sed 's/^/| /' conftest.$ac_ext >&5
7371
7372( exit $ac_status )
7373ac_cv_func_vfork_works=no
7374fi
ec6a6fbe 7375rm -rf conftest.dSYM
7a197a62 7376rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7377fi
7a197a62
AK
7378
7379
ad6254c5 7380fi
ec6a6fbe
AK
7381{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
7382$as_echo "$ac_cv_func_vfork_works" >&6; }
ad6254c5
AK
7383
7384fi;
7385if test "x$ac_cv_func_fork_works" = xcross; then
8a2fc586 7386 ac_cv_func_vfork_works=$ac_cv_func_vfork
ec6a6fbe
AK
7387 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
7388$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
ad6254c5
AK
7389fi
7390
7391if test "x$ac_cv_func_vfork_works" = xyes; then
7392
7393cat >>confdefs.h <<\_ACEOF
7394#define HAVE_WORKING_VFORK 1
7395_ACEOF
7396
7397else
7398
7399cat >>confdefs.h <<\_ACEOF
7400#define vfork fork
7401_ACEOF
7402
7403fi
7404if test "x$ac_cv_func_fork_works" = xyes; then
7405
7406cat >>confdefs.h <<\_ACEOF
7407#define HAVE_WORKING_FORK 1
7408_ACEOF
7409
7410fi
7411
ec6a6fbe
AK
7412{ $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
7413$as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
ad6254c5 7414if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
ec6a6fbe 7415 $as_echo_n "(cached) " >&6
ad6254c5
AK
7416else
7417 rm -f conftest.sym conftest.file
7418echo >conftest.file
7419if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
7420 if test "$cross_compiling" = yes; then
7421 ac_cv_func_lstat_dereferences_slashed_symlink=no
7422else
7423 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7424/* confdefs.h. */
7425_ACEOF
7426cat confdefs.h >>conftest.$ac_ext
7427cat >>conftest.$ac_ext <<_ACEOF
7428/* end confdefs.h. */
7429$ac_includes_default
7430int
7431main ()
7432{
7433struct stat sbuf;
7434 /* Linux will dereference the symlink and fail.
8a2fc586
AK
7435 That is better in the sense that it means we will not
7436 have to compile and use the lstat wrapper. */
7a197a62 7437 return lstat ("conftest.sym/", &sbuf) == 0;
ad6254c5
AK
7438 ;
7439 return 0;
7440}
7441_ACEOF
7442rm -f conftest$ac_exeext
7a197a62
AK
7443if { (ac_try="$ac_link"
7444case "(($ac_try" in
7445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7446 *) ac_try_echo=$ac_try;;
7447esac
ec6a6fbe
AK
7448eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7449$as_echo "$ac_try_echo") >&5
7a197a62 7450 (eval "$ac_link") 2>&5
ad6254c5 7451 ac_status=$?
ec6a6fbe 7452 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7453 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7454 { (case "(($ac_try" in
7455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7456 *) ac_try_echo=$ac_try;;
7457esac
ec6a6fbe
AK
7458eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7459$as_echo "$ac_try_echo") >&5
7a197a62 7460 (eval "$ac_try") 2>&5
ad6254c5 7461 ac_status=$?
ec6a6fbe 7462 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7463 (exit $ac_status); }; }; then
7464 ac_cv_func_lstat_dereferences_slashed_symlink=yes
7465else
ec6a6fbe
AK
7466 $as_echo "$as_me: program exited with status $ac_status" >&5
7467$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7468sed 's/^/| /' conftest.$ac_ext >&5
7469
7470( exit $ac_status )
7471ac_cv_func_lstat_dereferences_slashed_symlink=no
7472fi
ec6a6fbe 7473rm -rf conftest.dSYM
7a197a62 7474rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7475fi
7a197a62
AK
7476
7477
ad6254c5
AK
7478else
7479 # If the `ln -s' command failed, then we probably don't even
7480 # have an lstat function.
7481 ac_cv_func_lstat_dereferences_slashed_symlink=no
7482fi
7483rm -f conftest.sym conftest.file
7484
7485fi
ec6a6fbe
AK
7486{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
7487$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
ad6254c5
AK
7488
7489test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
7490
7491cat >>confdefs.h <<_ACEOF
7492#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
7493_ACEOF
7494
7495
7496if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
7a197a62 7497 case " $LIBOBJS " in
8a2fc586 7498 *" lstat.$ac_objext "* ) ;;
7a197a62
AK
7499 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
7500 ;;
8a2fc586
AK
7501esac
7502
ad6254c5
AK
7503fi
7504
ec6a6fbe
AK
7505{ $as_echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
7506$as_echo_n "checking whether lstat accepts an empty string... " >&6; }
ad6254c5 7507if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
ec6a6fbe 7508 $as_echo_n "(cached) " >&6
ad6254c5
AK
7509else
7510 if test "$cross_compiling" = yes; then
7511 ac_cv_func_lstat_empty_string_bug=yes
7512else
7513 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7514/* confdefs.h. */
7515_ACEOF
7516cat confdefs.h >>conftest.$ac_ext
7517cat >>conftest.$ac_ext <<_ACEOF
7518/* end confdefs.h. */
7519$ac_includes_default
7520int
7521main ()
7522{
7523struct stat sbuf;
7a197a62 7524 return lstat ("", &sbuf) == 0;
ad6254c5
AK
7525 ;
7526 return 0;
7527}
7528_ACEOF
7529rm -f conftest$ac_exeext
7a197a62
AK
7530if { (ac_try="$ac_link"
7531case "(($ac_try" in
7532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7533 *) ac_try_echo=$ac_try;;
7534esac
ec6a6fbe
AK
7535eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7536$as_echo "$ac_try_echo") >&5
7a197a62 7537 (eval "$ac_link") 2>&5
ad6254c5 7538 ac_status=$?
ec6a6fbe 7539 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7540 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7541 { (case "(($ac_try" in
7542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7543 *) ac_try_echo=$ac_try;;
7544esac
ec6a6fbe
AK
7545eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7546$as_echo "$ac_try_echo") >&5
7a197a62 7547 (eval "$ac_try") 2>&5
ad6254c5 7548 ac_status=$?
ec6a6fbe 7549 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7550 (exit $ac_status); }; }; then
7a197a62 7551 ac_cv_func_lstat_empty_string_bug=no
ad6254c5 7552else
ec6a6fbe
AK
7553 $as_echo "$as_me: program exited with status $ac_status" >&5
7554$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7555sed 's/^/| /' conftest.$ac_ext >&5
7556
7557( exit $ac_status )
7a197a62 7558ac_cv_func_lstat_empty_string_bug=yes
ad6254c5 7559fi
ec6a6fbe 7560rm -rf conftest.dSYM
7a197a62 7561rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7562fi
7a197a62
AK
7563
7564
ad6254c5 7565fi
ec6a6fbe
AK
7566{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
7567$as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
ad6254c5 7568if test $ac_cv_func_lstat_empty_string_bug = yes; then
7a197a62 7569 case " $LIBOBJS " in
8a2fc586 7570 *" lstat.$ac_objext "* ) ;;
7a197a62
AK
7571 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
7572 ;;
8a2fc586
AK
7573esac
7574
ad6254c5
AK
7575
7576cat >>confdefs.h <<_ACEOF
7577#define HAVE_LSTAT_EMPTY_STRING_BUG 1
7578_ACEOF
7579
7580fi
7581
7582
7583for ac_header in stdlib.h
7584do
ec6a6fbe 7585as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 7586if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
7587 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7588$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 7589if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 7590 $as_echo_n "(cached) " >&6
ad6254c5 7591fi
ec6a6fbe
AK
7592ac_res=`eval 'as_val=${'$as_ac_Header'}
7593 $as_echo "$as_val"'`
7594 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7595$as_echo "$ac_res" >&6; }
ad6254c5
AK
7596else
7597 # Is the header compilable?
ec6a6fbe
AK
7598{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7599$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 7600cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7601/* confdefs.h. */
7602_ACEOF
7603cat confdefs.h >>conftest.$ac_ext
7604cat >>conftest.$ac_ext <<_ACEOF
7605/* end confdefs.h. */
7606$ac_includes_default
7607#include <$ac_header>
7608_ACEOF
7609rm -f conftest.$ac_objext
7a197a62
AK
7610if { (ac_try="$ac_compile"
7611case "(($ac_try" in
7612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7613 *) ac_try_echo=$ac_try;;
7614esac
ec6a6fbe
AK
7615eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7616$as_echo "$ac_try_echo") >&5
7a197a62 7617 (eval "$ac_compile") 2>conftest.er1
ad6254c5 7618 ac_status=$?
8a2fc586
AK
7619 grep -v '^ *+' conftest.er1 >conftest.err
7620 rm -f conftest.er1
7621 cat conftest.err >&5
ec6a6fbe 7622 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7623 (exit $ac_status); } && {
7624 test -z "$ac_c_werror_flag" ||
7625 test ! -s conftest.err
7626 } && test -s conftest.$ac_objext; then
ad6254c5
AK
7627 ac_header_compiler=yes
7628else
ec6a6fbe 7629 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7630sed 's/^/| /' conftest.$ac_ext >&5
7631
7a197a62 7632 ac_header_compiler=no
ad6254c5 7633fi
7a197a62
AK
7634
7635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
7636{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7637$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
7638
7639# Is the header present?
ec6a6fbe
AK
7640{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7641$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 7642cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7643/* confdefs.h. */
7644_ACEOF
7645cat confdefs.h >>conftest.$ac_ext
7646cat >>conftest.$ac_ext <<_ACEOF
7647/* end confdefs.h. */
7648#include <$ac_header>
7649_ACEOF
7a197a62
AK
7650if { (ac_try="$ac_cpp conftest.$ac_ext"
7651case "(($ac_try" in
7652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7653 *) ac_try_echo=$ac_try;;
7654esac
ec6a6fbe
AK
7655eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7656$as_echo "$ac_try_echo") >&5
7a197a62 7657 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
7658 ac_status=$?
7659 grep -v '^ *+' conftest.er1 >conftest.err
7660 rm -f conftest.er1
7661 cat conftest.err >&5
ec6a6fbe 7662 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7663 (exit $ac_status); } >/dev/null && {
7664 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7665 test ! -s conftest.err
7666 }; then
ad6254c5
AK
7667 ac_header_preproc=yes
7668else
ec6a6fbe 7669 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7670sed 's/^/| /' conftest.$ac_ext >&5
7671
7672 ac_header_preproc=no
7673fi
7a197a62 7674
ad6254c5 7675rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
7676{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7677$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
7678
7679# So? What about this header?
8a2fc586
AK
7680case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7681 yes:no: )
ec6a6fbe
AK
7682 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7683$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7684 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7685$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 7686 ac_header_preproc=yes
ad6254c5 7687 ;;
8a2fc586 7688 no:yes:* )
ec6a6fbe
AK
7689 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7690$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7691 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7692$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7693 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7694$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7695 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7696$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7697 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7698$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7699 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7700$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 7701
ad6254c5
AK
7702 ;;
7703esac
ec6a6fbe
AK
7704{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7705$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 7706if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 7707 $as_echo_n "(cached) " >&6
ad6254c5 7708else
8a2fc586 7709 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 7710fi
ec6a6fbe
AK
7711ac_res=`eval 'as_val=${'$as_ac_Header'}
7712 $as_echo "$as_val"'`
7713 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7714$as_echo "$ac_res" >&6; }
ad6254c5
AK
7715
7716fi
ec6a6fbe
AK
7717as_val=`eval 'as_val=${'$as_ac_Header'}
7718 $as_echo "$as_val"'`
7719 if test "x$as_val" = x""yes; then
ad6254c5 7720 cat >>confdefs.h <<_ACEOF
ec6a6fbe 7721#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
7722_ACEOF
7723
7724fi
7725
7726done
7727
ec6a6fbe
AK
7728{ $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
7729$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
ad6254c5 7730if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
ec6a6fbe 7731 $as_echo_n "(cached) " >&6
ad6254c5
AK
7732else
7733 if test "$cross_compiling" = yes; then
7734 ac_cv_func_malloc_0_nonnull=no
7735else
7736 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7737/* confdefs.h. */
7738_ACEOF
7739cat confdefs.h >>conftest.$ac_ext
7740cat >>conftest.$ac_ext <<_ACEOF
7741/* end confdefs.h. */
25fbec5b 7742#if defined STDC_HEADERS || defined HAVE_STDLIB_H
ad6254c5
AK
7743# include <stdlib.h>
7744#else
7745char *malloc ();
7746#endif
7747
7748int
7749main ()
7750{
7a197a62 7751return ! malloc (0);
ad6254c5
AK
7752 ;
7753 return 0;
7754}
7755_ACEOF
7756rm -f conftest$ac_exeext
7a197a62
AK
7757if { (ac_try="$ac_link"
7758case "(($ac_try" in
7759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7760 *) ac_try_echo=$ac_try;;
7761esac
ec6a6fbe
AK
7762eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7763$as_echo "$ac_try_echo") >&5
7a197a62 7764 (eval "$ac_link") 2>&5
ad6254c5 7765 ac_status=$?
ec6a6fbe 7766 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7767 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7768 { (case "(($ac_try" in
7769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7770 *) ac_try_echo=$ac_try;;
7771esac
ec6a6fbe
AK
7772eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7773$as_echo "$ac_try_echo") >&5
7a197a62 7774 (eval "$ac_try") 2>&5
ad6254c5 7775 ac_status=$?
ec6a6fbe 7776 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7777 (exit $ac_status); }; }; then
7778 ac_cv_func_malloc_0_nonnull=yes
7779else
ec6a6fbe
AK
7780 $as_echo "$as_me: program exited with status $ac_status" >&5
7781$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7782sed 's/^/| /' conftest.$ac_ext >&5
7783
7784( exit $ac_status )
7785ac_cv_func_malloc_0_nonnull=no
7786fi
ec6a6fbe 7787rm -rf conftest.dSYM
7a197a62 7788rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7789fi
7a197a62
AK
7790
7791
ad6254c5 7792fi
ec6a6fbe
AK
7793{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
7794$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
ad6254c5
AK
7795if test $ac_cv_func_malloc_0_nonnull = yes; then
7796
7797cat >>confdefs.h <<\_ACEOF
7798#define HAVE_MALLOC 1
7799_ACEOF
7800
7801else
7802 cat >>confdefs.h <<\_ACEOF
7803#define HAVE_MALLOC 0
7804_ACEOF
7805
7a197a62 7806 case " $LIBOBJS " in
8a2fc586 7807 *" malloc.$ac_objext "* ) ;;
7a197a62
AK
7808 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
7809 ;;
8a2fc586
AK
7810esac
7811
ad6254c5
AK
7812
7813cat >>confdefs.h <<\_ACEOF
7814#define malloc rpl_malloc
7815_ACEOF
7816
7817fi
7818
7819
7820
ec6a6fbe
AK
7821{ $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
7822$as_echo_n "checking for working memcmp... " >&6; }
ad6254c5 7823if test "${ac_cv_func_memcmp_working+set}" = set; then
ec6a6fbe 7824 $as_echo_n "(cached) " >&6
ad6254c5
AK
7825else
7826 if test "$cross_compiling" = yes; then
7827 ac_cv_func_memcmp_working=no
7828else
7829 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7830/* confdefs.h. */
7831_ACEOF
7832cat confdefs.h >>conftest.$ac_ext
7833cat >>conftest.$ac_ext <<_ACEOF
7834/* end confdefs.h. */
8a2fc586 7835$ac_includes_default
ad6254c5
AK
7836int
7837main ()
7838{
7839
7840 /* Some versions of memcmp are not 8-bit clean. */
7a197a62 7841 char c0 = '\100', c1 = '\200', c2 = '\201';
ad6254c5 7842 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
7a197a62 7843 return 1;
ad6254c5
AK
7844
7845 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
7846 or more and with at least one buffer not starting on a 4-byte boundary.
7847 William Lewis provided this test program. */
7848 {
7849 char foo[21];
7850 char bar[21];
7851 int i;
7852 for (i = 0; i < 4; i++)
7853 {
8a2fc586
AK
7854 char *a = foo + i;
7855 char *b = bar + i;
7856 strcpy (a, "--------01111111");
7857 strcpy (b, "--------10000000");
7858 if (memcmp (a, b, 16) >= 0)
7a197a62 7859 return 1;
ad6254c5 7860 }
7a197a62 7861 return 0;
ad6254c5
AK
7862 }
7863
7864 ;
7865 return 0;
7866}
7867_ACEOF
7868rm -f conftest$ac_exeext
7a197a62
AK
7869if { (ac_try="$ac_link"
7870case "(($ac_try" in
7871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7872 *) ac_try_echo=$ac_try;;
7873esac
ec6a6fbe
AK
7874eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7875$as_echo "$ac_try_echo") >&5
7a197a62 7876 (eval "$ac_link") 2>&5
ad6254c5 7877 ac_status=$?
ec6a6fbe 7878 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7879 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7880 { (case "(($ac_try" in
7881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7882 *) ac_try_echo=$ac_try;;
7883esac
ec6a6fbe
AK
7884eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7885$as_echo "$ac_try_echo") >&5
7a197a62 7886 (eval "$ac_try") 2>&5
ad6254c5 7887 ac_status=$?
ec6a6fbe 7888 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7889 (exit $ac_status); }; }; then
7890 ac_cv_func_memcmp_working=yes
7891else
ec6a6fbe
AK
7892 $as_echo "$as_me: program exited with status $ac_status" >&5
7893$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7894sed 's/^/| /' conftest.$ac_ext >&5
7895
7896( exit $ac_status )
7897ac_cv_func_memcmp_working=no
7898fi
ec6a6fbe 7899rm -rf conftest.dSYM
7a197a62 7900rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7901fi
7a197a62
AK
7902
7903
ad6254c5 7904fi
ec6a6fbe
AK
7905{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
7906$as_echo "$ac_cv_func_memcmp_working" >&6; }
7a197a62 7907test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
8a2fc586 7908 *" memcmp.$ac_objext "* ) ;;
7a197a62
AK
7909 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
7910 ;;
8a2fc586
AK
7911esac
7912
ad6254c5
AK
7913
7914
7915
7916for ac_header in stdlib.h unistd.h
7917do
ec6a6fbe 7918as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 7919if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
7920 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7921$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 7922if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 7923 $as_echo_n "(cached) " >&6
ad6254c5 7924fi
ec6a6fbe
AK
7925ac_res=`eval 'as_val=${'$as_ac_Header'}
7926 $as_echo "$as_val"'`
7927 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7928$as_echo "$ac_res" >&6; }
ad6254c5
AK
7929else
7930 # Is the header compilable?
ec6a6fbe
AK
7931{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7932$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 7933cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7934/* confdefs.h. */
7935_ACEOF
7936cat confdefs.h >>conftest.$ac_ext
7937cat >>conftest.$ac_ext <<_ACEOF
7938/* end confdefs.h. */
7939$ac_includes_default
7940#include <$ac_header>
7941_ACEOF
7942rm -f conftest.$ac_objext
7a197a62
AK
7943if { (ac_try="$ac_compile"
7944case "(($ac_try" in
7945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7946 *) ac_try_echo=$ac_try;;
7947esac
ec6a6fbe
AK
7948eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7949$as_echo "$ac_try_echo") >&5
7a197a62 7950 (eval "$ac_compile") 2>conftest.er1
ad6254c5 7951 ac_status=$?
8a2fc586
AK
7952 grep -v '^ *+' conftest.er1 >conftest.err
7953 rm -f conftest.er1
7954 cat conftest.err >&5
ec6a6fbe 7955 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7956 (exit $ac_status); } && {
7957 test -z "$ac_c_werror_flag" ||
7958 test ! -s conftest.err
7959 } && test -s conftest.$ac_objext; then
ad6254c5
AK
7960 ac_header_compiler=yes
7961else
ec6a6fbe 7962 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7963sed 's/^/| /' conftest.$ac_ext >&5
7964
7a197a62 7965 ac_header_compiler=no
ad6254c5 7966fi
7a197a62
AK
7967
7968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
7969{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7970$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
7971
7972# Is the header present?
ec6a6fbe
AK
7973{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7974$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 7975cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7976/* confdefs.h. */
7977_ACEOF
7978cat confdefs.h >>conftest.$ac_ext
7979cat >>conftest.$ac_ext <<_ACEOF
7980/* end confdefs.h. */
7981#include <$ac_header>
7982_ACEOF
7a197a62
AK
7983if { (ac_try="$ac_cpp conftest.$ac_ext"
7984case "(($ac_try" in
7985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7986 *) ac_try_echo=$ac_try;;
7987esac
ec6a6fbe
AK
7988eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7989$as_echo "$ac_try_echo") >&5
7a197a62 7990 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
7991 ac_status=$?
7992 grep -v '^ *+' conftest.er1 >conftest.err
7993 rm -f conftest.er1
7994 cat conftest.err >&5
ec6a6fbe 7995 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7996 (exit $ac_status); } >/dev/null && {
7997 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7998 test ! -s conftest.err
7999 }; then
ad6254c5
AK
8000 ac_header_preproc=yes
8001else
ec6a6fbe 8002 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8003sed 's/^/| /' conftest.$ac_ext >&5
8004
8005 ac_header_preproc=no
8006fi
7a197a62 8007
ad6254c5 8008rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
8009{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8010$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
8011
8012# So? What about this header?
8a2fc586
AK
8013case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8014 yes:no: )
ec6a6fbe
AK
8015 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8016$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8017 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8018$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 8019 ac_header_preproc=yes
ad6254c5 8020 ;;
8a2fc586 8021 no:yes:* )
ec6a6fbe
AK
8022 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8023$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8024 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8025$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8026 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8027$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8028 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8029$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8030 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8031$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8032 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8033$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 8034
ad6254c5
AK
8035 ;;
8036esac
ec6a6fbe
AK
8037{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8038$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 8039if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 8040 $as_echo_n "(cached) " >&6
ad6254c5 8041else
8a2fc586 8042 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 8043fi
ec6a6fbe
AK
8044ac_res=`eval 'as_val=${'$as_ac_Header'}
8045 $as_echo "$as_val"'`
8046 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8047$as_echo "$ac_res" >&6; }
ad6254c5
AK
8048
8049fi
ec6a6fbe
AK
8050as_val=`eval 'as_val=${'$as_ac_Header'}
8051 $as_echo "$as_val"'`
8052 if test "x$as_val" = x""yes; then
ad6254c5 8053 cat >>confdefs.h <<_ACEOF
ec6a6fbe 8054#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
8055_ACEOF
8056
8057fi
8058
8059done
8060
8061
8062for ac_func in getpagesize
8063do
ec6a6fbe
AK
8064as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8065{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8066$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 8067if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 8068 $as_echo_n "(cached) " >&6
ad6254c5
AK
8069else
8070 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8071/* confdefs.h. */
8072_ACEOF
8073cat confdefs.h >>conftest.$ac_ext
8074cat >>conftest.$ac_ext <<_ACEOF
8075/* end confdefs.h. */
8a2fc586
AK
8076/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8077 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8078#define $ac_func innocuous_$ac_func
8079
ad6254c5
AK
8080/* System header to define __stub macros and hopefully few prototypes,
8081 which can conflict with char $ac_func (); below.
8082 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8083 <limits.h> exists even on freestanding compilers. */
8a2fc586 8084
ad6254c5
AK
8085#ifdef __STDC__
8086# include <limits.h>
8087#else
8088# include <assert.h>
8089#endif
8a2fc586
AK
8090
8091#undef $ac_func
8092
7a197a62
AK
8093/* Override any GCC internal prototype to avoid an error.
8094 Use char because int might match the return type of a GCC
8095 builtin and then its argument prototype would still apply. */
ad6254c5
AK
8096#ifdef __cplusplus
8097extern "C"
ad6254c5 8098#endif
ad6254c5
AK
8099char $ac_func ();
8100/* The GNU C library defines this for functions which it implements
8101 to always fail with ENOSYS. Some functions are actually named
8102 something starting with __ and the normal name is an alias. */
7a197a62 8103#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 8104choke me
ad6254c5
AK
8105#endif
8106
8107int
8108main ()
8109{
7a197a62 8110return $ac_func ();
ad6254c5
AK
8111 ;
8112 return 0;
8113}
8114_ACEOF
8115rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
8116if { (ac_try="$ac_link"
8117case "(($ac_try" in
8118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8119 *) ac_try_echo=$ac_try;;
8120esac
ec6a6fbe
AK
8121eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8122$as_echo "$ac_try_echo") >&5
7a197a62 8123 (eval "$ac_link") 2>conftest.er1
ad6254c5 8124 ac_status=$?
8a2fc586
AK
8125 grep -v '^ *+' conftest.er1 >conftest.err
8126 rm -f conftest.er1
8127 cat conftest.err >&5
ec6a6fbe 8128 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8129 (exit $ac_status); } && {
8130 test -z "$ac_c_werror_flag" ||
8131 test ! -s conftest.err
ec6a6fbe
AK
8132 } && test -s conftest$ac_exeext && {
8133 test "$cross_compiling" = yes ||
8134 $as_test_x conftest$ac_exeext
8135 }; then
ad6254c5
AK
8136 eval "$as_ac_var=yes"
8137else
ec6a6fbe 8138 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8139sed 's/^/| /' conftest.$ac_ext >&5
8140
7a197a62 8141 eval "$as_ac_var=no"
ad6254c5 8142fi
7a197a62 8143
ec6a6fbe 8144rm -rf conftest.dSYM
25fbec5b 8145rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 8146 conftest$ac_exeext conftest.$ac_ext
ad6254c5 8147fi
ec6a6fbe
AK
8148ac_res=`eval 'as_val=${'$as_ac_var'}
8149 $as_echo "$as_val"'`
8150 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8151$as_echo "$ac_res" >&6; }
8152as_val=`eval 'as_val=${'$as_ac_var'}
8153 $as_echo "$as_val"'`
8154 if test "x$as_val" = x""yes; then
ad6254c5 8155 cat >>confdefs.h <<_ACEOF
ec6a6fbe 8156#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
8157_ACEOF
8158
8159fi
8160done
8161
ec6a6fbe
AK
8162{ $as_echo "$as_me:$LINENO: checking for working mmap" >&5
8163$as_echo_n "checking for working mmap... " >&6; }
ad6254c5 8164if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
ec6a6fbe 8165 $as_echo_n "(cached) " >&6
ad6254c5
AK
8166else
8167 if test "$cross_compiling" = yes; then
8168 ac_cv_func_mmap_fixed_mapped=no
8169else
8170 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8171/* confdefs.h. */
8172_ACEOF
8173cat confdefs.h >>conftest.$ac_ext
8174cat >>conftest.$ac_ext <<_ACEOF
8175/* end confdefs.h. */
8176$ac_includes_default
8177/* malloc might have been renamed as rpl_malloc. */
8178#undef malloc
8179
8180/* Thanks to Mike Haertel and Jim Avera for this test.
8181 Here is a matrix of mmap possibilities:
8182 mmap private not fixed
8183 mmap private fixed at somewhere currently unmapped
8184 mmap private fixed at somewhere already mapped
8185 mmap shared not fixed
8186 mmap shared fixed at somewhere currently unmapped
8187 mmap shared fixed at somewhere already mapped
8188 For private mappings, we should verify that changes cannot be read()
8189 back from the file, nor mmap's back from the file at a different
8190 address. (There have been systems where private was not correctly
8191 implemented like the infamous i386 svr4.0, and systems where the
8192 VM page cache was not coherent with the file system buffer cache
8193 like early versions of FreeBSD and possibly contemporary NetBSD.)
8194 For shared mappings, we should conversely verify that changes get
8195 propagated back to all the places they're supposed to be.
8196
8197 Grep wants private fixed already mapped.
8198 The main things grep needs to know about mmap are:
8199 * does it exist and is it safe to write into the mmap'd area
8200 * how to use it (BSD variants) */
8201
8202#include <fcntl.h>
8203#include <sys/mman.h>
8204
25fbec5b 8205#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
ad6254c5
AK
8206char *malloc ();
8207#endif
8208
8209/* This mess was copied from the GNU getpagesize.h. */
25fbec5b 8210#ifndef HAVE_GETPAGESIZE
ad6254c5 8211/* Assume that all systems that can run configure have sys/param.h. */
25fbec5b 8212# ifndef HAVE_SYS_PARAM_H
ad6254c5
AK
8213# define HAVE_SYS_PARAM_H 1
8214# endif
8215
8216# ifdef _SC_PAGESIZE
8217# define getpagesize() sysconf(_SC_PAGESIZE)
8218# else /* no _SC_PAGESIZE */
25fbec5b 8219# ifdef HAVE_SYS_PARAM_H
ad6254c5
AK
8220# include <sys/param.h>
8221# ifdef EXEC_PAGESIZE
8222# define getpagesize() EXEC_PAGESIZE
8223# else /* no EXEC_PAGESIZE */
8224# ifdef NBPG
8225# define getpagesize() NBPG * CLSIZE
8226# ifndef CLSIZE
8227# define CLSIZE 1
8228# endif /* no CLSIZE */
8229# else /* no NBPG */
8230# ifdef NBPC
8231# define getpagesize() NBPC
8232# else /* no NBPC */
8233# ifdef PAGESIZE
8234# define getpagesize() PAGESIZE
8235# endif /* PAGESIZE */
8236# endif /* no NBPC */
8237# endif /* no NBPG */
8238# endif /* no EXEC_PAGESIZE */
8239# else /* no HAVE_SYS_PARAM_H */
8240# define getpagesize() 8192 /* punt totally */
8241# endif /* no HAVE_SYS_PARAM_H */
8242# endif /* no _SC_PAGESIZE */
8243
8244#endif /* no HAVE_GETPAGESIZE */
8245
8246int
8247main ()
8248{
8249 char *data, *data2, *data3;
8250 int i, pagesize;
8251 int fd;
8252
8253 pagesize = getpagesize ();
8254
8255 /* First, make a file with some known garbage in it. */
8256 data = (char *) malloc (pagesize);
8257 if (!data)
7a197a62 8258 return 1;
ad6254c5
AK
8259 for (i = 0; i < pagesize; ++i)
8260 *(data + i) = rand ();
8261 umask (0);
8262 fd = creat ("conftest.mmap", 0600);
8263 if (fd < 0)
7a197a62 8264 return 1;
ad6254c5 8265 if (write (fd, data, pagesize) != pagesize)
7a197a62 8266 return 1;
ad6254c5
AK
8267 close (fd);
8268
8269 /* Next, try to mmap the file at a fixed address which already has
8270 something else allocated at it. If we can, also make sure that
8271 we see the same garbage. */
8272 fd = open ("conftest.mmap", O_RDWR);
8273 if (fd < 0)
7a197a62 8274 return 1;
ad6254c5
AK
8275 data2 = (char *) malloc (2 * pagesize);
8276 if (!data2)
7a197a62
AK
8277 return 1;
8278 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
ad6254c5 8279 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8a2fc586 8280 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7a197a62 8281 return 1;
ad6254c5
AK
8282 for (i = 0; i < pagesize; ++i)
8283 if (*(data + i) != *(data2 + i))
7a197a62 8284 return 1;
ad6254c5
AK
8285
8286 /* Finally, make sure that changes to the mapped area do not
8287 percolate back to the file as seen by read(). (This is a bug on
8288 some variants of i386 svr4.0.) */
8289 for (i = 0; i < pagesize; ++i)
8290 *(data2 + i) = *(data2 + i) + 1;
8291 data3 = (char *) malloc (pagesize);
8292 if (!data3)
7a197a62 8293 return 1;
ad6254c5 8294 if (read (fd, data3, pagesize) != pagesize)
7a197a62 8295 return 1;
ad6254c5
AK
8296 for (i = 0; i < pagesize; ++i)
8297 if (*(data + i) != *(data3 + i))
7a197a62 8298 return 1;
ad6254c5 8299 close (fd);
7a197a62 8300 return 0;
ad6254c5
AK
8301}
8302_ACEOF
8303rm -f conftest$ac_exeext
7a197a62
AK
8304if { (ac_try="$ac_link"
8305case "(($ac_try" in
8306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8307 *) ac_try_echo=$ac_try;;
8308esac
ec6a6fbe
AK
8309eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8310$as_echo "$ac_try_echo") >&5
7a197a62 8311 (eval "$ac_link") 2>&5
ad6254c5 8312 ac_status=$?
ec6a6fbe 8313 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 8314 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
8315 { (case "(($ac_try" in
8316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8317 *) ac_try_echo=$ac_try;;
8318esac
ec6a6fbe
AK
8319eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8320$as_echo "$ac_try_echo") >&5
7a197a62 8321 (eval "$ac_try") 2>&5
ad6254c5 8322 ac_status=$?
ec6a6fbe 8323 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
8324 (exit $ac_status); }; }; then
8325 ac_cv_func_mmap_fixed_mapped=yes
8326else
ec6a6fbe
AK
8327 $as_echo "$as_me: program exited with status $ac_status" >&5
8328$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8329sed 's/^/| /' conftest.$ac_ext >&5
8330
8331( exit $ac_status )
8332ac_cv_func_mmap_fixed_mapped=no
8333fi
ec6a6fbe 8334rm -rf conftest.dSYM
7a197a62 8335rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 8336fi
7a197a62
AK
8337
8338
ad6254c5 8339fi
ec6a6fbe
AK
8340{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8341$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
ad6254c5
AK
8342if test $ac_cv_func_mmap_fixed_mapped = yes; then
8343
8344cat >>confdefs.h <<\_ACEOF
8345#define HAVE_MMAP 1
8346_ACEOF
8347
8348fi
8349rm -f conftest.mmap
8350
ec6a6fbe
AK
8351{ $as_echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
8352$as_echo_n "checking whether stat accepts an empty string... " >&6; }
ad6254c5 8353if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
ec6a6fbe 8354 $as_echo_n "(cached) " >&6
ad6254c5
AK
8355else
8356 if test "$cross_compiling" = yes; then
8357 ac_cv_func_stat_empty_string_bug=yes
8358else
8359 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8360/* confdefs.h. */
8361_ACEOF
8362cat confdefs.h >>conftest.$ac_ext
8363cat >>conftest.$ac_ext <<_ACEOF
8364/* end confdefs.h. */
8365$ac_includes_default
8366int
8367main ()
8368{
8369struct stat sbuf;
7a197a62 8370 return stat ("", &sbuf) == 0;
ad6254c5
AK
8371 ;
8372 return 0;
8373}
8374_ACEOF
8375rm -f conftest$ac_exeext
7a197a62
AK
8376if { (ac_try="$ac_link"
8377case "(($ac_try" in
8378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8379 *) ac_try_echo=$ac_try;;
8380esac
ec6a6fbe
AK
8381eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8382$as_echo "$ac_try_echo") >&5
7a197a62 8383 (eval "$ac_link") 2>&5
ad6254c5 8384 ac_status=$?
ec6a6fbe 8385 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 8386 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
8387 { (case "(($ac_try" in
8388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8389 *) ac_try_echo=$ac_try;;
8390esac
ec6a6fbe
AK
8391eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8392$as_echo "$ac_try_echo") >&5
7a197a62 8393 (eval "$ac_try") 2>&5
ad6254c5 8394 ac_status=$?
ec6a6fbe 8395 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 8396 (exit $ac_status); }; }; then
7a197a62 8397 ac_cv_func_stat_empty_string_bug=no
ad6254c5 8398else
ec6a6fbe
AK
8399 $as_echo "$as_me: program exited with status $ac_status" >&5
8400$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8401sed 's/^/| /' conftest.$ac_ext >&5
8402
8403( exit $ac_status )
7a197a62 8404ac_cv_func_stat_empty_string_bug=yes
ad6254c5 8405fi
ec6a6fbe 8406rm -rf conftest.dSYM
7a197a62 8407rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 8408fi
7a197a62
AK
8409
8410
ad6254c5 8411fi
ec6a6fbe
AK
8412{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
8413$as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
ad6254c5 8414if test $ac_cv_func_stat_empty_string_bug = yes; then
7a197a62 8415 case " $LIBOBJS " in
8a2fc586 8416 *" stat.$ac_objext "* ) ;;
7a197a62
AK
8417 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
8418 ;;
8a2fc586
AK
8419esac
8420
ad6254c5
AK
8421
8422cat >>confdefs.h <<_ACEOF
8423#define HAVE_STAT_EMPTY_STRING_BUG 1
8424_ACEOF
8425
8426fi
8427
ec6a6fbe
AK
8428{ $as_echo "$as_me:$LINENO: checking for working strtod" >&5
8429$as_echo_n "checking for working strtod... " >&6; }
ad6254c5 8430if test "${ac_cv_func_strtod+set}" = set; then
ec6a6fbe 8431 $as_echo_n "(cached) " >&6
ad6254c5
AK
8432else
8433 if test "$cross_compiling" = yes; then
8434 ac_cv_func_strtod=no
8435else
8436 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8437/* confdefs.h. */
8438_ACEOF
8439cat confdefs.h >>conftest.$ac_ext
8440cat >>conftest.$ac_ext <<_ACEOF
8441/* end confdefs.h. */
8442
7a197a62
AK
8443$ac_includes_default
8444#ifndef strtod
ad6254c5 8445double strtod ();
7a197a62 8446#endif
ad6254c5
AK
8447int
8448main()
8449{
8450 {
8451 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
8452 char *string = " +69";
8453 char *term;
8454 double value;
8455 value = strtod (string, &term);
8456 if (value != 69 || term != (string + 4))
7a197a62 8457 return 1;
ad6254c5
AK
8458 }
8459
8460 {
8461 /* Under Solaris 2.4, strtod returns the wrong value for the
8462 terminating character under some conditions. */
8463 char *string = "NaN";
8464 char *term;
8465 strtod (string, &term);
8466 if (term != string && *(term - 1) == 0)
7a197a62 8467 return 1;
ad6254c5 8468 }
7a197a62 8469 return 0;
ad6254c5
AK
8470}
8471
8472_ACEOF
8473rm -f conftest$ac_exeext
7a197a62
AK
8474if { (ac_try="$ac_link"
8475case "(($ac_try" in
8476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8477 *) ac_try_echo=$ac_try;;
8478esac
ec6a6fbe
AK
8479eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8480$as_echo "$ac_try_echo") >&5
7a197a62 8481 (eval "$ac_link") 2>&5
ad6254c5 8482 ac_status=$?
ec6a6fbe 8483 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 8484 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
8485 { (case "(($ac_try" in
8486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8487 *) ac_try_echo=$ac_try;;
8488esac
ec6a6fbe
AK
8489eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8490$as_echo "$ac_try_echo") >&5
7a197a62 8491 (eval "$ac_try") 2>&5
ad6254c5 8492 ac_status=$?
ec6a6fbe 8493 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
8494 (exit $ac_status); }; }; then
8495 ac_cv_func_strtod=yes
8496else
ec6a6fbe
AK
8497 $as_echo "$as_me: program exited with status $ac_status" >&5
8498$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8499sed 's/^/| /' conftest.$ac_ext >&5
8500
8501( exit $ac_status )
8502ac_cv_func_strtod=no
8503fi
ec6a6fbe 8504rm -rf conftest.dSYM
7a197a62 8505rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 8506fi
7a197a62
AK
8507
8508
ad6254c5 8509fi
ec6a6fbe
AK
8510{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
8511$as_echo "$ac_cv_func_strtod" >&6; }
ad6254c5 8512if test $ac_cv_func_strtod = no; then
7a197a62 8513 case " $LIBOBJS " in
8a2fc586 8514 *" strtod.$ac_objext "* ) ;;
7a197a62
AK
8515 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
8516 ;;
8a2fc586
AK
8517esac
8518
ec6a6fbe
AK
8519{ $as_echo "$as_me:$LINENO: checking for pow" >&5
8520$as_echo_n "checking for pow... " >&6; }
ad6254c5 8521if test "${ac_cv_func_pow+set}" = set; then
ec6a6fbe 8522 $as_echo_n "(cached) " >&6
ad6254c5
AK
8523else
8524 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8525/* confdefs.h. */
8526_ACEOF
8527cat confdefs.h >>conftest.$ac_ext
8528cat >>conftest.$ac_ext <<_ACEOF
8529/* end confdefs.h. */
8a2fc586
AK
8530/* Define pow to an innocuous variant, in case <limits.h> declares pow.
8531 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8532#define pow innocuous_pow
8533
ad6254c5
AK
8534/* System header to define __stub macros and hopefully few prototypes,
8535 which can conflict with char pow (); below.
8536 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8537 <limits.h> exists even on freestanding compilers. */
8a2fc586 8538
ad6254c5
AK
8539#ifdef __STDC__
8540# include <limits.h>
8541#else
8542# include <assert.h>
8543#endif
8a2fc586
AK
8544
8545#undef pow
8546
7a197a62
AK
8547/* Override any GCC internal prototype to avoid an error.
8548 Use char because int might match the return type of a GCC
8549 builtin and then its argument prototype would still apply. */
ad6254c5
AK
8550#ifdef __cplusplus
8551extern "C"
ad6254c5 8552#endif
ad6254c5
AK
8553char pow ();
8554/* The GNU C library defines this for functions which it implements
8555 to always fail with ENOSYS. Some functions are actually named
8556 something starting with __ and the normal name is an alias. */
7a197a62 8557#if defined __stub_pow || defined __stub___pow
ad6254c5 8558choke me
ad6254c5
AK
8559#endif
8560
8561int
8562main ()
8563{
7a197a62 8564return pow ();
ad6254c5
AK
8565 ;
8566 return 0;
8567}
8568_ACEOF
8569rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
8570if { (ac_try="$ac_link"
8571case "(($ac_try" in
8572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8573 *) ac_try_echo=$ac_try;;
8574esac
ec6a6fbe
AK
8575eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8576$as_echo "$ac_try_echo") >&5
7a197a62 8577 (eval "$ac_link") 2>conftest.er1
ad6254c5 8578 ac_status=$?
8a2fc586
AK
8579 grep -v '^ *+' conftest.er1 >conftest.err
8580 rm -f conftest.er1
8581 cat conftest.err >&5
ec6a6fbe 8582 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8583 (exit $ac_status); } && {
8584 test -z "$ac_c_werror_flag" ||
8585 test ! -s conftest.err
ec6a6fbe
AK
8586 } && test -s conftest$ac_exeext && {
8587 test "$cross_compiling" = yes ||
8588 $as_test_x conftest$ac_exeext
8589 }; then
ad6254c5
AK
8590 ac_cv_func_pow=yes
8591else
ec6a6fbe 8592 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8593sed 's/^/| /' conftest.$ac_ext >&5
8594
7a197a62 8595 ac_cv_func_pow=no
ad6254c5 8596fi
7a197a62 8597
ec6a6fbe 8598rm -rf conftest.dSYM
25fbec5b 8599rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 8600 conftest$ac_exeext conftest.$ac_ext
ad6254c5 8601fi
ec6a6fbe
AK
8602{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
8603$as_echo "$ac_cv_func_pow" >&6; }
ad6254c5
AK
8604
8605if test $ac_cv_func_pow = no; then
ec6a6fbe
AK
8606 { $as_echo "$as_me:$LINENO: checking for pow in -lm" >&5
8607$as_echo_n "checking for pow in -lm... " >&6; }
ad6254c5 8608if test "${ac_cv_lib_m_pow+set}" = set; then
ec6a6fbe 8609 $as_echo_n "(cached) " >&6
ad6254c5
AK
8610else
8611 ac_check_lib_save_LIBS=$LIBS
8612LIBS="-lm $LIBS"
8613cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8614/* confdefs.h. */
8615_ACEOF
8616cat confdefs.h >>conftest.$ac_ext
8617cat >>conftest.$ac_ext <<_ACEOF
8618/* end confdefs.h. */
8619
7a197a62
AK
8620/* Override any GCC internal prototype to avoid an error.
8621 Use char because int might match the return type of a GCC
8622 builtin and then its argument prototype would still apply. */
ad6254c5
AK
8623#ifdef __cplusplus
8624extern "C"
8625#endif
ad6254c5
AK
8626char pow ();
8627int
8628main ()
8629{
7a197a62 8630return pow ();
ad6254c5
AK
8631 ;
8632 return 0;
8633}
8634_ACEOF
8635rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
8636if { (ac_try="$ac_link"
8637case "(($ac_try" in
8638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8639 *) ac_try_echo=$ac_try;;
8640esac
ec6a6fbe
AK
8641eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8642$as_echo "$ac_try_echo") >&5
7a197a62 8643 (eval "$ac_link") 2>conftest.er1
ad6254c5 8644 ac_status=$?
8a2fc586
AK
8645 grep -v '^ *+' conftest.er1 >conftest.err
8646 rm -f conftest.er1
8647 cat conftest.err >&5
ec6a6fbe 8648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8649 (exit $ac_status); } && {
8650 test -z "$ac_c_werror_flag" ||
8651 test ! -s conftest.err
ec6a6fbe
AK
8652 } && test -s conftest$ac_exeext && {
8653 test "$cross_compiling" = yes ||
8654 $as_test_x conftest$ac_exeext
8655 }; then
ad6254c5
AK
8656 ac_cv_lib_m_pow=yes
8657else
ec6a6fbe 8658 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8659sed 's/^/| /' conftest.$ac_ext >&5
8660
7a197a62 8661 ac_cv_lib_m_pow=no
ad6254c5 8662fi
7a197a62 8663
ec6a6fbe 8664rm -rf conftest.dSYM
25fbec5b 8665rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 8666 conftest$ac_exeext conftest.$ac_ext
ad6254c5 8667LIBS=$ac_check_lib_save_LIBS
d0191583 8668fi
ec6a6fbe
AK
8669{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
8670$as_echo "$ac_cv_lib_m_pow" >&6; }
8671if test "x$ac_cv_lib_m_pow" = x""yes; then
d0191583
JM
8672 POW_LIB=-lm
8673else
ec6a6fbe
AK
8674 { $as_echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
8675$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
d0191583 8676fi
72b2cb61 8677
d0191583 8678fi
72b2cb61 8679
ad6254c5
AK
8680fi
8681
ad6254c5 8682
d0191583
JM
8683for ac_func in vprintf
8684do
ec6a6fbe
AK
8685as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8686{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8687$as_echo_n "checking for $ac_func... " >&6; }
d0191583 8688if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 8689 $as_echo_n "(cached) " >&6
ad6254c5 8690else
d0191583
JM
8691 cat >conftest.$ac_ext <<_ACEOF
8692/* confdefs.h. */
8693_ACEOF
8694cat confdefs.h >>conftest.$ac_ext
8695cat >>conftest.$ac_ext <<_ACEOF
8696/* end confdefs.h. */
8697/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8698 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8699#define $ac_func innocuous_$ac_func
7a197a62 8700
d0191583
JM
8701/* System header to define __stub macros and hopefully few prototypes,
8702 which can conflict with char $ac_func (); below.
8703 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8704 <limits.h> exists even on freestanding compilers. */
ad6254c5 8705
d0191583
JM
8706#ifdef __STDC__
8707# include <limits.h>
8708#else
8709# include <assert.h>
8710#endif
ad6254c5 8711
d0191583 8712#undef $ac_func
72b2cb61 8713
d0191583
JM
8714/* Override any GCC internal prototype to avoid an error.
8715 Use char because int might match the return type of a GCC
8716 builtin and then its argument prototype would still apply. */
8717#ifdef __cplusplus
8718extern "C"
8719#endif
8720char $ac_func ();
8721/* The GNU C library defines this for functions which it implements
8722 to always fail with ENOSYS. Some functions are actually named
8723 something starting with __ and the normal name is an alias. */
8724#if defined __stub_$ac_func || defined __stub___$ac_func
8725choke me
8726#endif
8727
8728int
8729main ()
8730{
8731return $ac_func ();
8732 ;
8733 return 0;
8734}
72b2cb61 8735_ACEOF
d0191583
JM
8736rm -f conftest.$ac_objext conftest$ac_exeext
8737if { (ac_try="$ac_link"
8738case "(($ac_try" in
8739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8740 *) ac_try_echo=$ac_try;;
8741esac
ec6a6fbe
AK
8742eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8743$as_echo "$ac_try_echo") >&5
d0191583
JM
8744 (eval "$ac_link") 2>conftest.er1
8745 ac_status=$?
8746 grep -v '^ *+' conftest.er1 >conftest.err
8747 rm -f conftest.er1
8748 cat conftest.err >&5
ec6a6fbe 8749 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
8750 (exit $ac_status); } && {
8751 test -z "$ac_c_werror_flag" ||
8752 test ! -s conftest.err
ec6a6fbe
AK
8753 } && test -s conftest$ac_exeext && {
8754 test "$cross_compiling" = yes ||
8755 $as_test_x conftest$ac_exeext
8756 }; then
d0191583
JM
8757 eval "$as_ac_var=yes"
8758else
ec6a6fbe 8759 $as_echo "$as_me: failed program was:" >&5
d0191583 8760sed 's/^/| /' conftest.$ac_ext >&5
72b2cb61 8761
d0191583 8762 eval "$as_ac_var=no"
ad6254c5
AK
8763fi
8764
ec6a6fbe 8765rm -rf conftest.dSYM
d0191583
JM
8766rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8767 conftest$ac_exeext conftest.$ac_ext
7a197a62 8768fi
ec6a6fbe
AK
8769ac_res=`eval 'as_val=${'$as_ac_var'}
8770 $as_echo "$as_val"'`
8771 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8772$as_echo "$ac_res" >&6; }
8773as_val=`eval 'as_val=${'$as_ac_var'}
8774 $as_echo "$as_val"'`
8775 if test "x$as_val" = x""yes; then
d0191583 8776 cat >>confdefs.h <<_ACEOF
ec6a6fbe 8777#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
d0191583 8778_ACEOF
7a197a62 8779
ec6a6fbe
AK
8780{ $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
8781$as_echo_n "checking for _doprnt... " >&6; }
d0191583 8782if test "${ac_cv_func__doprnt+set}" = set; then
ec6a6fbe 8783 $as_echo_n "(cached) " >&6
ad6254c5 8784else
d0191583
JM
8785 cat >conftest.$ac_ext <<_ACEOF
8786/* confdefs.h. */
8787_ACEOF
8788cat confdefs.h >>conftest.$ac_ext
8789cat >>conftest.$ac_ext <<_ACEOF
8790/* end confdefs.h. */
8791/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
8792 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8793#define _doprnt innocuous__doprnt
7a197a62 8794
d0191583
JM
8795/* System header to define __stub macros and hopefully few prototypes,
8796 which can conflict with char _doprnt (); below.
8797 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8798 <limits.h> exists even on freestanding compilers. */
ad6254c5 8799
d0191583
JM
8800#ifdef __STDC__
8801# include <limits.h>
8802#else
8803# include <assert.h>
8804#endif
72b2cb61 8805
d0191583
JM
8806#undef _doprnt
8807
8808/* Override any GCC internal prototype to avoid an error.
8809 Use char because int might match the return type of a GCC
8810 builtin and then its argument prototype would still apply. */
8811#ifdef __cplusplus
8812extern "C"
8813#endif
8814char _doprnt ();
8815/* The GNU C library defines this for functions which it implements
8816 to always fail with ENOSYS. Some functions are actually named
8817 something starting with __ and the normal name is an alias. */
8818#if defined __stub__doprnt || defined __stub____doprnt
8819choke me
8820#endif
8821
8822int
8823main ()
8824{
8825return _doprnt ();
8826 ;
8827 return 0;
8828}
72b2cb61 8829_ACEOF
d0191583
JM
8830rm -f conftest.$ac_objext conftest$ac_exeext
8831if { (ac_try="$ac_link"
8832case "(($ac_try" in
8833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8834 *) ac_try_echo=$ac_try;;
8835esac
ec6a6fbe
AK
8836eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8837$as_echo "$ac_try_echo") >&5
d0191583
JM
8838 (eval "$ac_link") 2>conftest.er1
8839 ac_status=$?
8840 grep -v '^ *+' conftest.er1 >conftest.err
8841 rm -f conftest.er1
8842 cat conftest.err >&5
ec6a6fbe 8843 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
8844 (exit $ac_status); } && {
8845 test -z "$ac_c_werror_flag" ||
8846 test ! -s conftest.err
ec6a6fbe
AK
8847 } && test -s conftest$ac_exeext && {
8848 test "$cross_compiling" = yes ||
8849 $as_test_x conftest$ac_exeext
8850 }; then
d0191583
JM
8851 ac_cv_func__doprnt=yes
8852else
ec6a6fbe 8853 $as_echo "$as_me: failed program was:" >&5
d0191583 8854sed 's/^/| /' conftest.$ac_ext >&5
72b2cb61 8855
d0191583 8856 ac_cv_func__doprnt=no
ad6254c5
AK
8857fi
8858
ec6a6fbe 8859rm -rf conftest.dSYM
d0191583
JM
8860rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8861 conftest$ac_exeext conftest.$ac_ext
7a197a62 8862fi
ec6a6fbe
AK
8863{ $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
8864$as_echo "$ac_cv_func__doprnt" >&6; }
8865if test "x$ac_cv_func__doprnt" = x""yes; then
7a197a62 8866
d0191583
JM
8867cat >>confdefs.h <<\_ACEOF
8868#define HAVE_DOPRNT 1
8869_ACEOF
ad6254c5 8870
7a197a62
AK
8871fi
8872
d0191583
JM
8873fi
8874done
8b1a3214 8875
ad6254c5 8876
7a197a62 8877
9c961554 8878################################################################################
ec6a6fbe
AK
8879{ $as_echo "$as_me:$LINENO: checking whether to use static linking" >&5
8880$as_echo_n "checking whether to use static linking... " >&6; }
9c961554
MB
8881# Check whether --enable-static_link was given.
8882if test "${enable_static_link+set}" = set; then
8883 enableval=$enable_static_link; STATIC_LINK=$enableval
8884else
8885 STATIC_LINK=no
8886fi
8887
ec6a6fbe
AK
8888{ $as_echo "$as_me:$LINENO: result: $STATIC_LINK" >&5
8889$as_echo "$STATIC_LINK" >&6; }
9c961554 8890
d0191583 8891################################################################################
ad6254c5 8892
ad6254c5
AK
8893
8894################################################################################
ec6a6fbe
AK
8895{ $as_echo "$as_me:$LINENO: checking file owner" >&5
8896$as_echo_n "checking file owner... " >&6; }
d0191583
JM
8897OWNER="root"
8898
8899
8900# Check whether --with-user was given.
8901if test "${with_user+set}" = set; then
8902 withval=$with_user; OWNER="$withval"
7a197a62
AK
8903fi
8904
ec6a6fbe
AK
8905{ $as_echo "$as_me:$LINENO: result: $OWNER" >&5
8906$as_echo "$OWNER" >&6; }
ad6254c5 8907
d0191583
JM
8908if test x$OWNER != x; then
8909 OWNER="-o $OWNER"
ad6254c5
AK
8910fi
8911
8912################################################################################
ec6a6fbe
AK
8913{ $as_echo "$as_me:$LINENO: checking group owner" >&5
8914$as_echo_n "checking group owner... " >&6; }
d0191583 8915GROUP="root"
ad6254c5 8916
d0191583
JM
8917# Check whether --with-group was given.
8918if test "${with_group+set}" = set; then
8919 withval=$with_group; GROUP="$withval"
7a197a62
AK
8920fi
8921
ec6a6fbe
AK
8922{ $as_echo "$as_me:$LINENO: result: $GROUP" >&5
8923$as_echo "$GROUP" >&6; }
d0191583
JM
8924
8925if test x$GROUP != x; then
8926 GROUP="-g $GROUP"
8927fi
ad6254c5 8928
24bbc4d7 8929################################################################################
ec6a6fbe
AK
8930{ $as_echo "$as_me:$LINENO: checking device node uid" >&5
8931$as_echo_n "checking device node uid... " >&6; }
24bbc4d7
AK
8932
8933
8934# Check whether --with-device-uid was given.
8935if test "${with_device_uid+set}" = set; then
8936 withval=$with_device_uid; DM_DEVICE_UID="$withval"
8937else
8938 DM_DEVICE_UID="0"
8939fi
8940
ec6a6fbe
AK
8941{ $as_echo "$as_me:$LINENO: result: $DM_DEVICE_UID" >&5
8942$as_echo "$DM_DEVICE_UID" >&6; }
24bbc4d7
AK
8943
8944################################################################################
ec6a6fbe
AK
8945{ $as_echo "$as_me:$LINENO: checking device node gid" >&5
8946$as_echo_n "checking device node gid... " >&6; }
24bbc4d7
AK
8947
8948
8949# Check whether --with-device-gid was given.
8950if test "${with_device_gid+set}" = set; then
8951 withval=$with_device_gid; DM_DEVICE_GID="$withval"
8952else
8953 DM_DEVICE_GID="0"
8954fi
8955
ec6a6fbe
AK
8956{ $as_echo "$as_me:$LINENO: result: $DM_DEVICE_GID" >&5
8957$as_echo "$DM_DEVICE_GID" >&6; }
24bbc4d7 8958
93bd259b 8959################################################################################
ec6a6fbe
AK
8960{ $as_echo "$as_me:$LINENO: checking device node mode" >&5
8961$as_echo_n "checking device node mode... " >&6; }
93bd259b
AK
8962
8963
8964# Check whether --with-device-mode was given.
8965if test "${with_device_mode+set}" = set; then
8966 withval=$with_device_mode; DM_DEVICE_MODE="$withval"
8967else
8968 DM_DEVICE_MODE="0600"
8969fi
8970
ec6a6fbe
AK
8971{ $as_echo "$as_me:$LINENO: result: $DM_DEVICE_MODE" >&5
8972$as_echo "$DM_DEVICE_MODE" >&6; }
93bd259b 8973
ad6254c5 8974################################################################################
ec6a6fbe
AK
8975{ $as_echo "$as_me:$LINENO: checking whether to enable lvm1 fallback" >&5
8976$as_echo_n "checking whether to enable lvm1 fallback... " >&6; }
d0191583
JM
8977# Check whether --enable-lvm1_fallback was given.
8978if test "${enable_lvm1_fallback+set}" = set; then
8979 enableval=$enable_lvm1_fallback; LVM1_FALLBACK=$enableval
8980else
8981 LVM1_FALLBACK=no
7a197a62
AK
8982fi
8983
ec6a6fbe
AK
8984{ $as_echo "$as_me:$LINENO: result: $LVM1_FALLBACK" >&5
8985$as_echo "$LVM1_FALLBACK" >&6; }
ad6254c5 8986
d0191583 8987if test x$LVM1_FALLBACK = xyes; then
72b2cb61
AK
8988
8989cat >>confdefs.h <<\_ACEOF
d0191583 8990#define LVM1_FALLBACK 1
72b2cb61
AK
8991_ACEOF
8992
ad6254c5
AK
8993fi
8994
8995################################################################################
ec6a6fbe
AK
8996{ $as_echo "$as_me:$LINENO: checking whether to include support for lvm1 metadata" >&5
8997$as_echo_n "checking whether to include support for lvm1 metadata... " >&6; }
d0191583
JM
8998
8999# Check whether --with-lvm1 was given.
9000if test "${with_lvm1+set}" = set; then
9001 withval=$with_lvm1; LVM1="$withval"
9002else
9003 LVM1="internal"
7a197a62
AK
9004fi
9005
ec6a6fbe
AK
9006{ $as_echo "$as_me:$LINENO: result: $LVM1" >&5
9007$as_echo "$LVM1" >&6; }
ad6254c5 9008
d0191583 9009if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ];
ec6a6fbe 9010 then { { $as_echo "$as_me:$LINENO: error: --with-lvm1 parameter invalid
d0191583 9011" >&5
ec6a6fbe 9012$as_echo "$as_me: error: --with-lvm1 parameter invalid
d0191583
JM
9013" >&2;}
9014 { (exit 1); exit 1; }; }
9015fi;
9016
9017if test x$LVM1 = xinternal; then
72b2cb61
AK
9018
9019cat >>confdefs.h <<\_ACEOF
d0191583 9020#define LVM1_INTERNAL 1
72b2cb61
AK
9021_ACEOF
9022
ad6254c5
AK
9023fi
9024
9025################################################################################
ec6a6fbe
AK
9026{ $as_echo "$as_me:$LINENO: checking whether to include support for GFS pool metadata" >&5
9027$as_echo_n "checking whether to include support for GFS pool metadata... " >&6; }
d0191583
JM
9028
9029# Check whether --with-pool was given.
9030if test "${with_pool+set}" = set; then
9031 withval=$with_pool; POOL="$withval"
ad6254c5 9032else
d0191583 9033 POOL="internal"
7a197a62
AK
9034fi
9035
ec6a6fbe
AK
9036{ $as_echo "$as_me:$LINENO: result: $POOL" >&5
9037$as_echo "$POOL" >&6; }
ad6254c5 9038
d0191583 9039if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ];
ec6a6fbe 9040 then { { $as_echo "$as_me:$LINENO: error: --with-pool parameter invalid
d0191583 9041" >&5
ec6a6fbe 9042$as_echo "$as_me: error: --with-pool parameter invalid
d0191583
JM
9043" >&2;}
9044 { (exit 1); exit 1; }; }
9045fi;
7a197a62 9046
d0191583
JM
9047if test x$POOL = xinternal; then
9048
9049cat >>confdefs.h <<\_ACEOF
9050#define POOL_INTERNAL 1
9051_ACEOF
9052
9053fi
ad6254c5 9054
06f62ad1 9055################################################################################
ec6a6fbe
AK
9056{ $as_echo "$as_me:$LINENO: checking whether to include support for cluster locking" >&5
9057$as_echo_n "checking whether to include support for cluster locking... " >&6; }
d0191583
JM
9058
9059# Check whether --with-cluster was given.
9060if test "${with_cluster+set}" = set; then
9061 withval=$with_cluster; CLUSTER="$withval"
7a197a62
AK
9062fi
9063
ec6a6fbe
AK
9064{ $as_echo "$as_me:$LINENO: result: $CLUSTER" >&5
9065$as_echo "$CLUSTER" >&6; }
06f62ad1 9066
d0191583 9067if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ];
ec6a6fbe 9068 then { { $as_echo "$as_me:$LINENO: error: --with-cluster parameter invalid
06f62ad1 9069" >&5
ec6a6fbe 9070$as_echo "$as_me: error: --with-cluster parameter invalid
06f62ad1
AK
9071" >&2;}
9072 { (exit 1); exit 1; }; }
d0191583 9073fi;
06f62ad1 9074
d0191583 9075if test x$CLUSTER = xinternal; then
72b2cb61
AK
9076
9077cat >>confdefs.h <<\_ACEOF
d0191583 9078#define CLUSTER_LOCKING_INTERNAL 1
72b2cb61
AK
9079_ACEOF
9080
15d91f5a 9081fi
ad6254c5
AK
9082
9083################################################################################
ec6a6fbe
AK
9084{ $as_echo "$as_me:$LINENO: checking whether to include snapshots" >&5
9085$as_echo_n "checking whether to include snapshots... " >&6; }
ad6254c5 9086
d0191583
JM
9087# Check whether --with-snapshots was given.
9088if test "${with_snapshots+set}" = set; then
9089 withval=$with_snapshots; SNAPSHOTS="$withval"
9090else
9091 SNAPSHOTS="internal"
ad6254c5
AK
9092fi
9093
ec6a6fbe
AK
9094{ $as_echo "$as_me:$LINENO: result: $SNAPSHOTS" >&5
9095$as_echo "$SNAPSHOTS" >&6; }
ad6254c5 9096
d0191583 9097if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ];
ec6a6fbe 9098 then { { $as_echo "$as_me:$LINENO: error: --with-snapshots parameter invalid
d0191583 9099" >&5
ec6a6fbe 9100$as_echo "$as_me: error: --with-snapshots parameter invalid
d0191583
JM
9101" >&2;}
9102 { (exit 1); exit 1; }; }
9103fi;
9104
9105if test x$SNAPSHOTS = xinternal; then
9106
9107cat >>confdefs.h <<\_ACEOF
9108#define SNAPSHOT_INTERNAL 1
9109_ACEOF
ad6254c5 9110
ad6254c5 9111fi
7a197a62 9112
d0191583 9113################################################################################
ec6a6fbe
AK
9114{ $as_echo "$as_me:$LINENO: checking whether to include mirrors" >&5
9115$as_echo_n "checking whether to include mirrors... " >&6; }
d0191583
JM
9116
9117# Check whether --with-mirrors was given.
9118if test "${with_mirrors+set}" = set; then
9119 withval=$with_mirrors; MIRRORS="$withval"
9120else
9121 MIRRORS="internal"
ad6254c5 9122fi
ad6254c5 9123
ec6a6fbe
AK
9124{ $as_echo "$as_me:$LINENO: result: $MIRRORS" >&5
9125$as_echo "$MIRRORS" >&6; }
ad6254c5 9126
d0191583 9127if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ];
ec6a6fbe 9128 then { { $as_echo "$as_me:$LINENO: error: --with-mirrors parameter invalid
d0191583 9129" >&5
ec6a6fbe 9130$as_echo "$as_me: error: --with-mirrors parameter invalid
d0191583
JM
9131" >&2;}
9132 { (exit 1); exit 1; }; }
9133fi;
ad6254c5 9134
d0191583 9135if test x$MIRRORS = xinternal; then
ad6254c5 9136
d0191583
JM
9137cat >>confdefs.h <<\_ACEOF
9138#define MIRRORED_INTERNAL 1
ad6254c5 9139_ACEOF
8a2fc586 9140
d0191583 9141fi
8a2fc586 9142
d0191583 9143################################################################################
ec6a6fbe
AK
9144{ $as_echo "$as_me:$LINENO: checking whether to enable readline" >&5
9145$as_echo_n "checking whether to enable readline... " >&6; }
d0191583
JM
9146# Check whether --enable-readline was given.
9147if test "${enable_readline+set}" = set; then
9148 enableval=$enable_readline; READLINE=$enableval
9149else
06e459df 9150 READLINE=maybe
d0191583 9151fi
8a2fc586 9152
ec6a6fbe
AK
9153{ $as_echo "$as_me:$LINENO: result: $READLINE" >&5
9154$as_echo "$READLINE" >&6; }
8a2fc586 9155
d0191583 9156################################################################################
ec6a6fbe
AK
9157{ $as_echo "$as_me:$LINENO: checking whether to enable realtime support" >&5
9158$as_echo_n "checking whether to enable realtime support... " >&6; }
d0191583
JM
9159# Check whether --enable-realtime was given.
9160if test "${enable_realtime+set}" = set; then
9161 enableval=$enable_realtime; REALTIME=$enableval
ad6254c5 9162fi
ad6254c5 9163
ec6a6fbe
AK
9164{ $as_echo "$as_me:$LINENO: result: $REALTIME" >&5
9165$as_echo "$REALTIME" >&6; }
d0191583
JM
9166
9167################################################################################
ec6a6fbe
AK
9168{ $as_echo "$as_me:$LINENO: checking whether to build cluster LVM daemon" >&5
9169$as_echo_n "checking whether to build cluster LVM daemon... " >&6; }
d0191583
JM
9170
9171# Check whether --with-clvmd was given.
9172if test "${with_clvmd+set}" = set; then
9173 withval=$with_clvmd; CLVMD="$withval"
ad6254c5 9174else
d0191583
JM
9175 CLVMD="none"
9176fi
8a2fc586 9177
d0191583
JM
9178if test x$CLVMD = xyes; then
9179 CLVMD=all
9180fi
ec6a6fbe
AK
9181{ $as_echo "$as_me:$LINENO: result: $CLVMD" >&5
9182$as_echo "$CLVMD" >&6; }
8a2fc586 9183
d0191583
JM
9184if test x$CLVMD != xnone && test x$CLUSTER = xnone; then
9185 CLUSTER=internal
9186fi
8a2fc586 9187
e2997b73
AK
9188if [ "x$CLVMD" = xcorosync -o "x$CLVMD" = xall ]; then
9189
9190
9191if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
9192 if test -n "$ac_tool_prefix"; then
9193 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
9194set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
9195{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9196$as_echo_n "checking for $ac_word... " >&6; }
9197if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9198 $as_echo_n "(cached) " >&6
9199else
9200 case $PKG_CONFIG in
9201 [\\/]* | ?:[\\/]*)
9202 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9203 ;;
9204 *)
9205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9206for as_dir in $PATH
9207do
9208 IFS=$as_save_IFS
9209 test -z "$as_dir" && as_dir=.
9210 for ac_exec_ext in '' $ac_executable_extensions; do
9211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9212 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9213 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9214 break 2
9215 fi
9216done
9217done
9218IFS=$as_save_IFS
9219
9220 ;;
9221esac
9222fi
9223PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9224if test -n "$PKG_CONFIG"; then
9225 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9226$as_echo "$PKG_CONFIG" >&6; }
9227else
9228 { $as_echo "$as_me:$LINENO: result: no" >&5
9229$as_echo "no" >&6; }
9230fi
9231
9232
9233fi
9234if test -z "$ac_cv_path_PKG_CONFIG"; then
9235 ac_pt_PKG_CONFIG=$PKG_CONFIG
9236 # Extract the first word of "pkg-config", so it can be a program name with args.
9237set dummy pkg-config; ac_word=$2
9238{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9239$as_echo_n "checking for $ac_word... " >&6; }
9240if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
9241 $as_echo_n "(cached) " >&6
9242else
9243 case $ac_pt_PKG_CONFIG in
9244 [\\/]* | ?:[\\/]*)
9245 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
9246 ;;
9247 *)
9248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9249for as_dir in $PATH
9250do
9251 IFS=$as_save_IFS
9252 test -z "$as_dir" && as_dir=.
9253 for ac_exec_ext in '' $ac_executable_extensions; do
9254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9255 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9256 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9257 break 2
9258 fi
9259done
9260done
9261IFS=$as_save_IFS
9262
9263 ;;
9264esac
9265fi
9266ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
9267if test -n "$ac_pt_PKG_CONFIG"; then
9268 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
9269$as_echo "$ac_pt_PKG_CONFIG" >&6; }
9270else
9271 { $as_echo "$as_me:$LINENO: result: no" >&5
9272$as_echo "no" >&6; }
9273fi
9274
9275 if test "x$ac_pt_PKG_CONFIG" = x; then
9276 PKG_CONFIG=""
9277 else
9278 case $cross_compiling:$ac_tool_warned in
9279yes:)
9280{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9281$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9282ac_tool_warned=yes ;;
9283esac
9284 PKG_CONFIG=$ac_pt_PKG_CONFIG
9285 fi
9286else
9287 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
9288fi
9289
9290fi
9291if test -n "$PKG_CONFIG"; then
9292 _pkg_min_version=0.9.0
9293 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
9294$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
9295 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
9296 { $as_echo "$as_me:$LINENO: result: yes" >&5
9297$as_echo "yes" >&6; }
9298 else
9299 { $as_echo "$as_me:$LINENO: result: no" >&5
9300$as_echo "no" >&6; }
9301 PKG_CONFIG=""
9302 fi
9303
9304fi
9305
9306pkg_failed=no
9307{ $as_echo "$as_me:$LINENO: checking for QUORUM" >&5
9308$as_echo_n "checking for QUORUM... " >&6; }
9309
9310if test -n "$QUORUM_CFLAGS"; then
9311 pkg_cv_QUORUM_CFLAGS="$QUORUM_CFLAGS"
9312 elif test -n "$PKG_CONFIG"; then
9313 if test -n "$PKG_CONFIG" && \
9314 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libquorum\"") >&5
9315 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
9316 ac_status=$?
9317 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9318 (exit $ac_status); }; then
9319 pkg_cv_QUORUM_CFLAGS=`$PKG_CONFIG --cflags "libquorum" 2>/dev/null`
9320else
9321 pkg_failed=yes
9322fi
9323 else
9324 pkg_failed=untried
9325fi
9326if test -n "$QUORUM_LIBS"; then
9327 pkg_cv_QUORUM_LIBS="$QUORUM_LIBS"
9328 elif test -n "$PKG_CONFIG"; then
9329 if test -n "$PKG_CONFIG" && \
9330 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libquorum\"") >&5
9331 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
9332 ac_status=$?
9333 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9334 (exit $ac_status); }; then
9335 pkg_cv_QUORUM_LIBS=`$PKG_CONFIG --libs "libquorum" 2>/dev/null`
9336else
9337 pkg_failed=yes
9338fi
9339 else
9340 pkg_failed=untried
9341fi
9342
9343
9344
9345if test $pkg_failed = yes; then
9346
9347if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9348 _pkg_short_errors_supported=yes
9349else
9350 _pkg_short_errors_supported=no
9351fi
9352 if test $_pkg_short_errors_supported = yes; then
9353 QUORUM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libquorum" 2>&1`
9354 else
9355 QUORUM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libquorum" 2>&1`
9356 fi
9357 # Put the nasty error message in config.log where it belongs
9358 echo "$QUORUM_PKG_ERRORS" >&5
9359
9360 { $as_echo "$as_me:$LINENO: result: no" >&5
9361$as_echo "no" >&6; }
9362 { $as_echo "$as_me:$LINENO: result: no pkg for quorum library, using -lquorum" >&5
9363$as_echo "no pkg for quorum library, using -lquorum" >&6; };
9364 QUORUM_LIBS="-lquorum"
9365elif test $pkg_failed = untried; then
9366 { $as_echo "$as_me:$LINENO: result: no pkg for quorum library, using -lquorum" >&5
9367$as_echo "no pkg for quorum library, using -lquorum" >&6; };
9368 QUORUM_LIBS="-lquorum"
9369else
9370 QUORUM_CFLAGS=$pkg_cv_QUORUM_CFLAGS
9371 QUORUM_LIBS=$pkg_cv_QUORUM_LIBS
9372 { $as_echo "$as_me:$LINENO: result: yes" >&5
9373$as_echo "yes" >&6; }
9374 :
9375fi
9376
9377pkg_failed=no
9378{ $as_echo "$as_me:$LINENO: checking for CONFDB" >&5
9379$as_echo_n "checking for CONFDB... " >&6; }
9380
9381if test -n "$CONFDB_CFLAGS"; then
9382 pkg_cv_CONFDB_CFLAGS="$CONFDB_CFLAGS"
9383 elif test -n "$PKG_CONFIG"; then
9384 if test -n "$PKG_CONFIG" && \
9385 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libconfdb\"") >&5
9386 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
9387 ac_status=$?
9388 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9389 (exit $ac_status); }; then
9390 pkg_cv_CONFDB_CFLAGS=`$PKG_CONFIG --cflags "libconfdb" 2>/dev/null`
9391else
9392 pkg_failed=yes
9393fi
9394 else
9395 pkg_failed=untried
9396fi
9397if test -n "$CONFDB_LIBS"; then
9398 pkg_cv_CONFDB_LIBS="$CONFDB_LIBS"
9399 elif test -n "$PKG_CONFIG"; then
9400 if test -n "$PKG_CONFIG" && \
9401 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libconfdb\"") >&5
9402 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
9403 ac_status=$?
9404 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9405 (exit $ac_status); }; then
9406 pkg_cv_CONFDB_LIBS=`$PKG_CONFIG --libs "libconfdb" 2>/dev/null`
9407else
9408 pkg_failed=yes
9409fi
9410 else
9411 pkg_failed=untried
9412fi
9413
9414
9415
9416if test $pkg_failed = yes; then
9417
9418if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9419 _pkg_short_errors_supported=yes
9420else
9421 _pkg_short_errors_supported=no
9422fi
9423 if test $_pkg_short_errors_supported = yes; then
9424 CONFDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libconfdb" 2>&1`
9425 else
9426 CONFDB_PKG_ERRORS=`$PKG_CONFIG --print-errors "libconfdb" 2>&1`
9427 fi
9428 # Put the nasty error message in config.log where it belongs
9429 echo "$CONFDB_PKG_ERRORS" >&5
9430
9431 { $as_echo "$as_me:$LINENO: result: no" >&5
9432$as_echo "no" >&6; }
9433 { $as_echo "$as_me:$LINENO: result: no pkg for confdb library, using -lconfdb" >&5
9434$as_echo "no pkg for confdb library, using -lconfdb" >&6; };
9435 CONFDB_LIBS="-lconfdb"
9436elif test $pkg_failed = untried; then
9437 { $as_echo "$as_me:$LINENO: result: no pkg for confdb library, using -lconfdb" >&5
9438$as_echo "no pkg for confdb library, using -lconfdb" >&6; };
9439 CONFDB_LIBS="-lconfdb"
9440else
9441 CONFDB_CFLAGS=$pkg_cv_CONFDB_CFLAGS
9442 CONFDB_LIBS=$pkg_cv_CONFDB_LIBS
9443 { $as_echo "$as_me:$LINENO: result: yes" >&5
9444$as_echo "yes" >&6; }
9445 :
9446fi
9447
9448pkg_failed=no
9449{ $as_echo "$as_me:$LINENO: checking for CPG" >&5
9450$as_echo_n "checking for CPG... " >&6; }
9451
9452if test -n "$CPG_CFLAGS"; then
9453 pkg_cv_CPG_CFLAGS="$CPG_CFLAGS"
9454 elif test -n "$PKG_CONFIG"; then
9455 if test -n "$PKG_CONFIG" && \
9456 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
9457 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
9458 ac_status=$?
9459 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9460 (exit $ac_status); }; then
9461 pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
9462else
9463 pkg_failed=yes
9464fi
9465 else
9466 pkg_failed=untried
9467fi
9468if test -n "$CPG_LIBS"; then
9469 pkg_cv_CPG_LIBS="$CPG_LIBS"
9470 elif test -n "$PKG_CONFIG"; then
9471 if test -n "$PKG_CONFIG" && \
9472 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
9473 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
9474 ac_status=$?
9475 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9476 (exit $ac_status); }; then
9477 pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
9478else
9479 pkg_failed=yes
9480fi
9481 else
9482 pkg_failed=untried
9483fi
9484
9485
9486
9487if test $pkg_failed = yes; then
9488
9489if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9490 _pkg_short_errors_supported=yes
9491else
9492 _pkg_short_errors_supported=no
9493fi
9494 if test $_pkg_short_errors_supported = yes; then
9495 CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
9496 else
9497 CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
9498 fi
9499 # Put the nasty error message in config.log where it belongs
9500 echo "$CPG_PKG_ERRORS" >&5
9501
9502 { $as_echo "$as_me:$LINENO: result: no" >&5
9503$as_echo "no" >&6; }
9504 { $as_echo "$as_me:$LINENO: result: no pkg for libcpg library, using -lcpg" >&5
9505$as_echo "no pkg for libcpg library, using -lcpg" >&6; };
9506 CPG_LIBS="-lcpg"
9507elif test $pkg_failed = untried; then
9508 { $as_echo "$as_me:$LINENO: result: no pkg for libcpg library, using -lcpg" >&5
9509$as_echo "no pkg for libcpg library, using -lcpg" >&6; };
9510 CPG_LIBS="-lcpg"
9511else
9512 CPG_CFLAGS=$pkg_cv_CPG_CFLAGS
9513 CPG_LIBS=$pkg_cv_CPG_LIBS
9514 { $as_echo "$as_me:$LINENO: result: yes" >&5
9515$as_echo "yes" >&6; }
9516 :
9517fi
9518fi
9519
d0191583 9520################################################################################
ec6a6fbe
AK
9521{ $as_echo "$as_me:$LINENO: checking whether to enable debugging" >&5
9522$as_echo_n "checking whether to enable debugging... " >&6; }
d0191583
JM
9523# Check whether --enable-debug was given.
9524if test "${enable_debug+set}" = set; then
9525 enableval=$enable_debug; DEBUG=$enableval
9526else
9527 DEBUG=no
9528fi
8a2fc586 9529
ec6a6fbe
AK
9530{ $as_echo "$as_me:$LINENO: result: $DEBUG" >&5
9531$as_echo "$DEBUG" >&6; }
ad6254c5 9532
d0191583
JM
9533if test x$DEBUG = xyes; then
9534 COPTIMISE_FLAG=
fc54be10 9535else
d0191583
JM
9536 CSCOPE_CMD=
9537fi
fc54be10 9538
d0191583 9539################################################################################
ec6a6fbe
AK
9540{ $as_echo "$as_me:$LINENO: checking for C optimisation flag" >&5
9541$as_echo_n "checking for C optimisation flag... " >&6; }
d0191583
JM
9542
9543# Check whether --with-optimisation was given.
9544if test "${with_optimisation+set}" = set; then
9545 withval=$with_optimisation; COPTIMISE_FLAG="$withval"
9546fi
9547
ec6a6fbe
AK
9548{ $as_echo "$as_me:$LINENO: result: $COPTIMISE_FLAG" >&5
9549$as_echo "$COPTIMISE_FLAG" >&6; }
fddafd51
ZK
9550
9551################################################################################
ec6a6fbe
AK
9552{ $as_echo "$as_me:$LINENO: checking whether to gather gcov profiling data" >&5
9553$as_echo_n "checking whether to gather gcov profiling data... " >&6; }
fddafd51
ZK
9554# Check whether --enable-profiling was given.
9555if test "${enable_profiling+set}" = set; then
5556819a 9556 enableval=$enable_profiling; PROFILING=$enableval
fddafd51 9557else
5556819a 9558 PROFILING=no
fddafd51
ZK
9559fi
9560
ec6a6fbe
AK
9561{ $as_echo "$as_me:$LINENO: result: $PROFILING" >&5
9562$as_echo "$PROFILING" >&6; }
5556819a
AK
9563
9564if test "x$PROFILING" = xyes; then
9565 COPTIMISE_FLAG="$COPTIMISE_FLAG -fprofile-arcs -ftest-coverage"
9566 # Extract the first word of "lcov", so it can be a program name with args.
fddafd51 9567set dummy lcov; ac_word=$2
ec6a6fbe
AK
9568{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9569$as_echo_n "checking for $ac_word... " >&6; }
fddafd51 9570if test "${ac_cv_path_LCOV+set}" = set; then
ec6a6fbe 9571 $as_echo_n "(cached) " >&6
fddafd51
ZK
9572else
9573 case $LCOV in
9574 [\\/]* | ?:[\\/]*)
9575 ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path.
9576 ;;
9577 *)
9578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9579for as_dir in $PATH
9580do
9581 IFS=$as_save_IFS
9582 test -z "$as_dir" && as_dir=.
9583 for ac_exec_ext in '' $ac_executable_extensions; do
9584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9585 ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 9586 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
fddafd51
ZK
9587 break 2
9588 fi
9589done
9590done
9591IFS=$as_save_IFS
9592
b145d876 9593 test -z "$ac_cv_path_LCOV" && ac_cv_path_LCOV="no"
fddafd51
ZK
9594 ;;
9595esac
9596fi
9597LCOV=$ac_cv_path_LCOV
9598if test -n "$LCOV"; then
ec6a6fbe
AK
9599 { $as_echo "$as_me:$LINENO: result: $LCOV" >&5
9600$as_echo "$LCOV" >&6; }
fddafd51 9601else
ec6a6fbe
AK
9602 { $as_echo "$as_me:$LINENO: result: no" >&5
9603$as_echo "no" >&6; }
fddafd51
ZK
9604fi
9605
9606
5556819a 9607 # Extract the first word of "genhtml", so it can be a program name with args.
fddafd51 9608set dummy genhtml; ac_word=$2
ec6a6fbe
AK
9609{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9610$as_echo_n "checking for $ac_word... " >&6; }
fddafd51 9611if test "${ac_cv_path_GENHTML+set}" = set; then
ec6a6fbe 9612 $as_echo_n "(cached) " >&6
fddafd51
ZK
9613else
9614 case $GENHTML in
9615 [\\/]* | ?:[\\/]*)
9616 ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path.
9617 ;;
9618 *)
9619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9620for as_dir in $PATH
9621do
9622 IFS=$as_save_IFS
9623 test -z "$as_dir" && as_dir=.
9624 for ac_exec_ext in '' $ac_executable_extensions; do
9625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9626 ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 9627 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
fddafd51
ZK
9628 break 2
9629 fi
9630done
9631done
9632IFS=$as_save_IFS
9633
b145d876 9634 test -z "$ac_cv_path_GENHTML" && ac_cv_path_GENHTML="no"
fddafd51
ZK
9635 ;;
9636esac
9637fi
9638GENHTML=$ac_cv_path_GENHTML
9639if test -n "$GENHTML"; then
ec6a6fbe
AK
9640 { $as_echo "$as_me:$LINENO: result: $GENHTML" >&5
9641$as_echo "$GENHTML" >&6; }
fddafd51 9642else
ec6a6fbe
AK
9643 { $as_echo "$as_me:$LINENO: result: no" >&5
9644$as_echo "no" >&6; }
fddafd51
ZK
9645fi
9646
9647
b145d876 9648 if test "$LCOV" = no -o "$GENHTML" = no ; then
ec6a6fbe
AK
9649 { { $as_echo "$as_me:$LINENO: error: lcov and genhtml are required for profiling" >&5
9650$as_echo "$as_me: error: lcov and genhtml are required for profiling" >&2;}
b145d876
ZK
9651 { (exit 1); exit 1; }; }
9652 fi
5556819a 9653fi
d0191583
JM
9654
9655################################################################################
ec6a6fbe
AK
9656{ $as_echo "$as_me:$LINENO: checking whether to use device-mapper" >&5
9657$as_echo_n "checking whether to use device-mapper... " >&6; }
d0191583
JM
9658# Check whether --enable-devmapper was given.
9659if test "${enable_devmapper+set}" = set; then
9660 enableval=$enable_devmapper; DEVMAPPER=$enableval
fc54be10
AK
9661fi
9662
ec6a6fbe
AK
9663{ $as_echo "$as_me:$LINENO: result: $DEVMAPPER" >&5
9664$as_echo "$DEVMAPPER" >&6; }
d0191583
JM
9665
9666if test x$DEVMAPPER = xyes; then
ad6254c5
AK
9667
9668cat >>confdefs.h <<\_ACEOF
d0191583 9669#define DEVMAPPER_SUPPORT 1
ad6254c5
AK
9670_ACEOF
9671
9672fi
9673
93bd259b
AK
9674################################################################################
9675# Check whether --enable-compat was given.
9676if test "${enable_compat+set}" = set; then
9677 enableval=$enable_compat; DM_COMPAT=$enableval
9678else
9679 DM_COMPAT=no
9680fi
9681
9682
9683################################################################################
9684# Check whether --enable-ioctl was given.
9685if test "${enable_ioctl+set}" = set; then
9686 enableval=$enable_ioctl; DM_IOCTLS=$enableval
9687fi
9688
9689
d0191583 9690################################################################################
ec6a6fbe
AK
9691{ $as_echo "$as_me:$LINENO: checking whether to enable O_DIRECT" >&5
9692$as_echo_n "checking whether to enable O_DIRECT... " >&6; }
d0191583
JM
9693# Check whether --enable-o_direct was given.
9694if test "${enable_o_direct+set}" = set; then
9695 enableval=$enable_o_direct; ODIRECT=$enableval
ad6254c5 9696fi
ad6254c5 9697
ec6a6fbe
AK
9698{ $as_echo "$as_me:$LINENO: result: $ODIRECT" >&5
9699$as_echo "$ODIRECT" >&6; }
ad6254c5 9700
d0191583 9701if test x$ODIRECT = xyes; then
ad6254c5 9702
d0191583
JM
9703cat >>confdefs.h <<\_ACEOF
9704#define O_DIRECT_SUPPORT 1
9705_ACEOF
ad6254c5 9706
d0191583 9707fi
ad6254c5 9708
d0191583 9709################################################################################
ec6a6fbe
AK
9710{ $as_echo "$as_me:$LINENO: checking whether to compile liblvm2cmd.so" >&5
9711$as_echo_n "checking whether to compile liblvm2cmd.so... " >&6; }
d0191583
JM
9712# Check whether --enable-cmdlib was given.
9713if test "${enable_cmdlib+set}" = set; then
9714 enableval=$enable_cmdlib; CMDLIB=$enableval
ad6254c5 9715else
d0191583
JM
9716 CMDLIB=no
9717fi
8a2fc586 9718
ec6a6fbe
AK
9719{ $as_echo "$as_me:$LINENO: result: $CMDLIB" >&5
9720$as_echo "$CMDLIB" >&6; }
8a2fc586 9721
2a9a80c9 9722test x$CMDLIB = xyes \
d179cc7a
JM
9723 && LVM2CMD_LIB=-llvm2cmd \
9724 || LVM2CMD_LIB=
9725
93bd259b
AK
9726################################################################################
9727# Check whether --enable-pkgconfig was given.
9728if test "${enable_pkgconfig+set}" = set; then
9729 enableval=$enable_pkgconfig; PKGCONFIG=$enableval
9730else
9731 PKGCONFIG=no
9732fi
9733
2a9a80c9 9734
d0191583 9735################################################################################
ec6a6fbe
AK
9736{ $as_echo "$as_me:$LINENO: checking whether to install fsadm" >&5
9737$as_echo_n "checking whether to install fsadm... " >&6; }
d0191583
JM
9738# Check whether --enable-fsadm was given.
9739if test "${enable_fsadm+set}" = set; then
9740 enableval=$enable_fsadm; FSADM=$enableval
9741fi
8a2fc586 9742
ec6a6fbe
AK
9743{ $as_echo "$as_me:$LINENO: result: $FSADM" >&5
9744$as_echo "$FSADM" >&6; }
8a2fc586 9745
d0191583 9746################################################################################
ec6a6fbe
AK
9747{ $as_echo "$as_me:$LINENO: checking whether to use dmeventd" >&5
9748$as_echo_n "checking whether to use dmeventd... " >&6; }
d0191583
JM
9749# Check whether --enable-dmeventd was given.
9750if test "${enable_dmeventd+set}" = set; then
9751 enableval=$enable_dmeventd; DMEVENTD=$enableval
9752fi
ad6254c5 9753
ec6a6fbe
AK
9754{ $as_echo "$as_me:$LINENO: result: $DMEVENTD" >&5
9755$as_echo "$DMEVENTD" >&6; }
ad6254c5 9756
93bd259b
AK
9757BUILD_DMEVENTD=$DMEVENTD
9758
2a9a80c9
PR
9759if test x$DMEVENTD = xyes; then
9760 if test x$MIRRORS != xinternal; then
ec6a6fbe 9761 { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd currently requires --with-mirrors=internal
2a9a80c9 9762 " >&5
ec6a6fbe 9763$as_echo "$as_me: error: --enable-dmeventd currently requires --with-mirrors=internal
2a9a80c9 9764 " >&2;}
d0191583 9765 { (exit 1); exit 1; }; }
2a9a80c9
PR
9766 fi
9767 if test x$CMDLIB = xno; then
ec6a6fbe 9768 { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd requires --enable-cmdlib to be used as well
2a9a80c9 9769 " >&5
ec6a6fbe 9770$as_echo "$as_me: error: --enable-dmeventd requires --enable-cmdlib to be used as well
2a9a80c9
PR
9771 " >&2;}
9772 { (exit 1); exit 1; }; }
9773 fi
ad6254c5 9774fi
7a197a62 9775
d0191583
JM
9776if test x$DMEVENTD = xyes; then
9777
9778cat >>confdefs.h <<\_ACEOF
9779#define DMEVENTD 1
ad6254c5
AK
9780_ACEOF
9781
ad6254c5 9782fi
93bd259b
AK
9783
9784################################################################################
9785
ec6a6fbe
AK
9786{ $as_echo "$as_me:$LINENO: checking for getline in -lc" >&5
9787$as_echo_n "checking for getline in -lc... " >&6; }
93bd259b 9788if test "${ac_cv_lib_c_getline+set}" = set; then
ec6a6fbe 9789 $as_echo_n "(cached) " >&6
93bd259b
AK
9790else
9791 ac_check_lib_save_LIBS=$LIBS
9792LIBS="-lc $LIBS"
9793cat >conftest.$ac_ext <<_ACEOF
9794/* confdefs.h. */
9795_ACEOF
9796cat confdefs.h >>conftest.$ac_ext
9797cat >>conftest.$ac_ext <<_ACEOF
9798/* end confdefs.h. */
9799
9800/* Override any GCC internal prototype to avoid an error.
9801 Use char because int might match the return type of a GCC
9802 builtin and then its argument prototype would still apply. */
9803#ifdef __cplusplus
9804extern "C"
9805#endif
9806char getline ();
9807int
9808main ()
9809{
9810return getline ();
9811 ;
9812 return 0;
9813}
9814_ACEOF
9815rm -f conftest.$ac_objext conftest$ac_exeext
9816if { (ac_try="$ac_link"
9817case "(($ac_try" in
9818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9819 *) ac_try_echo=$ac_try;;
9820esac
ec6a6fbe
AK
9821eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9822$as_echo "$ac_try_echo") >&5
93bd259b
AK
9823 (eval "$ac_link") 2>conftest.er1
9824 ac_status=$?
9825 grep -v '^ *+' conftest.er1 >conftest.err
9826 rm -f conftest.er1
9827 cat conftest.err >&5
ec6a6fbe 9828 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
93bd259b
AK
9829 (exit $ac_status); } && {
9830 test -z "$ac_c_werror_flag" ||
9831 test ! -s conftest.err
ec6a6fbe
AK
9832 } && test -s conftest$ac_exeext && {
9833 test "$cross_compiling" = yes ||
9834 $as_test_x conftest$ac_exeext
9835 }; then
93bd259b
AK
9836 ac_cv_lib_c_getline=yes
9837else
ec6a6fbe 9838 $as_echo "$as_me: failed program was:" >&5
93bd259b
AK
9839sed 's/^/| /' conftest.$ac_ext >&5
9840
9841 ac_cv_lib_c_getline=no
9842fi
9843
ec6a6fbe 9844rm -rf conftest.dSYM
93bd259b
AK
9845rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9846 conftest$ac_exeext conftest.$ac_ext
9847LIBS=$ac_check_lib_save_LIBS
9848fi
ec6a6fbe
AK
9849{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_getline" >&5
9850$as_echo "$ac_cv_lib_c_getline" >&6; }
9851if test "x$ac_cv_lib_c_getline" = x""yes; then
93bd259b
AK
9852
9853cat >>confdefs.h <<\_ACEOF
9854#define HAVE_GETLINE 1
9855_ACEOF
9856
9857fi
9858
9859
9860################################################################################
9861
ec6a6fbe
AK
9862{ $as_echo "$as_me:$LINENO: checking for canonicalize_file_name in -lc" >&5
9863$as_echo_n "checking for canonicalize_file_name in -lc... " >&6; }
93bd259b 9864if test "${ac_cv_lib_c_canonicalize_file_name+set}" = set; then
ec6a6fbe 9865 $as_echo_n "(cached) " >&6
93bd259b
AK
9866else
9867 ac_check_lib_save_LIBS=$LIBS
9868LIBS="-lc $LIBS"
9869cat >conftest.$ac_ext <<_ACEOF
9870/* confdefs.h. */
9871_ACEOF
9872cat confdefs.h >>conftest.$ac_ext
9873cat >>conftest.$ac_ext <<_ACEOF
9874/* end confdefs.h. */
9875
9876/* Override any GCC internal prototype to avoid an error.
9877 Use char because int might match the return type of a GCC
9878 builtin and then its argument prototype would still apply. */
9879#ifdef __cplusplus
9880extern "C"
9881#endif
9882char canonicalize_file_name ();
9883int
9884main ()
9885{
9886return canonicalize_file_name ();
9887 ;
9888 return 0;
9889}
9890_ACEOF
9891rm -f conftest.$ac_objext conftest$ac_exeext
9892if { (ac_try="$ac_link"
9893case "(($ac_try" in
9894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9895 *) ac_try_echo=$ac_try;;
9896esac
ec6a6fbe
AK
9897eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9898$as_echo "$ac_try_echo") >&5
93bd259b
AK
9899 (eval "$ac_link") 2>conftest.er1
9900 ac_status=$?
9901 grep -v '^ *+' conftest.er1 >conftest.err
9902 rm -f conftest.er1
9903 cat conftest.err >&5
ec6a6fbe 9904 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
93bd259b
AK
9905 (exit $ac_status); } && {
9906 test -z "$ac_c_werror_flag" ||
9907 test ! -s conftest.err
ec6a6fbe
AK
9908 } && test -s conftest$ac_exeext && {
9909 test "$cross_compiling" = yes ||
9910 $as_test_x conftest$ac_exeext
9911 }; then
93bd259b
AK
9912 ac_cv_lib_c_canonicalize_file_name=yes
9913else
ec6a6fbe 9914 $as_echo "$as_me: failed program was:" >&5
93bd259b
AK
9915sed 's/^/| /' conftest.$ac_ext >&5
9916
9917 ac_cv_lib_c_canonicalize_file_name=no
9918fi
9919
ec6a6fbe 9920rm -rf conftest.dSYM
93bd259b
AK
9921rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9922 conftest$ac_exeext conftest.$ac_ext
9923LIBS=$ac_check_lib_save_LIBS
9924fi
ec6a6fbe
AK
9925{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_canonicalize_file_name" >&5
9926$as_echo "$ac_cv_lib_c_canonicalize_file_name" >&6; }
9927if test "x$ac_cv_lib_c_canonicalize_file_name" = x""yes; then
93bd259b
AK
9928
9929cat >>confdefs.h <<\_ACEOF
9930#define HAVE_CANONICALIZE_FILE_NAME 1
9931_ACEOF
9932
9933fi
9934
9935
d0191583
JM
9936################################################################################
9937if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ];
9938 then exec_prefix="";
9939fi;
ad6254c5
AK
9940
9941################################################################################
06e459df 9942if test x$READLINE != xno; then
ec6a6fbe
AK
9943 { $as_echo "$as_me:$LINENO: checking for library containing tgetent" >&5
9944$as_echo_n "checking for library containing tgetent... " >&6; }
ad6254c5 9945if test "${ac_cv_search_tgetent+set}" = set; then
ec6a6fbe 9946 $as_echo_n "(cached) " >&6
ad6254c5
AK
9947else
9948 ac_func_search_save_LIBS=$LIBS
ad6254c5 9949cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9950/* confdefs.h. */
9951_ACEOF
9952cat confdefs.h >>conftest.$ac_ext
9953cat >>conftest.$ac_ext <<_ACEOF
9954/* end confdefs.h. */
9955
7a197a62
AK
9956/* Override any GCC internal prototype to avoid an error.
9957 Use char because int might match the return type of a GCC
9958 builtin and then its argument prototype would still apply. */
ad6254c5
AK
9959#ifdef __cplusplus
9960extern "C"
9961#endif
ad6254c5
AK
9962char tgetent ();
9963int
9964main ()
9965{
7a197a62 9966return tgetent ();
ad6254c5
AK
9967 ;
9968 return 0;
9969}
9970_ACEOF
18dcfb69 9971for ac_lib in '' tinfo ncurses curses termcap termlib; do
7a197a62
AK
9972 if test -z "$ac_lib"; then
9973 ac_res="none required"
9974 else
9975 ac_res=-l$ac_lib
9976 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9977 fi
9978 rm -f conftest.$ac_objext conftest$ac_exeext
9979if { (ac_try="$ac_link"
9980case "(($ac_try" in
9981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9982 *) ac_try_echo=$ac_try;;
9983esac
ec6a6fbe
AK
9984eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9985$as_echo "$ac_try_echo") >&5
7a197a62 9986 (eval "$ac_link") 2>conftest.er1
ad6254c5 9987 ac_status=$?
8a2fc586
AK
9988 grep -v '^ *+' conftest.er1 >conftest.err
9989 rm -f conftest.er1
9990 cat conftest.err >&5
ec6a6fbe 9991 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9992 (exit $ac_status); } && {
9993 test -z "$ac_c_werror_flag" ||
9994 test ! -s conftest.err
ec6a6fbe
AK
9995 } && test -s conftest$ac_exeext && {
9996 test "$cross_compiling" = yes ||
9997 $as_test_x conftest$ac_exeext
9998 }; then
7a197a62 9999 ac_cv_search_tgetent=$ac_res
ad6254c5 10000else
ec6a6fbe 10001 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10002sed 's/^/| /' conftest.$ac_ext >&5
10003
ad6254c5 10004
7a197a62 10005fi
ad6254c5 10006
ec6a6fbe 10007rm -rf conftest.dSYM
25fbec5b 10008rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7a197a62
AK
10009 conftest$ac_exeext
10010 if test "${ac_cv_search_tgetent+set}" = set; then
10011 break
ad6254c5 10012fi
7a197a62
AK
10013done
10014if test "${ac_cv_search_tgetent+set}" = set; then
10015 :
10016else
10017 ac_cv_search_tgetent=no
ad6254c5 10018fi
7a197a62 10019rm conftest.$ac_ext
ad6254c5
AK
10020LIBS=$ac_func_search_save_LIBS
10021fi
ec6a6fbe
AK
10022{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
10023$as_echo "$ac_cv_search_tgetent" >&6; }
7a197a62
AK
10024ac_res=$ac_cv_search_tgetent
10025if test "$ac_res" != no; then
10026 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
06e459df 10027 tg_found=yes
ad6254c5 10028else
06e459df
JM
10029 tg_found=no
10030fi
10031
10032 test x$READLINE:$tg_found = xyes:no &&
ec6a6fbe 10033 { { $as_echo "$as_me:$LINENO: error: termcap could not be found which is required for the
ad6254c5
AK
10034--enable-readline option (which is enabled by default). Either disable readline
10035support with --disable-readline or download and install termcap from:
10036 ftp.gnu.org/gnu/termcap
10037Note: if you are using precompiled packages you will also need the development
10038 package as well (which may be called termcap-devel or something similar).
10039Note: (n)curses also seems to work as a substitute for termcap. This was
10040 not found either - but you could try installing that as well.
10041" >&5
ec6a6fbe 10042$as_echo "$as_me: error: termcap could not be found which is required for the
ad6254c5
AK
10043--enable-readline option (which is enabled by default). Either disable readline
10044support with --disable-readline or download and install termcap from:
10045 ftp.gnu.org/gnu/termcap
10046Note: if you are using precompiled packages you will also need the development
10047 package as well (which may be called termcap-devel or something similar).
10048Note: (n)curses also seems to work as a substitute for termcap. This was
10049 not found either - but you could try installing that as well.
10050" >&2;}
10051 { (exit 1); exit 1; }; }
ad6254c5
AK
10052fi
10053
10054################################################################################
ec6a6fbe
AK
10055{ $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10056$as_echo_n "checking for dlopen in -ldl... " >&6; }
ad6254c5 10057if test "${ac_cv_lib_dl_dlopen+set}" = set; then
ec6a6fbe 10058 $as_echo_n "(cached) " >&6
ad6254c5
AK
10059else
10060 ac_check_lib_save_LIBS=$LIBS
10061LIBS="-ldl $LIBS"
10062cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10063/* confdefs.h. */
10064_ACEOF
10065cat confdefs.h >>conftest.$ac_ext
10066cat >>conftest.$ac_ext <<_ACEOF
10067/* end confdefs.h. */
10068
7a197a62
AK
10069/* Override any GCC internal prototype to avoid an error.
10070 Use char because int might match the return type of a GCC
10071 builtin and then its argument prototype would still apply. */
ad6254c5
AK
10072#ifdef __cplusplus
10073extern "C"
10074#endif
ad6254c5
AK
10075char dlopen ();
10076int
10077main ()
10078{
7a197a62 10079return dlopen ();
ad6254c5
AK
10080 ;
10081 return 0;
10082}
10083_ACEOF
10084rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
10085if { (ac_try="$ac_link"
10086case "(($ac_try" in
10087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10088 *) ac_try_echo=$ac_try;;
10089esac
ec6a6fbe
AK
10090eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10091$as_echo "$ac_try_echo") >&5
7a197a62 10092 (eval "$ac_link") 2>conftest.er1
ad6254c5 10093 ac_status=$?
8a2fc586
AK
10094 grep -v '^ *+' conftest.er1 >conftest.err
10095 rm -f conftest.er1
10096 cat conftest.err >&5
ec6a6fbe 10097 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10098 (exit $ac_status); } && {
10099 test -z "$ac_c_werror_flag" ||
10100 test ! -s conftest.err
ec6a6fbe
AK
10101 } && test -s conftest$ac_exeext && {
10102 test "$cross_compiling" = yes ||
10103 $as_test_x conftest$ac_exeext
10104 }; then
ad6254c5
AK
10105 ac_cv_lib_dl_dlopen=yes
10106else
ec6a6fbe 10107 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10108sed 's/^/| /' conftest.$ac_ext >&5
10109
7a197a62 10110 ac_cv_lib_dl_dlopen=no
ad6254c5 10111fi
7a197a62 10112
ec6a6fbe 10113rm -rf conftest.dSYM
25fbec5b 10114rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 10115 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
10116LIBS=$ac_check_lib_save_LIBS
10117fi
ec6a6fbe
AK
10118{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10119$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10120if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
ad6254c5
AK
10121 HAVE_LIBDL=yes
10122else
10123 HAVE_LIBDL=no
10124fi
10125
10126
7e9e9502 10127if [ "x$HAVE_LIBDL" = xyes ]; then
72b2cb61
AK
10128
10129cat >>confdefs.h <<\_ACEOF
10130#define HAVE_LIBDL 1
10131_ACEOF
10132
ad6254c5
AK
10133 LIBS="-ldl $LIBS"
10134else
10135 HAVE_LIBDL=no
10136fi
10137
10138################################################################################
10139if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \
10140 -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \
10141 \) -a "x$STATIC_LINK" = xyes ];
ec6a6fbe 10142 then { { $as_echo "$as_me:$LINENO: error: Features cannot be 'shared' when building statically
ad6254c5 10143" >&5
ec6a6fbe 10144$as_echo "$as_me: error: Features cannot be 'shared' when building statically
ad6254c5
AK
10145" >&2;}
10146 { (exit 1); exit 1; }; }
10147fi
10148
d0191583 10149################################################################################
ec6a6fbe
AK
10150{ $as_echo "$as_me:$LINENO: checking whether to enable selinux support" >&5
10151$as_echo_n "checking whether to enable selinux support... " >&6; }
d0191583
JM
10152# Check whether --enable-selinux was given.
10153if test "${enable_selinux+set}" = set; then
10154 enableval=$enable_selinux; SELINUX=$enableval
10155fi
10156
ec6a6fbe
AK
10157{ $as_echo "$as_me:$LINENO: result: $SELINUX" >&5
10158$as_echo "$SELINUX" >&6; }
d0191583 10159
ad6254c5
AK
10160################################################################################
10161if test x$SELINUX = xyes; then
ec6a6fbe
AK
10162 { $as_echo "$as_me:$LINENO: checking for sepol_check_context in -lsepol" >&5
10163$as_echo_n "checking for sepol_check_context in -lsepol... " >&6; }
8a2fc586 10164if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then
ec6a6fbe 10165 $as_echo_n "(cached) " >&6
8a2fc586
AK
10166else
10167 ac_check_lib_save_LIBS=$LIBS
10168LIBS="-lsepol $LIBS"
10169cat >conftest.$ac_ext <<_ACEOF
10170/* confdefs.h. */
10171_ACEOF
10172cat confdefs.h >>conftest.$ac_ext
10173cat >>conftest.$ac_ext <<_ACEOF
10174/* end confdefs.h. */
10175
7a197a62
AK
10176/* Override any GCC internal prototype to avoid an error.
10177 Use char because int might match the return type of a GCC
10178 builtin and then its argument prototype would still apply. */
8a2fc586
AK
10179#ifdef __cplusplus
10180extern "C"
10181#endif
8a2fc586
AK
10182char sepol_check_context ();
10183int
10184main ()
10185{
7a197a62 10186return sepol_check_context ();
8a2fc586
AK
10187 ;
10188 return 0;
10189}
10190_ACEOF
10191rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
10192if { (ac_try="$ac_link"
10193case "(($ac_try" in
10194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10195 *) ac_try_echo=$ac_try;;
10196esac
ec6a6fbe
AK
10197eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10198$as_echo "$ac_try_echo") >&5
7a197a62 10199 (eval "$ac_link") 2>conftest.er1
8a2fc586
AK
10200 ac_status=$?
10201 grep -v '^ *+' conftest.er1 >conftest.err
10202 rm -f conftest.er1
10203 cat conftest.err >&5
ec6a6fbe 10204 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10205 (exit $ac_status); } && {
10206 test -z "$ac_c_werror_flag" ||
10207 test ! -s conftest.err
ec6a6fbe
AK
10208 } && test -s conftest$ac_exeext && {
10209 test "$cross_compiling" = yes ||
10210 $as_test_x conftest$ac_exeext
10211 }; then
8a2fc586
AK
10212 ac_cv_lib_sepol_sepol_check_context=yes
10213else
ec6a6fbe 10214 $as_echo "$as_me: failed program was:" >&5
8a2fc586
AK
10215sed 's/^/| /' conftest.$ac_ext >&5
10216
7a197a62 10217 ac_cv_lib_sepol_sepol_check_context=no
8a2fc586 10218fi
7a197a62 10219
ec6a6fbe 10220rm -rf conftest.dSYM
25fbec5b 10221rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586
AK
10222 conftest$ac_exeext conftest.$ac_ext
10223LIBS=$ac_check_lib_save_LIBS
10224fi
ec6a6fbe
AK
10225{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sepol_sepol_check_context" >&5
10226$as_echo "$ac_cv_lib_sepol_sepol_check_context" >&6; }
10227if test "x$ac_cv_lib_sepol_sepol_check_context" = x""yes; then
8a2fc586
AK
10228 HAVE_SEPOL=yes
10229else
10230 HAVE_SEPOL=no
10231fi
10232
8a2fc586
AK
10233
10234 if test x$HAVE_SEPOL = xyes; then
d0191583
JM
10235
10236cat >>confdefs.h <<\_ACEOF
10237#define HAVE_SEPOL 1
10238_ACEOF
10239
8a2fc586
AK
10240 LIBS="-lsepol $LIBS"
10241 fi
10242
ec6a6fbe
AK
10243 { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
10244$as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
ad6254c5 10245if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
ec6a6fbe 10246 $as_echo_n "(cached) " >&6
ad6254c5
AK
10247else
10248 ac_check_lib_save_LIBS=$LIBS
10249LIBS="-lselinux $LIBS"
10250cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10251/* confdefs.h. */
10252_ACEOF
10253cat confdefs.h >>conftest.$ac_ext
10254cat >>conftest.$ac_ext <<_ACEOF
10255/* end confdefs.h. */
10256
7a197a62
AK
10257/* Override any GCC internal prototype to avoid an error.
10258 Use char because int might match the return type of a GCC
10259 builtin and then its argument prototype would still apply. */
ad6254c5
AK
10260#ifdef __cplusplus
10261extern "C"
10262#endif
ad6254c5
AK
10263char is_selinux_enabled ();
10264int
10265main ()
10266{
7a197a62 10267return is_selinux_enabled ();
ad6254c5
AK
10268 ;
10269 return 0;
10270}
10271_ACEOF
10272rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
10273if { (ac_try="$ac_link"
10274case "(($ac_try" in
10275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10276 *) ac_try_echo=$ac_try;;
10277esac
ec6a6fbe
AK
10278eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10279$as_echo "$ac_try_echo") >&5
7a197a62 10280 (eval "$ac_link") 2>conftest.er1
ad6254c5 10281 ac_status=$?
8a2fc586
AK
10282 grep -v '^ *+' conftest.er1 >conftest.err
10283 rm -f conftest.er1
10284 cat conftest.err >&5
ec6a6fbe 10285 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10286 (exit $ac_status); } && {
10287 test -z "$ac_c_werror_flag" ||
10288 test ! -s conftest.err
ec6a6fbe
AK
10289 } && test -s conftest$ac_exeext && {
10290 test "$cross_compiling" = yes ||
10291 $as_test_x conftest$ac_exeext
10292 }; then
ad6254c5
AK
10293 ac_cv_lib_selinux_is_selinux_enabled=yes
10294else
ec6a6fbe 10295 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10296sed 's/^/| /' conftest.$ac_ext >&5
10297
7a197a62 10298 ac_cv_lib_selinux_is_selinux_enabled=no
ad6254c5 10299fi
7a197a62 10300
ec6a6fbe 10301rm -rf conftest.dSYM
25fbec5b 10302rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 10303 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
10304LIBS=$ac_check_lib_save_LIBS
10305fi
ec6a6fbe
AK
10306{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
10307$as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
10308if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then
ad6254c5
AK
10309 HAVE_SELINUX=yes
10310else
10311 HAVE_SELINUX=no
10312fi
10313
ad6254c5
AK
10314
10315 if test x$HAVE_SELINUX = xyes; then
72b2cb61
AK
10316
10317cat >>confdefs.h <<\_ACEOF
10318#define HAVE_SELINUX 1
10319_ACEOF
10320
ad6254c5
AK
10321 LIBS="-lselinux $LIBS"
10322 else
ec6a6fbe
AK
10323 { $as_echo "$as_me:$LINENO: WARNING: Disabling selinux" >&5
10324$as_echo "$as_me: WARNING: Disabling selinux" >&2;}
66e941e8
JM
10325 fi
10326
d0191583 10327 # With --enable-static_link and selinux enabled, linking
66e941e8
JM
10328 # fails on at least Debian unstable due to unsatisfied references
10329 # to pthread_mutex_lock and _unlock. See if we need -lpthread.
10330 if test "$STATIC_LINK-$HAVE_SELINUX" = yes-yes; then
10331 lvm_saved_libs=$LIBS
10332 LIBS="$LIBS -static"
ec6a6fbe
AK
10333 { $as_echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
10334$as_echo_n "checking for library containing pthread_mutex_lock... " >&6; }
66e941e8 10335if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
ec6a6fbe 10336 $as_echo_n "(cached) " >&6
66e941e8
JM
10337else
10338 ac_func_search_save_LIBS=$LIBS
10339cat >conftest.$ac_ext <<_ACEOF
10340/* confdefs.h. */
10341_ACEOF
10342cat confdefs.h >>conftest.$ac_ext
10343cat >>conftest.$ac_ext <<_ACEOF
10344/* end confdefs.h. */
10345
10346/* Override any GCC internal prototype to avoid an error.
10347 Use char because int might match the return type of a GCC
10348 builtin and then its argument prototype would still apply. */
10349#ifdef __cplusplus
10350extern "C"
10351#endif
10352char pthread_mutex_lock ();
10353int
10354main ()
10355{
10356return pthread_mutex_lock ();
10357 ;
10358 return 0;
10359}
10360_ACEOF
10361for ac_lib in '' pthread; do
10362 if test -z "$ac_lib"; then
10363 ac_res="none required"
10364 else
10365 ac_res=-l$ac_lib
10366 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10367 fi
10368 rm -f conftest.$ac_objext conftest$ac_exeext
10369if { (ac_try="$ac_link"
10370case "(($ac_try" in
10371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10372 *) ac_try_echo=$ac_try;;
10373esac
ec6a6fbe
AK
10374eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10375$as_echo "$ac_try_echo") >&5
66e941e8
JM
10376 (eval "$ac_link") 2>conftest.er1
10377 ac_status=$?
10378 grep -v '^ *+' conftest.er1 >conftest.err
10379 rm -f conftest.er1
10380 cat conftest.err >&5
ec6a6fbe 10381 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10382 (exit $ac_status); } && {
10383 test -z "$ac_c_werror_flag" ||
10384 test ! -s conftest.err
ec6a6fbe
AK
10385 } && test -s conftest$ac_exeext && {
10386 test "$cross_compiling" = yes ||
10387 $as_test_x conftest$ac_exeext
10388 }; then
66e941e8
JM
10389 ac_cv_search_pthread_mutex_lock=$ac_res
10390else
ec6a6fbe 10391 $as_echo "$as_me: failed program was:" >&5
66e941e8
JM
10392sed 's/^/| /' conftest.$ac_ext >&5
10393
10394
10395fi
10396
ec6a6fbe 10397rm -rf conftest.dSYM
25fbec5b 10398rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
66e941e8
JM
10399 conftest$ac_exeext
10400 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
10401 break
10402fi
10403done
10404if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
10405 :
10406else
10407 ac_cv_search_pthread_mutex_lock=no
10408fi
10409rm conftest.$ac_ext
10410LIBS=$ac_func_search_save_LIBS
10411fi
ec6a6fbe
AK
10412{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
10413$as_echo "$ac_cv_search_pthread_mutex_lock" >&6; }
66e941e8
JM
10414ac_res=$ac_cv_search_pthread_mutex_lock
10415if test "$ac_res" != no; then
10416 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10417 test "$ac_cv_search_pthread_mutex_lock" = "none required" ||
10418 LIB_PTHREAD=-lpthread
10419fi
10420
10421 LIBS=$lvm_saved_libs
ad6254c5
AK
10422 fi
10423fi
10424
8b1a3214
AK
10425################################################################################
10426if test x$REALTIME = xyes; then
ec6a6fbe
AK
10427 { $as_echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
10428$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
8b1a3214 10429if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
ec6a6fbe 10430 $as_echo_n "(cached) " >&6
8b1a3214
AK
10431else
10432 ac_check_lib_save_LIBS=$LIBS
10433LIBS="-lrt $LIBS"
10434cat >conftest.$ac_ext <<_ACEOF
10435/* confdefs.h. */
10436_ACEOF
10437cat confdefs.h >>conftest.$ac_ext
10438cat >>conftest.$ac_ext <<_ACEOF
10439/* end confdefs.h. */
10440
7a197a62
AK
10441/* Override any GCC internal prototype to avoid an error.
10442 Use char because int might match the return type of a GCC
10443 builtin and then its argument prototype would still apply. */
8b1a3214
AK
10444#ifdef __cplusplus
10445extern "C"
10446#endif
8b1a3214
AK
10447char clock_gettime ();
10448int
10449main ()
10450{
7a197a62 10451return clock_gettime ();
8b1a3214
AK
10452 ;
10453 return 0;
10454}
10455_ACEOF
10456rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
10457if { (ac_try="$ac_link"
10458case "(($ac_try" in
10459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10460 *) ac_try_echo=$ac_try;;
10461esac
ec6a6fbe
AK
10462eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10463$as_echo "$ac_try_echo") >&5
7a197a62 10464 (eval "$ac_link") 2>conftest.er1
8b1a3214
AK
10465 ac_status=$?
10466 grep -v '^ *+' conftest.er1 >conftest.err
10467 rm -f conftest.er1
10468 cat conftest.err >&5
ec6a6fbe 10469 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10470 (exit $ac_status); } && {
10471 test -z "$ac_c_werror_flag" ||
10472 test ! -s conftest.err
ec6a6fbe
AK
10473 } && test -s conftest$ac_exeext && {
10474 test "$cross_compiling" = yes ||
10475 $as_test_x conftest$ac_exeext
10476 }; then
8b1a3214
AK
10477 ac_cv_lib_rt_clock_gettime=yes
10478else
ec6a6fbe 10479 $as_echo "$as_me: failed program was:" >&5
8b1a3214
AK
10480sed 's/^/| /' conftest.$ac_ext >&5
10481
7a197a62 10482 ac_cv_lib_rt_clock_gettime=no
8b1a3214 10483fi
7a197a62 10484
ec6a6fbe 10485rm -rf conftest.dSYM
25fbec5b 10486rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8b1a3214
AK
10487 conftest$ac_exeext conftest.$ac_ext
10488LIBS=$ac_check_lib_save_LIBS
10489fi
ec6a6fbe
AK
10490{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
10491$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
10492if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then
8b1a3214
AK
10493 HAVE_REALTIME=yes
10494else
10495 HAVE_REALTIME=no
10496fi
10497
8b1a3214
AK
10498
10499 if test x$HAVE_REALTIME = xyes; then
10500
10501cat >>confdefs.h <<\_ACEOF
10502#define HAVE_REALTIME 1
10503_ACEOF
10504
10505 LIBS="-lrt $LIBS"
10506 else
ec6a6fbe
AK
10507 { $as_echo "$as_me:$LINENO: WARNING: Disabling realtime clock" >&5
10508$as_echo "$as_me: WARNING: Disabling realtime clock" >&2;}
8b1a3214
AK
10509 fi
10510fi
10511
ad6254c5
AK
10512################################################################################
10513
10514for ac_header in getopt.h
10515do
ec6a6fbe 10516as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 10517if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
10518 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10519$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 10520if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 10521 $as_echo_n "(cached) " >&6
ad6254c5 10522fi
ec6a6fbe
AK
10523ac_res=`eval 'as_val=${'$as_ac_Header'}
10524 $as_echo "$as_val"'`
10525 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10526$as_echo "$ac_res" >&6; }
ad6254c5
AK
10527else
10528 # Is the header compilable?
ec6a6fbe
AK
10529{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10530$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 10531cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10532/* confdefs.h. */
10533_ACEOF
10534cat confdefs.h >>conftest.$ac_ext
10535cat >>conftest.$ac_ext <<_ACEOF
10536/* end confdefs.h. */
10537$ac_includes_default
10538#include <$ac_header>
10539_ACEOF
10540rm -f conftest.$ac_objext
7a197a62
AK
10541if { (ac_try="$ac_compile"
10542case "(($ac_try" in
10543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10544 *) ac_try_echo=$ac_try;;
10545esac
ec6a6fbe
AK
10546eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10547$as_echo "$ac_try_echo") >&5
7a197a62 10548 (eval "$ac_compile") 2>conftest.er1
ad6254c5 10549 ac_status=$?
8a2fc586
AK
10550 grep -v '^ *+' conftest.er1 >conftest.err
10551 rm -f conftest.er1
10552 cat conftest.err >&5
ec6a6fbe 10553 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10554 (exit $ac_status); } && {
10555 test -z "$ac_c_werror_flag" ||
10556 test ! -s conftest.err
10557 } && test -s conftest.$ac_objext; then
ad6254c5
AK
10558 ac_header_compiler=yes
10559else
ec6a6fbe 10560 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10561sed 's/^/| /' conftest.$ac_ext >&5
10562
7a197a62 10563 ac_header_compiler=no
ad6254c5 10564fi
7a197a62
AK
10565
10566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
10567{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10568$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
10569
10570# Is the header present?
ec6a6fbe
AK
10571{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10572$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 10573cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10574/* confdefs.h. */
10575_ACEOF
10576cat confdefs.h >>conftest.$ac_ext
10577cat >>conftest.$ac_ext <<_ACEOF
10578/* end confdefs.h. */
10579#include <$ac_header>
10580_ACEOF
7a197a62
AK
10581if { (ac_try="$ac_cpp conftest.$ac_ext"
10582case "(($ac_try" in
10583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10584 *) ac_try_echo=$ac_try;;
10585esac
ec6a6fbe
AK
10586eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10587$as_echo "$ac_try_echo") >&5
7a197a62 10588 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
10589 ac_status=$?
10590 grep -v '^ *+' conftest.er1 >conftest.err
10591 rm -f conftest.er1
10592 cat conftest.err >&5
ec6a6fbe 10593 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10594 (exit $ac_status); } >/dev/null && {
10595 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10596 test ! -s conftest.err
10597 }; then
ad6254c5
AK
10598 ac_header_preproc=yes
10599else
ec6a6fbe 10600 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10601sed 's/^/| /' conftest.$ac_ext >&5
10602
10603 ac_header_preproc=no
10604fi
7a197a62 10605
ad6254c5 10606rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
10607{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10608$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
10609
10610# So? What about this header?
8a2fc586
AK
10611case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10612 yes:no: )
ec6a6fbe
AK
10613 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10614$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10615 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10616$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 10617 ac_header_preproc=yes
ad6254c5 10618 ;;
8a2fc586 10619 no:yes:* )
ec6a6fbe
AK
10620 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10621$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10622 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10623$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10624 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10625$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10626 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10627$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10628 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10629$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10630 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10631$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 10632
ad6254c5
AK
10633 ;;
10634esac
ec6a6fbe
AK
10635{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10636$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 10637if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 10638 $as_echo_n "(cached) " >&6
ad6254c5 10639else
8a2fc586 10640 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 10641fi
ec6a6fbe
AK
10642ac_res=`eval 'as_val=${'$as_ac_Header'}
10643 $as_echo "$as_val"'`
10644 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10645$as_echo "$ac_res" >&6; }
ad6254c5
AK
10646
10647fi
ec6a6fbe
AK
10648as_val=`eval 'as_val=${'$as_ac_Header'}
10649 $as_echo "$as_val"'`
10650 if test "x$as_val" = x""yes; then
ad6254c5 10651 cat >>confdefs.h <<_ACEOF
ec6a6fbe 10652#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 10653_ACEOF
72b2cb61
AK
10654
10655cat >>confdefs.h <<\_ACEOF
10656#define HAVE_GETOPTLONG 1
10657_ACEOF
10658
ad6254c5
AK
10659fi
10660
10661done
10662
10663
10664################################################################################
06e459df 10665if test x$READLINE != xno; then
bc1024f8
JM
10666 rl_found=yes
10667
ec6a6fbe
AK
10668{ $as_echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
10669$as_echo_n "checking for readline in -lreadline... " >&6; }
ad6254c5 10670if test "${ac_cv_lib_readline_readline+set}" = set; then
ec6a6fbe 10671 $as_echo_n "(cached) " >&6
ad6254c5
AK
10672else
10673 ac_check_lib_save_LIBS=$LIBS
10674LIBS="-lreadline $LIBS"
10675cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10676/* confdefs.h. */
10677_ACEOF
10678cat confdefs.h >>conftest.$ac_ext
10679cat >>conftest.$ac_ext <<_ACEOF
10680/* end confdefs.h. */
10681
7a197a62
AK
10682/* Override any GCC internal prototype to avoid an error.
10683 Use char because int might match the return type of a GCC
10684 builtin and then its argument prototype would still apply. */
ad6254c5
AK
10685#ifdef __cplusplus
10686extern "C"
10687#endif
ad6254c5
AK
10688char readline ();
10689int
10690main ()
10691{
7a197a62 10692return readline ();
ad6254c5
AK
10693 ;
10694 return 0;
10695}
10696_ACEOF
10697rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
10698if { (ac_try="$ac_link"
10699case "(($ac_try" in
10700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10701 *) ac_try_echo=$ac_try;;
10702esac
ec6a6fbe
AK
10703eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10704$as_echo "$ac_try_echo") >&5
7a197a62 10705 (eval "$ac_link") 2>conftest.er1
ad6254c5 10706 ac_status=$?
8a2fc586
AK
10707 grep -v '^ *+' conftest.er1 >conftest.err
10708 rm -f conftest.er1
10709 cat conftest.err >&5
ec6a6fbe 10710 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10711 (exit $ac_status); } && {
10712 test -z "$ac_c_werror_flag" ||
10713 test ! -s conftest.err
ec6a6fbe
AK
10714 } && test -s conftest$ac_exeext && {
10715 test "$cross_compiling" = yes ||
10716 $as_test_x conftest$ac_exeext
10717 }; then
ad6254c5
AK
10718 ac_cv_lib_readline_readline=yes
10719else
ec6a6fbe 10720 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10721sed 's/^/| /' conftest.$ac_ext >&5
10722
7a197a62 10723 ac_cv_lib_readline_readline=no
ad6254c5 10724fi
7a197a62 10725
ec6a6fbe 10726rm -rf conftest.dSYM
25fbec5b 10727rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 10728 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
10729LIBS=$ac_check_lib_save_LIBS
10730fi
ec6a6fbe
AK
10731{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
10732$as_echo "$ac_cv_lib_readline_readline" >&6; }
10733if test "x$ac_cv_lib_readline_readline" = x""yes; then
bc1024f8
JM
10734 cat >>confdefs.h <<_ACEOF
10735#define HAVE_LIBREADLINE 1
10736_ACEOF
10737
10738 LIBS="-lreadline $LIBS"
10739
ad6254c5 10740else
06e459df
JM
10741 rl_found=no
10742fi
10743
10744 test x$READLINE:$rl_found = xyes:no &&
ec6a6fbe 10745 { { $as_echo "$as_me:$LINENO: error: GNU Readline could not be found which is required for the
ad6254c5
AK
10746--enable-readline option (which is enabled by default). Either disable readline
10747support with --disable-readline or download and install readline from:
10748 ftp.gnu.org/gnu/readline
10749Note: if you are using precompiled packages you will also need the development
10750package as well (which may be called readline-devel or something similar).
10751" >&5
ec6a6fbe 10752$as_echo "$as_me: error: GNU Readline could not be found which is required for the
ad6254c5
AK
10753--enable-readline option (which is enabled by default). Either disable readline
10754support with --disable-readline or download and install readline from:
10755 ftp.gnu.org/gnu/readline
10756Note: if you are using precompiled packages you will also need the development
10757package as well (which may be called readline-devel or something similar).
10758" >&2;}
10759 { (exit 1); exit 1; }; }
06e459df 10760 if test $rl_found = yes; then
bc1024f8
JM
10761
10762for ac_func in rl_completion_matches
10763do
ec6a6fbe
AK
10764as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10765{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10766$as_echo_n "checking for $ac_func... " >&6; }
bc1024f8 10767if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 10768 $as_echo_n "(cached) " >&6
ad6254c5
AK
10769else
10770 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10771/* confdefs.h. */
10772_ACEOF
10773cat confdefs.h >>conftest.$ac_ext
10774cat >>conftest.$ac_ext <<_ACEOF
10775/* end confdefs.h. */
bc1024f8 10776/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8a2fc586 10777 For example, HP-UX 11i <limits.h> declares gettimeofday. */
bc1024f8 10778#define $ac_func innocuous_$ac_func
8a2fc586 10779
ad6254c5 10780/* System header to define __stub macros and hopefully few prototypes,
bc1024f8 10781 which can conflict with char $ac_func (); below.
ad6254c5
AK
10782 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10783 <limits.h> exists even on freestanding compilers. */
8a2fc586 10784
ad6254c5
AK
10785#ifdef __STDC__
10786# include <limits.h>
10787#else
10788# include <assert.h>
10789#endif
8a2fc586 10790
bc1024f8 10791#undef $ac_func
8a2fc586 10792
7a197a62
AK
10793/* Override any GCC internal prototype to avoid an error.
10794 Use char because int might match the return type of a GCC
10795 builtin and then its argument prototype would still apply. */
ad6254c5
AK
10796#ifdef __cplusplus
10797extern "C"
ad6254c5 10798#endif
bc1024f8 10799char $ac_func ();
ad6254c5
AK
10800/* The GNU C library defines this for functions which it implements
10801 to always fail with ENOSYS. Some functions are actually named
10802 something starting with __ and the normal name is an alias. */
bc1024f8 10803#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 10804choke me
ad6254c5
AK
10805#endif
10806
10807int
10808main ()
10809{
bc1024f8 10810return $ac_func ();
ad6254c5
AK
10811 ;
10812 return 0;
10813}
10814_ACEOF
10815rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
10816if { (ac_try="$ac_link"
10817case "(($ac_try" in
10818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10819 *) ac_try_echo=$ac_try;;
10820esac
ec6a6fbe
AK
10821eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10822$as_echo "$ac_try_echo") >&5
7a197a62 10823 (eval "$ac_link") 2>conftest.er1
ad6254c5 10824 ac_status=$?
8a2fc586
AK
10825 grep -v '^ *+' conftest.er1 >conftest.err
10826 rm -f conftest.er1
10827 cat conftest.err >&5
ec6a6fbe 10828 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10829 (exit $ac_status); } && {
10830 test -z "$ac_c_werror_flag" ||
10831 test ! -s conftest.err
ec6a6fbe
AK
10832 } && test -s conftest$ac_exeext && {
10833 test "$cross_compiling" = yes ||
10834 $as_test_x conftest$ac_exeext
10835 }; then
bc1024f8 10836 eval "$as_ac_var=yes"
ad6254c5 10837else
ec6a6fbe 10838 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10839sed 's/^/| /' conftest.$ac_ext >&5
10840
bc1024f8 10841 eval "$as_ac_var=no"
ad6254c5 10842fi
7a197a62 10843
ec6a6fbe 10844rm -rf conftest.dSYM
25fbec5b 10845rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 10846 conftest$ac_exeext conftest.$ac_ext
ad6254c5 10847fi
ec6a6fbe
AK
10848ac_res=`eval 'as_val=${'$as_ac_var'}
10849 $as_echo "$as_val"'`
10850 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10851$as_echo "$ac_res" >&6; }
10852as_val=`eval 'as_val=${'$as_ac_var'}
10853 $as_echo "$as_val"'`
10854 if test "x$as_val" = x""yes; then
bc1024f8 10855 cat >>confdefs.h <<_ACEOF
ec6a6fbe 10856#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
72b2cb61
AK
10857_ACEOF
10858
10859fi
bc1024f8 10860done
ad6254c5 10861
d179cc7a
JM
10862
10863cat >>confdefs.h <<\_ACEOF
10864#define READLINE_SUPPORT 1
10865_ACEOF
10866
06e459df 10867 fi
ad6254c5
AK
10868fi
10869
10870################################################################################
ec6a6fbe
AK
10871{ $as_echo "$as_me:$LINENO: checking whether to enable internationalisation" >&5
10872$as_echo_n "checking whether to enable internationalisation... " >&6; }
7a197a62 10873# Check whether --enable-nls was given.
ad6254c5 10874if test "${enable_nls+set}" = set; then
7a197a62 10875 enableval=$enable_nls; INTL=$enableval
ad6254c5
AK
10876else
10877 INTL=no
7a197a62
AK
10878fi
10879
ec6a6fbe
AK
10880{ $as_echo "$as_me:$LINENO: result: $INTL" >&5
10881$as_echo "$INTL" >&6; }
ad6254c5
AK
10882
10883if test x$INTL = xyes; then
93bd259b 10884# FIXME - Move this - can be device-mapper too
ad6254c5
AK
10885 INTL_PACKAGE="lvm2"
10886 # Extract the first word of "msgfmt", so it can be a program name with args.
10887set dummy msgfmt; ac_word=$2
ec6a6fbe
AK
10888{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10889$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 10890if test "${ac_cv_path_MSGFMT+set}" = set; then
ec6a6fbe 10891 $as_echo_n "(cached) " >&6
ad6254c5
AK
10892else
10893 case $MSGFMT in
10894 [\\/]* | ?:[\\/]*)
10895 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
10896 ;;
10897 *)
10898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10899for as_dir in $PATH
10900do
10901 IFS=$as_save_IFS
10902 test -z "$as_dir" && as_dir=.
10903 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 10904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 10905 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 10906 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
10907 break 2
10908 fi
10909done
10910done
7a197a62 10911IFS=$as_save_IFS
ad6254c5
AK
10912
10913 ;;
10914esac
10915fi
10916MSGFMT=$ac_cv_path_MSGFMT
ad6254c5 10917if test -n "$MSGFMT"; then
ec6a6fbe
AK
10918 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
10919$as_echo "$MSGFMT" >&6; }
ad6254c5 10920else
ec6a6fbe
AK
10921 { $as_echo "$as_me:$LINENO: result: no" >&5
10922$as_echo "no" >&6; }
ad6254c5
AK
10923fi
10924
7a197a62 10925
ad6254c5 10926 if [ "x$MSGFMT" == x ];
ec6a6fbe 10927 then { { $as_echo "$as_me:$LINENO: error: msgfmt not found in path $PATH
ad6254c5 10928 " >&5
ec6a6fbe 10929$as_echo "$as_me: error: msgfmt not found in path $PATH
ad6254c5
AK
10930 " >&2;}
10931 { (exit 1); exit 1; }; }
10932 fi;
10933
10934
7a197a62 10935# Check whether --with-localedir was given.
ad6254c5 10936if test "${with_localedir+set}" = set; then
7a197a62 10937 withval=$with_localedir; LOCALEDIR="$withval"
ad6254c5
AK
10938else
10939 LOCALEDIR='${prefix}/share/locale'
7a197a62
AK
10940fi
10941
ad6254c5
AK
10942fi
10943
10944################################################################################
10945
7a197a62 10946# Check whether --with-confdir was given.
ad6254c5 10947if test "${with_confdir+set}" = set; then
7a197a62 10948 withval=$with_confdir; CONFDIR="$withval"
ad6254c5
AK
10949else
10950 CONFDIR='/etc'
7a197a62
AK
10951fi
10952
ad6254c5
AK
10953
10954
7a197a62 10955# Check whether --with-staticdir was given.
ad6254c5 10956if test "${with_staticdir+set}" = set; then
7a197a62 10957 withval=$with_staticdir; STATICDIR="$withval"
ad6254c5
AK
10958else
10959 STATICDIR='${exec_prefix}/sbin'
7a197a62 10960fi
ad6254c5 10961
33f732c5 10962
7a197a62 10963
68f2de6d
AK
10964# Check whether --with-usrlibdir was given.
10965if test "${with_usrlibdir+set}" = set; then
10966 withval=$with_usrlibdir; usrlibdir="$withval"
10967else
10968 usrlibdir='${prefix}/lib'
10969fi
10970
10971
10972
10973# Check whether --with-usrsbindir was given.
10974if test "${with_usrsbindir+set}" = set; then
10975 withval=$with_usrsbindir; usrsbindir="$withval"
10976else
10977 usrsbindir='${prefix}/sbin'
10978fi
10979
10980
ad6254c5
AK
10981################################################################################
10982if test x$READLINE = xyes; then
10983
10984
10985for ac_header in readline/readline.h readline/history.h
10986do
ec6a6fbe 10987as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 10988if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
10989 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10990$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 10991if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 10992 $as_echo_n "(cached) " >&6
ad6254c5 10993fi
ec6a6fbe
AK
10994ac_res=`eval 'as_val=${'$as_ac_Header'}
10995 $as_echo "$as_val"'`
10996 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10997$as_echo "$ac_res" >&6; }
ad6254c5
AK
10998else
10999 # Is the header compilable?
ec6a6fbe
AK
11000{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11001$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 11002cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11003/* confdefs.h. */
11004_ACEOF
11005cat confdefs.h >>conftest.$ac_ext
11006cat >>conftest.$ac_ext <<_ACEOF
11007/* end confdefs.h. */
11008$ac_includes_default
11009#include <$ac_header>
11010_ACEOF
11011rm -f conftest.$ac_objext
7a197a62
AK
11012if { (ac_try="$ac_compile"
11013case "(($ac_try" in
11014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11015 *) ac_try_echo=$ac_try;;
11016esac
ec6a6fbe
AK
11017eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11018$as_echo "$ac_try_echo") >&5
7a197a62 11019 (eval "$ac_compile") 2>conftest.er1
ad6254c5 11020 ac_status=$?
8a2fc586
AK
11021 grep -v '^ *+' conftest.er1 >conftest.err
11022 rm -f conftest.er1
11023 cat conftest.err >&5
ec6a6fbe 11024 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11025 (exit $ac_status); } && {
11026 test -z "$ac_c_werror_flag" ||
11027 test ! -s conftest.err
11028 } && test -s conftest.$ac_objext; then
ad6254c5
AK
11029 ac_header_compiler=yes
11030else
ec6a6fbe 11031 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
11032sed 's/^/| /' conftest.$ac_ext >&5
11033
7a197a62 11034 ac_header_compiler=no
ad6254c5 11035fi
7a197a62
AK
11036
11037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
11038{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11039$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
11040
11041# Is the header present?
ec6a6fbe
AK
11042{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11043$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 11044cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11045/* confdefs.h. */
11046_ACEOF
11047cat confdefs.h >>conftest.$ac_ext
11048cat >>conftest.$ac_ext <<_ACEOF
11049/* end confdefs.h. */
11050#include <$ac_header>
11051_ACEOF
7a197a62
AK
11052if { (ac_try="$ac_cpp conftest.$ac_ext"
11053case "(($ac_try" in
11054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11055 *) ac_try_echo=$ac_try;;
11056esac
ec6a6fbe
AK
11057eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11058$as_echo "$ac_try_echo") >&5
7a197a62 11059 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
11060 ac_status=$?
11061 grep -v '^ *+' conftest.er1 >conftest.err
11062 rm -f conftest.er1
11063 cat conftest.err >&5
ec6a6fbe 11064 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11065 (exit $ac_status); } >/dev/null && {
11066 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11067 test ! -s conftest.err
11068 }; then
ad6254c5
AK
11069 ac_header_preproc=yes
11070else
ec6a6fbe 11071 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
11072sed 's/^/| /' conftest.$ac_ext >&5
11073
11074 ac_header_preproc=no
11075fi
7a197a62 11076
ad6254c5 11077rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
11078{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11079$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
11080
11081# So? What about this header?
8a2fc586
AK
11082case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11083 yes:no: )
ec6a6fbe
AK
11084 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11085$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11086 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11087$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 11088 ac_header_preproc=yes
ad6254c5 11089 ;;
8a2fc586 11090 no:yes:* )
ec6a6fbe
AK
11091 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11092$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11093 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11094$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11095 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11096$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11097 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11098$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11099 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11100$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11101 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11102$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 11103
ad6254c5
AK
11104 ;;
11105esac
ec6a6fbe
AK
11106{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11107$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 11108if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 11109 $as_echo_n "(cached) " >&6
ad6254c5 11110else
8a2fc586 11111 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 11112fi
ec6a6fbe
AK
11113ac_res=`eval 'as_val=${'$as_ac_Header'}
11114 $as_echo "$as_val"'`
11115 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11116$as_echo "$ac_res" >&6; }
ad6254c5
AK
11117
11118fi
ec6a6fbe
AK
11119as_val=`eval 'as_val=${'$as_ac_Header'}
11120 $as_echo "$as_val"'`
11121 if test "x$as_val" = x""yes; then
ad6254c5 11122 cat >>confdefs.h <<_ACEOF
ec6a6fbe 11123#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
11124_ACEOF
11125
11126else
ec6a6fbe
AK
11127 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
11128$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5
AK
11129 { (exit 1); exit 1; }; }
11130fi
11131
11132done
11133
11134fi
11135
5c7fc7c4 11136if test x$CLVMD != xnone; then
ad6254c5
AK
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147for 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
11148do
ec6a6fbe 11149as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 11150if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
11151 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11152$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 11153if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 11154 $as_echo_n "(cached) " >&6
ad6254c5 11155fi
ec6a6fbe
AK
11156ac_res=`eval 'as_val=${'$as_ac_Header'}
11157 $as_echo "$as_val"'`
11158 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11159$as_echo "$ac_res" >&6; }
ad6254c5
AK
11160else
11161 # Is the header compilable?
ec6a6fbe
AK
11162{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11163$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 11164cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11165/* confdefs.h. */
11166_ACEOF
11167cat confdefs.h >>conftest.$ac_ext
11168cat >>conftest.$ac_ext <<_ACEOF
11169/* end confdefs.h. */
11170$ac_includes_default
11171#include <$ac_header>
11172_ACEOF
11173rm -f conftest.$ac_objext
7a197a62
AK
11174if { (ac_try="$ac_compile"
11175case "(($ac_try" in
11176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11177 *) ac_try_echo=$ac_try;;
11178esac
ec6a6fbe
AK
11179eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11180$as_echo "$ac_try_echo") >&5
7a197a62 11181 (eval "$ac_compile") 2>conftest.er1
ad6254c5 11182 ac_status=$?
8a2fc586
AK
11183 grep -v '^ *+' conftest.er1 >conftest.err
11184 rm -f conftest.er1
11185 cat conftest.err >&5
ec6a6fbe 11186 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11187 (exit $ac_status); } && {
11188 test -z "$ac_c_werror_flag" ||
11189 test ! -s conftest.err
11190 } && test -s conftest.$ac_objext; then
ad6254c5
AK
11191 ac_header_compiler=yes
11192else
ec6a6fbe 11193 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
11194sed 's/^/| /' conftest.$ac_ext >&5
11195
7a197a62 11196 ac_header_compiler=no
ad6254c5 11197fi
7a197a62
AK
11198
11199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
11200{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11201$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
11202
11203# Is the header present?
ec6a6fbe
AK
11204{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11205$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 11206cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11207/* confdefs.h. */
11208_ACEOF
11209cat confdefs.h >>conftest.$ac_ext
11210cat >>conftest.$ac_ext <<_ACEOF
11211/* end confdefs.h. */
11212#include <$ac_header>
11213_ACEOF
7a197a62
AK
11214if { (ac_try="$ac_cpp conftest.$ac_ext"
11215case "(($ac_try" in
11216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11217 *) ac_try_echo=$ac_try;;
11218esac
ec6a6fbe
AK
11219eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11220$as_echo "$ac_try_echo") >&5
7a197a62 11221 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
11222 ac_status=$?
11223 grep -v '^ *+' conftest.er1 >conftest.err
11224 rm -f conftest.er1
11225 cat conftest.err >&5
ec6a6fbe 11226 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11227 (exit $ac_status); } >/dev/null && {
11228 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11229 test ! -s conftest.err
11230 }; then
ad6254c5
AK
11231 ac_header_preproc=yes
11232else
ec6a6fbe 11233 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
11234sed 's/^/| /' conftest.$ac_ext >&5
11235
11236 ac_header_preproc=no
11237fi
7a197a62 11238
ad6254c5 11239rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
11240{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11241$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
11242
11243# So? What about this header?
8a2fc586
AK
11244case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11245 yes:no: )
ec6a6fbe
AK
11246 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11247$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11248 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11249$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 11250 ac_header_preproc=yes
ad6254c5 11251 ;;
8a2fc586 11252 no:yes:* )
ec6a6fbe
AK
11253 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11254$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11255 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11256$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11257 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11258$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11259 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11260$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11261 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11262$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11263 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11264$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 11265
ad6254c5
AK
11266 ;;
11267esac
ec6a6fbe
AK
11268{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11269$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 11270if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 11271 $as_echo_n "(cached) " >&6
ad6254c5 11272else
8a2fc586 11273 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 11274fi
ec6a6fbe
AK
11275ac_res=`eval 'as_val=${'$as_ac_Header'}
11276 $as_echo "$as_val"'`
11277 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11278$as_echo "$ac_res" >&6; }
ad6254c5
AK
11279
11280fi
ec6a6fbe
AK
11281as_val=`eval 'as_val=${'$as_ac_Header'}
11282 $as_echo "$as_val"'`
11283 if test "x$as_val" = x""yes; then
ad6254c5 11284 cat >>confdefs.h <<_ACEOF
ec6a6fbe 11285#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
11286_ACEOF
11287
11288else
ec6a6fbe
AK
11289 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
11290$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 11291 { (exit 1); exit 1; }; }
795ca3e5
AK
11292fi
11293
ad6254c5
AK
11294done
11295
11296
795ca3e5 11297
8106cdd5 11298
ad6254c5
AK
11299
11300
11301for ac_func in dup2 getmntent memmove select socket
11302do
ec6a6fbe
AK
11303as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11304{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11305$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 11306if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 11307 $as_echo_n "(cached) " >&6
795ca3e5 11308else
ad6254c5 11309 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11310/* confdefs.h. */
11311_ACEOF
11312cat confdefs.h >>conftest.$ac_ext
11313cat >>conftest.$ac_ext <<_ACEOF
11314/* end confdefs.h. */
8a2fc586
AK
11315/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11316 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11317#define $ac_func innocuous_$ac_func
11318
795ca3e5 11319/* System header to define __stub macros and hopefully few prototypes,
ad6254c5
AK
11320 which can conflict with char $ac_func (); below.
11321 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11322 <limits.h> exists even on freestanding compilers. */
8a2fc586 11323
ad6254c5
AK
11324#ifdef __STDC__
11325# include <limits.h>
11326#else
11327# include <assert.h>
11328#endif
8a2fc586
AK
11329
11330#undef $ac_func
11331
7a197a62
AK
11332/* Override any GCC internal prototype to avoid an error.
11333 Use char because int might match the return type of a GCC
11334 builtin and then its argument prototype would still apply. */
ad6254c5
AK
11335#ifdef __cplusplus
11336extern "C"
ad6254c5 11337#endif
ad6254c5 11338char $ac_func ();
795ca3e5
AK
11339/* The GNU C library defines this for functions which it implements
11340 to always fail with ENOSYS. Some functions are actually named
11341 something starting with __ and the normal name is an alias. */
7a197a62 11342#if defined __stub_$ac_func || defined __stub___$ac_func
795ca3e5 11343choke me
795ca3e5
AK
11344#endif
11345
ad6254c5
AK
11346int
11347main ()
11348{
7a197a62 11349return $ac_func ();
ad6254c5
AK
11350 ;
11351 return 0;
11352}
11353_ACEOF
11354rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
11355if { (ac_try="$ac_link"
11356case "(($ac_try" in
11357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11358 *) ac_try_echo=$ac_try;;
11359esac
ec6a6fbe
AK
11360eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11361$as_echo "$ac_try_echo") >&5
7a197a62 11362 (eval "$ac_link") 2>conftest.er1
ad6254c5 11363 ac_status=$?
8a2fc586
AK
11364 grep -v '^ *+' conftest.er1 >conftest.err
11365 rm -f conftest.er1
11366 cat conftest.err >&5
ec6a6fbe 11367 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11368 (exit $ac_status); } && {
11369 test -z "$ac_c_werror_flag" ||
11370 test ! -s conftest.err
ec6a6fbe
AK
11371 } && test -s conftest$ac_exeext && {
11372 test "$cross_compiling" = yes ||
11373 $as_test_x conftest$ac_exeext
11374 }; then
ad6254c5 11375 eval "$as_ac_var=yes"
795ca3e5 11376else
ec6a6fbe 11377 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
11378sed 's/^/| /' conftest.$ac_ext >&5
11379
7a197a62 11380 eval "$as_ac_var=no"
80992638 11381fi
7a197a62 11382
ec6a6fbe 11383rm -rf conftest.dSYM
25fbec5b 11384rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 11385 conftest$ac_exeext conftest.$ac_ext
795ca3e5 11386fi
ec6a6fbe
AK
11387ac_res=`eval 'as_val=${'$as_ac_var'}
11388 $as_echo "$as_val"'`
11389 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11390$as_echo "$ac_res" >&6; }
11391as_val=`eval 'as_val=${'$as_ac_var'}
11392 $as_echo "$as_val"'`
11393 if test "x$as_val" = x""yes; then
ad6254c5 11394 cat >>confdefs.h <<_ACEOF
ec6a6fbe 11395#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5 11396_ACEOF
80992638
AK
11397
11398else
ec6a6fbe
AK
11399 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
11400$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 11401 { (exit 1); exit 1; }; }
8106cdd5 11402fi
ad6254c5 11403done
795ca3e5 11404
25fbec5b
AK
11405 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
11406# -lseq on Dynix/PTX, -lgen on Unixware.
ec6a6fbe
AK
11407{ $as_echo "$as_me:$LINENO: checking for library containing getmntent" >&5
11408$as_echo_n "checking for library containing getmntent... " >&6; }
25fbec5b 11409if test "${ac_cv_search_getmntent+set}" = set; then
ec6a6fbe 11410 $as_echo_n "(cached) " >&6
25fbec5b
AK
11411else
11412 ac_func_search_save_LIBS=$LIBS
11413cat >conftest.$ac_ext <<_ACEOF
11414/* confdefs.h. */
11415_ACEOF
11416cat confdefs.h >>conftest.$ac_ext
11417cat >>conftest.$ac_ext <<_ACEOF
11418/* end confdefs.h. */
80992638 11419
7a197a62
AK
11420/* Override any GCC internal prototype to avoid an error.
11421 Use char because int might match the return type of a GCC
ad6254c5 11422 builtin and then its argument prototype would still apply. */
ad6254c5
AK
11423#ifdef __cplusplus
11424extern "C"
11425#endif
25fbec5b 11426char getmntent ();
ad6254c5
AK
11427int
11428main ()
11429{
25fbec5b 11430return getmntent ();
ad6254c5
AK
11431 ;
11432 return 0;
11433}
11434_ACEOF
25fbec5b
AK
11435for ac_lib in '' sun seq gen; do
11436 if test -z "$ac_lib"; then
11437 ac_res="none required"
11438 else
11439 ac_res=-l$ac_lib
11440 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11441 fi
11442 rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
11443if { (ac_try="$ac_link"
11444case "(($ac_try" in
11445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11446 *) ac_try_echo=$ac_try;;
11447esac
ec6a6fbe
AK
11448eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11449$as_echo "$ac_try_echo") >&5
7a197a62 11450 (eval "$ac_link") 2>conftest.er1
ad6254c5 11451 ac_status=$?
8a2fc586
AK
11452 grep -v '^ *+' conftest.er1 >conftest.err
11453 rm -f conftest.er1
11454 cat conftest.err >&5
ec6a6fbe 11455 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11456 (exit $ac_status); } && {
11457 test -z "$ac_c_werror_flag" ||
11458 test ! -s conftest.err
ec6a6fbe
AK
11459 } && test -s conftest$ac_exeext && {
11460 test "$cross_compiling" = yes ||
11461 $as_test_x conftest$ac_exeext
11462 }; then
25fbec5b 11463 ac_cv_search_getmntent=$ac_res
80992638 11464else
ec6a6fbe 11465 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
11466sed 's/^/| /' conftest.$ac_ext >&5
11467
25fbec5b 11468
795ca3e5
AK
11469fi
11470
ec6a6fbe 11471rm -rf conftest.dSYM
25fbec5b
AK
11472rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11473 conftest$ac_exeext
11474 if test "${ac_cv_search_getmntent+set}" = set; then
11475 break
795ca3e5 11476fi
25fbec5b
AK
11477done
11478if test "${ac_cv_search_getmntent+set}" = set; then
11479 :
11480else
11481 ac_cv_search_getmntent=no
11482fi
11483rm conftest.$ac_ext
11484LIBS=$ac_func_search_save_LIBS
11485fi
ec6a6fbe
AK
11486{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
11487$as_echo "$ac_cv_search_getmntent" >&6; }
25fbec5b
AK
11488ac_res=$ac_cv_search_getmntent
11489if test "$ac_res" != no; then
11490 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11491 ac_cv_func_getmntent=yes
11492
11493cat >>confdefs.h <<\_ACEOF
9c961554 11494#define HAVE_GETMNTENT 1
ad6254c5 11495_ACEOF
795ca3e5 11496
25fbec5b
AK
11497else
11498 ac_cv_func_getmntent=no
795ca3e5 11499fi
795ca3e5
AK
11500
11501
ad6254c5
AK
11502# AC_FUNC_REALLOC
11503
11504
11505for ac_header in sys/select.h sys/socket.h
11506do
ec6a6fbe 11507as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 11508if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
11509 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11510$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 11511if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 11512 $as_echo_n "(cached) " >&6
ad6254c5 11513fi
ec6a6fbe
AK
11514ac_res=`eval 'as_val=${'$as_ac_Header'}
11515 $as_echo "$as_val"'`
11516 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11517$as_echo "$ac_res" >&6; }
795ca3e5 11518else
ad6254c5 11519 # Is the header compilable?
ec6a6fbe
AK
11520{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11521$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 11522cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11523/* confdefs.h. */
11524_ACEOF
11525cat confdefs.h >>conftest.$ac_ext
11526cat >>conftest.$ac_ext <<_ACEOF
11527/* end confdefs.h. */
11528$ac_includes_default
11529#include <$ac_header>
11530_ACEOF
11531rm -f conftest.$ac_objext
7a197a62
AK
11532if { (ac_try="$ac_compile"
11533case "(($ac_try" in
11534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11535 *) ac_try_echo=$ac_try;;
11536esac
ec6a6fbe
AK
11537eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11538$as_echo "$ac_try_echo") >&5
7a197a62 11539 (eval "$ac_compile") 2>conftest.er1
ad6254c5 11540 ac_status=$?
8a2fc586
AK
11541 grep -v '^ *+' conftest.er1 >conftest.err
11542 rm -f conftest.er1
11543 cat conftest.err >&5
ec6a6fbe 11544 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11545 (exit $ac_status); } && {
11546 test -z "$ac_c_werror_flag" ||
11547 test ! -s conftest.err
11548 } && test -s conftest.$ac_objext; then
ad6254c5 11549 ac_header_compiler=yes
80992638 11550else
ec6a6fbe 11551 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
11552sed 's/^/| /' conftest.$ac_ext >&5
11553
7a197a62 11554 ac_header_compiler=no
ad6254c5 11555fi
7a197a62
AK
11556
11557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
11558{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11559$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
11560
11561# Is the header present?
ec6a6fbe
AK
11562{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11563$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 11564cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11565/* confdefs.h. */
11566_ACEOF
11567cat confdefs.h >>conftest.$ac_ext
11568cat >>conftest.$ac_ext <<_ACEOF
11569/* end confdefs.h. */
11570#include <$ac_header>
11571_ACEOF
7a197a62
AK
11572if { (ac_try="$ac_cpp conftest.$ac_ext"
11573case "(($ac_try" in
11574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11575 *) ac_try_echo=$ac_try;;
11576esac
ec6a6fbe
AK
11577eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11578$as_echo "$ac_try_echo") >&5
7a197a62 11579 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
11580 ac_status=$?
11581 grep -v '^ *+' conftest.er1 >conftest.err
11582 rm -f conftest.er1
11583 cat conftest.err >&5
ec6a6fbe 11584 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11585 (exit $ac_status); } >/dev/null && {
11586 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11587 test ! -s conftest.err
11588 }; then
ad6254c5
AK
11589 ac_header_preproc=yes
11590else
ec6a6fbe 11591 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
11592sed 's/^/| /' conftest.$ac_ext >&5
11593
11594 ac_header_preproc=no
11595fi
7a197a62 11596
ad6254c5 11597rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
11598{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11599$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
11600
11601# So? What about this header?
8a2fc586
AK
11602case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11603 yes:no: )
ec6a6fbe
AK
11604 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11605$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11606 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11607$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 11608 ac_header_preproc=yes
ad6254c5 11609 ;;
8a2fc586 11610 no:yes:* )
ec6a6fbe
AK
11611 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11612$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11613 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11614$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11615 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11616$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11617 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11618$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11619 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11620$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11621 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11622$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 11623
ad6254c5
AK
11624 ;;
11625esac
ec6a6fbe
AK
11626{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11627$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 11628if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 11629 $as_echo_n "(cached) " >&6
ad6254c5 11630else
8a2fc586 11631 eval "$as_ac_Header=\$ac_header_preproc"
8106cdd5 11632fi
ec6a6fbe
AK
11633ac_res=`eval 'as_val=${'$as_ac_Header'}
11634 $as_echo "$as_val"'`
11635 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11636$as_echo "$ac_res" >&6; }
8106cdd5 11637
795ca3e5 11638fi
ec6a6fbe
AK
11639as_val=`eval 'as_val=${'$as_ac_Header'}
11640 $as_echo "$as_val"'`
11641 if test "x$as_val" = x""yes; then
ad6254c5 11642 cat >>confdefs.h <<_ACEOF
ec6a6fbe 11643#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
11644_ACEOF
11645
795ca3e5
AK
11646fi
11647
ad6254c5
AK
11648done
11649
ec6a6fbe
AK
11650{ $as_echo "$as_me:$LINENO: checking types of arguments for select" >&5
11651$as_echo_n "checking types of arguments for select... " >&6; }
ad6254c5 11652if test "${ac_cv_func_select_args+set}" = set; then
ec6a6fbe 11653 $as_echo_n "(cached) " >&6
26e7f2e0 11654else
ad6254c5 11655 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
7a197a62 11656 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
ad6254c5
AK
11657 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
11658 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11659/* confdefs.h. */
11660_ACEOF
11661cat confdefs.h >>conftest.$ac_ext
11662cat >>conftest.$ac_ext <<_ACEOF
11663/* end confdefs.h. */
11664$ac_includes_default
25fbec5b 11665#ifdef HAVE_SYS_SELECT_H
ad6254c5
AK
11666# include <sys/select.h>
11667#endif
25fbec5b 11668#ifdef HAVE_SYS_SOCKET_H
ad6254c5
AK
11669# include <sys/socket.h>
11670#endif
11671
11672int
11673main ()
11674{
11675extern int select ($ac_arg1,
8a2fc586
AK
11676 $ac_arg234, $ac_arg234, $ac_arg234,
11677 $ac_arg5);
ad6254c5
AK
11678 ;
11679 return 0;
11680}
11681_ACEOF
11682rm -f conftest.$ac_objext
7a197a62
AK
11683if { (ac_try="$ac_compile"
11684case "(($ac_try" in
11685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11686 *) ac_try_echo=$ac_try;;
11687esac
ec6a6fbe
AK
11688eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11689$as_echo "$ac_try_echo") >&5
7a197a62 11690 (eval "$ac_compile") 2>conftest.er1
ad6254c5 11691 ac_status=$?
8a2fc586
AK
11692 grep -v '^ *+' conftest.er1 >conftest.err
11693 rm -f conftest.er1
11694 cat conftest.err >&5
ec6a6fbe 11695 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11696 (exit $ac_status); } && {
11697 test -z "$ac_c_werror_flag" ||
11698 test ! -s conftest.err
11699 } && test -s conftest.$ac_objext; then
ad6254c5
AK
11700 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
11701else
ec6a6fbe 11702 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
11703sed 's/^/| /' conftest.$ac_ext >&5
11704
7a197a62 11705
ad6254c5 11706fi
7a197a62
AK
11707
11708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
11709 done
11710 done
11711done
11712# Provide a safe default value.
11713: ${ac_cv_func_select_args='int,int *,struct timeval *'}
11714
26e7f2e0 11715fi
ec6a6fbe
AK
11716{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
11717$as_echo "$ac_cv_func_select_args" >&6; }
ad6254c5
AK
11718ac_save_IFS=$IFS; IFS=','
11719set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
11720IFS=$ac_save_IFS
11721shift
11722
11723cat >>confdefs.h <<_ACEOF
11724#define SELECT_TYPE_ARG1 $1
11725_ACEOF
11726
11727
11728cat >>confdefs.h <<_ACEOF
11729#define SELECT_TYPE_ARG234 ($2)
11730_ACEOF
11731
11732
11733cat >>confdefs.h <<_ACEOF
11734#define SELECT_TYPE_ARG5 ($3)
11735_ACEOF
11736
80992638 11737rm -f conftest*
80992638 11738
8106cdd5 11739fi
ad6254c5 11740
ad6254c5
AK
11741if test x$CLUSTER != xnone; then
11742
11743
11744for ac_header in sys/socket.h sys/un.h
b896caa1 11745do
ec6a6fbe 11746as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 11747if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
11748 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11749$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 11750if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 11751 $as_echo_n "(cached) " >&6
ad6254c5 11752fi
ec6a6fbe
AK
11753ac_res=`eval 'as_val=${'$as_ac_Header'}
11754 $as_echo "$as_val"'`
11755 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11756$as_echo "$ac_res" >&6; }
ad6254c5
AK
11757else
11758 # Is the header compilable?
ec6a6fbe
AK
11759{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11760$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 11761cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11762/* confdefs.h. */
11763_ACEOF
11764cat confdefs.h >>conftest.$ac_ext
11765cat >>conftest.$ac_ext <<_ACEOF
11766/* end confdefs.h. */
11767$ac_includes_default
11768#include <$ac_header>
11769_ACEOF
11770rm -f conftest.$ac_objext
7a197a62
AK
11771if { (ac_try="$ac_compile"
11772case "(($ac_try" in
11773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11774 *) ac_try_echo=$ac_try;;
11775esac
ec6a6fbe
AK
11776eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11777$as_echo "$ac_try_echo") >&5
7a197a62 11778 (eval "$ac_compile") 2>conftest.er1
ad6254c5 11779 ac_status=$?
8a2fc586
AK
11780 grep -v '^ *+' conftest.er1 >conftest.err
11781 rm -f conftest.er1
11782 cat conftest.err >&5
ec6a6fbe 11783 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11784 (exit $ac_status); } && {
11785 test -z "$ac_c_werror_flag" ||
11786 test ! -s conftest.err
11787 } && test -s conftest.$ac_objext; then
ad6254c5
AK
11788 ac_header_compiler=yes
11789else
ec6a6fbe 11790 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
11791sed 's/^/| /' conftest.$ac_ext >&5
11792
7a197a62 11793 ac_header_compiler=no
ad6254c5 11794fi
7a197a62
AK
11795
11796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
11797{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11798$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
11799
11800# Is the header present?
ec6a6fbe
AK
11801{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11802$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 11803cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11804/* confdefs.h. */
11805_ACEOF
11806cat confdefs.h >>conftest.$ac_ext
11807cat >>conftest.$ac_ext <<_ACEOF
11808/* end confdefs.h. */
11809#include <$ac_header>
11810_ACEOF
7a197a62
AK
11811if { (ac_try="$ac_cpp conftest.$ac_ext"
11812case "(($ac_try" in
11813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11814 *) ac_try_echo=$ac_try;;
11815esac
ec6a6fbe
AK
11816eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11817$as_echo "$ac_try_echo") >&5
7a197a62 11818 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
11819 ac_status=$?
11820 grep -v '^ *+' conftest.er1 >conftest.err
11821 rm -f conftest.er1
11822 cat conftest.err >&5
ec6a6fbe 11823 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11824 (exit $ac_status); } >/dev/null && {
11825 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11826 test ! -s conftest.err
11827 }; then
ad6254c5
AK
11828 ac_header_preproc=yes
11829else
ec6a6fbe 11830 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
11831sed 's/^/| /' conftest.$ac_ext >&5
11832
11833 ac_header_preproc=no
11834fi
7a197a62 11835
ad6254c5 11836rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
11837{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11838$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
11839
11840# So? What about this header?
8a2fc586
AK
11841case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11842 yes:no: )
ec6a6fbe
AK
11843 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11844$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11845 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11846$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 11847 ac_header_preproc=yes
ad6254c5 11848 ;;
8a2fc586 11849 no:yes:* )
ec6a6fbe
AK
11850 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11851$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11852 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11853$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11854 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11855$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11856 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11857$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11858 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11859$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11860 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11861$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 11862
ad6254c5
AK
11863 ;;
11864esac
ec6a6fbe
AK
11865{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11866$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 11867if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 11868 $as_echo_n "(cached) " >&6
ad6254c5 11869else
8a2fc586 11870 eval "$as_ac_Header=\$ac_header_preproc"
b896caa1 11871fi
ec6a6fbe
AK
11872ac_res=`eval 'as_val=${'$as_ac_Header'}
11873 $as_echo "$as_val"'`
11874 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11875$as_echo "$ac_res" >&6; }
ad6254c5
AK
11876
11877fi
ec6a6fbe
AK
11878as_val=`eval 'as_val=${'$as_ac_Header'}
11879 $as_echo "$as_val"'`
11880 if test "x$as_val" = x""yes; then
ad6254c5 11881 cat >>confdefs.h <<_ACEOF
ec6a6fbe 11882#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
11883_ACEOF
11884
80992638 11885else
ec6a6fbe
AK
11886 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
11887$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 11888 { (exit 1); exit 1; }; }
b896caa1 11889fi
ad6254c5 11890
b896caa1
AK
11891done
11892
11893
ad6254c5
AK
11894for ac_func in socket
11895do
ec6a6fbe
AK
11896as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11897{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11898$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 11899if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 11900 $as_echo_n "(cached) " >&6
795ca3e5 11901else
ad6254c5 11902 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11903/* confdefs.h. */
11904_ACEOF
11905cat confdefs.h >>conftest.$ac_ext
11906cat >>conftest.$ac_ext <<_ACEOF
11907/* end confdefs.h. */
8a2fc586
AK
11908/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11909 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11910#define $ac_func innocuous_$ac_func
11911
ad6254c5
AK
11912/* System header to define __stub macros and hopefully few prototypes,
11913 which can conflict with char $ac_func (); below.
11914 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11915 <limits.h> exists even on freestanding compilers. */
8a2fc586 11916
ad6254c5
AK
11917#ifdef __STDC__
11918# include <limits.h>
11919#else
11920# include <assert.h>
11921#endif
8a2fc586
AK
11922
11923#undef $ac_func
11924
7a197a62
AK
11925/* Override any GCC internal prototype to avoid an error.
11926 Use char because int might match the return type of a GCC
11927 builtin and then its argument prototype would still apply. */
ad6254c5
AK
11928#ifdef __cplusplus
11929extern "C"
ad6254c5 11930#endif
ad6254c5
AK
11931char $ac_func ();
11932/* The GNU C library defines this for functions which it implements
11933 to always fail with ENOSYS. Some functions are actually named
11934 something starting with __ and the normal name is an alias. */
7a197a62 11935#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 11936choke me
ad6254c5
AK
11937#endif
11938
11939int
11940main ()
11941{
7a197a62 11942return $ac_func ();
ad6254c5
AK
11943 ;
11944 return 0;
11945}
11946_ACEOF
11947rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
11948if { (ac_try="$ac_link"
11949case "(($ac_try" in
11950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11951 *) ac_try_echo=$ac_try;;
11952esac
ec6a6fbe
AK
11953eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11954$as_echo "$ac_try_echo") >&5
7a197a62 11955 (eval "$ac_link") 2>conftest.er1
ad6254c5 11956 ac_status=$?
8a2fc586
AK
11957 grep -v '^ *+' conftest.er1 >conftest.err
11958 rm -f conftest.er1
11959 cat conftest.err >&5
ec6a6fbe 11960 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11961 (exit $ac_status); } && {
11962 test -z "$ac_c_werror_flag" ||
11963 test ! -s conftest.err
ec6a6fbe
AK
11964 } && test -s conftest$ac_exeext && {
11965 test "$cross_compiling" = yes ||
11966 $as_test_x conftest$ac_exeext
11967 }; then
ad6254c5
AK
11968 eval "$as_ac_var=yes"
11969else
ec6a6fbe 11970 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
11971sed 's/^/| /' conftest.$ac_ext >&5
11972
7a197a62 11973 eval "$as_ac_var=no"
ad6254c5 11974fi
7a197a62 11975
ec6a6fbe 11976rm -rf conftest.dSYM
25fbec5b 11977rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 11978 conftest$ac_exeext conftest.$ac_ext
ad6254c5 11979fi
ec6a6fbe
AK
11980ac_res=`eval 'as_val=${'$as_ac_var'}
11981 $as_echo "$as_val"'`
11982 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11983$as_echo "$ac_res" >&6; }
11984as_val=`eval 'as_val=${'$as_ac_var'}
11985 $as_echo "$as_val"'`
11986 if test "x$as_val" = x""yes; then
ad6254c5 11987 cat >>confdefs.h <<_ACEOF
ec6a6fbe 11988#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
11989_ACEOF
11990
11991else
ec6a6fbe
AK
11992 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
11993$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5
AK
11994 { (exit 1); exit 1; }; }
11995fi
11996done
11997
11998fi
11999
12000if test x$HAVE_LIBDL = xyes; then
12001
12002for ac_header in dlfcn.h
12003do
ec6a6fbe 12004as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 12005if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
12006 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12007$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 12008if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 12009 $as_echo_n "(cached) " >&6
ad6254c5 12010fi
ec6a6fbe
AK
12011ac_res=`eval 'as_val=${'$as_ac_Header'}
12012 $as_echo "$as_val"'`
12013 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12014$as_echo "$ac_res" >&6; }
ad6254c5
AK
12015else
12016 # Is the header compilable?
ec6a6fbe
AK
12017{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12018$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 12019cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
12020/* confdefs.h. */
12021_ACEOF
12022cat confdefs.h >>conftest.$ac_ext
12023cat >>conftest.$ac_ext <<_ACEOF
12024/* end confdefs.h. */
12025$ac_includes_default
12026#include <$ac_header>
12027_ACEOF
12028rm -f conftest.$ac_objext
7a197a62
AK
12029if { (ac_try="$ac_compile"
12030case "(($ac_try" in
12031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12032 *) ac_try_echo=$ac_try;;
12033esac
ec6a6fbe
AK
12034eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12035$as_echo "$ac_try_echo") >&5
7a197a62 12036 (eval "$ac_compile") 2>conftest.er1
ad6254c5 12037 ac_status=$?
8a2fc586
AK
12038 grep -v '^ *+' conftest.er1 >conftest.err
12039 rm -f conftest.er1
12040 cat conftest.err >&5
ec6a6fbe 12041 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
12042 (exit $ac_status); } && {
12043 test -z "$ac_c_werror_flag" ||
12044 test ! -s conftest.err
12045 } && test -s conftest.$ac_objext; then
ad6254c5
AK
12046 ac_header_compiler=yes
12047else
ec6a6fbe 12048 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
12049sed 's/^/| /' conftest.$ac_ext >&5
12050
7a197a62 12051 ac_header_compiler=no
ad6254c5 12052fi
7a197a62
AK
12053
12054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
12055{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12056$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
12057
12058# Is the header present?
ec6a6fbe
AK
12059{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12060$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 12061cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
12062/* confdefs.h. */
12063_ACEOF
12064cat confdefs.h >>conftest.$ac_ext
12065cat >>conftest.$ac_ext <<_ACEOF
12066/* end confdefs.h. */
12067#include <$ac_header>
12068_ACEOF
7a197a62
AK
12069if { (ac_try="$ac_cpp conftest.$ac_ext"
12070case "(($ac_try" in
12071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12072 *) ac_try_echo=$ac_try;;
12073esac
ec6a6fbe
AK
12074eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12075$as_echo "$ac_try_echo") >&5
7a197a62 12076 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
12077 ac_status=$?
12078 grep -v '^ *+' conftest.er1 >conftest.err
12079 rm -f conftest.er1
12080 cat conftest.err >&5
ec6a6fbe 12081 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
12082 (exit $ac_status); } >/dev/null && {
12083 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12084 test ! -s conftest.err
12085 }; then
ad6254c5
AK
12086 ac_header_preproc=yes
12087else
ec6a6fbe 12088 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
12089sed 's/^/| /' conftest.$ac_ext >&5
12090
12091 ac_header_preproc=no
12092fi
7a197a62 12093
ad6254c5 12094rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
12095{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12096$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
12097
12098# So? What about this header?
8a2fc586
AK
12099case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12100 yes:no: )
ec6a6fbe
AK
12101 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12102$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12103 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12104$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 12105 ac_header_preproc=yes
ad6254c5 12106 ;;
8a2fc586 12107 no:yes:* )
ec6a6fbe
AK
12108 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12109$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12110 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12111$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12112 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12113$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12114 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12115$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12116 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12117$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12118 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12119$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 12120
ad6254c5
AK
12121 ;;
12122esac
ec6a6fbe
AK
12123{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12124$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 12125if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 12126 $as_echo_n "(cached) " >&6
ad6254c5 12127else
8a2fc586 12128 eval "$as_ac_Header=\$ac_header_preproc"
795ca3e5 12129fi
ec6a6fbe
AK
12130ac_res=`eval 'as_val=${'$as_ac_Header'}
12131 $as_echo "$as_val"'`
12132 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12133$as_echo "$ac_res" >&6; }
80992638 12134
8106cdd5 12135fi
ec6a6fbe
AK
12136as_val=`eval 'as_val=${'$as_ac_Header'}
12137 $as_echo "$as_val"'`
12138 if test "x$as_val" = x""yes; then
ad6254c5 12139 cat >>confdefs.h <<_ACEOF
ec6a6fbe 12140#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 12141_ACEOF
795ca3e5
AK
12142
12143else
ec6a6fbe
AK
12144 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
12145$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 12146 { (exit 1); exit 1; }; }
795ca3e5
AK
12147fi
12148
ad6254c5 12149done
80992638 12150
ad6254c5 12151fi
80992638 12152
ad6254c5 12153if test x$INTL = xyes; then
83912faa 12154
ad6254c5
AK
12155for ac_header in libintl.h
12156do
ec6a6fbe 12157as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 12158if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
12159 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12160$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 12161if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 12162 $as_echo_n "(cached) " >&6
ad6254c5 12163fi
ec6a6fbe
AK
12164ac_res=`eval 'as_val=${'$as_ac_Header'}
12165 $as_echo "$as_val"'`
12166 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12167$as_echo "$ac_res" >&6; }
83912faa 12168else
ad6254c5 12169 # Is the header compilable?
ec6a6fbe
AK
12170{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12171$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 12172cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
12173/* confdefs.h. */
12174_ACEOF
12175cat confdefs.h >>conftest.$ac_ext
12176cat >>conftest.$ac_ext <<_ACEOF
12177/* end confdefs.h. */
12178$ac_includes_default
12179#include <$ac_header>
12180_ACEOF
12181rm -f conftest.$ac_objext
7a197a62
AK
12182if { (ac_try="$ac_compile"
12183case "(($ac_try" in
12184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12185 *) ac_try_echo=$ac_try;;
12186esac
ec6a6fbe
AK
12187eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12188$as_echo "$ac_try_echo") >&5
7a197a62 12189 (eval "$ac_compile") 2>conftest.er1
ad6254c5 12190 ac_status=$?
8a2fc586
AK
12191 grep -v '^ *+' conftest.er1 >conftest.err
12192 rm -f conftest.er1
12193 cat conftest.err >&5
ec6a6fbe 12194 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
12195 (exit $ac_status); } && {
12196 test -z "$ac_c_werror_flag" ||
12197 test ! -s conftest.err
12198 } && test -s conftest.$ac_objext; then
ad6254c5
AK
12199 ac_header_compiler=yes
12200else
ec6a6fbe 12201 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
12202sed 's/^/| /' conftest.$ac_ext >&5
12203
7a197a62 12204 ac_header_compiler=no
ad6254c5 12205fi
7a197a62
AK
12206
12207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
12208{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12209$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
12210
12211# Is the header present?
ec6a6fbe
AK
12212{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12213$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 12214cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
12215/* confdefs.h. */
12216_ACEOF
12217cat confdefs.h >>conftest.$ac_ext
12218cat >>conftest.$ac_ext <<_ACEOF
12219/* end confdefs.h. */
12220#include <$ac_header>
12221_ACEOF
7a197a62
AK
12222if { (ac_try="$ac_cpp conftest.$ac_ext"
12223case "(($ac_try" in
12224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12225 *) ac_try_echo=$ac_try;;
12226esac
ec6a6fbe
AK
12227eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12228$as_echo "$ac_try_echo") >&5
7a197a62 12229 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
12230 ac_status=$?
12231 grep -v '^ *+' conftest.er1 >conftest.err
12232 rm -f conftest.er1
12233 cat conftest.err >&5
ec6a6fbe 12234 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
12235 (exit $ac_status); } >/dev/null && {
12236 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12237 test ! -s conftest.err
12238 }; then
ad6254c5
AK
12239 ac_header_preproc=yes
12240else
ec6a6fbe 12241 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
12242sed 's/^/| /' conftest.$ac_ext >&5
12243
12244 ac_header_preproc=no
12245fi
7a197a62 12246
ad6254c5 12247rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
12248{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12249$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
12250
12251# So? What about this header?
8a2fc586
AK
12252case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12253 yes:no: )
ec6a6fbe
AK
12254 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12255$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12256 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12257$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 12258 ac_header_preproc=yes
ad6254c5 12259 ;;
8a2fc586 12260 no:yes:* )
ec6a6fbe
AK
12261 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12262$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12263 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12264$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12265 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12266$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12267 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12268$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12269 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12270$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12271 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12272$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 12273
ad6254c5
AK
12274 ;;
12275esac
ec6a6fbe
AK
12276{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12277$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 12278if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 12279 $as_echo_n "(cached) " >&6
80992638 12280else
8a2fc586 12281 eval "$as_ac_Header=\$ac_header_preproc"
83912faa 12282fi
ec6a6fbe
AK
12283ac_res=`eval 'as_val=${'$as_ac_Header'}
12284 $as_echo "$as_val"'`
12285 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12286$as_echo "$ac_res" >&6; }
83912faa 12287
69792976 12288fi
ec6a6fbe
AK
12289as_val=`eval 'as_val=${'$as_ac_Header'}
12290 $as_echo "$as_val"'`
12291 if test "x$as_val" = x""yes; then
ad6254c5 12292 cat >>confdefs.h <<_ACEOF
ec6a6fbe 12293#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 12294_ACEOF
69792976 12295
69792976 12296else
ec6a6fbe
AK
12297 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
12298$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 12299 { (exit 1); exit 1; }; }
80992638
AK
12300fi
12301
ad6254c5 12302done
69792976 12303
ad6254c5
AK
12304fi
12305
ad6254c5
AK
12306if test x$HAVE_SELINUX = xyes; then
12307
12308for ac_header in selinux/selinux.h
12309do
ec6a6fbe 12310as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 12311if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
12312 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12313$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 12314if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 12315 $as_echo_n "(cached) " >&6
ad6254c5 12316fi
ec6a6fbe
AK
12317ac_res=`eval 'as_val=${'$as_ac_Header'}
12318 $as_echo "$as_val"'`
12319 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12320$as_echo "$ac_res" >&6; }
4a7f3eb2 12321else
ad6254c5 12322 # Is the header compilable?
ec6a6fbe
AK
12323{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12324$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 12325cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
12326/* confdefs.h. */
12327_ACEOF
12328cat confdefs.h >>conftest.$ac_ext
12329cat >>conftest.$ac_ext <<_ACEOF
12330/* end confdefs.h. */
12331$ac_includes_default
12332#include <$ac_header>
12333_ACEOF
12334rm -f conftest.$ac_objext
7a197a62
AK
12335if { (ac_try="$ac_compile"
12336case "(($ac_try" in
12337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12338 *) ac_try_echo=$ac_try;;
12339esac
ec6a6fbe
AK
12340eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12341$as_echo "$ac_try_echo") >&5
7a197a62 12342 (eval "$ac_compile") 2>conftest.er1
ad6254c5 12343 ac_status=$?
8a2fc586
AK
12344 grep -v '^ *+' conftest.er1 >conftest.err
12345 rm -f conftest.er1
12346 cat conftest.err >&5
ec6a6fbe 12347 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
12348 (exit $ac_status); } && {
12349 test -z "$ac_c_werror_flag" ||
12350 test ! -s conftest.err
12351 } && test -s conftest.$ac_objext; then
ad6254c5
AK
12352 ac_header_compiler=yes
12353else
ec6a6fbe 12354 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
12355sed 's/^/| /' conftest.$ac_ext >&5
12356
7a197a62 12357 ac_header_compiler=no
ad6254c5 12358fi
7a197a62
AK
12359
12360rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
12361{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12362$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
12363
12364# Is the header present?
ec6a6fbe
AK
12365{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12366$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 12367cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
12368/* confdefs.h. */
12369_ACEOF
12370cat confdefs.h >>conftest.$ac_ext
12371cat >>conftest.$ac_ext <<_ACEOF
12372/* end confdefs.h. */
12373#include <$ac_header>
12374_ACEOF
7a197a62
AK
12375if { (ac_try="$ac_cpp conftest.$ac_ext"
12376case "(($ac_try" in
12377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12378 *) ac_try_echo=$ac_try;;
12379esac
ec6a6fbe
AK
12380eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12381$as_echo "$ac_try_echo") >&5
7a197a62 12382 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
12383 ac_status=$?
12384 grep -v '^ *+' conftest.er1 >conftest.err
12385 rm -f conftest.er1
12386 cat conftest.err >&5
ec6a6fbe 12387 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
12388 (exit $ac_status); } >/dev/null && {
12389 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12390 test ! -s conftest.err
12391 }; then
ad6254c5
AK
12392 ac_header_preproc=yes
12393else
ec6a6fbe 12394 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
12395sed 's/^/| /' conftest.$ac_ext >&5
12396
12397 ac_header_preproc=no
12398fi
7a197a62 12399
ad6254c5 12400rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
12401{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12402$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
12403
12404# So? What about this header?
8a2fc586
AK
12405case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12406 yes:no: )
ec6a6fbe
AK
12407 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12408$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12409 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12410$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 12411 ac_header_preproc=yes
ad6254c5 12412 ;;
8a2fc586 12413 no:yes:* )
ec6a6fbe
AK
12414 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12415$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12416 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12417$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12418 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12419$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12420 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12421$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12422 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12423$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12424 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12425$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 12426
ad6254c5
AK
12427 ;;
12428esac
ec6a6fbe
AK
12429{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12430$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 12431if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 12432 $as_echo_n "(cached) " >&6
ad6254c5 12433else
8a2fc586 12434 eval "$as_ac_Header=\$ac_header_preproc"
80992638 12435fi
ec6a6fbe
AK
12436ac_res=`eval 'as_val=${'$as_ac_Header'}
12437 $as_echo "$as_val"'`
12438 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12439$as_echo "$ac_res" >&6; }
4a7f3eb2 12440
ad6254c5 12441fi
ec6a6fbe
AK
12442as_val=`eval 'as_val=${'$as_ac_Header'}
12443 $as_echo "$as_val"'`
12444 if test "x$as_val" = x""yes; then
ad6254c5 12445 cat >>confdefs.h <<_ACEOF
ec6a6fbe 12446#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 12447_ACEOF
0a62c911 12448
0a62c911 12449else
ec6a6fbe
AK
12450 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
12451$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 12452 { (exit 1); exit 1; }; }
80992638
AK
12453fi
12454
ad6254c5 12455done
0a62c911 12456
ad6254c5 12457fi
0a62c911 12458
a653923f
AK
12459################################################################################
12460# Extract the first word of "modprobe", so it can be a program name with args.
12461set dummy modprobe; ac_word=$2
ec6a6fbe
AK
12462{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12463$as_echo_n "checking for $ac_word... " >&6; }
72b2cb61 12464if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then
ec6a6fbe 12465 $as_echo_n "(cached) " >&6
72b2cb61
AK
12466else
12467 case $MODPROBE_CMD in
12468 [\\/]* | ?:[\\/]*)
12469 ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path.
12470 ;;
12471 *)
12472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12473for as_dir in $PATH
12474do
12475 IFS=$as_save_IFS
12476 test -z "$as_dir" && as_dir=.
12477 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 12478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
72b2cb61 12479 ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 12480 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
72b2cb61
AK
12481 break 2
12482 fi
12483done
12484done
7a197a62 12485IFS=$as_save_IFS
72b2cb61
AK
12486
12487 ;;
12488esac
12489fi
12490MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD
72b2cb61 12491if test -n "$MODPROBE_CMD"; then
ec6a6fbe
AK
12492 { $as_echo "$as_me:$LINENO: result: $MODPROBE_CMD" >&5
12493$as_echo "$MODPROBE_CMD" >&6; }
72b2cb61 12494else
ec6a6fbe
AK
12495 { $as_echo "$as_me:$LINENO: result: no" >&5
12496$as_echo "no" >&6; }
72b2cb61
AK
12497fi
12498
a653923f 12499
7a197a62 12500
a653923f 12501if test x$MODPROBE_CMD != x; then
72b2cb61
AK
12502
12503cat >>confdefs.h <<_ACEOF
12504#define MODPROBE_CMD "$MODPROBE_CMD"
12505_ACEOF
12506
a653923f
AK
12507fi
12508
80992638 12509################################################################################
93bd259b
AK
12510
12511
12512if test "$BUILD_DMEVENTD" = yes; then
12513
12514# Check whether --with-dmeventd-pidfile was given.
12515if test "${with_dmeventd_pidfile+set}" = set; then
12516 withval=$with_dmeventd_pidfile; cat >>confdefs.h <<_ACEOF
12517#define DMEVENTD_PIDFILE "$withval"
12518_ACEOF
12519
12520else
12521 cat >>confdefs.h <<_ACEOF
12522#define DMEVENTD_PIDFILE "/var/run/dmeventd.pid"
12523_ACEOF
12524
12525fi
12526
12527fi
12528
12529
12530
12531if test "$BUILD_DMEVENTD" = yes; then
12532 dmeventd_prefix="$exec_prefix"
12533 if test "x$dmeventd_prefix" = "xNONE"; then
12534 dmeventd_prefix="$prefix"
12535 fi
12536 if test "x$dmeventd_prefix" = "xNONE"; then
12537 dmeventd_prefix=""
12538 fi
12539
12540# Check whether --with-dmeventd-path was given.
12541if test "${with_dmeventd_path+set}" = set; then
12542 withval=$with_dmeventd_path; cat >>confdefs.h <<_ACEOF
12543#define DMEVENTD_PATH "$withval"
12544_ACEOF
12545
12546else
12547 cat >>confdefs.h <<_ACEOF
12548#define DMEVENTD_PATH "$dmeventd_prefix/sbin/dmeventd"
12549_ACEOF
12550
12551fi
12552
12553fi
12554
12555################################################################################
ec6a6fbe
AK
12556{ $as_echo "$as_me:$LINENO: checking for kernel interface choice" >&5
12557$as_echo_n "checking for kernel interface choice... " >&6; }
93bd259b
AK
12558
12559# Check whether --with-interface was given.
12560if test "${with_interface+set}" = set; then
12561 withval=$with_interface; interface="$withval"
12562else
12563 interface=ioctl
12564fi
12565
12566if [ "x$interface" != xioctl ];
12567then
ec6a6fbe
AK
12568 { { $as_echo "$as_me:$LINENO: error: --with-interface=ioctl required. fs no longer supported." >&5
12569$as_echo "$as_me: error: --with-interface=ioctl required. fs no longer supported." >&2;}
93bd259b
AK
12570 { (exit 1); exit 1; }; }
12571fi
ec6a6fbe
AK
12572{ $as_echo "$as_me:$LINENO: result: $interface" >&5
12573$as_echo "$interface" >&6; }
93bd259b
AK
12574
12575################################################################################
2c44337b 12576DM_LIB_VERSION="\"`cat VERSION_DM 2>/dev/null || echo Unknown`\""
24bbc4d7
AK
12577
12578cat >>confdefs.h <<_ACEOF
12579#define DM_LIB_VERSION $DM_LIB_VERSION
12580_ACEOF
12581
12582
ec6a6fbe 12583DM_LIB_PATCHLEVEL=`cat VERSION_DM | $AWK -F '[-. ]' '{printf "%s.%s.%s",$1,$2,$3}'`
7e3fe830 12584
d0191583 12585LVM_VERSION="\"`cat VERSION 2>/dev/null || echo Unknown`\""
fae0c576 12586
ec6a6fbe
AK
12587VER=`cat VERSION`
12588LVM_RELEASE_DATE="\"`echo $VER | $SED 's/.*(//;s/).*//'`\""
12589VER=`echo "$VER" | $AWK '{print $1}'`
12590LVM_RELEASE="\"`echo "$VER" | $AWK -F '-' '{print $2}'`\""
12591VER=`echo "$VER" | $AWK -F '-' '{print $1}'`
12592LVM_MAJOR=`echo "$VER" | $AWK -F '.' '{print $1}'`
12593LVM_MINOR=`echo "$VER" | $AWK -F '.' '{print $2}'`
12594LVM_PATCHLEVEL=`echo "$VER" | $AWK -F '.' '{print $3}'`
12595
80992638 12596################################################################################
fae0c576 12597
83912faa 12598
795ca3e5
AK
12599
12600
12601
12602
12603
12604
5a52dca9 12605
8ef2b021 12606
199e490e 12607
69792976
AK
12608
12609
12610
d0191583 12611
69792976 12612
8106cdd5
AK
12613
12614
12615
12616
12617
d68a82ec 12618
036f273a 12619
7d1552c9 12620
8106cdd5 12621
0a62c911 12622
8106cdd5 12623
4a7f3eb2 12624
4922197a
AK
12625
12626
d8ac0fbc 12627
1a9ea74d 12628
8a2fc586
AK
12629
12630
d0191583 12631
93bd259b
AK
12632
12633
12634
12635
12636
d0191583
JM
12637
12638
12639
12640
12641
8a2fc586 12642
8ce0cbda 12643
8b1a3214 12644
ec6a6fbe
AK
12645
12646
12647
12648
e2997b73
AK
12649
12650
12651
12652
12653
12654
ec6a6fbe 12655
33f732c5 12656
66e941e8 12657
d3c8211f 12658
7e3fe830 12659
68f2de6d
AK
12660
12661
80992638 12662################################################################################
e0c64c6c 12663ac_config_files="$ac_config_files Makefile make.tmpl daemons/Makefile daemons/clvmd/Makefile daemons/dmeventd/Makefile daemons/dmeventd/libdevmapper-event.pc daemons/dmeventd/plugins/Makefile daemons/dmeventd/plugins/mirror/Makefile daemons/dmeventd/plugins/snapshot/Makefile doc/Makefile include/Makefile lib/Makefile lib/format1/Makefile lib/format_pool/Makefile lib/locking/Makefile lib/mirror/Makefile lib/misc/lvm-version.h lib/snapshot/Makefile libdm/Makefile libdm/libdevmapper.pc liblvm/Makefile man/Makefile po/Makefile scripts/clvmd_init_red_hat scripts/Makefile test/Makefile test/api/Makefile tools/Makefile"
7a197a62 12664
ad6254c5 12665cat >confcache <<\_ACEOF
795ca3e5
AK
12666# This file is a shell script that caches the results of configure
12667# tests run on this system so they can be shared between configure
ad6254c5
AK
12668# scripts and configure runs, see configure's option --config-cache.
12669# It is not useful on other systems. If it contains results you don't
12670# want to keep, you may remove or edit it.
795ca3e5 12671#
ad6254c5
AK
12672# config.status only pays attention to the cache file if you give it
12673# the --recheck option to rerun configure.
795ca3e5 12674#
ad6254c5
AK
12675# `ac_cv_env_foo' variables (set or unset) will be overridden when
12676# loading this file, other *unset* `ac_cv_foo' will be assigned the
12677# following values.
12678
12679_ACEOF
12680
795ca3e5
AK
12681# The following way of writing the cache mishandles newlines in values,
12682# but we know of no workaround that is simple, portable, and efficient.
7a197a62 12683# So, we kill variables containing newlines.
795ca3e5
AK
12684# Ultrix sh set writes to stderr and can't be redirected directly,
12685# and sets the high bit in the cache file unless we assign to the vars.
7a197a62
AK
12686(
12687 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12688 eval ac_val=\$$ac_var
12689 case $ac_val in #(
12690 *${as_nl}*)
12691 case $ac_var in #(
ec6a6fbe
AK
12692 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
12693$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7a197a62
AK
12694 esac
12695 case $ac_var in #(
12696 _ | IFS | as_nl) ;; #(
ec6a6fbe 12697 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7a197a62
AK
12698 *) $as_unset $ac_var ;;
12699 esac ;;
12700 esac
12701 done
12702
ad6254c5 12703 (set) 2>&1 |
7a197a62
AK
12704 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12705 *${as_nl}ac_space=\ *)
ad6254c5
AK
12706 # `set' does not quote correctly, so add quotes (double-quote
12707 # substitution turns \\\\ into \\, and sed turns \\ into \).
12708 sed -n \
8a2fc586
AK
12709 "s/'/'\\\\''/g;
12710 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7a197a62 12711 ;; #(
ad6254c5
AK
12712 *)
12713 # `set' quotes correctly as required by POSIX, so do not add quotes.
7a197a62 12714 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
ad6254c5 12715 ;;
7a197a62
AK
12716 esac |
12717 sort
12718) |
ad6254c5 12719 sed '
7a197a62 12720 /^ac_cv_env_/b end
ad6254c5 12721 t clear
7a197a62 12722 :clear
ad6254c5
AK
12723 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12724 t end
7a197a62
AK
12725 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12726 :end' >>confcache
12727if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12728 if test -w "$cache_file"; then
12729 test "x$cache_file" != "x/dev/null" &&
ec6a6fbe
AK
12730 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
12731$as_echo "$as_me: updating cache $cache_file" >&6;}
ad6254c5 12732 cat confcache >$cache_file
795ca3e5 12733 else
ec6a6fbe
AK
12734 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
12735$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
795ca3e5
AK
12736 fi
12737fi
12738rm -f confcache
12739
795ca3e5
AK
12740test "x$prefix" = xNONE && prefix=$ac_default_prefix
12741# Let make expand exec_prefix.
12742test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12743
72b2cb61 12744DEFS=-DHAVE_CONFIG_H
ad6254c5
AK
12745
12746ac_libobjs=
12747ac_ltlibobjs=
12748for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12749 # 1. Remove the extension, and $U if already installed.
7a197a62 12750 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
ec6a6fbe 12751 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7a197a62
AK
12752 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12753 # will be set to the directory where LIBOBJS objects are built.
12754 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12755 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
ad6254c5
AK
12756done
12757LIBOBJS=$ac_libobjs
80992638 12758
ad6254c5
AK
12759LTLIBOBJS=$ac_ltlibobjs
12760
12761
12762
12763: ${CONFIG_STATUS=./config.status}
ec6a6fbe 12764ac_write_fail=0
ad6254c5
AK
12765ac_clean_files_save=$ac_clean_files
12766ac_clean_files="$ac_clean_files $CONFIG_STATUS"
ec6a6fbe
AK
12767{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12768$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12769cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5
AK
12770#! $SHELL
12771# Generated by $as_me.
795ca3e5 12772# Run this file to recreate the current configuration.
795ca3e5 12773# Compiler output produced by configure, useful for debugging
ad6254c5
AK
12774# configure, is in config.log if it exists.
12775
12776debug=false
12777ac_cs_recheck=false
12778ac_cs_silent=false
12779SHELL=\${CONFIG_SHELL-$SHELL}
12780_ACEOF
12781
ec6a6fbe 12782cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ad6254c5
AK
12783## --------------------- ##
12784## M4sh Initialization. ##
12785## --------------------- ##
12786
25fbec5b
AK
12787# Be more Bourne compatible
12788DUALCASE=1; export DUALCASE # for MKS sh
ad6254c5
AK
12789if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12790 emulate sh
12791 NULLCMD=:
ec6a6fbe 12792 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
ad6254c5
AK
12793 # is contrary to our usage. Disable this feature.
12794 alias -g '${1+"$@"}'='"$@"'
7a197a62
AK
12795 setopt NO_GLOB_SUBST
12796else
25fbec5b
AK
12797 case `(set -o) 2>/dev/null` in
12798 *posix*) set -o posix ;;
12799esac
12800
7a197a62 12801fi
25fbec5b
AK
12802
12803
7a197a62
AK
12804
12805
12806# PATH needs CR
12807# Avoid depending upon Character Ranges.
12808as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12809as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12810as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12811as_cr_digits='0123456789'
12812as_cr_alnum=$as_cr_Letters$as_cr_digits
12813
ec6a6fbe
AK
12814as_nl='
12815'
12816export as_nl
12817# Printing a long string crashes Solaris 7 /usr/bin/printf.
12818as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12819as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12820as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12821if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12822 as_echo='printf %s\n'
12823 as_echo_n='printf %s'
12824else
12825 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12826 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12827 as_echo_n='/usr/ucb/echo -n'
68f2de6d 12828 else
ec6a6fbe
AK
12829 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12830 as_echo_n_body='eval
12831 arg=$1;
12832 case $arg in
12833 *"$as_nl"*)
12834 expr "X$arg" : "X\\(.*\\)$as_nl";
12835 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12836 esac;
12837 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12838 '
12839 export as_echo_n_body
12840 as_echo_n='sh -c $as_echo_n_body as_echo'
68f2de6d 12841 fi
ec6a6fbe
AK
12842 export as_echo_body
12843 as_echo='sh -c $as_echo_body as_echo'
12844fi
12845
12846# The user is always right.
12847if test "${PATH_SEPARATOR+set}" != set; then
12848 PATH_SEPARATOR=:
12849 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12850 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12851 PATH_SEPARATOR=';'
12852 }
ad6254c5
AK
12853fi
12854
12855# Support unset when possible.
8a2fc586 12856if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
ad6254c5
AK
12857 as_unset=unset
12858else
12859 as_unset=false
12860fi
8106cdd5 12861
ad6254c5 12862
7a197a62
AK
12863# IFS
12864# We need space, tab and new line, in precisely that order. Quoting is
12865# there to prevent editors from complaining about space-tab.
12866# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12867# splitting by setting IFS to empty value.)
7a197a62
AK
12868IFS=" "" $as_nl"
12869
12870# Find who we are. Look in the path if we contain no directory separator.
12871case $0 in
12872 *[\\/]* ) as_myself=$0 ;;
12873 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12874for as_dir in $PATH
12875do
12876 IFS=$as_save_IFS
12877 test -z "$as_dir" && as_dir=.
12878 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12879done
12880IFS=$as_save_IFS
12881
12882 ;;
12883esac
12884# We did not find ourselves, most probably we were run as `sh COMMAND'
12885# in which case we are not to be found in the path.
12886if test "x$as_myself" = x; then
12887 as_myself=$0
12888fi
12889if test ! -f "$as_myself"; then
ec6a6fbe 12890 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7a197a62
AK
12891 { (exit 1); exit 1; }
12892fi
12893
ad6254c5 12894# Work around bugs in pre-3.0 UWIN ksh.
7a197a62
AK
12895for as_var in ENV MAIL MAILPATH
12896do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12897done
ad6254c5
AK
12898PS1='$ '
12899PS2='> '
12900PS4='+ '
12901
12902# NLS nuisances.
ec6a6fbe
AK
12903LC_ALL=C
12904export LC_ALL
12905LANGUAGE=C
12906export LANGUAGE
8106cdd5 12907
ad6254c5 12908# Required to use basename.
7a197a62
AK
12909if expr a : '\(a\)' >/dev/null 2>&1 &&
12910 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
12911 as_expr=expr
12912else
12913 as_expr=false
12914fi
8106cdd5 12915
7a197a62 12916if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
ad6254c5
AK
12917 as_basename=basename
12918else
12919 as_basename=false
12920fi
12921
12922
12923# Name of the executable.
7a197a62 12924as_me=`$as_basename -- "$0" ||
ad6254c5
AK
12925$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12926 X"$0" : 'X\(//\)$' \| \
7a197a62 12927 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 12928$as_echo X/"$0" |
7a197a62
AK
12929 sed '/^.*\/\([^/][^/]*\)\/*$/{
12930 s//\1/
12931 q
12932 }
12933 /^X\/\(\/\/\)$/{
12934 s//\1/
12935 q
12936 }
12937 /^X\/\(\/\).*/{
12938 s//\1/
12939 q
12940 }
12941 s/.*/./; q'`
ad6254c5 12942
7a197a62
AK
12943# CDPATH.
12944$as_unset CDPATH
ad6254c5
AK
12945
12946
ad6254c5 12947
ad6254c5
AK
12948 as_lineno_1=$LINENO
12949 as_lineno_2=$LINENO
ad6254c5 12950 test "x$as_lineno_1" != "x$as_lineno_2" &&
7a197a62 12951 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
795ca3e5 12952
ad6254c5
AK
12953 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12954 # uniformly replaced by the line number. The first 'sed' inserts a
7a197a62
AK
12955 # line-number line after each line using $LINENO; the second 'sed'
12956 # does the real work. The second script uses 'N' to pair each
12957 # line-number line with the line containing $LINENO, and appends
12958 # trailing '-' during substitution so that $LINENO is not a special
12959 # case at line end.
ad6254c5 12960 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7a197a62
AK
12961 # scripts with optimization help from Paolo Bonzini. Blame Lee
12962 # E. McMahon (1931-1989) for sed's syntax. :-)
12963 sed -n '
12964 p
12965 /[$]LINENO/=
12966 ' <$as_myself |
ad6254c5 12967 sed '
7a197a62
AK
12968 s/[$]LINENO.*/&-/
12969 t lineno
12970 b
12971 :lineno
ad6254c5 12972 N
7a197a62
AK
12973 :loop
12974 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
ad6254c5 12975 t loop
7a197a62 12976 s/-\n.*//
ad6254c5 12977 ' >$as_me.lineno &&
7a197a62 12978 chmod +x "$as_me.lineno" ||
ec6a6fbe 12979 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
ad6254c5
AK
12980 { (exit 1); exit 1; }; }
12981
12982 # Don't try to exec as it changes $[0], causing all sort of problems
12983 # (the dirname of $[0] is not the place where we might find the
7a197a62
AK
12984 # original and so on. Autoconf is especially sensitive to this).
12985 . "./$as_me.lineno"
ad6254c5
AK
12986 # Exit status is that of the last command.
12987 exit
12988}
12989
12990
7a197a62
AK
12991if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12992 as_dirname=dirname
12993else
12994 as_dirname=false
12995fi
12996
12997ECHO_C= ECHO_N= ECHO_T=
12998case `echo -n x` in
12999-n*)
13000 case `echo 'x\c'` in
13001 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13002 *) ECHO_C='\c';;
13003 esac;;
13004*)
13005 ECHO_N='-n';;
ad6254c5 13006esac
7a197a62
AK
13007if expr a : '\(a\)' >/dev/null 2>&1 &&
13008 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
13009 as_expr=expr
13010else
13011 as_expr=false
13012fi
80992638 13013
ad6254c5 13014rm -f conf$$ conf$$.exe conf$$.file
7a197a62
AK
13015if test -d conf$$.dir; then
13016 rm -f conf$$.dir/conf$$.file
13017else
13018 rm -f conf$$.dir
ec6a6fbe
AK
13019 mkdir conf$$.dir 2>/dev/null
13020fi
13021if (echo >conf$$.file) 2>/dev/null; then
13022 if ln -s conf$$.file conf$$ 2>/dev/null; then
13023 as_ln_s='ln -s'
13024 # ... but there are two gotchas:
13025 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13026 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13027 # In both cases, we have to default to `cp -p'.
13028 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13029 as_ln_s='cp -p'
13030 elif ln conf$$.file conf$$ 2>/dev/null; then
13031 as_ln_s=ln
13032 else
ad6254c5 13033 as_ln_s='cp -p'
ec6a6fbe 13034 fi
ad6254c5
AK
13035else
13036 as_ln_s='cp -p'
13037fi
7a197a62
AK
13038rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13039rmdir conf$$.dir 2>/dev/null
8106cdd5 13040
ad6254c5
AK
13041if mkdir -p . 2>/dev/null; then
13042 as_mkdir_p=:
13043else
8a2fc586 13044 test -d ./-p && rmdir ./-p
ad6254c5
AK
13045 as_mkdir_p=false
13046fi
13047
25fbec5b
AK
13048if test -x / >/dev/null 2>&1; then
13049 as_test_x='test -x'
7a197a62 13050else
25fbec5b
AK
13051 if ls -dL / >/dev/null 2>&1; then
13052 as_ls_L_option=L
13053 else
13054 as_ls_L_option=
13055 fi
13056 as_test_x='
13057 eval sh -c '\''
13058 if test -d "$1"; then
ec6a6fbe 13059 test -d "$1/.";
25fbec5b
AK
13060 else
13061 case $1 in
ec6a6fbe 13062 -*)set "./$1";;
25fbec5b
AK
13063 esac;
13064 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
13065 ???[sx]*):;;*)false;;esac;fi
13066 '\'' sh
13067 '
7a197a62 13068fi
25fbec5b 13069as_executable_p=$as_test_x
ad6254c5
AK
13070
13071# Sed expression to map a string onto a valid CPP name.
8a2fc586 13072as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
13073
13074# Sed expression to map a string onto a valid variable name.
8a2fc586 13075as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
13076
13077
ad6254c5
AK
13078exec 6>&1
13079
7a197a62 13080# Save the log message, to keep $[0] and so on meaningful, and to
ad6254c5 13081# report actual input values of CONFIG_FILES etc. instead of their
7a197a62
AK
13082# values after options handling.
13083ac_log="
ad6254c5 13084This file was extended by $as_me, which was
ec6a6fbe 13085generated by GNU Autoconf 2.63. Invocation command line was
ad6254c5
AK
13086
13087 CONFIG_FILES = $CONFIG_FILES
13088 CONFIG_HEADERS = $CONFIG_HEADERS
13089 CONFIG_LINKS = $CONFIG_LINKS
13090 CONFIG_COMMANDS = $CONFIG_COMMANDS
13091 $ $0 $@
13092
7a197a62
AK
13093on `(hostname || uname -n) 2>/dev/null | sed 1q`
13094"
13095
ad6254c5
AK
13096_ACEOF
13097
ec6a6fbe
AK
13098case $ac_config_files in *"
13099"*) set x $ac_config_files; shift; ac_config_files=$*;;
13100esac
13101
13102case $ac_config_headers in *"
13103"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13104esac
13105
13106
13107cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5 13108# Files that config.status was made for.
68f2de6d
AK
13109config_files="$ac_config_files"
13110config_headers="$ac_config_headers"
ad6254c5 13111
7a197a62 13112_ACEOF
ad6254c5 13113
ec6a6fbe 13114cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ad6254c5
AK
13115ac_cs_usage="\
13116\`$as_me' instantiates files from templates according to the
13117current configuration.
13118
ec6a6fbe 13119Usage: $0 [OPTION]... [FILE]...
ad6254c5
AK
13120
13121 -h, --help print this help, then exit
25fbec5b 13122 -V, --version print version number and configuration settings, then exit
ec6a6fbe
AK
13123 -q, --quiet, --silent
13124 do not print progress messages
ad6254c5
AK
13125 -d, --debug don't remove temporary files
13126 --recheck update $as_me by reconfiguring in the same conditions
ec6a6fbe
AK
13127 --file=FILE[:TEMPLATE]
13128 instantiate the configuration file FILE
13129 --header=FILE[:TEMPLATE]
13130 instantiate the configuration header FILE
ad6254c5
AK
13131
13132Configuration files:
13133$config_files
13134
72b2cb61
AK
13135Configuration headers:
13136$config_headers
13137
ad6254c5 13138Report bugs to <bug-autoconf@gnu.org>."
ad6254c5 13139
7a197a62 13140_ACEOF
ec6a6fbe 13141cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5
AK
13142ac_cs_version="\\
13143config.status
ec6a6fbe
AK
13144configured by $0, generated by GNU Autoconf 2.63,
13145 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
ad6254c5 13146
ec6a6fbe 13147Copyright (C) 2008 Free Software Foundation, Inc.
ad6254c5
AK
13148This config.status script is free software; the Free Software Foundation
13149gives unlimited permission to copy, distribute and modify it."
7a197a62
AK
13150
13151ac_pwd='$ac_pwd'
13152srcdir='$srcdir'
13153INSTALL='$INSTALL'
fddafd51 13154MKDIR_P='$MKDIR_P'
ec6a6fbe
AK
13155AWK='$AWK'
13156test -n "\$AWK" || AWK=awk
ad6254c5
AK
13157_ACEOF
13158
ec6a6fbe
AK
13159cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13160# The default lists apply if the user does not specify any file.
ad6254c5
AK
13161ac_need_defaults=:
13162while test $# != 0
13163do
13164 case $1 in
13165 --*=*)
7a197a62
AK
13166 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13167 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
ad6254c5
AK
13168 ac_shift=:
13169 ;;
7a197a62 13170 *)
ad6254c5
AK
13171 ac_option=$1
13172 ac_optarg=$2
13173 ac_shift=shift
13174 ;;
ad6254c5
AK
13175 esac
13176
13177 case $ac_option in
13178 # Handling of the options.
ad6254c5
AK
13179 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13180 ac_cs_recheck=: ;;
7a197a62 13181 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
ec6a6fbe 13182 $as_echo "$ac_cs_version"; exit ;;
7a197a62 13183 --debug | --debu | --deb | --de | --d | -d )
ad6254c5
AK
13184 debug=: ;;
13185 --file | --fil | --fi | --f )
13186 $ac_shift
ec6a6fbe
AK
13187 case $ac_optarg in
13188 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13189 esac
13190 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
ad6254c5
AK
13191 ac_need_defaults=false;;
13192 --header | --heade | --head | --hea )
13193 $ac_shift
ec6a6fbe
AK
13194 case $ac_optarg in
13195 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13196 esac
13197 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
ad6254c5 13198 ac_need_defaults=false;;
7a197a62
AK
13199 --he | --h)
13200 # Conflict between --help and --header
ec6a6fbe 13201 { $as_echo "$as_me: error: ambiguous option: $1
7a197a62
AK
13202Try \`$0 --help' for more information." >&2
13203 { (exit 1); exit 1; }; };;
13204 --help | --hel | -h )
ec6a6fbe 13205 $as_echo "$ac_cs_usage"; exit ;;
ad6254c5
AK
13206 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13207 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13208 ac_cs_silent=: ;;
13209
13210 # This is an error.
ec6a6fbe 13211 -*) { $as_echo "$as_me: error: unrecognized option: $1
7a197a62 13212Try \`$0 --help' for more information." >&2
ad6254c5
AK
13213 { (exit 1); exit 1; }; } ;;
13214
7a197a62
AK
13215 *) ac_config_targets="$ac_config_targets $1"
13216 ac_need_defaults=false ;;
ad6254c5
AK
13217
13218 esac
13219 shift
13220done
13221
13222ac_configure_extra_args=
13223
13224if $ac_cs_silent; then
13225 exec 6>/dev/null
13226 ac_configure_extra_args="$ac_configure_extra_args --silent"
13227fi
13228
13229_ACEOF
ec6a6fbe 13230cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5 13231if \$ac_cs_recheck; then
ec6a6fbe
AK
13232 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13233 shift
13234 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13235 CONFIG_SHELL='$SHELL'
7a197a62 13236 export CONFIG_SHELL
ec6a6fbe 13237 exec "\$@"
ad6254c5
AK
13238fi
13239
13240_ACEOF
ec6a6fbe 13241cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
13242exec 5>>config.log
13243{
13244 echo
13245 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13246## Running $as_me. ##
13247_ASBOX
ec6a6fbe 13248 $as_echo "$ac_log"
7a197a62 13249} >&5
ad6254c5 13250
7a197a62 13251_ACEOF
ec6a6fbe 13252cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7a197a62 13253_ACEOF
ad6254c5 13254
ec6a6fbe 13255cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
13256
13257# Handling of arguments.
ad6254c5
AK
13258for ac_config_target in $ac_config_targets
13259do
7a197a62
AK
13260 case $ac_config_target in
13261 "lib/misc/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;;
13262 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13263 "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;;
13264 "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;;
13265 "daemons/clvmd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;;
93bd259b
AK
13266 "daemons/dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/Makefile" ;;
13267 "daemons/dmeventd/libdevmapper-event.pc") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/libdevmapper-event.pc" ;;
04f06bc9 13268 "daemons/dmeventd/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/Makefile" ;;
93bd259b
AK
13269 "daemons/dmeventd/plugins/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/mirror/Makefile" ;;
13270 "daemons/dmeventd/plugins/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/snapshot/Makefile" ;;
7a197a62 13271 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
93bd259b
AK
13272 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
13273 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
7a197a62
AK
13274 "lib/format1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;;
13275 "lib/format_pool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;;
13276 "lib/locking/Makefile") CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;;
13277 "lib/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;;
ec6a6fbe 13278 "lib/misc/lvm-version.h") CONFIG_FILES="$CONFIG_FILES lib/misc/lvm-version.h" ;;
7a197a62 13279 "lib/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;;
93bd259b
AK
13280 "libdm/Makefile") CONFIG_FILES="$CONFIG_FILES libdm/Makefile" ;;
13281 "libdm/libdevmapper.pc") CONFIG_FILES="$CONFIG_FILES libdm/libdevmapper.pc" ;;
e0c64c6c 13282 "liblvm/Makefile") CONFIG_FILES="$CONFIG_FILES liblvm/Makefile" ;;
93bd259b
AK
13283 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
13284 "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
75ad7143 13285 "scripts/clvmd_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/clvmd_init_red_hat" ;;
7a197a62 13286 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
93bd259b 13287 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
c7e363f9 13288 "test/api/Makefile") CONFIG_FILES="$CONFIG_FILES test/api/Makefile" ;;
7a197a62 13289 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
7a197a62 13290
ec6a6fbe
AK
13291 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13292$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
ad6254c5 13293 { (exit 1); exit 1; }; };;
80992638 13294 esac
ad6254c5
AK
13295done
13296
7a197a62 13297
ad6254c5
AK
13298# If the user did not use the arguments to specify the items to instantiate,
13299# then the envvar interface is used. Set only those that are not.
13300# We use the long form for the default assignment because of an extremely
13301# bizarre bug on SunOS 4.1.3.
13302if $ac_need_defaults; then
13303 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
72b2cb61 13304 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
ad6254c5
AK
13305fi
13306
13307# Have a temporary directory for convenience. Make it in the build tree
7a197a62 13308# simply because there is no reason against having it here, and in addition,
ad6254c5 13309# creating and moving files from /tmp can sometimes cause problems.
7a197a62
AK
13310# Hook for its removal unless debugging.
13311# Note that there is a small window in which the directory will not be cleaned:
13312# after its creation but before its name has been assigned to `$tmp'.
ad6254c5
AK
13313$debug ||
13314{
7a197a62
AK
13315 tmp=
13316 trap 'exit_status=$?
13317 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13318' 0
ad6254c5
AK
13319 trap '{ (exit 1); exit 1; }' 1 2 13 15
13320}
ad6254c5
AK
13321# Create a (secure) tmp directory for tmp files.
13322
13323{
7a197a62 13324 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
ad6254c5
AK
13325 test -n "$tmp" && test -d "$tmp"
13326} ||
13327{
7a197a62
AK
13328 tmp=./conf$$-$RANDOM
13329 (umask 077 && mkdir "$tmp")
ad6254c5
AK
13330} ||
13331{
ec6a6fbe 13332 $as_echo "$as_me: cannot create a temporary directory in ." >&2
ad6254c5
AK
13333 { (exit 1); exit 1; }
13334}
13335
ec6a6fbe
AK
13336# Set up the scripts for CONFIG_FILES section.
13337# No need to generate them if there are no CONFIG_FILES.
13338# This happens for instance with `./config.status config.h'.
1995c9ff 13339if test -n "$CONFIG_FILES"; then
7a197a62 13340
68f2de6d 13341
ec6a6fbe
AK
13342ac_cr='\r'
13343ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13344if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13345 ac_cs_awk_cr='\\r'
13346else
13347 ac_cs_awk_cr=$ac_cr
1995c9ff 13348fi
7a197a62 13349
ec6a6fbe 13350echo 'BEGIN {' >"$tmp/subs1.awk" &&
1995c9ff 13351_ACEOF
7a197a62 13352
8106cdd5 13353
ec6a6fbe
AK
13354{
13355 echo "cat >conf$$subs.awk <<_ACEOF" &&
13356 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13357 echo "_ACEOF"
13358} >conf$$subs.sh ||
13359 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13360$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13361 { (exit 1); exit 1; }; }
13362ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
1995c9ff
AK
13363ac_delim='%!_!# '
13364for ac_last_try in false false false false false :; do
ec6a6fbe
AK
13365 . ./conf$$subs.sh ||
13366 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13367$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13368 { (exit 1); exit 1; }; }
13369
13370 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13371 if test $ac_delim_n = $ac_delim_num; then
1995c9ff
AK
13372 break
13373 elif $ac_last_try; then
ec6a6fbe
AK
13374 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13375$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
1995c9ff
AK
13376 { (exit 1); exit 1; }; }
13377 else
13378 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13379 fi
13380done
ec6a6fbe
AK
13381rm -f conf$$subs.sh
13382
13383cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13384cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13385_ACEOF
13386sed -n '
13387h
13388s/^/S["/; s/!.*/"]=/
13389p
13390g
13391s/^[^!]*!//
13392:repl
13393t repl
13394s/'"$ac_delim"'$//
13395t delim
13396:nl
13397h
13398s/\(.\{148\}\).*/\1/
13399t more1
13400s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13401p
13402n
13403b repl
13404:more1
13405s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13406p
13407g
13408s/.\{148\}//
13409t nl
13410:delim
13411h
13412s/\(.\{148\}\).*/\1/
13413t more2
13414s/["\\]/\\&/g; s/^/"/; s/$/"/
13415p
13416b
13417:more2
13418s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13419p
13420g
13421s/.\{148\}//
13422t delim
13423' <conf$$subs.awk | sed '
13424/^[^""]/{
13425 N
13426 s/\n//
13427}
13428' >>$CONFIG_STATUS || ac_write_fail=1
13429rm -f conf$$subs.awk
13430cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13431_ACAWK
13432cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13433 for (key in S) S_is_set[key] = 1
13434 FS = "\a"
7a197a62 13435
ec6a6fbe
AK
13436}
13437{
13438 line = $ 0
13439 nfields = split(line, field, "@")
13440 substed = 0
13441 len = length(field[1])
13442 for (i = 2; i < nfields; i++) {
13443 key = field[i]
13444 keylen = length(key)
13445 if (S_is_set[key]) {
13446 value = S[key]
13447 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13448 len += length(value) + length(field[++i])
13449 substed = 1
13450 } else
13451 len += 1 + keylen
13452 }
13453
13454 print line
13455}
fddafd51 13456
ec6a6fbe 13457_ACAWK
1995c9ff 13458_ACEOF
ec6a6fbe
AK
13459cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13460if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13461 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13462else
13463 cat
13464fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13465 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
13466$as_echo "$as_me: error: could not setup config files machinery" >&2;}
13467 { (exit 1); exit 1; }; }
7a197a62
AK
13468_ACEOF
13469
7a197a62
AK
13470# VPATH may cause trouble with some makes, so we remove $(srcdir),
13471# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13472# trailing colons and then remove the whole line if VPATH becomes empty
13473# (actually we leave an empty line to preserve line numbers).
13474if test "x$srcdir" = x.; then
13475 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13476s/:*\$(srcdir):*/:/
13477s/:*\${srcdir}:*/:/
13478s/:*@srcdir@:*/:/
13479s/^\([^=]*=[ ]*\):*/\1/
13480s/:*$//
13481s/^[^=]*=[ ]*$//
13482}'
13483fi
13484
ec6a6fbe 13485cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
13486fi # test -n "$CONFIG_FILES"
13487
ec6a6fbe
AK
13488# Set up the scripts for CONFIG_HEADERS section.
13489# No need to generate them if there are no CONFIG_HEADERS.
13490# This happens for instance with `./config.status Makefile'.
13491if test -n "$CONFIG_HEADERS"; then
13492cat >"$tmp/defines.awk" <<\_ACAWK ||
13493BEGIN {
13494_ACEOF
13495
13496# Transform confdefs.h into an awk script `defines.awk', embedded as
13497# here-document in config.status, that substitutes the proper values into
13498# config.h.in to produce config.h.
13499
13500# Create a delimiter string that does not exist in confdefs.h, to ease
13501# handling of long lines.
13502ac_delim='%!_!# '
13503for ac_last_try in false false :; do
13504 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
13505 if test -z "$ac_t"; then
13506 break
13507 elif $ac_last_try; then
13508 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
13509$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
13510 { (exit 1); exit 1; }; }
13511 else
13512 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13513 fi
13514done
13515
13516# For the awk script, D is an array of macro values keyed by name,
13517# likewise P contains macro parameters if any. Preserve backslash
13518# newline sequences.
13519
13520ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13521sed -n '
13522s/.\{148\}/&'"$ac_delim"'/g
13523t rset
13524:rset
13525s/^[ ]*#[ ]*define[ ][ ]*/ /
13526t def
13527d
13528:def
13529s/\\$//
13530t bsnl
13531s/["\\]/\\&/g
13532s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13533D["\1"]=" \3"/p
13534s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13535d
13536:bsnl
13537s/["\\]/\\&/g
13538s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13539D["\1"]=" \3\\\\\\n"\\/p
13540t cont
13541s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13542t cont
13543d
13544:cont
13545n
13546s/.\{148\}/&'"$ac_delim"'/g
13547t clear
13548:clear
13549s/\\$//
13550t bsnlc
13551s/["\\]/\\&/g; s/^/"/; s/$/"/p
13552d
13553:bsnlc
13554s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13555b cont
13556' <confdefs.h | sed '
13557s/'"$ac_delim"'/"\\\
13558"/g' >>$CONFIG_STATUS || ac_write_fail=1
13559
13560cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13561 for (key in D) D_is_set[key] = 1
13562 FS = "\a"
13563}
13564/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13565 line = \$ 0
13566 split(line, arg, " ")
13567 if (arg[1] == "#") {
13568 defundef = arg[2]
13569 mac1 = arg[3]
13570 } else {
13571 defundef = substr(arg[1], 2)
13572 mac1 = arg[2]
13573 }
13574 split(mac1, mac2, "(") #)
13575 macro = mac2[1]
13576 prefix = substr(line, 1, index(line, defundef) - 1)
13577 if (D_is_set[macro]) {
13578 # Preserve the white space surrounding the "#".
13579 print prefix "define", macro P[macro] D[macro]
13580 next
13581 } else {
13582 # Replace #undef with comments. This is necessary, for example,
13583 # in the case of _POSIX_SOURCE, which is predefined and required
13584 # on some systems where configure will not decide to define it.
13585 if (defundef == "undef") {
13586 print "/*", prefix defundef, macro, "*/"
13587 next
13588 }
13589 }
13590}
13591{ print }
13592_ACAWK
13593_ACEOF
13594cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13595 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
13596$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
13597 { (exit 1); exit 1; }; }
13598fi # test -n "$CONFIG_HEADERS"
13599
7a197a62 13600
ec6a6fbe
AK
13601eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
13602shift
13603for ac_tag
7a197a62
AK
13604do
13605 case $ac_tag in
13606 :[FHLC]) ac_mode=$ac_tag; continue;;
13607 esac
13608 case $ac_mode$ac_tag in
13609 :[FHL]*:*);;
ec6a6fbe
AK
13610 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
13611$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
7a197a62
AK
13612 { (exit 1); exit 1; }; };;
13613 :[FH]-) ac_tag=-:-;;
13614 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13615 esac
13616 ac_save_IFS=$IFS
13617 IFS=:
13618 set x $ac_tag
13619 IFS=$ac_save_IFS
13620 shift
13621 ac_file=$1
13622 shift
13623
13624 case $ac_mode in
13625 :L) ac_source=$1;;
13626 :[FH])
13627 ac_file_inputs=
13628 for ac_f
13629 do
13630 case $ac_f in
13631 -) ac_f="$tmp/stdin";;
13632 *) # Look for the file first in the build tree, then in the source tree
13633 # (if the path is not absolute). The absolute path cannot be DOS-style,
13634 # because $ac_f cannot contain `:'.
13635 test -f "$ac_f" ||
13636 case $ac_f in
13637 [\\/$]*) false;;
13638 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13639 esac ||
ec6a6fbe
AK
13640 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
13641$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
7a197a62
AK
13642 { (exit 1); exit 1; }; };;
13643 esac
ec6a6fbe
AK
13644 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13645 ac_file_inputs="$ac_file_inputs '$ac_f'"
7a197a62
AK
13646 done
13647
13648 # Let's still pretend it is `configure' which instantiates (i.e., don't
13649 # use $as_me), people would be surprised to read:
13650 # /* config.h. Generated by config.status. */
ec6a6fbe
AK
13651 configure_input='Generated from '`
13652 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13653 `' by configure.'
7a197a62
AK
13654 if test x"$ac_file" != x-; then
13655 configure_input="$ac_file. $configure_input"
ec6a6fbe
AK
13656 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
13657$as_echo "$as_me: creating $ac_file" >&6;}
7a197a62 13658 fi
ec6a6fbe
AK
13659 # Neutralize special characters interpreted by sed in replacement strings.
13660 case $configure_input in #(
13661 *\&* | *\|* | *\\* )
13662 ac_sed_conf_input=`$as_echo "$configure_input" |
13663 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13664 *) ac_sed_conf_input=$configure_input;;
13665 esac
7a197a62
AK
13666
13667 case $ac_tag in
ec6a6fbe
AK
13668 *:-:* | *:-) cat >"$tmp/stdin" \
13669 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13670$as_echo "$as_me: error: could not create $ac_file" >&2;}
13671 { (exit 1); exit 1; }; } ;;
7a197a62
AK
13672 esac
13673 ;;
80992638 13674 esac
8106cdd5 13675
7a197a62 13676 ac_dir=`$as_dirname -- "$ac_file" ||
ad6254c5 13677$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8a2fc586
AK
13678 X"$ac_file" : 'X\(//\)[^/]' \| \
13679 X"$ac_file" : 'X\(//\)$' \| \
7a197a62 13680 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 13681$as_echo X"$ac_file" |
7a197a62
AK
13682 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13683 s//\1/
13684 q
13685 }
13686 /^X\(\/\/\)[^/].*/{
13687 s//\1/
13688 q
13689 }
13690 /^X\(\/\/\)$/{
13691 s//\1/
13692 q
13693 }
13694 /^X\(\/\).*/{
13695 s//\1/
13696 q
13697 }
13698 s/.*/./; q'`
13699 { as_dir="$ac_dir"
13700 case $as_dir in #(
13701 -*) as_dir=./$as_dir;;
13702 esac
13703 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
ad6254c5 13704 as_dirs=
7a197a62
AK
13705 while :; do
13706 case $as_dir in #(
ec6a6fbe 13707 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7a197a62
AK
13708 *) as_qdir=$as_dir;;
13709 esac
13710 as_dirs="'$as_qdir' $as_dirs"
13711 as_dir=`$as_dirname -- "$as_dir" ||
ad6254c5 13712$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8a2fc586
AK
13713 X"$as_dir" : 'X\(//\)[^/]' \| \
13714 X"$as_dir" : 'X\(//\)$' \| \
7a197a62 13715 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 13716$as_echo X"$as_dir" |
7a197a62
AK
13717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13718 s//\1/
13719 q
13720 }
13721 /^X\(\/\/\)[^/].*/{
13722 s//\1/
13723 q
13724 }
13725 /^X\(\/\/\)$/{
13726 s//\1/
13727 q
13728 }
13729 /^X\(\/\).*/{
13730 s//\1/
13731 q
13732 }
13733 s/.*/./; q'`
13734 test -d "$as_dir" && break
ad6254c5 13735 done
7a197a62 13736 test -z "$as_dirs" || eval "mkdir $as_dirs"
ec6a6fbe
AK
13737 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
13738$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
ad6254c5 13739 { (exit 1); exit 1; }; }; }
ad6254c5
AK
13740 ac_builddir=.
13741
7a197a62
AK
13742case "$ac_dir" in
13743.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13744*)
ec6a6fbe 13745 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7a197a62 13746 # A ".." for each directory in $ac_dir_suffix.
ec6a6fbe 13747 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7a197a62
AK
13748 case $ac_top_builddir_sub in
13749 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13750 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13751 esac ;;
13752esac
13753ac_abs_top_builddir=$ac_pwd
13754ac_abs_builddir=$ac_pwd$ac_dir_suffix
13755# for backward compatibility:
13756ac_top_builddir=$ac_top_build_prefix
ad6254c5
AK
13757
13758case $srcdir in
7a197a62 13759 .) # We are building in place.
ad6254c5 13760 ac_srcdir=.
7a197a62
AK
13761 ac_top_srcdir=$ac_top_builddir_sub
13762 ac_abs_top_srcdir=$ac_pwd ;;
13763 [\\/]* | ?:[\\/]* ) # Absolute name.
ad6254c5 13764 ac_srcdir=$srcdir$ac_dir_suffix;
7a197a62
AK
13765 ac_top_srcdir=$srcdir
13766 ac_abs_top_srcdir=$srcdir ;;
13767 *) # Relative name.
13768 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13769 ac_top_srcdir=$ac_top_build_prefix$srcdir
13770 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
ad6254c5 13771esac
7a197a62 13772ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8a2fc586 13773
ad6254c5 13774
7a197a62
AK
13775 case $ac_mode in
13776 :F)
13777 #
13778 # CONFIG_FILE
13779 #
ad6254c5
AK
13780
13781 case $INSTALL in
13782 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7a197a62 13783 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
795ca3e5 13784 esac
fddafd51
ZK
13785 ac_MKDIR_P=$MKDIR_P
13786 case $MKDIR_P in
13787 [\\/$]* | ?:[\\/]* ) ;;
13788 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13789 esac
7a197a62 13790_ACEOF
795ca3e5 13791
ec6a6fbe 13792cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
13793# If the template does not know about datarootdir, expand it.
13794# FIXME: This hack should be removed a few years after 2.60.
13795ac_datarootdir_hack=; ac_datarootdir_seen=
13796
ec6a6fbe
AK
13797ac_sed_dataroot='
13798/datarootdir/ {
7a197a62
AK
13799 p
13800 q
13801}
13802/@datadir@/p
13803/@docdir@/p
13804/@infodir@/p
13805/@localedir@/p
13806/@mandir@/p
ec6a6fbe
AK
13807'
13808case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7a197a62
AK
13809*datarootdir*) ac_datarootdir_seen=yes;;
13810*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
ec6a6fbe
AK
13811 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13812$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
ad6254c5 13813_ACEOF
ec6a6fbe 13814cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7a197a62
AK
13815 ac_datarootdir_hack='
13816 s&@datadir@&$datadir&g
13817 s&@docdir@&$docdir&g
13818 s&@infodir@&$infodir&g
13819 s&@localedir@&$localedir&g
13820 s&@mandir@&$mandir&g
13821 s&\\\${datarootdir}&$datarootdir&g' ;;
13822esac
13823_ACEOF
13824
13825# Neutralize VPATH when `$srcdir' = `.'.
13826# Shell code in configure.ac might set extrasub.
13827# FIXME: do we really want to maintain this feature?
ec6a6fbe
AK
13828cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13829ac_sed_extra="$ac_vpsub
ad6254c5
AK
13830$extrasub
13831_ACEOF
ec6a6fbe 13832cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ad6254c5
AK
13833:t
13834/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
ec6a6fbe 13835s|@configure_input@|$ac_sed_conf_input|;t t
7a197a62 13836s&@top_builddir@&$ac_top_builddir_sub&;t t
ec6a6fbe 13837s&@top_build_prefix@&$ac_top_build_prefix&;t t
7a197a62
AK
13838s&@srcdir@&$ac_srcdir&;t t
13839s&@abs_srcdir@&$ac_abs_srcdir&;t t
13840s&@top_srcdir@&$ac_top_srcdir&;t t
13841s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13842s&@builddir@&$ac_builddir&;t t
13843s&@abs_builddir@&$ac_abs_builddir&;t t
13844s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13845s&@INSTALL@&$ac_INSTALL&;t t
fddafd51 13846s&@MKDIR_P@&$ac_MKDIR_P&;t t
7a197a62 13847$ac_datarootdir_hack
ec6a6fbe
AK
13848"
13849eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
13850 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13851$as_echo "$as_me: error: could not create $ac_file" >&2;}
13852 { (exit 1); exit 1; }; }
7a197a62
AK
13853
13854test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13855 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13856 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
ec6a6fbe 13857 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7a197a62 13858which seems to be undefined. Please make sure it is defined." >&5
ec6a6fbe 13859$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7a197a62
AK
13860which seems to be undefined. Please make sure it is defined." >&2;}
13861
13862 rm -f "$tmp/stdin"
72b2cb61 13863 case $ac_file in
ec6a6fbe
AK
13864 -) cat "$tmp/out" && rm -f "$tmp/out";;
13865 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
13866 esac \
13867 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13868$as_echo "$as_me: error: could not create $ac_file" >&2;}
13869 { (exit 1); exit 1; }; }
7a197a62
AK
13870 ;;
13871 :H)
13872 #
13873 # CONFIG_HEADER
13874 #
72b2cb61 13875 if test x"$ac_file" != x-; then
ec6a6fbe
AK
13876 {
13877 $as_echo "/* $configure_input */" \
13878 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
13879 } >"$tmp/config.h" \
13880 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13881$as_echo "$as_me: error: could not create $ac_file" >&2;}
13882 { (exit 1); exit 1; }; }
13883 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
13884 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13885$as_echo "$as_me: $ac_file is unchanged" >&6;}
72b2cb61 13886 else
ec6a6fbe
AK
13887 rm -f "$ac_file"
13888 mv "$tmp/config.h" "$ac_file" \
13889 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13890$as_echo "$as_me: error: could not create $ac_file" >&2;}
13891 { (exit 1); exit 1; }; }
72b2cb61
AK
13892 fi
13893 else
ec6a6fbe
AK
13894 $as_echo "/* $configure_input */" \
13895 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
13896 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
13897$as_echo "$as_me: error: could not create -" >&2;}
13898 { (exit 1); exit 1; }; }
72b2cb61 13899 fi
7a197a62
AK
13900 ;;
13901
13902
13903 esac
13904
13905done # for ac_tag
795ca3e5 13906
795ca3e5 13907
ad6254c5
AK
13908{ (exit 0); exit 0; }
13909_ACEOF
795ca3e5 13910chmod +x $CONFIG_STATUS
ad6254c5
AK
13911ac_clean_files=$ac_clean_files_save
13912
ec6a6fbe
AK
13913test $ac_write_fail = 0 ||
13914 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
13915$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
13916 { (exit 1); exit 1; }; }
13917
ad6254c5
AK
13918
13919# configure is writing to config.log, and then calls config.status.
13920# config.status does its own redirection, appending to config.log.
13921# Unfortunately, on DOS this fails, as config.log is still kept open
13922# by configure, so config.status won't be able to write to it; its
13923# output is simply discarded. So we exec the FD to /dev/null,
13924# effectively closing config.log, so it can be properly (re)opened and
13925# appended to by config.status. When coming back to configure, we
13926# need to make the FD available again.
13927if test "$no_create" != yes; then
13928 ac_cs_success=:
13929 ac_config_status_args=
13930 test "$silent" = yes &&
13931 ac_config_status_args="$ac_config_status_args --quiet"
13932 exec 5>/dev/null
13933 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13934 exec 5>>config.log
13935 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13936 # would make configure fail if this is the last instruction.
13937 $ac_cs_success || { (exit 1); exit 1; }
13938fi
ec6a6fbe
AK
13939if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13940 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13941$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13942fi
795ca3e5 13943
2dc95e1c
AK
13944
13945if test x$ODIRECT != xyes; then
ec6a6fbe
AK
13946 { $as_echo "$as_me:$LINENO: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5
13947$as_echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;}
2dc95e1c 13948fi
This page took 1.801518 seconds and 5 git commands to generate.