]> sourceware.org Git - lvm2.git/blame - configure
Run both locking_type 1 and 3 tests (forgot to uncomment locking_type 1 before
[lvm2.git] / configure
CommitLineData
795ca3e5 1#! /bin/sh
795ca3e5 2# Guess values for system-dependent variables and create Makefiles.
ec6a6fbe 3# Generated by GNU Autoconf 2.63.
795ca3e5 4#
7a197a62 5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
ec6a6fbe 6# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
795ca3e5
AK
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
ad6254c5
AK
9## --------------------- ##
10## M4sh Initialization. ##
11## --------------------- ##
12
25fbec5b
AK
13# Be more Bourne compatible
14DUALCASE=1; export DUALCASE # for MKS sh
ad6254c5
AK
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
ec6a6fbe 18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
ad6254c5
AK
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
7a197a62
AK
21 setopt NO_GLOB_SUBST
22else
25fbec5b
AK
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25esac
26
7a197a62 27fi
25fbec5b
AK
28
29
7a197a62
AK
30
31
32# PATH needs CR
33# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
39
ec6a6fbe
AK
40as_nl='
41'
42export as_nl
43# Printing a long string crashes Solaris 7 /usr/bin/printf.
44as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
68f2de6d 54 else
ec6a6fbe
AK
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68f2de6d 67 fi
ec6a6fbe
AK
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
ad6254c5
AK
79fi
80
81# Support unset when possible.
8a2fc586 82if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
ad6254c5
AK
83 as_unset=unset
84else
85 as_unset=false
86fi
87
88
7a197a62
AK
89# IFS
90# We need space, tab and new line, in precisely that order. Quoting is
91# there to prevent editors from complaining about space-tab.
92# (If _AS_PATH_WALK were called with IFS unset, it would disable word
93# splitting by setting IFS to empty value.)
7a197a62
AK
94IFS=" "" $as_nl"
95
96# Find who we are. Look in the path if we contain no directory separator.
97case $0 in
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100for as_dir in $PATH
101do
102 IFS=$as_save_IFS
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105done
106IFS=$as_save_IFS
107
108 ;;
109esac
110# We did not find ourselves, most probably we were run as `sh COMMAND'
111# in which case we are not to be found in the path.
112if test "x$as_myself" = x; then
113 as_myself=$0
114fi
115if test ! -f "$as_myself"; then
ec6a6fbe 116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7a197a62
AK
117 { (exit 1); exit 1; }
118fi
119
ad6254c5 120# Work around bugs in pre-3.0 UWIN ksh.
7a197a62
AK
121for as_var in ENV MAIL MAILPATH
122do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123done
ad6254c5
AK
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
ec6a6fbe
AK
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
ad6254c5
AK
133
134# Required to use basename.
7a197a62
AK
135if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
137 as_expr=expr
138else
139 as_expr=false
140fi
141
7a197a62 142if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
ad6254c5
AK
143 as_basename=basename
144else
145 as_basename=false
146fi
147
148
149# Name of the executable.
7a197a62 150as_me=`$as_basename -- "$0" ||
ad6254c5
AK
151$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
7a197a62 153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 154$as_echo X/"$0" |
7a197a62
AK
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 s//\1/
157 q
158 }
159 /^X\/\(\/\/\)$/{
160 s//\1/
161 q
162 }
163 /^X\/\(\/\).*/{
164 s//\1/
165 q
166 }
167 s/.*/./; q'`
ad6254c5 168
7a197a62
AK
169# CDPATH.
170$as_unset CDPATH
ad6254c5 171
ad6254c5 172
7a197a62
AK
173if test "x$CONFIG_SHELL" = x; then
174 if (eval ":") 2>/dev/null; then
175 as_have_required=yes
176else
177 as_have_required=no
ad6254c5
AK
178fi
179
ec6a6fbe 180 if test $as_have_required = yes && (eval ":
7a197a62
AK
181(as_func_return () {
182 (exit \$1)
183}
184as_func_success () {
185 as_func_return 0
186}
187as_func_failure () {
188 as_func_return 1
189}
190as_func_ret_success () {
191 return 0
192}
193as_func_ret_failure () {
194 return 1
195}
ad6254c5 196
7a197a62
AK
197exitcode=0
198if as_func_success; then
199 :
200else
201 exitcode=1
202 echo as_func_success failed.
203fi
ad6254c5 204
7a197a62
AK
205if as_func_failure; then
206 exitcode=1
207 echo as_func_failure succeeded.
208fi
209
210if as_func_ret_success; then
211 :
212else
213 exitcode=1
214 echo as_func_ret_success failed.
215fi
216
217if as_func_ret_failure; then
218 exitcode=1
219 echo as_func_ret_failure succeeded.
220fi
221
222if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223 :
224else
225 exitcode=1
226 echo positional parameters were not saved.
227fi
228
229test \$exitcode = 0) || { (exit 1); exit 1; }
230
231(
232 as_lineno_1=\$LINENO
233 as_lineno_2=\$LINENO
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236") 2> /dev/null; then
237 :
238else
239 as_candidate_shells=
ad6254c5 240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25fbec5b 241for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
ad6254c5
AK
242do
243 IFS=$as_save_IFS
244 test -z "$as_dir" && as_dir=.
7a197a62 245 case $as_dir in
ad6254c5 246 /*)
7a197a62
AK
247 for as_base in sh bash ksh sh5; do
248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249 done;;
250 esac
251done
252IFS=$as_save_IFS
253
254
255 for as_shell in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev/null <<\_ASEOF
259if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 emulate sh
261 NULLCMD=:
ec6a6fbe 262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7a197a62
AK
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
265 setopt NO_GLOB_SUBST
266else
25fbec5b
AK
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
269esac
270
7a197a62 271fi
25fbec5b 272
7a197a62
AK
273
274:
275_ASEOF
276}; then
277 CONFIG_SHELL=$as_shell
278 as_have_required=yes
279 if { "$as_shell" 2> /dev/null <<\_ASEOF
280if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281 emulate sh
282 NULLCMD=:
ec6a6fbe 283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7a197a62
AK
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
286 setopt NO_GLOB_SUBST
287else
25fbec5b
AK
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
290esac
291
7a197a62 292fi
25fbec5b 293
7a197a62
AK
294
295:
296(as_func_return () {
297 (exit $1)
298}
299as_func_success () {
300 as_func_return 0
301}
302as_func_failure () {
303 as_func_return 1
304}
305as_func_ret_success () {
306 return 0
307}
308as_func_ret_failure () {
309 return 1
310}
311
312exitcode=0
313if as_func_success; then
314 :
315else
316 exitcode=1
317 echo as_func_success failed.
318fi
319
320if as_func_failure; then
321 exitcode=1
322 echo as_func_failure succeeded.
323fi
324
325if as_func_ret_success; then
326 :
327else
328 exitcode=1
329 echo as_func_ret_success failed.
330fi
331
332if as_func_ret_failure; then
333 exitcode=1
334 echo as_func_ret_failure succeeded.
335fi
336
337if ( set x; as_func_ret_success y && test x = "$1" ); then
338 :
339else
340 exitcode=1
341 echo positional parameters were not saved.
342fi
343
344test $exitcode = 0) || { (exit 1); exit 1; }
345
346(
ad6254c5
AK
347 as_lineno_1=$LINENO
348 as_lineno_2=$LINENO
ad6254c5 349 test "x$as_lineno_1" != "x$as_lineno_2" &&
7a197a62
AK
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
351
352_ASEOF
353}; then
354 break
355fi
356
357fi
358
359 done
360
361 if test "x$CONFIG_SHELL" != x; then
362 for as_var in BASH_ENV ENV
ec6a6fbe
AK
363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364 done
365 export CONFIG_SHELL
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
7a197a62
AK
367fi
368
369
370 if test $as_have_required = no; then
371 echo This script requires a shell more modern than all the
372 echo shells that I found on your system. Please install a
373 echo modern shell, or manually run the script under such a
374 echo shell if you do have one.
375 { (exit 1); exit 1; }
376fi
377
378
379fi
380
381fi
382
383
384
385(eval "as_func_return () {
386 (exit \$1)
387}
388as_func_success () {
389 as_func_return 0
390}
391as_func_failure () {
392 as_func_return 1
393}
394as_func_ret_success () {
395 return 0
396}
397as_func_ret_failure () {
398 return 1
399}
400
401exitcode=0
402if as_func_success; then
403 :
404else
405 exitcode=1
406 echo as_func_success failed.
407fi
408
409if as_func_failure; then
410 exitcode=1
411 echo as_func_failure succeeded.
412fi
413
414if as_func_ret_success; then
415 :
416else
417 exitcode=1
418 echo as_func_ret_success failed.
419fi
420
421if as_func_ret_failure; then
422 exitcode=1
423 echo as_func_ret_failure succeeded.
424fi
425
426if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
427 :
428else
429 exitcode=1
430 echo positional parameters were not saved.
431fi
432
433test \$exitcode = 0") || {
434 echo No shell found that supports shell functions.
ec6a6fbe
AK
435 echo Please tell bug-autoconf@gnu.org about your system,
436 echo including any error possibly output before this message.
437 echo This can help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
7a197a62
AK
439}
440
441
442
443 as_lineno_1=$LINENO
444 as_lineno_2=$LINENO
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
ad6254c5
AK
447
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
7a197a62
AK
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
454 # case at line end.
ad6254c5 455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7a197a62
AK
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
458 sed -n '
459 p
460 /[$]LINENO/=
461 ' <$as_myself |
ad6254c5 462 sed '
7a197a62
AK
463 s/[$]LINENO.*/&-/
464 t lineno
465 b
466 :lineno
ad6254c5 467 N
7a197a62
AK
468 :loop
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
ad6254c5 470 t loop
7a197a62 471 s/-\n.*//
ad6254c5 472 ' >$as_me.lineno &&
7a197a62 473 chmod +x "$as_me.lineno" ||
ec6a6fbe 474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
ad6254c5
AK
475 { (exit 1); exit 1; }; }
476
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
7a197a62
AK
479 # original and so on. Autoconf is especially sensitive to this).
480 . "./$as_me.lineno"
ad6254c5
AK
481 # Exit status is that of the last command.
482 exit
483}
795ca3e5 484
ad6254c5 485
7a197a62
AK
486if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487 as_dirname=dirname
488else
489 as_dirname=false
490fi
491
492ECHO_C= ECHO_N= ECHO_T=
493case `echo -n x` in
494-n*)
495 case `echo 'x\c'` in
496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
497 *) ECHO_C='\c';;
498 esac;;
499*)
500 ECHO_N='-n';;
ad6254c5 501esac
7a197a62
AK
502if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
504 as_expr=expr
505else
506 as_expr=false
507fi
508
509rm -f conf$$ conf$$.exe conf$$.file
7a197a62
AK
510if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
512else
513 rm -f conf$$.dir
ec6a6fbe
AK
514 mkdir conf$$.dir 2>/dev/null
515fi
516if (echo >conf$$.file) 2>/dev/null; then
517 if ln -s conf$$.file conf$$ 2>/dev/null; then
518 as_ln_s='ln -s'
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524 as_ln_s='cp -p'
525 elif ln conf$$.file conf$$ 2>/dev/null; then
526 as_ln_s=ln
527 else
ad6254c5 528 as_ln_s='cp -p'
ec6a6fbe 529 fi
ad6254c5
AK
530else
531 as_ln_s='cp -p'
532fi
7a197a62
AK
533rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534rmdir conf$$.dir 2>/dev/null
ad6254c5
AK
535
536if mkdir -p . 2>/dev/null; then
537 as_mkdir_p=:
538else
8a2fc586 539 test -d ./-p && rmdir ./-p
ad6254c5
AK
540 as_mkdir_p=false
541fi
542
25fbec5b
AK
543if test -x / >/dev/null 2>&1; then
544 as_test_x='test -x'
7a197a62 545else
25fbec5b
AK
546 if ls -dL / >/dev/null 2>&1; then
547 as_ls_L_option=L
548 else
549 as_ls_L_option=
550 fi
551 as_test_x='
552 eval sh -c '\''
553 if test -d "$1"; then
ec6a6fbe 554 test -d "$1/.";
25fbec5b
AK
555 else
556 case $1 in
ec6a6fbe 557 -*)set "./$1";;
25fbec5b
AK
558 esac;
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
561 '\'' sh
562 '
7a197a62 563fi
25fbec5b 564as_executable_p=$as_test_x
ad6254c5
AK
565
566# Sed expression to map a string onto a valid CPP name.
8a2fc586 567as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
568
569# Sed expression to map a string onto a valid variable name.
8a2fc586 570as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
571
572
ad6254c5 573
7a197a62 574exec 7<&0 </dev/null 6>&1
ad6254c5
AK
575
576# Name of the host.
577# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578# so uname gets run too.
579ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
580
ad6254c5
AK
581#
582# Initializations.
583#
795ca3e5 584ac_default_prefix=/usr/local
7a197a62 585ac_clean_files=
ad6254c5 586ac_config_libobj_dir=.
7a197a62 587LIBOBJS=
ad6254c5
AK
588cross_compiling=no
589subdirs=
590MFLAGS=
591MAKEFLAGS=
592SHELL=${CONFIG_SHELL-/bin/sh}
593
ad6254c5
AK
594# Identity of this package.
595PACKAGE_NAME=
596PACKAGE_TARNAME=
597PACKAGE_VERSION=
598PACKAGE_STRING=
599PACKAGE_BUGREPORT=
600
601ac_unique_file="lib/device/dev-cache.h"
602# Factoring default headers for most tests.
603ac_includes_default="\
604#include <stdio.h>
25fbec5b 605#ifdef HAVE_SYS_TYPES_H
ad6254c5
AK
606# include <sys/types.h>
607#endif
25fbec5b 608#ifdef HAVE_SYS_STAT_H
ad6254c5
AK
609# include <sys/stat.h>
610#endif
25fbec5b 611#ifdef STDC_HEADERS
ad6254c5
AK
612# include <stdlib.h>
613# include <stddef.h>
614#else
25fbec5b 615# ifdef HAVE_STDLIB_H
ad6254c5
AK
616# include <stdlib.h>
617# endif
618#endif
25fbec5b
AK
619#ifdef HAVE_STRING_H
620# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
ad6254c5
AK
621# include <memory.h>
622# endif
623# include <string.h>
624#endif
25fbec5b 625#ifdef HAVE_STRINGS_H
ad6254c5
AK
626# include <strings.h>
627#endif
25fbec5b 628#ifdef HAVE_INTTYPES_H
ad6254c5 629# include <inttypes.h>
ad6254c5 630#endif
25fbec5b 631#ifdef HAVE_STDINT_H
7a197a62
AK
632# include <stdint.h>
633#endif
25fbec5b 634#ifdef HAVE_UNISTD_H
ad6254c5
AK
635# include <unistd.h>
636#endif"
637
795ca3e5 638ac_default_prefix=/usr
ec6a6fbe 639ac_subst_vars='LTLIBOBJS
68f2de6d 640usrsbindir
ec6a6fbe 641usrlibdir
a5f46f6a
AK
642udevdir
643udev_prefix
ec6a6fbe
AK
644tmpdir
645kernelvsn
646missingkernel
647kerneldir
648interface
0878503f 649UDEV_SYNC
a5f46f6a 650UDEV_RULES
db724a44 651UDEV_LIBS
ec6a6fbe
AK
652STATIC_LINK
653STATICDIR
654SNAPSHOTS
e1b8a236 655SELINUX_LIBS
539f4a77 656READLINE_LIBS
f30875db 657PTHREAD_LIBS
ec6a6fbe
AK
658POOL
659PKGCONFIG
660OWNER
661MIRRORS
662LVM_RELEASE_DATE
663LVM_RELEASE
664LVM_PATCHLEVEL
665LVM_MINOR
666LVM_MAJOR
bf456146 667LVM_LIBAPI
ec6a6fbe 668LVM_VERSION
ec6a6fbe
AK
669LVM1_FALLBACK
670LVM1
671LOCALEDIR
672LIB_SUFFIX
673LDDEPS
674JOBS
675INTL_PACKAGE
676INTL
ec6a6fbe
AK
677HAVE_REALTIME
678HAVE_LIBDL
679GROUP
680FSADM
681DM_LIB_PATCHLEVEL
682DM_LIB_VERSION
683DM_IOCTLS
684DM_DEVICE_UID
685DM_DEVICE_MODE
686DM_DEVICE_GID
687DM_COMPAT
688DMEVENTD
19a2c6e0 689DL_LIBS
ec6a6fbe
AK
690DEVMAPPER
691DEBUG
692COPTIMISE_FLAG
e2997b73 693CONFDIR
ec6a6fbe
AK
694CMDLIB
695CLVMD
696CLUSTER
697CLDWHOLEARCHIVE
698CLDNOWHOLEARCHIVE
699CLDFLAGS
700BUILD_DMEVENTD
66fd4529 701BUILD_CMIRRORD
572fefeb 702APPLIB
ec6a6fbe
AK
703MODPROBE_CMD
704MSGFMT
705LVM2CMD_LIB
572fefeb 706LVM2APP_LIB
ec6a6fbe
AK
707GENHTML
708LCOV
90c80887
AK
709SACKPT_LIBS
710SACKPT_CFLAGS
a946372e
AK
711DLM_LIBS
712DLM_CFLAGS
e2997b73
AK
713CPG_LIBS
714CPG_CFLAGS
715CONFDB_LIBS
716CONFDB_CFLAGS
a946372e
AK
717SALCK_LIBS
718SALCK_CFLAGS
e2997b73
AK
719QUORUM_LIBS
720QUORUM_CFLAGS
a946372e
AK
721COROSYNC_LIBS
722COROSYNC_CFLAGS
723CMAN_LIBS
724CMAN_CFLAGS
725GULM_LIBS
726GULM_CFLAGS
727CCS_LIBS
728CCS_CFLAGS
729PKGCONFIGINIT_LIBS
730PKGCONFIGINIT_CFLAGS
e2997b73 731PKG_CONFIG
ec6a6fbe
AK
732POW_LIB
733LIBOBJS
734ALLOCA
735CSCOPE_CMD
736CFLOW_CMD
737RANLIB
738MKDIR_P
739SET_MAKE
740LN_S
741INSTALL_DATA
742INSTALL_SCRIPT
743INSTALL_PROGRAM
744EGREP
745GREP
746CPP
747OBJEXT
748EXEEXT
749ac_ct_CC
750CPPFLAGS
751LDFLAGS
752CFLAGS
753CC
754AWK
755SED
756target_os
757target_vendor
758target_cpu
759target
760host_os
761host_vendor
762host_cpu
763host
764build_os
765build_vendor
766build_cpu
767build
768target_alias
769host_alias
770build_alias
771LIBS
772ECHO_T
773ECHO_N
774ECHO_C
775DEFS
776mandir
777localedir
778libdir
779psdir
780pdfdir
781dvidir
782htmldir
783infodir
784docdir
785oldincludedir
786includedir
787localstatedir
788sharedstatedir
789sysconfdir
790datadir
791datarootdir
792libexecdir
793sbindir
794bindir
795program_transform_name
796prefix
797exec_prefix
798PACKAGE_BUGREPORT
799PACKAGE_STRING
800PACKAGE_VERSION
801PACKAGE_TARNAME
802PACKAGE_NAME
803PATH_SEPARATOR
804SHELL'
ad6254c5 805ac_subst_files=''
ec6a6fbe
AK
806ac_user_opts='
807enable_option_checking
808enable_static_link
809with_user
810with_group
811with_device_uid
812with_device_gid
813with_device_mode
814enable_lvm1_fallback
815with_lvm1
816with_pool
817with_cluster
818with_snapshots
819with_mirrors
820enable_readline
821enable_realtime
822with_clvmd
66fd4529
AK
823enable_cmirrord
824with_cmirrord_pidfile
ec6a6fbe
AK
825enable_debug
826with_optimisation
827enable_profiling
828enable_devmapper
a5f46f6a
AK
829enable_udev_sync
830enable_udev_rules
ec6a6fbe 831enable_compat
95eaa683 832enable_units_compat
ec6a6fbe
AK
833enable_ioctl
834enable_o_direct
572fefeb 835enable_applib
ec6a6fbe
AK
836enable_cmdlib
837enable_pkgconfig
838enable_fsadm
839enable_dmeventd
840enable_selinux
841enable_nls
842with_localedir
843with_confdir
844with_staticdir
845with_usrlibdir
846with_usrsbindir
a5f46f6a 847with_udev_prefix
78ce7acc 848with_udevdir
ec6a6fbe
AK
849with_dmeventd_pidfile
850with_dmeventd_path
851with_interface
852'
7a197a62
AK
853 ac_precious_vars='build_alias
854host_alias
855target_alias
856CC
857CFLAGS
858LDFLAGS
25fbec5b 859LIBS
7a197a62 860CPPFLAGS
e2997b73
AK
861CPP
862PKG_CONFIG
a946372e
AK
863PKGCONFIGINIT_CFLAGS
864PKGCONFIGINIT_LIBS
865CCS_CFLAGS
866CCS_LIBS
867GULM_CFLAGS
868GULM_LIBS
869CMAN_CFLAGS
870CMAN_LIBS
871COROSYNC_CFLAGS
872COROSYNC_LIBS
e2997b73
AK
873QUORUM_CFLAGS
874QUORUM_LIBS
a946372e
AK
875SALCK_CFLAGS
876SALCK_LIBS
e2997b73
AK
877CONFDB_CFLAGS
878CONFDB_LIBS
879CPG_CFLAGS
a946372e
AK
880CPG_LIBS
881DLM_CFLAGS
90c80887
AK
882DLM_LIBS
883SACKPT_CFLAGS
884SACKPT_LIBS'
7a197a62 885
795ca3e5
AK
886
887# Initialize some variables set by options.
ad6254c5
AK
888ac_init_help=
889ac_init_version=false
ec6a6fbe
AK
890ac_unrecognized_opts=
891ac_unrecognized_sep=
795ca3e5
AK
892# The variables have the same names as the options, with
893# dashes changed to underlines.
ad6254c5 894cache_file=/dev/null
795ca3e5 895exec_prefix=NONE
795ca3e5 896no_create=
795ca3e5
AK
897no_recursion=
898prefix=NONE
899program_prefix=NONE
900program_suffix=NONE
901program_transform_name=s,x,x,
902silent=
903site=
904srcdir=
795ca3e5
AK
905verbose=
906x_includes=NONE
907x_libraries=NONE
ad6254c5
AK
908
909# Installation directory options.
910# These are left unexpanded so users can "make install exec_prefix=/foo"
911# and all the variables that are supposed to be based on exec_prefix
912# by default will actually change.
913# Use braces instead of parens because sh, perl, etc. also accept them.
7a197a62 914# (The list follows the same order as the GNU Coding Standards.)
795ca3e5
AK
915bindir='${exec_prefix}/bin'
916sbindir='${exec_prefix}/sbin'
917libexecdir='${exec_prefix}/libexec'
7a197a62
AK
918datarootdir='${prefix}/share'
919datadir='${datarootdir}'
795ca3e5
AK
920sysconfdir='${prefix}/etc'
921sharedstatedir='${prefix}/com'
922localstatedir='${prefix}/var'
795ca3e5
AK
923includedir='${prefix}/include'
924oldincludedir='/usr/include'
7a197a62
AK
925docdir='${datarootdir}/doc/${PACKAGE}'
926infodir='${datarootdir}/info'
927htmldir='${docdir}'
928dvidir='${docdir}'
929pdfdir='${docdir}'
930psdir='${docdir}'
931libdir='${exec_prefix}/lib'
932localedir='${datarootdir}/locale'
933mandir='${datarootdir}/man'
795ca3e5 934
795ca3e5 935ac_prev=
7a197a62 936ac_dashdash=
795ca3e5
AK
937for ac_option
938do
795ca3e5
AK
939 # If the previous option needs an argument, assign it.
940 if test -n "$ac_prev"; then
7a197a62 941 eval $ac_prev=\$ac_option
795ca3e5
AK
942 ac_prev=
943 continue
944 fi
945
7a197a62
AK
946 case $ac_option in
947 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
948 *) ac_optarg=yes ;;
949 esac
795ca3e5
AK
950
951 # Accept the important Cygnus configure options, so we can diagnose typos.
952
7a197a62
AK
953 case $ac_dashdash$ac_option in
954 --)
955 ac_dashdash=yes ;;
795ca3e5
AK
956
957 -bindir | --bindir | --bindi | --bind | --bin | --bi)
958 ac_prev=bindir ;;
959 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
ad6254c5 960 bindir=$ac_optarg ;;
795ca3e5
AK
961
962 -build | --build | --buil | --bui | --bu)
ad6254c5 963 ac_prev=build_alias ;;
795ca3e5 964 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
ad6254c5 965 build_alias=$ac_optarg ;;
795ca3e5
AK
966
967 -cache-file | --cache-file | --cache-fil | --cache-fi \
968 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
969 ac_prev=cache_file ;;
970 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
971 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
ad6254c5
AK
972 cache_file=$ac_optarg ;;
973
974 --config-cache | -C)
975 cache_file=config.cache ;;
795ca3e5 976
7a197a62 977 -datadir | --datadir | --datadi | --datad)
795ca3e5 978 ac_prev=datadir ;;
7a197a62 979 -datadir=* | --datadir=* | --datadi=* | --datad=*)
ad6254c5 980 datadir=$ac_optarg ;;
795ca3e5 981
7a197a62
AK
982 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
983 | --dataroo | --dataro | --datar)
984 ac_prev=datarootdir ;;
985 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
986 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
987 datarootdir=$ac_optarg ;;
988
795ca3e5 989 -disable-* | --disable-*)
ec6a6fbe 990 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
795ca3e5 991 # Reject names that are not valid shell variable names.
ec6a6fbe
AK
992 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
993 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
ad6254c5 994 { (exit 1); exit 1; }; }
ec6a6fbe
AK
995 ac_useropt_orig=$ac_useropt
996 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
997 case $ac_user_opts in
998 *"
999"enable_$ac_useropt"
1000"*) ;;
1001 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1002 ac_unrecognized_sep=', ';;
1003 esac
1004 eval enable_$ac_useropt=no ;;
7a197a62
AK
1005
1006 -docdir | --docdir | --docdi | --doc | --do)
1007 ac_prev=docdir ;;
1008 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1009 docdir=$ac_optarg ;;
1010
1011 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1012 ac_prev=dvidir ;;
1013 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1014 dvidir=$ac_optarg ;;
795ca3e5
AK
1015
1016 -enable-* | --enable-*)
ec6a6fbe 1017 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
795ca3e5 1018 # Reject names that are not valid shell variable names.
ec6a6fbe
AK
1019 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1020 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
ad6254c5 1021 { (exit 1); exit 1; }; }
ec6a6fbe
AK
1022 ac_useropt_orig=$ac_useropt
1023 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1024 case $ac_user_opts in
1025 *"
1026"enable_$ac_useropt"
1027"*) ;;
1028 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1029 ac_unrecognized_sep=', ';;
1030 esac
1031 eval enable_$ac_useropt=\$ac_optarg ;;
795ca3e5
AK
1032
1033 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1034 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1035 | --exec | --exe | --ex)
1036 ac_prev=exec_prefix ;;
1037 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1038 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1039 | --exec=* | --exe=* | --ex=*)
ad6254c5 1040 exec_prefix=$ac_optarg ;;
795ca3e5
AK
1041
1042 -gas | --gas | --ga | --g)
1043 # Obsolete; use --with-gas.
1044 with_gas=yes ;;
1045
ad6254c5
AK
1046 -help | --help | --hel | --he | -h)
1047 ac_init_help=long ;;
1048 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1049 ac_init_help=recursive ;;
1050 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1051 ac_init_help=short ;;
795ca3e5
AK
1052
1053 -host | --host | --hos | --ho)
ad6254c5 1054 ac_prev=host_alias ;;
795ca3e5 1055 -host=* | --host=* | --hos=* | --ho=*)
ad6254c5 1056 host_alias=$ac_optarg ;;
795ca3e5 1057
7a197a62
AK
1058 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1059 ac_prev=htmldir ;;
1060 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1061 | --ht=*)
1062 htmldir=$ac_optarg ;;
1063
795ca3e5
AK
1064 -includedir | --includedir | --includedi | --included | --include \
1065 | --includ | --inclu | --incl | --inc)
1066 ac_prev=includedir ;;
1067 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1068 | --includ=* | --inclu=* | --incl=* | --inc=*)
ad6254c5 1069 includedir=$ac_optarg ;;
795ca3e5
AK
1070
1071 -infodir | --infodir | --infodi | --infod | --info | --inf)
1072 ac_prev=infodir ;;
1073 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
ad6254c5 1074 infodir=$ac_optarg ;;
795ca3e5
AK
1075
1076 -libdir | --libdir | --libdi | --libd)
1077 ac_prev=libdir ;;
1078 -libdir=* | --libdir=* | --libdi=* | --libd=*)
ad6254c5 1079 libdir=$ac_optarg ;;
795ca3e5
AK
1080
1081 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1082 | --libexe | --libex | --libe)
1083 ac_prev=libexecdir ;;
1084 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1085 | --libexe=* | --libex=* | --libe=*)
ad6254c5 1086 libexecdir=$ac_optarg ;;
795ca3e5 1087
7a197a62
AK
1088 -localedir | --localedir | --localedi | --localed | --locale)
1089 ac_prev=localedir ;;
1090 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1091 localedir=$ac_optarg ;;
1092
795ca3e5 1093 -localstatedir | --localstatedir | --localstatedi | --localstated \
7a197a62 1094 | --localstate | --localstat | --localsta | --localst | --locals)
795ca3e5
AK
1095 ac_prev=localstatedir ;;
1096 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
7a197a62 1097 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
ad6254c5 1098 localstatedir=$ac_optarg ;;
795ca3e5
AK
1099
1100 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1101 ac_prev=mandir ;;
1102 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
ad6254c5 1103 mandir=$ac_optarg ;;
795ca3e5
AK
1104
1105 -nfp | --nfp | --nf)
1106 # Obsolete; use --without-fp.
1107 with_fp=no ;;
1108
1109 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
ad6254c5 1110 | --no-cr | --no-c | -n)
795ca3e5
AK
1111 no_create=yes ;;
1112
1113 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1114 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1115 no_recursion=yes ;;
1116
1117 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1118 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1119 | --oldin | --oldi | --old | --ol | --o)
1120 ac_prev=oldincludedir ;;
1121 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1122 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1123 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
ad6254c5 1124 oldincludedir=$ac_optarg ;;
795ca3e5
AK
1125
1126 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1127 ac_prev=prefix ;;
1128 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
ad6254c5 1129 prefix=$ac_optarg ;;
795ca3e5
AK
1130
1131 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1132 | --program-pre | --program-pr | --program-p)
1133 ac_prev=program_prefix ;;
1134 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1135 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
ad6254c5 1136 program_prefix=$ac_optarg ;;
795ca3e5
AK
1137
1138 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1139 | --program-suf | --program-su | --program-s)
1140 ac_prev=program_suffix ;;
1141 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1142 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
ad6254c5 1143 program_suffix=$ac_optarg ;;
795ca3e5
AK
1144
1145 -program-transform-name | --program-transform-name \
1146 | --program-transform-nam | --program-transform-na \
1147 | --program-transform-n | --program-transform- \
1148 | --program-transform | --program-transfor \
1149 | --program-transfo | --program-transf \
1150 | --program-trans | --program-tran \
1151 | --progr-tra | --program-tr | --program-t)
1152 ac_prev=program_transform_name ;;
1153 -program-transform-name=* | --program-transform-name=* \
1154 | --program-transform-nam=* | --program-transform-na=* \
1155 | --program-transform-n=* | --program-transform-=* \
1156 | --program-transform=* | --program-transfor=* \
1157 | --program-transfo=* | --program-transf=* \
1158 | --program-trans=* | --program-tran=* \
1159 | --progr-tra=* | --program-tr=* | --program-t=*)
ad6254c5 1160 program_transform_name=$ac_optarg ;;
795ca3e5 1161
7a197a62
AK
1162 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1163 ac_prev=pdfdir ;;
1164 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1165 pdfdir=$ac_optarg ;;
1166
1167 -psdir | --psdir | --psdi | --psd | --ps)
1168 ac_prev=psdir ;;
1169 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1170 psdir=$ac_optarg ;;
1171
795ca3e5
AK
1172 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1173 | -silent | --silent | --silen | --sile | --sil)
1174 silent=yes ;;
1175
1176 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1177 ac_prev=sbindir ;;
1178 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1179 | --sbi=* | --sb=*)
ad6254c5 1180 sbindir=$ac_optarg ;;
795ca3e5
AK
1181
1182 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1183 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1184 | --sharedst | --shareds | --shared | --share | --shar \
1185 | --sha | --sh)
1186 ac_prev=sharedstatedir ;;
1187 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1188 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1189 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1190 | --sha=* | --sh=*)
ad6254c5 1191 sharedstatedir=$ac_optarg ;;
795ca3e5
AK
1192
1193 -site | --site | --sit)
1194 ac_prev=site ;;
1195 -site=* | --site=* | --sit=*)
ad6254c5 1196 site=$ac_optarg ;;
795ca3e5
AK
1197
1198 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1199 ac_prev=srcdir ;;
1200 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
ad6254c5 1201 srcdir=$ac_optarg ;;
795ca3e5
AK
1202
1203 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1204 | --syscon | --sysco | --sysc | --sys | --sy)
1205 ac_prev=sysconfdir ;;
1206 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1207 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
ad6254c5 1208 sysconfdir=$ac_optarg ;;
795ca3e5
AK
1209
1210 -target | --target | --targe | --targ | --tar | --ta | --t)
ad6254c5 1211 ac_prev=target_alias ;;
795ca3e5 1212 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
ad6254c5 1213 target_alias=$ac_optarg ;;
795ca3e5
AK
1214
1215 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1216 verbose=yes ;;
1217
ad6254c5
AK
1218 -version | --version | --versio | --versi | --vers | -V)
1219 ac_init_version=: ;;
795ca3e5
AK
1220
1221 -with-* | --with-*)
ec6a6fbe 1222 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
795ca3e5 1223 # Reject names that are not valid shell variable names.
ec6a6fbe
AK
1224 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1225 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
ad6254c5 1226 { (exit 1); exit 1; }; }
ec6a6fbe
AK
1227 ac_useropt_orig=$ac_useropt
1228 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1229 case $ac_user_opts in
1230 *"
1231"with_$ac_useropt"
1232"*) ;;
1233 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1234 ac_unrecognized_sep=', ';;
1235 esac
1236 eval with_$ac_useropt=\$ac_optarg ;;
795ca3e5
AK
1237
1238 -without-* | --without-*)
ec6a6fbe 1239 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
795ca3e5 1240 # Reject names that are not valid shell variable names.
ec6a6fbe
AK
1241 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1242 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
ad6254c5 1243 { (exit 1); exit 1; }; }
ec6a6fbe
AK
1244 ac_useropt_orig=$ac_useropt
1245 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1246 case $ac_user_opts in
1247 *"
1248"with_$ac_useropt"
1249"*) ;;
1250 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1251 ac_unrecognized_sep=', ';;
1252 esac
1253 eval with_$ac_useropt=no ;;
795ca3e5
AK
1254
1255 --x)
1256 # Obsolete; use --with-x.
1257 with_x=yes ;;
1258
1259 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1260 | --x-incl | --x-inc | --x-in | --x-i)
1261 ac_prev=x_includes ;;
1262 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1263 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
ad6254c5 1264 x_includes=$ac_optarg ;;
795ca3e5
AK
1265
1266 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1267 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1268 ac_prev=x_libraries ;;
1269 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1270 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
ad6254c5 1271 x_libraries=$ac_optarg ;;
795ca3e5 1272
ec6a6fbe 1273 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
ad6254c5
AK
1274Try \`$0 --help' for more information." >&2
1275 { (exit 1); exit 1; }; }
795ca3e5
AK
1276 ;;
1277
ad6254c5
AK
1278 *=*)
1279 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1280 # Reject names that are not valid shell variable names.
1281 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
ec6a6fbe 1282 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
ad6254c5 1283 { (exit 1); exit 1; }; }
7a197a62 1284 eval $ac_envvar=\$ac_optarg
ad6254c5
AK
1285 export $ac_envvar ;;
1286
795ca3e5 1287 *)
ad6254c5 1288 # FIXME: should be removed in autoconf 3.0.
ec6a6fbe 1289 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
ad6254c5 1290 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
ec6a6fbe 1291 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
ad6254c5 1292 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
795ca3e5
AK
1293 ;;
1294
1295 esac
1296done
1297
1298if test -n "$ac_prev"; then
ad6254c5 1299 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
ec6a6fbe 1300 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
ad6254c5 1301 { (exit 1); exit 1; }; }
795ca3e5 1302fi
795ca3e5 1303
ec6a6fbe
AK
1304if test -n "$ac_unrecognized_opts"; then
1305 case $enable_option_checking in
1306 no) ;;
1307 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1308 { (exit 1); exit 1; }; } ;;
1309 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1310 esac
1311fi
1312
1313# Check all directory arguments for consistency.
7a197a62
AK
1314for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1315 datadir sysconfdir sharedstatedir localstatedir includedir \
1316 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1317 libdir localedir mandir
795ca3e5 1318do
7a197a62 1319 eval ac_val=\$$ac_var
ec6a6fbe
AK
1320 # Remove trailing slashes.
1321 case $ac_val in
1322 */ )
1323 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1324 eval $ac_var=\$ac_val;;
1325 esac
1326 # Be sure to have absolute directory names.
ad6254c5 1327 case $ac_val in
7a197a62
AK
1328 [\\/$]* | ?:[\\/]* ) continue;;
1329 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
795ca3e5 1330 esac
ec6a6fbe 1331 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
7a197a62 1332 { (exit 1); exit 1; }; }
795ca3e5
AK
1333done
1334
ad6254c5
AK
1335# There might be people who depend on the old broken behavior: `$host'
1336# used to hold the argument of --host etc.
1337# FIXME: To remove some day.
1338build=$build_alias
1339host=$host_alias
1340target=$target_alias
1341
1342# FIXME: To remove some day.
1343if test "x$host_alias" != x; then
1344 if test "x$build_alias" = x; then
1345 cross_compiling=maybe
ec6a6fbe 1346 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
ad6254c5
AK
1347 If a cross compiler is detected then cross compile mode will be used." >&2
1348 elif test "x$build_alias" != "x$host_alias"; then
1349 cross_compiling=yes
1350 fi
1351fi
8106cdd5 1352
ad6254c5
AK
1353ac_tool_prefix=
1354test -n "$host_alias" && ac_tool_prefix=$host_alias-
1355
1356test "$silent" = yes && exec 6>/dev/null
795ca3e5 1357
795ca3e5 1358
7a197a62
AK
1359ac_pwd=`pwd` && test -n "$ac_pwd" &&
1360ac_ls_di=`ls -di .` &&
1361ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
ec6a6fbe 1362 { $as_echo "$as_me: error: working directory cannot be determined" >&2
7a197a62
AK
1363 { (exit 1); exit 1; }; }
1364test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
ec6a6fbe 1365 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
7a197a62
AK
1366 { (exit 1); exit 1; }; }
1367
1368
795ca3e5
AK
1369# Find the source files, if location was not specified.
1370if test -z "$srcdir"; then
1371 ac_srcdir_defaulted=yes
7a197a62 1372 # Try the directory containing this script, then the parent directory.
ec6a6fbe
AK
1373 ac_confdir=`$as_dirname -- "$as_myself" ||
1374$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1375 X"$as_myself" : 'X\(//\)[^/]' \| \
1376 X"$as_myself" : 'X\(//\)$' \| \
1377 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1378$as_echo X"$as_myself" |
7a197a62
AK
1379 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1380 s//\1/
1381 q
1382 }
1383 /^X\(\/\/\)[^/].*/{
1384 s//\1/
1385 q
1386 }
1387 /^X\(\/\/\)$/{
1388 s//\1/
1389 q
1390 }
1391 /^X\(\/\).*/{
1392 s//\1/
1393 q
1394 }
1395 s/.*/./; q'`
795ca3e5 1396 srcdir=$ac_confdir
7a197a62 1397 if test ! -r "$srcdir/$ac_unique_file"; then
795ca3e5
AK
1398 srcdir=..
1399 fi
1400else
1401 ac_srcdir_defaulted=no
1402fi
7a197a62
AK
1403if test ! -r "$srcdir/$ac_unique_file"; then
1404 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
ec6a6fbe 1405 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
ad6254c5 1406 { (exit 1); exit 1; }; }
795ca3e5 1407fi
7a197a62
AK
1408ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1409ac_abs_confdir=`(
ec6a6fbe 1410 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
ad6254c5 1411 { (exit 1); exit 1; }; }
7a197a62
AK
1412 pwd)`
1413# When building in place, set srcdir=.
1414if test "$ac_abs_confdir" = "$ac_pwd"; then
1415 srcdir=.
1416fi
1417# Remove unnecessary trailing slashes from srcdir.
1418# Double slashes in file names in object file debugging info
1419# mess up M-x gdb in Emacs.
1420case $srcdir in
1421*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1422esac
1423for ac_var in $ac_precious_vars; do
1424 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1425 eval ac_env_${ac_var}_value=\$${ac_var}
1426 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1427 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1428done
ad6254c5
AK
1429
1430#
1431# Report the --help message.
1432#
1433if test "$ac_init_help" = "long"; then
1434 # Omit some internal or obsolete options to make the list less imposing.
1435 # This message is too long to be a string in the A/UX 3.1 sh.
1436 cat <<_ACEOF
1437\`configure' configures this package to adapt to many kinds of systems.
1438
1439Usage: $0 [OPTION]... [VAR=VALUE]...
1440
1441To assign environment variables (e.g., CC, CFLAGS...), specify them as
1442VAR=VALUE. See below for descriptions of some of the useful variables.
1443
1444Defaults for the options are specified in brackets.
1445
1446Configuration:
1447 -h, --help display this help and exit
1448 --help=short display options specific to this package
1449 --help=recursive display the short help of all the included packages
1450 -V, --version display version information and exit
1451 -q, --quiet, --silent do not print \`checking...' messages
1452 --cache-file=FILE cache test results in FILE [disabled]
1453 -C, --config-cache alias for \`--cache-file=config.cache'
1454 -n, --no-create do not create output files
1455 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1456
ad6254c5
AK
1457Installation directories:
1458 --prefix=PREFIX install architecture-independent files in PREFIX
ec6a6fbe 1459 [$ac_default_prefix]
ad6254c5 1460 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
ec6a6fbe 1461 [PREFIX]
ad6254c5
AK
1462
1463By default, \`make install' will install all the files in
1464\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1465an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1466for instance \`--prefix=\$HOME'.
1467
1468For better control, use the options below.
1469
1470Fine tuning of the installation directories:
ec6a6fbe
AK
1471 --bindir=DIR user executables [EPREFIX/bin]
1472 --sbindir=DIR system admin executables [EPREFIX/sbin]
1473 --libexecdir=DIR program executables [EPREFIX/libexec]
1474 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1475 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1476 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1477 --libdir=DIR object code libraries [EPREFIX/lib]
1478 --includedir=DIR C header files [PREFIX/include]
1479 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1480 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1481 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1482 --infodir=DIR info documentation [DATAROOTDIR/info]
1483 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1484 --mandir=DIR man documentation [DATAROOTDIR/man]
1485 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1486 --htmldir=DIR html documentation [DOCDIR]
1487 --dvidir=DIR dvi documentation [DOCDIR]
1488 --pdfdir=DIR pdf documentation [DOCDIR]
1489 --psdir=DIR ps documentation [DOCDIR]
ad6254c5
AK
1490_ACEOF
1491
1492 cat <<\_ACEOF
1493
1494System types:
1495 --build=BUILD configure for building on BUILD [guessed]
1496 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1497 --target=TARGET configure for building compilers for TARGET [HOST]
1498_ACEOF
1499fi
1500
1501if test -n "$ac_init_help"; then
1502
1503 cat <<\_ACEOF
1504
1505Optional Features:
ec6a6fbe 1506 --disable-option-checking ignore unrecognized --enable/--with options
ad6254c5
AK
1507 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1508 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
9c961554
MB
1509 --enable-static_link Use this to link the tools to their libraries
1510 statically. Default is dynamic linking
ad6254c5
AK
1511 --enable-lvm1_fallback Use this to fall back and use LVM1 binaries if
1512 device-mapper is missing from the kernel
1b523347 1513 --disable-readline Disable readline support
89044bc0 1514 --enable-realtime Enable realtime clock support
66fd4529 1515 --enable-cmirrord Enable the cluster mirror log daemon
ad6254c5 1516 --enable-debug Enable debugging
5556819a 1517 --enable-profiling Gather gcov profiling data
93bd259b 1518 --disable-devmapper Disable LVM2 device-mapper interaction
a5f46f6a
AK
1519 --enable-udev_sync Enable synchronisation with udev processing
1520 --enable-udev_rules Install rule files needed for udev synchronisation
93bd259b 1521 --enable-compat Enable support for old device-mapper versions
95eaa683
AK
1522 --enable-units-compat Enable output compatibility with old versions that
1523 that don't use KiB-style unit suffixes
93bd259b 1524 --disable-driver Disable calls to device-mapper in the kernel
ad6254c5 1525 --disable-o_direct Disable O_DIRECT
572fefeb 1526 --enable-applib Build application library
ad6254c5 1527 --enable-cmdlib Build shared command library
93bd259b 1528 --enable-pkgconfig Install pkgconfig support
c9274524 1529 --disable-fsadm Disable fsadm
15d91f5a 1530 --enable-dmeventd Enable the device-mapper event daemon
d0191583 1531 --disable-selinux Disable selinux support
ad6254c5
AK
1532 --enable-nls Enable Native Language Support
1533
1534Optional Packages:
1535 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1536 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
39dabc84
FDN
1537 --with-user=USER Set the owner of installed files [USER=]
1538 --with-group=GROUP Set the group owner of installed files [GROUP=]
24bbc4d7
AK
1539 --with-device-uid=UID Set the owner used for new device nodes [UID=0]
1540 --with-device-gid=UID Set the group used for new device nodes [GID=0]
93bd259b 1541 --with-device-mode=MODE Set the mode used for new device nodes [MODE=0600]
ad6254c5
AK
1542 --with-lvm1=TYPE LVM1 metadata support: internal/shared/none
1543 TYPE=internal
1544 --with-pool=TYPE GFS pool read-only support: internal/shared/none
1545 TYPE=internal
1546 --with-cluster=TYPE Cluster LVM locking support: internal/shared/none
1547 TYPE=internal
1548 --with-snapshots=TYPE Snapshot support: internal/shared/none
1549 TYPE=internal
1550 --with-mirrors=TYPE Mirror support: internal/shared/none
1551 TYPE=internal
a946372e 1552 --with-clvmd=TYPE Build cluster LVM Daemon.
8c222979 1553 The following cluster manager combinations are valid:
a946372e
AK
1554 * cman,gulm (RHEL4 or equivalent)
1555 * cman (RHEL5 or equivalent)
1556 * cman,corosync,openais (or selection of them)
1557 * all (autodetect)
1558 * none (disable build)
a266258f 1559 TYPE=none
66fd4529 1560 --with-cmirrord-pidfile=PATH cmirrord pidfile [/var/run/cmirrord.pid]
d0191583
JM
1561 --with-optimisation=OPT C optimisation flag [OPT=-O2]
1562 --with-localedir=DIR Translation files in DIR [PREFIX/share/locale]
a5f46f6a
AK
1563 --with-confdir=DIR Configuration files in DIR [/etc]
1564 --with-staticdir=DIR Static binary in DIR [EPREFIX/sbin]
68f2de6d
AK
1565 --with-usrlibdir=DIR
1566 --with-usrsbindir=DIR
a5f46f6a 1567 --with-udev-prefix=UPREFIX Install udev rule files in UPREFIX [EPREFIX]
78ce7acc 1568 --with-udevdir=DIR udev rules in DIR [UPREFIX/lib/udev/rules.d]
93bd259b 1569 --with-dmeventd-pidfile=PATH dmeventd pidfile [/var/run/dmeventd.pid]
a5f46f6a 1570 --with-dmeventd-path=PATH dmeventd path [EPREFIX/sbin/dmeventd]
93bd259b 1571 --with-interface=IFACE Choose kernel interface (ioctl) [ioctl]
ad6254c5
AK
1572
1573Some influential environment variables:
1574 CC C compiler command
1575 CFLAGS C compiler flags
1576 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1577 nonstandard directory <lib dir>
25fbec5b 1578 LIBS libraries to pass to the linker, e.g. -l<library>
7a197a62
AK
1579 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1580 you have headers in a nonstandard directory <include dir>
ad6254c5 1581 CPP C preprocessor
e2997b73 1582 PKG_CONFIG path to pkg-config utility
a946372e
AK
1583 PKGCONFIGINIT_CFLAGS
1584 C compiler flags for PKGCONFIGINIT, overriding pkg-config
1585 PKGCONFIGINIT_LIBS
1586 linker flags for PKGCONFIGINIT, overriding pkg-config
1587 CCS_CFLAGS C compiler flags for CCS, overriding pkg-config
1588 CCS_LIBS linker flags for CCS, overriding pkg-config
1589 GULM_CFLAGS C compiler flags for GULM, overriding pkg-config
1590 GULM_LIBS linker flags for GULM, overriding pkg-config
1591 CMAN_CFLAGS C compiler flags for CMAN, overriding pkg-config
1592 CMAN_LIBS linker flags for CMAN, overriding pkg-config
1593 COROSYNC_CFLAGS
1594 C compiler flags for COROSYNC, overriding pkg-config
1595 COROSYNC_LIBS
1596 linker flags for COROSYNC, overriding pkg-config
e2997b73
AK
1597 QUORUM_CFLAGS
1598 C compiler flags for QUORUM, overriding pkg-config
1599 QUORUM_LIBS linker flags for QUORUM, overriding pkg-config
a946372e
AK
1600 SALCK_CFLAGS
1601 C compiler flags for SALCK, overriding pkg-config
1602 SALCK_LIBS linker flags for SALCK, overriding pkg-config
e2997b73
AK
1603 CONFDB_CFLAGS
1604 C compiler flags for CONFDB, overriding pkg-config
1605 CONFDB_LIBS linker flags for CONFDB, overriding pkg-config
1606 CPG_CFLAGS C compiler flags for CPG, overriding pkg-config
1607 CPG_LIBS linker flags for CPG, overriding pkg-config
a946372e
AK
1608 DLM_CFLAGS C compiler flags for DLM, overriding pkg-config
1609 DLM_LIBS linker flags for DLM, overriding pkg-config
90c80887
AK
1610 SACKPT_CFLAGS
1611 C compiler flags for SACKPT, overriding pkg-config
1612 SACKPT_LIBS linker flags for SACKPT, overriding pkg-config
ad6254c5
AK
1613
1614Use these variables to override the choices made by `configure' or to help
1615it to find libraries and programs with nonstandard names/locations.
1616
1617_ACEOF
7a197a62 1618ac_status=$?
ad6254c5
AK
1619fi
1620
1621if test "$ac_init_help" = "recursive"; then
1622 # If there are subdirs, report their specific --help.
ad6254c5 1623 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
ec6a6fbe
AK
1624 test -d "$ac_dir" ||
1625 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1626 continue
ad6254c5
AK
1627 ac_builddir=.
1628
7a197a62
AK
1629case "$ac_dir" in
1630.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1631*)
ec6a6fbe 1632 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7a197a62 1633 # A ".." for each directory in $ac_dir_suffix.
ec6a6fbe 1634 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7a197a62
AK
1635 case $ac_top_builddir_sub in
1636 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1637 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1638 esac ;;
1639esac
1640ac_abs_top_builddir=$ac_pwd
1641ac_abs_builddir=$ac_pwd$ac_dir_suffix
1642# for backward compatibility:
1643ac_top_builddir=$ac_top_build_prefix
ad6254c5
AK
1644
1645case $srcdir in
7a197a62 1646 .) # We are building in place.
ad6254c5 1647 ac_srcdir=.
7a197a62
AK
1648 ac_top_srcdir=$ac_top_builddir_sub
1649 ac_abs_top_srcdir=$ac_pwd ;;
1650 [\\/]* | ?:[\\/]* ) # Absolute name.
ad6254c5 1651 ac_srcdir=$srcdir$ac_dir_suffix;
7a197a62
AK
1652 ac_top_srcdir=$srcdir
1653 ac_abs_top_srcdir=$srcdir ;;
1654 *) # Relative name.
1655 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1656 ac_top_srcdir=$ac_top_build_prefix$srcdir
1657 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8a2fc586 1658esac
7a197a62
AK
1659ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1660
1661 cd "$ac_dir" || { ac_status=$?; continue; }
1662 # Check for guested configure.
1663 if test -f "$ac_srcdir/configure.gnu"; then
1664 echo &&
1665 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1666 elif test -f "$ac_srcdir/configure"; then
1667 echo &&
1668 $SHELL "$ac_srcdir/configure" --help=recursive
ad6254c5 1669 else
ec6a6fbe 1670 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
7a197a62
AK
1671 fi || ac_status=$?
1672 cd "$ac_pwd" || { ac_status=$?; break; }
ad6254c5
AK
1673 done
1674fi
1675
7a197a62 1676test -n "$ac_init_help" && exit $ac_status
ad6254c5
AK
1677if $ac_init_version; then
1678 cat <<\_ACEOF
7a197a62 1679configure
ec6a6fbe 1680generated by GNU Autoconf 2.63
ad6254c5 1681
7a197a62 1682Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
ec6a6fbe 16832002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
ad6254c5
AK
1684This configure script is free software; the Free Software Foundation
1685gives unlimited permission to copy, distribute and modify it.
1686_ACEOF
7a197a62 1687 exit
ad6254c5 1688fi
7a197a62 1689cat >config.log <<_ACEOF
ad6254c5
AK
1690This file contains any messages produced by compilers while
1691running configure, to aid debugging if configure makes a mistake.
1692
1693It was created by $as_me, which was
ec6a6fbe 1694generated by GNU Autoconf 2.63. Invocation command line was
ad6254c5
AK
1695
1696 $ $0 $@
1697
1698_ACEOF
7a197a62 1699exec 5>>config.log
ad6254c5
AK
1700{
1701cat <<_ASUNAME
1702## --------- ##
1703## Platform. ##
1704## --------- ##
1705
1706hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1707uname -m = `(uname -m) 2>/dev/null || echo unknown`
1708uname -r = `(uname -r) 2>/dev/null || echo unknown`
1709uname -s = `(uname -s) 2>/dev/null || echo unknown`
1710uname -v = `(uname -v) 2>/dev/null || echo unknown`
1711
1712/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1713/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1714
1715/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1716/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1717/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
7a197a62 1718/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
ad6254c5
AK
1719/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1720/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1721/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1722
1723_ASUNAME
1724
1725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1726for as_dir in $PATH
1727do
1728 IFS=$as_save_IFS
1729 test -z "$as_dir" && as_dir=.
ec6a6fbe 1730 $as_echo "PATH: $as_dir"
ad6254c5 1731done
7a197a62 1732IFS=$as_save_IFS
ad6254c5
AK
1733
1734} >&5
1735
1736cat >&5 <<_ACEOF
1737
1738
1739## ----------- ##
1740## Core tests. ##
1741## ----------- ##
1742
1743_ACEOF
1744
1745
1746# Keep a trace of the command line.
1747# Strip out --no-create and --no-recursion so they do not pile up.
1748# Strip out --silent because we don't want to record it for future runs.
1749# Also quote any args containing shell meta-characters.
1750# Make two passes to allow for proper duplicate-argument suppression.
1751ac_configure_args=
1752ac_configure_args0=
1753ac_configure_args1=
ad6254c5
AK
1754ac_must_keep_next=false
1755for ac_pass in 1 2
1756do
1757 for ac_arg
1758 do
1759 case $ac_arg in
1760 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1761 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1762 | -silent | --silent | --silen | --sile | --sil)
1763 continue ;;
7a197a62 1764 *\'*)
ec6a6fbe 1765 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
ad6254c5
AK
1766 esac
1767 case $ac_pass in
1768 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1769 2)
1770 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1771 if test $ac_must_keep_next = true; then
8a2fc586 1772 ac_must_keep_next=false # Got value, back to normal.
ad6254c5 1773 else
8a2fc586
AK
1774 case $ac_arg in
1775 *=* | --config-cache | -C | -disable-* | --disable-* \
1776 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1777 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1778 | -with-* | --with-* | -without-* | --without-* | --x)
1779 case "$ac_configure_args0 " in
1780 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1781 esac
1782 ;;
1783 -* ) ac_must_keep_next=true ;;
1784 esac
ad6254c5 1785 fi
7a197a62 1786 ac_configure_args="$ac_configure_args '$ac_arg'"
ad6254c5
AK
1787 ;;
1788 esac
1789 done
1790done
1791$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1792$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1793
1794# When interrupted or exit'd, cleanup temporary files, and complete
1795# config.log. We remove comments because anyway the quotes in there
1796# would cause problems or look ugly.
7a197a62
AK
1797# WARNING: Use '\'' to represent an apostrophe within the trap.
1798# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
ad6254c5
AK
1799trap 'exit_status=$?
1800 # Save into config.log some information that might help in debugging.
1801 {
1802 echo
1803
1804 cat <<\_ASBOX
1805## ---------------- ##
1806## Cache variables. ##
1807## ---------------- ##
1808_ASBOX
1809 echo
1810 # The following way of writing the cache mishandles newlines in values,
7a197a62
AK
1811(
1812 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1813 eval ac_val=\$$ac_var
1814 case $ac_val in #(
1815 *${as_nl}*)
1816 case $ac_var in #(
ec6a6fbe
AK
1817 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1818$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7a197a62
AK
1819 esac
1820 case $ac_var in #(
1821 _ | IFS | as_nl) ;; #(
ec6a6fbe 1822 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7a197a62
AK
1823 *) $as_unset $ac_var ;;
1824 esac ;;
1825 esac
1826 done
ad6254c5 1827 (set) 2>&1 |
7a197a62
AK
1828 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1829 *${as_nl}ac_space=\ *)
ad6254c5 1830 sed -n \
7a197a62
AK
1831 "s/'\''/'\''\\\\'\'''\''/g;
1832 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1833 ;; #(
ad6254c5 1834 *)
7a197a62 1835 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
ad6254c5 1836 ;;
7a197a62
AK
1837 esac |
1838 sort
1839)
ad6254c5
AK
1840 echo
1841
1842 cat <<\_ASBOX
1843## ----------------- ##
1844## Output variables. ##
1845## ----------------- ##
1846_ASBOX
1847 echo
1848 for ac_var in $ac_subst_vars
1849 do
7a197a62
AK
1850 eval ac_val=\$$ac_var
1851 case $ac_val in
ec6a6fbe 1852 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
7a197a62 1853 esac
ec6a6fbe 1854 $as_echo "$ac_var='\''$ac_val'\''"
ad6254c5
AK
1855 done | sort
1856 echo
1857
1858 if test -n "$ac_subst_files"; then
1859 cat <<\_ASBOX
7a197a62
AK
1860## ------------------- ##
1861## File substitutions. ##
1862## ------------------- ##
ad6254c5
AK
1863_ASBOX
1864 echo
1865 for ac_var in $ac_subst_files
1866 do
7a197a62
AK
1867 eval ac_val=\$$ac_var
1868 case $ac_val in
ec6a6fbe 1869 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
7a197a62 1870 esac
ec6a6fbe 1871 $as_echo "$ac_var='\''$ac_val'\''"
ad6254c5
AK
1872 done | sort
1873 echo
1874 fi
1875
1876 if test -s confdefs.h; then
1877 cat <<\_ASBOX
1878## ----------- ##
1879## confdefs.h. ##
1880## ----------- ##
1881_ASBOX
1882 echo
7a197a62 1883 cat confdefs.h
ad6254c5
AK
1884 echo
1885 fi
1886 test "$ac_signal" != 0 &&
ec6a6fbe
AK
1887 $as_echo "$as_me: caught signal $ac_signal"
1888 $as_echo "$as_me: exit $exit_status"
ad6254c5 1889 } >&5
7a197a62
AK
1890 rm -f core *.core core.conftest.* &&
1891 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
ad6254c5 1892 exit $exit_status
7a197a62 1893' 0
ad6254c5
AK
1894for ac_signal in 1 2 13 15; do
1895 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1896done
1897ac_signal=0
1898
1899# confdefs.h avoids OS command line length limits that DEFS can exceed.
7a197a62 1900rm -f -r conftest* confdefs.h
ad6254c5
AK
1901
1902# Predefined preprocessor variables.
1903
1904cat >>confdefs.h <<_ACEOF
1905#define PACKAGE_NAME "$PACKAGE_NAME"
1906_ACEOF
1907
1908
1909cat >>confdefs.h <<_ACEOF
1910#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1911_ACEOF
1912
1913
1914cat >>confdefs.h <<_ACEOF
1915#define PACKAGE_VERSION "$PACKAGE_VERSION"
1916_ACEOF
8106cdd5 1917
ad6254c5
AK
1918
1919cat >>confdefs.h <<_ACEOF
1920#define PACKAGE_STRING "$PACKAGE_STRING"
1921_ACEOF
1922
1923
1924cat >>confdefs.h <<_ACEOF
1925#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1926_ACEOF
1927
1928
1929# Let the site file select an alternate cache file if it wants to.
ec6a6fbe
AK
1930# Prefer an explicitly selected file to automatically selected ones.
1931ac_site_file1=NONE
1932ac_site_file2=NONE
7a197a62 1933if test -n "$CONFIG_SITE"; then
ec6a6fbe 1934 ac_site_file1=$CONFIG_SITE
7a197a62 1935elif test "x$prefix" != xNONE; then
ec6a6fbe
AK
1936 ac_site_file1=$prefix/share/config.site
1937 ac_site_file2=$prefix/etc/config.site
7a197a62 1938else
ec6a6fbe
AK
1939 ac_site_file1=$ac_default_prefix/share/config.site
1940 ac_site_file2=$ac_default_prefix/etc/config.site
795ca3e5 1941fi
ec6a6fbe 1942for ac_site_file in "$ac_site_file1" "$ac_site_file2"
7a197a62 1943do
ec6a6fbe 1944 test "x$ac_site_file" = xNONE && continue
795ca3e5 1945 if test -r "$ac_site_file"; then
ec6a6fbe
AK
1946 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1947$as_echo "$as_me: loading site script $ac_site_file" >&6;}
ad6254c5 1948 sed 's/^/| /' "$ac_site_file" >&5
795ca3e5
AK
1949 . "$ac_site_file"
1950 fi
1951done
1952
1953if test -r "$cache_file"; then
ad6254c5
AK
1954 # Some versions of bash will fail to source /dev/null (special
1955 # files actually), so we avoid doing that.
1956 if test -f "$cache_file"; then
ec6a6fbe
AK
1957 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1958$as_echo "$as_me: loading cache $cache_file" >&6;}
ad6254c5 1959 case $cache_file in
7a197a62
AK
1960 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1961 *) . "./$cache_file";;
ad6254c5
AK
1962 esac
1963 fi
795ca3e5 1964else
ec6a6fbe
AK
1965 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1966$as_echo "$as_me: creating cache $cache_file" >&6;}
ad6254c5
AK
1967 >$cache_file
1968fi
1969
1970# Check that the precious variables saved in the cache have kept the same
1971# value.
1972ac_cache_corrupted=false
7a197a62 1973for ac_var in $ac_precious_vars; do
ad6254c5
AK
1974 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1975 eval ac_new_set=\$ac_env_${ac_var}_set
7a197a62
AK
1976 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1977 eval ac_new_val=\$ac_env_${ac_var}_value
ad6254c5
AK
1978 case $ac_old_set,$ac_new_set in
1979 set,)
ec6a6fbe
AK
1980 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1981$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
ad6254c5
AK
1982 ac_cache_corrupted=: ;;
1983 ,set)
ec6a6fbe
AK
1984 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1985$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
ad6254c5
AK
1986 ac_cache_corrupted=: ;;
1987 ,);;
1988 *)
1989 if test "x$ac_old_val" != "x$ac_new_val"; then
ec6a6fbe
AK
1990 # differences in whitespace do not lead to failure.
1991 ac_old_val_w=`echo x $ac_old_val`
1992 ac_new_val_w=`echo x $ac_new_val`
1993 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1994 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1995$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1996 ac_cache_corrupted=:
1997 else
1998 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1999$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2000 eval $ac_var=\$ac_old_val
2001 fi
2002 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2003$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2004 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2005$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
ad6254c5
AK
2006 fi;;
2007 esac
2008 # Pass precious variables to config.status.
2009 if test "$ac_new_set" = set; then
2010 case $ac_new_val in
ec6a6fbe 2011 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
ad6254c5
AK
2012 *) ac_arg=$ac_var=$ac_new_val ;;
2013 esac
2014 case " $ac_configure_args " in
2015 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2016 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2017 esac
2018 fi
2019done
2020if $ac_cache_corrupted; then
ec6a6fbe
AK
2021 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2022$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2023 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2024$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2025 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2026$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
ad6254c5 2027 { (exit 1); exit 1; }; }
795ca3e5
AK
2028fi
2029
ad6254c5
AK
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
7a197a62
AK
2046ac_ext=c
2047ac_cpp='$CPP $CPPFLAGS'
2048ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2049ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2050ac_compiler_gnu=$ac_cv_c_compiler_gnu
ad6254c5 2051
795ca3e5
AK
2052
2053
7a197a62 2054ac_config_headers="$ac_config_headers lib/misc/configure.h"
72b2cb61
AK
2055
2056
80992638 2057################################################################################
795ca3e5 2058ac_aux_dir=
7a197a62
AK
2059for ac_dir in autoconf "$srcdir"/autoconf; do
2060 if test -f "$ac_dir/install-sh"; then
795ca3e5
AK
2061 ac_aux_dir=$ac_dir
2062 ac_install_sh="$ac_aux_dir/install-sh -c"
2063 break
7a197a62 2064 elif test -f "$ac_dir/install.sh"; then
795ca3e5
AK
2065 ac_aux_dir=$ac_dir
2066 ac_install_sh="$ac_aux_dir/install.sh -c"
2067 break
7a197a62 2068 elif test -f "$ac_dir/shtool"; then
ad6254c5
AK
2069 ac_aux_dir=$ac_dir
2070 ac_install_sh="$ac_aux_dir/shtool install -c"
2071 break
795ca3e5
AK
2072 fi
2073done
2074if test -z "$ac_aux_dir"; then
ec6a6fbe
AK
2075 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2076$as_echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
ad6254c5 2077 { (exit 1); exit 1; }; }
795ca3e5 2078fi
7a197a62
AK
2079
2080# These three variables are undocumented and unsupported,
2081# and are intended to be withdrawn in a future Autoconf release.
2082# They can cause serious problems if a builder's source tree is in a directory
2083# whose full name contains unusual characters.
2084ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2085ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2086ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2087
8ce0cbda
AK
2088
2089
ad6254c5 2090################################################################################
8ce0cbda 2091# Make sure we can run config.sub.
7a197a62 2092$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
ec6a6fbe
AK
2093 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2094$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
ad6254c5
AK
2095 { (exit 1); exit 1; }; }
2096
ec6a6fbe
AK
2097{ $as_echo "$as_me:$LINENO: checking build system type" >&5
2098$as_echo_n "checking build system type... " >&6; }
ad6254c5 2099if test "${ac_cv_build+set}" = set; then
ec6a6fbe 2100 $as_echo_n "(cached) " >&6
ad6254c5 2101else
7a197a62
AK
2102 ac_build_alias=$build_alias
2103test "x$ac_build_alias" = x &&
2104 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2105test "x$ac_build_alias" = x &&
ec6a6fbe
AK
2106 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2107$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
ad6254c5 2108 { (exit 1); exit 1; }; }
7a197a62 2109ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
ec6a6fbe
AK
2110 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2111$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
ad6254c5
AK
2112 { (exit 1); exit 1; }; }
2113
2114fi
ec6a6fbe
AK
2115{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2116$as_echo "$ac_cv_build" >&6; }
7a197a62
AK
2117case $ac_cv_build in
2118*-*-*) ;;
ec6a6fbe
AK
2119*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2120$as_echo "$as_me: error: invalid value of canonical build" >&2;}
7a197a62
AK
2121 { (exit 1); exit 1; }; };;
2122esac
ad6254c5 2123build=$ac_cv_build
7a197a62
AK
2124ac_save_IFS=$IFS; IFS='-'
2125set x $ac_cv_build
2126shift
2127build_cpu=$1
2128build_vendor=$2
2129shift; shift
2130# Remember, the first character of IFS is used to create $*,
2131# except with old shells:
2132build_os=$*
2133IFS=$ac_save_IFS
2134case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
ad6254c5
AK
2135
2136
ec6a6fbe
AK
2137{ $as_echo "$as_me:$LINENO: checking host system type" >&5
2138$as_echo_n "checking host system type... " >&6; }
ad6254c5 2139if test "${ac_cv_host+set}" = set; then
ec6a6fbe 2140 $as_echo_n "(cached) " >&6
ad6254c5 2141else
7a197a62
AK
2142 if test "x$host_alias" = x; then
2143 ac_cv_host=$ac_cv_build
2144else
2145 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
ec6a6fbe
AK
2146 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2147$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
ad6254c5 2148 { (exit 1); exit 1; }; }
7a197a62 2149fi
ad6254c5
AK
2150
2151fi
ec6a6fbe
AK
2152{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2153$as_echo "$ac_cv_host" >&6; }
7a197a62
AK
2154case $ac_cv_host in
2155*-*-*) ;;
ec6a6fbe
AK
2156*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2157$as_echo "$as_me: error: invalid value of canonical host" >&2;}
7a197a62
AK
2158 { (exit 1); exit 1; }; };;
2159esac
ad6254c5 2160host=$ac_cv_host
7a197a62
AK
2161ac_save_IFS=$IFS; IFS='-'
2162set x $ac_cv_host
2163shift
2164host_cpu=$1
2165host_vendor=$2
2166shift; shift
2167# Remember, the first character of IFS is used to create $*,
2168# except with old shells:
2169host_os=$*
2170IFS=$ac_save_IFS
2171case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
ad6254c5
AK
2172
2173
ec6a6fbe
AK
2174{ $as_echo "$as_me:$LINENO: checking target system type" >&5
2175$as_echo_n "checking target system type... " >&6; }
ad6254c5 2176if test "${ac_cv_target+set}" = set; then
ec6a6fbe 2177 $as_echo_n "(cached) " >&6
ad6254c5 2178else
7a197a62
AK
2179 if test "x$target_alias" = x; then
2180 ac_cv_target=$ac_cv_host
2181else
2182 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
ec6a6fbe
AK
2183 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2184$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
ad6254c5 2185 { (exit 1); exit 1; }; }
7a197a62 2186fi
8ce0cbda 2187
ad6254c5 2188fi
ec6a6fbe
AK
2189{ $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2190$as_echo "$ac_cv_target" >&6; }
7a197a62
AK
2191case $ac_cv_target in
2192*-*-*) ;;
ec6a6fbe
AK
2193*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2194$as_echo "$as_me: error: invalid value of canonical target" >&2;}
7a197a62
AK
2195 { (exit 1); exit 1; }; };;
2196esac
ad6254c5 2197target=$ac_cv_target
7a197a62
AK
2198ac_save_IFS=$IFS; IFS='-'
2199set x $ac_cv_target
2200shift
2201target_cpu=$1
2202target_vendor=$2
2203shift; shift
2204# Remember, the first character of IFS is used to create $*,
2205# except with old shells:
2206target_os=$*
2207IFS=$ac_save_IFS
2208case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
8ce0cbda 2209
8ce0cbda 2210
ad6254c5
AK
2211# The aliases save the names the user supplied, while $host etc.
2212# will get canonicalized.
2213test -n "$target_alias" &&
8ce0cbda
AK
2214 test "$program_prefix$program_suffix$program_transform_name" = \
2215 NONENONEs,x,x, &&
2216 program_prefix=${target_alias}-
2217
8ce0cbda
AK
2218case "$host_os" in
2219 linux*)
7f54ef36 2220 CFLAGS="$CFLAGS"
8ce0cbda
AK
2221 COPTIMISE_FLAG="-O2"
2222 CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym"
2223 CLDWHOLEARCHIVE="-Wl,-whole-archive"
2224 CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive"
2225 LDDEPS="$LDDEPS .export.sym"
2226 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
d0191583 2227 LIB_SUFFIX=so
8ce0cbda
AK
2228 DEVMAPPER=yes
2229 ODIRECT=yes
d0191583 2230 DM_IOCTLS=yes
8ce0cbda
AK
2231 SELINUX=yes
2232 CLUSTER=internal
93bd259b 2233 FSADM=yes
d0191583 2234 ;;
8ce0cbda
AK
2235 darwin*)
2236 CFLAGS="$CFLAGS -no-cpp-precomp -fno-common"
2237 COPTIMISE_FLAG="-O2"
2238 CLDFLAGS="$CLDFLAGS"
2239 CLDWHOLEARCHIVE="-all_load"
2240 CLDNOWHOLEARCHIVE=
d0191583 2241 LIB_SUFFIX=dylib
a653923f 2242 DEVMAPPER=yes
8ce0cbda 2243 ODIRECT=no
d0191583 2244 DM_IOCTLS=no
8ce0cbda
AK
2245 SELINUX=no
2246 CLUSTER=none
d0191583
JM
2247 FSADM=no
2248 ;;
8ce0cbda
AK
2249esac
2250
80992638 2251################################################################################
ec6a6fbe
AK
2252{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
2253$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5951ef33 2254if test "${ac_cv_path_SED+set}" = set; then
ec6a6fbe 2255 $as_echo_n "(cached) " >&6
5951ef33
AK
2256else
2257 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2258 for ac_i in 1 2 3 4 5 6 7; do
2259 ac_script="$ac_script$as_nl$ac_script"
2260 done
ec6a6fbe 2261 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5951ef33 2262 $as_unset ac_script || ac_script=
ec6a6fbe 2263 if test -z "$SED"; then
5951ef33 2264 ac_path_SED_found=false
ec6a6fbe
AK
2265 # Loop through the user's path and test for each of PROGNAME-LIST
2266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5951ef33
AK
2267for as_dir in $PATH
2268do
2269 IFS=$as_save_IFS
2270 test -z "$as_dir" && as_dir=.
2271 for ac_prog in sed gsed; do
ec6a6fbe
AK
2272 for ac_exec_ext in '' $ac_executable_extensions; do
2273 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2274 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2275# Check for GNU ac_path_SED and select it if it is found.
5951ef33
AK
2276 # Check for GNU $ac_path_SED
2277case `"$ac_path_SED" --version 2>&1` in
2278*GNU*)
2279 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2280*)
2281 ac_count=0
ec6a6fbe 2282 $as_echo_n 0123456789 >"conftest.in"
5951ef33
AK
2283 while :
2284 do
2285 cat "conftest.in" "conftest.in" >"conftest.tmp"
2286 mv "conftest.tmp" "conftest.in"
2287 cp "conftest.in" "conftest.nl"
ec6a6fbe 2288 $as_echo '' >> "conftest.nl"
5951ef33
AK
2289 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2290 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2291 ac_count=`expr $ac_count + 1`
2292 if test $ac_count -gt ${ac_path_SED_max-0}; then
2293 # Best one so far, save it but keep looking for a better one
2294 ac_cv_path_SED="$ac_path_SED"
2295 ac_path_SED_max=$ac_count
2296 fi
2297 # 10*(2^10) chars as input seems more than enough
2298 test $ac_count -gt 10 && break
2299 done
2300 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2301esac
2302
ec6a6fbe
AK
2303 $ac_path_SED_found && break 3
2304 done
5951ef33
AK
2305 done
2306done
5951ef33 2307IFS=$as_save_IFS
ec6a6fbe
AK
2308 if test -z "$ac_cv_path_SED"; then
2309 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
2310$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
5951ef33 2311 { (exit 1); exit 1; }; }
ec6a6fbe 2312 fi
5951ef33
AK
2313else
2314 ac_cv_path_SED=$SED
2315fi
2316
2317fi
ec6a6fbe
AK
2318{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
2319$as_echo "$ac_cv_path_SED" >&6; }
5951ef33
AK
2320 SED="$ac_cv_path_SED"
2321 rm -f conftest.sed
2322
ad6254c5 2323for ac_prog in gawk mawk nawk awk
795ca3e5 2324do
ad6254c5 2325 # Extract the first word of "$ac_prog", so it can be a program name with args.
795ca3e5 2326set dummy $ac_prog; ac_word=$2
ec6a6fbe
AK
2327{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2328$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2329if test "${ac_cv_prog_AWK+set}" = set; then
ec6a6fbe 2330 $as_echo_n "(cached) " >&6
795ca3e5
AK
2331else
2332 if test -n "$AWK"; then
2333 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2334else
ad6254c5
AK
2335as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2336for as_dir in $PATH
2337do
2338 IFS=$as_save_IFS
2339 test -z "$as_dir" && as_dir=.
2340 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2342 ac_cv_prog_AWK="$ac_prog"
ec6a6fbe 2343 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2344 break 2
2345 fi
2346done
2347done
7a197a62 2348IFS=$as_save_IFS
ad6254c5 2349
795ca3e5
AK
2350fi
2351fi
ad6254c5 2352AWK=$ac_cv_prog_AWK
795ca3e5 2353if test -n "$AWK"; then
ec6a6fbe
AK
2354 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2355$as_echo "$AWK" >&6; }
795ca3e5 2356else
ec6a6fbe
AK
2357 { $as_echo "$as_me:$LINENO: result: no" >&5
2358$as_echo "no" >&6; }
795ca3e5
AK
2359fi
2360
7a197a62 2361
ad6254c5
AK
2362 test -n "$AWK" && break
2363done
2364
2365ac_ext=c
2366ac_cpp='$CPP $CPPFLAGS'
2367ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2368ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2369ac_compiler_gnu=$ac_cv_c_compiler_gnu
2370if test -n "$ac_tool_prefix"; then
2371 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2372set dummy ${ac_tool_prefix}gcc; ac_word=$2
ec6a6fbe
AK
2373{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2374$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2375if test "${ac_cv_prog_CC+set}" = set; then
ec6a6fbe 2376 $as_echo_n "(cached) " >&6
ad6254c5
AK
2377else
2378 if test -n "$CC"; then
2379 ac_cv_prog_CC="$CC" # Let the user override the test.
2380else
2381as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2382for as_dir in $PATH
2383do
2384 IFS=$as_save_IFS
2385 test -z "$as_dir" && as_dir=.
2386 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2388 ac_cv_prog_CC="${ac_tool_prefix}gcc"
ec6a6fbe 2389 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2390 break 2
2391 fi
2392done
8106cdd5 2393done
7a197a62 2394IFS=$as_save_IFS
8106cdd5 2395
ad6254c5
AK
2396fi
2397fi
2398CC=$ac_cv_prog_CC
2399if test -n "$CC"; then
ec6a6fbe
AK
2400 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2401$as_echo "$CC" >&6; }
ad6254c5 2402else
ec6a6fbe
AK
2403 { $as_echo "$as_me:$LINENO: result: no" >&5
2404$as_echo "no" >&6; }
ad6254c5
AK
2405fi
2406
7a197a62 2407
ad6254c5
AK
2408fi
2409if test -z "$ac_cv_prog_CC"; then
2410 ac_ct_CC=$CC
2411 # Extract the first word of "gcc", so it can be a program name with args.
8106cdd5 2412set dummy gcc; ac_word=$2
ec6a6fbe
AK
2413{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2414$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2415if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
ec6a6fbe 2416 $as_echo_n "(cached) " >&6
ad6254c5
AK
2417else
2418 if test -n "$ac_ct_CC"; then
2419 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2420else
2421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2422for as_dir in $PATH
2423do
2424 IFS=$as_save_IFS
2425 test -z "$as_dir" && as_dir=.
2426 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2428 ac_cv_prog_ac_ct_CC="gcc"
ec6a6fbe 2429 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2430 break 2
2431 fi
2432done
2433done
7a197a62 2434IFS=$as_save_IFS
ad6254c5
AK
2435
2436fi
2437fi
2438ac_ct_CC=$ac_cv_prog_ac_ct_CC
2439if test -n "$ac_ct_CC"; then
ec6a6fbe
AK
2440 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2441$as_echo "$ac_ct_CC" >&6; }
ad6254c5 2442else
ec6a6fbe
AK
2443 { $as_echo "$as_me:$LINENO: result: no" >&5
2444$as_echo "no" >&6; }
ad6254c5
AK
2445fi
2446
7a197a62
AK
2447 if test "x$ac_ct_CC" = x; then
2448 CC=""
2449 else
2450 case $cross_compiling:$ac_tool_warned in
2451yes:)
ec6a6fbe
AK
2452{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2453$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7a197a62
AK
2454ac_tool_warned=yes ;;
2455esac
2456 CC=$ac_ct_CC
2457 fi
ad6254c5
AK
2458else
2459 CC="$ac_cv_prog_CC"
2460fi
2461
2462if test -z "$CC"; then
7a197a62
AK
2463 if test -n "$ac_tool_prefix"; then
2464 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
ad6254c5 2465set dummy ${ac_tool_prefix}cc; ac_word=$2
ec6a6fbe
AK
2466{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2467$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2468if test "${ac_cv_prog_CC+set}" = set; then
ec6a6fbe 2469 $as_echo_n "(cached) " >&6
8106cdd5
AK
2470else
2471 if test -n "$CC"; then
2472 ac_cv_prog_CC="$CC" # Let the user override the test.
2473else
ad6254c5
AK
2474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2475for as_dir in $PATH
2476do
2477 IFS=$as_save_IFS
2478 test -z "$as_dir" && as_dir=.
2479 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2481 ac_cv_prog_CC="${ac_tool_prefix}cc"
ec6a6fbe 2482 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2483 break 2
2484 fi
2485done
2486done
7a197a62 2487IFS=$as_save_IFS
ad6254c5 2488
8106cdd5
AK
2489fi
2490fi
ad6254c5 2491CC=$ac_cv_prog_CC
8106cdd5 2492if test -n "$CC"; then
ec6a6fbe
AK
2493 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2494$as_echo "$CC" >&6; }
ad6254c5 2495else
ec6a6fbe
AK
2496 { $as_echo "$as_me:$LINENO: result: no" >&5
2497$as_echo "no" >&6; }
ad6254c5
AK
2498fi
2499
8106cdd5 2500
7a197a62 2501 fi
ad6254c5 2502fi
795ca3e5
AK
2503if test -z "$CC"; then
2504 # Extract the first word of "cc", so it can be a program name with args.
2505set dummy cc; ac_word=$2
ec6a6fbe
AK
2506{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2507$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2508if test "${ac_cv_prog_CC+set}" = set; then
ec6a6fbe 2509 $as_echo_n "(cached) " >&6
795ca3e5
AK
2510else
2511 if test -n "$CC"; then
2512 ac_cv_prog_CC="$CC" # Let the user override the test.
2513else
795ca3e5 2514 ac_prog_rejected=no
ad6254c5
AK
2515as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2516for as_dir in $PATH
2517do
2518 IFS=$as_save_IFS
2519 test -z "$as_dir" && as_dir=.
2520 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5
AK
2522 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2523 ac_prog_rejected=yes
2524 continue
2525 fi
2526 ac_cv_prog_CC="cc"
ec6a6fbe 2527 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2528 break 2
2529 fi
2530done
2531done
7a197a62 2532IFS=$as_save_IFS
ad6254c5 2533
795ca3e5
AK
2534if test $ac_prog_rejected = yes; then
2535 # We found a bogon in the path, so make sure we never use it.
2536 set dummy $ac_cv_prog_CC
2537 shift
ad6254c5 2538 if test $# != 0; then
795ca3e5
AK
2539 # We chose a different compiler from the bogus one.
2540 # However, it has the same basename, so the bogon will be chosen
2541 # first if we set CC to just the basename; use the full file name.
2542 shift
ad6254c5 2543 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
795ca3e5
AK
2544 fi
2545fi
2546fi
2547fi
ad6254c5 2548CC=$ac_cv_prog_CC
795ca3e5 2549if test -n "$CC"; then
ec6a6fbe
AK
2550 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2551$as_echo "$CC" >&6; }
795ca3e5 2552else
ec6a6fbe
AK
2553 { $as_echo "$as_me:$LINENO: result: no" >&5
2554$as_echo "no" >&6; }
795ca3e5
AK
2555fi
2556
7a197a62 2557
ad6254c5
AK
2558fi
2559if test -z "$CC"; then
2560 if test -n "$ac_tool_prefix"; then
7a197a62 2561 for ac_prog in cl.exe
ad6254c5
AK
2562 do
2563 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2564set dummy $ac_tool_prefix$ac_prog; ac_word=$2
ec6a6fbe
AK
2565{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2566$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2567if test "${ac_cv_prog_CC+set}" = set; then
ec6a6fbe 2568 $as_echo_n "(cached) " >&6
795ca3e5
AK
2569else
2570 if test -n "$CC"; then
2571 ac_cv_prog_CC="$CC" # Let the user override the test.
2572else
ad6254c5
AK
2573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2574for as_dir in $PATH
2575do
2576 IFS=$as_save_IFS
2577 test -z "$as_dir" && as_dir=.
2578 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2580 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
ec6a6fbe 2581 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2582 break 2
2583 fi
2584done
2585done
7a197a62 2586IFS=$as_save_IFS
ad6254c5 2587
795ca3e5
AK
2588fi
2589fi
ad6254c5 2590CC=$ac_cv_prog_CC
795ca3e5 2591if test -n "$CC"; then
ec6a6fbe
AK
2592 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2593$as_echo "$CC" >&6; }
795ca3e5 2594else
ec6a6fbe
AK
2595 { $as_echo "$as_me:$LINENO: result: no" >&5
2596$as_echo "no" >&6; }
795ca3e5 2597fi
ad6254c5 2598
7a197a62 2599
ad6254c5
AK
2600 test -n "$CC" && break
2601 done
2602fi
2603if test -z "$CC"; then
2604 ac_ct_CC=$CC
7a197a62 2605 for ac_prog in cl.exe
ad6254c5
AK
2606do
2607 # Extract the first word of "$ac_prog", so it can be a program name with args.
2608set dummy $ac_prog; ac_word=$2
ec6a6fbe
AK
2609{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2610$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2611if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
ec6a6fbe 2612 $as_echo_n "(cached) " >&6
ad6254c5
AK
2613else
2614 if test -n "$ac_ct_CC"; then
2615 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2616else
2617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2618for as_dir in $PATH
2619do
2620 IFS=$as_save_IFS
2621 test -z "$as_dir" && as_dir=.
2622 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2624 ac_cv_prog_ac_ct_CC="$ac_prog"
ec6a6fbe 2625 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5 2626 break 2
795ca3e5 2627 fi
ad6254c5
AK
2628done
2629done
7a197a62 2630IFS=$as_save_IFS
ad6254c5
AK
2631
2632fi
2633fi
2634ac_ct_CC=$ac_cv_prog_ac_ct_CC
2635if test -n "$ac_ct_CC"; then
ec6a6fbe
AK
2636 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2637$as_echo "$ac_ct_CC" >&6; }
ad6254c5 2638else
ec6a6fbe
AK
2639 { $as_echo "$as_me:$LINENO: result: no" >&5
2640$as_echo "no" >&6; }
795ca3e5
AK
2641fi
2642
7a197a62 2643
ad6254c5
AK
2644 test -n "$ac_ct_CC" && break
2645done
795ca3e5 2646
7a197a62
AK
2647 if test "x$ac_ct_CC" = x; then
2648 CC=""
2649 else
2650 case $cross_compiling:$ac_tool_warned in
2651yes:)
ec6a6fbe
AK
2652{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2653$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7a197a62
AK
2654ac_tool_warned=yes ;;
2655esac
2656 CC=$ac_ct_CC
2657 fi
ad6254c5
AK
2658fi
2659
2660fi
2661
2662
ec6a6fbe
AK
2663test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2664$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2665{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
ad6254c5 2666See \`config.log' for more details." >&5
ec6a6fbe 2667$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
ad6254c5 2668See \`config.log' for more details." >&2;}
ec6a6fbe 2669 { (exit 1); exit 1; }; }; }
ad6254c5
AK
2670
2671# Provide some information about the compiler.
ec6a6fbe
AK
2672$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2673set X $ac_compile
2674ac_compiler=$2
7a197a62
AK
2675{ (ac_try="$ac_compiler --version >&5"
2676case "(($ac_try" in
2677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2678 *) ac_try_echo=$ac_try;;
2679esac
ec6a6fbe
AK
2680eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2681$as_echo "$ac_try_echo") >&5
7a197a62 2682 (eval "$ac_compiler --version >&5") 2>&5
ad6254c5 2683 ac_status=$?
ec6a6fbe 2684 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2685 (exit $ac_status); }
7a197a62
AK
2686{ (ac_try="$ac_compiler -v >&5"
2687case "(($ac_try" in
2688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2689 *) ac_try_echo=$ac_try;;
2690esac
ec6a6fbe
AK
2691eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2692$as_echo "$ac_try_echo") >&5
7a197a62 2693 (eval "$ac_compiler -v >&5") 2>&5
ad6254c5 2694 ac_status=$?
ec6a6fbe 2695 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2696 (exit $ac_status); }
7a197a62
AK
2697{ (ac_try="$ac_compiler -V >&5"
2698case "(($ac_try" in
2699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2700 *) ac_try_echo=$ac_try;;
2701esac
ec6a6fbe
AK
2702eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2703$as_echo "$ac_try_echo") >&5
7a197a62 2704 (eval "$ac_compiler -V >&5") 2>&5
ad6254c5 2705 ac_status=$?
ec6a6fbe 2706 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
2707 (exit $ac_status); }
2708
2709cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2710/* confdefs.h. */
2711_ACEOF
2712cat confdefs.h >>conftest.$ac_ext
2713cat >>conftest.$ac_ext <<_ACEOF
2714/* end confdefs.h. */
2715
2716int
2717main ()
2718{
2719
2720 ;
2721 return 0;
2722}
2723_ACEOF
2724ac_clean_files_save=$ac_clean_files
ec6a6fbe 2725ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
ad6254c5
AK
2726# Try to create an executable without -o first, disregard a.out.
2727# It will help us diagnose broken compilers, and finding out an intuition
2728# of exeext.
ec6a6fbe
AK
2729{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2730$as_echo_n "checking for C compiler default output file name... " >&6; }
2731ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2732
2733# The possible output files:
2734ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2735
7a197a62
AK
2736ac_rmfiles=
2737for ac_file in $ac_files
2738do
2739 case $ac_file in
ec6a6fbe 2740 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
7a197a62
AK
2741 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2742 esac
2743done
2744rm -f $ac_rmfiles
2745
2746if { (ac_try="$ac_link_default"
2747case "(($ac_try" in
2748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2749 *) ac_try_echo=$ac_try;;
2750esac
ec6a6fbe
AK
2751eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2752$as_echo "$ac_try_echo") >&5
7a197a62 2753 (eval "$ac_link_default") 2>&5
ad6254c5 2754 ac_status=$?
ec6a6fbe 2755 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2756 (exit $ac_status); }; then
7a197a62
AK
2757 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2758# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2759# in a Makefile. We should not override ac_cv_exeext if it was cached,
2760# so that the user can short-circuit this test for compilers unknown to
2761# Autoconf.
25fbec5b 2762for ac_file in $ac_files ''
ad6254c5
AK
2763do
2764 test -f "$ac_file" || continue
2765 case $ac_file in
ec6a6fbe 2766 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
8a2fc586 2767 ;;
ad6254c5 2768 [ab].out )
8a2fc586
AK
2769 # We found the default executable, but exeext='' is most
2770 # certainly right.
2771 break;;
ad6254c5 2772 *.* )
7a197a62
AK
2773 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2774 then :; else
2775 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2776 fi
2777 # We set ac_cv_exeext here because the later test for it is not
2778 # safe: cross compilers may not add the suffix if given an `-o'
2779 # argument, so we may need to know it at that point already.
2780 # Even if this section looks crufty: it has the advantage of
2781 # actually working.
8a2fc586 2782 break;;
ad6254c5 2783 * )
8a2fc586 2784 break;;
ad6254c5
AK
2785 esac
2786done
7a197a62
AK
2787test "$ac_cv_exeext" = no && ac_cv_exeext=
2788
ad6254c5 2789else
25fbec5b
AK
2790 ac_file=''
2791fi
2792
ec6a6fbe
AK
2793{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2794$as_echo "$ac_file" >&6; }
25fbec5b 2795if test -z "$ac_file"; then
ec6a6fbe 2796 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
2797sed 's/^/| /' conftest.$ac_ext >&5
2798
ec6a6fbe
AK
2799{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2800$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2801{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
ad6254c5 2802See \`config.log' for more details." >&5
ec6a6fbe 2803$as_echo "$as_me: error: C compiler cannot create executables
ad6254c5 2804See \`config.log' for more details." >&2;}
ec6a6fbe 2805 { (exit 77); exit 77; }; }; }
ad6254c5
AK
2806fi
2807
2808ac_exeext=$ac_cv_exeext
ad6254c5 2809
7a197a62 2810# Check that the compiler produces executables we can run. If not, either
ad6254c5 2811# the compiler is broken, or we cross compile.
ec6a6fbe
AK
2812{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2813$as_echo_n "checking whether the C compiler works... " >&6; }
ad6254c5
AK
2814# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2815# If not cross compiling, check that we can run a simple program.
2816if test "$cross_compiling" != yes; then
2817 if { ac_try='./$ac_file'
7a197a62
AK
2818 { (case "(($ac_try" in
2819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2820 *) ac_try_echo=$ac_try;;
2821esac
ec6a6fbe
AK
2822eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2823$as_echo "$ac_try_echo") >&5
7a197a62 2824 (eval "$ac_try") 2>&5
ad6254c5 2825 ac_status=$?
ec6a6fbe 2826 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
2827 (exit $ac_status); }; }; then
2828 cross_compiling=no
795ca3e5 2829 else
ad6254c5
AK
2830 if test "$cross_compiling" = maybe; then
2831 cross_compiling=yes
2832 else
ec6a6fbe
AK
2833 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2834$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2835{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
ad6254c5
AK
2836If you meant to cross compile, use \`--host'.
2837See \`config.log' for more details." >&5
ec6a6fbe 2838$as_echo "$as_me: error: cannot run C compiled programs.
ad6254c5
AK
2839If you meant to cross compile, use \`--host'.
2840See \`config.log' for more details." >&2;}
ec6a6fbe 2841 { (exit 1); exit 1; }; }; }
ad6254c5 2842 fi
795ca3e5 2843 fi
80992638 2844fi
ec6a6fbe
AK
2845{ $as_echo "$as_me:$LINENO: result: yes" >&5
2846$as_echo "yes" >&6; }
ad6254c5 2847
ec6a6fbe 2848rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
ad6254c5 2849ac_clean_files=$ac_clean_files_save
7a197a62 2850# Check that the compiler produces executables we can run. If not, either
ad6254c5 2851# the compiler is broken, or we cross compile.
ec6a6fbe
AK
2852{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2853$as_echo_n "checking whether we are cross compiling... " >&6; }
2854{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2855$as_echo "$cross_compiling" >&6; }
7a197a62 2856
ec6a6fbe
AK
2857{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2858$as_echo_n "checking for suffix of executables... " >&6; }
7a197a62
AK
2859if { (ac_try="$ac_link"
2860case "(($ac_try" in
2861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2862 *) ac_try_echo=$ac_try;;
2863esac
ec6a6fbe
AK
2864eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2865$as_echo "$ac_try_echo") >&5
7a197a62 2866 (eval "$ac_link") 2>&5
ad6254c5 2867 ac_status=$?
ec6a6fbe 2868 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
2869 (exit $ac_status); }; then
2870 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2871# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2872# work properly (i.e., refer to `conftest.exe'), while it won't with
2873# `rm'.
2874for ac_file in conftest.exe conftest conftest.*; do
2875 test -f "$ac_file" || continue
2876 case $ac_file in
ec6a6fbe 2877 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
ad6254c5 2878 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
8a2fc586 2879 break;;
ad6254c5
AK
2880 * ) break;;
2881 esac
2882done
80992638 2883else
ec6a6fbe
AK
2884 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2885$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2886{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
ad6254c5 2887See \`config.log' for more details." >&5
ec6a6fbe 2888$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
ad6254c5 2889See \`config.log' for more details." >&2;}
ec6a6fbe 2890 { (exit 1); exit 1; }; }; }
ad6254c5
AK
2891fi
2892
2893rm -f conftest$ac_cv_exeext
ec6a6fbe
AK
2894{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2895$as_echo "$ac_cv_exeext" >&6; }
ad6254c5
AK
2896
2897rm -f conftest.$ac_ext
2898EXEEXT=$ac_cv_exeext
2899ac_exeext=$EXEEXT
ec6a6fbe
AK
2900{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2901$as_echo_n "checking for suffix of object files... " >&6; }
ad6254c5 2902if test "${ac_cv_objext+set}" = set; then
ec6a6fbe 2903 $as_echo_n "(cached) " >&6
795ca3e5 2904else
ad6254c5 2905 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2906/* confdefs.h. */
2907_ACEOF
2908cat confdefs.h >>conftest.$ac_ext
2909cat >>conftest.$ac_ext <<_ACEOF
2910/* end confdefs.h. */
2911
2912int
2913main ()
2914{
2915
2916 ;
2917 return 0;
2918}
2919_ACEOF
2920rm -f conftest.o conftest.obj
7a197a62
AK
2921if { (ac_try="$ac_compile"
2922case "(($ac_try" in
2923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2924 *) ac_try_echo=$ac_try;;
2925esac
ec6a6fbe
AK
2926eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2927$as_echo "$ac_try_echo") >&5
7a197a62 2928 (eval "$ac_compile") 2>&5
ad6254c5 2929 ac_status=$?
ec6a6fbe 2930 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2931 (exit $ac_status); }; then
7a197a62
AK
2932 for ac_file in conftest.o conftest.obj conftest.*; do
2933 test -f "$ac_file" || continue;
ad6254c5 2934 case $ac_file in
ec6a6fbe 2935 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
ad6254c5
AK
2936 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2937 break;;
2938 esac
2939done
2940else
ec6a6fbe 2941 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
2942sed 's/^/| /' conftest.$ac_ext >&5
2943
ec6a6fbe
AK
2944{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2945$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2946{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
ad6254c5 2947See \`config.log' for more details." >&5
ec6a6fbe 2948$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
ad6254c5 2949See \`config.log' for more details." >&2;}
ec6a6fbe 2950 { (exit 1); exit 1; }; }; }
ad6254c5
AK
2951fi
2952
2953rm -f conftest.$ac_cv_objext conftest.$ac_ext
2954fi
ec6a6fbe
AK
2955{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2956$as_echo "$ac_cv_objext" >&6; }
ad6254c5
AK
2957OBJEXT=$ac_cv_objext
2958ac_objext=$OBJEXT
ec6a6fbe
AK
2959{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2960$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
ad6254c5 2961if test "${ac_cv_c_compiler_gnu+set}" = set; then
ec6a6fbe 2962 $as_echo_n "(cached) " >&6
ad6254c5
AK
2963else
2964 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2965/* confdefs.h. */
2966_ACEOF
2967cat confdefs.h >>conftest.$ac_ext
2968cat >>conftest.$ac_ext <<_ACEOF
2969/* end confdefs.h. */
2970
2971int
2972main ()
2973{
2974#ifndef __GNUC__
2975 choke me
2976#endif
80992638 2977
ad6254c5
AK
2978 ;
2979 return 0;
2980}
2981_ACEOF
2982rm -f conftest.$ac_objext
7a197a62
AK
2983if { (ac_try="$ac_compile"
2984case "(($ac_try" in
2985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2986 *) ac_try_echo=$ac_try;;
2987esac
ec6a6fbe
AK
2988eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2989$as_echo "$ac_try_echo") >&5
7a197a62 2990 (eval "$ac_compile") 2>conftest.er1
ad6254c5 2991 ac_status=$?
8a2fc586
AK
2992 grep -v '^ *+' conftest.er1 >conftest.err
2993 rm -f conftest.er1
2994 cat conftest.err >&5
ec6a6fbe 2995 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
2996 (exit $ac_status); } && {
2997 test -z "$ac_c_werror_flag" ||
2998 test ! -s conftest.err
2999 } && test -s conftest.$ac_objext; then
ad6254c5 3000 ac_compiler_gnu=yes
80992638 3001else
ec6a6fbe 3002 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
3003sed 's/^/| /' conftest.$ac_ext >&5
3004
7a197a62 3005 ac_compiler_gnu=no
8106cdd5 3006fi
7a197a62
AK
3007
3008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 3009ac_cv_c_compiler_gnu=$ac_compiler_gnu
80992638 3010
ad6254c5 3011fi
ec6a6fbe
AK
3012{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3013$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3014if test $ac_compiler_gnu = yes; then
3015 GCC=yes
3016else
3017 GCC=
3018fi
ad6254c5
AK
3019ac_test_CFLAGS=${CFLAGS+set}
3020ac_save_CFLAGS=$CFLAGS
ec6a6fbe
AK
3021{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3022$as_echo_n "checking whether $CC accepts -g... " >&6; }
ad6254c5 3023if test "${ac_cv_prog_cc_g+set}" = set; then
ec6a6fbe 3024 $as_echo_n "(cached) " >&6
795ca3e5 3025else
7a197a62
AK
3026 ac_save_c_werror_flag=$ac_c_werror_flag
3027 ac_c_werror_flag=yes
3028 ac_cv_prog_cc_g=no
3029 CFLAGS="-g"
3030 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3031/* confdefs.h. */
3032_ACEOF
3033cat confdefs.h >>conftest.$ac_ext
3034cat >>conftest.$ac_ext <<_ACEOF
3035/* end confdefs.h. */
3036
3037int
3038main ()
3039{
3040
3041 ;
3042 return 0;
3043}
3044_ACEOF
3045rm -f conftest.$ac_objext
7a197a62
AK
3046if { (ac_try="$ac_compile"
3047case "(($ac_try" in
3048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3049 *) ac_try_echo=$ac_try;;
3050esac
ec6a6fbe
AK
3051eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3052$as_echo "$ac_try_echo") >&5
7a197a62 3053 (eval "$ac_compile") 2>conftest.er1
ad6254c5 3054 ac_status=$?
8a2fc586
AK
3055 grep -v '^ *+' conftest.er1 >conftest.err
3056 rm -f conftest.er1
3057 cat conftest.err >&5
ec6a6fbe 3058 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
3059 (exit $ac_status); } && {
3060 test -z "$ac_c_werror_flag" ||
3061 test ! -s conftest.err
3062 } && test -s conftest.$ac_objext; then
7a197a62
AK
3063 ac_cv_prog_cc_g=yes
3064else
ec6a6fbe 3065 $as_echo "$as_me: failed program was:" >&5
7a197a62
AK
3066sed 's/^/| /' conftest.$ac_ext >&5
3067
3068 CFLAGS=""
3069 cat >conftest.$ac_ext <<_ACEOF
3070/* confdefs.h. */
3071_ACEOF
3072cat confdefs.h >>conftest.$ac_ext
3073cat >>conftest.$ac_ext <<_ACEOF
3074/* end confdefs.h. */
3075
3076int
3077main ()
3078{
3079
3080 ;
3081 return 0;
3082}
3083_ACEOF
3084rm -f conftest.$ac_objext
3085if { (ac_try="$ac_compile"
3086case "(($ac_try" in
3087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3088 *) ac_try_echo=$ac_try;;
3089esac
ec6a6fbe
AK
3090eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3091$as_echo "$ac_try_echo") >&5
7a197a62 3092 (eval "$ac_compile") 2>conftest.er1
8a2fc586 3093 ac_status=$?
7a197a62
AK
3094 grep -v '^ *+' conftest.er1 >conftest.err
3095 rm -f conftest.er1
3096 cat conftest.err >&5
ec6a6fbe 3097 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
3098 (exit $ac_status); } && {
3099 test -z "$ac_c_werror_flag" ||
3100 test ! -s conftest.err
3101 } && test -s conftest.$ac_objext; then
7a197a62
AK
3102 :
3103else
ec6a6fbe 3104 $as_echo "$as_me: failed program was:" >&5
7a197a62
AK
3105sed 's/^/| /' conftest.$ac_ext >&5
3106
3107 ac_c_werror_flag=$ac_save_c_werror_flag
3108 CFLAGS="-g"
3109 cat >conftest.$ac_ext <<_ACEOF
3110/* confdefs.h. */
3111_ACEOF
3112cat confdefs.h >>conftest.$ac_ext
3113cat >>conftest.$ac_ext <<_ACEOF
3114/* end confdefs.h. */
3115
3116int
3117main ()
3118{
3119
3120 ;
3121 return 0;
3122}
3123_ACEOF
3124rm -f conftest.$ac_objext
3125if { (ac_try="$ac_compile"
3126case "(($ac_try" in
3127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3128 *) ac_try_echo=$ac_try;;
3129esac
ec6a6fbe
AK
3130eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3131$as_echo "$ac_try_echo") >&5
7a197a62 3132 (eval "$ac_compile") 2>conftest.er1
ad6254c5 3133 ac_status=$?
7a197a62
AK
3134 grep -v '^ *+' conftest.er1 >conftest.err
3135 rm -f conftest.er1
3136 cat conftest.err >&5
ec6a6fbe 3137 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
3138 (exit $ac_status); } && {
3139 test -z "$ac_c_werror_flag" ||
3140 test ! -s conftest.err
3141 } && test -s conftest.$ac_objext; then
795ca3e5
AK
3142 ac_cv_prog_cc_g=yes
3143else
ec6a6fbe 3144 $as_echo "$as_me: failed program was:" >&5
ad6254c5 3145sed 's/^/| /' conftest.$ac_ext >&5
80992638 3146
7a197a62
AK
3147
3148fi
3149
3150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3151fi
3152
3153rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8106cdd5 3154fi
7a197a62
AK
3155
3156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3157 ac_c_werror_flag=$ac_save_c_werror_flag
ad6254c5 3158fi
ec6a6fbe
AK
3159{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3160$as_echo "$ac_cv_prog_cc_g" >&6; }
795ca3e5 3161if test "$ac_test_CFLAGS" = set; then
ad6254c5 3162 CFLAGS=$ac_save_CFLAGS
795ca3e5
AK
3163elif test $ac_cv_prog_cc_g = yes; then
3164 if test "$GCC" = yes; then
3165 CFLAGS="-g -O2"
3166 else
3167 CFLAGS="-g"
3168 fi
3169else
3170 if test "$GCC" = yes; then
3171 CFLAGS="-O2"
3172 else
3173 CFLAGS=
3174 fi
3175fi
ec6a6fbe
AK
3176{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3177$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
7a197a62 3178if test "${ac_cv_prog_cc_c89+set}" = set; then
ec6a6fbe 3179 $as_echo_n "(cached) " >&6
ad6254c5 3180else
7a197a62 3181 ac_cv_prog_cc_c89=no
ad6254c5
AK
3182ac_save_CC=$CC
3183cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3184/* confdefs.h. */
3185_ACEOF
3186cat confdefs.h >>conftest.$ac_ext
3187cat >>conftest.$ac_ext <<_ACEOF
3188/* end confdefs.h. */
3189#include <stdarg.h>
3190#include <stdio.h>
3191#include <sys/types.h>
3192#include <sys/stat.h>
3193/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3194struct buf { int x; };
3195FILE * (*rcsopen) (struct buf *, struct stat *, int);
3196static char *e (p, i)
3197 char **p;
3198 int i;
3199{
3200 return p[i];
3201}
3202static char *f (char * (*g) (char **, int), char **p, ...)
3203{
3204 char *s;
3205 va_list v;
3206 va_start (v,p);
3207 s = g (p, va_arg (v,int));
3208 va_end (v);
3209 return s;
3210}
8a2fc586
AK
3211
3212/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3213 function prototypes and stuff, but not '\xHH' hex character constants.
3214 These don't provoke an error unfortunately, instead are silently treated
7a197a62 3215 as 'x'. The following induces an error, until -std is added to get
8a2fc586
AK
3216 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3217 array size at least. It's necessary to write '\x00'==0 to get something
7a197a62 3218 that's true only with -std. */
8a2fc586
AK
3219int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3220
7a197a62
AK
3221/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3222 inside strings and character constants. */
3223#define FOO(x) 'x'
3224int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3225
ad6254c5
AK
3226int test (int i, double x);
3227struct s1 {int (*f) (int a);};
3228struct s2 {int (*f) (double a);};
3229int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3230int argc;
3231char **argv;
3232int
3233main ()
3234{
3235return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3236 ;
3237 return 0;
3238}
3239_ACEOF
7a197a62
AK
3240for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3241 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
ad6254c5
AK
3242do
3243 CC="$ac_save_CC $ac_arg"
3244 rm -f conftest.$ac_objext
7a197a62
AK
3245if { (ac_try="$ac_compile"
3246case "(($ac_try" in
3247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3248 *) ac_try_echo=$ac_try;;
3249esac
ec6a6fbe
AK
3250eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3251$as_echo "$ac_try_echo") >&5
7a197a62 3252 (eval "$ac_compile") 2>conftest.er1
ad6254c5 3253 ac_status=$?
8a2fc586
AK
3254 grep -v '^ *+' conftest.er1 >conftest.err
3255 rm -f conftest.er1
3256 cat conftest.err >&5
ec6a6fbe 3257 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
3258 (exit $ac_status); } && {
3259 test -z "$ac_c_werror_flag" ||
3260 test ! -s conftest.err
3261 } && test -s conftest.$ac_objext; then
7a197a62 3262 ac_cv_prog_cc_c89=$ac_arg
ad6254c5 3263else
ec6a6fbe 3264 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
3265sed 's/^/| /' conftest.$ac_ext >&5
3266
7a197a62 3267
ad6254c5 3268fi
7a197a62
AK
3269
3270rm -f core conftest.err conftest.$ac_objext
3271 test "x$ac_cv_prog_cc_c89" != "xno" && break
ad6254c5 3272done
7a197a62 3273rm -f conftest.$ac_ext
ad6254c5
AK
3274CC=$ac_save_CC
3275
3276fi
7a197a62
AK
3277# AC_CACHE_VAL
3278case "x$ac_cv_prog_cc_c89" in
3279 x)
ec6a6fbe
AK
3280 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3281$as_echo "none needed" >&6; } ;;
7a197a62 3282 xno)
ec6a6fbe
AK
3283 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3284$as_echo "unsupported" >&6; } ;;
ad6254c5 3285 *)
7a197a62 3286 CC="$CC $ac_cv_prog_cc_c89"
ec6a6fbe
AK
3287 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3288$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
ad6254c5
AK
3289esac
3290
ad6254c5 3291
ad6254c5
AK
3292ac_ext=c
3293ac_cpp='$CPP $CPPFLAGS'
3294ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3295ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3296ac_compiler_gnu=$ac_cv_c_compiler_gnu
795ca3e5 3297
d0191583
JM
3298
3299
3300ac_ext=c
3301ac_cpp='$CPP $CPPFLAGS'
3302ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3303ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3304ac_compiler_gnu=$ac_cv_c_compiler_gnu
ec6a6fbe
AK
3305{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3306$as_echo_n "checking how to run the C preprocessor... " >&6; }
d0191583
JM
3307# On Suns, sometimes $CPP names a directory.
3308if test -n "$CPP" && test -d "$CPP"; then
3309 CPP=
3310fi
3311if test -z "$CPP"; then
3312 if test "${ac_cv_prog_CPP+set}" = set; then
ec6a6fbe 3313 $as_echo_n "(cached) " >&6
ad6254c5 3314else
d0191583
JM
3315 # Double quotes because CPP needs to be expanded
3316 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3317 do
3318 ac_preproc_ok=false
3319for ac_c_preproc_warn_flag in '' yes
ad6254c5 3320do
d0191583
JM
3321 # Use a header file that comes with gcc, so configuring glibc
3322 # with a fresh cross-compiler works.
3323 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3324 # <limits.h> exists even on freestanding compilers.
3325 # On the NeXT, cc -E runs the code through the compiler's parser,
3326 # not just through cpp. "Syntax error" is here to catch this case.
3327 cat >conftest.$ac_ext <<_ACEOF
3328/* confdefs.h. */
3329_ACEOF
3330cat confdefs.h >>conftest.$ac_ext
3331cat >>conftest.$ac_ext <<_ACEOF
3332/* end confdefs.h. */
3333#ifdef __STDC__
3334# include <limits.h>
3335#else
3336# include <assert.h>
3337#endif
3338 Syntax error
3339_ACEOF
3340if { (ac_try="$ac_cpp conftest.$ac_ext"
3341case "(($ac_try" in
3342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3343 *) ac_try_echo=$ac_try;;
ad6254c5 3344esac
ec6a6fbe
AK
3345eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3346$as_echo "$ac_try_echo") >&5
d0191583
JM
3347 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3348 ac_status=$?
3349 grep -v '^ *+' conftest.er1 >conftest.err
3350 rm -f conftest.er1
3351 cat conftest.err >&5
ec6a6fbe 3352 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3353 (exit $ac_status); } >/dev/null && {
3354 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3355 test ! -s conftest.err
3356 }; then
3357 :
3358else
ec6a6fbe 3359 $as_echo "$as_me: failed program was:" >&5
d0191583 3360sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 3361
d0191583
JM
3362 # Broken: fails on valid input.
3363continue
795ca3e5 3364fi
795ca3e5 3365
d0191583 3366rm -f conftest.err conftest.$ac_ext
795ca3e5 3367
d0191583
JM
3368 # OK, works on sane cases. Now check whether nonexistent headers
3369 # can be detected and how.
3370 cat >conftest.$ac_ext <<_ACEOF
3371/* confdefs.h. */
3372_ACEOF
3373cat confdefs.h >>conftest.$ac_ext
3374cat >>conftest.$ac_ext <<_ACEOF
3375/* end confdefs.h. */
3376#include <ac_nonexistent.h>
3377_ACEOF
3378if { (ac_try="$ac_cpp conftest.$ac_ext"
3379case "(($ac_try" in
3380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3381 *) ac_try_echo=$ac_try;;
3382esac
ec6a6fbe
AK
3383eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3384$as_echo "$ac_try_echo") >&5
d0191583
JM
3385 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3386 ac_status=$?
3387 grep -v '^ *+' conftest.er1 >conftest.err
3388 rm -f conftest.er1
3389 cat conftest.err >&5
ec6a6fbe 3390 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3391 (exit $ac_status); } >/dev/null && {
3392 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3393 test ! -s conftest.err
3394 }; then
3395 # Broken: success on invalid input.
3396continue
3397else
ec6a6fbe 3398 $as_echo "$as_me: failed program was:" >&5
d0191583 3399sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 3400
d0191583
JM
3401 # Passes both tests.
3402ac_preproc_ok=:
3403break
3404fi
795ca3e5 3405
d0191583
JM
3406rm -f conftest.err conftest.$ac_ext
3407
3408done
3409# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3410rm -f conftest.err conftest.$ac_ext
3411if $ac_preproc_ok; then
3412 break
795ca3e5
AK
3413fi
3414
d0191583
JM
3415 done
3416 ac_cv_prog_CPP=$CPP
3417
3418fi
3419 CPP=$ac_cv_prog_CPP
795ca3e5 3420else
d0191583
JM
3421 ac_cv_prog_CPP=$CPP
3422fi
ec6a6fbe
AK
3423{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
3424$as_echo "$CPP" >&6; }
d0191583
JM
3425ac_preproc_ok=false
3426for ac_c_preproc_warn_flag in '' yes
3427do
3428 # Use a header file that comes with gcc, so configuring glibc
3429 # with a fresh cross-compiler works.
3430 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3431 # <limits.h> exists even on freestanding compilers.
3432 # On the NeXT, cc -E runs the code through the compiler's parser,
3433 # not just through cpp. "Syntax error" is here to catch this case.
3434 cat >conftest.$ac_ext <<_ACEOF
3435/* confdefs.h. */
ad6254c5 3436_ACEOF
d0191583
JM
3437cat confdefs.h >>conftest.$ac_ext
3438cat >>conftest.$ac_ext <<_ACEOF
3439/* end confdefs.h. */
3440#ifdef __STDC__
3441# include <limits.h>
3442#else
3443# include <assert.h>
3444#endif
3445 Syntax error
3446_ACEOF
3447if { (ac_try="$ac_cpp conftest.$ac_ext"
3448case "(($ac_try" in
3449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3450 *) ac_try_echo=$ac_try;;
7a197a62 3451esac
ec6a6fbe
AK
3452eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3453$as_echo "$ac_try_echo") >&5
d0191583
JM
3454 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3455 ac_status=$?
3456 grep -v '^ *+' conftest.er1 >conftest.err
3457 rm -f conftest.er1
3458 cat conftest.err >&5
ec6a6fbe 3459 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3460 (exit $ac_status); } >/dev/null && {
3461 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3462 test ! -s conftest.err
3463 }; then
3464 :
795ca3e5 3465else
ec6a6fbe 3466 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
3467sed 's/^/| /' conftest.$ac_ext >&5
3468
3469 # Broken: fails on valid input.
3470continue
795ca3e5
AK
3471fi
3472
d0191583
JM
3473rm -f conftest.err conftest.$ac_ext
3474
3475 # OK, works on sane cases. Now check whether nonexistent headers
3476 # can be detected and how.
3477 cat >conftest.$ac_ext <<_ACEOF
3478/* confdefs.h. */
3479_ACEOF
3480cat confdefs.h >>conftest.$ac_ext
3481cat >>conftest.$ac_ext <<_ACEOF
3482/* end confdefs.h. */
3483#include <ac_nonexistent.h>
3484_ACEOF
3485if { (ac_try="$ac_cpp conftest.$ac_ext"
3486case "(($ac_try" in
3487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3488 *) ac_try_echo=$ac_try;;
3489esac
ec6a6fbe
AK
3490eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3491$as_echo "$ac_try_echo") >&5
d0191583
JM
3492 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3493 ac_status=$?
3494 grep -v '^ *+' conftest.er1 >conftest.err
3495 rm -f conftest.er1
3496 cat conftest.err >&5
ec6a6fbe 3497 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3498 (exit $ac_status); } >/dev/null && {
3499 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3500 test ! -s conftest.err
3501 }; then
3502 # Broken: success on invalid input.
3503continue
795ca3e5 3504else
ec6a6fbe 3505 $as_echo "$as_me: failed program was:" >&5
d0191583 3506sed 's/^/| /' conftest.$ac_ext >&5
ad6254c5 3507
d0191583
JM
3508 # Passes both tests.
3509ac_preproc_ok=:
3510break
795ca3e5 3511fi
d0191583
JM
3512
3513rm -f conftest.err conftest.$ac_ext
3514
3515done
3516# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3517rm -f conftest.err conftest.$ac_ext
3518if $ac_preproc_ok; then
3519 :
8106cdd5 3520else
ec6a6fbe
AK
3521 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3522$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3523{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
d0191583 3524See \`config.log' for more details." >&5
ec6a6fbe 3525$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
d0191583 3526See \`config.log' for more details." >&2;}
ec6a6fbe 3527 { (exit 1); exit 1; }; }; }
8106cdd5
AK
3528fi
3529
d0191583
JM
3530ac_ext=c
3531ac_cpp='$CPP $CPPFLAGS'
3532ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3533ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3534ac_compiler_gnu=$ac_cv_c_compiler_gnu
3535
7a197a62 3536
ec6a6fbe
AK
3537{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3538$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5556819a 3539if test "${ac_cv_path_GREP+set}" = set; then
ec6a6fbe 3540 $as_echo_n "(cached) " >&6
ad6254c5 3541else
ec6a6fbe 3542 if test -z "$GREP"; then
d0191583 3543 ac_path_GREP_found=false
ec6a6fbe
AK
3544 # Loop through the user's path and test for each of PROGNAME-LIST
3545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
d0191583 3546for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
ad6254c5
AK
3547do
3548 IFS=$as_save_IFS
3549 test -z "$as_dir" && as_dir=.
d0191583 3550 for ac_prog in grep ggrep; do
ec6a6fbe
AK
3551 for ac_exec_ext in '' $ac_executable_extensions; do
3552 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3553 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3554# Check for GNU ac_path_GREP and select it if it is found.
d0191583
JM
3555 # Check for GNU $ac_path_GREP
3556case `"$ac_path_GREP" --version 2>&1` in
3557*GNU*)
3558 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3559*)
3560 ac_count=0
ec6a6fbe 3561 $as_echo_n 0123456789 >"conftest.in"
d0191583
JM
3562 while :
3563 do
3564 cat "conftest.in" "conftest.in" >"conftest.tmp"
3565 mv "conftest.tmp" "conftest.in"
3566 cp "conftest.in" "conftest.nl"
ec6a6fbe 3567 $as_echo 'GREP' >> "conftest.nl"
d0191583
JM
3568 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3569 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3570 ac_count=`expr $ac_count + 1`
3571 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3572 # Best one so far, save it but keep looking for a better one
3573 ac_cv_path_GREP="$ac_path_GREP"
3574 ac_path_GREP_max=$ac_count
3575 fi
3576 # 10*(2^10) chars as input seems more than enough
3577 test $ac_count -gt 10 && break
3578 done
3579 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3580esac
3581
ec6a6fbe
AK
3582 $ac_path_GREP_found && break 3
3583 done
d0191583 3584 done
ad6254c5 3585done
7a197a62 3586IFS=$as_save_IFS
ec6a6fbe
AK
3587 if test -z "$ac_cv_path_GREP"; then
3588 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3589$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
d0191583 3590 { (exit 1); exit 1; }; }
ec6a6fbe 3591 fi
80992638 3592else
d0191583 3593 ac_cv_path_GREP=$GREP
8106cdd5 3594fi
8106cdd5 3595
80992638 3596fi
ec6a6fbe
AK
3597{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3598$as_echo "$ac_cv_path_GREP" >&6; }
d0191583 3599 GREP="$ac_cv_path_GREP"
795ca3e5 3600
d0191583 3601
ec6a6fbe
AK
3602{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
3603$as_echo_n "checking for egrep... " >&6; }
d0191583 3604if test "${ac_cv_path_EGREP+set}" = set; then
ec6a6fbe 3605 $as_echo_n "(cached) " >&6
8a2fc586 3606else
d0191583
JM
3607 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3608 then ac_cv_path_EGREP="$GREP -E"
3609 else
ec6a6fbe 3610 if test -z "$EGREP"; then
d0191583 3611 ac_path_EGREP_found=false
ec6a6fbe
AK
3612 # Loop through the user's path and test for each of PROGNAME-LIST
3613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
d0191583 3614for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8a2fc586
AK
3615do
3616 IFS=$as_save_IFS
3617 test -z "$as_dir" && as_dir=.
d0191583 3618 for ac_prog in egrep; do
ec6a6fbe
AK
3619 for ac_exec_ext in '' $ac_executable_extensions; do
3620 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3621 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3622# Check for GNU ac_path_EGREP and select it if it is found.
d0191583
JM
3623 # Check for GNU $ac_path_EGREP
3624case `"$ac_path_EGREP" --version 2>&1` in
3625*GNU*)
3626 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3627*)
3628 ac_count=0
ec6a6fbe 3629 $as_echo_n 0123456789 >"conftest.in"
d0191583
JM
3630 while :
3631 do
3632 cat "conftest.in" "conftest.in" >"conftest.tmp"
3633 mv "conftest.tmp" "conftest.in"
3634 cp "conftest.in" "conftest.nl"
ec6a6fbe 3635 $as_echo 'EGREP' >> "conftest.nl"
d0191583
JM
3636 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3637 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3638 ac_count=`expr $ac_count + 1`
3639 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3640 # Best one so far, save it but keep looking for a better one
3641 ac_cv_path_EGREP="$ac_path_EGREP"
3642 ac_path_EGREP_max=$ac_count
3643 fi
3644 # 10*(2^10) chars as input seems more than enough
3645 test $ac_count -gt 10 && break
3646 done
3647 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8a2fc586 3648esac
8a2fc586 3649
ec6a6fbe
AK
3650 $ac_path_EGREP_found && break 3
3651 done
d0191583 3652 done
8a2fc586 3653done
7a197a62 3654IFS=$as_save_IFS
ec6a6fbe
AK
3655 if test -z "$ac_cv_path_EGREP"; then
3656 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3657$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
d0191583 3658 { (exit 1); exit 1; }; }
ec6a6fbe 3659 fi
d0191583
JM
3660else
3661 ac_cv_path_EGREP=$EGREP
3662fi
ad6254c5 3663
d0191583
JM
3664 fi
3665fi
ec6a6fbe
AK
3666{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3667$as_echo "$ac_cv_path_EGREP" >&6; }
d0191583 3668 EGREP="$ac_cv_path_EGREP"
ad6254c5
AK
3669
3670
d0191583 3671if test $ac_cv_c_compiler_gnu = yes; then
ec6a6fbe
AK
3672 { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3673$as_echo_n "checking whether $CC needs -traditional... " >&6; }
d0191583 3674if test "${ac_cv_prog_gcc_traditional+set}" = set; then
ec6a6fbe 3675 $as_echo_n "(cached) " >&6
8106cdd5 3676else
d0191583 3677 ac_pattern="Autoconf.*'x'"
ad6254c5 3678 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3679/* confdefs.h. */
3680_ACEOF
3681cat confdefs.h >>conftest.$ac_ext
3682cat >>conftest.$ac_ext <<_ACEOF
3683/* end confdefs.h. */
d0191583
JM
3684#include <sgtty.h>
3685Autoconf TIOCGETP
ad6254c5 3686_ACEOF
d0191583
JM
3687if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3688 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3689 ac_cv_prog_gcc_traditional=yes
8106cdd5 3690else
d0191583 3691 ac_cv_prog_gcc_traditional=no
80992638 3692fi
d0191583 3693rm -f conftest*
ad6254c5 3694
8106cdd5 3695
d0191583
JM
3696 if test $ac_cv_prog_gcc_traditional = no; then
3697 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3698/* confdefs.h. */
3699_ACEOF
3700cat confdefs.h >>conftest.$ac_ext
3701cat >>conftest.$ac_ext <<_ACEOF
3702/* end confdefs.h. */
d0191583
JM
3703#include <termio.h>
3704Autoconf TCGETA
ad6254c5 3705_ACEOF
d0191583
JM
3706if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3707 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3708 ac_cv_prog_gcc_traditional=yes
7a197a62 3709fi
d0191583 3710rm -f conftest*
795ca3e5 3711
d0191583 3712 fi
795ca3e5 3713fi
ec6a6fbe
AK
3714{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3715$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
d0191583
JM
3716 if test $ac_cv_prog_gcc_traditional = yes; then
3717 CC="$CC -traditional"
3718 fi
795ca3e5
AK
3719fi
3720
d0191583
JM
3721# Find a good install program. We prefer a C program (faster),
3722# so one script is as good as another. But avoid the broken or
3723# incompatible versions:
3724# SysV /etc/install, /usr/sbin/install
3725# SunOS /usr/etc/install
3726# IRIX /sbin/install
3727# AIX /bin/install
3728# AmigaOS /C/install, which installs bootblocks on floppy discs
3729# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3730# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3731# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3732# OS/2's system install, which has a completely different semantic
3733# ./install, which can be erroneously created by make from ./install.sh.
ec6a6fbe
AK
3734# Reject install programs that cannot install multiple files.
3735{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3736$as_echo_n "checking for a BSD-compatible install... " >&6; }
d0191583
JM
3737if test -z "$INSTALL"; then
3738if test "${ac_cv_path_install+set}" = set; then
ec6a6fbe 3739 $as_echo_n "(cached) " >&6
ad6254c5 3740else
d0191583
JM
3741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3742for as_dir in $PATH
3743do
3744 IFS=$as_save_IFS
3745 test -z "$as_dir" && as_dir=.
3746 # Account for people who put trailing slashes in PATH elements.
3747case $as_dir/ in
3748 ./ | .// | /cC/* | \
3749 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3750 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3751 /usr/ucb/* ) ;;
3752 *)
3753 # OSF1 and SCO ODT 3.0 have their own names for install.
3754 # Don't use installbsd from OSF since it installs stuff as root
3755 # by default.
3756 for ac_prog in ginstall scoinst install; do
3757 for ac_exec_ext in '' $ac_executable_extensions; do
3758 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3759 if test $ac_prog = install &&
3760 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3761 # AIX install. It has an incompatible calling convention.
3762 :
3763 elif test $ac_prog = install &&
3764 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3765 # program-specific install script used by HP pwplus--don't use.
3766 :
3767 else
ec6a6fbe
AK
3768 rm -rf conftest.one conftest.two conftest.dir
3769 echo one > conftest.one
3770 echo two > conftest.two
3771 mkdir conftest.dir
3772 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3773 test -s conftest.one && test -s conftest.two &&
3774 test -s conftest.dir/conftest.one &&
3775 test -s conftest.dir/conftest.two
3776 then
3777 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3778 break 3
3779 fi
d0191583
JM
3780 fi
3781 fi
3782 done
3783 done
3784 ;;
3785esac
ec6a6fbe 3786
d0191583
JM
3787done
3788IFS=$as_save_IFS
80992638 3789
ec6a6fbe 3790rm -rf conftest.one conftest.two conftest.dir
d0191583
JM
3791
3792fi
3793 if test "${ac_cv_path_install+set}" = set; then
3794 INSTALL=$ac_cv_path_install
7a197a62 3795 else
d0191583
JM
3796 # As a last resort, use the slow shell script. Don't cache a
3797 # value for INSTALL within a source directory, because that will
3798 # break other packages using the cache if that directory is
3799 # removed, or if the value is a relative name.
3800 INSTALL=$ac_install_sh
7a197a62 3801 fi
d0191583 3802fi
ec6a6fbe
AK
3803{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3804$as_echo "$INSTALL" >&6; }
ad6254c5 3805
d0191583
JM
3806# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3807# It thinks the first close brace ends the variable substitution.
3808test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
ad6254c5 3809
d0191583 3810test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
80992638 3811
d0191583
JM
3812test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3813
ec6a6fbe
AK
3814{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
3815$as_echo_n "checking whether ln -s works... " >&6; }
d0191583
JM
3816LN_S=$as_ln_s
3817if test "$LN_S" = "ln -s"; then
ec6a6fbe
AK
3818 { $as_echo "$as_me:$LINENO: result: yes" >&5
3819$as_echo "yes" >&6; }
d0191583 3820else
ec6a6fbe
AK
3821 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3822$as_echo "no, using $LN_S" >&6; }
795ca3e5 3823fi
d0191583 3824
ec6a6fbe
AK
3825{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3826$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3827set x ${MAKE-make}
3828ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
d0191583 3829if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 3830 $as_echo_n "(cached) " >&6
7a197a62 3831else
d0191583
JM
3832 cat >conftest.make <<\_ACEOF
3833SHELL = /bin/sh
3834all:
3835 @echo '@@@%%%=$(MAKE)=@@@%%%'
3836_ACEOF
3837# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3838case `${MAKE-make} -f conftest.make 2>/dev/null` in
3839 *@@@%%%=?*=@@@%%%*)
3840 eval ac_cv_prog_make_${ac_make}_set=yes;;
3841 *)
3842 eval ac_cv_prog_make_${ac_make}_set=no;;
3843esac
3844rm -f conftest.make
ad6254c5 3845fi
d0191583 3846if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
ec6a6fbe
AK
3847 { $as_echo "$as_me:$LINENO: result: yes" >&5
3848$as_echo "yes" >&6; }
d0191583
JM
3849 SET_MAKE=
3850else
ec6a6fbe
AK
3851 { $as_echo "$as_me:$LINENO: result: no" >&5
3852$as_echo "no" >&6; }
d0191583 3853 SET_MAKE="MAKE=${MAKE-make}"
795ca3e5 3854fi
8106cdd5 3855
ec6a6fbe
AK
3856{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
3857$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
5556819a
AK
3858if test -z "$MKDIR_P"; then
3859 if test "${ac_cv_path_mkdir+set}" = set; then
ec6a6fbe 3860 $as_echo_n "(cached) " >&6
5556819a
AK
3861else
3862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3863for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3864do
3865 IFS=$as_save_IFS
3866 test -z "$as_dir" && as_dir=.
3867 for ac_prog in mkdir gmkdir; do
3868 for ac_exec_ext in '' $ac_executable_extensions; do
3869 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3870 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3871 'mkdir (GNU coreutils) '* | \
3872 'mkdir (coreutils) '* | \
3873 'mkdir (fileutils) '4.1*)
3874 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3875 break 3;;
3876 esac
3877 done
3878 done
3879done
3880IFS=$as_save_IFS
3881
3882fi
3883
3884 if test "${ac_cv_path_mkdir+set}" = set; then
3885 MKDIR_P="$ac_cv_path_mkdir -p"
3886 else
3887 # As a last resort, use the slow shell script. Don't cache a
3888 # value for MKDIR_P within a source directory, because that will
3889 # break other packages using the cache if that directory is
3890 # removed, or if the value is a relative name.
3891 test -d ./--version && rmdir ./--version
3892 MKDIR_P="$ac_install_sh -d"
3893 fi
3894fi
ec6a6fbe
AK
3895{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
3896$as_echo "$MKDIR_P" >&6; }
5556819a 3897
d0191583
JM
3898if test -n "$ac_tool_prefix"; then
3899 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3900set dummy ${ac_tool_prefix}ranlib; ac_word=$2
ec6a6fbe
AK
3901{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3902$as_echo_n "checking for $ac_word... " >&6; }
d0191583 3903if test "${ac_cv_prog_RANLIB+set}" = set; then
ec6a6fbe 3904 $as_echo_n "(cached) " >&6
d0191583
JM
3905else
3906 if test -n "$RANLIB"; then
3907 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3908else
3909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3910for as_dir in $PATH
3911do
3912 IFS=$as_save_IFS
3913 test -z "$as_dir" && as_dir=.
3914 for ac_exec_ext in '' $ac_executable_extensions; do
3915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3916 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
ec6a6fbe 3917 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
3918 break 2
3919 fi
3920done
3921done
3922IFS=$as_save_IFS
8106cdd5 3923
795ca3e5 3924fi
d0191583
JM
3925fi
3926RANLIB=$ac_cv_prog_RANLIB
3927if test -n "$RANLIB"; then
ec6a6fbe
AK
3928 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
3929$as_echo "$RANLIB" >&6; }
d0191583 3930else
ec6a6fbe
AK
3931 { $as_echo "$as_me:$LINENO: result: no" >&5
3932$as_echo "no" >&6; }
d0191583
JM
3933fi
3934
8106cdd5 3935
ad6254c5 3936fi
d0191583
JM
3937if test -z "$ac_cv_prog_RANLIB"; then
3938 ac_ct_RANLIB=$RANLIB
3939 # Extract the first word of "ranlib", so it can be a program name with args.
3940set dummy ranlib; ac_word=$2
ec6a6fbe
AK
3941{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3942$as_echo_n "checking for $ac_word... " >&6; }
d0191583 3943if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
ec6a6fbe 3944 $as_echo_n "(cached) " >&6
ad6254c5 3945else
d0191583
JM
3946 if test -n "$ac_ct_RANLIB"; then
3947 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3948else
3949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3950for as_dir in $PATH
8106cdd5 3951do
d0191583
JM
3952 IFS=$as_save_IFS
3953 test -z "$as_dir" && as_dir=.
3954 for ac_exec_ext in '' $ac_executable_extensions; do
3955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3956 ac_cv_prog_ac_ct_RANLIB="ranlib"
ec6a6fbe 3957 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
3958 break 2
3959 fi
3960done
3961done
3962IFS=$as_save_IFS
3963
3964fi
3965fi
3966ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3967if test -n "$ac_ct_RANLIB"; then
ec6a6fbe
AK
3968 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3969$as_echo "$ac_ct_RANLIB" >&6; }
ad6254c5 3970else
ec6a6fbe
AK
3971 { $as_echo "$as_me:$LINENO: result: no" >&5
3972$as_echo "no" >&6; }
d0191583 3973fi
ad6254c5 3974
d0191583
JM
3975 if test "x$ac_ct_RANLIB" = x; then
3976 RANLIB=":"
3977 else
3978 case $cross_compiling:$ac_tool_warned in
3979yes:)
ec6a6fbe
AK
3980{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3981$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
d0191583
JM
3982ac_tool_warned=yes ;;
3983esac
3984 RANLIB=$ac_ct_RANLIB
3985 fi
3986else
3987 RANLIB="$ac_cv_prog_RANLIB"
ad6254c5 3988fi
7a197a62 3989
d0191583
JM
3990# Extract the first word of "cflow", so it can be a program name with args.
3991set dummy cflow; ac_word=$2
ec6a6fbe
AK
3992{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3993$as_echo_n "checking for $ac_word... " >&6; }
d0191583 3994if test "${ac_cv_path_CFLOW_CMD+set}" = set; then
ec6a6fbe 3995 $as_echo_n "(cached) " >&6
d0191583
JM
3996else
3997 case $CFLOW_CMD in
3998 [\\/]* | ?:[\\/]*)
3999 ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path.
4000 ;;
4001 *)
4002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4003for as_dir in $PATH
4004do
4005 IFS=$as_save_IFS
4006 test -z "$as_dir" && as_dir=.
4007 for ac_exec_ext in '' $ac_executable_extensions; do
4008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4009 ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 4010 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
4011 break 2
4012 fi
4013done
4014done
4015IFS=$as_save_IFS
ad6254c5 4016
d0191583 4017 ;;
7a197a62 4018esac
d0191583
JM
4019fi
4020CFLOW_CMD=$ac_cv_path_CFLOW_CMD
4021if test -n "$CFLOW_CMD"; then
ec6a6fbe
AK
4022 { $as_echo "$as_me:$LINENO: result: $CFLOW_CMD" >&5
4023$as_echo "$CFLOW_CMD" >&6; }
80992638 4024else
ec6a6fbe
AK
4025 { $as_echo "$as_me:$LINENO: result: no" >&5
4026$as_echo "no" >&6; }
795ca3e5 4027fi
7a197a62 4028
ad6254c5 4029
d0191583
JM
4030# Extract the first word of "cscope", so it can be a program name with args.
4031set dummy cscope; ac_word=$2
ec6a6fbe
AK
4032{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4033$as_echo_n "checking for $ac_word... " >&6; }
d0191583 4034if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then
ec6a6fbe 4035 $as_echo_n "(cached) " >&6
d0191583
JM
4036else
4037 case $CSCOPE_CMD in
4038 [\\/]* | ?:[\\/]*)
4039 ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path.
4040 ;;
4041 *)
4042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4043for as_dir in $PATH
4044do
4045 IFS=$as_save_IFS
4046 test -z "$as_dir" && as_dir=.
4047 for ac_exec_ext in '' $ac_executable_extensions; do
4048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4049 ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 4050 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
4051 break 2
4052 fi
795ca3e5 4053done
d0191583
JM
4054done
4055IFS=$as_save_IFS
795ca3e5 4056
d0191583
JM
4057 ;;
4058esac
ad6254c5 4059fi
d0191583
JM
4060CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD
4061if test -n "$CSCOPE_CMD"; then
ec6a6fbe
AK
4062 { $as_echo "$as_me:$LINENO: result: $CSCOPE_CMD" >&5
4063$as_echo "$CSCOPE_CMD" >&6; }
795ca3e5 4064else
ec6a6fbe
AK
4065 { $as_echo "$as_me:$LINENO: result: no" >&5
4066$as_echo "no" >&6; }
795ca3e5 4067fi
ad6254c5 4068
7a197a62 4069
ad6254c5 4070
d0191583
JM
4071################################################################################
4072
4073
4074
4075
4076
4077ac_header_dirent=no
4078for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
ec6a6fbe
AK
4079 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4080{ $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4081$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
d0191583 4082if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 4083 $as_echo_n "(cached) " >&6
d0191583 4084else
ad6254c5 4085 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4086/* confdefs.h. */
4087_ACEOF
4088cat confdefs.h >>conftest.$ac_ext
4089cat >>conftest.$ac_ext <<_ACEOF
4090/* end confdefs.h. */
d0191583
JM
4091#include <sys/types.h>
4092#include <$ac_hdr>
4093
4094int
4095main ()
4096{
4097if ((DIR *) 0)
4098return 0;
4099 ;
4100 return 0;
4101}
ad6254c5 4102_ACEOF
d0191583
JM
4103rm -f conftest.$ac_objext
4104if { (ac_try="$ac_compile"
7a197a62
AK
4105case "(($ac_try" in
4106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4107 *) ac_try_echo=$ac_try;;
4108esac
ec6a6fbe
AK
4109eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4110$as_echo "$ac_try_echo") >&5
d0191583 4111 (eval "$ac_compile") 2>conftest.er1
ad6254c5
AK
4112 ac_status=$?
4113 grep -v '^ *+' conftest.er1 >conftest.err
4114 rm -f conftest.er1
4115 cat conftest.err >&5
ec6a6fbe 4116 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4117 (exit $ac_status); } && {
4118 test -z "$ac_c_werror_flag" ||
25fbec5b 4119 test ! -s conftest.err
d0191583
JM
4120 } && test -s conftest.$ac_objext; then
4121 eval "$as_ac_Header=yes"
ad6254c5 4122else
ec6a6fbe 4123 $as_echo "$as_me: failed program was:" >&5
ad6254c5 4124sed 's/^/| /' conftest.$ac_ext >&5
8106cdd5 4125
d0191583 4126 eval "$as_ac_Header=no"
795ca3e5 4127fi
7a197a62 4128
d0191583 4129rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
795ca3e5 4130fi
ec6a6fbe
AK
4131ac_res=`eval 'as_val=${'$as_ac_Header'}
4132 $as_echo "$as_val"'`
4133 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4134$as_echo "$ac_res" >&6; }
4135as_val=`eval 'as_val=${'$as_ac_Header'}
4136 $as_echo "$as_val"'`
4137 if test "x$as_val" = x""yes; then
d0191583 4138 cat >>confdefs.h <<_ACEOF
ec6a6fbe 4139#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
d0191583 4140_ACEOF
795ca3e5 4141
d0191583
JM
4142ac_header_dirent=$ac_hdr; break
4143fi
ad6254c5 4144
d0191583
JM
4145done
4146# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4147if test $ac_header_dirent = dirent.h; then
ec6a6fbe
AK
4148 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
4149$as_echo_n "checking for library containing opendir... " >&6; }
d0191583 4150if test "${ac_cv_search_opendir+set}" = set; then
ec6a6fbe 4151 $as_echo_n "(cached) " >&6
ad6254c5 4152else
d0191583
JM
4153 ac_func_search_save_LIBS=$LIBS
4154cat >conftest.$ac_ext <<_ACEOF
4155/* confdefs.h. */
4156_ACEOF
4157cat confdefs.h >>conftest.$ac_ext
4158cat >>conftest.$ac_ext <<_ACEOF
4159/* end confdefs.h. */
ad6254c5 4160
d0191583
JM
4161/* Override any GCC internal prototype to avoid an error.
4162 Use char because int might match the return type of a GCC
4163 builtin and then its argument prototype would still apply. */
4164#ifdef __cplusplus
4165extern "C"
4166#endif
4167char opendir ();
4168int
4169main ()
4170{
4171return opendir ();
4172 ;
4173 return 0;
4174}
4175_ACEOF
4176for ac_lib in '' dir; do
4177 if test -z "$ac_lib"; then
4178 ac_res="none required"
4179 else
4180 ac_res=-l$ac_lib
4181 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4182 fi
4183 rm -f conftest.$ac_objext conftest$ac_exeext
4184if { (ac_try="$ac_link"
4185case "(($ac_try" in
4186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4187 *) ac_try_echo=$ac_try;;
4188esac
ec6a6fbe
AK
4189eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4190$as_echo "$ac_try_echo") >&5
d0191583
JM
4191 (eval "$ac_link") 2>conftest.er1
4192 ac_status=$?
4193 grep -v '^ *+' conftest.er1 >conftest.err
4194 rm -f conftest.er1
4195 cat conftest.err >&5
ec6a6fbe 4196 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4197 (exit $ac_status); } && {
4198 test -z "$ac_c_werror_flag" ||
4199 test ! -s conftest.err
ec6a6fbe
AK
4200 } && test -s conftest$ac_exeext && {
4201 test "$cross_compiling" = yes ||
4202 $as_test_x conftest$ac_exeext
4203 }; then
d0191583
JM
4204 ac_cv_search_opendir=$ac_res
4205else
ec6a6fbe 4206 $as_echo "$as_me: failed program was:" >&5
d0191583 4207sed 's/^/| /' conftest.$ac_ext >&5
ad6254c5 4208
ad6254c5 4209
795ca3e5 4210fi
ad6254c5 4211
ec6a6fbe 4212rm -rf conftest.dSYM
d0191583
JM
4213rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4214 conftest$ac_exeext
4215 if test "${ac_cv_search_opendir+set}" = set; then
4216 break
7a197a62 4217fi
d0191583
JM
4218done
4219if test "${ac_cv_search_opendir+set}" = set; then
4220 :
7a197a62 4221else
d0191583 4222 ac_cv_search_opendir=no
7a197a62 4223fi
d0191583
JM
4224rm conftest.$ac_ext
4225LIBS=$ac_func_search_save_LIBS
7a197a62 4226fi
ec6a6fbe
AK
4227{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4228$as_echo "$ac_cv_search_opendir" >&6; }
d0191583
JM
4229ac_res=$ac_cv_search_opendir
4230if test "$ac_res" != no; then
4231 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7a197a62 4232
d0191583 4233fi
7a197a62 4234
7a197a62 4235else
ec6a6fbe
AK
4236 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
4237$as_echo_n "checking for library containing opendir... " >&6; }
d0191583 4238if test "${ac_cv_search_opendir+set}" = set; then
ec6a6fbe 4239 $as_echo_n "(cached) " >&6
7a197a62 4240else
d0191583
JM
4241 ac_func_search_save_LIBS=$LIBS
4242cat >conftest.$ac_ext <<_ACEOF
4243/* confdefs.h. */
4244_ACEOF
4245cat confdefs.h >>conftest.$ac_ext
4246cat >>conftest.$ac_ext <<_ACEOF
4247/* end confdefs.h. */
7a197a62 4248
d0191583
JM
4249/* Override any GCC internal prototype to avoid an error.
4250 Use char because int might match the return type of a GCC
4251 builtin and then its argument prototype would still apply. */
4252#ifdef __cplusplus
4253extern "C"
4254#endif
4255char opendir ();
4256int
4257main ()
4258{
4259return opendir ();
4260 ;
4261 return 0;
4262}
4263_ACEOF
4264for ac_lib in '' x; do
4265 if test -z "$ac_lib"; then
4266 ac_res="none required"
4267 else
4268 ac_res=-l$ac_lib
4269 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4270 fi
4271 rm -f conftest.$ac_objext conftest$ac_exeext
4272if { (ac_try="$ac_link"
4273case "(($ac_try" in
4274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4275 *) ac_try_echo=$ac_try;;
4276esac
ec6a6fbe
AK
4277eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4278$as_echo "$ac_try_echo") >&5
d0191583
JM
4279 (eval "$ac_link") 2>conftest.er1
4280 ac_status=$?
4281 grep -v '^ *+' conftest.er1 >conftest.err
4282 rm -f conftest.er1
4283 cat conftest.err >&5
ec6a6fbe 4284 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4285 (exit $ac_status); } && {
4286 test -z "$ac_c_werror_flag" ||
4287 test ! -s conftest.err
ec6a6fbe
AK
4288 } && test -s conftest$ac_exeext && {
4289 test "$cross_compiling" = yes ||
4290 $as_test_x conftest$ac_exeext
4291 }; then
d0191583
JM
4292 ac_cv_search_opendir=$ac_res
4293else
ec6a6fbe 4294 $as_echo "$as_me: failed program was:" >&5
d0191583 4295sed 's/^/| /' conftest.$ac_ext >&5
7a197a62
AK
4296
4297
4298fi
4299
ec6a6fbe 4300rm -rf conftest.dSYM
d0191583
JM
4301rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4302 conftest$ac_exeext
4303 if test "${ac_cv_search_opendir+set}" = set; then
4304 break
7a197a62 4305fi
d0191583
JM
4306done
4307if test "${ac_cv_search_opendir+set}" = set; then
4308 :
7a197a62 4309else
d0191583 4310 ac_cv_search_opendir=no
7a197a62 4311fi
d0191583
JM
4312rm conftest.$ac_ext
4313LIBS=$ac_func_search_save_LIBS
4314fi
ec6a6fbe
AK
4315{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4316$as_echo "$ac_cv_search_opendir" >&6; }
d0191583
JM
4317ac_res=$ac_cv_search_opendir
4318if test "$ac_res" != no; then
4319 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7a197a62 4320
7a197a62 4321fi
7a197a62 4322
d0191583 4323fi
7a197a62 4324
ec6a6fbe
AK
4325{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4326$as_echo_n "checking for ANSI C header files... " >&6; }
7a197a62 4327if test "${ac_cv_header_stdc+set}" = set; then
ec6a6fbe 4328 $as_echo_n "(cached) " >&6
7a197a62
AK
4329else
4330 cat >conftest.$ac_ext <<_ACEOF
4331/* confdefs.h. */
4332_ACEOF
4333cat confdefs.h >>conftest.$ac_ext
4334cat >>conftest.$ac_ext <<_ACEOF
4335/* end confdefs.h. */
4336#include <stdlib.h>
4337#include <stdarg.h>
4338#include <string.h>
4339#include <float.h>
4340
4341int
4342main ()
4343{
4344
4345 ;
4346 return 0;
4347}
4348_ACEOF
4349rm -f conftest.$ac_objext
4350if { (ac_try="$ac_compile"
4351case "(($ac_try" in
4352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4353 *) ac_try_echo=$ac_try;;
4354esac
ec6a6fbe
AK
4355eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4356$as_echo "$ac_try_echo") >&5
7a197a62
AK
4357 (eval "$ac_compile") 2>conftest.er1
4358 ac_status=$?
4359 grep -v '^ *+' conftest.er1 >conftest.err
4360 rm -f conftest.er1
4361 cat conftest.err >&5
ec6a6fbe 4362 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4363 (exit $ac_status); } && {
4364 test -z "$ac_c_werror_flag" ||
4365 test ! -s conftest.err
4366 } && test -s conftest.$ac_objext; then
7a197a62
AK
4367 ac_cv_header_stdc=yes
4368else
ec6a6fbe 4369 $as_echo "$as_me: failed program was:" >&5
7a197a62
AK
4370sed 's/^/| /' conftest.$ac_ext >&5
4371
4372 ac_cv_header_stdc=no
4373fi
4374
4375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4376
4377if test $ac_cv_header_stdc = yes; then
4378 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
ad6254c5 4379 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4380/* confdefs.h. */
4381_ACEOF
4382cat confdefs.h >>conftest.$ac_ext
4383cat >>conftest.$ac_ext <<_ACEOF
4384/* end confdefs.h. */
4385#include <string.h>
8106cdd5 4386
ad6254c5
AK
4387_ACEOF
4388if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4389 $EGREP "memchr" >/dev/null 2>&1; then
4390 :
4391else
4392 ac_cv_header_stdc=no
80992638 4393fi
ad6254c5 4394rm -f conftest*
795ca3e5
AK
4395
4396fi
4397
ad6254c5
AK
4398if test $ac_cv_header_stdc = yes; then
4399 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4400 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4401/* confdefs.h. */
4402_ACEOF
4403cat confdefs.h >>conftest.$ac_ext
4404cat >>conftest.$ac_ext <<_ACEOF
4405/* end confdefs.h. */
80992638 4406#include <stdlib.h>
ad6254c5
AK
4407
4408_ACEOF
80992638 4409if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ad6254c5
AK
4410 $EGREP "free" >/dev/null 2>&1; then
4411 :
795ca3e5 4412else
ad6254c5 4413 ac_cv_header_stdc=no
795ca3e5 4414fi
80992638 4415rm -f conftest*
8106cdd5 4416
795ca3e5
AK
4417fi
4418
ad6254c5
AK
4419if test $ac_cv_header_stdc = yes; then
4420 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4421 if test "$cross_compiling" = yes; then
4422 :
795ca3e5 4423else
ad6254c5 4424 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4425/* confdefs.h. */
4426_ACEOF
4427cat confdefs.h >>conftest.$ac_ext
4428cat >>conftest.$ac_ext <<_ACEOF
4429/* end confdefs.h. */
4430#include <ctype.h>
7a197a62 4431#include <stdlib.h>
ad6254c5
AK
4432#if ((' ' & 0x0FF) == 0x020)
4433# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4434# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4435#else
4436# define ISLOWER(c) \
8a2fc586
AK
4437 (('a' <= (c) && (c) <= 'i') \
4438 || ('j' <= (c) && (c) <= 'r') \
4439 || ('s' <= (c) && (c) <= 'z'))
ad6254c5 4440# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
80992638 4441#endif
ad6254c5
AK
4442
4443#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4444int
4445main ()
4446{
4447 int i;
4448 for (i = 0; i < 256; i++)
4449 if (XOR (islower (i), ISLOWER (i))
8a2fc586 4450 || toupper (i) != TOUPPER (i))
7a197a62
AK
4451 return 2;
4452 return 0;
ad6254c5
AK
4453}
4454_ACEOF
4455rm -f conftest$ac_exeext
7a197a62
AK
4456if { (ac_try="$ac_link"
4457case "(($ac_try" in
4458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4459 *) ac_try_echo=$ac_try;;
4460esac
ec6a6fbe
AK
4461eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4462$as_echo "$ac_try_echo") >&5
7a197a62 4463 (eval "$ac_link") 2>&5
ad6254c5 4464 ac_status=$?
ec6a6fbe 4465 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 4466 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
4467 { (case "(($ac_try" in
4468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4469 *) ac_try_echo=$ac_try;;
4470esac
ec6a6fbe
AK
4471eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4472$as_echo "$ac_try_echo") >&5
7a197a62 4473 (eval "$ac_try") 2>&5
ad6254c5 4474 ac_status=$?
ec6a6fbe 4475 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
4476 (exit $ac_status); }; }; then
4477 :
795ca3e5 4478else
ec6a6fbe
AK
4479 $as_echo "$as_me: program exited with status $ac_status" >&5
4480$as_echo "$as_me: failed program was:" >&5
ad6254c5 4481sed 's/^/| /' conftest.$ac_ext >&5
8106cdd5 4482
ad6254c5
AK
4483( exit $ac_status )
4484ac_cv_header_stdc=no
80992638 4485fi
ec6a6fbe 4486rm -rf conftest.dSYM
7a197a62 4487rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 4488fi
7a197a62
AK
4489
4490
ad6254c5
AK
4491fi
4492fi
ec6a6fbe
AK
4493{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4494$as_echo "$ac_cv_header_stdc" >&6; }
ad6254c5
AK
4495if test $ac_cv_header_stdc = yes; then
4496
4497cat >>confdefs.h <<\_ACEOF
4498#define STDC_HEADERS 1
4499_ACEOF
795ca3e5
AK
4500
4501fi
4502
ec6a6fbe
AK
4503{ $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
4504$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
ad6254c5 4505if test "${ac_cv_header_sys_wait_h+set}" = set; then
ec6a6fbe 4506 $as_echo_n "(cached) " >&6
8106cdd5 4507else
ad6254c5 4508 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4509/* confdefs.h. */
4510_ACEOF
4511cat confdefs.h >>conftest.$ac_ext
4512cat >>conftest.$ac_ext <<_ACEOF
4513/* end confdefs.h. */
80992638 4514#include <sys/types.h>
ad6254c5
AK
4515#include <sys/wait.h>
4516#ifndef WEXITSTATUS
7a197a62 4517# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
ad6254c5
AK
4518#endif
4519#ifndef WIFEXITED
4520# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4521#endif
4522
4523int
4524main ()
4525{
4526 int s;
4527 wait (&s);
4528 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4529 ;
4530 return 0;
4531}
4532_ACEOF
4533rm -f conftest.$ac_objext
7a197a62
AK
4534if { (ac_try="$ac_compile"
4535case "(($ac_try" in
4536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4537 *) ac_try_echo=$ac_try;;
4538esac
ec6a6fbe
AK
4539eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4540$as_echo "$ac_try_echo") >&5
7a197a62 4541 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4542 ac_status=$?
8a2fc586
AK
4543 grep -v '^ *+' conftest.er1 >conftest.err
4544 rm -f conftest.er1
4545 cat conftest.err >&5
ec6a6fbe 4546 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4547 (exit $ac_status); } && {
4548 test -z "$ac_c_werror_flag" ||
4549 test ! -s conftest.err
4550 } && test -s conftest.$ac_objext; then
ad6254c5
AK
4551 ac_cv_header_sys_wait_h=yes
4552else
ec6a6fbe 4553 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
4554sed 's/^/| /' conftest.$ac_ext >&5
4555
7a197a62 4556 ac_cv_header_sys_wait_h=no
8106cdd5 4557fi
7a197a62
AK
4558
4559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
795ca3e5 4560fi
ec6a6fbe
AK
4561{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
4562$as_echo "$ac_cv_header_sys_wait_h" >&6; }
ad6254c5 4563if test $ac_cv_header_sys_wait_h = yes; then
8106cdd5 4564
ad6254c5
AK
4565cat >>confdefs.h <<\_ACEOF
4566#define HAVE_SYS_WAIT_H 1
4567_ACEOF
795ca3e5
AK
4568
4569fi
4570
ec6a6fbe
AK
4571{ $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4572$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
ad6254c5 4573if test "${ac_cv_header_time+set}" = set; then
ec6a6fbe 4574 $as_echo_n "(cached) " >&6
795ca3e5 4575else
ad6254c5 4576 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4577/* confdefs.h. */
4578_ACEOF
4579cat confdefs.h >>conftest.$ac_ext
4580cat >>conftest.$ac_ext <<_ACEOF
4581/* end confdefs.h. */
795ca3e5
AK
4582#include <sys/types.h>
4583#include <sys/time.h>
4584#include <time.h>
ad6254c5
AK
4585
4586int
4587main ()
4588{
4589if ((struct tm *) 0)
4590return 0;
4591 ;
4592 return 0;
4593}
4594_ACEOF
4595rm -f conftest.$ac_objext
7a197a62
AK
4596if { (ac_try="$ac_compile"
4597case "(($ac_try" in
4598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4599 *) ac_try_echo=$ac_try;;
4600esac
ec6a6fbe
AK
4601eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4602$as_echo "$ac_try_echo") >&5
7a197a62 4603 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4604 ac_status=$?
8a2fc586
AK
4605 grep -v '^ *+' conftest.er1 >conftest.err
4606 rm -f conftest.er1
4607 cat conftest.err >&5
ec6a6fbe 4608 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4609 (exit $ac_status); } && {
4610 test -z "$ac_c_werror_flag" ||
4611 test ! -s conftest.err
4612 } && test -s conftest.$ac_objext; then
795ca3e5
AK
4613 ac_cv_header_time=yes
4614else
ec6a6fbe 4615 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
4616sed 's/^/| /' conftest.$ac_ext >&5
4617
7a197a62 4618 ac_cv_header_time=no
795ca3e5 4619fi
7a197a62
AK
4620
4621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
795ca3e5 4622fi
ec6a6fbe
AK
4623{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4624$as_echo "$ac_cv_header_time" >&6; }
80992638 4625if test $ac_cv_header_time = yes; then
ad6254c5
AK
4626
4627cat >>confdefs.h <<\_ACEOF
795ca3e5 4628#define TIME_WITH_SYS_TIME 1
ad6254c5 4629_ACEOF
b896caa1 4630
8106cdd5 4631fi
b896caa1 4632
b896caa1 4633
d0191583
JM
4634# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4645 inttypes.h stdint.h unistd.h
4646do
ec6a6fbe
AK
4647as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4648{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4649$as_echo_n "checking for $ac_header... " >&6; }
d0191583 4650if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 4651 $as_echo_n "(cached) " >&6
d0191583
JM
4652else
4653 cat >conftest.$ac_ext <<_ACEOF
4654/* confdefs.h. */
4655_ACEOF
4656cat confdefs.h >>conftest.$ac_ext
4657cat >>conftest.$ac_ext <<_ACEOF
4658/* end confdefs.h. */
4659$ac_includes_default
4660
4661#include <$ac_header>
4662_ACEOF
4663rm -f conftest.$ac_objext
4664if { (ac_try="$ac_compile"
4665case "(($ac_try" in
4666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4667 *) ac_try_echo=$ac_try;;
4668esac
ec6a6fbe
AK
4669eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4670$as_echo "$ac_try_echo") >&5
d0191583
JM
4671 (eval "$ac_compile") 2>conftest.er1
4672 ac_status=$?
4673 grep -v '^ *+' conftest.er1 >conftest.err
4674 rm -f conftest.er1
4675 cat conftest.err >&5
ec6a6fbe 4676 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4677 (exit $ac_status); } && {
4678 test -z "$ac_c_werror_flag" ||
4679 test ! -s conftest.err
4680 } && test -s conftest.$ac_objext; then
4681 eval "$as_ac_Header=yes"
4682else
ec6a6fbe 4683 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
4684sed 's/^/| /' conftest.$ac_ext >&5
4685
4686 eval "$as_ac_Header=no"
4687fi
4688
4689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4690fi
ec6a6fbe
AK
4691ac_res=`eval 'as_val=${'$as_ac_Header'}
4692 $as_echo "$as_val"'`
4693 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4694$as_echo "$ac_res" >&6; }
4695as_val=`eval 'as_val=${'$as_ac_Header'}
4696 $as_echo "$as_val"'`
4697 if test "x$as_val" = x""yes; then
d0191583 4698 cat >>confdefs.h <<_ACEOF
ec6a6fbe 4699#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
d0191583
JM
4700_ACEOF
4701
4702fi
4703
4704done
4705
b896caa1 4706
b896caa1
AK
4707
4708
795ca3e5 4709
8106cdd5 4710
80992638 4711
795ca3e5 4712
a38df97f 4713
80992638 4714
d0191583
JM
4715
4716
4717
4718
4719
4720for ac_header in locale.h stddef.h syslog.h sys/file.h sys/time.h assert.h \
4721 libgen.h signal.h sys/mman.h sys/resource.h sys/utsname.h sys/wait.h time.h
ad6254c5 4722do
ec6a6fbe 4723as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
d0191583 4724if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
4725 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4726$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 4727if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 4728 $as_echo_n "(cached) " >&6
d0191583 4729fi
ec6a6fbe
AK
4730ac_res=`eval 'as_val=${'$as_ac_Header'}
4731 $as_echo "$as_val"'`
4732 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4733$as_echo "$ac_res" >&6; }
ad6254c5 4734else
d0191583 4735 # Is the header compilable?
ec6a6fbe
AK
4736{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4737$as_echo_n "checking $ac_header usability... " >&6; }
d0191583 4738cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4739/* confdefs.h. */
4740_ACEOF
4741cat confdefs.h >>conftest.$ac_ext
4742cat >>conftest.$ac_ext <<_ACEOF
4743/* end confdefs.h. */
4744$ac_includes_default
ad6254c5
AK
4745#include <$ac_header>
4746_ACEOF
4747rm -f conftest.$ac_objext
7a197a62
AK
4748if { (ac_try="$ac_compile"
4749case "(($ac_try" in
4750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4751 *) ac_try_echo=$ac_try;;
4752esac
ec6a6fbe
AK
4753eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4754$as_echo "$ac_try_echo") >&5
7a197a62 4755 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4756 ac_status=$?
8a2fc586
AK
4757 grep -v '^ *+' conftest.er1 >conftest.err
4758 rm -f conftest.er1
4759 cat conftest.err >&5
ec6a6fbe 4760 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4761 (exit $ac_status); } && {
4762 test -z "$ac_c_werror_flag" ||
4763 test ! -s conftest.err
4764 } && test -s conftest.$ac_objext; then
d0191583 4765 ac_header_compiler=yes
ad6254c5 4766else
ec6a6fbe 4767 $as_echo "$as_me: failed program was:" >&5
ad6254c5 4768sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 4769
d0191583 4770 ac_header_compiler=no
ad6254c5 4771fi
7a197a62
AK
4772
4773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
4774{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4775$as_echo "$ac_header_compiler" >&6; }
d0191583
JM
4776
4777# Is the header present?
ec6a6fbe
AK
4778{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4779$as_echo_n "checking $ac_header presence... " >&6; }
d0191583
JM
4780cat >conftest.$ac_ext <<_ACEOF
4781/* confdefs.h. */
4782_ACEOF
4783cat confdefs.h >>conftest.$ac_ext
4784cat >>conftest.$ac_ext <<_ACEOF
4785/* end confdefs.h. */
4786#include <$ac_header>
4787_ACEOF
4788if { (ac_try="$ac_cpp conftest.$ac_ext"
4789case "(($ac_try" in
4790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4791 *) ac_try_echo=$ac_try;;
4792esac
ec6a6fbe
AK
4793eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4794$as_echo "$ac_try_echo") >&5
d0191583
JM
4795 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4796 ac_status=$?
4797 grep -v '^ *+' conftest.er1 >conftest.err
4798 rm -f conftest.er1
4799 cat conftest.err >&5
ec6a6fbe 4800 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4801 (exit $ac_status); } >/dev/null && {
4802 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4803 test ! -s conftest.err
4804 }; then
4805 ac_header_preproc=yes
4806else
ec6a6fbe 4807 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
4808sed 's/^/| /' conftest.$ac_ext >&5
4809
4810 ac_header_preproc=no
4811fi
4812
4813rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
4814{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4815$as_echo "$ac_header_preproc" >&6; }
d0191583
JM
4816
4817# So? What about this header?
4818case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4819 yes:no: )
ec6a6fbe
AK
4820 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4821$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4822 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4823$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
d0191583
JM
4824 ac_header_preproc=yes
4825 ;;
4826 no:yes:* )
ec6a6fbe
AK
4827 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4828$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4829 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4830$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4831 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4832$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4833 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4834$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4835 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4836$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4837 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4838$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
d0191583
JM
4839
4840 ;;
4841esac
ec6a6fbe
AK
4842{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4843$as_echo_n "checking for $ac_header... " >&6; }
d0191583 4844if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 4845 $as_echo_n "(cached) " >&6
d0191583
JM
4846else
4847 eval "$as_ac_Header=\$ac_header_preproc"
a38df97f 4848fi
ec6a6fbe
AK
4849ac_res=`eval 'as_val=${'$as_ac_Header'}
4850 $as_echo "$as_val"'`
4851 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4852$as_echo "$ac_res" >&6; }
d0191583
JM
4853
4854fi
ec6a6fbe
AK
4855as_val=`eval 'as_val=${'$as_ac_Header'}
4856 $as_echo "$as_val"'`
4857 if test "x$as_val" = x""yes; then
ad6254c5 4858 cat >>confdefs.h <<_ACEOF
ec6a6fbe 4859#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 4860_ACEOF
a38df97f 4861
d0191583 4862else
ec6a6fbe
AK
4863 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
4864$as_echo "$as_me: error: bailing out" >&2;}
d0191583 4865 { (exit 1); exit 1; }; }
80992638
AK
4866fi
4867
ad6254c5
AK
4868done
4869
7d1552c9 4870
d0191583
JM
4871case "$host_os" in
4872 linux*)
7d1552c9 4873
80992638 4874
5a52dca9 4875
d0191583 4876for ac_header in asm/byteorder.h linux/fs.h malloc.h
ad6254c5 4877do
ec6a6fbe 4878as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 4879if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
4880 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4881$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 4882if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 4883 $as_echo_n "(cached) " >&6
ad6254c5 4884fi
ec6a6fbe
AK
4885ac_res=`eval 'as_val=${'$as_ac_Header'}
4886 $as_echo "$as_val"'`
4887 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4888$as_echo "$ac_res" >&6; }
ad6254c5
AK
4889else
4890 # Is the header compilable?
ec6a6fbe
AK
4891{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4892$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 4893cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4894/* confdefs.h. */
4895_ACEOF
4896cat confdefs.h >>conftest.$ac_ext
4897cat >>conftest.$ac_ext <<_ACEOF
4898/* end confdefs.h. */
4899$ac_includes_default
4900#include <$ac_header>
4901_ACEOF
4902rm -f conftest.$ac_objext
7a197a62
AK
4903if { (ac_try="$ac_compile"
4904case "(($ac_try" in
4905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4906 *) ac_try_echo=$ac_try;;
4907esac
ec6a6fbe
AK
4908eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4909$as_echo "$ac_try_echo") >&5
7a197a62 4910 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4911 ac_status=$?
8a2fc586
AK
4912 grep -v '^ *+' conftest.er1 >conftest.err
4913 rm -f conftest.er1
4914 cat conftest.err >&5
ec6a6fbe 4915 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4916 (exit $ac_status); } && {
4917 test -z "$ac_c_werror_flag" ||
4918 test ! -s conftest.err
4919 } && test -s conftest.$ac_objext; then
fc54be10
AK
4920 ac_header_compiler=yes
4921else
ec6a6fbe 4922 $as_echo "$as_me: failed program was:" >&5
fc54be10
AK
4923sed 's/^/| /' conftest.$ac_ext >&5
4924
4925 ac_header_compiler=no
4926fi
4927
4928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
4929{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4930$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
4931
4932# Is the header present?
ec6a6fbe
AK
4933{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4934$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 4935cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4936/* confdefs.h. */
4937_ACEOF
4938cat confdefs.h >>conftest.$ac_ext
4939cat >>conftest.$ac_ext <<_ACEOF
4940/* end confdefs.h. */
4941#include <$ac_header>
4942_ACEOF
7a197a62
AK
4943if { (ac_try="$ac_cpp conftest.$ac_ext"
4944case "(($ac_try" in
4945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4946 *) ac_try_echo=$ac_try;;
4947esac
ec6a6fbe
AK
4948eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4949$as_echo "$ac_try_echo") >&5
7a197a62 4950 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
4951 ac_status=$?
4952 grep -v '^ *+' conftest.er1 >conftest.err
4953 rm -f conftest.er1
4954 cat conftest.err >&5
ec6a6fbe 4955 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4956 (exit $ac_status); } >/dev/null && {
4957 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4958 test ! -s conftest.err
4959 }; then
ad6254c5
AK
4960 ac_header_preproc=yes
4961else
ec6a6fbe 4962 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
4963sed 's/^/| /' conftest.$ac_ext >&5
4964
4965 ac_header_preproc=no
4966fi
7a197a62 4967
ad6254c5 4968rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
4969{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4970$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
4971
4972# So? What about this header?
8a2fc586
AK
4973case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4974 yes:no: )
ec6a6fbe
AK
4975 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4976$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4977 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4978$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 4979 ac_header_preproc=yes
ad6254c5 4980 ;;
8a2fc586 4981 no:yes:* )
ec6a6fbe
AK
4982 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4983$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4984 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4985$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4986 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4987$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4988 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4989$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4990 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4991$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4992 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4993$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 4994
ad6254c5
AK
4995 ;;
4996esac
ec6a6fbe
AK
4997{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4998$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 4999if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 5000 $as_echo_n "(cached) " >&6
ad6254c5 5001else
8a2fc586 5002 eval "$as_ac_Header=\$ac_header_preproc"
b896caa1 5003fi
ec6a6fbe
AK
5004ac_res=`eval 'as_val=${'$as_ac_Header'}
5005 $as_echo "$as_val"'`
5006 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5007$as_echo "$ac_res" >&6; }
ad6254c5
AK
5008
5009fi
ec6a6fbe
AK
5010as_val=`eval 'as_val=${'$as_ac_Header'}
5011 $as_echo "$as_val"'`
5012 if test "x$as_val" = x""yes; then
ad6254c5 5013 cat >>confdefs.h <<_ACEOF
ec6a6fbe 5014#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 5015_ACEOF
b896caa1 5016
d8ac0fbc 5017else
ec6a6fbe
AK
5018 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5019$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 5020 { (exit 1); exit 1; }; }
80992638
AK
5021fi
5022
ad6254c5 5023done
d0191583
JM
5024 ;;
5025 darwin*)
d8ac0fbc 5026
d8ac0fbc 5027
d0191583 5028for ac_header in machine/endian.h sys/disk.h
ad6254c5 5029do
ec6a6fbe 5030as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 5031if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
5032 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5033$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 5034if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 5035 $as_echo_n "(cached) " >&6
ad6254c5 5036fi
ec6a6fbe
AK
5037ac_res=`eval 'as_val=${'$as_ac_Header'}
5038 $as_echo "$as_val"'`
5039 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5040$as_echo "$ac_res" >&6; }
ad6254c5
AK
5041else
5042 # Is the header compilable?
ec6a6fbe
AK
5043{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5044$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 5045cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5046/* confdefs.h. */
5047_ACEOF
5048cat confdefs.h >>conftest.$ac_ext
5049cat >>conftest.$ac_ext <<_ACEOF
5050/* end confdefs.h. */
5051$ac_includes_default
5052#include <$ac_header>
5053_ACEOF
5054rm -f conftest.$ac_objext
7a197a62
AK
5055if { (ac_try="$ac_compile"
5056case "(($ac_try" in
5057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5058 *) ac_try_echo=$ac_try;;
5059esac
ec6a6fbe
AK
5060eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5061$as_echo "$ac_try_echo") >&5
7a197a62 5062 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5063 ac_status=$?
8a2fc586
AK
5064 grep -v '^ *+' conftest.er1 >conftest.err
5065 rm -f conftest.er1
5066 cat conftest.err >&5
ec6a6fbe 5067 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5068 (exit $ac_status); } && {
5069 test -z "$ac_c_werror_flag" ||
5070 test ! -s conftest.err
5071 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5072 ac_header_compiler=yes
5073else
ec6a6fbe 5074 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5075sed 's/^/| /' conftest.$ac_ext >&5
5076
7a197a62 5077 ac_header_compiler=no
ad6254c5 5078fi
7a197a62
AK
5079
5080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
5081{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5082$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
5083
5084# Is the header present?
ec6a6fbe
AK
5085{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5086$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 5087cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5088/* confdefs.h. */
5089_ACEOF
5090cat confdefs.h >>conftest.$ac_ext
5091cat >>conftest.$ac_ext <<_ACEOF
5092/* end confdefs.h. */
5093#include <$ac_header>
5094_ACEOF
7a197a62
AK
5095if { (ac_try="$ac_cpp conftest.$ac_ext"
5096case "(($ac_try" in
5097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5098 *) ac_try_echo=$ac_try;;
5099esac
ec6a6fbe
AK
5100eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5101$as_echo "$ac_try_echo") >&5
7a197a62 5102 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
5103 ac_status=$?
5104 grep -v '^ *+' conftest.er1 >conftest.err
5105 rm -f conftest.er1
5106 cat conftest.err >&5
ec6a6fbe 5107 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5108 (exit $ac_status); } >/dev/null && {
5109 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5110 test ! -s conftest.err
5111 }; then
ad6254c5
AK
5112 ac_header_preproc=yes
5113else
ec6a6fbe 5114 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5115sed 's/^/| /' conftest.$ac_ext >&5
5116
5117 ac_header_preproc=no
5118fi
7a197a62 5119
ad6254c5 5120rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
5121{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5122$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
5123
5124# So? What about this header?
8a2fc586
AK
5125case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5126 yes:no: )
ec6a6fbe
AK
5127 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5128$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5129 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5130$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 5131 ac_header_preproc=yes
ad6254c5 5132 ;;
8a2fc586 5133 no:yes:* )
ec6a6fbe
AK
5134 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5135$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5136 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5137$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5138 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5139$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5140 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5141$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5142 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5143$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5144 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5145$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 5146
ad6254c5
AK
5147 ;;
5148esac
ec6a6fbe
AK
5149{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5150$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 5151if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 5152 $as_echo_n "(cached) " >&6
ad6254c5 5153else
8a2fc586 5154 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 5155fi
ec6a6fbe
AK
5156ac_res=`eval 'as_val=${'$as_ac_Header'}
5157 $as_echo "$as_val"'`
5158 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5159$as_echo "$ac_res" >&6; }
ad6254c5
AK
5160
5161fi
ec6a6fbe
AK
5162as_val=`eval 'as_val=${'$as_ac_Header'}
5163 $as_echo "$as_val"'`
5164 if test "x$as_val" = x""yes; then
ad6254c5 5165 cat >>confdefs.h <<_ACEOF
ec6a6fbe 5166#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 5167_ACEOF
4922197a 5168
4922197a 5169else
ec6a6fbe
AK
5170 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5171$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 5172 { (exit 1); exit 1; }; }
80992638
AK
5173fi
5174
ad6254c5 5175done
d0191583
JM
5176 ;;
5177esac
4922197a 5178
4922197a 5179
4922197a 5180
ad6254c5
AK
5181
5182
d0191583
JM
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195for ac_header in ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h \
5196 stdarg.h stdio.h stdlib.h string.h sys/ioctl.h sys/param.h sys/stat.h \
5197 sys/types.h unistd.h
ad6254c5 5198do
ec6a6fbe 5199as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 5200if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
5201 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5202$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 5203if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 5204 $as_echo_n "(cached) " >&6
ad6254c5 5205fi
ec6a6fbe
AK
5206ac_res=`eval 'as_val=${'$as_ac_Header'}
5207 $as_echo "$as_val"'`
5208 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5209$as_echo "$ac_res" >&6; }
795ca3e5 5210else
ad6254c5 5211 # Is the header compilable?
ec6a6fbe
AK
5212{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5213$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 5214cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5215/* confdefs.h. */
5216_ACEOF
5217cat confdefs.h >>conftest.$ac_ext
5218cat >>conftest.$ac_ext <<_ACEOF
5219/* end confdefs.h. */
5220$ac_includes_default
5221#include <$ac_header>
5222_ACEOF
5223rm -f conftest.$ac_objext
7a197a62
AK
5224if { (ac_try="$ac_compile"
5225case "(($ac_try" in
5226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5227 *) ac_try_echo=$ac_try;;
5228esac
ec6a6fbe
AK
5229eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5230$as_echo "$ac_try_echo") >&5
7a197a62 5231 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5232 ac_status=$?
8a2fc586
AK
5233 grep -v '^ *+' conftest.er1 >conftest.err
5234 rm -f conftest.er1
5235 cat conftest.err >&5
ec6a6fbe 5236 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5237 (exit $ac_status); } && {
5238 test -z "$ac_c_werror_flag" ||
5239 test ! -s conftest.err
5240 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5241 ac_header_compiler=yes
5242else
ec6a6fbe 5243 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5244sed 's/^/| /' conftest.$ac_ext >&5
5245
7a197a62 5246 ac_header_compiler=no
ad6254c5 5247fi
7a197a62
AK
5248
5249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
5250{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5251$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
5252
5253# Is the header present?
ec6a6fbe
AK
5254{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5255$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 5256cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5257/* confdefs.h. */
5258_ACEOF
5259cat confdefs.h >>conftest.$ac_ext
5260cat >>conftest.$ac_ext <<_ACEOF
5261/* end confdefs.h. */
5262#include <$ac_header>
5263_ACEOF
7a197a62
AK
5264if { (ac_try="$ac_cpp conftest.$ac_ext"
5265case "(($ac_try" in
5266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5267 *) ac_try_echo=$ac_try;;
5268esac
ec6a6fbe
AK
5269eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5270$as_echo "$ac_try_echo") >&5
7a197a62 5271 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
5272 ac_status=$?
5273 grep -v '^ *+' conftest.er1 >conftest.err
5274 rm -f conftest.er1
5275 cat conftest.err >&5
ec6a6fbe 5276 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5277 (exit $ac_status); } >/dev/null && {
5278 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5279 test ! -s conftest.err
5280 }; then
ad6254c5
AK
5281 ac_header_preproc=yes
5282else
ec6a6fbe 5283 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5284sed 's/^/| /' conftest.$ac_ext >&5
5285
5286 ac_header_preproc=no
5287fi
7a197a62 5288
ad6254c5 5289rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
5290{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5291$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
5292
5293# So? What about this header?
8a2fc586
AK
5294case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5295 yes:no: )
ec6a6fbe
AK
5296 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5297$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5298 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5299$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 5300 ac_header_preproc=yes
ad6254c5 5301 ;;
8a2fc586 5302 no:yes:* )
ec6a6fbe
AK
5303 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5304$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5305 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5306$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5307 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5308$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5309 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5310$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5311 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5312$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5313 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5314$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 5315
ad6254c5
AK
5316 ;;
5317esac
ec6a6fbe
AK
5318{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5319$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 5320if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 5321 $as_echo_n "(cached) " >&6
ad6254c5 5322else
8a2fc586 5323 eval "$as_ac_Header=\$ac_header_preproc"
80992638 5324fi
ec6a6fbe
AK
5325ac_res=`eval 'as_val=${'$as_ac_Header'}
5326 $as_echo "$as_val"'`
5327 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5328$as_echo "$ac_res" >&6; }
80992638 5329
ad6254c5 5330fi
ec6a6fbe
AK
5331as_val=`eval 'as_val=${'$as_ac_Header'}
5332 $as_echo "$as_val"'`
5333 if test "x$as_val" = x""yes; then
ad6254c5 5334 cat >>confdefs.h <<_ACEOF
ec6a6fbe 5335#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 5336_ACEOF
795ca3e5 5337
795ca3e5 5338else
ec6a6fbe
AK
5339 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5340$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 5341 { (exit 1); exit 1; }; }
80992638
AK
5342fi
5343
ad6254c5 5344done
ad6254c5 5345
795ca3e5 5346
d0191583
JM
5347
5348for ac_header in termios.h sys/statvfs.h
ad6254c5 5349do
ec6a6fbe 5350as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 5351if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
5352 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5353$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 5354if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 5355 $as_echo_n "(cached) " >&6
ad6254c5 5356fi
ec6a6fbe
AK
5357ac_res=`eval 'as_val=${'$as_ac_Header'}
5358 $as_echo "$as_val"'`
5359 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5360$as_echo "$ac_res" >&6; }
ad6254c5
AK
5361else
5362 # Is the header compilable?
ec6a6fbe
AK
5363{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5364$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 5365cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5366/* confdefs.h. */
5367_ACEOF
5368cat confdefs.h >>conftest.$ac_ext
5369cat >>conftest.$ac_ext <<_ACEOF
5370/* end confdefs.h. */
5371$ac_includes_default
5372#include <$ac_header>
5373_ACEOF
5374rm -f conftest.$ac_objext
7a197a62
AK
5375if { (ac_try="$ac_compile"
5376case "(($ac_try" in
5377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5378 *) ac_try_echo=$ac_try;;
5379esac
ec6a6fbe
AK
5380eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5381$as_echo "$ac_try_echo") >&5
7a197a62 5382 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5383 ac_status=$?
8a2fc586
AK
5384 grep -v '^ *+' conftest.er1 >conftest.err
5385 rm -f conftest.er1
5386 cat conftest.err >&5
ec6a6fbe 5387 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5388 (exit $ac_status); } && {
5389 test -z "$ac_c_werror_flag" ||
5390 test ! -s conftest.err
5391 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5392 ac_header_compiler=yes
5393else
ec6a6fbe 5394 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5395sed 's/^/| /' conftest.$ac_ext >&5
5396
7a197a62 5397 ac_header_compiler=no
ad6254c5 5398fi
7a197a62
AK
5399
5400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
5401{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5402$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
5403
5404# Is the header present?
ec6a6fbe
AK
5405{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5406$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 5407cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5408/* confdefs.h. */
5409_ACEOF
5410cat confdefs.h >>conftest.$ac_ext
5411cat >>conftest.$ac_ext <<_ACEOF
5412/* end confdefs.h. */
5413#include <$ac_header>
5414_ACEOF
7a197a62
AK
5415if { (ac_try="$ac_cpp conftest.$ac_ext"
5416case "(($ac_try" in
5417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5418 *) ac_try_echo=$ac_try;;
5419esac
ec6a6fbe
AK
5420eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5421$as_echo "$ac_try_echo") >&5
7a197a62 5422 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
5423 ac_status=$?
5424 grep -v '^ *+' conftest.er1 >conftest.err
5425 rm -f conftest.er1
5426 cat conftest.err >&5
ec6a6fbe 5427 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5428 (exit $ac_status); } >/dev/null && {
5429 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5430 test ! -s conftest.err
5431 }; then
ad6254c5
AK
5432 ac_header_preproc=yes
5433else
ec6a6fbe 5434 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5435sed 's/^/| /' conftest.$ac_ext >&5
5436
5437 ac_header_preproc=no
5438fi
7a197a62 5439
ad6254c5 5440rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
5441{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5442$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
5443
5444# So? What about this header?
8a2fc586
AK
5445case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5446 yes:no: )
ec6a6fbe
AK
5447 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5448$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5449 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5450$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 5451 ac_header_preproc=yes
ad6254c5 5452 ;;
8a2fc586 5453 no:yes:* )
ec6a6fbe
AK
5454 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5455$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5456 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5457$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5458 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5459$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5460 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5461$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5462 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5463$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5464 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5465$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 5466
ad6254c5
AK
5467 ;;
5468esac
ec6a6fbe
AK
5469{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5470$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 5471if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 5472 $as_echo_n "(cached) " >&6
ad6254c5 5473else
8a2fc586 5474 eval "$as_ac_Header=\$ac_header_preproc"
b896caa1 5475fi
ec6a6fbe
AK
5476ac_res=`eval 'as_val=${'$as_ac_Header'}
5477 $as_echo "$as_val"'`
5478 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5479$as_echo "$ac_res" >&6; }
b896caa1 5480
ad6254c5 5481fi
ec6a6fbe
AK
5482as_val=`eval 'as_val=${'$as_ac_Header'}
5483 $as_echo "$as_val"'`
5484 if test "x$as_val" = x""yes; then
ad6254c5 5485 cat >>confdefs.h <<_ACEOF
ec6a6fbe 5486#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
5487_ACEOF
5488
80992638
AK
5489fi
5490
ad6254c5 5491done
d0191583 5492
d3c8211f 5493
80992638 5494################################################################################
ec6a6fbe
AK
5495{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5496$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
ad6254c5 5497if test "${ac_cv_c_const+set}" = set; then
ec6a6fbe 5498 $as_echo_n "(cached) " >&6
d3c8211f 5499else
ad6254c5 5500 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5501/* confdefs.h. */
5502_ACEOF
5503cat confdefs.h >>conftest.$ac_ext
5504cat >>conftest.$ac_ext <<_ACEOF
5505/* end confdefs.h. */
5506
5507int
5508main ()
5509{
5510/* FIXME: Include the comments suggested by Paul. */
5511#ifndef __cplusplus
5512 /* Ultrix mips cc rejects this. */
5513 typedef int charset[2];
25fbec5b 5514 const charset cs;
ad6254c5 5515 /* SunOS 4.1.1 cc rejects this. */
25fbec5b
AK
5516 char const *const *pcpcc;
5517 char **ppc;
ad6254c5
AK
5518 /* NEC SVR4.0.2 mips cc rejects this. */
5519 struct point {int x, y;};
5520 static struct point const zero = {0,0};
5521 /* AIX XL C 1.02.0.0 rejects this.
5522 It does not let you subtract one const X* pointer from another in
5523 an arm of an if-expression whose if-part is not a constant
5524 expression */
5525 const char *g = "string";
25fbec5b 5526 pcpcc = &g + (g ? g-g : 0);
ad6254c5 5527 /* HPUX 7.0 cc rejects these. */
25fbec5b
AK
5528 ++pcpcc;
5529 ppc = (char**) pcpcc;
5530 pcpcc = (char const *const *) ppc;
ad6254c5
AK
5531 { /* SCO 3.2v4 cc rejects this. */
5532 char *t;
5533 char const *s = 0 ? (char *) 0 : (char const *) 0;
5534
5535 *t++ = 0;
7a197a62 5536 if (s) return 0;
ad6254c5
AK
5537 }
5538 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5539 int x[] = {25, 17};
5540 const int *foo = &x[0];
5541 ++foo;
5542 }
5543 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5544 typedef const int *iptr;
5545 iptr p = 0;
5546 ++p;
5547 }
5548 { /* AIX XL C 1.02.0.0 rejects this saying
5549 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5550 struct s { int j; const int *ap[3]; };
5551 struct s *b; b->j = 5;
5552 }
5553 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5554 const int foo = 10;
7a197a62 5555 if (!foo) return 0;
ad6254c5 5556 }
25fbec5b 5557 return !cs[0] && !zero.x;
ad6254c5
AK
5558#endif
5559
5560 ;
5561 return 0;
5562}
5563_ACEOF
5564rm -f conftest.$ac_objext
7a197a62
AK
5565if { (ac_try="$ac_compile"
5566case "(($ac_try" in
5567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5568 *) ac_try_echo=$ac_try;;
5569esac
ec6a6fbe
AK
5570eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5571$as_echo "$ac_try_echo") >&5
7a197a62 5572 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5573 ac_status=$?
8a2fc586
AK
5574 grep -v '^ *+' conftest.er1 >conftest.err
5575 rm -f conftest.er1
5576 cat conftest.err >&5
ec6a6fbe 5577 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5578 (exit $ac_status); } && {
5579 test -z "$ac_c_werror_flag" ||
5580 test ! -s conftest.err
5581 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5582 ac_cv_c_const=yes
5583else
ec6a6fbe 5584 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5585sed 's/^/| /' conftest.$ac_ext >&5
5586
7a197a62 5587 ac_cv_c_const=no
ad6254c5 5588fi
7a197a62
AK
5589
5590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
80992638 5591fi
ec6a6fbe
AK
5592{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5593$as_echo "$ac_cv_c_const" >&6; }
ad6254c5 5594if test $ac_cv_c_const = no; then
80992638 5595
ad6254c5 5596cat >>confdefs.h <<\_ACEOF
ec6a6fbe 5597#define const /**/
ad6254c5 5598_ACEOF
80992638 5599
d3c8211f 5600fi
d3c8211f 5601
ec6a6fbe
AK
5602{ $as_echo "$as_me:$LINENO: checking for inline" >&5
5603$as_echo_n "checking for inline... " >&6; }
ad6254c5 5604if test "${ac_cv_c_inline+set}" = set; then
ec6a6fbe 5605 $as_echo_n "(cached) " >&6
8ef2b021 5606else
ad6254c5
AK
5607 ac_cv_c_inline=no
5608for ac_kw in inline __inline__ __inline; do
5609 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5610/* confdefs.h. */
5611_ACEOF
5612cat confdefs.h >>conftest.$ac_ext
5613cat >>conftest.$ac_ext <<_ACEOF
5614/* end confdefs.h. */
5615#ifndef __cplusplus
5616typedef int foo_t;
5617static $ac_kw foo_t static_foo () {return 0; }
5618$ac_kw foo_t foo () {return 0; }
5619#endif
80992638 5620
ad6254c5
AK
5621_ACEOF
5622rm -f conftest.$ac_objext
7a197a62
AK
5623if { (ac_try="$ac_compile"
5624case "(($ac_try" in
5625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5626 *) ac_try_echo=$ac_try;;
5627esac
ec6a6fbe
AK
5628eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5629$as_echo "$ac_try_echo") >&5
7a197a62 5630 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5631 ac_status=$?
8a2fc586
AK
5632 grep -v '^ *+' conftest.er1 >conftest.err
5633 rm -f conftest.er1
5634 cat conftest.err >&5
ec6a6fbe 5635 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5636 (exit $ac_status); } && {
5637 test -z "$ac_c_werror_flag" ||
5638 test ! -s conftest.err
5639 } && test -s conftest.$ac_objext; then
7a197a62 5640 ac_cv_c_inline=$ac_kw
ad6254c5 5641else
ec6a6fbe 5642 $as_echo "$as_me: failed program was:" >&5
ad6254c5 5643sed 's/^/| /' conftest.$ac_ext >&5
8ef2b021 5644
7a197a62 5645
8ce0cbda 5646fi
7a197a62
AK
5647
5648rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5649 test "$ac_cv_c_inline" != no && break
ad6254c5 5650done
8ce0cbda 5651
8ce0cbda 5652fi
ec6a6fbe
AK
5653{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5654$as_echo "$ac_cv_c_inline" >&6; }
8a2fc586
AK
5655
5656
ad6254c5
AK
5657case $ac_cv_c_inline in
5658 inline | yes) ;;
8a2fc586
AK
5659 *)
5660 case $ac_cv_c_inline in
5661 no) ac_val=;;
5662 *) ac_val=$ac_cv_c_inline;;
5663 esac
5664 cat >>confdefs.h <<_ACEOF
5665#ifndef __cplusplus
5666#define inline $ac_val
5667#endif
c1c065a3 5668_ACEOF
d0191583
JM
5669 ;;
5670esac
5671
ec6a6fbe
AK
5672{ $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
5673$as_echo_n "checking for struct stat.st_rdev... " >&6; }
d0191583 5674if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
ec6a6fbe 5675 $as_echo_n "(cached) " >&6
d0191583
JM
5676else
5677 cat >conftest.$ac_ext <<_ACEOF
5678/* confdefs.h. */
5679_ACEOF
5680cat confdefs.h >>conftest.$ac_ext
5681cat >>conftest.$ac_ext <<_ACEOF
5682/* end confdefs.h. */
5683$ac_includes_default
5684int
5685main ()
5686{
5687static struct stat ac_aggr;
5688if (ac_aggr.st_rdev)
5689return 0;
5690 ;
5691 return 0;
5692}
5693_ACEOF
5694rm -f conftest.$ac_objext
5695if { (ac_try="$ac_compile"
5696case "(($ac_try" in
5697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5698 *) ac_try_echo=$ac_try;;
5699esac
ec6a6fbe
AK
5700eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5701$as_echo "$ac_try_echo") >&5
5702 (eval "$ac_compile") 2>conftest.er1
5703 ac_status=$?
5704 grep -v '^ *+' conftest.er1 >conftest.err
5705 rm -f conftest.er1
5706 cat conftest.err >&5
5707 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5708 (exit $ac_status); } && {
5709 test -z "$ac_c_werror_flag" ||
5710 test ! -s conftest.err
5711 } && test -s conftest.$ac_objext; then
5712 ac_cv_member_struct_stat_st_rdev=yes
5713else
5714 $as_echo "$as_me: failed program was:" >&5
5715sed 's/^/| /' conftest.$ac_ext >&5
5716
5717 cat >conftest.$ac_ext <<_ACEOF
5718/* confdefs.h. */
5719_ACEOF
5720cat confdefs.h >>conftest.$ac_ext
5721cat >>conftest.$ac_ext <<_ACEOF
5722/* end confdefs.h. */
5723$ac_includes_default
5724int
5725main ()
5726{
5727static struct stat ac_aggr;
5728if (sizeof ac_aggr.st_rdev)
5729return 0;
5730 ;
5731 return 0;
5732}
5733_ACEOF
5734rm -f conftest.$ac_objext
5735if { (ac_try="$ac_compile"
5736case "(($ac_try" in
5737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5738 *) ac_try_echo=$ac_try;;
5739esac
5740eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5741$as_echo "$ac_try_echo") >&5
5742 (eval "$ac_compile") 2>conftest.er1
5743 ac_status=$?
5744 grep -v '^ *+' conftest.er1 >conftest.err
5745 rm -f conftest.er1
5746 cat conftest.err >&5
5747 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5748 (exit $ac_status); } && {
5749 test -z "$ac_c_werror_flag" ||
5750 test ! -s conftest.err
5751 } && test -s conftest.$ac_objext; then
5752 ac_cv_member_struct_stat_st_rdev=yes
5753else
5754 $as_echo "$as_me: failed program was:" >&5
5755sed 's/^/| /' conftest.$ac_ext >&5
5756
5757 ac_cv_member_struct_stat_st_rdev=no
5758fi
5759
5760rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5761fi
5762
5763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5764fi
5765{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
5766$as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; }
5767if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then
5768
5769cat >>confdefs.h <<_ACEOF
5770#define HAVE_STRUCT_STAT_ST_RDEV 1
5771_ACEOF
5772
5773
5774fi
5775
5776{ $as_echo "$as_me:$LINENO: checking for off_t" >&5
5777$as_echo_n "checking for off_t... " >&6; }
5778if test "${ac_cv_type_off_t+set}" = set; then
5779 $as_echo_n "(cached) " >&6
5780else
5781 ac_cv_type_off_t=no
5782cat >conftest.$ac_ext <<_ACEOF
5783/* confdefs.h. */
5784_ACEOF
5785cat confdefs.h >>conftest.$ac_ext
5786cat >>conftest.$ac_ext <<_ACEOF
5787/* end confdefs.h. */
5788$ac_includes_default
5789int
5790main ()
5791{
5792if (sizeof (off_t))
5793 return 0;
5794 ;
5795 return 0;
5796}
5797_ACEOF
5798rm -f conftest.$ac_objext
5799if { (ac_try="$ac_compile"
5800case "(($ac_try" in
5801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5802 *) ac_try_echo=$ac_try;;
5803esac
5804eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5805$as_echo "$ac_try_echo") >&5
5806 (eval "$ac_compile") 2>conftest.er1
5807 ac_status=$?
5808 grep -v '^ *+' conftest.er1 >conftest.err
5809 rm -f conftest.er1
5810 cat conftest.err >&5
5811 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5812 (exit $ac_status); } && {
5813 test -z "$ac_c_werror_flag" ||
5814 test ! -s conftest.err
5815 } && test -s conftest.$ac_objext; then
5816 cat >conftest.$ac_ext <<_ACEOF
5817/* confdefs.h. */
5818_ACEOF
5819cat confdefs.h >>conftest.$ac_ext
5820cat >>conftest.$ac_ext <<_ACEOF
5821/* end confdefs.h. */
5822$ac_includes_default
5823int
5824main ()
5825{
5826if (sizeof ((off_t)))
5827 return 0;
5828 ;
5829 return 0;
5830}
5831_ACEOF
5832rm -f conftest.$ac_objext
5833if { (ac_try="$ac_compile"
5834case "(($ac_try" in
5835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5836 *) ac_try_echo=$ac_try;;
5837esac
5838eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5839$as_echo "$ac_try_echo") >&5
5840 (eval "$ac_compile") 2>conftest.er1
5841 ac_status=$?
5842 grep -v '^ *+' conftest.er1 >conftest.err
5843 rm -f conftest.er1
5844 cat conftest.err >&5
5845 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5846 (exit $ac_status); } && {
5847 test -z "$ac_c_werror_flag" ||
5848 test ! -s conftest.err
5849 } && test -s conftest.$ac_objext; then
5850 :
5851else
5852 $as_echo "$as_me: failed program was:" >&5
5853sed 's/^/| /' conftest.$ac_ext >&5
5854
5855 ac_cv_type_off_t=yes
5856fi
5857
5858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5859else
5860 $as_echo "$as_me: failed program was:" >&5
5861sed 's/^/| /' conftest.$ac_ext >&5
5862
5863
5864fi
5865
5866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5867fi
5868{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5869$as_echo "$ac_cv_type_off_t" >&6; }
5870if test "x$ac_cv_type_off_t" = x""yes; then
5871 :
5872else
5873
5874cat >>confdefs.h <<_ACEOF
5875#define off_t long int
5876_ACEOF
5877
5878fi
5879
5880{ $as_echo "$as_me:$LINENO: checking for pid_t" >&5
5881$as_echo_n "checking for pid_t... " >&6; }
5882if test "${ac_cv_type_pid_t+set}" = set; then
5883 $as_echo_n "(cached) " >&6
5884else
5885 ac_cv_type_pid_t=no
5886cat >conftest.$ac_ext <<_ACEOF
5887/* confdefs.h. */
5888_ACEOF
5889cat confdefs.h >>conftest.$ac_ext
5890cat >>conftest.$ac_ext <<_ACEOF
5891/* end confdefs.h. */
5892$ac_includes_default
5893int
5894main ()
5895{
5896if (sizeof (pid_t))
5897 return 0;
5898 ;
5899 return 0;
5900}
5901_ACEOF
5902rm -f conftest.$ac_objext
5903if { (ac_try="$ac_compile"
5904case "(($ac_try" in
5905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5906 *) ac_try_echo=$ac_try;;
5907esac
5908eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5909$as_echo "$ac_try_echo") >&5
d0191583
JM
5910 (eval "$ac_compile") 2>conftest.er1
5911 ac_status=$?
5912 grep -v '^ *+' conftest.er1 >conftest.err
5913 rm -f conftest.er1
5914 cat conftest.err >&5
ec6a6fbe 5915 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
5916 (exit $ac_status); } && {
5917 test -z "$ac_c_werror_flag" ||
5918 test ! -s conftest.err
5919 } && test -s conftest.$ac_objext; then
ec6a6fbe 5920 cat >conftest.$ac_ext <<_ACEOF
d0191583
JM
5921/* confdefs.h. */
5922_ACEOF
5923cat confdefs.h >>conftest.$ac_ext
5924cat >>conftest.$ac_ext <<_ACEOF
5925/* end confdefs.h. */
5926$ac_includes_default
5927int
5928main ()
5929{
ec6a6fbe
AK
5930if (sizeof ((pid_t)))
5931 return 0;
d0191583
JM
5932 ;
5933 return 0;
5934}
5935_ACEOF
5936rm -f conftest.$ac_objext
5937if { (ac_try="$ac_compile"
5938case "(($ac_try" in
5939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5940 *) ac_try_echo=$ac_try;;
5941esac
ec6a6fbe
AK
5942eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5943$as_echo "$ac_try_echo") >&5
d0191583
JM
5944 (eval "$ac_compile") 2>conftest.er1
5945 ac_status=$?
5946 grep -v '^ *+' conftest.er1 >conftest.err
5947 rm -f conftest.er1
5948 cat conftest.err >&5
ec6a6fbe 5949 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
5950 (exit $ac_status); } && {
5951 test -z "$ac_c_werror_flag" ||
5952 test ! -s conftest.err
5953 } && test -s conftest.$ac_objext; then
ec6a6fbe 5954 :
d0191583 5955else
ec6a6fbe 5956 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
5957sed 's/^/| /' conftest.$ac_ext >&5
5958
ec6a6fbe 5959 ac_cv_type_pid_t=yes
d0191583
JM
5960fi
5961
5962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
5963else
5964 $as_echo "$as_me: failed program was:" >&5
5965sed 's/^/| /' conftest.$ac_ext >&5
5966
5967
d0191583
JM
5968fi
5969
5970rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5971fi
ec6a6fbe
AK
5972{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
5973$as_echo "$ac_cv_type_pid_t" >&6; }
5974if test "x$ac_cv_type_pid_t" = x""yes; then
5975 :
5976else
d0191583
JM
5977
5978cat >>confdefs.h <<_ACEOF
ec6a6fbe 5979#define pid_t int
d0191583
JM
5980_ACEOF
5981
d0191583 5982fi
8ce0cbda 5983
ec6a6fbe
AK
5984{ $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5985$as_echo_n "checking return type of signal handlers... " >&6; }
5986if test "${ac_cv_type_signal+set}" = set; then
5987 $as_echo_n "(cached) " >&6
ad6254c5 5988else
b145d876
ZK
5989 cat >conftest.$ac_ext <<_ACEOF
5990/* confdefs.h. */
5991_ACEOF
5992cat confdefs.h >>conftest.$ac_ext
5993cat >>conftest.$ac_ext <<_ACEOF
5994/* end confdefs.h. */
ec6a6fbe
AK
5995#include <sys/types.h>
5996#include <signal.h>
5997
b145d876
ZK
5998int
5999main ()
6000{
ec6a6fbe 6001return *(signal (0, 0)) (0) == 1;
ad6254c5
AK
6002 ;
6003 return 0;
6004}
6005_ACEOF
6006rm -f conftest.$ac_objext
7a197a62
AK
6007if { (ac_try="$ac_compile"
6008case "(($ac_try" in
6009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6010 *) ac_try_echo=$ac_try;;
6011esac
ec6a6fbe
AK
6012eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6013$as_echo "$ac_try_echo") >&5
7a197a62 6014 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6015 ac_status=$?
8a2fc586
AK
6016 grep -v '^ *+' conftest.er1 >conftest.err
6017 rm -f conftest.er1
6018 cat conftest.err >&5
ec6a6fbe 6019 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6020 (exit $ac_status); } && {
6021 test -z "$ac_c_werror_flag" ||
6022 test ! -s conftest.err
6023 } && test -s conftest.$ac_objext; then
ec6a6fbe 6024 ac_cv_type_signal=int
b145d876 6025else
ec6a6fbe 6026 $as_echo "$as_me: failed program was:" >&5
b145d876
ZK
6027sed 's/^/| /' conftest.$ac_ext >&5
6028
ec6a6fbe 6029 ac_cv_type_signal=void
ad6254c5 6030fi
b145d876
ZK
6031
6032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6033fi
ec6a6fbe
AK
6034{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6035$as_echo "$ac_cv_type_signal" >&6; }
80992638 6036
ad6254c5 6037cat >>confdefs.h <<_ACEOF
ec6a6fbe 6038#define RETSIGTYPE $ac_cv_type_signal
ad6254c5 6039_ACEOF
199e490e 6040
b896caa1 6041
ec6a6fbe
AK
6042{ $as_echo "$as_me:$LINENO: checking for size_t" >&5
6043$as_echo_n "checking for size_t... " >&6; }
6044if test "${ac_cv_type_size_t+set}" = set; then
6045 $as_echo_n "(cached) " >&6
ad6254c5 6046else
ec6a6fbe
AK
6047 ac_cv_type_size_t=no
6048cat >conftest.$ac_ext <<_ACEOF
b145d876
ZK
6049/* confdefs.h. */
6050_ACEOF
6051cat confdefs.h >>conftest.$ac_ext
6052cat >>conftest.$ac_ext <<_ACEOF
6053/* end confdefs.h. */
6054$ac_includes_default
6055int
6056main ()
6057{
ec6a6fbe
AK
6058if (sizeof (size_t))
6059 return 0;
ad6254c5
AK
6060 ;
6061 return 0;
6062}
6063_ACEOF
6064rm -f conftest.$ac_objext
7a197a62
AK
6065if { (ac_try="$ac_compile"
6066case "(($ac_try" in
6067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6068 *) ac_try_echo=$ac_try;;
6069esac
ec6a6fbe
AK
6070eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6071$as_echo "$ac_try_echo") >&5
7a197a62 6072 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6073 ac_status=$?
8a2fc586
AK
6074 grep -v '^ *+' conftest.er1 >conftest.err
6075 rm -f conftest.er1
6076 cat conftest.err >&5
ec6a6fbe 6077 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6078 (exit $ac_status); } && {
6079 test -z "$ac_c_werror_flag" ||
6080 test ! -s conftest.err
6081 } && test -s conftest.$ac_objext; then
d0191583
JM
6082 cat >conftest.$ac_ext <<_ACEOF
6083/* confdefs.h. */
6084_ACEOF
6085cat confdefs.h >>conftest.$ac_ext
6086cat >>conftest.$ac_ext <<_ACEOF
6087/* end confdefs.h. */
ec6a6fbe 6088$ac_includes_default
d0191583
JM
6089int
6090main ()
6091{
ec6a6fbe
AK
6092if (sizeof ((size_t)))
6093 return 0;
d0191583
JM
6094 ;
6095 return 0;
6096}
6097_ACEOF
6098rm -f conftest.$ac_objext
6099if { (ac_try="$ac_compile"
6100case "(($ac_try" in
6101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6102 *) ac_try_echo=$ac_try;;
6103esac
ec6a6fbe
AK
6104eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6105$as_echo "$ac_try_echo") >&5
d0191583
JM
6106 (eval "$ac_compile") 2>conftest.er1
6107 ac_status=$?
6108 grep -v '^ *+' conftest.er1 >conftest.err
6109 rm -f conftest.er1
6110 cat conftest.err >&5
ec6a6fbe 6111 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
6112 (exit $ac_status); } && {
6113 test -z "$ac_c_werror_flag" ||
6114 test ! -s conftest.err
6115 } && test -s conftest.$ac_objext; then
ec6a6fbe 6116 :
d0191583 6117else
ec6a6fbe 6118 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
6119sed 's/^/| /' conftest.$ac_ext >&5
6120
ec6a6fbe
AK
6121 ac_cv_type_size_t=yes
6122fi
6123
6124rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6125else
6126 $as_echo "$as_me: failed program was:" >&5
6127sed 's/^/| /' conftest.$ac_ext >&5
6128
6129
d0191583
JM
6130fi
6131
6132rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6133fi
ec6a6fbe
AK
6134{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6135$as_echo "$ac_cv_type_size_t" >&6; }
6136if test "x$ac_cv_type_size_t" = x""yes; then
6137 :
6138else
d0191583
JM
6139
6140cat >>confdefs.h <<_ACEOF
ec6a6fbe 6141#define size_t unsigned int
d0191583
JM
6142_ACEOF
6143
ec6a6fbe 6144fi
d0191583 6145
ec6a6fbe
AK
6146{ $as_echo "$as_me:$LINENO: checking for mode_t" >&5
6147$as_echo_n "checking for mode_t... " >&6; }
6148if test "${ac_cv_type_mode_t+set}" = set; then
6149 $as_echo_n "(cached) " >&6
8106cdd5 6150else
ec6a6fbe
AK
6151 ac_cv_type_mode_t=no
6152cat >conftest.$ac_ext <<_ACEOF
b145d876
ZK
6153/* confdefs.h. */
6154_ACEOF
6155cat confdefs.h >>conftest.$ac_ext
6156cat >>conftest.$ac_ext <<_ACEOF
6157/* end confdefs.h. */
6158$ac_includes_default
6159int
6160main ()
6161{
ec6a6fbe
AK
6162if (sizeof (mode_t))
6163 return 0;
ad6254c5
AK
6164 ;
6165 return 0;
6166}
6167_ACEOF
6168rm -f conftest.$ac_objext
7a197a62
AK
6169if { (ac_try="$ac_compile"
6170case "(($ac_try" in
6171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6172 *) ac_try_echo=$ac_try;;
6173esac
ec6a6fbe
AK
6174eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6175$as_echo "$ac_try_echo") >&5
7a197a62 6176 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6177 ac_status=$?
8a2fc586
AK
6178 grep -v '^ *+' conftest.er1 >conftest.err
6179 rm -f conftest.er1
6180 cat conftest.err >&5
ec6a6fbe 6181 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6182 (exit $ac_status); } && {
6183 test -z "$ac_c_werror_flag" ||
6184 test ! -s conftest.err
6185 } && test -s conftest.$ac_objext; then
b145d876
ZK
6186 cat >conftest.$ac_ext <<_ACEOF
6187/* confdefs.h. */
6188_ACEOF
6189cat confdefs.h >>conftest.$ac_ext
6190cat >>conftest.$ac_ext <<_ACEOF
6191/* end confdefs.h. */
6192$ac_includes_default
6193int
6194main ()
6195{
ec6a6fbe
AK
6196if (sizeof ((mode_t)))
6197 return 0;
ad6254c5
AK
6198 ;
6199 return 0;
6200}
6201_ACEOF
6202rm -f conftest.$ac_objext
7a197a62
AK
6203if { (ac_try="$ac_compile"
6204case "(($ac_try" in
6205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6206 *) ac_try_echo=$ac_try;;
6207esac
ec6a6fbe
AK
6208eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6209$as_echo "$ac_try_echo") >&5
7a197a62 6210 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6211 ac_status=$?
8a2fc586
AK
6212 grep -v '^ *+' conftest.er1 >conftest.err
6213 rm -f conftest.er1
6214 cat conftest.err >&5
ec6a6fbe 6215 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6216 (exit $ac_status); } && {
6217 test -z "$ac_c_werror_flag" ||
6218 test ! -s conftest.err
6219 } && test -s conftest.$ac_objext; then
ec6a6fbe
AK
6220 :
6221else
6222 $as_echo "$as_me: failed program was:" >&5
6223sed 's/^/| /' conftest.$ac_ext >&5
6224
6225 ac_cv_type_mode_t=yes
6226fi
6227
6228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fddafd51 6229else
ec6a6fbe 6230 $as_echo "$as_me: failed program was:" >&5
fddafd51
ZK
6231sed 's/^/| /' conftest.$ac_ext >&5
6232
ec6a6fbe 6233
80992638 6234fi
7a197a62
AK
6235
6236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 6237fi
ec6a6fbe
AK
6238{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6239$as_echo "$ac_cv_type_mode_t" >&6; }
6240if test "x$ac_cv_type_mode_t" = x""yes; then
ad6254c5
AK
6241 :
6242else
80992638 6243
ad6254c5
AK
6244cat >>confdefs.h <<_ACEOF
6245#define mode_t int
6246_ACEOF
6247
6248fi
6249
ec6a6fbe
AK
6250{ $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
6251$as_echo_n "checking for struct stat.st_rdev... " >&6; }
ad6254c5 6252if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
ec6a6fbe 6253 $as_echo_n "(cached) " >&6
ad6254c5
AK
6254else
6255 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6256/* confdefs.h. */
6257_ACEOF
6258cat confdefs.h >>conftest.$ac_ext
6259cat >>conftest.$ac_ext <<_ACEOF
6260/* end confdefs.h. */
6261$ac_includes_default
6262int
6263main ()
6264{
6265static struct stat ac_aggr;
6266if (ac_aggr.st_rdev)
6267return 0;
6268 ;
6269 return 0;
6270}
6271_ACEOF
6272rm -f conftest.$ac_objext
7a197a62
AK
6273if { (ac_try="$ac_compile"
6274case "(($ac_try" in
6275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6276 *) ac_try_echo=$ac_try;;
6277esac
ec6a6fbe
AK
6278eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6279$as_echo "$ac_try_echo") >&5
7a197a62 6280 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6281 ac_status=$?
8a2fc586
AK
6282 grep -v '^ *+' conftest.er1 >conftest.err
6283 rm -f conftest.er1
6284 cat conftest.err >&5
ec6a6fbe 6285 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6286 (exit $ac_status); } && {
6287 test -z "$ac_c_werror_flag" ||
6288 test ! -s conftest.err
6289 } && test -s conftest.$ac_objext; then
ad6254c5
AK
6290 ac_cv_member_struct_stat_st_rdev=yes
6291else
ec6a6fbe 6292 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6293sed 's/^/| /' conftest.$ac_ext >&5
6294
7a197a62 6295 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6296/* confdefs.h. */
6297_ACEOF
6298cat confdefs.h >>conftest.$ac_ext
6299cat >>conftest.$ac_ext <<_ACEOF
6300/* end confdefs.h. */
6301$ac_includes_default
6302int
6303main ()
6304{
6305static struct stat ac_aggr;
6306if (sizeof ac_aggr.st_rdev)
6307return 0;
6308 ;
6309 return 0;
6310}
6311_ACEOF
6312rm -f conftest.$ac_objext
7a197a62
AK
6313if { (ac_try="$ac_compile"
6314case "(($ac_try" in
6315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6316 *) ac_try_echo=$ac_try;;
6317esac
ec6a6fbe
AK
6318eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6319$as_echo "$ac_try_echo") >&5
7a197a62 6320 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6321 ac_status=$?
8a2fc586
AK
6322 grep -v '^ *+' conftest.er1 >conftest.err
6323 rm -f conftest.er1
6324 cat conftest.err >&5
ec6a6fbe 6325 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6326 (exit $ac_status); } && {
6327 test -z "$ac_c_werror_flag" ||
6328 test ! -s conftest.err
6329 } && test -s conftest.$ac_objext; then
ad6254c5
AK
6330 ac_cv_member_struct_stat_st_rdev=yes
6331else
ec6a6fbe 6332 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6333sed 's/^/| /' conftest.$ac_ext >&5
6334
7a197a62 6335 ac_cv_member_struct_stat_st_rdev=no
ad6254c5 6336fi
7a197a62
AK
6337
6338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 6339fi
7a197a62
AK
6340
6341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 6342fi
ec6a6fbe
AK
6343{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
6344$as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; }
6345if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then
ad6254c5
AK
6346
6347cat >>confdefs.h <<_ACEOF
6348#define HAVE_STRUCT_STAT_ST_RDEV 1
6349_ACEOF
6350
6351
ad6254c5
AK
6352fi
6353
ec6a6fbe
AK
6354{ $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6355$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
ad6254c5 6356if test "${ac_cv_struct_tm+set}" = set; then
ec6a6fbe 6357 $as_echo_n "(cached) " >&6
ad6254c5
AK
6358else
6359 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6360/* confdefs.h. */
6361_ACEOF
6362cat confdefs.h >>conftest.$ac_ext
6363cat >>conftest.$ac_ext <<_ACEOF
6364/* end confdefs.h. */
6365#include <sys/types.h>
6366#include <time.h>
6367
6368int
6369main ()
6370{
25fbec5b
AK
6371struct tm tm;
6372 int *p = &tm.tm_sec;
ec6a6fbe 6373 return !p;
ad6254c5
AK
6374 ;
6375 return 0;
6376}
6377_ACEOF
6378rm -f conftest.$ac_objext
7a197a62
AK
6379if { (ac_try="$ac_compile"
6380case "(($ac_try" in
6381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6382 *) ac_try_echo=$ac_try;;
6383esac
ec6a6fbe
AK
6384eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6385$as_echo "$ac_try_echo") >&5
7a197a62 6386 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6387 ac_status=$?
8a2fc586
AK
6388 grep -v '^ *+' conftest.er1 >conftest.err
6389 rm -f conftest.er1
6390 cat conftest.err >&5
ec6a6fbe 6391 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6392 (exit $ac_status); } && {
6393 test -z "$ac_c_werror_flag" ||
6394 test ! -s conftest.err
6395 } && test -s conftest.$ac_objext; then
ad6254c5
AK
6396 ac_cv_struct_tm=time.h
6397else
ec6a6fbe 6398 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6399sed 's/^/| /' conftest.$ac_ext >&5
6400
7a197a62 6401 ac_cv_struct_tm=sys/time.h
ad6254c5 6402fi
7a197a62
AK
6403
6404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 6405fi
ec6a6fbe
AK
6406{ $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6407$as_echo "$ac_cv_struct_tm" >&6; }
ad6254c5
AK
6408if test $ac_cv_struct_tm = sys/time.h; then
6409
6410cat >>confdefs.h <<\_ACEOF
6411#define TM_IN_SYS_TIME 1
6412_ACEOF
6413
6414fi
809fae91 6415
795ca3e5 6416
80992638 6417################################################################################
ad6254c5
AK
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
d0191583
JM
6432
6433
6434
6435for ac_func in gethostname getpagesize memset mkdir rmdir munmap setlocale \
6436 strcasecmp strchr strdup strncasecmp strerror strrchr strstr strtol strtoul \
6437 uname
ad6254c5 6438do
ec6a6fbe
AK
6439as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6440{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6441$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 6442if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 6443 $as_echo_n "(cached) " >&6
795ca3e5 6444else
ad6254c5 6445 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6446/* confdefs.h. */
6447_ACEOF
6448cat confdefs.h >>conftest.$ac_ext
6449cat >>conftest.$ac_ext <<_ACEOF
6450/* end confdefs.h. */
8a2fc586
AK
6451/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6452 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6453#define $ac_func innocuous_$ac_func
6454
ad6254c5
AK
6455/* System header to define __stub macros and hopefully few prototypes,
6456 which can conflict with char $ac_func (); below.
6457 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6458 <limits.h> exists even on freestanding compilers. */
8a2fc586 6459
ad6254c5
AK
6460#ifdef __STDC__
6461# include <limits.h>
6462#else
6463# include <assert.h>
6464#endif
8a2fc586
AK
6465
6466#undef $ac_func
6467
7a197a62
AK
6468/* Override any GCC internal prototype to avoid an error.
6469 Use char because int might match the return type of a GCC
6470 builtin and then its argument prototype would still apply. */
ad6254c5
AK
6471#ifdef __cplusplus
6472extern "C"
ad6254c5 6473#endif
ad6254c5
AK
6474char $ac_func ();
6475/* The GNU C library defines this for functions which it implements
6476 to always fail with ENOSYS. Some functions are actually named
6477 something starting with __ and the normal name is an alias. */
7a197a62 6478#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 6479choke me
ad6254c5
AK
6480#endif
6481
6482int
6483main ()
6484{
7a197a62 6485return $ac_func ();
ad6254c5
AK
6486 ;
6487 return 0;
6488}
6489_ACEOF
6490rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
6491if { (ac_try="$ac_link"
6492case "(($ac_try" in
6493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6494 *) ac_try_echo=$ac_try;;
6495esac
ec6a6fbe
AK
6496eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6497$as_echo "$ac_try_echo") >&5
7a197a62 6498 (eval "$ac_link") 2>conftest.er1
ad6254c5 6499 ac_status=$?
8a2fc586
AK
6500 grep -v '^ *+' conftest.er1 >conftest.err
6501 rm -f conftest.er1
6502 cat conftest.err >&5
ec6a6fbe 6503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6504 (exit $ac_status); } && {
6505 test -z "$ac_c_werror_flag" ||
6506 test ! -s conftest.err
ec6a6fbe
AK
6507 } && test -s conftest$ac_exeext && {
6508 test "$cross_compiling" = yes ||
6509 $as_test_x conftest$ac_exeext
6510 }; then
fc54be10
AK
6511 eval "$as_ac_var=yes"
6512else
ec6a6fbe 6513 $as_echo "$as_me: failed program was:" >&5
fc54be10
AK
6514sed 's/^/| /' conftest.$ac_ext >&5
6515
6516 eval "$as_ac_var=no"
6517fi
6518
ec6a6fbe 6519rm -rf conftest.dSYM
25fbec5b 6520rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
fc54be10
AK
6521 conftest$ac_exeext conftest.$ac_ext
6522fi
ec6a6fbe
AK
6523ac_res=`eval 'as_val=${'$as_ac_var'}
6524 $as_echo "$as_val"'`
6525 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6526$as_echo "$ac_res" >&6; }
6527as_val=`eval 'as_val=${'$as_ac_var'}
6528 $as_echo "$as_val"'`
6529 if test "x$as_val" = x""yes; then
ad6254c5 6530 cat >>confdefs.h <<_ACEOF
ec6a6fbe 6531#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
6532_ACEOF
6533
6534else
ec6a6fbe
AK
6535 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
6536$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5
AK
6537 { (exit 1); exit 1; }; }
6538fi
6539done
795ca3e5 6540
a0f9708e
AK
6541
6542for ac_func in siginterrupt
6543do
6544as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6545{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6546$as_echo_n "checking for $ac_func... " >&6; }
6547if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6548 $as_echo_n "(cached) " >&6
6549else
6550 cat >conftest.$ac_ext <<_ACEOF
6551/* confdefs.h. */
6552_ACEOF
6553cat confdefs.h >>conftest.$ac_ext
6554cat >>conftest.$ac_ext <<_ACEOF
6555/* end confdefs.h. */
6556/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6557 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6558#define $ac_func innocuous_$ac_func
6559
6560/* System header to define __stub macros and hopefully few prototypes,
6561 which can conflict with char $ac_func (); below.
6562 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6563 <limits.h> exists even on freestanding compilers. */
6564
6565#ifdef __STDC__
6566# include <limits.h>
6567#else
6568# include <assert.h>
6569#endif
6570
6571#undef $ac_func
6572
6573/* Override any GCC internal prototype to avoid an error.
6574 Use char because int might match the return type of a GCC
6575 builtin and then its argument prototype would still apply. */
6576#ifdef __cplusplus
6577extern "C"
6578#endif
6579char $ac_func ();
6580/* The GNU C library defines this for functions which it implements
6581 to always fail with ENOSYS. Some functions are actually named
6582 something starting with __ and the normal name is an alias. */
6583#if defined __stub_$ac_func || defined __stub___$ac_func
6584choke me
6585#endif
6586
6587int
6588main ()
6589{
6590return $ac_func ();
6591 ;
6592 return 0;
6593}
6594_ACEOF
6595rm -f conftest.$ac_objext conftest$ac_exeext
6596if { (ac_try="$ac_link"
6597case "(($ac_try" in
6598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6599 *) ac_try_echo=$ac_try;;
6600esac
6601eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6602$as_echo "$ac_try_echo") >&5
6603 (eval "$ac_link") 2>conftest.er1
6604 ac_status=$?
6605 grep -v '^ *+' conftest.er1 >conftest.err
6606 rm -f conftest.er1
6607 cat conftest.err >&5
6608 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6609 (exit $ac_status); } && {
6610 test -z "$ac_c_werror_flag" ||
6611 test ! -s conftest.err
6612 } && test -s conftest$ac_exeext && {
6613 test "$cross_compiling" = yes ||
6614 $as_test_x conftest$ac_exeext
6615 }; then
6616 eval "$as_ac_var=yes"
6617else
6618 $as_echo "$as_me: failed program was:" >&5
6619sed 's/^/| /' conftest.$ac_ext >&5
6620
6621 eval "$as_ac_var=no"
6622fi
6623
6624rm -rf conftest.dSYM
6625rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6626 conftest$ac_exeext conftest.$ac_ext
6627fi
6628ac_res=`eval 'as_val=${'$as_ac_var'}
6629 $as_echo "$as_val"'`
6630 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6631$as_echo "$ac_res" >&6; }
6632as_val=`eval 'as_val=${'$as_ac_var'}
6633 $as_echo "$as_val"'`
6634 if test "x$as_val" = x""yes; then
6635 cat >>confdefs.h <<_ACEOF
6636#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6637_ACEOF
6638
6639fi
6640done
6641
ad6254c5
AK
6642# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6643# for constant arguments. Useless!
ec6a6fbe
AK
6644{ $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
6645$as_echo_n "checking for working alloca.h... " >&6; }
ad6254c5 6646if test "${ac_cv_working_alloca_h+set}" = set; then
ec6a6fbe 6647 $as_echo_n "(cached) " >&6
ad6254c5
AK
6648else
6649 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6650/* confdefs.h. */
6651_ACEOF
6652cat confdefs.h >>conftest.$ac_ext
6653cat >>conftest.$ac_ext <<_ACEOF
6654/* end confdefs.h. */
6655#include <alloca.h>
6656int
6657main ()
6658{
6659char *p = (char *) alloca (2 * sizeof (int));
7a197a62 6660 if (p) return 0;
ad6254c5
AK
6661 ;
6662 return 0;
6663}
6664_ACEOF
6665rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
6666if { (ac_try="$ac_link"
6667case "(($ac_try" in
6668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6669 *) ac_try_echo=$ac_try;;
6670esac
ec6a6fbe
AK
6671eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6672$as_echo "$ac_try_echo") >&5
7a197a62 6673 (eval "$ac_link") 2>conftest.er1
ad6254c5 6674 ac_status=$?
8a2fc586
AK
6675 grep -v '^ *+' conftest.er1 >conftest.err
6676 rm -f conftest.er1
6677 cat conftest.err >&5
ec6a6fbe 6678 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6679 (exit $ac_status); } && {
6680 test -z "$ac_c_werror_flag" ||
6681 test ! -s conftest.err
ec6a6fbe
AK
6682 } && test -s conftest$ac_exeext && {
6683 test "$cross_compiling" = yes ||
6684 $as_test_x conftest$ac_exeext
6685 }; then
ad6254c5
AK
6686 ac_cv_working_alloca_h=yes
6687else
ec6a6fbe 6688 $as_echo "$as_me: failed program was:" >&5
ad6254c5 6689sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 6690
7a197a62 6691 ac_cv_working_alloca_h=no
ad6254c5 6692fi
7a197a62 6693
ec6a6fbe 6694rm -rf conftest.dSYM
25fbec5b 6695rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 6696 conftest$ac_exeext conftest.$ac_ext
ad6254c5 6697fi
ec6a6fbe
AK
6698{ $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6699$as_echo "$ac_cv_working_alloca_h" >&6; }
ad6254c5
AK
6700if test $ac_cv_working_alloca_h = yes; then
6701
6702cat >>confdefs.h <<\_ACEOF
6703#define HAVE_ALLOCA_H 1
6704_ACEOF
6705
6706fi
6707
ec6a6fbe
AK
6708{ $as_echo "$as_me:$LINENO: checking for alloca" >&5
6709$as_echo_n "checking for alloca... " >&6; }
ad6254c5 6710if test "${ac_cv_func_alloca_works+set}" = set; then
ec6a6fbe 6711 $as_echo_n "(cached) " >&6
ad6254c5
AK
6712else
6713 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6714/* confdefs.h. */
6715_ACEOF
6716cat confdefs.h >>conftest.$ac_ext
6717cat >>conftest.$ac_ext <<_ACEOF
6718/* end confdefs.h. */
6719#ifdef __GNUC__
6720# define alloca __builtin_alloca
6721#else
6722# ifdef _MSC_VER
6723# include <malloc.h>
6724# define alloca _alloca
6725# else
25fbec5b 6726# ifdef HAVE_ALLOCA_H
ad6254c5
AK
6727# include <alloca.h>
6728# else
6729# ifdef _AIX
6730 #pragma alloca
6731# else
6732# ifndef alloca /* predefined by HP cc +Olibcalls */
6733char *alloca ();
6734# endif
6735# endif
6736# endif
6737# endif
6738#endif
6739
6740int
6741main ()
6742{
6743char *p = (char *) alloca (1);
7a197a62 6744 if (p) return 0;
ad6254c5
AK
6745 ;
6746 return 0;
6747}
6748_ACEOF
6749rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
6750if { (ac_try="$ac_link"
6751case "(($ac_try" in
6752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6753 *) ac_try_echo=$ac_try;;
6754esac
ec6a6fbe
AK
6755eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6756$as_echo "$ac_try_echo") >&5
7a197a62 6757 (eval "$ac_link") 2>conftest.er1
ad6254c5 6758 ac_status=$?
8a2fc586
AK
6759 grep -v '^ *+' conftest.er1 >conftest.err
6760 rm -f conftest.er1
6761 cat conftest.err >&5
ec6a6fbe 6762 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6763 (exit $ac_status); } && {
6764 test -z "$ac_c_werror_flag" ||
6765 test ! -s conftest.err
ec6a6fbe
AK
6766 } && test -s conftest$ac_exeext && {
6767 test "$cross_compiling" = yes ||
6768 $as_test_x conftest$ac_exeext
6769 }; then
ad6254c5
AK
6770 ac_cv_func_alloca_works=yes
6771else
ec6a6fbe 6772 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6773sed 's/^/| /' conftest.$ac_ext >&5
6774
7a197a62 6775 ac_cv_func_alloca_works=no
ad6254c5 6776fi
7a197a62 6777
ec6a6fbe 6778rm -rf conftest.dSYM
25fbec5b 6779rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 6780 conftest$ac_exeext conftest.$ac_ext
ad6254c5 6781fi
ec6a6fbe
AK
6782{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6783$as_echo "$ac_cv_func_alloca_works" >&6; }
ad6254c5
AK
6784
6785if test $ac_cv_func_alloca_works = yes; then
6786
6787cat >>confdefs.h <<\_ACEOF
6788#define HAVE_ALLOCA 1
6789_ACEOF
6790
6791else
6792 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6793# that cause trouble. Some versions do not even contain alloca or
6794# contain a buggy version. If you still want to use their alloca,
6795# use ar to extract alloca.o from them instead of compiling alloca.c.
6796
7a197a62 6797ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
ad6254c5
AK
6798
6799cat >>confdefs.h <<\_ACEOF
6800#define C_ALLOCA 1
6801_ACEOF
6802
6803
ec6a6fbe
AK
6804{ $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6805$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
ad6254c5 6806if test "${ac_cv_os_cray+set}" = set; then
ec6a6fbe 6807 $as_echo_n "(cached) " >&6
ad6254c5
AK
6808else
6809 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6810/* confdefs.h. */
6811_ACEOF
6812cat confdefs.h >>conftest.$ac_ext
6813cat >>conftest.$ac_ext <<_ACEOF
6814/* end confdefs.h. */
7a197a62 6815#if defined CRAY && ! defined CRAY2
ad6254c5
AK
6816webecray
6817#else
6818wenotbecray
6819#endif
6820
6821_ACEOF
795ca3e5 6822if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ad6254c5
AK
6823 $EGREP "webecray" >/dev/null 2>&1; then
6824 ac_cv_os_cray=yes
6825else
6826 ac_cv_os_cray=no
795ca3e5
AK
6827fi
6828rm -f conftest*
6829
795ca3e5 6830fi
ec6a6fbe
AK
6831{ $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6832$as_echo "$ac_cv_os_cray" >&6; }
ad6254c5
AK
6833if test $ac_cv_os_cray = yes; then
6834 for ac_func in _getb67 GETB67 getb67; do
ec6a6fbe
AK
6835 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6836{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6837$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 6838if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 6839 $as_echo_n "(cached) " >&6
ad6254c5
AK
6840else
6841 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6842/* confdefs.h. */
6843_ACEOF
6844cat confdefs.h >>conftest.$ac_ext
6845cat >>conftest.$ac_ext <<_ACEOF
6846/* end confdefs.h. */
8a2fc586
AK
6847/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6848 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6849#define $ac_func innocuous_$ac_func
6850
ad6254c5
AK
6851/* System header to define __stub macros and hopefully few prototypes,
6852 which can conflict with char $ac_func (); below.
6853 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6854 <limits.h> exists even on freestanding compilers. */
8a2fc586 6855
ad6254c5
AK
6856#ifdef __STDC__
6857# include <limits.h>
6858#else
6859# include <assert.h>
6860#endif
8a2fc586
AK
6861
6862#undef $ac_func
6863
7a197a62
AK
6864/* Override any GCC internal prototype to avoid an error.
6865 Use char because int might match the return type of a GCC
6866 builtin and then its argument prototype would still apply. */
ad6254c5
AK
6867#ifdef __cplusplus
6868extern "C"
ad6254c5 6869#endif
ad6254c5
AK
6870char $ac_func ();
6871/* The GNU C library defines this for functions which it implements
6872 to always fail with ENOSYS. Some functions are actually named
6873 something starting with __ and the normal name is an alias. */
7a197a62 6874#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 6875choke me
ad6254c5
AK
6876#endif
6877
6878int
6879main ()
6880{
7a197a62 6881return $ac_func ();
ad6254c5
AK
6882 ;
6883 return 0;
6884}
6885_ACEOF
6886rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
6887if { (ac_try="$ac_link"
6888case "(($ac_try" in
6889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6890 *) ac_try_echo=$ac_try;;
6891esac
ec6a6fbe
AK
6892eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6893$as_echo "$ac_try_echo") >&5
7a197a62 6894 (eval "$ac_link") 2>conftest.er1
ad6254c5 6895 ac_status=$?
8a2fc586
AK
6896 grep -v '^ *+' conftest.er1 >conftest.err
6897 rm -f conftest.er1
6898 cat conftest.err >&5
ec6a6fbe 6899 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6900 (exit $ac_status); } && {
6901 test -z "$ac_c_werror_flag" ||
6902 test ! -s conftest.err
ec6a6fbe
AK
6903 } && test -s conftest$ac_exeext && {
6904 test "$cross_compiling" = yes ||
6905 $as_test_x conftest$ac_exeext
6906 }; then
ad6254c5
AK
6907 eval "$as_ac_var=yes"
6908else
ec6a6fbe 6909 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6910sed 's/^/| /' conftest.$ac_ext >&5
6911
7a197a62 6912 eval "$as_ac_var=no"
ad6254c5 6913fi
7a197a62 6914
ec6a6fbe 6915rm -rf conftest.dSYM
25fbec5b 6916rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 6917 conftest$ac_exeext conftest.$ac_ext
ad6254c5 6918fi
ec6a6fbe
AK
6919ac_res=`eval 'as_val=${'$as_ac_var'}
6920 $as_echo "$as_val"'`
6921 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6922$as_echo "$ac_res" >&6; }
6923as_val=`eval 'as_val=${'$as_ac_var'}
6924 $as_echo "$as_val"'`
6925 if test "x$as_val" = x""yes; then
80992638 6926
ad6254c5
AK
6927cat >>confdefs.h <<_ACEOF
6928#define CRAY_STACKSEG_END $ac_func
6929_ACEOF
6930
6931 break
6932fi
6933
6934 done
6935fi
6936
ec6a6fbe
AK
6937{ $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6938$as_echo_n "checking stack direction for C alloca... " >&6; }
ad6254c5 6939if test "${ac_cv_c_stack_direction+set}" = set; then
ec6a6fbe 6940 $as_echo_n "(cached) " >&6
ad6254c5
AK
6941else
6942 if test "$cross_compiling" = yes; then
6943 ac_cv_c_stack_direction=0
6944else
6945 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6946/* confdefs.h. */
6947_ACEOF
6948cat confdefs.h >>conftest.$ac_ext
6949cat >>conftest.$ac_ext <<_ACEOF
6950/* end confdefs.h. */
7a197a62 6951$ac_includes_default
ad6254c5
AK
6952int
6953find_stack_direction ()
6954{
6955 static char *addr = 0;
6956 auto char dummy;
6957 if (addr == 0)
6958 {
6959 addr = &dummy;
6960 return find_stack_direction ();
6961 }
6962 else
6963 return (&dummy > addr) ? 1 : -1;
6964}
6965
6966int
6967main ()
6968{
7a197a62 6969 return find_stack_direction () < 0;
ad6254c5
AK
6970}
6971_ACEOF
6972rm -f conftest$ac_exeext
7a197a62
AK
6973if { (ac_try="$ac_link"
6974case "(($ac_try" in
6975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6976 *) ac_try_echo=$ac_try;;
6977esac
ec6a6fbe
AK
6978eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6979$as_echo "$ac_try_echo") >&5
7a197a62 6980 (eval "$ac_link") 2>&5
ad6254c5 6981 ac_status=$?
ec6a6fbe 6982 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 6983 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
6984 { (case "(($ac_try" in
6985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6986 *) ac_try_echo=$ac_try;;
6987esac
ec6a6fbe
AK
6988eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6989$as_echo "$ac_try_echo") >&5
7a197a62 6990 (eval "$ac_try") 2>&5
ad6254c5 6991 ac_status=$?
ec6a6fbe 6992 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
6993 (exit $ac_status); }; }; then
6994 ac_cv_c_stack_direction=1
6995else
ec6a6fbe
AK
6996 $as_echo "$as_me: program exited with status $ac_status" >&5
6997$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6998sed 's/^/| /' conftest.$ac_ext >&5
6999
7000( exit $ac_status )
7001ac_cv_c_stack_direction=-1
7002fi
ec6a6fbe 7003rm -rf conftest.dSYM
7a197a62 7004rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7005fi
7a197a62
AK
7006
7007
ad6254c5 7008fi
ec6a6fbe
AK
7009{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
7010$as_echo "$ac_cv_c_stack_direction" >&6; }
ad6254c5
AK
7011
7012cat >>confdefs.h <<_ACEOF
7013#define STACK_DIRECTION $ac_cv_c_stack_direction
7014_ACEOF
7015
7016
7017fi
7018
ec6a6fbe
AK
7019{ $as_echo "$as_me:$LINENO: checking whether closedir returns void" >&5
7020$as_echo_n "checking whether closedir returns void... " >&6; }
ad6254c5 7021if test "${ac_cv_func_closedir_void+set}" = set; then
ec6a6fbe 7022 $as_echo_n "(cached) " >&6
ad6254c5
AK
7023else
7024 if test "$cross_compiling" = yes; then
7025 ac_cv_func_closedir_void=yes
7026else
7027 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7028/* confdefs.h. */
7029_ACEOF
7030cat confdefs.h >>conftest.$ac_ext
7031cat >>conftest.$ac_ext <<_ACEOF
7032/* end confdefs.h. */
7033$ac_includes_default
7034#include <$ac_header_dirent>
7035#ifndef __cplusplus
7036int closedir ();
7037#endif
7038
7039int
7040main ()
7041{
7a197a62 7042return closedir (opendir (".")) != 0;
ad6254c5
AK
7043 ;
7044 return 0;
7045}
7046_ACEOF
7047rm -f conftest$ac_exeext
7a197a62
AK
7048if { (ac_try="$ac_link"
7049case "(($ac_try" in
7050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7051 *) ac_try_echo=$ac_try;;
7052esac
ec6a6fbe
AK
7053eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7054$as_echo "$ac_try_echo") >&5
7a197a62 7055 (eval "$ac_link") 2>&5
ad6254c5 7056 ac_status=$?
ec6a6fbe 7057 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7058 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7059 { (case "(($ac_try" in
7060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7061 *) ac_try_echo=$ac_try;;
7062esac
ec6a6fbe
AK
7063eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7064$as_echo "$ac_try_echo") >&5
7a197a62 7065 (eval "$ac_try") 2>&5
ad6254c5 7066 ac_status=$?
ec6a6fbe 7067 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7068 (exit $ac_status); }; }; then
7069 ac_cv_func_closedir_void=no
7070else
ec6a6fbe
AK
7071 $as_echo "$as_me: program exited with status $ac_status" >&5
7072$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7073sed 's/^/| /' conftest.$ac_ext >&5
7074
7075( exit $ac_status )
7076ac_cv_func_closedir_void=yes
7077fi
ec6a6fbe 7078rm -rf conftest.dSYM
7a197a62 7079rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7080fi
7a197a62
AK
7081
7082
ad6254c5 7083fi
ec6a6fbe
AK
7084{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
7085$as_echo "$ac_cv_func_closedir_void" >&6; }
ad6254c5
AK
7086if test $ac_cv_func_closedir_void = yes; then
7087
7088cat >>confdefs.h <<\_ACEOF
7089#define CLOSEDIR_VOID 1
7090_ACEOF
7091
7092fi
7093
7094
7a197a62 7095for ac_header in vfork.h
ad6254c5 7096do
ec6a6fbe 7097as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 7098if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
7099 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7100$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 7101if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 7102 $as_echo_n "(cached) " >&6
ad6254c5 7103fi
ec6a6fbe
AK
7104ac_res=`eval 'as_val=${'$as_ac_Header'}
7105 $as_echo "$as_val"'`
7106 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7107$as_echo "$ac_res" >&6; }
ad6254c5
AK
7108else
7109 # Is the header compilable?
ec6a6fbe
AK
7110{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7111$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 7112cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7113/* confdefs.h. */
7114_ACEOF
7115cat confdefs.h >>conftest.$ac_ext
7116cat >>conftest.$ac_ext <<_ACEOF
7117/* end confdefs.h. */
7118$ac_includes_default
7119#include <$ac_header>
7120_ACEOF
7121rm -f conftest.$ac_objext
7a197a62
AK
7122if { (ac_try="$ac_compile"
7123case "(($ac_try" in
7124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7125 *) ac_try_echo=$ac_try;;
7126esac
ec6a6fbe
AK
7127eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7128$as_echo "$ac_try_echo") >&5
7a197a62 7129 (eval "$ac_compile") 2>conftest.er1
ad6254c5 7130 ac_status=$?
8a2fc586
AK
7131 grep -v '^ *+' conftest.er1 >conftest.err
7132 rm -f conftest.er1
7133 cat conftest.err >&5
ec6a6fbe 7134 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7135 (exit $ac_status); } && {
7136 test -z "$ac_c_werror_flag" ||
7137 test ! -s conftest.err
7138 } && test -s conftest.$ac_objext; then
ad6254c5
AK
7139 ac_header_compiler=yes
7140else
ec6a6fbe 7141 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7142sed 's/^/| /' conftest.$ac_ext >&5
7143
7a197a62 7144 ac_header_compiler=no
ad6254c5 7145fi
7a197a62
AK
7146
7147rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
7148{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7149$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
7150
7151# Is the header present?
ec6a6fbe
AK
7152{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7153$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 7154cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7155/* confdefs.h. */
7156_ACEOF
7157cat confdefs.h >>conftest.$ac_ext
7158cat >>conftest.$ac_ext <<_ACEOF
7159/* end confdefs.h. */
7160#include <$ac_header>
7161_ACEOF
7a197a62
AK
7162if { (ac_try="$ac_cpp conftest.$ac_ext"
7163case "(($ac_try" in
7164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7165 *) ac_try_echo=$ac_try;;
7166esac
ec6a6fbe
AK
7167eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7168$as_echo "$ac_try_echo") >&5
7a197a62 7169 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
7170 ac_status=$?
7171 grep -v '^ *+' conftest.er1 >conftest.err
7172 rm -f conftest.er1
7173 cat conftest.err >&5
ec6a6fbe 7174 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7175 (exit $ac_status); } >/dev/null && {
7176 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7177 test ! -s conftest.err
7178 }; then
ad6254c5
AK
7179 ac_header_preproc=yes
7180else
ec6a6fbe 7181 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7182sed 's/^/| /' conftest.$ac_ext >&5
7183
7184 ac_header_preproc=no
7185fi
7a197a62 7186
ad6254c5 7187rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
7188{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7189$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
7190
7191# So? What about this header?
8a2fc586
AK
7192case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7193 yes:no: )
ec6a6fbe
AK
7194 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7195$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7196 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7197$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 7198 ac_header_preproc=yes
ad6254c5 7199 ;;
8a2fc586 7200 no:yes:* )
ec6a6fbe
AK
7201 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7202$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7203 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7204$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7205 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7206$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7207 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7208$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7209 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7210$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7211 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7212$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 7213
ad6254c5
AK
7214 ;;
7215esac
ec6a6fbe
AK
7216{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7217$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 7218if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 7219 $as_echo_n "(cached) " >&6
ad6254c5 7220else
8a2fc586 7221 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 7222fi
ec6a6fbe
AK
7223ac_res=`eval 'as_val=${'$as_ac_Header'}
7224 $as_echo "$as_val"'`
7225 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7226$as_echo "$ac_res" >&6; }
ad6254c5 7227
795ca3e5 7228fi
ec6a6fbe
AK
7229as_val=`eval 'as_val=${'$as_ac_Header'}
7230 $as_echo "$as_val"'`
7231 if test "x$as_val" = x""yes; then
ad6254c5 7232 cat >>confdefs.h <<_ACEOF
ec6a6fbe 7233#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
7234_ACEOF
7235
7236fi
7237
7238done
795ca3e5 7239
ad6254c5
AK
7240
7241
7242for ac_func in fork vfork
7243do
ec6a6fbe
AK
7244as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7245{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7246$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 7247if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 7248 $as_echo_n "(cached) " >&6
795ca3e5 7249else
ad6254c5 7250 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7251/* confdefs.h. */
7252_ACEOF
7253cat confdefs.h >>conftest.$ac_ext
7254cat >>conftest.$ac_ext <<_ACEOF
7255/* end confdefs.h. */
8a2fc586
AK
7256/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7257 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7258#define $ac_func innocuous_$ac_func
7259
ad6254c5
AK
7260/* System header to define __stub macros and hopefully few prototypes,
7261 which can conflict with char $ac_func (); below.
7262 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7263 <limits.h> exists even on freestanding compilers. */
8a2fc586 7264
ad6254c5
AK
7265#ifdef __STDC__
7266# include <limits.h>
7267#else
7268# include <assert.h>
795ca3e5 7269#endif
8a2fc586
AK
7270
7271#undef $ac_func
7272
7a197a62
AK
7273/* Override any GCC internal prototype to avoid an error.
7274 Use char because int might match the return type of a GCC
7275 builtin and then its argument prototype would still apply. */
795ca3e5 7276#ifdef __cplusplus
ad6254c5 7277extern "C"
ad6254c5 7278#endif
ad6254c5
AK
7279char $ac_func ();
7280/* The GNU C library defines this for functions which it implements
7281 to always fail with ENOSYS. Some functions are actually named
7282 something starting with __ and the normal name is an alias. */
7a197a62 7283#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 7284choke me
795ca3e5
AK
7285#endif
7286
ad6254c5
AK
7287int
7288main ()
7289{
7a197a62 7290return $ac_func ();
ad6254c5
AK
7291 ;
7292 return 0;
7293}
7294_ACEOF
7295rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
7296if { (ac_try="$ac_link"
7297case "(($ac_try" in
7298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7299 *) ac_try_echo=$ac_try;;
7300esac
ec6a6fbe
AK
7301eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7302$as_echo "$ac_try_echo") >&5
7a197a62 7303 (eval "$ac_link") 2>conftest.er1
ad6254c5 7304 ac_status=$?
8a2fc586
AK
7305 grep -v '^ *+' conftest.er1 >conftest.err
7306 rm -f conftest.er1
7307 cat conftest.err >&5
ec6a6fbe 7308 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7309 (exit $ac_status); } && {
7310 test -z "$ac_c_werror_flag" ||
7311 test ! -s conftest.err
ec6a6fbe
AK
7312 } && test -s conftest$ac_exeext && {
7313 test "$cross_compiling" = yes ||
7314 $as_test_x conftest$ac_exeext
7315 }; then
ad6254c5 7316 eval "$as_ac_var=yes"
795ca3e5 7317else
ec6a6fbe 7318 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7319sed 's/^/| /' conftest.$ac_ext >&5
7320
7a197a62 7321 eval "$as_ac_var=no"
795ca3e5 7322fi
7a197a62 7323
ec6a6fbe 7324rm -rf conftest.dSYM
25fbec5b 7325rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 7326 conftest$ac_exeext conftest.$ac_ext
ad6254c5 7327fi
ec6a6fbe
AK
7328ac_res=`eval 'as_val=${'$as_ac_var'}
7329 $as_echo "$as_val"'`
7330 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7331$as_echo "$ac_res" >&6; }
7332as_val=`eval 'as_val=${'$as_ac_var'}
7333 $as_echo "$as_val"'`
7334 if test "x$as_val" = x""yes; then
ad6254c5 7335 cat >>confdefs.h <<_ACEOF
ec6a6fbe 7336#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
7337_ACEOF
7338
7339fi
7340done
7341
7342if test "x$ac_cv_func_fork" = xyes; then
ec6a6fbe
AK
7343 { $as_echo "$as_me:$LINENO: checking for working fork" >&5
7344$as_echo_n "checking for working fork... " >&6; }
ad6254c5 7345if test "${ac_cv_func_fork_works+set}" = set; then
ec6a6fbe 7346 $as_echo_n "(cached) " >&6
ad6254c5
AK
7347else
7348 if test "$cross_compiling" = yes; then
7349 ac_cv_func_fork_works=cross
7350else
7351 cat >conftest.$ac_ext <<_ACEOF
7a197a62
AK
7352/* confdefs.h. */
7353_ACEOF
7354cat confdefs.h >>conftest.$ac_ext
7355cat >>conftest.$ac_ext <<_ACEOF
7356/* end confdefs.h. */
7357$ac_includes_default
7358int
7359main ()
7360{
7361
7362 /* By Ruediger Kuhlmann. */
7363 return fork () < 0;
7364
7365 ;
7366 return 0;
7367}
ad6254c5
AK
7368_ACEOF
7369rm -f conftest$ac_exeext
7a197a62
AK
7370if { (ac_try="$ac_link"
7371case "(($ac_try" in
7372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7373 *) ac_try_echo=$ac_try;;
7374esac
ec6a6fbe
AK
7375eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7376$as_echo "$ac_try_echo") >&5
7a197a62 7377 (eval "$ac_link") 2>&5
ad6254c5 7378 ac_status=$?
ec6a6fbe 7379 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7380 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7381 { (case "(($ac_try" in
7382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7383 *) ac_try_echo=$ac_try;;
7384esac
ec6a6fbe
AK
7385eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7386$as_echo "$ac_try_echo") >&5
7a197a62 7387 (eval "$ac_try") 2>&5
ad6254c5 7388 ac_status=$?
ec6a6fbe 7389 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7390 (exit $ac_status); }; }; then
7391 ac_cv_func_fork_works=yes
7392else
ec6a6fbe
AK
7393 $as_echo "$as_me: program exited with status $ac_status" >&5
7394$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7395sed 's/^/| /' conftest.$ac_ext >&5
7396
7397( exit $ac_status )
7398ac_cv_func_fork_works=no
7399fi
ec6a6fbe 7400rm -rf conftest.dSYM
7a197a62 7401rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7402fi
7a197a62
AK
7403
7404
ad6254c5 7405fi
ec6a6fbe
AK
7406{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
7407$as_echo "$ac_cv_func_fork_works" >&6; }
ad6254c5
AK
7408
7409else
7410 ac_cv_func_fork_works=$ac_cv_func_fork
7411fi
7412if test "x$ac_cv_func_fork_works" = xcross; then
7413 case $host in
7414 *-*-amigaos* | *-*-msdosdjgpp*)
7415 # Override, as these systems have only a dummy fork() stub
7416 ac_cv_func_fork_works=no
7417 ;;
7418 *)
7419 ac_cv_func_fork_works=yes
7420 ;;
7421 esac
ec6a6fbe
AK
7422 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
7423$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
ad6254c5
AK
7424fi
7425ac_cv_func_vfork_works=$ac_cv_func_vfork
7426if test "x$ac_cv_func_vfork" = xyes; then
ec6a6fbe
AK
7427 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
7428$as_echo_n "checking for working vfork... " >&6; }
ad6254c5 7429if test "${ac_cv_func_vfork_works+set}" = set; then
ec6a6fbe 7430 $as_echo_n "(cached) " >&6
ad6254c5
AK
7431else
7432 if test "$cross_compiling" = yes; then
7433 ac_cv_func_vfork_works=cross
7434else
7435 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7436/* confdefs.h. */
7437_ACEOF
7438cat confdefs.h >>conftest.$ac_ext
7439cat >>conftest.$ac_ext <<_ACEOF
7440/* end confdefs.h. */
7441/* Thanks to Paul Eggert for this test. */
7a197a62 7442$ac_includes_default
ad6254c5 7443#include <sys/wait.h>
25fbec5b 7444#ifdef HAVE_VFORK_H
ad6254c5
AK
7445# include <vfork.h>
7446#endif
7447/* On some sparc systems, changes by the child to local and incoming
7448 argument registers are propagated back to the parent. The compiler
7449 is told about this with #include <vfork.h>, but some compilers
7450 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
7451 static variable whose address is put into a register that is
7452 clobbered by the vfork. */
7453static void
7454#ifdef __cplusplus
7455sparc_address_test (int arg)
7456# else
7457sparc_address_test (arg) int arg;
7458#endif
7459{
7460 static pid_t child;
7461 if (!child) {
7462 child = vfork ();
7463 if (child < 0) {
7464 perror ("vfork");
7465 _exit(2);
7466 }
7467 if (!child) {
7468 arg = getpid();
7469 write(-1, "", 0);
7470 _exit (arg);
7471 }
7472 }
7473}
7474
7475int
7476main ()
7477{
7478 pid_t parent = getpid ();
7479 pid_t child;
7480
7481 sparc_address_test (0);
7482
7483 child = vfork ();
7484
7485 if (child == 0) {
7486 /* Here is another test for sparc vfork register problems. This
7487 test uses lots of local variables, at least as many local
7488 variables as main has allocated so far including compiler
7489 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
7490 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
7491 reuse the register of parent for one of the local variables,
7492 since it will think that parent can't possibly be used any more
7493 in this routine. Assigning to the local variable will thus
7494 munge parent in the parent process. */
7495 pid_t
7496 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
7497 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
7498 /* Convince the compiler that p..p7 are live; otherwise, it might
7499 use the same hardware register for all 8 local variables. */
7500 if (p != p1 || p != p2 || p != p3 || p != p4
7501 || p != p5 || p != p6 || p != p7)
7502 _exit(1);
7503
7504 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
7505 from child file descriptors. If the child closes a descriptor
7506 before it execs or exits, this munges the parent's descriptor
7507 as well. Test for this by closing stdout in the child. */
7508 _exit(close(fileno(stdout)) != 0);
7509 } else {
7510 int status;
7511 struct stat st;
7512
7513 while (wait(&status) != child)
7514 ;
7a197a62 7515 return (
ad6254c5
AK
7516 /* Was there some problem with vforking? */
7517 child < 0
7518
7519 /* Did the child fail? (This shouldn't happen.) */
7520 || status
7521
7522 /* Did the vfork/compiler bug occur? */
7523 || parent != getpid()
7524
7525 /* Did the file descriptor bug occur? */
7526 || fstat(fileno(stdout), &st) != 0
7527 );
7528 }
7529}
7530_ACEOF
7531rm -f conftest$ac_exeext
7a197a62
AK
7532if { (ac_try="$ac_link"
7533case "(($ac_try" in
7534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7535 *) ac_try_echo=$ac_try;;
7536esac
ec6a6fbe
AK
7537eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7538$as_echo "$ac_try_echo") >&5
7a197a62 7539 (eval "$ac_link") 2>&5
ad6254c5 7540 ac_status=$?
ec6a6fbe 7541 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7542 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7543 { (case "(($ac_try" in
7544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7545 *) ac_try_echo=$ac_try;;
7546esac
ec6a6fbe
AK
7547eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7548$as_echo "$ac_try_echo") >&5
7a197a62 7549 (eval "$ac_try") 2>&5
ad6254c5 7550 ac_status=$?
ec6a6fbe 7551 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7552 (exit $ac_status); }; }; then
7553 ac_cv_func_vfork_works=yes
7554else
ec6a6fbe
AK
7555 $as_echo "$as_me: program exited with status $ac_status" >&5
7556$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7557sed 's/^/| /' conftest.$ac_ext >&5
7558
7559( exit $ac_status )
7560ac_cv_func_vfork_works=no
7561fi
ec6a6fbe 7562rm -rf conftest.dSYM
7a197a62 7563rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7564fi
7a197a62
AK
7565
7566
ad6254c5 7567fi
ec6a6fbe
AK
7568{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
7569$as_echo "$ac_cv_func_vfork_works" >&6; }
ad6254c5
AK
7570
7571fi;
7572if test "x$ac_cv_func_fork_works" = xcross; then
8a2fc586 7573 ac_cv_func_vfork_works=$ac_cv_func_vfork
ec6a6fbe
AK
7574 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
7575$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
ad6254c5
AK
7576fi
7577
7578if test "x$ac_cv_func_vfork_works" = xyes; then
7579
7580cat >>confdefs.h <<\_ACEOF
7581#define HAVE_WORKING_VFORK 1
7582_ACEOF
7583
7584else
7585
7586cat >>confdefs.h <<\_ACEOF
7587#define vfork fork
7588_ACEOF
7589
7590fi
7591if test "x$ac_cv_func_fork_works" = xyes; then
7592
7593cat >>confdefs.h <<\_ACEOF
7594#define HAVE_WORKING_FORK 1
7595_ACEOF
7596
7597fi
7598
ec6a6fbe
AK
7599{ $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
7600$as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
ad6254c5 7601if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
ec6a6fbe 7602 $as_echo_n "(cached) " >&6
ad6254c5
AK
7603else
7604 rm -f conftest.sym conftest.file
7605echo >conftest.file
7606if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
7607 if test "$cross_compiling" = yes; then
7608 ac_cv_func_lstat_dereferences_slashed_symlink=no
7609else
7610 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7611/* confdefs.h. */
7612_ACEOF
7613cat confdefs.h >>conftest.$ac_ext
7614cat >>conftest.$ac_ext <<_ACEOF
7615/* end confdefs.h. */
7616$ac_includes_default
7617int
7618main ()
7619{
7620struct stat sbuf;
7621 /* Linux will dereference the symlink and fail.
8a2fc586
AK
7622 That is better in the sense that it means we will not
7623 have to compile and use the lstat wrapper. */
7a197a62 7624 return lstat ("conftest.sym/", &sbuf) == 0;
ad6254c5
AK
7625 ;
7626 return 0;
7627}
7628_ACEOF
7629rm -f conftest$ac_exeext
7a197a62
AK
7630if { (ac_try="$ac_link"
7631case "(($ac_try" in
7632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7633 *) ac_try_echo=$ac_try;;
7634esac
ec6a6fbe
AK
7635eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7636$as_echo "$ac_try_echo") >&5
7a197a62 7637 (eval "$ac_link") 2>&5
ad6254c5 7638 ac_status=$?
ec6a6fbe 7639 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7640 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7641 { (case "(($ac_try" in
7642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7643 *) ac_try_echo=$ac_try;;
7644esac
ec6a6fbe
AK
7645eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7646$as_echo "$ac_try_echo") >&5
7a197a62 7647 (eval "$ac_try") 2>&5
ad6254c5 7648 ac_status=$?
ec6a6fbe 7649 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7650 (exit $ac_status); }; }; then
7651 ac_cv_func_lstat_dereferences_slashed_symlink=yes
7652else
ec6a6fbe
AK
7653 $as_echo "$as_me: program exited with status $ac_status" >&5
7654$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7655sed 's/^/| /' conftest.$ac_ext >&5
7656
7657( exit $ac_status )
7658ac_cv_func_lstat_dereferences_slashed_symlink=no
7659fi
ec6a6fbe 7660rm -rf conftest.dSYM
7a197a62 7661rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7662fi
7a197a62
AK
7663
7664
ad6254c5
AK
7665else
7666 # If the `ln -s' command failed, then we probably don't even
7667 # have an lstat function.
7668 ac_cv_func_lstat_dereferences_slashed_symlink=no
7669fi
7670rm -f conftest.sym conftest.file
7671
7672fi
ec6a6fbe
AK
7673{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
7674$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
ad6254c5
AK
7675
7676test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
7677
7678cat >>confdefs.h <<_ACEOF
7679#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
7680_ACEOF
7681
7682
7683if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
7a197a62 7684 case " $LIBOBJS " in
8a2fc586 7685 *" lstat.$ac_objext "* ) ;;
7a197a62
AK
7686 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
7687 ;;
8a2fc586
AK
7688esac
7689
ad6254c5
AK
7690fi
7691
ec6a6fbe
AK
7692{ $as_echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
7693$as_echo_n "checking whether lstat accepts an empty string... " >&6; }
ad6254c5 7694if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
ec6a6fbe 7695 $as_echo_n "(cached) " >&6
ad6254c5
AK
7696else
7697 if test "$cross_compiling" = yes; then
7698 ac_cv_func_lstat_empty_string_bug=yes
7699else
7700 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7701/* confdefs.h. */
7702_ACEOF
7703cat confdefs.h >>conftest.$ac_ext
7704cat >>conftest.$ac_ext <<_ACEOF
7705/* end confdefs.h. */
7706$ac_includes_default
7707int
7708main ()
7709{
7710struct stat sbuf;
7a197a62 7711 return lstat ("", &sbuf) == 0;
ad6254c5
AK
7712 ;
7713 return 0;
7714}
7715_ACEOF
7716rm -f conftest$ac_exeext
7a197a62
AK
7717if { (ac_try="$ac_link"
7718case "(($ac_try" in
7719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7720 *) ac_try_echo=$ac_try;;
7721esac
ec6a6fbe
AK
7722eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7723$as_echo "$ac_try_echo") >&5
7a197a62 7724 (eval "$ac_link") 2>&5
ad6254c5 7725 ac_status=$?
ec6a6fbe 7726 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7727 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7728 { (case "(($ac_try" in
7729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7730 *) ac_try_echo=$ac_try;;
7731esac
ec6a6fbe
AK
7732eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7733$as_echo "$ac_try_echo") >&5
7a197a62 7734 (eval "$ac_try") 2>&5
ad6254c5 7735 ac_status=$?
ec6a6fbe 7736 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7737 (exit $ac_status); }; }; then
7a197a62 7738 ac_cv_func_lstat_empty_string_bug=no
ad6254c5 7739else
ec6a6fbe
AK
7740 $as_echo "$as_me: program exited with status $ac_status" >&5
7741$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7742sed 's/^/| /' conftest.$ac_ext >&5
7743
7744( exit $ac_status )
7a197a62 7745ac_cv_func_lstat_empty_string_bug=yes
ad6254c5 7746fi
ec6a6fbe 7747rm -rf conftest.dSYM
7a197a62 7748rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7749fi
7a197a62
AK
7750
7751
ad6254c5 7752fi
ec6a6fbe
AK
7753{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
7754$as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
ad6254c5 7755if test $ac_cv_func_lstat_empty_string_bug = yes; then
7a197a62 7756 case " $LIBOBJS " in
8a2fc586 7757 *" lstat.$ac_objext "* ) ;;
7a197a62
AK
7758 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
7759 ;;
8a2fc586
AK
7760esac
7761
ad6254c5
AK
7762
7763cat >>confdefs.h <<_ACEOF
7764#define HAVE_LSTAT_EMPTY_STRING_BUG 1
7765_ACEOF
7766
7767fi
7768
7769
7770for ac_header in stdlib.h
7771do
ec6a6fbe 7772as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 7773if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
7774 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7775$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 7776if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 7777 $as_echo_n "(cached) " >&6
ad6254c5 7778fi
ec6a6fbe
AK
7779ac_res=`eval 'as_val=${'$as_ac_Header'}
7780 $as_echo "$as_val"'`
7781 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7782$as_echo "$ac_res" >&6; }
ad6254c5
AK
7783else
7784 # Is the header compilable?
ec6a6fbe
AK
7785{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7786$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 7787cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7788/* confdefs.h. */
7789_ACEOF
7790cat confdefs.h >>conftest.$ac_ext
7791cat >>conftest.$ac_ext <<_ACEOF
7792/* end confdefs.h. */
7793$ac_includes_default
7794#include <$ac_header>
7795_ACEOF
7796rm -f conftest.$ac_objext
7a197a62
AK
7797if { (ac_try="$ac_compile"
7798case "(($ac_try" in
7799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7800 *) ac_try_echo=$ac_try;;
7801esac
ec6a6fbe
AK
7802eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7803$as_echo "$ac_try_echo") >&5
7a197a62 7804 (eval "$ac_compile") 2>conftest.er1
ad6254c5 7805 ac_status=$?
8a2fc586
AK
7806 grep -v '^ *+' conftest.er1 >conftest.err
7807 rm -f conftest.er1
7808 cat conftest.err >&5
ec6a6fbe 7809 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7810 (exit $ac_status); } && {
7811 test -z "$ac_c_werror_flag" ||
7812 test ! -s conftest.err
7813 } && test -s conftest.$ac_objext; then
ad6254c5
AK
7814 ac_header_compiler=yes
7815else
ec6a6fbe 7816 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7817sed 's/^/| /' conftest.$ac_ext >&5
7818
7a197a62 7819 ac_header_compiler=no
ad6254c5 7820fi
7a197a62
AK
7821
7822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
7823{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7824$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
7825
7826# Is the header present?
ec6a6fbe
AK
7827{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7828$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 7829cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7830/* confdefs.h. */
7831_ACEOF
7832cat confdefs.h >>conftest.$ac_ext
7833cat >>conftest.$ac_ext <<_ACEOF
7834/* end confdefs.h. */
7835#include <$ac_header>
7836_ACEOF
7a197a62
AK
7837if { (ac_try="$ac_cpp conftest.$ac_ext"
7838case "(($ac_try" in
7839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7840 *) ac_try_echo=$ac_try;;
7841esac
ec6a6fbe
AK
7842eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7843$as_echo "$ac_try_echo") >&5
7a197a62 7844 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
7845 ac_status=$?
7846 grep -v '^ *+' conftest.er1 >conftest.err
7847 rm -f conftest.er1
7848 cat conftest.err >&5
ec6a6fbe 7849 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7850 (exit $ac_status); } >/dev/null && {
7851 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7852 test ! -s conftest.err
7853 }; then
ad6254c5
AK
7854 ac_header_preproc=yes
7855else
ec6a6fbe 7856 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7857sed 's/^/| /' conftest.$ac_ext >&5
7858
7859 ac_header_preproc=no
7860fi
7a197a62 7861
ad6254c5 7862rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
7863{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7864$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
7865
7866# So? What about this header?
8a2fc586
AK
7867case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7868 yes:no: )
ec6a6fbe
AK
7869 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7870$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7871 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7872$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 7873 ac_header_preproc=yes
ad6254c5 7874 ;;
8a2fc586 7875 no:yes:* )
ec6a6fbe
AK
7876 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7877$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7878 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7879$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7880 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7881$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7882 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7883$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7884 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7885$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7886 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7887$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 7888
ad6254c5
AK
7889 ;;
7890esac
ec6a6fbe
AK
7891{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7892$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 7893if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 7894 $as_echo_n "(cached) " >&6
ad6254c5 7895else
8a2fc586 7896 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 7897fi
ec6a6fbe
AK
7898ac_res=`eval 'as_val=${'$as_ac_Header'}
7899 $as_echo "$as_val"'`
7900 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7901$as_echo "$ac_res" >&6; }
ad6254c5
AK
7902
7903fi
ec6a6fbe
AK
7904as_val=`eval 'as_val=${'$as_ac_Header'}
7905 $as_echo "$as_val"'`
7906 if test "x$as_val" = x""yes; then
ad6254c5 7907 cat >>confdefs.h <<_ACEOF
ec6a6fbe 7908#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
7909_ACEOF
7910
7911fi
7912
7913done
7914
ec6a6fbe
AK
7915{ $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
7916$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
ad6254c5 7917if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
ec6a6fbe 7918 $as_echo_n "(cached) " >&6
ad6254c5
AK
7919else
7920 if test "$cross_compiling" = yes; then
7921 ac_cv_func_malloc_0_nonnull=no
7922else
7923 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7924/* confdefs.h. */
7925_ACEOF
7926cat confdefs.h >>conftest.$ac_ext
7927cat >>conftest.$ac_ext <<_ACEOF
7928/* end confdefs.h. */
25fbec5b 7929#if defined STDC_HEADERS || defined HAVE_STDLIB_H
ad6254c5
AK
7930# include <stdlib.h>
7931#else
7932char *malloc ();
7933#endif
7934
7935int
7936main ()
7937{
7a197a62 7938return ! malloc (0);
ad6254c5
AK
7939 ;
7940 return 0;
7941}
7942_ACEOF
7943rm -f conftest$ac_exeext
7a197a62
AK
7944if { (ac_try="$ac_link"
7945case "(($ac_try" in
7946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7947 *) ac_try_echo=$ac_try;;
7948esac
ec6a6fbe
AK
7949eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7950$as_echo "$ac_try_echo") >&5
7a197a62 7951 (eval "$ac_link") 2>&5
ad6254c5 7952 ac_status=$?
ec6a6fbe 7953 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7954 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7955 { (case "(($ac_try" in
7956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7957 *) ac_try_echo=$ac_try;;
7958esac
ec6a6fbe
AK
7959eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7960$as_echo "$ac_try_echo") >&5
7a197a62 7961 (eval "$ac_try") 2>&5
ad6254c5 7962 ac_status=$?
ec6a6fbe 7963 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7964 (exit $ac_status); }; }; then
7965 ac_cv_func_malloc_0_nonnull=yes
7966else
ec6a6fbe
AK
7967 $as_echo "$as_me: program exited with status $ac_status" >&5
7968$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7969sed 's/^/| /' conftest.$ac_ext >&5
7970
7971( exit $ac_status )
7972ac_cv_func_malloc_0_nonnull=no
7973fi
ec6a6fbe 7974rm -rf conftest.dSYM
7a197a62 7975rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7976fi
7a197a62
AK
7977
7978
ad6254c5 7979fi
ec6a6fbe
AK
7980{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
7981$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
ad6254c5
AK
7982if test $ac_cv_func_malloc_0_nonnull = yes; then
7983
7984cat >>confdefs.h <<\_ACEOF
7985#define HAVE_MALLOC 1
7986_ACEOF
7987
7988else
7989 cat >>confdefs.h <<\_ACEOF
7990#define HAVE_MALLOC 0
7991_ACEOF
7992
7a197a62 7993 case " $LIBOBJS " in
8a2fc586 7994 *" malloc.$ac_objext "* ) ;;
7a197a62
AK
7995 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
7996 ;;
8a2fc586
AK
7997esac
7998
ad6254c5
AK
7999
8000cat >>confdefs.h <<\_ACEOF
8001#define malloc rpl_malloc
8002_ACEOF
8003
8004fi
8005
8006
8007
ec6a6fbe
AK
8008{ $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
8009$as_echo_n "checking for working memcmp... " >&6; }
ad6254c5 8010if test "${ac_cv_func_memcmp_working+set}" = set; then
ec6a6fbe 8011 $as_echo_n "(cached) " >&6
ad6254c5
AK
8012else
8013 if test "$cross_compiling" = yes; then
8014 ac_cv_func_memcmp_working=no
8015else
8016 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8017/* confdefs.h. */
8018_ACEOF
8019cat confdefs.h >>conftest.$ac_ext
8020cat >>conftest.$ac_ext <<_ACEOF
8021/* end confdefs.h. */
8a2fc586 8022$ac_includes_default
ad6254c5
AK
8023int
8024main ()
8025{
8026
8027 /* Some versions of memcmp are not 8-bit clean. */
7a197a62 8028 char c0 = '\100', c1 = '\200', c2 = '\201';
ad6254c5 8029 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
7a197a62 8030 return 1;
ad6254c5
AK
8031
8032 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
8033 or more and with at least one buffer not starting on a 4-byte boundary.
8034 William Lewis provided this test program. */
8035 {
8036 char foo[21];
8037 char bar[21];
8038 int i;
8039 for (i = 0; i < 4; i++)
8040 {
8a2fc586
AK
8041 char *a = foo + i;
8042 char *b = bar + i;
8043 strcpy (a, "--------01111111");
8044 strcpy (b, "--------10000000");
8045 if (memcmp (a, b, 16) >= 0)
7a197a62 8046 return 1;
ad6254c5 8047 }
7a197a62 8048 return 0;
ad6254c5
AK
8049 }
8050
8051 ;
8052 return 0;
8053}
8054_ACEOF
8055rm -f conftest$ac_exeext
7a197a62
AK
8056if { (ac_try="$ac_link"
8057case "(($ac_try" in
8058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8059 *) ac_try_echo=$ac_try;;
8060esac
ec6a6fbe
AK
8061eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8062$as_echo "$ac_try_echo") >&5
7a197a62 8063 (eval "$ac_link") 2>&5
ad6254c5 8064 ac_status=$?
ec6a6fbe 8065 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 8066 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
8067 { (case "(($ac_try" in
8068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8069 *) ac_try_echo=$ac_try;;
8070esac
ec6a6fbe
AK
8071eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8072$as_echo "$ac_try_echo") >&5
7a197a62 8073 (eval "$ac_try") 2>&5
ad6254c5 8074 ac_status=$?
ec6a6fbe 8075 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
8076 (exit $ac_status); }; }; then
8077 ac_cv_func_memcmp_working=yes
8078else
ec6a6fbe
AK
8079 $as_echo "$as_me: program exited with status $ac_status" >&5
8080$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8081sed 's/^/| /' conftest.$ac_ext >&5
8082
8083( exit $ac_status )
8084ac_cv_func_memcmp_working=no
8085fi
ec6a6fbe 8086rm -rf conftest.dSYM
7a197a62 8087rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 8088fi
7a197a62
AK
8089
8090
ad6254c5 8091fi
ec6a6fbe
AK
8092{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
8093$as_echo "$ac_cv_func_memcmp_working" >&6; }
7a197a62 8094test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
8a2fc586 8095 *" memcmp.$ac_objext "* ) ;;
7a197a62
AK
8096 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
8097 ;;
8a2fc586
AK
8098esac
8099
ad6254c5
AK
8100
8101
8102
8103for ac_header in stdlib.h unistd.h
8104do
ec6a6fbe 8105as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 8106if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
8107 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8108$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 8109if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 8110 $as_echo_n "(cached) " >&6
ad6254c5 8111fi
ec6a6fbe
AK
8112ac_res=`eval 'as_val=${'$as_ac_Header'}
8113 $as_echo "$as_val"'`
8114 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8115$as_echo "$ac_res" >&6; }
ad6254c5
AK
8116else
8117 # Is the header compilable?
ec6a6fbe
AK
8118{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8119$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 8120cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8121/* confdefs.h. */
8122_ACEOF
8123cat confdefs.h >>conftest.$ac_ext
8124cat >>conftest.$ac_ext <<_ACEOF
8125/* end confdefs.h. */
8126$ac_includes_default
8127#include <$ac_header>
8128_ACEOF
8129rm -f conftest.$ac_objext
7a197a62
AK
8130if { (ac_try="$ac_compile"
8131case "(($ac_try" in
8132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8133 *) ac_try_echo=$ac_try;;
8134esac
ec6a6fbe
AK
8135eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8136$as_echo "$ac_try_echo") >&5
7a197a62 8137 (eval "$ac_compile") 2>conftest.er1
ad6254c5 8138 ac_status=$?
8a2fc586
AK
8139 grep -v '^ *+' conftest.er1 >conftest.err
8140 rm -f conftest.er1
8141 cat conftest.err >&5
ec6a6fbe 8142 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8143 (exit $ac_status); } && {
8144 test -z "$ac_c_werror_flag" ||
8145 test ! -s conftest.err
8146 } && test -s conftest.$ac_objext; then
ad6254c5
AK
8147 ac_header_compiler=yes
8148else
ec6a6fbe 8149 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8150sed 's/^/| /' conftest.$ac_ext >&5
8151
7a197a62 8152 ac_header_compiler=no
ad6254c5 8153fi
7a197a62
AK
8154
8155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
8156{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8157$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
8158
8159# Is the header present?
ec6a6fbe
AK
8160{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8161$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 8162cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8163/* confdefs.h. */
8164_ACEOF
8165cat confdefs.h >>conftest.$ac_ext
8166cat >>conftest.$ac_ext <<_ACEOF
8167/* end confdefs.h. */
8168#include <$ac_header>
8169_ACEOF
7a197a62
AK
8170if { (ac_try="$ac_cpp conftest.$ac_ext"
8171case "(($ac_try" in
8172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8173 *) ac_try_echo=$ac_try;;
8174esac
ec6a6fbe
AK
8175eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8176$as_echo "$ac_try_echo") >&5
7a197a62 8177 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
8178 ac_status=$?
8179 grep -v '^ *+' conftest.er1 >conftest.err
8180 rm -f conftest.er1
8181 cat conftest.err >&5
ec6a6fbe 8182 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8183 (exit $ac_status); } >/dev/null && {
8184 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8185 test ! -s conftest.err
8186 }; then
ad6254c5
AK
8187 ac_header_preproc=yes
8188else
ec6a6fbe 8189 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8190sed 's/^/| /' conftest.$ac_ext >&5
8191
8192 ac_header_preproc=no
8193fi
7a197a62 8194
ad6254c5 8195rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
8196{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8197$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
8198
8199# So? What about this header?
8a2fc586
AK
8200case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8201 yes:no: )
ec6a6fbe
AK
8202 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8203$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8204 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8205$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 8206 ac_header_preproc=yes
ad6254c5 8207 ;;
8a2fc586 8208 no:yes:* )
ec6a6fbe
AK
8209 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8210$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8211 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8212$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8213 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8214$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8215 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8216$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8217 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8218$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8219 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8220$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 8221
ad6254c5
AK
8222 ;;
8223esac
ec6a6fbe
AK
8224{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8225$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 8226if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 8227 $as_echo_n "(cached) " >&6
ad6254c5 8228else
8a2fc586 8229 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 8230fi
ec6a6fbe
AK
8231ac_res=`eval 'as_val=${'$as_ac_Header'}
8232 $as_echo "$as_val"'`
8233 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8234$as_echo "$ac_res" >&6; }
ad6254c5
AK
8235
8236fi
ec6a6fbe
AK
8237as_val=`eval 'as_val=${'$as_ac_Header'}
8238 $as_echo "$as_val"'`
8239 if test "x$as_val" = x""yes; then
ad6254c5 8240 cat >>confdefs.h <<_ACEOF
ec6a6fbe 8241#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
8242_ACEOF
8243
8244fi
8245
8246done
8247
8248
8249for ac_func in getpagesize
8250do
ec6a6fbe
AK
8251as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8252{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8253$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 8254if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 8255 $as_echo_n "(cached) " >&6
ad6254c5
AK
8256else
8257 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8258/* confdefs.h. */
8259_ACEOF
8260cat confdefs.h >>conftest.$ac_ext
8261cat >>conftest.$ac_ext <<_ACEOF
8262/* end confdefs.h. */
8a2fc586
AK
8263/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8264 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8265#define $ac_func innocuous_$ac_func
8266
ad6254c5
AK
8267/* System header to define __stub macros and hopefully few prototypes,
8268 which can conflict with char $ac_func (); below.
8269 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8270 <limits.h> exists even on freestanding compilers. */
8a2fc586 8271
ad6254c5
AK
8272#ifdef __STDC__
8273# include <limits.h>
8274#else
8275# include <assert.h>
8276#endif
8a2fc586
AK
8277
8278#undef $ac_func
8279
7a197a62
AK
8280/* Override any GCC internal prototype to avoid an error.
8281 Use char because int might match the return type of a GCC
8282 builtin and then its argument prototype would still apply. */
ad6254c5
AK
8283#ifdef __cplusplus
8284extern "C"
ad6254c5 8285#endif
ad6254c5
AK
8286char $ac_func ();
8287/* The GNU C library defines this for functions which it implements
8288 to always fail with ENOSYS. Some functions are actually named
8289 something starting with __ and the normal name is an alias. */
7a197a62 8290#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 8291choke me
ad6254c5
AK
8292#endif
8293
8294int
8295main ()
8296{
7a197a62 8297return $ac_func ();
ad6254c5
AK
8298 ;
8299 return 0;
8300}
8301_ACEOF
8302rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
8303if { (ac_try="$ac_link"
8304case "(($ac_try" in
8305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8306 *) ac_try_echo=$ac_try;;
8307esac
ec6a6fbe
AK
8308eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8309$as_echo "$ac_try_echo") >&5
7a197a62 8310 (eval "$ac_link") 2>conftest.er1
ad6254c5 8311 ac_status=$?
8a2fc586
AK
8312 grep -v '^ *+' conftest.er1 >conftest.err
8313 rm -f conftest.er1
8314 cat conftest.err >&5
ec6a6fbe 8315 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8316 (exit $ac_status); } && {
8317 test -z "$ac_c_werror_flag" ||
8318 test ! -s conftest.err
ec6a6fbe
AK
8319 } && test -s conftest$ac_exeext && {
8320 test "$cross_compiling" = yes ||
8321 $as_test_x conftest$ac_exeext
8322 }; then
ad6254c5
AK
8323 eval "$as_ac_var=yes"
8324else
ec6a6fbe 8325 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8326sed 's/^/| /' conftest.$ac_ext >&5
8327
7a197a62 8328 eval "$as_ac_var=no"
ad6254c5 8329fi
7a197a62 8330
ec6a6fbe 8331rm -rf conftest.dSYM
25fbec5b 8332rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 8333 conftest$ac_exeext conftest.$ac_ext
ad6254c5 8334fi
ec6a6fbe
AK
8335ac_res=`eval 'as_val=${'$as_ac_var'}
8336 $as_echo "$as_val"'`
8337 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8338$as_echo "$ac_res" >&6; }
8339as_val=`eval 'as_val=${'$as_ac_var'}
8340 $as_echo "$as_val"'`
8341 if test "x$as_val" = x""yes; then
ad6254c5 8342 cat >>confdefs.h <<_ACEOF
ec6a6fbe 8343#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
8344_ACEOF
8345
8346fi
8347done
8348
ec6a6fbe
AK
8349{ $as_echo "$as_me:$LINENO: checking for working mmap" >&5
8350$as_echo_n "checking for working mmap... " >&6; }
ad6254c5 8351if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
ec6a6fbe 8352 $as_echo_n "(cached) " >&6
ad6254c5
AK
8353else
8354 if test "$cross_compiling" = yes; then
8355 ac_cv_func_mmap_fixed_mapped=no
8356else
8357 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8358/* confdefs.h. */
8359_ACEOF
8360cat confdefs.h >>conftest.$ac_ext
8361cat >>conftest.$ac_ext <<_ACEOF
8362/* end confdefs.h. */
8363$ac_includes_default
8364/* malloc might have been renamed as rpl_malloc. */
8365#undef malloc
8366
8367/* Thanks to Mike Haertel and Jim Avera for this test.
8368 Here is a matrix of mmap possibilities:
8369 mmap private not fixed
8370 mmap private fixed at somewhere currently unmapped
8371 mmap private fixed at somewhere already mapped
8372 mmap shared not fixed
8373 mmap shared fixed at somewhere currently unmapped
8374 mmap shared fixed at somewhere already mapped
8375 For private mappings, we should verify that changes cannot be read()
8376 back from the file, nor mmap's back from the file at a different
8377 address. (There have been systems where private was not correctly
8378 implemented like the infamous i386 svr4.0, and systems where the
8379 VM page cache was not coherent with the file system buffer cache
8380 like early versions of FreeBSD and possibly contemporary NetBSD.)
8381 For shared mappings, we should conversely verify that changes get
8382 propagated back to all the places they're supposed to be.
8383
8384 Grep wants private fixed already mapped.
8385 The main things grep needs to know about mmap are:
8386 * does it exist and is it safe to write into the mmap'd area
8387 * how to use it (BSD variants) */
8388
8389#include <fcntl.h>
8390#include <sys/mman.h>
8391
25fbec5b 8392#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
ad6254c5
AK
8393char *malloc ();
8394#endif
8395
8396/* This mess was copied from the GNU getpagesize.h. */
25fbec5b 8397#ifndef HAVE_GETPAGESIZE
ad6254c5 8398/* Assume that all systems that can run configure have sys/param.h. */
25fbec5b 8399# ifndef HAVE_SYS_PARAM_H
ad6254c5
AK
8400# define HAVE_SYS_PARAM_H 1
8401# endif
8402
8403# ifdef _SC_PAGESIZE
8404# define getpagesize() sysconf(_SC_PAGESIZE)
8405# else /* no _SC_PAGESIZE */
25fbec5b 8406# ifdef HAVE_SYS_PARAM_H
ad6254c5
AK
8407# include <sys/param.h>
8408# ifdef EXEC_PAGESIZE
8409# define getpagesize() EXEC_PAGESIZE
8410# else /* no EXEC_PAGESIZE */
8411# ifdef NBPG
8412# define getpagesize() NBPG * CLSIZE
8413# ifndef CLSIZE
8414# define CLSIZE 1
8415# endif /* no CLSIZE */
8416# else /* no NBPG */
8417# ifdef NBPC
8418# define getpagesize() NBPC
8419# else /* no NBPC */
8420# ifdef PAGESIZE
8421# define getpagesize() PAGESIZE
8422# endif /* PAGESIZE */
8423# endif /* no NBPC */
8424# endif /* no NBPG */
8425# endif /* no EXEC_PAGESIZE */
8426# else /* no HAVE_SYS_PARAM_H */
8427# define getpagesize() 8192 /* punt totally */
8428# endif /* no HAVE_SYS_PARAM_H */
8429# endif /* no _SC_PAGESIZE */
8430
8431#endif /* no HAVE_GETPAGESIZE */
8432
8433int
8434main ()
8435{
8436 char *data, *data2, *data3;
8437 int i, pagesize;
8438 int fd;
8439
8440 pagesize = getpagesize ();
8441
8442 /* First, make a file with some known garbage in it. */
8443 data = (char *) malloc (pagesize);
8444 if (!data)
7a197a62 8445 return 1;
ad6254c5
AK
8446 for (i = 0; i < pagesize; ++i)
8447 *(data + i) = rand ();
8448 umask (0);
8449 fd = creat ("conftest.mmap", 0600);
8450 if (fd < 0)
7a197a62 8451 return 1;
ad6254c5 8452 if (write (fd, data, pagesize) != pagesize)
7a197a62 8453 return 1;
ad6254c5
AK
8454 close (fd);
8455
8456 /* Next, try to mmap the file at a fixed address which already has
8457 something else allocated at it. If we can, also make sure that
8458 we see the same garbage. */
8459 fd = open ("conftest.mmap", O_RDWR);
8460 if (fd < 0)
7a197a62 8461 return 1;
ad6254c5
AK
8462 data2 = (char *) malloc (2 * pagesize);
8463 if (!data2)
7a197a62
AK
8464 return 1;
8465 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
ad6254c5 8466 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8a2fc586 8467 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7a197a62 8468 return 1;
ad6254c5
AK
8469 for (i = 0; i < pagesize; ++i)
8470 if (*(data + i) != *(data2 + i))
7a197a62 8471 return 1;
ad6254c5
AK
8472
8473 /* Finally, make sure that changes to the mapped area do not
8474 percolate back to the file as seen by read(). (This is a bug on
8475 some variants of i386 svr4.0.) */
8476 for (i = 0; i < pagesize; ++i)
8477 *(data2 + i) = *(data2 + i) + 1;
8478 data3 = (char *) malloc (pagesize);
8479 if (!data3)
7a197a62 8480 return 1;
ad6254c5 8481 if (read (fd, data3, pagesize) != pagesize)
7a197a62 8482 return 1;
ad6254c5
AK
8483 for (i = 0; i < pagesize; ++i)
8484 if (*(data + i) != *(data3 + i))
7a197a62 8485 return 1;
ad6254c5 8486 close (fd);
7a197a62 8487 return 0;
ad6254c5
AK
8488}
8489_ACEOF
8490rm -f conftest$ac_exeext
7a197a62
AK
8491if { (ac_try="$ac_link"
8492case "(($ac_try" in
8493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8494 *) ac_try_echo=$ac_try;;
8495esac
ec6a6fbe
AK
8496eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8497$as_echo "$ac_try_echo") >&5
7a197a62 8498 (eval "$ac_link") 2>&5
ad6254c5 8499 ac_status=$?
ec6a6fbe 8500 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 8501 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
8502 { (case "(($ac_try" in
8503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8504 *) ac_try_echo=$ac_try;;
8505esac
ec6a6fbe
AK
8506eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8507$as_echo "$ac_try_echo") >&5
7a197a62 8508 (eval "$ac_try") 2>&5
ad6254c5 8509 ac_status=$?
ec6a6fbe 8510 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
8511 (exit $ac_status); }; }; then
8512 ac_cv_func_mmap_fixed_mapped=yes
8513else
ec6a6fbe
AK
8514 $as_echo "$as_me: program exited with status $ac_status" >&5
8515$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8516sed 's/^/| /' conftest.$ac_ext >&5
8517
8518( exit $ac_status )
8519ac_cv_func_mmap_fixed_mapped=no
8520fi
ec6a6fbe 8521rm -rf conftest.dSYM
7a197a62 8522rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 8523fi
7a197a62
AK
8524
8525
ad6254c5 8526fi
ec6a6fbe
AK
8527{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8528$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
ad6254c5
AK
8529if test $ac_cv_func_mmap_fixed_mapped = yes; then
8530
8531cat >>confdefs.h <<\_ACEOF
8532#define HAVE_MMAP 1
8533_ACEOF
8534
8535fi
8536rm -f conftest.mmap
8537
ec6a6fbe
AK
8538{ $as_echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
8539$as_echo_n "checking whether stat accepts an empty string... " >&6; }
ad6254c5 8540if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
ec6a6fbe 8541 $as_echo_n "(cached) " >&6
ad6254c5
AK
8542else
8543 if test "$cross_compiling" = yes; then
8544 ac_cv_func_stat_empty_string_bug=yes
8545else
8546 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8547/* confdefs.h. */
8548_ACEOF
8549cat confdefs.h >>conftest.$ac_ext
8550cat >>conftest.$ac_ext <<_ACEOF
8551/* end confdefs.h. */
8552$ac_includes_default
8553int
8554main ()
8555{
8556struct stat sbuf;
7a197a62 8557 return stat ("", &sbuf) == 0;
ad6254c5
AK
8558 ;
8559 return 0;
8560}
8561_ACEOF
8562rm -f conftest$ac_exeext
7a197a62
AK
8563if { (ac_try="$ac_link"
8564case "(($ac_try" in
8565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8566 *) ac_try_echo=$ac_try;;
8567esac
ec6a6fbe
AK
8568eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8569$as_echo "$ac_try_echo") >&5
7a197a62 8570 (eval "$ac_link") 2>&5
ad6254c5 8571 ac_status=$?
ec6a6fbe 8572 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 8573 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
8574 { (case "(($ac_try" in
8575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8576 *) ac_try_echo=$ac_try;;
8577esac
ec6a6fbe
AK
8578eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8579$as_echo "$ac_try_echo") >&5
7a197a62 8580 (eval "$ac_try") 2>&5
ad6254c5 8581 ac_status=$?
ec6a6fbe 8582 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 8583 (exit $ac_status); }; }; then
7a197a62 8584 ac_cv_func_stat_empty_string_bug=no
ad6254c5 8585else
ec6a6fbe
AK
8586 $as_echo "$as_me: program exited with status $ac_status" >&5
8587$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8588sed 's/^/| /' conftest.$ac_ext >&5
8589
8590( exit $ac_status )
7a197a62 8591ac_cv_func_stat_empty_string_bug=yes
ad6254c5 8592fi
ec6a6fbe 8593rm -rf conftest.dSYM
7a197a62 8594rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 8595fi
7a197a62
AK
8596
8597
ad6254c5 8598fi
ec6a6fbe
AK
8599{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
8600$as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
ad6254c5 8601if test $ac_cv_func_stat_empty_string_bug = yes; then
7a197a62 8602 case " $LIBOBJS " in
8a2fc586 8603 *" stat.$ac_objext "* ) ;;
7a197a62
AK
8604 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
8605 ;;
8a2fc586
AK
8606esac
8607
ad6254c5
AK
8608
8609cat >>confdefs.h <<_ACEOF
8610#define HAVE_STAT_EMPTY_STRING_BUG 1
8611_ACEOF
8612
8613fi
8614
ec6a6fbe
AK
8615{ $as_echo "$as_me:$LINENO: checking for working strtod" >&5
8616$as_echo_n "checking for working strtod... " >&6; }
ad6254c5 8617if test "${ac_cv_func_strtod+set}" = set; then
ec6a6fbe 8618 $as_echo_n "(cached) " >&6
ad6254c5
AK
8619else
8620 if test "$cross_compiling" = yes; then
8621 ac_cv_func_strtod=no
8622else
8623 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8624/* confdefs.h. */
8625_ACEOF
8626cat confdefs.h >>conftest.$ac_ext
8627cat >>conftest.$ac_ext <<_ACEOF
8628/* end confdefs.h. */
8629
7a197a62
AK
8630$ac_includes_default
8631#ifndef strtod
ad6254c5 8632double strtod ();
7a197a62 8633#endif
ad6254c5
AK
8634int
8635main()
8636{
8637 {
8638 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
8639 char *string = " +69";
8640 char *term;
8641 double value;
8642 value = strtod (string, &term);
8643 if (value != 69 || term != (string + 4))
7a197a62 8644 return 1;
ad6254c5
AK
8645 }
8646
8647 {
8648 /* Under Solaris 2.4, strtod returns the wrong value for the
8649 terminating character under some conditions. */
8650 char *string = "NaN";
8651 char *term;
8652 strtod (string, &term);
8653 if (term != string && *(term - 1) == 0)
7a197a62 8654 return 1;
ad6254c5 8655 }
7a197a62 8656 return 0;
ad6254c5
AK
8657}
8658
8659_ACEOF
8660rm -f conftest$ac_exeext
7a197a62
AK
8661if { (ac_try="$ac_link"
8662case "(($ac_try" in
8663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8664 *) ac_try_echo=$ac_try;;
8665esac
ec6a6fbe
AK
8666eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8667$as_echo "$ac_try_echo") >&5
7a197a62 8668 (eval "$ac_link") 2>&5
ad6254c5 8669 ac_status=$?
ec6a6fbe 8670 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 8671 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
8672 { (case "(($ac_try" in
8673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8674 *) ac_try_echo=$ac_try;;
8675esac
ec6a6fbe
AK
8676eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8677$as_echo "$ac_try_echo") >&5
7a197a62 8678 (eval "$ac_try") 2>&5
ad6254c5 8679 ac_status=$?
ec6a6fbe 8680 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
8681 (exit $ac_status); }; }; then
8682 ac_cv_func_strtod=yes
8683else
ec6a6fbe
AK
8684 $as_echo "$as_me: program exited with status $ac_status" >&5
8685$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8686sed 's/^/| /' conftest.$ac_ext >&5
8687
8688( exit $ac_status )
8689ac_cv_func_strtod=no
8690fi
ec6a6fbe 8691rm -rf conftest.dSYM
7a197a62 8692rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 8693fi
7a197a62
AK
8694
8695
ad6254c5 8696fi
ec6a6fbe
AK
8697{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
8698$as_echo "$ac_cv_func_strtod" >&6; }
ad6254c5 8699if test $ac_cv_func_strtod = no; then
7a197a62 8700 case " $LIBOBJS " in
8a2fc586 8701 *" strtod.$ac_objext "* ) ;;
7a197a62
AK
8702 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
8703 ;;
8a2fc586
AK
8704esac
8705
ec6a6fbe
AK
8706{ $as_echo "$as_me:$LINENO: checking for pow" >&5
8707$as_echo_n "checking for pow... " >&6; }
ad6254c5 8708if test "${ac_cv_func_pow+set}" = set; then
ec6a6fbe 8709 $as_echo_n "(cached) " >&6
ad6254c5
AK
8710else
8711 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8712/* confdefs.h. */
8713_ACEOF
8714cat confdefs.h >>conftest.$ac_ext
8715cat >>conftest.$ac_ext <<_ACEOF
8716/* end confdefs.h. */
8a2fc586
AK
8717/* Define pow to an innocuous variant, in case <limits.h> declares pow.
8718 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8719#define pow innocuous_pow
8720
ad6254c5
AK
8721/* System header to define __stub macros and hopefully few prototypes,
8722 which can conflict with char pow (); below.
8723 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8724 <limits.h> exists even on freestanding compilers. */
8a2fc586 8725
ad6254c5
AK
8726#ifdef __STDC__
8727# include <limits.h>
8728#else
8729# include <assert.h>
8730#endif
8a2fc586
AK
8731
8732#undef pow
8733
7a197a62
AK
8734/* Override any GCC internal prototype to avoid an error.
8735 Use char because int might match the return type of a GCC
8736 builtin and then its argument prototype would still apply. */
ad6254c5
AK
8737#ifdef __cplusplus
8738extern "C"
ad6254c5 8739#endif
ad6254c5
AK
8740char pow ();
8741/* The GNU C library defines this for functions which it implements
8742 to always fail with ENOSYS. Some functions are actually named
8743 something starting with __ and the normal name is an alias. */
7a197a62 8744#if defined __stub_pow || defined __stub___pow
ad6254c5 8745choke me
ad6254c5
AK
8746#endif
8747
8748int
8749main ()
8750{
7a197a62 8751return pow ();
ad6254c5
AK
8752 ;
8753 return 0;
8754}
8755_ACEOF
8756rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
8757if { (ac_try="$ac_link"
8758case "(($ac_try" in
8759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8760 *) ac_try_echo=$ac_try;;
8761esac
ec6a6fbe
AK
8762eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8763$as_echo "$ac_try_echo") >&5
7a197a62 8764 (eval "$ac_link") 2>conftest.er1
ad6254c5 8765 ac_status=$?
8a2fc586
AK
8766 grep -v '^ *+' conftest.er1 >conftest.err
8767 rm -f conftest.er1
8768 cat conftest.err >&5
ec6a6fbe 8769 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8770 (exit $ac_status); } && {
8771 test -z "$ac_c_werror_flag" ||
8772 test ! -s conftest.err
ec6a6fbe
AK
8773 } && test -s conftest$ac_exeext && {
8774 test "$cross_compiling" = yes ||
8775 $as_test_x conftest$ac_exeext
8776 }; then
ad6254c5
AK
8777 ac_cv_func_pow=yes
8778else
ec6a6fbe 8779 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8780sed 's/^/| /' conftest.$ac_ext >&5
8781
7a197a62 8782 ac_cv_func_pow=no
ad6254c5 8783fi
7a197a62 8784
ec6a6fbe 8785rm -rf conftest.dSYM
25fbec5b 8786rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 8787 conftest$ac_exeext conftest.$ac_ext
ad6254c5 8788fi
ec6a6fbe
AK
8789{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
8790$as_echo "$ac_cv_func_pow" >&6; }
ad6254c5
AK
8791
8792if test $ac_cv_func_pow = no; then
ec6a6fbe
AK
8793 { $as_echo "$as_me:$LINENO: checking for pow in -lm" >&5
8794$as_echo_n "checking for pow in -lm... " >&6; }
ad6254c5 8795if test "${ac_cv_lib_m_pow+set}" = set; then
ec6a6fbe 8796 $as_echo_n "(cached) " >&6
ad6254c5
AK
8797else
8798 ac_check_lib_save_LIBS=$LIBS
8799LIBS="-lm $LIBS"
8800cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8801/* confdefs.h. */
8802_ACEOF
8803cat confdefs.h >>conftest.$ac_ext
8804cat >>conftest.$ac_ext <<_ACEOF
8805/* end confdefs.h. */
8806
7a197a62
AK
8807/* Override any GCC internal prototype to avoid an error.
8808 Use char because int might match the return type of a GCC
8809 builtin and then its argument prototype would still apply. */
ad6254c5
AK
8810#ifdef __cplusplus
8811extern "C"
8812#endif
ad6254c5
AK
8813char pow ();
8814int
8815main ()
8816{
7a197a62 8817return pow ();
ad6254c5
AK
8818 ;
8819 return 0;
8820}
8821_ACEOF
8822rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
8823if { (ac_try="$ac_link"
8824case "(($ac_try" in
8825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8826 *) ac_try_echo=$ac_try;;
8827esac
ec6a6fbe
AK
8828eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8829$as_echo "$ac_try_echo") >&5
7a197a62 8830 (eval "$ac_link") 2>conftest.er1
ad6254c5 8831 ac_status=$?
8a2fc586
AK
8832 grep -v '^ *+' conftest.er1 >conftest.err
8833 rm -f conftest.er1
8834 cat conftest.err >&5
ec6a6fbe 8835 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8836 (exit $ac_status); } && {
8837 test -z "$ac_c_werror_flag" ||
8838 test ! -s conftest.err
ec6a6fbe
AK
8839 } && test -s conftest$ac_exeext && {
8840 test "$cross_compiling" = yes ||
8841 $as_test_x conftest$ac_exeext
8842 }; then
ad6254c5
AK
8843 ac_cv_lib_m_pow=yes
8844else
ec6a6fbe 8845 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8846sed 's/^/| /' conftest.$ac_ext >&5
8847
7a197a62 8848 ac_cv_lib_m_pow=no
ad6254c5 8849fi
7a197a62 8850
ec6a6fbe 8851rm -rf conftest.dSYM
25fbec5b 8852rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 8853 conftest$ac_exeext conftest.$ac_ext
ad6254c5 8854LIBS=$ac_check_lib_save_LIBS
d0191583 8855fi
ec6a6fbe
AK
8856{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
8857$as_echo "$ac_cv_lib_m_pow" >&6; }
8858if test "x$ac_cv_lib_m_pow" = x""yes; then
d0191583
JM
8859 POW_LIB=-lm
8860else
ec6a6fbe
AK
8861 { $as_echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
8862$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
d0191583 8863fi
72b2cb61 8864
d0191583 8865fi
72b2cb61 8866
ad6254c5
AK
8867fi
8868
ad6254c5 8869
d0191583
JM
8870for ac_func in vprintf
8871do
ec6a6fbe
AK
8872as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8873{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8874$as_echo_n "checking for $ac_func... " >&6; }
d0191583 8875if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 8876 $as_echo_n "(cached) " >&6
ad6254c5 8877else
d0191583
JM
8878 cat >conftest.$ac_ext <<_ACEOF
8879/* confdefs.h. */
8880_ACEOF
8881cat confdefs.h >>conftest.$ac_ext
8882cat >>conftest.$ac_ext <<_ACEOF
8883/* end confdefs.h. */
8884/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8885 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8886#define $ac_func innocuous_$ac_func
7a197a62 8887
d0191583
JM
8888/* System header to define __stub macros and hopefully few prototypes,
8889 which can conflict with char $ac_func (); below.
8890 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8891 <limits.h> exists even on freestanding compilers. */
ad6254c5 8892
d0191583
JM
8893#ifdef __STDC__
8894# include <limits.h>
8895#else
8896# include <assert.h>
8897#endif
ad6254c5 8898
d0191583 8899#undef $ac_func
72b2cb61 8900
d0191583
JM
8901/* Override any GCC internal prototype to avoid an error.
8902 Use char because int might match the return type of a GCC
8903 builtin and then its argument prototype would still apply. */
8904#ifdef __cplusplus
8905extern "C"
8906#endif
8907char $ac_func ();
8908/* The GNU C library defines this for functions which it implements
8909 to always fail with ENOSYS. Some functions are actually named
8910 something starting with __ and the normal name is an alias. */
8911#if defined __stub_$ac_func || defined __stub___$ac_func
8912choke me
8913#endif
8914
8915int
8916main ()
8917{
8918return $ac_func ();
8919 ;
8920 return 0;
8921}
72b2cb61 8922_ACEOF
d0191583
JM
8923rm -f conftest.$ac_objext conftest$ac_exeext
8924if { (ac_try="$ac_link"
8925case "(($ac_try" in
8926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8927 *) ac_try_echo=$ac_try;;
8928esac
ec6a6fbe
AK
8929eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8930$as_echo "$ac_try_echo") >&5
d0191583
JM
8931 (eval "$ac_link") 2>conftest.er1
8932 ac_status=$?
8933 grep -v '^ *+' conftest.er1 >conftest.err
8934 rm -f conftest.er1
8935 cat conftest.err >&5
ec6a6fbe 8936 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
8937 (exit $ac_status); } && {
8938 test -z "$ac_c_werror_flag" ||
8939 test ! -s conftest.err
ec6a6fbe
AK
8940 } && test -s conftest$ac_exeext && {
8941 test "$cross_compiling" = yes ||
8942 $as_test_x conftest$ac_exeext
8943 }; then
d0191583
JM
8944 eval "$as_ac_var=yes"
8945else
ec6a6fbe 8946 $as_echo "$as_me: failed program was:" >&5
d0191583 8947sed 's/^/| /' conftest.$ac_ext >&5
72b2cb61 8948
d0191583 8949 eval "$as_ac_var=no"
ad6254c5
AK
8950fi
8951
ec6a6fbe 8952rm -rf conftest.dSYM
d0191583
JM
8953rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8954 conftest$ac_exeext conftest.$ac_ext
7a197a62 8955fi
ec6a6fbe
AK
8956ac_res=`eval 'as_val=${'$as_ac_var'}
8957 $as_echo "$as_val"'`
8958 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8959$as_echo "$ac_res" >&6; }
8960as_val=`eval 'as_val=${'$as_ac_var'}
8961 $as_echo "$as_val"'`
8962 if test "x$as_val" = x""yes; then
d0191583 8963 cat >>confdefs.h <<_ACEOF
ec6a6fbe 8964#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
d0191583 8965_ACEOF
7a197a62 8966
ec6a6fbe
AK
8967{ $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
8968$as_echo_n "checking for _doprnt... " >&6; }
d0191583 8969if test "${ac_cv_func__doprnt+set}" = set; then
ec6a6fbe 8970 $as_echo_n "(cached) " >&6
ad6254c5 8971else
d0191583
JM
8972 cat >conftest.$ac_ext <<_ACEOF
8973/* confdefs.h. */
8974_ACEOF
8975cat confdefs.h >>conftest.$ac_ext
8976cat >>conftest.$ac_ext <<_ACEOF
8977/* end confdefs.h. */
8978/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
8979 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8980#define _doprnt innocuous__doprnt
7a197a62 8981
d0191583
JM
8982/* System header to define __stub macros and hopefully few prototypes,
8983 which can conflict with char _doprnt (); below.
8984 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8985 <limits.h> exists even on freestanding compilers. */
ad6254c5 8986
d0191583
JM
8987#ifdef __STDC__
8988# include <limits.h>
8989#else
8990# include <assert.h>
8991#endif
72b2cb61 8992
d0191583
JM
8993#undef _doprnt
8994
8995/* Override any GCC internal prototype to avoid an error.
8996 Use char because int might match the return type of a GCC
8997 builtin and then its argument prototype would still apply. */
8998#ifdef __cplusplus
8999extern "C"
9000#endif
9001char _doprnt ();
9002/* The GNU C library defines this for functions which it implements
9003 to always fail with ENOSYS. Some functions are actually named
9004 something starting with __ and the normal name is an alias. */
9005#if defined __stub__doprnt || defined __stub____doprnt
9006choke me
9007#endif
9008
9009int
9010main ()
9011{
9012return _doprnt ();
9013 ;
9014 return 0;
9015}
72b2cb61 9016_ACEOF
d0191583
JM
9017rm -f conftest.$ac_objext conftest$ac_exeext
9018if { (ac_try="$ac_link"
9019case "(($ac_try" in
9020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9021 *) ac_try_echo=$ac_try;;
9022esac
ec6a6fbe
AK
9023eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9024$as_echo "$ac_try_echo") >&5
d0191583
JM
9025 (eval "$ac_link") 2>conftest.er1
9026 ac_status=$?
9027 grep -v '^ *+' conftest.er1 >conftest.err
9028 rm -f conftest.er1
9029 cat conftest.err >&5
ec6a6fbe 9030 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
9031 (exit $ac_status); } && {
9032 test -z "$ac_c_werror_flag" ||
9033 test ! -s conftest.err
ec6a6fbe
AK
9034 } && test -s conftest$ac_exeext && {
9035 test "$cross_compiling" = yes ||
9036 $as_test_x conftest$ac_exeext
9037 }; then
d0191583
JM
9038 ac_cv_func__doprnt=yes
9039else
ec6a6fbe 9040 $as_echo "$as_me: failed program was:" >&5
d0191583 9041sed 's/^/| /' conftest.$ac_ext >&5
72b2cb61 9042
d0191583 9043 ac_cv_func__doprnt=no
ad6254c5
AK
9044fi
9045
ec6a6fbe 9046rm -rf conftest.dSYM
d0191583
JM
9047rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9048 conftest$ac_exeext conftest.$ac_ext
7a197a62 9049fi
ec6a6fbe
AK
9050{ $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
9051$as_echo "$ac_cv_func__doprnt" >&6; }
9052if test "x$ac_cv_func__doprnt" = x""yes; then
7a197a62 9053
d0191583
JM
9054cat >>confdefs.h <<\_ACEOF
9055#define HAVE_DOPRNT 1
9056_ACEOF
ad6254c5 9057
7a197a62
AK
9058fi
9059
d0191583
JM
9060fi
9061done
8b1a3214 9062
ad6254c5 9063
7a197a62 9064
9c961554 9065################################################################################
ec6a6fbe
AK
9066{ $as_echo "$as_me:$LINENO: checking whether to use static linking" >&5
9067$as_echo_n "checking whether to use static linking... " >&6; }
9c961554
MB
9068# Check whether --enable-static_link was given.
9069if test "${enable_static_link+set}" = set; then
9070 enableval=$enable_static_link; STATIC_LINK=$enableval
9071else
9072 STATIC_LINK=no
9073fi
9074
ec6a6fbe
AK
9075{ $as_echo "$as_me:$LINENO: result: $STATIC_LINK" >&5
9076$as_echo "$STATIC_LINK" >&6; }
9c961554 9077
d0191583 9078################################################################################
ad6254c5 9079
ad6254c5
AK
9080
9081################################################################################
ec6a6fbe
AK
9082{ $as_echo "$as_me:$LINENO: checking file owner" >&5
9083$as_echo_n "checking file owner... " >&6; }
39dabc84 9084OWNER=""
d0191583
JM
9085
9086
9087# Check whether --with-user was given.
9088if test "${with_user+set}" = set; then
9089 withval=$with_user; OWNER="$withval"
7a197a62
AK
9090fi
9091
ec6a6fbe
AK
9092{ $as_echo "$as_me:$LINENO: result: $OWNER" >&5
9093$as_echo "$OWNER" >&6; }
ad6254c5 9094
d0191583
JM
9095if test x$OWNER != x; then
9096 OWNER="-o $OWNER"
ad6254c5
AK
9097fi
9098
9099################################################################################
ec6a6fbe
AK
9100{ $as_echo "$as_me:$LINENO: checking group owner" >&5
9101$as_echo_n "checking group owner... " >&6; }
39dabc84 9102GROUP=""
ad6254c5 9103
d0191583
JM
9104# Check whether --with-group was given.
9105if test "${with_group+set}" = set; then
9106 withval=$with_group; GROUP="$withval"
7a197a62
AK
9107fi
9108
ec6a6fbe
AK
9109{ $as_echo "$as_me:$LINENO: result: $GROUP" >&5
9110$as_echo "$GROUP" >&6; }
d0191583
JM
9111
9112if test x$GROUP != x; then
9113 GROUP="-g $GROUP"
9114fi
ad6254c5 9115
24bbc4d7 9116################################################################################
ec6a6fbe
AK
9117{ $as_echo "$as_me:$LINENO: checking device node uid" >&5
9118$as_echo_n "checking device node uid... " >&6; }
24bbc4d7
AK
9119
9120
9121# Check whether --with-device-uid was given.
9122if test "${with_device_uid+set}" = set; then
9123 withval=$with_device_uid; DM_DEVICE_UID="$withval"
9124else
9125 DM_DEVICE_UID="0"
9126fi
9127
ec6a6fbe
AK
9128{ $as_echo "$as_me:$LINENO: result: $DM_DEVICE_UID" >&5
9129$as_echo "$DM_DEVICE_UID" >&6; }
24bbc4d7
AK
9130
9131################################################################################
ec6a6fbe
AK
9132{ $as_echo "$as_me:$LINENO: checking device node gid" >&5
9133$as_echo_n "checking device node gid... " >&6; }
24bbc4d7
AK
9134
9135
9136# Check whether --with-device-gid was given.
9137if test "${with_device_gid+set}" = set; then
9138 withval=$with_device_gid; DM_DEVICE_GID="$withval"
9139else
9140 DM_DEVICE_GID="0"
9141fi
9142
ec6a6fbe
AK
9143{ $as_echo "$as_me:$LINENO: result: $DM_DEVICE_GID" >&5
9144$as_echo "$DM_DEVICE_GID" >&6; }
24bbc4d7 9145
93bd259b 9146################################################################################
ec6a6fbe
AK
9147{ $as_echo "$as_me:$LINENO: checking device node mode" >&5
9148$as_echo_n "checking device node mode... " >&6; }
93bd259b
AK
9149
9150
9151# Check whether --with-device-mode was given.
9152if test "${with_device_mode+set}" = set; then
9153 withval=$with_device_mode; DM_DEVICE_MODE="$withval"
9154else
9155 DM_DEVICE_MODE="0600"
9156fi
9157
ec6a6fbe
AK
9158{ $as_echo "$as_me:$LINENO: result: $DM_DEVICE_MODE" >&5
9159$as_echo "$DM_DEVICE_MODE" >&6; }
93bd259b 9160
ad6254c5 9161################################################################################
ec6a6fbe
AK
9162{ $as_echo "$as_me:$LINENO: checking whether to enable lvm1 fallback" >&5
9163$as_echo_n "checking whether to enable lvm1 fallback... " >&6; }
d0191583
JM
9164# Check whether --enable-lvm1_fallback was given.
9165if test "${enable_lvm1_fallback+set}" = set; then
9166 enableval=$enable_lvm1_fallback; LVM1_FALLBACK=$enableval
9167else
9168 LVM1_FALLBACK=no
7a197a62
AK
9169fi
9170
ec6a6fbe
AK
9171{ $as_echo "$as_me:$LINENO: result: $LVM1_FALLBACK" >&5
9172$as_echo "$LVM1_FALLBACK" >&6; }
ad6254c5 9173
d0191583 9174if test x$LVM1_FALLBACK = xyes; then
72b2cb61
AK
9175
9176cat >>confdefs.h <<\_ACEOF
d0191583 9177#define LVM1_FALLBACK 1
72b2cb61
AK
9178_ACEOF
9179
ad6254c5
AK
9180fi
9181
9182################################################################################
ec6a6fbe
AK
9183{ $as_echo "$as_me:$LINENO: checking whether to include support for lvm1 metadata" >&5
9184$as_echo_n "checking whether to include support for lvm1 metadata... " >&6; }
d0191583
JM
9185
9186# Check whether --with-lvm1 was given.
9187if test "${with_lvm1+set}" = set; then
9188 withval=$with_lvm1; LVM1="$withval"
9189else
9190 LVM1="internal"
7a197a62
AK
9191fi
9192
ec6a6fbe
AK
9193{ $as_echo "$as_me:$LINENO: result: $LVM1" >&5
9194$as_echo "$LVM1" >&6; }
ad6254c5 9195
d0191583 9196if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ];
ec6a6fbe 9197 then { { $as_echo "$as_me:$LINENO: error: --with-lvm1 parameter invalid
d0191583 9198" >&5
ec6a6fbe 9199$as_echo "$as_me: error: --with-lvm1 parameter invalid
d0191583
JM
9200" >&2;}
9201 { (exit 1); exit 1; }; }
9202fi;
9203
9204if test x$LVM1 = xinternal; then
72b2cb61
AK
9205
9206cat >>confdefs.h <<\_ACEOF
d0191583 9207#define LVM1_INTERNAL 1
72b2cb61
AK
9208_ACEOF
9209
ad6254c5
AK
9210fi
9211
9212################################################################################
ec6a6fbe
AK
9213{ $as_echo "$as_me:$LINENO: checking whether to include support for GFS pool metadata" >&5
9214$as_echo_n "checking whether to include support for GFS pool metadata... " >&6; }
d0191583
JM
9215
9216# Check whether --with-pool was given.
9217if test "${with_pool+set}" = set; then
9218 withval=$with_pool; POOL="$withval"
ad6254c5 9219else
d0191583 9220 POOL="internal"
7a197a62
AK
9221fi
9222
ec6a6fbe
AK
9223{ $as_echo "$as_me:$LINENO: result: $POOL" >&5
9224$as_echo "$POOL" >&6; }
ad6254c5 9225
d0191583 9226if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ];
ec6a6fbe 9227 then { { $as_echo "$as_me:$LINENO: error: --with-pool parameter invalid
d0191583 9228" >&5
ec6a6fbe 9229$as_echo "$as_me: error: --with-pool parameter invalid
d0191583
JM
9230" >&2;}
9231 { (exit 1); exit 1; }; }
9232fi;
7a197a62 9233
d0191583
JM
9234if test x$POOL = xinternal; then
9235
9236cat >>confdefs.h <<\_ACEOF
9237#define POOL_INTERNAL 1
9238_ACEOF
9239
9240fi
ad6254c5 9241
06f62ad1 9242################################################################################
ec6a6fbe
AK
9243{ $as_echo "$as_me:$LINENO: checking whether to include support for cluster locking" >&5
9244$as_echo_n "checking whether to include support for cluster locking... " >&6; }
d0191583
JM
9245
9246# Check whether --with-cluster was given.
9247if test "${with_cluster+set}" = set; then
9248 withval=$with_cluster; CLUSTER="$withval"
7a197a62
AK
9249fi
9250
ec6a6fbe
AK
9251{ $as_echo "$as_me:$LINENO: result: $CLUSTER" >&5
9252$as_echo "$CLUSTER" >&6; }
06f62ad1 9253
d0191583 9254if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ];
ec6a6fbe 9255 then { { $as_echo "$as_me:$LINENO: error: --with-cluster parameter invalid
06f62ad1 9256" >&5
ec6a6fbe 9257$as_echo "$as_me: error: --with-cluster parameter invalid
06f62ad1
AK
9258" >&2;}
9259 { (exit 1); exit 1; }; }
d0191583 9260fi;
06f62ad1 9261
d0191583 9262if test x$CLUSTER = xinternal; then
72b2cb61
AK
9263
9264cat >>confdefs.h <<\_ACEOF
d0191583 9265#define CLUSTER_LOCKING_INTERNAL 1
72b2cb61
AK
9266_ACEOF
9267
15d91f5a 9268fi
ad6254c5
AK
9269
9270################################################################################
ec6a6fbe
AK
9271{ $as_echo "$as_me:$LINENO: checking whether to include snapshots" >&5
9272$as_echo_n "checking whether to include snapshots... " >&6; }
ad6254c5 9273
d0191583
JM
9274# Check whether --with-snapshots was given.
9275if test "${with_snapshots+set}" = set; then
9276 withval=$with_snapshots; SNAPSHOTS="$withval"
9277else
9278 SNAPSHOTS="internal"
ad6254c5
AK
9279fi
9280
ec6a6fbe
AK
9281{ $as_echo "$as_me:$LINENO: result: $SNAPSHOTS" >&5
9282$as_echo "$SNAPSHOTS" >&6; }
ad6254c5 9283
d0191583 9284if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ];
ec6a6fbe 9285 then { { $as_echo "$as_me:$LINENO: error: --with-snapshots parameter invalid
d0191583 9286" >&5
ec6a6fbe 9287$as_echo "$as_me: error: --with-snapshots parameter invalid
d0191583
JM
9288" >&2;}
9289 { (exit 1); exit 1; }; }
9290fi;
9291
9292if test x$SNAPSHOTS = xinternal; then
9293
9294cat >>confdefs.h <<\_ACEOF
9295#define SNAPSHOT_INTERNAL 1
9296_ACEOF
ad6254c5 9297
ad6254c5 9298fi
7a197a62 9299
d0191583 9300################################################################################
ec6a6fbe
AK
9301{ $as_echo "$as_me:$LINENO: checking whether to include mirrors" >&5
9302$as_echo_n "checking whether to include mirrors... " >&6; }
d0191583
JM
9303
9304# Check whether --with-mirrors was given.
9305if test "${with_mirrors+set}" = set; then
9306 withval=$with_mirrors; MIRRORS="$withval"
9307else
9308 MIRRORS="internal"
ad6254c5 9309fi
ad6254c5 9310
ec6a6fbe
AK
9311{ $as_echo "$as_me:$LINENO: result: $MIRRORS" >&5
9312$as_echo "$MIRRORS" >&6; }
ad6254c5 9313
d0191583 9314if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ];
ec6a6fbe 9315 then { { $as_echo "$as_me:$LINENO: error: --with-mirrors parameter invalid
d0191583 9316" >&5
ec6a6fbe 9317$as_echo "$as_me: error: --with-mirrors parameter invalid
d0191583
JM
9318" >&2;}
9319 { (exit 1); exit 1; }; }
9320fi;
ad6254c5 9321
d0191583 9322if test x$MIRRORS = xinternal; then
ad6254c5 9323
d0191583
JM
9324cat >>confdefs.h <<\_ACEOF
9325#define MIRRORED_INTERNAL 1
ad6254c5 9326_ACEOF
8a2fc586 9327
d0191583 9328fi
8a2fc586 9329
d0191583 9330################################################################################
ec6a6fbe
AK
9331{ $as_echo "$as_me:$LINENO: checking whether to enable readline" >&5
9332$as_echo_n "checking whether to enable readline... " >&6; }
d0191583
JM
9333# Check whether --enable-readline was given.
9334if test "${enable_readline+set}" = set; then
9335 enableval=$enable_readline; READLINE=$enableval
9336else
06e459df 9337 READLINE=maybe
d0191583 9338fi
8a2fc586 9339
ec6a6fbe
AK
9340{ $as_echo "$as_me:$LINENO: result: $READLINE" >&5
9341$as_echo "$READLINE" >&6; }
8a2fc586 9342
d0191583 9343################################################################################
ec6a6fbe
AK
9344{ $as_echo "$as_me:$LINENO: checking whether to enable realtime support" >&5
9345$as_echo_n "checking whether to enable realtime support... " >&6; }
d0191583
JM
9346# Check whether --enable-realtime was given.
9347if test "${enable_realtime+set}" = set; then
9348 enableval=$enable_realtime; REALTIME=$enableval
ad6254c5 9349fi
ad6254c5 9350
ec6a6fbe
AK
9351{ $as_echo "$as_me:$LINENO: result: $REALTIME" >&5
9352$as_echo "$REALTIME" >&6; }
d0191583
JM
9353
9354################################################################################
90c80887 9355pkg_config_init() {
e2997b73
AK
9356
9357
9358if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
9359 if test -n "$ac_tool_prefix"; then
9360 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
9361set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
9362{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9363$as_echo_n "checking for $ac_word... " >&6; }
9364if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9365 $as_echo_n "(cached) " >&6
9366else
9367 case $PKG_CONFIG in
9368 [\\/]* | ?:[\\/]*)
9369 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9370 ;;
9371 *)
9372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9373for as_dir in $PATH
9374do
9375 IFS=$as_save_IFS
9376 test -z "$as_dir" && as_dir=.
9377 for ac_exec_ext in '' $ac_executable_extensions; do
9378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9379 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9380 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9381 break 2
9382 fi
9383done
9384done
9385IFS=$as_save_IFS
9386
9387 ;;
9388esac
9389fi
9390PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9391if test -n "$PKG_CONFIG"; then
9392 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9393$as_echo "$PKG_CONFIG" >&6; }
9394else
9395 { $as_echo "$as_me:$LINENO: result: no" >&5
9396$as_echo "no" >&6; }
9397fi
9398
9399
9400fi
9401if test -z "$ac_cv_path_PKG_CONFIG"; then
9402 ac_pt_PKG_CONFIG=$PKG_CONFIG
9403 # Extract the first word of "pkg-config", so it can be a program name with args.
9404set dummy pkg-config; ac_word=$2
9405{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9406$as_echo_n "checking for $ac_word... " >&6; }
9407if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
9408 $as_echo_n "(cached) " >&6
9409else
9410 case $ac_pt_PKG_CONFIG in
9411 [\\/]* | ?:[\\/]*)
9412 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
9413 ;;
9414 *)
9415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9416for as_dir in $PATH
9417do
9418 IFS=$as_save_IFS
9419 test -z "$as_dir" && as_dir=.
9420 for ac_exec_ext in '' $ac_executable_extensions; do
9421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9422 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9423 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9424 break 2
9425 fi
9426done
9427done
9428IFS=$as_save_IFS
9429
9430 ;;
9431esac
9432fi
9433ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
9434if test -n "$ac_pt_PKG_CONFIG"; then
9435 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
9436$as_echo "$ac_pt_PKG_CONFIG" >&6; }
9437else
9438 { $as_echo "$as_me:$LINENO: result: no" >&5
9439$as_echo "no" >&6; }
9440fi
9441
9442 if test "x$ac_pt_PKG_CONFIG" = x; then
9443 PKG_CONFIG=""
9444 else
9445 case $cross_compiling:$ac_tool_warned in
9446yes:)
9447{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9448$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9449ac_tool_warned=yes ;;
9450esac
9451 PKG_CONFIG=$ac_pt_PKG_CONFIG
9452 fi
9453else
9454 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
9455fi
9456
9457fi
9458if test -n "$PKG_CONFIG"; then
9459 _pkg_min_version=0.9.0
9460 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
9461$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
9462 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
9463 { $as_echo "$as_me:$LINENO: result: yes" >&5
9464$as_echo "yes" >&6; }
9465 else
9466 { $as_echo "$as_me:$LINENO: result: no" >&5
9467$as_echo "no" >&6; }
9468 PKG_CONFIG=""
9469 fi
9470
9471fi
9472
9473pkg_failed=no
a946372e
AK
9474{ $as_echo "$as_me:$LINENO: checking for PKGCONFIGINIT" >&5
9475$as_echo_n "checking for PKGCONFIGINIT... " >&6; }
e2997b73 9476
a946372e
AK
9477if test -n "$PKGCONFIGINIT_CFLAGS"; then
9478 pkg_cv_PKGCONFIGINIT_CFLAGS="$PKGCONFIGINIT_CFLAGS"
e2997b73
AK
9479 elif test -n "$PKG_CONFIG"; then
9480 if test -n "$PKG_CONFIG" && \
a946372e
AK
9481 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\"") >&5
9482 ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5
e2997b73
AK
9483 ac_status=$?
9484 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9485 (exit $ac_status); }; then
a946372e 9486 pkg_cv_PKGCONFIGINIT_CFLAGS=`$PKG_CONFIG --cflags "pkgconfiginit" 2>/dev/null`
e2997b73
AK
9487else
9488 pkg_failed=yes
9489fi
9490 else
9491 pkg_failed=untried
9492fi
a946372e
AK
9493if test -n "$PKGCONFIGINIT_LIBS"; then
9494 pkg_cv_PKGCONFIGINIT_LIBS="$PKGCONFIGINIT_LIBS"
e2997b73
AK
9495 elif test -n "$PKG_CONFIG"; then
9496 if test -n "$PKG_CONFIG" && \
a946372e
AK
9497 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\"") >&5
9498 ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5
e2997b73
AK
9499 ac_status=$?
9500 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9501 (exit $ac_status); }; then
a946372e 9502 pkg_cv_PKGCONFIGINIT_LIBS=`$PKG_CONFIG --libs "pkgconfiginit" 2>/dev/null`
e2997b73
AK
9503else
9504 pkg_failed=yes
9505fi
9506 else
9507 pkg_failed=untried
9508fi
9509
9510
9511
9512if test $pkg_failed = yes; then
9513
9514if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9515 _pkg_short_errors_supported=yes
9516else
9517 _pkg_short_errors_supported=no
9518fi
9519 if test $_pkg_short_errors_supported = yes; then
a946372e 9520 PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pkgconfiginit" 2>&1`
e2997b73 9521 else
a946372e 9522 PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "pkgconfiginit" 2>&1`
e2997b73
AK
9523 fi
9524 # Put the nasty error message in config.log where it belongs
a946372e 9525 echo "$PKGCONFIGINIT_PKG_ERRORS" >&5
e2997b73
AK
9526
9527 { $as_echo "$as_me:$LINENO: result: no" >&5
9528$as_echo "no" >&6; }
a946372e
AK
9529 { $as_echo "$as_me:$LINENO: result: pkg-config initialized" >&5
9530$as_echo "pkg-config initialized" >&6; }
e2997b73 9531elif test $pkg_failed = untried; then
a946372e
AK
9532 { $as_echo "$as_me:$LINENO: result: pkg-config initialized" >&5
9533$as_echo "pkg-config initialized" >&6; }
e2997b73 9534else
a946372e
AK
9535 PKGCONFIGINIT_CFLAGS=$pkg_cv_PKGCONFIGINIT_CFLAGS
9536 PKGCONFIGINIT_LIBS=$pkg_cv_PKGCONFIGINIT_LIBS
e2997b73
AK
9537 { $as_echo "$as_me:$LINENO: result: yes" >&5
9538$as_echo "yes" >&6; }
9539 :
9540fi
90c80887
AK
9541 PKGCONFIG_INIT=1
9542}
9543
9544################################################################################
9545{ $as_echo "$as_me:$LINENO: checking whether to build cluster LVM daemon" >&5
9546$as_echo_n "checking whether to build cluster LVM daemon... " >&6; }
9547
9548# Check whether --with-clvmd was given.
9549if test "${with_clvmd+set}" = set; then
9550 withval=$with_clvmd; CLVMD="$withval"
9551else
9552 CLVMD="none"
9553fi
9554
9555if test x$CLVMD = xyes; then
9556 CLVMD=all
9557fi
9558{ $as_echo "$as_me:$LINENO: result: $CLVMD" >&5
9559$as_echo "$CLVMD" >&6; }
9560
9561if test x$CLVMD != xnone && test x$CLUSTER = xnone; then
9562 CLUSTER=internal
9563fi
9564
9565if test x$CLVMD != xnone && test x$PKGCONFIG_INIT != x1; then
9566 pkg_config_init
9567fi
9568
9569
9570if [ `expr x"$CLVMD" : '.*gulm.*'` != 0 ]; then
9571 BUILDGULM=yes
9572fi
9573if [ `expr x"$CLVMD" : '.*corosync.*'` != 0 ]; then
9574 BUILDCOROSYNC=yes
9575fi
9576if [ `expr x"$CLVMD" : '.*openais.*'` != 0 ]; then
9577 BUILDOPENAIS=yes
9578fi
9579if [ `expr x"$CLVMD" : '.*cman.*'` != 0 ]; then
9580 BUILDCMAN=yes
9581fi
9582
9583if test x$BUILDGULM = xyes; then
9584 if test x$BUILDCOROSYNC = xyes || \
9585 test x$BUILDOPENAIS = xyes; then
9586 { { $as_echo "$as_me:$LINENO: error: requested clvmd configuration is not valid" >&5
9587$as_echo "$as_me: error: requested clvmd configuration is not valid" >&2;}
9588 { (exit 1); exit 1; }; }
9589 fi
a946372e 9590fi
e2997b73 9591
a946372e
AK
9592soft_bailout() {
9593 NOTFOUND=1
9594}
e2997b73 9595
a946372e
AK
9596hard_bailout() {
9597 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
9598$as_echo "$as_me: error: bailing out" >&2;}
9599 { (exit 1); exit 1; }; }
9600}
9601
9602if test x$CLVMD = xall; then
9603 bailout=soft_bailout
9604 BUILDGULM=yes
9605 BUILDCMAN=yes
9606 BUILDCOROSYNC=yes
9607 BUILDOPENAIS=yes
e2997b73 9608else
a946372e 9609 bailout=hard_bailout
e2997b73 9610fi
a946372e
AK
9611
9612check_lib_no_libs() {
9613 lib_no_libs_arg1=$1
9614 shift
9615 lib_no_libs_arg2=$1
9616 shift
9617 lib_no_libs_args=$@
9618
9619as_ac_Lib=`$as_echo "ac_cv_lib_$lib_no_libs_arg1''_$lib_no_libs_arg2" | $as_tr_sh`
9620{ $as_echo "$as_me:$LINENO: checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1" >&5
9621$as_echo_n "checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1... " >&6; }
9622if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
9623 $as_echo_n "(cached) " >&6
9624else
9625 ac_check_lib_save_LIBS=$LIBS
9626LIBS="-l$lib_no_libs_arg1 $lib_no_libs_args $LIBS"
9627cat >conftest.$ac_ext <<_ACEOF
9628/* confdefs.h. */
9629_ACEOF
9630cat confdefs.h >>conftest.$ac_ext
9631cat >>conftest.$ac_ext <<_ACEOF
9632/* end confdefs.h. */
9633
9634/* Override any GCC internal prototype to avoid an error.
9635 Use char because int might match the return type of a GCC
9636 builtin and then its argument prototype would still apply. */
9637#ifdef __cplusplus
9638extern "C"
9639#endif
9640char $lib_no_libs_arg2 ();
9641int
9642main ()
9643{
9644return $lib_no_libs_arg2 ();
9645 ;
9646 return 0;
9647}
9648_ACEOF
9649rm -f conftest.$ac_objext conftest$ac_exeext
9650if { (ac_try="$ac_link"
9651case "(($ac_try" in
9652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9653 *) ac_try_echo=$ac_try;;
9654esac
9655eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9656$as_echo "$ac_try_echo") >&5
9657 (eval "$ac_link") 2>conftest.er1
e2997b73 9658 ac_status=$?
a946372e
AK
9659 grep -v '^ *+' conftest.er1 >conftest.err
9660 rm -f conftest.er1
9661 cat conftest.err >&5
e2997b73 9662 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
a946372e
AK
9663 (exit $ac_status); } && {
9664 test -z "$ac_c_werror_flag" ||
9665 test ! -s conftest.err
9666 } && test -s conftest$ac_exeext && {
9667 test "$cross_compiling" = yes ||
9668 $as_test_x conftest$ac_exeext
9669 }; then
9670 eval "$as_ac_Lib=yes"
e2997b73 9671else
a946372e
AK
9672 $as_echo "$as_me: failed program was:" >&5
9673sed 's/^/| /' conftest.$ac_ext >&5
e2997b73 9674
a946372e
AK
9675 eval "$as_ac_Lib=no"
9676fi
e2997b73 9677
a946372e
AK
9678rm -rf conftest.dSYM
9679rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9680 conftest$ac_exeext conftest.$ac_ext
9681LIBS=$ac_check_lib_save_LIBS
9682fi
9683ac_res=`eval 'as_val=${'$as_ac_Lib'}
9684 $as_echo "$as_val"'`
9685 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9686$as_echo "$ac_res" >&6; }
9687as_val=`eval 'as_val=${'$as_ac_Lib'}
9688 $as_echo "$as_val"'`
9689 if test "x$as_val" = x""yes; then
9690 cat >>confdefs.h <<_ACEOF
9691#define `$as_echo "HAVE_LIB$lib_no_libs_arg1" | $as_tr_cpp` 1
9692_ACEOF
e2997b73 9693
a946372e 9694 LIBS="-l$lib_no_libs_arg1 $LIBS"
e2997b73 9695
e2997b73 9696else
a946372e 9697 $bailout
e2997b73 9698fi
e2997b73 9699
a946372e
AK
9700 LIBS=$ac_check_lib_save_LIBS
9701}
9702
9703if test x$BUILDGULM = xyes; then
e2997b73
AK
9704
9705pkg_failed=no
a946372e
AK
9706{ $as_echo "$as_me:$LINENO: checking for CCS" >&5
9707$as_echo_n "checking for CCS... " >&6; }
e2997b73 9708
a946372e
AK
9709if test -n "$CCS_CFLAGS"; then
9710 pkg_cv_CCS_CFLAGS="$CCS_CFLAGS"
e2997b73
AK
9711 elif test -n "$PKG_CONFIG"; then
9712 if test -n "$PKG_CONFIG" && \
a946372e
AK
9713 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libccs\"") >&5
9714 ($PKG_CONFIG --exists --print-errors "libccs") 2>&5
e2997b73
AK
9715 ac_status=$?
9716 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9717 (exit $ac_status); }; then
a946372e 9718 pkg_cv_CCS_CFLAGS=`$PKG_CONFIG --cflags "libccs" 2>/dev/null`
e2997b73
AK
9719else
9720 pkg_failed=yes
9721fi
9722 else
9723 pkg_failed=untried
9724fi
a946372e
AK
9725if test -n "$CCS_LIBS"; then
9726 pkg_cv_CCS_LIBS="$CCS_LIBS"
e2997b73
AK
9727 elif test -n "$PKG_CONFIG"; then
9728 if test -n "$PKG_CONFIG" && \
a946372e
AK
9729 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libccs\"") >&5
9730 ($PKG_CONFIG --exists --print-errors "libccs") 2>&5
e2997b73
AK
9731 ac_status=$?
9732 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9733 (exit $ac_status); }; then
a946372e 9734 pkg_cv_CCS_LIBS=`$PKG_CONFIG --libs "libccs" 2>/dev/null`
e2997b73
AK
9735else
9736 pkg_failed=yes
9737fi
9738 else
9739 pkg_failed=untried
9740fi
9741
9742
9743
9744if test $pkg_failed = yes; then
9745
9746if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9747 _pkg_short_errors_supported=yes
9748else
9749 _pkg_short_errors_supported=no
9750fi
9751 if test $_pkg_short_errors_supported = yes; then
a946372e 9752 CCS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libccs" 2>&1`
e2997b73 9753 else
a946372e 9754 CCS_PKG_ERRORS=`$PKG_CONFIG --print-errors "libccs" 2>&1`
e2997b73
AK
9755 fi
9756 # Put the nasty error message in config.log where it belongs
a946372e 9757 echo "$CCS_PKG_ERRORS" >&5
e2997b73
AK
9758
9759 { $as_echo "$as_me:$LINENO: result: no" >&5
9760$as_echo "no" >&6; }
a946372e 9761 NOTFOUND=0
e2997b73 9762
a946372e
AK
9763for ac_header in ccs.h
9764do
9765as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9766if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9767 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9768$as_echo_n "checking for $ac_header... " >&6; }
9769if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9770 $as_echo_n "(cached) " >&6
d0191583 9771fi
a946372e
AK
9772ac_res=`eval 'as_val=${'$as_ac_Header'}
9773 $as_echo "$as_val"'`
9774 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9775$as_echo "$ac_res" >&6; }
fc54be10 9776else
a946372e
AK
9777 # Is the header compilable?
9778{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9779$as_echo_n "checking $ac_header usability... " >&6; }
9780cat >conftest.$ac_ext <<_ACEOF
9781/* confdefs.h. */
9782_ACEOF
9783cat confdefs.h >>conftest.$ac_ext
9784cat >>conftest.$ac_ext <<_ACEOF
9785/* end confdefs.h. */
9786$ac_includes_default
9787#include <$ac_header>
9788_ACEOF
9789rm -f conftest.$ac_objext
9790if { (ac_try="$ac_compile"
9791case "(($ac_try" in
9792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9793 *) ac_try_echo=$ac_try;;
9794esac
9795eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9796$as_echo "$ac_try_echo") >&5
9797 (eval "$ac_compile") 2>conftest.er1
9798 ac_status=$?
9799 grep -v '^ *+' conftest.er1 >conftest.err
9800 rm -f conftest.er1
9801 cat conftest.err >&5
9802 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9803 (exit $ac_status); } && {
9804 test -z "$ac_c_werror_flag" ||
9805 test ! -s conftest.err
9806 } && test -s conftest.$ac_objext; then
9807 ac_header_compiler=yes
9808else
9809 $as_echo "$as_me: failed program was:" >&5
9810sed 's/^/| /' conftest.$ac_ext >&5
d0191583 9811
a946372e 9812 ac_header_compiler=no
d0191583
JM
9813fi
9814
a946372e
AK
9815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9816{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9817$as_echo "$ac_header_compiler" >&6; }
fddafd51 9818
a946372e
AK
9819# Is the header present?
9820{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9821$as_echo_n "checking $ac_header presence... " >&6; }
9822cat >conftest.$ac_ext <<_ACEOF
9823/* confdefs.h. */
9824_ACEOF
9825cat confdefs.h >>conftest.$ac_ext
9826cat >>conftest.$ac_ext <<_ACEOF
9827/* end confdefs.h. */
9828#include <$ac_header>
9829_ACEOF
9830if { (ac_try="$ac_cpp conftest.$ac_ext"
9831case "(($ac_try" in
9832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9833 *) ac_try_echo=$ac_try;;
9834esac
9835eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9836$as_echo "$ac_try_echo") >&5
9837 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9838 ac_status=$?
9839 grep -v '^ *+' conftest.er1 >conftest.err
9840 rm -f conftest.er1
9841 cat conftest.err >&5
9842 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9843 (exit $ac_status); } >/dev/null && {
9844 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9845 test ! -s conftest.err
9846 }; then
9847 ac_header_preproc=yes
9848else
9849 $as_echo "$as_me: failed program was:" >&5
9850sed 's/^/| /' conftest.$ac_ext >&5
9851
9852 ac_header_preproc=no
9853fi
9854
9855rm -f conftest.err conftest.$ac_ext
9856{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9857$as_echo "$ac_header_preproc" >&6; }
9858
9859# So? What about this header?
9860case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9861 yes:no: )
9862 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9863$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9864 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9865$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9866 ac_header_preproc=yes
9867 ;;
9868 no:yes:* )
9869 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9870$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9871 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9872$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9873 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9874$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9875 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9876$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9877 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9878$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9879 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9880$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9881
9882 ;;
9883esac
9884{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9885$as_echo_n "checking for $ac_header... " >&6; }
9886if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9887 $as_echo_n "(cached) " >&6
9888else
9889 eval "$as_ac_Header=\$ac_header_preproc"
9890fi
9891ac_res=`eval 'as_val=${'$as_ac_Header'}
9892 $as_echo "$as_val"'`
9893 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9894$as_echo "$ac_res" >&6; }
9895
9896fi
9897as_val=`eval 'as_val=${'$as_ac_Header'}
9898 $as_echo "$as_val"'`
9899 if test "x$as_val" = x""yes; then
9900 cat >>confdefs.h <<_ACEOF
9901#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9902_ACEOF
9903
9904else
9905 $bailout
9906fi
9907
9908done
9909
9910 check_lib_no_libs ccs ccs_connect
9911 if test $NOTFOUND = 0; then
9912 { $as_echo "$as_me:$LINENO: result: no pkg for libccs, using -lccs" >&5
9913$as_echo "no pkg for libccs, using -lccs" >&6; }
9914 CCS_LIBS="-lccs"
9915 HAVE_CCS=yes
9916 fi
9917elif test $pkg_failed = untried; then
9918 NOTFOUND=0
9919
9920for ac_header in ccs.h
9921do
9922as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9923if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9924 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9925$as_echo_n "checking for $ac_header... " >&6; }
9926if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9927 $as_echo_n "(cached) " >&6
9928fi
9929ac_res=`eval 'as_val=${'$as_ac_Header'}
9930 $as_echo "$as_val"'`
9931 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9932$as_echo "$ac_res" >&6; }
9933else
9934 # Is the header compilable?
9935{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9936$as_echo_n "checking $ac_header usability... " >&6; }
9937cat >conftest.$ac_ext <<_ACEOF
9938/* confdefs.h. */
9939_ACEOF
9940cat confdefs.h >>conftest.$ac_ext
9941cat >>conftest.$ac_ext <<_ACEOF
9942/* end confdefs.h. */
9943$ac_includes_default
9944#include <$ac_header>
9945_ACEOF
9946rm -f conftest.$ac_objext
9947if { (ac_try="$ac_compile"
9948case "(($ac_try" in
9949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9950 *) ac_try_echo=$ac_try;;
9951esac
9952eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9953$as_echo "$ac_try_echo") >&5
9954 (eval "$ac_compile") 2>conftest.er1
9955 ac_status=$?
9956 grep -v '^ *+' conftest.er1 >conftest.err
9957 rm -f conftest.er1
9958 cat conftest.err >&5
9959 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9960 (exit $ac_status); } && {
9961 test -z "$ac_c_werror_flag" ||
9962 test ! -s conftest.err
9963 } && test -s conftest.$ac_objext; then
9964 ac_header_compiler=yes
9965else
9966 $as_echo "$as_me: failed program was:" >&5
9967sed 's/^/| /' conftest.$ac_ext >&5
9968
9969 ac_header_compiler=no
9970fi
9971
9972rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9973{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9974$as_echo "$ac_header_compiler" >&6; }
9975
9976# Is the header present?
9977{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9978$as_echo_n "checking $ac_header presence... " >&6; }
9979cat >conftest.$ac_ext <<_ACEOF
9980/* confdefs.h. */
9981_ACEOF
9982cat confdefs.h >>conftest.$ac_ext
9983cat >>conftest.$ac_ext <<_ACEOF
9984/* end confdefs.h. */
9985#include <$ac_header>
9986_ACEOF
9987if { (ac_try="$ac_cpp conftest.$ac_ext"
9988case "(($ac_try" in
9989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9990 *) ac_try_echo=$ac_try;;
9991esac
9992eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9993$as_echo "$ac_try_echo") >&5
9994 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9995 ac_status=$?
9996 grep -v '^ *+' conftest.er1 >conftest.err
9997 rm -f conftest.er1
9998 cat conftest.err >&5
9999 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10000 (exit $ac_status); } >/dev/null && {
10001 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10002 test ! -s conftest.err
10003 }; then
10004 ac_header_preproc=yes
10005else
10006 $as_echo "$as_me: failed program was:" >&5
10007sed 's/^/| /' conftest.$ac_ext >&5
10008
10009 ac_header_preproc=no
10010fi
10011
10012rm -f conftest.err conftest.$ac_ext
10013{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10014$as_echo "$ac_header_preproc" >&6; }
10015
10016# So? What about this header?
10017case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10018 yes:no: )
10019 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10020$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10021 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10022$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10023 ac_header_preproc=yes
10024 ;;
10025 no:yes:* )
10026 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10027$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10028 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10029$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10030 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10031$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10032 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10033$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10034 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10035$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10036 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10037$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10038
10039 ;;
10040esac
10041{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10042$as_echo_n "checking for $ac_header... " >&6; }
10043if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10044 $as_echo_n "(cached) " >&6
10045else
10046 eval "$as_ac_Header=\$ac_header_preproc"
10047fi
10048ac_res=`eval 'as_val=${'$as_ac_Header'}
10049 $as_echo "$as_val"'`
10050 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10051$as_echo "$ac_res" >&6; }
10052
10053fi
10054as_val=`eval 'as_val=${'$as_ac_Header'}
10055 $as_echo "$as_val"'`
10056 if test "x$as_val" = x""yes; then
10057 cat >>confdefs.h <<_ACEOF
10058#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10059_ACEOF
10060
10061else
10062 $bailout
10063fi
10064
10065done
10066
10067 check_lib_no_libs ccs ccs_connect
10068 if test $NOTFOUND = 0; then
10069 { $as_echo "$as_me:$LINENO: result: no pkg for libccs, using -lccs" >&5
10070$as_echo "no pkg for libccs, using -lccs" >&6; }
10071 CCS_LIBS="-lccs"
10072 HAVE_CCS=yes
10073 fi
10074else
10075 CCS_CFLAGS=$pkg_cv_CCS_CFLAGS
10076 CCS_LIBS=$pkg_cv_CCS_LIBS
10077 { $as_echo "$as_me:$LINENO: result: yes" >&5
10078$as_echo "yes" >&6; }
10079 HAVE_CCS=yes
10080fi
10081
10082pkg_failed=no
10083{ $as_echo "$as_me:$LINENO: checking for GULM" >&5
10084$as_echo_n "checking for GULM... " >&6; }
10085
10086if test -n "$GULM_CFLAGS"; then
10087 pkg_cv_GULM_CFLAGS="$GULM_CFLAGS"
10088 elif test -n "$PKG_CONFIG"; then
10089 if test -n "$PKG_CONFIG" && \
10090 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgulm\"") >&5
10091 ($PKG_CONFIG --exists --print-errors "libgulm") 2>&5
10092 ac_status=$?
10093 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10094 (exit $ac_status); }; then
10095 pkg_cv_GULM_CFLAGS=`$PKG_CONFIG --cflags "libgulm" 2>/dev/null`
10096else
10097 pkg_failed=yes
10098fi
10099 else
10100 pkg_failed=untried
10101fi
10102if test -n "$GULM_LIBS"; then
10103 pkg_cv_GULM_LIBS="$GULM_LIBS"
10104 elif test -n "$PKG_CONFIG"; then
10105 if test -n "$PKG_CONFIG" && \
10106 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgulm\"") >&5
10107 ($PKG_CONFIG --exists --print-errors "libgulm") 2>&5
10108 ac_status=$?
10109 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10110 (exit $ac_status); }; then
10111 pkg_cv_GULM_LIBS=`$PKG_CONFIG --libs "libgulm" 2>/dev/null`
10112else
10113 pkg_failed=yes
10114fi
10115 else
10116 pkg_failed=untried
10117fi
10118
10119
10120
10121if test $pkg_failed = yes; then
10122
10123if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10124 _pkg_short_errors_supported=yes
10125else
10126 _pkg_short_errors_supported=no
10127fi
10128 if test $_pkg_short_errors_supported = yes; then
10129 GULM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgulm" 2>&1`
10130 else
10131 GULM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgulm" 2>&1`
10132 fi
10133 # Put the nasty error message in config.log where it belongs
10134 echo "$GULM_PKG_ERRORS" >&5
10135
10136 { $as_echo "$as_me:$LINENO: result: no" >&5
10137$as_echo "no" >&6; }
10138 NOTFOUND=0
10139
10140for ac_header in libgulm.h
10141do
10142as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10143if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10144 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10145$as_echo_n "checking for $ac_header... " >&6; }
10146if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10147 $as_echo_n "(cached) " >&6
10148fi
10149ac_res=`eval 'as_val=${'$as_ac_Header'}
10150 $as_echo "$as_val"'`
10151 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10152$as_echo "$ac_res" >&6; }
10153else
10154 # Is the header compilable?
10155{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10156$as_echo_n "checking $ac_header usability... " >&6; }
10157cat >conftest.$ac_ext <<_ACEOF
10158/* confdefs.h. */
10159_ACEOF
10160cat confdefs.h >>conftest.$ac_ext
10161cat >>conftest.$ac_ext <<_ACEOF
10162/* end confdefs.h. */
10163$ac_includes_default
10164#include <$ac_header>
10165_ACEOF
10166rm -f conftest.$ac_objext
10167if { (ac_try="$ac_compile"
10168case "(($ac_try" in
10169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10170 *) ac_try_echo=$ac_try;;
10171esac
10172eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10173$as_echo "$ac_try_echo") >&5
10174 (eval "$ac_compile") 2>conftest.er1
10175 ac_status=$?
10176 grep -v '^ *+' conftest.er1 >conftest.err
10177 rm -f conftest.er1
10178 cat conftest.err >&5
10179 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10180 (exit $ac_status); } && {
10181 test -z "$ac_c_werror_flag" ||
10182 test ! -s conftest.err
10183 } && test -s conftest.$ac_objext; then
10184 ac_header_compiler=yes
10185else
10186 $as_echo "$as_me: failed program was:" >&5
10187sed 's/^/| /' conftest.$ac_ext >&5
10188
10189 ac_header_compiler=no
10190fi
10191
10192rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10193{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10194$as_echo "$ac_header_compiler" >&6; }
10195
10196# Is the header present?
10197{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10198$as_echo_n "checking $ac_header presence... " >&6; }
10199cat >conftest.$ac_ext <<_ACEOF
10200/* confdefs.h. */
10201_ACEOF
10202cat confdefs.h >>conftest.$ac_ext
10203cat >>conftest.$ac_ext <<_ACEOF
10204/* end confdefs.h. */
10205#include <$ac_header>
10206_ACEOF
10207if { (ac_try="$ac_cpp conftest.$ac_ext"
10208case "(($ac_try" in
10209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10210 *) ac_try_echo=$ac_try;;
10211esac
10212eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10213$as_echo "$ac_try_echo") >&5
10214 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10215 ac_status=$?
10216 grep -v '^ *+' conftest.er1 >conftest.err
10217 rm -f conftest.er1
10218 cat conftest.err >&5
10219 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10220 (exit $ac_status); } >/dev/null && {
10221 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10222 test ! -s conftest.err
10223 }; then
10224 ac_header_preproc=yes
10225else
10226 $as_echo "$as_me: failed program was:" >&5
10227sed 's/^/| /' conftest.$ac_ext >&5
10228
10229 ac_header_preproc=no
10230fi
10231
10232rm -f conftest.err conftest.$ac_ext
10233{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10234$as_echo "$ac_header_preproc" >&6; }
10235
10236# So? What about this header?
10237case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10238 yes:no: )
10239 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10240$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10241 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10242$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10243 ac_header_preproc=yes
10244 ;;
10245 no:yes:* )
10246 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10247$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10248 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10249$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10250 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10251$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10252 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10253$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10254 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10255$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10256 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10257$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10258
10259 ;;
10260esac
10261{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10262$as_echo_n "checking for $ac_header... " >&6; }
10263if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10264 $as_echo_n "(cached) " >&6
10265else
10266 eval "$as_ac_Header=\$ac_header_preproc"
10267fi
10268ac_res=`eval 'as_val=${'$as_ac_Header'}
10269 $as_echo "$as_val"'`
10270 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10271$as_echo "$ac_res" >&6; }
10272
10273fi
10274as_val=`eval 'as_val=${'$as_ac_Header'}
10275 $as_echo "$as_val"'`
10276 if test "x$as_val" = x""yes; then
10277 cat >>confdefs.h <<_ACEOF
10278#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10279_ACEOF
10280
10281else
10282 $bailout
10283fi
10284
10285done
10286
10287 check_lib_no_libs gulm lg_core_login
10288 if test $NOTFOUND = 0; then
10289 { $as_echo "$as_me:$LINENO: result: no pkg for libgulm, using -lgulm" >&5
10290$as_echo "no pkg for libgulm, using -lgulm" >&6; }
10291 GULM_LIBS="-lgulm"
10292 HAVE_GULM=yes
10293 fi
10294elif test $pkg_failed = untried; then
10295 NOTFOUND=0
10296
10297for ac_header in libgulm.h
10298do
10299as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10300if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10301 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10302$as_echo_n "checking for $ac_header... " >&6; }
10303if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10304 $as_echo_n "(cached) " >&6
10305fi
10306ac_res=`eval 'as_val=${'$as_ac_Header'}
10307 $as_echo "$as_val"'`
10308 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10309$as_echo "$ac_res" >&6; }
10310else
10311 # Is the header compilable?
10312{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10313$as_echo_n "checking $ac_header usability... " >&6; }
10314cat >conftest.$ac_ext <<_ACEOF
10315/* confdefs.h. */
10316_ACEOF
10317cat confdefs.h >>conftest.$ac_ext
10318cat >>conftest.$ac_ext <<_ACEOF
10319/* end confdefs.h. */
10320$ac_includes_default
10321#include <$ac_header>
10322_ACEOF
10323rm -f conftest.$ac_objext
10324if { (ac_try="$ac_compile"
10325case "(($ac_try" in
10326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10327 *) ac_try_echo=$ac_try;;
10328esac
10329eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10330$as_echo "$ac_try_echo") >&5
10331 (eval "$ac_compile") 2>conftest.er1
10332 ac_status=$?
10333 grep -v '^ *+' conftest.er1 >conftest.err
10334 rm -f conftest.er1
10335 cat conftest.err >&5
10336 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10337 (exit $ac_status); } && {
10338 test -z "$ac_c_werror_flag" ||
10339 test ! -s conftest.err
10340 } && test -s conftest.$ac_objext; then
10341 ac_header_compiler=yes
10342else
10343 $as_echo "$as_me: failed program was:" >&5
10344sed 's/^/| /' conftest.$ac_ext >&5
10345
10346 ac_header_compiler=no
10347fi
10348
10349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10350{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10351$as_echo "$ac_header_compiler" >&6; }
10352
10353# Is the header present?
10354{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10355$as_echo_n "checking $ac_header presence... " >&6; }
10356cat >conftest.$ac_ext <<_ACEOF
10357/* confdefs.h. */
10358_ACEOF
10359cat confdefs.h >>conftest.$ac_ext
10360cat >>conftest.$ac_ext <<_ACEOF
10361/* end confdefs.h. */
10362#include <$ac_header>
10363_ACEOF
10364if { (ac_try="$ac_cpp conftest.$ac_ext"
10365case "(($ac_try" in
10366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10367 *) ac_try_echo=$ac_try;;
10368esac
10369eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10370$as_echo "$ac_try_echo") >&5
10371 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10372 ac_status=$?
10373 grep -v '^ *+' conftest.er1 >conftest.err
10374 rm -f conftest.er1
10375 cat conftest.err >&5
10376 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10377 (exit $ac_status); } >/dev/null && {
10378 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10379 test ! -s conftest.err
10380 }; then
10381 ac_header_preproc=yes
10382else
10383 $as_echo "$as_me: failed program was:" >&5
10384sed 's/^/| /' conftest.$ac_ext >&5
10385
10386 ac_header_preproc=no
10387fi
10388
10389rm -f conftest.err conftest.$ac_ext
10390{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10391$as_echo "$ac_header_preproc" >&6; }
10392
10393# So? What about this header?
10394case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10395 yes:no: )
10396 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10397$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10398 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10399$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10400 ac_header_preproc=yes
10401 ;;
10402 no:yes:* )
10403 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10404$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10405 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10406$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10407 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10408$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10409 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10410$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10411 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10412$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10413 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10414$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10415
10416 ;;
10417esac
10418{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10419$as_echo_n "checking for $ac_header... " >&6; }
10420if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10421 $as_echo_n "(cached) " >&6
10422else
10423 eval "$as_ac_Header=\$ac_header_preproc"
10424fi
10425ac_res=`eval 'as_val=${'$as_ac_Header'}
10426 $as_echo "$as_val"'`
10427 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10428$as_echo "$ac_res" >&6; }
10429
10430fi
10431as_val=`eval 'as_val=${'$as_ac_Header'}
10432 $as_echo "$as_val"'`
10433 if test "x$as_val" = x""yes; then
10434 cat >>confdefs.h <<_ACEOF
10435#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10436_ACEOF
10437
10438else
10439 $bailout
10440fi
10441
10442done
10443
10444 check_lib_no_libs gulm lg_core_login
10445 if test $NOTFOUND = 0; then
10446 { $as_echo "$as_me:$LINENO: result: no pkg for libgulm, using -lgulm" >&5
10447$as_echo "no pkg for libgulm, using -lgulm" >&6; }
10448 GULM_LIBS="-lgulm"
10449 HAVE_GULM=yes
10450 fi
10451else
10452 GULM_CFLAGS=$pkg_cv_GULM_CFLAGS
10453 GULM_LIBS=$pkg_cv_GULM_LIBS
10454 { $as_echo "$as_me:$LINENO: result: yes" >&5
10455$as_echo "yes" >&6; }
10456 HAVE_GULM=yes
10457fi
10458fi
10459
10460if test x$BUILDCMAN = xyes; then
10461
10462pkg_failed=no
10463{ $as_echo "$as_me:$LINENO: checking for CMAN" >&5
10464$as_echo_n "checking for CMAN... " >&6; }
10465
10466if test -n "$CMAN_CFLAGS"; then
10467 pkg_cv_CMAN_CFLAGS="$CMAN_CFLAGS"
10468 elif test -n "$PKG_CONFIG"; then
10469 if test -n "$PKG_CONFIG" && \
10470 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcman\"") >&5
10471 ($PKG_CONFIG --exists --print-errors "libcman") 2>&5
10472 ac_status=$?
10473 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10474 (exit $ac_status); }; then
10475 pkg_cv_CMAN_CFLAGS=`$PKG_CONFIG --cflags "libcman" 2>/dev/null`
10476else
10477 pkg_failed=yes
10478fi
10479 else
10480 pkg_failed=untried
10481fi
10482if test -n "$CMAN_LIBS"; then
10483 pkg_cv_CMAN_LIBS="$CMAN_LIBS"
10484 elif test -n "$PKG_CONFIG"; then
10485 if test -n "$PKG_CONFIG" && \
10486 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcman\"") >&5
10487 ($PKG_CONFIG --exists --print-errors "libcman") 2>&5
10488 ac_status=$?
10489 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10490 (exit $ac_status); }; then
10491 pkg_cv_CMAN_LIBS=`$PKG_CONFIG --libs "libcman" 2>/dev/null`
10492else
10493 pkg_failed=yes
10494fi
10495 else
10496 pkg_failed=untried
10497fi
10498
10499
10500
10501if test $pkg_failed = yes; then
10502
10503if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10504 _pkg_short_errors_supported=yes
10505else
10506 _pkg_short_errors_supported=no
10507fi
10508 if test $_pkg_short_errors_supported = yes; then
10509 CMAN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcman" 2>&1`
10510 else
10511 CMAN_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcman" 2>&1`
10512 fi
10513 # Put the nasty error message in config.log where it belongs
10514 echo "$CMAN_PKG_ERRORS" >&5
10515
10516 { $as_echo "$as_me:$LINENO: result: no" >&5
10517$as_echo "no" >&6; }
10518 NOTFOUND=0
10519
10520for ac_header in libcman.h
10521do
10522as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10523if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10524 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10525$as_echo_n "checking for $ac_header... " >&6; }
10526if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10527 $as_echo_n "(cached) " >&6
10528fi
10529ac_res=`eval 'as_val=${'$as_ac_Header'}
10530 $as_echo "$as_val"'`
10531 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10532$as_echo "$ac_res" >&6; }
10533else
10534 # Is the header compilable?
10535{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10536$as_echo_n "checking $ac_header usability... " >&6; }
10537cat >conftest.$ac_ext <<_ACEOF
10538/* confdefs.h. */
10539_ACEOF
10540cat confdefs.h >>conftest.$ac_ext
10541cat >>conftest.$ac_ext <<_ACEOF
10542/* end confdefs.h. */
10543$ac_includes_default
10544#include <$ac_header>
10545_ACEOF
10546rm -f conftest.$ac_objext
10547if { (ac_try="$ac_compile"
10548case "(($ac_try" in
10549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10550 *) ac_try_echo=$ac_try;;
10551esac
10552eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10553$as_echo "$ac_try_echo") >&5
10554 (eval "$ac_compile") 2>conftest.er1
10555 ac_status=$?
10556 grep -v '^ *+' conftest.er1 >conftest.err
10557 rm -f conftest.er1
10558 cat conftest.err >&5
10559 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10560 (exit $ac_status); } && {
10561 test -z "$ac_c_werror_flag" ||
10562 test ! -s conftest.err
10563 } && test -s conftest.$ac_objext; then
10564 ac_header_compiler=yes
10565else
10566 $as_echo "$as_me: failed program was:" >&5
10567sed 's/^/| /' conftest.$ac_ext >&5
10568
10569 ac_header_compiler=no
10570fi
10571
10572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10573{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10574$as_echo "$ac_header_compiler" >&6; }
10575
10576# Is the header present?
10577{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10578$as_echo_n "checking $ac_header presence... " >&6; }
10579cat >conftest.$ac_ext <<_ACEOF
10580/* confdefs.h. */
10581_ACEOF
10582cat confdefs.h >>conftest.$ac_ext
10583cat >>conftest.$ac_ext <<_ACEOF
10584/* end confdefs.h. */
10585#include <$ac_header>
10586_ACEOF
10587if { (ac_try="$ac_cpp conftest.$ac_ext"
10588case "(($ac_try" in
10589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10590 *) ac_try_echo=$ac_try;;
10591esac
10592eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10593$as_echo "$ac_try_echo") >&5
10594 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10595 ac_status=$?
10596 grep -v '^ *+' conftest.er1 >conftest.err
10597 rm -f conftest.er1
10598 cat conftest.err >&5
10599 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10600 (exit $ac_status); } >/dev/null && {
10601 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10602 test ! -s conftest.err
10603 }; then
10604 ac_header_preproc=yes
10605else
10606 $as_echo "$as_me: failed program was:" >&5
10607sed 's/^/| /' conftest.$ac_ext >&5
10608
10609 ac_header_preproc=no
10610fi
10611
10612rm -f conftest.err conftest.$ac_ext
10613{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10614$as_echo "$ac_header_preproc" >&6; }
10615
10616# So? What about this header?
10617case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10618 yes:no: )
10619 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10620$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10621 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10622$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10623 ac_header_preproc=yes
10624 ;;
10625 no:yes:* )
10626 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10627$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10628 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10629$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10630 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10631$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10632 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10633$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10634 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10635$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10636 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10637$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10638
10639 ;;
10640esac
10641{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10642$as_echo_n "checking for $ac_header... " >&6; }
10643if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10644 $as_echo_n "(cached) " >&6
10645else
10646 eval "$as_ac_Header=\$ac_header_preproc"
10647fi
10648ac_res=`eval 'as_val=${'$as_ac_Header'}
10649 $as_echo "$as_val"'`
10650 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10651$as_echo "$ac_res" >&6; }
10652
10653fi
10654as_val=`eval 'as_val=${'$as_ac_Header'}
10655 $as_echo "$as_val"'`
10656 if test "x$as_val" = x""yes; then
10657 cat >>confdefs.h <<_ACEOF
10658#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10659_ACEOF
10660
10661else
10662 $bailout
10663fi
10664
10665done
10666
10667 check_lib_no_libs cman cman_init
10668 if test $NOTFOUND = 0; then
10669 { $as_echo "$as_me:$LINENO: result: no pkg for libcman, using -lcman" >&5
10670$as_echo "no pkg for libcman, using -lcman" >&6; }
10671 CMAN_LIBS="-lcman"
10672 HAVE_CMAN=yes
10673 fi
10674elif test $pkg_failed = untried; then
10675 NOTFOUND=0
10676
10677for ac_header in libcman.h
10678do
10679as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10680if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10681 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10682$as_echo_n "checking for $ac_header... " >&6; }
10683if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10684 $as_echo_n "(cached) " >&6
10685fi
10686ac_res=`eval 'as_val=${'$as_ac_Header'}
10687 $as_echo "$as_val"'`
10688 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10689$as_echo "$ac_res" >&6; }
10690else
10691 # Is the header compilable?
10692{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10693$as_echo_n "checking $ac_header usability... " >&6; }
10694cat >conftest.$ac_ext <<_ACEOF
10695/* confdefs.h. */
10696_ACEOF
10697cat confdefs.h >>conftest.$ac_ext
10698cat >>conftest.$ac_ext <<_ACEOF
10699/* end confdefs.h. */
10700$ac_includes_default
10701#include <$ac_header>
10702_ACEOF
10703rm -f conftest.$ac_objext
10704if { (ac_try="$ac_compile"
10705case "(($ac_try" in
10706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10707 *) ac_try_echo=$ac_try;;
10708esac
10709eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10710$as_echo "$ac_try_echo") >&5
10711 (eval "$ac_compile") 2>conftest.er1
10712 ac_status=$?
10713 grep -v '^ *+' conftest.er1 >conftest.err
10714 rm -f conftest.er1
10715 cat conftest.err >&5
10716 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10717 (exit $ac_status); } && {
10718 test -z "$ac_c_werror_flag" ||
10719 test ! -s conftest.err
10720 } && test -s conftest.$ac_objext; then
10721 ac_header_compiler=yes
10722else
10723 $as_echo "$as_me: failed program was:" >&5
10724sed 's/^/| /' conftest.$ac_ext >&5
10725
10726 ac_header_compiler=no
10727fi
10728
10729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10730{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10731$as_echo "$ac_header_compiler" >&6; }
10732
10733# Is the header present?
10734{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10735$as_echo_n "checking $ac_header presence... " >&6; }
10736cat >conftest.$ac_ext <<_ACEOF
10737/* confdefs.h. */
10738_ACEOF
10739cat confdefs.h >>conftest.$ac_ext
10740cat >>conftest.$ac_ext <<_ACEOF
10741/* end confdefs.h. */
10742#include <$ac_header>
10743_ACEOF
10744if { (ac_try="$ac_cpp conftest.$ac_ext"
10745case "(($ac_try" in
10746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10747 *) ac_try_echo=$ac_try;;
10748esac
10749eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10750$as_echo "$ac_try_echo") >&5
10751 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10752 ac_status=$?
10753 grep -v '^ *+' conftest.er1 >conftest.err
10754 rm -f conftest.er1
10755 cat conftest.err >&5
10756 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10757 (exit $ac_status); } >/dev/null && {
10758 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10759 test ! -s conftest.err
10760 }; then
10761 ac_header_preproc=yes
10762else
10763 $as_echo "$as_me: failed program was:" >&5
10764sed 's/^/| /' conftest.$ac_ext >&5
10765
10766 ac_header_preproc=no
10767fi
10768
10769rm -f conftest.err conftest.$ac_ext
10770{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10771$as_echo "$ac_header_preproc" >&6; }
10772
10773# So? What about this header?
10774case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10775 yes:no: )
10776 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10777$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10778 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10779$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10780 ac_header_preproc=yes
10781 ;;
10782 no:yes:* )
10783 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10784$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10785 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10786$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10787 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10788$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10789 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10790$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10791 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10792$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10793 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10794$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10795
10796 ;;
10797esac
10798{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10799$as_echo_n "checking for $ac_header... " >&6; }
10800if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10801 $as_echo_n "(cached) " >&6
10802else
10803 eval "$as_ac_Header=\$ac_header_preproc"
10804fi
10805ac_res=`eval 'as_val=${'$as_ac_Header'}
10806 $as_echo "$as_val"'`
10807 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10808$as_echo "$ac_res" >&6; }
10809
10810fi
10811as_val=`eval 'as_val=${'$as_ac_Header'}
10812 $as_echo "$as_val"'`
10813 if test "x$as_val" = x""yes; then
10814 cat >>confdefs.h <<_ACEOF
10815#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10816_ACEOF
10817
10818else
10819 $bailout
10820fi
10821
10822done
10823
10824 check_lib_no_libs cman cman_init
10825 if test $NOTFOUND = 0; then
10826 { $as_echo "$as_me:$LINENO: result: no pkg for libcman, using -lcman" >&5
10827$as_echo "no pkg for libcman, using -lcman" >&6; }
10828 CMAN_LIBS="-lcman"
10829 HAVE_CMAN=yes
10830 fi
10831else
10832 CMAN_CFLAGS=$pkg_cv_CMAN_CFLAGS
10833 CMAN_LIBS=$pkg_cv_CMAN_LIBS
10834 { $as_echo "$as_me:$LINENO: result: yes" >&5
10835$as_echo "yes" >&6; }
10836 HAVE_CMAN=yes
10837fi
10838 CHECKCONFDB=yes
10839 CHECKDLM=yes
10840fi
10841
10842if test x$BUILDCOROSYNC = xyes || \
10843 test x$BUILDOPENAIS = xyes; then
10844
10845pkg_failed=no
10846{ $as_echo "$as_me:$LINENO: checking for COROSYNC" >&5
10847$as_echo_n "checking for COROSYNC... " >&6; }
10848
10849if test -n "$COROSYNC_CFLAGS"; then
10850 pkg_cv_COROSYNC_CFLAGS="$COROSYNC_CFLAGS"
10851 elif test -n "$PKG_CONFIG"; then
10852 if test -n "$PKG_CONFIG" && \
10853 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"corosync\"") >&5
10854 ($PKG_CONFIG --exists --print-errors "corosync") 2>&5
10855 ac_status=$?
10856 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10857 (exit $ac_status); }; then
10858 pkg_cv_COROSYNC_CFLAGS=`$PKG_CONFIG --cflags "corosync" 2>/dev/null`
10859else
10860 pkg_failed=yes
10861fi
10862 else
10863 pkg_failed=untried
10864fi
10865if test -n "$COROSYNC_LIBS"; then
10866 pkg_cv_COROSYNC_LIBS="$COROSYNC_LIBS"
10867 elif test -n "$PKG_CONFIG"; then
10868 if test -n "$PKG_CONFIG" && \
10869 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"corosync\"") >&5
10870 ($PKG_CONFIG --exists --print-errors "corosync") 2>&5
10871 ac_status=$?
10872 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10873 (exit $ac_status); }; then
10874 pkg_cv_COROSYNC_LIBS=`$PKG_CONFIG --libs "corosync" 2>/dev/null`
10875else
10876 pkg_failed=yes
10877fi
10878 else
10879 pkg_failed=untried
10880fi
10881
10882
10883
10884if test $pkg_failed = yes; then
10885
10886if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10887 _pkg_short_errors_supported=yes
10888else
10889 _pkg_short_errors_supported=no
10890fi
10891 if test $_pkg_short_errors_supported = yes; then
10892 COROSYNC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "corosync" 2>&1`
10893 else
10894 COROSYNC_PKG_ERRORS=`$PKG_CONFIG --print-errors "corosync" 2>&1`
10895 fi
10896 # Put the nasty error message in config.log where it belongs
10897 echo "$COROSYNC_PKG_ERRORS" >&5
10898
10899 { $as_echo "$as_me:$LINENO: result: no" >&5
10900$as_echo "no" >&6; }
10901 $bailout
10902elif test $pkg_failed = untried; then
10903 $bailout
10904else
10905 COROSYNC_CFLAGS=$pkg_cv_COROSYNC_CFLAGS
10906 COROSYNC_LIBS=$pkg_cv_COROSYNC_LIBS
10907 { $as_echo "$as_me:$LINENO: result: yes" >&5
10908$as_echo "yes" >&6; }
10909 HAVE_COROSYNC=yes
10910fi
10911 CHECKCONFDB=yes
10912fi
10913
10914if test x$BUILDCOROSYNC = xyes; then
10915
10916pkg_failed=no
10917{ $as_echo "$as_me:$LINENO: checking for QUORUM" >&5
10918$as_echo_n "checking for QUORUM... " >&6; }
10919
10920if test -n "$QUORUM_CFLAGS"; then
10921 pkg_cv_QUORUM_CFLAGS="$QUORUM_CFLAGS"
10922 elif test -n "$PKG_CONFIG"; then
10923 if test -n "$PKG_CONFIG" && \
10924 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libquorum\"") >&5
10925 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
10926 ac_status=$?
10927 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10928 (exit $ac_status); }; then
10929 pkg_cv_QUORUM_CFLAGS=`$PKG_CONFIG --cflags "libquorum" 2>/dev/null`
10930else
10931 pkg_failed=yes
10932fi
10933 else
10934 pkg_failed=untried
10935fi
10936if test -n "$QUORUM_LIBS"; then
10937 pkg_cv_QUORUM_LIBS="$QUORUM_LIBS"
10938 elif test -n "$PKG_CONFIG"; then
10939 if test -n "$PKG_CONFIG" && \
10940 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libquorum\"") >&5
10941 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
10942 ac_status=$?
10943 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10944 (exit $ac_status); }; then
10945 pkg_cv_QUORUM_LIBS=`$PKG_CONFIG --libs "libquorum" 2>/dev/null`
10946else
10947 pkg_failed=yes
10948fi
10949 else
10950 pkg_failed=untried
10951fi
10952
10953
10954
10955if test $pkg_failed = yes; then
10956
10957if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10958 _pkg_short_errors_supported=yes
10959else
10960 _pkg_short_errors_supported=no
10961fi
10962 if test $_pkg_short_errors_supported = yes; then
10963 QUORUM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libquorum" 2>&1`
10964 else
10965 QUORUM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libquorum" 2>&1`
10966 fi
10967 # Put the nasty error message in config.log where it belongs
10968 echo "$QUORUM_PKG_ERRORS" >&5
10969
10970 { $as_echo "$as_me:$LINENO: result: no" >&5
10971$as_echo "no" >&6; }
10972 $bailout
10973elif test $pkg_failed = untried; then
10974 $bailout
10975else
10976 QUORUM_CFLAGS=$pkg_cv_QUORUM_CFLAGS
10977 QUORUM_LIBS=$pkg_cv_QUORUM_LIBS
10978 { $as_echo "$as_me:$LINENO: result: yes" >&5
10979$as_echo "yes" >&6; }
10980 HAVE_QUORUM=yes
10981fi
10982 CHECKCPG=yes
10983 CHECKDLM=yes
10984fi
10985
10986if test x$BUILDOPENAIS = xyes; then
10987
10988pkg_failed=no
10989{ $as_echo "$as_me:$LINENO: checking for SALCK" >&5
10990$as_echo_n "checking for SALCK... " >&6; }
10991
10992if test -n "$SALCK_CFLAGS"; then
10993 pkg_cv_SALCK_CFLAGS="$SALCK_CFLAGS"
10994 elif test -n "$PKG_CONFIG"; then
10995 if test -n "$PKG_CONFIG" && \
10996 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaLck\"") >&5
10997 ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5
10998 ac_status=$?
10999 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11000 (exit $ac_status); }; then
11001 pkg_cv_SALCK_CFLAGS=`$PKG_CONFIG --cflags "libSaLck" 2>/dev/null`
11002else
11003 pkg_failed=yes
11004fi
11005 else
11006 pkg_failed=untried
11007fi
11008if test -n "$SALCK_LIBS"; then
11009 pkg_cv_SALCK_LIBS="$SALCK_LIBS"
11010 elif test -n "$PKG_CONFIG"; then
11011 if test -n "$PKG_CONFIG" && \
11012 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaLck\"") >&5
11013 ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5
11014 ac_status=$?
11015 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11016 (exit $ac_status); }; then
11017 pkg_cv_SALCK_LIBS=`$PKG_CONFIG --libs "libSaLck" 2>/dev/null`
11018else
11019 pkg_failed=yes
11020fi
11021 else
11022 pkg_failed=untried
11023fi
11024
11025
11026
11027if test $pkg_failed = yes; then
11028
11029if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11030 _pkg_short_errors_supported=yes
11031else
11032 _pkg_short_errors_supported=no
11033fi
11034 if test $_pkg_short_errors_supported = yes; then
11035 SALCK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaLck" 2>&1`
11036 else
11037 SALCK_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaLck" 2>&1`
11038 fi
11039 # Put the nasty error message in config.log where it belongs
11040 echo "$SALCK_PKG_ERRORS" >&5
11041
11042 { $as_echo "$as_me:$LINENO: result: no" >&5
11043$as_echo "no" >&6; }
11044 $bailout
11045elif test $pkg_failed = untried; then
11046 $bailout
11047else
11048 SALCK_CFLAGS=$pkg_cv_SALCK_CFLAGS
11049 SALCK_LIBS=$pkg_cv_SALCK_LIBS
11050 { $as_echo "$as_me:$LINENO: result: yes" >&5
11051$as_echo "yes" >&6; }
11052 HAVE_SALCK=yes
11053fi
11054 CHECKCPG=yes
11055fi
11056
11057
11058
11059if test x$CHECKCONFDB = xyes; then
11060
11061pkg_failed=no
11062{ $as_echo "$as_me:$LINENO: checking for CONFDB" >&5
11063$as_echo_n "checking for CONFDB... " >&6; }
11064
11065if test -n "$CONFDB_CFLAGS"; then
11066 pkg_cv_CONFDB_CFLAGS="$CONFDB_CFLAGS"
11067 elif test -n "$PKG_CONFIG"; then
11068 if test -n "$PKG_CONFIG" && \
11069 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libconfdb\"") >&5
11070 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
11071 ac_status=$?
11072 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11073 (exit $ac_status); }; then
11074 pkg_cv_CONFDB_CFLAGS=`$PKG_CONFIG --cflags "libconfdb" 2>/dev/null`
11075else
11076 pkg_failed=yes
11077fi
11078 else
11079 pkg_failed=untried
11080fi
11081if test -n "$CONFDB_LIBS"; then
11082 pkg_cv_CONFDB_LIBS="$CONFDB_LIBS"
11083 elif test -n "$PKG_CONFIG"; then
11084 if test -n "$PKG_CONFIG" && \
11085 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libconfdb\"") >&5
11086 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
11087 ac_status=$?
11088 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11089 (exit $ac_status); }; then
11090 pkg_cv_CONFDB_LIBS=`$PKG_CONFIG --libs "libconfdb" 2>/dev/null`
11091else
11092 pkg_failed=yes
11093fi
11094 else
11095 pkg_failed=untried
11096fi
11097
11098
11099
11100if test $pkg_failed = yes; then
11101
11102if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11103 _pkg_short_errors_supported=yes
11104else
11105 _pkg_short_errors_supported=no
11106fi
11107 if test $_pkg_short_errors_supported = yes; then
11108 CONFDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libconfdb" 2>&1`
11109 else
11110 CONFDB_PKG_ERRORS=`$PKG_CONFIG --print-errors "libconfdb" 2>&1`
11111 fi
11112 # Put the nasty error message in config.log where it belongs
11113 echo "$CONFDB_PKG_ERRORS" >&5
11114
11115 { $as_echo "$as_me:$LINENO: result: no" >&5
11116$as_echo "no" >&6; }
11117 HAVE_CONFDB=no
11118elif test $pkg_failed = untried; then
11119 HAVE_CONFDB=no
11120else
11121 CONFDB_CFLAGS=$pkg_cv_CONFDB_CFLAGS
11122 CONFDB_LIBS=$pkg_cv_CONFDB_LIBS
11123 { $as_echo "$as_me:$LINENO: result: yes" >&5
11124$as_echo "yes" >&6; }
11125 HAVE_CONFDB=yes
11126fi
11127
11128
11129for ac_header in corosync/confdb.h
11130do
11131as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11132if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11133 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11134$as_echo_n "checking for $ac_header... " >&6; }
11135if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11136 $as_echo_n "(cached) " >&6
11137fi
11138ac_res=`eval 'as_val=${'$as_ac_Header'}
11139 $as_echo "$as_val"'`
11140 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11141$as_echo "$ac_res" >&6; }
11142else
11143 # Is the header compilable?
11144{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11145$as_echo_n "checking $ac_header usability... " >&6; }
11146cat >conftest.$ac_ext <<_ACEOF
11147/* confdefs.h. */
11148_ACEOF
11149cat confdefs.h >>conftest.$ac_ext
11150cat >>conftest.$ac_ext <<_ACEOF
11151/* end confdefs.h. */
11152$ac_includes_default
11153#include <$ac_header>
11154_ACEOF
11155rm -f conftest.$ac_objext
11156if { (ac_try="$ac_compile"
11157case "(($ac_try" in
11158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11159 *) ac_try_echo=$ac_try;;
11160esac
11161eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11162$as_echo "$ac_try_echo") >&5
11163 (eval "$ac_compile") 2>conftest.er1
11164 ac_status=$?
11165 grep -v '^ *+' conftest.er1 >conftest.err
11166 rm -f conftest.er1
11167 cat conftest.err >&5
11168 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11169 (exit $ac_status); } && {
11170 test -z "$ac_c_werror_flag" ||
11171 test ! -s conftest.err
11172 } && test -s conftest.$ac_objext; then
11173 ac_header_compiler=yes
11174else
11175 $as_echo "$as_me: failed program was:" >&5
11176sed 's/^/| /' conftest.$ac_ext >&5
11177
11178 ac_header_compiler=no
11179fi
11180
11181rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11182{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11183$as_echo "$ac_header_compiler" >&6; }
11184
11185# Is the header present?
11186{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11187$as_echo_n "checking $ac_header presence... " >&6; }
11188cat >conftest.$ac_ext <<_ACEOF
11189/* confdefs.h. */
11190_ACEOF
11191cat confdefs.h >>conftest.$ac_ext
11192cat >>conftest.$ac_ext <<_ACEOF
11193/* end confdefs.h. */
11194#include <$ac_header>
11195_ACEOF
11196if { (ac_try="$ac_cpp conftest.$ac_ext"
11197case "(($ac_try" in
11198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11199 *) ac_try_echo=$ac_try;;
11200esac
11201eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11202$as_echo "$ac_try_echo") >&5
11203 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11204 ac_status=$?
11205 grep -v '^ *+' conftest.er1 >conftest.err
11206 rm -f conftest.er1
11207 cat conftest.err >&5
11208 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11209 (exit $ac_status); } >/dev/null && {
11210 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11211 test ! -s conftest.err
11212 }; then
11213 ac_header_preproc=yes
11214else
11215 $as_echo "$as_me: failed program was:" >&5
11216sed 's/^/| /' conftest.$ac_ext >&5
11217
11218 ac_header_preproc=no
11219fi
11220
11221rm -f conftest.err conftest.$ac_ext
11222{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11223$as_echo "$ac_header_preproc" >&6; }
11224
11225# So? What about this header?
11226case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11227 yes:no: )
11228 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11229$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11230 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11231$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11232 ac_header_preproc=yes
11233 ;;
11234 no:yes:* )
11235 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11236$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11237 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11238$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11239 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11240$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11241 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11242$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11243 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11244$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11245 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11246$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11247
11248 ;;
11249esac
11250{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11251$as_echo_n "checking for $ac_header... " >&6; }
11252if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11253 $as_echo_n "(cached) " >&6
11254else
11255 eval "$as_ac_Header=\$ac_header_preproc"
11256fi
11257ac_res=`eval 'as_val=${'$as_ac_Header'}
11258 $as_echo "$as_val"'`
11259 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11260$as_echo "$ac_res" >&6; }
11261
11262fi
11263as_val=`eval 'as_val=${'$as_ac_Header'}
11264 $as_echo "$as_val"'`
11265 if test "x$as_val" = x""yes; then
11266 cat >>confdefs.h <<_ACEOF
11267#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11268_ACEOF
11269 HAVE_CONFDB_H=yes
11270else
11271 HAVE_CONFDB_H=no
11272fi
11273
11274done
11275
11276
11277 if test x$HAVE_CONFDB != xyes && \
11278 test x$HAVE_CONFDB_H = xyes; then
11279 check_lib_no_libs confdb confdb_initialize
11280 { $as_echo "$as_me:$LINENO: result: no pkg for confdb, using -lconfdb" >&5
11281$as_echo "no pkg for confdb, using -lconfdb" >&6; }
11282 CONFDB_LIBS="-lconfdb"
11283 HAVE_CONFDB=yes
11284 fi
11285
11286 if test x$BUILDCOROSYNC = xyes && \
11287 test x$HAVE_CONFDB != xyes &&
11288 test x$CLVMD != xall; then
11289 { { $as_echo "$as_me:$LINENO: error: bailing out... confdb library is required" >&5
11290$as_echo "$as_me: error: bailing out... confdb library is required" >&2;}
11291 { (exit 1); exit 1; }; }
11292 fi
11293fi
11294
11295if test x$CHECKCPG = xyes; then
11296
11297pkg_failed=no
11298{ $as_echo "$as_me:$LINENO: checking for CPG" >&5
11299$as_echo_n "checking for CPG... " >&6; }
11300
11301if test -n "$CPG_CFLAGS"; then
11302 pkg_cv_CPG_CFLAGS="$CPG_CFLAGS"
11303 elif test -n "$PKG_CONFIG"; then
11304 if test -n "$PKG_CONFIG" && \
11305 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
11306 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
11307 ac_status=$?
11308 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11309 (exit $ac_status); }; then
11310 pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
11311else
11312 pkg_failed=yes
11313fi
11314 else
11315 pkg_failed=untried
11316fi
11317if test -n "$CPG_LIBS"; then
11318 pkg_cv_CPG_LIBS="$CPG_LIBS"
11319 elif test -n "$PKG_CONFIG"; then
11320 if test -n "$PKG_CONFIG" && \
11321 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
11322 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
11323 ac_status=$?
11324 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11325 (exit $ac_status); }; then
11326 pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
11327else
11328 pkg_failed=yes
11329fi
11330 else
11331 pkg_failed=untried
11332fi
11333
11334
11335
11336if test $pkg_failed = yes; then
11337
11338if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11339 _pkg_short_errors_supported=yes
11340else
11341 _pkg_short_errors_supported=no
11342fi
11343 if test $_pkg_short_errors_supported = yes; then
11344 CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
11345 else
11346 CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
11347 fi
11348 # Put the nasty error message in config.log where it belongs
11349 echo "$CPG_PKG_ERRORS" >&5
11350
11351 { $as_echo "$as_me:$LINENO: result: no" >&5
11352$as_echo "no" >&6; }
11353 $bailout
11354elif test $pkg_failed = untried; then
11355 $bailout
11356else
11357 CPG_CFLAGS=$pkg_cv_CPG_CFLAGS
11358 CPG_LIBS=$pkg_cv_CPG_LIBS
11359 { $as_echo "$as_me:$LINENO: result: yes" >&5
11360$as_echo "yes" >&6; }
11361 HAVE_CPG=yes
11362fi
11363fi
11364
11365if test x$CHECKDLM = xyes; then
11366
11367pkg_failed=no
11368{ $as_echo "$as_me:$LINENO: checking for DLM" >&5
11369$as_echo_n "checking for DLM... " >&6; }
11370
11371if test -n "$DLM_CFLAGS"; then
11372 pkg_cv_DLM_CFLAGS="$DLM_CFLAGS"
11373 elif test -n "$PKG_CONFIG"; then
11374 if test -n "$PKG_CONFIG" && \
11375 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdlm\"") >&5
11376 ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5
11377 ac_status=$?
11378 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11379 (exit $ac_status); }; then
11380 pkg_cv_DLM_CFLAGS=`$PKG_CONFIG --cflags "libdlm" 2>/dev/null`
11381else
11382 pkg_failed=yes
11383fi
11384 else
11385 pkg_failed=untried
11386fi
11387if test -n "$DLM_LIBS"; then
11388 pkg_cv_DLM_LIBS="$DLM_LIBS"
11389 elif test -n "$PKG_CONFIG"; then
11390 if test -n "$PKG_CONFIG" && \
11391 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdlm\"") >&5
11392 ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5
11393 ac_status=$?
11394 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11395 (exit $ac_status); }; then
11396 pkg_cv_DLM_LIBS=`$PKG_CONFIG --libs "libdlm" 2>/dev/null`
11397else
11398 pkg_failed=yes
11399fi
11400 else
11401 pkg_failed=untried
11402fi
11403
11404
11405
11406if test $pkg_failed = yes; then
11407
11408if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11409 _pkg_short_errors_supported=yes
11410else
11411 _pkg_short_errors_supported=no
11412fi
11413 if test $_pkg_short_errors_supported = yes; then
11414 DLM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdlm" 2>&1`
11415 else
11416 DLM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdlm" 2>&1`
11417 fi
11418 # Put the nasty error message in config.log where it belongs
11419 echo "$DLM_PKG_ERRORS" >&5
11420
11421 { $as_echo "$as_me:$LINENO: result: no" >&5
11422$as_echo "no" >&6; }
11423 NOTFOUND=0
11424
11425for ac_header in libdlm.h
11426do
11427as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11428if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11429 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11430$as_echo_n "checking for $ac_header... " >&6; }
11431if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11432 $as_echo_n "(cached) " >&6
11433fi
11434ac_res=`eval 'as_val=${'$as_ac_Header'}
11435 $as_echo "$as_val"'`
11436 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11437$as_echo "$ac_res" >&6; }
11438else
11439 # Is the header compilable?
11440{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11441$as_echo_n "checking $ac_header usability... " >&6; }
11442cat >conftest.$ac_ext <<_ACEOF
11443/* confdefs.h. */
11444_ACEOF
11445cat confdefs.h >>conftest.$ac_ext
11446cat >>conftest.$ac_ext <<_ACEOF
11447/* end confdefs.h. */
11448$ac_includes_default
11449#include <$ac_header>
11450_ACEOF
11451rm -f conftest.$ac_objext
11452if { (ac_try="$ac_compile"
11453case "(($ac_try" in
11454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11455 *) ac_try_echo=$ac_try;;
11456esac
11457eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11458$as_echo "$ac_try_echo") >&5
11459 (eval "$ac_compile") 2>conftest.er1
11460 ac_status=$?
11461 grep -v '^ *+' conftest.er1 >conftest.err
11462 rm -f conftest.er1
11463 cat conftest.err >&5
11464 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11465 (exit $ac_status); } && {
11466 test -z "$ac_c_werror_flag" ||
11467 test ! -s conftest.err
11468 } && test -s conftest.$ac_objext; then
11469 ac_header_compiler=yes
11470else
11471 $as_echo "$as_me: failed program was:" >&5
11472sed 's/^/| /' conftest.$ac_ext >&5
11473
11474 ac_header_compiler=no
11475fi
11476
11477rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11478{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11479$as_echo "$ac_header_compiler" >&6; }
11480
11481# Is the header present?
11482{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11483$as_echo_n "checking $ac_header presence... " >&6; }
11484cat >conftest.$ac_ext <<_ACEOF
11485/* confdefs.h. */
11486_ACEOF
11487cat confdefs.h >>conftest.$ac_ext
11488cat >>conftest.$ac_ext <<_ACEOF
11489/* end confdefs.h. */
11490#include <$ac_header>
11491_ACEOF
11492if { (ac_try="$ac_cpp conftest.$ac_ext"
11493case "(($ac_try" in
11494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11495 *) ac_try_echo=$ac_try;;
11496esac
11497eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11498$as_echo "$ac_try_echo") >&5
11499 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11500 ac_status=$?
11501 grep -v '^ *+' conftest.er1 >conftest.err
11502 rm -f conftest.er1
11503 cat conftest.err >&5
11504 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11505 (exit $ac_status); } >/dev/null && {
11506 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11507 test ! -s conftest.err
11508 }; then
11509 ac_header_preproc=yes
11510else
11511 $as_echo "$as_me: failed program was:" >&5
11512sed 's/^/| /' conftest.$ac_ext >&5
11513
11514 ac_header_preproc=no
11515fi
11516
11517rm -f conftest.err conftest.$ac_ext
11518{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11519$as_echo "$ac_header_preproc" >&6; }
11520
11521# So? What about this header?
11522case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11523 yes:no: )
11524 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11525$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11526 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11527$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11528 ac_header_preproc=yes
11529 ;;
11530 no:yes:* )
11531 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11532$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11533 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11534$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11535 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11536$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11537 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11538$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11539 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11540$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11541 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11542$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11543
11544 ;;
11545esac
11546{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11547$as_echo_n "checking for $ac_header... " >&6; }
11548if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11549 $as_echo_n "(cached) " >&6
11550else
11551 eval "$as_ac_Header=\$ac_header_preproc"
11552fi
11553ac_res=`eval 'as_val=${'$as_ac_Header'}
11554 $as_echo "$as_val"'`
11555 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11556$as_echo "$ac_res" >&6; }
11557
11558fi
11559as_val=`eval 'as_val=${'$as_ac_Header'}
11560 $as_echo "$as_val"'`
11561 if test "x$as_val" = x""yes; then
11562 cat >>confdefs.h <<_ACEOF
11563#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11564_ACEOF
11565
11566else
11567 $bailout
11568fi
11569
11570done
11571
11572 check_lib_no_libs dlm dlm_lock -lpthread
11573 if test $NOTFOUND = 0; then
11574 { $as_echo "$as_me:$LINENO: result: no pkg for libdlm, using -ldlm" >&5
11575$as_echo "no pkg for libdlm, using -ldlm" >&6; }
11576 DLM_LIBS="-ldlm -lpthread"
11577 HAVE_DLM=yes
11578 fi
11579elif test $pkg_failed = untried; then
11580 NOTFOUND=0
11581
11582for ac_header in libdlm.h
11583do
11584as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11585if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11586 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11587$as_echo_n "checking for $ac_header... " >&6; }
11588if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11589 $as_echo_n "(cached) " >&6
11590fi
11591ac_res=`eval 'as_val=${'$as_ac_Header'}
11592 $as_echo "$as_val"'`
11593 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11594$as_echo "$ac_res" >&6; }
11595else
11596 # Is the header compilable?
11597{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11598$as_echo_n "checking $ac_header usability... " >&6; }
11599cat >conftest.$ac_ext <<_ACEOF
11600/* confdefs.h. */
11601_ACEOF
11602cat confdefs.h >>conftest.$ac_ext
11603cat >>conftest.$ac_ext <<_ACEOF
11604/* end confdefs.h. */
11605$ac_includes_default
11606#include <$ac_header>
11607_ACEOF
11608rm -f conftest.$ac_objext
11609if { (ac_try="$ac_compile"
11610case "(($ac_try" in
11611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11612 *) ac_try_echo=$ac_try;;
11613esac
11614eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11615$as_echo "$ac_try_echo") >&5
11616 (eval "$ac_compile") 2>conftest.er1
11617 ac_status=$?
11618 grep -v '^ *+' conftest.er1 >conftest.err
11619 rm -f conftest.er1
11620 cat conftest.err >&5
11621 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11622 (exit $ac_status); } && {
11623 test -z "$ac_c_werror_flag" ||
11624 test ! -s conftest.err
11625 } && test -s conftest.$ac_objext; then
11626 ac_header_compiler=yes
11627else
11628 $as_echo "$as_me: failed program was:" >&5
11629sed 's/^/| /' conftest.$ac_ext >&5
11630
11631 ac_header_compiler=no
11632fi
11633
11634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11635{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11636$as_echo "$ac_header_compiler" >&6; }
11637
11638# Is the header present?
11639{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11640$as_echo_n "checking $ac_header presence... " >&6; }
11641cat >conftest.$ac_ext <<_ACEOF
11642/* confdefs.h. */
11643_ACEOF
11644cat confdefs.h >>conftest.$ac_ext
11645cat >>conftest.$ac_ext <<_ACEOF
11646/* end confdefs.h. */
11647#include <$ac_header>
11648_ACEOF
11649if { (ac_try="$ac_cpp conftest.$ac_ext"
11650case "(($ac_try" in
11651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11652 *) ac_try_echo=$ac_try;;
11653esac
11654eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11655$as_echo "$ac_try_echo") >&5
11656 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11657 ac_status=$?
11658 grep -v '^ *+' conftest.er1 >conftest.err
11659 rm -f conftest.er1
11660 cat conftest.err >&5
11661 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11662 (exit $ac_status); } >/dev/null && {
11663 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11664 test ! -s conftest.err
11665 }; then
11666 ac_header_preproc=yes
11667else
11668 $as_echo "$as_me: failed program was:" >&5
11669sed 's/^/| /' conftest.$ac_ext >&5
11670
11671 ac_header_preproc=no
11672fi
11673
11674rm -f conftest.err conftest.$ac_ext
11675{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11676$as_echo "$ac_header_preproc" >&6; }
11677
11678# So? What about this header?
11679case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11680 yes:no: )
11681 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11682$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11683 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11684$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11685 ac_header_preproc=yes
11686 ;;
11687 no:yes:* )
11688 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11689$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11690 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11691$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11692 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11693$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11694 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11695$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11696 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11697$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11698 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11699$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11700
11701 ;;
11702esac
11703{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11704$as_echo_n "checking for $ac_header... " >&6; }
11705if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11706 $as_echo_n "(cached) " >&6
11707else
11708 eval "$as_ac_Header=\$ac_header_preproc"
11709fi
11710ac_res=`eval 'as_val=${'$as_ac_Header'}
11711 $as_echo "$as_val"'`
11712 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11713$as_echo "$ac_res" >&6; }
11714
11715fi
11716as_val=`eval 'as_val=${'$as_ac_Header'}
11717 $as_echo "$as_val"'`
11718 if test "x$as_val" = x""yes; then
11719 cat >>confdefs.h <<_ACEOF
11720#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11721_ACEOF
11722
11723else
11724 $bailout
11725fi
11726
11727done
11728
11729 check_lib_no_libs dlm dlm_lock -lpthread
11730 if test $NOTFOUND = 0; then
11731 { $as_echo "$as_me:$LINENO: result: no pkg for libdlm, using -ldlm" >&5
11732$as_echo "no pkg for libdlm, using -ldlm" >&6; }
11733 DLM_LIBS="-ldlm -lpthread"
11734 HAVE_DLM=yes
11735 fi
11736else
11737 DLM_CFLAGS=$pkg_cv_DLM_CFLAGS
11738 DLM_LIBS=$pkg_cv_DLM_LIBS
11739 { $as_echo "$as_me:$LINENO: result: yes" >&5
11740$as_echo "yes" >&6; }
11741 HAVE_DLM=yes
11742fi
11743fi
11744
11745if test x$CLVMD = xall; then
8c222979 11746 CLVMD=none
a946372e
AK
11747 if test x$HAVE_CCS = xyes && \
11748 test x$HAVE_GULM = xyes; then
8c222979
FDN
11749 { $as_echo "$as_me:$LINENO: result: Enabling clvmd gulm cluster manager" >&5
11750$as_echo "Enabling clvmd gulm cluster manager" >&6; }
11751 CLVMD="$CLVMD,gulm"
a946372e
AK
11752 fi
11753 if test x$HAVE_CMAN = xyes && \
11754 test x$HAVE_DLM = xyes; then
8c222979
FDN
11755 { $as_echo "$as_me:$LINENO: result: Enabling clvmd cman cluster manager" >&5
11756$as_echo "Enabling clvmd cman cluster manager" >&6; }
11757 CLVMD="$CLVMD,cman"
a946372e
AK
11758 fi
11759 if test x$HAVE_COROSYNC = xyes && \
11760 test x$HAVE_QUORUM = xyes && \
11761 test x$HAVE_CPG = xyes && \
11762 test x$HAVE_DLM = xyes && \
11763 test x$HAVE_CONFDB = xyes; then
8c222979
FDN
11764 { $as_echo "$as_me:$LINENO: result: Enabling clvmd corosync cluster manager" >&5
11765$as_echo "Enabling clvmd corosync cluster manager" >&6; }
11766 CLVMD="$CLVMD,corosync"
a946372e
AK
11767 fi
11768 if test x$HAVE_COROSYNC = xyes && \
11769 test x$HAVE_CPG = xyes && \
11770 test x$HAVE_SALCK = xyes; then
8c222979
FDN
11771 { $as_echo "$as_me:$LINENO: result: Enabling clvmd openais cluster manager" >&5
11772$as_echo "Enabling clvmd openais cluster manager" >&6; }
11773 CLVMD="$CLVMD,openais"
11774 fi
11775 if test x$CLVMD = xnone; then
11776 { $as_echo "$as_me:$LINENO: result: Disabling clvmd build. No cluster manager detected." >&5
11777$as_echo "Disabling clvmd build. No cluster manager detected." >&6; }
a946372e 11778 fi
a946372e
AK
11779fi
11780
11781################################################################################
66fd4529
AK
11782{ $as_echo "$as_me:$LINENO: checking whether to build cluster mirror log daemon" >&5
11783$as_echo_n "checking whether to build cluster mirror log daemon... " >&6; }
11784# Check whether --enable-cmirrord was given.
11785if test "${enable_cmirrord+set}" = set; then
11786 enableval=$enable_cmirrord; CMIRRORD=$enableval
11787else
11788 CMIRRORD=no
11789fi
11790
11791{ $as_echo "$as_me:$LINENO: result: $CMIRRORD" >&5
11792$as_echo "$CMIRRORD" >&6; }
11793
11794BUILD_CMIRRORD=$CMIRRORD
11795
11796################################################################################
11797
11798
11799if test "x$BUILD_CMIRRORD" = xyes; then
11800
11801# Check whether --with-cmirrord-pidfile was given.
11802if test "${with_cmirrord_pidfile+set}" = set; then
11803 withval=$with_cmirrord_pidfile; cat >>confdefs.h <<_ACEOF
11804#define CMIRRORD_PIDFILE "$withval"
11805_ACEOF
11806
11807else
11808 cat >>confdefs.h <<_ACEOF
11809#define CMIRRORD_PIDFILE "/var/run/cmirrord.pid"
11810_ACEOF
11811
a946372e
AK
11812fi
11813
66fd4529 11814fi
a946372e 11815
66fd4529
AK
11816################################################################################
11817if [ "x$BUILD_CMIRRORD" = xyes ]; then
90c80887
AK
11818 if test x$PKGCONFIG_INIT != x1; then
11819 pkg_config_init
11820 fi
11821
11822pkg_failed=no
11823{ $as_echo "$as_me:$LINENO: checking for SACKPT" >&5
11824$as_echo_n "checking for SACKPT... " >&6; }
11825
11826if test -n "$SACKPT_CFLAGS"; then
11827 pkg_cv_SACKPT_CFLAGS="$SACKPT_CFLAGS"
11828 elif test -n "$PKG_CONFIG"; then
11829 if test -n "$PKG_CONFIG" && \
11830 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\"") >&5
11831 ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5
11832 ac_status=$?
11833 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11834 (exit $ac_status); }; then
11835 pkg_cv_SACKPT_CFLAGS=`$PKG_CONFIG --cflags "libSaCkpt" 2>/dev/null`
11836else
11837 pkg_failed=yes
11838fi
11839 else
11840 pkg_failed=untried
11841fi
11842if test -n "$SACKPT_LIBS"; then
11843 pkg_cv_SACKPT_LIBS="$SACKPT_LIBS"
11844 elif test -n "$PKG_CONFIG"; then
11845 if test -n "$PKG_CONFIG" && \
11846 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\"") >&5
11847 ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5
11848 ac_status=$?
11849 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11850 (exit $ac_status); }; then
11851 pkg_cv_SACKPT_LIBS=`$PKG_CONFIG --libs "libSaCkpt" 2>/dev/null`
11852else
11853 pkg_failed=yes
11854fi
11855 else
11856 pkg_failed=untried
11857fi
11858
11859
11860
11861if test $pkg_failed = yes; then
11862
11863if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11864 _pkg_short_errors_supported=yes
11865else
11866 _pkg_short_errors_supported=no
11867fi
11868 if test $_pkg_short_errors_supported = yes; then
11869 SACKPT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaCkpt" 2>&1`
11870 else
11871 SACKPT_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaCkpt" 2>&1`
11872 fi
11873 # Put the nasty error message in config.log where it belongs
11874 echo "$SACKPT_PKG_ERRORS" >&5
11875
11876 { { $as_echo "$as_me:$LINENO: error: Package requirements (libSaCkpt) were not met:
11877
11878$SACKPT_PKG_ERRORS
11879
11880Consider adjusting the PKG_CONFIG_PATH environment variable if you
11881installed software in a non-standard prefix.
11882
11883Alternatively, you may set the environment variables SACKPT_CFLAGS
11884and SACKPT_LIBS to avoid the need to call pkg-config.
11885See the pkg-config man page for more details.
11886" >&5
11887$as_echo "$as_me: error: Package requirements (libSaCkpt) were not met:
11888
11889$SACKPT_PKG_ERRORS
11890
11891Consider adjusting the PKG_CONFIG_PATH environment variable if you
11892installed software in a non-standard prefix.
11893
11894Alternatively, you may set the environment variables SACKPT_CFLAGS
11895and SACKPT_LIBS to avoid the need to call pkg-config.
11896See the pkg-config man page for more details.
11897" >&2;}
11898 { (exit 1); exit 1; }; }
11899elif test $pkg_failed = untried; then
11900 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11901$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11902{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
11903is in your PATH or set the PKG_CONFIG environment variable to the full
11904path to pkg-config.
11905
11906Alternatively, you may set the environment variables SACKPT_CFLAGS
11907and SACKPT_LIBS to avoid the need to call pkg-config.
11908See the pkg-config man page for more details.
11909
11910To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11911See \`config.log' for more details." >&5
11912$as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
11913is in your PATH or set the PKG_CONFIG environment variable to the full
11914path to pkg-config.
11915
11916Alternatively, you may set the environment variables SACKPT_CFLAGS
11917and SACKPT_LIBS to avoid the need to call pkg-config.
11918See the pkg-config man page for more details.
11919
11920To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11921See \`config.log' for more details." >&2;}
11922 { (exit 1); exit 1; }; }; }
11923else
11924 SACKPT_CFLAGS=$pkg_cv_SACKPT_CFLAGS
11925 SACKPT_LIBS=$pkg_cv_SACKPT_LIBS
11926 { $as_echo "$as_me:$LINENO: result: yes" >&5
11927$as_echo "yes" >&6; }
11928 :
11929fi
11930 if test x$HAVE_CPG != xyes; then
a946372e
AK
11931
11932pkg_failed=no
11933{ $as_echo "$as_me:$LINENO: checking for CPG" >&5
11934$as_echo_n "checking for CPG... " >&6; }
11935
11936if test -n "$CPG_CFLAGS"; then
11937 pkg_cv_CPG_CFLAGS="$CPG_CFLAGS"
11938 elif test -n "$PKG_CONFIG"; then
11939 if test -n "$PKG_CONFIG" && \
11940 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
11941 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
11942 ac_status=$?
11943 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11944 (exit $ac_status); }; then
11945 pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
11946else
11947 pkg_failed=yes
11948fi
11949 else
11950 pkg_failed=untried
11951fi
11952if test -n "$CPG_LIBS"; then
11953 pkg_cv_CPG_LIBS="$CPG_LIBS"
11954 elif test -n "$PKG_CONFIG"; then
11955 if test -n "$PKG_CONFIG" && \
11956 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
11957 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
11958 ac_status=$?
11959 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11960 (exit $ac_status); }; then
11961 pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
11962else
11963 pkg_failed=yes
11964fi
11965 else
11966 pkg_failed=untried
11967fi
11968
11969
11970
11971if test $pkg_failed = yes; then
11972
11973if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11974 _pkg_short_errors_supported=yes
11975else
11976 _pkg_short_errors_supported=no
11977fi
11978 if test $_pkg_short_errors_supported = yes; then
11979 CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
11980 else
11981 CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
11982 fi
11983 # Put the nasty error message in config.log where it belongs
11984 echo "$CPG_PKG_ERRORS" >&5
11985
90c80887
AK
11986 { { $as_echo "$as_me:$LINENO: error: Package requirements (libcpg) were not met:
11987
11988$CPG_PKG_ERRORS
11989
11990Consider adjusting the PKG_CONFIG_PATH environment variable if you
11991installed software in a non-standard prefix.
11992
11993Alternatively, you may set the environment variables CPG_CFLAGS
11994and CPG_LIBS to avoid the need to call pkg-config.
11995See the pkg-config man page for more details.
11996" >&5
11997$as_echo "$as_me: error: Package requirements (libcpg) were not met:
11998
11999$CPG_PKG_ERRORS
12000
12001Consider adjusting the PKG_CONFIG_PATH environment variable if you
12002installed software in a non-standard prefix.
12003
12004Alternatively, you may set the environment variables CPG_CFLAGS
12005and CPG_LIBS to avoid the need to call pkg-config.
12006See the pkg-config man page for more details.
12007" >&2;}
12008 { (exit 1); exit 1; }; }
a946372e 12009elif test $pkg_failed = untried; then
90c80887
AK
12010 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12011$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12012{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
12013is in your PATH or set the PKG_CONFIG environment variable to the full
12014path to pkg-config.
12015
12016Alternatively, you may set the environment variables CPG_CFLAGS
12017and CPG_LIBS to avoid the need to call pkg-config.
12018See the pkg-config man page for more details.
12019
12020To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12021See \`config.log' for more details." >&5
12022$as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
12023is in your PATH or set the PKG_CONFIG environment variable to the full
12024path to pkg-config.
12025
12026Alternatively, you may set the environment variables CPG_CFLAGS
12027and CPG_LIBS to avoid the need to call pkg-config.
12028See the pkg-config man page for more details.
12029
12030To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12031See \`config.log' for more details." >&2;}
12032 { (exit 1); exit 1; }; }; }
a946372e
AK
12033else
12034 CPG_CFLAGS=$pkg_cv_CPG_CFLAGS
12035 CPG_LIBS=$pkg_cv_CPG_LIBS
12036 { $as_echo "$as_me:$LINENO: result: yes" >&5
12037$as_echo "yes" >&6; }
12038 :
12039fi
90c80887 12040 fi
a946372e
AK
12041fi
12042
12043################################################################################
12044{ $as_echo "$as_me:$LINENO: checking whether to enable debugging" >&5
12045$as_echo_n "checking whether to enable debugging... " >&6; }
12046# Check whether --enable-debug was given.
12047if test "${enable_debug+set}" = set; then
12048 enableval=$enable_debug; DEBUG=$enableval
12049else
12050 DEBUG=no
12051fi
12052
12053{ $as_echo "$as_me:$LINENO: result: $DEBUG" >&5
12054$as_echo "$DEBUG" >&6; }
12055
12056if test x$DEBUG = xyes; then
12057 COPTIMISE_FLAG=
12058else
12059 CSCOPE_CMD=
12060fi
12061
12062################################################################################
12063{ $as_echo "$as_me:$LINENO: checking for C optimisation flag" >&5
12064$as_echo_n "checking for C optimisation flag... " >&6; }
12065
12066# Check whether --with-optimisation was given.
12067if test "${with_optimisation+set}" = set; then
12068 withval=$with_optimisation; COPTIMISE_FLAG="$withval"
12069fi
12070
12071{ $as_echo "$as_me:$LINENO: result: $COPTIMISE_FLAG" >&5
12072$as_echo "$COPTIMISE_FLAG" >&6; }
12073
12074################################################################################
12075{ $as_echo "$as_me:$LINENO: checking whether to gather gcov profiling data" >&5
12076$as_echo_n "checking whether to gather gcov profiling data... " >&6; }
12077# Check whether --enable-profiling was given.
12078if test "${enable_profiling+set}" = set; then
5556819a 12079 enableval=$enable_profiling; PROFILING=$enableval
fddafd51 12080else
5556819a 12081 PROFILING=no
fddafd51
ZK
12082fi
12083
ec6a6fbe
AK
12084{ $as_echo "$as_me:$LINENO: result: $PROFILING" >&5
12085$as_echo "$PROFILING" >&6; }
5556819a
AK
12086
12087if test "x$PROFILING" = xyes; then
12088 COPTIMISE_FLAG="$COPTIMISE_FLAG -fprofile-arcs -ftest-coverage"
12089 # Extract the first word of "lcov", so it can be a program name with args.
fddafd51 12090set dummy lcov; ac_word=$2
ec6a6fbe
AK
12091{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12092$as_echo_n "checking for $ac_word... " >&6; }
fddafd51 12093if test "${ac_cv_path_LCOV+set}" = set; then
ec6a6fbe 12094 $as_echo_n "(cached) " >&6
fddafd51
ZK
12095else
12096 case $LCOV in
12097 [\\/]* | ?:[\\/]*)
12098 ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path.
12099 ;;
12100 *)
12101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12102for as_dir in $PATH
12103do
12104 IFS=$as_save_IFS
12105 test -z "$as_dir" && as_dir=.
12106 for ac_exec_ext in '' $ac_executable_extensions; do
12107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12108 ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 12109 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
fddafd51
ZK
12110 break 2
12111 fi
12112done
12113done
12114IFS=$as_save_IFS
12115
b145d876 12116 test -z "$ac_cv_path_LCOV" && ac_cv_path_LCOV="no"
fddafd51
ZK
12117 ;;
12118esac
12119fi
12120LCOV=$ac_cv_path_LCOV
12121if test -n "$LCOV"; then
ec6a6fbe
AK
12122 { $as_echo "$as_me:$LINENO: result: $LCOV" >&5
12123$as_echo "$LCOV" >&6; }
fddafd51 12124else
ec6a6fbe
AK
12125 { $as_echo "$as_me:$LINENO: result: no" >&5
12126$as_echo "no" >&6; }
fddafd51
ZK
12127fi
12128
12129
5556819a 12130 # Extract the first word of "genhtml", so it can be a program name with args.
fddafd51 12131set dummy genhtml; ac_word=$2
ec6a6fbe
AK
12132{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12133$as_echo_n "checking for $ac_word... " >&6; }
fddafd51 12134if test "${ac_cv_path_GENHTML+set}" = set; then
ec6a6fbe 12135 $as_echo_n "(cached) " >&6
fddafd51
ZK
12136else
12137 case $GENHTML in
12138 [\\/]* | ?:[\\/]*)
12139 ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path.
12140 ;;
12141 *)
12142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12143for as_dir in $PATH
12144do
12145 IFS=$as_save_IFS
12146 test -z "$as_dir" && as_dir=.
12147 for ac_exec_ext in '' $ac_executable_extensions; do
12148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12149 ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 12150 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
fddafd51
ZK
12151 break 2
12152 fi
12153done
12154done
12155IFS=$as_save_IFS
12156
b145d876 12157 test -z "$ac_cv_path_GENHTML" && ac_cv_path_GENHTML="no"
fddafd51
ZK
12158 ;;
12159esac
12160fi
12161GENHTML=$ac_cv_path_GENHTML
12162if test -n "$GENHTML"; then
ec6a6fbe
AK
12163 { $as_echo "$as_me:$LINENO: result: $GENHTML" >&5
12164$as_echo "$GENHTML" >&6; }
fddafd51 12165else
ec6a6fbe
AK
12166 { $as_echo "$as_me:$LINENO: result: no" >&5
12167$as_echo "no" >&6; }
fddafd51
ZK
12168fi
12169
12170
b145d876 12171 if test "$LCOV" = no -o "$GENHTML" = no ; then
ec6a6fbe
AK
12172 { { $as_echo "$as_me:$LINENO: error: lcov and genhtml are required for profiling" >&5
12173$as_echo "$as_me: error: lcov and genhtml are required for profiling" >&2;}
b145d876
ZK
12174 { (exit 1); exit 1; }; }
12175 fi
5556819a 12176fi
d0191583
JM
12177
12178################################################################################
ec6a6fbe
AK
12179{ $as_echo "$as_me:$LINENO: checking whether to use device-mapper" >&5
12180$as_echo_n "checking whether to use device-mapper... " >&6; }
d0191583
JM
12181# Check whether --enable-devmapper was given.
12182if test "${enable_devmapper+set}" = set; then
12183 enableval=$enable_devmapper; DEVMAPPER=$enableval
fc54be10
AK
12184fi
12185
ec6a6fbe
AK
12186{ $as_echo "$as_me:$LINENO: result: $DEVMAPPER" >&5
12187$as_echo "$DEVMAPPER" >&6; }
d0191583
JM
12188
12189if test x$DEVMAPPER = xyes; then
ad6254c5
AK
12190
12191cat >>confdefs.h <<\_ACEOF
d0191583 12192#define DEVMAPPER_SUPPORT 1
ad6254c5
AK
12193_ACEOF
12194
12195fi
12196
a5f46f6a
AK
12197################################################################################
12198{ $as_echo "$as_me:$LINENO: checking whether to enable synchronisation with udev processing" >&5
12199$as_echo_n "checking whether to enable synchronisation with udev processing... " >&6; }
12200# Check whether --enable-udev_sync was given.
12201if test "${enable_udev_sync+set}" = set; then
12202 enableval=$enable_udev_sync; UDEV_SYNC=$enableval
12203else
12204 UDEV_SYNC=no
12205fi
12206
12207{ $as_echo "$as_me:$LINENO: result: $UDEV_SYNC" >&5
12208$as_echo "$UDEV_SYNC" >&6; }
12209
12210if test x$UDEV_SYNC = xyes; then
12211
12212cat >>confdefs.h <<\_ACEOF
12213#define UDEV_SYNC_SUPPORT 1
12214_ACEOF
12215
12216fi
12217
12218{ $as_echo "$as_me:$LINENO: checking whether to enable installation of udev rules required for synchronisation" >&5
12219$as_echo_n "checking whether to enable installation of udev rules required for synchronisation... " >&6; }
12220# Check whether --enable-udev_rules was given.
12221if test "${enable_udev_rules+set}" = set; then
12222 enableval=$enable_udev_rules; UDEV_RULES=$enableval
12223else
12224 UDEV_RULES=$UDEV_SYNC
12225fi
12226
12227{ $as_echo "$as_me:$LINENO: result: $UDEV_RULES" >&5
12228$as_echo "$UDEV_RULES" >&6; }
12229
90c80887
AK
12230################################################################################
12231
12232if test x$UDEV_SYNC = xyes; then
12233 { $as_echo "$as_me:$LINENO: checking for udev_queue_get_udev_is_active in -ludev" >&5
12234$as_echo_n "checking for udev_queue_get_udev_is_active in -ludev... " >&6; }
12235if test "${ac_cv_lib_udev_udev_queue_get_udev_is_active+set}" = set; then
12236 $as_echo_n "(cached) " >&6
12237else
12238 ac_check_lib_save_LIBS=$LIBS
12239LIBS="-ludev $LIBS"
12240cat >conftest.$ac_ext <<_ACEOF
12241/* confdefs.h. */
12242_ACEOF
12243cat confdefs.h >>conftest.$ac_ext
12244cat >>conftest.$ac_ext <<_ACEOF
12245/* end confdefs.h. */
12246
12247/* Override any GCC internal prototype to avoid an error.
12248 Use char because int might match the return type of a GCC
12249 builtin and then its argument prototype would still apply. */
12250#ifdef __cplusplus
12251extern "C"
12252#endif
12253char udev_queue_get_udev_is_active ();
12254int
12255main ()
12256{
12257return udev_queue_get_udev_is_active ();
12258 ;
12259 return 0;
12260}
12261_ACEOF
12262rm -f conftest.$ac_objext conftest$ac_exeext
12263if { (ac_try="$ac_link"
12264case "(($ac_try" in
12265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12266 *) ac_try_echo=$ac_try;;
12267esac
12268eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12269$as_echo "$ac_try_echo") >&5
12270 (eval "$ac_link") 2>conftest.er1
12271 ac_status=$?
12272 grep -v '^ *+' conftest.er1 >conftest.err
12273 rm -f conftest.er1
12274 cat conftest.err >&5
12275 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12276 (exit $ac_status); } && {
12277 test -z "$ac_c_werror_flag" ||
12278 test ! -s conftest.err
12279 } && test -s conftest$ac_exeext && {
12280 test "$cross_compiling" = yes ||
12281 $as_test_x conftest$ac_exeext
12282 }; then
12283 ac_cv_lib_udev_udev_queue_get_udev_is_active=yes
12284else
12285 $as_echo "$as_me: failed program was:" >&5
12286sed 's/^/| /' conftest.$ac_ext >&5
12287
12288 ac_cv_lib_udev_udev_queue_get_udev_is_active=no
12289fi
12290
12291rm -rf conftest.dSYM
12292rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12293 conftest$ac_exeext conftest.$ac_ext
12294LIBS=$ac_check_lib_save_LIBS
12295fi
12296{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_udev_udev_queue_get_udev_is_active" >&5
12297$as_echo "$ac_cv_lib_udev_udev_queue_get_udev_is_active" >&6; }
12298if test "x$ac_cv_lib_udev_udev_queue_get_udev_is_active" = x""yes; then
12299 HAVE_UDEV_QUEUE_GET_UDEV_IS_ACTIVE=yes
12300else
12301 HAVE_UDEV_QUEUE_GET_UDEV_IS_ACTIVE=no
12302fi
12303
12304
12305 if test x$HAVE_UDEV_QUEUE_GET_UDEV_IS_ACTIVE = xyes; then
12306
12307cat >>confdefs.h <<\_ACEOF
12308#define HAVE_UDEV_QUEUE_GET_UDEV_IS_ACTIVE 1
12309_ACEOF
12310
db724a44 12311 UDEV_LIBS="-ludev"
0878503f 12312 else
db724a44 12313 UDEV_LIBS=
0878503f
PR
12314 { $as_echo "$as_me:$LINENO: WARNING: It won't be possible to get udev state. We will assume that udev is not running." >&5
12315$as_echo "$as_me: WARNING: It won't be possible to get udev state. We will assume that udev is not running." >&2;}
90c80887
AK
12316 fi
12317fi
12318
93bd259b
AK
12319################################################################################
12320# Check whether --enable-compat was given.
12321if test "${enable_compat+set}" = set; then
12322 enableval=$enable_compat; DM_COMPAT=$enableval
12323else
12324 DM_COMPAT=no
12325fi
12326
12327
95eaa683
AK
12328################################################################################
12329# Check whether --enable-units-compat was given.
12330if test "${enable_units_compat+set}" = set; then
12331 enableval=$enable_units_compat; UNITS_COMPAT=$enableval
12332else
12333 UNITS_COMPAT=no
12334fi
12335
12336
12337if test x$UNITS_COMPAT = xyes; then
12338
12339cat >>confdefs.h <<\_ACEOF
12340#define DEFAULT_SI_UNIT_CONSISTENCY 0
12341_ACEOF
12342
12343fi
12344
93bd259b
AK
12345################################################################################
12346# Check whether --enable-ioctl was given.
12347if test "${enable_ioctl+set}" = set; then
12348 enableval=$enable_ioctl; DM_IOCTLS=$enableval
12349fi
12350
12351
d0191583 12352################################################################################
ec6a6fbe
AK
12353{ $as_echo "$as_me:$LINENO: checking whether to enable O_DIRECT" >&5
12354$as_echo_n "checking whether to enable O_DIRECT... " >&6; }
d0191583
JM
12355# Check whether --enable-o_direct was given.
12356if test "${enable_o_direct+set}" = set; then
12357 enableval=$enable_o_direct; ODIRECT=$enableval
ad6254c5 12358fi
ad6254c5 12359
ec6a6fbe
AK
12360{ $as_echo "$as_me:$LINENO: result: $ODIRECT" >&5
12361$as_echo "$ODIRECT" >&6; }
ad6254c5 12362
d0191583 12363if test x$ODIRECT = xyes; then
ad6254c5 12364
d0191583
JM
12365cat >>confdefs.h <<\_ACEOF
12366#define O_DIRECT_SUPPORT 1
12367_ACEOF
ad6254c5 12368
d0191583 12369fi
ad6254c5 12370
572fefeb
AK
12371################################################################################
12372{ $as_echo "$as_me:$LINENO: checking whether to build liblvm2app.so application library" >&5
12373$as_echo_n "checking whether to build liblvm2app.so application library... " >&6; }
12374# Check whether --enable-applib was given.
12375if test "${enable_applib+set}" = set; then
12376 enableval=$enable_applib; APPLIB=$enableval
12377else
12378 APPLIB=no
12379fi
12380
12381{ $as_echo "$as_me:$LINENO: result: $APPLIB" >&5
12382$as_echo "$APPLIB" >&6; }
12383
12384test x$APPLIB = xyes \
12385 && LVM2APP_LIB=-llvm2app \
12386 || LVM2APP_LIB=
12387
d0191583 12388################################################################################
ec6a6fbe
AK
12389{ $as_echo "$as_me:$LINENO: checking whether to compile liblvm2cmd.so" >&5
12390$as_echo_n "checking whether to compile liblvm2cmd.so... " >&6; }
d0191583
JM
12391# Check whether --enable-cmdlib was given.
12392if test "${enable_cmdlib+set}" = set; then
12393 enableval=$enable_cmdlib; CMDLIB=$enableval
ad6254c5 12394else
d0191583
JM
12395 CMDLIB=no
12396fi
8a2fc586 12397
ec6a6fbe
AK
12398{ $as_echo "$as_me:$LINENO: result: $CMDLIB" >&5
12399$as_echo "$CMDLIB" >&6; }
8a2fc586 12400
2a9a80c9 12401test x$CMDLIB = xyes \
d179cc7a
JM
12402 && LVM2CMD_LIB=-llvm2cmd \
12403 || LVM2CMD_LIB=
12404
93bd259b
AK
12405################################################################################
12406# Check whether --enable-pkgconfig was given.
12407if test "${enable_pkgconfig+set}" = set; then
12408 enableval=$enable_pkgconfig; PKGCONFIG=$enableval
12409else
12410 PKGCONFIG=no
12411fi
12412
2a9a80c9 12413
d0191583 12414################################################################################
ec6a6fbe
AK
12415{ $as_echo "$as_me:$LINENO: checking whether to install fsadm" >&5
12416$as_echo_n "checking whether to install fsadm... " >&6; }
d0191583
JM
12417# Check whether --enable-fsadm was given.
12418if test "${enable_fsadm+set}" = set; then
12419 enableval=$enable_fsadm; FSADM=$enableval
12420fi
8a2fc586 12421
ec6a6fbe
AK
12422{ $as_echo "$as_me:$LINENO: result: $FSADM" >&5
12423$as_echo "$FSADM" >&6; }
8a2fc586 12424
d0191583 12425################################################################################
ec6a6fbe
AK
12426{ $as_echo "$as_me:$LINENO: checking whether to use dmeventd" >&5
12427$as_echo_n "checking whether to use dmeventd... " >&6; }
d0191583
JM
12428# Check whether --enable-dmeventd was given.
12429if test "${enable_dmeventd+set}" = set; then
12430 enableval=$enable_dmeventd; DMEVENTD=$enableval
12431fi
ad6254c5 12432
ec6a6fbe
AK
12433{ $as_echo "$as_me:$LINENO: result: $DMEVENTD" >&5
12434$as_echo "$DMEVENTD" >&6; }
ad6254c5 12435
93bd259b
AK
12436BUILD_DMEVENTD=$DMEVENTD
12437
2a9a80c9
PR
12438if test x$DMEVENTD = xyes; then
12439 if test x$MIRRORS != xinternal; then
ec6a6fbe 12440 { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd currently requires --with-mirrors=internal
2a9a80c9 12441 " >&5
ec6a6fbe 12442$as_echo "$as_me: error: --enable-dmeventd currently requires --with-mirrors=internal
2a9a80c9 12443 " >&2;}
d0191583 12444 { (exit 1); exit 1; }; }
2a9a80c9
PR
12445 fi
12446 if test x$CMDLIB = xno; then
ec6a6fbe 12447 { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd requires --enable-cmdlib to be used as well
2a9a80c9 12448 " >&5
ec6a6fbe 12449$as_echo "$as_me: error: --enable-dmeventd requires --enable-cmdlib to be used as well
2a9a80c9
PR
12450 " >&2;}
12451 { (exit 1); exit 1; }; }
12452 fi
ad6254c5 12453fi
7a197a62 12454
d0191583
JM
12455if test x$DMEVENTD = xyes; then
12456
12457cat >>confdefs.h <<\_ACEOF
12458#define DMEVENTD 1
ad6254c5
AK
12459_ACEOF
12460
ad6254c5 12461fi
93bd259b
AK
12462
12463################################################################################
12464
ec6a6fbe
AK
12465{ $as_echo "$as_me:$LINENO: checking for getline in -lc" >&5
12466$as_echo_n "checking for getline in -lc... " >&6; }
93bd259b 12467if test "${ac_cv_lib_c_getline+set}" = set; then
ec6a6fbe 12468 $as_echo_n "(cached) " >&6
93bd259b
AK
12469else
12470 ac_check_lib_save_LIBS=$LIBS
12471LIBS="-lc $LIBS"
12472cat >conftest.$ac_ext <<_ACEOF
12473/* confdefs.h. */
12474_ACEOF
12475cat confdefs.h >>conftest.$ac_ext
12476cat >>conftest.$ac_ext <<_ACEOF
12477/* end confdefs.h. */
12478
12479/* Override any GCC internal prototype to avoid an error.
12480 Use char because int might match the return type of a GCC
12481 builtin and then its argument prototype would still apply. */
12482#ifdef __cplusplus
12483extern "C"
12484#endif
12485char getline ();
12486int
12487main ()
12488{
12489return getline ();
12490 ;
12491 return 0;
12492}
12493_ACEOF
12494rm -f conftest.$ac_objext conftest$ac_exeext
12495if { (ac_try="$ac_link"
12496case "(($ac_try" in
12497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12498 *) ac_try_echo=$ac_try;;
12499esac
ec6a6fbe
AK
12500eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12501$as_echo "$ac_try_echo") >&5
93bd259b
AK
12502 (eval "$ac_link") 2>conftest.er1
12503 ac_status=$?
12504 grep -v '^ *+' conftest.er1 >conftest.err
12505 rm -f conftest.er1
12506 cat conftest.err >&5
ec6a6fbe 12507 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
93bd259b
AK
12508 (exit $ac_status); } && {
12509 test -z "$ac_c_werror_flag" ||
12510 test ! -s conftest.err
ec6a6fbe
AK
12511 } && test -s conftest$ac_exeext && {
12512 test "$cross_compiling" = yes ||
12513 $as_test_x conftest$ac_exeext
12514 }; then
93bd259b
AK
12515 ac_cv_lib_c_getline=yes
12516else
ec6a6fbe 12517 $as_echo "$as_me: failed program was:" >&5
93bd259b
AK
12518sed 's/^/| /' conftest.$ac_ext >&5
12519
12520 ac_cv_lib_c_getline=no
12521fi
12522
ec6a6fbe 12523rm -rf conftest.dSYM
93bd259b
AK
12524rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12525 conftest$ac_exeext conftest.$ac_ext
12526LIBS=$ac_check_lib_save_LIBS
12527fi
ec6a6fbe
AK
12528{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_getline" >&5
12529$as_echo "$ac_cv_lib_c_getline" >&6; }
12530if test "x$ac_cv_lib_c_getline" = x""yes; then
93bd259b
AK
12531
12532cat >>confdefs.h <<\_ACEOF
12533#define HAVE_GETLINE 1
12534_ACEOF
12535
12536fi
12537
12538
12539################################################################################
12540
ec6a6fbe
AK
12541{ $as_echo "$as_me:$LINENO: checking for canonicalize_file_name in -lc" >&5
12542$as_echo_n "checking for canonicalize_file_name in -lc... " >&6; }
93bd259b 12543if test "${ac_cv_lib_c_canonicalize_file_name+set}" = set; then
ec6a6fbe 12544 $as_echo_n "(cached) " >&6
93bd259b
AK
12545else
12546 ac_check_lib_save_LIBS=$LIBS
12547LIBS="-lc $LIBS"
12548cat >conftest.$ac_ext <<_ACEOF
12549/* confdefs.h. */
12550_ACEOF
12551cat confdefs.h >>conftest.$ac_ext
12552cat >>conftest.$ac_ext <<_ACEOF
12553/* end confdefs.h. */
12554
12555/* Override any GCC internal prototype to avoid an error.
12556 Use char because int might match the return type of a GCC
12557 builtin and then its argument prototype would still apply. */
12558#ifdef __cplusplus
12559extern "C"
12560#endif
12561char canonicalize_file_name ();
12562int
12563main ()
12564{
12565return canonicalize_file_name ();
12566 ;
12567 return 0;
12568}
12569_ACEOF
12570rm -f conftest.$ac_objext conftest$ac_exeext
12571if { (ac_try="$ac_link"
12572case "(($ac_try" in
12573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12574 *) ac_try_echo=$ac_try;;
12575esac
ec6a6fbe
AK
12576eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12577$as_echo "$ac_try_echo") >&5
93bd259b
AK
12578 (eval "$ac_link") 2>conftest.er1
12579 ac_status=$?
12580 grep -v '^ *+' conftest.er1 >conftest.err
12581 rm -f conftest.er1
12582 cat conftest.err >&5
ec6a6fbe 12583 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
93bd259b
AK
12584 (exit $ac_status); } && {
12585 test -z "$ac_c_werror_flag" ||
12586 test ! -s conftest.err
ec6a6fbe
AK
12587 } && test -s conftest$ac_exeext && {
12588 test "$cross_compiling" = yes ||
12589 $as_test_x conftest$ac_exeext
12590 }; then
93bd259b
AK
12591 ac_cv_lib_c_canonicalize_file_name=yes
12592else
ec6a6fbe 12593 $as_echo "$as_me: failed program was:" >&5
93bd259b
AK
12594sed 's/^/| /' conftest.$ac_ext >&5
12595
12596 ac_cv_lib_c_canonicalize_file_name=no
12597fi
12598
ec6a6fbe 12599rm -rf conftest.dSYM
93bd259b
AK
12600rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12601 conftest$ac_exeext conftest.$ac_ext
12602LIBS=$ac_check_lib_save_LIBS
12603fi
ec6a6fbe
AK
12604{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_canonicalize_file_name" >&5
12605$as_echo "$ac_cv_lib_c_canonicalize_file_name" >&6; }
12606if test "x$ac_cv_lib_c_canonicalize_file_name" = x""yes; then
93bd259b
AK
12607
12608cat >>confdefs.h <<\_ACEOF
12609#define HAVE_CANONICALIZE_FILE_NAME 1
12610_ACEOF
12611
12612fi
12613
12614
d0191583
JM
12615################################################################################
12616if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ];
12617 then exec_prefix="";
12618fi;
ad6254c5 12619
ad6254c5 12620################################################################################
ec6a6fbe
AK
12621{ $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12622$as_echo_n "checking for dlopen in -ldl... " >&6; }
ad6254c5 12623if test "${ac_cv_lib_dl_dlopen+set}" = set; then
ec6a6fbe 12624 $as_echo_n "(cached) " >&6
ad6254c5
AK
12625else
12626 ac_check_lib_save_LIBS=$LIBS
12627LIBS="-ldl $LIBS"
12628cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
12629/* confdefs.h. */
12630_ACEOF
12631cat confdefs.h >>conftest.$ac_ext
12632cat >>conftest.$ac_ext <<_ACEOF
12633/* end confdefs.h. */
12634
7a197a62
AK
12635/* Override any GCC internal prototype to avoid an error.
12636 Use char because int might match the return type of a GCC
12637 builtin and then its argument prototype would still apply. */
ad6254c5
AK
12638#ifdef __cplusplus
12639extern "C"
12640#endif
ad6254c5
AK
12641char dlopen ();
12642int
12643main ()
12644{
7a197a62 12645return dlopen ();
ad6254c5
AK
12646 ;
12647 return 0;
12648}
12649_ACEOF
12650rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
12651if { (ac_try="$ac_link"
12652case "(($ac_try" in
12653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12654 *) ac_try_echo=$ac_try;;
12655esac
ec6a6fbe
AK
12656eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12657$as_echo "$ac_try_echo") >&5
7a197a62 12658 (eval "$ac_link") 2>conftest.er1
ad6254c5 12659 ac_status=$?
8a2fc586
AK
12660 grep -v '^ *+' conftest.er1 >conftest.err
12661 rm -f conftest.er1
12662 cat conftest.err >&5
ec6a6fbe 12663 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
12664 (exit $ac_status); } && {
12665 test -z "$ac_c_werror_flag" ||
12666 test ! -s conftest.err
ec6a6fbe
AK
12667 } && test -s conftest$ac_exeext && {
12668 test "$cross_compiling" = yes ||
12669 $as_test_x conftest$ac_exeext
12670 }; then
ad6254c5
AK
12671 ac_cv_lib_dl_dlopen=yes
12672else
ec6a6fbe 12673 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
12674sed 's/^/| /' conftest.$ac_ext >&5
12675
7a197a62 12676 ac_cv_lib_dl_dlopen=no
ad6254c5 12677fi
7a197a62 12678
ec6a6fbe 12679rm -rf conftest.dSYM
25fbec5b 12680rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 12681 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
12682LIBS=$ac_check_lib_save_LIBS
12683fi
ec6a6fbe
AK
12684{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12685$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12686if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
ad6254c5 12687
72b2cb61
AK
12688
12689cat >>confdefs.h <<\_ACEOF
12690#define HAVE_LIBDL 1
12691_ACEOF
12692
19a2c6e0
ZK
12693 DL_LIBS="-ldl"
12694 HAVE_LIBDL=yes
ad6254c5 12695else
19a2c6e0
ZK
12696
12697 DL_LIBS=
ad6254c5
AK
12698 HAVE_LIBDL=no
12699fi
12700
19a2c6e0 12701
ad6254c5
AK
12702################################################################################
12703if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \
12704 -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \
12705 \) -a "x$STATIC_LINK" = xyes ];
ec6a6fbe 12706 then { { $as_echo "$as_me:$LINENO: error: Features cannot be 'shared' when building statically
ad6254c5 12707" >&5
ec6a6fbe 12708$as_echo "$as_me: error: Features cannot be 'shared' when building statically
ad6254c5
AK
12709" >&2;}
12710 { (exit 1); exit 1; }; }
12711fi
12712
f30875db
ZK
12713################################################################################
12714if [ "$DMEVENTD" = yes -o "$CLVMD" != none ] ; then
12715 { $as_echo "$as_me:$LINENO: checking for pthread_mutex_lock in -lpthread" >&5
12716$as_echo_n "checking for pthread_mutex_lock in -lpthread... " >&6; }
12717if test "${ac_cv_lib_pthread_pthread_mutex_lock+set}" = set; then
12718 $as_echo_n "(cached) " >&6
12719else
12720 ac_check_lib_save_LIBS=$LIBS
12721LIBS="-lpthread $LIBS"
12722cat >conftest.$ac_ext <<_ACEOF
12723/* confdefs.h. */
12724_ACEOF
12725cat confdefs.h >>conftest.$ac_ext
12726cat >>conftest.$ac_ext <<_ACEOF
12727/* end confdefs.h. */
12728
12729/* Override any GCC internal prototype to avoid an error.
12730 Use char because int might match the return type of a GCC
12731 builtin and then its argument prototype would still apply. */
12732#ifdef __cplusplus
12733extern "C"
12734#endif
12735char pthread_mutex_lock ();
12736int
12737main ()
12738{
12739return pthread_mutex_lock ();
12740 ;
12741 return 0;
12742}
12743_ACEOF
12744rm -f conftest.$ac_objext conftest$ac_exeext
12745if { (ac_try="$ac_link"
12746case "(($ac_try" in
12747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12748 *) ac_try_echo=$ac_try;;
12749esac
12750eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12751$as_echo "$ac_try_echo") >&5
12752 (eval "$ac_link") 2>conftest.er1
12753 ac_status=$?
12754 grep -v '^ *+' conftest.er1 >conftest.err
12755 rm -f conftest.er1
12756 cat conftest.err >&5
12757 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12758 (exit $ac_status); } && {
12759 test -z "$ac_c_werror_flag" ||
12760 test ! -s conftest.err
12761 } && test -s conftest$ac_exeext && {
12762 test "$cross_compiling" = yes ||
12763 $as_test_x conftest$ac_exeext
12764 }; then
12765 ac_cv_lib_pthread_pthread_mutex_lock=yes
12766else
12767 $as_echo "$as_me: failed program was:" >&5
12768sed 's/^/| /' conftest.$ac_ext >&5
12769
12770 ac_cv_lib_pthread_pthread_mutex_lock=no
12771fi
12772
12773rm -rf conftest.dSYM
12774rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12775 conftest$ac_exeext conftest.$ac_ext
12776LIBS=$ac_check_lib_save_LIBS
12777fi
12778{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_lock" >&5
12779$as_echo "$ac_cv_lib_pthread_pthread_mutex_lock" >&6; }
12780if test "x$ac_cv_lib_pthread_pthread_mutex_lock" = x""yes; then
12781 PTHREAD_LIBS="-lpthread"
12782else
12783 hard_bailout
12784fi
12785
12786fi
12787
d0191583 12788################################################################################
ec6a6fbe
AK
12789{ $as_echo "$as_me:$LINENO: checking whether to enable selinux support" >&5
12790$as_echo_n "checking whether to enable selinux support... " >&6; }
d0191583
JM
12791# Check whether --enable-selinux was given.
12792if test "${enable_selinux+set}" = set; then
12793 enableval=$enable_selinux; SELINUX=$enableval
12794fi
12795
ec6a6fbe
AK
12796{ $as_echo "$as_me:$LINENO: result: $SELINUX" >&5
12797$as_echo "$SELINUX" >&6; }
d0191583 12798
ad6254c5
AK
12799################################################################################
12800if test x$SELINUX = xyes; then
ec6a6fbe
AK
12801 { $as_echo "$as_me:$LINENO: checking for sepol_check_context in -lsepol" >&5
12802$as_echo_n "checking for sepol_check_context in -lsepol... " >&6; }
8a2fc586 12803if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then
ec6a6fbe 12804 $as_echo_n "(cached) " >&6
8a2fc586
AK
12805else
12806 ac_check_lib_save_LIBS=$LIBS
12807LIBS="-lsepol $LIBS"
12808cat >conftest.$ac_ext <<_ACEOF
12809/* confdefs.h. */
12810_ACEOF
12811cat confdefs.h >>conftest.$ac_ext
12812cat >>conftest.$ac_ext <<_ACEOF
12813/* end confdefs.h. */
12814
7a197a62
AK
12815/* Override any GCC internal prototype to avoid an error.
12816 Use char because int might match the return type of a GCC
12817 builtin and then its argument prototype would still apply. */
8a2fc586
AK
12818#ifdef __cplusplus
12819extern "C"
12820#endif
8a2fc586
AK
12821char sepol_check_context ();
12822int
12823main ()
12824{
7a197a62 12825return sepol_check_context ();
8a2fc586
AK
12826 ;
12827 return 0;
12828}
12829_ACEOF
12830rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
12831if { (ac_try="$ac_link"
12832case "(($ac_try" in
12833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12834 *) ac_try_echo=$ac_try;;
12835esac
ec6a6fbe
AK
12836eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12837$as_echo "$ac_try_echo") >&5
7a197a62 12838 (eval "$ac_link") 2>conftest.er1
8a2fc586
AK
12839 ac_status=$?
12840 grep -v '^ *+' conftest.er1 >conftest.err
12841 rm -f conftest.er1
12842 cat conftest.err >&5
ec6a6fbe 12843 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
12844 (exit $ac_status); } && {
12845 test -z "$ac_c_werror_flag" ||
12846 test ! -s conftest.err
ec6a6fbe
AK
12847 } && test -s conftest$ac_exeext && {
12848 test "$cross_compiling" = yes ||
12849 $as_test_x conftest$ac_exeext
12850 }; then
8a2fc586
AK
12851 ac_cv_lib_sepol_sepol_check_context=yes
12852else
ec6a6fbe 12853 $as_echo "$as_me: failed program was:" >&5
8a2fc586
AK
12854sed 's/^/| /' conftest.$ac_ext >&5
12855
7a197a62 12856 ac_cv_lib_sepol_sepol_check_context=no
8a2fc586 12857fi
7a197a62 12858
ec6a6fbe 12859rm -rf conftest.dSYM
25fbec5b 12860rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586
AK
12861 conftest$ac_exeext conftest.$ac_ext
12862LIBS=$ac_check_lib_save_LIBS
12863fi
ec6a6fbe
AK
12864{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sepol_sepol_check_context" >&5
12865$as_echo "$ac_cv_lib_sepol_sepol_check_context" >&6; }
12866if test "x$ac_cv_lib_sepol_sepol_check_context" = x""yes; then
8a2fc586 12867
d0191583
JM
12868
12869cat >>confdefs.h <<\_ACEOF
12870#define HAVE_SEPOL 1
12871_ACEOF
12872
f8f6ec92
ZK
12873 SELINUX_LIBS="-lsepol"
12874fi
12875
8a2fc586 12876
ec6a6fbe
AK
12877 { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
12878$as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
ad6254c5 12879if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
ec6a6fbe 12880 $as_echo_n "(cached) " >&6
ad6254c5
AK
12881else
12882 ac_check_lib_save_LIBS=$LIBS
12883LIBS="-lselinux $LIBS"
12884cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
12885/* confdefs.h. */
12886_ACEOF
12887cat confdefs.h >>conftest.$ac_ext
12888cat >>conftest.$ac_ext <<_ACEOF
12889/* end confdefs.h. */
12890
7a197a62
AK
12891/* Override any GCC internal prototype to avoid an error.
12892 Use char because int might match the return type of a GCC
12893 builtin and then its argument prototype would still apply. */
ad6254c5
AK
12894#ifdef __cplusplus
12895extern "C"
12896#endif
ad6254c5
AK
12897char is_selinux_enabled ();
12898int
12899main ()
12900{
7a197a62 12901return is_selinux_enabled ();
ad6254c5
AK
12902 ;
12903 return 0;
12904}
12905_ACEOF
12906rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
12907if { (ac_try="$ac_link"
12908case "(($ac_try" in
12909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12910 *) ac_try_echo=$ac_try;;
12911esac
ec6a6fbe
AK
12912eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12913$as_echo "$ac_try_echo") >&5
7a197a62 12914 (eval "$ac_link") 2>conftest.er1
ad6254c5 12915 ac_status=$?
8a2fc586
AK
12916 grep -v '^ *+' conftest.er1 >conftest.err
12917 rm -f conftest.er1
12918 cat conftest.err >&5
ec6a6fbe 12919 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
12920 (exit $ac_status); } && {
12921 test -z "$ac_c_werror_flag" ||
12922 test ! -s conftest.err
ec6a6fbe
AK
12923 } && test -s conftest$ac_exeext && {
12924 test "$cross_compiling" = yes ||
12925 $as_test_x conftest$ac_exeext
12926 }; then
ad6254c5
AK
12927 ac_cv_lib_selinux_is_selinux_enabled=yes
12928else
ec6a6fbe 12929 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
12930sed 's/^/| /' conftest.$ac_ext >&5
12931
7a197a62 12932 ac_cv_lib_selinux_is_selinux_enabled=no
ad6254c5 12933fi
7a197a62 12934
ec6a6fbe 12935rm -rf conftest.dSYM
25fbec5b 12936rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 12937 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
12938LIBS=$ac_check_lib_save_LIBS
12939fi
ec6a6fbe
AK
12940{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
12941$as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
12942if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then
ad6254c5 12943
72b2cb61 12944
f8f6ec92
ZK
12945for ac_header in selinux/selinux.h
12946do
12947as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12948if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12949 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12950$as_echo_n "checking for $ac_header... " >&6; }
12951if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 12952 $as_echo_n "(cached) " >&6
f8f6ec92
ZK
12953fi
12954ac_res=`eval 'as_val=${'$as_ac_Header'}
12955 $as_echo "$as_val"'`
12956 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12957$as_echo "$ac_res" >&6; }
66e941e8 12958else
f8f6ec92
ZK
12959 # Is the header compilable?
12960{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12961$as_echo_n "checking $ac_header usability... " >&6; }
66e941e8
JM
12962cat >conftest.$ac_ext <<_ACEOF
12963/* confdefs.h. */
12964_ACEOF
12965cat confdefs.h >>conftest.$ac_ext
12966cat >>conftest.$ac_ext <<_ACEOF
12967/* end confdefs.h. */
f8f6ec92
ZK
12968$ac_includes_default
12969#include <$ac_header>
66e941e8 12970_ACEOF
f8f6ec92
ZK
12971rm -f conftest.$ac_objext
12972if { (ac_try="$ac_compile"
66e941e8
JM
12973case "(($ac_try" in
12974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12975 *) ac_try_echo=$ac_try;;
12976esac
ec6a6fbe
AK
12977eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12978$as_echo "$ac_try_echo") >&5
f8f6ec92 12979 (eval "$ac_compile") 2>conftest.er1
66e941e8
JM
12980 ac_status=$?
12981 grep -v '^ *+' conftest.er1 >conftest.err
12982 rm -f conftest.er1
12983 cat conftest.err >&5
ec6a6fbe 12984 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
12985 (exit $ac_status); } && {
12986 test -z "$ac_c_werror_flag" ||
12987 test ! -s conftest.err
f8f6ec92
ZK
12988 } && test -s conftest.$ac_objext; then
12989 ac_header_compiler=yes
12990else
12991 $as_echo "$as_me: failed program was:" >&5
12992sed 's/^/| /' conftest.$ac_ext >&5
12993
12994 ac_header_compiler=no
12995fi
12996
12997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12998{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12999$as_echo "$ac_header_compiler" >&6; }
13000
13001# Is the header present?
13002{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13003$as_echo_n "checking $ac_header presence... " >&6; }
13004cat >conftest.$ac_ext <<_ACEOF
13005/* confdefs.h. */
13006_ACEOF
13007cat confdefs.h >>conftest.$ac_ext
13008cat >>conftest.$ac_ext <<_ACEOF
13009/* end confdefs.h. */
13010#include <$ac_header>
13011_ACEOF
13012if { (ac_try="$ac_cpp conftest.$ac_ext"
13013case "(($ac_try" in
13014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13015 *) ac_try_echo=$ac_try;;
13016esac
13017eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13018$as_echo "$ac_try_echo") >&5
13019 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13020 ac_status=$?
13021 grep -v '^ *+' conftest.er1 >conftest.err
13022 rm -f conftest.er1
13023 cat conftest.err >&5
13024 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13025 (exit $ac_status); } >/dev/null && {
13026 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13027 test ! -s conftest.err
ec6a6fbe 13028 }; then
f8f6ec92 13029 ac_header_preproc=yes
66e941e8 13030else
ec6a6fbe 13031 $as_echo "$as_me: failed program was:" >&5
66e941e8
JM
13032sed 's/^/| /' conftest.$ac_ext >&5
13033
f8f6ec92
ZK
13034 ac_header_preproc=no
13035fi
13036
13037rm -f conftest.err conftest.$ac_ext
13038{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13039$as_echo "$ac_header_preproc" >&6; }
13040
13041# So? What about this header?
13042case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13043 yes:no: )
13044 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13045$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13046 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13047$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13048 ac_header_preproc=yes
13049 ;;
13050 no:yes:* )
13051 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13052$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13053 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13054$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13055 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13056$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13057 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13058$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13059 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13060$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13061 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13062$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
66e941e8 13063
f8f6ec92
ZK
13064 ;;
13065esac
13066{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13067$as_echo_n "checking for $ac_header... " >&6; }
13068if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13069 $as_echo_n "(cached) " >&6
13070else
13071 eval "$as_ac_Header=\$ac_header_preproc"
66e941e8 13072fi
f8f6ec92
ZK
13073ac_res=`eval 'as_val=${'$as_ac_Header'}
13074 $as_echo "$as_val"'`
13075 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13076$as_echo "$ac_res" >&6; }
66e941e8 13077
66e941e8 13078fi
f8f6ec92
ZK
13079as_val=`eval 'as_val=${'$as_ac_Header'}
13080 $as_echo "$as_val"'`
13081 if test "x$as_val" = x""yes; then
13082 cat >>confdefs.h <<_ACEOF
13083#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13084_ACEOF
13085
66e941e8 13086else
f8f6ec92 13087 hard_bailout
66e941e8 13088fi
f8f6ec92
ZK
13089
13090done
13091
13092
13093cat >>confdefs.h <<\_ACEOF
13094#define HAVE_SELINUX 1
13095_ACEOF
13096
13097 SELINUX_LIBS="-lselinux $SELINUX_LIBS"
13098 HAVE_SELINUX=yes
13099else
13100
13101 { $as_echo "$as_me:$LINENO: WARNING: Disabling selinux" >&5
13102$as_echo "$as_me: WARNING: Disabling selinux" >&2;}
13103 SELINUX_LIBS=
13104 HAVE_SELINUX=no
66e941e8
JM
13105fi
13106
ad6254c5
AK
13107fi
13108
8b1a3214
AK
13109################################################################################
13110if test x$REALTIME = xyes; then
ec6a6fbe
AK
13111 { $as_echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
13112$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
8b1a3214 13113if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
ec6a6fbe 13114 $as_echo_n "(cached) " >&6
8b1a3214
AK
13115else
13116 ac_check_lib_save_LIBS=$LIBS
13117LIBS="-lrt $LIBS"
13118cat >conftest.$ac_ext <<_ACEOF
13119/* confdefs.h. */
13120_ACEOF
13121cat confdefs.h >>conftest.$ac_ext
13122cat >>conftest.$ac_ext <<_ACEOF
13123/* end confdefs.h. */
13124
7a197a62
AK
13125/* Override any GCC internal prototype to avoid an error.
13126 Use char because int might match the return type of a GCC
13127 builtin and then its argument prototype would still apply. */
8b1a3214
AK
13128#ifdef __cplusplus
13129extern "C"
13130#endif
8b1a3214
AK
13131char clock_gettime ();
13132int
13133main ()
13134{
7a197a62 13135return clock_gettime ();
8b1a3214
AK
13136 ;
13137 return 0;
13138}
13139_ACEOF
13140rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
13141if { (ac_try="$ac_link"
13142case "(($ac_try" in
13143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13144 *) ac_try_echo=$ac_try;;
13145esac
ec6a6fbe
AK
13146eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13147$as_echo "$ac_try_echo") >&5
7a197a62 13148 (eval "$ac_link") 2>conftest.er1
8b1a3214
AK
13149 ac_status=$?
13150 grep -v '^ *+' conftest.er1 >conftest.err
13151 rm -f conftest.er1
13152 cat conftest.err >&5
ec6a6fbe 13153 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
13154 (exit $ac_status); } && {
13155 test -z "$ac_c_werror_flag" ||
13156 test ! -s conftest.err
ec6a6fbe
AK
13157 } && test -s conftest$ac_exeext && {
13158 test "$cross_compiling" = yes ||
13159 $as_test_x conftest$ac_exeext
13160 }; then
8b1a3214
AK
13161 ac_cv_lib_rt_clock_gettime=yes
13162else
ec6a6fbe 13163 $as_echo "$as_me: failed program was:" >&5
8b1a3214
AK
13164sed 's/^/| /' conftest.$ac_ext >&5
13165
7a197a62 13166 ac_cv_lib_rt_clock_gettime=no
8b1a3214 13167fi
7a197a62 13168
ec6a6fbe 13169rm -rf conftest.dSYM
25fbec5b 13170rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8b1a3214
AK
13171 conftest$ac_exeext conftest.$ac_ext
13172LIBS=$ac_check_lib_save_LIBS
13173fi
ec6a6fbe
AK
13174{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
13175$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
13176if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then
8b1a3214
AK
13177 HAVE_REALTIME=yes
13178else
13179 HAVE_REALTIME=no
13180fi
13181
8b1a3214
AK
13182
13183 if test x$HAVE_REALTIME = xyes; then
13184
13185cat >>confdefs.h <<\_ACEOF
13186#define HAVE_REALTIME 1
13187_ACEOF
13188
13189 LIBS="-lrt $LIBS"
13190 else
ec6a6fbe
AK
13191 { $as_echo "$as_me:$LINENO: WARNING: Disabling realtime clock" >&5
13192$as_echo "$as_me: WARNING: Disabling realtime clock" >&2;}
8b1a3214
AK
13193 fi
13194fi
13195
ad6254c5
AK
13196################################################################################
13197
13198for ac_header in getopt.h
13199do
ec6a6fbe 13200as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 13201if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
13202 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13203$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 13204if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 13205 $as_echo_n "(cached) " >&6
ad6254c5 13206fi
ec6a6fbe
AK
13207ac_res=`eval 'as_val=${'$as_ac_Header'}
13208 $as_echo "$as_val"'`
13209 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13210$as_echo "$ac_res" >&6; }
ad6254c5
AK
13211else
13212 # Is the header compilable?
ec6a6fbe
AK
13213{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13214$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 13215cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
13216/* confdefs.h. */
13217_ACEOF
13218cat confdefs.h >>conftest.$ac_ext
13219cat >>conftest.$ac_ext <<_ACEOF
13220/* end confdefs.h. */
13221$ac_includes_default
13222#include <$ac_header>
13223_ACEOF
13224rm -f conftest.$ac_objext
7a197a62
AK
13225if { (ac_try="$ac_compile"
13226case "(($ac_try" in
13227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13228 *) ac_try_echo=$ac_try;;
13229esac
ec6a6fbe
AK
13230eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13231$as_echo "$ac_try_echo") >&5
7a197a62 13232 (eval "$ac_compile") 2>conftest.er1
ad6254c5 13233 ac_status=$?
8a2fc586
AK
13234 grep -v '^ *+' conftest.er1 >conftest.err
13235 rm -f conftest.er1
13236 cat conftest.err >&5
ec6a6fbe 13237 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
13238 (exit $ac_status); } && {
13239 test -z "$ac_c_werror_flag" ||
13240 test ! -s conftest.err
13241 } && test -s conftest.$ac_objext; then
ad6254c5
AK
13242 ac_header_compiler=yes
13243else
ec6a6fbe 13244 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
13245sed 's/^/| /' conftest.$ac_ext >&5
13246
7a197a62 13247 ac_header_compiler=no
ad6254c5 13248fi
7a197a62
AK
13249
13250rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
13251{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13252$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
13253
13254# Is the header present?
ec6a6fbe
AK
13255{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13256$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 13257cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
13258/* confdefs.h. */
13259_ACEOF
13260cat confdefs.h >>conftest.$ac_ext
13261cat >>conftest.$ac_ext <<_ACEOF
13262/* end confdefs.h. */
13263#include <$ac_header>
13264_ACEOF
7a197a62
AK
13265if { (ac_try="$ac_cpp conftest.$ac_ext"
13266case "(($ac_try" in
13267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13268 *) ac_try_echo=$ac_try;;
13269esac
ec6a6fbe
AK
13270eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13271$as_echo "$ac_try_echo") >&5
7a197a62 13272 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
13273 ac_status=$?
13274 grep -v '^ *+' conftest.er1 >conftest.err
13275 rm -f conftest.er1
13276 cat conftest.err >&5
ec6a6fbe 13277 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
13278 (exit $ac_status); } >/dev/null && {
13279 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13280 test ! -s conftest.err
13281 }; then
ad6254c5
AK
13282 ac_header_preproc=yes
13283else
ec6a6fbe 13284 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
13285sed 's/^/| /' conftest.$ac_ext >&5
13286
13287 ac_header_preproc=no
13288fi
7a197a62 13289
ad6254c5 13290rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
13291{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13292$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
13293
13294# So? What about this header?
8a2fc586
AK
13295case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13296 yes:no: )
ec6a6fbe
AK
13297 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13298$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13299 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13300$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 13301 ac_header_preproc=yes
ad6254c5 13302 ;;
8a2fc586 13303 no:yes:* )
ec6a6fbe
AK
13304 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13305$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13306 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13307$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13308 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13309$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13310 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13311$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13312 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13313$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13314 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13315$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 13316
ad6254c5
AK
13317 ;;
13318esac
ec6a6fbe
AK
13319{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13320$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 13321if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 13322 $as_echo_n "(cached) " >&6
ad6254c5 13323else
8a2fc586 13324 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 13325fi
ec6a6fbe
AK
13326ac_res=`eval 'as_val=${'$as_ac_Header'}
13327 $as_echo "$as_val"'`
13328 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13329$as_echo "$ac_res" >&6; }
ad6254c5
AK
13330
13331fi
ec6a6fbe
AK
13332as_val=`eval 'as_val=${'$as_ac_Header'}
13333 $as_echo "$as_val"'`
13334 if test "x$as_val" = x""yes; then
ad6254c5 13335 cat >>confdefs.h <<_ACEOF
ec6a6fbe 13336#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 13337_ACEOF
72b2cb61
AK
13338
13339cat >>confdefs.h <<\_ACEOF
13340#define HAVE_GETOPTLONG 1
13341_ACEOF
13342
ad6254c5
AK
13343fi
13344
13345done
13346
13347
13348################################################################################
06e459df 13349if test x$READLINE != xno; then
539f4a77
ZK
13350 lvm_saved_libs=$LIBS
13351 { $as_echo "$as_me:$LINENO: checking for library containing tgetent" >&5
13352$as_echo_n "checking for library containing tgetent... " >&6; }
13353if test "${ac_cv_search_tgetent+set}" = set; then
13354 $as_echo_n "(cached) " >&6
13355else
13356 ac_func_search_save_LIBS=$LIBS
13357cat >conftest.$ac_ext <<_ACEOF
13358/* confdefs.h. */
13359_ACEOF
13360cat confdefs.h >>conftest.$ac_ext
13361cat >>conftest.$ac_ext <<_ACEOF
13362/* end confdefs.h. */
bc1024f8 13363
539f4a77
ZK
13364/* Override any GCC internal prototype to avoid an error.
13365 Use char because int might match the return type of a GCC
13366 builtin and then its argument prototype would still apply. */
13367#ifdef __cplusplus
13368extern "C"
13369#endif
13370char tgetent ();
13371int
13372main ()
13373{
13374return tgetent ();
13375 ;
13376 return 0;
13377}
13378_ACEOF
13379for ac_lib in '' tinfo ncurses curses termcap termlib; do
13380 if test -z "$ac_lib"; then
13381 ac_res="none required"
13382 else
13383 ac_res=-l$ac_lib
13384 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13385 fi
13386 rm -f conftest.$ac_objext conftest$ac_exeext
13387if { (ac_try="$ac_link"
13388case "(($ac_try" in
13389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13390 *) ac_try_echo=$ac_try;;
13391esac
13392eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13393$as_echo "$ac_try_echo") >&5
13394 (eval "$ac_link") 2>conftest.er1
13395 ac_status=$?
13396 grep -v '^ *+' conftest.er1 >conftest.err
13397 rm -f conftest.er1
13398 cat conftest.err >&5
13399 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13400 (exit $ac_status); } && {
13401 test -z "$ac_c_werror_flag" ||
13402 test ! -s conftest.err
13403 } && test -s conftest$ac_exeext && {
13404 test "$cross_compiling" = yes ||
13405 $as_test_x conftest$ac_exeext
13406 }; then
13407 ac_cv_search_tgetent=$ac_res
13408else
13409 $as_echo "$as_me: failed program was:" >&5
13410sed 's/^/| /' conftest.$ac_ext >&5
13411
13412
13413fi
13414
13415rm -rf conftest.dSYM
13416rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13417 conftest$ac_exeext
13418 if test "${ac_cv_search_tgetent+set}" = set; then
13419 break
13420fi
13421done
13422if test "${ac_cv_search_tgetent+set}" = set; then
13423 :
13424else
13425 ac_cv_search_tgetent=no
13426fi
13427rm conftest.$ac_ext
13428LIBS=$ac_func_search_save_LIBS
13429fi
13430{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
13431$as_echo "$ac_cv_search_tgetent" >&6; }
13432ac_res=$ac_cv_search_tgetent
13433if test "$ac_res" != no; then
13434 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13435 READLINE_LIBS=$ac_cv_search_tgetent
13436else
13437
13438 if test "$READLINE" = yes; then
13439 { { $as_echo "$as_me:$LINENO: error: termcap could not be found which is required for the
13440--enable-readline option (which is enabled by default). Either disable readline
13441support with --disable-readline or download and install termcap from:
13442 ftp.gnu.org/gnu/termcap
13443Note: if you are using precompiled packages you will also need the development
13444 package as well (which may be called termcap-devel or something similar).
13445Note: (n)curses also seems to work as a substitute for termcap. This was
13446 not found either - but you could try installing that as well." >&5
13447$as_echo "$as_me: error: termcap could not be found which is required for the
13448--enable-readline option (which is enabled by default). Either disable readline
13449support with --disable-readline or download and install termcap from:
13450 ftp.gnu.org/gnu/termcap
13451Note: if you are using precompiled packages you will also need the development
13452 package as well (which may be called termcap-devel or something similar).
13453Note: (n)curses also seems to work as a substitute for termcap. This was
13454 not found either - but you could try installing that as well." >&2;}
13455 { (exit 1); exit 1; }; }
13456 fi
13457fi
13458
13459 { $as_echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
ec6a6fbe 13460$as_echo_n "checking for readline in -lreadline... " >&6; }
ad6254c5 13461if test "${ac_cv_lib_readline_readline+set}" = set; then
ec6a6fbe 13462 $as_echo_n "(cached) " >&6
ad6254c5
AK
13463else
13464 ac_check_lib_save_LIBS=$LIBS
13465LIBS="-lreadline $LIBS"
13466cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
13467/* confdefs.h. */
13468_ACEOF
13469cat confdefs.h >>conftest.$ac_ext
13470cat >>conftest.$ac_ext <<_ACEOF
13471/* end confdefs.h. */
13472
7a197a62
AK
13473/* Override any GCC internal prototype to avoid an error.
13474 Use char because int might match the return type of a GCC
13475 builtin and then its argument prototype would still apply. */
ad6254c5
AK
13476#ifdef __cplusplus
13477extern "C"
13478#endif
ad6254c5
AK
13479char readline ();
13480int
13481main ()
13482{
7a197a62 13483return readline ();
ad6254c5
AK
13484 ;
13485 return 0;
13486}
13487_ACEOF
13488rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
13489if { (ac_try="$ac_link"
13490case "(($ac_try" in
13491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13492 *) ac_try_echo=$ac_try;;
13493esac
ec6a6fbe
AK
13494eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13495$as_echo "$ac_try_echo") >&5
7a197a62 13496 (eval "$ac_link") 2>conftest.er1
ad6254c5 13497 ac_status=$?
8a2fc586
AK
13498 grep -v '^ *+' conftest.er1 >conftest.err
13499 rm -f conftest.er1
13500 cat conftest.err >&5
ec6a6fbe 13501 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
13502 (exit $ac_status); } && {
13503 test -z "$ac_c_werror_flag" ||
13504 test ! -s conftest.err
ec6a6fbe
AK
13505 } && test -s conftest$ac_exeext && {
13506 test "$cross_compiling" = yes ||
13507 $as_test_x conftest$ac_exeext
13508 }; then
ad6254c5
AK
13509 ac_cv_lib_readline_readline=yes
13510else
ec6a6fbe 13511 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
13512sed 's/^/| /' conftest.$ac_ext >&5
13513
7a197a62 13514 ac_cv_lib_readline_readline=no
ad6254c5 13515fi
7a197a62 13516
ec6a6fbe 13517rm -rf conftest.dSYM
25fbec5b 13518rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 13519 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
13520LIBS=$ac_check_lib_save_LIBS
13521fi
ec6a6fbe
AK
13522{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
13523$as_echo "$ac_cv_lib_readline_readline" >&6; }
13524if test "x$ac_cv_lib_readline_readline" = x""yes; then
539f4a77
ZK
13525
13526
13527cat >>confdefs.h <<\_ACEOF
13528#define READLINE_SUPPORT 1
bc1024f8
JM
13529_ACEOF
13530
539f4a77
ZK
13531 LIBS=$lvm_saved_libs
13532 { $as_echo "$as_me:$LINENO: checking for rl_line_buffer in -lreadline" >&5
13533$as_echo_n "checking for rl_line_buffer in -lreadline... " >&6; }
13534if test "${ac_cv_lib_readline_rl_line_buffer+set}" = set; then
13535 $as_echo_n "(cached) " >&6
13536else
13537 ac_check_lib_save_LIBS=$LIBS
13538LIBS="-lreadline $LIBS"
13539cat >conftest.$ac_ext <<_ACEOF
13540/* confdefs.h. */
13541_ACEOF
13542cat confdefs.h >>conftest.$ac_ext
13543cat >>conftest.$ac_ext <<_ACEOF
13544/* end confdefs.h. */
bc1024f8 13545
539f4a77
ZK
13546/* Override any GCC internal prototype to avoid an error.
13547 Use char because int might match the return type of a GCC
13548 builtin and then its argument prototype would still apply. */
13549#ifdef __cplusplus
13550extern "C"
13551#endif
13552char rl_line_buffer ();
13553int
13554main ()
13555{
13556return rl_line_buffer ();
13557 ;
13558 return 0;
13559}
13560_ACEOF
13561rm -f conftest.$ac_objext conftest$ac_exeext
13562if { (ac_try="$ac_link"
13563case "(($ac_try" in
13564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13565 *) ac_try_echo=$ac_try;;
13566esac
13567eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13568$as_echo "$ac_try_echo") >&5
13569 (eval "$ac_link") 2>conftest.er1
13570 ac_status=$?
13571 grep -v '^ *+' conftest.er1 >conftest.err
13572 rm -f conftest.er1
13573 cat conftest.err >&5
13574 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13575 (exit $ac_status); } && {
13576 test -z "$ac_c_werror_flag" ||
13577 test ! -s conftest.err
13578 } && test -s conftest$ac_exeext && {
13579 test "$cross_compiling" = yes ||
13580 $as_test_x conftest$ac_exeext
13581 }; then
13582 ac_cv_lib_readline_rl_line_buffer=yes
ad6254c5 13583else
539f4a77
ZK
13584 $as_echo "$as_me: failed program was:" >&5
13585sed 's/^/| /' conftest.$ac_ext >&5
13586
13587 ac_cv_lib_readline_rl_line_buffer=no
06e459df
JM
13588fi
13589
539f4a77
ZK
13590rm -rf conftest.dSYM
13591rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13592 conftest$ac_exeext conftest.$ac_ext
13593LIBS=$ac_check_lib_save_LIBS
13594fi
13595{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_line_buffer" >&5
13596$as_echo "$ac_cv_lib_readline_rl_line_buffer" >&6; }
13597if test "x$ac_cv_lib_readline_rl_line_buffer" = x""yes; then
13598 READLINE_LIBS="-lreadline"
13599else
13600
13601 { $as_echo "$as_me:$LINENO: result: linking -lreadline with $READLINE_LIBS needed" >&5
13602$as_echo "linking -lreadline with $READLINE_LIBS needed" >&6; }
13603 READLINE_LIBS="-lreadline $READLINE_LIBS"
13604
13605fi
13606
13607else
13608
13609 READLINE_LIBS=
13610 if test "$READLINE" = yes; then
13611 { { $as_echo "$as_me:$LINENO: error: GNU Readline could not be found which is required for the
ad6254c5
AK
13612--enable-readline option (which is enabled by default). Either disable readline
13613support with --disable-readline or download and install readline from:
13614 ftp.gnu.org/gnu/readline
13615Note: if you are using precompiled packages you will also need the development
539f4a77 13616package as well (which may be called readline-devel or something similar)." >&5
ec6a6fbe 13617$as_echo "$as_me: error: GNU Readline could not be found which is required for the
ad6254c5
AK
13618--enable-readline option (which is enabled by default). Either disable readline
13619support with --disable-readline or download and install readline from:
13620 ftp.gnu.org/gnu/readline
13621Note: if you are using precompiled packages you will also need the development
539f4a77 13622package as well (which may be called readline-devel or something similar)." >&2;}
ad6254c5 13623 { (exit 1); exit 1; }; }
539f4a77
ZK
13624 fi
13625fi
13626
13627 LIBS="$READLINE_LIBS $lvm_saved_libs"
bc1024f8
JM
13628
13629for ac_func in rl_completion_matches
13630do
ec6a6fbe
AK
13631as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13632{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13633$as_echo_n "checking for $ac_func... " >&6; }
bc1024f8 13634if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 13635 $as_echo_n "(cached) " >&6
ad6254c5
AK
13636else
13637 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
13638/* confdefs.h. */
13639_ACEOF
13640cat confdefs.h >>conftest.$ac_ext
13641cat >>conftest.$ac_ext <<_ACEOF
13642/* end confdefs.h. */
bc1024f8 13643/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8a2fc586 13644 For example, HP-UX 11i <limits.h> declares gettimeofday. */
bc1024f8 13645#define $ac_func innocuous_$ac_func
8a2fc586 13646
ad6254c5 13647/* System header to define __stub macros and hopefully few prototypes,
bc1024f8 13648 which can conflict with char $ac_func (); below.
ad6254c5
AK
13649 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13650 <limits.h> exists even on freestanding compilers. */
8a2fc586 13651
ad6254c5
AK
13652#ifdef __STDC__
13653# include <limits.h>
13654#else
13655# include <assert.h>
13656#endif
8a2fc586 13657
bc1024f8 13658#undef $ac_func
8a2fc586 13659
7a197a62
AK
13660/* Override any GCC internal prototype to avoid an error.
13661 Use char because int might match the return type of a GCC
13662 builtin and then its argument prototype would still apply. */
ad6254c5
AK
13663#ifdef __cplusplus
13664extern "C"
ad6254c5 13665#endif
bc1024f8 13666char $ac_func ();
ad6254c5
AK
13667/* The GNU C library defines this for functions which it implements
13668 to always fail with ENOSYS. Some functions are actually named
13669 something starting with __ and the normal name is an alias. */
bc1024f8 13670#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 13671choke me
ad6254c5
AK
13672#endif
13673
13674int
13675main ()
13676{
bc1024f8 13677return $ac_func ();
ad6254c5
AK
13678 ;
13679 return 0;
13680}
13681_ACEOF
13682rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
13683if { (ac_try="$ac_link"
13684case "(($ac_try" in
13685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13686 *) ac_try_echo=$ac_try;;
13687esac
ec6a6fbe
AK
13688eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13689$as_echo "$ac_try_echo") >&5
7a197a62 13690 (eval "$ac_link") 2>conftest.er1
ad6254c5 13691 ac_status=$?
8a2fc586
AK
13692 grep -v '^ *+' conftest.er1 >conftest.err
13693 rm -f conftest.er1
13694 cat conftest.err >&5
ec6a6fbe 13695 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
13696 (exit $ac_status); } && {
13697 test -z "$ac_c_werror_flag" ||
13698 test ! -s conftest.err
ec6a6fbe
AK
13699 } && test -s conftest$ac_exeext && {
13700 test "$cross_compiling" = yes ||
13701 $as_test_x conftest$ac_exeext
13702 }; then
bc1024f8 13703 eval "$as_ac_var=yes"
ad6254c5 13704else
ec6a6fbe 13705 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
13706sed 's/^/| /' conftest.$ac_ext >&5
13707
bc1024f8 13708 eval "$as_ac_var=no"
ad6254c5 13709fi
7a197a62 13710
ec6a6fbe 13711rm -rf conftest.dSYM
25fbec5b 13712rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 13713 conftest$ac_exeext conftest.$ac_ext
ad6254c5 13714fi
ec6a6fbe
AK
13715ac_res=`eval 'as_val=${'$as_ac_var'}
13716 $as_echo "$as_val"'`
13717 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13718$as_echo "$ac_res" >&6; }
13719as_val=`eval 'as_val=${'$as_ac_var'}
13720 $as_echo "$as_val"'`
13721 if test "x$as_val" = x""yes; then
bc1024f8 13722 cat >>confdefs.h <<_ACEOF
ec6a6fbe 13723#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
72b2cb61
AK
13724_ACEOF
13725
13726fi
bc1024f8 13727done
ad6254c5 13728
539f4a77 13729 LIBS=$lvm_saved_libs
ad6254c5
AK
13730fi
13731
13732################################################################################
ec6a6fbe
AK
13733{ $as_echo "$as_me:$LINENO: checking whether to enable internationalisation" >&5
13734$as_echo_n "checking whether to enable internationalisation... " >&6; }
7a197a62 13735# Check whether --enable-nls was given.
ad6254c5 13736if test "${enable_nls+set}" = set; then
7a197a62 13737 enableval=$enable_nls; INTL=$enableval
ad6254c5
AK
13738else
13739 INTL=no
7a197a62
AK
13740fi
13741
ec6a6fbe
AK
13742{ $as_echo "$as_me:$LINENO: result: $INTL" >&5
13743$as_echo "$INTL" >&6; }
ad6254c5
AK
13744
13745if test x$INTL = xyes; then
93bd259b 13746# FIXME - Move this - can be device-mapper too
ad6254c5
AK
13747 INTL_PACKAGE="lvm2"
13748 # Extract the first word of "msgfmt", so it can be a program name with args.
13749set dummy msgfmt; ac_word=$2
ec6a6fbe
AK
13750{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13751$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 13752if test "${ac_cv_path_MSGFMT+set}" = set; then
ec6a6fbe 13753 $as_echo_n "(cached) " >&6
ad6254c5
AK
13754else
13755 case $MSGFMT in
13756 [\\/]* | ?:[\\/]*)
13757 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
13758 ;;
13759 *)
13760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13761for as_dir in $PATH
13762do
13763 IFS=$as_save_IFS
13764 test -z "$as_dir" && as_dir=.
13765 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 13766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 13767 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 13768 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
13769 break 2
13770 fi
13771done
13772done
7a197a62 13773IFS=$as_save_IFS
ad6254c5
AK
13774
13775 ;;
13776esac
13777fi
13778MSGFMT=$ac_cv_path_MSGFMT
ad6254c5 13779if test -n "$MSGFMT"; then
ec6a6fbe
AK
13780 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
13781$as_echo "$MSGFMT" >&6; }
ad6254c5 13782else
ec6a6fbe
AK
13783 { $as_echo "$as_me:$LINENO: result: no" >&5
13784$as_echo "no" >&6; }
ad6254c5
AK
13785fi
13786
7a197a62 13787
ad6254c5 13788 if [ "x$MSGFMT" == x ];
ec6a6fbe 13789 then { { $as_echo "$as_me:$LINENO: error: msgfmt not found in path $PATH
ad6254c5 13790 " >&5
ec6a6fbe 13791$as_echo "$as_me: error: msgfmt not found in path $PATH
ad6254c5
AK
13792 " >&2;}
13793 { (exit 1); exit 1; }; }
13794 fi;
13795
13796
7a197a62 13797# Check whether --with-localedir was given.
ad6254c5 13798if test "${with_localedir+set}" = set; then
7a197a62 13799 withval=$with_localedir; LOCALEDIR="$withval"
ad6254c5
AK
13800else
13801 LOCALEDIR='${prefix}/share/locale'
7a197a62
AK
13802fi
13803
ad6254c5
AK
13804fi
13805
13806################################################################################
13807
7a197a62 13808# Check whether --with-confdir was given.
ad6254c5 13809if test "${with_confdir+set}" = set; then
7a197a62 13810 withval=$with_confdir; CONFDIR="$withval"
ad6254c5
AK
13811else
13812 CONFDIR='/etc'
7a197a62
AK
13813fi
13814
ad6254c5
AK
13815
13816
7a197a62 13817# Check whether --with-staticdir was given.
ad6254c5 13818if test "${with_staticdir+set}" = set; then
7a197a62 13819 withval=$with_staticdir; STATICDIR="$withval"
ad6254c5
AK
13820else
13821 STATICDIR='${exec_prefix}/sbin'
7a197a62 13822fi
ad6254c5 13823
33f732c5 13824
7a197a62 13825
68f2de6d
AK
13826# Check whether --with-usrlibdir was given.
13827if test "${with_usrlibdir+set}" = set; then
13828 withval=$with_usrlibdir; usrlibdir="$withval"
13829else
13830 usrlibdir='${prefix}/lib'
13831fi
13832
13833
13834
13835# Check whether --with-usrsbindir was given.
13836if test "${with_usrsbindir+set}" = set; then
13837 withval=$with_usrsbindir; usrsbindir="$withval"
13838else
13839 usrsbindir='${prefix}/sbin'
13840fi
13841
13842
a5f46f6a
AK
13843################################################################################
13844
13845# Check whether --with-udev_prefix was given.
13846if test "${with_udev_prefix+set}" = set; then
13847 withval=$with_udev_prefix; udev_prefix="$withval"
13848else
13849 udev_prefix='${exec_prefix}'
13850fi
13851
13852
78ce7acc
AK
13853
13854# Check whether --with-udevdir was given.
13855if test "${with_udevdir+set}" = set; then
13856 withval=$with_udevdir; udevdir="$withval"
13857else
13858 udevdir='${udev_prefix}/lib/udev/rules.d'
13859fi
13860
a5f46f6a 13861
ad6254c5
AK
13862################################################################################
13863if test x$READLINE = xyes; then
13864
13865
13866for ac_header in readline/readline.h readline/history.h
13867do
ec6a6fbe 13868as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 13869if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
13870 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13871$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 13872if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 13873 $as_echo_n "(cached) " >&6
ad6254c5 13874fi
ec6a6fbe
AK
13875ac_res=`eval 'as_val=${'$as_ac_Header'}
13876 $as_echo "$as_val"'`
13877 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13878$as_echo "$ac_res" >&6; }
ad6254c5
AK
13879else
13880 # Is the header compilable?
ec6a6fbe
AK
13881{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13882$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 13883cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
13884/* confdefs.h. */
13885_ACEOF
13886cat confdefs.h >>conftest.$ac_ext
13887cat >>conftest.$ac_ext <<_ACEOF
13888/* end confdefs.h. */
13889$ac_includes_default
13890#include <$ac_header>
13891_ACEOF
13892rm -f conftest.$ac_objext
7a197a62
AK
13893if { (ac_try="$ac_compile"
13894case "(($ac_try" in
13895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13896 *) ac_try_echo=$ac_try;;
13897esac
ec6a6fbe
AK
13898eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13899$as_echo "$ac_try_echo") >&5
7a197a62 13900 (eval "$ac_compile") 2>conftest.er1
ad6254c5 13901 ac_status=$?
8a2fc586
AK
13902 grep -v '^ *+' conftest.er1 >conftest.err
13903 rm -f conftest.er1
13904 cat conftest.err >&5
ec6a6fbe 13905 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
13906 (exit $ac_status); } && {
13907 test -z "$ac_c_werror_flag" ||
13908 test ! -s conftest.err
13909 } && test -s conftest.$ac_objext; then
ad6254c5
AK
13910 ac_header_compiler=yes
13911else
ec6a6fbe 13912 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
13913sed 's/^/| /' conftest.$ac_ext >&5
13914
7a197a62 13915 ac_header_compiler=no
ad6254c5 13916fi
7a197a62
AK
13917
13918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
13919{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13920$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
13921
13922# Is the header present?
ec6a6fbe
AK
13923{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13924$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 13925cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
13926/* confdefs.h. */
13927_ACEOF
13928cat confdefs.h >>conftest.$ac_ext
13929cat >>conftest.$ac_ext <<_ACEOF
13930/* end confdefs.h. */
13931#include <$ac_header>
13932_ACEOF
7a197a62
AK
13933if { (ac_try="$ac_cpp conftest.$ac_ext"
13934case "(($ac_try" in
13935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13936 *) ac_try_echo=$ac_try;;
13937esac
ec6a6fbe
AK
13938eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13939$as_echo "$ac_try_echo") >&5
7a197a62 13940 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
13941 ac_status=$?
13942 grep -v '^ *+' conftest.er1 >conftest.err
13943 rm -f conftest.er1
13944 cat conftest.err >&5
ec6a6fbe 13945 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
13946 (exit $ac_status); } >/dev/null && {
13947 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13948 test ! -s conftest.err
13949 }; then
ad6254c5
AK
13950 ac_header_preproc=yes
13951else
ec6a6fbe 13952 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
13953sed 's/^/| /' conftest.$ac_ext >&5
13954
13955 ac_header_preproc=no
13956fi
7a197a62 13957
ad6254c5 13958rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
13959{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13960$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
13961
13962# So? What about this header?
8a2fc586
AK
13963case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13964 yes:no: )
ec6a6fbe
AK
13965 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13966$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13967 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13968$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 13969 ac_header_preproc=yes
ad6254c5 13970 ;;
8a2fc586 13971 no:yes:* )
ec6a6fbe
AK
13972 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13973$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13974 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13975$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13976 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13977$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13978 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13979$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13980 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13981$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13982 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13983$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 13984
ad6254c5
AK
13985 ;;
13986esac
ec6a6fbe
AK
13987{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13988$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 13989if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 13990 $as_echo_n "(cached) " >&6
ad6254c5 13991else
8a2fc586 13992 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 13993fi
ec6a6fbe
AK
13994ac_res=`eval 'as_val=${'$as_ac_Header'}
13995 $as_echo "$as_val"'`
13996 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13997$as_echo "$ac_res" >&6; }
ad6254c5
AK
13998
13999fi
ec6a6fbe
AK
14000as_val=`eval 'as_val=${'$as_ac_Header'}
14001 $as_echo "$as_val"'`
14002 if test "x$as_val" = x""yes; then
ad6254c5 14003 cat >>confdefs.h <<_ACEOF
ec6a6fbe 14004#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
14005_ACEOF
14006
14007else
ec6a6fbe
AK
14008 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
14009$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5
AK
14010 { (exit 1); exit 1; }; }
14011fi
14012
14013done
14014
14015fi
14016
5c7fc7c4 14017if test x$CLVMD != xnone; then
ad6254c5
AK
14018
14019
14020
14021
14022
14023
14024
14025
14026
14027
14028for 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
14029do
ec6a6fbe 14030as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 14031if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
14032 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14033$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 14034if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 14035 $as_echo_n "(cached) " >&6
ad6254c5 14036fi
ec6a6fbe
AK
14037ac_res=`eval 'as_val=${'$as_ac_Header'}
14038 $as_echo "$as_val"'`
14039 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14040$as_echo "$ac_res" >&6; }
ad6254c5
AK
14041else
14042 # Is the header compilable?
ec6a6fbe
AK
14043{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14044$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 14045cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14046/* confdefs.h. */
14047_ACEOF
14048cat confdefs.h >>conftest.$ac_ext
14049cat >>conftest.$ac_ext <<_ACEOF
14050/* end confdefs.h. */
14051$ac_includes_default
14052#include <$ac_header>
14053_ACEOF
14054rm -f conftest.$ac_objext
7a197a62
AK
14055if { (ac_try="$ac_compile"
14056case "(($ac_try" in
14057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14058 *) ac_try_echo=$ac_try;;
14059esac
ec6a6fbe
AK
14060eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14061$as_echo "$ac_try_echo") >&5
7a197a62 14062 (eval "$ac_compile") 2>conftest.er1
ad6254c5 14063 ac_status=$?
8a2fc586
AK
14064 grep -v '^ *+' conftest.er1 >conftest.err
14065 rm -f conftest.er1
14066 cat conftest.err >&5
ec6a6fbe 14067 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14068 (exit $ac_status); } && {
14069 test -z "$ac_c_werror_flag" ||
14070 test ! -s conftest.err
14071 } && test -s conftest.$ac_objext; then
ad6254c5
AK
14072 ac_header_compiler=yes
14073else
ec6a6fbe 14074 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14075sed 's/^/| /' conftest.$ac_ext >&5
14076
7a197a62 14077 ac_header_compiler=no
ad6254c5 14078fi
7a197a62
AK
14079
14080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
14081{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14082$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
14083
14084# Is the header present?
ec6a6fbe
AK
14085{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14086$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 14087cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14088/* confdefs.h. */
14089_ACEOF
14090cat confdefs.h >>conftest.$ac_ext
14091cat >>conftest.$ac_ext <<_ACEOF
14092/* end confdefs.h. */
14093#include <$ac_header>
14094_ACEOF
7a197a62
AK
14095if { (ac_try="$ac_cpp conftest.$ac_ext"
14096case "(($ac_try" in
14097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14098 *) ac_try_echo=$ac_try;;
14099esac
ec6a6fbe
AK
14100eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14101$as_echo "$ac_try_echo") >&5
7a197a62 14102 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
14103 ac_status=$?
14104 grep -v '^ *+' conftest.er1 >conftest.err
14105 rm -f conftest.er1
14106 cat conftest.err >&5
ec6a6fbe 14107 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14108 (exit $ac_status); } >/dev/null && {
14109 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14110 test ! -s conftest.err
14111 }; then
ad6254c5
AK
14112 ac_header_preproc=yes
14113else
ec6a6fbe 14114 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14115sed 's/^/| /' conftest.$ac_ext >&5
14116
14117 ac_header_preproc=no
14118fi
7a197a62 14119
ad6254c5 14120rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
14121{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14122$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
14123
14124# So? What about this header?
8a2fc586
AK
14125case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14126 yes:no: )
ec6a6fbe
AK
14127 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14128$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14129 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14130$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 14131 ac_header_preproc=yes
ad6254c5 14132 ;;
8a2fc586 14133 no:yes:* )
ec6a6fbe
AK
14134 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14135$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14136 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14137$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14138 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14139$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14140 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14141$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14142 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14143$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14144 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14145$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 14146
ad6254c5
AK
14147 ;;
14148esac
ec6a6fbe
AK
14149{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14150$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 14151if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 14152 $as_echo_n "(cached) " >&6
ad6254c5 14153else
8a2fc586 14154 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 14155fi
ec6a6fbe
AK
14156ac_res=`eval 'as_val=${'$as_ac_Header'}
14157 $as_echo "$as_val"'`
14158 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14159$as_echo "$ac_res" >&6; }
ad6254c5
AK
14160
14161fi
ec6a6fbe
AK
14162as_val=`eval 'as_val=${'$as_ac_Header'}
14163 $as_echo "$as_val"'`
14164 if test "x$as_val" = x""yes; then
ad6254c5 14165 cat >>confdefs.h <<_ACEOF
ec6a6fbe 14166#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
14167_ACEOF
14168
14169else
ec6a6fbe
AK
14170 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
14171$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 14172 { (exit 1); exit 1; }; }
795ca3e5
AK
14173fi
14174
ad6254c5
AK
14175done
14176
14177
795ca3e5 14178
8106cdd5 14179
ad6254c5
AK
14180
14181
14182for ac_func in dup2 getmntent memmove select socket
14183do
ec6a6fbe
AK
14184as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14185{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14186$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 14187if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 14188 $as_echo_n "(cached) " >&6
795ca3e5 14189else
ad6254c5 14190 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14191/* confdefs.h. */
14192_ACEOF
14193cat confdefs.h >>conftest.$ac_ext
14194cat >>conftest.$ac_ext <<_ACEOF
14195/* end confdefs.h. */
8a2fc586
AK
14196/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14197 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14198#define $ac_func innocuous_$ac_func
14199
795ca3e5 14200/* System header to define __stub macros and hopefully few prototypes,
ad6254c5
AK
14201 which can conflict with char $ac_func (); below.
14202 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14203 <limits.h> exists even on freestanding compilers. */
8a2fc586 14204
ad6254c5
AK
14205#ifdef __STDC__
14206# include <limits.h>
14207#else
14208# include <assert.h>
14209#endif
8a2fc586
AK
14210
14211#undef $ac_func
14212
7a197a62
AK
14213/* Override any GCC internal prototype to avoid an error.
14214 Use char because int might match the return type of a GCC
14215 builtin and then its argument prototype would still apply. */
ad6254c5
AK
14216#ifdef __cplusplus
14217extern "C"
ad6254c5 14218#endif
ad6254c5 14219char $ac_func ();
795ca3e5
AK
14220/* The GNU C library defines this for functions which it implements
14221 to always fail with ENOSYS. Some functions are actually named
14222 something starting with __ and the normal name is an alias. */
7a197a62 14223#if defined __stub_$ac_func || defined __stub___$ac_func
795ca3e5 14224choke me
795ca3e5
AK
14225#endif
14226
ad6254c5
AK
14227int
14228main ()
14229{
7a197a62 14230return $ac_func ();
ad6254c5
AK
14231 ;
14232 return 0;
14233}
14234_ACEOF
14235rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
14236if { (ac_try="$ac_link"
14237case "(($ac_try" in
14238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14239 *) ac_try_echo=$ac_try;;
14240esac
ec6a6fbe
AK
14241eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14242$as_echo "$ac_try_echo") >&5
7a197a62 14243 (eval "$ac_link") 2>conftest.er1
ad6254c5 14244 ac_status=$?
8a2fc586
AK
14245 grep -v '^ *+' conftest.er1 >conftest.err
14246 rm -f conftest.er1
14247 cat conftest.err >&5
ec6a6fbe 14248 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14249 (exit $ac_status); } && {
14250 test -z "$ac_c_werror_flag" ||
14251 test ! -s conftest.err
ec6a6fbe
AK
14252 } && test -s conftest$ac_exeext && {
14253 test "$cross_compiling" = yes ||
14254 $as_test_x conftest$ac_exeext
14255 }; then
ad6254c5 14256 eval "$as_ac_var=yes"
795ca3e5 14257else
ec6a6fbe 14258 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14259sed 's/^/| /' conftest.$ac_ext >&5
14260
7a197a62 14261 eval "$as_ac_var=no"
80992638 14262fi
7a197a62 14263
ec6a6fbe 14264rm -rf conftest.dSYM
25fbec5b 14265rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 14266 conftest$ac_exeext conftest.$ac_ext
795ca3e5 14267fi
ec6a6fbe
AK
14268ac_res=`eval 'as_val=${'$as_ac_var'}
14269 $as_echo "$as_val"'`
14270 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14271$as_echo "$ac_res" >&6; }
14272as_val=`eval 'as_val=${'$as_ac_var'}
14273 $as_echo "$as_val"'`
14274 if test "x$as_val" = x""yes; then
ad6254c5 14275 cat >>confdefs.h <<_ACEOF
ec6a6fbe 14276#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5 14277_ACEOF
80992638
AK
14278
14279else
ec6a6fbe
AK
14280 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
14281$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 14282 { (exit 1); exit 1; }; }
8106cdd5 14283fi
ad6254c5 14284done
795ca3e5 14285
25fbec5b
AK
14286 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
14287# -lseq on Dynix/PTX, -lgen on Unixware.
ec6a6fbe
AK
14288{ $as_echo "$as_me:$LINENO: checking for library containing getmntent" >&5
14289$as_echo_n "checking for library containing getmntent... " >&6; }
25fbec5b 14290if test "${ac_cv_search_getmntent+set}" = set; then
ec6a6fbe 14291 $as_echo_n "(cached) " >&6
25fbec5b
AK
14292else
14293 ac_func_search_save_LIBS=$LIBS
14294cat >conftest.$ac_ext <<_ACEOF
14295/* confdefs.h. */
14296_ACEOF
14297cat confdefs.h >>conftest.$ac_ext
14298cat >>conftest.$ac_ext <<_ACEOF
14299/* end confdefs.h. */
80992638 14300
7a197a62
AK
14301/* Override any GCC internal prototype to avoid an error.
14302 Use char because int might match the return type of a GCC
ad6254c5 14303 builtin and then its argument prototype would still apply. */
ad6254c5
AK
14304#ifdef __cplusplus
14305extern "C"
14306#endif
25fbec5b 14307char getmntent ();
ad6254c5
AK
14308int
14309main ()
14310{
25fbec5b 14311return getmntent ();
ad6254c5
AK
14312 ;
14313 return 0;
14314}
14315_ACEOF
25fbec5b
AK
14316for ac_lib in '' sun seq gen; do
14317 if test -z "$ac_lib"; then
14318 ac_res="none required"
14319 else
14320 ac_res=-l$ac_lib
14321 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14322 fi
14323 rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
14324if { (ac_try="$ac_link"
14325case "(($ac_try" in
14326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14327 *) ac_try_echo=$ac_try;;
14328esac
ec6a6fbe
AK
14329eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14330$as_echo "$ac_try_echo") >&5
7a197a62 14331 (eval "$ac_link") 2>conftest.er1
ad6254c5 14332 ac_status=$?
8a2fc586
AK
14333 grep -v '^ *+' conftest.er1 >conftest.err
14334 rm -f conftest.er1
14335 cat conftest.err >&5
ec6a6fbe 14336 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14337 (exit $ac_status); } && {
14338 test -z "$ac_c_werror_flag" ||
14339 test ! -s conftest.err
ec6a6fbe
AK
14340 } && test -s conftest$ac_exeext && {
14341 test "$cross_compiling" = yes ||
14342 $as_test_x conftest$ac_exeext
14343 }; then
25fbec5b 14344 ac_cv_search_getmntent=$ac_res
80992638 14345else
ec6a6fbe 14346 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14347sed 's/^/| /' conftest.$ac_ext >&5
14348
25fbec5b 14349
795ca3e5
AK
14350fi
14351
ec6a6fbe 14352rm -rf conftest.dSYM
25fbec5b
AK
14353rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14354 conftest$ac_exeext
14355 if test "${ac_cv_search_getmntent+set}" = set; then
14356 break
795ca3e5 14357fi
25fbec5b
AK
14358done
14359if test "${ac_cv_search_getmntent+set}" = set; then
14360 :
14361else
14362 ac_cv_search_getmntent=no
14363fi
14364rm conftest.$ac_ext
14365LIBS=$ac_func_search_save_LIBS
14366fi
ec6a6fbe
AK
14367{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
14368$as_echo "$ac_cv_search_getmntent" >&6; }
25fbec5b
AK
14369ac_res=$ac_cv_search_getmntent
14370if test "$ac_res" != no; then
14371 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14372 ac_cv_func_getmntent=yes
14373
14374cat >>confdefs.h <<\_ACEOF
9c961554 14375#define HAVE_GETMNTENT 1
ad6254c5 14376_ACEOF
795ca3e5 14377
25fbec5b
AK
14378else
14379 ac_cv_func_getmntent=no
795ca3e5 14380fi
795ca3e5
AK
14381
14382
ad6254c5
AK
14383# AC_FUNC_REALLOC
14384
14385
14386for ac_header in sys/select.h sys/socket.h
14387do
ec6a6fbe 14388as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 14389if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
14390 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14391$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 14392if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 14393 $as_echo_n "(cached) " >&6
ad6254c5 14394fi
ec6a6fbe
AK
14395ac_res=`eval 'as_val=${'$as_ac_Header'}
14396 $as_echo "$as_val"'`
14397 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14398$as_echo "$ac_res" >&6; }
795ca3e5 14399else
ad6254c5 14400 # Is the header compilable?
ec6a6fbe
AK
14401{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14402$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 14403cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14404/* confdefs.h. */
14405_ACEOF
14406cat confdefs.h >>conftest.$ac_ext
14407cat >>conftest.$ac_ext <<_ACEOF
14408/* end confdefs.h. */
14409$ac_includes_default
14410#include <$ac_header>
14411_ACEOF
14412rm -f conftest.$ac_objext
7a197a62
AK
14413if { (ac_try="$ac_compile"
14414case "(($ac_try" in
14415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14416 *) ac_try_echo=$ac_try;;
14417esac
ec6a6fbe
AK
14418eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14419$as_echo "$ac_try_echo") >&5
7a197a62 14420 (eval "$ac_compile") 2>conftest.er1
ad6254c5 14421 ac_status=$?
8a2fc586
AK
14422 grep -v '^ *+' conftest.er1 >conftest.err
14423 rm -f conftest.er1
14424 cat conftest.err >&5
ec6a6fbe 14425 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14426 (exit $ac_status); } && {
14427 test -z "$ac_c_werror_flag" ||
14428 test ! -s conftest.err
14429 } && test -s conftest.$ac_objext; then
ad6254c5 14430 ac_header_compiler=yes
80992638 14431else
ec6a6fbe 14432 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14433sed 's/^/| /' conftest.$ac_ext >&5
14434
7a197a62 14435 ac_header_compiler=no
ad6254c5 14436fi
7a197a62
AK
14437
14438rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
14439{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14440$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
14441
14442# Is the header present?
ec6a6fbe
AK
14443{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14444$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 14445cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14446/* confdefs.h. */
14447_ACEOF
14448cat confdefs.h >>conftest.$ac_ext
14449cat >>conftest.$ac_ext <<_ACEOF
14450/* end confdefs.h. */
14451#include <$ac_header>
14452_ACEOF
7a197a62
AK
14453if { (ac_try="$ac_cpp conftest.$ac_ext"
14454case "(($ac_try" in
14455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14456 *) ac_try_echo=$ac_try;;
14457esac
ec6a6fbe
AK
14458eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14459$as_echo "$ac_try_echo") >&5
7a197a62 14460 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
14461 ac_status=$?
14462 grep -v '^ *+' conftest.er1 >conftest.err
14463 rm -f conftest.er1
14464 cat conftest.err >&5
ec6a6fbe 14465 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14466 (exit $ac_status); } >/dev/null && {
14467 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14468 test ! -s conftest.err
14469 }; then
ad6254c5
AK
14470 ac_header_preproc=yes
14471else
ec6a6fbe 14472 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14473sed 's/^/| /' conftest.$ac_ext >&5
14474
14475 ac_header_preproc=no
14476fi
7a197a62 14477
ad6254c5 14478rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
14479{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14480$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
14481
14482# So? What about this header?
8a2fc586
AK
14483case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14484 yes:no: )
ec6a6fbe
AK
14485 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14486$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14487 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14488$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 14489 ac_header_preproc=yes
ad6254c5 14490 ;;
8a2fc586 14491 no:yes:* )
ec6a6fbe
AK
14492 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14493$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14494 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14495$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14496 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14497$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14498 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14499$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14500 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14501$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14502 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14503$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 14504
ad6254c5
AK
14505 ;;
14506esac
ec6a6fbe
AK
14507{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14508$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 14509if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 14510 $as_echo_n "(cached) " >&6
ad6254c5 14511else
8a2fc586 14512 eval "$as_ac_Header=\$ac_header_preproc"
8106cdd5 14513fi
ec6a6fbe
AK
14514ac_res=`eval 'as_val=${'$as_ac_Header'}
14515 $as_echo "$as_val"'`
14516 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14517$as_echo "$ac_res" >&6; }
8106cdd5 14518
795ca3e5 14519fi
ec6a6fbe
AK
14520as_val=`eval 'as_val=${'$as_ac_Header'}
14521 $as_echo "$as_val"'`
14522 if test "x$as_val" = x""yes; then
ad6254c5 14523 cat >>confdefs.h <<_ACEOF
ec6a6fbe 14524#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
14525_ACEOF
14526
795ca3e5
AK
14527fi
14528
ad6254c5
AK
14529done
14530
ec6a6fbe
AK
14531{ $as_echo "$as_me:$LINENO: checking types of arguments for select" >&5
14532$as_echo_n "checking types of arguments for select... " >&6; }
ad6254c5 14533if test "${ac_cv_func_select_args+set}" = set; then
ec6a6fbe 14534 $as_echo_n "(cached) " >&6
26e7f2e0 14535else
ad6254c5 14536 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
7a197a62 14537 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
ad6254c5
AK
14538 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
14539 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14540/* confdefs.h. */
14541_ACEOF
14542cat confdefs.h >>conftest.$ac_ext
14543cat >>conftest.$ac_ext <<_ACEOF
14544/* end confdefs.h. */
14545$ac_includes_default
25fbec5b 14546#ifdef HAVE_SYS_SELECT_H
ad6254c5
AK
14547# include <sys/select.h>
14548#endif
25fbec5b 14549#ifdef HAVE_SYS_SOCKET_H
ad6254c5
AK
14550# include <sys/socket.h>
14551#endif
14552
14553int
14554main ()
14555{
14556extern int select ($ac_arg1,
8a2fc586
AK
14557 $ac_arg234, $ac_arg234, $ac_arg234,
14558 $ac_arg5);
ad6254c5
AK
14559 ;
14560 return 0;
14561}
14562_ACEOF
14563rm -f conftest.$ac_objext
7a197a62
AK
14564if { (ac_try="$ac_compile"
14565case "(($ac_try" in
14566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14567 *) ac_try_echo=$ac_try;;
14568esac
ec6a6fbe
AK
14569eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14570$as_echo "$ac_try_echo") >&5
7a197a62 14571 (eval "$ac_compile") 2>conftest.er1
ad6254c5 14572 ac_status=$?
8a2fc586
AK
14573 grep -v '^ *+' conftest.er1 >conftest.err
14574 rm -f conftest.er1
14575 cat conftest.err >&5
ec6a6fbe 14576 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14577 (exit $ac_status); } && {
14578 test -z "$ac_c_werror_flag" ||
14579 test ! -s conftest.err
14580 } && test -s conftest.$ac_objext; then
ad6254c5
AK
14581 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
14582else
ec6a6fbe 14583 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14584sed 's/^/| /' conftest.$ac_ext >&5
14585
7a197a62 14586
ad6254c5 14587fi
7a197a62
AK
14588
14589rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
14590 done
14591 done
14592done
14593# Provide a safe default value.
14594: ${ac_cv_func_select_args='int,int *,struct timeval *'}
14595
26e7f2e0 14596fi
ec6a6fbe
AK
14597{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
14598$as_echo "$ac_cv_func_select_args" >&6; }
ad6254c5
AK
14599ac_save_IFS=$IFS; IFS=','
14600set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
14601IFS=$ac_save_IFS
14602shift
14603
14604cat >>confdefs.h <<_ACEOF
14605#define SELECT_TYPE_ARG1 $1
14606_ACEOF
14607
14608
14609cat >>confdefs.h <<_ACEOF
14610#define SELECT_TYPE_ARG234 ($2)
14611_ACEOF
14612
14613
14614cat >>confdefs.h <<_ACEOF
14615#define SELECT_TYPE_ARG5 ($3)
14616_ACEOF
14617
80992638 14618rm -f conftest*
80992638 14619
8106cdd5 14620fi
ad6254c5 14621
ad6254c5
AK
14622if test x$CLUSTER != xnone; then
14623
14624
14625for ac_header in sys/socket.h sys/un.h
b896caa1 14626do
ec6a6fbe 14627as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 14628if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
14629 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14630$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 14631if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 14632 $as_echo_n "(cached) " >&6
ad6254c5 14633fi
ec6a6fbe
AK
14634ac_res=`eval 'as_val=${'$as_ac_Header'}
14635 $as_echo "$as_val"'`
14636 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14637$as_echo "$ac_res" >&6; }
ad6254c5
AK
14638else
14639 # Is the header compilable?
ec6a6fbe
AK
14640{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14641$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 14642cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14643/* confdefs.h. */
14644_ACEOF
14645cat confdefs.h >>conftest.$ac_ext
14646cat >>conftest.$ac_ext <<_ACEOF
14647/* end confdefs.h. */
14648$ac_includes_default
14649#include <$ac_header>
14650_ACEOF
14651rm -f conftest.$ac_objext
7a197a62
AK
14652if { (ac_try="$ac_compile"
14653case "(($ac_try" in
14654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14655 *) ac_try_echo=$ac_try;;
14656esac
ec6a6fbe
AK
14657eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14658$as_echo "$ac_try_echo") >&5
7a197a62 14659 (eval "$ac_compile") 2>conftest.er1
ad6254c5 14660 ac_status=$?
8a2fc586
AK
14661 grep -v '^ *+' conftest.er1 >conftest.err
14662 rm -f conftest.er1
14663 cat conftest.err >&5
ec6a6fbe 14664 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14665 (exit $ac_status); } && {
14666 test -z "$ac_c_werror_flag" ||
14667 test ! -s conftest.err
14668 } && test -s conftest.$ac_objext; then
ad6254c5
AK
14669 ac_header_compiler=yes
14670else
ec6a6fbe 14671 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14672sed 's/^/| /' conftest.$ac_ext >&5
14673
7a197a62 14674 ac_header_compiler=no
ad6254c5 14675fi
7a197a62
AK
14676
14677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
14678{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14679$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
14680
14681# Is the header present?
ec6a6fbe
AK
14682{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14683$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 14684cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14685/* confdefs.h. */
14686_ACEOF
14687cat confdefs.h >>conftest.$ac_ext
14688cat >>conftest.$ac_ext <<_ACEOF
14689/* end confdefs.h. */
14690#include <$ac_header>
14691_ACEOF
7a197a62
AK
14692if { (ac_try="$ac_cpp conftest.$ac_ext"
14693case "(($ac_try" in
14694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14695 *) ac_try_echo=$ac_try;;
14696esac
ec6a6fbe
AK
14697eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14698$as_echo "$ac_try_echo") >&5
7a197a62 14699 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
14700 ac_status=$?
14701 grep -v '^ *+' conftest.er1 >conftest.err
14702 rm -f conftest.er1
14703 cat conftest.err >&5
ec6a6fbe 14704 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14705 (exit $ac_status); } >/dev/null && {
14706 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14707 test ! -s conftest.err
14708 }; then
ad6254c5
AK
14709 ac_header_preproc=yes
14710else
ec6a6fbe 14711 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14712sed 's/^/| /' conftest.$ac_ext >&5
14713
14714 ac_header_preproc=no
14715fi
7a197a62 14716
ad6254c5 14717rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
14718{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14719$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
14720
14721# So? What about this header?
8a2fc586
AK
14722case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14723 yes:no: )
ec6a6fbe
AK
14724 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14725$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14726 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14727$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 14728 ac_header_preproc=yes
ad6254c5 14729 ;;
8a2fc586 14730 no:yes:* )
ec6a6fbe
AK
14731 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14732$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14733 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14734$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14735 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14736$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14737 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14738$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14739 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14740$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14741 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14742$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 14743
ad6254c5
AK
14744 ;;
14745esac
ec6a6fbe
AK
14746{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14747$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 14748if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 14749 $as_echo_n "(cached) " >&6
ad6254c5 14750else
8a2fc586 14751 eval "$as_ac_Header=\$ac_header_preproc"
b896caa1 14752fi
ec6a6fbe
AK
14753ac_res=`eval 'as_val=${'$as_ac_Header'}
14754 $as_echo "$as_val"'`
14755 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14756$as_echo "$ac_res" >&6; }
ad6254c5
AK
14757
14758fi
ec6a6fbe
AK
14759as_val=`eval 'as_val=${'$as_ac_Header'}
14760 $as_echo "$as_val"'`
14761 if test "x$as_val" = x""yes; then
ad6254c5 14762 cat >>confdefs.h <<_ACEOF
ec6a6fbe 14763#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
14764_ACEOF
14765
80992638 14766else
ec6a6fbe
AK
14767 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
14768$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 14769 { (exit 1); exit 1; }; }
b896caa1 14770fi
ad6254c5 14771
b896caa1
AK
14772done
14773
14774
ad6254c5
AK
14775for ac_func in socket
14776do
ec6a6fbe
AK
14777as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14778{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14779$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 14780if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 14781 $as_echo_n "(cached) " >&6
795ca3e5 14782else
ad6254c5 14783 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14784/* confdefs.h. */
14785_ACEOF
14786cat confdefs.h >>conftest.$ac_ext
14787cat >>conftest.$ac_ext <<_ACEOF
14788/* end confdefs.h. */
8a2fc586
AK
14789/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14790 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14791#define $ac_func innocuous_$ac_func
14792
ad6254c5
AK
14793/* System header to define __stub macros and hopefully few prototypes,
14794 which can conflict with char $ac_func (); below.
14795 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14796 <limits.h> exists even on freestanding compilers. */
8a2fc586 14797
ad6254c5
AK
14798#ifdef __STDC__
14799# include <limits.h>
14800#else
14801# include <assert.h>
14802#endif
8a2fc586
AK
14803
14804#undef $ac_func
14805
7a197a62
AK
14806/* Override any GCC internal prototype to avoid an error.
14807 Use char because int might match the return type of a GCC
14808 builtin and then its argument prototype would still apply. */
ad6254c5
AK
14809#ifdef __cplusplus
14810extern "C"
ad6254c5 14811#endif
ad6254c5
AK
14812char $ac_func ();
14813/* The GNU C library defines this for functions which it implements
14814 to always fail with ENOSYS. Some functions are actually named
14815 something starting with __ and the normal name is an alias. */
7a197a62 14816#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 14817choke me
ad6254c5
AK
14818#endif
14819
14820int
14821main ()
14822{
7a197a62 14823return $ac_func ();
ad6254c5
AK
14824 ;
14825 return 0;
14826}
14827_ACEOF
14828rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
14829if { (ac_try="$ac_link"
14830case "(($ac_try" in
14831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14832 *) ac_try_echo=$ac_try;;
14833esac
ec6a6fbe
AK
14834eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14835$as_echo "$ac_try_echo") >&5
7a197a62 14836 (eval "$ac_link") 2>conftest.er1
ad6254c5 14837 ac_status=$?
8a2fc586
AK
14838 grep -v '^ *+' conftest.er1 >conftest.err
14839 rm -f conftest.er1
14840 cat conftest.err >&5
ec6a6fbe 14841 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14842 (exit $ac_status); } && {
14843 test -z "$ac_c_werror_flag" ||
14844 test ! -s conftest.err
ec6a6fbe
AK
14845 } && test -s conftest$ac_exeext && {
14846 test "$cross_compiling" = yes ||
14847 $as_test_x conftest$ac_exeext
14848 }; then
ad6254c5
AK
14849 eval "$as_ac_var=yes"
14850else
ec6a6fbe 14851 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14852sed 's/^/| /' conftest.$ac_ext >&5
14853
7a197a62 14854 eval "$as_ac_var=no"
ad6254c5 14855fi
7a197a62 14856
ec6a6fbe 14857rm -rf conftest.dSYM
25fbec5b 14858rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 14859 conftest$ac_exeext conftest.$ac_ext
ad6254c5 14860fi
ec6a6fbe
AK
14861ac_res=`eval 'as_val=${'$as_ac_var'}
14862 $as_echo "$as_val"'`
14863 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14864$as_echo "$ac_res" >&6; }
14865as_val=`eval 'as_val=${'$as_ac_var'}
14866 $as_echo "$as_val"'`
14867 if test "x$as_val" = x""yes; then
ad6254c5 14868 cat >>confdefs.h <<_ACEOF
ec6a6fbe 14869#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
14870_ACEOF
14871
14872else
ec6a6fbe
AK
14873 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
14874$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5
AK
14875 { (exit 1); exit 1; }; }
14876fi
14877done
14878
14879fi
14880
14881if test x$HAVE_LIBDL = xyes; then
14882
14883for ac_header in dlfcn.h
14884do
ec6a6fbe 14885as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 14886if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
14887 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14888$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 14889if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 14890 $as_echo_n "(cached) " >&6
ad6254c5 14891fi
ec6a6fbe
AK
14892ac_res=`eval 'as_val=${'$as_ac_Header'}
14893 $as_echo "$as_val"'`
14894 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14895$as_echo "$ac_res" >&6; }
ad6254c5
AK
14896else
14897 # Is the header compilable?
ec6a6fbe
AK
14898{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14899$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 14900cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14901/* confdefs.h. */
14902_ACEOF
14903cat confdefs.h >>conftest.$ac_ext
14904cat >>conftest.$ac_ext <<_ACEOF
14905/* end confdefs.h. */
14906$ac_includes_default
14907#include <$ac_header>
14908_ACEOF
14909rm -f conftest.$ac_objext
7a197a62
AK
14910if { (ac_try="$ac_compile"
14911case "(($ac_try" in
14912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14913 *) ac_try_echo=$ac_try;;
14914esac
ec6a6fbe
AK
14915eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14916$as_echo "$ac_try_echo") >&5
7a197a62 14917 (eval "$ac_compile") 2>conftest.er1
ad6254c5 14918 ac_status=$?
8a2fc586
AK
14919 grep -v '^ *+' conftest.er1 >conftest.err
14920 rm -f conftest.er1
14921 cat conftest.err >&5
ec6a6fbe 14922 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14923 (exit $ac_status); } && {
14924 test -z "$ac_c_werror_flag" ||
14925 test ! -s conftest.err
14926 } && test -s conftest.$ac_objext; then
ad6254c5
AK
14927 ac_header_compiler=yes
14928else
ec6a6fbe 14929 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14930sed 's/^/| /' conftest.$ac_ext >&5
14931
7a197a62 14932 ac_header_compiler=no
ad6254c5 14933fi
7a197a62
AK
14934
14935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
14936{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14937$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
14938
14939# Is the header present?
ec6a6fbe
AK
14940{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14941$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 14942cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14943/* confdefs.h. */
14944_ACEOF
14945cat confdefs.h >>conftest.$ac_ext
14946cat >>conftest.$ac_ext <<_ACEOF
14947/* end confdefs.h. */
14948#include <$ac_header>
14949_ACEOF
7a197a62
AK
14950if { (ac_try="$ac_cpp conftest.$ac_ext"
14951case "(($ac_try" in
14952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14953 *) ac_try_echo=$ac_try;;
14954esac
ec6a6fbe
AK
14955eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14956$as_echo "$ac_try_echo") >&5
7a197a62 14957 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
14958 ac_status=$?
14959 grep -v '^ *+' conftest.er1 >conftest.err
14960 rm -f conftest.er1
14961 cat conftest.err >&5
ec6a6fbe 14962 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14963 (exit $ac_status); } >/dev/null && {
14964 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14965 test ! -s conftest.err
14966 }; then
ad6254c5
AK
14967 ac_header_preproc=yes
14968else
ec6a6fbe 14969 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14970sed 's/^/| /' conftest.$ac_ext >&5
14971
14972 ac_header_preproc=no
14973fi
7a197a62 14974
ad6254c5 14975rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
14976{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14977$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
14978
14979# So? What about this header?
8a2fc586
AK
14980case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14981 yes:no: )
ec6a6fbe
AK
14982 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14983$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14984 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14985$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 14986 ac_header_preproc=yes
ad6254c5 14987 ;;
8a2fc586 14988 no:yes:* )
ec6a6fbe
AK
14989 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14990$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14991 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14992$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14993 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14994$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14995 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14996$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14997 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14998$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14999 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15000$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 15001
ad6254c5
AK
15002 ;;
15003esac
ec6a6fbe
AK
15004{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15005$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 15006if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 15007 $as_echo_n "(cached) " >&6
ad6254c5 15008else
8a2fc586 15009 eval "$as_ac_Header=\$ac_header_preproc"
795ca3e5 15010fi
ec6a6fbe
AK
15011ac_res=`eval 'as_val=${'$as_ac_Header'}
15012 $as_echo "$as_val"'`
15013 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15014$as_echo "$ac_res" >&6; }
80992638 15015
8106cdd5 15016fi
ec6a6fbe
AK
15017as_val=`eval 'as_val=${'$as_ac_Header'}
15018 $as_echo "$as_val"'`
15019 if test "x$as_val" = x""yes; then
ad6254c5 15020 cat >>confdefs.h <<_ACEOF
ec6a6fbe 15021#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 15022_ACEOF
795ca3e5
AK
15023
15024else
ec6a6fbe
AK
15025 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
15026$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 15027 { (exit 1); exit 1; }; }
795ca3e5
AK
15028fi
15029
ad6254c5 15030done
80992638 15031
ad6254c5 15032fi
80992638 15033
ad6254c5 15034if test x$INTL = xyes; then
83912faa 15035
ad6254c5
AK
15036for ac_header in libintl.h
15037do
ec6a6fbe 15038as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 15039if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
15040 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15041$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 15042if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 15043 $as_echo_n "(cached) " >&6
ad6254c5 15044fi
ec6a6fbe
AK
15045ac_res=`eval 'as_val=${'$as_ac_Header'}
15046 $as_echo "$as_val"'`
15047 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15048$as_echo "$ac_res" >&6; }
83912faa 15049else
ad6254c5 15050 # Is the header compilable?
ec6a6fbe
AK
15051{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15052$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 15053cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
15054/* confdefs.h. */
15055_ACEOF
15056cat confdefs.h >>conftest.$ac_ext
15057cat >>conftest.$ac_ext <<_ACEOF
15058/* end confdefs.h. */
15059$ac_includes_default
15060#include <$ac_header>
15061_ACEOF
15062rm -f conftest.$ac_objext
7a197a62
AK
15063if { (ac_try="$ac_compile"
15064case "(($ac_try" in
15065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15066 *) ac_try_echo=$ac_try;;
15067esac
ec6a6fbe
AK
15068eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15069$as_echo "$ac_try_echo") >&5
7a197a62 15070 (eval "$ac_compile") 2>conftest.er1
ad6254c5 15071 ac_status=$?
8a2fc586
AK
15072 grep -v '^ *+' conftest.er1 >conftest.err
15073 rm -f conftest.er1
15074 cat conftest.err >&5
ec6a6fbe 15075 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
15076 (exit $ac_status); } && {
15077 test -z "$ac_c_werror_flag" ||
15078 test ! -s conftest.err
15079 } && test -s conftest.$ac_objext; then
ad6254c5
AK
15080 ac_header_compiler=yes
15081else
ec6a6fbe 15082 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
15083sed 's/^/| /' conftest.$ac_ext >&5
15084
7a197a62 15085 ac_header_compiler=no
ad6254c5 15086fi
7a197a62
AK
15087
15088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
15089{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15090$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
15091
15092# Is the header present?
ec6a6fbe
AK
15093{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15094$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 15095cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
15096/* confdefs.h. */
15097_ACEOF
15098cat confdefs.h >>conftest.$ac_ext
15099cat >>conftest.$ac_ext <<_ACEOF
15100/* end confdefs.h. */
15101#include <$ac_header>
15102_ACEOF
7a197a62
AK
15103if { (ac_try="$ac_cpp conftest.$ac_ext"
15104case "(($ac_try" in
15105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15106 *) ac_try_echo=$ac_try;;
15107esac
ec6a6fbe
AK
15108eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15109$as_echo "$ac_try_echo") >&5
7a197a62 15110 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
15111 ac_status=$?
15112 grep -v '^ *+' conftest.er1 >conftest.err
15113 rm -f conftest.er1
15114 cat conftest.err >&5
ec6a6fbe 15115 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
15116 (exit $ac_status); } >/dev/null && {
15117 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15118 test ! -s conftest.err
15119 }; then
ad6254c5
AK
15120 ac_header_preproc=yes
15121else
ec6a6fbe 15122 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
15123sed 's/^/| /' conftest.$ac_ext >&5
15124
15125 ac_header_preproc=no
15126fi
7a197a62 15127
ad6254c5 15128rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
15129{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15130$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
15131
15132# So? What about this header?
8a2fc586
AK
15133case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15134 yes:no: )
ec6a6fbe
AK
15135 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15136$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15137 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15138$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 15139 ac_header_preproc=yes
ad6254c5 15140 ;;
8a2fc586 15141 no:yes:* )
ec6a6fbe
AK
15142 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15143$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15144 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15145$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15146 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15147$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15148 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15149$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15150 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15151$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15152 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15153$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 15154
ad6254c5
AK
15155 ;;
15156esac
ec6a6fbe
AK
15157{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15158$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 15159if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 15160 $as_echo_n "(cached) " >&6
80992638 15161else
8a2fc586 15162 eval "$as_ac_Header=\$ac_header_preproc"
83912faa 15163fi
ec6a6fbe
AK
15164ac_res=`eval 'as_val=${'$as_ac_Header'}
15165 $as_echo "$as_val"'`
15166 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15167$as_echo "$ac_res" >&6; }
83912faa 15168
69792976 15169fi
ec6a6fbe
AK
15170as_val=`eval 'as_val=${'$as_ac_Header'}
15171 $as_echo "$as_val"'`
15172 if test "x$as_val" = x""yes; then
ad6254c5 15173 cat >>confdefs.h <<_ACEOF
ec6a6fbe 15174#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 15175_ACEOF
69792976 15176
69792976 15177else
ec6a6fbe
AK
15178 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
15179$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 15180 { (exit 1); exit 1; }; }
80992638
AK
15181fi
15182
ad6254c5 15183done
69792976 15184
ad6254c5
AK
15185fi
15186
a5f46f6a
AK
15187if test x$UDEV_SYNC = xyes; then
15188
15189
15190for ac_header in sys/ipc.h sys/sem.h
15191do
15192as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15193if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15194 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15195$as_echo_n "checking for $ac_header... " >&6; }
15196if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15197 $as_echo_n "(cached) " >&6
15198fi
15199ac_res=`eval 'as_val=${'$as_ac_Header'}
15200 $as_echo "$as_val"'`
15201 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15202$as_echo "$ac_res" >&6; }
15203else
15204 # Is the header compilable?
15205{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15206$as_echo_n "checking $ac_header usability... " >&6; }
15207cat >conftest.$ac_ext <<_ACEOF
15208/* confdefs.h. */
15209_ACEOF
15210cat confdefs.h >>conftest.$ac_ext
15211cat >>conftest.$ac_ext <<_ACEOF
15212/* end confdefs.h. */
15213$ac_includes_default
15214#include <$ac_header>
15215_ACEOF
15216rm -f conftest.$ac_objext
15217if { (ac_try="$ac_compile"
15218case "(($ac_try" in
15219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15220 *) ac_try_echo=$ac_try;;
15221esac
15222eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15223$as_echo "$ac_try_echo") >&5
15224 (eval "$ac_compile") 2>conftest.er1
15225 ac_status=$?
15226 grep -v '^ *+' conftest.er1 >conftest.err
15227 rm -f conftest.er1
15228 cat conftest.err >&5
15229 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15230 (exit $ac_status); } && {
15231 test -z "$ac_c_werror_flag" ||
15232 test ! -s conftest.err
15233 } && test -s conftest.$ac_objext; then
15234 ac_header_compiler=yes
15235else
15236 $as_echo "$as_me: failed program was:" >&5
15237sed 's/^/| /' conftest.$ac_ext >&5
15238
15239 ac_header_compiler=no
15240fi
15241
15242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15243{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15244$as_echo "$ac_header_compiler" >&6; }
15245
15246# Is the header present?
15247{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15248$as_echo_n "checking $ac_header presence... " >&6; }
15249cat >conftest.$ac_ext <<_ACEOF
15250/* confdefs.h. */
15251_ACEOF
15252cat confdefs.h >>conftest.$ac_ext
15253cat >>conftest.$ac_ext <<_ACEOF
15254/* end confdefs.h. */
15255#include <$ac_header>
15256_ACEOF
15257if { (ac_try="$ac_cpp conftest.$ac_ext"
15258case "(($ac_try" in
15259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15260 *) ac_try_echo=$ac_try;;
15261esac
15262eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15263$as_echo "$ac_try_echo") >&5
15264 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15265 ac_status=$?
15266 grep -v '^ *+' conftest.er1 >conftest.err
15267 rm -f conftest.er1
15268 cat conftest.err >&5
15269 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15270 (exit $ac_status); } >/dev/null && {
15271 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15272 test ! -s conftest.err
15273 }; then
15274 ac_header_preproc=yes
15275else
15276 $as_echo "$as_me: failed program was:" >&5
15277sed 's/^/| /' conftest.$ac_ext >&5
15278
15279 ac_header_preproc=no
15280fi
15281
15282rm -f conftest.err conftest.$ac_ext
15283{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15284$as_echo "$ac_header_preproc" >&6; }
15285
15286# So? What about this header?
15287case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15288 yes:no: )
15289 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15290$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15291 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15292$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15293 ac_header_preproc=yes
15294 ;;
15295 no:yes:* )
15296 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15297$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15298 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15299$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15300 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15301$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15302 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15303$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15304 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15305$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15306 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15307$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15308
15309 ;;
15310esac
15311{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15312$as_echo_n "checking for $ac_header... " >&6; }
15313if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15314 $as_echo_n "(cached) " >&6
15315else
15316 eval "$as_ac_Header=\$ac_header_preproc"
15317fi
15318ac_res=`eval 'as_val=${'$as_ac_Header'}
15319 $as_echo "$as_val"'`
15320 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15321$as_echo "$ac_res" >&6; }
15322
15323fi
15324as_val=`eval 'as_val=${'$as_ac_Header'}
15325 $as_echo "$as_val"'`
15326 if test "x$as_val" = x""yes; then
15327 cat >>confdefs.h <<_ACEOF
15328#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15329_ACEOF
15330
15331else
15332 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
15333$as_echo "$as_me: error: bailing out" >&2;}
15334 { (exit 1); exit 1; }; }
15335fi
15336
15337done
15338
15339fi
15340
a653923f
AK
15341################################################################################
15342# Extract the first word of "modprobe", so it can be a program name with args.
15343set dummy modprobe; ac_word=$2
ec6a6fbe
AK
15344{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
15345$as_echo_n "checking for $ac_word... " >&6; }
72b2cb61 15346if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then
ec6a6fbe 15347 $as_echo_n "(cached) " >&6
72b2cb61
AK
15348else
15349 case $MODPROBE_CMD in
15350 [\\/]* | ?:[\\/]*)
15351 ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path.
15352 ;;
15353 *)
15354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15355for as_dir in $PATH
15356do
15357 IFS=$as_save_IFS
15358 test -z "$as_dir" && as_dir=.
15359 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 15360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
72b2cb61 15361 ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 15362 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
72b2cb61
AK
15363 break 2
15364 fi
15365done
15366done
7a197a62 15367IFS=$as_save_IFS
72b2cb61
AK
15368
15369 ;;
15370esac
15371fi
15372MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD
72b2cb61 15373if test -n "$MODPROBE_CMD"; then
ec6a6fbe
AK
15374 { $as_echo "$as_me:$LINENO: result: $MODPROBE_CMD" >&5
15375$as_echo "$MODPROBE_CMD" >&6; }
72b2cb61 15376else
ec6a6fbe
AK
15377 { $as_echo "$as_me:$LINENO: result: no" >&5
15378$as_echo "no" >&6; }
72b2cb61
AK
15379fi
15380
a653923f 15381
7a197a62 15382
a653923f 15383if test x$MODPROBE_CMD != x; then
72b2cb61
AK
15384
15385cat >>confdefs.h <<_ACEOF
15386#define MODPROBE_CMD "$MODPROBE_CMD"
15387_ACEOF
15388
a653923f
AK
15389fi
15390
80992638 15391################################################################################
93bd259b
AK
15392
15393
15394if test "$BUILD_DMEVENTD" = yes; then
15395
15396# Check whether --with-dmeventd-pidfile was given.
15397if test "${with_dmeventd_pidfile+set}" = set; then
15398 withval=$with_dmeventd_pidfile; cat >>confdefs.h <<_ACEOF
15399#define DMEVENTD_PIDFILE "$withval"
15400_ACEOF
15401
15402else
15403 cat >>confdefs.h <<_ACEOF
15404#define DMEVENTD_PIDFILE "/var/run/dmeventd.pid"
15405_ACEOF
15406
15407fi
15408
15409fi
15410
15411
15412
15413if test "$BUILD_DMEVENTD" = yes; then
15414 dmeventd_prefix="$exec_prefix"
15415 if test "x$dmeventd_prefix" = "xNONE"; then
15416 dmeventd_prefix="$prefix"
15417 fi
15418 if test "x$dmeventd_prefix" = "xNONE"; then
15419 dmeventd_prefix=""
15420 fi
15421
15422# Check whether --with-dmeventd-path was given.
15423if test "${with_dmeventd_path+set}" = set; then
15424 withval=$with_dmeventd_path; cat >>confdefs.h <<_ACEOF
15425#define DMEVENTD_PATH "$withval"
15426_ACEOF
15427
15428else
15429 cat >>confdefs.h <<_ACEOF
15430#define DMEVENTD_PATH "$dmeventd_prefix/sbin/dmeventd"
15431_ACEOF
15432
15433fi
15434
15435fi
15436
15437################################################################################
ec6a6fbe
AK
15438{ $as_echo "$as_me:$LINENO: checking for kernel interface choice" >&5
15439$as_echo_n "checking for kernel interface choice... " >&6; }
93bd259b
AK
15440
15441# Check whether --with-interface was given.
15442if test "${with_interface+set}" = set; then
15443 withval=$with_interface; interface="$withval"
15444else
15445 interface=ioctl
15446fi
15447
15448if [ "x$interface" != xioctl ];
15449then
ec6a6fbe
AK
15450 { { $as_echo "$as_me:$LINENO: error: --with-interface=ioctl required. fs no longer supported." >&5
15451$as_echo "$as_me: error: --with-interface=ioctl required. fs no longer supported." >&2;}
93bd259b
AK
15452 { (exit 1); exit 1; }; }
15453fi
ec6a6fbe
AK
15454{ $as_echo "$as_me:$LINENO: result: $interface" >&5
15455$as_echo "$interface" >&6; }
93bd259b
AK
15456
15457################################################################################
db8b5af9 15458DM_LIB_VERSION="\"`cat "$srcdir"/VERSION_DM 2>/dev/null || echo Unknown`\""
24bbc4d7
AK
15459
15460cat >>confdefs.h <<_ACEOF
15461#define DM_LIB_VERSION $DM_LIB_VERSION
15462_ACEOF
15463
15464
db8b5af9 15465DM_LIB_PATCHLEVEL=`cat "$srcdir"/VERSION_DM | $AWK -F '[-. ]' '{printf "%s.%s.%s",$1,$2,$3}'`
7e3fe830 15466
db8b5af9 15467LVM_VERSION="\"`cat "$srcdir"/VERSION 2>/dev/null || echo Unknown`\""
fae0c576 15468
db8b5af9 15469VER=`cat "$srcdir"/VERSION`
bf456146 15470LVM_RELEASE_DATE="\"`echo $VER | $SED 's/.* (//;s/).*//'`\""
ec6a6fbe
AK
15471VER=`echo "$VER" | $AWK '{print $1}'`
15472LVM_RELEASE="\"`echo "$VER" | $AWK -F '-' '{print $2}'`\""
15473VER=`echo "$VER" | $AWK -F '-' '{print $1}'`
15474LVM_MAJOR=`echo "$VER" | $AWK -F '.' '{print $1}'`
15475LVM_MINOR=`echo "$VER" | $AWK -F '.' '{print $2}'`
bf456146
AK
15476LVM_PATCHLEVEL=`echo "$VER" | $AWK -F '[(.]' '{print $3}'`
15477LVM_LIBAPI=`echo "$VER" | $AWK -F '[()]' '{print $2}'`
ec6a6fbe 15478
80992638 15479################################################################################
fae0c576 15480
83912faa 15481
795ca3e5
AK
15482
15483
15484
15485
15486
15487
5a52dca9 15488
8ef2b021 15489
199e490e 15490
69792976
AK
15491
15492
15493
d0191583 15494
69792976 15495
8106cdd5
AK
15496
15497
15498
15499
15500
d68a82ec 15501
036f273a 15502
7d1552c9 15503
8106cdd5 15504
0a62c911 15505
8106cdd5 15506
4a7f3eb2 15507
4922197a
AK
15508
15509
d8ac0fbc 15510
1a9ea74d 15511
8a2fc586
AK
15512
15513
d0191583 15514
93bd259b
AK
15515
15516
15517
15518
15519
d0191583
JM
15520
15521
15522
15523
15524
8a2fc586 15525
19a2c6e0 15526
db724a44 15527
8ce0cbda 15528
8b1a3214 15529
ec6a6fbe
AK
15530
15531
15532
15533
e2997b73
AK
15534
15535
15536
15537
15538
15539
a946372e
AK
15540
15541
15542
15543
15544
15545
15546
15547
15548
15549
15550
ec6a6fbe 15551
33f732c5 15552
66e941e8 15553
d3c8211f 15554
7e3fe830 15555
a5f46f6a
AK
15556
15557
15558
572fefeb 15559
90c80887
AK
15560
15561
bf456146 15562
e1b8a236 15563
0878503f 15564
68f2de6d
AK
15565
15566
80992638 15567################################################################################
d3d98fdc 15568ac_config_files="$ac_config_files Makefile make.tmpl daemons/Makefile daemons/clvmd/Makefile daemons/cmirrord/Makefile daemons/dmeventd/Makefile daemons/dmeventd/libdevmapper-event.pc daemons/dmeventd/plugins/Makefile daemons/dmeventd/plugins/lvm2/Makefile daemons/dmeventd/plugins/mirror/Makefile daemons/dmeventd/plugins/snapshot/Makefile doc/Makefile include/.symlinks include/Makefile lib/Makefile lib/format1/Makefile lib/format_pool/Makefile lib/locking/Makefile lib/mirror/Makefile lib/misc/lvm-version.h lib/snapshot/Makefile libdm/Makefile libdm/libdevmapper.pc liblvm/Makefile liblvm/liblvm2app.pc man/Makefile po/Makefile scripts/clvmd_init_red_hat scripts/cmirrord_init_red_hat scripts/lvm2_monitoring_init_red_hat scripts/Makefile test/Makefile test/api/Makefile tools/Makefile udev/Makefile"
7a197a62 15569
ad6254c5 15570cat >confcache <<\_ACEOF
795ca3e5
AK
15571# This file is a shell script that caches the results of configure
15572# tests run on this system so they can be shared between configure
ad6254c5
AK
15573# scripts and configure runs, see configure's option --config-cache.
15574# It is not useful on other systems. If it contains results you don't
15575# want to keep, you may remove or edit it.
795ca3e5 15576#
ad6254c5
AK
15577# config.status only pays attention to the cache file if you give it
15578# the --recheck option to rerun configure.
795ca3e5 15579#
ad6254c5
AK
15580# `ac_cv_env_foo' variables (set or unset) will be overridden when
15581# loading this file, other *unset* `ac_cv_foo' will be assigned the
15582# following values.
15583
15584_ACEOF
15585
795ca3e5
AK
15586# The following way of writing the cache mishandles newlines in values,
15587# but we know of no workaround that is simple, portable, and efficient.
7a197a62 15588# So, we kill variables containing newlines.
795ca3e5
AK
15589# Ultrix sh set writes to stderr and can't be redirected directly,
15590# and sets the high bit in the cache file unless we assign to the vars.
7a197a62
AK
15591(
15592 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15593 eval ac_val=\$$ac_var
15594 case $ac_val in #(
15595 *${as_nl}*)
15596 case $ac_var in #(
ec6a6fbe
AK
15597 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
15598$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7a197a62
AK
15599 esac
15600 case $ac_var in #(
15601 _ | IFS | as_nl) ;; #(
ec6a6fbe 15602 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7a197a62
AK
15603 *) $as_unset $ac_var ;;
15604 esac ;;
15605 esac
15606 done
15607
ad6254c5 15608 (set) 2>&1 |
7a197a62
AK
15609 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15610 *${as_nl}ac_space=\ *)
ad6254c5
AK
15611 # `set' does not quote correctly, so add quotes (double-quote
15612 # substitution turns \\\\ into \\, and sed turns \\ into \).
15613 sed -n \
8a2fc586
AK
15614 "s/'/'\\\\''/g;
15615 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7a197a62 15616 ;; #(
ad6254c5
AK
15617 *)
15618 # `set' quotes correctly as required by POSIX, so do not add quotes.
7a197a62 15619 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
ad6254c5 15620 ;;
7a197a62
AK
15621 esac |
15622 sort
15623) |
ad6254c5 15624 sed '
7a197a62 15625 /^ac_cv_env_/b end
ad6254c5 15626 t clear
7a197a62 15627 :clear
ad6254c5
AK
15628 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15629 t end
7a197a62
AK
15630 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15631 :end' >>confcache
15632if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15633 if test -w "$cache_file"; then
15634 test "x$cache_file" != "x/dev/null" &&
ec6a6fbe
AK
15635 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
15636$as_echo "$as_me: updating cache $cache_file" >&6;}
ad6254c5 15637 cat confcache >$cache_file
795ca3e5 15638 else
ec6a6fbe
AK
15639 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
15640$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
795ca3e5
AK
15641 fi
15642fi
15643rm -f confcache
15644
795ca3e5
AK
15645test "x$prefix" = xNONE && prefix=$ac_default_prefix
15646# Let make expand exec_prefix.
15647test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15648
72b2cb61 15649DEFS=-DHAVE_CONFIG_H
ad6254c5
AK
15650
15651ac_libobjs=
15652ac_ltlibobjs=
15653for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15654 # 1. Remove the extension, and $U if already installed.
7a197a62 15655 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
ec6a6fbe 15656 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7a197a62
AK
15657 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15658 # will be set to the directory where LIBOBJS objects are built.
15659 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15660 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
ad6254c5
AK
15661done
15662LIBOBJS=$ac_libobjs
80992638 15663
ad6254c5
AK
15664LTLIBOBJS=$ac_ltlibobjs
15665
15666
15667
15668: ${CONFIG_STATUS=./config.status}
ec6a6fbe 15669ac_write_fail=0
ad6254c5
AK
15670ac_clean_files_save=$ac_clean_files
15671ac_clean_files="$ac_clean_files $CONFIG_STATUS"
ec6a6fbe
AK
15672{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15673$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15674cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5
AK
15675#! $SHELL
15676# Generated by $as_me.
795ca3e5 15677# Run this file to recreate the current configuration.
795ca3e5 15678# Compiler output produced by configure, useful for debugging
ad6254c5
AK
15679# configure, is in config.log if it exists.
15680
15681debug=false
15682ac_cs_recheck=false
15683ac_cs_silent=false
15684SHELL=\${CONFIG_SHELL-$SHELL}
15685_ACEOF
15686
ec6a6fbe 15687cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ad6254c5
AK
15688## --------------------- ##
15689## M4sh Initialization. ##
15690## --------------------- ##
15691
25fbec5b
AK
15692# Be more Bourne compatible
15693DUALCASE=1; export DUALCASE # for MKS sh
ad6254c5
AK
15694if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15695 emulate sh
15696 NULLCMD=:
ec6a6fbe 15697 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
ad6254c5
AK
15698 # is contrary to our usage. Disable this feature.
15699 alias -g '${1+"$@"}'='"$@"'
7a197a62
AK
15700 setopt NO_GLOB_SUBST
15701else
25fbec5b
AK
15702 case `(set -o) 2>/dev/null` in
15703 *posix*) set -o posix ;;
15704esac
15705
7a197a62 15706fi
25fbec5b
AK
15707
15708
7a197a62
AK
15709
15710
15711# PATH needs CR
15712# Avoid depending upon Character Ranges.
15713as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15714as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15715as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15716as_cr_digits='0123456789'
15717as_cr_alnum=$as_cr_Letters$as_cr_digits
15718
ec6a6fbe
AK
15719as_nl='
15720'
15721export as_nl
15722# Printing a long string crashes Solaris 7 /usr/bin/printf.
15723as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15724as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15725as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15726if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15727 as_echo='printf %s\n'
15728 as_echo_n='printf %s'
15729else
15730 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15731 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15732 as_echo_n='/usr/ucb/echo -n'
68f2de6d 15733 else
ec6a6fbe
AK
15734 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15735 as_echo_n_body='eval
15736 arg=$1;
15737 case $arg in
15738 *"$as_nl"*)
15739 expr "X$arg" : "X\\(.*\\)$as_nl";
15740 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15741 esac;
15742 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15743 '
15744 export as_echo_n_body
15745 as_echo_n='sh -c $as_echo_n_body as_echo'
68f2de6d 15746 fi
ec6a6fbe
AK
15747 export as_echo_body
15748 as_echo='sh -c $as_echo_body as_echo'
15749fi
15750
15751# The user is always right.
15752if test "${PATH_SEPARATOR+set}" != set; then
15753 PATH_SEPARATOR=:
15754 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15755 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15756 PATH_SEPARATOR=';'
15757 }
ad6254c5
AK
15758fi
15759
15760# Support unset when possible.
8a2fc586 15761if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
ad6254c5
AK
15762 as_unset=unset
15763else
15764 as_unset=false
15765fi
8106cdd5 15766
ad6254c5 15767
7a197a62
AK
15768# IFS
15769# We need space, tab and new line, in precisely that order. Quoting is
15770# there to prevent editors from complaining about space-tab.
15771# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15772# splitting by setting IFS to empty value.)
7a197a62
AK
15773IFS=" "" $as_nl"
15774
15775# Find who we are. Look in the path if we contain no directory separator.
15776case $0 in
15777 *[\\/]* ) as_myself=$0 ;;
15778 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15779for as_dir in $PATH
15780do
15781 IFS=$as_save_IFS
15782 test -z "$as_dir" && as_dir=.
15783 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15784done
15785IFS=$as_save_IFS
15786
15787 ;;
15788esac
15789# We did not find ourselves, most probably we were run as `sh COMMAND'
15790# in which case we are not to be found in the path.
15791if test "x$as_myself" = x; then
15792 as_myself=$0
15793fi
15794if test ! -f "$as_myself"; then
ec6a6fbe 15795 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7a197a62
AK
15796 { (exit 1); exit 1; }
15797fi
15798
ad6254c5 15799# Work around bugs in pre-3.0 UWIN ksh.
7a197a62
AK
15800for as_var in ENV MAIL MAILPATH
15801do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15802done
ad6254c5
AK
15803PS1='$ '
15804PS2='> '
15805PS4='+ '
15806
15807# NLS nuisances.
ec6a6fbe
AK
15808LC_ALL=C
15809export LC_ALL
15810LANGUAGE=C
15811export LANGUAGE
8106cdd5 15812
ad6254c5 15813# Required to use basename.
7a197a62
AK
15814if expr a : '\(a\)' >/dev/null 2>&1 &&
15815 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
15816 as_expr=expr
15817else
15818 as_expr=false
15819fi
8106cdd5 15820
7a197a62 15821if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
ad6254c5
AK
15822 as_basename=basename
15823else
15824 as_basename=false
15825fi
15826
15827
15828# Name of the executable.
7a197a62 15829as_me=`$as_basename -- "$0" ||
ad6254c5
AK
15830$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15831 X"$0" : 'X\(//\)$' \| \
7a197a62 15832 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 15833$as_echo X/"$0" |
7a197a62
AK
15834 sed '/^.*\/\([^/][^/]*\)\/*$/{
15835 s//\1/
15836 q
15837 }
15838 /^X\/\(\/\/\)$/{
15839 s//\1/
15840 q
15841 }
15842 /^X\/\(\/\).*/{
15843 s//\1/
15844 q
15845 }
15846 s/.*/./; q'`
ad6254c5 15847
7a197a62
AK
15848# CDPATH.
15849$as_unset CDPATH
ad6254c5
AK
15850
15851
ad6254c5 15852
ad6254c5
AK
15853 as_lineno_1=$LINENO
15854 as_lineno_2=$LINENO
ad6254c5 15855 test "x$as_lineno_1" != "x$as_lineno_2" &&
7a197a62 15856 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
795ca3e5 15857
ad6254c5
AK
15858 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15859 # uniformly replaced by the line number. The first 'sed' inserts a
7a197a62
AK
15860 # line-number line after each line using $LINENO; the second 'sed'
15861 # does the real work. The second script uses 'N' to pair each
15862 # line-number line with the line containing $LINENO, and appends
15863 # trailing '-' during substitution so that $LINENO is not a special
15864 # case at line end.
ad6254c5 15865 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7a197a62
AK
15866 # scripts with optimization help from Paolo Bonzini. Blame Lee
15867 # E. McMahon (1931-1989) for sed's syntax. :-)
15868 sed -n '
15869 p
15870 /[$]LINENO/=
15871 ' <$as_myself |
ad6254c5 15872 sed '
7a197a62
AK
15873 s/[$]LINENO.*/&-/
15874 t lineno
15875 b
15876 :lineno
ad6254c5 15877 N
7a197a62
AK
15878 :loop
15879 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
ad6254c5 15880 t loop
7a197a62 15881 s/-\n.*//
ad6254c5 15882 ' >$as_me.lineno &&
7a197a62 15883 chmod +x "$as_me.lineno" ||
ec6a6fbe 15884 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
ad6254c5
AK
15885 { (exit 1); exit 1; }; }
15886
15887 # Don't try to exec as it changes $[0], causing all sort of problems
15888 # (the dirname of $[0] is not the place where we might find the
7a197a62
AK
15889 # original and so on. Autoconf is especially sensitive to this).
15890 . "./$as_me.lineno"
ad6254c5
AK
15891 # Exit status is that of the last command.
15892 exit
15893}
15894
15895
7a197a62
AK
15896if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15897 as_dirname=dirname
15898else
15899 as_dirname=false
15900fi
15901
15902ECHO_C= ECHO_N= ECHO_T=
15903case `echo -n x` in
15904-n*)
15905 case `echo 'x\c'` in
15906 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15907 *) ECHO_C='\c';;
15908 esac;;
15909*)
15910 ECHO_N='-n';;
ad6254c5 15911esac
7a197a62
AK
15912if expr a : '\(a\)' >/dev/null 2>&1 &&
15913 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
15914 as_expr=expr
15915else
15916 as_expr=false
15917fi
80992638 15918
ad6254c5 15919rm -f conf$$ conf$$.exe conf$$.file
7a197a62
AK
15920if test -d conf$$.dir; then
15921 rm -f conf$$.dir/conf$$.file
15922else
15923 rm -f conf$$.dir
ec6a6fbe
AK
15924 mkdir conf$$.dir 2>/dev/null
15925fi
15926if (echo >conf$$.file) 2>/dev/null; then
15927 if ln -s conf$$.file conf$$ 2>/dev/null; then
15928 as_ln_s='ln -s'
15929 # ... but there are two gotchas:
15930 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15931 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15932 # In both cases, we have to default to `cp -p'.
15933 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15934 as_ln_s='cp -p'
15935 elif ln conf$$.file conf$$ 2>/dev/null; then
15936 as_ln_s=ln
15937 else
ad6254c5 15938 as_ln_s='cp -p'
ec6a6fbe 15939 fi
ad6254c5
AK
15940else
15941 as_ln_s='cp -p'
15942fi
7a197a62
AK
15943rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15944rmdir conf$$.dir 2>/dev/null
8106cdd5 15945
ad6254c5
AK
15946if mkdir -p . 2>/dev/null; then
15947 as_mkdir_p=:
15948else
8a2fc586 15949 test -d ./-p && rmdir ./-p
ad6254c5
AK
15950 as_mkdir_p=false
15951fi
15952
25fbec5b
AK
15953if test -x / >/dev/null 2>&1; then
15954 as_test_x='test -x'
7a197a62 15955else
25fbec5b
AK
15956 if ls -dL / >/dev/null 2>&1; then
15957 as_ls_L_option=L
15958 else
15959 as_ls_L_option=
15960 fi
15961 as_test_x='
15962 eval sh -c '\''
15963 if test -d "$1"; then
ec6a6fbe 15964 test -d "$1/.";
25fbec5b
AK
15965 else
15966 case $1 in
ec6a6fbe 15967 -*)set "./$1";;
25fbec5b
AK
15968 esac;
15969 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
15970 ???[sx]*):;;*)false;;esac;fi
15971 '\'' sh
15972 '
7a197a62 15973fi
25fbec5b 15974as_executable_p=$as_test_x
ad6254c5
AK
15975
15976# Sed expression to map a string onto a valid CPP name.
8a2fc586 15977as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
15978
15979# Sed expression to map a string onto a valid variable name.
8a2fc586 15980as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
15981
15982
ad6254c5
AK
15983exec 6>&1
15984
7a197a62 15985# Save the log message, to keep $[0] and so on meaningful, and to
ad6254c5 15986# report actual input values of CONFIG_FILES etc. instead of their
7a197a62
AK
15987# values after options handling.
15988ac_log="
ad6254c5 15989This file was extended by $as_me, which was
ec6a6fbe 15990generated by GNU Autoconf 2.63. Invocation command line was
ad6254c5
AK
15991
15992 CONFIG_FILES = $CONFIG_FILES
15993 CONFIG_HEADERS = $CONFIG_HEADERS
15994 CONFIG_LINKS = $CONFIG_LINKS
15995 CONFIG_COMMANDS = $CONFIG_COMMANDS
15996 $ $0 $@
15997
7a197a62
AK
15998on `(hostname || uname -n) 2>/dev/null | sed 1q`
15999"
16000
ad6254c5
AK
16001_ACEOF
16002
ec6a6fbe
AK
16003case $ac_config_files in *"
16004"*) set x $ac_config_files; shift; ac_config_files=$*;;
16005esac
16006
16007case $ac_config_headers in *"
16008"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16009esac
16010
16011
16012cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5 16013# Files that config.status was made for.
68f2de6d
AK
16014config_files="$ac_config_files"
16015config_headers="$ac_config_headers"
ad6254c5 16016
7a197a62 16017_ACEOF
ad6254c5 16018
ec6a6fbe 16019cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ad6254c5
AK
16020ac_cs_usage="\
16021\`$as_me' instantiates files from templates according to the
16022current configuration.
16023
ec6a6fbe 16024Usage: $0 [OPTION]... [FILE]...
ad6254c5
AK
16025
16026 -h, --help print this help, then exit
25fbec5b 16027 -V, --version print version number and configuration settings, then exit
ec6a6fbe
AK
16028 -q, --quiet, --silent
16029 do not print progress messages
ad6254c5
AK
16030 -d, --debug don't remove temporary files
16031 --recheck update $as_me by reconfiguring in the same conditions
ec6a6fbe
AK
16032 --file=FILE[:TEMPLATE]
16033 instantiate the configuration file FILE
16034 --header=FILE[:TEMPLATE]
16035 instantiate the configuration header FILE
ad6254c5
AK
16036
16037Configuration files:
16038$config_files
16039
72b2cb61
AK
16040Configuration headers:
16041$config_headers
16042
ad6254c5 16043Report bugs to <bug-autoconf@gnu.org>."
ad6254c5 16044
7a197a62 16045_ACEOF
ec6a6fbe 16046cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5
AK
16047ac_cs_version="\\
16048config.status
ec6a6fbe
AK
16049configured by $0, generated by GNU Autoconf 2.63,
16050 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
ad6254c5 16051
ec6a6fbe 16052Copyright (C) 2008 Free Software Foundation, Inc.
ad6254c5
AK
16053This config.status script is free software; the Free Software Foundation
16054gives unlimited permission to copy, distribute and modify it."
7a197a62
AK
16055
16056ac_pwd='$ac_pwd'
16057srcdir='$srcdir'
16058INSTALL='$INSTALL'
fddafd51 16059MKDIR_P='$MKDIR_P'
ec6a6fbe
AK
16060AWK='$AWK'
16061test -n "\$AWK" || AWK=awk
ad6254c5
AK
16062_ACEOF
16063
ec6a6fbe
AK
16064cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16065# The default lists apply if the user does not specify any file.
ad6254c5
AK
16066ac_need_defaults=:
16067while test $# != 0
16068do
16069 case $1 in
16070 --*=*)
7a197a62
AK
16071 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16072 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
ad6254c5
AK
16073 ac_shift=:
16074 ;;
7a197a62 16075 *)
ad6254c5
AK
16076 ac_option=$1
16077 ac_optarg=$2
16078 ac_shift=shift
16079 ;;
ad6254c5
AK
16080 esac
16081
16082 case $ac_option in
16083 # Handling of the options.
ad6254c5
AK
16084 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16085 ac_cs_recheck=: ;;
7a197a62 16086 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
ec6a6fbe 16087 $as_echo "$ac_cs_version"; exit ;;
7a197a62 16088 --debug | --debu | --deb | --de | --d | -d )
ad6254c5
AK
16089 debug=: ;;
16090 --file | --fil | --fi | --f )
16091 $ac_shift
ec6a6fbe
AK
16092 case $ac_optarg in
16093 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16094 esac
16095 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
ad6254c5
AK
16096 ac_need_defaults=false;;
16097 --header | --heade | --head | --hea )
16098 $ac_shift
ec6a6fbe
AK
16099 case $ac_optarg in
16100 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16101 esac
16102 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
ad6254c5 16103 ac_need_defaults=false;;
7a197a62
AK
16104 --he | --h)
16105 # Conflict between --help and --header
ec6a6fbe 16106 { $as_echo "$as_me: error: ambiguous option: $1
7a197a62
AK
16107Try \`$0 --help' for more information." >&2
16108 { (exit 1); exit 1; }; };;
16109 --help | --hel | -h )
ec6a6fbe 16110 $as_echo "$ac_cs_usage"; exit ;;
ad6254c5
AK
16111 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16112 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16113 ac_cs_silent=: ;;
16114
16115 # This is an error.
ec6a6fbe 16116 -*) { $as_echo "$as_me: error: unrecognized option: $1
7a197a62 16117Try \`$0 --help' for more information." >&2
ad6254c5
AK
16118 { (exit 1); exit 1; }; } ;;
16119
7a197a62
AK
16120 *) ac_config_targets="$ac_config_targets $1"
16121 ac_need_defaults=false ;;
ad6254c5
AK
16122
16123 esac
16124 shift
16125done
16126
16127ac_configure_extra_args=
16128
16129if $ac_cs_silent; then
16130 exec 6>/dev/null
16131 ac_configure_extra_args="$ac_configure_extra_args --silent"
16132fi
16133
16134_ACEOF
ec6a6fbe 16135cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5 16136if \$ac_cs_recheck; then
ec6a6fbe
AK
16137 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16138 shift
16139 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16140 CONFIG_SHELL='$SHELL'
7a197a62 16141 export CONFIG_SHELL
ec6a6fbe 16142 exec "\$@"
ad6254c5
AK
16143fi
16144
16145_ACEOF
ec6a6fbe 16146cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
16147exec 5>>config.log
16148{
16149 echo
16150 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16151## Running $as_me. ##
16152_ASBOX
ec6a6fbe 16153 $as_echo "$ac_log"
7a197a62 16154} >&5
ad6254c5 16155
7a197a62 16156_ACEOF
ec6a6fbe 16157cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7a197a62 16158_ACEOF
ad6254c5 16159
ec6a6fbe 16160cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
16161
16162# Handling of arguments.
ad6254c5
AK
16163for ac_config_target in $ac_config_targets
16164do
7a197a62
AK
16165 case $ac_config_target in
16166 "lib/misc/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;;
16167 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16168 "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;;
16169 "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;;
16170 "daemons/clvmd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;;
5d311afb 16171 "daemons/cmirrord/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/cmirrord/Makefile" ;;
93bd259b
AK
16172 "daemons/dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/Makefile" ;;
16173 "daemons/dmeventd/libdevmapper-event.pc") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/libdevmapper-event.pc" ;;
04f06bc9 16174 "daemons/dmeventd/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/Makefile" ;;
d3d98fdc 16175 "daemons/dmeventd/plugins/lvm2/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/lvm2/Makefile" ;;
93bd259b
AK
16176 "daemons/dmeventd/plugins/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/mirror/Makefile" ;;
16177 "daemons/dmeventd/plugins/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/snapshot/Makefile" ;;
7a197a62 16178 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
db8b5af9 16179 "include/.symlinks") CONFIG_FILES="$CONFIG_FILES include/.symlinks" ;;
93bd259b
AK
16180 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
16181 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
7a197a62
AK
16182 "lib/format1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;;
16183 "lib/format_pool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;;
16184 "lib/locking/Makefile") CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;;
16185 "lib/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;;
ec6a6fbe 16186 "lib/misc/lvm-version.h") CONFIG_FILES="$CONFIG_FILES lib/misc/lvm-version.h" ;;
7a197a62 16187 "lib/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;;
93bd259b
AK
16188 "libdm/Makefile") CONFIG_FILES="$CONFIG_FILES libdm/Makefile" ;;
16189 "libdm/libdevmapper.pc") CONFIG_FILES="$CONFIG_FILES libdm/libdevmapper.pc" ;;
e0c64c6c 16190 "liblvm/Makefile") CONFIG_FILES="$CONFIG_FILES liblvm/Makefile" ;;
70046623 16191 "liblvm/liblvm2app.pc") CONFIG_FILES="$CONFIG_FILES liblvm/liblvm2app.pc" ;;
93bd259b
AK
16192 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
16193 "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
75ad7143 16194 "scripts/clvmd_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/clvmd_init_red_hat" ;;
81410c8f 16195 "scripts/cmirrord_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/cmirrord_init_red_hat" ;;
595eaf92 16196 "scripts/lvm2_monitoring_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_monitoring_init_red_hat" ;;
7a197a62 16197 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
93bd259b 16198 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
c7e363f9 16199 "test/api/Makefile") CONFIG_FILES="$CONFIG_FILES test/api/Makefile" ;;
7a197a62 16200 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
a5f46f6a 16201 "udev/Makefile") CONFIG_FILES="$CONFIG_FILES udev/Makefile" ;;
7a197a62 16202
ec6a6fbe
AK
16203 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16204$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
ad6254c5 16205 { (exit 1); exit 1; }; };;
80992638 16206 esac
ad6254c5
AK
16207done
16208
7a197a62 16209
ad6254c5
AK
16210# If the user did not use the arguments to specify the items to instantiate,
16211# then the envvar interface is used. Set only those that are not.
16212# We use the long form for the default assignment because of an extremely
16213# bizarre bug on SunOS 4.1.3.
16214if $ac_need_defaults; then
16215 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
72b2cb61 16216 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
ad6254c5
AK
16217fi
16218
16219# Have a temporary directory for convenience. Make it in the build tree
7a197a62 16220# simply because there is no reason against having it here, and in addition,
ad6254c5 16221# creating and moving files from /tmp can sometimes cause problems.
7a197a62
AK
16222# Hook for its removal unless debugging.
16223# Note that there is a small window in which the directory will not be cleaned:
16224# after its creation but before its name has been assigned to `$tmp'.
ad6254c5
AK
16225$debug ||
16226{
7a197a62
AK
16227 tmp=
16228 trap 'exit_status=$?
16229 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16230' 0
ad6254c5
AK
16231 trap '{ (exit 1); exit 1; }' 1 2 13 15
16232}
ad6254c5
AK
16233# Create a (secure) tmp directory for tmp files.
16234
16235{
7a197a62 16236 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
ad6254c5
AK
16237 test -n "$tmp" && test -d "$tmp"
16238} ||
16239{
7a197a62
AK
16240 tmp=./conf$$-$RANDOM
16241 (umask 077 && mkdir "$tmp")
ad6254c5
AK
16242} ||
16243{
ec6a6fbe 16244 $as_echo "$as_me: cannot create a temporary directory in ." >&2
ad6254c5
AK
16245 { (exit 1); exit 1; }
16246}
16247
ec6a6fbe
AK
16248# Set up the scripts for CONFIG_FILES section.
16249# No need to generate them if there are no CONFIG_FILES.
16250# This happens for instance with `./config.status config.h'.
1995c9ff 16251if test -n "$CONFIG_FILES"; then
7a197a62 16252
68f2de6d 16253
ec6a6fbe
AK
16254ac_cr='\r'
16255ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16256if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16257 ac_cs_awk_cr='\\r'
16258else
16259 ac_cs_awk_cr=$ac_cr
1995c9ff 16260fi
7a197a62 16261
ec6a6fbe 16262echo 'BEGIN {' >"$tmp/subs1.awk" &&
1995c9ff 16263_ACEOF
7a197a62 16264
8106cdd5 16265
ec6a6fbe
AK
16266{
16267 echo "cat >conf$$subs.awk <<_ACEOF" &&
16268 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16269 echo "_ACEOF"
16270} >conf$$subs.sh ||
16271 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16272$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16273 { (exit 1); exit 1; }; }
16274ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
1995c9ff
AK
16275ac_delim='%!_!# '
16276for ac_last_try in false false false false false :; do
ec6a6fbe
AK
16277 . ./conf$$subs.sh ||
16278 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16279$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16280 { (exit 1); exit 1; }; }
16281
16282 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16283 if test $ac_delim_n = $ac_delim_num; then
1995c9ff
AK
16284 break
16285 elif $ac_last_try; then
ec6a6fbe
AK
16286 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16287$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
1995c9ff
AK
16288 { (exit 1); exit 1; }; }
16289 else
16290 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16291 fi
16292done
ec6a6fbe
AK
16293rm -f conf$$subs.sh
16294
16295cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16296cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16297_ACEOF
16298sed -n '
16299h
16300s/^/S["/; s/!.*/"]=/
16301p
16302g
16303s/^[^!]*!//
16304:repl
16305t repl
16306s/'"$ac_delim"'$//
16307t delim
16308:nl
16309h
16310s/\(.\{148\}\).*/\1/
16311t more1
16312s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16313p
16314n
16315b repl
16316:more1
16317s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16318p
16319g
16320s/.\{148\}//
16321t nl
16322:delim
16323h
16324s/\(.\{148\}\).*/\1/
16325t more2
16326s/["\\]/\\&/g; s/^/"/; s/$/"/
16327p
16328b
16329:more2
16330s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16331p
16332g
16333s/.\{148\}//
16334t delim
16335' <conf$$subs.awk | sed '
16336/^[^""]/{
16337 N
16338 s/\n//
16339}
16340' >>$CONFIG_STATUS || ac_write_fail=1
16341rm -f conf$$subs.awk
16342cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16343_ACAWK
16344cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16345 for (key in S) S_is_set[key] = 1
16346 FS = "\a"
7a197a62 16347
ec6a6fbe
AK
16348}
16349{
16350 line = $ 0
16351 nfields = split(line, field, "@")
16352 substed = 0
16353 len = length(field[1])
16354 for (i = 2; i < nfields; i++) {
16355 key = field[i]
16356 keylen = length(key)
16357 if (S_is_set[key]) {
16358 value = S[key]
16359 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16360 len += length(value) + length(field[++i])
16361 substed = 1
16362 } else
16363 len += 1 + keylen
16364 }
16365
16366 print line
16367}
fddafd51 16368
ec6a6fbe 16369_ACAWK
1995c9ff 16370_ACEOF
ec6a6fbe
AK
16371cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16372if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16373 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16374else
16375 cat
16376fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16377 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
16378$as_echo "$as_me: error: could not setup config files machinery" >&2;}
16379 { (exit 1); exit 1; }; }
7a197a62
AK
16380_ACEOF
16381
7a197a62
AK
16382# VPATH may cause trouble with some makes, so we remove $(srcdir),
16383# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16384# trailing colons and then remove the whole line if VPATH becomes empty
16385# (actually we leave an empty line to preserve line numbers).
16386if test "x$srcdir" = x.; then
16387 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16388s/:*\$(srcdir):*/:/
16389s/:*\${srcdir}:*/:/
16390s/:*@srcdir@:*/:/
16391s/^\([^=]*=[ ]*\):*/\1/
16392s/:*$//
16393s/^[^=]*=[ ]*$//
16394}'
16395fi
16396
ec6a6fbe 16397cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
16398fi # test -n "$CONFIG_FILES"
16399
ec6a6fbe
AK
16400# Set up the scripts for CONFIG_HEADERS section.
16401# No need to generate them if there are no CONFIG_HEADERS.
16402# This happens for instance with `./config.status Makefile'.
16403if test -n "$CONFIG_HEADERS"; then
16404cat >"$tmp/defines.awk" <<\_ACAWK ||
16405BEGIN {
16406_ACEOF
16407
16408# Transform confdefs.h into an awk script `defines.awk', embedded as
16409# here-document in config.status, that substitutes the proper values into
16410# config.h.in to produce config.h.
16411
16412# Create a delimiter string that does not exist in confdefs.h, to ease
16413# handling of long lines.
16414ac_delim='%!_!# '
16415for ac_last_try in false false :; do
16416 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16417 if test -z "$ac_t"; then
16418 break
16419 elif $ac_last_try; then
16420 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
16421$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
16422 { (exit 1); exit 1; }; }
16423 else
16424 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16425 fi
16426done
16427
16428# For the awk script, D is an array of macro values keyed by name,
16429# likewise P contains macro parameters if any. Preserve backslash
16430# newline sequences.
16431
16432ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16433sed -n '
16434s/.\{148\}/&'"$ac_delim"'/g
16435t rset
16436:rset
16437s/^[ ]*#[ ]*define[ ][ ]*/ /
16438t def
16439d
16440:def
16441s/\\$//
16442t bsnl
16443s/["\\]/\\&/g
16444s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16445D["\1"]=" \3"/p
16446s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16447d
16448:bsnl
16449s/["\\]/\\&/g
16450s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16451D["\1"]=" \3\\\\\\n"\\/p
16452t cont
16453s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16454t cont
16455d
16456:cont
16457n
16458s/.\{148\}/&'"$ac_delim"'/g
16459t clear
16460:clear
16461s/\\$//
16462t bsnlc
16463s/["\\]/\\&/g; s/^/"/; s/$/"/p
16464d
16465:bsnlc
16466s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16467b cont
16468' <confdefs.h | sed '
16469s/'"$ac_delim"'/"\\\
16470"/g' >>$CONFIG_STATUS || ac_write_fail=1
16471
16472cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16473 for (key in D) D_is_set[key] = 1
16474 FS = "\a"
16475}
16476/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16477 line = \$ 0
16478 split(line, arg, " ")
16479 if (arg[1] == "#") {
16480 defundef = arg[2]
16481 mac1 = arg[3]
16482 } else {
16483 defundef = substr(arg[1], 2)
16484 mac1 = arg[2]
16485 }
16486 split(mac1, mac2, "(") #)
16487 macro = mac2[1]
16488 prefix = substr(line, 1, index(line, defundef) - 1)
16489 if (D_is_set[macro]) {
16490 # Preserve the white space surrounding the "#".
16491 print prefix "define", macro P[macro] D[macro]
16492 next
16493 } else {
16494 # Replace #undef with comments. This is necessary, for example,
16495 # in the case of _POSIX_SOURCE, which is predefined and required
16496 # on some systems where configure will not decide to define it.
16497 if (defundef == "undef") {
16498 print "/*", prefix defundef, macro, "*/"
16499 next
16500 }
16501 }
16502}
16503{ print }
16504_ACAWK
16505_ACEOF
16506cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16507 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
16508$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
16509 { (exit 1); exit 1; }; }
16510fi # test -n "$CONFIG_HEADERS"
16511
7a197a62 16512
ec6a6fbe
AK
16513eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
16514shift
16515for ac_tag
7a197a62
AK
16516do
16517 case $ac_tag in
16518 :[FHLC]) ac_mode=$ac_tag; continue;;
16519 esac
16520 case $ac_mode$ac_tag in
16521 :[FHL]*:*);;
ec6a6fbe
AK
16522 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
16523$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
7a197a62
AK
16524 { (exit 1); exit 1; }; };;
16525 :[FH]-) ac_tag=-:-;;
16526 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16527 esac
16528 ac_save_IFS=$IFS
16529 IFS=:
16530 set x $ac_tag
16531 IFS=$ac_save_IFS
16532 shift
16533 ac_file=$1
16534 shift
16535
16536 case $ac_mode in
16537 :L) ac_source=$1;;
16538 :[FH])
16539 ac_file_inputs=
16540 for ac_f
16541 do
16542 case $ac_f in
16543 -) ac_f="$tmp/stdin";;
16544 *) # Look for the file first in the build tree, then in the source tree
16545 # (if the path is not absolute). The absolute path cannot be DOS-style,
16546 # because $ac_f cannot contain `:'.
16547 test -f "$ac_f" ||
16548 case $ac_f in
16549 [\\/$]*) false;;
16550 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16551 esac ||
ec6a6fbe
AK
16552 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
16553$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
7a197a62
AK
16554 { (exit 1); exit 1; }; };;
16555 esac
ec6a6fbe
AK
16556 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16557 ac_file_inputs="$ac_file_inputs '$ac_f'"
7a197a62
AK
16558 done
16559
16560 # Let's still pretend it is `configure' which instantiates (i.e., don't
16561 # use $as_me), people would be surprised to read:
16562 # /* config.h. Generated by config.status. */
ec6a6fbe
AK
16563 configure_input='Generated from '`
16564 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16565 `' by configure.'
7a197a62
AK
16566 if test x"$ac_file" != x-; then
16567 configure_input="$ac_file. $configure_input"
ec6a6fbe
AK
16568 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
16569$as_echo "$as_me: creating $ac_file" >&6;}
7a197a62 16570 fi
ec6a6fbe
AK
16571 # Neutralize special characters interpreted by sed in replacement strings.
16572 case $configure_input in #(
16573 *\&* | *\|* | *\\* )
16574 ac_sed_conf_input=`$as_echo "$configure_input" |
16575 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16576 *) ac_sed_conf_input=$configure_input;;
16577 esac
7a197a62
AK
16578
16579 case $ac_tag in
ec6a6fbe
AK
16580 *:-:* | *:-) cat >"$tmp/stdin" \
16581 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16582$as_echo "$as_me: error: could not create $ac_file" >&2;}
16583 { (exit 1); exit 1; }; } ;;
7a197a62
AK
16584 esac
16585 ;;
80992638 16586 esac
8106cdd5 16587
7a197a62 16588 ac_dir=`$as_dirname -- "$ac_file" ||
ad6254c5 16589$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8a2fc586
AK
16590 X"$ac_file" : 'X\(//\)[^/]' \| \
16591 X"$ac_file" : 'X\(//\)$' \| \
7a197a62 16592 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 16593$as_echo X"$ac_file" |
7a197a62
AK
16594 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16595 s//\1/
16596 q
16597 }
16598 /^X\(\/\/\)[^/].*/{
16599 s//\1/
16600 q
16601 }
16602 /^X\(\/\/\)$/{
16603 s//\1/
16604 q
16605 }
16606 /^X\(\/\).*/{
16607 s//\1/
16608 q
16609 }
16610 s/.*/./; q'`
16611 { as_dir="$ac_dir"
16612 case $as_dir in #(
16613 -*) as_dir=./$as_dir;;
16614 esac
16615 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
ad6254c5 16616 as_dirs=
7a197a62
AK
16617 while :; do
16618 case $as_dir in #(
ec6a6fbe 16619 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7a197a62
AK
16620 *) as_qdir=$as_dir;;
16621 esac
16622 as_dirs="'$as_qdir' $as_dirs"
16623 as_dir=`$as_dirname -- "$as_dir" ||
ad6254c5 16624$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8a2fc586
AK
16625 X"$as_dir" : 'X\(//\)[^/]' \| \
16626 X"$as_dir" : 'X\(//\)$' \| \
7a197a62 16627 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 16628$as_echo X"$as_dir" |
7a197a62
AK
16629 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16630 s//\1/
16631 q
16632 }
16633 /^X\(\/\/\)[^/].*/{
16634 s//\1/
16635 q
16636 }
16637 /^X\(\/\/\)$/{
16638 s//\1/
16639 q
16640 }
16641 /^X\(\/\).*/{
16642 s//\1/
16643 q
16644 }
16645 s/.*/./; q'`
16646 test -d "$as_dir" && break
ad6254c5 16647 done
7a197a62 16648 test -z "$as_dirs" || eval "mkdir $as_dirs"
ec6a6fbe
AK
16649 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16650$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
ad6254c5 16651 { (exit 1); exit 1; }; }; }
ad6254c5
AK
16652 ac_builddir=.
16653
7a197a62
AK
16654case "$ac_dir" in
16655.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16656*)
ec6a6fbe 16657 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7a197a62 16658 # A ".." for each directory in $ac_dir_suffix.
ec6a6fbe 16659 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7a197a62
AK
16660 case $ac_top_builddir_sub in
16661 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16662 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16663 esac ;;
16664esac
16665ac_abs_top_builddir=$ac_pwd
16666ac_abs_builddir=$ac_pwd$ac_dir_suffix
16667# for backward compatibility:
16668ac_top_builddir=$ac_top_build_prefix
ad6254c5
AK
16669
16670case $srcdir in
7a197a62 16671 .) # We are building in place.
ad6254c5 16672 ac_srcdir=.
7a197a62
AK
16673 ac_top_srcdir=$ac_top_builddir_sub
16674 ac_abs_top_srcdir=$ac_pwd ;;
16675 [\\/]* | ?:[\\/]* ) # Absolute name.
ad6254c5 16676 ac_srcdir=$srcdir$ac_dir_suffix;
7a197a62
AK
16677 ac_top_srcdir=$srcdir
16678 ac_abs_top_srcdir=$srcdir ;;
16679 *) # Relative name.
16680 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16681 ac_top_srcdir=$ac_top_build_prefix$srcdir
16682 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
ad6254c5 16683esac
7a197a62 16684ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8a2fc586 16685
ad6254c5 16686
7a197a62
AK
16687 case $ac_mode in
16688 :F)
16689 #
16690 # CONFIG_FILE
16691 #
ad6254c5
AK
16692
16693 case $INSTALL in
16694 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7a197a62 16695 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
795ca3e5 16696 esac
fddafd51
ZK
16697 ac_MKDIR_P=$MKDIR_P
16698 case $MKDIR_P in
16699 [\\/$]* | ?:[\\/]* ) ;;
16700 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16701 esac
7a197a62 16702_ACEOF
795ca3e5 16703
ec6a6fbe 16704cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
16705# If the template does not know about datarootdir, expand it.
16706# FIXME: This hack should be removed a few years after 2.60.
16707ac_datarootdir_hack=; ac_datarootdir_seen=
16708
ec6a6fbe
AK
16709ac_sed_dataroot='
16710/datarootdir/ {
7a197a62
AK
16711 p
16712 q
16713}
16714/@datadir@/p
16715/@docdir@/p
16716/@infodir@/p
16717/@localedir@/p
16718/@mandir@/p
ec6a6fbe
AK
16719'
16720case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7a197a62
AK
16721*datarootdir*) ac_datarootdir_seen=yes;;
16722*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
ec6a6fbe
AK
16723 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16724$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
ad6254c5 16725_ACEOF
ec6a6fbe 16726cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7a197a62
AK
16727 ac_datarootdir_hack='
16728 s&@datadir@&$datadir&g
16729 s&@docdir@&$docdir&g
16730 s&@infodir@&$infodir&g
16731 s&@localedir@&$localedir&g
16732 s&@mandir@&$mandir&g
16733 s&\\\${datarootdir}&$datarootdir&g' ;;
16734esac
16735_ACEOF
16736
16737# Neutralize VPATH when `$srcdir' = `.'.
16738# Shell code in configure.ac might set extrasub.
16739# FIXME: do we really want to maintain this feature?
ec6a6fbe
AK
16740cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16741ac_sed_extra="$ac_vpsub
ad6254c5
AK
16742$extrasub
16743_ACEOF
ec6a6fbe 16744cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ad6254c5
AK
16745:t
16746/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
ec6a6fbe 16747s|@configure_input@|$ac_sed_conf_input|;t t
7a197a62 16748s&@top_builddir@&$ac_top_builddir_sub&;t t
ec6a6fbe 16749s&@top_build_prefix@&$ac_top_build_prefix&;t t
7a197a62
AK
16750s&@srcdir@&$ac_srcdir&;t t
16751s&@abs_srcdir@&$ac_abs_srcdir&;t t
16752s&@top_srcdir@&$ac_top_srcdir&;t t
16753s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16754s&@builddir@&$ac_builddir&;t t
16755s&@abs_builddir@&$ac_abs_builddir&;t t
16756s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16757s&@INSTALL@&$ac_INSTALL&;t t
fddafd51 16758s&@MKDIR_P@&$ac_MKDIR_P&;t t
7a197a62 16759$ac_datarootdir_hack
ec6a6fbe
AK
16760"
16761eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16762 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16763$as_echo "$as_me: error: could not create $ac_file" >&2;}
16764 { (exit 1); exit 1; }; }
7a197a62
AK
16765
16766test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16767 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16768 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
ec6a6fbe 16769 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7a197a62 16770which seems to be undefined. Please make sure it is defined." >&5
ec6a6fbe 16771$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7a197a62
AK
16772which seems to be undefined. Please make sure it is defined." >&2;}
16773
16774 rm -f "$tmp/stdin"
72b2cb61 16775 case $ac_file in
ec6a6fbe
AK
16776 -) cat "$tmp/out" && rm -f "$tmp/out";;
16777 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16778 esac \
16779 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16780$as_echo "$as_me: error: could not create $ac_file" >&2;}
16781 { (exit 1); exit 1; }; }
7a197a62
AK
16782 ;;
16783 :H)
16784 #
16785 # CONFIG_HEADER
16786 #
72b2cb61 16787 if test x"$ac_file" != x-; then
ec6a6fbe
AK
16788 {
16789 $as_echo "/* $configure_input */" \
16790 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16791 } >"$tmp/config.h" \
16792 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16793$as_echo "$as_me: error: could not create $ac_file" >&2;}
16794 { (exit 1); exit 1; }; }
16795 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16796 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16797$as_echo "$as_me: $ac_file is unchanged" >&6;}
72b2cb61 16798 else
ec6a6fbe
AK
16799 rm -f "$ac_file"
16800 mv "$tmp/config.h" "$ac_file" \
16801 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16802$as_echo "$as_me: error: could not create $ac_file" >&2;}
16803 { (exit 1); exit 1; }; }
72b2cb61
AK
16804 fi
16805 else
ec6a6fbe
AK
16806 $as_echo "/* $configure_input */" \
16807 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16808 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
16809$as_echo "$as_me: error: could not create -" >&2;}
16810 { (exit 1); exit 1; }; }
72b2cb61 16811 fi
7a197a62
AK
16812 ;;
16813
16814
16815 esac
16816
16817done # for ac_tag
795ca3e5 16818
795ca3e5 16819
ad6254c5
AK
16820{ (exit 0); exit 0; }
16821_ACEOF
795ca3e5 16822chmod +x $CONFIG_STATUS
ad6254c5
AK
16823ac_clean_files=$ac_clean_files_save
16824
ec6a6fbe
AK
16825test $ac_write_fail = 0 ||
16826 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
16827$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
16828 { (exit 1); exit 1; }; }
16829
ad6254c5
AK
16830
16831# configure is writing to config.log, and then calls config.status.
16832# config.status does its own redirection, appending to config.log.
16833# Unfortunately, on DOS this fails, as config.log is still kept open
16834# by configure, so config.status won't be able to write to it; its
16835# output is simply discarded. So we exec the FD to /dev/null,
16836# effectively closing config.log, so it can be properly (re)opened and
16837# appended to by config.status. When coming back to configure, we
16838# need to make the FD available again.
16839if test "$no_create" != yes; then
16840 ac_cs_success=:
16841 ac_config_status_args=
16842 test "$silent" = yes &&
16843 ac_config_status_args="$ac_config_status_args --quiet"
16844 exec 5>/dev/null
16845 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16846 exec 5>>config.log
16847 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16848 # would make configure fail if this is the last instruction.
16849 $ac_cs_success || { (exit 1); exit 1; }
16850fi
ec6a6fbe
AK
16851if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16852 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16853$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16854fi
795ca3e5 16855
2dc95e1c
AK
16856
16857if test x$ODIRECT != xyes; then
ec6a6fbe
AK
16858 { $as_echo "$as_me:$LINENO: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5
16859$as_echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;}
2dc95e1c 16860fi
This page took 2.188028 seconds and 5 git commands to generate.