]> sourceware.org Git - lvm2.git/blame - configure
Removes -rdynamic from linking of lvm.static and dmeventd.static.
[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 641usrlibdir
a5f46f6a
AK
642udevdir
643udev_prefix
ec6a6fbe
AK
644tmpdir
645kernelvsn
646missingkernel
647kerneldir
648interface
0878503f 649UDEV_SYNC
a5f46f6a 650UDEV_RULES
ec6a6fbe
AK
651STATIC_LINK
652STATICDIR
653SNAPSHOTS
e1b8a236 654SELINUX_LIBS
539f4a77 655READLINE_LIBS
f30875db 656PTHREAD_LIBS
ec6a6fbe
AK
657POOL
658PKGCONFIG
659OWNER
660MIRRORS
661LVM_RELEASE_DATE
662LVM_RELEASE
663LVM_PATCHLEVEL
664LVM_MINOR
665LVM_MAJOR
bf456146 666LVM_LIBAPI
ec6a6fbe 667LVM_VERSION
ec6a6fbe
AK
668LVM1_FALLBACK
669LVM1
670LOCALEDIR
671LIB_SUFFIX
672LDDEPS
673JOBS
674INTL_PACKAGE
675INTL
676HAVE_SELINUX
677HAVE_REALTIME
678HAVE_LIBDL
679GROUP
680FSADM
681DM_LIB_PATCHLEVEL
682DM_LIB_VERSION
683DM_IOCTLS
684DM_DEVICE_UID
685DM_DEVICE_MODE
686DM_DEVICE_GID
687DM_COMPAT
688DMEVENTD
689DEVMAPPER
690DEBUG
691COPTIMISE_FLAG
e2997b73 692CONFDIR
ec6a6fbe
AK
693CMDLIB
694CLVMD
695CLUSTER
696CLDWHOLEARCHIVE
697CLDNOWHOLEARCHIVE
698CLDFLAGS
699BUILD_DMEVENTD
66fd4529 700BUILD_CMIRRORD
572fefeb 701APPLIB
ec6a6fbe
AK
702MODPROBE_CMD
703MSGFMT
704LVM2CMD_LIB
572fefeb 705LVM2APP_LIB
ec6a6fbe
AK
706GENHTML
707LCOV
90c80887
AK
708SACKPT_LIBS
709SACKPT_CFLAGS
a946372e
AK
710DLM_LIBS
711DLM_CFLAGS
e2997b73
AK
712CPG_LIBS
713CPG_CFLAGS
714CONFDB_LIBS
715CONFDB_CFLAGS
a946372e
AK
716SALCK_LIBS
717SALCK_CFLAGS
e2997b73
AK
718QUORUM_LIBS
719QUORUM_CFLAGS
a946372e
AK
720COROSYNC_LIBS
721COROSYNC_CFLAGS
722CMAN_LIBS
723CMAN_CFLAGS
724GULM_LIBS
725GULM_CFLAGS
726CCS_LIBS
727CCS_CFLAGS
728PKGCONFIGINIT_LIBS
729PKGCONFIGINIT_CFLAGS
e2997b73 730PKG_CONFIG
ec6a6fbe
AK
731POW_LIB
732LIBOBJS
733ALLOCA
734CSCOPE_CMD
735CFLOW_CMD
736RANLIB
737MKDIR_P
738SET_MAKE
739LN_S
740INSTALL_DATA
741INSTALL_SCRIPT
742INSTALL_PROGRAM
743EGREP
744GREP
745CPP
746OBJEXT
747EXEEXT
748ac_ct_CC
749CPPFLAGS
750LDFLAGS
751CFLAGS
752CC
753AWK
754SED
755target_os
756target_vendor
757target_cpu
758target
759host_os
760host_vendor
761host_cpu
762host
763build_os
764build_vendor
765build_cpu
766build
767target_alias
768host_alias
769build_alias
770LIBS
771ECHO_T
772ECHO_N
773ECHO_C
774DEFS
775mandir
776localedir
777libdir
778psdir
779pdfdir
780dvidir
781htmldir
782infodir
783docdir
784oldincludedir
785includedir
786localstatedir
787sharedstatedir
788sysconfdir
789datadir
790datarootdir
791libexecdir
792sbindir
793bindir
794program_transform_name
795prefix
796exec_prefix
797PACKAGE_BUGREPORT
798PACKAGE_STRING
799PACKAGE_VERSION
800PACKAGE_TARNAME
801PACKAGE_NAME
802PATH_SEPARATOR
803SHELL'
ad6254c5 804ac_subst_files=''
ec6a6fbe
AK
805ac_user_opts='
806enable_option_checking
807enable_static_link
808with_user
809with_group
810with_device_uid
811with_device_gid
812with_device_mode
813enable_lvm1_fallback
814with_lvm1
815with_pool
816with_cluster
817with_snapshots
818with_mirrors
819enable_readline
820enable_realtime
821with_clvmd
66fd4529
AK
822enable_cmirrord
823with_cmirrord_pidfile
ec6a6fbe
AK
824enable_debug
825with_optimisation
826enable_profiling
827enable_devmapper
a5f46f6a
AK
828enable_udev_sync
829enable_udev_rules
ec6a6fbe 830enable_compat
95eaa683 831enable_units_compat
ec6a6fbe
AK
832enable_ioctl
833enable_o_direct
572fefeb 834enable_applib
ec6a6fbe
AK
835enable_cmdlib
836enable_pkgconfig
837enable_fsadm
838enable_dmeventd
839enable_selinux
840enable_nls
841with_localedir
842with_confdir
843with_staticdir
844with_usrlibdir
845with_usrsbindir
a5f46f6a 846with_udev_prefix
78ce7acc 847with_udevdir
ec6a6fbe
AK
848with_dmeventd_pidfile
849with_dmeventd_path
850with_interface
851'
7a197a62
AK
852 ac_precious_vars='build_alias
853host_alias
854target_alias
855CC
856CFLAGS
857LDFLAGS
25fbec5b 858LIBS
7a197a62 859CPPFLAGS
e2997b73
AK
860CPP
861PKG_CONFIG
a946372e
AK
862PKGCONFIGINIT_CFLAGS
863PKGCONFIGINIT_LIBS
864CCS_CFLAGS
865CCS_LIBS
866GULM_CFLAGS
867GULM_LIBS
868CMAN_CFLAGS
869CMAN_LIBS
870COROSYNC_CFLAGS
871COROSYNC_LIBS
e2997b73
AK
872QUORUM_CFLAGS
873QUORUM_LIBS
a946372e
AK
874SALCK_CFLAGS
875SALCK_LIBS
e2997b73
AK
876CONFDB_CFLAGS
877CONFDB_LIBS
878CPG_CFLAGS
a946372e
AK
879CPG_LIBS
880DLM_CFLAGS
90c80887
AK
881DLM_LIBS
882SACKPT_CFLAGS
883SACKPT_LIBS'
7a197a62 884
795ca3e5
AK
885
886# Initialize some variables set by options.
ad6254c5
AK
887ac_init_help=
888ac_init_version=false
ec6a6fbe
AK
889ac_unrecognized_opts=
890ac_unrecognized_sep=
795ca3e5
AK
891# The variables have the same names as the options, with
892# dashes changed to underlines.
ad6254c5 893cache_file=/dev/null
795ca3e5 894exec_prefix=NONE
795ca3e5 895no_create=
795ca3e5
AK
896no_recursion=
897prefix=NONE
898program_prefix=NONE
899program_suffix=NONE
900program_transform_name=s,x,x,
901silent=
902site=
903srcdir=
795ca3e5
AK
904verbose=
905x_includes=NONE
906x_libraries=NONE
ad6254c5
AK
907
908# Installation directory options.
909# These are left unexpanded so users can "make install exec_prefix=/foo"
910# and all the variables that are supposed to be based on exec_prefix
911# by default will actually change.
912# Use braces instead of parens because sh, perl, etc. also accept them.
7a197a62 913# (The list follows the same order as the GNU Coding Standards.)
795ca3e5
AK
914bindir='${exec_prefix}/bin'
915sbindir='${exec_prefix}/sbin'
916libexecdir='${exec_prefix}/libexec'
7a197a62
AK
917datarootdir='${prefix}/share'
918datadir='${datarootdir}'
795ca3e5
AK
919sysconfdir='${prefix}/etc'
920sharedstatedir='${prefix}/com'
921localstatedir='${prefix}/var'
795ca3e5
AK
922includedir='${prefix}/include'
923oldincludedir='/usr/include'
7a197a62
AK
924docdir='${datarootdir}/doc/${PACKAGE}'
925infodir='${datarootdir}/info'
926htmldir='${docdir}'
927dvidir='${docdir}'
928pdfdir='${docdir}'
929psdir='${docdir}'
930libdir='${exec_prefix}/lib'
931localedir='${datarootdir}/locale'
932mandir='${datarootdir}/man'
795ca3e5 933
795ca3e5 934ac_prev=
7a197a62 935ac_dashdash=
795ca3e5
AK
936for ac_option
937do
795ca3e5
AK
938 # If the previous option needs an argument, assign it.
939 if test -n "$ac_prev"; then
7a197a62 940 eval $ac_prev=\$ac_option
795ca3e5
AK
941 ac_prev=
942 continue
943 fi
944
7a197a62
AK
945 case $ac_option in
946 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
947 *) ac_optarg=yes ;;
948 esac
795ca3e5
AK
949
950 # Accept the important Cygnus configure options, so we can diagnose typos.
951
7a197a62
AK
952 case $ac_dashdash$ac_option in
953 --)
954 ac_dashdash=yes ;;
795ca3e5
AK
955
956 -bindir | --bindir | --bindi | --bind | --bin | --bi)
957 ac_prev=bindir ;;
958 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
ad6254c5 959 bindir=$ac_optarg ;;
795ca3e5
AK
960
961 -build | --build | --buil | --bui | --bu)
ad6254c5 962 ac_prev=build_alias ;;
795ca3e5 963 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
ad6254c5 964 build_alias=$ac_optarg ;;
795ca3e5
AK
965
966 -cache-file | --cache-file | --cache-fil | --cache-fi \
967 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
968 ac_prev=cache_file ;;
969 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
970 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
ad6254c5
AK
971 cache_file=$ac_optarg ;;
972
973 --config-cache | -C)
974 cache_file=config.cache ;;
795ca3e5 975
7a197a62 976 -datadir | --datadir | --datadi | --datad)
795ca3e5 977 ac_prev=datadir ;;
7a197a62 978 -datadir=* | --datadir=* | --datadi=* | --datad=*)
ad6254c5 979 datadir=$ac_optarg ;;
795ca3e5 980
7a197a62
AK
981 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
982 | --dataroo | --dataro | --datar)
983 ac_prev=datarootdir ;;
984 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
985 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
986 datarootdir=$ac_optarg ;;
987
795ca3e5 988 -disable-* | --disable-*)
ec6a6fbe 989 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
795ca3e5 990 # Reject names that are not valid shell variable names.
ec6a6fbe
AK
991 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
992 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
ad6254c5 993 { (exit 1); exit 1; }; }
ec6a6fbe
AK
994 ac_useropt_orig=$ac_useropt
995 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
996 case $ac_user_opts in
997 *"
998"enable_$ac_useropt"
999"*) ;;
1000 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1001 ac_unrecognized_sep=', ';;
1002 esac
1003 eval enable_$ac_useropt=no ;;
7a197a62
AK
1004
1005 -docdir | --docdir | --docdi | --doc | --do)
1006 ac_prev=docdir ;;
1007 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1008 docdir=$ac_optarg ;;
1009
1010 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1011 ac_prev=dvidir ;;
1012 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1013 dvidir=$ac_optarg ;;
795ca3e5
AK
1014
1015 -enable-* | --enable-*)
ec6a6fbe 1016 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
795ca3e5 1017 # Reject names that are not valid shell variable names.
ec6a6fbe
AK
1018 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1019 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
ad6254c5 1020 { (exit 1); exit 1; }; }
ec6a6fbe
AK
1021 ac_useropt_orig=$ac_useropt
1022 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1023 case $ac_user_opts in
1024 *"
1025"enable_$ac_useropt"
1026"*) ;;
1027 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1028 ac_unrecognized_sep=', ';;
1029 esac
1030 eval enable_$ac_useropt=\$ac_optarg ;;
795ca3e5
AK
1031
1032 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1033 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1034 | --exec | --exe | --ex)
1035 ac_prev=exec_prefix ;;
1036 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1037 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1038 | --exec=* | --exe=* | --ex=*)
ad6254c5 1039 exec_prefix=$ac_optarg ;;
795ca3e5
AK
1040
1041 -gas | --gas | --ga | --g)
1042 # Obsolete; use --with-gas.
1043 with_gas=yes ;;
1044
ad6254c5
AK
1045 -help | --help | --hel | --he | -h)
1046 ac_init_help=long ;;
1047 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1048 ac_init_help=recursive ;;
1049 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1050 ac_init_help=short ;;
795ca3e5
AK
1051
1052 -host | --host | --hos | --ho)
ad6254c5 1053 ac_prev=host_alias ;;
795ca3e5 1054 -host=* | --host=* | --hos=* | --ho=*)
ad6254c5 1055 host_alias=$ac_optarg ;;
795ca3e5 1056
7a197a62
AK
1057 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1058 ac_prev=htmldir ;;
1059 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1060 | --ht=*)
1061 htmldir=$ac_optarg ;;
1062
795ca3e5
AK
1063 -includedir | --includedir | --includedi | --included | --include \
1064 | --includ | --inclu | --incl | --inc)
1065 ac_prev=includedir ;;
1066 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1067 | --includ=* | --inclu=* | --incl=* | --inc=*)
ad6254c5 1068 includedir=$ac_optarg ;;
795ca3e5
AK
1069
1070 -infodir | --infodir | --infodi | --infod | --info | --inf)
1071 ac_prev=infodir ;;
1072 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
ad6254c5 1073 infodir=$ac_optarg ;;
795ca3e5
AK
1074
1075 -libdir | --libdir | --libdi | --libd)
1076 ac_prev=libdir ;;
1077 -libdir=* | --libdir=* | --libdi=* | --libd=*)
ad6254c5 1078 libdir=$ac_optarg ;;
795ca3e5
AK
1079
1080 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1081 | --libexe | --libex | --libe)
1082 ac_prev=libexecdir ;;
1083 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1084 | --libexe=* | --libex=* | --libe=*)
ad6254c5 1085 libexecdir=$ac_optarg ;;
795ca3e5 1086
7a197a62
AK
1087 -localedir | --localedir | --localedi | --localed | --locale)
1088 ac_prev=localedir ;;
1089 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1090 localedir=$ac_optarg ;;
1091
795ca3e5 1092 -localstatedir | --localstatedir | --localstatedi | --localstated \
7a197a62 1093 | --localstate | --localstat | --localsta | --localst | --locals)
795ca3e5
AK
1094 ac_prev=localstatedir ;;
1095 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
7a197a62 1096 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
ad6254c5 1097 localstatedir=$ac_optarg ;;
795ca3e5
AK
1098
1099 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1100 ac_prev=mandir ;;
1101 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
ad6254c5 1102 mandir=$ac_optarg ;;
795ca3e5
AK
1103
1104 -nfp | --nfp | --nf)
1105 # Obsolete; use --without-fp.
1106 with_fp=no ;;
1107
1108 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
ad6254c5 1109 | --no-cr | --no-c | -n)
795ca3e5
AK
1110 no_create=yes ;;
1111
1112 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1113 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1114 no_recursion=yes ;;
1115
1116 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1117 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1118 | --oldin | --oldi | --old | --ol | --o)
1119 ac_prev=oldincludedir ;;
1120 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1121 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1122 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
ad6254c5 1123 oldincludedir=$ac_optarg ;;
795ca3e5
AK
1124
1125 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1126 ac_prev=prefix ;;
1127 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
ad6254c5 1128 prefix=$ac_optarg ;;
795ca3e5
AK
1129
1130 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1131 | --program-pre | --program-pr | --program-p)
1132 ac_prev=program_prefix ;;
1133 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1134 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
ad6254c5 1135 program_prefix=$ac_optarg ;;
795ca3e5
AK
1136
1137 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1138 | --program-suf | --program-su | --program-s)
1139 ac_prev=program_suffix ;;
1140 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1141 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
ad6254c5 1142 program_suffix=$ac_optarg ;;
795ca3e5
AK
1143
1144 -program-transform-name | --program-transform-name \
1145 | --program-transform-nam | --program-transform-na \
1146 | --program-transform-n | --program-transform- \
1147 | --program-transform | --program-transfor \
1148 | --program-transfo | --program-transf \
1149 | --program-trans | --program-tran \
1150 | --progr-tra | --program-tr | --program-t)
1151 ac_prev=program_transform_name ;;
1152 -program-transform-name=* | --program-transform-name=* \
1153 | --program-transform-nam=* | --program-transform-na=* \
1154 | --program-transform-n=* | --program-transform-=* \
1155 | --program-transform=* | --program-transfor=* \
1156 | --program-transfo=* | --program-transf=* \
1157 | --program-trans=* | --program-tran=* \
1158 | --progr-tra=* | --program-tr=* | --program-t=*)
ad6254c5 1159 program_transform_name=$ac_optarg ;;
795ca3e5 1160
7a197a62
AK
1161 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1162 ac_prev=pdfdir ;;
1163 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1164 pdfdir=$ac_optarg ;;
1165
1166 -psdir | --psdir | --psdi | --psd | --ps)
1167 ac_prev=psdir ;;
1168 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1169 psdir=$ac_optarg ;;
1170
795ca3e5
AK
1171 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1172 | -silent | --silent | --silen | --sile | --sil)
1173 silent=yes ;;
1174
1175 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1176 ac_prev=sbindir ;;
1177 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1178 | --sbi=* | --sb=*)
ad6254c5 1179 sbindir=$ac_optarg ;;
795ca3e5
AK
1180
1181 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1182 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1183 | --sharedst | --shareds | --shared | --share | --shar \
1184 | --sha | --sh)
1185 ac_prev=sharedstatedir ;;
1186 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1187 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1188 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1189 | --sha=* | --sh=*)
ad6254c5 1190 sharedstatedir=$ac_optarg ;;
795ca3e5
AK
1191
1192 -site | --site | --sit)
1193 ac_prev=site ;;
1194 -site=* | --site=* | --sit=*)
ad6254c5 1195 site=$ac_optarg ;;
795ca3e5
AK
1196
1197 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1198 ac_prev=srcdir ;;
1199 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
ad6254c5 1200 srcdir=$ac_optarg ;;
795ca3e5
AK
1201
1202 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1203 | --syscon | --sysco | --sysc | --sys | --sy)
1204 ac_prev=sysconfdir ;;
1205 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1206 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
ad6254c5 1207 sysconfdir=$ac_optarg ;;
795ca3e5
AK
1208
1209 -target | --target | --targe | --targ | --tar | --ta | --t)
ad6254c5 1210 ac_prev=target_alias ;;
795ca3e5 1211 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
ad6254c5 1212 target_alias=$ac_optarg ;;
795ca3e5
AK
1213
1214 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1215 verbose=yes ;;
1216
ad6254c5
AK
1217 -version | --version | --versio | --versi | --vers | -V)
1218 ac_init_version=: ;;
795ca3e5
AK
1219
1220 -with-* | --with-*)
ec6a6fbe 1221 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
795ca3e5 1222 # Reject names that are not valid shell variable names.
ec6a6fbe
AK
1223 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1224 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
ad6254c5 1225 { (exit 1); exit 1; }; }
ec6a6fbe
AK
1226 ac_useropt_orig=$ac_useropt
1227 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1228 case $ac_user_opts in
1229 *"
1230"with_$ac_useropt"
1231"*) ;;
1232 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1233 ac_unrecognized_sep=', ';;
1234 esac
1235 eval with_$ac_useropt=\$ac_optarg ;;
795ca3e5
AK
1236
1237 -without-* | --without-*)
ec6a6fbe 1238 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
795ca3e5 1239 # Reject names that are not valid shell variable names.
ec6a6fbe
AK
1240 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1241 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
ad6254c5 1242 { (exit 1); exit 1; }; }
ec6a6fbe
AK
1243 ac_useropt_orig=$ac_useropt
1244 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1245 case $ac_user_opts in
1246 *"
1247"with_$ac_useropt"
1248"*) ;;
1249 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1250 ac_unrecognized_sep=', ';;
1251 esac
1252 eval with_$ac_useropt=no ;;
795ca3e5
AK
1253
1254 --x)
1255 # Obsolete; use --with-x.
1256 with_x=yes ;;
1257
1258 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1259 | --x-incl | --x-inc | --x-in | --x-i)
1260 ac_prev=x_includes ;;
1261 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1262 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
ad6254c5 1263 x_includes=$ac_optarg ;;
795ca3e5
AK
1264
1265 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1266 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1267 ac_prev=x_libraries ;;
1268 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1269 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
ad6254c5 1270 x_libraries=$ac_optarg ;;
795ca3e5 1271
ec6a6fbe 1272 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
ad6254c5
AK
1273Try \`$0 --help' for more information." >&2
1274 { (exit 1); exit 1; }; }
795ca3e5
AK
1275 ;;
1276
ad6254c5
AK
1277 *=*)
1278 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1279 # Reject names that are not valid shell variable names.
1280 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
ec6a6fbe 1281 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
ad6254c5 1282 { (exit 1); exit 1; }; }
7a197a62 1283 eval $ac_envvar=\$ac_optarg
ad6254c5
AK
1284 export $ac_envvar ;;
1285
795ca3e5 1286 *)
ad6254c5 1287 # FIXME: should be removed in autoconf 3.0.
ec6a6fbe 1288 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
ad6254c5 1289 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
ec6a6fbe 1290 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
ad6254c5 1291 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
795ca3e5
AK
1292 ;;
1293
1294 esac
1295done
1296
1297if test -n "$ac_prev"; then
ad6254c5 1298 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
ec6a6fbe 1299 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
ad6254c5 1300 { (exit 1); exit 1; }; }
795ca3e5 1301fi
795ca3e5 1302
ec6a6fbe
AK
1303if test -n "$ac_unrecognized_opts"; then
1304 case $enable_option_checking in
1305 no) ;;
1306 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1307 { (exit 1); exit 1; }; } ;;
1308 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1309 esac
1310fi
1311
1312# Check all directory arguments for consistency.
7a197a62
AK
1313for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1314 datadir sysconfdir sharedstatedir localstatedir includedir \
1315 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1316 libdir localedir mandir
795ca3e5 1317do
7a197a62 1318 eval ac_val=\$$ac_var
ec6a6fbe
AK
1319 # Remove trailing slashes.
1320 case $ac_val in
1321 */ )
1322 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1323 eval $ac_var=\$ac_val;;
1324 esac
1325 # Be sure to have absolute directory names.
ad6254c5 1326 case $ac_val in
7a197a62
AK
1327 [\\/$]* | ?:[\\/]* ) continue;;
1328 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
795ca3e5 1329 esac
ec6a6fbe 1330 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
7a197a62 1331 { (exit 1); exit 1; }; }
795ca3e5
AK
1332done
1333
ad6254c5
AK
1334# There might be people who depend on the old broken behavior: `$host'
1335# used to hold the argument of --host etc.
1336# FIXME: To remove some day.
1337build=$build_alias
1338host=$host_alias
1339target=$target_alias
1340
1341# FIXME: To remove some day.
1342if test "x$host_alias" != x; then
1343 if test "x$build_alias" = x; then
1344 cross_compiling=maybe
ec6a6fbe 1345 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
ad6254c5
AK
1346 If a cross compiler is detected then cross compile mode will be used." >&2
1347 elif test "x$build_alias" != "x$host_alias"; then
1348 cross_compiling=yes
1349 fi
1350fi
8106cdd5 1351
ad6254c5
AK
1352ac_tool_prefix=
1353test -n "$host_alias" && ac_tool_prefix=$host_alias-
1354
1355test "$silent" = yes && exec 6>/dev/null
795ca3e5 1356
795ca3e5 1357
7a197a62
AK
1358ac_pwd=`pwd` && test -n "$ac_pwd" &&
1359ac_ls_di=`ls -di .` &&
1360ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
ec6a6fbe 1361 { $as_echo "$as_me: error: working directory cannot be determined" >&2
7a197a62
AK
1362 { (exit 1); exit 1; }; }
1363test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
ec6a6fbe 1364 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
7a197a62
AK
1365 { (exit 1); exit 1; }; }
1366
1367
795ca3e5
AK
1368# Find the source files, if location was not specified.
1369if test -z "$srcdir"; then
1370 ac_srcdir_defaulted=yes
7a197a62 1371 # Try the directory containing this script, then the parent directory.
ec6a6fbe
AK
1372 ac_confdir=`$as_dirname -- "$as_myself" ||
1373$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1374 X"$as_myself" : 'X\(//\)[^/]' \| \
1375 X"$as_myself" : 'X\(//\)$' \| \
1376 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1377$as_echo X"$as_myself" |
7a197a62
AK
1378 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1379 s//\1/
1380 q
1381 }
1382 /^X\(\/\/\)[^/].*/{
1383 s//\1/
1384 q
1385 }
1386 /^X\(\/\/\)$/{
1387 s//\1/
1388 q
1389 }
1390 /^X\(\/\).*/{
1391 s//\1/
1392 q
1393 }
1394 s/.*/./; q'`
795ca3e5 1395 srcdir=$ac_confdir
7a197a62 1396 if test ! -r "$srcdir/$ac_unique_file"; then
795ca3e5
AK
1397 srcdir=..
1398 fi
1399else
1400 ac_srcdir_defaulted=no
1401fi
7a197a62
AK
1402if test ! -r "$srcdir/$ac_unique_file"; then
1403 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
ec6a6fbe 1404 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
ad6254c5 1405 { (exit 1); exit 1; }; }
795ca3e5 1406fi
7a197a62
AK
1407ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1408ac_abs_confdir=`(
ec6a6fbe 1409 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
ad6254c5 1410 { (exit 1); exit 1; }; }
7a197a62
AK
1411 pwd)`
1412# When building in place, set srcdir=.
1413if test "$ac_abs_confdir" = "$ac_pwd"; then
1414 srcdir=.
1415fi
1416# Remove unnecessary trailing slashes from srcdir.
1417# Double slashes in file names in object file debugging info
1418# mess up M-x gdb in Emacs.
1419case $srcdir in
1420*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1421esac
1422for ac_var in $ac_precious_vars; do
1423 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1424 eval ac_env_${ac_var}_value=\$${ac_var}
1425 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1426 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1427done
ad6254c5
AK
1428
1429#
1430# Report the --help message.
1431#
1432if test "$ac_init_help" = "long"; then
1433 # Omit some internal or obsolete options to make the list less imposing.
1434 # This message is too long to be a string in the A/UX 3.1 sh.
1435 cat <<_ACEOF
1436\`configure' configures this package to adapt to many kinds of systems.
1437
1438Usage: $0 [OPTION]... [VAR=VALUE]...
1439
1440To assign environment variables (e.g., CC, CFLAGS...), specify them as
1441VAR=VALUE. See below for descriptions of some of the useful variables.
1442
1443Defaults for the options are specified in brackets.
1444
1445Configuration:
1446 -h, --help display this help and exit
1447 --help=short display options specific to this package
1448 --help=recursive display the short help of all the included packages
1449 -V, --version display version information and exit
1450 -q, --quiet, --silent do not print \`checking...' messages
1451 --cache-file=FILE cache test results in FILE [disabled]
1452 -C, --config-cache alias for \`--cache-file=config.cache'
1453 -n, --no-create do not create output files
1454 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1455
ad6254c5
AK
1456Installation directories:
1457 --prefix=PREFIX install architecture-independent files in PREFIX
ec6a6fbe 1458 [$ac_default_prefix]
ad6254c5 1459 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
ec6a6fbe 1460 [PREFIX]
ad6254c5
AK
1461
1462By default, \`make install' will install all the files in
1463\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1464an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1465for instance \`--prefix=\$HOME'.
1466
1467For better control, use the options below.
1468
1469Fine tuning of the installation directories:
ec6a6fbe
AK
1470 --bindir=DIR user executables [EPREFIX/bin]
1471 --sbindir=DIR system admin executables [EPREFIX/sbin]
1472 --libexecdir=DIR program executables [EPREFIX/libexec]
1473 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1474 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1475 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1476 --libdir=DIR object code libraries [EPREFIX/lib]
1477 --includedir=DIR C header files [PREFIX/include]
1478 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1479 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1480 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1481 --infodir=DIR info documentation [DATAROOTDIR/info]
1482 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1483 --mandir=DIR man documentation [DATAROOTDIR/man]
1484 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1485 --htmldir=DIR html documentation [DOCDIR]
1486 --dvidir=DIR dvi documentation [DOCDIR]
1487 --pdfdir=DIR pdf documentation [DOCDIR]
1488 --psdir=DIR ps documentation [DOCDIR]
ad6254c5
AK
1489_ACEOF
1490
1491 cat <<\_ACEOF
1492
1493System types:
1494 --build=BUILD configure for building on BUILD [guessed]
1495 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1496 --target=TARGET configure for building compilers for TARGET [HOST]
1497_ACEOF
1498fi
1499
1500if test -n "$ac_init_help"; then
1501
1502 cat <<\_ACEOF
1503
1504Optional Features:
ec6a6fbe 1505 --disable-option-checking ignore unrecognized --enable/--with options
ad6254c5
AK
1506 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1507 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
9c961554
MB
1508 --enable-static_link Use this to link the tools to their libraries
1509 statically. Default is dynamic linking
ad6254c5
AK
1510 --enable-lvm1_fallback Use this to fall back and use LVM1 binaries if
1511 device-mapper is missing from the kernel
1b523347 1512 --disable-readline Disable readline support
89044bc0 1513 --enable-realtime Enable realtime clock support
66fd4529 1514 --enable-cmirrord Enable the cluster mirror log daemon
ad6254c5 1515 --enable-debug Enable debugging
5556819a 1516 --enable-profiling Gather gcov profiling data
93bd259b 1517 --disable-devmapper Disable LVM2 device-mapper interaction
a5f46f6a
AK
1518 --enable-udev_sync Enable synchronisation with udev processing
1519 --enable-udev_rules Install rule files needed for udev synchronisation
93bd259b 1520 --enable-compat Enable support for old device-mapper versions
95eaa683
AK
1521 --enable-units-compat Enable output compatibility with old versions that
1522 that don't use KiB-style unit suffixes
93bd259b 1523 --disable-driver Disable calls to device-mapper in the kernel
ad6254c5 1524 --disable-o_direct Disable O_DIRECT
572fefeb 1525 --enable-applib Build application library
ad6254c5 1526 --enable-cmdlib Build shared command library
93bd259b 1527 --enable-pkgconfig Install pkgconfig support
c9274524 1528 --disable-fsadm Disable fsadm
15d91f5a 1529 --enable-dmeventd Enable the device-mapper event daemon
d0191583 1530 --disable-selinux Disable selinux support
ad6254c5
AK
1531 --enable-nls Enable Native Language Support
1532
1533Optional Packages:
1534 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1535 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
39dabc84
FDN
1536 --with-user=USER Set the owner of installed files [USER=]
1537 --with-group=GROUP Set the group owner of installed files [GROUP=]
24bbc4d7
AK
1538 --with-device-uid=UID Set the owner used for new device nodes [UID=0]
1539 --with-device-gid=UID Set the group used for new device nodes [GID=0]
93bd259b 1540 --with-device-mode=MODE Set the mode used for new device nodes [MODE=0600]
ad6254c5
AK
1541 --with-lvm1=TYPE LVM1 metadata support: internal/shared/none
1542 TYPE=internal
1543 --with-pool=TYPE GFS pool read-only support: internal/shared/none
1544 TYPE=internal
1545 --with-cluster=TYPE Cluster LVM locking support: internal/shared/none
1546 TYPE=internal
1547 --with-snapshots=TYPE Snapshot support: internal/shared/none
1548 TYPE=internal
1549 --with-mirrors=TYPE Mirror support: internal/shared/none
1550 TYPE=internal
a946372e 1551 --with-clvmd=TYPE Build cluster LVM Daemon.
8c222979 1552 The following cluster manager combinations are valid:
a946372e
AK
1553 * cman,gulm (RHEL4 or equivalent)
1554 * cman (RHEL5 or equivalent)
1555 * cman,corosync,openais (or selection of them)
1556 * all (autodetect)
1557 * none (disable build)
a266258f 1558 TYPE=none
66fd4529 1559 --with-cmirrord-pidfile=PATH cmirrord pidfile [/var/run/cmirrord.pid]
d0191583
JM
1560 --with-optimisation=OPT C optimisation flag [OPT=-O2]
1561 --with-localedir=DIR Translation files in DIR [PREFIX/share/locale]
a5f46f6a
AK
1562 --with-confdir=DIR Configuration files in DIR [/etc]
1563 --with-staticdir=DIR Static binary in DIR [EPREFIX/sbin]
68f2de6d
AK
1564 --with-usrlibdir=DIR
1565 --with-usrsbindir=DIR
a5f46f6a 1566 --with-udev-prefix=UPREFIX Install udev rule files in UPREFIX [EPREFIX]
78ce7acc 1567 --with-udevdir=DIR udev rules in DIR [UPREFIX/lib/udev/rules.d]
93bd259b 1568 --with-dmeventd-pidfile=PATH dmeventd pidfile [/var/run/dmeventd.pid]
a5f46f6a 1569 --with-dmeventd-path=PATH dmeventd path [EPREFIX/sbin/dmeventd]
93bd259b 1570 --with-interface=IFACE Choose kernel interface (ioctl) [ioctl]
ad6254c5
AK
1571
1572Some influential environment variables:
1573 CC C compiler command
1574 CFLAGS C compiler flags
1575 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1576 nonstandard directory <lib dir>
25fbec5b 1577 LIBS libraries to pass to the linker, e.g. -l<library>
7a197a62
AK
1578 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1579 you have headers in a nonstandard directory <include dir>
ad6254c5 1580 CPP C preprocessor
e2997b73 1581 PKG_CONFIG path to pkg-config utility
a946372e
AK
1582 PKGCONFIGINIT_CFLAGS
1583 C compiler flags for PKGCONFIGINIT, overriding pkg-config
1584 PKGCONFIGINIT_LIBS
1585 linker flags for PKGCONFIGINIT, overriding pkg-config
1586 CCS_CFLAGS C compiler flags for CCS, overriding pkg-config
1587 CCS_LIBS linker flags for CCS, overriding pkg-config
1588 GULM_CFLAGS C compiler flags for GULM, overriding pkg-config
1589 GULM_LIBS linker flags for GULM, overriding pkg-config
1590 CMAN_CFLAGS C compiler flags for CMAN, overriding pkg-config
1591 CMAN_LIBS linker flags for CMAN, overriding pkg-config
1592 COROSYNC_CFLAGS
1593 C compiler flags for COROSYNC, overriding pkg-config
1594 COROSYNC_LIBS
1595 linker flags for COROSYNC, overriding pkg-config
e2997b73
AK
1596 QUORUM_CFLAGS
1597 C compiler flags for QUORUM, overriding pkg-config
1598 QUORUM_LIBS linker flags for QUORUM, overriding pkg-config
a946372e
AK
1599 SALCK_CFLAGS
1600 C compiler flags for SALCK, overriding pkg-config
1601 SALCK_LIBS linker flags for SALCK, overriding pkg-config
e2997b73
AK
1602 CONFDB_CFLAGS
1603 C compiler flags for CONFDB, overriding pkg-config
1604 CONFDB_LIBS linker flags for CONFDB, overriding pkg-config
1605 CPG_CFLAGS C compiler flags for CPG, overriding pkg-config
1606 CPG_LIBS linker flags for CPG, overriding pkg-config
a946372e
AK
1607 DLM_CFLAGS C compiler flags for DLM, overriding pkg-config
1608 DLM_LIBS linker flags for DLM, overriding pkg-config
90c80887
AK
1609 SACKPT_CFLAGS
1610 C compiler flags for SACKPT, overriding pkg-config
1611 SACKPT_LIBS linker flags for SACKPT, overriding pkg-config
ad6254c5
AK
1612
1613Use these variables to override the choices made by `configure' or to help
1614it to find libraries and programs with nonstandard names/locations.
1615
1616_ACEOF
7a197a62 1617ac_status=$?
ad6254c5
AK
1618fi
1619
1620if test "$ac_init_help" = "recursive"; then
1621 # If there are subdirs, report their specific --help.
ad6254c5 1622 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
ec6a6fbe
AK
1623 test -d "$ac_dir" ||
1624 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1625 continue
ad6254c5
AK
1626 ac_builddir=.
1627
7a197a62
AK
1628case "$ac_dir" in
1629.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1630*)
ec6a6fbe 1631 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7a197a62 1632 # A ".." for each directory in $ac_dir_suffix.
ec6a6fbe 1633 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7a197a62
AK
1634 case $ac_top_builddir_sub in
1635 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1636 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1637 esac ;;
1638esac
1639ac_abs_top_builddir=$ac_pwd
1640ac_abs_builddir=$ac_pwd$ac_dir_suffix
1641# for backward compatibility:
1642ac_top_builddir=$ac_top_build_prefix
ad6254c5
AK
1643
1644case $srcdir in
7a197a62 1645 .) # We are building in place.
ad6254c5 1646 ac_srcdir=.
7a197a62
AK
1647 ac_top_srcdir=$ac_top_builddir_sub
1648 ac_abs_top_srcdir=$ac_pwd ;;
1649 [\\/]* | ?:[\\/]* ) # Absolute name.
ad6254c5 1650 ac_srcdir=$srcdir$ac_dir_suffix;
7a197a62
AK
1651 ac_top_srcdir=$srcdir
1652 ac_abs_top_srcdir=$srcdir ;;
1653 *) # Relative name.
1654 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1655 ac_top_srcdir=$ac_top_build_prefix$srcdir
1656 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8a2fc586 1657esac
7a197a62
AK
1658ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1659
1660 cd "$ac_dir" || { ac_status=$?; continue; }
1661 # Check for guested configure.
1662 if test -f "$ac_srcdir/configure.gnu"; then
1663 echo &&
1664 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1665 elif test -f "$ac_srcdir/configure"; then
1666 echo &&
1667 $SHELL "$ac_srcdir/configure" --help=recursive
ad6254c5 1668 else
ec6a6fbe 1669 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
7a197a62
AK
1670 fi || ac_status=$?
1671 cd "$ac_pwd" || { ac_status=$?; break; }
ad6254c5
AK
1672 done
1673fi
1674
7a197a62 1675test -n "$ac_init_help" && exit $ac_status
ad6254c5
AK
1676if $ac_init_version; then
1677 cat <<\_ACEOF
7a197a62 1678configure
ec6a6fbe 1679generated by GNU Autoconf 2.63
ad6254c5 1680
7a197a62 1681Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
ec6a6fbe 16822002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
ad6254c5
AK
1683This configure script is free software; the Free Software Foundation
1684gives unlimited permission to copy, distribute and modify it.
1685_ACEOF
7a197a62 1686 exit
ad6254c5 1687fi
7a197a62 1688cat >config.log <<_ACEOF
ad6254c5
AK
1689This file contains any messages produced by compilers while
1690running configure, to aid debugging if configure makes a mistake.
1691
1692It was created by $as_me, which was
ec6a6fbe 1693generated by GNU Autoconf 2.63. Invocation command line was
ad6254c5
AK
1694
1695 $ $0 $@
1696
1697_ACEOF
7a197a62 1698exec 5>>config.log
ad6254c5
AK
1699{
1700cat <<_ASUNAME
1701## --------- ##
1702## Platform. ##
1703## --------- ##
1704
1705hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1706uname -m = `(uname -m) 2>/dev/null || echo unknown`
1707uname -r = `(uname -r) 2>/dev/null || echo unknown`
1708uname -s = `(uname -s) 2>/dev/null || echo unknown`
1709uname -v = `(uname -v) 2>/dev/null || echo unknown`
1710
1711/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1712/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1713
1714/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1715/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1716/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
7a197a62 1717/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
ad6254c5
AK
1718/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1719/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1720/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1721
1722_ASUNAME
1723
1724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1725for as_dir in $PATH
1726do
1727 IFS=$as_save_IFS
1728 test -z "$as_dir" && as_dir=.
ec6a6fbe 1729 $as_echo "PATH: $as_dir"
ad6254c5 1730done
7a197a62 1731IFS=$as_save_IFS
ad6254c5
AK
1732
1733} >&5
1734
1735cat >&5 <<_ACEOF
1736
1737
1738## ----------- ##
1739## Core tests. ##
1740## ----------- ##
1741
1742_ACEOF
1743
1744
1745# Keep a trace of the command line.
1746# Strip out --no-create and --no-recursion so they do not pile up.
1747# Strip out --silent because we don't want to record it for future runs.
1748# Also quote any args containing shell meta-characters.
1749# Make two passes to allow for proper duplicate-argument suppression.
1750ac_configure_args=
1751ac_configure_args0=
1752ac_configure_args1=
ad6254c5
AK
1753ac_must_keep_next=false
1754for ac_pass in 1 2
1755do
1756 for ac_arg
1757 do
1758 case $ac_arg in
1759 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1760 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1761 | -silent | --silent | --silen | --sile | --sil)
1762 continue ;;
7a197a62 1763 *\'*)
ec6a6fbe 1764 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
ad6254c5
AK
1765 esac
1766 case $ac_pass in
1767 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1768 2)
1769 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1770 if test $ac_must_keep_next = true; then
8a2fc586 1771 ac_must_keep_next=false # Got value, back to normal.
ad6254c5 1772 else
8a2fc586
AK
1773 case $ac_arg in
1774 *=* | --config-cache | -C | -disable-* | --disable-* \
1775 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1776 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1777 | -with-* | --with-* | -without-* | --without-* | --x)
1778 case "$ac_configure_args0 " in
1779 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1780 esac
1781 ;;
1782 -* ) ac_must_keep_next=true ;;
1783 esac
ad6254c5 1784 fi
7a197a62 1785 ac_configure_args="$ac_configure_args '$ac_arg'"
ad6254c5
AK
1786 ;;
1787 esac
1788 done
1789done
1790$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1791$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1792
1793# When interrupted or exit'd, cleanup temporary files, and complete
1794# config.log. We remove comments because anyway the quotes in there
1795# would cause problems or look ugly.
7a197a62
AK
1796# WARNING: Use '\'' to represent an apostrophe within the trap.
1797# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
ad6254c5
AK
1798trap 'exit_status=$?
1799 # Save into config.log some information that might help in debugging.
1800 {
1801 echo
1802
1803 cat <<\_ASBOX
1804## ---------------- ##
1805## Cache variables. ##
1806## ---------------- ##
1807_ASBOX
1808 echo
1809 # The following way of writing the cache mishandles newlines in values,
7a197a62
AK
1810(
1811 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1812 eval ac_val=\$$ac_var
1813 case $ac_val in #(
1814 *${as_nl}*)
1815 case $ac_var in #(
ec6a6fbe
AK
1816 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1817$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7a197a62
AK
1818 esac
1819 case $ac_var in #(
1820 _ | IFS | as_nl) ;; #(
ec6a6fbe 1821 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7a197a62
AK
1822 *) $as_unset $ac_var ;;
1823 esac ;;
1824 esac
1825 done
ad6254c5 1826 (set) 2>&1 |
7a197a62
AK
1827 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1828 *${as_nl}ac_space=\ *)
ad6254c5 1829 sed -n \
7a197a62
AK
1830 "s/'\''/'\''\\\\'\'''\''/g;
1831 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1832 ;; #(
ad6254c5 1833 *)
7a197a62 1834 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
ad6254c5 1835 ;;
7a197a62
AK
1836 esac |
1837 sort
1838)
ad6254c5
AK
1839 echo
1840
1841 cat <<\_ASBOX
1842## ----------------- ##
1843## Output variables. ##
1844## ----------------- ##
1845_ASBOX
1846 echo
1847 for ac_var in $ac_subst_vars
1848 do
7a197a62
AK
1849 eval ac_val=\$$ac_var
1850 case $ac_val in
ec6a6fbe 1851 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
7a197a62 1852 esac
ec6a6fbe 1853 $as_echo "$ac_var='\''$ac_val'\''"
ad6254c5
AK
1854 done | sort
1855 echo
1856
1857 if test -n "$ac_subst_files"; then
1858 cat <<\_ASBOX
7a197a62
AK
1859## ------------------- ##
1860## File substitutions. ##
1861## ------------------- ##
ad6254c5
AK
1862_ASBOX
1863 echo
1864 for ac_var in $ac_subst_files
1865 do
7a197a62
AK
1866 eval ac_val=\$$ac_var
1867 case $ac_val in
ec6a6fbe 1868 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
7a197a62 1869 esac
ec6a6fbe 1870 $as_echo "$ac_var='\''$ac_val'\''"
ad6254c5
AK
1871 done | sort
1872 echo
1873 fi
1874
1875 if test -s confdefs.h; then
1876 cat <<\_ASBOX
1877## ----------- ##
1878## confdefs.h. ##
1879## ----------- ##
1880_ASBOX
1881 echo
7a197a62 1882 cat confdefs.h
ad6254c5
AK
1883 echo
1884 fi
1885 test "$ac_signal" != 0 &&
ec6a6fbe
AK
1886 $as_echo "$as_me: caught signal $ac_signal"
1887 $as_echo "$as_me: exit $exit_status"
ad6254c5 1888 } >&5
7a197a62
AK
1889 rm -f core *.core core.conftest.* &&
1890 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
ad6254c5 1891 exit $exit_status
7a197a62 1892' 0
ad6254c5
AK
1893for ac_signal in 1 2 13 15; do
1894 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1895done
1896ac_signal=0
1897
1898# confdefs.h avoids OS command line length limits that DEFS can exceed.
7a197a62 1899rm -f -r conftest* confdefs.h
ad6254c5
AK
1900
1901# Predefined preprocessor variables.
1902
1903cat >>confdefs.h <<_ACEOF
1904#define PACKAGE_NAME "$PACKAGE_NAME"
1905_ACEOF
1906
1907
1908cat >>confdefs.h <<_ACEOF
1909#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1910_ACEOF
1911
1912
1913cat >>confdefs.h <<_ACEOF
1914#define PACKAGE_VERSION "$PACKAGE_VERSION"
1915_ACEOF
8106cdd5 1916
ad6254c5
AK
1917
1918cat >>confdefs.h <<_ACEOF
1919#define PACKAGE_STRING "$PACKAGE_STRING"
1920_ACEOF
1921
1922
1923cat >>confdefs.h <<_ACEOF
1924#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1925_ACEOF
1926
1927
1928# Let the site file select an alternate cache file if it wants to.
ec6a6fbe
AK
1929# Prefer an explicitly selected file to automatically selected ones.
1930ac_site_file1=NONE
1931ac_site_file2=NONE
7a197a62 1932if test -n "$CONFIG_SITE"; then
ec6a6fbe 1933 ac_site_file1=$CONFIG_SITE
7a197a62 1934elif test "x$prefix" != xNONE; then
ec6a6fbe
AK
1935 ac_site_file1=$prefix/share/config.site
1936 ac_site_file2=$prefix/etc/config.site
7a197a62 1937else
ec6a6fbe
AK
1938 ac_site_file1=$ac_default_prefix/share/config.site
1939 ac_site_file2=$ac_default_prefix/etc/config.site
795ca3e5 1940fi
ec6a6fbe 1941for ac_site_file in "$ac_site_file1" "$ac_site_file2"
7a197a62 1942do
ec6a6fbe 1943 test "x$ac_site_file" = xNONE && continue
795ca3e5 1944 if test -r "$ac_site_file"; then
ec6a6fbe
AK
1945 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1946$as_echo "$as_me: loading site script $ac_site_file" >&6;}
ad6254c5 1947 sed 's/^/| /' "$ac_site_file" >&5
795ca3e5
AK
1948 . "$ac_site_file"
1949 fi
1950done
1951
1952if test -r "$cache_file"; then
ad6254c5
AK
1953 # Some versions of bash will fail to source /dev/null (special
1954 # files actually), so we avoid doing that.
1955 if test -f "$cache_file"; then
ec6a6fbe
AK
1956 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1957$as_echo "$as_me: loading cache $cache_file" >&6;}
ad6254c5 1958 case $cache_file in
7a197a62
AK
1959 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1960 *) . "./$cache_file";;
ad6254c5
AK
1961 esac
1962 fi
795ca3e5 1963else
ec6a6fbe
AK
1964 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1965$as_echo "$as_me: creating cache $cache_file" >&6;}
ad6254c5
AK
1966 >$cache_file
1967fi
1968
1969# Check that the precious variables saved in the cache have kept the same
1970# value.
1971ac_cache_corrupted=false
7a197a62 1972for ac_var in $ac_precious_vars; do
ad6254c5
AK
1973 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1974 eval ac_new_set=\$ac_env_${ac_var}_set
7a197a62
AK
1975 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1976 eval ac_new_val=\$ac_env_${ac_var}_value
ad6254c5
AK
1977 case $ac_old_set,$ac_new_set in
1978 set,)
ec6a6fbe
AK
1979 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1980$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
ad6254c5
AK
1981 ac_cache_corrupted=: ;;
1982 ,set)
ec6a6fbe
AK
1983 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1984$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
ad6254c5
AK
1985 ac_cache_corrupted=: ;;
1986 ,);;
1987 *)
1988 if test "x$ac_old_val" != "x$ac_new_val"; then
ec6a6fbe
AK
1989 # differences in whitespace do not lead to failure.
1990 ac_old_val_w=`echo x $ac_old_val`
1991 ac_new_val_w=`echo x $ac_new_val`
1992 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1993 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1994$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1995 ac_cache_corrupted=:
1996 else
1997 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1998$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1999 eval $ac_var=\$ac_old_val
2000 fi
2001 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2002$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2003 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2004$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
ad6254c5
AK
2005 fi;;
2006 esac
2007 # Pass precious variables to config.status.
2008 if test "$ac_new_set" = set; then
2009 case $ac_new_val in
ec6a6fbe 2010 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
ad6254c5
AK
2011 *) ac_arg=$ac_var=$ac_new_val ;;
2012 esac
2013 case " $ac_configure_args " in
2014 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2015 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2016 esac
2017 fi
2018done
2019if $ac_cache_corrupted; then
ec6a6fbe
AK
2020 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2021$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2022 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2023$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2024 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2025$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
ad6254c5 2026 { (exit 1); exit 1; }; }
795ca3e5
AK
2027fi
2028
ad6254c5
AK
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
7a197a62
AK
2045ac_ext=c
2046ac_cpp='$CPP $CPPFLAGS'
2047ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2048ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2049ac_compiler_gnu=$ac_cv_c_compiler_gnu
ad6254c5 2050
795ca3e5
AK
2051
2052
7a197a62 2053ac_config_headers="$ac_config_headers lib/misc/configure.h"
72b2cb61
AK
2054
2055
80992638 2056################################################################################
795ca3e5 2057ac_aux_dir=
7a197a62
AK
2058for ac_dir in autoconf "$srcdir"/autoconf; do
2059 if test -f "$ac_dir/install-sh"; then
795ca3e5
AK
2060 ac_aux_dir=$ac_dir
2061 ac_install_sh="$ac_aux_dir/install-sh -c"
2062 break
7a197a62 2063 elif test -f "$ac_dir/install.sh"; then
795ca3e5
AK
2064 ac_aux_dir=$ac_dir
2065 ac_install_sh="$ac_aux_dir/install.sh -c"
2066 break
7a197a62 2067 elif test -f "$ac_dir/shtool"; then
ad6254c5
AK
2068 ac_aux_dir=$ac_dir
2069 ac_install_sh="$ac_aux_dir/shtool install -c"
2070 break
795ca3e5
AK
2071 fi
2072done
2073if test -z "$ac_aux_dir"; then
ec6a6fbe
AK
2074 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2075$as_echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
ad6254c5 2076 { (exit 1); exit 1; }; }
795ca3e5 2077fi
7a197a62
AK
2078
2079# These three variables are undocumented and unsupported,
2080# and are intended to be withdrawn in a future Autoconf release.
2081# They can cause serious problems if a builder's source tree is in a directory
2082# whose full name contains unusual characters.
2083ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2084ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2085ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2086
8ce0cbda
AK
2087
2088
ad6254c5 2089################################################################################
8ce0cbda 2090# Make sure we can run config.sub.
7a197a62 2091$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
ec6a6fbe
AK
2092 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2093$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
ad6254c5
AK
2094 { (exit 1); exit 1; }; }
2095
ec6a6fbe
AK
2096{ $as_echo "$as_me:$LINENO: checking build system type" >&5
2097$as_echo_n "checking build system type... " >&6; }
ad6254c5 2098if test "${ac_cv_build+set}" = set; then
ec6a6fbe 2099 $as_echo_n "(cached) " >&6
ad6254c5 2100else
7a197a62
AK
2101 ac_build_alias=$build_alias
2102test "x$ac_build_alias" = x &&
2103 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2104test "x$ac_build_alias" = x &&
ec6a6fbe
AK
2105 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2106$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
ad6254c5 2107 { (exit 1); exit 1; }; }
7a197a62 2108ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
ec6a6fbe
AK
2109 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2110$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
ad6254c5
AK
2111 { (exit 1); exit 1; }; }
2112
2113fi
ec6a6fbe
AK
2114{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2115$as_echo "$ac_cv_build" >&6; }
7a197a62
AK
2116case $ac_cv_build in
2117*-*-*) ;;
ec6a6fbe
AK
2118*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2119$as_echo "$as_me: error: invalid value of canonical build" >&2;}
7a197a62
AK
2120 { (exit 1); exit 1; }; };;
2121esac
ad6254c5 2122build=$ac_cv_build
7a197a62
AK
2123ac_save_IFS=$IFS; IFS='-'
2124set x $ac_cv_build
2125shift
2126build_cpu=$1
2127build_vendor=$2
2128shift; shift
2129# Remember, the first character of IFS is used to create $*,
2130# except with old shells:
2131build_os=$*
2132IFS=$ac_save_IFS
2133case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
ad6254c5
AK
2134
2135
ec6a6fbe
AK
2136{ $as_echo "$as_me:$LINENO: checking host system type" >&5
2137$as_echo_n "checking host system type... " >&6; }
ad6254c5 2138if test "${ac_cv_host+set}" = set; then
ec6a6fbe 2139 $as_echo_n "(cached) " >&6
ad6254c5 2140else
7a197a62
AK
2141 if test "x$host_alias" = x; then
2142 ac_cv_host=$ac_cv_build
2143else
2144 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
ec6a6fbe
AK
2145 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2146$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
ad6254c5 2147 { (exit 1); exit 1; }; }
7a197a62 2148fi
ad6254c5
AK
2149
2150fi
ec6a6fbe
AK
2151{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2152$as_echo "$ac_cv_host" >&6; }
7a197a62
AK
2153case $ac_cv_host in
2154*-*-*) ;;
ec6a6fbe
AK
2155*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2156$as_echo "$as_me: error: invalid value of canonical host" >&2;}
7a197a62
AK
2157 { (exit 1); exit 1; }; };;
2158esac
ad6254c5 2159host=$ac_cv_host
7a197a62
AK
2160ac_save_IFS=$IFS; IFS='-'
2161set x $ac_cv_host
2162shift
2163host_cpu=$1
2164host_vendor=$2
2165shift; shift
2166# Remember, the first character of IFS is used to create $*,
2167# except with old shells:
2168host_os=$*
2169IFS=$ac_save_IFS
2170case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
ad6254c5
AK
2171
2172
ec6a6fbe
AK
2173{ $as_echo "$as_me:$LINENO: checking target system type" >&5
2174$as_echo_n "checking target system type... " >&6; }
ad6254c5 2175if test "${ac_cv_target+set}" = set; then
ec6a6fbe 2176 $as_echo_n "(cached) " >&6
ad6254c5 2177else
7a197a62
AK
2178 if test "x$target_alias" = x; then
2179 ac_cv_target=$ac_cv_host
2180else
2181 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
ec6a6fbe
AK
2182 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2183$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
ad6254c5 2184 { (exit 1); exit 1; }; }
7a197a62 2185fi
8ce0cbda 2186
ad6254c5 2187fi
ec6a6fbe
AK
2188{ $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2189$as_echo "$ac_cv_target" >&6; }
7a197a62
AK
2190case $ac_cv_target in
2191*-*-*) ;;
ec6a6fbe
AK
2192*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2193$as_echo "$as_me: error: invalid value of canonical target" >&2;}
7a197a62
AK
2194 { (exit 1); exit 1; }; };;
2195esac
ad6254c5 2196target=$ac_cv_target
7a197a62
AK
2197ac_save_IFS=$IFS; IFS='-'
2198set x $ac_cv_target
2199shift
2200target_cpu=$1
2201target_vendor=$2
2202shift; shift
2203# Remember, the first character of IFS is used to create $*,
2204# except with old shells:
2205target_os=$*
2206IFS=$ac_save_IFS
2207case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
8ce0cbda 2208
8ce0cbda 2209
ad6254c5
AK
2210# The aliases save the names the user supplied, while $host etc.
2211# will get canonicalized.
2212test -n "$target_alias" &&
8ce0cbda
AK
2213 test "$program_prefix$program_suffix$program_transform_name" = \
2214 NONENONEs,x,x, &&
2215 program_prefix=${target_alias}-
2216
8ce0cbda
AK
2217case "$host_os" in
2218 linux*)
7f54ef36 2219 CFLAGS="$CFLAGS"
8ce0cbda
AK
2220 COPTIMISE_FLAG="-O2"
2221 CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym"
2222 CLDWHOLEARCHIVE="-Wl,-whole-archive"
2223 CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive"
2224 LDDEPS="$LDDEPS .export.sym"
2225 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
d0191583 2226 LIB_SUFFIX=so
8ce0cbda
AK
2227 DEVMAPPER=yes
2228 ODIRECT=yes
d0191583 2229 DM_IOCTLS=yes
8ce0cbda
AK
2230 SELINUX=yes
2231 CLUSTER=internal
93bd259b 2232 FSADM=yes
d0191583 2233 ;;
8ce0cbda
AK
2234 darwin*)
2235 CFLAGS="$CFLAGS -no-cpp-precomp -fno-common"
2236 COPTIMISE_FLAG="-O2"
2237 CLDFLAGS="$CLDFLAGS"
2238 CLDWHOLEARCHIVE="-all_load"
2239 CLDNOWHOLEARCHIVE=
d0191583 2240 LIB_SUFFIX=dylib
a653923f 2241 DEVMAPPER=yes
8ce0cbda 2242 ODIRECT=no
d0191583 2243 DM_IOCTLS=no
8ce0cbda
AK
2244 SELINUX=no
2245 CLUSTER=none
d0191583
JM
2246 FSADM=no
2247 ;;
8ce0cbda
AK
2248esac
2249
80992638 2250################################################################################
ec6a6fbe
AK
2251{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
2252$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5951ef33 2253if test "${ac_cv_path_SED+set}" = set; then
ec6a6fbe 2254 $as_echo_n "(cached) " >&6
5951ef33
AK
2255else
2256 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2257 for ac_i in 1 2 3 4 5 6 7; do
2258 ac_script="$ac_script$as_nl$ac_script"
2259 done
ec6a6fbe 2260 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5951ef33 2261 $as_unset ac_script || ac_script=
ec6a6fbe 2262 if test -z "$SED"; then
5951ef33 2263 ac_path_SED_found=false
ec6a6fbe
AK
2264 # Loop through the user's path and test for each of PROGNAME-LIST
2265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5951ef33
AK
2266for as_dir in $PATH
2267do
2268 IFS=$as_save_IFS
2269 test -z "$as_dir" && as_dir=.
2270 for ac_prog in sed gsed; do
ec6a6fbe
AK
2271 for ac_exec_ext in '' $ac_executable_extensions; do
2272 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2273 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2274# Check for GNU ac_path_SED and select it if it is found.
5951ef33
AK
2275 # Check for GNU $ac_path_SED
2276case `"$ac_path_SED" --version 2>&1` in
2277*GNU*)
2278 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2279*)
2280 ac_count=0
ec6a6fbe 2281 $as_echo_n 0123456789 >"conftest.in"
5951ef33
AK
2282 while :
2283 do
2284 cat "conftest.in" "conftest.in" >"conftest.tmp"
2285 mv "conftest.tmp" "conftest.in"
2286 cp "conftest.in" "conftest.nl"
ec6a6fbe 2287 $as_echo '' >> "conftest.nl"
5951ef33
AK
2288 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2289 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2290 ac_count=`expr $ac_count + 1`
2291 if test $ac_count -gt ${ac_path_SED_max-0}; then
2292 # Best one so far, save it but keep looking for a better one
2293 ac_cv_path_SED="$ac_path_SED"
2294 ac_path_SED_max=$ac_count
2295 fi
2296 # 10*(2^10) chars as input seems more than enough
2297 test $ac_count -gt 10 && break
2298 done
2299 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2300esac
2301
ec6a6fbe
AK
2302 $ac_path_SED_found && break 3
2303 done
5951ef33
AK
2304 done
2305done
5951ef33 2306IFS=$as_save_IFS
ec6a6fbe
AK
2307 if test -z "$ac_cv_path_SED"; then
2308 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
2309$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
5951ef33 2310 { (exit 1); exit 1; }; }
ec6a6fbe 2311 fi
5951ef33
AK
2312else
2313 ac_cv_path_SED=$SED
2314fi
2315
2316fi
ec6a6fbe
AK
2317{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
2318$as_echo "$ac_cv_path_SED" >&6; }
5951ef33
AK
2319 SED="$ac_cv_path_SED"
2320 rm -f conftest.sed
2321
ad6254c5 2322for ac_prog in gawk mawk nawk awk
795ca3e5 2323do
ad6254c5 2324 # Extract the first word of "$ac_prog", so it can be a program name with args.
795ca3e5 2325set dummy $ac_prog; 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_AWK+set}" = set; then
ec6a6fbe 2329 $as_echo_n "(cached) " >&6
795ca3e5
AK
2330else
2331 if test -n "$AWK"; then
2332 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2333else
ad6254c5
AK
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_AWK="$ac_prog"
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 2348
795ca3e5
AK
2349fi
2350fi
ad6254c5 2351AWK=$ac_cv_prog_AWK
795ca3e5 2352if test -n "$AWK"; then
ec6a6fbe
AK
2353 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2354$as_echo "$AWK" >&6; }
795ca3e5 2355else
ec6a6fbe
AK
2356 { $as_echo "$as_me:$LINENO: result: no" >&5
2357$as_echo "no" >&6; }
795ca3e5
AK
2358fi
2359
7a197a62 2360
ad6254c5
AK
2361 test -n "$AWK" && break
2362done
2363
2364ac_ext=c
2365ac_cpp='$CPP $CPPFLAGS'
2366ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2367ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2368ac_compiler_gnu=$ac_cv_c_compiler_gnu
2369if test -n "$ac_tool_prefix"; then
2370 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2371set dummy ${ac_tool_prefix}gcc; ac_word=$2
ec6a6fbe
AK
2372{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2373$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2374if test "${ac_cv_prog_CC+set}" = set; then
ec6a6fbe 2375 $as_echo_n "(cached) " >&6
ad6254c5
AK
2376else
2377 if test -n "$CC"; then
2378 ac_cv_prog_CC="$CC" # Let the user override the test.
2379else
2380as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2381for as_dir in $PATH
2382do
2383 IFS=$as_save_IFS
2384 test -z "$as_dir" && as_dir=.
2385 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2387 ac_cv_prog_CC="${ac_tool_prefix}gcc"
ec6a6fbe 2388 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2389 break 2
2390 fi
2391done
8106cdd5 2392done
7a197a62 2393IFS=$as_save_IFS
8106cdd5 2394
ad6254c5
AK
2395fi
2396fi
2397CC=$ac_cv_prog_CC
2398if test -n "$CC"; then
ec6a6fbe
AK
2399 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2400$as_echo "$CC" >&6; }
ad6254c5 2401else
ec6a6fbe
AK
2402 { $as_echo "$as_me:$LINENO: result: no" >&5
2403$as_echo "no" >&6; }
ad6254c5
AK
2404fi
2405
7a197a62 2406
ad6254c5
AK
2407fi
2408if test -z "$ac_cv_prog_CC"; then
2409 ac_ct_CC=$CC
2410 # Extract the first word of "gcc", so it can be a program name with args.
8106cdd5 2411set dummy gcc; ac_word=$2
ec6a6fbe
AK
2412{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2413$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2414if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
ec6a6fbe 2415 $as_echo_n "(cached) " >&6
ad6254c5
AK
2416else
2417 if test -n "$ac_ct_CC"; then
2418 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2419else
2420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2421for as_dir in $PATH
2422do
2423 IFS=$as_save_IFS
2424 test -z "$as_dir" && as_dir=.
2425 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2427 ac_cv_prog_ac_ct_CC="gcc"
ec6a6fbe 2428 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2429 break 2
2430 fi
2431done
2432done
7a197a62 2433IFS=$as_save_IFS
ad6254c5
AK
2434
2435fi
2436fi
2437ac_ct_CC=$ac_cv_prog_ac_ct_CC
2438if test -n "$ac_ct_CC"; then
ec6a6fbe
AK
2439 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2440$as_echo "$ac_ct_CC" >&6; }
ad6254c5 2441else
ec6a6fbe
AK
2442 { $as_echo "$as_me:$LINENO: result: no" >&5
2443$as_echo "no" >&6; }
ad6254c5
AK
2444fi
2445
7a197a62
AK
2446 if test "x$ac_ct_CC" = x; then
2447 CC=""
2448 else
2449 case $cross_compiling:$ac_tool_warned in
2450yes:)
ec6a6fbe
AK
2451{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2452$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7a197a62
AK
2453ac_tool_warned=yes ;;
2454esac
2455 CC=$ac_ct_CC
2456 fi
ad6254c5
AK
2457else
2458 CC="$ac_cv_prog_CC"
2459fi
2460
2461if test -z "$CC"; then
7a197a62
AK
2462 if test -n "$ac_tool_prefix"; then
2463 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
ad6254c5 2464set dummy ${ac_tool_prefix}cc; ac_word=$2
ec6a6fbe
AK
2465{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2466$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2467if test "${ac_cv_prog_CC+set}" = set; then
ec6a6fbe 2468 $as_echo_n "(cached) " >&6
8106cdd5
AK
2469else
2470 if test -n "$CC"; then
2471 ac_cv_prog_CC="$CC" # Let the user override the test.
2472else
ad6254c5
AK
2473as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2474for as_dir in $PATH
2475do
2476 IFS=$as_save_IFS
2477 test -z "$as_dir" && as_dir=.
2478 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2480 ac_cv_prog_CC="${ac_tool_prefix}cc"
ec6a6fbe 2481 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2482 break 2
2483 fi
2484done
2485done
7a197a62 2486IFS=$as_save_IFS
ad6254c5 2487
8106cdd5
AK
2488fi
2489fi
ad6254c5 2490CC=$ac_cv_prog_CC
8106cdd5 2491if test -n "$CC"; then
ec6a6fbe
AK
2492 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2493$as_echo "$CC" >&6; }
ad6254c5 2494else
ec6a6fbe
AK
2495 { $as_echo "$as_me:$LINENO: result: no" >&5
2496$as_echo "no" >&6; }
ad6254c5
AK
2497fi
2498
8106cdd5 2499
7a197a62 2500 fi
ad6254c5 2501fi
795ca3e5
AK
2502if test -z "$CC"; then
2503 # Extract the first word of "cc", so it can be a program name with args.
2504set dummy cc; ac_word=$2
ec6a6fbe
AK
2505{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2506$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2507if test "${ac_cv_prog_CC+set}" = set; then
ec6a6fbe 2508 $as_echo_n "(cached) " >&6
795ca3e5
AK
2509else
2510 if test -n "$CC"; then
2511 ac_cv_prog_CC="$CC" # Let the user override the test.
2512else
795ca3e5 2513 ac_prog_rejected=no
ad6254c5
AK
2514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2515for as_dir in $PATH
2516do
2517 IFS=$as_save_IFS
2518 test -z "$as_dir" && as_dir=.
2519 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5
AK
2521 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2522 ac_prog_rejected=yes
2523 continue
2524 fi
2525 ac_cv_prog_CC="cc"
ec6a6fbe 2526 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2527 break 2
2528 fi
2529done
2530done
7a197a62 2531IFS=$as_save_IFS
ad6254c5 2532
795ca3e5
AK
2533if test $ac_prog_rejected = yes; then
2534 # We found a bogon in the path, so make sure we never use it.
2535 set dummy $ac_cv_prog_CC
2536 shift
ad6254c5 2537 if test $# != 0; then
795ca3e5
AK
2538 # We chose a different compiler from the bogus one.
2539 # However, it has the same basename, so the bogon will be chosen
2540 # first if we set CC to just the basename; use the full file name.
2541 shift
ad6254c5 2542 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
795ca3e5
AK
2543 fi
2544fi
2545fi
2546fi
ad6254c5 2547CC=$ac_cv_prog_CC
795ca3e5 2548if test -n "$CC"; then
ec6a6fbe
AK
2549 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2550$as_echo "$CC" >&6; }
795ca3e5 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
2557fi
2558if test -z "$CC"; then
2559 if test -n "$ac_tool_prefix"; then
7a197a62 2560 for ac_prog in cl.exe
ad6254c5
AK
2561 do
2562 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2563set dummy $ac_tool_prefix$ac_prog; ac_word=$2
ec6a6fbe
AK
2564{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2565$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2566if test "${ac_cv_prog_CC+set}" = set; then
ec6a6fbe 2567 $as_echo_n "(cached) " >&6
795ca3e5
AK
2568else
2569 if test -n "$CC"; then
2570 ac_cv_prog_CC="$CC" # Let the user override the test.
2571else
ad6254c5
AK
2572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2573for as_dir in $PATH
2574do
2575 IFS=$as_save_IFS
2576 test -z "$as_dir" && as_dir=.
2577 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2579 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
ec6a6fbe 2580 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2581 break 2
2582 fi
2583done
2584done
7a197a62 2585IFS=$as_save_IFS
ad6254c5 2586
795ca3e5
AK
2587fi
2588fi
ad6254c5 2589CC=$ac_cv_prog_CC
795ca3e5 2590if test -n "$CC"; then
ec6a6fbe
AK
2591 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2592$as_echo "$CC" >&6; }
795ca3e5 2593else
ec6a6fbe
AK
2594 { $as_echo "$as_me:$LINENO: result: no" >&5
2595$as_echo "no" >&6; }
795ca3e5 2596fi
ad6254c5 2597
7a197a62 2598
ad6254c5
AK
2599 test -n "$CC" && break
2600 done
2601fi
2602if test -z "$CC"; then
2603 ac_ct_CC=$CC
7a197a62 2604 for ac_prog in cl.exe
ad6254c5
AK
2605do
2606 # Extract the first word of "$ac_prog", so it can be a program name with args.
2607set dummy $ac_prog; ac_word=$2
ec6a6fbe
AK
2608{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2609$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2610if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
ec6a6fbe 2611 $as_echo_n "(cached) " >&6
ad6254c5
AK
2612else
2613 if test -n "$ac_ct_CC"; then
2614 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2615else
2616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2617for as_dir in $PATH
2618do
2619 IFS=$as_save_IFS
2620 test -z "$as_dir" && as_dir=.
2621 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2622 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2623 ac_cv_prog_ac_ct_CC="$ac_prog"
ec6a6fbe 2624 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5 2625 break 2
795ca3e5 2626 fi
ad6254c5
AK
2627done
2628done
7a197a62 2629IFS=$as_save_IFS
ad6254c5
AK
2630
2631fi
2632fi
2633ac_ct_CC=$ac_cv_prog_ac_ct_CC
2634if test -n "$ac_ct_CC"; then
ec6a6fbe
AK
2635 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2636$as_echo "$ac_ct_CC" >&6; }
ad6254c5 2637else
ec6a6fbe
AK
2638 { $as_echo "$as_me:$LINENO: result: no" >&5
2639$as_echo "no" >&6; }
795ca3e5
AK
2640fi
2641
7a197a62 2642
ad6254c5
AK
2643 test -n "$ac_ct_CC" && break
2644done
795ca3e5 2645
7a197a62
AK
2646 if test "x$ac_ct_CC" = x; then
2647 CC=""
2648 else
2649 case $cross_compiling:$ac_tool_warned in
2650yes:)
ec6a6fbe
AK
2651{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2652$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7a197a62
AK
2653ac_tool_warned=yes ;;
2654esac
2655 CC=$ac_ct_CC
2656 fi
ad6254c5
AK
2657fi
2658
2659fi
2660
2661
ec6a6fbe
AK
2662test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2663$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2664{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
ad6254c5 2665See \`config.log' for more details." >&5
ec6a6fbe 2666$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
ad6254c5 2667See \`config.log' for more details." >&2;}
ec6a6fbe 2668 { (exit 1); exit 1; }; }; }
ad6254c5
AK
2669
2670# Provide some information about the compiler.
ec6a6fbe
AK
2671$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2672set X $ac_compile
2673ac_compiler=$2
7a197a62
AK
2674{ (ac_try="$ac_compiler --version >&5"
2675case "(($ac_try" in
2676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2677 *) ac_try_echo=$ac_try;;
2678esac
ec6a6fbe
AK
2679eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2680$as_echo "$ac_try_echo") >&5
7a197a62 2681 (eval "$ac_compiler --version >&5") 2>&5
ad6254c5 2682 ac_status=$?
ec6a6fbe 2683 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2684 (exit $ac_status); }
7a197a62
AK
2685{ (ac_try="$ac_compiler -v >&5"
2686case "(($ac_try" in
2687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2688 *) ac_try_echo=$ac_try;;
2689esac
ec6a6fbe
AK
2690eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2691$as_echo "$ac_try_echo") >&5
7a197a62 2692 (eval "$ac_compiler -v >&5") 2>&5
ad6254c5 2693 ac_status=$?
ec6a6fbe 2694 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2695 (exit $ac_status); }
7a197a62
AK
2696{ (ac_try="$ac_compiler -V >&5"
2697case "(($ac_try" in
2698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2699 *) ac_try_echo=$ac_try;;
2700esac
ec6a6fbe
AK
2701eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2702$as_echo "$ac_try_echo") >&5
7a197a62 2703 (eval "$ac_compiler -V >&5") 2>&5
ad6254c5 2704 ac_status=$?
ec6a6fbe 2705 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
2706 (exit $ac_status); }
2707
2708cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2709/* confdefs.h. */
2710_ACEOF
2711cat confdefs.h >>conftest.$ac_ext
2712cat >>conftest.$ac_ext <<_ACEOF
2713/* end confdefs.h. */
2714
2715int
2716main ()
2717{
2718
2719 ;
2720 return 0;
2721}
2722_ACEOF
2723ac_clean_files_save=$ac_clean_files
ec6a6fbe 2724ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
ad6254c5
AK
2725# Try to create an executable without -o first, disregard a.out.
2726# It will help us diagnose broken compilers, and finding out an intuition
2727# of exeext.
ec6a6fbe
AK
2728{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2729$as_echo_n "checking for C compiler default output file name... " >&6; }
2730ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2731
2732# The possible output files:
2733ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2734
7a197a62
AK
2735ac_rmfiles=
2736for ac_file in $ac_files
2737do
2738 case $ac_file in
ec6a6fbe 2739 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
7a197a62
AK
2740 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2741 esac
2742done
2743rm -f $ac_rmfiles
2744
2745if { (ac_try="$ac_link_default"
2746case "(($ac_try" in
2747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2748 *) ac_try_echo=$ac_try;;
2749esac
ec6a6fbe
AK
2750eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2751$as_echo "$ac_try_echo") >&5
7a197a62 2752 (eval "$ac_link_default") 2>&5
ad6254c5 2753 ac_status=$?
ec6a6fbe 2754 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2755 (exit $ac_status); }; then
7a197a62
AK
2756 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2757# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2758# in a Makefile. We should not override ac_cv_exeext if it was cached,
2759# so that the user can short-circuit this test for compilers unknown to
2760# Autoconf.
25fbec5b 2761for ac_file in $ac_files ''
ad6254c5
AK
2762do
2763 test -f "$ac_file" || continue
2764 case $ac_file in
ec6a6fbe 2765 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
8a2fc586 2766 ;;
ad6254c5 2767 [ab].out )
8a2fc586
AK
2768 # We found the default executable, but exeext='' is most
2769 # certainly right.
2770 break;;
ad6254c5 2771 *.* )
7a197a62
AK
2772 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2773 then :; else
2774 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2775 fi
2776 # We set ac_cv_exeext here because the later test for it is not
2777 # safe: cross compilers may not add the suffix if given an `-o'
2778 # argument, so we may need to know it at that point already.
2779 # Even if this section looks crufty: it has the advantage of
2780 # actually working.
8a2fc586 2781 break;;
ad6254c5 2782 * )
8a2fc586 2783 break;;
ad6254c5
AK
2784 esac
2785done
7a197a62
AK
2786test "$ac_cv_exeext" = no && ac_cv_exeext=
2787
ad6254c5 2788else
25fbec5b
AK
2789 ac_file=''
2790fi
2791
ec6a6fbe
AK
2792{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2793$as_echo "$ac_file" >&6; }
25fbec5b 2794if test -z "$ac_file"; then
ec6a6fbe 2795 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
2796sed 's/^/| /' conftest.$ac_ext >&5
2797
ec6a6fbe
AK
2798{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2799$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2800{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
ad6254c5 2801See \`config.log' for more details." >&5
ec6a6fbe 2802$as_echo "$as_me: error: C compiler cannot create executables
ad6254c5 2803See \`config.log' for more details." >&2;}
ec6a6fbe 2804 { (exit 77); exit 77; }; }; }
ad6254c5
AK
2805fi
2806
2807ac_exeext=$ac_cv_exeext
ad6254c5 2808
7a197a62 2809# Check that the compiler produces executables we can run. If not, either
ad6254c5 2810# the compiler is broken, or we cross compile.
ec6a6fbe
AK
2811{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2812$as_echo_n "checking whether the C compiler works... " >&6; }
ad6254c5
AK
2813# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2814# If not cross compiling, check that we can run a simple program.
2815if test "$cross_compiling" != yes; then
2816 if { ac_try='./$ac_file'
7a197a62
AK
2817 { (case "(($ac_try" in
2818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2819 *) ac_try_echo=$ac_try;;
2820esac
ec6a6fbe
AK
2821eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2822$as_echo "$ac_try_echo") >&5
7a197a62 2823 (eval "$ac_try") 2>&5
ad6254c5 2824 ac_status=$?
ec6a6fbe 2825 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
2826 (exit $ac_status); }; }; then
2827 cross_compiling=no
795ca3e5 2828 else
ad6254c5
AK
2829 if test "$cross_compiling" = maybe; then
2830 cross_compiling=yes
2831 else
ec6a6fbe
AK
2832 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2833$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2834{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
ad6254c5
AK
2835If you meant to cross compile, use \`--host'.
2836See \`config.log' for more details." >&5
ec6a6fbe 2837$as_echo "$as_me: error: cannot run C compiled programs.
ad6254c5
AK
2838If you meant to cross compile, use \`--host'.
2839See \`config.log' for more details." >&2;}
ec6a6fbe 2840 { (exit 1); exit 1; }; }; }
ad6254c5 2841 fi
795ca3e5 2842 fi
80992638 2843fi
ec6a6fbe
AK
2844{ $as_echo "$as_me:$LINENO: result: yes" >&5
2845$as_echo "yes" >&6; }
ad6254c5 2846
ec6a6fbe 2847rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
ad6254c5 2848ac_clean_files=$ac_clean_files_save
7a197a62 2849# Check that the compiler produces executables we can run. If not, either
ad6254c5 2850# the compiler is broken, or we cross compile.
ec6a6fbe
AK
2851{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2852$as_echo_n "checking whether we are cross compiling... " >&6; }
2853{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2854$as_echo "$cross_compiling" >&6; }
7a197a62 2855
ec6a6fbe
AK
2856{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2857$as_echo_n "checking for suffix of executables... " >&6; }
7a197a62
AK
2858if { (ac_try="$ac_link"
2859case "(($ac_try" in
2860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2861 *) ac_try_echo=$ac_try;;
2862esac
ec6a6fbe
AK
2863eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2864$as_echo "$ac_try_echo") >&5
7a197a62 2865 (eval "$ac_link") 2>&5
ad6254c5 2866 ac_status=$?
ec6a6fbe 2867 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
2868 (exit $ac_status); }; then
2869 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2870# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2871# work properly (i.e., refer to `conftest.exe'), while it won't with
2872# `rm'.
2873for ac_file in conftest.exe conftest conftest.*; do
2874 test -f "$ac_file" || continue
2875 case $ac_file in
ec6a6fbe 2876 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
ad6254c5 2877 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
8a2fc586 2878 break;;
ad6254c5
AK
2879 * ) break;;
2880 esac
2881done
80992638 2882else
ec6a6fbe
AK
2883 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2884$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2885{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
ad6254c5 2886See \`config.log' for more details." >&5
ec6a6fbe 2887$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
ad6254c5 2888See \`config.log' for more details." >&2;}
ec6a6fbe 2889 { (exit 1); exit 1; }; }; }
ad6254c5
AK
2890fi
2891
2892rm -f conftest$ac_cv_exeext
ec6a6fbe
AK
2893{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2894$as_echo "$ac_cv_exeext" >&6; }
ad6254c5
AK
2895
2896rm -f conftest.$ac_ext
2897EXEEXT=$ac_cv_exeext
2898ac_exeext=$EXEEXT
ec6a6fbe
AK
2899{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2900$as_echo_n "checking for suffix of object files... " >&6; }
ad6254c5 2901if test "${ac_cv_objext+set}" = set; then
ec6a6fbe 2902 $as_echo_n "(cached) " >&6
795ca3e5 2903else
ad6254c5 2904 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2905/* confdefs.h. */
2906_ACEOF
2907cat confdefs.h >>conftest.$ac_ext
2908cat >>conftest.$ac_ext <<_ACEOF
2909/* end confdefs.h. */
2910
2911int
2912main ()
2913{
2914
2915 ;
2916 return 0;
2917}
2918_ACEOF
2919rm -f conftest.o conftest.obj
7a197a62
AK
2920if { (ac_try="$ac_compile"
2921case "(($ac_try" in
2922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2923 *) ac_try_echo=$ac_try;;
2924esac
ec6a6fbe
AK
2925eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2926$as_echo "$ac_try_echo") >&5
7a197a62 2927 (eval "$ac_compile") 2>&5
ad6254c5 2928 ac_status=$?
ec6a6fbe 2929 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2930 (exit $ac_status); }; then
7a197a62
AK
2931 for ac_file in conftest.o conftest.obj conftest.*; do
2932 test -f "$ac_file" || continue;
ad6254c5 2933 case $ac_file in
ec6a6fbe 2934 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
ad6254c5
AK
2935 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2936 break;;
2937 esac
2938done
2939else
ec6a6fbe 2940 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
2941sed 's/^/| /' conftest.$ac_ext >&5
2942
ec6a6fbe
AK
2943{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2944$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2945{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
ad6254c5 2946See \`config.log' for more details." >&5
ec6a6fbe 2947$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
ad6254c5 2948See \`config.log' for more details." >&2;}
ec6a6fbe 2949 { (exit 1); exit 1; }; }; }
ad6254c5
AK
2950fi
2951
2952rm -f conftest.$ac_cv_objext conftest.$ac_ext
2953fi
ec6a6fbe
AK
2954{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2955$as_echo "$ac_cv_objext" >&6; }
ad6254c5
AK
2956OBJEXT=$ac_cv_objext
2957ac_objext=$OBJEXT
ec6a6fbe
AK
2958{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2959$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
ad6254c5 2960if test "${ac_cv_c_compiler_gnu+set}" = set; then
ec6a6fbe 2961 $as_echo_n "(cached) " >&6
ad6254c5
AK
2962else
2963 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2964/* confdefs.h. */
2965_ACEOF
2966cat confdefs.h >>conftest.$ac_ext
2967cat >>conftest.$ac_ext <<_ACEOF
2968/* end confdefs.h. */
2969
2970int
2971main ()
2972{
2973#ifndef __GNUC__
2974 choke me
2975#endif
80992638 2976
ad6254c5
AK
2977 ;
2978 return 0;
2979}
2980_ACEOF
2981rm -f conftest.$ac_objext
7a197a62
AK
2982if { (ac_try="$ac_compile"
2983case "(($ac_try" in
2984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2985 *) ac_try_echo=$ac_try;;
2986esac
ec6a6fbe
AK
2987eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2988$as_echo "$ac_try_echo") >&5
7a197a62 2989 (eval "$ac_compile") 2>conftest.er1
ad6254c5 2990 ac_status=$?
8a2fc586
AK
2991 grep -v '^ *+' conftest.er1 >conftest.err
2992 rm -f conftest.er1
2993 cat conftest.err >&5
ec6a6fbe 2994 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
2995 (exit $ac_status); } && {
2996 test -z "$ac_c_werror_flag" ||
2997 test ! -s conftest.err
2998 } && test -s conftest.$ac_objext; then
ad6254c5 2999 ac_compiler_gnu=yes
80992638 3000else
ec6a6fbe 3001 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
3002sed 's/^/| /' conftest.$ac_ext >&5
3003
7a197a62 3004 ac_compiler_gnu=no
8106cdd5 3005fi
7a197a62
AK
3006
3007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 3008ac_cv_c_compiler_gnu=$ac_compiler_gnu
80992638 3009
ad6254c5 3010fi
ec6a6fbe
AK
3011{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3012$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3013if test $ac_compiler_gnu = yes; then
3014 GCC=yes
3015else
3016 GCC=
3017fi
ad6254c5
AK
3018ac_test_CFLAGS=${CFLAGS+set}
3019ac_save_CFLAGS=$CFLAGS
ec6a6fbe
AK
3020{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3021$as_echo_n "checking whether $CC accepts -g... " >&6; }
ad6254c5 3022if test "${ac_cv_prog_cc_g+set}" = set; then
ec6a6fbe 3023 $as_echo_n "(cached) " >&6
795ca3e5 3024else
7a197a62
AK
3025 ac_save_c_werror_flag=$ac_c_werror_flag
3026 ac_c_werror_flag=yes
3027 ac_cv_prog_cc_g=no
3028 CFLAGS="-g"
3029 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3030/* confdefs.h. */
3031_ACEOF
3032cat confdefs.h >>conftest.$ac_ext
3033cat >>conftest.$ac_ext <<_ACEOF
3034/* end confdefs.h. */
3035
3036int
3037main ()
3038{
3039
3040 ;
3041 return 0;
3042}
3043_ACEOF
3044rm -f conftest.$ac_objext
7a197a62
AK
3045if { (ac_try="$ac_compile"
3046case "(($ac_try" in
3047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3048 *) ac_try_echo=$ac_try;;
3049esac
ec6a6fbe
AK
3050eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3051$as_echo "$ac_try_echo") >&5
7a197a62 3052 (eval "$ac_compile") 2>conftest.er1
ad6254c5 3053 ac_status=$?
8a2fc586
AK
3054 grep -v '^ *+' conftest.er1 >conftest.err
3055 rm -f conftest.er1
3056 cat conftest.err >&5
ec6a6fbe 3057 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
3058 (exit $ac_status); } && {
3059 test -z "$ac_c_werror_flag" ||
3060 test ! -s conftest.err
3061 } && test -s conftest.$ac_objext; then
7a197a62
AK
3062 ac_cv_prog_cc_g=yes
3063else
ec6a6fbe 3064 $as_echo "$as_me: failed program was:" >&5
7a197a62
AK
3065sed 's/^/| /' conftest.$ac_ext >&5
3066
3067 CFLAGS=""
3068 cat >conftest.$ac_ext <<_ACEOF
3069/* confdefs.h. */
3070_ACEOF
3071cat confdefs.h >>conftest.$ac_ext
3072cat >>conftest.$ac_ext <<_ACEOF
3073/* end confdefs.h. */
3074
3075int
3076main ()
3077{
3078
3079 ;
3080 return 0;
3081}
3082_ACEOF
3083rm -f conftest.$ac_objext
3084if { (ac_try="$ac_compile"
3085case "(($ac_try" in
3086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3087 *) ac_try_echo=$ac_try;;
3088esac
ec6a6fbe
AK
3089eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3090$as_echo "$ac_try_echo") >&5
7a197a62 3091 (eval "$ac_compile") 2>conftest.er1
8a2fc586 3092 ac_status=$?
7a197a62
AK
3093 grep -v '^ *+' conftest.er1 >conftest.err
3094 rm -f conftest.er1
3095 cat conftest.err >&5
ec6a6fbe 3096 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
3097 (exit $ac_status); } && {
3098 test -z "$ac_c_werror_flag" ||
3099 test ! -s conftest.err
3100 } && test -s conftest.$ac_objext; then
7a197a62
AK
3101 :
3102else
ec6a6fbe 3103 $as_echo "$as_me: failed program was:" >&5
7a197a62
AK
3104sed 's/^/| /' conftest.$ac_ext >&5
3105
3106 ac_c_werror_flag=$ac_save_c_werror_flag
3107 CFLAGS="-g"
3108 cat >conftest.$ac_ext <<_ACEOF
3109/* confdefs.h. */
3110_ACEOF
3111cat confdefs.h >>conftest.$ac_ext
3112cat >>conftest.$ac_ext <<_ACEOF
3113/* end confdefs.h. */
3114
3115int
3116main ()
3117{
3118
3119 ;
3120 return 0;
3121}
3122_ACEOF
3123rm -f conftest.$ac_objext
3124if { (ac_try="$ac_compile"
3125case "(($ac_try" in
3126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3127 *) ac_try_echo=$ac_try;;
3128esac
ec6a6fbe
AK
3129eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3130$as_echo "$ac_try_echo") >&5
7a197a62 3131 (eval "$ac_compile") 2>conftest.er1
ad6254c5 3132 ac_status=$?
7a197a62
AK
3133 grep -v '^ *+' conftest.er1 >conftest.err
3134 rm -f conftest.er1
3135 cat conftest.err >&5
ec6a6fbe 3136 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
3137 (exit $ac_status); } && {
3138 test -z "$ac_c_werror_flag" ||
3139 test ! -s conftest.err
3140 } && test -s conftest.$ac_objext; then
795ca3e5
AK
3141 ac_cv_prog_cc_g=yes
3142else
ec6a6fbe 3143 $as_echo "$as_me: failed program was:" >&5
ad6254c5 3144sed 's/^/| /' conftest.$ac_ext >&5
80992638 3145
7a197a62
AK
3146
3147fi
3148
3149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3150fi
3151
3152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8106cdd5 3153fi
7a197a62
AK
3154
3155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3156 ac_c_werror_flag=$ac_save_c_werror_flag
ad6254c5 3157fi
ec6a6fbe
AK
3158{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3159$as_echo "$ac_cv_prog_cc_g" >&6; }
795ca3e5 3160if test "$ac_test_CFLAGS" = set; then
ad6254c5 3161 CFLAGS=$ac_save_CFLAGS
795ca3e5
AK
3162elif test $ac_cv_prog_cc_g = yes; then
3163 if test "$GCC" = yes; then
3164 CFLAGS="-g -O2"
3165 else
3166 CFLAGS="-g"
3167 fi
3168else
3169 if test "$GCC" = yes; then
3170 CFLAGS="-O2"
3171 else
3172 CFLAGS=
3173 fi
3174fi
ec6a6fbe
AK
3175{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3176$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
7a197a62 3177if test "${ac_cv_prog_cc_c89+set}" = set; then
ec6a6fbe 3178 $as_echo_n "(cached) " >&6
ad6254c5 3179else
7a197a62 3180 ac_cv_prog_cc_c89=no
ad6254c5
AK
3181ac_save_CC=$CC
3182cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3183/* confdefs.h. */
3184_ACEOF
3185cat confdefs.h >>conftest.$ac_ext
3186cat >>conftest.$ac_ext <<_ACEOF
3187/* end confdefs.h. */
3188#include <stdarg.h>
3189#include <stdio.h>
3190#include <sys/types.h>
3191#include <sys/stat.h>
3192/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3193struct buf { int x; };
3194FILE * (*rcsopen) (struct buf *, struct stat *, int);
3195static char *e (p, i)
3196 char **p;
3197 int i;
3198{
3199 return p[i];
3200}
3201static char *f (char * (*g) (char **, int), char **p, ...)
3202{
3203 char *s;
3204 va_list v;
3205 va_start (v,p);
3206 s = g (p, va_arg (v,int));
3207 va_end (v);
3208 return s;
3209}
8a2fc586
AK
3210
3211/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3212 function prototypes and stuff, but not '\xHH' hex character constants.
3213 These don't provoke an error unfortunately, instead are silently treated
7a197a62 3214 as 'x'. The following induces an error, until -std is added to get
8a2fc586
AK
3215 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3216 array size at least. It's necessary to write '\x00'==0 to get something
7a197a62 3217 that's true only with -std. */
8a2fc586
AK
3218int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3219
7a197a62
AK
3220/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3221 inside strings and character constants. */
3222#define FOO(x) 'x'
3223int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3224
ad6254c5
AK
3225int test (int i, double x);
3226struct s1 {int (*f) (int a);};
3227struct s2 {int (*f) (double a);};
3228int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3229int argc;
3230char **argv;
3231int
3232main ()
3233{
3234return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3235 ;
3236 return 0;
3237}
3238_ACEOF
7a197a62
AK
3239for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3240 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
ad6254c5
AK
3241do
3242 CC="$ac_save_CC $ac_arg"
3243 rm -f conftest.$ac_objext
7a197a62
AK
3244if { (ac_try="$ac_compile"
3245case "(($ac_try" in
3246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3247 *) ac_try_echo=$ac_try;;
3248esac
ec6a6fbe
AK
3249eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3250$as_echo "$ac_try_echo") >&5
7a197a62 3251 (eval "$ac_compile") 2>conftest.er1
ad6254c5 3252 ac_status=$?
8a2fc586
AK
3253 grep -v '^ *+' conftest.er1 >conftest.err
3254 rm -f conftest.er1
3255 cat conftest.err >&5
ec6a6fbe 3256 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
3257 (exit $ac_status); } && {
3258 test -z "$ac_c_werror_flag" ||
3259 test ! -s conftest.err
3260 } && test -s conftest.$ac_objext; then
7a197a62 3261 ac_cv_prog_cc_c89=$ac_arg
ad6254c5 3262else
ec6a6fbe 3263 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
3264sed 's/^/| /' conftest.$ac_ext >&5
3265
7a197a62 3266
ad6254c5 3267fi
7a197a62
AK
3268
3269rm -f core conftest.err conftest.$ac_objext
3270 test "x$ac_cv_prog_cc_c89" != "xno" && break
ad6254c5 3271done
7a197a62 3272rm -f conftest.$ac_ext
ad6254c5
AK
3273CC=$ac_save_CC
3274
3275fi
7a197a62
AK
3276# AC_CACHE_VAL
3277case "x$ac_cv_prog_cc_c89" in
3278 x)
ec6a6fbe
AK
3279 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3280$as_echo "none needed" >&6; } ;;
7a197a62 3281 xno)
ec6a6fbe
AK
3282 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3283$as_echo "unsupported" >&6; } ;;
ad6254c5 3284 *)
7a197a62 3285 CC="$CC $ac_cv_prog_cc_c89"
ec6a6fbe
AK
3286 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3287$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
ad6254c5
AK
3288esac
3289
ad6254c5 3290
ad6254c5
AK
3291ac_ext=c
3292ac_cpp='$CPP $CPPFLAGS'
3293ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3294ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3295ac_compiler_gnu=$ac_cv_c_compiler_gnu
795ca3e5 3296
d0191583
JM
3297
3298
3299ac_ext=c
3300ac_cpp='$CPP $CPPFLAGS'
3301ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3302ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3303ac_compiler_gnu=$ac_cv_c_compiler_gnu
ec6a6fbe
AK
3304{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3305$as_echo_n "checking how to run the C preprocessor... " >&6; }
d0191583
JM
3306# On Suns, sometimes $CPP names a directory.
3307if test -n "$CPP" && test -d "$CPP"; then
3308 CPP=
3309fi
3310if test -z "$CPP"; then
3311 if test "${ac_cv_prog_CPP+set}" = set; then
ec6a6fbe 3312 $as_echo_n "(cached) " >&6
ad6254c5 3313else
d0191583
JM
3314 # Double quotes because CPP needs to be expanded
3315 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3316 do
3317 ac_preproc_ok=false
3318for ac_c_preproc_warn_flag in '' yes
ad6254c5 3319do
d0191583
JM
3320 # Use a header file that comes with gcc, so configuring glibc
3321 # with a fresh cross-compiler works.
3322 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3323 # <limits.h> exists even on freestanding compilers.
3324 # On the NeXT, cc -E runs the code through the compiler's parser,
3325 # not just through cpp. "Syntax error" is here to catch this case.
3326 cat >conftest.$ac_ext <<_ACEOF
3327/* confdefs.h. */
3328_ACEOF
3329cat confdefs.h >>conftest.$ac_ext
3330cat >>conftest.$ac_ext <<_ACEOF
3331/* end confdefs.h. */
3332#ifdef __STDC__
3333# include <limits.h>
3334#else
3335# include <assert.h>
3336#endif
3337 Syntax error
3338_ACEOF
3339if { (ac_try="$ac_cpp conftest.$ac_ext"
3340case "(($ac_try" in
3341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3342 *) ac_try_echo=$ac_try;;
ad6254c5 3343esac
ec6a6fbe
AK
3344eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3345$as_echo "$ac_try_echo") >&5
d0191583
JM
3346 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3347 ac_status=$?
3348 grep -v '^ *+' conftest.er1 >conftest.err
3349 rm -f conftest.er1
3350 cat conftest.err >&5
ec6a6fbe 3351 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3352 (exit $ac_status); } >/dev/null && {
3353 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3354 test ! -s conftest.err
3355 }; then
3356 :
3357else
ec6a6fbe 3358 $as_echo "$as_me: failed program was:" >&5
d0191583 3359sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 3360
d0191583
JM
3361 # Broken: fails on valid input.
3362continue
795ca3e5 3363fi
795ca3e5 3364
d0191583 3365rm -f conftest.err conftest.$ac_ext
795ca3e5 3366
d0191583
JM
3367 # OK, works on sane cases. Now check whether nonexistent headers
3368 # can be detected and how.
3369 cat >conftest.$ac_ext <<_ACEOF
3370/* confdefs.h. */
3371_ACEOF
3372cat confdefs.h >>conftest.$ac_ext
3373cat >>conftest.$ac_ext <<_ACEOF
3374/* end confdefs.h. */
3375#include <ac_nonexistent.h>
3376_ACEOF
3377if { (ac_try="$ac_cpp conftest.$ac_ext"
3378case "(($ac_try" in
3379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3380 *) ac_try_echo=$ac_try;;
3381esac
ec6a6fbe
AK
3382eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3383$as_echo "$ac_try_echo") >&5
d0191583
JM
3384 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3385 ac_status=$?
3386 grep -v '^ *+' conftest.er1 >conftest.err
3387 rm -f conftest.er1
3388 cat conftest.err >&5
ec6a6fbe 3389 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3390 (exit $ac_status); } >/dev/null && {
3391 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3392 test ! -s conftest.err
3393 }; then
3394 # Broken: success on invalid input.
3395continue
3396else
ec6a6fbe 3397 $as_echo "$as_me: failed program was:" >&5
d0191583 3398sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 3399
d0191583
JM
3400 # Passes both tests.
3401ac_preproc_ok=:
3402break
3403fi
795ca3e5 3404
d0191583
JM
3405rm -f conftest.err conftest.$ac_ext
3406
3407done
3408# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3409rm -f conftest.err conftest.$ac_ext
3410if $ac_preproc_ok; then
3411 break
795ca3e5
AK
3412fi
3413
d0191583
JM
3414 done
3415 ac_cv_prog_CPP=$CPP
3416
3417fi
3418 CPP=$ac_cv_prog_CPP
795ca3e5 3419else
d0191583
JM
3420 ac_cv_prog_CPP=$CPP
3421fi
ec6a6fbe
AK
3422{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
3423$as_echo "$CPP" >&6; }
d0191583
JM
3424ac_preproc_ok=false
3425for ac_c_preproc_warn_flag in '' yes
3426do
3427 # Use a header file that comes with gcc, so configuring glibc
3428 # with a fresh cross-compiler works.
3429 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3430 # <limits.h> exists even on freestanding compilers.
3431 # On the NeXT, cc -E runs the code through the compiler's parser,
3432 # not just through cpp. "Syntax error" is here to catch this case.
3433 cat >conftest.$ac_ext <<_ACEOF
3434/* confdefs.h. */
ad6254c5 3435_ACEOF
d0191583
JM
3436cat confdefs.h >>conftest.$ac_ext
3437cat >>conftest.$ac_ext <<_ACEOF
3438/* end confdefs.h. */
3439#ifdef __STDC__
3440# include <limits.h>
3441#else
3442# include <assert.h>
3443#endif
3444 Syntax error
3445_ACEOF
3446if { (ac_try="$ac_cpp conftest.$ac_ext"
3447case "(($ac_try" in
3448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3449 *) ac_try_echo=$ac_try;;
7a197a62 3450esac
ec6a6fbe
AK
3451eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3452$as_echo "$ac_try_echo") >&5
d0191583
JM
3453 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3454 ac_status=$?
3455 grep -v '^ *+' conftest.er1 >conftest.err
3456 rm -f conftest.er1
3457 cat conftest.err >&5
ec6a6fbe 3458 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3459 (exit $ac_status); } >/dev/null && {
3460 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3461 test ! -s conftest.err
3462 }; then
3463 :
795ca3e5 3464else
ec6a6fbe 3465 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
3466sed 's/^/| /' conftest.$ac_ext >&5
3467
3468 # Broken: fails on valid input.
3469continue
795ca3e5
AK
3470fi
3471
d0191583
JM
3472rm -f conftest.err conftest.$ac_ext
3473
3474 # OK, works on sane cases. Now check whether nonexistent headers
3475 # can be detected and how.
3476 cat >conftest.$ac_ext <<_ACEOF
3477/* confdefs.h. */
3478_ACEOF
3479cat confdefs.h >>conftest.$ac_ext
3480cat >>conftest.$ac_ext <<_ACEOF
3481/* end confdefs.h. */
3482#include <ac_nonexistent.h>
3483_ACEOF
3484if { (ac_try="$ac_cpp conftest.$ac_ext"
3485case "(($ac_try" in
3486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3487 *) ac_try_echo=$ac_try;;
3488esac
ec6a6fbe
AK
3489eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3490$as_echo "$ac_try_echo") >&5
d0191583
JM
3491 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3492 ac_status=$?
3493 grep -v '^ *+' conftest.er1 >conftest.err
3494 rm -f conftest.er1
3495 cat conftest.err >&5
ec6a6fbe 3496 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3497 (exit $ac_status); } >/dev/null && {
3498 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3499 test ! -s conftest.err
3500 }; then
3501 # Broken: success on invalid input.
3502continue
795ca3e5 3503else
ec6a6fbe 3504 $as_echo "$as_me: failed program was:" >&5
d0191583 3505sed 's/^/| /' conftest.$ac_ext >&5
ad6254c5 3506
d0191583
JM
3507 # Passes both tests.
3508ac_preproc_ok=:
3509break
795ca3e5 3510fi
d0191583
JM
3511
3512rm -f conftest.err conftest.$ac_ext
3513
3514done
3515# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3516rm -f conftest.err conftest.$ac_ext
3517if $ac_preproc_ok; then
3518 :
8106cdd5 3519else
ec6a6fbe
AK
3520 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3521$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3522{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
d0191583 3523See \`config.log' for more details." >&5
ec6a6fbe 3524$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
d0191583 3525See \`config.log' for more details." >&2;}
ec6a6fbe 3526 { (exit 1); exit 1; }; }; }
8106cdd5
AK
3527fi
3528
d0191583
JM
3529ac_ext=c
3530ac_cpp='$CPP $CPPFLAGS'
3531ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3532ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3533ac_compiler_gnu=$ac_cv_c_compiler_gnu
3534
7a197a62 3535
ec6a6fbe
AK
3536{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3537$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5556819a 3538if test "${ac_cv_path_GREP+set}" = set; then
ec6a6fbe 3539 $as_echo_n "(cached) " >&6
ad6254c5 3540else
ec6a6fbe 3541 if test -z "$GREP"; then
d0191583 3542 ac_path_GREP_found=false
ec6a6fbe
AK
3543 # Loop through the user's path and test for each of PROGNAME-LIST
3544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
d0191583 3545for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
ad6254c5
AK
3546do
3547 IFS=$as_save_IFS
3548 test -z "$as_dir" && as_dir=.
d0191583 3549 for ac_prog in grep ggrep; do
ec6a6fbe
AK
3550 for ac_exec_ext in '' $ac_executable_extensions; do
3551 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3552 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3553# Check for GNU ac_path_GREP and select it if it is found.
d0191583
JM
3554 # Check for GNU $ac_path_GREP
3555case `"$ac_path_GREP" --version 2>&1` in
3556*GNU*)
3557 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3558*)
3559 ac_count=0
ec6a6fbe 3560 $as_echo_n 0123456789 >"conftest.in"
d0191583
JM
3561 while :
3562 do
3563 cat "conftest.in" "conftest.in" >"conftest.tmp"
3564 mv "conftest.tmp" "conftest.in"
3565 cp "conftest.in" "conftest.nl"
ec6a6fbe 3566 $as_echo 'GREP' >> "conftest.nl"
d0191583
JM
3567 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3568 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3569 ac_count=`expr $ac_count + 1`
3570 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3571 # Best one so far, save it but keep looking for a better one
3572 ac_cv_path_GREP="$ac_path_GREP"
3573 ac_path_GREP_max=$ac_count
3574 fi
3575 # 10*(2^10) chars as input seems more than enough
3576 test $ac_count -gt 10 && break
3577 done
3578 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3579esac
3580
ec6a6fbe
AK
3581 $ac_path_GREP_found && break 3
3582 done
d0191583 3583 done
ad6254c5 3584done
7a197a62 3585IFS=$as_save_IFS
ec6a6fbe
AK
3586 if test -z "$ac_cv_path_GREP"; then
3587 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3588$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
d0191583 3589 { (exit 1); exit 1; }; }
ec6a6fbe 3590 fi
80992638 3591else
d0191583 3592 ac_cv_path_GREP=$GREP
8106cdd5 3593fi
8106cdd5 3594
80992638 3595fi
ec6a6fbe
AK
3596{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3597$as_echo "$ac_cv_path_GREP" >&6; }
d0191583 3598 GREP="$ac_cv_path_GREP"
795ca3e5 3599
d0191583 3600
ec6a6fbe
AK
3601{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
3602$as_echo_n "checking for egrep... " >&6; }
d0191583 3603if test "${ac_cv_path_EGREP+set}" = set; then
ec6a6fbe 3604 $as_echo_n "(cached) " >&6
8a2fc586 3605else
d0191583
JM
3606 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3607 then ac_cv_path_EGREP="$GREP -E"
3608 else
ec6a6fbe 3609 if test -z "$EGREP"; then
d0191583 3610 ac_path_EGREP_found=false
ec6a6fbe
AK
3611 # Loop through the user's path and test for each of PROGNAME-LIST
3612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
d0191583 3613for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8a2fc586
AK
3614do
3615 IFS=$as_save_IFS
3616 test -z "$as_dir" && as_dir=.
d0191583 3617 for ac_prog in egrep; do
ec6a6fbe
AK
3618 for ac_exec_ext in '' $ac_executable_extensions; do
3619 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3620 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3621# Check for GNU ac_path_EGREP and select it if it is found.
d0191583
JM
3622 # Check for GNU $ac_path_EGREP
3623case `"$ac_path_EGREP" --version 2>&1` in
3624*GNU*)
3625 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3626*)
3627 ac_count=0
ec6a6fbe 3628 $as_echo_n 0123456789 >"conftest.in"
d0191583
JM
3629 while :
3630 do
3631 cat "conftest.in" "conftest.in" >"conftest.tmp"
3632 mv "conftest.tmp" "conftest.in"
3633 cp "conftest.in" "conftest.nl"
ec6a6fbe 3634 $as_echo 'EGREP' >> "conftest.nl"
d0191583
JM
3635 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3636 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3637 ac_count=`expr $ac_count + 1`
3638 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3639 # Best one so far, save it but keep looking for a better one
3640 ac_cv_path_EGREP="$ac_path_EGREP"
3641 ac_path_EGREP_max=$ac_count
3642 fi
3643 # 10*(2^10) chars as input seems more than enough
3644 test $ac_count -gt 10 && break
3645 done
3646 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8a2fc586 3647esac
8a2fc586 3648
ec6a6fbe
AK
3649 $ac_path_EGREP_found && break 3
3650 done
d0191583 3651 done
8a2fc586 3652done
7a197a62 3653IFS=$as_save_IFS
ec6a6fbe
AK
3654 if test -z "$ac_cv_path_EGREP"; then
3655 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3656$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
d0191583 3657 { (exit 1); exit 1; }; }
ec6a6fbe 3658 fi
d0191583
JM
3659else
3660 ac_cv_path_EGREP=$EGREP
3661fi
ad6254c5 3662
d0191583
JM
3663 fi
3664fi
ec6a6fbe
AK
3665{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3666$as_echo "$ac_cv_path_EGREP" >&6; }
d0191583 3667 EGREP="$ac_cv_path_EGREP"
ad6254c5
AK
3668
3669
d0191583 3670if test $ac_cv_c_compiler_gnu = yes; then
ec6a6fbe
AK
3671 { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3672$as_echo_n "checking whether $CC needs -traditional... " >&6; }
d0191583 3673if test "${ac_cv_prog_gcc_traditional+set}" = set; then
ec6a6fbe 3674 $as_echo_n "(cached) " >&6
8106cdd5 3675else
d0191583 3676 ac_pattern="Autoconf.*'x'"
ad6254c5 3677 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3678/* confdefs.h. */
3679_ACEOF
3680cat confdefs.h >>conftest.$ac_ext
3681cat >>conftest.$ac_ext <<_ACEOF
3682/* end confdefs.h. */
d0191583
JM
3683#include <sgtty.h>
3684Autoconf TIOCGETP
ad6254c5 3685_ACEOF
d0191583
JM
3686if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3687 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3688 ac_cv_prog_gcc_traditional=yes
8106cdd5 3689else
d0191583 3690 ac_cv_prog_gcc_traditional=no
80992638 3691fi
d0191583 3692rm -f conftest*
ad6254c5 3693
8106cdd5 3694
d0191583
JM
3695 if test $ac_cv_prog_gcc_traditional = no; then
3696 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3697/* confdefs.h. */
3698_ACEOF
3699cat confdefs.h >>conftest.$ac_ext
3700cat >>conftest.$ac_ext <<_ACEOF
3701/* end confdefs.h. */
d0191583
JM
3702#include <termio.h>
3703Autoconf TCGETA
ad6254c5 3704_ACEOF
d0191583
JM
3705if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3706 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3707 ac_cv_prog_gcc_traditional=yes
7a197a62 3708fi
d0191583 3709rm -f conftest*
795ca3e5 3710
d0191583 3711 fi
795ca3e5 3712fi
ec6a6fbe
AK
3713{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3714$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
d0191583
JM
3715 if test $ac_cv_prog_gcc_traditional = yes; then
3716 CC="$CC -traditional"
3717 fi
795ca3e5
AK
3718fi
3719
d0191583
JM
3720# Find a good install program. We prefer a C program (faster),
3721# so one script is as good as another. But avoid the broken or
3722# incompatible versions:
3723# SysV /etc/install, /usr/sbin/install
3724# SunOS /usr/etc/install
3725# IRIX /sbin/install
3726# AIX /bin/install
3727# AmigaOS /C/install, which installs bootblocks on floppy discs
3728# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3729# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3730# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3731# OS/2's system install, which has a completely different semantic
3732# ./install, which can be erroneously created by make from ./install.sh.
ec6a6fbe
AK
3733# Reject install programs that cannot install multiple files.
3734{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3735$as_echo_n "checking for a BSD-compatible install... " >&6; }
d0191583
JM
3736if test -z "$INSTALL"; then
3737if test "${ac_cv_path_install+set}" = set; then
ec6a6fbe 3738 $as_echo_n "(cached) " >&6
ad6254c5 3739else
d0191583
JM
3740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3741for as_dir in $PATH
3742do
3743 IFS=$as_save_IFS
3744 test -z "$as_dir" && as_dir=.
3745 # Account for people who put trailing slashes in PATH elements.
3746case $as_dir/ in
3747 ./ | .// | /cC/* | \
3748 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3749 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3750 /usr/ucb/* ) ;;
3751 *)
3752 # OSF1 and SCO ODT 3.0 have their own names for install.
3753 # Don't use installbsd from OSF since it installs stuff as root
3754 # by default.
3755 for ac_prog in ginstall scoinst install; do
3756 for ac_exec_ext in '' $ac_executable_extensions; do
3757 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3758 if test $ac_prog = install &&
3759 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3760 # AIX install. It has an incompatible calling convention.
3761 :
3762 elif test $ac_prog = install &&
3763 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3764 # program-specific install script used by HP pwplus--don't use.
3765 :
3766 else
ec6a6fbe
AK
3767 rm -rf conftest.one conftest.two conftest.dir
3768 echo one > conftest.one
3769 echo two > conftest.two
3770 mkdir conftest.dir
3771 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3772 test -s conftest.one && test -s conftest.two &&
3773 test -s conftest.dir/conftest.one &&
3774 test -s conftest.dir/conftest.two
3775 then
3776 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3777 break 3
3778 fi
d0191583
JM
3779 fi
3780 fi
3781 done
3782 done
3783 ;;
3784esac
ec6a6fbe 3785
d0191583
JM
3786done
3787IFS=$as_save_IFS
80992638 3788
ec6a6fbe 3789rm -rf conftest.one conftest.two conftest.dir
d0191583
JM
3790
3791fi
3792 if test "${ac_cv_path_install+set}" = set; then
3793 INSTALL=$ac_cv_path_install
7a197a62 3794 else
d0191583
JM
3795 # As a last resort, use the slow shell script. Don't cache a
3796 # value for INSTALL within a source directory, because that will
3797 # break other packages using the cache if that directory is
3798 # removed, or if the value is a relative name.
3799 INSTALL=$ac_install_sh
7a197a62 3800 fi
d0191583 3801fi
ec6a6fbe
AK
3802{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3803$as_echo "$INSTALL" >&6; }
ad6254c5 3804
d0191583
JM
3805# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3806# It thinks the first close brace ends the variable substitution.
3807test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
ad6254c5 3808
d0191583 3809test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
80992638 3810
d0191583
JM
3811test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3812
ec6a6fbe
AK
3813{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
3814$as_echo_n "checking whether ln -s works... " >&6; }
d0191583
JM
3815LN_S=$as_ln_s
3816if test "$LN_S" = "ln -s"; then
ec6a6fbe
AK
3817 { $as_echo "$as_me:$LINENO: result: yes" >&5
3818$as_echo "yes" >&6; }
d0191583 3819else
ec6a6fbe
AK
3820 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3821$as_echo "no, using $LN_S" >&6; }
795ca3e5 3822fi
d0191583 3823
ec6a6fbe
AK
3824{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3825$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3826set x ${MAKE-make}
3827ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
d0191583 3828if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 3829 $as_echo_n "(cached) " >&6
7a197a62 3830else
d0191583
JM
3831 cat >conftest.make <<\_ACEOF
3832SHELL = /bin/sh
3833all:
3834 @echo '@@@%%%=$(MAKE)=@@@%%%'
3835_ACEOF
3836# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3837case `${MAKE-make} -f conftest.make 2>/dev/null` in
3838 *@@@%%%=?*=@@@%%%*)
3839 eval ac_cv_prog_make_${ac_make}_set=yes;;
3840 *)
3841 eval ac_cv_prog_make_${ac_make}_set=no;;
3842esac
3843rm -f conftest.make
ad6254c5 3844fi
d0191583 3845if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
ec6a6fbe
AK
3846 { $as_echo "$as_me:$LINENO: result: yes" >&5
3847$as_echo "yes" >&6; }
d0191583
JM
3848 SET_MAKE=
3849else
ec6a6fbe
AK
3850 { $as_echo "$as_me:$LINENO: result: no" >&5
3851$as_echo "no" >&6; }
d0191583 3852 SET_MAKE="MAKE=${MAKE-make}"
795ca3e5 3853fi
8106cdd5 3854
ec6a6fbe
AK
3855{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
3856$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
5556819a
AK
3857if test -z "$MKDIR_P"; then
3858 if test "${ac_cv_path_mkdir+set}" = set; then
ec6a6fbe 3859 $as_echo_n "(cached) " >&6
5556819a
AK
3860else
3861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3862for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3863do
3864 IFS=$as_save_IFS
3865 test -z "$as_dir" && as_dir=.
3866 for ac_prog in mkdir gmkdir; do
3867 for ac_exec_ext in '' $ac_executable_extensions; do
3868 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3869 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3870 'mkdir (GNU coreutils) '* | \
3871 'mkdir (coreutils) '* | \
3872 'mkdir (fileutils) '4.1*)
3873 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3874 break 3;;
3875 esac
3876 done
3877 done
3878done
3879IFS=$as_save_IFS
3880
3881fi
3882
3883 if test "${ac_cv_path_mkdir+set}" = set; then
3884 MKDIR_P="$ac_cv_path_mkdir -p"
3885 else
3886 # As a last resort, use the slow shell script. Don't cache a
3887 # value for MKDIR_P within a source directory, because that will
3888 # break other packages using the cache if that directory is
3889 # removed, or if the value is a relative name.
3890 test -d ./--version && rmdir ./--version
3891 MKDIR_P="$ac_install_sh -d"
3892 fi
3893fi
ec6a6fbe
AK
3894{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
3895$as_echo "$MKDIR_P" >&6; }
5556819a 3896
d0191583
JM
3897if test -n "$ac_tool_prefix"; then
3898 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3899set dummy ${ac_tool_prefix}ranlib; ac_word=$2
ec6a6fbe
AK
3900{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3901$as_echo_n "checking for $ac_word... " >&6; }
d0191583 3902if test "${ac_cv_prog_RANLIB+set}" = set; then
ec6a6fbe 3903 $as_echo_n "(cached) " >&6
d0191583
JM
3904else
3905 if test -n "$RANLIB"; then
3906 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3907else
3908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3909for as_dir in $PATH
3910do
3911 IFS=$as_save_IFS
3912 test -z "$as_dir" && as_dir=.
3913 for ac_exec_ext in '' $ac_executable_extensions; do
3914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3915 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
ec6a6fbe 3916 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
3917 break 2
3918 fi
3919done
3920done
3921IFS=$as_save_IFS
8106cdd5 3922
795ca3e5 3923fi
d0191583
JM
3924fi
3925RANLIB=$ac_cv_prog_RANLIB
3926if test -n "$RANLIB"; then
ec6a6fbe
AK
3927 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
3928$as_echo "$RANLIB" >&6; }
d0191583 3929else
ec6a6fbe
AK
3930 { $as_echo "$as_me:$LINENO: result: no" >&5
3931$as_echo "no" >&6; }
d0191583
JM
3932fi
3933
8106cdd5 3934
ad6254c5 3935fi
d0191583
JM
3936if test -z "$ac_cv_prog_RANLIB"; then
3937 ac_ct_RANLIB=$RANLIB
3938 # Extract the first word of "ranlib", so it can be a program name with args.
3939set dummy ranlib; ac_word=$2
ec6a6fbe
AK
3940{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3941$as_echo_n "checking for $ac_word... " >&6; }
d0191583 3942if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
ec6a6fbe 3943 $as_echo_n "(cached) " >&6
ad6254c5 3944else
d0191583
JM
3945 if test -n "$ac_ct_RANLIB"; then
3946 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3947else
3948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3949for as_dir in $PATH
8106cdd5 3950do
d0191583
JM
3951 IFS=$as_save_IFS
3952 test -z "$as_dir" && as_dir=.
3953 for ac_exec_ext in '' $ac_executable_extensions; do
3954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3955 ac_cv_prog_ac_ct_RANLIB="ranlib"
ec6a6fbe 3956 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
3957 break 2
3958 fi
3959done
3960done
3961IFS=$as_save_IFS
3962
3963fi
3964fi
3965ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3966if test -n "$ac_ct_RANLIB"; then
ec6a6fbe
AK
3967 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3968$as_echo "$ac_ct_RANLIB" >&6; }
ad6254c5 3969else
ec6a6fbe
AK
3970 { $as_echo "$as_me:$LINENO: result: no" >&5
3971$as_echo "no" >&6; }
d0191583 3972fi
ad6254c5 3973
d0191583
JM
3974 if test "x$ac_ct_RANLIB" = x; then
3975 RANLIB=":"
3976 else
3977 case $cross_compiling:$ac_tool_warned in
3978yes:)
ec6a6fbe
AK
3979{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3980$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
d0191583
JM
3981ac_tool_warned=yes ;;
3982esac
3983 RANLIB=$ac_ct_RANLIB
3984 fi
3985else
3986 RANLIB="$ac_cv_prog_RANLIB"
ad6254c5 3987fi
7a197a62 3988
d0191583
JM
3989# Extract the first word of "cflow", so it can be a program name with args.
3990set dummy cflow; ac_word=$2
ec6a6fbe
AK
3991{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3992$as_echo_n "checking for $ac_word... " >&6; }
d0191583 3993if test "${ac_cv_path_CFLOW_CMD+set}" = set; then
ec6a6fbe 3994 $as_echo_n "(cached) " >&6
d0191583
JM
3995else
3996 case $CFLOW_CMD in
3997 [\\/]* | ?:[\\/]*)
3998 ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path.
3999 ;;
4000 *)
4001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4002for as_dir in $PATH
4003do
4004 IFS=$as_save_IFS
4005 test -z "$as_dir" && as_dir=.
4006 for ac_exec_ext in '' $ac_executable_extensions; do
4007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4008 ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 4009 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
4010 break 2
4011 fi
4012done
4013done
4014IFS=$as_save_IFS
ad6254c5 4015
d0191583 4016 ;;
7a197a62 4017esac
d0191583
JM
4018fi
4019CFLOW_CMD=$ac_cv_path_CFLOW_CMD
4020if test -n "$CFLOW_CMD"; then
ec6a6fbe
AK
4021 { $as_echo "$as_me:$LINENO: result: $CFLOW_CMD" >&5
4022$as_echo "$CFLOW_CMD" >&6; }
80992638 4023else
ec6a6fbe
AK
4024 { $as_echo "$as_me:$LINENO: result: no" >&5
4025$as_echo "no" >&6; }
795ca3e5 4026fi
7a197a62 4027
ad6254c5 4028
d0191583
JM
4029# Extract the first word of "cscope", so it can be a program name with args.
4030set dummy cscope; ac_word=$2
ec6a6fbe
AK
4031{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4032$as_echo_n "checking for $ac_word... " >&6; }
d0191583 4033if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then
ec6a6fbe 4034 $as_echo_n "(cached) " >&6
d0191583
JM
4035else
4036 case $CSCOPE_CMD in
4037 [\\/]* | ?:[\\/]*)
4038 ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path.
4039 ;;
4040 *)
4041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4042for as_dir in $PATH
4043do
4044 IFS=$as_save_IFS
4045 test -z "$as_dir" && as_dir=.
4046 for ac_exec_ext in '' $ac_executable_extensions; do
4047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4048 ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 4049 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
4050 break 2
4051 fi
795ca3e5 4052done
d0191583
JM
4053done
4054IFS=$as_save_IFS
795ca3e5 4055
d0191583
JM
4056 ;;
4057esac
ad6254c5 4058fi
d0191583
JM
4059CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD
4060if test -n "$CSCOPE_CMD"; then
ec6a6fbe
AK
4061 { $as_echo "$as_me:$LINENO: result: $CSCOPE_CMD" >&5
4062$as_echo "$CSCOPE_CMD" >&6; }
795ca3e5 4063else
ec6a6fbe
AK
4064 { $as_echo "$as_me:$LINENO: result: no" >&5
4065$as_echo "no" >&6; }
795ca3e5 4066fi
ad6254c5 4067
7a197a62 4068
ad6254c5 4069
d0191583
JM
4070################################################################################
4071
4072
4073
4074
4075
4076ac_header_dirent=no
4077for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
ec6a6fbe
AK
4078 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4079{ $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4080$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
d0191583 4081if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 4082 $as_echo_n "(cached) " >&6
d0191583 4083else
ad6254c5 4084 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4085/* confdefs.h. */
4086_ACEOF
4087cat confdefs.h >>conftest.$ac_ext
4088cat >>conftest.$ac_ext <<_ACEOF
4089/* end confdefs.h. */
d0191583
JM
4090#include <sys/types.h>
4091#include <$ac_hdr>
4092
4093int
4094main ()
4095{
4096if ((DIR *) 0)
4097return 0;
4098 ;
4099 return 0;
4100}
ad6254c5 4101_ACEOF
d0191583
JM
4102rm -f conftest.$ac_objext
4103if { (ac_try="$ac_compile"
7a197a62
AK
4104case "(($ac_try" in
4105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4106 *) ac_try_echo=$ac_try;;
4107esac
ec6a6fbe
AK
4108eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4109$as_echo "$ac_try_echo") >&5
d0191583 4110 (eval "$ac_compile") 2>conftest.er1
ad6254c5
AK
4111 ac_status=$?
4112 grep -v '^ *+' conftest.er1 >conftest.err
4113 rm -f conftest.er1
4114 cat conftest.err >&5
ec6a6fbe 4115 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4116 (exit $ac_status); } && {
4117 test -z "$ac_c_werror_flag" ||
25fbec5b 4118 test ! -s conftest.err
d0191583
JM
4119 } && test -s conftest.$ac_objext; then
4120 eval "$as_ac_Header=yes"
ad6254c5 4121else
ec6a6fbe 4122 $as_echo "$as_me: failed program was:" >&5
ad6254c5 4123sed 's/^/| /' conftest.$ac_ext >&5
8106cdd5 4124
d0191583 4125 eval "$as_ac_Header=no"
795ca3e5 4126fi
7a197a62 4127
d0191583 4128rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
795ca3e5 4129fi
ec6a6fbe
AK
4130ac_res=`eval 'as_val=${'$as_ac_Header'}
4131 $as_echo "$as_val"'`
4132 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4133$as_echo "$ac_res" >&6; }
4134as_val=`eval 'as_val=${'$as_ac_Header'}
4135 $as_echo "$as_val"'`
4136 if test "x$as_val" = x""yes; then
d0191583 4137 cat >>confdefs.h <<_ACEOF
ec6a6fbe 4138#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
d0191583 4139_ACEOF
795ca3e5 4140
d0191583
JM
4141ac_header_dirent=$ac_hdr; break
4142fi
ad6254c5 4143
d0191583
JM
4144done
4145# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4146if test $ac_header_dirent = dirent.h; then
ec6a6fbe
AK
4147 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
4148$as_echo_n "checking for library containing opendir... " >&6; }
d0191583 4149if test "${ac_cv_search_opendir+set}" = set; then
ec6a6fbe 4150 $as_echo_n "(cached) " >&6
ad6254c5 4151else
d0191583
JM
4152 ac_func_search_save_LIBS=$LIBS
4153cat >conftest.$ac_ext <<_ACEOF
4154/* confdefs.h. */
4155_ACEOF
4156cat confdefs.h >>conftest.$ac_ext
4157cat >>conftest.$ac_ext <<_ACEOF
4158/* end confdefs.h. */
ad6254c5 4159
d0191583
JM
4160/* Override any GCC internal prototype to avoid an error.
4161 Use char because int might match the return type of a GCC
4162 builtin and then its argument prototype would still apply. */
4163#ifdef __cplusplus
4164extern "C"
4165#endif
4166char opendir ();
4167int
4168main ()
4169{
4170return opendir ();
4171 ;
4172 return 0;
4173}
4174_ACEOF
4175for ac_lib in '' dir; do
4176 if test -z "$ac_lib"; then
4177 ac_res="none required"
4178 else
4179 ac_res=-l$ac_lib
4180 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4181 fi
4182 rm -f conftest.$ac_objext conftest$ac_exeext
4183if { (ac_try="$ac_link"
4184case "(($ac_try" in
4185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4186 *) ac_try_echo=$ac_try;;
4187esac
ec6a6fbe
AK
4188eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4189$as_echo "$ac_try_echo") >&5
d0191583
JM
4190 (eval "$ac_link") 2>conftest.er1
4191 ac_status=$?
4192 grep -v '^ *+' conftest.er1 >conftest.err
4193 rm -f conftest.er1
4194 cat conftest.err >&5
ec6a6fbe 4195 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4196 (exit $ac_status); } && {
4197 test -z "$ac_c_werror_flag" ||
4198 test ! -s conftest.err
ec6a6fbe
AK
4199 } && test -s conftest$ac_exeext && {
4200 test "$cross_compiling" = yes ||
4201 $as_test_x conftest$ac_exeext
4202 }; then
d0191583
JM
4203 ac_cv_search_opendir=$ac_res
4204else
ec6a6fbe 4205 $as_echo "$as_me: failed program was:" >&5
d0191583 4206sed 's/^/| /' conftest.$ac_ext >&5
ad6254c5 4207
ad6254c5 4208
795ca3e5 4209fi
ad6254c5 4210
ec6a6fbe 4211rm -rf conftest.dSYM
d0191583
JM
4212rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4213 conftest$ac_exeext
4214 if test "${ac_cv_search_opendir+set}" = set; then
4215 break
7a197a62 4216fi
d0191583
JM
4217done
4218if test "${ac_cv_search_opendir+set}" = set; then
4219 :
7a197a62 4220else
d0191583 4221 ac_cv_search_opendir=no
7a197a62 4222fi
d0191583
JM
4223rm conftest.$ac_ext
4224LIBS=$ac_func_search_save_LIBS
7a197a62 4225fi
ec6a6fbe
AK
4226{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4227$as_echo "$ac_cv_search_opendir" >&6; }
d0191583
JM
4228ac_res=$ac_cv_search_opendir
4229if test "$ac_res" != no; then
4230 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7a197a62 4231
d0191583 4232fi
7a197a62 4233
7a197a62 4234else
ec6a6fbe
AK
4235 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
4236$as_echo_n "checking for library containing opendir... " >&6; }
d0191583 4237if test "${ac_cv_search_opendir+set}" = set; then
ec6a6fbe 4238 $as_echo_n "(cached) " >&6
7a197a62 4239else
d0191583
JM
4240 ac_func_search_save_LIBS=$LIBS
4241cat >conftest.$ac_ext <<_ACEOF
4242/* confdefs.h. */
4243_ACEOF
4244cat confdefs.h >>conftest.$ac_ext
4245cat >>conftest.$ac_ext <<_ACEOF
4246/* end confdefs.h. */
7a197a62 4247
d0191583
JM
4248/* Override any GCC internal prototype to avoid an error.
4249 Use char because int might match the return type of a GCC
4250 builtin and then its argument prototype would still apply. */
4251#ifdef __cplusplus
4252extern "C"
4253#endif
4254char opendir ();
4255int
4256main ()
4257{
4258return opendir ();
4259 ;
4260 return 0;
4261}
4262_ACEOF
4263for ac_lib in '' x; do
4264 if test -z "$ac_lib"; then
4265 ac_res="none required"
4266 else
4267 ac_res=-l$ac_lib
4268 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4269 fi
4270 rm -f conftest.$ac_objext conftest$ac_exeext
4271if { (ac_try="$ac_link"
4272case "(($ac_try" in
4273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4274 *) ac_try_echo=$ac_try;;
4275esac
ec6a6fbe
AK
4276eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4277$as_echo "$ac_try_echo") >&5
d0191583
JM
4278 (eval "$ac_link") 2>conftest.er1
4279 ac_status=$?
4280 grep -v '^ *+' conftest.er1 >conftest.err
4281 rm -f conftest.er1
4282 cat conftest.err >&5
ec6a6fbe 4283 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4284 (exit $ac_status); } && {
4285 test -z "$ac_c_werror_flag" ||
4286 test ! -s conftest.err
ec6a6fbe
AK
4287 } && test -s conftest$ac_exeext && {
4288 test "$cross_compiling" = yes ||
4289 $as_test_x conftest$ac_exeext
4290 }; then
d0191583
JM
4291 ac_cv_search_opendir=$ac_res
4292else
ec6a6fbe 4293 $as_echo "$as_me: failed program was:" >&5
d0191583 4294sed 's/^/| /' conftest.$ac_ext >&5
7a197a62
AK
4295
4296
4297fi
4298
ec6a6fbe 4299rm -rf conftest.dSYM
d0191583
JM
4300rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4301 conftest$ac_exeext
4302 if test "${ac_cv_search_opendir+set}" = set; then
4303 break
7a197a62 4304fi
d0191583
JM
4305done
4306if test "${ac_cv_search_opendir+set}" = set; then
4307 :
7a197a62 4308else
d0191583 4309 ac_cv_search_opendir=no
7a197a62 4310fi
d0191583
JM
4311rm conftest.$ac_ext
4312LIBS=$ac_func_search_save_LIBS
4313fi
ec6a6fbe
AK
4314{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4315$as_echo "$ac_cv_search_opendir" >&6; }
d0191583
JM
4316ac_res=$ac_cv_search_opendir
4317if test "$ac_res" != no; then
4318 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7a197a62 4319
7a197a62 4320fi
7a197a62 4321
d0191583 4322fi
7a197a62 4323
ec6a6fbe
AK
4324{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4325$as_echo_n "checking for ANSI C header files... " >&6; }
7a197a62 4326if test "${ac_cv_header_stdc+set}" = set; then
ec6a6fbe 4327 $as_echo_n "(cached) " >&6
7a197a62
AK
4328else
4329 cat >conftest.$ac_ext <<_ACEOF
4330/* confdefs.h. */
4331_ACEOF
4332cat confdefs.h >>conftest.$ac_ext
4333cat >>conftest.$ac_ext <<_ACEOF
4334/* end confdefs.h. */
4335#include <stdlib.h>
4336#include <stdarg.h>
4337#include <string.h>
4338#include <float.h>
4339
4340int
4341main ()
4342{
4343
4344 ;
4345 return 0;
4346}
4347_ACEOF
4348rm -f conftest.$ac_objext
4349if { (ac_try="$ac_compile"
4350case "(($ac_try" in
4351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4352 *) ac_try_echo=$ac_try;;
4353esac
ec6a6fbe
AK
4354eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4355$as_echo "$ac_try_echo") >&5
7a197a62
AK
4356 (eval "$ac_compile") 2>conftest.er1
4357 ac_status=$?
4358 grep -v '^ *+' conftest.er1 >conftest.err
4359 rm -f conftest.er1
4360 cat conftest.err >&5
ec6a6fbe 4361 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4362 (exit $ac_status); } && {
4363 test -z "$ac_c_werror_flag" ||
4364 test ! -s conftest.err
4365 } && test -s conftest.$ac_objext; then
7a197a62
AK
4366 ac_cv_header_stdc=yes
4367else
ec6a6fbe 4368 $as_echo "$as_me: failed program was:" >&5
7a197a62
AK
4369sed 's/^/| /' conftest.$ac_ext >&5
4370
4371 ac_cv_header_stdc=no
4372fi
4373
4374rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4375
4376if test $ac_cv_header_stdc = yes; then
4377 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
ad6254c5 4378 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4379/* confdefs.h. */
4380_ACEOF
4381cat confdefs.h >>conftest.$ac_ext
4382cat >>conftest.$ac_ext <<_ACEOF
4383/* end confdefs.h. */
4384#include <string.h>
8106cdd5 4385
ad6254c5
AK
4386_ACEOF
4387if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4388 $EGREP "memchr" >/dev/null 2>&1; then
4389 :
4390else
4391 ac_cv_header_stdc=no
80992638 4392fi
ad6254c5 4393rm -f conftest*
795ca3e5
AK
4394
4395fi
4396
ad6254c5
AK
4397if test $ac_cv_header_stdc = yes; then
4398 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4399 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4400/* confdefs.h. */
4401_ACEOF
4402cat confdefs.h >>conftest.$ac_ext
4403cat >>conftest.$ac_ext <<_ACEOF
4404/* end confdefs.h. */
80992638 4405#include <stdlib.h>
ad6254c5
AK
4406
4407_ACEOF
80992638 4408if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ad6254c5
AK
4409 $EGREP "free" >/dev/null 2>&1; then
4410 :
795ca3e5 4411else
ad6254c5 4412 ac_cv_header_stdc=no
795ca3e5 4413fi
80992638 4414rm -f conftest*
8106cdd5 4415
795ca3e5
AK
4416fi
4417
ad6254c5
AK
4418if test $ac_cv_header_stdc = yes; then
4419 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4420 if test "$cross_compiling" = yes; then
4421 :
795ca3e5 4422else
ad6254c5 4423 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4424/* confdefs.h. */
4425_ACEOF
4426cat confdefs.h >>conftest.$ac_ext
4427cat >>conftest.$ac_ext <<_ACEOF
4428/* end confdefs.h. */
4429#include <ctype.h>
7a197a62 4430#include <stdlib.h>
ad6254c5
AK
4431#if ((' ' & 0x0FF) == 0x020)
4432# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4433# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4434#else
4435# define ISLOWER(c) \
8a2fc586
AK
4436 (('a' <= (c) && (c) <= 'i') \
4437 || ('j' <= (c) && (c) <= 'r') \
4438 || ('s' <= (c) && (c) <= 'z'))
ad6254c5 4439# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
80992638 4440#endif
ad6254c5
AK
4441
4442#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4443int
4444main ()
4445{
4446 int i;
4447 for (i = 0; i < 256; i++)
4448 if (XOR (islower (i), ISLOWER (i))
8a2fc586 4449 || toupper (i) != TOUPPER (i))
7a197a62
AK
4450 return 2;
4451 return 0;
ad6254c5
AK
4452}
4453_ACEOF
4454rm -f conftest$ac_exeext
7a197a62
AK
4455if { (ac_try="$ac_link"
4456case "(($ac_try" in
4457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4458 *) ac_try_echo=$ac_try;;
4459esac
ec6a6fbe
AK
4460eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4461$as_echo "$ac_try_echo") >&5
7a197a62 4462 (eval "$ac_link") 2>&5
ad6254c5 4463 ac_status=$?
ec6a6fbe 4464 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 4465 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
4466 { (case "(($ac_try" in
4467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4468 *) ac_try_echo=$ac_try;;
4469esac
ec6a6fbe
AK
4470eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4471$as_echo "$ac_try_echo") >&5
7a197a62 4472 (eval "$ac_try") 2>&5
ad6254c5 4473 ac_status=$?
ec6a6fbe 4474 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
4475 (exit $ac_status); }; }; then
4476 :
795ca3e5 4477else
ec6a6fbe
AK
4478 $as_echo "$as_me: program exited with status $ac_status" >&5
4479$as_echo "$as_me: failed program was:" >&5
ad6254c5 4480sed 's/^/| /' conftest.$ac_ext >&5
8106cdd5 4481
ad6254c5
AK
4482( exit $ac_status )
4483ac_cv_header_stdc=no
80992638 4484fi
ec6a6fbe 4485rm -rf conftest.dSYM
7a197a62 4486rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 4487fi
7a197a62
AK
4488
4489
ad6254c5
AK
4490fi
4491fi
ec6a6fbe
AK
4492{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4493$as_echo "$ac_cv_header_stdc" >&6; }
ad6254c5
AK
4494if test $ac_cv_header_stdc = yes; then
4495
4496cat >>confdefs.h <<\_ACEOF
4497#define STDC_HEADERS 1
4498_ACEOF
795ca3e5
AK
4499
4500fi
4501
ec6a6fbe
AK
4502{ $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
4503$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
ad6254c5 4504if test "${ac_cv_header_sys_wait_h+set}" = set; then
ec6a6fbe 4505 $as_echo_n "(cached) " >&6
8106cdd5 4506else
ad6254c5 4507 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4508/* confdefs.h. */
4509_ACEOF
4510cat confdefs.h >>conftest.$ac_ext
4511cat >>conftest.$ac_ext <<_ACEOF
4512/* end confdefs.h. */
80992638 4513#include <sys/types.h>
ad6254c5
AK
4514#include <sys/wait.h>
4515#ifndef WEXITSTATUS
7a197a62 4516# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
ad6254c5
AK
4517#endif
4518#ifndef WIFEXITED
4519# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4520#endif
4521
4522int
4523main ()
4524{
4525 int s;
4526 wait (&s);
4527 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4528 ;
4529 return 0;
4530}
4531_ACEOF
4532rm -f conftest.$ac_objext
7a197a62
AK
4533if { (ac_try="$ac_compile"
4534case "(($ac_try" in
4535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4536 *) ac_try_echo=$ac_try;;
4537esac
ec6a6fbe
AK
4538eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4539$as_echo "$ac_try_echo") >&5
7a197a62 4540 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4541 ac_status=$?
8a2fc586
AK
4542 grep -v '^ *+' conftest.er1 >conftest.err
4543 rm -f conftest.er1
4544 cat conftest.err >&5
ec6a6fbe 4545 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4546 (exit $ac_status); } && {
4547 test -z "$ac_c_werror_flag" ||
4548 test ! -s conftest.err
4549 } && test -s conftest.$ac_objext; then
ad6254c5
AK
4550 ac_cv_header_sys_wait_h=yes
4551else
ec6a6fbe 4552 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
4553sed 's/^/| /' conftest.$ac_ext >&5
4554
7a197a62 4555 ac_cv_header_sys_wait_h=no
8106cdd5 4556fi
7a197a62
AK
4557
4558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
795ca3e5 4559fi
ec6a6fbe
AK
4560{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
4561$as_echo "$ac_cv_header_sys_wait_h" >&6; }
ad6254c5 4562if test $ac_cv_header_sys_wait_h = yes; then
8106cdd5 4563
ad6254c5
AK
4564cat >>confdefs.h <<\_ACEOF
4565#define HAVE_SYS_WAIT_H 1
4566_ACEOF
795ca3e5
AK
4567
4568fi
4569
ec6a6fbe
AK
4570{ $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4571$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
ad6254c5 4572if test "${ac_cv_header_time+set}" = set; then
ec6a6fbe 4573 $as_echo_n "(cached) " >&6
795ca3e5 4574else
ad6254c5 4575 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4576/* confdefs.h. */
4577_ACEOF
4578cat confdefs.h >>conftest.$ac_ext
4579cat >>conftest.$ac_ext <<_ACEOF
4580/* end confdefs.h. */
795ca3e5
AK
4581#include <sys/types.h>
4582#include <sys/time.h>
4583#include <time.h>
ad6254c5
AK
4584
4585int
4586main ()
4587{
4588if ((struct tm *) 0)
4589return 0;
4590 ;
4591 return 0;
4592}
4593_ACEOF
4594rm -f conftest.$ac_objext
7a197a62
AK
4595if { (ac_try="$ac_compile"
4596case "(($ac_try" in
4597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4598 *) ac_try_echo=$ac_try;;
4599esac
ec6a6fbe
AK
4600eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4601$as_echo "$ac_try_echo") >&5
7a197a62 4602 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4603 ac_status=$?
8a2fc586
AK
4604 grep -v '^ *+' conftest.er1 >conftest.err
4605 rm -f conftest.er1
4606 cat conftest.err >&5
ec6a6fbe 4607 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4608 (exit $ac_status); } && {
4609 test -z "$ac_c_werror_flag" ||
4610 test ! -s conftest.err
4611 } && test -s conftest.$ac_objext; then
795ca3e5
AK
4612 ac_cv_header_time=yes
4613else
ec6a6fbe 4614 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
4615sed 's/^/| /' conftest.$ac_ext >&5
4616
7a197a62 4617 ac_cv_header_time=no
795ca3e5 4618fi
7a197a62
AK
4619
4620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
795ca3e5 4621fi
ec6a6fbe
AK
4622{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4623$as_echo "$ac_cv_header_time" >&6; }
80992638 4624if test $ac_cv_header_time = yes; then
ad6254c5
AK
4625
4626cat >>confdefs.h <<\_ACEOF
795ca3e5 4627#define TIME_WITH_SYS_TIME 1
ad6254c5 4628_ACEOF
b896caa1 4629
8106cdd5 4630fi
b896caa1 4631
b896caa1 4632
d0191583
JM
4633# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4644 inttypes.h stdint.h unistd.h
4645do
ec6a6fbe
AK
4646as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4647{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4648$as_echo_n "checking for $ac_header... " >&6; }
d0191583 4649if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 4650 $as_echo_n "(cached) " >&6
d0191583
JM
4651else
4652 cat >conftest.$ac_ext <<_ACEOF
4653/* confdefs.h. */
4654_ACEOF
4655cat confdefs.h >>conftest.$ac_ext
4656cat >>conftest.$ac_ext <<_ACEOF
4657/* end confdefs.h. */
4658$ac_includes_default
4659
4660#include <$ac_header>
4661_ACEOF
4662rm -f conftest.$ac_objext
4663if { (ac_try="$ac_compile"
4664case "(($ac_try" in
4665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4666 *) ac_try_echo=$ac_try;;
4667esac
ec6a6fbe
AK
4668eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4669$as_echo "$ac_try_echo") >&5
d0191583
JM
4670 (eval "$ac_compile") 2>conftest.er1
4671 ac_status=$?
4672 grep -v '^ *+' conftest.er1 >conftest.err
4673 rm -f conftest.er1
4674 cat conftest.err >&5
ec6a6fbe 4675 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4676 (exit $ac_status); } && {
4677 test -z "$ac_c_werror_flag" ||
4678 test ! -s conftest.err
4679 } && test -s conftest.$ac_objext; then
4680 eval "$as_ac_Header=yes"
4681else
ec6a6fbe 4682 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
4683sed 's/^/| /' conftest.$ac_ext >&5
4684
4685 eval "$as_ac_Header=no"
4686fi
4687
4688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4689fi
ec6a6fbe
AK
4690ac_res=`eval 'as_val=${'$as_ac_Header'}
4691 $as_echo "$as_val"'`
4692 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4693$as_echo "$ac_res" >&6; }
4694as_val=`eval 'as_val=${'$as_ac_Header'}
4695 $as_echo "$as_val"'`
4696 if test "x$as_val" = x""yes; then
d0191583 4697 cat >>confdefs.h <<_ACEOF
ec6a6fbe 4698#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
d0191583
JM
4699_ACEOF
4700
4701fi
4702
4703done
4704
b896caa1 4705
b896caa1
AK
4706
4707
795ca3e5 4708
8106cdd5 4709
80992638 4710
795ca3e5 4711
a38df97f 4712
80992638 4713
d0191583
JM
4714
4715
4716
4717
4718
4719for ac_header in locale.h stddef.h syslog.h sys/file.h sys/time.h assert.h \
4720 libgen.h signal.h sys/mman.h sys/resource.h sys/utsname.h sys/wait.h time.h
ad6254c5 4721do
ec6a6fbe 4722as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
d0191583 4723if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
4724 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4725$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 4726if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 4727 $as_echo_n "(cached) " >&6
d0191583 4728fi
ec6a6fbe
AK
4729ac_res=`eval 'as_val=${'$as_ac_Header'}
4730 $as_echo "$as_val"'`
4731 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4732$as_echo "$ac_res" >&6; }
ad6254c5 4733else
d0191583 4734 # Is the header compilable?
ec6a6fbe
AK
4735{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4736$as_echo_n "checking $ac_header usability... " >&6; }
d0191583 4737cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4738/* confdefs.h. */
4739_ACEOF
4740cat confdefs.h >>conftest.$ac_ext
4741cat >>conftest.$ac_ext <<_ACEOF
4742/* end confdefs.h. */
4743$ac_includes_default
ad6254c5
AK
4744#include <$ac_header>
4745_ACEOF
4746rm -f conftest.$ac_objext
7a197a62
AK
4747if { (ac_try="$ac_compile"
4748case "(($ac_try" in
4749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4750 *) ac_try_echo=$ac_try;;
4751esac
ec6a6fbe
AK
4752eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4753$as_echo "$ac_try_echo") >&5
7a197a62 4754 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4755 ac_status=$?
8a2fc586
AK
4756 grep -v '^ *+' conftest.er1 >conftest.err
4757 rm -f conftest.er1
4758 cat conftest.err >&5
ec6a6fbe 4759 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4760 (exit $ac_status); } && {
4761 test -z "$ac_c_werror_flag" ||
4762 test ! -s conftest.err
4763 } && test -s conftest.$ac_objext; then
d0191583 4764 ac_header_compiler=yes
ad6254c5 4765else
ec6a6fbe 4766 $as_echo "$as_me: failed program was:" >&5
ad6254c5 4767sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 4768
d0191583 4769 ac_header_compiler=no
ad6254c5 4770fi
7a197a62
AK
4771
4772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
4773{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4774$as_echo "$ac_header_compiler" >&6; }
d0191583
JM
4775
4776# Is the header present?
ec6a6fbe
AK
4777{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4778$as_echo_n "checking $ac_header presence... " >&6; }
d0191583
JM
4779cat >conftest.$ac_ext <<_ACEOF
4780/* confdefs.h. */
4781_ACEOF
4782cat confdefs.h >>conftest.$ac_ext
4783cat >>conftest.$ac_ext <<_ACEOF
4784/* end confdefs.h. */
4785#include <$ac_header>
4786_ACEOF
4787if { (ac_try="$ac_cpp conftest.$ac_ext"
4788case "(($ac_try" in
4789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4790 *) ac_try_echo=$ac_try;;
4791esac
ec6a6fbe
AK
4792eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4793$as_echo "$ac_try_echo") >&5
d0191583
JM
4794 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4795 ac_status=$?
4796 grep -v '^ *+' conftest.er1 >conftest.err
4797 rm -f conftest.er1
4798 cat conftest.err >&5
ec6a6fbe 4799 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4800 (exit $ac_status); } >/dev/null && {
4801 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4802 test ! -s conftest.err
4803 }; then
4804 ac_header_preproc=yes
4805else
ec6a6fbe 4806 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
4807sed 's/^/| /' conftest.$ac_ext >&5
4808
4809 ac_header_preproc=no
4810fi
4811
4812rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
4813{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4814$as_echo "$ac_header_preproc" >&6; }
d0191583
JM
4815
4816# So? What about this header?
4817case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4818 yes:no: )
ec6a6fbe
AK
4819 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4820$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4821 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4822$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
d0191583
JM
4823 ac_header_preproc=yes
4824 ;;
4825 no:yes:* )
ec6a6fbe
AK
4826 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4827$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4828 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4829$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4830 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4831$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4832 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4833$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4834 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4835$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4836 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4837$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
d0191583
JM
4838
4839 ;;
4840esac
ec6a6fbe
AK
4841{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4842$as_echo_n "checking for $ac_header... " >&6; }
d0191583 4843if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 4844 $as_echo_n "(cached) " >&6
d0191583
JM
4845else
4846 eval "$as_ac_Header=\$ac_header_preproc"
a38df97f 4847fi
ec6a6fbe
AK
4848ac_res=`eval 'as_val=${'$as_ac_Header'}
4849 $as_echo "$as_val"'`
4850 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4851$as_echo "$ac_res" >&6; }
d0191583
JM
4852
4853fi
ec6a6fbe
AK
4854as_val=`eval 'as_val=${'$as_ac_Header'}
4855 $as_echo "$as_val"'`
4856 if test "x$as_val" = x""yes; then
ad6254c5 4857 cat >>confdefs.h <<_ACEOF
ec6a6fbe 4858#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 4859_ACEOF
a38df97f 4860
d0191583 4861else
ec6a6fbe
AK
4862 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
4863$as_echo "$as_me: error: bailing out" >&2;}
d0191583 4864 { (exit 1); exit 1; }; }
80992638
AK
4865fi
4866
ad6254c5
AK
4867done
4868
7d1552c9 4869
d0191583
JM
4870case "$host_os" in
4871 linux*)
7d1552c9 4872
80992638 4873
5a52dca9 4874
d0191583 4875for ac_header in asm/byteorder.h linux/fs.h malloc.h
ad6254c5 4876do
ec6a6fbe 4877as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 4878if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
4879 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4880$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 4881if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 4882 $as_echo_n "(cached) " >&6
ad6254c5 4883fi
ec6a6fbe
AK
4884ac_res=`eval 'as_val=${'$as_ac_Header'}
4885 $as_echo "$as_val"'`
4886 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4887$as_echo "$ac_res" >&6; }
ad6254c5
AK
4888else
4889 # Is the header compilable?
ec6a6fbe
AK
4890{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4891$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 4892cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4893/* confdefs.h. */
4894_ACEOF
4895cat confdefs.h >>conftest.$ac_ext
4896cat >>conftest.$ac_ext <<_ACEOF
4897/* end confdefs.h. */
4898$ac_includes_default
4899#include <$ac_header>
4900_ACEOF
4901rm -f conftest.$ac_objext
7a197a62
AK
4902if { (ac_try="$ac_compile"
4903case "(($ac_try" in
4904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4905 *) ac_try_echo=$ac_try;;
4906esac
ec6a6fbe
AK
4907eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4908$as_echo "$ac_try_echo") >&5
7a197a62 4909 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4910 ac_status=$?
8a2fc586
AK
4911 grep -v '^ *+' conftest.er1 >conftest.err
4912 rm -f conftest.er1
4913 cat conftest.err >&5
ec6a6fbe 4914 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4915 (exit $ac_status); } && {
4916 test -z "$ac_c_werror_flag" ||
4917 test ! -s conftest.err
4918 } && test -s conftest.$ac_objext; then
fc54be10
AK
4919 ac_header_compiler=yes
4920else
ec6a6fbe 4921 $as_echo "$as_me: failed program was:" >&5
fc54be10
AK
4922sed 's/^/| /' conftest.$ac_ext >&5
4923
4924 ac_header_compiler=no
4925fi
4926
4927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
4928{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4929$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
4930
4931# Is the header present?
ec6a6fbe
AK
4932{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4933$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 4934cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4935/* confdefs.h. */
4936_ACEOF
4937cat confdefs.h >>conftest.$ac_ext
4938cat >>conftest.$ac_ext <<_ACEOF
4939/* end confdefs.h. */
4940#include <$ac_header>
4941_ACEOF
7a197a62
AK
4942if { (ac_try="$ac_cpp conftest.$ac_ext"
4943case "(($ac_try" in
4944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4945 *) ac_try_echo=$ac_try;;
4946esac
ec6a6fbe
AK
4947eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4948$as_echo "$ac_try_echo") >&5
7a197a62 4949 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
4950 ac_status=$?
4951 grep -v '^ *+' conftest.er1 >conftest.err
4952 rm -f conftest.er1
4953 cat conftest.err >&5
ec6a6fbe 4954 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4955 (exit $ac_status); } >/dev/null && {
4956 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4957 test ! -s conftest.err
4958 }; then
ad6254c5
AK
4959 ac_header_preproc=yes
4960else
ec6a6fbe 4961 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
4962sed 's/^/| /' conftest.$ac_ext >&5
4963
4964 ac_header_preproc=no
4965fi
7a197a62 4966
ad6254c5 4967rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
4968{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4969$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
4970
4971# So? What about this header?
8a2fc586
AK
4972case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4973 yes:no: )
ec6a6fbe
AK
4974 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4975$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4976 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4977$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 4978 ac_header_preproc=yes
ad6254c5 4979 ;;
8a2fc586 4980 no:yes:* )
ec6a6fbe
AK
4981 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4982$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4983 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4984$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4985 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4986$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4987 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4988$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4989 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4990$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4991 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4992$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 4993
ad6254c5
AK
4994 ;;
4995esac
ec6a6fbe
AK
4996{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4997$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 4998if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 4999 $as_echo_n "(cached) " >&6
ad6254c5 5000else
8a2fc586 5001 eval "$as_ac_Header=\$ac_header_preproc"
b896caa1 5002fi
ec6a6fbe
AK
5003ac_res=`eval 'as_val=${'$as_ac_Header'}
5004 $as_echo "$as_val"'`
5005 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5006$as_echo "$ac_res" >&6; }
ad6254c5
AK
5007
5008fi
ec6a6fbe
AK
5009as_val=`eval 'as_val=${'$as_ac_Header'}
5010 $as_echo "$as_val"'`
5011 if test "x$as_val" = x""yes; then
ad6254c5 5012 cat >>confdefs.h <<_ACEOF
ec6a6fbe 5013#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 5014_ACEOF
b896caa1 5015
d8ac0fbc 5016else
ec6a6fbe
AK
5017 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5018$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 5019 { (exit 1); exit 1; }; }
80992638
AK
5020fi
5021
ad6254c5 5022done
d0191583
JM
5023 ;;
5024 darwin*)
d8ac0fbc 5025
d8ac0fbc 5026
d0191583 5027for ac_header in machine/endian.h sys/disk.h
ad6254c5 5028do
ec6a6fbe 5029as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 5030if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
5031 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5032$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 5033if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 5034 $as_echo_n "(cached) " >&6
ad6254c5 5035fi
ec6a6fbe
AK
5036ac_res=`eval 'as_val=${'$as_ac_Header'}
5037 $as_echo "$as_val"'`
5038 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5039$as_echo "$ac_res" >&6; }
ad6254c5
AK
5040else
5041 # Is the header compilable?
ec6a6fbe
AK
5042{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5043$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 5044cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5045/* confdefs.h. */
5046_ACEOF
5047cat confdefs.h >>conftest.$ac_ext
5048cat >>conftest.$ac_ext <<_ACEOF
5049/* end confdefs.h. */
5050$ac_includes_default
5051#include <$ac_header>
5052_ACEOF
5053rm -f conftest.$ac_objext
7a197a62
AK
5054if { (ac_try="$ac_compile"
5055case "(($ac_try" in
5056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5057 *) ac_try_echo=$ac_try;;
5058esac
ec6a6fbe
AK
5059eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5060$as_echo "$ac_try_echo") >&5
7a197a62 5061 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5062 ac_status=$?
8a2fc586
AK
5063 grep -v '^ *+' conftest.er1 >conftest.err
5064 rm -f conftest.er1
5065 cat conftest.err >&5
ec6a6fbe 5066 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5067 (exit $ac_status); } && {
5068 test -z "$ac_c_werror_flag" ||
5069 test ! -s conftest.err
5070 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5071 ac_header_compiler=yes
5072else
ec6a6fbe 5073 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5074sed 's/^/| /' conftest.$ac_ext >&5
5075
7a197a62 5076 ac_header_compiler=no
ad6254c5 5077fi
7a197a62
AK
5078
5079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
5080{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5081$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
5082
5083# Is the header present?
ec6a6fbe
AK
5084{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5085$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 5086cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5087/* confdefs.h. */
5088_ACEOF
5089cat confdefs.h >>conftest.$ac_ext
5090cat >>conftest.$ac_ext <<_ACEOF
5091/* end confdefs.h. */
5092#include <$ac_header>
5093_ACEOF
7a197a62
AK
5094if { (ac_try="$ac_cpp conftest.$ac_ext"
5095case "(($ac_try" in
5096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5097 *) ac_try_echo=$ac_try;;
5098esac
ec6a6fbe
AK
5099eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5100$as_echo "$ac_try_echo") >&5
7a197a62 5101 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
5102 ac_status=$?
5103 grep -v '^ *+' conftest.er1 >conftest.err
5104 rm -f conftest.er1
5105 cat conftest.err >&5
ec6a6fbe 5106 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5107 (exit $ac_status); } >/dev/null && {
5108 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5109 test ! -s conftest.err
5110 }; then
ad6254c5
AK
5111 ac_header_preproc=yes
5112else
ec6a6fbe 5113 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5114sed 's/^/| /' conftest.$ac_ext >&5
5115
5116 ac_header_preproc=no
5117fi
7a197a62 5118
ad6254c5 5119rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
5120{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5121$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
5122
5123# So? What about this header?
8a2fc586
AK
5124case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5125 yes:no: )
ec6a6fbe
AK
5126 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5127$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5128 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5129$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 5130 ac_header_preproc=yes
ad6254c5 5131 ;;
8a2fc586 5132 no:yes:* )
ec6a6fbe
AK
5133 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5134$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5135 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5136$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5137 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5138$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5139 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5140$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5141 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5142$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5143 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5144$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 5145
ad6254c5
AK
5146 ;;
5147esac
ec6a6fbe
AK
5148{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5149$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 5150if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 5151 $as_echo_n "(cached) " >&6
ad6254c5 5152else
8a2fc586 5153 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 5154fi
ec6a6fbe
AK
5155ac_res=`eval 'as_val=${'$as_ac_Header'}
5156 $as_echo "$as_val"'`
5157 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5158$as_echo "$ac_res" >&6; }
ad6254c5
AK
5159
5160fi
ec6a6fbe
AK
5161as_val=`eval 'as_val=${'$as_ac_Header'}
5162 $as_echo "$as_val"'`
5163 if test "x$as_val" = x""yes; then
ad6254c5 5164 cat >>confdefs.h <<_ACEOF
ec6a6fbe 5165#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 5166_ACEOF
4922197a 5167
4922197a 5168else
ec6a6fbe
AK
5169 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5170$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 5171 { (exit 1); exit 1; }; }
80992638
AK
5172fi
5173
ad6254c5 5174done
d0191583
JM
5175 ;;
5176esac
4922197a 5177
4922197a 5178
4922197a 5179
ad6254c5
AK
5180
5181
d0191583
JM
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194for ac_header in ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h \
5195 stdarg.h stdio.h stdlib.h string.h sys/ioctl.h sys/param.h sys/stat.h \
5196 sys/types.h unistd.h
ad6254c5 5197do
ec6a6fbe 5198as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 5199if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
5200 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5201$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 5202if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 5203 $as_echo_n "(cached) " >&6
ad6254c5 5204fi
ec6a6fbe
AK
5205ac_res=`eval 'as_val=${'$as_ac_Header'}
5206 $as_echo "$as_val"'`
5207 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5208$as_echo "$ac_res" >&6; }
795ca3e5 5209else
ad6254c5 5210 # Is the header compilable?
ec6a6fbe
AK
5211{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5212$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 5213cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5214/* confdefs.h. */
5215_ACEOF
5216cat confdefs.h >>conftest.$ac_ext
5217cat >>conftest.$ac_ext <<_ACEOF
5218/* end confdefs.h. */
5219$ac_includes_default
5220#include <$ac_header>
5221_ACEOF
5222rm -f conftest.$ac_objext
7a197a62
AK
5223if { (ac_try="$ac_compile"
5224case "(($ac_try" in
5225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5226 *) ac_try_echo=$ac_try;;
5227esac
ec6a6fbe
AK
5228eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5229$as_echo "$ac_try_echo") >&5
7a197a62 5230 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5231 ac_status=$?
8a2fc586
AK
5232 grep -v '^ *+' conftest.er1 >conftest.err
5233 rm -f conftest.er1
5234 cat conftest.err >&5
ec6a6fbe 5235 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5236 (exit $ac_status); } && {
5237 test -z "$ac_c_werror_flag" ||
5238 test ! -s conftest.err
5239 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5240 ac_header_compiler=yes
5241else
ec6a6fbe 5242 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5243sed 's/^/| /' conftest.$ac_ext >&5
5244
7a197a62 5245 ac_header_compiler=no
ad6254c5 5246fi
7a197a62
AK
5247
5248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
5249{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5250$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
5251
5252# Is the header present?
ec6a6fbe
AK
5253{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5254$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 5255cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5256/* confdefs.h. */
5257_ACEOF
5258cat confdefs.h >>conftest.$ac_ext
5259cat >>conftest.$ac_ext <<_ACEOF
5260/* end confdefs.h. */
5261#include <$ac_header>
5262_ACEOF
7a197a62
AK
5263if { (ac_try="$ac_cpp conftest.$ac_ext"
5264case "(($ac_try" in
5265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5266 *) ac_try_echo=$ac_try;;
5267esac
ec6a6fbe
AK
5268eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5269$as_echo "$ac_try_echo") >&5
7a197a62 5270 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
5271 ac_status=$?
5272 grep -v '^ *+' conftest.er1 >conftest.err
5273 rm -f conftest.er1
5274 cat conftest.err >&5
ec6a6fbe 5275 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5276 (exit $ac_status); } >/dev/null && {
5277 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5278 test ! -s conftest.err
5279 }; then
ad6254c5
AK
5280 ac_header_preproc=yes
5281else
ec6a6fbe 5282 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5283sed 's/^/| /' conftest.$ac_ext >&5
5284
5285 ac_header_preproc=no
5286fi
7a197a62 5287
ad6254c5 5288rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
5289{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5290$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
5291
5292# So? What about this header?
8a2fc586
AK
5293case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5294 yes:no: )
ec6a6fbe
AK
5295 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5296$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5297 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5298$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 5299 ac_header_preproc=yes
ad6254c5 5300 ;;
8a2fc586 5301 no:yes:* )
ec6a6fbe
AK
5302 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5303$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5304 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5305$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5306 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5307$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5308 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5309$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5310 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5311$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5312 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5313$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 5314
ad6254c5
AK
5315 ;;
5316esac
ec6a6fbe
AK
5317{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5318$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 5319if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 5320 $as_echo_n "(cached) " >&6
ad6254c5 5321else
8a2fc586 5322 eval "$as_ac_Header=\$ac_header_preproc"
80992638 5323fi
ec6a6fbe
AK
5324ac_res=`eval 'as_val=${'$as_ac_Header'}
5325 $as_echo "$as_val"'`
5326 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5327$as_echo "$ac_res" >&6; }
80992638 5328
ad6254c5 5329fi
ec6a6fbe
AK
5330as_val=`eval 'as_val=${'$as_ac_Header'}
5331 $as_echo "$as_val"'`
5332 if test "x$as_val" = x""yes; then
ad6254c5 5333 cat >>confdefs.h <<_ACEOF
ec6a6fbe 5334#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 5335_ACEOF
795ca3e5 5336
795ca3e5 5337else
ec6a6fbe
AK
5338 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5339$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 5340 { (exit 1); exit 1; }; }
80992638
AK
5341fi
5342
ad6254c5 5343done
ad6254c5 5344
795ca3e5 5345
d0191583
JM
5346
5347for ac_header in termios.h sys/statvfs.h
ad6254c5 5348do
ec6a6fbe 5349as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 5350if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
5351 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5352$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 5353if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 5354 $as_echo_n "(cached) " >&6
ad6254c5 5355fi
ec6a6fbe
AK
5356ac_res=`eval 'as_val=${'$as_ac_Header'}
5357 $as_echo "$as_val"'`
5358 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5359$as_echo "$ac_res" >&6; }
ad6254c5
AK
5360else
5361 # Is the header compilable?
ec6a6fbe
AK
5362{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5363$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 5364cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5365/* confdefs.h. */
5366_ACEOF
5367cat confdefs.h >>conftest.$ac_ext
5368cat >>conftest.$ac_ext <<_ACEOF
5369/* end confdefs.h. */
5370$ac_includes_default
5371#include <$ac_header>
5372_ACEOF
5373rm -f conftest.$ac_objext
7a197a62
AK
5374if { (ac_try="$ac_compile"
5375case "(($ac_try" in
5376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5377 *) ac_try_echo=$ac_try;;
5378esac
ec6a6fbe
AK
5379eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5380$as_echo "$ac_try_echo") >&5
7a197a62 5381 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5382 ac_status=$?
8a2fc586
AK
5383 grep -v '^ *+' conftest.er1 >conftest.err
5384 rm -f conftest.er1
5385 cat conftest.err >&5
ec6a6fbe 5386 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5387 (exit $ac_status); } && {
5388 test -z "$ac_c_werror_flag" ||
5389 test ! -s conftest.err
5390 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5391 ac_header_compiler=yes
5392else
ec6a6fbe 5393 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5394sed 's/^/| /' conftest.$ac_ext >&5
5395
7a197a62 5396 ac_header_compiler=no
ad6254c5 5397fi
7a197a62
AK
5398
5399rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
5400{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5401$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
5402
5403# Is the header present?
ec6a6fbe
AK
5404{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5405$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 5406cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5407/* confdefs.h. */
5408_ACEOF
5409cat confdefs.h >>conftest.$ac_ext
5410cat >>conftest.$ac_ext <<_ACEOF
5411/* end confdefs.h. */
5412#include <$ac_header>
5413_ACEOF
7a197a62
AK
5414if { (ac_try="$ac_cpp conftest.$ac_ext"
5415case "(($ac_try" in
5416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5417 *) ac_try_echo=$ac_try;;
5418esac
ec6a6fbe
AK
5419eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5420$as_echo "$ac_try_echo") >&5
7a197a62 5421 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
5422 ac_status=$?
5423 grep -v '^ *+' conftest.er1 >conftest.err
5424 rm -f conftest.er1
5425 cat conftest.err >&5
ec6a6fbe 5426 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5427 (exit $ac_status); } >/dev/null && {
5428 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5429 test ! -s conftest.err
5430 }; then
ad6254c5
AK
5431 ac_header_preproc=yes
5432else
ec6a6fbe 5433 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5434sed 's/^/| /' conftest.$ac_ext >&5
5435
5436 ac_header_preproc=no
5437fi
7a197a62 5438
ad6254c5 5439rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
5440{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5441$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
5442
5443# So? What about this header?
8a2fc586
AK
5444case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5445 yes:no: )
ec6a6fbe
AK
5446 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5447$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5448 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5449$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 5450 ac_header_preproc=yes
ad6254c5 5451 ;;
8a2fc586 5452 no:yes:* )
ec6a6fbe
AK
5453 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5454$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5455 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5456$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5457 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5458$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5459 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5460$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5461 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5462$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5463 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5464$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 5465
ad6254c5
AK
5466 ;;
5467esac
ec6a6fbe
AK
5468{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5469$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 5470if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 5471 $as_echo_n "(cached) " >&6
ad6254c5 5472else
8a2fc586 5473 eval "$as_ac_Header=\$ac_header_preproc"
b896caa1 5474fi
ec6a6fbe
AK
5475ac_res=`eval 'as_val=${'$as_ac_Header'}
5476 $as_echo "$as_val"'`
5477 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5478$as_echo "$ac_res" >&6; }
b896caa1 5479
ad6254c5 5480fi
ec6a6fbe
AK
5481as_val=`eval 'as_val=${'$as_ac_Header'}
5482 $as_echo "$as_val"'`
5483 if test "x$as_val" = x""yes; then
ad6254c5 5484 cat >>confdefs.h <<_ACEOF
ec6a6fbe 5485#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
5486_ACEOF
5487
80992638
AK
5488fi
5489
ad6254c5 5490done
d0191583 5491
d3c8211f 5492
80992638 5493################################################################################
ec6a6fbe
AK
5494{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5495$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
ad6254c5 5496if test "${ac_cv_c_const+set}" = set; then
ec6a6fbe 5497 $as_echo_n "(cached) " >&6
d3c8211f 5498else
ad6254c5 5499 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5500/* confdefs.h. */
5501_ACEOF
5502cat confdefs.h >>conftest.$ac_ext
5503cat >>conftest.$ac_ext <<_ACEOF
5504/* end confdefs.h. */
5505
5506int
5507main ()
5508{
5509/* FIXME: Include the comments suggested by Paul. */
5510#ifndef __cplusplus
5511 /* Ultrix mips cc rejects this. */
5512 typedef int charset[2];
25fbec5b 5513 const charset cs;
ad6254c5 5514 /* SunOS 4.1.1 cc rejects this. */
25fbec5b
AK
5515 char const *const *pcpcc;
5516 char **ppc;
ad6254c5
AK
5517 /* NEC SVR4.0.2 mips cc rejects this. */
5518 struct point {int x, y;};
5519 static struct point const zero = {0,0};
5520 /* AIX XL C 1.02.0.0 rejects this.
5521 It does not let you subtract one const X* pointer from another in
5522 an arm of an if-expression whose if-part is not a constant
5523 expression */
5524 const char *g = "string";
25fbec5b 5525 pcpcc = &g + (g ? g-g : 0);
ad6254c5 5526 /* HPUX 7.0 cc rejects these. */
25fbec5b
AK
5527 ++pcpcc;
5528 ppc = (char**) pcpcc;
5529 pcpcc = (char const *const *) ppc;
ad6254c5
AK
5530 { /* SCO 3.2v4 cc rejects this. */
5531 char *t;
5532 char const *s = 0 ? (char *) 0 : (char const *) 0;
5533
5534 *t++ = 0;
7a197a62 5535 if (s) return 0;
ad6254c5
AK
5536 }
5537 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5538 int x[] = {25, 17};
5539 const int *foo = &x[0];
5540 ++foo;
5541 }
5542 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5543 typedef const int *iptr;
5544 iptr p = 0;
5545 ++p;
5546 }
5547 { /* AIX XL C 1.02.0.0 rejects this saying
5548 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5549 struct s { int j; const int *ap[3]; };
5550 struct s *b; b->j = 5;
5551 }
5552 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5553 const int foo = 10;
7a197a62 5554 if (!foo) return 0;
ad6254c5 5555 }
25fbec5b 5556 return !cs[0] && !zero.x;
ad6254c5
AK
5557#endif
5558
5559 ;
5560 return 0;
5561}
5562_ACEOF
5563rm -f conftest.$ac_objext
7a197a62
AK
5564if { (ac_try="$ac_compile"
5565case "(($ac_try" in
5566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5567 *) ac_try_echo=$ac_try;;
5568esac
ec6a6fbe
AK
5569eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5570$as_echo "$ac_try_echo") >&5
7a197a62 5571 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5572 ac_status=$?
8a2fc586
AK
5573 grep -v '^ *+' conftest.er1 >conftest.err
5574 rm -f conftest.er1
5575 cat conftest.err >&5
ec6a6fbe 5576 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5577 (exit $ac_status); } && {
5578 test -z "$ac_c_werror_flag" ||
5579 test ! -s conftest.err
5580 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5581 ac_cv_c_const=yes
5582else
ec6a6fbe 5583 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5584sed 's/^/| /' conftest.$ac_ext >&5
5585
7a197a62 5586 ac_cv_c_const=no
ad6254c5 5587fi
7a197a62
AK
5588
5589rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
80992638 5590fi
ec6a6fbe
AK
5591{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5592$as_echo "$ac_cv_c_const" >&6; }
ad6254c5 5593if test $ac_cv_c_const = no; then
80992638 5594
ad6254c5 5595cat >>confdefs.h <<\_ACEOF
ec6a6fbe 5596#define const /**/
ad6254c5 5597_ACEOF
80992638 5598
d3c8211f 5599fi
d3c8211f 5600
ec6a6fbe
AK
5601{ $as_echo "$as_me:$LINENO: checking for inline" >&5
5602$as_echo_n "checking for inline... " >&6; }
ad6254c5 5603if test "${ac_cv_c_inline+set}" = set; then
ec6a6fbe 5604 $as_echo_n "(cached) " >&6
8ef2b021 5605else
ad6254c5
AK
5606 ac_cv_c_inline=no
5607for ac_kw in inline __inline__ __inline; do
5608 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5609/* confdefs.h. */
5610_ACEOF
5611cat confdefs.h >>conftest.$ac_ext
5612cat >>conftest.$ac_ext <<_ACEOF
5613/* end confdefs.h. */
5614#ifndef __cplusplus
5615typedef int foo_t;
5616static $ac_kw foo_t static_foo () {return 0; }
5617$ac_kw foo_t foo () {return 0; }
5618#endif
80992638 5619
ad6254c5
AK
5620_ACEOF
5621rm -f conftest.$ac_objext
7a197a62
AK
5622if { (ac_try="$ac_compile"
5623case "(($ac_try" in
5624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5625 *) ac_try_echo=$ac_try;;
5626esac
ec6a6fbe
AK
5627eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5628$as_echo "$ac_try_echo") >&5
7a197a62 5629 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5630 ac_status=$?
8a2fc586
AK
5631 grep -v '^ *+' conftest.er1 >conftest.err
5632 rm -f conftest.er1
5633 cat conftest.err >&5
ec6a6fbe 5634 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5635 (exit $ac_status); } && {
5636 test -z "$ac_c_werror_flag" ||
5637 test ! -s conftest.err
5638 } && test -s conftest.$ac_objext; then
7a197a62 5639 ac_cv_c_inline=$ac_kw
ad6254c5 5640else
ec6a6fbe 5641 $as_echo "$as_me: failed program was:" >&5
ad6254c5 5642sed 's/^/| /' conftest.$ac_ext >&5
8ef2b021 5643
7a197a62 5644
8ce0cbda 5645fi
7a197a62
AK
5646
5647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5648 test "$ac_cv_c_inline" != no && break
ad6254c5 5649done
8ce0cbda 5650
8ce0cbda 5651fi
ec6a6fbe
AK
5652{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5653$as_echo "$ac_cv_c_inline" >&6; }
8a2fc586
AK
5654
5655
ad6254c5
AK
5656case $ac_cv_c_inline in
5657 inline | yes) ;;
8a2fc586
AK
5658 *)
5659 case $ac_cv_c_inline in
5660 no) ac_val=;;
5661 *) ac_val=$ac_cv_c_inline;;
5662 esac
5663 cat >>confdefs.h <<_ACEOF
5664#ifndef __cplusplus
5665#define inline $ac_val
5666#endif
c1c065a3 5667_ACEOF
d0191583
JM
5668 ;;
5669esac
5670
ec6a6fbe
AK
5671{ $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
5672$as_echo_n "checking for struct stat.st_rdev... " >&6; }
d0191583 5673if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
ec6a6fbe 5674 $as_echo_n "(cached) " >&6
d0191583
JM
5675else
5676 cat >conftest.$ac_ext <<_ACEOF
5677/* confdefs.h. */
5678_ACEOF
5679cat confdefs.h >>conftest.$ac_ext
5680cat >>conftest.$ac_ext <<_ACEOF
5681/* end confdefs.h. */
5682$ac_includes_default
5683int
5684main ()
5685{
5686static struct stat ac_aggr;
5687if (ac_aggr.st_rdev)
5688return 0;
5689 ;
5690 return 0;
5691}
5692_ACEOF
5693rm -f conftest.$ac_objext
5694if { (ac_try="$ac_compile"
5695case "(($ac_try" in
5696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5697 *) ac_try_echo=$ac_try;;
5698esac
ec6a6fbe
AK
5699eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5700$as_echo "$ac_try_echo") >&5
5701 (eval "$ac_compile") 2>conftest.er1
5702 ac_status=$?
5703 grep -v '^ *+' conftest.er1 >conftest.err
5704 rm -f conftest.er1
5705 cat conftest.err >&5
5706 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5707 (exit $ac_status); } && {
5708 test -z "$ac_c_werror_flag" ||
5709 test ! -s conftest.err
5710 } && test -s conftest.$ac_objext; then
5711 ac_cv_member_struct_stat_st_rdev=yes
5712else
5713 $as_echo "$as_me: failed program was:" >&5
5714sed 's/^/| /' conftest.$ac_ext >&5
5715
5716 cat >conftest.$ac_ext <<_ACEOF
5717/* confdefs.h. */
5718_ACEOF
5719cat confdefs.h >>conftest.$ac_ext
5720cat >>conftest.$ac_ext <<_ACEOF
5721/* end confdefs.h. */
5722$ac_includes_default
5723int
5724main ()
5725{
5726static struct stat ac_aggr;
5727if (sizeof ac_aggr.st_rdev)
5728return 0;
5729 ;
5730 return 0;
5731}
5732_ACEOF
5733rm -f conftest.$ac_objext
5734if { (ac_try="$ac_compile"
5735case "(($ac_try" in
5736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5737 *) ac_try_echo=$ac_try;;
5738esac
5739eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5740$as_echo "$ac_try_echo") >&5
5741 (eval "$ac_compile") 2>conftest.er1
5742 ac_status=$?
5743 grep -v '^ *+' conftest.er1 >conftest.err
5744 rm -f conftest.er1
5745 cat conftest.err >&5
5746 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5747 (exit $ac_status); } && {
5748 test -z "$ac_c_werror_flag" ||
5749 test ! -s conftest.err
5750 } && test -s conftest.$ac_objext; then
5751 ac_cv_member_struct_stat_st_rdev=yes
5752else
5753 $as_echo "$as_me: failed program was:" >&5
5754sed 's/^/| /' conftest.$ac_ext >&5
5755
5756 ac_cv_member_struct_stat_st_rdev=no
5757fi
5758
5759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5760fi
5761
5762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5763fi
5764{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
5765$as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; }
5766if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then
5767
5768cat >>confdefs.h <<_ACEOF
5769#define HAVE_STRUCT_STAT_ST_RDEV 1
5770_ACEOF
5771
5772
5773fi
5774
5775{ $as_echo "$as_me:$LINENO: checking for off_t" >&5
5776$as_echo_n "checking for off_t... " >&6; }
5777if test "${ac_cv_type_off_t+set}" = set; then
5778 $as_echo_n "(cached) " >&6
5779else
5780 ac_cv_type_off_t=no
5781cat >conftest.$ac_ext <<_ACEOF
5782/* confdefs.h. */
5783_ACEOF
5784cat confdefs.h >>conftest.$ac_ext
5785cat >>conftest.$ac_ext <<_ACEOF
5786/* end confdefs.h. */
5787$ac_includes_default
5788int
5789main ()
5790{
5791if (sizeof (off_t))
5792 return 0;
5793 ;
5794 return 0;
5795}
5796_ACEOF
5797rm -f conftest.$ac_objext
5798if { (ac_try="$ac_compile"
5799case "(($ac_try" in
5800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5801 *) ac_try_echo=$ac_try;;
5802esac
5803eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5804$as_echo "$ac_try_echo") >&5
5805 (eval "$ac_compile") 2>conftest.er1
5806 ac_status=$?
5807 grep -v '^ *+' conftest.er1 >conftest.err
5808 rm -f conftest.er1
5809 cat conftest.err >&5
5810 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5811 (exit $ac_status); } && {
5812 test -z "$ac_c_werror_flag" ||
5813 test ! -s conftest.err
5814 } && test -s conftest.$ac_objext; then
5815 cat >conftest.$ac_ext <<_ACEOF
5816/* confdefs.h. */
5817_ACEOF
5818cat confdefs.h >>conftest.$ac_ext
5819cat >>conftest.$ac_ext <<_ACEOF
5820/* end confdefs.h. */
5821$ac_includes_default
5822int
5823main ()
5824{
5825if (sizeof ((off_t)))
5826 return 0;
5827 ;
5828 return 0;
5829}
5830_ACEOF
5831rm -f conftest.$ac_objext
5832if { (ac_try="$ac_compile"
5833case "(($ac_try" in
5834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5835 *) ac_try_echo=$ac_try;;
5836esac
5837eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5838$as_echo "$ac_try_echo") >&5
5839 (eval "$ac_compile") 2>conftest.er1
5840 ac_status=$?
5841 grep -v '^ *+' conftest.er1 >conftest.err
5842 rm -f conftest.er1
5843 cat conftest.err >&5
5844 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5845 (exit $ac_status); } && {
5846 test -z "$ac_c_werror_flag" ||
5847 test ! -s conftest.err
5848 } && test -s conftest.$ac_objext; then
5849 :
5850else
5851 $as_echo "$as_me: failed program was:" >&5
5852sed 's/^/| /' conftest.$ac_ext >&5
5853
5854 ac_cv_type_off_t=yes
5855fi
5856
5857rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5858else
5859 $as_echo "$as_me: failed program was:" >&5
5860sed 's/^/| /' conftest.$ac_ext >&5
5861
5862
5863fi
5864
5865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5866fi
5867{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5868$as_echo "$ac_cv_type_off_t" >&6; }
5869if test "x$ac_cv_type_off_t" = x""yes; then
5870 :
5871else
5872
5873cat >>confdefs.h <<_ACEOF
5874#define off_t long int
5875_ACEOF
5876
5877fi
5878
5879{ $as_echo "$as_me:$LINENO: checking for pid_t" >&5
5880$as_echo_n "checking for pid_t... " >&6; }
5881if test "${ac_cv_type_pid_t+set}" = set; then
5882 $as_echo_n "(cached) " >&6
5883else
5884 ac_cv_type_pid_t=no
5885cat >conftest.$ac_ext <<_ACEOF
5886/* confdefs.h. */
5887_ACEOF
5888cat confdefs.h >>conftest.$ac_ext
5889cat >>conftest.$ac_ext <<_ACEOF
5890/* end confdefs.h. */
5891$ac_includes_default
5892int
5893main ()
5894{
5895if (sizeof (pid_t))
5896 return 0;
5897 ;
5898 return 0;
5899}
5900_ACEOF
5901rm -f conftest.$ac_objext
5902if { (ac_try="$ac_compile"
5903case "(($ac_try" in
5904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5905 *) ac_try_echo=$ac_try;;
5906esac
5907eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5908$as_echo "$ac_try_echo") >&5
d0191583
JM
5909 (eval "$ac_compile") 2>conftest.er1
5910 ac_status=$?
5911 grep -v '^ *+' conftest.er1 >conftest.err
5912 rm -f conftest.er1
5913 cat conftest.err >&5
ec6a6fbe 5914 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
5915 (exit $ac_status); } && {
5916 test -z "$ac_c_werror_flag" ||
5917 test ! -s conftest.err
5918 } && test -s conftest.$ac_objext; then
ec6a6fbe 5919 cat >conftest.$ac_ext <<_ACEOF
d0191583
JM
5920/* confdefs.h. */
5921_ACEOF
5922cat confdefs.h >>conftest.$ac_ext
5923cat >>conftest.$ac_ext <<_ACEOF
5924/* end confdefs.h. */
5925$ac_includes_default
5926int
5927main ()
5928{
ec6a6fbe
AK
5929if (sizeof ((pid_t)))
5930 return 0;
d0191583
JM
5931 ;
5932 return 0;
5933}
5934_ACEOF
5935rm -f conftest.$ac_objext
5936if { (ac_try="$ac_compile"
5937case "(($ac_try" in
5938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5939 *) ac_try_echo=$ac_try;;
5940esac
ec6a6fbe
AK
5941eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5942$as_echo "$ac_try_echo") >&5
d0191583
JM
5943 (eval "$ac_compile") 2>conftest.er1
5944 ac_status=$?
5945 grep -v '^ *+' conftest.er1 >conftest.err
5946 rm -f conftest.er1
5947 cat conftest.err >&5
ec6a6fbe 5948 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
5949 (exit $ac_status); } && {
5950 test -z "$ac_c_werror_flag" ||
5951 test ! -s conftest.err
5952 } && test -s conftest.$ac_objext; then
ec6a6fbe 5953 :
d0191583 5954else
ec6a6fbe 5955 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
5956sed 's/^/| /' conftest.$ac_ext >&5
5957
ec6a6fbe 5958 ac_cv_type_pid_t=yes
d0191583
JM
5959fi
5960
5961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
5962else
5963 $as_echo "$as_me: failed program was:" >&5
5964sed 's/^/| /' conftest.$ac_ext >&5
5965
5966
d0191583
JM
5967fi
5968
5969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5970fi
ec6a6fbe
AK
5971{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
5972$as_echo "$ac_cv_type_pid_t" >&6; }
5973if test "x$ac_cv_type_pid_t" = x""yes; then
5974 :
5975else
d0191583
JM
5976
5977cat >>confdefs.h <<_ACEOF
ec6a6fbe 5978#define pid_t int
d0191583
JM
5979_ACEOF
5980
d0191583 5981fi
8ce0cbda 5982
ec6a6fbe
AK
5983{ $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5984$as_echo_n "checking return type of signal handlers... " >&6; }
5985if test "${ac_cv_type_signal+set}" = set; then
5986 $as_echo_n "(cached) " >&6
ad6254c5 5987else
b145d876
ZK
5988 cat >conftest.$ac_ext <<_ACEOF
5989/* confdefs.h. */
5990_ACEOF
5991cat confdefs.h >>conftest.$ac_ext
5992cat >>conftest.$ac_ext <<_ACEOF
5993/* end confdefs.h. */
ec6a6fbe
AK
5994#include <sys/types.h>
5995#include <signal.h>
5996
b145d876
ZK
5997int
5998main ()
5999{
ec6a6fbe 6000return *(signal (0, 0)) (0) == 1;
ad6254c5
AK
6001 ;
6002 return 0;
6003}
6004_ACEOF
6005rm -f conftest.$ac_objext
7a197a62
AK
6006if { (ac_try="$ac_compile"
6007case "(($ac_try" in
6008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6009 *) ac_try_echo=$ac_try;;
6010esac
ec6a6fbe
AK
6011eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6012$as_echo "$ac_try_echo") >&5
7a197a62 6013 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6014 ac_status=$?
8a2fc586
AK
6015 grep -v '^ *+' conftest.er1 >conftest.err
6016 rm -f conftest.er1
6017 cat conftest.err >&5
ec6a6fbe 6018 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6019 (exit $ac_status); } && {
6020 test -z "$ac_c_werror_flag" ||
6021 test ! -s conftest.err
6022 } && test -s conftest.$ac_objext; then
ec6a6fbe 6023 ac_cv_type_signal=int
b145d876 6024else
ec6a6fbe 6025 $as_echo "$as_me: failed program was:" >&5
b145d876
ZK
6026sed 's/^/| /' conftest.$ac_ext >&5
6027
ec6a6fbe 6028 ac_cv_type_signal=void
ad6254c5 6029fi
b145d876
ZK
6030
6031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6032fi
ec6a6fbe
AK
6033{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6034$as_echo "$ac_cv_type_signal" >&6; }
80992638 6035
ad6254c5 6036cat >>confdefs.h <<_ACEOF
ec6a6fbe 6037#define RETSIGTYPE $ac_cv_type_signal
ad6254c5 6038_ACEOF
199e490e 6039
b896caa1 6040
ec6a6fbe
AK
6041{ $as_echo "$as_me:$LINENO: checking for size_t" >&5
6042$as_echo_n "checking for size_t... " >&6; }
6043if test "${ac_cv_type_size_t+set}" = set; then
6044 $as_echo_n "(cached) " >&6
ad6254c5 6045else
ec6a6fbe
AK
6046 ac_cv_type_size_t=no
6047cat >conftest.$ac_ext <<_ACEOF
b145d876
ZK
6048/* confdefs.h. */
6049_ACEOF
6050cat confdefs.h >>conftest.$ac_ext
6051cat >>conftest.$ac_ext <<_ACEOF
6052/* end confdefs.h. */
6053$ac_includes_default
6054int
6055main ()
6056{
ec6a6fbe
AK
6057if (sizeof (size_t))
6058 return 0;
ad6254c5
AK
6059 ;
6060 return 0;
6061}
6062_ACEOF
6063rm -f conftest.$ac_objext
7a197a62
AK
6064if { (ac_try="$ac_compile"
6065case "(($ac_try" in
6066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6067 *) ac_try_echo=$ac_try;;
6068esac
ec6a6fbe
AK
6069eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6070$as_echo "$ac_try_echo") >&5
7a197a62 6071 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6072 ac_status=$?
8a2fc586
AK
6073 grep -v '^ *+' conftest.er1 >conftest.err
6074 rm -f conftest.er1
6075 cat conftest.err >&5
ec6a6fbe 6076 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6077 (exit $ac_status); } && {
6078 test -z "$ac_c_werror_flag" ||
6079 test ! -s conftest.err
6080 } && test -s conftest.$ac_objext; then
d0191583
JM
6081 cat >conftest.$ac_ext <<_ACEOF
6082/* confdefs.h. */
6083_ACEOF
6084cat confdefs.h >>conftest.$ac_ext
6085cat >>conftest.$ac_ext <<_ACEOF
6086/* end confdefs.h. */
ec6a6fbe 6087$ac_includes_default
d0191583
JM
6088int
6089main ()
6090{
ec6a6fbe
AK
6091if (sizeof ((size_t)))
6092 return 0;
d0191583
JM
6093 ;
6094 return 0;
6095}
6096_ACEOF
6097rm -f conftest.$ac_objext
6098if { (ac_try="$ac_compile"
6099case "(($ac_try" in
6100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6101 *) ac_try_echo=$ac_try;;
6102esac
ec6a6fbe
AK
6103eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6104$as_echo "$ac_try_echo") >&5
d0191583
JM
6105 (eval "$ac_compile") 2>conftest.er1
6106 ac_status=$?
6107 grep -v '^ *+' conftest.er1 >conftest.err
6108 rm -f conftest.er1
6109 cat conftest.err >&5
ec6a6fbe 6110 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
6111 (exit $ac_status); } && {
6112 test -z "$ac_c_werror_flag" ||
6113 test ! -s conftest.err
6114 } && test -s conftest.$ac_objext; then
ec6a6fbe 6115 :
d0191583 6116else
ec6a6fbe 6117 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
6118sed 's/^/| /' conftest.$ac_ext >&5
6119
ec6a6fbe
AK
6120 ac_cv_type_size_t=yes
6121fi
6122
6123rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6124else
6125 $as_echo "$as_me: failed program was:" >&5
6126sed 's/^/| /' conftest.$ac_ext >&5
6127
6128
d0191583
JM
6129fi
6130
6131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6132fi
ec6a6fbe
AK
6133{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6134$as_echo "$ac_cv_type_size_t" >&6; }
6135if test "x$ac_cv_type_size_t" = x""yes; then
6136 :
6137else
d0191583
JM
6138
6139cat >>confdefs.h <<_ACEOF
ec6a6fbe 6140#define size_t unsigned int
d0191583
JM
6141_ACEOF
6142
ec6a6fbe 6143fi
d0191583 6144
ec6a6fbe
AK
6145{ $as_echo "$as_me:$LINENO: checking for mode_t" >&5
6146$as_echo_n "checking for mode_t... " >&6; }
6147if test "${ac_cv_type_mode_t+set}" = set; then
6148 $as_echo_n "(cached) " >&6
8106cdd5 6149else
ec6a6fbe
AK
6150 ac_cv_type_mode_t=no
6151cat >conftest.$ac_ext <<_ACEOF
b145d876
ZK
6152/* confdefs.h. */
6153_ACEOF
6154cat confdefs.h >>conftest.$ac_ext
6155cat >>conftest.$ac_ext <<_ACEOF
6156/* end confdefs.h. */
6157$ac_includes_default
6158int
6159main ()
6160{
ec6a6fbe
AK
6161if (sizeof (mode_t))
6162 return 0;
ad6254c5
AK
6163 ;
6164 return 0;
6165}
6166_ACEOF
6167rm -f conftest.$ac_objext
7a197a62
AK
6168if { (ac_try="$ac_compile"
6169case "(($ac_try" in
6170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6171 *) ac_try_echo=$ac_try;;
6172esac
ec6a6fbe
AK
6173eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6174$as_echo "$ac_try_echo") >&5
7a197a62 6175 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6176 ac_status=$?
8a2fc586
AK
6177 grep -v '^ *+' conftest.er1 >conftest.err
6178 rm -f conftest.er1
6179 cat conftest.err >&5
ec6a6fbe 6180 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6181 (exit $ac_status); } && {
6182 test -z "$ac_c_werror_flag" ||
6183 test ! -s conftest.err
6184 } && test -s conftest.$ac_objext; then
b145d876
ZK
6185 cat >conftest.$ac_ext <<_ACEOF
6186/* confdefs.h. */
6187_ACEOF
6188cat confdefs.h >>conftest.$ac_ext
6189cat >>conftest.$ac_ext <<_ACEOF
6190/* end confdefs.h. */
6191$ac_includes_default
6192int
6193main ()
6194{
ec6a6fbe
AK
6195if (sizeof ((mode_t)))
6196 return 0;
ad6254c5
AK
6197 ;
6198 return 0;
6199}
6200_ACEOF
6201rm -f conftest.$ac_objext
7a197a62
AK
6202if { (ac_try="$ac_compile"
6203case "(($ac_try" in
6204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6205 *) ac_try_echo=$ac_try;;
6206esac
ec6a6fbe
AK
6207eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6208$as_echo "$ac_try_echo") >&5
7a197a62 6209 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6210 ac_status=$?
8a2fc586
AK
6211 grep -v '^ *+' conftest.er1 >conftest.err
6212 rm -f conftest.er1
6213 cat conftest.err >&5
ec6a6fbe 6214 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6215 (exit $ac_status); } && {
6216 test -z "$ac_c_werror_flag" ||
6217 test ! -s conftest.err
6218 } && test -s conftest.$ac_objext; then
ec6a6fbe
AK
6219 :
6220else
6221 $as_echo "$as_me: failed program was:" >&5
6222sed 's/^/| /' conftest.$ac_ext >&5
6223
6224 ac_cv_type_mode_t=yes
6225fi
6226
6227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fddafd51 6228else
ec6a6fbe 6229 $as_echo "$as_me: failed program was:" >&5
fddafd51
ZK
6230sed 's/^/| /' conftest.$ac_ext >&5
6231
ec6a6fbe 6232
80992638 6233fi
7a197a62
AK
6234
6235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 6236fi
ec6a6fbe
AK
6237{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6238$as_echo "$ac_cv_type_mode_t" >&6; }
6239if test "x$ac_cv_type_mode_t" = x""yes; then
ad6254c5
AK
6240 :
6241else
80992638 6242
ad6254c5
AK
6243cat >>confdefs.h <<_ACEOF
6244#define mode_t int
6245_ACEOF
6246
6247fi
6248
ec6a6fbe
AK
6249{ $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
6250$as_echo_n "checking for struct stat.st_rdev... " >&6; }
ad6254c5 6251if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
ec6a6fbe 6252 $as_echo_n "(cached) " >&6
ad6254c5
AK
6253else
6254 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6255/* confdefs.h. */
6256_ACEOF
6257cat confdefs.h >>conftest.$ac_ext
6258cat >>conftest.$ac_ext <<_ACEOF
6259/* end confdefs.h. */
6260$ac_includes_default
6261int
6262main ()
6263{
6264static struct stat ac_aggr;
6265if (ac_aggr.st_rdev)
6266return 0;
6267 ;
6268 return 0;
6269}
6270_ACEOF
6271rm -f conftest.$ac_objext
7a197a62
AK
6272if { (ac_try="$ac_compile"
6273case "(($ac_try" in
6274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6275 *) ac_try_echo=$ac_try;;
6276esac
ec6a6fbe
AK
6277eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6278$as_echo "$ac_try_echo") >&5
7a197a62 6279 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6280 ac_status=$?
8a2fc586
AK
6281 grep -v '^ *+' conftest.er1 >conftest.err
6282 rm -f conftest.er1
6283 cat conftest.err >&5
ec6a6fbe 6284 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6285 (exit $ac_status); } && {
6286 test -z "$ac_c_werror_flag" ||
6287 test ! -s conftest.err
6288 } && test -s conftest.$ac_objext; then
ad6254c5
AK
6289 ac_cv_member_struct_stat_st_rdev=yes
6290else
ec6a6fbe 6291 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6292sed 's/^/| /' conftest.$ac_ext >&5
6293
7a197a62 6294 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6295/* confdefs.h. */
6296_ACEOF
6297cat confdefs.h >>conftest.$ac_ext
6298cat >>conftest.$ac_ext <<_ACEOF
6299/* end confdefs.h. */
6300$ac_includes_default
6301int
6302main ()
6303{
6304static struct stat ac_aggr;
6305if (sizeof ac_aggr.st_rdev)
6306return 0;
6307 ;
6308 return 0;
6309}
6310_ACEOF
6311rm -f conftest.$ac_objext
7a197a62
AK
6312if { (ac_try="$ac_compile"
6313case "(($ac_try" in
6314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6315 *) ac_try_echo=$ac_try;;
6316esac
ec6a6fbe
AK
6317eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6318$as_echo "$ac_try_echo") >&5
7a197a62 6319 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6320 ac_status=$?
8a2fc586
AK
6321 grep -v '^ *+' conftest.er1 >conftest.err
6322 rm -f conftest.er1
6323 cat conftest.err >&5
ec6a6fbe 6324 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6325 (exit $ac_status); } && {
6326 test -z "$ac_c_werror_flag" ||
6327 test ! -s conftest.err
6328 } && test -s conftest.$ac_objext; then
ad6254c5
AK
6329 ac_cv_member_struct_stat_st_rdev=yes
6330else
ec6a6fbe 6331 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6332sed 's/^/| /' conftest.$ac_ext >&5
6333
7a197a62 6334 ac_cv_member_struct_stat_st_rdev=no
ad6254c5 6335fi
7a197a62
AK
6336
6337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 6338fi
7a197a62
AK
6339
6340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 6341fi
ec6a6fbe
AK
6342{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
6343$as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; }
6344if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then
ad6254c5
AK
6345
6346cat >>confdefs.h <<_ACEOF
6347#define HAVE_STRUCT_STAT_ST_RDEV 1
6348_ACEOF
6349
6350
ad6254c5
AK
6351fi
6352
ec6a6fbe
AK
6353{ $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6354$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
ad6254c5 6355if test "${ac_cv_struct_tm+set}" = set; then
ec6a6fbe 6356 $as_echo_n "(cached) " >&6
ad6254c5
AK
6357else
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. */
6364#include <sys/types.h>
6365#include <time.h>
6366
6367int
6368main ()
6369{
25fbec5b
AK
6370struct tm tm;
6371 int *p = &tm.tm_sec;
ec6a6fbe 6372 return !p;
ad6254c5
AK
6373 ;
6374 return 0;
6375}
6376_ACEOF
6377rm -f conftest.$ac_objext
7a197a62
AK
6378if { (ac_try="$ac_compile"
6379case "(($ac_try" in
6380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6381 *) ac_try_echo=$ac_try;;
6382esac
ec6a6fbe
AK
6383eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6384$as_echo "$ac_try_echo") >&5
7a197a62 6385 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6386 ac_status=$?
8a2fc586
AK
6387 grep -v '^ *+' conftest.er1 >conftest.err
6388 rm -f conftest.er1
6389 cat conftest.err >&5
ec6a6fbe 6390 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6391 (exit $ac_status); } && {
6392 test -z "$ac_c_werror_flag" ||
6393 test ! -s conftest.err
6394 } && test -s conftest.$ac_objext; then
ad6254c5
AK
6395 ac_cv_struct_tm=time.h
6396else
ec6a6fbe 6397 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6398sed 's/^/| /' conftest.$ac_ext >&5
6399
7a197a62 6400 ac_cv_struct_tm=sys/time.h
ad6254c5 6401fi
7a197a62
AK
6402
6403rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 6404fi
ec6a6fbe
AK
6405{ $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6406$as_echo "$ac_cv_struct_tm" >&6; }
ad6254c5
AK
6407if test $ac_cv_struct_tm = sys/time.h; then
6408
6409cat >>confdefs.h <<\_ACEOF
6410#define TM_IN_SYS_TIME 1
6411_ACEOF
6412
6413fi
809fae91 6414
795ca3e5 6415
80992638 6416################################################################################
ad6254c5
AK
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
d0191583
JM
6431
6432
6433
6434for ac_func in gethostname getpagesize memset mkdir rmdir munmap setlocale \
6435 strcasecmp strchr strdup strncasecmp strerror strrchr strstr strtol strtoul \
6436 uname
ad6254c5 6437do
ec6a6fbe
AK
6438as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6439{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6440$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 6441if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 6442 $as_echo_n "(cached) " >&6
795ca3e5 6443else
ad6254c5 6444 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6445/* confdefs.h. */
6446_ACEOF
6447cat confdefs.h >>conftest.$ac_ext
6448cat >>conftest.$ac_ext <<_ACEOF
6449/* end confdefs.h. */
8a2fc586
AK
6450/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6451 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6452#define $ac_func innocuous_$ac_func
6453
ad6254c5
AK
6454/* System header to define __stub macros and hopefully few prototypes,
6455 which can conflict with char $ac_func (); below.
6456 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6457 <limits.h> exists even on freestanding compilers. */
8a2fc586 6458
ad6254c5
AK
6459#ifdef __STDC__
6460# include <limits.h>
6461#else
6462# include <assert.h>
6463#endif
8a2fc586
AK
6464
6465#undef $ac_func
6466
7a197a62
AK
6467/* Override any GCC internal prototype to avoid an error.
6468 Use char because int might match the return type of a GCC
6469 builtin and then its argument prototype would still apply. */
ad6254c5
AK
6470#ifdef __cplusplus
6471extern "C"
ad6254c5 6472#endif
ad6254c5
AK
6473char $ac_func ();
6474/* The GNU C library defines this for functions which it implements
6475 to always fail with ENOSYS. Some functions are actually named
6476 something starting with __ and the normal name is an alias. */
7a197a62 6477#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 6478choke me
ad6254c5
AK
6479#endif
6480
6481int
6482main ()
6483{
7a197a62 6484return $ac_func ();
ad6254c5
AK
6485 ;
6486 return 0;
6487}
6488_ACEOF
6489rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
6490if { (ac_try="$ac_link"
6491case "(($ac_try" in
6492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6493 *) ac_try_echo=$ac_try;;
6494esac
ec6a6fbe
AK
6495eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6496$as_echo "$ac_try_echo") >&5
7a197a62 6497 (eval "$ac_link") 2>conftest.er1
ad6254c5 6498 ac_status=$?
8a2fc586
AK
6499 grep -v '^ *+' conftest.er1 >conftest.err
6500 rm -f conftest.er1
6501 cat conftest.err >&5
ec6a6fbe 6502 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6503 (exit $ac_status); } && {
6504 test -z "$ac_c_werror_flag" ||
6505 test ! -s conftest.err
ec6a6fbe
AK
6506 } && test -s conftest$ac_exeext && {
6507 test "$cross_compiling" = yes ||
6508 $as_test_x conftest$ac_exeext
6509 }; then
fc54be10
AK
6510 eval "$as_ac_var=yes"
6511else
ec6a6fbe 6512 $as_echo "$as_me: failed program was:" >&5
fc54be10
AK
6513sed 's/^/| /' conftest.$ac_ext >&5
6514
6515 eval "$as_ac_var=no"
6516fi
6517
ec6a6fbe 6518rm -rf conftest.dSYM
25fbec5b 6519rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
fc54be10
AK
6520 conftest$ac_exeext conftest.$ac_ext
6521fi
ec6a6fbe
AK
6522ac_res=`eval 'as_val=${'$as_ac_var'}
6523 $as_echo "$as_val"'`
6524 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6525$as_echo "$ac_res" >&6; }
6526as_val=`eval 'as_val=${'$as_ac_var'}
6527 $as_echo "$as_val"'`
6528 if test "x$as_val" = x""yes; then
ad6254c5 6529 cat >>confdefs.h <<_ACEOF
ec6a6fbe 6530#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
6531_ACEOF
6532
6533else
ec6a6fbe
AK
6534 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
6535$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5
AK
6536 { (exit 1); exit 1; }; }
6537fi
6538done
795ca3e5 6539
a0f9708e
AK
6540
6541for ac_func in siginterrupt
6542do
6543as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6544{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6545$as_echo_n "checking for $ac_func... " >&6; }
6546if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6547 $as_echo_n "(cached) " >&6
6548else
6549 cat >conftest.$ac_ext <<_ACEOF
6550/* confdefs.h. */
6551_ACEOF
6552cat confdefs.h >>conftest.$ac_ext
6553cat >>conftest.$ac_ext <<_ACEOF
6554/* end confdefs.h. */
6555/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6556 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6557#define $ac_func innocuous_$ac_func
6558
6559/* System header to define __stub macros and hopefully few prototypes,
6560 which can conflict with char $ac_func (); below.
6561 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6562 <limits.h> exists even on freestanding compilers. */
6563
6564#ifdef __STDC__
6565# include <limits.h>
6566#else
6567# include <assert.h>
6568#endif
6569
6570#undef $ac_func
6571
6572/* Override any GCC internal prototype to avoid an error.
6573 Use char because int might match the return type of a GCC
6574 builtin and then its argument prototype would still apply. */
6575#ifdef __cplusplus
6576extern "C"
6577#endif
6578char $ac_func ();
6579/* The GNU C library defines this for functions which it implements
6580 to always fail with ENOSYS. Some functions are actually named
6581 something starting with __ and the normal name is an alias. */
6582#if defined __stub_$ac_func || defined __stub___$ac_func
6583choke me
6584#endif
6585
6586int
6587main ()
6588{
6589return $ac_func ();
6590 ;
6591 return 0;
6592}
6593_ACEOF
6594rm -f conftest.$ac_objext conftest$ac_exeext
6595if { (ac_try="$ac_link"
6596case "(($ac_try" in
6597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6598 *) ac_try_echo=$ac_try;;
6599esac
6600eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6601$as_echo "$ac_try_echo") >&5
6602 (eval "$ac_link") 2>conftest.er1
6603 ac_status=$?
6604 grep -v '^ *+' conftest.er1 >conftest.err
6605 rm -f conftest.er1
6606 cat conftest.err >&5
6607 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6608 (exit $ac_status); } && {
6609 test -z "$ac_c_werror_flag" ||
6610 test ! -s conftest.err
6611 } && test -s conftest$ac_exeext && {
6612 test "$cross_compiling" = yes ||
6613 $as_test_x conftest$ac_exeext
6614 }; then
6615 eval "$as_ac_var=yes"
6616else
6617 $as_echo "$as_me: failed program was:" >&5
6618sed 's/^/| /' conftest.$ac_ext >&5
6619
6620 eval "$as_ac_var=no"
6621fi
6622
6623rm -rf conftest.dSYM
6624rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6625 conftest$ac_exeext conftest.$ac_ext
6626fi
6627ac_res=`eval 'as_val=${'$as_ac_var'}
6628 $as_echo "$as_val"'`
6629 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6630$as_echo "$ac_res" >&6; }
6631as_val=`eval 'as_val=${'$as_ac_var'}
6632 $as_echo "$as_val"'`
6633 if test "x$as_val" = x""yes; then
6634 cat >>confdefs.h <<_ACEOF
6635#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6636_ACEOF
6637
6638fi
6639done
6640
ad6254c5
AK
6641# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6642# for constant arguments. Useless!
ec6a6fbe
AK
6643{ $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
6644$as_echo_n "checking for working alloca.h... " >&6; }
ad6254c5 6645if test "${ac_cv_working_alloca_h+set}" = set; then
ec6a6fbe 6646 $as_echo_n "(cached) " >&6
ad6254c5
AK
6647else
6648 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6649/* confdefs.h. */
6650_ACEOF
6651cat confdefs.h >>conftest.$ac_ext
6652cat >>conftest.$ac_ext <<_ACEOF
6653/* end confdefs.h. */
6654#include <alloca.h>
6655int
6656main ()
6657{
6658char *p = (char *) alloca (2 * sizeof (int));
7a197a62 6659 if (p) return 0;
ad6254c5
AK
6660 ;
6661 return 0;
6662}
6663_ACEOF
6664rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
6665if { (ac_try="$ac_link"
6666case "(($ac_try" in
6667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6668 *) ac_try_echo=$ac_try;;
6669esac
ec6a6fbe
AK
6670eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6671$as_echo "$ac_try_echo") >&5
7a197a62 6672 (eval "$ac_link") 2>conftest.er1
ad6254c5 6673 ac_status=$?
8a2fc586
AK
6674 grep -v '^ *+' conftest.er1 >conftest.err
6675 rm -f conftest.er1
6676 cat conftest.err >&5
ec6a6fbe 6677 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6678 (exit $ac_status); } && {
6679 test -z "$ac_c_werror_flag" ||
6680 test ! -s conftest.err
ec6a6fbe
AK
6681 } && test -s conftest$ac_exeext && {
6682 test "$cross_compiling" = yes ||
6683 $as_test_x conftest$ac_exeext
6684 }; then
ad6254c5
AK
6685 ac_cv_working_alloca_h=yes
6686else
ec6a6fbe 6687 $as_echo "$as_me: failed program was:" >&5
ad6254c5 6688sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 6689
7a197a62 6690 ac_cv_working_alloca_h=no
ad6254c5 6691fi
7a197a62 6692
ec6a6fbe 6693rm -rf conftest.dSYM
25fbec5b 6694rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 6695 conftest$ac_exeext conftest.$ac_ext
ad6254c5 6696fi
ec6a6fbe
AK
6697{ $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6698$as_echo "$ac_cv_working_alloca_h" >&6; }
ad6254c5
AK
6699if test $ac_cv_working_alloca_h = yes; then
6700
6701cat >>confdefs.h <<\_ACEOF
6702#define HAVE_ALLOCA_H 1
6703_ACEOF
6704
6705fi
6706
ec6a6fbe
AK
6707{ $as_echo "$as_me:$LINENO: checking for alloca" >&5
6708$as_echo_n "checking for alloca... " >&6; }
ad6254c5 6709if test "${ac_cv_func_alloca_works+set}" = set; then
ec6a6fbe 6710 $as_echo_n "(cached) " >&6
ad6254c5
AK
6711else
6712 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6713/* confdefs.h. */
6714_ACEOF
6715cat confdefs.h >>conftest.$ac_ext
6716cat >>conftest.$ac_ext <<_ACEOF
6717/* end confdefs.h. */
6718#ifdef __GNUC__
6719# define alloca __builtin_alloca
6720#else
6721# ifdef _MSC_VER
6722# include <malloc.h>
6723# define alloca _alloca
6724# else
25fbec5b 6725# ifdef HAVE_ALLOCA_H
ad6254c5
AK
6726# include <alloca.h>
6727# else
6728# ifdef _AIX
6729 #pragma alloca
6730# else
6731# ifndef alloca /* predefined by HP cc +Olibcalls */
6732char *alloca ();
6733# endif
6734# endif
6735# endif
6736# endif
6737#endif
6738
6739int
6740main ()
6741{
6742char *p = (char *) alloca (1);
7a197a62 6743 if (p) return 0;
ad6254c5
AK
6744 ;
6745 return 0;
6746}
6747_ACEOF
6748rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
6749if { (ac_try="$ac_link"
6750case "(($ac_try" in
6751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6752 *) ac_try_echo=$ac_try;;
6753esac
ec6a6fbe
AK
6754eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6755$as_echo "$ac_try_echo") >&5
7a197a62 6756 (eval "$ac_link") 2>conftest.er1
ad6254c5 6757 ac_status=$?
8a2fc586
AK
6758 grep -v '^ *+' conftest.er1 >conftest.err
6759 rm -f conftest.er1
6760 cat conftest.err >&5
ec6a6fbe 6761 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6762 (exit $ac_status); } && {
6763 test -z "$ac_c_werror_flag" ||
6764 test ! -s conftest.err
ec6a6fbe
AK
6765 } && test -s conftest$ac_exeext && {
6766 test "$cross_compiling" = yes ||
6767 $as_test_x conftest$ac_exeext
6768 }; then
ad6254c5
AK
6769 ac_cv_func_alloca_works=yes
6770else
ec6a6fbe 6771 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6772sed 's/^/| /' conftest.$ac_ext >&5
6773
7a197a62 6774 ac_cv_func_alloca_works=no
ad6254c5 6775fi
7a197a62 6776
ec6a6fbe 6777rm -rf conftest.dSYM
25fbec5b 6778rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 6779 conftest$ac_exeext conftest.$ac_ext
ad6254c5 6780fi
ec6a6fbe
AK
6781{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6782$as_echo "$ac_cv_func_alloca_works" >&6; }
ad6254c5
AK
6783
6784if test $ac_cv_func_alloca_works = yes; then
6785
6786cat >>confdefs.h <<\_ACEOF
6787#define HAVE_ALLOCA 1
6788_ACEOF
6789
6790else
6791 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6792# that cause trouble. Some versions do not even contain alloca or
6793# contain a buggy version. If you still want to use their alloca,
6794# use ar to extract alloca.o from them instead of compiling alloca.c.
6795
7a197a62 6796ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
ad6254c5
AK
6797
6798cat >>confdefs.h <<\_ACEOF
6799#define C_ALLOCA 1
6800_ACEOF
6801
6802
ec6a6fbe
AK
6803{ $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6804$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
ad6254c5 6805if test "${ac_cv_os_cray+set}" = set; then
ec6a6fbe 6806 $as_echo_n "(cached) " >&6
ad6254c5
AK
6807else
6808 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6809/* confdefs.h. */
6810_ACEOF
6811cat confdefs.h >>conftest.$ac_ext
6812cat >>conftest.$ac_ext <<_ACEOF
6813/* end confdefs.h. */
7a197a62 6814#if defined CRAY && ! defined CRAY2
ad6254c5
AK
6815webecray
6816#else
6817wenotbecray
6818#endif
6819
6820_ACEOF
795ca3e5 6821if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ad6254c5
AK
6822 $EGREP "webecray" >/dev/null 2>&1; then
6823 ac_cv_os_cray=yes
6824else
6825 ac_cv_os_cray=no
795ca3e5
AK
6826fi
6827rm -f conftest*
6828
795ca3e5 6829fi
ec6a6fbe
AK
6830{ $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6831$as_echo "$ac_cv_os_cray" >&6; }
ad6254c5
AK
6832if test $ac_cv_os_cray = yes; then
6833 for ac_func in _getb67 GETB67 getb67; do
ec6a6fbe
AK
6834 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6835{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6836$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 6837if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 6838 $as_echo_n "(cached) " >&6
ad6254c5
AK
6839else
6840 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6841/* confdefs.h. */
6842_ACEOF
6843cat confdefs.h >>conftest.$ac_ext
6844cat >>conftest.$ac_ext <<_ACEOF
6845/* end confdefs.h. */
8a2fc586
AK
6846/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6847 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6848#define $ac_func innocuous_$ac_func
6849
ad6254c5
AK
6850/* System header to define __stub macros and hopefully few prototypes,
6851 which can conflict with char $ac_func (); below.
6852 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6853 <limits.h> exists even on freestanding compilers. */
8a2fc586 6854
ad6254c5
AK
6855#ifdef __STDC__
6856# include <limits.h>
6857#else
6858# include <assert.h>
6859#endif
8a2fc586
AK
6860
6861#undef $ac_func
6862
7a197a62
AK
6863/* Override any GCC internal prototype to avoid an error.
6864 Use char because int might match the return type of a GCC
6865 builtin and then its argument prototype would still apply. */
ad6254c5
AK
6866#ifdef __cplusplus
6867extern "C"
ad6254c5 6868#endif
ad6254c5
AK
6869char $ac_func ();
6870/* The GNU C library defines this for functions which it implements
6871 to always fail with ENOSYS. Some functions are actually named
6872 something starting with __ and the normal name is an alias. */
7a197a62 6873#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 6874choke me
ad6254c5
AK
6875#endif
6876
6877int
6878main ()
6879{
7a197a62 6880return $ac_func ();
ad6254c5
AK
6881 ;
6882 return 0;
6883}
6884_ACEOF
6885rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
6886if { (ac_try="$ac_link"
6887case "(($ac_try" in
6888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6889 *) ac_try_echo=$ac_try;;
6890esac
ec6a6fbe
AK
6891eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6892$as_echo "$ac_try_echo") >&5
7a197a62 6893 (eval "$ac_link") 2>conftest.er1
ad6254c5 6894 ac_status=$?
8a2fc586
AK
6895 grep -v '^ *+' conftest.er1 >conftest.err
6896 rm -f conftest.er1
6897 cat conftest.err >&5
ec6a6fbe 6898 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6899 (exit $ac_status); } && {
6900 test -z "$ac_c_werror_flag" ||
6901 test ! -s conftest.err
ec6a6fbe
AK
6902 } && test -s conftest$ac_exeext && {
6903 test "$cross_compiling" = yes ||
6904 $as_test_x conftest$ac_exeext
6905 }; then
ad6254c5
AK
6906 eval "$as_ac_var=yes"
6907else
ec6a6fbe 6908 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6909sed 's/^/| /' conftest.$ac_ext >&5
6910
7a197a62 6911 eval "$as_ac_var=no"
ad6254c5 6912fi
7a197a62 6913
ec6a6fbe 6914rm -rf conftest.dSYM
25fbec5b 6915rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 6916 conftest$ac_exeext conftest.$ac_ext
ad6254c5 6917fi
ec6a6fbe
AK
6918ac_res=`eval 'as_val=${'$as_ac_var'}
6919 $as_echo "$as_val"'`
6920 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6921$as_echo "$ac_res" >&6; }
6922as_val=`eval 'as_val=${'$as_ac_var'}
6923 $as_echo "$as_val"'`
6924 if test "x$as_val" = x""yes; then
80992638 6925
ad6254c5
AK
6926cat >>confdefs.h <<_ACEOF
6927#define CRAY_STACKSEG_END $ac_func
6928_ACEOF
6929
6930 break
6931fi
6932
6933 done
6934fi
6935
ec6a6fbe
AK
6936{ $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6937$as_echo_n "checking stack direction for C alloca... " >&6; }
ad6254c5 6938if test "${ac_cv_c_stack_direction+set}" = set; then
ec6a6fbe 6939 $as_echo_n "(cached) " >&6
ad6254c5
AK
6940else
6941 if test "$cross_compiling" = yes; then
6942 ac_cv_c_stack_direction=0
6943else
6944 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6945/* confdefs.h. */
6946_ACEOF
6947cat confdefs.h >>conftest.$ac_ext
6948cat >>conftest.$ac_ext <<_ACEOF
6949/* end confdefs.h. */
7a197a62 6950$ac_includes_default
ad6254c5
AK
6951int
6952find_stack_direction ()
6953{
6954 static char *addr = 0;
6955 auto char dummy;
6956 if (addr == 0)
6957 {
6958 addr = &dummy;
6959 return find_stack_direction ();
6960 }
6961 else
6962 return (&dummy > addr) ? 1 : -1;
6963}
6964
6965int
6966main ()
6967{
7a197a62 6968 return find_stack_direction () < 0;
ad6254c5
AK
6969}
6970_ACEOF
6971rm -f conftest$ac_exeext
7a197a62
AK
6972if { (ac_try="$ac_link"
6973case "(($ac_try" in
6974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6975 *) ac_try_echo=$ac_try;;
6976esac
ec6a6fbe
AK
6977eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6978$as_echo "$ac_try_echo") >&5
7a197a62 6979 (eval "$ac_link") 2>&5
ad6254c5 6980 ac_status=$?
ec6a6fbe 6981 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 6982 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
6983 { (case "(($ac_try" in
6984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6985 *) ac_try_echo=$ac_try;;
6986esac
ec6a6fbe
AK
6987eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6988$as_echo "$ac_try_echo") >&5
7a197a62 6989 (eval "$ac_try") 2>&5
ad6254c5 6990 ac_status=$?
ec6a6fbe 6991 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
6992 (exit $ac_status); }; }; then
6993 ac_cv_c_stack_direction=1
6994else
ec6a6fbe
AK
6995 $as_echo "$as_me: program exited with status $ac_status" >&5
6996$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6997sed 's/^/| /' conftest.$ac_ext >&5
6998
6999( exit $ac_status )
7000ac_cv_c_stack_direction=-1
7001fi
ec6a6fbe 7002rm -rf conftest.dSYM
7a197a62 7003rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7004fi
7a197a62
AK
7005
7006
ad6254c5 7007fi
ec6a6fbe
AK
7008{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
7009$as_echo "$ac_cv_c_stack_direction" >&6; }
ad6254c5
AK
7010
7011cat >>confdefs.h <<_ACEOF
7012#define STACK_DIRECTION $ac_cv_c_stack_direction
7013_ACEOF
7014
7015
7016fi
7017
ec6a6fbe
AK
7018{ $as_echo "$as_me:$LINENO: checking whether closedir returns void" >&5
7019$as_echo_n "checking whether closedir returns void... " >&6; }
ad6254c5 7020if test "${ac_cv_func_closedir_void+set}" = set; then
ec6a6fbe 7021 $as_echo_n "(cached) " >&6
ad6254c5
AK
7022else
7023 if test "$cross_compiling" = yes; then
7024 ac_cv_func_closedir_void=yes
7025else
7026 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7027/* confdefs.h. */
7028_ACEOF
7029cat confdefs.h >>conftest.$ac_ext
7030cat >>conftest.$ac_ext <<_ACEOF
7031/* end confdefs.h. */
7032$ac_includes_default
7033#include <$ac_header_dirent>
7034#ifndef __cplusplus
7035int closedir ();
7036#endif
7037
7038int
7039main ()
7040{
7a197a62 7041return closedir (opendir (".")) != 0;
ad6254c5
AK
7042 ;
7043 return 0;
7044}
7045_ACEOF
7046rm -f conftest$ac_exeext
7a197a62
AK
7047if { (ac_try="$ac_link"
7048case "(($ac_try" in
7049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7050 *) ac_try_echo=$ac_try;;
7051esac
ec6a6fbe
AK
7052eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7053$as_echo "$ac_try_echo") >&5
7a197a62 7054 (eval "$ac_link") 2>&5
ad6254c5 7055 ac_status=$?
ec6a6fbe 7056 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7057 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7058 { (case "(($ac_try" in
7059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7060 *) ac_try_echo=$ac_try;;
7061esac
ec6a6fbe
AK
7062eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7063$as_echo "$ac_try_echo") >&5
7a197a62 7064 (eval "$ac_try") 2>&5
ad6254c5 7065 ac_status=$?
ec6a6fbe 7066 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7067 (exit $ac_status); }; }; then
7068 ac_cv_func_closedir_void=no
7069else
ec6a6fbe
AK
7070 $as_echo "$as_me: program exited with status $ac_status" >&5
7071$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7072sed 's/^/| /' conftest.$ac_ext >&5
7073
7074( exit $ac_status )
7075ac_cv_func_closedir_void=yes
7076fi
ec6a6fbe 7077rm -rf conftest.dSYM
7a197a62 7078rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7079fi
7a197a62
AK
7080
7081
ad6254c5 7082fi
ec6a6fbe
AK
7083{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
7084$as_echo "$ac_cv_func_closedir_void" >&6; }
ad6254c5
AK
7085if test $ac_cv_func_closedir_void = yes; then
7086
7087cat >>confdefs.h <<\_ACEOF
7088#define CLOSEDIR_VOID 1
7089_ACEOF
7090
7091fi
7092
7093
7a197a62 7094for ac_header in vfork.h
ad6254c5 7095do
ec6a6fbe 7096as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 7097if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
7098 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7099$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 7100if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 7101 $as_echo_n "(cached) " >&6
ad6254c5 7102fi
ec6a6fbe
AK
7103ac_res=`eval 'as_val=${'$as_ac_Header'}
7104 $as_echo "$as_val"'`
7105 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7106$as_echo "$ac_res" >&6; }
ad6254c5
AK
7107else
7108 # Is the header compilable?
ec6a6fbe
AK
7109{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7110$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 7111cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7112/* confdefs.h. */
7113_ACEOF
7114cat confdefs.h >>conftest.$ac_ext
7115cat >>conftest.$ac_ext <<_ACEOF
7116/* end confdefs.h. */
7117$ac_includes_default
7118#include <$ac_header>
7119_ACEOF
7120rm -f conftest.$ac_objext
7a197a62
AK
7121if { (ac_try="$ac_compile"
7122case "(($ac_try" in
7123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7124 *) ac_try_echo=$ac_try;;
7125esac
ec6a6fbe
AK
7126eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7127$as_echo "$ac_try_echo") >&5
7a197a62 7128 (eval "$ac_compile") 2>conftest.er1
ad6254c5 7129 ac_status=$?
8a2fc586
AK
7130 grep -v '^ *+' conftest.er1 >conftest.err
7131 rm -f conftest.er1
7132 cat conftest.err >&5
ec6a6fbe 7133 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7134 (exit $ac_status); } && {
7135 test -z "$ac_c_werror_flag" ||
7136 test ! -s conftest.err
7137 } && test -s conftest.$ac_objext; then
ad6254c5
AK
7138 ac_header_compiler=yes
7139else
ec6a6fbe 7140 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7141sed 's/^/| /' conftest.$ac_ext >&5
7142
7a197a62 7143 ac_header_compiler=no
ad6254c5 7144fi
7a197a62
AK
7145
7146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
7147{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7148$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
7149
7150# Is the header present?
ec6a6fbe
AK
7151{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7152$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 7153cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7154/* confdefs.h. */
7155_ACEOF
7156cat confdefs.h >>conftest.$ac_ext
7157cat >>conftest.$ac_ext <<_ACEOF
7158/* end confdefs.h. */
7159#include <$ac_header>
7160_ACEOF
7a197a62
AK
7161if { (ac_try="$ac_cpp conftest.$ac_ext"
7162case "(($ac_try" in
7163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7164 *) ac_try_echo=$ac_try;;
7165esac
ec6a6fbe
AK
7166eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7167$as_echo "$ac_try_echo") >&5
7a197a62 7168 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
7169 ac_status=$?
7170 grep -v '^ *+' conftest.er1 >conftest.err
7171 rm -f conftest.er1
7172 cat conftest.err >&5
ec6a6fbe 7173 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7174 (exit $ac_status); } >/dev/null && {
7175 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7176 test ! -s conftest.err
7177 }; then
ad6254c5
AK
7178 ac_header_preproc=yes
7179else
ec6a6fbe 7180 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7181sed 's/^/| /' conftest.$ac_ext >&5
7182
7183 ac_header_preproc=no
7184fi
7a197a62 7185
ad6254c5 7186rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
7187{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7188$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
7189
7190# So? What about this header?
8a2fc586
AK
7191case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7192 yes:no: )
ec6a6fbe
AK
7193 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7194$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7195 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7196$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 7197 ac_header_preproc=yes
ad6254c5 7198 ;;
8a2fc586 7199 no:yes:* )
ec6a6fbe
AK
7200 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7201$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7202 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7203$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7204 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7205$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7206 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7207$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7208 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7209$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7210 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7211$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 7212
ad6254c5
AK
7213 ;;
7214esac
ec6a6fbe
AK
7215{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7216$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 7217if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 7218 $as_echo_n "(cached) " >&6
ad6254c5 7219else
8a2fc586 7220 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 7221fi
ec6a6fbe
AK
7222ac_res=`eval 'as_val=${'$as_ac_Header'}
7223 $as_echo "$as_val"'`
7224 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7225$as_echo "$ac_res" >&6; }
ad6254c5 7226
795ca3e5 7227fi
ec6a6fbe
AK
7228as_val=`eval 'as_val=${'$as_ac_Header'}
7229 $as_echo "$as_val"'`
7230 if test "x$as_val" = x""yes; then
ad6254c5 7231 cat >>confdefs.h <<_ACEOF
ec6a6fbe 7232#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
7233_ACEOF
7234
7235fi
7236
7237done
795ca3e5 7238
ad6254c5
AK
7239
7240
7241for ac_func in fork vfork
7242do
ec6a6fbe
AK
7243as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7244{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7245$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 7246if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 7247 $as_echo_n "(cached) " >&6
795ca3e5 7248else
ad6254c5 7249 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7250/* confdefs.h. */
7251_ACEOF
7252cat confdefs.h >>conftest.$ac_ext
7253cat >>conftest.$ac_ext <<_ACEOF
7254/* end confdefs.h. */
8a2fc586
AK
7255/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7256 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7257#define $ac_func innocuous_$ac_func
7258
ad6254c5
AK
7259/* System header to define __stub macros and hopefully few prototypes,
7260 which can conflict with char $ac_func (); below.
7261 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7262 <limits.h> exists even on freestanding compilers. */
8a2fc586 7263
ad6254c5
AK
7264#ifdef __STDC__
7265# include <limits.h>
7266#else
7267# include <assert.h>
795ca3e5 7268#endif
8a2fc586
AK
7269
7270#undef $ac_func
7271
7a197a62
AK
7272/* Override any GCC internal prototype to avoid an error.
7273 Use char because int might match the return type of a GCC
7274 builtin and then its argument prototype would still apply. */
795ca3e5 7275#ifdef __cplusplus
ad6254c5 7276extern "C"
ad6254c5 7277#endif
ad6254c5
AK
7278char $ac_func ();
7279/* The GNU C library defines this for functions which it implements
7280 to always fail with ENOSYS. Some functions are actually named
7281 something starting with __ and the normal name is an alias. */
7a197a62 7282#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 7283choke me
795ca3e5
AK
7284#endif
7285
ad6254c5
AK
7286int
7287main ()
7288{
7a197a62 7289return $ac_func ();
ad6254c5
AK
7290 ;
7291 return 0;
7292}
7293_ACEOF
7294rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
7295if { (ac_try="$ac_link"
7296case "(($ac_try" in
7297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7298 *) ac_try_echo=$ac_try;;
7299esac
ec6a6fbe
AK
7300eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7301$as_echo "$ac_try_echo") >&5
7a197a62 7302 (eval "$ac_link") 2>conftest.er1
ad6254c5 7303 ac_status=$?
8a2fc586
AK
7304 grep -v '^ *+' conftest.er1 >conftest.err
7305 rm -f conftest.er1
7306 cat conftest.err >&5
ec6a6fbe 7307 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7308 (exit $ac_status); } && {
7309 test -z "$ac_c_werror_flag" ||
7310 test ! -s conftest.err
ec6a6fbe
AK
7311 } && test -s conftest$ac_exeext && {
7312 test "$cross_compiling" = yes ||
7313 $as_test_x conftest$ac_exeext
7314 }; then
ad6254c5 7315 eval "$as_ac_var=yes"
795ca3e5 7316else
ec6a6fbe 7317 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7318sed 's/^/| /' conftest.$ac_ext >&5
7319
7a197a62 7320 eval "$as_ac_var=no"
795ca3e5 7321fi
7a197a62 7322
ec6a6fbe 7323rm -rf conftest.dSYM
25fbec5b 7324rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 7325 conftest$ac_exeext conftest.$ac_ext
ad6254c5 7326fi
ec6a6fbe
AK
7327ac_res=`eval 'as_val=${'$as_ac_var'}
7328 $as_echo "$as_val"'`
7329 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7330$as_echo "$ac_res" >&6; }
7331as_val=`eval 'as_val=${'$as_ac_var'}
7332 $as_echo "$as_val"'`
7333 if test "x$as_val" = x""yes; then
ad6254c5 7334 cat >>confdefs.h <<_ACEOF
ec6a6fbe 7335#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
7336_ACEOF
7337
7338fi
7339done
7340
7341if test "x$ac_cv_func_fork" = xyes; then
ec6a6fbe
AK
7342 { $as_echo "$as_me:$LINENO: checking for working fork" >&5
7343$as_echo_n "checking for working fork... " >&6; }
ad6254c5 7344if test "${ac_cv_func_fork_works+set}" = set; then
ec6a6fbe 7345 $as_echo_n "(cached) " >&6
ad6254c5
AK
7346else
7347 if test "$cross_compiling" = yes; then
7348 ac_cv_func_fork_works=cross
7349else
7350 cat >conftest.$ac_ext <<_ACEOF
7a197a62
AK
7351/* confdefs.h. */
7352_ACEOF
7353cat confdefs.h >>conftest.$ac_ext
7354cat >>conftest.$ac_ext <<_ACEOF
7355/* end confdefs.h. */
7356$ac_includes_default
7357int
7358main ()
7359{
7360
7361 /* By Ruediger Kuhlmann. */
7362 return fork () < 0;
7363
7364 ;
7365 return 0;
7366}
ad6254c5
AK
7367_ACEOF
7368rm -f conftest$ac_exeext
7a197a62
AK
7369if { (ac_try="$ac_link"
7370case "(($ac_try" in
7371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7372 *) ac_try_echo=$ac_try;;
7373esac
ec6a6fbe
AK
7374eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7375$as_echo "$ac_try_echo") >&5
7a197a62 7376 (eval "$ac_link") 2>&5
ad6254c5 7377 ac_status=$?
ec6a6fbe 7378 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7379 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7380 { (case "(($ac_try" in
7381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7382 *) ac_try_echo=$ac_try;;
7383esac
ec6a6fbe
AK
7384eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7385$as_echo "$ac_try_echo") >&5
7a197a62 7386 (eval "$ac_try") 2>&5
ad6254c5 7387 ac_status=$?
ec6a6fbe 7388 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7389 (exit $ac_status); }; }; then
7390 ac_cv_func_fork_works=yes
7391else
ec6a6fbe
AK
7392 $as_echo "$as_me: program exited with status $ac_status" >&5
7393$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7394sed 's/^/| /' conftest.$ac_ext >&5
7395
7396( exit $ac_status )
7397ac_cv_func_fork_works=no
7398fi
ec6a6fbe 7399rm -rf conftest.dSYM
7a197a62 7400rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7401fi
7a197a62
AK
7402
7403
ad6254c5 7404fi
ec6a6fbe
AK
7405{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
7406$as_echo "$ac_cv_func_fork_works" >&6; }
ad6254c5
AK
7407
7408else
7409 ac_cv_func_fork_works=$ac_cv_func_fork
7410fi
7411if test "x$ac_cv_func_fork_works" = xcross; then
7412 case $host in
7413 *-*-amigaos* | *-*-msdosdjgpp*)
7414 # Override, as these systems have only a dummy fork() stub
7415 ac_cv_func_fork_works=no
7416 ;;
7417 *)
7418 ac_cv_func_fork_works=yes
7419 ;;
7420 esac
ec6a6fbe
AK
7421 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
7422$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
ad6254c5
AK
7423fi
7424ac_cv_func_vfork_works=$ac_cv_func_vfork
7425if test "x$ac_cv_func_vfork" = xyes; then
ec6a6fbe
AK
7426 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
7427$as_echo_n "checking for working vfork... " >&6; }
ad6254c5 7428if test "${ac_cv_func_vfork_works+set}" = set; then
ec6a6fbe 7429 $as_echo_n "(cached) " >&6
ad6254c5
AK
7430else
7431 if test "$cross_compiling" = yes; then
7432 ac_cv_func_vfork_works=cross
7433else
7434 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7435/* confdefs.h. */
7436_ACEOF
7437cat confdefs.h >>conftest.$ac_ext
7438cat >>conftest.$ac_ext <<_ACEOF
7439/* end confdefs.h. */
7440/* Thanks to Paul Eggert for this test. */
7a197a62 7441$ac_includes_default
ad6254c5 7442#include <sys/wait.h>
25fbec5b 7443#ifdef HAVE_VFORK_H
ad6254c5
AK
7444# include <vfork.h>
7445#endif
7446/* On some sparc systems, changes by the child to local and incoming
7447 argument registers are propagated back to the parent. The compiler
7448 is told about this with #include <vfork.h>, but some compilers
7449 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
7450 static variable whose address is put into a register that is
7451 clobbered by the vfork. */
7452static void
7453#ifdef __cplusplus
7454sparc_address_test (int arg)
7455# else
7456sparc_address_test (arg) int arg;
7457#endif
7458{
7459 static pid_t child;
7460 if (!child) {
7461 child = vfork ();
7462 if (child < 0) {
7463 perror ("vfork");
7464 _exit(2);
7465 }
7466 if (!child) {
7467 arg = getpid();
7468 write(-1, "", 0);
7469 _exit (arg);
7470 }
7471 }
7472}
7473
7474int
7475main ()
7476{
7477 pid_t parent = getpid ();
7478 pid_t child;
7479
7480 sparc_address_test (0);
7481
7482 child = vfork ();
7483
7484 if (child == 0) {
7485 /* Here is another test for sparc vfork register problems. This
7486 test uses lots of local variables, at least as many local
7487 variables as main has allocated so far including compiler
7488 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
7489 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
7490 reuse the register of parent for one of the local variables,
7491 since it will think that parent can't possibly be used any more
7492 in this routine. Assigning to the local variable will thus
7493 munge parent in the parent process. */
7494 pid_t
7495 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
7496 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
7497 /* Convince the compiler that p..p7 are live; otherwise, it might
7498 use the same hardware register for all 8 local variables. */
7499 if (p != p1 || p != p2 || p != p3 || p != p4
7500 || p != p5 || p != p6 || p != p7)
7501 _exit(1);
7502
7503 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
7504 from child file descriptors. If the child closes a descriptor
7505 before it execs or exits, this munges the parent's descriptor
7506 as well. Test for this by closing stdout in the child. */
7507 _exit(close(fileno(stdout)) != 0);
7508 } else {
7509 int status;
7510 struct stat st;
7511
7512 while (wait(&status) != child)
7513 ;
7a197a62 7514 return (
ad6254c5
AK
7515 /* Was there some problem with vforking? */
7516 child < 0
7517
7518 /* Did the child fail? (This shouldn't happen.) */
7519 || status
7520
7521 /* Did the vfork/compiler bug occur? */
7522 || parent != getpid()
7523
7524 /* Did the file descriptor bug occur? */
7525 || fstat(fileno(stdout), &st) != 0
7526 );
7527 }
7528}
7529_ACEOF
7530rm -f conftest$ac_exeext
7a197a62
AK
7531if { (ac_try="$ac_link"
7532case "(($ac_try" in
7533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7534 *) ac_try_echo=$ac_try;;
7535esac
ec6a6fbe
AK
7536eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7537$as_echo "$ac_try_echo") >&5
7a197a62 7538 (eval "$ac_link") 2>&5
ad6254c5 7539 ac_status=$?
ec6a6fbe 7540 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7541 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7542 { (case "(($ac_try" in
7543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7544 *) ac_try_echo=$ac_try;;
7545esac
ec6a6fbe
AK
7546eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7547$as_echo "$ac_try_echo") >&5
7a197a62 7548 (eval "$ac_try") 2>&5
ad6254c5 7549 ac_status=$?
ec6a6fbe 7550 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7551 (exit $ac_status); }; }; then
7552 ac_cv_func_vfork_works=yes
7553else
ec6a6fbe
AK
7554 $as_echo "$as_me: program exited with status $ac_status" >&5
7555$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7556sed 's/^/| /' conftest.$ac_ext >&5
7557
7558( exit $ac_status )
7559ac_cv_func_vfork_works=no
7560fi
ec6a6fbe 7561rm -rf conftest.dSYM
7a197a62 7562rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7563fi
7a197a62
AK
7564
7565
ad6254c5 7566fi
ec6a6fbe
AK
7567{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
7568$as_echo "$ac_cv_func_vfork_works" >&6; }
ad6254c5
AK
7569
7570fi;
7571if test "x$ac_cv_func_fork_works" = xcross; then
8a2fc586 7572 ac_cv_func_vfork_works=$ac_cv_func_vfork
ec6a6fbe
AK
7573 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
7574$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
ad6254c5
AK
7575fi
7576
7577if test "x$ac_cv_func_vfork_works" = xyes; then
7578
7579cat >>confdefs.h <<\_ACEOF
7580#define HAVE_WORKING_VFORK 1
7581_ACEOF
7582
7583else
7584
7585cat >>confdefs.h <<\_ACEOF
7586#define vfork fork
7587_ACEOF
7588
7589fi
7590if test "x$ac_cv_func_fork_works" = xyes; then
7591
7592cat >>confdefs.h <<\_ACEOF
7593#define HAVE_WORKING_FORK 1
7594_ACEOF
7595
7596fi
7597
ec6a6fbe
AK
7598{ $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
7599$as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
ad6254c5 7600if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
ec6a6fbe 7601 $as_echo_n "(cached) " >&6
ad6254c5
AK
7602else
7603 rm -f conftest.sym conftest.file
7604echo >conftest.file
7605if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
7606 if test "$cross_compiling" = yes; then
7607 ac_cv_func_lstat_dereferences_slashed_symlink=no
7608else
7609 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7610/* confdefs.h. */
7611_ACEOF
7612cat confdefs.h >>conftest.$ac_ext
7613cat >>conftest.$ac_ext <<_ACEOF
7614/* end confdefs.h. */
7615$ac_includes_default
7616int
7617main ()
7618{
7619struct stat sbuf;
7620 /* Linux will dereference the symlink and fail.
8a2fc586
AK
7621 That is better in the sense that it means we will not
7622 have to compile and use the lstat wrapper. */
7a197a62 7623 return lstat ("conftest.sym/", &sbuf) == 0;
ad6254c5
AK
7624 ;
7625 return 0;
7626}
7627_ACEOF
7628rm -f conftest$ac_exeext
7a197a62
AK
7629if { (ac_try="$ac_link"
7630case "(($ac_try" in
7631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7632 *) ac_try_echo=$ac_try;;
7633esac
ec6a6fbe
AK
7634eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7635$as_echo "$ac_try_echo") >&5
7a197a62 7636 (eval "$ac_link") 2>&5
ad6254c5 7637 ac_status=$?
ec6a6fbe 7638 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7639 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7640 { (case "(($ac_try" in
7641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7642 *) ac_try_echo=$ac_try;;
7643esac
ec6a6fbe
AK
7644eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7645$as_echo "$ac_try_echo") >&5
7a197a62 7646 (eval "$ac_try") 2>&5
ad6254c5 7647 ac_status=$?
ec6a6fbe 7648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7649 (exit $ac_status); }; }; then
7650 ac_cv_func_lstat_dereferences_slashed_symlink=yes
7651else
ec6a6fbe
AK
7652 $as_echo "$as_me: program exited with status $ac_status" >&5
7653$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7654sed 's/^/| /' conftest.$ac_ext >&5
7655
7656( exit $ac_status )
7657ac_cv_func_lstat_dereferences_slashed_symlink=no
7658fi
ec6a6fbe 7659rm -rf conftest.dSYM
7a197a62 7660rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7661fi
7a197a62
AK
7662
7663
ad6254c5
AK
7664else
7665 # If the `ln -s' command failed, then we probably don't even
7666 # have an lstat function.
7667 ac_cv_func_lstat_dereferences_slashed_symlink=no
7668fi
7669rm -f conftest.sym conftest.file
7670
7671fi
ec6a6fbe
AK
7672{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
7673$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
ad6254c5
AK
7674
7675test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
7676
7677cat >>confdefs.h <<_ACEOF
7678#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
7679_ACEOF
7680
7681
7682if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
7a197a62 7683 case " $LIBOBJS " in
8a2fc586 7684 *" lstat.$ac_objext "* ) ;;
7a197a62
AK
7685 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
7686 ;;
8a2fc586
AK
7687esac
7688
ad6254c5
AK
7689fi
7690
ec6a6fbe
AK
7691{ $as_echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
7692$as_echo_n "checking whether lstat accepts an empty string... " >&6; }
ad6254c5 7693if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
ec6a6fbe 7694 $as_echo_n "(cached) " >&6
ad6254c5
AK
7695else
7696 if test "$cross_compiling" = yes; then
7697 ac_cv_func_lstat_empty_string_bug=yes
7698else
7699 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7700/* confdefs.h. */
7701_ACEOF
7702cat confdefs.h >>conftest.$ac_ext
7703cat >>conftest.$ac_ext <<_ACEOF
7704/* end confdefs.h. */
7705$ac_includes_default
7706int
7707main ()
7708{
7709struct stat sbuf;
7a197a62 7710 return lstat ("", &sbuf) == 0;
ad6254c5
AK
7711 ;
7712 return 0;
7713}
7714_ACEOF
7715rm -f conftest$ac_exeext
7a197a62
AK
7716if { (ac_try="$ac_link"
7717case "(($ac_try" in
7718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7719 *) ac_try_echo=$ac_try;;
7720esac
ec6a6fbe
AK
7721eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7722$as_echo "$ac_try_echo") >&5
7a197a62 7723 (eval "$ac_link") 2>&5
ad6254c5 7724 ac_status=$?
ec6a6fbe 7725 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7726 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7727 { (case "(($ac_try" in
7728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7729 *) ac_try_echo=$ac_try;;
7730esac
ec6a6fbe
AK
7731eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7732$as_echo "$ac_try_echo") >&5
7a197a62 7733 (eval "$ac_try") 2>&5
ad6254c5 7734 ac_status=$?
ec6a6fbe 7735 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7736 (exit $ac_status); }; }; then
7a197a62 7737 ac_cv_func_lstat_empty_string_bug=no
ad6254c5 7738else
ec6a6fbe
AK
7739 $as_echo "$as_me: program exited with status $ac_status" >&5
7740$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7741sed 's/^/| /' conftest.$ac_ext >&5
7742
7743( exit $ac_status )
7a197a62 7744ac_cv_func_lstat_empty_string_bug=yes
ad6254c5 7745fi
ec6a6fbe 7746rm -rf conftest.dSYM
7a197a62 7747rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7748fi
7a197a62
AK
7749
7750
ad6254c5 7751fi
ec6a6fbe
AK
7752{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
7753$as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
ad6254c5 7754if test $ac_cv_func_lstat_empty_string_bug = yes; then
7a197a62 7755 case " $LIBOBJS " in
8a2fc586 7756 *" lstat.$ac_objext "* ) ;;
7a197a62
AK
7757 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
7758 ;;
8a2fc586
AK
7759esac
7760
ad6254c5
AK
7761
7762cat >>confdefs.h <<_ACEOF
7763#define HAVE_LSTAT_EMPTY_STRING_BUG 1
7764_ACEOF
7765
7766fi
7767
7768
7769for ac_header in stdlib.h
7770do
ec6a6fbe 7771as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 7772if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
7773 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7774$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 7775if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 7776 $as_echo_n "(cached) " >&6
ad6254c5 7777fi
ec6a6fbe
AK
7778ac_res=`eval 'as_val=${'$as_ac_Header'}
7779 $as_echo "$as_val"'`
7780 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7781$as_echo "$ac_res" >&6; }
ad6254c5
AK
7782else
7783 # Is the header compilable?
ec6a6fbe
AK
7784{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7785$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 7786cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7787/* confdefs.h. */
7788_ACEOF
7789cat confdefs.h >>conftest.$ac_ext
7790cat >>conftest.$ac_ext <<_ACEOF
7791/* end confdefs.h. */
7792$ac_includes_default
7793#include <$ac_header>
7794_ACEOF
7795rm -f conftest.$ac_objext
7a197a62
AK
7796if { (ac_try="$ac_compile"
7797case "(($ac_try" in
7798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7799 *) ac_try_echo=$ac_try;;
7800esac
ec6a6fbe
AK
7801eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7802$as_echo "$ac_try_echo") >&5
7a197a62 7803 (eval "$ac_compile") 2>conftest.er1
ad6254c5 7804 ac_status=$?
8a2fc586
AK
7805 grep -v '^ *+' conftest.er1 >conftest.err
7806 rm -f conftest.er1
7807 cat conftest.err >&5
ec6a6fbe 7808 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7809 (exit $ac_status); } && {
7810 test -z "$ac_c_werror_flag" ||
7811 test ! -s conftest.err
7812 } && test -s conftest.$ac_objext; then
ad6254c5
AK
7813 ac_header_compiler=yes
7814else
ec6a6fbe 7815 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7816sed 's/^/| /' conftest.$ac_ext >&5
7817
7a197a62 7818 ac_header_compiler=no
ad6254c5 7819fi
7a197a62
AK
7820
7821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
7822{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7823$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
7824
7825# Is the header present?
ec6a6fbe
AK
7826{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7827$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 7828cat >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. */
7834#include <$ac_header>
7835_ACEOF
7a197a62
AK
7836if { (ac_try="$ac_cpp conftest.$ac_ext"
7837case "(($ac_try" in
7838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7839 *) ac_try_echo=$ac_try;;
7840esac
ec6a6fbe
AK
7841eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7842$as_echo "$ac_try_echo") >&5
7a197a62 7843 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
7844 ac_status=$?
7845 grep -v '^ *+' conftest.er1 >conftest.err
7846 rm -f conftest.er1
7847 cat conftest.err >&5
ec6a6fbe 7848 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7849 (exit $ac_status); } >/dev/null && {
7850 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7851 test ! -s conftest.err
7852 }; then
ad6254c5
AK
7853 ac_header_preproc=yes
7854else
ec6a6fbe 7855 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7856sed 's/^/| /' conftest.$ac_ext >&5
7857
7858 ac_header_preproc=no
7859fi
7a197a62 7860
ad6254c5 7861rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
7862{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7863$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
7864
7865# So? What about this header?
8a2fc586
AK
7866case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7867 yes:no: )
ec6a6fbe
AK
7868 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7869$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7870 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7871$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 7872 ac_header_preproc=yes
ad6254c5 7873 ;;
8a2fc586 7874 no:yes:* )
ec6a6fbe
AK
7875 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7876$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7877 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7878$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7879 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7880$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7881 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7882$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7883 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7884$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7885 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7886$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 7887
ad6254c5
AK
7888 ;;
7889esac
ec6a6fbe
AK
7890{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7891$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 7892if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 7893 $as_echo_n "(cached) " >&6
ad6254c5 7894else
8a2fc586 7895 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 7896fi
ec6a6fbe
AK
7897ac_res=`eval 'as_val=${'$as_ac_Header'}
7898 $as_echo "$as_val"'`
7899 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7900$as_echo "$ac_res" >&6; }
ad6254c5
AK
7901
7902fi
ec6a6fbe
AK
7903as_val=`eval 'as_val=${'$as_ac_Header'}
7904 $as_echo "$as_val"'`
7905 if test "x$as_val" = x""yes; then
ad6254c5 7906 cat >>confdefs.h <<_ACEOF
ec6a6fbe 7907#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
7908_ACEOF
7909
7910fi
7911
7912done
7913
ec6a6fbe
AK
7914{ $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
7915$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
ad6254c5 7916if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
ec6a6fbe 7917 $as_echo_n "(cached) " >&6
ad6254c5
AK
7918else
7919 if test "$cross_compiling" = yes; then
7920 ac_cv_func_malloc_0_nonnull=no
7921else
7922 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7923/* confdefs.h. */
7924_ACEOF
7925cat confdefs.h >>conftest.$ac_ext
7926cat >>conftest.$ac_ext <<_ACEOF
7927/* end confdefs.h. */
25fbec5b 7928#if defined STDC_HEADERS || defined HAVE_STDLIB_H
ad6254c5
AK
7929# include <stdlib.h>
7930#else
7931char *malloc ();
7932#endif
7933
7934int
7935main ()
7936{
7a197a62 7937return ! malloc (0);
ad6254c5
AK
7938 ;
7939 return 0;
7940}
7941_ACEOF
7942rm -f conftest$ac_exeext
7a197a62
AK
7943if { (ac_try="$ac_link"
7944case "(($ac_try" in
7945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7946 *) ac_try_echo=$ac_try;;
7947esac
ec6a6fbe
AK
7948eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7949$as_echo "$ac_try_echo") >&5
7a197a62 7950 (eval "$ac_link") 2>&5
ad6254c5 7951 ac_status=$?
ec6a6fbe 7952 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7953 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7954 { (case "(($ac_try" in
7955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7956 *) ac_try_echo=$ac_try;;
7957esac
ec6a6fbe
AK
7958eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7959$as_echo "$ac_try_echo") >&5
7a197a62 7960 (eval "$ac_try") 2>&5
ad6254c5 7961 ac_status=$?
ec6a6fbe 7962 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7963 (exit $ac_status); }; }; then
7964 ac_cv_func_malloc_0_nonnull=yes
7965else
ec6a6fbe
AK
7966 $as_echo "$as_me: program exited with status $ac_status" >&5
7967$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7968sed 's/^/| /' conftest.$ac_ext >&5
7969
7970( exit $ac_status )
7971ac_cv_func_malloc_0_nonnull=no
7972fi
ec6a6fbe 7973rm -rf conftest.dSYM
7a197a62 7974rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7975fi
7a197a62
AK
7976
7977
ad6254c5 7978fi
ec6a6fbe
AK
7979{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
7980$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
ad6254c5
AK
7981if test $ac_cv_func_malloc_0_nonnull = yes; then
7982
7983cat >>confdefs.h <<\_ACEOF
7984#define HAVE_MALLOC 1
7985_ACEOF
7986
7987else
7988 cat >>confdefs.h <<\_ACEOF
7989#define HAVE_MALLOC 0
7990_ACEOF
7991
7a197a62 7992 case " $LIBOBJS " in
8a2fc586 7993 *" malloc.$ac_objext "* ) ;;
7a197a62
AK
7994 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
7995 ;;
8a2fc586
AK
7996esac
7997
ad6254c5
AK
7998
7999cat >>confdefs.h <<\_ACEOF
8000#define malloc rpl_malloc
8001_ACEOF
8002
8003fi
8004
8005
8006
ec6a6fbe
AK
8007{ $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
8008$as_echo_n "checking for working memcmp... " >&6; }
ad6254c5 8009if test "${ac_cv_func_memcmp_working+set}" = set; then
ec6a6fbe 8010 $as_echo_n "(cached) " >&6
ad6254c5
AK
8011else
8012 if test "$cross_compiling" = yes; then
8013 ac_cv_func_memcmp_working=no
8014else
8015 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8016/* confdefs.h. */
8017_ACEOF
8018cat confdefs.h >>conftest.$ac_ext
8019cat >>conftest.$ac_ext <<_ACEOF
8020/* end confdefs.h. */
8a2fc586 8021$ac_includes_default
ad6254c5
AK
8022int
8023main ()
8024{
8025
8026 /* Some versions of memcmp are not 8-bit clean. */
7a197a62 8027 char c0 = '\100', c1 = '\200', c2 = '\201';
ad6254c5 8028 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
7a197a62 8029 return 1;
ad6254c5
AK
8030
8031 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
8032 or more and with at least one buffer not starting on a 4-byte boundary.
8033 William Lewis provided this test program. */
8034 {
8035 char foo[21];
8036 char bar[21];
8037 int i;
8038 for (i = 0; i < 4; i++)
8039 {
8a2fc586
AK
8040 char *a = foo + i;
8041 char *b = bar + i;
8042 strcpy (a, "--------01111111");
8043 strcpy (b, "--------10000000");
8044 if (memcmp (a, b, 16) >= 0)
7a197a62 8045 return 1;
ad6254c5 8046 }
7a197a62 8047 return 0;
ad6254c5
AK
8048 }
8049
8050 ;
8051 return 0;
8052}
8053_ACEOF
8054rm -f conftest$ac_exeext
7a197a62
AK
8055if { (ac_try="$ac_link"
8056case "(($ac_try" in
8057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8058 *) ac_try_echo=$ac_try;;
8059esac
ec6a6fbe
AK
8060eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8061$as_echo "$ac_try_echo") >&5
7a197a62 8062 (eval "$ac_link") 2>&5
ad6254c5 8063 ac_status=$?
ec6a6fbe 8064 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 8065 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
8066 { (case "(($ac_try" in
8067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8068 *) ac_try_echo=$ac_try;;
8069esac
ec6a6fbe
AK
8070eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8071$as_echo "$ac_try_echo") >&5
7a197a62 8072 (eval "$ac_try") 2>&5
ad6254c5 8073 ac_status=$?
ec6a6fbe 8074 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
8075 (exit $ac_status); }; }; then
8076 ac_cv_func_memcmp_working=yes
8077else
ec6a6fbe
AK
8078 $as_echo "$as_me: program exited with status $ac_status" >&5
8079$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8080sed 's/^/| /' conftest.$ac_ext >&5
8081
8082( exit $ac_status )
8083ac_cv_func_memcmp_working=no
8084fi
ec6a6fbe 8085rm -rf conftest.dSYM
7a197a62 8086rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 8087fi
7a197a62
AK
8088
8089
ad6254c5 8090fi
ec6a6fbe
AK
8091{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
8092$as_echo "$ac_cv_func_memcmp_working" >&6; }
7a197a62 8093test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
8a2fc586 8094 *" memcmp.$ac_objext "* ) ;;
7a197a62
AK
8095 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
8096 ;;
8a2fc586
AK
8097esac
8098
ad6254c5
AK
8099
8100
8101
8102for ac_header in stdlib.h unistd.h
8103do
ec6a6fbe 8104as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 8105if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
8106 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8107$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 8108if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 8109 $as_echo_n "(cached) " >&6
ad6254c5 8110fi
ec6a6fbe
AK
8111ac_res=`eval 'as_val=${'$as_ac_Header'}
8112 $as_echo "$as_val"'`
8113 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8114$as_echo "$ac_res" >&6; }
ad6254c5
AK
8115else
8116 # Is the header compilable?
ec6a6fbe
AK
8117{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8118$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 8119cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8120/* confdefs.h. */
8121_ACEOF
8122cat confdefs.h >>conftest.$ac_ext
8123cat >>conftest.$ac_ext <<_ACEOF
8124/* end confdefs.h. */
8125$ac_includes_default
8126#include <$ac_header>
8127_ACEOF
8128rm -f conftest.$ac_objext
7a197a62
AK
8129if { (ac_try="$ac_compile"
8130case "(($ac_try" in
8131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8132 *) ac_try_echo=$ac_try;;
8133esac
ec6a6fbe
AK
8134eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8135$as_echo "$ac_try_echo") >&5
7a197a62 8136 (eval "$ac_compile") 2>conftest.er1
ad6254c5 8137 ac_status=$?
8a2fc586
AK
8138 grep -v '^ *+' conftest.er1 >conftest.err
8139 rm -f conftest.er1
8140 cat conftest.err >&5
ec6a6fbe 8141 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8142 (exit $ac_status); } && {
8143 test -z "$ac_c_werror_flag" ||
8144 test ! -s conftest.err
8145 } && test -s conftest.$ac_objext; then
ad6254c5
AK
8146 ac_header_compiler=yes
8147else
ec6a6fbe 8148 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8149sed 's/^/| /' conftest.$ac_ext >&5
8150
7a197a62 8151 ac_header_compiler=no
ad6254c5 8152fi
7a197a62
AK
8153
8154rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
8155{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8156$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
8157
8158# Is the header present?
ec6a6fbe
AK
8159{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8160$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 8161cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8162/* confdefs.h. */
8163_ACEOF
8164cat confdefs.h >>conftest.$ac_ext
8165cat >>conftest.$ac_ext <<_ACEOF
8166/* end confdefs.h. */
8167#include <$ac_header>
8168_ACEOF
7a197a62
AK
8169if { (ac_try="$ac_cpp conftest.$ac_ext"
8170case "(($ac_try" in
8171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8172 *) ac_try_echo=$ac_try;;
8173esac
ec6a6fbe
AK
8174eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8175$as_echo "$ac_try_echo") >&5
7a197a62 8176 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
8177 ac_status=$?
8178 grep -v '^ *+' conftest.er1 >conftest.err
8179 rm -f conftest.er1
8180 cat conftest.err >&5
ec6a6fbe 8181 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8182 (exit $ac_status); } >/dev/null && {
8183 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8184 test ! -s conftest.err
8185 }; then
ad6254c5
AK
8186 ac_header_preproc=yes
8187else
ec6a6fbe 8188 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8189sed 's/^/| /' conftest.$ac_ext >&5
8190
8191 ac_header_preproc=no
8192fi
7a197a62 8193
ad6254c5 8194rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
8195{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8196$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
8197
8198# So? What about this header?
8a2fc586
AK
8199case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8200 yes:no: )
ec6a6fbe
AK
8201 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8202$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8203 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8204$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 8205 ac_header_preproc=yes
ad6254c5 8206 ;;
8a2fc586 8207 no:yes:* )
ec6a6fbe
AK
8208 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8209$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8210 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8211$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8212 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8213$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8214 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8215$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8216 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8217$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8218 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8219$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 8220
ad6254c5
AK
8221 ;;
8222esac
ec6a6fbe
AK
8223{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8224$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 8225if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 8226 $as_echo_n "(cached) " >&6
ad6254c5 8227else
8a2fc586 8228 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 8229fi
ec6a6fbe
AK
8230ac_res=`eval 'as_val=${'$as_ac_Header'}
8231 $as_echo "$as_val"'`
8232 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8233$as_echo "$ac_res" >&6; }
ad6254c5
AK
8234
8235fi
ec6a6fbe
AK
8236as_val=`eval 'as_val=${'$as_ac_Header'}
8237 $as_echo "$as_val"'`
8238 if test "x$as_val" = x""yes; then
ad6254c5 8239 cat >>confdefs.h <<_ACEOF
ec6a6fbe 8240#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
8241_ACEOF
8242
8243fi
8244
8245done
8246
8247
8248for ac_func in getpagesize
8249do
ec6a6fbe
AK
8250as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8251{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8252$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 8253if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 8254 $as_echo_n "(cached) " >&6
ad6254c5
AK
8255else
8256 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8257/* confdefs.h. */
8258_ACEOF
8259cat confdefs.h >>conftest.$ac_ext
8260cat >>conftest.$ac_ext <<_ACEOF
8261/* end confdefs.h. */
8a2fc586
AK
8262/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8263 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8264#define $ac_func innocuous_$ac_func
8265
ad6254c5
AK
8266/* System header to define __stub macros and hopefully few prototypes,
8267 which can conflict with char $ac_func (); below.
8268 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8269 <limits.h> exists even on freestanding compilers. */
8a2fc586 8270
ad6254c5
AK
8271#ifdef __STDC__
8272# include <limits.h>
8273#else
8274# include <assert.h>
8275#endif
8a2fc586
AK
8276
8277#undef $ac_func
8278
7a197a62
AK
8279/* Override any GCC internal prototype to avoid an error.
8280 Use char because int might match the return type of a GCC
8281 builtin and then its argument prototype would still apply. */
ad6254c5
AK
8282#ifdef __cplusplus
8283extern "C"
ad6254c5 8284#endif
ad6254c5
AK
8285char $ac_func ();
8286/* The GNU C library defines this for functions which it implements
8287 to always fail with ENOSYS. Some functions are actually named
8288 something starting with __ and the normal name is an alias. */
7a197a62 8289#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 8290choke me
ad6254c5
AK
8291#endif
8292
8293int
8294main ()
8295{
7a197a62 8296return $ac_func ();
ad6254c5
AK
8297 ;
8298 return 0;
8299}
8300_ACEOF
8301rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
8302if { (ac_try="$ac_link"
8303case "(($ac_try" in
8304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8305 *) ac_try_echo=$ac_try;;
8306esac
ec6a6fbe
AK
8307eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8308$as_echo "$ac_try_echo") >&5
7a197a62 8309 (eval "$ac_link") 2>conftest.er1
ad6254c5 8310 ac_status=$?
8a2fc586
AK
8311 grep -v '^ *+' conftest.er1 >conftest.err
8312 rm -f conftest.er1
8313 cat conftest.err >&5
ec6a6fbe 8314 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8315 (exit $ac_status); } && {
8316 test -z "$ac_c_werror_flag" ||
8317 test ! -s conftest.err
ec6a6fbe
AK
8318 } && test -s conftest$ac_exeext && {
8319 test "$cross_compiling" = yes ||
8320 $as_test_x conftest$ac_exeext
8321 }; then
ad6254c5
AK
8322 eval "$as_ac_var=yes"
8323else
ec6a6fbe 8324 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8325sed 's/^/| /' conftest.$ac_ext >&5
8326
7a197a62 8327 eval "$as_ac_var=no"
ad6254c5 8328fi
7a197a62 8329
ec6a6fbe 8330rm -rf conftest.dSYM
25fbec5b 8331rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 8332 conftest$ac_exeext conftest.$ac_ext
ad6254c5 8333fi
ec6a6fbe
AK
8334ac_res=`eval 'as_val=${'$as_ac_var'}
8335 $as_echo "$as_val"'`
8336 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8337$as_echo "$ac_res" >&6; }
8338as_val=`eval 'as_val=${'$as_ac_var'}
8339 $as_echo "$as_val"'`
8340 if test "x$as_val" = x""yes; then
ad6254c5 8341 cat >>confdefs.h <<_ACEOF
ec6a6fbe 8342#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
8343_ACEOF
8344
8345fi
8346done
8347
ec6a6fbe
AK
8348{ $as_echo "$as_me:$LINENO: checking for working mmap" >&5
8349$as_echo_n "checking for working mmap... " >&6; }
ad6254c5 8350if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
ec6a6fbe 8351 $as_echo_n "(cached) " >&6
ad6254c5
AK
8352else
8353 if test "$cross_compiling" = yes; then
8354 ac_cv_func_mmap_fixed_mapped=no
8355else
8356 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8357/* confdefs.h. */
8358_ACEOF
8359cat confdefs.h >>conftest.$ac_ext
8360cat >>conftest.$ac_ext <<_ACEOF
8361/* end confdefs.h. */
8362$ac_includes_default
8363/* malloc might have been renamed as rpl_malloc. */
8364#undef malloc
8365
8366/* Thanks to Mike Haertel and Jim Avera for this test.
8367 Here is a matrix of mmap possibilities:
8368 mmap private not fixed
8369 mmap private fixed at somewhere currently unmapped
8370 mmap private fixed at somewhere already mapped
8371 mmap shared not fixed
8372 mmap shared fixed at somewhere currently unmapped
8373 mmap shared fixed at somewhere already mapped
8374 For private mappings, we should verify that changes cannot be read()
8375 back from the file, nor mmap's back from the file at a different
8376 address. (There have been systems where private was not correctly
8377 implemented like the infamous i386 svr4.0, and systems where the
8378 VM page cache was not coherent with the file system buffer cache
8379 like early versions of FreeBSD and possibly contemporary NetBSD.)
8380 For shared mappings, we should conversely verify that changes get
8381 propagated back to all the places they're supposed to be.
8382
8383 Grep wants private fixed already mapped.
8384 The main things grep needs to know about mmap are:
8385 * does it exist and is it safe to write into the mmap'd area
8386 * how to use it (BSD variants) */
8387
8388#include <fcntl.h>
8389#include <sys/mman.h>
8390
25fbec5b 8391#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
ad6254c5
AK
8392char *malloc ();
8393#endif
8394
8395/* This mess was copied from the GNU getpagesize.h. */
25fbec5b 8396#ifndef HAVE_GETPAGESIZE
ad6254c5 8397/* Assume that all systems that can run configure have sys/param.h. */
25fbec5b 8398# ifndef HAVE_SYS_PARAM_H
ad6254c5
AK
8399# define HAVE_SYS_PARAM_H 1
8400# endif
8401
8402# ifdef _SC_PAGESIZE
8403# define getpagesize() sysconf(_SC_PAGESIZE)
8404# else /* no _SC_PAGESIZE */
25fbec5b 8405# ifdef HAVE_SYS_PARAM_H
ad6254c5
AK
8406# include <sys/param.h>
8407# ifdef EXEC_PAGESIZE
8408# define getpagesize() EXEC_PAGESIZE
8409# else /* no EXEC_PAGESIZE */
8410# ifdef NBPG
8411# define getpagesize() NBPG * CLSIZE
8412# ifndef CLSIZE
8413# define CLSIZE 1
8414# endif /* no CLSIZE */
8415# else /* no NBPG */
8416# ifdef NBPC
8417# define getpagesize() NBPC
8418# else /* no NBPC */
8419# ifdef PAGESIZE
8420# define getpagesize() PAGESIZE
8421# endif /* PAGESIZE */
8422# endif /* no NBPC */
8423# endif /* no NBPG */
8424# endif /* no EXEC_PAGESIZE */
8425# else /* no HAVE_SYS_PARAM_H */
8426# define getpagesize() 8192 /* punt totally */
8427# endif /* no HAVE_SYS_PARAM_H */
8428# endif /* no _SC_PAGESIZE */
8429
8430#endif /* no HAVE_GETPAGESIZE */
8431
8432int
8433main ()
8434{
8435 char *data, *data2, *data3;
8436 int i, pagesize;
8437 int fd;
8438
8439 pagesize = getpagesize ();
8440
8441 /* First, make a file with some known garbage in it. */
8442 data = (char *) malloc (pagesize);
8443 if (!data)
7a197a62 8444 return 1;
ad6254c5
AK
8445 for (i = 0; i < pagesize; ++i)
8446 *(data + i) = rand ();
8447 umask (0);
8448 fd = creat ("conftest.mmap", 0600);
8449 if (fd < 0)
7a197a62 8450 return 1;
ad6254c5 8451 if (write (fd, data, pagesize) != pagesize)
7a197a62 8452 return 1;
ad6254c5
AK
8453 close (fd);
8454
8455 /* Next, try to mmap the file at a fixed address which already has
8456 something else allocated at it. If we can, also make sure that
8457 we see the same garbage. */
8458 fd = open ("conftest.mmap", O_RDWR);
8459 if (fd < 0)
7a197a62 8460 return 1;
ad6254c5
AK
8461 data2 = (char *) malloc (2 * pagesize);
8462 if (!data2)
7a197a62
AK
8463 return 1;
8464 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
ad6254c5 8465 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8a2fc586 8466 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7a197a62 8467 return 1;
ad6254c5
AK
8468 for (i = 0; i < pagesize; ++i)
8469 if (*(data + i) != *(data2 + i))
7a197a62 8470 return 1;
ad6254c5
AK
8471
8472 /* Finally, make sure that changes to the mapped area do not
8473 percolate back to the file as seen by read(). (This is a bug on
8474 some variants of i386 svr4.0.) */
8475 for (i = 0; i < pagesize; ++i)
8476 *(data2 + i) = *(data2 + i) + 1;
8477 data3 = (char *) malloc (pagesize);
8478 if (!data3)
7a197a62 8479 return 1;
ad6254c5 8480 if (read (fd, data3, pagesize) != pagesize)
7a197a62 8481 return 1;
ad6254c5
AK
8482 for (i = 0; i < pagesize; ++i)
8483 if (*(data + i) != *(data3 + i))
7a197a62 8484 return 1;
ad6254c5 8485 close (fd);
7a197a62 8486 return 0;
ad6254c5
AK
8487}
8488_ACEOF
8489rm -f conftest$ac_exeext
7a197a62
AK
8490if { (ac_try="$ac_link"
8491case "(($ac_try" in
8492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8493 *) ac_try_echo=$ac_try;;
8494esac
ec6a6fbe
AK
8495eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8496$as_echo "$ac_try_echo") >&5
7a197a62 8497 (eval "$ac_link") 2>&5
ad6254c5 8498 ac_status=$?
ec6a6fbe 8499 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 8500 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
8501 { (case "(($ac_try" in
8502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8503 *) ac_try_echo=$ac_try;;
8504esac
ec6a6fbe
AK
8505eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8506$as_echo "$ac_try_echo") >&5
7a197a62 8507 (eval "$ac_try") 2>&5
ad6254c5 8508 ac_status=$?
ec6a6fbe 8509 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
8510 (exit $ac_status); }; }; then
8511 ac_cv_func_mmap_fixed_mapped=yes
8512else
ec6a6fbe
AK
8513 $as_echo "$as_me: program exited with status $ac_status" >&5
8514$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8515sed 's/^/| /' conftest.$ac_ext >&5
8516
8517( exit $ac_status )
8518ac_cv_func_mmap_fixed_mapped=no
8519fi
ec6a6fbe 8520rm -rf conftest.dSYM
7a197a62 8521rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 8522fi
7a197a62
AK
8523
8524
ad6254c5 8525fi
ec6a6fbe
AK
8526{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8527$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
ad6254c5
AK
8528if test $ac_cv_func_mmap_fixed_mapped = yes; then
8529
8530cat >>confdefs.h <<\_ACEOF
8531#define HAVE_MMAP 1
8532_ACEOF
8533
8534fi
8535rm -f conftest.mmap
8536
ec6a6fbe
AK
8537{ $as_echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
8538$as_echo_n "checking whether stat accepts an empty string... " >&6; }
ad6254c5 8539if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
ec6a6fbe 8540 $as_echo_n "(cached) " >&6
ad6254c5
AK
8541else
8542 if test "$cross_compiling" = yes; then
8543 ac_cv_func_stat_empty_string_bug=yes
8544else
8545 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8546/* confdefs.h. */
8547_ACEOF
8548cat confdefs.h >>conftest.$ac_ext
8549cat >>conftest.$ac_ext <<_ACEOF
8550/* end confdefs.h. */
8551$ac_includes_default
8552int
8553main ()
8554{
8555struct stat sbuf;
7a197a62 8556 return stat ("", &sbuf) == 0;
ad6254c5
AK
8557 ;
8558 return 0;
8559}
8560_ACEOF
8561rm -f conftest$ac_exeext
7a197a62
AK
8562if { (ac_try="$ac_link"
8563case "(($ac_try" in
8564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8565 *) ac_try_echo=$ac_try;;
8566esac
ec6a6fbe
AK
8567eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8568$as_echo "$ac_try_echo") >&5
7a197a62 8569 (eval "$ac_link") 2>&5
ad6254c5 8570 ac_status=$?
ec6a6fbe 8571 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 8572 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
8573 { (case "(($ac_try" in
8574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8575 *) ac_try_echo=$ac_try;;
8576esac
ec6a6fbe
AK
8577eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8578$as_echo "$ac_try_echo") >&5
7a197a62 8579 (eval "$ac_try") 2>&5
ad6254c5 8580 ac_status=$?
ec6a6fbe 8581 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 8582 (exit $ac_status); }; }; then
7a197a62 8583 ac_cv_func_stat_empty_string_bug=no
ad6254c5 8584else
ec6a6fbe
AK
8585 $as_echo "$as_me: program exited with status $ac_status" >&5
8586$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8587sed 's/^/| /' conftest.$ac_ext >&5
8588
8589( exit $ac_status )
7a197a62 8590ac_cv_func_stat_empty_string_bug=yes
ad6254c5 8591fi
ec6a6fbe 8592rm -rf conftest.dSYM
7a197a62 8593rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 8594fi
7a197a62
AK
8595
8596
ad6254c5 8597fi
ec6a6fbe
AK
8598{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
8599$as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
ad6254c5 8600if test $ac_cv_func_stat_empty_string_bug = yes; then
7a197a62 8601 case " $LIBOBJS " in
8a2fc586 8602 *" stat.$ac_objext "* ) ;;
7a197a62
AK
8603 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
8604 ;;
8a2fc586
AK
8605esac
8606
ad6254c5
AK
8607
8608cat >>confdefs.h <<_ACEOF
8609#define HAVE_STAT_EMPTY_STRING_BUG 1
8610_ACEOF
8611
8612fi
8613
ec6a6fbe
AK
8614{ $as_echo "$as_me:$LINENO: checking for working strtod" >&5
8615$as_echo_n "checking for working strtod... " >&6; }
ad6254c5 8616if test "${ac_cv_func_strtod+set}" = set; then
ec6a6fbe 8617 $as_echo_n "(cached) " >&6
ad6254c5
AK
8618else
8619 if test "$cross_compiling" = yes; then
8620 ac_cv_func_strtod=no
8621else
8622 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8623/* confdefs.h. */
8624_ACEOF
8625cat confdefs.h >>conftest.$ac_ext
8626cat >>conftest.$ac_ext <<_ACEOF
8627/* end confdefs.h. */
8628
7a197a62
AK
8629$ac_includes_default
8630#ifndef strtod
ad6254c5 8631double strtod ();
7a197a62 8632#endif
ad6254c5
AK
8633int
8634main()
8635{
8636 {
8637 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
8638 char *string = " +69";
8639 char *term;
8640 double value;
8641 value = strtod (string, &term);
8642 if (value != 69 || term != (string + 4))
7a197a62 8643 return 1;
ad6254c5
AK
8644 }
8645
8646 {
8647 /* Under Solaris 2.4, strtod returns the wrong value for the
8648 terminating character under some conditions. */
8649 char *string = "NaN";
8650 char *term;
8651 strtod (string, &term);
8652 if (term != string && *(term - 1) == 0)
7a197a62 8653 return 1;
ad6254c5 8654 }
7a197a62 8655 return 0;
ad6254c5
AK
8656}
8657
8658_ACEOF
8659rm -f conftest$ac_exeext
7a197a62
AK
8660if { (ac_try="$ac_link"
8661case "(($ac_try" in
8662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8663 *) ac_try_echo=$ac_try;;
8664esac
ec6a6fbe
AK
8665eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8666$as_echo "$ac_try_echo") >&5
7a197a62 8667 (eval "$ac_link") 2>&5
ad6254c5 8668 ac_status=$?
ec6a6fbe 8669 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 8670 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
8671 { (case "(($ac_try" in
8672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8673 *) ac_try_echo=$ac_try;;
8674esac
ec6a6fbe
AK
8675eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8676$as_echo "$ac_try_echo") >&5
7a197a62 8677 (eval "$ac_try") 2>&5
ad6254c5 8678 ac_status=$?
ec6a6fbe 8679 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
8680 (exit $ac_status); }; }; then
8681 ac_cv_func_strtod=yes
8682else
ec6a6fbe
AK
8683 $as_echo "$as_me: program exited with status $ac_status" >&5
8684$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8685sed 's/^/| /' conftest.$ac_ext >&5
8686
8687( exit $ac_status )
8688ac_cv_func_strtod=no
8689fi
ec6a6fbe 8690rm -rf conftest.dSYM
7a197a62 8691rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 8692fi
7a197a62
AK
8693
8694
ad6254c5 8695fi
ec6a6fbe
AK
8696{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
8697$as_echo "$ac_cv_func_strtod" >&6; }
ad6254c5 8698if test $ac_cv_func_strtod = no; then
7a197a62 8699 case " $LIBOBJS " in
8a2fc586 8700 *" strtod.$ac_objext "* ) ;;
7a197a62
AK
8701 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
8702 ;;
8a2fc586
AK
8703esac
8704
ec6a6fbe
AK
8705{ $as_echo "$as_me:$LINENO: checking for pow" >&5
8706$as_echo_n "checking for pow... " >&6; }
ad6254c5 8707if test "${ac_cv_func_pow+set}" = set; then
ec6a6fbe 8708 $as_echo_n "(cached) " >&6
ad6254c5
AK
8709else
8710 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8711/* confdefs.h. */
8712_ACEOF
8713cat confdefs.h >>conftest.$ac_ext
8714cat >>conftest.$ac_ext <<_ACEOF
8715/* end confdefs.h. */
8a2fc586
AK
8716/* Define pow to an innocuous variant, in case <limits.h> declares pow.
8717 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8718#define pow innocuous_pow
8719
ad6254c5
AK
8720/* System header to define __stub macros and hopefully few prototypes,
8721 which can conflict with char pow (); below.
8722 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8723 <limits.h> exists even on freestanding compilers. */
8a2fc586 8724
ad6254c5
AK
8725#ifdef __STDC__
8726# include <limits.h>
8727#else
8728# include <assert.h>
8729#endif
8a2fc586
AK
8730
8731#undef pow
8732
7a197a62
AK
8733/* Override any GCC internal prototype to avoid an error.
8734 Use char because int might match the return type of a GCC
8735 builtin and then its argument prototype would still apply. */
ad6254c5
AK
8736#ifdef __cplusplus
8737extern "C"
ad6254c5 8738#endif
ad6254c5
AK
8739char pow ();
8740/* The GNU C library defines this for functions which it implements
8741 to always fail with ENOSYS. Some functions are actually named
8742 something starting with __ and the normal name is an alias. */
7a197a62 8743#if defined __stub_pow || defined __stub___pow
ad6254c5 8744choke me
ad6254c5
AK
8745#endif
8746
8747int
8748main ()
8749{
7a197a62 8750return pow ();
ad6254c5
AK
8751 ;
8752 return 0;
8753}
8754_ACEOF
8755rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
8756if { (ac_try="$ac_link"
8757case "(($ac_try" in
8758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8759 *) ac_try_echo=$ac_try;;
8760esac
ec6a6fbe
AK
8761eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8762$as_echo "$ac_try_echo") >&5
7a197a62 8763 (eval "$ac_link") 2>conftest.er1
ad6254c5 8764 ac_status=$?
8a2fc586
AK
8765 grep -v '^ *+' conftest.er1 >conftest.err
8766 rm -f conftest.er1
8767 cat conftest.err >&5
ec6a6fbe 8768 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8769 (exit $ac_status); } && {
8770 test -z "$ac_c_werror_flag" ||
8771 test ! -s conftest.err
ec6a6fbe
AK
8772 } && test -s conftest$ac_exeext && {
8773 test "$cross_compiling" = yes ||
8774 $as_test_x conftest$ac_exeext
8775 }; then
ad6254c5
AK
8776 ac_cv_func_pow=yes
8777else
ec6a6fbe 8778 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8779sed 's/^/| /' conftest.$ac_ext >&5
8780
7a197a62 8781 ac_cv_func_pow=no
ad6254c5 8782fi
7a197a62 8783
ec6a6fbe 8784rm -rf conftest.dSYM
25fbec5b 8785rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 8786 conftest$ac_exeext conftest.$ac_ext
ad6254c5 8787fi
ec6a6fbe
AK
8788{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
8789$as_echo "$ac_cv_func_pow" >&6; }
ad6254c5
AK
8790
8791if test $ac_cv_func_pow = no; then
ec6a6fbe
AK
8792 { $as_echo "$as_me:$LINENO: checking for pow in -lm" >&5
8793$as_echo_n "checking for pow in -lm... " >&6; }
ad6254c5 8794if test "${ac_cv_lib_m_pow+set}" = set; then
ec6a6fbe 8795 $as_echo_n "(cached) " >&6
ad6254c5
AK
8796else
8797 ac_check_lib_save_LIBS=$LIBS
8798LIBS="-lm $LIBS"
8799cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8800/* confdefs.h. */
8801_ACEOF
8802cat confdefs.h >>conftest.$ac_ext
8803cat >>conftest.$ac_ext <<_ACEOF
8804/* end confdefs.h. */
8805
7a197a62
AK
8806/* Override any GCC internal prototype to avoid an error.
8807 Use char because int might match the return type of a GCC
8808 builtin and then its argument prototype would still apply. */
ad6254c5
AK
8809#ifdef __cplusplus
8810extern "C"
8811#endif
ad6254c5
AK
8812char pow ();
8813int
8814main ()
8815{
7a197a62 8816return pow ();
ad6254c5
AK
8817 ;
8818 return 0;
8819}
8820_ACEOF
8821rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
8822if { (ac_try="$ac_link"
8823case "(($ac_try" in
8824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8825 *) ac_try_echo=$ac_try;;
8826esac
ec6a6fbe
AK
8827eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8828$as_echo "$ac_try_echo") >&5
7a197a62 8829 (eval "$ac_link") 2>conftest.er1
ad6254c5 8830 ac_status=$?
8a2fc586
AK
8831 grep -v '^ *+' conftest.er1 >conftest.err
8832 rm -f conftest.er1
8833 cat conftest.err >&5
ec6a6fbe 8834 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8835 (exit $ac_status); } && {
8836 test -z "$ac_c_werror_flag" ||
8837 test ! -s conftest.err
ec6a6fbe
AK
8838 } && test -s conftest$ac_exeext && {
8839 test "$cross_compiling" = yes ||
8840 $as_test_x conftest$ac_exeext
8841 }; then
ad6254c5
AK
8842 ac_cv_lib_m_pow=yes
8843else
ec6a6fbe 8844 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8845sed 's/^/| /' conftest.$ac_ext >&5
8846
7a197a62 8847 ac_cv_lib_m_pow=no
ad6254c5 8848fi
7a197a62 8849
ec6a6fbe 8850rm -rf conftest.dSYM
25fbec5b 8851rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 8852 conftest$ac_exeext conftest.$ac_ext
ad6254c5 8853LIBS=$ac_check_lib_save_LIBS
d0191583 8854fi
ec6a6fbe
AK
8855{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
8856$as_echo "$ac_cv_lib_m_pow" >&6; }
8857if test "x$ac_cv_lib_m_pow" = x""yes; then
d0191583
JM
8858 POW_LIB=-lm
8859else
ec6a6fbe
AK
8860 { $as_echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
8861$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
d0191583 8862fi
72b2cb61 8863
d0191583 8864fi
72b2cb61 8865
ad6254c5
AK
8866fi
8867
ad6254c5 8868
d0191583
JM
8869for ac_func in vprintf
8870do
ec6a6fbe
AK
8871as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8872{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8873$as_echo_n "checking for $ac_func... " >&6; }
d0191583 8874if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 8875 $as_echo_n "(cached) " >&6
ad6254c5 8876else
d0191583
JM
8877 cat >conftest.$ac_ext <<_ACEOF
8878/* confdefs.h. */
8879_ACEOF
8880cat confdefs.h >>conftest.$ac_ext
8881cat >>conftest.$ac_ext <<_ACEOF
8882/* end confdefs.h. */
8883/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8884 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8885#define $ac_func innocuous_$ac_func
7a197a62 8886
d0191583
JM
8887/* System header to define __stub macros and hopefully few prototypes,
8888 which can conflict with char $ac_func (); below.
8889 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8890 <limits.h> exists even on freestanding compilers. */
ad6254c5 8891
d0191583
JM
8892#ifdef __STDC__
8893# include <limits.h>
8894#else
8895# include <assert.h>
8896#endif
ad6254c5 8897
d0191583 8898#undef $ac_func
72b2cb61 8899
d0191583
JM
8900/* Override any GCC internal prototype to avoid an error.
8901 Use char because int might match the return type of a GCC
8902 builtin and then its argument prototype would still apply. */
8903#ifdef __cplusplus
8904extern "C"
8905#endif
8906char $ac_func ();
8907/* The GNU C library defines this for functions which it implements
8908 to always fail with ENOSYS. Some functions are actually named
8909 something starting with __ and the normal name is an alias. */
8910#if defined __stub_$ac_func || defined __stub___$ac_func
8911choke me
8912#endif
8913
8914int
8915main ()
8916{
8917return $ac_func ();
8918 ;
8919 return 0;
8920}
72b2cb61 8921_ACEOF
d0191583
JM
8922rm -f conftest.$ac_objext conftest$ac_exeext
8923if { (ac_try="$ac_link"
8924case "(($ac_try" in
8925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8926 *) ac_try_echo=$ac_try;;
8927esac
ec6a6fbe
AK
8928eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8929$as_echo "$ac_try_echo") >&5
d0191583
JM
8930 (eval "$ac_link") 2>conftest.er1
8931 ac_status=$?
8932 grep -v '^ *+' conftest.er1 >conftest.err
8933 rm -f conftest.er1
8934 cat conftest.err >&5
ec6a6fbe 8935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
8936 (exit $ac_status); } && {
8937 test -z "$ac_c_werror_flag" ||
8938 test ! -s conftest.err
ec6a6fbe
AK
8939 } && test -s conftest$ac_exeext && {
8940 test "$cross_compiling" = yes ||
8941 $as_test_x conftest$ac_exeext
8942 }; then
d0191583
JM
8943 eval "$as_ac_var=yes"
8944else
ec6a6fbe 8945 $as_echo "$as_me: failed program was:" >&5
d0191583 8946sed 's/^/| /' conftest.$ac_ext >&5
72b2cb61 8947
d0191583 8948 eval "$as_ac_var=no"
ad6254c5
AK
8949fi
8950
ec6a6fbe 8951rm -rf conftest.dSYM
d0191583
JM
8952rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8953 conftest$ac_exeext conftest.$ac_ext
7a197a62 8954fi
ec6a6fbe
AK
8955ac_res=`eval 'as_val=${'$as_ac_var'}
8956 $as_echo "$as_val"'`
8957 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8958$as_echo "$ac_res" >&6; }
8959as_val=`eval 'as_val=${'$as_ac_var'}
8960 $as_echo "$as_val"'`
8961 if test "x$as_val" = x""yes; then
d0191583 8962 cat >>confdefs.h <<_ACEOF
ec6a6fbe 8963#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
d0191583 8964_ACEOF
7a197a62 8965
ec6a6fbe
AK
8966{ $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
8967$as_echo_n "checking for _doprnt... " >&6; }
d0191583 8968if test "${ac_cv_func__doprnt+set}" = set; then
ec6a6fbe 8969 $as_echo_n "(cached) " >&6
ad6254c5 8970else
d0191583
JM
8971 cat >conftest.$ac_ext <<_ACEOF
8972/* confdefs.h. */
8973_ACEOF
8974cat confdefs.h >>conftest.$ac_ext
8975cat >>conftest.$ac_ext <<_ACEOF
8976/* end confdefs.h. */
8977/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
8978 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8979#define _doprnt innocuous__doprnt
7a197a62 8980
d0191583
JM
8981/* System header to define __stub macros and hopefully few prototypes,
8982 which can conflict with char _doprnt (); below.
8983 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8984 <limits.h> exists even on freestanding compilers. */
ad6254c5 8985
d0191583
JM
8986#ifdef __STDC__
8987# include <limits.h>
8988#else
8989# include <assert.h>
8990#endif
72b2cb61 8991
d0191583
JM
8992#undef _doprnt
8993
8994/* Override any GCC internal prototype to avoid an error.
8995 Use char because int might match the return type of a GCC
8996 builtin and then its argument prototype would still apply. */
8997#ifdef __cplusplus
8998extern "C"
8999#endif
9000char _doprnt ();
9001/* The GNU C library defines this for functions which it implements
9002 to always fail with ENOSYS. Some functions are actually named
9003 something starting with __ and the normal name is an alias. */
9004#if defined __stub__doprnt || defined __stub____doprnt
9005choke me
9006#endif
9007
9008int
9009main ()
9010{
9011return _doprnt ();
9012 ;
9013 return 0;
9014}
72b2cb61 9015_ACEOF
d0191583
JM
9016rm -f conftest.$ac_objext conftest$ac_exeext
9017if { (ac_try="$ac_link"
9018case "(($ac_try" in
9019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9020 *) ac_try_echo=$ac_try;;
9021esac
ec6a6fbe
AK
9022eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9023$as_echo "$ac_try_echo") >&5
d0191583
JM
9024 (eval "$ac_link") 2>conftest.er1
9025 ac_status=$?
9026 grep -v '^ *+' conftest.er1 >conftest.err
9027 rm -f conftest.er1
9028 cat conftest.err >&5
ec6a6fbe 9029 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
9030 (exit $ac_status); } && {
9031 test -z "$ac_c_werror_flag" ||
9032 test ! -s conftest.err
ec6a6fbe
AK
9033 } && test -s conftest$ac_exeext && {
9034 test "$cross_compiling" = yes ||
9035 $as_test_x conftest$ac_exeext
9036 }; then
d0191583
JM
9037 ac_cv_func__doprnt=yes
9038else
ec6a6fbe 9039 $as_echo "$as_me: failed program was:" >&5
d0191583 9040sed 's/^/| /' conftest.$ac_ext >&5
72b2cb61 9041
d0191583 9042 ac_cv_func__doprnt=no
ad6254c5
AK
9043fi
9044
ec6a6fbe 9045rm -rf conftest.dSYM
d0191583
JM
9046rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9047 conftest$ac_exeext conftest.$ac_ext
7a197a62 9048fi
ec6a6fbe
AK
9049{ $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
9050$as_echo "$ac_cv_func__doprnt" >&6; }
9051if test "x$ac_cv_func__doprnt" = x""yes; then
7a197a62 9052
d0191583
JM
9053cat >>confdefs.h <<\_ACEOF
9054#define HAVE_DOPRNT 1
9055_ACEOF
ad6254c5 9056
7a197a62
AK
9057fi
9058
d0191583
JM
9059fi
9060done
8b1a3214 9061
ad6254c5 9062
7a197a62 9063
9c961554 9064################################################################################
ec6a6fbe
AK
9065{ $as_echo "$as_me:$LINENO: checking whether to use static linking" >&5
9066$as_echo_n "checking whether to use static linking... " >&6; }
9c961554
MB
9067# Check whether --enable-static_link was given.
9068if test "${enable_static_link+set}" = set; then
9069 enableval=$enable_static_link; STATIC_LINK=$enableval
9070else
9071 STATIC_LINK=no
9072fi
9073
ec6a6fbe
AK
9074{ $as_echo "$as_me:$LINENO: result: $STATIC_LINK" >&5
9075$as_echo "$STATIC_LINK" >&6; }
9c961554 9076
d0191583 9077################################################################################
ad6254c5 9078
ad6254c5
AK
9079
9080################################################################################
ec6a6fbe
AK
9081{ $as_echo "$as_me:$LINENO: checking file owner" >&5
9082$as_echo_n "checking file owner... " >&6; }
39dabc84 9083OWNER=""
d0191583
JM
9084
9085
9086# Check whether --with-user was given.
9087if test "${with_user+set}" = set; then
9088 withval=$with_user; OWNER="$withval"
7a197a62
AK
9089fi
9090
ec6a6fbe
AK
9091{ $as_echo "$as_me:$LINENO: result: $OWNER" >&5
9092$as_echo "$OWNER" >&6; }
ad6254c5 9093
d0191583
JM
9094if test x$OWNER != x; then
9095 OWNER="-o $OWNER"
ad6254c5
AK
9096fi
9097
9098################################################################################
ec6a6fbe
AK
9099{ $as_echo "$as_me:$LINENO: checking group owner" >&5
9100$as_echo_n "checking group owner... " >&6; }
39dabc84 9101GROUP=""
ad6254c5 9102
d0191583
JM
9103# Check whether --with-group was given.
9104if test "${with_group+set}" = set; then
9105 withval=$with_group; GROUP="$withval"
7a197a62
AK
9106fi
9107
ec6a6fbe
AK
9108{ $as_echo "$as_me:$LINENO: result: $GROUP" >&5
9109$as_echo "$GROUP" >&6; }
d0191583
JM
9110
9111if test x$GROUP != x; then
9112 GROUP="-g $GROUP"
9113fi
ad6254c5 9114
24bbc4d7 9115################################################################################
ec6a6fbe
AK
9116{ $as_echo "$as_me:$LINENO: checking device node uid" >&5
9117$as_echo_n "checking device node uid... " >&6; }
24bbc4d7
AK
9118
9119
9120# Check whether --with-device-uid was given.
9121if test "${with_device_uid+set}" = set; then
9122 withval=$with_device_uid; DM_DEVICE_UID="$withval"
9123else
9124 DM_DEVICE_UID="0"
9125fi
9126
ec6a6fbe
AK
9127{ $as_echo "$as_me:$LINENO: result: $DM_DEVICE_UID" >&5
9128$as_echo "$DM_DEVICE_UID" >&6; }
24bbc4d7
AK
9129
9130################################################################################
ec6a6fbe
AK
9131{ $as_echo "$as_me:$LINENO: checking device node gid" >&5
9132$as_echo_n "checking device node gid... " >&6; }
24bbc4d7
AK
9133
9134
9135# Check whether --with-device-gid was given.
9136if test "${with_device_gid+set}" = set; then
9137 withval=$with_device_gid; DM_DEVICE_GID="$withval"
9138else
9139 DM_DEVICE_GID="0"
9140fi
9141
ec6a6fbe
AK
9142{ $as_echo "$as_me:$LINENO: result: $DM_DEVICE_GID" >&5
9143$as_echo "$DM_DEVICE_GID" >&6; }
24bbc4d7 9144
93bd259b 9145################################################################################
ec6a6fbe
AK
9146{ $as_echo "$as_me:$LINENO: checking device node mode" >&5
9147$as_echo_n "checking device node mode... " >&6; }
93bd259b
AK
9148
9149
9150# Check whether --with-device-mode was given.
9151if test "${with_device_mode+set}" = set; then
9152 withval=$with_device_mode; DM_DEVICE_MODE="$withval"
9153else
9154 DM_DEVICE_MODE="0600"
9155fi
9156
ec6a6fbe
AK
9157{ $as_echo "$as_me:$LINENO: result: $DM_DEVICE_MODE" >&5
9158$as_echo "$DM_DEVICE_MODE" >&6; }
93bd259b 9159
ad6254c5 9160################################################################################
ec6a6fbe
AK
9161{ $as_echo "$as_me:$LINENO: checking whether to enable lvm1 fallback" >&5
9162$as_echo_n "checking whether to enable lvm1 fallback... " >&6; }
d0191583
JM
9163# Check whether --enable-lvm1_fallback was given.
9164if test "${enable_lvm1_fallback+set}" = set; then
9165 enableval=$enable_lvm1_fallback; LVM1_FALLBACK=$enableval
9166else
9167 LVM1_FALLBACK=no
7a197a62
AK
9168fi
9169
ec6a6fbe
AK
9170{ $as_echo "$as_me:$LINENO: result: $LVM1_FALLBACK" >&5
9171$as_echo "$LVM1_FALLBACK" >&6; }
ad6254c5 9172
d0191583 9173if test x$LVM1_FALLBACK = xyes; then
72b2cb61
AK
9174
9175cat >>confdefs.h <<\_ACEOF
d0191583 9176#define LVM1_FALLBACK 1
72b2cb61
AK
9177_ACEOF
9178
ad6254c5
AK
9179fi
9180
9181################################################################################
ec6a6fbe
AK
9182{ $as_echo "$as_me:$LINENO: checking whether to include support for lvm1 metadata" >&5
9183$as_echo_n "checking whether to include support for lvm1 metadata... " >&6; }
d0191583
JM
9184
9185# Check whether --with-lvm1 was given.
9186if test "${with_lvm1+set}" = set; then
9187 withval=$with_lvm1; LVM1="$withval"
9188else
9189 LVM1="internal"
7a197a62
AK
9190fi
9191
ec6a6fbe
AK
9192{ $as_echo "$as_me:$LINENO: result: $LVM1" >&5
9193$as_echo "$LVM1" >&6; }
ad6254c5 9194
d0191583 9195if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ];
ec6a6fbe 9196 then { { $as_echo "$as_me:$LINENO: error: --with-lvm1 parameter invalid
d0191583 9197" >&5
ec6a6fbe 9198$as_echo "$as_me: error: --with-lvm1 parameter invalid
d0191583
JM
9199" >&2;}
9200 { (exit 1); exit 1; }; }
9201fi;
9202
9203if test x$LVM1 = xinternal; then
72b2cb61
AK
9204
9205cat >>confdefs.h <<\_ACEOF
d0191583 9206#define LVM1_INTERNAL 1
72b2cb61
AK
9207_ACEOF
9208
ad6254c5
AK
9209fi
9210
9211################################################################################
ec6a6fbe
AK
9212{ $as_echo "$as_me:$LINENO: checking whether to include support for GFS pool metadata" >&5
9213$as_echo_n "checking whether to include support for GFS pool metadata... " >&6; }
d0191583
JM
9214
9215# Check whether --with-pool was given.
9216if test "${with_pool+set}" = set; then
9217 withval=$with_pool; POOL="$withval"
ad6254c5 9218else
d0191583 9219 POOL="internal"
7a197a62
AK
9220fi
9221
ec6a6fbe
AK
9222{ $as_echo "$as_me:$LINENO: result: $POOL" >&5
9223$as_echo "$POOL" >&6; }
ad6254c5 9224
d0191583 9225if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ];
ec6a6fbe 9226 then { { $as_echo "$as_me:$LINENO: error: --with-pool parameter invalid
d0191583 9227" >&5
ec6a6fbe 9228$as_echo "$as_me: error: --with-pool parameter invalid
d0191583
JM
9229" >&2;}
9230 { (exit 1); exit 1; }; }
9231fi;
7a197a62 9232
d0191583
JM
9233if test x$POOL = xinternal; then
9234
9235cat >>confdefs.h <<\_ACEOF
9236#define POOL_INTERNAL 1
9237_ACEOF
9238
9239fi
ad6254c5 9240
06f62ad1 9241################################################################################
ec6a6fbe
AK
9242{ $as_echo "$as_me:$LINENO: checking whether to include support for cluster locking" >&5
9243$as_echo_n "checking whether to include support for cluster locking... " >&6; }
d0191583
JM
9244
9245# Check whether --with-cluster was given.
9246if test "${with_cluster+set}" = set; then
9247 withval=$with_cluster; CLUSTER="$withval"
7a197a62
AK
9248fi
9249
ec6a6fbe
AK
9250{ $as_echo "$as_me:$LINENO: result: $CLUSTER" >&5
9251$as_echo "$CLUSTER" >&6; }
06f62ad1 9252
d0191583 9253if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ];
ec6a6fbe 9254 then { { $as_echo "$as_me:$LINENO: error: --with-cluster parameter invalid
06f62ad1 9255" >&5
ec6a6fbe 9256$as_echo "$as_me: error: --with-cluster parameter invalid
06f62ad1
AK
9257" >&2;}
9258 { (exit 1); exit 1; }; }
d0191583 9259fi;
06f62ad1 9260
d0191583 9261if test x$CLUSTER = xinternal; then
72b2cb61
AK
9262
9263cat >>confdefs.h <<\_ACEOF
d0191583 9264#define CLUSTER_LOCKING_INTERNAL 1
72b2cb61
AK
9265_ACEOF
9266
15d91f5a 9267fi
ad6254c5
AK
9268
9269################################################################################
ec6a6fbe
AK
9270{ $as_echo "$as_me:$LINENO: checking whether to include snapshots" >&5
9271$as_echo_n "checking whether to include snapshots... " >&6; }
ad6254c5 9272
d0191583
JM
9273# Check whether --with-snapshots was given.
9274if test "${with_snapshots+set}" = set; then
9275 withval=$with_snapshots; SNAPSHOTS="$withval"
9276else
9277 SNAPSHOTS="internal"
ad6254c5
AK
9278fi
9279
ec6a6fbe
AK
9280{ $as_echo "$as_me:$LINENO: result: $SNAPSHOTS" >&5
9281$as_echo "$SNAPSHOTS" >&6; }
ad6254c5 9282
d0191583 9283if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ];
ec6a6fbe 9284 then { { $as_echo "$as_me:$LINENO: error: --with-snapshots parameter invalid
d0191583 9285" >&5
ec6a6fbe 9286$as_echo "$as_me: error: --with-snapshots parameter invalid
d0191583
JM
9287" >&2;}
9288 { (exit 1); exit 1; }; }
9289fi;
9290
9291if test x$SNAPSHOTS = xinternal; then
9292
9293cat >>confdefs.h <<\_ACEOF
9294#define SNAPSHOT_INTERNAL 1
9295_ACEOF
ad6254c5 9296
ad6254c5 9297fi
7a197a62 9298
d0191583 9299################################################################################
ec6a6fbe
AK
9300{ $as_echo "$as_me:$LINENO: checking whether to include mirrors" >&5
9301$as_echo_n "checking whether to include mirrors... " >&6; }
d0191583
JM
9302
9303# Check whether --with-mirrors was given.
9304if test "${with_mirrors+set}" = set; then
9305 withval=$with_mirrors; MIRRORS="$withval"
9306else
9307 MIRRORS="internal"
ad6254c5 9308fi
ad6254c5 9309
ec6a6fbe
AK
9310{ $as_echo "$as_me:$LINENO: result: $MIRRORS" >&5
9311$as_echo "$MIRRORS" >&6; }
ad6254c5 9312
d0191583 9313if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ];
ec6a6fbe 9314 then { { $as_echo "$as_me:$LINENO: error: --with-mirrors parameter invalid
d0191583 9315" >&5
ec6a6fbe 9316$as_echo "$as_me: error: --with-mirrors parameter invalid
d0191583
JM
9317" >&2;}
9318 { (exit 1); exit 1; }; }
9319fi;
ad6254c5 9320
d0191583 9321if test x$MIRRORS = xinternal; then
ad6254c5 9322
d0191583
JM
9323cat >>confdefs.h <<\_ACEOF
9324#define MIRRORED_INTERNAL 1
ad6254c5 9325_ACEOF
8a2fc586 9326
d0191583 9327fi
8a2fc586 9328
d0191583 9329################################################################################
ec6a6fbe
AK
9330{ $as_echo "$as_me:$LINENO: checking whether to enable readline" >&5
9331$as_echo_n "checking whether to enable readline... " >&6; }
d0191583
JM
9332# Check whether --enable-readline was given.
9333if test "${enable_readline+set}" = set; then
9334 enableval=$enable_readline; READLINE=$enableval
9335else
06e459df 9336 READLINE=maybe
d0191583 9337fi
8a2fc586 9338
ec6a6fbe
AK
9339{ $as_echo "$as_me:$LINENO: result: $READLINE" >&5
9340$as_echo "$READLINE" >&6; }
8a2fc586 9341
d0191583 9342################################################################################
ec6a6fbe
AK
9343{ $as_echo "$as_me:$LINENO: checking whether to enable realtime support" >&5
9344$as_echo_n "checking whether to enable realtime support... " >&6; }
d0191583
JM
9345# Check whether --enable-realtime was given.
9346if test "${enable_realtime+set}" = set; then
9347 enableval=$enable_realtime; REALTIME=$enableval
ad6254c5 9348fi
ad6254c5 9349
ec6a6fbe
AK
9350{ $as_echo "$as_me:$LINENO: result: $REALTIME" >&5
9351$as_echo "$REALTIME" >&6; }
d0191583
JM
9352
9353################################################################################
90c80887 9354pkg_config_init() {
e2997b73
AK
9355
9356
9357if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
9358 if test -n "$ac_tool_prefix"; then
9359 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
9360set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
9361{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9362$as_echo_n "checking for $ac_word... " >&6; }
9363if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9364 $as_echo_n "(cached) " >&6
9365else
9366 case $PKG_CONFIG in
9367 [\\/]* | ?:[\\/]*)
9368 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9369 ;;
9370 *)
9371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9372for as_dir in $PATH
9373do
9374 IFS=$as_save_IFS
9375 test -z "$as_dir" && as_dir=.
9376 for ac_exec_ext in '' $ac_executable_extensions; do
9377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9378 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9379 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9380 break 2
9381 fi
9382done
9383done
9384IFS=$as_save_IFS
9385
9386 ;;
9387esac
9388fi
9389PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9390if test -n "$PKG_CONFIG"; then
9391 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9392$as_echo "$PKG_CONFIG" >&6; }
9393else
9394 { $as_echo "$as_me:$LINENO: result: no" >&5
9395$as_echo "no" >&6; }
9396fi
9397
9398
9399fi
9400if test -z "$ac_cv_path_PKG_CONFIG"; then
9401 ac_pt_PKG_CONFIG=$PKG_CONFIG
9402 # Extract the first word of "pkg-config", so it can be a program name with args.
9403set dummy pkg-config; ac_word=$2
9404{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9405$as_echo_n "checking for $ac_word... " >&6; }
9406if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
9407 $as_echo_n "(cached) " >&6
9408else
9409 case $ac_pt_PKG_CONFIG in
9410 [\\/]* | ?:[\\/]*)
9411 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
9412 ;;
9413 *)
9414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9415for as_dir in $PATH
9416do
9417 IFS=$as_save_IFS
9418 test -z "$as_dir" && as_dir=.
9419 for ac_exec_ext in '' $ac_executable_extensions; do
9420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9421 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9422 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9423 break 2
9424 fi
9425done
9426done
9427IFS=$as_save_IFS
9428
9429 ;;
9430esac
9431fi
9432ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
9433if test -n "$ac_pt_PKG_CONFIG"; then
9434 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
9435$as_echo "$ac_pt_PKG_CONFIG" >&6; }
9436else
9437 { $as_echo "$as_me:$LINENO: result: no" >&5
9438$as_echo "no" >&6; }
9439fi
9440
9441 if test "x$ac_pt_PKG_CONFIG" = x; then
9442 PKG_CONFIG=""
9443 else
9444 case $cross_compiling:$ac_tool_warned in
9445yes:)
9446{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9447$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9448ac_tool_warned=yes ;;
9449esac
9450 PKG_CONFIG=$ac_pt_PKG_CONFIG
9451 fi
9452else
9453 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
9454fi
9455
9456fi
9457if test -n "$PKG_CONFIG"; then
9458 _pkg_min_version=0.9.0
9459 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
9460$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
9461 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
9462 { $as_echo "$as_me:$LINENO: result: yes" >&5
9463$as_echo "yes" >&6; }
9464 else
9465 { $as_echo "$as_me:$LINENO: result: no" >&5
9466$as_echo "no" >&6; }
9467 PKG_CONFIG=""
9468 fi
9469
9470fi
9471
9472pkg_failed=no
a946372e
AK
9473{ $as_echo "$as_me:$LINENO: checking for PKGCONFIGINIT" >&5
9474$as_echo_n "checking for PKGCONFIGINIT... " >&6; }
e2997b73 9475
a946372e
AK
9476if test -n "$PKGCONFIGINIT_CFLAGS"; then
9477 pkg_cv_PKGCONFIGINIT_CFLAGS="$PKGCONFIGINIT_CFLAGS"
e2997b73
AK
9478 elif test -n "$PKG_CONFIG"; then
9479 if test -n "$PKG_CONFIG" && \
a946372e
AK
9480 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\"") >&5
9481 ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5
e2997b73
AK
9482 ac_status=$?
9483 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9484 (exit $ac_status); }; then
a946372e 9485 pkg_cv_PKGCONFIGINIT_CFLAGS=`$PKG_CONFIG --cflags "pkgconfiginit" 2>/dev/null`
e2997b73
AK
9486else
9487 pkg_failed=yes
9488fi
9489 else
9490 pkg_failed=untried
9491fi
a946372e
AK
9492if test -n "$PKGCONFIGINIT_LIBS"; then
9493 pkg_cv_PKGCONFIGINIT_LIBS="$PKGCONFIGINIT_LIBS"
e2997b73
AK
9494 elif test -n "$PKG_CONFIG"; then
9495 if test -n "$PKG_CONFIG" && \
a946372e
AK
9496 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\"") >&5
9497 ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5
e2997b73
AK
9498 ac_status=$?
9499 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9500 (exit $ac_status); }; then
a946372e 9501 pkg_cv_PKGCONFIGINIT_LIBS=`$PKG_CONFIG --libs "pkgconfiginit" 2>/dev/null`
e2997b73
AK
9502else
9503 pkg_failed=yes
9504fi
9505 else
9506 pkg_failed=untried
9507fi
9508
9509
9510
9511if test $pkg_failed = yes; then
9512
9513if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9514 _pkg_short_errors_supported=yes
9515else
9516 _pkg_short_errors_supported=no
9517fi
9518 if test $_pkg_short_errors_supported = yes; then
a946372e 9519 PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pkgconfiginit" 2>&1`
e2997b73 9520 else
a946372e 9521 PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "pkgconfiginit" 2>&1`
e2997b73
AK
9522 fi
9523 # Put the nasty error message in config.log where it belongs
a946372e 9524 echo "$PKGCONFIGINIT_PKG_ERRORS" >&5
e2997b73
AK
9525
9526 { $as_echo "$as_me:$LINENO: result: no" >&5
9527$as_echo "no" >&6; }
a946372e
AK
9528 { $as_echo "$as_me:$LINENO: result: pkg-config initialized" >&5
9529$as_echo "pkg-config initialized" >&6; }
e2997b73 9530elif test $pkg_failed = untried; then
a946372e
AK
9531 { $as_echo "$as_me:$LINENO: result: pkg-config initialized" >&5
9532$as_echo "pkg-config initialized" >&6; }
e2997b73 9533else
a946372e
AK
9534 PKGCONFIGINIT_CFLAGS=$pkg_cv_PKGCONFIGINIT_CFLAGS
9535 PKGCONFIGINIT_LIBS=$pkg_cv_PKGCONFIGINIT_LIBS
e2997b73
AK
9536 { $as_echo "$as_me:$LINENO: result: yes" >&5
9537$as_echo "yes" >&6; }
9538 :
9539fi
90c80887
AK
9540 PKGCONFIG_INIT=1
9541}
9542
9543################################################################################
9544{ $as_echo "$as_me:$LINENO: checking whether to build cluster LVM daemon" >&5
9545$as_echo_n "checking whether to build cluster LVM daemon... " >&6; }
9546
9547# Check whether --with-clvmd was given.
9548if test "${with_clvmd+set}" = set; then
9549 withval=$with_clvmd; CLVMD="$withval"
9550else
9551 CLVMD="none"
9552fi
9553
9554if test x$CLVMD = xyes; then
9555 CLVMD=all
9556fi
9557{ $as_echo "$as_me:$LINENO: result: $CLVMD" >&5
9558$as_echo "$CLVMD" >&6; }
9559
9560if test x$CLVMD != xnone && test x$CLUSTER = xnone; then
9561 CLUSTER=internal
9562fi
9563
9564if test x$CLVMD != xnone && test x$PKGCONFIG_INIT != x1; then
9565 pkg_config_init
9566fi
9567
9568
9569if [ `expr x"$CLVMD" : '.*gulm.*'` != 0 ]; then
9570 BUILDGULM=yes
9571fi
9572if [ `expr x"$CLVMD" : '.*corosync.*'` != 0 ]; then
9573 BUILDCOROSYNC=yes
9574fi
9575if [ `expr x"$CLVMD" : '.*openais.*'` != 0 ]; then
9576 BUILDOPENAIS=yes
9577fi
9578if [ `expr x"$CLVMD" : '.*cman.*'` != 0 ]; then
9579 BUILDCMAN=yes
9580fi
9581
9582if test x$BUILDGULM = xyes; then
9583 if test x$BUILDCOROSYNC = xyes || \
9584 test x$BUILDOPENAIS = xyes; then
9585 { { $as_echo "$as_me:$LINENO: error: requested clvmd configuration is not valid" >&5
9586$as_echo "$as_me: error: requested clvmd configuration is not valid" >&2;}
9587 { (exit 1); exit 1; }; }
9588 fi
a946372e 9589fi
e2997b73 9590
a946372e
AK
9591soft_bailout() {
9592 NOTFOUND=1
9593}
e2997b73 9594
a946372e
AK
9595hard_bailout() {
9596 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
9597$as_echo "$as_me: error: bailing out" >&2;}
9598 { (exit 1); exit 1; }; }
9599}
9600
9601if test x$CLVMD = xall; then
9602 bailout=soft_bailout
9603 BUILDGULM=yes
9604 BUILDCMAN=yes
9605 BUILDCOROSYNC=yes
9606 BUILDOPENAIS=yes
e2997b73 9607else
a946372e 9608 bailout=hard_bailout
e2997b73 9609fi
a946372e
AK
9610
9611check_lib_no_libs() {
9612 lib_no_libs_arg1=$1
9613 shift
9614 lib_no_libs_arg2=$1
9615 shift
9616 lib_no_libs_args=$@
9617
9618as_ac_Lib=`$as_echo "ac_cv_lib_$lib_no_libs_arg1''_$lib_no_libs_arg2" | $as_tr_sh`
9619{ $as_echo "$as_me:$LINENO: checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1" >&5
9620$as_echo_n "checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1... " >&6; }
9621if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
9622 $as_echo_n "(cached) " >&6
9623else
9624 ac_check_lib_save_LIBS=$LIBS
9625LIBS="-l$lib_no_libs_arg1 $lib_no_libs_args $LIBS"
9626cat >conftest.$ac_ext <<_ACEOF
9627/* confdefs.h. */
9628_ACEOF
9629cat confdefs.h >>conftest.$ac_ext
9630cat >>conftest.$ac_ext <<_ACEOF
9631/* end confdefs.h. */
9632
9633/* Override any GCC internal prototype to avoid an error.
9634 Use char because int might match the return type of a GCC
9635 builtin and then its argument prototype would still apply. */
9636#ifdef __cplusplus
9637extern "C"
9638#endif
9639char $lib_no_libs_arg2 ();
9640int
9641main ()
9642{
9643return $lib_no_libs_arg2 ();
9644 ;
9645 return 0;
9646}
9647_ACEOF
9648rm -f conftest.$ac_objext conftest$ac_exeext
9649if { (ac_try="$ac_link"
9650case "(($ac_try" in
9651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9652 *) ac_try_echo=$ac_try;;
9653esac
9654eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9655$as_echo "$ac_try_echo") >&5
9656 (eval "$ac_link") 2>conftest.er1
e2997b73 9657 ac_status=$?
a946372e
AK
9658 grep -v '^ *+' conftest.er1 >conftest.err
9659 rm -f conftest.er1
9660 cat conftest.err >&5
e2997b73 9661 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
a946372e
AK
9662 (exit $ac_status); } && {
9663 test -z "$ac_c_werror_flag" ||
9664 test ! -s conftest.err
9665 } && test -s conftest$ac_exeext && {
9666 test "$cross_compiling" = yes ||
9667 $as_test_x conftest$ac_exeext
9668 }; then
9669 eval "$as_ac_Lib=yes"
e2997b73 9670else
a946372e
AK
9671 $as_echo "$as_me: failed program was:" >&5
9672sed 's/^/| /' conftest.$ac_ext >&5
e2997b73 9673
a946372e
AK
9674 eval "$as_ac_Lib=no"
9675fi
e2997b73 9676
a946372e
AK
9677rm -rf conftest.dSYM
9678rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9679 conftest$ac_exeext conftest.$ac_ext
9680LIBS=$ac_check_lib_save_LIBS
9681fi
9682ac_res=`eval 'as_val=${'$as_ac_Lib'}
9683 $as_echo "$as_val"'`
9684 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9685$as_echo "$ac_res" >&6; }
9686as_val=`eval 'as_val=${'$as_ac_Lib'}
9687 $as_echo "$as_val"'`
9688 if test "x$as_val" = x""yes; then
9689 cat >>confdefs.h <<_ACEOF
9690#define `$as_echo "HAVE_LIB$lib_no_libs_arg1" | $as_tr_cpp` 1
9691_ACEOF
e2997b73 9692
a946372e 9693 LIBS="-l$lib_no_libs_arg1 $LIBS"
e2997b73 9694
e2997b73 9695else
a946372e 9696 $bailout
e2997b73 9697fi
e2997b73 9698
a946372e
AK
9699 LIBS=$ac_check_lib_save_LIBS
9700}
9701
9702if test x$BUILDGULM = xyes; then
e2997b73
AK
9703
9704pkg_failed=no
a946372e
AK
9705{ $as_echo "$as_me:$LINENO: checking for CCS" >&5
9706$as_echo_n "checking for CCS... " >&6; }
e2997b73 9707
a946372e
AK
9708if test -n "$CCS_CFLAGS"; then
9709 pkg_cv_CCS_CFLAGS="$CCS_CFLAGS"
e2997b73
AK
9710 elif test -n "$PKG_CONFIG"; then
9711 if test -n "$PKG_CONFIG" && \
a946372e
AK
9712 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libccs\"") >&5
9713 ($PKG_CONFIG --exists --print-errors "libccs") 2>&5
e2997b73
AK
9714 ac_status=$?
9715 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9716 (exit $ac_status); }; then
a946372e 9717 pkg_cv_CCS_CFLAGS=`$PKG_CONFIG --cflags "libccs" 2>/dev/null`
e2997b73
AK
9718else
9719 pkg_failed=yes
9720fi
9721 else
9722 pkg_failed=untried
9723fi
a946372e
AK
9724if test -n "$CCS_LIBS"; then
9725 pkg_cv_CCS_LIBS="$CCS_LIBS"
e2997b73
AK
9726 elif test -n "$PKG_CONFIG"; then
9727 if test -n "$PKG_CONFIG" && \
a946372e
AK
9728 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libccs\"") >&5
9729 ($PKG_CONFIG --exists --print-errors "libccs") 2>&5
e2997b73
AK
9730 ac_status=$?
9731 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9732 (exit $ac_status); }; then
a946372e 9733 pkg_cv_CCS_LIBS=`$PKG_CONFIG --libs "libccs" 2>/dev/null`
e2997b73
AK
9734else
9735 pkg_failed=yes
9736fi
9737 else
9738 pkg_failed=untried
9739fi
9740
9741
9742
9743if test $pkg_failed = yes; then
9744
9745if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9746 _pkg_short_errors_supported=yes
9747else
9748 _pkg_short_errors_supported=no
9749fi
9750 if test $_pkg_short_errors_supported = yes; then
a946372e 9751 CCS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libccs" 2>&1`
e2997b73 9752 else
a946372e 9753 CCS_PKG_ERRORS=`$PKG_CONFIG --print-errors "libccs" 2>&1`
e2997b73
AK
9754 fi
9755 # Put the nasty error message in config.log where it belongs
a946372e 9756 echo "$CCS_PKG_ERRORS" >&5
e2997b73
AK
9757
9758 { $as_echo "$as_me:$LINENO: result: no" >&5
9759$as_echo "no" >&6; }
a946372e 9760 NOTFOUND=0
e2997b73 9761
a946372e
AK
9762for ac_header in ccs.h
9763do
9764as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9765if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9766 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9767$as_echo_n "checking for $ac_header... " >&6; }
9768if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9769 $as_echo_n "(cached) " >&6
d0191583 9770fi
a946372e
AK
9771ac_res=`eval 'as_val=${'$as_ac_Header'}
9772 $as_echo "$as_val"'`
9773 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9774$as_echo "$ac_res" >&6; }
fc54be10 9775else
a946372e
AK
9776 # Is the header compilable?
9777{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9778$as_echo_n "checking $ac_header usability... " >&6; }
9779cat >conftest.$ac_ext <<_ACEOF
9780/* confdefs.h. */
9781_ACEOF
9782cat confdefs.h >>conftest.$ac_ext
9783cat >>conftest.$ac_ext <<_ACEOF
9784/* end confdefs.h. */
9785$ac_includes_default
9786#include <$ac_header>
9787_ACEOF
9788rm -f conftest.$ac_objext
9789if { (ac_try="$ac_compile"
9790case "(($ac_try" in
9791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9792 *) ac_try_echo=$ac_try;;
9793esac
9794eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9795$as_echo "$ac_try_echo") >&5
9796 (eval "$ac_compile") 2>conftest.er1
9797 ac_status=$?
9798 grep -v '^ *+' conftest.er1 >conftest.err
9799 rm -f conftest.er1
9800 cat conftest.err >&5
9801 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9802 (exit $ac_status); } && {
9803 test -z "$ac_c_werror_flag" ||
9804 test ! -s conftest.err
9805 } && test -s conftest.$ac_objext; then
9806 ac_header_compiler=yes
9807else
9808 $as_echo "$as_me: failed program was:" >&5
9809sed 's/^/| /' conftest.$ac_ext >&5
d0191583 9810
a946372e 9811 ac_header_compiler=no
d0191583
JM
9812fi
9813
a946372e
AK
9814rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9815{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9816$as_echo "$ac_header_compiler" >&6; }
fddafd51 9817
a946372e
AK
9818# Is the header present?
9819{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9820$as_echo_n "checking $ac_header presence... " >&6; }
9821cat >conftest.$ac_ext <<_ACEOF
9822/* confdefs.h. */
9823_ACEOF
9824cat confdefs.h >>conftest.$ac_ext
9825cat >>conftest.$ac_ext <<_ACEOF
9826/* end confdefs.h. */
9827#include <$ac_header>
9828_ACEOF
9829if { (ac_try="$ac_cpp conftest.$ac_ext"
9830case "(($ac_try" in
9831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9832 *) ac_try_echo=$ac_try;;
9833esac
9834eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9835$as_echo "$ac_try_echo") >&5
9836 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9837 ac_status=$?
9838 grep -v '^ *+' conftest.er1 >conftest.err
9839 rm -f conftest.er1
9840 cat conftest.err >&5
9841 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9842 (exit $ac_status); } >/dev/null && {
9843 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9844 test ! -s conftest.err
9845 }; then
9846 ac_header_preproc=yes
9847else
9848 $as_echo "$as_me: failed program was:" >&5
9849sed 's/^/| /' conftest.$ac_ext >&5
9850
9851 ac_header_preproc=no
9852fi
9853
9854rm -f conftest.err conftest.$ac_ext
9855{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9856$as_echo "$ac_header_preproc" >&6; }
9857
9858# So? What about this header?
9859case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9860 yes:no: )
9861 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9862$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9863 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9864$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9865 ac_header_preproc=yes
9866 ;;
9867 no:yes:* )
9868 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9869$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9870 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9871$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9872 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9873$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9874 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9875$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9876 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9877$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9878 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9879$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9880
9881 ;;
9882esac
9883{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9884$as_echo_n "checking for $ac_header... " >&6; }
9885if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9886 $as_echo_n "(cached) " >&6
9887else
9888 eval "$as_ac_Header=\$ac_header_preproc"
9889fi
9890ac_res=`eval 'as_val=${'$as_ac_Header'}
9891 $as_echo "$as_val"'`
9892 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9893$as_echo "$ac_res" >&6; }
9894
9895fi
9896as_val=`eval 'as_val=${'$as_ac_Header'}
9897 $as_echo "$as_val"'`
9898 if test "x$as_val" = x""yes; then
9899 cat >>confdefs.h <<_ACEOF
9900#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9901_ACEOF
9902
9903else
9904 $bailout
9905fi
9906
9907done
9908
9909 check_lib_no_libs ccs ccs_connect
9910 if test $NOTFOUND = 0; then
9911 { $as_echo "$as_me:$LINENO: result: no pkg for libccs, using -lccs" >&5
9912$as_echo "no pkg for libccs, using -lccs" >&6; }
9913 CCS_LIBS="-lccs"
9914 HAVE_CCS=yes
9915 fi
9916elif test $pkg_failed = untried; then
9917 NOTFOUND=0
9918
9919for ac_header in ccs.h
9920do
9921as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9922if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9923 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9924$as_echo_n "checking for $ac_header... " >&6; }
9925if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9926 $as_echo_n "(cached) " >&6
9927fi
9928ac_res=`eval 'as_val=${'$as_ac_Header'}
9929 $as_echo "$as_val"'`
9930 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9931$as_echo "$ac_res" >&6; }
9932else
9933 # Is the header compilable?
9934{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9935$as_echo_n "checking $ac_header usability... " >&6; }
9936cat >conftest.$ac_ext <<_ACEOF
9937/* confdefs.h. */
9938_ACEOF
9939cat confdefs.h >>conftest.$ac_ext
9940cat >>conftest.$ac_ext <<_ACEOF
9941/* end confdefs.h. */
9942$ac_includes_default
9943#include <$ac_header>
9944_ACEOF
9945rm -f conftest.$ac_objext
9946if { (ac_try="$ac_compile"
9947case "(($ac_try" in
9948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9949 *) ac_try_echo=$ac_try;;
9950esac
9951eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9952$as_echo "$ac_try_echo") >&5
9953 (eval "$ac_compile") 2>conftest.er1
9954 ac_status=$?
9955 grep -v '^ *+' conftest.er1 >conftest.err
9956 rm -f conftest.er1
9957 cat conftest.err >&5
9958 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9959 (exit $ac_status); } && {
9960 test -z "$ac_c_werror_flag" ||
9961 test ! -s conftest.err
9962 } && test -s conftest.$ac_objext; then
9963 ac_header_compiler=yes
9964else
9965 $as_echo "$as_me: failed program was:" >&5
9966sed 's/^/| /' conftest.$ac_ext >&5
9967
9968 ac_header_compiler=no
9969fi
9970
9971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9972{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9973$as_echo "$ac_header_compiler" >&6; }
9974
9975# Is the header present?
9976{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9977$as_echo_n "checking $ac_header presence... " >&6; }
9978cat >conftest.$ac_ext <<_ACEOF
9979/* confdefs.h. */
9980_ACEOF
9981cat confdefs.h >>conftest.$ac_ext
9982cat >>conftest.$ac_ext <<_ACEOF
9983/* end confdefs.h. */
9984#include <$ac_header>
9985_ACEOF
9986if { (ac_try="$ac_cpp conftest.$ac_ext"
9987case "(($ac_try" in
9988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9989 *) ac_try_echo=$ac_try;;
9990esac
9991eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9992$as_echo "$ac_try_echo") >&5
9993 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9994 ac_status=$?
9995 grep -v '^ *+' conftest.er1 >conftest.err
9996 rm -f conftest.er1
9997 cat conftest.err >&5
9998 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9999 (exit $ac_status); } >/dev/null && {
10000 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10001 test ! -s conftest.err
10002 }; then
10003 ac_header_preproc=yes
10004else
10005 $as_echo "$as_me: failed program was:" >&5
10006sed 's/^/| /' conftest.$ac_ext >&5
10007
10008 ac_header_preproc=no
10009fi
10010
10011rm -f conftest.err conftest.$ac_ext
10012{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10013$as_echo "$ac_header_preproc" >&6; }
10014
10015# So? What about this header?
10016case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10017 yes:no: )
10018 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10019$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10020 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10021$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10022 ac_header_preproc=yes
10023 ;;
10024 no:yes:* )
10025 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10026$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10027 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10028$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10029 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10030$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10031 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10032$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10033 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10034$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10035 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10036$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10037
10038 ;;
10039esac
10040{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10041$as_echo_n "checking for $ac_header... " >&6; }
10042if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10043 $as_echo_n "(cached) " >&6
10044else
10045 eval "$as_ac_Header=\$ac_header_preproc"
10046fi
10047ac_res=`eval 'as_val=${'$as_ac_Header'}
10048 $as_echo "$as_val"'`
10049 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10050$as_echo "$ac_res" >&6; }
10051
10052fi
10053as_val=`eval 'as_val=${'$as_ac_Header'}
10054 $as_echo "$as_val"'`
10055 if test "x$as_val" = x""yes; then
10056 cat >>confdefs.h <<_ACEOF
10057#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10058_ACEOF
10059
10060else
10061 $bailout
10062fi
10063
10064done
10065
10066 check_lib_no_libs ccs ccs_connect
10067 if test $NOTFOUND = 0; then
10068 { $as_echo "$as_me:$LINENO: result: no pkg for libccs, using -lccs" >&5
10069$as_echo "no pkg for libccs, using -lccs" >&6; }
10070 CCS_LIBS="-lccs"
10071 HAVE_CCS=yes
10072 fi
10073else
10074 CCS_CFLAGS=$pkg_cv_CCS_CFLAGS
10075 CCS_LIBS=$pkg_cv_CCS_LIBS
10076 { $as_echo "$as_me:$LINENO: result: yes" >&5
10077$as_echo "yes" >&6; }
10078 HAVE_CCS=yes
10079fi
10080
10081pkg_failed=no
10082{ $as_echo "$as_me:$LINENO: checking for GULM" >&5
10083$as_echo_n "checking for GULM... " >&6; }
10084
10085if test -n "$GULM_CFLAGS"; then
10086 pkg_cv_GULM_CFLAGS="$GULM_CFLAGS"
10087 elif test -n "$PKG_CONFIG"; then
10088 if test -n "$PKG_CONFIG" && \
10089 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgulm\"") >&5
10090 ($PKG_CONFIG --exists --print-errors "libgulm") 2>&5
10091 ac_status=$?
10092 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10093 (exit $ac_status); }; then
10094 pkg_cv_GULM_CFLAGS=`$PKG_CONFIG --cflags "libgulm" 2>/dev/null`
10095else
10096 pkg_failed=yes
10097fi
10098 else
10099 pkg_failed=untried
10100fi
10101if test -n "$GULM_LIBS"; then
10102 pkg_cv_GULM_LIBS="$GULM_LIBS"
10103 elif test -n "$PKG_CONFIG"; then
10104 if test -n "$PKG_CONFIG" && \
10105 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgulm\"") >&5
10106 ($PKG_CONFIG --exists --print-errors "libgulm") 2>&5
10107 ac_status=$?
10108 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10109 (exit $ac_status); }; then
10110 pkg_cv_GULM_LIBS=`$PKG_CONFIG --libs "libgulm" 2>/dev/null`
10111else
10112 pkg_failed=yes
10113fi
10114 else
10115 pkg_failed=untried
10116fi
10117
10118
10119
10120if test $pkg_failed = yes; then
10121
10122if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10123 _pkg_short_errors_supported=yes
10124else
10125 _pkg_short_errors_supported=no
10126fi
10127 if test $_pkg_short_errors_supported = yes; then
10128 GULM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgulm" 2>&1`
10129 else
10130 GULM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgulm" 2>&1`
10131 fi
10132 # Put the nasty error message in config.log where it belongs
10133 echo "$GULM_PKG_ERRORS" >&5
10134
10135 { $as_echo "$as_me:$LINENO: result: no" >&5
10136$as_echo "no" >&6; }
10137 NOTFOUND=0
10138
10139for ac_header in libgulm.h
10140do
10141as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10142if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10143 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10144$as_echo_n "checking for $ac_header... " >&6; }
10145if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10146 $as_echo_n "(cached) " >&6
10147fi
10148ac_res=`eval 'as_val=${'$as_ac_Header'}
10149 $as_echo "$as_val"'`
10150 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10151$as_echo "$ac_res" >&6; }
10152else
10153 # Is the header compilable?
10154{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10155$as_echo_n "checking $ac_header usability... " >&6; }
10156cat >conftest.$ac_ext <<_ACEOF
10157/* confdefs.h. */
10158_ACEOF
10159cat confdefs.h >>conftest.$ac_ext
10160cat >>conftest.$ac_ext <<_ACEOF
10161/* end confdefs.h. */
10162$ac_includes_default
10163#include <$ac_header>
10164_ACEOF
10165rm -f conftest.$ac_objext
10166if { (ac_try="$ac_compile"
10167case "(($ac_try" in
10168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10169 *) ac_try_echo=$ac_try;;
10170esac
10171eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10172$as_echo "$ac_try_echo") >&5
10173 (eval "$ac_compile") 2>conftest.er1
10174 ac_status=$?
10175 grep -v '^ *+' conftest.er1 >conftest.err
10176 rm -f conftest.er1
10177 cat conftest.err >&5
10178 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10179 (exit $ac_status); } && {
10180 test -z "$ac_c_werror_flag" ||
10181 test ! -s conftest.err
10182 } && test -s conftest.$ac_objext; then
10183 ac_header_compiler=yes
10184else
10185 $as_echo "$as_me: failed program was:" >&5
10186sed 's/^/| /' conftest.$ac_ext >&5
10187
10188 ac_header_compiler=no
10189fi
10190
10191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10192{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10193$as_echo "$ac_header_compiler" >&6; }
10194
10195# Is the header present?
10196{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10197$as_echo_n "checking $ac_header presence... " >&6; }
10198cat >conftest.$ac_ext <<_ACEOF
10199/* confdefs.h. */
10200_ACEOF
10201cat confdefs.h >>conftest.$ac_ext
10202cat >>conftest.$ac_ext <<_ACEOF
10203/* end confdefs.h. */
10204#include <$ac_header>
10205_ACEOF
10206if { (ac_try="$ac_cpp conftest.$ac_ext"
10207case "(($ac_try" in
10208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10209 *) ac_try_echo=$ac_try;;
10210esac
10211eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10212$as_echo "$ac_try_echo") >&5
10213 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10214 ac_status=$?
10215 grep -v '^ *+' conftest.er1 >conftest.err
10216 rm -f conftest.er1
10217 cat conftest.err >&5
10218 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10219 (exit $ac_status); } >/dev/null && {
10220 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10221 test ! -s conftest.err
10222 }; then
10223 ac_header_preproc=yes
10224else
10225 $as_echo "$as_me: failed program was:" >&5
10226sed 's/^/| /' conftest.$ac_ext >&5
10227
10228 ac_header_preproc=no
10229fi
10230
10231rm -f conftest.err conftest.$ac_ext
10232{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10233$as_echo "$ac_header_preproc" >&6; }
10234
10235# So? What about this header?
10236case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10237 yes:no: )
10238 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10239$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10240 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10241$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10242 ac_header_preproc=yes
10243 ;;
10244 no:yes:* )
10245 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10246$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10247 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10248$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10249 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10250$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10251 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10252$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10253 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10254$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10255 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10256$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10257
10258 ;;
10259esac
10260{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10261$as_echo_n "checking for $ac_header... " >&6; }
10262if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10263 $as_echo_n "(cached) " >&6
10264else
10265 eval "$as_ac_Header=\$ac_header_preproc"
10266fi
10267ac_res=`eval 'as_val=${'$as_ac_Header'}
10268 $as_echo "$as_val"'`
10269 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10270$as_echo "$ac_res" >&6; }
10271
10272fi
10273as_val=`eval 'as_val=${'$as_ac_Header'}
10274 $as_echo "$as_val"'`
10275 if test "x$as_val" = x""yes; then
10276 cat >>confdefs.h <<_ACEOF
10277#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10278_ACEOF
10279
10280else
10281 $bailout
10282fi
10283
10284done
10285
10286 check_lib_no_libs gulm lg_core_login
10287 if test $NOTFOUND = 0; then
10288 { $as_echo "$as_me:$LINENO: result: no pkg for libgulm, using -lgulm" >&5
10289$as_echo "no pkg for libgulm, using -lgulm" >&6; }
10290 GULM_LIBS="-lgulm"
10291 HAVE_GULM=yes
10292 fi
10293elif test $pkg_failed = untried; then
10294 NOTFOUND=0
10295
10296for ac_header in libgulm.h
10297do
10298as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10299if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10300 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10301$as_echo_n "checking for $ac_header... " >&6; }
10302if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10303 $as_echo_n "(cached) " >&6
10304fi
10305ac_res=`eval 'as_val=${'$as_ac_Header'}
10306 $as_echo "$as_val"'`
10307 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10308$as_echo "$ac_res" >&6; }
10309else
10310 # Is the header compilable?
10311{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10312$as_echo_n "checking $ac_header usability... " >&6; }
10313cat >conftest.$ac_ext <<_ACEOF
10314/* confdefs.h. */
10315_ACEOF
10316cat confdefs.h >>conftest.$ac_ext
10317cat >>conftest.$ac_ext <<_ACEOF
10318/* end confdefs.h. */
10319$ac_includes_default
10320#include <$ac_header>
10321_ACEOF
10322rm -f conftest.$ac_objext
10323if { (ac_try="$ac_compile"
10324case "(($ac_try" in
10325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10326 *) ac_try_echo=$ac_try;;
10327esac
10328eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10329$as_echo "$ac_try_echo") >&5
10330 (eval "$ac_compile") 2>conftest.er1
10331 ac_status=$?
10332 grep -v '^ *+' conftest.er1 >conftest.err
10333 rm -f conftest.er1
10334 cat conftest.err >&5
10335 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10336 (exit $ac_status); } && {
10337 test -z "$ac_c_werror_flag" ||
10338 test ! -s conftest.err
10339 } && test -s conftest.$ac_objext; then
10340 ac_header_compiler=yes
10341else
10342 $as_echo "$as_me: failed program was:" >&5
10343sed 's/^/| /' conftest.$ac_ext >&5
10344
10345 ac_header_compiler=no
10346fi
10347
10348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10349{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10350$as_echo "$ac_header_compiler" >&6; }
10351
10352# Is the header present?
10353{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10354$as_echo_n "checking $ac_header presence... " >&6; }
10355cat >conftest.$ac_ext <<_ACEOF
10356/* confdefs.h. */
10357_ACEOF
10358cat confdefs.h >>conftest.$ac_ext
10359cat >>conftest.$ac_ext <<_ACEOF
10360/* end confdefs.h. */
10361#include <$ac_header>
10362_ACEOF
10363if { (ac_try="$ac_cpp conftest.$ac_ext"
10364case "(($ac_try" in
10365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10366 *) ac_try_echo=$ac_try;;
10367esac
10368eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10369$as_echo "$ac_try_echo") >&5
10370 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10371 ac_status=$?
10372 grep -v '^ *+' conftest.er1 >conftest.err
10373 rm -f conftest.er1
10374 cat conftest.err >&5
10375 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10376 (exit $ac_status); } >/dev/null && {
10377 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10378 test ! -s conftest.err
10379 }; then
10380 ac_header_preproc=yes
10381else
10382 $as_echo "$as_me: failed program was:" >&5
10383sed 's/^/| /' conftest.$ac_ext >&5
10384
10385 ac_header_preproc=no
10386fi
10387
10388rm -f conftest.err conftest.$ac_ext
10389{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10390$as_echo "$ac_header_preproc" >&6; }
10391
10392# So? What about this header?
10393case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10394 yes:no: )
10395 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10396$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10397 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10398$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10399 ac_header_preproc=yes
10400 ;;
10401 no:yes:* )
10402 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10403$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10404 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10405$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10406 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10407$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10408 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10409$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10410 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10411$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10412 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10413$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10414
10415 ;;
10416esac
10417{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10418$as_echo_n "checking for $ac_header... " >&6; }
10419if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10420 $as_echo_n "(cached) " >&6
10421else
10422 eval "$as_ac_Header=\$ac_header_preproc"
10423fi
10424ac_res=`eval 'as_val=${'$as_ac_Header'}
10425 $as_echo "$as_val"'`
10426 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10427$as_echo "$ac_res" >&6; }
10428
10429fi
10430as_val=`eval 'as_val=${'$as_ac_Header'}
10431 $as_echo "$as_val"'`
10432 if test "x$as_val" = x""yes; then
10433 cat >>confdefs.h <<_ACEOF
10434#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10435_ACEOF
10436
10437else
10438 $bailout
10439fi
10440
10441done
10442
10443 check_lib_no_libs gulm lg_core_login
10444 if test $NOTFOUND = 0; then
10445 { $as_echo "$as_me:$LINENO: result: no pkg for libgulm, using -lgulm" >&5
10446$as_echo "no pkg for libgulm, using -lgulm" >&6; }
10447 GULM_LIBS="-lgulm"
10448 HAVE_GULM=yes
10449 fi
10450else
10451 GULM_CFLAGS=$pkg_cv_GULM_CFLAGS
10452 GULM_LIBS=$pkg_cv_GULM_LIBS
10453 { $as_echo "$as_me:$LINENO: result: yes" >&5
10454$as_echo "yes" >&6; }
10455 HAVE_GULM=yes
10456fi
10457fi
10458
10459if test x$BUILDCMAN = xyes; then
10460
10461pkg_failed=no
10462{ $as_echo "$as_me:$LINENO: checking for CMAN" >&5
10463$as_echo_n "checking for CMAN... " >&6; }
10464
10465if test -n "$CMAN_CFLAGS"; then
10466 pkg_cv_CMAN_CFLAGS="$CMAN_CFLAGS"
10467 elif test -n "$PKG_CONFIG"; then
10468 if test -n "$PKG_CONFIG" && \
10469 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcman\"") >&5
10470 ($PKG_CONFIG --exists --print-errors "libcman") 2>&5
10471 ac_status=$?
10472 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10473 (exit $ac_status); }; then
10474 pkg_cv_CMAN_CFLAGS=`$PKG_CONFIG --cflags "libcman" 2>/dev/null`
10475else
10476 pkg_failed=yes
10477fi
10478 else
10479 pkg_failed=untried
10480fi
10481if test -n "$CMAN_LIBS"; then
10482 pkg_cv_CMAN_LIBS="$CMAN_LIBS"
10483 elif test -n "$PKG_CONFIG"; then
10484 if test -n "$PKG_CONFIG" && \
10485 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcman\"") >&5
10486 ($PKG_CONFIG --exists --print-errors "libcman") 2>&5
10487 ac_status=$?
10488 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10489 (exit $ac_status); }; then
10490 pkg_cv_CMAN_LIBS=`$PKG_CONFIG --libs "libcman" 2>/dev/null`
10491else
10492 pkg_failed=yes
10493fi
10494 else
10495 pkg_failed=untried
10496fi
10497
10498
10499
10500if test $pkg_failed = yes; then
10501
10502if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10503 _pkg_short_errors_supported=yes
10504else
10505 _pkg_short_errors_supported=no
10506fi
10507 if test $_pkg_short_errors_supported = yes; then
10508 CMAN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcman" 2>&1`
10509 else
10510 CMAN_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcman" 2>&1`
10511 fi
10512 # Put the nasty error message in config.log where it belongs
10513 echo "$CMAN_PKG_ERRORS" >&5
10514
10515 { $as_echo "$as_me:$LINENO: result: no" >&5
10516$as_echo "no" >&6; }
10517 NOTFOUND=0
10518
10519for ac_header in libcman.h
10520do
10521as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10522if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10523 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10524$as_echo_n "checking for $ac_header... " >&6; }
10525if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10526 $as_echo_n "(cached) " >&6
10527fi
10528ac_res=`eval 'as_val=${'$as_ac_Header'}
10529 $as_echo "$as_val"'`
10530 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10531$as_echo "$ac_res" >&6; }
10532else
10533 # Is the header compilable?
10534{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10535$as_echo_n "checking $ac_header usability... " >&6; }
10536cat >conftest.$ac_ext <<_ACEOF
10537/* confdefs.h. */
10538_ACEOF
10539cat confdefs.h >>conftest.$ac_ext
10540cat >>conftest.$ac_ext <<_ACEOF
10541/* end confdefs.h. */
10542$ac_includes_default
10543#include <$ac_header>
10544_ACEOF
10545rm -f conftest.$ac_objext
10546if { (ac_try="$ac_compile"
10547case "(($ac_try" in
10548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10549 *) ac_try_echo=$ac_try;;
10550esac
10551eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10552$as_echo "$ac_try_echo") >&5
10553 (eval "$ac_compile") 2>conftest.er1
10554 ac_status=$?
10555 grep -v '^ *+' conftest.er1 >conftest.err
10556 rm -f conftest.er1
10557 cat conftest.err >&5
10558 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10559 (exit $ac_status); } && {
10560 test -z "$ac_c_werror_flag" ||
10561 test ! -s conftest.err
10562 } && test -s conftest.$ac_objext; then
10563 ac_header_compiler=yes
10564else
10565 $as_echo "$as_me: failed program was:" >&5
10566sed 's/^/| /' conftest.$ac_ext >&5
10567
10568 ac_header_compiler=no
10569fi
10570
10571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10572{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10573$as_echo "$ac_header_compiler" >&6; }
10574
10575# Is the header present?
10576{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10577$as_echo_n "checking $ac_header presence... " >&6; }
10578cat >conftest.$ac_ext <<_ACEOF
10579/* confdefs.h. */
10580_ACEOF
10581cat confdefs.h >>conftest.$ac_ext
10582cat >>conftest.$ac_ext <<_ACEOF
10583/* end confdefs.h. */
10584#include <$ac_header>
10585_ACEOF
10586if { (ac_try="$ac_cpp conftest.$ac_ext"
10587case "(($ac_try" in
10588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10589 *) ac_try_echo=$ac_try;;
10590esac
10591eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10592$as_echo "$ac_try_echo") >&5
10593 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10594 ac_status=$?
10595 grep -v '^ *+' conftest.er1 >conftest.err
10596 rm -f conftest.er1
10597 cat conftest.err >&5
10598 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10599 (exit $ac_status); } >/dev/null && {
10600 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10601 test ! -s conftest.err
10602 }; then
10603 ac_header_preproc=yes
10604else
10605 $as_echo "$as_me: failed program was:" >&5
10606sed 's/^/| /' conftest.$ac_ext >&5
10607
10608 ac_header_preproc=no
10609fi
10610
10611rm -f conftest.err conftest.$ac_ext
10612{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10613$as_echo "$ac_header_preproc" >&6; }
10614
10615# So? What about this header?
10616case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10617 yes:no: )
10618 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10619$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10620 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10621$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10622 ac_header_preproc=yes
10623 ;;
10624 no:yes:* )
10625 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10626$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10627 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10628$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10629 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10630$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10631 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10632$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10633 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10634$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10635 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10636$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10637
10638 ;;
10639esac
10640{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10641$as_echo_n "checking for $ac_header... " >&6; }
10642if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10643 $as_echo_n "(cached) " >&6
10644else
10645 eval "$as_ac_Header=\$ac_header_preproc"
10646fi
10647ac_res=`eval 'as_val=${'$as_ac_Header'}
10648 $as_echo "$as_val"'`
10649 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10650$as_echo "$ac_res" >&6; }
10651
10652fi
10653as_val=`eval 'as_val=${'$as_ac_Header'}
10654 $as_echo "$as_val"'`
10655 if test "x$as_val" = x""yes; then
10656 cat >>confdefs.h <<_ACEOF
10657#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10658_ACEOF
10659
10660else
10661 $bailout
10662fi
10663
10664done
10665
10666 check_lib_no_libs cman cman_init
10667 if test $NOTFOUND = 0; then
10668 { $as_echo "$as_me:$LINENO: result: no pkg for libcman, using -lcman" >&5
10669$as_echo "no pkg for libcman, using -lcman" >&6; }
10670 CMAN_LIBS="-lcman"
10671 HAVE_CMAN=yes
10672 fi
10673elif test $pkg_failed = untried; then
10674 NOTFOUND=0
10675
10676for ac_header in libcman.h
10677do
10678as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10679if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10680 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10681$as_echo_n "checking for $ac_header... " >&6; }
10682if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10683 $as_echo_n "(cached) " >&6
10684fi
10685ac_res=`eval 'as_val=${'$as_ac_Header'}
10686 $as_echo "$as_val"'`
10687 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10688$as_echo "$ac_res" >&6; }
10689else
10690 # Is the header compilable?
10691{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10692$as_echo_n "checking $ac_header usability... " >&6; }
10693cat >conftest.$ac_ext <<_ACEOF
10694/* confdefs.h. */
10695_ACEOF
10696cat confdefs.h >>conftest.$ac_ext
10697cat >>conftest.$ac_ext <<_ACEOF
10698/* end confdefs.h. */
10699$ac_includes_default
10700#include <$ac_header>
10701_ACEOF
10702rm -f conftest.$ac_objext
10703if { (ac_try="$ac_compile"
10704case "(($ac_try" in
10705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10706 *) ac_try_echo=$ac_try;;
10707esac
10708eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10709$as_echo "$ac_try_echo") >&5
10710 (eval "$ac_compile") 2>conftest.er1
10711 ac_status=$?
10712 grep -v '^ *+' conftest.er1 >conftest.err
10713 rm -f conftest.er1
10714 cat conftest.err >&5
10715 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10716 (exit $ac_status); } && {
10717 test -z "$ac_c_werror_flag" ||
10718 test ! -s conftest.err
10719 } && test -s conftest.$ac_objext; then
10720 ac_header_compiler=yes
10721else
10722 $as_echo "$as_me: failed program was:" >&5
10723sed 's/^/| /' conftest.$ac_ext >&5
10724
10725 ac_header_compiler=no
10726fi
10727
10728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10729{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10730$as_echo "$ac_header_compiler" >&6; }
10731
10732# Is the header present?
10733{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10734$as_echo_n "checking $ac_header presence... " >&6; }
10735cat >conftest.$ac_ext <<_ACEOF
10736/* confdefs.h. */
10737_ACEOF
10738cat confdefs.h >>conftest.$ac_ext
10739cat >>conftest.$ac_ext <<_ACEOF
10740/* end confdefs.h. */
10741#include <$ac_header>
10742_ACEOF
10743if { (ac_try="$ac_cpp conftest.$ac_ext"
10744case "(($ac_try" in
10745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10746 *) ac_try_echo=$ac_try;;
10747esac
10748eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10749$as_echo "$ac_try_echo") >&5
10750 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10751 ac_status=$?
10752 grep -v '^ *+' conftest.er1 >conftest.err
10753 rm -f conftest.er1
10754 cat conftest.err >&5
10755 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10756 (exit $ac_status); } >/dev/null && {
10757 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10758 test ! -s conftest.err
10759 }; then
10760 ac_header_preproc=yes
10761else
10762 $as_echo "$as_me: failed program was:" >&5
10763sed 's/^/| /' conftest.$ac_ext >&5
10764
10765 ac_header_preproc=no
10766fi
10767
10768rm -f conftest.err conftest.$ac_ext
10769{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10770$as_echo "$ac_header_preproc" >&6; }
10771
10772# So? What about this header?
10773case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10774 yes:no: )
10775 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10776$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10777 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10778$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10779 ac_header_preproc=yes
10780 ;;
10781 no:yes:* )
10782 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10783$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10784 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10785$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10786 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10787$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10788 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10789$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10790 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10791$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10792 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10793$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10794
10795 ;;
10796esac
10797{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10798$as_echo_n "checking for $ac_header... " >&6; }
10799if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10800 $as_echo_n "(cached) " >&6
10801else
10802 eval "$as_ac_Header=\$ac_header_preproc"
10803fi
10804ac_res=`eval 'as_val=${'$as_ac_Header'}
10805 $as_echo "$as_val"'`
10806 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10807$as_echo "$ac_res" >&6; }
10808
10809fi
10810as_val=`eval 'as_val=${'$as_ac_Header'}
10811 $as_echo "$as_val"'`
10812 if test "x$as_val" = x""yes; then
10813 cat >>confdefs.h <<_ACEOF
10814#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10815_ACEOF
10816
10817else
10818 $bailout
10819fi
10820
10821done
10822
10823 check_lib_no_libs cman cman_init
10824 if test $NOTFOUND = 0; then
10825 { $as_echo "$as_me:$LINENO: result: no pkg for libcman, using -lcman" >&5
10826$as_echo "no pkg for libcman, using -lcman" >&6; }
10827 CMAN_LIBS="-lcman"
10828 HAVE_CMAN=yes
10829 fi
10830else
10831 CMAN_CFLAGS=$pkg_cv_CMAN_CFLAGS
10832 CMAN_LIBS=$pkg_cv_CMAN_LIBS
10833 { $as_echo "$as_me:$LINENO: result: yes" >&5
10834$as_echo "yes" >&6; }
10835 HAVE_CMAN=yes
10836fi
10837 CHECKCONFDB=yes
10838 CHECKDLM=yes
10839fi
10840
10841if test x$BUILDCOROSYNC = xyes || \
10842 test x$BUILDOPENAIS = xyes; then
10843
10844pkg_failed=no
10845{ $as_echo "$as_me:$LINENO: checking for COROSYNC" >&5
10846$as_echo_n "checking for COROSYNC... " >&6; }
10847
10848if test -n "$COROSYNC_CFLAGS"; then
10849 pkg_cv_COROSYNC_CFLAGS="$COROSYNC_CFLAGS"
10850 elif test -n "$PKG_CONFIG"; then
10851 if test -n "$PKG_CONFIG" && \
10852 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"corosync\"") >&5
10853 ($PKG_CONFIG --exists --print-errors "corosync") 2>&5
10854 ac_status=$?
10855 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10856 (exit $ac_status); }; then
10857 pkg_cv_COROSYNC_CFLAGS=`$PKG_CONFIG --cflags "corosync" 2>/dev/null`
10858else
10859 pkg_failed=yes
10860fi
10861 else
10862 pkg_failed=untried
10863fi
10864if test -n "$COROSYNC_LIBS"; then
10865 pkg_cv_COROSYNC_LIBS="$COROSYNC_LIBS"
10866 elif test -n "$PKG_CONFIG"; then
10867 if test -n "$PKG_CONFIG" && \
10868 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"corosync\"") >&5
10869 ($PKG_CONFIG --exists --print-errors "corosync") 2>&5
10870 ac_status=$?
10871 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10872 (exit $ac_status); }; then
10873 pkg_cv_COROSYNC_LIBS=`$PKG_CONFIG --libs "corosync" 2>/dev/null`
10874else
10875 pkg_failed=yes
10876fi
10877 else
10878 pkg_failed=untried
10879fi
10880
10881
10882
10883if test $pkg_failed = yes; then
10884
10885if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10886 _pkg_short_errors_supported=yes
10887else
10888 _pkg_short_errors_supported=no
10889fi
10890 if test $_pkg_short_errors_supported = yes; then
10891 COROSYNC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "corosync" 2>&1`
10892 else
10893 COROSYNC_PKG_ERRORS=`$PKG_CONFIG --print-errors "corosync" 2>&1`
10894 fi
10895 # Put the nasty error message in config.log where it belongs
10896 echo "$COROSYNC_PKG_ERRORS" >&5
10897
10898 { $as_echo "$as_me:$LINENO: result: no" >&5
10899$as_echo "no" >&6; }
10900 $bailout
10901elif test $pkg_failed = untried; then
10902 $bailout
10903else
10904 COROSYNC_CFLAGS=$pkg_cv_COROSYNC_CFLAGS
10905 COROSYNC_LIBS=$pkg_cv_COROSYNC_LIBS
10906 { $as_echo "$as_me:$LINENO: result: yes" >&5
10907$as_echo "yes" >&6; }
10908 HAVE_COROSYNC=yes
10909fi
10910 CHECKCONFDB=yes
10911fi
10912
10913if test x$BUILDCOROSYNC = xyes; then
10914
10915pkg_failed=no
10916{ $as_echo "$as_me:$LINENO: checking for QUORUM" >&5
10917$as_echo_n "checking for QUORUM... " >&6; }
10918
10919if test -n "$QUORUM_CFLAGS"; then
10920 pkg_cv_QUORUM_CFLAGS="$QUORUM_CFLAGS"
10921 elif test -n "$PKG_CONFIG"; then
10922 if test -n "$PKG_CONFIG" && \
10923 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libquorum\"") >&5
10924 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
10925 ac_status=$?
10926 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10927 (exit $ac_status); }; then
10928 pkg_cv_QUORUM_CFLAGS=`$PKG_CONFIG --cflags "libquorum" 2>/dev/null`
10929else
10930 pkg_failed=yes
10931fi
10932 else
10933 pkg_failed=untried
10934fi
10935if test -n "$QUORUM_LIBS"; then
10936 pkg_cv_QUORUM_LIBS="$QUORUM_LIBS"
10937 elif test -n "$PKG_CONFIG"; then
10938 if test -n "$PKG_CONFIG" && \
10939 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libquorum\"") >&5
10940 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
10941 ac_status=$?
10942 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10943 (exit $ac_status); }; then
10944 pkg_cv_QUORUM_LIBS=`$PKG_CONFIG --libs "libquorum" 2>/dev/null`
10945else
10946 pkg_failed=yes
10947fi
10948 else
10949 pkg_failed=untried
10950fi
10951
10952
10953
10954if test $pkg_failed = yes; then
10955
10956if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10957 _pkg_short_errors_supported=yes
10958else
10959 _pkg_short_errors_supported=no
10960fi
10961 if test $_pkg_short_errors_supported = yes; then
10962 QUORUM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libquorum" 2>&1`
10963 else
10964 QUORUM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libquorum" 2>&1`
10965 fi
10966 # Put the nasty error message in config.log where it belongs
10967 echo "$QUORUM_PKG_ERRORS" >&5
10968
10969 { $as_echo "$as_me:$LINENO: result: no" >&5
10970$as_echo "no" >&6; }
10971 $bailout
10972elif test $pkg_failed = untried; then
10973 $bailout
10974else
10975 QUORUM_CFLAGS=$pkg_cv_QUORUM_CFLAGS
10976 QUORUM_LIBS=$pkg_cv_QUORUM_LIBS
10977 { $as_echo "$as_me:$LINENO: result: yes" >&5
10978$as_echo "yes" >&6; }
10979 HAVE_QUORUM=yes
10980fi
10981 CHECKCPG=yes
10982 CHECKDLM=yes
10983fi
10984
10985if test x$BUILDOPENAIS = xyes; then
10986
10987pkg_failed=no
10988{ $as_echo "$as_me:$LINENO: checking for SALCK" >&5
10989$as_echo_n "checking for SALCK... " >&6; }
10990
10991if test -n "$SALCK_CFLAGS"; then
10992 pkg_cv_SALCK_CFLAGS="$SALCK_CFLAGS"
10993 elif test -n "$PKG_CONFIG"; then
10994 if test -n "$PKG_CONFIG" && \
10995 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaLck\"") >&5
10996 ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5
10997 ac_status=$?
10998 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10999 (exit $ac_status); }; then
11000 pkg_cv_SALCK_CFLAGS=`$PKG_CONFIG --cflags "libSaLck" 2>/dev/null`
11001else
11002 pkg_failed=yes
11003fi
11004 else
11005 pkg_failed=untried
11006fi
11007if test -n "$SALCK_LIBS"; then
11008 pkg_cv_SALCK_LIBS="$SALCK_LIBS"
11009 elif test -n "$PKG_CONFIG"; then
11010 if test -n "$PKG_CONFIG" && \
11011 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaLck\"") >&5
11012 ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5
11013 ac_status=$?
11014 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11015 (exit $ac_status); }; then
11016 pkg_cv_SALCK_LIBS=`$PKG_CONFIG --libs "libSaLck" 2>/dev/null`
11017else
11018 pkg_failed=yes
11019fi
11020 else
11021 pkg_failed=untried
11022fi
11023
11024
11025
11026if test $pkg_failed = yes; then
11027
11028if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11029 _pkg_short_errors_supported=yes
11030else
11031 _pkg_short_errors_supported=no
11032fi
11033 if test $_pkg_short_errors_supported = yes; then
11034 SALCK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaLck" 2>&1`
11035 else
11036 SALCK_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaLck" 2>&1`
11037 fi
11038 # Put the nasty error message in config.log where it belongs
11039 echo "$SALCK_PKG_ERRORS" >&5
11040
11041 { $as_echo "$as_me:$LINENO: result: no" >&5
11042$as_echo "no" >&6; }
11043 $bailout
11044elif test $pkg_failed = untried; then
11045 $bailout
11046else
11047 SALCK_CFLAGS=$pkg_cv_SALCK_CFLAGS
11048 SALCK_LIBS=$pkg_cv_SALCK_LIBS
11049 { $as_echo "$as_me:$LINENO: result: yes" >&5
11050$as_echo "yes" >&6; }
11051 HAVE_SALCK=yes
11052fi
11053 CHECKCPG=yes
11054fi
11055
11056
11057
11058if test x$CHECKCONFDB = xyes; then
11059
11060pkg_failed=no
11061{ $as_echo "$as_me:$LINENO: checking for CONFDB" >&5
11062$as_echo_n "checking for CONFDB... " >&6; }
11063
11064if test -n "$CONFDB_CFLAGS"; then
11065 pkg_cv_CONFDB_CFLAGS="$CONFDB_CFLAGS"
11066 elif test -n "$PKG_CONFIG"; then
11067 if test -n "$PKG_CONFIG" && \
11068 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libconfdb\"") >&5
11069 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
11070 ac_status=$?
11071 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11072 (exit $ac_status); }; then
11073 pkg_cv_CONFDB_CFLAGS=`$PKG_CONFIG --cflags "libconfdb" 2>/dev/null`
11074else
11075 pkg_failed=yes
11076fi
11077 else
11078 pkg_failed=untried
11079fi
11080if test -n "$CONFDB_LIBS"; then
11081 pkg_cv_CONFDB_LIBS="$CONFDB_LIBS"
11082 elif test -n "$PKG_CONFIG"; then
11083 if test -n "$PKG_CONFIG" && \
11084 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libconfdb\"") >&5
11085 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
11086 ac_status=$?
11087 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11088 (exit $ac_status); }; then
11089 pkg_cv_CONFDB_LIBS=`$PKG_CONFIG --libs "libconfdb" 2>/dev/null`
11090else
11091 pkg_failed=yes
11092fi
11093 else
11094 pkg_failed=untried
11095fi
11096
11097
11098
11099if test $pkg_failed = yes; then
11100
11101if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11102 _pkg_short_errors_supported=yes
11103else
11104 _pkg_short_errors_supported=no
11105fi
11106 if test $_pkg_short_errors_supported = yes; then
11107 CONFDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libconfdb" 2>&1`
11108 else
11109 CONFDB_PKG_ERRORS=`$PKG_CONFIG --print-errors "libconfdb" 2>&1`
11110 fi
11111 # Put the nasty error message in config.log where it belongs
11112 echo "$CONFDB_PKG_ERRORS" >&5
11113
11114 { $as_echo "$as_me:$LINENO: result: no" >&5
11115$as_echo "no" >&6; }
11116 HAVE_CONFDB=no
11117elif test $pkg_failed = untried; then
11118 HAVE_CONFDB=no
11119else
11120 CONFDB_CFLAGS=$pkg_cv_CONFDB_CFLAGS
11121 CONFDB_LIBS=$pkg_cv_CONFDB_LIBS
11122 { $as_echo "$as_me:$LINENO: result: yes" >&5
11123$as_echo "yes" >&6; }
11124 HAVE_CONFDB=yes
11125fi
11126
11127
11128for ac_header in corosync/confdb.h
11129do
11130as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11131if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11132 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11133$as_echo_n "checking for $ac_header... " >&6; }
11134if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11135 $as_echo_n "(cached) " >&6
11136fi
11137ac_res=`eval 'as_val=${'$as_ac_Header'}
11138 $as_echo "$as_val"'`
11139 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11140$as_echo "$ac_res" >&6; }
11141else
11142 # Is the header compilable?
11143{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11144$as_echo_n "checking $ac_header usability... " >&6; }
11145cat >conftest.$ac_ext <<_ACEOF
11146/* confdefs.h. */
11147_ACEOF
11148cat confdefs.h >>conftest.$ac_ext
11149cat >>conftest.$ac_ext <<_ACEOF
11150/* end confdefs.h. */
11151$ac_includes_default
11152#include <$ac_header>
11153_ACEOF
11154rm -f conftest.$ac_objext
11155if { (ac_try="$ac_compile"
11156case "(($ac_try" in
11157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11158 *) ac_try_echo=$ac_try;;
11159esac
11160eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11161$as_echo "$ac_try_echo") >&5
11162 (eval "$ac_compile") 2>conftest.er1
11163 ac_status=$?
11164 grep -v '^ *+' conftest.er1 >conftest.err
11165 rm -f conftest.er1
11166 cat conftest.err >&5
11167 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11168 (exit $ac_status); } && {
11169 test -z "$ac_c_werror_flag" ||
11170 test ! -s conftest.err
11171 } && test -s conftest.$ac_objext; then
11172 ac_header_compiler=yes
11173else
11174 $as_echo "$as_me: failed program was:" >&5
11175sed 's/^/| /' conftest.$ac_ext >&5
11176
11177 ac_header_compiler=no
11178fi
11179
11180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11181{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11182$as_echo "$ac_header_compiler" >&6; }
11183
11184# Is the header present?
11185{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11186$as_echo_n "checking $ac_header presence... " >&6; }
11187cat >conftest.$ac_ext <<_ACEOF
11188/* confdefs.h. */
11189_ACEOF
11190cat confdefs.h >>conftest.$ac_ext
11191cat >>conftest.$ac_ext <<_ACEOF
11192/* end confdefs.h. */
11193#include <$ac_header>
11194_ACEOF
11195if { (ac_try="$ac_cpp conftest.$ac_ext"
11196case "(($ac_try" in
11197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11198 *) ac_try_echo=$ac_try;;
11199esac
11200eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11201$as_echo "$ac_try_echo") >&5
11202 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11203 ac_status=$?
11204 grep -v '^ *+' conftest.er1 >conftest.err
11205 rm -f conftest.er1
11206 cat conftest.err >&5
11207 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11208 (exit $ac_status); } >/dev/null && {
11209 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11210 test ! -s conftest.err
11211 }; then
11212 ac_header_preproc=yes
11213else
11214 $as_echo "$as_me: failed program was:" >&5
11215sed 's/^/| /' conftest.$ac_ext >&5
11216
11217 ac_header_preproc=no
11218fi
11219
11220rm -f conftest.err conftest.$ac_ext
11221{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11222$as_echo "$ac_header_preproc" >&6; }
11223
11224# So? What about this header?
11225case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11226 yes:no: )
11227 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11228$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11229 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11230$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11231 ac_header_preproc=yes
11232 ;;
11233 no:yes:* )
11234 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11235$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11236 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11237$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11238 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11239$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11240 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11241$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11242 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11243$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11244 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11245$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11246
11247 ;;
11248esac
11249{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11250$as_echo_n "checking for $ac_header... " >&6; }
11251if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11252 $as_echo_n "(cached) " >&6
11253else
11254 eval "$as_ac_Header=\$ac_header_preproc"
11255fi
11256ac_res=`eval 'as_val=${'$as_ac_Header'}
11257 $as_echo "$as_val"'`
11258 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11259$as_echo "$ac_res" >&6; }
11260
11261fi
11262as_val=`eval 'as_val=${'$as_ac_Header'}
11263 $as_echo "$as_val"'`
11264 if test "x$as_val" = x""yes; then
11265 cat >>confdefs.h <<_ACEOF
11266#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11267_ACEOF
11268 HAVE_CONFDB_H=yes
11269else
11270 HAVE_CONFDB_H=no
11271fi
11272
11273done
11274
11275
11276 if test x$HAVE_CONFDB != xyes && \
11277 test x$HAVE_CONFDB_H = xyes; then
11278 check_lib_no_libs confdb confdb_initialize
11279 { $as_echo "$as_me:$LINENO: result: no pkg for confdb, using -lconfdb" >&5
11280$as_echo "no pkg for confdb, using -lconfdb" >&6; }
11281 CONFDB_LIBS="-lconfdb"
11282 HAVE_CONFDB=yes
11283 fi
11284
11285 if test x$BUILDCOROSYNC = xyes && \
11286 test x$HAVE_CONFDB != xyes &&
11287 test x$CLVMD != xall; then
11288 { { $as_echo "$as_me:$LINENO: error: bailing out... confdb library is required" >&5
11289$as_echo "$as_me: error: bailing out... confdb library is required" >&2;}
11290 { (exit 1); exit 1; }; }
11291 fi
11292fi
11293
11294if test x$CHECKCPG = xyes; then
11295
11296pkg_failed=no
11297{ $as_echo "$as_me:$LINENO: checking for CPG" >&5
11298$as_echo_n "checking for CPG... " >&6; }
11299
11300if test -n "$CPG_CFLAGS"; then
11301 pkg_cv_CPG_CFLAGS="$CPG_CFLAGS"
11302 elif test -n "$PKG_CONFIG"; then
11303 if test -n "$PKG_CONFIG" && \
11304 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
11305 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
11306 ac_status=$?
11307 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11308 (exit $ac_status); }; then
11309 pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
11310else
11311 pkg_failed=yes
11312fi
11313 else
11314 pkg_failed=untried
11315fi
11316if test -n "$CPG_LIBS"; then
11317 pkg_cv_CPG_LIBS="$CPG_LIBS"
11318 elif test -n "$PKG_CONFIG"; then
11319 if test -n "$PKG_CONFIG" && \
11320 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
11321 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
11322 ac_status=$?
11323 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11324 (exit $ac_status); }; then
11325 pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
11326else
11327 pkg_failed=yes
11328fi
11329 else
11330 pkg_failed=untried
11331fi
11332
11333
11334
11335if test $pkg_failed = yes; then
11336
11337if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11338 _pkg_short_errors_supported=yes
11339else
11340 _pkg_short_errors_supported=no
11341fi
11342 if test $_pkg_short_errors_supported = yes; then
11343 CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
11344 else
11345 CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
11346 fi
11347 # Put the nasty error message in config.log where it belongs
11348 echo "$CPG_PKG_ERRORS" >&5
11349
11350 { $as_echo "$as_me:$LINENO: result: no" >&5
11351$as_echo "no" >&6; }
11352 $bailout
11353elif test $pkg_failed = untried; then
11354 $bailout
11355else
11356 CPG_CFLAGS=$pkg_cv_CPG_CFLAGS
11357 CPG_LIBS=$pkg_cv_CPG_LIBS
11358 { $as_echo "$as_me:$LINENO: result: yes" >&5
11359$as_echo "yes" >&6; }
11360 HAVE_CPG=yes
11361fi
11362fi
11363
11364if test x$CHECKDLM = xyes; then
11365
11366pkg_failed=no
11367{ $as_echo "$as_me:$LINENO: checking for DLM" >&5
11368$as_echo_n "checking for DLM... " >&6; }
11369
11370if test -n "$DLM_CFLAGS"; then
11371 pkg_cv_DLM_CFLAGS="$DLM_CFLAGS"
11372 elif test -n "$PKG_CONFIG"; then
11373 if test -n "$PKG_CONFIG" && \
11374 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdlm\"") >&5
11375 ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5
11376 ac_status=$?
11377 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11378 (exit $ac_status); }; then
11379 pkg_cv_DLM_CFLAGS=`$PKG_CONFIG --cflags "libdlm" 2>/dev/null`
11380else
11381 pkg_failed=yes
11382fi
11383 else
11384 pkg_failed=untried
11385fi
11386if test -n "$DLM_LIBS"; then
11387 pkg_cv_DLM_LIBS="$DLM_LIBS"
11388 elif test -n "$PKG_CONFIG"; then
11389 if test -n "$PKG_CONFIG" && \
11390 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdlm\"") >&5
11391 ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5
11392 ac_status=$?
11393 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11394 (exit $ac_status); }; then
11395 pkg_cv_DLM_LIBS=`$PKG_CONFIG --libs "libdlm" 2>/dev/null`
11396else
11397 pkg_failed=yes
11398fi
11399 else
11400 pkg_failed=untried
11401fi
11402
11403
11404
11405if test $pkg_failed = yes; then
11406
11407if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11408 _pkg_short_errors_supported=yes
11409else
11410 _pkg_short_errors_supported=no
11411fi
11412 if test $_pkg_short_errors_supported = yes; then
11413 DLM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdlm" 2>&1`
11414 else
11415 DLM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdlm" 2>&1`
11416 fi
11417 # Put the nasty error message in config.log where it belongs
11418 echo "$DLM_PKG_ERRORS" >&5
11419
11420 { $as_echo "$as_me:$LINENO: result: no" >&5
11421$as_echo "no" >&6; }
11422 NOTFOUND=0
11423
11424for ac_header in libdlm.h
11425do
11426as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11427if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11428 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11429$as_echo_n "checking for $ac_header... " >&6; }
11430if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11431 $as_echo_n "(cached) " >&6
11432fi
11433ac_res=`eval 'as_val=${'$as_ac_Header'}
11434 $as_echo "$as_val"'`
11435 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11436$as_echo "$ac_res" >&6; }
11437else
11438 # Is the header compilable?
11439{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11440$as_echo_n "checking $ac_header usability... " >&6; }
11441cat >conftest.$ac_ext <<_ACEOF
11442/* confdefs.h. */
11443_ACEOF
11444cat confdefs.h >>conftest.$ac_ext
11445cat >>conftest.$ac_ext <<_ACEOF
11446/* end confdefs.h. */
11447$ac_includes_default
11448#include <$ac_header>
11449_ACEOF
11450rm -f conftest.$ac_objext
11451if { (ac_try="$ac_compile"
11452case "(($ac_try" in
11453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11454 *) ac_try_echo=$ac_try;;
11455esac
11456eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11457$as_echo "$ac_try_echo") >&5
11458 (eval "$ac_compile") 2>conftest.er1
11459 ac_status=$?
11460 grep -v '^ *+' conftest.er1 >conftest.err
11461 rm -f conftest.er1
11462 cat conftest.err >&5
11463 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11464 (exit $ac_status); } && {
11465 test -z "$ac_c_werror_flag" ||
11466 test ! -s conftest.err
11467 } && test -s conftest.$ac_objext; then
11468 ac_header_compiler=yes
11469else
11470 $as_echo "$as_me: failed program was:" >&5
11471sed 's/^/| /' conftest.$ac_ext >&5
11472
11473 ac_header_compiler=no
11474fi
11475
11476rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11477{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11478$as_echo "$ac_header_compiler" >&6; }
11479
11480# Is the header present?
11481{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11482$as_echo_n "checking $ac_header presence... " >&6; }
11483cat >conftest.$ac_ext <<_ACEOF
11484/* confdefs.h. */
11485_ACEOF
11486cat confdefs.h >>conftest.$ac_ext
11487cat >>conftest.$ac_ext <<_ACEOF
11488/* end confdefs.h. */
11489#include <$ac_header>
11490_ACEOF
11491if { (ac_try="$ac_cpp conftest.$ac_ext"
11492case "(($ac_try" in
11493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11494 *) ac_try_echo=$ac_try;;
11495esac
11496eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11497$as_echo "$ac_try_echo") >&5
11498 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11499 ac_status=$?
11500 grep -v '^ *+' conftest.er1 >conftest.err
11501 rm -f conftest.er1
11502 cat conftest.err >&5
11503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11504 (exit $ac_status); } >/dev/null && {
11505 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11506 test ! -s conftest.err
11507 }; then
11508 ac_header_preproc=yes
11509else
11510 $as_echo "$as_me: failed program was:" >&5
11511sed 's/^/| /' conftest.$ac_ext >&5
11512
11513 ac_header_preproc=no
11514fi
11515
11516rm -f conftest.err conftest.$ac_ext
11517{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11518$as_echo "$ac_header_preproc" >&6; }
11519
11520# So? What about this header?
11521case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11522 yes:no: )
11523 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11524$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11525 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11526$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11527 ac_header_preproc=yes
11528 ;;
11529 no:yes:* )
11530 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11531$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11532 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11533$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11534 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11535$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11536 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11537$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11538 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11539$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11540 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11541$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11542
11543 ;;
11544esac
11545{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11546$as_echo_n "checking for $ac_header... " >&6; }
11547if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11548 $as_echo_n "(cached) " >&6
11549else
11550 eval "$as_ac_Header=\$ac_header_preproc"
11551fi
11552ac_res=`eval 'as_val=${'$as_ac_Header'}
11553 $as_echo "$as_val"'`
11554 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11555$as_echo "$ac_res" >&6; }
11556
11557fi
11558as_val=`eval 'as_val=${'$as_ac_Header'}
11559 $as_echo "$as_val"'`
11560 if test "x$as_val" = x""yes; then
11561 cat >>confdefs.h <<_ACEOF
11562#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11563_ACEOF
11564
11565else
11566 $bailout
11567fi
11568
11569done
11570
11571 check_lib_no_libs dlm dlm_lock -lpthread
11572 if test $NOTFOUND = 0; then
11573 { $as_echo "$as_me:$LINENO: result: no pkg for libdlm, using -ldlm" >&5
11574$as_echo "no pkg for libdlm, using -ldlm" >&6; }
11575 DLM_LIBS="-ldlm -lpthread"
11576 HAVE_DLM=yes
11577 fi
11578elif test $pkg_failed = untried; then
11579 NOTFOUND=0
11580
11581for ac_header in libdlm.h
11582do
11583as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11584if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11585 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11586$as_echo_n "checking for $ac_header... " >&6; }
11587if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11588 $as_echo_n "(cached) " >&6
11589fi
11590ac_res=`eval 'as_val=${'$as_ac_Header'}
11591 $as_echo "$as_val"'`
11592 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11593$as_echo "$ac_res" >&6; }
11594else
11595 # Is the header compilable?
11596{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11597$as_echo_n "checking $ac_header usability... " >&6; }
11598cat >conftest.$ac_ext <<_ACEOF
11599/* confdefs.h. */
11600_ACEOF
11601cat confdefs.h >>conftest.$ac_ext
11602cat >>conftest.$ac_ext <<_ACEOF
11603/* end confdefs.h. */
11604$ac_includes_default
11605#include <$ac_header>
11606_ACEOF
11607rm -f conftest.$ac_objext
11608if { (ac_try="$ac_compile"
11609case "(($ac_try" in
11610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11611 *) ac_try_echo=$ac_try;;
11612esac
11613eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11614$as_echo "$ac_try_echo") >&5
11615 (eval "$ac_compile") 2>conftest.er1
11616 ac_status=$?
11617 grep -v '^ *+' conftest.er1 >conftest.err
11618 rm -f conftest.er1
11619 cat conftest.err >&5
11620 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11621 (exit $ac_status); } && {
11622 test -z "$ac_c_werror_flag" ||
11623 test ! -s conftest.err
11624 } && test -s conftest.$ac_objext; then
11625 ac_header_compiler=yes
11626else
11627 $as_echo "$as_me: failed program was:" >&5
11628sed 's/^/| /' conftest.$ac_ext >&5
11629
11630 ac_header_compiler=no
11631fi
11632
11633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11634{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11635$as_echo "$ac_header_compiler" >&6; }
11636
11637# Is the header present?
11638{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11639$as_echo_n "checking $ac_header presence... " >&6; }
11640cat >conftest.$ac_ext <<_ACEOF
11641/* confdefs.h. */
11642_ACEOF
11643cat confdefs.h >>conftest.$ac_ext
11644cat >>conftest.$ac_ext <<_ACEOF
11645/* end confdefs.h. */
11646#include <$ac_header>
11647_ACEOF
11648if { (ac_try="$ac_cpp conftest.$ac_ext"
11649case "(($ac_try" in
11650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11651 *) ac_try_echo=$ac_try;;
11652esac
11653eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11654$as_echo "$ac_try_echo") >&5
11655 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11656 ac_status=$?
11657 grep -v '^ *+' conftest.er1 >conftest.err
11658 rm -f conftest.er1
11659 cat conftest.err >&5
11660 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11661 (exit $ac_status); } >/dev/null && {
11662 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11663 test ! -s conftest.err
11664 }; then
11665 ac_header_preproc=yes
11666else
11667 $as_echo "$as_me: failed program was:" >&5
11668sed 's/^/| /' conftest.$ac_ext >&5
11669
11670 ac_header_preproc=no
11671fi
11672
11673rm -f conftest.err conftest.$ac_ext
11674{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11675$as_echo "$ac_header_preproc" >&6; }
11676
11677# So? What about this header?
11678case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11679 yes:no: )
11680 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11681$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11682 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11683$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11684 ac_header_preproc=yes
11685 ;;
11686 no:yes:* )
11687 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11688$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11689 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11690$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11691 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11692$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11693 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11694$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11695 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11696$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11697 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11698$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11699
11700 ;;
11701esac
11702{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11703$as_echo_n "checking for $ac_header... " >&6; }
11704if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11705 $as_echo_n "(cached) " >&6
11706else
11707 eval "$as_ac_Header=\$ac_header_preproc"
11708fi
11709ac_res=`eval 'as_val=${'$as_ac_Header'}
11710 $as_echo "$as_val"'`
11711 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11712$as_echo "$ac_res" >&6; }
11713
11714fi
11715as_val=`eval 'as_val=${'$as_ac_Header'}
11716 $as_echo "$as_val"'`
11717 if test "x$as_val" = x""yes; then
11718 cat >>confdefs.h <<_ACEOF
11719#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11720_ACEOF
11721
11722else
11723 $bailout
11724fi
11725
11726done
11727
11728 check_lib_no_libs dlm dlm_lock -lpthread
11729 if test $NOTFOUND = 0; then
11730 { $as_echo "$as_me:$LINENO: result: no pkg for libdlm, using -ldlm" >&5
11731$as_echo "no pkg for libdlm, using -ldlm" >&6; }
11732 DLM_LIBS="-ldlm -lpthread"
11733 HAVE_DLM=yes
11734 fi
11735else
11736 DLM_CFLAGS=$pkg_cv_DLM_CFLAGS
11737 DLM_LIBS=$pkg_cv_DLM_LIBS
11738 { $as_echo "$as_me:$LINENO: result: yes" >&5
11739$as_echo "yes" >&6; }
11740 HAVE_DLM=yes
11741fi
11742fi
11743
11744if test x$CLVMD = xall; then
8c222979 11745 CLVMD=none
a946372e
AK
11746 if test x$HAVE_CCS = xyes && \
11747 test x$HAVE_GULM = xyes; then
8c222979
FDN
11748 { $as_echo "$as_me:$LINENO: result: Enabling clvmd gulm cluster manager" >&5
11749$as_echo "Enabling clvmd gulm cluster manager" >&6; }
11750 CLVMD="$CLVMD,gulm"
a946372e
AK
11751 fi
11752 if test x$HAVE_CMAN = xyes && \
11753 test x$HAVE_DLM = xyes; then
8c222979
FDN
11754 { $as_echo "$as_me:$LINENO: result: Enabling clvmd cman cluster manager" >&5
11755$as_echo "Enabling clvmd cman cluster manager" >&6; }
11756 CLVMD="$CLVMD,cman"
a946372e
AK
11757 fi
11758 if test x$HAVE_COROSYNC = xyes && \
11759 test x$HAVE_QUORUM = xyes && \
11760 test x$HAVE_CPG = xyes && \
11761 test x$HAVE_DLM = xyes && \
11762 test x$HAVE_CONFDB = xyes; then
8c222979
FDN
11763 { $as_echo "$as_me:$LINENO: result: Enabling clvmd corosync cluster manager" >&5
11764$as_echo "Enabling clvmd corosync cluster manager" >&6; }
11765 CLVMD="$CLVMD,corosync"
a946372e
AK
11766 fi
11767 if test x$HAVE_COROSYNC = xyes && \
11768 test x$HAVE_CPG = xyes && \
11769 test x$HAVE_SALCK = xyes; then
8c222979
FDN
11770 { $as_echo "$as_me:$LINENO: result: Enabling clvmd openais cluster manager" >&5
11771$as_echo "Enabling clvmd openais cluster manager" >&6; }
11772 CLVMD="$CLVMD,openais"
11773 fi
11774 if test x$CLVMD = xnone; then
11775 { $as_echo "$as_me:$LINENO: result: Disabling clvmd build. No cluster manager detected." >&5
11776$as_echo "Disabling clvmd build. No cluster manager detected." >&6; }
a946372e 11777 fi
a946372e
AK
11778fi
11779
11780################################################################################
66fd4529
AK
11781{ $as_echo "$as_me:$LINENO: checking whether to build cluster mirror log daemon" >&5
11782$as_echo_n "checking whether to build cluster mirror log daemon... " >&6; }
11783# Check whether --enable-cmirrord was given.
11784if test "${enable_cmirrord+set}" = set; then
11785 enableval=$enable_cmirrord; CMIRRORD=$enableval
11786else
11787 CMIRRORD=no
11788fi
11789
11790{ $as_echo "$as_me:$LINENO: result: $CMIRRORD" >&5
11791$as_echo "$CMIRRORD" >&6; }
11792
11793BUILD_CMIRRORD=$CMIRRORD
11794
11795################################################################################
11796
11797
11798if test "x$BUILD_CMIRRORD" = xyes; then
11799
11800# Check whether --with-cmirrord-pidfile was given.
11801if test "${with_cmirrord_pidfile+set}" = set; then
11802 withval=$with_cmirrord_pidfile; cat >>confdefs.h <<_ACEOF
11803#define CMIRRORD_PIDFILE "$withval"
11804_ACEOF
11805
11806else
11807 cat >>confdefs.h <<_ACEOF
11808#define CMIRRORD_PIDFILE "/var/run/cmirrord.pid"
11809_ACEOF
11810
a946372e
AK
11811fi
11812
66fd4529 11813fi
a946372e 11814
66fd4529
AK
11815################################################################################
11816if [ "x$BUILD_CMIRRORD" = xyes ]; then
90c80887
AK
11817 if test x$PKGCONFIG_INIT != x1; then
11818 pkg_config_init
11819 fi
11820
11821pkg_failed=no
11822{ $as_echo "$as_me:$LINENO: checking for SACKPT" >&5
11823$as_echo_n "checking for SACKPT... " >&6; }
11824
11825if test -n "$SACKPT_CFLAGS"; then
11826 pkg_cv_SACKPT_CFLAGS="$SACKPT_CFLAGS"
11827 elif test -n "$PKG_CONFIG"; then
11828 if test -n "$PKG_CONFIG" && \
11829 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\"") >&5
11830 ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5
11831 ac_status=$?
11832 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11833 (exit $ac_status); }; then
11834 pkg_cv_SACKPT_CFLAGS=`$PKG_CONFIG --cflags "libSaCkpt" 2>/dev/null`
11835else
11836 pkg_failed=yes
11837fi
11838 else
11839 pkg_failed=untried
11840fi
11841if test -n "$SACKPT_LIBS"; then
11842 pkg_cv_SACKPT_LIBS="$SACKPT_LIBS"
11843 elif test -n "$PKG_CONFIG"; then
11844 if test -n "$PKG_CONFIG" && \
11845 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\"") >&5
11846 ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5
11847 ac_status=$?
11848 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11849 (exit $ac_status); }; then
11850 pkg_cv_SACKPT_LIBS=`$PKG_CONFIG --libs "libSaCkpt" 2>/dev/null`
11851else
11852 pkg_failed=yes
11853fi
11854 else
11855 pkg_failed=untried
11856fi
11857
11858
11859
11860if test $pkg_failed = yes; then
11861
11862if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11863 _pkg_short_errors_supported=yes
11864else
11865 _pkg_short_errors_supported=no
11866fi
11867 if test $_pkg_short_errors_supported = yes; then
11868 SACKPT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaCkpt" 2>&1`
11869 else
11870 SACKPT_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaCkpt" 2>&1`
11871 fi
11872 # Put the nasty error message in config.log where it belongs
11873 echo "$SACKPT_PKG_ERRORS" >&5
11874
11875 { { $as_echo "$as_me:$LINENO: error: Package requirements (libSaCkpt) were not met:
11876
11877$SACKPT_PKG_ERRORS
11878
11879Consider adjusting the PKG_CONFIG_PATH environment variable if you
11880installed software in a non-standard prefix.
11881
11882Alternatively, you may set the environment variables SACKPT_CFLAGS
11883and SACKPT_LIBS to avoid the need to call pkg-config.
11884See the pkg-config man page for more details.
11885" >&5
11886$as_echo "$as_me: error: Package requirements (libSaCkpt) were not met:
11887
11888$SACKPT_PKG_ERRORS
11889
11890Consider adjusting the PKG_CONFIG_PATH environment variable if you
11891installed software in a non-standard prefix.
11892
11893Alternatively, you may set the environment variables SACKPT_CFLAGS
11894and SACKPT_LIBS to avoid the need to call pkg-config.
11895See the pkg-config man page for more details.
11896" >&2;}
11897 { (exit 1); exit 1; }; }
11898elif test $pkg_failed = untried; then
11899 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11900$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11901{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
11902is in your PATH or set the PKG_CONFIG environment variable to the full
11903path to pkg-config.
11904
11905Alternatively, you may set the environment variables SACKPT_CFLAGS
11906and SACKPT_LIBS to avoid the need to call pkg-config.
11907See the pkg-config man page for more details.
11908
11909To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11910See \`config.log' for more details." >&5
11911$as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
11912is in your PATH or set the PKG_CONFIG environment variable to the full
11913path to pkg-config.
11914
11915Alternatively, you may set the environment variables SACKPT_CFLAGS
11916and SACKPT_LIBS to avoid the need to call pkg-config.
11917See the pkg-config man page for more details.
11918
11919To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11920See \`config.log' for more details." >&2;}
11921 { (exit 1); exit 1; }; }; }
11922else
11923 SACKPT_CFLAGS=$pkg_cv_SACKPT_CFLAGS
11924 SACKPT_LIBS=$pkg_cv_SACKPT_LIBS
11925 { $as_echo "$as_me:$LINENO: result: yes" >&5
11926$as_echo "yes" >&6; }
11927 :
11928fi
11929 if test x$HAVE_CPG != xyes; then
a946372e
AK
11930
11931pkg_failed=no
11932{ $as_echo "$as_me:$LINENO: checking for CPG" >&5
11933$as_echo_n "checking for CPG... " >&6; }
11934
11935if test -n "$CPG_CFLAGS"; then
11936 pkg_cv_CPG_CFLAGS="$CPG_CFLAGS"
11937 elif test -n "$PKG_CONFIG"; then
11938 if test -n "$PKG_CONFIG" && \
11939 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
11940 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
11941 ac_status=$?
11942 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11943 (exit $ac_status); }; then
11944 pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
11945else
11946 pkg_failed=yes
11947fi
11948 else
11949 pkg_failed=untried
11950fi
11951if test -n "$CPG_LIBS"; then
11952 pkg_cv_CPG_LIBS="$CPG_LIBS"
11953 elif test -n "$PKG_CONFIG"; then
11954 if test -n "$PKG_CONFIG" && \
11955 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
11956 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
11957 ac_status=$?
11958 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11959 (exit $ac_status); }; then
11960 pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
11961else
11962 pkg_failed=yes
11963fi
11964 else
11965 pkg_failed=untried
11966fi
11967
11968
11969
11970if test $pkg_failed = yes; then
11971
11972if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11973 _pkg_short_errors_supported=yes
11974else
11975 _pkg_short_errors_supported=no
11976fi
11977 if test $_pkg_short_errors_supported = yes; then
11978 CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
11979 else
11980 CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
11981 fi
11982 # Put the nasty error message in config.log where it belongs
11983 echo "$CPG_PKG_ERRORS" >&5
11984
90c80887
AK
11985 { { $as_echo "$as_me:$LINENO: error: Package requirements (libcpg) were not met:
11986
11987$CPG_PKG_ERRORS
11988
11989Consider adjusting the PKG_CONFIG_PATH environment variable if you
11990installed software in a non-standard prefix.
11991
11992Alternatively, you may set the environment variables CPG_CFLAGS
11993and CPG_LIBS to avoid the need to call pkg-config.
11994See the pkg-config man page for more details.
11995" >&5
11996$as_echo "$as_me: error: Package requirements (libcpg) were not met:
11997
11998$CPG_PKG_ERRORS
11999
12000Consider adjusting the PKG_CONFIG_PATH environment variable if you
12001installed software in a non-standard prefix.
12002
12003Alternatively, you may set the environment variables CPG_CFLAGS
12004and CPG_LIBS to avoid the need to call pkg-config.
12005See the pkg-config man page for more details.
12006" >&2;}
12007 { (exit 1); exit 1; }; }
a946372e 12008elif test $pkg_failed = untried; then
90c80887
AK
12009 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12010$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12011{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
12012is in your PATH or set the PKG_CONFIG environment variable to the full
12013path to pkg-config.
12014
12015Alternatively, you may set the environment variables CPG_CFLAGS
12016and CPG_LIBS to avoid the need to call pkg-config.
12017See the pkg-config man page for more details.
12018
12019To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12020See \`config.log' for more details." >&5
12021$as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
12022is in your PATH or set the PKG_CONFIG environment variable to the full
12023path to pkg-config.
12024
12025Alternatively, you may set the environment variables CPG_CFLAGS
12026and CPG_LIBS to avoid the need to call pkg-config.
12027See the pkg-config man page for more details.
12028
12029To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12030See \`config.log' for more details." >&2;}
12031 { (exit 1); exit 1; }; }; }
a946372e
AK
12032else
12033 CPG_CFLAGS=$pkg_cv_CPG_CFLAGS
12034 CPG_LIBS=$pkg_cv_CPG_LIBS
12035 { $as_echo "$as_me:$LINENO: result: yes" >&5
12036$as_echo "yes" >&6; }
12037 :
12038fi
90c80887 12039 fi
a946372e
AK
12040fi
12041
12042################################################################################
12043{ $as_echo "$as_me:$LINENO: checking whether to enable debugging" >&5
12044$as_echo_n "checking whether to enable debugging... " >&6; }
12045# Check whether --enable-debug was given.
12046if test "${enable_debug+set}" = set; then
12047 enableval=$enable_debug; DEBUG=$enableval
12048else
12049 DEBUG=no
12050fi
12051
12052{ $as_echo "$as_me:$LINENO: result: $DEBUG" >&5
12053$as_echo "$DEBUG" >&6; }
12054
12055if test x$DEBUG = xyes; then
12056 COPTIMISE_FLAG=
12057else
12058 CSCOPE_CMD=
12059fi
12060
12061################################################################################
12062{ $as_echo "$as_me:$LINENO: checking for C optimisation flag" >&5
12063$as_echo_n "checking for C optimisation flag... " >&6; }
12064
12065# Check whether --with-optimisation was given.
12066if test "${with_optimisation+set}" = set; then
12067 withval=$with_optimisation; COPTIMISE_FLAG="$withval"
12068fi
12069
12070{ $as_echo "$as_me:$LINENO: result: $COPTIMISE_FLAG" >&5
12071$as_echo "$COPTIMISE_FLAG" >&6; }
12072
12073################################################################################
12074{ $as_echo "$as_me:$LINENO: checking whether to gather gcov profiling data" >&5
12075$as_echo_n "checking whether to gather gcov profiling data... " >&6; }
12076# Check whether --enable-profiling was given.
12077if test "${enable_profiling+set}" = set; then
5556819a 12078 enableval=$enable_profiling; PROFILING=$enableval
fddafd51 12079else
5556819a 12080 PROFILING=no
fddafd51
ZK
12081fi
12082
ec6a6fbe
AK
12083{ $as_echo "$as_me:$LINENO: result: $PROFILING" >&5
12084$as_echo "$PROFILING" >&6; }
5556819a
AK
12085
12086if test "x$PROFILING" = xyes; then
12087 COPTIMISE_FLAG="$COPTIMISE_FLAG -fprofile-arcs -ftest-coverage"
12088 # Extract the first word of "lcov", so it can be a program name with args.
fddafd51 12089set dummy lcov; ac_word=$2
ec6a6fbe
AK
12090{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12091$as_echo_n "checking for $ac_word... " >&6; }
fddafd51 12092if test "${ac_cv_path_LCOV+set}" = set; then
ec6a6fbe 12093 $as_echo_n "(cached) " >&6
fddafd51
ZK
12094else
12095 case $LCOV in
12096 [\\/]* | ?:[\\/]*)
12097 ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path.
12098 ;;
12099 *)
12100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12101for as_dir in $PATH
12102do
12103 IFS=$as_save_IFS
12104 test -z "$as_dir" && as_dir=.
12105 for ac_exec_ext in '' $ac_executable_extensions; do
12106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12107 ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 12108 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
fddafd51
ZK
12109 break 2
12110 fi
12111done
12112done
12113IFS=$as_save_IFS
12114
b145d876 12115 test -z "$ac_cv_path_LCOV" && ac_cv_path_LCOV="no"
fddafd51
ZK
12116 ;;
12117esac
12118fi
12119LCOV=$ac_cv_path_LCOV
12120if test -n "$LCOV"; then
ec6a6fbe
AK
12121 { $as_echo "$as_me:$LINENO: result: $LCOV" >&5
12122$as_echo "$LCOV" >&6; }
fddafd51 12123else
ec6a6fbe
AK
12124 { $as_echo "$as_me:$LINENO: result: no" >&5
12125$as_echo "no" >&6; }
fddafd51
ZK
12126fi
12127
12128
5556819a 12129 # Extract the first word of "genhtml", so it can be a program name with args.
fddafd51 12130set dummy genhtml; ac_word=$2
ec6a6fbe
AK
12131{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12132$as_echo_n "checking for $ac_word... " >&6; }
fddafd51 12133if test "${ac_cv_path_GENHTML+set}" = set; then
ec6a6fbe 12134 $as_echo_n "(cached) " >&6
fddafd51
ZK
12135else
12136 case $GENHTML in
12137 [\\/]* | ?:[\\/]*)
12138 ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path.
12139 ;;
12140 *)
12141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12142for as_dir in $PATH
12143do
12144 IFS=$as_save_IFS
12145 test -z "$as_dir" && as_dir=.
12146 for ac_exec_ext in '' $ac_executable_extensions; do
12147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12148 ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 12149 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
fddafd51
ZK
12150 break 2
12151 fi
12152done
12153done
12154IFS=$as_save_IFS
12155
b145d876 12156 test -z "$ac_cv_path_GENHTML" && ac_cv_path_GENHTML="no"
fddafd51
ZK
12157 ;;
12158esac
12159fi
12160GENHTML=$ac_cv_path_GENHTML
12161if test -n "$GENHTML"; then
ec6a6fbe
AK
12162 { $as_echo "$as_me:$LINENO: result: $GENHTML" >&5
12163$as_echo "$GENHTML" >&6; }
fddafd51 12164else
ec6a6fbe
AK
12165 { $as_echo "$as_me:$LINENO: result: no" >&5
12166$as_echo "no" >&6; }
fddafd51
ZK
12167fi
12168
12169
b145d876 12170 if test "$LCOV" = no -o "$GENHTML" = no ; then
ec6a6fbe
AK
12171 { { $as_echo "$as_me:$LINENO: error: lcov and genhtml are required for profiling" >&5
12172$as_echo "$as_me: error: lcov and genhtml are required for profiling" >&2;}
b145d876
ZK
12173 { (exit 1); exit 1; }; }
12174 fi
5556819a 12175fi
d0191583
JM
12176
12177################################################################################
ec6a6fbe
AK
12178{ $as_echo "$as_me:$LINENO: checking whether to use device-mapper" >&5
12179$as_echo_n "checking whether to use device-mapper... " >&6; }
d0191583
JM
12180# Check whether --enable-devmapper was given.
12181if test "${enable_devmapper+set}" = set; then
12182 enableval=$enable_devmapper; DEVMAPPER=$enableval
fc54be10
AK
12183fi
12184
ec6a6fbe
AK
12185{ $as_echo "$as_me:$LINENO: result: $DEVMAPPER" >&5
12186$as_echo "$DEVMAPPER" >&6; }
d0191583
JM
12187
12188if test x$DEVMAPPER = xyes; then
ad6254c5
AK
12189
12190cat >>confdefs.h <<\_ACEOF
d0191583 12191#define DEVMAPPER_SUPPORT 1
ad6254c5
AK
12192_ACEOF
12193
12194fi
12195
a5f46f6a
AK
12196################################################################################
12197{ $as_echo "$as_me:$LINENO: checking whether to enable synchronisation with udev processing" >&5
12198$as_echo_n "checking whether to enable synchronisation with udev processing... " >&6; }
12199# Check whether --enable-udev_sync was given.
12200if test "${enable_udev_sync+set}" = set; then
12201 enableval=$enable_udev_sync; UDEV_SYNC=$enableval
12202else
12203 UDEV_SYNC=no
12204fi
12205
12206{ $as_echo "$as_me:$LINENO: result: $UDEV_SYNC" >&5
12207$as_echo "$UDEV_SYNC" >&6; }
12208
12209if test x$UDEV_SYNC = xyes; then
12210
12211cat >>confdefs.h <<\_ACEOF
12212#define UDEV_SYNC_SUPPORT 1
12213_ACEOF
12214
12215fi
12216
12217{ $as_echo "$as_me:$LINENO: checking whether to enable installation of udev rules required for synchronisation" >&5
12218$as_echo_n "checking whether to enable installation of udev rules required for synchronisation... " >&6; }
12219# Check whether --enable-udev_rules was given.
12220if test "${enable_udev_rules+set}" = set; then
12221 enableval=$enable_udev_rules; UDEV_RULES=$enableval
12222else
12223 UDEV_RULES=$UDEV_SYNC
12224fi
12225
12226{ $as_echo "$as_me:$LINENO: result: $UDEV_RULES" >&5
12227$as_echo "$UDEV_RULES" >&6; }
12228
90c80887
AK
12229################################################################################
12230
12231if test x$UDEV_SYNC = xyes; then
12232 { $as_echo "$as_me:$LINENO: checking for udev_queue_get_udev_is_active in -ludev" >&5
12233$as_echo_n "checking for udev_queue_get_udev_is_active in -ludev... " >&6; }
12234if test "${ac_cv_lib_udev_udev_queue_get_udev_is_active+set}" = set; then
12235 $as_echo_n "(cached) " >&6
12236else
12237 ac_check_lib_save_LIBS=$LIBS
12238LIBS="-ludev $LIBS"
12239cat >conftest.$ac_ext <<_ACEOF
12240/* confdefs.h. */
12241_ACEOF
12242cat confdefs.h >>conftest.$ac_ext
12243cat >>conftest.$ac_ext <<_ACEOF
12244/* end confdefs.h. */
12245
12246/* Override any GCC internal prototype to avoid an error.
12247 Use char because int might match the return type of a GCC
12248 builtin and then its argument prototype would still apply. */
12249#ifdef __cplusplus
12250extern "C"
12251#endif
12252char udev_queue_get_udev_is_active ();
12253int
12254main ()
12255{
12256return udev_queue_get_udev_is_active ();
12257 ;
12258 return 0;
12259}
12260_ACEOF
12261rm -f conftest.$ac_objext conftest$ac_exeext
12262if { (ac_try="$ac_link"
12263case "(($ac_try" in
12264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12265 *) ac_try_echo=$ac_try;;
12266esac
12267eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12268$as_echo "$ac_try_echo") >&5
12269 (eval "$ac_link") 2>conftest.er1
12270 ac_status=$?
12271 grep -v '^ *+' conftest.er1 >conftest.err
12272 rm -f conftest.er1
12273 cat conftest.err >&5
12274 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12275 (exit $ac_status); } && {
12276 test -z "$ac_c_werror_flag" ||
12277 test ! -s conftest.err
12278 } && test -s conftest$ac_exeext && {
12279 test "$cross_compiling" = yes ||
12280 $as_test_x conftest$ac_exeext
12281 }; then
12282 ac_cv_lib_udev_udev_queue_get_udev_is_active=yes
12283else
12284 $as_echo "$as_me: failed program was:" >&5
12285sed 's/^/| /' conftest.$ac_ext >&5
12286
12287 ac_cv_lib_udev_udev_queue_get_udev_is_active=no
12288fi
12289
12290rm -rf conftest.dSYM
12291rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12292 conftest$ac_exeext conftest.$ac_ext
12293LIBS=$ac_check_lib_save_LIBS
12294fi
12295{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_udev_udev_queue_get_udev_is_active" >&5
12296$as_echo "$ac_cv_lib_udev_udev_queue_get_udev_is_active" >&6; }
12297if test "x$ac_cv_lib_udev_udev_queue_get_udev_is_active" = x""yes; then
12298 HAVE_UDEV_QUEUE_GET_UDEV_IS_ACTIVE=yes
12299else
12300 HAVE_UDEV_QUEUE_GET_UDEV_IS_ACTIVE=no
12301fi
12302
12303
12304 if test x$HAVE_UDEV_QUEUE_GET_UDEV_IS_ACTIVE = xyes; then
12305
12306cat >>confdefs.h <<\_ACEOF
12307#define HAVE_UDEV_QUEUE_GET_UDEV_IS_ACTIVE 1
12308_ACEOF
12309
12310 LIBS="-ludev $LIBS"
0878503f
PR
12311 else
12312 { $as_echo "$as_me:$LINENO: WARNING: It won't be possible to get udev state. We will assume that udev is not running." >&5
12313$as_echo "$as_me: WARNING: It won't be possible to get udev state. We will assume that udev is not running." >&2;}
90c80887
AK
12314 fi
12315fi
12316
93bd259b
AK
12317################################################################################
12318# Check whether --enable-compat was given.
12319if test "${enable_compat+set}" = set; then
12320 enableval=$enable_compat; DM_COMPAT=$enableval
12321else
12322 DM_COMPAT=no
12323fi
12324
12325
95eaa683
AK
12326################################################################################
12327# Check whether --enable-units-compat was given.
12328if test "${enable_units_compat+set}" = set; then
12329 enableval=$enable_units_compat; UNITS_COMPAT=$enableval
12330else
12331 UNITS_COMPAT=no
12332fi
12333
12334
12335if test x$UNITS_COMPAT = xyes; then
12336
12337cat >>confdefs.h <<\_ACEOF
12338#define DEFAULT_SI_UNIT_CONSISTENCY 0
12339_ACEOF
12340
12341fi
12342
93bd259b
AK
12343################################################################################
12344# Check whether --enable-ioctl was given.
12345if test "${enable_ioctl+set}" = set; then
12346 enableval=$enable_ioctl; DM_IOCTLS=$enableval
12347fi
12348
12349
d0191583 12350################################################################################
ec6a6fbe
AK
12351{ $as_echo "$as_me:$LINENO: checking whether to enable O_DIRECT" >&5
12352$as_echo_n "checking whether to enable O_DIRECT... " >&6; }
d0191583
JM
12353# Check whether --enable-o_direct was given.
12354if test "${enable_o_direct+set}" = set; then
12355 enableval=$enable_o_direct; ODIRECT=$enableval
ad6254c5 12356fi
ad6254c5 12357
ec6a6fbe
AK
12358{ $as_echo "$as_me:$LINENO: result: $ODIRECT" >&5
12359$as_echo "$ODIRECT" >&6; }
ad6254c5 12360
d0191583 12361if test x$ODIRECT = xyes; then
ad6254c5 12362
d0191583
JM
12363cat >>confdefs.h <<\_ACEOF
12364#define O_DIRECT_SUPPORT 1
12365_ACEOF
ad6254c5 12366
d0191583 12367fi
ad6254c5 12368
572fefeb
AK
12369################################################################################
12370{ $as_echo "$as_me:$LINENO: checking whether to build liblvm2app.so application library" >&5
12371$as_echo_n "checking whether to build liblvm2app.so application library... " >&6; }
12372# Check whether --enable-applib was given.
12373if test "${enable_applib+set}" = set; then
12374 enableval=$enable_applib; APPLIB=$enableval
12375else
12376 APPLIB=no
12377fi
12378
12379{ $as_echo "$as_me:$LINENO: result: $APPLIB" >&5
12380$as_echo "$APPLIB" >&6; }
12381
12382test x$APPLIB = xyes \
12383 && LVM2APP_LIB=-llvm2app \
12384 || LVM2APP_LIB=
12385
d0191583 12386################################################################################
ec6a6fbe
AK
12387{ $as_echo "$as_me:$LINENO: checking whether to compile liblvm2cmd.so" >&5
12388$as_echo_n "checking whether to compile liblvm2cmd.so... " >&6; }
d0191583
JM
12389# Check whether --enable-cmdlib was given.
12390if test "${enable_cmdlib+set}" = set; then
12391 enableval=$enable_cmdlib; CMDLIB=$enableval
ad6254c5 12392else
d0191583
JM
12393 CMDLIB=no
12394fi
8a2fc586 12395
ec6a6fbe
AK
12396{ $as_echo "$as_me:$LINENO: result: $CMDLIB" >&5
12397$as_echo "$CMDLIB" >&6; }
8a2fc586 12398
2a9a80c9 12399test x$CMDLIB = xyes \
d179cc7a
JM
12400 && LVM2CMD_LIB=-llvm2cmd \
12401 || LVM2CMD_LIB=
12402
93bd259b
AK
12403################################################################################
12404# Check whether --enable-pkgconfig was given.
12405if test "${enable_pkgconfig+set}" = set; then
12406 enableval=$enable_pkgconfig; PKGCONFIG=$enableval
12407else
12408 PKGCONFIG=no
12409fi
12410
2a9a80c9 12411
d0191583 12412################################################################################
ec6a6fbe
AK
12413{ $as_echo "$as_me:$LINENO: checking whether to install fsadm" >&5
12414$as_echo_n "checking whether to install fsadm... " >&6; }
d0191583
JM
12415# Check whether --enable-fsadm was given.
12416if test "${enable_fsadm+set}" = set; then
12417 enableval=$enable_fsadm; FSADM=$enableval
12418fi
8a2fc586 12419
ec6a6fbe
AK
12420{ $as_echo "$as_me:$LINENO: result: $FSADM" >&5
12421$as_echo "$FSADM" >&6; }
8a2fc586 12422
d0191583 12423################################################################################
ec6a6fbe
AK
12424{ $as_echo "$as_me:$LINENO: checking whether to use dmeventd" >&5
12425$as_echo_n "checking whether to use dmeventd... " >&6; }
d0191583
JM
12426# Check whether --enable-dmeventd was given.
12427if test "${enable_dmeventd+set}" = set; then
12428 enableval=$enable_dmeventd; DMEVENTD=$enableval
12429fi
ad6254c5 12430
ec6a6fbe
AK
12431{ $as_echo "$as_me:$LINENO: result: $DMEVENTD" >&5
12432$as_echo "$DMEVENTD" >&6; }
ad6254c5 12433
93bd259b
AK
12434BUILD_DMEVENTD=$DMEVENTD
12435
2a9a80c9
PR
12436if test x$DMEVENTD = xyes; then
12437 if test x$MIRRORS != xinternal; then
ec6a6fbe 12438 { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd currently requires --with-mirrors=internal
2a9a80c9 12439 " >&5
ec6a6fbe 12440$as_echo "$as_me: error: --enable-dmeventd currently requires --with-mirrors=internal
2a9a80c9 12441 " >&2;}
d0191583 12442 { (exit 1); exit 1; }; }
2a9a80c9
PR
12443 fi
12444 if test x$CMDLIB = xno; then
ec6a6fbe 12445 { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd requires --enable-cmdlib to be used as well
2a9a80c9 12446 " >&5
ec6a6fbe 12447$as_echo "$as_me: error: --enable-dmeventd requires --enable-cmdlib to be used as well
2a9a80c9
PR
12448 " >&2;}
12449 { (exit 1); exit 1; }; }
12450 fi
ad6254c5 12451fi
7a197a62 12452
d0191583
JM
12453if test x$DMEVENTD = xyes; then
12454
12455cat >>confdefs.h <<\_ACEOF
12456#define DMEVENTD 1
ad6254c5
AK
12457_ACEOF
12458
ad6254c5 12459fi
93bd259b
AK
12460
12461################################################################################
12462
ec6a6fbe
AK
12463{ $as_echo "$as_me:$LINENO: checking for getline in -lc" >&5
12464$as_echo_n "checking for getline in -lc... " >&6; }
93bd259b 12465if test "${ac_cv_lib_c_getline+set}" = set; then
ec6a6fbe 12466 $as_echo_n "(cached) " >&6
93bd259b
AK
12467else
12468 ac_check_lib_save_LIBS=$LIBS
12469LIBS="-lc $LIBS"
12470cat >conftest.$ac_ext <<_ACEOF
12471/* confdefs.h. */
12472_ACEOF
12473cat confdefs.h >>conftest.$ac_ext
12474cat >>conftest.$ac_ext <<_ACEOF
12475/* end confdefs.h. */
12476
12477/* Override any GCC internal prototype to avoid an error.
12478 Use char because int might match the return type of a GCC
12479 builtin and then its argument prototype would still apply. */
12480#ifdef __cplusplus
12481extern "C"
12482#endif
12483char getline ();
12484int
12485main ()
12486{
12487return getline ();
12488 ;
12489 return 0;
12490}
12491_ACEOF
12492rm -f conftest.$ac_objext conftest$ac_exeext
12493if { (ac_try="$ac_link"
12494case "(($ac_try" in
12495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12496 *) ac_try_echo=$ac_try;;
12497esac
ec6a6fbe
AK
12498eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12499$as_echo "$ac_try_echo") >&5
93bd259b
AK
12500 (eval "$ac_link") 2>conftest.er1
12501 ac_status=$?
12502 grep -v '^ *+' conftest.er1 >conftest.err
12503 rm -f conftest.er1
12504 cat conftest.err >&5
ec6a6fbe 12505 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
93bd259b
AK
12506 (exit $ac_status); } && {
12507 test -z "$ac_c_werror_flag" ||
12508 test ! -s conftest.err
ec6a6fbe
AK
12509 } && test -s conftest$ac_exeext && {
12510 test "$cross_compiling" = yes ||
12511 $as_test_x conftest$ac_exeext
12512 }; then
93bd259b
AK
12513 ac_cv_lib_c_getline=yes
12514else
ec6a6fbe 12515 $as_echo "$as_me: failed program was:" >&5
93bd259b
AK
12516sed 's/^/| /' conftest.$ac_ext >&5
12517
12518 ac_cv_lib_c_getline=no
12519fi
12520
ec6a6fbe 12521rm -rf conftest.dSYM
93bd259b
AK
12522rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12523 conftest$ac_exeext conftest.$ac_ext
12524LIBS=$ac_check_lib_save_LIBS
12525fi
ec6a6fbe
AK
12526{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_getline" >&5
12527$as_echo "$ac_cv_lib_c_getline" >&6; }
12528if test "x$ac_cv_lib_c_getline" = x""yes; then
93bd259b
AK
12529
12530cat >>confdefs.h <<\_ACEOF
12531#define HAVE_GETLINE 1
12532_ACEOF
12533
12534fi
12535
12536
12537################################################################################
12538
ec6a6fbe
AK
12539{ $as_echo "$as_me:$LINENO: checking for canonicalize_file_name in -lc" >&5
12540$as_echo_n "checking for canonicalize_file_name in -lc... " >&6; }
93bd259b 12541if test "${ac_cv_lib_c_canonicalize_file_name+set}" = set; then
ec6a6fbe 12542 $as_echo_n "(cached) " >&6
93bd259b
AK
12543else
12544 ac_check_lib_save_LIBS=$LIBS
12545LIBS="-lc $LIBS"
12546cat >conftest.$ac_ext <<_ACEOF
12547/* confdefs.h. */
12548_ACEOF
12549cat confdefs.h >>conftest.$ac_ext
12550cat >>conftest.$ac_ext <<_ACEOF
12551/* end confdefs.h. */
12552
12553/* Override any GCC internal prototype to avoid an error.
12554 Use char because int might match the return type of a GCC
12555 builtin and then its argument prototype would still apply. */
12556#ifdef __cplusplus
12557extern "C"
12558#endif
12559char canonicalize_file_name ();
12560int
12561main ()
12562{
12563return canonicalize_file_name ();
12564 ;
12565 return 0;
12566}
12567_ACEOF
12568rm -f conftest.$ac_objext conftest$ac_exeext
12569if { (ac_try="$ac_link"
12570case "(($ac_try" in
12571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12572 *) ac_try_echo=$ac_try;;
12573esac
ec6a6fbe
AK
12574eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12575$as_echo "$ac_try_echo") >&5
93bd259b
AK
12576 (eval "$ac_link") 2>conftest.er1
12577 ac_status=$?
12578 grep -v '^ *+' conftest.er1 >conftest.err
12579 rm -f conftest.er1
12580 cat conftest.err >&5
ec6a6fbe 12581 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
93bd259b
AK
12582 (exit $ac_status); } && {
12583 test -z "$ac_c_werror_flag" ||
12584 test ! -s conftest.err
ec6a6fbe
AK
12585 } && test -s conftest$ac_exeext && {
12586 test "$cross_compiling" = yes ||
12587 $as_test_x conftest$ac_exeext
12588 }; then
93bd259b
AK
12589 ac_cv_lib_c_canonicalize_file_name=yes
12590else
ec6a6fbe 12591 $as_echo "$as_me: failed program was:" >&5
93bd259b
AK
12592sed 's/^/| /' conftest.$ac_ext >&5
12593
12594 ac_cv_lib_c_canonicalize_file_name=no
12595fi
12596
ec6a6fbe 12597rm -rf conftest.dSYM
93bd259b
AK
12598rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12599 conftest$ac_exeext conftest.$ac_ext
12600LIBS=$ac_check_lib_save_LIBS
12601fi
ec6a6fbe
AK
12602{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_canonicalize_file_name" >&5
12603$as_echo "$ac_cv_lib_c_canonicalize_file_name" >&6; }
12604if test "x$ac_cv_lib_c_canonicalize_file_name" = x""yes; then
93bd259b
AK
12605
12606cat >>confdefs.h <<\_ACEOF
12607#define HAVE_CANONICALIZE_FILE_NAME 1
12608_ACEOF
12609
12610fi
12611
12612
d0191583
JM
12613################################################################################
12614if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ];
12615 then exec_prefix="";
12616fi;
ad6254c5 12617
ad6254c5 12618################################################################################
ec6a6fbe
AK
12619{ $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12620$as_echo_n "checking for dlopen in -ldl... " >&6; }
ad6254c5 12621if test "${ac_cv_lib_dl_dlopen+set}" = set; then
ec6a6fbe 12622 $as_echo_n "(cached) " >&6
ad6254c5
AK
12623else
12624 ac_check_lib_save_LIBS=$LIBS
12625LIBS="-ldl $LIBS"
12626cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
12627/* confdefs.h. */
12628_ACEOF
12629cat confdefs.h >>conftest.$ac_ext
12630cat >>conftest.$ac_ext <<_ACEOF
12631/* end confdefs.h. */
12632
7a197a62
AK
12633/* Override any GCC internal prototype to avoid an error.
12634 Use char because int might match the return type of a GCC
12635 builtin and then its argument prototype would still apply. */
ad6254c5
AK
12636#ifdef __cplusplus
12637extern "C"
12638#endif
ad6254c5
AK
12639char dlopen ();
12640int
12641main ()
12642{
7a197a62 12643return dlopen ();
ad6254c5
AK
12644 ;
12645 return 0;
12646}
12647_ACEOF
12648rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
12649if { (ac_try="$ac_link"
12650case "(($ac_try" in
12651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12652 *) ac_try_echo=$ac_try;;
12653esac
ec6a6fbe
AK
12654eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12655$as_echo "$ac_try_echo") >&5
7a197a62 12656 (eval "$ac_link") 2>conftest.er1
ad6254c5 12657 ac_status=$?
8a2fc586
AK
12658 grep -v '^ *+' conftest.er1 >conftest.err
12659 rm -f conftest.er1
12660 cat conftest.err >&5
ec6a6fbe 12661 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
12662 (exit $ac_status); } && {
12663 test -z "$ac_c_werror_flag" ||
12664 test ! -s conftest.err
ec6a6fbe
AK
12665 } && test -s conftest$ac_exeext && {
12666 test "$cross_compiling" = yes ||
12667 $as_test_x conftest$ac_exeext
12668 }; then
ad6254c5
AK
12669 ac_cv_lib_dl_dlopen=yes
12670else
ec6a6fbe 12671 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
12672sed 's/^/| /' conftest.$ac_ext >&5
12673
7a197a62 12674 ac_cv_lib_dl_dlopen=no
ad6254c5 12675fi
7a197a62 12676
ec6a6fbe 12677rm -rf conftest.dSYM
25fbec5b 12678rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 12679 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
12680LIBS=$ac_check_lib_save_LIBS
12681fi
ec6a6fbe
AK
12682{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12683$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12684if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
ad6254c5
AK
12685 HAVE_LIBDL=yes
12686else
12687 HAVE_LIBDL=no
12688fi
12689
12690
7e9e9502 12691if [ "x$HAVE_LIBDL" = xyes ]; then
72b2cb61
AK
12692
12693cat >>confdefs.h <<\_ACEOF
12694#define HAVE_LIBDL 1
12695_ACEOF
12696
ad6254c5
AK
12697 LIBS="-ldl $LIBS"
12698else
12699 HAVE_LIBDL=no
12700fi
12701
12702################################################################################
12703if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \
12704 -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \
12705 \) -a "x$STATIC_LINK" = xyes ];
ec6a6fbe 12706 then { { $as_echo "$as_me:$LINENO: error: Features cannot be 'shared' when building statically
ad6254c5 12707" >&5
ec6a6fbe 12708$as_echo "$as_me: error: Features cannot be 'shared' when building statically
ad6254c5
AK
12709" >&2;}
12710 { (exit 1); exit 1; }; }
12711fi
12712
f30875db
ZK
12713################################################################################
12714if [ "$DMEVENTD" = yes -o "$CLVMD" != none ] ; then
12715 { $as_echo "$as_me:$LINENO: checking for pthread_mutex_lock in -lpthread" >&5
12716$as_echo_n "checking for pthread_mutex_lock in -lpthread... " >&6; }
12717if test "${ac_cv_lib_pthread_pthread_mutex_lock+set}" = set; then
12718 $as_echo_n "(cached) " >&6
12719else
12720 ac_check_lib_save_LIBS=$LIBS
12721LIBS="-lpthread $LIBS"
12722cat >conftest.$ac_ext <<_ACEOF
12723/* confdefs.h. */
12724_ACEOF
12725cat confdefs.h >>conftest.$ac_ext
12726cat >>conftest.$ac_ext <<_ACEOF
12727/* end confdefs.h. */
12728
12729/* Override any GCC internal prototype to avoid an error.
12730 Use char because int might match the return type of a GCC
12731 builtin and then its argument prototype would still apply. */
12732#ifdef __cplusplus
12733extern "C"
12734#endif
12735char pthread_mutex_lock ();
12736int
12737main ()
12738{
12739return pthread_mutex_lock ();
12740 ;
12741 return 0;
12742}
12743_ACEOF
12744rm -f conftest.$ac_objext conftest$ac_exeext
12745if { (ac_try="$ac_link"
12746case "(($ac_try" in
12747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12748 *) ac_try_echo=$ac_try;;
12749esac
12750eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12751$as_echo "$ac_try_echo") >&5
12752 (eval "$ac_link") 2>conftest.er1
12753 ac_status=$?
12754 grep -v '^ *+' conftest.er1 >conftest.err
12755 rm -f conftest.er1
12756 cat conftest.err >&5
12757 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12758 (exit $ac_status); } && {
12759 test -z "$ac_c_werror_flag" ||
12760 test ! -s conftest.err
12761 } && test -s conftest$ac_exeext && {
12762 test "$cross_compiling" = yes ||
12763 $as_test_x conftest$ac_exeext
12764 }; then
12765 ac_cv_lib_pthread_pthread_mutex_lock=yes
12766else
12767 $as_echo "$as_me: failed program was:" >&5
12768sed 's/^/| /' conftest.$ac_ext >&5
12769
12770 ac_cv_lib_pthread_pthread_mutex_lock=no
12771fi
12772
12773rm -rf conftest.dSYM
12774rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12775 conftest$ac_exeext conftest.$ac_ext
12776LIBS=$ac_check_lib_save_LIBS
12777fi
12778{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_lock" >&5
12779$as_echo "$ac_cv_lib_pthread_pthread_mutex_lock" >&6; }
12780if test "x$ac_cv_lib_pthread_pthread_mutex_lock" = x""yes; then
12781 PTHREAD_LIBS="-lpthread"
12782else
12783 hard_bailout
12784fi
12785
12786fi
12787
d0191583 12788################################################################################
ec6a6fbe
AK
12789{ $as_echo "$as_me:$LINENO: checking whether to enable selinux support" >&5
12790$as_echo_n "checking whether to enable selinux support... " >&6; }
d0191583
JM
12791# Check whether --enable-selinux was given.
12792if test "${enable_selinux+set}" = set; then
12793 enableval=$enable_selinux; SELINUX=$enableval
12794fi
12795
ec6a6fbe
AK
12796{ $as_echo "$as_me:$LINENO: result: $SELINUX" >&5
12797$as_echo "$SELINUX" >&6; }
d0191583 12798
ad6254c5
AK
12799################################################################################
12800if test x$SELINUX = xyes; then
ec6a6fbe
AK
12801 { $as_echo "$as_me:$LINENO: checking for sepol_check_context in -lsepol" >&5
12802$as_echo_n "checking for sepol_check_context in -lsepol... " >&6; }
8a2fc586 12803if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then
ec6a6fbe 12804 $as_echo_n "(cached) " >&6
8a2fc586
AK
12805else
12806 ac_check_lib_save_LIBS=$LIBS
12807LIBS="-lsepol $LIBS"
12808cat >conftest.$ac_ext <<_ACEOF
12809/* confdefs.h. */
12810_ACEOF
12811cat confdefs.h >>conftest.$ac_ext
12812cat >>conftest.$ac_ext <<_ACEOF
12813/* end confdefs.h. */
12814
7a197a62
AK
12815/* Override any GCC internal prototype to avoid an error.
12816 Use char because int might match the return type of a GCC
12817 builtin and then its argument prototype would still apply. */
8a2fc586
AK
12818#ifdef __cplusplus
12819extern "C"
12820#endif
8a2fc586
AK
12821char sepol_check_context ();
12822int
12823main ()
12824{
7a197a62 12825return sepol_check_context ();
8a2fc586
AK
12826 ;
12827 return 0;
12828}
12829_ACEOF
12830rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
12831if { (ac_try="$ac_link"
12832case "(($ac_try" in
12833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12834 *) ac_try_echo=$ac_try;;
12835esac
ec6a6fbe
AK
12836eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12837$as_echo "$ac_try_echo") >&5
7a197a62 12838 (eval "$ac_link") 2>conftest.er1
8a2fc586
AK
12839 ac_status=$?
12840 grep -v '^ *+' conftest.er1 >conftest.err
12841 rm -f conftest.er1
12842 cat conftest.err >&5
ec6a6fbe 12843 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
12844 (exit $ac_status); } && {
12845 test -z "$ac_c_werror_flag" ||
12846 test ! -s conftest.err
ec6a6fbe
AK
12847 } && test -s conftest$ac_exeext && {
12848 test "$cross_compiling" = yes ||
12849 $as_test_x conftest$ac_exeext
12850 }; then
8a2fc586
AK
12851 ac_cv_lib_sepol_sepol_check_context=yes
12852else
ec6a6fbe 12853 $as_echo "$as_me: failed program was:" >&5
8a2fc586
AK
12854sed 's/^/| /' conftest.$ac_ext >&5
12855
7a197a62 12856 ac_cv_lib_sepol_sepol_check_context=no
8a2fc586 12857fi
7a197a62 12858
ec6a6fbe 12859rm -rf conftest.dSYM
25fbec5b 12860rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586
AK
12861 conftest$ac_exeext conftest.$ac_ext
12862LIBS=$ac_check_lib_save_LIBS
12863fi
ec6a6fbe
AK
12864{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sepol_sepol_check_context" >&5
12865$as_echo "$ac_cv_lib_sepol_sepol_check_context" >&6; }
12866if test "x$ac_cv_lib_sepol_sepol_check_context" = x""yes; then
8a2fc586
AK
12867 HAVE_SEPOL=yes
12868else
12869 HAVE_SEPOL=no
12870fi
12871
8a2fc586
AK
12872
12873 if test x$HAVE_SEPOL = xyes; then
d0191583
JM
12874
12875cat >>confdefs.h <<\_ACEOF
12876#define HAVE_SEPOL 1
12877_ACEOF
12878
e1b8a236 12879 SELINUX_LIBS="-lsepol $SELINUX_LIBS"
8a2fc586
AK
12880 fi
12881
ec6a6fbe
AK
12882 { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
12883$as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
ad6254c5 12884if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
ec6a6fbe 12885 $as_echo_n "(cached) " >&6
ad6254c5
AK
12886else
12887 ac_check_lib_save_LIBS=$LIBS
12888LIBS="-lselinux $LIBS"
12889cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
12890/* confdefs.h. */
12891_ACEOF
12892cat confdefs.h >>conftest.$ac_ext
12893cat >>conftest.$ac_ext <<_ACEOF
12894/* end confdefs.h. */
12895
7a197a62
AK
12896/* Override any GCC internal prototype to avoid an error.
12897 Use char because int might match the return type of a GCC
12898 builtin and then its argument prototype would still apply. */
ad6254c5
AK
12899#ifdef __cplusplus
12900extern "C"
12901#endif
ad6254c5
AK
12902char is_selinux_enabled ();
12903int
12904main ()
12905{
7a197a62 12906return is_selinux_enabled ();
ad6254c5
AK
12907 ;
12908 return 0;
12909}
12910_ACEOF
12911rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
12912if { (ac_try="$ac_link"
12913case "(($ac_try" in
12914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12915 *) ac_try_echo=$ac_try;;
12916esac
ec6a6fbe
AK
12917eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12918$as_echo "$ac_try_echo") >&5
7a197a62 12919 (eval "$ac_link") 2>conftest.er1
ad6254c5 12920 ac_status=$?
8a2fc586
AK
12921 grep -v '^ *+' conftest.er1 >conftest.err
12922 rm -f conftest.er1
12923 cat conftest.err >&5
ec6a6fbe 12924 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
12925 (exit $ac_status); } && {
12926 test -z "$ac_c_werror_flag" ||
12927 test ! -s conftest.err
ec6a6fbe
AK
12928 } && test -s conftest$ac_exeext && {
12929 test "$cross_compiling" = yes ||
12930 $as_test_x conftest$ac_exeext
12931 }; then
ad6254c5
AK
12932 ac_cv_lib_selinux_is_selinux_enabled=yes
12933else
ec6a6fbe 12934 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
12935sed 's/^/| /' conftest.$ac_ext >&5
12936
7a197a62 12937 ac_cv_lib_selinux_is_selinux_enabled=no
ad6254c5 12938fi
7a197a62 12939
ec6a6fbe 12940rm -rf conftest.dSYM
25fbec5b 12941rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 12942 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
12943LIBS=$ac_check_lib_save_LIBS
12944fi
ec6a6fbe
AK
12945{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
12946$as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
12947if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then
ad6254c5
AK
12948 HAVE_SELINUX=yes
12949else
12950 HAVE_SELINUX=no
12951fi
12952
ad6254c5
AK
12953
12954 if test x$HAVE_SELINUX = xyes; then
72b2cb61
AK
12955
12956cat >>confdefs.h <<\_ACEOF
12957#define HAVE_SELINUX 1
12958_ACEOF
12959
e1b8a236 12960 SELINUX_LIBS="-lselinux $SELINUX_LIBS"
ad6254c5 12961 else
ec6a6fbe
AK
12962 { $as_echo "$as_me:$LINENO: WARNING: Disabling selinux" >&5
12963$as_echo "$as_me: WARNING: Disabling selinux" >&2;}
66e941e8 12964 fi
e1b8a236 12965 LIBS="$SELINUX_LIBS $LIBS"
66e941e8 12966
d0191583 12967 # With --enable-static_link and selinux enabled, linking
66e941e8
JM
12968 # fails on at least Debian unstable due to unsatisfied references
12969 # to pthread_mutex_lock and _unlock. See if we need -lpthread.
12970 if test "$STATIC_LINK-$HAVE_SELINUX" = yes-yes; then
12971 lvm_saved_libs=$LIBS
12972 LIBS="$LIBS -static"
ec6a6fbe
AK
12973 { $as_echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12974$as_echo_n "checking for library containing pthread_mutex_lock... " >&6; }
66e941e8 12975if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
ec6a6fbe 12976 $as_echo_n "(cached) " >&6
66e941e8
JM
12977else
12978 ac_func_search_save_LIBS=$LIBS
12979cat >conftest.$ac_ext <<_ACEOF
12980/* confdefs.h. */
12981_ACEOF
12982cat confdefs.h >>conftest.$ac_ext
12983cat >>conftest.$ac_ext <<_ACEOF
12984/* end confdefs.h. */
12985
12986/* Override any GCC internal prototype to avoid an error.
12987 Use char because int might match the return type of a GCC
12988 builtin and then its argument prototype would still apply. */
12989#ifdef __cplusplus
12990extern "C"
12991#endif
12992char pthread_mutex_lock ();
12993int
12994main ()
12995{
12996return pthread_mutex_lock ();
12997 ;
12998 return 0;
12999}
13000_ACEOF
13001for ac_lib in '' pthread; do
13002 if test -z "$ac_lib"; then
13003 ac_res="none required"
13004 else
13005 ac_res=-l$ac_lib
13006 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13007 fi
13008 rm -f conftest.$ac_objext conftest$ac_exeext
13009if { (ac_try="$ac_link"
13010case "(($ac_try" in
13011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13012 *) ac_try_echo=$ac_try;;
13013esac
ec6a6fbe
AK
13014eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13015$as_echo "$ac_try_echo") >&5
66e941e8
JM
13016 (eval "$ac_link") 2>conftest.er1
13017 ac_status=$?
13018 grep -v '^ *+' conftest.er1 >conftest.err
13019 rm -f conftest.er1
13020 cat conftest.err >&5
ec6a6fbe 13021 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
13022 (exit $ac_status); } && {
13023 test -z "$ac_c_werror_flag" ||
13024 test ! -s conftest.err
ec6a6fbe
AK
13025 } && test -s conftest$ac_exeext && {
13026 test "$cross_compiling" = yes ||
13027 $as_test_x conftest$ac_exeext
13028 }; then
66e941e8
JM
13029 ac_cv_search_pthread_mutex_lock=$ac_res
13030else
ec6a6fbe 13031 $as_echo "$as_me: failed program was:" >&5
66e941e8
JM
13032sed 's/^/| /' conftest.$ac_ext >&5
13033
13034
13035fi
13036
ec6a6fbe 13037rm -rf conftest.dSYM
25fbec5b 13038rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
66e941e8
JM
13039 conftest$ac_exeext
13040 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13041 break
13042fi
13043done
13044if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13045 :
13046else
13047 ac_cv_search_pthread_mutex_lock=no
13048fi
13049rm conftest.$ac_ext
13050LIBS=$ac_func_search_save_LIBS
13051fi
ec6a6fbe
AK
13052{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13053$as_echo "$ac_cv_search_pthread_mutex_lock" >&6; }
66e941e8
JM
13054ac_res=$ac_cv_search_pthread_mutex_lock
13055if test "$ac_res" != no; then
13056 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13057 test "$ac_cv_search_pthread_mutex_lock" = "none required" ||
13058 LIB_PTHREAD=-lpthread
13059fi
13060
13061 LIBS=$lvm_saved_libs
ad6254c5
AK
13062 fi
13063fi
13064
8b1a3214
AK
13065################################################################################
13066if test x$REALTIME = xyes; then
ec6a6fbe
AK
13067 { $as_echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
13068$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
8b1a3214 13069if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
ec6a6fbe 13070 $as_echo_n "(cached) " >&6
8b1a3214
AK
13071else
13072 ac_check_lib_save_LIBS=$LIBS
13073LIBS="-lrt $LIBS"
13074cat >conftest.$ac_ext <<_ACEOF
13075/* confdefs.h. */
13076_ACEOF
13077cat confdefs.h >>conftest.$ac_ext
13078cat >>conftest.$ac_ext <<_ACEOF
13079/* end confdefs.h. */
13080
7a197a62
AK
13081/* Override any GCC internal prototype to avoid an error.
13082 Use char because int might match the return type of a GCC
13083 builtin and then its argument prototype would still apply. */
8b1a3214
AK
13084#ifdef __cplusplus
13085extern "C"
13086#endif
8b1a3214
AK
13087char clock_gettime ();
13088int
13089main ()
13090{
7a197a62 13091return clock_gettime ();
8b1a3214
AK
13092 ;
13093 return 0;
13094}
13095_ACEOF
13096rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
13097if { (ac_try="$ac_link"
13098case "(($ac_try" in
13099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13100 *) ac_try_echo=$ac_try;;
13101esac
ec6a6fbe
AK
13102eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13103$as_echo "$ac_try_echo") >&5
7a197a62 13104 (eval "$ac_link") 2>conftest.er1
8b1a3214
AK
13105 ac_status=$?
13106 grep -v '^ *+' conftest.er1 >conftest.err
13107 rm -f conftest.er1
13108 cat conftest.err >&5
ec6a6fbe 13109 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
13110 (exit $ac_status); } && {
13111 test -z "$ac_c_werror_flag" ||
13112 test ! -s conftest.err
ec6a6fbe
AK
13113 } && test -s conftest$ac_exeext && {
13114 test "$cross_compiling" = yes ||
13115 $as_test_x conftest$ac_exeext
13116 }; then
8b1a3214
AK
13117 ac_cv_lib_rt_clock_gettime=yes
13118else
ec6a6fbe 13119 $as_echo "$as_me: failed program was:" >&5
8b1a3214
AK
13120sed 's/^/| /' conftest.$ac_ext >&5
13121
7a197a62 13122 ac_cv_lib_rt_clock_gettime=no
8b1a3214 13123fi
7a197a62 13124
ec6a6fbe 13125rm -rf conftest.dSYM
25fbec5b 13126rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8b1a3214
AK
13127 conftest$ac_exeext conftest.$ac_ext
13128LIBS=$ac_check_lib_save_LIBS
13129fi
ec6a6fbe
AK
13130{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
13131$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
13132if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then
8b1a3214
AK
13133 HAVE_REALTIME=yes
13134else
13135 HAVE_REALTIME=no
13136fi
13137
8b1a3214
AK
13138
13139 if test x$HAVE_REALTIME = xyes; then
13140
13141cat >>confdefs.h <<\_ACEOF
13142#define HAVE_REALTIME 1
13143_ACEOF
13144
13145 LIBS="-lrt $LIBS"
13146 else
ec6a6fbe
AK
13147 { $as_echo "$as_me:$LINENO: WARNING: Disabling realtime clock" >&5
13148$as_echo "$as_me: WARNING: Disabling realtime clock" >&2;}
8b1a3214
AK
13149 fi
13150fi
13151
ad6254c5
AK
13152################################################################################
13153
13154for ac_header in getopt.h
13155do
ec6a6fbe 13156as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 13157if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
13158 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13159$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 13160if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 13161 $as_echo_n "(cached) " >&6
ad6254c5 13162fi
ec6a6fbe
AK
13163ac_res=`eval 'as_val=${'$as_ac_Header'}
13164 $as_echo "$as_val"'`
13165 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13166$as_echo "$ac_res" >&6; }
ad6254c5
AK
13167else
13168 # Is the header compilable?
ec6a6fbe
AK
13169{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13170$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 13171cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
13172/* confdefs.h. */
13173_ACEOF
13174cat confdefs.h >>conftest.$ac_ext
13175cat >>conftest.$ac_ext <<_ACEOF
13176/* end confdefs.h. */
13177$ac_includes_default
13178#include <$ac_header>
13179_ACEOF
13180rm -f conftest.$ac_objext
7a197a62
AK
13181if { (ac_try="$ac_compile"
13182case "(($ac_try" in
13183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13184 *) ac_try_echo=$ac_try;;
13185esac
ec6a6fbe
AK
13186eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13187$as_echo "$ac_try_echo") >&5
7a197a62 13188 (eval "$ac_compile") 2>conftest.er1
ad6254c5 13189 ac_status=$?
8a2fc586
AK
13190 grep -v '^ *+' conftest.er1 >conftest.err
13191 rm -f conftest.er1
13192 cat conftest.err >&5
ec6a6fbe 13193 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
13194 (exit $ac_status); } && {
13195 test -z "$ac_c_werror_flag" ||
13196 test ! -s conftest.err
13197 } && test -s conftest.$ac_objext; then
ad6254c5
AK
13198 ac_header_compiler=yes
13199else
ec6a6fbe 13200 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
13201sed 's/^/| /' conftest.$ac_ext >&5
13202
7a197a62 13203 ac_header_compiler=no
ad6254c5 13204fi
7a197a62
AK
13205
13206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
13207{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13208$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
13209
13210# Is the header present?
ec6a6fbe
AK
13211{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13212$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 13213cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
13214/* confdefs.h. */
13215_ACEOF
13216cat confdefs.h >>conftest.$ac_ext
13217cat >>conftest.$ac_ext <<_ACEOF
13218/* end confdefs.h. */
13219#include <$ac_header>
13220_ACEOF
7a197a62
AK
13221if { (ac_try="$ac_cpp conftest.$ac_ext"
13222case "(($ac_try" in
13223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13224 *) ac_try_echo=$ac_try;;
13225esac
ec6a6fbe
AK
13226eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13227$as_echo "$ac_try_echo") >&5
7a197a62 13228 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
13229 ac_status=$?
13230 grep -v '^ *+' conftest.er1 >conftest.err
13231 rm -f conftest.er1
13232 cat conftest.err >&5
ec6a6fbe 13233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
13234 (exit $ac_status); } >/dev/null && {
13235 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13236 test ! -s conftest.err
13237 }; then
ad6254c5
AK
13238 ac_header_preproc=yes
13239else
ec6a6fbe 13240 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
13241sed 's/^/| /' conftest.$ac_ext >&5
13242
13243 ac_header_preproc=no
13244fi
7a197a62 13245
ad6254c5 13246rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
13247{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13248$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
13249
13250# So? What about this header?
8a2fc586
AK
13251case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13252 yes:no: )
ec6a6fbe
AK
13253 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13254$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13255 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13256$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 13257 ac_header_preproc=yes
ad6254c5 13258 ;;
8a2fc586 13259 no:yes:* )
ec6a6fbe
AK
13260 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13261$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13262 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13263$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13264 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13265$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13266 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13267$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13268 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13269$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13270 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13271$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 13272
ad6254c5
AK
13273 ;;
13274esac
ec6a6fbe
AK
13275{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13276$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 13277if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 13278 $as_echo_n "(cached) " >&6
ad6254c5 13279else
8a2fc586 13280 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 13281fi
ec6a6fbe
AK
13282ac_res=`eval 'as_val=${'$as_ac_Header'}
13283 $as_echo "$as_val"'`
13284 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13285$as_echo "$ac_res" >&6; }
ad6254c5
AK
13286
13287fi
ec6a6fbe
AK
13288as_val=`eval 'as_val=${'$as_ac_Header'}
13289 $as_echo "$as_val"'`
13290 if test "x$as_val" = x""yes; then
ad6254c5 13291 cat >>confdefs.h <<_ACEOF
ec6a6fbe 13292#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 13293_ACEOF
72b2cb61
AK
13294
13295cat >>confdefs.h <<\_ACEOF
13296#define HAVE_GETOPTLONG 1
13297_ACEOF
13298
ad6254c5
AK
13299fi
13300
13301done
13302
13303
13304################################################################################
06e459df 13305if test x$READLINE != xno; then
539f4a77
ZK
13306 lvm_saved_libs=$LIBS
13307 { $as_echo "$as_me:$LINENO: checking for library containing tgetent" >&5
13308$as_echo_n "checking for library containing tgetent... " >&6; }
13309if test "${ac_cv_search_tgetent+set}" = set; then
13310 $as_echo_n "(cached) " >&6
13311else
13312 ac_func_search_save_LIBS=$LIBS
13313cat >conftest.$ac_ext <<_ACEOF
13314/* confdefs.h. */
13315_ACEOF
13316cat confdefs.h >>conftest.$ac_ext
13317cat >>conftest.$ac_ext <<_ACEOF
13318/* end confdefs.h. */
bc1024f8 13319
539f4a77
ZK
13320/* Override any GCC internal prototype to avoid an error.
13321 Use char because int might match the return type of a GCC
13322 builtin and then its argument prototype would still apply. */
13323#ifdef __cplusplus
13324extern "C"
13325#endif
13326char tgetent ();
13327int
13328main ()
13329{
13330return tgetent ();
13331 ;
13332 return 0;
13333}
13334_ACEOF
13335for ac_lib in '' tinfo ncurses curses termcap termlib; do
13336 if test -z "$ac_lib"; then
13337 ac_res="none required"
13338 else
13339 ac_res=-l$ac_lib
13340 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13341 fi
13342 rm -f conftest.$ac_objext conftest$ac_exeext
13343if { (ac_try="$ac_link"
13344case "(($ac_try" in
13345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13346 *) ac_try_echo=$ac_try;;
13347esac
13348eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13349$as_echo "$ac_try_echo") >&5
13350 (eval "$ac_link") 2>conftest.er1
13351 ac_status=$?
13352 grep -v '^ *+' conftest.er1 >conftest.err
13353 rm -f conftest.er1
13354 cat conftest.err >&5
13355 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13356 (exit $ac_status); } && {
13357 test -z "$ac_c_werror_flag" ||
13358 test ! -s conftest.err
13359 } && test -s conftest$ac_exeext && {
13360 test "$cross_compiling" = yes ||
13361 $as_test_x conftest$ac_exeext
13362 }; then
13363 ac_cv_search_tgetent=$ac_res
13364else
13365 $as_echo "$as_me: failed program was:" >&5
13366sed 's/^/| /' conftest.$ac_ext >&5
13367
13368
13369fi
13370
13371rm -rf conftest.dSYM
13372rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13373 conftest$ac_exeext
13374 if test "${ac_cv_search_tgetent+set}" = set; then
13375 break
13376fi
13377done
13378if test "${ac_cv_search_tgetent+set}" = set; then
13379 :
13380else
13381 ac_cv_search_tgetent=no
13382fi
13383rm conftest.$ac_ext
13384LIBS=$ac_func_search_save_LIBS
13385fi
13386{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
13387$as_echo "$ac_cv_search_tgetent" >&6; }
13388ac_res=$ac_cv_search_tgetent
13389if test "$ac_res" != no; then
13390 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13391 READLINE_LIBS=$ac_cv_search_tgetent
13392else
13393
13394 if test "$READLINE" = yes; then
13395 { { $as_echo "$as_me:$LINENO: error: termcap could not be found which is required for the
13396--enable-readline option (which is enabled by default). Either disable readline
13397support with --disable-readline or download and install termcap from:
13398 ftp.gnu.org/gnu/termcap
13399Note: if you are using precompiled packages you will also need the development
13400 package as well (which may be called termcap-devel or something similar).
13401Note: (n)curses also seems to work as a substitute for termcap. This was
13402 not found either - but you could try installing that as well." >&5
13403$as_echo "$as_me: error: termcap could not be found which is required for the
13404--enable-readline option (which is enabled by default). Either disable readline
13405support with --disable-readline or download and install termcap from:
13406 ftp.gnu.org/gnu/termcap
13407Note: if you are using precompiled packages you will also need the development
13408 package as well (which may be called termcap-devel or something similar).
13409Note: (n)curses also seems to work as a substitute for termcap. This was
13410 not found either - but you could try installing that as well." >&2;}
13411 { (exit 1); exit 1; }; }
13412 fi
13413fi
13414
13415 { $as_echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
ec6a6fbe 13416$as_echo_n "checking for readline in -lreadline... " >&6; }
ad6254c5 13417if test "${ac_cv_lib_readline_readline+set}" = set; then
ec6a6fbe 13418 $as_echo_n "(cached) " >&6
ad6254c5
AK
13419else
13420 ac_check_lib_save_LIBS=$LIBS
13421LIBS="-lreadline $LIBS"
13422cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
13423/* confdefs.h. */
13424_ACEOF
13425cat confdefs.h >>conftest.$ac_ext
13426cat >>conftest.$ac_ext <<_ACEOF
13427/* end confdefs.h. */
13428
7a197a62
AK
13429/* Override any GCC internal prototype to avoid an error.
13430 Use char because int might match the return type of a GCC
13431 builtin and then its argument prototype would still apply. */
ad6254c5
AK
13432#ifdef __cplusplus
13433extern "C"
13434#endif
ad6254c5
AK
13435char readline ();
13436int
13437main ()
13438{
7a197a62 13439return readline ();
ad6254c5
AK
13440 ;
13441 return 0;
13442}
13443_ACEOF
13444rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
13445if { (ac_try="$ac_link"
13446case "(($ac_try" in
13447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13448 *) ac_try_echo=$ac_try;;
13449esac
ec6a6fbe
AK
13450eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13451$as_echo "$ac_try_echo") >&5
7a197a62 13452 (eval "$ac_link") 2>conftest.er1
ad6254c5 13453 ac_status=$?
8a2fc586
AK
13454 grep -v '^ *+' conftest.er1 >conftest.err
13455 rm -f conftest.er1
13456 cat conftest.err >&5
ec6a6fbe 13457 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
13458 (exit $ac_status); } && {
13459 test -z "$ac_c_werror_flag" ||
13460 test ! -s conftest.err
ec6a6fbe
AK
13461 } && test -s conftest$ac_exeext && {
13462 test "$cross_compiling" = yes ||
13463 $as_test_x conftest$ac_exeext
13464 }; then
ad6254c5
AK
13465 ac_cv_lib_readline_readline=yes
13466else
ec6a6fbe 13467 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
13468sed 's/^/| /' conftest.$ac_ext >&5
13469
7a197a62 13470 ac_cv_lib_readline_readline=no
ad6254c5 13471fi
7a197a62 13472
ec6a6fbe 13473rm -rf conftest.dSYM
25fbec5b 13474rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 13475 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
13476LIBS=$ac_check_lib_save_LIBS
13477fi
ec6a6fbe
AK
13478{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
13479$as_echo "$ac_cv_lib_readline_readline" >&6; }
13480if test "x$ac_cv_lib_readline_readline" = x""yes; then
539f4a77
ZK
13481
13482
13483cat >>confdefs.h <<\_ACEOF
13484#define READLINE_SUPPORT 1
bc1024f8
JM
13485_ACEOF
13486
539f4a77
ZK
13487 LIBS=$lvm_saved_libs
13488 { $as_echo "$as_me:$LINENO: checking for rl_line_buffer in -lreadline" >&5
13489$as_echo_n "checking for rl_line_buffer in -lreadline... " >&6; }
13490if test "${ac_cv_lib_readline_rl_line_buffer+set}" = set; then
13491 $as_echo_n "(cached) " >&6
13492else
13493 ac_check_lib_save_LIBS=$LIBS
13494LIBS="-lreadline $LIBS"
13495cat >conftest.$ac_ext <<_ACEOF
13496/* confdefs.h. */
13497_ACEOF
13498cat confdefs.h >>conftest.$ac_ext
13499cat >>conftest.$ac_ext <<_ACEOF
13500/* end confdefs.h. */
bc1024f8 13501
539f4a77
ZK
13502/* Override any GCC internal prototype to avoid an error.
13503 Use char because int might match the return type of a GCC
13504 builtin and then its argument prototype would still apply. */
13505#ifdef __cplusplus
13506extern "C"
13507#endif
13508char rl_line_buffer ();
13509int
13510main ()
13511{
13512return rl_line_buffer ();
13513 ;
13514 return 0;
13515}
13516_ACEOF
13517rm -f conftest.$ac_objext conftest$ac_exeext
13518if { (ac_try="$ac_link"
13519case "(($ac_try" in
13520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13521 *) ac_try_echo=$ac_try;;
13522esac
13523eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13524$as_echo "$ac_try_echo") >&5
13525 (eval "$ac_link") 2>conftest.er1
13526 ac_status=$?
13527 grep -v '^ *+' conftest.er1 >conftest.err
13528 rm -f conftest.er1
13529 cat conftest.err >&5
13530 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13531 (exit $ac_status); } && {
13532 test -z "$ac_c_werror_flag" ||
13533 test ! -s conftest.err
13534 } && test -s conftest$ac_exeext && {
13535 test "$cross_compiling" = yes ||
13536 $as_test_x conftest$ac_exeext
13537 }; then
13538 ac_cv_lib_readline_rl_line_buffer=yes
ad6254c5 13539else
539f4a77
ZK
13540 $as_echo "$as_me: failed program was:" >&5
13541sed 's/^/| /' conftest.$ac_ext >&5
13542
13543 ac_cv_lib_readline_rl_line_buffer=no
06e459df
JM
13544fi
13545
539f4a77
ZK
13546rm -rf conftest.dSYM
13547rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13548 conftest$ac_exeext conftest.$ac_ext
13549LIBS=$ac_check_lib_save_LIBS
13550fi
13551{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_line_buffer" >&5
13552$as_echo "$ac_cv_lib_readline_rl_line_buffer" >&6; }
13553if test "x$ac_cv_lib_readline_rl_line_buffer" = x""yes; then
13554 READLINE_LIBS="-lreadline"
13555else
13556
13557 { $as_echo "$as_me:$LINENO: result: linking -lreadline with $READLINE_LIBS needed" >&5
13558$as_echo "linking -lreadline with $READLINE_LIBS needed" >&6; }
13559 READLINE_LIBS="-lreadline $READLINE_LIBS"
13560
13561fi
13562
13563else
13564
13565 READLINE_LIBS=
13566 if test "$READLINE" = yes; then
13567 { { $as_echo "$as_me:$LINENO: error: GNU Readline could not be found which is required for the
ad6254c5
AK
13568--enable-readline option (which is enabled by default). Either disable readline
13569support with --disable-readline or download and install readline from:
13570 ftp.gnu.org/gnu/readline
13571Note: if you are using precompiled packages you will also need the development
539f4a77 13572package as well (which may be called readline-devel or something similar)." >&5
ec6a6fbe 13573$as_echo "$as_me: error: GNU Readline could not be found which is required for the
ad6254c5
AK
13574--enable-readline option (which is enabled by default). Either disable readline
13575support with --disable-readline or download and install readline from:
13576 ftp.gnu.org/gnu/readline
13577Note: if you are using precompiled packages you will also need the development
539f4a77 13578package as well (which may be called readline-devel or something similar)." >&2;}
ad6254c5 13579 { (exit 1); exit 1; }; }
539f4a77
ZK
13580 fi
13581fi
13582
13583 LIBS="$READLINE_LIBS $lvm_saved_libs"
bc1024f8
JM
13584
13585for ac_func in rl_completion_matches
13586do
ec6a6fbe
AK
13587as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13588{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13589$as_echo_n "checking for $ac_func... " >&6; }
bc1024f8 13590if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 13591 $as_echo_n "(cached) " >&6
ad6254c5
AK
13592else
13593 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
13594/* confdefs.h. */
13595_ACEOF
13596cat confdefs.h >>conftest.$ac_ext
13597cat >>conftest.$ac_ext <<_ACEOF
13598/* end confdefs.h. */
bc1024f8 13599/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8a2fc586 13600 For example, HP-UX 11i <limits.h> declares gettimeofday. */
bc1024f8 13601#define $ac_func innocuous_$ac_func
8a2fc586 13602
ad6254c5 13603/* System header to define __stub macros and hopefully few prototypes,
bc1024f8 13604 which can conflict with char $ac_func (); below.
ad6254c5
AK
13605 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13606 <limits.h> exists even on freestanding compilers. */
8a2fc586 13607
ad6254c5
AK
13608#ifdef __STDC__
13609# include <limits.h>
13610#else
13611# include <assert.h>
13612#endif
8a2fc586 13613
bc1024f8 13614#undef $ac_func
8a2fc586 13615
7a197a62
AK
13616/* Override any GCC internal prototype to avoid an error.
13617 Use char because int might match the return type of a GCC
13618 builtin and then its argument prototype would still apply. */
ad6254c5
AK
13619#ifdef __cplusplus
13620extern "C"
ad6254c5 13621#endif
bc1024f8 13622char $ac_func ();
ad6254c5
AK
13623/* The GNU C library defines this for functions which it implements
13624 to always fail with ENOSYS. Some functions are actually named
13625 something starting with __ and the normal name is an alias. */
bc1024f8 13626#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 13627choke me
ad6254c5
AK
13628#endif
13629
13630int
13631main ()
13632{
bc1024f8 13633return $ac_func ();
ad6254c5
AK
13634 ;
13635 return 0;
13636}
13637_ACEOF
13638rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
13639if { (ac_try="$ac_link"
13640case "(($ac_try" in
13641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13642 *) ac_try_echo=$ac_try;;
13643esac
ec6a6fbe
AK
13644eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13645$as_echo "$ac_try_echo") >&5
7a197a62 13646 (eval "$ac_link") 2>conftest.er1
ad6254c5 13647 ac_status=$?
8a2fc586
AK
13648 grep -v '^ *+' conftest.er1 >conftest.err
13649 rm -f conftest.er1
13650 cat conftest.err >&5
ec6a6fbe 13651 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
13652 (exit $ac_status); } && {
13653 test -z "$ac_c_werror_flag" ||
13654 test ! -s conftest.err
ec6a6fbe
AK
13655 } && test -s conftest$ac_exeext && {
13656 test "$cross_compiling" = yes ||
13657 $as_test_x conftest$ac_exeext
13658 }; then
bc1024f8 13659 eval "$as_ac_var=yes"
ad6254c5 13660else
ec6a6fbe 13661 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
13662sed 's/^/| /' conftest.$ac_ext >&5
13663
bc1024f8 13664 eval "$as_ac_var=no"
ad6254c5 13665fi
7a197a62 13666
ec6a6fbe 13667rm -rf conftest.dSYM
25fbec5b 13668rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 13669 conftest$ac_exeext conftest.$ac_ext
ad6254c5 13670fi
ec6a6fbe
AK
13671ac_res=`eval 'as_val=${'$as_ac_var'}
13672 $as_echo "$as_val"'`
13673 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13674$as_echo "$ac_res" >&6; }
13675as_val=`eval 'as_val=${'$as_ac_var'}
13676 $as_echo "$as_val"'`
13677 if test "x$as_val" = x""yes; then
bc1024f8 13678 cat >>confdefs.h <<_ACEOF
ec6a6fbe 13679#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
72b2cb61
AK
13680_ACEOF
13681
13682fi
bc1024f8 13683done
ad6254c5 13684
539f4a77 13685 LIBS=$lvm_saved_libs
ad6254c5
AK
13686fi
13687
13688################################################################################
ec6a6fbe
AK
13689{ $as_echo "$as_me:$LINENO: checking whether to enable internationalisation" >&5
13690$as_echo_n "checking whether to enable internationalisation... " >&6; }
7a197a62 13691# Check whether --enable-nls was given.
ad6254c5 13692if test "${enable_nls+set}" = set; then
7a197a62 13693 enableval=$enable_nls; INTL=$enableval
ad6254c5
AK
13694else
13695 INTL=no
7a197a62
AK
13696fi
13697
ec6a6fbe
AK
13698{ $as_echo "$as_me:$LINENO: result: $INTL" >&5
13699$as_echo "$INTL" >&6; }
ad6254c5
AK
13700
13701if test x$INTL = xyes; then
93bd259b 13702# FIXME - Move this - can be device-mapper too
ad6254c5
AK
13703 INTL_PACKAGE="lvm2"
13704 # Extract the first word of "msgfmt", so it can be a program name with args.
13705set dummy msgfmt; ac_word=$2
ec6a6fbe
AK
13706{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13707$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 13708if test "${ac_cv_path_MSGFMT+set}" = set; then
ec6a6fbe 13709 $as_echo_n "(cached) " >&6
ad6254c5
AK
13710else
13711 case $MSGFMT in
13712 [\\/]* | ?:[\\/]*)
13713 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
13714 ;;
13715 *)
13716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13717for as_dir in $PATH
13718do
13719 IFS=$as_save_IFS
13720 test -z "$as_dir" && as_dir=.
13721 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 13722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 13723 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 13724 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
13725 break 2
13726 fi
13727done
13728done
7a197a62 13729IFS=$as_save_IFS
ad6254c5
AK
13730
13731 ;;
13732esac
13733fi
13734MSGFMT=$ac_cv_path_MSGFMT
ad6254c5 13735if test -n "$MSGFMT"; then
ec6a6fbe
AK
13736 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
13737$as_echo "$MSGFMT" >&6; }
ad6254c5 13738else
ec6a6fbe
AK
13739 { $as_echo "$as_me:$LINENO: result: no" >&5
13740$as_echo "no" >&6; }
ad6254c5
AK
13741fi
13742
7a197a62 13743
ad6254c5 13744 if [ "x$MSGFMT" == x ];
ec6a6fbe 13745 then { { $as_echo "$as_me:$LINENO: error: msgfmt not found in path $PATH
ad6254c5 13746 " >&5
ec6a6fbe 13747$as_echo "$as_me: error: msgfmt not found in path $PATH
ad6254c5
AK
13748 " >&2;}
13749 { (exit 1); exit 1; }; }
13750 fi;
13751
13752
7a197a62 13753# Check whether --with-localedir was given.
ad6254c5 13754if test "${with_localedir+set}" = set; then
7a197a62 13755 withval=$with_localedir; LOCALEDIR="$withval"
ad6254c5
AK
13756else
13757 LOCALEDIR='${prefix}/share/locale'
7a197a62
AK
13758fi
13759
ad6254c5
AK
13760fi
13761
13762################################################################################
13763
7a197a62 13764# Check whether --with-confdir was given.
ad6254c5 13765if test "${with_confdir+set}" = set; then
7a197a62 13766 withval=$with_confdir; CONFDIR="$withval"
ad6254c5
AK
13767else
13768 CONFDIR='/etc'
7a197a62
AK
13769fi
13770
ad6254c5
AK
13771
13772
7a197a62 13773# Check whether --with-staticdir was given.
ad6254c5 13774if test "${with_staticdir+set}" = set; then
7a197a62 13775 withval=$with_staticdir; STATICDIR="$withval"
ad6254c5
AK
13776else
13777 STATICDIR='${exec_prefix}/sbin'
7a197a62 13778fi
ad6254c5 13779
33f732c5 13780
7a197a62 13781
68f2de6d
AK
13782# Check whether --with-usrlibdir was given.
13783if test "${with_usrlibdir+set}" = set; then
13784 withval=$with_usrlibdir; usrlibdir="$withval"
13785else
13786 usrlibdir='${prefix}/lib'
13787fi
13788
13789
13790
13791# Check whether --with-usrsbindir was given.
13792if test "${with_usrsbindir+set}" = set; then
13793 withval=$with_usrsbindir; usrsbindir="$withval"
13794else
13795 usrsbindir='${prefix}/sbin'
13796fi
13797
13798
a5f46f6a
AK
13799################################################################################
13800
13801# Check whether --with-udev_prefix was given.
13802if test "${with_udev_prefix+set}" = set; then
13803 withval=$with_udev_prefix; udev_prefix="$withval"
13804else
13805 udev_prefix='${exec_prefix}'
13806fi
13807
13808
78ce7acc
AK
13809
13810# Check whether --with-udevdir was given.
13811if test "${with_udevdir+set}" = set; then
13812 withval=$with_udevdir; udevdir="$withval"
13813else
13814 udevdir='${udev_prefix}/lib/udev/rules.d'
13815fi
13816
a5f46f6a 13817
ad6254c5
AK
13818################################################################################
13819if test x$READLINE = xyes; then
13820
13821
13822for ac_header in readline/readline.h readline/history.h
13823do
ec6a6fbe 13824as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 13825if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
13826 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13827$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 13828if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 13829 $as_echo_n "(cached) " >&6
ad6254c5 13830fi
ec6a6fbe
AK
13831ac_res=`eval 'as_val=${'$as_ac_Header'}
13832 $as_echo "$as_val"'`
13833 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13834$as_echo "$ac_res" >&6; }
ad6254c5
AK
13835else
13836 # Is the header compilable?
ec6a6fbe
AK
13837{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13838$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 13839cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
13840/* confdefs.h. */
13841_ACEOF
13842cat confdefs.h >>conftest.$ac_ext
13843cat >>conftest.$ac_ext <<_ACEOF
13844/* end confdefs.h. */
13845$ac_includes_default
13846#include <$ac_header>
13847_ACEOF
13848rm -f conftest.$ac_objext
7a197a62
AK
13849if { (ac_try="$ac_compile"
13850case "(($ac_try" in
13851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13852 *) ac_try_echo=$ac_try;;
13853esac
ec6a6fbe
AK
13854eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13855$as_echo "$ac_try_echo") >&5
7a197a62 13856 (eval "$ac_compile") 2>conftest.er1
ad6254c5 13857 ac_status=$?
8a2fc586
AK
13858 grep -v '^ *+' conftest.er1 >conftest.err
13859 rm -f conftest.er1
13860 cat conftest.err >&5
ec6a6fbe 13861 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
13862 (exit $ac_status); } && {
13863 test -z "$ac_c_werror_flag" ||
13864 test ! -s conftest.err
13865 } && test -s conftest.$ac_objext; then
ad6254c5
AK
13866 ac_header_compiler=yes
13867else
ec6a6fbe 13868 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
13869sed 's/^/| /' conftest.$ac_ext >&5
13870
7a197a62 13871 ac_header_compiler=no
ad6254c5 13872fi
7a197a62
AK
13873
13874rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
13875{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13876$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
13877
13878# Is the header present?
ec6a6fbe
AK
13879{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13880$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 13881cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
13882/* confdefs.h. */
13883_ACEOF
13884cat confdefs.h >>conftest.$ac_ext
13885cat >>conftest.$ac_ext <<_ACEOF
13886/* end confdefs.h. */
13887#include <$ac_header>
13888_ACEOF
7a197a62
AK
13889if { (ac_try="$ac_cpp conftest.$ac_ext"
13890case "(($ac_try" in
13891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13892 *) ac_try_echo=$ac_try;;
13893esac
ec6a6fbe
AK
13894eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13895$as_echo "$ac_try_echo") >&5
7a197a62 13896 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
13897 ac_status=$?
13898 grep -v '^ *+' conftest.er1 >conftest.err
13899 rm -f conftest.er1
13900 cat conftest.err >&5
ec6a6fbe 13901 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
13902 (exit $ac_status); } >/dev/null && {
13903 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13904 test ! -s conftest.err
13905 }; then
ad6254c5
AK
13906 ac_header_preproc=yes
13907else
ec6a6fbe 13908 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
13909sed 's/^/| /' conftest.$ac_ext >&5
13910
13911 ac_header_preproc=no
13912fi
7a197a62 13913
ad6254c5 13914rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
13915{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13916$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
13917
13918# So? What about this header?
8a2fc586
AK
13919case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13920 yes:no: )
ec6a6fbe
AK
13921 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13922$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13923 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13924$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 13925 ac_header_preproc=yes
ad6254c5 13926 ;;
8a2fc586 13927 no:yes:* )
ec6a6fbe
AK
13928 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13929$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13930 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13931$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13932 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13933$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13934 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13935$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13936 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13937$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13938 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13939$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 13940
ad6254c5
AK
13941 ;;
13942esac
ec6a6fbe
AK
13943{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13944$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 13945if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 13946 $as_echo_n "(cached) " >&6
ad6254c5 13947else
8a2fc586 13948 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 13949fi
ec6a6fbe
AK
13950ac_res=`eval 'as_val=${'$as_ac_Header'}
13951 $as_echo "$as_val"'`
13952 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13953$as_echo "$ac_res" >&6; }
ad6254c5
AK
13954
13955fi
ec6a6fbe
AK
13956as_val=`eval 'as_val=${'$as_ac_Header'}
13957 $as_echo "$as_val"'`
13958 if test "x$as_val" = x""yes; then
ad6254c5 13959 cat >>confdefs.h <<_ACEOF
ec6a6fbe 13960#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
13961_ACEOF
13962
13963else
ec6a6fbe
AK
13964 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
13965$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5
AK
13966 { (exit 1); exit 1; }; }
13967fi
13968
13969done
13970
13971fi
13972
5c7fc7c4 13973if test x$CLVMD != xnone; then
ad6254c5
AK
13974
13975
13976
13977
13978
13979
13980
13981
13982
13983
13984for 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
13985do
ec6a6fbe 13986as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 13987if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
13988 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13989$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 13990if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 13991 $as_echo_n "(cached) " >&6
ad6254c5 13992fi
ec6a6fbe
AK
13993ac_res=`eval 'as_val=${'$as_ac_Header'}
13994 $as_echo "$as_val"'`
13995 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13996$as_echo "$ac_res" >&6; }
ad6254c5
AK
13997else
13998 # Is the header compilable?
ec6a6fbe
AK
13999{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14000$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 14001cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14002/* confdefs.h. */
14003_ACEOF
14004cat confdefs.h >>conftest.$ac_ext
14005cat >>conftest.$ac_ext <<_ACEOF
14006/* end confdefs.h. */
14007$ac_includes_default
14008#include <$ac_header>
14009_ACEOF
14010rm -f conftest.$ac_objext
7a197a62
AK
14011if { (ac_try="$ac_compile"
14012case "(($ac_try" in
14013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14014 *) ac_try_echo=$ac_try;;
14015esac
ec6a6fbe
AK
14016eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14017$as_echo "$ac_try_echo") >&5
7a197a62 14018 (eval "$ac_compile") 2>conftest.er1
ad6254c5 14019 ac_status=$?
8a2fc586
AK
14020 grep -v '^ *+' conftest.er1 >conftest.err
14021 rm -f conftest.er1
14022 cat conftest.err >&5
ec6a6fbe 14023 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14024 (exit $ac_status); } && {
14025 test -z "$ac_c_werror_flag" ||
14026 test ! -s conftest.err
14027 } && test -s conftest.$ac_objext; then
ad6254c5
AK
14028 ac_header_compiler=yes
14029else
ec6a6fbe 14030 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14031sed 's/^/| /' conftest.$ac_ext >&5
14032
7a197a62 14033 ac_header_compiler=no
ad6254c5 14034fi
7a197a62
AK
14035
14036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
14037{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14038$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
14039
14040# Is the header present?
ec6a6fbe
AK
14041{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14042$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 14043cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14044/* confdefs.h. */
14045_ACEOF
14046cat confdefs.h >>conftest.$ac_ext
14047cat >>conftest.$ac_ext <<_ACEOF
14048/* end confdefs.h. */
14049#include <$ac_header>
14050_ACEOF
7a197a62
AK
14051if { (ac_try="$ac_cpp conftest.$ac_ext"
14052case "(($ac_try" in
14053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14054 *) ac_try_echo=$ac_try;;
14055esac
ec6a6fbe
AK
14056eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14057$as_echo "$ac_try_echo") >&5
7a197a62 14058 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
14059 ac_status=$?
14060 grep -v '^ *+' conftest.er1 >conftest.err
14061 rm -f conftest.er1
14062 cat conftest.err >&5
ec6a6fbe 14063 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14064 (exit $ac_status); } >/dev/null && {
14065 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14066 test ! -s conftest.err
14067 }; then
ad6254c5
AK
14068 ac_header_preproc=yes
14069else
ec6a6fbe 14070 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14071sed 's/^/| /' conftest.$ac_ext >&5
14072
14073 ac_header_preproc=no
14074fi
7a197a62 14075
ad6254c5 14076rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
14077{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14078$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
14079
14080# So? What about this header?
8a2fc586
AK
14081case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14082 yes:no: )
ec6a6fbe
AK
14083 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14084$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14085 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14086$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 14087 ac_header_preproc=yes
ad6254c5 14088 ;;
8a2fc586 14089 no:yes:* )
ec6a6fbe
AK
14090 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14091$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14092 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14093$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14094 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14095$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14096 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14097$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14098 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14099$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14100 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14101$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 14102
ad6254c5
AK
14103 ;;
14104esac
ec6a6fbe
AK
14105{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14106$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 14107if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 14108 $as_echo_n "(cached) " >&6
ad6254c5 14109else
8a2fc586 14110 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 14111fi
ec6a6fbe
AK
14112ac_res=`eval 'as_val=${'$as_ac_Header'}
14113 $as_echo "$as_val"'`
14114 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14115$as_echo "$ac_res" >&6; }
ad6254c5
AK
14116
14117fi
ec6a6fbe
AK
14118as_val=`eval 'as_val=${'$as_ac_Header'}
14119 $as_echo "$as_val"'`
14120 if test "x$as_val" = x""yes; then
ad6254c5 14121 cat >>confdefs.h <<_ACEOF
ec6a6fbe 14122#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
14123_ACEOF
14124
14125else
ec6a6fbe
AK
14126 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
14127$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 14128 { (exit 1); exit 1; }; }
795ca3e5
AK
14129fi
14130
ad6254c5
AK
14131done
14132
14133
795ca3e5 14134
8106cdd5 14135
ad6254c5
AK
14136
14137
14138for ac_func in dup2 getmntent memmove select socket
14139do
ec6a6fbe
AK
14140as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14141{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14142$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 14143if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 14144 $as_echo_n "(cached) " >&6
795ca3e5 14145else
ad6254c5 14146 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14147/* confdefs.h. */
14148_ACEOF
14149cat confdefs.h >>conftest.$ac_ext
14150cat >>conftest.$ac_ext <<_ACEOF
14151/* end confdefs.h. */
8a2fc586
AK
14152/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14153 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14154#define $ac_func innocuous_$ac_func
14155
795ca3e5 14156/* System header to define __stub macros and hopefully few prototypes,
ad6254c5
AK
14157 which can conflict with char $ac_func (); below.
14158 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14159 <limits.h> exists even on freestanding compilers. */
8a2fc586 14160
ad6254c5
AK
14161#ifdef __STDC__
14162# include <limits.h>
14163#else
14164# include <assert.h>
14165#endif
8a2fc586
AK
14166
14167#undef $ac_func
14168
7a197a62
AK
14169/* Override any GCC internal prototype to avoid an error.
14170 Use char because int might match the return type of a GCC
14171 builtin and then its argument prototype would still apply. */
ad6254c5
AK
14172#ifdef __cplusplus
14173extern "C"
ad6254c5 14174#endif
ad6254c5 14175char $ac_func ();
795ca3e5
AK
14176/* The GNU C library defines this for functions which it implements
14177 to always fail with ENOSYS. Some functions are actually named
14178 something starting with __ and the normal name is an alias. */
7a197a62 14179#if defined __stub_$ac_func || defined __stub___$ac_func
795ca3e5 14180choke me
795ca3e5
AK
14181#endif
14182
ad6254c5
AK
14183int
14184main ()
14185{
7a197a62 14186return $ac_func ();
ad6254c5
AK
14187 ;
14188 return 0;
14189}
14190_ACEOF
14191rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
14192if { (ac_try="$ac_link"
14193case "(($ac_try" in
14194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14195 *) ac_try_echo=$ac_try;;
14196esac
ec6a6fbe
AK
14197eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14198$as_echo "$ac_try_echo") >&5
7a197a62 14199 (eval "$ac_link") 2>conftest.er1
ad6254c5 14200 ac_status=$?
8a2fc586
AK
14201 grep -v '^ *+' conftest.er1 >conftest.err
14202 rm -f conftest.er1
14203 cat conftest.err >&5
ec6a6fbe 14204 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14205 (exit $ac_status); } && {
14206 test -z "$ac_c_werror_flag" ||
14207 test ! -s conftest.err
ec6a6fbe
AK
14208 } && test -s conftest$ac_exeext && {
14209 test "$cross_compiling" = yes ||
14210 $as_test_x conftest$ac_exeext
14211 }; then
ad6254c5 14212 eval "$as_ac_var=yes"
795ca3e5 14213else
ec6a6fbe 14214 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14215sed 's/^/| /' conftest.$ac_ext >&5
14216
7a197a62 14217 eval "$as_ac_var=no"
80992638 14218fi
7a197a62 14219
ec6a6fbe 14220rm -rf conftest.dSYM
25fbec5b 14221rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 14222 conftest$ac_exeext conftest.$ac_ext
795ca3e5 14223fi
ec6a6fbe
AK
14224ac_res=`eval 'as_val=${'$as_ac_var'}
14225 $as_echo "$as_val"'`
14226 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14227$as_echo "$ac_res" >&6; }
14228as_val=`eval 'as_val=${'$as_ac_var'}
14229 $as_echo "$as_val"'`
14230 if test "x$as_val" = x""yes; then
ad6254c5 14231 cat >>confdefs.h <<_ACEOF
ec6a6fbe 14232#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5 14233_ACEOF
80992638
AK
14234
14235else
ec6a6fbe
AK
14236 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
14237$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 14238 { (exit 1); exit 1; }; }
8106cdd5 14239fi
ad6254c5 14240done
795ca3e5 14241
25fbec5b
AK
14242 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
14243# -lseq on Dynix/PTX, -lgen on Unixware.
ec6a6fbe
AK
14244{ $as_echo "$as_me:$LINENO: checking for library containing getmntent" >&5
14245$as_echo_n "checking for library containing getmntent... " >&6; }
25fbec5b 14246if test "${ac_cv_search_getmntent+set}" = set; then
ec6a6fbe 14247 $as_echo_n "(cached) " >&6
25fbec5b
AK
14248else
14249 ac_func_search_save_LIBS=$LIBS
14250cat >conftest.$ac_ext <<_ACEOF
14251/* confdefs.h. */
14252_ACEOF
14253cat confdefs.h >>conftest.$ac_ext
14254cat >>conftest.$ac_ext <<_ACEOF
14255/* end confdefs.h. */
80992638 14256
7a197a62
AK
14257/* Override any GCC internal prototype to avoid an error.
14258 Use char because int might match the return type of a GCC
ad6254c5 14259 builtin and then its argument prototype would still apply. */
ad6254c5
AK
14260#ifdef __cplusplus
14261extern "C"
14262#endif
25fbec5b 14263char getmntent ();
ad6254c5
AK
14264int
14265main ()
14266{
25fbec5b 14267return getmntent ();
ad6254c5
AK
14268 ;
14269 return 0;
14270}
14271_ACEOF
25fbec5b
AK
14272for ac_lib in '' sun seq gen; do
14273 if test -z "$ac_lib"; then
14274 ac_res="none required"
14275 else
14276 ac_res=-l$ac_lib
14277 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14278 fi
14279 rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
14280if { (ac_try="$ac_link"
14281case "(($ac_try" in
14282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14283 *) ac_try_echo=$ac_try;;
14284esac
ec6a6fbe
AK
14285eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14286$as_echo "$ac_try_echo") >&5
7a197a62 14287 (eval "$ac_link") 2>conftest.er1
ad6254c5 14288 ac_status=$?
8a2fc586
AK
14289 grep -v '^ *+' conftest.er1 >conftest.err
14290 rm -f conftest.er1
14291 cat conftest.err >&5
ec6a6fbe 14292 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14293 (exit $ac_status); } && {
14294 test -z "$ac_c_werror_flag" ||
14295 test ! -s conftest.err
ec6a6fbe
AK
14296 } && test -s conftest$ac_exeext && {
14297 test "$cross_compiling" = yes ||
14298 $as_test_x conftest$ac_exeext
14299 }; then
25fbec5b 14300 ac_cv_search_getmntent=$ac_res
80992638 14301else
ec6a6fbe 14302 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14303sed 's/^/| /' conftest.$ac_ext >&5
14304
25fbec5b 14305
795ca3e5
AK
14306fi
14307
ec6a6fbe 14308rm -rf conftest.dSYM
25fbec5b
AK
14309rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14310 conftest$ac_exeext
14311 if test "${ac_cv_search_getmntent+set}" = set; then
14312 break
795ca3e5 14313fi
25fbec5b
AK
14314done
14315if test "${ac_cv_search_getmntent+set}" = set; then
14316 :
14317else
14318 ac_cv_search_getmntent=no
14319fi
14320rm conftest.$ac_ext
14321LIBS=$ac_func_search_save_LIBS
14322fi
ec6a6fbe
AK
14323{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
14324$as_echo "$ac_cv_search_getmntent" >&6; }
25fbec5b
AK
14325ac_res=$ac_cv_search_getmntent
14326if test "$ac_res" != no; then
14327 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14328 ac_cv_func_getmntent=yes
14329
14330cat >>confdefs.h <<\_ACEOF
9c961554 14331#define HAVE_GETMNTENT 1
ad6254c5 14332_ACEOF
795ca3e5 14333
25fbec5b
AK
14334else
14335 ac_cv_func_getmntent=no
795ca3e5 14336fi
795ca3e5
AK
14337
14338
ad6254c5
AK
14339# AC_FUNC_REALLOC
14340
14341
14342for ac_header in sys/select.h sys/socket.h
14343do
ec6a6fbe 14344as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 14345if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
14346 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14347$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 14348if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 14349 $as_echo_n "(cached) " >&6
ad6254c5 14350fi
ec6a6fbe
AK
14351ac_res=`eval 'as_val=${'$as_ac_Header'}
14352 $as_echo "$as_val"'`
14353 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14354$as_echo "$ac_res" >&6; }
795ca3e5 14355else
ad6254c5 14356 # Is the header compilable?
ec6a6fbe
AK
14357{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14358$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 14359cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14360/* confdefs.h. */
14361_ACEOF
14362cat confdefs.h >>conftest.$ac_ext
14363cat >>conftest.$ac_ext <<_ACEOF
14364/* end confdefs.h. */
14365$ac_includes_default
14366#include <$ac_header>
14367_ACEOF
14368rm -f conftest.$ac_objext
7a197a62
AK
14369if { (ac_try="$ac_compile"
14370case "(($ac_try" in
14371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14372 *) ac_try_echo=$ac_try;;
14373esac
ec6a6fbe
AK
14374eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14375$as_echo "$ac_try_echo") >&5
7a197a62 14376 (eval "$ac_compile") 2>conftest.er1
ad6254c5 14377 ac_status=$?
8a2fc586
AK
14378 grep -v '^ *+' conftest.er1 >conftest.err
14379 rm -f conftest.er1
14380 cat conftest.err >&5
ec6a6fbe 14381 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14382 (exit $ac_status); } && {
14383 test -z "$ac_c_werror_flag" ||
14384 test ! -s conftest.err
14385 } && test -s conftest.$ac_objext; then
ad6254c5 14386 ac_header_compiler=yes
80992638 14387else
ec6a6fbe 14388 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14389sed 's/^/| /' conftest.$ac_ext >&5
14390
7a197a62 14391 ac_header_compiler=no
ad6254c5 14392fi
7a197a62
AK
14393
14394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
14395{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14396$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
14397
14398# Is the header present?
ec6a6fbe
AK
14399{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14400$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 14401cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14402/* confdefs.h. */
14403_ACEOF
14404cat confdefs.h >>conftest.$ac_ext
14405cat >>conftest.$ac_ext <<_ACEOF
14406/* end confdefs.h. */
14407#include <$ac_header>
14408_ACEOF
7a197a62
AK
14409if { (ac_try="$ac_cpp conftest.$ac_ext"
14410case "(($ac_try" in
14411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14412 *) ac_try_echo=$ac_try;;
14413esac
ec6a6fbe
AK
14414eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14415$as_echo "$ac_try_echo") >&5
7a197a62 14416 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
14417 ac_status=$?
14418 grep -v '^ *+' conftest.er1 >conftest.err
14419 rm -f conftest.er1
14420 cat conftest.err >&5
ec6a6fbe 14421 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14422 (exit $ac_status); } >/dev/null && {
14423 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14424 test ! -s conftest.err
14425 }; then
ad6254c5
AK
14426 ac_header_preproc=yes
14427else
ec6a6fbe 14428 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14429sed 's/^/| /' conftest.$ac_ext >&5
14430
14431 ac_header_preproc=no
14432fi
7a197a62 14433
ad6254c5 14434rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
14435{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14436$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
14437
14438# So? What about this header?
8a2fc586
AK
14439case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14440 yes:no: )
ec6a6fbe
AK
14441 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14442$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14443 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14444$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 14445 ac_header_preproc=yes
ad6254c5 14446 ;;
8a2fc586 14447 no:yes:* )
ec6a6fbe
AK
14448 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14449$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14450 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14451$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14452 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14453$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14454 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14455$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14456 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14457$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14458 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14459$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 14460
ad6254c5
AK
14461 ;;
14462esac
ec6a6fbe
AK
14463{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14464$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 14465if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 14466 $as_echo_n "(cached) " >&6
ad6254c5 14467else
8a2fc586 14468 eval "$as_ac_Header=\$ac_header_preproc"
8106cdd5 14469fi
ec6a6fbe
AK
14470ac_res=`eval 'as_val=${'$as_ac_Header'}
14471 $as_echo "$as_val"'`
14472 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14473$as_echo "$ac_res" >&6; }
8106cdd5 14474
795ca3e5 14475fi
ec6a6fbe
AK
14476as_val=`eval 'as_val=${'$as_ac_Header'}
14477 $as_echo "$as_val"'`
14478 if test "x$as_val" = x""yes; then
ad6254c5 14479 cat >>confdefs.h <<_ACEOF
ec6a6fbe 14480#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
14481_ACEOF
14482
795ca3e5
AK
14483fi
14484
ad6254c5
AK
14485done
14486
ec6a6fbe
AK
14487{ $as_echo "$as_me:$LINENO: checking types of arguments for select" >&5
14488$as_echo_n "checking types of arguments for select... " >&6; }
ad6254c5 14489if test "${ac_cv_func_select_args+set}" = set; then
ec6a6fbe 14490 $as_echo_n "(cached) " >&6
26e7f2e0 14491else
ad6254c5 14492 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
7a197a62 14493 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
ad6254c5
AK
14494 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
14495 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14496/* confdefs.h. */
14497_ACEOF
14498cat confdefs.h >>conftest.$ac_ext
14499cat >>conftest.$ac_ext <<_ACEOF
14500/* end confdefs.h. */
14501$ac_includes_default
25fbec5b 14502#ifdef HAVE_SYS_SELECT_H
ad6254c5
AK
14503# include <sys/select.h>
14504#endif
25fbec5b 14505#ifdef HAVE_SYS_SOCKET_H
ad6254c5
AK
14506# include <sys/socket.h>
14507#endif
14508
14509int
14510main ()
14511{
14512extern int select ($ac_arg1,
8a2fc586
AK
14513 $ac_arg234, $ac_arg234, $ac_arg234,
14514 $ac_arg5);
ad6254c5
AK
14515 ;
14516 return 0;
14517}
14518_ACEOF
14519rm -f conftest.$ac_objext
7a197a62
AK
14520if { (ac_try="$ac_compile"
14521case "(($ac_try" in
14522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14523 *) ac_try_echo=$ac_try;;
14524esac
ec6a6fbe
AK
14525eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14526$as_echo "$ac_try_echo") >&5
7a197a62 14527 (eval "$ac_compile") 2>conftest.er1
ad6254c5 14528 ac_status=$?
8a2fc586
AK
14529 grep -v '^ *+' conftest.er1 >conftest.err
14530 rm -f conftest.er1
14531 cat conftest.err >&5
ec6a6fbe 14532 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14533 (exit $ac_status); } && {
14534 test -z "$ac_c_werror_flag" ||
14535 test ! -s conftest.err
14536 } && test -s conftest.$ac_objext; then
ad6254c5
AK
14537 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
14538else
ec6a6fbe 14539 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14540sed 's/^/| /' conftest.$ac_ext >&5
14541
7a197a62 14542
ad6254c5 14543fi
7a197a62
AK
14544
14545rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
14546 done
14547 done
14548done
14549# Provide a safe default value.
14550: ${ac_cv_func_select_args='int,int *,struct timeval *'}
14551
26e7f2e0 14552fi
ec6a6fbe
AK
14553{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
14554$as_echo "$ac_cv_func_select_args" >&6; }
ad6254c5
AK
14555ac_save_IFS=$IFS; IFS=','
14556set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
14557IFS=$ac_save_IFS
14558shift
14559
14560cat >>confdefs.h <<_ACEOF
14561#define SELECT_TYPE_ARG1 $1
14562_ACEOF
14563
14564
14565cat >>confdefs.h <<_ACEOF
14566#define SELECT_TYPE_ARG234 ($2)
14567_ACEOF
14568
14569
14570cat >>confdefs.h <<_ACEOF
14571#define SELECT_TYPE_ARG5 ($3)
14572_ACEOF
14573
80992638 14574rm -f conftest*
80992638 14575
8106cdd5 14576fi
ad6254c5 14577
ad6254c5
AK
14578if test x$CLUSTER != xnone; then
14579
14580
14581for ac_header in sys/socket.h sys/un.h
b896caa1 14582do
ec6a6fbe 14583as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 14584if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
14585 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14586$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 14587if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 14588 $as_echo_n "(cached) " >&6
ad6254c5 14589fi
ec6a6fbe
AK
14590ac_res=`eval 'as_val=${'$as_ac_Header'}
14591 $as_echo "$as_val"'`
14592 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14593$as_echo "$ac_res" >&6; }
ad6254c5
AK
14594else
14595 # Is the header compilable?
ec6a6fbe
AK
14596{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14597$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 14598cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14599/* confdefs.h. */
14600_ACEOF
14601cat confdefs.h >>conftest.$ac_ext
14602cat >>conftest.$ac_ext <<_ACEOF
14603/* end confdefs.h. */
14604$ac_includes_default
14605#include <$ac_header>
14606_ACEOF
14607rm -f conftest.$ac_objext
7a197a62
AK
14608if { (ac_try="$ac_compile"
14609case "(($ac_try" in
14610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14611 *) ac_try_echo=$ac_try;;
14612esac
ec6a6fbe
AK
14613eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14614$as_echo "$ac_try_echo") >&5
7a197a62 14615 (eval "$ac_compile") 2>conftest.er1
ad6254c5 14616 ac_status=$?
8a2fc586
AK
14617 grep -v '^ *+' conftest.er1 >conftest.err
14618 rm -f conftest.er1
14619 cat conftest.err >&5
ec6a6fbe 14620 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14621 (exit $ac_status); } && {
14622 test -z "$ac_c_werror_flag" ||
14623 test ! -s conftest.err
14624 } && test -s conftest.$ac_objext; then
ad6254c5
AK
14625 ac_header_compiler=yes
14626else
ec6a6fbe 14627 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14628sed 's/^/| /' conftest.$ac_ext >&5
14629
7a197a62 14630 ac_header_compiler=no
ad6254c5 14631fi
7a197a62
AK
14632
14633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
14634{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14635$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
14636
14637# Is the header present?
ec6a6fbe
AK
14638{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14639$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 14640cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14641/* confdefs.h. */
14642_ACEOF
14643cat confdefs.h >>conftest.$ac_ext
14644cat >>conftest.$ac_ext <<_ACEOF
14645/* end confdefs.h. */
14646#include <$ac_header>
14647_ACEOF
7a197a62
AK
14648if { (ac_try="$ac_cpp conftest.$ac_ext"
14649case "(($ac_try" in
14650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14651 *) ac_try_echo=$ac_try;;
14652esac
ec6a6fbe
AK
14653eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14654$as_echo "$ac_try_echo") >&5
7a197a62 14655 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
14656 ac_status=$?
14657 grep -v '^ *+' conftest.er1 >conftest.err
14658 rm -f conftest.er1
14659 cat conftest.err >&5
ec6a6fbe 14660 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14661 (exit $ac_status); } >/dev/null && {
14662 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14663 test ! -s conftest.err
14664 }; then
ad6254c5
AK
14665 ac_header_preproc=yes
14666else
ec6a6fbe 14667 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14668sed 's/^/| /' conftest.$ac_ext >&5
14669
14670 ac_header_preproc=no
14671fi
7a197a62 14672
ad6254c5 14673rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
14674{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14675$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
14676
14677# So? What about this header?
8a2fc586
AK
14678case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14679 yes:no: )
ec6a6fbe
AK
14680 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14681$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14682 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14683$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 14684 ac_header_preproc=yes
ad6254c5 14685 ;;
8a2fc586 14686 no:yes:* )
ec6a6fbe
AK
14687 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14688$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14689 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14690$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14691 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14692$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14693 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14694$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14695 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14696$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14697 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14698$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 14699
ad6254c5
AK
14700 ;;
14701esac
ec6a6fbe
AK
14702{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14703$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 14704if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 14705 $as_echo_n "(cached) " >&6
ad6254c5 14706else
8a2fc586 14707 eval "$as_ac_Header=\$ac_header_preproc"
b896caa1 14708fi
ec6a6fbe
AK
14709ac_res=`eval 'as_val=${'$as_ac_Header'}
14710 $as_echo "$as_val"'`
14711 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14712$as_echo "$ac_res" >&6; }
ad6254c5
AK
14713
14714fi
ec6a6fbe
AK
14715as_val=`eval 'as_val=${'$as_ac_Header'}
14716 $as_echo "$as_val"'`
14717 if test "x$as_val" = x""yes; then
ad6254c5 14718 cat >>confdefs.h <<_ACEOF
ec6a6fbe 14719#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
14720_ACEOF
14721
80992638 14722else
ec6a6fbe
AK
14723 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
14724$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 14725 { (exit 1); exit 1; }; }
b896caa1 14726fi
ad6254c5 14727
b896caa1
AK
14728done
14729
14730
ad6254c5
AK
14731for ac_func in socket
14732do
ec6a6fbe
AK
14733as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14734{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14735$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 14736if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 14737 $as_echo_n "(cached) " >&6
795ca3e5 14738else
ad6254c5 14739 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14740/* confdefs.h. */
14741_ACEOF
14742cat confdefs.h >>conftest.$ac_ext
14743cat >>conftest.$ac_ext <<_ACEOF
14744/* end confdefs.h. */
8a2fc586
AK
14745/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14746 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14747#define $ac_func innocuous_$ac_func
14748
ad6254c5
AK
14749/* System header to define __stub macros and hopefully few prototypes,
14750 which can conflict with char $ac_func (); below.
14751 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14752 <limits.h> exists even on freestanding compilers. */
8a2fc586 14753
ad6254c5
AK
14754#ifdef __STDC__
14755# include <limits.h>
14756#else
14757# include <assert.h>
14758#endif
8a2fc586
AK
14759
14760#undef $ac_func
14761
7a197a62
AK
14762/* Override any GCC internal prototype to avoid an error.
14763 Use char because int might match the return type of a GCC
14764 builtin and then its argument prototype would still apply. */
ad6254c5
AK
14765#ifdef __cplusplus
14766extern "C"
ad6254c5 14767#endif
ad6254c5
AK
14768char $ac_func ();
14769/* The GNU C library defines this for functions which it implements
14770 to always fail with ENOSYS. Some functions are actually named
14771 something starting with __ and the normal name is an alias. */
7a197a62 14772#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 14773choke me
ad6254c5
AK
14774#endif
14775
14776int
14777main ()
14778{
7a197a62 14779return $ac_func ();
ad6254c5
AK
14780 ;
14781 return 0;
14782}
14783_ACEOF
14784rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
14785if { (ac_try="$ac_link"
14786case "(($ac_try" in
14787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14788 *) ac_try_echo=$ac_try;;
14789esac
ec6a6fbe
AK
14790eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14791$as_echo "$ac_try_echo") >&5
7a197a62 14792 (eval "$ac_link") 2>conftest.er1
ad6254c5 14793 ac_status=$?
8a2fc586
AK
14794 grep -v '^ *+' conftest.er1 >conftest.err
14795 rm -f conftest.er1
14796 cat conftest.err >&5
ec6a6fbe 14797 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14798 (exit $ac_status); } && {
14799 test -z "$ac_c_werror_flag" ||
14800 test ! -s conftest.err
ec6a6fbe
AK
14801 } && test -s conftest$ac_exeext && {
14802 test "$cross_compiling" = yes ||
14803 $as_test_x conftest$ac_exeext
14804 }; then
ad6254c5
AK
14805 eval "$as_ac_var=yes"
14806else
ec6a6fbe 14807 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14808sed 's/^/| /' conftest.$ac_ext >&5
14809
7a197a62 14810 eval "$as_ac_var=no"
ad6254c5 14811fi
7a197a62 14812
ec6a6fbe 14813rm -rf conftest.dSYM
25fbec5b 14814rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 14815 conftest$ac_exeext conftest.$ac_ext
ad6254c5 14816fi
ec6a6fbe
AK
14817ac_res=`eval 'as_val=${'$as_ac_var'}
14818 $as_echo "$as_val"'`
14819 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14820$as_echo "$ac_res" >&6; }
14821as_val=`eval 'as_val=${'$as_ac_var'}
14822 $as_echo "$as_val"'`
14823 if test "x$as_val" = x""yes; then
ad6254c5 14824 cat >>confdefs.h <<_ACEOF
ec6a6fbe 14825#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
14826_ACEOF
14827
14828else
ec6a6fbe
AK
14829 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
14830$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5
AK
14831 { (exit 1); exit 1; }; }
14832fi
14833done
14834
14835fi
14836
14837if test x$HAVE_LIBDL = xyes; then
14838
14839for ac_header in dlfcn.h
14840do
ec6a6fbe 14841as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 14842if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
14843 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14844$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 14845if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 14846 $as_echo_n "(cached) " >&6
ad6254c5 14847fi
ec6a6fbe
AK
14848ac_res=`eval 'as_val=${'$as_ac_Header'}
14849 $as_echo "$as_val"'`
14850 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14851$as_echo "$ac_res" >&6; }
ad6254c5
AK
14852else
14853 # Is the header compilable?
ec6a6fbe
AK
14854{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14855$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 14856cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14857/* confdefs.h. */
14858_ACEOF
14859cat confdefs.h >>conftest.$ac_ext
14860cat >>conftest.$ac_ext <<_ACEOF
14861/* end confdefs.h. */
14862$ac_includes_default
14863#include <$ac_header>
14864_ACEOF
14865rm -f conftest.$ac_objext
7a197a62
AK
14866if { (ac_try="$ac_compile"
14867case "(($ac_try" in
14868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14869 *) ac_try_echo=$ac_try;;
14870esac
ec6a6fbe
AK
14871eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14872$as_echo "$ac_try_echo") >&5
7a197a62 14873 (eval "$ac_compile") 2>conftest.er1
ad6254c5 14874 ac_status=$?
8a2fc586
AK
14875 grep -v '^ *+' conftest.er1 >conftest.err
14876 rm -f conftest.er1
14877 cat conftest.err >&5
ec6a6fbe 14878 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14879 (exit $ac_status); } && {
14880 test -z "$ac_c_werror_flag" ||
14881 test ! -s conftest.err
14882 } && test -s conftest.$ac_objext; then
ad6254c5
AK
14883 ac_header_compiler=yes
14884else
ec6a6fbe 14885 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14886sed 's/^/| /' conftest.$ac_ext >&5
14887
7a197a62 14888 ac_header_compiler=no
ad6254c5 14889fi
7a197a62
AK
14890
14891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
14892{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14893$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
14894
14895# Is the header present?
ec6a6fbe
AK
14896{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14897$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 14898cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14899/* confdefs.h. */
14900_ACEOF
14901cat confdefs.h >>conftest.$ac_ext
14902cat >>conftest.$ac_ext <<_ACEOF
14903/* end confdefs.h. */
14904#include <$ac_header>
14905_ACEOF
7a197a62
AK
14906if { (ac_try="$ac_cpp conftest.$ac_ext"
14907case "(($ac_try" in
14908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14909 *) ac_try_echo=$ac_try;;
14910esac
ec6a6fbe
AK
14911eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14912$as_echo "$ac_try_echo") >&5
7a197a62 14913 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
14914 ac_status=$?
14915 grep -v '^ *+' conftest.er1 >conftest.err
14916 rm -f conftest.er1
14917 cat conftest.err >&5
ec6a6fbe 14918 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14919 (exit $ac_status); } >/dev/null && {
14920 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14921 test ! -s conftest.err
14922 }; then
ad6254c5
AK
14923 ac_header_preproc=yes
14924else
ec6a6fbe 14925 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14926sed 's/^/| /' conftest.$ac_ext >&5
14927
14928 ac_header_preproc=no
14929fi
7a197a62 14930
ad6254c5 14931rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
14932{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14933$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
14934
14935# So? What about this header?
8a2fc586
AK
14936case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14937 yes:no: )
ec6a6fbe
AK
14938 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14939$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14940 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14941$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 14942 ac_header_preproc=yes
ad6254c5 14943 ;;
8a2fc586 14944 no:yes:* )
ec6a6fbe
AK
14945 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14946$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14947 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14948$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14949 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14950$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14951 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14952$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14953 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14954$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14955 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14956$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 14957
ad6254c5
AK
14958 ;;
14959esac
ec6a6fbe
AK
14960{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14961$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 14962if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 14963 $as_echo_n "(cached) " >&6
ad6254c5 14964else
8a2fc586 14965 eval "$as_ac_Header=\$ac_header_preproc"
795ca3e5 14966fi
ec6a6fbe
AK
14967ac_res=`eval 'as_val=${'$as_ac_Header'}
14968 $as_echo "$as_val"'`
14969 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14970$as_echo "$ac_res" >&6; }
80992638 14971
8106cdd5 14972fi
ec6a6fbe
AK
14973as_val=`eval 'as_val=${'$as_ac_Header'}
14974 $as_echo "$as_val"'`
14975 if test "x$as_val" = x""yes; then
ad6254c5 14976 cat >>confdefs.h <<_ACEOF
ec6a6fbe 14977#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 14978_ACEOF
795ca3e5
AK
14979
14980else
ec6a6fbe
AK
14981 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
14982$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 14983 { (exit 1); exit 1; }; }
795ca3e5
AK
14984fi
14985
ad6254c5 14986done
80992638 14987
ad6254c5 14988fi
80992638 14989
ad6254c5 14990if test x$INTL = xyes; then
83912faa 14991
ad6254c5
AK
14992for ac_header in libintl.h
14993do
ec6a6fbe 14994as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 14995if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
14996 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14997$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 14998if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 14999 $as_echo_n "(cached) " >&6
ad6254c5 15000fi
ec6a6fbe
AK
15001ac_res=`eval 'as_val=${'$as_ac_Header'}
15002 $as_echo "$as_val"'`
15003 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15004$as_echo "$ac_res" >&6; }
83912faa 15005else
ad6254c5 15006 # Is the header compilable?
ec6a6fbe
AK
15007{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15008$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 15009cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
15010/* confdefs.h. */
15011_ACEOF
15012cat confdefs.h >>conftest.$ac_ext
15013cat >>conftest.$ac_ext <<_ACEOF
15014/* end confdefs.h. */
15015$ac_includes_default
15016#include <$ac_header>
15017_ACEOF
15018rm -f conftest.$ac_objext
7a197a62
AK
15019if { (ac_try="$ac_compile"
15020case "(($ac_try" in
15021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15022 *) ac_try_echo=$ac_try;;
15023esac
ec6a6fbe
AK
15024eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15025$as_echo "$ac_try_echo") >&5
7a197a62 15026 (eval "$ac_compile") 2>conftest.er1
ad6254c5 15027 ac_status=$?
8a2fc586
AK
15028 grep -v '^ *+' conftest.er1 >conftest.err
15029 rm -f conftest.er1
15030 cat conftest.err >&5
ec6a6fbe 15031 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
15032 (exit $ac_status); } && {
15033 test -z "$ac_c_werror_flag" ||
15034 test ! -s conftest.err
15035 } && test -s conftest.$ac_objext; then
ad6254c5
AK
15036 ac_header_compiler=yes
15037else
ec6a6fbe 15038 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
15039sed 's/^/| /' conftest.$ac_ext >&5
15040
7a197a62 15041 ac_header_compiler=no
ad6254c5 15042fi
7a197a62
AK
15043
15044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
15045{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15046$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
15047
15048# Is the header present?
ec6a6fbe
AK
15049{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15050$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 15051cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
15052/* confdefs.h. */
15053_ACEOF
15054cat confdefs.h >>conftest.$ac_ext
15055cat >>conftest.$ac_ext <<_ACEOF
15056/* end confdefs.h. */
15057#include <$ac_header>
15058_ACEOF
7a197a62
AK
15059if { (ac_try="$ac_cpp conftest.$ac_ext"
15060case "(($ac_try" in
15061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15062 *) ac_try_echo=$ac_try;;
15063esac
ec6a6fbe
AK
15064eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15065$as_echo "$ac_try_echo") >&5
7a197a62 15066 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
15067 ac_status=$?
15068 grep -v '^ *+' conftest.er1 >conftest.err
15069 rm -f conftest.er1
15070 cat conftest.err >&5
ec6a6fbe 15071 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
15072 (exit $ac_status); } >/dev/null && {
15073 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15074 test ! -s conftest.err
15075 }; then
ad6254c5
AK
15076 ac_header_preproc=yes
15077else
ec6a6fbe 15078 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
15079sed 's/^/| /' conftest.$ac_ext >&5
15080
15081 ac_header_preproc=no
15082fi
7a197a62 15083
ad6254c5 15084rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
15085{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15086$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
15087
15088# So? What about this header?
8a2fc586
AK
15089case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15090 yes:no: )
ec6a6fbe
AK
15091 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15092$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15093 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15094$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 15095 ac_header_preproc=yes
ad6254c5 15096 ;;
8a2fc586 15097 no:yes:* )
ec6a6fbe
AK
15098 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15099$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15100 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15101$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15102 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15103$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15104 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15105$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15106 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15107$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15108 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15109$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 15110
ad6254c5
AK
15111 ;;
15112esac
ec6a6fbe
AK
15113{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15114$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 15115if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 15116 $as_echo_n "(cached) " >&6
80992638 15117else
8a2fc586 15118 eval "$as_ac_Header=\$ac_header_preproc"
83912faa 15119fi
ec6a6fbe
AK
15120ac_res=`eval 'as_val=${'$as_ac_Header'}
15121 $as_echo "$as_val"'`
15122 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15123$as_echo "$ac_res" >&6; }
83912faa 15124
69792976 15125fi
ec6a6fbe
AK
15126as_val=`eval 'as_val=${'$as_ac_Header'}
15127 $as_echo "$as_val"'`
15128 if test "x$as_val" = x""yes; then
ad6254c5 15129 cat >>confdefs.h <<_ACEOF
ec6a6fbe 15130#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 15131_ACEOF
69792976 15132
69792976 15133else
ec6a6fbe
AK
15134 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
15135$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 15136 { (exit 1); exit 1; }; }
80992638
AK
15137fi
15138
ad6254c5 15139done
69792976 15140
ad6254c5
AK
15141fi
15142
ad6254c5
AK
15143if test x$HAVE_SELINUX = xyes; then
15144
15145for ac_header in selinux/selinux.h
15146do
ec6a6fbe 15147as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 15148if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
15149 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15150$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 15151if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 15152 $as_echo_n "(cached) " >&6
ad6254c5 15153fi
ec6a6fbe
AK
15154ac_res=`eval 'as_val=${'$as_ac_Header'}
15155 $as_echo "$as_val"'`
15156 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15157$as_echo "$ac_res" >&6; }
4a7f3eb2 15158else
ad6254c5 15159 # Is the header compilable?
ec6a6fbe
AK
15160{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15161$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 15162cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
15163/* confdefs.h. */
15164_ACEOF
15165cat confdefs.h >>conftest.$ac_ext
15166cat >>conftest.$ac_ext <<_ACEOF
15167/* end confdefs.h. */
15168$ac_includes_default
15169#include <$ac_header>
15170_ACEOF
15171rm -f conftest.$ac_objext
7a197a62
AK
15172if { (ac_try="$ac_compile"
15173case "(($ac_try" in
15174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15175 *) ac_try_echo=$ac_try;;
15176esac
ec6a6fbe
AK
15177eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15178$as_echo "$ac_try_echo") >&5
7a197a62 15179 (eval "$ac_compile") 2>conftest.er1
ad6254c5 15180 ac_status=$?
8a2fc586
AK
15181 grep -v '^ *+' conftest.er1 >conftest.err
15182 rm -f conftest.er1
15183 cat conftest.err >&5
ec6a6fbe 15184 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
15185 (exit $ac_status); } && {
15186 test -z "$ac_c_werror_flag" ||
15187 test ! -s conftest.err
15188 } && test -s conftest.$ac_objext; then
ad6254c5
AK
15189 ac_header_compiler=yes
15190else
ec6a6fbe 15191 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
15192sed 's/^/| /' conftest.$ac_ext >&5
15193
7a197a62 15194 ac_header_compiler=no
ad6254c5 15195fi
7a197a62
AK
15196
15197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
15198{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15199$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
15200
15201# Is the header present?
ec6a6fbe
AK
15202{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15203$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 15204cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
15205/* confdefs.h. */
15206_ACEOF
15207cat confdefs.h >>conftest.$ac_ext
15208cat >>conftest.$ac_ext <<_ACEOF
15209/* end confdefs.h. */
15210#include <$ac_header>
15211_ACEOF
7a197a62
AK
15212if { (ac_try="$ac_cpp conftest.$ac_ext"
15213case "(($ac_try" in
15214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15215 *) ac_try_echo=$ac_try;;
15216esac
ec6a6fbe
AK
15217eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15218$as_echo "$ac_try_echo") >&5
7a197a62 15219 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
15220 ac_status=$?
15221 grep -v '^ *+' conftest.er1 >conftest.err
15222 rm -f conftest.er1
15223 cat conftest.err >&5
ec6a6fbe 15224 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
15225 (exit $ac_status); } >/dev/null && {
15226 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15227 test ! -s conftest.err
15228 }; then
ad6254c5
AK
15229 ac_header_preproc=yes
15230else
ec6a6fbe 15231 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
15232sed 's/^/| /' conftest.$ac_ext >&5
15233
15234 ac_header_preproc=no
15235fi
7a197a62 15236
ad6254c5 15237rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
15238{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15239$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
15240
15241# So? What about this header?
8a2fc586
AK
15242case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15243 yes:no: )
ec6a6fbe
AK
15244 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15245$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15246 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15247$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 15248 ac_header_preproc=yes
ad6254c5 15249 ;;
8a2fc586 15250 no:yes:* )
ec6a6fbe
AK
15251 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15252$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15253 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15254$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15255 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15256$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15257 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15258$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15259 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15260$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15261 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15262$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 15263
ad6254c5
AK
15264 ;;
15265esac
ec6a6fbe
AK
15266{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15267$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 15268if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 15269 $as_echo_n "(cached) " >&6
ad6254c5 15270else
8a2fc586 15271 eval "$as_ac_Header=\$ac_header_preproc"
80992638 15272fi
ec6a6fbe
AK
15273ac_res=`eval 'as_val=${'$as_ac_Header'}
15274 $as_echo "$as_val"'`
15275 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15276$as_echo "$ac_res" >&6; }
4a7f3eb2 15277
ad6254c5 15278fi
ec6a6fbe
AK
15279as_val=`eval 'as_val=${'$as_ac_Header'}
15280 $as_echo "$as_val"'`
15281 if test "x$as_val" = x""yes; then
ad6254c5 15282 cat >>confdefs.h <<_ACEOF
ec6a6fbe 15283#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 15284_ACEOF
0a62c911 15285
0a62c911 15286else
ec6a6fbe
AK
15287 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
15288$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 15289 { (exit 1); exit 1; }; }
80992638
AK
15290fi
15291
ad6254c5 15292done
0a62c911 15293
ad6254c5 15294fi
0a62c911 15295
a5f46f6a
AK
15296if test x$UDEV_SYNC = xyes; then
15297
15298
15299for ac_header in sys/ipc.h sys/sem.h
15300do
15301as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15302if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15303 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15304$as_echo_n "checking for $ac_header... " >&6; }
15305if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15306 $as_echo_n "(cached) " >&6
15307fi
15308ac_res=`eval 'as_val=${'$as_ac_Header'}
15309 $as_echo "$as_val"'`
15310 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15311$as_echo "$ac_res" >&6; }
15312else
15313 # Is the header compilable?
15314{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15315$as_echo_n "checking $ac_header usability... " >&6; }
15316cat >conftest.$ac_ext <<_ACEOF
15317/* confdefs.h. */
15318_ACEOF
15319cat confdefs.h >>conftest.$ac_ext
15320cat >>conftest.$ac_ext <<_ACEOF
15321/* end confdefs.h. */
15322$ac_includes_default
15323#include <$ac_header>
15324_ACEOF
15325rm -f conftest.$ac_objext
15326if { (ac_try="$ac_compile"
15327case "(($ac_try" in
15328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15329 *) ac_try_echo=$ac_try;;
15330esac
15331eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15332$as_echo "$ac_try_echo") >&5
15333 (eval "$ac_compile") 2>conftest.er1
15334 ac_status=$?
15335 grep -v '^ *+' conftest.er1 >conftest.err
15336 rm -f conftest.er1
15337 cat conftest.err >&5
15338 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15339 (exit $ac_status); } && {
15340 test -z "$ac_c_werror_flag" ||
15341 test ! -s conftest.err
15342 } && test -s conftest.$ac_objext; then
15343 ac_header_compiler=yes
15344else
15345 $as_echo "$as_me: failed program was:" >&5
15346sed 's/^/| /' conftest.$ac_ext >&5
15347
15348 ac_header_compiler=no
15349fi
15350
15351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15352{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15353$as_echo "$ac_header_compiler" >&6; }
15354
15355# Is the header present?
15356{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15357$as_echo_n "checking $ac_header presence... " >&6; }
15358cat >conftest.$ac_ext <<_ACEOF
15359/* confdefs.h. */
15360_ACEOF
15361cat confdefs.h >>conftest.$ac_ext
15362cat >>conftest.$ac_ext <<_ACEOF
15363/* end confdefs.h. */
15364#include <$ac_header>
15365_ACEOF
15366if { (ac_try="$ac_cpp conftest.$ac_ext"
15367case "(($ac_try" in
15368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15369 *) ac_try_echo=$ac_try;;
15370esac
15371eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15372$as_echo "$ac_try_echo") >&5
15373 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15374 ac_status=$?
15375 grep -v '^ *+' conftest.er1 >conftest.err
15376 rm -f conftest.er1
15377 cat conftest.err >&5
15378 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15379 (exit $ac_status); } >/dev/null && {
15380 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15381 test ! -s conftest.err
15382 }; then
15383 ac_header_preproc=yes
15384else
15385 $as_echo "$as_me: failed program was:" >&5
15386sed 's/^/| /' conftest.$ac_ext >&5
15387
15388 ac_header_preproc=no
15389fi
15390
15391rm -f conftest.err conftest.$ac_ext
15392{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15393$as_echo "$ac_header_preproc" >&6; }
15394
15395# So? What about this header?
15396case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15397 yes:no: )
15398 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15399$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15400 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15401$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15402 ac_header_preproc=yes
15403 ;;
15404 no:yes:* )
15405 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15406$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15407 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15408$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15409 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15410$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15411 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15412$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15413 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15414$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15415 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15416$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15417
15418 ;;
15419esac
15420{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15421$as_echo_n "checking for $ac_header... " >&6; }
15422if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15423 $as_echo_n "(cached) " >&6
15424else
15425 eval "$as_ac_Header=\$ac_header_preproc"
15426fi
15427ac_res=`eval 'as_val=${'$as_ac_Header'}
15428 $as_echo "$as_val"'`
15429 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15430$as_echo "$ac_res" >&6; }
15431
15432fi
15433as_val=`eval 'as_val=${'$as_ac_Header'}
15434 $as_echo "$as_val"'`
15435 if test "x$as_val" = x""yes; then
15436 cat >>confdefs.h <<_ACEOF
15437#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15438_ACEOF
15439
15440else
15441 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
15442$as_echo "$as_me: error: bailing out" >&2;}
15443 { (exit 1); exit 1; }; }
15444fi
15445
15446done
15447
15448fi
15449
a653923f
AK
15450################################################################################
15451# Extract the first word of "modprobe", so it can be a program name with args.
15452set dummy modprobe; ac_word=$2
ec6a6fbe
AK
15453{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
15454$as_echo_n "checking for $ac_word... " >&6; }
72b2cb61 15455if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then
ec6a6fbe 15456 $as_echo_n "(cached) " >&6
72b2cb61
AK
15457else
15458 case $MODPROBE_CMD in
15459 [\\/]* | ?:[\\/]*)
15460 ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path.
15461 ;;
15462 *)
15463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15464for as_dir in $PATH
15465do
15466 IFS=$as_save_IFS
15467 test -z "$as_dir" && as_dir=.
15468 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 15469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
72b2cb61 15470 ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 15471 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
72b2cb61
AK
15472 break 2
15473 fi
15474done
15475done
7a197a62 15476IFS=$as_save_IFS
72b2cb61
AK
15477
15478 ;;
15479esac
15480fi
15481MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD
72b2cb61 15482if test -n "$MODPROBE_CMD"; then
ec6a6fbe
AK
15483 { $as_echo "$as_me:$LINENO: result: $MODPROBE_CMD" >&5
15484$as_echo "$MODPROBE_CMD" >&6; }
72b2cb61 15485else
ec6a6fbe
AK
15486 { $as_echo "$as_me:$LINENO: result: no" >&5
15487$as_echo "no" >&6; }
72b2cb61
AK
15488fi
15489
a653923f 15490
7a197a62 15491
a653923f 15492if test x$MODPROBE_CMD != x; then
72b2cb61
AK
15493
15494cat >>confdefs.h <<_ACEOF
15495#define MODPROBE_CMD "$MODPROBE_CMD"
15496_ACEOF
15497
a653923f
AK
15498fi
15499
80992638 15500################################################################################
93bd259b
AK
15501
15502
15503if test "$BUILD_DMEVENTD" = yes; then
15504
15505# Check whether --with-dmeventd-pidfile was given.
15506if test "${with_dmeventd_pidfile+set}" = set; then
15507 withval=$with_dmeventd_pidfile; cat >>confdefs.h <<_ACEOF
15508#define DMEVENTD_PIDFILE "$withval"
15509_ACEOF
15510
15511else
15512 cat >>confdefs.h <<_ACEOF
15513#define DMEVENTD_PIDFILE "/var/run/dmeventd.pid"
15514_ACEOF
15515
15516fi
15517
15518fi
15519
15520
15521
15522if test "$BUILD_DMEVENTD" = yes; then
15523 dmeventd_prefix="$exec_prefix"
15524 if test "x$dmeventd_prefix" = "xNONE"; then
15525 dmeventd_prefix="$prefix"
15526 fi
15527 if test "x$dmeventd_prefix" = "xNONE"; then
15528 dmeventd_prefix=""
15529 fi
15530
15531# Check whether --with-dmeventd-path was given.
15532if test "${with_dmeventd_path+set}" = set; then
15533 withval=$with_dmeventd_path; cat >>confdefs.h <<_ACEOF
15534#define DMEVENTD_PATH "$withval"
15535_ACEOF
15536
15537else
15538 cat >>confdefs.h <<_ACEOF
15539#define DMEVENTD_PATH "$dmeventd_prefix/sbin/dmeventd"
15540_ACEOF
15541
15542fi
15543
15544fi
15545
15546################################################################################
ec6a6fbe
AK
15547{ $as_echo "$as_me:$LINENO: checking for kernel interface choice" >&5
15548$as_echo_n "checking for kernel interface choice... " >&6; }
93bd259b
AK
15549
15550# Check whether --with-interface was given.
15551if test "${with_interface+set}" = set; then
15552 withval=$with_interface; interface="$withval"
15553else
15554 interface=ioctl
15555fi
15556
15557if [ "x$interface" != xioctl ];
15558then
ec6a6fbe
AK
15559 { { $as_echo "$as_me:$LINENO: error: --with-interface=ioctl required. fs no longer supported." >&5
15560$as_echo "$as_me: error: --with-interface=ioctl required. fs no longer supported." >&2;}
93bd259b
AK
15561 { (exit 1); exit 1; }; }
15562fi
ec6a6fbe
AK
15563{ $as_echo "$as_me:$LINENO: result: $interface" >&5
15564$as_echo "$interface" >&6; }
93bd259b
AK
15565
15566################################################################################
db8b5af9 15567DM_LIB_VERSION="\"`cat "$srcdir"/VERSION_DM 2>/dev/null || echo Unknown`\""
24bbc4d7
AK
15568
15569cat >>confdefs.h <<_ACEOF
15570#define DM_LIB_VERSION $DM_LIB_VERSION
15571_ACEOF
15572
15573
db8b5af9 15574DM_LIB_PATCHLEVEL=`cat "$srcdir"/VERSION_DM | $AWK -F '[-. ]' '{printf "%s.%s.%s",$1,$2,$3}'`
7e3fe830 15575
db8b5af9 15576LVM_VERSION="\"`cat "$srcdir"/VERSION 2>/dev/null || echo Unknown`\""
fae0c576 15577
db8b5af9 15578VER=`cat "$srcdir"/VERSION`
bf456146 15579LVM_RELEASE_DATE="\"`echo $VER | $SED 's/.* (//;s/).*//'`\""
ec6a6fbe
AK
15580VER=`echo "$VER" | $AWK '{print $1}'`
15581LVM_RELEASE="\"`echo "$VER" | $AWK -F '-' '{print $2}'`\""
15582VER=`echo "$VER" | $AWK -F '-' '{print $1}'`
15583LVM_MAJOR=`echo "$VER" | $AWK -F '.' '{print $1}'`
15584LVM_MINOR=`echo "$VER" | $AWK -F '.' '{print $2}'`
bf456146
AK
15585LVM_PATCHLEVEL=`echo "$VER" | $AWK -F '[(.]' '{print $3}'`
15586LVM_LIBAPI=`echo "$VER" | $AWK -F '[()]' '{print $2}'`
ec6a6fbe 15587
80992638 15588################################################################################
fae0c576 15589
83912faa 15590
795ca3e5
AK
15591
15592
15593
15594
15595
15596
5a52dca9 15597
8ef2b021 15598
199e490e 15599
69792976
AK
15600
15601
15602
d0191583 15603
69792976 15604
8106cdd5
AK
15605
15606
15607
15608
15609
d68a82ec 15610
036f273a 15611
7d1552c9 15612
8106cdd5 15613
0a62c911 15614
8106cdd5 15615
4a7f3eb2 15616
4922197a
AK
15617
15618
d8ac0fbc 15619
1a9ea74d 15620
8a2fc586
AK
15621
15622
d0191583 15623
93bd259b
AK
15624
15625
15626
15627
15628
d0191583
JM
15629
15630
15631
15632
15633
8a2fc586 15634
539f4a77 15635
8ce0cbda 15636
8b1a3214 15637
ec6a6fbe
AK
15638
15639
15640
15641
e2997b73
AK
15642
15643
15644
15645
15646
15647
a946372e
AK
15648
15649
15650
15651
15652
15653
15654
15655
15656
15657
15658
ec6a6fbe 15659
33f732c5 15660
66e941e8 15661
d3c8211f 15662
7e3fe830 15663
a5f46f6a
AK
15664
15665
15666
572fefeb 15667
90c80887
AK
15668
15669
bf456146 15670
e1b8a236 15671
0878503f 15672
68f2de6d
AK
15673
15674
80992638 15675################################################################################
d3d98fdc 15676ac_config_files="$ac_config_files Makefile make.tmpl daemons/Makefile daemons/clvmd/Makefile daemons/cmirrord/Makefile daemons/dmeventd/Makefile daemons/dmeventd/libdevmapper-event.pc daemons/dmeventd/plugins/Makefile daemons/dmeventd/plugins/lvm2/Makefile daemons/dmeventd/plugins/mirror/Makefile daemons/dmeventd/plugins/snapshot/Makefile doc/Makefile include/.symlinks include/Makefile lib/Makefile lib/format1/Makefile lib/format_pool/Makefile lib/locking/Makefile lib/mirror/Makefile lib/misc/lvm-version.h lib/snapshot/Makefile libdm/Makefile libdm/libdevmapper.pc liblvm/Makefile liblvm/liblvm2app.pc man/Makefile po/Makefile scripts/clvmd_init_red_hat scripts/cmirrord_init_red_hat scripts/lvm2_monitoring_init_red_hat scripts/Makefile test/Makefile test/api/Makefile tools/Makefile udev/Makefile"
7a197a62 15677
ad6254c5 15678cat >confcache <<\_ACEOF
795ca3e5
AK
15679# This file is a shell script that caches the results of configure
15680# tests run on this system so they can be shared between configure
ad6254c5
AK
15681# scripts and configure runs, see configure's option --config-cache.
15682# It is not useful on other systems. If it contains results you don't
15683# want to keep, you may remove or edit it.
795ca3e5 15684#
ad6254c5
AK
15685# config.status only pays attention to the cache file if you give it
15686# the --recheck option to rerun configure.
795ca3e5 15687#
ad6254c5
AK
15688# `ac_cv_env_foo' variables (set or unset) will be overridden when
15689# loading this file, other *unset* `ac_cv_foo' will be assigned the
15690# following values.
15691
15692_ACEOF
15693
795ca3e5
AK
15694# The following way of writing the cache mishandles newlines in values,
15695# but we know of no workaround that is simple, portable, and efficient.
7a197a62 15696# So, we kill variables containing newlines.
795ca3e5
AK
15697# Ultrix sh set writes to stderr and can't be redirected directly,
15698# and sets the high bit in the cache file unless we assign to the vars.
7a197a62
AK
15699(
15700 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15701 eval ac_val=\$$ac_var
15702 case $ac_val in #(
15703 *${as_nl}*)
15704 case $ac_var in #(
ec6a6fbe
AK
15705 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
15706$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7a197a62
AK
15707 esac
15708 case $ac_var in #(
15709 _ | IFS | as_nl) ;; #(
ec6a6fbe 15710 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7a197a62
AK
15711 *) $as_unset $ac_var ;;
15712 esac ;;
15713 esac
15714 done
15715
ad6254c5 15716 (set) 2>&1 |
7a197a62
AK
15717 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15718 *${as_nl}ac_space=\ *)
ad6254c5
AK
15719 # `set' does not quote correctly, so add quotes (double-quote
15720 # substitution turns \\\\ into \\, and sed turns \\ into \).
15721 sed -n \
8a2fc586
AK
15722 "s/'/'\\\\''/g;
15723 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7a197a62 15724 ;; #(
ad6254c5
AK
15725 *)
15726 # `set' quotes correctly as required by POSIX, so do not add quotes.
7a197a62 15727 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
ad6254c5 15728 ;;
7a197a62
AK
15729 esac |
15730 sort
15731) |
ad6254c5 15732 sed '
7a197a62 15733 /^ac_cv_env_/b end
ad6254c5 15734 t clear
7a197a62 15735 :clear
ad6254c5
AK
15736 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15737 t end
7a197a62
AK
15738 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15739 :end' >>confcache
15740if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15741 if test -w "$cache_file"; then
15742 test "x$cache_file" != "x/dev/null" &&
ec6a6fbe
AK
15743 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
15744$as_echo "$as_me: updating cache $cache_file" >&6;}
ad6254c5 15745 cat confcache >$cache_file
795ca3e5 15746 else
ec6a6fbe
AK
15747 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
15748$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
795ca3e5
AK
15749 fi
15750fi
15751rm -f confcache
15752
795ca3e5
AK
15753test "x$prefix" = xNONE && prefix=$ac_default_prefix
15754# Let make expand exec_prefix.
15755test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15756
72b2cb61 15757DEFS=-DHAVE_CONFIG_H
ad6254c5
AK
15758
15759ac_libobjs=
15760ac_ltlibobjs=
15761for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15762 # 1. Remove the extension, and $U if already installed.
7a197a62 15763 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
ec6a6fbe 15764 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7a197a62
AK
15765 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15766 # will be set to the directory where LIBOBJS objects are built.
15767 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15768 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
ad6254c5
AK
15769done
15770LIBOBJS=$ac_libobjs
80992638 15771
ad6254c5
AK
15772LTLIBOBJS=$ac_ltlibobjs
15773
15774
15775
15776: ${CONFIG_STATUS=./config.status}
ec6a6fbe 15777ac_write_fail=0
ad6254c5
AK
15778ac_clean_files_save=$ac_clean_files
15779ac_clean_files="$ac_clean_files $CONFIG_STATUS"
ec6a6fbe
AK
15780{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15781$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15782cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5
AK
15783#! $SHELL
15784# Generated by $as_me.
795ca3e5 15785# Run this file to recreate the current configuration.
795ca3e5 15786# Compiler output produced by configure, useful for debugging
ad6254c5
AK
15787# configure, is in config.log if it exists.
15788
15789debug=false
15790ac_cs_recheck=false
15791ac_cs_silent=false
15792SHELL=\${CONFIG_SHELL-$SHELL}
15793_ACEOF
15794
ec6a6fbe 15795cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ad6254c5
AK
15796## --------------------- ##
15797## M4sh Initialization. ##
15798## --------------------- ##
15799
25fbec5b
AK
15800# Be more Bourne compatible
15801DUALCASE=1; export DUALCASE # for MKS sh
ad6254c5
AK
15802if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15803 emulate sh
15804 NULLCMD=:
ec6a6fbe 15805 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
ad6254c5
AK
15806 # is contrary to our usage. Disable this feature.
15807 alias -g '${1+"$@"}'='"$@"'
7a197a62
AK
15808 setopt NO_GLOB_SUBST
15809else
25fbec5b
AK
15810 case `(set -o) 2>/dev/null` in
15811 *posix*) set -o posix ;;
15812esac
15813
7a197a62 15814fi
25fbec5b
AK
15815
15816
7a197a62
AK
15817
15818
15819# PATH needs CR
15820# Avoid depending upon Character Ranges.
15821as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15822as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15823as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15824as_cr_digits='0123456789'
15825as_cr_alnum=$as_cr_Letters$as_cr_digits
15826
ec6a6fbe
AK
15827as_nl='
15828'
15829export as_nl
15830# Printing a long string crashes Solaris 7 /usr/bin/printf.
15831as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15832as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15833as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15834if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15835 as_echo='printf %s\n'
15836 as_echo_n='printf %s'
15837else
15838 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15839 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15840 as_echo_n='/usr/ucb/echo -n'
68f2de6d 15841 else
ec6a6fbe
AK
15842 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15843 as_echo_n_body='eval
15844 arg=$1;
15845 case $arg in
15846 *"$as_nl"*)
15847 expr "X$arg" : "X\\(.*\\)$as_nl";
15848 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15849 esac;
15850 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15851 '
15852 export as_echo_n_body
15853 as_echo_n='sh -c $as_echo_n_body as_echo'
68f2de6d 15854 fi
ec6a6fbe
AK
15855 export as_echo_body
15856 as_echo='sh -c $as_echo_body as_echo'
15857fi
15858
15859# The user is always right.
15860if test "${PATH_SEPARATOR+set}" != set; then
15861 PATH_SEPARATOR=:
15862 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15863 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15864 PATH_SEPARATOR=';'
15865 }
ad6254c5
AK
15866fi
15867
15868# Support unset when possible.
8a2fc586 15869if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
ad6254c5
AK
15870 as_unset=unset
15871else
15872 as_unset=false
15873fi
8106cdd5 15874
ad6254c5 15875
7a197a62
AK
15876# IFS
15877# We need space, tab and new line, in precisely that order. Quoting is
15878# there to prevent editors from complaining about space-tab.
15879# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15880# splitting by setting IFS to empty value.)
7a197a62
AK
15881IFS=" "" $as_nl"
15882
15883# Find who we are. Look in the path if we contain no directory separator.
15884case $0 in
15885 *[\\/]* ) as_myself=$0 ;;
15886 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15887for as_dir in $PATH
15888do
15889 IFS=$as_save_IFS
15890 test -z "$as_dir" && as_dir=.
15891 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15892done
15893IFS=$as_save_IFS
15894
15895 ;;
15896esac
15897# We did not find ourselves, most probably we were run as `sh COMMAND'
15898# in which case we are not to be found in the path.
15899if test "x$as_myself" = x; then
15900 as_myself=$0
15901fi
15902if test ! -f "$as_myself"; then
ec6a6fbe 15903 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7a197a62
AK
15904 { (exit 1); exit 1; }
15905fi
15906
ad6254c5 15907# Work around bugs in pre-3.0 UWIN ksh.
7a197a62
AK
15908for as_var in ENV MAIL MAILPATH
15909do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15910done
ad6254c5
AK
15911PS1='$ '
15912PS2='> '
15913PS4='+ '
15914
15915# NLS nuisances.
ec6a6fbe
AK
15916LC_ALL=C
15917export LC_ALL
15918LANGUAGE=C
15919export LANGUAGE
8106cdd5 15920
ad6254c5 15921# Required to use basename.
7a197a62
AK
15922if expr a : '\(a\)' >/dev/null 2>&1 &&
15923 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
15924 as_expr=expr
15925else
15926 as_expr=false
15927fi
8106cdd5 15928
7a197a62 15929if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
ad6254c5
AK
15930 as_basename=basename
15931else
15932 as_basename=false
15933fi
15934
15935
15936# Name of the executable.
7a197a62 15937as_me=`$as_basename -- "$0" ||
ad6254c5
AK
15938$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15939 X"$0" : 'X\(//\)$' \| \
7a197a62 15940 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 15941$as_echo X/"$0" |
7a197a62
AK
15942 sed '/^.*\/\([^/][^/]*\)\/*$/{
15943 s//\1/
15944 q
15945 }
15946 /^X\/\(\/\/\)$/{
15947 s//\1/
15948 q
15949 }
15950 /^X\/\(\/\).*/{
15951 s//\1/
15952 q
15953 }
15954 s/.*/./; q'`
ad6254c5 15955
7a197a62
AK
15956# CDPATH.
15957$as_unset CDPATH
ad6254c5
AK
15958
15959
ad6254c5 15960
ad6254c5
AK
15961 as_lineno_1=$LINENO
15962 as_lineno_2=$LINENO
ad6254c5 15963 test "x$as_lineno_1" != "x$as_lineno_2" &&
7a197a62 15964 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
795ca3e5 15965
ad6254c5
AK
15966 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15967 # uniformly replaced by the line number. The first 'sed' inserts a
7a197a62
AK
15968 # line-number line after each line using $LINENO; the second 'sed'
15969 # does the real work. The second script uses 'N' to pair each
15970 # line-number line with the line containing $LINENO, and appends
15971 # trailing '-' during substitution so that $LINENO is not a special
15972 # case at line end.
ad6254c5 15973 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7a197a62
AK
15974 # scripts with optimization help from Paolo Bonzini. Blame Lee
15975 # E. McMahon (1931-1989) for sed's syntax. :-)
15976 sed -n '
15977 p
15978 /[$]LINENO/=
15979 ' <$as_myself |
ad6254c5 15980 sed '
7a197a62
AK
15981 s/[$]LINENO.*/&-/
15982 t lineno
15983 b
15984 :lineno
ad6254c5 15985 N
7a197a62
AK
15986 :loop
15987 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
ad6254c5 15988 t loop
7a197a62 15989 s/-\n.*//
ad6254c5 15990 ' >$as_me.lineno &&
7a197a62 15991 chmod +x "$as_me.lineno" ||
ec6a6fbe 15992 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
ad6254c5
AK
15993 { (exit 1); exit 1; }; }
15994
15995 # Don't try to exec as it changes $[0], causing all sort of problems
15996 # (the dirname of $[0] is not the place where we might find the
7a197a62
AK
15997 # original and so on. Autoconf is especially sensitive to this).
15998 . "./$as_me.lineno"
ad6254c5
AK
15999 # Exit status is that of the last command.
16000 exit
16001}
16002
16003
7a197a62
AK
16004if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16005 as_dirname=dirname
16006else
16007 as_dirname=false
16008fi
16009
16010ECHO_C= ECHO_N= ECHO_T=
16011case `echo -n x` in
16012-n*)
16013 case `echo 'x\c'` in
16014 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16015 *) ECHO_C='\c';;
16016 esac;;
16017*)
16018 ECHO_N='-n';;
ad6254c5 16019esac
7a197a62
AK
16020if expr a : '\(a\)' >/dev/null 2>&1 &&
16021 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
16022 as_expr=expr
16023else
16024 as_expr=false
16025fi
80992638 16026
ad6254c5 16027rm -f conf$$ conf$$.exe conf$$.file
7a197a62
AK
16028if test -d conf$$.dir; then
16029 rm -f conf$$.dir/conf$$.file
16030else
16031 rm -f conf$$.dir
ec6a6fbe
AK
16032 mkdir conf$$.dir 2>/dev/null
16033fi
16034if (echo >conf$$.file) 2>/dev/null; then
16035 if ln -s conf$$.file conf$$ 2>/dev/null; then
16036 as_ln_s='ln -s'
16037 # ... but there are two gotchas:
16038 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16039 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16040 # In both cases, we have to default to `cp -p'.
16041 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16042 as_ln_s='cp -p'
16043 elif ln conf$$.file conf$$ 2>/dev/null; then
16044 as_ln_s=ln
16045 else
ad6254c5 16046 as_ln_s='cp -p'
ec6a6fbe 16047 fi
ad6254c5
AK
16048else
16049 as_ln_s='cp -p'
16050fi
7a197a62
AK
16051rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16052rmdir conf$$.dir 2>/dev/null
8106cdd5 16053
ad6254c5
AK
16054if mkdir -p . 2>/dev/null; then
16055 as_mkdir_p=:
16056else
8a2fc586 16057 test -d ./-p && rmdir ./-p
ad6254c5
AK
16058 as_mkdir_p=false
16059fi
16060
25fbec5b
AK
16061if test -x / >/dev/null 2>&1; then
16062 as_test_x='test -x'
7a197a62 16063else
25fbec5b
AK
16064 if ls -dL / >/dev/null 2>&1; then
16065 as_ls_L_option=L
16066 else
16067 as_ls_L_option=
16068 fi
16069 as_test_x='
16070 eval sh -c '\''
16071 if test -d "$1"; then
ec6a6fbe 16072 test -d "$1/.";
25fbec5b
AK
16073 else
16074 case $1 in
ec6a6fbe 16075 -*)set "./$1";;
25fbec5b
AK
16076 esac;
16077 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
16078 ???[sx]*):;;*)false;;esac;fi
16079 '\'' sh
16080 '
7a197a62 16081fi
25fbec5b 16082as_executable_p=$as_test_x
ad6254c5
AK
16083
16084# Sed expression to map a string onto a valid CPP name.
8a2fc586 16085as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
16086
16087# Sed expression to map a string onto a valid variable name.
8a2fc586 16088as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
16089
16090
ad6254c5
AK
16091exec 6>&1
16092
7a197a62 16093# Save the log message, to keep $[0] and so on meaningful, and to
ad6254c5 16094# report actual input values of CONFIG_FILES etc. instead of their
7a197a62
AK
16095# values after options handling.
16096ac_log="
ad6254c5 16097This file was extended by $as_me, which was
ec6a6fbe 16098generated by GNU Autoconf 2.63. Invocation command line was
ad6254c5
AK
16099
16100 CONFIG_FILES = $CONFIG_FILES
16101 CONFIG_HEADERS = $CONFIG_HEADERS
16102 CONFIG_LINKS = $CONFIG_LINKS
16103 CONFIG_COMMANDS = $CONFIG_COMMANDS
16104 $ $0 $@
16105
7a197a62
AK
16106on `(hostname || uname -n) 2>/dev/null | sed 1q`
16107"
16108
ad6254c5
AK
16109_ACEOF
16110
ec6a6fbe
AK
16111case $ac_config_files in *"
16112"*) set x $ac_config_files; shift; ac_config_files=$*;;
16113esac
16114
16115case $ac_config_headers in *"
16116"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16117esac
16118
16119
16120cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5 16121# Files that config.status was made for.
68f2de6d
AK
16122config_files="$ac_config_files"
16123config_headers="$ac_config_headers"
ad6254c5 16124
7a197a62 16125_ACEOF
ad6254c5 16126
ec6a6fbe 16127cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ad6254c5
AK
16128ac_cs_usage="\
16129\`$as_me' instantiates files from templates according to the
16130current configuration.
16131
ec6a6fbe 16132Usage: $0 [OPTION]... [FILE]...
ad6254c5
AK
16133
16134 -h, --help print this help, then exit
25fbec5b 16135 -V, --version print version number and configuration settings, then exit
ec6a6fbe
AK
16136 -q, --quiet, --silent
16137 do not print progress messages
ad6254c5
AK
16138 -d, --debug don't remove temporary files
16139 --recheck update $as_me by reconfiguring in the same conditions
ec6a6fbe
AK
16140 --file=FILE[:TEMPLATE]
16141 instantiate the configuration file FILE
16142 --header=FILE[:TEMPLATE]
16143 instantiate the configuration header FILE
ad6254c5
AK
16144
16145Configuration files:
16146$config_files
16147
72b2cb61
AK
16148Configuration headers:
16149$config_headers
16150
ad6254c5 16151Report bugs to <bug-autoconf@gnu.org>."
ad6254c5 16152
7a197a62 16153_ACEOF
ec6a6fbe 16154cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5
AK
16155ac_cs_version="\\
16156config.status
ec6a6fbe
AK
16157configured by $0, generated by GNU Autoconf 2.63,
16158 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
ad6254c5 16159
ec6a6fbe 16160Copyright (C) 2008 Free Software Foundation, Inc.
ad6254c5
AK
16161This config.status script is free software; the Free Software Foundation
16162gives unlimited permission to copy, distribute and modify it."
7a197a62
AK
16163
16164ac_pwd='$ac_pwd'
16165srcdir='$srcdir'
16166INSTALL='$INSTALL'
fddafd51 16167MKDIR_P='$MKDIR_P'
ec6a6fbe
AK
16168AWK='$AWK'
16169test -n "\$AWK" || AWK=awk
ad6254c5
AK
16170_ACEOF
16171
ec6a6fbe
AK
16172cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16173# The default lists apply if the user does not specify any file.
ad6254c5
AK
16174ac_need_defaults=:
16175while test $# != 0
16176do
16177 case $1 in
16178 --*=*)
7a197a62
AK
16179 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16180 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
ad6254c5
AK
16181 ac_shift=:
16182 ;;
7a197a62 16183 *)
ad6254c5
AK
16184 ac_option=$1
16185 ac_optarg=$2
16186 ac_shift=shift
16187 ;;
ad6254c5
AK
16188 esac
16189
16190 case $ac_option in
16191 # Handling of the options.
ad6254c5
AK
16192 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16193 ac_cs_recheck=: ;;
7a197a62 16194 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
ec6a6fbe 16195 $as_echo "$ac_cs_version"; exit ;;
7a197a62 16196 --debug | --debu | --deb | --de | --d | -d )
ad6254c5
AK
16197 debug=: ;;
16198 --file | --fil | --fi | --f )
16199 $ac_shift
ec6a6fbe
AK
16200 case $ac_optarg in
16201 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16202 esac
16203 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
ad6254c5
AK
16204 ac_need_defaults=false;;
16205 --header | --heade | --head | --hea )
16206 $ac_shift
ec6a6fbe
AK
16207 case $ac_optarg in
16208 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16209 esac
16210 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
ad6254c5 16211 ac_need_defaults=false;;
7a197a62
AK
16212 --he | --h)
16213 # Conflict between --help and --header
ec6a6fbe 16214 { $as_echo "$as_me: error: ambiguous option: $1
7a197a62
AK
16215Try \`$0 --help' for more information." >&2
16216 { (exit 1); exit 1; }; };;
16217 --help | --hel | -h )
ec6a6fbe 16218 $as_echo "$ac_cs_usage"; exit ;;
ad6254c5
AK
16219 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16220 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16221 ac_cs_silent=: ;;
16222
16223 # This is an error.
ec6a6fbe 16224 -*) { $as_echo "$as_me: error: unrecognized option: $1
7a197a62 16225Try \`$0 --help' for more information." >&2
ad6254c5
AK
16226 { (exit 1); exit 1; }; } ;;
16227
7a197a62
AK
16228 *) ac_config_targets="$ac_config_targets $1"
16229 ac_need_defaults=false ;;
ad6254c5
AK
16230
16231 esac
16232 shift
16233done
16234
16235ac_configure_extra_args=
16236
16237if $ac_cs_silent; then
16238 exec 6>/dev/null
16239 ac_configure_extra_args="$ac_configure_extra_args --silent"
16240fi
16241
16242_ACEOF
ec6a6fbe 16243cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5 16244if \$ac_cs_recheck; then
ec6a6fbe
AK
16245 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16246 shift
16247 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16248 CONFIG_SHELL='$SHELL'
7a197a62 16249 export CONFIG_SHELL
ec6a6fbe 16250 exec "\$@"
ad6254c5
AK
16251fi
16252
16253_ACEOF
ec6a6fbe 16254cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
16255exec 5>>config.log
16256{
16257 echo
16258 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16259## Running $as_me. ##
16260_ASBOX
ec6a6fbe 16261 $as_echo "$ac_log"
7a197a62 16262} >&5
ad6254c5 16263
7a197a62 16264_ACEOF
ec6a6fbe 16265cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7a197a62 16266_ACEOF
ad6254c5 16267
ec6a6fbe 16268cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
16269
16270# Handling of arguments.
ad6254c5
AK
16271for ac_config_target in $ac_config_targets
16272do
7a197a62
AK
16273 case $ac_config_target in
16274 "lib/misc/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;;
16275 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16276 "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;;
16277 "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;;
16278 "daemons/clvmd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;;
5d311afb 16279 "daemons/cmirrord/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/cmirrord/Makefile" ;;
93bd259b
AK
16280 "daemons/dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/Makefile" ;;
16281 "daemons/dmeventd/libdevmapper-event.pc") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/libdevmapper-event.pc" ;;
04f06bc9 16282 "daemons/dmeventd/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/Makefile" ;;
d3d98fdc 16283 "daemons/dmeventd/plugins/lvm2/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/lvm2/Makefile" ;;
93bd259b
AK
16284 "daemons/dmeventd/plugins/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/mirror/Makefile" ;;
16285 "daemons/dmeventd/plugins/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/snapshot/Makefile" ;;
7a197a62 16286 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
db8b5af9 16287 "include/.symlinks") CONFIG_FILES="$CONFIG_FILES include/.symlinks" ;;
93bd259b
AK
16288 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
16289 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
7a197a62
AK
16290 "lib/format1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;;
16291 "lib/format_pool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;;
16292 "lib/locking/Makefile") CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;;
16293 "lib/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;;
ec6a6fbe 16294 "lib/misc/lvm-version.h") CONFIG_FILES="$CONFIG_FILES lib/misc/lvm-version.h" ;;
7a197a62 16295 "lib/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;;
93bd259b
AK
16296 "libdm/Makefile") CONFIG_FILES="$CONFIG_FILES libdm/Makefile" ;;
16297 "libdm/libdevmapper.pc") CONFIG_FILES="$CONFIG_FILES libdm/libdevmapper.pc" ;;
e0c64c6c 16298 "liblvm/Makefile") CONFIG_FILES="$CONFIG_FILES liblvm/Makefile" ;;
70046623 16299 "liblvm/liblvm2app.pc") CONFIG_FILES="$CONFIG_FILES liblvm/liblvm2app.pc" ;;
93bd259b
AK
16300 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
16301 "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
75ad7143 16302 "scripts/clvmd_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/clvmd_init_red_hat" ;;
81410c8f 16303 "scripts/cmirrord_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/cmirrord_init_red_hat" ;;
595eaf92 16304 "scripts/lvm2_monitoring_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_monitoring_init_red_hat" ;;
7a197a62 16305 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
93bd259b 16306 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
c7e363f9 16307 "test/api/Makefile") CONFIG_FILES="$CONFIG_FILES test/api/Makefile" ;;
7a197a62 16308 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
a5f46f6a 16309 "udev/Makefile") CONFIG_FILES="$CONFIG_FILES udev/Makefile" ;;
7a197a62 16310
ec6a6fbe
AK
16311 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16312$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
ad6254c5 16313 { (exit 1); exit 1; }; };;
80992638 16314 esac
ad6254c5
AK
16315done
16316
7a197a62 16317
ad6254c5
AK
16318# If the user did not use the arguments to specify the items to instantiate,
16319# then the envvar interface is used. Set only those that are not.
16320# We use the long form for the default assignment because of an extremely
16321# bizarre bug on SunOS 4.1.3.
16322if $ac_need_defaults; then
16323 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
72b2cb61 16324 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
ad6254c5
AK
16325fi
16326
16327# Have a temporary directory for convenience. Make it in the build tree
7a197a62 16328# simply because there is no reason against having it here, and in addition,
ad6254c5 16329# creating and moving files from /tmp can sometimes cause problems.
7a197a62
AK
16330# Hook for its removal unless debugging.
16331# Note that there is a small window in which the directory will not be cleaned:
16332# after its creation but before its name has been assigned to `$tmp'.
ad6254c5
AK
16333$debug ||
16334{
7a197a62
AK
16335 tmp=
16336 trap 'exit_status=$?
16337 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16338' 0
ad6254c5
AK
16339 trap '{ (exit 1); exit 1; }' 1 2 13 15
16340}
ad6254c5
AK
16341# Create a (secure) tmp directory for tmp files.
16342
16343{
7a197a62 16344 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
ad6254c5
AK
16345 test -n "$tmp" && test -d "$tmp"
16346} ||
16347{
7a197a62
AK
16348 tmp=./conf$$-$RANDOM
16349 (umask 077 && mkdir "$tmp")
ad6254c5
AK
16350} ||
16351{
ec6a6fbe 16352 $as_echo "$as_me: cannot create a temporary directory in ." >&2
ad6254c5
AK
16353 { (exit 1); exit 1; }
16354}
16355
ec6a6fbe
AK
16356# Set up the scripts for CONFIG_FILES section.
16357# No need to generate them if there are no CONFIG_FILES.
16358# This happens for instance with `./config.status config.h'.
1995c9ff 16359if test -n "$CONFIG_FILES"; then
7a197a62 16360
68f2de6d 16361
ec6a6fbe
AK
16362ac_cr='\r'
16363ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16364if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16365 ac_cs_awk_cr='\\r'
16366else
16367 ac_cs_awk_cr=$ac_cr
1995c9ff 16368fi
7a197a62 16369
ec6a6fbe 16370echo 'BEGIN {' >"$tmp/subs1.awk" &&
1995c9ff 16371_ACEOF
7a197a62 16372
8106cdd5 16373
ec6a6fbe
AK
16374{
16375 echo "cat >conf$$subs.awk <<_ACEOF" &&
16376 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16377 echo "_ACEOF"
16378} >conf$$subs.sh ||
16379 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16380$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16381 { (exit 1); exit 1; }; }
16382ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
1995c9ff
AK
16383ac_delim='%!_!# '
16384for ac_last_try in false false false false false :; do
ec6a6fbe
AK
16385 . ./conf$$subs.sh ||
16386 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16387$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16388 { (exit 1); exit 1; }; }
16389
16390 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16391 if test $ac_delim_n = $ac_delim_num; then
1995c9ff
AK
16392 break
16393 elif $ac_last_try; then
ec6a6fbe
AK
16394 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16395$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
1995c9ff
AK
16396 { (exit 1); exit 1; }; }
16397 else
16398 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16399 fi
16400done
ec6a6fbe
AK
16401rm -f conf$$subs.sh
16402
16403cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16404cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16405_ACEOF
16406sed -n '
16407h
16408s/^/S["/; s/!.*/"]=/
16409p
16410g
16411s/^[^!]*!//
16412:repl
16413t repl
16414s/'"$ac_delim"'$//
16415t delim
16416:nl
16417h
16418s/\(.\{148\}\).*/\1/
16419t more1
16420s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16421p
16422n
16423b repl
16424:more1
16425s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16426p
16427g
16428s/.\{148\}//
16429t nl
16430:delim
16431h
16432s/\(.\{148\}\).*/\1/
16433t more2
16434s/["\\]/\\&/g; s/^/"/; s/$/"/
16435p
16436b
16437:more2
16438s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16439p
16440g
16441s/.\{148\}//
16442t delim
16443' <conf$$subs.awk | sed '
16444/^[^""]/{
16445 N
16446 s/\n//
16447}
16448' >>$CONFIG_STATUS || ac_write_fail=1
16449rm -f conf$$subs.awk
16450cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16451_ACAWK
16452cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16453 for (key in S) S_is_set[key] = 1
16454 FS = "\a"
7a197a62 16455
ec6a6fbe
AK
16456}
16457{
16458 line = $ 0
16459 nfields = split(line, field, "@")
16460 substed = 0
16461 len = length(field[1])
16462 for (i = 2; i < nfields; i++) {
16463 key = field[i]
16464 keylen = length(key)
16465 if (S_is_set[key]) {
16466 value = S[key]
16467 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16468 len += length(value) + length(field[++i])
16469 substed = 1
16470 } else
16471 len += 1 + keylen
16472 }
16473
16474 print line
16475}
fddafd51 16476
ec6a6fbe 16477_ACAWK
1995c9ff 16478_ACEOF
ec6a6fbe
AK
16479cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16480if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16481 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16482else
16483 cat
16484fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16485 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
16486$as_echo "$as_me: error: could not setup config files machinery" >&2;}
16487 { (exit 1); exit 1; }; }
7a197a62
AK
16488_ACEOF
16489
7a197a62
AK
16490# VPATH may cause trouble with some makes, so we remove $(srcdir),
16491# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16492# trailing colons and then remove the whole line if VPATH becomes empty
16493# (actually we leave an empty line to preserve line numbers).
16494if test "x$srcdir" = x.; then
16495 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16496s/:*\$(srcdir):*/:/
16497s/:*\${srcdir}:*/:/
16498s/:*@srcdir@:*/:/
16499s/^\([^=]*=[ ]*\):*/\1/
16500s/:*$//
16501s/^[^=]*=[ ]*$//
16502}'
16503fi
16504
ec6a6fbe 16505cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
16506fi # test -n "$CONFIG_FILES"
16507
ec6a6fbe
AK
16508# Set up the scripts for CONFIG_HEADERS section.
16509# No need to generate them if there are no CONFIG_HEADERS.
16510# This happens for instance with `./config.status Makefile'.
16511if test -n "$CONFIG_HEADERS"; then
16512cat >"$tmp/defines.awk" <<\_ACAWK ||
16513BEGIN {
16514_ACEOF
16515
16516# Transform confdefs.h into an awk script `defines.awk', embedded as
16517# here-document in config.status, that substitutes the proper values into
16518# config.h.in to produce config.h.
16519
16520# Create a delimiter string that does not exist in confdefs.h, to ease
16521# handling of long lines.
16522ac_delim='%!_!# '
16523for ac_last_try in false false :; do
16524 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16525 if test -z "$ac_t"; then
16526 break
16527 elif $ac_last_try; then
16528 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
16529$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
16530 { (exit 1); exit 1; }; }
16531 else
16532 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16533 fi
16534done
16535
16536# For the awk script, D is an array of macro values keyed by name,
16537# likewise P contains macro parameters if any. Preserve backslash
16538# newline sequences.
16539
16540ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16541sed -n '
16542s/.\{148\}/&'"$ac_delim"'/g
16543t rset
16544:rset
16545s/^[ ]*#[ ]*define[ ][ ]*/ /
16546t def
16547d
16548:def
16549s/\\$//
16550t bsnl
16551s/["\\]/\\&/g
16552s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16553D["\1"]=" \3"/p
16554s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16555d
16556:bsnl
16557s/["\\]/\\&/g
16558s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16559D["\1"]=" \3\\\\\\n"\\/p
16560t cont
16561s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16562t cont
16563d
16564:cont
16565n
16566s/.\{148\}/&'"$ac_delim"'/g
16567t clear
16568:clear
16569s/\\$//
16570t bsnlc
16571s/["\\]/\\&/g; s/^/"/; s/$/"/p
16572d
16573:bsnlc
16574s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16575b cont
16576' <confdefs.h | sed '
16577s/'"$ac_delim"'/"\\\
16578"/g' >>$CONFIG_STATUS || ac_write_fail=1
16579
16580cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16581 for (key in D) D_is_set[key] = 1
16582 FS = "\a"
16583}
16584/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16585 line = \$ 0
16586 split(line, arg, " ")
16587 if (arg[1] == "#") {
16588 defundef = arg[2]
16589 mac1 = arg[3]
16590 } else {
16591 defundef = substr(arg[1], 2)
16592 mac1 = arg[2]
16593 }
16594 split(mac1, mac2, "(") #)
16595 macro = mac2[1]
16596 prefix = substr(line, 1, index(line, defundef) - 1)
16597 if (D_is_set[macro]) {
16598 # Preserve the white space surrounding the "#".
16599 print prefix "define", macro P[macro] D[macro]
16600 next
16601 } else {
16602 # Replace #undef with comments. This is necessary, for example,
16603 # in the case of _POSIX_SOURCE, which is predefined and required
16604 # on some systems where configure will not decide to define it.
16605 if (defundef == "undef") {
16606 print "/*", prefix defundef, macro, "*/"
16607 next
16608 }
16609 }
16610}
16611{ print }
16612_ACAWK
16613_ACEOF
16614cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16615 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
16616$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
16617 { (exit 1); exit 1; }; }
16618fi # test -n "$CONFIG_HEADERS"
16619
7a197a62 16620
ec6a6fbe
AK
16621eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
16622shift
16623for ac_tag
7a197a62
AK
16624do
16625 case $ac_tag in
16626 :[FHLC]) ac_mode=$ac_tag; continue;;
16627 esac
16628 case $ac_mode$ac_tag in
16629 :[FHL]*:*);;
ec6a6fbe
AK
16630 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
16631$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
7a197a62
AK
16632 { (exit 1); exit 1; }; };;
16633 :[FH]-) ac_tag=-:-;;
16634 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16635 esac
16636 ac_save_IFS=$IFS
16637 IFS=:
16638 set x $ac_tag
16639 IFS=$ac_save_IFS
16640 shift
16641 ac_file=$1
16642 shift
16643
16644 case $ac_mode in
16645 :L) ac_source=$1;;
16646 :[FH])
16647 ac_file_inputs=
16648 for ac_f
16649 do
16650 case $ac_f in
16651 -) ac_f="$tmp/stdin";;
16652 *) # Look for the file first in the build tree, then in the source tree
16653 # (if the path is not absolute). The absolute path cannot be DOS-style,
16654 # because $ac_f cannot contain `:'.
16655 test -f "$ac_f" ||
16656 case $ac_f in
16657 [\\/$]*) false;;
16658 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16659 esac ||
ec6a6fbe
AK
16660 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
16661$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
7a197a62
AK
16662 { (exit 1); exit 1; }; };;
16663 esac
ec6a6fbe
AK
16664 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16665 ac_file_inputs="$ac_file_inputs '$ac_f'"
7a197a62
AK
16666 done
16667
16668 # Let's still pretend it is `configure' which instantiates (i.e., don't
16669 # use $as_me), people would be surprised to read:
16670 # /* config.h. Generated by config.status. */
ec6a6fbe
AK
16671 configure_input='Generated from '`
16672 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16673 `' by configure.'
7a197a62
AK
16674 if test x"$ac_file" != x-; then
16675 configure_input="$ac_file. $configure_input"
ec6a6fbe
AK
16676 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
16677$as_echo "$as_me: creating $ac_file" >&6;}
7a197a62 16678 fi
ec6a6fbe
AK
16679 # Neutralize special characters interpreted by sed in replacement strings.
16680 case $configure_input in #(
16681 *\&* | *\|* | *\\* )
16682 ac_sed_conf_input=`$as_echo "$configure_input" |
16683 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16684 *) ac_sed_conf_input=$configure_input;;
16685 esac
7a197a62
AK
16686
16687 case $ac_tag in
ec6a6fbe
AK
16688 *:-:* | *:-) cat >"$tmp/stdin" \
16689 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16690$as_echo "$as_me: error: could not create $ac_file" >&2;}
16691 { (exit 1); exit 1; }; } ;;
7a197a62
AK
16692 esac
16693 ;;
80992638 16694 esac
8106cdd5 16695
7a197a62 16696 ac_dir=`$as_dirname -- "$ac_file" ||
ad6254c5 16697$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8a2fc586
AK
16698 X"$ac_file" : 'X\(//\)[^/]' \| \
16699 X"$ac_file" : 'X\(//\)$' \| \
7a197a62 16700 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 16701$as_echo X"$ac_file" |
7a197a62
AK
16702 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16703 s//\1/
16704 q
16705 }
16706 /^X\(\/\/\)[^/].*/{
16707 s//\1/
16708 q
16709 }
16710 /^X\(\/\/\)$/{
16711 s//\1/
16712 q
16713 }
16714 /^X\(\/\).*/{
16715 s//\1/
16716 q
16717 }
16718 s/.*/./; q'`
16719 { as_dir="$ac_dir"
16720 case $as_dir in #(
16721 -*) as_dir=./$as_dir;;
16722 esac
16723 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
ad6254c5 16724 as_dirs=
7a197a62
AK
16725 while :; do
16726 case $as_dir in #(
ec6a6fbe 16727 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7a197a62
AK
16728 *) as_qdir=$as_dir;;
16729 esac
16730 as_dirs="'$as_qdir' $as_dirs"
16731 as_dir=`$as_dirname -- "$as_dir" ||
ad6254c5 16732$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8a2fc586
AK
16733 X"$as_dir" : 'X\(//\)[^/]' \| \
16734 X"$as_dir" : 'X\(//\)$' \| \
7a197a62 16735 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 16736$as_echo X"$as_dir" |
7a197a62
AK
16737 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16738 s//\1/
16739 q
16740 }
16741 /^X\(\/\/\)[^/].*/{
16742 s//\1/
16743 q
16744 }
16745 /^X\(\/\/\)$/{
16746 s//\1/
16747 q
16748 }
16749 /^X\(\/\).*/{
16750 s//\1/
16751 q
16752 }
16753 s/.*/./; q'`
16754 test -d "$as_dir" && break
ad6254c5 16755 done
7a197a62 16756 test -z "$as_dirs" || eval "mkdir $as_dirs"
ec6a6fbe
AK
16757 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16758$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
ad6254c5 16759 { (exit 1); exit 1; }; }; }
ad6254c5
AK
16760 ac_builddir=.
16761
7a197a62
AK
16762case "$ac_dir" in
16763.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16764*)
ec6a6fbe 16765 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7a197a62 16766 # A ".." for each directory in $ac_dir_suffix.
ec6a6fbe 16767 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7a197a62
AK
16768 case $ac_top_builddir_sub in
16769 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16770 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16771 esac ;;
16772esac
16773ac_abs_top_builddir=$ac_pwd
16774ac_abs_builddir=$ac_pwd$ac_dir_suffix
16775# for backward compatibility:
16776ac_top_builddir=$ac_top_build_prefix
ad6254c5
AK
16777
16778case $srcdir in
7a197a62 16779 .) # We are building in place.
ad6254c5 16780 ac_srcdir=.
7a197a62
AK
16781 ac_top_srcdir=$ac_top_builddir_sub
16782 ac_abs_top_srcdir=$ac_pwd ;;
16783 [\\/]* | ?:[\\/]* ) # Absolute name.
ad6254c5 16784 ac_srcdir=$srcdir$ac_dir_suffix;
7a197a62
AK
16785 ac_top_srcdir=$srcdir
16786 ac_abs_top_srcdir=$srcdir ;;
16787 *) # Relative name.
16788 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16789 ac_top_srcdir=$ac_top_build_prefix$srcdir
16790 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
ad6254c5 16791esac
7a197a62 16792ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8a2fc586 16793
ad6254c5 16794
7a197a62
AK
16795 case $ac_mode in
16796 :F)
16797 #
16798 # CONFIG_FILE
16799 #
ad6254c5
AK
16800
16801 case $INSTALL in
16802 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7a197a62 16803 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
795ca3e5 16804 esac
fddafd51
ZK
16805 ac_MKDIR_P=$MKDIR_P
16806 case $MKDIR_P in
16807 [\\/$]* | ?:[\\/]* ) ;;
16808 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16809 esac
7a197a62 16810_ACEOF
795ca3e5 16811
ec6a6fbe 16812cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
16813# If the template does not know about datarootdir, expand it.
16814# FIXME: This hack should be removed a few years after 2.60.
16815ac_datarootdir_hack=; ac_datarootdir_seen=
16816
ec6a6fbe
AK
16817ac_sed_dataroot='
16818/datarootdir/ {
7a197a62
AK
16819 p
16820 q
16821}
16822/@datadir@/p
16823/@docdir@/p
16824/@infodir@/p
16825/@localedir@/p
16826/@mandir@/p
ec6a6fbe
AK
16827'
16828case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7a197a62
AK
16829*datarootdir*) ac_datarootdir_seen=yes;;
16830*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
ec6a6fbe
AK
16831 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16832$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
ad6254c5 16833_ACEOF
ec6a6fbe 16834cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7a197a62
AK
16835 ac_datarootdir_hack='
16836 s&@datadir@&$datadir&g
16837 s&@docdir@&$docdir&g
16838 s&@infodir@&$infodir&g
16839 s&@localedir@&$localedir&g
16840 s&@mandir@&$mandir&g
16841 s&\\\${datarootdir}&$datarootdir&g' ;;
16842esac
16843_ACEOF
16844
16845# Neutralize VPATH when `$srcdir' = `.'.
16846# Shell code in configure.ac might set extrasub.
16847# FIXME: do we really want to maintain this feature?
ec6a6fbe
AK
16848cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16849ac_sed_extra="$ac_vpsub
ad6254c5
AK
16850$extrasub
16851_ACEOF
ec6a6fbe 16852cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ad6254c5
AK
16853:t
16854/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
ec6a6fbe 16855s|@configure_input@|$ac_sed_conf_input|;t t
7a197a62 16856s&@top_builddir@&$ac_top_builddir_sub&;t t
ec6a6fbe 16857s&@top_build_prefix@&$ac_top_build_prefix&;t t
7a197a62
AK
16858s&@srcdir@&$ac_srcdir&;t t
16859s&@abs_srcdir@&$ac_abs_srcdir&;t t
16860s&@top_srcdir@&$ac_top_srcdir&;t t
16861s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16862s&@builddir@&$ac_builddir&;t t
16863s&@abs_builddir@&$ac_abs_builddir&;t t
16864s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16865s&@INSTALL@&$ac_INSTALL&;t t
fddafd51 16866s&@MKDIR_P@&$ac_MKDIR_P&;t t
7a197a62 16867$ac_datarootdir_hack
ec6a6fbe
AK
16868"
16869eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16870 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16871$as_echo "$as_me: error: could not create $ac_file" >&2;}
16872 { (exit 1); exit 1; }; }
7a197a62
AK
16873
16874test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16875 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16876 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
ec6a6fbe 16877 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7a197a62 16878which seems to be undefined. Please make sure it is defined." >&5
ec6a6fbe 16879$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7a197a62
AK
16880which seems to be undefined. Please make sure it is defined." >&2;}
16881
16882 rm -f "$tmp/stdin"
72b2cb61 16883 case $ac_file in
ec6a6fbe
AK
16884 -) cat "$tmp/out" && rm -f "$tmp/out";;
16885 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16886 esac \
16887 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16888$as_echo "$as_me: error: could not create $ac_file" >&2;}
16889 { (exit 1); exit 1; }; }
7a197a62
AK
16890 ;;
16891 :H)
16892 #
16893 # CONFIG_HEADER
16894 #
72b2cb61 16895 if test x"$ac_file" != x-; then
ec6a6fbe
AK
16896 {
16897 $as_echo "/* $configure_input */" \
16898 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16899 } >"$tmp/config.h" \
16900 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16901$as_echo "$as_me: error: could not create $ac_file" >&2;}
16902 { (exit 1); exit 1; }; }
16903 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16904 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16905$as_echo "$as_me: $ac_file is unchanged" >&6;}
72b2cb61 16906 else
ec6a6fbe
AK
16907 rm -f "$ac_file"
16908 mv "$tmp/config.h" "$ac_file" \
16909 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16910$as_echo "$as_me: error: could not create $ac_file" >&2;}
16911 { (exit 1); exit 1; }; }
72b2cb61
AK
16912 fi
16913 else
ec6a6fbe
AK
16914 $as_echo "/* $configure_input */" \
16915 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16916 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
16917$as_echo "$as_me: error: could not create -" >&2;}
16918 { (exit 1); exit 1; }; }
72b2cb61 16919 fi
7a197a62
AK
16920 ;;
16921
16922
16923 esac
16924
16925done # for ac_tag
795ca3e5 16926
795ca3e5 16927
ad6254c5
AK
16928{ (exit 0); exit 0; }
16929_ACEOF
795ca3e5 16930chmod +x $CONFIG_STATUS
ad6254c5
AK
16931ac_clean_files=$ac_clean_files_save
16932
ec6a6fbe
AK
16933test $ac_write_fail = 0 ||
16934 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
16935$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
16936 { (exit 1); exit 1; }; }
16937
ad6254c5
AK
16938
16939# configure is writing to config.log, and then calls config.status.
16940# config.status does its own redirection, appending to config.log.
16941# Unfortunately, on DOS this fails, as config.log is still kept open
16942# by configure, so config.status won't be able to write to it; its
16943# output is simply discarded. So we exec the FD to /dev/null,
16944# effectively closing config.log, so it can be properly (re)opened and
16945# appended to by config.status. When coming back to configure, we
16946# need to make the FD available again.
16947if test "$no_create" != yes; then
16948 ac_cs_success=:
16949 ac_config_status_args=
16950 test "$silent" = yes &&
16951 ac_config_status_args="$ac_config_status_args --quiet"
16952 exec 5>/dev/null
16953 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16954 exec 5>>config.log
16955 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16956 # would make configure fail if this is the last instruction.
16957 $ac_cs_success || { (exit 1); exit 1; }
16958fi
ec6a6fbe
AK
16959if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16960 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16961$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16962fi
795ca3e5 16963
2dc95e1c
AK
16964
16965if test x$ODIRECT != xyes; then
ec6a6fbe
AK
16966 { $as_echo "$as_me:$LINENO: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5
16967$as_echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;}
2dc95e1c 16968fi
This page took 2.152704 seconds and 5 git commands to generate.