]> sourceware.org Git - lvm2.git/blame - configure
Replicator: check open_count for parents of presuspend_node
[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
ec6a6fbe
AK
654STATIC_LINK
655STATICDIR
656SNAPSHOTS
f7f0854e 657SELINUX_PC
e1b8a236 658SELINUX_LIBS
539f4a77 659READLINE_LIBS
f30875db 660PTHREAD_LIBS
ec6a6fbe
AK
661POOL
662PKGCONFIG
ec6a6fbe
AK
663MIRRORS
664LVM_RELEASE_DATE
665LVM_RELEASE
666LVM_PATCHLEVEL
667LVM_MINOR
668LVM_MAJOR
bf456146 669LVM_LIBAPI
ec6a6fbe 670LVM_VERSION
ec6a6fbe
AK
671LVM1_FALLBACK
672LVM1
673LOCALEDIR
674LIB_SUFFIX
675LDDEPS
676JOBS
677INTL_PACKAGE
678INTL
ec6a6fbe
AK
679HAVE_REALTIME
680HAVE_LIBDL
ec6a6fbe
AK
681FSADM
682DM_LIB_PATCHLEVEL
683DM_LIB_VERSION
684DM_IOCTLS
685DM_DEVICE_UID
686DM_DEVICE_MODE
687DM_DEVICE_GID
688DM_COMPAT
689DMEVENTD
19a2c6e0 690DL_LIBS
ec6a6fbe 691DEVMAPPER
3399ae32
AK
692DEFAULT_LOCK_DIR
693DEFAULT_CACHE_SUBDIR
694DEFAULT_BACKUP_SUBDIR
695DEFAULT_ARCHIVE_SUBDIR
696DEFAULT_SYS_DIR
ec6a6fbe
AK
697DEBUG
698COPTIMISE_FLAG
e2997b73 699CONFDIR
ec6a6fbe
AK
700CMDLIB
701CLVMD
702CLUSTER
703CLDWHOLEARCHIVE
704CLDNOWHOLEARCHIVE
705CLDFLAGS
706BUILD_DMEVENTD
66fd4529 707BUILD_CMIRRORD
572fefeb 708APPLIB
ec6a6fbe
AK
709MODPROBE_CMD
710MSGFMT
711LVM2CMD_LIB
572fefeb 712LVM2APP_LIB
fd4728e1 713GENPNG
ec6a6fbe
AK
714GENHTML
715LCOV
90c80887
AK
716SACKPT_LIBS
717SACKPT_CFLAGS
a946372e
AK
718DLM_LIBS
719DLM_CFLAGS
e2997b73
AK
720CPG_LIBS
721CPG_CFLAGS
722CONFDB_LIBS
723CONFDB_CFLAGS
a946372e
AK
724SALCK_LIBS
725SALCK_CFLAGS
e2997b73
AK
726QUORUM_LIBS
727QUORUM_CFLAGS
a946372e
AK
728COROSYNC_LIBS
729COROSYNC_CFLAGS
730CMAN_LIBS
731CMAN_CFLAGS
732GULM_LIBS
733GULM_CFLAGS
734CCS_LIBS
735CCS_CFLAGS
736PKGCONFIGINIT_LIBS
737PKGCONFIGINIT_CFLAGS
e2997b73 738PKG_CONFIG
ec6a6fbe
AK
739POW_LIB
740LIBOBJS
741ALLOCA
742CSCOPE_CMD
743CFLOW_CMD
744RANLIB
745MKDIR_P
746SET_MAKE
747LN_S
748INSTALL_DATA
749INSTALL_SCRIPT
750INSTALL_PROGRAM
751EGREP
752GREP
753CPP
754OBJEXT
755EXEEXT
756ac_ct_CC
757CPPFLAGS
758LDFLAGS
759CFLAGS
760CC
761AWK
762SED
763target_os
764target_vendor
765target_cpu
766target
767host_os
768host_vendor
769host_cpu
770host
771build_os
772build_vendor
773build_cpu
774build
775target_alias
776host_alias
777build_alias
778LIBS
779ECHO_T
780ECHO_N
781ECHO_C
782DEFS
783mandir
784localedir
785libdir
786psdir
787pdfdir
788dvidir
789htmldir
790infodir
791docdir
792oldincludedir
793includedir
794localstatedir
795sharedstatedir
796sysconfdir
797datadir
798datarootdir
799libexecdir
800sbindir
801bindir
802program_transform_name
803prefix
804exec_prefix
805PACKAGE_BUGREPORT
806PACKAGE_STRING
807PACKAGE_VERSION
808PACKAGE_TARNAME
809PACKAGE_NAME
810PATH_SEPARATOR
811SHELL'
ad6254c5 812ac_subst_files=''
ec6a6fbe
AK
813ac_user_opts='
814enable_option_checking
815enable_static_link
816with_user
817with_group
818with_device_uid
819with_device_gid
820with_device_mode
821enable_lvm1_fallback
822with_lvm1
823with_pool
824with_cluster
825with_snapshots
826with_mirrors
827enable_readline
828enable_realtime
829with_clvmd
66fd4529
AK
830enable_cmirrord
831with_cmirrord_pidfile
ec6a6fbe
AK
832enable_debug
833with_optimisation
834enable_profiling
835enable_devmapper
a5f46f6a
AK
836enable_udev_sync
837enable_udev_rules
ec6a6fbe 838enable_compat
95eaa683 839enable_units_compat
ec6a6fbe
AK
840enable_ioctl
841enable_o_direct
572fefeb 842enable_applib
ec6a6fbe
AK
843enable_cmdlib
844enable_pkgconfig
23b059e7 845enable_write_install
ec6a6fbe
AK
846enable_fsadm
847enable_dmeventd
848enable_selinux
849enable_nls
850with_localedir
851with_confdir
852with_staticdir
853with_usrlibdir
854with_usrsbindir
a5f46f6a 855with_udev_prefix
78ce7acc 856with_udevdir
ec6a6fbe
AK
857with_dmeventd_pidfile
858with_dmeventd_path
3399ae32
AK
859with_default_system_dir
860with_default_archive_subdir
861with_default_backup_subdir
862with_default_cache_subdir
863with_default_locking_dir
ec6a6fbe
AK
864with_interface
865'
7a197a62
AK
866 ac_precious_vars='build_alias
867host_alias
868target_alias
869CC
870CFLAGS
871LDFLAGS
25fbec5b 872LIBS
7a197a62 873CPPFLAGS
e2997b73
AK
874CPP
875PKG_CONFIG
a946372e
AK
876PKGCONFIGINIT_CFLAGS
877PKGCONFIGINIT_LIBS
878CCS_CFLAGS
879CCS_LIBS
880GULM_CFLAGS
881GULM_LIBS
882CMAN_CFLAGS
883CMAN_LIBS
884COROSYNC_CFLAGS
885COROSYNC_LIBS
e2997b73
AK
886QUORUM_CFLAGS
887QUORUM_LIBS
a946372e
AK
888SALCK_CFLAGS
889SALCK_LIBS
e2997b73
AK
890CONFDB_CFLAGS
891CONFDB_LIBS
892CPG_CFLAGS
a946372e
AK
893CPG_LIBS
894DLM_CFLAGS
90c80887
AK
895DLM_LIBS
896SACKPT_CFLAGS
897SACKPT_LIBS'
7a197a62 898
795ca3e5
AK
899
900# Initialize some variables set by options.
ad6254c5
AK
901ac_init_help=
902ac_init_version=false
ec6a6fbe
AK
903ac_unrecognized_opts=
904ac_unrecognized_sep=
795ca3e5
AK
905# The variables have the same names as the options, with
906# dashes changed to underlines.
ad6254c5 907cache_file=/dev/null
795ca3e5 908exec_prefix=NONE
795ca3e5 909no_create=
795ca3e5
AK
910no_recursion=
911prefix=NONE
912program_prefix=NONE
913program_suffix=NONE
914program_transform_name=s,x,x,
915silent=
916site=
917srcdir=
795ca3e5
AK
918verbose=
919x_includes=NONE
920x_libraries=NONE
ad6254c5
AK
921
922# Installation directory options.
923# These are left unexpanded so users can "make install exec_prefix=/foo"
924# and all the variables that are supposed to be based on exec_prefix
925# by default will actually change.
926# Use braces instead of parens because sh, perl, etc. also accept them.
7a197a62 927# (The list follows the same order as the GNU Coding Standards.)
795ca3e5
AK
928bindir='${exec_prefix}/bin'
929sbindir='${exec_prefix}/sbin'
930libexecdir='${exec_prefix}/libexec'
7a197a62
AK
931datarootdir='${prefix}/share'
932datadir='${datarootdir}'
795ca3e5
AK
933sysconfdir='${prefix}/etc'
934sharedstatedir='${prefix}/com'
935localstatedir='${prefix}/var'
795ca3e5
AK
936includedir='${prefix}/include'
937oldincludedir='/usr/include'
7a197a62
AK
938docdir='${datarootdir}/doc/${PACKAGE}'
939infodir='${datarootdir}/info'
940htmldir='${docdir}'
941dvidir='${docdir}'
942pdfdir='${docdir}'
943psdir='${docdir}'
944libdir='${exec_prefix}/lib'
945localedir='${datarootdir}/locale'
946mandir='${datarootdir}/man'
795ca3e5 947
795ca3e5 948ac_prev=
7a197a62 949ac_dashdash=
795ca3e5
AK
950for ac_option
951do
795ca3e5
AK
952 # If the previous option needs an argument, assign it.
953 if test -n "$ac_prev"; then
7a197a62 954 eval $ac_prev=\$ac_option
795ca3e5
AK
955 ac_prev=
956 continue
957 fi
958
7a197a62
AK
959 case $ac_option in
960 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
961 *) ac_optarg=yes ;;
962 esac
795ca3e5
AK
963
964 # Accept the important Cygnus configure options, so we can diagnose typos.
965
7a197a62
AK
966 case $ac_dashdash$ac_option in
967 --)
968 ac_dashdash=yes ;;
795ca3e5
AK
969
970 -bindir | --bindir | --bindi | --bind | --bin | --bi)
971 ac_prev=bindir ;;
972 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
ad6254c5 973 bindir=$ac_optarg ;;
795ca3e5
AK
974
975 -build | --build | --buil | --bui | --bu)
ad6254c5 976 ac_prev=build_alias ;;
795ca3e5 977 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
ad6254c5 978 build_alias=$ac_optarg ;;
795ca3e5
AK
979
980 -cache-file | --cache-file | --cache-fil | --cache-fi \
981 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
982 ac_prev=cache_file ;;
983 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
984 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
ad6254c5
AK
985 cache_file=$ac_optarg ;;
986
987 --config-cache | -C)
988 cache_file=config.cache ;;
795ca3e5 989
7a197a62 990 -datadir | --datadir | --datadi | --datad)
795ca3e5 991 ac_prev=datadir ;;
7a197a62 992 -datadir=* | --datadir=* | --datadi=* | --datad=*)
ad6254c5 993 datadir=$ac_optarg ;;
795ca3e5 994
7a197a62
AK
995 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
996 | --dataroo | --dataro | --datar)
997 ac_prev=datarootdir ;;
998 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
999 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1000 datarootdir=$ac_optarg ;;
1001
795ca3e5 1002 -disable-* | --disable-*)
ec6a6fbe 1003 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
795ca3e5 1004 # Reject names that are not valid shell variable names.
ec6a6fbe
AK
1005 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1006 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
ad6254c5 1007 { (exit 1); exit 1; }; }
ec6a6fbe
AK
1008 ac_useropt_orig=$ac_useropt
1009 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1010 case $ac_user_opts in
1011 *"
1012"enable_$ac_useropt"
1013"*) ;;
1014 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1015 ac_unrecognized_sep=', ';;
1016 esac
1017 eval enable_$ac_useropt=no ;;
7a197a62
AK
1018
1019 -docdir | --docdir | --docdi | --doc | --do)
1020 ac_prev=docdir ;;
1021 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1022 docdir=$ac_optarg ;;
1023
1024 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1025 ac_prev=dvidir ;;
1026 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1027 dvidir=$ac_optarg ;;
795ca3e5
AK
1028
1029 -enable-* | --enable-*)
ec6a6fbe 1030 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
795ca3e5 1031 # Reject names that are not valid shell variable names.
ec6a6fbe
AK
1032 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1033 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
ad6254c5 1034 { (exit 1); exit 1; }; }
ec6a6fbe
AK
1035 ac_useropt_orig=$ac_useropt
1036 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1037 case $ac_user_opts in
1038 *"
1039"enable_$ac_useropt"
1040"*) ;;
1041 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1042 ac_unrecognized_sep=', ';;
1043 esac
1044 eval enable_$ac_useropt=\$ac_optarg ;;
795ca3e5
AK
1045
1046 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1047 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1048 | --exec | --exe | --ex)
1049 ac_prev=exec_prefix ;;
1050 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1051 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1052 | --exec=* | --exe=* | --ex=*)
ad6254c5 1053 exec_prefix=$ac_optarg ;;
795ca3e5
AK
1054
1055 -gas | --gas | --ga | --g)
1056 # Obsolete; use --with-gas.
1057 with_gas=yes ;;
1058
ad6254c5
AK
1059 -help | --help | --hel | --he | -h)
1060 ac_init_help=long ;;
1061 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1062 ac_init_help=recursive ;;
1063 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1064 ac_init_help=short ;;
795ca3e5
AK
1065
1066 -host | --host | --hos | --ho)
ad6254c5 1067 ac_prev=host_alias ;;
795ca3e5 1068 -host=* | --host=* | --hos=* | --ho=*)
ad6254c5 1069 host_alias=$ac_optarg ;;
795ca3e5 1070
7a197a62
AK
1071 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1072 ac_prev=htmldir ;;
1073 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1074 | --ht=*)
1075 htmldir=$ac_optarg ;;
1076
795ca3e5
AK
1077 -includedir | --includedir | --includedi | --included | --include \
1078 | --includ | --inclu | --incl | --inc)
1079 ac_prev=includedir ;;
1080 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1081 | --includ=* | --inclu=* | --incl=* | --inc=*)
ad6254c5 1082 includedir=$ac_optarg ;;
795ca3e5
AK
1083
1084 -infodir | --infodir | --infodi | --infod | --info | --inf)
1085 ac_prev=infodir ;;
1086 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
ad6254c5 1087 infodir=$ac_optarg ;;
795ca3e5
AK
1088
1089 -libdir | --libdir | --libdi | --libd)
1090 ac_prev=libdir ;;
1091 -libdir=* | --libdir=* | --libdi=* | --libd=*)
ad6254c5 1092 libdir=$ac_optarg ;;
795ca3e5
AK
1093
1094 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1095 | --libexe | --libex | --libe)
1096 ac_prev=libexecdir ;;
1097 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1098 | --libexe=* | --libex=* | --libe=*)
ad6254c5 1099 libexecdir=$ac_optarg ;;
795ca3e5 1100
7a197a62
AK
1101 -localedir | --localedir | --localedi | --localed | --locale)
1102 ac_prev=localedir ;;
1103 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1104 localedir=$ac_optarg ;;
1105
795ca3e5 1106 -localstatedir | --localstatedir | --localstatedi | --localstated \
7a197a62 1107 | --localstate | --localstat | --localsta | --localst | --locals)
795ca3e5
AK
1108 ac_prev=localstatedir ;;
1109 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
7a197a62 1110 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
ad6254c5 1111 localstatedir=$ac_optarg ;;
795ca3e5
AK
1112
1113 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1114 ac_prev=mandir ;;
1115 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
ad6254c5 1116 mandir=$ac_optarg ;;
795ca3e5
AK
1117
1118 -nfp | --nfp | --nf)
1119 # Obsolete; use --without-fp.
1120 with_fp=no ;;
1121
1122 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
ad6254c5 1123 | --no-cr | --no-c | -n)
795ca3e5
AK
1124 no_create=yes ;;
1125
1126 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1127 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1128 no_recursion=yes ;;
1129
1130 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1131 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1132 | --oldin | --oldi | --old | --ol | --o)
1133 ac_prev=oldincludedir ;;
1134 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1135 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1136 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
ad6254c5 1137 oldincludedir=$ac_optarg ;;
795ca3e5
AK
1138
1139 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1140 ac_prev=prefix ;;
1141 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
ad6254c5 1142 prefix=$ac_optarg ;;
795ca3e5
AK
1143
1144 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1145 | --program-pre | --program-pr | --program-p)
1146 ac_prev=program_prefix ;;
1147 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1148 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
ad6254c5 1149 program_prefix=$ac_optarg ;;
795ca3e5
AK
1150
1151 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1152 | --program-suf | --program-su | --program-s)
1153 ac_prev=program_suffix ;;
1154 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1155 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
ad6254c5 1156 program_suffix=$ac_optarg ;;
795ca3e5
AK
1157
1158 -program-transform-name | --program-transform-name \
1159 | --program-transform-nam | --program-transform-na \
1160 | --program-transform-n | --program-transform- \
1161 | --program-transform | --program-transfor \
1162 | --program-transfo | --program-transf \
1163 | --program-trans | --program-tran \
1164 | --progr-tra | --program-tr | --program-t)
1165 ac_prev=program_transform_name ;;
1166 -program-transform-name=* | --program-transform-name=* \
1167 | --program-transform-nam=* | --program-transform-na=* \
1168 | --program-transform-n=* | --program-transform-=* \
1169 | --program-transform=* | --program-transfor=* \
1170 | --program-transfo=* | --program-transf=* \
1171 | --program-trans=* | --program-tran=* \
1172 | --progr-tra=* | --program-tr=* | --program-t=*)
ad6254c5 1173 program_transform_name=$ac_optarg ;;
795ca3e5 1174
7a197a62
AK
1175 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1176 ac_prev=pdfdir ;;
1177 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1178 pdfdir=$ac_optarg ;;
1179
1180 -psdir | --psdir | --psdi | --psd | --ps)
1181 ac_prev=psdir ;;
1182 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1183 psdir=$ac_optarg ;;
1184
795ca3e5
AK
1185 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1186 | -silent | --silent | --silen | --sile | --sil)
1187 silent=yes ;;
1188
1189 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1190 ac_prev=sbindir ;;
1191 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1192 | --sbi=* | --sb=*)
ad6254c5 1193 sbindir=$ac_optarg ;;
795ca3e5
AK
1194
1195 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1196 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1197 | --sharedst | --shareds | --shared | --share | --shar \
1198 | --sha | --sh)
1199 ac_prev=sharedstatedir ;;
1200 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1201 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1202 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1203 | --sha=* | --sh=*)
ad6254c5 1204 sharedstatedir=$ac_optarg ;;
795ca3e5
AK
1205
1206 -site | --site | --sit)
1207 ac_prev=site ;;
1208 -site=* | --site=* | --sit=*)
ad6254c5 1209 site=$ac_optarg ;;
795ca3e5
AK
1210
1211 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1212 ac_prev=srcdir ;;
1213 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
ad6254c5 1214 srcdir=$ac_optarg ;;
795ca3e5
AK
1215
1216 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1217 | --syscon | --sysco | --sysc | --sys | --sy)
1218 ac_prev=sysconfdir ;;
1219 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1220 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
ad6254c5 1221 sysconfdir=$ac_optarg ;;
795ca3e5
AK
1222
1223 -target | --target | --targe | --targ | --tar | --ta | --t)
ad6254c5 1224 ac_prev=target_alias ;;
795ca3e5 1225 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
ad6254c5 1226 target_alias=$ac_optarg ;;
795ca3e5
AK
1227
1228 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1229 verbose=yes ;;
1230
ad6254c5
AK
1231 -version | --version | --versio | --versi | --vers | -V)
1232 ac_init_version=: ;;
795ca3e5
AK
1233
1234 -with-* | --with-*)
ec6a6fbe 1235 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
795ca3e5 1236 # Reject names that are not valid shell variable names.
ec6a6fbe
AK
1237 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1238 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
ad6254c5 1239 { (exit 1); exit 1; }; }
ec6a6fbe
AK
1240 ac_useropt_orig=$ac_useropt
1241 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1242 case $ac_user_opts in
1243 *"
1244"with_$ac_useropt"
1245"*) ;;
1246 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1247 ac_unrecognized_sep=', ';;
1248 esac
1249 eval with_$ac_useropt=\$ac_optarg ;;
795ca3e5
AK
1250
1251 -without-* | --without-*)
ec6a6fbe 1252 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
795ca3e5 1253 # Reject names that are not valid shell variable names.
ec6a6fbe
AK
1254 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1255 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
ad6254c5 1256 { (exit 1); exit 1; }; }
ec6a6fbe
AK
1257 ac_useropt_orig=$ac_useropt
1258 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1259 case $ac_user_opts in
1260 *"
1261"with_$ac_useropt"
1262"*) ;;
1263 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1264 ac_unrecognized_sep=', ';;
1265 esac
1266 eval with_$ac_useropt=no ;;
795ca3e5
AK
1267
1268 --x)
1269 # Obsolete; use --with-x.
1270 with_x=yes ;;
1271
1272 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1273 | --x-incl | --x-inc | --x-in | --x-i)
1274 ac_prev=x_includes ;;
1275 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1276 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
ad6254c5 1277 x_includes=$ac_optarg ;;
795ca3e5
AK
1278
1279 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1280 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1281 ac_prev=x_libraries ;;
1282 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1283 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
ad6254c5 1284 x_libraries=$ac_optarg ;;
795ca3e5 1285
ec6a6fbe 1286 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
ad6254c5
AK
1287Try \`$0 --help' for more information." >&2
1288 { (exit 1); exit 1; }; }
795ca3e5
AK
1289 ;;
1290
ad6254c5
AK
1291 *=*)
1292 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1293 # Reject names that are not valid shell variable names.
1294 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
ec6a6fbe 1295 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
ad6254c5 1296 { (exit 1); exit 1; }; }
7a197a62 1297 eval $ac_envvar=\$ac_optarg
ad6254c5
AK
1298 export $ac_envvar ;;
1299
795ca3e5 1300 *)
ad6254c5 1301 # FIXME: should be removed in autoconf 3.0.
ec6a6fbe 1302 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
ad6254c5 1303 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
ec6a6fbe 1304 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
ad6254c5 1305 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
795ca3e5
AK
1306 ;;
1307
1308 esac
1309done
1310
1311if test -n "$ac_prev"; then
ad6254c5 1312 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
ec6a6fbe 1313 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
ad6254c5 1314 { (exit 1); exit 1; }; }
795ca3e5 1315fi
795ca3e5 1316
ec6a6fbe
AK
1317if test -n "$ac_unrecognized_opts"; then
1318 case $enable_option_checking in
1319 no) ;;
1320 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1321 { (exit 1); exit 1; }; } ;;
1322 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1323 esac
1324fi
1325
1326# Check all directory arguments for consistency.
7a197a62
AK
1327for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1328 datadir sysconfdir sharedstatedir localstatedir includedir \
1329 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1330 libdir localedir mandir
795ca3e5 1331do
7a197a62 1332 eval ac_val=\$$ac_var
ec6a6fbe
AK
1333 # Remove trailing slashes.
1334 case $ac_val in
1335 */ )
1336 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1337 eval $ac_var=\$ac_val;;
1338 esac
1339 # Be sure to have absolute directory names.
ad6254c5 1340 case $ac_val in
7a197a62
AK
1341 [\\/$]* | ?:[\\/]* ) continue;;
1342 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
795ca3e5 1343 esac
ec6a6fbe 1344 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
7a197a62 1345 { (exit 1); exit 1; }; }
795ca3e5
AK
1346done
1347
ad6254c5
AK
1348# There might be people who depend on the old broken behavior: `$host'
1349# used to hold the argument of --host etc.
1350# FIXME: To remove some day.
1351build=$build_alias
1352host=$host_alias
1353target=$target_alias
1354
1355# FIXME: To remove some day.
1356if test "x$host_alias" != x; then
1357 if test "x$build_alias" = x; then
1358 cross_compiling=maybe
ec6a6fbe 1359 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
ad6254c5
AK
1360 If a cross compiler is detected then cross compile mode will be used." >&2
1361 elif test "x$build_alias" != "x$host_alias"; then
1362 cross_compiling=yes
1363 fi
1364fi
8106cdd5 1365
ad6254c5
AK
1366ac_tool_prefix=
1367test -n "$host_alias" && ac_tool_prefix=$host_alias-
1368
1369test "$silent" = yes && exec 6>/dev/null
795ca3e5 1370
795ca3e5 1371
7a197a62
AK
1372ac_pwd=`pwd` && test -n "$ac_pwd" &&
1373ac_ls_di=`ls -di .` &&
1374ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
ec6a6fbe 1375 { $as_echo "$as_me: error: working directory cannot be determined" >&2
7a197a62
AK
1376 { (exit 1); exit 1; }; }
1377test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
ec6a6fbe 1378 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
7a197a62
AK
1379 { (exit 1); exit 1; }; }
1380
1381
795ca3e5
AK
1382# Find the source files, if location was not specified.
1383if test -z "$srcdir"; then
1384 ac_srcdir_defaulted=yes
7a197a62 1385 # Try the directory containing this script, then the parent directory.
ec6a6fbe
AK
1386 ac_confdir=`$as_dirname -- "$as_myself" ||
1387$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1388 X"$as_myself" : 'X\(//\)[^/]' \| \
1389 X"$as_myself" : 'X\(//\)$' \| \
1390 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1391$as_echo X"$as_myself" |
7a197a62
AK
1392 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1393 s//\1/
1394 q
1395 }
1396 /^X\(\/\/\)[^/].*/{
1397 s//\1/
1398 q
1399 }
1400 /^X\(\/\/\)$/{
1401 s//\1/
1402 q
1403 }
1404 /^X\(\/\).*/{
1405 s//\1/
1406 q
1407 }
1408 s/.*/./; q'`
795ca3e5 1409 srcdir=$ac_confdir
7a197a62 1410 if test ! -r "$srcdir/$ac_unique_file"; then
795ca3e5
AK
1411 srcdir=..
1412 fi
1413else
1414 ac_srcdir_defaulted=no
1415fi
7a197a62
AK
1416if test ! -r "$srcdir/$ac_unique_file"; then
1417 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
ec6a6fbe 1418 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
ad6254c5 1419 { (exit 1); exit 1; }; }
795ca3e5 1420fi
7a197a62
AK
1421ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1422ac_abs_confdir=`(
ec6a6fbe 1423 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
ad6254c5 1424 { (exit 1); exit 1; }; }
7a197a62
AK
1425 pwd)`
1426# When building in place, set srcdir=.
1427if test "$ac_abs_confdir" = "$ac_pwd"; then
1428 srcdir=.
1429fi
1430# Remove unnecessary trailing slashes from srcdir.
1431# Double slashes in file names in object file debugging info
1432# mess up M-x gdb in Emacs.
1433case $srcdir in
1434*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1435esac
1436for ac_var in $ac_precious_vars; do
1437 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1438 eval ac_env_${ac_var}_value=\$${ac_var}
1439 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1440 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1441done
ad6254c5
AK
1442
1443#
1444# Report the --help message.
1445#
1446if test "$ac_init_help" = "long"; then
1447 # Omit some internal or obsolete options to make the list less imposing.
1448 # This message is too long to be a string in the A/UX 3.1 sh.
1449 cat <<_ACEOF
1450\`configure' configures this package to adapt to many kinds of systems.
1451
1452Usage: $0 [OPTION]... [VAR=VALUE]...
1453
1454To assign environment variables (e.g., CC, CFLAGS...), specify them as
1455VAR=VALUE. See below for descriptions of some of the useful variables.
1456
1457Defaults for the options are specified in brackets.
1458
1459Configuration:
1460 -h, --help display this help and exit
1461 --help=short display options specific to this package
1462 --help=recursive display the short help of all the included packages
1463 -V, --version display version information and exit
1464 -q, --quiet, --silent do not print \`checking...' messages
1465 --cache-file=FILE cache test results in FILE [disabled]
1466 -C, --config-cache alias for \`--cache-file=config.cache'
1467 -n, --no-create do not create output files
1468 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1469
ad6254c5
AK
1470Installation directories:
1471 --prefix=PREFIX install architecture-independent files in PREFIX
ec6a6fbe 1472 [$ac_default_prefix]
ad6254c5 1473 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
ec6a6fbe 1474 [PREFIX]
ad6254c5
AK
1475
1476By default, \`make install' will install all the files in
1477\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1478an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1479for instance \`--prefix=\$HOME'.
1480
1481For better control, use the options below.
1482
1483Fine tuning of the installation directories:
ec6a6fbe
AK
1484 --bindir=DIR user executables [EPREFIX/bin]
1485 --sbindir=DIR system admin executables [EPREFIX/sbin]
1486 --libexecdir=DIR program executables [EPREFIX/libexec]
1487 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1488 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1489 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1490 --libdir=DIR object code libraries [EPREFIX/lib]
1491 --includedir=DIR C header files [PREFIX/include]
1492 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1493 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1494 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1495 --infodir=DIR info documentation [DATAROOTDIR/info]
1496 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1497 --mandir=DIR man documentation [DATAROOTDIR/man]
1498 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1499 --htmldir=DIR html documentation [DOCDIR]
1500 --dvidir=DIR dvi documentation [DOCDIR]
1501 --pdfdir=DIR pdf documentation [DOCDIR]
1502 --psdir=DIR ps documentation [DOCDIR]
ad6254c5
AK
1503_ACEOF
1504
1505 cat <<\_ACEOF
1506
1507System types:
1508 --build=BUILD configure for building on BUILD [guessed]
1509 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1510 --target=TARGET configure for building compilers for TARGET [HOST]
1511_ACEOF
1512fi
1513
1514if test -n "$ac_init_help"; then
1515
1516 cat <<\_ACEOF
1517
1518Optional Features:
ec6a6fbe 1519 --disable-option-checking ignore unrecognized --enable/--with options
ad6254c5
AK
1520 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1521 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
9c961554
MB
1522 --enable-static_link Use this to link the tools to their libraries
1523 statically. Default is dynamic linking
ad6254c5
AK
1524 --enable-lvm1_fallback Use this to fall back and use LVM1 binaries if
1525 device-mapper is missing from the kernel
1b523347 1526 --disable-readline Disable readline support
89044bc0 1527 --enable-realtime Enable realtime clock support
66fd4529 1528 --enable-cmirrord Enable the cluster mirror log daemon
ad6254c5 1529 --enable-debug Enable debugging
5556819a 1530 --enable-profiling Gather gcov profiling data
93bd259b 1531 --disable-devmapper Disable LVM2 device-mapper interaction
a5f46f6a
AK
1532 --enable-udev_sync Enable synchronisation with udev processing
1533 --enable-udev_rules Install rule files needed for udev synchronisation
93bd259b 1534 --enable-compat Enable support for old device-mapper versions
95eaa683
AK
1535 --enable-units-compat Enable output compatibility with old versions that
1536 that don't use KiB-style unit suffixes
93bd259b 1537 --disable-driver Disable calls to device-mapper in the kernel
ad6254c5 1538 --disable-o_direct Disable O_DIRECT
572fefeb 1539 --enable-applib Build application library
ad6254c5 1540 --enable-cmdlib Build shared command library
93bd259b 1541 --enable-pkgconfig Install pkgconfig support
23b059e7 1542 --enable-write_install Install user writable files
c9274524 1543 --disable-fsadm Disable fsadm
15d91f5a 1544 --enable-dmeventd Enable the device-mapper event daemon
d0191583 1545 --disable-selinux Disable selinux support
ad6254c5
AK
1546 --enable-nls Enable Native Language Support
1547
1548Optional Packages:
1549 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1550 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
39dabc84
FDN
1551 --with-user=USER Set the owner of installed files [USER=]
1552 --with-group=GROUP Set the group owner of installed files [GROUP=]
24bbc4d7
AK
1553 --with-device-uid=UID Set the owner used for new device nodes [UID=0]
1554 --with-device-gid=UID Set the group used for new device nodes [GID=0]
93bd259b 1555 --with-device-mode=MODE Set the mode used for new device nodes [MODE=0600]
ad6254c5
AK
1556 --with-lvm1=TYPE LVM1 metadata support: internal/shared/none
1557 TYPE=internal
1558 --with-pool=TYPE GFS pool read-only support: internal/shared/none
1559 TYPE=internal
1560 --with-cluster=TYPE Cluster LVM locking support: internal/shared/none
1561 TYPE=internal
1562 --with-snapshots=TYPE Snapshot support: internal/shared/none
1563 TYPE=internal
1564 --with-mirrors=TYPE Mirror support: internal/shared/none
1565 TYPE=internal
a946372e 1566 --with-clvmd=TYPE Build cluster LVM Daemon.
8c222979 1567 The following cluster manager combinations are valid:
a946372e
AK
1568 * cman,gulm (RHEL4 or equivalent)
1569 * cman (RHEL5 or equivalent)
1570 * cman,corosync,openais (or selection of them)
1091650a 1571 * singlenode (localhost only)
a946372e
AK
1572 * all (autodetect)
1573 * none (disable build)
a266258f 1574 TYPE=none
66fd4529 1575 --with-cmirrord-pidfile=PATH cmirrord pidfile [/var/run/cmirrord.pid]
d0191583
JM
1576 --with-optimisation=OPT C optimisation flag [OPT=-O2]
1577 --with-localedir=DIR Translation files in DIR [PREFIX/share/locale]
a5f46f6a
AK
1578 --with-confdir=DIR Configuration files in DIR [/etc]
1579 --with-staticdir=DIR Static binary in DIR [EPREFIX/sbin]
68f2de6d
AK
1580 --with-usrlibdir=DIR
1581 --with-usrsbindir=DIR
a5f46f6a 1582 --with-udev-prefix=UPREFIX Install udev rule files in UPREFIX [EPREFIX]
78ce7acc 1583 --with-udevdir=DIR udev rules in DIR [UPREFIX/lib/udev/rules.d]
93bd259b 1584 --with-dmeventd-pidfile=PATH dmeventd pidfile [/var/run/dmeventd.pid]
a5f46f6a 1585 --with-dmeventd-path=PATH dmeventd path [EPREFIX/sbin/dmeventd]
3399ae32
AK
1586 --with-default-system-dir=DIR Default LVM system directory [/etc/lvm]
1587 --with-default-archive-subdir=SUBDIR Default metadata archive subdir [archive]
1588 --with-default-backup-subdir=SUBDIR Default metadata backup subdir [backup]
1589 --with-default-cache-subdir=SUBDIR Default metadata cache subdir [cache]
1590 --with-default-locking-dir=DIR Default locking directory [/var/lock/lvm]
93bd259b 1591 --with-interface=IFACE Choose kernel interface (ioctl) [ioctl]
ad6254c5
AK
1592
1593Some influential environment variables:
1594 CC C compiler command
1595 CFLAGS C compiler flags
1596 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1597 nonstandard directory <lib dir>
25fbec5b 1598 LIBS libraries to pass to the linker, e.g. -l<library>
7a197a62
AK
1599 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1600 you have headers in a nonstandard directory <include dir>
ad6254c5 1601 CPP C preprocessor
e2997b73 1602 PKG_CONFIG path to pkg-config utility
a946372e
AK
1603 PKGCONFIGINIT_CFLAGS
1604 C compiler flags for PKGCONFIGINIT, overriding pkg-config
1605 PKGCONFIGINIT_LIBS
1606 linker flags for PKGCONFIGINIT, overriding pkg-config
1607 CCS_CFLAGS C compiler flags for CCS, overriding pkg-config
1608 CCS_LIBS linker flags for CCS, overriding pkg-config
1609 GULM_CFLAGS C compiler flags for GULM, overriding pkg-config
1610 GULM_LIBS linker flags for GULM, overriding pkg-config
1611 CMAN_CFLAGS C compiler flags for CMAN, overriding pkg-config
1612 CMAN_LIBS linker flags for CMAN, overriding pkg-config
1613 COROSYNC_CFLAGS
1614 C compiler flags for COROSYNC, overriding pkg-config
1615 COROSYNC_LIBS
1616 linker flags for COROSYNC, overriding pkg-config
e2997b73
AK
1617 QUORUM_CFLAGS
1618 C compiler flags for QUORUM, overriding pkg-config
1619 QUORUM_LIBS linker flags for QUORUM, overriding pkg-config
a946372e
AK
1620 SALCK_CFLAGS
1621 C compiler flags for SALCK, overriding pkg-config
1622 SALCK_LIBS linker flags for SALCK, overriding pkg-config
e2997b73
AK
1623 CONFDB_CFLAGS
1624 C compiler flags for CONFDB, overriding pkg-config
1625 CONFDB_LIBS linker flags for CONFDB, overriding pkg-config
1626 CPG_CFLAGS C compiler flags for CPG, overriding pkg-config
1627 CPG_LIBS linker flags for CPG, overriding pkg-config
a946372e
AK
1628 DLM_CFLAGS C compiler flags for DLM, overriding pkg-config
1629 DLM_LIBS linker flags for DLM, overriding pkg-config
90c80887
AK
1630 SACKPT_CFLAGS
1631 C compiler flags for SACKPT, overriding pkg-config
1632 SACKPT_LIBS linker flags for SACKPT, overriding pkg-config
ad6254c5
AK
1633
1634Use these variables to override the choices made by `configure' or to help
1635it to find libraries and programs with nonstandard names/locations.
1636
1637_ACEOF
7a197a62 1638ac_status=$?
ad6254c5
AK
1639fi
1640
1641if test "$ac_init_help" = "recursive"; then
1642 # If there are subdirs, report their specific --help.
ad6254c5 1643 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
ec6a6fbe
AK
1644 test -d "$ac_dir" ||
1645 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1646 continue
ad6254c5
AK
1647 ac_builddir=.
1648
7a197a62
AK
1649case "$ac_dir" in
1650.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1651*)
ec6a6fbe 1652 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7a197a62 1653 # A ".." for each directory in $ac_dir_suffix.
ec6a6fbe 1654 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7a197a62
AK
1655 case $ac_top_builddir_sub in
1656 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1657 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1658 esac ;;
1659esac
1660ac_abs_top_builddir=$ac_pwd
1661ac_abs_builddir=$ac_pwd$ac_dir_suffix
1662# for backward compatibility:
1663ac_top_builddir=$ac_top_build_prefix
ad6254c5
AK
1664
1665case $srcdir in
7a197a62 1666 .) # We are building in place.
ad6254c5 1667 ac_srcdir=.
7a197a62
AK
1668 ac_top_srcdir=$ac_top_builddir_sub
1669 ac_abs_top_srcdir=$ac_pwd ;;
1670 [\\/]* | ?:[\\/]* ) # Absolute name.
ad6254c5 1671 ac_srcdir=$srcdir$ac_dir_suffix;
7a197a62
AK
1672 ac_top_srcdir=$srcdir
1673 ac_abs_top_srcdir=$srcdir ;;
1674 *) # Relative name.
1675 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1676 ac_top_srcdir=$ac_top_build_prefix$srcdir
1677 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8a2fc586 1678esac
7a197a62
AK
1679ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1680
1681 cd "$ac_dir" || { ac_status=$?; continue; }
1682 # Check for guested configure.
1683 if test -f "$ac_srcdir/configure.gnu"; then
1684 echo &&
1685 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1686 elif test -f "$ac_srcdir/configure"; then
1687 echo &&
1688 $SHELL "$ac_srcdir/configure" --help=recursive
ad6254c5 1689 else
ec6a6fbe 1690 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
7a197a62
AK
1691 fi || ac_status=$?
1692 cd "$ac_pwd" || { ac_status=$?; break; }
ad6254c5
AK
1693 done
1694fi
1695
7a197a62 1696test -n "$ac_init_help" && exit $ac_status
ad6254c5
AK
1697if $ac_init_version; then
1698 cat <<\_ACEOF
7a197a62 1699configure
ec6a6fbe 1700generated by GNU Autoconf 2.63
ad6254c5 1701
7a197a62 1702Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
ec6a6fbe 17032002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
ad6254c5
AK
1704This configure script is free software; the Free Software Foundation
1705gives unlimited permission to copy, distribute and modify it.
1706_ACEOF
7a197a62 1707 exit
ad6254c5 1708fi
7a197a62 1709cat >config.log <<_ACEOF
ad6254c5
AK
1710This file contains any messages produced by compilers while
1711running configure, to aid debugging if configure makes a mistake.
1712
1713It was created by $as_me, which was
ec6a6fbe 1714generated by GNU Autoconf 2.63. Invocation command line was
ad6254c5
AK
1715
1716 $ $0 $@
1717
1718_ACEOF
7a197a62 1719exec 5>>config.log
ad6254c5
AK
1720{
1721cat <<_ASUNAME
1722## --------- ##
1723## Platform. ##
1724## --------- ##
1725
1726hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1727uname -m = `(uname -m) 2>/dev/null || echo unknown`
1728uname -r = `(uname -r) 2>/dev/null || echo unknown`
1729uname -s = `(uname -s) 2>/dev/null || echo unknown`
1730uname -v = `(uname -v) 2>/dev/null || echo unknown`
1731
1732/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1733/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1734
1735/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1736/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1737/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
7a197a62 1738/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
ad6254c5
AK
1739/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1740/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1741/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1742
1743_ASUNAME
1744
1745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1746for as_dir in $PATH
1747do
1748 IFS=$as_save_IFS
1749 test -z "$as_dir" && as_dir=.
ec6a6fbe 1750 $as_echo "PATH: $as_dir"
ad6254c5 1751done
7a197a62 1752IFS=$as_save_IFS
ad6254c5
AK
1753
1754} >&5
1755
1756cat >&5 <<_ACEOF
1757
1758
1759## ----------- ##
1760## Core tests. ##
1761## ----------- ##
1762
1763_ACEOF
1764
1765
1766# Keep a trace of the command line.
1767# Strip out --no-create and --no-recursion so they do not pile up.
1768# Strip out --silent because we don't want to record it for future runs.
1769# Also quote any args containing shell meta-characters.
1770# Make two passes to allow for proper duplicate-argument suppression.
1771ac_configure_args=
1772ac_configure_args0=
1773ac_configure_args1=
ad6254c5
AK
1774ac_must_keep_next=false
1775for ac_pass in 1 2
1776do
1777 for ac_arg
1778 do
1779 case $ac_arg in
1780 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1781 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1782 | -silent | --silent | --silen | --sile | --sil)
1783 continue ;;
7a197a62 1784 *\'*)
ec6a6fbe 1785 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
ad6254c5
AK
1786 esac
1787 case $ac_pass in
1788 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1789 2)
1790 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1791 if test $ac_must_keep_next = true; then
8a2fc586 1792 ac_must_keep_next=false # Got value, back to normal.
ad6254c5 1793 else
8a2fc586
AK
1794 case $ac_arg in
1795 *=* | --config-cache | -C | -disable-* | --disable-* \
1796 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1797 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1798 | -with-* | --with-* | -without-* | --without-* | --x)
1799 case "$ac_configure_args0 " in
1800 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1801 esac
1802 ;;
1803 -* ) ac_must_keep_next=true ;;
1804 esac
ad6254c5 1805 fi
7a197a62 1806 ac_configure_args="$ac_configure_args '$ac_arg'"
ad6254c5
AK
1807 ;;
1808 esac
1809 done
1810done
1811$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1812$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1813
1814# When interrupted or exit'd, cleanup temporary files, and complete
1815# config.log. We remove comments because anyway the quotes in there
1816# would cause problems or look ugly.
7a197a62
AK
1817# WARNING: Use '\'' to represent an apostrophe within the trap.
1818# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
ad6254c5
AK
1819trap 'exit_status=$?
1820 # Save into config.log some information that might help in debugging.
1821 {
1822 echo
1823
1824 cat <<\_ASBOX
1825## ---------------- ##
1826## Cache variables. ##
1827## ---------------- ##
1828_ASBOX
1829 echo
1830 # The following way of writing the cache mishandles newlines in values,
7a197a62
AK
1831(
1832 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1833 eval ac_val=\$$ac_var
1834 case $ac_val in #(
1835 *${as_nl}*)
1836 case $ac_var in #(
ec6a6fbe
AK
1837 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1838$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7a197a62
AK
1839 esac
1840 case $ac_var in #(
1841 _ | IFS | as_nl) ;; #(
ec6a6fbe 1842 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7a197a62
AK
1843 *) $as_unset $ac_var ;;
1844 esac ;;
1845 esac
1846 done
ad6254c5 1847 (set) 2>&1 |
7a197a62
AK
1848 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1849 *${as_nl}ac_space=\ *)
ad6254c5 1850 sed -n \
7a197a62
AK
1851 "s/'\''/'\''\\\\'\'''\''/g;
1852 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1853 ;; #(
ad6254c5 1854 *)
7a197a62 1855 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
ad6254c5 1856 ;;
7a197a62
AK
1857 esac |
1858 sort
1859)
ad6254c5
AK
1860 echo
1861
1862 cat <<\_ASBOX
1863## ----------------- ##
1864## Output variables. ##
1865## ----------------- ##
1866_ASBOX
1867 echo
1868 for ac_var in $ac_subst_vars
1869 do
7a197a62
AK
1870 eval ac_val=\$$ac_var
1871 case $ac_val in
ec6a6fbe 1872 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
7a197a62 1873 esac
ec6a6fbe 1874 $as_echo "$ac_var='\''$ac_val'\''"
ad6254c5
AK
1875 done | sort
1876 echo
1877
1878 if test -n "$ac_subst_files"; then
1879 cat <<\_ASBOX
7a197a62
AK
1880## ------------------- ##
1881## File substitutions. ##
1882## ------------------- ##
ad6254c5
AK
1883_ASBOX
1884 echo
1885 for ac_var in $ac_subst_files
1886 do
7a197a62
AK
1887 eval ac_val=\$$ac_var
1888 case $ac_val in
ec6a6fbe 1889 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
7a197a62 1890 esac
ec6a6fbe 1891 $as_echo "$ac_var='\''$ac_val'\''"
ad6254c5
AK
1892 done | sort
1893 echo
1894 fi
1895
1896 if test -s confdefs.h; then
1897 cat <<\_ASBOX
1898## ----------- ##
1899## confdefs.h. ##
1900## ----------- ##
1901_ASBOX
1902 echo
7a197a62 1903 cat confdefs.h
ad6254c5
AK
1904 echo
1905 fi
1906 test "$ac_signal" != 0 &&
ec6a6fbe
AK
1907 $as_echo "$as_me: caught signal $ac_signal"
1908 $as_echo "$as_me: exit $exit_status"
ad6254c5 1909 } >&5
7a197a62
AK
1910 rm -f core *.core core.conftest.* &&
1911 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
ad6254c5 1912 exit $exit_status
7a197a62 1913' 0
ad6254c5
AK
1914for ac_signal in 1 2 13 15; do
1915 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1916done
1917ac_signal=0
1918
1919# confdefs.h avoids OS command line length limits that DEFS can exceed.
7a197a62 1920rm -f -r conftest* confdefs.h
ad6254c5
AK
1921
1922# Predefined preprocessor variables.
1923
1924cat >>confdefs.h <<_ACEOF
1925#define PACKAGE_NAME "$PACKAGE_NAME"
1926_ACEOF
1927
1928
1929cat >>confdefs.h <<_ACEOF
1930#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1931_ACEOF
1932
1933
1934cat >>confdefs.h <<_ACEOF
1935#define PACKAGE_VERSION "$PACKAGE_VERSION"
1936_ACEOF
8106cdd5 1937
ad6254c5
AK
1938
1939cat >>confdefs.h <<_ACEOF
1940#define PACKAGE_STRING "$PACKAGE_STRING"
1941_ACEOF
1942
1943
1944cat >>confdefs.h <<_ACEOF
1945#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1946_ACEOF
1947
1948
1949# Let the site file select an alternate cache file if it wants to.
ec6a6fbe
AK
1950# Prefer an explicitly selected file to automatically selected ones.
1951ac_site_file1=NONE
1952ac_site_file2=NONE
7a197a62 1953if test -n "$CONFIG_SITE"; then
ec6a6fbe 1954 ac_site_file1=$CONFIG_SITE
7a197a62 1955elif test "x$prefix" != xNONE; then
ec6a6fbe
AK
1956 ac_site_file1=$prefix/share/config.site
1957 ac_site_file2=$prefix/etc/config.site
7a197a62 1958else
ec6a6fbe
AK
1959 ac_site_file1=$ac_default_prefix/share/config.site
1960 ac_site_file2=$ac_default_prefix/etc/config.site
795ca3e5 1961fi
ec6a6fbe 1962for ac_site_file in "$ac_site_file1" "$ac_site_file2"
7a197a62 1963do
ec6a6fbe 1964 test "x$ac_site_file" = xNONE && continue
795ca3e5 1965 if test -r "$ac_site_file"; then
ec6a6fbe
AK
1966 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1967$as_echo "$as_me: loading site script $ac_site_file" >&6;}
ad6254c5 1968 sed 's/^/| /' "$ac_site_file" >&5
795ca3e5
AK
1969 . "$ac_site_file"
1970 fi
1971done
1972
1973if test -r "$cache_file"; then
ad6254c5
AK
1974 # Some versions of bash will fail to source /dev/null (special
1975 # files actually), so we avoid doing that.
1976 if test -f "$cache_file"; then
ec6a6fbe
AK
1977 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1978$as_echo "$as_me: loading cache $cache_file" >&6;}
ad6254c5 1979 case $cache_file in
7a197a62
AK
1980 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1981 *) . "./$cache_file";;
ad6254c5
AK
1982 esac
1983 fi
795ca3e5 1984else
ec6a6fbe
AK
1985 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1986$as_echo "$as_me: creating cache $cache_file" >&6;}
ad6254c5
AK
1987 >$cache_file
1988fi
1989
1990# Check that the precious variables saved in the cache have kept the same
1991# value.
1992ac_cache_corrupted=false
7a197a62 1993for ac_var in $ac_precious_vars; do
ad6254c5
AK
1994 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1995 eval ac_new_set=\$ac_env_${ac_var}_set
7a197a62
AK
1996 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1997 eval ac_new_val=\$ac_env_${ac_var}_value
ad6254c5
AK
1998 case $ac_old_set,$ac_new_set in
1999 set,)
ec6a6fbe
AK
2000 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2001$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
ad6254c5
AK
2002 ac_cache_corrupted=: ;;
2003 ,set)
ec6a6fbe
AK
2004 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2005$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
ad6254c5
AK
2006 ac_cache_corrupted=: ;;
2007 ,);;
2008 *)
2009 if test "x$ac_old_val" != "x$ac_new_val"; then
ec6a6fbe
AK
2010 # differences in whitespace do not lead to failure.
2011 ac_old_val_w=`echo x $ac_old_val`
2012 ac_new_val_w=`echo x $ac_new_val`
2013 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2014 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2015$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2016 ac_cache_corrupted=:
2017 else
2018 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2019$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2020 eval $ac_var=\$ac_old_val
2021 fi
2022 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2023$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2024 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2025$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
ad6254c5
AK
2026 fi;;
2027 esac
2028 # Pass precious variables to config.status.
2029 if test "$ac_new_set" = set; then
2030 case $ac_new_val in
ec6a6fbe 2031 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
ad6254c5
AK
2032 *) ac_arg=$ac_var=$ac_new_val ;;
2033 esac
2034 case " $ac_configure_args " in
2035 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2036 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2037 esac
2038 fi
2039done
2040if $ac_cache_corrupted; then
ec6a6fbe
AK
2041 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2042$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2043 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2044$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2045 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2046$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
ad6254c5 2047 { (exit 1); exit 1; }; }
795ca3e5
AK
2048fi
2049
ad6254c5
AK
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
7a197a62
AK
2066ac_ext=c
2067ac_cpp='$CPP $CPPFLAGS'
2068ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2069ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2070ac_compiler_gnu=$ac_cv_c_compiler_gnu
ad6254c5 2071
795ca3e5
AK
2072
2073
7a197a62 2074ac_config_headers="$ac_config_headers lib/misc/configure.h"
72b2cb61
AK
2075
2076
80992638 2077################################################################################
795ca3e5 2078ac_aux_dir=
7a197a62
AK
2079for ac_dir in autoconf "$srcdir"/autoconf; do
2080 if test -f "$ac_dir/install-sh"; then
795ca3e5
AK
2081 ac_aux_dir=$ac_dir
2082 ac_install_sh="$ac_aux_dir/install-sh -c"
2083 break
7a197a62 2084 elif test -f "$ac_dir/install.sh"; then
795ca3e5
AK
2085 ac_aux_dir=$ac_dir
2086 ac_install_sh="$ac_aux_dir/install.sh -c"
2087 break
7a197a62 2088 elif test -f "$ac_dir/shtool"; then
ad6254c5
AK
2089 ac_aux_dir=$ac_dir
2090 ac_install_sh="$ac_aux_dir/shtool install -c"
2091 break
795ca3e5
AK
2092 fi
2093done
2094if test -z "$ac_aux_dir"; then
ec6a6fbe
AK
2095 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2096$as_echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
ad6254c5 2097 { (exit 1); exit 1; }; }
795ca3e5 2098fi
7a197a62
AK
2099
2100# These three variables are undocumented and unsupported,
2101# and are intended to be withdrawn in a future Autoconf release.
2102# They can cause serious problems if a builder's source tree is in a directory
2103# whose full name contains unusual characters.
2104ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2105ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2106ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2107
8ce0cbda
AK
2108
2109
ad6254c5 2110################################################################################
8ce0cbda 2111# Make sure we can run config.sub.
7a197a62 2112$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
ec6a6fbe
AK
2113 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2114$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
ad6254c5
AK
2115 { (exit 1); exit 1; }; }
2116
ec6a6fbe
AK
2117{ $as_echo "$as_me:$LINENO: checking build system type" >&5
2118$as_echo_n "checking build system type... " >&6; }
ad6254c5 2119if test "${ac_cv_build+set}" = set; then
ec6a6fbe 2120 $as_echo_n "(cached) " >&6
ad6254c5 2121else
7a197a62
AK
2122 ac_build_alias=$build_alias
2123test "x$ac_build_alias" = x &&
2124 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2125test "x$ac_build_alias" = x &&
ec6a6fbe
AK
2126 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2127$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
ad6254c5 2128 { (exit 1); exit 1; }; }
7a197a62 2129ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
ec6a6fbe
AK
2130 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2131$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
ad6254c5
AK
2132 { (exit 1); exit 1; }; }
2133
2134fi
ec6a6fbe
AK
2135{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2136$as_echo "$ac_cv_build" >&6; }
7a197a62
AK
2137case $ac_cv_build in
2138*-*-*) ;;
ec6a6fbe
AK
2139*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2140$as_echo "$as_me: error: invalid value of canonical build" >&2;}
7a197a62
AK
2141 { (exit 1); exit 1; }; };;
2142esac
ad6254c5 2143build=$ac_cv_build
7a197a62
AK
2144ac_save_IFS=$IFS; IFS='-'
2145set x $ac_cv_build
2146shift
2147build_cpu=$1
2148build_vendor=$2
2149shift; shift
2150# Remember, the first character of IFS is used to create $*,
2151# except with old shells:
2152build_os=$*
2153IFS=$ac_save_IFS
2154case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
ad6254c5
AK
2155
2156
ec6a6fbe
AK
2157{ $as_echo "$as_me:$LINENO: checking host system type" >&5
2158$as_echo_n "checking host system type... " >&6; }
ad6254c5 2159if test "${ac_cv_host+set}" = set; then
ec6a6fbe 2160 $as_echo_n "(cached) " >&6
ad6254c5 2161else
7a197a62
AK
2162 if test "x$host_alias" = x; then
2163 ac_cv_host=$ac_cv_build
2164else
2165 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
ec6a6fbe
AK
2166 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2167$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
ad6254c5 2168 { (exit 1); exit 1; }; }
7a197a62 2169fi
ad6254c5
AK
2170
2171fi
ec6a6fbe
AK
2172{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2173$as_echo "$ac_cv_host" >&6; }
7a197a62
AK
2174case $ac_cv_host in
2175*-*-*) ;;
ec6a6fbe
AK
2176*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2177$as_echo "$as_me: error: invalid value of canonical host" >&2;}
7a197a62
AK
2178 { (exit 1); exit 1; }; };;
2179esac
ad6254c5 2180host=$ac_cv_host
7a197a62
AK
2181ac_save_IFS=$IFS; IFS='-'
2182set x $ac_cv_host
2183shift
2184host_cpu=$1
2185host_vendor=$2
2186shift; shift
2187# Remember, the first character of IFS is used to create $*,
2188# except with old shells:
2189host_os=$*
2190IFS=$ac_save_IFS
2191case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
ad6254c5
AK
2192
2193
ec6a6fbe
AK
2194{ $as_echo "$as_me:$LINENO: checking target system type" >&5
2195$as_echo_n "checking target system type... " >&6; }
ad6254c5 2196if test "${ac_cv_target+set}" = set; then
ec6a6fbe 2197 $as_echo_n "(cached) " >&6
ad6254c5 2198else
7a197a62
AK
2199 if test "x$target_alias" = x; then
2200 ac_cv_target=$ac_cv_host
2201else
2202 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
ec6a6fbe
AK
2203 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2204$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
ad6254c5 2205 { (exit 1); exit 1; }; }
7a197a62 2206fi
8ce0cbda 2207
ad6254c5 2208fi
ec6a6fbe
AK
2209{ $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2210$as_echo "$ac_cv_target" >&6; }
7a197a62
AK
2211case $ac_cv_target in
2212*-*-*) ;;
ec6a6fbe
AK
2213*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2214$as_echo "$as_me: error: invalid value of canonical target" >&2;}
7a197a62
AK
2215 { (exit 1); exit 1; }; };;
2216esac
ad6254c5 2217target=$ac_cv_target
7a197a62
AK
2218ac_save_IFS=$IFS; IFS='-'
2219set x $ac_cv_target
2220shift
2221target_cpu=$1
2222target_vendor=$2
2223shift; shift
2224# Remember, the first character of IFS is used to create $*,
2225# except with old shells:
2226target_os=$*
2227IFS=$ac_save_IFS
2228case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
8ce0cbda 2229
8ce0cbda 2230
ad6254c5
AK
2231# The aliases save the names the user supplied, while $host etc.
2232# will get canonicalized.
2233test -n "$target_alias" &&
8ce0cbda
AK
2234 test "$program_prefix$program_suffix$program_transform_name" = \
2235 NONENONEs,x,x, &&
2236 program_prefix=${target_alias}-
2237
8ce0cbda
AK
2238case "$host_os" in
2239 linux*)
7f54ef36 2240 CFLAGS="$CFLAGS"
8ce0cbda
AK
2241 COPTIMISE_FLAG="-O2"
2242 CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym"
2243 CLDWHOLEARCHIVE="-Wl,-whole-archive"
2244 CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive"
2245 LDDEPS="$LDDEPS .export.sym"
2246 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
d0191583 2247 LIB_SUFFIX=so
8ce0cbda
AK
2248 DEVMAPPER=yes
2249 ODIRECT=yes
d0191583 2250 DM_IOCTLS=yes
8ce0cbda
AK
2251 SELINUX=yes
2252 CLUSTER=internal
93bd259b 2253 FSADM=yes
d0191583 2254 ;;
8ce0cbda
AK
2255 darwin*)
2256 CFLAGS="$CFLAGS -no-cpp-precomp -fno-common"
2257 COPTIMISE_FLAG="-O2"
2258 CLDFLAGS="$CLDFLAGS"
2259 CLDWHOLEARCHIVE="-all_load"
2260 CLDNOWHOLEARCHIVE=
d0191583 2261 LIB_SUFFIX=dylib
a653923f 2262 DEVMAPPER=yes
8ce0cbda 2263 ODIRECT=no
d0191583 2264 DM_IOCTLS=no
8ce0cbda
AK
2265 SELINUX=no
2266 CLUSTER=none
d0191583
JM
2267 FSADM=no
2268 ;;
8ce0cbda
AK
2269esac
2270
80992638 2271################################################################################
ec6a6fbe
AK
2272{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
2273$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5951ef33 2274if test "${ac_cv_path_SED+set}" = set; then
ec6a6fbe 2275 $as_echo_n "(cached) " >&6
5951ef33
AK
2276else
2277 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2278 for ac_i in 1 2 3 4 5 6 7; do
2279 ac_script="$ac_script$as_nl$ac_script"
2280 done
ec6a6fbe 2281 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5951ef33 2282 $as_unset ac_script || ac_script=
ec6a6fbe 2283 if test -z "$SED"; then
5951ef33 2284 ac_path_SED_found=false
ec6a6fbe
AK
2285 # Loop through the user's path and test for each of PROGNAME-LIST
2286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5951ef33
AK
2287for as_dir in $PATH
2288do
2289 IFS=$as_save_IFS
2290 test -z "$as_dir" && as_dir=.
2291 for ac_prog in sed gsed; do
ec6a6fbe
AK
2292 for ac_exec_ext in '' $ac_executable_extensions; do
2293 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2294 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2295# Check for GNU ac_path_SED and select it if it is found.
5951ef33
AK
2296 # Check for GNU $ac_path_SED
2297case `"$ac_path_SED" --version 2>&1` in
2298*GNU*)
2299 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2300*)
2301 ac_count=0
ec6a6fbe 2302 $as_echo_n 0123456789 >"conftest.in"
5951ef33
AK
2303 while :
2304 do
2305 cat "conftest.in" "conftest.in" >"conftest.tmp"
2306 mv "conftest.tmp" "conftest.in"
2307 cp "conftest.in" "conftest.nl"
ec6a6fbe 2308 $as_echo '' >> "conftest.nl"
5951ef33
AK
2309 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2310 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2311 ac_count=`expr $ac_count + 1`
2312 if test $ac_count -gt ${ac_path_SED_max-0}; then
2313 # Best one so far, save it but keep looking for a better one
2314 ac_cv_path_SED="$ac_path_SED"
2315 ac_path_SED_max=$ac_count
2316 fi
2317 # 10*(2^10) chars as input seems more than enough
2318 test $ac_count -gt 10 && break
2319 done
2320 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2321esac
2322
ec6a6fbe
AK
2323 $ac_path_SED_found && break 3
2324 done
5951ef33
AK
2325 done
2326done
5951ef33 2327IFS=$as_save_IFS
ec6a6fbe
AK
2328 if test -z "$ac_cv_path_SED"; then
2329 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
2330$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
5951ef33 2331 { (exit 1); exit 1; }; }
ec6a6fbe 2332 fi
5951ef33
AK
2333else
2334 ac_cv_path_SED=$SED
2335fi
2336
2337fi
ec6a6fbe
AK
2338{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
2339$as_echo "$ac_cv_path_SED" >&6; }
5951ef33
AK
2340 SED="$ac_cv_path_SED"
2341 rm -f conftest.sed
2342
ad6254c5 2343for ac_prog in gawk mawk nawk awk
795ca3e5 2344do
ad6254c5 2345 # Extract the first word of "$ac_prog", so it can be a program name with args.
795ca3e5 2346set dummy $ac_prog; ac_word=$2
ec6a6fbe
AK
2347{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2348$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2349if test "${ac_cv_prog_AWK+set}" = set; then
ec6a6fbe 2350 $as_echo_n "(cached) " >&6
795ca3e5
AK
2351else
2352 if test -n "$AWK"; then
2353 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2354else
ad6254c5
AK
2355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2356for as_dir in $PATH
2357do
2358 IFS=$as_save_IFS
2359 test -z "$as_dir" && as_dir=.
2360 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2362 ac_cv_prog_AWK="$ac_prog"
ec6a6fbe 2363 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2364 break 2
2365 fi
2366done
2367done
7a197a62 2368IFS=$as_save_IFS
ad6254c5 2369
795ca3e5
AK
2370fi
2371fi
ad6254c5 2372AWK=$ac_cv_prog_AWK
795ca3e5 2373if test -n "$AWK"; then
ec6a6fbe
AK
2374 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2375$as_echo "$AWK" >&6; }
795ca3e5 2376else
ec6a6fbe
AK
2377 { $as_echo "$as_me:$LINENO: result: no" >&5
2378$as_echo "no" >&6; }
795ca3e5
AK
2379fi
2380
7a197a62 2381
ad6254c5
AK
2382 test -n "$AWK" && break
2383done
2384
2385ac_ext=c
2386ac_cpp='$CPP $CPPFLAGS'
2387ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2388ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2389ac_compiler_gnu=$ac_cv_c_compiler_gnu
2390if test -n "$ac_tool_prefix"; then
2391 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2392set dummy ${ac_tool_prefix}gcc; ac_word=$2
ec6a6fbe
AK
2393{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2394$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2395if test "${ac_cv_prog_CC+set}" = set; then
ec6a6fbe 2396 $as_echo_n "(cached) " >&6
ad6254c5
AK
2397else
2398 if test -n "$CC"; then
2399 ac_cv_prog_CC="$CC" # Let the user override the test.
2400else
2401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2402for as_dir in $PATH
2403do
2404 IFS=$as_save_IFS
2405 test -z "$as_dir" && as_dir=.
2406 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2408 ac_cv_prog_CC="${ac_tool_prefix}gcc"
ec6a6fbe 2409 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2410 break 2
2411 fi
2412done
8106cdd5 2413done
7a197a62 2414IFS=$as_save_IFS
8106cdd5 2415
ad6254c5
AK
2416fi
2417fi
2418CC=$ac_cv_prog_CC
2419if test -n "$CC"; then
ec6a6fbe
AK
2420 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2421$as_echo "$CC" >&6; }
ad6254c5 2422else
ec6a6fbe
AK
2423 { $as_echo "$as_me:$LINENO: result: no" >&5
2424$as_echo "no" >&6; }
ad6254c5
AK
2425fi
2426
7a197a62 2427
ad6254c5
AK
2428fi
2429if test -z "$ac_cv_prog_CC"; then
2430 ac_ct_CC=$CC
2431 # Extract the first word of "gcc", so it can be a program name with args.
8106cdd5 2432set dummy gcc; ac_word=$2
ec6a6fbe
AK
2433{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2434$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2435if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
ec6a6fbe 2436 $as_echo_n "(cached) " >&6
ad6254c5
AK
2437else
2438 if test -n "$ac_ct_CC"; then
2439 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2440else
2441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2442for as_dir in $PATH
2443do
2444 IFS=$as_save_IFS
2445 test -z "$as_dir" && as_dir=.
2446 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2448 ac_cv_prog_ac_ct_CC="gcc"
ec6a6fbe 2449 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2450 break 2
2451 fi
2452done
2453done
7a197a62 2454IFS=$as_save_IFS
ad6254c5
AK
2455
2456fi
2457fi
2458ac_ct_CC=$ac_cv_prog_ac_ct_CC
2459if test -n "$ac_ct_CC"; then
ec6a6fbe
AK
2460 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2461$as_echo "$ac_ct_CC" >&6; }
ad6254c5 2462else
ec6a6fbe
AK
2463 { $as_echo "$as_me:$LINENO: result: no" >&5
2464$as_echo "no" >&6; }
ad6254c5
AK
2465fi
2466
7a197a62
AK
2467 if test "x$ac_ct_CC" = x; then
2468 CC=""
2469 else
2470 case $cross_compiling:$ac_tool_warned in
2471yes:)
ec6a6fbe
AK
2472{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2473$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7a197a62
AK
2474ac_tool_warned=yes ;;
2475esac
2476 CC=$ac_ct_CC
2477 fi
ad6254c5
AK
2478else
2479 CC="$ac_cv_prog_CC"
2480fi
2481
2482if test -z "$CC"; then
7a197a62
AK
2483 if test -n "$ac_tool_prefix"; then
2484 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
ad6254c5 2485set dummy ${ac_tool_prefix}cc; ac_word=$2
ec6a6fbe
AK
2486{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2487$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2488if test "${ac_cv_prog_CC+set}" = set; then
ec6a6fbe 2489 $as_echo_n "(cached) " >&6
8106cdd5
AK
2490else
2491 if test -n "$CC"; then
2492 ac_cv_prog_CC="$CC" # Let the user override the test.
2493else
ad6254c5
AK
2494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2495for as_dir in $PATH
2496do
2497 IFS=$as_save_IFS
2498 test -z "$as_dir" && as_dir=.
2499 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2501 ac_cv_prog_CC="${ac_tool_prefix}cc"
ec6a6fbe 2502 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2503 break 2
2504 fi
2505done
2506done
7a197a62 2507IFS=$as_save_IFS
ad6254c5 2508
8106cdd5
AK
2509fi
2510fi
ad6254c5 2511CC=$ac_cv_prog_CC
8106cdd5 2512if test -n "$CC"; then
ec6a6fbe
AK
2513 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2514$as_echo "$CC" >&6; }
ad6254c5 2515else
ec6a6fbe
AK
2516 { $as_echo "$as_me:$LINENO: result: no" >&5
2517$as_echo "no" >&6; }
ad6254c5
AK
2518fi
2519
8106cdd5 2520
7a197a62 2521 fi
ad6254c5 2522fi
795ca3e5
AK
2523if test -z "$CC"; then
2524 # Extract the first word of "cc", so it can be a program name with args.
2525set dummy cc; ac_word=$2
ec6a6fbe
AK
2526{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2527$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2528if test "${ac_cv_prog_CC+set}" = set; then
ec6a6fbe 2529 $as_echo_n "(cached) " >&6
795ca3e5
AK
2530else
2531 if test -n "$CC"; then
2532 ac_cv_prog_CC="$CC" # Let the user override the test.
2533else
795ca3e5 2534 ac_prog_rejected=no
ad6254c5
AK
2535as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2536for as_dir in $PATH
2537do
2538 IFS=$as_save_IFS
2539 test -z "$as_dir" && as_dir=.
2540 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5
AK
2542 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2543 ac_prog_rejected=yes
2544 continue
2545 fi
2546 ac_cv_prog_CC="cc"
ec6a6fbe 2547 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2548 break 2
2549 fi
2550done
2551done
7a197a62 2552IFS=$as_save_IFS
ad6254c5 2553
795ca3e5
AK
2554if test $ac_prog_rejected = yes; then
2555 # We found a bogon in the path, so make sure we never use it.
2556 set dummy $ac_cv_prog_CC
2557 shift
ad6254c5 2558 if test $# != 0; then
795ca3e5
AK
2559 # We chose a different compiler from the bogus one.
2560 # However, it has the same basename, so the bogon will be chosen
2561 # first if we set CC to just the basename; use the full file name.
2562 shift
ad6254c5 2563 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
795ca3e5
AK
2564 fi
2565fi
2566fi
2567fi
ad6254c5 2568CC=$ac_cv_prog_CC
795ca3e5 2569if test -n "$CC"; then
ec6a6fbe
AK
2570 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2571$as_echo "$CC" >&6; }
795ca3e5 2572else
ec6a6fbe
AK
2573 { $as_echo "$as_me:$LINENO: result: no" >&5
2574$as_echo "no" >&6; }
795ca3e5
AK
2575fi
2576
7a197a62 2577
ad6254c5
AK
2578fi
2579if test -z "$CC"; then
2580 if test -n "$ac_tool_prefix"; then
7a197a62 2581 for ac_prog in cl.exe
ad6254c5
AK
2582 do
2583 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2584set dummy $ac_tool_prefix$ac_prog; ac_word=$2
ec6a6fbe
AK
2585{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2586$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2587if test "${ac_cv_prog_CC+set}" = set; then
ec6a6fbe 2588 $as_echo_n "(cached) " >&6
795ca3e5
AK
2589else
2590 if test -n "$CC"; then
2591 ac_cv_prog_CC="$CC" # Let the user override the test.
2592else
ad6254c5
AK
2593as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2594for as_dir in $PATH
2595do
2596 IFS=$as_save_IFS
2597 test -z "$as_dir" && as_dir=.
2598 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2600 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
ec6a6fbe 2601 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2602 break 2
2603 fi
2604done
2605done
7a197a62 2606IFS=$as_save_IFS
ad6254c5 2607
795ca3e5
AK
2608fi
2609fi
ad6254c5 2610CC=$ac_cv_prog_CC
795ca3e5 2611if test -n "$CC"; then
ec6a6fbe
AK
2612 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2613$as_echo "$CC" >&6; }
795ca3e5 2614else
ec6a6fbe
AK
2615 { $as_echo "$as_me:$LINENO: result: no" >&5
2616$as_echo "no" >&6; }
795ca3e5 2617fi
ad6254c5 2618
7a197a62 2619
ad6254c5
AK
2620 test -n "$CC" && break
2621 done
2622fi
2623if test -z "$CC"; then
2624 ac_ct_CC=$CC
7a197a62 2625 for ac_prog in cl.exe
ad6254c5
AK
2626do
2627 # Extract the first word of "$ac_prog", so it can be a program name with args.
2628set dummy $ac_prog; ac_word=$2
ec6a6fbe
AK
2629{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2630$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2631if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
ec6a6fbe 2632 $as_echo_n "(cached) " >&6
ad6254c5
AK
2633else
2634 if test -n "$ac_ct_CC"; then
2635 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2636else
2637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2638for as_dir in $PATH
2639do
2640 IFS=$as_save_IFS
2641 test -z "$as_dir" && as_dir=.
2642 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2644 ac_cv_prog_ac_ct_CC="$ac_prog"
ec6a6fbe 2645 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5 2646 break 2
795ca3e5 2647 fi
ad6254c5
AK
2648done
2649done
7a197a62 2650IFS=$as_save_IFS
ad6254c5
AK
2651
2652fi
2653fi
2654ac_ct_CC=$ac_cv_prog_ac_ct_CC
2655if test -n "$ac_ct_CC"; then
ec6a6fbe
AK
2656 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2657$as_echo "$ac_ct_CC" >&6; }
ad6254c5 2658else
ec6a6fbe
AK
2659 { $as_echo "$as_me:$LINENO: result: no" >&5
2660$as_echo "no" >&6; }
795ca3e5
AK
2661fi
2662
7a197a62 2663
ad6254c5
AK
2664 test -n "$ac_ct_CC" && break
2665done
795ca3e5 2666
7a197a62
AK
2667 if test "x$ac_ct_CC" = x; then
2668 CC=""
2669 else
2670 case $cross_compiling:$ac_tool_warned in
2671yes:)
ec6a6fbe
AK
2672{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2673$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7a197a62
AK
2674ac_tool_warned=yes ;;
2675esac
2676 CC=$ac_ct_CC
2677 fi
ad6254c5
AK
2678fi
2679
2680fi
2681
2682
ec6a6fbe
AK
2683test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2684$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2685{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
ad6254c5 2686See \`config.log' for more details." >&5
ec6a6fbe 2687$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
ad6254c5 2688See \`config.log' for more details." >&2;}
ec6a6fbe 2689 { (exit 1); exit 1; }; }; }
ad6254c5
AK
2690
2691# Provide some information about the compiler.
ec6a6fbe
AK
2692$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2693set X $ac_compile
2694ac_compiler=$2
7a197a62
AK
2695{ (ac_try="$ac_compiler --version >&5"
2696case "(($ac_try" in
2697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2698 *) ac_try_echo=$ac_try;;
2699esac
ec6a6fbe
AK
2700eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2701$as_echo "$ac_try_echo") >&5
7a197a62 2702 (eval "$ac_compiler --version >&5") 2>&5
ad6254c5 2703 ac_status=$?
ec6a6fbe 2704 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2705 (exit $ac_status); }
7a197a62
AK
2706{ (ac_try="$ac_compiler -v >&5"
2707case "(($ac_try" in
2708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2709 *) ac_try_echo=$ac_try;;
2710esac
ec6a6fbe
AK
2711eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2712$as_echo "$ac_try_echo") >&5
7a197a62 2713 (eval "$ac_compiler -v >&5") 2>&5
ad6254c5 2714 ac_status=$?
ec6a6fbe 2715 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2716 (exit $ac_status); }
7a197a62
AK
2717{ (ac_try="$ac_compiler -V >&5"
2718case "(($ac_try" in
2719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2720 *) ac_try_echo=$ac_try;;
2721esac
ec6a6fbe
AK
2722eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2723$as_echo "$ac_try_echo") >&5
7a197a62 2724 (eval "$ac_compiler -V >&5") 2>&5
ad6254c5 2725 ac_status=$?
ec6a6fbe 2726 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
2727 (exit $ac_status); }
2728
2729cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2730/* confdefs.h. */
2731_ACEOF
2732cat confdefs.h >>conftest.$ac_ext
2733cat >>conftest.$ac_ext <<_ACEOF
2734/* end confdefs.h. */
2735
2736int
2737main ()
2738{
2739
2740 ;
2741 return 0;
2742}
2743_ACEOF
2744ac_clean_files_save=$ac_clean_files
ec6a6fbe 2745ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
ad6254c5
AK
2746# Try to create an executable without -o first, disregard a.out.
2747# It will help us diagnose broken compilers, and finding out an intuition
2748# of exeext.
ec6a6fbe
AK
2749{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2750$as_echo_n "checking for C compiler default output file name... " >&6; }
2751ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2752
2753# The possible output files:
2754ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2755
7a197a62
AK
2756ac_rmfiles=
2757for ac_file in $ac_files
2758do
2759 case $ac_file in
ec6a6fbe 2760 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
7a197a62
AK
2761 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2762 esac
2763done
2764rm -f $ac_rmfiles
2765
2766if { (ac_try="$ac_link_default"
2767case "(($ac_try" in
2768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2769 *) ac_try_echo=$ac_try;;
2770esac
ec6a6fbe
AK
2771eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2772$as_echo "$ac_try_echo") >&5
7a197a62 2773 (eval "$ac_link_default") 2>&5
ad6254c5 2774 ac_status=$?
ec6a6fbe 2775 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2776 (exit $ac_status); }; then
7a197a62
AK
2777 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2778# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2779# in a Makefile. We should not override ac_cv_exeext if it was cached,
2780# so that the user can short-circuit this test for compilers unknown to
2781# Autoconf.
25fbec5b 2782for ac_file in $ac_files ''
ad6254c5
AK
2783do
2784 test -f "$ac_file" || continue
2785 case $ac_file in
ec6a6fbe 2786 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
8a2fc586 2787 ;;
ad6254c5 2788 [ab].out )
8a2fc586
AK
2789 # We found the default executable, but exeext='' is most
2790 # certainly right.
2791 break;;
ad6254c5 2792 *.* )
7a197a62
AK
2793 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2794 then :; else
2795 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2796 fi
2797 # We set ac_cv_exeext here because the later test for it is not
2798 # safe: cross compilers may not add the suffix if given an `-o'
2799 # argument, so we may need to know it at that point already.
2800 # Even if this section looks crufty: it has the advantage of
2801 # actually working.
8a2fc586 2802 break;;
ad6254c5 2803 * )
8a2fc586 2804 break;;
ad6254c5
AK
2805 esac
2806done
7a197a62
AK
2807test "$ac_cv_exeext" = no && ac_cv_exeext=
2808
ad6254c5 2809else
25fbec5b
AK
2810 ac_file=''
2811fi
2812
ec6a6fbe
AK
2813{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2814$as_echo "$ac_file" >&6; }
25fbec5b 2815if test -z "$ac_file"; then
ec6a6fbe 2816 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
2817sed 's/^/| /' conftest.$ac_ext >&5
2818
ec6a6fbe
AK
2819{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2820$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2821{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
ad6254c5 2822See \`config.log' for more details." >&5
ec6a6fbe 2823$as_echo "$as_me: error: C compiler cannot create executables
ad6254c5 2824See \`config.log' for more details." >&2;}
ec6a6fbe 2825 { (exit 77); exit 77; }; }; }
ad6254c5
AK
2826fi
2827
2828ac_exeext=$ac_cv_exeext
ad6254c5 2829
7a197a62 2830# Check that the compiler produces executables we can run. If not, either
ad6254c5 2831# the compiler is broken, or we cross compile.
ec6a6fbe
AK
2832{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2833$as_echo_n "checking whether the C compiler works... " >&6; }
ad6254c5
AK
2834# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2835# If not cross compiling, check that we can run a simple program.
2836if test "$cross_compiling" != yes; then
2837 if { ac_try='./$ac_file'
7a197a62
AK
2838 { (case "(($ac_try" in
2839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2840 *) ac_try_echo=$ac_try;;
2841esac
ec6a6fbe
AK
2842eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2843$as_echo "$ac_try_echo") >&5
7a197a62 2844 (eval "$ac_try") 2>&5
ad6254c5 2845 ac_status=$?
ec6a6fbe 2846 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
2847 (exit $ac_status); }; }; then
2848 cross_compiling=no
795ca3e5 2849 else
ad6254c5
AK
2850 if test "$cross_compiling" = maybe; then
2851 cross_compiling=yes
2852 else
ec6a6fbe
AK
2853 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2854$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2855{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
ad6254c5
AK
2856If you meant to cross compile, use \`--host'.
2857See \`config.log' for more details." >&5
ec6a6fbe 2858$as_echo "$as_me: error: cannot run C compiled programs.
ad6254c5
AK
2859If you meant to cross compile, use \`--host'.
2860See \`config.log' for more details." >&2;}
ec6a6fbe 2861 { (exit 1); exit 1; }; }; }
ad6254c5 2862 fi
795ca3e5 2863 fi
80992638 2864fi
ec6a6fbe
AK
2865{ $as_echo "$as_me:$LINENO: result: yes" >&5
2866$as_echo "yes" >&6; }
ad6254c5 2867
ec6a6fbe 2868rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
ad6254c5 2869ac_clean_files=$ac_clean_files_save
7a197a62 2870# Check that the compiler produces executables we can run. If not, either
ad6254c5 2871# the compiler is broken, or we cross compile.
ec6a6fbe
AK
2872{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2873$as_echo_n "checking whether we are cross compiling... " >&6; }
2874{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2875$as_echo "$cross_compiling" >&6; }
7a197a62 2876
ec6a6fbe
AK
2877{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2878$as_echo_n "checking for suffix of executables... " >&6; }
7a197a62
AK
2879if { (ac_try="$ac_link"
2880case "(($ac_try" in
2881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2882 *) ac_try_echo=$ac_try;;
2883esac
ec6a6fbe
AK
2884eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2885$as_echo "$ac_try_echo") >&5
7a197a62 2886 (eval "$ac_link") 2>&5
ad6254c5 2887 ac_status=$?
ec6a6fbe 2888 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
2889 (exit $ac_status); }; then
2890 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2891# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2892# work properly (i.e., refer to `conftest.exe'), while it won't with
2893# `rm'.
2894for ac_file in conftest.exe conftest conftest.*; do
2895 test -f "$ac_file" || continue
2896 case $ac_file in
ec6a6fbe 2897 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
ad6254c5 2898 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
8a2fc586 2899 break;;
ad6254c5
AK
2900 * ) break;;
2901 esac
2902done
80992638 2903else
ec6a6fbe
AK
2904 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2905$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2906{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
ad6254c5 2907See \`config.log' for more details." >&5
ec6a6fbe 2908$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
ad6254c5 2909See \`config.log' for more details." >&2;}
ec6a6fbe 2910 { (exit 1); exit 1; }; }; }
ad6254c5
AK
2911fi
2912
2913rm -f conftest$ac_cv_exeext
ec6a6fbe
AK
2914{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2915$as_echo "$ac_cv_exeext" >&6; }
ad6254c5
AK
2916
2917rm -f conftest.$ac_ext
2918EXEEXT=$ac_cv_exeext
2919ac_exeext=$EXEEXT
ec6a6fbe
AK
2920{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2921$as_echo_n "checking for suffix of object files... " >&6; }
ad6254c5 2922if test "${ac_cv_objext+set}" = set; then
ec6a6fbe 2923 $as_echo_n "(cached) " >&6
795ca3e5 2924else
ad6254c5 2925 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2926/* confdefs.h. */
2927_ACEOF
2928cat confdefs.h >>conftest.$ac_ext
2929cat >>conftest.$ac_ext <<_ACEOF
2930/* end confdefs.h. */
2931
2932int
2933main ()
2934{
2935
2936 ;
2937 return 0;
2938}
2939_ACEOF
2940rm -f conftest.o conftest.obj
7a197a62
AK
2941if { (ac_try="$ac_compile"
2942case "(($ac_try" in
2943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2944 *) ac_try_echo=$ac_try;;
2945esac
ec6a6fbe
AK
2946eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2947$as_echo "$ac_try_echo") >&5
7a197a62 2948 (eval "$ac_compile") 2>&5
ad6254c5 2949 ac_status=$?
ec6a6fbe 2950 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2951 (exit $ac_status); }; then
7a197a62
AK
2952 for ac_file in conftest.o conftest.obj conftest.*; do
2953 test -f "$ac_file" || continue;
ad6254c5 2954 case $ac_file in
ec6a6fbe 2955 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
ad6254c5
AK
2956 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2957 break;;
2958 esac
2959done
2960else
ec6a6fbe 2961 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
2962sed 's/^/| /' conftest.$ac_ext >&5
2963
ec6a6fbe
AK
2964{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2965$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2966{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
ad6254c5 2967See \`config.log' for more details." >&5
ec6a6fbe 2968$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
ad6254c5 2969See \`config.log' for more details." >&2;}
ec6a6fbe 2970 { (exit 1); exit 1; }; }; }
ad6254c5
AK
2971fi
2972
2973rm -f conftest.$ac_cv_objext conftest.$ac_ext
2974fi
ec6a6fbe
AK
2975{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2976$as_echo "$ac_cv_objext" >&6; }
ad6254c5
AK
2977OBJEXT=$ac_cv_objext
2978ac_objext=$OBJEXT
ec6a6fbe
AK
2979{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2980$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
ad6254c5 2981if test "${ac_cv_c_compiler_gnu+set}" = set; then
ec6a6fbe 2982 $as_echo_n "(cached) " >&6
ad6254c5
AK
2983else
2984 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2985/* confdefs.h. */
2986_ACEOF
2987cat confdefs.h >>conftest.$ac_ext
2988cat >>conftest.$ac_ext <<_ACEOF
2989/* end confdefs.h. */
2990
2991int
2992main ()
2993{
2994#ifndef __GNUC__
2995 choke me
2996#endif
80992638 2997
ad6254c5
AK
2998 ;
2999 return 0;
3000}
3001_ACEOF
3002rm -f conftest.$ac_objext
7a197a62
AK
3003if { (ac_try="$ac_compile"
3004case "(($ac_try" in
3005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3006 *) ac_try_echo=$ac_try;;
3007esac
ec6a6fbe
AK
3008eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3009$as_echo "$ac_try_echo") >&5
7a197a62 3010 (eval "$ac_compile") 2>conftest.er1
ad6254c5 3011 ac_status=$?
8a2fc586
AK
3012 grep -v '^ *+' conftest.er1 >conftest.err
3013 rm -f conftest.er1
3014 cat conftest.err >&5
ec6a6fbe 3015 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
3016 (exit $ac_status); } && {
3017 test -z "$ac_c_werror_flag" ||
3018 test ! -s conftest.err
3019 } && test -s conftest.$ac_objext; then
ad6254c5 3020 ac_compiler_gnu=yes
80992638 3021else
ec6a6fbe 3022 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
3023sed 's/^/| /' conftest.$ac_ext >&5
3024
7a197a62 3025 ac_compiler_gnu=no
8106cdd5 3026fi
7a197a62
AK
3027
3028rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 3029ac_cv_c_compiler_gnu=$ac_compiler_gnu
80992638 3030
ad6254c5 3031fi
ec6a6fbe
AK
3032{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3033$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3034if test $ac_compiler_gnu = yes; then
3035 GCC=yes
3036else
3037 GCC=
3038fi
ad6254c5
AK
3039ac_test_CFLAGS=${CFLAGS+set}
3040ac_save_CFLAGS=$CFLAGS
ec6a6fbe
AK
3041{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3042$as_echo_n "checking whether $CC accepts -g... " >&6; }
ad6254c5 3043if test "${ac_cv_prog_cc_g+set}" = set; then
ec6a6fbe 3044 $as_echo_n "(cached) " >&6
795ca3e5 3045else
7a197a62
AK
3046 ac_save_c_werror_flag=$ac_c_werror_flag
3047 ac_c_werror_flag=yes
3048 ac_cv_prog_cc_g=no
3049 CFLAGS="-g"
3050 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3051/* confdefs.h. */
3052_ACEOF
3053cat confdefs.h >>conftest.$ac_ext
3054cat >>conftest.$ac_ext <<_ACEOF
3055/* end confdefs.h. */
3056
3057int
3058main ()
3059{
3060
3061 ;
3062 return 0;
3063}
3064_ACEOF
3065rm -f conftest.$ac_objext
7a197a62
AK
3066if { (ac_try="$ac_compile"
3067case "(($ac_try" in
3068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3069 *) ac_try_echo=$ac_try;;
3070esac
ec6a6fbe
AK
3071eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3072$as_echo "$ac_try_echo") >&5
7a197a62 3073 (eval "$ac_compile") 2>conftest.er1
ad6254c5 3074 ac_status=$?
8a2fc586
AK
3075 grep -v '^ *+' conftest.er1 >conftest.err
3076 rm -f conftest.er1
3077 cat conftest.err >&5
ec6a6fbe 3078 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
3079 (exit $ac_status); } && {
3080 test -z "$ac_c_werror_flag" ||
3081 test ! -s conftest.err
3082 } && test -s conftest.$ac_objext; then
7a197a62
AK
3083 ac_cv_prog_cc_g=yes
3084else
ec6a6fbe 3085 $as_echo "$as_me: failed program was:" >&5
7a197a62
AK
3086sed 's/^/| /' conftest.$ac_ext >&5
3087
3088 CFLAGS=""
3089 cat >conftest.$ac_ext <<_ACEOF
3090/* confdefs.h. */
3091_ACEOF
3092cat confdefs.h >>conftest.$ac_ext
3093cat >>conftest.$ac_ext <<_ACEOF
3094/* end confdefs.h. */
3095
3096int
3097main ()
3098{
3099
3100 ;
3101 return 0;
3102}
3103_ACEOF
3104rm -f conftest.$ac_objext
3105if { (ac_try="$ac_compile"
3106case "(($ac_try" in
3107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3108 *) ac_try_echo=$ac_try;;
3109esac
ec6a6fbe
AK
3110eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3111$as_echo "$ac_try_echo") >&5
7a197a62 3112 (eval "$ac_compile") 2>conftest.er1
8a2fc586 3113 ac_status=$?
7a197a62
AK
3114 grep -v '^ *+' conftest.er1 >conftest.err
3115 rm -f conftest.er1
3116 cat conftest.err >&5
ec6a6fbe 3117 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
3118 (exit $ac_status); } && {
3119 test -z "$ac_c_werror_flag" ||
3120 test ! -s conftest.err
3121 } && test -s conftest.$ac_objext; then
7a197a62
AK
3122 :
3123else
ec6a6fbe 3124 $as_echo "$as_me: failed program was:" >&5
7a197a62
AK
3125sed 's/^/| /' conftest.$ac_ext >&5
3126
3127 ac_c_werror_flag=$ac_save_c_werror_flag
3128 CFLAGS="-g"
3129 cat >conftest.$ac_ext <<_ACEOF
3130/* confdefs.h. */
3131_ACEOF
3132cat confdefs.h >>conftest.$ac_ext
3133cat >>conftest.$ac_ext <<_ACEOF
3134/* end confdefs.h. */
3135
3136int
3137main ()
3138{
3139
3140 ;
3141 return 0;
3142}
3143_ACEOF
3144rm -f conftest.$ac_objext
3145if { (ac_try="$ac_compile"
3146case "(($ac_try" in
3147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3148 *) ac_try_echo=$ac_try;;
3149esac
ec6a6fbe
AK
3150eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3151$as_echo "$ac_try_echo") >&5
7a197a62 3152 (eval "$ac_compile") 2>conftest.er1
ad6254c5 3153 ac_status=$?
7a197a62
AK
3154 grep -v '^ *+' conftest.er1 >conftest.err
3155 rm -f conftest.er1
3156 cat conftest.err >&5
ec6a6fbe 3157 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
3158 (exit $ac_status); } && {
3159 test -z "$ac_c_werror_flag" ||
3160 test ! -s conftest.err
3161 } && test -s conftest.$ac_objext; then
795ca3e5
AK
3162 ac_cv_prog_cc_g=yes
3163else
ec6a6fbe 3164 $as_echo "$as_me: failed program was:" >&5
ad6254c5 3165sed 's/^/| /' conftest.$ac_ext >&5
80992638 3166
7a197a62
AK
3167
3168fi
3169
3170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3171fi
3172
3173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8106cdd5 3174fi
7a197a62
AK
3175
3176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3177 ac_c_werror_flag=$ac_save_c_werror_flag
ad6254c5 3178fi
ec6a6fbe
AK
3179{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3180$as_echo "$ac_cv_prog_cc_g" >&6; }
795ca3e5 3181if test "$ac_test_CFLAGS" = set; then
ad6254c5 3182 CFLAGS=$ac_save_CFLAGS
795ca3e5
AK
3183elif test $ac_cv_prog_cc_g = yes; then
3184 if test "$GCC" = yes; then
3185 CFLAGS="-g -O2"
3186 else
3187 CFLAGS="-g"
3188 fi
3189else
3190 if test "$GCC" = yes; then
3191 CFLAGS="-O2"
3192 else
3193 CFLAGS=
3194 fi
3195fi
ec6a6fbe
AK
3196{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3197$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
7a197a62 3198if test "${ac_cv_prog_cc_c89+set}" = set; then
ec6a6fbe 3199 $as_echo_n "(cached) " >&6
ad6254c5 3200else
7a197a62 3201 ac_cv_prog_cc_c89=no
ad6254c5
AK
3202ac_save_CC=$CC
3203cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3204/* confdefs.h. */
3205_ACEOF
3206cat confdefs.h >>conftest.$ac_ext
3207cat >>conftest.$ac_ext <<_ACEOF
3208/* end confdefs.h. */
3209#include <stdarg.h>
3210#include <stdio.h>
3211#include <sys/types.h>
3212#include <sys/stat.h>
3213/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3214struct buf { int x; };
3215FILE * (*rcsopen) (struct buf *, struct stat *, int);
3216static char *e (p, i)
3217 char **p;
3218 int i;
3219{
3220 return p[i];
3221}
3222static char *f (char * (*g) (char **, int), char **p, ...)
3223{
3224 char *s;
3225 va_list v;
3226 va_start (v,p);
3227 s = g (p, va_arg (v,int));
3228 va_end (v);
3229 return s;
3230}
8a2fc586
AK
3231
3232/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3233 function prototypes and stuff, but not '\xHH' hex character constants.
3234 These don't provoke an error unfortunately, instead are silently treated
7a197a62 3235 as 'x'. The following induces an error, until -std is added to get
8a2fc586
AK
3236 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3237 array size at least. It's necessary to write '\x00'==0 to get something
7a197a62 3238 that's true only with -std. */
8a2fc586
AK
3239int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3240
7a197a62
AK
3241/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3242 inside strings and character constants. */
3243#define FOO(x) 'x'
3244int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3245
ad6254c5
AK
3246int test (int i, double x);
3247struct s1 {int (*f) (int a);};
3248struct s2 {int (*f) (double a);};
3249int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3250int argc;
3251char **argv;
3252int
3253main ()
3254{
3255return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3256 ;
3257 return 0;
3258}
3259_ACEOF
7a197a62
AK
3260for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3261 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
ad6254c5
AK
3262do
3263 CC="$ac_save_CC $ac_arg"
3264 rm -f conftest.$ac_objext
7a197a62
AK
3265if { (ac_try="$ac_compile"
3266case "(($ac_try" in
3267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3268 *) ac_try_echo=$ac_try;;
3269esac
ec6a6fbe
AK
3270eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3271$as_echo "$ac_try_echo") >&5
7a197a62 3272 (eval "$ac_compile") 2>conftest.er1
ad6254c5 3273 ac_status=$?
8a2fc586
AK
3274 grep -v '^ *+' conftest.er1 >conftest.err
3275 rm -f conftest.er1
3276 cat conftest.err >&5
ec6a6fbe 3277 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
3278 (exit $ac_status); } && {
3279 test -z "$ac_c_werror_flag" ||
3280 test ! -s conftest.err
3281 } && test -s conftest.$ac_objext; then
7a197a62 3282 ac_cv_prog_cc_c89=$ac_arg
ad6254c5 3283else
ec6a6fbe 3284 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
3285sed 's/^/| /' conftest.$ac_ext >&5
3286
7a197a62 3287
ad6254c5 3288fi
7a197a62
AK
3289
3290rm -f core conftest.err conftest.$ac_objext
3291 test "x$ac_cv_prog_cc_c89" != "xno" && break
ad6254c5 3292done
7a197a62 3293rm -f conftest.$ac_ext
ad6254c5
AK
3294CC=$ac_save_CC
3295
3296fi
7a197a62
AK
3297# AC_CACHE_VAL
3298case "x$ac_cv_prog_cc_c89" in
3299 x)
ec6a6fbe
AK
3300 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3301$as_echo "none needed" >&6; } ;;
7a197a62 3302 xno)
ec6a6fbe
AK
3303 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3304$as_echo "unsupported" >&6; } ;;
ad6254c5 3305 *)
7a197a62 3306 CC="$CC $ac_cv_prog_cc_c89"
ec6a6fbe
AK
3307 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3308$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
ad6254c5
AK
3309esac
3310
ad6254c5 3311
ad6254c5
AK
3312ac_ext=c
3313ac_cpp='$CPP $CPPFLAGS'
3314ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3315ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3316ac_compiler_gnu=$ac_cv_c_compiler_gnu
795ca3e5 3317
d0191583
JM
3318
3319
3320ac_ext=c
3321ac_cpp='$CPP $CPPFLAGS'
3322ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3323ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3324ac_compiler_gnu=$ac_cv_c_compiler_gnu
ec6a6fbe
AK
3325{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3326$as_echo_n "checking how to run the C preprocessor... " >&6; }
d0191583
JM
3327# On Suns, sometimes $CPP names a directory.
3328if test -n "$CPP" && test -d "$CPP"; then
3329 CPP=
3330fi
3331if test -z "$CPP"; then
3332 if test "${ac_cv_prog_CPP+set}" = set; then
ec6a6fbe 3333 $as_echo_n "(cached) " >&6
ad6254c5 3334else
d0191583
JM
3335 # Double quotes because CPP needs to be expanded
3336 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3337 do
3338 ac_preproc_ok=false
3339for ac_c_preproc_warn_flag in '' yes
ad6254c5 3340do
d0191583
JM
3341 # Use a header file that comes with gcc, so configuring glibc
3342 # with a fresh cross-compiler works.
3343 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3344 # <limits.h> exists even on freestanding compilers.
3345 # On the NeXT, cc -E runs the code through the compiler's parser,
3346 # not just through cpp. "Syntax error" is here to catch this case.
3347 cat >conftest.$ac_ext <<_ACEOF
3348/* confdefs.h. */
3349_ACEOF
3350cat confdefs.h >>conftest.$ac_ext
3351cat >>conftest.$ac_ext <<_ACEOF
3352/* end confdefs.h. */
3353#ifdef __STDC__
3354# include <limits.h>
3355#else
3356# include <assert.h>
3357#endif
3358 Syntax error
3359_ACEOF
3360if { (ac_try="$ac_cpp conftest.$ac_ext"
3361case "(($ac_try" in
3362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3363 *) ac_try_echo=$ac_try;;
ad6254c5 3364esac
ec6a6fbe
AK
3365eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3366$as_echo "$ac_try_echo") >&5
d0191583
JM
3367 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3368 ac_status=$?
3369 grep -v '^ *+' conftest.er1 >conftest.err
3370 rm -f conftest.er1
3371 cat conftest.err >&5
ec6a6fbe 3372 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3373 (exit $ac_status); } >/dev/null && {
3374 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3375 test ! -s conftest.err
3376 }; then
3377 :
3378else
ec6a6fbe 3379 $as_echo "$as_me: failed program was:" >&5
d0191583 3380sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 3381
d0191583
JM
3382 # Broken: fails on valid input.
3383continue
795ca3e5 3384fi
795ca3e5 3385
d0191583 3386rm -f conftest.err conftest.$ac_ext
795ca3e5 3387
d0191583
JM
3388 # OK, works on sane cases. Now check whether nonexistent headers
3389 # can be detected and how.
3390 cat >conftest.$ac_ext <<_ACEOF
3391/* confdefs.h. */
3392_ACEOF
3393cat confdefs.h >>conftest.$ac_ext
3394cat >>conftest.$ac_ext <<_ACEOF
3395/* end confdefs.h. */
3396#include <ac_nonexistent.h>
3397_ACEOF
3398if { (ac_try="$ac_cpp conftest.$ac_ext"
3399case "(($ac_try" in
3400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3401 *) ac_try_echo=$ac_try;;
3402esac
ec6a6fbe
AK
3403eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3404$as_echo "$ac_try_echo") >&5
d0191583
JM
3405 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3406 ac_status=$?
3407 grep -v '^ *+' conftest.er1 >conftest.err
3408 rm -f conftest.er1
3409 cat conftest.err >&5
ec6a6fbe 3410 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3411 (exit $ac_status); } >/dev/null && {
3412 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3413 test ! -s conftest.err
3414 }; then
3415 # Broken: success on invalid input.
3416continue
3417else
ec6a6fbe 3418 $as_echo "$as_me: failed program was:" >&5
d0191583 3419sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 3420
d0191583
JM
3421 # Passes both tests.
3422ac_preproc_ok=:
3423break
3424fi
795ca3e5 3425
d0191583
JM
3426rm -f conftest.err conftest.$ac_ext
3427
3428done
3429# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3430rm -f conftest.err conftest.$ac_ext
3431if $ac_preproc_ok; then
3432 break
795ca3e5
AK
3433fi
3434
d0191583
JM
3435 done
3436 ac_cv_prog_CPP=$CPP
3437
3438fi
3439 CPP=$ac_cv_prog_CPP
795ca3e5 3440else
d0191583
JM
3441 ac_cv_prog_CPP=$CPP
3442fi
ec6a6fbe
AK
3443{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
3444$as_echo "$CPP" >&6; }
d0191583
JM
3445ac_preproc_ok=false
3446for ac_c_preproc_warn_flag in '' yes
3447do
3448 # Use a header file that comes with gcc, so configuring glibc
3449 # with a fresh cross-compiler works.
3450 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3451 # <limits.h> exists even on freestanding compilers.
3452 # On the NeXT, cc -E runs the code through the compiler's parser,
3453 # not just through cpp. "Syntax error" is here to catch this case.
3454 cat >conftest.$ac_ext <<_ACEOF
3455/* confdefs.h. */
ad6254c5 3456_ACEOF
d0191583
JM
3457cat confdefs.h >>conftest.$ac_ext
3458cat >>conftest.$ac_ext <<_ACEOF
3459/* end confdefs.h. */
3460#ifdef __STDC__
3461# include <limits.h>
3462#else
3463# include <assert.h>
3464#endif
3465 Syntax error
3466_ACEOF
3467if { (ac_try="$ac_cpp conftest.$ac_ext"
3468case "(($ac_try" in
3469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3470 *) ac_try_echo=$ac_try;;
7a197a62 3471esac
ec6a6fbe
AK
3472eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3473$as_echo "$ac_try_echo") >&5
d0191583
JM
3474 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3475 ac_status=$?
3476 grep -v '^ *+' conftest.er1 >conftest.err
3477 rm -f conftest.er1
3478 cat conftest.err >&5
ec6a6fbe 3479 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3480 (exit $ac_status); } >/dev/null && {
3481 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3482 test ! -s conftest.err
3483 }; then
3484 :
795ca3e5 3485else
ec6a6fbe 3486 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
3487sed 's/^/| /' conftest.$ac_ext >&5
3488
3489 # Broken: fails on valid input.
3490continue
795ca3e5
AK
3491fi
3492
d0191583
JM
3493rm -f conftest.err conftest.$ac_ext
3494
3495 # OK, works on sane cases. Now check whether nonexistent headers
3496 # can be detected and how.
3497 cat >conftest.$ac_ext <<_ACEOF
3498/* confdefs.h. */
3499_ACEOF
3500cat confdefs.h >>conftest.$ac_ext
3501cat >>conftest.$ac_ext <<_ACEOF
3502/* end confdefs.h. */
3503#include <ac_nonexistent.h>
3504_ACEOF
3505if { (ac_try="$ac_cpp conftest.$ac_ext"
3506case "(($ac_try" in
3507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3508 *) ac_try_echo=$ac_try;;
3509esac
ec6a6fbe
AK
3510eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3511$as_echo "$ac_try_echo") >&5
d0191583
JM
3512 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3513 ac_status=$?
3514 grep -v '^ *+' conftest.er1 >conftest.err
3515 rm -f conftest.er1
3516 cat conftest.err >&5
ec6a6fbe 3517 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3518 (exit $ac_status); } >/dev/null && {
3519 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3520 test ! -s conftest.err
3521 }; then
3522 # Broken: success on invalid input.
3523continue
795ca3e5 3524else
ec6a6fbe 3525 $as_echo "$as_me: failed program was:" >&5
d0191583 3526sed 's/^/| /' conftest.$ac_ext >&5
ad6254c5 3527
d0191583
JM
3528 # Passes both tests.
3529ac_preproc_ok=:
3530break
795ca3e5 3531fi
d0191583
JM
3532
3533rm -f conftest.err conftest.$ac_ext
3534
3535done
3536# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3537rm -f conftest.err conftest.$ac_ext
3538if $ac_preproc_ok; then
3539 :
8106cdd5 3540else
ec6a6fbe
AK
3541 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3542$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3543{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
d0191583 3544See \`config.log' for more details." >&5
ec6a6fbe 3545$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
d0191583 3546See \`config.log' for more details." >&2;}
ec6a6fbe 3547 { (exit 1); exit 1; }; }; }
8106cdd5
AK
3548fi
3549
d0191583
JM
3550ac_ext=c
3551ac_cpp='$CPP $CPPFLAGS'
3552ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3553ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3554ac_compiler_gnu=$ac_cv_c_compiler_gnu
3555
7a197a62 3556
ec6a6fbe
AK
3557{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3558$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5556819a 3559if test "${ac_cv_path_GREP+set}" = set; then
ec6a6fbe 3560 $as_echo_n "(cached) " >&6
ad6254c5 3561else
ec6a6fbe 3562 if test -z "$GREP"; then
d0191583 3563 ac_path_GREP_found=false
ec6a6fbe
AK
3564 # Loop through the user's path and test for each of PROGNAME-LIST
3565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
d0191583 3566for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
ad6254c5
AK
3567do
3568 IFS=$as_save_IFS
3569 test -z "$as_dir" && as_dir=.
d0191583 3570 for ac_prog in grep ggrep; do
ec6a6fbe
AK
3571 for ac_exec_ext in '' $ac_executable_extensions; do
3572 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3573 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3574# Check for GNU ac_path_GREP and select it if it is found.
d0191583
JM
3575 # Check for GNU $ac_path_GREP
3576case `"$ac_path_GREP" --version 2>&1` in
3577*GNU*)
3578 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3579*)
3580 ac_count=0
ec6a6fbe 3581 $as_echo_n 0123456789 >"conftest.in"
d0191583
JM
3582 while :
3583 do
3584 cat "conftest.in" "conftest.in" >"conftest.tmp"
3585 mv "conftest.tmp" "conftest.in"
3586 cp "conftest.in" "conftest.nl"
ec6a6fbe 3587 $as_echo 'GREP' >> "conftest.nl"
d0191583
JM
3588 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3589 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3590 ac_count=`expr $ac_count + 1`
3591 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3592 # Best one so far, save it but keep looking for a better one
3593 ac_cv_path_GREP="$ac_path_GREP"
3594 ac_path_GREP_max=$ac_count
3595 fi
3596 # 10*(2^10) chars as input seems more than enough
3597 test $ac_count -gt 10 && break
3598 done
3599 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3600esac
3601
ec6a6fbe
AK
3602 $ac_path_GREP_found && break 3
3603 done
d0191583 3604 done
ad6254c5 3605done
7a197a62 3606IFS=$as_save_IFS
ec6a6fbe
AK
3607 if test -z "$ac_cv_path_GREP"; then
3608 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3609$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
d0191583 3610 { (exit 1); exit 1; }; }
ec6a6fbe 3611 fi
80992638 3612else
d0191583 3613 ac_cv_path_GREP=$GREP
8106cdd5 3614fi
8106cdd5 3615
80992638 3616fi
ec6a6fbe
AK
3617{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3618$as_echo "$ac_cv_path_GREP" >&6; }
d0191583 3619 GREP="$ac_cv_path_GREP"
795ca3e5 3620
d0191583 3621
ec6a6fbe
AK
3622{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
3623$as_echo_n "checking for egrep... " >&6; }
d0191583 3624if test "${ac_cv_path_EGREP+set}" = set; then
ec6a6fbe 3625 $as_echo_n "(cached) " >&6
8a2fc586 3626else
d0191583
JM
3627 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3628 then ac_cv_path_EGREP="$GREP -E"
3629 else
ec6a6fbe 3630 if test -z "$EGREP"; then
d0191583 3631 ac_path_EGREP_found=false
ec6a6fbe
AK
3632 # Loop through the user's path and test for each of PROGNAME-LIST
3633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
d0191583 3634for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8a2fc586
AK
3635do
3636 IFS=$as_save_IFS
3637 test -z "$as_dir" && as_dir=.
d0191583 3638 for ac_prog in egrep; do
ec6a6fbe
AK
3639 for ac_exec_ext in '' $ac_executable_extensions; do
3640 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3641 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3642# Check for GNU ac_path_EGREP and select it if it is found.
d0191583
JM
3643 # Check for GNU $ac_path_EGREP
3644case `"$ac_path_EGREP" --version 2>&1` in
3645*GNU*)
3646 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3647*)
3648 ac_count=0
ec6a6fbe 3649 $as_echo_n 0123456789 >"conftest.in"
d0191583
JM
3650 while :
3651 do
3652 cat "conftest.in" "conftest.in" >"conftest.tmp"
3653 mv "conftest.tmp" "conftest.in"
3654 cp "conftest.in" "conftest.nl"
ec6a6fbe 3655 $as_echo 'EGREP' >> "conftest.nl"
d0191583
JM
3656 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3657 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3658 ac_count=`expr $ac_count + 1`
3659 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3660 # Best one so far, save it but keep looking for a better one
3661 ac_cv_path_EGREP="$ac_path_EGREP"
3662 ac_path_EGREP_max=$ac_count
3663 fi
3664 # 10*(2^10) chars as input seems more than enough
3665 test $ac_count -gt 10 && break
3666 done
3667 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8a2fc586 3668esac
8a2fc586 3669
ec6a6fbe
AK
3670 $ac_path_EGREP_found && break 3
3671 done
d0191583 3672 done
8a2fc586 3673done
7a197a62 3674IFS=$as_save_IFS
ec6a6fbe
AK
3675 if test -z "$ac_cv_path_EGREP"; then
3676 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3677$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
d0191583 3678 { (exit 1); exit 1; }; }
ec6a6fbe 3679 fi
d0191583
JM
3680else
3681 ac_cv_path_EGREP=$EGREP
3682fi
ad6254c5 3683
d0191583
JM
3684 fi
3685fi
ec6a6fbe
AK
3686{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3687$as_echo "$ac_cv_path_EGREP" >&6; }
d0191583 3688 EGREP="$ac_cv_path_EGREP"
ad6254c5
AK
3689
3690
d0191583 3691if test $ac_cv_c_compiler_gnu = yes; then
ec6a6fbe
AK
3692 { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3693$as_echo_n "checking whether $CC needs -traditional... " >&6; }
d0191583 3694if test "${ac_cv_prog_gcc_traditional+set}" = set; then
ec6a6fbe 3695 $as_echo_n "(cached) " >&6
8106cdd5 3696else
d0191583 3697 ac_pattern="Autoconf.*'x'"
ad6254c5 3698 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3699/* confdefs.h. */
3700_ACEOF
3701cat confdefs.h >>conftest.$ac_ext
3702cat >>conftest.$ac_ext <<_ACEOF
3703/* end confdefs.h. */
d0191583
JM
3704#include <sgtty.h>
3705Autoconf TIOCGETP
ad6254c5 3706_ACEOF
d0191583
JM
3707if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3708 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3709 ac_cv_prog_gcc_traditional=yes
8106cdd5 3710else
d0191583 3711 ac_cv_prog_gcc_traditional=no
80992638 3712fi
d0191583 3713rm -f conftest*
ad6254c5 3714
8106cdd5 3715
d0191583
JM
3716 if test $ac_cv_prog_gcc_traditional = no; then
3717 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3718/* confdefs.h. */
3719_ACEOF
3720cat confdefs.h >>conftest.$ac_ext
3721cat >>conftest.$ac_ext <<_ACEOF
3722/* end confdefs.h. */
d0191583
JM
3723#include <termio.h>
3724Autoconf TCGETA
ad6254c5 3725_ACEOF
d0191583
JM
3726if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3727 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3728 ac_cv_prog_gcc_traditional=yes
7a197a62 3729fi
d0191583 3730rm -f conftest*
795ca3e5 3731
d0191583 3732 fi
795ca3e5 3733fi
ec6a6fbe
AK
3734{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3735$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
d0191583
JM
3736 if test $ac_cv_prog_gcc_traditional = yes; then
3737 CC="$CC -traditional"
3738 fi
795ca3e5
AK
3739fi
3740
d0191583
JM
3741# Find a good install program. We prefer a C program (faster),
3742# so one script is as good as another. But avoid the broken or
3743# incompatible versions:
3744# SysV /etc/install, /usr/sbin/install
3745# SunOS /usr/etc/install
3746# IRIX /sbin/install
3747# AIX /bin/install
3748# AmigaOS /C/install, which installs bootblocks on floppy discs
3749# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3750# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3751# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3752# OS/2's system install, which has a completely different semantic
3753# ./install, which can be erroneously created by make from ./install.sh.
ec6a6fbe
AK
3754# Reject install programs that cannot install multiple files.
3755{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3756$as_echo_n "checking for a BSD-compatible install... " >&6; }
d0191583
JM
3757if test -z "$INSTALL"; then
3758if test "${ac_cv_path_install+set}" = set; then
ec6a6fbe 3759 $as_echo_n "(cached) " >&6
ad6254c5 3760else
d0191583
JM
3761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3762for as_dir in $PATH
3763do
3764 IFS=$as_save_IFS
3765 test -z "$as_dir" && as_dir=.
3766 # Account for people who put trailing slashes in PATH elements.
3767case $as_dir/ in
3768 ./ | .// | /cC/* | \
3769 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3770 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3771 /usr/ucb/* ) ;;
3772 *)
3773 # OSF1 and SCO ODT 3.0 have their own names for install.
3774 # Don't use installbsd from OSF since it installs stuff as root
3775 # by default.
3776 for ac_prog in ginstall scoinst install; do
3777 for ac_exec_ext in '' $ac_executable_extensions; do
3778 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3779 if test $ac_prog = install &&
3780 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3781 # AIX install. It has an incompatible calling convention.
3782 :
3783 elif test $ac_prog = install &&
3784 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3785 # program-specific install script used by HP pwplus--don't use.
3786 :
3787 else
ec6a6fbe
AK
3788 rm -rf conftest.one conftest.two conftest.dir
3789 echo one > conftest.one
3790 echo two > conftest.two
3791 mkdir conftest.dir
3792 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3793 test -s conftest.one && test -s conftest.two &&
3794 test -s conftest.dir/conftest.one &&
3795 test -s conftest.dir/conftest.two
3796 then
3797 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3798 break 3
3799 fi
d0191583
JM
3800 fi
3801 fi
3802 done
3803 done
3804 ;;
3805esac
ec6a6fbe 3806
d0191583
JM
3807done
3808IFS=$as_save_IFS
80992638 3809
ec6a6fbe 3810rm -rf conftest.one conftest.two conftest.dir
d0191583
JM
3811
3812fi
3813 if test "${ac_cv_path_install+set}" = set; then
3814 INSTALL=$ac_cv_path_install
7a197a62 3815 else
d0191583
JM
3816 # As a last resort, use the slow shell script. Don't cache a
3817 # value for INSTALL within a source directory, because that will
3818 # break other packages using the cache if that directory is
3819 # removed, or if the value is a relative name.
3820 INSTALL=$ac_install_sh
7a197a62 3821 fi
d0191583 3822fi
ec6a6fbe
AK
3823{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3824$as_echo "$INSTALL" >&6; }
ad6254c5 3825
d0191583
JM
3826# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3827# It thinks the first close brace ends the variable substitution.
3828test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
ad6254c5 3829
d0191583 3830test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
80992638 3831
d0191583
JM
3832test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3833
ec6a6fbe
AK
3834{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
3835$as_echo_n "checking whether ln -s works... " >&6; }
d0191583
JM
3836LN_S=$as_ln_s
3837if test "$LN_S" = "ln -s"; then
ec6a6fbe
AK
3838 { $as_echo "$as_me:$LINENO: result: yes" >&5
3839$as_echo "yes" >&6; }
d0191583 3840else
ec6a6fbe
AK
3841 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3842$as_echo "no, using $LN_S" >&6; }
795ca3e5 3843fi
d0191583 3844
ec6a6fbe
AK
3845{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3846$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3847set x ${MAKE-make}
3848ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
d0191583 3849if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 3850 $as_echo_n "(cached) " >&6
7a197a62 3851else
d0191583
JM
3852 cat >conftest.make <<\_ACEOF
3853SHELL = /bin/sh
3854all:
3855 @echo '@@@%%%=$(MAKE)=@@@%%%'
3856_ACEOF
3857# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3858case `${MAKE-make} -f conftest.make 2>/dev/null` in
3859 *@@@%%%=?*=@@@%%%*)
3860 eval ac_cv_prog_make_${ac_make}_set=yes;;
3861 *)
3862 eval ac_cv_prog_make_${ac_make}_set=no;;
3863esac
3864rm -f conftest.make
ad6254c5 3865fi
d0191583 3866if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
ec6a6fbe
AK
3867 { $as_echo "$as_me:$LINENO: result: yes" >&5
3868$as_echo "yes" >&6; }
d0191583
JM
3869 SET_MAKE=
3870else
ec6a6fbe
AK
3871 { $as_echo "$as_me:$LINENO: result: no" >&5
3872$as_echo "no" >&6; }
d0191583 3873 SET_MAKE="MAKE=${MAKE-make}"
795ca3e5 3874fi
8106cdd5 3875
ec6a6fbe
AK
3876{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
3877$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
5556819a
AK
3878if test -z "$MKDIR_P"; then
3879 if test "${ac_cv_path_mkdir+set}" = set; then
ec6a6fbe 3880 $as_echo_n "(cached) " >&6
5556819a
AK
3881else
3882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3883for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3884do
3885 IFS=$as_save_IFS
3886 test -z "$as_dir" && as_dir=.
3887 for ac_prog in mkdir gmkdir; do
3888 for ac_exec_ext in '' $ac_executable_extensions; do
3889 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3890 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3891 'mkdir (GNU coreutils) '* | \
3892 'mkdir (coreutils) '* | \
3893 'mkdir (fileutils) '4.1*)
3894 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3895 break 3;;
3896 esac
3897 done
3898 done
3899done
3900IFS=$as_save_IFS
3901
3902fi
3903
3904 if test "${ac_cv_path_mkdir+set}" = set; then
3905 MKDIR_P="$ac_cv_path_mkdir -p"
3906 else
3907 # As a last resort, use the slow shell script. Don't cache a
3908 # value for MKDIR_P within a source directory, because that will
3909 # break other packages using the cache if that directory is
3910 # removed, or if the value is a relative name.
3911 test -d ./--version && rmdir ./--version
3912 MKDIR_P="$ac_install_sh -d"
3913 fi
3914fi
ec6a6fbe
AK
3915{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
3916$as_echo "$MKDIR_P" >&6; }
5556819a 3917
d0191583
JM
3918if test -n "$ac_tool_prefix"; then
3919 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3920set dummy ${ac_tool_prefix}ranlib; ac_word=$2
ec6a6fbe
AK
3921{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3922$as_echo_n "checking for $ac_word... " >&6; }
d0191583 3923if test "${ac_cv_prog_RANLIB+set}" = set; then
ec6a6fbe 3924 $as_echo_n "(cached) " >&6
d0191583
JM
3925else
3926 if test -n "$RANLIB"; then
3927 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3928else
3929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3930for as_dir in $PATH
3931do
3932 IFS=$as_save_IFS
3933 test -z "$as_dir" && as_dir=.
3934 for ac_exec_ext in '' $ac_executable_extensions; do
3935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3936 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
ec6a6fbe 3937 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
3938 break 2
3939 fi
3940done
3941done
3942IFS=$as_save_IFS
8106cdd5 3943
795ca3e5 3944fi
d0191583
JM
3945fi
3946RANLIB=$ac_cv_prog_RANLIB
3947if test -n "$RANLIB"; then
ec6a6fbe
AK
3948 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
3949$as_echo "$RANLIB" >&6; }
d0191583 3950else
ec6a6fbe
AK
3951 { $as_echo "$as_me:$LINENO: result: no" >&5
3952$as_echo "no" >&6; }
d0191583
JM
3953fi
3954
8106cdd5 3955
ad6254c5 3956fi
d0191583
JM
3957if test -z "$ac_cv_prog_RANLIB"; then
3958 ac_ct_RANLIB=$RANLIB
3959 # Extract the first word of "ranlib", so it can be a program name with args.
3960set dummy ranlib; ac_word=$2
ec6a6fbe
AK
3961{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3962$as_echo_n "checking for $ac_word... " >&6; }
d0191583 3963if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
ec6a6fbe 3964 $as_echo_n "(cached) " >&6
ad6254c5 3965else
d0191583
JM
3966 if test -n "$ac_ct_RANLIB"; then
3967 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3968else
3969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3970for as_dir in $PATH
8106cdd5 3971do
d0191583
JM
3972 IFS=$as_save_IFS
3973 test -z "$as_dir" && as_dir=.
3974 for ac_exec_ext in '' $ac_executable_extensions; do
3975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3976 ac_cv_prog_ac_ct_RANLIB="ranlib"
ec6a6fbe 3977 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
3978 break 2
3979 fi
3980done
3981done
3982IFS=$as_save_IFS
3983
3984fi
3985fi
3986ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3987if test -n "$ac_ct_RANLIB"; then
ec6a6fbe
AK
3988 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3989$as_echo "$ac_ct_RANLIB" >&6; }
ad6254c5 3990else
ec6a6fbe
AK
3991 { $as_echo "$as_me:$LINENO: result: no" >&5
3992$as_echo "no" >&6; }
d0191583 3993fi
ad6254c5 3994
d0191583
JM
3995 if test "x$ac_ct_RANLIB" = x; then
3996 RANLIB=":"
3997 else
3998 case $cross_compiling:$ac_tool_warned in
3999yes:)
ec6a6fbe
AK
4000{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4001$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
d0191583
JM
4002ac_tool_warned=yes ;;
4003esac
4004 RANLIB=$ac_ct_RANLIB
4005 fi
4006else
4007 RANLIB="$ac_cv_prog_RANLIB"
ad6254c5 4008fi
7a197a62 4009
d0191583
JM
4010# Extract the first word of "cflow", so it can be a program name with args.
4011set dummy cflow; ac_word=$2
ec6a6fbe
AK
4012{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4013$as_echo_n "checking for $ac_word... " >&6; }
d0191583 4014if test "${ac_cv_path_CFLOW_CMD+set}" = set; then
ec6a6fbe 4015 $as_echo_n "(cached) " >&6
d0191583
JM
4016else
4017 case $CFLOW_CMD in
4018 [\\/]* | ?:[\\/]*)
4019 ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path.
4020 ;;
4021 *)
4022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4023for as_dir in $PATH
4024do
4025 IFS=$as_save_IFS
4026 test -z "$as_dir" && as_dir=.
4027 for ac_exec_ext in '' $ac_executable_extensions; do
4028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4029 ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 4030 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
4031 break 2
4032 fi
4033done
4034done
4035IFS=$as_save_IFS
ad6254c5 4036
d0191583 4037 ;;
7a197a62 4038esac
d0191583
JM
4039fi
4040CFLOW_CMD=$ac_cv_path_CFLOW_CMD
4041if test -n "$CFLOW_CMD"; then
ec6a6fbe
AK
4042 { $as_echo "$as_me:$LINENO: result: $CFLOW_CMD" >&5
4043$as_echo "$CFLOW_CMD" >&6; }
80992638 4044else
ec6a6fbe
AK
4045 { $as_echo "$as_me:$LINENO: result: no" >&5
4046$as_echo "no" >&6; }
795ca3e5 4047fi
7a197a62 4048
ad6254c5 4049
d0191583
JM
4050# Extract the first word of "cscope", so it can be a program name with args.
4051set dummy cscope; ac_word=$2
ec6a6fbe
AK
4052{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4053$as_echo_n "checking for $ac_word... " >&6; }
d0191583 4054if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then
ec6a6fbe 4055 $as_echo_n "(cached) " >&6
d0191583
JM
4056else
4057 case $CSCOPE_CMD in
4058 [\\/]* | ?:[\\/]*)
4059 ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path.
4060 ;;
4061 *)
4062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4063for as_dir in $PATH
4064do
4065 IFS=$as_save_IFS
4066 test -z "$as_dir" && as_dir=.
4067 for ac_exec_ext in '' $ac_executable_extensions; do
4068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4069 ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 4070 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
4071 break 2
4072 fi
795ca3e5 4073done
d0191583
JM
4074done
4075IFS=$as_save_IFS
795ca3e5 4076
d0191583
JM
4077 ;;
4078esac
ad6254c5 4079fi
d0191583
JM
4080CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD
4081if test -n "$CSCOPE_CMD"; then
ec6a6fbe
AK
4082 { $as_echo "$as_me:$LINENO: result: $CSCOPE_CMD" >&5
4083$as_echo "$CSCOPE_CMD" >&6; }
795ca3e5 4084else
ec6a6fbe
AK
4085 { $as_echo "$as_me:$LINENO: result: no" >&5
4086$as_echo "no" >&6; }
795ca3e5 4087fi
ad6254c5 4088
7a197a62 4089
ad6254c5 4090
d0191583
JM
4091################################################################################
4092
4093
4094
4095
4096
4097ac_header_dirent=no
4098for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
ec6a6fbe
AK
4099 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4100{ $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4101$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
d0191583 4102if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 4103 $as_echo_n "(cached) " >&6
d0191583 4104else
ad6254c5 4105 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4106/* confdefs.h. */
4107_ACEOF
4108cat confdefs.h >>conftest.$ac_ext
4109cat >>conftest.$ac_ext <<_ACEOF
4110/* end confdefs.h. */
d0191583
JM
4111#include <sys/types.h>
4112#include <$ac_hdr>
4113
4114int
4115main ()
4116{
4117if ((DIR *) 0)
4118return 0;
4119 ;
4120 return 0;
4121}
ad6254c5 4122_ACEOF
d0191583
JM
4123rm -f conftest.$ac_objext
4124if { (ac_try="$ac_compile"
7a197a62
AK
4125case "(($ac_try" in
4126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4127 *) ac_try_echo=$ac_try;;
4128esac
ec6a6fbe
AK
4129eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4130$as_echo "$ac_try_echo") >&5
d0191583 4131 (eval "$ac_compile") 2>conftest.er1
ad6254c5
AK
4132 ac_status=$?
4133 grep -v '^ *+' conftest.er1 >conftest.err
4134 rm -f conftest.er1
4135 cat conftest.err >&5
ec6a6fbe 4136 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4137 (exit $ac_status); } && {
4138 test -z "$ac_c_werror_flag" ||
25fbec5b 4139 test ! -s conftest.err
d0191583
JM
4140 } && test -s conftest.$ac_objext; then
4141 eval "$as_ac_Header=yes"
ad6254c5 4142else
ec6a6fbe 4143 $as_echo "$as_me: failed program was:" >&5
ad6254c5 4144sed 's/^/| /' conftest.$ac_ext >&5
8106cdd5 4145
d0191583 4146 eval "$as_ac_Header=no"
795ca3e5 4147fi
7a197a62 4148
d0191583 4149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
795ca3e5 4150fi
ec6a6fbe
AK
4151ac_res=`eval 'as_val=${'$as_ac_Header'}
4152 $as_echo "$as_val"'`
4153 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4154$as_echo "$ac_res" >&6; }
4155as_val=`eval 'as_val=${'$as_ac_Header'}
4156 $as_echo "$as_val"'`
4157 if test "x$as_val" = x""yes; then
d0191583 4158 cat >>confdefs.h <<_ACEOF
ec6a6fbe 4159#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
d0191583 4160_ACEOF
795ca3e5 4161
d0191583
JM
4162ac_header_dirent=$ac_hdr; break
4163fi
ad6254c5 4164
d0191583
JM
4165done
4166# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4167if test $ac_header_dirent = dirent.h; then
ec6a6fbe
AK
4168 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
4169$as_echo_n "checking for library containing opendir... " >&6; }
d0191583 4170if test "${ac_cv_search_opendir+set}" = set; then
ec6a6fbe 4171 $as_echo_n "(cached) " >&6
ad6254c5 4172else
d0191583
JM
4173 ac_func_search_save_LIBS=$LIBS
4174cat >conftest.$ac_ext <<_ACEOF
4175/* confdefs.h. */
4176_ACEOF
4177cat confdefs.h >>conftest.$ac_ext
4178cat >>conftest.$ac_ext <<_ACEOF
4179/* end confdefs.h. */
ad6254c5 4180
d0191583
JM
4181/* Override any GCC internal prototype to avoid an error.
4182 Use char because int might match the return type of a GCC
4183 builtin and then its argument prototype would still apply. */
4184#ifdef __cplusplus
4185extern "C"
4186#endif
4187char opendir ();
4188int
4189main ()
4190{
4191return opendir ();
4192 ;
4193 return 0;
4194}
4195_ACEOF
4196for ac_lib in '' dir; do
4197 if test -z "$ac_lib"; then
4198 ac_res="none required"
4199 else
4200 ac_res=-l$ac_lib
4201 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4202 fi
4203 rm -f conftest.$ac_objext conftest$ac_exeext
4204if { (ac_try="$ac_link"
4205case "(($ac_try" in
4206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4207 *) ac_try_echo=$ac_try;;
4208esac
ec6a6fbe
AK
4209eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4210$as_echo "$ac_try_echo") >&5
d0191583
JM
4211 (eval "$ac_link") 2>conftest.er1
4212 ac_status=$?
4213 grep -v '^ *+' conftest.er1 >conftest.err
4214 rm -f conftest.er1
4215 cat conftest.err >&5
ec6a6fbe 4216 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4217 (exit $ac_status); } && {
4218 test -z "$ac_c_werror_flag" ||
4219 test ! -s conftest.err
ec6a6fbe
AK
4220 } && test -s conftest$ac_exeext && {
4221 test "$cross_compiling" = yes ||
4222 $as_test_x conftest$ac_exeext
4223 }; then
d0191583
JM
4224 ac_cv_search_opendir=$ac_res
4225else
ec6a6fbe 4226 $as_echo "$as_me: failed program was:" >&5
d0191583 4227sed 's/^/| /' conftest.$ac_ext >&5
ad6254c5 4228
ad6254c5 4229
795ca3e5 4230fi
ad6254c5 4231
ec6a6fbe 4232rm -rf conftest.dSYM
d0191583
JM
4233rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4234 conftest$ac_exeext
4235 if test "${ac_cv_search_opendir+set}" = set; then
4236 break
7a197a62 4237fi
d0191583
JM
4238done
4239if test "${ac_cv_search_opendir+set}" = set; then
4240 :
7a197a62 4241else
d0191583 4242 ac_cv_search_opendir=no
7a197a62 4243fi
d0191583
JM
4244rm conftest.$ac_ext
4245LIBS=$ac_func_search_save_LIBS
7a197a62 4246fi
ec6a6fbe
AK
4247{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4248$as_echo "$ac_cv_search_opendir" >&6; }
d0191583
JM
4249ac_res=$ac_cv_search_opendir
4250if test "$ac_res" != no; then
4251 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7a197a62 4252
d0191583 4253fi
7a197a62 4254
7a197a62 4255else
ec6a6fbe
AK
4256 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
4257$as_echo_n "checking for library containing opendir... " >&6; }
d0191583 4258if test "${ac_cv_search_opendir+set}" = set; then
ec6a6fbe 4259 $as_echo_n "(cached) " >&6
7a197a62 4260else
d0191583
JM
4261 ac_func_search_save_LIBS=$LIBS
4262cat >conftest.$ac_ext <<_ACEOF
4263/* confdefs.h. */
4264_ACEOF
4265cat confdefs.h >>conftest.$ac_ext
4266cat >>conftest.$ac_ext <<_ACEOF
4267/* end confdefs.h. */
7a197a62 4268
d0191583
JM
4269/* Override any GCC internal prototype to avoid an error.
4270 Use char because int might match the return type of a GCC
4271 builtin and then its argument prototype would still apply. */
4272#ifdef __cplusplus
4273extern "C"
4274#endif
4275char opendir ();
4276int
4277main ()
4278{
4279return opendir ();
4280 ;
4281 return 0;
4282}
4283_ACEOF
4284for ac_lib in '' x; do
4285 if test -z "$ac_lib"; then
4286 ac_res="none required"
4287 else
4288 ac_res=-l$ac_lib
4289 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4290 fi
4291 rm -f conftest.$ac_objext conftest$ac_exeext
4292if { (ac_try="$ac_link"
4293case "(($ac_try" in
4294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4295 *) ac_try_echo=$ac_try;;
4296esac
ec6a6fbe
AK
4297eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4298$as_echo "$ac_try_echo") >&5
d0191583
JM
4299 (eval "$ac_link") 2>conftest.er1
4300 ac_status=$?
4301 grep -v '^ *+' conftest.er1 >conftest.err
4302 rm -f conftest.er1
4303 cat conftest.err >&5
ec6a6fbe 4304 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4305 (exit $ac_status); } && {
4306 test -z "$ac_c_werror_flag" ||
4307 test ! -s conftest.err
ec6a6fbe
AK
4308 } && test -s conftest$ac_exeext && {
4309 test "$cross_compiling" = yes ||
4310 $as_test_x conftest$ac_exeext
4311 }; then
d0191583
JM
4312 ac_cv_search_opendir=$ac_res
4313else
ec6a6fbe 4314 $as_echo "$as_me: failed program was:" >&5
d0191583 4315sed 's/^/| /' conftest.$ac_ext >&5
7a197a62
AK
4316
4317
4318fi
4319
ec6a6fbe 4320rm -rf conftest.dSYM
d0191583
JM
4321rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4322 conftest$ac_exeext
4323 if test "${ac_cv_search_opendir+set}" = set; then
4324 break
7a197a62 4325fi
d0191583
JM
4326done
4327if test "${ac_cv_search_opendir+set}" = set; then
4328 :
7a197a62 4329else
d0191583 4330 ac_cv_search_opendir=no
7a197a62 4331fi
d0191583
JM
4332rm conftest.$ac_ext
4333LIBS=$ac_func_search_save_LIBS
4334fi
ec6a6fbe
AK
4335{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4336$as_echo "$ac_cv_search_opendir" >&6; }
d0191583
JM
4337ac_res=$ac_cv_search_opendir
4338if test "$ac_res" != no; then
4339 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7a197a62 4340
7a197a62 4341fi
7a197a62 4342
d0191583 4343fi
7a197a62 4344
ec6a6fbe
AK
4345{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4346$as_echo_n "checking for ANSI C header files... " >&6; }
7a197a62 4347if test "${ac_cv_header_stdc+set}" = set; then
ec6a6fbe 4348 $as_echo_n "(cached) " >&6
7a197a62
AK
4349else
4350 cat >conftest.$ac_ext <<_ACEOF
4351/* confdefs.h. */
4352_ACEOF
4353cat confdefs.h >>conftest.$ac_ext
4354cat >>conftest.$ac_ext <<_ACEOF
4355/* end confdefs.h. */
4356#include <stdlib.h>
4357#include <stdarg.h>
4358#include <string.h>
4359#include <float.h>
4360
4361int
4362main ()
4363{
4364
4365 ;
4366 return 0;
4367}
4368_ACEOF
4369rm -f conftest.$ac_objext
4370if { (ac_try="$ac_compile"
4371case "(($ac_try" in
4372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4373 *) ac_try_echo=$ac_try;;
4374esac
ec6a6fbe
AK
4375eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4376$as_echo "$ac_try_echo") >&5
7a197a62
AK
4377 (eval "$ac_compile") 2>conftest.er1
4378 ac_status=$?
4379 grep -v '^ *+' conftest.er1 >conftest.err
4380 rm -f conftest.er1
4381 cat conftest.err >&5
ec6a6fbe 4382 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4383 (exit $ac_status); } && {
4384 test -z "$ac_c_werror_flag" ||
4385 test ! -s conftest.err
4386 } && test -s conftest.$ac_objext; then
7a197a62
AK
4387 ac_cv_header_stdc=yes
4388else
ec6a6fbe 4389 $as_echo "$as_me: failed program was:" >&5
7a197a62
AK
4390sed 's/^/| /' conftest.$ac_ext >&5
4391
4392 ac_cv_header_stdc=no
4393fi
4394
4395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4396
4397if test $ac_cv_header_stdc = yes; then
4398 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
ad6254c5 4399 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4400/* confdefs.h. */
4401_ACEOF
4402cat confdefs.h >>conftest.$ac_ext
4403cat >>conftest.$ac_ext <<_ACEOF
4404/* end confdefs.h. */
4405#include <string.h>
8106cdd5 4406
ad6254c5
AK
4407_ACEOF
4408if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4409 $EGREP "memchr" >/dev/null 2>&1; then
4410 :
4411else
4412 ac_cv_header_stdc=no
80992638 4413fi
ad6254c5 4414rm -f conftest*
795ca3e5
AK
4415
4416fi
4417
ad6254c5
AK
4418if test $ac_cv_header_stdc = yes; then
4419 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4420 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4421/* confdefs.h. */
4422_ACEOF
4423cat confdefs.h >>conftest.$ac_ext
4424cat >>conftest.$ac_ext <<_ACEOF
4425/* end confdefs.h. */
80992638 4426#include <stdlib.h>
ad6254c5
AK
4427
4428_ACEOF
80992638 4429if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ad6254c5
AK
4430 $EGREP "free" >/dev/null 2>&1; then
4431 :
795ca3e5 4432else
ad6254c5 4433 ac_cv_header_stdc=no
795ca3e5 4434fi
80992638 4435rm -f conftest*
8106cdd5 4436
795ca3e5
AK
4437fi
4438
ad6254c5
AK
4439if test $ac_cv_header_stdc = yes; then
4440 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4441 if test "$cross_compiling" = yes; then
4442 :
795ca3e5 4443else
ad6254c5 4444 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4445/* confdefs.h. */
4446_ACEOF
4447cat confdefs.h >>conftest.$ac_ext
4448cat >>conftest.$ac_ext <<_ACEOF
4449/* end confdefs.h. */
4450#include <ctype.h>
7a197a62 4451#include <stdlib.h>
ad6254c5
AK
4452#if ((' ' & 0x0FF) == 0x020)
4453# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4454# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4455#else
4456# define ISLOWER(c) \
8a2fc586
AK
4457 (('a' <= (c) && (c) <= 'i') \
4458 || ('j' <= (c) && (c) <= 'r') \
4459 || ('s' <= (c) && (c) <= 'z'))
ad6254c5 4460# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
80992638 4461#endif
ad6254c5
AK
4462
4463#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4464int
4465main ()
4466{
4467 int i;
4468 for (i = 0; i < 256; i++)
4469 if (XOR (islower (i), ISLOWER (i))
8a2fc586 4470 || toupper (i) != TOUPPER (i))
7a197a62
AK
4471 return 2;
4472 return 0;
ad6254c5
AK
4473}
4474_ACEOF
4475rm -f conftest$ac_exeext
7a197a62
AK
4476if { (ac_try="$ac_link"
4477case "(($ac_try" in
4478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4479 *) ac_try_echo=$ac_try;;
4480esac
ec6a6fbe
AK
4481eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4482$as_echo "$ac_try_echo") >&5
7a197a62 4483 (eval "$ac_link") 2>&5
ad6254c5 4484 ac_status=$?
ec6a6fbe 4485 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 4486 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
4487 { (case "(($ac_try" in
4488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4489 *) ac_try_echo=$ac_try;;
4490esac
ec6a6fbe
AK
4491eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4492$as_echo "$ac_try_echo") >&5
7a197a62 4493 (eval "$ac_try") 2>&5
ad6254c5 4494 ac_status=$?
ec6a6fbe 4495 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
4496 (exit $ac_status); }; }; then
4497 :
795ca3e5 4498else
ec6a6fbe
AK
4499 $as_echo "$as_me: program exited with status $ac_status" >&5
4500$as_echo "$as_me: failed program was:" >&5
ad6254c5 4501sed 's/^/| /' conftest.$ac_ext >&5
8106cdd5 4502
ad6254c5
AK
4503( exit $ac_status )
4504ac_cv_header_stdc=no
80992638 4505fi
ec6a6fbe 4506rm -rf conftest.dSYM
7a197a62 4507rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 4508fi
7a197a62
AK
4509
4510
ad6254c5
AK
4511fi
4512fi
ec6a6fbe
AK
4513{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4514$as_echo "$ac_cv_header_stdc" >&6; }
ad6254c5
AK
4515if test $ac_cv_header_stdc = yes; then
4516
4517cat >>confdefs.h <<\_ACEOF
4518#define STDC_HEADERS 1
4519_ACEOF
795ca3e5
AK
4520
4521fi
4522
ec6a6fbe
AK
4523{ $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
4524$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
ad6254c5 4525if test "${ac_cv_header_sys_wait_h+set}" = set; then
ec6a6fbe 4526 $as_echo_n "(cached) " >&6
8106cdd5 4527else
ad6254c5 4528 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4529/* confdefs.h. */
4530_ACEOF
4531cat confdefs.h >>conftest.$ac_ext
4532cat >>conftest.$ac_ext <<_ACEOF
4533/* end confdefs.h. */
80992638 4534#include <sys/types.h>
ad6254c5
AK
4535#include <sys/wait.h>
4536#ifndef WEXITSTATUS
7a197a62 4537# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
ad6254c5
AK
4538#endif
4539#ifndef WIFEXITED
4540# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4541#endif
4542
4543int
4544main ()
4545{
4546 int s;
4547 wait (&s);
4548 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4549 ;
4550 return 0;
4551}
4552_ACEOF
4553rm -f conftest.$ac_objext
7a197a62
AK
4554if { (ac_try="$ac_compile"
4555case "(($ac_try" in
4556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4557 *) ac_try_echo=$ac_try;;
4558esac
ec6a6fbe
AK
4559eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4560$as_echo "$ac_try_echo") >&5
7a197a62 4561 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4562 ac_status=$?
8a2fc586
AK
4563 grep -v '^ *+' conftest.er1 >conftest.err
4564 rm -f conftest.er1
4565 cat conftest.err >&5
ec6a6fbe 4566 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4567 (exit $ac_status); } && {
4568 test -z "$ac_c_werror_flag" ||
4569 test ! -s conftest.err
4570 } && test -s conftest.$ac_objext; then
ad6254c5
AK
4571 ac_cv_header_sys_wait_h=yes
4572else
ec6a6fbe 4573 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
4574sed 's/^/| /' conftest.$ac_ext >&5
4575
7a197a62 4576 ac_cv_header_sys_wait_h=no
8106cdd5 4577fi
7a197a62
AK
4578
4579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
795ca3e5 4580fi
ec6a6fbe
AK
4581{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
4582$as_echo "$ac_cv_header_sys_wait_h" >&6; }
ad6254c5 4583if test $ac_cv_header_sys_wait_h = yes; then
8106cdd5 4584
ad6254c5
AK
4585cat >>confdefs.h <<\_ACEOF
4586#define HAVE_SYS_WAIT_H 1
4587_ACEOF
795ca3e5
AK
4588
4589fi
4590
ec6a6fbe
AK
4591{ $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4592$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
ad6254c5 4593if test "${ac_cv_header_time+set}" = set; then
ec6a6fbe 4594 $as_echo_n "(cached) " >&6
795ca3e5 4595else
ad6254c5 4596 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4597/* confdefs.h. */
4598_ACEOF
4599cat confdefs.h >>conftest.$ac_ext
4600cat >>conftest.$ac_ext <<_ACEOF
4601/* end confdefs.h. */
795ca3e5
AK
4602#include <sys/types.h>
4603#include <sys/time.h>
4604#include <time.h>
ad6254c5
AK
4605
4606int
4607main ()
4608{
4609if ((struct tm *) 0)
4610return 0;
4611 ;
4612 return 0;
4613}
4614_ACEOF
4615rm -f conftest.$ac_objext
7a197a62
AK
4616if { (ac_try="$ac_compile"
4617case "(($ac_try" in
4618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4619 *) ac_try_echo=$ac_try;;
4620esac
ec6a6fbe
AK
4621eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4622$as_echo "$ac_try_echo") >&5
7a197a62 4623 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4624 ac_status=$?
8a2fc586
AK
4625 grep -v '^ *+' conftest.er1 >conftest.err
4626 rm -f conftest.er1
4627 cat conftest.err >&5
ec6a6fbe 4628 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4629 (exit $ac_status); } && {
4630 test -z "$ac_c_werror_flag" ||
4631 test ! -s conftest.err
4632 } && test -s conftest.$ac_objext; then
795ca3e5
AK
4633 ac_cv_header_time=yes
4634else
ec6a6fbe 4635 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
4636sed 's/^/| /' conftest.$ac_ext >&5
4637
7a197a62 4638 ac_cv_header_time=no
795ca3e5 4639fi
7a197a62
AK
4640
4641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
795ca3e5 4642fi
ec6a6fbe
AK
4643{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4644$as_echo "$ac_cv_header_time" >&6; }
80992638 4645if test $ac_cv_header_time = yes; then
ad6254c5
AK
4646
4647cat >>confdefs.h <<\_ACEOF
795ca3e5 4648#define TIME_WITH_SYS_TIME 1
ad6254c5 4649_ACEOF
b896caa1 4650
8106cdd5 4651fi
b896caa1 4652
b896caa1 4653
d0191583
JM
4654# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4665 inttypes.h stdint.h unistd.h
4666do
ec6a6fbe
AK
4667as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4668{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4669$as_echo_n "checking for $ac_header... " >&6; }
d0191583 4670if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 4671 $as_echo_n "(cached) " >&6
d0191583
JM
4672else
4673 cat >conftest.$ac_ext <<_ACEOF
4674/* confdefs.h. */
4675_ACEOF
4676cat confdefs.h >>conftest.$ac_ext
4677cat >>conftest.$ac_ext <<_ACEOF
4678/* end confdefs.h. */
4679$ac_includes_default
4680
4681#include <$ac_header>
4682_ACEOF
4683rm -f conftest.$ac_objext
4684if { (ac_try="$ac_compile"
4685case "(($ac_try" in
4686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4687 *) ac_try_echo=$ac_try;;
4688esac
ec6a6fbe
AK
4689eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4690$as_echo "$ac_try_echo") >&5
d0191583
JM
4691 (eval "$ac_compile") 2>conftest.er1
4692 ac_status=$?
4693 grep -v '^ *+' conftest.er1 >conftest.err
4694 rm -f conftest.er1
4695 cat conftest.err >&5
ec6a6fbe 4696 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4697 (exit $ac_status); } && {
4698 test -z "$ac_c_werror_flag" ||
4699 test ! -s conftest.err
4700 } && test -s conftest.$ac_objext; then
4701 eval "$as_ac_Header=yes"
4702else
ec6a6fbe 4703 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
4704sed 's/^/| /' conftest.$ac_ext >&5
4705
4706 eval "$as_ac_Header=no"
4707fi
4708
4709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4710fi
ec6a6fbe
AK
4711ac_res=`eval 'as_val=${'$as_ac_Header'}
4712 $as_echo "$as_val"'`
4713 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4714$as_echo "$ac_res" >&6; }
4715as_val=`eval 'as_val=${'$as_ac_Header'}
4716 $as_echo "$as_val"'`
4717 if test "x$as_val" = x""yes; then
d0191583 4718 cat >>confdefs.h <<_ACEOF
ec6a6fbe 4719#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
d0191583
JM
4720_ACEOF
4721
4722fi
4723
4724done
4725
b896caa1 4726
b896caa1
AK
4727
4728
795ca3e5 4729
8106cdd5 4730
80992638 4731
795ca3e5 4732
a38df97f 4733
80992638 4734
d0191583
JM
4735
4736
4737
4738
4739
4740for ac_header in locale.h stddef.h syslog.h sys/file.h sys/time.h assert.h \
4741 libgen.h signal.h sys/mman.h sys/resource.h sys/utsname.h sys/wait.h time.h
ad6254c5 4742do
ec6a6fbe 4743as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
d0191583 4744if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
4745 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4746$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 4747if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 4748 $as_echo_n "(cached) " >&6
d0191583 4749fi
ec6a6fbe
AK
4750ac_res=`eval 'as_val=${'$as_ac_Header'}
4751 $as_echo "$as_val"'`
4752 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4753$as_echo "$ac_res" >&6; }
ad6254c5 4754else
d0191583 4755 # Is the header compilable?
ec6a6fbe
AK
4756{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4757$as_echo_n "checking $ac_header usability... " >&6; }
d0191583 4758cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4759/* confdefs.h. */
4760_ACEOF
4761cat confdefs.h >>conftest.$ac_ext
4762cat >>conftest.$ac_ext <<_ACEOF
4763/* end confdefs.h. */
4764$ac_includes_default
ad6254c5
AK
4765#include <$ac_header>
4766_ACEOF
4767rm -f conftest.$ac_objext
7a197a62
AK
4768if { (ac_try="$ac_compile"
4769case "(($ac_try" in
4770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4771 *) ac_try_echo=$ac_try;;
4772esac
ec6a6fbe
AK
4773eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4774$as_echo "$ac_try_echo") >&5
7a197a62 4775 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4776 ac_status=$?
8a2fc586
AK
4777 grep -v '^ *+' conftest.er1 >conftest.err
4778 rm -f conftest.er1
4779 cat conftest.err >&5
ec6a6fbe 4780 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4781 (exit $ac_status); } && {
4782 test -z "$ac_c_werror_flag" ||
4783 test ! -s conftest.err
4784 } && test -s conftest.$ac_objext; then
d0191583 4785 ac_header_compiler=yes
ad6254c5 4786else
ec6a6fbe 4787 $as_echo "$as_me: failed program was:" >&5
ad6254c5 4788sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 4789
d0191583 4790 ac_header_compiler=no
ad6254c5 4791fi
7a197a62
AK
4792
4793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
4794{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4795$as_echo "$ac_header_compiler" >&6; }
d0191583
JM
4796
4797# Is the header present?
ec6a6fbe
AK
4798{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4799$as_echo_n "checking $ac_header presence... " >&6; }
d0191583
JM
4800cat >conftest.$ac_ext <<_ACEOF
4801/* confdefs.h. */
4802_ACEOF
4803cat confdefs.h >>conftest.$ac_ext
4804cat >>conftest.$ac_ext <<_ACEOF
4805/* end confdefs.h. */
4806#include <$ac_header>
4807_ACEOF
4808if { (ac_try="$ac_cpp conftest.$ac_ext"
4809case "(($ac_try" in
4810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4811 *) ac_try_echo=$ac_try;;
4812esac
ec6a6fbe
AK
4813eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4814$as_echo "$ac_try_echo") >&5
d0191583
JM
4815 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4816 ac_status=$?
4817 grep -v '^ *+' conftest.er1 >conftest.err
4818 rm -f conftest.er1
4819 cat conftest.err >&5
ec6a6fbe 4820 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4821 (exit $ac_status); } >/dev/null && {
4822 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4823 test ! -s conftest.err
4824 }; then
4825 ac_header_preproc=yes
4826else
ec6a6fbe 4827 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
4828sed 's/^/| /' conftest.$ac_ext >&5
4829
4830 ac_header_preproc=no
4831fi
4832
4833rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
4834{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4835$as_echo "$ac_header_preproc" >&6; }
d0191583
JM
4836
4837# So? What about this header?
4838case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4839 yes:no: )
ec6a6fbe
AK
4840 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4841$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4842 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4843$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
d0191583
JM
4844 ac_header_preproc=yes
4845 ;;
4846 no:yes:* )
ec6a6fbe
AK
4847 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4848$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4849 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4850$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4851 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4852$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4853 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4854$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4855 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4856$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4857 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4858$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
d0191583
JM
4859
4860 ;;
4861esac
ec6a6fbe
AK
4862{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4863$as_echo_n "checking for $ac_header... " >&6; }
d0191583 4864if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 4865 $as_echo_n "(cached) " >&6
d0191583
JM
4866else
4867 eval "$as_ac_Header=\$ac_header_preproc"
a38df97f 4868fi
ec6a6fbe
AK
4869ac_res=`eval 'as_val=${'$as_ac_Header'}
4870 $as_echo "$as_val"'`
4871 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4872$as_echo "$ac_res" >&6; }
d0191583
JM
4873
4874fi
ec6a6fbe
AK
4875as_val=`eval 'as_val=${'$as_ac_Header'}
4876 $as_echo "$as_val"'`
4877 if test "x$as_val" = x""yes; then
ad6254c5 4878 cat >>confdefs.h <<_ACEOF
ec6a6fbe 4879#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 4880_ACEOF
a38df97f 4881
d0191583 4882else
ec6a6fbe
AK
4883 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
4884$as_echo "$as_me: error: bailing out" >&2;}
d0191583 4885 { (exit 1); exit 1; }; }
80992638
AK
4886fi
4887
ad6254c5
AK
4888done
4889
7d1552c9 4890
d0191583
JM
4891case "$host_os" in
4892 linux*)
7d1552c9 4893
80992638 4894
5a52dca9 4895
d0191583 4896for ac_header in asm/byteorder.h linux/fs.h malloc.h
ad6254c5 4897do
ec6a6fbe 4898as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 4899if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
4900 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4901$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 4902if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 4903 $as_echo_n "(cached) " >&6
ad6254c5 4904fi
ec6a6fbe
AK
4905ac_res=`eval 'as_val=${'$as_ac_Header'}
4906 $as_echo "$as_val"'`
4907 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4908$as_echo "$ac_res" >&6; }
ad6254c5
AK
4909else
4910 # Is the header compilable?
ec6a6fbe
AK
4911{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4912$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 4913cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4914/* confdefs.h. */
4915_ACEOF
4916cat confdefs.h >>conftest.$ac_ext
4917cat >>conftest.$ac_ext <<_ACEOF
4918/* end confdefs.h. */
4919$ac_includes_default
4920#include <$ac_header>
4921_ACEOF
4922rm -f conftest.$ac_objext
7a197a62
AK
4923if { (ac_try="$ac_compile"
4924case "(($ac_try" in
4925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4926 *) ac_try_echo=$ac_try;;
4927esac
ec6a6fbe
AK
4928eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4929$as_echo "$ac_try_echo") >&5
7a197a62 4930 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4931 ac_status=$?
8a2fc586
AK
4932 grep -v '^ *+' conftest.er1 >conftest.err
4933 rm -f conftest.er1
4934 cat conftest.err >&5
ec6a6fbe 4935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4936 (exit $ac_status); } && {
4937 test -z "$ac_c_werror_flag" ||
4938 test ! -s conftest.err
4939 } && test -s conftest.$ac_objext; then
fc54be10
AK
4940 ac_header_compiler=yes
4941else
ec6a6fbe 4942 $as_echo "$as_me: failed program was:" >&5
fc54be10
AK
4943sed 's/^/| /' conftest.$ac_ext >&5
4944
4945 ac_header_compiler=no
4946fi
4947
4948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
4949{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4950$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
4951
4952# Is the header present?
ec6a6fbe
AK
4953{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4954$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 4955cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4956/* confdefs.h. */
4957_ACEOF
4958cat confdefs.h >>conftest.$ac_ext
4959cat >>conftest.$ac_ext <<_ACEOF
4960/* end confdefs.h. */
4961#include <$ac_header>
4962_ACEOF
7a197a62
AK
4963if { (ac_try="$ac_cpp conftest.$ac_ext"
4964case "(($ac_try" in
4965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4966 *) ac_try_echo=$ac_try;;
4967esac
ec6a6fbe
AK
4968eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4969$as_echo "$ac_try_echo") >&5
7a197a62 4970 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
4971 ac_status=$?
4972 grep -v '^ *+' conftest.er1 >conftest.err
4973 rm -f conftest.er1
4974 cat conftest.err >&5
ec6a6fbe 4975 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4976 (exit $ac_status); } >/dev/null && {
4977 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4978 test ! -s conftest.err
4979 }; then
ad6254c5
AK
4980 ac_header_preproc=yes
4981else
ec6a6fbe 4982 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
4983sed 's/^/| /' conftest.$ac_ext >&5
4984
4985 ac_header_preproc=no
4986fi
7a197a62 4987
ad6254c5 4988rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
4989{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4990$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
4991
4992# So? What about this header?
8a2fc586
AK
4993case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4994 yes:no: )
ec6a6fbe
AK
4995 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4996$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4997 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4998$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 4999 ac_header_preproc=yes
ad6254c5 5000 ;;
8a2fc586 5001 no:yes:* )
ec6a6fbe
AK
5002 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5003$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5004 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5005$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5006 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5007$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5008 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5009$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5010 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5011$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5012 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5013$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 5014
ad6254c5
AK
5015 ;;
5016esac
ec6a6fbe
AK
5017{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5018$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 5019if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 5020 $as_echo_n "(cached) " >&6
ad6254c5 5021else
8a2fc586 5022 eval "$as_ac_Header=\$ac_header_preproc"
b896caa1 5023fi
ec6a6fbe
AK
5024ac_res=`eval 'as_val=${'$as_ac_Header'}
5025 $as_echo "$as_val"'`
5026 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5027$as_echo "$ac_res" >&6; }
ad6254c5
AK
5028
5029fi
ec6a6fbe
AK
5030as_val=`eval 'as_val=${'$as_ac_Header'}
5031 $as_echo "$as_val"'`
5032 if test "x$as_val" = x""yes; then
ad6254c5 5033 cat >>confdefs.h <<_ACEOF
ec6a6fbe 5034#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 5035_ACEOF
b896caa1 5036
d8ac0fbc 5037else
ec6a6fbe
AK
5038 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5039$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 5040 { (exit 1); exit 1; }; }
80992638
AK
5041fi
5042
ad6254c5 5043done
d0191583
JM
5044 ;;
5045 darwin*)
d8ac0fbc 5046
d8ac0fbc 5047
d0191583 5048for ac_header in machine/endian.h sys/disk.h
ad6254c5 5049do
ec6a6fbe 5050as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 5051if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
5052 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5053$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 5054if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 5055 $as_echo_n "(cached) " >&6
ad6254c5 5056fi
ec6a6fbe
AK
5057ac_res=`eval 'as_val=${'$as_ac_Header'}
5058 $as_echo "$as_val"'`
5059 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5060$as_echo "$ac_res" >&6; }
ad6254c5
AK
5061else
5062 # Is the header compilable?
ec6a6fbe
AK
5063{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5064$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 5065cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5066/* confdefs.h. */
5067_ACEOF
5068cat confdefs.h >>conftest.$ac_ext
5069cat >>conftest.$ac_ext <<_ACEOF
5070/* end confdefs.h. */
5071$ac_includes_default
5072#include <$ac_header>
5073_ACEOF
5074rm -f conftest.$ac_objext
7a197a62
AK
5075if { (ac_try="$ac_compile"
5076case "(($ac_try" in
5077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5078 *) ac_try_echo=$ac_try;;
5079esac
ec6a6fbe
AK
5080eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5081$as_echo "$ac_try_echo") >&5
7a197a62 5082 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5083 ac_status=$?
8a2fc586
AK
5084 grep -v '^ *+' conftest.er1 >conftest.err
5085 rm -f conftest.er1
5086 cat conftest.err >&5
ec6a6fbe 5087 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5088 (exit $ac_status); } && {
5089 test -z "$ac_c_werror_flag" ||
5090 test ! -s conftest.err
5091 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5092 ac_header_compiler=yes
5093else
ec6a6fbe 5094 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5095sed 's/^/| /' conftest.$ac_ext >&5
5096
7a197a62 5097 ac_header_compiler=no
ad6254c5 5098fi
7a197a62
AK
5099
5100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
5101{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5102$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
5103
5104# Is the header present?
ec6a6fbe
AK
5105{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5106$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 5107cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5108/* confdefs.h. */
5109_ACEOF
5110cat confdefs.h >>conftest.$ac_ext
5111cat >>conftest.$ac_ext <<_ACEOF
5112/* end confdefs.h. */
5113#include <$ac_header>
5114_ACEOF
7a197a62
AK
5115if { (ac_try="$ac_cpp conftest.$ac_ext"
5116case "(($ac_try" in
5117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5118 *) ac_try_echo=$ac_try;;
5119esac
ec6a6fbe
AK
5120eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5121$as_echo "$ac_try_echo") >&5
7a197a62 5122 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
5123 ac_status=$?
5124 grep -v '^ *+' conftest.er1 >conftest.err
5125 rm -f conftest.er1
5126 cat conftest.err >&5
ec6a6fbe 5127 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5128 (exit $ac_status); } >/dev/null && {
5129 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5130 test ! -s conftest.err
5131 }; then
ad6254c5
AK
5132 ac_header_preproc=yes
5133else
ec6a6fbe 5134 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5135sed 's/^/| /' conftest.$ac_ext >&5
5136
5137 ac_header_preproc=no
5138fi
7a197a62 5139
ad6254c5 5140rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
5141{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5142$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
5143
5144# So? What about this header?
8a2fc586
AK
5145case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5146 yes:no: )
ec6a6fbe
AK
5147 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5148$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5149 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5150$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 5151 ac_header_preproc=yes
ad6254c5 5152 ;;
8a2fc586 5153 no:yes:* )
ec6a6fbe
AK
5154 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5155$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5156 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5157$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5158 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5159$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5160 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5161$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5162 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5163$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5164 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5165$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 5166
ad6254c5
AK
5167 ;;
5168esac
ec6a6fbe
AK
5169{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5170$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 5171if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 5172 $as_echo_n "(cached) " >&6
ad6254c5 5173else
8a2fc586 5174 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 5175fi
ec6a6fbe
AK
5176ac_res=`eval 'as_val=${'$as_ac_Header'}
5177 $as_echo "$as_val"'`
5178 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5179$as_echo "$ac_res" >&6; }
ad6254c5
AK
5180
5181fi
ec6a6fbe
AK
5182as_val=`eval 'as_val=${'$as_ac_Header'}
5183 $as_echo "$as_val"'`
5184 if test "x$as_val" = x""yes; then
ad6254c5 5185 cat >>confdefs.h <<_ACEOF
ec6a6fbe 5186#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 5187_ACEOF
4922197a 5188
4922197a 5189else
ec6a6fbe
AK
5190 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5191$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 5192 { (exit 1); exit 1; }; }
80992638
AK
5193fi
5194
ad6254c5 5195done
d0191583
JM
5196 ;;
5197esac
4922197a 5198
4922197a 5199
4922197a 5200
ad6254c5
AK
5201
5202
d0191583
JM
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215for ac_header in ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h \
5216 stdarg.h stdio.h stdlib.h string.h sys/ioctl.h sys/param.h sys/stat.h \
5217 sys/types.h unistd.h
ad6254c5 5218do
ec6a6fbe 5219as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 5220if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
5221 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5222$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 5223if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 5224 $as_echo_n "(cached) " >&6
ad6254c5 5225fi
ec6a6fbe
AK
5226ac_res=`eval 'as_val=${'$as_ac_Header'}
5227 $as_echo "$as_val"'`
5228 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5229$as_echo "$ac_res" >&6; }
795ca3e5 5230else
ad6254c5 5231 # Is the header compilable?
ec6a6fbe
AK
5232{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5233$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 5234cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5235/* confdefs.h. */
5236_ACEOF
5237cat confdefs.h >>conftest.$ac_ext
5238cat >>conftest.$ac_ext <<_ACEOF
5239/* end confdefs.h. */
5240$ac_includes_default
5241#include <$ac_header>
5242_ACEOF
5243rm -f conftest.$ac_objext
7a197a62
AK
5244if { (ac_try="$ac_compile"
5245case "(($ac_try" in
5246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5247 *) ac_try_echo=$ac_try;;
5248esac
ec6a6fbe
AK
5249eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5250$as_echo "$ac_try_echo") >&5
7a197a62 5251 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5252 ac_status=$?
8a2fc586
AK
5253 grep -v '^ *+' conftest.er1 >conftest.err
5254 rm -f conftest.er1
5255 cat conftest.err >&5
ec6a6fbe 5256 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5257 (exit $ac_status); } && {
5258 test -z "$ac_c_werror_flag" ||
5259 test ! -s conftest.err
5260 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5261 ac_header_compiler=yes
5262else
ec6a6fbe 5263 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5264sed 's/^/| /' conftest.$ac_ext >&5
5265
7a197a62 5266 ac_header_compiler=no
ad6254c5 5267fi
7a197a62
AK
5268
5269rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
5270{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5271$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
5272
5273# Is the header present?
ec6a6fbe
AK
5274{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5275$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 5276cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5277/* confdefs.h. */
5278_ACEOF
5279cat confdefs.h >>conftest.$ac_ext
5280cat >>conftest.$ac_ext <<_ACEOF
5281/* end confdefs.h. */
5282#include <$ac_header>
5283_ACEOF
7a197a62
AK
5284if { (ac_try="$ac_cpp conftest.$ac_ext"
5285case "(($ac_try" in
5286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5287 *) ac_try_echo=$ac_try;;
5288esac
ec6a6fbe
AK
5289eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5290$as_echo "$ac_try_echo") >&5
7a197a62 5291 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
5292 ac_status=$?
5293 grep -v '^ *+' conftest.er1 >conftest.err
5294 rm -f conftest.er1
5295 cat conftest.err >&5
ec6a6fbe 5296 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5297 (exit $ac_status); } >/dev/null && {
5298 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5299 test ! -s conftest.err
5300 }; then
ad6254c5
AK
5301 ac_header_preproc=yes
5302else
ec6a6fbe 5303 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5304sed 's/^/| /' conftest.$ac_ext >&5
5305
5306 ac_header_preproc=no
5307fi
7a197a62 5308
ad6254c5 5309rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
5310{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5311$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
5312
5313# So? What about this header?
8a2fc586
AK
5314case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5315 yes:no: )
ec6a6fbe
AK
5316 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5317$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5318 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5319$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 5320 ac_header_preproc=yes
ad6254c5 5321 ;;
8a2fc586 5322 no:yes:* )
ec6a6fbe
AK
5323 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5324$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5325 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5326$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5327 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5328$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5329 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5330$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5331 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5332$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5333 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5334$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 5335
ad6254c5
AK
5336 ;;
5337esac
ec6a6fbe
AK
5338{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5339$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 5340if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 5341 $as_echo_n "(cached) " >&6
ad6254c5 5342else
8a2fc586 5343 eval "$as_ac_Header=\$ac_header_preproc"
80992638 5344fi
ec6a6fbe
AK
5345ac_res=`eval 'as_val=${'$as_ac_Header'}
5346 $as_echo "$as_val"'`
5347 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5348$as_echo "$ac_res" >&6; }
80992638 5349
ad6254c5 5350fi
ec6a6fbe
AK
5351as_val=`eval 'as_val=${'$as_ac_Header'}
5352 $as_echo "$as_val"'`
5353 if test "x$as_val" = x""yes; then
ad6254c5 5354 cat >>confdefs.h <<_ACEOF
ec6a6fbe 5355#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 5356_ACEOF
795ca3e5 5357
795ca3e5 5358else
ec6a6fbe
AK
5359 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5360$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 5361 { (exit 1); exit 1; }; }
80992638
AK
5362fi
5363
ad6254c5 5364done
ad6254c5 5365
795ca3e5 5366
d0191583
JM
5367
5368for ac_header in termios.h sys/statvfs.h
ad6254c5 5369do
ec6a6fbe 5370as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 5371if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
5372 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5373$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 5374if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 5375 $as_echo_n "(cached) " >&6
ad6254c5 5376fi
ec6a6fbe
AK
5377ac_res=`eval 'as_val=${'$as_ac_Header'}
5378 $as_echo "$as_val"'`
5379 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5380$as_echo "$ac_res" >&6; }
ad6254c5
AK
5381else
5382 # Is the header compilable?
ec6a6fbe
AK
5383{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5384$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 5385cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5386/* confdefs.h. */
5387_ACEOF
5388cat confdefs.h >>conftest.$ac_ext
5389cat >>conftest.$ac_ext <<_ACEOF
5390/* end confdefs.h. */
5391$ac_includes_default
5392#include <$ac_header>
5393_ACEOF
5394rm -f conftest.$ac_objext
7a197a62
AK
5395if { (ac_try="$ac_compile"
5396case "(($ac_try" in
5397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5398 *) ac_try_echo=$ac_try;;
5399esac
ec6a6fbe
AK
5400eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5401$as_echo "$ac_try_echo") >&5
7a197a62 5402 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5403 ac_status=$?
8a2fc586
AK
5404 grep -v '^ *+' conftest.er1 >conftest.err
5405 rm -f conftest.er1
5406 cat conftest.err >&5
ec6a6fbe 5407 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5408 (exit $ac_status); } && {
5409 test -z "$ac_c_werror_flag" ||
5410 test ! -s conftest.err
5411 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5412 ac_header_compiler=yes
5413else
ec6a6fbe 5414 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5415sed 's/^/| /' conftest.$ac_ext >&5
5416
7a197a62 5417 ac_header_compiler=no
ad6254c5 5418fi
7a197a62
AK
5419
5420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
5421{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5422$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
5423
5424# Is the header present?
ec6a6fbe
AK
5425{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5426$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 5427cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5428/* confdefs.h. */
5429_ACEOF
5430cat confdefs.h >>conftest.$ac_ext
5431cat >>conftest.$ac_ext <<_ACEOF
5432/* end confdefs.h. */
5433#include <$ac_header>
5434_ACEOF
7a197a62
AK
5435if { (ac_try="$ac_cpp conftest.$ac_ext"
5436case "(($ac_try" in
5437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5438 *) ac_try_echo=$ac_try;;
5439esac
ec6a6fbe
AK
5440eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5441$as_echo "$ac_try_echo") >&5
7a197a62 5442 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
5443 ac_status=$?
5444 grep -v '^ *+' conftest.er1 >conftest.err
5445 rm -f conftest.er1
5446 cat conftest.err >&5
ec6a6fbe 5447 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5448 (exit $ac_status); } >/dev/null && {
5449 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5450 test ! -s conftest.err
5451 }; then
ad6254c5
AK
5452 ac_header_preproc=yes
5453else
ec6a6fbe 5454 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5455sed 's/^/| /' conftest.$ac_ext >&5
5456
5457 ac_header_preproc=no
5458fi
7a197a62 5459
ad6254c5 5460rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
5461{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5462$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
5463
5464# So? What about this header?
8a2fc586
AK
5465case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5466 yes:no: )
ec6a6fbe
AK
5467 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5468$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5469 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5470$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 5471 ac_header_preproc=yes
ad6254c5 5472 ;;
8a2fc586 5473 no:yes:* )
ec6a6fbe
AK
5474 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5475$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5476 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5477$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5478 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5479$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5480 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5481$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5482 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5483$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5484 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5485$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 5486
ad6254c5
AK
5487 ;;
5488esac
ec6a6fbe
AK
5489{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5490$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 5491if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 5492 $as_echo_n "(cached) " >&6
ad6254c5 5493else
8a2fc586 5494 eval "$as_ac_Header=\$ac_header_preproc"
b896caa1 5495fi
ec6a6fbe
AK
5496ac_res=`eval 'as_val=${'$as_ac_Header'}
5497 $as_echo "$as_val"'`
5498 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5499$as_echo "$ac_res" >&6; }
b896caa1 5500
ad6254c5 5501fi
ec6a6fbe
AK
5502as_val=`eval 'as_val=${'$as_ac_Header'}
5503 $as_echo "$as_val"'`
5504 if test "x$as_val" = x""yes; then
ad6254c5 5505 cat >>confdefs.h <<_ACEOF
ec6a6fbe 5506#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
5507_ACEOF
5508
80992638
AK
5509fi
5510
ad6254c5 5511done
d0191583 5512
d3c8211f 5513
80992638 5514################################################################################
ec6a6fbe
AK
5515{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5516$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
ad6254c5 5517if test "${ac_cv_c_const+set}" = set; then
ec6a6fbe 5518 $as_echo_n "(cached) " >&6
d3c8211f 5519else
ad6254c5 5520 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5521/* confdefs.h. */
5522_ACEOF
5523cat confdefs.h >>conftest.$ac_ext
5524cat >>conftest.$ac_ext <<_ACEOF
5525/* end confdefs.h. */
5526
5527int
5528main ()
5529{
5530/* FIXME: Include the comments suggested by Paul. */
5531#ifndef __cplusplus
5532 /* Ultrix mips cc rejects this. */
5533 typedef int charset[2];
25fbec5b 5534 const charset cs;
ad6254c5 5535 /* SunOS 4.1.1 cc rejects this. */
25fbec5b
AK
5536 char const *const *pcpcc;
5537 char **ppc;
ad6254c5
AK
5538 /* NEC SVR4.0.2 mips cc rejects this. */
5539 struct point {int x, y;};
5540 static struct point const zero = {0,0};
5541 /* AIX XL C 1.02.0.0 rejects this.
5542 It does not let you subtract one const X* pointer from another in
5543 an arm of an if-expression whose if-part is not a constant
5544 expression */
5545 const char *g = "string";
25fbec5b 5546 pcpcc = &g + (g ? g-g : 0);
ad6254c5 5547 /* HPUX 7.0 cc rejects these. */
25fbec5b
AK
5548 ++pcpcc;
5549 ppc = (char**) pcpcc;
5550 pcpcc = (char const *const *) ppc;
ad6254c5
AK
5551 { /* SCO 3.2v4 cc rejects this. */
5552 char *t;
5553 char const *s = 0 ? (char *) 0 : (char const *) 0;
5554
5555 *t++ = 0;
7a197a62 5556 if (s) return 0;
ad6254c5
AK
5557 }
5558 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5559 int x[] = {25, 17};
5560 const int *foo = &x[0];
5561 ++foo;
5562 }
5563 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5564 typedef const int *iptr;
5565 iptr p = 0;
5566 ++p;
5567 }
5568 { /* AIX XL C 1.02.0.0 rejects this saying
5569 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5570 struct s { int j; const int *ap[3]; };
5571 struct s *b; b->j = 5;
5572 }
5573 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5574 const int foo = 10;
7a197a62 5575 if (!foo) return 0;
ad6254c5 5576 }
25fbec5b 5577 return !cs[0] && !zero.x;
ad6254c5
AK
5578#endif
5579
5580 ;
5581 return 0;
5582}
5583_ACEOF
5584rm -f conftest.$ac_objext
7a197a62
AK
5585if { (ac_try="$ac_compile"
5586case "(($ac_try" in
5587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5588 *) ac_try_echo=$ac_try;;
5589esac
ec6a6fbe
AK
5590eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5591$as_echo "$ac_try_echo") >&5
7a197a62 5592 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5593 ac_status=$?
8a2fc586
AK
5594 grep -v '^ *+' conftest.er1 >conftest.err
5595 rm -f conftest.er1
5596 cat conftest.err >&5
ec6a6fbe 5597 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5598 (exit $ac_status); } && {
5599 test -z "$ac_c_werror_flag" ||
5600 test ! -s conftest.err
5601 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5602 ac_cv_c_const=yes
5603else
ec6a6fbe 5604 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5605sed 's/^/| /' conftest.$ac_ext >&5
5606
7a197a62 5607 ac_cv_c_const=no
ad6254c5 5608fi
7a197a62
AK
5609
5610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
80992638 5611fi
ec6a6fbe
AK
5612{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5613$as_echo "$ac_cv_c_const" >&6; }
ad6254c5 5614if test $ac_cv_c_const = no; then
80992638 5615
ad6254c5 5616cat >>confdefs.h <<\_ACEOF
ec6a6fbe 5617#define const /**/
ad6254c5 5618_ACEOF
80992638 5619
d3c8211f 5620fi
d3c8211f 5621
ec6a6fbe
AK
5622{ $as_echo "$as_me:$LINENO: checking for inline" >&5
5623$as_echo_n "checking for inline... " >&6; }
ad6254c5 5624if test "${ac_cv_c_inline+set}" = set; then
ec6a6fbe 5625 $as_echo_n "(cached) " >&6
8ef2b021 5626else
ad6254c5
AK
5627 ac_cv_c_inline=no
5628for ac_kw in inline __inline__ __inline; do
5629 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5630/* confdefs.h. */
5631_ACEOF
5632cat confdefs.h >>conftest.$ac_ext
5633cat >>conftest.$ac_ext <<_ACEOF
5634/* end confdefs.h. */
5635#ifndef __cplusplus
5636typedef int foo_t;
5637static $ac_kw foo_t static_foo () {return 0; }
5638$ac_kw foo_t foo () {return 0; }
5639#endif
80992638 5640
ad6254c5
AK
5641_ACEOF
5642rm -f conftest.$ac_objext
7a197a62
AK
5643if { (ac_try="$ac_compile"
5644case "(($ac_try" in
5645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5646 *) ac_try_echo=$ac_try;;
5647esac
ec6a6fbe
AK
5648eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5649$as_echo "$ac_try_echo") >&5
7a197a62 5650 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5651 ac_status=$?
8a2fc586
AK
5652 grep -v '^ *+' conftest.er1 >conftest.err
5653 rm -f conftest.er1
5654 cat conftest.err >&5
ec6a6fbe 5655 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5656 (exit $ac_status); } && {
5657 test -z "$ac_c_werror_flag" ||
5658 test ! -s conftest.err
5659 } && test -s conftest.$ac_objext; then
7a197a62 5660 ac_cv_c_inline=$ac_kw
ad6254c5 5661else
ec6a6fbe 5662 $as_echo "$as_me: failed program was:" >&5
ad6254c5 5663sed 's/^/| /' conftest.$ac_ext >&5
8ef2b021 5664
7a197a62 5665
8ce0cbda 5666fi
7a197a62
AK
5667
5668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5669 test "$ac_cv_c_inline" != no && break
ad6254c5 5670done
8ce0cbda 5671
8ce0cbda 5672fi
ec6a6fbe
AK
5673{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5674$as_echo "$ac_cv_c_inline" >&6; }
8a2fc586
AK
5675
5676
ad6254c5
AK
5677case $ac_cv_c_inline in
5678 inline | yes) ;;
8a2fc586
AK
5679 *)
5680 case $ac_cv_c_inline in
5681 no) ac_val=;;
5682 *) ac_val=$ac_cv_c_inline;;
5683 esac
5684 cat >>confdefs.h <<_ACEOF
5685#ifndef __cplusplus
5686#define inline $ac_val
5687#endif
c1c065a3 5688_ACEOF
d0191583
JM
5689 ;;
5690esac
5691
ec6a6fbe
AK
5692{ $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
5693$as_echo_n "checking for struct stat.st_rdev... " >&6; }
d0191583 5694if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
ec6a6fbe 5695 $as_echo_n "(cached) " >&6
d0191583
JM
5696else
5697 cat >conftest.$ac_ext <<_ACEOF
5698/* confdefs.h. */
5699_ACEOF
5700cat confdefs.h >>conftest.$ac_ext
5701cat >>conftest.$ac_ext <<_ACEOF
5702/* end confdefs.h. */
5703$ac_includes_default
5704int
5705main ()
5706{
5707static struct stat ac_aggr;
5708if (ac_aggr.st_rdev)
5709return 0;
5710 ;
5711 return 0;
5712}
5713_ACEOF
5714rm -f conftest.$ac_objext
5715if { (ac_try="$ac_compile"
5716case "(($ac_try" in
5717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5718 *) ac_try_echo=$ac_try;;
5719esac
ec6a6fbe
AK
5720eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5721$as_echo "$ac_try_echo") >&5
5722 (eval "$ac_compile") 2>conftest.er1
5723 ac_status=$?
5724 grep -v '^ *+' conftest.er1 >conftest.err
5725 rm -f conftest.er1
5726 cat conftest.err >&5
5727 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5728 (exit $ac_status); } && {
5729 test -z "$ac_c_werror_flag" ||
5730 test ! -s conftest.err
5731 } && test -s conftest.$ac_objext; then
5732 ac_cv_member_struct_stat_st_rdev=yes
5733else
5734 $as_echo "$as_me: failed program was:" >&5
5735sed 's/^/| /' conftest.$ac_ext >&5
5736
5737 cat >conftest.$ac_ext <<_ACEOF
5738/* confdefs.h. */
5739_ACEOF
5740cat confdefs.h >>conftest.$ac_ext
5741cat >>conftest.$ac_ext <<_ACEOF
5742/* end confdefs.h. */
5743$ac_includes_default
5744int
5745main ()
5746{
5747static struct stat ac_aggr;
5748if (sizeof ac_aggr.st_rdev)
5749return 0;
5750 ;
5751 return 0;
5752}
5753_ACEOF
5754rm -f conftest.$ac_objext
5755if { (ac_try="$ac_compile"
5756case "(($ac_try" in
5757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5758 *) ac_try_echo=$ac_try;;
5759esac
5760eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5761$as_echo "$ac_try_echo") >&5
5762 (eval "$ac_compile") 2>conftest.er1
5763 ac_status=$?
5764 grep -v '^ *+' conftest.er1 >conftest.err
5765 rm -f conftest.er1
5766 cat conftest.err >&5
5767 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5768 (exit $ac_status); } && {
5769 test -z "$ac_c_werror_flag" ||
5770 test ! -s conftest.err
5771 } && test -s conftest.$ac_objext; then
5772 ac_cv_member_struct_stat_st_rdev=yes
5773else
5774 $as_echo "$as_me: failed program was:" >&5
5775sed 's/^/| /' conftest.$ac_ext >&5
5776
5777 ac_cv_member_struct_stat_st_rdev=no
5778fi
5779
5780rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5781fi
5782
5783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5784fi
5785{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
5786$as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; }
5787if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then
5788
5789cat >>confdefs.h <<_ACEOF
5790#define HAVE_STRUCT_STAT_ST_RDEV 1
5791_ACEOF
5792
5793
5794fi
5795
5796{ $as_echo "$as_me:$LINENO: checking for off_t" >&5
5797$as_echo_n "checking for off_t... " >&6; }
5798if test "${ac_cv_type_off_t+set}" = set; then
5799 $as_echo_n "(cached) " >&6
5800else
5801 ac_cv_type_off_t=no
5802cat >conftest.$ac_ext <<_ACEOF
5803/* confdefs.h. */
5804_ACEOF
5805cat confdefs.h >>conftest.$ac_ext
5806cat >>conftest.$ac_ext <<_ACEOF
5807/* end confdefs.h. */
5808$ac_includes_default
5809int
5810main ()
5811{
5812if (sizeof (off_t))
5813 return 0;
5814 ;
5815 return 0;
5816}
5817_ACEOF
5818rm -f conftest.$ac_objext
5819if { (ac_try="$ac_compile"
5820case "(($ac_try" in
5821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5822 *) ac_try_echo=$ac_try;;
5823esac
5824eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5825$as_echo "$ac_try_echo") >&5
5826 (eval "$ac_compile") 2>conftest.er1
5827 ac_status=$?
5828 grep -v '^ *+' conftest.er1 >conftest.err
5829 rm -f conftest.er1
5830 cat conftest.err >&5
5831 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5832 (exit $ac_status); } && {
5833 test -z "$ac_c_werror_flag" ||
5834 test ! -s conftest.err
5835 } && test -s conftest.$ac_objext; then
5836 cat >conftest.$ac_ext <<_ACEOF
5837/* confdefs.h. */
5838_ACEOF
5839cat confdefs.h >>conftest.$ac_ext
5840cat >>conftest.$ac_ext <<_ACEOF
5841/* end confdefs.h. */
5842$ac_includes_default
5843int
5844main ()
5845{
5846if (sizeof ((off_t)))
5847 return 0;
5848 ;
5849 return 0;
5850}
5851_ACEOF
5852rm -f conftest.$ac_objext
5853if { (ac_try="$ac_compile"
5854case "(($ac_try" in
5855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5856 *) ac_try_echo=$ac_try;;
5857esac
5858eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5859$as_echo "$ac_try_echo") >&5
5860 (eval "$ac_compile") 2>conftest.er1
5861 ac_status=$?
5862 grep -v '^ *+' conftest.er1 >conftest.err
5863 rm -f conftest.er1
5864 cat conftest.err >&5
5865 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5866 (exit $ac_status); } && {
5867 test -z "$ac_c_werror_flag" ||
5868 test ! -s conftest.err
5869 } && test -s conftest.$ac_objext; then
5870 :
5871else
5872 $as_echo "$as_me: failed program was:" >&5
5873sed 's/^/| /' conftest.$ac_ext >&5
5874
5875 ac_cv_type_off_t=yes
5876fi
5877
5878rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5879else
5880 $as_echo "$as_me: failed program was:" >&5
5881sed 's/^/| /' conftest.$ac_ext >&5
5882
5883
5884fi
5885
5886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5887fi
5888{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5889$as_echo "$ac_cv_type_off_t" >&6; }
5890if test "x$ac_cv_type_off_t" = x""yes; then
5891 :
5892else
5893
5894cat >>confdefs.h <<_ACEOF
5895#define off_t long int
5896_ACEOF
5897
5898fi
5899
5900{ $as_echo "$as_me:$LINENO: checking for pid_t" >&5
5901$as_echo_n "checking for pid_t... " >&6; }
5902if test "${ac_cv_type_pid_t+set}" = set; then
5903 $as_echo_n "(cached) " >&6
5904else
5905 ac_cv_type_pid_t=no
5906cat >conftest.$ac_ext <<_ACEOF
5907/* confdefs.h. */
5908_ACEOF
5909cat confdefs.h >>conftest.$ac_ext
5910cat >>conftest.$ac_ext <<_ACEOF
5911/* end confdefs.h. */
5912$ac_includes_default
5913int
5914main ()
5915{
5916if (sizeof (pid_t))
5917 return 0;
5918 ;
5919 return 0;
5920}
5921_ACEOF
5922rm -f conftest.$ac_objext
5923if { (ac_try="$ac_compile"
5924case "(($ac_try" in
5925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5926 *) ac_try_echo=$ac_try;;
5927esac
5928eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5929$as_echo "$ac_try_echo") >&5
d0191583
JM
5930 (eval "$ac_compile") 2>conftest.er1
5931 ac_status=$?
5932 grep -v '^ *+' conftest.er1 >conftest.err
5933 rm -f conftest.er1
5934 cat conftest.err >&5
ec6a6fbe 5935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
5936 (exit $ac_status); } && {
5937 test -z "$ac_c_werror_flag" ||
5938 test ! -s conftest.err
5939 } && test -s conftest.$ac_objext; then
ec6a6fbe 5940 cat >conftest.$ac_ext <<_ACEOF
d0191583
JM
5941/* confdefs.h. */
5942_ACEOF
5943cat confdefs.h >>conftest.$ac_ext
5944cat >>conftest.$ac_ext <<_ACEOF
5945/* end confdefs.h. */
5946$ac_includes_default
5947int
5948main ()
5949{
ec6a6fbe
AK
5950if (sizeof ((pid_t)))
5951 return 0;
d0191583
JM
5952 ;
5953 return 0;
5954}
5955_ACEOF
5956rm -f conftest.$ac_objext
5957if { (ac_try="$ac_compile"
5958case "(($ac_try" in
5959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5960 *) ac_try_echo=$ac_try;;
5961esac
ec6a6fbe
AK
5962eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5963$as_echo "$ac_try_echo") >&5
d0191583
JM
5964 (eval "$ac_compile") 2>conftest.er1
5965 ac_status=$?
5966 grep -v '^ *+' conftest.er1 >conftest.err
5967 rm -f conftest.er1
5968 cat conftest.err >&5
ec6a6fbe 5969 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
5970 (exit $ac_status); } && {
5971 test -z "$ac_c_werror_flag" ||
5972 test ! -s conftest.err
5973 } && test -s conftest.$ac_objext; then
ec6a6fbe 5974 :
d0191583 5975else
ec6a6fbe 5976 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
5977sed 's/^/| /' conftest.$ac_ext >&5
5978
ec6a6fbe 5979 ac_cv_type_pid_t=yes
d0191583
JM
5980fi
5981
5982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
5983else
5984 $as_echo "$as_me: failed program was:" >&5
5985sed 's/^/| /' conftest.$ac_ext >&5
5986
5987
d0191583
JM
5988fi
5989
5990rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5991fi
ec6a6fbe
AK
5992{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
5993$as_echo "$ac_cv_type_pid_t" >&6; }
5994if test "x$ac_cv_type_pid_t" = x""yes; then
5995 :
5996else
d0191583
JM
5997
5998cat >>confdefs.h <<_ACEOF
ec6a6fbe 5999#define pid_t int
d0191583
JM
6000_ACEOF
6001
d0191583 6002fi
8ce0cbda 6003
ec6a6fbe
AK
6004{ $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6005$as_echo_n "checking return type of signal handlers... " >&6; }
6006if test "${ac_cv_type_signal+set}" = set; then
6007 $as_echo_n "(cached) " >&6
ad6254c5 6008else
b145d876
ZK
6009 cat >conftest.$ac_ext <<_ACEOF
6010/* confdefs.h. */
6011_ACEOF
6012cat confdefs.h >>conftest.$ac_ext
6013cat >>conftest.$ac_ext <<_ACEOF
6014/* end confdefs.h. */
ec6a6fbe
AK
6015#include <sys/types.h>
6016#include <signal.h>
6017
b145d876
ZK
6018int
6019main ()
6020{
ec6a6fbe 6021return *(signal (0, 0)) (0) == 1;
ad6254c5
AK
6022 ;
6023 return 0;
6024}
6025_ACEOF
6026rm -f conftest.$ac_objext
7a197a62
AK
6027if { (ac_try="$ac_compile"
6028case "(($ac_try" in
6029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6030 *) ac_try_echo=$ac_try;;
6031esac
ec6a6fbe
AK
6032eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6033$as_echo "$ac_try_echo") >&5
7a197a62 6034 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6035 ac_status=$?
8a2fc586
AK
6036 grep -v '^ *+' conftest.er1 >conftest.err
6037 rm -f conftest.er1
6038 cat conftest.err >&5
ec6a6fbe 6039 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6040 (exit $ac_status); } && {
6041 test -z "$ac_c_werror_flag" ||
6042 test ! -s conftest.err
6043 } && test -s conftest.$ac_objext; then
ec6a6fbe 6044 ac_cv_type_signal=int
b145d876 6045else
ec6a6fbe 6046 $as_echo "$as_me: failed program was:" >&5
b145d876
ZK
6047sed 's/^/| /' conftest.$ac_ext >&5
6048
ec6a6fbe 6049 ac_cv_type_signal=void
ad6254c5 6050fi
b145d876
ZK
6051
6052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6053fi
ec6a6fbe
AK
6054{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6055$as_echo "$ac_cv_type_signal" >&6; }
80992638 6056
ad6254c5 6057cat >>confdefs.h <<_ACEOF
ec6a6fbe 6058#define RETSIGTYPE $ac_cv_type_signal
ad6254c5 6059_ACEOF
199e490e 6060
b896caa1 6061
ec6a6fbe
AK
6062{ $as_echo "$as_me:$LINENO: checking for size_t" >&5
6063$as_echo_n "checking for size_t... " >&6; }
6064if test "${ac_cv_type_size_t+set}" = set; then
6065 $as_echo_n "(cached) " >&6
ad6254c5 6066else
ec6a6fbe
AK
6067 ac_cv_type_size_t=no
6068cat >conftest.$ac_ext <<_ACEOF
b145d876
ZK
6069/* confdefs.h. */
6070_ACEOF
6071cat confdefs.h >>conftest.$ac_ext
6072cat >>conftest.$ac_ext <<_ACEOF
6073/* end confdefs.h. */
6074$ac_includes_default
6075int
6076main ()
6077{
ec6a6fbe
AK
6078if (sizeof (size_t))
6079 return 0;
ad6254c5
AK
6080 ;
6081 return 0;
6082}
6083_ACEOF
6084rm -f conftest.$ac_objext
7a197a62
AK
6085if { (ac_try="$ac_compile"
6086case "(($ac_try" in
6087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6088 *) ac_try_echo=$ac_try;;
6089esac
ec6a6fbe
AK
6090eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6091$as_echo "$ac_try_echo") >&5
7a197a62 6092 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6093 ac_status=$?
8a2fc586
AK
6094 grep -v '^ *+' conftest.er1 >conftest.err
6095 rm -f conftest.er1
6096 cat conftest.err >&5
ec6a6fbe 6097 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6098 (exit $ac_status); } && {
6099 test -z "$ac_c_werror_flag" ||
6100 test ! -s conftest.err
6101 } && test -s conftest.$ac_objext; then
d0191583
JM
6102 cat >conftest.$ac_ext <<_ACEOF
6103/* confdefs.h. */
6104_ACEOF
6105cat confdefs.h >>conftest.$ac_ext
6106cat >>conftest.$ac_ext <<_ACEOF
6107/* end confdefs.h. */
ec6a6fbe 6108$ac_includes_default
d0191583
JM
6109int
6110main ()
6111{
ec6a6fbe
AK
6112if (sizeof ((size_t)))
6113 return 0;
d0191583
JM
6114 ;
6115 return 0;
6116}
6117_ACEOF
6118rm -f conftest.$ac_objext
6119if { (ac_try="$ac_compile"
6120case "(($ac_try" in
6121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6122 *) ac_try_echo=$ac_try;;
6123esac
ec6a6fbe
AK
6124eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6125$as_echo "$ac_try_echo") >&5
d0191583
JM
6126 (eval "$ac_compile") 2>conftest.er1
6127 ac_status=$?
6128 grep -v '^ *+' conftest.er1 >conftest.err
6129 rm -f conftest.er1
6130 cat conftest.err >&5
ec6a6fbe 6131 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
6132 (exit $ac_status); } && {
6133 test -z "$ac_c_werror_flag" ||
6134 test ! -s conftest.err
6135 } && test -s conftest.$ac_objext; then
ec6a6fbe 6136 :
d0191583 6137else
ec6a6fbe 6138 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
6139sed 's/^/| /' conftest.$ac_ext >&5
6140
ec6a6fbe
AK
6141 ac_cv_type_size_t=yes
6142fi
6143
6144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6145else
6146 $as_echo "$as_me: failed program was:" >&5
6147sed 's/^/| /' conftest.$ac_ext >&5
6148
6149
d0191583
JM
6150fi
6151
6152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6153fi
ec6a6fbe
AK
6154{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6155$as_echo "$ac_cv_type_size_t" >&6; }
6156if test "x$ac_cv_type_size_t" = x""yes; then
6157 :
6158else
d0191583
JM
6159
6160cat >>confdefs.h <<_ACEOF
ec6a6fbe 6161#define size_t unsigned int
d0191583
JM
6162_ACEOF
6163
ec6a6fbe 6164fi
d0191583 6165
ec6a6fbe
AK
6166{ $as_echo "$as_me:$LINENO: checking for mode_t" >&5
6167$as_echo_n "checking for mode_t... " >&6; }
6168if test "${ac_cv_type_mode_t+set}" = set; then
6169 $as_echo_n "(cached) " >&6
8106cdd5 6170else
ec6a6fbe
AK
6171 ac_cv_type_mode_t=no
6172cat >conftest.$ac_ext <<_ACEOF
b145d876
ZK
6173/* confdefs.h. */
6174_ACEOF
6175cat confdefs.h >>conftest.$ac_ext
6176cat >>conftest.$ac_ext <<_ACEOF
6177/* end confdefs.h. */
6178$ac_includes_default
6179int
6180main ()
6181{
ec6a6fbe
AK
6182if (sizeof (mode_t))
6183 return 0;
ad6254c5
AK
6184 ;
6185 return 0;
6186}
6187_ACEOF
6188rm -f conftest.$ac_objext
7a197a62
AK
6189if { (ac_try="$ac_compile"
6190case "(($ac_try" in
6191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6192 *) ac_try_echo=$ac_try;;
6193esac
ec6a6fbe
AK
6194eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6195$as_echo "$ac_try_echo") >&5
7a197a62 6196 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6197 ac_status=$?
8a2fc586
AK
6198 grep -v '^ *+' conftest.er1 >conftest.err
6199 rm -f conftest.er1
6200 cat conftest.err >&5
ec6a6fbe 6201 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6202 (exit $ac_status); } && {
6203 test -z "$ac_c_werror_flag" ||
6204 test ! -s conftest.err
6205 } && test -s conftest.$ac_objext; then
b145d876
ZK
6206 cat >conftest.$ac_ext <<_ACEOF
6207/* confdefs.h. */
6208_ACEOF
6209cat confdefs.h >>conftest.$ac_ext
6210cat >>conftest.$ac_ext <<_ACEOF
6211/* end confdefs.h. */
6212$ac_includes_default
6213int
6214main ()
6215{
ec6a6fbe
AK
6216if (sizeof ((mode_t)))
6217 return 0;
ad6254c5
AK
6218 ;
6219 return 0;
6220}
6221_ACEOF
6222rm -f conftest.$ac_objext
7a197a62
AK
6223if { (ac_try="$ac_compile"
6224case "(($ac_try" in
6225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6226 *) ac_try_echo=$ac_try;;
6227esac
ec6a6fbe
AK
6228eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6229$as_echo "$ac_try_echo") >&5
7a197a62 6230 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6231 ac_status=$?
8a2fc586
AK
6232 grep -v '^ *+' conftest.er1 >conftest.err
6233 rm -f conftest.er1
6234 cat conftest.err >&5
ec6a6fbe 6235 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6236 (exit $ac_status); } && {
6237 test -z "$ac_c_werror_flag" ||
6238 test ! -s conftest.err
6239 } && test -s conftest.$ac_objext; then
ec6a6fbe
AK
6240 :
6241else
6242 $as_echo "$as_me: failed program was:" >&5
6243sed 's/^/| /' conftest.$ac_ext >&5
6244
6245 ac_cv_type_mode_t=yes
6246fi
6247
6248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fddafd51 6249else
ec6a6fbe 6250 $as_echo "$as_me: failed program was:" >&5
fddafd51
ZK
6251sed 's/^/| /' conftest.$ac_ext >&5
6252
ec6a6fbe 6253
80992638 6254fi
7a197a62
AK
6255
6256rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 6257fi
ec6a6fbe
AK
6258{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6259$as_echo "$ac_cv_type_mode_t" >&6; }
6260if test "x$ac_cv_type_mode_t" = x""yes; then
ad6254c5
AK
6261 :
6262else
80992638 6263
ad6254c5
AK
6264cat >>confdefs.h <<_ACEOF
6265#define mode_t int
6266_ACEOF
6267
6268fi
6269
ec6a6fbe
AK
6270{ $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
6271$as_echo_n "checking for struct stat.st_rdev... " >&6; }
ad6254c5 6272if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
ec6a6fbe 6273 $as_echo_n "(cached) " >&6
ad6254c5
AK
6274else
6275 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6276/* confdefs.h. */
6277_ACEOF
6278cat confdefs.h >>conftest.$ac_ext
6279cat >>conftest.$ac_ext <<_ACEOF
6280/* end confdefs.h. */
6281$ac_includes_default
6282int
6283main ()
6284{
6285static struct stat ac_aggr;
6286if (ac_aggr.st_rdev)
6287return 0;
6288 ;
6289 return 0;
6290}
6291_ACEOF
6292rm -f conftest.$ac_objext
7a197a62
AK
6293if { (ac_try="$ac_compile"
6294case "(($ac_try" in
6295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6296 *) ac_try_echo=$ac_try;;
6297esac
ec6a6fbe
AK
6298eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6299$as_echo "$ac_try_echo") >&5
7a197a62 6300 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6301 ac_status=$?
8a2fc586
AK
6302 grep -v '^ *+' conftest.er1 >conftest.err
6303 rm -f conftest.er1
6304 cat conftest.err >&5
ec6a6fbe 6305 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6306 (exit $ac_status); } && {
6307 test -z "$ac_c_werror_flag" ||
6308 test ! -s conftest.err
6309 } && test -s conftest.$ac_objext; then
ad6254c5
AK
6310 ac_cv_member_struct_stat_st_rdev=yes
6311else
ec6a6fbe 6312 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6313sed 's/^/| /' conftest.$ac_ext >&5
6314
7a197a62 6315 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6316/* confdefs.h. */
6317_ACEOF
6318cat confdefs.h >>conftest.$ac_ext
6319cat >>conftest.$ac_ext <<_ACEOF
6320/* end confdefs.h. */
6321$ac_includes_default
6322int
6323main ()
6324{
6325static struct stat ac_aggr;
6326if (sizeof ac_aggr.st_rdev)
6327return 0;
6328 ;
6329 return 0;
6330}
6331_ACEOF
6332rm -f conftest.$ac_objext
7a197a62
AK
6333if { (ac_try="$ac_compile"
6334case "(($ac_try" in
6335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6336 *) ac_try_echo=$ac_try;;
6337esac
ec6a6fbe
AK
6338eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6339$as_echo "$ac_try_echo") >&5
7a197a62 6340 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6341 ac_status=$?
8a2fc586
AK
6342 grep -v '^ *+' conftest.er1 >conftest.err
6343 rm -f conftest.er1
6344 cat conftest.err >&5
ec6a6fbe 6345 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6346 (exit $ac_status); } && {
6347 test -z "$ac_c_werror_flag" ||
6348 test ! -s conftest.err
6349 } && test -s conftest.$ac_objext; then
ad6254c5
AK
6350 ac_cv_member_struct_stat_st_rdev=yes
6351else
ec6a6fbe 6352 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6353sed 's/^/| /' conftest.$ac_ext >&5
6354
7a197a62 6355 ac_cv_member_struct_stat_st_rdev=no
ad6254c5 6356fi
7a197a62
AK
6357
6358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 6359fi
7a197a62
AK
6360
6361rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 6362fi
ec6a6fbe
AK
6363{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
6364$as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; }
6365if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then
ad6254c5
AK
6366
6367cat >>confdefs.h <<_ACEOF
6368#define HAVE_STRUCT_STAT_ST_RDEV 1
6369_ACEOF
6370
6371
ad6254c5
AK
6372fi
6373
ec6a6fbe
AK
6374{ $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6375$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
ad6254c5 6376if test "${ac_cv_struct_tm+set}" = set; then
ec6a6fbe 6377 $as_echo_n "(cached) " >&6
ad6254c5
AK
6378else
6379 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6380/* confdefs.h. */
6381_ACEOF
6382cat confdefs.h >>conftest.$ac_ext
6383cat >>conftest.$ac_ext <<_ACEOF
6384/* end confdefs.h. */
6385#include <sys/types.h>
6386#include <time.h>
6387
6388int
6389main ()
6390{
25fbec5b
AK
6391struct tm tm;
6392 int *p = &tm.tm_sec;
ec6a6fbe 6393 return !p;
ad6254c5
AK
6394 ;
6395 return 0;
6396}
6397_ACEOF
6398rm -f conftest.$ac_objext
7a197a62
AK
6399if { (ac_try="$ac_compile"
6400case "(($ac_try" in
6401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6402 *) ac_try_echo=$ac_try;;
6403esac
ec6a6fbe
AK
6404eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6405$as_echo "$ac_try_echo") >&5
7a197a62 6406 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6407 ac_status=$?
8a2fc586
AK
6408 grep -v '^ *+' conftest.er1 >conftest.err
6409 rm -f conftest.er1
6410 cat conftest.err >&5
ec6a6fbe 6411 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6412 (exit $ac_status); } && {
6413 test -z "$ac_c_werror_flag" ||
6414 test ! -s conftest.err
6415 } && test -s conftest.$ac_objext; then
ad6254c5
AK
6416 ac_cv_struct_tm=time.h
6417else
ec6a6fbe 6418 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6419sed 's/^/| /' conftest.$ac_ext >&5
6420
7a197a62 6421 ac_cv_struct_tm=sys/time.h
ad6254c5 6422fi
7a197a62
AK
6423
6424rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 6425fi
ec6a6fbe
AK
6426{ $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6427$as_echo "$ac_cv_struct_tm" >&6; }
ad6254c5
AK
6428if test $ac_cv_struct_tm = sys/time.h; then
6429
6430cat >>confdefs.h <<\_ACEOF
6431#define TM_IN_SYS_TIME 1
6432_ACEOF
6433
6434fi
809fae91 6435
795ca3e5 6436
80992638 6437################################################################################
ad6254c5
AK
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
d0191583
JM
6452
6453
6454
6455for ac_func in gethostname getpagesize memset mkdir rmdir munmap setlocale \
6456 strcasecmp strchr strdup strncasecmp strerror strrchr strstr strtol strtoul \
6457 uname
ad6254c5 6458do
ec6a6fbe
AK
6459as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6460{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6461$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 6462if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 6463 $as_echo_n "(cached) " >&6
795ca3e5 6464else
ad6254c5 6465 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6466/* confdefs.h. */
6467_ACEOF
6468cat confdefs.h >>conftest.$ac_ext
6469cat >>conftest.$ac_ext <<_ACEOF
6470/* end confdefs.h. */
8a2fc586
AK
6471/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6472 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6473#define $ac_func innocuous_$ac_func
6474
ad6254c5
AK
6475/* System header to define __stub macros and hopefully few prototypes,
6476 which can conflict with char $ac_func (); below.
6477 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6478 <limits.h> exists even on freestanding compilers. */
8a2fc586 6479
ad6254c5
AK
6480#ifdef __STDC__
6481# include <limits.h>
6482#else
6483# include <assert.h>
6484#endif
8a2fc586
AK
6485
6486#undef $ac_func
6487
7a197a62
AK
6488/* Override any GCC internal prototype to avoid an error.
6489 Use char because int might match the return type of a GCC
6490 builtin and then its argument prototype would still apply. */
ad6254c5
AK
6491#ifdef __cplusplus
6492extern "C"
ad6254c5 6493#endif
ad6254c5
AK
6494char $ac_func ();
6495/* The GNU C library defines this for functions which it implements
6496 to always fail with ENOSYS. Some functions are actually named
6497 something starting with __ and the normal name is an alias. */
7a197a62 6498#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 6499choke me
ad6254c5
AK
6500#endif
6501
6502int
6503main ()
6504{
7a197a62 6505return $ac_func ();
ad6254c5
AK
6506 ;
6507 return 0;
6508}
6509_ACEOF
6510rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
6511if { (ac_try="$ac_link"
6512case "(($ac_try" in
6513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6514 *) ac_try_echo=$ac_try;;
6515esac
ec6a6fbe
AK
6516eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6517$as_echo "$ac_try_echo") >&5
7a197a62 6518 (eval "$ac_link") 2>conftest.er1
ad6254c5 6519 ac_status=$?
8a2fc586
AK
6520 grep -v '^ *+' conftest.er1 >conftest.err
6521 rm -f conftest.er1
6522 cat conftest.err >&5
ec6a6fbe 6523 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6524 (exit $ac_status); } && {
6525 test -z "$ac_c_werror_flag" ||
6526 test ! -s conftest.err
ec6a6fbe
AK
6527 } && test -s conftest$ac_exeext && {
6528 test "$cross_compiling" = yes ||
6529 $as_test_x conftest$ac_exeext
6530 }; then
fc54be10
AK
6531 eval "$as_ac_var=yes"
6532else
ec6a6fbe 6533 $as_echo "$as_me: failed program was:" >&5
fc54be10
AK
6534sed 's/^/| /' conftest.$ac_ext >&5
6535
6536 eval "$as_ac_var=no"
6537fi
6538
ec6a6fbe 6539rm -rf conftest.dSYM
25fbec5b 6540rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
fc54be10
AK
6541 conftest$ac_exeext conftest.$ac_ext
6542fi
ec6a6fbe
AK
6543ac_res=`eval 'as_val=${'$as_ac_var'}
6544 $as_echo "$as_val"'`
6545 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6546$as_echo "$ac_res" >&6; }
6547as_val=`eval 'as_val=${'$as_ac_var'}
6548 $as_echo "$as_val"'`
6549 if test "x$as_val" = x""yes; then
ad6254c5 6550 cat >>confdefs.h <<_ACEOF
ec6a6fbe 6551#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
6552_ACEOF
6553
6554else
ec6a6fbe
AK
6555 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
6556$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5
AK
6557 { (exit 1); exit 1; }; }
6558fi
6559done
795ca3e5 6560
a0f9708e
AK
6561
6562for ac_func in siginterrupt
6563do
6564as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6565{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6566$as_echo_n "checking for $ac_func... " >&6; }
6567if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6568 $as_echo_n "(cached) " >&6
6569else
6570 cat >conftest.$ac_ext <<_ACEOF
6571/* confdefs.h. */
6572_ACEOF
6573cat confdefs.h >>conftest.$ac_ext
6574cat >>conftest.$ac_ext <<_ACEOF
6575/* end confdefs.h. */
6576/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6577 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6578#define $ac_func innocuous_$ac_func
6579
6580/* System header to define __stub macros and hopefully few prototypes,
6581 which can conflict with char $ac_func (); below.
6582 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6583 <limits.h> exists even on freestanding compilers. */
6584
6585#ifdef __STDC__
6586# include <limits.h>
6587#else
6588# include <assert.h>
6589#endif
6590
6591#undef $ac_func
6592
6593/* Override any GCC internal prototype to avoid an error.
6594 Use char because int might match the return type of a GCC
6595 builtin and then its argument prototype would still apply. */
6596#ifdef __cplusplus
6597extern "C"
6598#endif
6599char $ac_func ();
6600/* The GNU C library defines this for functions which it implements
6601 to always fail with ENOSYS. Some functions are actually named
6602 something starting with __ and the normal name is an alias. */
6603#if defined __stub_$ac_func || defined __stub___$ac_func
6604choke me
6605#endif
6606
6607int
6608main ()
6609{
6610return $ac_func ();
6611 ;
6612 return 0;
6613}
6614_ACEOF
6615rm -f conftest.$ac_objext conftest$ac_exeext
6616if { (ac_try="$ac_link"
6617case "(($ac_try" in
6618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6619 *) ac_try_echo=$ac_try;;
6620esac
6621eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6622$as_echo "$ac_try_echo") >&5
6623 (eval "$ac_link") 2>conftest.er1
6624 ac_status=$?
6625 grep -v '^ *+' conftest.er1 >conftest.err
6626 rm -f conftest.er1
6627 cat conftest.err >&5
6628 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6629 (exit $ac_status); } && {
6630 test -z "$ac_c_werror_flag" ||
6631 test ! -s conftest.err
6632 } && test -s conftest$ac_exeext && {
6633 test "$cross_compiling" = yes ||
6634 $as_test_x conftest$ac_exeext
6635 }; then
6636 eval "$as_ac_var=yes"
6637else
6638 $as_echo "$as_me: failed program was:" >&5
6639sed 's/^/| /' conftest.$ac_ext >&5
6640
6641 eval "$as_ac_var=no"
6642fi
6643
6644rm -rf conftest.dSYM
6645rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6646 conftest$ac_exeext conftest.$ac_ext
6647fi
6648ac_res=`eval 'as_val=${'$as_ac_var'}
6649 $as_echo "$as_val"'`
6650 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6651$as_echo "$ac_res" >&6; }
6652as_val=`eval 'as_val=${'$as_ac_var'}
6653 $as_echo "$as_val"'`
6654 if test "x$as_val" = x""yes; then
6655 cat >>confdefs.h <<_ACEOF
6656#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6657_ACEOF
6658
6659fi
6660done
6661
ad6254c5
AK
6662# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6663# for constant arguments. Useless!
ec6a6fbe
AK
6664{ $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
6665$as_echo_n "checking for working alloca.h... " >&6; }
ad6254c5 6666if test "${ac_cv_working_alloca_h+set}" = set; then
ec6a6fbe 6667 $as_echo_n "(cached) " >&6
ad6254c5
AK
6668else
6669 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6670/* confdefs.h. */
6671_ACEOF
6672cat confdefs.h >>conftest.$ac_ext
6673cat >>conftest.$ac_ext <<_ACEOF
6674/* end confdefs.h. */
6675#include <alloca.h>
6676int
6677main ()
6678{
6679char *p = (char *) alloca (2 * sizeof (int));
7a197a62 6680 if (p) return 0;
ad6254c5
AK
6681 ;
6682 return 0;
6683}
6684_ACEOF
6685rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
6686if { (ac_try="$ac_link"
6687case "(($ac_try" in
6688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6689 *) ac_try_echo=$ac_try;;
6690esac
ec6a6fbe
AK
6691eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6692$as_echo "$ac_try_echo") >&5
7a197a62 6693 (eval "$ac_link") 2>conftest.er1
ad6254c5 6694 ac_status=$?
8a2fc586
AK
6695 grep -v '^ *+' conftest.er1 >conftest.err
6696 rm -f conftest.er1
6697 cat conftest.err >&5
ec6a6fbe 6698 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6699 (exit $ac_status); } && {
6700 test -z "$ac_c_werror_flag" ||
6701 test ! -s conftest.err
ec6a6fbe
AK
6702 } && test -s conftest$ac_exeext && {
6703 test "$cross_compiling" = yes ||
6704 $as_test_x conftest$ac_exeext
6705 }; then
ad6254c5
AK
6706 ac_cv_working_alloca_h=yes
6707else
ec6a6fbe 6708 $as_echo "$as_me: failed program was:" >&5
ad6254c5 6709sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 6710
7a197a62 6711 ac_cv_working_alloca_h=no
ad6254c5 6712fi
7a197a62 6713
ec6a6fbe 6714rm -rf conftest.dSYM
25fbec5b 6715rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 6716 conftest$ac_exeext conftest.$ac_ext
ad6254c5 6717fi
ec6a6fbe
AK
6718{ $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6719$as_echo "$ac_cv_working_alloca_h" >&6; }
ad6254c5
AK
6720if test $ac_cv_working_alloca_h = yes; then
6721
6722cat >>confdefs.h <<\_ACEOF
6723#define HAVE_ALLOCA_H 1
6724_ACEOF
6725
6726fi
6727
ec6a6fbe
AK
6728{ $as_echo "$as_me:$LINENO: checking for alloca" >&5
6729$as_echo_n "checking for alloca... " >&6; }
ad6254c5 6730if test "${ac_cv_func_alloca_works+set}" = set; then
ec6a6fbe 6731 $as_echo_n "(cached) " >&6
ad6254c5
AK
6732else
6733 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6734/* confdefs.h. */
6735_ACEOF
6736cat confdefs.h >>conftest.$ac_ext
6737cat >>conftest.$ac_ext <<_ACEOF
6738/* end confdefs.h. */
6739#ifdef __GNUC__
6740# define alloca __builtin_alloca
6741#else
6742# ifdef _MSC_VER
6743# include <malloc.h>
6744# define alloca _alloca
6745# else
25fbec5b 6746# ifdef HAVE_ALLOCA_H
ad6254c5
AK
6747# include <alloca.h>
6748# else
6749# ifdef _AIX
6750 #pragma alloca
6751# else
6752# ifndef alloca /* predefined by HP cc +Olibcalls */
6753char *alloca ();
6754# endif
6755# endif
6756# endif
6757# endif
6758#endif
6759
6760int
6761main ()
6762{
6763char *p = (char *) alloca (1);
7a197a62 6764 if (p) return 0;
ad6254c5
AK
6765 ;
6766 return 0;
6767}
6768_ACEOF
6769rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
6770if { (ac_try="$ac_link"
6771case "(($ac_try" in
6772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6773 *) ac_try_echo=$ac_try;;
6774esac
ec6a6fbe
AK
6775eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6776$as_echo "$ac_try_echo") >&5
7a197a62 6777 (eval "$ac_link") 2>conftest.er1
ad6254c5 6778 ac_status=$?
8a2fc586
AK
6779 grep -v '^ *+' conftest.er1 >conftest.err
6780 rm -f conftest.er1
6781 cat conftest.err >&5
ec6a6fbe 6782 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6783 (exit $ac_status); } && {
6784 test -z "$ac_c_werror_flag" ||
6785 test ! -s conftest.err
ec6a6fbe
AK
6786 } && test -s conftest$ac_exeext && {
6787 test "$cross_compiling" = yes ||
6788 $as_test_x conftest$ac_exeext
6789 }; then
ad6254c5
AK
6790 ac_cv_func_alloca_works=yes
6791else
ec6a6fbe 6792 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6793sed 's/^/| /' conftest.$ac_ext >&5
6794
7a197a62 6795 ac_cv_func_alloca_works=no
ad6254c5 6796fi
7a197a62 6797
ec6a6fbe 6798rm -rf conftest.dSYM
25fbec5b 6799rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 6800 conftest$ac_exeext conftest.$ac_ext
ad6254c5 6801fi
ec6a6fbe
AK
6802{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6803$as_echo "$ac_cv_func_alloca_works" >&6; }
ad6254c5
AK
6804
6805if test $ac_cv_func_alloca_works = yes; then
6806
6807cat >>confdefs.h <<\_ACEOF
6808#define HAVE_ALLOCA 1
6809_ACEOF
6810
6811else
6812 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6813# that cause trouble. Some versions do not even contain alloca or
6814# contain a buggy version. If you still want to use their alloca,
6815# use ar to extract alloca.o from them instead of compiling alloca.c.
6816
7a197a62 6817ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
ad6254c5
AK
6818
6819cat >>confdefs.h <<\_ACEOF
6820#define C_ALLOCA 1
6821_ACEOF
6822
6823
ec6a6fbe
AK
6824{ $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6825$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
ad6254c5 6826if test "${ac_cv_os_cray+set}" = set; then
ec6a6fbe 6827 $as_echo_n "(cached) " >&6
ad6254c5
AK
6828else
6829 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6830/* confdefs.h. */
6831_ACEOF
6832cat confdefs.h >>conftest.$ac_ext
6833cat >>conftest.$ac_ext <<_ACEOF
6834/* end confdefs.h. */
7a197a62 6835#if defined CRAY && ! defined CRAY2
ad6254c5
AK
6836webecray
6837#else
6838wenotbecray
6839#endif
6840
6841_ACEOF
795ca3e5 6842if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ad6254c5
AK
6843 $EGREP "webecray" >/dev/null 2>&1; then
6844 ac_cv_os_cray=yes
6845else
6846 ac_cv_os_cray=no
795ca3e5
AK
6847fi
6848rm -f conftest*
6849
795ca3e5 6850fi
ec6a6fbe
AK
6851{ $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6852$as_echo "$ac_cv_os_cray" >&6; }
ad6254c5
AK
6853if test $ac_cv_os_cray = yes; then
6854 for ac_func in _getb67 GETB67 getb67; do
ec6a6fbe
AK
6855 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6856{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6857$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 6858if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 6859 $as_echo_n "(cached) " >&6
ad6254c5
AK
6860else
6861 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6862/* confdefs.h. */
6863_ACEOF
6864cat confdefs.h >>conftest.$ac_ext
6865cat >>conftest.$ac_ext <<_ACEOF
6866/* end confdefs.h. */
8a2fc586
AK
6867/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6868 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6869#define $ac_func innocuous_$ac_func
6870
ad6254c5
AK
6871/* System header to define __stub macros and hopefully few prototypes,
6872 which can conflict with char $ac_func (); below.
6873 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6874 <limits.h> exists even on freestanding compilers. */
8a2fc586 6875
ad6254c5
AK
6876#ifdef __STDC__
6877# include <limits.h>
6878#else
6879# include <assert.h>
6880#endif
8a2fc586
AK
6881
6882#undef $ac_func
6883
7a197a62
AK
6884/* Override any GCC internal prototype to avoid an error.
6885 Use char because int might match the return type of a GCC
6886 builtin and then its argument prototype would still apply. */
ad6254c5
AK
6887#ifdef __cplusplus
6888extern "C"
ad6254c5 6889#endif
ad6254c5
AK
6890char $ac_func ();
6891/* The GNU C library defines this for functions which it implements
6892 to always fail with ENOSYS. Some functions are actually named
6893 something starting with __ and the normal name is an alias. */
7a197a62 6894#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 6895choke me
ad6254c5
AK
6896#endif
6897
6898int
6899main ()
6900{
7a197a62 6901return $ac_func ();
ad6254c5
AK
6902 ;
6903 return 0;
6904}
6905_ACEOF
6906rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
6907if { (ac_try="$ac_link"
6908case "(($ac_try" in
6909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6910 *) ac_try_echo=$ac_try;;
6911esac
ec6a6fbe
AK
6912eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6913$as_echo "$ac_try_echo") >&5
7a197a62 6914 (eval "$ac_link") 2>conftest.er1
ad6254c5 6915 ac_status=$?
8a2fc586
AK
6916 grep -v '^ *+' conftest.er1 >conftest.err
6917 rm -f conftest.er1
6918 cat conftest.err >&5
ec6a6fbe 6919 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6920 (exit $ac_status); } && {
6921 test -z "$ac_c_werror_flag" ||
6922 test ! -s conftest.err
ec6a6fbe
AK
6923 } && test -s conftest$ac_exeext && {
6924 test "$cross_compiling" = yes ||
6925 $as_test_x conftest$ac_exeext
6926 }; then
ad6254c5
AK
6927 eval "$as_ac_var=yes"
6928else
ec6a6fbe 6929 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6930sed 's/^/| /' conftest.$ac_ext >&5
6931
7a197a62 6932 eval "$as_ac_var=no"
ad6254c5 6933fi
7a197a62 6934
ec6a6fbe 6935rm -rf conftest.dSYM
25fbec5b 6936rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 6937 conftest$ac_exeext conftest.$ac_ext
ad6254c5 6938fi
ec6a6fbe
AK
6939ac_res=`eval 'as_val=${'$as_ac_var'}
6940 $as_echo "$as_val"'`
6941 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6942$as_echo "$ac_res" >&6; }
6943as_val=`eval 'as_val=${'$as_ac_var'}
6944 $as_echo "$as_val"'`
6945 if test "x$as_val" = x""yes; then
80992638 6946
ad6254c5
AK
6947cat >>confdefs.h <<_ACEOF
6948#define CRAY_STACKSEG_END $ac_func
6949_ACEOF
6950
6951 break
6952fi
6953
6954 done
6955fi
6956
ec6a6fbe
AK
6957{ $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6958$as_echo_n "checking stack direction for C alloca... " >&6; }
ad6254c5 6959if test "${ac_cv_c_stack_direction+set}" = set; then
ec6a6fbe 6960 $as_echo_n "(cached) " >&6
ad6254c5
AK
6961else
6962 if test "$cross_compiling" = yes; then
6963 ac_cv_c_stack_direction=0
6964else
6965 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6966/* confdefs.h. */
6967_ACEOF
6968cat confdefs.h >>conftest.$ac_ext
6969cat >>conftest.$ac_ext <<_ACEOF
6970/* end confdefs.h. */
7a197a62 6971$ac_includes_default
ad6254c5
AK
6972int
6973find_stack_direction ()
6974{
6975 static char *addr = 0;
6976 auto char dummy;
6977 if (addr == 0)
6978 {
6979 addr = &dummy;
6980 return find_stack_direction ();
6981 }
6982 else
6983 return (&dummy > addr) ? 1 : -1;
6984}
6985
6986int
6987main ()
6988{
7a197a62 6989 return find_stack_direction () < 0;
ad6254c5
AK
6990}
6991_ACEOF
6992rm -f conftest$ac_exeext
7a197a62
AK
6993if { (ac_try="$ac_link"
6994case "(($ac_try" in
6995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6996 *) ac_try_echo=$ac_try;;
6997esac
ec6a6fbe
AK
6998eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6999$as_echo "$ac_try_echo") >&5
7a197a62 7000 (eval "$ac_link") 2>&5
ad6254c5 7001 ac_status=$?
ec6a6fbe 7002 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7003 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7004 { (case "(($ac_try" in
7005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7006 *) ac_try_echo=$ac_try;;
7007esac
ec6a6fbe
AK
7008eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7009$as_echo "$ac_try_echo") >&5
7a197a62 7010 (eval "$ac_try") 2>&5
ad6254c5 7011 ac_status=$?
ec6a6fbe 7012 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7013 (exit $ac_status); }; }; then
7014 ac_cv_c_stack_direction=1
7015else
ec6a6fbe
AK
7016 $as_echo "$as_me: program exited with status $ac_status" >&5
7017$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7018sed 's/^/| /' conftest.$ac_ext >&5
7019
7020( exit $ac_status )
7021ac_cv_c_stack_direction=-1
7022fi
ec6a6fbe 7023rm -rf conftest.dSYM
7a197a62 7024rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7025fi
7a197a62
AK
7026
7027
ad6254c5 7028fi
ec6a6fbe
AK
7029{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
7030$as_echo "$ac_cv_c_stack_direction" >&6; }
ad6254c5
AK
7031
7032cat >>confdefs.h <<_ACEOF
7033#define STACK_DIRECTION $ac_cv_c_stack_direction
7034_ACEOF
7035
7036
7037fi
7038
ec6a6fbe
AK
7039{ $as_echo "$as_me:$LINENO: checking whether closedir returns void" >&5
7040$as_echo_n "checking whether closedir returns void... " >&6; }
ad6254c5 7041if test "${ac_cv_func_closedir_void+set}" = set; then
ec6a6fbe 7042 $as_echo_n "(cached) " >&6
ad6254c5
AK
7043else
7044 if test "$cross_compiling" = yes; then
7045 ac_cv_func_closedir_void=yes
7046else
7047 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7048/* confdefs.h. */
7049_ACEOF
7050cat confdefs.h >>conftest.$ac_ext
7051cat >>conftest.$ac_ext <<_ACEOF
7052/* end confdefs.h. */
7053$ac_includes_default
7054#include <$ac_header_dirent>
7055#ifndef __cplusplus
7056int closedir ();
7057#endif
7058
7059int
7060main ()
7061{
7a197a62 7062return closedir (opendir (".")) != 0;
ad6254c5
AK
7063 ;
7064 return 0;
7065}
7066_ACEOF
7067rm -f conftest$ac_exeext
7a197a62
AK
7068if { (ac_try="$ac_link"
7069case "(($ac_try" in
7070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7071 *) ac_try_echo=$ac_try;;
7072esac
ec6a6fbe
AK
7073eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7074$as_echo "$ac_try_echo") >&5
7a197a62 7075 (eval "$ac_link") 2>&5
ad6254c5 7076 ac_status=$?
ec6a6fbe 7077 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7078 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7079 { (case "(($ac_try" in
7080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7081 *) ac_try_echo=$ac_try;;
7082esac
ec6a6fbe
AK
7083eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7084$as_echo "$ac_try_echo") >&5
7a197a62 7085 (eval "$ac_try") 2>&5
ad6254c5 7086 ac_status=$?
ec6a6fbe 7087 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7088 (exit $ac_status); }; }; then
7089 ac_cv_func_closedir_void=no
7090else
ec6a6fbe
AK
7091 $as_echo "$as_me: program exited with status $ac_status" >&5
7092$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7093sed 's/^/| /' conftest.$ac_ext >&5
7094
7095( exit $ac_status )
7096ac_cv_func_closedir_void=yes
7097fi
ec6a6fbe 7098rm -rf conftest.dSYM
7a197a62 7099rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7100fi
7a197a62
AK
7101
7102
ad6254c5 7103fi
ec6a6fbe
AK
7104{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
7105$as_echo "$ac_cv_func_closedir_void" >&6; }
ad6254c5
AK
7106if test $ac_cv_func_closedir_void = yes; then
7107
7108cat >>confdefs.h <<\_ACEOF
7109#define CLOSEDIR_VOID 1
7110_ACEOF
7111
7112fi
7113
7114
7a197a62 7115for ac_header in vfork.h
ad6254c5 7116do
ec6a6fbe 7117as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 7118if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
7119 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7120$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 7121if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 7122 $as_echo_n "(cached) " >&6
ad6254c5 7123fi
ec6a6fbe
AK
7124ac_res=`eval 'as_val=${'$as_ac_Header'}
7125 $as_echo "$as_val"'`
7126 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7127$as_echo "$ac_res" >&6; }
ad6254c5
AK
7128else
7129 # Is the header compilable?
ec6a6fbe
AK
7130{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7131$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 7132cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7133/* confdefs.h. */
7134_ACEOF
7135cat confdefs.h >>conftest.$ac_ext
7136cat >>conftest.$ac_ext <<_ACEOF
7137/* end confdefs.h. */
7138$ac_includes_default
7139#include <$ac_header>
7140_ACEOF
7141rm -f conftest.$ac_objext
7a197a62
AK
7142if { (ac_try="$ac_compile"
7143case "(($ac_try" in
7144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7145 *) ac_try_echo=$ac_try;;
7146esac
ec6a6fbe
AK
7147eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7148$as_echo "$ac_try_echo") >&5
7a197a62 7149 (eval "$ac_compile") 2>conftest.er1
ad6254c5 7150 ac_status=$?
8a2fc586
AK
7151 grep -v '^ *+' conftest.er1 >conftest.err
7152 rm -f conftest.er1
7153 cat conftest.err >&5
ec6a6fbe 7154 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7155 (exit $ac_status); } && {
7156 test -z "$ac_c_werror_flag" ||
7157 test ! -s conftest.err
7158 } && test -s conftest.$ac_objext; then
ad6254c5
AK
7159 ac_header_compiler=yes
7160else
ec6a6fbe 7161 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7162sed 's/^/| /' conftest.$ac_ext >&5
7163
7a197a62 7164 ac_header_compiler=no
ad6254c5 7165fi
7a197a62
AK
7166
7167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
7168{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7169$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
7170
7171# Is the header present?
ec6a6fbe
AK
7172{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7173$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 7174cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7175/* confdefs.h. */
7176_ACEOF
7177cat confdefs.h >>conftest.$ac_ext
7178cat >>conftest.$ac_ext <<_ACEOF
7179/* end confdefs.h. */
7180#include <$ac_header>
7181_ACEOF
7a197a62
AK
7182if { (ac_try="$ac_cpp conftest.$ac_ext"
7183case "(($ac_try" in
7184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7185 *) ac_try_echo=$ac_try;;
7186esac
ec6a6fbe
AK
7187eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7188$as_echo "$ac_try_echo") >&5
7a197a62 7189 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
7190 ac_status=$?
7191 grep -v '^ *+' conftest.er1 >conftest.err
7192 rm -f conftest.er1
7193 cat conftest.err >&5
ec6a6fbe 7194 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7195 (exit $ac_status); } >/dev/null && {
7196 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7197 test ! -s conftest.err
7198 }; then
ad6254c5
AK
7199 ac_header_preproc=yes
7200else
ec6a6fbe 7201 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7202sed 's/^/| /' conftest.$ac_ext >&5
7203
7204 ac_header_preproc=no
7205fi
7a197a62 7206
ad6254c5 7207rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
7208{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7209$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
7210
7211# So? What about this header?
8a2fc586
AK
7212case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7213 yes:no: )
ec6a6fbe
AK
7214 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7215$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7216 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7217$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 7218 ac_header_preproc=yes
ad6254c5 7219 ;;
8a2fc586 7220 no:yes:* )
ec6a6fbe
AK
7221 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7222$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7223 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7224$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7225 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7226$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7227 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7228$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7229 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7230$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7231 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7232$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 7233
ad6254c5
AK
7234 ;;
7235esac
ec6a6fbe
AK
7236{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7237$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 7238if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 7239 $as_echo_n "(cached) " >&6
ad6254c5 7240else
8a2fc586 7241 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 7242fi
ec6a6fbe
AK
7243ac_res=`eval 'as_val=${'$as_ac_Header'}
7244 $as_echo "$as_val"'`
7245 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7246$as_echo "$ac_res" >&6; }
ad6254c5 7247
795ca3e5 7248fi
ec6a6fbe
AK
7249as_val=`eval 'as_val=${'$as_ac_Header'}
7250 $as_echo "$as_val"'`
7251 if test "x$as_val" = x""yes; then
ad6254c5 7252 cat >>confdefs.h <<_ACEOF
ec6a6fbe 7253#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
7254_ACEOF
7255
7256fi
7257
7258done
795ca3e5 7259
ad6254c5
AK
7260
7261
7262for ac_func in fork vfork
7263do
ec6a6fbe
AK
7264as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7265{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7266$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 7267if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 7268 $as_echo_n "(cached) " >&6
795ca3e5 7269else
ad6254c5 7270 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7271/* confdefs.h. */
7272_ACEOF
7273cat confdefs.h >>conftest.$ac_ext
7274cat >>conftest.$ac_ext <<_ACEOF
7275/* end confdefs.h. */
8a2fc586
AK
7276/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7277 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7278#define $ac_func innocuous_$ac_func
7279
ad6254c5
AK
7280/* System header to define __stub macros and hopefully few prototypes,
7281 which can conflict with char $ac_func (); below.
7282 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7283 <limits.h> exists even on freestanding compilers. */
8a2fc586 7284
ad6254c5
AK
7285#ifdef __STDC__
7286# include <limits.h>
7287#else
7288# include <assert.h>
795ca3e5 7289#endif
8a2fc586
AK
7290
7291#undef $ac_func
7292
7a197a62
AK
7293/* Override any GCC internal prototype to avoid an error.
7294 Use char because int might match the return type of a GCC
7295 builtin and then its argument prototype would still apply. */
795ca3e5 7296#ifdef __cplusplus
ad6254c5 7297extern "C"
ad6254c5 7298#endif
ad6254c5
AK
7299char $ac_func ();
7300/* The GNU C library defines this for functions which it implements
7301 to always fail with ENOSYS. Some functions are actually named
7302 something starting with __ and the normal name is an alias. */
7a197a62 7303#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 7304choke me
795ca3e5
AK
7305#endif
7306
ad6254c5
AK
7307int
7308main ()
7309{
7a197a62 7310return $ac_func ();
ad6254c5
AK
7311 ;
7312 return 0;
7313}
7314_ACEOF
7315rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
7316if { (ac_try="$ac_link"
7317case "(($ac_try" in
7318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7319 *) ac_try_echo=$ac_try;;
7320esac
ec6a6fbe
AK
7321eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7322$as_echo "$ac_try_echo") >&5
7a197a62 7323 (eval "$ac_link") 2>conftest.er1
ad6254c5 7324 ac_status=$?
8a2fc586
AK
7325 grep -v '^ *+' conftest.er1 >conftest.err
7326 rm -f conftest.er1
7327 cat conftest.err >&5
ec6a6fbe 7328 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7329 (exit $ac_status); } && {
7330 test -z "$ac_c_werror_flag" ||
7331 test ! -s conftest.err
ec6a6fbe
AK
7332 } && test -s conftest$ac_exeext && {
7333 test "$cross_compiling" = yes ||
7334 $as_test_x conftest$ac_exeext
7335 }; then
ad6254c5 7336 eval "$as_ac_var=yes"
795ca3e5 7337else
ec6a6fbe 7338 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7339sed 's/^/| /' conftest.$ac_ext >&5
7340
7a197a62 7341 eval "$as_ac_var=no"
795ca3e5 7342fi
7a197a62 7343
ec6a6fbe 7344rm -rf conftest.dSYM
25fbec5b 7345rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 7346 conftest$ac_exeext conftest.$ac_ext
ad6254c5 7347fi
ec6a6fbe
AK
7348ac_res=`eval 'as_val=${'$as_ac_var'}
7349 $as_echo "$as_val"'`
7350 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7351$as_echo "$ac_res" >&6; }
7352as_val=`eval 'as_val=${'$as_ac_var'}
7353 $as_echo "$as_val"'`
7354 if test "x$as_val" = x""yes; then
ad6254c5 7355 cat >>confdefs.h <<_ACEOF
ec6a6fbe 7356#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
7357_ACEOF
7358
7359fi
7360done
7361
7362if test "x$ac_cv_func_fork" = xyes; then
ec6a6fbe
AK
7363 { $as_echo "$as_me:$LINENO: checking for working fork" >&5
7364$as_echo_n "checking for working fork... " >&6; }
ad6254c5 7365if test "${ac_cv_func_fork_works+set}" = set; then
ec6a6fbe 7366 $as_echo_n "(cached) " >&6
ad6254c5
AK
7367else
7368 if test "$cross_compiling" = yes; then
7369 ac_cv_func_fork_works=cross
7370else
7371 cat >conftest.$ac_ext <<_ACEOF
7a197a62
AK
7372/* confdefs.h. */
7373_ACEOF
7374cat confdefs.h >>conftest.$ac_ext
7375cat >>conftest.$ac_ext <<_ACEOF
7376/* end confdefs.h. */
7377$ac_includes_default
7378int
7379main ()
7380{
7381
7382 /* By Ruediger Kuhlmann. */
7383 return fork () < 0;
7384
7385 ;
7386 return 0;
7387}
ad6254c5
AK
7388_ACEOF
7389rm -f conftest$ac_exeext
7a197a62
AK
7390if { (ac_try="$ac_link"
7391case "(($ac_try" in
7392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7393 *) ac_try_echo=$ac_try;;
7394esac
ec6a6fbe
AK
7395eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7396$as_echo "$ac_try_echo") >&5
7a197a62 7397 (eval "$ac_link") 2>&5
ad6254c5 7398 ac_status=$?
ec6a6fbe 7399 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7400 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7401 { (case "(($ac_try" in
7402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7403 *) ac_try_echo=$ac_try;;
7404esac
ec6a6fbe
AK
7405eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7406$as_echo "$ac_try_echo") >&5
7a197a62 7407 (eval "$ac_try") 2>&5
ad6254c5 7408 ac_status=$?
ec6a6fbe 7409 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7410 (exit $ac_status); }; }; then
7411 ac_cv_func_fork_works=yes
7412else
ec6a6fbe
AK
7413 $as_echo "$as_me: program exited with status $ac_status" >&5
7414$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7415sed 's/^/| /' conftest.$ac_ext >&5
7416
7417( exit $ac_status )
7418ac_cv_func_fork_works=no
7419fi
ec6a6fbe 7420rm -rf conftest.dSYM
7a197a62 7421rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7422fi
7a197a62
AK
7423
7424
ad6254c5 7425fi
ec6a6fbe
AK
7426{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
7427$as_echo "$ac_cv_func_fork_works" >&6; }
ad6254c5
AK
7428
7429else
7430 ac_cv_func_fork_works=$ac_cv_func_fork
7431fi
7432if test "x$ac_cv_func_fork_works" = xcross; then
7433 case $host in
7434 *-*-amigaos* | *-*-msdosdjgpp*)
7435 # Override, as these systems have only a dummy fork() stub
7436 ac_cv_func_fork_works=no
7437 ;;
7438 *)
7439 ac_cv_func_fork_works=yes
7440 ;;
7441 esac
ec6a6fbe
AK
7442 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
7443$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
ad6254c5
AK
7444fi
7445ac_cv_func_vfork_works=$ac_cv_func_vfork
7446if test "x$ac_cv_func_vfork" = xyes; then
ec6a6fbe
AK
7447 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
7448$as_echo_n "checking for working vfork... " >&6; }
ad6254c5 7449if test "${ac_cv_func_vfork_works+set}" = set; then
ec6a6fbe 7450 $as_echo_n "(cached) " >&6
ad6254c5
AK
7451else
7452 if test "$cross_compiling" = yes; then
7453 ac_cv_func_vfork_works=cross
7454else
7455 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7456/* confdefs.h. */
7457_ACEOF
7458cat confdefs.h >>conftest.$ac_ext
7459cat >>conftest.$ac_ext <<_ACEOF
7460/* end confdefs.h. */
7461/* Thanks to Paul Eggert for this test. */
7a197a62 7462$ac_includes_default
ad6254c5 7463#include <sys/wait.h>
25fbec5b 7464#ifdef HAVE_VFORK_H
ad6254c5
AK
7465# include <vfork.h>
7466#endif
7467/* On some sparc systems, changes by the child to local and incoming
7468 argument registers are propagated back to the parent. The compiler
7469 is told about this with #include <vfork.h>, but some compilers
7470 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
7471 static variable whose address is put into a register that is
7472 clobbered by the vfork. */
7473static void
7474#ifdef __cplusplus
7475sparc_address_test (int arg)
7476# else
7477sparc_address_test (arg) int arg;
7478#endif
7479{
7480 static pid_t child;
7481 if (!child) {
7482 child = vfork ();
7483 if (child < 0) {
7484 perror ("vfork");
7485 _exit(2);
7486 }
7487 if (!child) {
7488 arg = getpid();
7489 write(-1, "", 0);
7490 _exit (arg);
7491 }
7492 }
7493}
7494
7495int
7496main ()
7497{
7498 pid_t parent = getpid ();
7499 pid_t child;
7500
7501 sparc_address_test (0);
7502
7503 child = vfork ();
7504
7505 if (child == 0) {
7506 /* Here is another test for sparc vfork register problems. This
7507 test uses lots of local variables, at least as many local
7508 variables as main has allocated so far including compiler
7509 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
7510 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
7511 reuse the register of parent for one of the local variables,
7512 since it will think that parent can't possibly be used any more
7513 in this routine. Assigning to the local variable will thus
7514 munge parent in the parent process. */
7515 pid_t
7516 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
7517 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
7518 /* Convince the compiler that p..p7 are live; otherwise, it might
7519 use the same hardware register for all 8 local variables. */
7520 if (p != p1 || p != p2 || p != p3 || p != p4
7521 || p != p5 || p != p6 || p != p7)
7522 _exit(1);
7523
7524 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
7525 from child file descriptors. If the child closes a descriptor
7526 before it execs or exits, this munges the parent's descriptor
7527 as well. Test for this by closing stdout in the child. */
7528 _exit(close(fileno(stdout)) != 0);
7529 } else {
7530 int status;
7531 struct stat st;
7532
7533 while (wait(&status) != child)
7534 ;
7a197a62 7535 return (
ad6254c5
AK
7536 /* Was there some problem with vforking? */
7537 child < 0
7538
7539 /* Did the child fail? (This shouldn't happen.) */
7540 || status
7541
7542 /* Did the vfork/compiler bug occur? */
7543 || parent != getpid()
7544
7545 /* Did the file descriptor bug occur? */
7546 || fstat(fileno(stdout), &st) != 0
7547 );
7548 }
7549}
7550_ACEOF
7551rm -f conftest$ac_exeext
7a197a62
AK
7552if { (ac_try="$ac_link"
7553case "(($ac_try" in
7554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7555 *) ac_try_echo=$ac_try;;
7556esac
ec6a6fbe
AK
7557eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7558$as_echo "$ac_try_echo") >&5
7a197a62 7559 (eval "$ac_link") 2>&5
ad6254c5 7560 ac_status=$?
ec6a6fbe 7561 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7562 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7563 { (case "(($ac_try" in
7564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7565 *) ac_try_echo=$ac_try;;
7566esac
ec6a6fbe
AK
7567eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7568$as_echo "$ac_try_echo") >&5
7a197a62 7569 (eval "$ac_try") 2>&5
ad6254c5 7570 ac_status=$?
ec6a6fbe 7571 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7572 (exit $ac_status); }; }; then
7573 ac_cv_func_vfork_works=yes
7574else
ec6a6fbe
AK
7575 $as_echo "$as_me: program exited with status $ac_status" >&5
7576$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7577sed 's/^/| /' conftest.$ac_ext >&5
7578
7579( exit $ac_status )
7580ac_cv_func_vfork_works=no
7581fi
ec6a6fbe 7582rm -rf conftest.dSYM
7a197a62 7583rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7584fi
7a197a62
AK
7585
7586
ad6254c5 7587fi
ec6a6fbe
AK
7588{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
7589$as_echo "$ac_cv_func_vfork_works" >&6; }
ad6254c5
AK
7590
7591fi;
7592if test "x$ac_cv_func_fork_works" = xcross; then
8a2fc586 7593 ac_cv_func_vfork_works=$ac_cv_func_vfork
ec6a6fbe
AK
7594 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
7595$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
ad6254c5
AK
7596fi
7597
7598if test "x$ac_cv_func_vfork_works" = xyes; then
7599
7600cat >>confdefs.h <<\_ACEOF
7601#define HAVE_WORKING_VFORK 1
7602_ACEOF
7603
7604else
7605
7606cat >>confdefs.h <<\_ACEOF
7607#define vfork fork
7608_ACEOF
7609
7610fi
7611if test "x$ac_cv_func_fork_works" = xyes; then
7612
7613cat >>confdefs.h <<\_ACEOF
7614#define HAVE_WORKING_FORK 1
7615_ACEOF
7616
7617fi
7618
ec6a6fbe
AK
7619{ $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
7620$as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
ad6254c5 7621if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
ec6a6fbe 7622 $as_echo_n "(cached) " >&6
ad6254c5
AK
7623else
7624 rm -f conftest.sym conftest.file
7625echo >conftest.file
7626if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
7627 if test "$cross_compiling" = yes; then
7628 ac_cv_func_lstat_dereferences_slashed_symlink=no
7629else
7630 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7631/* confdefs.h. */
7632_ACEOF
7633cat confdefs.h >>conftest.$ac_ext
7634cat >>conftest.$ac_ext <<_ACEOF
7635/* end confdefs.h. */
7636$ac_includes_default
7637int
7638main ()
7639{
7640struct stat sbuf;
7641 /* Linux will dereference the symlink and fail.
8a2fc586
AK
7642 That is better in the sense that it means we will not
7643 have to compile and use the lstat wrapper. */
7a197a62 7644 return lstat ("conftest.sym/", &sbuf) == 0;
ad6254c5
AK
7645 ;
7646 return 0;
7647}
7648_ACEOF
7649rm -f conftest$ac_exeext
7a197a62
AK
7650if { (ac_try="$ac_link"
7651case "(($ac_try" in
7652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7653 *) ac_try_echo=$ac_try;;
7654esac
ec6a6fbe
AK
7655eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7656$as_echo "$ac_try_echo") >&5
7a197a62 7657 (eval "$ac_link") 2>&5
ad6254c5 7658 ac_status=$?
ec6a6fbe 7659 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7660 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7661 { (case "(($ac_try" in
7662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7663 *) ac_try_echo=$ac_try;;
7664esac
ec6a6fbe
AK
7665eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7666$as_echo "$ac_try_echo") >&5
7a197a62 7667 (eval "$ac_try") 2>&5
ad6254c5 7668 ac_status=$?
ec6a6fbe 7669 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7670 (exit $ac_status); }; }; then
7671 ac_cv_func_lstat_dereferences_slashed_symlink=yes
7672else
ec6a6fbe
AK
7673 $as_echo "$as_me: program exited with status $ac_status" >&5
7674$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7675sed 's/^/| /' conftest.$ac_ext >&5
7676
7677( exit $ac_status )
7678ac_cv_func_lstat_dereferences_slashed_symlink=no
7679fi
ec6a6fbe 7680rm -rf conftest.dSYM
7a197a62 7681rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7682fi
7a197a62
AK
7683
7684
ad6254c5
AK
7685else
7686 # If the `ln -s' command failed, then we probably don't even
7687 # have an lstat function.
7688 ac_cv_func_lstat_dereferences_slashed_symlink=no
7689fi
7690rm -f conftest.sym conftest.file
7691
7692fi
ec6a6fbe
AK
7693{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
7694$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
ad6254c5
AK
7695
7696test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
7697
7698cat >>confdefs.h <<_ACEOF
7699#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
7700_ACEOF
7701
7702
7703if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
7a197a62 7704 case " $LIBOBJS " in
8a2fc586 7705 *" lstat.$ac_objext "* ) ;;
7a197a62
AK
7706 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
7707 ;;
8a2fc586
AK
7708esac
7709
ad6254c5
AK
7710fi
7711
ec6a6fbe
AK
7712{ $as_echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
7713$as_echo_n "checking whether lstat accepts an empty string... " >&6; }
ad6254c5 7714if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
ec6a6fbe 7715 $as_echo_n "(cached) " >&6
ad6254c5
AK
7716else
7717 if test "$cross_compiling" = yes; then
7718 ac_cv_func_lstat_empty_string_bug=yes
7719else
7720 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7721/* confdefs.h. */
7722_ACEOF
7723cat confdefs.h >>conftest.$ac_ext
7724cat >>conftest.$ac_ext <<_ACEOF
7725/* end confdefs.h. */
7726$ac_includes_default
7727int
7728main ()
7729{
7730struct stat sbuf;
7a197a62 7731 return lstat ("", &sbuf) == 0;
ad6254c5
AK
7732 ;
7733 return 0;
7734}
7735_ACEOF
7736rm -f conftest$ac_exeext
7a197a62
AK
7737if { (ac_try="$ac_link"
7738case "(($ac_try" in
7739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7740 *) ac_try_echo=$ac_try;;
7741esac
ec6a6fbe
AK
7742eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7743$as_echo "$ac_try_echo") >&5
7a197a62 7744 (eval "$ac_link") 2>&5
ad6254c5 7745 ac_status=$?
ec6a6fbe 7746 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7747 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7748 { (case "(($ac_try" in
7749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7750 *) ac_try_echo=$ac_try;;
7751esac
ec6a6fbe
AK
7752eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7753$as_echo "$ac_try_echo") >&5
7a197a62 7754 (eval "$ac_try") 2>&5
ad6254c5 7755 ac_status=$?
ec6a6fbe 7756 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7757 (exit $ac_status); }; }; then
7a197a62 7758 ac_cv_func_lstat_empty_string_bug=no
ad6254c5 7759else
ec6a6fbe
AK
7760 $as_echo "$as_me: program exited with status $ac_status" >&5
7761$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7762sed 's/^/| /' conftest.$ac_ext >&5
7763
7764( exit $ac_status )
7a197a62 7765ac_cv_func_lstat_empty_string_bug=yes
ad6254c5 7766fi
ec6a6fbe 7767rm -rf conftest.dSYM
7a197a62 7768rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7769fi
7a197a62
AK
7770
7771
ad6254c5 7772fi
ec6a6fbe
AK
7773{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
7774$as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
ad6254c5 7775if test $ac_cv_func_lstat_empty_string_bug = yes; then
7a197a62 7776 case " $LIBOBJS " in
8a2fc586 7777 *" lstat.$ac_objext "* ) ;;
7a197a62
AK
7778 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
7779 ;;
8a2fc586
AK
7780esac
7781
ad6254c5
AK
7782
7783cat >>confdefs.h <<_ACEOF
7784#define HAVE_LSTAT_EMPTY_STRING_BUG 1
7785_ACEOF
7786
7787fi
7788
7789
7790for ac_header in stdlib.h
7791do
ec6a6fbe 7792as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 7793if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
7794 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7795$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 7796if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 7797 $as_echo_n "(cached) " >&6
ad6254c5 7798fi
ec6a6fbe
AK
7799ac_res=`eval 'as_val=${'$as_ac_Header'}
7800 $as_echo "$as_val"'`
7801 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7802$as_echo "$ac_res" >&6; }
ad6254c5
AK
7803else
7804 # Is the header compilable?
ec6a6fbe
AK
7805{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7806$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 7807cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7808/* confdefs.h. */
7809_ACEOF
7810cat confdefs.h >>conftest.$ac_ext
7811cat >>conftest.$ac_ext <<_ACEOF
7812/* end confdefs.h. */
7813$ac_includes_default
7814#include <$ac_header>
7815_ACEOF
7816rm -f conftest.$ac_objext
7a197a62
AK
7817if { (ac_try="$ac_compile"
7818case "(($ac_try" in
7819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7820 *) ac_try_echo=$ac_try;;
7821esac
ec6a6fbe
AK
7822eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7823$as_echo "$ac_try_echo") >&5
7a197a62 7824 (eval "$ac_compile") 2>conftest.er1
ad6254c5 7825 ac_status=$?
8a2fc586
AK
7826 grep -v '^ *+' conftest.er1 >conftest.err
7827 rm -f conftest.er1
7828 cat conftest.err >&5
ec6a6fbe 7829 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7830 (exit $ac_status); } && {
7831 test -z "$ac_c_werror_flag" ||
7832 test ! -s conftest.err
7833 } && test -s conftest.$ac_objext; then
ad6254c5
AK
7834 ac_header_compiler=yes
7835else
ec6a6fbe 7836 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7837sed 's/^/| /' conftest.$ac_ext >&5
7838
7a197a62 7839 ac_header_compiler=no
ad6254c5 7840fi
7a197a62
AK
7841
7842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
7843{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7844$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
7845
7846# Is the header present?
ec6a6fbe
AK
7847{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7848$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 7849cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7850/* confdefs.h. */
7851_ACEOF
7852cat confdefs.h >>conftest.$ac_ext
7853cat >>conftest.$ac_ext <<_ACEOF
7854/* end confdefs.h. */
7855#include <$ac_header>
7856_ACEOF
7a197a62
AK
7857if { (ac_try="$ac_cpp conftest.$ac_ext"
7858case "(($ac_try" in
7859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7860 *) ac_try_echo=$ac_try;;
7861esac
ec6a6fbe
AK
7862eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7863$as_echo "$ac_try_echo") >&5
7a197a62 7864 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
7865 ac_status=$?
7866 grep -v '^ *+' conftest.er1 >conftest.err
7867 rm -f conftest.er1
7868 cat conftest.err >&5
ec6a6fbe 7869 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7870 (exit $ac_status); } >/dev/null && {
7871 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7872 test ! -s conftest.err
7873 }; then
ad6254c5
AK
7874 ac_header_preproc=yes
7875else
ec6a6fbe 7876 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7877sed 's/^/| /' conftest.$ac_ext >&5
7878
7879 ac_header_preproc=no
7880fi
7a197a62 7881
ad6254c5 7882rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
7883{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7884$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
7885
7886# So? What about this header?
8a2fc586
AK
7887case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7888 yes:no: )
ec6a6fbe
AK
7889 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7890$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7891 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7892$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 7893 ac_header_preproc=yes
ad6254c5 7894 ;;
8a2fc586 7895 no:yes:* )
ec6a6fbe
AK
7896 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7897$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7898 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7899$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7900 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7901$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7902 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7903$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7904 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7905$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7906 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7907$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 7908
ad6254c5
AK
7909 ;;
7910esac
ec6a6fbe
AK
7911{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7912$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 7913if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 7914 $as_echo_n "(cached) " >&6
ad6254c5 7915else
8a2fc586 7916 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 7917fi
ec6a6fbe
AK
7918ac_res=`eval 'as_val=${'$as_ac_Header'}
7919 $as_echo "$as_val"'`
7920 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7921$as_echo "$ac_res" >&6; }
ad6254c5
AK
7922
7923fi
ec6a6fbe
AK
7924as_val=`eval 'as_val=${'$as_ac_Header'}
7925 $as_echo "$as_val"'`
7926 if test "x$as_val" = x""yes; then
ad6254c5 7927 cat >>confdefs.h <<_ACEOF
ec6a6fbe 7928#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
7929_ACEOF
7930
7931fi
7932
7933done
7934
ec6a6fbe
AK
7935{ $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
7936$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
ad6254c5 7937if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
ec6a6fbe 7938 $as_echo_n "(cached) " >&6
ad6254c5
AK
7939else
7940 if test "$cross_compiling" = yes; then
7941 ac_cv_func_malloc_0_nonnull=no
7942else
7943 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7944/* confdefs.h. */
7945_ACEOF
7946cat confdefs.h >>conftest.$ac_ext
7947cat >>conftest.$ac_ext <<_ACEOF
7948/* end confdefs.h. */
25fbec5b 7949#if defined STDC_HEADERS || defined HAVE_STDLIB_H
ad6254c5
AK
7950# include <stdlib.h>
7951#else
7952char *malloc ();
7953#endif
7954
7955int
7956main ()
7957{
7a197a62 7958return ! malloc (0);
ad6254c5
AK
7959 ;
7960 return 0;
7961}
7962_ACEOF
7963rm -f conftest$ac_exeext
7a197a62
AK
7964if { (ac_try="$ac_link"
7965case "(($ac_try" in
7966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7967 *) ac_try_echo=$ac_try;;
7968esac
ec6a6fbe
AK
7969eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7970$as_echo "$ac_try_echo") >&5
7a197a62 7971 (eval "$ac_link") 2>&5
ad6254c5 7972 ac_status=$?
ec6a6fbe 7973 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7974 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7975 { (case "(($ac_try" in
7976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7977 *) ac_try_echo=$ac_try;;
7978esac
ec6a6fbe
AK
7979eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7980$as_echo "$ac_try_echo") >&5
7a197a62 7981 (eval "$ac_try") 2>&5
ad6254c5 7982 ac_status=$?
ec6a6fbe 7983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7984 (exit $ac_status); }; }; then
7985 ac_cv_func_malloc_0_nonnull=yes
7986else
ec6a6fbe
AK
7987 $as_echo "$as_me: program exited with status $ac_status" >&5
7988$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7989sed 's/^/| /' conftest.$ac_ext >&5
7990
7991( exit $ac_status )
7992ac_cv_func_malloc_0_nonnull=no
7993fi
ec6a6fbe 7994rm -rf conftest.dSYM
7a197a62 7995rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7996fi
7a197a62
AK
7997
7998
ad6254c5 7999fi
ec6a6fbe
AK
8000{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
8001$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
ad6254c5
AK
8002if test $ac_cv_func_malloc_0_nonnull = yes; then
8003
8004cat >>confdefs.h <<\_ACEOF
8005#define HAVE_MALLOC 1
8006_ACEOF
8007
8008else
8009 cat >>confdefs.h <<\_ACEOF
8010#define HAVE_MALLOC 0
8011_ACEOF
8012
7a197a62 8013 case " $LIBOBJS " in
8a2fc586 8014 *" malloc.$ac_objext "* ) ;;
7a197a62
AK
8015 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
8016 ;;
8a2fc586
AK
8017esac
8018
ad6254c5
AK
8019
8020cat >>confdefs.h <<\_ACEOF
8021#define malloc rpl_malloc
8022_ACEOF
8023
8024fi
8025
8026
8027
ec6a6fbe
AK
8028{ $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
8029$as_echo_n "checking for working memcmp... " >&6; }
ad6254c5 8030if test "${ac_cv_func_memcmp_working+set}" = set; then
ec6a6fbe 8031 $as_echo_n "(cached) " >&6
ad6254c5
AK
8032else
8033 if test "$cross_compiling" = yes; then
8034 ac_cv_func_memcmp_working=no
8035else
8036 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8037/* confdefs.h. */
8038_ACEOF
8039cat confdefs.h >>conftest.$ac_ext
8040cat >>conftest.$ac_ext <<_ACEOF
8041/* end confdefs.h. */
8a2fc586 8042$ac_includes_default
ad6254c5
AK
8043int
8044main ()
8045{
8046
8047 /* Some versions of memcmp are not 8-bit clean. */
7a197a62 8048 char c0 = '\100', c1 = '\200', c2 = '\201';
ad6254c5 8049 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
7a197a62 8050 return 1;
ad6254c5
AK
8051
8052 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
8053 or more and with at least one buffer not starting on a 4-byte boundary.
8054 William Lewis provided this test program. */
8055 {
8056 char foo[21];
8057 char bar[21];
8058 int i;
8059 for (i = 0; i < 4; i++)
8060 {
8a2fc586
AK
8061 char *a = foo + i;
8062 char *b = bar + i;
8063 strcpy (a, "--------01111111");
8064 strcpy (b, "--------10000000");
8065 if (memcmp (a, b, 16) >= 0)
7a197a62 8066 return 1;
ad6254c5 8067 }
7a197a62 8068 return 0;
ad6254c5
AK
8069 }
8070
8071 ;
8072 return 0;
8073}
8074_ACEOF
8075rm -f conftest$ac_exeext
7a197a62
AK
8076if { (ac_try="$ac_link"
8077case "(($ac_try" in
8078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8079 *) ac_try_echo=$ac_try;;
8080esac
ec6a6fbe
AK
8081eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8082$as_echo "$ac_try_echo") >&5
7a197a62 8083 (eval "$ac_link") 2>&5
ad6254c5 8084 ac_status=$?
ec6a6fbe 8085 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 8086 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
8087 { (case "(($ac_try" in
8088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8089 *) ac_try_echo=$ac_try;;
8090esac
ec6a6fbe
AK
8091eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8092$as_echo "$ac_try_echo") >&5
7a197a62 8093 (eval "$ac_try") 2>&5
ad6254c5 8094 ac_status=$?
ec6a6fbe 8095 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
8096 (exit $ac_status); }; }; then
8097 ac_cv_func_memcmp_working=yes
8098else
ec6a6fbe
AK
8099 $as_echo "$as_me: program exited with status $ac_status" >&5
8100$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8101sed 's/^/| /' conftest.$ac_ext >&5
8102
8103( exit $ac_status )
8104ac_cv_func_memcmp_working=no
8105fi
ec6a6fbe 8106rm -rf conftest.dSYM
7a197a62 8107rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 8108fi
7a197a62
AK
8109
8110
ad6254c5 8111fi
ec6a6fbe
AK
8112{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
8113$as_echo "$ac_cv_func_memcmp_working" >&6; }
7a197a62 8114test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
8a2fc586 8115 *" memcmp.$ac_objext "* ) ;;
7a197a62
AK
8116 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
8117 ;;
8a2fc586
AK
8118esac
8119
ad6254c5
AK
8120
8121
8122
8123for ac_header in stdlib.h unistd.h
8124do
ec6a6fbe 8125as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 8126if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
8127 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8128$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 8129if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 8130 $as_echo_n "(cached) " >&6
ad6254c5 8131fi
ec6a6fbe
AK
8132ac_res=`eval 'as_val=${'$as_ac_Header'}
8133 $as_echo "$as_val"'`
8134 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8135$as_echo "$ac_res" >&6; }
ad6254c5
AK
8136else
8137 # Is the header compilable?
ec6a6fbe
AK
8138{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8139$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 8140cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8141/* confdefs.h. */
8142_ACEOF
8143cat confdefs.h >>conftest.$ac_ext
8144cat >>conftest.$ac_ext <<_ACEOF
8145/* end confdefs.h. */
8146$ac_includes_default
8147#include <$ac_header>
8148_ACEOF
8149rm -f conftest.$ac_objext
7a197a62
AK
8150if { (ac_try="$ac_compile"
8151case "(($ac_try" in
8152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8153 *) ac_try_echo=$ac_try;;
8154esac
ec6a6fbe
AK
8155eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8156$as_echo "$ac_try_echo") >&5
7a197a62 8157 (eval "$ac_compile") 2>conftest.er1
ad6254c5 8158 ac_status=$?
8a2fc586
AK
8159 grep -v '^ *+' conftest.er1 >conftest.err
8160 rm -f conftest.er1
8161 cat conftest.err >&5
ec6a6fbe 8162 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8163 (exit $ac_status); } && {
8164 test -z "$ac_c_werror_flag" ||
8165 test ! -s conftest.err
8166 } && test -s conftest.$ac_objext; then
ad6254c5
AK
8167 ac_header_compiler=yes
8168else
ec6a6fbe 8169 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8170sed 's/^/| /' conftest.$ac_ext >&5
8171
7a197a62 8172 ac_header_compiler=no
ad6254c5 8173fi
7a197a62
AK
8174
8175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
8176{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8177$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
8178
8179# Is the header present?
ec6a6fbe
AK
8180{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8181$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 8182cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8183/* confdefs.h. */
8184_ACEOF
8185cat confdefs.h >>conftest.$ac_ext
8186cat >>conftest.$ac_ext <<_ACEOF
8187/* end confdefs.h. */
8188#include <$ac_header>
8189_ACEOF
7a197a62
AK
8190if { (ac_try="$ac_cpp conftest.$ac_ext"
8191case "(($ac_try" in
8192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8193 *) ac_try_echo=$ac_try;;
8194esac
ec6a6fbe
AK
8195eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8196$as_echo "$ac_try_echo") >&5
7a197a62 8197 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
8198 ac_status=$?
8199 grep -v '^ *+' conftest.er1 >conftest.err
8200 rm -f conftest.er1
8201 cat conftest.err >&5
ec6a6fbe 8202 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8203 (exit $ac_status); } >/dev/null && {
8204 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8205 test ! -s conftest.err
8206 }; then
ad6254c5
AK
8207 ac_header_preproc=yes
8208else
ec6a6fbe 8209 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8210sed 's/^/| /' conftest.$ac_ext >&5
8211
8212 ac_header_preproc=no
8213fi
7a197a62 8214
ad6254c5 8215rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
8216{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8217$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
8218
8219# So? What about this header?
8a2fc586
AK
8220case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8221 yes:no: )
ec6a6fbe
AK
8222 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8223$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8224 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8225$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 8226 ac_header_preproc=yes
ad6254c5 8227 ;;
8a2fc586 8228 no:yes:* )
ec6a6fbe
AK
8229 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8230$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8231 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8232$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8233 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8234$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8235 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8236$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8237 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8238$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8239 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8240$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 8241
ad6254c5
AK
8242 ;;
8243esac
ec6a6fbe
AK
8244{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8245$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 8246if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 8247 $as_echo_n "(cached) " >&6
ad6254c5 8248else
8a2fc586 8249 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 8250fi
ec6a6fbe
AK
8251ac_res=`eval 'as_val=${'$as_ac_Header'}
8252 $as_echo "$as_val"'`
8253 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8254$as_echo "$ac_res" >&6; }
ad6254c5
AK
8255
8256fi
ec6a6fbe
AK
8257as_val=`eval 'as_val=${'$as_ac_Header'}
8258 $as_echo "$as_val"'`
8259 if test "x$as_val" = x""yes; then
ad6254c5 8260 cat >>confdefs.h <<_ACEOF
ec6a6fbe 8261#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
8262_ACEOF
8263
8264fi
8265
8266done
8267
8268
8269for ac_func in getpagesize
8270do
ec6a6fbe
AK
8271as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8272{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8273$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 8274if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 8275 $as_echo_n "(cached) " >&6
ad6254c5
AK
8276else
8277 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8278/* confdefs.h. */
8279_ACEOF
8280cat confdefs.h >>conftest.$ac_ext
8281cat >>conftest.$ac_ext <<_ACEOF
8282/* end confdefs.h. */
8a2fc586
AK
8283/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8284 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8285#define $ac_func innocuous_$ac_func
8286
ad6254c5
AK
8287/* System header to define __stub macros and hopefully few prototypes,
8288 which can conflict with char $ac_func (); below.
8289 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8290 <limits.h> exists even on freestanding compilers. */
8a2fc586 8291
ad6254c5
AK
8292#ifdef __STDC__
8293# include <limits.h>
8294#else
8295# include <assert.h>
8296#endif
8a2fc586
AK
8297
8298#undef $ac_func
8299
7a197a62
AK
8300/* Override any GCC internal prototype to avoid an error.
8301 Use char because int might match the return type of a GCC
8302 builtin and then its argument prototype would still apply. */
ad6254c5
AK
8303#ifdef __cplusplus
8304extern "C"
ad6254c5 8305#endif
ad6254c5
AK
8306char $ac_func ();
8307/* The GNU C library defines this for functions which it implements
8308 to always fail with ENOSYS. Some functions are actually named
8309 something starting with __ and the normal name is an alias. */
7a197a62 8310#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 8311choke me
ad6254c5
AK
8312#endif
8313
8314int
8315main ()
8316{
7a197a62 8317return $ac_func ();
ad6254c5
AK
8318 ;
8319 return 0;
8320}
8321_ACEOF
8322rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
8323if { (ac_try="$ac_link"
8324case "(($ac_try" in
8325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8326 *) ac_try_echo=$ac_try;;
8327esac
ec6a6fbe
AK
8328eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8329$as_echo "$ac_try_echo") >&5
7a197a62 8330 (eval "$ac_link") 2>conftest.er1
ad6254c5 8331 ac_status=$?
8a2fc586
AK
8332 grep -v '^ *+' conftest.er1 >conftest.err
8333 rm -f conftest.er1
8334 cat conftest.err >&5
ec6a6fbe 8335 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8336 (exit $ac_status); } && {
8337 test -z "$ac_c_werror_flag" ||
8338 test ! -s conftest.err
ec6a6fbe
AK
8339 } && test -s conftest$ac_exeext && {
8340 test "$cross_compiling" = yes ||
8341 $as_test_x conftest$ac_exeext
8342 }; then
ad6254c5
AK
8343 eval "$as_ac_var=yes"
8344else
ec6a6fbe 8345 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8346sed 's/^/| /' conftest.$ac_ext >&5
8347
7a197a62 8348 eval "$as_ac_var=no"
ad6254c5 8349fi
7a197a62 8350
ec6a6fbe 8351rm -rf conftest.dSYM
25fbec5b 8352rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 8353 conftest$ac_exeext conftest.$ac_ext
ad6254c5 8354fi
ec6a6fbe
AK
8355ac_res=`eval 'as_val=${'$as_ac_var'}
8356 $as_echo "$as_val"'`
8357 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8358$as_echo "$ac_res" >&6; }
8359as_val=`eval 'as_val=${'$as_ac_var'}
8360 $as_echo "$as_val"'`
8361 if test "x$as_val" = x""yes; then
ad6254c5 8362 cat >>confdefs.h <<_ACEOF
ec6a6fbe 8363#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
8364_ACEOF
8365
8366fi
8367done
8368
ec6a6fbe
AK
8369{ $as_echo "$as_me:$LINENO: checking for working mmap" >&5
8370$as_echo_n "checking for working mmap... " >&6; }
ad6254c5 8371if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
ec6a6fbe 8372 $as_echo_n "(cached) " >&6
ad6254c5
AK
8373else
8374 if test "$cross_compiling" = yes; then
8375 ac_cv_func_mmap_fixed_mapped=no
8376else
8377 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8378/* confdefs.h. */
8379_ACEOF
8380cat confdefs.h >>conftest.$ac_ext
8381cat >>conftest.$ac_ext <<_ACEOF
8382/* end confdefs.h. */
8383$ac_includes_default
8384/* malloc might have been renamed as rpl_malloc. */
8385#undef malloc
8386
8387/* Thanks to Mike Haertel and Jim Avera for this test.
8388 Here is a matrix of mmap possibilities:
8389 mmap private not fixed
8390 mmap private fixed at somewhere currently unmapped
8391 mmap private fixed at somewhere already mapped
8392 mmap shared not fixed
8393 mmap shared fixed at somewhere currently unmapped
8394 mmap shared fixed at somewhere already mapped
8395 For private mappings, we should verify that changes cannot be read()
8396 back from the file, nor mmap's back from the file at a different
8397 address. (There have been systems where private was not correctly
8398 implemented like the infamous i386 svr4.0, and systems where the
8399 VM page cache was not coherent with the file system buffer cache
8400 like early versions of FreeBSD and possibly contemporary NetBSD.)
8401 For shared mappings, we should conversely verify that changes get
8402 propagated back to all the places they're supposed to be.
8403
8404 Grep wants private fixed already mapped.
8405 The main things grep needs to know about mmap are:
8406 * does it exist and is it safe to write into the mmap'd area
8407 * how to use it (BSD variants) */
8408
8409#include <fcntl.h>
8410#include <sys/mman.h>
8411
25fbec5b 8412#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
ad6254c5
AK
8413char *malloc ();
8414#endif
8415
8416/* This mess was copied from the GNU getpagesize.h. */
25fbec5b 8417#ifndef HAVE_GETPAGESIZE
ad6254c5 8418/* Assume that all systems that can run configure have sys/param.h. */
25fbec5b 8419# ifndef HAVE_SYS_PARAM_H
ad6254c5
AK
8420# define HAVE_SYS_PARAM_H 1
8421# endif
8422
8423# ifdef _SC_PAGESIZE
8424# define getpagesize() sysconf(_SC_PAGESIZE)
8425# else /* no _SC_PAGESIZE */
25fbec5b 8426# ifdef HAVE_SYS_PARAM_H
ad6254c5
AK
8427# include <sys/param.h>
8428# ifdef EXEC_PAGESIZE
8429# define getpagesize() EXEC_PAGESIZE
8430# else /* no EXEC_PAGESIZE */
8431# ifdef NBPG
8432# define getpagesize() NBPG * CLSIZE
8433# ifndef CLSIZE
8434# define CLSIZE 1
8435# endif /* no CLSIZE */
8436# else /* no NBPG */
8437# ifdef NBPC
8438# define getpagesize() NBPC
8439# else /* no NBPC */
8440# ifdef PAGESIZE
8441# define getpagesize() PAGESIZE
8442# endif /* PAGESIZE */
8443# endif /* no NBPC */
8444# endif /* no NBPG */
8445# endif /* no EXEC_PAGESIZE */
8446# else /* no HAVE_SYS_PARAM_H */
8447# define getpagesize() 8192 /* punt totally */
8448# endif /* no HAVE_SYS_PARAM_H */
8449# endif /* no _SC_PAGESIZE */
8450
8451#endif /* no HAVE_GETPAGESIZE */
8452
8453int
8454main ()
8455{
8456 char *data, *data2, *data3;
8457 int i, pagesize;
8458 int fd;
8459
8460 pagesize = getpagesize ();
8461
8462 /* First, make a file with some known garbage in it. */
8463 data = (char *) malloc (pagesize);
8464 if (!data)
7a197a62 8465 return 1;
ad6254c5
AK
8466 for (i = 0; i < pagesize; ++i)
8467 *(data + i) = rand ();
8468 umask (0);
8469 fd = creat ("conftest.mmap", 0600);
8470 if (fd < 0)
7a197a62 8471 return 1;
ad6254c5 8472 if (write (fd, data, pagesize) != pagesize)
7a197a62 8473 return 1;
ad6254c5
AK
8474 close (fd);
8475
8476 /* Next, try to mmap the file at a fixed address which already has
8477 something else allocated at it. If we can, also make sure that
8478 we see the same garbage. */
8479 fd = open ("conftest.mmap", O_RDWR);
8480 if (fd < 0)
7a197a62 8481 return 1;
ad6254c5
AK
8482 data2 = (char *) malloc (2 * pagesize);
8483 if (!data2)
7a197a62
AK
8484 return 1;
8485 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
ad6254c5 8486 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8a2fc586 8487 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7a197a62 8488 return 1;
ad6254c5
AK
8489 for (i = 0; i < pagesize; ++i)
8490 if (*(data + i) != *(data2 + i))
7a197a62 8491 return 1;
ad6254c5
AK
8492
8493 /* Finally, make sure that changes to the mapped area do not
8494 percolate back to the file as seen by read(). (This is a bug on
8495 some variants of i386 svr4.0.) */
8496 for (i = 0; i < pagesize; ++i)
8497 *(data2 + i) = *(data2 + i) + 1;
8498 data3 = (char *) malloc (pagesize);
8499 if (!data3)
7a197a62 8500 return 1;
ad6254c5 8501 if (read (fd, data3, pagesize) != pagesize)
7a197a62 8502 return 1;
ad6254c5
AK
8503 for (i = 0; i < pagesize; ++i)
8504 if (*(data + i) != *(data3 + i))
7a197a62 8505 return 1;
ad6254c5 8506 close (fd);
7a197a62 8507 return 0;
ad6254c5
AK
8508}
8509_ACEOF
8510rm -f conftest$ac_exeext
7a197a62
AK
8511if { (ac_try="$ac_link"
8512case "(($ac_try" in
8513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8514 *) ac_try_echo=$ac_try;;
8515esac
ec6a6fbe
AK
8516eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8517$as_echo "$ac_try_echo") >&5
7a197a62 8518 (eval "$ac_link") 2>&5
ad6254c5 8519 ac_status=$?
ec6a6fbe 8520 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 8521 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
8522 { (case "(($ac_try" in
8523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8524 *) ac_try_echo=$ac_try;;
8525esac
ec6a6fbe
AK
8526eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8527$as_echo "$ac_try_echo") >&5
7a197a62 8528 (eval "$ac_try") 2>&5
ad6254c5 8529 ac_status=$?
ec6a6fbe 8530 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
8531 (exit $ac_status); }; }; then
8532 ac_cv_func_mmap_fixed_mapped=yes
8533else
ec6a6fbe
AK
8534 $as_echo "$as_me: program exited with status $ac_status" >&5
8535$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8536sed 's/^/| /' conftest.$ac_ext >&5
8537
8538( exit $ac_status )
8539ac_cv_func_mmap_fixed_mapped=no
8540fi
ec6a6fbe 8541rm -rf conftest.dSYM
7a197a62 8542rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 8543fi
7a197a62
AK
8544
8545
ad6254c5 8546fi
ec6a6fbe
AK
8547{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8548$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
ad6254c5
AK
8549if test $ac_cv_func_mmap_fixed_mapped = yes; then
8550
8551cat >>confdefs.h <<\_ACEOF
8552#define HAVE_MMAP 1
8553_ACEOF
8554
8555fi
8556rm -f conftest.mmap
8557
ec6a6fbe
AK
8558{ $as_echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
8559$as_echo_n "checking whether stat accepts an empty string... " >&6; }
ad6254c5 8560if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
ec6a6fbe 8561 $as_echo_n "(cached) " >&6
ad6254c5
AK
8562else
8563 if test "$cross_compiling" = yes; then
8564 ac_cv_func_stat_empty_string_bug=yes
8565else
8566 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8567/* confdefs.h. */
8568_ACEOF
8569cat confdefs.h >>conftest.$ac_ext
8570cat >>conftest.$ac_ext <<_ACEOF
8571/* end confdefs.h. */
8572$ac_includes_default
8573int
8574main ()
8575{
8576struct stat sbuf;
7a197a62 8577 return stat ("", &sbuf) == 0;
ad6254c5
AK
8578 ;
8579 return 0;
8580}
8581_ACEOF
8582rm -f conftest$ac_exeext
7a197a62
AK
8583if { (ac_try="$ac_link"
8584case "(($ac_try" in
8585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8586 *) ac_try_echo=$ac_try;;
8587esac
ec6a6fbe
AK
8588eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8589$as_echo "$ac_try_echo") >&5
7a197a62 8590 (eval "$ac_link") 2>&5
ad6254c5 8591 ac_status=$?
ec6a6fbe 8592 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 8593 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
8594 { (case "(($ac_try" in
8595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8596 *) ac_try_echo=$ac_try;;
8597esac
ec6a6fbe
AK
8598eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8599$as_echo "$ac_try_echo") >&5
7a197a62 8600 (eval "$ac_try") 2>&5
ad6254c5 8601 ac_status=$?
ec6a6fbe 8602 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 8603 (exit $ac_status); }; }; then
7a197a62 8604 ac_cv_func_stat_empty_string_bug=no
ad6254c5 8605else
ec6a6fbe
AK
8606 $as_echo "$as_me: program exited with status $ac_status" >&5
8607$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8608sed 's/^/| /' conftest.$ac_ext >&5
8609
8610( exit $ac_status )
7a197a62 8611ac_cv_func_stat_empty_string_bug=yes
ad6254c5 8612fi
ec6a6fbe 8613rm -rf conftest.dSYM
7a197a62 8614rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 8615fi
7a197a62
AK
8616
8617
ad6254c5 8618fi
ec6a6fbe
AK
8619{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
8620$as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
ad6254c5 8621if test $ac_cv_func_stat_empty_string_bug = yes; then
7a197a62 8622 case " $LIBOBJS " in
8a2fc586 8623 *" stat.$ac_objext "* ) ;;
7a197a62
AK
8624 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
8625 ;;
8a2fc586
AK
8626esac
8627
ad6254c5
AK
8628
8629cat >>confdefs.h <<_ACEOF
8630#define HAVE_STAT_EMPTY_STRING_BUG 1
8631_ACEOF
8632
8633fi
8634
ec6a6fbe
AK
8635{ $as_echo "$as_me:$LINENO: checking for working strtod" >&5
8636$as_echo_n "checking for working strtod... " >&6; }
ad6254c5 8637if test "${ac_cv_func_strtod+set}" = set; then
ec6a6fbe 8638 $as_echo_n "(cached) " >&6
ad6254c5
AK
8639else
8640 if test "$cross_compiling" = yes; then
8641 ac_cv_func_strtod=no
8642else
8643 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8644/* confdefs.h. */
8645_ACEOF
8646cat confdefs.h >>conftest.$ac_ext
8647cat >>conftest.$ac_ext <<_ACEOF
8648/* end confdefs.h. */
8649
7a197a62
AK
8650$ac_includes_default
8651#ifndef strtod
ad6254c5 8652double strtod ();
7a197a62 8653#endif
ad6254c5
AK
8654int
8655main()
8656{
8657 {
8658 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
8659 char *string = " +69";
8660 char *term;
8661 double value;
8662 value = strtod (string, &term);
8663 if (value != 69 || term != (string + 4))
7a197a62 8664 return 1;
ad6254c5
AK
8665 }
8666
8667 {
8668 /* Under Solaris 2.4, strtod returns the wrong value for the
8669 terminating character under some conditions. */
8670 char *string = "NaN";
8671 char *term;
8672 strtod (string, &term);
8673 if (term != string && *(term - 1) == 0)
7a197a62 8674 return 1;
ad6254c5 8675 }
7a197a62 8676 return 0;
ad6254c5
AK
8677}
8678
8679_ACEOF
8680rm -f conftest$ac_exeext
7a197a62
AK
8681if { (ac_try="$ac_link"
8682case "(($ac_try" in
8683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8684 *) ac_try_echo=$ac_try;;
8685esac
ec6a6fbe
AK
8686eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8687$as_echo "$ac_try_echo") >&5
7a197a62 8688 (eval "$ac_link") 2>&5
ad6254c5 8689 ac_status=$?
ec6a6fbe 8690 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 8691 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
8692 { (case "(($ac_try" in
8693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8694 *) ac_try_echo=$ac_try;;
8695esac
ec6a6fbe
AK
8696eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8697$as_echo "$ac_try_echo") >&5
7a197a62 8698 (eval "$ac_try") 2>&5
ad6254c5 8699 ac_status=$?
ec6a6fbe 8700 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
8701 (exit $ac_status); }; }; then
8702 ac_cv_func_strtod=yes
8703else
ec6a6fbe
AK
8704 $as_echo "$as_me: program exited with status $ac_status" >&5
8705$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8706sed 's/^/| /' conftest.$ac_ext >&5
8707
8708( exit $ac_status )
8709ac_cv_func_strtod=no
8710fi
ec6a6fbe 8711rm -rf conftest.dSYM
7a197a62 8712rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 8713fi
7a197a62
AK
8714
8715
ad6254c5 8716fi
ec6a6fbe
AK
8717{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
8718$as_echo "$ac_cv_func_strtod" >&6; }
ad6254c5 8719if test $ac_cv_func_strtod = no; then
7a197a62 8720 case " $LIBOBJS " in
8a2fc586 8721 *" strtod.$ac_objext "* ) ;;
7a197a62
AK
8722 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
8723 ;;
8a2fc586
AK
8724esac
8725
ec6a6fbe
AK
8726{ $as_echo "$as_me:$LINENO: checking for pow" >&5
8727$as_echo_n "checking for pow... " >&6; }
ad6254c5 8728if test "${ac_cv_func_pow+set}" = set; then
ec6a6fbe 8729 $as_echo_n "(cached) " >&6
ad6254c5
AK
8730else
8731 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8732/* confdefs.h. */
8733_ACEOF
8734cat confdefs.h >>conftest.$ac_ext
8735cat >>conftest.$ac_ext <<_ACEOF
8736/* end confdefs.h. */
8a2fc586
AK
8737/* Define pow to an innocuous variant, in case <limits.h> declares pow.
8738 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8739#define pow innocuous_pow
8740
ad6254c5
AK
8741/* System header to define __stub macros and hopefully few prototypes,
8742 which can conflict with char pow (); below.
8743 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8744 <limits.h> exists even on freestanding compilers. */
8a2fc586 8745
ad6254c5
AK
8746#ifdef __STDC__
8747# include <limits.h>
8748#else
8749# include <assert.h>
8750#endif
8a2fc586
AK
8751
8752#undef pow
8753
7a197a62
AK
8754/* Override any GCC internal prototype to avoid an error.
8755 Use char because int might match the return type of a GCC
8756 builtin and then its argument prototype would still apply. */
ad6254c5
AK
8757#ifdef __cplusplus
8758extern "C"
ad6254c5 8759#endif
ad6254c5
AK
8760char pow ();
8761/* The GNU C library defines this for functions which it implements
8762 to always fail with ENOSYS. Some functions are actually named
8763 something starting with __ and the normal name is an alias. */
7a197a62 8764#if defined __stub_pow || defined __stub___pow
ad6254c5 8765choke me
ad6254c5
AK
8766#endif
8767
8768int
8769main ()
8770{
7a197a62 8771return pow ();
ad6254c5
AK
8772 ;
8773 return 0;
8774}
8775_ACEOF
8776rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
8777if { (ac_try="$ac_link"
8778case "(($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_link") 2>conftest.er1
ad6254c5 8785 ac_status=$?
8a2fc586
AK
8786 grep -v '^ *+' conftest.er1 >conftest.err
8787 rm -f conftest.er1
8788 cat conftest.err >&5
ec6a6fbe 8789 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8790 (exit $ac_status); } && {
8791 test -z "$ac_c_werror_flag" ||
8792 test ! -s conftest.err
ec6a6fbe
AK
8793 } && test -s conftest$ac_exeext && {
8794 test "$cross_compiling" = yes ||
8795 $as_test_x conftest$ac_exeext
8796 }; then
ad6254c5
AK
8797 ac_cv_func_pow=yes
8798else
ec6a6fbe 8799 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8800sed 's/^/| /' conftest.$ac_ext >&5
8801
7a197a62 8802 ac_cv_func_pow=no
ad6254c5 8803fi
7a197a62 8804
ec6a6fbe 8805rm -rf conftest.dSYM
25fbec5b 8806rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 8807 conftest$ac_exeext conftest.$ac_ext
ad6254c5 8808fi
ec6a6fbe
AK
8809{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
8810$as_echo "$ac_cv_func_pow" >&6; }
ad6254c5
AK
8811
8812if test $ac_cv_func_pow = no; then
ec6a6fbe
AK
8813 { $as_echo "$as_me:$LINENO: checking for pow in -lm" >&5
8814$as_echo_n "checking for pow in -lm... " >&6; }
ad6254c5 8815if test "${ac_cv_lib_m_pow+set}" = set; then
ec6a6fbe 8816 $as_echo_n "(cached) " >&6
ad6254c5
AK
8817else
8818 ac_check_lib_save_LIBS=$LIBS
8819LIBS="-lm $LIBS"
8820cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8821/* confdefs.h. */
8822_ACEOF
8823cat confdefs.h >>conftest.$ac_ext
8824cat >>conftest.$ac_ext <<_ACEOF
8825/* end confdefs.h. */
8826
7a197a62
AK
8827/* Override any GCC internal prototype to avoid an error.
8828 Use char because int might match the return type of a GCC
8829 builtin and then its argument prototype would still apply. */
ad6254c5
AK
8830#ifdef __cplusplus
8831extern "C"
8832#endif
ad6254c5
AK
8833char pow ();
8834int
8835main ()
8836{
7a197a62 8837return pow ();
ad6254c5
AK
8838 ;
8839 return 0;
8840}
8841_ACEOF
8842rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
8843if { (ac_try="$ac_link"
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_link") 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
ec6a6fbe
AK
8859 } && test -s conftest$ac_exeext && {
8860 test "$cross_compiling" = yes ||
8861 $as_test_x conftest$ac_exeext
8862 }; then
ad6254c5
AK
8863 ac_cv_lib_m_pow=yes
8864else
ec6a6fbe 8865 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8866sed 's/^/| /' conftest.$ac_ext >&5
8867
7a197a62 8868 ac_cv_lib_m_pow=no
ad6254c5 8869fi
7a197a62 8870
ec6a6fbe 8871rm -rf conftest.dSYM
25fbec5b 8872rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 8873 conftest$ac_exeext conftest.$ac_ext
ad6254c5 8874LIBS=$ac_check_lib_save_LIBS
d0191583 8875fi
ec6a6fbe
AK
8876{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
8877$as_echo "$ac_cv_lib_m_pow" >&6; }
8878if test "x$ac_cv_lib_m_pow" = x""yes; then
d0191583
JM
8879 POW_LIB=-lm
8880else
ec6a6fbe
AK
8881 { $as_echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
8882$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
d0191583 8883fi
72b2cb61 8884
d0191583 8885fi
72b2cb61 8886
ad6254c5
AK
8887fi
8888
ad6254c5 8889
d0191583
JM
8890for ac_func in vprintf
8891do
ec6a6fbe
AK
8892as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8893{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8894$as_echo_n "checking for $ac_func... " >&6; }
d0191583 8895if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 8896 $as_echo_n "(cached) " >&6
ad6254c5 8897else
d0191583
JM
8898 cat >conftest.$ac_ext <<_ACEOF
8899/* confdefs.h. */
8900_ACEOF
8901cat confdefs.h >>conftest.$ac_ext
8902cat >>conftest.$ac_ext <<_ACEOF
8903/* end confdefs.h. */
8904/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8905 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8906#define $ac_func innocuous_$ac_func
7a197a62 8907
d0191583
JM
8908/* System header to define __stub macros and hopefully few prototypes,
8909 which can conflict with char $ac_func (); below.
8910 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8911 <limits.h> exists even on freestanding compilers. */
ad6254c5 8912
d0191583
JM
8913#ifdef __STDC__
8914# include <limits.h>
8915#else
8916# include <assert.h>
8917#endif
ad6254c5 8918
d0191583 8919#undef $ac_func
72b2cb61 8920
d0191583
JM
8921/* Override any GCC internal prototype to avoid an error.
8922 Use char because int might match the return type of a GCC
8923 builtin and then its argument prototype would still apply. */
8924#ifdef __cplusplus
8925extern "C"
8926#endif
8927char $ac_func ();
8928/* The GNU C library defines this for functions which it implements
8929 to always fail with ENOSYS. Some functions are actually named
8930 something starting with __ and the normal name is an alias. */
8931#if defined __stub_$ac_func || defined __stub___$ac_func
8932choke me
8933#endif
8934
8935int
8936main ()
8937{
8938return $ac_func ();
8939 ;
8940 return 0;
8941}
72b2cb61 8942_ACEOF
d0191583
JM
8943rm -f conftest.$ac_objext conftest$ac_exeext
8944if { (ac_try="$ac_link"
8945case "(($ac_try" in
8946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8947 *) ac_try_echo=$ac_try;;
8948esac
ec6a6fbe
AK
8949eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8950$as_echo "$ac_try_echo") >&5
d0191583
JM
8951 (eval "$ac_link") 2>conftest.er1
8952 ac_status=$?
8953 grep -v '^ *+' conftest.er1 >conftest.err
8954 rm -f conftest.er1
8955 cat conftest.err >&5
ec6a6fbe 8956 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
8957 (exit $ac_status); } && {
8958 test -z "$ac_c_werror_flag" ||
8959 test ! -s conftest.err
ec6a6fbe
AK
8960 } && test -s conftest$ac_exeext && {
8961 test "$cross_compiling" = yes ||
8962 $as_test_x conftest$ac_exeext
8963 }; then
d0191583
JM
8964 eval "$as_ac_var=yes"
8965else
ec6a6fbe 8966 $as_echo "$as_me: failed program was:" >&5
d0191583 8967sed 's/^/| /' conftest.$ac_ext >&5
72b2cb61 8968
d0191583 8969 eval "$as_ac_var=no"
ad6254c5
AK
8970fi
8971
ec6a6fbe 8972rm -rf conftest.dSYM
d0191583
JM
8973rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8974 conftest$ac_exeext conftest.$ac_ext
7a197a62 8975fi
ec6a6fbe
AK
8976ac_res=`eval 'as_val=${'$as_ac_var'}
8977 $as_echo "$as_val"'`
8978 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8979$as_echo "$ac_res" >&6; }
8980as_val=`eval 'as_val=${'$as_ac_var'}
8981 $as_echo "$as_val"'`
8982 if test "x$as_val" = x""yes; then
d0191583 8983 cat >>confdefs.h <<_ACEOF
ec6a6fbe 8984#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
d0191583 8985_ACEOF
7a197a62 8986
ec6a6fbe
AK
8987{ $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
8988$as_echo_n "checking for _doprnt... " >&6; }
d0191583 8989if test "${ac_cv_func__doprnt+set}" = set; then
ec6a6fbe 8990 $as_echo_n "(cached) " >&6
ad6254c5 8991else
d0191583
JM
8992 cat >conftest.$ac_ext <<_ACEOF
8993/* confdefs.h. */
8994_ACEOF
8995cat confdefs.h >>conftest.$ac_ext
8996cat >>conftest.$ac_ext <<_ACEOF
8997/* end confdefs.h. */
8998/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
8999 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9000#define _doprnt innocuous__doprnt
7a197a62 9001
d0191583
JM
9002/* System header to define __stub macros and hopefully few prototypes,
9003 which can conflict with char _doprnt (); below.
9004 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9005 <limits.h> exists even on freestanding compilers. */
ad6254c5 9006
d0191583
JM
9007#ifdef __STDC__
9008# include <limits.h>
9009#else
9010# include <assert.h>
9011#endif
72b2cb61 9012
d0191583
JM
9013#undef _doprnt
9014
9015/* Override any GCC internal prototype to avoid an error.
9016 Use char because int might match the return type of a GCC
9017 builtin and then its argument prototype would still apply. */
9018#ifdef __cplusplus
9019extern "C"
9020#endif
9021char _doprnt ();
9022/* The GNU C library defines this for functions which it implements
9023 to always fail with ENOSYS. Some functions are actually named
9024 something starting with __ and the normal name is an alias. */
9025#if defined __stub__doprnt || defined __stub____doprnt
9026choke me
9027#endif
9028
9029int
9030main ()
9031{
9032return _doprnt ();
9033 ;
9034 return 0;
9035}
72b2cb61 9036_ACEOF
d0191583
JM
9037rm -f conftest.$ac_objext conftest$ac_exeext
9038if { (ac_try="$ac_link"
9039case "(($ac_try" in
9040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9041 *) ac_try_echo=$ac_try;;
9042esac
ec6a6fbe
AK
9043eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9044$as_echo "$ac_try_echo") >&5
d0191583
JM
9045 (eval "$ac_link") 2>conftest.er1
9046 ac_status=$?
9047 grep -v '^ *+' conftest.er1 >conftest.err
9048 rm -f conftest.er1
9049 cat conftest.err >&5
ec6a6fbe 9050 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
9051 (exit $ac_status); } && {
9052 test -z "$ac_c_werror_flag" ||
9053 test ! -s conftest.err
ec6a6fbe
AK
9054 } && test -s conftest$ac_exeext && {
9055 test "$cross_compiling" = yes ||
9056 $as_test_x conftest$ac_exeext
9057 }; then
d0191583
JM
9058 ac_cv_func__doprnt=yes
9059else
ec6a6fbe 9060 $as_echo "$as_me: failed program was:" >&5
d0191583 9061sed 's/^/| /' conftest.$ac_ext >&5
72b2cb61 9062
d0191583 9063 ac_cv_func__doprnt=no
ad6254c5
AK
9064fi
9065
ec6a6fbe 9066rm -rf conftest.dSYM
d0191583
JM
9067rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9068 conftest$ac_exeext conftest.$ac_ext
7a197a62 9069fi
ec6a6fbe
AK
9070{ $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
9071$as_echo "$ac_cv_func__doprnt" >&6; }
9072if test "x$ac_cv_func__doprnt" = x""yes; then
7a197a62 9073
d0191583
JM
9074cat >>confdefs.h <<\_ACEOF
9075#define HAVE_DOPRNT 1
9076_ACEOF
ad6254c5 9077
7a197a62
AK
9078fi
9079
d0191583
JM
9080fi
9081done
8b1a3214 9082
ad6254c5 9083
7a197a62 9084
9c961554 9085################################################################################
ec6a6fbe
AK
9086{ $as_echo "$as_me:$LINENO: checking whether to use static linking" >&5
9087$as_echo_n "checking whether to use static linking... " >&6; }
9c961554
MB
9088# Check whether --enable-static_link was given.
9089if test "${enable_static_link+set}" = set; then
9090 enableval=$enable_static_link; STATIC_LINK=$enableval
9091else
9092 STATIC_LINK=no
9093fi
9094
ec6a6fbe
AK
9095{ $as_echo "$as_me:$LINENO: result: $STATIC_LINK" >&5
9096$as_echo "$STATIC_LINK" >&6; }
9c961554 9097
d0191583 9098################################################################################
ad6254c5 9099
ad6254c5
AK
9100
9101################################################################################
ec6a6fbe
AK
9102{ $as_echo "$as_me:$LINENO: checking file owner" >&5
9103$as_echo_n "checking file owner... " >&6; }
d0191583
JM
9104
9105# Check whether --with-user was given.
9106if test "${with_user+set}" = set; then
9107 withval=$with_user; OWNER="$withval"
7a197a62
AK
9108fi
9109
ec6a6fbe
AK
9110{ $as_echo "$as_me:$LINENO: result: $OWNER" >&5
9111$as_echo "$OWNER" >&6; }
ad6254c5 9112
d0191583 9113if test x$OWNER != x; then
23b059e7 9114 INSTALL="$INSTALL -o $OWNER"
ad6254c5
AK
9115fi
9116
9117################################################################################
ec6a6fbe
AK
9118{ $as_echo "$as_me:$LINENO: checking group owner" >&5
9119$as_echo_n "checking group owner... " >&6; }
ad6254c5 9120
d0191583
JM
9121# Check whether --with-group was given.
9122if test "${with_group+set}" = set; then
9123 withval=$with_group; GROUP="$withval"
7a197a62
AK
9124fi
9125
ec6a6fbe
AK
9126{ $as_echo "$as_me:$LINENO: result: $GROUP" >&5
9127$as_echo "$GROUP" >&6; }
d0191583
JM
9128
9129if test x$GROUP != x; then
23b059e7 9130 INSTALL="$INSTALL -g $GROUP"
d0191583 9131fi
ad6254c5 9132
24bbc4d7 9133################################################################################
ec6a6fbe
AK
9134{ $as_echo "$as_me:$LINENO: checking device node uid" >&5
9135$as_echo_n "checking device node uid... " >&6; }
24bbc4d7
AK
9136
9137
9138# Check whether --with-device-uid was given.
9139if test "${with_device_uid+set}" = set; then
9140 withval=$with_device_uid; DM_DEVICE_UID="$withval"
9141else
9142 DM_DEVICE_UID="0"
9143fi
9144
ec6a6fbe
AK
9145{ $as_echo "$as_me:$LINENO: result: $DM_DEVICE_UID" >&5
9146$as_echo "$DM_DEVICE_UID" >&6; }
24bbc4d7
AK
9147
9148################################################################################
ec6a6fbe
AK
9149{ $as_echo "$as_me:$LINENO: checking device node gid" >&5
9150$as_echo_n "checking device node gid... " >&6; }
24bbc4d7
AK
9151
9152
9153# Check whether --with-device-gid was given.
9154if test "${with_device_gid+set}" = set; then
9155 withval=$with_device_gid; DM_DEVICE_GID="$withval"
9156else
9157 DM_DEVICE_GID="0"
9158fi
9159
ec6a6fbe
AK
9160{ $as_echo "$as_me:$LINENO: result: $DM_DEVICE_GID" >&5
9161$as_echo "$DM_DEVICE_GID" >&6; }
24bbc4d7 9162
93bd259b 9163################################################################################
ec6a6fbe
AK
9164{ $as_echo "$as_me:$LINENO: checking device node mode" >&5
9165$as_echo_n "checking device node mode... " >&6; }
93bd259b
AK
9166
9167
9168# Check whether --with-device-mode was given.
9169if test "${with_device_mode+set}" = set; then
9170 withval=$with_device_mode; DM_DEVICE_MODE="$withval"
9171else
9172 DM_DEVICE_MODE="0600"
9173fi
9174
ec6a6fbe
AK
9175{ $as_echo "$as_me:$LINENO: result: $DM_DEVICE_MODE" >&5
9176$as_echo "$DM_DEVICE_MODE" >&6; }
93bd259b 9177
ad6254c5 9178################################################################################
ec6a6fbe
AK
9179{ $as_echo "$as_me:$LINENO: checking whether to enable lvm1 fallback" >&5
9180$as_echo_n "checking whether to enable lvm1 fallback... " >&6; }
d0191583
JM
9181# Check whether --enable-lvm1_fallback was given.
9182if test "${enable_lvm1_fallback+set}" = set; then
9183 enableval=$enable_lvm1_fallback; LVM1_FALLBACK=$enableval
9184else
9185 LVM1_FALLBACK=no
7a197a62
AK
9186fi
9187
ec6a6fbe
AK
9188{ $as_echo "$as_me:$LINENO: result: $LVM1_FALLBACK" >&5
9189$as_echo "$LVM1_FALLBACK" >&6; }
ad6254c5 9190
d0191583 9191if test x$LVM1_FALLBACK = xyes; then
72b2cb61
AK
9192
9193cat >>confdefs.h <<\_ACEOF
d0191583 9194#define LVM1_FALLBACK 1
72b2cb61
AK
9195_ACEOF
9196
ad6254c5
AK
9197fi
9198
9199################################################################################
ec6a6fbe
AK
9200{ $as_echo "$as_me:$LINENO: checking whether to include support for lvm1 metadata" >&5
9201$as_echo_n "checking whether to include support for lvm1 metadata... " >&6; }
d0191583
JM
9202
9203# Check whether --with-lvm1 was given.
9204if test "${with_lvm1+set}" = set; then
9205 withval=$with_lvm1; LVM1="$withval"
9206else
9207 LVM1="internal"
7a197a62
AK
9208fi
9209
ec6a6fbe
AK
9210{ $as_echo "$as_me:$LINENO: result: $LVM1" >&5
9211$as_echo "$LVM1" >&6; }
ad6254c5 9212
d0191583 9213if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ];
ec6a6fbe 9214 then { { $as_echo "$as_me:$LINENO: error: --with-lvm1 parameter invalid
d0191583 9215" >&5
ec6a6fbe 9216$as_echo "$as_me: error: --with-lvm1 parameter invalid
d0191583
JM
9217" >&2;}
9218 { (exit 1); exit 1; }; }
9219fi;
9220
9221if test x$LVM1 = xinternal; then
72b2cb61
AK
9222
9223cat >>confdefs.h <<\_ACEOF
d0191583 9224#define LVM1_INTERNAL 1
72b2cb61
AK
9225_ACEOF
9226
ad6254c5
AK
9227fi
9228
9229################################################################################
ec6a6fbe
AK
9230{ $as_echo "$as_me:$LINENO: checking whether to include support for GFS pool metadata" >&5
9231$as_echo_n "checking whether to include support for GFS pool metadata... " >&6; }
d0191583
JM
9232
9233# Check whether --with-pool was given.
9234if test "${with_pool+set}" = set; then
9235 withval=$with_pool; POOL="$withval"
ad6254c5 9236else
d0191583 9237 POOL="internal"
7a197a62
AK
9238fi
9239
ec6a6fbe
AK
9240{ $as_echo "$as_me:$LINENO: result: $POOL" >&5
9241$as_echo "$POOL" >&6; }
ad6254c5 9242
d0191583 9243if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ];
ec6a6fbe 9244 then { { $as_echo "$as_me:$LINENO: error: --with-pool parameter invalid
d0191583 9245" >&5
ec6a6fbe 9246$as_echo "$as_me: error: --with-pool parameter invalid
d0191583
JM
9247" >&2;}
9248 { (exit 1); exit 1; }; }
9249fi;
7a197a62 9250
d0191583
JM
9251if test x$POOL = xinternal; then
9252
9253cat >>confdefs.h <<\_ACEOF
9254#define POOL_INTERNAL 1
9255_ACEOF
9256
9257fi
ad6254c5 9258
06f62ad1 9259################################################################################
ec6a6fbe
AK
9260{ $as_echo "$as_me:$LINENO: checking whether to include support for cluster locking" >&5
9261$as_echo_n "checking whether to include support for cluster locking... " >&6; }
d0191583
JM
9262
9263# Check whether --with-cluster was given.
9264if test "${with_cluster+set}" = set; then
9265 withval=$with_cluster; CLUSTER="$withval"
7a197a62
AK
9266fi
9267
ec6a6fbe
AK
9268{ $as_echo "$as_me:$LINENO: result: $CLUSTER" >&5
9269$as_echo "$CLUSTER" >&6; }
06f62ad1 9270
d0191583 9271if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ];
ec6a6fbe 9272 then { { $as_echo "$as_me:$LINENO: error: --with-cluster parameter invalid
06f62ad1 9273" >&5
ec6a6fbe 9274$as_echo "$as_me: error: --with-cluster parameter invalid
06f62ad1
AK
9275" >&2;}
9276 { (exit 1); exit 1; }; }
d0191583 9277fi;
06f62ad1 9278
d0191583 9279if test x$CLUSTER = xinternal; then
72b2cb61
AK
9280
9281cat >>confdefs.h <<\_ACEOF
d0191583 9282#define CLUSTER_LOCKING_INTERNAL 1
72b2cb61
AK
9283_ACEOF
9284
15d91f5a 9285fi
ad6254c5
AK
9286
9287################################################################################
ec6a6fbe
AK
9288{ $as_echo "$as_me:$LINENO: checking whether to include snapshots" >&5
9289$as_echo_n "checking whether to include snapshots... " >&6; }
ad6254c5 9290
d0191583
JM
9291# Check whether --with-snapshots was given.
9292if test "${with_snapshots+set}" = set; then
9293 withval=$with_snapshots; SNAPSHOTS="$withval"
9294else
9295 SNAPSHOTS="internal"
ad6254c5
AK
9296fi
9297
ec6a6fbe
AK
9298{ $as_echo "$as_me:$LINENO: result: $SNAPSHOTS" >&5
9299$as_echo "$SNAPSHOTS" >&6; }
ad6254c5 9300
d0191583 9301if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ];
ec6a6fbe 9302 then { { $as_echo "$as_me:$LINENO: error: --with-snapshots parameter invalid
d0191583 9303" >&5
ec6a6fbe 9304$as_echo "$as_me: error: --with-snapshots parameter invalid
d0191583
JM
9305" >&2;}
9306 { (exit 1); exit 1; }; }
9307fi;
9308
9309if test x$SNAPSHOTS = xinternal; then
9310
9311cat >>confdefs.h <<\_ACEOF
9312#define SNAPSHOT_INTERNAL 1
9313_ACEOF
ad6254c5 9314
ad6254c5 9315fi
7a197a62 9316
d0191583 9317################################################################################
ec6a6fbe
AK
9318{ $as_echo "$as_me:$LINENO: checking whether to include mirrors" >&5
9319$as_echo_n "checking whether to include mirrors... " >&6; }
d0191583
JM
9320
9321# Check whether --with-mirrors was given.
9322if test "${with_mirrors+set}" = set; then
9323 withval=$with_mirrors; MIRRORS="$withval"
9324else
9325 MIRRORS="internal"
ad6254c5 9326fi
ad6254c5 9327
ec6a6fbe
AK
9328{ $as_echo "$as_me:$LINENO: result: $MIRRORS" >&5
9329$as_echo "$MIRRORS" >&6; }
ad6254c5 9330
d0191583 9331if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ];
ec6a6fbe 9332 then { { $as_echo "$as_me:$LINENO: error: --with-mirrors parameter invalid
d0191583 9333" >&5
ec6a6fbe 9334$as_echo "$as_me: error: --with-mirrors parameter invalid
d0191583
JM
9335" >&2;}
9336 { (exit 1); exit 1; }; }
9337fi;
ad6254c5 9338
d0191583 9339if test x$MIRRORS = xinternal; then
ad6254c5 9340
d0191583
JM
9341cat >>confdefs.h <<\_ACEOF
9342#define MIRRORED_INTERNAL 1
ad6254c5 9343_ACEOF
8a2fc586 9344
d0191583 9345fi
8a2fc586 9346
d0191583 9347################################################################################
ec6a6fbe
AK
9348{ $as_echo "$as_me:$LINENO: checking whether to enable readline" >&5
9349$as_echo_n "checking whether to enable readline... " >&6; }
d0191583
JM
9350# Check whether --enable-readline was given.
9351if test "${enable_readline+set}" = set; then
9352 enableval=$enable_readline; READLINE=$enableval
9353else
06e459df 9354 READLINE=maybe
d0191583 9355fi
8a2fc586 9356
ec6a6fbe
AK
9357{ $as_echo "$as_me:$LINENO: result: $READLINE" >&5
9358$as_echo "$READLINE" >&6; }
8a2fc586 9359
d0191583 9360################################################################################
ec6a6fbe
AK
9361{ $as_echo "$as_me:$LINENO: checking whether to enable realtime support" >&5
9362$as_echo_n "checking whether to enable realtime support... " >&6; }
d0191583
JM
9363# Check whether --enable-realtime was given.
9364if test "${enable_realtime+set}" = set; then
9365 enableval=$enable_realtime; REALTIME=$enableval
ad6254c5 9366fi
ad6254c5 9367
ec6a6fbe
AK
9368{ $as_echo "$as_me:$LINENO: result: $REALTIME" >&5
9369$as_echo "$REALTIME" >&6; }
d0191583
JM
9370
9371################################################################################
90c80887 9372pkg_config_init() {
e2997b73
AK
9373
9374
9375if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
9376 if test -n "$ac_tool_prefix"; then
9377 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
9378set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
9379{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9380$as_echo_n "checking for $ac_word... " >&6; }
9381if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9382 $as_echo_n "(cached) " >&6
9383else
9384 case $PKG_CONFIG in
9385 [\\/]* | ?:[\\/]*)
9386 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9387 ;;
9388 *)
9389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9390for as_dir in $PATH
9391do
9392 IFS=$as_save_IFS
9393 test -z "$as_dir" && as_dir=.
9394 for ac_exec_ext in '' $ac_executable_extensions; do
9395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9396 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9397 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9398 break 2
9399 fi
9400done
9401done
9402IFS=$as_save_IFS
9403
9404 ;;
9405esac
9406fi
9407PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9408if test -n "$PKG_CONFIG"; then
9409 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9410$as_echo "$PKG_CONFIG" >&6; }
9411else
9412 { $as_echo "$as_me:$LINENO: result: no" >&5
9413$as_echo "no" >&6; }
9414fi
9415
9416
9417fi
9418if test -z "$ac_cv_path_PKG_CONFIG"; then
9419 ac_pt_PKG_CONFIG=$PKG_CONFIG
9420 # Extract the first word of "pkg-config", so it can be a program name with args.
9421set dummy pkg-config; ac_word=$2
9422{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9423$as_echo_n "checking for $ac_word... " >&6; }
9424if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
9425 $as_echo_n "(cached) " >&6
9426else
9427 case $ac_pt_PKG_CONFIG in
9428 [\\/]* | ?:[\\/]*)
9429 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
9430 ;;
9431 *)
9432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9433for as_dir in $PATH
9434do
9435 IFS=$as_save_IFS
9436 test -z "$as_dir" && as_dir=.
9437 for ac_exec_ext in '' $ac_executable_extensions; do
9438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9439 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9440 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9441 break 2
9442 fi
9443done
9444done
9445IFS=$as_save_IFS
9446
9447 ;;
9448esac
9449fi
9450ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
9451if test -n "$ac_pt_PKG_CONFIG"; then
9452 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
9453$as_echo "$ac_pt_PKG_CONFIG" >&6; }
9454else
9455 { $as_echo "$as_me:$LINENO: result: no" >&5
9456$as_echo "no" >&6; }
9457fi
9458
9459 if test "x$ac_pt_PKG_CONFIG" = x; then
9460 PKG_CONFIG=""
9461 else
9462 case $cross_compiling:$ac_tool_warned in
9463yes:)
9464{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9465$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9466ac_tool_warned=yes ;;
9467esac
9468 PKG_CONFIG=$ac_pt_PKG_CONFIG
9469 fi
9470else
9471 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
9472fi
9473
9474fi
9475if test -n "$PKG_CONFIG"; then
9476 _pkg_min_version=0.9.0
9477 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
9478$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
9479 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
9480 { $as_echo "$as_me:$LINENO: result: yes" >&5
9481$as_echo "yes" >&6; }
9482 else
9483 { $as_echo "$as_me:$LINENO: result: no" >&5
9484$as_echo "no" >&6; }
9485 PKG_CONFIG=""
9486 fi
9487
9488fi
9489
9490pkg_failed=no
a946372e
AK
9491{ $as_echo "$as_me:$LINENO: checking for PKGCONFIGINIT" >&5
9492$as_echo_n "checking for PKGCONFIGINIT... " >&6; }
e2997b73 9493
a946372e
AK
9494if test -n "$PKGCONFIGINIT_CFLAGS"; then
9495 pkg_cv_PKGCONFIGINIT_CFLAGS="$PKGCONFIGINIT_CFLAGS"
e2997b73
AK
9496 elif test -n "$PKG_CONFIG"; then
9497 if test -n "$PKG_CONFIG" && \
a946372e
AK
9498 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\"") >&5
9499 ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5
e2997b73
AK
9500 ac_status=$?
9501 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9502 (exit $ac_status); }; then
a946372e 9503 pkg_cv_PKGCONFIGINIT_CFLAGS=`$PKG_CONFIG --cflags "pkgconfiginit" 2>/dev/null`
e2997b73
AK
9504else
9505 pkg_failed=yes
9506fi
9507 else
9508 pkg_failed=untried
9509fi
a946372e
AK
9510if test -n "$PKGCONFIGINIT_LIBS"; then
9511 pkg_cv_PKGCONFIGINIT_LIBS="$PKGCONFIGINIT_LIBS"
e2997b73
AK
9512 elif test -n "$PKG_CONFIG"; then
9513 if test -n "$PKG_CONFIG" && \
a946372e
AK
9514 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\"") >&5
9515 ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5
e2997b73
AK
9516 ac_status=$?
9517 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9518 (exit $ac_status); }; then
a946372e 9519 pkg_cv_PKGCONFIGINIT_LIBS=`$PKG_CONFIG --libs "pkgconfiginit" 2>/dev/null`
e2997b73
AK
9520else
9521 pkg_failed=yes
9522fi
9523 else
9524 pkg_failed=untried
9525fi
9526
9527
9528
9529if test $pkg_failed = yes; then
9530
9531if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9532 _pkg_short_errors_supported=yes
9533else
9534 _pkg_short_errors_supported=no
9535fi
9536 if test $_pkg_short_errors_supported = yes; then
a946372e 9537 PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pkgconfiginit" 2>&1`
e2997b73 9538 else
a946372e 9539 PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "pkgconfiginit" 2>&1`
e2997b73
AK
9540 fi
9541 # Put the nasty error message in config.log where it belongs
a946372e 9542 echo "$PKGCONFIGINIT_PKG_ERRORS" >&5
e2997b73
AK
9543
9544 { $as_echo "$as_me:$LINENO: result: no" >&5
9545$as_echo "no" >&6; }
a946372e
AK
9546 { $as_echo "$as_me:$LINENO: result: pkg-config initialized" >&5
9547$as_echo "pkg-config initialized" >&6; }
e2997b73 9548elif test $pkg_failed = untried; then
a946372e
AK
9549 { $as_echo "$as_me:$LINENO: result: pkg-config initialized" >&5
9550$as_echo "pkg-config initialized" >&6; }
e2997b73 9551else
a946372e
AK
9552 PKGCONFIGINIT_CFLAGS=$pkg_cv_PKGCONFIGINIT_CFLAGS
9553 PKGCONFIGINIT_LIBS=$pkg_cv_PKGCONFIGINIT_LIBS
e2997b73
AK
9554 { $as_echo "$as_me:$LINENO: result: yes" >&5
9555$as_echo "yes" >&6; }
9556 :
9557fi
90c80887
AK
9558 PKGCONFIG_INIT=1
9559}
9560
9561################################################################################
9562{ $as_echo "$as_me:$LINENO: checking whether to build cluster LVM daemon" >&5
9563$as_echo_n "checking whether to build cluster LVM daemon... " >&6; }
9564
9565# Check whether --with-clvmd was given.
9566if test "${with_clvmd+set}" = set; then
9567 withval=$with_clvmd; CLVMD="$withval"
9568else
9569 CLVMD="none"
9570fi
9571
9572if test x$CLVMD = xyes; then
9573 CLVMD=all
9574fi
9575{ $as_echo "$as_me:$LINENO: result: $CLVMD" >&5
9576$as_echo "$CLVMD" >&6; }
9577
9578if test x$CLVMD != xnone && test x$CLUSTER = xnone; then
9579 CLUSTER=internal
9580fi
9581
9582if test x$CLVMD != xnone && test x$PKGCONFIG_INIT != x1; then
9583 pkg_config_init
9584fi
9585
9586
9587if [ `expr x"$CLVMD" : '.*gulm.*'` != 0 ]; then
9588 BUILDGULM=yes
9589fi
9590if [ `expr x"$CLVMD" : '.*corosync.*'` != 0 ]; then
9591 BUILDCOROSYNC=yes
9592fi
9593if [ `expr x"$CLVMD" : '.*openais.*'` != 0 ]; then
9594 BUILDOPENAIS=yes
9595fi
9596if [ `expr x"$CLVMD" : '.*cman.*'` != 0 ]; then
9597 BUILDCMAN=yes
9598fi
9599
9600if test x$BUILDGULM = xyes; then
9601 if test x$BUILDCOROSYNC = xyes || \
9602 test x$BUILDOPENAIS = xyes; then
9603 { { $as_echo "$as_me:$LINENO: error: requested clvmd configuration is not valid" >&5
9604$as_echo "$as_me: error: requested clvmd configuration is not valid" >&2;}
9605 { (exit 1); exit 1; }; }
9606 fi
a946372e 9607fi
e2997b73 9608
a946372e
AK
9609soft_bailout() {
9610 NOTFOUND=1
9611}
e2997b73 9612
a946372e
AK
9613hard_bailout() {
9614 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
9615$as_echo "$as_me: error: bailing out" >&2;}
9616 { (exit 1); exit 1; }; }
9617}
9618
9619if test x$CLVMD = xall; then
9620 bailout=soft_bailout
9621 BUILDGULM=yes
9622 BUILDCMAN=yes
9623 BUILDCOROSYNC=yes
9624 BUILDOPENAIS=yes
e2997b73 9625else
a946372e 9626 bailout=hard_bailout
e2997b73 9627fi
a946372e
AK
9628
9629check_lib_no_libs() {
9630 lib_no_libs_arg1=$1
9631 shift
9632 lib_no_libs_arg2=$1
9633 shift
9634 lib_no_libs_args=$@
9635
9636as_ac_Lib=`$as_echo "ac_cv_lib_$lib_no_libs_arg1''_$lib_no_libs_arg2" | $as_tr_sh`
9637{ $as_echo "$as_me:$LINENO: checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1" >&5
9638$as_echo_n "checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1... " >&6; }
9639if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
9640 $as_echo_n "(cached) " >&6
9641else
9642 ac_check_lib_save_LIBS=$LIBS
9643LIBS="-l$lib_no_libs_arg1 $lib_no_libs_args $LIBS"
9644cat >conftest.$ac_ext <<_ACEOF
9645/* confdefs.h. */
9646_ACEOF
9647cat confdefs.h >>conftest.$ac_ext
9648cat >>conftest.$ac_ext <<_ACEOF
9649/* end confdefs.h. */
9650
9651/* Override any GCC internal prototype to avoid an error.
9652 Use char because int might match the return type of a GCC
9653 builtin and then its argument prototype would still apply. */
9654#ifdef __cplusplus
9655extern "C"
9656#endif
9657char $lib_no_libs_arg2 ();
9658int
9659main ()
9660{
9661return $lib_no_libs_arg2 ();
9662 ;
9663 return 0;
9664}
9665_ACEOF
9666rm -f conftest.$ac_objext conftest$ac_exeext
9667if { (ac_try="$ac_link"
9668case "(($ac_try" in
9669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9670 *) ac_try_echo=$ac_try;;
9671esac
9672eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9673$as_echo "$ac_try_echo") >&5
9674 (eval "$ac_link") 2>conftest.er1
e2997b73 9675 ac_status=$?
a946372e
AK
9676 grep -v '^ *+' conftest.er1 >conftest.err
9677 rm -f conftest.er1
9678 cat conftest.err >&5
e2997b73 9679 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
a946372e
AK
9680 (exit $ac_status); } && {
9681 test -z "$ac_c_werror_flag" ||
9682 test ! -s conftest.err
9683 } && test -s conftest$ac_exeext && {
9684 test "$cross_compiling" = yes ||
9685 $as_test_x conftest$ac_exeext
9686 }; then
9687 eval "$as_ac_Lib=yes"
e2997b73 9688else
a946372e
AK
9689 $as_echo "$as_me: failed program was:" >&5
9690sed 's/^/| /' conftest.$ac_ext >&5
e2997b73 9691
a946372e
AK
9692 eval "$as_ac_Lib=no"
9693fi
e2997b73 9694
a946372e
AK
9695rm -rf conftest.dSYM
9696rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9697 conftest$ac_exeext conftest.$ac_ext
9698LIBS=$ac_check_lib_save_LIBS
9699fi
9700ac_res=`eval 'as_val=${'$as_ac_Lib'}
9701 $as_echo "$as_val"'`
9702 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9703$as_echo "$ac_res" >&6; }
9704as_val=`eval 'as_val=${'$as_ac_Lib'}
9705 $as_echo "$as_val"'`
9706 if test "x$as_val" = x""yes; then
9707 cat >>confdefs.h <<_ACEOF
9708#define `$as_echo "HAVE_LIB$lib_no_libs_arg1" | $as_tr_cpp` 1
9709_ACEOF
e2997b73 9710
a946372e 9711 LIBS="-l$lib_no_libs_arg1 $LIBS"
e2997b73 9712
e2997b73 9713else
a946372e 9714 $bailout
e2997b73 9715fi
e2997b73 9716
a946372e
AK
9717 LIBS=$ac_check_lib_save_LIBS
9718}
9719
9720if test x$BUILDGULM = xyes; then
e2997b73
AK
9721
9722pkg_failed=no
a946372e
AK
9723{ $as_echo "$as_me:$LINENO: checking for CCS" >&5
9724$as_echo_n "checking for CCS... " >&6; }
e2997b73 9725
a946372e
AK
9726if test -n "$CCS_CFLAGS"; then
9727 pkg_cv_CCS_CFLAGS="$CCS_CFLAGS"
e2997b73
AK
9728 elif test -n "$PKG_CONFIG"; then
9729 if test -n "$PKG_CONFIG" && \
a946372e
AK
9730 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libccs\"") >&5
9731 ($PKG_CONFIG --exists --print-errors "libccs") 2>&5
e2997b73
AK
9732 ac_status=$?
9733 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9734 (exit $ac_status); }; then
a946372e 9735 pkg_cv_CCS_CFLAGS=`$PKG_CONFIG --cflags "libccs" 2>/dev/null`
e2997b73
AK
9736else
9737 pkg_failed=yes
9738fi
9739 else
9740 pkg_failed=untried
9741fi
a946372e
AK
9742if test -n "$CCS_LIBS"; then
9743 pkg_cv_CCS_LIBS="$CCS_LIBS"
e2997b73
AK
9744 elif test -n "$PKG_CONFIG"; then
9745 if test -n "$PKG_CONFIG" && \
a946372e
AK
9746 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libccs\"") >&5
9747 ($PKG_CONFIG --exists --print-errors "libccs") 2>&5
e2997b73
AK
9748 ac_status=$?
9749 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9750 (exit $ac_status); }; then
a946372e 9751 pkg_cv_CCS_LIBS=`$PKG_CONFIG --libs "libccs" 2>/dev/null`
e2997b73
AK
9752else
9753 pkg_failed=yes
9754fi
9755 else
9756 pkg_failed=untried
9757fi
9758
9759
9760
9761if test $pkg_failed = yes; then
9762
9763if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9764 _pkg_short_errors_supported=yes
9765else
9766 _pkg_short_errors_supported=no
9767fi
9768 if test $_pkg_short_errors_supported = yes; then
a946372e 9769 CCS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libccs" 2>&1`
e2997b73 9770 else
a946372e 9771 CCS_PKG_ERRORS=`$PKG_CONFIG --print-errors "libccs" 2>&1`
e2997b73
AK
9772 fi
9773 # Put the nasty error message in config.log where it belongs
a946372e 9774 echo "$CCS_PKG_ERRORS" >&5
e2997b73
AK
9775
9776 { $as_echo "$as_me:$LINENO: result: no" >&5
9777$as_echo "no" >&6; }
a946372e 9778 NOTFOUND=0
e2997b73 9779
a946372e
AK
9780for ac_header in ccs.h
9781do
9782as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9783if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9784 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9785$as_echo_n "checking for $ac_header... " >&6; }
9786if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9787 $as_echo_n "(cached) " >&6
d0191583 9788fi
a946372e
AK
9789ac_res=`eval 'as_val=${'$as_ac_Header'}
9790 $as_echo "$as_val"'`
9791 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9792$as_echo "$ac_res" >&6; }
fc54be10 9793else
a946372e
AK
9794 # Is the header compilable?
9795{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9796$as_echo_n "checking $ac_header usability... " >&6; }
9797cat >conftest.$ac_ext <<_ACEOF
9798/* confdefs.h. */
9799_ACEOF
9800cat confdefs.h >>conftest.$ac_ext
9801cat >>conftest.$ac_ext <<_ACEOF
9802/* end confdefs.h. */
9803$ac_includes_default
9804#include <$ac_header>
9805_ACEOF
9806rm -f conftest.$ac_objext
9807if { (ac_try="$ac_compile"
9808case "(($ac_try" in
9809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9810 *) ac_try_echo=$ac_try;;
9811esac
9812eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9813$as_echo "$ac_try_echo") >&5
9814 (eval "$ac_compile") 2>conftest.er1
9815 ac_status=$?
9816 grep -v '^ *+' conftest.er1 >conftest.err
9817 rm -f conftest.er1
9818 cat conftest.err >&5
9819 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9820 (exit $ac_status); } && {
9821 test -z "$ac_c_werror_flag" ||
9822 test ! -s conftest.err
9823 } && test -s conftest.$ac_objext; then
9824 ac_header_compiler=yes
9825else
9826 $as_echo "$as_me: failed program was:" >&5
9827sed 's/^/| /' conftest.$ac_ext >&5
d0191583 9828
a946372e 9829 ac_header_compiler=no
d0191583
JM
9830fi
9831
a946372e
AK
9832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9833{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9834$as_echo "$ac_header_compiler" >&6; }
fddafd51 9835
a946372e
AK
9836# Is the header present?
9837{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9838$as_echo_n "checking $ac_header presence... " >&6; }
9839cat >conftest.$ac_ext <<_ACEOF
9840/* confdefs.h. */
9841_ACEOF
9842cat confdefs.h >>conftest.$ac_ext
9843cat >>conftest.$ac_ext <<_ACEOF
9844/* end confdefs.h. */
9845#include <$ac_header>
9846_ACEOF
9847if { (ac_try="$ac_cpp conftest.$ac_ext"
9848case "(($ac_try" in
9849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9850 *) ac_try_echo=$ac_try;;
9851esac
9852eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9853$as_echo "$ac_try_echo") >&5
9854 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9855 ac_status=$?
9856 grep -v '^ *+' conftest.er1 >conftest.err
9857 rm -f conftest.er1
9858 cat conftest.err >&5
9859 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9860 (exit $ac_status); } >/dev/null && {
9861 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9862 test ! -s conftest.err
9863 }; then
9864 ac_header_preproc=yes
9865else
9866 $as_echo "$as_me: failed program was:" >&5
9867sed 's/^/| /' conftest.$ac_ext >&5
9868
9869 ac_header_preproc=no
9870fi
9871
9872rm -f conftest.err conftest.$ac_ext
9873{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9874$as_echo "$ac_header_preproc" >&6; }
9875
9876# So? What about this header?
9877case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9878 yes:no: )
9879 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9880$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9881 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9882$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9883 ac_header_preproc=yes
9884 ;;
9885 no:yes:* )
9886 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9887$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9888 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9889$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9890 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9891$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9892 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9893$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9894 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9895$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9896 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9897$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9898
9899 ;;
9900esac
9901{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9902$as_echo_n "checking for $ac_header... " >&6; }
9903if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9904 $as_echo_n "(cached) " >&6
9905else
9906 eval "$as_ac_Header=\$ac_header_preproc"
9907fi
9908ac_res=`eval 'as_val=${'$as_ac_Header'}
9909 $as_echo "$as_val"'`
9910 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9911$as_echo "$ac_res" >&6; }
9912
9913fi
9914as_val=`eval 'as_val=${'$as_ac_Header'}
9915 $as_echo "$as_val"'`
9916 if test "x$as_val" = x""yes; then
9917 cat >>confdefs.h <<_ACEOF
9918#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9919_ACEOF
9920
9921else
9922 $bailout
9923fi
9924
9925done
9926
9927 check_lib_no_libs ccs ccs_connect
9928 if test $NOTFOUND = 0; then
9929 { $as_echo "$as_me:$LINENO: result: no pkg for libccs, using -lccs" >&5
9930$as_echo "no pkg for libccs, using -lccs" >&6; }
9931 CCS_LIBS="-lccs"
9932 HAVE_CCS=yes
9933 fi
9934elif test $pkg_failed = untried; then
9935 NOTFOUND=0
9936
9937for ac_header in ccs.h
9938do
9939as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9940if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9941 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9942$as_echo_n "checking for $ac_header... " >&6; }
9943if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9944 $as_echo_n "(cached) " >&6
9945fi
9946ac_res=`eval 'as_val=${'$as_ac_Header'}
9947 $as_echo "$as_val"'`
9948 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9949$as_echo "$ac_res" >&6; }
9950else
9951 # Is the header compilable?
9952{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9953$as_echo_n "checking $ac_header usability... " >&6; }
9954cat >conftest.$ac_ext <<_ACEOF
9955/* confdefs.h. */
9956_ACEOF
9957cat confdefs.h >>conftest.$ac_ext
9958cat >>conftest.$ac_ext <<_ACEOF
9959/* end confdefs.h. */
9960$ac_includes_default
9961#include <$ac_header>
9962_ACEOF
9963rm -f conftest.$ac_objext
9964if { (ac_try="$ac_compile"
9965case "(($ac_try" in
9966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9967 *) ac_try_echo=$ac_try;;
9968esac
9969eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9970$as_echo "$ac_try_echo") >&5
9971 (eval "$ac_compile") 2>conftest.er1
9972 ac_status=$?
9973 grep -v '^ *+' conftest.er1 >conftest.err
9974 rm -f conftest.er1
9975 cat conftest.err >&5
9976 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9977 (exit $ac_status); } && {
9978 test -z "$ac_c_werror_flag" ||
9979 test ! -s conftest.err
9980 } && test -s conftest.$ac_objext; then
9981 ac_header_compiler=yes
9982else
9983 $as_echo "$as_me: failed program was:" >&5
9984sed 's/^/| /' conftest.$ac_ext >&5
9985
9986 ac_header_compiler=no
9987fi
9988
9989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9990{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9991$as_echo "$ac_header_compiler" >&6; }
9992
9993# Is the header present?
9994{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9995$as_echo_n "checking $ac_header presence... " >&6; }
9996cat >conftest.$ac_ext <<_ACEOF
9997/* confdefs.h. */
9998_ACEOF
9999cat confdefs.h >>conftest.$ac_ext
10000cat >>conftest.$ac_ext <<_ACEOF
10001/* end confdefs.h. */
10002#include <$ac_header>
10003_ACEOF
10004if { (ac_try="$ac_cpp conftest.$ac_ext"
10005case "(($ac_try" in
10006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10007 *) ac_try_echo=$ac_try;;
10008esac
10009eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10010$as_echo "$ac_try_echo") >&5
10011 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10012 ac_status=$?
10013 grep -v '^ *+' conftest.er1 >conftest.err
10014 rm -f conftest.er1
10015 cat conftest.err >&5
10016 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10017 (exit $ac_status); } >/dev/null && {
10018 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10019 test ! -s conftest.err
10020 }; then
10021 ac_header_preproc=yes
10022else
10023 $as_echo "$as_me: failed program was:" >&5
10024sed 's/^/| /' conftest.$ac_ext >&5
10025
10026 ac_header_preproc=no
10027fi
10028
10029rm -f conftest.err conftest.$ac_ext
10030{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10031$as_echo "$ac_header_preproc" >&6; }
10032
10033# So? What about this header?
10034case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10035 yes:no: )
10036 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10037$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10038 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10039$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10040 ac_header_preproc=yes
10041 ;;
10042 no:yes:* )
10043 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10044$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10045 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10046$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10047 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10048$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10049 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10050$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10051 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10052$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10053 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10054$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10055
10056 ;;
10057esac
10058{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10059$as_echo_n "checking for $ac_header... " >&6; }
10060if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10061 $as_echo_n "(cached) " >&6
10062else
10063 eval "$as_ac_Header=\$ac_header_preproc"
10064fi
10065ac_res=`eval 'as_val=${'$as_ac_Header'}
10066 $as_echo "$as_val"'`
10067 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10068$as_echo "$ac_res" >&6; }
10069
10070fi
10071as_val=`eval 'as_val=${'$as_ac_Header'}
10072 $as_echo "$as_val"'`
10073 if test "x$as_val" = x""yes; then
10074 cat >>confdefs.h <<_ACEOF
10075#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10076_ACEOF
10077
10078else
10079 $bailout
10080fi
10081
10082done
10083
10084 check_lib_no_libs ccs ccs_connect
10085 if test $NOTFOUND = 0; then
10086 { $as_echo "$as_me:$LINENO: result: no pkg for libccs, using -lccs" >&5
10087$as_echo "no pkg for libccs, using -lccs" >&6; }
10088 CCS_LIBS="-lccs"
10089 HAVE_CCS=yes
10090 fi
10091else
10092 CCS_CFLAGS=$pkg_cv_CCS_CFLAGS
10093 CCS_LIBS=$pkg_cv_CCS_LIBS
10094 { $as_echo "$as_me:$LINENO: result: yes" >&5
10095$as_echo "yes" >&6; }
10096 HAVE_CCS=yes
10097fi
10098
10099pkg_failed=no
10100{ $as_echo "$as_me:$LINENO: checking for GULM" >&5
10101$as_echo_n "checking for GULM... " >&6; }
10102
10103if test -n "$GULM_CFLAGS"; then
10104 pkg_cv_GULM_CFLAGS="$GULM_CFLAGS"
10105 elif test -n "$PKG_CONFIG"; then
10106 if test -n "$PKG_CONFIG" && \
10107 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgulm\"") >&5
10108 ($PKG_CONFIG --exists --print-errors "libgulm") 2>&5
10109 ac_status=$?
10110 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10111 (exit $ac_status); }; then
10112 pkg_cv_GULM_CFLAGS=`$PKG_CONFIG --cflags "libgulm" 2>/dev/null`
10113else
10114 pkg_failed=yes
10115fi
10116 else
10117 pkg_failed=untried
10118fi
10119if test -n "$GULM_LIBS"; then
10120 pkg_cv_GULM_LIBS="$GULM_LIBS"
10121 elif test -n "$PKG_CONFIG"; then
10122 if test -n "$PKG_CONFIG" && \
10123 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgulm\"") >&5
10124 ($PKG_CONFIG --exists --print-errors "libgulm") 2>&5
10125 ac_status=$?
10126 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10127 (exit $ac_status); }; then
10128 pkg_cv_GULM_LIBS=`$PKG_CONFIG --libs "libgulm" 2>/dev/null`
10129else
10130 pkg_failed=yes
10131fi
10132 else
10133 pkg_failed=untried
10134fi
10135
10136
10137
10138if test $pkg_failed = yes; then
10139
10140if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10141 _pkg_short_errors_supported=yes
10142else
10143 _pkg_short_errors_supported=no
10144fi
10145 if test $_pkg_short_errors_supported = yes; then
10146 GULM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgulm" 2>&1`
10147 else
10148 GULM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgulm" 2>&1`
10149 fi
10150 # Put the nasty error message in config.log where it belongs
10151 echo "$GULM_PKG_ERRORS" >&5
10152
10153 { $as_echo "$as_me:$LINENO: result: no" >&5
10154$as_echo "no" >&6; }
10155 NOTFOUND=0
10156
10157for ac_header in libgulm.h
10158do
10159as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10160if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10161 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10162$as_echo_n "checking for $ac_header... " >&6; }
10163if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10164 $as_echo_n "(cached) " >&6
10165fi
10166ac_res=`eval 'as_val=${'$as_ac_Header'}
10167 $as_echo "$as_val"'`
10168 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10169$as_echo "$ac_res" >&6; }
10170else
10171 # Is the header compilable?
10172{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10173$as_echo_n "checking $ac_header usability... " >&6; }
10174cat >conftest.$ac_ext <<_ACEOF
10175/* confdefs.h. */
10176_ACEOF
10177cat confdefs.h >>conftest.$ac_ext
10178cat >>conftest.$ac_ext <<_ACEOF
10179/* end confdefs.h. */
10180$ac_includes_default
10181#include <$ac_header>
10182_ACEOF
10183rm -f conftest.$ac_objext
10184if { (ac_try="$ac_compile"
10185case "(($ac_try" in
10186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10187 *) ac_try_echo=$ac_try;;
10188esac
10189eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10190$as_echo "$ac_try_echo") >&5
10191 (eval "$ac_compile") 2>conftest.er1
10192 ac_status=$?
10193 grep -v '^ *+' conftest.er1 >conftest.err
10194 rm -f conftest.er1
10195 cat conftest.err >&5
10196 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10197 (exit $ac_status); } && {
10198 test -z "$ac_c_werror_flag" ||
10199 test ! -s conftest.err
10200 } && test -s conftest.$ac_objext; then
10201 ac_header_compiler=yes
10202else
10203 $as_echo "$as_me: failed program was:" >&5
10204sed 's/^/| /' conftest.$ac_ext >&5
10205
10206 ac_header_compiler=no
10207fi
10208
10209rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10210{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10211$as_echo "$ac_header_compiler" >&6; }
10212
10213# Is the header present?
10214{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10215$as_echo_n "checking $ac_header presence... " >&6; }
10216cat >conftest.$ac_ext <<_ACEOF
10217/* confdefs.h. */
10218_ACEOF
10219cat confdefs.h >>conftest.$ac_ext
10220cat >>conftest.$ac_ext <<_ACEOF
10221/* end confdefs.h. */
10222#include <$ac_header>
10223_ACEOF
10224if { (ac_try="$ac_cpp conftest.$ac_ext"
10225case "(($ac_try" in
10226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10227 *) ac_try_echo=$ac_try;;
10228esac
10229eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10230$as_echo "$ac_try_echo") >&5
10231 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10232 ac_status=$?
10233 grep -v '^ *+' conftest.er1 >conftest.err
10234 rm -f conftest.er1
10235 cat conftest.err >&5
10236 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10237 (exit $ac_status); } >/dev/null && {
10238 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10239 test ! -s conftest.err
10240 }; then
10241 ac_header_preproc=yes
10242else
10243 $as_echo "$as_me: failed program was:" >&5
10244sed 's/^/| /' conftest.$ac_ext >&5
10245
10246 ac_header_preproc=no
10247fi
10248
10249rm -f conftest.err conftest.$ac_ext
10250{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10251$as_echo "$ac_header_preproc" >&6; }
10252
10253# So? What about this header?
10254case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10255 yes:no: )
10256 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10257$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10258 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10259$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10260 ac_header_preproc=yes
10261 ;;
10262 no:yes:* )
10263 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10264$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10265 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10266$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10267 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10268$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10269 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10270$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10271 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10272$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10273 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10274$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10275
10276 ;;
10277esac
10278{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10279$as_echo_n "checking for $ac_header... " >&6; }
10280if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10281 $as_echo_n "(cached) " >&6
10282else
10283 eval "$as_ac_Header=\$ac_header_preproc"
10284fi
10285ac_res=`eval 'as_val=${'$as_ac_Header'}
10286 $as_echo "$as_val"'`
10287 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10288$as_echo "$ac_res" >&6; }
10289
10290fi
10291as_val=`eval 'as_val=${'$as_ac_Header'}
10292 $as_echo "$as_val"'`
10293 if test "x$as_val" = x""yes; then
10294 cat >>confdefs.h <<_ACEOF
10295#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10296_ACEOF
10297
10298else
10299 $bailout
10300fi
10301
10302done
10303
10304 check_lib_no_libs gulm lg_core_login
10305 if test $NOTFOUND = 0; then
10306 { $as_echo "$as_me:$LINENO: result: no pkg for libgulm, using -lgulm" >&5
10307$as_echo "no pkg for libgulm, using -lgulm" >&6; }
10308 GULM_LIBS="-lgulm"
10309 HAVE_GULM=yes
10310 fi
10311elif test $pkg_failed = untried; then
10312 NOTFOUND=0
10313
10314for ac_header in libgulm.h
10315do
10316as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10317if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10318 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10319$as_echo_n "checking for $ac_header... " >&6; }
10320if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10321 $as_echo_n "(cached) " >&6
10322fi
10323ac_res=`eval 'as_val=${'$as_ac_Header'}
10324 $as_echo "$as_val"'`
10325 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10326$as_echo "$ac_res" >&6; }
10327else
10328 # Is the header compilable?
10329{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10330$as_echo_n "checking $ac_header usability... " >&6; }
10331cat >conftest.$ac_ext <<_ACEOF
10332/* confdefs.h. */
10333_ACEOF
10334cat confdefs.h >>conftest.$ac_ext
10335cat >>conftest.$ac_ext <<_ACEOF
10336/* end confdefs.h. */
10337$ac_includes_default
10338#include <$ac_header>
10339_ACEOF
10340rm -f conftest.$ac_objext
10341if { (ac_try="$ac_compile"
10342case "(($ac_try" in
10343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10344 *) ac_try_echo=$ac_try;;
10345esac
10346eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10347$as_echo "$ac_try_echo") >&5
10348 (eval "$ac_compile") 2>conftest.er1
10349 ac_status=$?
10350 grep -v '^ *+' conftest.er1 >conftest.err
10351 rm -f conftest.er1
10352 cat conftest.err >&5
10353 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10354 (exit $ac_status); } && {
10355 test -z "$ac_c_werror_flag" ||
10356 test ! -s conftest.err
10357 } && test -s conftest.$ac_objext; then
10358 ac_header_compiler=yes
10359else
10360 $as_echo "$as_me: failed program was:" >&5
10361sed 's/^/| /' conftest.$ac_ext >&5
10362
10363 ac_header_compiler=no
10364fi
10365
10366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10367{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10368$as_echo "$ac_header_compiler" >&6; }
10369
10370# Is the header present?
10371{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10372$as_echo_n "checking $ac_header presence... " >&6; }
10373cat >conftest.$ac_ext <<_ACEOF
10374/* confdefs.h. */
10375_ACEOF
10376cat confdefs.h >>conftest.$ac_ext
10377cat >>conftest.$ac_ext <<_ACEOF
10378/* end confdefs.h. */
10379#include <$ac_header>
10380_ACEOF
10381if { (ac_try="$ac_cpp conftest.$ac_ext"
10382case "(($ac_try" in
10383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10384 *) ac_try_echo=$ac_try;;
10385esac
10386eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10387$as_echo "$ac_try_echo") >&5
10388 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10389 ac_status=$?
10390 grep -v '^ *+' conftest.er1 >conftest.err
10391 rm -f conftest.er1
10392 cat conftest.err >&5
10393 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10394 (exit $ac_status); } >/dev/null && {
10395 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10396 test ! -s conftest.err
10397 }; then
10398 ac_header_preproc=yes
10399else
10400 $as_echo "$as_me: failed program was:" >&5
10401sed 's/^/| /' conftest.$ac_ext >&5
10402
10403 ac_header_preproc=no
10404fi
10405
10406rm -f conftest.err conftest.$ac_ext
10407{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10408$as_echo "$ac_header_preproc" >&6; }
10409
10410# So? What about this header?
10411case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10412 yes:no: )
10413 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10414$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10415 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10416$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10417 ac_header_preproc=yes
10418 ;;
10419 no:yes:* )
10420 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10421$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10422 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10423$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10424 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10425$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10426 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10427$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10428 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10429$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10430 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10431$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10432
10433 ;;
10434esac
10435{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10436$as_echo_n "checking for $ac_header... " >&6; }
10437if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10438 $as_echo_n "(cached) " >&6
10439else
10440 eval "$as_ac_Header=\$ac_header_preproc"
10441fi
10442ac_res=`eval 'as_val=${'$as_ac_Header'}
10443 $as_echo "$as_val"'`
10444 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10445$as_echo "$ac_res" >&6; }
10446
10447fi
10448as_val=`eval 'as_val=${'$as_ac_Header'}
10449 $as_echo "$as_val"'`
10450 if test "x$as_val" = x""yes; then
10451 cat >>confdefs.h <<_ACEOF
10452#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10453_ACEOF
10454
10455else
10456 $bailout
10457fi
10458
10459done
10460
10461 check_lib_no_libs gulm lg_core_login
10462 if test $NOTFOUND = 0; then
10463 { $as_echo "$as_me:$LINENO: result: no pkg for libgulm, using -lgulm" >&5
10464$as_echo "no pkg for libgulm, using -lgulm" >&6; }
10465 GULM_LIBS="-lgulm"
10466 HAVE_GULM=yes
10467 fi
10468else
10469 GULM_CFLAGS=$pkg_cv_GULM_CFLAGS
10470 GULM_LIBS=$pkg_cv_GULM_LIBS
10471 { $as_echo "$as_me:$LINENO: result: yes" >&5
10472$as_echo "yes" >&6; }
10473 HAVE_GULM=yes
10474fi
10475fi
10476
10477if test x$BUILDCMAN = xyes; then
10478
10479pkg_failed=no
10480{ $as_echo "$as_me:$LINENO: checking for CMAN" >&5
10481$as_echo_n "checking for CMAN... " >&6; }
10482
10483if test -n "$CMAN_CFLAGS"; then
10484 pkg_cv_CMAN_CFLAGS="$CMAN_CFLAGS"
10485 elif test -n "$PKG_CONFIG"; then
10486 if test -n "$PKG_CONFIG" && \
10487 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcman\"") >&5
10488 ($PKG_CONFIG --exists --print-errors "libcman") 2>&5
10489 ac_status=$?
10490 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10491 (exit $ac_status); }; then
10492 pkg_cv_CMAN_CFLAGS=`$PKG_CONFIG --cflags "libcman" 2>/dev/null`
10493else
10494 pkg_failed=yes
10495fi
10496 else
10497 pkg_failed=untried
10498fi
10499if test -n "$CMAN_LIBS"; then
10500 pkg_cv_CMAN_LIBS="$CMAN_LIBS"
10501 elif test -n "$PKG_CONFIG"; then
10502 if test -n "$PKG_CONFIG" && \
10503 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcman\"") >&5
10504 ($PKG_CONFIG --exists --print-errors "libcman") 2>&5
10505 ac_status=$?
10506 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10507 (exit $ac_status); }; then
10508 pkg_cv_CMAN_LIBS=`$PKG_CONFIG --libs "libcman" 2>/dev/null`
10509else
10510 pkg_failed=yes
10511fi
10512 else
10513 pkg_failed=untried
10514fi
10515
10516
10517
10518if test $pkg_failed = yes; then
10519
10520if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10521 _pkg_short_errors_supported=yes
10522else
10523 _pkg_short_errors_supported=no
10524fi
10525 if test $_pkg_short_errors_supported = yes; then
10526 CMAN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcman" 2>&1`
10527 else
10528 CMAN_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcman" 2>&1`
10529 fi
10530 # Put the nasty error message in config.log where it belongs
10531 echo "$CMAN_PKG_ERRORS" >&5
10532
10533 { $as_echo "$as_me:$LINENO: result: no" >&5
10534$as_echo "no" >&6; }
10535 NOTFOUND=0
10536
10537for ac_header in libcman.h
10538do
10539as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10540if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10541 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10542$as_echo_n "checking for $ac_header... " >&6; }
10543if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10544 $as_echo_n "(cached) " >&6
10545fi
10546ac_res=`eval 'as_val=${'$as_ac_Header'}
10547 $as_echo "$as_val"'`
10548 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10549$as_echo "$ac_res" >&6; }
10550else
10551 # Is the header compilable?
10552{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10553$as_echo_n "checking $ac_header usability... " >&6; }
10554cat >conftest.$ac_ext <<_ACEOF
10555/* confdefs.h. */
10556_ACEOF
10557cat confdefs.h >>conftest.$ac_ext
10558cat >>conftest.$ac_ext <<_ACEOF
10559/* end confdefs.h. */
10560$ac_includes_default
10561#include <$ac_header>
10562_ACEOF
10563rm -f conftest.$ac_objext
10564if { (ac_try="$ac_compile"
10565case "(($ac_try" in
10566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10567 *) ac_try_echo=$ac_try;;
10568esac
10569eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10570$as_echo "$ac_try_echo") >&5
10571 (eval "$ac_compile") 2>conftest.er1
10572 ac_status=$?
10573 grep -v '^ *+' conftest.er1 >conftest.err
10574 rm -f conftest.er1
10575 cat conftest.err >&5
10576 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10577 (exit $ac_status); } && {
10578 test -z "$ac_c_werror_flag" ||
10579 test ! -s conftest.err
10580 } && test -s conftest.$ac_objext; then
10581 ac_header_compiler=yes
10582else
10583 $as_echo "$as_me: failed program was:" >&5
10584sed 's/^/| /' conftest.$ac_ext >&5
10585
10586 ac_header_compiler=no
10587fi
10588
10589rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10590{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10591$as_echo "$ac_header_compiler" >&6; }
10592
10593# Is the header present?
10594{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10595$as_echo_n "checking $ac_header presence... " >&6; }
10596cat >conftest.$ac_ext <<_ACEOF
10597/* confdefs.h. */
10598_ACEOF
10599cat confdefs.h >>conftest.$ac_ext
10600cat >>conftest.$ac_ext <<_ACEOF
10601/* end confdefs.h. */
10602#include <$ac_header>
10603_ACEOF
10604if { (ac_try="$ac_cpp conftest.$ac_ext"
10605case "(($ac_try" in
10606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10607 *) ac_try_echo=$ac_try;;
10608esac
10609eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10610$as_echo "$ac_try_echo") >&5
10611 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10612 ac_status=$?
10613 grep -v '^ *+' conftest.er1 >conftest.err
10614 rm -f conftest.er1
10615 cat conftest.err >&5
10616 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10617 (exit $ac_status); } >/dev/null && {
10618 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10619 test ! -s conftest.err
10620 }; then
10621 ac_header_preproc=yes
10622else
10623 $as_echo "$as_me: failed program was:" >&5
10624sed 's/^/| /' conftest.$ac_ext >&5
10625
10626 ac_header_preproc=no
10627fi
10628
10629rm -f conftest.err conftest.$ac_ext
10630{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10631$as_echo "$ac_header_preproc" >&6; }
10632
10633# So? What about this header?
10634case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10635 yes:no: )
10636 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10637$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10638 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10639$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10640 ac_header_preproc=yes
10641 ;;
10642 no:yes:* )
10643 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10644$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10645 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10646$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10647 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10648$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10649 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10650$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10651 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10652$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10653 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10654$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10655
10656 ;;
10657esac
10658{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10659$as_echo_n "checking for $ac_header... " >&6; }
10660if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10661 $as_echo_n "(cached) " >&6
10662else
10663 eval "$as_ac_Header=\$ac_header_preproc"
10664fi
10665ac_res=`eval 'as_val=${'$as_ac_Header'}
10666 $as_echo "$as_val"'`
10667 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10668$as_echo "$ac_res" >&6; }
10669
10670fi
10671as_val=`eval 'as_val=${'$as_ac_Header'}
10672 $as_echo "$as_val"'`
10673 if test "x$as_val" = x""yes; then
10674 cat >>confdefs.h <<_ACEOF
10675#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10676_ACEOF
10677
10678else
10679 $bailout
10680fi
10681
10682done
10683
10684 check_lib_no_libs cman cman_init
10685 if test $NOTFOUND = 0; then
10686 { $as_echo "$as_me:$LINENO: result: no pkg for libcman, using -lcman" >&5
10687$as_echo "no pkg for libcman, using -lcman" >&6; }
10688 CMAN_LIBS="-lcman"
10689 HAVE_CMAN=yes
10690 fi
10691elif test $pkg_failed = untried; then
10692 NOTFOUND=0
10693
10694for ac_header in libcman.h
10695do
10696as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10697if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10698 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10699$as_echo_n "checking for $ac_header... " >&6; }
10700if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10701 $as_echo_n "(cached) " >&6
10702fi
10703ac_res=`eval 'as_val=${'$as_ac_Header'}
10704 $as_echo "$as_val"'`
10705 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10706$as_echo "$ac_res" >&6; }
10707else
10708 # Is the header compilable?
10709{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10710$as_echo_n "checking $ac_header usability... " >&6; }
10711cat >conftest.$ac_ext <<_ACEOF
10712/* confdefs.h. */
10713_ACEOF
10714cat confdefs.h >>conftest.$ac_ext
10715cat >>conftest.$ac_ext <<_ACEOF
10716/* end confdefs.h. */
10717$ac_includes_default
10718#include <$ac_header>
10719_ACEOF
10720rm -f conftest.$ac_objext
10721if { (ac_try="$ac_compile"
10722case "(($ac_try" in
10723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10724 *) ac_try_echo=$ac_try;;
10725esac
10726eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10727$as_echo "$ac_try_echo") >&5
10728 (eval "$ac_compile") 2>conftest.er1
10729 ac_status=$?
10730 grep -v '^ *+' conftest.er1 >conftest.err
10731 rm -f conftest.er1
10732 cat conftest.err >&5
10733 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10734 (exit $ac_status); } && {
10735 test -z "$ac_c_werror_flag" ||
10736 test ! -s conftest.err
10737 } && test -s conftest.$ac_objext; then
10738 ac_header_compiler=yes
10739else
10740 $as_echo "$as_me: failed program was:" >&5
10741sed 's/^/| /' conftest.$ac_ext >&5
10742
10743 ac_header_compiler=no
10744fi
10745
10746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10747{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10748$as_echo "$ac_header_compiler" >&6; }
10749
10750# Is the header present?
10751{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10752$as_echo_n "checking $ac_header presence... " >&6; }
10753cat >conftest.$ac_ext <<_ACEOF
10754/* confdefs.h. */
10755_ACEOF
10756cat confdefs.h >>conftest.$ac_ext
10757cat >>conftest.$ac_ext <<_ACEOF
10758/* end confdefs.h. */
10759#include <$ac_header>
10760_ACEOF
10761if { (ac_try="$ac_cpp conftest.$ac_ext"
10762case "(($ac_try" in
10763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10764 *) ac_try_echo=$ac_try;;
10765esac
10766eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10767$as_echo "$ac_try_echo") >&5
10768 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10769 ac_status=$?
10770 grep -v '^ *+' conftest.er1 >conftest.err
10771 rm -f conftest.er1
10772 cat conftest.err >&5
10773 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10774 (exit $ac_status); } >/dev/null && {
10775 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10776 test ! -s conftest.err
10777 }; then
10778 ac_header_preproc=yes
10779else
10780 $as_echo "$as_me: failed program was:" >&5
10781sed 's/^/| /' conftest.$ac_ext >&5
10782
10783 ac_header_preproc=no
10784fi
10785
10786rm -f conftest.err conftest.$ac_ext
10787{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10788$as_echo "$ac_header_preproc" >&6; }
10789
10790# So? What about this header?
10791case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10792 yes:no: )
10793 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10794$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10795 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10796$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10797 ac_header_preproc=yes
10798 ;;
10799 no:yes:* )
10800 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10801$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10802 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10803$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10804 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10805$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10806 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10807$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10808 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10809$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10810 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10811$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10812
10813 ;;
10814esac
10815{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10816$as_echo_n "checking for $ac_header... " >&6; }
10817if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10818 $as_echo_n "(cached) " >&6
10819else
10820 eval "$as_ac_Header=\$ac_header_preproc"
10821fi
10822ac_res=`eval 'as_val=${'$as_ac_Header'}
10823 $as_echo "$as_val"'`
10824 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10825$as_echo "$ac_res" >&6; }
10826
10827fi
10828as_val=`eval 'as_val=${'$as_ac_Header'}
10829 $as_echo "$as_val"'`
10830 if test "x$as_val" = x""yes; then
10831 cat >>confdefs.h <<_ACEOF
10832#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10833_ACEOF
10834
10835else
10836 $bailout
10837fi
10838
10839done
10840
10841 check_lib_no_libs cman cman_init
10842 if test $NOTFOUND = 0; then
10843 { $as_echo "$as_me:$LINENO: result: no pkg for libcman, using -lcman" >&5
10844$as_echo "no pkg for libcman, using -lcman" >&6; }
10845 CMAN_LIBS="-lcman"
10846 HAVE_CMAN=yes
10847 fi
10848else
10849 CMAN_CFLAGS=$pkg_cv_CMAN_CFLAGS
10850 CMAN_LIBS=$pkg_cv_CMAN_LIBS
10851 { $as_echo "$as_me:$LINENO: result: yes" >&5
10852$as_echo "yes" >&6; }
10853 HAVE_CMAN=yes
10854fi
10855 CHECKCONFDB=yes
10856 CHECKDLM=yes
10857fi
10858
10859if test x$BUILDCOROSYNC = xyes || \
10860 test x$BUILDOPENAIS = xyes; then
10861
10862pkg_failed=no
10863{ $as_echo "$as_me:$LINENO: checking for COROSYNC" >&5
10864$as_echo_n "checking for COROSYNC... " >&6; }
10865
10866if test -n "$COROSYNC_CFLAGS"; then
10867 pkg_cv_COROSYNC_CFLAGS="$COROSYNC_CFLAGS"
10868 elif test -n "$PKG_CONFIG"; then
10869 if test -n "$PKG_CONFIG" && \
10870 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"corosync\"") >&5
10871 ($PKG_CONFIG --exists --print-errors "corosync") 2>&5
10872 ac_status=$?
10873 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10874 (exit $ac_status); }; then
10875 pkg_cv_COROSYNC_CFLAGS=`$PKG_CONFIG --cflags "corosync" 2>/dev/null`
10876else
10877 pkg_failed=yes
10878fi
10879 else
10880 pkg_failed=untried
10881fi
10882if test -n "$COROSYNC_LIBS"; then
10883 pkg_cv_COROSYNC_LIBS="$COROSYNC_LIBS"
10884 elif test -n "$PKG_CONFIG"; then
10885 if test -n "$PKG_CONFIG" && \
10886 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"corosync\"") >&5
10887 ($PKG_CONFIG --exists --print-errors "corosync") 2>&5
10888 ac_status=$?
10889 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10890 (exit $ac_status); }; then
10891 pkg_cv_COROSYNC_LIBS=`$PKG_CONFIG --libs "corosync" 2>/dev/null`
10892else
10893 pkg_failed=yes
10894fi
10895 else
10896 pkg_failed=untried
10897fi
10898
10899
10900
10901if test $pkg_failed = yes; then
10902
10903if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10904 _pkg_short_errors_supported=yes
10905else
10906 _pkg_short_errors_supported=no
10907fi
10908 if test $_pkg_short_errors_supported = yes; then
10909 COROSYNC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "corosync" 2>&1`
10910 else
10911 COROSYNC_PKG_ERRORS=`$PKG_CONFIG --print-errors "corosync" 2>&1`
10912 fi
10913 # Put the nasty error message in config.log where it belongs
10914 echo "$COROSYNC_PKG_ERRORS" >&5
10915
10916 { $as_echo "$as_me:$LINENO: result: no" >&5
10917$as_echo "no" >&6; }
10918 $bailout
10919elif test $pkg_failed = untried; then
10920 $bailout
10921else
10922 COROSYNC_CFLAGS=$pkg_cv_COROSYNC_CFLAGS
10923 COROSYNC_LIBS=$pkg_cv_COROSYNC_LIBS
10924 { $as_echo "$as_me:$LINENO: result: yes" >&5
10925$as_echo "yes" >&6; }
10926 HAVE_COROSYNC=yes
10927fi
10928 CHECKCONFDB=yes
10929fi
10930
10931if test x$BUILDCOROSYNC = xyes; then
10932
10933pkg_failed=no
10934{ $as_echo "$as_me:$LINENO: checking for QUORUM" >&5
10935$as_echo_n "checking for QUORUM... " >&6; }
10936
10937if test -n "$QUORUM_CFLAGS"; then
10938 pkg_cv_QUORUM_CFLAGS="$QUORUM_CFLAGS"
10939 elif test -n "$PKG_CONFIG"; then
10940 if test -n "$PKG_CONFIG" && \
10941 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libquorum\"") >&5
10942 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
10943 ac_status=$?
10944 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10945 (exit $ac_status); }; then
10946 pkg_cv_QUORUM_CFLAGS=`$PKG_CONFIG --cflags "libquorum" 2>/dev/null`
10947else
10948 pkg_failed=yes
10949fi
10950 else
10951 pkg_failed=untried
10952fi
10953if test -n "$QUORUM_LIBS"; then
10954 pkg_cv_QUORUM_LIBS="$QUORUM_LIBS"
10955 elif test -n "$PKG_CONFIG"; then
10956 if test -n "$PKG_CONFIG" && \
10957 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libquorum\"") >&5
10958 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
10959 ac_status=$?
10960 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10961 (exit $ac_status); }; then
10962 pkg_cv_QUORUM_LIBS=`$PKG_CONFIG --libs "libquorum" 2>/dev/null`
10963else
10964 pkg_failed=yes
10965fi
10966 else
10967 pkg_failed=untried
10968fi
10969
10970
10971
10972if test $pkg_failed = yes; then
10973
10974if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10975 _pkg_short_errors_supported=yes
10976else
10977 _pkg_short_errors_supported=no
10978fi
10979 if test $_pkg_short_errors_supported = yes; then
10980 QUORUM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libquorum" 2>&1`
10981 else
10982 QUORUM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libquorum" 2>&1`
10983 fi
10984 # Put the nasty error message in config.log where it belongs
10985 echo "$QUORUM_PKG_ERRORS" >&5
10986
10987 { $as_echo "$as_me:$LINENO: result: no" >&5
10988$as_echo "no" >&6; }
10989 $bailout
10990elif test $pkg_failed = untried; then
10991 $bailout
10992else
10993 QUORUM_CFLAGS=$pkg_cv_QUORUM_CFLAGS
10994 QUORUM_LIBS=$pkg_cv_QUORUM_LIBS
10995 { $as_echo "$as_me:$LINENO: result: yes" >&5
10996$as_echo "yes" >&6; }
10997 HAVE_QUORUM=yes
10998fi
10999 CHECKCPG=yes
11000 CHECKDLM=yes
11001fi
11002
11003if test x$BUILDOPENAIS = xyes; then
11004
11005pkg_failed=no
11006{ $as_echo "$as_me:$LINENO: checking for SALCK" >&5
11007$as_echo_n "checking for SALCK... " >&6; }
11008
11009if test -n "$SALCK_CFLAGS"; then
11010 pkg_cv_SALCK_CFLAGS="$SALCK_CFLAGS"
11011 elif test -n "$PKG_CONFIG"; then
11012 if test -n "$PKG_CONFIG" && \
11013 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaLck\"") >&5
11014 ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5
11015 ac_status=$?
11016 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11017 (exit $ac_status); }; then
11018 pkg_cv_SALCK_CFLAGS=`$PKG_CONFIG --cflags "libSaLck" 2>/dev/null`
11019else
11020 pkg_failed=yes
11021fi
11022 else
11023 pkg_failed=untried
11024fi
11025if test -n "$SALCK_LIBS"; then
11026 pkg_cv_SALCK_LIBS="$SALCK_LIBS"
11027 elif test -n "$PKG_CONFIG"; then
11028 if test -n "$PKG_CONFIG" && \
11029 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaLck\"") >&5
11030 ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5
11031 ac_status=$?
11032 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11033 (exit $ac_status); }; then
11034 pkg_cv_SALCK_LIBS=`$PKG_CONFIG --libs "libSaLck" 2>/dev/null`
11035else
11036 pkg_failed=yes
11037fi
11038 else
11039 pkg_failed=untried
11040fi
11041
11042
11043
11044if test $pkg_failed = yes; then
11045
11046if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11047 _pkg_short_errors_supported=yes
11048else
11049 _pkg_short_errors_supported=no
11050fi
11051 if test $_pkg_short_errors_supported = yes; then
11052 SALCK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaLck" 2>&1`
11053 else
11054 SALCK_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaLck" 2>&1`
11055 fi
11056 # Put the nasty error message in config.log where it belongs
11057 echo "$SALCK_PKG_ERRORS" >&5
11058
11059 { $as_echo "$as_me:$LINENO: result: no" >&5
11060$as_echo "no" >&6; }
11061 $bailout
11062elif test $pkg_failed = untried; then
11063 $bailout
11064else
11065 SALCK_CFLAGS=$pkg_cv_SALCK_CFLAGS
11066 SALCK_LIBS=$pkg_cv_SALCK_LIBS
11067 { $as_echo "$as_me:$LINENO: result: yes" >&5
11068$as_echo "yes" >&6; }
11069 HAVE_SALCK=yes
11070fi
11071 CHECKCPG=yes
11072fi
11073
11074
11075
11076if test x$CHECKCONFDB = xyes; then
11077
11078pkg_failed=no
11079{ $as_echo "$as_me:$LINENO: checking for CONFDB" >&5
11080$as_echo_n "checking for CONFDB... " >&6; }
11081
11082if test -n "$CONFDB_CFLAGS"; then
11083 pkg_cv_CONFDB_CFLAGS="$CONFDB_CFLAGS"
11084 elif test -n "$PKG_CONFIG"; then
11085 if test -n "$PKG_CONFIG" && \
11086 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libconfdb\"") >&5
11087 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
11088 ac_status=$?
11089 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11090 (exit $ac_status); }; then
11091 pkg_cv_CONFDB_CFLAGS=`$PKG_CONFIG --cflags "libconfdb" 2>/dev/null`
11092else
11093 pkg_failed=yes
11094fi
11095 else
11096 pkg_failed=untried
11097fi
11098if test -n "$CONFDB_LIBS"; then
11099 pkg_cv_CONFDB_LIBS="$CONFDB_LIBS"
11100 elif test -n "$PKG_CONFIG"; then
11101 if test -n "$PKG_CONFIG" && \
11102 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libconfdb\"") >&5
11103 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
11104 ac_status=$?
11105 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11106 (exit $ac_status); }; then
11107 pkg_cv_CONFDB_LIBS=`$PKG_CONFIG --libs "libconfdb" 2>/dev/null`
11108else
11109 pkg_failed=yes
11110fi
11111 else
11112 pkg_failed=untried
11113fi
11114
11115
11116
11117if test $pkg_failed = yes; then
11118
11119if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11120 _pkg_short_errors_supported=yes
11121else
11122 _pkg_short_errors_supported=no
11123fi
11124 if test $_pkg_short_errors_supported = yes; then
11125 CONFDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libconfdb" 2>&1`
11126 else
11127 CONFDB_PKG_ERRORS=`$PKG_CONFIG --print-errors "libconfdb" 2>&1`
11128 fi
11129 # Put the nasty error message in config.log where it belongs
11130 echo "$CONFDB_PKG_ERRORS" >&5
11131
11132 { $as_echo "$as_me:$LINENO: result: no" >&5
11133$as_echo "no" >&6; }
11134 HAVE_CONFDB=no
11135elif test $pkg_failed = untried; then
11136 HAVE_CONFDB=no
11137else
11138 CONFDB_CFLAGS=$pkg_cv_CONFDB_CFLAGS
11139 CONFDB_LIBS=$pkg_cv_CONFDB_LIBS
11140 { $as_echo "$as_me:$LINENO: result: yes" >&5
11141$as_echo "yes" >&6; }
11142 HAVE_CONFDB=yes
11143fi
11144
11145
11146for ac_header in corosync/confdb.h
11147do
11148as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11149if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11150 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11151$as_echo_n "checking for $ac_header... " >&6; }
11152if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11153 $as_echo_n "(cached) " >&6
11154fi
11155ac_res=`eval 'as_val=${'$as_ac_Header'}
11156 $as_echo "$as_val"'`
11157 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11158$as_echo "$ac_res" >&6; }
11159else
11160 # Is the header compilable?
11161{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11162$as_echo_n "checking $ac_header usability... " >&6; }
11163cat >conftest.$ac_ext <<_ACEOF
11164/* confdefs.h. */
11165_ACEOF
11166cat confdefs.h >>conftest.$ac_ext
11167cat >>conftest.$ac_ext <<_ACEOF
11168/* end confdefs.h. */
11169$ac_includes_default
11170#include <$ac_header>
11171_ACEOF
11172rm -f conftest.$ac_objext
11173if { (ac_try="$ac_compile"
11174case "(($ac_try" in
11175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11176 *) ac_try_echo=$ac_try;;
11177esac
11178eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11179$as_echo "$ac_try_echo") >&5
11180 (eval "$ac_compile") 2>conftest.er1
11181 ac_status=$?
11182 grep -v '^ *+' conftest.er1 >conftest.err
11183 rm -f conftest.er1
11184 cat conftest.err >&5
11185 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11186 (exit $ac_status); } && {
11187 test -z "$ac_c_werror_flag" ||
11188 test ! -s conftest.err
11189 } && test -s conftest.$ac_objext; then
11190 ac_header_compiler=yes
11191else
11192 $as_echo "$as_me: failed program was:" >&5
11193sed 's/^/| /' conftest.$ac_ext >&5
11194
11195 ac_header_compiler=no
11196fi
11197
11198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11199{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11200$as_echo "$ac_header_compiler" >&6; }
11201
11202# Is the header present?
11203{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11204$as_echo_n "checking $ac_header presence... " >&6; }
11205cat >conftest.$ac_ext <<_ACEOF
11206/* confdefs.h. */
11207_ACEOF
11208cat confdefs.h >>conftest.$ac_ext
11209cat >>conftest.$ac_ext <<_ACEOF
11210/* end confdefs.h. */
11211#include <$ac_header>
11212_ACEOF
11213if { (ac_try="$ac_cpp conftest.$ac_ext"
11214case "(($ac_try" in
11215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11216 *) ac_try_echo=$ac_try;;
11217esac
11218eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11219$as_echo "$ac_try_echo") >&5
11220 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11221 ac_status=$?
11222 grep -v '^ *+' conftest.er1 >conftest.err
11223 rm -f conftest.er1
11224 cat conftest.err >&5
11225 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11226 (exit $ac_status); } >/dev/null && {
11227 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11228 test ! -s conftest.err
11229 }; then
11230 ac_header_preproc=yes
11231else
11232 $as_echo "$as_me: failed program was:" >&5
11233sed 's/^/| /' conftest.$ac_ext >&5
11234
11235 ac_header_preproc=no
11236fi
11237
11238rm -f conftest.err conftest.$ac_ext
11239{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11240$as_echo "$ac_header_preproc" >&6; }
11241
11242# So? What about this header?
11243case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11244 yes:no: )
11245 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11246$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11247 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11248$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11249 ac_header_preproc=yes
11250 ;;
11251 no:yes:* )
11252 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11253$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11254 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11255$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11256 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11257$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11258 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11259$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11260 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11261$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11262 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11263$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11264
11265 ;;
11266esac
11267{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11268$as_echo_n "checking for $ac_header... " >&6; }
11269if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11270 $as_echo_n "(cached) " >&6
11271else
11272 eval "$as_ac_Header=\$ac_header_preproc"
11273fi
11274ac_res=`eval 'as_val=${'$as_ac_Header'}
11275 $as_echo "$as_val"'`
11276 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11277$as_echo "$ac_res" >&6; }
11278
11279fi
11280as_val=`eval 'as_val=${'$as_ac_Header'}
11281 $as_echo "$as_val"'`
11282 if test "x$as_val" = x""yes; then
11283 cat >>confdefs.h <<_ACEOF
11284#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11285_ACEOF
11286 HAVE_CONFDB_H=yes
11287else
11288 HAVE_CONFDB_H=no
11289fi
11290
11291done
11292
11293
11294 if test x$HAVE_CONFDB != xyes && \
11295 test x$HAVE_CONFDB_H = xyes; then
11296 check_lib_no_libs confdb confdb_initialize
11297 { $as_echo "$as_me:$LINENO: result: no pkg for confdb, using -lconfdb" >&5
11298$as_echo "no pkg for confdb, using -lconfdb" >&6; }
11299 CONFDB_LIBS="-lconfdb"
11300 HAVE_CONFDB=yes
11301 fi
11302
11303 if test x$BUILDCOROSYNC = xyes && \
11304 test x$HAVE_CONFDB != xyes &&
11305 test x$CLVMD != xall; then
11306 { { $as_echo "$as_me:$LINENO: error: bailing out... confdb library is required" >&5
11307$as_echo "$as_me: error: bailing out... confdb library is required" >&2;}
11308 { (exit 1); exit 1; }; }
11309 fi
11310fi
11311
11312if test x$CHECKCPG = xyes; then
11313
11314pkg_failed=no
11315{ $as_echo "$as_me:$LINENO: checking for CPG" >&5
11316$as_echo_n "checking for CPG... " >&6; }
11317
11318if test -n "$CPG_CFLAGS"; then
11319 pkg_cv_CPG_CFLAGS="$CPG_CFLAGS"
11320 elif test -n "$PKG_CONFIG"; then
11321 if test -n "$PKG_CONFIG" && \
11322 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
11323 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
11324 ac_status=$?
11325 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11326 (exit $ac_status); }; then
11327 pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
11328else
11329 pkg_failed=yes
11330fi
11331 else
11332 pkg_failed=untried
11333fi
11334if test -n "$CPG_LIBS"; then
11335 pkg_cv_CPG_LIBS="$CPG_LIBS"
11336 elif test -n "$PKG_CONFIG"; then
11337 if test -n "$PKG_CONFIG" && \
11338 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
11339 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
11340 ac_status=$?
11341 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11342 (exit $ac_status); }; then
11343 pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
11344else
11345 pkg_failed=yes
11346fi
11347 else
11348 pkg_failed=untried
11349fi
11350
11351
11352
11353if test $pkg_failed = yes; then
11354
11355if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11356 _pkg_short_errors_supported=yes
11357else
11358 _pkg_short_errors_supported=no
11359fi
11360 if test $_pkg_short_errors_supported = yes; then
11361 CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
11362 else
11363 CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
11364 fi
11365 # Put the nasty error message in config.log where it belongs
11366 echo "$CPG_PKG_ERRORS" >&5
11367
11368 { $as_echo "$as_me:$LINENO: result: no" >&5
11369$as_echo "no" >&6; }
11370 $bailout
11371elif test $pkg_failed = untried; then
11372 $bailout
11373else
11374 CPG_CFLAGS=$pkg_cv_CPG_CFLAGS
11375 CPG_LIBS=$pkg_cv_CPG_LIBS
11376 { $as_echo "$as_me:$LINENO: result: yes" >&5
11377$as_echo "yes" >&6; }
11378 HAVE_CPG=yes
11379fi
11380fi
11381
11382if test x$CHECKDLM = xyes; then
11383
11384pkg_failed=no
11385{ $as_echo "$as_me:$LINENO: checking for DLM" >&5
11386$as_echo_n "checking for DLM... " >&6; }
11387
11388if test -n "$DLM_CFLAGS"; then
11389 pkg_cv_DLM_CFLAGS="$DLM_CFLAGS"
11390 elif test -n "$PKG_CONFIG"; then
11391 if test -n "$PKG_CONFIG" && \
11392 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdlm\"") >&5
11393 ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5
11394 ac_status=$?
11395 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11396 (exit $ac_status); }; then
11397 pkg_cv_DLM_CFLAGS=`$PKG_CONFIG --cflags "libdlm" 2>/dev/null`
11398else
11399 pkg_failed=yes
11400fi
11401 else
11402 pkg_failed=untried
11403fi
11404if test -n "$DLM_LIBS"; then
11405 pkg_cv_DLM_LIBS="$DLM_LIBS"
11406 elif test -n "$PKG_CONFIG"; then
11407 if test -n "$PKG_CONFIG" && \
11408 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdlm\"") >&5
11409 ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5
11410 ac_status=$?
11411 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11412 (exit $ac_status); }; then
11413 pkg_cv_DLM_LIBS=`$PKG_CONFIG --libs "libdlm" 2>/dev/null`
11414else
11415 pkg_failed=yes
11416fi
11417 else
11418 pkg_failed=untried
11419fi
11420
11421
11422
11423if test $pkg_failed = yes; then
11424
11425if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11426 _pkg_short_errors_supported=yes
11427else
11428 _pkg_short_errors_supported=no
11429fi
11430 if test $_pkg_short_errors_supported = yes; then
11431 DLM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdlm" 2>&1`
11432 else
11433 DLM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdlm" 2>&1`
11434 fi
11435 # Put the nasty error message in config.log where it belongs
11436 echo "$DLM_PKG_ERRORS" >&5
11437
11438 { $as_echo "$as_me:$LINENO: result: no" >&5
11439$as_echo "no" >&6; }
11440 NOTFOUND=0
11441
11442for ac_header in libdlm.h
11443do
11444as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11445if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11446 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11447$as_echo_n "checking for $ac_header... " >&6; }
11448if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11449 $as_echo_n "(cached) " >&6
11450fi
11451ac_res=`eval 'as_val=${'$as_ac_Header'}
11452 $as_echo "$as_val"'`
11453 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11454$as_echo "$ac_res" >&6; }
11455else
11456 # Is the header compilable?
11457{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11458$as_echo_n "checking $ac_header usability... " >&6; }
11459cat >conftest.$ac_ext <<_ACEOF
11460/* confdefs.h. */
11461_ACEOF
11462cat confdefs.h >>conftest.$ac_ext
11463cat >>conftest.$ac_ext <<_ACEOF
11464/* end confdefs.h. */
11465$ac_includes_default
11466#include <$ac_header>
11467_ACEOF
11468rm -f conftest.$ac_objext
11469if { (ac_try="$ac_compile"
11470case "(($ac_try" in
11471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11472 *) ac_try_echo=$ac_try;;
11473esac
11474eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11475$as_echo "$ac_try_echo") >&5
11476 (eval "$ac_compile") 2>conftest.er1
11477 ac_status=$?
11478 grep -v '^ *+' conftest.er1 >conftest.err
11479 rm -f conftest.er1
11480 cat conftest.err >&5
11481 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11482 (exit $ac_status); } && {
11483 test -z "$ac_c_werror_flag" ||
11484 test ! -s conftest.err
11485 } && test -s conftest.$ac_objext; then
11486 ac_header_compiler=yes
11487else
11488 $as_echo "$as_me: failed program was:" >&5
11489sed 's/^/| /' conftest.$ac_ext >&5
11490
11491 ac_header_compiler=no
11492fi
11493
11494rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11495{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11496$as_echo "$ac_header_compiler" >&6; }
11497
11498# Is the header present?
11499{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11500$as_echo_n "checking $ac_header presence... " >&6; }
11501cat >conftest.$ac_ext <<_ACEOF
11502/* confdefs.h. */
11503_ACEOF
11504cat confdefs.h >>conftest.$ac_ext
11505cat >>conftest.$ac_ext <<_ACEOF
11506/* end confdefs.h. */
11507#include <$ac_header>
11508_ACEOF
11509if { (ac_try="$ac_cpp conftest.$ac_ext"
11510case "(($ac_try" in
11511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11512 *) ac_try_echo=$ac_try;;
11513esac
11514eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11515$as_echo "$ac_try_echo") >&5
11516 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11517 ac_status=$?
11518 grep -v '^ *+' conftest.er1 >conftest.err
11519 rm -f conftest.er1
11520 cat conftest.err >&5
11521 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11522 (exit $ac_status); } >/dev/null && {
11523 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11524 test ! -s conftest.err
11525 }; then
11526 ac_header_preproc=yes
11527else
11528 $as_echo "$as_me: failed program was:" >&5
11529sed 's/^/| /' conftest.$ac_ext >&5
11530
11531 ac_header_preproc=no
11532fi
11533
11534rm -f conftest.err conftest.$ac_ext
11535{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11536$as_echo "$ac_header_preproc" >&6; }
11537
11538# So? What about this header?
11539case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11540 yes:no: )
11541 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11542$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11543 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11544$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11545 ac_header_preproc=yes
11546 ;;
11547 no:yes:* )
11548 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11549$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11550 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11551$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11552 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11553$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11554 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11555$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11556 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11557$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11558 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11559$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11560
11561 ;;
11562esac
11563{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11564$as_echo_n "checking for $ac_header... " >&6; }
11565if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11566 $as_echo_n "(cached) " >&6
11567else
11568 eval "$as_ac_Header=\$ac_header_preproc"
11569fi
11570ac_res=`eval 'as_val=${'$as_ac_Header'}
11571 $as_echo "$as_val"'`
11572 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11573$as_echo "$ac_res" >&6; }
11574
11575fi
11576as_val=`eval 'as_val=${'$as_ac_Header'}
11577 $as_echo "$as_val"'`
11578 if test "x$as_val" = x""yes; then
11579 cat >>confdefs.h <<_ACEOF
11580#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11581_ACEOF
11582
11583else
11584 $bailout
11585fi
11586
11587done
11588
11589 check_lib_no_libs dlm dlm_lock -lpthread
11590 if test $NOTFOUND = 0; then
11591 { $as_echo "$as_me:$LINENO: result: no pkg for libdlm, using -ldlm" >&5
11592$as_echo "no pkg for libdlm, using -ldlm" >&6; }
11593 DLM_LIBS="-ldlm -lpthread"
11594 HAVE_DLM=yes
11595 fi
11596elif test $pkg_failed = untried; then
11597 NOTFOUND=0
11598
11599for ac_header in libdlm.h
11600do
11601as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11602if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11603 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11604$as_echo_n "checking for $ac_header... " >&6; }
11605if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11606 $as_echo_n "(cached) " >&6
11607fi
11608ac_res=`eval 'as_val=${'$as_ac_Header'}
11609 $as_echo "$as_val"'`
11610 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11611$as_echo "$ac_res" >&6; }
11612else
11613 # Is the header compilable?
11614{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11615$as_echo_n "checking $ac_header usability... " >&6; }
11616cat >conftest.$ac_ext <<_ACEOF
11617/* confdefs.h. */
11618_ACEOF
11619cat confdefs.h >>conftest.$ac_ext
11620cat >>conftest.$ac_ext <<_ACEOF
11621/* end confdefs.h. */
11622$ac_includes_default
11623#include <$ac_header>
11624_ACEOF
11625rm -f conftest.$ac_objext
11626if { (ac_try="$ac_compile"
11627case "(($ac_try" in
11628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11629 *) ac_try_echo=$ac_try;;
11630esac
11631eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11632$as_echo "$ac_try_echo") >&5
11633 (eval "$ac_compile") 2>conftest.er1
11634 ac_status=$?
11635 grep -v '^ *+' conftest.er1 >conftest.err
11636 rm -f conftest.er1
11637 cat conftest.err >&5
11638 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11639 (exit $ac_status); } && {
11640 test -z "$ac_c_werror_flag" ||
11641 test ! -s conftest.err
11642 } && test -s conftest.$ac_objext; then
11643 ac_header_compiler=yes
11644else
11645 $as_echo "$as_me: failed program was:" >&5
11646sed 's/^/| /' conftest.$ac_ext >&5
11647
11648 ac_header_compiler=no
11649fi
11650
11651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11652{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11653$as_echo "$ac_header_compiler" >&6; }
11654
11655# Is the header present?
11656{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11657$as_echo_n "checking $ac_header presence... " >&6; }
11658cat >conftest.$ac_ext <<_ACEOF
11659/* confdefs.h. */
11660_ACEOF
11661cat confdefs.h >>conftest.$ac_ext
11662cat >>conftest.$ac_ext <<_ACEOF
11663/* end confdefs.h. */
11664#include <$ac_header>
11665_ACEOF
11666if { (ac_try="$ac_cpp conftest.$ac_ext"
11667case "(($ac_try" in
11668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11669 *) ac_try_echo=$ac_try;;
11670esac
11671eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11672$as_echo "$ac_try_echo") >&5
11673 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11674 ac_status=$?
11675 grep -v '^ *+' conftest.er1 >conftest.err
11676 rm -f conftest.er1
11677 cat conftest.err >&5
11678 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11679 (exit $ac_status); } >/dev/null && {
11680 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11681 test ! -s conftest.err
11682 }; then
11683 ac_header_preproc=yes
11684else
11685 $as_echo "$as_me: failed program was:" >&5
11686sed 's/^/| /' conftest.$ac_ext >&5
11687
11688 ac_header_preproc=no
11689fi
11690
11691rm -f conftest.err conftest.$ac_ext
11692{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11693$as_echo "$ac_header_preproc" >&6; }
11694
11695# So? What about this header?
11696case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11697 yes:no: )
11698 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11699$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11700 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11701$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11702 ac_header_preproc=yes
11703 ;;
11704 no:yes:* )
11705 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11706$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11707 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11708$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11709 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11710$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11711 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11712$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11713 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11714$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11715 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11716$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11717
11718 ;;
11719esac
11720{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11721$as_echo_n "checking for $ac_header... " >&6; }
11722if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11723 $as_echo_n "(cached) " >&6
11724else
11725 eval "$as_ac_Header=\$ac_header_preproc"
11726fi
11727ac_res=`eval 'as_val=${'$as_ac_Header'}
11728 $as_echo "$as_val"'`
11729 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11730$as_echo "$ac_res" >&6; }
11731
11732fi
11733as_val=`eval 'as_val=${'$as_ac_Header'}
11734 $as_echo "$as_val"'`
11735 if test "x$as_val" = x""yes; then
11736 cat >>confdefs.h <<_ACEOF
11737#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11738_ACEOF
11739
11740else
11741 $bailout
11742fi
11743
11744done
11745
11746 check_lib_no_libs dlm dlm_lock -lpthread
11747 if test $NOTFOUND = 0; then
11748 { $as_echo "$as_me:$LINENO: result: no pkg for libdlm, using -ldlm" >&5
11749$as_echo "no pkg for libdlm, using -ldlm" >&6; }
11750 DLM_LIBS="-ldlm -lpthread"
11751 HAVE_DLM=yes
11752 fi
11753else
11754 DLM_CFLAGS=$pkg_cv_DLM_CFLAGS
11755 DLM_LIBS=$pkg_cv_DLM_LIBS
11756 { $as_echo "$as_me:$LINENO: result: yes" >&5
11757$as_echo "yes" >&6; }
11758 HAVE_DLM=yes
11759fi
11760fi
11761
11762if test x$CLVMD = xall; then
8c222979 11763 CLVMD=none
a946372e
AK
11764 if test x$HAVE_CCS = xyes && \
11765 test x$HAVE_GULM = xyes; then
8c222979
FDN
11766 { $as_echo "$as_me:$LINENO: result: Enabling clvmd gulm cluster manager" >&5
11767$as_echo "Enabling clvmd gulm cluster manager" >&6; }
11768 CLVMD="$CLVMD,gulm"
a946372e
AK
11769 fi
11770 if test x$HAVE_CMAN = xyes && \
11771 test x$HAVE_DLM = xyes; then
8c222979
FDN
11772 { $as_echo "$as_me:$LINENO: result: Enabling clvmd cman cluster manager" >&5
11773$as_echo "Enabling clvmd cman cluster manager" >&6; }
11774 CLVMD="$CLVMD,cman"
a946372e
AK
11775 fi
11776 if test x$HAVE_COROSYNC = xyes && \
11777 test x$HAVE_QUORUM = xyes && \
11778 test x$HAVE_CPG = xyes && \
11779 test x$HAVE_DLM = xyes && \
11780 test x$HAVE_CONFDB = xyes; then
8c222979
FDN
11781 { $as_echo "$as_me:$LINENO: result: Enabling clvmd corosync cluster manager" >&5
11782$as_echo "Enabling clvmd corosync cluster manager" >&6; }
11783 CLVMD="$CLVMD,corosync"
a946372e
AK
11784 fi
11785 if test x$HAVE_COROSYNC = xyes && \
11786 test x$HAVE_CPG = xyes && \
11787 test x$HAVE_SALCK = xyes; then
8c222979
FDN
11788 { $as_echo "$as_me:$LINENO: result: Enabling clvmd openais cluster manager" >&5
11789$as_echo "Enabling clvmd openais cluster manager" >&6; }
11790 CLVMD="$CLVMD,openais"
11791 fi
11792 if test x$CLVMD = xnone; then
11793 { $as_echo "$as_me:$LINENO: result: Disabling clvmd build. No cluster manager detected." >&5
11794$as_echo "Disabling clvmd build. No cluster manager detected." >&6; }
a946372e 11795 fi
a946372e
AK
11796fi
11797
11798################################################################################
66fd4529
AK
11799{ $as_echo "$as_me:$LINENO: checking whether to build cluster mirror log daemon" >&5
11800$as_echo_n "checking whether to build cluster mirror log daemon... " >&6; }
11801# Check whether --enable-cmirrord was given.
11802if test "${enable_cmirrord+set}" = set; then
11803 enableval=$enable_cmirrord; CMIRRORD=$enableval
11804else
11805 CMIRRORD=no
11806fi
11807
11808{ $as_echo "$as_me:$LINENO: result: $CMIRRORD" >&5
11809$as_echo "$CMIRRORD" >&6; }
11810
11811BUILD_CMIRRORD=$CMIRRORD
11812
11813################################################################################
11814
11815
11816if test "x$BUILD_CMIRRORD" = xyes; then
11817
11818# Check whether --with-cmirrord-pidfile was given.
11819if test "${with_cmirrord_pidfile+set}" = set; then
11820 withval=$with_cmirrord_pidfile; cat >>confdefs.h <<_ACEOF
11821#define CMIRRORD_PIDFILE "$withval"
11822_ACEOF
11823
11824else
11825 cat >>confdefs.h <<_ACEOF
11826#define CMIRRORD_PIDFILE "/var/run/cmirrord.pid"
11827_ACEOF
11828
a946372e
AK
11829fi
11830
66fd4529 11831fi
a946372e 11832
66fd4529
AK
11833################################################################################
11834if [ "x$BUILD_CMIRRORD" = xyes ]; then
90c80887
AK
11835 if test x$PKGCONFIG_INIT != x1; then
11836 pkg_config_init
11837 fi
11838
11839pkg_failed=no
11840{ $as_echo "$as_me:$LINENO: checking for SACKPT" >&5
11841$as_echo_n "checking for SACKPT... " >&6; }
11842
11843if test -n "$SACKPT_CFLAGS"; then
11844 pkg_cv_SACKPT_CFLAGS="$SACKPT_CFLAGS"
11845 elif test -n "$PKG_CONFIG"; then
11846 if test -n "$PKG_CONFIG" && \
11847 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\"") >&5
11848 ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5
11849 ac_status=$?
11850 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11851 (exit $ac_status); }; then
11852 pkg_cv_SACKPT_CFLAGS=`$PKG_CONFIG --cflags "libSaCkpt" 2>/dev/null`
11853else
11854 pkg_failed=yes
11855fi
11856 else
11857 pkg_failed=untried
11858fi
11859if test -n "$SACKPT_LIBS"; then
11860 pkg_cv_SACKPT_LIBS="$SACKPT_LIBS"
11861 elif test -n "$PKG_CONFIG"; then
11862 if test -n "$PKG_CONFIG" && \
11863 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\"") >&5
11864 ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5
11865 ac_status=$?
11866 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11867 (exit $ac_status); }; then
11868 pkg_cv_SACKPT_LIBS=`$PKG_CONFIG --libs "libSaCkpt" 2>/dev/null`
11869else
11870 pkg_failed=yes
11871fi
11872 else
11873 pkg_failed=untried
11874fi
11875
11876
11877
11878if test $pkg_failed = yes; then
11879
11880if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11881 _pkg_short_errors_supported=yes
11882else
11883 _pkg_short_errors_supported=no
11884fi
11885 if test $_pkg_short_errors_supported = yes; then
11886 SACKPT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaCkpt" 2>&1`
11887 else
11888 SACKPT_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaCkpt" 2>&1`
11889 fi
11890 # Put the nasty error message in config.log where it belongs
11891 echo "$SACKPT_PKG_ERRORS" >&5
11892
11893 { { $as_echo "$as_me:$LINENO: error: Package requirements (libSaCkpt) were not met:
11894
11895$SACKPT_PKG_ERRORS
11896
11897Consider adjusting the PKG_CONFIG_PATH environment variable if you
11898installed software in a non-standard prefix.
11899
11900Alternatively, you may set the environment variables SACKPT_CFLAGS
11901and SACKPT_LIBS to avoid the need to call pkg-config.
11902See the pkg-config man page for more details.
11903" >&5
11904$as_echo "$as_me: error: Package requirements (libSaCkpt) were not met:
11905
11906$SACKPT_PKG_ERRORS
11907
11908Consider adjusting the PKG_CONFIG_PATH environment variable if you
11909installed software in a non-standard prefix.
11910
11911Alternatively, you may set the environment variables SACKPT_CFLAGS
11912and SACKPT_LIBS to avoid the need to call pkg-config.
11913See the pkg-config man page for more details.
11914" >&2;}
11915 { (exit 1); exit 1; }; }
11916elif test $pkg_failed = untried; then
11917 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11918$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11919{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
11920is in your PATH or set the PKG_CONFIG environment variable to the full
11921path to pkg-config.
11922
11923Alternatively, you may set the environment variables SACKPT_CFLAGS
11924and SACKPT_LIBS to avoid the need to call pkg-config.
11925See the pkg-config man page for more details.
11926
11927To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11928See \`config.log' for more details." >&5
11929$as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
11930is in your PATH or set the PKG_CONFIG environment variable to the full
11931path to pkg-config.
11932
11933Alternatively, you may set the environment variables SACKPT_CFLAGS
11934and SACKPT_LIBS to avoid the need to call pkg-config.
11935See the pkg-config man page for more details.
11936
11937To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11938See \`config.log' for more details." >&2;}
11939 { (exit 1); exit 1; }; }; }
11940else
11941 SACKPT_CFLAGS=$pkg_cv_SACKPT_CFLAGS
11942 SACKPT_LIBS=$pkg_cv_SACKPT_LIBS
11943 { $as_echo "$as_me:$LINENO: result: yes" >&5
11944$as_echo "yes" >&6; }
11945 :
11946fi
11947 if test x$HAVE_CPG != xyes; then
a946372e
AK
11948
11949pkg_failed=no
11950{ $as_echo "$as_me:$LINENO: checking for CPG" >&5
11951$as_echo_n "checking for CPG... " >&6; }
11952
11953if test -n "$CPG_CFLAGS"; then
11954 pkg_cv_CPG_CFLAGS="$CPG_CFLAGS"
11955 elif test -n "$PKG_CONFIG"; then
11956 if test -n "$PKG_CONFIG" && \
11957 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
11958 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
11959 ac_status=$?
11960 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11961 (exit $ac_status); }; then
11962 pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
11963else
11964 pkg_failed=yes
11965fi
11966 else
11967 pkg_failed=untried
11968fi
11969if test -n "$CPG_LIBS"; then
11970 pkg_cv_CPG_LIBS="$CPG_LIBS"
11971 elif test -n "$PKG_CONFIG"; then
11972 if test -n "$PKG_CONFIG" && \
11973 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
11974 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
11975 ac_status=$?
11976 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11977 (exit $ac_status); }; then
11978 pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
11979else
11980 pkg_failed=yes
11981fi
11982 else
11983 pkg_failed=untried
11984fi
11985
11986
11987
11988if test $pkg_failed = yes; then
11989
11990if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11991 _pkg_short_errors_supported=yes
11992else
11993 _pkg_short_errors_supported=no
11994fi
11995 if test $_pkg_short_errors_supported = yes; then
11996 CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
11997 else
11998 CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
11999 fi
12000 # Put the nasty error message in config.log where it belongs
12001 echo "$CPG_PKG_ERRORS" >&5
12002
90c80887
AK
12003 { { $as_echo "$as_me:$LINENO: error: Package requirements (libcpg) were not met:
12004
12005$CPG_PKG_ERRORS
12006
12007Consider adjusting the PKG_CONFIG_PATH environment variable if you
12008installed software in a non-standard prefix.
12009
12010Alternatively, you may set the environment variables CPG_CFLAGS
12011and CPG_LIBS to avoid the need to call pkg-config.
12012See the pkg-config man page for more details.
12013" >&5
12014$as_echo "$as_me: error: Package requirements (libcpg) were not met:
12015
12016$CPG_PKG_ERRORS
12017
12018Consider adjusting the PKG_CONFIG_PATH environment variable if you
12019installed software in a non-standard prefix.
12020
12021Alternatively, you may set the environment variables CPG_CFLAGS
12022and CPG_LIBS to avoid the need to call pkg-config.
12023See the pkg-config man page for more details.
12024" >&2;}
12025 { (exit 1); exit 1; }; }
a946372e 12026elif test $pkg_failed = untried; then
90c80887
AK
12027 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12028$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12029{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
12030is in your PATH or set the PKG_CONFIG environment variable to the full
12031path to pkg-config.
12032
12033Alternatively, you may set the environment variables CPG_CFLAGS
12034and CPG_LIBS to avoid the need to call pkg-config.
12035See the pkg-config man page for more details.
12036
12037To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12038See \`config.log' for more details." >&5
12039$as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
12040is in your PATH or set the PKG_CONFIG environment variable to the full
12041path to pkg-config.
12042
12043Alternatively, you may set the environment variables CPG_CFLAGS
12044and CPG_LIBS to avoid the need to call pkg-config.
12045See the pkg-config man page for more details.
12046
12047To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12048See \`config.log' for more details." >&2;}
12049 { (exit 1); exit 1; }; }; }
a946372e
AK
12050else
12051 CPG_CFLAGS=$pkg_cv_CPG_CFLAGS
12052 CPG_LIBS=$pkg_cv_CPG_LIBS
12053 { $as_echo "$as_me:$LINENO: result: yes" >&5
12054$as_echo "yes" >&6; }
12055 :
12056fi
90c80887 12057 fi
a946372e
AK
12058fi
12059
12060################################################################################
12061{ $as_echo "$as_me:$LINENO: checking whether to enable debugging" >&5
12062$as_echo_n "checking whether to enable debugging... " >&6; }
12063# Check whether --enable-debug was given.
12064if test "${enable_debug+set}" = set; then
12065 enableval=$enable_debug; DEBUG=$enableval
12066else
12067 DEBUG=no
12068fi
12069
12070{ $as_echo "$as_me:$LINENO: result: $DEBUG" >&5
12071$as_echo "$DEBUG" >&6; }
12072
12073if test x$DEBUG = xyes; then
12074 COPTIMISE_FLAG=
12075else
12076 CSCOPE_CMD=
12077fi
12078
12079################################################################################
12080{ $as_echo "$as_me:$LINENO: checking for C optimisation flag" >&5
12081$as_echo_n "checking for C optimisation flag... " >&6; }
12082
12083# Check whether --with-optimisation was given.
12084if test "${with_optimisation+set}" = set; then
12085 withval=$with_optimisation; COPTIMISE_FLAG="$withval"
12086fi
12087
12088{ $as_echo "$as_me:$LINENO: result: $COPTIMISE_FLAG" >&5
12089$as_echo "$COPTIMISE_FLAG" >&6; }
12090
12091################################################################################
12092{ $as_echo "$as_me:$LINENO: checking whether to gather gcov profiling data" >&5
12093$as_echo_n "checking whether to gather gcov profiling data... " >&6; }
12094# Check whether --enable-profiling was given.
12095if test "${enable_profiling+set}" = set; then
5556819a 12096 enableval=$enable_profiling; PROFILING=$enableval
fddafd51 12097else
5556819a 12098 PROFILING=no
fddafd51
ZK
12099fi
12100
ec6a6fbe
AK
12101{ $as_echo "$as_me:$LINENO: result: $PROFILING" >&5
12102$as_echo "$PROFILING" >&6; }
5556819a
AK
12103
12104if test "x$PROFILING" = xyes; then
12105 COPTIMISE_FLAG="$COPTIMISE_FLAG -fprofile-arcs -ftest-coverage"
12106 # Extract the first word of "lcov", so it can be a program name with args.
fddafd51 12107set dummy lcov; ac_word=$2
ec6a6fbe
AK
12108{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12109$as_echo_n "checking for $ac_word... " >&6; }
fddafd51 12110if test "${ac_cv_path_LCOV+set}" = set; then
ec6a6fbe 12111 $as_echo_n "(cached) " >&6
fddafd51
ZK
12112else
12113 case $LCOV in
12114 [\\/]* | ?:[\\/]*)
12115 ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path.
12116 ;;
12117 *)
12118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12119for as_dir in $PATH
12120do
12121 IFS=$as_save_IFS
12122 test -z "$as_dir" && as_dir=.
12123 for ac_exec_ext in '' $ac_executable_extensions; do
12124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12125 ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 12126 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
fddafd51
ZK
12127 break 2
12128 fi
12129done
12130done
12131IFS=$as_save_IFS
12132
12133 ;;
12134esac
12135fi
12136LCOV=$ac_cv_path_LCOV
12137if test -n "$LCOV"; then
ec6a6fbe
AK
12138 { $as_echo "$as_me:$LINENO: result: $LCOV" >&5
12139$as_echo "$LCOV" >&6; }
fddafd51 12140else
ec6a6fbe
AK
12141 { $as_echo "$as_me:$LINENO: result: no" >&5
12142$as_echo "no" >&6; }
fddafd51
ZK
12143fi
12144
12145
5556819a 12146 # Extract the first word of "genhtml", so it can be a program name with args.
fddafd51 12147set dummy genhtml; ac_word=$2
ec6a6fbe
AK
12148{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12149$as_echo_n "checking for $ac_word... " >&6; }
fddafd51 12150if test "${ac_cv_path_GENHTML+set}" = set; then
ec6a6fbe 12151 $as_echo_n "(cached) " >&6
fddafd51
ZK
12152else
12153 case $GENHTML in
12154 [\\/]* | ?:[\\/]*)
12155 ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path.
12156 ;;
12157 *)
12158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12159for as_dir in $PATH
12160do
12161 IFS=$as_save_IFS
12162 test -z "$as_dir" && as_dir=.
12163 for ac_exec_ext in '' $ac_executable_extensions; do
12164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12165 ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 12166 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
fddafd51
ZK
12167 break 2
12168 fi
12169done
12170done
12171IFS=$as_save_IFS
12172
12173 ;;
12174esac
12175fi
12176GENHTML=$ac_cv_path_GENHTML
12177if test -n "$GENHTML"; then
ec6a6fbe
AK
12178 { $as_echo "$as_me:$LINENO: result: $GENHTML" >&5
12179$as_echo "$GENHTML" >&6; }
fddafd51 12180else
ec6a6fbe
AK
12181 { $as_echo "$as_me:$LINENO: result: no" >&5
12182$as_echo "no" >&6; }
fddafd51
ZK
12183fi
12184
12185
fd4728e1 12186 if test -z "$LCOV" -o -z "$GENHTML"; then
ec6a6fbe
AK
12187 { { $as_echo "$as_me:$LINENO: error: lcov and genhtml are required for profiling" >&5
12188$as_echo "$as_me: error: lcov and genhtml are required for profiling" >&2;}
b145d876
ZK
12189 { (exit 1); exit 1; }; }
12190 fi
fd4728e1
ZK
12191 # Extract the first word of "genpng", so it can be a program name with args.
12192set dummy genpng; ac_word=$2
12193{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12194$as_echo_n "checking for $ac_word... " >&6; }
12195if test "${ac_cv_path_GENPNG+set}" = set; then
12196 $as_echo_n "(cached) " >&6
12197else
12198 case $GENPNG in
12199 [\\/]* | ?:[\\/]*)
12200 ac_cv_path_GENPNG="$GENPNG" # Let the user override the test with a path.
12201 ;;
12202 *)
12203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12204for as_dir in $PATH
12205do
12206 IFS=$as_save_IFS
12207 test -z "$as_dir" && as_dir=.
12208 for ac_exec_ext in '' $ac_executable_extensions; do
12209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12210 ac_cv_path_GENPNG="$as_dir/$ac_word$ac_exec_ext"
12211 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12212 break 2
12213 fi
12214done
12215done
12216IFS=$as_save_IFS
12217
12218 ;;
12219esac
12220fi
12221GENPNG=$ac_cv_path_GENPNG
12222if test -n "$GENPNG"; then
12223 { $as_echo "$as_me:$LINENO: result: $GENPNG" >&5
12224$as_echo "$GENPNG" >&6; }
12225else
12226 { $as_echo "$as_me:$LINENO: result: no" >&5
12227$as_echo "no" >&6; }
12228fi
12229
12230
12231 if test -n "$GENPNG"; then
12232 { $as_echo "$as_me:$LINENO: checking whether $GENPNG has all required modules" >&5
12233$as_echo_n "checking whether $GENPNG has all required modules... " >&6; }
12234 if $GENPNG --help > /dev/null 2>&1 ; then
12235 { $as_echo "$as_me:$LINENO: result: ok" >&5
12236$as_echo "ok" >&6; }
12237 GENHTML="$GENHTML --frames"
12238 else
12239 { $as_echo "$as_me:$LINENO: result: not supported" >&5
12240$as_echo "not supported" >&6; }
12241 { $as_echo "$as_me:$LINENO: WARNING: GD.pm perl module is not installed" >&5
12242$as_echo "$as_me: WARNING: GD.pm perl module is not installed" >&2;}
12243 GENPNG=
12244 fi
12245 fi
5556819a 12246fi
d0191583
JM
12247
12248################################################################################
ec6a6fbe
AK
12249{ $as_echo "$as_me:$LINENO: checking whether to use device-mapper" >&5
12250$as_echo_n "checking whether to use device-mapper... " >&6; }
d0191583
JM
12251# Check whether --enable-devmapper was given.
12252if test "${enable_devmapper+set}" = set; then
12253 enableval=$enable_devmapper; DEVMAPPER=$enableval
fc54be10
AK
12254fi
12255
ec6a6fbe
AK
12256{ $as_echo "$as_me:$LINENO: result: $DEVMAPPER" >&5
12257$as_echo "$DEVMAPPER" >&6; }
d0191583
JM
12258
12259if test x$DEVMAPPER = xyes; then
ad6254c5
AK
12260
12261cat >>confdefs.h <<\_ACEOF
d0191583 12262#define DEVMAPPER_SUPPORT 1
ad6254c5
AK
12263_ACEOF
12264
12265fi
12266
a5f46f6a
AK
12267################################################################################
12268{ $as_echo "$as_me:$LINENO: checking whether to enable synchronisation with udev processing" >&5
12269$as_echo_n "checking whether to enable synchronisation with udev processing... " >&6; }
12270# Check whether --enable-udev_sync was given.
12271if test "${enable_udev_sync+set}" = set; then
12272 enableval=$enable_udev_sync; UDEV_SYNC=$enableval
12273else
12274 UDEV_SYNC=no
12275fi
12276
12277{ $as_echo "$as_me:$LINENO: result: $UDEV_SYNC" >&5
12278$as_echo "$UDEV_SYNC" >&6; }
12279
90c80887
AK
12280if test x$UDEV_SYNC = xyes; then
12281 { $as_echo "$as_me:$LINENO: checking for udev_queue_get_udev_is_active in -ludev" >&5
12282$as_echo_n "checking for udev_queue_get_udev_is_active in -ludev... " >&6; }
12283if test "${ac_cv_lib_udev_udev_queue_get_udev_is_active+set}" = set; then
12284 $as_echo_n "(cached) " >&6
12285else
12286 ac_check_lib_save_LIBS=$LIBS
12287LIBS="-ludev $LIBS"
12288cat >conftest.$ac_ext <<_ACEOF
12289/* confdefs.h. */
12290_ACEOF
12291cat confdefs.h >>conftest.$ac_ext
12292cat >>conftest.$ac_ext <<_ACEOF
12293/* end confdefs.h. */
12294
12295/* Override any GCC internal prototype to avoid an error.
12296 Use char because int might match the return type of a GCC
12297 builtin and then its argument prototype would still apply. */
12298#ifdef __cplusplus
12299extern "C"
12300#endif
12301char udev_queue_get_udev_is_active ();
12302int
12303main ()
12304{
12305return udev_queue_get_udev_is_active ();
12306 ;
12307 return 0;
12308}
12309_ACEOF
12310rm -f conftest.$ac_objext conftest$ac_exeext
12311if { (ac_try="$ac_link"
12312case "(($ac_try" in
12313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12314 *) ac_try_echo=$ac_try;;
12315esac
12316eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12317$as_echo "$ac_try_echo") >&5
12318 (eval "$ac_link") 2>conftest.er1
12319 ac_status=$?
12320 grep -v '^ *+' conftest.er1 >conftest.err
12321 rm -f conftest.er1
12322 cat conftest.err >&5
12323 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12324 (exit $ac_status); } && {
12325 test -z "$ac_c_werror_flag" ||
12326 test ! -s conftest.err
12327 } && test -s conftest$ac_exeext && {
12328 test "$cross_compiling" = yes ||
12329 $as_test_x conftest$ac_exeext
12330 }; then
12331 ac_cv_lib_udev_udev_queue_get_udev_is_active=yes
12332else
12333 $as_echo "$as_me: failed program was:" >&5
12334sed 's/^/| /' conftest.$ac_ext >&5
12335
12336 ac_cv_lib_udev_udev_queue_get_udev_is_active=no
12337fi
12338
12339rm -rf conftest.dSYM
12340rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12341 conftest$ac_exeext conftest.$ac_ext
12342LIBS=$ac_check_lib_save_LIBS
12343fi
12344{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_udev_udev_queue_get_udev_is_active" >&5
12345$as_echo "$ac_cv_lib_udev_udev_queue_get_udev_is_active" >&6; }
12346if test "x$ac_cv_lib_udev_udev_queue_get_udev_is_active" = x""yes; then
f7f0854e 12347 UDEV_PC="libudev"; UDEV_LIBS="-ludev"
90c80887 12348else
5161ecb9
PR
12349 { { $as_echo "$as_me:$LINENO: error: bailing out... libudev library is required" >&5
12350$as_echo "$as_me: error: bailing out... libudev library is required" >&2;}
12351 { (exit 1); exit 1; }; }
90c80887
AK
12352fi
12353
12354
90c80887 12355cat >>confdefs.h <<\_ACEOF
5161ecb9 12356#define UDEV_SYNC_SUPPORT 1
90c80887
AK
12357_ACEOF
12358
90c80887
AK
12359fi
12360
5161ecb9
PR
12361{ $as_echo "$as_me:$LINENO: checking whether to enable installation of udev rules required for synchronisation" >&5
12362$as_echo_n "checking whether to enable installation of udev rules required for synchronisation... " >&6; }
12363# Check whether --enable-udev_rules was given.
12364if test "${enable_udev_rules+set}" = set; then
12365 enableval=$enable_udev_rules; UDEV_RULES=$enableval
12366else
12367 UDEV_RULES=$UDEV_SYNC
12368fi
12369
12370{ $as_echo "$as_me:$LINENO: result: $UDEV_RULES" >&5
12371$as_echo "$UDEV_RULES" >&6; }
12372
93bd259b
AK
12373################################################################################
12374# Check whether --enable-compat was given.
12375if test "${enable_compat+set}" = set; then
12376 enableval=$enable_compat; DM_COMPAT=$enableval
12377else
12378 DM_COMPAT=no
12379fi
12380
12381
95eaa683
AK
12382################################################################################
12383# Check whether --enable-units-compat was given.
12384if test "${enable_units_compat+set}" = set; then
12385 enableval=$enable_units_compat; UNITS_COMPAT=$enableval
12386else
12387 UNITS_COMPAT=no
12388fi
12389
12390
12391if test x$UNITS_COMPAT = xyes; then
12392
12393cat >>confdefs.h <<\_ACEOF
12394#define DEFAULT_SI_UNIT_CONSISTENCY 0
12395_ACEOF
12396
12397fi
12398
93bd259b
AK
12399################################################################################
12400# Check whether --enable-ioctl was given.
12401if test "${enable_ioctl+set}" = set; then
12402 enableval=$enable_ioctl; DM_IOCTLS=$enableval
12403fi
12404
12405
d0191583 12406################################################################################
ec6a6fbe
AK
12407{ $as_echo "$as_me:$LINENO: checking whether to enable O_DIRECT" >&5
12408$as_echo_n "checking whether to enable O_DIRECT... " >&6; }
d0191583
JM
12409# Check whether --enable-o_direct was given.
12410if test "${enable_o_direct+set}" = set; then
12411 enableval=$enable_o_direct; ODIRECT=$enableval
ad6254c5 12412fi
ad6254c5 12413
ec6a6fbe
AK
12414{ $as_echo "$as_me:$LINENO: result: $ODIRECT" >&5
12415$as_echo "$ODIRECT" >&6; }
ad6254c5 12416
d0191583 12417if test x$ODIRECT = xyes; then
ad6254c5 12418
d0191583
JM
12419cat >>confdefs.h <<\_ACEOF
12420#define O_DIRECT_SUPPORT 1
12421_ACEOF
ad6254c5 12422
d0191583 12423fi
ad6254c5 12424
572fefeb
AK
12425################################################################################
12426{ $as_echo "$as_me:$LINENO: checking whether to build liblvm2app.so application library" >&5
12427$as_echo_n "checking whether to build liblvm2app.so application library... " >&6; }
12428# Check whether --enable-applib was given.
12429if test "${enable_applib+set}" = set; then
12430 enableval=$enable_applib; APPLIB=$enableval
12431else
12432 APPLIB=no
12433fi
12434
12435{ $as_echo "$as_me:$LINENO: result: $APPLIB" >&5
12436$as_echo "$APPLIB" >&6; }
12437
12438test x$APPLIB = xyes \
12439 && LVM2APP_LIB=-llvm2app \
12440 || LVM2APP_LIB=
12441
d0191583 12442################################################################################
ec6a6fbe
AK
12443{ $as_echo "$as_me:$LINENO: checking whether to compile liblvm2cmd.so" >&5
12444$as_echo_n "checking whether to compile liblvm2cmd.so... " >&6; }
d0191583
JM
12445# Check whether --enable-cmdlib was given.
12446if test "${enable_cmdlib+set}" = set; then
12447 enableval=$enable_cmdlib; CMDLIB=$enableval
ad6254c5 12448else
d0191583
JM
12449 CMDLIB=no
12450fi
8a2fc586 12451
ec6a6fbe
AK
12452{ $as_echo "$as_me:$LINENO: result: $CMDLIB" >&5
12453$as_echo "$CMDLIB" >&6; }
8a2fc586 12454
2a9a80c9 12455test x$CMDLIB = xyes \
d179cc7a
JM
12456 && LVM2CMD_LIB=-llvm2cmd \
12457 || LVM2CMD_LIB=
12458
93bd259b
AK
12459################################################################################
12460# Check whether --enable-pkgconfig was given.
12461if test "${enable_pkgconfig+set}" = set; then
12462 enableval=$enable_pkgconfig; PKGCONFIG=$enableval
12463else
12464 PKGCONFIG=no
12465fi
12466
2a9a80c9 12467
23b059e7
ZK
12468################################################################################
12469# Check whether --enable-write_install was given.
12470if test "${enable_write_install+set}" = set; then
12471 enableval=$enable_write_install; WRITE_INSTALL=$enableval
12472else
12473 WRITE_INSTALL=no
12474fi
12475
12476
d0191583 12477################################################################################
ec6a6fbe
AK
12478{ $as_echo "$as_me:$LINENO: checking whether to install fsadm" >&5
12479$as_echo_n "checking whether to install fsadm... " >&6; }
d0191583
JM
12480# Check whether --enable-fsadm was given.
12481if test "${enable_fsadm+set}" = set; then
12482 enableval=$enable_fsadm; FSADM=$enableval
12483fi
8a2fc586 12484
ec6a6fbe
AK
12485{ $as_echo "$as_me:$LINENO: result: $FSADM" >&5
12486$as_echo "$FSADM" >&6; }
8a2fc586 12487
d0191583 12488################################################################################
ec6a6fbe
AK
12489{ $as_echo "$as_me:$LINENO: checking whether to use dmeventd" >&5
12490$as_echo_n "checking whether to use dmeventd... " >&6; }
d0191583
JM
12491# Check whether --enable-dmeventd was given.
12492if test "${enable_dmeventd+set}" = set; then
12493 enableval=$enable_dmeventd; DMEVENTD=$enableval
12494fi
ad6254c5 12495
ec6a6fbe
AK
12496{ $as_echo "$as_me:$LINENO: result: $DMEVENTD" >&5
12497$as_echo "$DMEVENTD" >&6; }
ad6254c5 12498
93bd259b
AK
12499BUILD_DMEVENTD=$DMEVENTD
12500
2a9a80c9
PR
12501if test x$DMEVENTD = xyes; then
12502 if test x$MIRRORS != xinternal; then
ec6a6fbe 12503 { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd currently requires --with-mirrors=internal
2a9a80c9 12504 " >&5
ec6a6fbe 12505$as_echo "$as_me: error: --enable-dmeventd currently requires --with-mirrors=internal
2a9a80c9 12506 " >&2;}
d0191583 12507 { (exit 1); exit 1; }; }
2a9a80c9
PR
12508 fi
12509 if test x$CMDLIB = xno; then
ec6a6fbe 12510 { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd requires --enable-cmdlib to be used as well
2a9a80c9 12511 " >&5
ec6a6fbe 12512$as_echo "$as_me: error: --enable-dmeventd requires --enable-cmdlib to be used as well
2a9a80c9
PR
12513 " >&2;}
12514 { (exit 1); exit 1; }; }
12515 fi
ad6254c5 12516fi
7a197a62 12517
d0191583
JM
12518if test x$DMEVENTD = xyes; then
12519
12520cat >>confdefs.h <<\_ACEOF
12521#define DMEVENTD 1
ad6254c5
AK
12522_ACEOF
12523
ad6254c5 12524fi
93bd259b
AK
12525
12526################################################################################
12527
ec6a6fbe
AK
12528{ $as_echo "$as_me:$LINENO: checking for getline in -lc" >&5
12529$as_echo_n "checking for getline in -lc... " >&6; }
93bd259b 12530if test "${ac_cv_lib_c_getline+set}" = set; then
ec6a6fbe 12531 $as_echo_n "(cached) " >&6
93bd259b
AK
12532else
12533 ac_check_lib_save_LIBS=$LIBS
12534LIBS="-lc $LIBS"
12535cat >conftest.$ac_ext <<_ACEOF
12536/* confdefs.h. */
12537_ACEOF
12538cat confdefs.h >>conftest.$ac_ext
12539cat >>conftest.$ac_ext <<_ACEOF
12540/* end confdefs.h. */
12541
12542/* Override any GCC internal prototype to avoid an error.
12543 Use char because int might match the return type of a GCC
12544 builtin and then its argument prototype would still apply. */
12545#ifdef __cplusplus
12546extern "C"
12547#endif
12548char getline ();
12549int
12550main ()
12551{
12552return getline ();
12553 ;
12554 return 0;
12555}
12556_ACEOF
12557rm -f conftest.$ac_objext conftest$ac_exeext
12558if { (ac_try="$ac_link"
12559case "(($ac_try" in
12560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12561 *) ac_try_echo=$ac_try;;
12562esac
ec6a6fbe
AK
12563eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12564$as_echo "$ac_try_echo") >&5
93bd259b
AK
12565 (eval "$ac_link") 2>conftest.er1
12566 ac_status=$?
12567 grep -v '^ *+' conftest.er1 >conftest.err
12568 rm -f conftest.er1
12569 cat conftest.err >&5
ec6a6fbe 12570 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
93bd259b
AK
12571 (exit $ac_status); } && {
12572 test -z "$ac_c_werror_flag" ||
12573 test ! -s conftest.err
ec6a6fbe
AK
12574 } && test -s conftest$ac_exeext && {
12575 test "$cross_compiling" = yes ||
12576 $as_test_x conftest$ac_exeext
12577 }; then
93bd259b
AK
12578 ac_cv_lib_c_getline=yes
12579else
ec6a6fbe 12580 $as_echo "$as_me: failed program was:" >&5
93bd259b
AK
12581sed 's/^/| /' conftest.$ac_ext >&5
12582
12583 ac_cv_lib_c_getline=no
12584fi
12585
ec6a6fbe 12586rm -rf conftest.dSYM
93bd259b
AK
12587rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12588 conftest$ac_exeext conftest.$ac_ext
12589LIBS=$ac_check_lib_save_LIBS
12590fi
ec6a6fbe
AK
12591{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_getline" >&5
12592$as_echo "$ac_cv_lib_c_getline" >&6; }
12593if test "x$ac_cv_lib_c_getline" = x""yes; then
93bd259b
AK
12594
12595cat >>confdefs.h <<\_ACEOF
12596#define HAVE_GETLINE 1
12597_ACEOF
12598
12599fi
12600
12601
12602################################################################################
12603
ec6a6fbe
AK
12604{ $as_echo "$as_me:$LINENO: checking for canonicalize_file_name in -lc" >&5
12605$as_echo_n "checking for canonicalize_file_name in -lc... " >&6; }
93bd259b 12606if test "${ac_cv_lib_c_canonicalize_file_name+set}" = set; then
ec6a6fbe 12607 $as_echo_n "(cached) " >&6
93bd259b
AK
12608else
12609 ac_check_lib_save_LIBS=$LIBS
12610LIBS="-lc $LIBS"
12611cat >conftest.$ac_ext <<_ACEOF
12612/* confdefs.h. */
12613_ACEOF
12614cat confdefs.h >>conftest.$ac_ext
12615cat >>conftest.$ac_ext <<_ACEOF
12616/* end confdefs.h. */
12617
12618/* Override any GCC internal prototype to avoid an error.
12619 Use char because int might match the return type of a GCC
12620 builtin and then its argument prototype would still apply. */
12621#ifdef __cplusplus
12622extern "C"
12623#endif
12624char canonicalize_file_name ();
12625int
12626main ()
12627{
12628return canonicalize_file_name ();
12629 ;
12630 return 0;
12631}
12632_ACEOF
12633rm -f conftest.$ac_objext conftest$ac_exeext
12634if { (ac_try="$ac_link"
12635case "(($ac_try" in
12636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12637 *) ac_try_echo=$ac_try;;
12638esac
ec6a6fbe
AK
12639eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12640$as_echo "$ac_try_echo") >&5
93bd259b
AK
12641 (eval "$ac_link") 2>conftest.er1
12642 ac_status=$?
12643 grep -v '^ *+' conftest.er1 >conftest.err
12644 rm -f conftest.er1
12645 cat conftest.err >&5
ec6a6fbe 12646 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
93bd259b
AK
12647 (exit $ac_status); } && {
12648 test -z "$ac_c_werror_flag" ||
12649 test ! -s conftest.err
ec6a6fbe
AK
12650 } && test -s conftest$ac_exeext && {
12651 test "$cross_compiling" = yes ||
12652 $as_test_x conftest$ac_exeext
12653 }; then
93bd259b
AK
12654 ac_cv_lib_c_canonicalize_file_name=yes
12655else
ec6a6fbe 12656 $as_echo "$as_me: failed program was:" >&5
93bd259b
AK
12657sed 's/^/| /' conftest.$ac_ext >&5
12658
12659 ac_cv_lib_c_canonicalize_file_name=no
12660fi
12661
ec6a6fbe 12662rm -rf conftest.dSYM
93bd259b
AK
12663rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12664 conftest$ac_exeext conftest.$ac_ext
12665LIBS=$ac_check_lib_save_LIBS
12666fi
ec6a6fbe
AK
12667{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_canonicalize_file_name" >&5
12668$as_echo "$ac_cv_lib_c_canonicalize_file_name" >&6; }
12669if test "x$ac_cv_lib_c_canonicalize_file_name" = x""yes; then
93bd259b
AK
12670
12671cat >>confdefs.h <<\_ACEOF
12672#define HAVE_CANONICALIZE_FILE_NAME 1
12673_ACEOF
12674
12675fi
12676
12677
d0191583
JM
12678################################################################################
12679if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ];
12680 then exec_prefix="";
12681fi;
ad6254c5 12682
ad6254c5 12683################################################################################
ec6a6fbe
AK
12684{ $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12685$as_echo_n "checking for dlopen in -ldl... " >&6; }
ad6254c5 12686if test "${ac_cv_lib_dl_dlopen+set}" = set; then
ec6a6fbe 12687 $as_echo_n "(cached) " >&6
ad6254c5
AK
12688else
12689 ac_check_lib_save_LIBS=$LIBS
12690LIBS="-ldl $LIBS"
12691cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
12692/* confdefs.h. */
12693_ACEOF
12694cat confdefs.h >>conftest.$ac_ext
12695cat >>conftest.$ac_ext <<_ACEOF
12696/* end confdefs.h. */
12697
7a197a62
AK
12698/* Override any GCC internal prototype to avoid an error.
12699 Use char because int might match the return type of a GCC
12700 builtin and then its argument prototype would still apply. */
ad6254c5
AK
12701#ifdef __cplusplus
12702extern "C"
12703#endif
ad6254c5
AK
12704char dlopen ();
12705int
12706main ()
12707{
7a197a62 12708return dlopen ();
ad6254c5
AK
12709 ;
12710 return 0;
12711}
12712_ACEOF
12713rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
12714if { (ac_try="$ac_link"
12715case "(($ac_try" in
12716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12717 *) ac_try_echo=$ac_try;;
12718esac
ec6a6fbe
AK
12719eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12720$as_echo "$ac_try_echo") >&5
7a197a62 12721 (eval "$ac_link") 2>conftest.er1
ad6254c5 12722 ac_status=$?
8a2fc586
AK
12723 grep -v '^ *+' conftest.er1 >conftest.err
12724 rm -f conftest.er1
12725 cat conftest.err >&5
ec6a6fbe 12726 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
12727 (exit $ac_status); } && {
12728 test -z "$ac_c_werror_flag" ||
12729 test ! -s conftest.err
ec6a6fbe
AK
12730 } && test -s conftest$ac_exeext && {
12731 test "$cross_compiling" = yes ||
12732 $as_test_x conftest$ac_exeext
12733 }; then
ad6254c5
AK
12734 ac_cv_lib_dl_dlopen=yes
12735else
ec6a6fbe 12736 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
12737sed 's/^/| /' conftest.$ac_ext >&5
12738
7a197a62 12739 ac_cv_lib_dl_dlopen=no
ad6254c5 12740fi
7a197a62 12741
ec6a6fbe 12742rm -rf conftest.dSYM
25fbec5b 12743rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 12744 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
12745LIBS=$ac_check_lib_save_LIBS
12746fi
ec6a6fbe
AK
12747{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12748$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12749if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
ad6254c5 12750
72b2cb61
AK
12751
12752cat >>confdefs.h <<\_ACEOF
12753#define HAVE_LIBDL 1
12754_ACEOF
12755
19a2c6e0
ZK
12756 DL_LIBS="-ldl"
12757 HAVE_LIBDL=yes
ad6254c5 12758else
19a2c6e0
ZK
12759
12760 DL_LIBS=
ad6254c5
AK
12761 HAVE_LIBDL=no
12762fi
12763
19a2c6e0 12764
ad6254c5
AK
12765################################################################################
12766if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \
12767 -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \
12768 \) -a "x$STATIC_LINK" = xyes ];
ec6a6fbe 12769 then { { $as_echo "$as_me:$LINENO: error: Features cannot be 'shared' when building statically
ad6254c5 12770" >&5
ec6a6fbe 12771$as_echo "$as_me: error: Features cannot be 'shared' when building statically
ad6254c5
AK
12772" >&2;}
12773 { (exit 1); exit 1; }; }
12774fi
12775
f30875db
ZK
12776################################################################################
12777if [ "$DMEVENTD" = yes -o "$CLVMD" != none ] ; then
12778 { $as_echo "$as_me:$LINENO: checking for pthread_mutex_lock in -lpthread" >&5
12779$as_echo_n "checking for pthread_mutex_lock in -lpthread... " >&6; }
12780if test "${ac_cv_lib_pthread_pthread_mutex_lock+set}" = set; then
12781 $as_echo_n "(cached) " >&6
12782else
12783 ac_check_lib_save_LIBS=$LIBS
12784LIBS="-lpthread $LIBS"
12785cat >conftest.$ac_ext <<_ACEOF
12786/* confdefs.h. */
12787_ACEOF
12788cat confdefs.h >>conftest.$ac_ext
12789cat >>conftest.$ac_ext <<_ACEOF
12790/* end confdefs.h. */
12791
12792/* Override any GCC internal prototype to avoid an error.
12793 Use char because int might match the return type of a GCC
12794 builtin and then its argument prototype would still apply. */
12795#ifdef __cplusplus
12796extern "C"
12797#endif
12798char pthread_mutex_lock ();
12799int
12800main ()
12801{
12802return pthread_mutex_lock ();
12803 ;
12804 return 0;
12805}
12806_ACEOF
12807rm -f conftest.$ac_objext conftest$ac_exeext
12808if { (ac_try="$ac_link"
12809case "(($ac_try" in
12810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12811 *) ac_try_echo=$ac_try;;
12812esac
12813eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12814$as_echo "$ac_try_echo") >&5
12815 (eval "$ac_link") 2>conftest.er1
12816 ac_status=$?
12817 grep -v '^ *+' conftest.er1 >conftest.err
12818 rm -f conftest.er1
12819 cat conftest.err >&5
12820 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12821 (exit $ac_status); } && {
12822 test -z "$ac_c_werror_flag" ||
12823 test ! -s conftest.err
12824 } && test -s conftest$ac_exeext && {
12825 test "$cross_compiling" = yes ||
12826 $as_test_x conftest$ac_exeext
12827 }; then
12828 ac_cv_lib_pthread_pthread_mutex_lock=yes
12829else
12830 $as_echo "$as_me: failed program was:" >&5
12831sed 's/^/| /' conftest.$ac_ext >&5
12832
12833 ac_cv_lib_pthread_pthread_mutex_lock=no
12834fi
12835
12836rm -rf conftest.dSYM
12837rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12838 conftest$ac_exeext conftest.$ac_ext
12839LIBS=$ac_check_lib_save_LIBS
12840fi
12841{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_lock" >&5
12842$as_echo "$ac_cv_lib_pthread_pthread_mutex_lock" >&6; }
12843if test "x$ac_cv_lib_pthread_pthread_mutex_lock" = x""yes; then
12844 PTHREAD_LIBS="-lpthread"
12845else
12846 hard_bailout
12847fi
12848
12849fi
12850
d0191583 12851################################################################################
ec6a6fbe
AK
12852{ $as_echo "$as_me:$LINENO: checking whether to enable selinux support" >&5
12853$as_echo_n "checking whether to enable selinux support... " >&6; }
d0191583
JM
12854# Check whether --enable-selinux was given.
12855if test "${enable_selinux+set}" = set; then
12856 enableval=$enable_selinux; SELINUX=$enableval
12857fi
12858
ec6a6fbe
AK
12859{ $as_echo "$as_me:$LINENO: result: $SELINUX" >&5
12860$as_echo "$SELINUX" >&6; }
d0191583 12861
ad6254c5
AK
12862################################################################################
12863if test x$SELINUX = xyes; then
ec6a6fbe
AK
12864 { $as_echo "$as_me:$LINENO: checking for sepol_check_context in -lsepol" >&5
12865$as_echo_n "checking for sepol_check_context in -lsepol... " >&6; }
8a2fc586 12866if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then
ec6a6fbe 12867 $as_echo_n "(cached) " >&6
8a2fc586
AK
12868else
12869 ac_check_lib_save_LIBS=$LIBS
12870LIBS="-lsepol $LIBS"
12871cat >conftest.$ac_ext <<_ACEOF
12872/* confdefs.h. */
12873_ACEOF
12874cat confdefs.h >>conftest.$ac_ext
12875cat >>conftest.$ac_ext <<_ACEOF
12876/* end confdefs.h. */
12877
7a197a62
AK
12878/* Override any GCC internal prototype to avoid an error.
12879 Use char because int might match the return type of a GCC
12880 builtin and then its argument prototype would still apply. */
8a2fc586
AK
12881#ifdef __cplusplus
12882extern "C"
12883#endif
8a2fc586
AK
12884char sepol_check_context ();
12885int
12886main ()
12887{
7a197a62 12888return sepol_check_context ();
8a2fc586
AK
12889 ;
12890 return 0;
12891}
12892_ACEOF
12893rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
12894if { (ac_try="$ac_link"
12895case "(($ac_try" in
12896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12897 *) ac_try_echo=$ac_try;;
12898esac
ec6a6fbe
AK
12899eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12900$as_echo "$ac_try_echo") >&5
7a197a62 12901 (eval "$ac_link") 2>conftest.er1
8a2fc586
AK
12902 ac_status=$?
12903 grep -v '^ *+' conftest.er1 >conftest.err
12904 rm -f conftest.er1
12905 cat conftest.err >&5
ec6a6fbe 12906 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
12907 (exit $ac_status); } && {
12908 test -z "$ac_c_werror_flag" ||
12909 test ! -s conftest.err
ec6a6fbe
AK
12910 } && test -s conftest$ac_exeext && {
12911 test "$cross_compiling" = yes ||
12912 $as_test_x conftest$ac_exeext
12913 }; then
8a2fc586
AK
12914 ac_cv_lib_sepol_sepol_check_context=yes
12915else
ec6a6fbe 12916 $as_echo "$as_me: failed program was:" >&5
8a2fc586
AK
12917sed 's/^/| /' conftest.$ac_ext >&5
12918
7a197a62 12919 ac_cv_lib_sepol_sepol_check_context=no
8a2fc586 12920fi
7a197a62 12921
ec6a6fbe 12922rm -rf conftest.dSYM
25fbec5b 12923rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586
AK
12924 conftest$ac_exeext conftest.$ac_ext
12925LIBS=$ac_check_lib_save_LIBS
12926fi
ec6a6fbe
AK
12927{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sepol_sepol_check_context" >&5
12928$as_echo "$ac_cv_lib_sepol_sepol_check_context" >&6; }
12929if test "x$ac_cv_lib_sepol_sepol_check_context" = x""yes; then
8a2fc586 12930
d0191583
JM
12931
12932cat >>confdefs.h <<\_ACEOF
12933#define HAVE_SEPOL 1
12934_ACEOF
12935
f8f6ec92
ZK
12936 SELINUX_LIBS="-lsepol"
12937fi
12938
8a2fc586 12939
ec6a6fbe
AK
12940 { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
12941$as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
ad6254c5 12942if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
ec6a6fbe 12943 $as_echo_n "(cached) " >&6
ad6254c5
AK
12944else
12945 ac_check_lib_save_LIBS=$LIBS
12946LIBS="-lselinux $LIBS"
12947cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
12948/* confdefs.h. */
12949_ACEOF
12950cat confdefs.h >>conftest.$ac_ext
12951cat >>conftest.$ac_ext <<_ACEOF
12952/* end confdefs.h. */
12953
7a197a62
AK
12954/* Override any GCC internal prototype to avoid an error.
12955 Use char because int might match the return type of a GCC
12956 builtin and then its argument prototype would still apply. */
ad6254c5
AK
12957#ifdef __cplusplus
12958extern "C"
12959#endif
ad6254c5
AK
12960char is_selinux_enabled ();
12961int
12962main ()
12963{
7a197a62 12964return is_selinux_enabled ();
ad6254c5
AK
12965 ;
12966 return 0;
12967}
12968_ACEOF
12969rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
12970if { (ac_try="$ac_link"
12971case "(($ac_try" in
12972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12973 *) ac_try_echo=$ac_try;;
12974esac
ec6a6fbe
AK
12975eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12976$as_echo "$ac_try_echo") >&5
7a197a62 12977 (eval "$ac_link") 2>conftest.er1
ad6254c5 12978 ac_status=$?
8a2fc586
AK
12979 grep -v '^ *+' conftest.er1 >conftest.err
12980 rm -f conftest.er1
12981 cat conftest.err >&5
ec6a6fbe 12982 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
12983 (exit $ac_status); } && {
12984 test -z "$ac_c_werror_flag" ||
12985 test ! -s conftest.err
ec6a6fbe
AK
12986 } && test -s conftest$ac_exeext && {
12987 test "$cross_compiling" = yes ||
12988 $as_test_x conftest$ac_exeext
12989 }; then
ad6254c5
AK
12990 ac_cv_lib_selinux_is_selinux_enabled=yes
12991else
ec6a6fbe 12992 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
12993sed 's/^/| /' conftest.$ac_ext >&5
12994
7a197a62 12995 ac_cv_lib_selinux_is_selinux_enabled=no
ad6254c5 12996fi
7a197a62 12997
ec6a6fbe 12998rm -rf conftest.dSYM
25fbec5b 12999rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 13000 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
13001LIBS=$ac_check_lib_save_LIBS
13002fi
ec6a6fbe
AK
13003{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
13004$as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
13005if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then
ad6254c5 13006
72b2cb61 13007
f8f6ec92
ZK
13008for ac_header in selinux/selinux.h
13009do
13010as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13011if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13012 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13013$as_echo_n "checking for $ac_header... " >&6; }
13014if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 13015 $as_echo_n "(cached) " >&6
f8f6ec92
ZK
13016fi
13017ac_res=`eval 'as_val=${'$as_ac_Header'}
13018 $as_echo "$as_val"'`
13019 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13020$as_echo "$ac_res" >&6; }
66e941e8 13021else
f8f6ec92
ZK
13022 # Is the header compilable?
13023{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13024$as_echo_n "checking $ac_header usability... " >&6; }
66e941e8
JM
13025cat >conftest.$ac_ext <<_ACEOF
13026/* confdefs.h. */
13027_ACEOF
13028cat confdefs.h >>conftest.$ac_ext
13029cat >>conftest.$ac_ext <<_ACEOF
13030/* end confdefs.h. */
f8f6ec92
ZK
13031$ac_includes_default
13032#include <$ac_header>
66e941e8 13033_ACEOF
f8f6ec92
ZK
13034rm -f conftest.$ac_objext
13035if { (ac_try="$ac_compile"
66e941e8
JM
13036case "(($ac_try" in
13037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13038 *) ac_try_echo=$ac_try;;
13039esac
ec6a6fbe
AK
13040eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13041$as_echo "$ac_try_echo") >&5
f8f6ec92 13042 (eval "$ac_compile") 2>conftest.er1
66e941e8
JM
13043 ac_status=$?
13044 grep -v '^ *+' conftest.er1 >conftest.err
13045 rm -f conftest.er1
13046 cat conftest.err >&5
ec6a6fbe 13047 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
13048 (exit $ac_status); } && {
13049 test -z "$ac_c_werror_flag" ||
13050 test ! -s conftest.err
f8f6ec92
ZK
13051 } && test -s conftest.$ac_objext; then
13052 ac_header_compiler=yes
13053else
13054 $as_echo "$as_me: failed program was:" >&5
13055sed 's/^/| /' conftest.$ac_ext >&5
13056
13057 ac_header_compiler=no
13058fi
13059
13060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13061{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13062$as_echo "$ac_header_compiler" >&6; }
13063
13064# Is the header present?
13065{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13066$as_echo_n "checking $ac_header presence... " >&6; }
13067cat >conftest.$ac_ext <<_ACEOF
13068/* confdefs.h. */
13069_ACEOF
13070cat confdefs.h >>conftest.$ac_ext
13071cat >>conftest.$ac_ext <<_ACEOF
13072/* end confdefs.h. */
13073#include <$ac_header>
13074_ACEOF
13075if { (ac_try="$ac_cpp conftest.$ac_ext"
13076case "(($ac_try" in
13077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13078 *) ac_try_echo=$ac_try;;
13079esac
13080eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13081$as_echo "$ac_try_echo") >&5
13082 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13083 ac_status=$?
13084 grep -v '^ *+' conftest.er1 >conftest.err
13085 rm -f conftest.er1
13086 cat conftest.err >&5
13087 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13088 (exit $ac_status); } >/dev/null && {
13089 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13090 test ! -s conftest.err
ec6a6fbe 13091 }; then
f8f6ec92 13092 ac_header_preproc=yes
66e941e8 13093else
ec6a6fbe 13094 $as_echo "$as_me: failed program was:" >&5
66e941e8
JM
13095sed 's/^/| /' conftest.$ac_ext >&5
13096
f8f6ec92
ZK
13097 ac_header_preproc=no
13098fi
13099
13100rm -f conftest.err conftest.$ac_ext
13101{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13102$as_echo "$ac_header_preproc" >&6; }
13103
13104# So? What about this header?
13105case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13106 yes:no: )
13107 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13108$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13109 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13110$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13111 ac_header_preproc=yes
13112 ;;
13113 no:yes:* )
13114 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13115$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13116 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13117$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13118 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13119$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13120 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13121$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13122 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13123$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13124 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13125$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
66e941e8 13126
f8f6ec92
ZK
13127 ;;
13128esac
13129{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13130$as_echo_n "checking for $ac_header... " >&6; }
13131if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13132 $as_echo_n "(cached) " >&6
13133else
13134 eval "$as_ac_Header=\$ac_header_preproc"
66e941e8 13135fi
f8f6ec92
ZK
13136ac_res=`eval 'as_val=${'$as_ac_Header'}
13137 $as_echo "$as_val"'`
13138 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13139$as_echo "$ac_res" >&6; }
66e941e8 13140
66e941e8 13141fi
f8f6ec92
ZK
13142as_val=`eval 'as_val=${'$as_ac_Header'}
13143 $as_echo "$as_val"'`
13144 if test "x$as_val" = x""yes; then
13145 cat >>confdefs.h <<_ACEOF
13146#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13147_ACEOF
13148
66e941e8 13149else
f8f6ec92 13150 hard_bailout
66e941e8 13151fi
f8f6ec92
ZK
13152
13153done
13154
13155
13156cat >>confdefs.h <<\_ACEOF
13157#define HAVE_SELINUX 1
13158_ACEOF
13159
13160 SELINUX_LIBS="-lselinux $SELINUX_LIBS"
f7f0854e 13161 SELINUX_PC="libselinux"
f8f6ec92
ZK
13162 HAVE_SELINUX=yes
13163else
13164
13165 { $as_echo "$as_me:$LINENO: WARNING: Disabling selinux" >&5
13166$as_echo "$as_me: WARNING: Disabling selinux" >&2;}
13167 SELINUX_LIBS=
f7f0854e 13168 SELINUX_PC=
f8f6ec92 13169 HAVE_SELINUX=no
66e941e8
JM
13170fi
13171
ad6254c5
AK
13172fi
13173
8b1a3214
AK
13174################################################################################
13175if test x$REALTIME = xyes; then
ec6a6fbe
AK
13176 { $as_echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
13177$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
8b1a3214 13178if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
ec6a6fbe 13179 $as_echo_n "(cached) " >&6
8b1a3214
AK
13180else
13181 ac_check_lib_save_LIBS=$LIBS
13182LIBS="-lrt $LIBS"
13183cat >conftest.$ac_ext <<_ACEOF
13184/* confdefs.h. */
13185_ACEOF
13186cat confdefs.h >>conftest.$ac_ext
13187cat >>conftest.$ac_ext <<_ACEOF
13188/* end confdefs.h. */
13189
7a197a62
AK
13190/* Override any GCC internal prototype to avoid an error.
13191 Use char because int might match the return type of a GCC
13192 builtin and then its argument prototype would still apply. */
8b1a3214
AK
13193#ifdef __cplusplus
13194extern "C"
13195#endif
8b1a3214
AK
13196char clock_gettime ();
13197int
13198main ()
13199{
7a197a62 13200return clock_gettime ();
8b1a3214
AK
13201 ;
13202 return 0;
13203}
13204_ACEOF
13205rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
13206if { (ac_try="$ac_link"
13207case "(($ac_try" in
13208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13209 *) ac_try_echo=$ac_try;;
13210esac
ec6a6fbe
AK
13211eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13212$as_echo "$ac_try_echo") >&5
7a197a62 13213 (eval "$ac_link") 2>conftest.er1
8b1a3214
AK
13214 ac_status=$?
13215 grep -v '^ *+' conftest.er1 >conftest.err
13216 rm -f conftest.er1
13217 cat conftest.err >&5
ec6a6fbe 13218 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
13219 (exit $ac_status); } && {
13220 test -z "$ac_c_werror_flag" ||
13221 test ! -s conftest.err
ec6a6fbe
AK
13222 } && test -s conftest$ac_exeext && {
13223 test "$cross_compiling" = yes ||
13224 $as_test_x conftest$ac_exeext
13225 }; then
8b1a3214
AK
13226 ac_cv_lib_rt_clock_gettime=yes
13227else
ec6a6fbe 13228 $as_echo "$as_me: failed program was:" >&5
8b1a3214
AK
13229sed 's/^/| /' conftest.$ac_ext >&5
13230
7a197a62 13231 ac_cv_lib_rt_clock_gettime=no
8b1a3214 13232fi
7a197a62 13233
ec6a6fbe 13234rm -rf conftest.dSYM
25fbec5b 13235rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8b1a3214
AK
13236 conftest$ac_exeext conftest.$ac_ext
13237LIBS=$ac_check_lib_save_LIBS
13238fi
ec6a6fbe
AK
13239{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
13240$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
13241if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then
8b1a3214
AK
13242 HAVE_REALTIME=yes
13243else
13244 HAVE_REALTIME=no
13245fi
13246
8b1a3214
AK
13247
13248 if test x$HAVE_REALTIME = xyes; then
13249
13250cat >>confdefs.h <<\_ACEOF
13251#define HAVE_REALTIME 1
13252_ACEOF
13253
13254 LIBS="-lrt $LIBS"
13255 else
ec6a6fbe
AK
13256 { $as_echo "$as_me:$LINENO: WARNING: Disabling realtime clock" >&5
13257$as_echo "$as_me: WARNING: Disabling realtime clock" >&2;}
8b1a3214
AK
13258 fi
13259fi
13260
ad6254c5
AK
13261################################################################################
13262
13263for ac_header in getopt.h
13264do
ec6a6fbe 13265as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 13266if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
13267 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13268$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 13269if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 13270 $as_echo_n "(cached) " >&6
ad6254c5 13271fi
ec6a6fbe
AK
13272ac_res=`eval 'as_val=${'$as_ac_Header'}
13273 $as_echo "$as_val"'`
13274 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13275$as_echo "$ac_res" >&6; }
ad6254c5
AK
13276else
13277 # Is the header compilable?
ec6a6fbe
AK
13278{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13279$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 13280cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
13281/* confdefs.h. */
13282_ACEOF
13283cat confdefs.h >>conftest.$ac_ext
13284cat >>conftest.$ac_ext <<_ACEOF
13285/* end confdefs.h. */
13286$ac_includes_default
13287#include <$ac_header>
13288_ACEOF
13289rm -f conftest.$ac_objext
7a197a62
AK
13290if { (ac_try="$ac_compile"
13291case "(($ac_try" in
13292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13293 *) ac_try_echo=$ac_try;;
13294esac
ec6a6fbe
AK
13295eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13296$as_echo "$ac_try_echo") >&5
7a197a62 13297 (eval "$ac_compile") 2>conftest.er1
ad6254c5 13298 ac_status=$?
8a2fc586
AK
13299 grep -v '^ *+' conftest.er1 >conftest.err
13300 rm -f conftest.er1
13301 cat conftest.err >&5
ec6a6fbe 13302 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
13303 (exit $ac_status); } && {
13304 test -z "$ac_c_werror_flag" ||
13305 test ! -s conftest.err
13306 } && test -s conftest.$ac_objext; then
ad6254c5
AK
13307 ac_header_compiler=yes
13308else
ec6a6fbe 13309 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
13310sed 's/^/| /' conftest.$ac_ext >&5
13311
7a197a62 13312 ac_header_compiler=no
ad6254c5 13313fi
7a197a62
AK
13314
13315rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
13316{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13317$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
13318
13319# Is the header present?
ec6a6fbe
AK
13320{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13321$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 13322cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
13323/* confdefs.h. */
13324_ACEOF
13325cat confdefs.h >>conftest.$ac_ext
13326cat >>conftest.$ac_ext <<_ACEOF
13327/* end confdefs.h. */
13328#include <$ac_header>
13329_ACEOF
7a197a62
AK
13330if { (ac_try="$ac_cpp conftest.$ac_ext"
13331case "(($ac_try" in
13332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13333 *) ac_try_echo=$ac_try;;
13334esac
ec6a6fbe
AK
13335eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13336$as_echo "$ac_try_echo") >&5
7a197a62 13337 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
13338 ac_status=$?
13339 grep -v '^ *+' conftest.er1 >conftest.err
13340 rm -f conftest.er1
13341 cat conftest.err >&5
ec6a6fbe 13342 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
13343 (exit $ac_status); } >/dev/null && {
13344 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13345 test ! -s conftest.err
13346 }; then
ad6254c5
AK
13347 ac_header_preproc=yes
13348else
ec6a6fbe 13349 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
13350sed 's/^/| /' conftest.$ac_ext >&5
13351
13352 ac_header_preproc=no
13353fi
7a197a62 13354
ad6254c5 13355rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
13356{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13357$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
13358
13359# So? What about this header?
8a2fc586
AK
13360case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13361 yes:no: )
ec6a6fbe
AK
13362 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13363$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13364 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13365$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 13366 ac_header_preproc=yes
ad6254c5 13367 ;;
8a2fc586 13368 no:yes:* )
ec6a6fbe
AK
13369 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13370$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13371 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13372$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13373 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13374$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13375 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13376$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13377 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13378$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13379 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13380$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 13381
ad6254c5
AK
13382 ;;
13383esac
ec6a6fbe
AK
13384{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13385$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 13386if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 13387 $as_echo_n "(cached) " >&6
ad6254c5 13388else
8a2fc586 13389 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 13390fi
ec6a6fbe
AK
13391ac_res=`eval 'as_val=${'$as_ac_Header'}
13392 $as_echo "$as_val"'`
13393 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13394$as_echo "$ac_res" >&6; }
ad6254c5
AK
13395
13396fi
ec6a6fbe
AK
13397as_val=`eval 'as_val=${'$as_ac_Header'}
13398 $as_echo "$as_val"'`
13399 if test "x$as_val" = x""yes; then
ad6254c5 13400 cat >>confdefs.h <<_ACEOF
ec6a6fbe 13401#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 13402_ACEOF
72b2cb61
AK
13403
13404cat >>confdefs.h <<\_ACEOF
13405#define HAVE_GETOPTLONG 1
13406_ACEOF
13407
ad6254c5
AK
13408fi
13409
13410done
13411
13412
13413################################################################################
06e459df 13414if test x$READLINE != xno; then
539f4a77
ZK
13415 lvm_saved_libs=$LIBS
13416 { $as_echo "$as_me:$LINENO: checking for library containing tgetent" >&5
13417$as_echo_n "checking for library containing tgetent... " >&6; }
13418if test "${ac_cv_search_tgetent+set}" = set; then
13419 $as_echo_n "(cached) " >&6
13420else
13421 ac_func_search_save_LIBS=$LIBS
13422cat >conftest.$ac_ext <<_ACEOF
13423/* confdefs.h. */
13424_ACEOF
13425cat confdefs.h >>conftest.$ac_ext
13426cat >>conftest.$ac_ext <<_ACEOF
13427/* end confdefs.h. */
bc1024f8 13428
539f4a77
ZK
13429/* Override any GCC internal prototype to avoid an error.
13430 Use char because int might match the return type of a GCC
13431 builtin and then its argument prototype would still apply. */
13432#ifdef __cplusplus
13433extern "C"
13434#endif
13435char tgetent ();
13436int
13437main ()
13438{
13439return tgetent ();
13440 ;
13441 return 0;
13442}
13443_ACEOF
13444for ac_lib in '' tinfo ncurses curses termcap termlib; do
13445 if test -z "$ac_lib"; then
13446 ac_res="none required"
13447 else
13448 ac_res=-l$ac_lib
13449 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13450 fi
13451 rm -f conftest.$ac_objext conftest$ac_exeext
13452if { (ac_try="$ac_link"
13453case "(($ac_try" in
13454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13455 *) ac_try_echo=$ac_try;;
13456esac
13457eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13458$as_echo "$ac_try_echo") >&5
13459 (eval "$ac_link") 2>conftest.er1
13460 ac_status=$?
13461 grep -v '^ *+' conftest.er1 >conftest.err
13462 rm -f conftest.er1
13463 cat conftest.err >&5
13464 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13465 (exit $ac_status); } && {
13466 test -z "$ac_c_werror_flag" ||
13467 test ! -s conftest.err
13468 } && test -s conftest$ac_exeext && {
13469 test "$cross_compiling" = yes ||
13470 $as_test_x conftest$ac_exeext
13471 }; then
13472 ac_cv_search_tgetent=$ac_res
13473else
13474 $as_echo "$as_me: failed program was:" >&5
13475sed 's/^/| /' conftest.$ac_ext >&5
13476
13477
13478fi
13479
13480rm -rf conftest.dSYM
13481rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13482 conftest$ac_exeext
13483 if test "${ac_cv_search_tgetent+set}" = set; then
13484 break
13485fi
13486done
13487if test "${ac_cv_search_tgetent+set}" = set; then
13488 :
13489else
13490 ac_cv_search_tgetent=no
13491fi
13492rm conftest.$ac_ext
13493LIBS=$ac_func_search_save_LIBS
13494fi
13495{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
13496$as_echo "$ac_cv_search_tgetent" >&6; }
13497ac_res=$ac_cv_search_tgetent
13498if test "$ac_res" != no; then
13499 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13500 READLINE_LIBS=$ac_cv_search_tgetent
13501else
13502
13503 if test "$READLINE" = yes; then
13504 { { $as_echo "$as_me:$LINENO: error: termcap could not be found which is required for the
13505--enable-readline option (which is enabled by default). Either disable readline
13506support with --disable-readline or download and install termcap from:
13507 ftp.gnu.org/gnu/termcap
13508Note: if you are using precompiled packages you will also need the development
13509 package as well (which may be called termcap-devel or something similar).
13510Note: (n)curses also seems to work as a substitute for termcap. This was
13511 not found either - but you could try installing that as well." >&5
13512$as_echo "$as_me: error: termcap could not be found which is required for the
13513--enable-readline option (which is enabled by default). Either disable readline
13514support with --disable-readline or download and install termcap from:
13515 ftp.gnu.org/gnu/termcap
13516Note: if you are using precompiled packages you will also need the development
13517 package as well (which may be called termcap-devel or something similar).
13518Note: (n)curses also seems to work as a substitute for termcap. This was
13519 not found either - but you could try installing that as well." >&2;}
13520 { (exit 1); exit 1; }; }
13521 fi
13522fi
13523
13524 { $as_echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
ec6a6fbe 13525$as_echo_n "checking for readline in -lreadline... " >&6; }
ad6254c5 13526if test "${ac_cv_lib_readline_readline+set}" = set; then
ec6a6fbe 13527 $as_echo_n "(cached) " >&6
ad6254c5
AK
13528else
13529 ac_check_lib_save_LIBS=$LIBS
13530LIBS="-lreadline $LIBS"
13531cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
13532/* confdefs.h. */
13533_ACEOF
13534cat confdefs.h >>conftest.$ac_ext
13535cat >>conftest.$ac_ext <<_ACEOF
13536/* end confdefs.h. */
13537
7a197a62
AK
13538/* Override any GCC internal prototype to avoid an error.
13539 Use char because int might match the return type of a GCC
13540 builtin and then its argument prototype would still apply. */
ad6254c5
AK
13541#ifdef __cplusplus
13542extern "C"
13543#endif
ad6254c5
AK
13544char readline ();
13545int
13546main ()
13547{
7a197a62 13548return readline ();
ad6254c5
AK
13549 ;
13550 return 0;
13551}
13552_ACEOF
13553rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
13554if { (ac_try="$ac_link"
13555case "(($ac_try" in
13556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13557 *) ac_try_echo=$ac_try;;
13558esac
ec6a6fbe
AK
13559eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13560$as_echo "$ac_try_echo") >&5
7a197a62 13561 (eval "$ac_link") 2>conftest.er1
ad6254c5 13562 ac_status=$?
8a2fc586
AK
13563 grep -v '^ *+' conftest.er1 >conftest.err
13564 rm -f conftest.er1
13565 cat conftest.err >&5
ec6a6fbe 13566 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
13567 (exit $ac_status); } && {
13568 test -z "$ac_c_werror_flag" ||
13569 test ! -s conftest.err
ec6a6fbe
AK
13570 } && test -s conftest$ac_exeext && {
13571 test "$cross_compiling" = yes ||
13572 $as_test_x conftest$ac_exeext
13573 }; then
ad6254c5
AK
13574 ac_cv_lib_readline_readline=yes
13575else
ec6a6fbe 13576 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
13577sed 's/^/| /' conftest.$ac_ext >&5
13578
7a197a62 13579 ac_cv_lib_readline_readline=no
ad6254c5 13580fi
7a197a62 13581
ec6a6fbe 13582rm -rf conftest.dSYM
25fbec5b 13583rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 13584 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
13585LIBS=$ac_check_lib_save_LIBS
13586fi
ec6a6fbe
AK
13587{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
13588$as_echo "$ac_cv_lib_readline_readline" >&6; }
13589if test "x$ac_cv_lib_readline_readline" = x""yes; then
539f4a77
ZK
13590
13591
13592cat >>confdefs.h <<\_ACEOF
13593#define READLINE_SUPPORT 1
bc1024f8
JM
13594_ACEOF
13595
539f4a77
ZK
13596 LIBS=$lvm_saved_libs
13597 { $as_echo "$as_me:$LINENO: checking for rl_line_buffer in -lreadline" >&5
13598$as_echo_n "checking for rl_line_buffer in -lreadline... " >&6; }
13599if test "${ac_cv_lib_readline_rl_line_buffer+set}" = set; then
13600 $as_echo_n "(cached) " >&6
13601else
13602 ac_check_lib_save_LIBS=$LIBS
13603LIBS="-lreadline $LIBS"
13604cat >conftest.$ac_ext <<_ACEOF
13605/* confdefs.h. */
13606_ACEOF
13607cat confdefs.h >>conftest.$ac_ext
13608cat >>conftest.$ac_ext <<_ACEOF
13609/* end confdefs.h. */
bc1024f8 13610
539f4a77
ZK
13611/* Override any GCC internal prototype to avoid an error.
13612 Use char because int might match the return type of a GCC
13613 builtin and then its argument prototype would still apply. */
13614#ifdef __cplusplus
13615extern "C"
13616#endif
13617char rl_line_buffer ();
13618int
13619main ()
13620{
13621return rl_line_buffer ();
13622 ;
13623 return 0;
13624}
13625_ACEOF
13626rm -f conftest.$ac_objext conftest$ac_exeext
13627if { (ac_try="$ac_link"
13628case "(($ac_try" in
13629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13630 *) ac_try_echo=$ac_try;;
13631esac
13632eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13633$as_echo "$ac_try_echo") >&5
13634 (eval "$ac_link") 2>conftest.er1
13635 ac_status=$?
13636 grep -v '^ *+' conftest.er1 >conftest.err
13637 rm -f conftest.er1
13638 cat conftest.err >&5
13639 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13640 (exit $ac_status); } && {
13641 test -z "$ac_c_werror_flag" ||
13642 test ! -s conftest.err
13643 } && test -s conftest$ac_exeext && {
13644 test "$cross_compiling" = yes ||
13645 $as_test_x conftest$ac_exeext
13646 }; then
13647 ac_cv_lib_readline_rl_line_buffer=yes
ad6254c5 13648else
539f4a77
ZK
13649 $as_echo "$as_me: failed program was:" >&5
13650sed 's/^/| /' conftest.$ac_ext >&5
13651
13652 ac_cv_lib_readline_rl_line_buffer=no
06e459df
JM
13653fi
13654
539f4a77
ZK
13655rm -rf conftest.dSYM
13656rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13657 conftest$ac_exeext conftest.$ac_ext
13658LIBS=$ac_check_lib_save_LIBS
13659fi
13660{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_line_buffer" >&5
13661$as_echo "$ac_cv_lib_readline_rl_line_buffer" >&6; }
13662if test "x$ac_cv_lib_readline_rl_line_buffer" = x""yes; then
13663 READLINE_LIBS="-lreadline"
13664else
13665
13666 { $as_echo "$as_me:$LINENO: result: linking -lreadline with $READLINE_LIBS needed" >&5
13667$as_echo "linking -lreadline with $READLINE_LIBS needed" >&6; }
13668 READLINE_LIBS="-lreadline $READLINE_LIBS"
13669
13670fi
13671
13672else
13673
13674 READLINE_LIBS=
13675 if test "$READLINE" = yes; then
13676 { { $as_echo "$as_me:$LINENO: error: GNU Readline could not be found which is required for the
ad6254c5
AK
13677--enable-readline option (which is enabled by default). Either disable readline
13678support with --disable-readline or download and install readline from:
13679 ftp.gnu.org/gnu/readline
13680Note: if you are using precompiled packages you will also need the development
539f4a77 13681package as well (which may be called readline-devel or something similar)." >&5
ec6a6fbe 13682$as_echo "$as_me: error: GNU Readline could not be found which is required for the
ad6254c5
AK
13683--enable-readline option (which is enabled by default). Either disable readline
13684support with --disable-readline or download and install readline from:
13685 ftp.gnu.org/gnu/readline
13686Note: if you are using precompiled packages you will also need the development
539f4a77 13687package as well (which may be called readline-devel or something similar)." >&2;}
ad6254c5 13688 { (exit 1); exit 1; }; }
539f4a77
ZK
13689 fi
13690fi
13691
13692 LIBS="$READLINE_LIBS $lvm_saved_libs"
bc1024f8
JM
13693
13694for ac_func in rl_completion_matches
13695do
ec6a6fbe
AK
13696as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13697{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13698$as_echo_n "checking for $ac_func... " >&6; }
bc1024f8 13699if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 13700 $as_echo_n "(cached) " >&6
ad6254c5
AK
13701else
13702 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
13703/* confdefs.h. */
13704_ACEOF
13705cat confdefs.h >>conftest.$ac_ext
13706cat >>conftest.$ac_ext <<_ACEOF
13707/* end confdefs.h. */
bc1024f8 13708/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8a2fc586 13709 For example, HP-UX 11i <limits.h> declares gettimeofday. */
bc1024f8 13710#define $ac_func innocuous_$ac_func
8a2fc586 13711
ad6254c5 13712/* System header to define __stub macros and hopefully few prototypes,
bc1024f8 13713 which can conflict with char $ac_func (); below.
ad6254c5
AK
13714 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13715 <limits.h> exists even on freestanding compilers. */
8a2fc586 13716
ad6254c5
AK
13717#ifdef __STDC__
13718# include <limits.h>
13719#else
13720# include <assert.h>
13721#endif
8a2fc586 13722
bc1024f8 13723#undef $ac_func
8a2fc586 13724
7a197a62
AK
13725/* Override any GCC internal prototype to avoid an error.
13726 Use char because int might match the return type of a GCC
13727 builtin and then its argument prototype would still apply. */
ad6254c5
AK
13728#ifdef __cplusplus
13729extern "C"
ad6254c5 13730#endif
bc1024f8 13731char $ac_func ();
ad6254c5
AK
13732/* The GNU C library defines this for functions which it implements
13733 to always fail with ENOSYS. Some functions are actually named
13734 something starting with __ and the normal name is an alias. */
bc1024f8 13735#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 13736choke me
ad6254c5
AK
13737#endif
13738
13739int
13740main ()
13741{
bc1024f8 13742return $ac_func ();
ad6254c5
AK
13743 ;
13744 return 0;
13745}
13746_ACEOF
13747rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
13748if { (ac_try="$ac_link"
13749case "(($ac_try" in
13750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13751 *) ac_try_echo=$ac_try;;
13752esac
ec6a6fbe
AK
13753eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13754$as_echo "$ac_try_echo") >&5
7a197a62 13755 (eval "$ac_link") 2>conftest.er1
ad6254c5 13756 ac_status=$?
8a2fc586
AK
13757 grep -v '^ *+' conftest.er1 >conftest.err
13758 rm -f conftest.er1
13759 cat conftest.err >&5
ec6a6fbe 13760 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
13761 (exit $ac_status); } && {
13762 test -z "$ac_c_werror_flag" ||
13763 test ! -s conftest.err
ec6a6fbe
AK
13764 } && test -s conftest$ac_exeext && {
13765 test "$cross_compiling" = yes ||
13766 $as_test_x conftest$ac_exeext
13767 }; then
bc1024f8 13768 eval "$as_ac_var=yes"
ad6254c5 13769else
ec6a6fbe 13770 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
13771sed 's/^/| /' conftest.$ac_ext >&5
13772
bc1024f8 13773 eval "$as_ac_var=no"
ad6254c5 13774fi
7a197a62 13775
ec6a6fbe 13776rm -rf conftest.dSYM
25fbec5b 13777rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 13778 conftest$ac_exeext conftest.$ac_ext
ad6254c5 13779fi
ec6a6fbe
AK
13780ac_res=`eval 'as_val=${'$as_ac_var'}
13781 $as_echo "$as_val"'`
13782 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13783$as_echo "$ac_res" >&6; }
13784as_val=`eval 'as_val=${'$as_ac_var'}
13785 $as_echo "$as_val"'`
13786 if test "x$as_val" = x""yes; then
bc1024f8 13787 cat >>confdefs.h <<_ACEOF
ec6a6fbe 13788#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
72b2cb61
AK
13789_ACEOF
13790
13791fi
bc1024f8 13792done
ad6254c5 13793
539f4a77 13794 LIBS=$lvm_saved_libs
ad6254c5
AK
13795fi
13796
13797################################################################################
ec6a6fbe
AK
13798{ $as_echo "$as_me:$LINENO: checking whether to enable internationalisation" >&5
13799$as_echo_n "checking whether to enable internationalisation... " >&6; }
7a197a62 13800# Check whether --enable-nls was given.
ad6254c5 13801if test "${enable_nls+set}" = set; then
7a197a62 13802 enableval=$enable_nls; INTL=$enableval
ad6254c5
AK
13803else
13804 INTL=no
7a197a62
AK
13805fi
13806
ec6a6fbe
AK
13807{ $as_echo "$as_me:$LINENO: result: $INTL" >&5
13808$as_echo "$INTL" >&6; }
ad6254c5
AK
13809
13810if test x$INTL = xyes; then
93bd259b 13811# FIXME - Move this - can be device-mapper too
ad6254c5
AK
13812 INTL_PACKAGE="lvm2"
13813 # Extract the first word of "msgfmt", so it can be a program name with args.
13814set dummy msgfmt; ac_word=$2
ec6a6fbe
AK
13815{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13816$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 13817if test "${ac_cv_path_MSGFMT+set}" = set; then
ec6a6fbe 13818 $as_echo_n "(cached) " >&6
ad6254c5
AK
13819else
13820 case $MSGFMT in
13821 [\\/]* | ?:[\\/]*)
13822 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
13823 ;;
13824 *)
13825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13826for as_dir in $PATH
13827do
13828 IFS=$as_save_IFS
13829 test -z "$as_dir" && as_dir=.
13830 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 13831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 13832 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 13833 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
13834 break 2
13835 fi
13836done
13837done
7a197a62 13838IFS=$as_save_IFS
ad6254c5
AK
13839
13840 ;;
13841esac
13842fi
13843MSGFMT=$ac_cv_path_MSGFMT
ad6254c5 13844if test -n "$MSGFMT"; then
ec6a6fbe
AK
13845 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
13846$as_echo "$MSGFMT" >&6; }
ad6254c5 13847else
ec6a6fbe
AK
13848 { $as_echo "$as_me:$LINENO: result: no" >&5
13849$as_echo "no" >&6; }
ad6254c5
AK
13850fi
13851
7a197a62 13852
ad6254c5 13853 if [ "x$MSGFMT" == x ];
ec6a6fbe 13854 then { { $as_echo "$as_me:$LINENO: error: msgfmt not found in path $PATH
ad6254c5 13855 " >&5
ec6a6fbe 13856$as_echo "$as_me: error: msgfmt not found in path $PATH
ad6254c5
AK
13857 " >&2;}
13858 { (exit 1); exit 1; }; }
13859 fi;
13860
13861
7a197a62 13862# Check whether --with-localedir was given.
ad6254c5 13863if test "${with_localedir+set}" = set; then
7a197a62 13864 withval=$with_localedir; LOCALEDIR="$withval"
ad6254c5
AK
13865else
13866 LOCALEDIR='${prefix}/share/locale'
7a197a62
AK
13867fi
13868
ad6254c5
AK
13869fi
13870
13871################################################################################
13872
7a197a62 13873# Check whether --with-confdir was given.
ad6254c5 13874if test "${with_confdir+set}" = set; then
7a197a62 13875 withval=$with_confdir; CONFDIR="$withval"
ad6254c5
AK
13876else
13877 CONFDIR='/etc'
7a197a62
AK
13878fi
13879
ad6254c5
AK
13880
13881
7a197a62 13882# Check whether --with-staticdir was given.
ad6254c5 13883if test "${with_staticdir+set}" = set; then
7a197a62 13884 withval=$with_staticdir; STATICDIR="$withval"
ad6254c5
AK
13885else
13886 STATICDIR='${exec_prefix}/sbin'
7a197a62 13887fi
ad6254c5 13888
33f732c5 13889
7a197a62 13890
68f2de6d
AK
13891# Check whether --with-usrlibdir was given.
13892if test "${with_usrlibdir+set}" = set; then
13893 withval=$with_usrlibdir; usrlibdir="$withval"
13894else
13895 usrlibdir='${prefix}/lib'
13896fi
13897
13898
13899
13900# Check whether --with-usrsbindir was given.
13901if test "${with_usrsbindir+set}" = set; then
13902 withval=$with_usrsbindir; usrsbindir="$withval"
13903else
13904 usrsbindir='${prefix}/sbin'
13905fi
13906
13907
a5f46f6a
AK
13908################################################################################
13909
13910# Check whether --with-udev_prefix was given.
13911if test "${with_udev_prefix+set}" = set; then
13912 withval=$with_udev_prefix; udev_prefix="$withval"
13913else
13914 udev_prefix='${exec_prefix}'
13915fi
13916
13917
78ce7acc
AK
13918
13919# Check whether --with-udevdir was given.
13920if test "${with_udevdir+set}" = set; then
13921 withval=$with_udevdir; udevdir="$withval"
13922else
13923 udevdir='${udev_prefix}/lib/udev/rules.d'
13924fi
13925
a5f46f6a 13926
ad6254c5
AK
13927################################################################################
13928if test x$READLINE = xyes; then
13929
13930
13931for ac_header in readline/readline.h readline/history.h
13932do
ec6a6fbe 13933as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 13934if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
13935 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13936$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 13937if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 13938 $as_echo_n "(cached) " >&6
ad6254c5 13939fi
ec6a6fbe
AK
13940ac_res=`eval 'as_val=${'$as_ac_Header'}
13941 $as_echo "$as_val"'`
13942 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13943$as_echo "$ac_res" >&6; }
ad6254c5
AK
13944else
13945 # Is the header compilable?
ec6a6fbe
AK
13946{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13947$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 13948cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
13949/* confdefs.h. */
13950_ACEOF
13951cat confdefs.h >>conftest.$ac_ext
13952cat >>conftest.$ac_ext <<_ACEOF
13953/* end confdefs.h. */
13954$ac_includes_default
13955#include <$ac_header>
13956_ACEOF
13957rm -f conftest.$ac_objext
7a197a62
AK
13958if { (ac_try="$ac_compile"
13959case "(($ac_try" in
13960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13961 *) ac_try_echo=$ac_try;;
13962esac
ec6a6fbe
AK
13963eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13964$as_echo "$ac_try_echo") >&5
7a197a62 13965 (eval "$ac_compile") 2>conftest.er1
ad6254c5 13966 ac_status=$?
8a2fc586
AK
13967 grep -v '^ *+' conftest.er1 >conftest.err
13968 rm -f conftest.er1
13969 cat conftest.err >&5
ec6a6fbe 13970 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
13971 (exit $ac_status); } && {
13972 test -z "$ac_c_werror_flag" ||
13973 test ! -s conftest.err
13974 } && test -s conftest.$ac_objext; then
ad6254c5
AK
13975 ac_header_compiler=yes
13976else
ec6a6fbe 13977 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
13978sed 's/^/| /' conftest.$ac_ext >&5
13979
7a197a62 13980 ac_header_compiler=no
ad6254c5 13981fi
7a197a62
AK
13982
13983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
13984{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13985$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
13986
13987# Is the header present?
ec6a6fbe
AK
13988{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13989$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 13990cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
13991/* confdefs.h. */
13992_ACEOF
13993cat confdefs.h >>conftest.$ac_ext
13994cat >>conftest.$ac_ext <<_ACEOF
13995/* end confdefs.h. */
13996#include <$ac_header>
13997_ACEOF
7a197a62
AK
13998if { (ac_try="$ac_cpp conftest.$ac_ext"
13999case "(($ac_try" in
14000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14001 *) ac_try_echo=$ac_try;;
14002esac
ec6a6fbe
AK
14003eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14004$as_echo "$ac_try_echo") >&5
7a197a62 14005 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
14006 ac_status=$?
14007 grep -v '^ *+' conftest.er1 >conftest.err
14008 rm -f conftest.er1
14009 cat conftest.err >&5
ec6a6fbe 14010 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14011 (exit $ac_status); } >/dev/null && {
14012 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14013 test ! -s conftest.err
14014 }; then
ad6254c5
AK
14015 ac_header_preproc=yes
14016else
ec6a6fbe 14017 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14018sed 's/^/| /' conftest.$ac_ext >&5
14019
14020 ac_header_preproc=no
14021fi
7a197a62 14022
ad6254c5 14023rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
14024{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14025$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
14026
14027# So? What about this header?
8a2fc586
AK
14028case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14029 yes:no: )
ec6a6fbe
AK
14030 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14031$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14032 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14033$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 14034 ac_header_preproc=yes
ad6254c5 14035 ;;
8a2fc586 14036 no:yes:* )
ec6a6fbe
AK
14037 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14038$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14039 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14040$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14041 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14042$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14043 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14044$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14045 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14046$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14047 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14048$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 14049
ad6254c5
AK
14050 ;;
14051esac
ec6a6fbe
AK
14052{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14053$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 14054if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 14055 $as_echo_n "(cached) " >&6
ad6254c5 14056else
8a2fc586 14057 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 14058fi
ec6a6fbe
AK
14059ac_res=`eval 'as_val=${'$as_ac_Header'}
14060 $as_echo "$as_val"'`
14061 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14062$as_echo "$ac_res" >&6; }
ad6254c5
AK
14063
14064fi
ec6a6fbe
AK
14065as_val=`eval 'as_val=${'$as_ac_Header'}
14066 $as_echo "$as_val"'`
14067 if test "x$as_val" = x""yes; then
ad6254c5 14068 cat >>confdefs.h <<_ACEOF
ec6a6fbe 14069#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
14070_ACEOF
14071
14072else
ec6a6fbe
AK
14073 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
14074$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5
AK
14075 { (exit 1); exit 1; }; }
14076fi
14077
14078done
14079
14080fi
14081
5c7fc7c4 14082if test x$CLVMD != xnone; then
ad6254c5
AK
14083
14084
14085
14086
14087
14088
14089
14090
14091
14092
14093for 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
14094do
ec6a6fbe 14095as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 14096if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
14097 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14098$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 14099if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 14100 $as_echo_n "(cached) " >&6
ad6254c5 14101fi
ec6a6fbe
AK
14102ac_res=`eval 'as_val=${'$as_ac_Header'}
14103 $as_echo "$as_val"'`
14104 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14105$as_echo "$ac_res" >&6; }
ad6254c5
AK
14106else
14107 # Is the header compilable?
ec6a6fbe
AK
14108{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14109$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 14110cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14111/* confdefs.h. */
14112_ACEOF
14113cat confdefs.h >>conftest.$ac_ext
14114cat >>conftest.$ac_ext <<_ACEOF
14115/* end confdefs.h. */
14116$ac_includes_default
14117#include <$ac_header>
14118_ACEOF
14119rm -f conftest.$ac_objext
7a197a62
AK
14120if { (ac_try="$ac_compile"
14121case "(($ac_try" in
14122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14123 *) ac_try_echo=$ac_try;;
14124esac
ec6a6fbe
AK
14125eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14126$as_echo "$ac_try_echo") >&5
7a197a62 14127 (eval "$ac_compile") 2>conftest.er1
ad6254c5 14128 ac_status=$?
8a2fc586
AK
14129 grep -v '^ *+' conftest.er1 >conftest.err
14130 rm -f conftest.er1
14131 cat conftest.err >&5
ec6a6fbe 14132 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14133 (exit $ac_status); } && {
14134 test -z "$ac_c_werror_flag" ||
14135 test ! -s conftest.err
14136 } && test -s conftest.$ac_objext; then
ad6254c5
AK
14137 ac_header_compiler=yes
14138else
ec6a6fbe 14139 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14140sed 's/^/| /' conftest.$ac_ext >&5
14141
7a197a62 14142 ac_header_compiler=no
ad6254c5 14143fi
7a197a62
AK
14144
14145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
14146{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14147$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
14148
14149# Is the header present?
ec6a6fbe
AK
14150{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14151$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 14152cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14153/* confdefs.h. */
14154_ACEOF
14155cat confdefs.h >>conftest.$ac_ext
14156cat >>conftest.$ac_ext <<_ACEOF
14157/* end confdefs.h. */
14158#include <$ac_header>
14159_ACEOF
7a197a62
AK
14160if { (ac_try="$ac_cpp conftest.$ac_ext"
14161case "(($ac_try" in
14162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14163 *) ac_try_echo=$ac_try;;
14164esac
ec6a6fbe
AK
14165eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14166$as_echo "$ac_try_echo") >&5
7a197a62 14167 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
14168 ac_status=$?
14169 grep -v '^ *+' conftest.er1 >conftest.err
14170 rm -f conftest.er1
14171 cat conftest.err >&5
ec6a6fbe 14172 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14173 (exit $ac_status); } >/dev/null && {
14174 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14175 test ! -s conftest.err
14176 }; then
ad6254c5
AK
14177 ac_header_preproc=yes
14178else
ec6a6fbe 14179 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14180sed 's/^/| /' conftest.$ac_ext >&5
14181
14182 ac_header_preproc=no
14183fi
7a197a62 14184
ad6254c5 14185rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
14186{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14187$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
14188
14189# So? What about this header?
8a2fc586
AK
14190case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14191 yes:no: )
ec6a6fbe
AK
14192 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14193$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14194 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14195$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 14196 ac_header_preproc=yes
ad6254c5 14197 ;;
8a2fc586 14198 no:yes:* )
ec6a6fbe
AK
14199 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14200$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14201 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14202$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14203 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14204$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14205 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14206$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14207 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14208$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14209 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14210$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 14211
ad6254c5
AK
14212 ;;
14213esac
ec6a6fbe
AK
14214{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14215$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 14216if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 14217 $as_echo_n "(cached) " >&6
ad6254c5 14218else
8a2fc586 14219 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 14220fi
ec6a6fbe
AK
14221ac_res=`eval 'as_val=${'$as_ac_Header'}
14222 $as_echo "$as_val"'`
14223 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14224$as_echo "$ac_res" >&6; }
ad6254c5
AK
14225
14226fi
ec6a6fbe
AK
14227as_val=`eval 'as_val=${'$as_ac_Header'}
14228 $as_echo "$as_val"'`
14229 if test "x$as_val" = x""yes; then
ad6254c5 14230 cat >>confdefs.h <<_ACEOF
ec6a6fbe 14231#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
14232_ACEOF
14233
14234else
ec6a6fbe
AK
14235 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
14236$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 14237 { (exit 1); exit 1; }; }
795ca3e5
AK
14238fi
14239
ad6254c5
AK
14240done
14241
14242
795ca3e5 14243
8106cdd5 14244
ad6254c5
AK
14245
14246
14247for ac_func in dup2 getmntent memmove select socket
14248do
ec6a6fbe
AK
14249as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14250{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14251$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 14252if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 14253 $as_echo_n "(cached) " >&6
795ca3e5 14254else
ad6254c5 14255 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14256/* confdefs.h. */
14257_ACEOF
14258cat confdefs.h >>conftest.$ac_ext
14259cat >>conftest.$ac_ext <<_ACEOF
14260/* end confdefs.h. */
8a2fc586
AK
14261/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14262 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14263#define $ac_func innocuous_$ac_func
14264
795ca3e5 14265/* System header to define __stub macros and hopefully few prototypes,
ad6254c5
AK
14266 which can conflict with char $ac_func (); below.
14267 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14268 <limits.h> exists even on freestanding compilers. */
8a2fc586 14269
ad6254c5
AK
14270#ifdef __STDC__
14271# include <limits.h>
14272#else
14273# include <assert.h>
14274#endif
8a2fc586
AK
14275
14276#undef $ac_func
14277
7a197a62
AK
14278/* Override any GCC internal prototype to avoid an error.
14279 Use char because int might match the return type of a GCC
14280 builtin and then its argument prototype would still apply. */
ad6254c5
AK
14281#ifdef __cplusplus
14282extern "C"
ad6254c5 14283#endif
ad6254c5 14284char $ac_func ();
795ca3e5
AK
14285/* The GNU C library defines this for functions which it implements
14286 to always fail with ENOSYS. Some functions are actually named
14287 something starting with __ and the normal name is an alias. */
7a197a62 14288#if defined __stub_$ac_func || defined __stub___$ac_func
795ca3e5 14289choke me
795ca3e5
AK
14290#endif
14291
ad6254c5
AK
14292int
14293main ()
14294{
7a197a62 14295return $ac_func ();
ad6254c5
AK
14296 ;
14297 return 0;
14298}
14299_ACEOF
14300rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
14301if { (ac_try="$ac_link"
14302case "(($ac_try" in
14303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14304 *) ac_try_echo=$ac_try;;
14305esac
ec6a6fbe
AK
14306eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14307$as_echo "$ac_try_echo") >&5
7a197a62 14308 (eval "$ac_link") 2>conftest.er1
ad6254c5 14309 ac_status=$?
8a2fc586
AK
14310 grep -v '^ *+' conftest.er1 >conftest.err
14311 rm -f conftest.er1
14312 cat conftest.err >&5
ec6a6fbe 14313 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14314 (exit $ac_status); } && {
14315 test -z "$ac_c_werror_flag" ||
14316 test ! -s conftest.err
ec6a6fbe
AK
14317 } && test -s conftest$ac_exeext && {
14318 test "$cross_compiling" = yes ||
14319 $as_test_x conftest$ac_exeext
14320 }; then
ad6254c5 14321 eval "$as_ac_var=yes"
795ca3e5 14322else
ec6a6fbe 14323 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14324sed 's/^/| /' conftest.$ac_ext >&5
14325
7a197a62 14326 eval "$as_ac_var=no"
80992638 14327fi
7a197a62 14328
ec6a6fbe 14329rm -rf conftest.dSYM
25fbec5b 14330rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 14331 conftest$ac_exeext conftest.$ac_ext
795ca3e5 14332fi
ec6a6fbe
AK
14333ac_res=`eval 'as_val=${'$as_ac_var'}
14334 $as_echo "$as_val"'`
14335 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14336$as_echo "$ac_res" >&6; }
14337as_val=`eval 'as_val=${'$as_ac_var'}
14338 $as_echo "$as_val"'`
14339 if test "x$as_val" = x""yes; then
ad6254c5 14340 cat >>confdefs.h <<_ACEOF
ec6a6fbe 14341#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5 14342_ACEOF
80992638
AK
14343
14344else
ec6a6fbe
AK
14345 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
14346$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 14347 { (exit 1); exit 1; }; }
8106cdd5 14348fi
ad6254c5 14349done
795ca3e5 14350
25fbec5b
AK
14351 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
14352# -lseq on Dynix/PTX, -lgen on Unixware.
ec6a6fbe
AK
14353{ $as_echo "$as_me:$LINENO: checking for library containing getmntent" >&5
14354$as_echo_n "checking for library containing getmntent... " >&6; }
25fbec5b 14355if test "${ac_cv_search_getmntent+set}" = set; then
ec6a6fbe 14356 $as_echo_n "(cached) " >&6
25fbec5b
AK
14357else
14358 ac_func_search_save_LIBS=$LIBS
14359cat >conftest.$ac_ext <<_ACEOF
14360/* confdefs.h. */
14361_ACEOF
14362cat confdefs.h >>conftest.$ac_ext
14363cat >>conftest.$ac_ext <<_ACEOF
14364/* end confdefs.h. */
80992638 14365
7a197a62
AK
14366/* Override any GCC internal prototype to avoid an error.
14367 Use char because int might match the return type of a GCC
ad6254c5 14368 builtin and then its argument prototype would still apply. */
ad6254c5
AK
14369#ifdef __cplusplus
14370extern "C"
14371#endif
25fbec5b 14372char getmntent ();
ad6254c5
AK
14373int
14374main ()
14375{
25fbec5b 14376return getmntent ();
ad6254c5
AK
14377 ;
14378 return 0;
14379}
14380_ACEOF
25fbec5b
AK
14381for ac_lib in '' sun seq gen; do
14382 if test -z "$ac_lib"; then
14383 ac_res="none required"
14384 else
14385 ac_res=-l$ac_lib
14386 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14387 fi
14388 rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
14389if { (ac_try="$ac_link"
14390case "(($ac_try" in
14391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14392 *) ac_try_echo=$ac_try;;
14393esac
ec6a6fbe
AK
14394eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14395$as_echo "$ac_try_echo") >&5
7a197a62 14396 (eval "$ac_link") 2>conftest.er1
ad6254c5 14397 ac_status=$?
8a2fc586
AK
14398 grep -v '^ *+' conftest.er1 >conftest.err
14399 rm -f conftest.er1
14400 cat conftest.err >&5
ec6a6fbe 14401 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14402 (exit $ac_status); } && {
14403 test -z "$ac_c_werror_flag" ||
14404 test ! -s conftest.err
ec6a6fbe
AK
14405 } && test -s conftest$ac_exeext && {
14406 test "$cross_compiling" = yes ||
14407 $as_test_x conftest$ac_exeext
14408 }; then
25fbec5b 14409 ac_cv_search_getmntent=$ac_res
80992638 14410else
ec6a6fbe 14411 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14412sed 's/^/| /' conftest.$ac_ext >&5
14413
25fbec5b 14414
795ca3e5
AK
14415fi
14416
ec6a6fbe 14417rm -rf conftest.dSYM
25fbec5b
AK
14418rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14419 conftest$ac_exeext
14420 if test "${ac_cv_search_getmntent+set}" = set; then
14421 break
795ca3e5 14422fi
25fbec5b
AK
14423done
14424if test "${ac_cv_search_getmntent+set}" = set; then
14425 :
14426else
14427 ac_cv_search_getmntent=no
14428fi
14429rm conftest.$ac_ext
14430LIBS=$ac_func_search_save_LIBS
14431fi
ec6a6fbe
AK
14432{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
14433$as_echo "$ac_cv_search_getmntent" >&6; }
25fbec5b
AK
14434ac_res=$ac_cv_search_getmntent
14435if test "$ac_res" != no; then
14436 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14437 ac_cv_func_getmntent=yes
14438
14439cat >>confdefs.h <<\_ACEOF
9c961554 14440#define HAVE_GETMNTENT 1
ad6254c5 14441_ACEOF
795ca3e5 14442
25fbec5b
AK
14443else
14444 ac_cv_func_getmntent=no
795ca3e5 14445fi
795ca3e5
AK
14446
14447
ad6254c5
AK
14448# AC_FUNC_REALLOC
14449
14450
14451for ac_header in sys/select.h sys/socket.h
14452do
ec6a6fbe 14453as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 14454if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
14455 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14456$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 14457if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 14458 $as_echo_n "(cached) " >&6
ad6254c5 14459fi
ec6a6fbe
AK
14460ac_res=`eval 'as_val=${'$as_ac_Header'}
14461 $as_echo "$as_val"'`
14462 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14463$as_echo "$ac_res" >&6; }
795ca3e5 14464else
ad6254c5 14465 # Is the header compilable?
ec6a6fbe
AK
14466{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14467$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 14468cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14469/* confdefs.h. */
14470_ACEOF
14471cat confdefs.h >>conftest.$ac_ext
14472cat >>conftest.$ac_ext <<_ACEOF
14473/* end confdefs.h. */
14474$ac_includes_default
14475#include <$ac_header>
14476_ACEOF
14477rm -f conftest.$ac_objext
7a197a62
AK
14478if { (ac_try="$ac_compile"
14479case "(($ac_try" in
14480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14481 *) ac_try_echo=$ac_try;;
14482esac
ec6a6fbe
AK
14483eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14484$as_echo "$ac_try_echo") >&5
7a197a62 14485 (eval "$ac_compile") 2>conftest.er1
ad6254c5 14486 ac_status=$?
8a2fc586
AK
14487 grep -v '^ *+' conftest.er1 >conftest.err
14488 rm -f conftest.er1
14489 cat conftest.err >&5
ec6a6fbe 14490 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14491 (exit $ac_status); } && {
14492 test -z "$ac_c_werror_flag" ||
14493 test ! -s conftest.err
14494 } && test -s conftest.$ac_objext; then
ad6254c5 14495 ac_header_compiler=yes
80992638 14496else
ec6a6fbe 14497 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14498sed 's/^/| /' conftest.$ac_ext >&5
14499
7a197a62 14500 ac_header_compiler=no
ad6254c5 14501fi
7a197a62
AK
14502
14503rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
14504{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14505$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
14506
14507# Is the header present?
ec6a6fbe
AK
14508{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14509$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 14510cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14511/* confdefs.h. */
14512_ACEOF
14513cat confdefs.h >>conftest.$ac_ext
14514cat >>conftest.$ac_ext <<_ACEOF
14515/* end confdefs.h. */
14516#include <$ac_header>
14517_ACEOF
7a197a62
AK
14518if { (ac_try="$ac_cpp conftest.$ac_ext"
14519case "(($ac_try" in
14520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14521 *) ac_try_echo=$ac_try;;
14522esac
ec6a6fbe
AK
14523eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14524$as_echo "$ac_try_echo") >&5
7a197a62 14525 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
14526 ac_status=$?
14527 grep -v '^ *+' conftest.er1 >conftest.err
14528 rm -f conftest.er1
14529 cat conftest.err >&5
ec6a6fbe 14530 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14531 (exit $ac_status); } >/dev/null && {
14532 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14533 test ! -s conftest.err
14534 }; then
ad6254c5
AK
14535 ac_header_preproc=yes
14536else
ec6a6fbe 14537 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14538sed 's/^/| /' conftest.$ac_ext >&5
14539
14540 ac_header_preproc=no
14541fi
7a197a62 14542
ad6254c5 14543rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
14544{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14545$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
14546
14547# So? What about this header?
8a2fc586
AK
14548case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14549 yes:no: )
ec6a6fbe
AK
14550 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14551$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14552 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14553$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 14554 ac_header_preproc=yes
ad6254c5 14555 ;;
8a2fc586 14556 no:yes:* )
ec6a6fbe
AK
14557 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14558$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14559 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14560$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14561 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14562$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14563 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14564$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14565 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14566$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14567 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14568$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 14569
ad6254c5
AK
14570 ;;
14571esac
ec6a6fbe
AK
14572{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14573$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 14574if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 14575 $as_echo_n "(cached) " >&6
ad6254c5 14576else
8a2fc586 14577 eval "$as_ac_Header=\$ac_header_preproc"
8106cdd5 14578fi
ec6a6fbe
AK
14579ac_res=`eval 'as_val=${'$as_ac_Header'}
14580 $as_echo "$as_val"'`
14581 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14582$as_echo "$ac_res" >&6; }
8106cdd5 14583
795ca3e5 14584fi
ec6a6fbe
AK
14585as_val=`eval 'as_val=${'$as_ac_Header'}
14586 $as_echo "$as_val"'`
14587 if test "x$as_val" = x""yes; then
ad6254c5 14588 cat >>confdefs.h <<_ACEOF
ec6a6fbe 14589#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
14590_ACEOF
14591
795ca3e5
AK
14592fi
14593
ad6254c5
AK
14594done
14595
ec6a6fbe
AK
14596{ $as_echo "$as_me:$LINENO: checking types of arguments for select" >&5
14597$as_echo_n "checking types of arguments for select... " >&6; }
ad6254c5 14598if test "${ac_cv_func_select_args+set}" = set; then
ec6a6fbe 14599 $as_echo_n "(cached) " >&6
26e7f2e0 14600else
ad6254c5 14601 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
7a197a62 14602 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
ad6254c5
AK
14603 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
14604 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14605/* confdefs.h. */
14606_ACEOF
14607cat confdefs.h >>conftest.$ac_ext
14608cat >>conftest.$ac_ext <<_ACEOF
14609/* end confdefs.h. */
14610$ac_includes_default
25fbec5b 14611#ifdef HAVE_SYS_SELECT_H
ad6254c5
AK
14612# include <sys/select.h>
14613#endif
25fbec5b 14614#ifdef HAVE_SYS_SOCKET_H
ad6254c5
AK
14615# include <sys/socket.h>
14616#endif
14617
14618int
14619main ()
14620{
14621extern int select ($ac_arg1,
8a2fc586
AK
14622 $ac_arg234, $ac_arg234, $ac_arg234,
14623 $ac_arg5);
ad6254c5
AK
14624 ;
14625 return 0;
14626}
14627_ACEOF
14628rm -f conftest.$ac_objext
7a197a62
AK
14629if { (ac_try="$ac_compile"
14630case "(($ac_try" in
14631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14632 *) ac_try_echo=$ac_try;;
14633esac
ec6a6fbe
AK
14634eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14635$as_echo "$ac_try_echo") >&5
7a197a62 14636 (eval "$ac_compile") 2>conftest.er1
ad6254c5 14637 ac_status=$?
8a2fc586
AK
14638 grep -v '^ *+' conftest.er1 >conftest.err
14639 rm -f conftest.er1
14640 cat conftest.err >&5
ec6a6fbe 14641 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14642 (exit $ac_status); } && {
14643 test -z "$ac_c_werror_flag" ||
14644 test ! -s conftest.err
14645 } && test -s conftest.$ac_objext; then
ad6254c5
AK
14646 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
14647else
ec6a6fbe 14648 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14649sed 's/^/| /' conftest.$ac_ext >&5
14650
7a197a62 14651
ad6254c5 14652fi
7a197a62
AK
14653
14654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
14655 done
14656 done
14657done
14658# Provide a safe default value.
14659: ${ac_cv_func_select_args='int,int *,struct timeval *'}
14660
26e7f2e0 14661fi
ec6a6fbe
AK
14662{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
14663$as_echo "$ac_cv_func_select_args" >&6; }
ad6254c5
AK
14664ac_save_IFS=$IFS; IFS=','
14665set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
14666IFS=$ac_save_IFS
14667shift
14668
14669cat >>confdefs.h <<_ACEOF
14670#define SELECT_TYPE_ARG1 $1
14671_ACEOF
14672
14673
14674cat >>confdefs.h <<_ACEOF
14675#define SELECT_TYPE_ARG234 ($2)
14676_ACEOF
14677
14678
14679cat >>confdefs.h <<_ACEOF
14680#define SELECT_TYPE_ARG5 ($3)
14681_ACEOF
14682
80992638 14683rm -f conftest*
80992638 14684
8106cdd5 14685fi
ad6254c5 14686
ad6254c5
AK
14687if test x$CLUSTER != xnone; then
14688
14689
14690for ac_header in sys/socket.h sys/un.h
b896caa1 14691do
ec6a6fbe 14692as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 14693if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
14694 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14695$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 14696if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 14697 $as_echo_n "(cached) " >&6
ad6254c5 14698fi
ec6a6fbe
AK
14699ac_res=`eval 'as_val=${'$as_ac_Header'}
14700 $as_echo "$as_val"'`
14701 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14702$as_echo "$ac_res" >&6; }
ad6254c5
AK
14703else
14704 # Is the header compilable?
ec6a6fbe
AK
14705{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14706$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 14707cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14708/* confdefs.h. */
14709_ACEOF
14710cat confdefs.h >>conftest.$ac_ext
14711cat >>conftest.$ac_ext <<_ACEOF
14712/* end confdefs.h. */
14713$ac_includes_default
14714#include <$ac_header>
14715_ACEOF
14716rm -f conftest.$ac_objext
7a197a62
AK
14717if { (ac_try="$ac_compile"
14718case "(($ac_try" in
14719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14720 *) ac_try_echo=$ac_try;;
14721esac
ec6a6fbe
AK
14722eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14723$as_echo "$ac_try_echo") >&5
7a197a62 14724 (eval "$ac_compile") 2>conftest.er1
ad6254c5 14725 ac_status=$?
8a2fc586
AK
14726 grep -v '^ *+' conftest.er1 >conftest.err
14727 rm -f conftest.er1
14728 cat conftest.err >&5
ec6a6fbe 14729 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14730 (exit $ac_status); } && {
14731 test -z "$ac_c_werror_flag" ||
14732 test ! -s conftest.err
14733 } && test -s conftest.$ac_objext; then
ad6254c5
AK
14734 ac_header_compiler=yes
14735else
ec6a6fbe 14736 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14737sed 's/^/| /' conftest.$ac_ext >&5
14738
7a197a62 14739 ac_header_compiler=no
ad6254c5 14740fi
7a197a62
AK
14741
14742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
14743{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14744$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
14745
14746# Is the header present?
ec6a6fbe
AK
14747{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14748$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 14749cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14750/* confdefs.h. */
14751_ACEOF
14752cat confdefs.h >>conftest.$ac_ext
14753cat >>conftest.$ac_ext <<_ACEOF
14754/* end confdefs.h. */
14755#include <$ac_header>
14756_ACEOF
7a197a62
AK
14757if { (ac_try="$ac_cpp conftest.$ac_ext"
14758case "(($ac_try" in
14759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14760 *) ac_try_echo=$ac_try;;
14761esac
ec6a6fbe
AK
14762eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14763$as_echo "$ac_try_echo") >&5
7a197a62 14764 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
14765 ac_status=$?
14766 grep -v '^ *+' conftest.er1 >conftest.err
14767 rm -f conftest.er1
14768 cat conftest.err >&5
ec6a6fbe 14769 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14770 (exit $ac_status); } >/dev/null && {
14771 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14772 test ! -s conftest.err
14773 }; then
ad6254c5
AK
14774 ac_header_preproc=yes
14775else
ec6a6fbe 14776 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14777sed 's/^/| /' conftest.$ac_ext >&5
14778
14779 ac_header_preproc=no
14780fi
7a197a62 14781
ad6254c5 14782rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
14783{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14784$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
14785
14786# So? What about this header?
8a2fc586
AK
14787case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14788 yes:no: )
ec6a6fbe
AK
14789 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14790$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14791 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14792$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 14793 ac_header_preproc=yes
ad6254c5 14794 ;;
8a2fc586 14795 no:yes:* )
ec6a6fbe
AK
14796 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14797$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14798 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14799$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14800 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14801$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14802 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14803$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14804 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14805$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14806 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14807$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 14808
ad6254c5
AK
14809 ;;
14810esac
ec6a6fbe
AK
14811{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14812$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 14813if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 14814 $as_echo_n "(cached) " >&6
ad6254c5 14815else
8a2fc586 14816 eval "$as_ac_Header=\$ac_header_preproc"
b896caa1 14817fi
ec6a6fbe
AK
14818ac_res=`eval 'as_val=${'$as_ac_Header'}
14819 $as_echo "$as_val"'`
14820 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14821$as_echo "$ac_res" >&6; }
ad6254c5
AK
14822
14823fi
ec6a6fbe
AK
14824as_val=`eval 'as_val=${'$as_ac_Header'}
14825 $as_echo "$as_val"'`
14826 if test "x$as_val" = x""yes; then
ad6254c5 14827 cat >>confdefs.h <<_ACEOF
ec6a6fbe 14828#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
14829_ACEOF
14830
80992638 14831else
ec6a6fbe
AK
14832 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
14833$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 14834 { (exit 1); exit 1; }; }
b896caa1 14835fi
ad6254c5 14836
b896caa1
AK
14837done
14838
14839
ad6254c5
AK
14840for ac_func in socket
14841do
ec6a6fbe
AK
14842as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14843{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14844$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 14845if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 14846 $as_echo_n "(cached) " >&6
795ca3e5 14847else
ad6254c5 14848 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14849/* confdefs.h. */
14850_ACEOF
14851cat confdefs.h >>conftest.$ac_ext
14852cat >>conftest.$ac_ext <<_ACEOF
14853/* end confdefs.h. */
8a2fc586
AK
14854/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14855 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14856#define $ac_func innocuous_$ac_func
14857
ad6254c5
AK
14858/* System header to define __stub macros and hopefully few prototypes,
14859 which can conflict with char $ac_func (); below.
14860 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14861 <limits.h> exists even on freestanding compilers. */
8a2fc586 14862
ad6254c5
AK
14863#ifdef __STDC__
14864# include <limits.h>
14865#else
14866# include <assert.h>
14867#endif
8a2fc586
AK
14868
14869#undef $ac_func
14870
7a197a62
AK
14871/* Override any GCC internal prototype to avoid an error.
14872 Use char because int might match the return type of a GCC
14873 builtin and then its argument prototype would still apply. */
ad6254c5
AK
14874#ifdef __cplusplus
14875extern "C"
ad6254c5 14876#endif
ad6254c5
AK
14877char $ac_func ();
14878/* The GNU C library defines this for functions which it implements
14879 to always fail with ENOSYS. Some functions are actually named
14880 something starting with __ and the normal name is an alias. */
7a197a62 14881#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 14882choke me
ad6254c5
AK
14883#endif
14884
14885int
14886main ()
14887{
7a197a62 14888return $ac_func ();
ad6254c5
AK
14889 ;
14890 return 0;
14891}
14892_ACEOF
14893rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
14894if { (ac_try="$ac_link"
14895case "(($ac_try" in
14896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14897 *) ac_try_echo=$ac_try;;
14898esac
ec6a6fbe
AK
14899eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14900$as_echo "$ac_try_echo") >&5
7a197a62 14901 (eval "$ac_link") 2>conftest.er1
ad6254c5 14902 ac_status=$?
8a2fc586
AK
14903 grep -v '^ *+' conftest.er1 >conftest.err
14904 rm -f conftest.er1
14905 cat conftest.err >&5
ec6a6fbe 14906 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14907 (exit $ac_status); } && {
14908 test -z "$ac_c_werror_flag" ||
14909 test ! -s conftest.err
ec6a6fbe
AK
14910 } && test -s conftest$ac_exeext && {
14911 test "$cross_compiling" = yes ||
14912 $as_test_x conftest$ac_exeext
14913 }; then
ad6254c5
AK
14914 eval "$as_ac_var=yes"
14915else
ec6a6fbe 14916 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14917sed 's/^/| /' conftest.$ac_ext >&5
14918
7a197a62 14919 eval "$as_ac_var=no"
ad6254c5 14920fi
7a197a62 14921
ec6a6fbe 14922rm -rf conftest.dSYM
25fbec5b 14923rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 14924 conftest$ac_exeext conftest.$ac_ext
ad6254c5 14925fi
ec6a6fbe
AK
14926ac_res=`eval 'as_val=${'$as_ac_var'}
14927 $as_echo "$as_val"'`
14928 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14929$as_echo "$ac_res" >&6; }
14930as_val=`eval 'as_val=${'$as_ac_var'}
14931 $as_echo "$as_val"'`
14932 if test "x$as_val" = x""yes; then
ad6254c5 14933 cat >>confdefs.h <<_ACEOF
ec6a6fbe 14934#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
14935_ACEOF
14936
14937else
ec6a6fbe
AK
14938 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
14939$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5
AK
14940 { (exit 1); exit 1; }; }
14941fi
14942done
14943
14944fi
14945
14946if test x$HAVE_LIBDL = xyes; then
14947
14948for ac_header in dlfcn.h
14949do
ec6a6fbe 14950as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 14951if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
14952 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14953$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 14954if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 14955 $as_echo_n "(cached) " >&6
ad6254c5 14956fi
ec6a6fbe
AK
14957ac_res=`eval 'as_val=${'$as_ac_Header'}
14958 $as_echo "$as_val"'`
14959 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14960$as_echo "$ac_res" >&6; }
ad6254c5
AK
14961else
14962 # Is the header compilable?
ec6a6fbe
AK
14963{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14964$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 14965cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14966/* confdefs.h. */
14967_ACEOF
14968cat confdefs.h >>conftest.$ac_ext
14969cat >>conftest.$ac_ext <<_ACEOF
14970/* end confdefs.h. */
14971$ac_includes_default
14972#include <$ac_header>
14973_ACEOF
14974rm -f conftest.$ac_objext
7a197a62
AK
14975if { (ac_try="$ac_compile"
14976case "(($ac_try" in
14977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14978 *) ac_try_echo=$ac_try;;
14979esac
ec6a6fbe
AK
14980eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14981$as_echo "$ac_try_echo") >&5
7a197a62 14982 (eval "$ac_compile") 2>conftest.er1
ad6254c5 14983 ac_status=$?
8a2fc586
AK
14984 grep -v '^ *+' conftest.er1 >conftest.err
14985 rm -f conftest.er1
14986 cat conftest.err >&5
ec6a6fbe 14987 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14988 (exit $ac_status); } && {
14989 test -z "$ac_c_werror_flag" ||
14990 test ! -s conftest.err
14991 } && test -s conftest.$ac_objext; then
ad6254c5
AK
14992 ac_header_compiler=yes
14993else
ec6a6fbe 14994 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14995sed 's/^/| /' conftest.$ac_ext >&5
14996
7a197a62 14997 ac_header_compiler=no
ad6254c5 14998fi
7a197a62
AK
14999
15000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
15001{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15002$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
15003
15004# Is the header present?
ec6a6fbe
AK
15005{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15006$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 15007cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
15008/* confdefs.h. */
15009_ACEOF
15010cat confdefs.h >>conftest.$ac_ext
15011cat >>conftest.$ac_ext <<_ACEOF
15012/* end confdefs.h. */
15013#include <$ac_header>
15014_ACEOF
7a197a62
AK
15015if { (ac_try="$ac_cpp conftest.$ac_ext"
15016case "(($ac_try" in
15017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15018 *) ac_try_echo=$ac_try;;
15019esac
ec6a6fbe
AK
15020eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15021$as_echo "$ac_try_echo") >&5
7a197a62 15022 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
15023 ac_status=$?
15024 grep -v '^ *+' conftest.er1 >conftest.err
15025 rm -f conftest.er1
15026 cat conftest.err >&5
ec6a6fbe 15027 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
15028 (exit $ac_status); } >/dev/null && {
15029 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15030 test ! -s conftest.err
15031 }; then
ad6254c5
AK
15032 ac_header_preproc=yes
15033else
ec6a6fbe 15034 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
15035sed 's/^/| /' conftest.$ac_ext >&5
15036
15037 ac_header_preproc=no
15038fi
7a197a62 15039
ad6254c5 15040rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
15041{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15042$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
15043
15044# So? What about this header?
8a2fc586
AK
15045case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15046 yes:no: )
ec6a6fbe
AK
15047 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15048$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15049 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15050$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 15051 ac_header_preproc=yes
ad6254c5 15052 ;;
8a2fc586 15053 no:yes:* )
ec6a6fbe
AK
15054 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15055$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15056 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15057$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15058 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15059$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15060 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15061$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15062 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15063$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15064 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15065$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 15066
ad6254c5
AK
15067 ;;
15068esac
ec6a6fbe
AK
15069{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15070$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 15071if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 15072 $as_echo_n "(cached) " >&6
ad6254c5 15073else
8a2fc586 15074 eval "$as_ac_Header=\$ac_header_preproc"
795ca3e5 15075fi
ec6a6fbe
AK
15076ac_res=`eval 'as_val=${'$as_ac_Header'}
15077 $as_echo "$as_val"'`
15078 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15079$as_echo "$ac_res" >&6; }
80992638 15080
8106cdd5 15081fi
ec6a6fbe
AK
15082as_val=`eval 'as_val=${'$as_ac_Header'}
15083 $as_echo "$as_val"'`
15084 if test "x$as_val" = x""yes; then
ad6254c5 15085 cat >>confdefs.h <<_ACEOF
ec6a6fbe 15086#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 15087_ACEOF
795ca3e5
AK
15088
15089else
ec6a6fbe
AK
15090 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
15091$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 15092 { (exit 1); exit 1; }; }
795ca3e5
AK
15093fi
15094
ad6254c5 15095done
80992638 15096
ad6254c5 15097fi
80992638 15098
ad6254c5 15099if test x$INTL = xyes; then
83912faa 15100
ad6254c5
AK
15101for ac_header in libintl.h
15102do
ec6a6fbe 15103as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 15104if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
15105 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15106$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 15107if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 15108 $as_echo_n "(cached) " >&6
ad6254c5 15109fi
ec6a6fbe
AK
15110ac_res=`eval 'as_val=${'$as_ac_Header'}
15111 $as_echo "$as_val"'`
15112 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15113$as_echo "$ac_res" >&6; }
83912faa 15114else
ad6254c5 15115 # Is the header compilable?
ec6a6fbe
AK
15116{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15117$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 15118cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
15119/* confdefs.h. */
15120_ACEOF
15121cat confdefs.h >>conftest.$ac_ext
15122cat >>conftest.$ac_ext <<_ACEOF
15123/* end confdefs.h. */
15124$ac_includes_default
15125#include <$ac_header>
15126_ACEOF
15127rm -f conftest.$ac_objext
7a197a62
AK
15128if { (ac_try="$ac_compile"
15129case "(($ac_try" in
15130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15131 *) ac_try_echo=$ac_try;;
15132esac
ec6a6fbe
AK
15133eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15134$as_echo "$ac_try_echo") >&5
7a197a62 15135 (eval "$ac_compile") 2>conftest.er1
ad6254c5 15136 ac_status=$?
8a2fc586
AK
15137 grep -v '^ *+' conftest.er1 >conftest.err
15138 rm -f conftest.er1
15139 cat conftest.err >&5
ec6a6fbe 15140 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
15141 (exit $ac_status); } && {
15142 test -z "$ac_c_werror_flag" ||
15143 test ! -s conftest.err
15144 } && test -s conftest.$ac_objext; then
ad6254c5
AK
15145 ac_header_compiler=yes
15146else
ec6a6fbe 15147 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
15148sed 's/^/| /' conftest.$ac_ext >&5
15149
7a197a62 15150 ac_header_compiler=no
ad6254c5 15151fi
7a197a62
AK
15152
15153rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
15154{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15155$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
15156
15157# Is the header present?
ec6a6fbe
AK
15158{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15159$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 15160cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
15161/* confdefs.h. */
15162_ACEOF
15163cat confdefs.h >>conftest.$ac_ext
15164cat >>conftest.$ac_ext <<_ACEOF
15165/* end confdefs.h. */
15166#include <$ac_header>
15167_ACEOF
7a197a62
AK
15168if { (ac_try="$ac_cpp conftest.$ac_ext"
15169case "(($ac_try" in
15170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15171 *) ac_try_echo=$ac_try;;
15172esac
ec6a6fbe
AK
15173eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15174$as_echo "$ac_try_echo") >&5
7a197a62 15175 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
15176 ac_status=$?
15177 grep -v '^ *+' conftest.er1 >conftest.err
15178 rm -f conftest.er1
15179 cat conftest.err >&5
ec6a6fbe 15180 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
15181 (exit $ac_status); } >/dev/null && {
15182 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15183 test ! -s conftest.err
15184 }; then
ad6254c5
AK
15185 ac_header_preproc=yes
15186else
ec6a6fbe 15187 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
15188sed 's/^/| /' conftest.$ac_ext >&5
15189
15190 ac_header_preproc=no
15191fi
7a197a62 15192
ad6254c5 15193rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
15194{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15195$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
15196
15197# So? What about this header?
8a2fc586
AK
15198case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15199 yes:no: )
ec6a6fbe
AK
15200 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15201$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15202 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15203$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 15204 ac_header_preproc=yes
ad6254c5 15205 ;;
8a2fc586 15206 no:yes:* )
ec6a6fbe
AK
15207 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15208$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15209 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15210$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15211 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15212$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15213 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15214$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15215 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15216$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15217 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15218$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 15219
ad6254c5
AK
15220 ;;
15221esac
ec6a6fbe
AK
15222{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15223$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 15224if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 15225 $as_echo_n "(cached) " >&6
80992638 15226else
8a2fc586 15227 eval "$as_ac_Header=\$ac_header_preproc"
83912faa 15228fi
ec6a6fbe
AK
15229ac_res=`eval 'as_val=${'$as_ac_Header'}
15230 $as_echo "$as_val"'`
15231 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15232$as_echo "$ac_res" >&6; }
83912faa 15233
69792976 15234fi
ec6a6fbe
AK
15235as_val=`eval 'as_val=${'$as_ac_Header'}
15236 $as_echo "$as_val"'`
15237 if test "x$as_val" = x""yes; then
ad6254c5 15238 cat >>confdefs.h <<_ACEOF
ec6a6fbe 15239#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 15240_ACEOF
69792976 15241
69792976 15242else
ec6a6fbe
AK
15243 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
15244$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 15245 { (exit 1); exit 1; }; }
80992638
AK
15246fi
15247
ad6254c5 15248done
69792976 15249
ad6254c5
AK
15250fi
15251
a5f46f6a
AK
15252if test x$UDEV_SYNC = xyes; then
15253
15254
15255for ac_header in sys/ipc.h sys/sem.h
15256do
15257as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15258if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15259 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15260$as_echo_n "checking for $ac_header... " >&6; }
15261if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15262 $as_echo_n "(cached) " >&6
15263fi
15264ac_res=`eval 'as_val=${'$as_ac_Header'}
15265 $as_echo "$as_val"'`
15266 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15267$as_echo "$ac_res" >&6; }
15268else
15269 # Is the header compilable?
15270{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15271$as_echo_n "checking $ac_header usability... " >&6; }
15272cat >conftest.$ac_ext <<_ACEOF
15273/* confdefs.h. */
15274_ACEOF
15275cat confdefs.h >>conftest.$ac_ext
15276cat >>conftest.$ac_ext <<_ACEOF
15277/* end confdefs.h. */
15278$ac_includes_default
15279#include <$ac_header>
15280_ACEOF
15281rm -f conftest.$ac_objext
15282if { (ac_try="$ac_compile"
15283case "(($ac_try" in
15284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15285 *) ac_try_echo=$ac_try;;
15286esac
15287eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15288$as_echo "$ac_try_echo") >&5
15289 (eval "$ac_compile") 2>conftest.er1
15290 ac_status=$?
15291 grep -v '^ *+' conftest.er1 >conftest.err
15292 rm -f conftest.er1
15293 cat conftest.err >&5
15294 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15295 (exit $ac_status); } && {
15296 test -z "$ac_c_werror_flag" ||
15297 test ! -s conftest.err
15298 } && test -s conftest.$ac_objext; then
15299 ac_header_compiler=yes
15300else
15301 $as_echo "$as_me: failed program was:" >&5
15302sed 's/^/| /' conftest.$ac_ext >&5
15303
15304 ac_header_compiler=no
15305fi
15306
15307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15308{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15309$as_echo "$ac_header_compiler" >&6; }
15310
15311# Is the header present?
15312{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15313$as_echo_n "checking $ac_header presence... " >&6; }
15314cat >conftest.$ac_ext <<_ACEOF
15315/* confdefs.h. */
15316_ACEOF
15317cat confdefs.h >>conftest.$ac_ext
15318cat >>conftest.$ac_ext <<_ACEOF
15319/* end confdefs.h. */
15320#include <$ac_header>
15321_ACEOF
15322if { (ac_try="$ac_cpp conftest.$ac_ext"
15323case "(($ac_try" in
15324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15325 *) ac_try_echo=$ac_try;;
15326esac
15327eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15328$as_echo "$ac_try_echo") >&5
15329 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15330 ac_status=$?
15331 grep -v '^ *+' conftest.er1 >conftest.err
15332 rm -f conftest.er1
15333 cat conftest.err >&5
15334 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15335 (exit $ac_status); } >/dev/null && {
15336 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15337 test ! -s conftest.err
15338 }; then
15339 ac_header_preproc=yes
15340else
15341 $as_echo "$as_me: failed program was:" >&5
15342sed 's/^/| /' conftest.$ac_ext >&5
15343
15344 ac_header_preproc=no
15345fi
15346
15347rm -f conftest.err conftest.$ac_ext
15348{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15349$as_echo "$ac_header_preproc" >&6; }
15350
15351# So? What about this header?
15352case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15353 yes:no: )
15354 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15355$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15356 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15357$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15358 ac_header_preproc=yes
15359 ;;
15360 no:yes:* )
15361 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15362$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15363 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15364$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15365 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15366$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15367 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15368$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15369 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15370$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15371 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15372$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15373
15374 ;;
15375esac
15376{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15377$as_echo_n "checking for $ac_header... " >&6; }
15378if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15379 $as_echo_n "(cached) " >&6
15380else
15381 eval "$as_ac_Header=\$ac_header_preproc"
15382fi
15383ac_res=`eval 'as_val=${'$as_ac_Header'}
15384 $as_echo "$as_val"'`
15385 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15386$as_echo "$ac_res" >&6; }
15387
15388fi
15389as_val=`eval 'as_val=${'$as_ac_Header'}
15390 $as_echo "$as_val"'`
15391 if test "x$as_val" = x""yes; then
15392 cat >>confdefs.h <<_ACEOF
15393#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15394_ACEOF
15395
15396else
15397 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
15398$as_echo "$as_me: error: bailing out" >&2;}
15399 { (exit 1); exit 1; }; }
15400fi
15401
15402done
15403
15404fi
15405
a653923f
AK
15406################################################################################
15407# Extract the first word of "modprobe", so it can be a program name with args.
15408set dummy modprobe; ac_word=$2
ec6a6fbe
AK
15409{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
15410$as_echo_n "checking for $ac_word... " >&6; }
72b2cb61 15411if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then
ec6a6fbe 15412 $as_echo_n "(cached) " >&6
72b2cb61
AK
15413else
15414 case $MODPROBE_CMD in
15415 [\\/]* | ?:[\\/]*)
15416 ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path.
15417 ;;
15418 *)
15419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15420for as_dir in $PATH
15421do
15422 IFS=$as_save_IFS
15423 test -z "$as_dir" && as_dir=.
15424 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 15425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
72b2cb61 15426 ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 15427 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
72b2cb61
AK
15428 break 2
15429 fi
15430done
15431done
7a197a62 15432IFS=$as_save_IFS
72b2cb61
AK
15433
15434 ;;
15435esac
15436fi
15437MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD
72b2cb61 15438if test -n "$MODPROBE_CMD"; then
ec6a6fbe
AK
15439 { $as_echo "$as_me:$LINENO: result: $MODPROBE_CMD" >&5
15440$as_echo "$MODPROBE_CMD" >&6; }
72b2cb61 15441else
ec6a6fbe
AK
15442 { $as_echo "$as_me:$LINENO: result: no" >&5
15443$as_echo "no" >&6; }
72b2cb61
AK
15444fi
15445
a653923f 15446
7a197a62 15447
a653923f 15448if test x$MODPROBE_CMD != x; then
72b2cb61
AK
15449
15450cat >>confdefs.h <<_ACEOF
15451#define MODPROBE_CMD "$MODPROBE_CMD"
15452_ACEOF
15453
a653923f
AK
15454fi
15455
80992638 15456################################################################################
93bd259b
AK
15457
15458
15459if test "$BUILD_DMEVENTD" = yes; then
15460
15461# Check whether --with-dmeventd-pidfile was given.
15462if test "${with_dmeventd_pidfile+set}" = set; then
15463 withval=$with_dmeventd_pidfile; cat >>confdefs.h <<_ACEOF
15464#define DMEVENTD_PIDFILE "$withval"
15465_ACEOF
15466
15467else
15468 cat >>confdefs.h <<_ACEOF
15469#define DMEVENTD_PIDFILE "/var/run/dmeventd.pid"
15470_ACEOF
15471
15472fi
15473
15474fi
15475
15476
15477
15478if test "$BUILD_DMEVENTD" = yes; then
15479 dmeventd_prefix="$exec_prefix"
15480 if test "x$dmeventd_prefix" = "xNONE"; then
15481 dmeventd_prefix="$prefix"
15482 fi
15483 if test "x$dmeventd_prefix" = "xNONE"; then
15484 dmeventd_prefix=""
15485 fi
15486
15487# Check whether --with-dmeventd-path was given.
15488if test "${with_dmeventd_path+set}" = set; then
15489 withval=$with_dmeventd_path; cat >>confdefs.h <<_ACEOF
15490#define DMEVENTD_PATH "$withval"
15491_ACEOF
15492
15493else
15494 cat >>confdefs.h <<_ACEOF
15495#define DMEVENTD_PATH "$dmeventd_prefix/sbin/dmeventd"
15496_ACEOF
15497
15498fi
15499
15500fi
15501
3399ae32
AK
15502################################################################################
15503
15504
15505
15506# Check whether --with-default-system-dir was given.
15507if test "${with_default_system_dir+set}" = set; then
15508 withval=$with_default_system_dir; DEFAULT_SYS_DIR="$withval"
15509else
15510 DEFAULT_SYS_DIR="/etc/lvm"
15511fi
15512
15513cat >>confdefs.h <<_ACEOF
15514#define DEFAULT_SYS_DIR "$DEFAULT_SYS_DIR"
15515_ACEOF
15516
15517
15518
15519
15520
15521# Check whether --with-default-archive-subdir was given.
15522if test "${with_default_archive_subdir+set}" = set; then
15523 withval=$with_default_archive_subdir; DEFAULT_ARCHIVE_SUBDIR="$withval"
15524else
15525 DEFAULT_ARCHIVE_SUBDIR="archive"
15526fi
15527
15528cat >>confdefs.h <<_ACEOF
15529#define DEFAULT_ARCHIVE_SUBDIR "$DEFAULT_ARCHIVE_SUBDIR"
15530_ACEOF
15531
15532
15533
15534
15535
15536# Check whether --with-default-backup-subdir was given.
15537if test "${with_default_backup_subdir+set}" = set; then
15538 withval=$with_default_backup_subdir; DEFAULT_BACKUP_SUBDIR="$withval"
15539else
15540 DEFAULT_BACKUP_SUBDIR="backup"
15541fi
15542
15543cat >>confdefs.h <<_ACEOF
15544#define DEFAULT_BACKUP_SUBDIR "$DEFAULT_BACKUP_SUBDIR"
15545_ACEOF
15546
15547
15548
15549
15550
15551# Check whether --with-default-cache-subdir was given.
15552if test "${with_default_cache_subdir+set}" = set; then
15553 withval=$with_default_cache_subdir; DEFAULT_CACHE_SUBDIR="$withval"
15554else
15555 DEFAULT_CACHE_SUBDIR="cache"
15556fi
15557
15558cat >>confdefs.h <<_ACEOF
15559#define DEFAULT_CACHE_SUBDIR "$DEFAULT_CACHE_SUBDIR"
15560_ACEOF
15561
15562
15563
15564
15565
15566# Check whether --with-default-locking-dir was given.
15567if test "${with_default_locking_dir+set}" = set; then
15568 withval=$with_default_locking_dir; DEFAULT_LOCK_DIR="$withval"
15569else
15570 DEFAULT_LOCK_DIR="/var/lock/lvm"
15571fi
15572
15573cat >>confdefs.h <<_ACEOF
15574#define DEFAULT_LOCK_DIR "$DEFAULT_LOCK_DIR"
15575_ACEOF
15576
15577
93bd259b 15578################################################################################
ec6a6fbe
AK
15579{ $as_echo "$as_me:$LINENO: checking for kernel interface choice" >&5
15580$as_echo_n "checking for kernel interface choice... " >&6; }
93bd259b
AK
15581
15582# Check whether --with-interface was given.
15583if test "${with_interface+set}" = set; then
15584 withval=$with_interface; interface="$withval"
15585else
15586 interface=ioctl
15587fi
15588
15589if [ "x$interface" != xioctl ];
15590then
ec6a6fbe
AK
15591 { { $as_echo "$as_me:$LINENO: error: --with-interface=ioctl required. fs no longer supported." >&5
15592$as_echo "$as_me: error: --with-interface=ioctl required. fs no longer supported." >&2;}
93bd259b
AK
15593 { (exit 1); exit 1; }; }
15594fi
ec6a6fbe
AK
15595{ $as_echo "$as_me:$LINENO: result: $interface" >&5
15596$as_echo "$interface" >&6; }
93bd259b
AK
15597
15598################################################################################
db8b5af9 15599DM_LIB_VERSION="\"`cat "$srcdir"/VERSION_DM 2>/dev/null || echo Unknown`\""
24bbc4d7
AK
15600
15601cat >>confdefs.h <<_ACEOF
15602#define DM_LIB_VERSION $DM_LIB_VERSION
15603_ACEOF
15604
15605
db8b5af9 15606DM_LIB_PATCHLEVEL=`cat "$srcdir"/VERSION_DM | $AWK -F '[-. ]' '{printf "%s.%s.%s",$1,$2,$3}'`
7e3fe830 15607
db8b5af9 15608LVM_VERSION="\"`cat "$srcdir"/VERSION 2>/dev/null || echo Unknown`\""
fae0c576 15609
db8b5af9 15610VER=`cat "$srcdir"/VERSION`
bf456146 15611LVM_RELEASE_DATE="\"`echo $VER | $SED 's/.* (//;s/).*//'`\""
ec6a6fbe
AK
15612VER=`echo "$VER" | $AWK '{print $1}'`
15613LVM_RELEASE="\"`echo "$VER" | $AWK -F '-' '{print $2}'`\""
15614VER=`echo "$VER" | $AWK -F '-' '{print $1}'`
15615LVM_MAJOR=`echo "$VER" | $AWK -F '.' '{print $1}'`
15616LVM_MINOR=`echo "$VER" | $AWK -F '.' '{print $2}'`
bf456146
AK
15617LVM_PATCHLEVEL=`echo "$VER" | $AWK -F '[(.]' '{print $3}'`
15618LVM_LIBAPI=`echo "$VER" | $AWK -F '[()]' '{print $2}'`
ec6a6fbe 15619
80992638 15620################################################################################
fae0c576 15621
83912faa 15622
795ca3e5
AK
15623
15624
15625
15626
15627
15628
5a52dca9 15629
8ef2b021 15630
199e490e 15631
69792976
AK
15632
15633
15634
d0191583 15635
69792976 15636
8106cdd5
AK
15637
15638
15639
15640
15641
d68a82ec 15642
036f273a 15643
7d1552c9 15644
8106cdd5 15645
0a62c911 15646
8106cdd5 15647
4a7f3eb2 15648
4922197a
AK
15649
15650
d8ac0fbc 15651
1a9ea74d 15652
8a2fc586
AK
15653
15654
d0191583 15655
93bd259b
AK
15656
15657
15658
15659
15660
d0191583
JM
15661
15662
15663
15664
15665
8a2fc586 15666
19a2c6e0 15667
f7f0854e
ZK
15668
15669
3ceb7608 15670
8ce0cbda 15671
8b1a3214 15672
ec6a6fbe
AK
15673
15674
15675
15676
e2997b73
AK
15677
15678
15679
15680
15681
15682
a946372e
AK
15683
15684
15685
15686
15687
15688
15689
15690
15691
15692
15693
ec6a6fbe 15694
33f732c5 15695
66e941e8 15696
d3c8211f 15697
7e3fe830 15698
a5f46f6a
AK
15699
15700
15701
572fefeb 15702
90c80887 15703
3399ae32
AK
15704
15705
15706
15707
15708
90c80887 15709
bf456146 15710
e1b8a236 15711
0878503f 15712
68f2de6d
AK
15713
15714
80992638 15715################################################################################
da05c479 15716ac_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/misc/lvm-version.h lib/snapshot/Makefile libdm/Makefile libdm/libdevmapper.pc liblvm/Makefile liblvm/liblvm2app.pc man/Makefile po/Makefile scripts/clvmd_init_red_hat scripts/cmirrord_init_red_hat scripts/lvm2_monitoring_init_red_hat scripts/Makefile test/Makefile test/api/Makefile tools/Makefile udev/Makefile"
7a197a62 15717
ad6254c5 15718cat >confcache <<\_ACEOF
795ca3e5
AK
15719# This file is a shell script that caches the results of configure
15720# tests run on this system so they can be shared between configure
ad6254c5
AK
15721# scripts and configure runs, see configure's option --config-cache.
15722# It is not useful on other systems. If it contains results you don't
15723# want to keep, you may remove or edit it.
795ca3e5 15724#
ad6254c5
AK
15725# config.status only pays attention to the cache file if you give it
15726# the --recheck option to rerun configure.
795ca3e5 15727#
ad6254c5
AK
15728# `ac_cv_env_foo' variables (set or unset) will be overridden when
15729# loading this file, other *unset* `ac_cv_foo' will be assigned the
15730# following values.
15731
15732_ACEOF
15733
795ca3e5
AK
15734# The following way of writing the cache mishandles newlines in values,
15735# but we know of no workaround that is simple, portable, and efficient.
7a197a62 15736# So, we kill variables containing newlines.
795ca3e5
AK
15737# Ultrix sh set writes to stderr and can't be redirected directly,
15738# and sets the high bit in the cache file unless we assign to the vars.
7a197a62
AK
15739(
15740 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15741 eval ac_val=\$$ac_var
15742 case $ac_val in #(
15743 *${as_nl}*)
15744 case $ac_var in #(
ec6a6fbe
AK
15745 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
15746$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7a197a62
AK
15747 esac
15748 case $ac_var in #(
15749 _ | IFS | as_nl) ;; #(
ec6a6fbe 15750 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7a197a62
AK
15751 *) $as_unset $ac_var ;;
15752 esac ;;
15753 esac
15754 done
15755
ad6254c5 15756 (set) 2>&1 |
7a197a62
AK
15757 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15758 *${as_nl}ac_space=\ *)
ad6254c5
AK
15759 # `set' does not quote correctly, so add quotes (double-quote
15760 # substitution turns \\\\ into \\, and sed turns \\ into \).
15761 sed -n \
8a2fc586
AK
15762 "s/'/'\\\\''/g;
15763 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7a197a62 15764 ;; #(
ad6254c5
AK
15765 *)
15766 # `set' quotes correctly as required by POSIX, so do not add quotes.
7a197a62 15767 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
ad6254c5 15768 ;;
7a197a62
AK
15769 esac |
15770 sort
15771) |
ad6254c5 15772 sed '
7a197a62 15773 /^ac_cv_env_/b end
ad6254c5 15774 t clear
7a197a62 15775 :clear
ad6254c5
AK
15776 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15777 t end
7a197a62
AK
15778 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15779 :end' >>confcache
15780if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15781 if test -w "$cache_file"; then
15782 test "x$cache_file" != "x/dev/null" &&
ec6a6fbe
AK
15783 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
15784$as_echo "$as_me: updating cache $cache_file" >&6;}
ad6254c5 15785 cat confcache >$cache_file
795ca3e5 15786 else
ec6a6fbe
AK
15787 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
15788$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
795ca3e5
AK
15789 fi
15790fi
15791rm -f confcache
15792
795ca3e5
AK
15793test "x$prefix" = xNONE && prefix=$ac_default_prefix
15794# Let make expand exec_prefix.
15795test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15796
72b2cb61 15797DEFS=-DHAVE_CONFIG_H
ad6254c5
AK
15798
15799ac_libobjs=
15800ac_ltlibobjs=
15801for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15802 # 1. Remove the extension, and $U if already installed.
7a197a62 15803 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
ec6a6fbe 15804 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7a197a62
AK
15805 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15806 # will be set to the directory where LIBOBJS objects are built.
15807 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15808 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
ad6254c5
AK
15809done
15810LIBOBJS=$ac_libobjs
80992638 15811
ad6254c5
AK
15812LTLIBOBJS=$ac_ltlibobjs
15813
15814
15815
15816: ${CONFIG_STATUS=./config.status}
ec6a6fbe 15817ac_write_fail=0
ad6254c5
AK
15818ac_clean_files_save=$ac_clean_files
15819ac_clean_files="$ac_clean_files $CONFIG_STATUS"
ec6a6fbe
AK
15820{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15821$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15822cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5
AK
15823#! $SHELL
15824# Generated by $as_me.
795ca3e5 15825# Run this file to recreate the current configuration.
795ca3e5 15826# Compiler output produced by configure, useful for debugging
ad6254c5
AK
15827# configure, is in config.log if it exists.
15828
15829debug=false
15830ac_cs_recheck=false
15831ac_cs_silent=false
15832SHELL=\${CONFIG_SHELL-$SHELL}
15833_ACEOF
15834
ec6a6fbe 15835cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ad6254c5
AK
15836## --------------------- ##
15837## M4sh Initialization. ##
15838## --------------------- ##
15839
25fbec5b
AK
15840# Be more Bourne compatible
15841DUALCASE=1; export DUALCASE # for MKS sh
ad6254c5
AK
15842if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15843 emulate sh
15844 NULLCMD=:
ec6a6fbe 15845 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
ad6254c5
AK
15846 # is contrary to our usage. Disable this feature.
15847 alias -g '${1+"$@"}'='"$@"'
7a197a62
AK
15848 setopt NO_GLOB_SUBST
15849else
25fbec5b
AK
15850 case `(set -o) 2>/dev/null` in
15851 *posix*) set -o posix ;;
15852esac
15853
7a197a62 15854fi
25fbec5b
AK
15855
15856
7a197a62
AK
15857
15858
15859# PATH needs CR
15860# Avoid depending upon Character Ranges.
15861as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15862as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15863as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15864as_cr_digits='0123456789'
15865as_cr_alnum=$as_cr_Letters$as_cr_digits
15866
ec6a6fbe
AK
15867as_nl='
15868'
15869export as_nl
15870# Printing a long string crashes Solaris 7 /usr/bin/printf.
15871as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15872as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15873as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15874if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15875 as_echo='printf %s\n'
15876 as_echo_n='printf %s'
15877else
15878 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15879 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15880 as_echo_n='/usr/ucb/echo -n'
68f2de6d 15881 else
ec6a6fbe
AK
15882 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15883 as_echo_n_body='eval
15884 arg=$1;
15885 case $arg in
15886 *"$as_nl"*)
15887 expr "X$arg" : "X\\(.*\\)$as_nl";
15888 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15889 esac;
15890 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15891 '
15892 export as_echo_n_body
15893 as_echo_n='sh -c $as_echo_n_body as_echo'
68f2de6d 15894 fi
ec6a6fbe
AK
15895 export as_echo_body
15896 as_echo='sh -c $as_echo_body as_echo'
15897fi
15898
15899# The user is always right.
15900if test "${PATH_SEPARATOR+set}" != set; then
15901 PATH_SEPARATOR=:
15902 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15903 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15904 PATH_SEPARATOR=';'
15905 }
ad6254c5
AK
15906fi
15907
15908# Support unset when possible.
8a2fc586 15909if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
ad6254c5
AK
15910 as_unset=unset
15911else
15912 as_unset=false
15913fi
8106cdd5 15914
ad6254c5 15915
7a197a62
AK
15916# IFS
15917# We need space, tab and new line, in precisely that order. Quoting is
15918# there to prevent editors from complaining about space-tab.
15919# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15920# splitting by setting IFS to empty value.)
7a197a62
AK
15921IFS=" "" $as_nl"
15922
15923# Find who we are. Look in the path if we contain no directory separator.
15924case $0 in
15925 *[\\/]* ) as_myself=$0 ;;
15926 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15927for as_dir in $PATH
15928do
15929 IFS=$as_save_IFS
15930 test -z "$as_dir" && as_dir=.
15931 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15932done
15933IFS=$as_save_IFS
15934
15935 ;;
15936esac
15937# We did not find ourselves, most probably we were run as `sh COMMAND'
15938# in which case we are not to be found in the path.
15939if test "x$as_myself" = x; then
15940 as_myself=$0
15941fi
15942if test ! -f "$as_myself"; then
ec6a6fbe 15943 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7a197a62
AK
15944 { (exit 1); exit 1; }
15945fi
15946
ad6254c5 15947# Work around bugs in pre-3.0 UWIN ksh.
7a197a62
AK
15948for as_var in ENV MAIL MAILPATH
15949do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15950done
ad6254c5
AK
15951PS1='$ '
15952PS2='> '
15953PS4='+ '
15954
15955# NLS nuisances.
ec6a6fbe
AK
15956LC_ALL=C
15957export LC_ALL
15958LANGUAGE=C
15959export LANGUAGE
8106cdd5 15960
ad6254c5 15961# Required to use basename.
7a197a62
AK
15962if expr a : '\(a\)' >/dev/null 2>&1 &&
15963 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
15964 as_expr=expr
15965else
15966 as_expr=false
15967fi
8106cdd5 15968
7a197a62 15969if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
ad6254c5
AK
15970 as_basename=basename
15971else
15972 as_basename=false
15973fi
15974
15975
15976# Name of the executable.
7a197a62 15977as_me=`$as_basename -- "$0" ||
ad6254c5
AK
15978$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15979 X"$0" : 'X\(//\)$' \| \
7a197a62 15980 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 15981$as_echo X/"$0" |
7a197a62
AK
15982 sed '/^.*\/\([^/][^/]*\)\/*$/{
15983 s//\1/
15984 q
15985 }
15986 /^X\/\(\/\/\)$/{
15987 s//\1/
15988 q
15989 }
15990 /^X\/\(\/\).*/{
15991 s//\1/
15992 q
15993 }
15994 s/.*/./; q'`
ad6254c5 15995
7a197a62
AK
15996# CDPATH.
15997$as_unset CDPATH
ad6254c5
AK
15998
15999
ad6254c5 16000
ad6254c5
AK
16001 as_lineno_1=$LINENO
16002 as_lineno_2=$LINENO
ad6254c5 16003 test "x$as_lineno_1" != "x$as_lineno_2" &&
7a197a62 16004 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
795ca3e5 16005
ad6254c5
AK
16006 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16007 # uniformly replaced by the line number. The first 'sed' inserts a
7a197a62
AK
16008 # line-number line after each line using $LINENO; the second 'sed'
16009 # does the real work. The second script uses 'N' to pair each
16010 # line-number line with the line containing $LINENO, and appends
16011 # trailing '-' during substitution so that $LINENO is not a special
16012 # case at line end.
ad6254c5 16013 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7a197a62
AK
16014 # scripts with optimization help from Paolo Bonzini. Blame Lee
16015 # E. McMahon (1931-1989) for sed's syntax. :-)
16016 sed -n '
16017 p
16018 /[$]LINENO/=
16019 ' <$as_myself |
ad6254c5 16020 sed '
7a197a62
AK
16021 s/[$]LINENO.*/&-/
16022 t lineno
16023 b
16024 :lineno
ad6254c5 16025 N
7a197a62
AK
16026 :loop
16027 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
ad6254c5 16028 t loop
7a197a62 16029 s/-\n.*//
ad6254c5 16030 ' >$as_me.lineno &&
7a197a62 16031 chmod +x "$as_me.lineno" ||
ec6a6fbe 16032 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
ad6254c5
AK
16033 { (exit 1); exit 1; }; }
16034
16035 # Don't try to exec as it changes $[0], causing all sort of problems
16036 # (the dirname of $[0] is not the place where we might find the
7a197a62
AK
16037 # original and so on. Autoconf is especially sensitive to this).
16038 . "./$as_me.lineno"
ad6254c5
AK
16039 # Exit status is that of the last command.
16040 exit
16041}
16042
16043
7a197a62
AK
16044if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16045 as_dirname=dirname
16046else
16047 as_dirname=false
16048fi
16049
16050ECHO_C= ECHO_N= ECHO_T=
16051case `echo -n x` in
16052-n*)
16053 case `echo 'x\c'` in
16054 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16055 *) ECHO_C='\c';;
16056 esac;;
16057*)
16058 ECHO_N='-n';;
ad6254c5 16059esac
7a197a62
AK
16060if expr a : '\(a\)' >/dev/null 2>&1 &&
16061 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
16062 as_expr=expr
16063else
16064 as_expr=false
16065fi
80992638 16066
ad6254c5 16067rm -f conf$$ conf$$.exe conf$$.file
7a197a62
AK
16068if test -d conf$$.dir; then
16069 rm -f conf$$.dir/conf$$.file
16070else
16071 rm -f conf$$.dir
ec6a6fbe
AK
16072 mkdir conf$$.dir 2>/dev/null
16073fi
16074if (echo >conf$$.file) 2>/dev/null; then
16075 if ln -s conf$$.file conf$$ 2>/dev/null; then
16076 as_ln_s='ln -s'
16077 # ... but there are two gotchas:
16078 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16079 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16080 # In both cases, we have to default to `cp -p'.
16081 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16082 as_ln_s='cp -p'
16083 elif ln conf$$.file conf$$ 2>/dev/null; then
16084 as_ln_s=ln
16085 else
ad6254c5 16086 as_ln_s='cp -p'
ec6a6fbe 16087 fi
ad6254c5
AK
16088else
16089 as_ln_s='cp -p'
16090fi
7a197a62
AK
16091rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16092rmdir conf$$.dir 2>/dev/null
8106cdd5 16093
ad6254c5
AK
16094if mkdir -p . 2>/dev/null; then
16095 as_mkdir_p=:
16096else
8a2fc586 16097 test -d ./-p && rmdir ./-p
ad6254c5
AK
16098 as_mkdir_p=false
16099fi
16100
25fbec5b
AK
16101if test -x / >/dev/null 2>&1; then
16102 as_test_x='test -x'
7a197a62 16103else
25fbec5b
AK
16104 if ls -dL / >/dev/null 2>&1; then
16105 as_ls_L_option=L
16106 else
16107 as_ls_L_option=
16108 fi
16109 as_test_x='
16110 eval sh -c '\''
16111 if test -d "$1"; then
ec6a6fbe 16112 test -d "$1/.";
25fbec5b
AK
16113 else
16114 case $1 in
ec6a6fbe 16115 -*)set "./$1";;
25fbec5b
AK
16116 esac;
16117 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
16118 ???[sx]*):;;*)false;;esac;fi
16119 '\'' sh
16120 '
7a197a62 16121fi
25fbec5b 16122as_executable_p=$as_test_x
ad6254c5
AK
16123
16124# Sed expression to map a string onto a valid CPP name.
8a2fc586 16125as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
16126
16127# Sed expression to map a string onto a valid variable name.
8a2fc586 16128as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
16129
16130
ad6254c5
AK
16131exec 6>&1
16132
7a197a62 16133# Save the log message, to keep $[0] and so on meaningful, and to
ad6254c5 16134# report actual input values of CONFIG_FILES etc. instead of their
7a197a62
AK
16135# values after options handling.
16136ac_log="
ad6254c5 16137This file was extended by $as_me, which was
ec6a6fbe 16138generated by GNU Autoconf 2.63. Invocation command line was
ad6254c5
AK
16139
16140 CONFIG_FILES = $CONFIG_FILES
16141 CONFIG_HEADERS = $CONFIG_HEADERS
16142 CONFIG_LINKS = $CONFIG_LINKS
16143 CONFIG_COMMANDS = $CONFIG_COMMANDS
16144 $ $0 $@
16145
7a197a62
AK
16146on `(hostname || uname -n) 2>/dev/null | sed 1q`
16147"
16148
ad6254c5
AK
16149_ACEOF
16150
ec6a6fbe
AK
16151case $ac_config_files in *"
16152"*) set x $ac_config_files; shift; ac_config_files=$*;;
16153esac
16154
16155case $ac_config_headers in *"
16156"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16157esac
16158
16159
16160cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5 16161# Files that config.status was made for.
68f2de6d
AK
16162config_files="$ac_config_files"
16163config_headers="$ac_config_headers"
ad6254c5 16164
7a197a62 16165_ACEOF
ad6254c5 16166
ec6a6fbe 16167cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ad6254c5
AK
16168ac_cs_usage="\
16169\`$as_me' instantiates files from templates according to the
16170current configuration.
16171
ec6a6fbe 16172Usage: $0 [OPTION]... [FILE]...
ad6254c5
AK
16173
16174 -h, --help print this help, then exit
25fbec5b 16175 -V, --version print version number and configuration settings, then exit
ec6a6fbe
AK
16176 -q, --quiet, --silent
16177 do not print progress messages
ad6254c5
AK
16178 -d, --debug don't remove temporary files
16179 --recheck update $as_me by reconfiguring in the same conditions
ec6a6fbe
AK
16180 --file=FILE[:TEMPLATE]
16181 instantiate the configuration file FILE
16182 --header=FILE[:TEMPLATE]
16183 instantiate the configuration header FILE
ad6254c5
AK
16184
16185Configuration files:
16186$config_files
16187
72b2cb61
AK
16188Configuration headers:
16189$config_headers
16190
ad6254c5 16191Report bugs to <bug-autoconf@gnu.org>."
ad6254c5 16192
7a197a62 16193_ACEOF
ec6a6fbe 16194cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5
AK
16195ac_cs_version="\\
16196config.status
ec6a6fbe
AK
16197configured by $0, generated by GNU Autoconf 2.63,
16198 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
ad6254c5 16199
ec6a6fbe 16200Copyright (C) 2008 Free Software Foundation, Inc.
ad6254c5
AK
16201This config.status script is free software; the Free Software Foundation
16202gives unlimited permission to copy, distribute and modify it."
7a197a62
AK
16203
16204ac_pwd='$ac_pwd'
16205srcdir='$srcdir'
16206INSTALL='$INSTALL'
fddafd51 16207MKDIR_P='$MKDIR_P'
ec6a6fbe
AK
16208AWK='$AWK'
16209test -n "\$AWK" || AWK=awk
ad6254c5
AK
16210_ACEOF
16211
ec6a6fbe
AK
16212cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16213# The default lists apply if the user does not specify any file.
ad6254c5
AK
16214ac_need_defaults=:
16215while test $# != 0
16216do
16217 case $1 in
16218 --*=*)
7a197a62
AK
16219 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16220 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
ad6254c5
AK
16221 ac_shift=:
16222 ;;
7a197a62 16223 *)
ad6254c5
AK
16224 ac_option=$1
16225 ac_optarg=$2
16226 ac_shift=shift
16227 ;;
ad6254c5
AK
16228 esac
16229
16230 case $ac_option in
16231 # Handling of the options.
ad6254c5
AK
16232 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16233 ac_cs_recheck=: ;;
7a197a62 16234 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
ec6a6fbe 16235 $as_echo "$ac_cs_version"; exit ;;
7a197a62 16236 --debug | --debu | --deb | --de | --d | -d )
ad6254c5
AK
16237 debug=: ;;
16238 --file | --fil | --fi | --f )
16239 $ac_shift
ec6a6fbe
AK
16240 case $ac_optarg in
16241 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16242 esac
16243 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
ad6254c5
AK
16244 ac_need_defaults=false;;
16245 --header | --heade | --head | --hea )
16246 $ac_shift
ec6a6fbe
AK
16247 case $ac_optarg in
16248 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16249 esac
16250 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
ad6254c5 16251 ac_need_defaults=false;;
7a197a62
AK
16252 --he | --h)
16253 # Conflict between --help and --header
ec6a6fbe 16254 { $as_echo "$as_me: error: ambiguous option: $1
7a197a62
AK
16255Try \`$0 --help' for more information." >&2
16256 { (exit 1); exit 1; }; };;
16257 --help | --hel | -h )
ec6a6fbe 16258 $as_echo "$ac_cs_usage"; exit ;;
ad6254c5
AK
16259 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16260 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16261 ac_cs_silent=: ;;
16262
16263 # This is an error.
ec6a6fbe 16264 -*) { $as_echo "$as_me: error: unrecognized option: $1
7a197a62 16265Try \`$0 --help' for more information." >&2
ad6254c5
AK
16266 { (exit 1); exit 1; }; } ;;
16267
7a197a62
AK
16268 *) ac_config_targets="$ac_config_targets $1"
16269 ac_need_defaults=false ;;
ad6254c5
AK
16270
16271 esac
16272 shift
16273done
16274
16275ac_configure_extra_args=
16276
16277if $ac_cs_silent; then
16278 exec 6>/dev/null
16279 ac_configure_extra_args="$ac_configure_extra_args --silent"
16280fi
16281
16282_ACEOF
ec6a6fbe 16283cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5 16284if \$ac_cs_recheck; then
ec6a6fbe
AK
16285 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16286 shift
16287 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16288 CONFIG_SHELL='$SHELL'
7a197a62 16289 export CONFIG_SHELL
ec6a6fbe 16290 exec "\$@"
ad6254c5
AK
16291fi
16292
16293_ACEOF
ec6a6fbe 16294cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
16295exec 5>>config.log
16296{
16297 echo
16298 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16299## Running $as_me. ##
16300_ASBOX
ec6a6fbe 16301 $as_echo "$ac_log"
7a197a62 16302} >&5
ad6254c5 16303
7a197a62 16304_ACEOF
ec6a6fbe 16305cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7a197a62 16306_ACEOF
ad6254c5 16307
ec6a6fbe 16308cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
16309
16310# Handling of arguments.
ad6254c5
AK
16311for ac_config_target in $ac_config_targets
16312do
7a197a62
AK
16313 case $ac_config_target in
16314 "lib/misc/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;;
16315 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16316 "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;;
16317 "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;;
16318 "daemons/clvmd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;;
5d311afb 16319 "daemons/cmirrord/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/cmirrord/Makefile" ;;
93bd259b
AK
16320 "daemons/dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/Makefile" ;;
16321 "daemons/dmeventd/libdevmapper-event.pc") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/libdevmapper-event.pc" ;;
04f06bc9 16322 "daemons/dmeventd/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/Makefile" ;;
d3d98fdc 16323 "daemons/dmeventd/plugins/lvm2/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/lvm2/Makefile" ;;
93bd259b
AK
16324 "daemons/dmeventd/plugins/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/mirror/Makefile" ;;
16325 "daemons/dmeventd/plugins/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/snapshot/Makefile" ;;
7a197a62 16326 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
da05c479 16327 "doc/example.conf") CONFIG_FILES="$CONFIG_FILES doc/example.conf" ;;
db8b5af9 16328 "include/.symlinks") CONFIG_FILES="$CONFIG_FILES include/.symlinks" ;;
93bd259b
AK
16329 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
16330 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
7a197a62
AK
16331 "lib/format1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;;
16332 "lib/format_pool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;;
16333 "lib/locking/Makefile") CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;;
16334 "lib/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;;
ec6a6fbe 16335 "lib/misc/lvm-version.h") CONFIG_FILES="$CONFIG_FILES lib/misc/lvm-version.h" ;;
7a197a62 16336 "lib/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;;
93bd259b
AK
16337 "libdm/Makefile") CONFIG_FILES="$CONFIG_FILES libdm/Makefile" ;;
16338 "libdm/libdevmapper.pc") CONFIG_FILES="$CONFIG_FILES libdm/libdevmapper.pc" ;;
e0c64c6c 16339 "liblvm/Makefile") CONFIG_FILES="$CONFIG_FILES liblvm/Makefile" ;;
70046623 16340 "liblvm/liblvm2app.pc") CONFIG_FILES="$CONFIG_FILES liblvm/liblvm2app.pc" ;;
93bd259b
AK
16341 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
16342 "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
75ad7143 16343 "scripts/clvmd_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/clvmd_init_red_hat" ;;
81410c8f 16344 "scripts/cmirrord_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/cmirrord_init_red_hat" ;;
595eaf92 16345 "scripts/lvm2_monitoring_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_monitoring_init_red_hat" ;;
7a197a62 16346 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
93bd259b 16347 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
c7e363f9 16348 "test/api/Makefile") CONFIG_FILES="$CONFIG_FILES test/api/Makefile" ;;
7a197a62 16349 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
a5f46f6a 16350 "udev/Makefile") CONFIG_FILES="$CONFIG_FILES udev/Makefile" ;;
7a197a62 16351
ec6a6fbe
AK
16352 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16353$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
ad6254c5 16354 { (exit 1); exit 1; }; };;
80992638 16355 esac
ad6254c5
AK
16356done
16357
7a197a62 16358
ad6254c5
AK
16359# If the user did not use the arguments to specify the items to instantiate,
16360# then the envvar interface is used. Set only those that are not.
16361# We use the long form for the default assignment because of an extremely
16362# bizarre bug on SunOS 4.1.3.
16363if $ac_need_defaults; then
16364 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
72b2cb61 16365 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
ad6254c5
AK
16366fi
16367
16368# Have a temporary directory for convenience. Make it in the build tree
7a197a62 16369# simply because there is no reason against having it here, and in addition,
ad6254c5 16370# creating and moving files from /tmp can sometimes cause problems.
7a197a62
AK
16371# Hook for its removal unless debugging.
16372# Note that there is a small window in which the directory will not be cleaned:
16373# after its creation but before its name has been assigned to `$tmp'.
ad6254c5
AK
16374$debug ||
16375{
7a197a62
AK
16376 tmp=
16377 trap 'exit_status=$?
16378 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16379' 0
ad6254c5
AK
16380 trap '{ (exit 1); exit 1; }' 1 2 13 15
16381}
ad6254c5
AK
16382# Create a (secure) tmp directory for tmp files.
16383
16384{
7a197a62 16385 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
ad6254c5
AK
16386 test -n "$tmp" && test -d "$tmp"
16387} ||
16388{
7a197a62
AK
16389 tmp=./conf$$-$RANDOM
16390 (umask 077 && mkdir "$tmp")
ad6254c5
AK
16391} ||
16392{
ec6a6fbe 16393 $as_echo "$as_me: cannot create a temporary directory in ." >&2
ad6254c5
AK
16394 { (exit 1); exit 1; }
16395}
16396
ec6a6fbe
AK
16397# Set up the scripts for CONFIG_FILES section.
16398# No need to generate them if there are no CONFIG_FILES.
16399# This happens for instance with `./config.status config.h'.
1995c9ff 16400if test -n "$CONFIG_FILES"; then
7a197a62 16401
68f2de6d 16402
ec6a6fbe
AK
16403ac_cr='\r'
16404ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16405if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16406 ac_cs_awk_cr='\\r'
16407else
16408 ac_cs_awk_cr=$ac_cr
1995c9ff 16409fi
7a197a62 16410
ec6a6fbe 16411echo 'BEGIN {' >"$tmp/subs1.awk" &&
1995c9ff 16412_ACEOF
7a197a62 16413
8106cdd5 16414
ec6a6fbe
AK
16415{
16416 echo "cat >conf$$subs.awk <<_ACEOF" &&
16417 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16418 echo "_ACEOF"
16419} >conf$$subs.sh ||
16420 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16421$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16422 { (exit 1); exit 1; }; }
16423ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
1995c9ff
AK
16424ac_delim='%!_!# '
16425for ac_last_try in false false false false false :; do
ec6a6fbe
AK
16426 . ./conf$$subs.sh ||
16427 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16428$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16429 { (exit 1); exit 1; }; }
16430
16431 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16432 if test $ac_delim_n = $ac_delim_num; then
1995c9ff
AK
16433 break
16434 elif $ac_last_try; then
ec6a6fbe
AK
16435 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16436$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
1995c9ff
AK
16437 { (exit 1); exit 1; }; }
16438 else
16439 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16440 fi
16441done
ec6a6fbe
AK
16442rm -f conf$$subs.sh
16443
16444cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16445cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16446_ACEOF
16447sed -n '
16448h
16449s/^/S["/; s/!.*/"]=/
16450p
16451g
16452s/^[^!]*!//
16453:repl
16454t repl
16455s/'"$ac_delim"'$//
16456t delim
16457:nl
16458h
16459s/\(.\{148\}\).*/\1/
16460t more1
16461s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16462p
16463n
16464b repl
16465:more1
16466s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16467p
16468g
16469s/.\{148\}//
16470t nl
16471:delim
16472h
16473s/\(.\{148\}\).*/\1/
16474t more2
16475s/["\\]/\\&/g; s/^/"/; s/$/"/
16476p
16477b
16478:more2
16479s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16480p
16481g
16482s/.\{148\}//
16483t delim
16484' <conf$$subs.awk | sed '
16485/^[^""]/{
16486 N
16487 s/\n//
16488}
16489' >>$CONFIG_STATUS || ac_write_fail=1
16490rm -f conf$$subs.awk
16491cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16492_ACAWK
16493cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16494 for (key in S) S_is_set[key] = 1
16495 FS = "\a"
7a197a62 16496
ec6a6fbe
AK
16497}
16498{
16499 line = $ 0
16500 nfields = split(line, field, "@")
16501 substed = 0
16502 len = length(field[1])
16503 for (i = 2; i < nfields; i++) {
16504 key = field[i]
16505 keylen = length(key)
16506 if (S_is_set[key]) {
16507 value = S[key]
16508 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16509 len += length(value) + length(field[++i])
16510 substed = 1
16511 } else
16512 len += 1 + keylen
16513 }
16514
16515 print line
16516}
fddafd51 16517
ec6a6fbe 16518_ACAWK
1995c9ff 16519_ACEOF
ec6a6fbe
AK
16520cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16521if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16522 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16523else
16524 cat
16525fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16526 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
16527$as_echo "$as_me: error: could not setup config files machinery" >&2;}
16528 { (exit 1); exit 1; }; }
7a197a62
AK
16529_ACEOF
16530
7a197a62
AK
16531# VPATH may cause trouble with some makes, so we remove $(srcdir),
16532# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16533# trailing colons and then remove the whole line if VPATH becomes empty
16534# (actually we leave an empty line to preserve line numbers).
16535if test "x$srcdir" = x.; then
16536 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16537s/:*\$(srcdir):*/:/
16538s/:*\${srcdir}:*/:/
16539s/:*@srcdir@:*/:/
16540s/^\([^=]*=[ ]*\):*/\1/
16541s/:*$//
16542s/^[^=]*=[ ]*$//
16543}'
16544fi
16545
ec6a6fbe 16546cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
16547fi # test -n "$CONFIG_FILES"
16548
ec6a6fbe
AK
16549# Set up the scripts for CONFIG_HEADERS section.
16550# No need to generate them if there are no CONFIG_HEADERS.
16551# This happens for instance with `./config.status Makefile'.
16552if test -n "$CONFIG_HEADERS"; then
16553cat >"$tmp/defines.awk" <<\_ACAWK ||
16554BEGIN {
16555_ACEOF
16556
16557# Transform confdefs.h into an awk script `defines.awk', embedded as
16558# here-document in config.status, that substitutes the proper values into
16559# config.h.in to produce config.h.
16560
16561# Create a delimiter string that does not exist in confdefs.h, to ease
16562# handling of long lines.
16563ac_delim='%!_!# '
16564for ac_last_try in false false :; do
16565 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16566 if test -z "$ac_t"; then
16567 break
16568 elif $ac_last_try; then
16569 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
16570$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
16571 { (exit 1); exit 1; }; }
16572 else
16573 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16574 fi
16575done
16576
16577# For the awk script, D is an array of macro values keyed by name,
16578# likewise P contains macro parameters if any. Preserve backslash
16579# newline sequences.
16580
16581ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16582sed -n '
16583s/.\{148\}/&'"$ac_delim"'/g
16584t rset
16585:rset
16586s/^[ ]*#[ ]*define[ ][ ]*/ /
16587t def
16588d
16589:def
16590s/\\$//
16591t bsnl
16592s/["\\]/\\&/g
16593s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16594D["\1"]=" \3"/p
16595s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16596d
16597:bsnl
16598s/["\\]/\\&/g
16599s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16600D["\1"]=" \3\\\\\\n"\\/p
16601t cont
16602s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16603t cont
16604d
16605:cont
16606n
16607s/.\{148\}/&'"$ac_delim"'/g
16608t clear
16609:clear
16610s/\\$//
16611t bsnlc
16612s/["\\]/\\&/g; s/^/"/; s/$/"/p
16613d
16614:bsnlc
16615s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16616b cont
16617' <confdefs.h | sed '
16618s/'"$ac_delim"'/"\\\
16619"/g' >>$CONFIG_STATUS || ac_write_fail=1
16620
16621cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16622 for (key in D) D_is_set[key] = 1
16623 FS = "\a"
16624}
16625/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16626 line = \$ 0
16627 split(line, arg, " ")
16628 if (arg[1] == "#") {
16629 defundef = arg[2]
16630 mac1 = arg[3]
16631 } else {
16632 defundef = substr(arg[1], 2)
16633 mac1 = arg[2]
16634 }
16635 split(mac1, mac2, "(") #)
16636 macro = mac2[1]
16637 prefix = substr(line, 1, index(line, defundef) - 1)
16638 if (D_is_set[macro]) {
16639 # Preserve the white space surrounding the "#".
16640 print prefix "define", macro P[macro] D[macro]
16641 next
16642 } else {
16643 # Replace #undef with comments. This is necessary, for example,
16644 # in the case of _POSIX_SOURCE, which is predefined and required
16645 # on some systems where configure will not decide to define it.
16646 if (defundef == "undef") {
16647 print "/*", prefix defundef, macro, "*/"
16648 next
16649 }
16650 }
16651}
16652{ print }
16653_ACAWK
16654_ACEOF
16655cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16656 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
16657$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
16658 { (exit 1); exit 1; }; }
16659fi # test -n "$CONFIG_HEADERS"
16660
7a197a62 16661
ec6a6fbe
AK
16662eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
16663shift
16664for ac_tag
7a197a62
AK
16665do
16666 case $ac_tag in
16667 :[FHLC]) ac_mode=$ac_tag; continue;;
16668 esac
16669 case $ac_mode$ac_tag in
16670 :[FHL]*:*);;
ec6a6fbe
AK
16671 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
16672$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
7a197a62
AK
16673 { (exit 1); exit 1; }; };;
16674 :[FH]-) ac_tag=-:-;;
16675 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16676 esac
16677 ac_save_IFS=$IFS
16678 IFS=:
16679 set x $ac_tag
16680 IFS=$ac_save_IFS
16681 shift
16682 ac_file=$1
16683 shift
16684
16685 case $ac_mode in
16686 :L) ac_source=$1;;
16687 :[FH])
16688 ac_file_inputs=
16689 for ac_f
16690 do
16691 case $ac_f in
16692 -) ac_f="$tmp/stdin";;
16693 *) # Look for the file first in the build tree, then in the source tree
16694 # (if the path is not absolute). The absolute path cannot be DOS-style,
16695 # because $ac_f cannot contain `:'.
16696 test -f "$ac_f" ||
16697 case $ac_f in
16698 [\\/$]*) false;;
16699 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16700 esac ||
ec6a6fbe
AK
16701 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
16702$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
7a197a62
AK
16703 { (exit 1); exit 1; }; };;
16704 esac
ec6a6fbe
AK
16705 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16706 ac_file_inputs="$ac_file_inputs '$ac_f'"
7a197a62
AK
16707 done
16708
16709 # Let's still pretend it is `configure' which instantiates (i.e., don't
16710 # use $as_me), people would be surprised to read:
16711 # /* config.h. Generated by config.status. */
ec6a6fbe
AK
16712 configure_input='Generated from '`
16713 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16714 `' by configure.'
7a197a62
AK
16715 if test x"$ac_file" != x-; then
16716 configure_input="$ac_file. $configure_input"
ec6a6fbe
AK
16717 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
16718$as_echo "$as_me: creating $ac_file" >&6;}
7a197a62 16719 fi
ec6a6fbe
AK
16720 # Neutralize special characters interpreted by sed in replacement strings.
16721 case $configure_input in #(
16722 *\&* | *\|* | *\\* )
16723 ac_sed_conf_input=`$as_echo "$configure_input" |
16724 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16725 *) ac_sed_conf_input=$configure_input;;
16726 esac
7a197a62
AK
16727
16728 case $ac_tag in
ec6a6fbe
AK
16729 *:-:* | *:-) cat >"$tmp/stdin" \
16730 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16731$as_echo "$as_me: error: could not create $ac_file" >&2;}
16732 { (exit 1); exit 1; }; } ;;
7a197a62
AK
16733 esac
16734 ;;
80992638 16735 esac
8106cdd5 16736
7a197a62 16737 ac_dir=`$as_dirname -- "$ac_file" ||
ad6254c5 16738$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8a2fc586
AK
16739 X"$ac_file" : 'X\(//\)[^/]' \| \
16740 X"$ac_file" : 'X\(//\)$' \| \
7a197a62 16741 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 16742$as_echo X"$ac_file" |
7a197a62
AK
16743 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16744 s//\1/
16745 q
16746 }
16747 /^X\(\/\/\)[^/].*/{
16748 s//\1/
16749 q
16750 }
16751 /^X\(\/\/\)$/{
16752 s//\1/
16753 q
16754 }
16755 /^X\(\/\).*/{
16756 s//\1/
16757 q
16758 }
16759 s/.*/./; q'`
16760 { as_dir="$ac_dir"
16761 case $as_dir in #(
16762 -*) as_dir=./$as_dir;;
16763 esac
16764 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
ad6254c5 16765 as_dirs=
7a197a62
AK
16766 while :; do
16767 case $as_dir in #(
ec6a6fbe 16768 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7a197a62
AK
16769 *) as_qdir=$as_dir;;
16770 esac
16771 as_dirs="'$as_qdir' $as_dirs"
16772 as_dir=`$as_dirname -- "$as_dir" ||
ad6254c5 16773$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8a2fc586
AK
16774 X"$as_dir" : 'X\(//\)[^/]' \| \
16775 X"$as_dir" : 'X\(//\)$' \| \
7a197a62 16776 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 16777$as_echo X"$as_dir" |
7a197a62
AK
16778 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16779 s//\1/
16780 q
16781 }
16782 /^X\(\/\/\)[^/].*/{
16783 s//\1/
16784 q
16785 }
16786 /^X\(\/\/\)$/{
16787 s//\1/
16788 q
16789 }
16790 /^X\(\/\).*/{
16791 s//\1/
16792 q
16793 }
16794 s/.*/./; q'`
16795 test -d "$as_dir" && break
ad6254c5 16796 done
7a197a62 16797 test -z "$as_dirs" || eval "mkdir $as_dirs"
ec6a6fbe
AK
16798 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16799$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
ad6254c5 16800 { (exit 1); exit 1; }; }; }
ad6254c5
AK
16801 ac_builddir=.
16802
7a197a62
AK
16803case "$ac_dir" in
16804.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16805*)
ec6a6fbe 16806 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7a197a62 16807 # A ".." for each directory in $ac_dir_suffix.
ec6a6fbe 16808 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7a197a62
AK
16809 case $ac_top_builddir_sub in
16810 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16811 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16812 esac ;;
16813esac
16814ac_abs_top_builddir=$ac_pwd
16815ac_abs_builddir=$ac_pwd$ac_dir_suffix
16816# for backward compatibility:
16817ac_top_builddir=$ac_top_build_prefix
ad6254c5
AK
16818
16819case $srcdir in
7a197a62 16820 .) # We are building in place.
ad6254c5 16821 ac_srcdir=.
7a197a62
AK
16822 ac_top_srcdir=$ac_top_builddir_sub
16823 ac_abs_top_srcdir=$ac_pwd ;;
16824 [\\/]* | ?:[\\/]* ) # Absolute name.
ad6254c5 16825 ac_srcdir=$srcdir$ac_dir_suffix;
7a197a62
AK
16826 ac_top_srcdir=$srcdir
16827 ac_abs_top_srcdir=$srcdir ;;
16828 *) # Relative name.
16829 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16830 ac_top_srcdir=$ac_top_build_prefix$srcdir
16831 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
ad6254c5 16832esac
7a197a62 16833ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8a2fc586 16834
ad6254c5 16835
7a197a62
AK
16836 case $ac_mode in
16837 :F)
16838 #
16839 # CONFIG_FILE
16840 #
ad6254c5
AK
16841
16842 case $INSTALL in
16843 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7a197a62 16844 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
795ca3e5 16845 esac
fddafd51
ZK
16846 ac_MKDIR_P=$MKDIR_P
16847 case $MKDIR_P in
16848 [\\/$]* | ?:[\\/]* ) ;;
16849 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16850 esac
7a197a62 16851_ACEOF
795ca3e5 16852
ec6a6fbe 16853cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
16854# If the template does not know about datarootdir, expand it.
16855# FIXME: This hack should be removed a few years after 2.60.
16856ac_datarootdir_hack=; ac_datarootdir_seen=
16857
ec6a6fbe
AK
16858ac_sed_dataroot='
16859/datarootdir/ {
7a197a62
AK
16860 p
16861 q
16862}
16863/@datadir@/p
16864/@docdir@/p
16865/@infodir@/p
16866/@localedir@/p
16867/@mandir@/p
ec6a6fbe
AK
16868'
16869case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7a197a62
AK
16870*datarootdir*) ac_datarootdir_seen=yes;;
16871*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
ec6a6fbe
AK
16872 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16873$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
ad6254c5 16874_ACEOF
ec6a6fbe 16875cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7a197a62
AK
16876 ac_datarootdir_hack='
16877 s&@datadir@&$datadir&g
16878 s&@docdir@&$docdir&g
16879 s&@infodir@&$infodir&g
16880 s&@localedir@&$localedir&g
16881 s&@mandir@&$mandir&g
16882 s&\\\${datarootdir}&$datarootdir&g' ;;
16883esac
16884_ACEOF
16885
16886# Neutralize VPATH when `$srcdir' = `.'.
16887# Shell code in configure.ac might set extrasub.
16888# FIXME: do we really want to maintain this feature?
ec6a6fbe
AK
16889cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16890ac_sed_extra="$ac_vpsub
ad6254c5
AK
16891$extrasub
16892_ACEOF
ec6a6fbe 16893cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ad6254c5
AK
16894:t
16895/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
ec6a6fbe 16896s|@configure_input@|$ac_sed_conf_input|;t t
7a197a62 16897s&@top_builddir@&$ac_top_builddir_sub&;t t
ec6a6fbe 16898s&@top_build_prefix@&$ac_top_build_prefix&;t t
7a197a62
AK
16899s&@srcdir@&$ac_srcdir&;t t
16900s&@abs_srcdir@&$ac_abs_srcdir&;t t
16901s&@top_srcdir@&$ac_top_srcdir&;t t
16902s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16903s&@builddir@&$ac_builddir&;t t
16904s&@abs_builddir@&$ac_abs_builddir&;t t
16905s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16906s&@INSTALL@&$ac_INSTALL&;t t
fddafd51 16907s&@MKDIR_P@&$ac_MKDIR_P&;t t
7a197a62 16908$ac_datarootdir_hack
ec6a6fbe
AK
16909"
16910eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16911 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16912$as_echo "$as_me: error: could not create $ac_file" >&2;}
16913 { (exit 1); exit 1; }; }
7a197a62
AK
16914
16915test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16916 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16917 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
ec6a6fbe 16918 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7a197a62 16919which seems to be undefined. Please make sure it is defined." >&5
ec6a6fbe 16920$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7a197a62
AK
16921which seems to be undefined. Please make sure it is defined." >&2;}
16922
16923 rm -f "$tmp/stdin"
72b2cb61 16924 case $ac_file in
ec6a6fbe
AK
16925 -) cat "$tmp/out" && rm -f "$tmp/out";;
16926 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16927 esac \
16928 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16929$as_echo "$as_me: error: could not create $ac_file" >&2;}
16930 { (exit 1); exit 1; }; }
7a197a62
AK
16931 ;;
16932 :H)
16933 #
16934 # CONFIG_HEADER
16935 #
72b2cb61 16936 if test x"$ac_file" != x-; then
ec6a6fbe
AK
16937 {
16938 $as_echo "/* $configure_input */" \
16939 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16940 } >"$tmp/config.h" \
16941 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16942$as_echo "$as_me: error: could not create $ac_file" >&2;}
16943 { (exit 1); exit 1; }; }
16944 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16945 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16946$as_echo "$as_me: $ac_file is unchanged" >&6;}
72b2cb61 16947 else
ec6a6fbe
AK
16948 rm -f "$ac_file"
16949 mv "$tmp/config.h" "$ac_file" \
16950 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16951$as_echo "$as_me: error: could not create $ac_file" >&2;}
16952 { (exit 1); exit 1; }; }
72b2cb61
AK
16953 fi
16954 else
ec6a6fbe
AK
16955 $as_echo "/* $configure_input */" \
16956 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16957 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
16958$as_echo "$as_me: error: could not create -" >&2;}
16959 { (exit 1); exit 1; }; }
72b2cb61 16960 fi
7a197a62
AK
16961 ;;
16962
16963
16964 esac
16965
16966done # for ac_tag
795ca3e5 16967
795ca3e5 16968
ad6254c5
AK
16969{ (exit 0); exit 0; }
16970_ACEOF
795ca3e5 16971chmod +x $CONFIG_STATUS
ad6254c5
AK
16972ac_clean_files=$ac_clean_files_save
16973
ec6a6fbe
AK
16974test $ac_write_fail = 0 ||
16975 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
16976$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
16977 { (exit 1); exit 1; }; }
16978
ad6254c5
AK
16979
16980# configure is writing to config.log, and then calls config.status.
16981# config.status does its own redirection, appending to config.log.
16982# Unfortunately, on DOS this fails, as config.log is still kept open
16983# by configure, so config.status won't be able to write to it; its
16984# output is simply discarded. So we exec the FD to /dev/null,
16985# effectively closing config.log, so it can be properly (re)opened and
16986# appended to by config.status. When coming back to configure, we
16987# need to make the FD available again.
16988if test "$no_create" != yes; then
16989 ac_cs_success=:
16990 ac_config_status_args=
16991 test "$silent" = yes &&
16992 ac_config_status_args="$ac_config_status_args --quiet"
16993 exec 5>/dev/null
16994 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16995 exec 5>>config.log
16996 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16997 # would make configure fail if this is the last instruction.
16998 $ac_cs_success || { (exit 1); exit 1; }
16999fi
ec6a6fbe
AK
17000if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17001 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17002$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17003fi
795ca3e5 17004
2dc95e1c
AK
17005
17006if test x$ODIRECT != xyes; then
ec6a6fbe
AK
17007 { $as_echo "$as_me:$LINENO: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5
17008$as_echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;}
2dc95e1c 17009fi
This page took 2.256475 seconds and 5 git commands to generate.