]> sourceware.org Git - lvm2.git/blame - configure
Rename liblvm to liblvm-internal.
[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*)
8ce0cbda
AK
2132 COPTIMISE_FLAG="-O2"
2133 CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym"
2134 CLDWHOLEARCHIVE="-Wl,-whole-archive"
2135 CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive"
2136 LDDEPS="$LDDEPS .export.sym"
2137 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
d0191583 2138 LIB_SUFFIX=so
8ce0cbda
AK
2139 DEVMAPPER=yes
2140 ODIRECT=yes
d0191583 2141 DM_IOCTLS=yes
8ce0cbda 2142 SELINUX=yes
8b1a3214 2143 REALTIME=yes
8ce0cbda 2144 CLUSTER=internal
93bd259b 2145 FSADM=yes
d0191583 2146 ;;
8ce0cbda
AK
2147 darwin*)
2148 CFLAGS="$CFLAGS -no-cpp-precomp -fno-common"
2149 COPTIMISE_FLAG="-O2"
2150 CLDFLAGS="$CLDFLAGS"
2151 CLDWHOLEARCHIVE="-all_load"
2152 CLDNOWHOLEARCHIVE=
d0191583 2153 LIB_SUFFIX=dylib
a653923f 2154 DEVMAPPER=yes
8ce0cbda 2155 ODIRECT=no
d0191583 2156 DM_IOCTLS=no
8ce0cbda 2157 SELINUX=no
8b1a3214 2158 REALTIME=no
8ce0cbda 2159 CLUSTER=none
d0191583
JM
2160 FSADM=no
2161 ;;
8ce0cbda
AK
2162esac
2163
80992638 2164################################################################################
ec6a6fbe
AK
2165{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
2166$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5951ef33 2167if test "${ac_cv_path_SED+set}" = set; then
ec6a6fbe 2168 $as_echo_n "(cached) " >&6
5951ef33
AK
2169else
2170 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2171 for ac_i in 1 2 3 4 5 6 7; do
2172 ac_script="$ac_script$as_nl$ac_script"
2173 done
ec6a6fbe 2174 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5951ef33 2175 $as_unset ac_script || ac_script=
ec6a6fbe 2176 if test -z "$SED"; then
5951ef33 2177 ac_path_SED_found=false
ec6a6fbe
AK
2178 # Loop through the user's path and test for each of PROGNAME-LIST
2179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5951ef33
AK
2180for as_dir in $PATH
2181do
2182 IFS=$as_save_IFS
2183 test -z "$as_dir" && as_dir=.
2184 for ac_prog in sed gsed; do
ec6a6fbe
AK
2185 for ac_exec_ext in '' $ac_executable_extensions; do
2186 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2187 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2188# Check for GNU ac_path_SED and select it if it is found.
5951ef33
AK
2189 # Check for GNU $ac_path_SED
2190case `"$ac_path_SED" --version 2>&1` in
2191*GNU*)
2192 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2193*)
2194 ac_count=0
ec6a6fbe 2195 $as_echo_n 0123456789 >"conftest.in"
5951ef33
AK
2196 while :
2197 do
2198 cat "conftest.in" "conftest.in" >"conftest.tmp"
2199 mv "conftest.tmp" "conftest.in"
2200 cp "conftest.in" "conftest.nl"
ec6a6fbe 2201 $as_echo '' >> "conftest.nl"
5951ef33
AK
2202 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2203 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2204 ac_count=`expr $ac_count + 1`
2205 if test $ac_count -gt ${ac_path_SED_max-0}; then
2206 # Best one so far, save it but keep looking for a better one
2207 ac_cv_path_SED="$ac_path_SED"
2208 ac_path_SED_max=$ac_count
2209 fi
2210 # 10*(2^10) chars as input seems more than enough
2211 test $ac_count -gt 10 && break
2212 done
2213 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2214esac
2215
ec6a6fbe
AK
2216 $ac_path_SED_found && break 3
2217 done
5951ef33
AK
2218 done
2219done
5951ef33 2220IFS=$as_save_IFS
ec6a6fbe
AK
2221 if test -z "$ac_cv_path_SED"; then
2222 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
2223$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
5951ef33 2224 { (exit 1); exit 1; }; }
ec6a6fbe 2225 fi
5951ef33
AK
2226else
2227 ac_cv_path_SED=$SED
2228fi
2229
2230fi
ec6a6fbe
AK
2231{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
2232$as_echo "$ac_cv_path_SED" >&6; }
5951ef33
AK
2233 SED="$ac_cv_path_SED"
2234 rm -f conftest.sed
2235
ad6254c5 2236for ac_prog in gawk mawk nawk awk
795ca3e5 2237do
ad6254c5 2238 # Extract the first word of "$ac_prog", so it can be a program name with args.
795ca3e5 2239set dummy $ac_prog; ac_word=$2
ec6a6fbe
AK
2240{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2241$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2242if test "${ac_cv_prog_AWK+set}" = set; then
ec6a6fbe 2243 $as_echo_n "(cached) " >&6
795ca3e5
AK
2244else
2245 if test -n "$AWK"; then
2246 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2247else
ad6254c5
AK
2248as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2249for as_dir in $PATH
2250do
2251 IFS=$as_save_IFS
2252 test -z "$as_dir" && as_dir=.
2253 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2255 ac_cv_prog_AWK="$ac_prog"
ec6a6fbe 2256 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2257 break 2
2258 fi
2259done
2260done
7a197a62 2261IFS=$as_save_IFS
ad6254c5 2262
795ca3e5
AK
2263fi
2264fi
ad6254c5 2265AWK=$ac_cv_prog_AWK
795ca3e5 2266if test -n "$AWK"; then
ec6a6fbe
AK
2267 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2268$as_echo "$AWK" >&6; }
795ca3e5 2269else
ec6a6fbe
AK
2270 { $as_echo "$as_me:$LINENO: result: no" >&5
2271$as_echo "no" >&6; }
795ca3e5
AK
2272fi
2273
7a197a62 2274
ad6254c5
AK
2275 test -n "$AWK" && break
2276done
2277
2278ac_ext=c
2279ac_cpp='$CPP $CPPFLAGS'
2280ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2281ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2282ac_compiler_gnu=$ac_cv_c_compiler_gnu
2283if test -n "$ac_tool_prefix"; then
2284 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2285set dummy ${ac_tool_prefix}gcc; ac_word=$2
ec6a6fbe
AK
2286{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2287$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2288if test "${ac_cv_prog_CC+set}" = set; then
ec6a6fbe 2289 $as_echo_n "(cached) " >&6
ad6254c5
AK
2290else
2291 if test -n "$CC"; then
2292 ac_cv_prog_CC="$CC" # Let the user override the test.
2293else
2294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2295for as_dir in $PATH
2296do
2297 IFS=$as_save_IFS
2298 test -z "$as_dir" && as_dir=.
2299 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2301 ac_cv_prog_CC="${ac_tool_prefix}gcc"
ec6a6fbe 2302 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2303 break 2
2304 fi
2305done
8106cdd5 2306done
7a197a62 2307IFS=$as_save_IFS
8106cdd5 2308
ad6254c5
AK
2309fi
2310fi
2311CC=$ac_cv_prog_CC
2312if test -n "$CC"; then
ec6a6fbe
AK
2313 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2314$as_echo "$CC" >&6; }
ad6254c5 2315else
ec6a6fbe
AK
2316 { $as_echo "$as_me:$LINENO: result: no" >&5
2317$as_echo "no" >&6; }
ad6254c5
AK
2318fi
2319
7a197a62 2320
ad6254c5
AK
2321fi
2322if test -z "$ac_cv_prog_CC"; then
2323 ac_ct_CC=$CC
2324 # Extract the first word of "gcc", so it can be a program name with args.
8106cdd5 2325set dummy gcc; ac_word=$2
ec6a6fbe
AK
2326{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2327$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2328if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
ec6a6fbe 2329 $as_echo_n "(cached) " >&6
ad6254c5
AK
2330else
2331 if test -n "$ac_ct_CC"; then
2332 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2333else
2334as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2335for as_dir in $PATH
2336do
2337 IFS=$as_save_IFS
2338 test -z "$as_dir" && as_dir=.
2339 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2341 ac_cv_prog_ac_ct_CC="gcc"
ec6a6fbe 2342 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2343 break 2
2344 fi
2345done
2346done
7a197a62 2347IFS=$as_save_IFS
ad6254c5
AK
2348
2349fi
2350fi
2351ac_ct_CC=$ac_cv_prog_ac_ct_CC
2352if test -n "$ac_ct_CC"; then
ec6a6fbe
AK
2353 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2354$as_echo "$ac_ct_CC" >&6; }
ad6254c5 2355else
ec6a6fbe
AK
2356 { $as_echo "$as_me:$LINENO: result: no" >&5
2357$as_echo "no" >&6; }
ad6254c5
AK
2358fi
2359
7a197a62
AK
2360 if test "x$ac_ct_CC" = x; then
2361 CC=""
2362 else
2363 case $cross_compiling:$ac_tool_warned in
2364yes:)
ec6a6fbe
AK
2365{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2366$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7a197a62
AK
2367ac_tool_warned=yes ;;
2368esac
2369 CC=$ac_ct_CC
2370 fi
ad6254c5
AK
2371else
2372 CC="$ac_cv_prog_CC"
2373fi
2374
2375if test -z "$CC"; then
7a197a62
AK
2376 if test -n "$ac_tool_prefix"; then
2377 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
ad6254c5 2378set dummy ${ac_tool_prefix}cc; ac_word=$2
ec6a6fbe
AK
2379{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2380$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2381if test "${ac_cv_prog_CC+set}" = set; then
ec6a6fbe 2382 $as_echo_n "(cached) " >&6
8106cdd5
AK
2383else
2384 if test -n "$CC"; then
2385 ac_cv_prog_CC="$CC" # Let the user override the test.
2386else
ad6254c5
AK
2387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2388for as_dir in $PATH
2389do
2390 IFS=$as_save_IFS
2391 test -z "$as_dir" && as_dir=.
2392 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2394 ac_cv_prog_CC="${ac_tool_prefix}cc"
ec6a6fbe 2395 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2396 break 2
2397 fi
2398done
2399done
7a197a62 2400IFS=$as_save_IFS
ad6254c5 2401
8106cdd5
AK
2402fi
2403fi
ad6254c5 2404CC=$ac_cv_prog_CC
8106cdd5 2405if test -n "$CC"; then
ec6a6fbe
AK
2406 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2407$as_echo "$CC" >&6; }
ad6254c5 2408else
ec6a6fbe
AK
2409 { $as_echo "$as_me:$LINENO: result: no" >&5
2410$as_echo "no" >&6; }
ad6254c5
AK
2411fi
2412
8106cdd5 2413
7a197a62 2414 fi
ad6254c5 2415fi
795ca3e5
AK
2416if test -z "$CC"; then
2417 # Extract the first word of "cc", so it can be a program name with args.
2418set dummy cc; ac_word=$2
ec6a6fbe
AK
2419{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2420$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2421if test "${ac_cv_prog_CC+set}" = set; then
ec6a6fbe 2422 $as_echo_n "(cached) " >&6
795ca3e5
AK
2423else
2424 if test -n "$CC"; then
2425 ac_cv_prog_CC="$CC" # Let the user override the test.
2426else
795ca3e5 2427 ac_prog_rejected=no
ad6254c5
AK
2428as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2429for as_dir in $PATH
2430do
2431 IFS=$as_save_IFS
2432 test -z "$as_dir" && as_dir=.
2433 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5
AK
2435 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2436 ac_prog_rejected=yes
2437 continue
2438 fi
2439 ac_cv_prog_CC="cc"
ec6a6fbe 2440 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2441 break 2
2442 fi
2443done
2444done
7a197a62 2445IFS=$as_save_IFS
ad6254c5 2446
795ca3e5
AK
2447if test $ac_prog_rejected = yes; then
2448 # We found a bogon in the path, so make sure we never use it.
2449 set dummy $ac_cv_prog_CC
2450 shift
ad6254c5 2451 if test $# != 0; then
795ca3e5
AK
2452 # We chose a different compiler from the bogus one.
2453 # However, it has the same basename, so the bogon will be chosen
2454 # first if we set CC to just the basename; use the full file name.
2455 shift
ad6254c5 2456 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
795ca3e5
AK
2457 fi
2458fi
2459fi
2460fi
ad6254c5 2461CC=$ac_cv_prog_CC
795ca3e5 2462if test -n "$CC"; then
ec6a6fbe
AK
2463 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2464$as_echo "$CC" >&6; }
795ca3e5 2465else
ec6a6fbe
AK
2466 { $as_echo "$as_me:$LINENO: result: no" >&5
2467$as_echo "no" >&6; }
795ca3e5
AK
2468fi
2469
7a197a62 2470
ad6254c5
AK
2471fi
2472if test -z "$CC"; then
2473 if test -n "$ac_tool_prefix"; then
7a197a62 2474 for ac_prog in cl.exe
ad6254c5
AK
2475 do
2476 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2477set dummy $ac_tool_prefix$ac_prog; ac_word=$2
ec6a6fbe
AK
2478{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2479$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2480if test "${ac_cv_prog_CC+set}" = set; then
ec6a6fbe 2481 $as_echo_n "(cached) " >&6
795ca3e5
AK
2482else
2483 if test -n "$CC"; then
2484 ac_cv_prog_CC="$CC" # Let the user override the test.
2485else
ad6254c5
AK
2486as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2487for as_dir in $PATH
2488do
2489 IFS=$as_save_IFS
2490 test -z "$as_dir" && as_dir=.
2491 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2493 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
ec6a6fbe 2494 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2495 break 2
2496 fi
2497done
2498done
7a197a62 2499IFS=$as_save_IFS
ad6254c5 2500
795ca3e5
AK
2501fi
2502fi
ad6254c5 2503CC=$ac_cv_prog_CC
795ca3e5 2504if test -n "$CC"; then
ec6a6fbe
AK
2505 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2506$as_echo "$CC" >&6; }
795ca3e5 2507else
ec6a6fbe
AK
2508 { $as_echo "$as_me:$LINENO: result: no" >&5
2509$as_echo "no" >&6; }
795ca3e5 2510fi
ad6254c5 2511
7a197a62 2512
ad6254c5
AK
2513 test -n "$CC" && break
2514 done
2515fi
2516if test -z "$CC"; then
2517 ac_ct_CC=$CC
7a197a62 2518 for ac_prog in cl.exe
ad6254c5
AK
2519do
2520 # Extract the first word of "$ac_prog", so it can be a program name with args.
2521set dummy $ac_prog; ac_word=$2
ec6a6fbe
AK
2522{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2523$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2524if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
ec6a6fbe 2525 $as_echo_n "(cached) " >&6
ad6254c5
AK
2526else
2527 if test -n "$ac_ct_CC"; then
2528 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2529else
2530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2531for as_dir in $PATH
2532do
2533 IFS=$as_save_IFS
2534 test -z "$as_dir" && as_dir=.
2535 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2537 ac_cv_prog_ac_ct_CC="$ac_prog"
ec6a6fbe 2538 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5 2539 break 2
795ca3e5 2540 fi
ad6254c5
AK
2541done
2542done
7a197a62 2543IFS=$as_save_IFS
ad6254c5
AK
2544
2545fi
2546fi
2547ac_ct_CC=$ac_cv_prog_ac_ct_CC
2548if test -n "$ac_ct_CC"; then
ec6a6fbe
AK
2549 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2550$as_echo "$ac_ct_CC" >&6; }
ad6254c5 2551else
ec6a6fbe
AK
2552 { $as_echo "$as_me:$LINENO: result: no" >&5
2553$as_echo "no" >&6; }
795ca3e5
AK
2554fi
2555
7a197a62 2556
ad6254c5
AK
2557 test -n "$ac_ct_CC" && break
2558done
795ca3e5 2559
7a197a62
AK
2560 if test "x$ac_ct_CC" = x; then
2561 CC=""
2562 else
2563 case $cross_compiling:$ac_tool_warned in
2564yes:)
ec6a6fbe
AK
2565{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2566$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7a197a62
AK
2567ac_tool_warned=yes ;;
2568esac
2569 CC=$ac_ct_CC
2570 fi
ad6254c5
AK
2571fi
2572
2573fi
2574
2575
ec6a6fbe
AK
2576test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2577$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2578{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
ad6254c5 2579See \`config.log' for more details." >&5
ec6a6fbe 2580$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
ad6254c5 2581See \`config.log' for more details." >&2;}
ec6a6fbe 2582 { (exit 1); exit 1; }; }; }
ad6254c5
AK
2583
2584# Provide some information about the compiler.
ec6a6fbe
AK
2585$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2586set X $ac_compile
2587ac_compiler=$2
7a197a62
AK
2588{ (ac_try="$ac_compiler --version >&5"
2589case "(($ac_try" in
2590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2591 *) ac_try_echo=$ac_try;;
2592esac
ec6a6fbe
AK
2593eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2594$as_echo "$ac_try_echo") >&5
7a197a62 2595 (eval "$ac_compiler --version >&5") 2>&5
ad6254c5 2596 ac_status=$?
ec6a6fbe 2597 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2598 (exit $ac_status); }
7a197a62
AK
2599{ (ac_try="$ac_compiler -v >&5"
2600case "(($ac_try" in
2601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2602 *) ac_try_echo=$ac_try;;
2603esac
ec6a6fbe
AK
2604eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2605$as_echo "$ac_try_echo") >&5
7a197a62 2606 (eval "$ac_compiler -v >&5") 2>&5
ad6254c5 2607 ac_status=$?
ec6a6fbe 2608 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2609 (exit $ac_status); }
7a197a62
AK
2610{ (ac_try="$ac_compiler -V >&5"
2611case "(($ac_try" in
2612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2613 *) ac_try_echo=$ac_try;;
2614esac
ec6a6fbe
AK
2615eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2616$as_echo "$ac_try_echo") >&5
7a197a62 2617 (eval "$ac_compiler -V >&5") 2>&5
ad6254c5 2618 ac_status=$?
ec6a6fbe 2619 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
2620 (exit $ac_status); }
2621
2622cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2623/* confdefs.h. */
2624_ACEOF
2625cat confdefs.h >>conftest.$ac_ext
2626cat >>conftest.$ac_ext <<_ACEOF
2627/* end confdefs.h. */
2628
2629int
2630main ()
2631{
2632
2633 ;
2634 return 0;
2635}
2636_ACEOF
2637ac_clean_files_save=$ac_clean_files
ec6a6fbe 2638ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
ad6254c5
AK
2639# Try to create an executable without -o first, disregard a.out.
2640# It will help us diagnose broken compilers, and finding out an intuition
2641# of exeext.
ec6a6fbe
AK
2642{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2643$as_echo_n "checking for C compiler default output file name... " >&6; }
2644ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2645
2646# The possible output files:
2647ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2648
7a197a62
AK
2649ac_rmfiles=
2650for ac_file in $ac_files
2651do
2652 case $ac_file in
ec6a6fbe 2653 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
7a197a62
AK
2654 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2655 esac
2656done
2657rm -f $ac_rmfiles
2658
2659if { (ac_try="$ac_link_default"
2660case "(($ac_try" in
2661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2662 *) ac_try_echo=$ac_try;;
2663esac
ec6a6fbe
AK
2664eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2665$as_echo "$ac_try_echo") >&5
7a197a62 2666 (eval "$ac_link_default") 2>&5
ad6254c5 2667 ac_status=$?
ec6a6fbe 2668 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2669 (exit $ac_status); }; then
7a197a62
AK
2670 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2671# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2672# in a Makefile. We should not override ac_cv_exeext if it was cached,
2673# so that the user can short-circuit this test for compilers unknown to
2674# Autoconf.
25fbec5b 2675for ac_file in $ac_files ''
ad6254c5
AK
2676do
2677 test -f "$ac_file" || continue
2678 case $ac_file in
ec6a6fbe 2679 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
8a2fc586 2680 ;;
ad6254c5 2681 [ab].out )
8a2fc586
AK
2682 # We found the default executable, but exeext='' is most
2683 # certainly right.
2684 break;;
ad6254c5 2685 *.* )
7a197a62
AK
2686 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2687 then :; else
2688 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2689 fi
2690 # We set ac_cv_exeext here because the later test for it is not
2691 # safe: cross compilers may not add the suffix if given an `-o'
2692 # argument, so we may need to know it at that point already.
2693 # Even if this section looks crufty: it has the advantage of
2694 # actually working.
8a2fc586 2695 break;;
ad6254c5 2696 * )
8a2fc586 2697 break;;
ad6254c5
AK
2698 esac
2699done
7a197a62
AK
2700test "$ac_cv_exeext" = no && ac_cv_exeext=
2701
ad6254c5 2702else
25fbec5b
AK
2703 ac_file=''
2704fi
2705
ec6a6fbe
AK
2706{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2707$as_echo "$ac_file" >&6; }
25fbec5b 2708if test -z "$ac_file"; then
ec6a6fbe 2709 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
2710sed 's/^/| /' conftest.$ac_ext >&5
2711
ec6a6fbe
AK
2712{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2713$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2714{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
ad6254c5 2715See \`config.log' for more details." >&5
ec6a6fbe 2716$as_echo "$as_me: error: C compiler cannot create executables
ad6254c5 2717See \`config.log' for more details." >&2;}
ec6a6fbe 2718 { (exit 77); exit 77; }; }; }
ad6254c5
AK
2719fi
2720
2721ac_exeext=$ac_cv_exeext
ad6254c5 2722
7a197a62 2723# Check that the compiler produces executables we can run. If not, either
ad6254c5 2724# the compiler is broken, or we cross compile.
ec6a6fbe
AK
2725{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2726$as_echo_n "checking whether the C compiler works... " >&6; }
ad6254c5
AK
2727# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2728# If not cross compiling, check that we can run a simple program.
2729if test "$cross_compiling" != yes; then
2730 if { ac_try='./$ac_file'
7a197a62
AK
2731 { (case "(($ac_try" in
2732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2733 *) ac_try_echo=$ac_try;;
2734esac
ec6a6fbe
AK
2735eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2736$as_echo "$ac_try_echo") >&5
7a197a62 2737 (eval "$ac_try") 2>&5
ad6254c5 2738 ac_status=$?
ec6a6fbe 2739 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
2740 (exit $ac_status); }; }; then
2741 cross_compiling=no
795ca3e5 2742 else
ad6254c5
AK
2743 if test "$cross_compiling" = maybe; then
2744 cross_compiling=yes
2745 else
ec6a6fbe
AK
2746 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2747$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2748{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
ad6254c5
AK
2749If you meant to cross compile, use \`--host'.
2750See \`config.log' for more details." >&5
ec6a6fbe 2751$as_echo "$as_me: error: cannot run C compiled programs.
ad6254c5
AK
2752If you meant to cross compile, use \`--host'.
2753See \`config.log' for more details." >&2;}
ec6a6fbe 2754 { (exit 1); exit 1; }; }; }
ad6254c5 2755 fi
795ca3e5 2756 fi
80992638 2757fi
ec6a6fbe
AK
2758{ $as_echo "$as_me:$LINENO: result: yes" >&5
2759$as_echo "yes" >&6; }
ad6254c5 2760
ec6a6fbe 2761rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
ad6254c5 2762ac_clean_files=$ac_clean_files_save
7a197a62 2763# Check that the compiler produces executables we can run. If not, either
ad6254c5 2764# the compiler is broken, or we cross compile.
ec6a6fbe
AK
2765{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2766$as_echo_n "checking whether we are cross compiling... " >&6; }
2767{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2768$as_echo "$cross_compiling" >&6; }
7a197a62 2769
ec6a6fbe
AK
2770{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2771$as_echo_n "checking for suffix of executables... " >&6; }
7a197a62
AK
2772if { (ac_try="$ac_link"
2773case "(($ac_try" in
2774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2775 *) ac_try_echo=$ac_try;;
2776esac
ec6a6fbe
AK
2777eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2778$as_echo "$ac_try_echo") >&5
7a197a62 2779 (eval "$ac_link") 2>&5
ad6254c5 2780 ac_status=$?
ec6a6fbe 2781 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
2782 (exit $ac_status); }; then
2783 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2784# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2785# work properly (i.e., refer to `conftest.exe'), while it won't with
2786# `rm'.
2787for ac_file in conftest.exe conftest conftest.*; do
2788 test -f "$ac_file" || continue
2789 case $ac_file in
ec6a6fbe 2790 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
ad6254c5 2791 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
8a2fc586 2792 break;;
ad6254c5
AK
2793 * ) break;;
2794 esac
2795done
80992638 2796else
ec6a6fbe
AK
2797 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2798$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2799{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
ad6254c5 2800See \`config.log' for more details." >&5
ec6a6fbe 2801$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
ad6254c5 2802See \`config.log' for more details." >&2;}
ec6a6fbe 2803 { (exit 1); exit 1; }; }; }
ad6254c5
AK
2804fi
2805
2806rm -f conftest$ac_cv_exeext
ec6a6fbe
AK
2807{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2808$as_echo "$ac_cv_exeext" >&6; }
ad6254c5
AK
2809
2810rm -f conftest.$ac_ext
2811EXEEXT=$ac_cv_exeext
2812ac_exeext=$EXEEXT
ec6a6fbe
AK
2813{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2814$as_echo_n "checking for suffix of object files... " >&6; }
ad6254c5 2815if test "${ac_cv_objext+set}" = set; then
ec6a6fbe 2816 $as_echo_n "(cached) " >&6
795ca3e5 2817else
ad6254c5 2818 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2819/* confdefs.h. */
2820_ACEOF
2821cat confdefs.h >>conftest.$ac_ext
2822cat >>conftest.$ac_ext <<_ACEOF
2823/* end confdefs.h. */
2824
2825int
2826main ()
2827{
2828
2829 ;
2830 return 0;
2831}
2832_ACEOF
2833rm -f conftest.o conftest.obj
7a197a62
AK
2834if { (ac_try="$ac_compile"
2835case "(($ac_try" in
2836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2837 *) ac_try_echo=$ac_try;;
2838esac
ec6a6fbe
AK
2839eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2840$as_echo "$ac_try_echo") >&5
7a197a62 2841 (eval "$ac_compile") 2>&5
ad6254c5 2842 ac_status=$?
ec6a6fbe 2843 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2844 (exit $ac_status); }; then
7a197a62
AK
2845 for ac_file in conftest.o conftest.obj conftest.*; do
2846 test -f "$ac_file" || continue;
ad6254c5 2847 case $ac_file in
ec6a6fbe 2848 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
ad6254c5
AK
2849 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2850 break;;
2851 esac
2852done
2853else
ec6a6fbe 2854 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
2855sed 's/^/| /' conftest.$ac_ext >&5
2856
ec6a6fbe
AK
2857{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2858$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2859{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
ad6254c5 2860See \`config.log' for more details." >&5
ec6a6fbe 2861$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
ad6254c5 2862See \`config.log' for more details." >&2;}
ec6a6fbe 2863 { (exit 1); exit 1; }; }; }
ad6254c5
AK
2864fi
2865
2866rm -f conftest.$ac_cv_objext conftest.$ac_ext
2867fi
ec6a6fbe
AK
2868{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2869$as_echo "$ac_cv_objext" >&6; }
ad6254c5
AK
2870OBJEXT=$ac_cv_objext
2871ac_objext=$OBJEXT
ec6a6fbe
AK
2872{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2873$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
ad6254c5 2874if test "${ac_cv_c_compiler_gnu+set}" = set; then
ec6a6fbe 2875 $as_echo_n "(cached) " >&6
ad6254c5
AK
2876else
2877 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2878/* confdefs.h. */
2879_ACEOF
2880cat confdefs.h >>conftest.$ac_ext
2881cat >>conftest.$ac_ext <<_ACEOF
2882/* end confdefs.h. */
2883
2884int
2885main ()
2886{
2887#ifndef __GNUC__
2888 choke me
2889#endif
80992638 2890
ad6254c5
AK
2891 ;
2892 return 0;
2893}
2894_ACEOF
2895rm -f conftest.$ac_objext
7a197a62
AK
2896if { (ac_try="$ac_compile"
2897case "(($ac_try" in
2898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2899 *) ac_try_echo=$ac_try;;
2900esac
ec6a6fbe
AK
2901eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2902$as_echo "$ac_try_echo") >&5
7a197a62 2903 (eval "$ac_compile") 2>conftest.er1
ad6254c5 2904 ac_status=$?
8a2fc586
AK
2905 grep -v '^ *+' conftest.er1 >conftest.err
2906 rm -f conftest.er1
2907 cat conftest.err >&5
ec6a6fbe 2908 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
2909 (exit $ac_status); } && {
2910 test -z "$ac_c_werror_flag" ||
2911 test ! -s conftest.err
2912 } && test -s conftest.$ac_objext; then
ad6254c5 2913 ac_compiler_gnu=yes
80992638 2914else
ec6a6fbe 2915 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
2916sed 's/^/| /' conftest.$ac_ext >&5
2917
7a197a62 2918 ac_compiler_gnu=no
8106cdd5 2919fi
7a197a62
AK
2920
2921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 2922ac_cv_c_compiler_gnu=$ac_compiler_gnu
80992638 2923
ad6254c5 2924fi
ec6a6fbe
AK
2925{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2926$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2927if test $ac_compiler_gnu = yes; then
2928 GCC=yes
2929else
2930 GCC=
2931fi
ad6254c5
AK
2932ac_test_CFLAGS=${CFLAGS+set}
2933ac_save_CFLAGS=$CFLAGS
ec6a6fbe
AK
2934{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2935$as_echo_n "checking whether $CC accepts -g... " >&6; }
ad6254c5 2936if test "${ac_cv_prog_cc_g+set}" = set; then
ec6a6fbe 2937 $as_echo_n "(cached) " >&6
795ca3e5 2938else
7a197a62
AK
2939 ac_save_c_werror_flag=$ac_c_werror_flag
2940 ac_c_werror_flag=yes
2941 ac_cv_prog_cc_g=no
2942 CFLAGS="-g"
2943 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2944/* confdefs.h. */
2945_ACEOF
2946cat confdefs.h >>conftest.$ac_ext
2947cat >>conftest.$ac_ext <<_ACEOF
2948/* end confdefs.h. */
2949
2950int
2951main ()
2952{
2953
2954 ;
2955 return 0;
2956}
2957_ACEOF
2958rm -f conftest.$ac_objext
7a197a62
AK
2959if { (ac_try="$ac_compile"
2960case "(($ac_try" in
2961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2962 *) ac_try_echo=$ac_try;;
2963esac
ec6a6fbe
AK
2964eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2965$as_echo "$ac_try_echo") >&5
7a197a62 2966 (eval "$ac_compile") 2>conftest.er1
ad6254c5 2967 ac_status=$?
8a2fc586
AK
2968 grep -v '^ *+' conftest.er1 >conftest.err
2969 rm -f conftest.er1
2970 cat conftest.err >&5
ec6a6fbe 2971 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
2972 (exit $ac_status); } && {
2973 test -z "$ac_c_werror_flag" ||
2974 test ! -s conftest.err
2975 } && test -s conftest.$ac_objext; then
7a197a62
AK
2976 ac_cv_prog_cc_g=yes
2977else
ec6a6fbe 2978 $as_echo "$as_me: failed program was:" >&5
7a197a62
AK
2979sed 's/^/| /' conftest.$ac_ext >&5
2980
2981 CFLAGS=""
2982 cat >conftest.$ac_ext <<_ACEOF
2983/* confdefs.h. */
2984_ACEOF
2985cat confdefs.h >>conftest.$ac_ext
2986cat >>conftest.$ac_ext <<_ACEOF
2987/* end confdefs.h. */
2988
2989int
2990main ()
2991{
2992
2993 ;
2994 return 0;
2995}
2996_ACEOF
2997rm -f conftest.$ac_objext
2998if { (ac_try="$ac_compile"
2999case "(($ac_try" in
3000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3001 *) ac_try_echo=$ac_try;;
3002esac
ec6a6fbe
AK
3003eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3004$as_echo "$ac_try_echo") >&5
7a197a62 3005 (eval "$ac_compile") 2>conftest.er1
8a2fc586 3006 ac_status=$?
7a197a62
AK
3007 grep -v '^ *+' conftest.er1 >conftest.err
3008 rm -f conftest.er1
3009 cat conftest.err >&5
ec6a6fbe 3010 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
3011 (exit $ac_status); } && {
3012 test -z "$ac_c_werror_flag" ||
3013 test ! -s conftest.err
3014 } && test -s conftest.$ac_objext; then
7a197a62
AK
3015 :
3016else
ec6a6fbe 3017 $as_echo "$as_me: failed program was:" >&5
7a197a62
AK
3018sed 's/^/| /' conftest.$ac_ext >&5
3019
3020 ac_c_werror_flag=$ac_save_c_werror_flag
3021 CFLAGS="-g"
3022 cat >conftest.$ac_ext <<_ACEOF
3023/* confdefs.h. */
3024_ACEOF
3025cat confdefs.h >>conftest.$ac_ext
3026cat >>conftest.$ac_ext <<_ACEOF
3027/* end confdefs.h. */
3028
3029int
3030main ()
3031{
3032
3033 ;
3034 return 0;
3035}
3036_ACEOF
3037rm -f conftest.$ac_objext
3038if { (ac_try="$ac_compile"
3039case "(($ac_try" in
3040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3041 *) ac_try_echo=$ac_try;;
3042esac
ec6a6fbe
AK
3043eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3044$as_echo "$ac_try_echo") >&5
7a197a62 3045 (eval "$ac_compile") 2>conftest.er1
ad6254c5 3046 ac_status=$?
7a197a62
AK
3047 grep -v '^ *+' conftest.er1 >conftest.err
3048 rm -f conftest.er1
3049 cat conftest.err >&5
ec6a6fbe 3050 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
3051 (exit $ac_status); } && {
3052 test -z "$ac_c_werror_flag" ||
3053 test ! -s conftest.err
3054 } && test -s conftest.$ac_objext; then
795ca3e5
AK
3055 ac_cv_prog_cc_g=yes
3056else
ec6a6fbe 3057 $as_echo "$as_me: failed program was:" >&5
ad6254c5 3058sed 's/^/| /' conftest.$ac_ext >&5
80992638 3059
7a197a62
AK
3060
3061fi
3062
3063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3064fi
3065
3066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8106cdd5 3067fi
7a197a62
AK
3068
3069rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3070 ac_c_werror_flag=$ac_save_c_werror_flag
ad6254c5 3071fi
ec6a6fbe
AK
3072{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3073$as_echo "$ac_cv_prog_cc_g" >&6; }
795ca3e5 3074if test "$ac_test_CFLAGS" = set; then
ad6254c5 3075 CFLAGS=$ac_save_CFLAGS
795ca3e5
AK
3076elif test $ac_cv_prog_cc_g = yes; then
3077 if test "$GCC" = yes; then
3078 CFLAGS="-g -O2"
3079 else
3080 CFLAGS="-g"
3081 fi
3082else
3083 if test "$GCC" = yes; then
3084 CFLAGS="-O2"
3085 else
3086 CFLAGS=
3087 fi
3088fi
ec6a6fbe
AK
3089{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3090$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
7a197a62 3091if test "${ac_cv_prog_cc_c89+set}" = set; then
ec6a6fbe 3092 $as_echo_n "(cached) " >&6
ad6254c5 3093else
7a197a62 3094 ac_cv_prog_cc_c89=no
ad6254c5
AK
3095ac_save_CC=$CC
3096cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3097/* confdefs.h. */
3098_ACEOF
3099cat confdefs.h >>conftest.$ac_ext
3100cat >>conftest.$ac_ext <<_ACEOF
3101/* end confdefs.h. */
3102#include <stdarg.h>
3103#include <stdio.h>
3104#include <sys/types.h>
3105#include <sys/stat.h>
3106/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3107struct buf { int x; };
3108FILE * (*rcsopen) (struct buf *, struct stat *, int);
3109static char *e (p, i)
3110 char **p;
3111 int i;
3112{
3113 return p[i];
3114}
3115static char *f (char * (*g) (char **, int), char **p, ...)
3116{
3117 char *s;
3118 va_list v;
3119 va_start (v,p);
3120 s = g (p, va_arg (v,int));
3121 va_end (v);
3122 return s;
3123}
8a2fc586
AK
3124
3125/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3126 function prototypes and stuff, but not '\xHH' hex character constants.
3127 These don't provoke an error unfortunately, instead are silently treated
7a197a62 3128 as 'x'. The following induces an error, until -std is added to get
8a2fc586
AK
3129 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3130 array size at least. It's necessary to write '\x00'==0 to get something
7a197a62 3131 that's true only with -std. */
8a2fc586
AK
3132int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3133
7a197a62
AK
3134/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3135 inside strings and character constants. */
3136#define FOO(x) 'x'
3137int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3138
ad6254c5
AK
3139int test (int i, double x);
3140struct s1 {int (*f) (int a);};
3141struct s2 {int (*f) (double a);};
3142int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3143int argc;
3144char **argv;
3145int
3146main ()
3147{
3148return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3149 ;
3150 return 0;
3151}
3152_ACEOF
7a197a62
AK
3153for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3154 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
ad6254c5
AK
3155do
3156 CC="$ac_save_CC $ac_arg"
3157 rm -f conftest.$ac_objext
7a197a62
AK
3158if { (ac_try="$ac_compile"
3159case "(($ac_try" in
3160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3161 *) ac_try_echo=$ac_try;;
3162esac
ec6a6fbe
AK
3163eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3164$as_echo "$ac_try_echo") >&5
7a197a62 3165 (eval "$ac_compile") 2>conftest.er1
ad6254c5 3166 ac_status=$?
8a2fc586
AK
3167 grep -v '^ *+' conftest.er1 >conftest.err
3168 rm -f conftest.er1
3169 cat conftest.err >&5
ec6a6fbe 3170 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
3171 (exit $ac_status); } && {
3172 test -z "$ac_c_werror_flag" ||
3173 test ! -s conftest.err
3174 } && test -s conftest.$ac_objext; then
7a197a62 3175 ac_cv_prog_cc_c89=$ac_arg
ad6254c5 3176else
ec6a6fbe 3177 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
3178sed 's/^/| /' conftest.$ac_ext >&5
3179
7a197a62 3180
ad6254c5 3181fi
7a197a62
AK
3182
3183rm -f core conftest.err conftest.$ac_objext
3184 test "x$ac_cv_prog_cc_c89" != "xno" && break
ad6254c5 3185done
7a197a62 3186rm -f conftest.$ac_ext
ad6254c5
AK
3187CC=$ac_save_CC
3188
3189fi
7a197a62
AK
3190# AC_CACHE_VAL
3191case "x$ac_cv_prog_cc_c89" in
3192 x)
ec6a6fbe
AK
3193 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3194$as_echo "none needed" >&6; } ;;
7a197a62 3195 xno)
ec6a6fbe
AK
3196 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3197$as_echo "unsupported" >&6; } ;;
ad6254c5 3198 *)
7a197a62 3199 CC="$CC $ac_cv_prog_cc_c89"
ec6a6fbe
AK
3200 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3201$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
ad6254c5
AK
3202esac
3203
ad6254c5 3204
ad6254c5
AK
3205ac_ext=c
3206ac_cpp='$CPP $CPPFLAGS'
3207ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3208ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3209ac_compiler_gnu=$ac_cv_c_compiler_gnu
795ca3e5 3210
d0191583
JM
3211
3212
3213ac_ext=c
3214ac_cpp='$CPP $CPPFLAGS'
3215ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3216ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3217ac_compiler_gnu=$ac_cv_c_compiler_gnu
ec6a6fbe
AK
3218{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3219$as_echo_n "checking how to run the C preprocessor... " >&6; }
d0191583
JM
3220# On Suns, sometimes $CPP names a directory.
3221if test -n "$CPP" && test -d "$CPP"; then
3222 CPP=
3223fi
3224if test -z "$CPP"; then
3225 if test "${ac_cv_prog_CPP+set}" = set; then
ec6a6fbe 3226 $as_echo_n "(cached) " >&6
ad6254c5 3227else
d0191583
JM
3228 # Double quotes because CPP needs to be expanded
3229 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3230 do
3231 ac_preproc_ok=false
3232for ac_c_preproc_warn_flag in '' yes
ad6254c5 3233do
d0191583
JM
3234 # Use a header file that comes with gcc, so configuring glibc
3235 # with a fresh cross-compiler works.
3236 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3237 # <limits.h> exists even on freestanding compilers.
3238 # On the NeXT, cc -E runs the code through the compiler's parser,
3239 # not just through cpp. "Syntax error" is here to catch this case.
3240 cat >conftest.$ac_ext <<_ACEOF
3241/* confdefs.h. */
3242_ACEOF
3243cat confdefs.h >>conftest.$ac_ext
3244cat >>conftest.$ac_ext <<_ACEOF
3245/* end confdefs.h. */
3246#ifdef __STDC__
3247# include <limits.h>
3248#else
3249# include <assert.h>
3250#endif
3251 Syntax error
3252_ACEOF
3253if { (ac_try="$ac_cpp conftest.$ac_ext"
3254case "(($ac_try" in
3255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3256 *) ac_try_echo=$ac_try;;
ad6254c5 3257esac
ec6a6fbe
AK
3258eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3259$as_echo "$ac_try_echo") >&5
d0191583
JM
3260 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3261 ac_status=$?
3262 grep -v '^ *+' conftest.er1 >conftest.err
3263 rm -f conftest.er1
3264 cat conftest.err >&5
ec6a6fbe 3265 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3266 (exit $ac_status); } >/dev/null && {
3267 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3268 test ! -s conftest.err
3269 }; then
3270 :
3271else
ec6a6fbe 3272 $as_echo "$as_me: failed program was:" >&5
d0191583 3273sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 3274
d0191583
JM
3275 # Broken: fails on valid input.
3276continue
795ca3e5 3277fi
795ca3e5 3278
d0191583 3279rm -f conftest.err conftest.$ac_ext
795ca3e5 3280
d0191583
JM
3281 # OK, works on sane cases. Now check whether nonexistent headers
3282 # can be detected and how.
3283 cat >conftest.$ac_ext <<_ACEOF
3284/* confdefs.h. */
3285_ACEOF
3286cat confdefs.h >>conftest.$ac_ext
3287cat >>conftest.$ac_ext <<_ACEOF
3288/* end confdefs.h. */
3289#include <ac_nonexistent.h>
3290_ACEOF
3291if { (ac_try="$ac_cpp conftest.$ac_ext"
3292case "(($ac_try" in
3293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3294 *) ac_try_echo=$ac_try;;
3295esac
ec6a6fbe
AK
3296eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3297$as_echo "$ac_try_echo") >&5
d0191583
JM
3298 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3299 ac_status=$?
3300 grep -v '^ *+' conftest.er1 >conftest.err
3301 rm -f conftest.er1
3302 cat conftest.err >&5
ec6a6fbe 3303 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3304 (exit $ac_status); } >/dev/null && {
3305 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3306 test ! -s conftest.err
3307 }; then
3308 # Broken: success on invalid input.
3309continue
3310else
ec6a6fbe 3311 $as_echo "$as_me: failed program was:" >&5
d0191583 3312sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 3313
d0191583
JM
3314 # Passes both tests.
3315ac_preproc_ok=:
3316break
3317fi
795ca3e5 3318
d0191583
JM
3319rm -f conftest.err conftest.$ac_ext
3320
3321done
3322# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3323rm -f conftest.err conftest.$ac_ext
3324if $ac_preproc_ok; then
3325 break
795ca3e5
AK
3326fi
3327
d0191583
JM
3328 done
3329 ac_cv_prog_CPP=$CPP
3330
3331fi
3332 CPP=$ac_cv_prog_CPP
795ca3e5 3333else
d0191583
JM
3334 ac_cv_prog_CPP=$CPP
3335fi
ec6a6fbe
AK
3336{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
3337$as_echo "$CPP" >&6; }
d0191583
JM
3338ac_preproc_ok=false
3339for ac_c_preproc_warn_flag in '' yes
3340do
3341 # Use a header file that comes with gcc, so configuring glibc
3342 # with a fresh cross-compiler works.
3343 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3344 # <limits.h> exists even on freestanding compilers.
3345 # On the NeXT, cc -E runs the code through the compiler's parser,
3346 # not just through cpp. "Syntax error" is here to catch this case.
3347 cat >conftest.$ac_ext <<_ACEOF
3348/* confdefs.h. */
ad6254c5 3349_ACEOF
d0191583
JM
3350cat confdefs.h >>conftest.$ac_ext
3351cat >>conftest.$ac_ext <<_ACEOF
3352/* end confdefs.h. */
3353#ifdef __STDC__
3354# include <limits.h>
3355#else
3356# include <assert.h>
3357#endif
3358 Syntax error
3359_ACEOF
3360if { (ac_try="$ac_cpp conftest.$ac_ext"
3361case "(($ac_try" in
3362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3363 *) ac_try_echo=$ac_try;;
7a197a62 3364esac
ec6a6fbe
AK
3365eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3366$as_echo "$ac_try_echo") >&5
d0191583
JM
3367 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3368 ac_status=$?
3369 grep -v '^ *+' conftest.er1 >conftest.err
3370 rm -f conftest.er1
3371 cat conftest.err >&5
ec6a6fbe 3372 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3373 (exit $ac_status); } >/dev/null && {
3374 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3375 test ! -s conftest.err
3376 }; then
3377 :
795ca3e5 3378else
ec6a6fbe 3379 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
3380sed 's/^/| /' conftest.$ac_ext >&5
3381
3382 # Broken: fails on valid input.
3383continue
795ca3e5
AK
3384fi
3385
d0191583
JM
3386rm -f conftest.err conftest.$ac_ext
3387
3388 # OK, works on sane cases. Now check whether nonexistent headers
3389 # can be detected and how.
3390 cat >conftest.$ac_ext <<_ACEOF
3391/* confdefs.h. */
3392_ACEOF
3393cat confdefs.h >>conftest.$ac_ext
3394cat >>conftest.$ac_ext <<_ACEOF
3395/* end confdefs.h. */
3396#include <ac_nonexistent.h>
3397_ACEOF
3398if { (ac_try="$ac_cpp conftest.$ac_ext"
3399case "(($ac_try" in
3400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3401 *) ac_try_echo=$ac_try;;
3402esac
ec6a6fbe
AK
3403eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3404$as_echo "$ac_try_echo") >&5
d0191583
JM
3405 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3406 ac_status=$?
3407 grep -v '^ *+' conftest.er1 >conftest.err
3408 rm -f conftest.er1
3409 cat conftest.err >&5
ec6a6fbe 3410 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3411 (exit $ac_status); } >/dev/null && {
3412 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3413 test ! -s conftest.err
3414 }; then
3415 # Broken: success on invalid input.
3416continue
795ca3e5 3417else
ec6a6fbe 3418 $as_echo "$as_me: failed program was:" >&5
d0191583 3419sed 's/^/| /' conftest.$ac_ext >&5
ad6254c5 3420
d0191583
JM
3421 # Passes both tests.
3422ac_preproc_ok=:
3423break
795ca3e5 3424fi
d0191583
JM
3425
3426rm -f conftest.err conftest.$ac_ext
3427
3428done
3429# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3430rm -f conftest.err conftest.$ac_ext
3431if $ac_preproc_ok; then
3432 :
8106cdd5 3433else
ec6a6fbe
AK
3434 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3435$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3436{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
d0191583 3437See \`config.log' for more details." >&5
ec6a6fbe 3438$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
d0191583 3439See \`config.log' for more details." >&2;}
ec6a6fbe 3440 { (exit 1); exit 1; }; }; }
8106cdd5
AK
3441fi
3442
d0191583
JM
3443ac_ext=c
3444ac_cpp='$CPP $CPPFLAGS'
3445ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3446ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3447ac_compiler_gnu=$ac_cv_c_compiler_gnu
3448
7a197a62 3449
ec6a6fbe
AK
3450{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3451$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5556819a 3452if test "${ac_cv_path_GREP+set}" = set; then
ec6a6fbe 3453 $as_echo_n "(cached) " >&6
ad6254c5 3454else
ec6a6fbe 3455 if test -z "$GREP"; then
d0191583 3456 ac_path_GREP_found=false
ec6a6fbe
AK
3457 # Loop through the user's path and test for each of PROGNAME-LIST
3458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
d0191583 3459for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
ad6254c5
AK
3460do
3461 IFS=$as_save_IFS
3462 test -z "$as_dir" && as_dir=.
d0191583 3463 for ac_prog in grep ggrep; do
ec6a6fbe
AK
3464 for ac_exec_ext in '' $ac_executable_extensions; do
3465 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3466 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3467# Check for GNU ac_path_GREP and select it if it is found.
d0191583
JM
3468 # Check for GNU $ac_path_GREP
3469case `"$ac_path_GREP" --version 2>&1` in
3470*GNU*)
3471 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3472*)
3473 ac_count=0
ec6a6fbe 3474 $as_echo_n 0123456789 >"conftest.in"
d0191583
JM
3475 while :
3476 do
3477 cat "conftest.in" "conftest.in" >"conftest.tmp"
3478 mv "conftest.tmp" "conftest.in"
3479 cp "conftest.in" "conftest.nl"
ec6a6fbe 3480 $as_echo 'GREP' >> "conftest.nl"
d0191583
JM
3481 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3482 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3483 ac_count=`expr $ac_count + 1`
3484 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3485 # Best one so far, save it but keep looking for a better one
3486 ac_cv_path_GREP="$ac_path_GREP"
3487 ac_path_GREP_max=$ac_count
3488 fi
3489 # 10*(2^10) chars as input seems more than enough
3490 test $ac_count -gt 10 && break
3491 done
3492 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3493esac
3494
ec6a6fbe
AK
3495 $ac_path_GREP_found && break 3
3496 done
d0191583 3497 done
ad6254c5 3498done
7a197a62 3499IFS=$as_save_IFS
ec6a6fbe
AK
3500 if test -z "$ac_cv_path_GREP"; then
3501 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3502$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
d0191583 3503 { (exit 1); exit 1; }; }
ec6a6fbe 3504 fi
80992638 3505else
d0191583 3506 ac_cv_path_GREP=$GREP
8106cdd5 3507fi
8106cdd5 3508
80992638 3509fi
ec6a6fbe
AK
3510{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3511$as_echo "$ac_cv_path_GREP" >&6; }
d0191583 3512 GREP="$ac_cv_path_GREP"
795ca3e5 3513
d0191583 3514
ec6a6fbe
AK
3515{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
3516$as_echo_n "checking for egrep... " >&6; }
d0191583 3517if test "${ac_cv_path_EGREP+set}" = set; then
ec6a6fbe 3518 $as_echo_n "(cached) " >&6
8a2fc586 3519else
d0191583
JM
3520 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3521 then ac_cv_path_EGREP="$GREP -E"
3522 else
ec6a6fbe 3523 if test -z "$EGREP"; then
d0191583 3524 ac_path_EGREP_found=false
ec6a6fbe
AK
3525 # Loop through the user's path and test for each of PROGNAME-LIST
3526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
d0191583 3527for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8a2fc586
AK
3528do
3529 IFS=$as_save_IFS
3530 test -z "$as_dir" && as_dir=.
d0191583 3531 for ac_prog in egrep; do
ec6a6fbe
AK
3532 for ac_exec_ext in '' $ac_executable_extensions; do
3533 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3534 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3535# Check for GNU ac_path_EGREP and select it if it is found.
d0191583
JM
3536 # Check for GNU $ac_path_EGREP
3537case `"$ac_path_EGREP" --version 2>&1` in
3538*GNU*)
3539 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3540*)
3541 ac_count=0
ec6a6fbe 3542 $as_echo_n 0123456789 >"conftest.in"
d0191583
JM
3543 while :
3544 do
3545 cat "conftest.in" "conftest.in" >"conftest.tmp"
3546 mv "conftest.tmp" "conftest.in"
3547 cp "conftest.in" "conftest.nl"
ec6a6fbe 3548 $as_echo 'EGREP' >> "conftest.nl"
d0191583
JM
3549 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3550 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3551 ac_count=`expr $ac_count + 1`
3552 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3553 # Best one so far, save it but keep looking for a better one
3554 ac_cv_path_EGREP="$ac_path_EGREP"
3555 ac_path_EGREP_max=$ac_count
3556 fi
3557 # 10*(2^10) chars as input seems more than enough
3558 test $ac_count -gt 10 && break
3559 done
3560 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8a2fc586 3561esac
8a2fc586 3562
ec6a6fbe
AK
3563 $ac_path_EGREP_found && break 3
3564 done
d0191583 3565 done
8a2fc586 3566done
7a197a62 3567IFS=$as_save_IFS
ec6a6fbe
AK
3568 if test -z "$ac_cv_path_EGREP"; then
3569 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3570$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
d0191583 3571 { (exit 1); exit 1; }; }
ec6a6fbe 3572 fi
d0191583
JM
3573else
3574 ac_cv_path_EGREP=$EGREP
3575fi
ad6254c5 3576
d0191583
JM
3577 fi
3578fi
ec6a6fbe
AK
3579{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3580$as_echo "$ac_cv_path_EGREP" >&6; }
d0191583 3581 EGREP="$ac_cv_path_EGREP"
ad6254c5
AK
3582
3583
d0191583 3584if test $ac_cv_c_compiler_gnu = yes; then
ec6a6fbe
AK
3585 { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3586$as_echo_n "checking whether $CC needs -traditional... " >&6; }
d0191583 3587if test "${ac_cv_prog_gcc_traditional+set}" = set; then
ec6a6fbe 3588 $as_echo_n "(cached) " >&6
8106cdd5 3589else
d0191583 3590 ac_pattern="Autoconf.*'x'"
ad6254c5 3591 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3592/* confdefs.h. */
3593_ACEOF
3594cat confdefs.h >>conftest.$ac_ext
3595cat >>conftest.$ac_ext <<_ACEOF
3596/* end confdefs.h. */
d0191583
JM
3597#include <sgtty.h>
3598Autoconf TIOCGETP
ad6254c5 3599_ACEOF
d0191583
JM
3600if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3601 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3602 ac_cv_prog_gcc_traditional=yes
8106cdd5 3603else
d0191583 3604 ac_cv_prog_gcc_traditional=no
80992638 3605fi
d0191583 3606rm -f conftest*
ad6254c5 3607
8106cdd5 3608
d0191583
JM
3609 if test $ac_cv_prog_gcc_traditional = no; then
3610 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3611/* confdefs.h. */
3612_ACEOF
3613cat confdefs.h >>conftest.$ac_ext
3614cat >>conftest.$ac_ext <<_ACEOF
3615/* end confdefs.h. */
d0191583
JM
3616#include <termio.h>
3617Autoconf TCGETA
ad6254c5 3618_ACEOF
d0191583
JM
3619if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3620 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3621 ac_cv_prog_gcc_traditional=yes
7a197a62 3622fi
d0191583 3623rm -f conftest*
795ca3e5 3624
d0191583 3625 fi
795ca3e5 3626fi
ec6a6fbe
AK
3627{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3628$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
d0191583
JM
3629 if test $ac_cv_prog_gcc_traditional = yes; then
3630 CC="$CC -traditional"
3631 fi
795ca3e5
AK
3632fi
3633
d0191583
JM
3634# Find a good install program. We prefer a C program (faster),
3635# so one script is as good as another. But avoid the broken or
3636# incompatible versions:
3637# SysV /etc/install, /usr/sbin/install
3638# SunOS /usr/etc/install
3639# IRIX /sbin/install
3640# AIX /bin/install
3641# AmigaOS /C/install, which installs bootblocks on floppy discs
3642# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3643# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3644# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3645# OS/2's system install, which has a completely different semantic
3646# ./install, which can be erroneously created by make from ./install.sh.
ec6a6fbe
AK
3647# Reject install programs that cannot install multiple files.
3648{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3649$as_echo_n "checking for a BSD-compatible install... " >&6; }
d0191583
JM
3650if test -z "$INSTALL"; then
3651if test "${ac_cv_path_install+set}" = set; then
ec6a6fbe 3652 $as_echo_n "(cached) " >&6
ad6254c5 3653else
d0191583
JM
3654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3655for as_dir in $PATH
3656do
3657 IFS=$as_save_IFS
3658 test -z "$as_dir" && as_dir=.
3659 # Account for people who put trailing slashes in PATH elements.
3660case $as_dir/ in
3661 ./ | .// | /cC/* | \
3662 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3663 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3664 /usr/ucb/* ) ;;
3665 *)
3666 # OSF1 and SCO ODT 3.0 have their own names for install.
3667 # Don't use installbsd from OSF since it installs stuff as root
3668 # by default.
3669 for ac_prog in ginstall scoinst install; do
3670 for ac_exec_ext in '' $ac_executable_extensions; do
3671 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3672 if test $ac_prog = install &&
3673 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3674 # AIX install. It has an incompatible calling convention.
3675 :
3676 elif test $ac_prog = install &&
3677 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3678 # program-specific install script used by HP pwplus--don't use.
3679 :
3680 else
ec6a6fbe
AK
3681 rm -rf conftest.one conftest.two conftest.dir
3682 echo one > conftest.one
3683 echo two > conftest.two
3684 mkdir conftest.dir
3685 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3686 test -s conftest.one && test -s conftest.two &&
3687 test -s conftest.dir/conftest.one &&
3688 test -s conftest.dir/conftest.two
3689 then
3690 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3691 break 3
3692 fi
d0191583
JM
3693 fi
3694 fi
3695 done
3696 done
3697 ;;
3698esac
ec6a6fbe 3699
d0191583
JM
3700done
3701IFS=$as_save_IFS
80992638 3702
ec6a6fbe 3703rm -rf conftest.one conftest.two conftest.dir
d0191583
JM
3704
3705fi
3706 if test "${ac_cv_path_install+set}" = set; then
3707 INSTALL=$ac_cv_path_install
7a197a62 3708 else
d0191583
JM
3709 # As a last resort, use the slow shell script. Don't cache a
3710 # value for INSTALL within a source directory, because that will
3711 # break other packages using the cache if that directory is
3712 # removed, or if the value is a relative name.
3713 INSTALL=$ac_install_sh
7a197a62 3714 fi
d0191583 3715fi
ec6a6fbe
AK
3716{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3717$as_echo "$INSTALL" >&6; }
ad6254c5 3718
d0191583
JM
3719# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3720# It thinks the first close brace ends the variable substitution.
3721test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
ad6254c5 3722
d0191583 3723test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
80992638 3724
d0191583
JM
3725test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3726
ec6a6fbe
AK
3727{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
3728$as_echo_n "checking whether ln -s works... " >&6; }
d0191583
JM
3729LN_S=$as_ln_s
3730if test "$LN_S" = "ln -s"; then
ec6a6fbe
AK
3731 { $as_echo "$as_me:$LINENO: result: yes" >&5
3732$as_echo "yes" >&6; }
d0191583 3733else
ec6a6fbe
AK
3734 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3735$as_echo "no, using $LN_S" >&6; }
795ca3e5 3736fi
d0191583 3737
ec6a6fbe
AK
3738{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3739$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3740set x ${MAKE-make}
3741ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
d0191583 3742if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 3743 $as_echo_n "(cached) " >&6
7a197a62 3744else
d0191583
JM
3745 cat >conftest.make <<\_ACEOF
3746SHELL = /bin/sh
3747all:
3748 @echo '@@@%%%=$(MAKE)=@@@%%%'
3749_ACEOF
3750# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3751case `${MAKE-make} -f conftest.make 2>/dev/null` in
3752 *@@@%%%=?*=@@@%%%*)
3753 eval ac_cv_prog_make_${ac_make}_set=yes;;
3754 *)
3755 eval ac_cv_prog_make_${ac_make}_set=no;;
3756esac
3757rm -f conftest.make
ad6254c5 3758fi
d0191583 3759if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
ec6a6fbe
AK
3760 { $as_echo "$as_me:$LINENO: result: yes" >&5
3761$as_echo "yes" >&6; }
d0191583
JM
3762 SET_MAKE=
3763else
ec6a6fbe
AK
3764 { $as_echo "$as_me:$LINENO: result: no" >&5
3765$as_echo "no" >&6; }
d0191583 3766 SET_MAKE="MAKE=${MAKE-make}"
795ca3e5 3767fi
8106cdd5 3768
ec6a6fbe
AK
3769{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
3770$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
5556819a
AK
3771if test -z "$MKDIR_P"; then
3772 if test "${ac_cv_path_mkdir+set}" = set; then
ec6a6fbe 3773 $as_echo_n "(cached) " >&6
5556819a
AK
3774else
3775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3776for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3777do
3778 IFS=$as_save_IFS
3779 test -z "$as_dir" && as_dir=.
3780 for ac_prog in mkdir gmkdir; do
3781 for ac_exec_ext in '' $ac_executable_extensions; do
3782 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3783 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3784 'mkdir (GNU coreutils) '* | \
3785 'mkdir (coreutils) '* | \
3786 'mkdir (fileutils) '4.1*)
3787 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3788 break 3;;
3789 esac
3790 done
3791 done
3792done
3793IFS=$as_save_IFS
3794
3795fi
3796
3797 if test "${ac_cv_path_mkdir+set}" = set; then
3798 MKDIR_P="$ac_cv_path_mkdir -p"
3799 else
3800 # As a last resort, use the slow shell script. Don't cache a
3801 # value for MKDIR_P within a source directory, because that will
3802 # break other packages using the cache if that directory is
3803 # removed, or if the value is a relative name.
3804 test -d ./--version && rmdir ./--version
3805 MKDIR_P="$ac_install_sh -d"
3806 fi
3807fi
ec6a6fbe
AK
3808{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
3809$as_echo "$MKDIR_P" >&6; }
5556819a 3810
d0191583
JM
3811if test -n "$ac_tool_prefix"; then
3812 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3813set dummy ${ac_tool_prefix}ranlib; ac_word=$2
ec6a6fbe
AK
3814{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3815$as_echo_n "checking for $ac_word... " >&6; }
d0191583 3816if test "${ac_cv_prog_RANLIB+set}" = set; then
ec6a6fbe 3817 $as_echo_n "(cached) " >&6
d0191583
JM
3818else
3819 if test -n "$RANLIB"; then
3820 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3821else
3822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3823for as_dir in $PATH
3824do
3825 IFS=$as_save_IFS
3826 test -z "$as_dir" && as_dir=.
3827 for ac_exec_ext in '' $ac_executable_extensions; do
3828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3829 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
ec6a6fbe 3830 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
3831 break 2
3832 fi
3833done
3834done
3835IFS=$as_save_IFS
8106cdd5 3836
795ca3e5 3837fi
d0191583
JM
3838fi
3839RANLIB=$ac_cv_prog_RANLIB
3840if test -n "$RANLIB"; then
ec6a6fbe
AK
3841 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
3842$as_echo "$RANLIB" >&6; }
d0191583 3843else
ec6a6fbe
AK
3844 { $as_echo "$as_me:$LINENO: result: no" >&5
3845$as_echo "no" >&6; }
d0191583
JM
3846fi
3847
8106cdd5 3848
ad6254c5 3849fi
d0191583
JM
3850if test -z "$ac_cv_prog_RANLIB"; then
3851 ac_ct_RANLIB=$RANLIB
3852 # Extract the first word of "ranlib", so it can be a program name with args.
3853set dummy ranlib; ac_word=$2
ec6a6fbe
AK
3854{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3855$as_echo_n "checking for $ac_word... " >&6; }
d0191583 3856if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
ec6a6fbe 3857 $as_echo_n "(cached) " >&6
ad6254c5 3858else
d0191583
JM
3859 if test -n "$ac_ct_RANLIB"; then
3860 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3861else
3862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3863for as_dir in $PATH
8106cdd5 3864do
d0191583
JM
3865 IFS=$as_save_IFS
3866 test -z "$as_dir" && as_dir=.
3867 for ac_exec_ext in '' $ac_executable_extensions; do
3868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3869 ac_cv_prog_ac_ct_RANLIB="ranlib"
ec6a6fbe 3870 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
3871 break 2
3872 fi
3873done
3874done
3875IFS=$as_save_IFS
3876
3877fi
3878fi
3879ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3880if test -n "$ac_ct_RANLIB"; then
ec6a6fbe
AK
3881 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3882$as_echo "$ac_ct_RANLIB" >&6; }
ad6254c5 3883else
ec6a6fbe
AK
3884 { $as_echo "$as_me:$LINENO: result: no" >&5
3885$as_echo "no" >&6; }
d0191583 3886fi
ad6254c5 3887
d0191583
JM
3888 if test "x$ac_ct_RANLIB" = x; then
3889 RANLIB=":"
3890 else
3891 case $cross_compiling:$ac_tool_warned in
3892yes:)
ec6a6fbe
AK
3893{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3894$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
d0191583
JM
3895ac_tool_warned=yes ;;
3896esac
3897 RANLIB=$ac_ct_RANLIB
3898 fi
3899else
3900 RANLIB="$ac_cv_prog_RANLIB"
ad6254c5 3901fi
7a197a62 3902
d0191583
JM
3903# Extract the first word of "cflow", so it can be a program name with args.
3904set dummy cflow; ac_word=$2
ec6a6fbe
AK
3905{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3906$as_echo_n "checking for $ac_word... " >&6; }
d0191583 3907if test "${ac_cv_path_CFLOW_CMD+set}" = set; then
ec6a6fbe 3908 $as_echo_n "(cached) " >&6
d0191583
JM
3909else
3910 case $CFLOW_CMD in
3911 [\\/]* | ?:[\\/]*)
3912 ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path.
3913 ;;
3914 *)
3915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3916for as_dir in $PATH
3917do
3918 IFS=$as_save_IFS
3919 test -z "$as_dir" && as_dir=.
3920 for ac_exec_ext in '' $ac_executable_extensions; do
3921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3922 ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 3923 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
3924 break 2
3925 fi
3926done
3927done
3928IFS=$as_save_IFS
ad6254c5 3929
d0191583 3930 ;;
7a197a62 3931esac
d0191583
JM
3932fi
3933CFLOW_CMD=$ac_cv_path_CFLOW_CMD
3934if test -n "$CFLOW_CMD"; then
ec6a6fbe
AK
3935 { $as_echo "$as_me:$LINENO: result: $CFLOW_CMD" >&5
3936$as_echo "$CFLOW_CMD" >&6; }
80992638 3937else
ec6a6fbe
AK
3938 { $as_echo "$as_me:$LINENO: result: no" >&5
3939$as_echo "no" >&6; }
795ca3e5 3940fi
7a197a62 3941
ad6254c5 3942
d0191583
JM
3943# Extract the first word of "cscope", so it can be a program name with args.
3944set dummy cscope; ac_word=$2
ec6a6fbe
AK
3945{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3946$as_echo_n "checking for $ac_word... " >&6; }
d0191583 3947if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then
ec6a6fbe 3948 $as_echo_n "(cached) " >&6
d0191583
JM
3949else
3950 case $CSCOPE_CMD in
3951 [\\/]* | ?:[\\/]*)
3952 ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path.
3953 ;;
3954 *)
3955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3956for as_dir in $PATH
3957do
3958 IFS=$as_save_IFS
3959 test -z "$as_dir" && as_dir=.
3960 for ac_exec_ext in '' $ac_executable_extensions; do
3961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3962 ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 3963 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
3964 break 2
3965 fi
795ca3e5 3966done
d0191583
JM
3967done
3968IFS=$as_save_IFS
795ca3e5 3969
d0191583
JM
3970 ;;
3971esac
ad6254c5 3972fi
d0191583
JM
3973CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD
3974if test -n "$CSCOPE_CMD"; then
ec6a6fbe
AK
3975 { $as_echo "$as_me:$LINENO: result: $CSCOPE_CMD" >&5
3976$as_echo "$CSCOPE_CMD" >&6; }
795ca3e5 3977else
ec6a6fbe
AK
3978 { $as_echo "$as_me:$LINENO: result: no" >&5
3979$as_echo "no" >&6; }
795ca3e5 3980fi
ad6254c5 3981
7a197a62 3982
ad6254c5 3983
d0191583
JM
3984################################################################################
3985
3986
3987
3988
3989
3990ac_header_dirent=no
3991for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
ec6a6fbe
AK
3992 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
3993{ $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
3994$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
d0191583 3995if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 3996 $as_echo_n "(cached) " >&6
d0191583 3997else
ad6254c5 3998 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3999/* confdefs.h. */
4000_ACEOF
4001cat confdefs.h >>conftest.$ac_ext
4002cat >>conftest.$ac_ext <<_ACEOF
4003/* end confdefs.h. */
d0191583
JM
4004#include <sys/types.h>
4005#include <$ac_hdr>
4006
4007int
4008main ()
4009{
4010if ((DIR *) 0)
4011return 0;
4012 ;
4013 return 0;
4014}
ad6254c5 4015_ACEOF
d0191583
JM
4016rm -f conftest.$ac_objext
4017if { (ac_try="$ac_compile"
7a197a62
AK
4018case "(($ac_try" in
4019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4020 *) ac_try_echo=$ac_try;;
4021esac
ec6a6fbe
AK
4022eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4023$as_echo "$ac_try_echo") >&5
d0191583 4024 (eval "$ac_compile") 2>conftest.er1
ad6254c5
AK
4025 ac_status=$?
4026 grep -v '^ *+' conftest.er1 >conftest.err
4027 rm -f conftest.er1
4028 cat conftest.err >&5
ec6a6fbe 4029 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4030 (exit $ac_status); } && {
4031 test -z "$ac_c_werror_flag" ||
25fbec5b 4032 test ! -s conftest.err
d0191583
JM
4033 } && test -s conftest.$ac_objext; then
4034 eval "$as_ac_Header=yes"
ad6254c5 4035else
ec6a6fbe 4036 $as_echo "$as_me: failed program was:" >&5
ad6254c5 4037sed 's/^/| /' conftest.$ac_ext >&5
8106cdd5 4038
d0191583 4039 eval "$as_ac_Header=no"
795ca3e5 4040fi
7a197a62 4041
d0191583 4042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
795ca3e5 4043fi
ec6a6fbe
AK
4044ac_res=`eval 'as_val=${'$as_ac_Header'}
4045 $as_echo "$as_val"'`
4046 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4047$as_echo "$ac_res" >&6; }
4048as_val=`eval 'as_val=${'$as_ac_Header'}
4049 $as_echo "$as_val"'`
4050 if test "x$as_val" = x""yes; then
d0191583 4051 cat >>confdefs.h <<_ACEOF
ec6a6fbe 4052#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
d0191583 4053_ACEOF
795ca3e5 4054
d0191583
JM
4055ac_header_dirent=$ac_hdr; break
4056fi
ad6254c5 4057
d0191583
JM
4058done
4059# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4060if test $ac_header_dirent = dirent.h; then
ec6a6fbe
AK
4061 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
4062$as_echo_n "checking for library containing opendir... " >&6; }
d0191583 4063if test "${ac_cv_search_opendir+set}" = set; then
ec6a6fbe 4064 $as_echo_n "(cached) " >&6
ad6254c5 4065else
d0191583
JM
4066 ac_func_search_save_LIBS=$LIBS
4067cat >conftest.$ac_ext <<_ACEOF
4068/* confdefs.h. */
4069_ACEOF
4070cat confdefs.h >>conftest.$ac_ext
4071cat >>conftest.$ac_ext <<_ACEOF
4072/* end confdefs.h. */
ad6254c5 4073
d0191583
JM
4074/* Override any GCC internal prototype to avoid an error.
4075 Use char because int might match the return type of a GCC
4076 builtin and then its argument prototype would still apply. */
4077#ifdef __cplusplus
4078extern "C"
4079#endif
4080char opendir ();
4081int
4082main ()
4083{
4084return opendir ();
4085 ;
4086 return 0;
4087}
4088_ACEOF
4089for ac_lib in '' dir; do
4090 if test -z "$ac_lib"; then
4091 ac_res="none required"
4092 else
4093 ac_res=-l$ac_lib
4094 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4095 fi
4096 rm -f conftest.$ac_objext conftest$ac_exeext
4097if { (ac_try="$ac_link"
4098case "(($ac_try" in
4099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4100 *) ac_try_echo=$ac_try;;
4101esac
ec6a6fbe
AK
4102eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4103$as_echo "$ac_try_echo") >&5
d0191583
JM
4104 (eval "$ac_link") 2>conftest.er1
4105 ac_status=$?
4106 grep -v '^ *+' conftest.er1 >conftest.err
4107 rm -f conftest.er1
4108 cat conftest.err >&5
ec6a6fbe 4109 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4110 (exit $ac_status); } && {
4111 test -z "$ac_c_werror_flag" ||
4112 test ! -s conftest.err
ec6a6fbe
AK
4113 } && test -s conftest$ac_exeext && {
4114 test "$cross_compiling" = yes ||
4115 $as_test_x conftest$ac_exeext
4116 }; then
d0191583
JM
4117 ac_cv_search_opendir=$ac_res
4118else
ec6a6fbe 4119 $as_echo "$as_me: failed program was:" >&5
d0191583 4120sed 's/^/| /' conftest.$ac_ext >&5
ad6254c5 4121
ad6254c5 4122
795ca3e5 4123fi
ad6254c5 4124
ec6a6fbe 4125rm -rf conftest.dSYM
d0191583
JM
4126rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4127 conftest$ac_exeext
4128 if test "${ac_cv_search_opendir+set}" = set; then
4129 break
7a197a62 4130fi
d0191583
JM
4131done
4132if test "${ac_cv_search_opendir+set}" = set; then
4133 :
7a197a62 4134else
d0191583 4135 ac_cv_search_opendir=no
7a197a62 4136fi
d0191583
JM
4137rm conftest.$ac_ext
4138LIBS=$ac_func_search_save_LIBS
7a197a62 4139fi
ec6a6fbe
AK
4140{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4141$as_echo "$ac_cv_search_opendir" >&6; }
d0191583
JM
4142ac_res=$ac_cv_search_opendir
4143if test "$ac_res" != no; then
4144 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7a197a62 4145
d0191583 4146fi
7a197a62 4147
7a197a62 4148else
ec6a6fbe
AK
4149 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
4150$as_echo_n "checking for library containing opendir... " >&6; }
d0191583 4151if test "${ac_cv_search_opendir+set}" = set; then
ec6a6fbe 4152 $as_echo_n "(cached) " >&6
7a197a62 4153else
d0191583
JM
4154 ac_func_search_save_LIBS=$LIBS
4155cat >conftest.$ac_ext <<_ACEOF
4156/* confdefs.h. */
4157_ACEOF
4158cat confdefs.h >>conftest.$ac_ext
4159cat >>conftest.$ac_ext <<_ACEOF
4160/* end confdefs.h. */
7a197a62 4161
d0191583
JM
4162/* Override any GCC internal prototype to avoid an error.
4163 Use char because int might match the return type of a GCC
4164 builtin and then its argument prototype would still apply. */
4165#ifdef __cplusplus
4166extern "C"
4167#endif
4168char opendir ();
4169int
4170main ()
4171{
4172return opendir ();
4173 ;
4174 return 0;
4175}
4176_ACEOF
4177for ac_lib in '' x; do
4178 if test -z "$ac_lib"; then
4179 ac_res="none required"
4180 else
4181 ac_res=-l$ac_lib
4182 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4183 fi
4184 rm -f conftest.$ac_objext conftest$ac_exeext
4185if { (ac_try="$ac_link"
4186case "(($ac_try" in
4187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4188 *) ac_try_echo=$ac_try;;
4189esac
ec6a6fbe
AK
4190eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4191$as_echo "$ac_try_echo") >&5
d0191583
JM
4192 (eval "$ac_link") 2>conftest.er1
4193 ac_status=$?
4194 grep -v '^ *+' conftest.er1 >conftest.err
4195 rm -f conftest.er1
4196 cat conftest.err >&5
ec6a6fbe 4197 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4198 (exit $ac_status); } && {
4199 test -z "$ac_c_werror_flag" ||
4200 test ! -s conftest.err
ec6a6fbe
AK
4201 } && test -s conftest$ac_exeext && {
4202 test "$cross_compiling" = yes ||
4203 $as_test_x conftest$ac_exeext
4204 }; then
d0191583
JM
4205 ac_cv_search_opendir=$ac_res
4206else
ec6a6fbe 4207 $as_echo "$as_me: failed program was:" >&5
d0191583 4208sed 's/^/| /' conftest.$ac_ext >&5
7a197a62
AK
4209
4210
4211fi
4212
ec6a6fbe 4213rm -rf conftest.dSYM
d0191583
JM
4214rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4215 conftest$ac_exeext
4216 if test "${ac_cv_search_opendir+set}" = set; then
4217 break
7a197a62 4218fi
d0191583
JM
4219done
4220if test "${ac_cv_search_opendir+set}" = set; then
4221 :
7a197a62 4222else
d0191583 4223 ac_cv_search_opendir=no
7a197a62 4224fi
d0191583
JM
4225rm conftest.$ac_ext
4226LIBS=$ac_func_search_save_LIBS
4227fi
ec6a6fbe
AK
4228{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4229$as_echo "$ac_cv_search_opendir" >&6; }
d0191583
JM
4230ac_res=$ac_cv_search_opendir
4231if test "$ac_res" != no; then
4232 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7a197a62 4233
7a197a62 4234fi
7a197a62 4235
d0191583 4236fi
7a197a62 4237
ec6a6fbe
AK
4238{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4239$as_echo_n "checking for ANSI C header files... " >&6; }
7a197a62 4240if test "${ac_cv_header_stdc+set}" = set; then
ec6a6fbe 4241 $as_echo_n "(cached) " >&6
7a197a62
AK
4242else
4243 cat >conftest.$ac_ext <<_ACEOF
4244/* confdefs.h. */
4245_ACEOF
4246cat confdefs.h >>conftest.$ac_ext
4247cat >>conftest.$ac_ext <<_ACEOF
4248/* end confdefs.h. */
4249#include <stdlib.h>
4250#include <stdarg.h>
4251#include <string.h>
4252#include <float.h>
4253
4254int
4255main ()
4256{
4257
4258 ;
4259 return 0;
4260}
4261_ACEOF
4262rm -f conftest.$ac_objext
4263if { (ac_try="$ac_compile"
4264case "(($ac_try" in
4265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4266 *) ac_try_echo=$ac_try;;
4267esac
ec6a6fbe
AK
4268eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4269$as_echo "$ac_try_echo") >&5
7a197a62
AK
4270 (eval "$ac_compile") 2>conftest.er1
4271 ac_status=$?
4272 grep -v '^ *+' conftest.er1 >conftest.err
4273 rm -f conftest.er1
4274 cat conftest.err >&5
ec6a6fbe 4275 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4276 (exit $ac_status); } && {
4277 test -z "$ac_c_werror_flag" ||
4278 test ! -s conftest.err
4279 } && test -s conftest.$ac_objext; then
7a197a62
AK
4280 ac_cv_header_stdc=yes
4281else
ec6a6fbe 4282 $as_echo "$as_me: failed program was:" >&5
7a197a62
AK
4283sed 's/^/| /' conftest.$ac_ext >&5
4284
4285 ac_cv_header_stdc=no
4286fi
4287
4288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4289
4290if test $ac_cv_header_stdc = yes; then
4291 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
ad6254c5 4292 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4293/* confdefs.h. */
4294_ACEOF
4295cat confdefs.h >>conftest.$ac_ext
4296cat >>conftest.$ac_ext <<_ACEOF
4297/* end confdefs.h. */
4298#include <string.h>
8106cdd5 4299
ad6254c5
AK
4300_ACEOF
4301if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4302 $EGREP "memchr" >/dev/null 2>&1; then
4303 :
4304else
4305 ac_cv_header_stdc=no
80992638 4306fi
ad6254c5 4307rm -f conftest*
795ca3e5
AK
4308
4309fi
4310
ad6254c5
AK
4311if test $ac_cv_header_stdc = yes; then
4312 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4313 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4314/* confdefs.h. */
4315_ACEOF
4316cat confdefs.h >>conftest.$ac_ext
4317cat >>conftest.$ac_ext <<_ACEOF
4318/* end confdefs.h. */
80992638 4319#include <stdlib.h>
ad6254c5
AK
4320
4321_ACEOF
80992638 4322if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ad6254c5
AK
4323 $EGREP "free" >/dev/null 2>&1; then
4324 :
795ca3e5 4325else
ad6254c5 4326 ac_cv_header_stdc=no
795ca3e5 4327fi
80992638 4328rm -f conftest*
8106cdd5 4329
795ca3e5
AK
4330fi
4331
ad6254c5
AK
4332if test $ac_cv_header_stdc = yes; then
4333 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4334 if test "$cross_compiling" = yes; then
4335 :
795ca3e5 4336else
ad6254c5 4337 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4338/* confdefs.h. */
4339_ACEOF
4340cat confdefs.h >>conftest.$ac_ext
4341cat >>conftest.$ac_ext <<_ACEOF
4342/* end confdefs.h. */
4343#include <ctype.h>
7a197a62 4344#include <stdlib.h>
ad6254c5
AK
4345#if ((' ' & 0x0FF) == 0x020)
4346# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4347# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4348#else
4349# define ISLOWER(c) \
8a2fc586
AK
4350 (('a' <= (c) && (c) <= 'i') \
4351 || ('j' <= (c) && (c) <= 'r') \
4352 || ('s' <= (c) && (c) <= 'z'))
ad6254c5 4353# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
80992638 4354#endif
ad6254c5
AK
4355
4356#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4357int
4358main ()
4359{
4360 int i;
4361 for (i = 0; i < 256; i++)
4362 if (XOR (islower (i), ISLOWER (i))
8a2fc586 4363 || toupper (i) != TOUPPER (i))
7a197a62
AK
4364 return 2;
4365 return 0;
ad6254c5
AK
4366}
4367_ACEOF
4368rm -f conftest$ac_exeext
7a197a62
AK
4369if { (ac_try="$ac_link"
4370case "(($ac_try" in
4371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4372 *) ac_try_echo=$ac_try;;
4373esac
ec6a6fbe
AK
4374eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4375$as_echo "$ac_try_echo") >&5
7a197a62 4376 (eval "$ac_link") 2>&5
ad6254c5 4377 ac_status=$?
ec6a6fbe 4378 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 4379 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
4380 { (case "(($ac_try" in
4381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4382 *) ac_try_echo=$ac_try;;
4383esac
ec6a6fbe
AK
4384eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4385$as_echo "$ac_try_echo") >&5
7a197a62 4386 (eval "$ac_try") 2>&5
ad6254c5 4387 ac_status=$?
ec6a6fbe 4388 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
4389 (exit $ac_status); }; }; then
4390 :
795ca3e5 4391else
ec6a6fbe
AK
4392 $as_echo "$as_me: program exited with status $ac_status" >&5
4393$as_echo "$as_me: failed program was:" >&5
ad6254c5 4394sed 's/^/| /' conftest.$ac_ext >&5
8106cdd5 4395
ad6254c5
AK
4396( exit $ac_status )
4397ac_cv_header_stdc=no
80992638 4398fi
ec6a6fbe 4399rm -rf conftest.dSYM
7a197a62 4400rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 4401fi
7a197a62
AK
4402
4403
ad6254c5
AK
4404fi
4405fi
ec6a6fbe
AK
4406{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4407$as_echo "$ac_cv_header_stdc" >&6; }
ad6254c5
AK
4408if test $ac_cv_header_stdc = yes; then
4409
4410cat >>confdefs.h <<\_ACEOF
4411#define STDC_HEADERS 1
4412_ACEOF
795ca3e5
AK
4413
4414fi
4415
ec6a6fbe
AK
4416{ $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
4417$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
ad6254c5 4418if test "${ac_cv_header_sys_wait_h+set}" = set; then
ec6a6fbe 4419 $as_echo_n "(cached) " >&6
8106cdd5 4420else
ad6254c5 4421 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4422/* confdefs.h. */
4423_ACEOF
4424cat confdefs.h >>conftest.$ac_ext
4425cat >>conftest.$ac_ext <<_ACEOF
4426/* end confdefs.h. */
80992638 4427#include <sys/types.h>
ad6254c5
AK
4428#include <sys/wait.h>
4429#ifndef WEXITSTATUS
7a197a62 4430# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
ad6254c5
AK
4431#endif
4432#ifndef WIFEXITED
4433# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4434#endif
4435
4436int
4437main ()
4438{
4439 int s;
4440 wait (&s);
4441 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4442 ;
4443 return 0;
4444}
4445_ACEOF
4446rm -f conftest.$ac_objext
7a197a62
AK
4447if { (ac_try="$ac_compile"
4448case "(($ac_try" in
4449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4450 *) ac_try_echo=$ac_try;;
4451esac
ec6a6fbe
AK
4452eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4453$as_echo "$ac_try_echo") >&5
7a197a62 4454 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4455 ac_status=$?
8a2fc586
AK
4456 grep -v '^ *+' conftest.er1 >conftest.err
4457 rm -f conftest.er1
4458 cat conftest.err >&5
ec6a6fbe 4459 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4460 (exit $ac_status); } && {
4461 test -z "$ac_c_werror_flag" ||
4462 test ! -s conftest.err
4463 } && test -s conftest.$ac_objext; then
ad6254c5
AK
4464 ac_cv_header_sys_wait_h=yes
4465else
ec6a6fbe 4466 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
4467sed 's/^/| /' conftest.$ac_ext >&5
4468
7a197a62 4469 ac_cv_header_sys_wait_h=no
8106cdd5 4470fi
7a197a62
AK
4471
4472rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
795ca3e5 4473fi
ec6a6fbe
AK
4474{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
4475$as_echo "$ac_cv_header_sys_wait_h" >&6; }
ad6254c5 4476if test $ac_cv_header_sys_wait_h = yes; then
8106cdd5 4477
ad6254c5
AK
4478cat >>confdefs.h <<\_ACEOF
4479#define HAVE_SYS_WAIT_H 1
4480_ACEOF
795ca3e5
AK
4481
4482fi
4483
ec6a6fbe
AK
4484{ $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4485$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
ad6254c5 4486if test "${ac_cv_header_time+set}" = set; then
ec6a6fbe 4487 $as_echo_n "(cached) " >&6
795ca3e5 4488else
ad6254c5 4489 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4490/* confdefs.h. */
4491_ACEOF
4492cat confdefs.h >>conftest.$ac_ext
4493cat >>conftest.$ac_ext <<_ACEOF
4494/* end confdefs.h. */
795ca3e5
AK
4495#include <sys/types.h>
4496#include <sys/time.h>
4497#include <time.h>
ad6254c5
AK
4498
4499int
4500main ()
4501{
4502if ((struct tm *) 0)
4503return 0;
4504 ;
4505 return 0;
4506}
4507_ACEOF
4508rm -f conftest.$ac_objext
7a197a62
AK
4509if { (ac_try="$ac_compile"
4510case "(($ac_try" in
4511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4512 *) ac_try_echo=$ac_try;;
4513esac
ec6a6fbe
AK
4514eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4515$as_echo "$ac_try_echo") >&5
7a197a62 4516 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4517 ac_status=$?
8a2fc586
AK
4518 grep -v '^ *+' conftest.er1 >conftest.err
4519 rm -f conftest.er1
4520 cat conftest.err >&5
ec6a6fbe 4521 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4522 (exit $ac_status); } && {
4523 test -z "$ac_c_werror_flag" ||
4524 test ! -s conftest.err
4525 } && test -s conftest.$ac_objext; then
795ca3e5
AK
4526 ac_cv_header_time=yes
4527else
ec6a6fbe 4528 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
4529sed 's/^/| /' conftest.$ac_ext >&5
4530
7a197a62 4531 ac_cv_header_time=no
795ca3e5 4532fi
7a197a62
AK
4533
4534rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
795ca3e5 4535fi
ec6a6fbe
AK
4536{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4537$as_echo "$ac_cv_header_time" >&6; }
80992638 4538if test $ac_cv_header_time = yes; then
ad6254c5
AK
4539
4540cat >>confdefs.h <<\_ACEOF
795ca3e5 4541#define TIME_WITH_SYS_TIME 1
ad6254c5 4542_ACEOF
b896caa1 4543
8106cdd5 4544fi
b896caa1 4545
b896caa1 4546
d0191583
JM
4547# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4558 inttypes.h stdint.h unistd.h
4559do
ec6a6fbe
AK
4560as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4561{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4562$as_echo_n "checking for $ac_header... " >&6; }
d0191583 4563if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 4564 $as_echo_n "(cached) " >&6
d0191583
JM
4565else
4566 cat >conftest.$ac_ext <<_ACEOF
4567/* confdefs.h. */
4568_ACEOF
4569cat confdefs.h >>conftest.$ac_ext
4570cat >>conftest.$ac_ext <<_ACEOF
4571/* end confdefs.h. */
4572$ac_includes_default
4573
4574#include <$ac_header>
4575_ACEOF
4576rm -f conftest.$ac_objext
4577if { (ac_try="$ac_compile"
4578case "(($ac_try" in
4579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4580 *) ac_try_echo=$ac_try;;
4581esac
ec6a6fbe
AK
4582eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4583$as_echo "$ac_try_echo") >&5
d0191583
JM
4584 (eval "$ac_compile") 2>conftest.er1
4585 ac_status=$?
4586 grep -v '^ *+' conftest.er1 >conftest.err
4587 rm -f conftest.er1
4588 cat conftest.err >&5
ec6a6fbe 4589 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4590 (exit $ac_status); } && {
4591 test -z "$ac_c_werror_flag" ||
4592 test ! -s conftest.err
4593 } && test -s conftest.$ac_objext; then
4594 eval "$as_ac_Header=yes"
4595else
ec6a6fbe 4596 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
4597sed 's/^/| /' conftest.$ac_ext >&5
4598
4599 eval "$as_ac_Header=no"
4600fi
4601
4602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4603fi
ec6a6fbe
AK
4604ac_res=`eval 'as_val=${'$as_ac_Header'}
4605 $as_echo "$as_val"'`
4606 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4607$as_echo "$ac_res" >&6; }
4608as_val=`eval 'as_val=${'$as_ac_Header'}
4609 $as_echo "$as_val"'`
4610 if test "x$as_val" = x""yes; then
d0191583 4611 cat >>confdefs.h <<_ACEOF
ec6a6fbe 4612#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
d0191583
JM
4613_ACEOF
4614
4615fi
4616
4617done
4618
b896caa1 4619
b896caa1
AK
4620
4621
795ca3e5 4622
8106cdd5 4623
80992638 4624
795ca3e5 4625
a38df97f 4626
80992638 4627
d0191583
JM
4628
4629
4630
4631
4632
4633for ac_header in locale.h stddef.h syslog.h sys/file.h sys/time.h assert.h \
4634 libgen.h signal.h sys/mman.h sys/resource.h sys/utsname.h sys/wait.h time.h
ad6254c5 4635do
ec6a6fbe 4636as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
d0191583 4637if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
4638 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4639$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 4640if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 4641 $as_echo_n "(cached) " >&6
d0191583 4642fi
ec6a6fbe
AK
4643ac_res=`eval 'as_val=${'$as_ac_Header'}
4644 $as_echo "$as_val"'`
4645 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4646$as_echo "$ac_res" >&6; }
ad6254c5 4647else
d0191583 4648 # Is the header compilable?
ec6a6fbe
AK
4649{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4650$as_echo_n "checking $ac_header usability... " >&6; }
d0191583 4651cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4652/* confdefs.h. */
4653_ACEOF
4654cat confdefs.h >>conftest.$ac_ext
4655cat >>conftest.$ac_ext <<_ACEOF
4656/* end confdefs.h. */
4657$ac_includes_default
ad6254c5
AK
4658#include <$ac_header>
4659_ACEOF
4660rm -f conftest.$ac_objext
7a197a62
AK
4661if { (ac_try="$ac_compile"
4662case "(($ac_try" in
4663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4664 *) ac_try_echo=$ac_try;;
4665esac
ec6a6fbe
AK
4666eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4667$as_echo "$ac_try_echo") >&5
7a197a62 4668 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4669 ac_status=$?
8a2fc586
AK
4670 grep -v '^ *+' conftest.er1 >conftest.err
4671 rm -f conftest.er1
4672 cat conftest.err >&5
ec6a6fbe 4673 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4674 (exit $ac_status); } && {
4675 test -z "$ac_c_werror_flag" ||
4676 test ! -s conftest.err
4677 } && test -s conftest.$ac_objext; then
d0191583 4678 ac_header_compiler=yes
ad6254c5 4679else
ec6a6fbe 4680 $as_echo "$as_me: failed program was:" >&5
ad6254c5 4681sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 4682
d0191583 4683 ac_header_compiler=no
ad6254c5 4684fi
7a197a62
AK
4685
4686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
4687{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4688$as_echo "$ac_header_compiler" >&6; }
d0191583
JM
4689
4690# Is the header present?
ec6a6fbe
AK
4691{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4692$as_echo_n "checking $ac_header presence... " >&6; }
d0191583
JM
4693cat >conftest.$ac_ext <<_ACEOF
4694/* confdefs.h. */
4695_ACEOF
4696cat confdefs.h >>conftest.$ac_ext
4697cat >>conftest.$ac_ext <<_ACEOF
4698/* end confdefs.h. */
4699#include <$ac_header>
4700_ACEOF
4701if { (ac_try="$ac_cpp conftest.$ac_ext"
4702case "(($ac_try" in
4703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4704 *) ac_try_echo=$ac_try;;
4705esac
ec6a6fbe
AK
4706eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4707$as_echo "$ac_try_echo") >&5
d0191583
JM
4708 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4709 ac_status=$?
4710 grep -v '^ *+' conftest.er1 >conftest.err
4711 rm -f conftest.er1
4712 cat conftest.err >&5
ec6a6fbe 4713 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4714 (exit $ac_status); } >/dev/null && {
4715 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4716 test ! -s conftest.err
4717 }; then
4718 ac_header_preproc=yes
4719else
ec6a6fbe 4720 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
4721sed 's/^/| /' conftest.$ac_ext >&5
4722
4723 ac_header_preproc=no
4724fi
4725
4726rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
4727{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4728$as_echo "$ac_header_preproc" >&6; }
d0191583
JM
4729
4730# So? What about this header?
4731case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4732 yes:no: )
ec6a6fbe
AK
4733 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4734$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4735 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4736$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
d0191583
JM
4737 ac_header_preproc=yes
4738 ;;
4739 no:yes:* )
ec6a6fbe
AK
4740 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4741$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4742 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4743$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4744 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4745$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4746 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4747$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4748 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4749$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4750 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4751$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
d0191583
JM
4752
4753 ;;
4754esac
ec6a6fbe
AK
4755{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4756$as_echo_n "checking for $ac_header... " >&6; }
d0191583 4757if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 4758 $as_echo_n "(cached) " >&6
d0191583
JM
4759else
4760 eval "$as_ac_Header=\$ac_header_preproc"
a38df97f 4761fi
ec6a6fbe
AK
4762ac_res=`eval 'as_val=${'$as_ac_Header'}
4763 $as_echo "$as_val"'`
4764 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4765$as_echo "$ac_res" >&6; }
d0191583
JM
4766
4767fi
ec6a6fbe
AK
4768as_val=`eval 'as_val=${'$as_ac_Header'}
4769 $as_echo "$as_val"'`
4770 if test "x$as_val" = x""yes; then
ad6254c5 4771 cat >>confdefs.h <<_ACEOF
ec6a6fbe 4772#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 4773_ACEOF
a38df97f 4774
d0191583 4775else
ec6a6fbe
AK
4776 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
4777$as_echo "$as_me: error: bailing out" >&2;}
d0191583 4778 { (exit 1); exit 1; }; }
80992638
AK
4779fi
4780
ad6254c5
AK
4781done
4782
7d1552c9 4783
d0191583
JM
4784case "$host_os" in
4785 linux*)
7d1552c9 4786
80992638 4787
5a52dca9 4788
d0191583 4789for ac_header in asm/byteorder.h linux/fs.h malloc.h
ad6254c5 4790do
ec6a6fbe 4791as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 4792if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
4793 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4794$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 4795if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 4796 $as_echo_n "(cached) " >&6
ad6254c5 4797fi
ec6a6fbe
AK
4798ac_res=`eval 'as_val=${'$as_ac_Header'}
4799 $as_echo "$as_val"'`
4800 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4801$as_echo "$ac_res" >&6; }
ad6254c5
AK
4802else
4803 # Is the header compilable?
ec6a6fbe
AK
4804{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4805$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 4806cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4807/* confdefs.h. */
4808_ACEOF
4809cat confdefs.h >>conftest.$ac_ext
4810cat >>conftest.$ac_ext <<_ACEOF
4811/* end confdefs.h. */
4812$ac_includes_default
4813#include <$ac_header>
4814_ACEOF
4815rm -f conftest.$ac_objext
7a197a62
AK
4816if { (ac_try="$ac_compile"
4817case "(($ac_try" in
4818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4819 *) ac_try_echo=$ac_try;;
4820esac
ec6a6fbe
AK
4821eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4822$as_echo "$ac_try_echo") >&5
7a197a62 4823 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4824 ac_status=$?
8a2fc586
AK
4825 grep -v '^ *+' conftest.er1 >conftest.err
4826 rm -f conftest.er1
4827 cat conftest.err >&5
ec6a6fbe 4828 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4829 (exit $ac_status); } && {
4830 test -z "$ac_c_werror_flag" ||
4831 test ! -s conftest.err
4832 } && test -s conftest.$ac_objext; then
fc54be10
AK
4833 ac_header_compiler=yes
4834else
ec6a6fbe 4835 $as_echo "$as_me: failed program was:" >&5
fc54be10
AK
4836sed 's/^/| /' conftest.$ac_ext >&5
4837
4838 ac_header_compiler=no
4839fi
4840
4841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
4842{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4843$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
4844
4845# Is the header present?
ec6a6fbe
AK
4846{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4847$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 4848cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4849/* confdefs.h. */
4850_ACEOF
4851cat confdefs.h >>conftest.$ac_ext
4852cat >>conftest.$ac_ext <<_ACEOF
4853/* end confdefs.h. */
4854#include <$ac_header>
4855_ACEOF
7a197a62
AK
4856if { (ac_try="$ac_cpp conftest.$ac_ext"
4857case "(($ac_try" in
4858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4859 *) ac_try_echo=$ac_try;;
4860esac
ec6a6fbe
AK
4861eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4862$as_echo "$ac_try_echo") >&5
7a197a62 4863 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
4864 ac_status=$?
4865 grep -v '^ *+' conftest.er1 >conftest.err
4866 rm -f conftest.er1
4867 cat conftest.err >&5
ec6a6fbe 4868 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4869 (exit $ac_status); } >/dev/null && {
4870 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4871 test ! -s conftest.err
4872 }; then
ad6254c5
AK
4873 ac_header_preproc=yes
4874else
ec6a6fbe 4875 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
4876sed 's/^/| /' conftest.$ac_ext >&5
4877
4878 ac_header_preproc=no
4879fi
7a197a62 4880
ad6254c5 4881rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
4882{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4883$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
4884
4885# So? What about this header?
8a2fc586
AK
4886case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4887 yes:no: )
ec6a6fbe
AK
4888 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4889$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4890 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4891$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 4892 ac_header_preproc=yes
ad6254c5 4893 ;;
8a2fc586 4894 no:yes:* )
ec6a6fbe
AK
4895 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4896$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4897 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4898$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4899 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4900$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4901 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4902$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4903 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4904$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4905 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4906$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 4907
ad6254c5
AK
4908 ;;
4909esac
ec6a6fbe
AK
4910{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4911$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 4912if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 4913 $as_echo_n "(cached) " >&6
ad6254c5 4914else
8a2fc586 4915 eval "$as_ac_Header=\$ac_header_preproc"
b896caa1 4916fi
ec6a6fbe
AK
4917ac_res=`eval 'as_val=${'$as_ac_Header'}
4918 $as_echo "$as_val"'`
4919 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4920$as_echo "$ac_res" >&6; }
ad6254c5
AK
4921
4922fi
ec6a6fbe
AK
4923as_val=`eval 'as_val=${'$as_ac_Header'}
4924 $as_echo "$as_val"'`
4925 if test "x$as_val" = x""yes; then
ad6254c5 4926 cat >>confdefs.h <<_ACEOF
ec6a6fbe 4927#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 4928_ACEOF
b896caa1 4929
d8ac0fbc 4930else
ec6a6fbe
AK
4931 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
4932$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 4933 { (exit 1); exit 1; }; }
80992638
AK
4934fi
4935
ad6254c5 4936done
d0191583
JM
4937 ;;
4938 darwin*)
d8ac0fbc 4939
d8ac0fbc 4940
d0191583 4941for ac_header in machine/endian.h sys/disk.h
ad6254c5 4942do
ec6a6fbe 4943as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 4944if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
4945 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4946$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 4947if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 4948 $as_echo_n "(cached) " >&6
ad6254c5 4949fi
ec6a6fbe
AK
4950ac_res=`eval 'as_val=${'$as_ac_Header'}
4951 $as_echo "$as_val"'`
4952 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4953$as_echo "$ac_res" >&6; }
ad6254c5
AK
4954else
4955 # Is the header compilable?
ec6a6fbe
AK
4956{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4957$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 4958cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4959/* confdefs.h. */
4960_ACEOF
4961cat confdefs.h >>conftest.$ac_ext
4962cat >>conftest.$ac_ext <<_ACEOF
4963/* end confdefs.h. */
4964$ac_includes_default
4965#include <$ac_header>
4966_ACEOF
4967rm -f conftest.$ac_objext
7a197a62
AK
4968if { (ac_try="$ac_compile"
4969case "(($ac_try" in
4970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4971 *) ac_try_echo=$ac_try;;
4972esac
ec6a6fbe
AK
4973eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4974$as_echo "$ac_try_echo") >&5
7a197a62 4975 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4976 ac_status=$?
8a2fc586
AK
4977 grep -v '^ *+' conftest.er1 >conftest.err
4978 rm -f conftest.er1
4979 cat conftest.err >&5
ec6a6fbe 4980 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4981 (exit $ac_status); } && {
4982 test -z "$ac_c_werror_flag" ||
4983 test ! -s conftest.err
4984 } && test -s conftest.$ac_objext; then
ad6254c5
AK
4985 ac_header_compiler=yes
4986else
ec6a6fbe 4987 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
4988sed 's/^/| /' conftest.$ac_ext >&5
4989
7a197a62 4990 ac_header_compiler=no
ad6254c5 4991fi
7a197a62
AK
4992
4993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
4994{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4995$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
4996
4997# Is the header present?
ec6a6fbe
AK
4998{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4999$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 5000cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5001/* confdefs.h. */
5002_ACEOF
5003cat confdefs.h >>conftest.$ac_ext
5004cat >>conftest.$ac_ext <<_ACEOF
5005/* end confdefs.h. */
5006#include <$ac_header>
5007_ACEOF
7a197a62
AK
5008if { (ac_try="$ac_cpp conftest.$ac_ext"
5009case "(($ac_try" in
5010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5011 *) ac_try_echo=$ac_try;;
5012esac
ec6a6fbe
AK
5013eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5014$as_echo "$ac_try_echo") >&5
7a197a62 5015 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
5016 ac_status=$?
5017 grep -v '^ *+' conftest.er1 >conftest.err
5018 rm -f conftest.er1
5019 cat conftest.err >&5
ec6a6fbe 5020 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5021 (exit $ac_status); } >/dev/null && {
5022 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5023 test ! -s conftest.err
5024 }; then
ad6254c5
AK
5025 ac_header_preproc=yes
5026else
ec6a6fbe 5027 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5028sed 's/^/| /' conftest.$ac_ext >&5
5029
5030 ac_header_preproc=no
5031fi
7a197a62 5032
ad6254c5 5033rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
5034{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5035$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
5036
5037# So? What about this header?
8a2fc586
AK
5038case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5039 yes:no: )
ec6a6fbe
AK
5040 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5041$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5042 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5043$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 5044 ac_header_preproc=yes
ad6254c5 5045 ;;
8a2fc586 5046 no:yes:* )
ec6a6fbe
AK
5047 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5048$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5049 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5050$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5051 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5052$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5053 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5054$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5055 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5056$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5057 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5058$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 5059
ad6254c5
AK
5060 ;;
5061esac
ec6a6fbe
AK
5062{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5063$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 5064if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 5065 $as_echo_n "(cached) " >&6
ad6254c5 5066else
8a2fc586 5067 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 5068fi
ec6a6fbe
AK
5069ac_res=`eval 'as_val=${'$as_ac_Header'}
5070 $as_echo "$as_val"'`
5071 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5072$as_echo "$ac_res" >&6; }
ad6254c5
AK
5073
5074fi
ec6a6fbe
AK
5075as_val=`eval 'as_val=${'$as_ac_Header'}
5076 $as_echo "$as_val"'`
5077 if test "x$as_val" = x""yes; then
ad6254c5 5078 cat >>confdefs.h <<_ACEOF
ec6a6fbe 5079#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 5080_ACEOF
4922197a 5081
4922197a 5082else
ec6a6fbe
AK
5083 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5084$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 5085 { (exit 1); exit 1; }; }
80992638
AK
5086fi
5087
ad6254c5 5088done
d0191583
JM
5089 ;;
5090esac
4922197a 5091
4922197a 5092
4922197a 5093
ad6254c5
AK
5094
5095
d0191583
JM
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108for ac_header in ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h \
5109 stdarg.h stdio.h stdlib.h string.h sys/ioctl.h sys/param.h sys/stat.h \
5110 sys/types.h unistd.h
ad6254c5 5111do
ec6a6fbe 5112as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 5113if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
5114 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5115$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 5116if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 5117 $as_echo_n "(cached) " >&6
ad6254c5 5118fi
ec6a6fbe
AK
5119ac_res=`eval 'as_val=${'$as_ac_Header'}
5120 $as_echo "$as_val"'`
5121 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5122$as_echo "$ac_res" >&6; }
795ca3e5 5123else
ad6254c5 5124 # Is the header compilable?
ec6a6fbe
AK
5125{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5126$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 5127cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5128/* confdefs.h. */
5129_ACEOF
5130cat confdefs.h >>conftest.$ac_ext
5131cat >>conftest.$ac_ext <<_ACEOF
5132/* end confdefs.h. */
5133$ac_includes_default
5134#include <$ac_header>
5135_ACEOF
5136rm -f conftest.$ac_objext
7a197a62
AK
5137if { (ac_try="$ac_compile"
5138case "(($ac_try" in
5139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5140 *) ac_try_echo=$ac_try;;
5141esac
ec6a6fbe
AK
5142eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5143$as_echo "$ac_try_echo") >&5
7a197a62 5144 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5145 ac_status=$?
8a2fc586
AK
5146 grep -v '^ *+' conftest.er1 >conftest.err
5147 rm -f conftest.er1
5148 cat conftest.err >&5
ec6a6fbe 5149 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5150 (exit $ac_status); } && {
5151 test -z "$ac_c_werror_flag" ||
5152 test ! -s conftest.err
5153 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5154 ac_header_compiler=yes
5155else
ec6a6fbe 5156 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5157sed 's/^/| /' conftest.$ac_ext >&5
5158
7a197a62 5159 ac_header_compiler=no
ad6254c5 5160fi
7a197a62
AK
5161
5162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
5163{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5164$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
5165
5166# Is the header present?
ec6a6fbe
AK
5167{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5168$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 5169cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5170/* confdefs.h. */
5171_ACEOF
5172cat confdefs.h >>conftest.$ac_ext
5173cat >>conftest.$ac_ext <<_ACEOF
5174/* end confdefs.h. */
5175#include <$ac_header>
5176_ACEOF
7a197a62
AK
5177if { (ac_try="$ac_cpp conftest.$ac_ext"
5178case "(($ac_try" in
5179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5180 *) ac_try_echo=$ac_try;;
5181esac
ec6a6fbe
AK
5182eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5183$as_echo "$ac_try_echo") >&5
7a197a62 5184 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
5185 ac_status=$?
5186 grep -v '^ *+' conftest.er1 >conftest.err
5187 rm -f conftest.er1
5188 cat conftest.err >&5
ec6a6fbe 5189 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5190 (exit $ac_status); } >/dev/null && {
5191 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5192 test ! -s conftest.err
5193 }; then
ad6254c5
AK
5194 ac_header_preproc=yes
5195else
ec6a6fbe 5196 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5197sed 's/^/| /' conftest.$ac_ext >&5
5198
5199 ac_header_preproc=no
5200fi
7a197a62 5201
ad6254c5 5202rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
5203{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5204$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
5205
5206# So? What about this header?
8a2fc586
AK
5207case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5208 yes:no: )
ec6a6fbe
AK
5209 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5210$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5211 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5212$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 5213 ac_header_preproc=yes
ad6254c5 5214 ;;
8a2fc586 5215 no:yes:* )
ec6a6fbe
AK
5216 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5217$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5218 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5219$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5220 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5221$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5222 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5223$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5224 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5225$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5226 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5227$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 5228
ad6254c5
AK
5229 ;;
5230esac
ec6a6fbe
AK
5231{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5232$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 5233if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 5234 $as_echo_n "(cached) " >&6
ad6254c5 5235else
8a2fc586 5236 eval "$as_ac_Header=\$ac_header_preproc"
80992638 5237fi
ec6a6fbe
AK
5238ac_res=`eval 'as_val=${'$as_ac_Header'}
5239 $as_echo "$as_val"'`
5240 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5241$as_echo "$ac_res" >&6; }
80992638 5242
ad6254c5 5243fi
ec6a6fbe
AK
5244as_val=`eval 'as_val=${'$as_ac_Header'}
5245 $as_echo "$as_val"'`
5246 if test "x$as_val" = x""yes; then
ad6254c5 5247 cat >>confdefs.h <<_ACEOF
ec6a6fbe 5248#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 5249_ACEOF
795ca3e5 5250
795ca3e5 5251else
ec6a6fbe
AK
5252 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5253$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 5254 { (exit 1); exit 1; }; }
80992638
AK
5255fi
5256
ad6254c5 5257done
ad6254c5 5258
795ca3e5 5259
d0191583
JM
5260
5261for ac_header in termios.h sys/statvfs.h
ad6254c5 5262do
ec6a6fbe 5263as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 5264if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
5265 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5266$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 5267if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 5268 $as_echo_n "(cached) " >&6
ad6254c5 5269fi
ec6a6fbe
AK
5270ac_res=`eval 'as_val=${'$as_ac_Header'}
5271 $as_echo "$as_val"'`
5272 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5273$as_echo "$ac_res" >&6; }
ad6254c5
AK
5274else
5275 # Is the header compilable?
ec6a6fbe
AK
5276{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5277$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 5278cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5279/* confdefs.h. */
5280_ACEOF
5281cat confdefs.h >>conftest.$ac_ext
5282cat >>conftest.$ac_ext <<_ACEOF
5283/* end confdefs.h. */
5284$ac_includes_default
5285#include <$ac_header>
5286_ACEOF
5287rm -f conftest.$ac_objext
7a197a62
AK
5288if { (ac_try="$ac_compile"
5289case "(($ac_try" in
5290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5291 *) ac_try_echo=$ac_try;;
5292esac
ec6a6fbe
AK
5293eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5294$as_echo "$ac_try_echo") >&5
7a197a62 5295 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5296 ac_status=$?
8a2fc586
AK
5297 grep -v '^ *+' conftest.er1 >conftest.err
5298 rm -f conftest.er1
5299 cat conftest.err >&5
ec6a6fbe 5300 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5301 (exit $ac_status); } && {
5302 test -z "$ac_c_werror_flag" ||
5303 test ! -s conftest.err
5304 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5305 ac_header_compiler=yes
5306else
ec6a6fbe 5307 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5308sed 's/^/| /' conftest.$ac_ext >&5
5309
7a197a62 5310 ac_header_compiler=no
ad6254c5 5311fi
7a197a62
AK
5312
5313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
5314{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5315$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
5316
5317# Is the header present?
ec6a6fbe
AK
5318{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5319$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 5320cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5321/* confdefs.h. */
5322_ACEOF
5323cat confdefs.h >>conftest.$ac_ext
5324cat >>conftest.$ac_ext <<_ACEOF
5325/* end confdefs.h. */
5326#include <$ac_header>
5327_ACEOF
7a197a62
AK
5328if { (ac_try="$ac_cpp conftest.$ac_ext"
5329case "(($ac_try" in
5330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5331 *) ac_try_echo=$ac_try;;
5332esac
ec6a6fbe
AK
5333eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5334$as_echo "$ac_try_echo") >&5
7a197a62 5335 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
5336 ac_status=$?
5337 grep -v '^ *+' conftest.er1 >conftest.err
5338 rm -f conftest.er1
5339 cat conftest.err >&5
ec6a6fbe 5340 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5341 (exit $ac_status); } >/dev/null && {
5342 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5343 test ! -s conftest.err
5344 }; then
ad6254c5
AK
5345 ac_header_preproc=yes
5346else
ec6a6fbe 5347 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5348sed 's/^/| /' conftest.$ac_ext >&5
5349
5350 ac_header_preproc=no
5351fi
7a197a62 5352
ad6254c5 5353rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
5354{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5355$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
5356
5357# So? What about this header?
8a2fc586
AK
5358case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5359 yes:no: )
ec6a6fbe
AK
5360 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5361$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5362 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5363$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 5364 ac_header_preproc=yes
ad6254c5 5365 ;;
8a2fc586 5366 no:yes:* )
ec6a6fbe
AK
5367 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5368$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5369 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5370$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5371 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5372$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5373 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5374$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5375 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5376$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5377 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5378$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 5379
ad6254c5
AK
5380 ;;
5381esac
ec6a6fbe
AK
5382{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5383$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 5384if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 5385 $as_echo_n "(cached) " >&6
ad6254c5 5386else
8a2fc586 5387 eval "$as_ac_Header=\$ac_header_preproc"
b896caa1 5388fi
ec6a6fbe
AK
5389ac_res=`eval 'as_val=${'$as_ac_Header'}
5390 $as_echo "$as_val"'`
5391 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5392$as_echo "$ac_res" >&6; }
b896caa1 5393
ad6254c5 5394fi
ec6a6fbe
AK
5395as_val=`eval 'as_val=${'$as_ac_Header'}
5396 $as_echo "$as_val"'`
5397 if test "x$as_val" = x""yes; then
ad6254c5 5398 cat >>confdefs.h <<_ACEOF
ec6a6fbe 5399#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
5400_ACEOF
5401
80992638
AK
5402fi
5403
ad6254c5 5404done
d0191583 5405
d3c8211f 5406
80992638 5407################################################################################
ec6a6fbe
AK
5408{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5409$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
ad6254c5 5410if test "${ac_cv_c_const+set}" = set; then
ec6a6fbe 5411 $as_echo_n "(cached) " >&6
d3c8211f 5412else
ad6254c5 5413 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5414/* confdefs.h. */
5415_ACEOF
5416cat confdefs.h >>conftest.$ac_ext
5417cat >>conftest.$ac_ext <<_ACEOF
5418/* end confdefs.h. */
5419
5420int
5421main ()
5422{
5423/* FIXME: Include the comments suggested by Paul. */
5424#ifndef __cplusplus
5425 /* Ultrix mips cc rejects this. */
5426 typedef int charset[2];
25fbec5b 5427 const charset cs;
ad6254c5 5428 /* SunOS 4.1.1 cc rejects this. */
25fbec5b
AK
5429 char const *const *pcpcc;
5430 char **ppc;
ad6254c5
AK
5431 /* NEC SVR4.0.2 mips cc rejects this. */
5432 struct point {int x, y;};
5433 static struct point const zero = {0,0};
5434 /* AIX XL C 1.02.0.0 rejects this.
5435 It does not let you subtract one const X* pointer from another in
5436 an arm of an if-expression whose if-part is not a constant
5437 expression */
5438 const char *g = "string";
25fbec5b 5439 pcpcc = &g + (g ? g-g : 0);
ad6254c5 5440 /* HPUX 7.0 cc rejects these. */
25fbec5b
AK
5441 ++pcpcc;
5442 ppc = (char**) pcpcc;
5443 pcpcc = (char const *const *) ppc;
ad6254c5
AK
5444 { /* SCO 3.2v4 cc rejects this. */
5445 char *t;
5446 char const *s = 0 ? (char *) 0 : (char const *) 0;
5447
5448 *t++ = 0;
7a197a62 5449 if (s) return 0;
ad6254c5
AK
5450 }
5451 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5452 int x[] = {25, 17};
5453 const int *foo = &x[0];
5454 ++foo;
5455 }
5456 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5457 typedef const int *iptr;
5458 iptr p = 0;
5459 ++p;
5460 }
5461 { /* AIX XL C 1.02.0.0 rejects this saying
5462 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5463 struct s { int j; const int *ap[3]; };
5464 struct s *b; b->j = 5;
5465 }
5466 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5467 const int foo = 10;
7a197a62 5468 if (!foo) return 0;
ad6254c5 5469 }
25fbec5b 5470 return !cs[0] && !zero.x;
ad6254c5
AK
5471#endif
5472
5473 ;
5474 return 0;
5475}
5476_ACEOF
5477rm -f conftest.$ac_objext
7a197a62
AK
5478if { (ac_try="$ac_compile"
5479case "(($ac_try" in
5480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5481 *) ac_try_echo=$ac_try;;
5482esac
ec6a6fbe
AK
5483eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5484$as_echo "$ac_try_echo") >&5
7a197a62 5485 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5486 ac_status=$?
8a2fc586
AK
5487 grep -v '^ *+' conftest.er1 >conftest.err
5488 rm -f conftest.er1
5489 cat conftest.err >&5
ec6a6fbe 5490 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5491 (exit $ac_status); } && {
5492 test -z "$ac_c_werror_flag" ||
5493 test ! -s conftest.err
5494 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5495 ac_cv_c_const=yes
5496else
ec6a6fbe 5497 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5498sed 's/^/| /' conftest.$ac_ext >&5
5499
7a197a62 5500 ac_cv_c_const=no
ad6254c5 5501fi
7a197a62
AK
5502
5503rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
80992638 5504fi
ec6a6fbe
AK
5505{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5506$as_echo "$ac_cv_c_const" >&6; }
ad6254c5 5507if test $ac_cv_c_const = no; then
80992638 5508
ad6254c5 5509cat >>confdefs.h <<\_ACEOF
ec6a6fbe 5510#define const /**/
ad6254c5 5511_ACEOF
80992638 5512
d3c8211f 5513fi
d3c8211f 5514
ec6a6fbe
AK
5515{ $as_echo "$as_me:$LINENO: checking for inline" >&5
5516$as_echo_n "checking for inline... " >&6; }
ad6254c5 5517if test "${ac_cv_c_inline+set}" = set; then
ec6a6fbe 5518 $as_echo_n "(cached) " >&6
8ef2b021 5519else
ad6254c5
AK
5520 ac_cv_c_inline=no
5521for ac_kw in inline __inline__ __inline; do
5522 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5523/* confdefs.h. */
5524_ACEOF
5525cat confdefs.h >>conftest.$ac_ext
5526cat >>conftest.$ac_ext <<_ACEOF
5527/* end confdefs.h. */
5528#ifndef __cplusplus
5529typedef int foo_t;
5530static $ac_kw foo_t static_foo () {return 0; }
5531$ac_kw foo_t foo () {return 0; }
5532#endif
80992638 5533
ad6254c5
AK
5534_ACEOF
5535rm -f conftest.$ac_objext
7a197a62
AK
5536if { (ac_try="$ac_compile"
5537case "(($ac_try" in
5538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5539 *) ac_try_echo=$ac_try;;
5540esac
ec6a6fbe
AK
5541eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5542$as_echo "$ac_try_echo") >&5
7a197a62 5543 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5544 ac_status=$?
8a2fc586
AK
5545 grep -v '^ *+' conftest.er1 >conftest.err
5546 rm -f conftest.er1
5547 cat conftest.err >&5
ec6a6fbe 5548 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5549 (exit $ac_status); } && {
5550 test -z "$ac_c_werror_flag" ||
5551 test ! -s conftest.err
5552 } && test -s conftest.$ac_objext; then
7a197a62 5553 ac_cv_c_inline=$ac_kw
ad6254c5 5554else
ec6a6fbe 5555 $as_echo "$as_me: failed program was:" >&5
ad6254c5 5556sed 's/^/| /' conftest.$ac_ext >&5
8ef2b021 5557
7a197a62 5558
8ce0cbda 5559fi
7a197a62
AK
5560
5561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5562 test "$ac_cv_c_inline" != no && break
ad6254c5 5563done
8ce0cbda 5564
8ce0cbda 5565fi
ec6a6fbe
AK
5566{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5567$as_echo "$ac_cv_c_inline" >&6; }
8a2fc586
AK
5568
5569
ad6254c5
AK
5570case $ac_cv_c_inline in
5571 inline | yes) ;;
8a2fc586
AK
5572 *)
5573 case $ac_cv_c_inline in
5574 no) ac_val=;;
5575 *) ac_val=$ac_cv_c_inline;;
5576 esac
5577 cat >>confdefs.h <<_ACEOF
5578#ifndef __cplusplus
5579#define inline $ac_val
5580#endif
c1c065a3 5581_ACEOF
d0191583
JM
5582 ;;
5583esac
5584
ec6a6fbe
AK
5585{ $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
5586$as_echo_n "checking for struct stat.st_rdev... " >&6; }
d0191583 5587if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
ec6a6fbe 5588 $as_echo_n "(cached) " >&6
d0191583
JM
5589else
5590 cat >conftest.$ac_ext <<_ACEOF
5591/* confdefs.h. */
5592_ACEOF
5593cat confdefs.h >>conftest.$ac_ext
5594cat >>conftest.$ac_ext <<_ACEOF
5595/* end confdefs.h. */
5596$ac_includes_default
5597int
5598main ()
5599{
5600static struct stat ac_aggr;
5601if (ac_aggr.st_rdev)
5602return 0;
5603 ;
5604 return 0;
5605}
5606_ACEOF
5607rm -f conftest.$ac_objext
5608if { (ac_try="$ac_compile"
5609case "(($ac_try" in
5610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5611 *) ac_try_echo=$ac_try;;
5612esac
ec6a6fbe
AK
5613eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5614$as_echo "$ac_try_echo") >&5
5615 (eval "$ac_compile") 2>conftest.er1
5616 ac_status=$?
5617 grep -v '^ *+' conftest.er1 >conftest.err
5618 rm -f conftest.er1
5619 cat conftest.err >&5
5620 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5621 (exit $ac_status); } && {
5622 test -z "$ac_c_werror_flag" ||
5623 test ! -s conftest.err
5624 } && test -s conftest.$ac_objext; then
5625 ac_cv_member_struct_stat_st_rdev=yes
5626else
5627 $as_echo "$as_me: failed program was:" >&5
5628sed 's/^/| /' conftest.$ac_ext >&5
5629
5630 cat >conftest.$ac_ext <<_ACEOF
5631/* confdefs.h. */
5632_ACEOF
5633cat confdefs.h >>conftest.$ac_ext
5634cat >>conftest.$ac_ext <<_ACEOF
5635/* end confdefs.h. */
5636$ac_includes_default
5637int
5638main ()
5639{
5640static struct stat ac_aggr;
5641if (sizeof ac_aggr.st_rdev)
5642return 0;
5643 ;
5644 return 0;
5645}
5646_ACEOF
5647rm -f conftest.$ac_objext
5648if { (ac_try="$ac_compile"
5649case "(($ac_try" in
5650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5651 *) ac_try_echo=$ac_try;;
5652esac
5653eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5654$as_echo "$ac_try_echo") >&5
5655 (eval "$ac_compile") 2>conftest.er1
5656 ac_status=$?
5657 grep -v '^ *+' conftest.er1 >conftest.err
5658 rm -f conftest.er1
5659 cat conftest.err >&5
5660 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5661 (exit $ac_status); } && {
5662 test -z "$ac_c_werror_flag" ||
5663 test ! -s conftest.err
5664 } && test -s conftest.$ac_objext; then
5665 ac_cv_member_struct_stat_st_rdev=yes
5666else
5667 $as_echo "$as_me: failed program was:" >&5
5668sed 's/^/| /' conftest.$ac_ext >&5
5669
5670 ac_cv_member_struct_stat_st_rdev=no
5671fi
5672
5673rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5674fi
5675
5676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5677fi
5678{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
5679$as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; }
5680if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then
5681
5682cat >>confdefs.h <<_ACEOF
5683#define HAVE_STRUCT_STAT_ST_RDEV 1
5684_ACEOF
5685
5686
5687fi
5688
5689{ $as_echo "$as_me:$LINENO: checking for off_t" >&5
5690$as_echo_n "checking for off_t... " >&6; }
5691if test "${ac_cv_type_off_t+set}" = set; then
5692 $as_echo_n "(cached) " >&6
5693else
5694 ac_cv_type_off_t=no
5695cat >conftest.$ac_ext <<_ACEOF
5696/* confdefs.h. */
5697_ACEOF
5698cat confdefs.h >>conftest.$ac_ext
5699cat >>conftest.$ac_ext <<_ACEOF
5700/* end confdefs.h. */
5701$ac_includes_default
5702int
5703main ()
5704{
5705if (sizeof (off_t))
5706 return 0;
5707 ;
5708 return 0;
5709}
5710_ACEOF
5711rm -f conftest.$ac_objext
5712if { (ac_try="$ac_compile"
5713case "(($ac_try" in
5714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5715 *) ac_try_echo=$ac_try;;
5716esac
5717eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5718$as_echo "$ac_try_echo") >&5
5719 (eval "$ac_compile") 2>conftest.er1
5720 ac_status=$?
5721 grep -v '^ *+' conftest.er1 >conftest.err
5722 rm -f conftest.er1
5723 cat conftest.err >&5
5724 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5725 (exit $ac_status); } && {
5726 test -z "$ac_c_werror_flag" ||
5727 test ! -s conftest.err
5728 } && test -s conftest.$ac_objext; then
5729 cat >conftest.$ac_ext <<_ACEOF
5730/* confdefs.h. */
5731_ACEOF
5732cat confdefs.h >>conftest.$ac_ext
5733cat >>conftest.$ac_ext <<_ACEOF
5734/* end confdefs.h. */
5735$ac_includes_default
5736int
5737main ()
5738{
5739if (sizeof ((off_t)))
5740 return 0;
5741 ;
5742 return 0;
5743}
5744_ACEOF
5745rm -f conftest.$ac_objext
5746if { (ac_try="$ac_compile"
5747case "(($ac_try" in
5748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5749 *) ac_try_echo=$ac_try;;
5750esac
5751eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5752$as_echo "$ac_try_echo") >&5
5753 (eval "$ac_compile") 2>conftest.er1
5754 ac_status=$?
5755 grep -v '^ *+' conftest.er1 >conftest.err
5756 rm -f conftest.er1
5757 cat conftest.err >&5
5758 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5759 (exit $ac_status); } && {
5760 test -z "$ac_c_werror_flag" ||
5761 test ! -s conftest.err
5762 } && test -s conftest.$ac_objext; then
5763 :
5764else
5765 $as_echo "$as_me: failed program was:" >&5
5766sed 's/^/| /' conftest.$ac_ext >&5
5767
5768 ac_cv_type_off_t=yes
5769fi
5770
5771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5772else
5773 $as_echo "$as_me: failed program was:" >&5
5774sed 's/^/| /' conftest.$ac_ext >&5
5775
5776
5777fi
5778
5779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5780fi
5781{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5782$as_echo "$ac_cv_type_off_t" >&6; }
5783if test "x$ac_cv_type_off_t" = x""yes; then
5784 :
5785else
5786
5787cat >>confdefs.h <<_ACEOF
5788#define off_t long int
5789_ACEOF
5790
5791fi
5792
5793{ $as_echo "$as_me:$LINENO: checking for pid_t" >&5
5794$as_echo_n "checking for pid_t... " >&6; }
5795if test "${ac_cv_type_pid_t+set}" = set; then
5796 $as_echo_n "(cached) " >&6
5797else
5798 ac_cv_type_pid_t=no
5799cat >conftest.$ac_ext <<_ACEOF
5800/* confdefs.h. */
5801_ACEOF
5802cat confdefs.h >>conftest.$ac_ext
5803cat >>conftest.$ac_ext <<_ACEOF
5804/* end confdefs.h. */
5805$ac_includes_default
5806int
5807main ()
5808{
5809if (sizeof (pid_t))
5810 return 0;
5811 ;
5812 return 0;
5813}
5814_ACEOF
5815rm -f conftest.$ac_objext
5816if { (ac_try="$ac_compile"
5817case "(($ac_try" in
5818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5819 *) ac_try_echo=$ac_try;;
5820esac
5821eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5822$as_echo "$ac_try_echo") >&5
d0191583
JM
5823 (eval "$ac_compile") 2>conftest.er1
5824 ac_status=$?
5825 grep -v '^ *+' conftest.er1 >conftest.err
5826 rm -f conftest.er1
5827 cat conftest.err >&5
ec6a6fbe 5828 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
5829 (exit $ac_status); } && {
5830 test -z "$ac_c_werror_flag" ||
5831 test ! -s conftest.err
5832 } && test -s conftest.$ac_objext; then
ec6a6fbe 5833 cat >conftest.$ac_ext <<_ACEOF
d0191583
JM
5834/* confdefs.h. */
5835_ACEOF
5836cat confdefs.h >>conftest.$ac_ext
5837cat >>conftest.$ac_ext <<_ACEOF
5838/* end confdefs.h. */
5839$ac_includes_default
5840int
5841main ()
5842{
ec6a6fbe
AK
5843if (sizeof ((pid_t)))
5844 return 0;
d0191583
JM
5845 ;
5846 return 0;
5847}
5848_ACEOF
5849rm -f conftest.$ac_objext
5850if { (ac_try="$ac_compile"
5851case "(($ac_try" in
5852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5853 *) ac_try_echo=$ac_try;;
5854esac
ec6a6fbe
AK
5855eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5856$as_echo "$ac_try_echo") >&5
d0191583
JM
5857 (eval "$ac_compile") 2>conftest.er1
5858 ac_status=$?
5859 grep -v '^ *+' conftest.er1 >conftest.err
5860 rm -f conftest.er1
5861 cat conftest.err >&5
ec6a6fbe 5862 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
5863 (exit $ac_status); } && {
5864 test -z "$ac_c_werror_flag" ||
5865 test ! -s conftest.err
5866 } && test -s conftest.$ac_objext; then
ec6a6fbe 5867 :
d0191583 5868else
ec6a6fbe 5869 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
5870sed 's/^/| /' conftest.$ac_ext >&5
5871
ec6a6fbe 5872 ac_cv_type_pid_t=yes
d0191583
JM
5873fi
5874
5875rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
5876else
5877 $as_echo "$as_me: failed program was:" >&5
5878sed 's/^/| /' conftest.$ac_ext >&5
5879
5880
d0191583
JM
5881fi
5882
5883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5884fi
ec6a6fbe
AK
5885{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
5886$as_echo "$ac_cv_type_pid_t" >&6; }
5887if test "x$ac_cv_type_pid_t" = x""yes; then
5888 :
5889else
d0191583
JM
5890
5891cat >>confdefs.h <<_ACEOF
ec6a6fbe 5892#define pid_t int
d0191583
JM
5893_ACEOF
5894
d0191583 5895fi
8ce0cbda 5896
ec6a6fbe
AK
5897{ $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5898$as_echo_n "checking return type of signal handlers... " >&6; }
5899if test "${ac_cv_type_signal+set}" = set; then
5900 $as_echo_n "(cached) " >&6
ad6254c5 5901else
b145d876
ZK
5902 cat >conftest.$ac_ext <<_ACEOF
5903/* confdefs.h. */
5904_ACEOF
5905cat confdefs.h >>conftest.$ac_ext
5906cat >>conftest.$ac_ext <<_ACEOF
5907/* end confdefs.h. */
ec6a6fbe
AK
5908#include <sys/types.h>
5909#include <signal.h>
5910
b145d876
ZK
5911int
5912main ()
5913{
ec6a6fbe 5914return *(signal (0, 0)) (0) == 1;
ad6254c5
AK
5915 ;
5916 return 0;
5917}
5918_ACEOF
5919rm -f conftest.$ac_objext
7a197a62
AK
5920if { (ac_try="$ac_compile"
5921case "(($ac_try" in
5922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5923 *) ac_try_echo=$ac_try;;
5924esac
ec6a6fbe
AK
5925eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5926$as_echo "$ac_try_echo") >&5
7a197a62 5927 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5928 ac_status=$?
8a2fc586
AK
5929 grep -v '^ *+' conftest.er1 >conftest.err
5930 rm -f conftest.er1
5931 cat conftest.err >&5
ec6a6fbe 5932 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5933 (exit $ac_status); } && {
5934 test -z "$ac_c_werror_flag" ||
5935 test ! -s conftest.err
5936 } && test -s conftest.$ac_objext; then
ec6a6fbe 5937 ac_cv_type_signal=int
b145d876 5938else
ec6a6fbe 5939 $as_echo "$as_me: failed program was:" >&5
b145d876
ZK
5940sed 's/^/| /' conftest.$ac_ext >&5
5941
ec6a6fbe 5942 ac_cv_type_signal=void
ad6254c5 5943fi
b145d876
ZK
5944
5945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5946fi
ec6a6fbe
AK
5947{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
5948$as_echo "$ac_cv_type_signal" >&6; }
80992638 5949
ad6254c5 5950cat >>confdefs.h <<_ACEOF
ec6a6fbe 5951#define RETSIGTYPE $ac_cv_type_signal
ad6254c5 5952_ACEOF
199e490e 5953
b896caa1 5954
ec6a6fbe
AK
5955{ $as_echo "$as_me:$LINENO: checking for size_t" >&5
5956$as_echo_n "checking for size_t... " >&6; }
5957if test "${ac_cv_type_size_t+set}" = set; then
5958 $as_echo_n "(cached) " >&6
ad6254c5 5959else
ec6a6fbe
AK
5960 ac_cv_type_size_t=no
5961cat >conftest.$ac_ext <<_ACEOF
b145d876
ZK
5962/* confdefs.h. */
5963_ACEOF
5964cat confdefs.h >>conftest.$ac_ext
5965cat >>conftest.$ac_ext <<_ACEOF
5966/* end confdefs.h. */
5967$ac_includes_default
5968int
5969main ()
5970{
ec6a6fbe
AK
5971if (sizeof (size_t))
5972 return 0;
ad6254c5
AK
5973 ;
5974 return 0;
5975}
5976_ACEOF
5977rm -f conftest.$ac_objext
7a197a62
AK
5978if { (ac_try="$ac_compile"
5979case "(($ac_try" in
5980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5981 *) ac_try_echo=$ac_try;;
5982esac
ec6a6fbe
AK
5983eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5984$as_echo "$ac_try_echo") >&5
7a197a62 5985 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5986 ac_status=$?
8a2fc586
AK
5987 grep -v '^ *+' conftest.er1 >conftest.err
5988 rm -f conftest.er1
5989 cat conftest.err >&5
ec6a6fbe 5990 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5991 (exit $ac_status); } && {
5992 test -z "$ac_c_werror_flag" ||
5993 test ! -s conftest.err
5994 } && test -s conftest.$ac_objext; then
d0191583
JM
5995 cat >conftest.$ac_ext <<_ACEOF
5996/* confdefs.h. */
5997_ACEOF
5998cat confdefs.h >>conftest.$ac_ext
5999cat >>conftest.$ac_ext <<_ACEOF
6000/* end confdefs.h. */
ec6a6fbe 6001$ac_includes_default
d0191583
JM
6002int
6003main ()
6004{
ec6a6fbe
AK
6005if (sizeof ((size_t)))
6006 return 0;
d0191583
JM
6007 ;
6008 return 0;
6009}
6010_ACEOF
6011rm -f conftest.$ac_objext
6012if { (ac_try="$ac_compile"
6013case "(($ac_try" in
6014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6015 *) ac_try_echo=$ac_try;;
6016esac
ec6a6fbe
AK
6017eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6018$as_echo "$ac_try_echo") >&5
d0191583
JM
6019 (eval "$ac_compile") 2>conftest.er1
6020 ac_status=$?
6021 grep -v '^ *+' conftest.er1 >conftest.err
6022 rm -f conftest.er1
6023 cat conftest.err >&5
ec6a6fbe 6024 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
6025 (exit $ac_status); } && {
6026 test -z "$ac_c_werror_flag" ||
6027 test ! -s conftest.err
6028 } && test -s conftest.$ac_objext; then
ec6a6fbe 6029 :
d0191583 6030else
ec6a6fbe 6031 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
6032sed 's/^/| /' conftest.$ac_ext >&5
6033
ec6a6fbe
AK
6034 ac_cv_type_size_t=yes
6035fi
6036
6037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6038else
6039 $as_echo "$as_me: failed program was:" >&5
6040sed 's/^/| /' conftest.$ac_ext >&5
6041
6042
d0191583
JM
6043fi
6044
6045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6046fi
ec6a6fbe
AK
6047{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6048$as_echo "$ac_cv_type_size_t" >&6; }
6049if test "x$ac_cv_type_size_t" = x""yes; then
6050 :
6051else
d0191583
JM
6052
6053cat >>confdefs.h <<_ACEOF
ec6a6fbe 6054#define size_t unsigned int
d0191583
JM
6055_ACEOF
6056
ec6a6fbe 6057fi
d0191583 6058
ec6a6fbe
AK
6059{ $as_echo "$as_me:$LINENO: checking for mode_t" >&5
6060$as_echo_n "checking for mode_t... " >&6; }
6061if test "${ac_cv_type_mode_t+set}" = set; then
6062 $as_echo_n "(cached) " >&6
8106cdd5 6063else
ec6a6fbe
AK
6064 ac_cv_type_mode_t=no
6065cat >conftest.$ac_ext <<_ACEOF
b145d876
ZK
6066/* confdefs.h. */
6067_ACEOF
6068cat confdefs.h >>conftest.$ac_ext
6069cat >>conftest.$ac_ext <<_ACEOF
6070/* end confdefs.h. */
6071$ac_includes_default
6072int
6073main ()
6074{
ec6a6fbe
AK
6075if (sizeof (mode_t))
6076 return 0;
ad6254c5
AK
6077 ;
6078 return 0;
6079}
6080_ACEOF
6081rm -f conftest.$ac_objext
7a197a62
AK
6082if { (ac_try="$ac_compile"
6083case "(($ac_try" in
6084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6085 *) ac_try_echo=$ac_try;;
6086esac
ec6a6fbe
AK
6087eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6088$as_echo "$ac_try_echo") >&5
7a197a62 6089 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6090 ac_status=$?
8a2fc586
AK
6091 grep -v '^ *+' conftest.er1 >conftest.err
6092 rm -f conftest.er1
6093 cat conftest.err >&5
ec6a6fbe 6094 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6095 (exit $ac_status); } && {
6096 test -z "$ac_c_werror_flag" ||
6097 test ! -s conftest.err
6098 } && test -s conftest.$ac_objext; then
b145d876
ZK
6099 cat >conftest.$ac_ext <<_ACEOF
6100/* confdefs.h. */
6101_ACEOF
6102cat confdefs.h >>conftest.$ac_ext
6103cat >>conftest.$ac_ext <<_ACEOF
6104/* end confdefs.h. */
6105$ac_includes_default
6106int
6107main ()
6108{
ec6a6fbe
AK
6109if (sizeof ((mode_t)))
6110 return 0;
ad6254c5
AK
6111 ;
6112 return 0;
6113}
6114_ACEOF
6115rm -f conftest.$ac_objext
7a197a62
AK
6116if { (ac_try="$ac_compile"
6117case "(($ac_try" in
6118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6119 *) ac_try_echo=$ac_try;;
6120esac
ec6a6fbe
AK
6121eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6122$as_echo "$ac_try_echo") >&5
7a197a62 6123 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6124 ac_status=$?
8a2fc586
AK
6125 grep -v '^ *+' conftest.er1 >conftest.err
6126 rm -f conftest.er1
6127 cat conftest.err >&5
ec6a6fbe 6128 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6129 (exit $ac_status); } && {
6130 test -z "$ac_c_werror_flag" ||
6131 test ! -s conftest.err
6132 } && test -s conftest.$ac_objext; then
ec6a6fbe
AK
6133 :
6134else
6135 $as_echo "$as_me: failed program was:" >&5
6136sed 's/^/| /' conftest.$ac_ext >&5
6137
6138 ac_cv_type_mode_t=yes
6139fi
6140
6141rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fddafd51 6142else
ec6a6fbe 6143 $as_echo "$as_me: failed program was:" >&5
fddafd51
ZK
6144sed 's/^/| /' conftest.$ac_ext >&5
6145
ec6a6fbe 6146
80992638 6147fi
7a197a62
AK
6148
6149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 6150fi
ec6a6fbe
AK
6151{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6152$as_echo "$ac_cv_type_mode_t" >&6; }
6153if test "x$ac_cv_type_mode_t" = x""yes; then
ad6254c5
AK
6154 :
6155else
80992638 6156
ad6254c5
AK
6157cat >>confdefs.h <<_ACEOF
6158#define mode_t int
6159_ACEOF
6160
6161fi
6162
ec6a6fbe
AK
6163{ $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
6164$as_echo_n "checking for struct stat.st_rdev... " >&6; }
ad6254c5 6165if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
ec6a6fbe 6166 $as_echo_n "(cached) " >&6
ad6254c5
AK
6167else
6168 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6169/* confdefs.h. */
6170_ACEOF
6171cat confdefs.h >>conftest.$ac_ext
6172cat >>conftest.$ac_ext <<_ACEOF
6173/* end confdefs.h. */
6174$ac_includes_default
6175int
6176main ()
6177{
6178static struct stat ac_aggr;
6179if (ac_aggr.st_rdev)
6180return 0;
6181 ;
6182 return 0;
6183}
6184_ACEOF
6185rm -f conftest.$ac_objext
7a197a62
AK
6186if { (ac_try="$ac_compile"
6187case "(($ac_try" in
6188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6189 *) ac_try_echo=$ac_try;;
6190esac
ec6a6fbe
AK
6191eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6192$as_echo "$ac_try_echo") >&5
7a197a62 6193 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6194 ac_status=$?
8a2fc586
AK
6195 grep -v '^ *+' conftest.er1 >conftest.err
6196 rm -f conftest.er1
6197 cat conftest.err >&5
ec6a6fbe 6198 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6199 (exit $ac_status); } && {
6200 test -z "$ac_c_werror_flag" ||
6201 test ! -s conftest.err
6202 } && test -s conftest.$ac_objext; then
ad6254c5
AK
6203 ac_cv_member_struct_stat_st_rdev=yes
6204else
ec6a6fbe 6205 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6206sed 's/^/| /' conftest.$ac_ext >&5
6207
7a197a62 6208 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6209/* confdefs.h. */
6210_ACEOF
6211cat confdefs.h >>conftest.$ac_ext
6212cat >>conftest.$ac_ext <<_ACEOF
6213/* end confdefs.h. */
6214$ac_includes_default
6215int
6216main ()
6217{
6218static struct stat ac_aggr;
6219if (sizeof ac_aggr.st_rdev)
6220return 0;
6221 ;
6222 return 0;
6223}
6224_ACEOF
6225rm -f conftest.$ac_objext
7a197a62
AK
6226if { (ac_try="$ac_compile"
6227case "(($ac_try" in
6228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6229 *) ac_try_echo=$ac_try;;
6230esac
ec6a6fbe
AK
6231eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6232$as_echo "$ac_try_echo") >&5
7a197a62 6233 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6234 ac_status=$?
8a2fc586
AK
6235 grep -v '^ *+' conftest.er1 >conftest.err
6236 rm -f conftest.er1
6237 cat conftest.err >&5
ec6a6fbe 6238 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6239 (exit $ac_status); } && {
6240 test -z "$ac_c_werror_flag" ||
6241 test ! -s conftest.err
6242 } && test -s conftest.$ac_objext; then
ad6254c5
AK
6243 ac_cv_member_struct_stat_st_rdev=yes
6244else
ec6a6fbe 6245 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6246sed 's/^/| /' conftest.$ac_ext >&5
6247
7a197a62 6248 ac_cv_member_struct_stat_st_rdev=no
ad6254c5 6249fi
7a197a62
AK
6250
6251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 6252fi
7a197a62
AK
6253
6254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 6255fi
ec6a6fbe
AK
6256{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
6257$as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; }
6258if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then
ad6254c5
AK
6259
6260cat >>confdefs.h <<_ACEOF
6261#define HAVE_STRUCT_STAT_ST_RDEV 1
6262_ACEOF
6263
6264
ad6254c5
AK
6265fi
6266
ec6a6fbe
AK
6267{ $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6268$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
ad6254c5 6269if test "${ac_cv_struct_tm+set}" = set; then
ec6a6fbe 6270 $as_echo_n "(cached) " >&6
ad6254c5
AK
6271else
6272 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6273/* confdefs.h. */
6274_ACEOF
6275cat confdefs.h >>conftest.$ac_ext
6276cat >>conftest.$ac_ext <<_ACEOF
6277/* end confdefs.h. */
6278#include <sys/types.h>
6279#include <time.h>
6280
6281int
6282main ()
6283{
25fbec5b
AK
6284struct tm tm;
6285 int *p = &tm.tm_sec;
ec6a6fbe 6286 return !p;
ad6254c5
AK
6287 ;
6288 return 0;
6289}
6290_ACEOF
6291rm -f conftest.$ac_objext
7a197a62
AK
6292if { (ac_try="$ac_compile"
6293case "(($ac_try" in
6294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6295 *) ac_try_echo=$ac_try;;
6296esac
ec6a6fbe
AK
6297eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6298$as_echo "$ac_try_echo") >&5
7a197a62 6299 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6300 ac_status=$?
8a2fc586
AK
6301 grep -v '^ *+' conftest.er1 >conftest.err
6302 rm -f conftest.er1
6303 cat conftest.err >&5
ec6a6fbe 6304 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6305 (exit $ac_status); } && {
6306 test -z "$ac_c_werror_flag" ||
6307 test ! -s conftest.err
6308 } && test -s conftest.$ac_objext; then
ad6254c5
AK
6309 ac_cv_struct_tm=time.h
6310else
ec6a6fbe 6311 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6312sed 's/^/| /' conftest.$ac_ext >&5
6313
7a197a62 6314 ac_cv_struct_tm=sys/time.h
ad6254c5 6315fi
7a197a62
AK
6316
6317rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 6318fi
ec6a6fbe
AK
6319{ $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6320$as_echo "$ac_cv_struct_tm" >&6; }
ad6254c5
AK
6321if test $ac_cv_struct_tm = sys/time.h; then
6322
6323cat >>confdefs.h <<\_ACEOF
6324#define TM_IN_SYS_TIME 1
6325_ACEOF
6326
6327fi
809fae91 6328
795ca3e5 6329
80992638 6330################################################################################
ad6254c5
AK
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
d0191583
JM
6345
6346
6347
6348for ac_func in gethostname getpagesize memset mkdir rmdir munmap setlocale \
6349 strcasecmp strchr strdup strncasecmp strerror strrchr strstr strtol strtoul \
6350 uname
ad6254c5 6351do
ec6a6fbe
AK
6352as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6353{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6354$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 6355if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 6356 $as_echo_n "(cached) " >&6
795ca3e5 6357else
ad6254c5 6358 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6359/* confdefs.h. */
6360_ACEOF
6361cat confdefs.h >>conftest.$ac_ext
6362cat >>conftest.$ac_ext <<_ACEOF
6363/* end confdefs.h. */
8a2fc586
AK
6364/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6365 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6366#define $ac_func innocuous_$ac_func
6367
ad6254c5
AK
6368/* System header to define __stub macros and hopefully few prototypes,
6369 which can conflict with char $ac_func (); below.
6370 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6371 <limits.h> exists even on freestanding compilers. */
8a2fc586 6372
ad6254c5
AK
6373#ifdef __STDC__
6374# include <limits.h>
6375#else
6376# include <assert.h>
6377#endif
8a2fc586
AK
6378
6379#undef $ac_func
6380
7a197a62
AK
6381/* Override any GCC internal prototype to avoid an error.
6382 Use char because int might match the return type of a GCC
6383 builtin and then its argument prototype would still apply. */
ad6254c5
AK
6384#ifdef __cplusplus
6385extern "C"
ad6254c5 6386#endif
ad6254c5
AK
6387char $ac_func ();
6388/* The GNU C library defines this for functions which it implements
6389 to always fail with ENOSYS. Some functions are actually named
6390 something starting with __ and the normal name is an alias. */
7a197a62 6391#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 6392choke me
ad6254c5
AK
6393#endif
6394
6395int
6396main ()
6397{
7a197a62 6398return $ac_func ();
ad6254c5
AK
6399 ;
6400 return 0;
6401}
6402_ACEOF
6403rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
6404if { (ac_try="$ac_link"
6405case "(($ac_try" in
6406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6407 *) ac_try_echo=$ac_try;;
6408esac
ec6a6fbe
AK
6409eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6410$as_echo "$ac_try_echo") >&5
7a197a62 6411 (eval "$ac_link") 2>conftest.er1
ad6254c5 6412 ac_status=$?
8a2fc586
AK
6413 grep -v '^ *+' conftest.er1 >conftest.err
6414 rm -f conftest.er1
6415 cat conftest.err >&5
ec6a6fbe 6416 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6417 (exit $ac_status); } && {
6418 test -z "$ac_c_werror_flag" ||
6419 test ! -s conftest.err
ec6a6fbe
AK
6420 } && test -s conftest$ac_exeext && {
6421 test "$cross_compiling" = yes ||
6422 $as_test_x conftest$ac_exeext
6423 }; then
fc54be10
AK
6424 eval "$as_ac_var=yes"
6425else
ec6a6fbe 6426 $as_echo "$as_me: failed program was:" >&5
fc54be10
AK
6427sed 's/^/| /' conftest.$ac_ext >&5
6428
6429 eval "$as_ac_var=no"
6430fi
6431
ec6a6fbe 6432rm -rf conftest.dSYM
25fbec5b 6433rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
fc54be10
AK
6434 conftest$ac_exeext conftest.$ac_ext
6435fi
ec6a6fbe
AK
6436ac_res=`eval 'as_val=${'$as_ac_var'}
6437 $as_echo "$as_val"'`
6438 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6439$as_echo "$ac_res" >&6; }
6440as_val=`eval 'as_val=${'$as_ac_var'}
6441 $as_echo "$as_val"'`
6442 if test "x$as_val" = x""yes; then
ad6254c5 6443 cat >>confdefs.h <<_ACEOF
ec6a6fbe 6444#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
6445_ACEOF
6446
6447else
ec6a6fbe
AK
6448 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
6449$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5
AK
6450 { (exit 1); exit 1; }; }
6451fi
6452done
795ca3e5 6453
ad6254c5
AK
6454# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6455# for constant arguments. Useless!
ec6a6fbe
AK
6456{ $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
6457$as_echo_n "checking for working alloca.h... " >&6; }
ad6254c5 6458if test "${ac_cv_working_alloca_h+set}" = set; then
ec6a6fbe 6459 $as_echo_n "(cached) " >&6
ad6254c5
AK
6460else
6461 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6462/* confdefs.h. */
6463_ACEOF
6464cat confdefs.h >>conftest.$ac_ext
6465cat >>conftest.$ac_ext <<_ACEOF
6466/* end confdefs.h. */
6467#include <alloca.h>
6468int
6469main ()
6470{
6471char *p = (char *) alloca (2 * sizeof (int));
7a197a62 6472 if (p) return 0;
ad6254c5
AK
6473 ;
6474 return 0;
6475}
6476_ACEOF
6477rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
6478if { (ac_try="$ac_link"
6479case "(($ac_try" in
6480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6481 *) ac_try_echo=$ac_try;;
6482esac
ec6a6fbe
AK
6483eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6484$as_echo "$ac_try_echo") >&5
7a197a62 6485 (eval "$ac_link") 2>conftest.er1
ad6254c5 6486 ac_status=$?
8a2fc586
AK
6487 grep -v '^ *+' conftest.er1 >conftest.err
6488 rm -f conftest.er1
6489 cat conftest.err >&5
ec6a6fbe 6490 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6491 (exit $ac_status); } && {
6492 test -z "$ac_c_werror_flag" ||
6493 test ! -s conftest.err
ec6a6fbe
AK
6494 } && test -s conftest$ac_exeext && {
6495 test "$cross_compiling" = yes ||
6496 $as_test_x conftest$ac_exeext
6497 }; then
ad6254c5
AK
6498 ac_cv_working_alloca_h=yes
6499else
ec6a6fbe 6500 $as_echo "$as_me: failed program was:" >&5
ad6254c5 6501sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 6502
7a197a62 6503 ac_cv_working_alloca_h=no
ad6254c5 6504fi
7a197a62 6505
ec6a6fbe 6506rm -rf conftest.dSYM
25fbec5b 6507rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 6508 conftest$ac_exeext conftest.$ac_ext
ad6254c5 6509fi
ec6a6fbe
AK
6510{ $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6511$as_echo "$ac_cv_working_alloca_h" >&6; }
ad6254c5
AK
6512if test $ac_cv_working_alloca_h = yes; then
6513
6514cat >>confdefs.h <<\_ACEOF
6515#define HAVE_ALLOCA_H 1
6516_ACEOF
6517
6518fi
6519
ec6a6fbe
AK
6520{ $as_echo "$as_me:$LINENO: checking for alloca" >&5
6521$as_echo_n "checking for alloca... " >&6; }
ad6254c5 6522if test "${ac_cv_func_alloca_works+set}" = set; then
ec6a6fbe 6523 $as_echo_n "(cached) " >&6
ad6254c5
AK
6524else
6525 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6526/* confdefs.h. */
6527_ACEOF
6528cat confdefs.h >>conftest.$ac_ext
6529cat >>conftest.$ac_ext <<_ACEOF
6530/* end confdefs.h. */
6531#ifdef __GNUC__
6532# define alloca __builtin_alloca
6533#else
6534# ifdef _MSC_VER
6535# include <malloc.h>
6536# define alloca _alloca
6537# else
25fbec5b 6538# ifdef HAVE_ALLOCA_H
ad6254c5
AK
6539# include <alloca.h>
6540# else
6541# ifdef _AIX
6542 #pragma alloca
6543# else
6544# ifndef alloca /* predefined by HP cc +Olibcalls */
6545char *alloca ();
6546# endif
6547# endif
6548# endif
6549# endif
6550#endif
6551
6552int
6553main ()
6554{
6555char *p = (char *) alloca (1);
7a197a62 6556 if (p) return 0;
ad6254c5
AK
6557 ;
6558 return 0;
6559}
6560_ACEOF
6561rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
6562if { (ac_try="$ac_link"
6563case "(($ac_try" in
6564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6565 *) ac_try_echo=$ac_try;;
6566esac
ec6a6fbe
AK
6567eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6568$as_echo "$ac_try_echo") >&5
7a197a62 6569 (eval "$ac_link") 2>conftest.er1
ad6254c5 6570 ac_status=$?
8a2fc586
AK
6571 grep -v '^ *+' conftest.er1 >conftest.err
6572 rm -f conftest.er1
6573 cat conftest.err >&5
ec6a6fbe 6574 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6575 (exit $ac_status); } && {
6576 test -z "$ac_c_werror_flag" ||
6577 test ! -s conftest.err
ec6a6fbe
AK
6578 } && test -s conftest$ac_exeext && {
6579 test "$cross_compiling" = yes ||
6580 $as_test_x conftest$ac_exeext
6581 }; then
ad6254c5
AK
6582 ac_cv_func_alloca_works=yes
6583else
ec6a6fbe 6584 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6585sed 's/^/| /' conftest.$ac_ext >&5
6586
7a197a62 6587 ac_cv_func_alloca_works=no
ad6254c5 6588fi
7a197a62 6589
ec6a6fbe 6590rm -rf conftest.dSYM
25fbec5b 6591rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 6592 conftest$ac_exeext conftest.$ac_ext
ad6254c5 6593fi
ec6a6fbe
AK
6594{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6595$as_echo "$ac_cv_func_alloca_works" >&6; }
ad6254c5
AK
6596
6597if test $ac_cv_func_alloca_works = yes; then
6598
6599cat >>confdefs.h <<\_ACEOF
6600#define HAVE_ALLOCA 1
6601_ACEOF
6602
6603else
6604 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6605# that cause trouble. Some versions do not even contain alloca or
6606# contain a buggy version. If you still want to use their alloca,
6607# use ar to extract alloca.o from them instead of compiling alloca.c.
6608
7a197a62 6609ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
ad6254c5
AK
6610
6611cat >>confdefs.h <<\_ACEOF
6612#define C_ALLOCA 1
6613_ACEOF
6614
6615
ec6a6fbe
AK
6616{ $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6617$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
ad6254c5 6618if test "${ac_cv_os_cray+set}" = set; then
ec6a6fbe 6619 $as_echo_n "(cached) " >&6
ad6254c5
AK
6620else
6621 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6622/* confdefs.h. */
6623_ACEOF
6624cat confdefs.h >>conftest.$ac_ext
6625cat >>conftest.$ac_ext <<_ACEOF
6626/* end confdefs.h. */
7a197a62 6627#if defined CRAY && ! defined CRAY2
ad6254c5
AK
6628webecray
6629#else
6630wenotbecray
6631#endif
6632
6633_ACEOF
795ca3e5 6634if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ad6254c5
AK
6635 $EGREP "webecray" >/dev/null 2>&1; then
6636 ac_cv_os_cray=yes
6637else
6638 ac_cv_os_cray=no
795ca3e5
AK
6639fi
6640rm -f conftest*
6641
795ca3e5 6642fi
ec6a6fbe
AK
6643{ $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6644$as_echo "$ac_cv_os_cray" >&6; }
ad6254c5
AK
6645if test $ac_cv_os_cray = yes; then
6646 for ac_func in _getb67 GETB67 getb67; do
ec6a6fbe
AK
6647 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6648{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6649$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 6650if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 6651 $as_echo_n "(cached) " >&6
ad6254c5
AK
6652else
6653 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6654/* confdefs.h. */
6655_ACEOF
6656cat confdefs.h >>conftest.$ac_ext
6657cat >>conftest.$ac_ext <<_ACEOF
6658/* end confdefs.h. */
8a2fc586
AK
6659/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6660 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6661#define $ac_func innocuous_$ac_func
6662
ad6254c5
AK
6663/* System header to define __stub macros and hopefully few prototypes,
6664 which can conflict with char $ac_func (); below.
6665 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6666 <limits.h> exists even on freestanding compilers. */
8a2fc586 6667
ad6254c5
AK
6668#ifdef __STDC__
6669# include <limits.h>
6670#else
6671# include <assert.h>
6672#endif
8a2fc586
AK
6673
6674#undef $ac_func
6675
7a197a62
AK
6676/* Override any GCC internal prototype to avoid an error.
6677 Use char because int might match the return type of a GCC
6678 builtin and then its argument prototype would still apply. */
ad6254c5
AK
6679#ifdef __cplusplus
6680extern "C"
ad6254c5 6681#endif
ad6254c5
AK
6682char $ac_func ();
6683/* The GNU C library defines this for functions which it implements
6684 to always fail with ENOSYS. Some functions are actually named
6685 something starting with __ and the normal name is an alias. */
7a197a62 6686#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 6687choke me
ad6254c5
AK
6688#endif
6689
6690int
6691main ()
6692{
7a197a62 6693return $ac_func ();
ad6254c5
AK
6694 ;
6695 return 0;
6696}
6697_ACEOF
6698rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
6699if { (ac_try="$ac_link"
6700case "(($ac_try" in
6701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6702 *) ac_try_echo=$ac_try;;
6703esac
ec6a6fbe
AK
6704eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6705$as_echo "$ac_try_echo") >&5
7a197a62 6706 (eval "$ac_link") 2>conftest.er1
ad6254c5 6707 ac_status=$?
8a2fc586
AK
6708 grep -v '^ *+' conftest.er1 >conftest.err
6709 rm -f conftest.er1
6710 cat conftest.err >&5
ec6a6fbe 6711 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6712 (exit $ac_status); } && {
6713 test -z "$ac_c_werror_flag" ||
6714 test ! -s conftest.err
ec6a6fbe
AK
6715 } && test -s conftest$ac_exeext && {
6716 test "$cross_compiling" = yes ||
6717 $as_test_x conftest$ac_exeext
6718 }; then
ad6254c5
AK
6719 eval "$as_ac_var=yes"
6720else
ec6a6fbe 6721 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6722sed 's/^/| /' conftest.$ac_ext >&5
6723
7a197a62 6724 eval "$as_ac_var=no"
ad6254c5 6725fi
7a197a62 6726
ec6a6fbe 6727rm -rf conftest.dSYM
25fbec5b 6728rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 6729 conftest$ac_exeext conftest.$ac_ext
ad6254c5 6730fi
ec6a6fbe
AK
6731ac_res=`eval 'as_val=${'$as_ac_var'}
6732 $as_echo "$as_val"'`
6733 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6734$as_echo "$ac_res" >&6; }
6735as_val=`eval 'as_val=${'$as_ac_var'}
6736 $as_echo "$as_val"'`
6737 if test "x$as_val" = x""yes; then
80992638 6738
ad6254c5
AK
6739cat >>confdefs.h <<_ACEOF
6740#define CRAY_STACKSEG_END $ac_func
6741_ACEOF
6742
6743 break
6744fi
6745
6746 done
6747fi
6748
ec6a6fbe
AK
6749{ $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6750$as_echo_n "checking stack direction for C alloca... " >&6; }
ad6254c5 6751if test "${ac_cv_c_stack_direction+set}" = set; then
ec6a6fbe 6752 $as_echo_n "(cached) " >&6
ad6254c5
AK
6753else
6754 if test "$cross_compiling" = yes; then
6755 ac_cv_c_stack_direction=0
6756else
6757 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6758/* confdefs.h. */
6759_ACEOF
6760cat confdefs.h >>conftest.$ac_ext
6761cat >>conftest.$ac_ext <<_ACEOF
6762/* end confdefs.h. */
7a197a62 6763$ac_includes_default
ad6254c5
AK
6764int
6765find_stack_direction ()
6766{
6767 static char *addr = 0;
6768 auto char dummy;
6769 if (addr == 0)
6770 {
6771 addr = &dummy;
6772 return find_stack_direction ();
6773 }
6774 else
6775 return (&dummy > addr) ? 1 : -1;
6776}
6777
6778int
6779main ()
6780{
7a197a62 6781 return find_stack_direction () < 0;
ad6254c5
AK
6782}
6783_ACEOF
6784rm -f conftest$ac_exeext
7a197a62
AK
6785if { (ac_try="$ac_link"
6786case "(($ac_try" in
6787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6788 *) ac_try_echo=$ac_try;;
6789esac
ec6a6fbe
AK
6790eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6791$as_echo "$ac_try_echo") >&5
7a197a62 6792 (eval "$ac_link") 2>&5
ad6254c5 6793 ac_status=$?
ec6a6fbe 6794 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 6795 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
6796 { (case "(($ac_try" in
6797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6798 *) ac_try_echo=$ac_try;;
6799esac
ec6a6fbe
AK
6800eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6801$as_echo "$ac_try_echo") >&5
7a197a62 6802 (eval "$ac_try") 2>&5
ad6254c5 6803 ac_status=$?
ec6a6fbe 6804 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
6805 (exit $ac_status); }; }; then
6806 ac_cv_c_stack_direction=1
6807else
ec6a6fbe
AK
6808 $as_echo "$as_me: program exited with status $ac_status" >&5
6809$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6810sed 's/^/| /' conftest.$ac_ext >&5
6811
6812( exit $ac_status )
6813ac_cv_c_stack_direction=-1
6814fi
ec6a6fbe 6815rm -rf conftest.dSYM
7a197a62 6816rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 6817fi
7a197a62
AK
6818
6819
ad6254c5 6820fi
ec6a6fbe
AK
6821{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6822$as_echo "$ac_cv_c_stack_direction" >&6; }
ad6254c5
AK
6823
6824cat >>confdefs.h <<_ACEOF
6825#define STACK_DIRECTION $ac_cv_c_stack_direction
6826_ACEOF
6827
6828
6829fi
6830
ec6a6fbe
AK
6831{ $as_echo "$as_me:$LINENO: checking whether closedir returns void" >&5
6832$as_echo_n "checking whether closedir returns void... " >&6; }
ad6254c5 6833if test "${ac_cv_func_closedir_void+set}" = set; then
ec6a6fbe 6834 $as_echo_n "(cached) " >&6
ad6254c5
AK
6835else
6836 if test "$cross_compiling" = yes; then
6837 ac_cv_func_closedir_void=yes
6838else
6839 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6840/* confdefs.h. */
6841_ACEOF
6842cat confdefs.h >>conftest.$ac_ext
6843cat >>conftest.$ac_ext <<_ACEOF
6844/* end confdefs.h. */
6845$ac_includes_default
6846#include <$ac_header_dirent>
6847#ifndef __cplusplus
6848int closedir ();
6849#endif
6850
6851int
6852main ()
6853{
7a197a62 6854return closedir (opendir (".")) != 0;
ad6254c5
AK
6855 ;
6856 return 0;
6857}
6858_ACEOF
6859rm -f conftest$ac_exeext
7a197a62
AK
6860if { (ac_try="$ac_link"
6861case "(($ac_try" in
6862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6863 *) ac_try_echo=$ac_try;;
6864esac
ec6a6fbe
AK
6865eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6866$as_echo "$ac_try_echo") >&5
7a197a62 6867 (eval "$ac_link") 2>&5
ad6254c5 6868 ac_status=$?
ec6a6fbe 6869 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 6870 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
6871 { (case "(($ac_try" in
6872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6873 *) ac_try_echo=$ac_try;;
6874esac
ec6a6fbe
AK
6875eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6876$as_echo "$ac_try_echo") >&5
7a197a62 6877 (eval "$ac_try") 2>&5
ad6254c5 6878 ac_status=$?
ec6a6fbe 6879 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
6880 (exit $ac_status); }; }; then
6881 ac_cv_func_closedir_void=no
6882else
ec6a6fbe
AK
6883 $as_echo "$as_me: program exited with status $ac_status" >&5
6884$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6885sed 's/^/| /' conftest.$ac_ext >&5
6886
6887( exit $ac_status )
6888ac_cv_func_closedir_void=yes
6889fi
ec6a6fbe 6890rm -rf conftest.dSYM
7a197a62 6891rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 6892fi
7a197a62
AK
6893
6894
ad6254c5 6895fi
ec6a6fbe
AK
6896{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
6897$as_echo "$ac_cv_func_closedir_void" >&6; }
ad6254c5
AK
6898if test $ac_cv_func_closedir_void = yes; then
6899
6900cat >>confdefs.h <<\_ACEOF
6901#define CLOSEDIR_VOID 1
6902_ACEOF
6903
6904fi
6905
6906
7a197a62 6907for ac_header in vfork.h
ad6254c5 6908do
ec6a6fbe 6909as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 6910if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
6911 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6912$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 6913if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 6914 $as_echo_n "(cached) " >&6
ad6254c5 6915fi
ec6a6fbe
AK
6916ac_res=`eval 'as_val=${'$as_ac_Header'}
6917 $as_echo "$as_val"'`
6918 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6919$as_echo "$ac_res" >&6; }
ad6254c5
AK
6920else
6921 # Is the header compilable?
ec6a6fbe
AK
6922{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6923$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 6924cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6925/* confdefs.h. */
6926_ACEOF
6927cat confdefs.h >>conftest.$ac_ext
6928cat >>conftest.$ac_ext <<_ACEOF
6929/* end confdefs.h. */
6930$ac_includes_default
6931#include <$ac_header>
6932_ACEOF
6933rm -f conftest.$ac_objext
7a197a62
AK
6934if { (ac_try="$ac_compile"
6935case "(($ac_try" in
6936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6937 *) ac_try_echo=$ac_try;;
6938esac
ec6a6fbe
AK
6939eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6940$as_echo "$ac_try_echo") >&5
7a197a62 6941 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6942 ac_status=$?
8a2fc586
AK
6943 grep -v '^ *+' conftest.er1 >conftest.err
6944 rm -f conftest.er1
6945 cat conftest.err >&5
ec6a6fbe 6946 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6947 (exit $ac_status); } && {
6948 test -z "$ac_c_werror_flag" ||
6949 test ! -s conftest.err
6950 } && test -s conftest.$ac_objext; then
ad6254c5
AK
6951 ac_header_compiler=yes
6952else
ec6a6fbe 6953 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6954sed 's/^/| /' conftest.$ac_ext >&5
6955
7a197a62 6956 ac_header_compiler=no
ad6254c5 6957fi
7a197a62
AK
6958
6959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
6960{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6961$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
6962
6963# Is the header present?
ec6a6fbe
AK
6964{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6965$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 6966cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6967/* confdefs.h. */
6968_ACEOF
6969cat confdefs.h >>conftest.$ac_ext
6970cat >>conftest.$ac_ext <<_ACEOF
6971/* end confdefs.h. */
6972#include <$ac_header>
6973_ACEOF
7a197a62
AK
6974if { (ac_try="$ac_cpp conftest.$ac_ext"
6975case "(($ac_try" in
6976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6977 *) ac_try_echo=$ac_try;;
6978esac
ec6a6fbe
AK
6979eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6980$as_echo "$ac_try_echo") >&5
7a197a62 6981 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
6982 ac_status=$?
6983 grep -v '^ *+' conftest.er1 >conftest.err
6984 rm -f conftest.er1
6985 cat conftest.err >&5
ec6a6fbe 6986 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6987 (exit $ac_status); } >/dev/null && {
6988 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6989 test ! -s conftest.err
6990 }; then
ad6254c5
AK
6991 ac_header_preproc=yes
6992else
ec6a6fbe 6993 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6994sed 's/^/| /' conftest.$ac_ext >&5
6995
6996 ac_header_preproc=no
6997fi
7a197a62 6998
ad6254c5 6999rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
7000{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7001$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
7002
7003# So? What about this header?
8a2fc586
AK
7004case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7005 yes:no: )
ec6a6fbe
AK
7006 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7007$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7008 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7009$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 7010 ac_header_preproc=yes
ad6254c5 7011 ;;
8a2fc586 7012 no:yes:* )
ec6a6fbe
AK
7013 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7014$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7015 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7016$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7017 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7018$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7019 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7020$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7021 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7022$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7023 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7024$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 7025
ad6254c5
AK
7026 ;;
7027esac
ec6a6fbe
AK
7028{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7029$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 7030if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 7031 $as_echo_n "(cached) " >&6
ad6254c5 7032else
8a2fc586 7033 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 7034fi
ec6a6fbe
AK
7035ac_res=`eval 'as_val=${'$as_ac_Header'}
7036 $as_echo "$as_val"'`
7037 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7038$as_echo "$ac_res" >&6; }
ad6254c5 7039
795ca3e5 7040fi
ec6a6fbe
AK
7041as_val=`eval 'as_val=${'$as_ac_Header'}
7042 $as_echo "$as_val"'`
7043 if test "x$as_val" = x""yes; then
ad6254c5 7044 cat >>confdefs.h <<_ACEOF
ec6a6fbe 7045#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
7046_ACEOF
7047
7048fi
7049
7050done
795ca3e5 7051
ad6254c5
AK
7052
7053
7054for ac_func in fork vfork
7055do
ec6a6fbe
AK
7056as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7057{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7058$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 7059if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 7060 $as_echo_n "(cached) " >&6
795ca3e5 7061else
ad6254c5 7062 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7063/* confdefs.h. */
7064_ACEOF
7065cat confdefs.h >>conftest.$ac_ext
7066cat >>conftest.$ac_ext <<_ACEOF
7067/* end confdefs.h. */
8a2fc586
AK
7068/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7069 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7070#define $ac_func innocuous_$ac_func
7071
ad6254c5
AK
7072/* System header to define __stub macros and hopefully few prototypes,
7073 which can conflict with char $ac_func (); below.
7074 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7075 <limits.h> exists even on freestanding compilers. */
8a2fc586 7076
ad6254c5
AK
7077#ifdef __STDC__
7078# include <limits.h>
7079#else
7080# include <assert.h>
795ca3e5 7081#endif
8a2fc586
AK
7082
7083#undef $ac_func
7084
7a197a62
AK
7085/* Override any GCC internal prototype to avoid an error.
7086 Use char because int might match the return type of a GCC
7087 builtin and then its argument prototype would still apply. */
795ca3e5 7088#ifdef __cplusplus
ad6254c5 7089extern "C"
ad6254c5 7090#endif
ad6254c5
AK
7091char $ac_func ();
7092/* The GNU C library defines this for functions which it implements
7093 to always fail with ENOSYS. Some functions are actually named
7094 something starting with __ and the normal name is an alias. */
7a197a62 7095#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 7096choke me
795ca3e5
AK
7097#endif
7098
ad6254c5
AK
7099int
7100main ()
7101{
7a197a62 7102return $ac_func ();
ad6254c5
AK
7103 ;
7104 return 0;
7105}
7106_ACEOF
7107rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
7108if { (ac_try="$ac_link"
7109case "(($ac_try" in
7110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7111 *) ac_try_echo=$ac_try;;
7112esac
ec6a6fbe
AK
7113eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7114$as_echo "$ac_try_echo") >&5
7a197a62 7115 (eval "$ac_link") 2>conftest.er1
ad6254c5 7116 ac_status=$?
8a2fc586
AK
7117 grep -v '^ *+' conftest.er1 >conftest.err
7118 rm -f conftest.er1
7119 cat conftest.err >&5
ec6a6fbe 7120 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7121 (exit $ac_status); } && {
7122 test -z "$ac_c_werror_flag" ||
7123 test ! -s conftest.err
ec6a6fbe
AK
7124 } && test -s conftest$ac_exeext && {
7125 test "$cross_compiling" = yes ||
7126 $as_test_x conftest$ac_exeext
7127 }; then
ad6254c5 7128 eval "$as_ac_var=yes"
795ca3e5 7129else
ec6a6fbe 7130 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7131sed 's/^/| /' conftest.$ac_ext >&5
7132
7a197a62 7133 eval "$as_ac_var=no"
795ca3e5 7134fi
7a197a62 7135
ec6a6fbe 7136rm -rf conftest.dSYM
25fbec5b 7137rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 7138 conftest$ac_exeext conftest.$ac_ext
ad6254c5 7139fi
ec6a6fbe
AK
7140ac_res=`eval 'as_val=${'$as_ac_var'}
7141 $as_echo "$as_val"'`
7142 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7143$as_echo "$ac_res" >&6; }
7144as_val=`eval 'as_val=${'$as_ac_var'}
7145 $as_echo "$as_val"'`
7146 if test "x$as_val" = x""yes; then
ad6254c5 7147 cat >>confdefs.h <<_ACEOF
ec6a6fbe 7148#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
7149_ACEOF
7150
7151fi
7152done
7153
7154if test "x$ac_cv_func_fork" = xyes; then
ec6a6fbe
AK
7155 { $as_echo "$as_me:$LINENO: checking for working fork" >&5
7156$as_echo_n "checking for working fork... " >&6; }
ad6254c5 7157if test "${ac_cv_func_fork_works+set}" = set; then
ec6a6fbe 7158 $as_echo_n "(cached) " >&6
ad6254c5
AK
7159else
7160 if test "$cross_compiling" = yes; then
7161 ac_cv_func_fork_works=cross
7162else
7163 cat >conftest.$ac_ext <<_ACEOF
7a197a62
AK
7164/* confdefs.h. */
7165_ACEOF
7166cat confdefs.h >>conftest.$ac_ext
7167cat >>conftest.$ac_ext <<_ACEOF
7168/* end confdefs.h. */
7169$ac_includes_default
7170int
7171main ()
7172{
7173
7174 /* By Ruediger Kuhlmann. */
7175 return fork () < 0;
7176
7177 ;
7178 return 0;
7179}
ad6254c5
AK
7180_ACEOF
7181rm -f conftest$ac_exeext
7a197a62
AK
7182if { (ac_try="$ac_link"
7183case "(($ac_try" in
7184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7185 *) ac_try_echo=$ac_try;;
7186esac
ec6a6fbe
AK
7187eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7188$as_echo "$ac_try_echo") >&5
7a197a62 7189 (eval "$ac_link") 2>&5
ad6254c5 7190 ac_status=$?
ec6a6fbe 7191 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7192 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7193 { (case "(($ac_try" in
7194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7195 *) ac_try_echo=$ac_try;;
7196esac
ec6a6fbe
AK
7197eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7198$as_echo "$ac_try_echo") >&5
7a197a62 7199 (eval "$ac_try") 2>&5
ad6254c5 7200 ac_status=$?
ec6a6fbe 7201 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7202 (exit $ac_status); }; }; then
7203 ac_cv_func_fork_works=yes
7204else
ec6a6fbe
AK
7205 $as_echo "$as_me: program exited with status $ac_status" >&5
7206$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7207sed 's/^/| /' conftest.$ac_ext >&5
7208
7209( exit $ac_status )
7210ac_cv_func_fork_works=no
7211fi
ec6a6fbe 7212rm -rf conftest.dSYM
7a197a62 7213rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7214fi
7a197a62
AK
7215
7216
ad6254c5 7217fi
ec6a6fbe
AK
7218{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
7219$as_echo "$ac_cv_func_fork_works" >&6; }
ad6254c5
AK
7220
7221else
7222 ac_cv_func_fork_works=$ac_cv_func_fork
7223fi
7224if test "x$ac_cv_func_fork_works" = xcross; then
7225 case $host in
7226 *-*-amigaos* | *-*-msdosdjgpp*)
7227 # Override, as these systems have only a dummy fork() stub
7228 ac_cv_func_fork_works=no
7229 ;;
7230 *)
7231 ac_cv_func_fork_works=yes
7232 ;;
7233 esac
ec6a6fbe
AK
7234 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
7235$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
ad6254c5
AK
7236fi
7237ac_cv_func_vfork_works=$ac_cv_func_vfork
7238if test "x$ac_cv_func_vfork" = xyes; then
ec6a6fbe
AK
7239 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
7240$as_echo_n "checking for working vfork... " >&6; }
ad6254c5 7241if test "${ac_cv_func_vfork_works+set}" = set; then
ec6a6fbe 7242 $as_echo_n "(cached) " >&6
ad6254c5
AK
7243else
7244 if test "$cross_compiling" = yes; then
7245 ac_cv_func_vfork_works=cross
7246else
7247 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7248/* confdefs.h. */
7249_ACEOF
7250cat confdefs.h >>conftest.$ac_ext
7251cat >>conftest.$ac_ext <<_ACEOF
7252/* end confdefs.h. */
7253/* Thanks to Paul Eggert for this test. */
7a197a62 7254$ac_includes_default
ad6254c5 7255#include <sys/wait.h>
25fbec5b 7256#ifdef HAVE_VFORK_H
ad6254c5
AK
7257# include <vfork.h>
7258#endif
7259/* On some sparc systems, changes by the child to local and incoming
7260 argument registers are propagated back to the parent. The compiler
7261 is told about this with #include <vfork.h>, but some compilers
7262 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
7263 static variable whose address is put into a register that is
7264 clobbered by the vfork. */
7265static void
7266#ifdef __cplusplus
7267sparc_address_test (int arg)
7268# else
7269sparc_address_test (arg) int arg;
7270#endif
7271{
7272 static pid_t child;
7273 if (!child) {
7274 child = vfork ();
7275 if (child < 0) {
7276 perror ("vfork");
7277 _exit(2);
7278 }
7279 if (!child) {
7280 arg = getpid();
7281 write(-1, "", 0);
7282 _exit (arg);
7283 }
7284 }
7285}
7286
7287int
7288main ()
7289{
7290 pid_t parent = getpid ();
7291 pid_t child;
7292
7293 sparc_address_test (0);
7294
7295 child = vfork ();
7296
7297 if (child == 0) {
7298 /* Here is another test for sparc vfork register problems. This
7299 test uses lots of local variables, at least as many local
7300 variables as main has allocated so far including compiler
7301 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
7302 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
7303 reuse the register of parent for one of the local variables,
7304 since it will think that parent can't possibly be used any more
7305 in this routine. Assigning to the local variable will thus
7306 munge parent in the parent process. */
7307 pid_t
7308 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
7309 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
7310 /* Convince the compiler that p..p7 are live; otherwise, it might
7311 use the same hardware register for all 8 local variables. */
7312 if (p != p1 || p != p2 || p != p3 || p != p4
7313 || p != p5 || p != p6 || p != p7)
7314 _exit(1);
7315
7316 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
7317 from child file descriptors. If the child closes a descriptor
7318 before it execs or exits, this munges the parent's descriptor
7319 as well. Test for this by closing stdout in the child. */
7320 _exit(close(fileno(stdout)) != 0);
7321 } else {
7322 int status;
7323 struct stat st;
7324
7325 while (wait(&status) != child)
7326 ;
7a197a62 7327 return (
ad6254c5
AK
7328 /* Was there some problem with vforking? */
7329 child < 0
7330
7331 /* Did the child fail? (This shouldn't happen.) */
7332 || status
7333
7334 /* Did the vfork/compiler bug occur? */
7335 || parent != getpid()
7336
7337 /* Did the file descriptor bug occur? */
7338 || fstat(fileno(stdout), &st) != 0
7339 );
7340 }
7341}
7342_ACEOF
7343rm -f conftest$ac_exeext
7a197a62
AK
7344if { (ac_try="$ac_link"
7345case "(($ac_try" in
7346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7347 *) ac_try_echo=$ac_try;;
7348esac
ec6a6fbe
AK
7349eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7350$as_echo "$ac_try_echo") >&5
7a197a62 7351 (eval "$ac_link") 2>&5
ad6254c5 7352 ac_status=$?
ec6a6fbe 7353 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7354 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7355 { (case "(($ac_try" in
7356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7357 *) ac_try_echo=$ac_try;;
7358esac
ec6a6fbe
AK
7359eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7360$as_echo "$ac_try_echo") >&5
7a197a62 7361 (eval "$ac_try") 2>&5
ad6254c5 7362 ac_status=$?
ec6a6fbe 7363 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7364 (exit $ac_status); }; }; then
7365 ac_cv_func_vfork_works=yes
7366else
ec6a6fbe
AK
7367 $as_echo "$as_me: program exited with status $ac_status" >&5
7368$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7369sed 's/^/| /' conftest.$ac_ext >&5
7370
7371( exit $ac_status )
7372ac_cv_func_vfork_works=no
7373fi
ec6a6fbe 7374rm -rf conftest.dSYM
7a197a62 7375rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7376fi
7a197a62
AK
7377
7378
ad6254c5 7379fi
ec6a6fbe
AK
7380{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
7381$as_echo "$ac_cv_func_vfork_works" >&6; }
ad6254c5
AK
7382
7383fi;
7384if test "x$ac_cv_func_fork_works" = xcross; then
8a2fc586 7385 ac_cv_func_vfork_works=$ac_cv_func_vfork
ec6a6fbe
AK
7386 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
7387$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
ad6254c5
AK
7388fi
7389
7390if test "x$ac_cv_func_vfork_works" = xyes; then
7391
7392cat >>confdefs.h <<\_ACEOF
7393#define HAVE_WORKING_VFORK 1
7394_ACEOF
7395
7396else
7397
7398cat >>confdefs.h <<\_ACEOF
7399#define vfork fork
7400_ACEOF
7401
7402fi
7403if test "x$ac_cv_func_fork_works" = xyes; then
7404
7405cat >>confdefs.h <<\_ACEOF
7406#define HAVE_WORKING_FORK 1
7407_ACEOF
7408
7409fi
7410
ec6a6fbe
AK
7411{ $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
7412$as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
ad6254c5 7413if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
ec6a6fbe 7414 $as_echo_n "(cached) " >&6
ad6254c5
AK
7415else
7416 rm -f conftest.sym conftest.file
7417echo >conftest.file
7418if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
7419 if test "$cross_compiling" = yes; then
7420 ac_cv_func_lstat_dereferences_slashed_symlink=no
7421else
7422 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7423/* confdefs.h. */
7424_ACEOF
7425cat confdefs.h >>conftest.$ac_ext
7426cat >>conftest.$ac_ext <<_ACEOF
7427/* end confdefs.h. */
7428$ac_includes_default
7429int
7430main ()
7431{
7432struct stat sbuf;
7433 /* Linux will dereference the symlink and fail.
8a2fc586
AK
7434 That is better in the sense that it means we will not
7435 have to compile and use the lstat wrapper. */
7a197a62 7436 return lstat ("conftest.sym/", &sbuf) == 0;
ad6254c5
AK
7437 ;
7438 return 0;
7439}
7440_ACEOF
7441rm -f conftest$ac_exeext
7a197a62
AK
7442if { (ac_try="$ac_link"
7443case "(($ac_try" in
7444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7445 *) ac_try_echo=$ac_try;;
7446esac
ec6a6fbe
AK
7447eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7448$as_echo "$ac_try_echo") >&5
7a197a62 7449 (eval "$ac_link") 2>&5
ad6254c5 7450 ac_status=$?
ec6a6fbe 7451 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7452 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7453 { (case "(($ac_try" in
7454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7455 *) ac_try_echo=$ac_try;;
7456esac
ec6a6fbe
AK
7457eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7458$as_echo "$ac_try_echo") >&5
7a197a62 7459 (eval "$ac_try") 2>&5
ad6254c5 7460 ac_status=$?
ec6a6fbe 7461 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7462 (exit $ac_status); }; }; then
7463 ac_cv_func_lstat_dereferences_slashed_symlink=yes
7464else
ec6a6fbe
AK
7465 $as_echo "$as_me: program exited with status $ac_status" >&5
7466$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7467sed 's/^/| /' conftest.$ac_ext >&5
7468
7469( exit $ac_status )
7470ac_cv_func_lstat_dereferences_slashed_symlink=no
7471fi
ec6a6fbe 7472rm -rf conftest.dSYM
7a197a62 7473rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7474fi
7a197a62
AK
7475
7476
ad6254c5
AK
7477else
7478 # If the `ln -s' command failed, then we probably don't even
7479 # have an lstat function.
7480 ac_cv_func_lstat_dereferences_slashed_symlink=no
7481fi
7482rm -f conftest.sym conftest.file
7483
7484fi
ec6a6fbe
AK
7485{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
7486$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
ad6254c5
AK
7487
7488test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
7489
7490cat >>confdefs.h <<_ACEOF
7491#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
7492_ACEOF
7493
7494
7495if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
7a197a62 7496 case " $LIBOBJS " in
8a2fc586 7497 *" lstat.$ac_objext "* ) ;;
7a197a62
AK
7498 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
7499 ;;
8a2fc586
AK
7500esac
7501
ad6254c5
AK
7502fi
7503
ec6a6fbe
AK
7504{ $as_echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
7505$as_echo_n "checking whether lstat accepts an empty string... " >&6; }
ad6254c5 7506if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
ec6a6fbe 7507 $as_echo_n "(cached) " >&6
ad6254c5
AK
7508else
7509 if test "$cross_compiling" = yes; then
7510 ac_cv_func_lstat_empty_string_bug=yes
7511else
7512 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7513/* confdefs.h. */
7514_ACEOF
7515cat confdefs.h >>conftest.$ac_ext
7516cat >>conftest.$ac_ext <<_ACEOF
7517/* end confdefs.h. */
7518$ac_includes_default
7519int
7520main ()
7521{
7522struct stat sbuf;
7a197a62 7523 return lstat ("", &sbuf) == 0;
ad6254c5
AK
7524 ;
7525 return 0;
7526}
7527_ACEOF
7528rm -f conftest$ac_exeext
7a197a62
AK
7529if { (ac_try="$ac_link"
7530case "(($ac_try" in
7531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7532 *) ac_try_echo=$ac_try;;
7533esac
ec6a6fbe
AK
7534eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7535$as_echo "$ac_try_echo") >&5
7a197a62 7536 (eval "$ac_link") 2>&5
ad6254c5 7537 ac_status=$?
ec6a6fbe 7538 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7539 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7540 { (case "(($ac_try" in
7541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7542 *) ac_try_echo=$ac_try;;
7543esac
ec6a6fbe
AK
7544eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7545$as_echo "$ac_try_echo") >&5
7a197a62 7546 (eval "$ac_try") 2>&5
ad6254c5 7547 ac_status=$?
ec6a6fbe 7548 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7549 (exit $ac_status); }; }; then
7a197a62 7550 ac_cv_func_lstat_empty_string_bug=no
ad6254c5 7551else
ec6a6fbe
AK
7552 $as_echo "$as_me: program exited with status $ac_status" >&5
7553$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7554sed 's/^/| /' conftest.$ac_ext >&5
7555
7556( exit $ac_status )
7a197a62 7557ac_cv_func_lstat_empty_string_bug=yes
ad6254c5 7558fi
ec6a6fbe 7559rm -rf conftest.dSYM
7a197a62 7560rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7561fi
7a197a62
AK
7562
7563
ad6254c5 7564fi
ec6a6fbe
AK
7565{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
7566$as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
ad6254c5 7567if test $ac_cv_func_lstat_empty_string_bug = yes; then
7a197a62 7568 case " $LIBOBJS " in
8a2fc586 7569 *" lstat.$ac_objext "* ) ;;
7a197a62
AK
7570 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
7571 ;;
8a2fc586
AK
7572esac
7573
ad6254c5
AK
7574
7575cat >>confdefs.h <<_ACEOF
7576#define HAVE_LSTAT_EMPTY_STRING_BUG 1
7577_ACEOF
7578
7579fi
7580
7581
7582for ac_header in stdlib.h
7583do
ec6a6fbe 7584as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 7585if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
7586 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7587$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 7588if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 7589 $as_echo_n "(cached) " >&6
ad6254c5 7590fi
ec6a6fbe
AK
7591ac_res=`eval 'as_val=${'$as_ac_Header'}
7592 $as_echo "$as_val"'`
7593 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7594$as_echo "$ac_res" >&6; }
ad6254c5
AK
7595else
7596 # Is the header compilable?
ec6a6fbe
AK
7597{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7598$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 7599cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7600/* confdefs.h. */
7601_ACEOF
7602cat confdefs.h >>conftest.$ac_ext
7603cat >>conftest.$ac_ext <<_ACEOF
7604/* end confdefs.h. */
7605$ac_includes_default
7606#include <$ac_header>
7607_ACEOF
7608rm -f conftest.$ac_objext
7a197a62
AK
7609if { (ac_try="$ac_compile"
7610case "(($ac_try" in
7611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7612 *) ac_try_echo=$ac_try;;
7613esac
ec6a6fbe
AK
7614eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7615$as_echo "$ac_try_echo") >&5
7a197a62 7616 (eval "$ac_compile") 2>conftest.er1
ad6254c5 7617 ac_status=$?
8a2fc586
AK
7618 grep -v '^ *+' conftest.er1 >conftest.err
7619 rm -f conftest.er1
7620 cat conftest.err >&5
ec6a6fbe 7621 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7622 (exit $ac_status); } && {
7623 test -z "$ac_c_werror_flag" ||
7624 test ! -s conftest.err
7625 } && test -s conftest.$ac_objext; then
ad6254c5
AK
7626 ac_header_compiler=yes
7627else
ec6a6fbe 7628 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7629sed 's/^/| /' conftest.$ac_ext >&5
7630
7a197a62 7631 ac_header_compiler=no
ad6254c5 7632fi
7a197a62
AK
7633
7634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
7635{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7636$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
7637
7638# Is the header present?
ec6a6fbe
AK
7639{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7640$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 7641cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7642/* confdefs.h. */
7643_ACEOF
7644cat confdefs.h >>conftest.$ac_ext
7645cat >>conftest.$ac_ext <<_ACEOF
7646/* end confdefs.h. */
7647#include <$ac_header>
7648_ACEOF
7a197a62
AK
7649if { (ac_try="$ac_cpp conftest.$ac_ext"
7650case "(($ac_try" in
7651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7652 *) ac_try_echo=$ac_try;;
7653esac
ec6a6fbe
AK
7654eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7655$as_echo "$ac_try_echo") >&5
7a197a62 7656 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
7657 ac_status=$?
7658 grep -v '^ *+' conftest.er1 >conftest.err
7659 rm -f conftest.er1
7660 cat conftest.err >&5
ec6a6fbe 7661 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7662 (exit $ac_status); } >/dev/null && {
7663 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7664 test ! -s conftest.err
7665 }; then
ad6254c5
AK
7666 ac_header_preproc=yes
7667else
ec6a6fbe 7668 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7669sed 's/^/| /' conftest.$ac_ext >&5
7670
7671 ac_header_preproc=no
7672fi
7a197a62 7673
ad6254c5 7674rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
7675{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7676$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
7677
7678# So? What about this header?
8a2fc586
AK
7679case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7680 yes:no: )
ec6a6fbe
AK
7681 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7682$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7683 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7684$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 7685 ac_header_preproc=yes
ad6254c5 7686 ;;
8a2fc586 7687 no:yes:* )
ec6a6fbe
AK
7688 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7689$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7690 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7691$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7692 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7693$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7694 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7695$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7696 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7697$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7698 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7699$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 7700
ad6254c5
AK
7701 ;;
7702esac
ec6a6fbe
AK
7703{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7704$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 7705if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 7706 $as_echo_n "(cached) " >&6
ad6254c5 7707else
8a2fc586 7708 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 7709fi
ec6a6fbe
AK
7710ac_res=`eval 'as_val=${'$as_ac_Header'}
7711 $as_echo "$as_val"'`
7712 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7713$as_echo "$ac_res" >&6; }
ad6254c5
AK
7714
7715fi
ec6a6fbe
AK
7716as_val=`eval 'as_val=${'$as_ac_Header'}
7717 $as_echo "$as_val"'`
7718 if test "x$as_val" = x""yes; then
ad6254c5 7719 cat >>confdefs.h <<_ACEOF
ec6a6fbe 7720#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
7721_ACEOF
7722
7723fi
7724
7725done
7726
ec6a6fbe
AK
7727{ $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
7728$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
ad6254c5 7729if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
ec6a6fbe 7730 $as_echo_n "(cached) " >&6
ad6254c5
AK
7731else
7732 if test "$cross_compiling" = yes; then
7733 ac_cv_func_malloc_0_nonnull=no
7734else
7735 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7736/* confdefs.h. */
7737_ACEOF
7738cat confdefs.h >>conftest.$ac_ext
7739cat >>conftest.$ac_ext <<_ACEOF
7740/* end confdefs.h. */
25fbec5b 7741#if defined STDC_HEADERS || defined HAVE_STDLIB_H
ad6254c5
AK
7742# include <stdlib.h>
7743#else
7744char *malloc ();
7745#endif
7746
7747int
7748main ()
7749{
7a197a62 7750return ! malloc (0);
ad6254c5
AK
7751 ;
7752 return 0;
7753}
7754_ACEOF
7755rm -f conftest$ac_exeext
7a197a62
AK
7756if { (ac_try="$ac_link"
7757case "(($ac_try" in
7758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7759 *) ac_try_echo=$ac_try;;
7760esac
ec6a6fbe
AK
7761eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7762$as_echo "$ac_try_echo") >&5
7a197a62 7763 (eval "$ac_link") 2>&5
ad6254c5 7764 ac_status=$?
ec6a6fbe 7765 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7766 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7767 { (case "(($ac_try" in
7768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7769 *) ac_try_echo=$ac_try;;
7770esac
ec6a6fbe
AK
7771eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7772$as_echo "$ac_try_echo") >&5
7a197a62 7773 (eval "$ac_try") 2>&5
ad6254c5 7774 ac_status=$?
ec6a6fbe 7775 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7776 (exit $ac_status); }; }; then
7777 ac_cv_func_malloc_0_nonnull=yes
7778else
ec6a6fbe
AK
7779 $as_echo "$as_me: program exited with status $ac_status" >&5
7780$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7781sed 's/^/| /' conftest.$ac_ext >&5
7782
7783( exit $ac_status )
7784ac_cv_func_malloc_0_nonnull=no
7785fi
ec6a6fbe 7786rm -rf conftest.dSYM
7a197a62 7787rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7788fi
7a197a62
AK
7789
7790
ad6254c5 7791fi
ec6a6fbe
AK
7792{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
7793$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
ad6254c5
AK
7794if test $ac_cv_func_malloc_0_nonnull = yes; then
7795
7796cat >>confdefs.h <<\_ACEOF
7797#define HAVE_MALLOC 1
7798_ACEOF
7799
7800else
7801 cat >>confdefs.h <<\_ACEOF
7802#define HAVE_MALLOC 0
7803_ACEOF
7804
7a197a62 7805 case " $LIBOBJS " in
8a2fc586 7806 *" malloc.$ac_objext "* ) ;;
7a197a62
AK
7807 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
7808 ;;
8a2fc586
AK
7809esac
7810
ad6254c5
AK
7811
7812cat >>confdefs.h <<\_ACEOF
7813#define malloc rpl_malloc
7814_ACEOF
7815
7816fi
7817
7818
7819
ec6a6fbe
AK
7820{ $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
7821$as_echo_n "checking for working memcmp... " >&6; }
ad6254c5 7822if test "${ac_cv_func_memcmp_working+set}" = set; then
ec6a6fbe 7823 $as_echo_n "(cached) " >&6
ad6254c5
AK
7824else
7825 if test "$cross_compiling" = yes; then
7826 ac_cv_func_memcmp_working=no
7827else
7828 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7829/* confdefs.h. */
7830_ACEOF
7831cat confdefs.h >>conftest.$ac_ext
7832cat >>conftest.$ac_ext <<_ACEOF
7833/* end confdefs.h. */
8a2fc586 7834$ac_includes_default
ad6254c5
AK
7835int
7836main ()
7837{
7838
7839 /* Some versions of memcmp are not 8-bit clean. */
7a197a62 7840 char c0 = '\100', c1 = '\200', c2 = '\201';
ad6254c5 7841 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
7a197a62 7842 return 1;
ad6254c5
AK
7843
7844 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
7845 or more and with at least one buffer not starting on a 4-byte boundary.
7846 William Lewis provided this test program. */
7847 {
7848 char foo[21];
7849 char bar[21];
7850 int i;
7851 for (i = 0; i < 4; i++)
7852 {
8a2fc586
AK
7853 char *a = foo + i;
7854 char *b = bar + i;
7855 strcpy (a, "--------01111111");
7856 strcpy (b, "--------10000000");
7857 if (memcmp (a, b, 16) >= 0)
7a197a62 7858 return 1;
ad6254c5 7859 }
7a197a62 7860 return 0;
ad6254c5
AK
7861 }
7862
7863 ;
7864 return 0;
7865}
7866_ACEOF
7867rm -f conftest$ac_exeext
7a197a62
AK
7868if { (ac_try="$ac_link"
7869case "(($ac_try" in
7870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7871 *) ac_try_echo=$ac_try;;
7872esac
ec6a6fbe
AK
7873eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7874$as_echo "$ac_try_echo") >&5
7a197a62 7875 (eval "$ac_link") 2>&5
ad6254c5 7876 ac_status=$?
ec6a6fbe 7877 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7878 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7879 { (case "(($ac_try" in
7880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7881 *) ac_try_echo=$ac_try;;
7882esac
ec6a6fbe
AK
7883eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7884$as_echo "$ac_try_echo") >&5
7a197a62 7885 (eval "$ac_try") 2>&5
ad6254c5 7886 ac_status=$?
ec6a6fbe 7887 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7888 (exit $ac_status); }; }; then
7889 ac_cv_func_memcmp_working=yes
7890else
ec6a6fbe
AK
7891 $as_echo "$as_me: program exited with status $ac_status" >&5
7892$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7893sed 's/^/| /' conftest.$ac_ext >&5
7894
7895( exit $ac_status )
7896ac_cv_func_memcmp_working=no
7897fi
ec6a6fbe 7898rm -rf conftest.dSYM
7a197a62 7899rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7900fi
7a197a62
AK
7901
7902
ad6254c5 7903fi
ec6a6fbe
AK
7904{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
7905$as_echo "$ac_cv_func_memcmp_working" >&6; }
7a197a62 7906test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
8a2fc586 7907 *" memcmp.$ac_objext "* ) ;;
7a197a62
AK
7908 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
7909 ;;
8a2fc586
AK
7910esac
7911
ad6254c5
AK
7912
7913
7914
7915for ac_header in stdlib.h unistd.h
7916do
ec6a6fbe 7917as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 7918if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
7919 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7920$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 7921if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 7922 $as_echo_n "(cached) " >&6
ad6254c5 7923fi
ec6a6fbe
AK
7924ac_res=`eval 'as_val=${'$as_ac_Header'}
7925 $as_echo "$as_val"'`
7926 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7927$as_echo "$ac_res" >&6; }
ad6254c5
AK
7928else
7929 # Is the header compilable?
ec6a6fbe
AK
7930{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7931$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 7932cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7933/* confdefs.h. */
7934_ACEOF
7935cat confdefs.h >>conftest.$ac_ext
7936cat >>conftest.$ac_ext <<_ACEOF
7937/* end confdefs.h. */
7938$ac_includes_default
7939#include <$ac_header>
7940_ACEOF
7941rm -f conftest.$ac_objext
7a197a62
AK
7942if { (ac_try="$ac_compile"
7943case "(($ac_try" in
7944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7945 *) ac_try_echo=$ac_try;;
7946esac
ec6a6fbe
AK
7947eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7948$as_echo "$ac_try_echo") >&5
7a197a62 7949 (eval "$ac_compile") 2>conftest.er1
ad6254c5 7950 ac_status=$?
8a2fc586
AK
7951 grep -v '^ *+' conftest.er1 >conftest.err
7952 rm -f conftest.er1
7953 cat conftest.err >&5
ec6a6fbe 7954 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7955 (exit $ac_status); } && {
7956 test -z "$ac_c_werror_flag" ||
7957 test ! -s conftest.err
7958 } && test -s conftest.$ac_objext; then
ad6254c5
AK
7959 ac_header_compiler=yes
7960else
ec6a6fbe 7961 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7962sed 's/^/| /' conftest.$ac_ext >&5
7963
7a197a62 7964 ac_header_compiler=no
ad6254c5 7965fi
7a197a62
AK
7966
7967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
7968{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7969$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
7970
7971# Is the header present?
ec6a6fbe
AK
7972{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7973$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 7974cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7975/* confdefs.h. */
7976_ACEOF
7977cat confdefs.h >>conftest.$ac_ext
7978cat >>conftest.$ac_ext <<_ACEOF
7979/* end confdefs.h. */
7980#include <$ac_header>
7981_ACEOF
7a197a62
AK
7982if { (ac_try="$ac_cpp conftest.$ac_ext"
7983case "(($ac_try" in
7984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7985 *) ac_try_echo=$ac_try;;
7986esac
ec6a6fbe
AK
7987eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7988$as_echo "$ac_try_echo") >&5
7a197a62 7989 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
7990 ac_status=$?
7991 grep -v '^ *+' conftest.er1 >conftest.err
7992 rm -f conftest.er1
7993 cat conftest.err >&5
ec6a6fbe 7994 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7995 (exit $ac_status); } >/dev/null && {
7996 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7997 test ! -s conftest.err
7998 }; then
ad6254c5
AK
7999 ac_header_preproc=yes
8000else
ec6a6fbe 8001 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8002sed 's/^/| /' conftest.$ac_ext >&5
8003
8004 ac_header_preproc=no
8005fi
7a197a62 8006
ad6254c5 8007rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
8008{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8009$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
8010
8011# So? What about this header?
8a2fc586
AK
8012case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8013 yes:no: )
ec6a6fbe
AK
8014 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8015$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8016 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8017$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 8018 ac_header_preproc=yes
ad6254c5 8019 ;;
8a2fc586 8020 no:yes:* )
ec6a6fbe
AK
8021 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8022$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8023 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8024$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8025 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8026$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8027 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8028$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8029 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8030$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8031 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8032$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 8033
ad6254c5
AK
8034 ;;
8035esac
ec6a6fbe
AK
8036{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8037$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 8038if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 8039 $as_echo_n "(cached) " >&6
ad6254c5 8040else
8a2fc586 8041 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 8042fi
ec6a6fbe
AK
8043ac_res=`eval 'as_val=${'$as_ac_Header'}
8044 $as_echo "$as_val"'`
8045 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8046$as_echo "$ac_res" >&6; }
ad6254c5
AK
8047
8048fi
ec6a6fbe
AK
8049as_val=`eval 'as_val=${'$as_ac_Header'}
8050 $as_echo "$as_val"'`
8051 if test "x$as_val" = x""yes; then
ad6254c5 8052 cat >>confdefs.h <<_ACEOF
ec6a6fbe 8053#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
8054_ACEOF
8055
8056fi
8057
8058done
8059
8060
8061for ac_func in getpagesize
8062do
ec6a6fbe
AK
8063as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8064{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8065$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 8066if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 8067 $as_echo_n "(cached) " >&6
ad6254c5
AK
8068else
8069 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8070/* confdefs.h. */
8071_ACEOF
8072cat confdefs.h >>conftest.$ac_ext
8073cat >>conftest.$ac_ext <<_ACEOF
8074/* end confdefs.h. */
8a2fc586
AK
8075/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8076 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8077#define $ac_func innocuous_$ac_func
8078
ad6254c5
AK
8079/* System header to define __stub macros and hopefully few prototypes,
8080 which can conflict with char $ac_func (); below.
8081 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8082 <limits.h> exists even on freestanding compilers. */
8a2fc586 8083
ad6254c5
AK
8084#ifdef __STDC__
8085# include <limits.h>
8086#else
8087# include <assert.h>
8088#endif
8a2fc586
AK
8089
8090#undef $ac_func
8091
7a197a62
AK
8092/* Override any GCC internal prototype to avoid an error.
8093 Use char because int might match the return type of a GCC
8094 builtin and then its argument prototype would still apply. */
ad6254c5
AK
8095#ifdef __cplusplus
8096extern "C"
ad6254c5 8097#endif
ad6254c5
AK
8098char $ac_func ();
8099/* The GNU C library defines this for functions which it implements
8100 to always fail with ENOSYS. Some functions are actually named
8101 something starting with __ and the normal name is an alias. */
7a197a62 8102#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 8103choke me
ad6254c5
AK
8104#endif
8105
8106int
8107main ()
8108{
7a197a62 8109return $ac_func ();
ad6254c5
AK
8110 ;
8111 return 0;
8112}
8113_ACEOF
8114rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
8115if { (ac_try="$ac_link"
8116case "(($ac_try" in
8117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8118 *) ac_try_echo=$ac_try;;
8119esac
ec6a6fbe
AK
8120eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8121$as_echo "$ac_try_echo") >&5
7a197a62 8122 (eval "$ac_link") 2>conftest.er1
ad6254c5 8123 ac_status=$?
8a2fc586
AK
8124 grep -v '^ *+' conftest.er1 >conftest.err
8125 rm -f conftest.er1
8126 cat conftest.err >&5
ec6a6fbe 8127 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8128 (exit $ac_status); } && {
8129 test -z "$ac_c_werror_flag" ||
8130 test ! -s conftest.err
ec6a6fbe
AK
8131 } && test -s conftest$ac_exeext && {
8132 test "$cross_compiling" = yes ||
8133 $as_test_x conftest$ac_exeext
8134 }; then
ad6254c5
AK
8135 eval "$as_ac_var=yes"
8136else
ec6a6fbe 8137 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8138sed 's/^/| /' conftest.$ac_ext >&5
8139
7a197a62 8140 eval "$as_ac_var=no"
ad6254c5 8141fi
7a197a62 8142
ec6a6fbe 8143rm -rf conftest.dSYM
25fbec5b 8144rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 8145 conftest$ac_exeext conftest.$ac_ext
ad6254c5 8146fi
ec6a6fbe
AK
8147ac_res=`eval 'as_val=${'$as_ac_var'}
8148 $as_echo "$as_val"'`
8149 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8150$as_echo "$ac_res" >&6; }
8151as_val=`eval 'as_val=${'$as_ac_var'}
8152 $as_echo "$as_val"'`
8153 if test "x$as_val" = x""yes; then
ad6254c5 8154 cat >>confdefs.h <<_ACEOF
ec6a6fbe 8155#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
8156_ACEOF
8157
8158fi
8159done
8160
ec6a6fbe
AK
8161{ $as_echo "$as_me:$LINENO: checking for working mmap" >&5
8162$as_echo_n "checking for working mmap... " >&6; }
ad6254c5 8163if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
ec6a6fbe 8164 $as_echo_n "(cached) " >&6
ad6254c5
AK
8165else
8166 if test "$cross_compiling" = yes; then
8167 ac_cv_func_mmap_fixed_mapped=no
8168else
8169 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8170/* confdefs.h. */
8171_ACEOF
8172cat confdefs.h >>conftest.$ac_ext
8173cat >>conftest.$ac_ext <<_ACEOF
8174/* end confdefs.h. */
8175$ac_includes_default
8176/* malloc might have been renamed as rpl_malloc. */
8177#undef malloc
8178
8179/* Thanks to Mike Haertel and Jim Avera for this test.
8180 Here is a matrix of mmap possibilities:
8181 mmap private not fixed
8182 mmap private fixed at somewhere currently unmapped
8183 mmap private fixed at somewhere already mapped
8184 mmap shared not fixed
8185 mmap shared fixed at somewhere currently unmapped
8186 mmap shared fixed at somewhere already mapped
8187 For private mappings, we should verify that changes cannot be read()
8188 back from the file, nor mmap's back from the file at a different
8189 address. (There have been systems where private was not correctly
8190 implemented like the infamous i386 svr4.0, and systems where the
8191 VM page cache was not coherent with the file system buffer cache
8192 like early versions of FreeBSD and possibly contemporary NetBSD.)
8193 For shared mappings, we should conversely verify that changes get
8194 propagated back to all the places they're supposed to be.
8195
8196 Grep wants private fixed already mapped.
8197 The main things grep needs to know about mmap are:
8198 * does it exist and is it safe to write into the mmap'd area
8199 * how to use it (BSD variants) */
8200
8201#include <fcntl.h>
8202#include <sys/mman.h>
8203
25fbec5b 8204#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
ad6254c5
AK
8205char *malloc ();
8206#endif
8207
8208/* This mess was copied from the GNU getpagesize.h. */
25fbec5b 8209#ifndef HAVE_GETPAGESIZE
ad6254c5 8210/* Assume that all systems that can run configure have sys/param.h. */
25fbec5b 8211# ifndef HAVE_SYS_PARAM_H
ad6254c5
AK
8212# define HAVE_SYS_PARAM_H 1
8213# endif
8214
8215# ifdef _SC_PAGESIZE
8216# define getpagesize() sysconf(_SC_PAGESIZE)
8217# else /* no _SC_PAGESIZE */
25fbec5b 8218# ifdef HAVE_SYS_PARAM_H
ad6254c5
AK
8219# include <sys/param.h>
8220# ifdef EXEC_PAGESIZE
8221# define getpagesize() EXEC_PAGESIZE
8222# else /* no EXEC_PAGESIZE */
8223# ifdef NBPG
8224# define getpagesize() NBPG * CLSIZE
8225# ifndef CLSIZE
8226# define CLSIZE 1
8227# endif /* no CLSIZE */
8228# else /* no NBPG */
8229# ifdef NBPC
8230# define getpagesize() NBPC
8231# else /* no NBPC */
8232# ifdef PAGESIZE
8233# define getpagesize() PAGESIZE
8234# endif /* PAGESIZE */
8235# endif /* no NBPC */
8236# endif /* no NBPG */
8237# endif /* no EXEC_PAGESIZE */
8238# else /* no HAVE_SYS_PARAM_H */
8239# define getpagesize() 8192 /* punt totally */
8240# endif /* no HAVE_SYS_PARAM_H */
8241# endif /* no _SC_PAGESIZE */
8242
8243#endif /* no HAVE_GETPAGESIZE */
8244
8245int
8246main ()
8247{
8248 char *data, *data2, *data3;
8249 int i, pagesize;
8250 int fd;
8251
8252 pagesize = getpagesize ();
8253
8254 /* First, make a file with some known garbage in it. */
8255 data = (char *) malloc (pagesize);
8256 if (!data)
7a197a62 8257 return 1;
ad6254c5
AK
8258 for (i = 0; i < pagesize; ++i)
8259 *(data + i) = rand ();
8260 umask (0);
8261 fd = creat ("conftest.mmap", 0600);
8262 if (fd < 0)
7a197a62 8263 return 1;
ad6254c5 8264 if (write (fd, data, pagesize) != pagesize)
7a197a62 8265 return 1;
ad6254c5
AK
8266 close (fd);
8267
8268 /* Next, try to mmap the file at a fixed address which already has
8269 something else allocated at it. If we can, also make sure that
8270 we see the same garbage. */
8271 fd = open ("conftest.mmap", O_RDWR);
8272 if (fd < 0)
7a197a62 8273 return 1;
ad6254c5
AK
8274 data2 = (char *) malloc (2 * pagesize);
8275 if (!data2)
7a197a62
AK
8276 return 1;
8277 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
ad6254c5 8278 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8a2fc586 8279 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7a197a62 8280 return 1;
ad6254c5
AK
8281 for (i = 0; i < pagesize; ++i)
8282 if (*(data + i) != *(data2 + i))
7a197a62 8283 return 1;
ad6254c5
AK
8284
8285 /* Finally, make sure that changes to the mapped area do not
8286 percolate back to the file as seen by read(). (This is a bug on
8287 some variants of i386 svr4.0.) */
8288 for (i = 0; i < pagesize; ++i)
8289 *(data2 + i) = *(data2 + i) + 1;
8290 data3 = (char *) malloc (pagesize);
8291 if (!data3)
7a197a62 8292 return 1;
ad6254c5 8293 if (read (fd, data3, pagesize) != pagesize)
7a197a62 8294 return 1;
ad6254c5
AK
8295 for (i = 0; i < pagesize; ++i)
8296 if (*(data + i) != *(data3 + i))
7a197a62 8297 return 1;
ad6254c5 8298 close (fd);
7a197a62 8299 return 0;
ad6254c5
AK
8300}
8301_ACEOF
8302rm -f conftest$ac_exeext
7a197a62
AK
8303if { (ac_try="$ac_link"
8304case "(($ac_try" in
8305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8306 *) ac_try_echo=$ac_try;;
8307esac
ec6a6fbe
AK
8308eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8309$as_echo "$ac_try_echo") >&5
7a197a62 8310 (eval "$ac_link") 2>&5
ad6254c5 8311 ac_status=$?
ec6a6fbe 8312 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 8313 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
8314 { (case "(($ac_try" in
8315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8316 *) ac_try_echo=$ac_try;;
8317esac
ec6a6fbe
AK
8318eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8319$as_echo "$ac_try_echo") >&5
7a197a62 8320 (eval "$ac_try") 2>&5
ad6254c5 8321 ac_status=$?
ec6a6fbe 8322 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
8323 (exit $ac_status); }; }; then
8324 ac_cv_func_mmap_fixed_mapped=yes
8325else
ec6a6fbe
AK
8326 $as_echo "$as_me: program exited with status $ac_status" >&5
8327$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8328sed 's/^/| /' conftest.$ac_ext >&5
8329
8330( exit $ac_status )
8331ac_cv_func_mmap_fixed_mapped=no
8332fi
ec6a6fbe 8333rm -rf conftest.dSYM
7a197a62 8334rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 8335fi
7a197a62
AK
8336
8337
ad6254c5 8338fi
ec6a6fbe
AK
8339{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8340$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
ad6254c5
AK
8341if test $ac_cv_func_mmap_fixed_mapped = yes; then
8342
8343cat >>confdefs.h <<\_ACEOF
8344#define HAVE_MMAP 1
8345_ACEOF
8346
8347fi
8348rm -f conftest.mmap
8349
ec6a6fbe
AK
8350{ $as_echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
8351$as_echo_n "checking whether stat accepts an empty string... " >&6; }
ad6254c5 8352if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
ec6a6fbe 8353 $as_echo_n "(cached) " >&6
ad6254c5
AK
8354else
8355 if test "$cross_compiling" = yes; then
8356 ac_cv_func_stat_empty_string_bug=yes
8357else
8358 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8359/* confdefs.h. */
8360_ACEOF
8361cat confdefs.h >>conftest.$ac_ext
8362cat >>conftest.$ac_ext <<_ACEOF
8363/* end confdefs.h. */
8364$ac_includes_default
8365int
8366main ()
8367{
8368struct stat sbuf;
7a197a62 8369 return stat ("", &sbuf) == 0;
ad6254c5
AK
8370 ;
8371 return 0;
8372}
8373_ACEOF
8374rm -f conftest$ac_exeext
7a197a62
AK
8375if { (ac_try="$ac_link"
8376case "(($ac_try" in
8377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8378 *) ac_try_echo=$ac_try;;
8379esac
ec6a6fbe
AK
8380eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8381$as_echo "$ac_try_echo") >&5
7a197a62 8382 (eval "$ac_link") 2>&5
ad6254c5 8383 ac_status=$?
ec6a6fbe 8384 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 8385 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
8386 { (case "(($ac_try" in
8387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8388 *) ac_try_echo=$ac_try;;
8389esac
ec6a6fbe
AK
8390eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8391$as_echo "$ac_try_echo") >&5
7a197a62 8392 (eval "$ac_try") 2>&5
ad6254c5 8393 ac_status=$?
ec6a6fbe 8394 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 8395 (exit $ac_status); }; }; then
7a197a62 8396 ac_cv_func_stat_empty_string_bug=no
ad6254c5 8397else
ec6a6fbe
AK
8398 $as_echo "$as_me: program exited with status $ac_status" >&5
8399$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8400sed 's/^/| /' conftest.$ac_ext >&5
8401
8402( exit $ac_status )
7a197a62 8403ac_cv_func_stat_empty_string_bug=yes
ad6254c5 8404fi
ec6a6fbe 8405rm -rf conftest.dSYM
7a197a62 8406rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 8407fi
7a197a62
AK
8408
8409
ad6254c5 8410fi
ec6a6fbe
AK
8411{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
8412$as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
ad6254c5 8413if test $ac_cv_func_stat_empty_string_bug = yes; then
7a197a62 8414 case " $LIBOBJS " in
8a2fc586 8415 *" stat.$ac_objext "* ) ;;
7a197a62
AK
8416 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
8417 ;;
8a2fc586
AK
8418esac
8419
ad6254c5
AK
8420
8421cat >>confdefs.h <<_ACEOF
8422#define HAVE_STAT_EMPTY_STRING_BUG 1
8423_ACEOF
8424
8425fi
8426
ec6a6fbe
AK
8427{ $as_echo "$as_me:$LINENO: checking for working strtod" >&5
8428$as_echo_n "checking for working strtod... " >&6; }
ad6254c5 8429if test "${ac_cv_func_strtod+set}" = set; then
ec6a6fbe 8430 $as_echo_n "(cached) " >&6
ad6254c5
AK
8431else
8432 if test "$cross_compiling" = yes; then
8433 ac_cv_func_strtod=no
8434else
8435 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8436/* confdefs.h. */
8437_ACEOF
8438cat confdefs.h >>conftest.$ac_ext
8439cat >>conftest.$ac_ext <<_ACEOF
8440/* end confdefs.h. */
8441
7a197a62
AK
8442$ac_includes_default
8443#ifndef strtod
ad6254c5 8444double strtod ();
7a197a62 8445#endif
ad6254c5
AK
8446int
8447main()
8448{
8449 {
8450 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
8451 char *string = " +69";
8452 char *term;
8453 double value;
8454 value = strtod (string, &term);
8455 if (value != 69 || term != (string + 4))
7a197a62 8456 return 1;
ad6254c5
AK
8457 }
8458
8459 {
8460 /* Under Solaris 2.4, strtod returns the wrong value for the
8461 terminating character under some conditions. */
8462 char *string = "NaN";
8463 char *term;
8464 strtod (string, &term);
8465 if (term != string && *(term - 1) == 0)
7a197a62 8466 return 1;
ad6254c5 8467 }
7a197a62 8468 return 0;
ad6254c5
AK
8469}
8470
8471_ACEOF
8472rm -f conftest$ac_exeext
7a197a62
AK
8473if { (ac_try="$ac_link"
8474case "(($ac_try" in
8475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8476 *) ac_try_echo=$ac_try;;
8477esac
ec6a6fbe
AK
8478eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8479$as_echo "$ac_try_echo") >&5
7a197a62 8480 (eval "$ac_link") 2>&5
ad6254c5 8481 ac_status=$?
ec6a6fbe 8482 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 8483 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
8484 { (case "(($ac_try" in
8485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8486 *) ac_try_echo=$ac_try;;
8487esac
ec6a6fbe
AK
8488eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8489$as_echo "$ac_try_echo") >&5
7a197a62 8490 (eval "$ac_try") 2>&5
ad6254c5 8491 ac_status=$?
ec6a6fbe 8492 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
8493 (exit $ac_status); }; }; then
8494 ac_cv_func_strtod=yes
8495else
ec6a6fbe
AK
8496 $as_echo "$as_me: program exited with status $ac_status" >&5
8497$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8498sed 's/^/| /' conftest.$ac_ext >&5
8499
8500( exit $ac_status )
8501ac_cv_func_strtod=no
8502fi
ec6a6fbe 8503rm -rf conftest.dSYM
7a197a62 8504rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 8505fi
7a197a62
AK
8506
8507
ad6254c5 8508fi
ec6a6fbe
AK
8509{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
8510$as_echo "$ac_cv_func_strtod" >&6; }
ad6254c5 8511if test $ac_cv_func_strtod = no; then
7a197a62 8512 case " $LIBOBJS " in
8a2fc586 8513 *" strtod.$ac_objext "* ) ;;
7a197a62
AK
8514 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
8515 ;;
8a2fc586
AK
8516esac
8517
ec6a6fbe
AK
8518{ $as_echo "$as_me:$LINENO: checking for pow" >&5
8519$as_echo_n "checking for pow... " >&6; }
ad6254c5 8520if test "${ac_cv_func_pow+set}" = set; then
ec6a6fbe 8521 $as_echo_n "(cached) " >&6
ad6254c5
AK
8522else
8523 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8524/* confdefs.h. */
8525_ACEOF
8526cat confdefs.h >>conftest.$ac_ext
8527cat >>conftest.$ac_ext <<_ACEOF
8528/* end confdefs.h. */
8a2fc586
AK
8529/* Define pow to an innocuous variant, in case <limits.h> declares pow.
8530 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8531#define pow innocuous_pow
8532
ad6254c5
AK
8533/* System header to define __stub macros and hopefully few prototypes,
8534 which can conflict with char pow (); below.
8535 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8536 <limits.h> exists even on freestanding compilers. */
8a2fc586 8537
ad6254c5
AK
8538#ifdef __STDC__
8539# include <limits.h>
8540#else
8541# include <assert.h>
8542#endif
8a2fc586
AK
8543
8544#undef pow
8545
7a197a62
AK
8546/* Override any GCC internal prototype to avoid an error.
8547 Use char because int might match the return type of a GCC
8548 builtin and then its argument prototype would still apply. */
ad6254c5
AK
8549#ifdef __cplusplus
8550extern "C"
ad6254c5 8551#endif
ad6254c5
AK
8552char pow ();
8553/* The GNU C library defines this for functions which it implements
8554 to always fail with ENOSYS. Some functions are actually named
8555 something starting with __ and the normal name is an alias. */
7a197a62 8556#if defined __stub_pow || defined __stub___pow
ad6254c5 8557choke me
ad6254c5
AK
8558#endif
8559
8560int
8561main ()
8562{
7a197a62 8563return pow ();
ad6254c5
AK
8564 ;
8565 return 0;
8566}
8567_ACEOF
8568rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
8569if { (ac_try="$ac_link"
8570case "(($ac_try" in
8571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8572 *) ac_try_echo=$ac_try;;
8573esac
ec6a6fbe
AK
8574eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8575$as_echo "$ac_try_echo") >&5
7a197a62 8576 (eval "$ac_link") 2>conftest.er1
ad6254c5 8577 ac_status=$?
8a2fc586
AK
8578 grep -v '^ *+' conftest.er1 >conftest.err
8579 rm -f conftest.er1
8580 cat conftest.err >&5
ec6a6fbe 8581 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8582 (exit $ac_status); } && {
8583 test -z "$ac_c_werror_flag" ||
8584 test ! -s conftest.err
ec6a6fbe
AK
8585 } && test -s conftest$ac_exeext && {
8586 test "$cross_compiling" = yes ||
8587 $as_test_x conftest$ac_exeext
8588 }; then
ad6254c5
AK
8589 ac_cv_func_pow=yes
8590else
ec6a6fbe 8591 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8592sed 's/^/| /' conftest.$ac_ext >&5
8593
7a197a62 8594 ac_cv_func_pow=no
ad6254c5 8595fi
7a197a62 8596
ec6a6fbe 8597rm -rf conftest.dSYM
25fbec5b 8598rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 8599 conftest$ac_exeext conftest.$ac_ext
ad6254c5 8600fi
ec6a6fbe
AK
8601{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
8602$as_echo "$ac_cv_func_pow" >&6; }
ad6254c5
AK
8603
8604if test $ac_cv_func_pow = no; then
ec6a6fbe
AK
8605 { $as_echo "$as_me:$LINENO: checking for pow in -lm" >&5
8606$as_echo_n "checking for pow in -lm... " >&6; }
ad6254c5 8607if test "${ac_cv_lib_m_pow+set}" = set; then
ec6a6fbe 8608 $as_echo_n "(cached) " >&6
ad6254c5
AK
8609else
8610 ac_check_lib_save_LIBS=$LIBS
8611LIBS="-lm $LIBS"
8612cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8613/* confdefs.h. */
8614_ACEOF
8615cat confdefs.h >>conftest.$ac_ext
8616cat >>conftest.$ac_ext <<_ACEOF
8617/* end confdefs.h. */
8618
7a197a62
AK
8619/* Override any GCC internal prototype to avoid an error.
8620 Use char because int might match the return type of a GCC
8621 builtin and then its argument prototype would still apply. */
ad6254c5
AK
8622#ifdef __cplusplus
8623extern "C"
8624#endif
ad6254c5
AK
8625char pow ();
8626int
8627main ()
8628{
7a197a62 8629return pow ();
ad6254c5
AK
8630 ;
8631 return 0;
8632}
8633_ACEOF
8634rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
8635if { (ac_try="$ac_link"
8636case "(($ac_try" in
8637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8638 *) ac_try_echo=$ac_try;;
8639esac
ec6a6fbe
AK
8640eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8641$as_echo "$ac_try_echo") >&5
7a197a62 8642 (eval "$ac_link") 2>conftest.er1
ad6254c5 8643 ac_status=$?
8a2fc586
AK
8644 grep -v '^ *+' conftest.er1 >conftest.err
8645 rm -f conftest.er1
8646 cat conftest.err >&5
ec6a6fbe 8647 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8648 (exit $ac_status); } && {
8649 test -z "$ac_c_werror_flag" ||
8650 test ! -s conftest.err
ec6a6fbe
AK
8651 } && test -s conftest$ac_exeext && {
8652 test "$cross_compiling" = yes ||
8653 $as_test_x conftest$ac_exeext
8654 }; then
ad6254c5
AK
8655 ac_cv_lib_m_pow=yes
8656else
ec6a6fbe 8657 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8658sed 's/^/| /' conftest.$ac_ext >&5
8659
7a197a62 8660 ac_cv_lib_m_pow=no
ad6254c5 8661fi
7a197a62 8662
ec6a6fbe 8663rm -rf conftest.dSYM
25fbec5b 8664rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 8665 conftest$ac_exeext conftest.$ac_ext
ad6254c5 8666LIBS=$ac_check_lib_save_LIBS
d0191583 8667fi
ec6a6fbe
AK
8668{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
8669$as_echo "$ac_cv_lib_m_pow" >&6; }
8670if test "x$ac_cv_lib_m_pow" = x""yes; then
d0191583
JM
8671 POW_LIB=-lm
8672else
ec6a6fbe
AK
8673 { $as_echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
8674$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
d0191583 8675fi
72b2cb61 8676
d0191583 8677fi
72b2cb61 8678
ad6254c5
AK
8679fi
8680
ad6254c5 8681
d0191583
JM
8682for ac_func in vprintf
8683do
ec6a6fbe
AK
8684as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8685{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8686$as_echo_n "checking for $ac_func... " >&6; }
d0191583 8687if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 8688 $as_echo_n "(cached) " >&6
ad6254c5 8689else
d0191583
JM
8690 cat >conftest.$ac_ext <<_ACEOF
8691/* confdefs.h. */
8692_ACEOF
8693cat confdefs.h >>conftest.$ac_ext
8694cat >>conftest.$ac_ext <<_ACEOF
8695/* end confdefs.h. */
8696/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8697 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8698#define $ac_func innocuous_$ac_func
7a197a62 8699
d0191583
JM
8700/* System header to define __stub macros and hopefully few prototypes,
8701 which can conflict with char $ac_func (); below.
8702 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8703 <limits.h> exists even on freestanding compilers. */
ad6254c5 8704
d0191583
JM
8705#ifdef __STDC__
8706# include <limits.h>
8707#else
8708# include <assert.h>
8709#endif
ad6254c5 8710
d0191583 8711#undef $ac_func
72b2cb61 8712
d0191583
JM
8713/* Override any GCC internal prototype to avoid an error.
8714 Use char because int might match the return type of a GCC
8715 builtin and then its argument prototype would still apply. */
8716#ifdef __cplusplus
8717extern "C"
8718#endif
8719char $ac_func ();
8720/* The GNU C library defines this for functions which it implements
8721 to always fail with ENOSYS. Some functions are actually named
8722 something starting with __ and the normal name is an alias. */
8723#if defined __stub_$ac_func || defined __stub___$ac_func
8724choke me
8725#endif
8726
8727int
8728main ()
8729{
8730return $ac_func ();
8731 ;
8732 return 0;
8733}
72b2cb61 8734_ACEOF
d0191583
JM
8735rm -f conftest.$ac_objext conftest$ac_exeext
8736if { (ac_try="$ac_link"
8737case "(($ac_try" in
8738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8739 *) ac_try_echo=$ac_try;;
8740esac
ec6a6fbe
AK
8741eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8742$as_echo "$ac_try_echo") >&5
d0191583
JM
8743 (eval "$ac_link") 2>conftest.er1
8744 ac_status=$?
8745 grep -v '^ *+' conftest.er1 >conftest.err
8746 rm -f conftest.er1
8747 cat conftest.err >&5
ec6a6fbe 8748 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
8749 (exit $ac_status); } && {
8750 test -z "$ac_c_werror_flag" ||
8751 test ! -s conftest.err
ec6a6fbe
AK
8752 } && test -s conftest$ac_exeext && {
8753 test "$cross_compiling" = yes ||
8754 $as_test_x conftest$ac_exeext
8755 }; then
d0191583
JM
8756 eval "$as_ac_var=yes"
8757else
ec6a6fbe 8758 $as_echo "$as_me: failed program was:" >&5
d0191583 8759sed 's/^/| /' conftest.$ac_ext >&5
72b2cb61 8760
d0191583 8761 eval "$as_ac_var=no"
ad6254c5
AK
8762fi
8763
ec6a6fbe 8764rm -rf conftest.dSYM
d0191583
JM
8765rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8766 conftest$ac_exeext conftest.$ac_ext
7a197a62 8767fi
ec6a6fbe
AK
8768ac_res=`eval 'as_val=${'$as_ac_var'}
8769 $as_echo "$as_val"'`
8770 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8771$as_echo "$ac_res" >&6; }
8772as_val=`eval 'as_val=${'$as_ac_var'}
8773 $as_echo "$as_val"'`
8774 if test "x$as_val" = x""yes; then
d0191583 8775 cat >>confdefs.h <<_ACEOF
ec6a6fbe 8776#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
d0191583 8777_ACEOF
7a197a62 8778
ec6a6fbe
AK
8779{ $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
8780$as_echo_n "checking for _doprnt... " >&6; }
d0191583 8781if test "${ac_cv_func__doprnt+set}" = set; then
ec6a6fbe 8782 $as_echo_n "(cached) " >&6
ad6254c5 8783else
d0191583
JM
8784 cat >conftest.$ac_ext <<_ACEOF
8785/* confdefs.h. */
8786_ACEOF
8787cat confdefs.h >>conftest.$ac_ext
8788cat >>conftest.$ac_ext <<_ACEOF
8789/* end confdefs.h. */
8790/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
8791 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8792#define _doprnt innocuous__doprnt
7a197a62 8793
d0191583
JM
8794/* System header to define __stub macros and hopefully few prototypes,
8795 which can conflict with char _doprnt (); below.
8796 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8797 <limits.h> exists even on freestanding compilers. */
ad6254c5 8798
d0191583
JM
8799#ifdef __STDC__
8800# include <limits.h>
8801#else
8802# include <assert.h>
8803#endif
72b2cb61 8804
d0191583
JM
8805#undef _doprnt
8806
8807/* Override any GCC internal prototype to avoid an error.
8808 Use char because int might match the return type of a GCC
8809 builtin and then its argument prototype would still apply. */
8810#ifdef __cplusplus
8811extern "C"
8812#endif
8813char _doprnt ();
8814/* The GNU C library defines this for functions which it implements
8815 to always fail with ENOSYS. Some functions are actually named
8816 something starting with __ and the normal name is an alias. */
8817#if defined __stub__doprnt || defined __stub____doprnt
8818choke me
8819#endif
8820
8821int
8822main ()
8823{
8824return _doprnt ();
8825 ;
8826 return 0;
8827}
72b2cb61 8828_ACEOF
d0191583
JM
8829rm -f conftest.$ac_objext conftest$ac_exeext
8830if { (ac_try="$ac_link"
8831case "(($ac_try" in
8832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8833 *) ac_try_echo=$ac_try;;
8834esac
ec6a6fbe
AK
8835eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8836$as_echo "$ac_try_echo") >&5
d0191583
JM
8837 (eval "$ac_link") 2>conftest.er1
8838 ac_status=$?
8839 grep -v '^ *+' conftest.er1 >conftest.err
8840 rm -f conftest.er1
8841 cat conftest.err >&5
ec6a6fbe 8842 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
8843 (exit $ac_status); } && {
8844 test -z "$ac_c_werror_flag" ||
8845 test ! -s conftest.err
ec6a6fbe
AK
8846 } && test -s conftest$ac_exeext && {
8847 test "$cross_compiling" = yes ||
8848 $as_test_x conftest$ac_exeext
8849 }; then
d0191583
JM
8850 ac_cv_func__doprnt=yes
8851else
ec6a6fbe 8852 $as_echo "$as_me: failed program was:" >&5
d0191583 8853sed 's/^/| /' conftest.$ac_ext >&5
72b2cb61 8854
d0191583 8855 ac_cv_func__doprnt=no
ad6254c5
AK
8856fi
8857
ec6a6fbe 8858rm -rf conftest.dSYM
d0191583
JM
8859rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8860 conftest$ac_exeext conftest.$ac_ext
7a197a62 8861fi
ec6a6fbe
AK
8862{ $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
8863$as_echo "$ac_cv_func__doprnt" >&6; }
8864if test "x$ac_cv_func__doprnt" = x""yes; then
7a197a62 8865
d0191583
JM
8866cat >>confdefs.h <<\_ACEOF
8867#define HAVE_DOPRNT 1
8868_ACEOF
ad6254c5 8869
7a197a62
AK
8870fi
8871
d0191583
JM
8872fi
8873done
8b1a3214 8874
ad6254c5 8875
7a197a62 8876
9c961554 8877################################################################################
ec6a6fbe
AK
8878{ $as_echo "$as_me:$LINENO: checking whether to use static linking" >&5
8879$as_echo_n "checking whether to use static linking... " >&6; }
9c961554
MB
8880# Check whether --enable-static_link was given.
8881if test "${enable_static_link+set}" = set; then
8882 enableval=$enable_static_link; STATIC_LINK=$enableval
8883else
8884 STATIC_LINK=no
8885fi
8886
ec6a6fbe
AK
8887{ $as_echo "$as_me:$LINENO: result: $STATIC_LINK" >&5
8888$as_echo "$STATIC_LINK" >&6; }
9c961554 8889
d0191583 8890################################################################################
ad6254c5 8891
ad6254c5
AK
8892
8893################################################################################
ec6a6fbe
AK
8894{ $as_echo "$as_me:$LINENO: checking file owner" >&5
8895$as_echo_n "checking file owner... " >&6; }
d0191583
JM
8896OWNER="root"
8897
8898
8899# Check whether --with-user was given.
8900if test "${with_user+set}" = set; then
8901 withval=$with_user; OWNER="$withval"
7a197a62
AK
8902fi
8903
ec6a6fbe
AK
8904{ $as_echo "$as_me:$LINENO: result: $OWNER" >&5
8905$as_echo "$OWNER" >&6; }
ad6254c5 8906
d0191583
JM
8907if test x$OWNER != x; then
8908 OWNER="-o $OWNER"
ad6254c5
AK
8909fi
8910
8911################################################################################
ec6a6fbe
AK
8912{ $as_echo "$as_me:$LINENO: checking group owner" >&5
8913$as_echo_n "checking group owner... " >&6; }
d0191583 8914GROUP="root"
ad6254c5 8915
d0191583
JM
8916# Check whether --with-group was given.
8917if test "${with_group+set}" = set; then
8918 withval=$with_group; GROUP="$withval"
7a197a62
AK
8919fi
8920
ec6a6fbe
AK
8921{ $as_echo "$as_me:$LINENO: result: $GROUP" >&5
8922$as_echo "$GROUP" >&6; }
d0191583
JM
8923
8924if test x$GROUP != x; then
8925 GROUP="-g $GROUP"
8926fi
ad6254c5 8927
24bbc4d7 8928################################################################################
ec6a6fbe
AK
8929{ $as_echo "$as_me:$LINENO: checking device node uid" >&5
8930$as_echo_n "checking device node uid... " >&6; }
24bbc4d7
AK
8931
8932
8933# Check whether --with-device-uid was given.
8934if test "${with_device_uid+set}" = set; then
8935 withval=$with_device_uid; DM_DEVICE_UID="$withval"
8936else
8937 DM_DEVICE_UID="0"
8938fi
8939
ec6a6fbe
AK
8940{ $as_echo "$as_me:$LINENO: result: $DM_DEVICE_UID" >&5
8941$as_echo "$DM_DEVICE_UID" >&6; }
24bbc4d7
AK
8942
8943################################################################################
ec6a6fbe
AK
8944{ $as_echo "$as_me:$LINENO: checking device node gid" >&5
8945$as_echo_n "checking device node gid... " >&6; }
24bbc4d7
AK
8946
8947
8948# Check whether --with-device-gid was given.
8949if test "${with_device_gid+set}" = set; then
8950 withval=$with_device_gid; DM_DEVICE_GID="$withval"
8951else
8952 DM_DEVICE_GID="0"
8953fi
8954
ec6a6fbe
AK
8955{ $as_echo "$as_me:$LINENO: result: $DM_DEVICE_GID" >&5
8956$as_echo "$DM_DEVICE_GID" >&6; }
24bbc4d7 8957
93bd259b 8958################################################################################
ec6a6fbe
AK
8959{ $as_echo "$as_me:$LINENO: checking device node mode" >&5
8960$as_echo_n "checking device node mode... " >&6; }
93bd259b
AK
8961
8962
8963# Check whether --with-device-mode was given.
8964if test "${with_device_mode+set}" = set; then
8965 withval=$with_device_mode; DM_DEVICE_MODE="$withval"
8966else
8967 DM_DEVICE_MODE="0600"
8968fi
8969
ec6a6fbe
AK
8970{ $as_echo "$as_me:$LINENO: result: $DM_DEVICE_MODE" >&5
8971$as_echo "$DM_DEVICE_MODE" >&6; }
93bd259b 8972
ad6254c5 8973################################################################################
ec6a6fbe
AK
8974{ $as_echo "$as_me:$LINENO: checking whether to enable lvm1 fallback" >&5
8975$as_echo_n "checking whether to enable lvm1 fallback... " >&6; }
d0191583
JM
8976# Check whether --enable-lvm1_fallback was given.
8977if test "${enable_lvm1_fallback+set}" = set; then
8978 enableval=$enable_lvm1_fallback; LVM1_FALLBACK=$enableval
8979else
8980 LVM1_FALLBACK=no
7a197a62
AK
8981fi
8982
ec6a6fbe
AK
8983{ $as_echo "$as_me:$LINENO: result: $LVM1_FALLBACK" >&5
8984$as_echo "$LVM1_FALLBACK" >&6; }
ad6254c5 8985
d0191583 8986if test x$LVM1_FALLBACK = xyes; then
72b2cb61
AK
8987
8988cat >>confdefs.h <<\_ACEOF
d0191583 8989#define LVM1_FALLBACK 1
72b2cb61
AK
8990_ACEOF
8991
ad6254c5
AK
8992fi
8993
8994################################################################################
ec6a6fbe
AK
8995{ $as_echo "$as_me:$LINENO: checking whether to include support for lvm1 metadata" >&5
8996$as_echo_n "checking whether to include support for lvm1 metadata... " >&6; }
d0191583
JM
8997
8998# Check whether --with-lvm1 was given.
8999if test "${with_lvm1+set}" = set; then
9000 withval=$with_lvm1; LVM1="$withval"
9001else
9002 LVM1="internal"
7a197a62
AK
9003fi
9004
ec6a6fbe
AK
9005{ $as_echo "$as_me:$LINENO: result: $LVM1" >&5
9006$as_echo "$LVM1" >&6; }
ad6254c5 9007
d0191583 9008if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ];
ec6a6fbe 9009 then { { $as_echo "$as_me:$LINENO: error: --with-lvm1 parameter invalid
d0191583 9010" >&5
ec6a6fbe 9011$as_echo "$as_me: error: --with-lvm1 parameter invalid
d0191583
JM
9012" >&2;}
9013 { (exit 1); exit 1; }; }
9014fi;
9015
9016if test x$LVM1 = xinternal; then
72b2cb61
AK
9017
9018cat >>confdefs.h <<\_ACEOF
d0191583 9019#define LVM1_INTERNAL 1
72b2cb61
AK
9020_ACEOF
9021
ad6254c5
AK
9022fi
9023
9024################################################################################
ec6a6fbe
AK
9025{ $as_echo "$as_me:$LINENO: checking whether to include support for GFS pool metadata" >&5
9026$as_echo_n "checking whether to include support for GFS pool metadata... " >&6; }
d0191583
JM
9027
9028# Check whether --with-pool was given.
9029if test "${with_pool+set}" = set; then
9030 withval=$with_pool; POOL="$withval"
ad6254c5 9031else
d0191583 9032 POOL="internal"
7a197a62
AK
9033fi
9034
ec6a6fbe
AK
9035{ $as_echo "$as_me:$LINENO: result: $POOL" >&5
9036$as_echo "$POOL" >&6; }
ad6254c5 9037
d0191583 9038if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ];
ec6a6fbe 9039 then { { $as_echo "$as_me:$LINENO: error: --with-pool parameter invalid
d0191583 9040" >&5
ec6a6fbe 9041$as_echo "$as_me: error: --with-pool parameter invalid
d0191583
JM
9042" >&2;}
9043 { (exit 1); exit 1; }; }
9044fi;
7a197a62 9045
d0191583
JM
9046if test x$POOL = xinternal; then
9047
9048cat >>confdefs.h <<\_ACEOF
9049#define POOL_INTERNAL 1
9050_ACEOF
9051
9052fi
ad6254c5 9053
06f62ad1 9054################################################################################
ec6a6fbe
AK
9055{ $as_echo "$as_me:$LINENO: checking whether to include support for cluster locking" >&5
9056$as_echo_n "checking whether to include support for cluster locking... " >&6; }
d0191583
JM
9057
9058# Check whether --with-cluster was given.
9059if test "${with_cluster+set}" = set; then
9060 withval=$with_cluster; CLUSTER="$withval"
7a197a62
AK
9061fi
9062
ec6a6fbe
AK
9063{ $as_echo "$as_me:$LINENO: result: $CLUSTER" >&5
9064$as_echo "$CLUSTER" >&6; }
06f62ad1 9065
d0191583 9066if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ];
ec6a6fbe 9067 then { { $as_echo "$as_me:$LINENO: error: --with-cluster parameter invalid
06f62ad1 9068" >&5
ec6a6fbe 9069$as_echo "$as_me: error: --with-cluster parameter invalid
06f62ad1
AK
9070" >&2;}
9071 { (exit 1); exit 1; }; }
d0191583 9072fi;
06f62ad1 9073
d0191583 9074if test x$CLUSTER = xinternal; then
72b2cb61
AK
9075
9076cat >>confdefs.h <<\_ACEOF
d0191583 9077#define CLUSTER_LOCKING_INTERNAL 1
72b2cb61
AK
9078_ACEOF
9079
15d91f5a 9080fi
ad6254c5
AK
9081
9082################################################################################
ec6a6fbe
AK
9083{ $as_echo "$as_me:$LINENO: checking whether to include snapshots" >&5
9084$as_echo_n "checking whether to include snapshots... " >&6; }
ad6254c5 9085
d0191583
JM
9086# Check whether --with-snapshots was given.
9087if test "${with_snapshots+set}" = set; then
9088 withval=$with_snapshots; SNAPSHOTS="$withval"
9089else
9090 SNAPSHOTS="internal"
ad6254c5
AK
9091fi
9092
ec6a6fbe
AK
9093{ $as_echo "$as_me:$LINENO: result: $SNAPSHOTS" >&5
9094$as_echo "$SNAPSHOTS" >&6; }
ad6254c5 9095
d0191583 9096if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ];
ec6a6fbe 9097 then { { $as_echo "$as_me:$LINENO: error: --with-snapshots parameter invalid
d0191583 9098" >&5
ec6a6fbe 9099$as_echo "$as_me: error: --with-snapshots parameter invalid
d0191583
JM
9100" >&2;}
9101 { (exit 1); exit 1; }; }
9102fi;
9103
9104if test x$SNAPSHOTS = xinternal; then
9105
9106cat >>confdefs.h <<\_ACEOF
9107#define SNAPSHOT_INTERNAL 1
9108_ACEOF
ad6254c5 9109
ad6254c5 9110fi
7a197a62 9111
d0191583 9112################################################################################
ec6a6fbe
AK
9113{ $as_echo "$as_me:$LINENO: checking whether to include mirrors" >&5
9114$as_echo_n "checking whether to include mirrors... " >&6; }
d0191583
JM
9115
9116# Check whether --with-mirrors was given.
9117if test "${with_mirrors+set}" = set; then
9118 withval=$with_mirrors; MIRRORS="$withval"
9119else
9120 MIRRORS="internal"
ad6254c5 9121fi
ad6254c5 9122
ec6a6fbe
AK
9123{ $as_echo "$as_me:$LINENO: result: $MIRRORS" >&5
9124$as_echo "$MIRRORS" >&6; }
ad6254c5 9125
d0191583 9126if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ];
ec6a6fbe 9127 then { { $as_echo "$as_me:$LINENO: error: --with-mirrors parameter invalid
d0191583 9128" >&5
ec6a6fbe 9129$as_echo "$as_me: error: --with-mirrors parameter invalid
d0191583
JM
9130" >&2;}
9131 { (exit 1); exit 1; }; }
9132fi;
ad6254c5 9133
d0191583 9134if test x$MIRRORS = xinternal; then
ad6254c5 9135
d0191583
JM
9136cat >>confdefs.h <<\_ACEOF
9137#define MIRRORED_INTERNAL 1
ad6254c5 9138_ACEOF
8a2fc586 9139
d0191583 9140fi
8a2fc586 9141
d0191583 9142################################################################################
ec6a6fbe
AK
9143{ $as_echo "$as_me:$LINENO: checking whether to enable readline" >&5
9144$as_echo_n "checking whether to enable readline... " >&6; }
d0191583
JM
9145# Check whether --enable-readline was given.
9146if test "${enable_readline+set}" = set; then
9147 enableval=$enable_readline; READLINE=$enableval
9148else
06e459df 9149 READLINE=maybe
d0191583 9150fi
8a2fc586 9151
ec6a6fbe
AK
9152{ $as_echo "$as_me:$LINENO: result: $READLINE" >&5
9153$as_echo "$READLINE" >&6; }
8a2fc586 9154
d0191583 9155################################################################################
ec6a6fbe
AK
9156{ $as_echo "$as_me:$LINENO: checking whether to enable realtime support" >&5
9157$as_echo_n "checking whether to enable realtime support... " >&6; }
d0191583
JM
9158# Check whether --enable-realtime was given.
9159if test "${enable_realtime+set}" = set; then
9160 enableval=$enable_realtime; REALTIME=$enableval
ad6254c5 9161fi
ad6254c5 9162
ec6a6fbe
AK
9163{ $as_echo "$as_me:$LINENO: result: $REALTIME" >&5
9164$as_echo "$REALTIME" >&6; }
d0191583
JM
9165
9166################################################################################
ec6a6fbe
AK
9167{ $as_echo "$as_me:$LINENO: checking whether to build cluster LVM daemon" >&5
9168$as_echo_n "checking whether to build cluster LVM daemon... " >&6; }
d0191583
JM
9169
9170# Check whether --with-clvmd was given.
9171if test "${with_clvmd+set}" = set; then
9172 withval=$with_clvmd; CLVMD="$withval"
ad6254c5 9173else
d0191583
JM
9174 CLVMD="none"
9175fi
8a2fc586 9176
d0191583
JM
9177if test x$CLVMD = xyes; then
9178 CLVMD=all
9179fi
ec6a6fbe
AK
9180{ $as_echo "$as_me:$LINENO: result: $CLVMD" >&5
9181$as_echo "$CLVMD" >&6; }
8a2fc586 9182
d0191583
JM
9183if test x$CLVMD != xnone && test x$CLUSTER = xnone; then
9184 CLUSTER=internal
9185fi
8a2fc586 9186
e2997b73
AK
9187if [ "x$CLVMD" = xcorosync -o "x$CLVMD" = xall ]; then
9188
9189
9190if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
9191 if test -n "$ac_tool_prefix"; then
9192 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
9193set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
9194{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9195$as_echo_n "checking for $ac_word... " >&6; }
9196if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9197 $as_echo_n "(cached) " >&6
9198else
9199 case $PKG_CONFIG in
9200 [\\/]* | ?:[\\/]*)
9201 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9202 ;;
9203 *)
9204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9205for as_dir in $PATH
9206do
9207 IFS=$as_save_IFS
9208 test -z "$as_dir" && as_dir=.
9209 for ac_exec_ext in '' $ac_executable_extensions; do
9210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9211 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9212 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9213 break 2
9214 fi
9215done
9216done
9217IFS=$as_save_IFS
9218
9219 ;;
9220esac
9221fi
9222PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9223if test -n "$PKG_CONFIG"; then
9224 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9225$as_echo "$PKG_CONFIG" >&6; }
9226else
9227 { $as_echo "$as_me:$LINENO: result: no" >&5
9228$as_echo "no" >&6; }
9229fi
9230
9231
9232fi
9233if test -z "$ac_cv_path_PKG_CONFIG"; then
9234 ac_pt_PKG_CONFIG=$PKG_CONFIG
9235 # Extract the first word of "pkg-config", so it can be a program name with args.
9236set dummy pkg-config; ac_word=$2
9237{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9238$as_echo_n "checking for $ac_word... " >&6; }
9239if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
9240 $as_echo_n "(cached) " >&6
9241else
9242 case $ac_pt_PKG_CONFIG in
9243 [\\/]* | ?:[\\/]*)
9244 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
9245 ;;
9246 *)
9247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9248for as_dir in $PATH
9249do
9250 IFS=$as_save_IFS
9251 test -z "$as_dir" && as_dir=.
9252 for ac_exec_ext in '' $ac_executable_extensions; do
9253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9254 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9255 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9256 break 2
9257 fi
9258done
9259done
9260IFS=$as_save_IFS
9261
9262 ;;
9263esac
9264fi
9265ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
9266if test -n "$ac_pt_PKG_CONFIG"; then
9267 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
9268$as_echo "$ac_pt_PKG_CONFIG" >&6; }
9269else
9270 { $as_echo "$as_me:$LINENO: result: no" >&5
9271$as_echo "no" >&6; }
9272fi
9273
9274 if test "x$ac_pt_PKG_CONFIG" = x; then
9275 PKG_CONFIG=""
9276 else
9277 case $cross_compiling:$ac_tool_warned in
9278yes:)
9279{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9280$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9281ac_tool_warned=yes ;;
9282esac
9283 PKG_CONFIG=$ac_pt_PKG_CONFIG
9284 fi
9285else
9286 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
9287fi
9288
9289fi
9290if test -n "$PKG_CONFIG"; then
9291 _pkg_min_version=0.9.0
9292 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
9293$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
9294 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
9295 { $as_echo "$as_me:$LINENO: result: yes" >&5
9296$as_echo "yes" >&6; }
9297 else
9298 { $as_echo "$as_me:$LINENO: result: no" >&5
9299$as_echo "no" >&6; }
9300 PKG_CONFIG=""
9301 fi
9302
9303fi
9304
9305pkg_failed=no
9306{ $as_echo "$as_me:$LINENO: checking for QUORUM" >&5
9307$as_echo_n "checking for QUORUM... " >&6; }
9308
9309if test -n "$QUORUM_CFLAGS"; then
9310 pkg_cv_QUORUM_CFLAGS="$QUORUM_CFLAGS"
9311 elif test -n "$PKG_CONFIG"; then
9312 if test -n "$PKG_CONFIG" && \
9313 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libquorum\"") >&5
9314 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
9315 ac_status=$?
9316 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9317 (exit $ac_status); }; then
9318 pkg_cv_QUORUM_CFLAGS=`$PKG_CONFIG --cflags "libquorum" 2>/dev/null`
9319else
9320 pkg_failed=yes
9321fi
9322 else
9323 pkg_failed=untried
9324fi
9325if test -n "$QUORUM_LIBS"; then
9326 pkg_cv_QUORUM_LIBS="$QUORUM_LIBS"
9327 elif test -n "$PKG_CONFIG"; then
9328 if test -n "$PKG_CONFIG" && \
9329 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libquorum\"") >&5
9330 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
9331 ac_status=$?
9332 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9333 (exit $ac_status); }; then
9334 pkg_cv_QUORUM_LIBS=`$PKG_CONFIG --libs "libquorum" 2>/dev/null`
9335else
9336 pkg_failed=yes
9337fi
9338 else
9339 pkg_failed=untried
9340fi
9341
9342
9343
9344if test $pkg_failed = yes; then
9345
9346if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9347 _pkg_short_errors_supported=yes
9348else
9349 _pkg_short_errors_supported=no
9350fi
9351 if test $_pkg_short_errors_supported = yes; then
9352 QUORUM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libquorum" 2>&1`
9353 else
9354 QUORUM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libquorum" 2>&1`
9355 fi
9356 # Put the nasty error message in config.log where it belongs
9357 echo "$QUORUM_PKG_ERRORS" >&5
9358
9359 { $as_echo "$as_me:$LINENO: result: no" >&5
9360$as_echo "no" >&6; }
9361 { $as_echo "$as_me:$LINENO: result: no pkg for quorum library, using -lquorum" >&5
9362$as_echo "no pkg for quorum library, using -lquorum" >&6; };
9363 QUORUM_LIBS="-lquorum"
9364elif test $pkg_failed = untried; then
9365 { $as_echo "$as_me:$LINENO: result: no pkg for quorum library, using -lquorum" >&5
9366$as_echo "no pkg for quorum library, using -lquorum" >&6; };
9367 QUORUM_LIBS="-lquorum"
9368else
9369 QUORUM_CFLAGS=$pkg_cv_QUORUM_CFLAGS
9370 QUORUM_LIBS=$pkg_cv_QUORUM_LIBS
9371 { $as_echo "$as_me:$LINENO: result: yes" >&5
9372$as_echo "yes" >&6; }
9373 :
9374fi
9375
9376pkg_failed=no
9377{ $as_echo "$as_me:$LINENO: checking for CONFDB" >&5
9378$as_echo_n "checking for CONFDB... " >&6; }
9379
9380if test -n "$CONFDB_CFLAGS"; then
9381 pkg_cv_CONFDB_CFLAGS="$CONFDB_CFLAGS"
9382 elif test -n "$PKG_CONFIG"; then
9383 if test -n "$PKG_CONFIG" && \
9384 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libconfdb\"") >&5
9385 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
9386 ac_status=$?
9387 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9388 (exit $ac_status); }; then
9389 pkg_cv_CONFDB_CFLAGS=`$PKG_CONFIG --cflags "libconfdb" 2>/dev/null`
9390else
9391 pkg_failed=yes
9392fi
9393 else
9394 pkg_failed=untried
9395fi
9396if test -n "$CONFDB_LIBS"; then
9397 pkg_cv_CONFDB_LIBS="$CONFDB_LIBS"
9398 elif test -n "$PKG_CONFIG"; then
9399 if test -n "$PKG_CONFIG" && \
9400 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libconfdb\"") >&5
9401 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
9402 ac_status=$?
9403 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9404 (exit $ac_status); }; then
9405 pkg_cv_CONFDB_LIBS=`$PKG_CONFIG --libs "libconfdb" 2>/dev/null`
9406else
9407 pkg_failed=yes
9408fi
9409 else
9410 pkg_failed=untried
9411fi
9412
9413
9414
9415if test $pkg_failed = yes; then
9416
9417if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9418 _pkg_short_errors_supported=yes
9419else
9420 _pkg_short_errors_supported=no
9421fi
9422 if test $_pkg_short_errors_supported = yes; then
9423 CONFDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libconfdb" 2>&1`
9424 else
9425 CONFDB_PKG_ERRORS=`$PKG_CONFIG --print-errors "libconfdb" 2>&1`
9426 fi
9427 # Put the nasty error message in config.log where it belongs
9428 echo "$CONFDB_PKG_ERRORS" >&5
9429
9430 { $as_echo "$as_me:$LINENO: result: no" >&5
9431$as_echo "no" >&6; }
9432 { $as_echo "$as_me:$LINENO: result: no pkg for confdb library, using -lconfdb" >&5
9433$as_echo "no pkg for confdb library, using -lconfdb" >&6; };
9434 CONFDB_LIBS="-lconfdb"
9435elif test $pkg_failed = untried; then
9436 { $as_echo "$as_me:$LINENO: result: no pkg for confdb library, using -lconfdb" >&5
9437$as_echo "no pkg for confdb library, using -lconfdb" >&6; };
9438 CONFDB_LIBS="-lconfdb"
9439else
9440 CONFDB_CFLAGS=$pkg_cv_CONFDB_CFLAGS
9441 CONFDB_LIBS=$pkg_cv_CONFDB_LIBS
9442 { $as_echo "$as_me:$LINENO: result: yes" >&5
9443$as_echo "yes" >&6; }
9444 :
9445fi
9446
9447pkg_failed=no
9448{ $as_echo "$as_me:$LINENO: checking for CPG" >&5
9449$as_echo_n "checking for CPG... " >&6; }
9450
9451if test -n "$CPG_CFLAGS"; then
9452 pkg_cv_CPG_CFLAGS="$CPG_CFLAGS"
9453 elif test -n "$PKG_CONFIG"; then
9454 if test -n "$PKG_CONFIG" && \
9455 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
9456 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
9457 ac_status=$?
9458 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9459 (exit $ac_status); }; then
9460 pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
9461else
9462 pkg_failed=yes
9463fi
9464 else
9465 pkg_failed=untried
9466fi
9467if test -n "$CPG_LIBS"; then
9468 pkg_cv_CPG_LIBS="$CPG_LIBS"
9469 elif test -n "$PKG_CONFIG"; then
9470 if test -n "$PKG_CONFIG" && \
9471 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
9472 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
9473 ac_status=$?
9474 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9475 (exit $ac_status); }; then
9476 pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
9477else
9478 pkg_failed=yes
9479fi
9480 else
9481 pkg_failed=untried
9482fi
9483
9484
9485
9486if test $pkg_failed = yes; then
9487
9488if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9489 _pkg_short_errors_supported=yes
9490else
9491 _pkg_short_errors_supported=no
9492fi
9493 if test $_pkg_short_errors_supported = yes; then
9494 CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
9495 else
9496 CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
9497 fi
9498 # Put the nasty error message in config.log where it belongs
9499 echo "$CPG_PKG_ERRORS" >&5
9500
9501 { $as_echo "$as_me:$LINENO: result: no" >&5
9502$as_echo "no" >&6; }
9503 { $as_echo "$as_me:$LINENO: result: no pkg for libcpg library, using -lcpg" >&5
9504$as_echo "no pkg for libcpg library, using -lcpg" >&6; };
9505 CPG_LIBS="-lcpg"
9506elif test $pkg_failed = untried; then
9507 { $as_echo "$as_me:$LINENO: result: no pkg for libcpg library, using -lcpg" >&5
9508$as_echo "no pkg for libcpg library, using -lcpg" >&6; };
9509 CPG_LIBS="-lcpg"
9510else
9511 CPG_CFLAGS=$pkg_cv_CPG_CFLAGS
9512 CPG_LIBS=$pkg_cv_CPG_LIBS
9513 { $as_echo "$as_me:$LINENO: result: yes" >&5
9514$as_echo "yes" >&6; }
9515 :
9516fi
9517fi
9518
d0191583 9519################################################################################
ec6a6fbe
AK
9520{ $as_echo "$as_me:$LINENO: checking whether to enable debugging" >&5
9521$as_echo_n "checking whether to enable debugging... " >&6; }
d0191583
JM
9522# Check whether --enable-debug was given.
9523if test "${enable_debug+set}" = set; then
9524 enableval=$enable_debug; DEBUG=$enableval
9525else
9526 DEBUG=no
9527fi
8a2fc586 9528
ec6a6fbe
AK
9529{ $as_echo "$as_me:$LINENO: result: $DEBUG" >&5
9530$as_echo "$DEBUG" >&6; }
ad6254c5 9531
d0191583
JM
9532if test x$DEBUG = xyes; then
9533 COPTIMISE_FLAG=
fc54be10 9534else
d0191583
JM
9535 CSCOPE_CMD=
9536fi
fc54be10 9537
d0191583 9538################################################################################
ec6a6fbe
AK
9539{ $as_echo "$as_me:$LINENO: checking for C optimisation flag" >&5
9540$as_echo_n "checking for C optimisation flag... " >&6; }
d0191583
JM
9541
9542# Check whether --with-optimisation was given.
9543if test "${with_optimisation+set}" = set; then
9544 withval=$with_optimisation; COPTIMISE_FLAG="$withval"
9545fi
9546
ec6a6fbe
AK
9547{ $as_echo "$as_me:$LINENO: result: $COPTIMISE_FLAG" >&5
9548$as_echo "$COPTIMISE_FLAG" >&6; }
fddafd51
ZK
9549
9550################################################################################
ec6a6fbe
AK
9551{ $as_echo "$as_me:$LINENO: checking whether to gather gcov profiling data" >&5
9552$as_echo_n "checking whether to gather gcov profiling data... " >&6; }
fddafd51
ZK
9553# Check whether --enable-profiling was given.
9554if test "${enable_profiling+set}" = set; then
5556819a 9555 enableval=$enable_profiling; PROFILING=$enableval
fddafd51 9556else
5556819a 9557 PROFILING=no
fddafd51
ZK
9558fi
9559
ec6a6fbe
AK
9560{ $as_echo "$as_me:$LINENO: result: $PROFILING" >&5
9561$as_echo "$PROFILING" >&6; }
5556819a
AK
9562
9563if test "x$PROFILING" = xyes; then
9564 COPTIMISE_FLAG="$COPTIMISE_FLAG -fprofile-arcs -ftest-coverage"
9565 # Extract the first word of "lcov", so it can be a program name with args.
fddafd51 9566set dummy lcov; ac_word=$2
ec6a6fbe
AK
9567{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9568$as_echo_n "checking for $ac_word... " >&6; }
fddafd51 9569if test "${ac_cv_path_LCOV+set}" = set; then
ec6a6fbe 9570 $as_echo_n "(cached) " >&6
fddafd51
ZK
9571else
9572 case $LCOV in
9573 [\\/]* | ?:[\\/]*)
9574 ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path.
9575 ;;
9576 *)
9577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9578for as_dir in $PATH
9579do
9580 IFS=$as_save_IFS
9581 test -z "$as_dir" && as_dir=.
9582 for ac_exec_ext in '' $ac_executable_extensions; do
9583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9584 ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 9585 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
fddafd51
ZK
9586 break 2
9587 fi
9588done
9589done
9590IFS=$as_save_IFS
9591
b145d876 9592 test -z "$ac_cv_path_LCOV" && ac_cv_path_LCOV="no"
fddafd51
ZK
9593 ;;
9594esac
9595fi
9596LCOV=$ac_cv_path_LCOV
9597if test -n "$LCOV"; then
ec6a6fbe
AK
9598 { $as_echo "$as_me:$LINENO: result: $LCOV" >&5
9599$as_echo "$LCOV" >&6; }
fddafd51 9600else
ec6a6fbe
AK
9601 { $as_echo "$as_me:$LINENO: result: no" >&5
9602$as_echo "no" >&6; }
fddafd51
ZK
9603fi
9604
9605
5556819a 9606 # Extract the first word of "genhtml", so it can be a program name with args.
fddafd51 9607set dummy genhtml; ac_word=$2
ec6a6fbe
AK
9608{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9609$as_echo_n "checking for $ac_word... " >&6; }
fddafd51 9610if test "${ac_cv_path_GENHTML+set}" = set; then
ec6a6fbe 9611 $as_echo_n "(cached) " >&6
fddafd51
ZK
9612else
9613 case $GENHTML in
9614 [\\/]* | ?:[\\/]*)
9615 ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path.
9616 ;;
9617 *)
9618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9619for as_dir in $PATH
9620do
9621 IFS=$as_save_IFS
9622 test -z "$as_dir" && as_dir=.
9623 for ac_exec_ext in '' $ac_executable_extensions; do
9624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9625 ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 9626 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
fddafd51
ZK
9627 break 2
9628 fi
9629done
9630done
9631IFS=$as_save_IFS
9632
b145d876 9633 test -z "$ac_cv_path_GENHTML" && ac_cv_path_GENHTML="no"
fddafd51
ZK
9634 ;;
9635esac
9636fi
9637GENHTML=$ac_cv_path_GENHTML
9638if test -n "$GENHTML"; then
ec6a6fbe
AK
9639 { $as_echo "$as_me:$LINENO: result: $GENHTML" >&5
9640$as_echo "$GENHTML" >&6; }
fddafd51 9641else
ec6a6fbe
AK
9642 { $as_echo "$as_me:$LINENO: result: no" >&5
9643$as_echo "no" >&6; }
fddafd51
ZK
9644fi
9645
9646
b145d876 9647 if test "$LCOV" = no -o "$GENHTML" = no ; then
ec6a6fbe
AK
9648 { { $as_echo "$as_me:$LINENO: error: lcov and genhtml are required for profiling" >&5
9649$as_echo "$as_me: error: lcov and genhtml are required for profiling" >&2;}
b145d876
ZK
9650 { (exit 1); exit 1; }; }
9651 fi
5556819a 9652fi
d0191583
JM
9653
9654################################################################################
ec6a6fbe
AK
9655{ $as_echo "$as_me:$LINENO: checking whether to use device-mapper" >&5
9656$as_echo_n "checking whether to use device-mapper... " >&6; }
d0191583
JM
9657# Check whether --enable-devmapper was given.
9658if test "${enable_devmapper+set}" = set; then
9659 enableval=$enable_devmapper; DEVMAPPER=$enableval
fc54be10
AK
9660fi
9661
ec6a6fbe
AK
9662{ $as_echo "$as_me:$LINENO: result: $DEVMAPPER" >&5
9663$as_echo "$DEVMAPPER" >&6; }
d0191583
JM
9664
9665if test x$DEVMAPPER = xyes; then
ad6254c5
AK
9666
9667cat >>confdefs.h <<\_ACEOF
d0191583 9668#define DEVMAPPER_SUPPORT 1
ad6254c5
AK
9669_ACEOF
9670
9671fi
9672
93bd259b
AK
9673################################################################################
9674# Check whether --enable-compat was given.
9675if test "${enable_compat+set}" = set; then
9676 enableval=$enable_compat; DM_COMPAT=$enableval
9677else
9678 DM_COMPAT=no
9679fi
9680
9681
9682################################################################################
9683# Check whether --enable-ioctl was given.
9684if test "${enable_ioctl+set}" = set; then
9685 enableval=$enable_ioctl; DM_IOCTLS=$enableval
9686fi
9687
9688
d0191583 9689################################################################################
ec6a6fbe
AK
9690{ $as_echo "$as_me:$LINENO: checking whether to enable O_DIRECT" >&5
9691$as_echo_n "checking whether to enable O_DIRECT... " >&6; }
d0191583
JM
9692# Check whether --enable-o_direct was given.
9693if test "${enable_o_direct+set}" = set; then
9694 enableval=$enable_o_direct; ODIRECT=$enableval
ad6254c5 9695fi
ad6254c5 9696
ec6a6fbe
AK
9697{ $as_echo "$as_me:$LINENO: result: $ODIRECT" >&5
9698$as_echo "$ODIRECT" >&6; }
ad6254c5 9699
d0191583 9700if test x$ODIRECT = xyes; then
ad6254c5 9701
d0191583
JM
9702cat >>confdefs.h <<\_ACEOF
9703#define O_DIRECT_SUPPORT 1
9704_ACEOF
ad6254c5 9705
d0191583 9706fi
ad6254c5 9707
d0191583 9708################################################################################
ec6a6fbe
AK
9709{ $as_echo "$as_me:$LINENO: checking whether to compile liblvm2cmd.so" >&5
9710$as_echo_n "checking whether to compile liblvm2cmd.so... " >&6; }
d0191583
JM
9711# Check whether --enable-cmdlib was given.
9712if test "${enable_cmdlib+set}" = set; then
9713 enableval=$enable_cmdlib; CMDLIB=$enableval
ad6254c5 9714else
d0191583
JM
9715 CMDLIB=no
9716fi
8a2fc586 9717
ec6a6fbe
AK
9718{ $as_echo "$as_me:$LINENO: result: $CMDLIB" >&5
9719$as_echo "$CMDLIB" >&6; }
8a2fc586 9720
2a9a80c9 9721test x$CMDLIB = xyes \
d179cc7a
JM
9722 && LVM2CMD_LIB=-llvm2cmd \
9723 || LVM2CMD_LIB=
9724
93bd259b
AK
9725################################################################################
9726# Check whether --enable-pkgconfig was given.
9727if test "${enable_pkgconfig+set}" = set; then
9728 enableval=$enable_pkgconfig; PKGCONFIG=$enableval
9729else
9730 PKGCONFIG=no
9731fi
9732
2a9a80c9 9733
d0191583 9734################################################################################
ec6a6fbe
AK
9735{ $as_echo "$as_me:$LINENO: checking whether to install fsadm" >&5
9736$as_echo_n "checking whether to install fsadm... " >&6; }
d0191583
JM
9737# Check whether --enable-fsadm was given.
9738if test "${enable_fsadm+set}" = set; then
9739 enableval=$enable_fsadm; FSADM=$enableval
9740fi
8a2fc586 9741
ec6a6fbe
AK
9742{ $as_echo "$as_me:$LINENO: result: $FSADM" >&5
9743$as_echo "$FSADM" >&6; }
8a2fc586 9744
d0191583 9745################################################################################
ec6a6fbe
AK
9746{ $as_echo "$as_me:$LINENO: checking whether to use dmeventd" >&5
9747$as_echo_n "checking whether to use dmeventd... " >&6; }
d0191583
JM
9748# Check whether --enable-dmeventd was given.
9749if test "${enable_dmeventd+set}" = set; then
9750 enableval=$enable_dmeventd; DMEVENTD=$enableval
9751fi
ad6254c5 9752
ec6a6fbe
AK
9753{ $as_echo "$as_me:$LINENO: result: $DMEVENTD" >&5
9754$as_echo "$DMEVENTD" >&6; }
ad6254c5 9755
93bd259b
AK
9756BUILD_DMEVENTD=$DMEVENTD
9757
2a9a80c9
PR
9758if test x$DMEVENTD = xyes; then
9759 if test x$MIRRORS != xinternal; then
ec6a6fbe 9760 { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd currently requires --with-mirrors=internal
2a9a80c9 9761 " >&5
ec6a6fbe 9762$as_echo "$as_me: error: --enable-dmeventd currently requires --with-mirrors=internal
2a9a80c9 9763 " >&2;}
d0191583 9764 { (exit 1); exit 1; }; }
2a9a80c9
PR
9765 fi
9766 if test x$CMDLIB = xno; then
ec6a6fbe 9767 { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd requires --enable-cmdlib to be used as well
2a9a80c9 9768 " >&5
ec6a6fbe 9769$as_echo "$as_me: error: --enable-dmeventd requires --enable-cmdlib to be used as well
2a9a80c9
PR
9770 " >&2;}
9771 { (exit 1); exit 1; }; }
9772 fi
ad6254c5 9773fi
7a197a62 9774
d0191583
JM
9775if test x$DMEVENTD = xyes; then
9776
9777cat >>confdefs.h <<\_ACEOF
9778#define DMEVENTD 1
ad6254c5
AK
9779_ACEOF
9780
ad6254c5 9781fi
93bd259b
AK
9782
9783################################################################################
9784
ec6a6fbe
AK
9785{ $as_echo "$as_me:$LINENO: checking for getline in -lc" >&5
9786$as_echo_n "checking for getline in -lc... " >&6; }
93bd259b 9787if test "${ac_cv_lib_c_getline+set}" = set; then
ec6a6fbe 9788 $as_echo_n "(cached) " >&6
93bd259b
AK
9789else
9790 ac_check_lib_save_LIBS=$LIBS
9791LIBS="-lc $LIBS"
9792cat >conftest.$ac_ext <<_ACEOF
9793/* confdefs.h. */
9794_ACEOF
9795cat confdefs.h >>conftest.$ac_ext
9796cat >>conftest.$ac_ext <<_ACEOF
9797/* end confdefs.h. */
9798
9799/* Override any GCC internal prototype to avoid an error.
9800 Use char because int might match the return type of a GCC
9801 builtin and then its argument prototype would still apply. */
9802#ifdef __cplusplus
9803extern "C"
9804#endif
9805char getline ();
9806int
9807main ()
9808{
9809return getline ();
9810 ;
9811 return 0;
9812}
9813_ACEOF
9814rm -f conftest.$ac_objext conftest$ac_exeext
9815if { (ac_try="$ac_link"
9816case "(($ac_try" in
9817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9818 *) ac_try_echo=$ac_try;;
9819esac
ec6a6fbe
AK
9820eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9821$as_echo "$ac_try_echo") >&5
93bd259b
AK
9822 (eval "$ac_link") 2>conftest.er1
9823 ac_status=$?
9824 grep -v '^ *+' conftest.er1 >conftest.err
9825 rm -f conftest.er1
9826 cat conftest.err >&5
ec6a6fbe 9827 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
93bd259b
AK
9828 (exit $ac_status); } && {
9829 test -z "$ac_c_werror_flag" ||
9830 test ! -s conftest.err
ec6a6fbe
AK
9831 } && test -s conftest$ac_exeext && {
9832 test "$cross_compiling" = yes ||
9833 $as_test_x conftest$ac_exeext
9834 }; then
93bd259b
AK
9835 ac_cv_lib_c_getline=yes
9836else
ec6a6fbe 9837 $as_echo "$as_me: failed program was:" >&5
93bd259b
AK
9838sed 's/^/| /' conftest.$ac_ext >&5
9839
9840 ac_cv_lib_c_getline=no
9841fi
9842
ec6a6fbe 9843rm -rf conftest.dSYM
93bd259b
AK
9844rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9845 conftest$ac_exeext conftest.$ac_ext
9846LIBS=$ac_check_lib_save_LIBS
9847fi
ec6a6fbe
AK
9848{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_getline" >&5
9849$as_echo "$ac_cv_lib_c_getline" >&6; }
9850if test "x$ac_cv_lib_c_getline" = x""yes; then
93bd259b
AK
9851
9852cat >>confdefs.h <<\_ACEOF
9853#define HAVE_GETLINE 1
9854_ACEOF
9855
9856fi
9857
9858
9859################################################################################
9860
ec6a6fbe
AK
9861{ $as_echo "$as_me:$LINENO: checking for canonicalize_file_name in -lc" >&5
9862$as_echo_n "checking for canonicalize_file_name in -lc... " >&6; }
93bd259b 9863if test "${ac_cv_lib_c_canonicalize_file_name+set}" = set; then
ec6a6fbe 9864 $as_echo_n "(cached) " >&6
93bd259b
AK
9865else
9866 ac_check_lib_save_LIBS=$LIBS
9867LIBS="-lc $LIBS"
9868cat >conftest.$ac_ext <<_ACEOF
9869/* confdefs.h. */
9870_ACEOF
9871cat confdefs.h >>conftest.$ac_ext
9872cat >>conftest.$ac_ext <<_ACEOF
9873/* end confdefs.h. */
9874
9875/* Override any GCC internal prototype to avoid an error.
9876 Use char because int might match the return type of a GCC
9877 builtin and then its argument prototype would still apply. */
9878#ifdef __cplusplus
9879extern "C"
9880#endif
9881char canonicalize_file_name ();
9882int
9883main ()
9884{
9885return canonicalize_file_name ();
9886 ;
9887 return 0;
9888}
9889_ACEOF
9890rm -f conftest.$ac_objext conftest$ac_exeext
9891if { (ac_try="$ac_link"
9892case "(($ac_try" in
9893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9894 *) ac_try_echo=$ac_try;;
9895esac
ec6a6fbe
AK
9896eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9897$as_echo "$ac_try_echo") >&5
93bd259b
AK
9898 (eval "$ac_link") 2>conftest.er1
9899 ac_status=$?
9900 grep -v '^ *+' conftest.er1 >conftest.err
9901 rm -f conftest.er1
9902 cat conftest.err >&5
ec6a6fbe 9903 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
93bd259b
AK
9904 (exit $ac_status); } && {
9905 test -z "$ac_c_werror_flag" ||
9906 test ! -s conftest.err
ec6a6fbe
AK
9907 } && test -s conftest$ac_exeext && {
9908 test "$cross_compiling" = yes ||
9909 $as_test_x conftest$ac_exeext
9910 }; then
93bd259b
AK
9911 ac_cv_lib_c_canonicalize_file_name=yes
9912else
ec6a6fbe 9913 $as_echo "$as_me: failed program was:" >&5
93bd259b
AK
9914sed 's/^/| /' conftest.$ac_ext >&5
9915
9916 ac_cv_lib_c_canonicalize_file_name=no
9917fi
9918
ec6a6fbe 9919rm -rf conftest.dSYM
93bd259b
AK
9920rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9921 conftest$ac_exeext conftest.$ac_ext
9922LIBS=$ac_check_lib_save_LIBS
9923fi
ec6a6fbe
AK
9924{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_canonicalize_file_name" >&5
9925$as_echo "$ac_cv_lib_c_canonicalize_file_name" >&6; }
9926if test "x$ac_cv_lib_c_canonicalize_file_name" = x""yes; then
93bd259b
AK
9927
9928cat >>confdefs.h <<\_ACEOF
9929#define HAVE_CANONICALIZE_FILE_NAME 1
9930_ACEOF
9931
9932fi
9933
9934
d0191583
JM
9935################################################################################
9936if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ];
9937 then exec_prefix="";
9938fi;
ad6254c5
AK
9939
9940################################################################################
06e459df 9941if test x$READLINE != xno; then
ec6a6fbe
AK
9942 { $as_echo "$as_me:$LINENO: checking for library containing tgetent" >&5
9943$as_echo_n "checking for library containing tgetent... " >&6; }
ad6254c5 9944if test "${ac_cv_search_tgetent+set}" = set; then
ec6a6fbe 9945 $as_echo_n "(cached) " >&6
ad6254c5
AK
9946else
9947 ac_func_search_save_LIBS=$LIBS
ad6254c5 9948cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9949/* confdefs.h. */
9950_ACEOF
9951cat confdefs.h >>conftest.$ac_ext
9952cat >>conftest.$ac_ext <<_ACEOF
9953/* end confdefs.h. */
9954
7a197a62
AK
9955/* Override any GCC internal prototype to avoid an error.
9956 Use char because int might match the return type of a GCC
9957 builtin and then its argument prototype would still apply. */
ad6254c5
AK
9958#ifdef __cplusplus
9959extern "C"
9960#endif
ad6254c5
AK
9961char tgetent ();
9962int
9963main ()
9964{
7a197a62 9965return tgetent ();
ad6254c5
AK
9966 ;
9967 return 0;
9968}
9969_ACEOF
18dcfb69 9970for ac_lib in '' tinfo ncurses curses termcap termlib; do
7a197a62
AK
9971 if test -z "$ac_lib"; then
9972 ac_res="none required"
9973 else
9974 ac_res=-l$ac_lib
9975 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9976 fi
9977 rm -f conftest.$ac_objext conftest$ac_exeext
9978if { (ac_try="$ac_link"
9979case "(($ac_try" in
9980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9981 *) ac_try_echo=$ac_try;;
9982esac
ec6a6fbe
AK
9983eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9984$as_echo "$ac_try_echo") >&5
7a197a62 9985 (eval "$ac_link") 2>conftest.er1
ad6254c5 9986 ac_status=$?
8a2fc586
AK
9987 grep -v '^ *+' conftest.er1 >conftest.err
9988 rm -f conftest.er1
9989 cat conftest.err >&5
ec6a6fbe 9990 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9991 (exit $ac_status); } && {
9992 test -z "$ac_c_werror_flag" ||
9993 test ! -s conftest.err
ec6a6fbe
AK
9994 } && test -s conftest$ac_exeext && {
9995 test "$cross_compiling" = yes ||
9996 $as_test_x conftest$ac_exeext
9997 }; then
7a197a62 9998 ac_cv_search_tgetent=$ac_res
ad6254c5 9999else
ec6a6fbe 10000 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10001sed 's/^/| /' conftest.$ac_ext >&5
10002
ad6254c5 10003
7a197a62 10004fi
ad6254c5 10005
ec6a6fbe 10006rm -rf conftest.dSYM
25fbec5b 10007rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7a197a62
AK
10008 conftest$ac_exeext
10009 if test "${ac_cv_search_tgetent+set}" = set; then
10010 break
ad6254c5 10011fi
7a197a62
AK
10012done
10013if test "${ac_cv_search_tgetent+set}" = set; then
10014 :
10015else
10016 ac_cv_search_tgetent=no
ad6254c5 10017fi
7a197a62 10018rm conftest.$ac_ext
ad6254c5
AK
10019LIBS=$ac_func_search_save_LIBS
10020fi
ec6a6fbe
AK
10021{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
10022$as_echo "$ac_cv_search_tgetent" >&6; }
7a197a62
AK
10023ac_res=$ac_cv_search_tgetent
10024if test "$ac_res" != no; then
10025 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
06e459df 10026 tg_found=yes
ad6254c5 10027else
06e459df
JM
10028 tg_found=no
10029fi
10030
10031 test x$READLINE:$tg_found = xyes:no &&
ec6a6fbe 10032 { { $as_echo "$as_me:$LINENO: error: termcap could not be found which is required for the
ad6254c5
AK
10033--enable-readline option (which is enabled by default). Either disable readline
10034support with --disable-readline or download and install termcap from:
10035 ftp.gnu.org/gnu/termcap
10036Note: if you are using precompiled packages you will also need the development
10037 package as well (which may be called termcap-devel or something similar).
10038Note: (n)curses also seems to work as a substitute for termcap. This was
10039 not found either - but you could try installing that as well.
10040" >&5
ec6a6fbe 10041$as_echo "$as_me: error: termcap could not be found which is required for the
ad6254c5
AK
10042--enable-readline option (which is enabled by default). Either disable readline
10043support with --disable-readline or download and install termcap from:
10044 ftp.gnu.org/gnu/termcap
10045Note: if you are using precompiled packages you will also need the development
10046 package as well (which may be called termcap-devel or something similar).
10047Note: (n)curses also seems to work as a substitute for termcap. This was
10048 not found either - but you could try installing that as well.
10049" >&2;}
10050 { (exit 1); exit 1; }; }
ad6254c5
AK
10051fi
10052
10053################################################################################
ec6a6fbe
AK
10054{ $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10055$as_echo_n "checking for dlopen in -ldl... " >&6; }
ad6254c5 10056if test "${ac_cv_lib_dl_dlopen+set}" = set; then
ec6a6fbe 10057 $as_echo_n "(cached) " >&6
ad6254c5
AK
10058else
10059 ac_check_lib_save_LIBS=$LIBS
10060LIBS="-ldl $LIBS"
10061cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10062/* confdefs.h. */
10063_ACEOF
10064cat confdefs.h >>conftest.$ac_ext
10065cat >>conftest.$ac_ext <<_ACEOF
10066/* end confdefs.h. */
10067
7a197a62
AK
10068/* Override any GCC internal prototype to avoid an error.
10069 Use char because int might match the return type of a GCC
10070 builtin and then its argument prototype would still apply. */
ad6254c5
AK
10071#ifdef __cplusplus
10072extern "C"
10073#endif
ad6254c5
AK
10074char dlopen ();
10075int
10076main ()
10077{
7a197a62 10078return dlopen ();
ad6254c5
AK
10079 ;
10080 return 0;
10081}
10082_ACEOF
10083rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
10084if { (ac_try="$ac_link"
10085case "(($ac_try" in
10086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10087 *) ac_try_echo=$ac_try;;
10088esac
ec6a6fbe
AK
10089eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10090$as_echo "$ac_try_echo") >&5
7a197a62 10091 (eval "$ac_link") 2>conftest.er1
ad6254c5 10092 ac_status=$?
8a2fc586
AK
10093 grep -v '^ *+' conftest.er1 >conftest.err
10094 rm -f conftest.er1
10095 cat conftest.err >&5
ec6a6fbe 10096 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10097 (exit $ac_status); } && {
10098 test -z "$ac_c_werror_flag" ||
10099 test ! -s conftest.err
ec6a6fbe
AK
10100 } && test -s conftest$ac_exeext && {
10101 test "$cross_compiling" = yes ||
10102 $as_test_x conftest$ac_exeext
10103 }; then
ad6254c5
AK
10104 ac_cv_lib_dl_dlopen=yes
10105else
ec6a6fbe 10106 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10107sed 's/^/| /' conftest.$ac_ext >&5
10108
7a197a62 10109 ac_cv_lib_dl_dlopen=no
ad6254c5 10110fi
7a197a62 10111
ec6a6fbe 10112rm -rf conftest.dSYM
25fbec5b 10113rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 10114 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
10115LIBS=$ac_check_lib_save_LIBS
10116fi
ec6a6fbe
AK
10117{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10118$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10119if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
ad6254c5
AK
10120 HAVE_LIBDL=yes
10121else
10122 HAVE_LIBDL=no
10123fi
10124
10125
7e9e9502 10126if [ "x$HAVE_LIBDL" = xyes ]; then
72b2cb61
AK
10127
10128cat >>confdefs.h <<\_ACEOF
10129#define HAVE_LIBDL 1
10130_ACEOF
10131
ad6254c5
AK
10132 LIBS="-ldl $LIBS"
10133else
10134 HAVE_LIBDL=no
10135fi
10136
10137################################################################################
10138if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \
10139 -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \
10140 \) -a "x$STATIC_LINK" = xyes ];
ec6a6fbe 10141 then { { $as_echo "$as_me:$LINENO: error: Features cannot be 'shared' when building statically
ad6254c5 10142" >&5
ec6a6fbe 10143$as_echo "$as_me: error: Features cannot be 'shared' when building statically
ad6254c5
AK
10144" >&2;}
10145 { (exit 1); exit 1; }; }
10146fi
10147
d0191583 10148################################################################################
ec6a6fbe
AK
10149{ $as_echo "$as_me:$LINENO: checking whether to enable selinux support" >&5
10150$as_echo_n "checking whether to enable selinux support... " >&6; }
d0191583
JM
10151# Check whether --enable-selinux was given.
10152if test "${enable_selinux+set}" = set; then
10153 enableval=$enable_selinux; SELINUX=$enableval
10154fi
10155
ec6a6fbe
AK
10156{ $as_echo "$as_me:$LINENO: result: $SELINUX" >&5
10157$as_echo "$SELINUX" >&6; }
d0191583 10158
ad6254c5
AK
10159################################################################################
10160if test x$SELINUX = xyes; then
ec6a6fbe
AK
10161 { $as_echo "$as_me:$LINENO: checking for sepol_check_context in -lsepol" >&5
10162$as_echo_n "checking for sepol_check_context in -lsepol... " >&6; }
8a2fc586 10163if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then
ec6a6fbe 10164 $as_echo_n "(cached) " >&6
8a2fc586
AK
10165else
10166 ac_check_lib_save_LIBS=$LIBS
10167LIBS="-lsepol $LIBS"
10168cat >conftest.$ac_ext <<_ACEOF
10169/* confdefs.h. */
10170_ACEOF
10171cat confdefs.h >>conftest.$ac_ext
10172cat >>conftest.$ac_ext <<_ACEOF
10173/* end confdefs.h. */
10174
7a197a62
AK
10175/* Override any GCC internal prototype to avoid an error.
10176 Use char because int might match the return type of a GCC
10177 builtin and then its argument prototype would still apply. */
8a2fc586
AK
10178#ifdef __cplusplus
10179extern "C"
10180#endif
8a2fc586
AK
10181char sepol_check_context ();
10182int
10183main ()
10184{
7a197a62 10185return sepol_check_context ();
8a2fc586
AK
10186 ;
10187 return 0;
10188}
10189_ACEOF
10190rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
10191if { (ac_try="$ac_link"
10192case "(($ac_try" in
10193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10194 *) ac_try_echo=$ac_try;;
10195esac
ec6a6fbe
AK
10196eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10197$as_echo "$ac_try_echo") >&5
7a197a62 10198 (eval "$ac_link") 2>conftest.er1
8a2fc586
AK
10199 ac_status=$?
10200 grep -v '^ *+' conftest.er1 >conftest.err
10201 rm -f conftest.er1
10202 cat conftest.err >&5
ec6a6fbe 10203 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10204 (exit $ac_status); } && {
10205 test -z "$ac_c_werror_flag" ||
10206 test ! -s conftest.err
ec6a6fbe
AK
10207 } && test -s conftest$ac_exeext && {
10208 test "$cross_compiling" = yes ||
10209 $as_test_x conftest$ac_exeext
10210 }; then
8a2fc586
AK
10211 ac_cv_lib_sepol_sepol_check_context=yes
10212else
ec6a6fbe 10213 $as_echo "$as_me: failed program was:" >&5
8a2fc586
AK
10214sed 's/^/| /' conftest.$ac_ext >&5
10215
7a197a62 10216 ac_cv_lib_sepol_sepol_check_context=no
8a2fc586 10217fi
7a197a62 10218
ec6a6fbe 10219rm -rf conftest.dSYM
25fbec5b 10220rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586
AK
10221 conftest$ac_exeext conftest.$ac_ext
10222LIBS=$ac_check_lib_save_LIBS
10223fi
ec6a6fbe
AK
10224{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sepol_sepol_check_context" >&5
10225$as_echo "$ac_cv_lib_sepol_sepol_check_context" >&6; }
10226if test "x$ac_cv_lib_sepol_sepol_check_context" = x""yes; then
8a2fc586
AK
10227 HAVE_SEPOL=yes
10228else
10229 HAVE_SEPOL=no
10230fi
10231
8a2fc586
AK
10232
10233 if test x$HAVE_SEPOL = xyes; then
d0191583
JM
10234
10235cat >>confdefs.h <<\_ACEOF
10236#define HAVE_SEPOL 1
10237_ACEOF
10238
8a2fc586
AK
10239 LIBS="-lsepol $LIBS"
10240 fi
10241
ec6a6fbe
AK
10242 { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
10243$as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
ad6254c5 10244if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
ec6a6fbe 10245 $as_echo_n "(cached) " >&6
ad6254c5
AK
10246else
10247 ac_check_lib_save_LIBS=$LIBS
10248LIBS="-lselinux $LIBS"
10249cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10250/* confdefs.h. */
10251_ACEOF
10252cat confdefs.h >>conftest.$ac_ext
10253cat >>conftest.$ac_ext <<_ACEOF
10254/* end confdefs.h. */
10255
7a197a62
AK
10256/* Override any GCC internal prototype to avoid an error.
10257 Use char because int might match the return type of a GCC
10258 builtin and then its argument prototype would still apply. */
ad6254c5
AK
10259#ifdef __cplusplus
10260extern "C"
10261#endif
ad6254c5
AK
10262char is_selinux_enabled ();
10263int
10264main ()
10265{
7a197a62 10266return is_selinux_enabled ();
ad6254c5
AK
10267 ;
10268 return 0;
10269}
10270_ACEOF
10271rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
10272if { (ac_try="$ac_link"
10273case "(($ac_try" in
10274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10275 *) ac_try_echo=$ac_try;;
10276esac
ec6a6fbe
AK
10277eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10278$as_echo "$ac_try_echo") >&5
7a197a62 10279 (eval "$ac_link") 2>conftest.er1
ad6254c5 10280 ac_status=$?
8a2fc586
AK
10281 grep -v '^ *+' conftest.er1 >conftest.err
10282 rm -f conftest.er1
10283 cat conftest.err >&5
ec6a6fbe 10284 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10285 (exit $ac_status); } && {
10286 test -z "$ac_c_werror_flag" ||
10287 test ! -s conftest.err
ec6a6fbe
AK
10288 } && test -s conftest$ac_exeext && {
10289 test "$cross_compiling" = yes ||
10290 $as_test_x conftest$ac_exeext
10291 }; then
ad6254c5
AK
10292 ac_cv_lib_selinux_is_selinux_enabled=yes
10293else
ec6a6fbe 10294 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10295sed 's/^/| /' conftest.$ac_ext >&5
10296
7a197a62 10297 ac_cv_lib_selinux_is_selinux_enabled=no
ad6254c5 10298fi
7a197a62 10299
ec6a6fbe 10300rm -rf conftest.dSYM
25fbec5b 10301rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 10302 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
10303LIBS=$ac_check_lib_save_LIBS
10304fi
ec6a6fbe
AK
10305{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
10306$as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
10307if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then
ad6254c5
AK
10308 HAVE_SELINUX=yes
10309else
10310 HAVE_SELINUX=no
10311fi
10312
ad6254c5
AK
10313
10314 if test x$HAVE_SELINUX = xyes; then
72b2cb61
AK
10315
10316cat >>confdefs.h <<\_ACEOF
10317#define HAVE_SELINUX 1
10318_ACEOF
10319
ad6254c5
AK
10320 LIBS="-lselinux $LIBS"
10321 else
ec6a6fbe
AK
10322 { $as_echo "$as_me:$LINENO: WARNING: Disabling selinux" >&5
10323$as_echo "$as_me: WARNING: Disabling selinux" >&2;}
66e941e8
JM
10324 fi
10325
d0191583 10326 # With --enable-static_link and selinux enabled, linking
66e941e8
JM
10327 # fails on at least Debian unstable due to unsatisfied references
10328 # to pthread_mutex_lock and _unlock. See if we need -lpthread.
10329 if test "$STATIC_LINK-$HAVE_SELINUX" = yes-yes; then
10330 lvm_saved_libs=$LIBS
10331 LIBS="$LIBS -static"
ec6a6fbe
AK
10332 { $as_echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
10333$as_echo_n "checking for library containing pthread_mutex_lock... " >&6; }
66e941e8 10334if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
ec6a6fbe 10335 $as_echo_n "(cached) " >&6
66e941e8
JM
10336else
10337 ac_func_search_save_LIBS=$LIBS
10338cat >conftest.$ac_ext <<_ACEOF
10339/* confdefs.h. */
10340_ACEOF
10341cat confdefs.h >>conftest.$ac_ext
10342cat >>conftest.$ac_ext <<_ACEOF
10343/* end confdefs.h. */
10344
10345/* Override any GCC internal prototype to avoid an error.
10346 Use char because int might match the return type of a GCC
10347 builtin and then its argument prototype would still apply. */
10348#ifdef __cplusplus
10349extern "C"
10350#endif
10351char pthread_mutex_lock ();
10352int
10353main ()
10354{
10355return pthread_mutex_lock ();
10356 ;
10357 return 0;
10358}
10359_ACEOF
10360for ac_lib in '' pthread; do
10361 if test -z "$ac_lib"; then
10362 ac_res="none required"
10363 else
10364 ac_res=-l$ac_lib
10365 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10366 fi
10367 rm -f conftest.$ac_objext conftest$ac_exeext
10368if { (ac_try="$ac_link"
10369case "(($ac_try" in
10370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10371 *) ac_try_echo=$ac_try;;
10372esac
ec6a6fbe
AK
10373eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10374$as_echo "$ac_try_echo") >&5
66e941e8
JM
10375 (eval "$ac_link") 2>conftest.er1
10376 ac_status=$?
10377 grep -v '^ *+' conftest.er1 >conftest.err
10378 rm -f conftest.er1
10379 cat conftest.err >&5
ec6a6fbe 10380 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10381 (exit $ac_status); } && {
10382 test -z "$ac_c_werror_flag" ||
10383 test ! -s conftest.err
ec6a6fbe
AK
10384 } && test -s conftest$ac_exeext && {
10385 test "$cross_compiling" = yes ||
10386 $as_test_x conftest$ac_exeext
10387 }; then
66e941e8
JM
10388 ac_cv_search_pthread_mutex_lock=$ac_res
10389else
ec6a6fbe 10390 $as_echo "$as_me: failed program was:" >&5
66e941e8
JM
10391sed 's/^/| /' conftest.$ac_ext >&5
10392
10393
10394fi
10395
ec6a6fbe 10396rm -rf conftest.dSYM
25fbec5b 10397rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
66e941e8
JM
10398 conftest$ac_exeext
10399 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
10400 break
10401fi
10402done
10403if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
10404 :
10405else
10406 ac_cv_search_pthread_mutex_lock=no
10407fi
10408rm conftest.$ac_ext
10409LIBS=$ac_func_search_save_LIBS
10410fi
ec6a6fbe
AK
10411{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
10412$as_echo "$ac_cv_search_pthread_mutex_lock" >&6; }
66e941e8
JM
10413ac_res=$ac_cv_search_pthread_mutex_lock
10414if test "$ac_res" != no; then
10415 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10416 test "$ac_cv_search_pthread_mutex_lock" = "none required" ||
10417 LIB_PTHREAD=-lpthread
10418fi
10419
10420 LIBS=$lvm_saved_libs
ad6254c5
AK
10421 fi
10422fi
10423
8b1a3214
AK
10424################################################################################
10425if test x$REALTIME = xyes; then
ec6a6fbe
AK
10426 { $as_echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
10427$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
8b1a3214 10428if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
ec6a6fbe 10429 $as_echo_n "(cached) " >&6
8b1a3214
AK
10430else
10431 ac_check_lib_save_LIBS=$LIBS
10432LIBS="-lrt $LIBS"
10433cat >conftest.$ac_ext <<_ACEOF
10434/* confdefs.h. */
10435_ACEOF
10436cat confdefs.h >>conftest.$ac_ext
10437cat >>conftest.$ac_ext <<_ACEOF
10438/* end confdefs.h. */
10439
7a197a62
AK
10440/* Override any GCC internal prototype to avoid an error.
10441 Use char because int might match the return type of a GCC
10442 builtin and then its argument prototype would still apply. */
8b1a3214
AK
10443#ifdef __cplusplus
10444extern "C"
10445#endif
8b1a3214
AK
10446char clock_gettime ();
10447int
10448main ()
10449{
7a197a62 10450return clock_gettime ();
8b1a3214
AK
10451 ;
10452 return 0;
10453}
10454_ACEOF
10455rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
10456if { (ac_try="$ac_link"
10457case "(($ac_try" in
10458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10459 *) ac_try_echo=$ac_try;;
10460esac
ec6a6fbe
AK
10461eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10462$as_echo "$ac_try_echo") >&5
7a197a62 10463 (eval "$ac_link") 2>conftest.er1
8b1a3214
AK
10464 ac_status=$?
10465 grep -v '^ *+' conftest.er1 >conftest.err
10466 rm -f conftest.er1
10467 cat conftest.err >&5
ec6a6fbe 10468 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10469 (exit $ac_status); } && {
10470 test -z "$ac_c_werror_flag" ||
10471 test ! -s conftest.err
ec6a6fbe
AK
10472 } && test -s conftest$ac_exeext && {
10473 test "$cross_compiling" = yes ||
10474 $as_test_x conftest$ac_exeext
10475 }; then
8b1a3214
AK
10476 ac_cv_lib_rt_clock_gettime=yes
10477else
ec6a6fbe 10478 $as_echo "$as_me: failed program was:" >&5
8b1a3214
AK
10479sed 's/^/| /' conftest.$ac_ext >&5
10480
7a197a62 10481 ac_cv_lib_rt_clock_gettime=no
8b1a3214 10482fi
7a197a62 10483
ec6a6fbe 10484rm -rf conftest.dSYM
25fbec5b 10485rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8b1a3214
AK
10486 conftest$ac_exeext conftest.$ac_ext
10487LIBS=$ac_check_lib_save_LIBS
10488fi
ec6a6fbe
AK
10489{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
10490$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
10491if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then
8b1a3214
AK
10492 HAVE_REALTIME=yes
10493else
10494 HAVE_REALTIME=no
10495fi
10496
8b1a3214
AK
10497
10498 if test x$HAVE_REALTIME = xyes; then
10499
10500cat >>confdefs.h <<\_ACEOF
10501#define HAVE_REALTIME 1
10502_ACEOF
10503
10504 LIBS="-lrt $LIBS"
10505 else
ec6a6fbe
AK
10506 { $as_echo "$as_me:$LINENO: WARNING: Disabling realtime clock" >&5
10507$as_echo "$as_me: WARNING: Disabling realtime clock" >&2;}
8b1a3214
AK
10508 fi
10509fi
10510
ad6254c5
AK
10511################################################################################
10512
10513for ac_header in getopt.h
10514do
ec6a6fbe 10515as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 10516if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
10517 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10518$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 10519if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 10520 $as_echo_n "(cached) " >&6
ad6254c5 10521fi
ec6a6fbe
AK
10522ac_res=`eval 'as_val=${'$as_ac_Header'}
10523 $as_echo "$as_val"'`
10524 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10525$as_echo "$ac_res" >&6; }
ad6254c5
AK
10526else
10527 # Is the header compilable?
ec6a6fbe
AK
10528{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10529$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 10530cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10531/* confdefs.h. */
10532_ACEOF
10533cat confdefs.h >>conftest.$ac_ext
10534cat >>conftest.$ac_ext <<_ACEOF
10535/* end confdefs.h. */
10536$ac_includes_default
10537#include <$ac_header>
10538_ACEOF
10539rm -f conftest.$ac_objext
7a197a62
AK
10540if { (ac_try="$ac_compile"
10541case "(($ac_try" in
10542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10543 *) ac_try_echo=$ac_try;;
10544esac
ec6a6fbe
AK
10545eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10546$as_echo "$ac_try_echo") >&5
7a197a62 10547 (eval "$ac_compile") 2>conftest.er1
ad6254c5 10548 ac_status=$?
8a2fc586
AK
10549 grep -v '^ *+' conftest.er1 >conftest.err
10550 rm -f conftest.er1
10551 cat conftest.err >&5
ec6a6fbe 10552 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10553 (exit $ac_status); } && {
10554 test -z "$ac_c_werror_flag" ||
10555 test ! -s conftest.err
10556 } && test -s conftest.$ac_objext; then
ad6254c5
AK
10557 ac_header_compiler=yes
10558else
ec6a6fbe 10559 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10560sed 's/^/| /' conftest.$ac_ext >&5
10561
7a197a62 10562 ac_header_compiler=no
ad6254c5 10563fi
7a197a62
AK
10564
10565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
10566{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10567$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
10568
10569# Is the header present?
ec6a6fbe
AK
10570{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10571$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 10572cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10573/* confdefs.h. */
10574_ACEOF
10575cat confdefs.h >>conftest.$ac_ext
10576cat >>conftest.$ac_ext <<_ACEOF
10577/* end confdefs.h. */
10578#include <$ac_header>
10579_ACEOF
7a197a62
AK
10580if { (ac_try="$ac_cpp conftest.$ac_ext"
10581case "(($ac_try" in
10582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10583 *) ac_try_echo=$ac_try;;
10584esac
ec6a6fbe
AK
10585eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10586$as_echo "$ac_try_echo") >&5
7a197a62 10587 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
10588 ac_status=$?
10589 grep -v '^ *+' conftest.er1 >conftest.err
10590 rm -f conftest.er1
10591 cat conftest.err >&5
ec6a6fbe 10592 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10593 (exit $ac_status); } >/dev/null && {
10594 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10595 test ! -s conftest.err
10596 }; then
ad6254c5
AK
10597 ac_header_preproc=yes
10598else
ec6a6fbe 10599 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10600sed 's/^/| /' conftest.$ac_ext >&5
10601
10602 ac_header_preproc=no
10603fi
7a197a62 10604
ad6254c5 10605rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
10606{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10607$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
10608
10609# So? What about this header?
8a2fc586
AK
10610case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10611 yes:no: )
ec6a6fbe
AK
10612 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10613$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10614 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10615$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 10616 ac_header_preproc=yes
ad6254c5 10617 ;;
8a2fc586 10618 no:yes:* )
ec6a6fbe
AK
10619 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10620$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10621 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10622$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10623 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10624$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10625 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10626$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10627 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10628$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10629 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10630$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 10631
ad6254c5
AK
10632 ;;
10633esac
ec6a6fbe
AK
10634{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10635$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 10636if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 10637 $as_echo_n "(cached) " >&6
ad6254c5 10638else
8a2fc586 10639 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 10640fi
ec6a6fbe
AK
10641ac_res=`eval 'as_val=${'$as_ac_Header'}
10642 $as_echo "$as_val"'`
10643 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10644$as_echo "$ac_res" >&6; }
ad6254c5
AK
10645
10646fi
ec6a6fbe
AK
10647as_val=`eval 'as_val=${'$as_ac_Header'}
10648 $as_echo "$as_val"'`
10649 if test "x$as_val" = x""yes; then
ad6254c5 10650 cat >>confdefs.h <<_ACEOF
ec6a6fbe 10651#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 10652_ACEOF
72b2cb61
AK
10653
10654cat >>confdefs.h <<\_ACEOF
10655#define HAVE_GETOPTLONG 1
10656_ACEOF
10657
ad6254c5
AK
10658fi
10659
10660done
10661
10662
10663################################################################################
06e459df 10664if test x$READLINE != xno; then
bc1024f8
JM
10665 rl_found=yes
10666
ec6a6fbe
AK
10667{ $as_echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
10668$as_echo_n "checking for readline in -lreadline... " >&6; }
ad6254c5 10669if test "${ac_cv_lib_readline_readline+set}" = set; then
ec6a6fbe 10670 $as_echo_n "(cached) " >&6
ad6254c5
AK
10671else
10672 ac_check_lib_save_LIBS=$LIBS
10673LIBS="-lreadline $LIBS"
10674cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10675/* confdefs.h. */
10676_ACEOF
10677cat confdefs.h >>conftest.$ac_ext
10678cat >>conftest.$ac_ext <<_ACEOF
10679/* end confdefs.h. */
10680
7a197a62
AK
10681/* Override any GCC internal prototype to avoid an error.
10682 Use char because int might match the return type of a GCC
10683 builtin and then its argument prototype would still apply. */
ad6254c5
AK
10684#ifdef __cplusplus
10685extern "C"
10686#endif
ad6254c5
AK
10687char readline ();
10688int
10689main ()
10690{
7a197a62 10691return readline ();
ad6254c5
AK
10692 ;
10693 return 0;
10694}
10695_ACEOF
10696rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
10697if { (ac_try="$ac_link"
10698case "(($ac_try" in
10699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10700 *) ac_try_echo=$ac_try;;
10701esac
ec6a6fbe
AK
10702eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10703$as_echo "$ac_try_echo") >&5
7a197a62 10704 (eval "$ac_link") 2>conftest.er1
ad6254c5 10705 ac_status=$?
8a2fc586
AK
10706 grep -v '^ *+' conftest.er1 >conftest.err
10707 rm -f conftest.er1
10708 cat conftest.err >&5
ec6a6fbe 10709 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10710 (exit $ac_status); } && {
10711 test -z "$ac_c_werror_flag" ||
10712 test ! -s conftest.err
ec6a6fbe
AK
10713 } && test -s conftest$ac_exeext && {
10714 test "$cross_compiling" = yes ||
10715 $as_test_x conftest$ac_exeext
10716 }; then
ad6254c5
AK
10717 ac_cv_lib_readline_readline=yes
10718else
ec6a6fbe 10719 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10720sed 's/^/| /' conftest.$ac_ext >&5
10721
7a197a62 10722 ac_cv_lib_readline_readline=no
ad6254c5 10723fi
7a197a62 10724
ec6a6fbe 10725rm -rf conftest.dSYM
25fbec5b 10726rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 10727 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
10728LIBS=$ac_check_lib_save_LIBS
10729fi
ec6a6fbe
AK
10730{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
10731$as_echo "$ac_cv_lib_readline_readline" >&6; }
10732if test "x$ac_cv_lib_readline_readline" = x""yes; then
bc1024f8
JM
10733 cat >>confdefs.h <<_ACEOF
10734#define HAVE_LIBREADLINE 1
10735_ACEOF
10736
10737 LIBS="-lreadline $LIBS"
10738
ad6254c5 10739else
06e459df
JM
10740 rl_found=no
10741fi
10742
10743 test x$READLINE:$rl_found = xyes:no &&
ec6a6fbe 10744 { { $as_echo "$as_me:$LINENO: error: GNU Readline could not be found which is required for the
ad6254c5
AK
10745--enable-readline option (which is enabled by default). Either disable readline
10746support with --disable-readline or download and install readline from:
10747 ftp.gnu.org/gnu/readline
10748Note: if you are using precompiled packages you will also need the development
10749package as well (which may be called readline-devel or something similar).
10750" >&5
ec6a6fbe 10751$as_echo "$as_me: error: GNU Readline could not be found which is required for the
ad6254c5
AK
10752--enable-readline option (which is enabled by default). Either disable readline
10753support with --disable-readline or download and install readline from:
10754 ftp.gnu.org/gnu/readline
10755Note: if you are using precompiled packages you will also need the development
10756package as well (which may be called readline-devel or something similar).
10757" >&2;}
10758 { (exit 1); exit 1; }; }
06e459df 10759 if test $rl_found = yes; then
bc1024f8
JM
10760
10761for ac_func in rl_completion_matches
10762do
ec6a6fbe
AK
10763as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10764{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10765$as_echo_n "checking for $ac_func... " >&6; }
bc1024f8 10766if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 10767 $as_echo_n "(cached) " >&6
ad6254c5
AK
10768else
10769 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10770/* confdefs.h. */
10771_ACEOF
10772cat confdefs.h >>conftest.$ac_ext
10773cat >>conftest.$ac_ext <<_ACEOF
10774/* end confdefs.h. */
bc1024f8 10775/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8a2fc586 10776 For example, HP-UX 11i <limits.h> declares gettimeofday. */
bc1024f8 10777#define $ac_func innocuous_$ac_func
8a2fc586 10778
ad6254c5 10779/* System header to define __stub macros and hopefully few prototypes,
bc1024f8 10780 which can conflict with char $ac_func (); below.
ad6254c5
AK
10781 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10782 <limits.h> exists even on freestanding compilers. */
8a2fc586 10783
ad6254c5
AK
10784#ifdef __STDC__
10785# include <limits.h>
10786#else
10787# include <assert.h>
10788#endif
8a2fc586 10789
bc1024f8 10790#undef $ac_func
8a2fc586 10791
7a197a62
AK
10792/* Override any GCC internal prototype to avoid an error.
10793 Use char because int might match the return type of a GCC
10794 builtin and then its argument prototype would still apply. */
ad6254c5
AK
10795#ifdef __cplusplus
10796extern "C"
ad6254c5 10797#endif
bc1024f8 10798char $ac_func ();
ad6254c5
AK
10799/* The GNU C library defines this for functions which it implements
10800 to always fail with ENOSYS. Some functions are actually named
10801 something starting with __ and the normal name is an alias. */
bc1024f8 10802#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 10803choke me
ad6254c5
AK
10804#endif
10805
10806int
10807main ()
10808{
bc1024f8 10809return $ac_func ();
ad6254c5
AK
10810 ;
10811 return 0;
10812}
10813_ACEOF
10814rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
10815if { (ac_try="$ac_link"
10816case "(($ac_try" in
10817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10818 *) ac_try_echo=$ac_try;;
10819esac
ec6a6fbe
AK
10820eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10821$as_echo "$ac_try_echo") >&5
7a197a62 10822 (eval "$ac_link") 2>conftest.er1
ad6254c5 10823 ac_status=$?
8a2fc586
AK
10824 grep -v '^ *+' conftest.er1 >conftest.err
10825 rm -f conftest.er1
10826 cat conftest.err >&5
ec6a6fbe 10827 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10828 (exit $ac_status); } && {
10829 test -z "$ac_c_werror_flag" ||
10830 test ! -s conftest.err
ec6a6fbe
AK
10831 } && test -s conftest$ac_exeext && {
10832 test "$cross_compiling" = yes ||
10833 $as_test_x conftest$ac_exeext
10834 }; then
bc1024f8 10835 eval "$as_ac_var=yes"
ad6254c5 10836else
ec6a6fbe 10837 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10838sed 's/^/| /' conftest.$ac_ext >&5
10839
bc1024f8 10840 eval "$as_ac_var=no"
ad6254c5 10841fi
7a197a62 10842
ec6a6fbe 10843rm -rf conftest.dSYM
25fbec5b 10844rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 10845 conftest$ac_exeext conftest.$ac_ext
ad6254c5 10846fi
ec6a6fbe
AK
10847ac_res=`eval 'as_val=${'$as_ac_var'}
10848 $as_echo "$as_val"'`
10849 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10850$as_echo "$ac_res" >&6; }
10851as_val=`eval 'as_val=${'$as_ac_var'}
10852 $as_echo "$as_val"'`
10853 if test "x$as_val" = x""yes; then
bc1024f8 10854 cat >>confdefs.h <<_ACEOF
ec6a6fbe 10855#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
72b2cb61
AK
10856_ACEOF
10857
10858fi
bc1024f8 10859done
ad6254c5 10860
d179cc7a
JM
10861
10862cat >>confdefs.h <<\_ACEOF
10863#define READLINE_SUPPORT 1
10864_ACEOF
10865
06e459df 10866 fi
ad6254c5
AK
10867fi
10868
10869################################################################################
ec6a6fbe
AK
10870{ $as_echo "$as_me:$LINENO: checking whether to enable internationalisation" >&5
10871$as_echo_n "checking whether to enable internationalisation... " >&6; }
7a197a62 10872# Check whether --enable-nls was given.
ad6254c5 10873if test "${enable_nls+set}" = set; then
7a197a62 10874 enableval=$enable_nls; INTL=$enableval
ad6254c5
AK
10875else
10876 INTL=no
7a197a62
AK
10877fi
10878
ec6a6fbe
AK
10879{ $as_echo "$as_me:$LINENO: result: $INTL" >&5
10880$as_echo "$INTL" >&6; }
ad6254c5
AK
10881
10882if test x$INTL = xyes; then
93bd259b 10883# FIXME - Move this - can be device-mapper too
ad6254c5
AK
10884 INTL_PACKAGE="lvm2"
10885 # Extract the first word of "msgfmt", so it can be a program name with args.
10886set dummy msgfmt; ac_word=$2
ec6a6fbe
AK
10887{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10888$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 10889if test "${ac_cv_path_MSGFMT+set}" = set; then
ec6a6fbe 10890 $as_echo_n "(cached) " >&6
ad6254c5
AK
10891else
10892 case $MSGFMT in
10893 [\\/]* | ?:[\\/]*)
10894 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
10895 ;;
10896 *)
10897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10898for as_dir in $PATH
10899do
10900 IFS=$as_save_IFS
10901 test -z "$as_dir" && as_dir=.
10902 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 10903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 10904 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 10905 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
10906 break 2
10907 fi
10908done
10909done
7a197a62 10910IFS=$as_save_IFS
ad6254c5
AK
10911
10912 ;;
10913esac
10914fi
10915MSGFMT=$ac_cv_path_MSGFMT
ad6254c5 10916if test -n "$MSGFMT"; then
ec6a6fbe
AK
10917 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
10918$as_echo "$MSGFMT" >&6; }
ad6254c5 10919else
ec6a6fbe
AK
10920 { $as_echo "$as_me:$LINENO: result: no" >&5
10921$as_echo "no" >&6; }
ad6254c5
AK
10922fi
10923
7a197a62 10924
ad6254c5 10925 if [ "x$MSGFMT" == x ];
ec6a6fbe 10926 then { { $as_echo "$as_me:$LINENO: error: msgfmt not found in path $PATH
ad6254c5 10927 " >&5
ec6a6fbe 10928$as_echo "$as_me: error: msgfmt not found in path $PATH
ad6254c5
AK
10929 " >&2;}
10930 { (exit 1); exit 1; }; }
10931 fi;
10932
10933
7a197a62 10934# Check whether --with-localedir was given.
ad6254c5 10935if test "${with_localedir+set}" = set; then
7a197a62 10936 withval=$with_localedir; LOCALEDIR="$withval"
ad6254c5
AK
10937else
10938 LOCALEDIR='${prefix}/share/locale'
7a197a62
AK
10939fi
10940
ad6254c5
AK
10941fi
10942
10943################################################################################
10944
7a197a62 10945# Check whether --with-confdir was given.
ad6254c5 10946if test "${with_confdir+set}" = set; then
7a197a62 10947 withval=$with_confdir; CONFDIR="$withval"
ad6254c5
AK
10948else
10949 CONFDIR='/etc'
7a197a62
AK
10950fi
10951
ad6254c5
AK
10952
10953
7a197a62 10954# Check whether --with-staticdir was given.
ad6254c5 10955if test "${with_staticdir+set}" = set; then
7a197a62 10956 withval=$with_staticdir; STATICDIR="$withval"
ad6254c5
AK
10957else
10958 STATICDIR='${exec_prefix}/sbin'
7a197a62 10959fi
ad6254c5 10960
33f732c5 10961
7a197a62 10962
68f2de6d
AK
10963# Check whether --with-usrlibdir was given.
10964if test "${with_usrlibdir+set}" = set; then
10965 withval=$with_usrlibdir; usrlibdir="$withval"
10966else
10967 usrlibdir='${prefix}/lib'
10968fi
10969
10970
10971
10972# Check whether --with-usrsbindir was given.
10973if test "${with_usrsbindir+set}" = set; then
10974 withval=$with_usrsbindir; usrsbindir="$withval"
10975else
10976 usrsbindir='${prefix}/sbin'
10977fi
10978
10979
ad6254c5
AK
10980################################################################################
10981if test x$READLINE = xyes; then
10982
10983
10984for ac_header in readline/readline.h readline/history.h
10985do
ec6a6fbe 10986as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 10987if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
10988 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10989$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 10990if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 10991 $as_echo_n "(cached) " >&6
ad6254c5 10992fi
ec6a6fbe
AK
10993ac_res=`eval 'as_val=${'$as_ac_Header'}
10994 $as_echo "$as_val"'`
10995 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10996$as_echo "$ac_res" >&6; }
ad6254c5
AK
10997else
10998 # Is the header compilable?
ec6a6fbe
AK
10999{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11000$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 11001cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11002/* confdefs.h. */
11003_ACEOF
11004cat confdefs.h >>conftest.$ac_ext
11005cat >>conftest.$ac_ext <<_ACEOF
11006/* end confdefs.h. */
11007$ac_includes_default
11008#include <$ac_header>
11009_ACEOF
11010rm -f conftest.$ac_objext
7a197a62
AK
11011if { (ac_try="$ac_compile"
11012case "(($ac_try" in
11013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11014 *) ac_try_echo=$ac_try;;
11015esac
ec6a6fbe
AK
11016eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11017$as_echo "$ac_try_echo") >&5
7a197a62 11018 (eval "$ac_compile") 2>conftest.er1
ad6254c5 11019 ac_status=$?
8a2fc586
AK
11020 grep -v '^ *+' conftest.er1 >conftest.err
11021 rm -f conftest.er1
11022 cat conftest.err >&5
ec6a6fbe 11023 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11024 (exit $ac_status); } && {
11025 test -z "$ac_c_werror_flag" ||
11026 test ! -s conftest.err
11027 } && test -s conftest.$ac_objext; then
ad6254c5
AK
11028 ac_header_compiler=yes
11029else
ec6a6fbe 11030 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
11031sed 's/^/| /' conftest.$ac_ext >&5
11032
7a197a62 11033 ac_header_compiler=no
ad6254c5 11034fi
7a197a62
AK
11035
11036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
11037{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11038$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
11039
11040# Is the header present?
ec6a6fbe
AK
11041{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11042$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 11043cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11044/* confdefs.h. */
11045_ACEOF
11046cat confdefs.h >>conftest.$ac_ext
11047cat >>conftest.$ac_ext <<_ACEOF
11048/* end confdefs.h. */
11049#include <$ac_header>
11050_ACEOF
7a197a62
AK
11051if { (ac_try="$ac_cpp conftest.$ac_ext"
11052case "(($ac_try" in
11053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11054 *) ac_try_echo=$ac_try;;
11055esac
ec6a6fbe
AK
11056eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11057$as_echo "$ac_try_echo") >&5
7a197a62 11058 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
11059 ac_status=$?
11060 grep -v '^ *+' conftest.er1 >conftest.err
11061 rm -f conftest.er1
11062 cat conftest.err >&5
ec6a6fbe 11063 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11064 (exit $ac_status); } >/dev/null && {
11065 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11066 test ! -s conftest.err
11067 }; then
ad6254c5
AK
11068 ac_header_preproc=yes
11069else
ec6a6fbe 11070 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
11071sed 's/^/| /' conftest.$ac_ext >&5
11072
11073 ac_header_preproc=no
11074fi
7a197a62 11075
ad6254c5 11076rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
11077{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11078$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
11079
11080# So? What about this header?
8a2fc586
AK
11081case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11082 yes:no: )
ec6a6fbe
AK
11083 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11084$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11085 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11086$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 11087 ac_header_preproc=yes
ad6254c5 11088 ;;
8a2fc586 11089 no:yes:* )
ec6a6fbe
AK
11090 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11091$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11092 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11093$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11094 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11095$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11096 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11097$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11098 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11099$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11100 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11101$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 11102
ad6254c5
AK
11103 ;;
11104esac
ec6a6fbe
AK
11105{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11106$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 11107if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 11108 $as_echo_n "(cached) " >&6
ad6254c5 11109else
8a2fc586 11110 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 11111fi
ec6a6fbe
AK
11112ac_res=`eval 'as_val=${'$as_ac_Header'}
11113 $as_echo "$as_val"'`
11114 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11115$as_echo "$ac_res" >&6; }
ad6254c5
AK
11116
11117fi
ec6a6fbe
AK
11118as_val=`eval 'as_val=${'$as_ac_Header'}
11119 $as_echo "$as_val"'`
11120 if test "x$as_val" = x""yes; then
ad6254c5 11121 cat >>confdefs.h <<_ACEOF
ec6a6fbe 11122#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
11123_ACEOF
11124
11125else
ec6a6fbe
AK
11126 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
11127$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5
AK
11128 { (exit 1); exit 1; }; }
11129fi
11130
11131done
11132
11133fi
11134
5c7fc7c4 11135if test x$CLVMD != xnone; then
ad6254c5
AK
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146for 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
11147do
ec6a6fbe 11148as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 11149if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
11150 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11151$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 11152if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 11153 $as_echo_n "(cached) " >&6
ad6254c5 11154fi
ec6a6fbe
AK
11155ac_res=`eval 'as_val=${'$as_ac_Header'}
11156 $as_echo "$as_val"'`
11157 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11158$as_echo "$ac_res" >&6; }
ad6254c5
AK
11159else
11160 # Is the header compilable?
ec6a6fbe
AK
11161{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11162$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 11163cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11164/* confdefs.h. */
11165_ACEOF
11166cat confdefs.h >>conftest.$ac_ext
11167cat >>conftest.$ac_ext <<_ACEOF
11168/* end confdefs.h. */
11169$ac_includes_default
11170#include <$ac_header>
11171_ACEOF
11172rm -f conftest.$ac_objext
7a197a62
AK
11173if { (ac_try="$ac_compile"
11174case "(($ac_try" in
11175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11176 *) ac_try_echo=$ac_try;;
11177esac
ec6a6fbe
AK
11178eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11179$as_echo "$ac_try_echo") >&5
7a197a62 11180 (eval "$ac_compile") 2>conftest.er1
ad6254c5 11181 ac_status=$?
8a2fc586
AK
11182 grep -v '^ *+' conftest.er1 >conftest.err
11183 rm -f conftest.er1
11184 cat conftest.err >&5
ec6a6fbe 11185 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11186 (exit $ac_status); } && {
11187 test -z "$ac_c_werror_flag" ||
11188 test ! -s conftest.err
11189 } && test -s conftest.$ac_objext; then
ad6254c5
AK
11190 ac_header_compiler=yes
11191else
ec6a6fbe 11192 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
11193sed 's/^/| /' conftest.$ac_ext >&5
11194
7a197a62 11195 ac_header_compiler=no
ad6254c5 11196fi
7a197a62
AK
11197
11198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
11199{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11200$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
11201
11202# Is the header present?
ec6a6fbe
AK
11203{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11204$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 11205cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11206/* confdefs.h. */
11207_ACEOF
11208cat confdefs.h >>conftest.$ac_ext
11209cat >>conftest.$ac_ext <<_ACEOF
11210/* end confdefs.h. */
11211#include <$ac_header>
11212_ACEOF
7a197a62
AK
11213if { (ac_try="$ac_cpp conftest.$ac_ext"
11214case "(($ac_try" in
11215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11216 *) ac_try_echo=$ac_try;;
11217esac
ec6a6fbe
AK
11218eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11219$as_echo "$ac_try_echo") >&5
7a197a62 11220 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
11221 ac_status=$?
11222 grep -v '^ *+' conftest.er1 >conftest.err
11223 rm -f conftest.er1
11224 cat conftest.err >&5
ec6a6fbe 11225 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11226 (exit $ac_status); } >/dev/null && {
11227 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11228 test ! -s conftest.err
11229 }; then
ad6254c5
AK
11230 ac_header_preproc=yes
11231else
ec6a6fbe 11232 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
11233sed 's/^/| /' conftest.$ac_ext >&5
11234
11235 ac_header_preproc=no
11236fi
7a197a62 11237
ad6254c5 11238rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
11239{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11240$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
11241
11242# So? What about this header?
8a2fc586
AK
11243case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11244 yes:no: )
ec6a6fbe
AK
11245 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11246$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11247 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11248$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 11249 ac_header_preproc=yes
ad6254c5 11250 ;;
8a2fc586 11251 no:yes:* )
ec6a6fbe
AK
11252 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11253$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11254 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11255$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11256 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11257$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11258 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11259$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11260 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11261$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11262 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11263$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 11264
ad6254c5
AK
11265 ;;
11266esac
ec6a6fbe
AK
11267{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11268$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 11269if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 11270 $as_echo_n "(cached) " >&6
ad6254c5 11271else
8a2fc586 11272 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 11273fi
ec6a6fbe
AK
11274ac_res=`eval 'as_val=${'$as_ac_Header'}
11275 $as_echo "$as_val"'`
11276 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11277$as_echo "$ac_res" >&6; }
ad6254c5
AK
11278
11279fi
ec6a6fbe
AK
11280as_val=`eval 'as_val=${'$as_ac_Header'}
11281 $as_echo "$as_val"'`
11282 if test "x$as_val" = x""yes; then
ad6254c5 11283 cat >>confdefs.h <<_ACEOF
ec6a6fbe 11284#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
11285_ACEOF
11286
11287else
ec6a6fbe
AK
11288 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
11289$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 11290 { (exit 1); exit 1; }; }
795ca3e5
AK
11291fi
11292
ad6254c5
AK
11293done
11294
11295
795ca3e5 11296
8106cdd5 11297
ad6254c5
AK
11298
11299
11300for ac_func in dup2 getmntent memmove select socket
11301do
ec6a6fbe
AK
11302as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11303{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11304$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 11305if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 11306 $as_echo_n "(cached) " >&6
795ca3e5 11307else
ad6254c5 11308 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11309/* confdefs.h. */
11310_ACEOF
11311cat confdefs.h >>conftest.$ac_ext
11312cat >>conftest.$ac_ext <<_ACEOF
11313/* end confdefs.h. */
8a2fc586
AK
11314/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11315 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11316#define $ac_func innocuous_$ac_func
11317
795ca3e5 11318/* System header to define __stub macros and hopefully few prototypes,
ad6254c5
AK
11319 which can conflict with char $ac_func (); below.
11320 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11321 <limits.h> exists even on freestanding compilers. */
8a2fc586 11322
ad6254c5
AK
11323#ifdef __STDC__
11324# include <limits.h>
11325#else
11326# include <assert.h>
11327#endif
8a2fc586
AK
11328
11329#undef $ac_func
11330
7a197a62
AK
11331/* Override any GCC internal prototype to avoid an error.
11332 Use char because int might match the return type of a GCC
11333 builtin and then its argument prototype would still apply. */
ad6254c5
AK
11334#ifdef __cplusplus
11335extern "C"
ad6254c5 11336#endif
ad6254c5 11337char $ac_func ();
795ca3e5
AK
11338/* The GNU C library defines this for functions which it implements
11339 to always fail with ENOSYS. Some functions are actually named
11340 something starting with __ and the normal name is an alias. */
7a197a62 11341#if defined __stub_$ac_func || defined __stub___$ac_func
795ca3e5 11342choke me
795ca3e5
AK
11343#endif
11344
ad6254c5
AK
11345int
11346main ()
11347{
7a197a62 11348return $ac_func ();
ad6254c5
AK
11349 ;
11350 return 0;
11351}
11352_ACEOF
11353rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
11354if { (ac_try="$ac_link"
11355case "(($ac_try" in
11356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11357 *) ac_try_echo=$ac_try;;
11358esac
ec6a6fbe
AK
11359eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11360$as_echo "$ac_try_echo") >&5
7a197a62 11361 (eval "$ac_link") 2>conftest.er1
ad6254c5 11362 ac_status=$?
8a2fc586
AK
11363 grep -v '^ *+' conftest.er1 >conftest.err
11364 rm -f conftest.er1
11365 cat conftest.err >&5
ec6a6fbe 11366 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11367 (exit $ac_status); } && {
11368 test -z "$ac_c_werror_flag" ||
11369 test ! -s conftest.err
ec6a6fbe
AK
11370 } && test -s conftest$ac_exeext && {
11371 test "$cross_compiling" = yes ||
11372 $as_test_x conftest$ac_exeext
11373 }; then
ad6254c5 11374 eval "$as_ac_var=yes"
795ca3e5 11375else
ec6a6fbe 11376 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
11377sed 's/^/| /' conftest.$ac_ext >&5
11378
7a197a62 11379 eval "$as_ac_var=no"
80992638 11380fi
7a197a62 11381
ec6a6fbe 11382rm -rf conftest.dSYM
25fbec5b 11383rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 11384 conftest$ac_exeext conftest.$ac_ext
795ca3e5 11385fi
ec6a6fbe
AK
11386ac_res=`eval 'as_val=${'$as_ac_var'}
11387 $as_echo "$as_val"'`
11388 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11389$as_echo "$ac_res" >&6; }
11390as_val=`eval 'as_val=${'$as_ac_var'}
11391 $as_echo "$as_val"'`
11392 if test "x$as_val" = x""yes; then
ad6254c5 11393 cat >>confdefs.h <<_ACEOF
ec6a6fbe 11394#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5 11395_ACEOF
80992638
AK
11396
11397else
ec6a6fbe
AK
11398 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
11399$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 11400 { (exit 1); exit 1; }; }
8106cdd5 11401fi
ad6254c5 11402done
795ca3e5 11403
25fbec5b
AK
11404 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
11405# -lseq on Dynix/PTX, -lgen on Unixware.
ec6a6fbe
AK
11406{ $as_echo "$as_me:$LINENO: checking for library containing getmntent" >&5
11407$as_echo_n "checking for library containing getmntent... " >&6; }
25fbec5b 11408if test "${ac_cv_search_getmntent+set}" = set; then
ec6a6fbe 11409 $as_echo_n "(cached) " >&6
25fbec5b
AK
11410else
11411 ac_func_search_save_LIBS=$LIBS
11412cat >conftest.$ac_ext <<_ACEOF
11413/* confdefs.h. */
11414_ACEOF
11415cat confdefs.h >>conftest.$ac_ext
11416cat >>conftest.$ac_ext <<_ACEOF
11417/* end confdefs.h. */
80992638 11418
7a197a62
AK
11419/* Override any GCC internal prototype to avoid an error.
11420 Use char because int might match the return type of a GCC
ad6254c5 11421 builtin and then its argument prototype would still apply. */
ad6254c5
AK
11422#ifdef __cplusplus
11423extern "C"
11424#endif
25fbec5b 11425char getmntent ();
ad6254c5
AK
11426int
11427main ()
11428{
25fbec5b 11429return getmntent ();
ad6254c5
AK
11430 ;
11431 return 0;
11432}
11433_ACEOF
25fbec5b
AK
11434for ac_lib in '' sun seq gen; do
11435 if test -z "$ac_lib"; then
11436 ac_res="none required"
11437 else
11438 ac_res=-l$ac_lib
11439 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11440 fi
11441 rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
11442if { (ac_try="$ac_link"
11443case "(($ac_try" in
11444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11445 *) ac_try_echo=$ac_try;;
11446esac
ec6a6fbe
AK
11447eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11448$as_echo "$ac_try_echo") >&5
7a197a62 11449 (eval "$ac_link") 2>conftest.er1
ad6254c5 11450 ac_status=$?
8a2fc586
AK
11451 grep -v '^ *+' conftest.er1 >conftest.err
11452 rm -f conftest.er1
11453 cat conftest.err >&5
ec6a6fbe 11454 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11455 (exit $ac_status); } && {
11456 test -z "$ac_c_werror_flag" ||
11457 test ! -s conftest.err
ec6a6fbe
AK
11458 } && test -s conftest$ac_exeext && {
11459 test "$cross_compiling" = yes ||
11460 $as_test_x conftest$ac_exeext
11461 }; then
25fbec5b 11462 ac_cv_search_getmntent=$ac_res
80992638 11463else
ec6a6fbe 11464 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
11465sed 's/^/| /' conftest.$ac_ext >&5
11466
25fbec5b 11467
795ca3e5
AK
11468fi
11469
ec6a6fbe 11470rm -rf conftest.dSYM
25fbec5b
AK
11471rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11472 conftest$ac_exeext
11473 if test "${ac_cv_search_getmntent+set}" = set; then
11474 break
795ca3e5 11475fi
25fbec5b
AK
11476done
11477if test "${ac_cv_search_getmntent+set}" = set; then
11478 :
11479else
11480 ac_cv_search_getmntent=no
11481fi
11482rm conftest.$ac_ext
11483LIBS=$ac_func_search_save_LIBS
11484fi
ec6a6fbe
AK
11485{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
11486$as_echo "$ac_cv_search_getmntent" >&6; }
25fbec5b
AK
11487ac_res=$ac_cv_search_getmntent
11488if test "$ac_res" != no; then
11489 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11490 ac_cv_func_getmntent=yes
11491
11492cat >>confdefs.h <<\_ACEOF
9c961554 11493#define HAVE_GETMNTENT 1
ad6254c5 11494_ACEOF
795ca3e5 11495
25fbec5b
AK
11496else
11497 ac_cv_func_getmntent=no
795ca3e5 11498fi
795ca3e5
AK
11499
11500
ad6254c5
AK
11501# AC_FUNC_REALLOC
11502
11503
11504for ac_header in sys/select.h sys/socket.h
11505do
ec6a6fbe 11506as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 11507if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
11508 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11509$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 11510if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 11511 $as_echo_n "(cached) " >&6
ad6254c5 11512fi
ec6a6fbe
AK
11513ac_res=`eval 'as_val=${'$as_ac_Header'}
11514 $as_echo "$as_val"'`
11515 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11516$as_echo "$ac_res" >&6; }
795ca3e5 11517else
ad6254c5 11518 # Is the header compilable?
ec6a6fbe
AK
11519{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11520$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 11521cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11522/* confdefs.h. */
11523_ACEOF
11524cat confdefs.h >>conftest.$ac_ext
11525cat >>conftest.$ac_ext <<_ACEOF
11526/* end confdefs.h. */
11527$ac_includes_default
11528#include <$ac_header>
11529_ACEOF
11530rm -f conftest.$ac_objext
7a197a62
AK
11531if { (ac_try="$ac_compile"
11532case "(($ac_try" in
11533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11534 *) ac_try_echo=$ac_try;;
11535esac
ec6a6fbe
AK
11536eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11537$as_echo "$ac_try_echo") >&5
7a197a62 11538 (eval "$ac_compile") 2>conftest.er1
ad6254c5 11539 ac_status=$?
8a2fc586
AK
11540 grep -v '^ *+' conftest.er1 >conftest.err
11541 rm -f conftest.er1
11542 cat conftest.err >&5
ec6a6fbe 11543 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11544 (exit $ac_status); } && {
11545 test -z "$ac_c_werror_flag" ||
11546 test ! -s conftest.err
11547 } && test -s conftest.$ac_objext; then
ad6254c5 11548 ac_header_compiler=yes
80992638 11549else
ec6a6fbe 11550 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
11551sed 's/^/| /' conftest.$ac_ext >&5
11552
7a197a62 11553 ac_header_compiler=no
ad6254c5 11554fi
7a197a62
AK
11555
11556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
11557{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11558$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
11559
11560# Is the header present?
ec6a6fbe
AK
11561{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11562$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 11563cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11564/* confdefs.h. */
11565_ACEOF
11566cat confdefs.h >>conftest.$ac_ext
11567cat >>conftest.$ac_ext <<_ACEOF
11568/* end confdefs.h. */
11569#include <$ac_header>
11570_ACEOF
7a197a62
AK
11571if { (ac_try="$ac_cpp conftest.$ac_ext"
11572case "(($ac_try" in
11573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11574 *) ac_try_echo=$ac_try;;
11575esac
ec6a6fbe
AK
11576eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11577$as_echo "$ac_try_echo") >&5
7a197a62 11578 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
11579 ac_status=$?
11580 grep -v '^ *+' conftest.er1 >conftest.err
11581 rm -f conftest.er1
11582 cat conftest.err >&5
ec6a6fbe 11583 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11584 (exit $ac_status); } >/dev/null && {
11585 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11586 test ! -s conftest.err
11587 }; then
ad6254c5
AK
11588 ac_header_preproc=yes
11589else
ec6a6fbe 11590 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
11591sed 's/^/| /' conftest.$ac_ext >&5
11592
11593 ac_header_preproc=no
11594fi
7a197a62 11595
ad6254c5 11596rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
11597{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11598$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
11599
11600# So? What about this header?
8a2fc586
AK
11601case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11602 yes:no: )
ec6a6fbe
AK
11603 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11604$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11605 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11606$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 11607 ac_header_preproc=yes
ad6254c5 11608 ;;
8a2fc586 11609 no:yes:* )
ec6a6fbe
AK
11610 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11611$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11612 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11613$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11614 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11615$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11616 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11617$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11618 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11619$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11620 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11621$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 11622
ad6254c5
AK
11623 ;;
11624esac
ec6a6fbe
AK
11625{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11626$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 11627if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 11628 $as_echo_n "(cached) " >&6
ad6254c5 11629else
8a2fc586 11630 eval "$as_ac_Header=\$ac_header_preproc"
8106cdd5 11631fi
ec6a6fbe
AK
11632ac_res=`eval 'as_val=${'$as_ac_Header'}
11633 $as_echo "$as_val"'`
11634 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11635$as_echo "$ac_res" >&6; }
8106cdd5 11636
795ca3e5 11637fi
ec6a6fbe
AK
11638as_val=`eval 'as_val=${'$as_ac_Header'}
11639 $as_echo "$as_val"'`
11640 if test "x$as_val" = x""yes; then
ad6254c5 11641 cat >>confdefs.h <<_ACEOF
ec6a6fbe 11642#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
11643_ACEOF
11644
795ca3e5
AK
11645fi
11646
ad6254c5
AK
11647done
11648
ec6a6fbe
AK
11649{ $as_echo "$as_me:$LINENO: checking types of arguments for select" >&5
11650$as_echo_n "checking types of arguments for select... " >&6; }
ad6254c5 11651if test "${ac_cv_func_select_args+set}" = set; then
ec6a6fbe 11652 $as_echo_n "(cached) " >&6
26e7f2e0 11653else
ad6254c5 11654 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
7a197a62 11655 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
ad6254c5
AK
11656 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
11657 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11658/* confdefs.h. */
11659_ACEOF
11660cat confdefs.h >>conftest.$ac_ext
11661cat >>conftest.$ac_ext <<_ACEOF
11662/* end confdefs.h. */
11663$ac_includes_default
25fbec5b 11664#ifdef HAVE_SYS_SELECT_H
ad6254c5
AK
11665# include <sys/select.h>
11666#endif
25fbec5b 11667#ifdef HAVE_SYS_SOCKET_H
ad6254c5
AK
11668# include <sys/socket.h>
11669#endif
11670
11671int
11672main ()
11673{
11674extern int select ($ac_arg1,
8a2fc586
AK
11675 $ac_arg234, $ac_arg234, $ac_arg234,
11676 $ac_arg5);
ad6254c5
AK
11677 ;
11678 return 0;
11679}
11680_ACEOF
11681rm -f conftest.$ac_objext
7a197a62
AK
11682if { (ac_try="$ac_compile"
11683case "(($ac_try" in
11684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11685 *) ac_try_echo=$ac_try;;
11686esac
ec6a6fbe
AK
11687eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11688$as_echo "$ac_try_echo") >&5
7a197a62 11689 (eval "$ac_compile") 2>conftest.er1
ad6254c5 11690 ac_status=$?
8a2fc586
AK
11691 grep -v '^ *+' conftest.er1 >conftest.err
11692 rm -f conftest.er1
11693 cat conftest.err >&5
ec6a6fbe 11694 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11695 (exit $ac_status); } && {
11696 test -z "$ac_c_werror_flag" ||
11697 test ! -s conftest.err
11698 } && test -s conftest.$ac_objext; then
ad6254c5
AK
11699 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
11700else
ec6a6fbe 11701 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
11702sed 's/^/| /' conftest.$ac_ext >&5
11703
7a197a62 11704
ad6254c5 11705fi
7a197a62
AK
11706
11707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
11708 done
11709 done
11710done
11711# Provide a safe default value.
11712: ${ac_cv_func_select_args='int,int *,struct timeval *'}
11713
26e7f2e0 11714fi
ec6a6fbe
AK
11715{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
11716$as_echo "$ac_cv_func_select_args" >&6; }
ad6254c5
AK
11717ac_save_IFS=$IFS; IFS=','
11718set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
11719IFS=$ac_save_IFS
11720shift
11721
11722cat >>confdefs.h <<_ACEOF
11723#define SELECT_TYPE_ARG1 $1
11724_ACEOF
11725
11726
11727cat >>confdefs.h <<_ACEOF
11728#define SELECT_TYPE_ARG234 ($2)
11729_ACEOF
11730
11731
11732cat >>confdefs.h <<_ACEOF
11733#define SELECT_TYPE_ARG5 ($3)
11734_ACEOF
11735
80992638 11736rm -f conftest*
80992638 11737
8106cdd5 11738fi
ad6254c5 11739
ad6254c5
AK
11740if test x$CLUSTER != xnone; then
11741
11742
11743for ac_header in sys/socket.h sys/un.h
b896caa1 11744do
ec6a6fbe 11745as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 11746if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
11747 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11748$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 11749if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 11750 $as_echo_n "(cached) " >&6
ad6254c5 11751fi
ec6a6fbe
AK
11752ac_res=`eval 'as_val=${'$as_ac_Header'}
11753 $as_echo "$as_val"'`
11754 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11755$as_echo "$ac_res" >&6; }
ad6254c5
AK
11756else
11757 # Is the header compilable?
ec6a6fbe
AK
11758{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11759$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 11760cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11761/* confdefs.h. */
11762_ACEOF
11763cat confdefs.h >>conftest.$ac_ext
11764cat >>conftest.$ac_ext <<_ACEOF
11765/* end confdefs.h. */
11766$ac_includes_default
11767#include <$ac_header>
11768_ACEOF
11769rm -f conftest.$ac_objext
7a197a62
AK
11770if { (ac_try="$ac_compile"
11771case "(($ac_try" in
11772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11773 *) ac_try_echo=$ac_try;;
11774esac
ec6a6fbe
AK
11775eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11776$as_echo "$ac_try_echo") >&5
7a197a62 11777 (eval "$ac_compile") 2>conftest.er1
ad6254c5 11778 ac_status=$?
8a2fc586
AK
11779 grep -v '^ *+' conftest.er1 >conftest.err
11780 rm -f conftest.er1
11781 cat conftest.err >&5
ec6a6fbe 11782 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11783 (exit $ac_status); } && {
11784 test -z "$ac_c_werror_flag" ||
11785 test ! -s conftest.err
11786 } && test -s conftest.$ac_objext; then
ad6254c5
AK
11787 ac_header_compiler=yes
11788else
ec6a6fbe 11789 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
11790sed 's/^/| /' conftest.$ac_ext >&5
11791
7a197a62 11792 ac_header_compiler=no
ad6254c5 11793fi
7a197a62
AK
11794
11795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
11796{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11797$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
11798
11799# Is the header present?
ec6a6fbe
AK
11800{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11801$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 11802cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11803/* confdefs.h. */
11804_ACEOF
11805cat confdefs.h >>conftest.$ac_ext
11806cat >>conftest.$ac_ext <<_ACEOF
11807/* end confdefs.h. */
11808#include <$ac_header>
11809_ACEOF
7a197a62
AK
11810if { (ac_try="$ac_cpp conftest.$ac_ext"
11811case "(($ac_try" in
11812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11813 *) ac_try_echo=$ac_try;;
11814esac
ec6a6fbe
AK
11815eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11816$as_echo "$ac_try_echo") >&5
7a197a62 11817 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
11818 ac_status=$?
11819 grep -v '^ *+' conftest.er1 >conftest.err
11820 rm -f conftest.er1
11821 cat conftest.err >&5
ec6a6fbe 11822 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11823 (exit $ac_status); } >/dev/null && {
11824 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11825 test ! -s conftest.err
11826 }; then
ad6254c5
AK
11827 ac_header_preproc=yes
11828else
ec6a6fbe 11829 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
11830sed 's/^/| /' conftest.$ac_ext >&5
11831
11832 ac_header_preproc=no
11833fi
7a197a62 11834
ad6254c5 11835rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
11836{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11837$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
11838
11839# So? What about this header?
8a2fc586
AK
11840case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11841 yes:no: )
ec6a6fbe
AK
11842 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11843$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11844 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11845$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 11846 ac_header_preproc=yes
ad6254c5 11847 ;;
8a2fc586 11848 no:yes:* )
ec6a6fbe
AK
11849 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11850$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11851 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11852$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11853 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11854$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11855 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11856$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11857 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11858$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11859 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11860$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 11861
ad6254c5
AK
11862 ;;
11863esac
ec6a6fbe
AK
11864{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11865$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 11866if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 11867 $as_echo_n "(cached) " >&6
ad6254c5 11868else
8a2fc586 11869 eval "$as_ac_Header=\$ac_header_preproc"
b896caa1 11870fi
ec6a6fbe
AK
11871ac_res=`eval 'as_val=${'$as_ac_Header'}
11872 $as_echo "$as_val"'`
11873 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11874$as_echo "$ac_res" >&6; }
ad6254c5
AK
11875
11876fi
ec6a6fbe
AK
11877as_val=`eval 'as_val=${'$as_ac_Header'}
11878 $as_echo "$as_val"'`
11879 if test "x$as_val" = x""yes; then
ad6254c5 11880 cat >>confdefs.h <<_ACEOF
ec6a6fbe 11881#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
11882_ACEOF
11883
80992638 11884else
ec6a6fbe
AK
11885 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
11886$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 11887 { (exit 1); exit 1; }; }
b896caa1 11888fi
ad6254c5 11889
b896caa1
AK
11890done
11891
11892
ad6254c5
AK
11893for ac_func in socket
11894do
ec6a6fbe
AK
11895as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11896{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11897$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 11898if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 11899 $as_echo_n "(cached) " >&6
795ca3e5 11900else
ad6254c5 11901 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11902/* confdefs.h. */
11903_ACEOF
11904cat confdefs.h >>conftest.$ac_ext
11905cat >>conftest.$ac_ext <<_ACEOF
11906/* end confdefs.h. */
8a2fc586
AK
11907/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11908 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11909#define $ac_func innocuous_$ac_func
11910
ad6254c5
AK
11911/* System header to define __stub macros and hopefully few prototypes,
11912 which can conflict with char $ac_func (); below.
11913 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11914 <limits.h> exists even on freestanding compilers. */
8a2fc586 11915
ad6254c5
AK
11916#ifdef __STDC__
11917# include <limits.h>
11918#else
11919# include <assert.h>
11920#endif
8a2fc586
AK
11921
11922#undef $ac_func
11923
7a197a62
AK
11924/* Override any GCC internal prototype to avoid an error.
11925 Use char because int might match the return type of a GCC
11926 builtin and then its argument prototype would still apply. */
ad6254c5
AK
11927#ifdef __cplusplus
11928extern "C"
ad6254c5 11929#endif
ad6254c5
AK
11930char $ac_func ();
11931/* The GNU C library defines this for functions which it implements
11932 to always fail with ENOSYS. Some functions are actually named
11933 something starting with __ and the normal name is an alias. */
7a197a62 11934#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 11935choke me
ad6254c5
AK
11936#endif
11937
11938int
11939main ()
11940{
7a197a62 11941return $ac_func ();
ad6254c5
AK
11942 ;
11943 return 0;
11944}
11945_ACEOF
11946rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
11947if { (ac_try="$ac_link"
11948case "(($ac_try" in
11949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11950 *) ac_try_echo=$ac_try;;
11951esac
ec6a6fbe
AK
11952eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11953$as_echo "$ac_try_echo") >&5
7a197a62 11954 (eval "$ac_link") 2>conftest.er1
ad6254c5 11955 ac_status=$?
8a2fc586
AK
11956 grep -v '^ *+' conftest.er1 >conftest.err
11957 rm -f conftest.er1
11958 cat conftest.err >&5
ec6a6fbe 11959 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11960 (exit $ac_status); } && {
11961 test -z "$ac_c_werror_flag" ||
11962 test ! -s conftest.err
ec6a6fbe
AK
11963 } && test -s conftest$ac_exeext && {
11964 test "$cross_compiling" = yes ||
11965 $as_test_x conftest$ac_exeext
11966 }; then
ad6254c5
AK
11967 eval "$as_ac_var=yes"
11968else
ec6a6fbe 11969 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
11970sed 's/^/| /' conftest.$ac_ext >&5
11971
7a197a62 11972 eval "$as_ac_var=no"
ad6254c5 11973fi
7a197a62 11974
ec6a6fbe 11975rm -rf conftest.dSYM
25fbec5b 11976rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 11977 conftest$ac_exeext conftest.$ac_ext
ad6254c5 11978fi
ec6a6fbe
AK
11979ac_res=`eval 'as_val=${'$as_ac_var'}
11980 $as_echo "$as_val"'`
11981 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11982$as_echo "$ac_res" >&6; }
11983as_val=`eval 'as_val=${'$as_ac_var'}
11984 $as_echo "$as_val"'`
11985 if test "x$as_val" = x""yes; then
ad6254c5 11986 cat >>confdefs.h <<_ACEOF
ec6a6fbe 11987#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
11988_ACEOF
11989
11990else
ec6a6fbe
AK
11991 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
11992$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5
AK
11993 { (exit 1); exit 1; }; }
11994fi
11995done
11996
11997fi
11998
11999if test x$HAVE_LIBDL = xyes; then
12000
12001for ac_header in dlfcn.h
12002do
ec6a6fbe 12003as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 12004if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
12005 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12006$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 12007if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 12008 $as_echo_n "(cached) " >&6
ad6254c5 12009fi
ec6a6fbe
AK
12010ac_res=`eval 'as_val=${'$as_ac_Header'}
12011 $as_echo "$as_val"'`
12012 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12013$as_echo "$ac_res" >&6; }
ad6254c5
AK
12014else
12015 # Is the header compilable?
ec6a6fbe
AK
12016{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12017$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 12018cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
12019/* confdefs.h. */
12020_ACEOF
12021cat confdefs.h >>conftest.$ac_ext
12022cat >>conftest.$ac_ext <<_ACEOF
12023/* end confdefs.h. */
12024$ac_includes_default
12025#include <$ac_header>
12026_ACEOF
12027rm -f conftest.$ac_objext
7a197a62
AK
12028if { (ac_try="$ac_compile"
12029case "(($ac_try" in
12030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12031 *) ac_try_echo=$ac_try;;
12032esac
ec6a6fbe
AK
12033eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12034$as_echo "$ac_try_echo") >&5
7a197a62 12035 (eval "$ac_compile") 2>conftest.er1
ad6254c5 12036 ac_status=$?
8a2fc586
AK
12037 grep -v '^ *+' conftest.er1 >conftest.err
12038 rm -f conftest.er1
12039 cat conftest.err >&5
ec6a6fbe 12040 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
12041 (exit $ac_status); } && {
12042 test -z "$ac_c_werror_flag" ||
12043 test ! -s conftest.err
12044 } && test -s conftest.$ac_objext; then
ad6254c5
AK
12045 ac_header_compiler=yes
12046else
ec6a6fbe 12047 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
12048sed 's/^/| /' conftest.$ac_ext >&5
12049
7a197a62 12050 ac_header_compiler=no
ad6254c5 12051fi
7a197a62
AK
12052
12053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
12054{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12055$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
12056
12057# Is the header present?
ec6a6fbe
AK
12058{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12059$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 12060cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
12061/* confdefs.h. */
12062_ACEOF
12063cat confdefs.h >>conftest.$ac_ext
12064cat >>conftest.$ac_ext <<_ACEOF
12065/* end confdefs.h. */
12066#include <$ac_header>
12067_ACEOF
7a197a62
AK
12068if { (ac_try="$ac_cpp conftest.$ac_ext"
12069case "(($ac_try" in
12070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12071 *) ac_try_echo=$ac_try;;
12072esac
ec6a6fbe
AK
12073eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12074$as_echo "$ac_try_echo") >&5
7a197a62 12075 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
12076 ac_status=$?
12077 grep -v '^ *+' conftest.er1 >conftest.err
12078 rm -f conftest.er1
12079 cat conftest.err >&5
ec6a6fbe 12080 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
12081 (exit $ac_status); } >/dev/null && {
12082 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12083 test ! -s conftest.err
12084 }; then
ad6254c5
AK
12085 ac_header_preproc=yes
12086else
ec6a6fbe 12087 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
12088sed 's/^/| /' conftest.$ac_ext >&5
12089
12090 ac_header_preproc=no
12091fi
7a197a62 12092
ad6254c5 12093rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
12094{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12095$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
12096
12097# So? What about this header?
8a2fc586
AK
12098case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12099 yes:no: )
ec6a6fbe
AK
12100 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12101$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12102 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12103$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 12104 ac_header_preproc=yes
ad6254c5 12105 ;;
8a2fc586 12106 no:yes:* )
ec6a6fbe
AK
12107 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12108$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12109 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12110$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12111 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12112$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12113 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12114$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12115 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12116$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12117 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12118$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 12119
ad6254c5
AK
12120 ;;
12121esac
ec6a6fbe
AK
12122{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12123$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 12124if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 12125 $as_echo_n "(cached) " >&6
ad6254c5 12126else
8a2fc586 12127 eval "$as_ac_Header=\$ac_header_preproc"
795ca3e5 12128fi
ec6a6fbe
AK
12129ac_res=`eval 'as_val=${'$as_ac_Header'}
12130 $as_echo "$as_val"'`
12131 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12132$as_echo "$ac_res" >&6; }
80992638 12133
8106cdd5 12134fi
ec6a6fbe
AK
12135as_val=`eval 'as_val=${'$as_ac_Header'}
12136 $as_echo "$as_val"'`
12137 if test "x$as_val" = x""yes; then
ad6254c5 12138 cat >>confdefs.h <<_ACEOF
ec6a6fbe 12139#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 12140_ACEOF
795ca3e5
AK
12141
12142else
ec6a6fbe
AK
12143 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
12144$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 12145 { (exit 1); exit 1; }; }
795ca3e5
AK
12146fi
12147
ad6254c5 12148done
80992638 12149
ad6254c5 12150fi
80992638 12151
ad6254c5 12152if test x$INTL = xyes; then
83912faa 12153
ad6254c5
AK
12154for ac_header in libintl.h
12155do
ec6a6fbe 12156as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 12157if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
12158 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12159$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 12160if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 12161 $as_echo_n "(cached) " >&6
ad6254c5 12162fi
ec6a6fbe
AK
12163ac_res=`eval 'as_val=${'$as_ac_Header'}
12164 $as_echo "$as_val"'`
12165 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12166$as_echo "$ac_res" >&6; }
83912faa 12167else
ad6254c5 12168 # Is the header compilable?
ec6a6fbe
AK
12169{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12170$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 12171cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
12172/* confdefs.h. */
12173_ACEOF
12174cat confdefs.h >>conftest.$ac_ext
12175cat >>conftest.$ac_ext <<_ACEOF
12176/* end confdefs.h. */
12177$ac_includes_default
12178#include <$ac_header>
12179_ACEOF
12180rm -f conftest.$ac_objext
7a197a62
AK
12181if { (ac_try="$ac_compile"
12182case "(($ac_try" in
12183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12184 *) ac_try_echo=$ac_try;;
12185esac
ec6a6fbe
AK
12186eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12187$as_echo "$ac_try_echo") >&5
7a197a62 12188 (eval "$ac_compile") 2>conftest.er1
ad6254c5 12189 ac_status=$?
8a2fc586
AK
12190 grep -v '^ *+' conftest.er1 >conftest.err
12191 rm -f conftest.er1
12192 cat conftest.err >&5
ec6a6fbe 12193 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
12194 (exit $ac_status); } && {
12195 test -z "$ac_c_werror_flag" ||
12196 test ! -s conftest.err
12197 } && test -s conftest.$ac_objext; then
ad6254c5
AK
12198 ac_header_compiler=yes
12199else
ec6a6fbe 12200 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
12201sed 's/^/| /' conftest.$ac_ext >&5
12202
7a197a62 12203 ac_header_compiler=no
ad6254c5 12204fi
7a197a62
AK
12205
12206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
12207{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12208$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
12209
12210# Is the header present?
ec6a6fbe
AK
12211{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12212$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 12213cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
12214/* confdefs.h. */
12215_ACEOF
12216cat confdefs.h >>conftest.$ac_ext
12217cat >>conftest.$ac_ext <<_ACEOF
12218/* end confdefs.h. */
12219#include <$ac_header>
12220_ACEOF
7a197a62
AK
12221if { (ac_try="$ac_cpp conftest.$ac_ext"
12222case "(($ac_try" in
12223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12224 *) ac_try_echo=$ac_try;;
12225esac
ec6a6fbe
AK
12226eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12227$as_echo "$ac_try_echo") >&5
7a197a62 12228 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
12229 ac_status=$?
12230 grep -v '^ *+' conftest.er1 >conftest.err
12231 rm -f conftest.er1
12232 cat conftest.err >&5
ec6a6fbe 12233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
12234 (exit $ac_status); } >/dev/null && {
12235 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12236 test ! -s conftest.err
12237 }; then
ad6254c5
AK
12238 ac_header_preproc=yes
12239else
ec6a6fbe 12240 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
12241sed 's/^/| /' conftest.$ac_ext >&5
12242
12243 ac_header_preproc=no
12244fi
7a197a62 12245
ad6254c5 12246rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
12247{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12248$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
12249
12250# So? What about this header?
8a2fc586
AK
12251case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12252 yes:no: )
ec6a6fbe
AK
12253 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12254$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12255 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12256$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 12257 ac_header_preproc=yes
ad6254c5 12258 ;;
8a2fc586 12259 no:yes:* )
ec6a6fbe
AK
12260 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12261$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12262 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12263$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12264 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12265$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12266 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12267$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12268 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12269$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12270 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12271$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 12272
ad6254c5
AK
12273 ;;
12274esac
ec6a6fbe
AK
12275{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12276$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 12277if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 12278 $as_echo_n "(cached) " >&6
80992638 12279else
8a2fc586 12280 eval "$as_ac_Header=\$ac_header_preproc"
83912faa 12281fi
ec6a6fbe
AK
12282ac_res=`eval 'as_val=${'$as_ac_Header'}
12283 $as_echo "$as_val"'`
12284 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12285$as_echo "$ac_res" >&6; }
83912faa 12286
69792976 12287fi
ec6a6fbe
AK
12288as_val=`eval 'as_val=${'$as_ac_Header'}
12289 $as_echo "$as_val"'`
12290 if test "x$as_val" = x""yes; then
ad6254c5 12291 cat >>confdefs.h <<_ACEOF
ec6a6fbe 12292#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 12293_ACEOF
69792976 12294
69792976 12295else
ec6a6fbe
AK
12296 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
12297$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 12298 { (exit 1); exit 1; }; }
80992638
AK
12299fi
12300
ad6254c5 12301done
69792976 12302
ad6254c5
AK
12303fi
12304
ad6254c5
AK
12305if test x$HAVE_SELINUX = xyes; then
12306
12307for ac_header in selinux/selinux.h
12308do
ec6a6fbe 12309as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 12310if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
12311 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12312$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 12313if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 12314 $as_echo_n "(cached) " >&6
ad6254c5 12315fi
ec6a6fbe
AK
12316ac_res=`eval 'as_val=${'$as_ac_Header'}
12317 $as_echo "$as_val"'`
12318 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12319$as_echo "$ac_res" >&6; }
4a7f3eb2 12320else
ad6254c5 12321 # Is the header compilable?
ec6a6fbe
AK
12322{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12323$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 12324cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
12325/* confdefs.h. */
12326_ACEOF
12327cat confdefs.h >>conftest.$ac_ext
12328cat >>conftest.$ac_ext <<_ACEOF
12329/* end confdefs.h. */
12330$ac_includes_default
12331#include <$ac_header>
12332_ACEOF
12333rm -f conftest.$ac_objext
7a197a62
AK
12334if { (ac_try="$ac_compile"
12335case "(($ac_try" in
12336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12337 *) ac_try_echo=$ac_try;;
12338esac
ec6a6fbe
AK
12339eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12340$as_echo "$ac_try_echo") >&5
7a197a62 12341 (eval "$ac_compile") 2>conftest.er1
ad6254c5 12342 ac_status=$?
8a2fc586
AK
12343 grep -v '^ *+' conftest.er1 >conftest.err
12344 rm -f conftest.er1
12345 cat conftest.err >&5
ec6a6fbe 12346 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
12347 (exit $ac_status); } && {
12348 test -z "$ac_c_werror_flag" ||
12349 test ! -s conftest.err
12350 } && test -s conftest.$ac_objext; then
ad6254c5
AK
12351 ac_header_compiler=yes
12352else
ec6a6fbe 12353 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
12354sed 's/^/| /' conftest.$ac_ext >&5
12355
7a197a62 12356 ac_header_compiler=no
ad6254c5 12357fi
7a197a62
AK
12358
12359rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
12360{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12361$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
12362
12363# Is the header present?
ec6a6fbe
AK
12364{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12365$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 12366cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
12367/* confdefs.h. */
12368_ACEOF
12369cat confdefs.h >>conftest.$ac_ext
12370cat >>conftest.$ac_ext <<_ACEOF
12371/* end confdefs.h. */
12372#include <$ac_header>
12373_ACEOF
7a197a62
AK
12374if { (ac_try="$ac_cpp conftest.$ac_ext"
12375case "(($ac_try" in
12376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12377 *) ac_try_echo=$ac_try;;
12378esac
ec6a6fbe
AK
12379eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12380$as_echo "$ac_try_echo") >&5
7a197a62 12381 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
12382 ac_status=$?
12383 grep -v '^ *+' conftest.er1 >conftest.err
12384 rm -f conftest.er1
12385 cat conftest.err >&5
ec6a6fbe 12386 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
12387 (exit $ac_status); } >/dev/null && {
12388 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12389 test ! -s conftest.err
12390 }; then
ad6254c5
AK
12391 ac_header_preproc=yes
12392else
ec6a6fbe 12393 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
12394sed 's/^/| /' conftest.$ac_ext >&5
12395
12396 ac_header_preproc=no
12397fi
7a197a62 12398
ad6254c5 12399rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
12400{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12401$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
12402
12403# So? What about this header?
8a2fc586
AK
12404case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12405 yes:no: )
ec6a6fbe
AK
12406 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12407$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12408 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12409$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 12410 ac_header_preproc=yes
ad6254c5 12411 ;;
8a2fc586 12412 no:yes:* )
ec6a6fbe
AK
12413 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12414$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12415 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12416$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12417 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12418$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12419 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12420$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12421 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12422$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12423 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12424$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 12425
ad6254c5
AK
12426 ;;
12427esac
ec6a6fbe
AK
12428{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12429$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 12430if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 12431 $as_echo_n "(cached) " >&6
ad6254c5 12432else
8a2fc586 12433 eval "$as_ac_Header=\$ac_header_preproc"
80992638 12434fi
ec6a6fbe
AK
12435ac_res=`eval 'as_val=${'$as_ac_Header'}
12436 $as_echo "$as_val"'`
12437 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12438$as_echo "$ac_res" >&6; }
4a7f3eb2 12439
ad6254c5 12440fi
ec6a6fbe
AK
12441as_val=`eval 'as_val=${'$as_ac_Header'}
12442 $as_echo "$as_val"'`
12443 if test "x$as_val" = x""yes; then
ad6254c5 12444 cat >>confdefs.h <<_ACEOF
ec6a6fbe 12445#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 12446_ACEOF
0a62c911 12447
0a62c911 12448else
ec6a6fbe
AK
12449 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
12450$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 12451 { (exit 1); exit 1; }; }
80992638
AK
12452fi
12453
ad6254c5 12454done
0a62c911 12455
ad6254c5 12456fi
0a62c911 12457
a653923f
AK
12458################################################################################
12459# Extract the first word of "modprobe", so it can be a program name with args.
12460set dummy modprobe; ac_word=$2
ec6a6fbe
AK
12461{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12462$as_echo_n "checking for $ac_word... " >&6; }
72b2cb61 12463if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then
ec6a6fbe 12464 $as_echo_n "(cached) " >&6
72b2cb61
AK
12465else
12466 case $MODPROBE_CMD in
12467 [\\/]* | ?:[\\/]*)
12468 ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path.
12469 ;;
12470 *)
12471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12472for as_dir in $PATH
12473do
12474 IFS=$as_save_IFS
12475 test -z "$as_dir" && as_dir=.
12476 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 12477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
72b2cb61 12478 ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 12479 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
72b2cb61
AK
12480 break 2
12481 fi
12482done
12483done
7a197a62 12484IFS=$as_save_IFS
72b2cb61
AK
12485
12486 ;;
12487esac
12488fi
12489MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD
72b2cb61 12490if test -n "$MODPROBE_CMD"; then
ec6a6fbe
AK
12491 { $as_echo "$as_me:$LINENO: result: $MODPROBE_CMD" >&5
12492$as_echo "$MODPROBE_CMD" >&6; }
72b2cb61 12493else
ec6a6fbe
AK
12494 { $as_echo "$as_me:$LINENO: result: no" >&5
12495$as_echo "no" >&6; }
72b2cb61
AK
12496fi
12497
a653923f 12498
7a197a62 12499
a653923f 12500if test x$MODPROBE_CMD != x; then
72b2cb61
AK
12501
12502cat >>confdefs.h <<_ACEOF
12503#define MODPROBE_CMD "$MODPROBE_CMD"
12504_ACEOF
12505
a653923f
AK
12506fi
12507
80992638 12508################################################################################
93bd259b
AK
12509
12510
12511if test "$BUILD_DMEVENTD" = yes; then
12512
12513# Check whether --with-dmeventd-pidfile was given.
12514if test "${with_dmeventd_pidfile+set}" = set; then
12515 withval=$with_dmeventd_pidfile; cat >>confdefs.h <<_ACEOF
12516#define DMEVENTD_PIDFILE "$withval"
12517_ACEOF
12518
12519else
12520 cat >>confdefs.h <<_ACEOF
12521#define DMEVENTD_PIDFILE "/var/run/dmeventd.pid"
12522_ACEOF
12523
12524fi
12525
12526fi
12527
12528
12529
12530if test "$BUILD_DMEVENTD" = yes; then
12531 dmeventd_prefix="$exec_prefix"
12532 if test "x$dmeventd_prefix" = "xNONE"; then
12533 dmeventd_prefix="$prefix"
12534 fi
12535 if test "x$dmeventd_prefix" = "xNONE"; then
12536 dmeventd_prefix=""
12537 fi
12538
12539# Check whether --with-dmeventd-path was given.
12540if test "${with_dmeventd_path+set}" = set; then
12541 withval=$with_dmeventd_path; cat >>confdefs.h <<_ACEOF
12542#define DMEVENTD_PATH "$withval"
12543_ACEOF
12544
12545else
12546 cat >>confdefs.h <<_ACEOF
12547#define DMEVENTD_PATH "$dmeventd_prefix/sbin/dmeventd"
12548_ACEOF
12549
12550fi
12551
12552fi
12553
12554################################################################################
ec6a6fbe
AK
12555{ $as_echo "$as_me:$LINENO: checking for kernel interface choice" >&5
12556$as_echo_n "checking for kernel interface choice... " >&6; }
93bd259b
AK
12557
12558# Check whether --with-interface was given.
12559if test "${with_interface+set}" = set; then
12560 withval=$with_interface; interface="$withval"
12561else
12562 interface=ioctl
12563fi
12564
12565if [ "x$interface" != xioctl ];
12566then
ec6a6fbe
AK
12567 { { $as_echo "$as_me:$LINENO: error: --with-interface=ioctl required. fs no longer supported." >&5
12568$as_echo "$as_me: error: --with-interface=ioctl required. fs no longer supported." >&2;}
93bd259b
AK
12569 { (exit 1); exit 1; }; }
12570fi
ec6a6fbe
AK
12571{ $as_echo "$as_me:$LINENO: result: $interface" >&5
12572$as_echo "$interface" >&6; }
93bd259b
AK
12573
12574################################################################################
2c44337b 12575DM_LIB_VERSION="\"`cat VERSION_DM 2>/dev/null || echo Unknown`\""
24bbc4d7
AK
12576
12577cat >>confdefs.h <<_ACEOF
12578#define DM_LIB_VERSION $DM_LIB_VERSION
12579_ACEOF
12580
12581
ec6a6fbe 12582DM_LIB_PATCHLEVEL=`cat VERSION_DM | $AWK -F '[-. ]' '{printf "%s.%s.%s",$1,$2,$3}'`
7e3fe830 12583
d0191583 12584LVM_VERSION="\"`cat VERSION 2>/dev/null || echo Unknown`\""
fae0c576 12585
ec6a6fbe
AK
12586VER=`cat VERSION`
12587LVM_RELEASE_DATE="\"`echo $VER | $SED 's/.*(//;s/).*//'`\""
12588VER=`echo "$VER" | $AWK '{print $1}'`
12589LVM_RELEASE="\"`echo "$VER" | $AWK -F '-' '{print $2}'`\""
12590VER=`echo "$VER" | $AWK -F '-' '{print $1}'`
12591LVM_MAJOR=`echo "$VER" | $AWK -F '.' '{print $1}'`
12592LVM_MINOR=`echo "$VER" | $AWK -F '.' '{print $2}'`
12593LVM_PATCHLEVEL=`echo "$VER" | $AWK -F '.' '{print $3}'`
12594
80992638 12595################################################################################
fae0c576 12596
83912faa 12597
795ca3e5
AK
12598
12599
12600
12601
12602
12603
5a52dca9 12604
8ef2b021 12605
199e490e 12606
69792976
AK
12607
12608
12609
d0191583 12610
69792976 12611
8106cdd5
AK
12612
12613
12614
12615
12616
d68a82ec 12617
036f273a 12618
7d1552c9 12619
8106cdd5 12620
0a62c911 12621
8106cdd5 12622
4a7f3eb2 12623
4922197a
AK
12624
12625
d8ac0fbc 12626
1a9ea74d 12627
8a2fc586
AK
12628
12629
d0191583 12630
93bd259b
AK
12631
12632
12633
12634
12635
d0191583
JM
12636
12637
12638
12639
12640
8a2fc586 12641
8ce0cbda 12642
8b1a3214 12643
ec6a6fbe
AK
12644
12645
12646
12647
e2997b73
AK
12648
12649
12650
12651
12652
12653
ec6a6fbe 12654
33f732c5 12655
66e941e8 12656
d3c8211f 12657
7e3fe830 12658
68f2de6d
AK
12659
12660
80992638 12661################################################################################
ec6a6fbe 12662ac_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 man/Makefile po/Makefile scripts/clvmd_init_red_hat scripts/Makefile test/Makefile test/api/Makefile tools/Makefile"
7a197a62 12663
ad6254c5 12664cat >confcache <<\_ACEOF
795ca3e5
AK
12665# This file is a shell script that caches the results of configure
12666# tests run on this system so they can be shared between configure
ad6254c5
AK
12667# scripts and configure runs, see configure's option --config-cache.
12668# It is not useful on other systems. If it contains results you don't
12669# want to keep, you may remove or edit it.
795ca3e5 12670#
ad6254c5
AK
12671# config.status only pays attention to the cache file if you give it
12672# the --recheck option to rerun configure.
795ca3e5 12673#
ad6254c5
AK
12674# `ac_cv_env_foo' variables (set or unset) will be overridden when
12675# loading this file, other *unset* `ac_cv_foo' will be assigned the
12676# following values.
12677
12678_ACEOF
12679
795ca3e5
AK
12680# The following way of writing the cache mishandles newlines in values,
12681# but we know of no workaround that is simple, portable, and efficient.
7a197a62 12682# So, we kill variables containing newlines.
795ca3e5
AK
12683# Ultrix sh set writes to stderr and can't be redirected directly,
12684# and sets the high bit in the cache file unless we assign to the vars.
7a197a62
AK
12685(
12686 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12687 eval ac_val=\$$ac_var
12688 case $ac_val in #(
12689 *${as_nl}*)
12690 case $ac_var in #(
ec6a6fbe
AK
12691 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
12692$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7a197a62
AK
12693 esac
12694 case $ac_var in #(
12695 _ | IFS | as_nl) ;; #(
ec6a6fbe 12696 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7a197a62
AK
12697 *) $as_unset $ac_var ;;
12698 esac ;;
12699 esac
12700 done
12701
ad6254c5 12702 (set) 2>&1 |
7a197a62
AK
12703 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12704 *${as_nl}ac_space=\ *)
ad6254c5
AK
12705 # `set' does not quote correctly, so add quotes (double-quote
12706 # substitution turns \\\\ into \\, and sed turns \\ into \).
12707 sed -n \
8a2fc586
AK
12708 "s/'/'\\\\''/g;
12709 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7a197a62 12710 ;; #(
ad6254c5
AK
12711 *)
12712 # `set' quotes correctly as required by POSIX, so do not add quotes.
7a197a62 12713 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
ad6254c5 12714 ;;
7a197a62
AK
12715 esac |
12716 sort
12717) |
ad6254c5 12718 sed '
7a197a62 12719 /^ac_cv_env_/b end
ad6254c5 12720 t clear
7a197a62 12721 :clear
ad6254c5
AK
12722 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12723 t end
7a197a62
AK
12724 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12725 :end' >>confcache
12726if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12727 if test -w "$cache_file"; then
12728 test "x$cache_file" != "x/dev/null" &&
ec6a6fbe
AK
12729 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
12730$as_echo "$as_me: updating cache $cache_file" >&6;}
ad6254c5 12731 cat confcache >$cache_file
795ca3e5 12732 else
ec6a6fbe
AK
12733 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
12734$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
795ca3e5
AK
12735 fi
12736fi
12737rm -f confcache
12738
795ca3e5
AK
12739test "x$prefix" = xNONE && prefix=$ac_default_prefix
12740# Let make expand exec_prefix.
12741test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12742
72b2cb61 12743DEFS=-DHAVE_CONFIG_H
ad6254c5
AK
12744
12745ac_libobjs=
12746ac_ltlibobjs=
12747for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12748 # 1. Remove the extension, and $U if already installed.
7a197a62 12749 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
ec6a6fbe 12750 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7a197a62
AK
12751 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12752 # will be set to the directory where LIBOBJS objects are built.
12753 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12754 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
ad6254c5
AK
12755done
12756LIBOBJS=$ac_libobjs
80992638 12757
ad6254c5
AK
12758LTLIBOBJS=$ac_ltlibobjs
12759
12760
12761
12762: ${CONFIG_STATUS=./config.status}
ec6a6fbe 12763ac_write_fail=0
ad6254c5
AK
12764ac_clean_files_save=$ac_clean_files
12765ac_clean_files="$ac_clean_files $CONFIG_STATUS"
ec6a6fbe
AK
12766{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12767$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12768cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5
AK
12769#! $SHELL
12770# Generated by $as_me.
795ca3e5 12771# Run this file to recreate the current configuration.
795ca3e5 12772# Compiler output produced by configure, useful for debugging
ad6254c5
AK
12773# configure, is in config.log if it exists.
12774
12775debug=false
12776ac_cs_recheck=false
12777ac_cs_silent=false
12778SHELL=\${CONFIG_SHELL-$SHELL}
12779_ACEOF
12780
ec6a6fbe 12781cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ad6254c5
AK
12782## --------------------- ##
12783## M4sh Initialization. ##
12784## --------------------- ##
12785
25fbec5b
AK
12786# Be more Bourne compatible
12787DUALCASE=1; export DUALCASE # for MKS sh
ad6254c5
AK
12788if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12789 emulate sh
12790 NULLCMD=:
ec6a6fbe 12791 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
ad6254c5
AK
12792 # is contrary to our usage. Disable this feature.
12793 alias -g '${1+"$@"}'='"$@"'
7a197a62
AK
12794 setopt NO_GLOB_SUBST
12795else
25fbec5b
AK
12796 case `(set -o) 2>/dev/null` in
12797 *posix*) set -o posix ;;
12798esac
12799
7a197a62 12800fi
25fbec5b
AK
12801
12802
7a197a62
AK
12803
12804
12805# PATH needs CR
12806# Avoid depending upon Character Ranges.
12807as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12808as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12809as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12810as_cr_digits='0123456789'
12811as_cr_alnum=$as_cr_Letters$as_cr_digits
12812
ec6a6fbe
AK
12813as_nl='
12814'
12815export as_nl
12816# Printing a long string crashes Solaris 7 /usr/bin/printf.
12817as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12818as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12819as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12820if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12821 as_echo='printf %s\n'
12822 as_echo_n='printf %s'
12823else
12824 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12825 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12826 as_echo_n='/usr/ucb/echo -n'
68f2de6d 12827 else
ec6a6fbe
AK
12828 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12829 as_echo_n_body='eval
12830 arg=$1;
12831 case $arg in
12832 *"$as_nl"*)
12833 expr "X$arg" : "X\\(.*\\)$as_nl";
12834 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12835 esac;
12836 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12837 '
12838 export as_echo_n_body
12839 as_echo_n='sh -c $as_echo_n_body as_echo'
68f2de6d 12840 fi
ec6a6fbe
AK
12841 export as_echo_body
12842 as_echo='sh -c $as_echo_body as_echo'
12843fi
12844
12845# The user is always right.
12846if test "${PATH_SEPARATOR+set}" != set; then
12847 PATH_SEPARATOR=:
12848 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12849 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12850 PATH_SEPARATOR=';'
12851 }
ad6254c5
AK
12852fi
12853
12854# Support unset when possible.
8a2fc586 12855if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
ad6254c5
AK
12856 as_unset=unset
12857else
12858 as_unset=false
12859fi
8106cdd5 12860
ad6254c5 12861
7a197a62
AK
12862# IFS
12863# We need space, tab and new line, in precisely that order. Quoting is
12864# there to prevent editors from complaining about space-tab.
12865# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12866# splitting by setting IFS to empty value.)
7a197a62
AK
12867IFS=" "" $as_nl"
12868
12869# Find who we are. Look in the path if we contain no directory separator.
12870case $0 in
12871 *[\\/]* ) as_myself=$0 ;;
12872 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12873for as_dir in $PATH
12874do
12875 IFS=$as_save_IFS
12876 test -z "$as_dir" && as_dir=.
12877 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12878done
12879IFS=$as_save_IFS
12880
12881 ;;
12882esac
12883# We did not find ourselves, most probably we were run as `sh COMMAND'
12884# in which case we are not to be found in the path.
12885if test "x$as_myself" = x; then
12886 as_myself=$0
12887fi
12888if test ! -f "$as_myself"; then
ec6a6fbe 12889 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7a197a62
AK
12890 { (exit 1); exit 1; }
12891fi
12892
ad6254c5 12893# Work around bugs in pre-3.0 UWIN ksh.
7a197a62
AK
12894for as_var in ENV MAIL MAILPATH
12895do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12896done
ad6254c5
AK
12897PS1='$ '
12898PS2='> '
12899PS4='+ '
12900
12901# NLS nuisances.
ec6a6fbe
AK
12902LC_ALL=C
12903export LC_ALL
12904LANGUAGE=C
12905export LANGUAGE
8106cdd5 12906
ad6254c5 12907# Required to use basename.
7a197a62
AK
12908if expr a : '\(a\)' >/dev/null 2>&1 &&
12909 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
12910 as_expr=expr
12911else
12912 as_expr=false
12913fi
8106cdd5 12914
7a197a62 12915if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
ad6254c5
AK
12916 as_basename=basename
12917else
12918 as_basename=false
12919fi
12920
12921
12922# Name of the executable.
7a197a62 12923as_me=`$as_basename -- "$0" ||
ad6254c5
AK
12924$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12925 X"$0" : 'X\(//\)$' \| \
7a197a62 12926 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 12927$as_echo X/"$0" |
7a197a62
AK
12928 sed '/^.*\/\([^/][^/]*\)\/*$/{
12929 s//\1/
12930 q
12931 }
12932 /^X\/\(\/\/\)$/{
12933 s//\1/
12934 q
12935 }
12936 /^X\/\(\/\).*/{
12937 s//\1/
12938 q
12939 }
12940 s/.*/./; q'`
ad6254c5 12941
7a197a62
AK
12942# CDPATH.
12943$as_unset CDPATH
ad6254c5
AK
12944
12945
ad6254c5 12946
ad6254c5
AK
12947 as_lineno_1=$LINENO
12948 as_lineno_2=$LINENO
ad6254c5 12949 test "x$as_lineno_1" != "x$as_lineno_2" &&
7a197a62 12950 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
795ca3e5 12951
ad6254c5
AK
12952 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12953 # uniformly replaced by the line number. The first 'sed' inserts a
7a197a62
AK
12954 # line-number line after each line using $LINENO; the second 'sed'
12955 # does the real work. The second script uses 'N' to pair each
12956 # line-number line with the line containing $LINENO, and appends
12957 # trailing '-' during substitution so that $LINENO is not a special
12958 # case at line end.
ad6254c5 12959 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7a197a62
AK
12960 # scripts with optimization help from Paolo Bonzini. Blame Lee
12961 # E. McMahon (1931-1989) for sed's syntax. :-)
12962 sed -n '
12963 p
12964 /[$]LINENO/=
12965 ' <$as_myself |
ad6254c5 12966 sed '
7a197a62
AK
12967 s/[$]LINENO.*/&-/
12968 t lineno
12969 b
12970 :lineno
ad6254c5 12971 N
7a197a62
AK
12972 :loop
12973 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
ad6254c5 12974 t loop
7a197a62 12975 s/-\n.*//
ad6254c5 12976 ' >$as_me.lineno &&
7a197a62 12977 chmod +x "$as_me.lineno" ||
ec6a6fbe 12978 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
ad6254c5
AK
12979 { (exit 1); exit 1; }; }
12980
12981 # Don't try to exec as it changes $[0], causing all sort of problems
12982 # (the dirname of $[0] is not the place where we might find the
7a197a62
AK
12983 # original and so on. Autoconf is especially sensitive to this).
12984 . "./$as_me.lineno"
ad6254c5
AK
12985 # Exit status is that of the last command.
12986 exit
12987}
12988
12989
7a197a62
AK
12990if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12991 as_dirname=dirname
12992else
12993 as_dirname=false
12994fi
12995
12996ECHO_C= ECHO_N= ECHO_T=
12997case `echo -n x` in
12998-n*)
12999 case `echo 'x\c'` in
13000 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13001 *) ECHO_C='\c';;
13002 esac;;
13003*)
13004 ECHO_N='-n';;
ad6254c5 13005esac
7a197a62
AK
13006if expr a : '\(a\)' >/dev/null 2>&1 &&
13007 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
13008 as_expr=expr
13009else
13010 as_expr=false
13011fi
80992638 13012
ad6254c5 13013rm -f conf$$ conf$$.exe conf$$.file
7a197a62
AK
13014if test -d conf$$.dir; then
13015 rm -f conf$$.dir/conf$$.file
13016else
13017 rm -f conf$$.dir
ec6a6fbe
AK
13018 mkdir conf$$.dir 2>/dev/null
13019fi
13020if (echo >conf$$.file) 2>/dev/null; then
13021 if ln -s conf$$.file conf$$ 2>/dev/null; then
13022 as_ln_s='ln -s'
13023 # ... but there are two gotchas:
13024 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13025 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13026 # In both cases, we have to default to `cp -p'.
13027 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13028 as_ln_s='cp -p'
13029 elif ln conf$$.file conf$$ 2>/dev/null; then
13030 as_ln_s=ln
13031 else
ad6254c5 13032 as_ln_s='cp -p'
ec6a6fbe 13033 fi
ad6254c5
AK
13034else
13035 as_ln_s='cp -p'
13036fi
7a197a62
AK
13037rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13038rmdir conf$$.dir 2>/dev/null
8106cdd5 13039
ad6254c5
AK
13040if mkdir -p . 2>/dev/null; then
13041 as_mkdir_p=:
13042else
8a2fc586 13043 test -d ./-p && rmdir ./-p
ad6254c5
AK
13044 as_mkdir_p=false
13045fi
13046
25fbec5b
AK
13047if test -x / >/dev/null 2>&1; then
13048 as_test_x='test -x'
7a197a62 13049else
25fbec5b
AK
13050 if ls -dL / >/dev/null 2>&1; then
13051 as_ls_L_option=L
13052 else
13053 as_ls_L_option=
13054 fi
13055 as_test_x='
13056 eval sh -c '\''
13057 if test -d "$1"; then
ec6a6fbe 13058 test -d "$1/.";
25fbec5b
AK
13059 else
13060 case $1 in
ec6a6fbe 13061 -*)set "./$1";;
25fbec5b
AK
13062 esac;
13063 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
13064 ???[sx]*):;;*)false;;esac;fi
13065 '\'' sh
13066 '
7a197a62 13067fi
25fbec5b 13068as_executable_p=$as_test_x
ad6254c5
AK
13069
13070# Sed expression to map a string onto a valid CPP name.
8a2fc586 13071as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
13072
13073# Sed expression to map a string onto a valid variable name.
8a2fc586 13074as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
13075
13076
ad6254c5
AK
13077exec 6>&1
13078
7a197a62 13079# Save the log message, to keep $[0] and so on meaningful, and to
ad6254c5 13080# report actual input values of CONFIG_FILES etc. instead of their
7a197a62
AK
13081# values after options handling.
13082ac_log="
ad6254c5 13083This file was extended by $as_me, which was
ec6a6fbe 13084generated by GNU Autoconf 2.63. Invocation command line was
ad6254c5
AK
13085
13086 CONFIG_FILES = $CONFIG_FILES
13087 CONFIG_HEADERS = $CONFIG_HEADERS
13088 CONFIG_LINKS = $CONFIG_LINKS
13089 CONFIG_COMMANDS = $CONFIG_COMMANDS
13090 $ $0 $@
13091
7a197a62
AK
13092on `(hostname || uname -n) 2>/dev/null | sed 1q`
13093"
13094
ad6254c5
AK
13095_ACEOF
13096
ec6a6fbe
AK
13097case $ac_config_files in *"
13098"*) set x $ac_config_files; shift; ac_config_files=$*;;
13099esac
13100
13101case $ac_config_headers in *"
13102"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13103esac
13104
13105
13106cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5 13107# Files that config.status was made for.
68f2de6d
AK
13108config_files="$ac_config_files"
13109config_headers="$ac_config_headers"
ad6254c5 13110
7a197a62 13111_ACEOF
ad6254c5 13112
ec6a6fbe 13113cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ad6254c5
AK
13114ac_cs_usage="\
13115\`$as_me' instantiates files from templates according to the
13116current configuration.
13117
ec6a6fbe 13118Usage: $0 [OPTION]... [FILE]...
ad6254c5
AK
13119
13120 -h, --help print this help, then exit
25fbec5b 13121 -V, --version print version number and configuration settings, then exit
ec6a6fbe
AK
13122 -q, --quiet, --silent
13123 do not print progress messages
ad6254c5
AK
13124 -d, --debug don't remove temporary files
13125 --recheck update $as_me by reconfiguring in the same conditions
ec6a6fbe
AK
13126 --file=FILE[:TEMPLATE]
13127 instantiate the configuration file FILE
13128 --header=FILE[:TEMPLATE]
13129 instantiate the configuration header FILE
ad6254c5
AK
13130
13131Configuration files:
13132$config_files
13133
72b2cb61
AK
13134Configuration headers:
13135$config_headers
13136
ad6254c5 13137Report bugs to <bug-autoconf@gnu.org>."
ad6254c5 13138
7a197a62 13139_ACEOF
ec6a6fbe 13140cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5
AK
13141ac_cs_version="\\
13142config.status
ec6a6fbe
AK
13143configured by $0, generated by GNU Autoconf 2.63,
13144 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
ad6254c5 13145
ec6a6fbe 13146Copyright (C) 2008 Free Software Foundation, Inc.
ad6254c5
AK
13147This config.status script is free software; the Free Software Foundation
13148gives unlimited permission to copy, distribute and modify it."
7a197a62
AK
13149
13150ac_pwd='$ac_pwd'
13151srcdir='$srcdir'
13152INSTALL='$INSTALL'
fddafd51 13153MKDIR_P='$MKDIR_P'
ec6a6fbe
AK
13154AWK='$AWK'
13155test -n "\$AWK" || AWK=awk
ad6254c5
AK
13156_ACEOF
13157
ec6a6fbe
AK
13158cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13159# The default lists apply if the user does not specify any file.
ad6254c5
AK
13160ac_need_defaults=:
13161while test $# != 0
13162do
13163 case $1 in
13164 --*=*)
7a197a62
AK
13165 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13166 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
ad6254c5
AK
13167 ac_shift=:
13168 ;;
7a197a62 13169 *)
ad6254c5
AK
13170 ac_option=$1
13171 ac_optarg=$2
13172 ac_shift=shift
13173 ;;
ad6254c5
AK
13174 esac
13175
13176 case $ac_option in
13177 # Handling of the options.
ad6254c5
AK
13178 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13179 ac_cs_recheck=: ;;
7a197a62 13180 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
ec6a6fbe 13181 $as_echo "$ac_cs_version"; exit ;;
7a197a62 13182 --debug | --debu | --deb | --de | --d | -d )
ad6254c5
AK
13183 debug=: ;;
13184 --file | --fil | --fi | --f )
13185 $ac_shift
ec6a6fbe
AK
13186 case $ac_optarg in
13187 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13188 esac
13189 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
ad6254c5
AK
13190 ac_need_defaults=false;;
13191 --header | --heade | --head | --hea )
13192 $ac_shift
ec6a6fbe
AK
13193 case $ac_optarg in
13194 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13195 esac
13196 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
ad6254c5 13197 ac_need_defaults=false;;
7a197a62
AK
13198 --he | --h)
13199 # Conflict between --help and --header
ec6a6fbe 13200 { $as_echo "$as_me: error: ambiguous option: $1
7a197a62
AK
13201Try \`$0 --help' for more information." >&2
13202 { (exit 1); exit 1; }; };;
13203 --help | --hel | -h )
ec6a6fbe 13204 $as_echo "$ac_cs_usage"; exit ;;
ad6254c5
AK
13205 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13206 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13207 ac_cs_silent=: ;;
13208
13209 # This is an error.
ec6a6fbe 13210 -*) { $as_echo "$as_me: error: unrecognized option: $1
7a197a62 13211Try \`$0 --help' for more information." >&2
ad6254c5
AK
13212 { (exit 1); exit 1; }; } ;;
13213
7a197a62
AK
13214 *) ac_config_targets="$ac_config_targets $1"
13215 ac_need_defaults=false ;;
ad6254c5
AK
13216
13217 esac
13218 shift
13219done
13220
13221ac_configure_extra_args=
13222
13223if $ac_cs_silent; then
13224 exec 6>/dev/null
13225 ac_configure_extra_args="$ac_configure_extra_args --silent"
13226fi
13227
13228_ACEOF
ec6a6fbe 13229cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5 13230if \$ac_cs_recheck; then
ec6a6fbe
AK
13231 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13232 shift
13233 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13234 CONFIG_SHELL='$SHELL'
7a197a62 13235 export CONFIG_SHELL
ec6a6fbe 13236 exec "\$@"
ad6254c5
AK
13237fi
13238
13239_ACEOF
ec6a6fbe 13240cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
13241exec 5>>config.log
13242{
13243 echo
13244 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13245## Running $as_me. ##
13246_ASBOX
ec6a6fbe 13247 $as_echo "$ac_log"
7a197a62 13248} >&5
ad6254c5 13249
7a197a62 13250_ACEOF
ec6a6fbe 13251cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7a197a62 13252_ACEOF
ad6254c5 13253
ec6a6fbe 13254cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
13255
13256# Handling of arguments.
ad6254c5
AK
13257for ac_config_target in $ac_config_targets
13258do
7a197a62
AK
13259 case $ac_config_target in
13260 "lib/misc/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;;
13261 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13262 "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;;
13263 "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;;
13264 "daemons/clvmd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;;
93bd259b
AK
13265 "daemons/dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/Makefile" ;;
13266 "daemons/dmeventd/libdevmapper-event.pc") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/libdevmapper-event.pc" ;;
04f06bc9 13267 "daemons/dmeventd/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/Makefile" ;;
93bd259b
AK
13268 "daemons/dmeventd/plugins/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/mirror/Makefile" ;;
13269 "daemons/dmeventd/plugins/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/snapshot/Makefile" ;;
7a197a62 13270 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
93bd259b
AK
13271 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
13272 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
7a197a62
AK
13273 "lib/format1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;;
13274 "lib/format_pool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;;
13275 "lib/locking/Makefile") CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;;
13276 "lib/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;;
ec6a6fbe 13277 "lib/misc/lvm-version.h") CONFIG_FILES="$CONFIG_FILES lib/misc/lvm-version.h" ;;
7a197a62 13278 "lib/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;;
93bd259b
AK
13279 "libdm/Makefile") CONFIG_FILES="$CONFIG_FILES libdm/Makefile" ;;
13280 "libdm/libdevmapper.pc") CONFIG_FILES="$CONFIG_FILES libdm/libdevmapper.pc" ;;
13281 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
13282 "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
75ad7143 13283 "scripts/clvmd_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/clvmd_init_red_hat" ;;
7a197a62 13284 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
93bd259b 13285 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
c7e363f9 13286 "test/api/Makefile") CONFIG_FILES="$CONFIG_FILES test/api/Makefile" ;;
7a197a62 13287 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
7a197a62 13288
ec6a6fbe
AK
13289 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13290$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
ad6254c5 13291 { (exit 1); exit 1; }; };;
80992638 13292 esac
ad6254c5
AK
13293done
13294
7a197a62 13295
ad6254c5
AK
13296# If the user did not use the arguments to specify the items to instantiate,
13297# then the envvar interface is used. Set only those that are not.
13298# We use the long form for the default assignment because of an extremely
13299# bizarre bug on SunOS 4.1.3.
13300if $ac_need_defaults; then
13301 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
72b2cb61 13302 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
ad6254c5
AK
13303fi
13304
13305# Have a temporary directory for convenience. Make it in the build tree
7a197a62 13306# simply because there is no reason against having it here, and in addition,
ad6254c5 13307# creating and moving files from /tmp can sometimes cause problems.
7a197a62
AK
13308# Hook for its removal unless debugging.
13309# Note that there is a small window in which the directory will not be cleaned:
13310# after its creation but before its name has been assigned to `$tmp'.
ad6254c5
AK
13311$debug ||
13312{
7a197a62
AK
13313 tmp=
13314 trap 'exit_status=$?
13315 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13316' 0
ad6254c5
AK
13317 trap '{ (exit 1); exit 1; }' 1 2 13 15
13318}
ad6254c5
AK
13319# Create a (secure) tmp directory for tmp files.
13320
13321{
7a197a62 13322 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
ad6254c5
AK
13323 test -n "$tmp" && test -d "$tmp"
13324} ||
13325{
7a197a62
AK
13326 tmp=./conf$$-$RANDOM
13327 (umask 077 && mkdir "$tmp")
ad6254c5
AK
13328} ||
13329{
ec6a6fbe 13330 $as_echo "$as_me: cannot create a temporary directory in ." >&2
ad6254c5
AK
13331 { (exit 1); exit 1; }
13332}
13333
ec6a6fbe
AK
13334# Set up the scripts for CONFIG_FILES section.
13335# No need to generate them if there are no CONFIG_FILES.
13336# This happens for instance with `./config.status config.h'.
1995c9ff 13337if test -n "$CONFIG_FILES"; then
7a197a62 13338
68f2de6d 13339
ec6a6fbe
AK
13340ac_cr='\r'
13341ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13342if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13343 ac_cs_awk_cr='\\r'
13344else
13345 ac_cs_awk_cr=$ac_cr
1995c9ff 13346fi
7a197a62 13347
ec6a6fbe 13348echo 'BEGIN {' >"$tmp/subs1.awk" &&
1995c9ff 13349_ACEOF
7a197a62 13350
8106cdd5 13351
ec6a6fbe
AK
13352{
13353 echo "cat >conf$$subs.awk <<_ACEOF" &&
13354 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13355 echo "_ACEOF"
13356} >conf$$subs.sh ||
13357 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13358$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13359 { (exit 1); exit 1; }; }
13360ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
1995c9ff
AK
13361ac_delim='%!_!# '
13362for ac_last_try in false false false false false :; do
ec6a6fbe
AK
13363 . ./conf$$subs.sh ||
13364 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13365$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13366 { (exit 1); exit 1; }; }
13367
13368 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13369 if test $ac_delim_n = $ac_delim_num; then
1995c9ff
AK
13370 break
13371 elif $ac_last_try; then
ec6a6fbe
AK
13372 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13373$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
1995c9ff
AK
13374 { (exit 1); exit 1; }; }
13375 else
13376 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13377 fi
13378done
ec6a6fbe
AK
13379rm -f conf$$subs.sh
13380
13381cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13382cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13383_ACEOF
13384sed -n '
13385h
13386s/^/S["/; s/!.*/"]=/
13387p
13388g
13389s/^[^!]*!//
13390:repl
13391t repl
13392s/'"$ac_delim"'$//
13393t delim
13394:nl
13395h
13396s/\(.\{148\}\).*/\1/
13397t more1
13398s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13399p
13400n
13401b repl
13402:more1
13403s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13404p
13405g
13406s/.\{148\}//
13407t nl
13408:delim
13409h
13410s/\(.\{148\}\).*/\1/
13411t more2
13412s/["\\]/\\&/g; s/^/"/; s/$/"/
13413p
13414b
13415:more2
13416s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13417p
13418g
13419s/.\{148\}//
13420t delim
13421' <conf$$subs.awk | sed '
13422/^[^""]/{
13423 N
13424 s/\n//
13425}
13426' >>$CONFIG_STATUS || ac_write_fail=1
13427rm -f conf$$subs.awk
13428cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13429_ACAWK
13430cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13431 for (key in S) S_is_set[key] = 1
13432 FS = "\a"
7a197a62 13433
ec6a6fbe
AK
13434}
13435{
13436 line = $ 0
13437 nfields = split(line, field, "@")
13438 substed = 0
13439 len = length(field[1])
13440 for (i = 2; i < nfields; i++) {
13441 key = field[i]
13442 keylen = length(key)
13443 if (S_is_set[key]) {
13444 value = S[key]
13445 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13446 len += length(value) + length(field[++i])
13447 substed = 1
13448 } else
13449 len += 1 + keylen
13450 }
13451
13452 print line
13453}
fddafd51 13454
ec6a6fbe 13455_ACAWK
1995c9ff 13456_ACEOF
ec6a6fbe
AK
13457cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13458if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13459 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13460else
13461 cat
13462fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13463 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
13464$as_echo "$as_me: error: could not setup config files machinery" >&2;}
13465 { (exit 1); exit 1; }; }
7a197a62
AK
13466_ACEOF
13467
7a197a62
AK
13468# VPATH may cause trouble with some makes, so we remove $(srcdir),
13469# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13470# trailing colons and then remove the whole line if VPATH becomes empty
13471# (actually we leave an empty line to preserve line numbers).
13472if test "x$srcdir" = x.; then
13473 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13474s/:*\$(srcdir):*/:/
13475s/:*\${srcdir}:*/:/
13476s/:*@srcdir@:*/:/
13477s/^\([^=]*=[ ]*\):*/\1/
13478s/:*$//
13479s/^[^=]*=[ ]*$//
13480}'
13481fi
13482
ec6a6fbe 13483cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
13484fi # test -n "$CONFIG_FILES"
13485
ec6a6fbe
AK
13486# Set up the scripts for CONFIG_HEADERS section.
13487# No need to generate them if there are no CONFIG_HEADERS.
13488# This happens for instance with `./config.status Makefile'.
13489if test -n "$CONFIG_HEADERS"; then
13490cat >"$tmp/defines.awk" <<\_ACAWK ||
13491BEGIN {
13492_ACEOF
13493
13494# Transform confdefs.h into an awk script `defines.awk', embedded as
13495# here-document in config.status, that substitutes the proper values into
13496# config.h.in to produce config.h.
13497
13498# Create a delimiter string that does not exist in confdefs.h, to ease
13499# handling of long lines.
13500ac_delim='%!_!# '
13501for ac_last_try in false false :; do
13502 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
13503 if test -z "$ac_t"; then
13504 break
13505 elif $ac_last_try; then
13506 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
13507$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
13508 { (exit 1); exit 1; }; }
13509 else
13510 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13511 fi
13512done
13513
13514# For the awk script, D is an array of macro values keyed by name,
13515# likewise P contains macro parameters if any. Preserve backslash
13516# newline sequences.
13517
13518ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13519sed -n '
13520s/.\{148\}/&'"$ac_delim"'/g
13521t rset
13522:rset
13523s/^[ ]*#[ ]*define[ ][ ]*/ /
13524t def
13525d
13526:def
13527s/\\$//
13528t bsnl
13529s/["\\]/\\&/g
13530s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13531D["\1"]=" \3"/p
13532s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13533d
13534:bsnl
13535s/["\\]/\\&/g
13536s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13537D["\1"]=" \3\\\\\\n"\\/p
13538t cont
13539s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13540t cont
13541d
13542:cont
13543n
13544s/.\{148\}/&'"$ac_delim"'/g
13545t clear
13546:clear
13547s/\\$//
13548t bsnlc
13549s/["\\]/\\&/g; s/^/"/; s/$/"/p
13550d
13551:bsnlc
13552s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13553b cont
13554' <confdefs.h | sed '
13555s/'"$ac_delim"'/"\\\
13556"/g' >>$CONFIG_STATUS || ac_write_fail=1
13557
13558cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13559 for (key in D) D_is_set[key] = 1
13560 FS = "\a"
13561}
13562/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13563 line = \$ 0
13564 split(line, arg, " ")
13565 if (arg[1] == "#") {
13566 defundef = arg[2]
13567 mac1 = arg[3]
13568 } else {
13569 defundef = substr(arg[1], 2)
13570 mac1 = arg[2]
13571 }
13572 split(mac1, mac2, "(") #)
13573 macro = mac2[1]
13574 prefix = substr(line, 1, index(line, defundef) - 1)
13575 if (D_is_set[macro]) {
13576 # Preserve the white space surrounding the "#".
13577 print prefix "define", macro P[macro] D[macro]
13578 next
13579 } else {
13580 # Replace #undef with comments. This is necessary, for example,
13581 # in the case of _POSIX_SOURCE, which is predefined and required
13582 # on some systems where configure will not decide to define it.
13583 if (defundef == "undef") {
13584 print "/*", prefix defundef, macro, "*/"
13585 next
13586 }
13587 }
13588}
13589{ print }
13590_ACAWK
13591_ACEOF
13592cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13593 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
13594$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
13595 { (exit 1); exit 1; }; }
13596fi # test -n "$CONFIG_HEADERS"
13597
7a197a62 13598
ec6a6fbe
AK
13599eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
13600shift
13601for ac_tag
7a197a62
AK
13602do
13603 case $ac_tag in
13604 :[FHLC]) ac_mode=$ac_tag; continue;;
13605 esac
13606 case $ac_mode$ac_tag in
13607 :[FHL]*:*);;
ec6a6fbe
AK
13608 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
13609$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
7a197a62
AK
13610 { (exit 1); exit 1; }; };;
13611 :[FH]-) ac_tag=-:-;;
13612 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13613 esac
13614 ac_save_IFS=$IFS
13615 IFS=:
13616 set x $ac_tag
13617 IFS=$ac_save_IFS
13618 shift
13619 ac_file=$1
13620 shift
13621
13622 case $ac_mode in
13623 :L) ac_source=$1;;
13624 :[FH])
13625 ac_file_inputs=
13626 for ac_f
13627 do
13628 case $ac_f in
13629 -) ac_f="$tmp/stdin";;
13630 *) # Look for the file first in the build tree, then in the source tree
13631 # (if the path is not absolute). The absolute path cannot be DOS-style,
13632 # because $ac_f cannot contain `:'.
13633 test -f "$ac_f" ||
13634 case $ac_f in
13635 [\\/$]*) false;;
13636 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13637 esac ||
ec6a6fbe
AK
13638 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
13639$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
7a197a62
AK
13640 { (exit 1); exit 1; }; };;
13641 esac
ec6a6fbe
AK
13642 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13643 ac_file_inputs="$ac_file_inputs '$ac_f'"
7a197a62
AK
13644 done
13645
13646 # Let's still pretend it is `configure' which instantiates (i.e., don't
13647 # use $as_me), people would be surprised to read:
13648 # /* config.h. Generated by config.status. */
ec6a6fbe
AK
13649 configure_input='Generated from '`
13650 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13651 `' by configure.'
7a197a62
AK
13652 if test x"$ac_file" != x-; then
13653 configure_input="$ac_file. $configure_input"
ec6a6fbe
AK
13654 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
13655$as_echo "$as_me: creating $ac_file" >&6;}
7a197a62 13656 fi
ec6a6fbe
AK
13657 # Neutralize special characters interpreted by sed in replacement strings.
13658 case $configure_input in #(
13659 *\&* | *\|* | *\\* )
13660 ac_sed_conf_input=`$as_echo "$configure_input" |
13661 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13662 *) ac_sed_conf_input=$configure_input;;
13663 esac
7a197a62
AK
13664
13665 case $ac_tag in
ec6a6fbe
AK
13666 *:-:* | *:-) cat >"$tmp/stdin" \
13667 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13668$as_echo "$as_me: error: could not create $ac_file" >&2;}
13669 { (exit 1); exit 1; }; } ;;
7a197a62
AK
13670 esac
13671 ;;
80992638 13672 esac
8106cdd5 13673
7a197a62 13674 ac_dir=`$as_dirname -- "$ac_file" ||
ad6254c5 13675$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8a2fc586
AK
13676 X"$ac_file" : 'X\(//\)[^/]' \| \
13677 X"$ac_file" : 'X\(//\)$' \| \
7a197a62 13678 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 13679$as_echo X"$ac_file" |
7a197a62
AK
13680 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13681 s//\1/
13682 q
13683 }
13684 /^X\(\/\/\)[^/].*/{
13685 s//\1/
13686 q
13687 }
13688 /^X\(\/\/\)$/{
13689 s//\1/
13690 q
13691 }
13692 /^X\(\/\).*/{
13693 s//\1/
13694 q
13695 }
13696 s/.*/./; q'`
13697 { as_dir="$ac_dir"
13698 case $as_dir in #(
13699 -*) as_dir=./$as_dir;;
13700 esac
13701 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
ad6254c5 13702 as_dirs=
7a197a62
AK
13703 while :; do
13704 case $as_dir in #(
ec6a6fbe 13705 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7a197a62
AK
13706 *) as_qdir=$as_dir;;
13707 esac
13708 as_dirs="'$as_qdir' $as_dirs"
13709 as_dir=`$as_dirname -- "$as_dir" ||
ad6254c5 13710$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8a2fc586
AK
13711 X"$as_dir" : 'X\(//\)[^/]' \| \
13712 X"$as_dir" : 'X\(//\)$' \| \
7a197a62 13713 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 13714$as_echo X"$as_dir" |
7a197a62
AK
13715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13716 s//\1/
13717 q
13718 }
13719 /^X\(\/\/\)[^/].*/{
13720 s//\1/
13721 q
13722 }
13723 /^X\(\/\/\)$/{
13724 s//\1/
13725 q
13726 }
13727 /^X\(\/\).*/{
13728 s//\1/
13729 q
13730 }
13731 s/.*/./; q'`
13732 test -d "$as_dir" && break
ad6254c5 13733 done
7a197a62 13734 test -z "$as_dirs" || eval "mkdir $as_dirs"
ec6a6fbe
AK
13735 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
13736$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
ad6254c5 13737 { (exit 1); exit 1; }; }; }
ad6254c5
AK
13738 ac_builddir=.
13739
7a197a62
AK
13740case "$ac_dir" in
13741.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13742*)
ec6a6fbe 13743 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7a197a62 13744 # A ".." for each directory in $ac_dir_suffix.
ec6a6fbe 13745 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7a197a62
AK
13746 case $ac_top_builddir_sub in
13747 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13748 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13749 esac ;;
13750esac
13751ac_abs_top_builddir=$ac_pwd
13752ac_abs_builddir=$ac_pwd$ac_dir_suffix
13753# for backward compatibility:
13754ac_top_builddir=$ac_top_build_prefix
ad6254c5
AK
13755
13756case $srcdir in
7a197a62 13757 .) # We are building in place.
ad6254c5 13758 ac_srcdir=.
7a197a62
AK
13759 ac_top_srcdir=$ac_top_builddir_sub
13760 ac_abs_top_srcdir=$ac_pwd ;;
13761 [\\/]* | ?:[\\/]* ) # Absolute name.
ad6254c5 13762 ac_srcdir=$srcdir$ac_dir_suffix;
7a197a62
AK
13763 ac_top_srcdir=$srcdir
13764 ac_abs_top_srcdir=$srcdir ;;
13765 *) # Relative name.
13766 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13767 ac_top_srcdir=$ac_top_build_prefix$srcdir
13768 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
ad6254c5 13769esac
7a197a62 13770ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8a2fc586 13771
ad6254c5 13772
7a197a62
AK
13773 case $ac_mode in
13774 :F)
13775 #
13776 # CONFIG_FILE
13777 #
ad6254c5
AK
13778
13779 case $INSTALL in
13780 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7a197a62 13781 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
795ca3e5 13782 esac
fddafd51
ZK
13783 ac_MKDIR_P=$MKDIR_P
13784 case $MKDIR_P in
13785 [\\/$]* | ?:[\\/]* ) ;;
13786 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13787 esac
7a197a62 13788_ACEOF
795ca3e5 13789
ec6a6fbe 13790cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
13791# If the template does not know about datarootdir, expand it.
13792# FIXME: This hack should be removed a few years after 2.60.
13793ac_datarootdir_hack=; ac_datarootdir_seen=
13794
ec6a6fbe
AK
13795ac_sed_dataroot='
13796/datarootdir/ {
7a197a62
AK
13797 p
13798 q
13799}
13800/@datadir@/p
13801/@docdir@/p
13802/@infodir@/p
13803/@localedir@/p
13804/@mandir@/p
ec6a6fbe
AK
13805'
13806case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7a197a62
AK
13807*datarootdir*) ac_datarootdir_seen=yes;;
13808*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
ec6a6fbe
AK
13809 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13810$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
ad6254c5 13811_ACEOF
ec6a6fbe 13812cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7a197a62
AK
13813 ac_datarootdir_hack='
13814 s&@datadir@&$datadir&g
13815 s&@docdir@&$docdir&g
13816 s&@infodir@&$infodir&g
13817 s&@localedir@&$localedir&g
13818 s&@mandir@&$mandir&g
13819 s&\\\${datarootdir}&$datarootdir&g' ;;
13820esac
13821_ACEOF
13822
13823# Neutralize VPATH when `$srcdir' = `.'.
13824# Shell code in configure.ac might set extrasub.
13825# FIXME: do we really want to maintain this feature?
ec6a6fbe
AK
13826cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13827ac_sed_extra="$ac_vpsub
ad6254c5
AK
13828$extrasub
13829_ACEOF
ec6a6fbe 13830cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ad6254c5
AK
13831:t
13832/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
ec6a6fbe 13833s|@configure_input@|$ac_sed_conf_input|;t t
7a197a62 13834s&@top_builddir@&$ac_top_builddir_sub&;t t
ec6a6fbe 13835s&@top_build_prefix@&$ac_top_build_prefix&;t t
7a197a62
AK
13836s&@srcdir@&$ac_srcdir&;t t
13837s&@abs_srcdir@&$ac_abs_srcdir&;t t
13838s&@top_srcdir@&$ac_top_srcdir&;t t
13839s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13840s&@builddir@&$ac_builddir&;t t
13841s&@abs_builddir@&$ac_abs_builddir&;t t
13842s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13843s&@INSTALL@&$ac_INSTALL&;t t
fddafd51 13844s&@MKDIR_P@&$ac_MKDIR_P&;t t
7a197a62 13845$ac_datarootdir_hack
ec6a6fbe
AK
13846"
13847eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
13848 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13849$as_echo "$as_me: error: could not create $ac_file" >&2;}
13850 { (exit 1); exit 1; }; }
7a197a62
AK
13851
13852test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13853 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13854 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
ec6a6fbe 13855 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7a197a62 13856which seems to be undefined. Please make sure it is defined." >&5
ec6a6fbe 13857$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7a197a62
AK
13858which seems to be undefined. Please make sure it is defined." >&2;}
13859
13860 rm -f "$tmp/stdin"
72b2cb61 13861 case $ac_file in
ec6a6fbe
AK
13862 -) cat "$tmp/out" && rm -f "$tmp/out";;
13863 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
13864 esac \
13865 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13866$as_echo "$as_me: error: could not create $ac_file" >&2;}
13867 { (exit 1); exit 1; }; }
7a197a62
AK
13868 ;;
13869 :H)
13870 #
13871 # CONFIG_HEADER
13872 #
72b2cb61 13873 if test x"$ac_file" != x-; then
ec6a6fbe
AK
13874 {
13875 $as_echo "/* $configure_input */" \
13876 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
13877 } >"$tmp/config.h" \
13878 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13879$as_echo "$as_me: error: could not create $ac_file" >&2;}
13880 { (exit 1); exit 1; }; }
13881 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
13882 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13883$as_echo "$as_me: $ac_file is unchanged" >&6;}
72b2cb61 13884 else
ec6a6fbe
AK
13885 rm -f "$ac_file"
13886 mv "$tmp/config.h" "$ac_file" \
13887 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13888$as_echo "$as_me: error: could not create $ac_file" >&2;}
13889 { (exit 1); exit 1; }; }
72b2cb61
AK
13890 fi
13891 else
ec6a6fbe
AK
13892 $as_echo "/* $configure_input */" \
13893 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
13894 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
13895$as_echo "$as_me: error: could not create -" >&2;}
13896 { (exit 1); exit 1; }; }
72b2cb61 13897 fi
7a197a62
AK
13898 ;;
13899
13900
13901 esac
13902
13903done # for ac_tag
795ca3e5 13904
795ca3e5 13905
ad6254c5
AK
13906{ (exit 0); exit 0; }
13907_ACEOF
795ca3e5 13908chmod +x $CONFIG_STATUS
ad6254c5
AK
13909ac_clean_files=$ac_clean_files_save
13910
ec6a6fbe
AK
13911test $ac_write_fail = 0 ||
13912 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
13913$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
13914 { (exit 1); exit 1; }; }
13915
ad6254c5
AK
13916
13917# configure is writing to config.log, and then calls config.status.
13918# config.status does its own redirection, appending to config.log.
13919# Unfortunately, on DOS this fails, as config.log is still kept open
13920# by configure, so config.status won't be able to write to it; its
13921# output is simply discarded. So we exec the FD to /dev/null,
13922# effectively closing config.log, so it can be properly (re)opened and
13923# appended to by config.status. When coming back to configure, we
13924# need to make the FD available again.
13925if test "$no_create" != yes; then
13926 ac_cs_success=:
13927 ac_config_status_args=
13928 test "$silent" = yes &&
13929 ac_config_status_args="$ac_config_status_args --quiet"
13930 exec 5>/dev/null
13931 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13932 exec 5>>config.log
13933 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13934 # would make configure fail if this is the last instruction.
13935 $ac_cs_success || { (exit 1); exit 1; }
13936fi
ec6a6fbe
AK
13937if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13938 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13939$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13940fi
795ca3e5 13941
2dc95e1c
AK
13942
13943if test x$ODIRECT != xyes; then
ec6a6fbe
AK
13944 { $as_echo "$as_me:$LINENO: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5
13945$as_echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;}
2dc95e1c 13946fi
This page took 1.953736 seconds and 5 git commands to generate.