]> sourceware.org Git - lvm2.git/blame - configure
Create /var/run/lvm directory during clvmd initialisation if missing.
[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
23b059e7 649WRITE_INSTALL
0878503f 650UDEV_SYNC
a5f46f6a 651UDEV_RULES
f7f0854e 652UDEV_PC
db724a44 653UDEV_LIBS
54b362f9 654TESTING
ec6a6fbe
AK
655STATIC_LINK
656STATICDIR
657SNAPSHOTS
f7f0854e 658SELINUX_PC
e1b8a236 659SELINUX_LIBS
539f4a77 660READLINE_LIBS
f30875db 661PTHREAD_LIBS
ec6a6fbe
AK
662POOL
663PKGCONFIG
8fea97b7 664REPLICATORS
37ddf259 665OCF
ec6a6fbe
AK
666MIRRORS
667LVM_RELEASE_DATE
668LVM_RELEASE
669LVM_PATCHLEVEL
670LVM_MINOR
671LVM_MAJOR
bf456146 672LVM_LIBAPI
ec6a6fbe 673LVM_VERSION
ec6a6fbe
AK
674LVM1_FALLBACK
675LVM1
676LOCALEDIR
677LIB_SUFFIX
678LDDEPS
679JOBS
680INTL_PACKAGE
681INTL
ec6a6fbe
AK
682HAVE_REALTIME
683HAVE_LIBDL
ec6a6fbe
AK
684FSADM
685DM_LIB_PATCHLEVEL
686DM_LIB_VERSION
687DM_IOCTLS
688DM_DEVICE_UID
689DM_DEVICE_MODE
690DM_DEVICE_GID
691DM_COMPAT
d1e8046f 692DMEVENTD_PATH
ec6a6fbe 693DMEVENTD
19a2c6e0 694DL_LIBS
ec6a6fbe 695DEVMAPPER
b1f08e51 696DEFAULT_RUN_DIR
3399ae32 697DEFAULT_LOCK_DIR
fea55602 698DEFAULT_DATA_ALIGNMENT
3399ae32
AK
699DEFAULT_CACHE_SUBDIR
700DEFAULT_BACKUP_SUBDIR
701DEFAULT_ARCHIVE_SUBDIR
702DEFAULT_SYS_DIR
ec6a6fbe
AK
703DEBUG
704COPTIMISE_FLAG
e2997b73 705CONFDIR
ec6a6fbe 706CMDLIB
c89bc357 707CLVMD_CMANAGERS
ec6a6fbe
AK
708CLVMD
709CLUSTER
710CLDWHOLEARCHIVE
711CLDNOWHOLEARCHIVE
712CLDFLAGS
713BUILD_DMEVENTD
66fd4529 714BUILD_CMIRRORD
572fefeb 715APPLIB
ec6a6fbe
AK
716MODPROBE_CMD
717MSGFMT
718LVM2CMD_LIB
572fefeb 719LVM2APP_LIB
54b362f9
AK
720VALGRIND
721RUBY19
fd4728e1 722GENPNG
ec6a6fbe
AK
723GENHTML
724LCOV
90c80887
AK
725SACKPT_LIBS
726SACKPT_CFLAGS
a946372e
AK
727DLM_LIBS
728DLM_CFLAGS
e2997b73
AK
729CPG_LIBS
730CPG_CFLAGS
731CONFDB_LIBS
732CONFDB_CFLAGS
a946372e
AK
733SALCK_LIBS
734SALCK_CFLAGS
e2997b73
AK
735QUORUM_LIBS
736QUORUM_CFLAGS
a946372e
AK
737COROSYNC_LIBS
738COROSYNC_CFLAGS
739CMAN_LIBS
740CMAN_CFLAGS
741GULM_LIBS
742GULM_CFLAGS
743CCS_LIBS
744CCS_CFLAGS
745PKGCONFIGINIT_LIBS
746PKGCONFIGINIT_CFLAGS
e2997b73 747PKG_CONFIG
ec6a6fbe
AK
748POW_LIB
749LIBOBJS
750ALLOCA
751CSCOPE_CMD
752CFLOW_CMD
753RANLIB
754MKDIR_P
755SET_MAKE
756LN_S
757INSTALL_DATA
758INSTALL_SCRIPT
759INSTALL_PROGRAM
760EGREP
761GREP
762CPP
763OBJEXT
764EXEEXT
765ac_ct_CC
766CPPFLAGS
767LDFLAGS
768CFLAGS
769CC
770AWK
771SED
772target_os
773target_vendor
774target_cpu
775target
776host_os
777host_vendor
778host_cpu
779host
780build_os
781build_vendor
782build_cpu
783build
784target_alias
785host_alias
786build_alias
787LIBS
788ECHO_T
789ECHO_N
790ECHO_C
791DEFS
792mandir
793localedir
794libdir
795psdir
796pdfdir
797dvidir
798htmldir
799infodir
800docdir
801oldincludedir
802includedir
803localstatedir
804sharedstatedir
805sysconfdir
806datadir
807datarootdir
808libexecdir
809sbindir
810bindir
811program_transform_name
812prefix
813exec_prefix
814PACKAGE_BUGREPORT
815PACKAGE_STRING
816PACKAGE_VERSION
817PACKAGE_TARNAME
818PACKAGE_NAME
819PATH_SEPARATOR
820SHELL'
ad6254c5 821ac_subst_files=''
ec6a6fbe
AK
822ac_user_opts='
823enable_option_checking
824enable_static_link
825with_user
826with_group
827with_device_uid
828with_device_gid
829with_device_mode
830enable_lvm1_fallback
831with_lvm1
832with_pool
833with_cluster
834with_snapshots
835with_mirrors
8fea97b7 836with_replicators
ec6a6fbe
AK
837enable_readline
838enable_realtime
37ddf259 839enable_ocf
ec6a6fbe 840with_clvmd
8c4e8a18 841with_clvmd_pidfile
66fd4529
AK
842enable_cmirrord
843with_cmirrord_pidfile
ec6a6fbe
AK
844enable_debug
845with_optimisation
846enable_profiling
54b362f9 847enable_testing
d1e8046f 848enable_valgrind_pool
ec6a6fbe 849enable_devmapper
a5f46f6a
AK
850enable_udev_sync
851enable_udev_rules
ec6a6fbe 852enable_compat
95eaa683 853enable_units_compat
ec6a6fbe
AK
854enable_ioctl
855enable_o_direct
572fefeb 856enable_applib
ec6a6fbe
AK
857enable_cmdlib
858enable_pkgconfig
23b059e7 859enable_write_install
ec6a6fbe
AK
860enable_fsadm
861enable_dmeventd
862enable_selinux
863enable_nls
864with_localedir
865with_confdir
866with_staticdir
867with_usrlibdir
868with_usrsbindir
a5f46f6a 869with_udev_prefix
78ce7acc 870with_udevdir
ec6a6fbe
AK
871with_dmeventd_pidfile
872with_dmeventd_path
8bae0a1e 873with_default_run_dir
3399ae32
AK
874with_default_system_dir
875with_default_archive_subdir
876with_default_backup_subdir
877with_default_cache_subdir
878with_default_locking_dir
fea55602 879with_default_data_alignment
ec6a6fbe
AK
880with_interface
881'
7a197a62
AK
882 ac_precious_vars='build_alias
883host_alias
884target_alias
885CC
886CFLAGS
887LDFLAGS
25fbec5b 888LIBS
7a197a62 889CPPFLAGS
e2997b73
AK
890CPP
891PKG_CONFIG
a946372e
AK
892PKGCONFIGINIT_CFLAGS
893PKGCONFIGINIT_LIBS
894CCS_CFLAGS
895CCS_LIBS
896GULM_CFLAGS
897GULM_LIBS
898CMAN_CFLAGS
899CMAN_LIBS
900COROSYNC_CFLAGS
901COROSYNC_LIBS
e2997b73
AK
902QUORUM_CFLAGS
903QUORUM_LIBS
a946372e
AK
904SALCK_CFLAGS
905SALCK_LIBS
e2997b73
AK
906CONFDB_CFLAGS
907CONFDB_LIBS
908CPG_CFLAGS
a946372e
AK
909CPG_LIBS
910DLM_CFLAGS
90c80887
AK
911DLM_LIBS
912SACKPT_CFLAGS
913SACKPT_LIBS'
7a197a62 914
795ca3e5
AK
915
916# Initialize some variables set by options.
ad6254c5
AK
917ac_init_help=
918ac_init_version=false
ec6a6fbe
AK
919ac_unrecognized_opts=
920ac_unrecognized_sep=
795ca3e5
AK
921# The variables have the same names as the options, with
922# dashes changed to underlines.
ad6254c5 923cache_file=/dev/null
795ca3e5 924exec_prefix=NONE
795ca3e5 925no_create=
795ca3e5
AK
926no_recursion=
927prefix=NONE
928program_prefix=NONE
929program_suffix=NONE
930program_transform_name=s,x,x,
931silent=
932site=
933srcdir=
795ca3e5
AK
934verbose=
935x_includes=NONE
936x_libraries=NONE
ad6254c5
AK
937
938# Installation directory options.
939# These are left unexpanded so users can "make install exec_prefix=/foo"
940# and all the variables that are supposed to be based on exec_prefix
941# by default will actually change.
942# Use braces instead of parens because sh, perl, etc. also accept them.
7a197a62 943# (The list follows the same order as the GNU Coding Standards.)
795ca3e5
AK
944bindir='${exec_prefix}/bin'
945sbindir='${exec_prefix}/sbin'
946libexecdir='${exec_prefix}/libexec'
7a197a62
AK
947datarootdir='${prefix}/share'
948datadir='${datarootdir}'
795ca3e5
AK
949sysconfdir='${prefix}/etc'
950sharedstatedir='${prefix}/com'
951localstatedir='${prefix}/var'
795ca3e5
AK
952includedir='${prefix}/include'
953oldincludedir='/usr/include'
7a197a62
AK
954docdir='${datarootdir}/doc/${PACKAGE}'
955infodir='${datarootdir}/info'
956htmldir='${docdir}'
957dvidir='${docdir}'
958pdfdir='${docdir}'
959psdir='${docdir}'
960libdir='${exec_prefix}/lib'
961localedir='${datarootdir}/locale'
962mandir='${datarootdir}/man'
795ca3e5 963
795ca3e5 964ac_prev=
7a197a62 965ac_dashdash=
795ca3e5
AK
966for ac_option
967do
795ca3e5
AK
968 # If the previous option needs an argument, assign it.
969 if test -n "$ac_prev"; then
7a197a62 970 eval $ac_prev=\$ac_option
795ca3e5
AK
971 ac_prev=
972 continue
973 fi
974
7a197a62
AK
975 case $ac_option in
976 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
977 *) ac_optarg=yes ;;
978 esac
795ca3e5
AK
979
980 # Accept the important Cygnus configure options, so we can diagnose typos.
981
7a197a62
AK
982 case $ac_dashdash$ac_option in
983 --)
984 ac_dashdash=yes ;;
795ca3e5
AK
985
986 -bindir | --bindir | --bindi | --bind | --bin | --bi)
987 ac_prev=bindir ;;
988 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
ad6254c5 989 bindir=$ac_optarg ;;
795ca3e5
AK
990
991 -build | --build | --buil | --bui | --bu)
ad6254c5 992 ac_prev=build_alias ;;
795ca3e5 993 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
ad6254c5 994 build_alias=$ac_optarg ;;
795ca3e5
AK
995
996 -cache-file | --cache-file | --cache-fil | --cache-fi \
997 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
998 ac_prev=cache_file ;;
999 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1000 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
ad6254c5
AK
1001 cache_file=$ac_optarg ;;
1002
1003 --config-cache | -C)
1004 cache_file=config.cache ;;
795ca3e5 1005
7a197a62 1006 -datadir | --datadir | --datadi | --datad)
795ca3e5 1007 ac_prev=datadir ;;
7a197a62 1008 -datadir=* | --datadir=* | --datadi=* | --datad=*)
ad6254c5 1009 datadir=$ac_optarg ;;
795ca3e5 1010
7a197a62
AK
1011 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1012 | --dataroo | --dataro | --datar)
1013 ac_prev=datarootdir ;;
1014 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1015 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1016 datarootdir=$ac_optarg ;;
1017
795ca3e5 1018 -disable-* | --disable-*)
ec6a6fbe 1019 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
795ca3e5 1020 # Reject names that are not valid shell variable names.
ec6a6fbe
AK
1021 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1022 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
ad6254c5 1023 { (exit 1); exit 1; }; }
ec6a6fbe
AK
1024 ac_useropt_orig=$ac_useropt
1025 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1026 case $ac_user_opts in
1027 *"
1028"enable_$ac_useropt"
1029"*) ;;
1030 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1031 ac_unrecognized_sep=', ';;
1032 esac
1033 eval enable_$ac_useropt=no ;;
7a197a62
AK
1034
1035 -docdir | --docdir | --docdi | --doc | --do)
1036 ac_prev=docdir ;;
1037 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1038 docdir=$ac_optarg ;;
1039
1040 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1041 ac_prev=dvidir ;;
1042 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1043 dvidir=$ac_optarg ;;
795ca3e5
AK
1044
1045 -enable-* | --enable-*)
ec6a6fbe 1046 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
795ca3e5 1047 # Reject names that are not valid shell variable names.
ec6a6fbe
AK
1048 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1049 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
ad6254c5 1050 { (exit 1); exit 1; }; }
ec6a6fbe
AK
1051 ac_useropt_orig=$ac_useropt
1052 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1053 case $ac_user_opts in
1054 *"
1055"enable_$ac_useropt"
1056"*) ;;
1057 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1058 ac_unrecognized_sep=', ';;
1059 esac
1060 eval enable_$ac_useropt=\$ac_optarg ;;
795ca3e5
AK
1061
1062 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1063 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1064 | --exec | --exe | --ex)
1065 ac_prev=exec_prefix ;;
1066 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1067 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1068 | --exec=* | --exe=* | --ex=*)
ad6254c5 1069 exec_prefix=$ac_optarg ;;
795ca3e5
AK
1070
1071 -gas | --gas | --ga | --g)
1072 # Obsolete; use --with-gas.
1073 with_gas=yes ;;
1074
ad6254c5
AK
1075 -help | --help | --hel | --he | -h)
1076 ac_init_help=long ;;
1077 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1078 ac_init_help=recursive ;;
1079 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1080 ac_init_help=short ;;
795ca3e5
AK
1081
1082 -host | --host | --hos | --ho)
ad6254c5 1083 ac_prev=host_alias ;;
795ca3e5 1084 -host=* | --host=* | --hos=* | --ho=*)
ad6254c5 1085 host_alias=$ac_optarg ;;
795ca3e5 1086
7a197a62
AK
1087 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1088 ac_prev=htmldir ;;
1089 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1090 | --ht=*)
1091 htmldir=$ac_optarg ;;
1092
795ca3e5
AK
1093 -includedir | --includedir | --includedi | --included | --include \
1094 | --includ | --inclu | --incl | --inc)
1095 ac_prev=includedir ;;
1096 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1097 | --includ=* | --inclu=* | --incl=* | --inc=*)
ad6254c5 1098 includedir=$ac_optarg ;;
795ca3e5
AK
1099
1100 -infodir | --infodir | --infodi | --infod | --info | --inf)
1101 ac_prev=infodir ;;
1102 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
ad6254c5 1103 infodir=$ac_optarg ;;
795ca3e5
AK
1104
1105 -libdir | --libdir | --libdi | --libd)
1106 ac_prev=libdir ;;
1107 -libdir=* | --libdir=* | --libdi=* | --libd=*)
ad6254c5 1108 libdir=$ac_optarg ;;
795ca3e5
AK
1109
1110 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1111 | --libexe | --libex | --libe)
1112 ac_prev=libexecdir ;;
1113 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1114 | --libexe=* | --libex=* | --libe=*)
ad6254c5 1115 libexecdir=$ac_optarg ;;
795ca3e5 1116
7a197a62
AK
1117 -localedir | --localedir | --localedi | --localed | --locale)
1118 ac_prev=localedir ;;
1119 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1120 localedir=$ac_optarg ;;
1121
795ca3e5 1122 -localstatedir | --localstatedir | --localstatedi | --localstated \
7a197a62 1123 | --localstate | --localstat | --localsta | --localst | --locals)
795ca3e5
AK
1124 ac_prev=localstatedir ;;
1125 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
7a197a62 1126 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
ad6254c5 1127 localstatedir=$ac_optarg ;;
795ca3e5
AK
1128
1129 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1130 ac_prev=mandir ;;
1131 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
ad6254c5 1132 mandir=$ac_optarg ;;
795ca3e5
AK
1133
1134 -nfp | --nfp | --nf)
1135 # Obsolete; use --without-fp.
1136 with_fp=no ;;
1137
1138 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
ad6254c5 1139 | --no-cr | --no-c | -n)
795ca3e5
AK
1140 no_create=yes ;;
1141
1142 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1143 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1144 no_recursion=yes ;;
1145
1146 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1147 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1148 | --oldin | --oldi | --old | --ol | --o)
1149 ac_prev=oldincludedir ;;
1150 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1151 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1152 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
ad6254c5 1153 oldincludedir=$ac_optarg ;;
795ca3e5
AK
1154
1155 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1156 ac_prev=prefix ;;
1157 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
ad6254c5 1158 prefix=$ac_optarg ;;
795ca3e5
AK
1159
1160 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1161 | --program-pre | --program-pr | --program-p)
1162 ac_prev=program_prefix ;;
1163 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1164 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
ad6254c5 1165 program_prefix=$ac_optarg ;;
795ca3e5
AK
1166
1167 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1168 | --program-suf | --program-su | --program-s)
1169 ac_prev=program_suffix ;;
1170 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1171 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
ad6254c5 1172 program_suffix=$ac_optarg ;;
795ca3e5
AK
1173
1174 -program-transform-name | --program-transform-name \
1175 | --program-transform-nam | --program-transform-na \
1176 | --program-transform-n | --program-transform- \
1177 | --program-transform | --program-transfor \
1178 | --program-transfo | --program-transf \
1179 | --program-trans | --program-tran \
1180 | --progr-tra | --program-tr | --program-t)
1181 ac_prev=program_transform_name ;;
1182 -program-transform-name=* | --program-transform-name=* \
1183 | --program-transform-nam=* | --program-transform-na=* \
1184 | --program-transform-n=* | --program-transform-=* \
1185 | --program-transform=* | --program-transfor=* \
1186 | --program-transfo=* | --program-transf=* \
1187 | --program-trans=* | --program-tran=* \
1188 | --progr-tra=* | --program-tr=* | --program-t=*)
ad6254c5 1189 program_transform_name=$ac_optarg ;;
795ca3e5 1190
7a197a62
AK
1191 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1192 ac_prev=pdfdir ;;
1193 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1194 pdfdir=$ac_optarg ;;
1195
1196 -psdir | --psdir | --psdi | --psd | --ps)
1197 ac_prev=psdir ;;
1198 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1199 psdir=$ac_optarg ;;
1200
795ca3e5
AK
1201 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1202 | -silent | --silent | --silen | --sile | --sil)
1203 silent=yes ;;
1204
1205 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1206 ac_prev=sbindir ;;
1207 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1208 | --sbi=* | --sb=*)
ad6254c5 1209 sbindir=$ac_optarg ;;
795ca3e5
AK
1210
1211 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1212 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1213 | --sharedst | --shareds | --shared | --share | --shar \
1214 | --sha | --sh)
1215 ac_prev=sharedstatedir ;;
1216 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1217 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1218 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1219 | --sha=* | --sh=*)
ad6254c5 1220 sharedstatedir=$ac_optarg ;;
795ca3e5
AK
1221
1222 -site | --site | --sit)
1223 ac_prev=site ;;
1224 -site=* | --site=* | --sit=*)
ad6254c5 1225 site=$ac_optarg ;;
795ca3e5
AK
1226
1227 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1228 ac_prev=srcdir ;;
1229 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
ad6254c5 1230 srcdir=$ac_optarg ;;
795ca3e5
AK
1231
1232 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1233 | --syscon | --sysco | --sysc | --sys | --sy)
1234 ac_prev=sysconfdir ;;
1235 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1236 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
ad6254c5 1237 sysconfdir=$ac_optarg ;;
795ca3e5
AK
1238
1239 -target | --target | --targe | --targ | --tar | --ta | --t)
ad6254c5 1240 ac_prev=target_alias ;;
795ca3e5 1241 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
ad6254c5 1242 target_alias=$ac_optarg ;;
795ca3e5
AK
1243
1244 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1245 verbose=yes ;;
1246
ad6254c5
AK
1247 -version | --version | --versio | --versi | --vers | -V)
1248 ac_init_version=: ;;
795ca3e5
AK
1249
1250 -with-* | --with-*)
ec6a6fbe 1251 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
795ca3e5 1252 # Reject names that are not valid shell variable names.
ec6a6fbe
AK
1253 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1254 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
ad6254c5 1255 { (exit 1); exit 1; }; }
ec6a6fbe
AK
1256 ac_useropt_orig=$ac_useropt
1257 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1258 case $ac_user_opts in
1259 *"
1260"with_$ac_useropt"
1261"*) ;;
1262 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1263 ac_unrecognized_sep=', ';;
1264 esac
1265 eval with_$ac_useropt=\$ac_optarg ;;
795ca3e5
AK
1266
1267 -without-* | --without-*)
ec6a6fbe 1268 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
795ca3e5 1269 # Reject names that are not valid shell variable names.
ec6a6fbe
AK
1270 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1271 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
ad6254c5 1272 { (exit 1); exit 1; }; }
ec6a6fbe
AK
1273 ac_useropt_orig=$ac_useropt
1274 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1275 case $ac_user_opts in
1276 *"
1277"with_$ac_useropt"
1278"*) ;;
1279 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1280 ac_unrecognized_sep=', ';;
1281 esac
1282 eval with_$ac_useropt=no ;;
795ca3e5
AK
1283
1284 --x)
1285 # Obsolete; use --with-x.
1286 with_x=yes ;;
1287
1288 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1289 | --x-incl | --x-inc | --x-in | --x-i)
1290 ac_prev=x_includes ;;
1291 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1292 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
ad6254c5 1293 x_includes=$ac_optarg ;;
795ca3e5
AK
1294
1295 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1296 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1297 ac_prev=x_libraries ;;
1298 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1299 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
ad6254c5 1300 x_libraries=$ac_optarg ;;
795ca3e5 1301
ec6a6fbe 1302 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
ad6254c5
AK
1303Try \`$0 --help' for more information." >&2
1304 { (exit 1); exit 1; }; }
795ca3e5
AK
1305 ;;
1306
ad6254c5
AK
1307 *=*)
1308 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1309 # Reject names that are not valid shell variable names.
1310 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
ec6a6fbe 1311 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
ad6254c5 1312 { (exit 1); exit 1; }; }
7a197a62 1313 eval $ac_envvar=\$ac_optarg
ad6254c5
AK
1314 export $ac_envvar ;;
1315
795ca3e5 1316 *)
ad6254c5 1317 # FIXME: should be removed in autoconf 3.0.
ec6a6fbe 1318 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
ad6254c5 1319 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
ec6a6fbe 1320 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
ad6254c5 1321 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
795ca3e5
AK
1322 ;;
1323
1324 esac
1325done
1326
1327if test -n "$ac_prev"; then
ad6254c5 1328 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
ec6a6fbe 1329 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
ad6254c5 1330 { (exit 1); exit 1; }; }
795ca3e5 1331fi
795ca3e5 1332
ec6a6fbe
AK
1333if test -n "$ac_unrecognized_opts"; then
1334 case $enable_option_checking in
1335 no) ;;
1336 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1337 { (exit 1); exit 1; }; } ;;
1338 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1339 esac
1340fi
1341
1342# Check all directory arguments for consistency.
7a197a62
AK
1343for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1344 datadir sysconfdir sharedstatedir localstatedir includedir \
1345 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1346 libdir localedir mandir
795ca3e5 1347do
7a197a62 1348 eval ac_val=\$$ac_var
ec6a6fbe
AK
1349 # Remove trailing slashes.
1350 case $ac_val in
1351 */ )
1352 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1353 eval $ac_var=\$ac_val;;
1354 esac
1355 # Be sure to have absolute directory names.
ad6254c5 1356 case $ac_val in
7a197a62
AK
1357 [\\/$]* | ?:[\\/]* ) continue;;
1358 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
795ca3e5 1359 esac
ec6a6fbe 1360 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
7a197a62 1361 { (exit 1); exit 1; }; }
795ca3e5
AK
1362done
1363
ad6254c5
AK
1364# There might be people who depend on the old broken behavior: `$host'
1365# used to hold the argument of --host etc.
1366# FIXME: To remove some day.
1367build=$build_alias
1368host=$host_alias
1369target=$target_alias
1370
1371# FIXME: To remove some day.
1372if test "x$host_alias" != x; then
1373 if test "x$build_alias" = x; then
1374 cross_compiling=maybe
ec6a6fbe 1375 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
ad6254c5
AK
1376 If a cross compiler is detected then cross compile mode will be used." >&2
1377 elif test "x$build_alias" != "x$host_alias"; then
1378 cross_compiling=yes
1379 fi
1380fi
8106cdd5 1381
ad6254c5
AK
1382ac_tool_prefix=
1383test -n "$host_alias" && ac_tool_prefix=$host_alias-
1384
1385test "$silent" = yes && exec 6>/dev/null
795ca3e5 1386
795ca3e5 1387
7a197a62
AK
1388ac_pwd=`pwd` && test -n "$ac_pwd" &&
1389ac_ls_di=`ls -di .` &&
1390ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
ec6a6fbe 1391 { $as_echo "$as_me: error: working directory cannot be determined" >&2
7a197a62
AK
1392 { (exit 1); exit 1; }; }
1393test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
ec6a6fbe 1394 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
7a197a62
AK
1395 { (exit 1); exit 1; }; }
1396
1397
795ca3e5
AK
1398# Find the source files, if location was not specified.
1399if test -z "$srcdir"; then
1400 ac_srcdir_defaulted=yes
7a197a62 1401 # Try the directory containing this script, then the parent directory.
ec6a6fbe
AK
1402 ac_confdir=`$as_dirname -- "$as_myself" ||
1403$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1404 X"$as_myself" : 'X\(//\)[^/]' \| \
1405 X"$as_myself" : 'X\(//\)$' \| \
1406 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1407$as_echo X"$as_myself" |
7a197a62
AK
1408 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1409 s//\1/
1410 q
1411 }
1412 /^X\(\/\/\)[^/].*/{
1413 s//\1/
1414 q
1415 }
1416 /^X\(\/\/\)$/{
1417 s//\1/
1418 q
1419 }
1420 /^X\(\/\).*/{
1421 s//\1/
1422 q
1423 }
1424 s/.*/./; q'`
795ca3e5 1425 srcdir=$ac_confdir
7a197a62 1426 if test ! -r "$srcdir/$ac_unique_file"; then
795ca3e5
AK
1427 srcdir=..
1428 fi
1429else
1430 ac_srcdir_defaulted=no
1431fi
7a197a62
AK
1432if test ! -r "$srcdir/$ac_unique_file"; then
1433 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
ec6a6fbe 1434 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
ad6254c5 1435 { (exit 1); exit 1; }; }
795ca3e5 1436fi
7a197a62
AK
1437ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1438ac_abs_confdir=`(
ec6a6fbe 1439 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
ad6254c5 1440 { (exit 1); exit 1; }; }
7a197a62
AK
1441 pwd)`
1442# When building in place, set srcdir=.
1443if test "$ac_abs_confdir" = "$ac_pwd"; then
1444 srcdir=.
1445fi
1446# Remove unnecessary trailing slashes from srcdir.
1447# Double slashes in file names in object file debugging info
1448# mess up M-x gdb in Emacs.
1449case $srcdir in
1450*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1451esac
1452for ac_var in $ac_precious_vars; do
1453 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1454 eval ac_env_${ac_var}_value=\$${ac_var}
1455 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1456 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1457done
ad6254c5
AK
1458
1459#
1460# Report the --help message.
1461#
1462if test "$ac_init_help" = "long"; then
1463 # Omit some internal or obsolete options to make the list less imposing.
1464 # This message is too long to be a string in the A/UX 3.1 sh.
1465 cat <<_ACEOF
1466\`configure' configures this package to adapt to many kinds of systems.
1467
1468Usage: $0 [OPTION]... [VAR=VALUE]...
1469
1470To assign environment variables (e.g., CC, CFLAGS...), specify them as
1471VAR=VALUE. See below for descriptions of some of the useful variables.
1472
1473Defaults for the options are specified in brackets.
1474
1475Configuration:
1476 -h, --help display this help and exit
1477 --help=short display options specific to this package
1478 --help=recursive display the short help of all the included packages
1479 -V, --version display version information and exit
1480 -q, --quiet, --silent do not print \`checking...' messages
1481 --cache-file=FILE cache test results in FILE [disabled]
1482 -C, --config-cache alias for \`--cache-file=config.cache'
1483 -n, --no-create do not create output files
1484 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1485
ad6254c5
AK
1486Installation directories:
1487 --prefix=PREFIX install architecture-independent files in PREFIX
ec6a6fbe 1488 [$ac_default_prefix]
ad6254c5 1489 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
ec6a6fbe 1490 [PREFIX]
ad6254c5
AK
1491
1492By default, \`make install' will install all the files in
1493\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1494an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1495for instance \`--prefix=\$HOME'.
1496
1497For better control, use the options below.
1498
1499Fine tuning of the installation directories:
ec6a6fbe
AK
1500 --bindir=DIR user executables [EPREFIX/bin]
1501 --sbindir=DIR system admin executables [EPREFIX/sbin]
1502 --libexecdir=DIR program executables [EPREFIX/libexec]
1503 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1504 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1505 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1506 --libdir=DIR object code libraries [EPREFIX/lib]
1507 --includedir=DIR C header files [PREFIX/include]
1508 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1509 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1510 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1511 --infodir=DIR info documentation [DATAROOTDIR/info]
1512 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1513 --mandir=DIR man documentation [DATAROOTDIR/man]
1514 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1515 --htmldir=DIR html documentation [DOCDIR]
1516 --dvidir=DIR dvi documentation [DOCDIR]
1517 --pdfdir=DIR pdf documentation [DOCDIR]
1518 --psdir=DIR ps documentation [DOCDIR]
ad6254c5
AK
1519_ACEOF
1520
1521 cat <<\_ACEOF
1522
1523System types:
1524 --build=BUILD configure for building on BUILD [guessed]
1525 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1526 --target=TARGET configure for building compilers for TARGET [HOST]
1527_ACEOF
1528fi
1529
1530if test -n "$ac_init_help"; then
1531
1532 cat <<\_ACEOF
1533
1534Optional Features:
ec6a6fbe 1535 --disable-option-checking ignore unrecognized --enable/--with options
ad6254c5
AK
1536 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1537 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
71082be4
ZK
1538 --enable-static_link use this to link the tools to their libraries
1539 statically (default is dynamic linking
1540 --enable-lvm1_fallback use this to fall back and use LVM1 binaries if
ad6254c5 1541 device-mapper is missing from the kernel
71082be4
ZK
1542 --disable-readline disable readline support
1543 --enable-realtime enable realtime clock support
37ddf259
AK
1544 --enable-ocf enable Open Cluster Framework (OCF) compliant
1545 resource agents
71082be4
ZK
1546 --enable-cmirrord enable the cluster mirror log daemon
1547 --enable-debug enable debugging
1548 --enable-profiling gather gcov profiling data
54b362f9 1549 --enable-testing enable testing targets in the makefile
d1e8046f 1550 --enable-valgrind-pool enable valgrind awareness of pools
71082be4
ZK
1551 --disable-devmapper disable LVM2 device-mapper interaction
1552 --enable-udev_sync enable synchronisation with udev processing
1553 --enable-udev_rules install rule files needed for udev synchronisation
1554 --enable-compat enable support for old device-mapper versions
1555 --enable-units-compat enable output compatibility with old versions that
1556 that do not use KiB-style unit suffixes
1557 --disable-driver disable calls to device-mapper in the kernel
1558 --disable-o_direct disable O_DIRECT
1559 --enable-applib build application library
1560 --enable-cmdlib build shared command library
1561 --enable-pkgconfig install pkgconfig support
1562 --enable-write_install install user writable files
1563 --disable-fsadm disable fsadm
1564 --enable-dmeventd enable the device-mapper event daemon
1565 --disable-selinux disable selinux support
1566 --enable-nls enable Native Language Support
ad6254c5
AK
1567
1568Optional Packages:
1569 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1570 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
71082be4
ZK
1571 --with-user=USER set the owner of installed files [USER=]
1572 --with-group=GROUP set the group owner of installed files [GROUP=]
1573 --with-device-uid=UID set the owner used for new device nodes [UID=0]
1574 --with-device-gid=GID set the group used for new device nodes [GID=0]
1575 --with-device-mode=MODE set the mode used for new device nodes [MODE=0600]
ad6254c5 1576 --with-lvm1=TYPE LVM1 metadata support: internal/shared/none
71082be4 1577 [TYPE=internal]
ad6254c5 1578 --with-pool=TYPE GFS pool read-only support: internal/shared/none
71082be4
ZK
1579 [TYPE=internal]
1580 --with-cluster=TYPE cluster LVM locking support: internal/shared/none
1581 [TYPE=internal]
1582 --with-snapshots=TYPE snapshot support: internal/shared/none
1583 [TYPE=internal]
1584 --with-mirrors=TYPE mirror support: internal/shared/none
1585 [TYPE=internal]
1586 --with-replicators=TYPE replicator support: internal/shared/none
1587 [TYPE=none]
1588 --with-clvmd=TYPE build cluster LVM Daemon
8c222979 1589 The following cluster manager combinations are valid:
a946372e
AK
1590 * cman,gulm (RHEL4 or equivalent)
1591 * cman (RHEL5 or equivalent)
1592 * cman,corosync,openais (or selection of them)
1091650a 1593 * singlenode (localhost only)
a946372e
AK
1594 * all (autodetect)
1595 * none (disable build)
71082be4 1596 [TYPE=none]
8c4e8a18
FDN
1597 --with-clvmd-pidfile=PATH
1598 clvmd pidfile [/var/run/clvmd.pid]
71082be4
ZK
1599 --with-cmirrord-pidfile=PATH
1600 cmirrord pidfile [/var/run/cmirrord.pid]
d0191583 1601 --with-optimisation=OPT C optimisation flag [OPT=-O2]
71082be4
ZK
1602 --with-localedir=DIR translation files in DIR [PREFIX/share/locale]
1603 --with-confdir=DIR configuration files in DIR [/etc]
1604 --with-staticdir=DIR static binaries in DIR [EPREFIX/sbin]
1605 --with-usrlibdir=DIR usrlib in DIR [PREFIX/lib]
1606 --with-usrsbindir=DIR usrsbin executables in DIR [PREFIX/sbin]
1607 --with-udev-prefix=UPREFIX
1608 install udev rule files in UPREFIX [EPREFIX]
78ce7acc 1609 --with-udevdir=DIR udev rules in DIR [UPREFIX/lib/udev/rules.d]
71082be4
ZK
1610 --with-dmeventd-pidfile=PATH
1611 dmeventd pidfile [/var/run/dmeventd.pid]
1612 --with-dmeventd-path=PATH
1613 dmeventd path [EPREFIX/sbin/dmeventd]
8bae0a1e 1614 --with-default-run-dir=DIR Default run directory [/var/run/lvm]
71082be4
ZK
1615 --with-default-system-dir=DIR
1616 default LVM system directory [/etc/lvm]
1617 --with-default-archive-subdir=SUBDIR
1618 default metadata archive subdir [archive]
1619 --with-default-backup-subdir=SUBDIR
1620 default metadata backup subdir [backup]
1621 --with-default-cache-subdir=SUBDIR
1622 default metadata cache subdir [cache]
1623 --with-default-locking-dir=DIR
1624 default locking directory [/var/lock/lvm]
fea55602
DW
1625 --with-default-data-alignment=NUM
1626 set the default data alignment in MiB [1]
71082be4 1627 --with-interface=IFACE choose kernel interface (ioctl) [ioctl]
ad6254c5
AK
1628
1629Some influential environment variables:
1630 CC C compiler command
1631 CFLAGS C compiler flags
1632 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1633 nonstandard directory <lib dir>
25fbec5b 1634 LIBS libraries to pass to the linker, e.g. -l<library>
7a197a62
AK
1635 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1636 you have headers in a nonstandard directory <include dir>
ad6254c5 1637 CPP C preprocessor
e2997b73 1638 PKG_CONFIG path to pkg-config utility
a946372e
AK
1639 PKGCONFIGINIT_CFLAGS
1640 C compiler flags for PKGCONFIGINIT, overriding pkg-config
1641 PKGCONFIGINIT_LIBS
1642 linker flags for PKGCONFIGINIT, overriding pkg-config
1643 CCS_CFLAGS C compiler flags for CCS, overriding pkg-config
1644 CCS_LIBS linker flags for CCS, overriding pkg-config
1645 GULM_CFLAGS C compiler flags for GULM, overriding pkg-config
1646 GULM_LIBS linker flags for GULM, overriding pkg-config
1647 CMAN_CFLAGS C compiler flags for CMAN, overriding pkg-config
1648 CMAN_LIBS linker flags for CMAN, overriding pkg-config
1649 COROSYNC_CFLAGS
1650 C compiler flags for COROSYNC, overriding pkg-config
1651 COROSYNC_LIBS
1652 linker flags for COROSYNC, overriding pkg-config
e2997b73
AK
1653 QUORUM_CFLAGS
1654 C compiler flags for QUORUM, overriding pkg-config
1655 QUORUM_LIBS linker flags for QUORUM, overriding pkg-config
a946372e
AK
1656 SALCK_CFLAGS
1657 C compiler flags for SALCK, overriding pkg-config
1658 SALCK_LIBS linker flags for SALCK, overriding pkg-config
e2997b73
AK
1659 CONFDB_CFLAGS
1660 C compiler flags for CONFDB, overriding pkg-config
1661 CONFDB_LIBS linker flags for CONFDB, overriding pkg-config
1662 CPG_CFLAGS C compiler flags for CPG, overriding pkg-config
1663 CPG_LIBS linker flags for CPG, overriding pkg-config
a946372e
AK
1664 DLM_CFLAGS C compiler flags for DLM, overriding pkg-config
1665 DLM_LIBS linker flags for DLM, overriding pkg-config
90c80887
AK
1666 SACKPT_CFLAGS
1667 C compiler flags for SACKPT, overriding pkg-config
1668 SACKPT_LIBS linker flags for SACKPT, overriding pkg-config
ad6254c5
AK
1669
1670Use these variables to override the choices made by `configure' or to help
1671it to find libraries and programs with nonstandard names/locations.
1672
1673_ACEOF
7a197a62 1674ac_status=$?
ad6254c5
AK
1675fi
1676
1677if test "$ac_init_help" = "recursive"; then
1678 # If there are subdirs, report their specific --help.
ad6254c5 1679 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
ec6a6fbe
AK
1680 test -d "$ac_dir" ||
1681 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1682 continue
ad6254c5
AK
1683 ac_builddir=.
1684
7a197a62
AK
1685case "$ac_dir" in
1686.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1687*)
ec6a6fbe 1688 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7a197a62 1689 # A ".." for each directory in $ac_dir_suffix.
ec6a6fbe 1690 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7a197a62
AK
1691 case $ac_top_builddir_sub in
1692 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1693 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1694 esac ;;
1695esac
1696ac_abs_top_builddir=$ac_pwd
1697ac_abs_builddir=$ac_pwd$ac_dir_suffix
1698# for backward compatibility:
1699ac_top_builddir=$ac_top_build_prefix
ad6254c5
AK
1700
1701case $srcdir in
7a197a62 1702 .) # We are building in place.
ad6254c5 1703 ac_srcdir=.
7a197a62
AK
1704 ac_top_srcdir=$ac_top_builddir_sub
1705 ac_abs_top_srcdir=$ac_pwd ;;
1706 [\\/]* | ?:[\\/]* ) # Absolute name.
ad6254c5 1707 ac_srcdir=$srcdir$ac_dir_suffix;
7a197a62
AK
1708 ac_top_srcdir=$srcdir
1709 ac_abs_top_srcdir=$srcdir ;;
1710 *) # Relative name.
1711 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1712 ac_top_srcdir=$ac_top_build_prefix$srcdir
1713 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8a2fc586 1714esac
7a197a62
AK
1715ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1716
1717 cd "$ac_dir" || { ac_status=$?; continue; }
1718 # Check for guested configure.
1719 if test -f "$ac_srcdir/configure.gnu"; then
1720 echo &&
1721 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1722 elif test -f "$ac_srcdir/configure"; then
1723 echo &&
1724 $SHELL "$ac_srcdir/configure" --help=recursive
ad6254c5 1725 else
ec6a6fbe 1726 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
7a197a62
AK
1727 fi || ac_status=$?
1728 cd "$ac_pwd" || { ac_status=$?; break; }
ad6254c5
AK
1729 done
1730fi
1731
7a197a62 1732test -n "$ac_init_help" && exit $ac_status
ad6254c5
AK
1733if $ac_init_version; then
1734 cat <<\_ACEOF
7a197a62 1735configure
ec6a6fbe 1736generated by GNU Autoconf 2.63
ad6254c5 1737
7a197a62 1738Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
ec6a6fbe 17392002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
ad6254c5
AK
1740This configure script is free software; the Free Software Foundation
1741gives unlimited permission to copy, distribute and modify it.
1742_ACEOF
7a197a62 1743 exit
ad6254c5 1744fi
7a197a62 1745cat >config.log <<_ACEOF
ad6254c5
AK
1746This file contains any messages produced by compilers while
1747running configure, to aid debugging if configure makes a mistake.
1748
1749It was created by $as_me, which was
ec6a6fbe 1750generated by GNU Autoconf 2.63. Invocation command line was
ad6254c5
AK
1751
1752 $ $0 $@
1753
1754_ACEOF
7a197a62 1755exec 5>>config.log
ad6254c5
AK
1756{
1757cat <<_ASUNAME
1758## --------- ##
1759## Platform. ##
1760## --------- ##
1761
1762hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1763uname -m = `(uname -m) 2>/dev/null || echo unknown`
1764uname -r = `(uname -r) 2>/dev/null || echo unknown`
1765uname -s = `(uname -s) 2>/dev/null || echo unknown`
1766uname -v = `(uname -v) 2>/dev/null || echo unknown`
1767
1768/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1769/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1770
1771/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1772/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1773/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
7a197a62 1774/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
ad6254c5
AK
1775/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1776/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1777/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1778
1779_ASUNAME
1780
1781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1782for as_dir in $PATH
1783do
1784 IFS=$as_save_IFS
1785 test -z "$as_dir" && as_dir=.
ec6a6fbe 1786 $as_echo "PATH: $as_dir"
ad6254c5 1787done
7a197a62 1788IFS=$as_save_IFS
ad6254c5
AK
1789
1790} >&5
1791
1792cat >&5 <<_ACEOF
1793
1794
1795## ----------- ##
1796## Core tests. ##
1797## ----------- ##
1798
1799_ACEOF
1800
1801
1802# Keep a trace of the command line.
1803# Strip out --no-create and --no-recursion so they do not pile up.
1804# Strip out --silent because we don't want to record it for future runs.
1805# Also quote any args containing shell meta-characters.
1806# Make two passes to allow for proper duplicate-argument suppression.
1807ac_configure_args=
1808ac_configure_args0=
1809ac_configure_args1=
ad6254c5
AK
1810ac_must_keep_next=false
1811for ac_pass in 1 2
1812do
1813 for ac_arg
1814 do
1815 case $ac_arg in
1816 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1817 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1818 | -silent | --silent | --silen | --sile | --sil)
1819 continue ;;
7a197a62 1820 *\'*)
ec6a6fbe 1821 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
ad6254c5
AK
1822 esac
1823 case $ac_pass in
1824 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1825 2)
1826 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1827 if test $ac_must_keep_next = true; then
8a2fc586 1828 ac_must_keep_next=false # Got value, back to normal.
ad6254c5 1829 else
8a2fc586
AK
1830 case $ac_arg in
1831 *=* | --config-cache | -C | -disable-* | --disable-* \
1832 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1833 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1834 | -with-* | --with-* | -without-* | --without-* | --x)
1835 case "$ac_configure_args0 " in
1836 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1837 esac
1838 ;;
1839 -* ) ac_must_keep_next=true ;;
1840 esac
ad6254c5 1841 fi
7a197a62 1842 ac_configure_args="$ac_configure_args '$ac_arg'"
ad6254c5
AK
1843 ;;
1844 esac
1845 done
1846done
1847$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1848$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1849
1850# When interrupted or exit'd, cleanup temporary files, and complete
1851# config.log. We remove comments because anyway the quotes in there
1852# would cause problems or look ugly.
7a197a62
AK
1853# WARNING: Use '\'' to represent an apostrophe within the trap.
1854# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
ad6254c5
AK
1855trap 'exit_status=$?
1856 # Save into config.log some information that might help in debugging.
1857 {
1858 echo
1859
1860 cat <<\_ASBOX
1861## ---------------- ##
1862## Cache variables. ##
1863## ---------------- ##
1864_ASBOX
1865 echo
1866 # The following way of writing the cache mishandles newlines in values,
7a197a62
AK
1867(
1868 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1869 eval ac_val=\$$ac_var
1870 case $ac_val in #(
1871 *${as_nl}*)
1872 case $ac_var in #(
ec6a6fbe
AK
1873 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1874$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7a197a62
AK
1875 esac
1876 case $ac_var in #(
1877 _ | IFS | as_nl) ;; #(
ec6a6fbe 1878 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7a197a62
AK
1879 *) $as_unset $ac_var ;;
1880 esac ;;
1881 esac
1882 done
ad6254c5 1883 (set) 2>&1 |
7a197a62
AK
1884 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1885 *${as_nl}ac_space=\ *)
ad6254c5 1886 sed -n \
7a197a62
AK
1887 "s/'\''/'\''\\\\'\'''\''/g;
1888 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1889 ;; #(
ad6254c5 1890 *)
7a197a62 1891 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
ad6254c5 1892 ;;
7a197a62
AK
1893 esac |
1894 sort
1895)
ad6254c5
AK
1896 echo
1897
1898 cat <<\_ASBOX
1899## ----------------- ##
1900## Output variables. ##
1901## ----------------- ##
1902_ASBOX
1903 echo
1904 for ac_var in $ac_subst_vars
1905 do
7a197a62
AK
1906 eval ac_val=\$$ac_var
1907 case $ac_val in
ec6a6fbe 1908 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
7a197a62 1909 esac
ec6a6fbe 1910 $as_echo "$ac_var='\''$ac_val'\''"
ad6254c5
AK
1911 done | sort
1912 echo
1913
1914 if test -n "$ac_subst_files"; then
1915 cat <<\_ASBOX
7a197a62
AK
1916## ------------------- ##
1917## File substitutions. ##
1918## ------------------- ##
ad6254c5
AK
1919_ASBOX
1920 echo
1921 for ac_var in $ac_subst_files
1922 do
7a197a62
AK
1923 eval ac_val=\$$ac_var
1924 case $ac_val in
ec6a6fbe 1925 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
7a197a62 1926 esac
ec6a6fbe 1927 $as_echo "$ac_var='\''$ac_val'\''"
ad6254c5
AK
1928 done | sort
1929 echo
1930 fi
1931
1932 if test -s confdefs.h; then
1933 cat <<\_ASBOX
1934## ----------- ##
1935## confdefs.h. ##
1936## ----------- ##
1937_ASBOX
1938 echo
7a197a62 1939 cat confdefs.h
ad6254c5
AK
1940 echo
1941 fi
1942 test "$ac_signal" != 0 &&
ec6a6fbe
AK
1943 $as_echo "$as_me: caught signal $ac_signal"
1944 $as_echo "$as_me: exit $exit_status"
ad6254c5 1945 } >&5
7a197a62
AK
1946 rm -f core *.core core.conftest.* &&
1947 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
ad6254c5 1948 exit $exit_status
7a197a62 1949' 0
ad6254c5
AK
1950for ac_signal in 1 2 13 15; do
1951 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1952done
1953ac_signal=0
1954
1955# confdefs.h avoids OS command line length limits that DEFS can exceed.
7a197a62 1956rm -f -r conftest* confdefs.h
ad6254c5
AK
1957
1958# Predefined preprocessor variables.
1959
1960cat >>confdefs.h <<_ACEOF
1961#define PACKAGE_NAME "$PACKAGE_NAME"
1962_ACEOF
1963
1964
1965cat >>confdefs.h <<_ACEOF
1966#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1967_ACEOF
1968
1969
1970cat >>confdefs.h <<_ACEOF
1971#define PACKAGE_VERSION "$PACKAGE_VERSION"
1972_ACEOF
8106cdd5 1973
ad6254c5
AK
1974
1975cat >>confdefs.h <<_ACEOF
1976#define PACKAGE_STRING "$PACKAGE_STRING"
1977_ACEOF
1978
1979
1980cat >>confdefs.h <<_ACEOF
1981#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1982_ACEOF
1983
1984
1985# Let the site file select an alternate cache file if it wants to.
ec6a6fbe
AK
1986# Prefer an explicitly selected file to automatically selected ones.
1987ac_site_file1=NONE
1988ac_site_file2=NONE
7a197a62 1989if test -n "$CONFIG_SITE"; then
ec6a6fbe 1990 ac_site_file1=$CONFIG_SITE
7a197a62 1991elif test "x$prefix" != xNONE; then
ec6a6fbe
AK
1992 ac_site_file1=$prefix/share/config.site
1993 ac_site_file2=$prefix/etc/config.site
7a197a62 1994else
ec6a6fbe
AK
1995 ac_site_file1=$ac_default_prefix/share/config.site
1996 ac_site_file2=$ac_default_prefix/etc/config.site
795ca3e5 1997fi
ec6a6fbe 1998for ac_site_file in "$ac_site_file1" "$ac_site_file2"
7a197a62 1999do
ec6a6fbe 2000 test "x$ac_site_file" = xNONE && continue
795ca3e5 2001 if test -r "$ac_site_file"; then
ec6a6fbe
AK
2002 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2003$as_echo "$as_me: loading site script $ac_site_file" >&6;}
ad6254c5 2004 sed 's/^/| /' "$ac_site_file" >&5
795ca3e5
AK
2005 . "$ac_site_file"
2006 fi
2007done
2008
2009if test -r "$cache_file"; then
ad6254c5
AK
2010 # Some versions of bash will fail to source /dev/null (special
2011 # files actually), so we avoid doing that.
2012 if test -f "$cache_file"; then
ec6a6fbe
AK
2013 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2014$as_echo "$as_me: loading cache $cache_file" >&6;}
ad6254c5 2015 case $cache_file in
7a197a62
AK
2016 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2017 *) . "./$cache_file";;
ad6254c5
AK
2018 esac
2019 fi
795ca3e5 2020else
ec6a6fbe
AK
2021 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2022$as_echo "$as_me: creating cache $cache_file" >&6;}
ad6254c5
AK
2023 >$cache_file
2024fi
2025
2026# Check that the precious variables saved in the cache have kept the same
2027# value.
2028ac_cache_corrupted=false
7a197a62 2029for ac_var in $ac_precious_vars; do
ad6254c5
AK
2030 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2031 eval ac_new_set=\$ac_env_${ac_var}_set
7a197a62
AK
2032 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2033 eval ac_new_val=\$ac_env_${ac_var}_value
ad6254c5
AK
2034 case $ac_old_set,$ac_new_set in
2035 set,)
ec6a6fbe
AK
2036 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2037$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
ad6254c5
AK
2038 ac_cache_corrupted=: ;;
2039 ,set)
ec6a6fbe
AK
2040 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2041$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
ad6254c5
AK
2042 ac_cache_corrupted=: ;;
2043 ,);;
2044 *)
2045 if test "x$ac_old_val" != "x$ac_new_val"; then
ec6a6fbe
AK
2046 # differences in whitespace do not lead to failure.
2047 ac_old_val_w=`echo x $ac_old_val`
2048 ac_new_val_w=`echo x $ac_new_val`
2049 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2050 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2051$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2052 ac_cache_corrupted=:
2053 else
2054 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2055$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2056 eval $ac_var=\$ac_old_val
2057 fi
2058 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2059$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2060 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2061$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
ad6254c5
AK
2062 fi;;
2063 esac
2064 # Pass precious variables to config.status.
2065 if test "$ac_new_set" = set; then
2066 case $ac_new_val in
ec6a6fbe 2067 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
ad6254c5
AK
2068 *) ac_arg=$ac_var=$ac_new_val ;;
2069 esac
2070 case " $ac_configure_args " in
2071 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2072 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2073 esac
2074 fi
2075done
2076if $ac_cache_corrupted; then
ec6a6fbe
AK
2077 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2078$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2079 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2080$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2081 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2082$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
ad6254c5 2083 { (exit 1); exit 1; }; }
795ca3e5
AK
2084fi
2085
ad6254c5
AK
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
7a197a62
AK
2102ac_ext=c
2103ac_cpp='$CPP $CPPFLAGS'
2104ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2105ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2106ac_compiler_gnu=$ac_cv_c_compiler_gnu
ad6254c5 2107
795ca3e5
AK
2108
2109
7a197a62 2110ac_config_headers="$ac_config_headers lib/misc/configure.h"
72b2cb61
AK
2111
2112
80992638 2113################################################################################
795ca3e5 2114ac_aux_dir=
7a197a62
AK
2115for ac_dir in autoconf "$srcdir"/autoconf; do
2116 if test -f "$ac_dir/install-sh"; then
795ca3e5
AK
2117 ac_aux_dir=$ac_dir
2118 ac_install_sh="$ac_aux_dir/install-sh -c"
2119 break
7a197a62 2120 elif test -f "$ac_dir/install.sh"; then
795ca3e5
AK
2121 ac_aux_dir=$ac_dir
2122 ac_install_sh="$ac_aux_dir/install.sh -c"
2123 break
7a197a62 2124 elif test -f "$ac_dir/shtool"; then
ad6254c5
AK
2125 ac_aux_dir=$ac_dir
2126 ac_install_sh="$ac_aux_dir/shtool install -c"
2127 break
795ca3e5
AK
2128 fi
2129done
2130if test -z "$ac_aux_dir"; then
ec6a6fbe
AK
2131 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2132$as_echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
ad6254c5 2133 { (exit 1); exit 1; }; }
795ca3e5 2134fi
7a197a62
AK
2135
2136# These three variables are undocumented and unsupported,
2137# and are intended to be withdrawn in a future Autoconf release.
2138# They can cause serious problems if a builder's source tree is in a directory
2139# whose full name contains unusual characters.
2140ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2141ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2142ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2143
8ce0cbda
AK
2144
2145
ad6254c5 2146################################################################################
8ce0cbda 2147# Make sure we can run config.sub.
7a197a62 2148$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
ec6a6fbe
AK
2149 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2150$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
ad6254c5
AK
2151 { (exit 1); exit 1; }; }
2152
ec6a6fbe
AK
2153{ $as_echo "$as_me:$LINENO: checking build system type" >&5
2154$as_echo_n "checking build system type... " >&6; }
ad6254c5 2155if test "${ac_cv_build+set}" = set; then
ec6a6fbe 2156 $as_echo_n "(cached) " >&6
ad6254c5 2157else
7a197a62
AK
2158 ac_build_alias=$build_alias
2159test "x$ac_build_alias" = x &&
2160 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2161test "x$ac_build_alias" = x &&
ec6a6fbe
AK
2162 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2163$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
ad6254c5 2164 { (exit 1); exit 1; }; }
7a197a62 2165ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
ec6a6fbe
AK
2166 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2167$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
ad6254c5
AK
2168 { (exit 1); exit 1; }; }
2169
2170fi
ec6a6fbe
AK
2171{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2172$as_echo "$ac_cv_build" >&6; }
7a197a62
AK
2173case $ac_cv_build in
2174*-*-*) ;;
ec6a6fbe
AK
2175*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2176$as_echo "$as_me: error: invalid value of canonical build" >&2;}
7a197a62
AK
2177 { (exit 1); exit 1; }; };;
2178esac
ad6254c5 2179build=$ac_cv_build
7a197a62
AK
2180ac_save_IFS=$IFS; IFS='-'
2181set x $ac_cv_build
2182shift
2183build_cpu=$1
2184build_vendor=$2
2185shift; shift
2186# Remember, the first character of IFS is used to create $*,
2187# except with old shells:
2188build_os=$*
2189IFS=$ac_save_IFS
2190case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
ad6254c5
AK
2191
2192
ec6a6fbe
AK
2193{ $as_echo "$as_me:$LINENO: checking host system type" >&5
2194$as_echo_n "checking host system type... " >&6; }
ad6254c5 2195if test "${ac_cv_host+set}" = set; then
ec6a6fbe 2196 $as_echo_n "(cached) " >&6
ad6254c5 2197else
7a197a62
AK
2198 if test "x$host_alias" = x; then
2199 ac_cv_host=$ac_cv_build
2200else
2201 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
ec6a6fbe
AK
2202 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2203$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
ad6254c5 2204 { (exit 1); exit 1; }; }
7a197a62 2205fi
ad6254c5
AK
2206
2207fi
ec6a6fbe
AK
2208{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2209$as_echo "$ac_cv_host" >&6; }
7a197a62
AK
2210case $ac_cv_host in
2211*-*-*) ;;
ec6a6fbe
AK
2212*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2213$as_echo "$as_me: error: invalid value of canonical host" >&2;}
7a197a62
AK
2214 { (exit 1); exit 1; }; };;
2215esac
ad6254c5 2216host=$ac_cv_host
7a197a62
AK
2217ac_save_IFS=$IFS; IFS='-'
2218set x $ac_cv_host
2219shift
2220host_cpu=$1
2221host_vendor=$2
2222shift; shift
2223# Remember, the first character of IFS is used to create $*,
2224# except with old shells:
2225host_os=$*
2226IFS=$ac_save_IFS
2227case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
ad6254c5
AK
2228
2229
ec6a6fbe
AK
2230{ $as_echo "$as_me:$LINENO: checking target system type" >&5
2231$as_echo_n "checking target system type... " >&6; }
ad6254c5 2232if test "${ac_cv_target+set}" = set; then
ec6a6fbe 2233 $as_echo_n "(cached) " >&6
ad6254c5 2234else
7a197a62
AK
2235 if test "x$target_alias" = x; then
2236 ac_cv_target=$ac_cv_host
2237else
2238 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
ec6a6fbe
AK
2239 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2240$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
ad6254c5 2241 { (exit 1); exit 1; }; }
7a197a62 2242fi
8ce0cbda 2243
ad6254c5 2244fi
ec6a6fbe
AK
2245{ $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2246$as_echo "$ac_cv_target" >&6; }
7a197a62
AK
2247case $ac_cv_target in
2248*-*-*) ;;
ec6a6fbe
AK
2249*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2250$as_echo "$as_me: error: invalid value of canonical target" >&2;}
7a197a62
AK
2251 { (exit 1); exit 1; }; };;
2252esac
ad6254c5 2253target=$ac_cv_target
7a197a62
AK
2254ac_save_IFS=$IFS; IFS='-'
2255set x $ac_cv_target
2256shift
2257target_cpu=$1
2258target_vendor=$2
2259shift; shift
2260# Remember, the first character of IFS is used to create $*,
2261# except with old shells:
2262target_os=$*
2263IFS=$ac_save_IFS
2264case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
8ce0cbda 2265
8ce0cbda 2266
ad6254c5
AK
2267# The aliases save the names the user supplied, while $host etc.
2268# will get canonicalized.
2269test -n "$target_alias" &&
8ce0cbda
AK
2270 test "$program_prefix$program_suffix$program_transform_name" = \
2271 NONENONEs,x,x, &&
2272 program_prefix=${target_alias}-
2273
8ce0cbda
AK
2274case "$host_os" in
2275 linux*)
7f54ef36 2276 CFLAGS="$CFLAGS"
8ce0cbda
AK
2277 COPTIMISE_FLAG="-O2"
2278 CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym"
2279 CLDWHOLEARCHIVE="-Wl,-whole-archive"
2280 CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive"
2281 LDDEPS="$LDDEPS .export.sym"
2282 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
d0191583 2283 LIB_SUFFIX=so
8ce0cbda
AK
2284 DEVMAPPER=yes
2285 ODIRECT=yes
d0191583 2286 DM_IOCTLS=yes
8ce0cbda
AK
2287 SELINUX=yes
2288 CLUSTER=internal
93bd259b 2289 FSADM=yes
d0191583 2290 ;;
8ce0cbda
AK
2291 darwin*)
2292 CFLAGS="$CFLAGS -no-cpp-precomp -fno-common"
2293 COPTIMISE_FLAG="-O2"
2294 CLDFLAGS="$CLDFLAGS"
2295 CLDWHOLEARCHIVE="-all_load"
2296 CLDNOWHOLEARCHIVE=
d0191583 2297 LIB_SUFFIX=dylib
a653923f 2298 DEVMAPPER=yes
8ce0cbda 2299 ODIRECT=no
d0191583 2300 DM_IOCTLS=no
8ce0cbda
AK
2301 SELINUX=no
2302 CLUSTER=none
d0191583
JM
2303 FSADM=no
2304 ;;
8ce0cbda
AK
2305esac
2306
80992638 2307################################################################################
ec6a6fbe
AK
2308{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
2309$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5951ef33 2310if test "${ac_cv_path_SED+set}" = set; then
ec6a6fbe 2311 $as_echo_n "(cached) " >&6
5951ef33
AK
2312else
2313 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2314 for ac_i in 1 2 3 4 5 6 7; do
2315 ac_script="$ac_script$as_nl$ac_script"
2316 done
ec6a6fbe 2317 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5951ef33 2318 $as_unset ac_script || ac_script=
ec6a6fbe 2319 if test -z "$SED"; then
5951ef33 2320 ac_path_SED_found=false
ec6a6fbe
AK
2321 # Loop through the user's path and test for each of PROGNAME-LIST
2322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5951ef33
AK
2323for as_dir in $PATH
2324do
2325 IFS=$as_save_IFS
2326 test -z "$as_dir" && as_dir=.
2327 for ac_prog in sed gsed; do
ec6a6fbe
AK
2328 for ac_exec_ext in '' $ac_executable_extensions; do
2329 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2330 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2331# Check for GNU ac_path_SED and select it if it is found.
5951ef33
AK
2332 # Check for GNU $ac_path_SED
2333case `"$ac_path_SED" --version 2>&1` in
2334*GNU*)
2335 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2336*)
2337 ac_count=0
ec6a6fbe 2338 $as_echo_n 0123456789 >"conftest.in"
5951ef33
AK
2339 while :
2340 do
2341 cat "conftest.in" "conftest.in" >"conftest.tmp"
2342 mv "conftest.tmp" "conftest.in"
2343 cp "conftest.in" "conftest.nl"
ec6a6fbe 2344 $as_echo '' >> "conftest.nl"
5951ef33
AK
2345 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2346 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2347 ac_count=`expr $ac_count + 1`
2348 if test $ac_count -gt ${ac_path_SED_max-0}; then
2349 # Best one so far, save it but keep looking for a better one
2350 ac_cv_path_SED="$ac_path_SED"
2351 ac_path_SED_max=$ac_count
2352 fi
2353 # 10*(2^10) chars as input seems more than enough
2354 test $ac_count -gt 10 && break
2355 done
2356 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2357esac
2358
ec6a6fbe
AK
2359 $ac_path_SED_found && break 3
2360 done
5951ef33
AK
2361 done
2362done
5951ef33 2363IFS=$as_save_IFS
ec6a6fbe
AK
2364 if test -z "$ac_cv_path_SED"; then
2365 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
2366$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
5951ef33 2367 { (exit 1); exit 1; }; }
ec6a6fbe 2368 fi
5951ef33
AK
2369else
2370 ac_cv_path_SED=$SED
2371fi
2372
2373fi
ec6a6fbe
AK
2374{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
2375$as_echo "$ac_cv_path_SED" >&6; }
5951ef33
AK
2376 SED="$ac_cv_path_SED"
2377 rm -f conftest.sed
2378
ad6254c5 2379for ac_prog in gawk mawk nawk awk
795ca3e5 2380do
ad6254c5 2381 # Extract the first word of "$ac_prog", so it can be a program name with args.
795ca3e5 2382set dummy $ac_prog; ac_word=$2
ec6a6fbe
AK
2383{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2384$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2385if test "${ac_cv_prog_AWK+set}" = set; then
ec6a6fbe 2386 $as_echo_n "(cached) " >&6
795ca3e5
AK
2387else
2388 if test -n "$AWK"; then
2389 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2390else
ad6254c5
AK
2391as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2392for as_dir in $PATH
2393do
2394 IFS=$as_save_IFS
2395 test -z "$as_dir" && as_dir=.
2396 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2398 ac_cv_prog_AWK="$ac_prog"
ec6a6fbe 2399 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2400 break 2
2401 fi
2402done
2403done
7a197a62 2404IFS=$as_save_IFS
ad6254c5 2405
795ca3e5
AK
2406fi
2407fi
ad6254c5 2408AWK=$ac_cv_prog_AWK
795ca3e5 2409if test -n "$AWK"; then
ec6a6fbe
AK
2410 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2411$as_echo "$AWK" >&6; }
795ca3e5 2412else
ec6a6fbe
AK
2413 { $as_echo "$as_me:$LINENO: result: no" >&5
2414$as_echo "no" >&6; }
795ca3e5
AK
2415fi
2416
7a197a62 2417
ad6254c5
AK
2418 test -n "$AWK" && break
2419done
2420
2421ac_ext=c
2422ac_cpp='$CPP $CPPFLAGS'
2423ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2424ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2425ac_compiler_gnu=$ac_cv_c_compiler_gnu
2426if test -n "$ac_tool_prefix"; then
2427 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2428set dummy ${ac_tool_prefix}gcc; ac_word=$2
ec6a6fbe
AK
2429{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2430$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2431if test "${ac_cv_prog_CC+set}" = set; then
ec6a6fbe 2432 $as_echo_n "(cached) " >&6
ad6254c5
AK
2433else
2434 if test -n "$CC"; then
2435 ac_cv_prog_CC="$CC" # Let the user override the test.
2436else
2437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2438for as_dir in $PATH
2439do
2440 IFS=$as_save_IFS
2441 test -z "$as_dir" && as_dir=.
2442 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2444 ac_cv_prog_CC="${ac_tool_prefix}gcc"
ec6a6fbe 2445 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2446 break 2
2447 fi
2448done
8106cdd5 2449done
7a197a62 2450IFS=$as_save_IFS
8106cdd5 2451
ad6254c5
AK
2452fi
2453fi
2454CC=$ac_cv_prog_CC
2455if test -n "$CC"; then
ec6a6fbe
AK
2456 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2457$as_echo "$CC" >&6; }
ad6254c5 2458else
ec6a6fbe
AK
2459 { $as_echo "$as_me:$LINENO: result: no" >&5
2460$as_echo "no" >&6; }
ad6254c5
AK
2461fi
2462
7a197a62 2463
ad6254c5
AK
2464fi
2465if test -z "$ac_cv_prog_CC"; then
2466 ac_ct_CC=$CC
2467 # Extract the first word of "gcc", so it can be a program name with args.
8106cdd5 2468set dummy gcc; ac_word=$2
ec6a6fbe
AK
2469{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2470$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2471if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
ec6a6fbe 2472 $as_echo_n "(cached) " >&6
ad6254c5
AK
2473else
2474 if test -n "$ac_ct_CC"; then
2475 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2476else
2477as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2478for as_dir in $PATH
2479do
2480 IFS=$as_save_IFS
2481 test -z "$as_dir" && as_dir=.
2482 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2484 ac_cv_prog_ac_ct_CC="gcc"
ec6a6fbe 2485 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2486 break 2
2487 fi
2488done
2489done
7a197a62 2490IFS=$as_save_IFS
ad6254c5
AK
2491
2492fi
2493fi
2494ac_ct_CC=$ac_cv_prog_ac_ct_CC
2495if test -n "$ac_ct_CC"; then
ec6a6fbe
AK
2496 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2497$as_echo "$ac_ct_CC" >&6; }
ad6254c5 2498else
ec6a6fbe
AK
2499 { $as_echo "$as_me:$LINENO: result: no" >&5
2500$as_echo "no" >&6; }
ad6254c5
AK
2501fi
2502
7a197a62
AK
2503 if test "x$ac_ct_CC" = x; then
2504 CC=""
2505 else
2506 case $cross_compiling:$ac_tool_warned in
2507yes:)
ec6a6fbe
AK
2508{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2509$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7a197a62
AK
2510ac_tool_warned=yes ;;
2511esac
2512 CC=$ac_ct_CC
2513 fi
ad6254c5
AK
2514else
2515 CC="$ac_cv_prog_CC"
2516fi
2517
2518if test -z "$CC"; then
7a197a62
AK
2519 if test -n "$ac_tool_prefix"; then
2520 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
ad6254c5 2521set dummy ${ac_tool_prefix}cc; ac_word=$2
ec6a6fbe
AK
2522{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2523$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2524if test "${ac_cv_prog_CC+set}" = set; then
ec6a6fbe 2525 $as_echo_n "(cached) " >&6
8106cdd5
AK
2526else
2527 if test -n "$CC"; then
2528 ac_cv_prog_CC="$CC" # Let the user override the test.
2529else
ad6254c5
AK
2530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2531for as_dir in $PATH
2532do
2533 IFS=$as_save_IFS
2534 test -z "$as_dir" && as_dir=.
2535 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2537 ac_cv_prog_CC="${ac_tool_prefix}cc"
ec6a6fbe 2538 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2539 break 2
2540 fi
2541done
2542done
7a197a62 2543IFS=$as_save_IFS
ad6254c5 2544
8106cdd5
AK
2545fi
2546fi
ad6254c5 2547CC=$ac_cv_prog_CC
8106cdd5 2548if test -n "$CC"; then
ec6a6fbe
AK
2549 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2550$as_echo "$CC" >&6; }
ad6254c5 2551else
ec6a6fbe
AK
2552 { $as_echo "$as_me:$LINENO: result: no" >&5
2553$as_echo "no" >&6; }
ad6254c5
AK
2554fi
2555
8106cdd5 2556
7a197a62 2557 fi
ad6254c5 2558fi
795ca3e5
AK
2559if test -z "$CC"; then
2560 # Extract the first word of "cc", so it can be a program name with args.
2561set dummy cc; ac_word=$2
ec6a6fbe
AK
2562{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2563$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2564if test "${ac_cv_prog_CC+set}" = set; then
ec6a6fbe 2565 $as_echo_n "(cached) " >&6
795ca3e5
AK
2566else
2567 if test -n "$CC"; then
2568 ac_cv_prog_CC="$CC" # Let the user override the test.
2569else
795ca3e5 2570 ac_prog_rejected=no
ad6254c5
AK
2571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2572for as_dir in $PATH
2573do
2574 IFS=$as_save_IFS
2575 test -z "$as_dir" && as_dir=.
2576 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5
AK
2578 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2579 ac_prog_rejected=yes
2580 continue
2581 fi
2582 ac_cv_prog_CC="cc"
ec6a6fbe 2583 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2584 break 2
2585 fi
2586done
2587done
7a197a62 2588IFS=$as_save_IFS
ad6254c5 2589
795ca3e5
AK
2590if test $ac_prog_rejected = yes; then
2591 # We found a bogon in the path, so make sure we never use it.
2592 set dummy $ac_cv_prog_CC
2593 shift
ad6254c5 2594 if test $# != 0; then
795ca3e5
AK
2595 # We chose a different compiler from the bogus one.
2596 # However, it has the same basename, so the bogon will be chosen
2597 # first if we set CC to just the basename; use the full file name.
2598 shift
ad6254c5 2599 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
795ca3e5
AK
2600 fi
2601fi
2602fi
2603fi
ad6254c5 2604CC=$ac_cv_prog_CC
795ca3e5 2605if test -n "$CC"; then
ec6a6fbe
AK
2606 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2607$as_echo "$CC" >&6; }
795ca3e5 2608else
ec6a6fbe
AK
2609 { $as_echo "$as_me:$LINENO: result: no" >&5
2610$as_echo "no" >&6; }
795ca3e5
AK
2611fi
2612
7a197a62 2613
ad6254c5
AK
2614fi
2615if test -z "$CC"; then
2616 if test -n "$ac_tool_prefix"; then
7a197a62 2617 for ac_prog in cl.exe
ad6254c5
AK
2618 do
2619 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2620set dummy $ac_tool_prefix$ac_prog; ac_word=$2
ec6a6fbe
AK
2621{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2622$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2623if test "${ac_cv_prog_CC+set}" = set; then
ec6a6fbe 2624 $as_echo_n "(cached) " >&6
795ca3e5
AK
2625else
2626 if test -n "$CC"; then
2627 ac_cv_prog_CC="$CC" # Let the user override the test.
2628else
ad6254c5
AK
2629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2630for as_dir in $PATH
2631do
2632 IFS=$as_save_IFS
2633 test -z "$as_dir" && as_dir=.
2634 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2635 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2636 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
ec6a6fbe 2637 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2638 break 2
2639 fi
2640done
2641done
7a197a62 2642IFS=$as_save_IFS
ad6254c5 2643
795ca3e5
AK
2644fi
2645fi
ad6254c5 2646CC=$ac_cv_prog_CC
795ca3e5 2647if test -n "$CC"; then
ec6a6fbe
AK
2648 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2649$as_echo "$CC" >&6; }
795ca3e5 2650else
ec6a6fbe
AK
2651 { $as_echo "$as_me:$LINENO: result: no" >&5
2652$as_echo "no" >&6; }
795ca3e5 2653fi
ad6254c5 2654
7a197a62 2655
ad6254c5
AK
2656 test -n "$CC" && break
2657 done
2658fi
2659if test -z "$CC"; then
2660 ac_ct_CC=$CC
7a197a62 2661 for ac_prog in cl.exe
ad6254c5
AK
2662do
2663 # Extract the first word of "$ac_prog", so it can be a program name with args.
2664set dummy $ac_prog; ac_word=$2
ec6a6fbe
AK
2665{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2666$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2667if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
ec6a6fbe 2668 $as_echo_n "(cached) " >&6
ad6254c5
AK
2669else
2670 if test -n "$ac_ct_CC"; then
2671 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2672else
2673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2674for as_dir in $PATH
2675do
2676 IFS=$as_save_IFS
2677 test -z "$as_dir" && as_dir=.
2678 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2680 ac_cv_prog_ac_ct_CC="$ac_prog"
ec6a6fbe 2681 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5 2682 break 2
795ca3e5 2683 fi
ad6254c5
AK
2684done
2685done
7a197a62 2686IFS=$as_save_IFS
ad6254c5
AK
2687
2688fi
2689fi
2690ac_ct_CC=$ac_cv_prog_ac_ct_CC
2691if test -n "$ac_ct_CC"; then
ec6a6fbe
AK
2692 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2693$as_echo "$ac_ct_CC" >&6; }
ad6254c5 2694else
ec6a6fbe
AK
2695 { $as_echo "$as_me:$LINENO: result: no" >&5
2696$as_echo "no" >&6; }
795ca3e5
AK
2697fi
2698
7a197a62 2699
ad6254c5
AK
2700 test -n "$ac_ct_CC" && break
2701done
795ca3e5 2702
7a197a62
AK
2703 if test "x$ac_ct_CC" = x; then
2704 CC=""
2705 else
2706 case $cross_compiling:$ac_tool_warned in
2707yes:)
ec6a6fbe
AK
2708{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2709$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7a197a62
AK
2710ac_tool_warned=yes ;;
2711esac
2712 CC=$ac_ct_CC
2713 fi
ad6254c5
AK
2714fi
2715
2716fi
2717
2718
ec6a6fbe
AK
2719test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2720$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2721{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
ad6254c5 2722See \`config.log' for more details." >&5
ec6a6fbe 2723$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
ad6254c5 2724See \`config.log' for more details." >&2;}
ec6a6fbe 2725 { (exit 1); exit 1; }; }; }
ad6254c5
AK
2726
2727# Provide some information about the compiler.
ec6a6fbe
AK
2728$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2729set X $ac_compile
2730ac_compiler=$2
7a197a62
AK
2731{ (ac_try="$ac_compiler --version >&5"
2732case "(($ac_try" in
2733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2734 *) ac_try_echo=$ac_try;;
2735esac
ec6a6fbe
AK
2736eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2737$as_echo "$ac_try_echo") >&5
7a197a62 2738 (eval "$ac_compiler --version >&5") 2>&5
ad6254c5 2739 ac_status=$?
ec6a6fbe 2740 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2741 (exit $ac_status); }
7a197a62
AK
2742{ (ac_try="$ac_compiler -v >&5"
2743case "(($ac_try" in
2744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2745 *) ac_try_echo=$ac_try;;
2746esac
ec6a6fbe
AK
2747eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2748$as_echo "$ac_try_echo") >&5
7a197a62 2749 (eval "$ac_compiler -v >&5") 2>&5
ad6254c5 2750 ac_status=$?
ec6a6fbe 2751 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2752 (exit $ac_status); }
7a197a62
AK
2753{ (ac_try="$ac_compiler -V >&5"
2754case "(($ac_try" in
2755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2756 *) ac_try_echo=$ac_try;;
2757esac
ec6a6fbe
AK
2758eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2759$as_echo "$ac_try_echo") >&5
7a197a62 2760 (eval "$ac_compiler -V >&5") 2>&5
ad6254c5 2761 ac_status=$?
ec6a6fbe 2762 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
2763 (exit $ac_status); }
2764
2765cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2766/* confdefs.h. */
2767_ACEOF
2768cat confdefs.h >>conftest.$ac_ext
2769cat >>conftest.$ac_ext <<_ACEOF
2770/* end confdefs.h. */
2771
2772int
2773main ()
2774{
2775
2776 ;
2777 return 0;
2778}
2779_ACEOF
2780ac_clean_files_save=$ac_clean_files
ec6a6fbe 2781ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
ad6254c5
AK
2782# Try to create an executable without -o first, disregard a.out.
2783# It will help us diagnose broken compilers, and finding out an intuition
2784# of exeext.
ec6a6fbe
AK
2785{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2786$as_echo_n "checking for C compiler default output file name... " >&6; }
2787ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2788
2789# The possible output files:
2790ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2791
7a197a62
AK
2792ac_rmfiles=
2793for ac_file in $ac_files
2794do
2795 case $ac_file in
ec6a6fbe 2796 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
7a197a62
AK
2797 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2798 esac
2799done
2800rm -f $ac_rmfiles
2801
2802if { (ac_try="$ac_link_default"
2803case "(($ac_try" in
2804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2805 *) ac_try_echo=$ac_try;;
2806esac
ec6a6fbe
AK
2807eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2808$as_echo "$ac_try_echo") >&5
7a197a62 2809 (eval "$ac_link_default") 2>&5
ad6254c5 2810 ac_status=$?
ec6a6fbe 2811 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2812 (exit $ac_status); }; then
7a197a62
AK
2813 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2814# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2815# in a Makefile. We should not override ac_cv_exeext if it was cached,
2816# so that the user can short-circuit this test for compilers unknown to
2817# Autoconf.
25fbec5b 2818for ac_file in $ac_files ''
ad6254c5
AK
2819do
2820 test -f "$ac_file" || continue
2821 case $ac_file in
ec6a6fbe 2822 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
8a2fc586 2823 ;;
ad6254c5 2824 [ab].out )
8a2fc586
AK
2825 # We found the default executable, but exeext='' is most
2826 # certainly right.
2827 break;;
ad6254c5 2828 *.* )
7a197a62
AK
2829 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2830 then :; else
2831 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2832 fi
2833 # We set ac_cv_exeext here because the later test for it is not
2834 # safe: cross compilers may not add the suffix if given an `-o'
2835 # argument, so we may need to know it at that point already.
2836 # Even if this section looks crufty: it has the advantage of
2837 # actually working.
8a2fc586 2838 break;;
ad6254c5 2839 * )
8a2fc586 2840 break;;
ad6254c5
AK
2841 esac
2842done
7a197a62
AK
2843test "$ac_cv_exeext" = no && ac_cv_exeext=
2844
ad6254c5 2845else
25fbec5b
AK
2846 ac_file=''
2847fi
2848
ec6a6fbe
AK
2849{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2850$as_echo "$ac_file" >&6; }
25fbec5b 2851if test -z "$ac_file"; then
ec6a6fbe 2852 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
2853sed 's/^/| /' conftest.$ac_ext >&5
2854
ec6a6fbe
AK
2855{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2856$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2857{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
ad6254c5 2858See \`config.log' for more details." >&5
ec6a6fbe 2859$as_echo "$as_me: error: C compiler cannot create executables
ad6254c5 2860See \`config.log' for more details." >&2;}
ec6a6fbe 2861 { (exit 77); exit 77; }; }; }
ad6254c5
AK
2862fi
2863
2864ac_exeext=$ac_cv_exeext
ad6254c5 2865
7a197a62 2866# Check that the compiler produces executables we can run. If not, either
ad6254c5 2867# the compiler is broken, or we cross compile.
ec6a6fbe
AK
2868{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2869$as_echo_n "checking whether the C compiler works... " >&6; }
ad6254c5
AK
2870# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2871# If not cross compiling, check that we can run a simple program.
2872if test "$cross_compiling" != yes; then
2873 if { ac_try='./$ac_file'
7a197a62
AK
2874 { (case "(($ac_try" in
2875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2876 *) ac_try_echo=$ac_try;;
2877esac
ec6a6fbe
AK
2878eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2879$as_echo "$ac_try_echo") >&5
7a197a62 2880 (eval "$ac_try") 2>&5
ad6254c5 2881 ac_status=$?
ec6a6fbe 2882 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
2883 (exit $ac_status); }; }; then
2884 cross_compiling=no
795ca3e5 2885 else
ad6254c5
AK
2886 if test "$cross_compiling" = maybe; then
2887 cross_compiling=yes
2888 else
ec6a6fbe
AK
2889 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2890$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2891{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
ad6254c5
AK
2892If you meant to cross compile, use \`--host'.
2893See \`config.log' for more details." >&5
ec6a6fbe 2894$as_echo "$as_me: error: cannot run C compiled programs.
ad6254c5
AK
2895If you meant to cross compile, use \`--host'.
2896See \`config.log' for more details." >&2;}
ec6a6fbe 2897 { (exit 1); exit 1; }; }; }
ad6254c5 2898 fi
795ca3e5 2899 fi
80992638 2900fi
ec6a6fbe
AK
2901{ $as_echo "$as_me:$LINENO: result: yes" >&5
2902$as_echo "yes" >&6; }
ad6254c5 2903
ec6a6fbe 2904rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
ad6254c5 2905ac_clean_files=$ac_clean_files_save
7a197a62 2906# Check that the compiler produces executables we can run. If not, either
ad6254c5 2907# the compiler is broken, or we cross compile.
ec6a6fbe
AK
2908{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2909$as_echo_n "checking whether we are cross compiling... " >&6; }
2910{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2911$as_echo "$cross_compiling" >&6; }
7a197a62 2912
ec6a6fbe
AK
2913{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2914$as_echo_n "checking for suffix of executables... " >&6; }
7a197a62
AK
2915if { (ac_try="$ac_link"
2916case "(($ac_try" in
2917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2918 *) ac_try_echo=$ac_try;;
2919esac
ec6a6fbe
AK
2920eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2921$as_echo "$ac_try_echo") >&5
7a197a62 2922 (eval "$ac_link") 2>&5
ad6254c5 2923 ac_status=$?
ec6a6fbe 2924 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
2925 (exit $ac_status); }; then
2926 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2927# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2928# work properly (i.e., refer to `conftest.exe'), while it won't with
2929# `rm'.
2930for ac_file in conftest.exe conftest conftest.*; do
2931 test -f "$ac_file" || continue
2932 case $ac_file in
ec6a6fbe 2933 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
ad6254c5 2934 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
8a2fc586 2935 break;;
ad6254c5
AK
2936 * ) break;;
2937 esac
2938done
80992638 2939else
ec6a6fbe
AK
2940 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2941$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2942{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
ad6254c5 2943See \`config.log' for more details." >&5
ec6a6fbe 2944$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
ad6254c5 2945See \`config.log' for more details." >&2;}
ec6a6fbe 2946 { (exit 1); exit 1; }; }; }
ad6254c5
AK
2947fi
2948
2949rm -f conftest$ac_cv_exeext
ec6a6fbe
AK
2950{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2951$as_echo "$ac_cv_exeext" >&6; }
ad6254c5
AK
2952
2953rm -f conftest.$ac_ext
2954EXEEXT=$ac_cv_exeext
2955ac_exeext=$EXEEXT
ec6a6fbe
AK
2956{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2957$as_echo_n "checking for suffix of object files... " >&6; }
ad6254c5 2958if test "${ac_cv_objext+set}" = set; then
ec6a6fbe 2959 $as_echo_n "(cached) " >&6
795ca3e5 2960else
ad6254c5 2961 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2962/* confdefs.h. */
2963_ACEOF
2964cat confdefs.h >>conftest.$ac_ext
2965cat >>conftest.$ac_ext <<_ACEOF
2966/* end confdefs.h. */
2967
2968int
2969main ()
2970{
2971
2972 ;
2973 return 0;
2974}
2975_ACEOF
2976rm -f conftest.o conftest.obj
7a197a62
AK
2977if { (ac_try="$ac_compile"
2978case "(($ac_try" in
2979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2980 *) ac_try_echo=$ac_try;;
2981esac
ec6a6fbe
AK
2982eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2983$as_echo "$ac_try_echo") >&5
7a197a62 2984 (eval "$ac_compile") 2>&5
ad6254c5 2985 ac_status=$?
ec6a6fbe 2986 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2987 (exit $ac_status); }; then
7a197a62
AK
2988 for ac_file in conftest.o conftest.obj conftest.*; do
2989 test -f "$ac_file" || continue;
ad6254c5 2990 case $ac_file in
ec6a6fbe 2991 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
ad6254c5
AK
2992 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2993 break;;
2994 esac
2995done
2996else
ec6a6fbe 2997 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
2998sed 's/^/| /' conftest.$ac_ext >&5
2999
ec6a6fbe
AK
3000{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3001$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3002{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
ad6254c5 3003See \`config.log' for more details." >&5
ec6a6fbe 3004$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
ad6254c5 3005See \`config.log' for more details." >&2;}
ec6a6fbe 3006 { (exit 1); exit 1; }; }; }
ad6254c5
AK
3007fi
3008
3009rm -f conftest.$ac_cv_objext conftest.$ac_ext
3010fi
ec6a6fbe
AK
3011{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3012$as_echo "$ac_cv_objext" >&6; }
ad6254c5
AK
3013OBJEXT=$ac_cv_objext
3014ac_objext=$OBJEXT
ec6a6fbe
AK
3015{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3016$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
ad6254c5 3017if test "${ac_cv_c_compiler_gnu+set}" = set; then
ec6a6fbe 3018 $as_echo_n "(cached) " >&6
ad6254c5
AK
3019else
3020 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3021/* confdefs.h. */
3022_ACEOF
3023cat confdefs.h >>conftest.$ac_ext
3024cat >>conftest.$ac_ext <<_ACEOF
3025/* end confdefs.h. */
3026
3027int
3028main ()
3029{
3030#ifndef __GNUC__
3031 choke me
3032#endif
80992638 3033
ad6254c5
AK
3034 ;
3035 return 0;
3036}
3037_ACEOF
3038rm -f conftest.$ac_objext
7a197a62
AK
3039if { (ac_try="$ac_compile"
3040case "(($ac_try" in
3041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3042 *) ac_try_echo=$ac_try;;
3043esac
ec6a6fbe
AK
3044eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3045$as_echo "$ac_try_echo") >&5
7a197a62 3046 (eval "$ac_compile") 2>conftest.er1
ad6254c5 3047 ac_status=$?
8a2fc586
AK
3048 grep -v '^ *+' conftest.er1 >conftest.err
3049 rm -f conftest.er1
3050 cat conftest.err >&5
ec6a6fbe 3051 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
3052 (exit $ac_status); } && {
3053 test -z "$ac_c_werror_flag" ||
3054 test ! -s conftest.err
3055 } && test -s conftest.$ac_objext; then
ad6254c5 3056 ac_compiler_gnu=yes
80992638 3057else
ec6a6fbe 3058 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
3059sed 's/^/| /' conftest.$ac_ext >&5
3060
7a197a62 3061 ac_compiler_gnu=no
8106cdd5 3062fi
7a197a62
AK
3063
3064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 3065ac_cv_c_compiler_gnu=$ac_compiler_gnu
80992638 3066
ad6254c5 3067fi
ec6a6fbe
AK
3068{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3069$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3070if test $ac_compiler_gnu = yes; then
3071 GCC=yes
3072else
3073 GCC=
3074fi
ad6254c5
AK
3075ac_test_CFLAGS=${CFLAGS+set}
3076ac_save_CFLAGS=$CFLAGS
ec6a6fbe
AK
3077{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3078$as_echo_n "checking whether $CC accepts -g... " >&6; }
ad6254c5 3079if test "${ac_cv_prog_cc_g+set}" = set; then
ec6a6fbe 3080 $as_echo_n "(cached) " >&6
795ca3e5 3081else
7a197a62
AK
3082 ac_save_c_werror_flag=$ac_c_werror_flag
3083 ac_c_werror_flag=yes
3084 ac_cv_prog_cc_g=no
3085 CFLAGS="-g"
3086 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3087/* confdefs.h. */
3088_ACEOF
3089cat confdefs.h >>conftest.$ac_ext
3090cat >>conftest.$ac_ext <<_ACEOF
3091/* end confdefs.h. */
3092
3093int
3094main ()
3095{
3096
3097 ;
3098 return 0;
3099}
3100_ACEOF
3101rm -f conftest.$ac_objext
7a197a62
AK
3102if { (ac_try="$ac_compile"
3103case "(($ac_try" in
3104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3105 *) ac_try_echo=$ac_try;;
3106esac
ec6a6fbe
AK
3107eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3108$as_echo "$ac_try_echo") >&5
7a197a62 3109 (eval "$ac_compile") 2>conftest.er1
ad6254c5 3110 ac_status=$?
8a2fc586
AK
3111 grep -v '^ *+' conftest.er1 >conftest.err
3112 rm -f conftest.er1
3113 cat conftest.err >&5
ec6a6fbe 3114 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
3115 (exit $ac_status); } && {
3116 test -z "$ac_c_werror_flag" ||
3117 test ! -s conftest.err
3118 } && test -s conftest.$ac_objext; then
7a197a62
AK
3119 ac_cv_prog_cc_g=yes
3120else
ec6a6fbe 3121 $as_echo "$as_me: failed program was:" >&5
7a197a62
AK
3122sed 's/^/| /' conftest.$ac_ext >&5
3123
3124 CFLAGS=""
3125 cat >conftest.$ac_ext <<_ACEOF
3126/* confdefs.h. */
3127_ACEOF
3128cat confdefs.h >>conftest.$ac_ext
3129cat >>conftest.$ac_ext <<_ACEOF
3130/* end confdefs.h. */
3131
3132int
3133main ()
3134{
3135
3136 ;
3137 return 0;
3138}
3139_ACEOF
3140rm -f conftest.$ac_objext
3141if { (ac_try="$ac_compile"
3142case "(($ac_try" in
3143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3144 *) ac_try_echo=$ac_try;;
3145esac
ec6a6fbe
AK
3146eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3147$as_echo "$ac_try_echo") >&5
7a197a62 3148 (eval "$ac_compile") 2>conftest.er1
8a2fc586 3149 ac_status=$?
7a197a62
AK
3150 grep -v '^ *+' conftest.er1 >conftest.err
3151 rm -f conftest.er1
3152 cat conftest.err >&5
ec6a6fbe 3153 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
3154 (exit $ac_status); } && {
3155 test -z "$ac_c_werror_flag" ||
3156 test ! -s conftest.err
3157 } && test -s conftest.$ac_objext; then
7a197a62
AK
3158 :
3159else
ec6a6fbe 3160 $as_echo "$as_me: failed program was:" >&5
7a197a62
AK
3161sed 's/^/| /' conftest.$ac_ext >&5
3162
3163 ac_c_werror_flag=$ac_save_c_werror_flag
3164 CFLAGS="-g"
3165 cat >conftest.$ac_ext <<_ACEOF
3166/* confdefs.h. */
3167_ACEOF
3168cat confdefs.h >>conftest.$ac_ext
3169cat >>conftest.$ac_ext <<_ACEOF
3170/* end confdefs.h. */
3171
3172int
3173main ()
3174{
3175
3176 ;
3177 return 0;
3178}
3179_ACEOF
3180rm -f conftest.$ac_objext
3181if { (ac_try="$ac_compile"
3182case "(($ac_try" in
3183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3184 *) ac_try_echo=$ac_try;;
3185esac
ec6a6fbe
AK
3186eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3187$as_echo "$ac_try_echo") >&5
7a197a62 3188 (eval "$ac_compile") 2>conftest.er1
ad6254c5 3189 ac_status=$?
7a197a62
AK
3190 grep -v '^ *+' conftest.er1 >conftest.err
3191 rm -f conftest.er1
3192 cat conftest.err >&5
ec6a6fbe 3193 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
3194 (exit $ac_status); } && {
3195 test -z "$ac_c_werror_flag" ||
3196 test ! -s conftest.err
3197 } && test -s conftest.$ac_objext; then
795ca3e5
AK
3198 ac_cv_prog_cc_g=yes
3199else
ec6a6fbe 3200 $as_echo "$as_me: failed program was:" >&5
ad6254c5 3201sed 's/^/| /' conftest.$ac_ext >&5
80992638 3202
7a197a62
AK
3203
3204fi
3205
3206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3207fi
3208
3209rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8106cdd5 3210fi
7a197a62
AK
3211
3212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3213 ac_c_werror_flag=$ac_save_c_werror_flag
ad6254c5 3214fi
ec6a6fbe
AK
3215{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3216$as_echo "$ac_cv_prog_cc_g" >&6; }
795ca3e5 3217if test "$ac_test_CFLAGS" = set; then
ad6254c5 3218 CFLAGS=$ac_save_CFLAGS
795ca3e5
AK
3219elif test $ac_cv_prog_cc_g = yes; then
3220 if test "$GCC" = yes; then
3221 CFLAGS="-g -O2"
3222 else
3223 CFLAGS="-g"
3224 fi
3225else
3226 if test "$GCC" = yes; then
3227 CFLAGS="-O2"
3228 else
3229 CFLAGS=
3230 fi
3231fi
ec6a6fbe
AK
3232{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3233$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
7a197a62 3234if test "${ac_cv_prog_cc_c89+set}" = set; then
ec6a6fbe 3235 $as_echo_n "(cached) " >&6
ad6254c5 3236else
7a197a62 3237 ac_cv_prog_cc_c89=no
ad6254c5
AK
3238ac_save_CC=$CC
3239cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3240/* confdefs.h. */
3241_ACEOF
3242cat confdefs.h >>conftest.$ac_ext
3243cat >>conftest.$ac_ext <<_ACEOF
3244/* end confdefs.h. */
3245#include <stdarg.h>
3246#include <stdio.h>
3247#include <sys/types.h>
3248#include <sys/stat.h>
3249/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3250struct buf { int x; };
3251FILE * (*rcsopen) (struct buf *, struct stat *, int);
3252static char *e (p, i)
3253 char **p;
3254 int i;
3255{
3256 return p[i];
3257}
3258static char *f (char * (*g) (char **, int), char **p, ...)
3259{
3260 char *s;
3261 va_list v;
3262 va_start (v,p);
3263 s = g (p, va_arg (v,int));
3264 va_end (v);
3265 return s;
3266}
8a2fc586
AK
3267
3268/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3269 function prototypes and stuff, but not '\xHH' hex character constants.
3270 These don't provoke an error unfortunately, instead are silently treated
7a197a62 3271 as 'x'. The following induces an error, until -std is added to get
8a2fc586
AK
3272 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3273 array size at least. It's necessary to write '\x00'==0 to get something
7a197a62 3274 that's true only with -std. */
8a2fc586
AK
3275int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3276
7a197a62
AK
3277/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3278 inside strings and character constants. */
3279#define FOO(x) 'x'
3280int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3281
ad6254c5
AK
3282int test (int i, double x);
3283struct s1 {int (*f) (int a);};
3284struct s2 {int (*f) (double a);};
3285int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3286int argc;
3287char **argv;
3288int
3289main ()
3290{
3291return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3292 ;
3293 return 0;
3294}
3295_ACEOF
7a197a62
AK
3296for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3297 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
ad6254c5
AK
3298do
3299 CC="$ac_save_CC $ac_arg"
3300 rm -f conftest.$ac_objext
7a197a62
AK
3301if { (ac_try="$ac_compile"
3302case "(($ac_try" in
3303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3304 *) ac_try_echo=$ac_try;;
3305esac
ec6a6fbe
AK
3306eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3307$as_echo "$ac_try_echo") >&5
7a197a62 3308 (eval "$ac_compile") 2>conftest.er1
ad6254c5 3309 ac_status=$?
8a2fc586
AK
3310 grep -v '^ *+' conftest.er1 >conftest.err
3311 rm -f conftest.er1
3312 cat conftest.err >&5
ec6a6fbe 3313 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
3314 (exit $ac_status); } && {
3315 test -z "$ac_c_werror_flag" ||
3316 test ! -s conftest.err
3317 } && test -s conftest.$ac_objext; then
7a197a62 3318 ac_cv_prog_cc_c89=$ac_arg
ad6254c5 3319else
ec6a6fbe 3320 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
3321sed 's/^/| /' conftest.$ac_ext >&5
3322
7a197a62 3323
ad6254c5 3324fi
7a197a62
AK
3325
3326rm -f core conftest.err conftest.$ac_objext
3327 test "x$ac_cv_prog_cc_c89" != "xno" && break
ad6254c5 3328done
7a197a62 3329rm -f conftest.$ac_ext
ad6254c5
AK
3330CC=$ac_save_CC
3331
3332fi
7a197a62
AK
3333# AC_CACHE_VAL
3334case "x$ac_cv_prog_cc_c89" in
3335 x)
ec6a6fbe
AK
3336 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3337$as_echo "none needed" >&6; } ;;
7a197a62 3338 xno)
ec6a6fbe
AK
3339 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3340$as_echo "unsupported" >&6; } ;;
ad6254c5 3341 *)
7a197a62 3342 CC="$CC $ac_cv_prog_cc_c89"
ec6a6fbe
AK
3343 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3344$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
ad6254c5
AK
3345esac
3346
ad6254c5 3347
ad6254c5
AK
3348ac_ext=c
3349ac_cpp='$CPP $CPPFLAGS'
3350ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3351ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3352ac_compiler_gnu=$ac_cv_c_compiler_gnu
795ca3e5 3353
d0191583
JM
3354
3355
3356ac_ext=c
3357ac_cpp='$CPP $CPPFLAGS'
3358ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3359ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3360ac_compiler_gnu=$ac_cv_c_compiler_gnu
ec6a6fbe
AK
3361{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3362$as_echo_n "checking how to run the C preprocessor... " >&6; }
d0191583
JM
3363# On Suns, sometimes $CPP names a directory.
3364if test -n "$CPP" && test -d "$CPP"; then
3365 CPP=
3366fi
3367if test -z "$CPP"; then
3368 if test "${ac_cv_prog_CPP+set}" = set; then
ec6a6fbe 3369 $as_echo_n "(cached) " >&6
ad6254c5 3370else
d0191583
JM
3371 # Double quotes because CPP needs to be expanded
3372 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3373 do
3374 ac_preproc_ok=false
3375for ac_c_preproc_warn_flag in '' yes
ad6254c5 3376do
d0191583
JM
3377 # Use a header file that comes with gcc, so configuring glibc
3378 # with a fresh cross-compiler works.
3379 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3380 # <limits.h> exists even on freestanding compilers.
3381 # On the NeXT, cc -E runs the code through the compiler's parser,
3382 # not just through cpp. "Syntax error" is here to catch this case.
3383 cat >conftest.$ac_ext <<_ACEOF
3384/* confdefs.h. */
3385_ACEOF
3386cat confdefs.h >>conftest.$ac_ext
3387cat >>conftest.$ac_ext <<_ACEOF
3388/* end confdefs.h. */
3389#ifdef __STDC__
3390# include <limits.h>
3391#else
3392# include <assert.h>
3393#endif
3394 Syntax error
3395_ACEOF
3396if { (ac_try="$ac_cpp conftest.$ac_ext"
3397case "(($ac_try" in
3398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3399 *) ac_try_echo=$ac_try;;
ad6254c5 3400esac
ec6a6fbe
AK
3401eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3402$as_echo "$ac_try_echo") >&5
d0191583
JM
3403 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3404 ac_status=$?
3405 grep -v '^ *+' conftest.er1 >conftest.err
3406 rm -f conftest.er1
3407 cat conftest.err >&5
ec6a6fbe 3408 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3409 (exit $ac_status); } >/dev/null && {
3410 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3411 test ! -s conftest.err
3412 }; then
3413 :
3414else
ec6a6fbe 3415 $as_echo "$as_me: failed program was:" >&5
d0191583 3416sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 3417
d0191583
JM
3418 # Broken: fails on valid input.
3419continue
795ca3e5 3420fi
795ca3e5 3421
d0191583 3422rm -f conftest.err conftest.$ac_ext
795ca3e5 3423
d0191583
JM
3424 # OK, works on sane cases. Now check whether nonexistent headers
3425 # can be detected and how.
3426 cat >conftest.$ac_ext <<_ACEOF
3427/* confdefs.h. */
3428_ACEOF
3429cat confdefs.h >>conftest.$ac_ext
3430cat >>conftest.$ac_ext <<_ACEOF
3431/* end confdefs.h. */
3432#include <ac_nonexistent.h>
3433_ACEOF
3434if { (ac_try="$ac_cpp conftest.$ac_ext"
3435case "(($ac_try" in
3436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3437 *) ac_try_echo=$ac_try;;
3438esac
ec6a6fbe
AK
3439eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3440$as_echo "$ac_try_echo") >&5
d0191583
JM
3441 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3442 ac_status=$?
3443 grep -v '^ *+' conftest.er1 >conftest.err
3444 rm -f conftest.er1
3445 cat conftest.err >&5
ec6a6fbe 3446 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3447 (exit $ac_status); } >/dev/null && {
3448 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3449 test ! -s conftest.err
3450 }; then
3451 # Broken: success on invalid input.
3452continue
3453else
ec6a6fbe 3454 $as_echo "$as_me: failed program was:" >&5
d0191583 3455sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 3456
d0191583
JM
3457 # Passes both tests.
3458ac_preproc_ok=:
3459break
3460fi
795ca3e5 3461
d0191583
JM
3462rm -f conftest.err conftest.$ac_ext
3463
3464done
3465# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3466rm -f conftest.err conftest.$ac_ext
3467if $ac_preproc_ok; then
3468 break
795ca3e5
AK
3469fi
3470
d0191583
JM
3471 done
3472 ac_cv_prog_CPP=$CPP
3473
3474fi
3475 CPP=$ac_cv_prog_CPP
795ca3e5 3476else
d0191583
JM
3477 ac_cv_prog_CPP=$CPP
3478fi
ec6a6fbe
AK
3479{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
3480$as_echo "$CPP" >&6; }
d0191583
JM
3481ac_preproc_ok=false
3482for ac_c_preproc_warn_flag in '' yes
3483do
3484 # Use a header file that comes with gcc, so configuring glibc
3485 # with a fresh cross-compiler works.
3486 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3487 # <limits.h> exists even on freestanding compilers.
3488 # On the NeXT, cc -E runs the code through the compiler's parser,
3489 # not just through cpp. "Syntax error" is here to catch this case.
3490 cat >conftest.$ac_ext <<_ACEOF
3491/* confdefs.h. */
ad6254c5 3492_ACEOF
d0191583
JM
3493cat confdefs.h >>conftest.$ac_ext
3494cat >>conftest.$ac_ext <<_ACEOF
3495/* end confdefs.h. */
3496#ifdef __STDC__
3497# include <limits.h>
3498#else
3499# include <assert.h>
3500#endif
3501 Syntax error
3502_ACEOF
3503if { (ac_try="$ac_cpp conftest.$ac_ext"
3504case "(($ac_try" in
3505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3506 *) ac_try_echo=$ac_try;;
7a197a62 3507esac
ec6a6fbe
AK
3508eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3509$as_echo "$ac_try_echo") >&5
d0191583
JM
3510 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3511 ac_status=$?
3512 grep -v '^ *+' conftest.er1 >conftest.err
3513 rm -f conftest.er1
3514 cat conftest.err >&5
ec6a6fbe 3515 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3516 (exit $ac_status); } >/dev/null && {
3517 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3518 test ! -s conftest.err
3519 }; then
3520 :
795ca3e5 3521else
ec6a6fbe 3522 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
3523sed 's/^/| /' conftest.$ac_ext >&5
3524
3525 # Broken: fails on valid input.
3526continue
795ca3e5
AK
3527fi
3528
d0191583
JM
3529rm -f conftest.err conftest.$ac_ext
3530
3531 # OK, works on sane cases. Now check whether nonexistent headers
3532 # can be detected and how.
3533 cat >conftest.$ac_ext <<_ACEOF
3534/* confdefs.h. */
3535_ACEOF
3536cat confdefs.h >>conftest.$ac_ext
3537cat >>conftest.$ac_ext <<_ACEOF
3538/* end confdefs.h. */
3539#include <ac_nonexistent.h>
3540_ACEOF
3541if { (ac_try="$ac_cpp conftest.$ac_ext"
3542case "(($ac_try" in
3543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3544 *) ac_try_echo=$ac_try;;
3545esac
ec6a6fbe
AK
3546eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3547$as_echo "$ac_try_echo") >&5
d0191583
JM
3548 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3549 ac_status=$?
3550 grep -v '^ *+' conftest.er1 >conftest.err
3551 rm -f conftest.er1
3552 cat conftest.err >&5
ec6a6fbe 3553 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3554 (exit $ac_status); } >/dev/null && {
3555 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3556 test ! -s conftest.err
3557 }; then
3558 # Broken: success on invalid input.
3559continue
795ca3e5 3560else
ec6a6fbe 3561 $as_echo "$as_me: failed program was:" >&5
d0191583 3562sed 's/^/| /' conftest.$ac_ext >&5
ad6254c5 3563
d0191583
JM
3564 # Passes both tests.
3565ac_preproc_ok=:
3566break
795ca3e5 3567fi
d0191583
JM
3568
3569rm -f conftest.err conftest.$ac_ext
3570
3571done
3572# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3573rm -f conftest.err conftest.$ac_ext
3574if $ac_preproc_ok; then
3575 :
8106cdd5 3576else
ec6a6fbe
AK
3577 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3578$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3579{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
d0191583 3580See \`config.log' for more details." >&5
ec6a6fbe 3581$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
d0191583 3582See \`config.log' for more details." >&2;}
ec6a6fbe 3583 { (exit 1); exit 1; }; }; }
8106cdd5
AK
3584fi
3585
d0191583
JM
3586ac_ext=c
3587ac_cpp='$CPP $CPPFLAGS'
3588ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3589ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3590ac_compiler_gnu=$ac_cv_c_compiler_gnu
3591
7a197a62 3592
ec6a6fbe
AK
3593{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3594$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5556819a 3595if test "${ac_cv_path_GREP+set}" = set; then
ec6a6fbe 3596 $as_echo_n "(cached) " >&6
ad6254c5 3597else
ec6a6fbe 3598 if test -z "$GREP"; then
d0191583 3599 ac_path_GREP_found=false
ec6a6fbe
AK
3600 # Loop through the user's path and test for each of PROGNAME-LIST
3601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
d0191583 3602for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
ad6254c5
AK
3603do
3604 IFS=$as_save_IFS
3605 test -z "$as_dir" && as_dir=.
d0191583 3606 for ac_prog in grep ggrep; do
ec6a6fbe
AK
3607 for ac_exec_ext in '' $ac_executable_extensions; do
3608 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3609 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3610# Check for GNU ac_path_GREP and select it if it is found.
d0191583
JM
3611 # Check for GNU $ac_path_GREP
3612case `"$ac_path_GREP" --version 2>&1` in
3613*GNU*)
3614 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3615*)
3616 ac_count=0
ec6a6fbe 3617 $as_echo_n 0123456789 >"conftest.in"
d0191583
JM
3618 while :
3619 do
3620 cat "conftest.in" "conftest.in" >"conftest.tmp"
3621 mv "conftest.tmp" "conftest.in"
3622 cp "conftest.in" "conftest.nl"
ec6a6fbe 3623 $as_echo 'GREP' >> "conftest.nl"
d0191583
JM
3624 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3625 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3626 ac_count=`expr $ac_count + 1`
3627 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3628 # Best one so far, save it but keep looking for a better one
3629 ac_cv_path_GREP="$ac_path_GREP"
3630 ac_path_GREP_max=$ac_count
3631 fi
3632 # 10*(2^10) chars as input seems more than enough
3633 test $ac_count -gt 10 && break
3634 done
3635 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3636esac
3637
ec6a6fbe
AK
3638 $ac_path_GREP_found && break 3
3639 done
d0191583 3640 done
ad6254c5 3641done
7a197a62 3642IFS=$as_save_IFS
ec6a6fbe
AK
3643 if test -z "$ac_cv_path_GREP"; then
3644 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3645$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
d0191583 3646 { (exit 1); exit 1; }; }
ec6a6fbe 3647 fi
80992638 3648else
d0191583 3649 ac_cv_path_GREP=$GREP
8106cdd5 3650fi
8106cdd5 3651
80992638 3652fi
ec6a6fbe
AK
3653{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3654$as_echo "$ac_cv_path_GREP" >&6; }
d0191583 3655 GREP="$ac_cv_path_GREP"
795ca3e5 3656
d0191583 3657
ec6a6fbe
AK
3658{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
3659$as_echo_n "checking for egrep... " >&6; }
d0191583 3660if test "${ac_cv_path_EGREP+set}" = set; then
ec6a6fbe 3661 $as_echo_n "(cached) " >&6
8a2fc586 3662else
d0191583
JM
3663 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3664 then ac_cv_path_EGREP="$GREP -E"
3665 else
ec6a6fbe 3666 if test -z "$EGREP"; then
d0191583 3667 ac_path_EGREP_found=false
ec6a6fbe
AK
3668 # Loop through the user's path and test for each of PROGNAME-LIST
3669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
d0191583 3670for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8a2fc586
AK
3671do
3672 IFS=$as_save_IFS
3673 test -z "$as_dir" && as_dir=.
d0191583 3674 for ac_prog in egrep; do
ec6a6fbe
AK
3675 for ac_exec_ext in '' $ac_executable_extensions; do
3676 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3677 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3678# Check for GNU ac_path_EGREP and select it if it is found.
d0191583
JM
3679 # Check for GNU $ac_path_EGREP
3680case `"$ac_path_EGREP" --version 2>&1` in
3681*GNU*)
3682 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3683*)
3684 ac_count=0
ec6a6fbe 3685 $as_echo_n 0123456789 >"conftest.in"
d0191583
JM
3686 while :
3687 do
3688 cat "conftest.in" "conftest.in" >"conftest.tmp"
3689 mv "conftest.tmp" "conftest.in"
3690 cp "conftest.in" "conftest.nl"
ec6a6fbe 3691 $as_echo 'EGREP' >> "conftest.nl"
d0191583
JM
3692 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3693 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3694 ac_count=`expr $ac_count + 1`
3695 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3696 # Best one so far, save it but keep looking for a better one
3697 ac_cv_path_EGREP="$ac_path_EGREP"
3698 ac_path_EGREP_max=$ac_count
3699 fi
3700 # 10*(2^10) chars as input seems more than enough
3701 test $ac_count -gt 10 && break
3702 done
3703 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8a2fc586 3704esac
8a2fc586 3705
ec6a6fbe
AK
3706 $ac_path_EGREP_found && break 3
3707 done
d0191583 3708 done
8a2fc586 3709done
7a197a62 3710IFS=$as_save_IFS
ec6a6fbe
AK
3711 if test -z "$ac_cv_path_EGREP"; then
3712 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3713$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
d0191583 3714 { (exit 1); exit 1; }; }
ec6a6fbe 3715 fi
d0191583
JM
3716else
3717 ac_cv_path_EGREP=$EGREP
3718fi
ad6254c5 3719
d0191583
JM
3720 fi
3721fi
ec6a6fbe
AK
3722{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3723$as_echo "$ac_cv_path_EGREP" >&6; }
d0191583 3724 EGREP="$ac_cv_path_EGREP"
ad6254c5
AK
3725
3726
d0191583 3727if test $ac_cv_c_compiler_gnu = yes; then
ec6a6fbe
AK
3728 { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3729$as_echo_n "checking whether $CC needs -traditional... " >&6; }
d0191583 3730if test "${ac_cv_prog_gcc_traditional+set}" = set; then
ec6a6fbe 3731 $as_echo_n "(cached) " >&6
8106cdd5 3732else
d0191583 3733 ac_pattern="Autoconf.*'x'"
ad6254c5 3734 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3735/* confdefs.h. */
3736_ACEOF
3737cat confdefs.h >>conftest.$ac_ext
3738cat >>conftest.$ac_ext <<_ACEOF
3739/* end confdefs.h. */
d0191583
JM
3740#include <sgtty.h>
3741Autoconf TIOCGETP
ad6254c5 3742_ACEOF
d0191583
JM
3743if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3744 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3745 ac_cv_prog_gcc_traditional=yes
8106cdd5 3746else
d0191583 3747 ac_cv_prog_gcc_traditional=no
80992638 3748fi
d0191583 3749rm -f conftest*
ad6254c5 3750
8106cdd5 3751
d0191583
JM
3752 if test $ac_cv_prog_gcc_traditional = no; then
3753 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3754/* confdefs.h. */
3755_ACEOF
3756cat confdefs.h >>conftest.$ac_ext
3757cat >>conftest.$ac_ext <<_ACEOF
3758/* end confdefs.h. */
d0191583
JM
3759#include <termio.h>
3760Autoconf TCGETA
ad6254c5 3761_ACEOF
d0191583
JM
3762if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3763 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3764 ac_cv_prog_gcc_traditional=yes
7a197a62 3765fi
d0191583 3766rm -f conftest*
795ca3e5 3767
d0191583 3768 fi
795ca3e5 3769fi
ec6a6fbe
AK
3770{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3771$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
d0191583
JM
3772 if test $ac_cv_prog_gcc_traditional = yes; then
3773 CC="$CC -traditional"
3774 fi
795ca3e5
AK
3775fi
3776
d0191583
JM
3777# Find a good install program. We prefer a C program (faster),
3778# so one script is as good as another. But avoid the broken or
3779# incompatible versions:
3780# SysV /etc/install, /usr/sbin/install
3781# SunOS /usr/etc/install
3782# IRIX /sbin/install
3783# AIX /bin/install
3784# AmigaOS /C/install, which installs bootblocks on floppy discs
3785# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3786# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3787# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3788# OS/2's system install, which has a completely different semantic
3789# ./install, which can be erroneously created by make from ./install.sh.
ec6a6fbe
AK
3790# Reject install programs that cannot install multiple files.
3791{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3792$as_echo_n "checking for a BSD-compatible install... " >&6; }
d0191583
JM
3793if test -z "$INSTALL"; then
3794if test "${ac_cv_path_install+set}" = set; then
ec6a6fbe 3795 $as_echo_n "(cached) " >&6
ad6254c5 3796else
d0191583
JM
3797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3798for as_dir in $PATH
3799do
3800 IFS=$as_save_IFS
3801 test -z "$as_dir" && as_dir=.
3802 # Account for people who put trailing slashes in PATH elements.
3803case $as_dir/ in
3804 ./ | .// | /cC/* | \
3805 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3806 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3807 /usr/ucb/* ) ;;
3808 *)
3809 # OSF1 and SCO ODT 3.0 have their own names for install.
3810 # Don't use installbsd from OSF since it installs stuff as root
3811 # by default.
3812 for ac_prog in ginstall scoinst install; do
3813 for ac_exec_ext in '' $ac_executable_extensions; do
3814 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3815 if test $ac_prog = install &&
3816 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3817 # AIX install. It has an incompatible calling convention.
3818 :
3819 elif test $ac_prog = install &&
3820 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3821 # program-specific install script used by HP pwplus--don't use.
3822 :
3823 else
ec6a6fbe
AK
3824 rm -rf conftest.one conftest.two conftest.dir
3825 echo one > conftest.one
3826 echo two > conftest.two
3827 mkdir conftest.dir
3828 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3829 test -s conftest.one && test -s conftest.two &&
3830 test -s conftest.dir/conftest.one &&
3831 test -s conftest.dir/conftest.two
3832 then
3833 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3834 break 3
3835 fi
d0191583
JM
3836 fi
3837 fi
3838 done
3839 done
3840 ;;
3841esac
ec6a6fbe 3842
d0191583
JM
3843done
3844IFS=$as_save_IFS
80992638 3845
ec6a6fbe 3846rm -rf conftest.one conftest.two conftest.dir
d0191583
JM
3847
3848fi
3849 if test "${ac_cv_path_install+set}" = set; then
3850 INSTALL=$ac_cv_path_install
7a197a62 3851 else
d0191583
JM
3852 # As a last resort, use the slow shell script. Don't cache a
3853 # value for INSTALL within a source directory, because that will
3854 # break other packages using the cache if that directory is
3855 # removed, or if the value is a relative name.
3856 INSTALL=$ac_install_sh
7a197a62 3857 fi
d0191583 3858fi
ec6a6fbe
AK
3859{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3860$as_echo "$INSTALL" >&6; }
ad6254c5 3861
d0191583
JM
3862# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3863# It thinks the first close brace ends the variable substitution.
3864test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
ad6254c5 3865
d0191583 3866test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
80992638 3867
d0191583
JM
3868test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3869
ec6a6fbe
AK
3870{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
3871$as_echo_n "checking whether ln -s works... " >&6; }
d0191583
JM
3872LN_S=$as_ln_s
3873if test "$LN_S" = "ln -s"; then
ec6a6fbe
AK
3874 { $as_echo "$as_me:$LINENO: result: yes" >&5
3875$as_echo "yes" >&6; }
d0191583 3876else
ec6a6fbe
AK
3877 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3878$as_echo "no, using $LN_S" >&6; }
795ca3e5 3879fi
d0191583 3880
ec6a6fbe
AK
3881{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3882$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3883set x ${MAKE-make}
3884ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
d0191583 3885if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 3886 $as_echo_n "(cached) " >&6
7a197a62 3887else
d0191583
JM
3888 cat >conftest.make <<\_ACEOF
3889SHELL = /bin/sh
3890all:
3891 @echo '@@@%%%=$(MAKE)=@@@%%%'
3892_ACEOF
3893# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3894case `${MAKE-make} -f conftest.make 2>/dev/null` in
3895 *@@@%%%=?*=@@@%%%*)
3896 eval ac_cv_prog_make_${ac_make}_set=yes;;
3897 *)
3898 eval ac_cv_prog_make_${ac_make}_set=no;;
3899esac
3900rm -f conftest.make
ad6254c5 3901fi
d0191583 3902if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
ec6a6fbe
AK
3903 { $as_echo "$as_me:$LINENO: result: yes" >&5
3904$as_echo "yes" >&6; }
d0191583
JM
3905 SET_MAKE=
3906else
ec6a6fbe
AK
3907 { $as_echo "$as_me:$LINENO: result: no" >&5
3908$as_echo "no" >&6; }
d0191583 3909 SET_MAKE="MAKE=${MAKE-make}"
795ca3e5 3910fi
8106cdd5 3911
ec6a6fbe
AK
3912{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
3913$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
5556819a
AK
3914if test -z "$MKDIR_P"; then
3915 if test "${ac_cv_path_mkdir+set}" = set; then
ec6a6fbe 3916 $as_echo_n "(cached) " >&6
5556819a
AK
3917else
3918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3919for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3920do
3921 IFS=$as_save_IFS
3922 test -z "$as_dir" && as_dir=.
3923 for ac_prog in mkdir gmkdir; do
3924 for ac_exec_ext in '' $ac_executable_extensions; do
3925 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3926 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3927 'mkdir (GNU coreutils) '* | \
3928 'mkdir (coreutils) '* | \
3929 'mkdir (fileutils) '4.1*)
3930 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3931 break 3;;
3932 esac
3933 done
3934 done
3935done
3936IFS=$as_save_IFS
3937
3938fi
3939
3940 if test "${ac_cv_path_mkdir+set}" = set; then
3941 MKDIR_P="$ac_cv_path_mkdir -p"
3942 else
3943 # As a last resort, use the slow shell script. Don't cache a
3944 # value for MKDIR_P within a source directory, because that will
3945 # break other packages using the cache if that directory is
3946 # removed, or if the value is a relative name.
3947 test -d ./--version && rmdir ./--version
3948 MKDIR_P="$ac_install_sh -d"
3949 fi
3950fi
ec6a6fbe
AK
3951{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
3952$as_echo "$MKDIR_P" >&6; }
5556819a 3953
d0191583
JM
3954if test -n "$ac_tool_prefix"; then
3955 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3956set dummy ${ac_tool_prefix}ranlib; ac_word=$2
ec6a6fbe
AK
3957{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3958$as_echo_n "checking for $ac_word... " >&6; }
d0191583 3959if test "${ac_cv_prog_RANLIB+set}" = set; then
ec6a6fbe 3960 $as_echo_n "(cached) " >&6
d0191583
JM
3961else
3962 if test -n "$RANLIB"; then
3963 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3964else
3965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3966for as_dir in $PATH
3967do
3968 IFS=$as_save_IFS
3969 test -z "$as_dir" && as_dir=.
3970 for ac_exec_ext in '' $ac_executable_extensions; do
3971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3972 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
ec6a6fbe 3973 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
3974 break 2
3975 fi
3976done
3977done
3978IFS=$as_save_IFS
8106cdd5 3979
795ca3e5 3980fi
d0191583
JM
3981fi
3982RANLIB=$ac_cv_prog_RANLIB
3983if test -n "$RANLIB"; then
ec6a6fbe
AK
3984 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
3985$as_echo "$RANLIB" >&6; }
d0191583 3986else
ec6a6fbe
AK
3987 { $as_echo "$as_me:$LINENO: result: no" >&5
3988$as_echo "no" >&6; }
d0191583
JM
3989fi
3990
8106cdd5 3991
ad6254c5 3992fi
d0191583
JM
3993if test -z "$ac_cv_prog_RANLIB"; then
3994 ac_ct_RANLIB=$RANLIB
3995 # Extract the first word of "ranlib", so it can be a program name with args.
3996set dummy ranlib; ac_word=$2
ec6a6fbe
AK
3997{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3998$as_echo_n "checking for $ac_word... " >&6; }
d0191583 3999if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
ec6a6fbe 4000 $as_echo_n "(cached) " >&6
ad6254c5 4001else
d0191583
JM
4002 if test -n "$ac_ct_RANLIB"; then
4003 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4004else
4005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4006for as_dir in $PATH
8106cdd5 4007do
d0191583
JM
4008 IFS=$as_save_IFS
4009 test -z "$as_dir" && as_dir=.
4010 for ac_exec_ext in '' $ac_executable_extensions; do
4011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4012 ac_cv_prog_ac_ct_RANLIB="ranlib"
ec6a6fbe 4013 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
4014 break 2
4015 fi
4016done
4017done
4018IFS=$as_save_IFS
4019
4020fi
4021fi
4022ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4023if test -n "$ac_ct_RANLIB"; then
ec6a6fbe
AK
4024 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4025$as_echo "$ac_ct_RANLIB" >&6; }
ad6254c5 4026else
ec6a6fbe
AK
4027 { $as_echo "$as_me:$LINENO: result: no" >&5
4028$as_echo "no" >&6; }
d0191583 4029fi
ad6254c5 4030
d0191583
JM
4031 if test "x$ac_ct_RANLIB" = x; then
4032 RANLIB=":"
4033 else
4034 case $cross_compiling:$ac_tool_warned in
4035yes:)
ec6a6fbe
AK
4036{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4037$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
d0191583
JM
4038ac_tool_warned=yes ;;
4039esac
4040 RANLIB=$ac_ct_RANLIB
4041 fi
4042else
4043 RANLIB="$ac_cv_prog_RANLIB"
ad6254c5 4044fi
7a197a62 4045
d0191583
JM
4046# Extract the first word of "cflow", so it can be a program name with args.
4047set dummy cflow; ac_word=$2
ec6a6fbe
AK
4048{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4049$as_echo_n "checking for $ac_word... " >&6; }
d0191583 4050if test "${ac_cv_path_CFLOW_CMD+set}" = set; then
ec6a6fbe 4051 $as_echo_n "(cached) " >&6
d0191583
JM
4052else
4053 case $CFLOW_CMD in
4054 [\\/]* | ?:[\\/]*)
4055 ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path.
4056 ;;
4057 *)
4058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4059for as_dir in $PATH
4060do
4061 IFS=$as_save_IFS
4062 test -z "$as_dir" && as_dir=.
4063 for ac_exec_ext in '' $ac_executable_extensions; do
4064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4065 ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 4066 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
4067 break 2
4068 fi
4069done
4070done
4071IFS=$as_save_IFS
ad6254c5 4072
d0191583 4073 ;;
7a197a62 4074esac
d0191583
JM
4075fi
4076CFLOW_CMD=$ac_cv_path_CFLOW_CMD
4077if test -n "$CFLOW_CMD"; then
ec6a6fbe
AK
4078 { $as_echo "$as_me:$LINENO: result: $CFLOW_CMD" >&5
4079$as_echo "$CFLOW_CMD" >&6; }
80992638 4080else
ec6a6fbe
AK
4081 { $as_echo "$as_me:$LINENO: result: no" >&5
4082$as_echo "no" >&6; }
795ca3e5 4083fi
7a197a62 4084
ad6254c5 4085
d0191583
JM
4086# Extract the first word of "cscope", so it can be a program name with args.
4087set dummy cscope; ac_word=$2
ec6a6fbe
AK
4088{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4089$as_echo_n "checking for $ac_word... " >&6; }
d0191583 4090if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then
ec6a6fbe 4091 $as_echo_n "(cached) " >&6
d0191583
JM
4092else
4093 case $CSCOPE_CMD in
4094 [\\/]* | ?:[\\/]*)
4095 ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path.
4096 ;;
4097 *)
4098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4099for as_dir in $PATH
4100do
4101 IFS=$as_save_IFS
4102 test -z "$as_dir" && as_dir=.
4103 for ac_exec_ext in '' $ac_executable_extensions; do
4104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4105 ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 4106 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
4107 break 2
4108 fi
795ca3e5 4109done
d0191583
JM
4110done
4111IFS=$as_save_IFS
795ca3e5 4112
d0191583
JM
4113 ;;
4114esac
ad6254c5 4115fi
d0191583
JM
4116CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD
4117if test -n "$CSCOPE_CMD"; then
ec6a6fbe
AK
4118 { $as_echo "$as_me:$LINENO: result: $CSCOPE_CMD" >&5
4119$as_echo "$CSCOPE_CMD" >&6; }
795ca3e5 4120else
ec6a6fbe
AK
4121 { $as_echo "$as_me:$LINENO: result: no" >&5
4122$as_echo "no" >&6; }
795ca3e5 4123fi
ad6254c5 4124
7a197a62 4125
ad6254c5 4126
d0191583
JM
4127################################################################################
4128
4129
4130
4131
4132
4133ac_header_dirent=no
4134for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
ec6a6fbe
AK
4135 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4136{ $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4137$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
d0191583 4138if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 4139 $as_echo_n "(cached) " >&6
d0191583 4140else
ad6254c5 4141 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4142/* confdefs.h. */
4143_ACEOF
4144cat confdefs.h >>conftest.$ac_ext
4145cat >>conftest.$ac_ext <<_ACEOF
4146/* end confdefs.h. */
d0191583
JM
4147#include <sys/types.h>
4148#include <$ac_hdr>
4149
4150int
4151main ()
4152{
4153if ((DIR *) 0)
4154return 0;
4155 ;
4156 return 0;
4157}
ad6254c5 4158_ACEOF
d0191583
JM
4159rm -f conftest.$ac_objext
4160if { (ac_try="$ac_compile"
7a197a62
AK
4161case "(($ac_try" in
4162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4163 *) ac_try_echo=$ac_try;;
4164esac
ec6a6fbe
AK
4165eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4166$as_echo "$ac_try_echo") >&5
d0191583 4167 (eval "$ac_compile") 2>conftest.er1
ad6254c5
AK
4168 ac_status=$?
4169 grep -v '^ *+' conftest.er1 >conftest.err
4170 rm -f conftest.er1
4171 cat conftest.err >&5
ec6a6fbe 4172 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4173 (exit $ac_status); } && {
4174 test -z "$ac_c_werror_flag" ||
25fbec5b 4175 test ! -s conftest.err
d0191583
JM
4176 } && test -s conftest.$ac_objext; then
4177 eval "$as_ac_Header=yes"
ad6254c5 4178else
ec6a6fbe 4179 $as_echo "$as_me: failed program was:" >&5
ad6254c5 4180sed 's/^/| /' conftest.$ac_ext >&5
8106cdd5 4181
d0191583 4182 eval "$as_ac_Header=no"
795ca3e5 4183fi
7a197a62 4184
d0191583 4185rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
795ca3e5 4186fi
ec6a6fbe
AK
4187ac_res=`eval 'as_val=${'$as_ac_Header'}
4188 $as_echo "$as_val"'`
4189 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4190$as_echo "$ac_res" >&6; }
4191as_val=`eval 'as_val=${'$as_ac_Header'}
4192 $as_echo "$as_val"'`
4193 if test "x$as_val" = x""yes; then
d0191583 4194 cat >>confdefs.h <<_ACEOF
ec6a6fbe 4195#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
d0191583 4196_ACEOF
795ca3e5 4197
d0191583
JM
4198ac_header_dirent=$ac_hdr; break
4199fi
ad6254c5 4200
d0191583
JM
4201done
4202# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4203if test $ac_header_dirent = dirent.h; then
ec6a6fbe
AK
4204 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
4205$as_echo_n "checking for library containing opendir... " >&6; }
d0191583 4206if test "${ac_cv_search_opendir+set}" = set; then
ec6a6fbe 4207 $as_echo_n "(cached) " >&6
ad6254c5 4208else
d0191583
JM
4209 ac_func_search_save_LIBS=$LIBS
4210cat >conftest.$ac_ext <<_ACEOF
4211/* confdefs.h. */
4212_ACEOF
4213cat confdefs.h >>conftest.$ac_ext
4214cat >>conftest.$ac_ext <<_ACEOF
4215/* end confdefs.h. */
ad6254c5 4216
d0191583
JM
4217/* Override any GCC internal prototype to avoid an error.
4218 Use char because int might match the return type of a GCC
4219 builtin and then its argument prototype would still apply. */
4220#ifdef __cplusplus
4221extern "C"
4222#endif
4223char opendir ();
4224int
4225main ()
4226{
4227return opendir ();
4228 ;
4229 return 0;
4230}
4231_ACEOF
4232for ac_lib in '' dir; do
4233 if test -z "$ac_lib"; then
4234 ac_res="none required"
4235 else
4236 ac_res=-l$ac_lib
4237 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4238 fi
4239 rm -f conftest.$ac_objext conftest$ac_exeext
4240if { (ac_try="$ac_link"
4241case "(($ac_try" in
4242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4243 *) ac_try_echo=$ac_try;;
4244esac
ec6a6fbe
AK
4245eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4246$as_echo "$ac_try_echo") >&5
d0191583
JM
4247 (eval "$ac_link") 2>conftest.er1
4248 ac_status=$?
4249 grep -v '^ *+' conftest.er1 >conftest.err
4250 rm -f conftest.er1
4251 cat conftest.err >&5
ec6a6fbe 4252 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4253 (exit $ac_status); } && {
4254 test -z "$ac_c_werror_flag" ||
4255 test ! -s conftest.err
ec6a6fbe
AK
4256 } && test -s conftest$ac_exeext && {
4257 test "$cross_compiling" = yes ||
4258 $as_test_x conftest$ac_exeext
4259 }; then
d0191583
JM
4260 ac_cv_search_opendir=$ac_res
4261else
ec6a6fbe 4262 $as_echo "$as_me: failed program was:" >&5
d0191583 4263sed 's/^/| /' conftest.$ac_ext >&5
ad6254c5 4264
ad6254c5 4265
795ca3e5 4266fi
ad6254c5 4267
ec6a6fbe 4268rm -rf conftest.dSYM
d0191583
JM
4269rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4270 conftest$ac_exeext
4271 if test "${ac_cv_search_opendir+set}" = set; then
4272 break
7a197a62 4273fi
d0191583
JM
4274done
4275if test "${ac_cv_search_opendir+set}" = set; then
4276 :
7a197a62 4277else
d0191583 4278 ac_cv_search_opendir=no
7a197a62 4279fi
d0191583
JM
4280rm conftest.$ac_ext
4281LIBS=$ac_func_search_save_LIBS
7a197a62 4282fi
ec6a6fbe
AK
4283{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4284$as_echo "$ac_cv_search_opendir" >&6; }
d0191583
JM
4285ac_res=$ac_cv_search_opendir
4286if test "$ac_res" != no; then
4287 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7a197a62 4288
d0191583 4289fi
7a197a62 4290
7a197a62 4291else
ec6a6fbe
AK
4292 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
4293$as_echo_n "checking for library containing opendir... " >&6; }
d0191583 4294if test "${ac_cv_search_opendir+set}" = set; then
ec6a6fbe 4295 $as_echo_n "(cached) " >&6
7a197a62 4296else
d0191583
JM
4297 ac_func_search_save_LIBS=$LIBS
4298cat >conftest.$ac_ext <<_ACEOF
4299/* confdefs.h. */
4300_ACEOF
4301cat confdefs.h >>conftest.$ac_ext
4302cat >>conftest.$ac_ext <<_ACEOF
4303/* end confdefs.h. */
7a197a62 4304
d0191583
JM
4305/* Override any GCC internal prototype to avoid an error.
4306 Use char because int might match the return type of a GCC
4307 builtin and then its argument prototype would still apply. */
4308#ifdef __cplusplus
4309extern "C"
4310#endif
4311char opendir ();
4312int
4313main ()
4314{
4315return opendir ();
4316 ;
4317 return 0;
4318}
4319_ACEOF
4320for ac_lib in '' x; do
4321 if test -z "$ac_lib"; then
4322 ac_res="none required"
4323 else
4324 ac_res=-l$ac_lib
4325 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4326 fi
4327 rm -f conftest.$ac_objext conftest$ac_exeext
4328if { (ac_try="$ac_link"
4329case "(($ac_try" in
4330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4331 *) ac_try_echo=$ac_try;;
4332esac
ec6a6fbe
AK
4333eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4334$as_echo "$ac_try_echo") >&5
d0191583
JM
4335 (eval "$ac_link") 2>conftest.er1
4336 ac_status=$?
4337 grep -v '^ *+' conftest.er1 >conftest.err
4338 rm -f conftest.er1
4339 cat conftest.err >&5
ec6a6fbe 4340 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4341 (exit $ac_status); } && {
4342 test -z "$ac_c_werror_flag" ||
4343 test ! -s conftest.err
ec6a6fbe
AK
4344 } && test -s conftest$ac_exeext && {
4345 test "$cross_compiling" = yes ||
4346 $as_test_x conftest$ac_exeext
4347 }; then
d0191583
JM
4348 ac_cv_search_opendir=$ac_res
4349else
ec6a6fbe 4350 $as_echo "$as_me: failed program was:" >&5
d0191583 4351sed 's/^/| /' conftest.$ac_ext >&5
7a197a62
AK
4352
4353
4354fi
4355
ec6a6fbe 4356rm -rf conftest.dSYM
d0191583
JM
4357rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4358 conftest$ac_exeext
4359 if test "${ac_cv_search_opendir+set}" = set; then
4360 break
7a197a62 4361fi
d0191583
JM
4362done
4363if test "${ac_cv_search_opendir+set}" = set; then
4364 :
7a197a62 4365else
d0191583 4366 ac_cv_search_opendir=no
7a197a62 4367fi
d0191583
JM
4368rm conftest.$ac_ext
4369LIBS=$ac_func_search_save_LIBS
4370fi
ec6a6fbe
AK
4371{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4372$as_echo "$ac_cv_search_opendir" >&6; }
d0191583
JM
4373ac_res=$ac_cv_search_opendir
4374if test "$ac_res" != no; then
4375 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7a197a62 4376
7a197a62 4377fi
7a197a62 4378
d0191583 4379fi
7a197a62 4380
ec6a6fbe
AK
4381{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4382$as_echo_n "checking for ANSI C header files... " >&6; }
7a197a62 4383if test "${ac_cv_header_stdc+set}" = set; then
ec6a6fbe 4384 $as_echo_n "(cached) " >&6
7a197a62
AK
4385else
4386 cat >conftest.$ac_ext <<_ACEOF
4387/* confdefs.h. */
4388_ACEOF
4389cat confdefs.h >>conftest.$ac_ext
4390cat >>conftest.$ac_ext <<_ACEOF
4391/* end confdefs.h. */
4392#include <stdlib.h>
4393#include <stdarg.h>
4394#include <string.h>
4395#include <float.h>
4396
4397int
4398main ()
4399{
4400
4401 ;
4402 return 0;
4403}
4404_ACEOF
4405rm -f conftest.$ac_objext
4406if { (ac_try="$ac_compile"
4407case "(($ac_try" in
4408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4409 *) ac_try_echo=$ac_try;;
4410esac
ec6a6fbe
AK
4411eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4412$as_echo "$ac_try_echo") >&5
7a197a62
AK
4413 (eval "$ac_compile") 2>conftest.er1
4414 ac_status=$?
4415 grep -v '^ *+' conftest.er1 >conftest.err
4416 rm -f conftest.er1
4417 cat conftest.err >&5
ec6a6fbe 4418 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4419 (exit $ac_status); } && {
4420 test -z "$ac_c_werror_flag" ||
4421 test ! -s conftest.err
4422 } && test -s conftest.$ac_objext; then
7a197a62
AK
4423 ac_cv_header_stdc=yes
4424else
ec6a6fbe 4425 $as_echo "$as_me: failed program was:" >&5
7a197a62
AK
4426sed 's/^/| /' conftest.$ac_ext >&5
4427
4428 ac_cv_header_stdc=no
4429fi
4430
4431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4432
4433if test $ac_cv_header_stdc = yes; then
4434 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
ad6254c5 4435 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4436/* confdefs.h. */
4437_ACEOF
4438cat confdefs.h >>conftest.$ac_ext
4439cat >>conftest.$ac_ext <<_ACEOF
4440/* end confdefs.h. */
4441#include <string.h>
8106cdd5 4442
ad6254c5
AK
4443_ACEOF
4444if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4445 $EGREP "memchr" >/dev/null 2>&1; then
4446 :
4447else
4448 ac_cv_header_stdc=no
80992638 4449fi
ad6254c5 4450rm -f conftest*
795ca3e5
AK
4451
4452fi
4453
ad6254c5
AK
4454if test $ac_cv_header_stdc = yes; then
4455 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4456 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4457/* confdefs.h. */
4458_ACEOF
4459cat confdefs.h >>conftest.$ac_ext
4460cat >>conftest.$ac_ext <<_ACEOF
4461/* end confdefs.h. */
80992638 4462#include <stdlib.h>
ad6254c5
AK
4463
4464_ACEOF
80992638 4465if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ad6254c5
AK
4466 $EGREP "free" >/dev/null 2>&1; then
4467 :
795ca3e5 4468else
ad6254c5 4469 ac_cv_header_stdc=no
795ca3e5 4470fi
80992638 4471rm -f conftest*
8106cdd5 4472
795ca3e5
AK
4473fi
4474
ad6254c5
AK
4475if test $ac_cv_header_stdc = yes; then
4476 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4477 if test "$cross_compiling" = yes; then
4478 :
795ca3e5 4479else
ad6254c5 4480 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4481/* confdefs.h. */
4482_ACEOF
4483cat confdefs.h >>conftest.$ac_ext
4484cat >>conftest.$ac_ext <<_ACEOF
4485/* end confdefs.h. */
4486#include <ctype.h>
7a197a62 4487#include <stdlib.h>
ad6254c5
AK
4488#if ((' ' & 0x0FF) == 0x020)
4489# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4490# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4491#else
4492# define ISLOWER(c) \
8a2fc586
AK
4493 (('a' <= (c) && (c) <= 'i') \
4494 || ('j' <= (c) && (c) <= 'r') \
4495 || ('s' <= (c) && (c) <= 'z'))
ad6254c5 4496# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
80992638 4497#endif
ad6254c5
AK
4498
4499#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4500int
4501main ()
4502{
4503 int i;
4504 for (i = 0; i < 256; i++)
4505 if (XOR (islower (i), ISLOWER (i))
8a2fc586 4506 || toupper (i) != TOUPPER (i))
7a197a62
AK
4507 return 2;
4508 return 0;
ad6254c5
AK
4509}
4510_ACEOF
4511rm -f conftest$ac_exeext
7a197a62
AK
4512if { (ac_try="$ac_link"
4513case "(($ac_try" in
4514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4515 *) ac_try_echo=$ac_try;;
4516esac
ec6a6fbe
AK
4517eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4518$as_echo "$ac_try_echo") >&5
7a197a62 4519 (eval "$ac_link") 2>&5
ad6254c5 4520 ac_status=$?
ec6a6fbe 4521 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 4522 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
4523 { (case "(($ac_try" in
4524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4525 *) ac_try_echo=$ac_try;;
4526esac
ec6a6fbe
AK
4527eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4528$as_echo "$ac_try_echo") >&5
7a197a62 4529 (eval "$ac_try") 2>&5
ad6254c5 4530 ac_status=$?
ec6a6fbe 4531 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
4532 (exit $ac_status); }; }; then
4533 :
795ca3e5 4534else
ec6a6fbe
AK
4535 $as_echo "$as_me: program exited with status $ac_status" >&5
4536$as_echo "$as_me: failed program was:" >&5
ad6254c5 4537sed 's/^/| /' conftest.$ac_ext >&5
8106cdd5 4538
ad6254c5
AK
4539( exit $ac_status )
4540ac_cv_header_stdc=no
80992638 4541fi
ec6a6fbe 4542rm -rf conftest.dSYM
7a197a62 4543rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 4544fi
7a197a62
AK
4545
4546
ad6254c5
AK
4547fi
4548fi
ec6a6fbe
AK
4549{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4550$as_echo "$ac_cv_header_stdc" >&6; }
ad6254c5
AK
4551if test $ac_cv_header_stdc = yes; then
4552
4553cat >>confdefs.h <<\_ACEOF
4554#define STDC_HEADERS 1
4555_ACEOF
795ca3e5
AK
4556
4557fi
4558
d911ec67 4559# On IRIX 5.3, sys/types and inttypes.h are conflicting.
ad6254c5 4560
ad6254c5 4561
7a197a62 4562
8106cdd5 4563
795ca3e5 4564
795ca3e5 4565
d911ec67
AK
4566
4567
4568
4569for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4570 inttypes.h stdint.h unistd.h
4571do
4572as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4573{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4574$as_echo_n "checking for $ac_header... " >&6; }
4575if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 4576 $as_echo_n "(cached) " >&6
795ca3e5 4577else
ad6254c5 4578 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4579/* confdefs.h. */
4580_ACEOF
4581cat confdefs.h >>conftest.$ac_ext
4582cat >>conftest.$ac_ext <<_ACEOF
4583/* end confdefs.h. */
d911ec67 4584$ac_includes_default
ad6254c5 4585
d911ec67 4586#include <$ac_header>
ad6254c5
AK
4587_ACEOF
4588rm -f conftest.$ac_objext
7a197a62
AK
4589if { (ac_try="$ac_compile"
4590case "(($ac_try" in
4591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4592 *) ac_try_echo=$ac_try;;
4593esac
ec6a6fbe
AK
4594eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4595$as_echo "$ac_try_echo") >&5
7a197a62 4596 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4597 ac_status=$?
8a2fc586
AK
4598 grep -v '^ *+' conftest.er1 >conftest.err
4599 rm -f conftest.er1
4600 cat conftest.err >&5
ec6a6fbe 4601 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4602 (exit $ac_status); } && {
4603 test -z "$ac_c_werror_flag" ||
4604 test ! -s conftest.err
4605 } && test -s conftest.$ac_objext; then
d911ec67 4606 eval "$as_ac_Header=yes"
795ca3e5 4607else
ec6a6fbe 4608 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
4609sed 's/^/| /' conftest.$ac_ext >&5
4610
d911ec67 4611 eval "$as_ac_Header=no"
795ca3e5 4612fi
7a197a62
AK
4613
4614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
795ca3e5 4615fi
d911ec67
AK
4616ac_res=`eval 'as_val=${'$as_ac_Header'}
4617 $as_echo "$as_val"'`
4618 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4619$as_echo "$ac_res" >&6; }
4620as_val=`eval 'as_val=${'$as_ac_Header'}
4621 $as_echo "$as_val"'`
4622 if test "x$as_val" = x""yes; then
4623 cat >>confdefs.h <<_ACEOF
4624#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 4625_ACEOF
b896caa1 4626
8106cdd5 4627fi
b896caa1 4628
d911ec67 4629done
d0191583
JM
4630
4631
d911ec67
AK
4632{ $as_echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
4633$as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
4634if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
ec6a6fbe 4635 $as_echo_n "(cached) " >&6
d0191583
JM
4636else
4637 cat >conftest.$ac_ext <<_ACEOF
4638/* confdefs.h. */
4639_ACEOF
4640cat confdefs.h >>conftest.$ac_ext
4641cat >>conftest.$ac_ext <<_ACEOF
4642/* end confdefs.h. */
d911ec67
AK
4643#include <sys/types.h>
4644int
4645main ()
4646{
4647return makedev(0, 0);
4648 ;
4649 return 0;
4650}
d0191583 4651_ACEOF
d911ec67
AK
4652rm -f conftest.$ac_objext conftest$ac_exeext
4653if { (ac_try="$ac_link"
d0191583
JM
4654case "(($ac_try" in
4655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4656 *) ac_try_echo=$ac_try;;
4657esac
ec6a6fbe
AK
4658eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4659$as_echo "$ac_try_echo") >&5
d911ec67 4660 (eval "$ac_link") 2>conftest.er1
d0191583
JM
4661 ac_status=$?
4662 grep -v '^ *+' conftest.er1 >conftest.err
4663 rm -f conftest.er1
4664 cat conftest.err >&5
ec6a6fbe 4665 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4666 (exit $ac_status); } && {
4667 test -z "$ac_c_werror_flag" ||
4668 test ! -s conftest.err
d911ec67
AK
4669 } && test -s conftest$ac_exeext && {
4670 test "$cross_compiling" = yes ||
4671 $as_test_x conftest$ac_exeext
4672 }; then
4673 ac_cv_header_sys_types_h_makedev=yes
d0191583 4674else
ec6a6fbe 4675 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
4676sed 's/^/| /' conftest.$ac_ext >&5
4677
d911ec67 4678 ac_cv_header_sys_types_h_makedev=no
d0191583
JM
4679fi
4680
d911ec67
AK
4681rm -rf conftest.dSYM
4682rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4683 conftest$ac_exeext conftest.$ac_ext
d0191583
JM
4684
4685fi
d911ec67
AK
4686{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
4687$as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
d0191583 4688
d911ec67
AK
4689if test $ac_cv_header_sys_types_h_makedev = no; then
4690if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
4691 { $as_echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
4692$as_echo_n "checking for sys/mkdev.h... " >&6; }
4693if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
ec6a6fbe 4694 $as_echo_n "(cached) " >&6
d0191583 4695fi
d911ec67
AK
4696{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
4697$as_echo "$ac_cv_header_sys_mkdev_h" >&6; }
ad6254c5 4698else
d0191583 4699 # Is the header compilable?
d911ec67
AK
4700{ $as_echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
4701$as_echo_n "checking sys/mkdev.h usability... " >&6; }
d0191583 4702cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4703/* confdefs.h. */
4704_ACEOF
4705cat confdefs.h >>conftest.$ac_ext
4706cat >>conftest.$ac_ext <<_ACEOF
4707/* end confdefs.h. */
4708$ac_includes_default
d911ec67 4709#include <sys/mkdev.h>
ad6254c5
AK
4710_ACEOF
4711rm -f conftest.$ac_objext
7a197a62
AK
4712if { (ac_try="$ac_compile"
4713case "(($ac_try" in
4714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4715 *) ac_try_echo=$ac_try;;
4716esac
ec6a6fbe
AK
4717eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4718$as_echo "$ac_try_echo") >&5
7a197a62 4719 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4720 ac_status=$?
8a2fc586
AK
4721 grep -v '^ *+' conftest.er1 >conftest.err
4722 rm -f conftest.er1
4723 cat conftest.err >&5
ec6a6fbe 4724 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4725 (exit $ac_status); } && {
4726 test -z "$ac_c_werror_flag" ||
4727 test ! -s conftest.err
4728 } && test -s conftest.$ac_objext; then
d0191583 4729 ac_header_compiler=yes
ad6254c5 4730else
ec6a6fbe 4731 $as_echo "$as_me: failed program was:" >&5
ad6254c5 4732sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 4733
d0191583 4734 ac_header_compiler=no
ad6254c5 4735fi
7a197a62
AK
4736
4737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
4738{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4739$as_echo "$ac_header_compiler" >&6; }
d0191583
JM
4740
4741# Is the header present?
d911ec67
AK
4742{ $as_echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
4743$as_echo_n "checking sys/mkdev.h presence... " >&6; }
d0191583
JM
4744cat >conftest.$ac_ext <<_ACEOF
4745/* confdefs.h. */
4746_ACEOF
4747cat confdefs.h >>conftest.$ac_ext
4748cat >>conftest.$ac_ext <<_ACEOF
4749/* end confdefs.h. */
d911ec67 4750#include <sys/mkdev.h>
d0191583
JM
4751_ACEOF
4752if { (ac_try="$ac_cpp conftest.$ac_ext"
4753case "(($ac_try" in
4754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4755 *) ac_try_echo=$ac_try;;
4756esac
ec6a6fbe
AK
4757eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4758$as_echo "$ac_try_echo") >&5
d0191583
JM
4759 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4760 ac_status=$?
4761 grep -v '^ *+' conftest.er1 >conftest.err
4762 rm -f conftest.er1
4763 cat conftest.err >&5
ec6a6fbe 4764 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4765 (exit $ac_status); } >/dev/null && {
4766 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4767 test ! -s conftest.err
4768 }; then
4769 ac_header_preproc=yes
4770else
ec6a6fbe 4771 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
4772sed 's/^/| /' conftest.$ac_ext >&5
4773
4774 ac_header_preproc=no
4775fi
4776
4777rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
4778{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4779$as_echo "$ac_header_preproc" >&6; }
d0191583
JM
4780
4781# So? What about this header?
4782case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4783 yes:no: )
d911ec67
AK
4784 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
4785$as_echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4786 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
4787$as_echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
d0191583
JM
4788 ac_header_preproc=yes
4789 ;;
4790 no:yes:* )
d911ec67
AK
4791 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
4792$as_echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
4793 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
4794$as_echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
4795 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
4796$as_echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
4797 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
4798$as_echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
4799 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
4800$as_echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
4801 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
4802$as_echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
d0191583
JM
4803
4804 ;;
4805esac
d911ec67
AK
4806{ $as_echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
4807$as_echo_n "checking for sys/mkdev.h... " >&6; }
4808if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
ec6a6fbe 4809 $as_echo_n "(cached) " >&6
d0191583 4810else
d911ec67 4811 ac_cv_header_sys_mkdev_h=$ac_header_preproc
a38df97f 4812fi
d911ec67
AK
4813{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
4814$as_echo "$ac_cv_header_sys_mkdev_h" >&6; }
d0191583
JM
4815
4816fi
d911ec67
AK
4817if test "x$ac_cv_header_sys_mkdev_h" = x""yes; then
4818
4819cat >>confdefs.h <<\_ACEOF
4820#define MAJOR_IN_MKDEV 1
ad6254c5 4821_ACEOF
a38df97f 4822
80992638
AK
4823fi
4824
80992638 4825
5a52dca9 4826
d911ec67
AK
4827 if test $ac_cv_header_sys_mkdev_h = no; then
4828 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
4829 { $as_echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
4830$as_echo_n "checking for sys/sysmacros.h... " >&6; }
4831if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
ec6a6fbe 4832 $as_echo_n "(cached) " >&6
ad6254c5 4833fi
d911ec67
AK
4834{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
4835$as_echo "$ac_cv_header_sys_sysmacros_h" >&6; }
ad6254c5
AK
4836else
4837 # Is the header compilable?
d911ec67
AK
4838{ $as_echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
4839$as_echo_n "checking sys/sysmacros.h usability... " >&6; }
ad6254c5 4840cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4841/* confdefs.h. */
4842_ACEOF
4843cat confdefs.h >>conftest.$ac_ext
4844cat >>conftest.$ac_ext <<_ACEOF
4845/* end confdefs.h. */
4846$ac_includes_default
d911ec67 4847#include <sys/sysmacros.h>
ad6254c5
AK
4848_ACEOF
4849rm -f conftest.$ac_objext
7a197a62
AK
4850if { (ac_try="$ac_compile"
4851case "(($ac_try" in
4852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4853 *) ac_try_echo=$ac_try;;
4854esac
ec6a6fbe
AK
4855eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4856$as_echo "$ac_try_echo") >&5
7a197a62 4857 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4858 ac_status=$?
8a2fc586
AK
4859 grep -v '^ *+' conftest.er1 >conftest.err
4860 rm -f conftest.er1
4861 cat conftest.err >&5
ec6a6fbe 4862 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4863 (exit $ac_status); } && {
4864 test -z "$ac_c_werror_flag" ||
4865 test ! -s conftest.err
4866 } && test -s conftest.$ac_objext; then
fc54be10
AK
4867 ac_header_compiler=yes
4868else
ec6a6fbe 4869 $as_echo "$as_me: failed program was:" >&5
fc54be10
AK
4870sed 's/^/| /' conftest.$ac_ext >&5
4871
4872 ac_header_compiler=no
4873fi
4874
4875rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
4876{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4877$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
4878
4879# Is the header present?
d911ec67
AK
4880{ $as_echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
4881$as_echo_n "checking sys/sysmacros.h presence... " >&6; }
ad6254c5 4882cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4883/* confdefs.h. */
4884_ACEOF
4885cat confdefs.h >>conftest.$ac_ext
4886cat >>conftest.$ac_ext <<_ACEOF
4887/* end confdefs.h. */
d911ec67 4888#include <sys/sysmacros.h>
ad6254c5 4889_ACEOF
7a197a62
AK
4890if { (ac_try="$ac_cpp conftest.$ac_ext"
4891case "(($ac_try" in
4892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4893 *) ac_try_echo=$ac_try;;
4894esac
ec6a6fbe
AK
4895eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4896$as_echo "$ac_try_echo") >&5
7a197a62 4897 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
4898 ac_status=$?
4899 grep -v '^ *+' conftest.er1 >conftest.err
4900 rm -f conftest.er1
4901 cat conftest.err >&5
ec6a6fbe 4902 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4903 (exit $ac_status); } >/dev/null && {
4904 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4905 test ! -s conftest.err
4906 }; then
ad6254c5
AK
4907 ac_header_preproc=yes
4908else
ec6a6fbe 4909 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
4910sed 's/^/| /' conftest.$ac_ext >&5
4911
4912 ac_header_preproc=no
4913fi
7a197a62 4914
ad6254c5 4915rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
4916{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4917$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
4918
4919# So? What about this header?
8a2fc586
AK
4920case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4921 yes:no: )
d911ec67
AK
4922 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
4923$as_echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4924 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
4925$as_echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
8a2fc586 4926 ac_header_preproc=yes
ad6254c5 4927 ;;
8a2fc586 4928 no:yes:* )
d911ec67
AK
4929 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
4930$as_echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
4931 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
4932$as_echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
4933 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
4934$as_echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
4935 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
4936$as_echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
4937 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
4938$as_echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
4939 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
4940$as_echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
7a197a62 4941
ad6254c5
AK
4942 ;;
4943esac
d911ec67
AK
4944{ $as_echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
4945$as_echo_n "checking for sys/sysmacros.h... " >&6; }
4946if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
ec6a6fbe 4947 $as_echo_n "(cached) " >&6
ad6254c5 4948else
d911ec67 4949 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
b896caa1 4950fi
d911ec67
AK
4951{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
4952$as_echo "$ac_cv_header_sys_sysmacros_h" >&6; }
ad6254c5
AK
4953
4954fi
d911ec67
AK
4955if test "x$ac_cv_header_sys_sysmacros_h" = x""yes; then
4956
4957cat >>confdefs.h <<\_ACEOF
4958#define MAJOR_IN_SYSMACROS 1
ad6254c5 4959_ACEOF
b896caa1 4960
80992638
AK
4961fi
4962
d8ac0fbc 4963
d911ec67
AK
4964 fi
4965fi
d8ac0fbc 4966
d911ec67
AK
4967{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4968$as_echo_n "checking for ANSI C header files... " >&6; }
4969if test "${ac_cv_header_stdc+set}" = set; then
ec6a6fbe 4970 $as_echo_n "(cached) " >&6
ad6254c5 4971else
d911ec67 4972 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4973/* confdefs.h. */
4974_ACEOF
4975cat confdefs.h >>conftest.$ac_ext
4976cat >>conftest.$ac_ext <<_ACEOF
4977/* end confdefs.h. */
d911ec67
AK
4978#include <stdlib.h>
4979#include <stdarg.h>
4980#include <string.h>
4981#include <float.h>
4982
4983int
4984main ()
4985{
4986
4987 ;
4988 return 0;
4989}
ad6254c5
AK
4990_ACEOF
4991rm -f conftest.$ac_objext
7a197a62
AK
4992if { (ac_try="$ac_compile"
4993case "(($ac_try" in
4994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4995 *) ac_try_echo=$ac_try;;
4996esac
ec6a6fbe
AK
4997eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4998$as_echo "$ac_try_echo") >&5
7a197a62 4999 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5000 ac_status=$?
8a2fc586
AK
5001 grep -v '^ *+' conftest.er1 >conftest.err
5002 rm -f conftest.er1
5003 cat conftest.err >&5
ec6a6fbe 5004 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5005 (exit $ac_status); } && {
5006 test -z "$ac_c_werror_flag" ||
5007 test ! -s conftest.err
5008 } && test -s conftest.$ac_objext; then
d911ec67 5009 ac_cv_header_stdc=yes
ad6254c5 5010else
ec6a6fbe 5011 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5012sed 's/^/| /' conftest.$ac_ext >&5
5013
d911ec67 5014 ac_cv_header_stdc=no
ad6254c5 5015fi
7a197a62
AK
5016
5017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 5018
d911ec67
AK
5019if test $ac_cv_header_stdc = yes; then
5020 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5021 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5022/* confdefs.h. */
5023_ACEOF
5024cat confdefs.h >>conftest.$ac_ext
5025cat >>conftest.$ac_ext <<_ACEOF
5026/* end confdefs.h. */
d911ec67
AK
5027#include <string.h>
5028
ad6254c5 5029_ACEOF
d911ec67
AK
5030if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5031 $EGREP "memchr" >/dev/null 2>&1; then
5032 :
5033else
5034 ac_cv_header_stdc=no
5035fi
5036rm -f conftest*
5037
5038fi
5039
5040if test $ac_cv_header_stdc = yes; then
5041 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5042 cat >conftest.$ac_ext <<_ACEOF
5043/* confdefs.h. */
5044_ACEOF
5045cat confdefs.h >>conftest.$ac_ext
5046cat >>conftest.$ac_ext <<_ACEOF
5047/* end confdefs.h. */
5048#include <stdlib.h>
5049
5050_ACEOF
5051if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5052 $EGREP "free" >/dev/null 2>&1; then
5053 :
5054else
5055 ac_cv_header_stdc=no
5056fi
5057rm -f conftest*
5058
5059fi
5060
5061if test $ac_cv_header_stdc = yes; then
5062 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5063 if test "$cross_compiling" = yes; then
5064 :
5065else
5066 cat >conftest.$ac_ext <<_ACEOF
5067/* confdefs.h. */
5068_ACEOF
5069cat confdefs.h >>conftest.$ac_ext
5070cat >>conftest.$ac_ext <<_ACEOF
5071/* end confdefs.h. */
5072#include <ctype.h>
5073#include <stdlib.h>
5074#if ((' ' & 0x0FF) == 0x020)
5075# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5076# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5077#else
5078# define ISLOWER(c) \
5079 (('a' <= (c) && (c) <= 'i') \
5080 || ('j' <= (c) && (c) <= 'r') \
5081 || ('s' <= (c) && (c) <= 'z'))
5082# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5083#endif
5084
5085#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5086int
5087main ()
5088{
5089 int i;
5090 for (i = 0; i < 256; i++)
5091 if (XOR (islower (i), ISLOWER (i))
5092 || toupper (i) != TOUPPER (i))
5093 return 2;
5094 return 0;
5095}
5096_ACEOF
5097rm -f conftest$ac_exeext
5098if { (ac_try="$ac_link"
7a197a62
AK
5099case "(($ac_try" in
5100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5101 *) ac_try_echo=$ac_try;;
5102esac
ec6a6fbe
AK
5103eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5104$as_echo "$ac_try_echo") >&5
d911ec67
AK
5105 (eval "$ac_link") 2>&5
5106 ac_status=$?
5107 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5108 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5109 { (case "(($ac_try" in
5110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5111 *) ac_try_echo=$ac_try;;
5112esac
5113eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5114$as_echo "$ac_try_echo") >&5
5115 (eval "$ac_try") 2>&5
5116 ac_status=$?
5117 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5118 (exit $ac_status); }; }; then
5119 :
5120else
5121 $as_echo "$as_me: program exited with status $ac_status" >&5
5122$as_echo "$as_me: failed program was:" >&5
5123sed 's/^/| /' conftest.$ac_ext >&5
5124
5125( exit $ac_status )
5126ac_cv_header_stdc=no
5127fi
5128rm -rf conftest.dSYM
5129rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5130fi
5131
5132
5133fi
5134fi
5135{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5136$as_echo "$ac_cv_header_stdc" >&6; }
5137if test $ac_cv_header_stdc = yes; then
5138
5139cat >>confdefs.h <<\_ACEOF
5140#define STDC_HEADERS 1
5141_ACEOF
5142
5143fi
5144
5145{ $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5146$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
5147if test "${ac_cv_header_sys_wait_h+set}" = set; then
5148 $as_echo_n "(cached) " >&6
5149else
5150 cat >conftest.$ac_ext <<_ACEOF
5151/* confdefs.h. */
5152_ACEOF
5153cat confdefs.h >>conftest.$ac_ext
5154cat >>conftest.$ac_ext <<_ACEOF
5155/* end confdefs.h. */
5156#include <sys/types.h>
5157#include <sys/wait.h>
5158#ifndef WEXITSTATUS
5159# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
5160#endif
5161#ifndef WIFEXITED
5162# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5163#endif
5164
5165int
5166main ()
5167{
5168 int s;
5169 wait (&s);
5170 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5171 ;
5172 return 0;
5173}
5174_ACEOF
5175rm -f conftest.$ac_objext
5176if { (ac_try="$ac_compile"
5177case "(($ac_try" in
5178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5179 *) ac_try_echo=$ac_try;;
5180esac
5181eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5182$as_echo "$ac_try_echo") >&5
5183 (eval "$ac_compile") 2>conftest.er1
ad6254c5
AK
5184 ac_status=$?
5185 grep -v '^ *+' conftest.er1 >conftest.err
5186 rm -f conftest.er1
5187 cat conftest.err >&5
ec6a6fbe 5188 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d911ec67
AK
5189 (exit $ac_status); } && {
5190 test -z "$ac_c_werror_flag" ||
25fbec5b 5191 test ! -s conftest.err
d911ec67
AK
5192 } && test -s conftest.$ac_objext; then
5193 ac_cv_header_sys_wait_h=yes
ad6254c5 5194else
ec6a6fbe 5195 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5196sed 's/^/| /' conftest.$ac_ext >&5
5197
d911ec67 5198 ac_cv_header_sys_wait_h=no
ad6254c5 5199fi
7a197a62 5200
d911ec67
AK
5201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5202fi
5203{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5204$as_echo "$ac_cv_header_sys_wait_h" >&6; }
5205if test $ac_cv_header_sys_wait_h = yes; then
5206
5207cat >>confdefs.h <<\_ACEOF
5208#define HAVE_SYS_WAIT_H 1
5209_ACEOF
5210
5211fi
5212
5213{ $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5214$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
5215if test "${ac_cv_header_time+set}" = set; then
5216 $as_echo_n "(cached) " >&6
5217else
5218 cat >conftest.$ac_ext <<_ACEOF
5219/* confdefs.h. */
5220_ACEOF
5221cat confdefs.h >>conftest.$ac_ext
5222cat >>conftest.$ac_ext <<_ACEOF
5223/* end confdefs.h. */
5224#include <sys/types.h>
5225#include <sys/time.h>
5226#include <time.h>
5227
5228int
5229main ()
5230{
5231if ((struct tm *) 0)
5232return 0;
5233 ;
5234 return 0;
5235}
5236_ACEOF
5237rm -f conftest.$ac_objext
5238if { (ac_try="$ac_compile"
5239case "(($ac_try" in
5240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5241 *) ac_try_echo=$ac_try;;
5242esac
5243eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5244$as_echo "$ac_try_echo") >&5
5245 (eval "$ac_compile") 2>conftest.er1
5246 ac_status=$?
5247 grep -v '^ *+' conftest.er1 >conftest.err
5248 rm -f conftest.er1
5249 cat conftest.err >&5
5250 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5251 (exit $ac_status); } && {
5252 test -z "$ac_c_werror_flag" ||
5253 test ! -s conftest.err
5254 } && test -s conftest.$ac_objext; then
5255 ac_cv_header_time=yes
5256else
5257 $as_echo "$as_me: failed program was:" >&5
5258sed 's/^/| /' conftest.$ac_ext >&5
5259
5260 ac_cv_header_time=no
5261fi
5262
5263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5264fi
5265{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5266$as_echo "$ac_cv_header_time" >&6; }
5267if test $ac_cv_header_time = yes; then
5268
5269cat >>confdefs.h <<\_ACEOF
5270#define TIME_WITH_SYS_TIME 1
5271_ACEOF
5272
5273fi
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290for ac_header in locale.h stddef.h syslog.h sys/file.h sys/time.h assert.h \
5291 langinfo.h libgen.h signal.h sys/mman.h sys/resource.h sys/utsname.h \
5292 sys/wait.h time.h
5293do
5294as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5295if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5296 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5297$as_echo_n "checking for $ac_header... " >&6; }
5298if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5299 $as_echo_n "(cached) " >&6
5300fi
5301ac_res=`eval 'as_val=${'$as_ac_Header'}
5302 $as_echo "$as_val"'`
5303 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5304$as_echo "$ac_res" >&6; }
5305else
5306 # Is the header compilable?
5307{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5308$as_echo_n "checking $ac_header usability... " >&6; }
5309cat >conftest.$ac_ext <<_ACEOF
5310/* confdefs.h. */
5311_ACEOF
5312cat confdefs.h >>conftest.$ac_ext
5313cat >>conftest.$ac_ext <<_ACEOF
5314/* end confdefs.h. */
5315$ac_includes_default
5316#include <$ac_header>
5317_ACEOF
5318rm -f conftest.$ac_objext
5319if { (ac_try="$ac_compile"
5320case "(($ac_try" in
5321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5322 *) ac_try_echo=$ac_try;;
5323esac
5324eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5325$as_echo "$ac_try_echo") >&5
5326 (eval "$ac_compile") 2>conftest.er1
5327 ac_status=$?
5328 grep -v '^ *+' conftest.er1 >conftest.err
5329 rm -f conftest.er1
5330 cat conftest.err >&5
5331 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5332 (exit $ac_status); } && {
5333 test -z "$ac_c_werror_flag" ||
5334 test ! -s conftest.err
5335 } && test -s conftest.$ac_objext; then
5336 ac_header_compiler=yes
5337else
5338 $as_echo "$as_me: failed program was:" >&5
5339sed 's/^/| /' conftest.$ac_ext >&5
5340
5341 ac_header_compiler=no
5342fi
5343
5344rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5345{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5346$as_echo "$ac_header_compiler" >&6; }
5347
5348# Is the header present?
5349{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5350$as_echo_n "checking $ac_header presence... " >&6; }
5351cat >conftest.$ac_ext <<_ACEOF
5352/* confdefs.h. */
5353_ACEOF
5354cat confdefs.h >>conftest.$ac_ext
5355cat >>conftest.$ac_ext <<_ACEOF
5356/* end confdefs.h. */
5357#include <$ac_header>
5358_ACEOF
5359if { (ac_try="$ac_cpp conftest.$ac_ext"
5360case "(($ac_try" in
5361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5362 *) ac_try_echo=$ac_try;;
5363esac
5364eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5365$as_echo "$ac_try_echo") >&5
5366 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5367 ac_status=$?
5368 grep -v '^ *+' conftest.er1 >conftest.err
5369 rm -f conftest.er1
5370 cat conftest.err >&5
5371 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5372 (exit $ac_status); } >/dev/null && {
5373 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5374 test ! -s conftest.err
5375 }; then
5376 ac_header_preproc=yes
5377else
5378 $as_echo "$as_me: failed program was:" >&5
5379sed 's/^/| /' conftest.$ac_ext >&5
5380
5381 ac_header_preproc=no
5382fi
5383
5384rm -f conftest.err conftest.$ac_ext
5385{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5386$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
5387
5388# So? What about this header?
8a2fc586
AK
5389case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5390 yes:no: )
ec6a6fbe
AK
5391 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5392$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5393 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5394$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 5395 ac_header_preproc=yes
ad6254c5 5396 ;;
8a2fc586 5397 no:yes:* )
ec6a6fbe
AK
5398 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5399$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5400 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5401$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5402 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5403$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5404 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5405$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5406 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5407$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5408 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5409$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 5410
ad6254c5
AK
5411 ;;
5412esac
d911ec67
AK
5413{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5414$as_echo_n "checking for $ac_header... " >&6; }
5415if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5416 $as_echo_n "(cached) " >&6
5417else
5418 eval "$as_ac_Header=\$ac_header_preproc"
5419fi
5420ac_res=`eval 'as_val=${'$as_ac_Header'}
5421 $as_echo "$as_val"'`
5422 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5423$as_echo "$ac_res" >&6; }
5424
5425fi
5426as_val=`eval 'as_val=${'$as_ac_Header'}
5427 $as_echo "$as_val"'`
5428 if test "x$as_val" = x""yes; then
5429 cat >>confdefs.h <<_ACEOF
5430#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5431_ACEOF
5432
5433else
5434 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5435$as_echo "$as_me: error: bailing out" >&2;}
5436 { (exit 1); exit 1; }; }
5437fi
5438
5439done
5440
5441
5442case "$host_os" in
5443 linux*)
5444
5445
5446
5447for ac_header in asm/byteorder.h linux/fs.h malloc.h
5448do
5449as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5450if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5451 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5452$as_echo_n "checking for $ac_header... " >&6; }
5453if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5454 $as_echo_n "(cached) " >&6
5455fi
5456ac_res=`eval 'as_val=${'$as_ac_Header'}
5457 $as_echo "$as_val"'`
5458 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5459$as_echo "$ac_res" >&6; }
5460else
5461 # Is the header compilable?
5462{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5463$as_echo_n "checking $ac_header usability... " >&6; }
5464cat >conftest.$ac_ext <<_ACEOF
5465/* confdefs.h. */
5466_ACEOF
5467cat confdefs.h >>conftest.$ac_ext
5468cat >>conftest.$ac_ext <<_ACEOF
5469/* end confdefs.h. */
5470$ac_includes_default
5471#include <$ac_header>
5472_ACEOF
5473rm -f conftest.$ac_objext
5474if { (ac_try="$ac_compile"
5475case "(($ac_try" in
5476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5477 *) ac_try_echo=$ac_try;;
5478esac
5479eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5480$as_echo "$ac_try_echo") >&5
5481 (eval "$ac_compile") 2>conftest.er1
5482 ac_status=$?
5483 grep -v '^ *+' conftest.er1 >conftest.err
5484 rm -f conftest.er1
5485 cat conftest.err >&5
5486 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5487 (exit $ac_status); } && {
5488 test -z "$ac_c_werror_flag" ||
5489 test ! -s conftest.err
5490 } && test -s conftest.$ac_objext; then
5491 ac_header_compiler=yes
5492else
5493 $as_echo "$as_me: failed program was:" >&5
5494sed 's/^/| /' conftest.$ac_ext >&5
5495
5496 ac_header_compiler=no
5497fi
5498
5499rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5500{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5501$as_echo "$ac_header_compiler" >&6; }
5502
5503# Is the header present?
5504{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5505$as_echo_n "checking $ac_header presence... " >&6; }
5506cat >conftest.$ac_ext <<_ACEOF
5507/* confdefs.h. */
5508_ACEOF
5509cat confdefs.h >>conftest.$ac_ext
5510cat >>conftest.$ac_ext <<_ACEOF
5511/* end confdefs.h. */
5512#include <$ac_header>
5513_ACEOF
5514if { (ac_try="$ac_cpp conftest.$ac_ext"
5515case "(($ac_try" in
5516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5517 *) ac_try_echo=$ac_try;;
5518esac
5519eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5520$as_echo "$ac_try_echo") >&5
5521 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5522 ac_status=$?
5523 grep -v '^ *+' conftest.er1 >conftest.err
5524 rm -f conftest.er1
5525 cat conftest.err >&5
5526 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5527 (exit $ac_status); } >/dev/null && {
5528 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5529 test ! -s conftest.err
5530 }; then
5531 ac_header_preproc=yes
5532else
5533 $as_echo "$as_me: failed program was:" >&5
5534sed 's/^/| /' conftest.$ac_ext >&5
5535
5536 ac_header_preproc=no
5537fi
5538
5539rm -f conftest.err conftest.$ac_ext
5540{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5541$as_echo "$ac_header_preproc" >&6; }
5542
5543# So? What about this header?
5544case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5545 yes:no: )
5546 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5547$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5548 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5549$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5550 ac_header_preproc=yes
5551 ;;
5552 no:yes:* )
5553 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5554$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5555 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5556$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5557 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5558$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5559 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5560$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5561 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5562$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5563 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5564$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5565
5566 ;;
5567esac
5568{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5569$as_echo_n "checking for $ac_header... " >&6; }
5570if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5571 $as_echo_n "(cached) " >&6
5572else
5573 eval "$as_ac_Header=\$ac_header_preproc"
5574fi
5575ac_res=`eval 'as_val=${'$as_ac_Header'}
5576 $as_echo "$as_val"'`
5577 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5578$as_echo "$ac_res" >&6; }
5579
5580fi
5581as_val=`eval 'as_val=${'$as_ac_Header'}
5582 $as_echo "$as_val"'`
5583 if test "x$as_val" = x""yes; then
5584 cat >>confdefs.h <<_ACEOF
5585#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5586_ACEOF
5587
5588else
5589 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5590$as_echo "$as_me: error: bailing out" >&2;}
5591 { (exit 1); exit 1; }; }
5592fi
5593
5594done
5595 ;;
5596 darwin*)
5597
5598
5599for ac_header in machine/endian.h sys/disk.h
5600do
5601as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5602if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5603 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5604$as_echo_n "checking for $ac_header... " >&6; }
5605if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5606 $as_echo_n "(cached) " >&6
5607fi
5608ac_res=`eval 'as_val=${'$as_ac_Header'}
5609 $as_echo "$as_val"'`
5610 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5611$as_echo "$ac_res" >&6; }
5612else
5613 # Is the header compilable?
5614{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5615$as_echo_n "checking $ac_header usability... " >&6; }
5616cat >conftest.$ac_ext <<_ACEOF
5617/* confdefs.h. */
5618_ACEOF
5619cat confdefs.h >>conftest.$ac_ext
5620cat >>conftest.$ac_ext <<_ACEOF
5621/* end confdefs.h. */
5622$ac_includes_default
5623#include <$ac_header>
5624_ACEOF
5625rm -f conftest.$ac_objext
5626if { (ac_try="$ac_compile"
5627case "(($ac_try" in
5628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5629 *) ac_try_echo=$ac_try;;
5630esac
5631eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5632$as_echo "$ac_try_echo") >&5
5633 (eval "$ac_compile") 2>conftest.er1
5634 ac_status=$?
5635 grep -v '^ *+' conftest.er1 >conftest.err
5636 rm -f conftest.er1
5637 cat conftest.err >&5
5638 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5639 (exit $ac_status); } && {
5640 test -z "$ac_c_werror_flag" ||
5641 test ! -s conftest.err
5642 } && test -s conftest.$ac_objext; then
5643 ac_header_compiler=yes
5644else
5645 $as_echo "$as_me: failed program was:" >&5
5646sed 's/^/| /' conftest.$ac_ext >&5
5647
5648 ac_header_compiler=no
5649fi
5650
5651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5652{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5653$as_echo "$ac_header_compiler" >&6; }
5654
5655# Is the header present?
5656{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5657$as_echo_n "checking $ac_header presence... " >&6; }
5658cat >conftest.$ac_ext <<_ACEOF
5659/* confdefs.h. */
5660_ACEOF
5661cat confdefs.h >>conftest.$ac_ext
5662cat >>conftest.$ac_ext <<_ACEOF
5663/* end confdefs.h. */
5664#include <$ac_header>
5665_ACEOF
5666if { (ac_try="$ac_cpp conftest.$ac_ext"
5667case "(($ac_try" in
5668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5669 *) ac_try_echo=$ac_try;;
5670esac
5671eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5672$as_echo "$ac_try_echo") >&5
5673 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5674 ac_status=$?
5675 grep -v '^ *+' conftest.er1 >conftest.err
5676 rm -f conftest.er1
5677 cat conftest.err >&5
5678 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5679 (exit $ac_status); } >/dev/null && {
5680 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5681 test ! -s conftest.err
5682 }; then
5683 ac_header_preproc=yes
5684else
5685 $as_echo "$as_me: failed program was:" >&5
5686sed 's/^/| /' conftest.$ac_ext >&5
5687
5688 ac_header_preproc=no
5689fi
5690
5691rm -f conftest.err conftest.$ac_ext
5692{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5693$as_echo "$ac_header_preproc" >&6; }
5694
5695# So? What about this header?
5696case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5697 yes:no: )
5698 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5699$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5700 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5701$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5702 ac_header_preproc=yes
5703 ;;
5704 no:yes:* )
5705 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5706$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5707 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5708$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5709 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5710$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5711 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5712$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5713 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5714$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5715 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5716$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5717
5718 ;;
5719esac
5720{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5721$as_echo_n "checking for $ac_header... " >&6; }
5722if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5723 $as_echo_n "(cached) " >&6
5724else
5725 eval "$as_ac_Header=\$ac_header_preproc"
5726fi
5727ac_res=`eval 'as_val=${'$as_ac_Header'}
5728 $as_echo "$as_val"'`
5729 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5730$as_echo "$ac_res" >&6; }
5731
5732fi
5733as_val=`eval 'as_val=${'$as_ac_Header'}
5734 $as_echo "$as_val"'`
5735 if test "x$as_val" = x""yes; then
5736 cat >>confdefs.h <<_ACEOF
5737#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5738_ACEOF
5739
5740else
5741 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5742$as_echo "$as_me: error: bailing out" >&2;}
5743 { (exit 1); exit 1; }; }
5744fi
5745
5746done
5747 ;;
5748esac
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766for ac_header in ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h \
5767 stdarg.h stdio.h stdlib.h string.h sys/ioctl.h sys/param.h sys/stat.h \
5768 sys/types.h unistd.h
5769do
5770as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5771if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5772 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5773$as_echo_n "checking for $ac_header... " >&6; }
5774if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5775 $as_echo_n "(cached) " >&6
5776fi
5777ac_res=`eval 'as_val=${'$as_ac_Header'}
5778 $as_echo "$as_val"'`
5779 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5780$as_echo "$ac_res" >&6; }
5781else
5782 # Is the header compilable?
5783{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5784$as_echo_n "checking $ac_header usability... " >&6; }
5785cat >conftest.$ac_ext <<_ACEOF
5786/* confdefs.h. */
5787_ACEOF
5788cat confdefs.h >>conftest.$ac_ext
5789cat >>conftest.$ac_ext <<_ACEOF
5790/* end confdefs.h. */
5791$ac_includes_default
5792#include <$ac_header>
5793_ACEOF
5794rm -f conftest.$ac_objext
5795if { (ac_try="$ac_compile"
5796case "(($ac_try" in
5797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5798 *) ac_try_echo=$ac_try;;
5799esac
5800eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5801$as_echo "$ac_try_echo") >&5
5802 (eval "$ac_compile") 2>conftest.er1
5803 ac_status=$?
5804 grep -v '^ *+' conftest.er1 >conftest.err
5805 rm -f conftest.er1
5806 cat conftest.err >&5
5807 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5808 (exit $ac_status); } && {
5809 test -z "$ac_c_werror_flag" ||
5810 test ! -s conftest.err
5811 } && test -s conftest.$ac_objext; then
5812 ac_header_compiler=yes
5813else
5814 $as_echo "$as_me: failed program was:" >&5
5815sed 's/^/| /' conftest.$ac_ext >&5
5816
5817 ac_header_compiler=no
5818fi
5819
5820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5821{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5822$as_echo "$ac_header_compiler" >&6; }
5823
5824# Is the header present?
5825{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5826$as_echo_n "checking $ac_header presence... " >&6; }
5827cat >conftest.$ac_ext <<_ACEOF
5828/* confdefs.h. */
5829_ACEOF
5830cat confdefs.h >>conftest.$ac_ext
5831cat >>conftest.$ac_ext <<_ACEOF
5832/* end confdefs.h. */
5833#include <$ac_header>
5834_ACEOF
5835if { (ac_try="$ac_cpp conftest.$ac_ext"
5836case "(($ac_try" in
5837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5838 *) ac_try_echo=$ac_try;;
5839esac
5840eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5841$as_echo "$ac_try_echo") >&5
5842 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5843 ac_status=$?
5844 grep -v '^ *+' conftest.er1 >conftest.err
5845 rm -f conftest.er1
5846 cat conftest.err >&5
5847 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5848 (exit $ac_status); } >/dev/null && {
5849 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5850 test ! -s conftest.err
5851 }; then
5852 ac_header_preproc=yes
5853else
5854 $as_echo "$as_me: failed program was:" >&5
5855sed 's/^/| /' conftest.$ac_ext >&5
5856
5857 ac_header_preproc=no
5858fi
5859
5860rm -f conftest.err conftest.$ac_ext
5861{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5862$as_echo "$ac_header_preproc" >&6; }
5863
5864# So? What about this header?
5865case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5866 yes:no: )
5867 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5868$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5869 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5870$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5871 ac_header_preproc=yes
5872 ;;
5873 no:yes:* )
5874 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5875$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5876 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5877$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5878 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5879$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5880 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5881$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5882 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5883$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5884 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5885$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5886
5887 ;;
5888esac
5889{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5890$as_echo_n "checking for $ac_header... " >&6; }
5891if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5892 $as_echo_n "(cached) " >&6
5893else
5894 eval "$as_ac_Header=\$ac_header_preproc"
5895fi
5896ac_res=`eval 'as_val=${'$as_ac_Header'}
5897 $as_echo "$as_val"'`
5898 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5899$as_echo "$ac_res" >&6; }
5900
5901fi
5902as_val=`eval 'as_val=${'$as_ac_Header'}
5903 $as_echo "$as_val"'`
5904 if test "x$as_val" = x""yes; then
5905 cat >>confdefs.h <<_ACEOF
5906#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5907_ACEOF
5908
5909else
5910 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5911$as_echo "$as_me: error: bailing out" >&2;}
5912 { (exit 1); exit 1; }; }
5913fi
5914
5915done
5916
5917
5918
5919for ac_header in termios.h sys/statvfs.h
5920do
5921as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5922if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5923 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5924$as_echo_n "checking for $ac_header... " >&6; }
5925if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5926 $as_echo_n "(cached) " >&6
5927fi
5928ac_res=`eval 'as_val=${'$as_ac_Header'}
5929 $as_echo "$as_val"'`
5930 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5931$as_echo "$ac_res" >&6; }
5932else
5933 # Is the header compilable?
5934{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5935$as_echo_n "checking $ac_header usability... " >&6; }
5936cat >conftest.$ac_ext <<_ACEOF
5937/* confdefs.h. */
5938_ACEOF
5939cat confdefs.h >>conftest.$ac_ext
5940cat >>conftest.$ac_ext <<_ACEOF
5941/* end confdefs.h. */
5942$ac_includes_default
5943#include <$ac_header>
5944_ACEOF
5945rm -f conftest.$ac_objext
5946if { (ac_try="$ac_compile"
5947case "(($ac_try" in
5948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5949 *) ac_try_echo=$ac_try;;
5950esac
5951eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5952$as_echo "$ac_try_echo") >&5
5953 (eval "$ac_compile") 2>conftest.er1
5954 ac_status=$?
5955 grep -v '^ *+' conftest.er1 >conftest.err
5956 rm -f conftest.er1
5957 cat conftest.err >&5
5958 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5959 (exit $ac_status); } && {
5960 test -z "$ac_c_werror_flag" ||
5961 test ! -s conftest.err
5962 } && test -s conftest.$ac_objext; then
5963 ac_header_compiler=yes
5964else
5965 $as_echo "$as_me: failed program was:" >&5
5966sed 's/^/| /' conftest.$ac_ext >&5
5967
5968 ac_header_compiler=no
5969fi
5970
5971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5972{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5973$as_echo "$ac_header_compiler" >&6; }
5974
5975# Is the header present?
5976{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5977$as_echo_n "checking $ac_header presence... " >&6; }
5978cat >conftest.$ac_ext <<_ACEOF
5979/* confdefs.h. */
5980_ACEOF
5981cat confdefs.h >>conftest.$ac_ext
5982cat >>conftest.$ac_ext <<_ACEOF
5983/* end confdefs.h. */
5984#include <$ac_header>
5985_ACEOF
5986if { (ac_try="$ac_cpp conftest.$ac_ext"
5987case "(($ac_try" in
5988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5989 *) ac_try_echo=$ac_try;;
5990esac
5991eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5992$as_echo "$ac_try_echo") >&5
5993 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5994 ac_status=$?
5995 grep -v '^ *+' conftest.er1 >conftest.err
5996 rm -f conftest.er1
5997 cat conftest.err >&5
5998 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5999 (exit $ac_status); } >/dev/null && {
6000 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6001 test ! -s conftest.err
6002 }; then
6003 ac_header_preproc=yes
6004else
6005 $as_echo "$as_me: failed program was:" >&5
6006sed 's/^/| /' conftest.$ac_ext >&5
6007
6008 ac_header_preproc=no
6009fi
6010
6011rm -f conftest.err conftest.$ac_ext
6012{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6013$as_echo "$ac_header_preproc" >&6; }
6014
6015# So? What about this header?
6016case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6017 yes:no: )
6018 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6019$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6020 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6021$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6022 ac_header_preproc=yes
6023 ;;
6024 no:yes:* )
6025 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6026$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6027 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6028$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6029 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6030$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6031 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6032$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6033 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6034$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6035 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6036$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6037
6038 ;;
6039esac
6040{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6041$as_echo_n "checking for $ac_header... " >&6; }
6042if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6043 $as_echo_n "(cached) " >&6
6044else
6045 eval "$as_ac_Header=\$ac_header_preproc"
6046fi
6047ac_res=`eval 'as_val=${'$as_ac_Header'}
6048 $as_echo "$as_val"'`
6049 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6050$as_echo "$ac_res" >&6; }
6051
6052fi
6053as_val=`eval 'as_val=${'$as_ac_Header'}
6054 $as_echo "$as_val"'`
6055 if test "x$as_val" = x""yes; then
6056 cat >>confdefs.h <<_ACEOF
6057#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6058_ACEOF
6059
6060fi
6061
6062done
6063
6064
6065################################################################################
6066{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6067$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6068if test "${ac_cv_c_const+set}" = set; then
6069 $as_echo_n "(cached) " >&6
6070else
6071 cat >conftest.$ac_ext <<_ACEOF
6072/* confdefs.h. */
6073_ACEOF
6074cat confdefs.h >>conftest.$ac_ext
6075cat >>conftest.$ac_ext <<_ACEOF
6076/* end confdefs.h. */
6077
6078int
6079main ()
6080{
6081/* FIXME: Include the comments suggested by Paul. */
6082#ifndef __cplusplus
6083 /* Ultrix mips cc rejects this. */
6084 typedef int charset[2];
6085 const charset cs;
6086 /* SunOS 4.1.1 cc rejects this. */
6087 char const *const *pcpcc;
6088 char **ppc;
6089 /* NEC SVR4.0.2 mips cc rejects this. */
6090 struct point {int x, y;};
6091 static struct point const zero = {0,0};
6092 /* AIX XL C 1.02.0.0 rejects this.
6093 It does not let you subtract one const X* pointer from another in
6094 an arm of an if-expression whose if-part is not a constant
6095 expression */
6096 const char *g = "string";
6097 pcpcc = &g + (g ? g-g : 0);
6098 /* HPUX 7.0 cc rejects these. */
6099 ++pcpcc;
6100 ppc = (char**) pcpcc;
6101 pcpcc = (char const *const *) ppc;
6102 { /* SCO 3.2v4 cc rejects this. */
6103 char *t;
6104 char const *s = 0 ? (char *) 0 : (char const *) 0;
6105
6106 *t++ = 0;
6107 if (s) return 0;
6108 }
6109 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6110 int x[] = {25, 17};
6111 const int *foo = &x[0];
6112 ++foo;
6113 }
6114 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6115 typedef const int *iptr;
6116 iptr p = 0;
6117 ++p;
6118 }
6119 { /* AIX XL C 1.02.0.0 rejects this saying
6120 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6121 struct s { int j; const int *ap[3]; };
6122 struct s *b; b->j = 5;
6123 }
6124 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6125 const int foo = 10;
6126 if (!foo) return 0;
6127 }
6128 return !cs[0] && !zero.x;
6129#endif
6130
6131 ;
6132 return 0;
6133}
6134_ACEOF
6135rm -f conftest.$ac_objext
6136if { (ac_try="$ac_compile"
6137case "(($ac_try" in
6138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6139 *) ac_try_echo=$ac_try;;
6140esac
6141eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6142$as_echo "$ac_try_echo") >&5
6143 (eval "$ac_compile") 2>conftest.er1
6144 ac_status=$?
6145 grep -v '^ *+' conftest.er1 >conftest.err
6146 rm -f conftest.er1
6147 cat conftest.err >&5
6148 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6149 (exit $ac_status); } && {
6150 test -z "$ac_c_werror_flag" ||
6151 test ! -s conftest.err
6152 } && test -s conftest.$ac_objext; then
6153 ac_cv_c_const=yes
6154else
6155 $as_echo "$as_me: failed program was:" >&5
6156sed 's/^/| /' conftest.$ac_ext >&5
6157
6158 ac_cv_c_const=no
6159fi
6160
6161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6162fi
6163{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6164$as_echo "$ac_cv_c_const" >&6; }
6165if test $ac_cv_c_const = no; then
6166
6167cat >>confdefs.h <<\_ACEOF
6168#define const /**/
6169_ACEOF
6170
6171fi
6172
6173{ $as_echo "$as_me:$LINENO: checking for inline" >&5
6174$as_echo_n "checking for inline... " >&6; }
6175if test "${ac_cv_c_inline+set}" = set; then
6176 $as_echo_n "(cached) " >&6
6177else
6178 ac_cv_c_inline=no
6179for ac_kw in inline __inline__ __inline; do
6180 cat >conftest.$ac_ext <<_ACEOF
6181/* confdefs.h. */
6182_ACEOF
6183cat confdefs.h >>conftest.$ac_ext
6184cat >>conftest.$ac_ext <<_ACEOF
6185/* end confdefs.h. */
6186#ifndef __cplusplus
6187typedef int foo_t;
6188static $ac_kw foo_t static_foo () {return 0; }
6189$ac_kw foo_t foo () {return 0; }
6190#endif
6191
6192_ACEOF
6193rm -f conftest.$ac_objext
6194if { (ac_try="$ac_compile"
6195case "(($ac_try" in
6196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6197 *) ac_try_echo=$ac_try;;
6198esac
6199eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6200$as_echo "$ac_try_echo") >&5
6201 (eval "$ac_compile") 2>conftest.er1
6202 ac_status=$?
6203 grep -v '^ *+' conftest.er1 >conftest.err
6204 rm -f conftest.er1
6205 cat conftest.err >&5
6206 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6207 (exit $ac_status); } && {
6208 test -z "$ac_c_werror_flag" ||
6209 test ! -s conftest.err
6210 } && test -s conftest.$ac_objext; then
6211 ac_cv_c_inline=$ac_kw
6212else
6213 $as_echo "$as_me: failed program was:" >&5
6214sed 's/^/| /' conftest.$ac_ext >&5
6215
6216
6217fi
6218
6219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6220 test "$ac_cv_c_inline" != no && break
6221done
6222
6223fi
6224{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
6225$as_echo "$ac_cv_c_inline" >&6; }
6226
6227
6228case $ac_cv_c_inline in
6229 inline | yes) ;;
6230 *)
6231 case $ac_cv_c_inline in
6232 no) ac_val=;;
6233 *) ac_val=$ac_cv_c_inline;;
6234 esac
6235 cat >>confdefs.h <<_ACEOF
6236#ifndef __cplusplus
6237#define inline $ac_val
6238#endif
6239_ACEOF
6240 ;;
6241esac
6242
6243{ $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
6244$as_echo_n "checking for struct stat.st_rdev... " >&6; }
6245if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
6246 $as_echo_n "(cached) " >&6
6247else
6248 cat >conftest.$ac_ext <<_ACEOF
6249/* confdefs.h. */
6250_ACEOF
6251cat confdefs.h >>conftest.$ac_ext
6252cat >>conftest.$ac_ext <<_ACEOF
6253/* end confdefs.h. */
6254$ac_includes_default
6255int
6256main ()
6257{
6258static struct stat ac_aggr;
6259if (ac_aggr.st_rdev)
6260return 0;
6261 ;
6262 return 0;
6263}
6264_ACEOF
6265rm -f conftest.$ac_objext
6266if { (ac_try="$ac_compile"
6267case "(($ac_try" in
6268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6269 *) ac_try_echo=$ac_try;;
6270esac
6271eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6272$as_echo "$ac_try_echo") >&5
6273 (eval "$ac_compile") 2>conftest.er1
6274 ac_status=$?
6275 grep -v '^ *+' conftest.er1 >conftest.err
6276 rm -f conftest.er1
6277 cat conftest.err >&5
6278 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6279 (exit $ac_status); } && {
6280 test -z "$ac_c_werror_flag" ||
6281 test ! -s conftest.err
6282 } && test -s conftest.$ac_objext; then
6283 ac_cv_member_struct_stat_st_rdev=yes
6284else
6285 $as_echo "$as_me: failed program was:" >&5
6286sed 's/^/| /' conftest.$ac_ext >&5
6287
6288 cat >conftest.$ac_ext <<_ACEOF
6289/* confdefs.h. */
6290_ACEOF
6291cat confdefs.h >>conftest.$ac_ext
6292cat >>conftest.$ac_ext <<_ACEOF
6293/* end confdefs.h. */
6294$ac_includes_default
6295int
6296main ()
6297{
6298static struct stat ac_aggr;
6299if (sizeof ac_aggr.st_rdev)
6300return 0;
6301 ;
6302 return 0;
6303}
6304_ACEOF
6305rm -f conftest.$ac_objext
6306if { (ac_try="$ac_compile"
6307case "(($ac_try" in
6308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6309 *) ac_try_echo=$ac_try;;
6310esac
6311eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6312$as_echo "$ac_try_echo") >&5
6313 (eval "$ac_compile") 2>conftest.er1
6314 ac_status=$?
6315 grep -v '^ *+' conftest.er1 >conftest.err
6316 rm -f conftest.er1
6317 cat conftest.err >&5
6318 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6319 (exit $ac_status); } && {
6320 test -z "$ac_c_werror_flag" ||
6321 test ! -s conftest.err
6322 } && test -s conftest.$ac_objext; then
6323 ac_cv_member_struct_stat_st_rdev=yes
6324else
6325 $as_echo "$as_me: failed program was:" >&5
6326sed 's/^/| /' conftest.$ac_ext >&5
6327
6328 ac_cv_member_struct_stat_st_rdev=no
6329fi
6330
6331rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6332fi
6333
6334rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6335fi
6336{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
6337$as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; }
6338if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then
6339
6340cat >>confdefs.h <<_ACEOF
6341#define HAVE_STRUCT_STAT_ST_RDEV 1
6342_ACEOF
6343
6344
6345fi
6346
6347{ $as_echo "$as_me:$LINENO: checking for off_t" >&5
6348$as_echo_n "checking for off_t... " >&6; }
6349if test "${ac_cv_type_off_t+set}" = set; then
6350 $as_echo_n "(cached) " >&6
6351else
6352 ac_cv_type_off_t=no
6353cat >conftest.$ac_ext <<_ACEOF
6354/* confdefs.h. */
6355_ACEOF
6356cat confdefs.h >>conftest.$ac_ext
6357cat >>conftest.$ac_ext <<_ACEOF
6358/* end confdefs.h. */
6359$ac_includes_default
6360int
6361main ()
6362{
6363if (sizeof (off_t))
6364 return 0;
6365 ;
6366 return 0;
6367}
6368_ACEOF
6369rm -f conftest.$ac_objext
6370if { (ac_try="$ac_compile"
6371case "(($ac_try" in
6372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6373 *) ac_try_echo=$ac_try;;
6374esac
6375eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6376$as_echo "$ac_try_echo") >&5
6377 (eval "$ac_compile") 2>conftest.er1
6378 ac_status=$?
6379 grep -v '^ *+' conftest.er1 >conftest.err
6380 rm -f conftest.er1
6381 cat conftest.err >&5
6382 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6383 (exit $ac_status); } && {
6384 test -z "$ac_c_werror_flag" ||
6385 test ! -s conftest.err
6386 } && test -s conftest.$ac_objext; then
6387 cat >conftest.$ac_ext <<_ACEOF
6388/* confdefs.h. */
6389_ACEOF
6390cat confdefs.h >>conftest.$ac_ext
6391cat >>conftest.$ac_ext <<_ACEOF
6392/* end confdefs.h. */
6393$ac_includes_default
6394int
6395main ()
6396{
6397if (sizeof ((off_t)))
6398 return 0;
6399 ;
6400 return 0;
6401}
6402_ACEOF
6403rm -f conftest.$ac_objext
6404if { (ac_try="$ac_compile"
6405case "(($ac_try" in
6406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6407 *) ac_try_echo=$ac_try;;
6408esac
6409eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6410$as_echo "$ac_try_echo") >&5
6411 (eval "$ac_compile") 2>conftest.er1
6412 ac_status=$?
6413 grep -v '^ *+' conftest.er1 >conftest.err
6414 rm -f conftest.er1
6415 cat conftest.err >&5
6416 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6417 (exit $ac_status); } && {
6418 test -z "$ac_c_werror_flag" ||
6419 test ! -s conftest.err
6420 } && test -s conftest.$ac_objext; then
6421 :
6422else
6423 $as_echo "$as_me: failed program was:" >&5
6424sed 's/^/| /' conftest.$ac_ext >&5
6425
6426 ac_cv_type_off_t=yes
6427fi
6428
6429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6430else
6431 $as_echo "$as_me: failed program was:" >&5
6432sed 's/^/| /' conftest.$ac_ext >&5
6433
6434
6435fi
6436
6437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6438fi
6439{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6440$as_echo "$ac_cv_type_off_t" >&6; }
6441if test "x$ac_cv_type_off_t" = x""yes; then
6442 :
6443else
6444
6445cat >>confdefs.h <<_ACEOF
6446#define off_t long int
6447_ACEOF
6448
6449fi
6450
6451{ $as_echo "$as_me:$LINENO: checking for pid_t" >&5
6452$as_echo_n "checking for pid_t... " >&6; }
6453if test "${ac_cv_type_pid_t+set}" = set; then
6454 $as_echo_n "(cached) " >&6
6455else
6456 ac_cv_type_pid_t=no
6457cat >conftest.$ac_ext <<_ACEOF
6458/* confdefs.h. */
6459_ACEOF
6460cat confdefs.h >>conftest.$ac_ext
6461cat >>conftest.$ac_ext <<_ACEOF
6462/* end confdefs.h. */
6463$ac_includes_default
6464int
6465main ()
6466{
6467if (sizeof (pid_t))
6468 return 0;
6469 ;
6470 return 0;
6471}
6472_ACEOF
6473rm -f conftest.$ac_objext
6474if { (ac_try="$ac_compile"
6475case "(($ac_try" in
6476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6477 *) ac_try_echo=$ac_try;;
6478esac
6479eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6480$as_echo "$ac_try_echo") >&5
6481 (eval "$ac_compile") 2>conftest.er1
6482 ac_status=$?
6483 grep -v '^ *+' conftest.er1 >conftest.err
6484 rm -f conftest.er1
6485 cat conftest.err >&5
6486 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6487 (exit $ac_status); } && {
6488 test -z "$ac_c_werror_flag" ||
6489 test ! -s conftest.err
6490 } && test -s conftest.$ac_objext; then
6491 cat >conftest.$ac_ext <<_ACEOF
6492/* confdefs.h. */
6493_ACEOF
6494cat confdefs.h >>conftest.$ac_ext
6495cat >>conftest.$ac_ext <<_ACEOF
6496/* end confdefs.h. */
6497$ac_includes_default
6498int
6499main ()
6500{
6501if (sizeof ((pid_t)))
6502 return 0;
6503 ;
6504 return 0;
6505}
6506_ACEOF
6507rm -f conftest.$ac_objext
6508if { (ac_try="$ac_compile"
6509case "(($ac_try" in
6510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6511 *) ac_try_echo=$ac_try;;
6512esac
6513eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6514$as_echo "$ac_try_echo") >&5
6515 (eval "$ac_compile") 2>conftest.er1
6516 ac_status=$?
6517 grep -v '^ *+' conftest.er1 >conftest.err
6518 rm -f conftest.er1
6519 cat conftest.err >&5
6520 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6521 (exit $ac_status); } && {
6522 test -z "$ac_c_werror_flag" ||
6523 test ! -s conftest.err
6524 } && test -s conftest.$ac_objext; then
6525 :
6526else
6527 $as_echo "$as_me: failed program was:" >&5
6528sed 's/^/| /' conftest.$ac_ext >&5
6529
6530 ac_cv_type_pid_t=yes
6531fi
6532
6533rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6534else
6535 $as_echo "$as_me: failed program was:" >&5
6536sed 's/^/| /' conftest.$ac_ext >&5
6537
6538
6539fi
6540
6541rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6542fi
6543{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6544$as_echo "$ac_cv_type_pid_t" >&6; }
6545if test "x$ac_cv_type_pid_t" = x""yes; then
6546 :
6547else
6548
6549cat >>confdefs.h <<_ACEOF
6550#define pid_t int
6551_ACEOF
6552
6553fi
6554
6555{ $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6556$as_echo_n "checking return type of signal handlers... " >&6; }
6557if test "${ac_cv_type_signal+set}" = set; then
6558 $as_echo_n "(cached) " >&6
6559else
6560 cat >conftest.$ac_ext <<_ACEOF
6561/* confdefs.h. */
6562_ACEOF
6563cat confdefs.h >>conftest.$ac_ext
6564cat >>conftest.$ac_ext <<_ACEOF
6565/* end confdefs.h. */
6566#include <sys/types.h>
6567#include <signal.h>
6568
6569int
6570main ()
6571{
6572return *(signal (0, 0)) (0) == 1;
6573 ;
6574 return 0;
6575}
6576_ACEOF
6577rm -f conftest.$ac_objext
6578if { (ac_try="$ac_compile"
6579case "(($ac_try" in
6580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6581 *) ac_try_echo=$ac_try;;
6582esac
6583eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6584$as_echo "$ac_try_echo") >&5
6585 (eval "$ac_compile") 2>conftest.er1
6586 ac_status=$?
6587 grep -v '^ *+' conftest.er1 >conftest.err
6588 rm -f conftest.er1
6589 cat conftest.err >&5
6590 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6591 (exit $ac_status); } && {
6592 test -z "$ac_c_werror_flag" ||
6593 test ! -s conftest.err
6594 } && test -s conftest.$ac_objext; then
6595 ac_cv_type_signal=int
6596else
6597 $as_echo "$as_me: failed program was:" >&5
6598sed 's/^/| /' conftest.$ac_ext >&5
6599
6600 ac_cv_type_signal=void
6601fi
6602
6603rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6604fi
6605{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6606$as_echo "$ac_cv_type_signal" >&6; }
6607
6608cat >>confdefs.h <<_ACEOF
6609#define RETSIGTYPE $ac_cv_type_signal
6610_ACEOF
6611
6612
6613{ $as_echo "$as_me:$LINENO: checking for size_t" >&5
6614$as_echo_n "checking for size_t... " >&6; }
6615if test "${ac_cv_type_size_t+set}" = set; then
6616 $as_echo_n "(cached) " >&6
6617else
6618 ac_cv_type_size_t=no
6619cat >conftest.$ac_ext <<_ACEOF
6620/* confdefs.h. */
6621_ACEOF
6622cat confdefs.h >>conftest.$ac_ext
6623cat >>conftest.$ac_ext <<_ACEOF
6624/* end confdefs.h. */
6625$ac_includes_default
6626int
6627main ()
6628{
6629if (sizeof (size_t))
6630 return 0;
6631 ;
6632 return 0;
6633}
6634_ACEOF
6635rm -f conftest.$ac_objext
6636if { (ac_try="$ac_compile"
6637case "(($ac_try" in
6638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6639 *) ac_try_echo=$ac_try;;
6640esac
6641eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6642$as_echo "$ac_try_echo") >&5
6643 (eval "$ac_compile") 2>conftest.er1
6644 ac_status=$?
6645 grep -v '^ *+' conftest.er1 >conftest.err
6646 rm -f conftest.er1
6647 cat conftest.err >&5
6648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6649 (exit $ac_status); } && {
6650 test -z "$ac_c_werror_flag" ||
6651 test ! -s conftest.err
6652 } && test -s conftest.$ac_objext; then
6653 cat >conftest.$ac_ext <<_ACEOF
6654/* confdefs.h. */
6655_ACEOF
6656cat confdefs.h >>conftest.$ac_ext
6657cat >>conftest.$ac_ext <<_ACEOF
6658/* end confdefs.h. */
6659$ac_includes_default
6660int
6661main ()
6662{
6663if (sizeof ((size_t)))
6664 return 0;
6665 ;
6666 return 0;
6667}
6668_ACEOF
6669rm -f conftest.$ac_objext
6670if { (ac_try="$ac_compile"
6671case "(($ac_try" in
6672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6673 *) ac_try_echo=$ac_try;;
6674esac
6675eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6676$as_echo "$ac_try_echo") >&5
6677 (eval "$ac_compile") 2>conftest.er1
6678 ac_status=$?
6679 grep -v '^ *+' conftest.er1 >conftest.err
6680 rm -f conftest.er1
6681 cat conftest.err >&5
6682 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6683 (exit $ac_status); } && {
6684 test -z "$ac_c_werror_flag" ||
6685 test ! -s conftest.err
6686 } && test -s conftest.$ac_objext; then
6687 :
ad6254c5 6688else
d911ec67
AK
6689 $as_echo "$as_me: failed program was:" >&5
6690sed 's/^/| /' conftest.$ac_ext >&5
ad6254c5 6691
d911ec67 6692 ac_cv_type_size_t=yes
ad6254c5 6693fi
4922197a 6694
d911ec67 6695rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4922197a 6696else
d911ec67
AK
6697 $as_echo "$as_me: failed program was:" >&5
6698sed 's/^/| /' conftest.$ac_ext >&5
d0191583
JM
6699
6700
d911ec67 6701fi
d0191583 6702
d911ec67
AK
6703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6704fi
6705{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6706$as_echo "$ac_cv_type_size_t" >&6; }
6707if test "x$ac_cv_type_size_t" = x""yes; then
6708 :
6709else
d0191583 6710
d911ec67
AK
6711cat >>confdefs.h <<_ACEOF
6712#define size_t unsigned int
6713_ACEOF
d0191583 6714
d911ec67 6715fi
d0191583 6716
d911ec67
AK
6717{ $as_echo "$as_me:$LINENO: checking for mode_t" >&5
6718$as_echo_n "checking for mode_t... " >&6; }
6719if test "${ac_cv_type_mode_t+set}" = set; then
ec6a6fbe 6720 $as_echo_n "(cached) " >&6
795ca3e5 6721else
d911ec67 6722 ac_cv_type_mode_t=no
ad6254c5 6723cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6724/* confdefs.h. */
6725_ACEOF
6726cat confdefs.h >>conftest.$ac_ext
6727cat >>conftest.$ac_ext <<_ACEOF
6728/* end confdefs.h. */
6729$ac_includes_default
d911ec67
AK
6730int
6731main ()
6732{
6733if (sizeof (mode_t))
6734 return 0;
6735 ;
6736 return 0;
6737}
ad6254c5
AK
6738_ACEOF
6739rm -f conftest.$ac_objext
7a197a62
AK
6740if { (ac_try="$ac_compile"
6741case "(($ac_try" in
6742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6743 *) ac_try_echo=$ac_try;;
6744esac
ec6a6fbe
AK
6745eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6746$as_echo "$ac_try_echo") >&5
7a197a62 6747 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6748 ac_status=$?
8a2fc586
AK
6749 grep -v '^ *+' conftest.er1 >conftest.err
6750 rm -f conftest.er1
6751 cat conftest.err >&5
ec6a6fbe 6752 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6753 (exit $ac_status); } && {
6754 test -z "$ac_c_werror_flag" ||
6755 test ! -s conftest.err
6756 } && test -s conftest.$ac_objext; then
d911ec67 6757 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6758/* confdefs.h. */
6759_ACEOF
6760cat confdefs.h >>conftest.$ac_ext
6761cat >>conftest.$ac_ext <<_ACEOF
6762/* end confdefs.h. */
d911ec67
AK
6763$ac_includes_default
6764int
6765main ()
6766{
6767if (sizeof ((mode_t)))
6768 return 0;
6769 ;
6770 return 0;
6771}
ad6254c5 6772_ACEOF
d911ec67
AK
6773rm -f conftest.$ac_objext
6774if { (ac_try="$ac_compile"
7a197a62
AK
6775case "(($ac_try" in
6776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6777 *) ac_try_echo=$ac_try;;
6778esac
ec6a6fbe
AK
6779eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6780$as_echo "$ac_try_echo") >&5
d911ec67 6781 (eval "$ac_compile") 2>conftest.er1
ad6254c5
AK
6782 ac_status=$?
6783 grep -v '^ *+' conftest.er1 >conftest.err
6784 rm -f conftest.er1
6785 cat conftest.err >&5
ec6a6fbe 6786 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d911ec67
AK
6787 (exit $ac_status); } && {
6788 test -z "$ac_c_werror_flag" ||
25fbec5b 6789 test ! -s conftest.err
d911ec67
AK
6790 } && test -s conftest.$ac_objext; then
6791 :
ad6254c5 6792else
ec6a6fbe 6793 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6794sed 's/^/| /' conftest.$ac_ext >&5
6795
d911ec67 6796 ac_cv_type_mode_t=yes
ad6254c5 6797fi
7a197a62 6798
d911ec67
AK
6799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6800else
6801 $as_echo "$as_me: failed program was:" >&5
6802sed 's/^/| /' conftest.$ac_ext >&5
ad6254c5 6803
7a197a62 6804
80992638
AK
6805fi
6806
d911ec67 6807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 6808fi
d911ec67
AK
6809{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6810$as_echo "$ac_cv_type_mode_t" >&6; }
6811if test "x$ac_cv_type_mode_t" = x""yes; then
6812 :
795ca3e5 6813else
80992638 6814
d911ec67
AK
6815cat >>confdefs.h <<_ACEOF
6816#define mode_t int
6817_ACEOF
ad6254c5 6818
d911ec67 6819fi
795ca3e5 6820
d0191583 6821
d911ec67
AK
6822 { $as_echo "$as_me:$LINENO: checking for int8_t" >&5
6823$as_echo_n "checking for int8_t... " >&6; }
6824if test "${ac_cv_c_int8_t+set}" = set; then
ec6a6fbe 6825 $as_echo_n "(cached) " >&6
ad6254c5 6826else
d911ec67
AK
6827 ac_cv_c_int8_t=no
6828 for ac_type in 'int8_t' 'int' 'long int' \
6829 'long long int' 'short int' 'signed char'; do
6830 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6831/* confdefs.h. */
6832_ACEOF
6833cat confdefs.h >>conftest.$ac_ext
6834cat >>conftest.$ac_ext <<_ACEOF
6835/* end confdefs.h. */
6836$ac_includes_default
d911ec67
AK
6837int
6838main ()
6839{
6840static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 1))];
6841test_array [0] = 0
6842
6843 ;
6844 return 0;
6845}
ad6254c5
AK
6846_ACEOF
6847rm -f conftest.$ac_objext
7a197a62
AK
6848if { (ac_try="$ac_compile"
6849case "(($ac_try" in
6850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6851 *) ac_try_echo=$ac_try;;
6852esac
ec6a6fbe
AK
6853eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6854$as_echo "$ac_try_echo") >&5
7a197a62 6855 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6856 ac_status=$?
8a2fc586
AK
6857 grep -v '^ *+' conftest.er1 >conftest.err
6858 rm -f conftest.er1
6859 cat conftest.err >&5
ec6a6fbe 6860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6861 (exit $ac_status); } && {
6862 test -z "$ac_c_werror_flag" ||
6863 test ! -s conftest.err
6864 } && test -s conftest.$ac_objext; then
d911ec67 6865 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6866/* confdefs.h. */
6867_ACEOF
6868cat confdefs.h >>conftest.$ac_ext
6869cat >>conftest.$ac_ext <<_ACEOF
6870/* end confdefs.h. */
d911ec67
AK
6871$ac_includes_default
6872int
6873main ()
6874{
6875static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 1)
6876 < ($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 2))];
6877test_array [0] = 0
6878
6879 ;
6880 return 0;
6881}
ad6254c5 6882_ACEOF
d911ec67
AK
6883rm -f conftest.$ac_objext
6884if { (ac_try="$ac_compile"
7a197a62
AK
6885case "(($ac_try" in
6886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6887 *) ac_try_echo=$ac_try;;
6888esac
ec6a6fbe
AK
6889eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6890$as_echo "$ac_try_echo") >&5
d911ec67 6891 (eval "$ac_compile") 2>conftest.er1
ad6254c5
AK
6892 ac_status=$?
6893 grep -v '^ *+' conftest.er1 >conftest.err
6894 rm -f conftest.er1
6895 cat conftest.err >&5
ec6a6fbe 6896 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d911ec67
AK
6897 (exit $ac_status); } && {
6898 test -z "$ac_c_werror_flag" ||
25fbec5b 6899 test ! -s conftest.err
d911ec67
AK
6900 } && test -s conftest.$ac_objext; then
6901 :
ad6254c5 6902else
ec6a6fbe 6903 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6904sed 's/^/| /' conftest.$ac_ext >&5
6905
d911ec67
AK
6906 case $ac_type in
6907 int8_t) ac_cv_c_int8_t=yes ;;
6908 *) ac_cv_c_int8_t=$ac_type ;;
6909esac
ad6254c5 6910
d911ec67 6911fi
7a197a62 6912
d911ec67 6913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 6914else
d911ec67
AK
6915 $as_echo "$as_me: failed program was:" >&5
6916sed 's/^/| /' conftest.$ac_ext >&5
6917
b896caa1 6918
ad6254c5 6919fi
ad6254c5 6920
d911ec67
AK
6921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6922 test "$ac_cv_c_int8_t" != no && break
6923 done
80992638 6924fi
d911ec67
AK
6925{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_int8_t" >&5
6926$as_echo "$ac_cv_c_int8_t" >&6; }
6927 case $ac_cv_c_int8_t in #(
6928 no|yes) ;; #(
6929 *)
80992638 6930
d911ec67
AK
6931cat >>confdefs.h <<_ACEOF
6932#define int8_t $ac_cv_c_int8_t
6933_ACEOF
6934;;
6935 esac
d0191583 6936
d3c8211f 6937
d911ec67
AK
6938 { $as_echo "$as_me:$LINENO: checking for int16_t" >&5
6939$as_echo_n "checking for int16_t... " >&6; }
6940if test "${ac_cv_c_int16_t+set}" = set; then
ec6a6fbe 6941 $as_echo_n "(cached) " >&6
d3c8211f 6942else
d911ec67
AK
6943 ac_cv_c_int16_t=no
6944 for ac_type in 'int16_t' 'int' 'long int' \
6945 'long long int' 'short int' 'signed char'; do
6946 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6947/* confdefs.h. */
6948_ACEOF
6949cat confdefs.h >>conftest.$ac_ext
6950cat >>conftest.$ac_ext <<_ACEOF
6951/* end confdefs.h. */
d911ec67 6952$ac_includes_default
ad6254c5
AK
6953int
6954main ()
6955{
d911ec67
AK
6956static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1))];
6957test_array [0] = 0
ad6254c5
AK
6958
6959 ;
6960 return 0;
6961}
6962_ACEOF
6963rm -f conftest.$ac_objext
7a197a62
AK
6964if { (ac_try="$ac_compile"
6965case "(($ac_try" in
6966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6967 *) ac_try_echo=$ac_try;;
6968esac
ec6a6fbe
AK
6969eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6970$as_echo "$ac_try_echo") >&5
7a197a62 6971 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6972 ac_status=$?
8a2fc586
AK
6973 grep -v '^ *+' conftest.er1 >conftest.err
6974 rm -f conftest.er1
6975 cat conftest.err >&5
ec6a6fbe 6976 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6977 (exit $ac_status); } && {
6978 test -z "$ac_c_werror_flag" ||
6979 test ! -s conftest.err
6980 } && test -s conftest.$ac_objext; then
ad6254c5 6981 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6982/* confdefs.h. */
6983_ACEOF
6984cat confdefs.h >>conftest.$ac_ext
6985cat >>conftest.$ac_ext <<_ACEOF
6986/* end confdefs.h. */
d911ec67
AK
6987$ac_includes_default
6988int
6989main ()
6990{
6991static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1)
6992 < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 2))];
6993test_array [0] = 0
80992638 6994
d911ec67
AK
6995 ;
6996 return 0;
6997}
ad6254c5
AK
6998_ACEOF
6999rm -f conftest.$ac_objext
7a197a62
AK
7000if { (ac_try="$ac_compile"
7001case "(($ac_try" in
7002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7003 *) ac_try_echo=$ac_try;;
7004esac
ec6a6fbe
AK
7005eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7006$as_echo "$ac_try_echo") >&5
7a197a62 7007 (eval "$ac_compile") 2>conftest.er1
ad6254c5 7008 ac_status=$?
8a2fc586
AK
7009 grep -v '^ *+' conftest.er1 >conftest.err
7010 rm -f conftest.er1
7011 cat conftest.err >&5
ec6a6fbe 7012 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7013 (exit $ac_status); } && {
7014 test -z "$ac_c_werror_flag" ||
7015 test ! -s conftest.err
7016 } && test -s conftest.$ac_objext; then
d911ec67 7017 :
ad6254c5 7018else
ec6a6fbe 7019 $as_echo "$as_me: failed program was:" >&5
ad6254c5 7020sed 's/^/| /' conftest.$ac_ext >&5
8ef2b021 7021
d911ec67
AK
7022 case $ac_type in
7023 int16_t) ac_cv_c_int16_t=yes ;;
7024 *) ac_cv_c_int16_t=$ac_type ;;
7025esac
7a197a62 7026
8ce0cbda 7027fi
7a197a62
AK
7028
7029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d911ec67
AK
7030else
7031 $as_echo "$as_me: failed program was:" >&5
7032sed 's/^/| /' conftest.$ac_ext >&5
8ce0cbda 7033
8a2fc586 7034
d911ec67 7035fi
8a2fc586 7036
d911ec67
AK
7037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7038 test "$ac_cv_c_int16_t" != no && break
7039 done
7040fi
7041{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_int16_t" >&5
7042$as_echo "$ac_cv_c_int16_t" >&6; }
7043 case $ac_cv_c_int16_t in #(
7044 no|yes) ;; #(
8a2fc586 7045 *)
d911ec67
AK
7046
7047cat >>confdefs.h <<_ACEOF
7048#define int16_t $ac_cv_c_int16_t
c1c065a3 7049_ACEOF
d911ec67
AK
7050;;
7051 esac
d0191583 7052
d911ec67
AK
7053
7054 { $as_echo "$as_me:$LINENO: checking for int32_t" >&5
7055$as_echo_n "checking for int32_t... " >&6; }
7056if test "${ac_cv_c_int32_t+set}" = set; then
ec6a6fbe 7057 $as_echo_n "(cached) " >&6
d0191583 7058else
d911ec67
AK
7059 ac_cv_c_int32_t=no
7060 for ac_type in 'int32_t' 'int' 'long int' \
7061 'long long int' 'short int' 'signed char'; do
7062 cat >conftest.$ac_ext <<_ACEOF
d0191583
JM
7063/* confdefs.h. */
7064_ACEOF
7065cat confdefs.h >>conftest.$ac_ext
7066cat >>conftest.$ac_ext <<_ACEOF
7067/* end confdefs.h. */
7068$ac_includes_default
7069int
7070main ()
7071{
d911ec67
AK
7072static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))];
7073test_array [0] = 0
7074
d0191583
JM
7075 ;
7076 return 0;
7077}
7078_ACEOF
7079rm -f conftest.$ac_objext
7080if { (ac_try="$ac_compile"
7081case "(($ac_try" in
7082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7083 *) ac_try_echo=$ac_try;;
7084esac
ec6a6fbe
AK
7085eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7086$as_echo "$ac_try_echo") >&5
7087 (eval "$ac_compile") 2>conftest.er1
7088 ac_status=$?
7089 grep -v '^ *+' conftest.er1 >conftest.err
7090 rm -f conftest.er1
7091 cat conftest.err >&5
7092 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7093 (exit $ac_status); } && {
7094 test -z "$ac_c_werror_flag" ||
7095 test ! -s conftest.err
7096 } && test -s conftest.$ac_objext; then
d911ec67 7097 cat >conftest.$ac_ext <<_ACEOF
ec6a6fbe
AK
7098/* confdefs.h. */
7099_ACEOF
7100cat confdefs.h >>conftest.$ac_ext
7101cat >>conftest.$ac_ext <<_ACEOF
7102/* end confdefs.h. */
7103$ac_includes_default
7104int
7105main ()
7106{
d911ec67
AK
7107static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1)
7108 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))];
7109test_array [0] = 0
7110
ec6a6fbe
AK
7111 ;
7112 return 0;
7113}
7114_ACEOF
7115rm -f conftest.$ac_objext
7116if { (ac_try="$ac_compile"
7117case "(($ac_try" in
7118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7119 *) ac_try_echo=$ac_try;;
7120esac
7121eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7122$as_echo "$ac_try_echo") >&5
7123 (eval "$ac_compile") 2>conftest.er1
7124 ac_status=$?
7125 grep -v '^ *+' conftest.er1 >conftest.err
7126 rm -f conftest.er1
7127 cat conftest.err >&5
7128 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7129 (exit $ac_status); } && {
7130 test -z "$ac_c_werror_flag" ||
7131 test ! -s conftest.err
7132 } && test -s conftest.$ac_objext; then
d911ec67 7133 :
ec6a6fbe
AK
7134else
7135 $as_echo "$as_me: failed program was:" >&5
7136sed 's/^/| /' conftest.$ac_ext >&5
7137
d911ec67
AK
7138 case $ac_type in
7139 int32_t) ac_cv_c_int32_t=yes ;;
7140 *) ac_cv_c_int32_t=$ac_type ;;
7141esac
7142
ec6a6fbe
AK
7143fi
7144
7145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d911ec67
AK
7146else
7147 $as_echo "$as_me: failed program was:" >&5
7148sed 's/^/| /' conftest.$ac_ext >&5
7149
7150
ec6a6fbe
AK
7151fi
7152
7153rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d911ec67
AK
7154 test "$ac_cv_c_int32_t" != no && break
7155 done
ec6a6fbe 7156fi
d911ec67
AK
7157{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5
7158$as_echo "$ac_cv_c_int32_t" >&6; }
7159 case $ac_cv_c_int32_t in #(
7160 no|yes) ;; #(
7161 *)
ec6a6fbe
AK
7162
7163cat >>confdefs.h <<_ACEOF
d911ec67 7164#define int32_t $ac_cv_c_int32_t
ec6a6fbe 7165_ACEOF
d911ec67
AK
7166;;
7167 esac
ec6a6fbe
AK
7168
7169
d911ec67
AK
7170 { $as_echo "$as_me:$LINENO: checking for int64_t" >&5
7171$as_echo_n "checking for int64_t... " >&6; }
7172if test "${ac_cv_c_int64_t+set}" = set; then
ec6a6fbe
AK
7173 $as_echo_n "(cached) " >&6
7174else
d911ec67
AK
7175 ac_cv_c_int64_t=no
7176 for ac_type in 'int64_t' 'int' 'long int' \
7177 'long long int' 'short int' 'signed char'; do
7178 cat >conftest.$ac_ext <<_ACEOF
ec6a6fbe
AK
7179/* confdefs.h. */
7180_ACEOF
7181cat confdefs.h >>conftest.$ac_ext
7182cat >>conftest.$ac_ext <<_ACEOF
7183/* end confdefs.h. */
7184$ac_includes_default
7185int
7186main ()
7187{
d911ec67
AK
7188static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1))];
7189test_array [0] = 0
7190
ec6a6fbe
AK
7191 ;
7192 return 0;
7193}
7194_ACEOF
7195rm -f conftest.$ac_objext
7196if { (ac_try="$ac_compile"
7197case "(($ac_try" in
7198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7199 *) ac_try_echo=$ac_try;;
7200esac
7201eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7202$as_echo "$ac_try_echo") >&5
7203 (eval "$ac_compile") 2>conftest.er1
7204 ac_status=$?
7205 grep -v '^ *+' conftest.er1 >conftest.err
7206 rm -f conftest.er1
7207 cat conftest.err >&5
7208 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7209 (exit $ac_status); } && {
7210 test -z "$ac_c_werror_flag" ||
7211 test ! -s conftest.err
7212 } && test -s conftest.$ac_objext; then
7213 cat >conftest.$ac_ext <<_ACEOF
7214/* confdefs.h. */
7215_ACEOF
7216cat confdefs.h >>conftest.$ac_ext
7217cat >>conftest.$ac_ext <<_ACEOF
7218/* end confdefs.h. */
7219$ac_includes_default
7220int
7221main ()
7222{
d911ec67
AK
7223static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1)
7224 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 2))];
7225test_array [0] = 0
7226
ec6a6fbe
AK
7227 ;
7228 return 0;
7229}
7230_ACEOF
7231rm -f conftest.$ac_objext
7232if { (ac_try="$ac_compile"
7233case "(($ac_try" in
7234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7235 *) ac_try_echo=$ac_try;;
7236esac
7237eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7238$as_echo "$ac_try_echo") >&5
7239 (eval "$ac_compile") 2>conftest.er1
7240 ac_status=$?
7241 grep -v '^ *+' conftest.er1 >conftest.err
7242 rm -f conftest.er1
7243 cat conftest.err >&5
7244 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7245 (exit $ac_status); } && {
7246 test -z "$ac_c_werror_flag" ||
7247 test ! -s conftest.err
7248 } && test -s conftest.$ac_objext; then
7249 :
7250else
7251 $as_echo "$as_me: failed program was:" >&5
7252sed 's/^/| /' conftest.$ac_ext >&5
7253
d911ec67
AK
7254 case $ac_type in
7255 int64_t) ac_cv_c_int64_t=yes ;;
7256 *) ac_cv_c_int64_t=$ac_type ;;
7257esac
7258
ec6a6fbe
AK
7259fi
7260
7261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7262else
7263 $as_echo "$as_me: failed program was:" >&5
7264sed 's/^/| /' conftest.$ac_ext >&5
7265
7266
7267fi
7268
7269rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d911ec67
AK
7270 test "$ac_cv_c_int64_t" != no && break
7271 done
ec6a6fbe 7272fi
d911ec67
AK
7273{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_int64_t" >&5
7274$as_echo "$ac_cv_c_int64_t" >&6; }
7275 case $ac_cv_c_int64_t in #(
7276 no|yes) ;; #(
7277 *)
ec6a6fbe
AK
7278
7279cat >>confdefs.h <<_ACEOF
d911ec67 7280#define int64_t $ac_cv_c_int64_t
ec6a6fbe 7281_ACEOF
d911ec67
AK
7282;;
7283 esac
ec6a6fbe 7284
d911ec67
AK
7285{ $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
7286$as_echo_n "checking for ssize_t... " >&6; }
7287if test "${ac_cv_type_ssize_t+set}" = set; then
ec6a6fbe
AK
7288 $as_echo_n "(cached) " >&6
7289else
d911ec67 7290 ac_cv_type_ssize_t=no
ec6a6fbe
AK
7291cat >conftest.$ac_ext <<_ACEOF
7292/* confdefs.h. */
7293_ACEOF
7294cat confdefs.h >>conftest.$ac_ext
7295cat >>conftest.$ac_ext <<_ACEOF
7296/* end confdefs.h. */
7297$ac_includes_default
7298int
7299main ()
7300{
d911ec67 7301if (sizeof (ssize_t))
ec6a6fbe
AK
7302 return 0;
7303 ;
7304 return 0;
7305}
7306_ACEOF
7307rm -f conftest.$ac_objext
7308if { (ac_try="$ac_compile"
7309case "(($ac_try" in
7310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7311 *) ac_try_echo=$ac_try;;
7312esac
7313eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7314$as_echo "$ac_try_echo") >&5
d0191583
JM
7315 (eval "$ac_compile") 2>conftest.er1
7316 ac_status=$?
7317 grep -v '^ *+' conftest.er1 >conftest.err
7318 rm -f conftest.er1
7319 cat conftest.err >&5
ec6a6fbe 7320 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
7321 (exit $ac_status); } && {
7322 test -z "$ac_c_werror_flag" ||
7323 test ! -s conftest.err
7324 } && test -s conftest.$ac_objext; then
ec6a6fbe 7325 cat >conftest.$ac_ext <<_ACEOF
d0191583
JM
7326/* confdefs.h. */
7327_ACEOF
7328cat confdefs.h >>conftest.$ac_ext
7329cat >>conftest.$ac_ext <<_ACEOF
7330/* end confdefs.h. */
7331$ac_includes_default
7332int
7333main ()
7334{
d911ec67 7335if (sizeof ((ssize_t)))
ec6a6fbe 7336 return 0;
d0191583
JM
7337 ;
7338 return 0;
7339}
7340_ACEOF
7341rm -f conftest.$ac_objext
7342if { (ac_try="$ac_compile"
7343case "(($ac_try" in
7344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7345 *) ac_try_echo=$ac_try;;
7346esac
ec6a6fbe
AK
7347eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7348$as_echo "$ac_try_echo") >&5
d0191583
JM
7349 (eval "$ac_compile") 2>conftest.er1
7350 ac_status=$?
7351 grep -v '^ *+' conftest.er1 >conftest.err
7352 rm -f conftest.er1
7353 cat conftest.err >&5
ec6a6fbe 7354 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
7355 (exit $ac_status); } && {
7356 test -z "$ac_c_werror_flag" ||
7357 test ! -s conftest.err
7358 } && test -s conftest.$ac_objext; then
ec6a6fbe 7359 :
d0191583 7360else
ec6a6fbe 7361 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
7362sed 's/^/| /' conftest.$ac_ext >&5
7363
d911ec67 7364 ac_cv_type_ssize_t=yes
d0191583
JM
7365fi
7366
7367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
7368else
7369 $as_echo "$as_me: failed program was:" >&5
7370sed 's/^/| /' conftest.$ac_ext >&5
7371
7372
d0191583
JM
7373fi
7374
7375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7376fi
d911ec67
AK
7377{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
7378$as_echo "$ac_cv_type_ssize_t" >&6; }
7379if test "x$ac_cv_type_ssize_t" = x""yes; then
ec6a6fbe
AK
7380 :
7381else
d0191583
JM
7382
7383cat >>confdefs.h <<_ACEOF
d911ec67 7384#define ssize_t int
d0191583
JM
7385_ACEOF
7386
d0191583 7387fi
8ce0cbda 7388
d911ec67
AK
7389{ $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7390$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
7391if test "${ac_cv_type_uid_t+set}" = set; then
ec6a6fbe 7392 $as_echo_n "(cached) " >&6
ad6254c5 7393else
b145d876
ZK
7394 cat >conftest.$ac_ext <<_ACEOF
7395/* confdefs.h. */
7396_ACEOF
7397cat confdefs.h >>conftest.$ac_ext
7398cat >>conftest.$ac_ext <<_ACEOF
7399/* end confdefs.h. */
ec6a6fbe 7400#include <sys/types.h>
ec6a6fbe 7401
ad6254c5 7402_ACEOF
d911ec67
AK
7403if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7404 $EGREP "uid_t" >/dev/null 2>&1; then
7405 ac_cv_type_uid_t=yes
b145d876 7406else
d911ec67 7407 ac_cv_type_uid_t=no
ad6254c5 7408fi
d911ec67 7409rm -f conftest*
b145d876 7410
b145d876 7411fi
d911ec67
AK
7412{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7413$as_echo "$ac_cv_type_uid_t" >&6; }
7414if test $ac_cv_type_uid_t = no; then
80992638 7415
d911ec67
AK
7416cat >>confdefs.h <<\_ACEOF
7417#define uid_t int
ad6254c5 7418_ACEOF
199e490e 7419
b896caa1 7420
d911ec67
AK
7421cat >>confdefs.h <<\_ACEOF
7422#define gid_t int
7423_ACEOF
7424
7425fi
7426
7427
7428 { $as_echo "$as_me:$LINENO: checking for uint8_t" >&5
7429$as_echo_n "checking for uint8_t... " >&6; }
7430if test "${ac_cv_c_uint8_t+set}" = set; then
ec6a6fbe 7431 $as_echo_n "(cached) " >&6
ad6254c5 7432else
d911ec67
AK
7433 ac_cv_c_uint8_t=no
7434 for ac_type in 'uint8_t' 'unsigned int' 'unsigned long int' \
7435 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7436 cat >conftest.$ac_ext <<_ACEOF
b145d876
ZK
7437/* confdefs.h. */
7438_ACEOF
7439cat confdefs.h >>conftest.$ac_ext
7440cat >>conftest.$ac_ext <<_ACEOF
7441/* end confdefs.h. */
7442$ac_includes_default
7443int
7444main ()
7445{
d911ec67
AK
7446static int test_array [1 - 2 * !(($ac_type) -1 >> (8 - 1) == 1)];
7447test_array [0] = 0
7448
ad6254c5
AK
7449 ;
7450 return 0;
7451}
7452_ACEOF
7453rm -f conftest.$ac_objext
7a197a62
AK
7454if { (ac_try="$ac_compile"
7455case "(($ac_try" in
7456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7457 *) ac_try_echo=$ac_try;;
7458esac
ec6a6fbe
AK
7459eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7460$as_echo "$ac_try_echo") >&5
7a197a62 7461 (eval "$ac_compile") 2>conftest.er1
ad6254c5 7462 ac_status=$?
8a2fc586
AK
7463 grep -v '^ *+' conftest.er1 >conftest.err
7464 rm -f conftest.er1
7465 cat conftest.err >&5
ec6a6fbe 7466 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7467 (exit $ac_status); } && {
7468 test -z "$ac_c_werror_flag" ||
7469 test ! -s conftest.err
7470 } && test -s conftest.$ac_objext; then
d911ec67
AK
7471 case $ac_type in
7472 uint8_t) ac_cv_c_uint8_t=yes ;;
7473 *) ac_cv_c_uint8_t=$ac_type ;;
7474esac
7475
7476else
7477 $as_echo "$as_me: failed program was:" >&5
7478sed 's/^/| /' conftest.$ac_ext >&5
7479
7480
7481fi
7482
7483rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7484 test "$ac_cv_c_uint8_t" != no && break
7485 done
7486fi
7487{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint8_t" >&5
7488$as_echo "$ac_cv_c_uint8_t" >&6; }
7489 case $ac_cv_c_uint8_t in #(
7490 no|yes) ;; #(
7491 *)
7492
7493cat >>confdefs.h <<\_ACEOF
7494#define _UINT8_T 1
7495_ACEOF
7496
7497
7498cat >>confdefs.h <<_ACEOF
7499#define uint8_t $ac_cv_c_uint8_t
7500_ACEOF
7501;;
7502 esac
7503
7504
7505 { $as_echo "$as_me:$LINENO: checking for uint16_t" >&5
7506$as_echo_n "checking for uint16_t... " >&6; }
7507if test "${ac_cv_c_uint16_t+set}" = set; then
7508 $as_echo_n "(cached) " >&6
7509else
7510 ac_cv_c_uint16_t=no
7511 for ac_type in 'uint16_t' 'unsigned int' 'unsigned long int' \
7512 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7513 cat >conftest.$ac_ext <<_ACEOF
d0191583
JM
7514/* confdefs.h. */
7515_ACEOF
7516cat confdefs.h >>conftest.$ac_ext
7517cat >>conftest.$ac_ext <<_ACEOF
7518/* end confdefs.h. */
ec6a6fbe 7519$ac_includes_default
d0191583
JM
7520int
7521main ()
7522{
d911ec67
AK
7523static int test_array [1 - 2 * !(($ac_type) -1 >> (16 - 1) == 1)];
7524test_array [0] = 0
7525
d0191583
JM
7526 ;
7527 return 0;
7528}
7529_ACEOF
7530rm -f conftest.$ac_objext
7531if { (ac_try="$ac_compile"
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
d0191583
JM
7538 (eval "$ac_compile") 2>conftest.er1
7539 ac_status=$?
7540 grep -v '^ *+' conftest.er1 >conftest.err
7541 rm -f conftest.er1
7542 cat conftest.err >&5
ec6a6fbe 7543 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
7544 (exit $ac_status); } && {
7545 test -z "$ac_c_werror_flag" ||
7546 test ! -s conftest.err
7547 } && test -s conftest.$ac_objext; then
d911ec67
AK
7548 case $ac_type in
7549 uint16_t) ac_cv_c_uint16_t=yes ;;
7550 *) ac_cv_c_uint16_t=$ac_type ;;
7551esac
ec6a6fbe 7552
ec6a6fbe
AK
7553else
7554 $as_echo "$as_me: failed program was:" >&5
7555sed 's/^/| /' conftest.$ac_ext >&5
7556
7557
d0191583
JM
7558fi
7559
7560rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d911ec67
AK
7561 test "$ac_cv_c_uint16_t" != no && break
7562 done
d0191583 7563fi
d911ec67
AK
7564{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint16_t" >&5
7565$as_echo "$ac_cv_c_uint16_t" >&6; }
7566 case $ac_cv_c_uint16_t in #(
7567 no|yes) ;; #(
7568 *)
7569
d0191583
JM
7570
7571cat >>confdefs.h <<_ACEOF
d911ec67 7572#define uint16_t $ac_cv_c_uint16_t
d0191583 7573_ACEOF
d911ec67
AK
7574;;
7575 esac
d0191583
JM
7576
7577
d911ec67
AK
7578 { $as_echo "$as_me:$LINENO: checking for uint32_t" >&5
7579$as_echo_n "checking for uint32_t... " >&6; }
7580if test "${ac_cv_c_uint32_t+set}" = set; then
ec6a6fbe 7581 $as_echo_n "(cached) " >&6
8106cdd5 7582else
d911ec67
AK
7583 ac_cv_c_uint32_t=no
7584 for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \
7585 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7586 cat >conftest.$ac_ext <<_ACEOF
b145d876
ZK
7587/* confdefs.h. */
7588_ACEOF
7589cat confdefs.h >>conftest.$ac_ext
7590cat >>conftest.$ac_ext <<_ACEOF
7591/* end confdefs.h. */
7592$ac_includes_default
7593int
7594main ()
7595{
d911ec67
AK
7596static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)];
7597test_array [0] = 0
7598
ad6254c5
AK
7599 ;
7600 return 0;
7601}
7602_ACEOF
7603rm -f conftest.$ac_objext
7a197a62
AK
7604if { (ac_try="$ac_compile"
7605case "(($ac_try" in
7606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7607 *) ac_try_echo=$ac_try;;
7608esac
ec6a6fbe
AK
7609eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7610$as_echo "$ac_try_echo") >&5
7a197a62 7611 (eval "$ac_compile") 2>conftest.er1
ad6254c5 7612 ac_status=$?
8a2fc586
AK
7613 grep -v '^ *+' conftest.er1 >conftest.err
7614 rm -f conftest.er1
7615 cat conftest.err >&5
ec6a6fbe 7616 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7617 (exit $ac_status); } && {
7618 test -z "$ac_c_werror_flag" ||
7619 test ! -s conftest.err
7620 } && test -s conftest.$ac_objext; then
d911ec67
AK
7621 case $ac_type in
7622 uint32_t) ac_cv_c_uint32_t=yes ;;
7623 *) ac_cv_c_uint32_t=$ac_type ;;
7624esac
7625
7626else
7627 $as_echo "$as_me: failed program was:" >&5
7628sed 's/^/| /' conftest.$ac_ext >&5
7629
7630
7631fi
7632
7633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7634 test "$ac_cv_c_uint32_t" != no && break
7635 done
7636fi
7637{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5
7638$as_echo "$ac_cv_c_uint32_t" >&6; }
7639 case $ac_cv_c_uint32_t in #(
7640 no|yes) ;; #(
7641 *)
7642
7643cat >>confdefs.h <<\_ACEOF
7644#define _UINT32_T 1
7645_ACEOF
7646
7647
7648cat >>confdefs.h <<_ACEOF
7649#define uint32_t $ac_cv_c_uint32_t
7650_ACEOF
7651;;
7652 esac
7653
7654
7655 { $as_echo "$as_me:$LINENO: checking for uint64_t" >&5
7656$as_echo_n "checking for uint64_t... " >&6; }
7657if test "${ac_cv_c_uint64_t+set}" = set; then
7658 $as_echo_n "(cached) " >&6
7659else
7660 ac_cv_c_uint64_t=no
7661 for ac_type in 'uint64_t' 'unsigned int' 'unsigned long int' \
7662 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7663 cat >conftest.$ac_ext <<_ACEOF
b145d876
ZK
7664/* confdefs.h. */
7665_ACEOF
7666cat confdefs.h >>conftest.$ac_ext
7667cat >>conftest.$ac_ext <<_ACEOF
7668/* end confdefs.h. */
7669$ac_includes_default
7670int
7671main ()
7672{
d911ec67
AK
7673static int test_array [1 - 2 * !(($ac_type) -1 >> (64 - 1) == 1)];
7674test_array [0] = 0
7675
ad6254c5
AK
7676 ;
7677 return 0;
7678}
7679_ACEOF
7680rm -f conftest.$ac_objext
7a197a62
AK
7681if { (ac_try="$ac_compile"
7682case "(($ac_try" in
7683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7684 *) ac_try_echo=$ac_try;;
7685esac
ec6a6fbe
AK
7686eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7687$as_echo "$ac_try_echo") >&5
7a197a62 7688 (eval "$ac_compile") 2>conftest.er1
ad6254c5 7689 ac_status=$?
8a2fc586
AK
7690 grep -v '^ *+' conftest.er1 >conftest.err
7691 rm -f conftest.er1
7692 cat conftest.err >&5
ec6a6fbe 7693 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7694 (exit $ac_status); } && {
7695 test -z "$ac_c_werror_flag" ||
7696 test ! -s conftest.err
7697 } && test -s conftest.$ac_objext; then
d911ec67
AK
7698 case $ac_type in
7699 uint64_t) ac_cv_c_uint64_t=yes ;;
7700 *) ac_cv_c_uint64_t=$ac_type ;;
7701esac
ec6a6fbe 7702
fddafd51 7703else
ec6a6fbe 7704 $as_echo "$as_me: failed program was:" >&5
fddafd51
ZK
7705sed 's/^/| /' conftest.$ac_ext >&5
7706
ec6a6fbe 7707
80992638 7708fi
7a197a62
AK
7709
7710rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d911ec67
AK
7711 test "$ac_cv_c_uint64_t" != no && break
7712 done
ad6254c5 7713fi
d911ec67
AK
7714{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint64_t" >&5
7715$as_echo "$ac_cv_c_uint64_t" >&6; }
7716 case $ac_cv_c_uint64_t in #(
7717 no|yes) ;; #(
7718 *)
80992638 7719
d911ec67
AK
7720cat >>confdefs.h <<\_ACEOF
7721#define _UINT64_T 1
ad6254c5
AK
7722_ACEOF
7723
d911ec67
AK
7724
7725cat >>confdefs.h <<_ACEOF
7726#define uint64_t $ac_cv_c_uint64_t
7727_ACEOF
7728;;
7729 esac
ad6254c5 7730
ec6a6fbe
AK
7731{ $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
7732$as_echo_n "checking for struct stat.st_rdev... " >&6; }
ad6254c5 7733if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
ec6a6fbe 7734 $as_echo_n "(cached) " >&6
ad6254c5
AK
7735else
7736 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7737/* confdefs.h. */
7738_ACEOF
7739cat confdefs.h >>conftest.$ac_ext
7740cat >>conftest.$ac_ext <<_ACEOF
7741/* end confdefs.h. */
7742$ac_includes_default
7743int
7744main ()
7745{
7746static struct stat ac_aggr;
7747if (ac_aggr.st_rdev)
7748return 0;
7749 ;
7750 return 0;
7751}
7752_ACEOF
7753rm -f conftest.$ac_objext
7a197a62
AK
7754if { (ac_try="$ac_compile"
7755case "(($ac_try" in
7756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7757 *) ac_try_echo=$ac_try;;
7758esac
ec6a6fbe
AK
7759eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7760$as_echo "$ac_try_echo") >&5
7a197a62 7761 (eval "$ac_compile") 2>conftest.er1
ad6254c5 7762 ac_status=$?
8a2fc586
AK
7763 grep -v '^ *+' conftest.er1 >conftest.err
7764 rm -f conftest.er1
7765 cat conftest.err >&5
ec6a6fbe 7766 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7767 (exit $ac_status); } && {
7768 test -z "$ac_c_werror_flag" ||
7769 test ! -s conftest.err
7770 } && test -s conftest.$ac_objext; then
ad6254c5
AK
7771 ac_cv_member_struct_stat_st_rdev=yes
7772else
ec6a6fbe 7773 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7774sed 's/^/| /' conftest.$ac_ext >&5
7775
7a197a62 7776 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7777/* confdefs.h. */
7778_ACEOF
7779cat confdefs.h >>conftest.$ac_ext
7780cat >>conftest.$ac_ext <<_ACEOF
7781/* end confdefs.h. */
7782$ac_includes_default
7783int
7784main ()
7785{
7786static struct stat ac_aggr;
7787if (sizeof ac_aggr.st_rdev)
7788return 0;
7789 ;
7790 return 0;
7791}
7792_ACEOF
7793rm -f conftest.$ac_objext
7a197a62
AK
7794if { (ac_try="$ac_compile"
7795case "(($ac_try" in
7796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7797 *) ac_try_echo=$ac_try;;
7798esac
ec6a6fbe
AK
7799eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7800$as_echo "$ac_try_echo") >&5
7a197a62 7801 (eval "$ac_compile") 2>conftest.er1
ad6254c5 7802 ac_status=$?
8a2fc586
AK
7803 grep -v '^ *+' conftest.er1 >conftest.err
7804 rm -f conftest.er1
7805 cat conftest.err >&5
ec6a6fbe 7806 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7807 (exit $ac_status); } && {
7808 test -z "$ac_c_werror_flag" ||
7809 test ! -s conftest.err
7810 } && test -s conftest.$ac_objext; then
ad6254c5
AK
7811 ac_cv_member_struct_stat_st_rdev=yes
7812else
ec6a6fbe 7813 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7814sed 's/^/| /' conftest.$ac_ext >&5
7815
7a197a62 7816 ac_cv_member_struct_stat_st_rdev=no
ad6254c5 7817fi
7a197a62
AK
7818
7819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 7820fi
7a197a62
AK
7821
7822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 7823fi
ec6a6fbe
AK
7824{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
7825$as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; }
7826if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then
ad6254c5
AK
7827
7828cat >>confdefs.h <<_ACEOF
7829#define HAVE_STRUCT_STAT_ST_RDEV 1
7830_ACEOF
7831
7832
ad6254c5
AK
7833fi
7834
ec6a6fbe
AK
7835{ $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7836$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
ad6254c5 7837if test "${ac_cv_struct_tm+set}" = set; then
ec6a6fbe 7838 $as_echo_n "(cached) " >&6
ad6254c5
AK
7839else
7840 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7841/* confdefs.h. */
7842_ACEOF
7843cat confdefs.h >>conftest.$ac_ext
7844cat >>conftest.$ac_ext <<_ACEOF
7845/* end confdefs.h. */
7846#include <sys/types.h>
7847#include <time.h>
7848
7849int
7850main ()
7851{
25fbec5b
AK
7852struct tm tm;
7853 int *p = &tm.tm_sec;
ec6a6fbe 7854 return !p;
ad6254c5
AK
7855 ;
7856 return 0;
7857}
7858_ACEOF
7859rm -f conftest.$ac_objext
7a197a62
AK
7860if { (ac_try="$ac_compile"
7861case "(($ac_try" in
7862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7863 *) ac_try_echo=$ac_try;;
7864esac
ec6a6fbe
AK
7865eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7866$as_echo "$ac_try_echo") >&5
7a197a62 7867 (eval "$ac_compile") 2>conftest.er1
ad6254c5 7868 ac_status=$?
8a2fc586
AK
7869 grep -v '^ *+' conftest.er1 >conftest.err
7870 rm -f conftest.er1
7871 cat conftest.err >&5
ec6a6fbe 7872 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7873 (exit $ac_status); } && {
7874 test -z "$ac_c_werror_flag" ||
7875 test ! -s conftest.err
d911ec67
AK
7876 } && test -s conftest.$ac_objext; then
7877 ac_cv_struct_tm=time.h
7878else
7879 $as_echo "$as_me: failed program was:" >&5
7880sed 's/^/| /' conftest.$ac_ext >&5
7881
7882 ac_cv_struct_tm=sys/time.h
7883fi
7884
7885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7886fi
7887{ $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7888$as_echo "$ac_cv_struct_tm" >&6; }
7889if test $ac_cv_struct_tm = sys/time.h; then
7890
7891cat >>confdefs.h <<\_ACEOF
7892#define TM_IN_SYS_TIME 1
7893_ACEOF
7894
7895fi
7896
7897
7898################################################################################
d911ec67 7899
ad6254c5 7900
809fae91 7901
795ca3e5 7902
ad6254c5
AK
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916
d0191583
JM
7917
7918
7919
d911ec67
AK
7920
7921
7922
37ddf259 7923for ac_func in ftruncate gethostname getpagesize \
d911ec67
AK
7924 gettimeofday memset mkdir mkfifo rmdir munmap nl_langinfo setenv setlocale \
7925 strcasecmp strchr strcspn strspn strdup strncasecmp strerror strrchr \
7926 strstr strtol strtoul uname
ad6254c5 7927do
ec6a6fbe
AK
7928as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7929{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7930$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 7931if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 7932 $as_echo_n "(cached) " >&6
795ca3e5 7933else
ad6254c5 7934 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7935/* confdefs.h. */
7936_ACEOF
7937cat confdefs.h >>conftest.$ac_ext
7938cat >>conftest.$ac_ext <<_ACEOF
7939/* end confdefs.h. */
8a2fc586
AK
7940/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7941 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7942#define $ac_func innocuous_$ac_func
7943
ad6254c5
AK
7944/* System header to define __stub macros and hopefully few prototypes,
7945 which can conflict with char $ac_func (); below.
7946 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7947 <limits.h> exists even on freestanding compilers. */
8a2fc586 7948
ad6254c5
AK
7949#ifdef __STDC__
7950# include <limits.h>
7951#else
7952# include <assert.h>
7953#endif
8a2fc586
AK
7954
7955#undef $ac_func
7956
7a197a62
AK
7957/* Override any GCC internal prototype to avoid an error.
7958 Use char because int might match the return type of a GCC
7959 builtin and then its argument prototype would still apply. */
ad6254c5
AK
7960#ifdef __cplusplus
7961extern "C"
ad6254c5 7962#endif
ad6254c5
AK
7963char $ac_func ();
7964/* The GNU C library defines this for functions which it implements
7965 to always fail with ENOSYS. Some functions are actually named
7966 something starting with __ and the normal name is an alias. */
7a197a62 7967#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 7968choke me
ad6254c5
AK
7969#endif
7970
7971int
7972main ()
7973{
7a197a62 7974return $ac_func ();
ad6254c5
AK
7975 ;
7976 return 0;
7977}
7978_ACEOF
7979rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
7980if { (ac_try="$ac_link"
7981case "(($ac_try" in
7982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7983 *) ac_try_echo=$ac_try;;
7984esac
ec6a6fbe
AK
7985eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7986$as_echo "$ac_try_echo") >&5
7a197a62 7987 (eval "$ac_link") 2>conftest.er1
ad6254c5 7988 ac_status=$?
8a2fc586
AK
7989 grep -v '^ *+' conftest.er1 >conftest.err
7990 rm -f conftest.er1
7991 cat conftest.err >&5
ec6a6fbe 7992 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7993 (exit $ac_status); } && {
7994 test -z "$ac_c_werror_flag" ||
7995 test ! -s conftest.err
ec6a6fbe
AK
7996 } && test -s conftest$ac_exeext && {
7997 test "$cross_compiling" = yes ||
7998 $as_test_x conftest$ac_exeext
7999 }; then
fc54be10
AK
8000 eval "$as_ac_var=yes"
8001else
ec6a6fbe 8002 $as_echo "$as_me: failed program was:" >&5
fc54be10
AK
8003sed 's/^/| /' conftest.$ac_ext >&5
8004
8005 eval "$as_ac_var=no"
8006fi
8007
ec6a6fbe 8008rm -rf conftest.dSYM
25fbec5b 8009rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
fc54be10
AK
8010 conftest$ac_exeext conftest.$ac_ext
8011fi
ec6a6fbe
AK
8012ac_res=`eval 'as_val=${'$as_ac_var'}
8013 $as_echo "$as_val"'`
8014 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8015$as_echo "$ac_res" >&6; }
8016as_val=`eval 'as_val=${'$as_ac_var'}
8017 $as_echo "$as_val"'`
8018 if test "x$as_val" = x""yes; then
ad6254c5 8019 cat >>confdefs.h <<_ACEOF
ec6a6fbe 8020#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
8021_ACEOF
8022
8023else
ec6a6fbe
AK
8024 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
8025$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5
AK
8026 { (exit 1); exit 1; }; }
8027fi
8028done
795ca3e5 8029
a0f9708e
AK
8030
8031for ac_func in siginterrupt
8032do
8033as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8034{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8035$as_echo_n "checking for $ac_func... " >&6; }
8036if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8037 $as_echo_n "(cached) " >&6
8038else
8039 cat >conftest.$ac_ext <<_ACEOF
8040/* confdefs.h. */
8041_ACEOF
8042cat confdefs.h >>conftest.$ac_ext
8043cat >>conftest.$ac_ext <<_ACEOF
8044/* end confdefs.h. */
8045/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8046 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8047#define $ac_func innocuous_$ac_func
8048
8049/* System header to define __stub macros and hopefully few prototypes,
8050 which can conflict with char $ac_func (); below.
8051 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8052 <limits.h> exists even on freestanding compilers. */
8053
8054#ifdef __STDC__
8055# include <limits.h>
8056#else
8057# include <assert.h>
8058#endif
8059
8060#undef $ac_func
8061
8062/* Override any GCC internal prototype to avoid an error.
8063 Use char because int might match the return type of a GCC
8064 builtin and then its argument prototype would still apply. */
8065#ifdef __cplusplus
8066extern "C"
8067#endif
8068char $ac_func ();
8069/* The GNU C library defines this for functions which it implements
8070 to always fail with ENOSYS. Some functions are actually named
8071 something starting with __ and the normal name is an alias. */
8072#if defined __stub_$ac_func || defined __stub___$ac_func
8073choke me
8074#endif
8075
8076int
8077main ()
8078{
8079return $ac_func ();
8080 ;
8081 return 0;
8082}
8083_ACEOF
8084rm -f conftest.$ac_objext conftest$ac_exeext
8085if { (ac_try="$ac_link"
8086case "(($ac_try" in
8087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8088 *) ac_try_echo=$ac_try;;
8089esac
8090eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8091$as_echo "$ac_try_echo") >&5
8092 (eval "$ac_link") 2>conftest.er1
8093 ac_status=$?
8094 grep -v '^ *+' conftest.er1 >conftest.err
8095 rm -f conftest.er1
8096 cat conftest.err >&5
8097 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8098 (exit $ac_status); } && {
8099 test -z "$ac_c_werror_flag" ||
8100 test ! -s conftest.err
8101 } && test -s conftest$ac_exeext && {
8102 test "$cross_compiling" = yes ||
8103 $as_test_x conftest$ac_exeext
8104 }; then
8105 eval "$as_ac_var=yes"
8106else
8107 $as_echo "$as_me: failed program was:" >&5
8108sed 's/^/| /' conftest.$ac_ext >&5
8109
8110 eval "$as_ac_var=no"
8111fi
8112
8113rm -rf conftest.dSYM
8114rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8115 conftest$ac_exeext conftest.$ac_ext
8116fi
8117ac_res=`eval 'as_val=${'$as_ac_var'}
8118 $as_echo "$as_val"'`
8119 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8120$as_echo "$ac_res" >&6; }
8121as_val=`eval 'as_val=${'$as_ac_var'}
8122 $as_echo "$as_val"'`
8123 if test "x$as_val" = x""yes; then
8124 cat >>confdefs.h <<_ACEOF
8125#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8126_ACEOF
8127
8128fi
8129done
8130
ad6254c5
AK
8131# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8132# for constant arguments. Useless!
ec6a6fbe
AK
8133{ $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
8134$as_echo_n "checking for working alloca.h... " >&6; }
ad6254c5 8135if test "${ac_cv_working_alloca_h+set}" = set; then
ec6a6fbe 8136 $as_echo_n "(cached) " >&6
ad6254c5
AK
8137else
8138 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8139/* confdefs.h. */
8140_ACEOF
8141cat confdefs.h >>conftest.$ac_ext
8142cat >>conftest.$ac_ext <<_ACEOF
8143/* end confdefs.h. */
8144#include <alloca.h>
8145int
8146main ()
8147{
8148char *p = (char *) alloca (2 * sizeof (int));
7a197a62 8149 if (p) return 0;
ad6254c5
AK
8150 ;
8151 return 0;
8152}
8153_ACEOF
8154rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
8155if { (ac_try="$ac_link"
8156case "(($ac_try" in
8157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8158 *) ac_try_echo=$ac_try;;
8159esac
ec6a6fbe
AK
8160eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8161$as_echo "$ac_try_echo") >&5
7a197a62 8162 (eval "$ac_link") 2>conftest.er1
ad6254c5 8163 ac_status=$?
8a2fc586
AK
8164 grep -v '^ *+' conftest.er1 >conftest.err
8165 rm -f conftest.er1
8166 cat conftest.err >&5
ec6a6fbe 8167 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8168 (exit $ac_status); } && {
8169 test -z "$ac_c_werror_flag" ||
8170 test ! -s conftest.err
ec6a6fbe
AK
8171 } && test -s conftest$ac_exeext && {
8172 test "$cross_compiling" = yes ||
8173 $as_test_x conftest$ac_exeext
8174 }; then
ad6254c5
AK
8175 ac_cv_working_alloca_h=yes
8176else
ec6a6fbe 8177 $as_echo "$as_me: failed program was:" >&5
ad6254c5 8178sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 8179
7a197a62 8180 ac_cv_working_alloca_h=no
ad6254c5 8181fi
7a197a62 8182
ec6a6fbe 8183rm -rf conftest.dSYM
25fbec5b 8184rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 8185 conftest$ac_exeext conftest.$ac_ext
ad6254c5 8186fi
ec6a6fbe
AK
8187{ $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8188$as_echo "$ac_cv_working_alloca_h" >&6; }
ad6254c5
AK
8189if test $ac_cv_working_alloca_h = yes; then
8190
8191cat >>confdefs.h <<\_ACEOF
8192#define HAVE_ALLOCA_H 1
8193_ACEOF
8194
8195fi
8196
ec6a6fbe
AK
8197{ $as_echo "$as_me:$LINENO: checking for alloca" >&5
8198$as_echo_n "checking for alloca... " >&6; }
ad6254c5 8199if test "${ac_cv_func_alloca_works+set}" = set; then
ec6a6fbe 8200 $as_echo_n "(cached) " >&6
ad6254c5
AK
8201else
8202 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8203/* confdefs.h. */
8204_ACEOF
8205cat confdefs.h >>conftest.$ac_ext
8206cat >>conftest.$ac_ext <<_ACEOF
8207/* end confdefs.h. */
8208#ifdef __GNUC__
8209# define alloca __builtin_alloca
8210#else
8211# ifdef _MSC_VER
8212# include <malloc.h>
8213# define alloca _alloca
8214# else
25fbec5b 8215# ifdef HAVE_ALLOCA_H
ad6254c5
AK
8216# include <alloca.h>
8217# else
8218# ifdef _AIX
8219 #pragma alloca
8220# else
8221# ifndef alloca /* predefined by HP cc +Olibcalls */
8222char *alloca ();
8223# endif
8224# endif
8225# endif
8226# endif
8227#endif
8228
8229int
8230main ()
8231{
8232char *p = (char *) alloca (1);
7a197a62 8233 if (p) return 0;
ad6254c5
AK
8234 ;
8235 return 0;
8236}
8237_ACEOF
8238rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
8239if { (ac_try="$ac_link"
8240case "(($ac_try" in
8241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8242 *) ac_try_echo=$ac_try;;
8243esac
ec6a6fbe
AK
8244eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8245$as_echo "$ac_try_echo") >&5
7a197a62 8246 (eval "$ac_link") 2>conftest.er1
ad6254c5 8247 ac_status=$?
8a2fc586
AK
8248 grep -v '^ *+' conftest.er1 >conftest.err
8249 rm -f conftest.er1
8250 cat conftest.err >&5
ec6a6fbe 8251 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8252 (exit $ac_status); } && {
8253 test -z "$ac_c_werror_flag" ||
8254 test ! -s conftest.err
ec6a6fbe
AK
8255 } && test -s conftest$ac_exeext && {
8256 test "$cross_compiling" = yes ||
8257 $as_test_x conftest$ac_exeext
8258 }; then
ad6254c5
AK
8259 ac_cv_func_alloca_works=yes
8260else
ec6a6fbe 8261 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8262sed 's/^/| /' conftest.$ac_ext >&5
8263
7a197a62 8264 ac_cv_func_alloca_works=no
ad6254c5 8265fi
7a197a62 8266
ec6a6fbe 8267rm -rf conftest.dSYM
25fbec5b 8268rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 8269 conftest$ac_exeext conftest.$ac_ext
ad6254c5 8270fi
ec6a6fbe
AK
8271{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
8272$as_echo "$ac_cv_func_alloca_works" >&6; }
ad6254c5
AK
8273
8274if test $ac_cv_func_alloca_works = yes; then
8275
8276cat >>confdefs.h <<\_ACEOF
8277#define HAVE_ALLOCA 1
8278_ACEOF
8279
8280else
8281 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8282# that cause trouble. Some versions do not even contain alloca or
8283# contain a buggy version. If you still want to use their alloca,
8284# use ar to extract alloca.o from them instead of compiling alloca.c.
8285
7a197a62 8286ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
ad6254c5
AK
8287
8288cat >>confdefs.h <<\_ACEOF
8289#define C_ALLOCA 1
8290_ACEOF
8291
8292
ec6a6fbe
AK
8293{ $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
8294$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
ad6254c5 8295if test "${ac_cv_os_cray+set}" = set; then
ec6a6fbe 8296 $as_echo_n "(cached) " >&6
ad6254c5
AK
8297else
8298 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8299/* confdefs.h. */
8300_ACEOF
8301cat confdefs.h >>conftest.$ac_ext
8302cat >>conftest.$ac_ext <<_ACEOF
8303/* end confdefs.h. */
7a197a62 8304#if defined CRAY && ! defined CRAY2
ad6254c5
AK
8305webecray
8306#else
8307wenotbecray
8308#endif
8309
8310_ACEOF
795ca3e5 8311if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ad6254c5
AK
8312 $EGREP "webecray" >/dev/null 2>&1; then
8313 ac_cv_os_cray=yes
8314else
8315 ac_cv_os_cray=no
795ca3e5
AK
8316fi
8317rm -f conftest*
8318
795ca3e5 8319fi
ec6a6fbe
AK
8320{ $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
8321$as_echo "$ac_cv_os_cray" >&6; }
ad6254c5
AK
8322if test $ac_cv_os_cray = yes; then
8323 for ac_func in _getb67 GETB67 getb67; do
ec6a6fbe
AK
8324 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8325{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8326$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 8327if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 8328 $as_echo_n "(cached) " >&6
ad6254c5
AK
8329else
8330 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8331/* confdefs.h. */
8332_ACEOF
8333cat confdefs.h >>conftest.$ac_ext
8334cat >>conftest.$ac_ext <<_ACEOF
8335/* end confdefs.h. */
8a2fc586
AK
8336/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8337 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8338#define $ac_func innocuous_$ac_func
8339
ad6254c5
AK
8340/* System header to define __stub macros and hopefully few prototypes,
8341 which can conflict with char $ac_func (); below.
8342 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8343 <limits.h> exists even on freestanding compilers. */
8a2fc586 8344
ad6254c5
AK
8345#ifdef __STDC__
8346# include <limits.h>
8347#else
8348# include <assert.h>
8349#endif
8a2fc586
AK
8350
8351#undef $ac_func
8352
7a197a62
AK
8353/* Override any GCC internal prototype to avoid an error.
8354 Use char because int might match the return type of a GCC
8355 builtin and then its argument prototype would still apply. */
ad6254c5
AK
8356#ifdef __cplusplus
8357extern "C"
ad6254c5 8358#endif
ad6254c5
AK
8359char $ac_func ();
8360/* The GNU C library defines this for functions which it implements
8361 to always fail with ENOSYS. Some functions are actually named
8362 something starting with __ and the normal name is an alias. */
7a197a62 8363#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 8364choke me
ad6254c5
AK
8365#endif
8366
8367int
8368main ()
8369{
7a197a62 8370return $ac_func ();
ad6254c5
AK
8371 ;
8372 return 0;
8373}
8374_ACEOF
8375rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
8376if { (ac_try="$ac_link"
8377case "(($ac_try" in
8378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8379 *) ac_try_echo=$ac_try;;
8380esac
ec6a6fbe
AK
8381eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8382$as_echo "$ac_try_echo") >&5
7a197a62 8383 (eval "$ac_link") 2>conftest.er1
ad6254c5 8384 ac_status=$?
8a2fc586
AK
8385 grep -v '^ *+' conftest.er1 >conftest.err
8386 rm -f conftest.er1
8387 cat conftest.err >&5
ec6a6fbe 8388 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8389 (exit $ac_status); } && {
8390 test -z "$ac_c_werror_flag" ||
8391 test ! -s conftest.err
ec6a6fbe
AK
8392 } && test -s conftest$ac_exeext && {
8393 test "$cross_compiling" = yes ||
8394 $as_test_x conftest$ac_exeext
8395 }; then
ad6254c5
AK
8396 eval "$as_ac_var=yes"
8397else
ec6a6fbe 8398 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8399sed 's/^/| /' conftest.$ac_ext >&5
8400
7a197a62 8401 eval "$as_ac_var=no"
ad6254c5 8402fi
7a197a62 8403
ec6a6fbe 8404rm -rf conftest.dSYM
25fbec5b 8405rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 8406 conftest$ac_exeext conftest.$ac_ext
ad6254c5 8407fi
ec6a6fbe
AK
8408ac_res=`eval 'as_val=${'$as_ac_var'}
8409 $as_echo "$as_val"'`
8410 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8411$as_echo "$ac_res" >&6; }
8412as_val=`eval 'as_val=${'$as_ac_var'}
8413 $as_echo "$as_val"'`
8414 if test "x$as_val" = x""yes; then
80992638 8415
ad6254c5
AK
8416cat >>confdefs.h <<_ACEOF
8417#define CRAY_STACKSEG_END $ac_func
8418_ACEOF
8419
8420 break
8421fi
8422
8423 done
8424fi
8425
ec6a6fbe
AK
8426{ $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
8427$as_echo_n "checking stack direction for C alloca... " >&6; }
ad6254c5 8428if test "${ac_cv_c_stack_direction+set}" = set; then
ec6a6fbe 8429 $as_echo_n "(cached) " >&6
ad6254c5
AK
8430else
8431 if test "$cross_compiling" = yes; then
8432 ac_cv_c_stack_direction=0
8433else
8434 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8435/* confdefs.h. */
8436_ACEOF
8437cat confdefs.h >>conftest.$ac_ext
8438cat >>conftest.$ac_ext <<_ACEOF
8439/* end confdefs.h. */
7a197a62 8440$ac_includes_default
ad6254c5
AK
8441int
8442find_stack_direction ()
8443{
8444 static char *addr = 0;
8445 auto char dummy;
8446 if (addr == 0)
8447 {
8448 addr = &dummy;
8449 return find_stack_direction ();
8450 }
8451 else
8452 return (&dummy > addr) ? 1 : -1;
8453}
8454
8455int
8456main ()
8457{
7a197a62 8458 return find_stack_direction () < 0;
ad6254c5
AK
8459}
8460_ACEOF
8461rm -f conftest$ac_exeext
7a197a62
AK
8462if { (ac_try="$ac_link"
8463case "(($ac_try" in
8464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8465 *) ac_try_echo=$ac_try;;
8466esac
ec6a6fbe
AK
8467eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8468$as_echo "$ac_try_echo") >&5
7a197a62 8469 (eval "$ac_link") 2>&5
ad6254c5 8470 ac_status=$?
ec6a6fbe 8471 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 8472 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
8473 { (case "(($ac_try" in
8474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8475 *) ac_try_echo=$ac_try;;
8476esac
ec6a6fbe
AK
8477eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8478$as_echo "$ac_try_echo") >&5
7a197a62 8479 (eval "$ac_try") 2>&5
ad6254c5 8480 ac_status=$?
ec6a6fbe 8481 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
8482 (exit $ac_status); }; }; then
8483 ac_cv_c_stack_direction=1
8484else
ec6a6fbe
AK
8485 $as_echo "$as_me: program exited with status $ac_status" >&5
8486$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8487sed 's/^/| /' conftest.$ac_ext >&5
8488
8489( exit $ac_status )
8490ac_cv_c_stack_direction=-1
8491fi
ec6a6fbe 8492rm -rf conftest.dSYM
7a197a62 8493rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 8494fi
7a197a62
AK
8495
8496
ad6254c5 8497fi
ec6a6fbe
AK
8498{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
8499$as_echo "$ac_cv_c_stack_direction" >&6; }
ad6254c5 8500
d911ec67
AK
8501cat >>confdefs.h <<_ACEOF
8502#define STACK_DIRECTION $ac_cv_c_stack_direction
8503_ACEOF
8504
8505
8506fi
8507
8508{ $as_echo "$as_me:$LINENO: checking whether closedir returns void" >&5
8509$as_echo_n "checking whether closedir returns void... " >&6; }
8510if test "${ac_cv_func_closedir_void+set}" = set; then
8511 $as_echo_n "(cached) " >&6
8512else
8513 if test "$cross_compiling" = yes; then
8514 ac_cv_func_closedir_void=yes
8515else
8516 cat >conftest.$ac_ext <<_ACEOF
8517/* confdefs.h. */
8518_ACEOF
8519cat confdefs.h >>conftest.$ac_ext
8520cat >>conftest.$ac_ext <<_ACEOF
8521/* end confdefs.h. */
8522$ac_includes_default
8523#include <$ac_header_dirent>
8524#ifndef __cplusplus
8525int closedir ();
8526#endif
8527
8528int
8529main ()
8530{
8531return closedir (opendir (".")) != 0;
8532 ;
8533 return 0;
8534}
8535_ACEOF
8536rm -f conftest$ac_exeext
8537if { (ac_try="$ac_link"
8538case "(($ac_try" in
8539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8540 *) ac_try_echo=$ac_try;;
8541esac
8542eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8543$as_echo "$ac_try_echo") >&5
8544 (eval "$ac_link") 2>&5
8545 ac_status=$?
8546 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8547 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8548 { (case "(($ac_try" in
8549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8550 *) ac_try_echo=$ac_try;;
8551esac
8552eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8553$as_echo "$ac_try_echo") >&5
8554 (eval "$ac_try") 2>&5
8555 ac_status=$?
8556 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8557 (exit $ac_status); }; }; then
8558 ac_cv_func_closedir_void=no
8559else
8560 $as_echo "$as_me: program exited with status $ac_status" >&5
8561$as_echo "$as_me: failed program was:" >&5
8562sed 's/^/| /' conftest.$ac_ext >&5
8563
8564( exit $ac_status )
8565ac_cv_func_closedir_void=yes
8566fi
8567rm -rf conftest.dSYM
8568rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8569fi
8570
8571
8572fi
8573{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
8574$as_echo "$ac_cv_func_closedir_void" >&6; }
8575if test $ac_cv_func_closedir_void = yes; then
8576
8577cat >>confdefs.h <<\_ACEOF
8578#define CLOSEDIR_VOID 1
8579_ACEOF
8580
8581fi
8582
8583
8584for ac_header in unistd.h
8585do
8586as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8587if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8588 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8589$as_echo_n "checking for $ac_header... " >&6; }
8590if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8591 $as_echo_n "(cached) " >&6
8592fi
8593ac_res=`eval 'as_val=${'$as_ac_Header'}
8594 $as_echo "$as_val"'`
8595 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8596$as_echo "$ac_res" >&6; }
8597else
8598 # Is the header compilable?
8599{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8600$as_echo_n "checking $ac_header usability... " >&6; }
8601cat >conftest.$ac_ext <<_ACEOF
8602/* confdefs.h. */
8603_ACEOF
8604cat confdefs.h >>conftest.$ac_ext
8605cat >>conftest.$ac_ext <<_ACEOF
8606/* end confdefs.h. */
8607$ac_includes_default
8608#include <$ac_header>
8609_ACEOF
8610rm -f conftest.$ac_objext
8611if { (ac_try="$ac_compile"
8612case "(($ac_try" in
8613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8614 *) ac_try_echo=$ac_try;;
8615esac
8616eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8617$as_echo "$ac_try_echo") >&5
8618 (eval "$ac_compile") 2>conftest.er1
8619 ac_status=$?
8620 grep -v '^ *+' conftest.er1 >conftest.err
8621 rm -f conftest.er1
8622 cat conftest.err >&5
8623 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8624 (exit $ac_status); } && {
8625 test -z "$ac_c_werror_flag" ||
8626 test ! -s conftest.err
8627 } && test -s conftest.$ac_objext; then
8628 ac_header_compiler=yes
8629else
8630 $as_echo "$as_me: failed program was:" >&5
8631sed 's/^/| /' conftest.$ac_ext >&5
8632
8633 ac_header_compiler=no
8634fi
8635
8636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8637{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8638$as_echo "$ac_header_compiler" >&6; }
8639
8640# Is the header present?
8641{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8642$as_echo_n "checking $ac_header presence... " >&6; }
8643cat >conftest.$ac_ext <<_ACEOF
8644/* confdefs.h. */
8645_ACEOF
8646cat confdefs.h >>conftest.$ac_ext
8647cat >>conftest.$ac_ext <<_ACEOF
8648/* end confdefs.h. */
8649#include <$ac_header>
8650_ACEOF
8651if { (ac_try="$ac_cpp conftest.$ac_ext"
8652case "(($ac_try" in
8653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8654 *) ac_try_echo=$ac_try;;
8655esac
8656eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8657$as_echo "$ac_try_echo") >&5
8658 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8659 ac_status=$?
8660 grep -v '^ *+' conftest.er1 >conftest.err
8661 rm -f conftest.er1
8662 cat conftest.err >&5
8663 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8664 (exit $ac_status); } >/dev/null && {
8665 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8666 test ! -s conftest.err
8667 }; then
8668 ac_header_preproc=yes
8669else
8670 $as_echo "$as_me: failed program was:" >&5
8671sed 's/^/| /' conftest.$ac_ext >&5
8672
8673 ac_header_preproc=no
8674fi
8675
8676rm -f conftest.err conftest.$ac_ext
8677{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8678$as_echo "$ac_header_preproc" >&6; }
8679
8680# So? What about this header?
8681case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8682 yes:no: )
8683 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8684$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8685 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8686$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8687 ac_header_preproc=yes
8688 ;;
8689 no:yes:* )
8690 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8691$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8692 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8693$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8694 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8695$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8696 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8697$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8698 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8699$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8700 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8701$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8702
8703 ;;
8704esac
8705{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8706$as_echo_n "checking for $ac_header... " >&6; }
8707if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8708 $as_echo_n "(cached) " >&6
8709else
8710 eval "$as_ac_Header=\$ac_header_preproc"
8711fi
8712ac_res=`eval 'as_val=${'$as_ac_Header'}
8713 $as_echo "$as_val"'`
8714 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8715$as_echo "$ac_res" >&6; }
8716
8717fi
8718as_val=`eval 'as_val=${'$as_ac_Header'}
8719 $as_echo "$as_val"'`
8720 if test "x$as_val" = x""yes; then
8721 cat >>confdefs.h <<_ACEOF
8722#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
8723_ACEOF
8724
ad6254c5
AK
8725fi
8726
d911ec67
AK
8727done
8728
8729{ $as_echo "$as_me:$LINENO: checking for working chown" >&5
8730$as_echo_n "checking for working chown... " >&6; }
8731if test "${ac_cv_func_chown_works+set}" = set; then
ec6a6fbe 8732 $as_echo_n "(cached) " >&6
ad6254c5
AK
8733else
8734 if test "$cross_compiling" = yes; then
d911ec67 8735 ac_cv_func_chown_works=no
ad6254c5
AK
8736else
8737 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8738/* confdefs.h. */
8739_ACEOF
8740cat confdefs.h >>conftest.$ac_ext
8741cat >>conftest.$ac_ext <<_ACEOF
8742/* end confdefs.h. */
8743$ac_includes_default
d911ec67 8744#include <fcntl.h>
ad6254c5
AK
8745
8746int
8747main ()
8748{
d911ec67
AK
8749 char *f = "conftest.chown";
8750 struct stat before, after;
8751
8752 if (creat (f, 0600) < 0)
8753 return 1;
8754 if (stat (f, &before) < 0)
8755 return 1;
8756 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
8757 return 1;
8758 if (stat (f, &after) < 0)
8759 return 1;
8760 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
8761
ad6254c5
AK
8762 ;
8763 return 0;
8764}
8765_ACEOF
8766rm -f conftest$ac_exeext
7a197a62
AK
8767if { (ac_try="$ac_link"
8768case "(($ac_try" in
8769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8770 *) ac_try_echo=$ac_try;;
8771esac
ec6a6fbe
AK
8772eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8773$as_echo "$ac_try_echo") >&5
7a197a62 8774 (eval "$ac_link") 2>&5
ad6254c5 8775 ac_status=$?
ec6a6fbe 8776 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 8777 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
8778 { (case "(($ac_try" in
8779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8780 *) ac_try_echo=$ac_try;;
8781esac
ec6a6fbe
AK
8782eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8783$as_echo "$ac_try_echo") >&5
7a197a62 8784 (eval "$ac_try") 2>&5
ad6254c5 8785 ac_status=$?
ec6a6fbe 8786 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 8787 (exit $ac_status); }; }; then
d911ec67 8788 ac_cv_func_chown_works=yes
ad6254c5 8789else
ec6a6fbe
AK
8790 $as_echo "$as_me: program exited with status $ac_status" >&5
8791$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8792sed 's/^/| /' conftest.$ac_ext >&5
8793
8794( exit $ac_status )
d911ec67 8795ac_cv_func_chown_works=no
ad6254c5 8796fi
ec6a6fbe 8797rm -rf conftest.dSYM
7a197a62 8798rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 8799fi
7a197a62
AK
8800
8801
d911ec67
AK
8802rm -f conftest.chown
8803
ad6254c5 8804fi
d911ec67
AK
8805{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_chown_works" >&5
8806$as_echo "$ac_cv_func_chown_works" >&6; }
8807if test $ac_cv_func_chown_works = yes; then
ad6254c5
AK
8808
8809cat >>confdefs.h <<\_ACEOF
d911ec67 8810#define HAVE_CHOWN 1
ad6254c5
AK
8811_ACEOF
8812
8813fi
8814
8815
7a197a62 8816for ac_header in vfork.h
ad6254c5 8817do
ec6a6fbe 8818as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 8819if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
8820 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8821$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 8822if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 8823 $as_echo_n "(cached) " >&6
ad6254c5 8824fi
ec6a6fbe
AK
8825ac_res=`eval 'as_val=${'$as_ac_Header'}
8826 $as_echo "$as_val"'`
8827 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8828$as_echo "$ac_res" >&6; }
ad6254c5
AK
8829else
8830 # Is the header compilable?
ec6a6fbe
AK
8831{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8832$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 8833cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8834/* confdefs.h. */
8835_ACEOF
8836cat confdefs.h >>conftest.$ac_ext
8837cat >>conftest.$ac_ext <<_ACEOF
8838/* end confdefs.h. */
8839$ac_includes_default
8840#include <$ac_header>
8841_ACEOF
8842rm -f conftest.$ac_objext
7a197a62
AK
8843if { (ac_try="$ac_compile"
8844case "(($ac_try" in
8845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8846 *) ac_try_echo=$ac_try;;
8847esac
ec6a6fbe
AK
8848eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8849$as_echo "$ac_try_echo") >&5
7a197a62 8850 (eval "$ac_compile") 2>conftest.er1
ad6254c5 8851 ac_status=$?
8a2fc586
AK
8852 grep -v '^ *+' conftest.er1 >conftest.err
8853 rm -f conftest.er1
8854 cat conftest.err >&5
ec6a6fbe 8855 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8856 (exit $ac_status); } && {
8857 test -z "$ac_c_werror_flag" ||
8858 test ! -s conftest.err
8859 } && test -s conftest.$ac_objext; then
ad6254c5
AK
8860 ac_header_compiler=yes
8861else
ec6a6fbe 8862 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8863sed 's/^/| /' conftest.$ac_ext >&5
8864
7a197a62 8865 ac_header_compiler=no
ad6254c5 8866fi
7a197a62
AK
8867
8868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
8869{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8870$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
8871
8872# Is the header present?
ec6a6fbe
AK
8873{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8874$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 8875cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8876/* confdefs.h. */
8877_ACEOF
8878cat confdefs.h >>conftest.$ac_ext
8879cat >>conftest.$ac_ext <<_ACEOF
8880/* end confdefs.h. */
8881#include <$ac_header>
8882_ACEOF
7a197a62
AK
8883if { (ac_try="$ac_cpp conftest.$ac_ext"
8884case "(($ac_try" in
8885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8886 *) ac_try_echo=$ac_try;;
8887esac
ec6a6fbe
AK
8888eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8889$as_echo "$ac_try_echo") >&5
7a197a62 8890 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
8891 ac_status=$?
8892 grep -v '^ *+' conftest.er1 >conftest.err
8893 rm -f conftest.er1
8894 cat conftest.err >&5
ec6a6fbe 8895 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8896 (exit $ac_status); } >/dev/null && {
8897 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8898 test ! -s conftest.err
8899 }; then
ad6254c5
AK
8900 ac_header_preproc=yes
8901else
ec6a6fbe 8902 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8903sed 's/^/| /' conftest.$ac_ext >&5
8904
8905 ac_header_preproc=no
8906fi
7a197a62 8907
ad6254c5 8908rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
8909{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8910$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
8911
8912# So? What about this header?
8a2fc586
AK
8913case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8914 yes:no: )
ec6a6fbe
AK
8915 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8916$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8917 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8918$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 8919 ac_header_preproc=yes
ad6254c5 8920 ;;
8a2fc586 8921 no:yes:* )
ec6a6fbe
AK
8922 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8923$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8924 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8925$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8926 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8927$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8928 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8929$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8930 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8931$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8932 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8933$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 8934
ad6254c5
AK
8935 ;;
8936esac
ec6a6fbe
AK
8937{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8938$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 8939if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 8940 $as_echo_n "(cached) " >&6
ad6254c5 8941else
8a2fc586 8942 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 8943fi
ec6a6fbe
AK
8944ac_res=`eval 'as_val=${'$as_ac_Header'}
8945 $as_echo "$as_val"'`
8946 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8947$as_echo "$ac_res" >&6; }
ad6254c5 8948
795ca3e5 8949fi
ec6a6fbe
AK
8950as_val=`eval 'as_val=${'$as_ac_Header'}
8951 $as_echo "$as_val"'`
8952 if test "x$as_val" = x""yes; then
ad6254c5 8953 cat >>confdefs.h <<_ACEOF
ec6a6fbe 8954#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
8955_ACEOF
8956
8957fi
8958
8959done
795ca3e5 8960
ad6254c5
AK
8961
8962
8963for ac_func in fork vfork
8964do
ec6a6fbe
AK
8965as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8966{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8967$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 8968if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 8969 $as_echo_n "(cached) " >&6
795ca3e5 8970else
ad6254c5 8971 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8972/* confdefs.h. */
8973_ACEOF
8974cat confdefs.h >>conftest.$ac_ext
8975cat >>conftest.$ac_ext <<_ACEOF
8976/* end confdefs.h. */
8a2fc586
AK
8977/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8978 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8979#define $ac_func innocuous_$ac_func
8980
ad6254c5
AK
8981/* System header to define __stub macros and hopefully few prototypes,
8982 which can conflict with char $ac_func (); below.
8983 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8984 <limits.h> exists even on freestanding compilers. */
8a2fc586 8985
ad6254c5
AK
8986#ifdef __STDC__
8987# include <limits.h>
8988#else
8989# include <assert.h>
795ca3e5 8990#endif
8a2fc586
AK
8991
8992#undef $ac_func
8993
7a197a62
AK
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. */
795ca3e5 8997#ifdef __cplusplus
ad6254c5 8998extern "C"
ad6254c5 8999#endif
ad6254c5
AK
9000char $ac_func ();
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. */
7a197a62 9004#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 9005choke me
795ca3e5
AK
9006#endif
9007
ad6254c5
AK
9008int
9009main ()
9010{
7a197a62 9011return $ac_func ();
ad6254c5
AK
9012 ;
9013 return 0;
9014}
9015_ACEOF
9016rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
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
7a197a62 9024 (eval "$ac_link") 2>conftest.er1
ad6254c5 9025 ac_status=$?
8a2fc586
AK
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
25fbec5b
AK
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
ad6254c5 9037 eval "$as_ac_var=yes"
795ca3e5 9038else
ec6a6fbe 9039 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
9040sed 's/^/| /' conftest.$ac_ext >&5
9041
7a197a62 9042 eval "$as_ac_var=no"
795ca3e5 9043fi
7a197a62 9044
ec6a6fbe 9045rm -rf conftest.dSYM
25fbec5b 9046rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 9047 conftest$ac_exeext conftest.$ac_ext
ad6254c5 9048fi
ec6a6fbe
AK
9049ac_res=`eval 'as_val=${'$as_ac_var'}
9050 $as_echo "$as_val"'`
9051 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9052$as_echo "$ac_res" >&6; }
9053as_val=`eval 'as_val=${'$as_ac_var'}
9054 $as_echo "$as_val"'`
9055 if test "x$as_val" = x""yes; then
ad6254c5 9056 cat >>confdefs.h <<_ACEOF
ec6a6fbe 9057#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
9058_ACEOF
9059
9060fi
9061done
9062
9063if test "x$ac_cv_func_fork" = xyes; then
ec6a6fbe
AK
9064 { $as_echo "$as_me:$LINENO: checking for working fork" >&5
9065$as_echo_n "checking for working fork... " >&6; }
ad6254c5 9066if test "${ac_cv_func_fork_works+set}" = set; then
ec6a6fbe 9067 $as_echo_n "(cached) " >&6
ad6254c5
AK
9068else
9069 if test "$cross_compiling" = yes; then
9070 ac_cv_func_fork_works=cross
9071else
9072 cat >conftest.$ac_ext <<_ACEOF
7a197a62
AK
9073/* confdefs.h. */
9074_ACEOF
9075cat confdefs.h >>conftest.$ac_ext
9076cat >>conftest.$ac_ext <<_ACEOF
9077/* end confdefs.h. */
9078$ac_includes_default
9079int
9080main ()
9081{
9082
9083 /* By Ruediger Kuhlmann. */
9084 return fork () < 0;
9085
9086 ;
9087 return 0;
9088}
ad6254c5
AK
9089_ACEOF
9090rm -f conftest$ac_exeext
7a197a62
AK
9091if { (ac_try="$ac_link"
9092case "(($ac_try" in
9093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9094 *) ac_try_echo=$ac_try;;
9095esac
ec6a6fbe
AK
9096eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9097$as_echo "$ac_try_echo") >&5
7a197a62 9098 (eval "$ac_link") 2>&5
ad6254c5 9099 ac_status=$?
ec6a6fbe 9100 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 9101 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
9102 { (case "(($ac_try" in
9103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9104 *) ac_try_echo=$ac_try;;
9105esac
ec6a6fbe
AK
9106eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9107$as_echo "$ac_try_echo") >&5
7a197a62 9108 (eval "$ac_try") 2>&5
ad6254c5 9109 ac_status=$?
ec6a6fbe 9110 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
9111 (exit $ac_status); }; }; then
9112 ac_cv_func_fork_works=yes
9113else
ec6a6fbe
AK
9114 $as_echo "$as_me: program exited with status $ac_status" >&5
9115$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
9116sed 's/^/| /' conftest.$ac_ext >&5
9117
9118( exit $ac_status )
9119ac_cv_func_fork_works=no
9120fi
ec6a6fbe 9121rm -rf conftest.dSYM
7a197a62 9122rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 9123fi
7a197a62
AK
9124
9125
ad6254c5 9126fi
ec6a6fbe
AK
9127{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
9128$as_echo "$ac_cv_func_fork_works" >&6; }
ad6254c5
AK
9129
9130else
9131 ac_cv_func_fork_works=$ac_cv_func_fork
9132fi
9133if test "x$ac_cv_func_fork_works" = xcross; then
9134 case $host in
9135 *-*-amigaos* | *-*-msdosdjgpp*)
9136 # Override, as these systems have only a dummy fork() stub
9137 ac_cv_func_fork_works=no
9138 ;;
9139 *)
9140 ac_cv_func_fork_works=yes
9141 ;;
9142 esac
ec6a6fbe
AK
9143 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9144$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
ad6254c5
AK
9145fi
9146ac_cv_func_vfork_works=$ac_cv_func_vfork
9147if test "x$ac_cv_func_vfork" = xyes; then
ec6a6fbe
AK
9148 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
9149$as_echo_n "checking for working vfork... " >&6; }
ad6254c5 9150if test "${ac_cv_func_vfork_works+set}" = set; then
ec6a6fbe 9151 $as_echo_n "(cached) " >&6
ad6254c5
AK
9152else
9153 if test "$cross_compiling" = yes; then
9154 ac_cv_func_vfork_works=cross
9155else
9156 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9157/* confdefs.h. */
9158_ACEOF
9159cat confdefs.h >>conftest.$ac_ext
9160cat >>conftest.$ac_ext <<_ACEOF
9161/* end confdefs.h. */
9162/* Thanks to Paul Eggert for this test. */
7a197a62 9163$ac_includes_default
ad6254c5 9164#include <sys/wait.h>
25fbec5b 9165#ifdef HAVE_VFORK_H
ad6254c5
AK
9166# include <vfork.h>
9167#endif
9168/* On some sparc systems, changes by the child to local and incoming
9169 argument registers are propagated back to the parent. The compiler
9170 is told about this with #include <vfork.h>, but some compilers
9171 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9172 static variable whose address is put into a register that is
9173 clobbered by the vfork. */
9174static void
9175#ifdef __cplusplus
9176sparc_address_test (int arg)
9177# else
9178sparc_address_test (arg) int arg;
9179#endif
9180{
9181 static pid_t child;
9182 if (!child) {
9183 child = vfork ();
9184 if (child < 0) {
9185 perror ("vfork");
9186 _exit(2);
9187 }
9188 if (!child) {
9189 arg = getpid();
9190 write(-1, "", 0);
9191 _exit (arg);
9192 }
9193 }
9194}
9195
9196int
9197main ()
9198{
9199 pid_t parent = getpid ();
9200 pid_t child;
9201
9202 sparc_address_test (0);
9203
9204 child = vfork ();
9205
9206 if (child == 0) {
9207 /* Here is another test for sparc vfork register problems. This
9208 test uses lots of local variables, at least as many local
9209 variables as main has allocated so far including compiler
9210 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9211 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9212 reuse the register of parent for one of the local variables,
9213 since it will think that parent can't possibly be used any more
9214 in this routine. Assigning to the local variable will thus
9215 munge parent in the parent process. */
9216 pid_t
9217 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9218 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9219 /* Convince the compiler that p..p7 are live; otherwise, it might
9220 use the same hardware register for all 8 local variables. */
9221 if (p != p1 || p != p2 || p != p3 || p != p4
9222 || p != p5 || p != p6 || p != p7)
9223 _exit(1);
9224
9225 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9226 from child file descriptors. If the child closes a descriptor
9227 before it execs or exits, this munges the parent's descriptor
9228 as well. Test for this by closing stdout in the child. */
9229 _exit(close(fileno(stdout)) != 0);
9230 } else {
9231 int status;
9232 struct stat st;
9233
9234 while (wait(&status) != child)
9235 ;
7a197a62 9236 return (
ad6254c5
AK
9237 /* Was there some problem with vforking? */
9238 child < 0
9239
9240 /* Did the child fail? (This shouldn't happen.) */
9241 || status
9242
9243 /* Did the vfork/compiler bug occur? */
9244 || parent != getpid()
9245
9246 /* Did the file descriptor bug occur? */
9247 || fstat(fileno(stdout), &st) != 0
9248 );
9249 }
9250}
9251_ACEOF
9252rm -f conftest$ac_exeext
7a197a62
AK
9253if { (ac_try="$ac_link"
9254case "(($ac_try" in
9255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9256 *) ac_try_echo=$ac_try;;
9257esac
ec6a6fbe
AK
9258eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9259$as_echo "$ac_try_echo") >&5
7a197a62 9260 (eval "$ac_link") 2>&5
ad6254c5 9261 ac_status=$?
ec6a6fbe 9262 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 9263 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
9264 { (case "(($ac_try" in
9265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9266 *) ac_try_echo=$ac_try;;
9267esac
ec6a6fbe
AK
9268eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9269$as_echo "$ac_try_echo") >&5
7a197a62 9270 (eval "$ac_try") 2>&5
ad6254c5 9271 ac_status=$?
ec6a6fbe 9272 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
9273 (exit $ac_status); }; }; then
9274 ac_cv_func_vfork_works=yes
9275else
ec6a6fbe
AK
9276 $as_echo "$as_me: program exited with status $ac_status" >&5
9277$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
9278sed 's/^/| /' conftest.$ac_ext >&5
9279
9280( exit $ac_status )
9281ac_cv_func_vfork_works=no
9282fi
ec6a6fbe 9283rm -rf conftest.dSYM
7a197a62 9284rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 9285fi
7a197a62
AK
9286
9287
ad6254c5 9288fi
ec6a6fbe
AK
9289{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
9290$as_echo "$ac_cv_func_vfork_works" >&6; }
ad6254c5
AK
9291
9292fi;
9293if test "x$ac_cv_func_fork_works" = xcross; then
8a2fc586 9294 ac_cv_func_vfork_works=$ac_cv_func_vfork
ec6a6fbe
AK
9295 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9296$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
ad6254c5
AK
9297fi
9298
9299if test "x$ac_cv_func_vfork_works" = xyes; then
9300
9301cat >>confdefs.h <<\_ACEOF
9302#define HAVE_WORKING_VFORK 1
9303_ACEOF
9304
9305else
9306
9307cat >>confdefs.h <<\_ACEOF
9308#define vfork fork
9309_ACEOF
9310
9311fi
9312if test "x$ac_cv_func_fork_works" = xyes; then
9313
9314cat >>confdefs.h <<\_ACEOF
9315#define HAVE_WORKING_FORK 1
9316_ACEOF
9317
9318fi
9319
ec6a6fbe
AK
9320{ $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
9321$as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
ad6254c5 9322if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
ec6a6fbe 9323 $as_echo_n "(cached) " >&6
ad6254c5
AK
9324else
9325 rm -f conftest.sym conftest.file
9326echo >conftest.file
9327if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
9328 if test "$cross_compiling" = yes; then
9329 ac_cv_func_lstat_dereferences_slashed_symlink=no
9330else
9331 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9332/* confdefs.h. */
9333_ACEOF
9334cat confdefs.h >>conftest.$ac_ext
9335cat >>conftest.$ac_ext <<_ACEOF
9336/* end confdefs.h. */
9337$ac_includes_default
9338int
9339main ()
9340{
9341struct stat sbuf;
9342 /* Linux will dereference the symlink and fail.
8a2fc586
AK
9343 That is better in the sense that it means we will not
9344 have to compile and use the lstat wrapper. */
7a197a62 9345 return lstat ("conftest.sym/", &sbuf) == 0;
ad6254c5
AK
9346 ;
9347 return 0;
9348}
9349_ACEOF
9350rm -f conftest$ac_exeext
7a197a62
AK
9351if { (ac_try="$ac_link"
9352case "(($ac_try" in
9353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9354 *) ac_try_echo=$ac_try;;
9355esac
ec6a6fbe
AK
9356eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9357$as_echo "$ac_try_echo") >&5
7a197a62 9358 (eval "$ac_link") 2>&5
ad6254c5 9359 ac_status=$?
ec6a6fbe 9360 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 9361 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
9362 { (case "(($ac_try" in
9363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9364 *) ac_try_echo=$ac_try;;
9365esac
ec6a6fbe
AK
9366eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9367$as_echo "$ac_try_echo") >&5
7a197a62 9368 (eval "$ac_try") 2>&5
ad6254c5 9369 ac_status=$?
ec6a6fbe 9370 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
9371 (exit $ac_status); }; }; then
9372 ac_cv_func_lstat_dereferences_slashed_symlink=yes
9373else
ec6a6fbe
AK
9374 $as_echo "$as_me: program exited with status $ac_status" >&5
9375$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
9376sed 's/^/| /' conftest.$ac_ext >&5
9377
9378( exit $ac_status )
9379ac_cv_func_lstat_dereferences_slashed_symlink=no
9380fi
ec6a6fbe 9381rm -rf conftest.dSYM
7a197a62 9382rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 9383fi
7a197a62
AK
9384
9385
ad6254c5
AK
9386else
9387 # If the `ln -s' command failed, then we probably don't even
9388 # have an lstat function.
9389 ac_cv_func_lstat_dereferences_slashed_symlink=no
9390fi
9391rm -f conftest.sym conftest.file
9392
9393fi
ec6a6fbe
AK
9394{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
9395$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
ad6254c5
AK
9396
9397test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
9398
9399cat >>confdefs.h <<_ACEOF
9400#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
9401_ACEOF
9402
9403
9404if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
7a197a62 9405 case " $LIBOBJS " in
8a2fc586 9406 *" lstat.$ac_objext "* ) ;;
7a197a62
AK
9407 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
9408 ;;
8a2fc586
AK
9409esac
9410
ad6254c5
AK
9411fi
9412
ec6a6fbe
AK
9413{ $as_echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
9414$as_echo_n "checking whether lstat accepts an empty string... " >&6; }
ad6254c5 9415if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
ec6a6fbe 9416 $as_echo_n "(cached) " >&6
ad6254c5
AK
9417else
9418 if test "$cross_compiling" = yes; then
9419 ac_cv_func_lstat_empty_string_bug=yes
9420else
9421 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9422/* confdefs.h. */
9423_ACEOF
9424cat confdefs.h >>conftest.$ac_ext
9425cat >>conftest.$ac_ext <<_ACEOF
9426/* end confdefs.h. */
9427$ac_includes_default
9428int
9429main ()
9430{
9431struct stat sbuf;
7a197a62 9432 return lstat ("", &sbuf) == 0;
ad6254c5
AK
9433 ;
9434 return 0;
9435}
9436_ACEOF
9437rm -f conftest$ac_exeext
7a197a62
AK
9438if { (ac_try="$ac_link"
9439case "(($ac_try" in
9440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9441 *) ac_try_echo=$ac_try;;
9442esac
ec6a6fbe
AK
9443eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9444$as_echo "$ac_try_echo") >&5
7a197a62 9445 (eval "$ac_link") 2>&5
ad6254c5 9446 ac_status=$?
ec6a6fbe 9447 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 9448 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
9449 { (case "(($ac_try" in
9450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9451 *) ac_try_echo=$ac_try;;
9452esac
ec6a6fbe
AK
9453eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9454$as_echo "$ac_try_echo") >&5
7a197a62 9455 (eval "$ac_try") 2>&5
ad6254c5 9456 ac_status=$?
ec6a6fbe 9457 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 9458 (exit $ac_status); }; }; then
7a197a62 9459 ac_cv_func_lstat_empty_string_bug=no
ad6254c5 9460else
ec6a6fbe
AK
9461 $as_echo "$as_me: program exited with status $ac_status" >&5
9462$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
9463sed 's/^/| /' conftest.$ac_ext >&5
9464
9465( exit $ac_status )
7a197a62 9466ac_cv_func_lstat_empty_string_bug=yes
ad6254c5 9467fi
ec6a6fbe 9468rm -rf conftest.dSYM
7a197a62 9469rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 9470fi
7a197a62
AK
9471
9472
ad6254c5 9473fi
ec6a6fbe
AK
9474{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
9475$as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
ad6254c5 9476if test $ac_cv_func_lstat_empty_string_bug = yes; then
7a197a62 9477 case " $LIBOBJS " in
8a2fc586 9478 *" lstat.$ac_objext "* ) ;;
7a197a62
AK
9479 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
9480 ;;
8a2fc586
AK
9481esac
9482
ad6254c5
AK
9483
9484cat >>confdefs.h <<_ACEOF
9485#define HAVE_LSTAT_EMPTY_STRING_BUG 1
9486_ACEOF
9487
9488fi
9489
9490
9491for ac_header in stdlib.h
9492do
ec6a6fbe 9493as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 9494if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
9495 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9496$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 9497if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 9498 $as_echo_n "(cached) " >&6
ad6254c5 9499fi
ec6a6fbe
AK
9500ac_res=`eval 'as_val=${'$as_ac_Header'}
9501 $as_echo "$as_val"'`
9502 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9503$as_echo "$ac_res" >&6; }
ad6254c5
AK
9504else
9505 # Is the header compilable?
ec6a6fbe
AK
9506{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9507$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 9508cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9509/* confdefs.h. */
9510_ACEOF
9511cat confdefs.h >>conftest.$ac_ext
9512cat >>conftest.$ac_ext <<_ACEOF
9513/* end confdefs.h. */
9514$ac_includes_default
9515#include <$ac_header>
9516_ACEOF
9517rm -f conftest.$ac_objext
7a197a62
AK
9518if { (ac_try="$ac_compile"
9519case "(($ac_try" in
9520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9521 *) ac_try_echo=$ac_try;;
9522esac
ec6a6fbe
AK
9523eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9524$as_echo "$ac_try_echo") >&5
7a197a62 9525 (eval "$ac_compile") 2>conftest.er1
ad6254c5 9526 ac_status=$?
8a2fc586
AK
9527 grep -v '^ *+' conftest.er1 >conftest.err
9528 rm -f conftest.er1
9529 cat conftest.err >&5
ec6a6fbe 9530 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9531 (exit $ac_status); } && {
9532 test -z "$ac_c_werror_flag" ||
9533 test ! -s conftest.err
9534 } && test -s conftest.$ac_objext; then
ad6254c5
AK
9535 ac_header_compiler=yes
9536else
ec6a6fbe 9537 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
9538sed 's/^/| /' conftest.$ac_ext >&5
9539
7a197a62 9540 ac_header_compiler=no
ad6254c5 9541fi
7a197a62
AK
9542
9543rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
9544{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9545$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
9546
9547# Is the header present?
ec6a6fbe
AK
9548{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9549$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 9550cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9551/* confdefs.h. */
9552_ACEOF
9553cat confdefs.h >>conftest.$ac_ext
9554cat >>conftest.$ac_ext <<_ACEOF
9555/* end confdefs.h. */
9556#include <$ac_header>
9557_ACEOF
7a197a62
AK
9558if { (ac_try="$ac_cpp conftest.$ac_ext"
9559case "(($ac_try" in
9560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9561 *) ac_try_echo=$ac_try;;
9562esac
ec6a6fbe
AK
9563eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9564$as_echo "$ac_try_echo") >&5
7a197a62 9565 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
9566 ac_status=$?
9567 grep -v '^ *+' conftest.er1 >conftest.err
9568 rm -f conftest.er1
9569 cat conftest.err >&5
ec6a6fbe 9570 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9571 (exit $ac_status); } >/dev/null && {
9572 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9573 test ! -s conftest.err
9574 }; then
ad6254c5
AK
9575 ac_header_preproc=yes
9576else
ec6a6fbe 9577 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
9578sed 's/^/| /' conftest.$ac_ext >&5
9579
9580 ac_header_preproc=no
9581fi
7a197a62 9582
ad6254c5 9583rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
9584{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9585$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
9586
9587# So? What about this header?
8a2fc586
AK
9588case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9589 yes:no: )
ec6a6fbe
AK
9590 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9591$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9592 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9593$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 9594 ac_header_preproc=yes
ad6254c5 9595 ;;
8a2fc586 9596 no:yes:* )
ec6a6fbe
AK
9597 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9598$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9599 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9600$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9601 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9602$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9603 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9604$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9605 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9606$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9607 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9608$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 9609
ad6254c5
AK
9610 ;;
9611esac
ec6a6fbe
AK
9612{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9613$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 9614if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 9615 $as_echo_n "(cached) " >&6
ad6254c5 9616else
8a2fc586 9617 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 9618fi
ec6a6fbe
AK
9619ac_res=`eval 'as_val=${'$as_ac_Header'}
9620 $as_echo "$as_val"'`
9621 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9622$as_echo "$ac_res" >&6; }
ad6254c5
AK
9623
9624fi
ec6a6fbe
AK
9625as_val=`eval 'as_val=${'$as_ac_Header'}
9626 $as_echo "$as_val"'`
9627 if test "x$as_val" = x""yes; then
ad6254c5 9628 cat >>confdefs.h <<_ACEOF
ec6a6fbe 9629#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
9630_ACEOF
9631
9632fi
9633
9634done
9635
ec6a6fbe
AK
9636{ $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
9637$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
ad6254c5 9638if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
ec6a6fbe 9639 $as_echo_n "(cached) " >&6
ad6254c5
AK
9640else
9641 if test "$cross_compiling" = yes; then
9642 ac_cv_func_malloc_0_nonnull=no
9643else
9644 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9645/* confdefs.h. */
9646_ACEOF
9647cat confdefs.h >>conftest.$ac_ext
9648cat >>conftest.$ac_ext <<_ACEOF
9649/* end confdefs.h. */
25fbec5b 9650#if defined STDC_HEADERS || defined HAVE_STDLIB_H
ad6254c5
AK
9651# include <stdlib.h>
9652#else
9653char *malloc ();
9654#endif
9655
9656int
9657main ()
9658{
7a197a62 9659return ! malloc (0);
ad6254c5
AK
9660 ;
9661 return 0;
9662}
9663_ACEOF
9664rm -f conftest$ac_exeext
7a197a62
AK
9665if { (ac_try="$ac_link"
9666case "(($ac_try" in
9667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9668 *) ac_try_echo=$ac_try;;
9669esac
ec6a6fbe
AK
9670eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9671$as_echo "$ac_try_echo") >&5
7a197a62 9672 (eval "$ac_link") 2>&5
ad6254c5 9673 ac_status=$?
ec6a6fbe 9674 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 9675 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
9676 { (case "(($ac_try" in
9677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9678 *) ac_try_echo=$ac_try;;
9679esac
ec6a6fbe
AK
9680eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9681$as_echo "$ac_try_echo") >&5
7a197a62 9682 (eval "$ac_try") 2>&5
ad6254c5 9683 ac_status=$?
ec6a6fbe 9684 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
9685 (exit $ac_status); }; }; then
9686 ac_cv_func_malloc_0_nonnull=yes
9687else
ec6a6fbe
AK
9688 $as_echo "$as_me: program exited with status $ac_status" >&5
9689$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
9690sed 's/^/| /' conftest.$ac_ext >&5
9691
9692( exit $ac_status )
9693ac_cv_func_malloc_0_nonnull=no
9694fi
ec6a6fbe 9695rm -rf conftest.dSYM
7a197a62 9696rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 9697fi
7a197a62
AK
9698
9699
ad6254c5 9700fi
ec6a6fbe
AK
9701{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
9702$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
ad6254c5
AK
9703if test $ac_cv_func_malloc_0_nonnull = yes; then
9704
9705cat >>confdefs.h <<\_ACEOF
9706#define HAVE_MALLOC 1
9707_ACEOF
9708
9709else
9710 cat >>confdefs.h <<\_ACEOF
9711#define HAVE_MALLOC 0
9712_ACEOF
9713
7a197a62 9714 case " $LIBOBJS " in
8a2fc586 9715 *" malloc.$ac_objext "* ) ;;
7a197a62
AK
9716 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
9717 ;;
8a2fc586
AK
9718esac
9719
ad6254c5
AK
9720
9721cat >>confdefs.h <<\_ACEOF
9722#define malloc rpl_malloc
9723_ACEOF
9724
9725fi
9726
9727
9728
ec6a6fbe
AK
9729{ $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
9730$as_echo_n "checking for working memcmp... " >&6; }
ad6254c5 9731if test "${ac_cv_func_memcmp_working+set}" = set; then
ec6a6fbe 9732 $as_echo_n "(cached) " >&6
ad6254c5
AK
9733else
9734 if test "$cross_compiling" = yes; then
9735 ac_cv_func_memcmp_working=no
9736else
9737 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9738/* confdefs.h. */
9739_ACEOF
9740cat confdefs.h >>conftest.$ac_ext
9741cat >>conftest.$ac_ext <<_ACEOF
9742/* end confdefs.h. */
8a2fc586 9743$ac_includes_default
ad6254c5
AK
9744int
9745main ()
9746{
9747
9748 /* Some versions of memcmp are not 8-bit clean. */
7a197a62 9749 char c0 = '\100', c1 = '\200', c2 = '\201';
ad6254c5 9750 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
7a197a62 9751 return 1;
ad6254c5
AK
9752
9753 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
9754 or more and with at least one buffer not starting on a 4-byte boundary.
9755 William Lewis provided this test program. */
9756 {
9757 char foo[21];
9758 char bar[21];
9759 int i;
9760 for (i = 0; i < 4; i++)
9761 {
8a2fc586
AK
9762 char *a = foo + i;
9763 char *b = bar + i;
9764 strcpy (a, "--------01111111");
9765 strcpy (b, "--------10000000");
9766 if (memcmp (a, b, 16) >= 0)
7a197a62 9767 return 1;
ad6254c5 9768 }
7a197a62 9769 return 0;
ad6254c5
AK
9770 }
9771
9772 ;
9773 return 0;
9774}
9775_ACEOF
9776rm -f conftest$ac_exeext
7a197a62
AK
9777if { (ac_try="$ac_link"
9778case "(($ac_try" in
9779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9780 *) ac_try_echo=$ac_try;;
9781esac
ec6a6fbe
AK
9782eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9783$as_echo "$ac_try_echo") >&5
7a197a62 9784 (eval "$ac_link") 2>&5
ad6254c5 9785 ac_status=$?
ec6a6fbe 9786 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 9787 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
9788 { (case "(($ac_try" in
9789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9790 *) ac_try_echo=$ac_try;;
9791esac
ec6a6fbe
AK
9792eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9793$as_echo "$ac_try_echo") >&5
7a197a62 9794 (eval "$ac_try") 2>&5
ad6254c5 9795 ac_status=$?
ec6a6fbe 9796 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
9797 (exit $ac_status); }; }; then
9798 ac_cv_func_memcmp_working=yes
9799else
ec6a6fbe
AK
9800 $as_echo "$as_me: program exited with status $ac_status" >&5
9801$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
9802sed 's/^/| /' conftest.$ac_ext >&5
9803
9804( exit $ac_status )
9805ac_cv_func_memcmp_working=no
9806fi
ec6a6fbe 9807rm -rf conftest.dSYM
7a197a62 9808rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 9809fi
7a197a62
AK
9810
9811
ad6254c5 9812fi
ec6a6fbe
AK
9813{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
9814$as_echo "$ac_cv_func_memcmp_working" >&6; }
7a197a62 9815test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
8a2fc586 9816 *" memcmp.$ac_objext "* ) ;;
7a197a62
AK
9817 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
9818 ;;
8a2fc586
AK
9819esac
9820
ad6254c5
AK
9821
9822
9823
9824for ac_header in stdlib.h unistd.h
9825do
ec6a6fbe 9826as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 9827if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
9828 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9829$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 9830if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 9831 $as_echo_n "(cached) " >&6
ad6254c5 9832fi
ec6a6fbe
AK
9833ac_res=`eval 'as_val=${'$as_ac_Header'}
9834 $as_echo "$as_val"'`
9835 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9836$as_echo "$ac_res" >&6; }
ad6254c5
AK
9837else
9838 # Is the header compilable?
ec6a6fbe
AK
9839{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9840$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 9841cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9842/* confdefs.h. */
9843_ACEOF
9844cat confdefs.h >>conftest.$ac_ext
9845cat >>conftest.$ac_ext <<_ACEOF
9846/* end confdefs.h. */
9847$ac_includes_default
9848#include <$ac_header>
9849_ACEOF
9850rm -f conftest.$ac_objext
7a197a62
AK
9851if { (ac_try="$ac_compile"
9852case "(($ac_try" in
9853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9854 *) ac_try_echo=$ac_try;;
9855esac
ec6a6fbe
AK
9856eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9857$as_echo "$ac_try_echo") >&5
7a197a62 9858 (eval "$ac_compile") 2>conftest.er1
ad6254c5 9859 ac_status=$?
8a2fc586
AK
9860 grep -v '^ *+' conftest.er1 >conftest.err
9861 rm -f conftest.er1
9862 cat conftest.err >&5
ec6a6fbe 9863 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9864 (exit $ac_status); } && {
9865 test -z "$ac_c_werror_flag" ||
9866 test ! -s conftest.err
9867 } && test -s conftest.$ac_objext; then
ad6254c5
AK
9868 ac_header_compiler=yes
9869else
ec6a6fbe 9870 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
9871sed 's/^/| /' conftest.$ac_ext >&5
9872
7a197a62 9873 ac_header_compiler=no
ad6254c5 9874fi
7a197a62
AK
9875
9876rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
9877{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9878$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
9879
9880# Is the header present?
ec6a6fbe
AK
9881{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9882$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 9883cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9884/* confdefs.h. */
9885_ACEOF
9886cat confdefs.h >>conftest.$ac_ext
9887cat >>conftest.$ac_ext <<_ACEOF
9888/* end confdefs.h. */
9889#include <$ac_header>
9890_ACEOF
7a197a62
AK
9891if { (ac_try="$ac_cpp conftest.$ac_ext"
9892case "(($ac_try" in
9893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9894 *) ac_try_echo=$ac_try;;
9895esac
ec6a6fbe
AK
9896eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9897$as_echo "$ac_try_echo") >&5
7a197a62 9898 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
9899 ac_status=$?
9900 grep -v '^ *+' conftest.er1 >conftest.err
9901 rm -f conftest.er1
9902 cat conftest.err >&5
ec6a6fbe 9903 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9904 (exit $ac_status); } >/dev/null && {
9905 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9906 test ! -s conftest.err
9907 }; then
ad6254c5
AK
9908 ac_header_preproc=yes
9909else
ec6a6fbe 9910 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
9911sed 's/^/| /' conftest.$ac_ext >&5
9912
9913 ac_header_preproc=no
9914fi
7a197a62 9915
ad6254c5 9916rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
9917{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9918$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
9919
9920# So? What about this header?
8a2fc586
AK
9921case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9922 yes:no: )
ec6a6fbe
AK
9923 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9924$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9925 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9926$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 9927 ac_header_preproc=yes
ad6254c5 9928 ;;
8a2fc586 9929 no:yes:* )
ec6a6fbe
AK
9930 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9931$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9932 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9933$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9934 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9935$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9936 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9937$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9938 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9939$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9940 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9941$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 9942
ad6254c5
AK
9943 ;;
9944esac
ec6a6fbe
AK
9945{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9946$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 9947if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 9948 $as_echo_n "(cached) " >&6
ad6254c5 9949else
8a2fc586 9950 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 9951fi
ec6a6fbe
AK
9952ac_res=`eval 'as_val=${'$as_ac_Header'}
9953 $as_echo "$as_val"'`
9954 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9955$as_echo "$ac_res" >&6; }
ad6254c5
AK
9956
9957fi
ec6a6fbe
AK
9958as_val=`eval 'as_val=${'$as_ac_Header'}
9959 $as_echo "$as_val"'`
9960 if test "x$as_val" = x""yes; then
ad6254c5 9961 cat >>confdefs.h <<_ACEOF
ec6a6fbe 9962#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
9963_ACEOF
9964
9965fi
9966
9967done
9968
9969
9970for ac_func in getpagesize
9971do
ec6a6fbe
AK
9972as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9973{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
9974$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 9975if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 9976 $as_echo_n "(cached) " >&6
ad6254c5
AK
9977else
9978 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9979/* confdefs.h. */
9980_ACEOF
9981cat confdefs.h >>conftest.$ac_ext
9982cat >>conftest.$ac_ext <<_ACEOF
9983/* end confdefs.h. */
8a2fc586
AK
9984/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9985 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9986#define $ac_func innocuous_$ac_func
9987
ad6254c5
AK
9988/* System header to define __stub macros and hopefully few prototypes,
9989 which can conflict with char $ac_func (); below.
9990 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9991 <limits.h> exists even on freestanding compilers. */
8a2fc586 9992
ad6254c5
AK
9993#ifdef __STDC__
9994# include <limits.h>
9995#else
9996# include <assert.h>
9997#endif
8a2fc586
AK
9998
9999#undef $ac_func
10000
7a197a62
AK
10001/* Override any GCC internal prototype to avoid an error.
10002 Use char because int might match the return type of a GCC
10003 builtin and then its argument prototype would still apply. */
ad6254c5
AK
10004#ifdef __cplusplus
10005extern "C"
ad6254c5 10006#endif
ad6254c5
AK
10007char $ac_func ();
10008/* The GNU C library defines this for functions which it implements
10009 to always fail with ENOSYS. Some functions are actually named
10010 something starting with __ and the normal name is an alias. */
7a197a62 10011#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 10012choke me
ad6254c5
AK
10013#endif
10014
10015int
10016main ()
10017{
7a197a62 10018return $ac_func ();
ad6254c5
AK
10019 ;
10020 return 0;
10021}
10022_ACEOF
10023rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
10024if { (ac_try="$ac_link"
10025case "(($ac_try" in
10026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10027 *) ac_try_echo=$ac_try;;
10028esac
ec6a6fbe
AK
10029eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10030$as_echo "$ac_try_echo") >&5
7a197a62 10031 (eval "$ac_link") 2>conftest.er1
ad6254c5 10032 ac_status=$?
8a2fc586
AK
10033 grep -v '^ *+' conftest.er1 >conftest.err
10034 rm -f conftest.er1
10035 cat conftest.err >&5
ec6a6fbe 10036 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10037 (exit $ac_status); } && {
10038 test -z "$ac_c_werror_flag" ||
10039 test ! -s conftest.err
ec6a6fbe
AK
10040 } && test -s conftest$ac_exeext && {
10041 test "$cross_compiling" = yes ||
10042 $as_test_x conftest$ac_exeext
10043 }; then
ad6254c5
AK
10044 eval "$as_ac_var=yes"
10045else
ec6a6fbe 10046 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10047sed 's/^/| /' conftest.$ac_ext >&5
10048
7a197a62 10049 eval "$as_ac_var=no"
ad6254c5 10050fi
7a197a62 10051
ec6a6fbe 10052rm -rf conftest.dSYM
25fbec5b 10053rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 10054 conftest$ac_exeext conftest.$ac_ext
ad6254c5 10055fi
ec6a6fbe
AK
10056ac_res=`eval 'as_val=${'$as_ac_var'}
10057 $as_echo "$as_val"'`
10058 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10059$as_echo "$ac_res" >&6; }
10060as_val=`eval 'as_val=${'$as_ac_var'}
10061 $as_echo "$as_val"'`
10062 if test "x$as_val" = x""yes; then
ad6254c5 10063 cat >>confdefs.h <<_ACEOF
ec6a6fbe 10064#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
10065_ACEOF
10066
10067fi
10068done
10069
ec6a6fbe
AK
10070{ $as_echo "$as_me:$LINENO: checking for working mmap" >&5
10071$as_echo_n "checking for working mmap... " >&6; }
ad6254c5 10072if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
ec6a6fbe 10073 $as_echo_n "(cached) " >&6
ad6254c5
AK
10074else
10075 if test "$cross_compiling" = yes; then
10076 ac_cv_func_mmap_fixed_mapped=no
10077else
10078 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10079/* confdefs.h. */
10080_ACEOF
10081cat confdefs.h >>conftest.$ac_ext
10082cat >>conftest.$ac_ext <<_ACEOF
10083/* end confdefs.h. */
10084$ac_includes_default
10085/* malloc might have been renamed as rpl_malloc. */
10086#undef malloc
10087
10088/* Thanks to Mike Haertel and Jim Avera for this test.
10089 Here is a matrix of mmap possibilities:
10090 mmap private not fixed
10091 mmap private fixed at somewhere currently unmapped
10092 mmap private fixed at somewhere already mapped
10093 mmap shared not fixed
10094 mmap shared fixed at somewhere currently unmapped
10095 mmap shared fixed at somewhere already mapped
10096 For private mappings, we should verify that changes cannot be read()
10097 back from the file, nor mmap's back from the file at a different
10098 address. (There have been systems where private was not correctly
10099 implemented like the infamous i386 svr4.0, and systems where the
10100 VM page cache was not coherent with the file system buffer cache
10101 like early versions of FreeBSD and possibly contemporary NetBSD.)
10102 For shared mappings, we should conversely verify that changes get
10103 propagated back to all the places they're supposed to be.
10104
10105 Grep wants private fixed already mapped.
10106 The main things grep needs to know about mmap are:
10107 * does it exist and is it safe to write into the mmap'd area
10108 * how to use it (BSD variants) */
10109
10110#include <fcntl.h>
10111#include <sys/mman.h>
10112
25fbec5b 10113#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
ad6254c5
AK
10114char *malloc ();
10115#endif
10116
10117/* This mess was copied from the GNU getpagesize.h. */
25fbec5b 10118#ifndef HAVE_GETPAGESIZE
ad6254c5 10119/* Assume that all systems that can run configure have sys/param.h. */
25fbec5b 10120# ifndef HAVE_SYS_PARAM_H
ad6254c5
AK
10121# define HAVE_SYS_PARAM_H 1
10122# endif
10123
10124# ifdef _SC_PAGESIZE
10125# define getpagesize() sysconf(_SC_PAGESIZE)
10126# else /* no _SC_PAGESIZE */
25fbec5b 10127# ifdef HAVE_SYS_PARAM_H
ad6254c5
AK
10128# include <sys/param.h>
10129# ifdef EXEC_PAGESIZE
10130# define getpagesize() EXEC_PAGESIZE
10131# else /* no EXEC_PAGESIZE */
10132# ifdef NBPG
10133# define getpagesize() NBPG * CLSIZE
10134# ifndef CLSIZE
10135# define CLSIZE 1
10136# endif /* no CLSIZE */
10137# else /* no NBPG */
10138# ifdef NBPC
10139# define getpagesize() NBPC
10140# else /* no NBPC */
10141# ifdef PAGESIZE
10142# define getpagesize() PAGESIZE
10143# endif /* PAGESIZE */
10144# endif /* no NBPC */
10145# endif /* no NBPG */
10146# endif /* no EXEC_PAGESIZE */
10147# else /* no HAVE_SYS_PARAM_H */
10148# define getpagesize() 8192 /* punt totally */
10149# endif /* no HAVE_SYS_PARAM_H */
10150# endif /* no _SC_PAGESIZE */
10151
10152#endif /* no HAVE_GETPAGESIZE */
10153
10154int
10155main ()
10156{
10157 char *data, *data2, *data3;
10158 int i, pagesize;
10159 int fd;
10160
10161 pagesize = getpagesize ();
10162
10163 /* First, make a file with some known garbage in it. */
10164 data = (char *) malloc (pagesize);
10165 if (!data)
7a197a62 10166 return 1;
ad6254c5
AK
10167 for (i = 0; i < pagesize; ++i)
10168 *(data + i) = rand ();
10169 umask (0);
10170 fd = creat ("conftest.mmap", 0600);
10171 if (fd < 0)
7a197a62 10172 return 1;
ad6254c5 10173 if (write (fd, data, pagesize) != pagesize)
7a197a62 10174 return 1;
ad6254c5
AK
10175 close (fd);
10176
10177 /* Next, try to mmap the file at a fixed address which already has
10178 something else allocated at it. If we can, also make sure that
10179 we see the same garbage. */
10180 fd = open ("conftest.mmap", O_RDWR);
10181 if (fd < 0)
7a197a62 10182 return 1;
ad6254c5
AK
10183 data2 = (char *) malloc (2 * pagesize);
10184 if (!data2)
7a197a62
AK
10185 return 1;
10186 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
ad6254c5 10187 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8a2fc586 10188 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7a197a62 10189 return 1;
ad6254c5
AK
10190 for (i = 0; i < pagesize; ++i)
10191 if (*(data + i) != *(data2 + i))
7a197a62 10192 return 1;
ad6254c5 10193
d911ec67
AK
10194 /* Finally, make sure that changes to the mapped area do not
10195 percolate back to the file as seen by read(). (This is a bug on
10196 some variants of i386 svr4.0.) */
10197 for (i = 0; i < pagesize; ++i)
10198 *(data2 + i) = *(data2 + i) + 1;
10199 data3 = (char *) malloc (pagesize);
10200 if (!data3)
10201 return 1;
10202 if (read (fd, data3, pagesize) != pagesize)
10203 return 1;
10204 for (i = 0; i < pagesize; ++i)
10205 if (*(data + i) != *(data3 + i))
10206 return 1;
10207 close (fd);
10208 return 0;
10209}
10210_ACEOF
10211rm -f conftest$ac_exeext
10212if { (ac_try="$ac_link"
10213case "(($ac_try" in
10214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10215 *) ac_try_echo=$ac_try;;
10216esac
10217eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10218$as_echo "$ac_try_echo") >&5
10219 (eval "$ac_link") 2>&5
10220 ac_status=$?
10221 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10222 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10223 { (case "(($ac_try" in
10224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10225 *) ac_try_echo=$ac_try;;
10226esac
10227eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10228$as_echo "$ac_try_echo") >&5
10229 (eval "$ac_try") 2>&5
10230 ac_status=$?
10231 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10232 (exit $ac_status); }; }; then
10233 ac_cv_func_mmap_fixed_mapped=yes
10234else
10235 $as_echo "$as_me: program exited with status $ac_status" >&5
10236$as_echo "$as_me: failed program was:" >&5
10237sed 's/^/| /' conftest.$ac_ext >&5
10238
10239( exit $ac_status )
10240ac_cv_func_mmap_fixed_mapped=no
10241fi
10242rm -rf conftest.dSYM
10243rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10244fi
10245
10246
10247fi
10248{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10249$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10250if test $ac_cv_func_mmap_fixed_mapped = yes; then
10251
10252cat >>confdefs.h <<\_ACEOF
10253#define HAVE_MMAP 1
10254_ACEOF
10255
10256fi
10257rm -f conftest.mmap
10258
10259
10260for ac_header in stdlib.h
10261do
10262as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10263if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10264 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10265$as_echo_n "checking for $ac_header... " >&6; }
10266if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10267 $as_echo_n "(cached) " >&6
10268fi
10269ac_res=`eval 'as_val=${'$as_ac_Header'}
10270 $as_echo "$as_val"'`
10271 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10272$as_echo "$ac_res" >&6; }
10273else
10274 # Is the header compilable?
10275{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10276$as_echo_n "checking $ac_header usability... " >&6; }
10277cat >conftest.$ac_ext <<_ACEOF
10278/* confdefs.h. */
10279_ACEOF
10280cat confdefs.h >>conftest.$ac_ext
10281cat >>conftest.$ac_ext <<_ACEOF
10282/* end confdefs.h. */
10283$ac_includes_default
10284#include <$ac_header>
10285_ACEOF
10286rm -f conftest.$ac_objext
10287if { (ac_try="$ac_compile"
10288case "(($ac_try" in
10289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10290 *) ac_try_echo=$ac_try;;
10291esac
10292eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10293$as_echo "$ac_try_echo") >&5
10294 (eval "$ac_compile") 2>conftest.er1
10295 ac_status=$?
10296 grep -v '^ *+' conftest.er1 >conftest.err
10297 rm -f conftest.er1
10298 cat conftest.err >&5
10299 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10300 (exit $ac_status); } && {
10301 test -z "$ac_c_werror_flag" ||
10302 test ! -s conftest.err
10303 } && test -s conftest.$ac_objext; then
10304 ac_header_compiler=yes
10305else
10306 $as_echo "$as_me: failed program was:" >&5
10307sed 's/^/| /' conftest.$ac_ext >&5
10308
10309 ac_header_compiler=no
10310fi
10311
10312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10313{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10314$as_echo "$ac_header_compiler" >&6; }
10315
10316# Is the header present?
10317{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10318$as_echo_n "checking $ac_header presence... " >&6; }
10319cat >conftest.$ac_ext <<_ACEOF
10320/* confdefs.h. */
10321_ACEOF
10322cat confdefs.h >>conftest.$ac_ext
10323cat >>conftest.$ac_ext <<_ACEOF
10324/* end confdefs.h. */
10325#include <$ac_header>
10326_ACEOF
10327if { (ac_try="$ac_cpp conftest.$ac_ext"
10328case "(($ac_try" in
10329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10330 *) ac_try_echo=$ac_try;;
10331esac
10332eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10333$as_echo "$ac_try_echo") >&5
10334 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10335 ac_status=$?
10336 grep -v '^ *+' conftest.er1 >conftest.err
10337 rm -f conftest.er1
10338 cat conftest.err >&5
10339 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10340 (exit $ac_status); } >/dev/null && {
10341 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10342 test ! -s conftest.err
10343 }; then
10344 ac_header_preproc=yes
10345else
10346 $as_echo "$as_me: failed program was:" >&5
10347sed 's/^/| /' conftest.$ac_ext >&5
10348
10349 ac_header_preproc=no
10350fi
10351
10352rm -f conftest.err conftest.$ac_ext
10353{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10354$as_echo "$ac_header_preproc" >&6; }
10355
10356# So? What about this header?
10357case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10358 yes:no: )
10359 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10360$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10361 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10362$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10363 ac_header_preproc=yes
10364 ;;
10365 no:yes:* )
10366 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10367$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10368 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10369$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10370 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10371$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10372 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10373$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10374 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10375$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10376 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10377$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10378
10379 ;;
10380esac
10381{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10382$as_echo_n "checking for $ac_header... " >&6; }
10383if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10384 $as_echo_n "(cached) " >&6
10385else
10386 eval "$as_ac_Header=\$ac_header_preproc"
10387fi
10388ac_res=`eval 'as_val=${'$as_ac_Header'}
10389 $as_echo "$as_val"'`
10390 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10391$as_echo "$ac_res" >&6; }
10392
10393fi
10394as_val=`eval 'as_val=${'$as_ac_Header'}
10395 $as_echo "$as_val"'`
10396 if test "x$as_val" = x""yes; then
10397 cat >>confdefs.h <<_ACEOF
10398#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10399_ACEOF
10400
10401fi
10402
10403done
10404
10405{ $as_echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
10406$as_echo_n "checking for GNU libc compatible realloc... " >&6; }
10407if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
10408 $as_echo_n "(cached) " >&6
10409else
10410 if test "$cross_compiling" = yes; then
10411 ac_cv_func_realloc_0_nonnull=no
10412else
10413 cat >conftest.$ac_ext <<_ACEOF
10414/* confdefs.h. */
10415_ACEOF
10416cat confdefs.h >>conftest.$ac_ext
10417cat >>conftest.$ac_ext <<_ACEOF
10418/* end confdefs.h. */
10419#if defined STDC_HEADERS || defined HAVE_STDLIB_H
10420# include <stdlib.h>
10421#else
10422char *realloc ();
10423#endif
10424
10425int
10426main ()
10427{
10428return ! realloc (0, 0);
10429 ;
7a197a62 10430 return 0;
ad6254c5
AK
10431}
10432_ACEOF
10433rm -f conftest$ac_exeext
7a197a62
AK
10434if { (ac_try="$ac_link"
10435case "(($ac_try" in
10436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10437 *) ac_try_echo=$ac_try;;
10438esac
ec6a6fbe
AK
10439eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10440$as_echo "$ac_try_echo") >&5
7a197a62 10441 (eval "$ac_link") 2>&5
ad6254c5 10442 ac_status=$?
ec6a6fbe 10443 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 10444 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
10445 { (case "(($ac_try" in
10446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10447 *) ac_try_echo=$ac_try;;
10448esac
ec6a6fbe
AK
10449eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10450$as_echo "$ac_try_echo") >&5
7a197a62 10451 (eval "$ac_try") 2>&5
ad6254c5 10452 ac_status=$?
ec6a6fbe 10453 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 10454 (exit $ac_status); }; }; then
d911ec67 10455 ac_cv_func_realloc_0_nonnull=yes
ad6254c5 10456else
ec6a6fbe
AK
10457 $as_echo "$as_me: program exited with status $ac_status" >&5
10458$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10459sed 's/^/| /' conftest.$ac_ext >&5
10460
10461( exit $ac_status )
d911ec67 10462ac_cv_func_realloc_0_nonnull=no
ad6254c5 10463fi
ec6a6fbe 10464rm -rf conftest.dSYM
7a197a62 10465rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 10466fi
7a197a62
AK
10467
10468
ad6254c5 10469fi
d911ec67
AK
10470{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
10471$as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
10472if test $ac_cv_func_realloc_0_nonnull = yes; then
ad6254c5
AK
10473
10474cat >>confdefs.h <<\_ACEOF
d911ec67
AK
10475#define HAVE_REALLOC 1
10476_ACEOF
10477
10478else
10479 cat >>confdefs.h <<\_ACEOF
10480#define HAVE_REALLOC 0
10481_ACEOF
10482
10483 case " $LIBOBJS " in
10484 *" realloc.$ac_objext "* ) ;;
10485 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
10486 ;;
10487esac
10488
10489
10490cat >>confdefs.h <<\_ACEOF
10491#define realloc rpl_realloc
ad6254c5
AK
10492_ACEOF
10493
10494fi
d911ec67
AK
10495
10496
ad6254c5 10497
ec6a6fbe
AK
10498{ $as_echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
10499$as_echo_n "checking whether stat accepts an empty string... " >&6; }
ad6254c5 10500if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
ec6a6fbe 10501 $as_echo_n "(cached) " >&6
ad6254c5
AK
10502else
10503 if test "$cross_compiling" = yes; then
10504 ac_cv_func_stat_empty_string_bug=yes
10505else
10506 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10507/* confdefs.h. */
10508_ACEOF
10509cat confdefs.h >>conftest.$ac_ext
10510cat >>conftest.$ac_ext <<_ACEOF
10511/* end confdefs.h. */
10512$ac_includes_default
10513int
10514main ()
10515{
10516struct stat sbuf;
7a197a62 10517 return stat ("", &sbuf) == 0;
ad6254c5
AK
10518 ;
10519 return 0;
10520}
10521_ACEOF
10522rm -f conftest$ac_exeext
7a197a62
AK
10523if { (ac_try="$ac_link"
10524case "(($ac_try" in
10525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10526 *) ac_try_echo=$ac_try;;
10527esac
ec6a6fbe
AK
10528eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10529$as_echo "$ac_try_echo") >&5
7a197a62 10530 (eval "$ac_link") 2>&5
ad6254c5 10531 ac_status=$?
ec6a6fbe 10532 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 10533 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
10534 { (case "(($ac_try" in
10535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10536 *) ac_try_echo=$ac_try;;
10537esac
ec6a6fbe
AK
10538eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10539$as_echo "$ac_try_echo") >&5
7a197a62 10540 (eval "$ac_try") 2>&5
ad6254c5 10541 ac_status=$?
ec6a6fbe 10542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 10543 (exit $ac_status); }; }; then
7a197a62 10544 ac_cv_func_stat_empty_string_bug=no
ad6254c5 10545else
ec6a6fbe
AK
10546 $as_echo "$as_me: program exited with status $ac_status" >&5
10547$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10548sed 's/^/| /' conftest.$ac_ext >&5
10549
10550( exit $ac_status )
7a197a62 10551ac_cv_func_stat_empty_string_bug=yes
ad6254c5 10552fi
ec6a6fbe 10553rm -rf conftest.dSYM
7a197a62 10554rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 10555fi
7a197a62
AK
10556
10557
ad6254c5 10558fi
ec6a6fbe
AK
10559{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
10560$as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
ad6254c5 10561if test $ac_cv_func_stat_empty_string_bug = yes; then
7a197a62 10562 case " $LIBOBJS " in
8a2fc586 10563 *" stat.$ac_objext "* ) ;;
7a197a62
AK
10564 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
10565 ;;
8a2fc586
AK
10566esac
10567
ad6254c5
AK
10568
10569cat >>confdefs.h <<_ACEOF
10570#define HAVE_STAT_EMPTY_STRING_BUG 1
10571_ACEOF
10572
10573fi
10574
ec6a6fbe
AK
10575{ $as_echo "$as_me:$LINENO: checking for working strtod" >&5
10576$as_echo_n "checking for working strtod... " >&6; }
ad6254c5 10577if test "${ac_cv_func_strtod+set}" = set; then
ec6a6fbe 10578 $as_echo_n "(cached) " >&6
ad6254c5
AK
10579else
10580 if test "$cross_compiling" = yes; then
10581 ac_cv_func_strtod=no
10582else
10583 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10584/* confdefs.h. */
10585_ACEOF
10586cat confdefs.h >>conftest.$ac_ext
10587cat >>conftest.$ac_ext <<_ACEOF
10588/* end confdefs.h. */
10589
7a197a62
AK
10590$ac_includes_default
10591#ifndef strtod
ad6254c5 10592double strtod ();
7a197a62 10593#endif
ad6254c5
AK
10594int
10595main()
10596{
10597 {
10598 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
10599 char *string = " +69";
10600 char *term;
10601 double value;
10602 value = strtod (string, &term);
10603 if (value != 69 || term != (string + 4))
7a197a62 10604 return 1;
ad6254c5
AK
10605 }
10606
10607 {
10608 /* Under Solaris 2.4, strtod returns the wrong value for the
10609 terminating character under some conditions. */
10610 char *string = "NaN";
10611 char *term;
10612 strtod (string, &term);
10613 if (term != string && *(term - 1) == 0)
7a197a62 10614 return 1;
ad6254c5 10615 }
7a197a62 10616 return 0;
ad6254c5
AK
10617}
10618
10619_ACEOF
10620rm -f conftest$ac_exeext
7a197a62
AK
10621if { (ac_try="$ac_link"
10622case "(($ac_try" in
10623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10624 *) ac_try_echo=$ac_try;;
10625esac
ec6a6fbe
AK
10626eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10627$as_echo "$ac_try_echo") >&5
7a197a62 10628 (eval "$ac_link") 2>&5
ad6254c5 10629 ac_status=$?
ec6a6fbe 10630 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 10631 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
10632 { (case "(($ac_try" in
10633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10634 *) ac_try_echo=$ac_try;;
10635esac
ec6a6fbe
AK
10636eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10637$as_echo "$ac_try_echo") >&5
7a197a62 10638 (eval "$ac_try") 2>&5
ad6254c5 10639 ac_status=$?
ec6a6fbe 10640 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
10641 (exit $ac_status); }; }; then
10642 ac_cv_func_strtod=yes
10643else
ec6a6fbe
AK
10644 $as_echo "$as_me: program exited with status $ac_status" >&5
10645$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10646sed 's/^/| /' conftest.$ac_ext >&5
10647
10648( exit $ac_status )
10649ac_cv_func_strtod=no
10650fi
ec6a6fbe 10651rm -rf conftest.dSYM
7a197a62 10652rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 10653fi
7a197a62
AK
10654
10655
ad6254c5 10656fi
ec6a6fbe
AK
10657{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
10658$as_echo "$ac_cv_func_strtod" >&6; }
ad6254c5 10659if test $ac_cv_func_strtod = no; then
7a197a62 10660 case " $LIBOBJS " in
8a2fc586 10661 *" strtod.$ac_objext "* ) ;;
7a197a62
AK
10662 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
10663 ;;
8a2fc586
AK
10664esac
10665
ec6a6fbe
AK
10666{ $as_echo "$as_me:$LINENO: checking for pow" >&5
10667$as_echo_n "checking for pow... " >&6; }
ad6254c5 10668if test "${ac_cv_func_pow+set}" = set; then
ec6a6fbe 10669 $as_echo_n "(cached) " >&6
ad6254c5
AK
10670else
10671 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10672/* confdefs.h. */
10673_ACEOF
10674cat confdefs.h >>conftest.$ac_ext
10675cat >>conftest.$ac_ext <<_ACEOF
10676/* end confdefs.h. */
8a2fc586
AK
10677/* Define pow to an innocuous variant, in case <limits.h> declares pow.
10678 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10679#define pow innocuous_pow
10680
ad6254c5
AK
10681/* System header to define __stub macros and hopefully few prototypes,
10682 which can conflict with char pow (); below.
10683 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10684 <limits.h> exists even on freestanding compilers. */
8a2fc586 10685
ad6254c5
AK
10686#ifdef __STDC__
10687# include <limits.h>
10688#else
10689# include <assert.h>
10690#endif
8a2fc586
AK
10691
10692#undef pow
10693
7a197a62
AK
10694/* Override any GCC internal prototype to avoid an error.
10695 Use char because int might match the return type of a GCC
10696 builtin and then its argument prototype would still apply. */
ad6254c5
AK
10697#ifdef __cplusplus
10698extern "C"
ad6254c5 10699#endif
ad6254c5
AK
10700char pow ();
10701/* The GNU C library defines this for functions which it implements
10702 to always fail with ENOSYS. Some functions are actually named
10703 something starting with __ and the normal name is an alias. */
7a197a62 10704#if defined __stub_pow || defined __stub___pow
ad6254c5 10705choke me
ad6254c5
AK
10706#endif
10707
10708int
10709main ()
10710{
7a197a62 10711return pow ();
ad6254c5
AK
10712 ;
10713 return 0;
10714}
10715_ACEOF
10716rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
10717if { (ac_try="$ac_link"
10718case "(($ac_try" in
10719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10720 *) ac_try_echo=$ac_try;;
10721esac
ec6a6fbe
AK
10722eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10723$as_echo "$ac_try_echo") >&5
7a197a62 10724 (eval "$ac_link") 2>conftest.er1
ad6254c5 10725 ac_status=$?
8a2fc586
AK
10726 grep -v '^ *+' conftest.er1 >conftest.err
10727 rm -f conftest.er1
10728 cat conftest.err >&5
ec6a6fbe 10729 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10730 (exit $ac_status); } && {
10731 test -z "$ac_c_werror_flag" ||
10732 test ! -s conftest.err
ec6a6fbe
AK
10733 } && test -s conftest$ac_exeext && {
10734 test "$cross_compiling" = yes ||
10735 $as_test_x conftest$ac_exeext
10736 }; then
ad6254c5
AK
10737 ac_cv_func_pow=yes
10738else
ec6a6fbe 10739 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10740sed 's/^/| /' conftest.$ac_ext >&5
10741
7a197a62 10742 ac_cv_func_pow=no
ad6254c5 10743fi
7a197a62 10744
ec6a6fbe 10745rm -rf conftest.dSYM
25fbec5b 10746rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 10747 conftest$ac_exeext conftest.$ac_ext
ad6254c5 10748fi
ec6a6fbe
AK
10749{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
10750$as_echo "$ac_cv_func_pow" >&6; }
ad6254c5
AK
10751
10752if test $ac_cv_func_pow = no; then
ec6a6fbe
AK
10753 { $as_echo "$as_me:$LINENO: checking for pow in -lm" >&5
10754$as_echo_n "checking for pow in -lm... " >&6; }
ad6254c5 10755if test "${ac_cv_lib_m_pow+set}" = set; then
ec6a6fbe 10756 $as_echo_n "(cached) " >&6
ad6254c5
AK
10757else
10758 ac_check_lib_save_LIBS=$LIBS
10759LIBS="-lm $LIBS"
10760cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10761/* confdefs.h. */
10762_ACEOF
10763cat confdefs.h >>conftest.$ac_ext
10764cat >>conftest.$ac_ext <<_ACEOF
10765/* end confdefs.h. */
10766
7a197a62
AK
10767/* Override any GCC internal prototype to avoid an error.
10768 Use char because int might match the return type of a GCC
10769 builtin and then its argument prototype would still apply. */
ad6254c5
AK
10770#ifdef __cplusplus
10771extern "C"
10772#endif
ad6254c5
AK
10773char pow ();
10774int
10775main ()
10776{
7a197a62 10777return pow ();
ad6254c5
AK
10778 ;
10779 return 0;
10780}
10781_ACEOF
10782rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
10783if { (ac_try="$ac_link"
10784case "(($ac_try" in
10785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10786 *) ac_try_echo=$ac_try;;
10787esac
ec6a6fbe
AK
10788eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10789$as_echo "$ac_try_echo") >&5
7a197a62 10790 (eval "$ac_link") 2>conftest.er1
ad6254c5 10791 ac_status=$?
8a2fc586
AK
10792 grep -v '^ *+' conftest.er1 >conftest.err
10793 rm -f conftest.er1
10794 cat conftest.err >&5
ec6a6fbe 10795 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10796 (exit $ac_status); } && {
10797 test -z "$ac_c_werror_flag" ||
10798 test ! -s conftest.err
ec6a6fbe
AK
10799 } && test -s conftest$ac_exeext && {
10800 test "$cross_compiling" = yes ||
10801 $as_test_x conftest$ac_exeext
10802 }; then
ad6254c5
AK
10803 ac_cv_lib_m_pow=yes
10804else
ec6a6fbe 10805 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10806sed 's/^/| /' conftest.$ac_ext >&5
10807
7a197a62 10808 ac_cv_lib_m_pow=no
ad6254c5 10809fi
7a197a62 10810
ec6a6fbe 10811rm -rf conftest.dSYM
25fbec5b 10812rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 10813 conftest$ac_exeext conftest.$ac_ext
ad6254c5 10814LIBS=$ac_check_lib_save_LIBS
d0191583 10815fi
ec6a6fbe
AK
10816{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
10817$as_echo "$ac_cv_lib_m_pow" >&6; }
10818if test "x$ac_cv_lib_m_pow" = x""yes; then
d0191583
JM
10819 POW_LIB=-lm
10820else
ec6a6fbe
AK
10821 { $as_echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
10822$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
d0191583 10823fi
72b2cb61 10824
d0191583 10825fi
72b2cb61 10826
ad6254c5
AK
10827fi
10828
ad6254c5 10829
d0191583
JM
10830for ac_func in vprintf
10831do
ec6a6fbe
AK
10832as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10833{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10834$as_echo_n "checking for $ac_func... " >&6; }
d0191583 10835if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 10836 $as_echo_n "(cached) " >&6
ad6254c5 10837else
d0191583
JM
10838 cat >conftest.$ac_ext <<_ACEOF
10839/* confdefs.h. */
10840_ACEOF
10841cat confdefs.h >>conftest.$ac_ext
10842cat >>conftest.$ac_ext <<_ACEOF
10843/* end confdefs.h. */
10844/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10845 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10846#define $ac_func innocuous_$ac_func
7a197a62 10847
d0191583
JM
10848/* System header to define __stub macros and hopefully few prototypes,
10849 which can conflict with char $ac_func (); below.
10850 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10851 <limits.h> exists even on freestanding compilers. */
ad6254c5 10852
d0191583
JM
10853#ifdef __STDC__
10854# include <limits.h>
10855#else
10856# include <assert.h>
10857#endif
ad6254c5 10858
d0191583 10859#undef $ac_func
72b2cb61 10860
d0191583
JM
10861/* Override any GCC internal prototype to avoid an error.
10862 Use char because int might match the return type of a GCC
10863 builtin and then its argument prototype would still apply. */
10864#ifdef __cplusplus
10865extern "C"
10866#endif
10867char $ac_func ();
10868/* The GNU C library defines this for functions which it implements
10869 to always fail with ENOSYS. Some functions are actually named
10870 something starting with __ and the normal name is an alias. */
10871#if defined __stub_$ac_func || defined __stub___$ac_func
10872choke me
10873#endif
10874
10875int
10876main ()
10877{
10878return $ac_func ();
10879 ;
10880 return 0;
10881}
72b2cb61 10882_ACEOF
d0191583
JM
10883rm -f conftest.$ac_objext conftest$ac_exeext
10884if { (ac_try="$ac_link"
10885case "(($ac_try" in
10886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10887 *) ac_try_echo=$ac_try;;
10888esac
ec6a6fbe
AK
10889eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10890$as_echo "$ac_try_echo") >&5
d0191583
JM
10891 (eval "$ac_link") 2>conftest.er1
10892 ac_status=$?
10893 grep -v '^ *+' conftest.er1 >conftest.err
10894 rm -f conftest.er1
10895 cat conftest.err >&5
ec6a6fbe 10896 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
10897 (exit $ac_status); } && {
10898 test -z "$ac_c_werror_flag" ||
10899 test ! -s conftest.err
ec6a6fbe
AK
10900 } && test -s conftest$ac_exeext && {
10901 test "$cross_compiling" = yes ||
10902 $as_test_x conftest$ac_exeext
10903 }; then
d0191583
JM
10904 eval "$as_ac_var=yes"
10905else
ec6a6fbe 10906 $as_echo "$as_me: failed program was:" >&5
d0191583 10907sed 's/^/| /' conftest.$ac_ext >&5
72b2cb61 10908
d0191583 10909 eval "$as_ac_var=no"
ad6254c5
AK
10910fi
10911
ec6a6fbe 10912rm -rf conftest.dSYM
d0191583
JM
10913rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10914 conftest$ac_exeext conftest.$ac_ext
7a197a62 10915fi
ec6a6fbe
AK
10916ac_res=`eval 'as_val=${'$as_ac_var'}
10917 $as_echo "$as_val"'`
10918 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10919$as_echo "$ac_res" >&6; }
10920as_val=`eval 'as_val=${'$as_ac_var'}
10921 $as_echo "$as_val"'`
10922 if test "x$as_val" = x""yes; then
d0191583 10923 cat >>confdefs.h <<_ACEOF
ec6a6fbe 10924#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
d0191583 10925_ACEOF
7a197a62 10926
ec6a6fbe
AK
10927{ $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
10928$as_echo_n "checking for _doprnt... " >&6; }
d0191583 10929if test "${ac_cv_func__doprnt+set}" = set; then
ec6a6fbe 10930 $as_echo_n "(cached) " >&6
ad6254c5 10931else
d0191583
JM
10932 cat >conftest.$ac_ext <<_ACEOF
10933/* confdefs.h. */
10934_ACEOF
10935cat confdefs.h >>conftest.$ac_ext
10936cat >>conftest.$ac_ext <<_ACEOF
10937/* end confdefs.h. */
10938/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
10939 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10940#define _doprnt innocuous__doprnt
7a197a62 10941
d0191583
JM
10942/* System header to define __stub macros and hopefully few prototypes,
10943 which can conflict with char _doprnt (); below.
10944 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10945 <limits.h> exists even on freestanding compilers. */
ad6254c5 10946
d0191583
JM
10947#ifdef __STDC__
10948# include <limits.h>
10949#else
10950# include <assert.h>
10951#endif
72b2cb61 10952
d0191583
JM
10953#undef _doprnt
10954
10955/* Override any GCC internal prototype to avoid an error.
10956 Use char because int might match the return type of a GCC
10957 builtin and then its argument prototype would still apply. */
10958#ifdef __cplusplus
10959extern "C"
10960#endif
10961char _doprnt ();
10962/* The GNU C library defines this for functions which it implements
10963 to always fail with ENOSYS. Some functions are actually named
10964 something starting with __ and the normal name is an alias. */
10965#if defined __stub__doprnt || defined __stub____doprnt
10966choke me
10967#endif
10968
10969int
10970main ()
10971{
10972return _doprnt ();
10973 ;
10974 return 0;
10975}
72b2cb61 10976_ACEOF
d0191583
JM
10977rm -f conftest.$ac_objext conftest$ac_exeext
10978if { (ac_try="$ac_link"
10979case "(($ac_try" in
10980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10981 *) ac_try_echo=$ac_try;;
10982esac
ec6a6fbe
AK
10983eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10984$as_echo "$ac_try_echo") >&5
d0191583
JM
10985 (eval "$ac_link") 2>conftest.er1
10986 ac_status=$?
10987 grep -v '^ *+' conftest.er1 >conftest.err
10988 rm -f conftest.er1
10989 cat conftest.err >&5
ec6a6fbe 10990 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
10991 (exit $ac_status); } && {
10992 test -z "$ac_c_werror_flag" ||
10993 test ! -s conftest.err
ec6a6fbe
AK
10994 } && test -s conftest$ac_exeext && {
10995 test "$cross_compiling" = yes ||
10996 $as_test_x conftest$ac_exeext
10997 }; then
d0191583
JM
10998 ac_cv_func__doprnt=yes
10999else
ec6a6fbe 11000 $as_echo "$as_me: failed program was:" >&5
d0191583 11001sed 's/^/| /' conftest.$ac_ext >&5
72b2cb61 11002
d0191583 11003 ac_cv_func__doprnt=no
ad6254c5
AK
11004fi
11005
ec6a6fbe 11006rm -rf conftest.dSYM
d0191583
JM
11007rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11008 conftest$ac_exeext conftest.$ac_ext
7a197a62 11009fi
ec6a6fbe
AK
11010{ $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
11011$as_echo "$ac_cv_func__doprnt" >&6; }
11012if test "x$ac_cv_func__doprnt" = x""yes; then
7a197a62 11013
d0191583
JM
11014cat >>confdefs.h <<\_ACEOF
11015#define HAVE_DOPRNT 1
11016_ACEOF
ad6254c5 11017
7a197a62
AK
11018fi
11019
d0191583
JM
11020fi
11021done
8b1a3214 11022
ad6254c5 11023
7a197a62 11024
9c961554 11025################################################################################
ec6a6fbe
AK
11026{ $as_echo "$as_me:$LINENO: checking whether to use static linking" >&5
11027$as_echo_n "checking whether to use static linking... " >&6; }
9c961554
MB
11028# Check whether --enable-static_link was given.
11029if test "${enable_static_link+set}" = set; then
11030 enableval=$enable_static_link; STATIC_LINK=$enableval
11031else
11032 STATIC_LINK=no
11033fi
11034
ec6a6fbe
AK
11035{ $as_echo "$as_me:$LINENO: result: $STATIC_LINK" >&5
11036$as_echo "$STATIC_LINK" >&6; }
9c961554 11037
d0191583 11038################################################################################
ad6254c5 11039
ad6254c5
AK
11040
11041################################################################################
ec6a6fbe
AK
11042{ $as_echo "$as_me:$LINENO: checking file owner" >&5
11043$as_echo_n "checking file owner... " >&6; }
d0191583
JM
11044
11045# Check whether --with-user was given.
11046if test "${with_user+set}" = set; then
71082be4 11047 withval=$with_user; OWNER=$withval
7a197a62
AK
11048fi
11049
ec6a6fbe
AK
11050{ $as_echo "$as_me:$LINENO: result: $OWNER" >&5
11051$as_echo "$OWNER" >&6; }
ad6254c5 11052
d0191583 11053if test x$OWNER != x; then
23b059e7 11054 INSTALL="$INSTALL -o $OWNER"
ad6254c5
AK
11055fi
11056
11057################################################################################
ec6a6fbe
AK
11058{ $as_echo "$as_me:$LINENO: checking group owner" >&5
11059$as_echo_n "checking group owner... " >&6; }
ad6254c5 11060
d0191583
JM
11061# Check whether --with-group was given.
11062if test "${with_group+set}" = set; then
71082be4 11063 withval=$with_group; GROUP=$withval
7a197a62
AK
11064fi
11065
ec6a6fbe
AK
11066{ $as_echo "$as_me:$LINENO: result: $GROUP" >&5
11067$as_echo "$GROUP" >&6; }
d0191583
JM
11068
11069if test x$GROUP != x; then
23b059e7 11070 INSTALL="$INSTALL -g $GROUP"
d0191583 11071fi
ad6254c5 11072
24bbc4d7 11073################################################################################
ec6a6fbe
AK
11074{ $as_echo "$as_me:$LINENO: checking device node uid" >&5
11075$as_echo_n "checking device node uid... " >&6; }
24bbc4d7
AK
11076
11077
11078# Check whether --with-device-uid was given.
11079if test "${with_device_uid+set}" = set; then
71082be4 11080 withval=$with_device_uid; DM_DEVICE_UID=$withval
24bbc4d7 11081else
71082be4 11082 DM_DEVICE_UID=0
24bbc4d7
AK
11083fi
11084
ec6a6fbe
AK
11085{ $as_echo "$as_me:$LINENO: result: $DM_DEVICE_UID" >&5
11086$as_echo "$DM_DEVICE_UID" >&6; }
24bbc4d7
AK
11087
11088################################################################################
ec6a6fbe
AK
11089{ $as_echo "$as_me:$LINENO: checking device node gid" >&5
11090$as_echo_n "checking device node gid... " >&6; }
24bbc4d7
AK
11091
11092
11093# Check whether --with-device-gid was given.
11094if test "${with_device_gid+set}" = set; then
71082be4 11095 withval=$with_device_gid; DM_DEVICE_GID=$withval
24bbc4d7 11096else
71082be4 11097 DM_DEVICE_GID=0
24bbc4d7
AK
11098fi
11099
ec6a6fbe
AK
11100{ $as_echo "$as_me:$LINENO: result: $DM_DEVICE_GID" >&5
11101$as_echo "$DM_DEVICE_GID" >&6; }
24bbc4d7 11102
93bd259b 11103################################################################################
ec6a6fbe
AK
11104{ $as_echo "$as_me:$LINENO: checking device node mode" >&5
11105$as_echo_n "checking device node mode... " >&6; }
93bd259b
AK
11106
11107
11108# Check whether --with-device-mode was given.
11109if test "${with_device_mode+set}" = set; then
71082be4 11110 withval=$with_device_mode; DM_DEVICE_MODE=$withval
93bd259b 11111else
71082be4 11112 DM_DEVICE_MODE=0600
93bd259b
AK
11113fi
11114
ec6a6fbe
AK
11115{ $as_echo "$as_me:$LINENO: result: $DM_DEVICE_MODE" >&5
11116$as_echo "$DM_DEVICE_MODE" >&6; }
93bd259b 11117
ad6254c5 11118################################################################################
ec6a6fbe
AK
11119{ $as_echo "$as_me:$LINENO: checking whether to enable lvm1 fallback" >&5
11120$as_echo_n "checking whether to enable lvm1 fallback... " >&6; }
d0191583
JM
11121# Check whether --enable-lvm1_fallback was given.
11122if test "${enable_lvm1_fallback+set}" = set; then
11123 enableval=$enable_lvm1_fallback; LVM1_FALLBACK=$enableval
11124else
11125 LVM1_FALLBACK=no
7a197a62
AK
11126fi
11127
ec6a6fbe
AK
11128{ $as_echo "$as_me:$LINENO: result: $LVM1_FALLBACK" >&5
11129$as_echo "$LVM1_FALLBACK" >&6; }
ad6254c5 11130
d0191583 11131if test x$LVM1_FALLBACK = xyes; then
72b2cb61
AK
11132
11133cat >>confdefs.h <<\_ACEOF
d0191583 11134#define LVM1_FALLBACK 1
72b2cb61
AK
11135_ACEOF
11136
ad6254c5
AK
11137fi
11138
11139################################################################################
ec6a6fbe
AK
11140{ $as_echo "$as_me:$LINENO: checking whether to include support for lvm1 metadata" >&5
11141$as_echo_n "checking whether to include support for lvm1 metadata... " >&6; }
d0191583
JM
11142
11143# Check whether --with-lvm1 was given.
11144if test "${with_lvm1+set}" = set; then
71082be4 11145 withval=$with_lvm1; LVM1=$withval
d0191583 11146else
71082be4 11147 LVM1=internal
7a197a62
AK
11148fi
11149
ec6a6fbe
AK
11150{ $as_echo "$as_me:$LINENO: result: $LVM1" >&5
11151$as_echo "$LVM1" >&6; }
ad6254c5 11152
d0191583 11153if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ];
ec6a6fbe 11154 then { { $as_echo "$as_me:$LINENO: error: --with-lvm1 parameter invalid
d0191583 11155" >&5
ec6a6fbe 11156$as_echo "$as_me: error: --with-lvm1 parameter invalid
d0191583
JM
11157" >&2;}
11158 { (exit 1); exit 1; }; }
11159fi;
11160
11161if test x$LVM1 = xinternal; then
72b2cb61
AK
11162
11163cat >>confdefs.h <<\_ACEOF
d0191583 11164#define LVM1_INTERNAL 1
72b2cb61
AK
11165_ACEOF
11166
ad6254c5
AK
11167fi
11168
11169################################################################################
ec6a6fbe
AK
11170{ $as_echo "$as_me:$LINENO: checking whether to include support for GFS pool metadata" >&5
11171$as_echo_n "checking whether to include support for GFS pool metadata... " >&6; }
d0191583
JM
11172
11173# Check whether --with-pool was given.
11174if test "${with_pool+set}" = set; then
71082be4 11175 withval=$with_pool; POOL=$withval
ad6254c5 11176else
71082be4 11177 POOL=internal
7a197a62
AK
11178fi
11179
ec6a6fbe
AK
11180{ $as_echo "$as_me:$LINENO: result: $POOL" >&5
11181$as_echo "$POOL" >&6; }
ad6254c5 11182
d0191583 11183if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ];
ec6a6fbe 11184 then { { $as_echo "$as_me:$LINENO: error: --with-pool parameter invalid
d0191583 11185" >&5
ec6a6fbe 11186$as_echo "$as_me: error: --with-pool parameter invalid
d0191583
JM
11187" >&2;}
11188 { (exit 1); exit 1; }; }
11189fi;
7a197a62 11190
d0191583
JM
11191if test x$POOL = xinternal; then
11192
11193cat >>confdefs.h <<\_ACEOF
11194#define POOL_INTERNAL 1
11195_ACEOF
11196
11197fi
ad6254c5 11198
06f62ad1 11199################################################################################
ec6a6fbe
AK
11200{ $as_echo "$as_me:$LINENO: checking whether to include support for cluster locking" >&5
11201$as_echo_n "checking whether to include support for cluster locking... " >&6; }
d0191583
JM
11202
11203# Check whether --with-cluster was given.
11204if test "${with_cluster+set}" = set; then
71082be4 11205 withval=$with_cluster; CLUSTER=$withval
7a197a62
AK
11206fi
11207
ec6a6fbe
AK
11208{ $as_echo "$as_me:$LINENO: result: $CLUSTER" >&5
11209$as_echo "$CLUSTER" >&6; }
06f62ad1 11210
d0191583 11211if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ];
ec6a6fbe 11212 then { { $as_echo "$as_me:$LINENO: error: --with-cluster parameter invalid
06f62ad1 11213" >&5
ec6a6fbe 11214$as_echo "$as_me: error: --with-cluster parameter invalid
06f62ad1
AK
11215" >&2;}
11216 { (exit 1); exit 1; }; }
d0191583 11217fi;
06f62ad1 11218
d0191583 11219if test x$CLUSTER = xinternal; then
72b2cb61
AK
11220
11221cat >>confdefs.h <<\_ACEOF
d0191583 11222#define CLUSTER_LOCKING_INTERNAL 1
72b2cb61
AK
11223_ACEOF
11224
15d91f5a 11225fi
ad6254c5
AK
11226
11227################################################################################
ec6a6fbe
AK
11228{ $as_echo "$as_me:$LINENO: checking whether to include snapshots" >&5
11229$as_echo_n "checking whether to include snapshots... " >&6; }
ad6254c5 11230
d0191583
JM
11231# Check whether --with-snapshots was given.
11232if test "${with_snapshots+set}" = set; then
71082be4 11233 withval=$with_snapshots; SNAPSHOTS=$withval
d0191583 11234else
71082be4 11235 SNAPSHOTS=internal
ad6254c5
AK
11236fi
11237
ec6a6fbe
AK
11238{ $as_echo "$as_me:$LINENO: result: $SNAPSHOTS" >&5
11239$as_echo "$SNAPSHOTS" >&6; }
ad6254c5 11240
d0191583 11241if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ];
ec6a6fbe 11242 then { { $as_echo "$as_me:$LINENO: error: --with-snapshots parameter invalid
d0191583 11243" >&5
ec6a6fbe 11244$as_echo "$as_me: error: --with-snapshots parameter invalid
d0191583
JM
11245" >&2;}
11246 { (exit 1); exit 1; }; }
11247fi;
11248
11249if test x$SNAPSHOTS = xinternal; then
11250
11251cat >>confdefs.h <<\_ACEOF
11252#define SNAPSHOT_INTERNAL 1
11253_ACEOF
ad6254c5 11254
ad6254c5 11255fi
7a197a62 11256
d0191583 11257################################################################################
ec6a6fbe
AK
11258{ $as_echo "$as_me:$LINENO: checking whether to include mirrors" >&5
11259$as_echo_n "checking whether to include mirrors... " >&6; }
d0191583
JM
11260
11261# Check whether --with-mirrors was given.
11262if test "${with_mirrors+set}" = set; then
71082be4 11263 withval=$with_mirrors; MIRRORS=$withval
d0191583 11264else
71082be4 11265 MIRRORS=internal
ad6254c5 11266fi
ad6254c5 11267
ec6a6fbe
AK
11268{ $as_echo "$as_me:$LINENO: result: $MIRRORS" >&5
11269$as_echo "$MIRRORS" >&6; }
ad6254c5 11270
d0191583 11271if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ];
ec6a6fbe 11272 then { { $as_echo "$as_me:$LINENO: error: --with-mirrors parameter invalid
d0191583 11273" >&5
ec6a6fbe 11274$as_echo "$as_me: error: --with-mirrors parameter invalid
d0191583
JM
11275" >&2;}
11276 { (exit 1); exit 1; }; }
11277fi;
ad6254c5 11278
d0191583 11279if test x$MIRRORS = xinternal; then
ad6254c5 11280
d0191583
JM
11281cat >>confdefs.h <<\_ACEOF
11282#define MIRRORED_INTERNAL 1
ad6254c5 11283_ACEOF
8a2fc586 11284
d0191583 11285fi
8a2fc586 11286
8fea97b7
ZK
11287################################################################################
11288{ $as_echo "$as_me:$LINENO: checking whether to include replicators" >&5
11289$as_echo_n "checking whether to include replicators... " >&6; }
11290
11291# Check whether --with-replicators was given.
11292if test "${with_replicators+set}" = set; then
11293 withval=$with_replicators; REPLICATORS=$withval
11294else
71082be4 11295 REPLICATORS=none
8fea97b7
ZK
11296fi
11297
11298{ $as_echo "$as_me:$LINENO: result: $REPLICATORS" >&5
11299$as_echo "$REPLICATORS" >&6; }
11300
11301case "$REPLICATORS" in
11302 none|shared) ;;
11303 internal)
11304cat >>confdefs.h <<\_ACEOF
11305#define REPLICATOR_INTERNAL 1
11306_ACEOF
11307 ;;
11308 *) { { $as_echo "$as_me:$LINENO: error: --with-replicators parameter invalid ($REPLICATORS)" >&5
11309$as_echo "$as_me: error: --with-replicators parameter invalid ($REPLICATORS)" >&2;}
11310 { (exit 1); exit 1; }; } ;;
11311esac
11312
d0191583 11313################################################################################
ec6a6fbe
AK
11314{ $as_echo "$as_me:$LINENO: checking whether to enable readline" >&5
11315$as_echo_n "checking whether to enable readline... " >&6; }
d0191583
JM
11316# Check whether --enable-readline was given.
11317if test "${enable_readline+set}" = set; then
11318 enableval=$enable_readline; READLINE=$enableval
11319else
06e459df 11320 READLINE=maybe
d0191583 11321fi
8a2fc586 11322
ec6a6fbe
AK
11323{ $as_echo "$as_me:$LINENO: result: $READLINE" >&5
11324$as_echo "$READLINE" >&6; }
8a2fc586 11325
d0191583 11326################################################################################
ec6a6fbe
AK
11327{ $as_echo "$as_me:$LINENO: checking whether to enable realtime support" >&5
11328$as_echo_n "checking whether to enable realtime support... " >&6; }
d0191583
JM
11329# Check whether --enable-realtime was given.
11330if test "${enable_realtime+set}" = set; then
11331 enableval=$enable_realtime; REALTIME=$enableval
ad6254c5 11332fi
ad6254c5 11333
ec6a6fbe
AK
11334{ $as_echo "$as_me:$LINENO: result: $REALTIME" >&5
11335$as_echo "$REALTIME" >&6; }
d0191583 11336
37ddf259
AK
11337################################################################################
11338{ $as_echo "$as_me:$LINENO: checking whether to enable OCF resource agents" >&5
11339$as_echo_n "checking whether to enable OCF resource agents... " >&6; }
11340# Check whether --enable-ocf was given.
11341if test "${enable_ocf+set}" = set; then
11342 enableval=$enable_ocf; OCF=$enableval
11343else
11344 OCF=no
11345fi
11346
11347{ $as_echo "$as_me:$LINENO: result: $OCF" >&5
11348$as_echo "$OCF" >&6; }
11349
d0191583 11350################################################################################
90c80887 11351pkg_config_init() {
e2997b73
AK
11352
11353
11354if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11355 if test -n "$ac_tool_prefix"; then
11356 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11357set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11358{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11359$as_echo_n "checking for $ac_word... " >&6; }
11360if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11361 $as_echo_n "(cached) " >&6
11362else
11363 case $PKG_CONFIG in
11364 [\\/]* | ?:[\\/]*)
11365 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11366 ;;
11367 *)
11368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11369for as_dir in $PATH
11370do
11371 IFS=$as_save_IFS
11372 test -z "$as_dir" && as_dir=.
11373 for ac_exec_ext in '' $ac_executable_extensions; do
11374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11375 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11376 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11377 break 2
11378 fi
11379done
11380done
11381IFS=$as_save_IFS
11382
11383 ;;
11384esac
11385fi
11386PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11387if test -n "$PKG_CONFIG"; then
11388 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11389$as_echo "$PKG_CONFIG" >&6; }
11390else
11391 { $as_echo "$as_me:$LINENO: result: no" >&5
11392$as_echo "no" >&6; }
11393fi
11394
11395
11396fi
11397if test -z "$ac_cv_path_PKG_CONFIG"; then
11398 ac_pt_PKG_CONFIG=$PKG_CONFIG
11399 # Extract the first word of "pkg-config", so it can be a program name with args.
11400set dummy pkg-config; ac_word=$2
11401{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11402$as_echo_n "checking for $ac_word... " >&6; }
11403if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
11404 $as_echo_n "(cached) " >&6
11405else
11406 case $ac_pt_PKG_CONFIG in
11407 [\\/]* | ?:[\\/]*)
11408 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11409 ;;
11410 *)
11411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11412for as_dir in $PATH
11413do
11414 IFS=$as_save_IFS
11415 test -z "$as_dir" && as_dir=.
11416 for ac_exec_ext in '' $ac_executable_extensions; do
11417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11418 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11419 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11420 break 2
11421 fi
11422done
11423done
11424IFS=$as_save_IFS
11425
11426 ;;
11427esac
11428fi
11429ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11430if test -n "$ac_pt_PKG_CONFIG"; then
11431 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
11432$as_echo "$ac_pt_PKG_CONFIG" >&6; }
11433else
11434 { $as_echo "$as_me:$LINENO: result: no" >&5
11435$as_echo "no" >&6; }
11436fi
11437
11438 if test "x$ac_pt_PKG_CONFIG" = x; then
11439 PKG_CONFIG=""
11440 else
11441 case $cross_compiling:$ac_tool_warned in
11442yes:)
11443{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11444$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11445ac_tool_warned=yes ;;
11446esac
11447 PKG_CONFIG=$ac_pt_PKG_CONFIG
11448 fi
11449else
11450 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11451fi
11452
11453fi
11454if test -n "$PKG_CONFIG"; then
11455 _pkg_min_version=0.9.0
11456 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
11457$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11458 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11459 { $as_echo "$as_me:$LINENO: result: yes" >&5
11460$as_echo "yes" >&6; }
11461 else
11462 { $as_echo "$as_me:$LINENO: result: no" >&5
11463$as_echo "no" >&6; }
11464 PKG_CONFIG=""
11465 fi
8c4e8a18 11466
e2997b73
AK
11467fi
11468
11469pkg_failed=no
a946372e
AK
11470{ $as_echo "$as_me:$LINENO: checking for PKGCONFIGINIT" >&5
11471$as_echo_n "checking for PKGCONFIGINIT... " >&6; }
e2997b73 11472
a946372e
AK
11473if test -n "$PKGCONFIGINIT_CFLAGS"; then
11474 pkg_cv_PKGCONFIGINIT_CFLAGS="$PKGCONFIGINIT_CFLAGS"
e2997b73
AK
11475 elif test -n "$PKG_CONFIG"; then
11476 if test -n "$PKG_CONFIG" && \
a946372e
AK
11477 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\"") >&5
11478 ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5
e2997b73
AK
11479 ac_status=$?
11480 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11481 (exit $ac_status); }; then
a946372e 11482 pkg_cv_PKGCONFIGINIT_CFLAGS=`$PKG_CONFIG --cflags "pkgconfiginit" 2>/dev/null`
e2997b73
AK
11483else
11484 pkg_failed=yes
11485fi
11486 else
11487 pkg_failed=untried
11488fi
a946372e
AK
11489if test -n "$PKGCONFIGINIT_LIBS"; then
11490 pkg_cv_PKGCONFIGINIT_LIBS="$PKGCONFIGINIT_LIBS"
e2997b73
AK
11491 elif test -n "$PKG_CONFIG"; then
11492 if test -n "$PKG_CONFIG" && \
a946372e
AK
11493 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\"") >&5
11494 ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5
e2997b73
AK
11495 ac_status=$?
11496 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11497 (exit $ac_status); }; then
a946372e 11498 pkg_cv_PKGCONFIGINIT_LIBS=`$PKG_CONFIG --libs "pkgconfiginit" 2>/dev/null`
e2997b73
AK
11499else
11500 pkg_failed=yes
11501fi
11502 else
11503 pkg_failed=untried
11504fi
11505
11506
11507
11508if test $pkg_failed = yes; then
11509
11510if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11511 _pkg_short_errors_supported=yes
11512else
11513 _pkg_short_errors_supported=no
11514fi
11515 if test $_pkg_short_errors_supported = yes; then
a946372e 11516 PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pkgconfiginit" 2>&1`
e2997b73 11517 else
a946372e 11518 PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "pkgconfiginit" 2>&1`
e2997b73
AK
11519 fi
11520 # Put the nasty error message in config.log where it belongs
a946372e 11521 echo "$PKGCONFIGINIT_PKG_ERRORS" >&5
e2997b73 11522
8c4e8a18
FDN
11523 { $as_echo "$as_me:$LINENO: result: no" >&5
11524$as_echo "no" >&6; }
11525 { $as_echo "$as_me:$LINENO: result: pkg-config initialized" >&5
a946372e 11526$as_echo "pkg-config initialized" >&6; }
e2997b73 11527elif test $pkg_failed = untried; then
a946372e
AK
11528 { $as_echo "$as_me:$LINENO: result: pkg-config initialized" >&5
11529$as_echo "pkg-config initialized" >&6; }
e2997b73 11530else
a946372e
AK
11531 PKGCONFIGINIT_CFLAGS=$pkg_cv_PKGCONFIGINIT_CFLAGS
11532 PKGCONFIGINIT_LIBS=$pkg_cv_PKGCONFIGINIT_LIBS
e2997b73
AK
11533 { $as_echo "$as_me:$LINENO: result: yes" >&5
11534$as_echo "yes" >&6; }
8c4e8a18 11535 :
e2997b73 11536fi
90c80887
AK
11537 PKGCONFIG_INIT=1
11538}
11539
11540################################################################################
11541{ $as_echo "$as_me:$LINENO: checking whether to build cluster LVM daemon" >&5
11542$as_echo_n "checking whether to build cluster LVM daemon... " >&6; }
11543
11544# Check whether --with-clvmd was given.
11545if test "${with_clvmd+set}" = set; then
71082be4 11546 withval=$with_clvmd; CLVMD=$withval
90c80887 11547else
71082be4 11548 CLVMD=none
90c80887
AK
11549fi
11550
11551if test x$CLVMD = xyes; then
11552 CLVMD=all
11553fi
11554{ $as_echo "$as_me:$LINENO: result: $CLVMD" >&5
11555$as_echo "$CLVMD" >&6; }
11556
11557if test x$CLVMD != xnone && test x$CLUSTER = xnone; then
11558 CLUSTER=internal
11559fi
11560
c89bc357 11561if test x$CLVMD != xnone && test x$PKGCONFIG_INIT != x1; then
90c80887
AK
11562 pkg_config_init
11563fi
11564
c89bc357
MB
11565CLVMD_CMANAGERS=""
11566CLVMD_NEEDS_QDISKD=no
90c80887
AK
11567
11568if [ `expr x"$CLVMD" : '.*gulm.*'` != 0 ]; then
11569 BUILDGULM=yes
c89bc357
MB
11570 CLVMD_CMANAGERS="$CLVMD_CMANAGERS lock_gulmd"
11571 CLVMD_NEEDS_QDISKD=yes
11572fi
11573if [ `expr x"$CLVMD" : '.*cman.*'` != 0 ]; then
11574 BUILDCMAN=yes
11575 CLVMD_CMANAGERS="$CLVMD_CMANAGERS cman"
11576 CLVMD_NEEDS_QDISKD=yes
90c80887
AK
11577fi
11578if [ `expr x"$CLVMD" : '.*corosync.*'` != 0 ]; then
11579 BUILDCOROSYNC=yes
c89bc357 11580 CLVMD_CMANAGERS="$CLVMD_CMANAGERS corosync"
90c80887
AK
11581fi
11582if [ `expr x"$CLVMD" : '.*openais.*'` != 0 ]; then
11583 BUILDOPENAIS=yes
c89bc357 11584 CLVMD_CMANAGERS="$CLVMD_CMANAGERS openais"
90c80887 11585fi
c89bc357
MB
11586if test x$CLVMD_NEEDS_QDISKD != xno; then
11587 CLVMD_CMANAGERS="$CLVMD_CMANAGERS qdiskd"
90c80887
AK
11588fi
11589
11590if test x$BUILDGULM = xyes; then
11591 if test x$BUILDCOROSYNC = xyes || \
11592 test x$BUILDOPENAIS = xyes; then
11593 { { $as_echo "$as_me:$LINENO: error: requested clvmd configuration is not valid" >&5
11594$as_echo "$as_me: error: requested clvmd configuration is not valid" >&2;}
11595 { (exit 1); exit 1; }; }
11596 fi
a946372e 11597fi
e2997b73 11598
a946372e
AK
11599soft_bailout() {
11600 NOTFOUND=1
11601}
e2997b73 11602
a946372e
AK
11603hard_bailout() {
11604 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
11605$as_echo "$as_me: error: bailing out" >&2;}
11606 { (exit 1); exit 1; }; }
11607}
11608
11609if test x$CLVMD = xall; then
11610 bailout=soft_bailout
11611 BUILDGULM=yes
11612 BUILDCMAN=yes
11613 BUILDCOROSYNC=yes
11614 BUILDOPENAIS=yes
e2997b73 11615else
a946372e 11616 bailout=hard_bailout
e2997b73 11617fi
a946372e
AK
11618
11619check_lib_no_libs() {
11620 lib_no_libs_arg1=$1
11621 shift
11622 lib_no_libs_arg2=$1
11623 shift
11624 lib_no_libs_args=$@
11625
11626as_ac_Lib=`$as_echo "ac_cv_lib_$lib_no_libs_arg1''_$lib_no_libs_arg2" | $as_tr_sh`
11627{ $as_echo "$as_me:$LINENO: checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1" >&5
11628$as_echo_n "checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1... " >&6; }
11629if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
11630 $as_echo_n "(cached) " >&6
11631else
11632 ac_check_lib_save_LIBS=$LIBS
11633LIBS="-l$lib_no_libs_arg1 $lib_no_libs_args $LIBS"
11634cat >conftest.$ac_ext <<_ACEOF
11635/* confdefs.h. */
11636_ACEOF
11637cat confdefs.h >>conftest.$ac_ext
11638cat >>conftest.$ac_ext <<_ACEOF
11639/* end confdefs.h. */
11640
11641/* Override any GCC internal prototype to avoid an error.
11642 Use char because int might match the return type of a GCC
11643 builtin and then its argument prototype would still apply. */
11644#ifdef __cplusplus
11645extern "C"
11646#endif
11647char $lib_no_libs_arg2 ();
11648int
11649main ()
11650{
11651return $lib_no_libs_arg2 ();
11652 ;
11653 return 0;
11654}
11655_ACEOF
11656rm -f conftest.$ac_objext conftest$ac_exeext
11657if { (ac_try="$ac_link"
11658case "(($ac_try" in
11659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11660 *) ac_try_echo=$ac_try;;
11661esac
11662eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11663$as_echo "$ac_try_echo") >&5
11664 (eval "$ac_link") 2>conftest.er1
e2997b73 11665 ac_status=$?
a946372e
AK
11666 grep -v '^ *+' conftest.er1 >conftest.err
11667 rm -f conftest.er1
11668 cat conftest.err >&5
e2997b73 11669 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
a946372e
AK
11670 (exit $ac_status); } && {
11671 test -z "$ac_c_werror_flag" ||
11672 test ! -s conftest.err
11673 } && test -s conftest$ac_exeext && {
11674 test "$cross_compiling" = yes ||
11675 $as_test_x conftest$ac_exeext
11676 }; then
11677 eval "$as_ac_Lib=yes"
e2997b73 11678else
a946372e
AK
11679 $as_echo "$as_me: failed program was:" >&5
11680sed 's/^/| /' conftest.$ac_ext >&5
e2997b73 11681
a946372e
AK
11682 eval "$as_ac_Lib=no"
11683fi
e2997b73 11684
a946372e
AK
11685rm -rf conftest.dSYM
11686rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11687 conftest$ac_exeext conftest.$ac_ext
11688LIBS=$ac_check_lib_save_LIBS
11689fi
11690ac_res=`eval 'as_val=${'$as_ac_Lib'}
11691 $as_echo "$as_val"'`
11692 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11693$as_echo "$ac_res" >&6; }
11694as_val=`eval 'as_val=${'$as_ac_Lib'}
11695 $as_echo "$as_val"'`
11696 if test "x$as_val" = x""yes; then
11697 cat >>confdefs.h <<_ACEOF
11698#define `$as_echo "HAVE_LIB$lib_no_libs_arg1" | $as_tr_cpp` 1
11699_ACEOF
e2997b73 11700
a946372e 11701 LIBS="-l$lib_no_libs_arg1 $LIBS"
e2997b73 11702
e2997b73 11703else
a946372e 11704 $bailout
e2997b73 11705fi
e2997b73 11706
a946372e
AK
11707 LIBS=$ac_check_lib_save_LIBS
11708}
11709
11710if test x$BUILDGULM = xyes; then
e2997b73
AK
11711
11712pkg_failed=no
a946372e
AK
11713{ $as_echo "$as_me:$LINENO: checking for CCS" >&5
11714$as_echo_n "checking for CCS... " >&6; }
e2997b73 11715
a946372e
AK
11716if test -n "$CCS_CFLAGS"; then
11717 pkg_cv_CCS_CFLAGS="$CCS_CFLAGS"
e2997b73
AK
11718 elif test -n "$PKG_CONFIG"; then
11719 if test -n "$PKG_CONFIG" && \
a946372e
AK
11720 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libccs\"") >&5
11721 ($PKG_CONFIG --exists --print-errors "libccs") 2>&5
e2997b73
AK
11722 ac_status=$?
11723 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11724 (exit $ac_status); }; then
a946372e 11725 pkg_cv_CCS_CFLAGS=`$PKG_CONFIG --cflags "libccs" 2>/dev/null`
e2997b73
AK
11726else
11727 pkg_failed=yes
11728fi
11729 else
11730 pkg_failed=untried
11731fi
a946372e
AK
11732if test -n "$CCS_LIBS"; then
11733 pkg_cv_CCS_LIBS="$CCS_LIBS"
e2997b73
AK
11734 elif test -n "$PKG_CONFIG"; then
11735 if test -n "$PKG_CONFIG" && \
a946372e
AK
11736 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libccs\"") >&5
11737 ($PKG_CONFIG --exists --print-errors "libccs") 2>&5
e2997b73
AK
11738 ac_status=$?
11739 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11740 (exit $ac_status); }; then
a946372e 11741 pkg_cv_CCS_LIBS=`$PKG_CONFIG --libs "libccs" 2>/dev/null`
e2997b73
AK
11742else
11743 pkg_failed=yes
11744fi
11745 else
11746 pkg_failed=untried
11747fi
11748
11749
11750
11751if test $pkg_failed = yes; then
11752
11753if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11754 _pkg_short_errors_supported=yes
11755else
11756 _pkg_short_errors_supported=no
11757fi
11758 if test $_pkg_short_errors_supported = yes; then
a946372e 11759 CCS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libccs" 2>&1`
e2997b73 11760 else
a946372e 11761 CCS_PKG_ERRORS=`$PKG_CONFIG --print-errors "libccs" 2>&1`
e2997b73
AK
11762 fi
11763 # Put the nasty error message in config.log where it belongs
a946372e 11764 echo "$CCS_PKG_ERRORS" >&5
e2997b73 11765
8c4e8a18
FDN
11766 { $as_echo "$as_me:$LINENO: result: no" >&5
11767$as_echo "no" >&6; }
11768 NOTFOUND=0
e2997b73 11769
a946372e
AK
11770for ac_header in ccs.h
11771do
11772as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11773if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11774 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11775$as_echo_n "checking for $ac_header... " >&6; }
11776if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11777 $as_echo_n "(cached) " >&6
d0191583 11778fi
a946372e
AK
11779ac_res=`eval 'as_val=${'$as_ac_Header'}
11780 $as_echo "$as_val"'`
11781 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11782$as_echo "$ac_res" >&6; }
fc54be10 11783else
a946372e
AK
11784 # Is the header compilable?
11785{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11786$as_echo_n "checking $ac_header usability... " >&6; }
11787cat >conftest.$ac_ext <<_ACEOF
11788/* confdefs.h. */
11789_ACEOF
11790cat confdefs.h >>conftest.$ac_ext
11791cat >>conftest.$ac_ext <<_ACEOF
11792/* end confdefs.h. */
11793$ac_includes_default
11794#include <$ac_header>
11795_ACEOF
11796rm -f conftest.$ac_objext
11797if { (ac_try="$ac_compile"
11798case "(($ac_try" in
11799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11800 *) ac_try_echo=$ac_try;;
11801esac
11802eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11803$as_echo "$ac_try_echo") >&5
11804 (eval "$ac_compile") 2>conftest.er1
11805 ac_status=$?
11806 grep -v '^ *+' conftest.er1 >conftest.err
11807 rm -f conftest.er1
11808 cat conftest.err >&5
11809 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11810 (exit $ac_status); } && {
11811 test -z "$ac_c_werror_flag" ||
11812 test ! -s conftest.err
11813 } && test -s conftest.$ac_objext; then
11814 ac_header_compiler=yes
11815else
11816 $as_echo "$as_me: failed program was:" >&5
11817sed 's/^/| /' conftest.$ac_ext >&5
d0191583 11818
a946372e 11819 ac_header_compiler=no
d0191583
JM
11820fi
11821
a946372e
AK
11822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11823{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11824$as_echo "$ac_header_compiler" >&6; }
fddafd51 11825
a946372e
AK
11826# Is the header present?
11827{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11828$as_echo_n "checking $ac_header presence... " >&6; }
11829cat >conftest.$ac_ext <<_ACEOF
11830/* confdefs.h. */
11831_ACEOF
11832cat confdefs.h >>conftest.$ac_ext
11833cat >>conftest.$ac_ext <<_ACEOF
11834/* end confdefs.h. */
11835#include <$ac_header>
11836_ACEOF
11837if { (ac_try="$ac_cpp conftest.$ac_ext"
11838case "(($ac_try" in
11839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11840 *) ac_try_echo=$ac_try;;
11841esac
11842eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11843$as_echo "$ac_try_echo") >&5
11844 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11845 ac_status=$?
11846 grep -v '^ *+' conftest.er1 >conftest.err
11847 rm -f conftest.er1
11848 cat conftest.err >&5
11849 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11850 (exit $ac_status); } >/dev/null && {
11851 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11852 test ! -s conftest.err
11853 }; then
11854 ac_header_preproc=yes
11855else
11856 $as_echo "$as_me: failed program was:" >&5
11857sed 's/^/| /' conftest.$ac_ext >&5
11858
11859 ac_header_preproc=no
11860fi
11861
11862rm -f conftest.err conftest.$ac_ext
11863{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11864$as_echo "$ac_header_preproc" >&6; }
11865
11866# So? What about this header?
11867case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11868 yes:no: )
11869 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11870$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11871 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11872$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11873 ac_header_preproc=yes
11874 ;;
11875 no:yes:* )
11876 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11877$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11878 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11879$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11880 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11881$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11882 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11883$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11884 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11885$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11886 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11887$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11888
11889 ;;
11890esac
11891{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11892$as_echo_n "checking for $ac_header... " >&6; }
11893if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11894 $as_echo_n "(cached) " >&6
11895else
11896 eval "$as_ac_Header=\$ac_header_preproc"
11897fi
11898ac_res=`eval 'as_val=${'$as_ac_Header'}
11899 $as_echo "$as_val"'`
11900 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11901$as_echo "$ac_res" >&6; }
11902
11903fi
11904as_val=`eval 'as_val=${'$as_ac_Header'}
11905 $as_echo "$as_val"'`
11906 if test "x$as_val" = x""yes; then
11907 cat >>confdefs.h <<_ACEOF
11908#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11909_ACEOF
11910
11911else
11912 $bailout
11913fi
11914
11915done
11916
11917 check_lib_no_libs ccs ccs_connect
11918 if test $NOTFOUND = 0; then
11919 { $as_echo "$as_me:$LINENO: result: no pkg for libccs, using -lccs" >&5
11920$as_echo "no pkg for libccs, using -lccs" >&6; }
11921 CCS_LIBS="-lccs"
11922 HAVE_CCS=yes
11923 fi
11924elif test $pkg_failed = untried; then
11925 NOTFOUND=0
11926
11927for ac_header in ccs.h
11928do
11929as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11930if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11931 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11932$as_echo_n "checking for $ac_header... " >&6; }
11933if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11934 $as_echo_n "(cached) " >&6
11935fi
11936ac_res=`eval 'as_val=${'$as_ac_Header'}
11937 $as_echo "$as_val"'`
11938 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11939$as_echo "$ac_res" >&6; }
11940else
11941 # Is the header compilable?
11942{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11943$as_echo_n "checking $ac_header usability... " >&6; }
11944cat >conftest.$ac_ext <<_ACEOF
11945/* confdefs.h. */
11946_ACEOF
11947cat confdefs.h >>conftest.$ac_ext
11948cat >>conftest.$ac_ext <<_ACEOF
11949/* end confdefs.h. */
11950$ac_includes_default
11951#include <$ac_header>
11952_ACEOF
11953rm -f conftest.$ac_objext
11954if { (ac_try="$ac_compile"
11955case "(($ac_try" in
11956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11957 *) ac_try_echo=$ac_try;;
11958esac
11959eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11960$as_echo "$ac_try_echo") >&5
11961 (eval "$ac_compile") 2>conftest.er1
11962 ac_status=$?
11963 grep -v '^ *+' conftest.er1 >conftest.err
11964 rm -f conftest.er1
11965 cat conftest.err >&5
11966 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11967 (exit $ac_status); } && {
11968 test -z "$ac_c_werror_flag" ||
11969 test ! -s conftest.err
11970 } && test -s conftest.$ac_objext; then
11971 ac_header_compiler=yes
11972else
11973 $as_echo "$as_me: failed program was:" >&5
11974sed 's/^/| /' conftest.$ac_ext >&5
11975
11976 ac_header_compiler=no
11977fi
11978
11979rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11980{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11981$as_echo "$ac_header_compiler" >&6; }
11982
11983# Is the header present?
11984{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11985$as_echo_n "checking $ac_header presence... " >&6; }
11986cat >conftest.$ac_ext <<_ACEOF
11987/* confdefs.h. */
11988_ACEOF
11989cat confdefs.h >>conftest.$ac_ext
11990cat >>conftest.$ac_ext <<_ACEOF
11991/* end confdefs.h. */
11992#include <$ac_header>
11993_ACEOF
11994if { (ac_try="$ac_cpp conftest.$ac_ext"
11995case "(($ac_try" in
11996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11997 *) ac_try_echo=$ac_try;;
11998esac
11999eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12000$as_echo "$ac_try_echo") >&5
12001 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12002 ac_status=$?
12003 grep -v '^ *+' conftest.er1 >conftest.err
12004 rm -f conftest.er1
12005 cat conftest.err >&5
12006 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12007 (exit $ac_status); } >/dev/null && {
12008 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12009 test ! -s conftest.err
12010 }; then
12011 ac_header_preproc=yes
12012else
12013 $as_echo "$as_me: failed program was:" >&5
12014sed 's/^/| /' conftest.$ac_ext >&5
12015
12016 ac_header_preproc=no
12017fi
12018
12019rm -f conftest.err conftest.$ac_ext
12020{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12021$as_echo "$ac_header_preproc" >&6; }
12022
12023# So? What about this header?
12024case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12025 yes:no: )
12026 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12027$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12028 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12029$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12030 ac_header_preproc=yes
12031 ;;
12032 no:yes:* )
12033 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12034$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12035 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12036$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12037 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12038$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12039 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12040$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12041 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12042$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12043 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12044$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12045
12046 ;;
12047esac
12048{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12049$as_echo_n "checking for $ac_header... " >&6; }
12050if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12051 $as_echo_n "(cached) " >&6
12052else
12053 eval "$as_ac_Header=\$ac_header_preproc"
12054fi
12055ac_res=`eval 'as_val=${'$as_ac_Header'}
12056 $as_echo "$as_val"'`
12057 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12058$as_echo "$ac_res" >&6; }
12059
12060fi
12061as_val=`eval 'as_val=${'$as_ac_Header'}
12062 $as_echo "$as_val"'`
12063 if test "x$as_val" = x""yes; then
12064 cat >>confdefs.h <<_ACEOF
12065#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12066_ACEOF
12067
12068else
12069 $bailout
12070fi
12071
12072done
12073
12074 check_lib_no_libs ccs ccs_connect
12075 if test $NOTFOUND = 0; then
12076 { $as_echo "$as_me:$LINENO: result: no pkg for libccs, using -lccs" >&5
12077$as_echo "no pkg for libccs, using -lccs" >&6; }
12078 CCS_LIBS="-lccs"
12079 HAVE_CCS=yes
12080 fi
12081else
12082 CCS_CFLAGS=$pkg_cv_CCS_CFLAGS
12083 CCS_LIBS=$pkg_cv_CCS_LIBS
12084 { $as_echo "$as_me:$LINENO: result: yes" >&5
12085$as_echo "yes" >&6; }
12086 HAVE_CCS=yes
12087fi
12088
12089pkg_failed=no
12090{ $as_echo "$as_me:$LINENO: checking for GULM" >&5
12091$as_echo_n "checking for GULM... " >&6; }
12092
12093if test -n "$GULM_CFLAGS"; then
12094 pkg_cv_GULM_CFLAGS="$GULM_CFLAGS"
12095 elif test -n "$PKG_CONFIG"; then
12096 if test -n "$PKG_CONFIG" && \
12097 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgulm\"") >&5
12098 ($PKG_CONFIG --exists --print-errors "libgulm") 2>&5
12099 ac_status=$?
12100 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12101 (exit $ac_status); }; then
12102 pkg_cv_GULM_CFLAGS=`$PKG_CONFIG --cflags "libgulm" 2>/dev/null`
12103else
12104 pkg_failed=yes
12105fi
12106 else
12107 pkg_failed=untried
12108fi
12109if test -n "$GULM_LIBS"; then
12110 pkg_cv_GULM_LIBS="$GULM_LIBS"
12111 elif test -n "$PKG_CONFIG"; then
12112 if test -n "$PKG_CONFIG" && \
12113 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgulm\"") >&5
12114 ($PKG_CONFIG --exists --print-errors "libgulm") 2>&5
12115 ac_status=$?
12116 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12117 (exit $ac_status); }; then
12118 pkg_cv_GULM_LIBS=`$PKG_CONFIG --libs "libgulm" 2>/dev/null`
12119else
12120 pkg_failed=yes
12121fi
12122 else
12123 pkg_failed=untried
12124fi
12125
12126
12127
12128if test $pkg_failed = yes; then
12129
12130if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12131 _pkg_short_errors_supported=yes
12132else
12133 _pkg_short_errors_supported=no
12134fi
12135 if test $_pkg_short_errors_supported = yes; then
12136 GULM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgulm" 2>&1`
12137 else
12138 GULM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgulm" 2>&1`
12139 fi
12140 # Put the nasty error message in config.log where it belongs
12141 echo "$GULM_PKG_ERRORS" >&5
12142
8c4e8a18
FDN
12143 { $as_echo "$as_me:$LINENO: result: no" >&5
12144$as_echo "no" >&6; }
12145 NOTFOUND=0
a946372e
AK
12146
12147for ac_header in libgulm.h
12148do
12149as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12150if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12151 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12152$as_echo_n "checking for $ac_header... " >&6; }
12153if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12154 $as_echo_n "(cached) " >&6
12155fi
12156ac_res=`eval 'as_val=${'$as_ac_Header'}
12157 $as_echo "$as_val"'`
12158 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12159$as_echo "$ac_res" >&6; }
12160else
12161 # Is the header compilable?
12162{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12163$as_echo_n "checking $ac_header usability... " >&6; }
12164cat >conftest.$ac_ext <<_ACEOF
12165/* confdefs.h. */
12166_ACEOF
12167cat confdefs.h >>conftest.$ac_ext
12168cat >>conftest.$ac_ext <<_ACEOF
12169/* end confdefs.h. */
12170$ac_includes_default
12171#include <$ac_header>
12172_ACEOF
12173rm -f conftest.$ac_objext
12174if { (ac_try="$ac_compile"
12175case "(($ac_try" in
12176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12177 *) ac_try_echo=$ac_try;;
12178esac
12179eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12180$as_echo "$ac_try_echo") >&5
12181 (eval "$ac_compile") 2>conftest.er1
12182 ac_status=$?
12183 grep -v '^ *+' conftest.er1 >conftest.err
12184 rm -f conftest.er1
12185 cat conftest.err >&5
12186 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12187 (exit $ac_status); } && {
12188 test -z "$ac_c_werror_flag" ||
12189 test ! -s conftest.err
12190 } && test -s conftest.$ac_objext; then
12191 ac_header_compiler=yes
12192else
12193 $as_echo "$as_me: failed program was:" >&5
12194sed 's/^/| /' conftest.$ac_ext >&5
12195
12196 ac_header_compiler=no
12197fi
12198
12199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12200{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12201$as_echo "$ac_header_compiler" >&6; }
12202
12203# Is the header present?
12204{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12205$as_echo_n "checking $ac_header presence... " >&6; }
12206cat >conftest.$ac_ext <<_ACEOF
12207/* confdefs.h. */
12208_ACEOF
12209cat confdefs.h >>conftest.$ac_ext
12210cat >>conftest.$ac_ext <<_ACEOF
12211/* end confdefs.h. */
12212#include <$ac_header>
12213_ACEOF
12214if { (ac_try="$ac_cpp conftest.$ac_ext"
12215case "(($ac_try" in
12216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12217 *) ac_try_echo=$ac_try;;
12218esac
12219eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12220$as_echo "$ac_try_echo") >&5
12221 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12222 ac_status=$?
12223 grep -v '^ *+' conftest.er1 >conftest.err
12224 rm -f conftest.er1
12225 cat conftest.err >&5
12226 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12227 (exit $ac_status); } >/dev/null && {
12228 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12229 test ! -s conftest.err
12230 }; then
12231 ac_header_preproc=yes
12232else
12233 $as_echo "$as_me: failed program was:" >&5
12234sed 's/^/| /' conftest.$ac_ext >&5
12235
12236 ac_header_preproc=no
12237fi
12238
12239rm -f conftest.err conftest.$ac_ext
12240{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12241$as_echo "$ac_header_preproc" >&6; }
12242
12243# So? What about this header?
12244case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12245 yes:no: )
12246 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12247$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12248 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12249$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12250 ac_header_preproc=yes
12251 ;;
12252 no:yes:* )
12253 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12254$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12255 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12256$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12257 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12258$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12259 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12260$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12261 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12262$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12263 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12264$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12265
12266 ;;
12267esac
12268{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12269$as_echo_n "checking for $ac_header... " >&6; }
12270if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12271 $as_echo_n "(cached) " >&6
12272else
12273 eval "$as_ac_Header=\$ac_header_preproc"
12274fi
12275ac_res=`eval 'as_val=${'$as_ac_Header'}
12276 $as_echo "$as_val"'`
12277 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12278$as_echo "$ac_res" >&6; }
12279
12280fi
12281as_val=`eval 'as_val=${'$as_ac_Header'}
12282 $as_echo "$as_val"'`
12283 if test "x$as_val" = x""yes; then
12284 cat >>confdefs.h <<_ACEOF
12285#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12286_ACEOF
12287
12288else
12289 $bailout
12290fi
12291
12292done
12293
12294 check_lib_no_libs gulm lg_core_login
12295 if test $NOTFOUND = 0; then
12296 { $as_echo "$as_me:$LINENO: result: no pkg for libgulm, using -lgulm" >&5
12297$as_echo "no pkg for libgulm, using -lgulm" >&6; }
12298 GULM_LIBS="-lgulm"
12299 HAVE_GULM=yes
12300 fi
12301elif test $pkg_failed = untried; then
12302 NOTFOUND=0
12303
12304for ac_header in libgulm.h
12305do
12306as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12307if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12308 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12309$as_echo_n "checking for $ac_header... " >&6; }
12310if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12311 $as_echo_n "(cached) " >&6
12312fi
12313ac_res=`eval 'as_val=${'$as_ac_Header'}
12314 $as_echo "$as_val"'`
12315 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12316$as_echo "$ac_res" >&6; }
12317else
12318 # Is the header compilable?
12319{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12320$as_echo_n "checking $ac_header usability... " >&6; }
12321cat >conftest.$ac_ext <<_ACEOF
12322/* confdefs.h. */
12323_ACEOF
12324cat confdefs.h >>conftest.$ac_ext
12325cat >>conftest.$ac_ext <<_ACEOF
12326/* end confdefs.h. */
12327$ac_includes_default
12328#include <$ac_header>
12329_ACEOF
12330rm -f conftest.$ac_objext
12331if { (ac_try="$ac_compile"
12332case "(($ac_try" in
12333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12334 *) ac_try_echo=$ac_try;;
12335esac
12336eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12337$as_echo "$ac_try_echo") >&5
12338 (eval "$ac_compile") 2>conftest.er1
12339 ac_status=$?
12340 grep -v '^ *+' conftest.er1 >conftest.err
12341 rm -f conftest.er1
12342 cat conftest.err >&5
12343 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12344 (exit $ac_status); } && {
12345 test -z "$ac_c_werror_flag" ||
12346 test ! -s conftest.err
12347 } && test -s conftest.$ac_objext; then
12348 ac_header_compiler=yes
12349else
12350 $as_echo "$as_me: failed program was:" >&5
12351sed 's/^/| /' conftest.$ac_ext >&5
12352
12353 ac_header_compiler=no
12354fi
12355
12356rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12357{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12358$as_echo "$ac_header_compiler" >&6; }
12359
12360# Is the header present?
12361{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12362$as_echo_n "checking $ac_header presence... " >&6; }
12363cat >conftest.$ac_ext <<_ACEOF
12364/* confdefs.h. */
12365_ACEOF
12366cat confdefs.h >>conftest.$ac_ext
12367cat >>conftest.$ac_ext <<_ACEOF
12368/* end confdefs.h. */
12369#include <$ac_header>
12370_ACEOF
12371if { (ac_try="$ac_cpp conftest.$ac_ext"
12372case "(($ac_try" in
12373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12374 *) ac_try_echo=$ac_try;;
12375esac
12376eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12377$as_echo "$ac_try_echo") >&5
12378 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12379 ac_status=$?
12380 grep -v '^ *+' conftest.er1 >conftest.err
12381 rm -f conftest.er1
12382 cat conftest.err >&5
12383 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12384 (exit $ac_status); } >/dev/null && {
12385 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12386 test ! -s conftest.err
12387 }; then
12388 ac_header_preproc=yes
12389else
12390 $as_echo "$as_me: failed program was:" >&5
12391sed 's/^/| /' conftest.$ac_ext >&5
12392
12393 ac_header_preproc=no
12394fi
12395
12396rm -f conftest.err conftest.$ac_ext
12397{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12398$as_echo "$ac_header_preproc" >&6; }
12399
12400# So? What about this header?
12401case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12402 yes:no: )
12403 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12404$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12405 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12406$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12407 ac_header_preproc=yes
12408 ;;
12409 no:yes:* )
12410 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12411$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12412 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12413$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12414 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12415$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12416 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12417$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12418 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12419$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12420 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12421$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12422
12423 ;;
12424esac
12425{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12426$as_echo_n "checking for $ac_header... " >&6; }
12427if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12428 $as_echo_n "(cached) " >&6
12429else
12430 eval "$as_ac_Header=\$ac_header_preproc"
12431fi
12432ac_res=`eval 'as_val=${'$as_ac_Header'}
12433 $as_echo "$as_val"'`
12434 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12435$as_echo "$ac_res" >&6; }
12436
12437fi
12438as_val=`eval 'as_val=${'$as_ac_Header'}
12439 $as_echo "$as_val"'`
12440 if test "x$as_val" = x""yes; then
12441 cat >>confdefs.h <<_ACEOF
12442#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12443_ACEOF
12444
12445else
12446 $bailout
12447fi
12448
12449done
12450
12451 check_lib_no_libs gulm lg_core_login
12452 if test $NOTFOUND = 0; then
12453 { $as_echo "$as_me:$LINENO: result: no pkg for libgulm, using -lgulm" >&5
12454$as_echo "no pkg for libgulm, using -lgulm" >&6; }
12455 GULM_LIBS="-lgulm"
12456 HAVE_GULM=yes
12457 fi
12458else
12459 GULM_CFLAGS=$pkg_cv_GULM_CFLAGS
12460 GULM_LIBS=$pkg_cv_GULM_LIBS
12461 { $as_echo "$as_me:$LINENO: result: yes" >&5
12462$as_echo "yes" >&6; }
12463 HAVE_GULM=yes
12464fi
12465fi
12466
12467if test x$BUILDCMAN = xyes; then
12468
12469pkg_failed=no
12470{ $as_echo "$as_me:$LINENO: checking for CMAN" >&5
12471$as_echo_n "checking for CMAN... " >&6; }
12472
12473if test -n "$CMAN_CFLAGS"; then
12474 pkg_cv_CMAN_CFLAGS="$CMAN_CFLAGS"
12475 elif test -n "$PKG_CONFIG"; then
12476 if test -n "$PKG_CONFIG" && \
12477 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcman\"") >&5
12478 ($PKG_CONFIG --exists --print-errors "libcman") 2>&5
12479 ac_status=$?
12480 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12481 (exit $ac_status); }; then
12482 pkg_cv_CMAN_CFLAGS=`$PKG_CONFIG --cflags "libcman" 2>/dev/null`
12483else
12484 pkg_failed=yes
12485fi
12486 else
12487 pkg_failed=untried
12488fi
12489if test -n "$CMAN_LIBS"; then
12490 pkg_cv_CMAN_LIBS="$CMAN_LIBS"
12491 elif test -n "$PKG_CONFIG"; then
12492 if test -n "$PKG_CONFIG" && \
12493 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcman\"") >&5
12494 ($PKG_CONFIG --exists --print-errors "libcman") 2>&5
12495 ac_status=$?
12496 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12497 (exit $ac_status); }; then
12498 pkg_cv_CMAN_LIBS=`$PKG_CONFIG --libs "libcman" 2>/dev/null`
12499else
12500 pkg_failed=yes
12501fi
12502 else
12503 pkg_failed=untried
12504fi
12505
12506
12507
12508if test $pkg_failed = yes; then
12509
12510if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12511 _pkg_short_errors_supported=yes
12512else
12513 _pkg_short_errors_supported=no
12514fi
12515 if test $_pkg_short_errors_supported = yes; then
12516 CMAN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcman" 2>&1`
12517 else
12518 CMAN_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcman" 2>&1`
12519 fi
12520 # Put the nasty error message in config.log where it belongs
12521 echo "$CMAN_PKG_ERRORS" >&5
12522
8c4e8a18
FDN
12523 { $as_echo "$as_me:$LINENO: result: no" >&5
12524$as_echo "no" >&6; }
12525 NOTFOUND=0
a946372e
AK
12526
12527for ac_header in libcman.h
12528do
12529as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12530if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12531 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12532$as_echo_n "checking for $ac_header... " >&6; }
12533if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12534 $as_echo_n "(cached) " >&6
12535fi
12536ac_res=`eval 'as_val=${'$as_ac_Header'}
12537 $as_echo "$as_val"'`
12538 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12539$as_echo "$ac_res" >&6; }
12540else
12541 # Is the header compilable?
12542{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12543$as_echo_n "checking $ac_header usability... " >&6; }
12544cat >conftest.$ac_ext <<_ACEOF
12545/* confdefs.h. */
12546_ACEOF
12547cat confdefs.h >>conftest.$ac_ext
12548cat >>conftest.$ac_ext <<_ACEOF
12549/* end confdefs.h. */
12550$ac_includes_default
12551#include <$ac_header>
12552_ACEOF
12553rm -f conftest.$ac_objext
12554if { (ac_try="$ac_compile"
12555case "(($ac_try" in
12556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12557 *) ac_try_echo=$ac_try;;
12558esac
12559eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12560$as_echo "$ac_try_echo") >&5
12561 (eval "$ac_compile") 2>conftest.er1
12562 ac_status=$?
12563 grep -v '^ *+' conftest.er1 >conftest.err
12564 rm -f conftest.er1
12565 cat conftest.err >&5
12566 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12567 (exit $ac_status); } && {
12568 test -z "$ac_c_werror_flag" ||
12569 test ! -s conftest.err
12570 } && test -s conftest.$ac_objext; then
12571 ac_header_compiler=yes
12572else
12573 $as_echo "$as_me: failed program was:" >&5
12574sed 's/^/| /' conftest.$ac_ext >&5
12575
12576 ac_header_compiler=no
12577fi
12578
12579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12580{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12581$as_echo "$ac_header_compiler" >&6; }
12582
12583# Is the header present?
12584{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12585$as_echo_n "checking $ac_header presence... " >&6; }
12586cat >conftest.$ac_ext <<_ACEOF
12587/* confdefs.h. */
12588_ACEOF
12589cat confdefs.h >>conftest.$ac_ext
12590cat >>conftest.$ac_ext <<_ACEOF
12591/* end confdefs.h. */
12592#include <$ac_header>
12593_ACEOF
12594if { (ac_try="$ac_cpp conftest.$ac_ext"
12595case "(($ac_try" in
12596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12597 *) ac_try_echo=$ac_try;;
12598esac
12599eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12600$as_echo "$ac_try_echo") >&5
12601 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12602 ac_status=$?
12603 grep -v '^ *+' conftest.er1 >conftest.err
12604 rm -f conftest.er1
12605 cat conftest.err >&5
12606 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12607 (exit $ac_status); } >/dev/null && {
12608 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12609 test ! -s conftest.err
12610 }; then
12611 ac_header_preproc=yes
12612else
12613 $as_echo "$as_me: failed program was:" >&5
12614sed 's/^/| /' conftest.$ac_ext >&5
12615
12616 ac_header_preproc=no
12617fi
12618
12619rm -f conftest.err conftest.$ac_ext
12620{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12621$as_echo "$ac_header_preproc" >&6; }
12622
12623# So? What about this header?
12624case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12625 yes:no: )
12626 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12627$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12628 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12629$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12630 ac_header_preproc=yes
12631 ;;
12632 no:yes:* )
12633 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12634$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12635 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12636$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12637 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12638$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12639 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12640$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12641 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12642$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12643 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12644$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12645
12646 ;;
12647esac
12648{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12649$as_echo_n "checking for $ac_header... " >&6; }
12650if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12651 $as_echo_n "(cached) " >&6
12652else
12653 eval "$as_ac_Header=\$ac_header_preproc"
12654fi
12655ac_res=`eval 'as_val=${'$as_ac_Header'}
12656 $as_echo "$as_val"'`
12657 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12658$as_echo "$ac_res" >&6; }
12659
12660fi
12661as_val=`eval 'as_val=${'$as_ac_Header'}
12662 $as_echo "$as_val"'`
12663 if test "x$as_val" = x""yes; then
12664 cat >>confdefs.h <<_ACEOF
12665#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12666_ACEOF
12667
12668else
12669 $bailout
12670fi
12671
12672done
12673
12674 check_lib_no_libs cman cman_init
12675 if test $NOTFOUND = 0; then
12676 { $as_echo "$as_me:$LINENO: result: no pkg for libcman, using -lcman" >&5
12677$as_echo "no pkg for libcman, using -lcman" >&6; }
12678 CMAN_LIBS="-lcman"
12679 HAVE_CMAN=yes
12680 fi
12681elif test $pkg_failed = untried; then
12682 NOTFOUND=0
12683
12684for ac_header in libcman.h
12685do
12686as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12687if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12688 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12689$as_echo_n "checking for $ac_header... " >&6; }
12690if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12691 $as_echo_n "(cached) " >&6
12692fi
12693ac_res=`eval 'as_val=${'$as_ac_Header'}
12694 $as_echo "$as_val"'`
12695 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12696$as_echo "$ac_res" >&6; }
12697else
12698 # Is the header compilable?
12699{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12700$as_echo_n "checking $ac_header usability... " >&6; }
12701cat >conftest.$ac_ext <<_ACEOF
12702/* confdefs.h. */
12703_ACEOF
12704cat confdefs.h >>conftest.$ac_ext
12705cat >>conftest.$ac_ext <<_ACEOF
12706/* end confdefs.h. */
12707$ac_includes_default
12708#include <$ac_header>
12709_ACEOF
12710rm -f conftest.$ac_objext
12711if { (ac_try="$ac_compile"
12712case "(($ac_try" in
12713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12714 *) ac_try_echo=$ac_try;;
12715esac
12716eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12717$as_echo "$ac_try_echo") >&5
12718 (eval "$ac_compile") 2>conftest.er1
12719 ac_status=$?
12720 grep -v '^ *+' conftest.er1 >conftest.err
12721 rm -f conftest.er1
12722 cat conftest.err >&5
12723 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12724 (exit $ac_status); } && {
12725 test -z "$ac_c_werror_flag" ||
12726 test ! -s conftest.err
12727 } && test -s conftest.$ac_objext; then
12728 ac_header_compiler=yes
12729else
12730 $as_echo "$as_me: failed program was:" >&5
12731sed 's/^/| /' conftest.$ac_ext >&5
12732
12733 ac_header_compiler=no
12734fi
12735
12736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12737{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12738$as_echo "$ac_header_compiler" >&6; }
12739
12740# Is the header present?
12741{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12742$as_echo_n "checking $ac_header presence... " >&6; }
12743cat >conftest.$ac_ext <<_ACEOF
12744/* confdefs.h. */
12745_ACEOF
12746cat confdefs.h >>conftest.$ac_ext
12747cat >>conftest.$ac_ext <<_ACEOF
12748/* end confdefs.h. */
12749#include <$ac_header>
12750_ACEOF
12751if { (ac_try="$ac_cpp conftest.$ac_ext"
12752case "(($ac_try" in
12753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12754 *) ac_try_echo=$ac_try;;
12755esac
12756eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12757$as_echo "$ac_try_echo") >&5
12758 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12759 ac_status=$?
12760 grep -v '^ *+' conftest.er1 >conftest.err
12761 rm -f conftest.er1
12762 cat conftest.err >&5
12763 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12764 (exit $ac_status); } >/dev/null && {
12765 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12766 test ! -s conftest.err
12767 }; then
12768 ac_header_preproc=yes
12769else
12770 $as_echo "$as_me: failed program was:" >&5
12771sed 's/^/| /' conftest.$ac_ext >&5
12772
12773 ac_header_preproc=no
12774fi
12775
12776rm -f conftest.err conftest.$ac_ext
12777{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12778$as_echo "$ac_header_preproc" >&6; }
12779
12780# So? What about this header?
12781case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12782 yes:no: )
12783 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12784$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12785 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12786$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12787 ac_header_preproc=yes
12788 ;;
12789 no:yes:* )
12790 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12791$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12792 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12793$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12794 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12795$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12796 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12797$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12798 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12799$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12800 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12801$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12802
12803 ;;
12804esac
12805{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12806$as_echo_n "checking for $ac_header... " >&6; }
12807if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12808 $as_echo_n "(cached) " >&6
12809else
12810 eval "$as_ac_Header=\$ac_header_preproc"
12811fi
12812ac_res=`eval 'as_val=${'$as_ac_Header'}
12813 $as_echo "$as_val"'`
12814 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12815$as_echo "$ac_res" >&6; }
12816
12817fi
12818as_val=`eval 'as_val=${'$as_ac_Header'}
12819 $as_echo "$as_val"'`
12820 if test "x$as_val" = x""yes; then
12821 cat >>confdefs.h <<_ACEOF
12822#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12823_ACEOF
12824
12825else
12826 $bailout
12827fi
12828
12829done
12830
12831 check_lib_no_libs cman cman_init
12832 if test $NOTFOUND = 0; then
12833 { $as_echo "$as_me:$LINENO: result: no pkg for libcman, using -lcman" >&5
12834$as_echo "no pkg for libcman, using -lcman" >&6; }
12835 CMAN_LIBS="-lcman"
12836 HAVE_CMAN=yes
12837 fi
12838else
12839 CMAN_CFLAGS=$pkg_cv_CMAN_CFLAGS
12840 CMAN_LIBS=$pkg_cv_CMAN_LIBS
12841 { $as_echo "$as_me:$LINENO: result: yes" >&5
12842$as_echo "yes" >&6; }
12843 HAVE_CMAN=yes
12844fi
12845 CHECKCONFDB=yes
12846 CHECKDLM=yes
12847fi
12848
12849if test x$BUILDCOROSYNC = xyes || \
12850 test x$BUILDOPENAIS = xyes; then
12851
12852pkg_failed=no
12853{ $as_echo "$as_me:$LINENO: checking for COROSYNC" >&5
12854$as_echo_n "checking for COROSYNC... " >&6; }
12855
12856if test -n "$COROSYNC_CFLAGS"; then
12857 pkg_cv_COROSYNC_CFLAGS="$COROSYNC_CFLAGS"
12858 elif test -n "$PKG_CONFIG"; then
12859 if test -n "$PKG_CONFIG" && \
12860 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"corosync\"") >&5
12861 ($PKG_CONFIG --exists --print-errors "corosync") 2>&5
12862 ac_status=$?
12863 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12864 (exit $ac_status); }; then
12865 pkg_cv_COROSYNC_CFLAGS=`$PKG_CONFIG --cflags "corosync" 2>/dev/null`
12866else
12867 pkg_failed=yes
12868fi
12869 else
12870 pkg_failed=untried
12871fi
12872if test -n "$COROSYNC_LIBS"; then
12873 pkg_cv_COROSYNC_LIBS="$COROSYNC_LIBS"
12874 elif test -n "$PKG_CONFIG"; then
12875 if test -n "$PKG_CONFIG" && \
12876 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"corosync\"") >&5
12877 ($PKG_CONFIG --exists --print-errors "corosync") 2>&5
12878 ac_status=$?
12879 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12880 (exit $ac_status); }; then
12881 pkg_cv_COROSYNC_LIBS=`$PKG_CONFIG --libs "corosync" 2>/dev/null`
12882else
12883 pkg_failed=yes
12884fi
12885 else
12886 pkg_failed=untried
12887fi
12888
12889
12890
12891if test $pkg_failed = yes; then
12892
12893if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12894 _pkg_short_errors_supported=yes
12895else
12896 _pkg_short_errors_supported=no
12897fi
12898 if test $_pkg_short_errors_supported = yes; then
12899 COROSYNC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "corosync" 2>&1`
12900 else
12901 COROSYNC_PKG_ERRORS=`$PKG_CONFIG --print-errors "corosync" 2>&1`
12902 fi
12903 # Put the nasty error message in config.log where it belongs
12904 echo "$COROSYNC_PKG_ERRORS" >&5
12905
8c4e8a18 12906 { $as_echo "$as_me:$LINENO: result: no" >&5
71082be4 12907$as_echo "no" >&6; }
8c4e8a18
FDN
12908 $bailout
12909elif test $pkg_failed = untried; then
a946372e
AK
12910 $bailout
12911else
12912 COROSYNC_CFLAGS=$pkg_cv_COROSYNC_CFLAGS
12913 COROSYNC_LIBS=$pkg_cv_COROSYNC_LIBS
12914 { $as_echo "$as_me:$LINENO: result: yes" >&5
12915$as_echo "yes" >&6; }
12916 HAVE_COROSYNC=yes
12917fi
12918 CHECKCONFDB=yes
12919fi
12920
12921if test x$BUILDCOROSYNC = xyes; then
12922
12923pkg_failed=no
12924{ $as_echo "$as_me:$LINENO: checking for QUORUM" >&5
12925$as_echo_n "checking for QUORUM... " >&6; }
12926
12927if test -n "$QUORUM_CFLAGS"; then
12928 pkg_cv_QUORUM_CFLAGS="$QUORUM_CFLAGS"
12929 elif test -n "$PKG_CONFIG"; then
12930 if test -n "$PKG_CONFIG" && \
12931 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libquorum\"") >&5
12932 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
12933 ac_status=$?
12934 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12935 (exit $ac_status); }; then
12936 pkg_cv_QUORUM_CFLAGS=`$PKG_CONFIG --cflags "libquorum" 2>/dev/null`
12937else
12938 pkg_failed=yes
12939fi
12940 else
12941 pkg_failed=untried
12942fi
12943if test -n "$QUORUM_LIBS"; then
12944 pkg_cv_QUORUM_LIBS="$QUORUM_LIBS"
12945 elif test -n "$PKG_CONFIG"; then
12946 if test -n "$PKG_CONFIG" && \
12947 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libquorum\"") >&5
12948 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
12949 ac_status=$?
12950 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12951 (exit $ac_status); }; then
12952 pkg_cv_QUORUM_LIBS=`$PKG_CONFIG --libs "libquorum" 2>/dev/null`
12953else
12954 pkg_failed=yes
12955fi
12956 else
12957 pkg_failed=untried
12958fi
12959
12960
12961
12962if test $pkg_failed = yes; then
12963
12964if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12965 _pkg_short_errors_supported=yes
12966else
12967 _pkg_short_errors_supported=no
12968fi
12969 if test $_pkg_short_errors_supported = yes; then
12970 QUORUM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libquorum" 2>&1`
12971 else
12972 QUORUM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libquorum" 2>&1`
12973 fi
12974 # Put the nasty error message in config.log where it belongs
12975 echo "$QUORUM_PKG_ERRORS" >&5
12976
8c4e8a18 12977 { $as_echo "$as_me:$LINENO: result: no" >&5
71082be4 12978$as_echo "no" >&6; }
8c4e8a18
FDN
12979 $bailout
12980elif test $pkg_failed = untried; then
a946372e
AK
12981 $bailout
12982else
12983 QUORUM_CFLAGS=$pkg_cv_QUORUM_CFLAGS
12984 QUORUM_LIBS=$pkg_cv_QUORUM_LIBS
12985 { $as_echo "$as_me:$LINENO: result: yes" >&5
12986$as_echo "yes" >&6; }
12987 HAVE_QUORUM=yes
12988fi
12989 CHECKCPG=yes
12990 CHECKDLM=yes
12991fi
12992
12993if test x$BUILDOPENAIS = xyes; then
12994
12995pkg_failed=no
12996{ $as_echo "$as_me:$LINENO: checking for SALCK" >&5
12997$as_echo_n "checking for SALCK... " >&6; }
12998
12999if test -n "$SALCK_CFLAGS"; then
13000 pkg_cv_SALCK_CFLAGS="$SALCK_CFLAGS"
13001 elif test -n "$PKG_CONFIG"; then
13002 if test -n "$PKG_CONFIG" && \
13003 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaLck\"") >&5
13004 ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5
13005 ac_status=$?
13006 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13007 (exit $ac_status); }; then
13008 pkg_cv_SALCK_CFLAGS=`$PKG_CONFIG --cflags "libSaLck" 2>/dev/null`
13009else
13010 pkg_failed=yes
13011fi
13012 else
13013 pkg_failed=untried
13014fi
13015if test -n "$SALCK_LIBS"; then
13016 pkg_cv_SALCK_LIBS="$SALCK_LIBS"
13017 elif test -n "$PKG_CONFIG"; then
13018 if test -n "$PKG_CONFIG" && \
13019 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaLck\"") >&5
13020 ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5
13021 ac_status=$?
13022 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13023 (exit $ac_status); }; then
13024 pkg_cv_SALCK_LIBS=`$PKG_CONFIG --libs "libSaLck" 2>/dev/null`
13025else
13026 pkg_failed=yes
13027fi
13028 else
13029 pkg_failed=untried
13030fi
13031
13032
13033
13034if test $pkg_failed = yes; then
13035
13036if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13037 _pkg_short_errors_supported=yes
13038else
13039 _pkg_short_errors_supported=no
13040fi
13041 if test $_pkg_short_errors_supported = yes; then
13042 SALCK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaLck" 2>&1`
13043 else
13044 SALCK_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaLck" 2>&1`
13045 fi
13046 # Put the nasty error message in config.log where it belongs
13047 echo "$SALCK_PKG_ERRORS" >&5
13048
8c4e8a18 13049 { $as_echo "$as_me:$LINENO: result: no" >&5
71082be4 13050$as_echo "no" >&6; }
8c4e8a18
FDN
13051 $bailout
13052elif test $pkg_failed = untried; then
a946372e
AK
13053 $bailout
13054else
13055 SALCK_CFLAGS=$pkg_cv_SALCK_CFLAGS
13056 SALCK_LIBS=$pkg_cv_SALCK_LIBS
13057 { $as_echo "$as_me:$LINENO: result: yes" >&5
13058$as_echo "yes" >&6; }
13059 HAVE_SALCK=yes
13060fi
13061 CHECKCPG=yes
13062fi
13063
13064
13065
13066if test x$CHECKCONFDB = xyes; then
13067
13068pkg_failed=no
13069{ $as_echo "$as_me:$LINENO: checking for CONFDB" >&5
13070$as_echo_n "checking for CONFDB... " >&6; }
13071
13072if test -n "$CONFDB_CFLAGS"; then
13073 pkg_cv_CONFDB_CFLAGS="$CONFDB_CFLAGS"
13074 elif test -n "$PKG_CONFIG"; then
13075 if test -n "$PKG_CONFIG" && \
13076 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libconfdb\"") >&5
13077 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
13078 ac_status=$?
13079 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13080 (exit $ac_status); }; then
13081 pkg_cv_CONFDB_CFLAGS=`$PKG_CONFIG --cflags "libconfdb" 2>/dev/null`
13082else
13083 pkg_failed=yes
13084fi
13085 else
13086 pkg_failed=untried
13087fi
13088if test -n "$CONFDB_LIBS"; then
13089 pkg_cv_CONFDB_LIBS="$CONFDB_LIBS"
13090 elif test -n "$PKG_CONFIG"; then
13091 if test -n "$PKG_CONFIG" && \
13092 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libconfdb\"") >&5
13093 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
13094 ac_status=$?
13095 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13096 (exit $ac_status); }; then
13097 pkg_cv_CONFDB_LIBS=`$PKG_CONFIG --libs "libconfdb" 2>/dev/null`
13098else
13099 pkg_failed=yes
13100fi
13101 else
13102 pkg_failed=untried
13103fi
13104
13105
13106
13107if test $pkg_failed = yes; then
13108
13109if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13110 _pkg_short_errors_supported=yes
13111else
13112 _pkg_short_errors_supported=no
13113fi
13114 if test $_pkg_short_errors_supported = yes; then
13115 CONFDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libconfdb" 2>&1`
13116 else
13117 CONFDB_PKG_ERRORS=`$PKG_CONFIG --print-errors "libconfdb" 2>&1`
13118 fi
13119 # Put the nasty error message in config.log where it belongs
13120 echo "$CONFDB_PKG_ERRORS" >&5
13121
8c4e8a18 13122 { $as_echo "$as_me:$LINENO: result: no" >&5
71082be4 13123$as_echo "no" >&6; }
8c4e8a18
FDN
13124 HAVE_CONFDB=no
13125elif test $pkg_failed = untried; then
a946372e
AK
13126 HAVE_CONFDB=no
13127else
13128 CONFDB_CFLAGS=$pkg_cv_CONFDB_CFLAGS
13129 CONFDB_LIBS=$pkg_cv_CONFDB_LIBS
13130 { $as_echo "$as_me:$LINENO: result: yes" >&5
13131$as_echo "yes" >&6; }
13132 HAVE_CONFDB=yes
13133fi
13134
13135
13136for ac_header in corosync/confdb.h
13137do
13138as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13139if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13140 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13141$as_echo_n "checking for $ac_header... " >&6; }
13142if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13143 $as_echo_n "(cached) " >&6
13144fi
13145ac_res=`eval 'as_val=${'$as_ac_Header'}
13146 $as_echo "$as_val"'`
13147 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13148$as_echo "$ac_res" >&6; }
13149else
13150 # Is the header compilable?
13151{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13152$as_echo_n "checking $ac_header usability... " >&6; }
13153cat >conftest.$ac_ext <<_ACEOF
13154/* confdefs.h. */
13155_ACEOF
13156cat confdefs.h >>conftest.$ac_ext
13157cat >>conftest.$ac_ext <<_ACEOF
13158/* end confdefs.h. */
13159$ac_includes_default
13160#include <$ac_header>
13161_ACEOF
13162rm -f conftest.$ac_objext
13163if { (ac_try="$ac_compile"
13164case "(($ac_try" in
13165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13166 *) ac_try_echo=$ac_try;;
13167esac
13168eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13169$as_echo "$ac_try_echo") >&5
13170 (eval "$ac_compile") 2>conftest.er1
13171 ac_status=$?
13172 grep -v '^ *+' conftest.er1 >conftest.err
13173 rm -f conftest.er1
13174 cat conftest.err >&5
13175 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13176 (exit $ac_status); } && {
13177 test -z "$ac_c_werror_flag" ||
13178 test ! -s conftest.err
13179 } && test -s conftest.$ac_objext; then
13180 ac_header_compiler=yes
13181else
13182 $as_echo "$as_me: failed program was:" >&5
13183sed 's/^/| /' conftest.$ac_ext >&5
13184
13185 ac_header_compiler=no
13186fi
13187
13188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13189{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13190$as_echo "$ac_header_compiler" >&6; }
13191
13192# Is the header present?
13193{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13194$as_echo_n "checking $ac_header presence... " >&6; }
13195cat >conftest.$ac_ext <<_ACEOF
13196/* confdefs.h. */
13197_ACEOF
13198cat confdefs.h >>conftest.$ac_ext
13199cat >>conftest.$ac_ext <<_ACEOF
13200/* end confdefs.h. */
13201#include <$ac_header>
13202_ACEOF
13203if { (ac_try="$ac_cpp conftest.$ac_ext"
13204case "(($ac_try" in
13205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13206 *) ac_try_echo=$ac_try;;
13207esac
13208eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13209$as_echo "$ac_try_echo") >&5
13210 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13211 ac_status=$?
13212 grep -v '^ *+' conftest.er1 >conftest.err
13213 rm -f conftest.er1
13214 cat conftest.err >&5
13215 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13216 (exit $ac_status); } >/dev/null && {
13217 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13218 test ! -s conftest.err
13219 }; then
13220 ac_header_preproc=yes
13221else
13222 $as_echo "$as_me: failed program was:" >&5
13223sed 's/^/| /' conftest.$ac_ext >&5
13224
13225 ac_header_preproc=no
13226fi
13227
13228rm -f conftest.err conftest.$ac_ext
13229{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13230$as_echo "$ac_header_preproc" >&6; }
13231
13232# So? What about this header?
13233case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13234 yes:no: )
13235 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13236$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13237 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13238$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13239 ac_header_preproc=yes
13240 ;;
13241 no:yes:* )
13242 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13243$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13244 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13245$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13246 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13247$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13248 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13249$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13250 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13251$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13252 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13253$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13254
13255 ;;
13256esac
13257{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13258$as_echo_n "checking for $ac_header... " >&6; }
13259if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13260 $as_echo_n "(cached) " >&6
13261else
13262 eval "$as_ac_Header=\$ac_header_preproc"
13263fi
13264ac_res=`eval 'as_val=${'$as_ac_Header'}
13265 $as_echo "$as_val"'`
13266 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13267$as_echo "$ac_res" >&6; }
13268
13269fi
13270as_val=`eval 'as_val=${'$as_ac_Header'}
13271 $as_echo "$as_val"'`
13272 if test "x$as_val" = x""yes; then
13273 cat >>confdefs.h <<_ACEOF
13274#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13275_ACEOF
13276 HAVE_CONFDB_H=yes
13277else
13278 HAVE_CONFDB_H=no
13279fi
13280
13281done
13282
13283
13284 if test x$HAVE_CONFDB != xyes && \
13285 test x$HAVE_CONFDB_H = xyes; then
13286 check_lib_no_libs confdb confdb_initialize
13287 { $as_echo "$as_me:$LINENO: result: no pkg for confdb, using -lconfdb" >&5
13288$as_echo "no pkg for confdb, using -lconfdb" >&6; }
13289 CONFDB_LIBS="-lconfdb"
13290 HAVE_CONFDB=yes
13291 fi
13292
13293 if test x$BUILDCOROSYNC = xyes && \
13294 test x$HAVE_CONFDB != xyes &&
13295 test x$CLVMD != xall; then
13296 { { $as_echo "$as_me:$LINENO: error: bailing out... confdb library is required" >&5
13297$as_echo "$as_me: error: bailing out... confdb library is required" >&2;}
13298 { (exit 1); exit 1; }; }
13299 fi
13300fi
13301
13302if test x$CHECKCPG = xyes; then
13303
13304pkg_failed=no
13305{ $as_echo "$as_me:$LINENO: checking for CPG" >&5
13306$as_echo_n "checking for CPG... " >&6; }
13307
13308if test -n "$CPG_CFLAGS"; then
13309 pkg_cv_CPG_CFLAGS="$CPG_CFLAGS"
13310 elif test -n "$PKG_CONFIG"; then
13311 if test -n "$PKG_CONFIG" && \
13312 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
13313 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
13314 ac_status=$?
13315 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13316 (exit $ac_status); }; then
13317 pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
13318else
13319 pkg_failed=yes
13320fi
13321 else
13322 pkg_failed=untried
13323fi
13324if test -n "$CPG_LIBS"; then
13325 pkg_cv_CPG_LIBS="$CPG_LIBS"
13326 elif test -n "$PKG_CONFIG"; then
13327 if test -n "$PKG_CONFIG" && \
13328 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
13329 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
13330 ac_status=$?
13331 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13332 (exit $ac_status); }; then
13333 pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
13334else
13335 pkg_failed=yes
13336fi
13337 else
13338 pkg_failed=untried
13339fi
13340
13341
13342
13343if test $pkg_failed = yes; then
13344
13345if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13346 _pkg_short_errors_supported=yes
13347else
13348 _pkg_short_errors_supported=no
13349fi
13350 if test $_pkg_short_errors_supported = yes; then
13351 CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
13352 else
13353 CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
13354 fi
13355 # Put the nasty error message in config.log where it belongs
13356 echo "$CPG_PKG_ERRORS" >&5
13357
8c4e8a18 13358 { $as_echo "$as_me:$LINENO: result: no" >&5
71082be4 13359$as_echo "no" >&6; }
8c4e8a18
FDN
13360 $bailout
13361elif test $pkg_failed = untried; then
a946372e
AK
13362 $bailout
13363else
13364 CPG_CFLAGS=$pkg_cv_CPG_CFLAGS
13365 CPG_LIBS=$pkg_cv_CPG_LIBS
13366 { $as_echo "$as_me:$LINENO: result: yes" >&5
13367$as_echo "yes" >&6; }
13368 HAVE_CPG=yes
13369fi
13370fi
13371
13372if test x$CHECKDLM = xyes; then
13373
13374pkg_failed=no
13375{ $as_echo "$as_me:$LINENO: checking for DLM" >&5
13376$as_echo_n "checking for DLM... " >&6; }
13377
13378if test -n "$DLM_CFLAGS"; then
13379 pkg_cv_DLM_CFLAGS="$DLM_CFLAGS"
13380 elif test -n "$PKG_CONFIG"; then
13381 if test -n "$PKG_CONFIG" && \
13382 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdlm\"") >&5
13383 ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5
13384 ac_status=$?
13385 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13386 (exit $ac_status); }; then
13387 pkg_cv_DLM_CFLAGS=`$PKG_CONFIG --cflags "libdlm" 2>/dev/null`
13388else
13389 pkg_failed=yes
13390fi
13391 else
13392 pkg_failed=untried
13393fi
13394if test -n "$DLM_LIBS"; then
13395 pkg_cv_DLM_LIBS="$DLM_LIBS"
13396 elif test -n "$PKG_CONFIG"; then
13397 if test -n "$PKG_CONFIG" && \
13398 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdlm\"") >&5
13399 ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5
13400 ac_status=$?
13401 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13402 (exit $ac_status); }; then
13403 pkg_cv_DLM_LIBS=`$PKG_CONFIG --libs "libdlm" 2>/dev/null`
13404else
13405 pkg_failed=yes
13406fi
13407 else
13408 pkg_failed=untried
13409fi
13410
13411
13412
13413if test $pkg_failed = yes; then
13414
13415if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13416 _pkg_short_errors_supported=yes
13417else
13418 _pkg_short_errors_supported=no
13419fi
13420 if test $_pkg_short_errors_supported = yes; then
13421 DLM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdlm" 2>&1`
13422 else
13423 DLM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdlm" 2>&1`
13424 fi
13425 # Put the nasty error message in config.log where it belongs
13426 echo "$DLM_PKG_ERRORS" >&5
13427
8c4e8a18
FDN
13428 { $as_echo "$as_me:$LINENO: result: no" >&5
13429$as_echo "no" >&6; }
13430 NOTFOUND=0
a946372e
AK
13431
13432for ac_header in libdlm.h
13433do
13434as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13435if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13436 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13437$as_echo_n "checking for $ac_header... " >&6; }
13438if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13439 $as_echo_n "(cached) " >&6
13440fi
13441ac_res=`eval 'as_val=${'$as_ac_Header'}
13442 $as_echo "$as_val"'`
13443 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13444$as_echo "$ac_res" >&6; }
13445else
13446 # Is the header compilable?
13447{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13448$as_echo_n "checking $ac_header usability... " >&6; }
13449cat >conftest.$ac_ext <<_ACEOF
13450/* confdefs.h. */
13451_ACEOF
13452cat confdefs.h >>conftest.$ac_ext
13453cat >>conftest.$ac_ext <<_ACEOF
13454/* end confdefs.h. */
13455$ac_includes_default
13456#include <$ac_header>
13457_ACEOF
13458rm -f conftest.$ac_objext
13459if { (ac_try="$ac_compile"
13460case "(($ac_try" in
13461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13462 *) ac_try_echo=$ac_try;;
13463esac
13464eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13465$as_echo "$ac_try_echo") >&5
13466 (eval "$ac_compile") 2>conftest.er1
13467 ac_status=$?
13468 grep -v '^ *+' conftest.er1 >conftest.err
13469 rm -f conftest.er1
13470 cat conftest.err >&5
13471 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13472 (exit $ac_status); } && {
13473 test -z "$ac_c_werror_flag" ||
13474 test ! -s conftest.err
13475 } && test -s conftest.$ac_objext; then
13476 ac_header_compiler=yes
13477else
13478 $as_echo "$as_me: failed program was:" >&5
13479sed 's/^/| /' conftest.$ac_ext >&5
13480
13481 ac_header_compiler=no
13482fi
13483
13484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13485{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13486$as_echo "$ac_header_compiler" >&6; }
13487
13488# Is the header present?
13489{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13490$as_echo_n "checking $ac_header presence... " >&6; }
13491cat >conftest.$ac_ext <<_ACEOF
13492/* confdefs.h. */
13493_ACEOF
13494cat confdefs.h >>conftest.$ac_ext
13495cat >>conftest.$ac_ext <<_ACEOF
13496/* end confdefs.h. */
13497#include <$ac_header>
13498_ACEOF
13499if { (ac_try="$ac_cpp conftest.$ac_ext"
13500case "(($ac_try" in
13501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13502 *) ac_try_echo=$ac_try;;
13503esac
13504eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13505$as_echo "$ac_try_echo") >&5
13506 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13507 ac_status=$?
13508 grep -v '^ *+' conftest.er1 >conftest.err
13509 rm -f conftest.er1
13510 cat conftest.err >&5
13511 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13512 (exit $ac_status); } >/dev/null && {
13513 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13514 test ! -s conftest.err
13515 }; then
13516 ac_header_preproc=yes
13517else
13518 $as_echo "$as_me: failed program was:" >&5
13519sed 's/^/| /' conftest.$ac_ext >&5
13520
13521 ac_header_preproc=no
13522fi
13523
13524rm -f conftest.err conftest.$ac_ext
13525{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13526$as_echo "$ac_header_preproc" >&6; }
13527
13528# So? What about this header?
13529case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13530 yes:no: )
13531 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13532$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13533 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13534$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13535 ac_header_preproc=yes
13536 ;;
13537 no:yes:* )
13538 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13539$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13540 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13541$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13542 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13543$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13544 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13545$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13546 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13547$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13548 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13549$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13550
13551 ;;
13552esac
13553{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13554$as_echo_n "checking for $ac_header... " >&6; }
13555if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13556 $as_echo_n "(cached) " >&6
13557else
13558 eval "$as_ac_Header=\$ac_header_preproc"
13559fi
13560ac_res=`eval 'as_val=${'$as_ac_Header'}
13561 $as_echo "$as_val"'`
13562 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13563$as_echo "$ac_res" >&6; }
13564
13565fi
13566as_val=`eval 'as_val=${'$as_ac_Header'}
13567 $as_echo "$as_val"'`
13568 if test "x$as_val" = x""yes; then
13569 cat >>confdefs.h <<_ACEOF
13570#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13571_ACEOF
13572
13573else
13574 $bailout
13575fi
13576
13577done
13578
13579 check_lib_no_libs dlm dlm_lock -lpthread
13580 if test $NOTFOUND = 0; then
13581 { $as_echo "$as_me:$LINENO: result: no pkg for libdlm, using -ldlm" >&5
13582$as_echo "no pkg for libdlm, using -ldlm" >&6; }
13583 DLM_LIBS="-ldlm -lpthread"
13584 HAVE_DLM=yes
13585 fi
13586elif test $pkg_failed = untried; then
13587 NOTFOUND=0
13588
13589for ac_header in libdlm.h
13590do
13591as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13592if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13593 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13594$as_echo_n "checking for $ac_header... " >&6; }
13595if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13596 $as_echo_n "(cached) " >&6
13597fi
13598ac_res=`eval 'as_val=${'$as_ac_Header'}
13599 $as_echo "$as_val"'`
13600 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13601$as_echo "$ac_res" >&6; }
13602else
13603 # Is the header compilable?
13604{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13605$as_echo_n "checking $ac_header usability... " >&6; }
13606cat >conftest.$ac_ext <<_ACEOF
13607/* confdefs.h. */
13608_ACEOF
13609cat confdefs.h >>conftest.$ac_ext
13610cat >>conftest.$ac_ext <<_ACEOF
13611/* end confdefs.h. */
13612$ac_includes_default
13613#include <$ac_header>
13614_ACEOF
13615rm -f conftest.$ac_objext
13616if { (ac_try="$ac_compile"
13617case "(($ac_try" in
13618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13619 *) ac_try_echo=$ac_try;;
13620esac
13621eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13622$as_echo "$ac_try_echo") >&5
13623 (eval "$ac_compile") 2>conftest.er1
13624 ac_status=$?
13625 grep -v '^ *+' conftest.er1 >conftest.err
13626 rm -f conftest.er1
13627 cat conftest.err >&5
13628 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13629 (exit $ac_status); } && {
13630 test -z "$ac_c_werror_flag" ||
13631 test ! -s conftest.err
13632 } && test -s conftest.$ac_objext; then
13633 ac_header_compiler=yes
13634else
13635 $as_echo "$as_me: failed program was:" >&5
13636sed 's/^/| /' conftest.$ac_ext >&5
13637
13638 ac_header_compiler=no
13639fi
13640
13641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13642{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13643$as_echo "$ac_header_compiler" >&6; }
13644
13645# Is the header present?
13646{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13647$as_echo_n "checking $ac_header presence... " >&6; }
13648cat >conftest.$ac_ext <<_ACEOF
13649/* confdefs.h. */
13650_ACEOF
13651cat confdefs.h >>conftest.$ac_ext
13652cat >>conftest.$ac_ext <<_ACEOF
13653/* end confdefs.h. */
13654#include <$ac_header>
13655_ACEOF
13656if { (ac_try="$ac_cpp conftest.$ac_ext"
13657case "(($ac_try" in
13658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13659 *) ac_try_echo=$ac_try;;
13660esac
13661eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13662$as_echo "$ac_try_echo") >&5
13663 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13664 ac_status=$?
13665 grep -v '^ *+' conftest.er1 >conftest.err
13666 rm -f conftest.er1
13667 cat conftest.err >&5
13668 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13669 (exit $ac_status); } >/dev/null && {
13670 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13671 test ! -s conftest.err
13672 }; then
13673 ac_header_preproc=yes
13674else
13675 $as_echo "$as_me: failed program was:" >&5
13676sed 's/^/| /' conftest.$ac_ext >&5
13677
13678 ac_header_preproc=no
13679fi
13680
13681rm -f conftest.err conftest.$ac_ext
13682{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13683$as_echo "$ac_header_preproc" >&6; }
13684
13685# So? What about this header?
13686case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13687 yes:no: )
13688 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13689$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13690 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13691$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13692 ac_header_preproc=yes
13693 ;;
13694 no:yes:* )
13695 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13696$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13697 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13698$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13699 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13700$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13701 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13702$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13703 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13704$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13705 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13706$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13707
13708 ;;
13709esac
13710{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13711$as_echo_n "checking for $ac_header... " >&6; }
13712if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13713 $as_echo_n "(cached) " >&6
13714else
13715 eval "$as_ac_Header=\$ac_header_preproc"
13716fi
13717ac_res=`eval 'as_val=${'$as_ac_Header'}
13718 $as_echo "$as_val"'`
13719 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13720$as_echo "$ac_res" >&6; }
13721
13722fi
13723as_val=`eval 'as_val=${'$as_ac_Header'}
13724 $as_echo "$as_val"'`
13725 if test "x$as_val" = x""yes; then
13726 cat >>confdefs.h <<_ACEOF
13727#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13728_ACEOF
13729
13730else
13731 $bailout
13732fi
13733
13734done
13735
13736 check_lib_no_libs dlm dlm_lock -lpthread
13737 if test $NOTFOUND = 0; then
13738 { $as_echo "$as_me:$LINENO: result: no pkg for libdlm, using -ldlm" >&5
13739$as_echo "no pkg for libdlm, using -ldlm" >&6; }
13740 DLM_LIBS="-ldlm -lpthread"
13741 HAVE_DLM=yes
13742 fi
13743else
13744 DLM_CFLAGS=$pkg_cv_DLM_CFLAGS
13745 DLM_LIBS=$pkg_cv_DLM_LIBS
13746 { $as_echo "$as_me:$LINENO: result: yes" >&5
13747$as_echo "yes" >&6; }
13748 HAVE_DLM=yes
13749fi
13750fi
13751
13752if test x$CLVMD = xall; then
8c222979 13753 CLVMD=none
c89bc357
MB
13754 CLVMD_CMANAGERS=""
13755 CLVMD_NEEDS_QDISKD=no
a946372e
AK
13756 if test x$HAVE_CCS = xyes && \
13757 test x$HAVE_GULM = xyes; then
8c222979
FDN
13758 { $as_echo "$as_me:$LINENO: result: Enabling clvmd gulm cluster manager" >&5
13759$as_echo "Enabling clvmd gulm cluster manager" >&6; }
13760 CLVMD="$CLVMD,gulm"
c89bc357
MB
13761 CLVMD_CMANAGERS="$CLVMD_CMANAGERS lock_gulmd"
13762 CLVMD_NEEDS_QDISKD=yes
a946372e
AK
13763 fi
13764 if test x$HAVE_CMAN = xyes && \
13765 test x$HAVE_DLM = xyes; then
8c222979
FDN
13766 { $as_echo "$as_me:$LINENO: result: Enabling clvmd cman cluster manager" >&5
13767$as_echo "Enabling clvmd cman cluster manager" >&6; }
13768 CLVMD="$CLVMD,cman"
c89bc357
MB
13769 CLVMD_CMANAGERS="$CLVMD_CMANAGERS cman"
13770 CLVMD_NEEDS_QDISKD=yes
a946372e
AK
13771 fi
13772 if test x$HAVE_COROSYNC = xyes && \
13773 test x$HAVE_QUORUM = xyes && \
13774 test x$HAVE_CPG = xyes && \
13775 test x$HAVE_DLM = xyes && \
13776 test x$HAVE_CONFDB = xyes; then
8c222979
FDN
13777 { $as_echo "$as_me:$LINENO: result: Enabling clvmd corosync cluster manager" >&5
13778$as_echo "Enabling clvmd corosync cluster manager" >&6; }
13779 CLVMD="$CLVMD,corosync"
c89bc357 13780 CLVMD_CMANAGERS="$CLVMD_CMANAGERS corosync"
a946372e
AK
13781 fi
13782 if test x$HAVE_COROSYNC = xyes && \
13783 test x$HAVE_CPG = xyes && \
13784 test x$HAVE_SALCK = xyes; then
8c222979
FDN
13785 { $as_echo "$as_me:$LINENO: result: Enabling clvmd openais cluster manager" >&5
13786$as_echo "Enabling clvmd openais cluster manager" >&6; }
13787 CLVMD="$CLVMD,openais"
c89bc357
MB
13788 CLVMD_CMANAGERS="$CLVMD_CMANAGERS openais"
13789 fi
13790 if test x$CLVMD_NEEDS_QDISKD != xno; then
13791 CLVMD_CMANAGERS="$CLVMD_CMANAGERS qdiskd"
8c222979
FDN
13792 fi
13793 if test x$CLVMD = xnone; then
13794 { $as_echo "$as_me:$LINENO: result: Disabling clvmd build. No cluster manager detected." >&5
13795$as_echo "Disabling clvmd build. No cluster manager detected." >&6; }
a946372e 13796 fi
a946372e
AK
13797fi
13798
8c4e8a18
FDN
13799################################################################################
13800if test "x$CLVMD" != xnone; then
13801
13802# Check whether --with-clvmd-pidfile was given.
13803if test "${with_clvmd_pidfile+set}" = set; then
13804 withval=$with_clvmd_pidfile; CLVMD_PIDFILE=$withval
13805else
13806 CLVMD_PIDFILE="/var/run/clvmd.pid"
13807fi
13808
13809
13810cat >>confdefs.h <<_ACEOF
13811#define CLVMD_PIDFILE "$CLVMD_PIDFILE"
13812_ACEOF
13813
13814fi
13815
a946372e 13816################################################################################
66fd4529
AK
13817{ $as_echo "$as_me:$LINENO: checking whether to build cluster mirror log daemon" >&5
13818$as_echo_n "checking whether to build cluster mirror log daemon... " >&6; }
13819# Check whether --enable-cmirrord was given.
13820if test "${enable_cmirrord+set}" = set; then
13821 enableval=$enable_cmirrord; CMIRRORD=$enableval
13822else
13823 CMIRRORD=no
13824fi
13825
13826{ $as_echo "$as_me:$LINENO: result: $CMIRRORD" >&5
13827$as_echo "$CMIRRORD" >&6; }
13828
13829BUILD_CMIRRORD=$CMIRRORD
13830
13831################################################################################
66fd4529
AK
13832if test "x$BUILD_CMIRRORD" = xyes; then
13833
13834# Check whether --with-cmirrord-pidfile was given.
13835if test "${with_cmirrord_pidfile+set}" = set; then
71082be4 13836 withval=$with_cmirrord_pidfile; CMIRRORD_PIDFILE=$withval
66fd4529 13837else
71082be4 13838 CMIRRORD_PIDFILE="/var/run/cmirrord.pid"
a946372e
AK
13839fi
13840
71082be4
ZK
13841
13842cat >>confdefs.h <<_ACEOF
13843#define CMIRRORD_PIDFILE "$CMIRRORD_PIDFILE"
13844_ACEOF
13845
66fd4529 13846fi
a946372e 13847
66fd4529
AK
13848################################################################################
13849if [ "x$BUILD_CMIRRORD" = xyes ]; then
90c80887
AK
13850 if test x$PKGCONFIG_INIT != x1; then
13851 pkg_config_init
13852 fi
13853
13854pkg_failed=no
13855{ $as_echo "$as_me:$LINENO: checking for SACKPT" >&5
13856$as_echo_n "checking for SACKPT... " >&6; }
13857
13858if test -n "$SACKPT_CFLAGS"; then
13859 pkg_cv_SACKPT_CFLAGS="$SACKPT_CFLAGS"
13860 elif test -n "$PKG_CONFIG"; then
13861 if test -n "$PKG_CONFIG" && \
13862 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\"") >&5
13863 ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5
13864 ac_status=$?
13865 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13866 (exit $ac_status); }; then
13867 pkg_cv_SACKPT_CFLAGS=`$PKG_CONFIG --cflags "libSaCkpt" 2>/dev/null`
13868else
13869 pkg_failed=yes
13870fi
13871 else
13872 pkg_failed=untried
13873fi
13874if test -n "$SACKPT_LIBS"; then
13875 pkg_cv_SACKPT_LIBS="$SACKPT_LIBS"
13876 elif test -n "$PKG_CONFIG"; then
13877 if test -n "$PKG_CONFIG" && \
13878 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\"") >&5
13879 ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5
13880 ac_status=$?
13881 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13882 (exit $ac_status); }; then
13883 pkg_cv_SACKPT_LIBS=`$PKG_CONFIG --libs "libSaCkpt" 2>/dev/null`
13884else
13885 pkg_failed=yes
13886fi
13887 else
13888 pkg_failed=untried
13889fi
13890
13891
13892
13893if test $pkg_failed = yes; then
13894
13895if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13896 _pkg_short_errors_supported=yes
13897else
13898 _pkg_short_errors_supported=no
13899fi
13900 if test $_pkg_short_errors_supported = yes; then
13901 SACKPT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaCkpt" 2>&1`
13902 else
13903 SACKPT_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaCkpt" 2>&1`
13904 fi
13905 # Put the nasty error message in config.log where it belongs
13906 echo "$SACKPT_PKG_ERRORS" >&5
13907
13908 { { $as_echo "$as_me:$LINENO: error: Package requirements (libSaCkpt) were not met:
13909
13910$SACKPT_PKG_ERRORS
13911
13912Consider adjusting the PKG_CONFIG_PATH environment variable if you
13913installed software in a non-standard prefix.
13914
13915Alternatively, you may set the environment variables SACKPT_CFLAGS
13916and SACKPT_LIBS to avoid the need to call pkg-config.
8c4e8a18
FDN
13917See the pkg-config man page for more details.
13918" >&5
90c80887
AK
13919$as_echo "$as_me: error: Package requirements (libSaCkpt) were not met:
13920
13921$SACKPT_PKG_ERRORS
13922
13923Consider adjusting the PKG_CONFIG_PATH environment variable if you
13924installed software in a non-standard prefix.
13925
13926Alternatively, you may set the environment variables SACKPT_CFLAGS
13927and SACKPT_LIBS to avoid the need to call pkg-config.
8c4e8a18
FDN
13928See the pkg-config man page for more details.
13929" >&2;}
90c80887
AK
13930 { (exit 1); exit 1; }; }
13931elif test $pkg_failed = untried; then
13932 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13933$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13934{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
13935is in your PATH or set the PKG_CONFIG environment variable to the full
13936path to pkg-config.
13937
13938Alternatively, you may set the environment variables SACKPT_CFLAGS
13939and SACKPT_LIBS to avoid the need to call pkg-config.
13940See the pkg-config man page for more details.
13941
13942To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13943See \`config.log' for more details." >&5
13944$as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
13945is in your PATH or set the PKG_CONFIG environment variable to the full
13946path to pkg-config.
13947
13948Alternatively, you may set the environment variables SACKPT_CFLAGS
13949and SACKPT_LIBS to avoid the need to call pkg-config.
13950See the pkg-config man page for more details.
13951
13952To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13953See \`config.log' for more details." >&2;}
13954 { (exit 1); exit 1; }; }; }
13955else
13956 SACKPT_CFLAGS=$pkg_cv_SACKPT_CFLAGS
13957 SACKPT_LIBS=$pkg_cv_SACKPT_LIBS
13958 { $as_echo "$as_me:$LINENO: result: yes" >&5
13959$as_echo "yes" >&6; }
8c4e8a18 13960 :
90c80887
AK
13961fi
13962 if test x$HAVE_CPG != xyes; then
a946372e
AK
13963
13964pkg_failed=no
13965{ $as_echo "$as_me:$LINENO: checking for CPG" >&5
13966$as_echo_n "checking for CPG... " >&6; }
13967
13968if test -n "$CPG_CFLAGS"; then
13969 pkg_cv_CPG_CFLAGS="$CPG_CFLAGS"
13970 elif test -n "$PKG_CONFIG"; then
13971 if test -n "$PKG_CONFIG" && \
13972 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
13973 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
13974 ac_status=$?
13975 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13976 (exit $ac_status); }; then
13977 pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
13978else
13979 pkg_failed=yes
13980fi
13981 else
13982 pkg_failed=untried
13983fi
13984if test -n "$CPG_LIBS"; then
13985 pkg_cv_CPG_LIBS="$CPG_LIBS"
13986 elif test -n "$PKG_CONFIG"; then
13987 if test -n "$PKG_CONFIG" && \
13988 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
13989 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
13990 ac_status=$?
13991 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13992 (exit $ac_status); }; then
13993 pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
13994else
13995 pkg_failed=yes
13996fi
13997 else
13998 pkg_failed=untried
13999fi
14000
14001
14002
14003if test $pkg_failed = yes; then
14004
14005if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14006 _pkg_short_errors_supported=yes
14007else
14008 _pkg_short_errors_supported=no
14009fi
14010 if test $_pkg_short_errors_supported = yes; then
14011 CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
14012 else
14013 CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
14014 fi
14015 # Put the nasty error message in config.log where it belongs
14016 echo "$CPG_PKG_ERRORS" >&5
14017
90c80887
AK
14018 { { $as_echo "$as_me:$LINENO: error: Package requirements (libcpg) were not met:
14019
14020$CPG_PKG_ERRORS
14021
14022Consider adjusting the PKG_CONFIG_PATH environment variable if you
14023installed software in a non-standard prefix.
14024
14025Alternatively, you may set the environment variables CPG_CFLAGS
14026and CPG_LIBS to avoid the need to call pkg-config.
8c4e8a18
FDN
14027See the pkg-config man page for more details.
14028" >&5
90c80887
AK
14029$as_echo "$as_me: error: Package requirements (libcpg) were not met:
14030
14031$CPG_PKG_ERRORS
14032
14033Consider adjusting the PKG_CONFIG_PATH environment variable if you
14034installed software in a non-standard prefix.
14035
14036Alternatively, you may set the environment variables CPG_CFLAGS
14037and CPG_LIBS to avoid the need to call pkg-config.
8c4e8a18
FDN
14038See the pkg-config man page for more details.
14039" >&2;}
90c80887 14040 { (exit 1); exit 1; }; }
a946372e 14041elif test $pkg_failed = untried; then
90c80887
AK
14042 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14043$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14044{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
14045is in your PATH or set the PKG_CONFIG environment variable to the full
14046path to pkg-config.
14047
14048Alternatively, you may set the environment variables CPG_CFLAGS
14049and CPG_LIBS to avoid the need to call pkg-config.
14050See the pkg-config man page for more details.
14051
14052To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14053See \`config.log' for more details." >&5
14054$as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
14055is in your PATH or set the PKG_CONFIG environment variable to the full
14056path to pkg-config.
14057
14058Alternatively, you may set the environment variables CPG_CFLAGS
14059and CPG_LIBS to avoid the need to call pkg-config.
14060See the pkg-config man page for more details.
14061
14062To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14063See \`config.log' for more details." >&2;}
14064 { (exit 1); exit 1; }; }; }
a946372e
AK
14065else
14066 CPG_CFLAGS=$pkg_cv_CPG_CFLAGS
14067 CPG_LIBS=$pkg_cv_CPG_LIBS
14068 { $as_echo "$as_me:$LINENO: result: yes" >&5
14069$as_echo "yes" >&6; }
8c4e8a18 14070 :
a946372e 14071fi
90c80887 14072 fi
a946372e
AK
14073fi
14074
14075################################################################################
14076{ $as_echo "$as_me:$LINENO: checking whether to enable debugging" >&5
14077$as_echo_n "checking whether to enable debugging... " >&6; }
14078# Check whether --enable-debug was given.
14079if test "${enable_debug+set}" = set; then
14080 enableval=$enable_debug; DEBUG=$enableval
14081else
14082 DEBUG=no
14083fi
14084
14085{ $as_echo "$as_me:$LINENO: result: $DEBUG" >&5
14086$as_echo "$DEBUG" >&6; }
14087
14088if test x$DEBUG = xyes; then
14089 COPTIMISE_FLAG=
14090else
14091 CSCOPE_CMD=
14092fi
14093
14094################################################################################
14095{ $as_echo "$as_me:$LINENO: checking for C optimisation flag" >&5
14096$as_echo_n "checking for C optimisation flag... " >&6; }
14097
14098# Check whether --with-optimisation was given.
14099if test "${with_optimisation+set}" = set; then
71082be4 14100 withval=$with_optimisation; COPTIMISE_FLAG=$withval
a946372e
AK
14101fi
14102
14103{ $as_echo "$as_me:$LINENO: result: $COPTIMISE_FLAG" >&5
14104$as_echo "$COPTIMISE_FLAG" >&6; }
14105
14106################################################################################
14107{ $as_echo "$as_me:$LINENO: checking whether to gather gcov profiling data" >&5
14108$as_echo_n "checking whether to gather gcov profiling data... " >&6; }
14109# Check whether --enable-profiling was given.
14110if test "${enable_profiling+set}" = set; then
5556819a 14111 enableval=$enable_profiling; PROFILING=$enableval
fddafd51 14112else
5556819a 14113 PROFILING=no
fddafd51
ZK
14114fi
14115
ec6a6fbe
AK
14116{ $as_echo "$as_me:$LINENO: result: $PROFILING" >&5
14117$as_echo "$PROFILING" >&6; }
5556819a
AK
14118
14119if test "x$PROFILING" = xyes; then
14120 COPTIMISE_FLAG="$COPTIMISE_FLAG -fprofile-arcs -ftest-coverage"
14121 # Extract the first word of "lcov", so it can be a program name with args.
fddafd51 14122set dummy lcov; ac_word=$2
ec6a6fbe
AK
14123{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14124$as_echo_n "checking for $ac_word... " >&6; }
fddafd51 14125if test "${ac_cv_path_LCOV+set}" = set; then
ec6a6fbe 14126 $as_echo_n "(cached) " >&6
fddafd51
ZK
14127else
14128 case $LCOV in
14129 [\\/]* | ?:[\\/]*)
14130 ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path.
14131 ;;
14132 *)
14133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14134for as_dir in $PATH
14135do
14136 IFS=$as_save_IFS
14137 test -z "$as_dir" && as_dir=.
14138 for ac_exec_ext in '' $ac_executable_extensions; do
14139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14140 ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 14141 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
fddafd51
ZK
14142 break 2
14143 fi
14144done
14145done
14146IFS=$as_save_IFS
14147
14148 ;;
14149esac
14150fi
14151LCOV=$ac_cv_path_LCOV
14152if test -n "$LCOV"; then
ec6a6fbe
AK
14153 { $as_echo "$as_me:$LINENO: result: $LCOV" >&5
14154$as_echo "$LCOV" >&6; }
fddafd51 14155else
ec6a6fbe
AK
14156 { $as_echo "$as_me:$LINENO: result: no" >&5
14157$as_echo "no" >&6; }
fddafd51
ZK
14158fi
14159
14160
5556819a 14161 # Extract the first word of "genhtml", so it can be a program name with args.
fddafd51 14162set dummy genhtml; ac_word=$2
ec6a6fbe
AK
14163{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14164$as_echo_n "checking for $ac_word... " >&6; }
fddafd51 14165if test "${ac_cv_path_GENHTML+set}" = set; then
ec6a6fbe 14166 $as_echo_n "(cached) " >&6
fddafd51
ZK
14167else
14168 case $GENHTML in
14169 [\\/]* | ?:[\\/]*)
14170 ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path.
14171 ;;
14172 *)
14173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14174for as_dir in $PATH
14175do
14176 IFS=$as_save_IFS
14177 test -z "$as_dir" && as_dir=.
14178 for ac_exec_ext in '' $ac_executable_extensions; do
14179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14180 ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 14181 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
fddafd51
ZK
14182 break 2
14183 fi
14184done
14185done
14186IFS=$as_save_IFS
14187
14188 ;;
14189esac
14190fi
14191GENHTML=$ac_cv_path_GENHTML
14192if test -n "$GENHTML"; then
ec6a6fbe
AK
14193 { $as_echo "$as_me:$LINENO: result: $GENHTML" >&5
14194$as_echo "$GENHTML" >&6; }
fddafd51 14195else
ec6a6fbe
AK
14196 { $as_echo "$as_me:$LINENO: result: no" >&5
14197$as_echo "no" >&6; }
fddafd51
ZK
14198fi
14199
14200
fd4728e1 14201 if test -z "$LCOV" -o -z "$GENHTML"; then
ec6a6fbe
AK
14202 { { $as_echo "$as_me:$LINENO: error: lcov and genhtml are required for profiling" >&5
14203$as_echo "$as_me: error: lcov and genhtml are required for profiling" >&2;}
b145d876
ZK
14204 { (exit 1); exit 1; }; }
14205 fi
fd4728e1
ZK
14206 # Extract the first word of "genpng", so it can be a program name with args.
14207set dummy genpng; ac_word=$2
14208{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14209$as_echo_n "checking for $ac_word... " >&6; }
14210if test "${ac_cv_path_GENPNG+set}" = set; then
14211 $as_echo_n "(cached) " >&6
14212else
14213 case $GENPNG in
14214 [\\/]* | ?:[\\/]*)
14215 ac_cv_path_GENPNG="$GENPNG" # Let the user override the test with a path.
14216 ;;
14217 *)
14218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14219for as_dir in $PATH
14220do
14221 IFS=$as_save_IFS
14222 test -z "$as_dir" && as_dir=.
14223 for ac_exec_ext in '' $ac_executable_extensions; do
14224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14225 ac_cv_path_GENPNG="$as_dir/$ac_word$ac_exec_ext"
14226 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14227 break 2
14228 fi
14229done
14230done
14231IFS=$as_save_IFS
14232
14233 ;;
14234esac
14235fi
14236GENPNG=$ac_cv_path_GENPNG
14237if test -n "$GENPNG"; then
14238 { $as_echo "$as_me:$LINENO: result: $GENPNG" >&5
14239$as_echo "$GENPNG" >&6; }
14240else
14241 { $as_echo "$as_me:$LINENO: result: no" >&5
14242$as_echo "no" >&6; }
14243fi
14244
14245
14246 if test -n "$GENPNG"; then
14247 { $as_echo "$as_me:$LINENO: checking whether $GENPNG has all required modules" >&5
14248$as_echo_n "checking whether $GENPNG has all required modules... " >&6; }
14249 if $GENPNG --help > /dev/null 2>&1 ; then
14250 { $as_echo "$as_me:$LINENO: result: ok" >&5
14251$as_echo "ok" >&6; }
14252 GENHTML="$GENHTML --frames"
14253 else
14254 { $as_echo "$as_me:$LINENO: result: not supported" >&5
14255$as_echo "not supported" >&6; }
14256 { $as_echo "$as_me:$LINENO: WARNING: GD.pm perl module is not installed" >&5
14257$as_echo "$as_me: WARNING: GD.pm perl module is not installed" >&2;}
14258 GENPNG=
14259 fi
14260 fi
5556819a 14261fi
d0191583 14262
54b362f9
AK
14263################################################################################
14264{ $as_echo "$as_me:$LINENO: checking whether to enable unit testing" >&5
14265$as_echo_n "checking whether to enable unit testing... " >&6; }
14266# Check whether --enable-testing was given.
14267if test "${enable_testing+set}" = set; then
14268 enableval=$enable_testing; TESTING=$enableval
14269else
14270 TESTING=no
14271fi
14272
14273{ $as_echo "$as_me:$LINENO: result: $TESTING" >&5
14274$as_echo "$TESTING" >&6; }
14275
14276if test "$TESTING" = yes; then
14277 # Extract the first word of "ruby1.9", so it can be a program name with args.
14278set dummy ruby1.9; ac_word=$2
14279{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14280$as_echo_n "checking for $ac_word... " >&6; }
14281if test "${ac_cv_path_RUBY19+set}" = set; then
14282 $as_echo_n "(cached) " >&6
14283else
14284 case $RUBY19 in
14285 [\\/]* | ?:[\\/]*)
14286 ac_cv_path_RUBY19="$RUBY19" # Let the user override the test with a path.
14287 ;;
14288 *)
14289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14290for as_dir in $PATH
14291do
14292 IFS=$as_save_IFS
14293 test -z "$as_dir" && as_dir=.
14294 for ac_exec_ext in '' $ac_executable_extensions; do
14295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14296 ac_cv_path_RUBY19="$as_dir/$ac_word$ac_exec_ext"
14297 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14298 break 2
14299 fi
14300done
14301done
14302IFS=$as_save_IFS
14303
14304 ;;
14305esac
14306fi
14307RUBY19=$ac_cv_path_RUBY19
14308if test -n "$RUBY19"; then
14309 { $as_echo "$as_me:$LINENO: result: $RUBY19" >&5
14310$as_echo "$RUBY19" >&6; }
14311else
14312 { $as_echo "$as_me:$LINENO: result: no" >&5
14313$as_echo "no" >&6; }
14314fi
14315
14316
14317 # Extract the first word of "valgrind", so it can be a program name with args.
14318set dummy valgrind; ac_word=$2
14319{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14320$as_echo_n "checking for $ac_word... " >&6; }
14321if test "${ac_cv_path_VALGRIND+set}" = set; then
14322 $as_echo_n "(cached) " >&6
14323else
14324 case $VALGRIND in
14325 [\\/]* | ?:[\\/]*)
14326 ac_cv_path_VALGRIND="$VALGRIND" # Let the user override the test with a path.
14327 ;;
14328 *)
14329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14330for as_dir in $PATH
14331do
14332 IFS=$as_save_IFS
14333 test -z "$as_dir" && as_dir=.
14334 for ac_exec_ext in '' $ac_executable_extensions; do
14335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14336 ac_cv_path_VALGRIND="$as_dir/$ac_word$ac_exec_ext"
14337 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14338 break 2
14339 fi
14340done
14341done
14342IFS=$as_save_IFS
14343
14344 ;;
14345esac
14346fi
14347VALGRIND=$ac_cv_path_VALGRIND
14348if test -n "$VALGRIND"; then
14349 { $as_echo "$as_me:$LINENO: result: $VALGRIND" >&5
14350$as_echo "$VALGRIND" >&6; }
14351else
14352 { $as_echo "$as_me:$LINENO: result: no" >&5
14353$as_echo "no" >&6; }
14354fi
14355
14356
14357 if test -z "$RUBY19" -o -z "$VALGRIND"; then
14358 { { $as_echo "$as_me:$LINENO: error: ruby1.9 and valgrind are required for testing" >&5
14359$as_echo "$as_me: error: ruby1.9 and valgrind are required for testing" >&2;}
14360 { (exit 1); exit 1; }; }
14361 fi
14362fi
14363
d1e8046f
AK
14364################################################################################
14365{ $as_echo "$as_me:$LINENO: checking whether to enable valgrind awareness of pools" >&5
14366$as_echo_n "checking whether to enable valgrind awareness of pools... " >&6; }
14367# Check whether --enable-valgrind_pool was given.
14368if test "${enable_valgrind_pool+set}" = set; then
14369 enableval=$enable_valgrind_pool; VALGRIND_POOL=$enableval
14370else
14371 VALGRIND_POOL=no
14372fi
14373
14374{ $as_echo "$as_me:$LINENO: result: $VALGRIND_POOL" >&5
14375$as_echo "$VALGRIND_POOL" >&6; }
14376
14377if test "$VALGRIND_POOL" = yes; then
14378
14379for ac_header in valgrind/memcheck.h
14380do
14381as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14382if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14383 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14384$as_echo_n "checking for $ac_header... " >&6; }
14385if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14386 $as_echo_n "(cached) " >&6
14387fi
14388ac_res=`eval 'as_val=${'$as_ac_Header'}
14389 $as_echo "$as_val"'`
14390 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14391$as_echo "$ac_res" >&6; }
14392else
14393 # Is the header compilable?
14394{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14395$as_echo_n "checking $ac_header usability... " >&6; }
14396cat >conftest.$ac_ext <<_ACEOF
14397/* confdefs.h. */
14398_ACEOF
14399cat confdefs.h >>conftest.$ac_ext
14400cat >>conftest.$ac_ext <<_ACEOF
14401/* end confdefs.h. */
14402$ac_includes_default
14403#include <$ac_header>
14404_ACEOF
14405rm -f conftest.$ac_objext
14406if { (ac_try="$ac_compile"
14407case "(($ac_try" in
14408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14409 *) ac_try_echo=$ac_try;;
14410esac
14411eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14412$as_echo "$ac_try_echo") >&5
14413 (eval "$ac_compile") 2>conftest.er1
14414 ac_status=$?
14415 grep -v '^ *+' conftest.er1 >conftest.err
14416 rm -f conftest.er1
14417 cat conftest.err >&5
14418 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14419 (exit $ac_status); } && {
14420 test -z "$ac_c_werror_flag" ||
14421 test ! -s conftest.err
14422 } && test -s conftest.$ac_objext; then
14423 ac_header_compiler=yes
14424else
14425 $as_echo "$as_me: failed program was:" >&5
14426sed 's/^/| /' conftest.$ac_ext >&5
14427
14428 ac_header_compiler=no
14429fi
14430
14431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14432{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14433$as_echo "$ac_header_compiler" >&6; }
14434
14435# Is the header present?
14436{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14437$as_echo_n "checking $ac_header presence... " >&6; }
14438cat >conftest.$ac_ext <<_ACEOF
14439/* confdefs.h. */
14440_ACEOF
14441cat confdefs.h >>conftest.$ac_ext
14442cat >>conftest.$ac_ext <<_ACEOF
14443/* end confdefs.h. */
14444#include <$ac_header>
14445_ACEOF
14446if { (ac_try="$ac_cpp conftest.$ac_ext"
14447case "(($ac_try" in
14448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14449 *) ac_try_echo=$ac_try;;
14450esac
14451eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14452$as_echo "$ac_try_echo") >&5
14453 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14454 ac_status=$?
14455 grep -v '^ *+' conftest.er1 >conftest.err
14456 rm -f conftest.er1
14457 cat conftest.err >&5
14458 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14459 (exit $ac_status); } >/dev/null && {
14460 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14461 test ! -s conftest.err
14462 }; then
14463 ac_header_preproc=yes
14464else
14465 $as_echo "$as_me: failed program was:" >&5
14466sed 's/^/| /' conftest.$ac_ext >&5
14467
14468 ac_header_preproc=no
14469fi
14470
14471rm -f conftest.err conftest.$ac_ext
14472{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14473$as_echo "$ac_header_preproc" >&6; }
14474
14475# So? What about this header?
14476case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14477 yes:no: )
14478 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14479$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14480 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14481$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14482 ac_header_preproc=yes
14483 ;;
14484 no:yes:* )
14485 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14486$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14487 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14488$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14489 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14490$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14491 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14492$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14493 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14494$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14495 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14496$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14497
14498 ;;
14499esac
14500{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14501$as_echo_n "checking for $ac_header... " >&6; }
14502if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14503 $as_echo_n "(cached) " >&6
14504else
14505 eval "$as_ac_Header=\$ac_header_preproc"
14506fi
14507ac_res=`eval 'as_val=${'$as_ac_Header'}
14508 $as_echo "$as_val"'`
14509 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14510$as_echo "$ac_res" >&6; }
14511
14512fi
14513as_val=`eval 'as_val=${'$as_ac_Header'}
14514 $as_echo "$as_val"'`
14515 if test "x$as_val" = x""yes; then
14516 cat >>confdefs.h <<_ACEOF
14517#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14518_ACEOF
14519
14520else
14521 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
14522$as_echo "$as_me: error: bailing out" >&2;}
14523 { (exit 1); exit 1; }; }
14524fi
14525
14526done
14527
14528
14529cat >>confdefs.h <<\_ACEOF
14530#define VALGRIND_POOL 1
14531_ACEOF
14532
14533fi
14534
d0191583 14535################################################################################
ec6a6fbe
AK
14536{ $as_echo "$as_me:$LINENO: checking whether to use device-mapper" >&5
14537$as_echo_n "checking whether to use device-mapper... " >&6; }
d0191583
JM
14538# Check whether --enable-devmapper was given.
14539if test "${enable_devmapper+set}" = set; then
14540 enableval=$enable_devmapper; DEVMAPPER=$enableval
fc54be10
AK
14541fi
14542
ec6a6fbe
AK
14543{ $as_echo "$as_me:$LINENO: result: $DEVMAPPER" >&5
14544$as_echo "$DEVMAPPER" >&6; }
d0191583
JM
14545
14546if test x$DEVMAPPER = xyes; then
ad6254c5
AK
14547
14548cat >>confdefs.h <<\_ACEOF
d0191583 14549#define DEVMAPPER_SUPPORT 1
ad6254c5
AK
14550_ACEOF
14551
14552fi
14553
a5f46f6a
AK
14554################################################################################
14555{ $as_echo "$as_me:$LINENO: checking whether to enable synchronisation with udev processing" >&5
14556$as_echo_n "checking whether to enable synchronisation with udev processing... " >&6; }
14557# Check whether --enable-udev_sync was given.
14558if test "${enable_udev_sync+set}" = set; then
14559 enableval=$enable_udev_sync; UDEV_SYNC=$enableval
14560else
14561 UDEV_SYNC=no
14562fi
14563
14564{ $as_echo "$as_me:$LINENO: result: $UDEV_SYNC" >&5
14565$as_echo "$UDEV_SYNC" >&6; }
14566
90c80887
AK
14567if test x$UDEV_SYNC = xyes; then
14568 { $as_echo "$as_me:$LINENO: checking for udev_queue_get_udev_is_active in -ludev" >&5
14569$as_echo_n "checking for udev_queue_get_udev_is_active in -ludev... " >&6; }
14570if test "${ac_cv_lib_udev_udev_queue_get_udev_is_active+set}" = set; then
14571 $as_echo_n "(cached) " >&6
14572else
14573 ac_check_lib_save_LIBS=$LIBS
14574LIBS="-ludev $LIBS"
14575cat >conftest.$ac_ext <<_ACEOF
14576/* confdefs.h. */
14577_ACEOF
14578cat confdefs.h >>conftest.$ac_ext
14579cat >>conftest.$ac_ext <<_ACEOF
14580/* end confdefs.h. */
14581
14582/* Override any GCC internal prototype to avoid an error.
14583 Use char because int might match the return type of a GCC
14584 builtin and then its argument prototype would still apply. */
14585#ifdef __cplusplus
14586extern "C"
14587#endif
14588char udev_queue_get_udev_is_active ();
14589int
14590main ()
14591{
14592return udev_queue_get_udev_is_active ();
14593 ;
14594 return 0;
14595}
14596_ACEOF
14597rm -f conftest.$ac_objext conftest$ac_exeext
14598if { (ac_try="$ac_link"
14599case "(($ac_try" in
14600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14601 *) ac_try_echo=$ac_try;;
14602esac
14603eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14604$as_echo "$ac_try_echo") >&5
14605 (eval "$ac_link") 2>conftest.er1
14606 ac_status=$?
14607 grep -v '^ *+' conftest.er1 >conftest.err
14608 rm -f conftest.er1
14609 cat conftest.err >&5
14610 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14611 (exit $ac_status); } && {
14612 test -z "$ac_c_werror_flag" ||
14613 test ! -s conftest.err
14614 } && test -s conftest$ac_exeext && {
14615 test "$cross_compiling" = yes ||
14616 $as_test_x conftest$ac_exeext
14617 }; then
14618 ac_cv_lib_udev_udev_queue_get_udev_is_active=yes
14619else
14620 $as_echo "$as_me: failed program was:" >&5
14621sed 's/^/| /' conftest.$ac_ext >&5
14622
14623 ac_cv_lib_udev_udev_queue_get_udev_is_active=no
14624fi
14625
14626rm -rf conftest.dSYM
14627rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14628 conftest$ac_exeext conftest.$ac_ext
14629LIBS=$ac_check_lib_save_LIBS
14630fi
14631{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_udev_udev_queue_get_udev_is_active" >&5
14632$as_echo "$ac_cv_lib_udev_udev_queue_get_udev_is_active" >&6; }
14633if test "x$ac_cv_lib_udev_udev_queue_get_udev_is_active" = x""yes; then
f7f0854e 14634 UDEV_PC="libudev"; UDEV_LIBS="-ludev"
90c80887 14635else
5161ecb9
PR
14636 { { $as_echo "$as_me:$LINENO: error: bailing out... libudev library is required" >&5
14637$as_echo "$as_me: error: bailing out... libudev library is required" >&2;}
14638 { (exit 1); exit 1; }; }
90c80887
AK
14639fi
14640
14641
90c80887 14642cat >>confdefs.h <<\_ACEOF
5161ecb9 14643#define UDEV_SYNC_SUPPORT 1
90c80887
AK
14644_ACEOF
14645
90c80887
AK
14646fi
14647
5161ecb9
PR
14648{ $as_echo "$as_me:$LINENO: checking whether to enable installation of udev rules required for synchronisation" >&5
14649$as_echo_n "checking whether to enable installation of udev rules required for synchronisation... " >&6; }
14650# Check whether --enable-udev_rules was given.
14651if test "${enable_udev_rules+set}" = set; then
14652 enableval=$enable_udev_rules; UDEV_RULES=$enableval
14653else
14654 UDEV_RULES=$UDEV_SYNC
14655fi
14656
14657{ $as_echo "$as_me:$LINENO: result: $UDEV_RULES" >&5
14658$as_echo "$UDEV_RULES" >&6; }
14659
93bd259b
AK
14660################################################################################
14661# Check whether --enable-compat was given.
14662if test "${enable_compat+set}" = set; then
14663 enableval=$enable_compat; DM_COMPAT=$enableval
14664else
14665 DM_COMPAT=no
14666fi
14667
14668
95eaa683
AK
14669################################################################################
14670# Check whether --enable-units-compat was given.
14671if test "${enable_units_compat+set}" = set; then
14672 enableval=$enable_units_compat; UNITS_COMPAT=$enableval
14673else
14674 UNITS_COMPAT=no
14675fi
14676
14677
14678if test x$UNITS_COMPAT = xyes; then
14679
14680cat >>confdefs.h <<\_ACEOF
14681#define DEFAULT_SI_UNIT_CONSISTENCY 0
14682_ACEOF
14683
14684fi
14685
93bd259b
AK
14686################################################################################
14687# Check whether --enable-ioctl was given.
14688if test "${enable_ioctl+set}" = set; then
14689 enableval=$enable_ioctl; DM_IOCTLS=$enableval
14690fi
14691
14692
d0191583 14693################################################################################
ec6a6fbe
AK
14694{ $as_echo "$as_me:$LINENO: checking whether to enable O_DIRECT" >&5
14695$as_echo_n "checking whether to enable O_DIRECT... " >&6; }
d0191583
JM
14696# Check whether --enable-o_direct was given.
14697if test "${enable_o_direct+set}" = set; then
14698 enableval=$enable_o_direct; ODIRECT=$enableval
ad6254c5 14699fi
ad6254c5 14700
ec6a6fbe
AK
14701{ $as_echo "$as_me:$LINENO: result: $ODIRECT" >&5
14702$as_echo "$ODIRECT" >&6; }
ad6254c5 14703
d0191583 14704if test x$ODIRECT = xyes; then
ad6254c5 14705
d0191583
JM
14706cat >>confdefs.h <<\_ACEOF
14707#define O_DIRECT_SUPPORT 1
14708_ACEOF
ad6254c5 14709
d0191583 14710fi
ad6254c5 14711
572fefeb
AK
14712################################################################################
14713{ $as_echo "$as_me:$LINENO: checking whether to build liblvm2app.so application library" >&5
14714$as_echo_n "checking whether to build liblvm2app.so application library... " >&6; }
14715# Check whether --enable-applib was given.
14716if test "${enable_applib+set}" = set; then
14717 enableval=$enable_applib; APPLIB=$enableval
14718else
14719 APPLIB=no
14720fi
14721
14722{ $as_echo "$as_me:$LINENO: result: $APPLIB" >&5
14723$as_echo "$APPLIB" >&6; }
14724
14725test x$APPLIB = xyes \
14726 && LVM2APP_LIB=-llvm2app \
14727 || LVM2APP_LIB=
14728
d0191583 14729################################################################################
ec6a6fbe
AK
14730{ $as_echo "$as_me:$LINENO: checking whether to compile liblvm2cmd.so" >&5
14731$as_echo_n "checking whether to compile liblvm2cmd.so... " >&6; }
d0191583
JM
14732# Check whether --enable-cmdlib was given.
14733if test "${enable_cmdlib+set}" = set; then
14734 enableval=$enable_cmdlib; CMDLIB=$enableval
ad6254c5 14735else
d0191583
JM
14736 CMDLIB=no
14737fi
8a2fc586 14738
ec6a6fbe
AK
14739{ $as_echo "$as_me:$LINENO: result: $CMDLIB" >&5
14740$as_echo "$CMDLIB" >&6; }
8a2fc586 14741
2a9a80c9 14742test x$CMDLIB = xyes \
d179cc7a
JM
14743 && LVM2CMD_LIB=-llvm2cmd \
14744 || LVM2CMD_LIB=
14745
93bd259b
AK
14746################################################################################
14747# Check whether --enable-pkgconfig was given.
14748if test "${enable_pkgconfig+set}" = set; then
14749 enableval=$enable_pkgconfig; PKGCONFIG=$enableval
14750else
14751 PKGCONFIG=no
14752fi
14753
2a9a80c9 14754
23b059e7
ZK
14755################################################################################
14756# Check whether --enable-write_install was given.
14757if test "${enable_write_install+set}" = set; then
14758 enableval=$enable_write_install; WRITE_INSTALL=$enableval
14759else
14760 WRITE_INSTALL=no
14761fi
14762
14763
d0191583 14764################################################################################
ec6a6fbe
AK
14765{ $as_echo "$as_me:$LINENO: checking whether to install fsadm" >&5
14766$as_echo_n "checking whether to install fsadm... " >&6; }
d0191583
JM
14767# Check whether --enable-fsadm was given.
14768if test "${enable_fsadm+set}" = set; then
14769 enableval=$enable_fsadm; FSADM=$enableval
14770fi
8a2fc586 14771
ec6a6fbe
AK
14772{ $as_echo "$as_me:$LINENO: result: $FSADM" >&5
14773$as_echo "$FSADM" >&6; }
8a2fc586 14774
d0191583 14775################################################################################
ec6a6fbe
AK
14776{ $as_echo "$as_me:$LINENO: checking whether to use dmeventd" >&5
14777$as_echo_n "checking whether to use dmeventd... " >&6; }
d0191583
JM
14778# Check whether --enable-dmeventd was given.
14779if test "${enable_dmeventd+set}" = set; then
14780 enableval=$enable_dmeventd; DMEVENTD=$enableval
14781fi
ad6254c5 14782
ec6a6fbe
AK
14783{ $as_echo "$as_me:$LINENO: result: $DMEVENTD" >&5
14784$as_echo "$DMEVENTD" >&6; }
ad6254c5 14785
93bd259b
AK
14786BUILD_DMEVENTD=$DMEVENTD
14787
2a9a80c9
PR
14788if test x$DMEVENTD = xyes; then
14789 if test x$MIRRORS != xinternal; then
ec6a6fbe 14790 { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd currently requires --with-mirrors=internal
2a9a80c9 14791 " >&5
ec6a6fbe 14792$as_echo "$as_me: error: --enable-dmeventd currently requires --with-mirrors=internal
2a9a80c9 14793 " >&2;}
d0191583 14794 { (exit 1); exit 1; }; }
2a9a80c9
PR
14795 fi
14796 if test x$CMDLIB = xno; then
ec6a6fbe 14797 { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd requires --enable-cmdlib to be used as well
2a9a80c9 14798 " >&5
ec6a6fbe 14799$as_echo "$as_me: error: --enable-dmeventd requires --enable-cmdlib to be used as well
2a9a80c9
PR
14800 " >&2;}
14801 { (exit 1); exit 1; }; }
14802 fi
ad6254c5 14803fi
7a197a62 14804
d0191583
JM
14805if test x$DMEVENTD = xyes; then
14806
14807cat >>confdefs.h <<\_ACEOF
14808#define DMEVENTD 1
ad6254c5
AK
14809_ACEOF
14810
ad6254c5 14811fi
93bd259b
AK
14812
14813################################################################################
14814
ec6a6fbe
AK
14815{ $as_echo "$as_me:$LINENO: checking for getline in -lc" >&5
14816$as_echo_n "checking for getline in -lc... " >&6; }
93bd259b 14817if test "${ac_cv_lib_c_getline+set}" = set; then
ec6a6fbe 14818 $as_echo_n "(cached) " >&6
93bd259b
AK
14819else
14820 ac_check_lib_save_LIBS=$LIBS
14821LIBS="-lc $LIBS"
14822cat >conftest.$ac_ext <<_ACEOF
14823/* confdefs.h. */
14824_ACEOF
14825cat confdefs.h >>conftest.$ac_ext
14826cat >>conftest.$ac_ext <<_ACEOF
14827/* end confdefs.h. */
14828
14829/* Override any GCC internal prototype to avoid an error.
14830 Use char because int might match the return type of a GCC
14831 builtin and then its argument prototype would still apply. */
14832#ifdef __cplusplus
14833extern "C"
14834#endif
14835char getline ();
14836int
14837main ()
14838{
14839return getline ();
14840 ;
14841 return 0;
14842}
14843_ACEOF
14844rm -f conftest.$ac_objext conftest$ac_exeext
14845if { (ac_try="$ac_link"
14846case "(($ac_try" in
14847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14848 *) ac_try_echo=$ac_try;;
14849esac
ec6a6fbe
AK
14850eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14851$as_echo "$ac_try_echo") >&5
93bd259b
AK
14852 (eval "$ac_link") 2>conftest.er1
14853 ac_status=$?
14854 grep -v '^ *+' conftest.er1 >conftest.err
14855 rm -f conftest.er1
14856 cat conftest.err >&5
ec6a6fbe 14857 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
93bd259b
AK
14858 (exit $ac_status); } && {
14859 test -z "$ac_c_werror_flag" ||
14860 test ! -s conftest.err
ec6a6fbe
AK
14861 } && test -s conftest$ac_exeext && {
14862 test "$cross_compiling" = yes ||
14863 $as_test_x conftest$ac_exeext
14864 }; then
93bd259b
AK
14865 ac_cv_lib_c_getline=yes
14866else
ec6a6fbe 14867 $as_echo "$as_me: failed program was:" >&5
93bd259b
AK
14868sed 's/^/| /' conftest.$ac_ext >&5
14869
14870 ac_cv_lib_c_getline=no
14871fi
14872
ec6a6fbe 14873rm -rf conftest.dSYM
93bd259b
AK
14874rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14875 conftest$ac_exeext conftest.$ac_ext
14876LIBS=$ac_check_lib_save_LIBS
14877fi
ec6a6fbe
AK
14878{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_getline" >&5
14879$as_echo "$ac_cv_lib_c_getline" >&6; }
14880if test "x$ac_cv_lib_c_getline" = x""yes; then
93bd259b
AK
14881
14882cat >>confdefs.h <<\_ACEOF
14883#define HAVE_GETLINE 1
14884_ACEOF
14885
14886fi
14887
14888
14889################################################################################
14890
ec6a6fbe
AK
14891{ $as_echo "$as_me:$LINENO: checking for canonicalize_file_name in -lc" >&5
14892$as_echo_n "checking for canonicalize_file_name in -lc... " >&6; }
93bd259b 14893if test "${ac_cv_lib_c_canonicalize_file_name+set}" = set; then
ec6a6fbe 14894 $as_echo_n "(cached) " >&6
93bd259b
AK
14895else
14896 ac_check_lib_save_LIBS=$LIBS
14897LIBS="-lc $LIBS"
14898cat >conftest.$ac_ext <<_ACEOF
14899/* confdefs.h. */
14900_ACEOF
14901cat confdefs.h >>conftest.$ac_ext
14902cat >>conftest.$ac_ext <<_ACEOF
14903/* end confdefs.h. */
14904
14905/* Override any GCC internal prototype to avoid an error.
14906 Use char because int might match the return type of a GCC
14907 builtin and then its argument prototype would still apply. */
14908#ifdef __cplusplus
14909extern "C"
14910#endif
14911char canonicalize_file_name ();
14912int
14913main ()
14914{
14915return canonicalize_file_name ();
14916 ;
14917 return 0;
14918}
14919_ACEOF
14920rm -f conftest.$ac_objext conftest$ac_exeext
14921if { (ac_try="$ac_link"
14922case "(($ac_try" in
14923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14924 *) ac_try_echo=$ac_try;;
14925esac
ec6a6fbe
AK
14926eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14927$as_echo "$ac_try_echo") >&5
93bd259b
AK
14928 (eval "$ac_link") 2>conftest.er1
14929 ac_status=$?
14930 grep -v '^ *+' conftest.er1 >conftest.err
14931 rm -f conftest.er1
14932 cat conftest.err >&5
ec6a6fbe 14933 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
93bd259b
AK
14934 (exit $ac_status); } && {
14935 test -z "$ac_c_werror_flag" ||
14936 test ! -s conftest.err
ec6a6fbe
AK
14937 } && test -s conftest$ac_exeext && {
14938 test "$cross_compiling" = yes ||
14939 $as_test_x conftest$ac_exeext
14940 }; then
93bd259b
AK
14941 ac_cv_lib_c_canonicalize_file_name=yes
14942else
ec6a6fbe 14943 $as_echo "$as_me: failed program was:" >&5
93bd259b
AK
14944sed 's/^/| /' conftest.$ac_ext >&5
14945
14946 ac_cv_lib_c_canonicalize_file_name=no
14947fi
14948
ec6a6fbe 14949rm -rf conftest.dSYM
93bd259b
AK
14950rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14951 conftest$ac_exeext conftest.$ac_ext
14952LIBS=$ac_check_lib_save_LIBS
14953fi
ec6a6fbe
AK
14954{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_canonicalize_file_name" >&5
14955$as_echo "$ac_cv_lib_c_canonicalize_file_name" >&6; }
14956if test "x$ac_cv_lib_c_canonicalize_file_name" = x""yes; then
93bd259b
AK
14957
14958cat >>confdefs.h <<\_ACEOF
14959#define HAVE_CANONICALIZE_FILE_NAME 1
14960_ACEOF
14961
14962fi
14963
14964
d0191583
JM
14965################################################################################
14966if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ];
14967 then exec_prefix="";
14968fi;
ad6254c5 14969
ad6254c5 14970################################################################################
ec6a6fbe
AK
14971{ $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14972$as_echo_n "checking for dlopen in -ldl... " >&6; }
ad6254c5 14973if test "${ac_cv_lib_dl_dlopen+set}" = set; then
ec6a6fbe 14974 $as_echo_n "(cached) " >&6
ad6254c5
AK
14975else
14976 ac_check_lib_save_LIBS=$LIBS
14977LIBS="-ldl $LIBS"
14978cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14979/* confdefs.h. */
14980_ACEOF
14981cat confdefs.h >>conftest.$ac_ext
14982cat >>conftest.$ac_ext <<_ACEOF
14983/* end confdefs.h. */
14984
7a197a62
AK
14985/* Override any GCC internal prototype to avoid an error.
14986 Use char because int might match the return type of a GCC
14987 builtin and then its argument prototype would still apply. */
ad6254c5
AK
14988#ifdef __cplusplus
14989extern "C"
14990#endif
ad6254c5
AK
14991char dlopen ();
14992int
14993main ()
14994{
7a197a62 14995return dlopen ();
ad6254c5
AK
14996 ;
14997 return 0;
14998}
14999_ACEOF
15000rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
15001if { (ac_try="$ac_link"
15002case "(($ac_try" in
15003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15004 *) ac_try_echo=$ac_try;;
15005esac
ec6a6fbe
AK
15006eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15007$as_echo "$ac_try_echo") >&5
7a197a62 15008 (eval "$ac_link") 2>conftest.er1
ad6254c5 15009 ac_status=$?
8a2fc586
AK
15010 grep -v '^ *+' conftest.er1 >conftest.err
15011 rm -f conftest.er1
15012 cat conftest.err >&5
ec6a6fbe 15013 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
15014 (exit $ac_status); } && {
15015 test -z "$ac_c_werror_flag" ||
15016 test ! -s conftest.err
ec6a6fbe
AK
15017 } && test -s conftest$ac_exeext && {
15018 test "$cross_compiling" = yes ||
15019 $as_test_x conftest$ac_exeext
15020 }; then
ad6254c5
AK
15021 ac_cv_lib_dl_dlopen=yes
15022else
ec6a6fbe 15023 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
15024sed 's/^/| /' conftest.$ac_ext >&5
15025
7a197a62 15026 ac_cv_lib_dl_dlopen=no
ad6254c5 15027fi
7a197a62 15028
ec6a6fbe 15029rm -rf conftest.dSYM
25fbec5b 15030rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 15031 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
15032LIBS=$ac_check_lib_save_LIBS
15033fi
ec6a6fbe
AK
15034{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15035$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15036if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
ad6254c5 15037
72b2cb61
AK
15038
15039cat >>confdefs.h <<\_ACEOF
15040#define HAVE_LIBDL 1
15041_ACEOF
15042
19a2c6e0
ZK
15043 DL_LIBS="-ldl"
15044 HAVE_LIBDL=yes
ad6254c5 15045else
19a2c6e0
ZK
15046
15047 DL_LIBS=
ad6254c5
AK
15048 HAVE_LIBDL=no
15049fi
15050
19a2c6e0 15051
ad6254c5
AK
15052################################################################################
15053if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \
15054 -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \
15055 \) -a "x$STATIC_LINK" = xyes ];
ec6a6fbe 15056 then { { $as_echo "$as_me:$LINENO: error: Features cannot be 'shared' when building statically
ad6254c5 15057" >&5
ec6a6fbe 15058$as_echo "$as_me: error: Features cannot be 'shared' when building statically
ad6254c5
AK
15059" >&2;}
15060 { (exit 1); exit 1; }; }
15061fi
15062
f30875db
ZK
15063################################################################################
15064if [ "$DMEVENTD" = yes -o "$CLVMD" != none ] ; then
15065 { $as_echo "$as_me:$LINENO: checking for pthread_mutex_lock in -lpthread" >&5
15066$as_echo_n "checking for pthread_mutex_lock in -lpthread... " >&6; }
15067if test "${ac_cv_lib_pthread_pthread_mutex_lock+set}" = set; then
15068 $as_echo_n "(cached) " >&6
15069else
15070 ac_check_lib_save_LIBS=$LIBS
15071LIBS="-lpthread $LIBS"
15072cat >conftest.$ac_ext <<_ACEOF
15073/* confdefs.h. */
15074_ACEOF
15075cat confdefs.h >>conftest.$ac_ext
15076cat >>conftest.$ac_ext <<_ACEOF
15077/* end confdefs.h. */
15078
15079/* Override any GCC internal prototype to avoid an error.
15080 Use char because int might match the return type of a GCC
15081 builtin and then its argument prototype would still apply. */
15082#ifdef __cplusplus
15083extern "C"
15084#endif
15085char pthread_mutex_lock ();
15086int
15087main ()
15088{
15089return pthread_mutex_lock ();
15090 ;
15091 return 0;
15092}
15093_ACEOF
15094rm -f conftest.$ac_objext conftest$ac_exeext
15095if { (ac_try="$ac_link"
15096case "(($ac_try" in
15097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15098 *) ac_try_echo=$ac_try;;
15099esac
15100eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15101$as_echo "$ac_try_echo") >&5
15102 (eval "$ac_link") 2>conftest.er1
15103 ac_status=$?
15104 grep -v '^ *+' conftest.er1 >conftest.err
15105 rm -f conftest.er1
15106 cat conftest.err >&5
15107 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15108 (exit $ac_status); } && {
15109 test -z "$ac_c_werror_flag" ||
15110 test ! -s conftest.err
15111 } && test -s conftest$ac_exeext && {
15112 test "$cross_compiling" = yes ||
15113 $as_test_x conftest$ac_exeext
15114 }; then
15115 ac_cv_lib_pthread_pthread_mutex_lock=yes
15116else
15117 $as_echo "$as_me: failed program was:" >&5
15118sed 's/^/| /' conftest.$ac_ext >&5
15119
15120 ac_cv_lib_pthread_pthread_mutex_lock=no
15121fi
15122
15123rm -rf conftest.dSYM
15124rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15125 conftest$ac_exeext conftest.$ac_ext
15126LIBS=$ac_check_lib_save_LIBS
15127fi
15128{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_lock" >&5
15129$as_echo "$ac_cv_lib_pthread_pthread_mutex_lock" >&6; }
15130if test "x$ac_cv_lib_pthread_pthread_mutex_lock" = x""yes; then
15131 PTHREAD_LIBS="-lpthread"
15132else
15133 hard_bailout
15134fi
15135
15136fi
15137
d0191583 15138################################################################################
ec6a6fbe
AK
15139{ $as_echo "$as_me:$LINENO: checking whether to enable selinux support" >&5
15140$as_echo_n "checking whether to enable selinux support... " >&6; }
d0191583
JM
15141# Check whether --enable-selinux was given.
15142if test "${enable_selinux+set}" = set; then
15143 enableval=$enable_selinux; SELINUX=$enableval
15144fi
15145
ec6a6fbe
AK
15146{ $as_echo "$as_me:$LINENO: result: $SELINUX" >&5
15147$as_echo "$SELINUX" >&6; }
d0191583 15148
ad6254c5
AK
15149################################################################################
15150if test x$SELINUX = xyes; then
ec6a6fbe
AK
15151 { $as_echo "$as_me:$LINENO: checking for sepol_check_context in -lsepol" >&5
15152$as_echo_n "checking for sepol_check_context in -lsepol... " >&6; }
8a2fc586 15153if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then
ec6a6fbe 15154 $as_echo_n "(cached) " >&6
8a2fc586
AK
15155else
15156 ac_check_lib_save_LIBS=$LIBS
15157LIBS="-lsepol $LIBS"
15158cat >conftest.$ac_ext <<_ACEOF
15159/* confdefs.h. */
15160_ACEOF
15161cat confdefs.h >>conftest.$ac_ext
15162cat >>conftest.$ac_ext <<_ACEOF
15163/* end confdefs.h. */
15164
7a197a62
AK
15165/* Override any GCC internal prototype to avoid an error.
15166 Use char because int might match the return type of a GCC
15167 builtin and then its argument prototype would still apply. */
8a2fc586
AK
15168#ifdef __cplusplus
15169extern "C"
15170#endif
8a2fc586
AK
15171char sepol_check_context ();
15172int
15173main ()
15174{
7a197a62 15175return sepol_check_context ();
8a2fc586
AK
15176 ;
15177 return 0;
15178}
15179_ACEOF
15180rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
15181if { (ac_try="$ac_link"
15182case "(($ac_try" in
15183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15184 *) ac_try_echo=$ac_try;;
15185esac
ec6a6fbe
AK
15186eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15187$as_echo "$ac_try_echo") >&5
7a197a62 15188 (eval "$ac_link") 2>conftest.er1
8a2fc586
AK
15189 ac_status=$?
15190 grep -v '^ *+' conftest.er1 >conftest.err
15191 rm -f conftest.er1
15192 cat conftest.err >&5
ec6a6fbe 15193 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
15194 (exit $ac_status); } && {
15195 test -z "$ac_c_werror_flag" ||
15196 test ! -s conftest.err
ec6a6fbe
AK
15197 } && test -s conftest$ac_exeext && {
15198 test "$cross_compiling" = yes ||
15199 $as_test_x conftest$ac_exeext
15200 }; then
8a2fc586
AK
15201 ac_cv_lib_sepol_sepol_check_context=yes
15202else
ec6a6fbe 15203 $as_echo "$as_me: failed program was:" >&5
8a2fc586
AK
15204sed 's/^/| /' conftest.$ac_ext >&5
15205
7a197a62 15206 ac_cv_lib_sepol_sepol_check_context=no
8a2fc586 15207fi
7a197a62 15208
ec6a6fbe 15209rm -rf conftest.dSYM
25fbec5b 15210rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586
AK
15211 conftest$ac_exeext conftest.$ac_ext
15212LIBS=$ac_check_lib_save_LIBS
15213fi
ec6a6fbe
AK
15214{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sepol_sepol_check_context" >&5
15215$as_echo "$ac_cv_lib_sepol_sepol_check_context" >&6; }
15216if test "x$ac_cv_lib_sepol_sepol_check_context" = x""yes; then
8a2fc586 15217
d0191583
JM
15218
15219cat >>confdefs.h <<\_ACEOF
15220#define HAVE_SEPOL 1
15221_ACEOF
15222
f8f6ec92
ZK
15223 SELINUX_LIBS="-lsepol"
15224fi
15225
8a2fc586 15226
ec6a6fbe
AK
15227 { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
15228$as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
ad6254c5 15229if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
ec6a6fbe 15230 $as_echo_n "(cached) " >&6
ad6254c5
AK
15231else
15232 ac_check_lib_save_LIBS=$LIBS
15233LIBS="-lselinux $LIBS"
15234cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
15235/* confdefs.h. */
15236_ACEOF
15237cat confdefs.h >>conftest.$ac_ext
15238cat >>conftest.$ac_ext <<_ACEOF
15239/* end confdefs.h. */
15240
7a197a62
AK
15241/* Override any GCC internal prototype to avoid an error.
15242 Use char because int might match the return type of a GCC
15243 builtin and then its argument prototype would still apply. */
ad6254c5
AK
15244#ifdef __cplusplus
15245extern "C"
15246#endif
ad6254c5
AK
15247char is_selinux_enabled ();
15248int
15249main ()
15250{
7a197a62 15251return is_selinux_enabled ();
ad6254c5
AK
15252 ;
15253 return 0;
15254}
15255_ACEOF
15256rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
15257if { (ac_try="$ac_link"
15258case "(($ac_try" in
15259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15260 *) ac_try_echo=$ac_try;;
15261esac
ec6a6fbe
AK
15262eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15263$as_echo "$ac_try_echo") >&5
7a197a62 15264 (eval "$ac_link") 2>conftest.er1
ad6254c5 15265 ac_status=$?
8a2fc586
AK
15266 grep -v '^ *+' conftest.er1 >conftest.err
15267 rm -f conftest.er1
15268 cat conftest.err >&5
ec6a6fbe 15269 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
15270 (exit $ac_status); } && {
15271 test -z "$ac_c_werror_flag" ||
15272 test ! -s conftest.err
ec6a6fbe
AK
15273 } && test -s conftest$ac_exeext && {
15274 test "$cross_compiling" = yes ||
15275 $as_test_x conftest$ac_exeext
15276 }; then
ad6254c5
AK
15277 ac_cv_lib_selinux_is_selinux_enabled=yes
15278else
ec6a6fbe 15279 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
15280sed 's/^/| /' conftest.$ac_ext >&5
15281
7a197a62 15282 ac_cv_lib_selinux_is_selinux_enabled=no
ad6254c5 15283fi
7a197a62 15284
ec6a6fbe 15285rm -rf conftest.dSYM
25fbec5b 15286rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 15287 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
15288LIBS=$ac_check_lib_save_LIBS
15289fi
ec6a6fbe
AK
15290{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
15291$as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
15292if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then
ad6254c5 15293
72b2cb61 15294
f8f6ec92
ZK
15295for ac_header in selinux/selinux.h
15296do
15297as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15298if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15299 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15300$as_echo_n "checking for $ac_header... " >&6; }
15301if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 15302 $as_echo_n "(cached) " >&6
f8f6ec92
ZK
15303fi
15304ac_res=`eval 'as_val=${'$as_ac_Header'}
15305 $as_echo "$as_val"'`
15306 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15307$as_echo "$ac_res" >&6; }
66e941e8 15308else
f8f6ec92
ZK
15309 # Is the header compilable?
15310{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15311$as_echo_n "checking $ac_header usability... " >&6; }
66e941e8
JM
15312cat >conftest.$ac_ext <<_ACEOF
15313/* confdefs.h. */
15314_ACEOF
15315cat confdefs.h >>conftest.$ac_ext
15316cat >>conftest.$ac_ext <<_ACEOF
15317/* end confdefs.h. */
f8f6ec92
ZK
15318$ac_includes_default
15319#include <$ac_header>
66e941e8 15320_ACEOF
f8f6ec92
ZK
15321rm -f conftest.$ac_objext
15322if { (ac_try="$ac_compile"
66e941e8
JM
15323case "(($ac_try" in
15324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15325 *) ac_try_echo=$ac_try;;
15326esac
ec6a6fbe
AK
15327eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15328$as_echo "$ac_try_echo") >&5
f8f6ec92 15329 (eval "$ac_compile") 2>conftest.er1
66e941e8
JM
15330 ac_status=$?
15331 grep -v '^ *+' conftest.er1 >conftest.err
15332 rm -f conftest.er1
15333 cat conftest.err >&5
ec6a6fbe 15334 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
15335 (exit $ac_status); } && {
15336 test -z "$ac_c_werror_flag" ||
15337 test ! -s conftest.err
f8f6ec92
ZK
15338 } && test -s conftest.$ac_objext; then
15339 ac_header_compiler=yes
15340else
15341 $as_echo "$as_me: failed program was:" >&5
15342sed 's/^/| /' conftest.$ac_ext >&5
15343
15344 ac_header_compiler=no
15345fi
15346
15347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15348{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15349$as_echo "$ac_header_compiler" >&6; }
15350
15351# Is the header present?
15352{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15353$as_echo_n "checking $ac_header presence... " >&6; }
15354cat >conftest.$ac_ext <<_ACEOF
15355/* confdefs.h. */
15356_ACEOF
15357cat confdefs.h >>conftest.$ac_ext
15358cat >>conftest.$ac_ext <<_ACEOF
15359/* end confdefs.h. */
15360#include <$ac_header>
15361_ACEOF
15362if { (ac_try="$ac_cpp conftest.$ac_ext"
15363case "(($ac_try" in
15364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15365 *) ac_try_echo=$ac_try;;
15366esac
15367eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15368$as_echo "$ac_try_echo") >&5
15369 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15370 ac_status=$?
15371 grep -v '^ *+' conftest.er1 >conftest.err
15372 rm -f conftest.er1
15373 cat conftest.err >&5
15374 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15375 (exit $ac_status); } >/dev/null && {
15376 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15377 test ! -s conftest.err
ec6a6fbe 15378 }; then
f8f6ec92 15379 ac_header_preproc=yes
66e941e8 15380else
ec6a6fbe 15381 $as_echo "$as_me: failed program was:" >&5
66e941e8
JM
15382sed 's/^/| /' conftest.$ac_ext >&5
15383
f8f6ec92
ZK
15384 ac_header_preproc=no
15385fi
15386
15387rm -f conftest.err conftest.$ac_ext
15388{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15389$as_echo "$ac_header_preproc" >&6; }
15390
15391# So? What about this header?
15392case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15393 yes:no: )
15394 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15395$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15396 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15397$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15398 ac_header_preproc=yes
15399 ;;
15400 no:yes:* )
15401 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15402$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15403 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15404$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15405 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15406$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15407 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15408$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15409 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15410$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15411 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15412$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
66e941e8 15413
f8f6ec92
ZK
15414 ;;
15415esac
15416{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15417$as_echo_n "checking for $ac_header... " >&6; }
15418if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15419 $as_echo_n "(cached) " >&6
15420else
15421 eval "$as_ac_Header=\$ac_header_preproc"
66e941e8 15422fi
f8f6ec92
ZK
15423ac_res=`eval 'as_val=${'$as_ac_Header'}
15424 $as_echo "$as_val"'`
15425 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15426$as_echo "$ac_res" >&6; }
66e941e8 15427
66e941e8 15428fi
f8f6ec92
ZK
15429as_val=`eval 'as_val=${'$as_ac_Header'}
15430 $as_echo "$as_val"'`
15431 if test "x$as_val" = x""yes; then
15432 cat >>confdefs.h <<_ACEOF
15433#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15434_ACEOF
15435
66e941e8 15436else
f8f6ec92 15437 hard_bailout
66e941e8 15438fi
f8f6ec92
ZK
15439
15440done
15441
15442
15443cat >>confdefs.h <<\_ACEOF
15444#define HAVE_SELINUX 1
15445_ACEOF
15446
15447 SELINUX_LIBS="-lselinux $SELINUX_LIBS"
f7f0854e 15448 SELINUX_PC="libselinux"
f8f6ec92
ZK
15449 HAVE_SELINUX=yes
15450else
15451
15452 { $as_echo "$as_me:$LINENO: WARNING: Disabling selinux" >&5
15453$as_echo "$as_me: WARNING: Disabling selinux" >&2;}
15454 SELINUX_LIBS=
f7f0854e 15455 SELINUX_PC=
f8f6ec92 15456 HAVE_SELINUX=no
66e941e8
JM
15457fi
15458
ad6254c5
AK
15459fi
15460
8b1a3214
AK
15461################################################################################
15462if test x$REALTIME = xyes; then
ec6a6fbe
AK
15463 { $as_echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
15464$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
8b1a3214 15465if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
ec6a6fbe 15466 $as_echo_n "(cached) " >&6
8b1a3214
AK
15467else
15468 ac_check_lib_save_LIBS=$LIBS
15469LIBS="-lrt $LIBS"
15470cat >conftest.$ac_ext <<_ACEOF
15471/* confdefs.h. */
15472_ACEOF
15473cat confdefs.h >>conftest.$ac_ext
15474cat >>conftest.$ac_ext <<_ACEOF
15475/* end confdefs.h. */
15476
7a197a62
AK
15477/* Override any GCC internal prototype to avoid an error.
15478 Use char because int might match the return type of a GCC
15479 builtin and then its argument prototype would still apply. */
8b1a3214
AK
15480#ifdef __cplusplus
15481extern "C"
15482#endif
8b1a3214
AK
15483char clock_gettime ();
15484int
15485main ()
15486{
7a197a62 15487return clock_gettime ();
8b1a3214
AK
15488 ;
15489 return 0;
15490}
15491_ACEOF
15492rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
15493if { (ac_try="$ac_link"
15494case "(($ac_try" in
15495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15496 *) ac_try_echo=$ac_try;;
15497esac
ec6a6fbe
AK
15498eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15499$as_echo "$ac_try_echo") >&5
7a197a62 15500 (eval "$ac_link") 2>conftest.er1
8b1a3214
AK
15501 ac_status=$?
15502 grep -v '^ *+' conftest.er1 >conftest.err
15503 rm -f conftest.er1
15504 cat conftest.err >&5
ec6a6fbe 15505 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
15506 (exit $ac_status); } && {
15507 test -z "$ac_c_werror_flag" ||
15508 test ! -s conftest.err
ec6a6fbe
AK
15509 } && test -s conftest$ac_exeext && {
15510 test "$cross_compiling" = yes ||
15511 $as_test_x conftest$ac_exeext
15512 }; then
8b1a3214
AK
15513 ac_cv_lib_rt_clock_gettime=yes
15514else
ec6a6fbe 15515 $as_echo "$as_me: failed program was:" >&5
8b1a3214
AK
15516sed 's/^/| /' conftest.$ac_ext >&5
15517
7a197a62 15518 ac_cv_lib_rt_clock_gettime=no
8b1a3214 15519fi
7a197a62 15520
ec6a6fbe 15521rm -rf conftest.dSYM
25fbec5b 15522rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8b1a3214
AK
15523 conftest$ac_exeext conftest.$ac_ext
15524LIBS=$ac_check_lib_save_LIBS
15525fi
ec6a6fbe
AK
15526{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
15527$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
15528if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then
8b1a3214
AK
15529 HAVE_REALTIME=yes
15530else
15531 HAVE_REALTIME=no
15532fi
15533
8b1a3214
AK
15534
15535 if test x$HAVE_REALTIME = xyes; then
15536
15537cat >>confdefs.h <<\_ACEOF
15538#define HAVE_REALTIME 1
15539_ACEOF
15540
15541 LIBS="-lrt $LIBS"
15542 else
ec6a6fbe
AK
15543 { $as_echo "$as_me:$LINENO: WARNING: Disabling realtime clock" >&5
15544$as_echo "$as_me: WARNING: Disabling realtime clock" >&2;}
8b1a3214
AK
15545 fi
15546fi
15547
ad6254c5
AK
15548################################################################################
15549
15550for ac_header in getopt.h
15551do
ec6a6fbe 15552as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 15553if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
15554 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15555$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 15556if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 15557 $as_echo_n "(cached) " >&6
ad6254c5 15558fi
ec6a6fbe
AK
15559ac_res=`eval 'as_val=${'$as_ac_Header'}
15560 $as_echo "$as_val"'`
15561 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15562$as_echo "$ac_res" >&6; }
ad6254c5
AK
15563else
15564 # Is the header compilable?
ec6a6fbe
AK
15565{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15566$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 15567cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
15568/* confdefs.h. */
15569_ACEOF
15570cat confdefs.h >>conftest.$ac_ext
15571cat >>conftest.$ac_ext <<_ACEOF
15572/* end confdefs.h. */
15573$ac_includes_default
15574#include <$ac_header>
15575_ACEOF
15576rm -f conftest.$ac_objext
7a197a62
AK
15577if { (ac_try="$ac_compile"
15578case "(($ac_try" in
15579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15580 *) ac_try_echo=$ac_try;;
15581esac
ec6a6fbe
AK
15582eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15583$as_echo "$ac_try_echo") >&5
7a197a62 15584 (eval "$ac_compile") 2>conftest.er1
ad6254c5 15585 ac_status=$?
8a2fc586
AK
15586 grep -v '^ *+' conftest.er1 >conftest.err
15587 rm -f conftest.er1
15588 cat conftest.err >&5
ec6a6fbe 15589 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
15590 (exit $ac_status); } && {
15591 test -z "$ac_c_werror_flag" ||
15592 test ! -s conftest.err
15593 } && test -s conftest.$ac_objext; then
ad6254c5
AK
15594 ac_header_compiler=yes
15595else
ec6a6fbe 15596 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
15597sed 's/^/| /' conftest.$ac_ext >&5
15598
7a197a62 15599 ac_header_compiler=no
ad6254c5 15600fi
7a197a62
AK
15601
15602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
15603{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15604$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
15605
15606# Is the header present?
ec6a6fbe
AK
15607{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15608$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 15609cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
15610/* confdefs.h. */
15611_ACEOF
15612cat confdefs.h >>conftest.$ac_ext
15613cat >>conftest.$ac_ext <<_ACEOF
15614/* end confdefs.h. */
15615#include <$ac_header>
15616_ACEOF
7a197a62
AK
15617if { (ac_try="$ac_cpp conftest.$ac_ext"
15618case "(($ac_try" in
15619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15620 *) ac_try_echo=$ac_try;;
15621esac
ec6a6fbe
AK
15622eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15623$as_echo "$ac_try_echo") >&5
7a197a62 15624 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
15625 ac_status=$?
15626 grep -v '^ *+' conftest.er1 >conftest.err
15627 rm -f conftest.er1
15628 cat conftest.err >&5
ec6a6fbe 15629 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
15630 (exit $ac_status); } >/dev/null && {
15631 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15632 test ! -s conftest.err
15633 }; then
ad6254c5
AK
15634 ac_header_preproc=yes
15635else
ec6a6fbe 15636 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
15637sed 's/^/| /' conftest.$ac_ext >&5
15638
15639 ac_header_preproc=no
15640fi
7a197a62 15641
ad6254c5 15642rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
15643{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15644$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
15645
15646# So? What about this header?
8a2fc586
AK
15647case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15648 yes:no: )
ec6a6fbe
AK
15649 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15650$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15651 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15652$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 15653 ac_header_preproc=yes
ad6254c5 15654 ;;
8a2fc586 15655 no:yes:* )
ec6a6fbe
AK
15656 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15657$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15658 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15659$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15660 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15661$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15662 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15663$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15664 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15665$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15666 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15667$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 15668
ad6254c5
AK
15669 ;;
15670esac
ec6a6fbe
AK
15671{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15672$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 15673if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 15674 $as_echo_n "(cached) " >&6
ad6254c5 15675else
8a2fc586 15676 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 15677fi
ec6a6fbe
AK
15678ac_res=`eval 'as_val=${'$as_ac_Header'}
15679 $as_echo "$as_val"'`
15680 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15681$as_echo "$ac_res" >&6; }
ad6254c5
AK
15682
15683fi
ec6a6fbe
AK
15684as_val=`eval 'as_val=${'$as_ac_Header'}
15685 $as_echo "$as_val"'`
15686 if test "x$as_val" = x""yes; then
ad6254c5 15687 cat >>confdefs.h <<_ACEOF
ec6a6fbe 15688#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 15689_ACEOF
72b2cb61
AK
15690
15691cat >>confdefs.h <<\_ACEOF
15692#define HAVE_GETOPTLONG 1
15693_ACEOF
15694
ad6254c5
AK
15695fi
15696
15697done
15698
15699
15700################################################################################
06e459df 15701if test x$READLINE != xno; then
539f4a77
ZK
15702 lvm_saved_libs=$LIBS
15703 { $as_echo "$as_me:$LINENO: checking for library containing tgetent" >&5
15704$as_echo_n "checking for library containing tgetent... " >&6; }
15705if test "${ac_cv_search_tgetent+set}" = set; then
15706 $as_echo_n "(cached) " >&6
15707else
15708 ac_func_search_save_LIBS=$LIBS
15709cat >conftest.$ac_ext <<_ACEOF
15710/* confdefs.h. */
15711_ACEOF
15712cat confdefs.h >>conftest.$ac_ext
15713cat >>conftest.$ac_ext <<_ACEOF
15714/* end confdefs.h. */
bc1024f8 15715
539f4a77
ZK
15716/* Override any GCC internal prototype to avoid an error.
15717 Use char because int might match the return type of a GCC
15718 builtin and then its argument prototype would still apply. */
15719#ifdef __cplusplus
15720extern "C"
15721#endif
15722char tgetent ();
15723int
15724main ()
15725{
15726return tgetent ();
15727 ;
15728 return 0;
15729}
15730_ACEOF
15731for ac_lib in '' tinfo ncurses curses termcap termlib; do
15732 if test -z "$ac_lib"; then
15733 ac_res="none required"
15734 else
15735 ac_res=-l$ac_lib
15736 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15737 fi
15738 rm -f conftest.$ac_objext conftest$ac_exeext
15739if { (ac_try="$ac_link"
15740case "(($ac_try" in
15741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15742 *) ac_try_echo=$ac_try;;
15743esac
15744eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15745$as_echo "$ac_try_echo") >&5
15746 (eval "$ac_link") 2>conftest.er1
15747 ac_status=$?
15748 grep -v '^ *+' conftest.er1 >conftest.err
15749 rm -f conftest.er1
15750 cat conftest.err >&5
15751 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15752 (exit $ac_status); } && {
15753 test -z "$ac_c_werror_flag" ||
15754 test ! -s conftest.err
15755 } && test -s conftest$ac_exeext && {
15756 test "$cross_compiling" = yes ||
15757 $as_test_x conftest$ac_exeext
15758 }; then
15759 ac_cv_search_tgetent=$ac_res
15760else
15761 $as_echo "$as_me: failed program was:" >&5
15762sed 's/^/| /' conftest.$ac_ext >&5
15763
15764
15765fi
15766
15767rm -rf conftest.dSYM
15768rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15769 conftest$ac_exeext
15770 if test "${ac_cv_search_tgetent+set}" = set; then
15771 break
15772fi
15773done
15774if test "${ac_cv_search_tgetent+set}" = set; then
15775 :
15776else
15777 ac_cv_search_tgetent=no
15778fi
15779rm conftest.$ac_ext
15780LIBS=$ac_func_search_save_LIBS
15781fi
15782{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
15783$as_echo "$ac_cv_search_tgetent" >&6; }
15784ac_res=$ac_cv_search_tgetent
15785if test "$ac_res" != no; then
15786 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15787 READLINE_LIBS=$ac_cv_search_tgetent
15788else
15789
15790 if test "$READLINE" = yes; then
15791 { { $as_echo "$as_me:$LINENO: error: termcap could not be found which is required for the
15792--enable-readline option (which is enabled by default). Either disable readline
15793support with --disable-readline or download and install termcap from:
15794 ftp.gnu.org/gnu/termcap
15795Note: if you are using precompiled packages you will also need the development
15796 package as well (which may be called termcap-devel or something similar).
15797Note: (n)curses also seems to work as a substitute for termcap. This was
15798 not found either - but you could try installing that as well." >&5
15799$as_echo "$as_me: error: termcap could not be found which is required for the
15800--enable-readline option (which is enabled by default). Either disable readline
15801support with --disable-readline or download and install termcap from:
15802 ftp.gnu.org/gnu/termcap
15803Note: if you are using precompiled packages you will also need the development
15804 package as well (which may be called termcap-devel or something similar).
15805Note: (n)curses also seems to work as a substitute for termcap. This was
15806 not found either - but you could try installing that as well." >&2;}
15807 { (exit 1); exit 1; }; }
15808 fi
15809fi
15810
15811 { $as_echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
ec6a6fbe 15812$as_echo_n "checking for readline in -lreadline... " >&6; }
ad6254c5 15813if test "${ac_cv_lib_readline_readline+set}" = set; then
ec6a6fbe 15814 $as_echo_n "(cached) " >&6
ad6254c5
AK
15815else
15816 ac_check_lib_save_LIBS=$LIBS
15817LIBS="-lreadline $LIBS"
15818cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
15819/* confdefs.h. */
15820_ACEOF
15821cat confdefs.h >>conftest.$ac_ext
15822cat >>conftest.$ac_ext <<_ACEOF
15823/* end confdefs.h. */
15824
7a197a62
AK
15825/* Override any GCC internal prototype to avoid an error.
15826 Use char because int might match the return type of a GCC
15827 builtin and then its argument prototype would still apply. */
ad6254c5
AK
15828#ifdef __cplusplus
15829extern "C"
15830#endif
ad6254c5
AK
15831char readline ();
15832int
15833main ()
15834{
7a197a62 15835return readline ();
ad6254c5
AK
15836 ;
15837 return 0;
15838}
15839_ACEOF
15840rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
15841if { (ac_try="$ac_link"
15842case "(($ac_try" in
15843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15844 *) ac_try_echo=$ac_try;;
15845esac
ec6a6fbe
AK
15846eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15847$as_echo "$ac_try_echo") >&5
7a197a62 15848 (eval "$ac_link") 2>conftest.er1
ad6254c5 15849 ac_status=$?
8a2fc586
AK
15850 grep -v '^ *+' conftest.er1 >conftest.err
15851 rm -f conftest.er1
15852 cat conftest.err >&5
ec6a6fbe 15853 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
15854 (exit $ac_status); } && {
15855 test -z "$ac_c_werror_flag" ||
15856 test ! -s conftest.err
ec6a6fbe
AK
15857 } && test -s conftest$ac_exeext && {
15858 test "$cross_compiling" = yes ||
15859 $as_test_x conftest$ac_exeext
15860 }; then
ad6254c5
AK
15861 ac_cv_lib_readline_readline=yes
15862else
ec6a6fbe 15863 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
15864sed 's/^/| /' conftest.$ac_ext >&5
15865
7a197a62 15866 ac_cv_lib_readline_readline=no
ad6254c5 15867fi
7a197a62 15868
ec6a6fbe 15869rm -rf conftest.dSYM
25fbec5b 15870rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 15871 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
15872LIBS=$ac_check_lib_save_LIBS
15873fi
ec6a6fbe
AK
15874{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
15875$as_echo "$ac_cv_lib_readline_readline" >&6; }
15876if test "x$ac_cv_lib_readline_readline" = x""yes; then
539f4a77
ZK
15877
15878
15879cat >>confdefs.h <<\_ACEOF
15880#define READLINE_SUPPORT 1
bc1024f8
JM
15881_ACEOF
15882
539f4a77
ZK
15883 LIBS=$lvm_saved_libs
15884 { $as_echo "$as_me:$LINENO: checking for rl_line_buffer in -lreadline" >&5
15885$as_echo_n "checking for rl_line_buffer in -lreadline... " >&6; }
15886if test "${ac_cv_lib_readline_rl_line_buffer+set}" = set; then
15887 $as_echo_n "(cached) " >&6
15888else
15889 ac_check_lib_save_LIBS=$LIBS
15890LIBS="-lreadline $LIBS"
15891cat >conftest.$ac_ext <<_ACEOF
15892/* confdefs.h. */
15893_ACEOF
15894cat confdefs.h >>conftest.$ac_ext
15895cat >>conftest.$ac_ext <<_ACEOF
15896/* end confdefs.h. */
bc1024f8 15897
539f4a77
ZK
15898/* Override any GCC internal prototype to avoid an error.
15899 Use char because int might match the return type of a GCC
15900 builtin and then its argument prototype would still apply. */
15901#ifdef __cplusplus
15902extern "C"
15903#endif
15904char rl_line_buffer ();
15905int
15906main ()
15907{
15908return rl_line_buffer ();
15909 ;
15910 return 0;
15911}
15912_ACEOF
15913rm -f conftest.$ac_objext conftest$ac_exeext
15914if { (ac_try="$ac_link"
15915case "(($ac_try" in
15916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15917 *) ac_try_echo=$ac_try;;
15918esac
15919eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15920$as_echo "$ac_try_echo") >&5
15921 (eval "$ac_link") 2>conftest.er1
15922 ac_status=$?
15923 grep -v '^ *+' conftest.er1 >conftest.err
15924 rm -f conftest.er1
15925 cat conftest.err >&5
15926 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15927 (exit $ac_status); } && {
15928 test -z "$ac_c_werror_flag" ||
15929 test ! -s conftest.err
15930 } && test -s conftest$ac_exeext && {
15931 test "$cross_compiling" = yes ||
15932 $as_test_x conftest$ac_exeext
15933 }; then
15934 ac_cv_lib_readline_rl_line_buffer=yes
ad6254c5 15935else
539f4a77
ZK
15936 $as_echo "$as_me: failed program was:" >&5
15937sed 's/^/| /' conftest.$ac_ext >&5
15938
15939 ac_cv_lib_readline_rl_line_buffer=no
06e459df
JM
15940fi
15941
539f4a77
ZK
15942rm -rf conftest.dSYM
15943rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15944 conftest$ac_exeext conftest.$ac_ext
15945LIBS=$ac_check_lib_save_LIBS
15946fi
15947{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_line_buffer" >&5
15948$as_echo "$ac_cv_lib_readline_rl_line_buffer" >&6; }
15949if test "x$ac_cv_lib_readline_rl_line_buffer" = x""yes; then
15950 READLINE_LIBS="-lreadline"
15951else
15952
15953 { $as_echo "$as_me:$LINENO: result: linking -lreadline with $READLINE_LIBS needed" >&5
15954$as_echo "linking -lreadline with $READLINE_LIBS needed" >&6; }
15955 READLINE_LIBS="-lreadline $READLINE_LIBS"
15956
15957fi
15958
15959else
15960
15961 READLINE_LIBS=
15962 if test "$READLINE" = yes; then
15963 { { $as_echo "$as_me:$LINENO: error: GNU Readline could not be found which is required for the
ad6254c5
AK
15964--enable-readline option (which is enabled by default). Either disable readline
15965support with --disable-readline or download and install readline from:
15966 ftp.gnu.org/gnu/readline
15967Note: if you are using precompiled packages you will also need the development
539f4a77 15968package as well (which may be called readline-devel or something similar)." >&5
ec6a6fbe 15969$as_echo "$as_me: error: GNU Readline could not be found which is required for the
ad6254c5
AK
15970--enable-readline option (which is enabled by default). Either disable readline
15971support with --disable-readline or download and install readline from:
15972 ftp.gnu.org/gnu/readline
15973Note: if you are using precompiled packages you will also need the development
539f4a77 15974package as well (which may be called readline-devel or something similar)." >&2;}
ad6254c5 15975 { (exit 1); exit 1; }; }
539f4a77
ZK
15976 fi
15977fi
15978
15979 LIBS="$READLINE_LIBS $lvm_saved_libs"
bc1024f8
JM
15980
15981for ac_func in rl_completion_matches
15982do
ec6a6fbe
AK
15983as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15984{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
15985$as_echo_n "checking for $ac_func... " >&6; }
bc1024f8 15986if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 15987 $as_echo_n "(cached) " >&6
ad6254c5
AK
15988else
15989 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
15990/* confdefs.h. */
15991_ACEOF
15992cat confdefs.h >>conftest.$ac_ext
15993cat >>conftest.$ac_ext <<_ACEOF
15994/* end confdefs.h. */
bc1024f8 15995/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8a2fc586 15996 For example, HP-UX 11i <limits.h> declares gettimeofday. */
bc1024f8 15997#define $ac_func innocuous_$ac_func
8a2fc586 15998
ad6254c5 15999/* System header to define __stub macros and hopefully few prototypes,
bc1024f8 16000 which can conflict with char $ac_func (); below.
ad6254c5
AK
16001 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16002 <limits.h> exists even on freestanding compilers. */
8a2fc586 16003
ad6254c5
AK
16004#ifdef __STDC__
16005# include <limits.h>
16006#else
16007# include <assert.h>
16008#endif
8a2fc586 16009
bc1024f8 16010#undef $ac_func
8a2fc586 16011
7a197a62
AK
16012/* Override any GCC internal prototype to avoid an error.
16013 Use char because int might match the return type of a GCC
16014 builtin and then its argument prototype would still apply. */
ad6254c5
AK
16015#ifdef __cplusplus
16016extern "C"
ad6254c5 16017#endif
bc1024f8 16018char $ac_func ();
ad6254c5
AK
16019/* The GNU C library defines this for functions which it implements
16020 to always fail with ENOSYS. Some functions are actually named
16021 something starting with __ and the normal name is an alias. */
bc1024f8 16022#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 16023choke me
ad6254c5
AK
16024#endif
16025
16026int
16027main ()
16028{
bc1024f8 16029return $ac_func ();
ad6254c5
AK
16030 ;
16031 return 0;
16032}
16033_ACEOF
16034rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
16035if { (ac_try="$ac_link"
16036case "(($ac_try" in
16037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16038 *) ac_try_echo=$ac_try;;
16039esac
ec6a6fbe
AK
16040eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16041$as_echo "$ac_try_echo") >&5
7a197a62 16042 (eval "$ac_link") 2>conftest.er1
ad6254c5 16043 ac_status=$?
8a2fc586
AK
16044 grep -v '^ *+' conftest.er1 >conftest.err
16045 rm -f conftest.er1
16046 cat conftest.err >&5
ec6a6fbe 16047 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
16048 (exit $ac_status); } && {
16049 test -z "$ac_c_werror_flag" ||
16050 test ! -s conftest.err
ec6a6fbe
AK
16051 } && test -s conftest$ac_exeext && {
16052 test "$cross_compiling" = yes ||
16053 $as_test_x conftest$ac_exeext
16054 }; then
bc1024f8 16055 eval "$as_ac_var=yes"
ad6254c5 16056else
ec6a6fbe 16057 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
16058sed 's/^/| /' conftest.$ac_ext >&5
16059
bc1024f8 16060 eval "$as_ac_var=no"
ad6254c5 16061fi
7a197a62 16062
ec6a6fbe 16063rm -rf conftest.dSYM
25fbec5b 16064rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 16065 conftest$ac_exeext conftest.$ac_ext
ad6254c5 16066fi
ec6a6fbe
AK
16067ac_res=`eval 'as_val=${'$as_ac_var'}
16068 $as_echo "$as_val"'`
16069 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16070$as_echo "$ac_res" >&6; }
16071as_val=`eval 'as_val=${'$as_ac_var'}
16072 $as_echo "$as_val"'`
16073 if test "x$as_val" = x""yes; then
bc1024f8 16074 cat >>confdefs.h <<_ACEOF
ec6a6fbe 16075#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
72b2cb61
AK
16076_ACEOF
16077
16078fi
bc1024f8 16079done
ad6254c5 16080
539f4a77 16081 LIBS=$lvm_saved_libs
ad6254c5
AK
16082fi
16083
16084################################################################################
ec6a6fbe
AK
16085{ $as_echo "$as_me:$LINENO: checking whether to enable internationalisation" >&5
16086$as_echo_n "checking whether to enable internationalisation... " >&6; }
7a197a62 16087# Check whether --enable-nls was given.
ad6254c5 16088if test "${enable_nls+set}" = set; then
7a197a62 16089 enableval=$enable_nls; INTL=$enableval
ad6254c5
AK
16090else
16091 INTL=no
7a197a62
AK
16092fi
16093
ec6a6fbe
AK
16094{ $as_echo "$as_me:$LINENO: result: $INTL" >&5
16095$as_echo "$INTL" >&6; }
ad6254c5
AK
16096
16097if test x$INTL = xyes; then
93bd259b 16098# FIXME - Move this - can be device-mapper too
ad6254c5
AK
16099 INTL_PACKAGE="lvm2"
16100 # Extract the first word of "msgfmt", so it can be a program name with args.
16101set dummy msgfmt; ac_word=$2
ec6a6fbe
AK
16102{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16103$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 16104if test "${ac_cv_path_MSGFMT+set}" = set; then
ec6a6fbe 16105 $as_echo_n "(cached) " >&6
ad6254c5
AK
16106else
16107 case $MSGFMT in
16108 [\\/]* | ?:[\\/]*)
16109 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16110 ;;
16111 *)
16112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16113for as_dir in $PATH
16114do
16115 IFS=$as_save_IFS
16116 test -z "$as_dir" && as_dir=.
16117 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 16118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 16119 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 16120 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
16121 break 2
16122 fi
16123done
16124done
7a197a62 16125IFS=$as_save_IFS
ad6254c5
AK
16126
16127 ;;
16128esac
16129fi
16130MSGFMT=$ac_cv_path_MSGFMT
ad6254c5 16131if test -n "$MSGFMT"; then
ec6a6fbe
AK
16132 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
16133$as_echo "$MSGFMT" >&6; }
ad6254c5 16134else
ec6a6fbe
AK
16135 { $as_echo "$as_me:$LINENO: result: no" >&5
16136$as_echo "no" >&6; }
ad6254c5
AK
16137fi
16138
7a197a62 16139
ad6254c5 16140 if [ "x$MSGFMT" == x ];
ec6a6fbe 16141 then { { $as_echo "$as_me:$LINENO: error: msgfmt not found in path $PATH
ad6254c5 16142 " >&5
ec6a6fbe 16143$as_echo "$as_me: error: msgfmt not found in path $PATH
ad6254c5
AK
16144 " >&2;}
16145 { (exit 1); exit 1; }; }
16146 fi;
16147
16148
7a197a62 16149# Check whether --with-localedir was given.
ad6254c5 16150if test "${with_localedir+set}" = set; then
71082be4 16151 withval=$with_localedir; LOCALEDIR=$withval
ad6254c5 16152else
71082be4 16153 LOCALEDIR='${prefix}/share/locale'
7a197a62
AK
16154fi
16155
ad6254c5
AK
16156fi
16157
16158################################################################################
16159
7a197a62 16160# Check whether --with-confdir was given.
ad6254c5 16161if test "${with_confdir+set}" = set; then
71082be4 16162 withval=$with_confdir; CONFDIR=$withval
ad6254c5 16163else
71082be4 16164 CONFDIR="/etc"
7a197a62
AK
16165fi
16166
ad6254c5
AK
16167
16168
7a197a62 16169# Check whether --with-staticdir was given.
ad6254c5 16170if test "${with_staticdir+set}" = set; then
71082be4 16171 withval=$with_staticdir; STATICDIR=$withval
ad6254c5 16172else
71082be4 16173 STATICDIR='${exec_prefix}/sbin'
7a197a62 16174fi
ad6254c5 16175
33f732c5 16176
7a197a62 16177
68f2de6d
AK
16178# Check whether --with-usrlibdir was given.
16179if test "${with_usrlibdir+set}" = set; then
71082be4 16180 withval=$with_usrlibdir; usrlibdir=$withval
68f2de6d 16181else
71082be4 16182 usrlibdir='${prefix}/lib'
68f2de6d
AK
16183fi
16184
16185
16186
16187# Check whether --with-usrsbindir was given.
16188if test "${with_usrsbindir+set}" = set; then
71082be4 16189 withval=$with_usrsbindir; usrsbindir=$withval
68f2de6d 16190else
71082be4 16191 usrsbindir='${prefix}/sbin'
68f2de6d
AK
16192fi
16193
16194
a5f46f6a
AK
16195################################################################################
16196
16197# Check whether --with-udev_prefix was given.
16198if test "${with_udev_prefix+set}" = set; then
71082be4 16199 withval=$with_udev_prefix; udev_prefix=$withval
a5f46f6a 16200else
71082be4 16201 udev_prefix='${exec_prefix}'
a5f46f6a
AK
16202fi
16203
16204
78ce7acc
AK
16205
16206# Check whether --with-udevdir was given.
16207if test "${with_udevdir+set}" = set; then
71082be4 16208 withval=$with_udevdir; udevdir=$withval
78ce7acc 16209else
71082be4 16210 udevdir='${udev_prefix}/lib/udev/rules.d'
78ce7acc
AK
16211fi
16212
a5f46f6a 16213
ad6254c5
AK
16214################################################################################
16215if test x$READLINE = xyes; then
16216
16217
16218for ac_header in readline/readline.h readline/history.h
16219do
ec6a6fbe 16220as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 16221if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
16222 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16223$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 16224if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 16225 $as_echo_n "(cached) " >&6
ad6254c5 16226fi
ec6a6fbe
AK
16227ac_res=`eval 'as_val=${'$as_ac_Header'}
16228 $as_echo "$as_val"'`
16229 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16230$as_echo "$ac_res" >&6; }
ad6254c5
AK
16231else
16232 # Is the header compilable?
ec6a6fbe
AK
16233{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16234$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 16235cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
16236/* confdefs.h. */
16237_ACEOF
16238cat confdefs.h >>conftest.$ac_ext
16239cat >>conftest.$ac_ext <<_ACEOF
16240/* end confdefs.h. */
16241$ac_includes_default
16242#include <$ac_header>
16243_ACEOF
16244rm -f conftest.$ac_objext
7a197a62
AK
16245if { (ac_try="$ac_compile"
16246case "(($ac_try" in
16247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16248 *) ac_try_echo=$ac_try;;
16249esac
ec6a6fbe
AK
16250eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16251$as_echo "$ac_try_echo") >&5
7a197a62 16252 (eval "$ac_compile") 2>conftest.er1
ad6254c5 16253 ac_status=$?
8a2fc586
AK
16254 grep -v '^ *+' conftest.er1 >conftest.err
16255 rm -f conftest.er1
16256 cat conftest.err >&5
ec6a6fbe 16257 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
16258 (exit $ac_status); } && {
16259 test -z "$ac_c_werror_flag" ||
16260 test ! -s conftest.err
16261 } && test -s conftest.$ac_objext; then
ad6254c5
AK
16262 ac_header_compiler=yes
16263else
ec6a6fbe 16264 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
16265sed 's/^/| /' conftest.$ac_ext >&5
16266
7a197a62 16267 ac_header_compiler=no
ad6254c5 16268fi
7a197a62
AK
16269
16270rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
16271{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16272$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
16273
16274# Is the header present?
ec6a6fbe
AK
16275{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16276$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 16277cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
16278/* confdefs.h. */
16279_ACEOF
16280cat confdefs.h >>conftest.$ac_ext
16281cat >>conftest.$ac_ext <<_ACEOF
16282/* end confdefs.h. */
16283#include <$ac_header>
16284_ACEOF
7a197a62
AK
16285if { (ac_try="$ac_cpp conftest.$ac_ext"
16286case "(($ac_try" in
16287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16288 *) ac_try_echo=$ac_try;;
16289esac
ec6a6fbe
AK
16290eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16291$as_echo "$ac_try_echo") >&5
7a197a62 16292 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
16293 ac_status=$?
16294 grep -v '^ *+' conftest.er1 >conftest.err
16295 rm -f conftest.er1
16296 cat conftest.err >&5
ec6a6fbe 16297 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
16298 (exit $ac_status); } >/dev/null && {
16299 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16300 test ! -s conftest.err
16301 }; then
ad6254c5
AK
16302 ac_header_preproc=yes
16303else
ec6a6fbe 16304 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
16305sed 's/^/| /' conftest.$ac_ext >&5
16306
16307 ac_header_preproc=no
16308fi
7a197a62 16309
ad6254c5 16310rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
16311{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16312$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
16313
16314# So? What about this header?
8a2fc586
AK
16315case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16316 yes:no: )
ec6a6fbe
AK
16317 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16318$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16319 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16320$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 16321 ac_header_preproc=yes
ad6254c5 16322 ;;
8a2fc586 16323 no:yes:* )
ec6a6fbe
AK
16324 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16325$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16326 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16327$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16328 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16329$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16330 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16331$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16332 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16333$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16334 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16335$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 16336
ad6254c5
AK
16337 ;;
16338esac
ec6a6fbe
AK
16339{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16340$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 16341if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 16342 $as_echo_n "(cached) " >&6
ad6254c5 16343else
8a2fc586 16344 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 16345fi
ec6a6fbe
AK
16346ac_res=`eval 'as_val=${'$as_ac_Header'}
16347 $as_echo "$as_val"'`
16348 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16349$as_echo "$ac_res" >&6; }
ad6254c5
AK
16350
16351fi
ec6a6fbe
AK
16352as_val=`eval 'as_val=${'$as_ac_Header'}
16353 $as_echo "$as_val"'`
16354 if test "x$as_val" = x""yes; then
ad6254c5 16355 cat >>confdefs.h <<_ACEOF
ec6a6fbe 16356#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
16357_ACEOF
16358
16359else
ec6a6fbe
AK
16360 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
16361$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5
AK
16362 { (exit 1); exit 1; }; }
16363fi
16364
16365done
16366
16367fi
16368
5c7fc7c4 16369if test x$CLVMD != xnone; then
ad6254c5
AK
16370
16371
16372
16373
16374
16375
16376
16377
16378
16379
16380for 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
16381do
ec6a6fbe 16382as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 16383if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
16384 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16385$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 16386if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 16387 $as_echo_n "(cached) " >&6
ad6254c5 16388fi
ec6a6fbe
AK
16389ac_res=`eval 'as_val=${'$as_ac_Header'}
16390 $as_echo "$as_val"'`
16391 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16392$as_echo "$ac_res" >&6; }
ad6254c5
AK
16393else
16394 # Is the header compilable?
ec6a6fbe
AK
16395{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16396$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 16397cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
16398/* confdefs.h. */
16399_ACEOF
16400cat confdefs.h >>conftest.$ac_ext
16401cat >>conftest.$ac_ext <<_ACEOF
16402/* end confdefs.h. */
16403$ac_includes_default
16404#include <$ac_header>
16405_ACEOF
16406rm -f conftest.$ac_objext
7a197a62
AK
16407if { (ac_try="$ac_compile"
16408case "(($ac_try" in
16409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16410 *) ac_try_echo=$ac_try;;
16411esac
ec6a6fbe
AK
16412eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16413$as_echo "$ac_try_echo") >&5
7a197a62 16414 (eval "$ac_compile") 2>conftest.er1
ad6254c5 16415 ac_status=$?
8a2fc586
AK
16416 grep -v '^ *+' conftest.er1 >conftest.err
16417 rm -f conftest.er1
16418 cat conftest.err >&5
ec6a6fbe 16419 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
16420 (exit $ac_status); } && {
16421 test -z "$ac_c_werror_flag" ||
16422 test ! -s conftest.err
16423 } && test -s conftest.$ac_objext; then
ad6254c5
AK
16424 ac_header_compiler=yes
16425else
ec6a6fbe 16426 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
16427sed 's/^/| /' conftest.$ac_ext >&5
16428
7a197a62 16429 ac_header_compiler=no
ad6254c5 16430fi
7a197a62
AK
16431
16432rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
16433{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16434$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
16435
16436# Is the header present?
ec6a6fbe
AK
16437{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16438$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 16439cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
16440/* confdefs.h. */
16441_ACEOF
16442cat confdefs.h >>conftest.$ac_ext
16443cat >>conftest.$ac_ext <<_ACEOF
16444/* end confdefs.h. */
16445#include <$ac_header>
16446_ACEOF
7a197a62
AK
16447if { (ac_try="$ac_cpp conftest.$ac_ext"
16448case "(($ac_try" in
16449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16450 *) ac_try_echo=$ac_try;;
16451esac
ec6a6fbe
AK
16452eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16453$as_echo "$ac_try_echo") >&5
7a197a62 16454 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
16455 ac_status=$?
16456 grep -v '^ *+' conftest.er1 >conftest.err
16457 rm -f conftest.er1
16458 cat conftest.err >&5
ec6a6fbe 16459 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
16460 (exit $ac_status); } >/dev/null && {
16461 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16462 test ! -s conftest.err
16463 }; then
ad6254c5
AK
16464 ac_header_preproc=yes
16465else
ec6a6fbe 16466 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
16467sed 's/^/| /' conftest.$ac_ext >&5
16468
16469 ac_header_preproc=no
16470fi
7a197a62 16471
ad6254c5 16472rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
16473{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16474$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
16475
16476# So? What about this header?
8a2fc586
AK
16477case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16478 yes:no: )
ec6a6fbe
AK
16479 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16480$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16481 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16482$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 16483 ac_header_preproc=yes
ad6254c5 16484 ;;
8a2fc586 16485 no:yes:* )
ec6a6fbe
AK
16486 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16487$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16488 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16489$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16490 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16491$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16492 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16493$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16494 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16495$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16496 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16497$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 16498
ad6254c5
AK
16499 ;;
16500esac
ec6a6fbe
AK
16501{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16502$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 16503if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 16504 $as_echo_n "(cached) " >&6
ad6254c5 16505else
8a2fc586 16506 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 16507fi
ec6a6fbe
AK
16508ac_res=`eval 'as_val=${'$as_ac_Header'}
16509 $as_echo "$as_val"'`
16510 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16511$as_echo "$ac_res" >&6; }
ad6254c5
AK
16512
16513fi
ec6a6fbe
AK
16514as_val=`eval 'as_val=${'$as_ac_Header'}
16515 $as_echo "$as_val"'`
16516 if test "x$as_val" = x""yes; then
ad6254c5 16517 cat >>confdefs.h <<_ACEOF
ec6a6fbe 16518#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
16519_ACEOF
16520
16521else
ec6a6fbe
AK
16522 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
16523$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 16524 { (exit 1); exit 1; }; }
795ca3e5
AK
16525fi
16526
ad6254c5
AK
16527done
16528
16529
795ca3e5 16530
8106cdd5 16531
ad6254c5
AK
16532
16533
16534for ac_func in dup2 getmntent memmove select socket
16535do
ec6a6fbe
AK
16536as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16537{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16538$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 16539if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 16540 $as_echo_n "(cached) " >&6
795ca3e5 16541else
ad6254c5 16542 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
16543/* confdefs.h. */
16544_ACEOF
16545cat confdefs.h >>conftest.$ac_ext
16546cat >>conftest.$ac_ext <<_ACEOF
16547/* end confdefs.h. */
8a2fc586
AK
16548/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16549 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16550#define $ac_func innocuous_$ac_func
16551
795ca3e5 16552/* System header to define __stub macros and hopefully few prototypes,
ad6254c5
AK
16553 which can conflict with char $ac_func (); below.
16554 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16555 <limits.h> exists even on freestanding compilers. */
8a2fc586 16556
ad6254c5
AK
16557#ifdef __STDC__
16558# include <limits.h>
16559#else
16560# include <assert.h>
16561#endif
8a2fc586
AK
16562
16563#undef $ac_func
16564
7a197a62
AK
16565/* Override any GCC internal prototype to avoid an error.
16566 Use char because int might match the return type of a GCC
16567 builtin and then its argument prototype would still apply. */
ad6254c5
AK
16568#ifdef __cplusplus
16569extern "C"
ad6254c5 16570#endif
ad6254c5 16571char $ac_func ();
795ca3e5
AK
16572/* The GNU C library defines this for functions which it implements
16573 to always fail with ENOSYS. Some functions are actually named
16574 something starting with __ and the normal name is an alias. */
7a197a62 16575#if defined __stub_$ac_func || defined __stub___$ac_func
795ca3e5 16576choke me
795ca3e5
AK
16577#endif
16578
ad6254c5
AK
16579int
16580main ()
16581{
7a197a62 16582return $ac_func ();
ad6254c5
AK
16583 ;
16584 return 0;
16585}
16586_ACEOF
16587rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
16588if { (ac_try="$ac_link"
16589case "(($ac_try" in
16590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16591 *) ac_try_echo=$ac_try;;
16592esac
ec6a6fbe
AK
16593eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16594$as_echo "$ac_try_echo") >&5
7a197a62 16595 (eval "$ac_link") 2>conftest.er1
ad6254c5 16596 ac_status=$?
8a2fc586
AK
16597 grep -v '^ *+' conftest.er1 >conftest.err
16598 rm -f conftest.er1
16599 cat conftest.err >&5
ec6a6fbe 16600 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
16601 (exit $ac_status); } && {
16602 test -z "$ac_c_werror_flag" ||
16603 test ! -s conftest.err
ec6a6fbe
AK
16604 } && test -s conftest$ac_exeext && {
16605 test "$cross_compiling" = yes ||
16606 $as_test_x conftest$ac_exeext
16607 }; then
ad6254c5 16608 eval "$as_ac_var=yes"
795ca3e5 16609else
ec6a6fbe 16610 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
16611sed 's/^/| /' conftest.$ac_ext >&5
16612
7a197a62 16613 eval "$as_ac_var=no"
80992638 16614fi
7a197a62 16615
ec6a6fbe 16616rm -rf conftest.dSYM
25fbec5b 16617rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 16618 conftest$ac_exeext conftest.$ac_ext
795ca3e5 16619fi
ec6a6fbe
AK
16620ac_res=`eval 'as_val=${'$as_ac_var'}
16621 $as_echo "$as_val"'`
16622 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16623$as_echo "$ac_res" >&6; }
16624as_val=`eval 'as_val=${'$as_ac_var'}
16625 $as_echo "$as_val"'`
16626 if test "x$as_val" = x""yes; then
ad6254c5 16627 cat >>confdefs.h <<_ACEOF
ec6a6fbe 16628#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5 16629_ACEOF
80992638
AK
16630
16631else
ec6a6fbe
AK
16632 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
16633$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 16634 { (exit 1); exit 1; }; }
8106cdd5 16635fi
ad6254c5 16636done
795ca3e5 16637
25fbec5b
AK
16638 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
16639# -lseq on Dynix/PTX, -lgen on Unixware.
ec6a6fbe
AK
16640{ $as_echo "$as_me:$LINENO: checking for library containing getmntent" >&5
16641$as_echo_n "checking for library containing getmntent... " >&6; }
25fbec5b 16642if test "${ac_cv_search_getmntent+set}" = set; then
ec6a6fbe 16643 $as_echo_n "(cached) " >&6
25fbec5b
AK
16644else
16645 ac_func_search_save_LIBS=$LIBS
16646cat >conftest.$ac_ext <<_ACEOF
16647/* confdefs.h. */
16648_ACEOF
16649cat confdefs.h >>conftest.$ac_ext
16650cat >>conftest.$ac_ext <<_ACEOF
16651/* end confdefs.h. */
80992638 16652
7a197a62
AK
16653/* Override any GCC internal prototype to avoid an error.
16654 Use char because int might match the return type of a GCC
ad6254c5 16655 builtin and then its argument prototype would still apply. */
ad6254c5
AK
16656#ifdef __cplusplus
16657extern "C"
16658#endif
25fbec5b 16659char getmntent ();
ad6254c5
AK
16660int
16661main ()
16662{
25fbec5b 16663return getmntent ();
ad6254c5
AK
16664 ;
16665 return 0;
16666}
16667_ACEOF
25fbec5b
AK
16668for ac_lib in '' sun seq gen; do
16669 if test -z "$ac_lib"; then
16670 ac_res="none required"
16671 else
16672 ac_res=-l$ac_lib
16673 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16674 fi
16675 rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
16676if { (ac_try="$ac_link"
16677case "(($ac_try" in
16678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16679 *) ac_try_echo=$ac_try;;
16680esac
ec6a6fbe
AK
16681eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16682$as_echo "$ac_try_echo") >&5
7a197a62 16683 (eval "$ac_link") 2>conftest.er1
ad6254c5 16684 ac_status=$?
8a2fc586
AK
16685 grep -v '^ *+' conftest.er1 >conftest.err
16686 rm -f conftest.er1
16687 cat conftest.err >&5
ec6a6fbe 16688 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
16689 (exit $ac_status); } && {
16690 test -z "$ac_c_werror_flag" ||
16691 test ! -s conftest.err
ec6a6fbe
AK
16692 } && test -s conftest$ac_exeext && {
16693 test "$cross_compiling" = yes ||
16694 $as_test_x conftest$ac_exeext
16695 }; then
25fbec5b 16696 ac_cv_search_getmntent=$ac_res
80992638 16697else
ec6a6fbe 16698 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
16699sed 's/^/| /' conftest.$ac_ext >&5
16700
25fbec5b 16701
795ca3e5
AK
16702fi
16703
ec6a6fbe 16704rm -rf conftest.dSYM
25fbec5b
AK
16705rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16706 conftest$ac_exeext
16707 if test "${ac_cv_search_getmntent+set}" = set; then
16708 break
795ca3e5 16709fi
25fbec5b
AK
16710done
16711if test "${ac_cv_search_getmntent+set}" = set; then
16712 :
16713else
16714 ac_cv_search_getmntent=no
16715fi
16716rm conftest.$ac_ext
16717LIBS=$ac_func_search_save_LIBS
16718fi
ec6a6fbe
AK
16719{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
16720$as_echo "$ac_cv_search_getmntent" >&6; }
25fbec5b
AK
16721ac_res=$ac_cv_search_getmntent
16722if test "$ac_res" != no; then
16723 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16724 ac_cv_func_getmntent=yes
16725
16726cat >>confdefs.h <<\_ACEOF
9c961554 16727#define HAVE_GETMNTENT 1
ad6254c5 16728_ACEOF
795ca3e5 16729
25fbec5b
AK
16730else
16731 ac_cv_func_getmntent=no
795ca3e5 16732fi
795ca3e5
AK
16733
16734
ad6254c5
AK
16735
16736
16737for ac_header in sys/select.h sys/socket.h
16738do
ec6a6fbe 16739as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 16740if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
16741 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16742$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 16743if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 16744 $as_echo_n "(cached) " >&6
ad6254c5 16745fi
ec6a6fbe
AK
16746ac_res=`eval 'as_val=${'$as_ac_Header'}
16747 $as_echo "$as_val"'`
16748 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16749$as_echo "$ac_res" >&6; }
795ca3e5 16750else
ad6254c5 16751 # Is the header compilable?
ec6a6fbe
AK
16752{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16753$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 16754cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
16755/* confdefs.h. */
16756_ACEOF
16757cat confdefs.h >>conftest.$ac_ext
16758cat >>conftest.$ac_ext <<_ACEOF
16759/* end confdefs.h. */
16760$ac_includes_default
16761#include <$ac_header>
16762_ACEOF
16763rm -f conftest.$ac_objext
7a197a62
AK
16764if { (ac_try="$ac_compile"
16765case "(($ac_try" in
16766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16767 *) ac_try_echo=$ac_try;;
16768esac
ec6a6fbe
AK
16769eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16770$as_echo "$ac_try_echo") >&5
7a197a62 16771 (eval "$ac_compile") 2>conftest.er1
ad6254c5 16772 ac_status=$?
8a2fc586
AK
16773 grep -v '^ *+' conftest.er1 >conftest.err
16774 rm -f conftest.er1
16775 cat conftest.err >&5
ec6a6fbe 16776 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
16777 (exit $ac_status); } && {
16778 test -z "$ac_c_werror_flag" ||
16779 test ! -s conftest.err
16780 } && test -s conftest.$ac_objext; then
ad6254c5 16781 ac_header_compiler=yes
80992638 16782else
ec6a6fbe 16783 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
16784sed 's/^/| /' conftest.$ac_ext >&5
16785
7a197a62 16786 ac_header_compiler=no
ad6254c5 16787fi
7a197a62
AK
16788
16789rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
16790{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16791$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
16792
16793# Is the header present?
ec6a6fbe
AK
16794{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16795$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 16796cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
16797/* confdefs.h. */
16798_ACEOF
16799cat confdefs.h >>conftest.$ac_ext
16800cat >>conftest.$ac_ext <<_ACEOF
16801/* end confdefs.h. */
16802#include <$ac_header>
16803_ACEOF
7a197a62
AK
16804if { (ac_try="$ac_cpp conftest.$ac_ext"
16805case "(($ac_try" in
16806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16807 *) ac_try_echo=$ac_try;;
16808esac
ec6a6fbe
AK
16809eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16810$as_echo "$ac_try_echo") >&5
7a197a62 16811 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
16812 ac_status=$?
16813 grep -v '^ *+' conftest.er1 >conftest.err
16814 rm -f conftest.er1
16815 cat conftest.err >&5
ec6a6fbe 16816 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
16817 (exit $ac_status); } >/dev/null && {
16818 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16819 test ! -s conftest.err
16820 }; then
ad6254c5
AK
16821 ac_header_preproc=yes
16822else
ec6a6fbe 16823 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
16824sed 's/^/| /' conftest.$ac_ext >&5
16825
16826 ac_header_preproc=no
16827fi
7a197a62 16828
ad6254c5 16829rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
16830{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16831$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
16832
16833# So? What about this header?
8a2fc586
AK
16834case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16835 yes:no: )
ec6a6fbe
AK
16836 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16837$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16838 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16839$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 16840 ac_header_preproc=yes
ad6254c5 16841 ;;
8a2fc586 16842 no:yes:* )
ec6a6fbe
AK
16843 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16844$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16845 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16846$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16847 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16848$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16849 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16850$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16851 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16852$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16853 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16854$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 16855
ad6254c5
AK
16856 ;;
16857esac
ec6a6fbe
AK
16858{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16859$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 16860if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 16861 $as_echo_n "(cached) " >&6
ad6254c5 16862else
8a2fc586 16863 eval "$as_ac_Header=\$ac_header_preproc"
8106cdd5 16864fi
ec6a6fbe
AK
16865ac_res=`eval 'as_val=${'$as_ac_Header'}
16866 $as_echo "$as_val"'`
16867 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16868$as_echo "$ac_res" >&6; }
8106cdd5 16869
795ca3e5 16870fi
ec6a6fbe
AK
16871as_val=`eval 'as_val=${'$as_ac_Header'}
16872 $as_echo "$as_val"'`
16873 if test "x$as_val" = x""yes; then
ad6254c5 16874 cat >>confdefs.h <<_ACEOF
ec6a6fbe 16875#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
16876_ACEOF
16877
795ca3e5
AK
16878fi
16879
ad6254c5
AK
16880done
16881
ec6a6fbe
AK
16882{ $as_echo "$as_me:$LINENO: checking types of arguments for select" >&5
16883$as_echo_n "checking types of arguments for select... " >&6; }
ad6254c5 16884if test "${ac_cv_func_select_args+set}" = set; then
ec6a6fbe 16885 $as_echo_n "(cached) " >&6
26e7f2e0 16886else
ad6254c5 16887 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
7a197a62 16888 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
ad6254c5
AK
16889 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
16890 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
16891/* confdefs.h. */
16892_ACEOF
16893cat confdefs.h >>conftest.$ac_ext
16894cat >>conftest.$ac_ext <<_ACEOF
16895/* end confdefs.h. */
16896$ac_includes_default
25fbec5b 16897#ifdef HAVE_SYS_SELECT_H
ad6254c5
AK
16898# include <sys/select.h>
16899#endif
25fbec5b 16900#ifdef HAVE_SYS_SOCKET_H
ad6254c5
AK
16901# include <sys/socket.h>
16902#endif
16903
16904int
16905main ()
16906{
16907extern int select ($ac_arg1,
8a2fc586
AK
16908 $ac_arg234, $ac_arg234, $ac_arg234,
16909 $ac_arg5);
ad6254c5
AK
16910 ;
16911 return 0;
16912}
16913_ACEOF
16914rm -f conftest.$ac_objext
7a197a62
AK
16915if { (ac_try="$ac_compile"
16916case "(($ac_try" in
16917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16918 *) ac_try_echo=$ac_try;;
16919esac
ec6a6fbe
AK
16920eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16921$as_echo "$ac_try_echo") >&5
7a197a62 16922 (eval "$ac_compile") 2>conftest.er1
ad6254c5 16923 ac_status=$?
8a2fc586
AK
16924 grep -v '^ *+' conftest.er1 >conftest.err
16925 rm -f conftest.er1
16926 cat conftest.err >&5
ec6a6fbe 16927 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
16928 (exit $ac_status); } && {
16929 test -z "$ac_c_werror_flag" ||
16930 test ! -s conftest.err
16931 } && test -s conftest.$ac_objext; then
ad6254c5
AK
16932 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
16933else
ec6a6fbe 16934 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
16935sed 's/^/| /' conftest.$ac_ext >&5
16936
7a197a62 16937
ad6254c5 16938fi
7a197a62
AK
16939
16940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
16941 done
16942 done
16943done
16944# Provide a safe default value.
16945: ${ac_cv_func_select_args='int,int *,struct timeval *'}
16946
26e7f2e0 16947fi
ec6a6fbe
AK
16948{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
16949$as_echo "$ac_cv_func_select_args" >&6; }
ad6254c5
AK
16950ac_save_IFS=$IFS; IFS=','
16951set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
16952IFS=$ac_save_IFS
16953shift
16954
16955cat >>confdefs.h <<_ACEOF
16956#define SELECT_TYPE_ARG1 $1
16957_ACEOF
16958
16959
16960cat >>confdefs.h <<_ACEOF
16961#define SELECT_TYPE_ARG234 ($2)
16962_ACEOF
16963
16964
16965cat >>confdefs.h <<_ACEOF
16966#define SELECT_TYPE_ARG5 ($3)
16967_ACEOF
16968
80992638 16969rm -f conftest*
80992638 16970
8106cdd5 16971fi
ad6254c5 16972
ad6254c5
AK
16973if test x$CLUSTER != xnone; then
16974
16975
16976for ac_header in sys/socket.h sys/un.h
b896caa1 16977do
ec6a6fbe 16978as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 16979if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
16980 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16981$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 16982if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 16983 $as_echo_n "(cached) " >&6
ad6254c5 16984fi
ec6a6fbe
AK
16985ac_res=`eval 'as_val=${'$as_ac_Header'}
16986 $as_echo "$as_val"'`
16987 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16988$as_echo "$ac_res" >&6; }
ad6254c5
AK
16989else
16990 # Is the header compilable?
ec6a6fbe
AK
16991{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16992$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 16993cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
16994/* confdefs.h. */
16995_ACEOF
16996cat confdefs.h >>conftest.$ac_ext
16997cat >>conftest.$ac_ext <<_ACEOF
16998/* end confdefs.h. */
16999$ac_includes_default
17000#include <$ac_header>
17001_ACEOF
17002rm -f conftest.$ac_objext
7a197a62
AK
17003if { (ac_try="$ac_compile"
17004case "(($ac_try" in
17005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17006 *) ac_try_echo=$ac_try;;
17007esac
ec6a6fbe
AK
17008eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17009$as_echo "$ac_try_echo") >&5
7a197a62 17010 (eval "$ac_compile") 2>conftest.er1
ad6254c5 17011 ac_status=$?
8a2fc586
AK
17012 grep -v '^ *+' conftest.er1 >conftest.err
17013 rm -f conftest.er1
17014 cat conftest.err >&5
ec6a6fbe 17015 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
17016 (exit $ac_status); } && {
17017 test -z "$ac_c_werror_flag" ||
17018 test ! -s conftest.err
17019 } && test -s conftest.$ac_objext; then
ad6254c5
AK
17020 ac_header_compiler=yes
17021else
ec6a6fbe 17022 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
17023sed 's/^/| /' conftest.$ac_ext >&5
17024
7a197a62 17025 ac_header_compiler=no
ad6254c5 17026fi
7a197a62
AK
17027
17028rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
17029{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17030$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
17031
17032# Is the header present?
ec6a6fbe
AK
17033{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17034$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 17035cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
17036/* confdefs.h. */
17037_ACEOF
17038cat confdefs.h >>conftest.$ac_ext
17039cat >>conftest.$ac_ext <<_ACEOF
17040/* end confdefs.h. */
17041#include <$ac_header>
17042_ACEOF
7a197a62
AK
17043if { (ac_try="$ac_cpp conftest.$ac_ext"
17044case "(($ac_try" in
17045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17046 *) ac_try_echo=$ac_try;;
17047esac
ec6a6fbe
AK
17048eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17049$as_echo "$ac_try_echo") >&5
7a197a62 17050 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
17051 ac_status=$?
17052 grep -v '^ *+' conftest.er1 >conftest.err
17053 rm -f conftest.er1
17054 cat conftest.err >&5
ec6a6fbe 17055 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
17056 (exit $ac_status); } >/dev/null && {
17057 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17058 test ! -s conftest.err
17059 }; then
ad6254c5
AK
17060 ac_header_preproc=yes
17061else
ec6a6fbe 17062 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
17063sed 's/^/| /' conftest.$ac_ext >&5
17064
17065 ac_header_preproc=no
17066fi
7a197a62 17067
ad6254c5 17068rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
17069{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17070$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
17071
17072# So? What about this header?
8a2fc586
AK
17073case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17074 yes:no: )
ec6a6fbe
AK
17075 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17076$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17077 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17078$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 17079 ac_header_preproc=yes
ad6254c5 17080 ;;
8a2fc586 17081 no:yes:* )
ec6a6fbe
AK
17082 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17083$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17084 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17085$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17086 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17087$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17088 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17089$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17090 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17091$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17092 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17093$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 17094
ad6254c5
AK
17095 ;;
17096esac
ec6a6fbe
AK
17097{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17098$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 17099if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 17100 $as_echo_n "(cached) " >&6
ad6254c5 17101else
8a2fc586 17102 eval "$as_ac_Header=\$ac_header_preproc"
b896caa1 17103fi
ec6a6fbe
AK
17104ac_res=`eval 'as_val=${'$as_ac_Header'}
17105 $as_echo "$as_val"'`
17106 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17107$as_echo "$ac_res" >&6; }
ad6254c5
AK
17108
17109fi
ec6a6fbe
AK
17110as_val=`eval 'as_val=${'$as_ac_Header'}
17111 $as_echo "$as_val"'`
17112 if test "x$as_val" = x""yes; then
ad6254c5 17113 cat >>confdefs.h <<_ACEOF
ec6a6fbe 17114#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
17115_ACEOF
17116
80992638 17117else
ec6a6fbe
AK
17118 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
17119$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 17120 { (exit 1); exit 1; }; }
b896caa1 17121fi
ad6254c5 17122
b896caa1
AK
17123done
17124
17125
ad6254c5
AK
17126for ac_func in socket
17127do
ec6a6fbe
AK
17128as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17129{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17130$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 17131if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 17132 $as_echo_n "(cached) " >&6
795ca3e5 17133else
ad6254c5 17134 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
17135/* confdefs.h. */
17136_ACEOF
17137cat confdefs.h >>conftest.$ac_ext
17138cat >>conftest.$ac_ext <<_ACEOF
17139/* end confdefs.h. */
8a2fc586
AK
17140/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17141 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17142#define $ac_func innocuous_$ac_func
17143
ad6254c5
AK
17144/* System header to define __stub macros and hopefully few prototypes,
17145 which can conflict with char $ac_func (); below.
17146 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17147 <limits.h> exists even on freestanding compilers. */
8a2fc586 17148
ad6254c5
AK
17149#ifdef __STDC__
17150# include <limits.h>
17151#else
17152# include <assert.h>
17153#endif
8a2fc586
AK
17154
17155#undef $ac_func
17156
7a197a62
AK
17157/* Override any GCC internal prototype to avoid an error.
17158 Use char because int might match the return type of a GCC
17159 builtin and then its argument prototype would still apply. */
ad6254c5
AK
17160#ifdef __cplusplus
17161extern "C"
ad6254c5 17162#endif
ad6254c5
AK
17163char $ac_func ();
17164/* The GNU C library defines this for functions which it implements
17165 to always fail with ENOSYS. Some functions are actually named
17166 something starting with __ and the normal name is an alias. */
7a197a62 17167#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 17168choke me
ad6254c5
AK
17169#endif
17170
17171int
17172main ()
17173{
7a197a62 17174return $ac_func ();
ad6254c5
AK
17175 ;
17176 return 0;
17177}
17178_ACEOF
17179rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
17180if { (ac_try="$ac_link"
17181case "(($ac_try" in
17182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17183 *) ac_try_echo=$ac_try;;
17184esac
ec6a6fbe
AK
17185eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17186$as_echo "$ac_try_echo") >&5
7a197a62 17187 (eval "$ac_link") 2>conftest.er1
ad6254c5 17188 ac_status=$?
8a2fc586
AK
17189 grep -v '^ *+' conftest.er1 >conftest.err
17190 rm -f conftest.er1
17191 cat conftest.err >&5
ec6a6fbe 17192 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
17193 (exit $ac_status); } && {
17194 test -z "$ac_c_werror_flag" ||
17195 test ! -s conftest.err
ec6a6fbe
AK
17196 } && test -s conftest$ac_exeext && {
17197 test "$cross_compiling" = yes ||
17198 $as_test_x conftest$ac_exeext
17199 }; then
ad6254c5
AK
17200 eval "$as_ac_var=yes"
17201else
ec6a6fbe 17202 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
17203sed 's/^/| /' conftest.$ac_ext >&5
17204
7a197a62 17205 eval "$as_ac_var=no"
ad6254c5 17206fi
7a197a62 17207
ec6a6fbe 17208rm -rf conftest.dSYM
25fbec5b 17209rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 17210 conftest$ac_exeext conftest.$ac_ext
ad6254c5 17211fi
ec6a6fbe
AK
17212ac_res=`eval 'as_val=${'$as_ac_var'}
17213 $as_echo "$as_val"'`
17214 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17215$as_echo "$ac_res" >&6; }
17216as_val=`eval 'as_val=${'$as_ac_var'}
17217 $as_echo "$as_val"'`
17218 if test "x$as_val" = x""yes; then
ad6254c5 17219 cat >>confdefs.h <<_ACEOF
ec6a6fbe 17220#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
17221_ACEOF
17222
17223else
ec6a6fbe
AK
17224 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
17225$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5
AK
17226 { (exit 1); exit 1; }; }
17227fi
17228done
17229
17230fi
17231
d911ec67
AK
17232if test x$DMEVENTD = xyes; then
17233
17234for ac_header in arpa/inet.h
17235do
17236as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17237if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17238 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17239$as_echo_n "checking for $ac_header... " >&6; }
17240if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17241 $as_echo_n "(cached) " >&6
17242fi
17243ac_res=`eval 'as_val=${'$as_ac_Header'}
17244 $as_echo "$as_val"'`
17245 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17246$as_echo "$ac_res" >&6; }
17247else
17248 # Is the header compilable?
17249{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17250$as_echo_n "checking $ac_header usability... " >&6; }
17251cat >conftest.$ac_ext <<_ACEOF
17252/* confdefs.h. */
17253_ACEOF
17254cat confdefs.h >>conftest.$ac_ext
17255cat >>conftest.$ac_ext <<_ACEOF
17256/* end confdefs.h. */
17257$ac_includes_default
17258#include <$ac_header>
17259_ACEOF
17260rm -f conftest.$ac_objext
17261if { (ac_try="$ac_compile"
17262case "(($ac_try" in
17263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17264 *) ac_try_echo=$ac_try;;
17265esac
17266eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17267$as_echo "$ac_try_echo") >&5
17268 (eval "$ac_compile") 2>conftest.er1
17269 ac_status=$?
17270 grep -v '^ *+' conftest.er1 >conftest.err
17271 rm -f conftest.er1
17272 cat conftest.err >&5
17273 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17274 (exit $ac_status); } && {
17275 test -z "$ac_c_werror_flag" ||
17276 test ! -s conftest.err
17277 } && test -s conftest.$ac_objext; then
17278 ac_header_compiler=yes
17279else
17280 $as_echo "$as_me: failed program was:" >&5
17281sed 's/^/| /' conftest.$ac_ext >&5
17282
17283 ac_header_compiler=no
17284fi
17285
17286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17287{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17288$as_echo "$ac_header_compiler" >&6; }
17289
17290# Is the header present?
17291{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17292$as_echo_n "checking $ac_header presence... " >&6; }
17293cat >conftest.$ac_ext <<_ACEOF
17294/* confdefs.h. */
17295_ACEOF
17296cat confdefs.h >>conftest.$ac_ext
17297cat >>conftest.$ac_ext <<_ACEOF
17298/* end confdefs.h. */
17299#include <$ac_header>
17300_ACEOF
17301if { (ac_try="$ac_cpp conftest.$ac_ext"
17302case "(($ac_try" in
17303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17304 *) ac_try_echo=$ac_try;;
17305esac
17306eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17307$as_echo "$ac_try_echo") >&5
17308 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17309 ac_status=$?
17310 grep -v '^ *+' conftest.er1 >conftest.err
17311 rm -f conftest.er1
17312 cat conftest.err >&5
17313 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17314 (exit $ac_status); } >/dev/null && {
17315 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17316 test ! -s conftest.err
17317 }; then
17318 ac_header_preproc=yes
17319else
17320 $as_echo "$as_me: failed program was:" >&5
17321sed 's/^/| /' conftest.$ac_ext >&5
17322
17323 ac_header_preproc=no
17324fi
17325
17326rm -f conftest.err conftest.$ac_ext
17327{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17328$as_echo "$ac_header_preproc" >&6; }
17329
17330# So? What about this header?
17331case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17332 yes:no: )
17333 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17334$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17335 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17336$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17337 ac_header_preproc=yes
17338 ;;
17339 no:yes:* )
17340 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17341$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17342 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17343$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17344 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17345$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17346 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17347$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17348 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17349$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17350 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17351$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17352
17353 ;;
17354esac
17355{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17356$as_echo_n "checking for $ac_header... " >&6; }
17357if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17358 $as_echo_n "(cached) " >&6
17359else
17360 eval "$as_ac_Header=\$ac_header_preproc"
17361fi
17362ac_res=`eval 'as_val=${'$as_ac_Header'}
17363 $as_echo "$as_val"'`
17364 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17365$as_echo "$ac_res" >&6; }
17366
17367fi
17368as_val=`eval 'as_val=${'$as_ac_Header'}
17369 $as_echo "$as_val"'`
17370 if test "x$as_val" = x""yes; then
17371 cat >>confdefs.h <<_ACEOF
17372#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17373_ACEOF
17374
17375else
17376 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
17377$as_echo "$as_me: error: bailing out" >&2;}
17378 { (exit 1); exit 1; }; }
17379fi
17380
17381done
17382
17383fi
17384
ad6254c5
AK
17385if test x$HAVE_LIBDL = xyes; then
17386
17387for ac_header in dlfcn.h
17388do
ec6a6fbe 17389as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 17390if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
17391 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17392$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 17393if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 17394 $as_echo_n "(cached) " >&6
ad6254c5 17395fi
ec6a6fbe
AK
17396ac_res=`eval 'as_val=${'$as_ac_Header'}
17397 $as_echo "$as_val"'`
17398 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17399$as_echo "$ac_res" >&6; }
ad6254c5
AK
17400else
17401 # Is the header compilable?
ec6a6fbe
AK
17402{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17403$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 17404cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
17405/* confdefs.h. */
17406_ACEOF
17407cat confdefs.h >>conftest.$ac_ext
17408cat >>conftest.$ac_ext <<_ACEOF
17409/* end confdefs.h. */
17410$ac_includes_default
17411#include <$ac_header>
17412_ACEOF
17413rm -f conftest.$ac_objext
7a197a62
AK
17414if { (ac_try="$ac_compile"
17415case "(($ac_try" in
17416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17417 *) ac_try_echo=$ac_try;;
17418esac
ec6a6fbe
AK
17419eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17420$as_echo "$ac_try_echo") >&5
7a197a62 17421 (eval "$ac_compile") 2>conftest.er1
ad6254c5 17422 ac_status=$?
8a2fc586
AK
17423 grep -v '^ *+' conftest.er1 >conftest.err
17424 rm -f conftest.er1
17425 cat conftest.err >&5
ec6a6fbe 17426 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
17427 (exit $ac_status); } && {
17428 test -z "$ac_c_werror_flag" ||
17429 test ! -s conftest.err
17430 } && test -s conftest.$ac_objext; then
ad6254c5
AK
17431 ac_header_compiler=yes
17432else
ec6a6fbe 17433 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
17434sed 's/^/| /' conftest.$ac_ext >&5
17435
7a197a62 17436 ac_header_compiler=no
ad6254c5 17437fi
7a197a62
AK
17438
17439rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
17440{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17441$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
17442
17443# Is the header present?
ec6a6fbe
AK
17444{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17445$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 17446cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
17447/* confdefs.h. */
17448_ACEOF
17449cat confdefs.h >>conftest.$ac_ext
17450cat >>conftest.$ac_ext <<_ACEOF
17451/* end confdefs.h. */
17452#include <$ac_header>
17453_ACEOF
7a197a62
AK
17454if { (ac_try="$ac_cpp conftest.$ac_ext"
17455case "(($ac_try" in
17456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17457 *) ac_try_echo=$ac_try;;
17458esac
ec6a6fbe
AK
17459eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17460$as_echo "$ac_try_echo") >&5
7a197a62 17461 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
17462 ac_status=$?
17463 grep -v '^ *+' conftest.er1 >conftest.err
17464 rm -f conftest.er1
17465 cat conftest.err >&5
ec6a6fbe 17466 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
17467 (exit $ac_status); } >/dev/null && {
17468 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17469 test ! -s conftest.err
17470 }; then
ad6254c5
AK
17471 ac_header_preproc=yes
17472else
ec6a6fbe 17473 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
17474sed 's/^/| /' conftest.$ac_ext >&5
17475
17476 ac_header_preproc=no
17477fi
7a197a62 17478
ad6254c5 17479rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
17480{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17481$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
17482
17483# So? What about this header?
8a2fc586
AK
17484case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17485 yes:no: )
ec6a6fbe
AK
17486 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17487$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17488 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17489$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 17490 ac_header_preproc=yes
ad6254c5 17491 ;;
8a2fc586 17492 no:yes:* )
ec6a6fbe
AK
17493 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17494$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17495 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17496$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17497 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17498$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17499 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17500$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17501 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17502$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17503 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17504$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 17505
ad6254c5
AK
17506 ;;
17507esac
ec6a6fbe
AK
17508{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17509$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 17510if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 17511 $as_echo_n "(cached) " >&6
ad6254c5 17512else
8a2fc586 17513 eval "$as_ac_Header=\$ac_header_preproc"
795ca3e5 17514fi
ec6a6fbe
AK
17515ac_res=`eval 'as_val=${'$as_ac_Header'}
17516 $as_echo "$as_val"'`
17517 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17518$as_echo "$ac_res" >&6; }
80992638 17519
8106cdd5 17520fi
ec6a6fbe
AK
17521as_val=`eval 'as_val=${'$as_ac_Header'}
17522 $as_echo "$as_val"'`
17523 if test "x$as_val" = x""yes; then
ad6254c5 17524 cat >>confdefs.h <<_ACEOF
ec6a6fbe 17525#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 17526_ACEOF
795ca3e5
AK
17527
17528else
ec6a6fbe
AK
17529 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
17530$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 17531 { (exit 1); exit 1; }; }
795ca3e5
AK
17532fi
17533
ad6254c5 17534done
80992638 17535
ad6254c5 17536fi
80992638 17537
ad6254c5 17538if test x$INTL = xyes; then
83912faa 17539
ad6254c5
AK
17540for ac_header in libintl.h
17541do
ec6a6fbe 17542as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 17543if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
17544 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17545$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 17546if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 17547 $as_echo_n "(cached) " >&6
ad6254c5 17548fi
ec6a6fbe
AK
17549ac_res=`eval 'as_val=${'$as_ac_Header'}
17550 $as_echo "$as_val"'`
17551 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17552$as_echo "$ac_res" >&6; }
83912faa 17553else
ad6254c5 17554 # Is the header compilable?
ec6a6fbe
AK
17555{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17556$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 17557cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
17558/* confdefs.h. */
17559_ACEOF
17560cat confdefs.h >>conftest.$ac_ext
17561cat >>conftest.$ac_ext <<_ACEOF
17562/* end confdefs.h. */
17563$ac_includes_default
17564#include <$ac_header>
17565_ACEOF
17566rm -f conftest.$ac_objext
7a197a62
AK
17567if { (ac_try="$ac_compile"
17568case "(($ac_try" in
17569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17570 *) ac_try_echo=$ac_try;;
17571esac
ec6a6fbe
AK
17572eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17573$as_echo "$ac_try_echo") >&5
7a197a62 17574 (eval "$ac_compile") 2>conftest.er1
ad6254c5 17575 ac_status=$?
8a2fc586
AK
17576 grep -v '^ *+' conftest.er1 >conftest.err
17577 rm -f conftest.er1
17578 cat conftest.err >&5
ec6a6fbe 17579 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
17580 (exit $ac_status); } && {
17581 test -z "$ac_c_werror_flag" ||
17582 test ! -s conftest.err
17583 } && test -s conftest.$ac_objext; then
ad6254c5
AK
17584 ac_header_compiler=yes
17585else
ec6a6fbe 17586 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
17587sed 's/^/| /' conftest.$ac_ext >&5
17588
7a197a62 17589 ac_header_compiler=no
ad6254c5 17590fi
7a197a62
AK
17591
17592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
17593{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17594$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
17595
17596# Is the header present?
ec6a6fbe
AK
17597{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17598$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 17599cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
17600/* confdefs.h. */
17601_ACEOF
17602cat confdefs.h >>conftest.$ac_ext
17603cat >>conftest.$ac_ext <<_ACEOF
17604/* end confdefs.h. */
17605#include <$ac_header>
17606_ACEOF
7a197a62
AK
17607if { (ac_try="$ac_cpp conftest.$ac_ext"
17608case "(($ac_try" in
17609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17610 *) ac_try_echo=$ac_try;;
17611esac
ec6a6fbe
AK
17612eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17613$as_echo "$ac_try_echo") >&5
7a197a62 17614 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
17615 ac_status=$?
17616 grep -v '^ *+' conftest.er1 >conftest.err
17617 rm -f conftest.er1
17618 cat conftest.err >&5
ec6a6fbe 17619 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
17620 (exit $ac_status); } >/dev/null && {
17621 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17622 test ! -s conftest.err
17623 }; then
ad6254c5
AK
17624 ac_header_preproc=yes
17625else
ec6a6fbe 17626 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
17627sed 's/^/| /' conftest.$ac_ext >&5
17628
17629 ac_header_preproc=no
17630fi
7a197a62 17631
ad6254c5 17632rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
17633{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17634$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
17635
17636# So? What about this header?
8a2fc586
AK
17637case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17638 yes:no: )
ec6a6fbe
AK
17639 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17640$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17641 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17642$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 17643 ac_header_preproc=yes
ad6254c5 17644 ;;
8a2fc586 17645 no:yes:* )
ec6a6fbe
AK
17646 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17647$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17648 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17649$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17650 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17651$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17652 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17653$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17654 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17655$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17656 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17657$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 17658
ad6254c5
AK
17659 ;;
17660esac
ec6a6fbe
AK
17661{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17662$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 17663if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 17664 $as_echo_n "(cached) " >&6
80992638 17665else
8a2fc586 17666 eval "$as_ac_Header=\$ac_header_preproc"
83912faa 17667fi
ec6a6fbe
AK
17668ac_res=`eval 'as_val=${'$as_ac_Header'}
17669 $as_echo "$as_val"'`
17670 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17671$as_echo "$ac_res" >&6; }
83912faa 17672
69792976 17673fi
ec6a6fbe
AK
17674as_val=`eval 'as_val=${'$as_ac_Header'}
17675 $as_echo "$as_val"'`
17676 if test "x$as_val" = x""yes; then
ad6254c5 17677 cat >>confdefs.h <<_ACEOF
ec6a6fbe 17678#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 17679_ACEOF
69792976 17680
69792976 17681else
ec6a6fbe
AK
17682 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
17683$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 17684 { (exit 1); exit 1; }; }
80992638
AK
17685fi
17686
ad6254c5 17687done
69792976 17688
ad6254c5
AK
17689fi
17690
a5f46f6a
AK
17691if test x$UDEV_SYNC = xyes; then
17692
17693
17694for ac_header in sys/ipc.h sys/sem.h
17695do
17696as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17697if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17698 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17699$as_echo_n "checking for $ac_header... " >&6; }
17700if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17701 $as_echo_n "(cached) " >&6
17702fi
17703ac_res=`eval 'as_val=${'$as_ac_Header'}
17704 $as_echo "$as_val"'`
17705 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17706$as_echo "$ac_res" >&6; }
17707else
17708 # Is the header compilable?
17709{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17710$as_echo_n "checking $ac_header usability... " >&6; }
17711cat >conftest.$ac_ext <<_ACEOF
17712/* confdefs.h. */
17713_ACEOF
17714cat confdefs.h >>conftest.$ac_ext
17715cat >>conftest.$ac_ext <<_ACEOF
17716/* end confdefs.h. */
17717$ac_includes_default
17718#include <$ac_header>
17719_ACEOF
17720rm -f conftest.$ac_objext
17721if { (ac_try="$ac_compile"
17722case "(($ac_try" in
17723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17724 *) ac_try_echo=$ac_try;;
17725esac
17726eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17727$as_echo "$ac_try_echo") >&5
17728 (eval "$ac_compile") 2>conftest.er1
17729 ac_status=$?
17730 grep -v '^ *+' conftest.er1 >conftest.err
17731 rm -f conftest.er1
17732 cat conftest.err >&5
17733 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17734 (exit $ac_status); } && {
17735 test -z "$ac_c_werror_flag" ||
17736 test ! -s conftest.err
17737 } && test -s conftest.$ac_objext; then
17738 ac_header_compiler=yes
17739else
17740 $as_echo "$as_me: failed program was:" >&5
17741sed 's/^/| /' conftest.$ac_ext >&5
17742
17743 ac_header_compiler=no
17744fi
17745
17746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17747{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17748$as_echo "$ac_header_compiler" >&6; }
17749
17750# Is the header present?
17751{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17752$as_echo_n "checking $ac_header presence... " >&6; }
17753cat >conftest.$ac_ext <<_ACEOF
17754/* confdefs.h. */
17755_ACEOF
17756cat confdefs.h >>conftest.$ac_ext
17757cat >>conftest.$ac_ext <<_ACEOF
17758/* end confdefs.h. */
17759#include <$ac_header>
17760_ACEOF
17761if { (ac_try="$ac_cpp conftest.$ac_ext"
17762case "(($ac_try" in
17763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17764 *) ac_try_echo=$ac_try;;
17765esac
17766eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17767$as_echo "$ac_try_echo") >&5
17768 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17769 ac_status=$?
17770 grep -v '^ *+' conftest.er1 >conftest.err
17771 rm -f conftest.er1
17772 cat conftest.err >&5
17773 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17774 (exit $ac_status); } >/dev/null && {
17775 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17776 test ! -s conftest.err
17777 }; then
17778 ac_header_preproc=yes
17779else
17780 $as_echo "$as_me: failed program was:" >&5
17781sed 's/^/| /' conftest.$ac_ext >&5
17782
17783 ac_header_preproc=no
17784fi
17785
17786rm -f conftest.err conftest.$ac_ext
17787{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17788$as_echo "$ac_header_preproc" >&6; }
17789
17790# So? What about this header?
17791case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17792 yes:no: )
17793 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17794$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17795 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17796$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17797 ac_header_preproc=yes
17798 ;;
17799 no:yes:* )
17800 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17801$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17802 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17803$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17804 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17805$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17806 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17807$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17808 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17809$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17810 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17811$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17812
17813 ;;
17814esac
17815{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17816$as_echo_n "checking for $ac_header... " >&6; }
17817if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17818 $as_echo_n "(cached) " >&6
17819else
17820 eval "$as_ac_Header=\$ac_header_preproc"
17821fi
17822ac_res=`eval 'as_val=${'$as_ac_Header'}
17823 $as_echo "$as_val"'`
17824 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17825$as_echo "$ac_res" >&6; }
17826
17827fi
17828as_val=`eval 'as_val=${'$as_ac_Header'}
17829 $as_echo "$as_val"'`
17830 if test "x$as_val" = x""yes; then
17831 cat >>confdefs.h <<_ACEOF
17832#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17833_ACEOF
17834
17835else
17836 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
17837$as_echo "$as_me: error: bailing out" >&2;}
17838 { (exit 1); exit 1; }; }
17839fi
17840
17841done
17842
17843fi
17844
a653923f
AK
17845################################################################################
17846# Extract the first word of "modprobe", so it can be a program name with args.
17847set dummy modprobe; ac_word=$2
ec6a6fbe
AK
17848{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
17849$as_echo_n "checking for $ac_word... " >&6; }
72b2cb61 17850if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then
ec6a6fbe 17851 $as_echo_n "(cached) " >&6
72b2cb61
AK
17852else
17853 case $MODPROBE_CMD in
17854 [\\/]* | ?:[\\/]*)
17855 ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path.
17856 ;;
17857 *)
17858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17859for as_dir in $PATH
17860do
17861 IFS=$as_save_IFS
17862 test -z "$as_dir" && as_dir=.
17863 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 17864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
72b2cb61 17865 ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 17866 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
72b2cb61
AK
17867 break 2
17868 fi
17869done
17870done
7a197a62 17871IFS=$as_save_IFS
72b2cb61
AK
17872
17873 ;;
17874esac
17875fi
17876MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD
72b2cb61 17877if test -n "$MODPROBE_CMD"; then
ec6a6fbe
AK
17878 { $as_echo "$as_me:$LINENO: result: $MODPROBE_CMD" >&5
17879$as_echo "$MODPROBE_CMD" >&6; }
72b2cb61 17880else
ec6a6fbe
AK
17881 { $as_echo "$as_me:$LINENO: result: no" >&5
17882$as_echo "no" >&6; }
72b2cb61
AK
17883fi
17884
a653923f 17885
7a197a62 17886
a653923f 17887if test x$MODPROBE_CMD != x; then
72b2cb61
AK
17888
17889cat >>confdefs.h <<_ACEOF
17890#define MODPROBE_CMD "$MODPROBE_CMD"
17891_ACEOF
17892
a653923f
AK
17893fi
17894
b5c2529b 17895
a9b601e2
ZK
17896lvm_exec_prefix=$exec_prefix
17897test "$lvm_exec_prefix" = NONE && lvm_exec_prefix=$prefix
17898test "$lvm_exec_prefix" = NONE && lvm_exec_prefix=$ac_default_prefix
17899
b5c2529b 17900cat >>confdefs.h <<_ACEOF
a9b601e2 17901#define LVM_PATH "$lvm_exec_prefix/sbin/lvm"
b5c2529b
ZK
17902_ACEOF
17903
17904
17905if test "$CLVMD" != none; then
17906 clvmd_prefix=$ac_default_prefix
17907 test "$prefix" != NONE && clvmd_prefix=$prefix
17908
17909cat >>confdefs.h <<_ACEOF
17910#define CLVMD_PATH "$clvmd_prefix/sbin/clvmd"
17911_ACEOF
17912
17913fi
17914
80992638 17915################################################################################
93bd259b
AK
17916if test "$BUILD_DMEVENTD" = yes; then
17917
17918# Check whether --with-dmeventd-pidfile was given.
17919if test "${with_dmeventd_pidfile+set}" = set; then
71082be4 17920 withval=$with_dmeventd_pidfile; DMEVENTD_PIDFILE=$withval
93bd259b 17921else
71082be4 17922 DMEVENTD_PIDFILE="/var/run/dmeventd.pid"
93bd259b
AK
17923fi
17924
93bd259b 17925
71082be4
ZK
17926cat >>confdefs.h <<_ACEOF
17927#define DMEVENTD_PIDFILE "$DMEVENTD_PIDFILE"
17928_ACEOF
93bd259b 17929
71082be4 17930fi
93bd259b
AK
17931
17932if test "$BUILD_DMEVENTD" = yes; then
93bd259b
AK
17933
17934# Check whether --with-dmeventd-path was given.
17935if test "${with_dmeventd_path+set}" = set; then
71082be4 17936 withval=$with_dmeventd_path; DMEVENTD_PATH=$withval
93bd259b 17937else
71082be4 17938 DMEVENTD_PATH="$lvm_exec_prefix/sbin/dmeventd"
93bd259b
AK
17939fi
17940
93bd259b 17941
71082be4
ZK
17942cat >>confdefs.h <<_ACEOF
17943#define DMEVENTD_PATH "$DMEVENTD_PATH"
17944_ACEOF
3399ae32 17945
71082be4 17946fi
3399ae32 17947
8bae0a1e
AK
17948
17949
17950
17951# Check whether --with-default-run-dir was given.
17952if test "${with_default_run_dir+set}" = set; then
17953 withval=$with_default_run_dir; DEFAULT_RUN_DIR="$withval"
17954else
17955 DEFAULT_RUN_DIR="/var/run/lvm"
17956fi
17957
17958cat >>confdefs.h <<_ACEOF
17959#define DEFAULT_RUN_DIR "$DEFAULT_RUN_DIR"
17960_ACEOF
17961
17962
71082be4 17963################################################################################
3399ae32
AK
17964
17965# Check whether --with-default-system-dir was given.
17966if test "${with_default_system_dir+set}" = set; then
71082be4 17967 withval=$with_default_system_dir; DEFAULT_SYS_DIR=$withval
3399ae32 17968else
71082be4 17969 DEFAULT_SYS_DIR="/etc/lvm"
3399ae32
AK
17970fi
17971
71082be4 17972
3399ae32
AK
17973cat >>confdefs.h <<_ACEOF
17974#define DEFAULT_SYS_DIR "$DEFAULT_SYS_DIR"
17975_ACEOF
17976
17977
17978
3399ae32
AK
17979# Check whether --with-default-archive-subdir was given.
17980if test "${with_default_archive_subdir+set}" = set; then
71082be4 17981 withval=$with_default_archive_subdir; DEFAULT_ARCHIVE_SUBDIR=$withval
3399ae32 17982else
71082be4 17983 DEFAULT_ARCHIVE_SUBDIR=archive
3399ae32
AK
17984fi
17985
71082be4 17986
3399ae32
AK
17987cat >>confdefs.h <<_ACEOF
17988#define DEFAULT_ARCHIVE_SUBDIR "$DEFAULT_ARCHIVE_SUBDIR"
17989_ACEOF
17990
17991
17992
3399ae32
AK
17993# Check whether --with-default-backup-subdir was given.
17994if test "${with_default_backup_subdir+set}" = set; then
71082be4 17995 withval=$with_default_backup_subdir; DEFAULT_BACKUP_SUBDIR=$withval
3399ae32 17996else
71082be4 17997 DEFAULT_BACKUP_SUBDIR=backup
3399ae32
AK
17998fi
17999
71082be4 18000
3399ae32
AK
18001cat >>confdefs.h <<_ACEOF
18002#define DEFAULT_BACKUP_SUBDIR "$DEFAULT_BACKUP_SUBDIR"
18003_ACEOF
18004
18005
18006
3399ae32
AK
18007# Check whether --with-default-cache-subdir was given.
18008if test "${with_default_cache_subdir+set}" = set; then
71082be4 18009 withval=$with_default_cache_subdir; DEFAULT_CACHE_SUBDIR=$withval
3399ae32 18010else
71082be4 18011 DEFAULT_CACHE_SUBDIR=cache
3399ae32
AK
18012fi
18013
71082be4 18014
3399ae32
AK
18015cat >>confdefs.h <<_ACEOF
18016#define DEFAULT_CACHE_SUBDIR "$DEFAULT_CACHE_SUBDIR"
18017_ACEOF
18018
18019
18020
3399ae32
AK
18021# Check whether --with-default-locking-dir was given.
18022if test "${with_default_locking_dir+set}" = set; then
71082be4 18023 withval=$with_default_locking_dir; DEFAULT_LOCK_DIR=$withval
3399ae32 18024else
71082be4 18025 DEFAULT_LOCK_DIR="/var/lock/lvm"
3399ae32
AK
18026fi
18027
71082be4 18028
3399ae32
AK
18029cat >>confdefs.h <<_ACEOF
18030#define DEFAULT_LOCK_DIR "$DEFAULT_LOCK_DIR"
18031_ACEOF
18032
18033
fea55602
DW
18034################################################################################
18035
18036# Check whether --with-default-data-alignment was given.
18037if test "${with_default_data_alignment+set}" = set; then
18038 withval=$with_default_data_alignment; DEFAULT_DATA_ALIGNMENT=$withval
18039else
18040 DEFAULT_DATA_ALIGNMENT=1
18041fi
18042
18043
18044cat >>confdefs.h <<_ACEOF
18045#define DEFAULT_DATA_ALIGNMENT $DEFAULT_DATA_ALIGNMENT
18046_ACEOF
18047
18048
93bd259b 18049################################################################################
ec6a6fbe
AK
18050{ $as_echo "$as_me:$LINENO: checking for kernel interface choice" >&5
18051$as_echo_n "checking for kernel interface choice... " >&6; }
93bd259b
AK
18052
18053# Check whether --with-interface was given.
18054if test "${with_interface+set}" = set; then
71082be4 18055 withval=$with_interface; interface=$withval
93bd259b 18056else
71082be4 18057 interface=ioctl
93bd259b
AK
18058fi
18059
18060if [ "x$interface" != xioctl ];
18061then
ec6a6fbe
AK
18062 { { $as_echo "$as_me:$LINENO: error: --with-interface=ioctl required. fs no longer supported." >&5
18063$as_echo "$as_me: error: --with-interface=ioctl required. fs no longer supported." >&2;}
93bd259b
AK
18064 { (exit 1); exit 1; }; }
18065fi
ec6a6fbe
AK
18066{ $as_echo "$as_me:$LINENO: result: $interface" >&5
18067$as_echo "$interface" >&6; }
93bd259b
AK
18068
18069################################################################################
db8b5af9 18070DM_LIB_VERSION="\"`cat "$srcdir"/VERSION_DM 2>/dev/null || echo Unknown`\""
24bbc4d7
AK
18071
18072cat >>confdefs.h <<_ACEOF
18073#define DM_LIB_VERSION $DM_LIB_VERSION
18074_ACEOF
18075
18076
db8b5af9 18077DM_LIB_PATCHLEVEL=`cat "$srcdir"/VERSION_DM | $AWK -F '[-. ]' '{printf "%s.%s.%s",$1,$2,$3}'`
7e3fe830 18078
db8b5af9 18079LVM_VERSION="\"`cat "$srcdir"/VERSION 2>/dev/null || echo Unknown`\""
fae0c576 18080
db8b5af9 18081VER=`cat "$srcdir"/VERSION`
bf456146 18082LVM_RELEASE_DATE="\"`echo $VER | $SED 's/.* (//;s/).*//'`\""
ec6a6fbe
AK
18083VER=`echo "$VER" | $AWK '{print $1}'`
18084LVM_RELEASE="\"`echo "$VER" | $AWK -F '-' '{print $2}'`\""
18085VER=`echo "$VER" | $AWK -F '-' '{print $1}'`
18086LVM_MAJOR=`echo "$VER" | $AWK -F '.' '{print $1}'`
18087LVM_MINOR=`echo "$VER" | $AWK -F '.' '{print $2}'`
bf456146
AK
18088LVM_PATCHLEVEL=`echo "$VER" | $AWK -F '[(.]' '{print $3}'`
18089LVM_LIBAPI=`echo "$VER" | $AWK -F '[()]' '{print $2}'`
ec6a6fbe 18090
80992638 18091################################################################################
fae0c576 18092
83912faa 18093
795ca3e5
AK
18094
18095
18096
18097
18098
18099
5a52dca9 18100
8ef2b021 18101
199e490e 18102
69792976
AK
18103
18104
18105
d0191583 18106
69792976 18107
8106cdd5
AK
18108
18109
18110
18111
18112
d68a82ec 18113
036f273a 18114
7d1552c9 18115
8106cdd5 18116
0a62c911 18117
8106cdd5 18118
4a7f3eb2 18119
4922197a
AK
18120
18121
d8ac0fbc 18122
1a9ea74d 18123
8a2fc586
AK
18124
18125
d0191583 18126
93bd259b
AK
18127
18128
18129
18130
18131
d0191583
JM
18132
18133
18134
18135
18136
8a2fc586 18137
19a2c6e0 18138
f7f0854e
ZK
18139
18140
3ceb7608 18141
8ce0cbda 18142
8b1a3214 18143
ec6a6fbe
AK
18144
18145
18146
18147
e2997b73
AK
18148
18149
18150
18151
18152
18153
a946372e
AK
18154
18155
18156
18157
18158
18159
18160
18161
18162
18163
18164
ec6a6fbe 18165
33f732c5 18166
66e941e8 18167
d3c8211f 18168
7e3fe830 18169
a5f46f6a
AK
18170
18171
18172
572fefeb 18173
90c80887 18174
3399ae32
AK
18175
18176
18177
18178
18179
90c80887 18180
bf456146 18181
e1b8a236 18182
0878503f 18183
8fea97b7 18184
54b362f9 18185
b1f08e51 18186
d1e8046f 18187
fea55602 18188
c89bc357 18189
37ddf259 18190
68f2de6d
AK
18191
18192
80992638 18193################################################################################
d1e8046f 18194ac_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 doc/example.conf include/.symlinks include/Makefile lib/Makefile lib/format1/Makefile lib/format_pool/Makefile lib/locking/Makefile lib/mirror/Makefile lib/replicator/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 unit-tests/datastruct/Makefile unit-tests/regex/Makefile unit-tests/mm/Makefile"
7a197a62 18195
ad6254c5 18196cat >confcache <<\_ACEOF
795ca3e5
AK
18197# This file is a shell script that caches the results of configure
18198# tests run on this system so they can be shared between configure
ad6254c5
AK
18199# scripts and configure runs, see configure's option --config-cache.
18200# It is not useful on other systems. If it contains results you don't
18201# want to keep, you may remove or edit it.
795ca3e5 18202#
ad6254c5
AK
18203# config.status only pays attention to the cache file if you give it
18204# the --recheck option to rerun configure.
795ca3e5 18205#
ad6254c5
AK
18206# `ac_cv_env_foo' variables (set or unset) will be overridden when
18207# loading this file, other *unset* `ac_cv_foo' will be assigned the
18208# following values.
18209
18210_ACEOF
18211
795ca3e5
AK
18212# The following way of writing the cache mishandles newlines in values,
18213# but we know of no workaround that is simple, portable, and efficient.
7a197a62 18214# So, we kill variables containing newlines.
795ca3e5
AK
18215# Ultrix sh set writes to stderr and can't be redirected directly,
18216# and sets the high bit in the cache file unless we assign to the vars.
7a197a62
AK
18217(
18218 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18219 eval ac_val=\$$ac_var
18220 case $ac_val in #(
18221 *${as_nl}*)
18222 case $ac_var in #(
ec6a6fbe
AK
18223 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
18224$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7a197a62
AK
18225 esac
18226 case $ac_var in #(
18227 _ | IFS | as_nl) ;; #(
ec6a6fbe 18228 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7a197a62
AK
18229 *) $as_unset $ac_var ;;
18230 esac ;;
18231 esac
18232 done
18233
ad6254c5 18234 (set) 2>&1 |
7a197a62
AK
18235 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18236 *${as_nl}ac_space=\ *)
ad6254c5
AK
18237 # `set' does not quote correctly, so add quotes (double-quote
18238 # substitution turns \\\\ into \\, and sed turns \\ into \).
18239 sed -n \
8a2fc586
AK
18240 "s/'/'\\\\''/g;
18241 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7a197a62 18242 ;; #(
ad6254c5
AK
18243 *)
18244 # `set' quotes correctly as required by POSIX, so do not add quotes.
7a197a62 18245 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
ad6254c5 18246 ;;
7a197a62
AK
18247 esac |
18248 sort
18249) |
ad6254c5 18250 sed '
7a197a62 18251 /^ac_cv_env_/b end
ad6254c5 18252 t clear
7a197a62 18253 :clear
ad6254c5
AK
18254 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18255 t end
7a197a62
AK
18256 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18257 :end' >>confcache
18258if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18259 if test -w "$cache_file"; then
18260 test "x$cache_file" != "x/dev/null" &&
ec6a6fbe
AK
18261 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
18262$as_echo "$as_me: updating cache $cache_file" >&6;}
ad6254c5 18263 cat confcache >$cache_file
795ca3e5 18264 else
ec6a6fbe
AK
18265 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
18266$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
795ca3e5
AK
18267 fi
18268fi
18269rm -f confcache
18270
795ca3e5
AK
18271test "x$prefix" = xNONE && prefix=$ac_default_prefix
18272# Let make expand exec_prefix.
18273test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18274
72b2cb61 18275DEFS=-DHAVE_CONFIG_H
ad6254c5
AK
18276
18277ac_libobjs=
18278ac_ltlibobjs=
18279for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18280 # 1. Remove the extension, and $U if already installed.
7a197a62 18281 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
ec6a6fbe 18282 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7a197a62
AK
18283 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18284 # will be set to the directory where LIBOBJS objects are built.
18285 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18286 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
ad6254c5
AK
18287done
18288LIBOBJS=$ac_libobjs
80992638 18289
ad6254c5
AK
18290LTLIBOBJS=$ac_ltlibobjs
18291
18292
18293
18294: ${CONFIG_STATUS=./config.status}
ec6a6fbe 18295ac_write_fail=0
ad6254c5
AK
18296ac_clean_files_save=$ac_clean_files
18297ac_clean_files="$ac_clean_files $CONFIG_STATUS"
ec6a6fbe
AK
18298{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18299$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18300cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5
AK
18301#! $SHELL
18302# Generated by $as_me.
795ca3e5 18303# Run this file to recreate the current configuration.
795ca3e5 18304# Compiler output produced by configure, useful for debugging
ad6254c5
AK
18305# configure, is in config.log if it exists.
18306
18307debug=false
18308ac_cs_recheck=false
18309ac_cs_silent=false
18310SHELL=\${CONFIG_SHELL-$SHELL}
18311_ACEOF
18312
ec6a6fbe 18313cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ad6254c5
AK
18314## --------------------- ##
18315## M4sh Initialization. ##
18316## --------------------- ##
18317
25fbec5b
AK
18318# Be more Bourne compatible
18319DUALCASE=1; export DUALCASE # for MKS sh
ad6254c5
AK
18320if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18321 emulate sh
18322 NULLCMD=:
ec6a6fbe 18323 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
ad6254c5
AK
18324 # is contrary to our usage. Disable this feature.
18325 alias -g '${1+"$@"}'='"$@"'
7a197a62
AK
18326 setopt NO_GLOB_SUBST
18327else
25fbec5b
AK
18328 case `(set -o) 2>/dev/null` in
18329 *posix*) set -o posix ;;
18330esac
18331
7a197a62 18332fi
25fbec5b
AK
18333
18334
7a197a62
AK
18335
18336
18337# PATH needs CR
18338# Avoid depending upon Character Ranges.
18339as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18340as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18341as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18342as_cr_digits='0123456789'
18343as_cr_alnum=$as_cr_Letters$as_cr_digits
18344
ec6a6fbe
AK
18345as_nl='
18346'
18347export as_nl
18348# Printing a long string crashes Solaris 7 /usr/bin/printf.
18349as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18350as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18351as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18352if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18353 as_echo='printf %s\n'
18354 as_echo_n='printf %s'
18355else
18356 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18357 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18358 as_echo_n='/usr/ucb/echo -n'
68f2de6d 18359 else
ec6a6fbe
AK
18360 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18361 as_echo_n_body='eval
18362 arg=$1;
18363 case $arg in
18364 *"$as_nl"*)
18365 expr "X$arg" : "X\\(.*\\)$as_nl";
18366 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18367 esac;
18368 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18369 '
18370 export as_echo_n_body
18371 as_echo_n='sh -c $as_echo_n_body as_echo'
68f2de6d 18372 fi
ec6a6fbe
AK
18373 export as_echo_body
18374 as_echo='sh -c $as_echo_body as_echo'
18375fi
18376
18377# The user is always right.
18378if test "${PATH_SEPARATOR+set}" != set; then
18379 PATH_SEPARATOR=:
18380 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18381 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18382 PATH_SEPARATOR=';'
18383 }
ad6254c5
AK
18384fi
18385
18386# Support unset when possible.
8a2fc586 18387if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
ad6254c5
AK
18388 as_unset=unset
18389else
18390 as_unset=false
18391fi
8106cdd5 18392
ad6254c5 18393
7a197a62
AK
18394# IFS
18395# We need space, tab and new line, in precisely that order. Quoting is
18396# there to prevent editors from complaining about space-tab.
18397# (If _AS_PATH_WALK were called with IFS unset, it would disable word
18398# splitting by setting IFS to empty value.)
7a197a62
AK
18399IFS=" "" $as_nl"
18400
18401# Find who we are. Look in the path if we contain no directory separator.
18402case $0 in
18403 *[\\/]* ) as_myself=$0 ;;
18404 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18405for as_dir in $PATH
18406do
18407 IFS=$as_save_IFS
18408 test -z "$as_dir" && as_dir=.
18409 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18410done
18411IFS=$as_save_IFS
18412
18413 ;;
18414esac
18415# We did not find ourselves, most probably we were run as `sh COMMAND'
18416# in which case we are not to be found in the path.
18417if test "x$as_myself" = x; then
18418 as_myself=$0
18419fi
18420if test ! -f "$as_myself"; then
ec6a6fbe 18421 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7a197a62
AK
18422 { (exit 1); exit 1; }
18423fi
18424
ad6254c5 18425# Work around bugs in pre-3.0 UWIN ksh.
7a197a62
AK
18426for as_var in ENV MAIL MAILPATH
18427do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
18428done
ad6254c5
AK
18429PS1='$ '
18430PS2='> '
18431PS4='+ '
18432
18433# NLS nuisances.
ec6a6fbe
AK
18434LC_ALL=C
18435export LC_ALL
18436LANGUAGE=C
18437export LANGUAGE
8106cdd5 18438
ad6254c5 18439# Required to use basename.
7a197a62
AK
18440if expr a : '\(a\)' >/dev/null 2>&1 &&
18441 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
18442 as_expr=expr
18443else
18444 as_expr=false
18445fi
8106cdd5 18446
7a197a62 18447if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
ad6254c5
AK
18448 as_basename=basename
18449else
18450 as_basename=false
18451fi
18452
18453
18454# Name of the executable.
7a197a62 18455as_me=`$as_basename -- "$0" ||
ad6254c5
AK
18456$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18457 X"$0" : 'X\(//\)$' \| \
7a197a62 18458 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 18459$as_echo X/"$0" |
7a197a62
AK
18460 sed '/^.*\/\([^/][^/]*\)\/*$/{
18461 s//\1/
18462 q
18463 }
18464 /^X\/\(\/\/\)$/{
18465 s//\1/
18466 q
18467 }
18468 /^X\/\(\/\).*/{
18469 s//\1/
18470 q
18471 }
18472 s/.*/./; q'`
ad6254c5 18473
7a197a62
AK
18474# CDPATH.
18475$as_unset CDPATH
ad6254c5
AK
18476
18477
ad6254c5 18478
ad6254c5
AK
18479 as_lineno_1=$LINENO
18480 as_lineno_2=$LINENO
ad6254c5 18481 test "x$as_lineno_1" != "x$as_lineno_2" &&
7a197a62 18482 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
795ca3e5 18483
ad6254c5
AK
18484 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18485 # uniformly replaced by the line number. The first 'sed' inserts a
7a197a62
AK
18486 # line-number line after each line using $LINENO; the second 'sed'
18487 # does the real work. The second script uses 'N' to pair each
18488 # line-number line with the line containing $LINENO, and appends
18489 # trailing '-' during substitution so that $LINENO is not a special
18490 # case at line end.
ad6254c5 18491 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7a197a62
AK
18492 # scripts with optimization help from Paolo Bonzini. Blame Lee
18493 # E. McMahon (1931-1989) for sed's syntax. :-)
18494 sed -n '
18495 p
18496 /[$]LINENO/=
18497 ' <$as_myself |
ad6254c5 18498 sed '
7a197a62
AK
18499 s/[$]LINENO.*/&-/
18500 t lineno
18501 b
18502 :lineno
ad6254c5 18503 N
7a197a62
AK
18504 :loop
18505 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
ad6254c5 18506 t loop
7a197a62 18507 s/-\n.*//
ad6254c5 18508 ' >$as_me.lineno &&
7a197a62 18509 chmod +x "$as_me.lineno" ||
ec6a6fbe 18510 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
ad6254c5
AK
18511 { (exit 1); exit 1; }; }
18512
18513 # Don't try to exec as it changes $[0], causing all sort of problems
18514 # (the dirname of $[0] is not the place where we might find the
7a197a62
AK
18515 # original and so on. Autoconf is especially sensitive to this).
18516 . "./$as_me.lineno"
ad6254c5
AK
18517 # Exit status is that of the last command.
18518 exit
18519}
18520
18521
7a197a62
AK
18522if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18523 as_dirname=dirname
18524else
18525 as_dirname=false
18526fi
18527
18528ECHO_C= ECHO_N= ECHO_T=
18529case `echo -n x` in
18530-n*)
18531 case `echo 'x\c'` in
18532 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18533 *) ECHO_C='\c';;
18534 esac;;
18535*)
18536 ECHO_N='-n';;
ad6254c5 18537esac
7a197a62
AK
18538if expr a : '\(a\)' >/dev/null 2>&1 &&
18539 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
18540 as_expr=expr
18541else
18542 as_expr=false
18543fi
80992638 18544
ad6254c5 18545rm -f conf$$ conf$$.exe conf$$.file
7a197a62
AK
18546if test -d conf$$.dir; then
18547 rm -f conf$$.dir/conf$$.file
18548else
18549 rm -f conf$$.dir
ec6a6fbe
AK
18550 mkdir conf$$.dir 2>/dev/null
18551fi
18552if (echo >conf$$.file) 2>/dev/null; then
18553 if ln -s conf$$.file conf$$ 2>/dev/null; then
18554 as_ln_s='ln -s'
18555 # ... but there are two gotchas:
18556 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18557 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18558 # In both cases, we have to default to `cp -p'.
18559 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18560 as_ln_s='cp -p'
18561 elif ln conf$$.file conf$$ 2>/dev/null; then
18562 as_ln_s=ln
18563 else
ad6254c5 18564 as_ln_s='cp -p'
ec6a6fbe 18565 fi
ad6254c5
AK
18566else
18567 as_ln_s='cp -p'
18568fi
7a197a62
AK
18569rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18570rmdir conf$$.dir 2>/dev/null
8106cdd5 18571
ad6254c5
AK
18572if mkdir -p . 2>/dev/null; then
18573 as_mkdir_p=:
18574else
8a2fc586 18575 test -d ./-p && rmdir ./-p
ad6254c5
AK
18576 as_mkdir_p=false
18577fi
18578
25fbec5b
AK
18579if test -x / >/dev/null 2>&1; then
18580 as_test_x='test -x'
7a197a62 18581else
25fbec5b
AK
18582 if ls -dL / >/dev/null 2>&1; then
18583 as_ls_L_option=L
18584 else
18585 as_ls_L_option=
18586 fi
18587 as_test_x='
18588 eval sh -c '\''
18589 if test -d "$1"; then
ec6a6fbe 18590 test -d "$1/.";
25fbec5b
AK
18591 else
18592 case $1 in
ec6a6fbe 18593 -*)set "./$1";;
25fbec5b
AK
18594 esac;
18595 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
18596 ???[sx]*):;;*)false;;esac;fi
18597 '\'' sh
18598 '
7a197a62 18599fi
25fbec5b 18600as_executable_p=$as_test_x
ad6254c5
AK
18601
18602# Sed expression to map a string onto a valid CPP name.
8a2fc586 18603as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
18604
18605# Sed expression to map a string onto a valid variable name.
8a2fc586 18606as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
18607
18608
ad6254c5
AK
18609exec 6>&1
18610
7a197a62 18611# Save the log message, to keep $[0] and so on meaningful, and to
ad6254c5 18612# report actual input values of CONFIG_FILES etc. instead of their
7a197a62
AK
18613# values after options handling.
18614ac_log="
ad6254c5 18615This file was extended by $as_me, which was
ec6a6fbe 18616generated by GNU Autoconf 2.63. Invocation command line was
ad6254c5
AK
18617
18618 CONFIG_FILES = $CONFIG_FILES
18619 CONFIG_HEADERS = $CONFIG_HEADERS
18620 CONFIG_LINKS = $CONFIG_LINKS
18621 CONFIG_COMMANDS = $CONFIG_COMMANDS
18622 $ $0 $@
18623
7a197a62
AK
18624on `(hostname || uname -n) 2>/dev/null | sed 1q`
18625"
18626
ad6254c5
AK
18627_ACEOF
18628
ec6a6fbe
AK
18629case $ac_config_files in *"
18630"*) set x $ac_config_files; shift; ac_config_files=$*;;
18631esac
18632
18633case $ac_config_headers in *"
18634"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18635esac
18636
18637
18638cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5 18639# Files that config.status was made for.
68f2de6d
AK
18640config_files="$ac_config_files"
18641config_headers="$ac_config_headers"
ad6254c5 18642
7a197a62 18643_ACEOF
ad6254c5 18644
ec6a6fbe 18645cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ad6254c5
AK
18646ac_cs_usage="\
18647\`$as_me' instantiates files from templates according to the
18648current configuration.
18649
ec6a6fbe 18650Usage: $0 [OPTION]... [FILE]...
ad6254c5
AK
18651
18652 -h, --help print this help, then exit
25fbec5b 18653 -V, --version print version number and configuration settings, then exit
ec6a6fbe
AK
18654 -q, --quiet, --silent
18655 do not print progress messages
ad6254c5
AK
18656 -d, --debug don't remove temporary files
18657 --recheck update $as_me by reconfiguring in the same conditions
ec6a6fbe
AK
18658 --file=FILE[:TEMPLATE]
18659 instantiate the configuration file FILE
18660 --header=FILE[:TEMPLATE]
18661 instantiate the configuration header FILE
ad6254c5
AK
18662
18663Configuration files:
18664$config_files
18665
72b2cb61
AK
18666Configuration headers:
18667$config_headers
18668
ad6254c5 18669Report bugs to <bug-autoconf@gnu.org>."
ad6254c5 18670
7a197a62 18671_ACEOF
ec6a6fbe 18672cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5
AK
18673ac_cs_version="\\
18674config.status
ec6a6fbe
AK
18675configured by $0, generated by GNU Autoconf 2.63,
18676 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
ad6254c5 18677
ec6a6fbe 18678Copyright (C) 2008 Free Software Foundation, Inc.
ad6254c5
AK
18679This config.status script is free software; the Free Software Foundation
18680gives unlimited permission to copy, distribute and modify it."
7a197a62
AK
18681
18682ac_pwd='$ac_pwd'
18683srcdir='$srcdir'
18684INSTALL='$INSTALL'
fddafd51 18685MKDIR_P='$MKDIR_P'
ec6a6fbe
AK
18686AWK='$AWK'
18687test -n "\$AWK" || AWK=awk
ad6254c5
AK
18688_ACEOF
18689
ec6a6fbe
AK
18690cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18691# The default lists apply if the user does not specify any file.
ad6254c5
AK
18692ac_need_defaults=:
18693while test $# != 0
18694do
18695 case $1 in
18696 --*=*)
7a197a62
AK
18697 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18698 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
ad6254c5
AK
18699 ac_shift=:
18700 ;;
7a197a62 18701 *)
ad6254c5
AK
18702 ac_option=$1
18703 ac_optarg=$2
18704 ac_shift=shift
18705 ;;
ad6254c5
AK
18706 esac
18707
18708 case $ac_option in
18709 # Handling of the options.
ad6254c5
AK
18710 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18711 ac_cs_recheck=: ;;
7a197a62 18712 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
ec6a6fbe 18713 $as_echo "$ac_cs_version"; exit ;;
7a197a62 18714 --debug | --debu | --deb | --de | --d | -d )
ad6254c5
AK
18715 debug=: ;;
18716 --file | --fil | --fi | --f )
18717 $ac_shift
ec6a6fbe
AK
18718 case $ac_optarg in
18719 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18720 esac
18721 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
ad6254c5
AK
18722 ac_need_defaults=false;;
18723 --header | --heade | --head | --hea )
18724 $ac_shift
ec6a6fbe
AK
18725 case $ac_optarg in
18726 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18727 esac
18728 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
ad6254c5 18729 ac_need_defaults=false;;
7a197a62
AK
18730 --he | --h)
18731 # Conflict between --help and --header
ec6a6fbe 18732 { $as_echo "$as_me: error: ambiguous option: $1
7a197a62
AK
18733Try \`$0 --help' for more information." >&2
18734 { (exit 1); exit 1; }; };;
18735 --help | --hel | -h )
ec6a6fbe 18736 $as_echo "$ac_cs_usage"; exit ;;
ad6254c5
AK
18737 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18738 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18739 ac_cs_silent=: ;;
18740
18741 # This is an error.
ec6a6fbe 18742 -*) { $as_echo "$as_me: error: unrecognized option: $1
7a197a62 18743Try \`$0 --help' for more information." >&2
ad6254c5
AK
18744 { (exit 1); exit 1; }; } ;;
18745
7a197a62
AK
18746 *) ac_config_targets="$ac_config_targets $1"
18747 ac_need_defaults=false ;;
ad6254c5
AK
18748
18749 esac
18750 shift
18751done
18752
18753ac_configure_extra_args=
18754
18755if $ac_cs_silent; then
18756 exec 6>/dev/null
18757 ac_configure_extra_args="$ac_configure_extra_args --silent"
18758fi
18759
18760_ACEOF
ec6a6fbe 18761cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5 18762if \$ac_cs_recheck; then
ec6a6fbe
AK
18763 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18764 shift
18765 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18766 CONFIG_SHELL='$SHELL'
7a197a62 18767 export CONFIG_SHELL
ec6a6fbe 18768 exec "\$@"
ad6254c5
AK
18769fi
18770
18771_ACEOF
ec6a6fbe 18772cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
18773exec 5>>config.log
18774{
18775 echo
18776 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18777## Running $as_me. ##
18778_ASBOX
ec6a6fbe 18779 $as_echo "$ac_log"
7a197a62 18780} >&5
ad6254c5 18781
7a197a62 18782_ACEOF
ec6a6fbe 18783cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7a197a62 18784_ACEOF
ad6254c5 18785
ec6a6fbe 18786cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
18787
18788# Handling of arguments.
ad6254c5
AK
18789for ac_config_target in $ac_config_targets
18790do
7a197a62
AK
18791 case $ac_config_target in
18792 "lib/misc/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;;
18793 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18794 "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;;
18795 "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;;
18796 "daemons/clvmd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;;
5d311afb 18797 "daemons/cmirrord/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/cmirrord/Makefile" ;;
93bd259b
AK
18798 "daemons/dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/Makefile" ;;
18799 "daemons/dmeventd/libdevmapper-event.pc") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/libdevmapper-event.pc" ;;
04f06bc9 18800 "daemons/dmeventd/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/Makefile" ;;
d3d98fdc 18801 "daemons/dmeventd/plugins/lvm2/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/lvm2/Makefile" ;;
93bd259b
AK
18802 "daemons/dmeventd/plugins/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/mirror/Makefile" ;;
18803 "daemons/dmeventd/plugins/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/snapshot/Makefile" ;;
7a197a62 18804 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
da05c479 18805 "doc/example.conf") CONFIG_FILES="$CONFIG_FILES doc/example.conf" ;;
db8b5af9 18806 "include/.symlinks") CONFIG_FILES="$CONFIG_FILES include/.symlinks" ;;
93bd259b
AK
18807 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
18808 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
7a197a62
AK
18809 "lib/format1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;;
18810 "lib/format_pool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;;
18811 "lib/locking/Makefile") CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;;
18812 "lib/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;;
8fea97b7 18813 "lib/replicator/Makefile") CONFIG_FILES="$CONFIG_FILES lib/replicator/Makefile" ;;
ec6a6fbe 18814 "lib/misc/lvm-version.h") CONFIG_FILES="$CONFIG_FILES lib/misc/lvm-version.h" ;;
7a197a62 18815 "lib/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;;
93bd259b
AK
18816 "libdm/Makefile") CONFIG_FILES="$CONFIG_FILES libdm/Makefile" ;;
18817 "libdm/libdevmapper.pc") CONFIG_FILES="$CONFIG_FILES libdm/libdevmapper.pc" ;;
e0c64c6c 18818 "liblvm/Makefile") CONFIG_FILES="$CONFIG_FILES liblvm/Makefile" ;;
70046623 18819 "liblvm/liblvm2app.pc") CONFIG_FILES="$CONFIG_FILES liblvm/liblvm2app.pc" ;;
93bd259b
AK
18820 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
18821 "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
75ad7143 18822 "scripts/clvmd_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/clvmd_init_red_hat" ;;
81410c8f 18823 "scripts/cmirrord_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/cmirrord_init_red_hat" ;;
595eaf92 18824 "scripts/lvm2_monitoring_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_monitoring_init_red_hat" ;;
7a197a62 18825 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
93bd259b 18826 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
c7e363f9 18827 "test/api/Makefile") CONFIG_FILES="$CONFIG_FILES test/api/Makefile" ;;
7a197a62 18828 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
a5f46f6a 18829 "udev/Makefile") CONFIG_FILES="$CONFIG_FILES udev/Makefile" ;;
54b362f9
AK
18830 "unit-tests/datastruct/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/datastruct/Makefile" ;;
18831 "unit-tests/regex/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/regex/Makefile" ;;
d1e8046f 18832 "unit-tests/mm/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/mm/Makefile" ;;
7a197a62 18833
ec6a6fbe
AK
18834 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18835$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
ad6254c5 18836 { (exit 1); exit 1; }; };;
80992638 18837 esac
ad6254c5
AK
18838done
18839
7a197a62 18840
ad6254c5
AK
18841# If the user did not use the arguments to specify the items to instantiate,
18842# then the envvar interface is used. Set only those that are not.
18843# We use the long form for the default assignment because of an extremely
18844# bizarre bug on SunOS 4.1.3.
18845if $ac_need_defaults; then
18846 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
72b2cb61 18847 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
ad6254c5
AK
18848fi
18849
18850# Have a temporary directory for convenience. Make it in the build tree
7a197a62 18851# simply because there is no reason against having it here, and in addition,
ad6254c5 18852# creating and moving files from /tmp can sometimes cause problems.
7a197a62
AK
18853# Hook for its removal unless debugging.
18854# Note that there is a small window in which the directory will not be cleaned:
18855# after its creation but before its name has been assigned to `$tmp'.
ad6254c5
AK
18856$debug ||
18857{
7a197a62
AK
18858 tmp=
18859 trap 'exit_status=$?
18860 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18861' 0
ad6254c5
AK
18862 trap '{ (exit 1); exit 1; }' 1 2 13 15
18863}
ad6254c5
AK
18864# Create a (secure) tmp directory for tmp files.
18865
18866{
7a197a62 18867 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
ad6254c5
AK
18868 test -n "$tmp" && test -d "$tmp"
18869} ||
18870{
7a197a62
AK
18871 tmp=./conf$$-$RANDOM
18872 (umask 077 && mkdir "$tmp")
ad6254c5
AK
18873} ||
18874{
ec6a6fbe 18875 $as_echo "$as_me: cannot create a temporary directory in ." >&2
ad6254c5
AK
18876 { (exit 1); exit 1; }
18877}
18878
ec6a6fbe
AK
18879# Set up the scripts for CONFIG_FILES section.
18880# No need to generate them if there are no CONFIG_FILES.
18881# This happens for instance with `./config.status config.h'.
1995c9ff 18882if test -n "$CONFIG_FILES"; then
7a197a62 18883
68f2de6d 18884
ec6a6fbe
AK
18885ac_cr='\r'
18886ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18887if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18888 ac_cs_awk_cr='\\r'
18889else
18890 ac_cs_awk_cr=$ac_cr
1995c9ff 18891fi
7a197a62 18892
ec6a6fbe 18893echo 'BEGIN {' >"$tmp/subs1.awk" &&
1995c9ff 18894_ACEOF
7a197a62 18895
8106cdd5 18896
ec6a6fbe
AK
18897{
18898 echo "cat >conf$$subs.awk <<_ACEOF" &&
18899 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18900 echo "_ACEOF"
18901} >conf$$subs.sh ||
18902 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18903$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18904 { (exit 1); exit 1; }; }
18905ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
1995c9ff
AK
18906ac_delim='%!_!# '
18907for ac_last_try in false false false false false :; do
ec6a6fbe
AK
18908 . ./conf$$subs.sh ||
18909 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18910$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18911 { (exit 1); exit 1; }; }
18912
18913 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18914 if test $ac_delim_n = $ac_delim_num; then
1995c9ff
AK
18915 break
18916 elif $ac_last_try; then
ec6a6fbe
AK
18917 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18918$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
1995c9ff
AK
18919 { (exit 1); exit 1; }; }
18920 else
18921 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18922 fi
18923done
ec6a6fbe
AK
18924rm -f conf$$subs.sh
18925
18926cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18927cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
18928_ACEOF
18929sed -n '
18930h
18931s/^/S["/; s/!.*/"]=/
18932p
18933g
18934s/^[^!]*!//
18935:repl
18936t repl
18937s/'"$ac_delim"'$//
18938t delim
18939:nl
18940h
18941s/\(.\{148\}\).*/\1/
18942t more1
18943s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18944p
18945n
18946b repl
18947:more1
18948s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18949p
18950g
18951s/.\{148\}//
18952t nl
18953:delim
18954h
18955s/\(.\{148\}\).*/\1/
18956t more2
18957s/["\\]/\\&/g; s/^/"/; s/$/"/
18958p
18959b
18960:more2
18961s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18962p
18963g
18964s/.\{148\}//
18965t delim
18966' <conf$$subs.awk | sed '
18967/^[^""]/{
18968 N
18969 s/\n//
18970}
18971' >>$CONFIG_STATUS || ac_write_fail=1
18972rm -f conf$$subs.awk
18973cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18974_ACAWK
18975cat >>"\$tmp/subs1.awk" <<_ACAWK &&
18976 for (key in S) S_is_set[key] = 1
18977 FS = "\a"
7a197a62 18978
ec6a6fbe
AK
18979}
18980{
18981 line = $ 0
18982 nfields = split(line, field, "@")
18983 substed = 0
18984 len = length(field[1])
18985 for (i = 2; i < nfields; i++) {
18986 key = field[i]
18987 keylen = length(key)
18988 if (S_is_set[key]) {
18989 value = S[key]
18990 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18991 len += length(value) + length(field[++i])
18992 substed = 1
18993 } else
18994 len += 1 + keylen
18995 }
18996
18997 print line
18998}
fddafd51 18999
ec6a6fbe 19000_ACAWK
1995c9ff 19001_ACEOF
ec6a6fbe
AK
19002cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19003if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19004 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19005else
19006 cat
19007fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
19008 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
19009$as_echo "$as_me: error: could not setup config files machinery" >&2;}
19010 { (exit 1); exit 1; }; }
7a197a62
AK
19011_ACEOF
19012
7a197a62
AK
19013# VPATH may cause trouble with some makes, so we remove $(srcdir),
19014# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19015# trailing colons and then remove the whole line if VPATH becomes empty
19016# (actually we leave an empty line to preserve line numbers).
19017if test "x$srcdir" = x.; then
19018 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19019s/:*\$(srcdir):*/:/
19020s/:*\${srcdir}:*/:/
19021s/:*@srcdir@:*/:/
19022s/^\([^=]*=[ ]*\):*/\1/
19023s/:*$//
19024s/^[^=]*=[ ]*$//
19025}'
19026fi
19027
ec6a6fbe 19028cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
19029fi # test -n "$CONFIG_FILES"
19030
ec6a6fbe
AK
19031# Set up the scripts for CONFIG_HEADERS section.
19032# No need to generate them if there are no CONFIG_HEADERS.
19033# This happens for instance with `./config.status Makefile'.
19034if test -n "$CONFIG_HEADERS"; then
19035cat >"$tmp/defines.awk" <<\_ACAWK ||
19036BEGIN {
19037_ACEOF
19038
19039# Transform confdefs.h into an awk script `defines.awk', embedded as
19040# here-document in config.status, that substitutes the proper values into
19041# config.h.in to produce config.h.
19042
19043# Create a delimiter string that does not exist in confdefs.h, to ease
19044# handling of long lines.
19045ac_delim='%!_!# '
19046for ac_last_try in false false :; do
19047 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
19048 if test -z "$ac_t"; then
19049 break
19050 elif $ac_last_try; then
19051 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
19052$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
19053 { (exit 1); exit 1; }; }
19054 else
19055 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19056 fi
19057done
19058
19059# For the awk script, D is an array of macro values keyed by name,
19060# likewise P contains macro parameters if any. Preserve backslash
19061# newline sequences.
19062
19063ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19064sed -n '
19065s/.\{148\}/&'"$ac_delim"'/g
19066t rset
19067:rset
19068s/^[ ]*#[ ]*define[ ][ ]*/ /
19069t def
19070d
19071:def
19072s/\\$//
19073t bsnl
19074s/["\\]/\\&/g
19075s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19076D["\1"]=" \3"/p
19077s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19078d
19079:bsnl
19080s/["\\]/\\&/g
19081s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19082D["\1"]=" \3\\\\\\n"\\/p
19083t cont
19084s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19085t cont
19086d
19087:cont
19088n
19089s/.\{148\}/&'"$ac_delim"'/g
19090t clear
19091:clear
19092s/\\$//
19093t bsnlc
19094s/["\\]/\\&/g; s/^/"/; s/$/"/p
19095d
19096:bsnlc
19097s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19098b cont
19099' <confdefs.h | sed '
19100s/'"$ac_delim"'/"\\\
19101"/g' >>$CONFIG_STATUS || ac_write_fail=1
19102
19103cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19104 for (key in D) D_is_set[key] = 1
19105 FS = "\a"
19106}
19107/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19108 line = \$ 0
19109 split(line, arg, " ")
19110 if (arg[1] == "#") {
19111 defundef = arg[2]
19112 mac1 = arg[3]
19113 } else {
19114 defundef = substr(arg[1], 2)
19115 mac1 = arg[2]
19116 }
19117 split(mac1, mac2, "(") #)
19118 macro = mac2[1]
19119 prefix = substr(line, 1, index(line, defundef) - 1)
19120 if (D_is_set[macro]) {
19121 # Preserve the white space surrounding the "#".
19122 print prefix "define", macro P[macro] D[macro]
19123 next
19124 } else {
19125 # Replace #undef with comments. This is necessary, for example,
19126 # in the case of _POSIX_SOURCE, which is predefined and required
19127 # on some systems where configure will not decide to define it.
19128 if (defundef == "undef") {
19129 print "/*", prefix defundef, macro, "*/"
19130 next
19131 }
19132 }
19133}
19134{ print }
19135_ACAWK
19136_ACEOF
19137cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19138 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
19139$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
19140 { (exit 1); exit 1; }; }
19141fi # test -n "$CONFIG_HEADERS"
19142
7a197a62 19143
ec6a6fbe
AK
19144eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
19145shift
19146for ac_tag
7a197a62
AK
19147do
19148 case $ac_tag in
19149 :[FHLC]) ac_mode=$ac_tag; continue;;
19150 esac
19151 case $ac_mode$ac_tag in
19152 :[FHL]*:*);;
ec6a6fbe
AK
19153 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
19154$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
7a197a62
AK
19155 { (exit 1); exit 1; }; };;
19156 :[FH]-) ac_tag=-:-;;
19157 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19158 esac
19159 ac_save_IFS=$IFS
19160 IFS=:
19161 set x $ac_tag
19162 IFS=$ac_save_IFS
19163 shift
19164 ac_file=$1
19165 shift
19166
19167 case $ac_mode in
19168 :L) ac_source=$1;;
19169 :[FH])
19170 ac_file_inputs=
19171 for ac_f
19172 do
19173 case $ac_f in
19174 -) ac_f="$tmp/stdin";;
19175 *) # Look for the file first in the build tree, then in the source tree
19176 # (if the path is not absolute). The absolute path cannot be DOS-style,
19177 # because $ac_f cannot contain `:'.
19178 test -f "$ac_f" ||
19179 case $ac_f in
19180 [\\/$]*) false;;
19181 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19182 esac ||
ec6a6fbe
AK
19183 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
19184$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
7a197a62
AK
19185 { (exit 1); exit 1; }; };;
19186 esac
ec6a6fbe
AK
19187 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19188 ac_file_inputs="$ac_file_inputs '$ac_f'"
7a197a62
AK
19189 done
19190
19191 # Let's still pretend it is `configure' which instantiates (i.e., don't
19192 # use $as_me), people would be surprised to read:
19193 # /* config.h. Generated by config.status. */
ec6a6fbe
AK
19194 configure_input='Generated from '`
19195 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19196 `' by configure.'
7a197a62
AK
19197 if test x"$ac_file" != x-; then
19198 configure_input="$ac_file. $configure_input"
ec6a6fbe
AK
19199 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
19200$as_echo "$as_me: creating $ac_file" >&6;}
7a197a62 19201 fi
ec6a6fbe
AK
19202 # Neutralize special characters interpreted by sed in replacement strings.
19203 case $configure_input in #(
19204 *\&* | *\|* | *\\* )
19205 ac_sed_conf_input=`$as_echo "$configure_input" |
19206 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19207 *) ac_sed_conf_input=$configure_input;;
19208 esac
7a197a62
AK
19209
19210 case $ac_tag in
ec6a6fbe
AK
19211 *:-:* | *:-) cat >"$tmp/stdin" \
19212 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19213$as_echo "$as_me: error: could not create $ac_file" >&2;}
19214 { (exit 1); exit 1; }; } ;;
7a197a62
AK
19215 esac
19216 ;;
80992638 19217 esac
8106cdd5 19218
7a197a62 19219 ac_dir=`$as_dirname -- "$ac_file" ||
ad6254c5 19220$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8a2fc586
AK
19221 X"$ac_file" : 'X\(//\)[^/]' \| \
19222 X"$ac_file" : 'X\(//\)$' \| \
7a197a62 19223 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 19224$as_echo X"$ac_file" |
7a197a62
AK
19225 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19226 s//\1/
19227 q
19228 }
19229 /^X\(\/\/\)[^/].*/{
19230 s//\1/
19231 q
19232 }
19233 /^X\(\/\/\)$/{
19234 s//\1/
19235 q
19236 }
19237 /^X\(\/\).*/{
19238 s//\1/
19239 q
19240 }
19241 s/.*/./; q'`
19242 { as_dir="$ac_dir"
19243 case $as_dir in #(
19244 -*) as_dir=./$as_dir;;
19245 esac
19246 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
ad6254c5 19247 as_dirs=
7a197a62
AK
19248 while :; do
19249 case $as_dir in #(
ec6a6fbe 19250 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7a197a62
AK
19251 *) as_qdir=$as_dir;;
19252 esac
19253 as_dirs="'$as_qdir' $as_dirs"
19254 as_dir=`$as_dirname -- "$as_dir" ||
ad6254c5 19255$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8a2fc586
AK
19256 X"$as_dir" : 'X\(//\)[^/]' \| \
19257 X"$as_dir" : 'X\(//\)$' \| \
7a197a62 19258 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 19259$as_echo X"$as_dir" |
7a197a62
AK
19260 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19261 s//\1/
19262 q
19263 }
19264 /^X\(\/\/\)[^/].*/{
19265 s//\1/
19266 q
19267 }
19268 /^X\(\/\/\)$/{
19269 s//\1/
19270 q
19271 }
19272 /^X\(\/\).*/{
19273 s//\1/
19274 q
19275 }
19276 s/.*/./; q'`
19277 test -d "$as_dir" && break
ad6254c5 19278 done
7a197a62 19279 test -z "$as_dirs" || eval "mkdir $as_dirs"
ec6a6fbe
AK
19280 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19281$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
ad6254c5 19282 { (exit 1); exit 1; }; }; }
ad6254c5
AK
19283 ac_builddir=.
19284
7a197a62
AK
19285case "$ac_dir" in
19286.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19287*)
ec6a6fbe 19288 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7a197a62 19289 # A ".." for each directory in $ac_dir_suffix.
ec6a6fbe 19290 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7a197a62
AK
19291 case $ac_top_builddir_sub in
19292 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19293 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19294 esac ;;
19295esac
19296ac_abs_top_builddir=$ac_pwd
19297ac_abs_builddir=$ac_pwd$ac_dir_suffix
19298# for backward compatibility:
19299ac_top_builddir=$ac_top_build_prefix
ad6254c5
AK
19300
19301case $srcdir in
7a197a62 19302 .) # We are building in place.
ad6254c5 19303 ac_srcdir=.
7a197a62
AK
19304 ac_top_srcdir=$ac_top_builddir_sub
19305 ac_abs_top_srcdir=$ac_pwd ;;
19306 [\\/]* | ?:[\\/]* ) # Absolute name.
ad6254c5 19307 ac_srcdir=$srcdir$ac_dir_suffix;
7a197a62
AK
19308 ac_top_srcdir=$srcdir
19309 ac_abs_top_srcdir=$srcdir ;;
19310 *) # Relative name.
19311 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19312 ac_top_srcdir=$ac_top_build_prefix$srcdir
19313 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
ad6254c5 19314esac
7a197a62 19315ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8a2fc586 19316
ad6254c5 19317
7a197a62
AK
19318 case $ac_mode in
19319 :F)
19320 #
19321 # CONFIG_FILE
19322 #
ad6254c5
AK
19323
19324 case $INSTALL in
19325 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7a197a62 19326 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
795ca3e5 19327 esac
fddafd51
ZK
19328 ac_MKDIR_P=$MKDIR_P
19329 case $MKDIR_P in
19330 [\\/$]* | ?:[\\/]* ) ;;
19331 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19332 esac
7a197a62 19333_ACEOF
795ca3e5 19334
ec6a6fbe 19335cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
19336# If the template does not know about datarootdir, expand it.
19337# FIXME: This hack should be removed a few years after 2.60.
19338ac_datarootdir_hack=; ac_datarootdir_seen=
19339
ec6a6fbe
AK
19340ac_sed_dataroot='
19341/datarootdir/ {
7a197a62
AK
19342 p
19343 q
19344}
19345/@datadir@/p
19346/@docdir@/p
19347/@infodir@/p
19348/@localedir@/p
19349/@mandir@/p
ec6a6fbe
AK
19350'
19351case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7a197a62
AK
19352*datarootdir*) ac_datarootdir_seen=yes;;
19353*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
ec6a6fbe
AK
19354 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19355$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
ad6254c5 19356_ACEOF
ec6a6fbe 19357cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7a197a62
AK
19358 ac_datarootdir_hack='
19359 s&@datadir@&$datadir&g
19360 s&@docdir@&$docdir&g
19361 s&@infodir@&$infodir&g
19362 s&@localedir@&$localedir&g
19363 s&@mandir@&$mandir&g
19364 s&\\\${datarootdir}&$datarootdir&g' ;;
19365esac
19366_ACEOF
19367
19368# Neutralize VPATH when `$srcdir' = `.'.
19369# Shell code in configure.ac might set extrasub.
19370# FIXME: do we really want to maintain this feature?
ec6a6fbe
AK
19371cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19372ac_sed_extra="$ac_vpsub
ad6254c5
AK
19373$extrasub
19374_ACEOF
ec6a6fbe 19375cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ad6254c5
AK
19376:t
19377/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
ec6a6fbe 19378s|@configure_input@|$ac_sed_conf_input|;t t
7a197a62 19379s&@top_builddir@&$ac_top_builddir_sub&;t t
ec6a6fbe 19380s&@top_build_prefix@&$ac_top_build_prefix&;t t
7a197a62
AK
19381s&@srcdir@&$ac_srcdir&;t t
19382s&@abs_srcdir@&$ac_abs_srcdir&;t t
19383s&@top_srcdir@&$ac_top_srcdir&;t t
19384s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19385s&@builddir@&$ac_builddir&;t t
19386s&@abs_builddir@&$ac_abs_builddir&;t t
19387s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19388s&@INSTALL@&$ac_INSTALL&;t t
fddafd51 19389s&@MKDIR_P@&$ac_MKDIR_P&;t t
7a197a62 19390$ac_datarootdir_hack
ec6a6fbe
AK
19391"
19392eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
19393 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19394$as_echo "$as_me: error: could not create $ac_file" >&2;}
19395 { (exit 1); exit 1; }; }
7a197a62
AK
19396
19397test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19398 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
19399 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
ec6a6fbe 19400 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7a197a62 19401which seems to be undefined. Please make sure it is defined." >&5
ec6a6fbe 19402$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7a197a62
AK
19403which seems to be undefined. Please make sure it is defined." >&2;}
19404
19405 rm -f "$tmp/stdin"
72b2cb61 19406 case $ac_file in
ec6a6fbe
AK
19407 -) cat "$tmp/out" && rm -f "$tmp/out";;
19408 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
19409 esac \
19410 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19411$as_echo "$as_me: error: could not create $ac_file" >&2;}
19412 { (exit 1); exit 1; }; }
7a197a62
AK
19413 ;;
19414 :H)
19415 #
19416 # CONFIG_HEADER
19417 #
72b2cb61 19418 if test x"$ac_file" != x-; then
ec6a6fbe
AK
19419 {
19420 $as_echo "/* $configure_input */" \
19421 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
19422 } >"$tmp/config.h" \
19423 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19424$as_echo "$as_me: error: could not create $ac_file" >&2;}
19425 { (exit 1); exit 1; }; }
19426 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
19427 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19428$as_echo "$as_me: $ac_file is unchanged" >&6;}
72b2cb61 19429 else
ec6a6fbe
AK
19430 rm -f "$ac_file"
19431 mv "$tmp/config.h" "$ac_file" \
19432 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19433$as_echo "$as_me: error: could not create $ac_file" >&2;}
19434 { (exit 1); exit 1; }; }
72b2cb61
AK
19435 fi
19436 else
ec6a6fbe
AK
19437 $as_echo "/* $configure_input */" \
19438 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
19439 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
19440$as_echo "$as_me: error: could not create -" >&2;}
19441 { (exit 1); exit 1; }; }
72b2cb61 19442 fi
7a197a62
AK
19443 ;;
19444
19445
19446 esac
19447
19448done # for ac_tag
795ca3e5 19449
795ca3e5 19450
ad6254c5
AK
19451{ (exit 0); exit 0; }
19452_ACEOF
795ca3e5 19453chmod +x $CONFIG_STATUS
ad6254c5
AK
19454ac_clean_files=$ac_clean_files_save
19455
ec6a6fbe
AK
19456test $ac_write_fail = 0 ||
19457 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
19458$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
19459 { (exit 1); exit 1; }; }
19460
ad6254c5
AK
19461
19462# configure is writing to config.log, and then calls config.status.
19463# config.status does its own redirection, appending to config.log.
19464# Unfortunately, on DOS this fails, as config.log is still kept open
19465# by configure, so config.status won't be able to write to it; its
19466# output is simply discarded. So we exec the FD to /dev/null,
19467# effectively closing config.log, so it can be properly (re)opened and
19468# appended to by config.status. When coming back to configure, we
19469# need to make the FD available again.
19470if test "$no_create" != yes; then
19471 ac_cs_success=:
19472 ac_config_status_args=
19473 test "$silent" = yes &&
19474 ac_config_status_args="$ac_config_status_args --quiet"
19475 exec 5>/dev/null
19476 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19477 exec 5>>config.log
19478 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19479 # would make configure fail if this is the last instruction.
19480 $ac_cs_success || { (exit 1); exit 1; }
19481fi
ec6a6fbe
AK
19482if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19483 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19484$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19485fi
795ca3e5 19486
2dc95e1c
AK
19487
19488if test x$ODIRECT != xyes; then
ec6a6fbe
AK
19489 { $as_echo "$as_me:$LINENO: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5
19490$as_echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;}
2dc95e1c 19491fi
This page took 2.459026 seconds and 5 git commands to generate.