]> sourceware.org Git - lvm2.git/blame - configure
Install lvmconf script by default.
[lvm2.git] / configure
CommitLineData
795ca3e5 1#! /bin/sh
795ca3e5 2# Guess values for system-dependent variables and create Makefiles.
ec6a6fbe 3# Generated by GNU Autoconf 2.63.
795ca3e5 4#
7a197a62 5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
ec6a6fbe 6# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
795ca3e5
AK
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
ad6254c5
AK
9## --------------------- ##
10## M4sh Initialization. ##
11## --------------------- ##
12
25fbec5b
AK
13# Be more Bourne compatible
14DUALCASE=1; export DUALCASE # for MKS sh
ad6254c5
AK
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
ec6a6fbe 18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
ad6254c5
AK
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
7a197a62
AK
21 setopt NO_GLOB_SUBST
22else
25fbec5b
AK
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25esac
26
7a197a62 27fi
25fbec5b
AK
28
29
7a197a62
AK
30
31
32# PATH needs CR
33# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
39
ec6a6fbe
AK
40as_nl='
41'
42export as_nl
43# Printing a long string crashes Solaris 7 /usr/bin/printf.
44as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
68f2de6d 54 else
ec6a6fbe
AK
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68f2de6d 67 fi
ec6a6fbe
AK
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
ad6254c5
AK
79fi
80
81# Support unset when possible.
8a2fc586 82if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
ad6254c5
AK
83 as_unset=unset
84else
85 as_unset=false
86fi
87
88
7a197a62
AK
89# IFS
90# We need space, tab and new line, in precisely that order. Quoting is
91# there to prevent editors from complaining about space-tab.
92# (If _AS_PATH_WALK were called with IFS unset, it would disable word
93# splitting by setting IFS to empty value.)
7a197a62
AK
94IFS=" "" $as_nl"
95
96# Find who we are. Look in the path if we contain no directory separator.
97case $0 in
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100for as_dir in $PATH
101do
102 IFS=$as_save_IFS
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105done
106IFS=$as_save_IFS
107
108 ;;
109esac
110# We did not find ourselves, most probably we were run as `sh COMMAND'
111# in which case we are not to be found in the path.
112if test "x$as_myself" = x; then
113 as_myself=$0
114fi
115if test ! -f "$as_myself"; then
ec6a6fbe 116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7a197a62
AK
117 { (exit 1); exit 1; }
118fi
119
ad6254c5 120# Work around bugs in pre-3.0 UWIN ksh.
7a197a62
AK
121for as_var in ENV MAIL MAILPATH
122do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123done
ad6254c5
AK
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
ec6a6fbe
AK
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
ad6254c5
AK
133
134# Required to use basename.
7a197a62
AK
135if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
137 as_expr=expr
138else
139 as_expr=false
140fi
141
7a197a62 142if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
ad6254c5
AK
143 as_basename=basename
144else
145 as_basename=false
146fi
147
148
149# Name of the executable.
7a197a62 150as_me=`$as_basename -- "$0" ||
ad6254c5
AK
151$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
7a197a62 153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 154$as_echo X/"$0" |
7a197a62
AK
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 s//\1/
157 q
158 }
159 /^X\/\(\/\/\)$/{
160 s//\1/
161 q
162 }
163 /^X\/\(\/\).*/{
164 s//\1/
165 q
166 }
167 s/.*/./; q'`
ad6254c5 168
7a197a62
AK
169# CDPATH.
170$as_unset CDPATH
ad6254c5 171
ad6254c5 172
7a197a62
AK
173if test "x$CONFIG_SHELL" = x; then
174 if (eval ":") 2>/dev/null; then
175 as_have_required=yes
176else
177 as_have_required=no
ad6254c5
AK
178fi
179
ec6a6fbe 180 if test $as_have_required = yes && (eval ":
7a197a62
AK
181(as_func_return () {
182 (exit \$1)
183}
184as_func_success () {
185 as_func_return 0
186}
187as_func_failure () {
188 as_func_return 1
189}
190as_func_ret_success () {
191 return 0
192}
193as_func_ret_failure () {
194 return 1
195}
ad6254c5 196
7a197a62
AK
197exitcode=0
198if as_func_success; then
199 :
200else
201 exitcode=1
202 echo as_func_success failed.
203fi
ad6254c5 204
7a197a62
AK
205if as_func_failure; then
206 exitcode=1
207 echo as_func_failure succeeded.
208fi
209
210if as_func_ret_success; then
211 :
212else
213 exitcode=1
214 echo as_func_ret_success failed.
215fi
216
217if as_func_ret_failure; then
218 exitcode=1
219 echo as_func_ret_failure succeeded.
220fi
221
222if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223 :
224else
225 exitcode=1
226 echo positional parameters were not saved.
227fi
228
229test \$exitcode = 0) || { (exit 1); exit 1; }
230
231(
232 as_lineno_1=\$LINENO
233 as_lineno_2=\$LINENO
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236") 2> /dev/null; then
237 :
238else
239 as_candidate_shells=
ad6254c5 240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25fbec5b 241for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
ad6254c5
AK
242do
243 IFS=$as_save_IFS
244 test -z "$as_dir" && as_dir=.
7a197a62 245 case $as_dir in
ad6254c5 246 /*)
7a197a62
AK
247 for as_base in sh bash ksh sh5; do
248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249 done;;
250 esac
251done
252IFS=$as_save_IFS
253
254
255 for as_shell in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev/null <<\_ASEOF
259if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 emulate sh
261 NULLCMD=:
ec6a6fbe 262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7a197a62
AK
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
265 setopt NO_GLOB_SUBST
266else
25fbec5b
AK
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
269esac
270
7a197a62 271fi
25fbec5b 272
7a197a62
AK
273
274:
275_ASEOF
276}; then
277 CONFIG_SHELL=$as_shell
278 as_have_required=yes
279 if { "$as_shell" 2> /dev/null <<\_ASEOF
280if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281 emulate sh
282 NULLCMD=:
ec6a6fbe 283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7a197a62
AK
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
286 setopt NO_GLOB_SUBST
287else
25fbec5b
AK
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
290esac
291
7a197a62 292fi
25fbec5b 293
7a197a62
AK
294
295:
296(as_func_return () {
297 (exit $1)
298}
299as_func_success () {
300 as_func_return 0
301}
302as_func_failure () {
303 as_func_return 1
304}
305as_func_ret_success () {
306 return 0
307}
308as_func_ret_failure () {
309 return 1
310}
311
312exitcode=0
313if as_func_success; then
314 :
315else
316 exitcode=1
317 echo as_func_success failed.
318fi
319
320if as_func_failure; then
321 exitcode=1
322 echo as_func_failure succeeded.
323fi
324
325if as_func_ret_success; then
326 :
327else
328 exitcode=1
329 echo as_func_ret_success failed.
330fi
331
332if as_func_ret_failure; then
333 exitcode=1
334 echo as_func_ret_failure succeeded.
335fi
336
337if ( set x; as_func_ret_success y && test x = "$1" ); then
338 :
339else
340 exitcode=1
341 echo positional parameters were not saved.
342fi
343
344test $exitcode = 0) || { (exit 1); exit 1; }
345
346(
ad6254c5
AK
347 as_lineno_1=$LINENO
348 as_lineno_2=$LINENO
ad6254c5 349 test "x$as_lineno_1" != "x$as_lineno_2" &&
7a197a62
AK
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
351
352_ASEOF
353}; then
354 break
355fi
356
357fi
358
359 done
360
361 if test "x$CONFIG_SHELL" != x; then
362 for as_var in BASH_ENV ENV
ec6a6fbe
AK
363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364 done
365 export CONFIG_SHELL
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
7a197a62
AK
367fi
368
369
370 if test $as_have_required = no; then
371 echo This script requires a shell more modern than all the
372 echo shells that I found on your system. Please install a
373 echo modern shell, or manually run the script under such a
374 echo shell if you do have one.
375 { (exit 1); exit 1; }
376fi
377
378
379fi
380
381fi
382
383
384
385(eval "as_func_return () {
386 (exit \$1)
387}
388as_func_success () {
389 as_func_return 0
390}
391as_func_failure () {
392 as_func_return 1
393}
394as_func_ret_success () {
395 return 0
396}
397as_func_ret_failure () {
398 return 1
399}
400
401exitcode=0
402if as_func_success; then
403 :
404else
405 exitcode=1
406 echo as_func_success failed.
407fi
408
409if as_func_failure; then
410 exitcode=1
411 echo as_func_failure succeeded.
412fi
413
414if as_func_ret_success; then
415 :
416else
417 exitcode=1
418 echo as_func_ret_success failed.
419fi
420
421if as_func_ret_failure; then
422 exitcode=1
423 echo as_func_ret_failure succeeded.
424fi
425
426if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
427 :
428else
429 exitcode=1
430 echo positional parameters were not saved.
431fi
432
433test \$exitcode = 0") || {
434 echo No shell found that supports shell functions.
ec6a6fbe
AK
435 echo Please tell bug-autoconf@gnu.org about your system,
436 echo including any error possibly output before this message.
437 echo This can help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
7a197a62
AK
439}
440
441
442
443 as_lineno_1=$LINENO
444 as_lineno_2=$LINENO
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
ad6254c5
AK
447
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
7a197a62
AK
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
454 # case at line end.
ad6254c5 455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7a197a62
AK
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
458 sed -n '
459 p
460 /[$]LINENO/=
461 ' <$as_myself |
ad6254c5 462 sed '
7a197a62
AK
463 s/[$]LINENO.*/&-/
464 t lineno
465 b
466 :lineno
ad6254c5 467 N
7a197a62
AK
468 :loop
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
ad6254c5 470 t loop
7a197a62 471 s/-\n.*//
ad6254c5 472 ' >$as_me.lineno &&
7a197a62 473 chmod +x "$as_me.lineno" ||
ec6a6fbe 474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
ad6254c5
AK
475 { (exit 1); exit 1; }; }
476
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
7a197a62
AK
479 # original and so on. Autoconf is especially sensitive to this).
480 . "./$as_me.lineno"
ad6254c5
AK
481 # Exit status is that of the last command.
482 exit
483}
795ca3e5 484
ad6254c5 485
7a197a62
AK
486if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487 as_dirname=dirname
488else
489 as_dirname=false
490fi
491
492ECHO_C= ECHO_N= ECHO_T=
493case `echo -n x` in
494-n*)
495 case `echo 'x\c'` in
496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
497 *) ECHO_C='\c';;
498 esac;;
499*)
500 ECHO_N='-n';;
ad6254c5 501esac
7a197a62
AK
502if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
504 as_expr=expr
505else
506 as_expr=false
507fi
508
509rm -f conf$$ conf$$.exe conf$$.file
7a197a62
AK
510if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
512else
513 rm -f conf$$.dir
ec6a6fbe
AK
514 mkdir conf$$.dir 2>/dev/null
515fi
516if (echo >conf$$.file) 2>/dev/null; then
517 if ln -s conf$$.file conf$$ 2>/dev/null; then
518 as_ln_s='ln -s'
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524 as_ln_s='cp -p'
525 elif ln conf$$.file conf$$ 2>/dev/null; then
526 as_ln_s=ln
527 else
ad6254c5 528 as_ln_s='cp -p'
ec6a6fbe 529 fi
ad6254c5
AK
530else
531 as_ln_s='cp -p'
532fi
7a197a62
AK
533rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534rmdir conf$$.dir 2>/dev/null
ad6254c5
AK
535
536if mkdir -p . 2>/dev/null; then
537 as_mkdir_p=:
538else
8a2fc586 539 test -d ./-p && rmdir ./-p
ad6254c5
AK
540 as_mkdir_p=false
541fi
542
25fbec5b
AK
543if test -x / >/dev/null 2>&1; then
544 as_test_x='test -x'
7a197a62 545else
25fbec5b
AK
546 if ls -dL / >/dev/null 2>&1; then
547 as_ls_L_option=L
548 else
549 as_ls_L_option=
550 fi
551 as_test_x='
552 eval sh -c '\''
553 if test -d "$1"; then
ec6a6fbe 554 test -d "$1/.";
25fbec5b
AK
555 else
556 case $1 in
ec6a6fbe 557 -*)set "./$1";;
25fbec5b
AK
558 esac;
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
561 '\'' sh
562 '
7a197a62 563fi
25fbec5b 564as_executable_p=$as_test_x
ad6254c5
AK
565
566# Sed expression to map a string onto a valid CPP name.
8a2fc586 567as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
568
569# Sed expression to map a string onto a valid variable name.
8a2fc586 570as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
571
572
ad6254c5 573
7a197a62 574exec 7<&0 </dev/null 6>&1
ad6254c5
AK
575
576# Name of the host.
577# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578# so uname gets run too.
579ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
580
ad6254c5
AK
581#
582# Initializations.
583#
795ca3e5 584ac_default_prefix=/usr/local
7a197a62 585ac_clean_files=
ad6254c5 586ac_config_libobj_dir=.
7a197a62 587LIBOBJS=
ad6254c5
AK
588cross_compiling=no
589subdirs=
590MFLAGS=
591MAKEFLAGS=
592SHELL=${CONFIG_SHELL-/bin/sh}
593
ad6254c5
AK
594# Identity of this package.
595PACKAGE_NAME=
596PACKAGE_TARNAME=
597PACKAGE_VERSION=
598PACKAGE_STRING=
599PACKAGE_BUGREPORT=
600
601ac_unique_file="lib/device/dev-cache.h"
602# Factoring default headers for most tests.
603ac_includes_default="\
604#include <stdio.h>
25fbec5b 605#ifdef HAVE_SYS_TYPES_H
ad6254c5
AK
606# include <sys/types.h>
607#endif
25fbec5b 608#ifdef HAVE_SYS_STAT_H
ad6254c5
AK
609# include <sys/stat.h>
610#endif
25fbec5b 611#ifdef STDC_HEADERS
ad6254c5
AK
612# include <stdlib.h>
613# include <stddef.h>
614#else
25fbec5b 615# ifdef HAVE_STDLIB_H
ad6254c5
AK
616# include <stdlib.h>
617# endif
618#endif
25fbec5b
AK
619#ifdef HAVE_STRING_H
620# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
ad6254c5
AK
621# include <memory.h>
622# endif
623# include <string.h>
624#endif
25fbec5b 625#ifdef HAVE_STRINGS_H
ad6254c5
AK
626# include <strings.h>
627#endif
25fbec5b 628#ifdef HAVE_INTTYPES_H
ad6254c5 629# include <inttypes.h>
ad6254c5 630#endif
25fbec5b 631#ifdef HAVE_STDINT_H
7a197a62
AK
632# include <stdint.h>
633#endif
25fbec5b 634#ifdef HAVE_UNISTD_H
ad6254c5
AK
635# include <unistd.h>
636#endif"
637
795ca3e5 638ac_default_prefix=/usr
ec6a6fbe 639ac_subst_vars='LTLIBOBJS
68f2de6d 640usrsbindir
ec6a6fbe 641usrlibdir
a5f46f6a
AK
642udevdir
643udev_prefix
ec6a6fbe
AK
644tmpdir
645kernelvsn
646missingkernel
647kerneldir
648interface
23b059e7 649WRITE_INSTALL
0878503f 650UDEV_SYNC
a5f46f6a 651UDEV_RULES
f7f0854e 652UDEV_PC
db724a44 653UDEV_LIBS
ec6a6fbe
AK
654STATIC_LINK
655STATICDIR
656SNAPSHOTS
f7f0854e 657SELINUX_PC
e1b8a236 658SELINUX_LIBS
539f4a77 659READLINE_LIBS
f30875db 660PTHREAD_LIBS
ec6a6fbe
AK
661POOL
662PKGCONFIG
ec6a6fbe
AK
663MIRRORS
664LVM_RELEASE_DATE
665LVM_RELEASE
666LVM_PATCHLEVEL
667LVM_MINOR
668LVM_MAJOR
bf456146 669LVM_LIBAPI
ec6a6fbe 670LVM_VERSION
ec6a6fbe
AK
671LVM1_FALLBACK
672LVM1
673LOCALEDIR
674LIB_SUFFIX
675LDDEPS
676JOBS
677INTL_PACKAGE
678INTL
ec6a6fbe
AK
679HAVE_REALTIME
680HAVE_LIBDL
ec6a6fbe
AK
681FSADM
682DM_LIB_PATCHLEVEL
683DM_LIB_VERSION
684DM_IOCTLS
685DM_DEVICE_UID
686DM_DEVICE_MODE
687DM_DEVICE_GID
688DM_COMPAT
689DMEVENTD
19a2c6e0 690DL_LIBS
ec6a6fbe
AK
691DEVMAPPER
692DEBUG
693COPTIMISE_FLAG
e2997b73 694CONFDIR
ec6a6fbe
AK
695CMDLIB
696CLVMD
697CLUSTER
698CLDWHOLEARCHIVE
699CLDNOWHOLEARCHIVE
700CLDFLAGS
701BUILD_DMEVENTD
66fd4529 702BUILD_CMIRRORD
572fefeb 703APPLIB
ec6a6fbe
AK
704MODPROBE_CMD
705MSGFMT
706LVM2CMD_LIB
572fefeb 707LVM2APP_LIB
fd4728e1 708GENPNG
ec6a6fbe
AK
709GENHTML
710LCOV
90c80887
AK
711SACKPT_LIBS
712SACKPT_CFLAGS
a946372e
AK
713DLM_LIBS
714DLM_CFLAGS
e2997b73
AK
715CPG_LIBS
716CPG_CFLAGS
717CONFDB_LIBS
718CONFDB_CFLAGS
a946372e
AK
719SALCK_LIBS
720SALCK_CFLAGS
e2997b73
AK
721QUORUM_LIBS
722QUORUM_CFLAGS
a946372e
AK
723COROSYNC_LIBS
724COROSYNC_CFLAGS
725CMAN_LIBS
726CMAN_CFLAGS
727GULM_LIBS
728GULM_CFLAGS
729CCS_LIBS
730CCS_CFLAGS
731PKGCONFIGINIT_LIBS
732PKGCONFIGINIT_CFLAGS
e2997b73 733PKG_CONFIG
ec6a6fbe
AK
734POW_LIB
735LIBOBJS
736ALLOCA
737CSCOPE_CMD
738CFLOW_CMD
739RANLIB
740MKDIR_P
741SET_MAKE
742LN_S
743INSTALL_DATA
744INSTALL_SCRIPT
745INSTALL_PROGRAM
746EGREP
747GREP
748CPP
749OBJEXT
750EXEEXT
751ac_ct_CC
752CPPFLAGS
753LDFLAGS
754CFLAGS
755CC
756AWK
757SED
758target_os
759target_vendor
760target_cpu
761target
762host_os
763host_vendor
764host_cpu
765host
766build_os
767build_vendor
768build_cpu
769build
770target_alias
771host_alias
772build_alias
773LIBS
774ECHO_T
775ECHO_N
776ECHO_C
777DEFS
778mandir
779localedir
780libdir
781psdir
782pdfdir
783dvidir
784htmldir
785infodir
786docdir
787oldincludedir
788includedir
789localstatedir
790sharedstatedir
791sysconfdir
792datadir
793datarootdir
794libexecdir
795sbindir
796bindir
797program_transform_name
798prefix
799exec_prefix
800PACKAGE_BUGREPORT
801PACKAGE_STRING
802PACKAGE_VERSION
803PACKAGE_TARNAME
804PACKAGE_NAME
805PATH_SEPARATOR
806SHELL'
ad6254c5 807ac_subst_files=''
ec6a6fbe
AK
808ac_user_opts='
809enable_option_checking
810enable_static_link
811with_user
812with_group
813with_device_uid
814with_device_gid
815with_device_mode
816enable_lvm1_fallback
817with_lvm1
818with_pool
819with_cluster
820with_snapshots
821with_mirrors
822enable_readline
823enable_realtime
824with_clvmd
66fd4529
AK
825enable_cmirrord
826with_cmirrord_pidfile
ec6a6fbe
AK
827enable_debug
828with_optimisation
829enable_profiling
830enable_devmapper
a5f46f6a
AK
831enable_udev_sync
832enable_udev_rules
ec6a6fbe 833enable_compat
95eaa683 834enable_units_compat
ec6a6fbe
AK
835enable_ioctl
836enable_o_direct
572fefeb 837enable_applib
ec6a6fbe
AK
838enable_cmdlib
839enable_pkgconfig
23b059e7 840enable_write_install
ec6a6fbe
AK
841enable_fsadm
842enable_dmeventd
843enable_selinux
844enable_nls
845with_localedir
846with_confdir
847with_staticdir
848with_usrlibdir
849with_usrsbindir
a5f46f6a 850with_udev_prefix
78ce7acc 851with_udevdir
ec6a6fbe
AK
852with_dmeventd_pidfile
853with_dmeventd_path
854with_interface
855'
7a197a62
AK
856 ac_precious_vars='build_alias
857host_alias
858target_alias
859CC
860CFLAGS
861LDFLAGS
25fbec5b 862LIBS
7a197a62 863CPPFLAGS
e2997b73
AK
864CPP
865PKG_CONFIG
a946372e
AK
866PKGCONFIGINIT_CFLAGS
867PKGCONFIGINIT_LIBS
868CCS_CFLAGS
869CCS_LIBS
870GULM_CFLAGS
871GULM_LIBS
872CMAN_CFLAGS
873CMAN_LIBS
874COROSYNC_CFLAGS
875COROSYNC_LIBS
e2997b73
AK
876QUORUM_CFLAGS
877QUORUM_LIBS
a946372e
AK
878SALCK_CFLAGS
879SALCK_LIBS
e2997b73
AK
880CONFDB_CFLAGS
881CONFDB_LIBS
882CPG_CFLAGS
a946372e
AK
883CPG_LIBS
884DLM_CFLAGS
90c80887
AK
885DLM_LIBS
886SACKPT_CFLAGS
887SACKPT_LIBS'
7a197a62 888
795ca3e5
AK
889
890# Initialize some variables set by options.
ad6254c5
AK
891ac_init_help=
892ac_init_version=false
ec6a6fbe
AK
893ac_unrecognized_opts=
894ac_unrecognized_sep=
795ca3e5
AK
895# The variables have the same names as the options, with
896# dashes changed to underlines.
ad6254c5 897cache_file=/dev/null
795ca3e5 898exec_prefix=NONE
795ca3e5 899no_create=
795ca3e5
AK
900no_recursion=
901prefix=NONE
902program_prefix=NONE
903program_suffix=NONE
904program_transform_name=s,x,x,
905silent=
906site=
907srcdir=
795ca3e5
AK
908verbose=
909x_includes=NONE
910x_libraries=NONE
ad6254c5
AK
911
912# Installation directory options.
913# These are left unexpanded so users can "make install exec_prefix=/foo"
914# and all the variables that are supposed to be based on exec_prefix
915# by default will actually change.
916# Use braces instead of parens because sh, perl, etc. also accept them.
7a197a62 917# (The list follows the same order as the GNU Coding Standards.)
795ca3e5
AK
918bindir='${exec_prefix}/bin'
919sbindir='${exec_prefix}/sbin'
920libexecdir='${exec_prefix}/libexec'
7a197a62
AK
921datarootdir='${prefix}/share'
922datadir='${datarootdir}'
795ca3e5
AK
923sysconfdir='${prefix}/etc'
924sharedstatedir='${prefix}/com'
925localstatedir='${prefix}/var'
795ca3e5
AK
926includedir='${prefix}/include'
927oldincludedir='/usr/include'
7a197a62
AK
928docdir='${datarootdir}/doc/${PACKAGE}'
929infodir='${datarootdir}/info'
930htmldir='${docdir}'
931dvidir='${docdir}'
932pdfdir='${docdir}'
933psdir='${docdir}'
934libdir='${exec_prefix}/lib'
935localedir='${datarootdir}/locale'
936mandir='${datarootdir}/man'
795ca3e5 937
795ca3e5 938ac_prev=
7a197a62 939ac_dashdash=
795ca3e5
AK
940for ac_option
941do
795ca3e5
AK
942 # If the previous option needs an argument, assign it.
943 if test -n "$ac_prev"; then
7a197a62 944 eval $ac_prev=\$ac_option
795ca3e5
AK
945 ac_prev=
946 continue
947 fi
948
7a197a62
AK
949 case $ac_option in
950 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
951 *) ac_optarg=yes ;;
952 esac
795ca3e5
AK
953
954 # Accept the important Cygnus configure options, so we can diagnose typos.
955
7a197a62
AK
956 case $ac_dashdash$ac_option in
957 --)
958 ac_dashdash=yes ;;
795ca3e5
AK
959
960 -bindir | --bindir | --bindi | --bind | --bin | --bi)
961 ac_prev=bindir ;;
962 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
ad6254c5 963 bindir=$ac_optarg ;;
795ca3e5
AK
964
965 -build | --build | --buil | --bui | --bu)
ad6254c5 966 ac_prev=build_alias ;;
795ca3e5 967 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
ad6254c5 968 build_alias=$ac_optarg ;;
795ca3e5
AK
969
970 -cache-file | --cache-file | --cache-fil | --cache-fi \
971 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
972 ac_prev=cache_file ;;
973 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
974 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
ad6254c5
AK
975 cache_file=$ac_optarg ;;
976
977 --config-cache | -C)
978 cache_file=config.cache ;;
795ca3e5 979
7a197a62 980 -datadir | --datadir | --datadi | --datad)
795ca3e5 981 ac_prev=datadir ;;
7a197a62 982 -datadir=* | --datadir=* | --datadi=* | --datad=*)
ad6254c5 983 datadir=$ac_optarg ;;
795ca3e5 984
7a197a62
AK
985 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
986 | --dataroo | --dataro | --datar)
987 ac_prev=datarootdir ;;
988 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
989 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
990 datarootdir=$ac_optarg ;;
991
795ca3e5 992 -disable-* | --disable-*)
ec6a6fbe 993 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
795ca3e5 994 # Reject names that are not valid shell variable names.
ec6a6fbe
AK
995 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
996 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
ad6254c5 997 { (exit 1); exit 1; }; }
ec6a6fbe
AK
998 ac_useropt_orig=$ac_useropt
999 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1000 case $ac_user_opts in
1001 *"
1002"enable_$ac_useropt"
1003"*) ;;
1004 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1005 ac_unrecognized_sep=', ';;
1006 esac
1007 eval enable_$ac_useropt=no ;;
7a197a62
AK
1008
1009 -docdir | --docdir | --docdi | --doc | --do)
1010 ac_prev=docdir ;;
1011 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1012 docdir=$ac_optarg ;;
1013
1014 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1015 ac_prev=dvidir ;;
1016 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1017 dvidir=$ac_optarg ;;
795ca3e5
AK
1018
1019 -enable-* | --enable-*)
ec6a6fbe 1020 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
795ca3e5 1021 # Reject names that are not valid shell variable names.
ec6a6fbe
AK
1022 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1023 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
ad6254c5 1024 { (exit 1); exit 1; }; }
ec6a6fbe
AK
1025 ac_useropt_orig=$ac_useropt
1026 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1027 case $ac_user_opts in
1028 *"
1029"enable_$ac_useropt"
1030"*) ;;
1031 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1032 ac_unrecognized_sep=', ';;
1033 esac
1034 eval enable_$ac_useropt=\$ac_optarg ;;
795ca3e5
AK
1035
1036 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1037 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1038 | --exec | --exe | --ex)
1039 ac_prev=exec_prefix ;;
1040 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1041 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1042 | --exec=* | --exe=* | --ex=*)
ad6254c5 1043 exec_prefix=$ac_optarg ;;
795ca3e5
AK
1044
1045 -gas | --gas | --ga | --g)
1046 # Obsolete; use --with-gas.
1047 with_gas=yes ;;
1048
ad6254c5
AK
1049 -help | --help | --hel | --he | -h)
1050 ac_init_help=long ;;
1051 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1052 ac_init_help=recursive ;;
1053 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1054 ac_init_help=short ;;
795ca3e5
AK
1055
1056 -host | --host | --hos | --ho)
ad6254c5 1057 ac_prev=host_alias ;;
795ca3e5 1058 -host=* | --host=* | --hos=* | --ho=*)
ad6254c5 1059 host_alias=$ac_optarg ;;
795ca3e5 1060
7a197a62
AK
1061 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1062 ac_prev=htmldir ;;
1063 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1064 | --ht=*)
1065 htmldir=$ac_optarg ;;
1066
795ca3e5
AK
1067 -includedir | --includedir | --includedi | --included | --include \
1068 | --includ | --inclu | --incl | --inc)
1069 ac_prev=includedir ;;
1070 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1071 | --includ=* | --inclu=* | --incl=* | --inc=*)
ad6254c5 1072 includedir=$ac_optarg ;;
795ca3e5
AK
1073
1074 -infodir | --infodir | --infodi | --infod | --info | --inf)
1075 ac_prev=infodir ;;
1076 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
ad6254c5 1077 infodir=$ac_optarg ;;
795ca3e5
AK
1078
1079 -libdir | --libdir | --libdi | --libd)
1080 ac_prev=libdir ;;
1081 -libdir=* | --libdir=* | --libdi=* | --libd=*)
ad6254c5 1082 libdir=$ac_optarg ;;
795ca3e5
AK
1083
1084 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1085 | --libexe | --libex | --libe)
1086 ac_prev=libexecdir ;;
1087 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1088 | --libexe=* | --libex=* | --libe=*)
ad6254c5 1089 libexecdir=$ac_optarg ;;
795ca3e5 1090
7a197a62
AK
1091 -localedir | --localedir | --localedi | --localed | --locale)
1092 ac_prev=localedir ;;
1093 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1094 localedir=$ac_optarg ;;
1095
795ca3e5 1096 -localstatedir | --localstatedir | --localstatedi | --localstated \
7a197a62 1097 | --localstate | --localstat | --localsta | --localst | --locals)
795ca3e5
AK
1098 ac_prev=localstatedir ;;
1099 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
7a197a62 1100 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
ad6254c5 1101 localstatedir=$ac_optarg ;;
795ca3e5
AK
1102
1103 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1104 ac_prev=mandir ;;
1105 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
ad6254c5 1106 mandir=$ac_optarg ;;
795ca3e5
AK
1107
1108 -nfp | --nfp | --nf)
1109 # Obsolete; use --without-fp.
1110 with_fp=no ;;
1111
1112 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
ad6254c5 1113 | --no-cr | --no-c | -n)
795ca3e5
AK
1114 no_create=yes ;;
1115
1116 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1117 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1118 no_recursion=yes ;;
1119
1120 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1121 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1122 | --oldin | --oldi | --old | --ol | --o)
1123 ac_prev=oldincludedir ;;
1124 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1125 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1126 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
ad6254c5 1127 oldincludedir=$ac_optarg ;;
795ca3e5
AK
1128
1129 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1130 ac_prev=prefix ;;
1131 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
ad6254c5 1132 prefix=$ac_optarg ;;
795ca3e5
AK
1133
1134 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1135 | --program-pre | --program-pr | --program-p)
1136 ac_prev=program_prefix ;;
1137 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1138 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
ad6254c5 1139 program_prefix=$ac_optarg ;;
795ca3e5
AK
1140
1141 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1142 | --program-suf | --program-su | --program-s)
1143 ac_prev=program_suffix ;;
1144 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1145 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
ad6254c5 1146 program_suffix=$ac_optarg ;;
795ca3e5
AK
1147
1148 -program-transform-name | --program-transform-name \
1149 | --program-transform-nam | --program-transform-na \
1150 | --program-transform-n | --program-transform- \
1151 | --program-transform | --program-transfor \
1152 | --program-transfo | --program-transf \
1153 | --program-trans | --program-tran \
1154 | --progr-tra | --program-tr | --program-t)
1155 ac_prev=program_transform_name ;;
1156 -program-transform-name=* | --program-transform-name=* \
1157 | --program-transform-nam=* | --program-transform-na=* \
1158 | --program-transform-n=* | --program-transform-=* \
1159 | --program-transform=* | --program-transfor=* \
1160 | --program-transfo=* | --program-transf=* \
1161 | --program-trans=* | --program-tran=* \
1162 | --progr-tra=* | --program-tr=* | --program-t=*)
ad6254c5 1163 program_transform_name=$ac_optarg ;;
795ca3e5 1164
7a197a62
AK
1165 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1166 ac_prev=pdfdir ;;
1167 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1168 pdfdir=$ac_optarg ;;
1169
1170 -psdir | --psdir | --psdi | --psd | --ps)
1171 ac_prev=psdir ;;
1172 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1173 psdir=$ac_optarg ;;
1174
795ca3e5
AK
1175 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1176 | -silent | --silent | --silen | --sile | --sil)
1177 silent=yes ;;
1178
1179 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1180 ac_prev=sbindir ;;
1181 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1182 | --sbi=* | --sb=*)
ad6254c5 1183 sbindir=$ac_optarg ;;
795ca3e5
AK
1184
1185 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1186 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1187 | --sharedst | --shareds | --shared | --share | --shar \
1188 | --sha | --sh)
1189 ac_prev=sharedstatedir ;;
1190 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1191 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1192 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1193 | --sha=* | --sh=*)
ad6254c5 1194 sharedstatedir=$ac_optarg ;;
795ca3e5
AK
1195
1196 -site | --site | --sit)
1197 ac_prev=site ;;
1198 -site=* | --site=* | --sit=*)
ad6254c5 1199 site=$ac_optarg ;;
795ca3e5
AK
1200
1201 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1202 ac_prev=srcdir ;;
1203 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
ad6254c5 1204 srcdir=$ac_optarg ;;
795ca3e5
AK
1205
1206 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1207 | --syscon | --sysco | --sysc | --sys | --sy)
1208 ac_prev=sysconfdir ;;
1209 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1210 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
ad6254c5 1211 sysconfdir=$ac_optarg ;;
795ca3e5
AK
1212
1213 -target | --target | --targe | --targ | --tar | --ta | --t)
ad6254c5 1214 ac_prev=target_alias ;;
795ca3e5 1215 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
ad6254c5 1216 target_alias=$ac_optarg ;;
795ca3e5
AK
1217
1218 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1219 verbose=yes ;;
1220
ad6254c5
AK
1221 -version | --version | --versio | --versi | --vers | -V)
1222 ac_init_version=: ;;
795ca3e5
AK
1223
1224 -with-* | --with-*)
ec6a6fbe 1225 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
795ca3e5 1226 # Reject names that are not valid shell variable names.
ec6a6fbe
AK
1227 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1228 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
ad6254c5 1229 { (exit 1); exit 1; }; }
ec6a6fbe
AK
1230 ac_useropt_orig=$ac_useropt
1231 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1232 case $ac_user_opts in
1233 *"
1234"with_$ac_useropt"
1235"*) ;;
1236 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1237 ac_unrecognized_sep=', ';;
1238 esac
1239 eval with_$ac_useropt=\$ac_optarg ;;
795ca3e5
AK
1240
1241 -without-* | --without-*)
ec6a6fbe 1242 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
795ca3e5 1243 # Reject names that are not valid shell variable names.
ec6a6fbe
AK
1244 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1245 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
ad6254c5 1246 { (exit 1); exit 1; }; }
ec6a6fbe
AK
1247 ac_useropt_orig=$ac_useropt
1248 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1249 case $ac_user_opts in
1250 *"
1251"with_$ac_useropt"
1252"*) ;;
1253 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1254 ac_unrecognized_sep=', ';;
1255 esac
1256 eval with_$ac_useropt=no ;;
795ca3e5
AK
1257
1258 --x)
1259 # Obsolete; use --with-x.
1260 with_x=yes ;;
1261
1262 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1263 | --x-incl | --x-inc | --x-in | --x-i)
1264 ac_prev=x_includes ;;
1265 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1266 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
ad6254c5 1267 x_includes=$ac_optarg ;;
795ca3e5
AK
1268
1269 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1270 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1271 ac_prev=x_libraries ;;
1272 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1273 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
ad6254c5 1274 x_libraries=$ac_optarg ;;
795ca3e5 1275
ec6a6fbe 1276 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
ad6254c5
AK
1277Try \`$0 --help' for more information." >&2
1278 { (exit 1); exit 1; }; }
795ca3e5
AK
1279 ;;
1280
ad6254c5
AK
1281 *=*)
1282 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1283 # Reject names that are not valid shell variable names.
1284 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
ec6a6fbe 1285 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
ad6254c5 1286 { (exit 1); exit 1; }; }
7a197a62 1287 eval $ac_envvar=\$ac_optarg
ad6254c5
AK
1288 export $ac_envvar ;;
1289
795ca3e5 1290 *)
ad6254c5 1291 # FIXME: should be removed in autoconf 3.0.
ec6a6fbe 1292 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
ad6254c5 1293 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
ec6a6fbe 1294 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
ad6254c5 1295 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
795ca3e5
AK
1296 ;;
1297
1298 esac
1299done
1300
1301if test -n "$ac_prev"; then
ad6254c5 1302 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
ec6a6fbe 1303 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
ad6254c5 1304 { (exit 1); exit 1; }; }
795ca3e5 1305fi
795ca3e5 1306
ec6a6fbe
AK
1307if test -n "$ac_unrecognized_opts"; then
1308 case $enable_option_checking in
1309 no) ;;
1310 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1311 { (exit 1); exit 1; }; } ;;
1312 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1313 esac
1314fi
1315
1316# Check all directory arguments for consistency.
7a197a62
AK
1317for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1318 datadir sysconfdir sharedstatedir localstatedir includedir \
1319 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1320 libdir localedir mandir
795ca3e5 1321do
7a197a62 1322 eval ac_val=\$$ac_var
ec6a6fbe
AK
1323 # Remove trailing slashes.
1324 case $ac_val in
1325 */ )
1326 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1327 eval $ac_var=\$ac_val;;
1328 esac
1329 # Be sure to have absolute directory names.
ad6254c5 1330 case $ac_val in
7a197a62
AK
1331 [\\/$]* | ?:[\\/]* ) continue;;
1332 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
795ca3e5 1333 esac
ec6a6fbe 1334 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
7a197a62 1335 { (exit 1); exit 1; }; }
795ca3e5
AK
1336done
1337
ad6254c5
AK
1338# There might be people who depend on the old broken behavior: `$host'
1339# used to hold the argument of --host etc.
1340# FIXME: To remove some day.
1341build=$build_alias
1342host=$host_alias
1343target=$target_alias
1344
1345# FIXME: To remove some day.
1346if test "x$host_alias" != x; then
1347 if test "x$build_alias" = x; then
1348 cross_compiling=maybe
ec6a6fbe 1349 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
ad6254c5
AK
1350 If a cross compiler is detected then cross compile mode will be used." >&2
1351 elif test "x$build_alias" != "x$host_alias"; then
1352 cross_compiling=yes
1353 fi
1354fi
8106cdd5 1355
ad6254c5
AK
1356ac_tool_prefix=
1357test -n "$host_alias" && ac_tool_prefix=$host_alias-
1358
1359test "$silent" = yes && exec 6>/dev/null
795ca3e5 1360
795ca3e5 1361
7a197a62
AK
1362ac_pwd=`pwd` && test -n "$ac_pwd" &&
1363ac_ls_di=`ls -di .` &&
1364ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
ec6a6fbe 1365 { $as_echo "$as_me: error: working directory cannot be determined" >&2
7a197a62
AK
1366 { (exit 1); exit 1; }; }
1367test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
ec6a6fbe 1368 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
7a197a62
AK
1369 { (exit 1); exit 1; }; }
1370
1371
795ca3e5
AK
1372# Find the source files, if location was not specified.
1373if test -z "$srcdir"; then
1374 ac_srcdir_defaulted=yes
7a197a62 1375 # Try the directory containing this script, then the parent directory.
ec6a6fbe
AK
1376 ac_confdir=`$as_dirname -- "$as_myself" ||
1377$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1378 X"$as_myself" : 'X\(//\)[^/]' \| \
1379 X"$as_myself" : 'X\(//\)$' \| \
1380 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1381$as_echo X"$as_myself" |
7a197a62
AK
1382 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1383 s//\1/
1384 q
1385 }
1386 /^X\(\/\/\)[^/].*/{
1387 s//\1/
1388 q
1389 }
1390 /^X\(\/\/\)$/{
1391 s//\1/
1392 q
1393 }
1394 /^X\(\/\).*/{
1395 s//\1/
1396 q
1397 }
1398 s/.*/./; q'`
795ca3e5 1399 srcdir=$ac_confdir
7a197a62 1400 if test ! -r "$srcdir/$ac_unique_file"; then
795ca3e5
AK
1401 srcdir=..
1402 fi
1403else
1404 ac_srcdir_defaulted=no
1405fi
7a197a62
AK
1406if test ! -r "$srcdir/$ac_unique_file"; then
1407 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
ec6a6fbe 1408 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
ad6254c5 1409 { (exit 1); exit 1; }; }
795ca3e5 1410fi
7a197a62
AK
1411ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1412ac_abs_confdir=`(
ec6a6fbe 1413 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
ad6254c5 1414 { (exit 1); exit 1; }; }
7a197a62
AK
1415 pwd)`
1416# When building in place, set srcdir=.
1417if test "$ac_abs_confdir" = "$ac_pwd"; then
1418 srcdir=.
1419fi
1420# Remove unnecessary trailing slashes from srcdir.
1421# Double slashes in file names in object file debugging info
1422# mess up M-x gdb in Emacs.
1423case $srcdir in
1424*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1425esac
1426for ac_var in $ac_precious_vars; do
1427 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1428 eval ac_env_${ac_var}_value=\$${ac_var}
1429 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1430 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1431done
ad6254c5
AK
1432
1433#
1434# Report the --help message.
1435#
1436if test "$ac_init_help" = "long"; then
1437 # Omit some internal or obsolete options to make the list less imposing.
1438 # This message is too long to be a string in the A/UX 3.1 sh.
1439 cat <<_ACEOF
1440\`configure' configures this package to adapt to many kinds of systems.
1441
1442Usage: $0 [OPTION]... [VAR=VALUE]...
1443
1444To assign environment variables (e.g., CC, CFLAGS...), specify them as
1445VAR=VALUE. See below for descriptions of some of the useful variables.
1446
1447Defaults for the options are specified in brackets.
1448
1449Configuration:
1450 -h, --help display this help and exit
1451 --help=short display options specific to this package
1452 --help=recursive display the short help of all the included packages
1453 -V, --version display version information and exit
1454 -q, --quiet, --silent do not print \`checking...' messages
1455 --cache-file=FILE cache test results in FILE [disabled]
1456 -C, --config-cache alias for \`--cache-file=config.cache'
1457 -n, --no-create do not create output files
1458 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1459
ad6254c5
AK
1460Installation directories:
1461 --prefix=PREFIX install architecture-independent files in PREFIX
ec6a6fbe 1462 [$ac_default_prefix]
ad6254c5 1463 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
ec6a6fbe 1464 [PREFIX]
ad6254c5
AK
1465
1466By default, \`make install' will install all the files in
1467\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1468an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1469for instance \`--prefix=\$HOME'.
1470
1471For better control, use the options below.
1472
1473Fine tuning of the installation directories:
ec6a6fbe
AK
1474 --bindir=DIR user executables [EPREFIX/bin]
1475 --sbindir=DIR system admin executables [EPREFIX/sbin]
1476 --libexecdir=DIR program executables [EPREFIX/libexec]
1477 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1478 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1479 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1480 --libdir=DIR object code libraries [EPREFIX/lib]
1481 --includedir=DIR C header files [PREFIX/include]
1482 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1483 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1484 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1485 --infodir=DIR info documentation [DATAROOTDIR/info]
1486 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1487 --mandir=DIR man documentation [DATAROOTDIR/man]
1488 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1489 --htmldir=DIR html documentation [DOCDIR]
1490 --dvidir=DIR dvi documentation [DOCDIR]
1491 --pdfdir=DIR pdf documentation [DOCDIR]
1492 --psdir=DIR ps documentation [DOCDIR]
ad6254c5
AK
1493_ACEOF
1494
1495 cat <<\_ACEOF
1496
1497System types:
1498 --build=BUILD configure for building on BUILD [guessed]
1499 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1500 --target=TARGET configure for building compilers for TARGET [HOST]
1501_ACEOF
1502fi
1503
1504if test -n "$ac_init_help"; then
1505
1506 cat <<\_ACEOF
1507
1508Optional Features:
ec6a6fbe 1509 --disable-option-checking ignore unrecognized --enable/--with options
ad6254c5
AK
1510 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1511 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
9c961554
MB
1512 --enable-static_link Use this to link the tools to their libraries
1513 statically. Default is dynamic linking
ad6254c5
AK
1514 --enable-lvm1_fallback Use this to fall back and use LVM1 binaries if
1515 device-mapper is missing from the kernel
1b523347 1516 --disable-readline Disable readline support
89044bc0 1517 --enable-realtime Enable realtime clock support
66fd4529 1518 --enable-cmirrord Enable the cluster mirror log daemon
ad6254c5 1519 --enable-debug Enable debugging
5556819a 1520 --enable-profiling Gather gcov profiling data
93bd259b 1521 --disable-devmapper Disable LVM2 device-mapper interaction
a5f46f6a
AK
1522 --enable-udev_sync Enable synchronisation with udev processing
1523 --enable-udev_rules Install rule files needed for udev synchronisation
93bd259b 1524 --enable-compat Enable support for old device-mapper versions
95eaa683
AK
1525 --enable-units-compat Enable output compatibility with old versions that
1526 that don't use KiB-style unit suffixes
93bd259b 1527 --disable-driver Disable calls to device-mapper in the kernel
ad6254c5 1528 --disable-o_direct Disable O_DIRECT
572fefeb 1529 --enable-applib Build application library
ad6254c5 1530 --enable-cmdlib Build shared command library
93bd259b 1531 --enable-pkgconfig Install pkgconfig support
23b059e7 1532 --enable-write_install Install user writable files
c9274524 1533 --disable-fsadm Disable fsadm
15d91f5a 1534 --enable-dmeventd Enable the device-mapper event daemon
d0191583 1535 --disable-selinux Disable selinux support
ad6254c5
AK
1536 --enable-nls Enable Native Language Support
1537
1538Optional Packages:
1539 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1540 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
39dabc84
FDN
1541 --with-user=USER Set the owner of installed files [USER=]
1542 --with-group=GROUP Set the group owner of installed files [GROUP=]
24bbc4d7
AK
1543 --with-device-uid=UID Set the owner used for new device nodes [UID=0]
1544 --with-device-gid=UID Set the group used for new device nodes [GID=0]
93bd259b 1545 --with-device-mode=MODE Set the mode used for new device nodes [MODE=0600]
ad6254c5
AK
1546 --with-lvm1=TYPE LVM1 metadata support: internal/shared/none
1547 TYPE=internal
1548 --with-pool=TYPE GFS pool read-only support: internal/shared/none
1549 TYPE=internal
1550 --with-cluster=TYPE Cluster LVM locking support: internal/shared/none
1551 TYPE=internal
1552 --with-snapshots=TYPE Snapshot support: internal/shared/none
1553 TYPE=internal
1554 --with-mirrors=TYPE Mirror support: internal/shared/none
1555 TYPE=internal
a946372e 1556 --with-clvmd=TYPE Build cluster LVM Daemon.
8c222979 1557 The following cluster manager combinations are valid:
a946372e
AK
1558 * cman,gulm (RHEL4 or equivalent)
1559 * cman (RHEL5 or equivalent)
1560 * cman,corosync,openais (or selection of them)
1091650a 1561 * singlenode (localhost only)
a946372e
AK
1562 * all (autodetect)
1563 * none (disable build)
a266258f 1564 TYPE=none
66fd4529 1565 --with-cmirrord-pidfile=PATH cmirrord pidfile [/var/run/cmirrord.pid]
d0191583
JM
1566 --with-optimisation=OPT C optimisation flag [OPT=-O2]
1567 --with-localedir=DIR Translation files in DIR [PREFIX/share/locale]
a5f46f6a
AK
1568 --with-confdir=DIR Configuration files in DIR [/etc]
1569 --with-staticdir=DIR Static binary in DIR [EPREFIX/sbin]
68f2de6d
AK
1570 --with-usrlibdir=DIR
1571 --with-usrsbindir=DIR
a5f46f6a 1572 --with-udev-prefix=UPREFIX Install udev rule files in UPREFIX [EPREFIX]
78ce7acc 1573 --with-udevdir=DIR udev rules in DIR [UPREFIX/lib/udev/rules.d]
93bd259b 1574 --with-dmeventd-pidfile=PATH dmeventd pidfile [/var/run/dmeventd.pid]
a5f46f6a 1575 --with-dmeventd-path=PATH dmeventd path [EPREFIX/sbin/dmeventd]
93bd259b 1576 --with-interface=IFACE Choose kernel interface (ioctl) [ioctl]
ad6254c5
AK
1577
1578Some influential environment variables:
1579 CC C compiler command
1580 CFLAGS C compiler flags
1581 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1582 nonstandard directory <lib dir>
25fbec5b 1583 LIBS libraries to pass to the linker, e.g. -l<library>
7a197a62
AK
1584 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1585 you have headers in a nonstandard directory <include dir>
ad6254c5 1586 CPP C preprocessor
e2997b73 1587 PKG_CONFIG path to pkg-config utility
a946372e
AK
1588 PKGCONFIGINIT_CFLAGS
1589 C compiler flags for PKGCONFIGINIT, overriding pkg-config
1590 PKGCONFIGINIT_LIBS
1591 linker flags for PKGCONFIGINIT, overriding pkg-config
1592 CCS_CFLAGS C compiler flags for CCS, overriding pkg-config
1593 CCS_LIBS linker flags for CCS, overriding pkg-config
1594 GULM_CFLAGS C compiler flags for GULM, overriding pkg-config
1595 GULM_LIBS linker flags for GULM, overriding pkg-config
1596 CMAN_CFLAGS C compiler flags for CMAN, overriding pkg-config
1597 CMAN_LIBS linker flags for CMAN, overriding pkg-config
1598 COROSYNC_CFLAGS
1599 C compiler flags for COROSYNC, overriding pkg-config
1600 COROSYNC_LIBS
1601 linker flags for COROSYNC, overriding pkg-config
e2997b73
AK
1602 QUORUM_CFLAGS
1603 C compiler flags for QUORUM, overriding pkg-config
1604 QUORUM_LIBS linker flags for QUORUM, overriding pkg-config
a946372e
AK
1605 SALCK_CFLAGS
1606 C compiler flags for SALCK, overriding pkg-config
1607 SALCK_LIBS linker flags for SALCK, overriding pkg-config
e2997b73
AK
1608 CONFDB_CFLAGS
1609 C compiler flags for CONFDB, overriding pkg-config
1610 CONFDB_LIBS linker flags for CONFDB, overriding pkg-config
1611 CPG_CFLAGS C compiler flags for CPG, overriding pkg-config
1612 CPG_LIBS linker flags for CPG, overriding pkg-config
a946372e
AK
1613 DLM_CFLAGS C compiler flags for DLM, overriding pkg-config
1614 DLM_LIBS linker flags for DLM, overriding pkg-config
90c80887
AK
1615 SACKPT_CFLAGS
1616 C compiler flags for SACKPT, overriding pkg-config
1617 SACKPT_LIBS linker flags for SACKPT, overriding pkg-config
ad6254c5
AK
1618
1619Use these variables to override the choices made by `configure' or to help
1620it to find libraries and programs with nonstandard names/locations.
1621
1622_ACEOF
7a197a62 1623ac_status=$?
ad6254c5
AK
1624fi
1625
1626if test "$ac_init_help" = "recursive"; then
1627 # If there are subdirs, report their specific --help.
ad6254c5 1628 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
ec6a6fbe
AK
1629 test -d "$ac_dir" ||
1630 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1631 continue
ad6254c5
AK
1632 ac_builddir=.
1633
7a197a62
AK
1634case "$ac_dir" in
1635.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1636*)
ec6a6fbe 1637 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7a197a62 1638 # A ".." for each directory in $ac_dir_suffix.
ec6a6fbe 1639 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7a197a62
AK
1640 case $ac_top_builddir_sub in
1641 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1642 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1643 esac ;;
1644esac
1645ac_abs_top_builddir=$ac_pwd
1646ac_abs_builddir=$ac_pwd$ac_dir_suffix
1647# for backward compatibility:
1648ac_top_builddir=$ac_top_build_prefix
ad6254c5
AK
1649
1650case $srcdir in
7a197a62 1651 .) # We are building in place.
ad6254c5 1652 ac_srcdir=.
7a197a62
AK
1653 ac_top_srcdir=$ac_top_builddir_sub
1654 ac_abs_top_srcdir=$ac_pwd ;;
1655 [\\/]* | ?:[\\/]* ) # Absolute name.
ad6254c5 1656 ac_srcdir=$srcdir$ac_dir_suffix;
7a197a62
AK
1657 ac_top_srcdir=$srcdir
1658 ac_abs_top_srcdir=$srcdir ;;
1659 *) # Relative name.
1660 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1661 ac_top_srcdir=$ac_top_build_prefix$srcdir
1662 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8a2fc586 1663esac
7a197a62
AK
1664ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1665
1666 cd "$ac_dir" || { ac_status=$?; continue; }
1667 # Check for guested configure.
1668 if test -f "$ac_srcdir/configure.gnu"; then
1669 echo &&
1670 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1671 elif test -f "$ac_srcdir/configure"; then
1672 echo &&
1673 $SHELL "$ac_srcdir/configure" --help=recursive
ad6254c5 1674 else
ec6a6fbe 1675 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
7a197a62
AK
1676 fi || ac_status=$?
1677 cd "$ac_pwd" || { ac_status=$?; break; }
ad6254c5
AK
1678 done
1679fi
1680
7a197a62 1681test -n "$ac_init_help" && exit $ac_status
ad6254c5
AK
1682if $ac_init_version; then
1683 cat <<\_ACEOF
7a197a62 1684configure
ec6a6fbe 1685generated by GNU Autoconf 2.63
ad6254c5 1686
7a197a62 1687Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
ec6a6fbe 16882002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
ad6254c5
AK
1689This configure script is free software; the Free Software Foundation
1690gives unlimited permission to copy, distribute and modify it.
1691_ACEOF
7a197a62 1692 exit
ad6254c5 1693fi
7a197a62 1694cat >config.log <<_ACEOF
ad6254c5
AK
1695This file contains any messages produced by compilers while
1696running configure, to aid debugging if configure makes a mistake.
1697
1698It was created by $as_me, which was
ec6a6fbe 1699generated by GNU Autoconf 2.63. Invocation command line was
ad6254c5
AK
1700
1701 $ $0 $@
1702
1703_ACEOF
7a197a62 1704exec 5>>config.log
ad6254c5
AK
1705{
1706cat <<_ASUNAME
1707## --------- ##
1708## Platform. ##
1709## --------- ##
1710
1711hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1712uname -m = `(uname -m) 2>/dev/null || echo unknown`
1713uname -r = `(uname -r) 2>/dev/null || echo unknown`
1714uname -s = `(uname -s) 2>/dev/null || echo unknown`
1715uname -v = `(uname -v) 2>/dev/null || echo unknown`
1716
1717/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1718/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1719
1720/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1721/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1722/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
7a197a62 1723/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
ad6254c5
AK
1724/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1725/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1726/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1727
1728_ASUNAME
1729
1730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1731for as_dir in $PATH
1732do
1733 IFS=$as_save_IFS
1734 test -z "$as_dir" && as_dir=.
ec6a6fbe 1735 $as_echo "PATH: $as_dir"
ad6254c5 1736done
7a197a62 1737IFS=$as_save_IFS
ad6254c5
AK
1738
1739} >&5
1740
1741cat >&5 <<_ACEOF
1742
1743
1744## ----------- ##
1745## Core tests. ##
1746## ----------- ##
1747
1748_ACEOF
1749
1750
1751# Keep a trace of the command line.
1752# Strip out --no-create and --no-recursion so they do not pile up.
1753# Strip out --silent because we don't want to record it for future runs.
1754# Also quote any args containing shell meta-characters.
1755# Make two passes to allow for proper duplicate-argument suppression.
1756ac_configure_args=
1757ac_configure_args0=
1758ac_configure_args1=
ad6254c5
AK
1759ac_must_keep_next=false
1760for ac_pass in 1 2
1761do
1762 for ac_arg
1763 do
1764 case $ac_arg in
1765 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1766 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1767 | -silent | --silent | --silen | --sile | --sil)
1768 continue ;;
7a197a62 1769 *\'*)
ec6a6fbe 1770 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
ad6254c5
AK
1771 esac
1772 case $ac_pass in
1773 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1774 2)
1775 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1776 if test $ac_must_keep_next = true; then
8a2fc586 1777 ac_must_keep_next=false # Got value, back to normal.
ad6254c5 1778 else
8a2fc586
AK
1779 case $ac_arg in
1780 *=* | --config-cache | -C | -disable-* | --disable-* \
1781 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1782 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1783 | -with-* | --with-* | -without-* | --without-* | --x)
1784 case "$ac_configure_args0 " in
1785 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1786 esac
1787 ;;
1788 -* ) ac_must_keep_next=true ;;
1789 esac
ad6254c5 1790 fi
7a197a62 1791 ac_configure_args="$ac_configure_args '$ac_arg'"
ad6254c5
AK
1792 ;;
1793 esac
1794 done
1795done
1796$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1797$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1798
1799# When interrupted or exit'd, cleanup temporary files, and complete
1800# config.log. We remove comments because anyway the quotes in there
1801# would cause problems or look ugly.
7a197a62
AK
1802# WARNING: Use '\'' to represent an apostrophe within the trap.
1803# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
ad6254c5
AK
1804trap 'exit_status=$?
1805 # Save into config.log some information that might help in debugging.
1806 {
1807 echo
1808
1809 cat <<\_ASBOX
1810## ---------------- ##
1811## Cache variables. ##
1812## ---------------- ##
1813_ASBOX
1814 echo
1815 # The following way of writing the cache mishandles newlines in values,
7a197a62
AK
1816(
1817 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1818 eval ac_val=\$$ac_var
1819 case $ac_val in #(
1820 *${as_nl}*)
1821 case $ac_var in #(
ec6a6fbe
AK
1822 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1823$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7a197a62
AK
1824 esac
1825 case $ac_var in #(
1826 _ | IFS | as_nl) ;; #(
ec6a6fbe 1827 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7a197a62
AK
1828 *) $as_unset $ac_var ;;
1829 esac ;;
1830 esac
1831 done
ad6254c5 1832 (set) 2>&1 |
7a197a62
AK
1833 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1834 *${as_nl}ac_space=\ *)
ad6254c5 1835 sed -n \
7a197a62
AK
1836 "s/'\''/'\''\\\\'\'''\''/g;
1837 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1838 ;; #(
ad6254c5 1839 *)
7a197a62 1840 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
ad6254c5 1841 ;;
7a197a62
AK
1842 esac |
1843 sort
1844)
ad6254c5
AK
1845 echo
1846
1847 cat <<\_ASBOX
1848## ----------------- ##
1849## Output variables. ##
1850## ----------------- ##
1851_ASBOX
1852 echo
1853 for ac_var in $ac_subst_vars
1854 do
7a197a62
AK
1855 eval ac_val=\$$ac_var
1856 case $ac_val in
ec6a6fbe 1857 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
7a197a62 1858 esac
ec6a6fbe 1859 $as_echo "$ac_var='\''$ac_val'\''"
ad6254c5
AK
1860 done | sort
1861 echo
1862
1863 if test -n "$ac_subst_files"; then
1864 cat <<\_ASBOX
7a197a62
AK
1865## ------------------- ##
1866## File substitutions. ##
1867## ------------------- ##
ad6254c5
AK
1868_ASBOX
1869 echo
1870 for ac_var in $ac_subst_files
1871 do
7a197a62
AK
1872 eval ac_val=\$$ac_var
1873 case $ac_val in
ec6a6fbe 1874 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
7a197a62 1875 esac
ec6a6fbe 1876 $as_echo "$ac_var='\''$ac_val'\''"
ad6254c5
AK
1877 done | sort
1878 echo
1879 fi
1880
1881 if test -s confdefs.h; then
1882 cat <<\_ASBOX
1883## ----------- ##
1884## confdefs.h. ##
1885## ----------- ##
1886_ASBOX
1887 echo
7a197a62 1888 cat confdefs.h
ad6254c5
AK
1889 echo
1890 fi
1891 test "$ac_signal" != 0 &&
ec6a6fbe
AK
1892 $as_echo "$as_me: caught signal $ac_signal"
1893 $as_echo "$as_me: exit $exit_status"
ad6254c5 1894 } >&5
7a197a62
AK
1895 rm -f core *.core core.conftest.* &&
1896 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
ad6254c5 1897 exit $exit_status
7a197a62 1898' 0
ad6254c5
AK
1899for ac_signal in 1 2 13 15; do
1900 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1901done
1902ac_signal=0
1903
1904# confdefs.h avoids OS command line length limits that DEFS can exceed.
7a197a62 1905rm -f -r conftest* confdefs.h
ad6254c5
AK
1906
1907# Predefined preprocessor variables.
1908
1909cat >>confdefs.h <<_ACEOF
1910#define PACKAGE_NAME "$PACKAGE_NAME"
1911_ACEOF
1912
1913
1914cat >>confdefs.h <<_ACEOF
1915#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1916_ACEOF
1917
1918
1919cat >>confdefs.h <<_ACEOF
1920#define PACKAGE_VERSION "$PACKAGE_VERSION"
1921_ACEOF
8106cdd5 1922
ad6254c5
AK
1923
1924cat >>confdefs.h <<_ACEOF
1925#define PACKAGE_STRING "$PACKAGE_STRING"
1926_ACEOF
1927
1928
1929cat >>confdefs.h <<_ACEOF
1930#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1931_ACEOF
1932
1933
1934# Let the site file select an alternate cache file if it wants to.
ec6a6fbe
AK
1935# Prefer an explicitly selected file to automatically selected ones.
1936ac_site_file1=NONE
1937ac_site_file2=NONE
7a197a62 1938if test -n "$CONFIG_SITE"; then
ec6a6fbe 1939 ac_site_file1=$CONFIG_SITE
7a197a62 1940elif test "x$prefix" != xNONE; then
ec6a6fbe
AK
1941 ac_site_file1=$prefix/share/config.site
1942 ac_site_file2=$prefix/etc/config.site
7a197a62 1943else
ec6a6fbe
AK
1944 ac_site_file1=$ac_default_prefix/share/config.site
1945 ac_site_file2=$ac_default_prefix/etc/config.site
795ca3e5 1946fi
ec6a6fbe 1947for ac_site_file in "$ac_site_file1" "$ac_site_file2"
7a197a62 1948do
ec6a6fbe 1949 test "x$ac_site_file" = xNONE && continue
795ca3e5 1950 if test -r "$ac_site_file"; then
ec6a6fbe
AK
1951 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1952$as_echo "$as_me: loading site script $ac_site_file" >&6;}
ad6254c5 1953 sed 's/^/| /' "$ac_site_file" >&5
795ca3e5
AK
1954 . "$ac_site_file"
1955 fi
1956done
1957
1958if test -r "$cache_file"; then
ad6254c5
AK
1959 # Some versions of bash will fail to source /dev/null (special
1960 # files actually), so we avoid doing that.
1961 if test -f "$cache_file"; then
ec6a6fbe
AK
1962 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1963$as_echo "$as_me: loading cache $cache_file" >&6;}
ad6254c5 1964 case $cache_file in
7a197a62
AK
1965 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1966 *) . "./$cache_file";;
ad6254c5
AK
1967 esac
1968 fi
795ca3e5 1969else
ec6a6fbe
AK
1970 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1971$as_echo "$as_me: creating cache $cache_file" >&6;}
ad6254c5
AK
1972 >$cache_file
1973fi
1974
1975# Check that the precious variables saved in the cache have kept the same
1976# value.
1977ac_cache_corrupted=false
7a197a62 1978for ac_var in $ac_precious_vars; do
ad6254c5
AK
1979 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1980 eval ac_new_set=\$ac_env_${ac_var}_set
7a197a62
AK
1981 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1982 eval ac_new_val=\$ac_env_${ac_var}_value
ad6254c5
AK
1983 case $ac_old_set,$ac_new_set in
1984 set,)
ec6a6fbe
AK
1985 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1986$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
ad6254c5
AK
1987 ac_cache_corrupted=: ;;
1988 ,set)
ec6a6fbe
AK
1989 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1990$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
ad6254c5
AK
1991 ac_cache_corrupted=: ;;
1992 ,);;
1993 *)
1994 if test "x$ac_old_val" != "x$ac_new_val"; then
ec6a6fbe
AK
1995 # differences in whitespace do not lead to failure.
1996 ac_old_val_w=`echo x $ac_old_val`
1997 ac_new_val_w=`echo x $ac_new_val`
1998 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1999 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2000$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2001 ac_cache_corrupted=:
2002 else
2003 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2004$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2005 eval $ac_var=\$ac_old_val
2006 fi
2007 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2008$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2009 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2010$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
ad6254c5
AK
2011 fi;;
2012 esac
2013 # Pass precious variables to config.status.
2014 if test "$ac_new_set" = set; then
2015 case $ac_new_val in
ec6a6fbe 2016 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
ad6254c5
AK
2017 *) ac_arg=$ac_var=$ac_new_val ;;
2018 esac
2019 case " $ac_configure_args " in
2020 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2021 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2022 esac
2023 fi
2024done
2025if $ac_cache_corrupted; then
ec6a6fbe
AK
2026 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2027$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2028 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2029$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2030 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2031$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
ad6254c5 2032 { (exit 1); exit 1; }; }
795ca3e5
AK
2033fi
2034
ad6254c5
AK
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
7a197a62
AK
2051ac_ext=c
2052ac_cpp='$CPP $CPPFLAGS'
2053ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2054ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2055ac_compiler_gnu=$ac_cv_c_compiler_gnu
ad6254c5 2056
795ca3e5
AK
2057
2058
7a197a62 2059ac_config_headers="$ac_config_headers lib/misc/configure.h"
72b2cb61
AK
2060
2061
80992638 2062################################################################################
795ca3e5 2063ac_aux_dir=
7a197a62
AK
2064for ac_dir in autoconf "$srcdir"/autoconf; do
2065 if test -f "$ac_dir/install-sh"; then
795ca3e5
AK
2066 ac_aux_dir=$ac_dir
2067 ac_install_sh="$ac_aux_dir/install-sh -c"
2068 break
7a197a62 2069 elif test -f "$ac_dir/install.sh"; then
795ca3e5
AK
2070 ac_aux_dir=$ac_dir
2071 ac_install_sh="$ac_aux_dir/install.sh -c"
2072 break
7a197a62 2073 elif test -f "$ac_dir/shtool"; then
ad6254c5
AK
2074 ac_aux_dir=$ac_dir
2075 ac_install_sh="$ac_aux_dir/shtool install -c"
2076 break
795ca3e5
AK
2077 fi
2078done
2079if test -z "$ac_aux_dir"; then
ec6a6fbe
AK
2080 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2081$as_echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
ad6254c5 2082 { (exit 1); exit 1; }; }
795ca3e5 2083fi
7a197a62
AK
2084
2085# These three variables are undocumented and unsupported,
2086# and are intended to be withdrawn in a future Autoconf release.
2087# They can cause serious problems if a builder's source tree is in a directory
2088# whose full name contains unusual characters.
2089ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2090ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2091ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2092
8ce0cbda
AK
2093
2094
ad6254c5 2095################################################################################
8ce0cbda 2096# Make sure we can run config.sub.
7a197a62 2097$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
ec6a6fbe
AK
2098 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2099$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
ad6254c5
AK
2100 { (exit 1); exit 1; }; }
2101
ec6a6fbe
AK
2102{ $as_echo "$as_me:$LINENO: checking build system type" >&5
2103$as_echo_n "checking build system type... " >&6; }
ad6254c5 2104if test "${ac_cv_build+set}" = set; then
ec6a6fbe 2105 $as_echo_n "(cached) " >&6
ad6254c5 2106else
7a197a62
AK
2107 ac_build_alias=$build_alias
2108test "x$ac_build_alias" = x &&
2109 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2110test "x$ac_build_alias" = x &&
ec6a6fbe
AK
2111 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2112$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
ad6254c5 2113 { (exit 1); exit 1; }; }
7a197a62 2114ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
ec6a6fbe
AK
2115 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2116$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
ad6254c5
AK
2117 { (exit 1); exit 1; }; }
2118
2119fi
ec6a6fbe
AK
2120{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2121$as_echo "$ac_cv_build" >&6; }
7a197a62
AK
2122case $ac_cv_build in
2123*-*-*) ;;
ec6a6fbe
AK
2124*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2125$as_echo "$as_me: error: invalid value of canonical build" >&2;}
7a197a62
AK
2126 { (exit 1); exit 1; }; };;
2127esac
ad6254c5 2128build=$ac_cv_build
7a197a62
AK
2129ac_save_IFS=$IFS; IFS='-'
2130set x $ac_cv_build
2131shift
2132build_cpu=$1
2133build_vendor=$2
2134shift; shift
2135# Remember, the first character of IFS is used to create $*,
2136# except with old shells:
2137build_os=$*
2138IFS=$ac_save_IFS
2139case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
ad6254c5
AK
2140
2141
ec6a6fbe
AK
2142{ $as_echo "$as_me:$LINENO: checking host system type" >&5
2143$as_echo_n "checking host system type... " >&6; }
ad6254c5 2144if test "${ac_cv_host+set}" = set; then
ec6a6fbe 2145 $as_echo_n "(cached) " >&6
ad6254c5 2146else
7a197a62
AK
2147 if test "x$host_alias" = x; then
2148 ac_cv_host=$ac_cv_build
2149else
2150 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
ec6a6fbe
AK
2151 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2152$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
ad6254c5 2153 { (exit 1); exit 1; }; }
7a197a62 2154fi
ad6254c5
AK
2155
2156fi
ec6a6fbe
AK
2157{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2158$as_echo "$ac_cv_host" >&6; }
7a197a62
AK
2159case $ac_cv_host in
2160*-*-*) ;;
ec6a6fbe
AK
2161*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2162$as_echo "$as_me: error: invalid value of canonical host" >&2;}
7a197a62
AK
2163 { (exit 1); exit 1; }; };;
2164esac
ad6254c5 2165host=$ac_cv_host
7a197a62
AK
2166ac_save_IFS=$IFS; IFS='-'
2167set x $ac_cv_host
2168shift
2169host_cpu=$1
2170host_vendor=$2
2171shift; shift
2172# Remember, the first character of IFS is used to create $*,
2173# except with old shells:
2174host_os=$*
2175IFS=$ac_save_IFS
2176case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
ad6254c5
AK
2177
2178
ec6a6fbe
AK
2179{ $as_echo "$as_me:$LINENO: checking target system type" >&5
2180$as_echo_n "checking target system type... " >&6; }
ad6254c5 2181if test "${ac_cv_target+set}" = set; then
ec6a6fbe 2182 $as_echo_n "(cached) " >&6
ad6254c5 2183else
7a197a62
AK
2184 if test "x$target_alias" = x; then
2185 ac_cv_target=$ac_cv_host
2186else
2187 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
ec6a6fbe
AK
2188 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2189$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
ad6254c5 2190 { (exit 1); exit 1; }; }
7a197a62 2191fi
8ce0cbda 2192
ad6254c5 2193fi
ec6a6fbe
AK
2194{ $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2195$as_echo "$ac_cv_target" >&6; }
7a197a62
AK
2196case $ac_cv_target in
2197*-*-*) ;;
ec6a6fbe
AK
2198*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2199$as_echo "$as_me: error: invalid value of canonical target" >&2;}
7a197a62
AK
2200 { (exit 1); exit 1; }; };;
2201esac
ad6254c5 2202target=$ac_cv_target
7a197a62
AK
2203ac_save_IFS=$IFS; IFS='-'
2204set x $ac_cv_target
2205shift
2206target_cpu=$1
2207target_vendor=$2
2208shift; shift
2209# Remember, the first character of IFS is used to create $*,
2210# except with old shells:
2211target_os=$*
2212IFS=$ac_save_IFS
2213case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
8ce0cbda 2214
8ce0cbda 2215
ad6254c5
AK
2216# The aliases save the names the user supplied, while $host etc.
2217# will get canonicalized.
2218test -n "$target_alias" &&
8ce0cbda
AK
2219 test "$program_prefix$program_suffix$program_transform_name" = \
2220 NONENONEs,x,x, &&
2221 program_prefix=${target_alias}-
2222
8ce0cbda
AK
2223case "$host_os" in
2224 linux*)
7f54ef36 2225 CFLAGS="$CFLAGS"
8ce0cbda
AK
2226 COPTIMISE_FLAG="-O2"
2227 CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym"
2228 CLDWHOLEARCHIVE="-Wl,-whole-archive"
2229 CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive"
2230 LDDEPS="$LDDEPS .export.sym"
2231 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
d0191583 2232 LIB_SUFFIX=so
8ce0cbda
AK
2233 DEVMAPPER=yes
2234 ODIRECT=yes
d0191583 2235 DM_IOCTLS=yes
8ce0cbda
AK
2236 SELINUX=yes
2237 CLUSTER=internal
93bd259b 2238 FSADM=yes
d0191583 2239 ;;
8ce0cbda
AK
2240 darwin*)
2241 CFLAGS="$CFLAGS -no-cpp-precomp -fno-common"
2242 COPTIMISE_FLAG="-O2"
2243 CLDFLAGS="$CLDFLAGS"
2244 CLDWHOLEARCHIVE="-all_load"
2245 CLDNOWHOLEARCHIVE=
d0191583 2246 LIB_SUFFIX=dylib
a653923f 2247 DEVMAPPER=yes
8ce0cbda 2248 ODIRECT=no
d0191583 2249 DM_IOCTLS=no
8ce0cbda
AK
2250 SELINUX=no
2251 CLUSTER=none
d0191583
JM
2252 FSADM=no
2253 ;;
8ce0cbda
AK
2254esac
2255
80992638 2256################################################################################
ec6a6fbe
AK
2257{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
2258$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5951ef33 2259if test "${ac_cv_path_SED+set}" = set; then
ec6a6fbe 2260 $as_echo_n "(cached) " >&6
5951ef33
AK
2261else
2262 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2263 for ac_i in 1 2 3 4 5 6 7; do
2264 ac_script="$ac_script$as_nl$ac_script"
2265 done
ec6a6fbe 2266 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5951ef33 2267 $as_unset ac_script || ac_script=
ec6a6fbe 2268 if test -z "$SED"; then
5951ef33 2269 ac_path_SED_found=false
ec6a6fbe
AK
2270 # Loop through the user's path and test for each of PROGNAME-LIST
2271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5951ef33
AK
2272for as_dir in $PATH
2273do
2274 IFS=$as_save_IFS
2275 test -z "$as_dir" && as_dir=.
2276 for ac_prog in sed gsed; do
ec6a6fbe
AK
2277 for ac_exec_ext in '' $ac_executable_extensions; do
2278 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2279 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2280# Check for GNU ac_path_SED and select it if it is found.
5951ef33
AK
2281 # Check for GNU $ac_path_SED
2282case `"$ac_path_SED" --version 2>&1` in
2283*GNU*)
2284 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2285*)
2286 ac_count=0
ec6a6fbe 2287 $as_echo_n 0123456789 >"conftest.in"
5951ef33
AK
2288 while :
2289 do
2290 cat "conftest.in" "conftest.in" >"conftest.tmp"
2291 mv "conftest.tmp" "conftest.in"
2292 cp "conftest.in" "conftest.nl"
ec6a6fbe 2293 $as_echo '' >> "conftest.nl"
5951ef33
AK
2294 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2295 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2296 ac_count=`expr $ac_count + 1`
2297 if test $ac_count -gt ${ac_path_SED_max-0}; then
2298 # Best one so far, save it but keep looking for a better one
2299 ac_cv_path_SED="$ac_path_SED"
2300 ac_path_SED_max=$ac_count
2301 fi
2302 # 10*(2^10) chars as input seems more than enough
2303 test $ac_count -gt 10 && break
2304 done
2305 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2306esac
2307
ec6a6fbe
AK
2308 $ac_path_SED_found && break 3
2309 done
5951ef33
AK
2310 done
2311done
5951ef33 2312IFS=$as_save_IFS
ec6a6fbe
AK
2313 if test -z "$ac_cv_path_SED"; then
2314 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
2315$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
5951ef33 2316 { (exit 1); exit 1; }; }
ec6a6fbe 2317 fi
5951ef33
AK
2318else
2319 ac_cv_path_SED=$SED
2320fi
2321
2322fi
ec6a6fbe
AK
2323{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
2324$as_echo "$ac_cv_path_SED" >&6; }
5951ef33
AK
2325 SED="$ac_cv_path_SED"
2326 rm -f conftest.sed
2327
ad6254c5 2328for ac_prog in gawk mawk nawk awk
795ca3e5 2329do
ad6254c5 2330 # Extract the first word of "$ac_prog", so it can be a program name with args.
795ca3e5 2331set dummy $ac_prog; ac_word=$2
ec6a6fbe
AK
2332{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2333$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2334if test "${ac_cv_prog_AWK+set}" = set; then
ec6a6fbe 2335 $as_echo_n "(cached) " >&6
795ca3e5
AK
2336else
2337 if test -n "$AWK"; then
2338 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2339else
ad6254c5
AK
2340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2341for as_dir in $PATH
2342do
2343 IFS=$as_save_IFS
2344 test -z "$as_dir" && as_dir=.
2345 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2347 ac_cv_prog_AWK="$ac_prog"
ec6a6fbe 2348 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2349 break 2
2350 fi
2351done
2352done
7a197a62 2353IFS=$as_save_IFS
ad6254c5 2354
795ca3e5
AK
2355fi
2356fi
ad6254c5 2357AWK=$ac_cv_prog_AWK
795ca3e5 2358if test -n "$AWK"; then
ec6a6fbe
AK
2359 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2360$as_echo "$AWK" >&6; }
795ca3e5 2361else
ec6a6fbe
AK
2362 { $as_echo "$as_me:$LINENO: result: no" >&5
2363$as_echo "no" >&6; }
795ca3e5
AK
2364fi
2365
7a197a62 2366
ad6254c5
AK
2367 test -n "$AWK" && break
2368done
2369
2370ac_ext=c
2371ac_cpp='$CPP $CPPFLAGS'
2372ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2373ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2374ac_compiler_gnu=$ac_cv_c_compiler_gnu
2375if test -n "$ac_tool_prefix"; then
2376 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2377set dummy ${ac_tool_prefix}gcc; ac_word=$2
ec6a6fbe
AK
2378{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2379$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2380if test "${ac_cv_prog_CC+set}" = set; then
ec6a6fbe 2381 $as_echo_n "(cached) " >&6
ad6254c5
AK
2382else
2383 if test -n "$CC"; then
2384 ac_cv_prog_CC="$CC" # Let the user override the test.
2385else
2386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2387for as_dir in $PATH
2388do
2389 IFS=$as_save_IFS
2390 test -z "$as_dir" && as_dir=.
2391 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2393 ac_cv_prog_CC="${ac_tool_prefix}gcc"
ec6a6fbe 2394 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2395 break 2
2396 fi
2397done
8106cdd5 2398done
7a197a62 2399IFS=$as_save_IFS
8106cdd5 2400
ad6254c5
AK
2401fi
2402fi
2403CC=$ac_cv_prog_CC
2404if test -n "$CC"; then
ec6a6fbe
AK
2405 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2406$as_echo "$CC" >&6; }
ad6254c5 2407else
ec6a6fbe
AK
2408 { $as_echo "$as_me:$LINENO: result: no" >&5
2409$as_echo "no" >&6; }
ad6254c5
AK
2410fi
2411
7a197a62 2412
ad6254c5
AK
2413fi
2414if test -z "$ac_cv_prog_CC"; then
2415 ac_ct_CC=$CC
2416 # Extract the first word of "gcc", so it can be a program name with args.
8106cdd5 2417set dummy gcc; ac_word=$2
ec6a6fbe
AK
2418{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2419$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2420if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
ec6a6fbe 2421 $as_echo_n "(cached) " >&6
ad6254c5
AK
2422else
2423 if test -n "$ac_ct_CC"; then
2424 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2425else
2426as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2427for as_dir in $PATH
2428do
2429 IFS=$as_save_IFS
2430 test -z "$as_dir" && as_dir=.
2431 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2433 ac_cv_prog_ac_ct_CC="gcc"
ec6a6fbe 2434 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2435 break 2
2436 fi
2437done
2438done
7a197a62 2439IFS=$as_save_IFS
ad6254c5
AK
2440
2441fi
2442fi
2443ac_ct_CC=$ac_cv_prog_ac_ct_CC
2444if test -n "$ac_ct_CC"; then
ec6a6fbe
AK
2445 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2446$as_echo "$ac_ct_CC" >&6; }
ad6254c5 2447else
ec6a6fbe
AK
2448 { $as_echo "$as_me:$LINENO: result: no" >&5
2449$as_echo "no" >&6; }
ad6254c5
AK
2450fi
2451
7a197a62
AK
2452 if test "x$ac_ct_CC" = x; then
2453 CC=""
2454 else
2455 case $cross_compiling:$ac_tool_warned in
2456yes:)
ec6a6fbe
AK
2457{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2458$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7a197a62
AK
2459ac_tool_warned=yes ;;
2460esac
2461 CC=$ac_ct_CC
2462 fi
ad6254c5
AK
2463else
2464 CC="$ac_cv_prog_CC"
2465fi
2466
2467if test -z "$CC"; then
7a197a62
AK
2468 if test -n "$ac_tool_prefix"; then
2469 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
ad6254c5 2470set dummy ${ac_tool_prefix}cc; ac_word=$2
ec6a6fbe
AK
2471{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2472$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2473if test "${ac_cv_prog_CC+set}" = set; then
ec6a6fbe 2474 $as_echo_n "(cached) " >&6
8106cdd5
AK
2475else
2476 if test -n "$CC"; then
2477 ac_cv_prog_CC="$CC" # Let the user override the test.
2478else
ad6254c5
AK
2479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2480for as_dir in $PATH
2481do
2482 IFS=$as_save_IFS
2483 test -z "$as_dir" && as_dir=.
2484 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2486 ac_cv_prog_CC="${ac_tool_prefix}cc"
ec6a6fbe 2487 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2488 break 2
2489 fi
2490done
2491done
7a197a62 2492IFS=$as_save_IFS
ad6254c5 2493
8106cdd5
AK
2494fi
2495fi
ad6254c5 2496CC=$ac_cv_prog_CC
8106cdd5 2497if test -n "$CC"; then
ec6a6fbe
AK
2498 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2499$as_echo "$CC" >&6; }
ad6254c5 2500else
ec6a6fbe
AK
2501 { $as_echo "$as_me:$LINENO: result: no" >&5
2502$as_echo "no" >&6; }
ad6254c5
AK
2503fi
2504
8106cdd5 2505
7a197a62 2506 fi
ad6254c5 2507fi
795ca3e5
AK
2508if test -z "$CC"; then
2509 # Extract the first word of "cc", so it can be a program name with args.
2510set dummy cc; ac_word=$2
ec6a6fbe
AK
2511{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2512$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2513if test "${ac_cv_prog_CC+set}" = set; then
ec6a6fbe 2514 $as_echo_n "(cached) " >&6
795ca3e5
AK
2515else
2516 if test -n "$CC"; then
2517 ac_cv_prog_CC="$CC" # Let the user override the test.
2518else
795ca3e5 2519 ac_prog_rejected=no
ad6254c5
AK
2520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2521for as_dir in $PATH
2522do
2523 IFS=$as_save_IFS
2524 test -z "$as_dir" && as_dir=.
2525 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5
AK
2527 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2528 ac_prog_rejected=yes
2529 continue
2530 fi
2531 ac_cv_prog_CC="cc"
ec6a6fbe 2532 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2533 break 2
2534 fi
2535done
2536done
7a197a62 2537IFS=$as_save_IFS
ad6254c5 2538
795ca3e5
AK
2539if test $ac_prog_rejected = yes; then
2540 # We found a bogon in the path, so make sure we never use it.
2541 set dummy $ac_cv_prog_CC
2542 shift
ad6254c5 2543 if test $# != 0; then
795ca3e5
AK
2544 # We chose a different compiler from the bogus one.
2545 # However, it has the same basename, so the bogon will be chosen
2546 # first if we set CC to just the basename; use the full file name.
2547 shift
ad6254c5 2548 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
795ca3e5
AK
2549 fi
2550fi
2551fi
2552fi
ad6254c5 2553CC=$ac_cv_prog_CC
795ca3e5 2554if test -n "$CC"; then
ec6a6fbe
AK
2555 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2556$as_echo "$CC" >&6; }
795ca3e5 2557else
ec6a6fbe
AK
2558 { $as_echo "$as_me:$LINENO: result: no" >&5
2559$as_echo "no" >&6; }
795ca3e5
AK
2560fi
2561
7a197a62 2562
ad6254c5
AK
2563fi
2564if test -z "$CC"; then
2565 if test -n "$ac_tool_prefix"; then
7a197a62 2566 for ac_prog in cl.exe
ad6254c5
AK
2567 do
2568 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2569set dummy $ac_tool_prefix$ac_prog; ac_word=$2
ec6a6fbe
AK
2570{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2571$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2572if test "${ac_cv_prog_CC+set}" = set; then
ec6a6fbe 2573 $as_echo_n "(cached) " >&6
795ca3e5
AK
2574else
2575 if test -n "$CC"; then
2576 ac_cv_prog_CC="$CC" # Let the user override the test.
2577else
ad6254c5
AK
2578as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2579for as_dir in $PATH
2580do
2581 IFS=$as_save_IFS
2582 test -z "$as_dir" && as_dir=.
2583 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2585 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
ec6a6fbe 2586 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2587 break 2
2588 fi
2589done
2590done
7a197a62 2591IFS=$as_save_IFS
ad6254c5 2592
795ca3e5
AK
2593fi
2594fi
ad6254c5 2595CC=$ac_cv_prog_CC
795ca3e5 2596if test -n "$CC"; then
ec6a6fbe
AK
2597 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2598$as_echo "$CC" >&6; }
795ca3e5 2599else
ec6a6fbe
AK
2600 { $as_echo "$as_me:$LINENO: result: no" >&5
2601$as_echo "no" >&6; }
795ca3e5 2602fi
ad6254c5 2603
7a197a62 2604
ad6254c5
AK
2605 test -n "$CC" && break
2606 done
2607fi
2608if test -z "$CC"; then
2609 ac_ct_CC=$CC
7a197a62 2610 for ac_prog in cl.exe
ad6254c5
AK
2611do
2612 # Extract the first word of "$ac_prog", so it can be a program name with args.
2613set dummy $ac_prog; ac_word=$2
ec6a6fbe
AK
2614{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2615$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2616if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
ec6a6fbe 2617 $as_echo_n "(cached) " >&6
ad6254c5
AK
2618else
2619 if test -n "$ac_ct_CC"; then
2620 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2621else
2622as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2623for as_dir in $PATH
2624do
2625 IFS=$as_save_IFS
2626 test -z "$as_dir" && as_dir=.
2627 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2629 ac_cv_prog_ac_ct_CC="$ac_prog"
ec6a6fbe 2630 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5 2631 break 2
795ca3e5 2632 fi
ad6254c5
AK
2633done
2634done
7a197a62 2635IFS=$as_save_IFS
ad6254c5
AK
2636
2637fi
2638fi
2639ac_ct_CC=$ac_cv_prog_ac_ct_CC
2640if test -n "$ac_ct_CC"; then
ec6a6fbe
AK
2641 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2642$as_echo "$ac_ct_CC" >&6; }
ad6254c5 2643else
ec6a6fbe
AK
2644 { $as_echo "$as_me:$LINENO: result: no" >&5
2645$as_echo "no" >&6; }
795ca3e5
AK
2646fi
2647
7a197a62 2648
ad6254c5
AK
2649 test -n "$ac_ct_CC" && break
2650done
795ca3e5 2651
7a197a62
AK
2652 if test "x$ac_ct_CC" = x; then
2653 CC=""
2654 else
2655 case $cross_compiling:$ac_tool_warned in
2656yes:)
ec6a6fbe
AK
2657{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2658$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7a197a62
AK
2659ac_tool_warned=yes ;;
2660esac
2661 CC=$ac_ct_CC
2662 fi
ad6254c5
AK
2663fi
2664
2665fi
2666
2667
ec6a6fbe
AK
2668test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2669$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2670{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
ad6254c5 2671See \`config.log' for more details." >&5
ec6a6fbe 2672$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
ad6254c5 2673See \`config.log' for more details." >&2;}
ec6a6fbe 2674 { (exit 1); exit 1; }; }; }
ad6254c5
AK
2675
2676# Provide some information about the compiler.
ec6a6fbe
AK
2677$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2678set X $ac_compile
2679ac_compiler=$2
7a197a62
AK
2680{ (ac_try="$ac_compiler --version >&5"
2681case "(($ac_try" in
2682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2683 *) ac_try_echo=$ac_try;;
2684esac
ec6a6fbe
AK
2685eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2686$as_echo "$ac_try_echo") >&5
7a197a62 2687 (eval "$ac_compiler --version >&5") 2>&5
ad6254c5 2688 ac_status=$?
ec6a6fbe 2689 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2690 (exit $ac_status); }
7a197a62
AK
2691{ (ac_try="$ac_compiler -v >&5"
2692case "(($ac_try" in
2693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2694 *) ac_try_echo=$ac_try;;
2695esac
ec6a6fbe
AK
2696eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2697$as_echo "$ac_try_echo") >&5
7a197a62 2698 (eval "$ac_compiler -v >&5") 2>&5
ad6254c5 2699 ac_status=$?
ec6a6fbe 2700 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2701 (exit $ac_status); }
7a197a62
AK
2702{ (ac_try="$ac_compiler -V >&5"
2703case "(($ac_try" in
2704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2705 *) ac_try_echo=$ac_try;;
2706esac
ec6a6fbe
AK
2707eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2708$as_echo "$ac_try_echo") >&5
7a197a62 2709 (eval "$ac_compiler -V >&5") 2>&5
ad6254c5 2710 ac_status=$?
ec6a6fbe 2711 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
2712 (exit $ac_status); }
2713
2714cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2715/* confdefs.h. */
2716_ACEOF
2717cat confdefs.h >>conftest.$ac_ext
2718cat >>conftest.$ac_ext <<_ACEOF
2719/* end confdefs.h. */
2720
2721int
2722main ()
2723{
2724
2725 ;
2726 return 0;
2727}
2728_ACEOF
2729ac_clean_files_save=$ac_clean_files
ec6a6fbe 2730ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
ad6254c5
AK
2731# Try to create an executable without -o first, disregard a.out.
2732# It will help us diagnose broken compilers, and finding out an intuition
2733# of exeext.
ec6a6fbe
AK
2734{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2735$as_echo_n "checking for C compiler default output file name... " >&6; }
2736ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2737
2738# The possible output files:
2739ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2740
7a197a62
AK
2741ac_rmfiles=
2742for ac_file in $ac_files
2743do
2744 case $ac_file in
ec6a6fbe 2745 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
7a197a62
AK
2746 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2747 esac
2748done
2749rm -f $ac_rmfiles
2750
2751if { (ac_try="$ac_link_default"
2752case "(($ac_try" in
2753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2754 *) ac_try_echo=$ac_try;;
2755esac
ec6a6fbe
AK
2756eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2757$as_echo "$ac_try_echo") >&5
7a197a62 2758 (eval "$ac_link_default") 2>&5
ad6254c5 2759 ac_status=$?
ec6a6fbe 2760 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2761 (exit $ac_status); }; then
7a197a62
AK
2762 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2763# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2764# in a Makefile. We should not override ac_cv_exeext if it was cached,
2765# so that the user can short-circuit this test for compilers unknown to
2766# Autoconf.
25fbec5b 2767for ac_file in $ac_files ''
ad6254c5
AK
2768do
2769 test -f "$ac_file" || continue
2770 case $ac_file in
ec6a6fbe 2771 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
8a2fc586 2772 ;;
ad6254c5 2773 [ab].out )
8a2fc586
AK
2774 # We found the default executable, but exeext='' is most
2775 # certainly right.
2776 break;;
ad6254c5 2777 *.* )
7a197a62
AK
2778 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2779 then :; else
2780 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2781 fi
2782 # We set ac_cv_exeext here because the later test for it is not
2783 # safe: cross compilers may not add the suffix if given an `-o'
2784 # argument, so we may need to know it at that point already.
2785 # Even if this section looks crufty: it has the advantage of
2786 # actually working.
8a2fc586 2787 break;;
ad6254c5 2788 * )
8a2fc586 2789 break;;
ad6254c5
AK
2790 esac
2791done
7a197a62
AK
2792test "$ac_cv_exeext" = no && ac_cv_exeext=
2793
ad6254c5 2794else
25fbec5b
AK
2795 ac_file=''
2796fi
2797
ec6a6fbe
AK
2798{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2799$as_echo "$ac_file" >&6; }
25fbec5b 2800if test -z "$ac_file"; then
ec6a6fbe 2801 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
2802sed 's/^/| /' conftest.$ac_ext >&5
2803
ec6a6fbe
AK
2804{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2805$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2806{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
ad6254c5 2807See \`config.log' for more details." >&5
ec6a6fbe 2808$as_echo "$as_me: error: C compiler cannot create executables
ad6254c5 2809See \`config.log' for more details." >&2;}
ec6a6fbe 2810 { (exit 77); exit 77; }; }; }
ad6254c5
AK
2811fi
2812
2813ac_exeext=$ac_cv_exeext
ad6254c5 2814
7a197a62 2815# Check that the compiler produces executables we can run. If not, either
ad6254c5 2816# the compiler is broken, or we cross compile.
ec6a6fbe
AK
2817{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2818$as_echo_n "checking whether the C compiler works... " >&6; }
ad6254c5
AK
2819# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2820# If not cross compiling, check that we can run a simple program.
2821if test "$cross_compiling" != yes; then
2822 if { ac_try='./$ac_file'
7a197a62
AK
2823 { (case "(($ac_try" in
2824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2825 *) ac_try_echo=$ac_try;;
2826esac
ec6a6fbe
AK
2827eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2828$as_echo "$ac_try_echo") >&5
7a197a62 2829 (eval "$ac_try") 2>&5
ad6254c5 2830 ac_status=$?
ec6a6fbe 2831 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
2832 (exit $ac_status); }; }; then
2833 cross_compiling=no
795ca3e5 2834 else
ad6254c5
AK
2835 if test "$cross_compiling" = maybe; then
2836 cross_compiling=yes
2837 else
ec6a6fbe
AK
2838 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2839$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2840{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
ad6254c5
AK
2841If you meant to cross compile, use \`--host'.
2842See \`config.log' for more details." >&5
ec6a6fbe 2843$as_echo "$as_me: error: cannot run C compiled programs.
ad6254c5
AK
2844If you meant to cross compile, use \`--host'.
2845See \`config.log' for more details." >&2;}
ec6a6fbe 2846 { (exit 1); exit 1; }; }; }
ad6254c5 2847 fi
795ca3e5 2848 fi
80992638 2849fi
ec6a6fbe
AK
2850{ $as_echo "$as_me:$LINENO: result: yes" >&5
2851$as_echo "yes" >&6; }
ad6254c5 2852
ec6a6fbe 2853rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
ad6254c5 2854ac_clean_files=$ac_clean_files_save
7a197a62 2855# Check that the compiler produces executables we can run. If not, either
ad6254c5 2856# the compiler is broken, or we cross compile.
ec6a6fbe
AK
2857{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2858$as_echo_n "checking whether we are cross compiling... " >&6; }
2859{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2860$as_echo "$cross_compiling" >&6; }
7a197a62 2861
ec6a6fbe
AK
2862{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2863$as_echo_n "checking for suffix of executables... " >&6; }
7a197a62
AK
2864if { (ac_try="$ac_link"
2865case "(($ac_try" in
2866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2867 *) ac_try_echo=$ac_try;;
2868esac
ec6a6fbe
AK
2869eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2870$as_echo "$ac_try_echo") >&5
7a197a62 2871 (eval "$ac_link") 2>&5
ad6254c5 2872 ac_status=$?
ec6a6fbe 2873 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
2874 (exit $ac_status); }; then
2875 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2876# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2877# work properly (i.e., refer to `conftest.exe'), while it won't with
2878# `rm'.
2879for ac_file in conftest.exe conftest conftest.*; do
2880 test -f "$ac_file" || continue
2881 case $ac_file in
ec6a6fbe 2882 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
ad6254c5 2883 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
8a2fc586 2884 break;;
ad6254c5
AK
2885 * ) break;;
2886 esac
2887done
80992638 2888else
ec6a6fbe
AK
2889 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2890$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2891{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
ad6254c5 2892See \`config.log' for more details." >&5
ec6a6fbe 2893$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
ad6254c5 2894See \`config.log' for more details." >&2;}
ec6a6fbe 2895 { (exit 1); exit 1; }; }; }
ad6254c5
AK
2896fi
2897
2898rm -f conftest$ac_cv_exeext
ec6a6fbe
AK
2899{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2900$as_echo "$ac_cv_exeext" >&6; }
ad6254c5
AK
2901
2902rm -f conftest.$ac_ext
2903EXEEXT=$ac_cv_exeext
2904ac_exeext=$EXEEXT
ec6a6fbe
AK
2905{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2906$as_echo_n "checking for suffix of object files... " >&6; }
ad6254c5 2907if test "${ac_cv_objext+set}" = set; then
ec6a6fbe 2908 $as_echo_n "(cached) " >&6
795ca3e5 2909else
ad6254c5 2910 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2911/* confdefs.h. */
2912_ACEOF
2913cat confdefs.h >>conftest.$ac_ext
2914cat >>conftest.$ac_ext <<_ACEOF
2915/* end confdefs.h. */
2916
2917int
2918main ()
2919{
2920
2921 ;
2922 return 0;
2923}
2924_ACEOF
2925rm -f conftest.o conftest.obj
7a197a62
AK
2926if { (ac_try="$ac_compile"
2927case "(($ac_try" in
2928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2929 *) ac_try_echo=$ac_try;;
2930esac
ec6a6fbe
AK
2931eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2932$as_echo "$ac_try_echo") >&5
7a197a62 2933 (eval "$ac_compile") 2>&5
ad6254c5 2934 ac_status=$?
ec6a6fbe 2935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2936 (exit $ac_status); }; then
7a197a62
AK
2937 for ac_file in conftest.o conftest.obj conftest.*; do
2938 test -f "$ac_file" || continue;
ad6254c5 2939 case $ac_file in
ec6a6fbe 2940 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
ad6254c5
AK
2941 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2942 break;;
2943 esac
2944done
2945else
ec6a6fbe 2946 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
2947sed 's/^/| /' conftest.$ac_ext >&5
2948
ec6a6fbe
AK
2949{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2950$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2951{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
ad6254c5 2952See \`config.log' for more details." >&5
ec6a6fbe 2953$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
ad6254c5 2954See \`config.log' for more details." >&2;}
ec6a6fbe 2955 { (exit 1); exit 1; }; }; }
ad6254c5
AK
2956fi
2957
2958rm -f conftest.$ac_cv_objext conftest.$ac_ext
2959fi
ec6a6fbe
AK
2960{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2961$as_echo "$ac_cv_objext" >&6; }
ad6254c5
AK
2962OBJEXT=$ac_cv_objext
2963ac_objext=$OBJEXT
ec6a6fbe
AK
2964{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2965$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
ad6254c5 2966if test "${ac_cv_c_compiler_gnu+set}" = set; then
ec6a6fbe 2967 $as_echo_n "(cached) " >&6
ad6254c5
AK
2968else
2969 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2970/* confdefs.h. */
2971_ACEOF
2972cat confdefs.h >>conftest.$ac_ext
2973cat >>conftest.$ac_ext <<_ACEOF
2974/* end confdefs.h. */
2975
2976int
2977main ()
2978{
2979#ifndef __GNUC__
2980 choke me
2981#endif
80992638 2982
ad6254c5
AK
2983 ;
2984 return 0;
2985}
2986_ACEOF
2987rm -f conftest.$ac_objext
7a197a62
AK
2988if { (ac_try="$ac_compile"
2989case "(($ac_try" in
2990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2991 *) ac_try_echo=$ac_try;;
2992esac
ec6a6fbe
AK
2993eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2994$as_echo "$ac_try_echo") >&5
7a197a62 2995 (eval "$ac_compile") 2>conftest.er1
ad6254c5 2996 ac_status=$?
8a2fc586
AK
2997 grep -v '^ *+' conftest.er1 >conftest.err
2998 rm -f conftest.er1
2999 cat conftest.err >&5
ec6a6fbe 3000 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
3001 (exit $ac_status); } && {
3002 test -z "$ac_c_werror_flag" ||
3003 test ! -s conftest.err
3004 } && test -s conftest.$ac_objext; then
ad6254c5 3005 ac_compiler_gnu=yes
80992638 3006else
ec6a6fbe 3007 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
3008sed 's/^/| /' conftest.$ac_ext >&5
3009
7a197a62 3010 ac_compiler_gnu=no
8106cdd5 3011fi
7a197a62
AK
3012
3013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 3014ac_cv_c_compiler_gnu=$ac_compiler_gnu
80992638 3015
ad6254c5 3016fi
ec6a6fbe
AK
3017{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3018$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3019if test $ac_compiler_gnu = yes; then
3020 GCC=yes
3021else
3022 GCC=
3023fi
ad6254c5
AK
3024ac_test_CFLAGS=${CFLAGS+set}
3025ac_save_CFLAGS=$CFLAGS
ec6a6fbe
AK
3026{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3027$as_echo_n "checking whether $CC accepts -g... " >&6; }
ad6254c5 3028if test "${ac_cv_prog_cc_g+set}" = set; then
ec6a6fbe 3029 $as_echo_n "(cached) " >&6
795ca3e5 3030else
7a197a62
AK
3031 ac_save_c_werror_flag=$ac_c_werror_flag
3032 ac_c_werror_flag=yes
3033 ac_cv_prog_cc_g=no
3034 CFLAGS="-g"
3035 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3036/* confdefs.h. */
3037_ACEOF
3038cat confdefs.h >>conftest.$ac_ext
3039cat >>conftest.$ac_ext <<_ACEOF
3040/* end confdefs.h. */
3041
3042int
3043main ()
3044{
3045
3046 ;
3047 return 0;
3048}
3049_ACEOF
3050rm -f conftest.$ac_objext
7a197a62
AK
3051if { (ac_try="$ac_compile"
3052case "(($ac_try" in
3053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3054 *) ac_try_echo=$ac_try;;
3055esac
ec6a6fbe
AK
3056eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3057$as_echo "$ac_try_echo") >&5
7a197a62 3058 (eval "$ac_compile") 2>conftest.er1
ad6254c5 3059 ac_status=$?
8a2fc586
AK
3060 grep -v '^ *+' conftest.er1 >conftest.err
3061 rm -f conftest.er1
3062 cat conftest.err >&5
ec6a6fbe 3063 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
3064 (exit $ac_status); } && {
3065 test -z "$ac_c_werror_flag" ||
3066 test ! -s conftest.err
3067 } && test -s conftest.$ac_objext; then
7a197a62
AK
3068 ac_cv_prog_cc_g=yes
3069else
ec6a6fbe 3070 $as_echo "$as_me: failed program was:" >&5
7a197a62
AK
3071sed 's/^/| /' conftest.$ac_ext >&5
3072
3073 CFLAGS=""
3074 cat >conftest.$ac_ext <<_ACEOF
3075/* confdefs.h. */
3076_ACEOF
3077cat confdefs.h >>conftest.$ac_ext
3078cat >>conftest.$ac_ext <<_ACEOF
3079/* end confdefs.h. */
3080
3081int
3082main ()
3083{
3084
3085 ;
3086 return 0;
3087}
3088_ACEOF
3089rm -f conftest.$ac_objext
3090if { (ac_try="$ac_compile"
3091case "(($ac_try" in
3092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3093 *) ac_try_echo=$ac_try;;
3094esac
ec6a6fbe
AK
3095eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3096$as_echo "$ac_try_echo") >&5
7a197a62 3097 (eval "$ac_compile") 2>conftest.er1
8a2fc586 3098 ac_status=$?
7a197a62
AK
3099 grep -v '^ *+' conftest.er1 >conftest.err
3100 rm -f conftest.er1
3101 cat conftest.err >&5
ec6a6fbe 3102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
3103 (exit $ac_status); } && {
3104 test -z "$ac_c_werror_flag" ||
3105 test ! -s conftest.err
3106 } && test -s conftest.$ac_objext; then
7a197a62
AK
3107 :
3108else
ec6a6fbe 3109 $as_echo "$as_me: failed program was:" >&5
7a197a62
AK
3110sed 's/^/| /' conftest.$ac_ext >&5
3111
3112 ac_c_werror_flag=$ac_save_c_werror_flag
3113 CFLAGS="-g"
3114 cat >conftest.$ac_ext <<_ACEOF
3115/* confdefs.h. */
3116_ACEOF
3117cat confdefs.h >>conftest.$ac_ext
3118cat >>conftest.$ac_ext <<_ACEOF
3119/* end confdefs.h. */
3120
3121int
3122main ()
3123{
3124
3125 ;
3126 return 0;
3127}
3128_ACEOF
3129rm -f conftest.$ac_objext
3130if { (ac_try="$ac_compile"
3131case "(($ac_try" in
3132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3133 *) ac_try_echo=$ac_try;;
3134esac
ec6a6fbe
AK
3135eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3136$as_echo "$ac_try_echo") >&5
7a197a62 3137 (eval "$ac_compile") 2>conftest.er1
ad6254c5 3138 ac_status=$?
7a197a62
AK
3139 grep -v '^ *+' conftest.er1 >conftest.err
3140 rm -f conftest.er1
3141 cat conftest.err >&5
ec6a6fbe 3142 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
3143 (exit $ac_status); } && {
3144 test -z "$ac_c_werror_flag" ||
3145 test ! -s conftest.err
3146 } && test -s conftest.$ac_objext; then
795ca3e5
AK
3147 ac_cv_prog_cc_g=yes
3148else
ec6a6fbe 3149 $as_echo "$as_me: failed program was:" >&5
ad6254c5 3150sed 's/^/| /' conftest.$ac_ext >&5
80992638 3151
7a197a62
AK
3152
3153fi
3154
3155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3156fi
3157
3158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8106cdd5 3159fi
7a197a62
AK
3160
3161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3162 ac_c_werror_flag=$ac_save_c_werror_flag
ad6254c5 3163fi
ec6a6fbe
AK
3164{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3165$as_echo "$ac_cv_prog_cc_g" >&6; }
795ca3e5 3166if test "$ac_test_CFLAGS" = set; then
ad6254c5 3167 CFLAGS=$ac_save_CFLAGS
795ca3e5
AK
3168elif test $ac_cv_prog_cc_g = yes; then
3169 if test "$GCC" = yes; then
3170 CFLAGS="-g -O2"
3171 else
3172 CFLAGS="-g"
3173 fi
3174else
3175 if test "$GCC" = yes; then
3176 CFLAGS="-O2"
3177 else
3178 CFLAGS=
3179 fi
3180fi
ec6a6fbe
AK
3181{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3182$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
7a197a62 3183if test "${ac_cv_prog_cc_c89+set}" = set; then
ec6a6fbe 3184 $as_echo_n "(cached) " >&6
ad6254c5 3185else
7a197a62 3186 ac_cv_prog_cc_c89=no
ad6254c5
AK
3187ac_save_CC=$CC
3188cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3189/* confdefs.h. */
3190_ACEOF
3191cat confdefs.h >>conftest.$ac_ext
3192cat >>conftest.$ac_ext <<_ACEOF
3193/* end confdefs.h. */
3194#include <stdarg.h>
3195#include <stdio.h>
3196#include <sys/types.h>
3197#include <sys/stat.h>
3198/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3199struct buf { int x; };
3200FILE * (*rcsopen) (struct buf *, struct stat *, int);
3201static char *e (p, i)
3202 char **p;
3203 int i;
3204{
3205 return p[i];
3206}
3207static char *f (char * (*g) (char **, int), char **p, ...)
3208{
3209 char *s;
3210 va_list v;
3211 va_start (v,p);
3212 s = g (p, va_arg (v,int));
3213 va_end (v);
3214 return s;
3215}
8a2fc586
AK
3216
3217/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3218 function prototypes and stuff, but not '\xHH' hex character constants.
3219 These don't provoke an error unfortunately, instead are silently treated
7a197a62 3220 as 'x'. The following induces an error, until -std is added to get
8a2fc586
AK
3221 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3222 array size at least. It's necessary to write '\x00'==0 to get something
7a197a62 3223 that's true only with -std. */
8a2fc586
AK
3224int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3225
7a197a62
AK
3226/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3227 inside strings and character constants. */
3228#define FOO(x) 'x'
3229int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3230
ad6254c5
AK
3231int test (int i, double x);
3232struct s1 {int (*f) (int a);};
3233struct s2 {int (*f) (double a);};
3234int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3235int argc;
3236char **argv;
3237int
3238main ()
3239{
3240return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3241 ;
3242 return 0;
3243}
3244_ACEOF
7a197a62
AK
3245for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3246 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
ad6254c5
AK
3247do
3248 CC="$ac_save_CC $ac_arg"
3249 rm -f conftest.$ac_objext
7a197a62
AK
3250if { (ac_try="$ac_compile"
3251case "(($ac_try" in
3252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3253 *) ac_try_echo=$ac_try;;
3254esac
ec6a6fbe
AK
3255eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3256$as_echo "$ac_try_echo") >&5
7a197a62 3257 (eval "$ac_compile") 2>conftest.er1
ad6254c5 3258 ac_status=$?
8a2fc586
AK
3259 grep -v '^ *+' conftest.er1 >conftest.err
3260 rm -f conftest.er1
3261 cat conftest.err >&5
ec6a6fbe 3262 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
3263 (exit $ac_status); } && {
3264 test -z "$ac_c_werror_flag" ||
3265 test ! -s conftest.err
3266 } && test -s conftest.$ac_objext; then
7a197a62 3267 ac_cv_prog_cc_c89=$ac_arg
ad6254c5 3268else
ec6a6fbe 3269 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
3270sed 's/^/| /' conftest.$ac_ext >&5
3271
7a197a62 3272
ad6254c5 3273fi
7a197a62
AK
3274
3275rm -f core conftest.err conftest.$ac_objext
3276 test "x$ac_cv_prog_cc_c89" != "xno" && break
ad6254c5 3277done
7a197a62 3278rm -f conftest.$ac_ext
ad6254c5
AK
3279CC=$ac_save_CC
3280
3281fi
7a197a62
AK
3282# AC_CACHE_VAL
3283case "x$ac_cv_prog_cc_c89" in
3284 x)
ec6a6fbe
AK
3285 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3286$as_echo "none needed" >&6; } ;;
7a197a62 3287 xno)
ec6a6fbe
AK
3288 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3289$as_echo "unsupported" >&6; } ;;
ad6254c5 3290 *)
7a197a62 3291 CC="$CC $ac_cv_prog_cc_c89"
ec6a6fbe
AK
3292 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3293$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
ad6254c5
AK
3294esac
3295
ad6254c5 3296
ad6254c5
AK
3297ac_ext=c
3298ac_cpp='$CPP $CPPFLAGS'
3299ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3300ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3301ac_compiler_gnu=$ac_cv_c_compiler_gnu
795ca3e5 3302
d0191583
JM
3303
3304
3305ac_ext=c
3306ac_cpp='$CPP $CPPFLAGS'
3307ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3308ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3309ac_compiler_gnu=$ac_cv_c_compiler_gnu
ec6a6fbe
AK
3310{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3311$as_echo_n "checking how to run the C preprocessor... " >&6; }
d0191583
JM
3312# On Suns, sometimes $CPP names a directory.
3313if test -n "$CPP" && test -d "$CPP"; then
3314 CPP=
3315fi
3316if test -z "$CPP"; then
3317 if test "${ac_cv_prog_CPP+set}" = set; then
ec6a6fbe 3318 $as_echo_n "(cached) " >&6
ad6254c5 3319else
d0191583
JM
3320 # Double quotes because CPP needs to be expanded
3321 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3322 do
3323 ac_preproc_ok=false
3324for ac_c_preproc_warn_flag in '' yes
ad6254c5 3325do
d0191583
JM
3326 # Use a header file that comes with gcc, so configuring glibc
3327 # with a fresh cross-compiler works.
3328 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3329 # <limits.h> exists even on freestanding compilers.
3330 # On the NeXT, cc -E runs the code through the compiler's parser,
3331 # not just through cpp. "Syntax error" is here to catch this case.
3332 cat >conftest.$ac_ext <<_ACEOF
3333/* confdefs.h. */
3334_ACEOF
3335cat confdefs.h >>conftest.$ac_ext
3336cat >>conftest.$ac_ext <<_ACEOF
3337/* end confdefs.h. */
3338#ifdef __STDC__
3339# include <limits.h>
3340#else
3341# include <assert.h>
3342#endif
3343 Syntax error
3344_ACEOF
3345if { (ac_try="$ac_cpp conftest.$ac_ext"
3346case "(($ac_try" in
3347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3348 *) ac_try_echo=$ac_try;;
ad6254c5 3349esac
ec6a6fbe
AK
3350eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3351$as_echo "$ac_try_echo") >&5
d0191583
JM
3352 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3353 ac_status=$?
3354 grep -v '^ *+' conftest.er1 >conftest.err
3355 rm -f conftest.er1
3356 cat conftest.err >&5
ec6a6fbe 3357 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3358 (exit $ac_status); } >/dev/null && {
3359 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3360 test ! -s conftest.err
3361 }; then
3362 :
3363else
ec6a6fbe 3364 $as_echo "$as_me: failed program was:" >&5
d0191583 3365sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 3366
d0191583
JM
3367 # Broken: fails on valid input.
3368continue
795ca3e5 3369fi
795ca3e5 3370
d0191583 3371rm -f conftest.err conftest.$ac_ext
795ca3e5 3372
d0191583
JM
3373 # OK, works on sane cases. Now check whether nonexistent headers
3374 # can be detected and how.
3375 cat >conftest.$ac_ext <<_ACEOF
3376/* confdefs.h. */
3377_ACEOF
3378cat confdefs.h >>conftest.$ac_ext
3379cat >>conftest.$ac_ext <<_ACEOF
3380/* end confdefs.h. */
3381#include <ac_nonexistent.h>
3382_ACEOF
3383if { (ac_try="$ac_cpp conftest.$ac_ext"
3384case "(($ac_try" in
3385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3386 *) ac_try_echo=$ac_try;;
3387esac
ec6a6fbe
AK
3388eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3389$as_echo "$ac_try_echo") >&5
d0191583
JM
3390 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3391 ac_status=$?
3392 grep -v '^ *+' conftest.er1 >conftest.err
3393 rm -f conftest.er1
3394 cat conftest.err >&5
ec6a6fbe 3395 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3396 (exit $ac_status); } >/dev/null && {
3397 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3398 test ! -s conftest.err
3399 }; then
3400 # Broken: success on invalid input.
3401continue
3402else
ec6a6fbe 3403 $as_echo "$as_me: failed program was:" >&5
d0191583 3404sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 3405
d0191583
JM
3406 # Passes both tests.
3407ac_preproc_ok=:
3408break
3409fi
795ca3e5 3410
d0191583
JM
3411rm -f conftest.err conftest.$ac_ext
3412
3413done
3414# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3415rm -f conftest.err conftest.$ac_ext
3416if $ac_preproc_ok; then
3417 break
795ca3e5
AK
3418fi
3419
d0191583
JM
3420 done
3421 ac_cv_prog_CPP=$CPP
3422
3423fi
3424 CPP=$ac_cv_prog_CPP
795ca3e5 3425else
d0191583
JM
3426 ac_cv_prog_CPP=$CPP
3427fi
ec6a6fbe
AK
3428{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
3429$as_echo "$CPP" >&6; }
d0191583
JM
3430ac_preproc_ok=false
3431for ac_c_preproc_warn_flag in '' yes
3432do
3433 # Use a header file that comes with gcc, so configuring glibc
3434 # with a fresh cross-compiler works.
3435 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3436 # <limits.h> exists even on freestanding compilers.
3437 # On the NeXT, cc -E runs the code through the compiler's parser,
3438 # not just through cpp. "Syntax error" is here to catch this case.
3439 cat >conftest.$ac_ext <<_ACEOF
3440/* confdefs.h. */
ad6254c5 3441_ACEOF
d0191583
JM
3442cat confdefs.h >>conftest.$ac_ext
3443cat >>conftest.$ac_ext <<_ACEOF
3444/* end confdefs.h. */
3445#ifdef __STDC__
3446# include <limits.h>
3447#else
3448# include <assert.h>
3449#endif
3450 Syntax error
3451_ACEOF
3452if { (ac_try="$ac_cpp conftest.$ac_ext"
3453case "(($ac_try" in
3454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3455 *) ac_try_echo=$ac_try;;
7a197a62 3456esac
ec6a6fbe
AK
3457eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3458$as_echo "$ac_try_echo") >&5
d0191583
JM
3459 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3460 ac_status=$?
3461 grep -v '^ *+' conftest.er1 >conftest.err
3462 rm -f conftest.er1
3463 cat conftest.err >&5
ec6a6fbe 3464 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3465 (exit $ac_status); } >/dev/null && {
3466 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3467 test ! -s conftest.err
3468 }; then
3469 :
795ca3e5 3470else
ec6a6fbe 3471 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
3472sed 's/^/| /' conftest.$ac_ext >&5
3473
3474 # Broken: fails on valid input.
3475continue
795ca3e5
AK
3476fi
3477
d0191583
JM
3478rm -f conftest.err conftest.$ac_ext
3479
3480 # OK, works on sane cases. Now check whether nonexistent headers
3481 # can be detected and how.
3482 cat >conftest.$ac_ext <<_ACEOF
3483/* confdefs.h. */
3484_ACEOF
3485cat confdefs.h >>conftest.$ac_ext
3486cat >>conftest.$ac_ext <<_ACEOF
3487/* end confdefs.h. */
3488#include <ac_nonexistent.h>
3489_ACEOF
3490if { (ac_try="$ac_cpp conftest.$ac_ext"
3491case "(($ac_try" in
3492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3493 *) ac_try_echo=$ac_try;;
3494esac
ec6a6fbe
AK
3495eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3496$as_echo "$ac_try_echo") >&5
d0191583
JM
3497 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3498 ac_status=$?
3499 grep -v '^ *+' conftest.er1 >conftest.err
3500 rm -f conftest.er1
3501 cat conftest.err >&5
ec6a6fbe 3502 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3503 (exit $ac_status); } >/dev/null && {
3504 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3505 test ! -s conftest.err
3506 }; then
3507 # Broken: success on invalid input.
3508continue
795ca3e5 3509else
ec6a6fbe 3510 $as_echo "$as_me: failed program was:" >&5
d0191583 3511sed 's/^/| /' conftest.$ac_ext >&5
ad6254c5 3512
d0191583
JM
3513 # Passes both tests.
3514ac_preproc_ok=:
3515break
795ca3e5 3516fi
d0191583
JM
3517
3518rm -f conftest.err conftest.$ac_ext
3519
3520done
3521# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3522rm -f conftest.err conftest.$ac_ext
3523if $ac_preproc_ok; then
3524 :
8106cdd5 3525else
ec6a6fbe
AK
3526 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3527$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3528{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
d0191583 3529See \`config.log' for more details." >&5
ec6a6fbe 3530$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
d0191583 3531See \`config.log' for more details." >&2;}
ec6a6fbe 3532 { (exit 1); exit 1; }; }; }
8106cdd5
AK
3533fi
3534
d0191583
JM
3535ac_ext=c
3536ac_cpp='$CPP $CPPFLAGS'
3537ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3538ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3539ac_compiler_gnu=$ac_cv_c_compiler_gnu
3540
7a197a62 3541
ec6a6fbe
AK
3542{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3543$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5556819a 3544if test "${ac_cv_path_GREP+set}" = set; then
ec6a6fbe 3545 $as_echo_n "(cached) " >&6
ad6254c5 3546else
ec6a6fbe 3547 if test -z "$GREP"; then
d0191583 3548 ac_path_GREP_found=false
ec6a6fbe
AK
3549 # Loop through the user's path and test for each of PROGNAME-LIST
3550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
d0191583 3551for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
ad6254c5
AK
3552do
3553 IFS=$as_save_IFS
3554 test -z "$as_dir" && as_dir=.
d0191583 3555 for ac_prog in grep ggrep; do
ec6a6fbe
AK
3556 for ac_exec_ext in '' $ac_executable_extensions; do
3557 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3558 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3559# Check for GNU ac_path_GREP and select it if it is found.
d0191583
JM
3560 # Check for GNU $ac_path_GREP
3561case `"$ac_path_GREP" --version 2>&1` in
3562*GNU*)
3563 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3564*)
3565 ac_count=0
ec6a6fbe 3566 $as_echo_n 0123456789 >"conftest.in"
d0191583
JM
3567 while :
3568 do
3569 cat "conftest.in" "conftest.in" >"conftest.tmp"
3570 mv "conftest.tmp" "conftest.in"
3571 cp "conftest.in" "conftest.nl"
ec6a6fbe 3572 $as_echo 'GREP' >> "conftest.nl"
d0191583
JM
3573 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3574 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3575 ac_count=`expr $ac_count + 1`
3576 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3577 # Best one so far, save it but keep looking for a better one
3578 ac_cv_path_GREP="$ac_path_GREP"
3579 ac_path_GREP_max=$ac_count
3580 fi
3581 # 10*(2^10) chars as input seems more than enough
3582 test $ac_count -gt 10 && break
3583 done
3584 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3585esac
3586
ec6a6fbe
AK
3587 $ac_path_GREP_found && break 3
3588 done
d0191583 3589 done
ad6254c5 3590done
7a197a62 3591IFS=$as_save_IFS
ec6a6fbe
AK
3592 if test -z "$ac_cv_path_GREP"; then
3593 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3594$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
d0191583 3595 { (exit 1); exit 1; }; }
ec6a6fbe 3596 fi
80992638 3597else
d0191583 3598 ac_cv_path_GREP=$GREP
8106cdd5 3599fi
8106cdd5 3600
80992638 3601fi
ec6a6fbe
AK
3602{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3603$as_echo "$ac_cv_path_GREP" >&6; }
d0191583 3604 GREP="$ac_cv_path_GREP"
795ca3e5 3605
d0191583 3606
ec6a6fbe
AK
3607{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
3608$as_echo_n "checking for egrep... " >&6; }
d0191583 3609if test "${ac_cv_path_EGREP+set}" = set; then
ec6a6fbe 3610 $as_echo_n "(cached) " >&6
8a2fc586 3611else
d0191583
JM
3612 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3613 then ac_cv_path_EGREP="$GREP -E"
3614 else
ec6a6fbe 3615 if test -z "$EGREP"; then
d0191583 3616 ac_path_EGREP_found=false
ec6a6fbe
AK
3617 # Loop through the user's path and test for each of PROGNAME-LIST
3618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
d0191583 3619for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8a2fc586
AK
3620do
3621 IFS=$as_save_IFS
3622 test -z "$as_dir" && as_dir=.
d0191583 3623 for ac_prog in egrep; do
ec6a6fbe
AK
3624 for ac_exec_ext in '' $ac_executable_extensions; do
3625 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3626 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3627# Check for GNU ac_path_EGREP and select it if it is found.
d0191583
JM
3628 # Check for GNU $ac_path_EGREP
3629case `"$ac_path_EGREP" --version 2>&1` in
3630*GNU*)
3631 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3632*)
3633 ac_count=0
ec6a6fbe 3634 $as_echo_n 0123456789 >"conftest.in"
d0191583
JM
3635 while :
3636 do
3637 cat "conftest.in" "conftest.in" >"conftest.tmp"
3638 mv "conftest.tmp" "conftest.in"
3639 cp "conftest.in" "conftest.nl"
ec6a6fbe 3640 $as_echo 'EGREP' >> "conftest.nl"
d0191583
JM
3641 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3642 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3643 ac_count=`expr $ac_count + 1`
3644 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3645 # Best one so far, save it but keep looking for a better one
3646 ac_cv_path_EGREP="$ac_path_EGREP"
3647 ac_path_EGREP_max=$ac_count
3648 fi
3649 # 10*(2^10) chars as input seems more than enough
3650 test $ac_count -gt 10 && break
3651 done
3652 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8a2fc586 3653esac
8a2fc586 3654
ec6a6fbe
AK
3655 $ac_path_EGREP_found && break 3
3656 done
d0191583 3657 done
8a2fc586 3658done
7a197a62 3659IFS=$as_save_IFS
ec6a6fbe
AK
3660 if test -z "$ac_cv_path_EGREP"; then
3661 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3662$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
d0191583 3663 { (exit 1); exit 1; }; }
ec6a6fbe 3664 fi
d0191583
JM
3665else
3666 ac_cv_path_EGREP=$EGREP
3667fi
ad6254c5 3668
d0191583
JM
3669 fi
3670fi
ec6a6fbe
AK
3671{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3672$as_echo "$ac_cv_path_EGREP" >&6; }
d0191583 3673 EGREP="$ac_cv_path_EGREP"
ad6254c5
AK
3674
3675
d0191583 3676if test $ac_cv_c_compiler_gnu = yes; then
ec6a6fbe
AK
3677 { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3678$as_echo_n "checking whether $CC needs -traditional... " >&6; }
d0191583 3679if test "${ac_cv_prog_gcc_traditional+set}" = set; then
ec6a6fbe 3680 $as_echo_n "(cached) " >&6
8106cdd5 3681else
d0191583 3682 ac_pattern="Autoconf.*'x'"
ad6254c5 3683 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3684/* confdefs.h. */
3685_ACEOF
3686cat confdefs.h >>conftest.$ac_ext
3687cat >>conftest.$ac_ext <<_ACEOF
3688/* end confdefs.h. */
d0191583
JM
3689#include <sgtty.h>
3690Autoconf TIOCGETP
ad6254c5 3691_ACEOF
d0191583
JM
3692if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3693 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3694 ac_cv_prog_gcc_traditional=yes
8106cdd5 3695else
d0191583 3696 ac_cv_prog_gcc_traditional=no
80992638 3697fi
d0191583 3698rm -f conftest*
ad6254c5 3699
8106cdd5 3700
d0191583
JM
3701 if test $ac_cv_prog_gcc_traditional = no; then
3702 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3703/* confdefs.h. */
3704_ACEOF
3705cat confdefs.h >>conftest.$ac_ext
3706cat >>conftest.$ac_ext <<_ACEOF
3707/* end confdefs.h. */
d0191583
JM
3708#include <termio.h>
3709Autoconf TCGETA
ad6254c5 3710_ACEOF
d0191583
JM
3711if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3712 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3713 ac_cv_prog_gcc_traditional=yes
7a197a62 3714fi
d0191583 3715rm -f conftest*
795ca3e5 3716
d0191583 3717 fi
795ca3e5 3718fi
ec6a6fbe
AK
3719{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3720$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
d0191583
JM
3721 if test $ac_cv_prog_gcc_traditional = yes; then
3722 CC="$CC -traditional"
3723 fi
795ca3e5
AK
3724fi
3725
d0191583
JM
3726# Find a good install program. We prefer a C program (faster),
3727# so one script is as good as another. But avoid the broken or
3728# incompatible versions:
3729# SysV /etc/install, /usr/sbin/install
3730# SunOS /usr/etc/install
3731# IRIX /sbin/install
3732# AIX /bin/install
3733# AmigaOS /C/install, which installs bootblocks on floppy discs
3734# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3735# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3736# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3737# OS/2's system install, which has a completely different semantic
3738# ./install, which can be erroneously created by make from ./install.sh.
ec6a6fbe
AK
3739# Reject install programs that cannot install multiple files.
3740{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3741$as_echo_n "checking for a BSD-compatible install... " >&6; }
d0191583
JM
3742if test -z "$INSTALL"; then
3743if test "${ac_cv_path_install+set}" = set; then
ec6a6fbe 3744 $as_echo_n "(cached) " >&6
ad6254c5 3745else
d0191583
JM
3746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3747for as_dir in $PATH
3748do
3749 IFS=$as_save_IFS
3750 test -z "$as_dir" && as_dir=.
3751 # Account for people who put trailing slashes in PATH elements.
3752case $as_dir/ in
3753 ./ | .// | /cC/* | \
3754 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3755 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3756 /usr/ucb/* ) ;;
3757 *)
3758 # OSF1 and SCO ODT 3.0 have their own names for install.
3759 # Don't use installbsd from OSF since it installs stuff as root
3760 # by default.
3761 for ac_prog in ginstall scoinst install; do
3762 for ac_exec_ext in '' $ac_executable_extensions; do
3763 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3764 if test $ac_prog = install &&
3765 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3766 # AIX install. It has an incompatible calling convention.
3767 :
3768 elif test $ac_prog = install &&
3769 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3770 # program-specific install script used by HP pwplus--don't use.
3771 :
3772 else
ec6a6fbe
AK
3773 rm -rf conftest.one conftest.two conftest.dir
3774 echo one > conftest.one
3775 echo two > conftest.two
3776 mkdir conftest.dir
3777 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3778 test -s conftest.one && test -s conftest.two &&
3779 test -s conftest.dir/conftest.one &&
3780 test -s conftest.dir/conftest.two
3781 then
3782 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3783 break 3
3784 fi
d0191583
JM
3785 fi
3786 fi
3787 done
3788 done
3789 ;;
3790esac
ec6a6fbe 3791
d0191583
JM
3792done
3793IFS=$as_save_IFS
80992638 3794
ec6a6fbe 3795rm -rf conftest.one conftest.two conftest.dir
d0191583
JM
3796
3797fi
3798 if test "${ac_cv_path_install+set}" = set; then
3799 INSTALL=$ac_cv_path_install
7a197a62 3800 else
d0191583
JM
3801 # As a last resort, use the slow shell script. Don't cache a
3802 # value for INSTALL within a source directory, because that will
3803 # break other packages using the cache if that directory is
3804 # removed, or if the value is a relative name.
3805 INSTALL=$ac_install_sh
7a197a62 3806 fi
d0191583 3807fi
ec6a6fbe
AK
3808{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3809$as_echo "$INSTALL" >&6; }
ad6254c5 3810
d0191583
JM
3811# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3812# It thinks the first close brace ends the variable substitution.
3813test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
ad6254c5 3814
d0191583 3815test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
80992638 3816
d0191583
JM
3817test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3818
ec6a6fbe
AK
3819{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
3820$as_echo_n "checking whether ln -s works... " >&6; }
d0191583
JM
3821LN_S=$as_ln_s
3822if test "$LN_S" = "ln -s"; then
ec6a6fbe
AK
3823 { $as_echo "$as_me:$LINENO: result: yes" >&5
3824$as_echo "yes" >&6; }
d0191583 3825else
ec6a6fbe
AK
3826 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3827$as_echo "no, using $LN_S" >&6; }
795ca3e5 3828fi
d0191583 3829
ec6a6fbe
AK
3830{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3831$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3832set x ${MAKE-make}
3833ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
d0191583 3834if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 3835 $as_echo_n "(cached) " >&6
7a197a62 3836else
d0191583
JM
3837 cat >conftest.make <<\_ACEOF
3838SHELL = /bin/sh
3839all:
3840 @echo '@@@%%%=$(MAKE)=@@@%%%'
3841_ACEOF
3842# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3843case `${MAKE-make} -f conftest.make 2>/dev/null` in
3844 *@@@%%%=?*=@@@%%%*)
3845 eval ac_cv_prog_make_${ac_make}_set=yes;;
3846 *)
3847 eval ac_cv_prog_make_${ac_make}_set=no;;
3848esac
3849rm -f conftest.make
ad6254c5 3850fi
d0191583 3851if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
ec6a6fbe
AK
3852 { $as_echo "$as_me:$LINENO: result: yes" >&5
3853$as_echo "yes" >&6; }
d0191583
JM
3854 SET_MAKE=
3855else
ec6a6fbe
AK
3856 { $as_echo "$as_me:$LINENO: result: no" >&5
3857$as_echo "no" >&6; }
d0191583 3858 SET_MAKE="MAKE=${MAKE-make}"
795ca3e5 3859fi
8106cdd5 3860
ec6a6fbe
AK
3861{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
3862$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
5556819a
AK
3863if test -z "$MKDIR_P"; then
3864 if test "${ac_cv_path_mkdir+set}" = set; then
ec6a6fbe 3865 $as_echo_n "(cached) " >&6
5556819a
AK
3866else
3867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3868for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3869do
3870 IFS=$as_save_IFS
3871 test -z "$as_dir" && as_dir=.
3872 for ac_prog in mkdir gmkdir; do
3873 for ac_exec_ext in '' $ac_executable_extensions; do
3874 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3875 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3876 'mkdir (GNU coreutils) '* | \
3877 'mkdir (coreutils) '* | \
3878 'mkdir (fileutils) '4.1*)
3879 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3880 break 3;;
3881 esac
3882 done
3883 done
3884done
3885IFS=$as_save_IFS
3886
3887fi
3888
3889 if test "${ac_cv_path_mkdir+set}" = set; then
3890 MKDIR_P="$ac_cv_path_mkdir -p"
3891 else
3892 # As a last resort, use the slow shell script. Don't cache a
3893 # value for MKDIR_P within a source directory, because that will
3894 # break other packages using the cache if that directory is
3895 # removed, or if the value is a relative name.
3896 test -d ./--version && rmdir ./--version
3897 MKDIR_P="$ac_install_sh -d"
3898 fi
3899fi
ec6a6fbe
AK
3900{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
3901$as_echo "$MKDIR_P" >&6; }
5556819a 3902
d0191583
JM
3903if test -n "$ac_tool_prefix"; then
3904 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3905set dummy ${ac_tool_prefix}ranlib; ac_word=$2
ec6a6fbe
AK
3906{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3907$as_echo_n "checking for $ac_word... " >&6; }
d0191583 3908if test "${ac_cv_prog_RANLIB+set}" = set; then
ec6a6fbe 3909 $as_echo_n "(cached) " >&6
d0191583
JM
3910else
3911 if test -n "$RANLIB"; then
3912 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3913else
3914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3915for as_dir in $PATH
3916do
3917 IFS=$as_save_IFS
3918 test -z "$as_dir" && as_dir=.
3919 for ac_exec_ext in '' $ac_executable_extensions; do
3920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3921 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
ec6a6fbe 3922 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
3923 break 2
3924 fi
3925done
3926done
3927IFS=$as_save_IFS
8106cdd5 3928
795ca3e5 3929fi
d0191583
JM
3930fi
3931RANLIB=$ac_cv_prog_RANLIB
3932if test -n "$RANLIB"; then
ec6a6fbe
AK
3933 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
3934$as_echo "$RANLIB" >&6; }
d0191583 3935else
ec6a6fbe
AK
3936 { $as_echo "$as_me:$LINENO: result: no" >&5
3937$as_echo "no" >&6; }
d0191583
JM
3938fi
3939
8106cdd5 3940
ad6254c5 3941fi
d0191583
JM
3942if test -z "$ac_cv_prog_RANLIB"; then
3943 ac_ct_RANLIB=$RANLIB
3944 # Extract the first word of "ranlib", so it can be a program name with args.
3945set dummy ranlib; ac_word=$2
ec6a6fbe
AK
3946{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3947$as_echo_n "checking for $ac_word... " >&6; }
d0191583 3948if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
ec6a6fbe 3949 $as_echo_n "(cached) " >&6
ad6254c5 3950else
d0191583
JM
3951 if test -n "$ac_ct_RANLIB"; then
3952 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3953else
3954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3955for as_dir in $PATH
8106cdd5 3956do
d0191583
JM
3957 IFS=$as_save_IFS
3958 test -z "$as_dir" && as_dir=.
3959 for ac_exec_ext in '' $ac_executable_extensions; do
3960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3961 ac_cv_prog_ac_ct_RANLIB="ranlib"
ec6a6fbe 3962 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
3963 break 2
3964 fi
3965done
3966done
3967IFS=$as_save_IFS
3968
3969fi
3970fi
3971ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3972if test -n "$ac_ct_RANLIB"; then
ec6a6fbe
AK
3973 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3974$as_echo "$ac_ct_RANLIB" >&6; }
ad6254c5 3975else
ec6a6fbe
AK
3976 { $as_echo "$as_me:$LINENO: result: no" >&5
3977$as_echo "no" >&6; }
d0191583 3978fi
ad6254c5 3979
d0191583
JM
3980 if test "x$ac_ct_RANLIB" = x; then
3981 RANLIB=":"
3982 else
3983 case $cross_compiling:$ac_tool_warned in
3984yes:)
ec6a6fbe
AK
3985{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3986$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
d0191583
JM
3987ac_tool_warned=yes ;;
3988esac
3989 RANLIB=$ac_ct_RANLIB
3990 fi
3991else
3992 RANLIB="$ac_cv_prog_RANLIB"
ad6254c5 3993fi
7a197a62 3994
d0191583
JM
3995# Extract the first word of "cflow", so it can be a program name with args.
3996set dummy cflow; ac_word=$2
ec6a6fbe
AK
3997{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3998$as_echo_n "checking for $ac_word... " >&6; }
d0191583 3999if test "${ac_cv_path_CFLOW_CMD+set}" = set; then
ec6a6fbe 4000 $as_echo_n "(cached) " >&6
d0191583
JM
4001else
4002 case $CFLOW_CMD in
4003 [\\/]* | ?:[\\/]*)
4004 ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path.
4005 ;;
4006 *)
4007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4008for as_dir in $PATH
4009do
4010 IFS=$as_save_IFS
4011 test -z "$as_dir" && as_dir=.
4012 for ac_exec_ext in '' $ac_executable_extensions; do
4013 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4014 ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 4015 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
4016 break 2
4017 fi
4018done
4019done
4020IFS=$as_save_IFS
ad6254c5 4021
d0191583 4022 ;;
7a197a62 4023esac
d0191583
JM
4024fi
4025CFLOW_CMD=$ac_cv_path_CFLOW_CMD
4026if test -n "$CFLOW_CMD"; then
ec6a6fbe
AK
4027 { $as_echo "$as_me:$LINENO: result: $CFLOW_CMD" >&5
4028$as_echo "$CFLOW_CMD" >&6; }
80992638 4029else
ec6a6fbe
AK
4030 { $as_echo "$as_me:$LINENO: result: no" >&5
4031$as_echo "no" >&6; }
795ca3e5 4032fi
7a197a62 4033
ad6254c5 4034
d0191583
JM
4035# Extract the first word of "cscope", so it can be a program name with args.
4036set dummy cscope; ac_word=$2
ec6a6fbe
AK
4037{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4038$as_echo_n "checking for $ac_word... " >&6; }
d0191583 4039if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then
ec6a6fbe 4040 $as_echo_n "(cached) " >&6
d0191583
JM
4041else
4042 case $CSCOPE_CMD in
4043 [\\/]* | ?:[\\/]*)
4044 ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path.
4045 ;;
4046 *)
4047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4048for as_dir in $PATH
4049do
4050 IFS=$as_save_IFS
4051 test -z "$as_dir" && as_dir=.
4052 for ac_exec_ext in '' $ac_executable_extensions; do
4053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4054 ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 4055 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
4056 break 2
4057 fi
795ca3e5 4058done
d0191583
JM
4059done
4060IFS=$as_save_IFS
795ca3e5 4061
d0191583
JM
4062 ;;
4063esac
ad6254c5 4064fi
d0191583
JM
4065CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD
4066if test -n "$CSCOPE_CMD"; then
ec6a6fbe
AK
4067 { $as_echo "$as_me:$LINENO: result: $CSCOPE_CMD" >&5
4068$as_echo "$CSCOPE_CMD" >&6; }
795ca3e5 4069else
ec6a6fbe
AK
4070 { $as_echo "$as_me:$LINENO: result: no" >&5
4071$as_echo "no" >&6; }
795ca3e5 4072fi
ad6254c5 4073
7a197a62 4074
ad6254c5 4075
d0191583
JM
4076################################################################################
4077
4078
4079
4080
4081
4082ac_header_dirent=no
4083for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
ec6a6fbe
AK
4084 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4085{ $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4086$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
d0191583 4087if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 4088 $as_echo_n "(cached) " >&6
d0191583 4089else
ad6254c5 4090 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4091/* confdefs.h. */
4092_ACEOF
4093cat confdefs.h >>conftest.$ac_ext
4094cat >>conftest.$ac_ext <<_ACEOF
4095/* end confdefs.h. */
d0191583
JM
4096#include <sys/types.h>
4097#include <$ac_hdr>
4098
4099int
4100main ()
4101{
4102if ((DIR *) 0)
4103return 0;
4104 ;
4105 return 0;
4106}
ad6254c5 4107_ACEOF
d0191583
JM
4108rm -f conftest.$ac_objext
4109if { (ac_try="$ac_compile"
7a197a62
AK
4110case "(($ac_try" in
4111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4112 *) ac_try_echo=$ac_try;;
4113esac
ec6a6fbe
AK
4114eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4115$as_echo "$ac_try_echo") >&5
d0191583 4116 (eval "$ac_compile") 2>conftest.er1
ad6254c5
AK
4117 ac_status=$?
4118 grep -v '^ *+' conftest.er1 >conftest.err
4119 rm -f conftest.er1
4120 cat conftest.err >&5
ec6a6fbe 4121 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4122 (exit $ac_status); } && {
4123 test -z "$ac_c_werror_flag" ||
25fbec5b 4124 test ! -s conftest.err
d0191583
JM
4125 } && test -s conftest.$ac_objext; then
4126 eval "$as_ac_Header=yes"
ad6254c5 4127else
ec6a6fbe 4128 $as_echo "$as_me: failed program was:" >&5
ad6254c5 4129sed 's/^/| /' conftest.$ac_ext >&5
8106cdd5 4130
d0191583 4131 eval "$as_ac_Header=no"
795ca3e5 4132fi
7a197a62 4133
d0191583 4134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
795ca3e5 4135fi
ec6a6fbe
AK
4136ac_res=`eval 'as_val=${'$as_ac_Header'}
4137 $as_echo "$as_val"'`
4138 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4139$as_echo "$ac_res" >&6; }
4140as_val=`eval 'as_val=${'$as_ac_Header'}
4141 $as_echo "$as_val"'`
4142 if test "x$as_val" = x""yes; then
d0191583 4143 cat >>confdefs.h <<_ACEOF
ec6a6fbe 4144#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
d0191583 4145_ACEOF
795ca3e5 4146
d0191583
JM
4147ac_header_dirent=$ac_hdr; break
4148fi
ad6254c5 4149
d0191583
JM
4150done
4151# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4152if test $ac_header_dirent = dirent.h; then
ec6a6fbe
AK
4153 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
4154$as_echo_n "checking for library containing opendir... " >&6; }
d0191583 4155if test "${ac_cv_search_opendir+set}" = set; then
ec6a6fbe 4156 $as_echo_n "(cached) " >&6
ad6254c5 4157else
d0191583
JM
4158 ac_func_search_save_LIBS=$LIBS
4159cat >conftest.$ac_ext <<_ACEOF
4160/* confdefs.h. */
4161_ACEOF
4162cat confdefs.h >>conftest.$ac_ext
4163cat >>conftest.$ac_ext <<_ACEOF
4164/* end confdefs.h. */
ad6254c5 4165
d0191583
JM
4166/* Override any GCC internal prototype to avoid an error.
4167 Use char because int might match the return type of a GCC
4168 builtin and then its argument prototype would still apply. */
4169#ifdef __cplusplus
4170extern "C"
4171#endif
4172char opendir ();
4173int
4174main ()
4175{
4176return opendir ();
4177 ;
4178 return 0;
4179}
4180_ACEOF
4181for ac_lib in '' dir; do
4182 if test -z "$ac_lib"; then
4183 ac_res="none required"
4184 else
4185 ac_res=-l$ac_lib
4186 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4187 fi
4188 rm -f conftest.$ac_objext conftest$ac_exeext
4189if { (ac_try="$ac_link"
4190case "(($ac_try" in
4191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4192 *) ac_try_echo=$ac_try;;
4193esac
ec6a6fbe
AK
4194eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4195$as_echo "$ac_try_echo") >&5
d0191583
JM
4196 (eval "$ac_link") 2>conftest.er1
4197 ac_status=$?
4198 grep -v '^ *+' conftest.er1 >conftest.err
4199 rm -f conftest.er1
4200 cat conftest.err >&5
ec6a6fbe 4201 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4202 (exit $ac_status); } && {
4203 test -z "$ac_c_werror_flag" ||
4204 test ! -s conftest.err
ec6a6fbe
AK
4205 } && test -s conftest$ac_exeext && {
4206 test "$cross_compiling" = yes ||
4207 $as_test_x conftest$ac_exeext
4208 }; then
d0191583
JM
4209 ac_cv_search_opendir=$ac_res
4210else
ec6a6fbe 4211 $as_echo "$as_me: failed program was:" >&5
d0191583 4212sed 's/^/| /' conftest.$ac_ext >&5
ad6254c5 4213
ad6254c5 4214
795ca3e5 4215fi
ad6254c5 4216
ec6a6fbe 4217rm -rf conftest.dSYM
d0191583
JM
4218rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4219 conftest$ac_exeext
4220 if test "${ac_cv_search_opendir+set}" = set; then
4221 break
7a197a62 4222fi
d0191583
JM
4223done
4224if test "${ac_cv_search_opendir+set}" = set; then
4225 :
7a197a62 4226else
d0191583 4227 ac_cv_search_opendir=no
7a197a62 4228fi
d0191583
JM
4229rm conftest.$ac_ext
4230LIBS=$ac_func_search_save_LIBS
7a197a62 4231fi
ec6a6fbe
AK
4232{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4233$as_echo "$ac_cv_search_opendir" >&6; }
d0191583
JM
4234ac_res=$ac_cv_search_opendir
4235if test "$ac_res" != no; then
4236 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7a197a62 4237
d0191583 4238fi
7a197a62 4239
7a197a62 4240else
ec6a6fbe
AK
4241 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
4242$as_echo_n "checking for library containing opendir... " >&6; }
d0191583 4243if test "${ac_cv_search_opendir+set}" = set; then
ec6a6fbe 4244 $as_echo_n "(cached) " >&6
7a197a62 4245else
d0191583
JM
4246 ac_func_search_save_LIBS=$LIBS
4247cat >conftest.$ac_ext <<_ACEOF
4248/* confdefs.h. */
4249_ACEOF
4250cat confdefs.h >>conftest.$ac_ext
4251cat >>conftest.$ac_ext <<_ACEOF
4252/* end confdefs.h. */
7a197a62 4253
d0191583
JM
4254/* Override any GCC internal prototype to avoid an error.
4255 Use char because int might match the return type of a GCC
4256 builtin and then its argument prototype would still apply. */
4257#ifdef __cplusplus
4258extern "C"
4259#endif
4260char opendir ();
4261int
4262main ()
4263{
4264return opendir ();
4265 ;
4266 return 0;
4267}
4268_ACEOF
4269for ac_lib in '' x; do
4270 if test -z "$ac_lib"; then
4271 ac_res="none required"
4272 else
4273 ac_res=-l$ac_lib
4274 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4275 fi
4276 rm -f conftest.$ac_objext conftest$ac_exeext
4277if { (ac_try="$ac_link"
4278case "(($ac_try" in
4279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4280 *) ac_try_echo=$ac_try;;
4281esac
ec6a6fbe
AK
4282eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4283$as_echo "$ac_try_echo") >&5
d0191583
JM
4284 (eval "$ac_link") 2>conftest.er1
4285 ac_status=$?
4286 grep -v '^ *+' conftest.er1 >conftest.err
4287 rm -f conftest.er1
4288 cat conftest.err >&5
ec6a6fbe 4289 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4290 (exit $ac_status); } && {
4291 test -z "$ac_c_werror_flag" ||
4292 test ! -s conftest.err
ec6a6fbe
AK
4293 } && test -s conftest$ac_exeext && {
4294 test "$cross_compiling" = yes ||
4295 $as_test_x conftest$ac_exeext
4296 }; then
d0191583
JM
4297 ac_cv_search_opendir=$ac_res
4298else
ec6a6fbe 4299 $as_echo "$as_me: failed program was:" >&5
d0191583 4300sed 's/^/| /' conftest.$ac_ext >&5
7a197a62
AK
4301
4302
4303fi
4304
ec6a6fbe 4305rm -rf conftest.dSYM
d0191583
JM
4306rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4307 conftest$ac_exeext
4308 if test "${ac_cv_search_opendir+set}" = set; then
4309 break
7a197a62 4310fi
d0191583
JM
4311done
4312if test "${ac_cv_search_opendir+set}" = set; then
4313 :
7a197a62 4314else
d0191583 4315 ac_cv_search_opendir=no
7a197a62 4316fi
d0191583
JM
4317rm conftest.$ac_ext
4318LIBS=$ac_func_search_save_LIBS
4319fi
ec6a6fbe
AK
4320{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4321$as_echo "$ac_cv_search_opendir" >&6; }
d0191583
JM
4322ac_res=$ac_cv_search_opendir
4323if test "$ac_res" != no; then
4324 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7a197a62 4325
7a197a62 4326fi
7a197a62 4327
d0191583 4328fi
7a197a62 4329
ec6a6fbe
AK
4330{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4331$as_echo_n "checking for ANSI C header files... " >&6; }
7a197a62 4332if test "${ac_cv_header_stdc+set}" = set; then
ec6a6fbe 4333 $as_echo_n "(cached) " >&6
7a197a62
AK
4334else
4335 cat >conftest.$ac_ext <<_ACEOF
4336/* confdefs.h. */
4337_ACEOF
4338cat confdefs.h >>conftest.$ac_ext
4339cat >>conftest.$ac_ext <<_ACEOF
4340/* end confdefs.h. */
4341#include <stdlib.h>
4342#include <stdarg.h>
4343#include <string.h>
4344#include <float.h>
4345
4346int
4347main ()
4348{
4349
4350 ;
4351 return 0;
4352}
4353_ACEOF
4354rm -f conftest.$ac_objext
4355if { (ac_try="$ac_compile"
4356case "(($ac_try" in
4357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4358 *) ac_try_echo=$ac_try;;
4359esac
ec6a6fbe
AK
4360eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4361$as_echo "$ac_try_echo") >&5
7a197a62
AK
4362 (eval "$ac_compile") 2>conftest.er1
4363 ac_status=$?
4364 grep -v '^ *+' conftest.er1 >conftest.err
4365 rm -f conftest.er1
4366 cat conftest.err >&5
ec6a6fbe 4367 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4368 (exit $ac_status); } && {
4369 test -z "$ac_c_werror_flag" ||
4370 test ! -s conftest.err
4371 } && test -s conftest.$ac_objext; then
7a197a62
AK
4372 ac_cv_header_stdc=yes
4373else
ec6a6fbe 4374 $as_echo "$as_me: failed program was:" >&5
7a197a62
AK
4375sed 's/^/| /' conftest.$ac_ext >&5
4376
4377 ac_cv_header_stdc=no
4378fi
4379
4380rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4381
4382if test $ac_cv_header_stdc = yes; then
4383 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
ad6254c5 4384 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4385/* confdefs.h. */
4386_ACEOF
4387cat confdefs.h >>conftest.$ac_ext
4388cat >>conftest.$ac_ext <<_ACEOF
4389/* end confdefs.h. */
4390#include <string.h>
8106cdd5 4391
ad6254c5
AK
4392_ACEOF
4393if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4394 $EGREP "memchr" >/dev/null 2>&1; then
4395 :
4396else
4397 ac_cv_header_stdc=no
80992638 4398fi
ad6254c5 4399rm -f conftest*
795ca3e5
AK
4400
4401fi
4402
ad6254c5
AK
4403if test $ac_cv_header_stdc = yes; then
4404 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4405 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4406/* confdefs.h. */
4407_ACEOF
4408cat confdefs.h >>conftest.$ac_ext
4409cat >>conftest.$ac_ext <<_ACEOF
4410/* end confdefs.h. */
80992638 4411#include <stdlib.h>
ad6254c5
AK
4412
4413_ACEOF
80992638 4414if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ad6254c5
AK
4415 $EGREP "free" >/dev/null 2>&1; then
4416 :
795ca3e5 4417else
ad6254c5 4418 ac_cv_header_stdc=no
795ca3e5 4419fi
80992638 4420rm -f conftest*
8106cdd5 4421
795ca3e5
AK
4422fi
4423
ad6254c5
AK
4424if test $ac_cv_header_stdc = yes; then
4425 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4426 if test "$cross_compiling" = yes; then
4427 :
795ca3e5 4428else
ad6254c5 4429 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4430/* confdefs.h. */
4431_ACEOF
4432cat confdefs.h >>conftest.$ac_ext
4433cat >>conftest.$ac_ext <<_ACEOF
4434/* end confdefs.h. */
4435#include <ctype.h>
7a197a62 4436#include <stdlib.h>
ad6254c5
AK
4437#if ((' ' & 0x0FF) == 0x020)
4438# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4439# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4440#else
4441# define ISLOWER(c) \
8a2fc586
AK
4442 (('a' <= (c) && (c) <= 'i') \
4443 || ('j' <= (c) && (c) <= 'r') \
4444 || ('s' <= (c) && (c) <= 'z'))
ad6254c5 4445# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
80992638 4446#endif
ad6254c5
AK
4447
4448#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4449int
4450main ()
4451{
4452 int i;
4453 for (i = 0; i < 256; i++)
4454 if (XOR (islower (i), ISLOWER (i))
8a2fc586 4455 || toupper (i) != TOUPPER (i))
7a197a62
AK
4456 return 2;
4457 return 0;
ad6254c5
AK
4458}
4459_ACEOF
4460rm -f conftest$ac_exeext
7a197a62
AK
4461if { (ac_try="$ac_link"
4462case "(($ac_try" in
4463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4464 *) ac_try_echo=$ac_try;;
4465esac
ec6a6fbe
AK
4466eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4467$as_echo "$ac_try_echo") >&5
7a197a62 4468 (eval "$ac_link") 2>&5
ad6254c5 4469 ac_status=$?
ec6a6fbe 4470 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 4471 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
4472 { (case "(($ac_try" in
4473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4474 *) ac_try_echo=$ac_try;;
4475esac
ec6a6fbe
AK
4476eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4477$as_echo "$ac_try_echo") >&5
7a197a62 4478 (eval "$ac_try") 2>&5
ad6254c5 4479 ac_status=$?
ec6a6fbe 4480 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
4481 (exit $ac_status); }; }; then
4482 :
795ca3e5 4483else
ec6a6fbe
AK
4484 $as_echo "$as_me: program exited with status $ac_status" >&5
4485$as_echo "$as_me: failed program was:" >&5
ad6254c5 4486sed 's/^/| /' conftest.$ac_ext >&5
8106cdd5 4487
ad6254c5
AK
4488( exit $ac_status )
4489ac_cv_header_stdc=no
80992638 4490fi
ec6a6fbe 4491rm -rf conftest.dSYM
7a197a62 4492rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 4493fi
7a197a62
AK
4494
4495
ad6254c5
AK
4496fi
4497fi
ec6a6fbe
AK
4498{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4499$as_echo "$ac_cv_header_stdc" >&6; }
ad6254c5
AK
4500if test $ac_cv_header_stdc = yes; then
4501
4502cat >>confdefs.h <<\_ACEOF
4503#define STDC_HEADERS 1
4504_ACEOF
795ca3e5
AK
4505
4506fi
4507
ec6a6fbe
AK
4508{ $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
4509$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
ad6254c5 4510if test "${ac_cv_header_sys_wait_h+set}" = set; then
ec6a6fbe 4511 $as_echo_n "(cached) " >&6
8106cdd5 4512else
ad6254c5 4513 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4514/* confdefs.h. */
4515_ACEOF
4516cat confdefs.h >>conftest.$ac_ext
4517cat >>conftest.$ac_ext <<_ACEOF
4518/* end confdefs.h. */
80992638 4519#include <sys/types.h>
ad6254c5
AK
4520#include <sys/wait.h>
4521#ifndef WEXITSTATUS
7a197a62 4522# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
ad6254c5
AK
4523#endif
4524#ifndef WIFEXITED
4525# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4526#endif
4527
4528int
4529main ()
4530{
4531 int s;
4532 wait (&s);
4533 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4534 ;
4535 return 0;
4536}
4537_ACEOF
4538rm -f conftest.$ac_objext
7a197a62
AK
4539if { (ac_try="$ac_compile"
4540case "(($ac_try" in
4541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4542 *) ac_try_echo=$ac_try;;
4543esac
ec6a6fbe
AK
4544eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4545$as_echo "$ac_try_echo") >&5
7a197a62 4546 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4547 ac_status=$?
8a2fc586
AK
4548 grep -v '^ *+' conftest.er1 >conftest.err
4549 rm -f conftest.er1
4550 cat conftest.err >&5
ec6a6fbe 4551 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4552 (exit $ac_status); } && {
4553 test -z "$ac_c_werror_flag" ||
4554 test ! -s conftest.err
4555 } && test -s conftest.$ac_objext; then
ad6254c5
AK
4556 ac_cv_header_sys_wait_h=yes
4557else
ec6a6fbe 4558 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
4559sed 's/^/| /' conftest.$ac_ext >&5
4560
7a197a62 4561 ac_cv_header_sys_wait_h=no
8106cdd5 4562fi
7a197a62
AK
4563
4564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
795ca3e5 4565fi
ec6a6fbe
AK
4566{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
4567$as_echo "$ac_cv_header_sys_wait_h" >&6; }
ad6254c5 4568if test $ac_cv_header_sys_wait_h = yes; then
8106cdd5 4569
ad6254c5
AK
4570cat >>confdefs.h <<\_ACEOF
4571#define HAVE_SYS_WAIT_H 1
4572_ACEOF
795ca3e5
AK
4573
4574fi
4575
ec6a6fbe
AK
4576{ $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4577$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
ad6254c5 4578if test "${ac_cv_header_time+set}" = set; then
ec6a6fbe 4579 $as_echo_n "(cached) " >&6
795ca3e5 4580else
ad6254c5 4581 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4582/* confdefs.h. */
4583_ACEOF
4584cat confdefs.h >>conftest.$ac_ext
4585cat >>conftest.$ac_ext <<_ACEOF
4586/* end confdefs.h. */
795ca3e5
AK
4587#include <sys/types.h>
4588#include <sys/time.h>
4589#include <time.h>
ad6254c5
AK
4590
4591int
4592main ()
4593{
4594if ((struct tm *) 0)
4595return 0;
4596 ;
4597 return 0;
4598}
4599_ACEOF
4600rm -f conftest.$ac_objext
7a197a62
AK
4601if { (ac_try="$ac_compile"
4602case "(($ac_try" in
4603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4604 *) ac_try_echo=$ac_try;;
4605esac
ec6a6fbe
AK
4606eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4607$as_echo "$ac_try_echo") >&5
7a197a62 4608 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4609 ac_status=$?
8a2fc586
AK
4610 grep -v '^ *+' conftest.er1 >conftest.err
4611 rm -f conftest.er1
4612 cat conftest.err >&5
ec6a6fbe 4613 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4614 (exit $ac_status); } && {
4615 test -z "$ac_c_werror_flag" ||
4616 test ! -s conftest.err
4617 } && test -s conftest.$ac_objext; then
795ca3e5
AK
4618 ac_cv_header_time=yes
4619else
ec6a6fbe 4620 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
4621sed 's/^/| /' conftest.$ac_ext >&5
4622
7a197a62 4623 ac_cv_header_time=no
795ca3e5 4624fi
7a197a62
AK
4625
4626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
795ca3e5 4627fi
ec6a6fbe
AK
4628{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4629$as_echo "$ac_cv_header_time" >&6; }
80992638 4630if test $ac_cv_header_time = yes; then
ad6254c5
AK
4631
4632cat >>confdefs.h <<\_ACEOF
795ca3e5 4633#define TIME_WITH_SYS_TIME 1
ad6254c5 4634_ACEOF
b896caa1 4635
8106cdd5 4636fi
b896caa1 4637
b896caa1 4638
d0191583
JM
4639# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4650 inttypes.h stdint.h unistd.h
4651do
ec6a6fbe
AK
4652as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4653{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4654$as_echo_n "checking for $ac_header... " >&6; }
d0191583 4655if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 4656 $as_echo_n "(cached) " >&6
d0191583
JM
4657else
4658 cat >conftest.$ac_ext <<_ACEOF
4659/* confdefs.h. */
4660_ACEOF
4661cat confdefs.h >>conftest.$ac_ext
4662cat >>conftest.$ac_ext <<_ACEOF
4663/* end confdefs.h. */
4664$ac_includes_default
4665
4666#include <$ac_header>
4667_ACEOF
4668rm -f conftest.$ac_objext
4669if { (ac_try="$ac_compile"
4670case "(($ac_try" in
4671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4672 *) ac_try_echo=$ac_try;;
4673esac
ec6a6fbe
AK
4674eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4675$as_echo "$ac_try_echo") >&5
d0191583
JM
4676 (eval "$ac_compile") 2>conftest.er1
4677 ac_status=$?
4678 grep -v '^ *+' conftest.er1 >conftest.err
4679 rm -f conftest.er1
4680 cat conftest.err >&5
ec6a6fbe 4681 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4682 (exit $ac_status); } && {
4683 test -z "$ac_c_werror_flag" ||
4684 test ! -s conftest.err
4685 } && test -s conftest.$ac_objext; then
4686 eval "$as_ac_Header=yes"
4687else
ec6a6fbe 4688 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
4689sed 's/^/| /' conftest.$ac_ext >&5
4690
4691 eval "$as_ac_Header=no"
4692fi
4693
4694rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4695fi
ec6a6fbe
AK
4696ac_res=`eval 'as_val=${'$as_ac_Header'}
4697 $as_echo "$as_val"'`
4698 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4699$as_echo "$ac_res" >&6; }
4700as_val=`eval 'as_val=${'$as_ac_Header'}
4701 $as_echo "$as_val"'`
4702 if test "x$as_val" = x""yes; then
d0191583 4703 cat >>confdefs.h <<_ACEOF
ec6a6fbe 4704#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
d0191583
JM
4705_ACEOF
4706
4707fi
4708
4709done
4710
b896caa1 4711
b896caa1
AK
4712
4713
795ca3e5 4714
8106cdd5 4715
80992638 4716
795ca3e5 4717
a38df97f 4718
80992638 4719
d0191583
JM
4720
4721
4722
4723
4724
4725for ac_header in locale.h stddef.h syslog.h sys/file.h sys/time.h assert.h \
4726 libgen.h signal.h sys/mman.h sys/resource.h sys/utsname.h sys/wait.h time.h
ad6254c5 4727do
ec6a6fbe 4728as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
d0191583 4729if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
4730 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4731$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 4732if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 4733 $as_echo_n "(cached) " >&6
d0191583 4734fi
ec6a6fbe
AK
4735ac_res=`eval 'as_val=${'$as_ac_Header'}
4736 $as_echo "$as_val"'`
4737 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4738$as_echo "$ac_res" >&6; }
ad6254c5 4739else
d0191583 4740 # Is the header compilable?
ec6a6fbe
AK
4741{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4742$as_echo_n "checking $ac_header usability... " >&6; }
d0191583 4743cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4744/* confdefs.h. */
4745_ACEOF
4746cat confdefs.h >>conftest.$ac_ext
4747cat >>conftest.$ac_ext <<_ACEOF
4748/* end confdefs.h. */
4749$ac_includes_default
ad6254c5
AK
4750#include <$ac_header>
4751_ACEOF
4752rm -f conftest.$ac_objext
7a197a62
AK
4753if { (ac_try="$ac_compile"
4754case "(($ac_try" in
4755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4756 *) ac_try_echo=$ac_try;;
4757esac
ec6a6fbe
AK
4758eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4759$as_echo "$ac_try_echo") >&5
7a197a62 4760 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4761 ac_status=$?
8a2fc586
AK
4762 grep -v '^ *+' conftest.er1 >conftest.err
4763 rm -f conftest.er1
4764 cat conftest.err >&5
ec6a6fbe 4765 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4766 (exit $ac_status); } && {
4767 test -z "$ac_c_werror_flag" ||
4768 test ! -s conftest.err
4769 } && test -s conftest.$ac_objext; then
d0191583 4770 ac_header_compiler=yes
ad6254c5 4771else
ec6a6fbe 4772 $as_echo "$as_me: failed program was:" >&5
ad6254c5 4773sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 4774
d0191583 4775 ac_header_compiler=no
ad6254c5 4776fi
7a197a62
AK
4777
4778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
4779{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4780$as_echo "$ac_header_compiler" >&6; }
d0191583
JM
4781
4782# Is the header present?
ec6a6fbe
AK
4783{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4784$as_echo_n "checking $ac_header presence... " >&6; }
d0191583
JM
4785cat >conftest.$ac_ext <<_ACEOF
4786/* confdefs.h. */
4787_ACEOF
4788cat confdefs.h >>conftest.$ac_ext
4789cat >>conftest.$ac_ext <<_ACEOF
4790/* end confdefs.h. */
4791#include <$ac_header>
4792_ACEOF
4793if { (ac_try="$ac_cpp conftest.$ac_ext"
4794case "(($ac_try" in
4795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4796 *) ac_try_echo=$ac_try;;
4797esac
ec6a6fbe
AK
4798eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4799$as_echo "$ac_try_echo") >&5
d0191583
JM
4800 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4801 ac_status=$?
4802 grep -v '^ *+' conftest.er1 >conftest.err
4803 rm -f conftest.er1
4804 cat conftest.err >&5
ec6a6fbe 4805 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4806 (exit $ac_status); } >/dev/null && {
4807 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4808 test ! -s conftest.err
4809 }; then
4810 ac_header_preproc=yes
4811else
ec6a6fbe 4812 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
4813sed 's/^/| /' conftest.$ac_ext >&5
4814
4815 ac_header_preproc=no
4816fi
4817
4818rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
4819{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4820$as_echo "$ac_header_preproc" >&6; }
d0191583
JM
4821
4822# So? What about this header?
4823case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4824 yes:no: )
ec6a6fbe
AK
4825 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4826$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4827 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4828$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
d0191583
JM
4829 ac_header_preproc=yes
4830 ;;
4831 no:yes:* )
ec6a6fbe
AK
4832 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4833$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4834 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4835$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4836 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4837$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4838 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4839$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4840 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4841$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4842 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4843$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
d0191583
JM
4844
4845 ;;
4846esac
ec6a6fbe
AK
4847{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4848$as_echo_n "checking for $ac_header... " >&6; }
d0191583 4849if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 4850 $as_echo_n "(cached) " >&6
d0191583
JM
4851else
4852 eval "$as_ac_Header=\$ac_header_preproc"
a38df97f 4853fi
ec6a6fbe
AK
4854ac_res=`eval 'as_val=${'$as_ac_Header'}
4855 $as_echo "$as_val"'`
4856 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4857$as_echo "$ac_res" >&6; }
d0191583
JM
4858
4859fi
ec6a6fbe
AK
4860as_val=`eval 'as_val=${'$as_ac_Header'}
4861 $as_echo "$as_val"'`
4862 if test "x$as_val" = x""yes; then
ad6254c5 4863 cat >>confdefs.h <<_ACEOF
ec6a6fbe 4864#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 4865_ACEOF
a38df97f 4866
d0191583 4867else
ec6a6fbe
AK
4868 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
4869$as_echo "$as_me: error: bailing out" >&2;}
d0191583 4870 { (exit 1); exit 1; }; }
80992638
AK
4871fi
4872
ad6254c5
AK
4873done
4874
7d1552c9 4875
d0191583
JM
4876case "$host_os" in
4877 linux*)
7d1552c9 4878
80992638 4879
5a52dca9 4880
d0191583 4881for ac_header in asm/byteorder.h linux/fs.h malloc.h
ad6254c5 4882do
ec6a6fbe 4883as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 4884if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
4885 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4886$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 4887if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 4888 $as_echo_n "(cached) " >&6
ad6254c5 4889fi
ec6a6fbe
AK
4890ac_res=`eval 'as_val=${'$as_ac_Header'}
4891 $as_echo "$as_val"'`
4892 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4893$as_echo "$ac_res" >&6; }
ad6254c5
AK
4894else
4895 # Is the header compilable?
ec6a6fbe
AK
4896{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4897$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 4898cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4899/* confdefs.h. */
4900_ACEOF
4901cat confdefs.h >>conftest.$ac_ext
4902cat >>conftest.$ac_ext <<_ACEOF
4903/* end confdefs.h. */
4904$ac_includes_default
4905#include <$ac_header>
4906_ACEOF
4907rm -f conftest.$ac_objext
7a197a62
AK
4908if { (ac_try="$ac_compile"
4909case "(($ac_try" in
4910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4911 *) ac_try_echo=$ac_try;;
4912esac
ec6a6fbe
AK
4913eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4914$as_echo "$ac_try_echo") >&5
7a197a62 4915 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4916 ac_status=$?
8a2fc586
AK
4917 grep -v '^ *+' conftest.er1 >conftest.err
4918 rm -f conftest.er1
4919 cat conftest.err >&5
ec6a6fbe 4920 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4921 (exit $ac_status); } && {
4922 test -z "$ac_c_werror_flag" ||
4923 test ! -s conftest.err
4924 } && test -s conftest.$ac_objext; then
fc54be10
AK
4925 ac_header_compiler=yes
4926else
ec6a6fbe 4927 $as_echo "$as_me: failed program was:" >&5
fc54be10
AK
4928sed 's/^/| /' conftest.$ac_ext >&5
4929
4930 ac_header_compiler=no
4931fi
4932
4933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
4934{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4935$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
4936
4937# Is the header present?
ec6a6fbe
AK
4938{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4939$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 4940cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4941/* confdefs.h. */
4942_ACEOF
4943cat confdefs.h >>conftest.$ac_ext
4944cat >>conftest.$ac_ext <<_ACEOF
4945/* end confdefs.h. */
4946#include <$ac_header>
4947_ACEOF
7a197a62
AK
4948if { (ac_try="$ac_cpp conftest.$ac_ext"
4949case "(($ac_try" in
4950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4951 *) ac_try_echo=$ac_try;;
4952esac
ec6a6fbe
AK
4953eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4954$as_echo "$ac_try_echo") >&5
7a197a62 4955 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
4956 ac_status=$?
4957 grep -v '^ *+' conftest.er1 >conftest.err
4958 rm -f conftest.er1
4959 cat conftest.err >&5
ec6a6fbe 4960 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4961 (exit $ac_status); } >/dev/null && {
4962 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4963 test ! -s conftest.err
4964 }; then
ad6254c5
AK
4965 ac_header_preproc=yes
4966else
ec6a6fbe 4967 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
4968sed 's/^/| /' conftest.$ac_ext >&5
4969
4970 ac_header_preproc=no
4971fi
7a197a62 4972
ad6254c5 4973rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
4974{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4975$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
4976
4977# So? What about this header?
8a2fc586
AK
4978case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4979 yes:no: )
ec6a6fbe
AK
4980 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4981$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4982 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4983$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 4984 ac_header_preproc=yes
ad6254c5 4985 ;;
8a2fc586 4986 no:yes:* )
ec6a6fbe
AK
4987 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4988$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4989 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4990$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4991 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4992$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4993 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4994$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4995 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4996$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4997 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4998$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 4999
ad6254c5
AK
5000 ;;
5001esac
ec6a6fbe
AK
5002{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5003$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 5004if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 5005 $as_echo_n "(cached) " >&6
ad6254c5 5006else
8a2fc586 5007 eval "$as_ac_Header=\$ac_header_preproc"
b896caa1 5008fi
ec6a6fbe
AK
5009ac_res=`eval 'as_val=${'$as_ac_Header'}
5010 $as_echo "$as_val"'`
5011 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5012$as_echo "$ac_res" >&6; }
ad6254c5
AK
5013
5014fi
ec6a6fbe
AK
5015as_val=`eval 'as_val=${'$as_ac_Header'}
5016 $as_echo "$as_val"'`
5017 if test "x$as_val" = x""yes; then
ad6254c5 5018 cat >>confdefs.h <<_ACEOF
ec6a6fbe 5019#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 5020_ACEOF
b896caa1 5021
d8ac0fbc 5022else
ec6a6fbe
AK
5023 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5024$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 5025 { (exit 1); exit 1; }; }
80992638
AK
5026fi
5027
ad6254c5 5028done
d0191583
JM
5029 ;;
5030 darwin*)
d8ac0fbc 5031
d8ac0fbc 5032
d0191583 5033for ac_header in machine/endian.h sys/disk.h
ad6254c5 5034do
ec6a6fbe 5035as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 5036if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
5037 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5038$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 5039if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 5040 $as_echo_n "(cached) " >&6
ad6254c5 5041fi
ec6a6fbe
AK
5042ac_res=`eval 'as_val=${'$as_ac_Header'}
5043 $as_echo "$as_val"'`
5044 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5045$as_echo "$ac_res" >&6; }
ad6254c5
AK
5046else
5047 # Is the header compilable?
ec6a6fbe
AK
5048{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5049$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 5050cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5051/* confdefs.h. */
5052_ACEOF
5053cat confdefs.h >>conftest.$ac_ext
5054cat >>conftest.$ac_ext <<_ACEOF
5055/* end confdefs.h. */
5056$ac_includes_default
5057#include <$ac_header>
5058_ACEOF
5059rm -f conftest.$ac_objext
7a197a62
AK
5060if { (ac_try="$ac_compile"
5061case "(($ac_try" in
5062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5063 *) ac_try_echo=$ac_try;;
5064esac
ec6a6fbe
AK
5065eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5066$as_echo "$ac_try_echo") >&5
7a197a62 5067 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5068 ac_status=$?
8a2fc586
AK
5069 grep -v '^ *+' conftest.er1 >conftest.err
5070 rm -f conftest.er1
5071 cat conftest.err >&5
ec6a6fbe 5072 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5073 (exit $ac_status); } && {
5074 test -z "$ac_c_werror_flag" ||
5075 test ! -s conftest.err
5076 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5077 ac_header_compiler=yes
5078else
ec6a6fbe 5079 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5080sed 's/^/| /' conftest.$ac_ext >&5
5081
7a197a62 5082 ac_header_compiler=no
ad6254c5 5083fi
7a197a62
AK
5084
5085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
5086{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5087$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
5088
5089# Is the header present?
ec6a6fbe
AK
5090{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5091$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 5092cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5093/* confdefs.h. */
5094_ACEOF
5095cat confdefs.h >>conftest.$ac_ext
5096cat >>conftest.$ac_ext <<_ACEOF
5097/* end confdefs.h. */
5098#include <$ac_header>
5099_ACEOF
7a197a62
AK
5100if { (ac_try="$ac_cpp conftest.$ac_ext"
5101case "(($ac_try" in
5102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5103 *) ac_try_echo=$ac_try;;
5104esac
ec6a6fbe
AK
5105eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5106$as_echo "$ac_try_echo") >&5
7a197a62 5107 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
5108 ac_status=$?
5109 grep -v '^ *+' conftest.er1 >conftest.err
5110 rm -f conftest.er1
5111 cat conftest.err >&5
ec6a6fbe 5112 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5113 (exit $ac_status); } >/dev/null && {
5114 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5115 test ! -s conftest.err
5116 }; then
ad6254c5
AK
5117 ac_header_preproc=yes
5118else
ec6a6fbe 5119 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5120sed 's/^/| /' conftest.$ac_ext >&5
5121
5122 ac_header_preproc=no
5123fi
7a197a62 5124
ad6254c5 5125rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
5126{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5127$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
5128
5129# So? What about this header?
8a2fc586
AK
5130case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5131 yes:no: )
ec6a6fbe
AK
5132 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5133$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5134 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5135$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 5136 ac_header_preproc=yes
ad6254c5 5137 ;;
8a2fc586 5138 no:yes:* )
ec6a6fbe
AK
5139 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5140$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5141 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5142$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5143 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5144$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5145 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5146$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5147 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5148$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5149 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5150$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 5151
ad6254c5
AK
5152 ;;
5153esac
ec6a6fbe
AK
5154{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5155$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 5156if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 5157 $as_echo_n "(cached) " >&6
ad6254c5 5158else
8a2fc586 5159 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 5160fi
ec6a6fbe
AK
5161ac_res=`eval 'as_val=${'$as_ac_Header'}
5162 $as_echo "$as_val"'`
5163 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5164$as_echo "$ac_res" >&6; }
ad6254c5
AK
5165
5166fi
ec6a6fbe
AK
5167as_val=`eval 'as_val=${'$as_ac_Header'}
5168 $as_echo "$as_val"'`
5169 if test "x$as_val" = x""yes; then
ad6254c5 5170 cat >>confdefs.h <<_ACEOF
ec6a6fbe 5171#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 5172_ACEOF
4922197a 5173
4922197a 5174else
ec6a6fbe
AK
5175 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5176$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 5177 { (exit 1); exit 1; }; }
80992638
AK
5178fi
5179
ad6254c5 5180done
d0191583
JM
5181 ;;
5182esac
4922197a 5183
4922197a 5184
4922197a 5185
ad6254c5
AK
5186
5187
d0191583
JM
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200for ac_header in ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h \
5201 stdarg.h stdio.h stdlib.h string.h sys/ioctl.h sys/param.h sys/stat.h \
5202 sys/types.h unistd.h
ad6254c5 5203do
ec6a6fbe 5204as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 5205if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
5206 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5207$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 5208if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 5209 $as_echo_n "(cached) " >&6
ad6254c5 5210fi
ec6a6fbe
AK
5211ac_res=`eval 'as_val=${'$as_ac_Header'}
5212 $as_echo "$as_val"'`
5213 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5214$as_echo "$ac_res" >&6; }
795ca3e5 5215else
ad6254c5 5216 # Is the header compilable?
ec6a6fbe
AK
5217{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5218$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 5219cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5220/* confdefs.h. */
5221_ACEOF
5222cat confdefs.h >>conftest.$ac_ext
5223cat >>conftest.$ac_ext <<_ACEOF
5224/* end confdefs.h. */
5225$ac_includes_default
5226#include <$ac_header>
5227_ACEOF
5228rm -f conftest.$ac_objext
7a197a62
AK
5229if { (ac_try="$ac_compile"
5230case "(($ac_try" in
5231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5232 *) ac_try_echo=$ac_try;;
5233esac
ec6a6fbe
AK
5234eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5235$as_echo "$ac_try_echo") >&5
7a197a62 5236 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5237 ac_status=$?
8a2fc586
AK
5238 grep -v '^ *+' conftest.er1 >conftest.err
5239 rm -f conftest.er1
5240 cat conftest.err >&5
ec6a6fbe 5241 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5242 (exit $ac_status); } && {
5243 test -z "$ac_c_werror_flag" ||
5244 test ! -s conftest.err
5245 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5246 ac_header_compiler=yes
5247else
ec6a6fbe 5248 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5249sed 's/^/| /' conftest.$ac_ext >&5
5250
7a197a62 5251 ac_header_compiler=no
ad6254c5 5252fi
7a197a62
AK
5253
5254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
5255{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5256$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
5257
5258# Is the header present?
ec6a6fbe
AK
5259{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5260$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 5261cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5262/* confdefs.h. */
5263_ACEOF
5264cat confdefs.h >>conftest.$ac_ext
5265cat >>conftest.$ac_ext <<_ACEOF
5266/* end confdefs.h. */
5267#include <$ac_header>
5268_ACEOF
7a197a62
AK
5269if { (ac_try="$ac_cpp conftest.$ac_ext"
5270case "(($ac_try" in
5271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5272 *) ac_try_echo=$ac_try;;
5273esac
ec6a6fbe
AK
5274eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5275$as_echo "$ac_try_echo") >&5
7a197a62 5276 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
5277 ac_status=$?
5278 grep -v '^ *+' conftest.er1 >conftest.err
5279 rm -f conftest.er1
5280 cat conftest.err >&5
ec6a6fbe 5281 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5282 (exit $ac_status); } >/dev/null && {
5283 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5284 test ! -s conftest.err
5285 }; then
ad6254c5
AK
5286 ac_header_preproc=yes
5287else
ec6a6fbe 5288 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5289sed 's/^/| /' conftest.$ac_ext >&5
5290
5291 ac_header_preproc=no
5292fi
7a197a62 5293
ad6254c5 5294rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
5295{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5296$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
5297
5298# So? What about this header?
8a2fc586
AK
5299case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5300 yes:no: )
ec6a6fbe
AK
5301 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5302$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5303 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5304$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 5305 ac_header_preproc=yes
ad6254c5 5306 ;;
8a2fc586 5307 no:yes:* )
ec6a6fbe
AK
5308 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5309$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5310 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5311$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5312 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5313$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5314 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5315$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5316 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5317$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5318 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5319$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 5320
ad6254c5
AK
5321 ;;
5322esac
ec6a6fbe
AK
5323{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5324$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 5325if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 5326 $as_echo_n "(cached) " >&6
ad6254c5 5327else
8a2fc586 5328 eval "$as_ac_Header=\$ac_header_preproc"
80992638 5329fi
ec6a6fbe
AK
5330ac_res=`eval 'as_val=${'$as_ac_Header'}
5331 $as_echo "$as_val"'`
5332 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5333$as_echo "$ac_res" >&6; }
80992638 5334
ad6254c5 5335fi
ec6a6fbe
AK
5336as_val=`eval 'as_val=${'$as_ac_Header'}
5337 $as_echo "$as_val"'`
5338 if test "x$as_val" = x""yes; then
ad6254c5 5339 cat >>confdefs.h <<_ACEOF
ec6a6fbe 5340#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 5341_ACEOF
795ca3e5 5342
795ca3e5 5343else
ec6a6fbe
AK
5344 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5345$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 5346 { (exit 1); exit 1; }; }
80992638
AK
5347fi
5348
ad6254c5 5349done
ad6254c5 5350
795ca3e5 5351
d0191583
JM
5352
5353for ac_header in termios.h sys/statvfs.h
ad6254c5 5354do
ec6a6fbe 5355as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 5356if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
5357 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5358$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 5359if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 5360 $as_echo_n "(cached) " >&6
ad6254c5 5361fi
ec6a6fbe
AK
5362ac_res=`eval 'as_val=${'$as_ac_Header'}
5363 $as_echo "$as_val"'`
5364 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5365$as_echo "$ac_res" >&6; }
ad6254c5
AK
5366else
5367 # Is the header compilable?
ec6a6fbe
AK
5368{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5369$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 5370cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5371/* confdefs.h. */
5372_ACEOF
5373cat confdefs.h >>conftest.$ac_ext
5374cat >>conftest.$ac_ext <<_ACEOF
5375/* end confdefs.h. */
5376$ac_includes_default
5377#include <$ac_header>
5378_ACEOF
5379rm -f conftest.$ac_objext
7a197a62
AK
5380if { (ac_try="$ac_compile"
5381case "(($ac_try" in
5382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5383 *) ac_try_echo=$ac_try;;
5384esac
ec6a6fbe
AK
5385eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5386$as_echo "$ac_try_echo") >&5
7a197a62 5387 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5388 ac_status=$?
8a2fc586
AK
5389 grep -v '^ *+' conftest.er1 >conftest.err
5390 rm -f conftest.er1
5391 cat conftest.err >&5
ec6a6fbe 5392 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5393 (exit $ac_status); } && {
5394 test -z "$ac_c_werror_flag" ||
5395 test ! -s conftest.err
5396 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5397 ac_header_compiler=yes
5398else
ec6a6fbe 5399 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5400sed 's/^/| /' conftest.$ac_ext >&5
5401
7a197a62 5402 ac_header_compiler=no
ad6254c5 5403fi
7a197a62
AK
5404
5405rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
5406{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5407$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
5408
5409# Is the header present?
ec6a6fbe
AK
5410{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5411$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 5412cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5413/* confdefs.h. */
5414_ACEOF
5415cat confdefs.h >>conftest.$ac_ext
5416cat >>conftest.$ac_ext <<_ACEOF
5417/* end confdefs.h. */
5418#include <$ac_header>
5419_ACEOF
7a197a62
AK
5420if { (ac_try="$ac_cpp conftest.$ac_ext"
5421case "(($ac_try" in
5422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5423 *) ac_try_echo=$ac_try;;
5424esac
ec6a6fbe
AK
5425eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5426$as_echo "$ac_try_echo") >&5
7a197a62 5427 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
5428 ac_status=$?
5429 grep -v '^ *+' conftest.er1 >conftest.err
5430 rm -f conftest.er1
5431 cat conftest.err >&5
ec6a6fbe 5432 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5433 (exit $ac_status); } >/dev/null && {
5434 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5435 test ! -s conftest.err
5436 }; then
ad6254c5
AK
5437 ac_header_preproc=yes
5438else
ec6a6fbe 5439 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5440sed 's/^/| /' conftest.$ac_ext >&5
5441
5442 ac_header_preproc=no
5443fi
7a197a62 5444
ad6254c5 5445rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
5446{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5447$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
5448
5449# So? What about this header?
8a2fc586
AK
5450case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5451 yes:no: )
ec6a6fbe
AK
5452 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5453$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5454 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5455$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 5456 ac_header_preproc=yes
ad6254c5 5457 ;;
8a2fc586 5458 no:yes:* )
ec6a6fbe
AK
5459 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5460$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5461 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5462$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5463 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5464$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5465 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5466$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5467 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5468$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5469 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5470$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 5471
ad6254c5
AK
5472 ;;
5473esac
ec6a6fbe
AK
5474{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5475$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 5476if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 5477 $as_echo_n "(cached) " >&6
ad6254c5 5478else
8a2fc586 5479 eval "$as_ac_Header=\$ac_header_preproc"
b896caa1 5480fi
ec6a6fbe
AK
5481ac_res=`eval 'as_val=${'$as_ac_Header'}
5482 $as_echo "$as_val"'`
5483 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5484$as_echo "$ac_res" >&6; }
b896caa1 5485
ad6254c5 5486fi
ec6a6fbe
AK
5487as_val=`eval 'as_val=${'$as_ac_Header'}
5488 $as_echo "$as_val"'`
5489 if test "x$as_val" = x""yes; then
ad6254c5 5490 cat >>confdefs.h <<_ACEOF
ec6a6fbe 5491#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
5492_ACEOF
5493
80992638
AK
5494fi
5495
ad6254c5 5496done
d0191583 5497
d3c8211f 5498
80992638 5499################################################################################
ec6a6fbe
AK
5500{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5501$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
ad6254c5 5502if test "${ac_cv_c_const+set}" = set; then
ec6a6fbe 5503 $as_echo_n "(cached) " >&6
d3c8211f 5504else
ad6254c5 5505 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5506/* confdefs.h. */
5507_ACEOF
5508cat confdefs.h >>conftest.$ac_ext
5509cat >>conftest.$ac_ext <<_ACEOF
5510/* end confdefs.h. */
5511
5512int
5513main ()
5514{
5515/* FIXME: Include the comments suggested by Paul. */
5516#ifndef __cplusplus
5517 /* Ultrix mips cc rejects this. */
5518 typedef int charset[2];
25fbec5b 5519 const charset cs;
ad6254c5 5520 /* SunOS 4.1.1 cc rejects this. */
25fbec5b
AK
5521 char const *const *pcpcc;
5522 char **ppc;
ad6254c5
AK
5523 /* NEC SVR4.0.2 mips cc rejects this. */
5524 struct point {int x, y;};
5525 static struct point const zero = {0,0};
5526 /* AIX XL C 1.02.0.0 rejects this.
5527 It does not let you subtract one const X* pointer from another in
5528 an arm of an if-expression whose if-part is not a constant
5529 expression */
5530 const char *g = "string";
25fbec5b 5531 pcpcc = &g + (g ? g-g : 0);
ad6254c5 5532 /* HPUX 7.0 cc rejects these. */
25fbec5b
AK
5533 ++pcpcc;
5534 ppc = (char**) pcpcc;
5535 pcpcc = (char const *const *) ppc;
ad6254c5
AK
5536 { /* SCO 3.2v4 cc rejects this. */
5537 char *t;
5538 char const *s = 0 ? (char *) 0 : (char const *) 0;
5539
5540 *t++ = 0;
7a197a62 5541 if (s) return 0;
ad6254c5
AK
5542 }
5543 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5544 int x[] = {25, 17};
5545 const int *foo = &x[0];
5546 ++foo;
5547 }
5548 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5549 typedef const int *iptr;
5550 iptr p = 0;
5551 ++p;
5552 }
5553 { /* AIX XL C 1.02.0.0 rejects this saying
5554 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5555 struct s { int j; const int *ap[3]; };
5556 struct s *b; b->j = 5;
5557 }
5558 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5559 const int foo = 10;
7a197a62 5560 if (!foo) return 0;
ad6254c5 5561 }
25fbec5b 5562 return !cs[0] && !zero.x;
ad6254c5
AK
5563#endif
5564
5565 ;
5566 return 0;
5567}
5568_ACEOF
5569rm -f conftest.$ac_objext
7a197a62
AK
5570if { (ac_try="$ac_compile"
5571case "(($ac_try" in
5572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5573 *) ac_try_echo=$ac_try;;
5574esac
ec6a6fbe
AK
5575eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5576$as_echo "$ac_try_echo") >&5
7a197a62 5577 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5578 ac_status=$?
8a2fc586
AK
5579 grep -v '^ *+' conftest.er1 >conftest.err
5580 rm -f conftest.er1
5581 cat conftest.err >&5
ec6a6fbe 5582 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5583 (exit $ac_status); } && {
5584 test -z "$ac_c_werror_flag" ||
5585 test ! -s conftest.err
5586 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5587 ac_cv_c_const=yes
5588else
ec6a6fbe 5589 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5590sed 's/^/| /' conftest.$ac_ext >&5
5591
7a197a62 5592 ac_cv_c_const=no
ad6254c5 5593fi
7a197a62
AK
5594
5595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
80992638 5596fi
ec6a6fbe
AK
5597{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5598$as_echo "$ac_cv_c_const" >&6; }
ad6254c5 5599if test $ac_cv_c_const = no; then
80992638 5600
ad6254c5 5601cat >>confdefs.h <<\_ACEOF
ec6a6fbe 5602#define const /**/
ad6254c5 5603_ACEOF
80992638 5604
d3c8211f 5605fi
d3c8211f 5606
ec6a6fbe
AK
5607{ $as_echo "$as_me:$LINENO: checking for inline" >&5
5608$as_echo_n "checking for inline... " >&6; }
ad6254c5 5609if test "${ac_cv_c_inline+set}" = set; then
ec6a6fbe 5610 $as_echo_n "(cached) " >&6
8ef2b021 5611else
ad6254c5
AK
5612 ac_cv_c_inline=no
5613for ac_kw in inline __inline__ __inline; do
5614 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5615/* confdefs.h. */
5616_ACEOF
5617cat confdefs.h >>conftest.$ac_ext
5618cat >>conftest.$ac_ext <<_ACEOF
5619/* end confdefs.h. */
5620#ifndef __cplusplus
5621typedef int foo_t;
5622static $ac_kw foo_t static_foo () {return 0; }
5623$ac_kw foo_t foo () {return 0; }
5624#endif
80992638 5625
ad6254c5
AK
5626_ACEOF
5627rm -f conftest.$ac_objext
7a197a62
AK
5628if { (ac_try="$ac_compile"
5629case "(($ac_try" in
5630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5631 *) ac_try_echo=$ac_try;;
5632esac
ec6a6fbe
AK
5633eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5634$as_echo "$ac_try_echo") >&5
7a197a62 5635 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5636 ac_status=$?
8a2fc586
AK
5637 grep -v '^ *+' conftest.er1 >conftest.err
5638 rm -f conftest.er1
5639 cat conftest.err >&5
ec6a6fbe 5640 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5641 (exit $ac_status); } && {
5642 test -z "$ac_c_werror_flag" ||
5643 test ! -s conftest.err
5644 } && test -s conftest.$ac_objext; then
7a197a62 5645 ac_cv_c_inline=$ac_kw
ad6254c5 5646else
ec6a6fbe 5647 $as_echo "$as_me: failed program was:" >&5
ad6254c5 5648sed 's/^/| /' conftest.$ac_ext >&5
8ef2b021 5649
7a197a62 5650
8ce0cbda 5651fi
7a197a62
AK
5652
5653rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5654 test "$ac_cv_c_inline" != no && break
ad6254c5 5655done
8ce0cbda 5656
8ce0cbda 5657fi
ec6a6fbe
AK
5658{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5659$as_echo "$ac_cv_c_inline" >&6; }
8a2fc586
AK
5660
5661
ad6254c5
AK
5662case $ac_cv_c_inline in
5663 inline | yes) ;;
8a2fc586
AK
5664 *)
5665 case $ac_cv_c_inline in
5666 no) ac_val=;;
5667 *) ac_val=$ac_cv_c_inline;;
5668 esac
5669 cat >>confdefs.h <<_ACEOF
5670#ifndef __cplusplus
5671#define inline $ac_val
5672#endif
c1c065a3 5673_ACEOF
d0191583
JM
5674 ;;
5675esac
5676
ec6a6fbe
AK
5677{ $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
5678$as_echo_n "checking for struct stat.st_rdev... " >&6; }
d0191583 5679if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
ec6a6fbe 5680 $as_echo_n "(cached) " >&6
d0191583
JM
5681else
5682 cat >conftest.$ac_ext <<_ACEOF
5683/* confdefs.h. */
5684_ACEOF
5685cat confdefs.h >>conftest.$ac_ext
5686cat >>conftest.$ac_ext <<_ACEOF
5687/* end confdefs.h. */
5688$ac_includes_default
5689int
5690main ()
5691{
5692static struct stat ac_aggr;
5693if (ac_aggr.st_rdev)
5694return 0;
5695 ;
5696 return 0;
5697}
5698_ACEOF
5699rm -f conftest.$ac_objext
5700if { (ac_try="$ac_compile"
5701case "(($ac_try" in
5702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5703 *) ac_try_echo=$ac_try;;
5704esac
ec6a6fbe
AK
5705eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5706$as_echo "$ac_try_echo") >&5
5707 (eval "$ac_compile") 2>conftest.er1
5708 ac_status=$?
5709 grep -v '^ *+' conftest.er1 >conftest.err
5710 rm -f conftest.er1
5711 cat conftest.err >&5
5712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5713 (exit $ac_status); } && {
5714 test -z "$ac_c_werror_flag" ||
5715 test ! -s conftest.err
5716 } && test -s conftest.$ac_objext; then
5717 ac_cv_member_struct_stat_st_rdev=yes
5718else
5719 $as_echo "$as_me: failed program was:" >&5
5720sed 's/^/| /' conftest.$ac_ext >&5
5721
5722 cat >conftest.$ac_ext <<_ACEOF
5723/* confdefs.h. */
5724_ACEOF
5725cat confdefs.h >>conftest.$ac_ext
5726cat >>conftest.$ac_ext <<_ACEOF
5727/* end confdefs.h. */
5728$ac_includes_default
5729int
5730main ()
5731{
5732static struct stat ac_aggr;
5733if (sizeof ac_aggr.st_rdev)
5734return 0;
5735 ;
5736 return 0;
5737}
5738_ACEOF
5739rm -f conftest.$ac_objext
5740if { (ac_try="$ac_compile"
5741case "(($ac_try" in
5742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5743 *) ac_try_echo=$ac_try;;
5744esac
5745eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5746$as_echo "$ac_try_echo") >&5
5747 (eval "$ac_compile") 2>conftest.er1
5748 ac_status=$?
5749 grep -v '^ *+' conftest.er1 >conftest.err
5750 rm -f conftest.er1
5751 cat conftest.err >&5
5752 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5753 (exit $ac_status); } && {
5754 test -z "$ac_c_werror_flag" ||
5755 test ! -s conftest.err
5756 } && test -s conftest.$ac_objext; then
5757 ac_cv_member_struct_stat_st_rdev=yes
5758else
5759 $as_echo "$as_me: failed program was:" >&5
5760sed 's/^/| /' conftest.$ac_ext >&5
5761
5762 ac_cv_member_struct_stat_st_rdev=no
5763fi
5764
5765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5766fi
5767
5768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5769fi
5770{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
5771$as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; }
5772if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then
5773
5774cat >>confdefs.h <<_ACEOF
5775#define HAVE_STRUCT_STAT_ST_RDEV 1
5776_ACEOF
5777
5778
5779fi
5780
5781{ $as_echo "$as_me:$LINENO: checking for off_t" >&5
5782$as_echo_n "checking for off_t... " >&6; }
5783if test "${ac_cv_type_off_t+set}" = set; then
5784 $as_echo_n "(cached) " >&6
5785else
5786 ac_cv_type_off_t=no
5787cat >conftest.$ac_ext <<_ACEOF
5788/* confdefs.h. */
5789_ACEOF
5790cat confdefs.h >>conftest.$ac_ext
5791cat >>conftest.$ac_ext <<_ACEOF
5792/* end confdefs.h. */
5793$ac_includes_default
5794int
5795main ()
5796{
5797if (sizeof (off_t))
5798 return 0;
5799 ;
5800 return 0;
5801}
5802_ACEOF
5803rm -f conftest.$ac_objext
5804if { (ac_try="$ac_compile"
5805case "(($ac_try" in
5806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5807 *) ac_try_echo=$ac_try;;
5808esac
5809eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5810$as_echo "$ac_try_echo") >&5
5811 (eval "$ac_compile") 2>conftest.er1
5812 ac_status=$?
5813 grep -v '^ *+' conftest.er1 >conftest.err
5814 rm -f conftest.er1
5815 cat conftest.err >&5
5816 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5817 (exit $ac_status); } && {
5818 test -z "$ac_c_werror_flag" ||
5819 test ! -s conftest.err
5820 } && test -s conftest.$ac_objext; then
5821 cat >conftest.$ac_ext <<_ACEOF
5822/* confdefs.h. */
5823_ACEOF
5824cat confdefs.h >>conftest.$ac_ext
5825cat >>conftest.$ac_ext <<_ACEOF
5826/* end confdefs.h. */
5827$ac_includes_default
5828int
5829main ()
5830{
5831if (sizeof ((off_t)))
5832 return 0;
5833 ;
5834 return 0;
5835}
5836_ACEOF
5837rm -f conftest.$ac_objext
5838if { (ac_try="$ac_compile"
5839case "(($ac_try" in
5840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5841 *) ac_try_echo=$ac_try;;
5842esac
5843eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5844$as_echo "$ac_try_echo") >&5
5845 (eval "$ac_compile") 2>conftest.er1
5846 ac_status=$?
5847 grep -v '^ *+' conftest.er1 >conftest.err
5848 rm -f conftest.er1
5849 cat conftest.err >&5
5850 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5851 (exit $ac_status); } && {
5852 test -z "$ac_c_werror_flag" ||
5853 test ! -s conftest.err
5854 } && test -s conftest.$ac_objext; then
5855 :
5856else
5857 $as_echo "$as_me: failed program was:" >&5
5858sed 's/^/| /' conftest.$ac_ext >&5
5859
5860 ac_cv_type_off_t=yes
5861fi
5862
5863rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5864else
5865 $as_echo "$as_me: failed program was:" >&5
5866sed 's/^/| /' conftest.$ac_ext >&5
5867
5868
5869fi
5870
5871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5872fi
5873{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5874$as_echo "$ac_cv_type_off_t" >&6; }
5875if test "x$ac_cv_type_off_t" = x""yes; then
5876 :
5877else
5878
5879cat >>confdefs.h <<_ACEOF
5880#define off_t long int
5881_ACEOF
5882
5883fi
5884
5885{ $as_echo "$as_me:$LINENO: checking for pid_t" >&5
5886$as_echo_n "checking for pid_t... " >&6; }
5887if test "${ac_cv_type_pid_t+set}" = set; then
5888 $as_echo_n "(cached) " >&6
5889else
5890 ac_cv_type_pid_t=no
5891cat >conftest.$ac_ext <<_ACEOF
5892/* confdefs.h. */
5893_ACEOF
5894cat confdefs.h >>conftest.$ac_ext
5895cat >>conftest.$ac_ext <<_ACEOF
5896/* end confdefs.h. */
5897$ac_includes_default
5898int
5899main ()
5900{
5901if (sizeof (pid_t))
5902 return 0;
5903 ;
5904 return 0;
5905}
5906_ACEOF
5907rm -f conftest.$ac_objext
5908if { (ac_try="$ac_compile"
5909case "(($ac_try" in
5910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5911 *) ac_try_echo=$ac_try;;
5912esac
5913eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5914$as_echo "$ac_try_echo") >&5
d0191583
JM
5915 (eval "$ac_compile") 2>conftest.er1
5916 ac_status=$?
5917 grep -v '^ *+' conftest.er1 >conftest.err
5918 rm -f conftest.er1
5919 cat conftest.err >&5
ec6a6fbe 5920 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
5921 (exit $ac_status); } && {
5922 test -z "$ac_c_werror_flag" ||
5923 test ! -s conftest.err
5924 } && test -s conftest.$ac_objext; then
ec6a6fbe 5925 cat >conftest.$ac_ext <<_ACEOF
d0191583
JM
5926/* confdefs.h. */
5927_ACEOF
5928cat confdefs.h >>conftest.$ac_ext
5929cat >>conftest.$ac_ext <<_ACEOF
5930/* end confdefs.h. */
5931$ac_includes_default
5932int
5933main ()
5934{
ec6a6fbe
AK
5935if (sizeof ((pid_t)))
5936 return 0;
d0191583
JM
5937 ;
5938 return 0;
5939}
5940_ACEOF
5941rm -f conftest.$ac_objext
5942if { (ac_try="$ac_compile"
5943case "(($ac_try" in
5944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5945 *) ac_try_echo=$ac_try;;
5946esac
ec6a6fbe
AK
5947eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5948$as_echo "$ac_try_echo") >&5
d0191583
JM
5949 (eval "$ac_compile") 2>conftest.er1
5950 ac_status=$?
5951 grep -v '^ *+' conftest.er1 >conftest.err
5952 rm -f conftest.er1
5953 cat conftest.err >&5
ec6a6fbe 5954 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
5955 (exit $ac_status); } && {
5956 test -z "$ac_c_werror_flag" ||
5957 test ! -s conftest.err
5958 } && test -s conftest.$ac_objext; then
ec6a6fbe 5959 :
d0191583 5960else
ec6a6fbe 5961 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
5962sed 's/^/| /' conftest.$ac_ext >&5
5963
ec6a6fbe 5964 ac_cv_type_pid_t=yes
d0191583
JM
5965fi
5966
5967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
5968else
5969 $as_echo "$as_me: failed program was:" >&5
5970sed 's/^/| /' conftest.$ac_ext >&5
5971
5972
d0191583
JM
5973fi
5974
5975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5976fi
ec6a6fbe
AK
5977{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
5978$as_echo "$ac_cv_type_pid_t" >&6; }
5979if test "x$ac_cv_type_pid_t" = x""yes; then
5980 :
5981else
d0191583
JM
5982
5983cat >>confdefs.h <<_ACEOF
ec6a6fbe 5984#define pid_t int
d0191583
JM
5985_ACEOF
5986
d0191583 5987fi
8ce0cbda 5988
ec6a6fbe
AK
5989{ $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5990$as_echo_n "checking return type of signal handlers... " >&6; }
5991if test "${ac_cv_type_signal+set}" = set; then
5992 $as_echo_n "(cached) " >&6
ad6254c5 5993else
b145d876
ZK
5994 cat >conftest.$ac_ext <<_ACEOF
5995/* confdefs.h. */
5996_ACEOF
5997cat confdefs.h >>conftest.$ac_ext
5998cat >>conftest.$ac_ext <<_ACEOF
5999/* end confdefs.h. */
ec6a6fbe
AK
6000#include <sys/types.h>
6001#include <signal.h>
6002
b145d876
ZK
6003int
6004main ()
6005{
ec6a6fbe 6006return *(signal (0, 0)) (0) == 1;
ad6254c5
AK
6007 ;
6008 return 0;
6009}
6010_ACEOF
6011rm -f conftest.$ac_objext
7a197a62
AK
6012if { (ac_try="$ac_compile"
6013case "(($ac_try" in
6014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6015 *) ac_try_echo=$ac_try;;
6016esac
ec6a6fbe
AK
6017eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6018$as_echo "$ac_try_echo") >&5
7a197a62 6019 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6020 ac_status=$?
8a2fc586
AK
6021 grep -v '^ *+' conftest.er1 >conftest.err
6022 rm -f conftest.er1
6023 cat conftest.err >&5
ec6a6fbe 6024 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6025 (exit $ac_status); } && {
6026 test -z "$ac_c_werror_flag" ||
6027 test ! -s conftest.err
6028 } && test -s conftest.$ac_objext; then
ec6a6fbe 6029 ac_cv_type_signal=int
b145d876 6030else
ec6a6fbe 6031 $as_echo "$as_me: failed program was:" >&5
b145d876
ZK
6032sed 's/^/| /' conftest.$ac_ext >&5
6033
ec6a6fbe 6034 ac_cv_type_signal=void
ad6254c5 6035fi
b145d876
ZK
6036
6037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6038fi
ec6a6fbe
AK
6039{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6040$as_echo "$ac_cv_type_signal" >&6; }
80992638 6041
ad6254c5 6042cat >>confdefs.h <<_ACEOF
ec6a6fbe 6043#define RETSIGTYPE $ac_cv_type_signal
ad6254c5 6044_ACEOF
199e490e 6045
b896caa1 6046
ec6a6fbe
AK
6047{ $as_echo "$as_me:$LINENO: checking for size_t" >&5
6048$as_echo_n "checking for size_t... " >&6; }
6049if test "${ac_cv_type_size_t+set}" = set; then
6050 $as_echo_n "(cached) " >&6
ad6254c5 6051else
ec6a6fbe
AK
6052 ac_cv_type_size_t=no
6053cat >conftest.$ac_ext <<_ACEOF
b145d876
ZK
6054/* confdefs.h. */
6055_ACEOF
6056cat confdefs.h >>conftest.$ac_ext
6057cat >>conftest.$ac_ext <<_ACEOF
6058/* end confdefs.h. */
6059$ac_includes_default
6060int
6061main ()
6062{
ec6a6fbe
AK
6063if (sizeof (size_t))
6064 return 0;
ad6254c5
AK
6065 ;
6066 return 0;
6067}
6068_ACEOF
6069rm -f conftest.$ac_objext
7a197a62
AK
6070if { (ac_try="$ac_compile"
6071case "(($ac_try" in
6072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6073 *) ac_try_echo=$ac_try;;
6074esac
ec6a6fbe
AK
6075eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6076$as_echo "$ac_try_echo") >&5
7a197a62 6077 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6078 ac_status=$?
8a2fc586
AK
6079 grep -v '^ *+' conftest.er1 >conftest.err
6080 rm -f conftest.er1
6081 cat conftest.err >&5
ec6a6fbe 6082 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6083 (exit $ac_status); } && {
6084 test -z "$ac_c_werror_flag" ||
6085 test ! -s conftest.err
6086 } && test -s conftest.$ac_objext; then
d0191583
JM
6087 cat >conftest.$ac_ext <<_ACEOF
6088/* confdefs.h. */
6089_ACEOF
6090cat confdefs.h >>conftest.$ac_ext
6091cat >>conftest.$ac_ext <<_ACEOF
6092/* end confdefs.h. */
ec6a6fbe 6093$ac_includes_default
d0191583
JM
6094int
6095main ()
6096{
ec6a6fbe
AK
6097if (sizeof ((size_t)))
6098 return 0;
d0191583
JM
6099 ;
6100 return 0;
6101}
6102_ACEOF
6103rm -f conftest.$ac_objext
6104if { (ac_try="$ac_compile"
6105case "(($ac_try" in
6106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6107 *) ac_try_echo=$ac_try;;
6108esac
ec6a6fbe
AK
6109eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6110$as_echo "$ac_try_echo") >&5
d0191583
JM
6111 (eval "$ac_compile") 2>conftest.er1
6112 ac_status=$?
6113 grep -v '^ *+' conftest.er1 >conftest.err
6114 rm -f conftest.er1
6115 cat conftest.err >&5
ec6a6fbe 6116 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
6117 (exit $ac_status); } && {
6118 test -z "$ac_c_werror_flag" ||
6119 test ! -s conftest.err
6120 } && test -s conftest.$ac_objext; then
ec6a6fbe 6121 :
d0191583 6122else
ec6a6fbe 6123 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
6124sed 's/^/| /' conftest.$ac_ext >&5
6125
ec6a6fbe
AK
6126 ac_cv_type_size_t=yes
6127fi
6128
6129rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6130else
6131 $as_echo "$as_me: failed program was:" >&5
6132sed 's/^/| /' conftest.$ac_ext >&5
6133
6134
d0191583
JM
6135fi
6136
6137rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6138fi
ec6a6fbe
AK
6139{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6140$as_echo "$ac_cv_type_size_t" >&6; }
6141if test "x$ac_cv_type_size_t" = x""yes; then
6142 :
6143else
d0191583
JM
6144
6145cat >>confdefs.h <<_ACEOF
ec6a6fbe 6146#define size_t unsigned int
d0191583
JM
6147_ACEOF
6148
ec6a6fbe 6149fi
d0191583 6150
ec6a6fbe
AK
6151{ $as_echo "$as_me:$LINENO: checking for mode_t" >&5
6152$as_echo_n "checking for mode_t... " >&6; }
6153if test "${ac_cv_type_mode_t+set}" = set; then
6154 $as_echo_n "(cached) " >&6
8106cdd5 6155else
ec6a6fbe
AK
6156 ac_cv_type_mode_t=no
6157cat >conftest.$ac_ext <<_ACEOF
b145d876
ZK
6158/* confdefs.h. */
6159_ACEOF
6160cat confdefs.h >>conftest.$ac_ext
6161cat >>conftest.$ac_ext <<_ACEOF
6162/* end confdefs.h. */
6163$ac_includes_default
6164int
6165main ()
6166{
ec6a6fbe
AK
6167if (sizeof (mode_t))
6168 return 0;
ad6254c5
AK
6169 ;
6170 return 0;
6171}
6172_ACEOF
6173rm -f conftest.$ac_objext
7a197a62
AK
6174if { (ac_try="$ac_compile"
6175case "(($ac_try" in
6176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6177 *) ac_try_echo=$ac_try;;
6178esac
ec6a6fbe
AK
6179eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6180$as_echo "$ac_try_echo") >&5
7a197a62 6181 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6182 ac_status=$?
8a2fc586
AK
6183 grep -v '^ *+' conftest.er1 >conftest.err
6184 rm -f conftest.er1
6185 cat conftest.err >&5
ec6a6fbe 6186 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6187 (exit $ac_status); } && {
6188 test -z "$ac_c_werror_flag" ||
6189 test ! -s conftest.err
6190 } && test -s conftest.$ac_objext; then
b145d876
ZK
6191 cat >conftest.$ac_ext <<_ACEOF
6192/* confdefs.h. */
6193_ACEOF
6194cat confdefs.h >>conftest.$ac_ext
6195cat >>conftest.$ac_ext <<_ACEOF
6196/* end confdefs.h. */
6197$ac_includes_default
6198int
6199main ()
6200{
ec6a6fbe
AK
6201if (sizeof ((mode_t)))
6202 return 0;
ad6254c5
AK
6203 ;
6204 return 0;
6205}
6206_ACEOF
6207rm -f conftest.$ac_objext
7a197a62
AK
6208if { (ac_try="$ac_compile"
6209case "(($ac_try" in
6210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6211 *) ac_try_echo=$ac_try;;
6212esac
ec6a6fbe
AK
6213eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6214$as_echo "$ac_try_echo") >&5
7a197a62 6215 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6216 ac_status=$?
8a2fc586
AK
6217 grep -v '^ *+' conftest.er1 >conftest.err
6218 rm -f conftest.er1
6219 cat conftest.err >&5
ec6a6fbe 6220 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6221 (exit $ac_status); } && {
6222 test -z "$ac_c_werror_flag" ||
6223 test ! -s conftest.err
6224 } && test -s conftest.$ac_objext; then
ec6a6fbe
AK
6225 :
6226else
6227 $as_echo "$as_me: failed program was:" >&5
6228sed 's/^/| /' conftest.$ac_ext >&5
6229
6230 ac_cv_type_mode_t=yes
6231fi
6232
6233rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fddafd51 6234else
ec6a6fbe 6235 $as_echo "$as_me: failed program was:" >&5
fddafd51
ZK
6236sed 's/^/| /' conftest.$ac_ext >&5
6237
ec6a6fbe 6238
80992638 6239fi
7a197a62
AK
6240
6241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 6242fi
ec6a6fbe
AK
6243{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6244$as_echo "$ac_cv_type_mode_t" >&6; }
6245if test "x$ac_cv_type_mode_t" = x""yes; then
ad6254c5
AK
6246 :
6247else
80992638 6248
ad6254c5
AK
6249cat >>confdefs.h <<_ACEOF
6250#define mode_t int
6251_ACEOF
6252
6253fi
6254
ec6a6fbe
AK
6255{ $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
6256$as_echo_n "checking for struct stat.st_rdev... " >&6; }
ad6254c5 6257if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
ec6a6fbe 6258 $as_echo_n "(cached) " >&6
ad6254c5
AK
6259else
6260 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6261/* confdefs.h. */
6262_ACEOF
6263cat confdefs.h >>conftest.$ac_ext
6264cat >>conftest.$ac_ext <<_ACEOF
6265/* end confdefs.h. */
6266$ac_includes_default
6267int
6268main ()
6269{
6270static struct stat ac_aggr;
6271if (ac_aggr.st_rdev)
6272return 0;
6273 ;
6274 return 0;
6275}
6276_ACEOF
6277rm -f conftest.$ac_objext
7a197a62
AK
6278if { (ac_try="$ac_compile"
6279case "(($ac_try" in
6280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6281 *) ac_try_echo=$ac_try;;
6282esac
ec6a6fbe
AK
6283eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6284$as_echo "$ac_try_echo") >&5
7a197a62 6285 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6286 ac_status=$?
8a2fc586
AK
6287 grep -v '^ *+' conftest.er1 >conftest.err
6288 rm -f conftest.er1
6289 cat conftest.err >&5
ec6a6fbe 6290 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6291 (exit $ac_status); } && {
6292 test -z "$ac_c_werror_flag" ||
6293 test ! -s conftest.err
6294 } && test -s conftest.$ac_objext; then
ad6254c5
AK
6295 ac_cv_member_struct_stat_st_rdev=yes
6296else
ec6a6fbe 6297 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6298sed 's/^/| /' conftest.$ac_ext >&5
6299
7a197a62 6300 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6301/* confdefs.h. */
6302_ACEOF
6303cat confdefs.h >>conftest.$ac_ext
6304cat >>conftest.$ac_ext <<_ACEOF
6305/* end confdefs.h. */
6306$ac_includes_default
6307int
6308main ()
6309{
6310static struct stat ac_aggr;
6311if (sizeof ac_aggr.st_rdev)
6312return 0;
6313 ;
6314 return 0;
6315}
6316_ACEOF
6317rm -f conftest.$ac_objext
7a197a62
AK
6318if { (ac_try="$ac_compile"
6319case "(($ac_try" in
6320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6321 *) ac_try_echo=$ac_try;;
6322esac
ec6a6fbe
AK
6323eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6324$as_echo "$ac_try_echo") >&5
7a197a62 6325 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6326 ac_status=$?
8a2fc586
AK
6327 grep -v '^ *+' conftest.er1 >conftest.err
6328 rm -f conftest.er1
6329 cat conftest.err >&5
ec6a6fbe 6330 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6331 (exit $ac_status); } && {
6332 test -z "$ac_c_werror_flag" ||
6333 test ! -s conftest.err
6334 } && test -s conftest.$ac_objext; then
ad6254c5
AK
6335 ac_cv_member_struct_stat_st_rdev=yes
6336else
ec6a6fbe 6337 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6338sed 's/^/| /' conftest.$ac_ext >&5
6339
7a197a62 6340 ac_cv_member_struct_stat_st_rdev=no
ad6254c5 6341fi
7a197a62
AK
6342
6343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 6344fi
7a197a62
AK
6345
6346rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 6347fi
ec6a6fbe
AK
6348{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
6349$as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; }
6350if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then
ad6254c5
AK
6351
6352cat >>confdefs.h <<_ACEOF
6353#define HAVE_STRUCT_STAT_ST_RDEV 1
6354_ACEOF
6355
6356
ad6254c5
AK
6357fi
6358
ec6a6fbe
AK
6359{ $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6360$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
ad6254c5 6361if test "${ac_cv_struct_tm+set}" = set; then
ec6a6fbe 6362 $as_echo_n "(cached) " >&6
ad6254c5
AK
6363else
6364 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6365/* confdefs.h. */
6366_ACEOF
6367cat confdefs.h >>conftest.$ac_ext
6368cat >>conftest.$ac_ext <<_ACEOF
6369/* end confdefs.h. */
6370#include <sys/types.h>
6371#include <time.h>
6372
6373int
6374main ()
6375{
25fbec5b
AK
6376struct tm tm;
6377 int *p = &tm.tm_sec;
ec6a6fbe 6378 return !p;
ad6254c5
AK
6379 ;
6380 return 0;
6381}
6382_ACEOF
6383rm -f conftest.$ac_objext
7a197a62
AK
6384if { (ac_try="$ac_compile"
6385case "(($ac_try" in
6386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6387 *) ac_try_echo=$ac_try;;
6388esac
ec6a6fbe
AK
6389eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6390$as_echo "$ac_try_echo") >&5
7a197a62 6391 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6392 ac_status=$?
8a2fc586
AK
6393 grep -v '^ *+' conftest.er1 >conftest.err
6394 rm -f conftest.er1
6395 cat conftest.err >&5
ec6a6fbe 6396 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6397 (exit $ac_status); } && {
6398 test -z "$ac_c_werror_flag" ||
6399 test ! -s conftest.err
6400 } && test -s conftest.$ac_objext; then
ad6254c5
AK
6401 ac_cv_struct_tm=time.h
6402else
ec6a6fbe 6403 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6404sed 's/^/| /' conftest.$ac_ext >&5
6405
7a197a62 6406 ac_cv_struct_tm=sys/time.h
ad6254c5 6407fi
7a197a62
AK
6408
6409rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 6410fi
ec6a6fbe
AK
6411{ $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6412$as_echo "$ac_cv_struct_tm" >&6; }
ad6254c5
AK
6413if test $ac_cv_struct_tm = sys/time.h; then
6414
6415cat >>confdefs.h <<\_ACEOF
6416#define TM_IN_SYS_TIME 1
6417_ACEOF
6418
6419fi
809fae91 6420
795ca3e5 6421
80992638 6422################################################################################
ad6254c5
AK
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
d0191583
JM
6437
6438
6439
6440for ac_func in gethostname getpagesize memset mkdir rmdir munmap setlocale \
6441 strcasecmp strchr strdup strncasecmp strerror strrchr strstr strtol strtoul \
6442 uname
ad6254c5 6443do
ec6a6fbe
AK
6444as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6445{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6446$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 6447if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 6448 $as_echo_n "(cached) " >&6
795ca3e5 6449else
ad6254c5 6450 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6451/* confdefs.h. */
6452_ACEOF
6453cat confdefs.h >>conftest.$ac_ext
6454cat >>conftest.$ac_ext <<_ACEOF
6455/* end confdefs.h. */
8a2fc586
AK
6456/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6457 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6458#define $ac_func innocuous_$ac_func
6459
ad6254c5
AK
6460/* System header to define __stub macros and hopefully few prototypes,
6461 which can conflict with char $ac_func (); below.
6462 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6463 <limits.h> exists even on freestanding compilers. */
8a2fc586 6464
ad6254c5
AK
6465#ifdef __STDC__
6466# include <limits.h>
6467#else
6468# include <assert.h>
6469#endif
8a2fc586
AK
6470
6471#undef $ac_func
6472
7a197a62
AK
6473/* Override any GCC internal prototype to avoid an error.
6474 Use char because int might match the return type of a GCC
6475 builtin and then its argument prototype would still apply. */
ad6254c5
AK
6476#ifdef __cplusplus
6477extern "C"
ad6254c5 6478#endif
ad6254c5
AK
6479char $ac_func ();
6480/* The GNU C library defines this for functions which it implements
6481 to always fail with ENOSYS. Some functions are actually named
6482 something starting with __ and the normal name is an alias. */
7a197a62 6483#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 6484choke me
ad6254c5
AK
6485#endif
6486
6487int
6488main ()
6489{
7a197a62 6490return $ac_func ();
ad6254c5
AK
6491 ;
6492 return 0;
6493}
6494_ACEOF
6495rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
6496if { (ac_try="$ac_link"
6497case "(($ac_try" in
6498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6499 *) ac_try_echo=$ac_try;;
6500esac
ec6a6fbe
AK
6501eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6502$as_echo "$ac_try_echo") >&5
7a197a62 6503 (eval "$ac_link") 2>conftest.er1
ad6254c5 6504 ac_status=$?
8a2fc586
AK
6505 grep -v '^ *+' conftest.er1 >conftest.err
6506 rm -f conftest.er1
6507 cat conftest.err >&5
ec6a6fbe 6508 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6509 (exit $ac_status); } && {
6510 test -z "$ac_c_werror_flag" ||
6511 test ! -s conftest.err
ec6a6fbe
AK
6512 } && test -s conftest$ac_exeext && {
6513 test "$cross_compiling" = yes ||
6514 $as_test_x conftest$ac_exeext
6515 }; then
fc54be10
AK
6516 eval "$as_ac_var=yes"
6517else
ec6a6fbe 6518 $as_echo "$as_me: failed program was:" >&5
fc54be10
AK
6519sed 's/^/| /' conftest.$ac_ext >&5
6520
6521 eval "$as_ac_var=no"
6522fi
6523
ec6a6fbe 6524rm -rf conftest.dSYM
25fbec5b 6525rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
fc54be10
AK
6526 conftest$ac_exeext conftest.$ac_ext
6527fi
ec6a6fbe
AK
6528ac_res=`eval 'as_val=${'$as_ac_var'}
6529 $as_echo "$as_val"'`
6530 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6531$as_echo "$ac_res" >&6; }
6532as_val=`eval 'as_val=${'$as_ac_var'}
6533 $as_echo "$as_val"'`
6534 if test "x$as_val" = x""yes; then
ad6254c5 6535 cat >>confdefs.h <<_ACEOF
ec6a6fbe 6536#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
6537_ACEOF
6538
6539else
ec6a6fbe
AK
6540 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
6541$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5
AK
6542 { (exit 1); exit 1; }; }
6543fi
6544done
795ca3e5 6545
a0f9708e
AK
6546
6547for ac_func in siginterrupt
6548do
6549as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6550{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6551$as_echo_n "checking for $ac_func... " >&6; }
6552if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6553 $as_echo_n "(cached) " >&6
6554else
6555 cat >conftest.$ac_ext <<_ACEOF
6556/* confdefs.h. */
6557_ACEOF
6558cat confdefs.h >>conftest.$ac_ext
6559cat >>conftest.$ac_ext <<_ACEOF
6560/* end confdefs.h. */
6561/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6562 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6563#define $ac_func innocuous_$ac_func
6564
6565/* System header to define __stub macros and hopefully few prototypes,
6566 which can conflict with char $ac_func (); below.
6567 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6568 <limits.h> exists even on freestanding compilers. */
6569
6570#ifdef __STDC__
6571# include <limits.h>
6572#else
6573# include <assert.h>
6574#endif
6575
6576#undef $ac_func
6577
6578/* Override any GCC internal prototype to avoid an error.
6579 Use char because int might match the return type of a GCC
6580 builtin and then its argument prototype would still apply. */
6581#ifdef __cplusplus
6582extern "C"
6583#endif
6584char $ac_func ();
6585/* The GNU C library defines this for functions which it implements
6586 to always fail with ENOSYS. Some functions are actually named
6587 something starting with __ and the normal name is an alias. */
6588#if defined __stub_$ac_func || defined __stub___$ac_func
6589choke me
6590#endif
6591
6592int
6593main ()
6594{
6595return $ac_func ();
6596 ;
6597 return 0;
6598}
6599_ACEOF
6600rm -f conftest.$ac_objext conftest$ac_exeext
6601if { (ac_try="$ac_link"
6602case "(($ac_try" in
6603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6604 *) ac_try_echo=$ac_try;;
6605esac
6606eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6607$as_echo "$ac_try_echo") >&5
6608 (eval "$ac_link") 2>conftest.er1
6609 ac_status=$?
6610 grep -v '^ *+' conftest.er1 >conftest.err
6611 rm -f conftest.er1
6612 cat conftest.err >&5
6613 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6614 (exit $ac_status); } && {
6615 test -z "$ac_c_werror_flag" ||
6616 test ! -s conftest.err
6617 } && test -s conftest$ac_exeext && {
6618 test "$cross_compiling" = yes ||
6619 $as_test_x conftest$ac_exeext
6620 }; then
6621 eval "$as_ac_var=yes"
6622else
6623 $as_echo "$as_me: failed program was:" >&5
6624sed 's/^/| /' conftest.$ac_ext >&5
6625
6626 eval "$as_ac_var=no"
6627fi
6628
6629rm -rf conftest.dSYM
6630rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6631 conftest$ac_exeext conftest.$ac_ext
6632fi
6633ac_res=`eval 'as_val=${'$as_ac_var'}
6634 $as_echo "$as_val"'`
6635 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6636$as_echo "$ac_res" >&6; }
6637as_val=`eval 'as_val=${'$as_ac_var'}
6638 $as_echo "$as_val"'`
6639 if test "x$as_val" = x""yes; then
6640 cat >>confdefs.h <<_ACEOF
6641#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6642_ACEOF
6643
6644fi
6645done
6646
ad6254c5
AK
6647# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6648# for constant arguments. Useless!
ec6a6fbe
AK
6649{ $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
6650$as_echo_n "checking for working alloca.h... " >&6; }
ad6254c5 6651if test "${ac_cv_working_alloca_h+set}" = set; then
ec6a6fbe 6652 $as_echo_n "(cached) " >&6
ad6254c5
AK
6653else
6654 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6655/* confdefs.h. */
6656_ACEOF
6657cat confdefs.h >>conftest.$ac_ext
6658cat >>conftest.$ac_ext <<_ACEOF
6659/* end confdefs.h. */
6660#include <alloca.h>
6661int
6662main ()
6663{
6664char *p = (char *) alloca (2 * sizeof (int));
7a197a62 6665 if (p) return 0;
ad6254c5
AK
6666 ;
6667 return 0;
6668}
6669_ACEOF
6670rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
6671if { (ac_try="$ac_link"
6672case "(($ac_try" in
6673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6674 *) ac_try_echo=$ac_try;;
6675esac
ec6a6fbe
AK
6676eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6677$as_echo "$ac_try_echo") >&5
7a197a62 6678 (eval "$ac_link") 2>conftest.er1
ad6254c5 6679 ac_status=$?
8a2fc586
AK
6680 grep -v '^ *+' conftest.er1 >conftest.err
6681 rm -f conftest.er1
6682 cat conftest.err >&5
ec6a6fbe 6683 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6684 (exit $ac_status); } && {
6685 test -z "$ac_c_werror_flag" ||
6686 test ! -s conftest.err
ec6a6fbe
AK
6687 } && test -s conftest$ac_exeext && {
6688 test "$cross_compiling" = yes ||
6689 $as_test_x conftest$ac_exeext
6690 }; then
ad6254c5
AK
6691 ac_cv_working_alloca_h=yes
6692else
ec6a6fbe 6693 $as_echo "$as_me: failed program was:" >&5
ad6254c5 6694sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 6695
7a197a62 6696 ac_cv_working_alloca_h=no
ad6254c5 6697fi
7a197a62 6698
ec6a6fbe 6699rm -rf conftest.dSYM
25fbec5b 6700rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 6701 conftest$ac_exeext conftest.$ac_ext
ad6254c5 6702fi
ec6a6fbe
AK
6703{ $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6704$as_echo "$ac_cv_working_alloca_h" >&6; }
ad6254c5
AK
6705if test $ac_cv_working_alloca_h = yes; then
6706
6707cat >>confdefs.h <<\_ACEOF
6708#define HAVE_ALLOCA_H 1
6709_ACEOF
6710
6711fi
6712
ec6a6fbe
AK
6713{ $as_echo "$as_me:$LINENO: checking for alloca" >&5
6714$as_echo_n "checking for alloca... " >&6; }
ad6254c5 6715if test "${ac_cv_func_alloca_works+set}" = set; then
ec6a6fbe 6716 $as_echo_n "(cached) " >&6
ad6254c5
AK
6717else
6718 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6719/* confdefs.h. */
6720_ACEOF
6721cat confdefs.h >>conftest.$ac_ext
6722cat >>conftest.$ac_ext <<_ACEOF
6723/* end confdefs.h. */
6724#ifdef __GNUC__
6725# define alloca __builtin_alloca
6726#else
6727# ifdef _MSC_VER
6728# include <malloc.h>
6729# define alloca _alloca
6730# else
25fbec5b 6731# ifdef HAVE_ALLOCA_H
ad6254c5
AK
6732# include <alloca.h>
6733# else
6734# ifdef _AIX
6735 #pragma alloca
6736# else
6737# ifndef alloca /* predefined by HP cc +Olibcalls */
6738char *alloca ();
6739# endif
6740# endif
6741# endif
6742# endif
6743#endif
6744
6745int
6746main ()
6747{
6748char *p = (char *) alloca (1);
7a197a62 6749 if (p) return 0;
ad6254c5
AK
6750 ;
6751 return 0;
6752}
6753_ACEOF
6754rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
6755if { (ac_try="$ac_link"
6756case "(($ac_try" in
6757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6758 *) ac_try_echo=$ac_try;;
6759esac
ec6a6fbe
AK
6760eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6761$as_echo "$ac_try_echo") >&5
7a197a62 6762 (eval "$ac_link") 2>conftest.er1
ad6254c5 6763 ac_status=$?
8a2fc586
AK
6764 grep -v '^ *+' conftest.er1 >conftest.err
6765 rm -f conftest.er1
6766 cat conftest.err >&5
ec6a6fbe 6767 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6768 (exit $ac_status); } && {
6769 test -z "$ac_c_werror_flag" ||
6770 test ! -s conftest.err
ec6a6fbe
AK
6771 } && test -s conftest$ac_exeext && {
6772 test "$cross_compiling" = yes ||
6773 $as_test_x conftest$ac_exeext
6774 }; then
ad6254c5
AK
6775 ac_cv_func_alloca_works=yes
6776else
ec6a6fbe 6777 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6778sed 's/^/| /' conftest.$ac_ext >&5
6779
7a197a62 6780 ac_cv_func_alloca_works=no
ad6254c5 6781fi
7a197a62 6782
ec6a6fbe 6783rm -rf conftest.dSYM
25fbec5b 6784rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 6785 conftest$ac_exeext conftest.$ac_ext
ad6254c5 6786fi
ec6a6fbe
AK
6787{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6788$as_echo "$ac_cv_func_alloca_works" >&6; }
ad6254c5
AK
6789
6790if test $ac_cv_func_alloca_works = yes; then
6791
6792cat >>confdefs.h <<\_ACEOF
6793#define HAVE_ALLOCA 1
6794_ACEOF
6795
6796else
6797 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6798# that cause trouble. Some versions do not even contain alloca or
6799# contain a buggy version. If you still want to use their alloca,
6800# use ar to extract alloca.o from them instead of compiling alloca.c.
6801
7a197a62 6802ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
ad6254c5
AK
6803
6804cat >>confdefs.h <<\_ACEOF
6805#define C_ALLOCA 1
6806_ACEOF
6807
6808
ec6a6fbe
AK
6809{ $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6810$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
ad6254c5 6811if test "${ac_cv_os_cray+set}" = set; then
ec6a6fbe 6812 $as_echo_n "(cached) " >&6
ad6254c5
AK
6813else
6814 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6815/* confdefs.h. */
6816_ACEOF
6817cat confdefs.h >>conftest.$ac_ext
6818cat >>conftest.$ac_ext <<_ACEOF
6819/* end confdefs.h. */
7a197a62 6820#if defined CRAY && ! defined CRAY2
ad6254c5
AK
6821webecray
6822#else
6823wenotbecray
6824#endif
6825
6826_ACEOF
795ca3e5 6827if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ad6254c5
AK
6828 $EGREP "webecray" >/dev/null 2>&1; then
6829 ac_cv_os_cray=yes
6830else
6831 ac_cv_os_cray=no
795ca3e5
AK
6832fi
6833rm -f conftest*
6834
795ca3e5 6835fi
ec6a6fbe
AK
6836{ $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6837$as_echo "$ac_cv_os_cray" >&6; }
ad6254c5
AK
6838if test $ac_cv_os_cray = yes; then
6839 for ac_func in _getb67 GETB67 getb67; do
ec6a6fbe
AK
6840 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6841{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6842$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 6843if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 6844 $as_echo_n "(cached) " >&6
ad6254c5
AK
6845else
6846 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6847/* confdefs.h. */
6848_ACEOF
6849cat confdefs.h >>conftest.$ac_ext
6850cat >>conftest.$ac_ext <<_ACEOF
6851/* end confdefs.h. */
8a2fc586
AK
6852/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6853 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6854#define $ac_func innocuous_$ac_func
6855
ad6254c5
AK
6856/* System header to define __stub macros and hopefully few prototypes,
6857 which can conflict with char $ac_func (); below.
6858 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6859 <limits.h> exists even on freestanding compilers. */
8a2fc586 6860
ad6254c5
AK
6861#ifdef __STDC__
6862# include <limits.h>
6863#else
6864# include <assert.h>
6865#endif
8a2fc586
AK
6866
6867#undef $ac_func
6868
7a197a62
AK
6869/* Override any GCC internal prototype to avoid an error.
6870 Use char because int might match the return type of a GCC
6871 builtin and then its argument prototype would still apply. */
ad6254c5
AK
6872#ifdef __cplusplus
6873extern "C"
ad6254c5 6874#endif
ad6254c5
AK
6875char $ac_func ();
6876/* The GNU C library defines this for functions which it implements
6877 to always fail with ENOSYS. Some functions are actually named
6878 something starting with __ and the normal name is an alias. */
7a197a62 6879#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 6880choke me
ad6254c5
AK
6881#endif
6882
6883int
6884main ()
6885{
7a197a62 6886return $ac_func ();
ad6254c5
AK
6887 ;
6888 return 0;
6889}
6890_ACEOF
6891rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
6892if { (ac_try="$ac_link"
6893case "(($ac_try" in
6894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6895 *) ac_try_echo=$ac_try;;
6896esac
ec6a6fbe
AK
6897eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6898$as_echo "$ac_try_echo") >&5
7a197a62 6899 (eval "$ac_link") 2>conftest.er1
ad6254c5 6900 ac_status=$?
8a2fc586
AK
6901 grep -v '^ *+' conftest.er1 >conftest.err
6902 rm -f conftest.er1
6903 cat conftest.err >&5
ec6a6fbe 6904 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6905 (exit $ac_status); } && {
6906 test -z "$ac_c_werror_flag" ||
6907 test ! -s conftest.err
ec6a6fbe
AK
6908 } && test -s conftest$ac_exeext && {
6909 test "$cross_compiling" = yes ||
6910 $as_test_x conftest$ac_exeext
6911 }; then
ad6254c5
AK
6912 eval "$as_ac_var=yes"
6913else
ec6a6fbe 6914 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6915sed 's/^/| /' conftest.$ac_ext >&5
6916
7a197a62 6917 eval "$as_ac_var=no"
ad6254c5 6918fi
7a197a62 6919
ec6a6fbe 6920rm -rf conftest.dSYM
25fbec5b 6921rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 6922 conftest$ac_exeext conftest.$ac_ext
ad6254c5 6923fi
ec6a6fbe
AK
6924ac_res=`eval 'as_val=${'$as_ac_var'}
6925 $as_echo "$as_val"'`
6926 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6927$as_echo "$ac_res" >&6; }
6928as_val=`eval 'as_val=${'$as_ac_var'}
6929 $as_echo "$as_val"'`
6930 if test "x$as_val" = x""yes; then
80992638 6931
ad6254c5
AK
6932cat >>confdefs.h <<_ACEOF
6933#define CRAY_STACKSEG_END $ac_func
6934_ACEOF
6935
6936 break
6937fi
6938
6939 done
6940fi
6941
ec6a6fbe
AK
6942{ $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6943$as_echo_n "checking stack direction for C alloca... " >&6; }
ad6254c5 6944if test "${ac_cv_c_stack_direction+set}" = set; then
ec6a6fbe 6945 $as_echo_n "(cached) " >&6
ad6254c5
AK
6946else
6947 if test "$cross_compiling" = yes; then
6948 ac_cv_c_stack_direction=0
6949else
6950 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6951/* confdefs.h. */
6952_ACEOF
6953cat confdefs.h >>conftest.$ac_ext
6954cat >>conftest.$ac_ext <<_ACEOF
6955/* end confdefs.h. */
7a197a62 6956$ac_includes_default
ad6254c5
AK
6957int
6958find_stack_direction ()
6959{
6960 static char *addr = 0;
6961 auto char dummy;
6962 if (addr == 0)
6963 {
6964 addr = &dummy;
6965 return find_stack_direction ();
6966 }
6967 else
6968 return (&dummy > addr) ? 1 : -1;
6969}
6970
6971int
6972main ()
6973{
7a197a62 6974 return find_stack_direction () < 0;
ad6254c5
AK
6975}
6976_ACEOF
6977rm -f conftest$ac_exeext
7a197a62
AK
6978if { (ac_try="$ac_link"
6979case "(($ac_try" in
6980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6981 *) ac_try_echo=$ac_try;;
6982esac
ec6a6fbe
AK
6983eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6984$as_echo "$ac_try_echo") >&5
7a197a62 6985 (eval "$ac_link") 2>&5
ad6254c5 6986 ac_status=$?
ec6a6fbe 6987 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 6988 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
6989 { (case "(($ac_try" in
6990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6991 *) ac_try_echo=$ac_try;;
6992esac
ec6a6fbe
AK
6993eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6994$as_echo "$ac_try_echo") >&5
7a197a62 6995 (eval "$ac_try") 2>&5
ad6254c5 6996 ac_status=$?
ec6a6fbe 6997 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
6998 (exit $ac_status); }; }; then
6999 ac_cv_c_stack_direction=1
7000else
ec6a6fbe
AK
7001 $as_echo "$as_me: program exited with status $ac_status" >&5
7002$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7003sed 's/^/| /' conftest.$ac_ext >&5
7004
7005( exit $ac_status )
7006ac_cv_c_stack_direction=-1
7007fi
ec6a6fbe 7008rm -rf conftest.dSYM
7a197a62 7009rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7010fi
7a197a62
AK
7011
7012
ad6254c5 7013fi
ec6a6fbe
AK
7014{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
7015$as_echo "$ac_cv_c_stack_direction" >&6; }
ad6254c5
AK
7016
7017cat >>confdefs.h <<_ACEOF
7018#define STACK_DIRECTION $ac_cv_c_stack_direction
7019_ACEOF
7020
7021
7022fi
7023
ec6a6fbe
AK
7024{ $as_echo "$as_me:$LINENO: checking whether closedir returns void" >&5
7025$as_echo_n "checking whether closedir returns void... " >&6; }
ad6254c5 7026if test "${ac_cv_func_closedir_void+set}" = set; then
ec6a6fbe 7027 $as_echo_n "(cached) " >&6
ad6254c5
AK
7028else
7029 if test "$cross_compiling" = yes; then
7030 ac_cv_func_closedir_void=yes
7031else
7032 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7033/* confdefs.h. */
7034_ACEOF
7035cat confdefs.h >>conftest.$ac_ext
7036cat >>conftest.$ac_ext <<_ACEOF
7037/* end confdefs.h. */
7038$ac_includes_default
7039#include <$ac_header_dirent>
7040#ifndef __cplusplus
7041int closedir ();
7042#endif
7043
7044int
7045main ()
7046{
7a197a62 7047return closedir (opendir (".")) != 0;
ad6254c5
AK
7048 ;
7049 return 0;
7050}
7051_ACEOF
7052rm -f conftest$ac_exeext
7a197a62
AK
7053if { (ac_try="$ac_link"
7054case "(($ac_try" in
7055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7056 *) ac_try_echo=$ac_try;;
7057esac
ec6a6fbe
AK
7058eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7059$as_echo "$ac_try_echo") >&5
7a197a62 7060 (eval "$ac_link") 2>&5
ad6254c5 7061 ac_status=$?
ec6a6fbe 7062 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7063 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7064 { (case "(($ac_try" in
7065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7066 *) ac_try_echo=$ac_try;;
7067esac
ec6a6fbe
AK
7068eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7069$as_echo "$ac_try_echo") >&5
7a197a62 7070 (eval "$ac_try") 2>&5
ad6254c5 7071 ac_status=$?
ec6a6fbe 7072 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7073 (exit $ac_status); }; }; then
7074 ac_cv_func_closedir_void=no
7075else
ec6a6fbe
AK
7076 $as_echo "$as_me: program exited with status $ac_status" >&5
7077$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7078sed 's/^/| /' conftest.$ac_ext >&5
7079
7080( exit $ac_status )
7081ac_cv_func_closedir_void=yes
7082fi
ec6a6fbe 7083rm -rf conftest.dSYM
7a197a62 7084rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7085fi
7a197a62
AK
7086
7087
ad6254c5 7088fi
ec6a6fbe
AK
7089{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
7090$as_echo "$ac_cv_func_closedir_void" >&6; }
ad6254c5
AK
7091if test $ac_cv_func_closedir_void = yes; then
7092
7093cat >>confdefs.h <<\_ACEOF
7094#define CLOSEDIR_VOID 1
7095_ACEOF
7096
7097fi
7098
7099
7a197a62 7100for ac_header in vfork.h
ad6254c5 7101do
ec6a6fbe 7102as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 7103if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
7104 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7105$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 7106if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 7107 $as_echo_n "(cached) " >&6
ad6254c5 7108fi
ec6a6fbe
AK
7109ac_res=`eval 'as_val=${'$as_ac_Header'}
7110 $as_echo "$as_val"'`
7111 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7112$as_echo "$ac_res" >&6; }
ad6254c5
AK
7113else
7114 # Is the header compilable?
ec6a6fbe
AK
7115{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7116$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 7117cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7118/* confdefs.h. */
7119_ACEOF
7120cat confdefs.h >>conftest.$ac_ext
7121cat >>conftest.$ac_ext <<_ACEOF
7122/* end confdefs.h. */
7123$ac_includes_default
7124#include <$ac_header>
7125_ACEOF
7126rm -f conftest.$ac_objext
7a197a62
AK
7127if { (ac_try="$ac_compile"
7128case "(($ac_try" in
7129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7130 *) ac_try_echo=$ac_try;;
7131esac
ec6a6fbe
AK
7132eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7133$as_echo "$ac_try_echo") >&5
7a197a62 7134 (eval "$ac_compile") 2>conftest.er1
ad6254c5 7135 ac_status=$?
8a2fc586
AK
7136 grep -v '^ *+' conftest.er1 >conftest.err
7137 rm -f conftest.er1
7138 cat conftest.err >&5
ec6a6fbe 7139 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7140 (exit $ac_status); } && {
7141 test -z "$ac_c_werror_flag" ||
7142 test ! -s conftest.err
7143 } && test -s conftest.$ac_objext; then
ad6254c5
AK
7144 ac_header_compiler=yes
7145else
ec6a6fbe 7146 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7147sed 's/^/| /' conftest.$ac_ext >&5
7148
7a197a62 7149 ac_header_compiler=no
ad6254c5 7150fi
7a197a62
AK
7151
7152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
7153{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7154$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
7155
7156# Is the header present?
ec6a6fbe
AK
7157{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7158$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 7159cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7160/* confdefs.h. */
7161_ACEOF
7162cat confdefs.h >>conftest.$ac_ext
7163cat >>conftest.$ac_ext <<_ACEOF
7164/* end confdefs.h. */
7165#include <$ac_header>
7166_ACEOF
7a197a62
AK
7167if { (ac_try="$ac_cpp conftest.$ac_ext"
7168case "(($ac_try" in
7169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7170 *) ac_try_echo=$ac_try;;
7171esac
ec6a6fbe
AK
7172eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7173$as_echo "$ac_try_echo") >&5
7a197a62 7174 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
7175 ac_status=$?
7176 grep -v '^ *+' conftest.er1 >conftest.err
7177 rm -f conftest.er1
7178 cat conftest.err >&5
ec6a6fbe 7179 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7180 (exit $ac_status); } >/dev/null && {
7181 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7182 test ! -s conftest.err
7183 }; then
ad6254c5
AK
7184 ac_header_preproc=yes
7185else
ec6a6fbe 7186 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7187sed 's/^/| /' conftest.$ac_ext >&5
7188
7189 ac_header_preproc=no
7190fi
7a197a62 7191
ad6254c5 7192rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
7193{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7194$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
7195
7196# So? What about this header?
8a2fc586
AK
7197case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7198 yes:no: )
ec6a6fbe
AK
7199 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7200$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7201 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7202$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 7203 ac_header_preproc=yes
ad6254c5 7204 ;;
8a2fc586 7205 no:yes:* )
ec6a6fbe
AK
7206 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7207$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7208 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7209$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7210 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7211$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7212 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7213$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7214 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7215$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7216 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7217$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 7218
ad6254c5
AK
7219 ;;
7220esac
ec6a6fbe
AK
7221{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7222$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 7223if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 7224 $as_echo_n "(cached) " >&6
ad6254c5 7225else
8a2fc586 7226 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 7227fi
ec6a6fbe
AK
7228ac_res=`eval 'as_val=${'$as_ac_Header'}
7229 $as_echo "$as_val"'`
7230 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7231$as_echo "$ac_res" >&6; }
ad6254c5 7232
795ca3e5 7233fi
ec6a6fbe
AK
7234as_val=`eval 'as_val=${'$as_ac_Header'}
7235 $as_echo "$as_val"'`
7236 if test "x$as_val" = x""yes; then
ad6254c5 7237 cat >>confdefs.h <<_ACEOF
ec6a6fbe 7238#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
7239_ACEOF
7240
7241fi
7242
7243done
795ca3e5 7244
ad6254c5
AK
7245
7246
7247for ac_func in fork vfork
7248do
ec6a6fbe
AK
7249as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7250{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7251$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 7252if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 7253 $as_echo_n "(cached) " >&6
795ca3e5 7254else
ad6254c5 7255 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7256/* confdefs.h. */
7257_ACEOF
7258cat confdefs.h >>conftest.$ac_ext
7259cat >>conftest.$ac_ext <<_ACEOF
7260/* end confdefs.h. */
8a2fc586
AK
7261/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7262 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7263#define $ac_func innocuous_$ac_func
7264
ad6254c5
AK
7265/* System header to define __stub macros and hopefully few prototypes,
7266 which can conflict with char $ac_func (); below.
7267 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7268 <limits.h> exists even on freestanding compilers. */
8a2fc586 7269
ad6254c5
AK
7270#ifdef __STDC__
7271# include <limits.h>
7272#else
7273# include <assert.h>
795ca3e5 7274#endif
8a2fc586
AK
7275
7276#undef $ac_func
7277
7a197a62
AK
7278/* Override any GCC internal prototype to avoid an error.
7279 Use char because int might match the return type of a GCC
7280 builtin and then its argument prototype would still apply. */
795ca3e5 7281#ifdef __cplusplus
ad6254c5 7282extern "C"
ad6254c5 7283#endif
ad6254c5
AK
7284char $ac_func ();
7285/* The GNU C library defines this for functions which it implements
7286 to always fail with ENOSYS. Some functions are actually named
7287 something starting with __ and the normal name is an alias. */
7a197a62 7288#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 7289choke me
795ca3e5
AK
7290#endif
7291
ad6254c5
AK
7292int
7293main ()
7294{
7a197a62 7295return $ac_func ();
ad6254c5
AK
7296 ;
7297 return 0;
7298}
7299_ACEOF
7300rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
7301if { (ac_try="$ac_link"
7302case "(($ac_try" in
7303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7304 *) ac_try_echo=$ac_try;;
7305esac
ec6a6fbe
AK
7306eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7307$as_echo "$ac_try_echo") >&5
7a197a62 7308 (eval "$ac_link") 2>conftest.er1
ad6254c5 7309 ac_status=$?
8a2fc586
AK
7310 grep -v '^ *+' conftest.er1 >conftest.err
7311 rm -f conftest.er1
7312 cat conftest.err >&5
ec6a6fbe 7313 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7314 (exit $ac_status); } && {
7315 test -z "$ac_c_werror_flag" ||
7316 test ! -s conftest.err
ec6a6fbe
AK
7317 } && test -s conftest$ac_exeext && {
7318 test "$cross_compiling" = yes ||
7319 $as_test_x conftest$ac_exeext
7320 }; then
ad6254c5 7321 eval "$as_ac_var=yes"
795ca3e5 7322else
ec6a6fbe 7323 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7324sed 's/^/| /' conftest.$ac_ext >&5
7325
7a197a62 7326 eval "$as_ac_var=no"
795ca3e5 7327fi
7a197a62 7328
ec6a6fbe 7329rm -rf conftest.dSYM
25fbec5b 7330rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 7331 conftest$ac_exeext conftest.$ac_ext
ad6254c5 7332fi
ec6a6fbe
AK
7333ac_res=`eval 'as_val=${'$as_ac_var'}
7334 $as_echo "$as_val"'`
7335 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7336$as_echo "$ac_res" >&6; }
7337as_val=`eval 'as_val=${'$as_ac_var'}
7338 $as_echo "$as_val"'`
7339 if test "x$as_val" = x""yes; then
ad6254c5 7340 cat >>confdefs.h <<_ACEOF
ec6a6fbe 7341#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
7342_ACEOF
7343
7344fi
7345done
7346
7347if test "x$ac_cv_func_fork" = xyes; then
ec6a6fbe
AK
7348 { $as_echo "$as_me:$LINENO: checking for working fork" >&5
7349$as_echo_n "checking for working fork... " >&6; }
ad6254c5 7350if test "${ac_cv_func_fork_works+set}" = set; then
ec6a6fbe 7351 $as_echo_n "(cached) " >&6
ad6254c5
AK
7352else
7353 if test "$cross_compiling" = yes; then
7354 ac_cv_func_fork_works=cross
7355else
7356 cat >conftest.$ac_ext <<_ACEOF
7a197a62
AK
7357/* confdefs.h. */
7358_ACEOF
7359cat confdefs.h >>conftest.$ac_ext
7360cat >>conftest.$ac_ext <<_ACEOF
7361/* end confdefs.h. */
7362$ac_includes_default
7363int
7364main ()
7365{
7366
7367 /* By Ruediger Kuhlmann. */
7368 return fork () < 0;
7369
7370 ;
7371 return 0;
7372}
ad6254c5
AK
7373_ACEOF
7374rm -f conftest$ac_exeext
7a197a62
AK
7375if { (ac_try="$ac_link"
7376case "(($ac_try" in
7377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7378 *) ac_try_echo=$ac_try;;
7379esac
ec6a6fbe
AK
7380eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7381$as_echo "$ac_try_echo") >&5
7a197a62 7382 (eval "$ac_link") 2>&5
ad6254c5 7383 ac_status=$?
ec6a6fbe 7384 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7385 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7386 { (case "(($ac_try" in
7387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7388 *) ac_try_echo=$ac_try;;
7389esac
ec6a6fbe
AK
7390eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7391$as_echo "$ac_try_echo") >&5
7a197a62 7392 (eval "$ac_try") 2>&5
ad6254c5 7393 ac_status=$?
ec6a6fbe 7394 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7395 (exit $ac_status); }; }; then
7396 ac_cv_func_fork_works=yes
7397else
ec6a6fbe
AK
7398 $as_echo "$as_me: program exited with status $ac_status" >&5
7399$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7400sed 's/^/| /' conftest.$ac_ext >&5
7401
7402( exit $ac_status )
7403ac_cv_func_fork_works=no
7404fi
ec6a6fbe 7405rm -rf conftest.dSYM
7a197a62 7406rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7407fi
7a197a62
AK
7408
7409
ad6254c5 7410fi
ec6a6fbe
AK
7411{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
7412$as_echo "$ac_cv_func_fork_works" >&6; }
ad6254c5
AK
7413
7414else
7415 ac_cv_func_fork_works=$ac_cv_func_fork
7416fi
7417if test "x$ac_cv_func_fork_works" = xcross; then
7418 case $host in
7419 *-*-amigaos* | *-*-msdosdjgpp*)
7420 # Override, as these systems have only a dummy fork() stub
7421 ac_cv_func_fork_works=no
7422 ;;
7423 *)
7424 ac_cv_func_fork_works=yes
7425 ;;
7426 esac
ec6a6fbe
AK
7427 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
7428$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
ad6254c5
AK
7429fi
7430ac_cv_func_vfork_works=$ac_cv_func_vfork
7431if test "x$ac_cv_func_vfork" = xyes; then
ec6a6fbe
AK
7432 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
7433$as_echo_n "checking for working vfork... " >&6; }
ad6254c5 7434if test "${ac_cv_func_vfork_works+set}" = set; then
ec6a6fbe 7435 $as_echo_n "(cached) " >&6
ad6254c5
AK
7436else
7437 if test "$cross_compiling" = yes; then
7438 ac_cv_func_vfork_works=cross
7439else
7440 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7441/* confdefs.h. */
7442_ACEOF
7443cat confdefs.h >>conftest.$ac_ext
7444cat >>conftest.$ac_ext <<_ACEOF
7445/* end confdefs.h. */
7446/* Thanks to Paul Eggert for this test. */
7a197a62 7447$ac_includes_default
ad6254c5 7448#include <sys/wait.h>
25fbec5b 7449#ifdef HAVE_VFORK_H
ad6254c5
AK
7450# include <vfork.h>
7451#endif
7452/* On some sparc systems, changes by the child to local and incoming
7453 argument registers are propagated back to the parent. The compiler
7454 is told about this with #include <vfork.h>, but some compilers
7455 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
7456 static variable whose address is put into a register that is
7457 clobbered by the vfork. */
7458static void
7459#ifdef __cplusplus
7460sparc_address_test (int arg)
7461# else
7462sparc_address_test (arg) int arg;
7463#endif
7464{
7465 static pid_t child;
7466 if (!child) {
7467 child = vfork ();
7468 if (child < 0) {
7469 perror ("vfork");
7470 _exit(2);
7471 }
7472 if (!child) {
7473 arg = getpid();
7474 write(-1, "", 0);
7475 _exit (arg);
7476 }
7477 }
7478}
7479
7480int
7481main ()
7482{
7483 pid_t parent = getpid ();
7484 pid_t child;
7485
7486 sparc_address_test (0);
7487
7488 child = vfork ();
7489
7490 if (child == 0) {
7491 /* Here is another test for sparc vfork register problems. This
7492 test uses lots of local variables, at least as many local
7493 variables as main has allocated so far including compiler
7494 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
7495 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
7496 reuse the register of parent for one of the local variables,
7497 since it will think that parent can't possibly be used any more
7498 in this routine. Assigning to the local variable will thus
7499 munge parent in the parent process. */
7500 pid_t
7501 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
7502 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
7503 /* Convince the compiler that p..p7 are live; otherwise, it might
7504 use the same hardware register for all 8 local variables. */
7505 if (p != p1 || p != p2 || p != p3 || p != p4
7506 || p != p5 || p != p6 || p != p7)
7507 _exit(1);
7508
7509 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
7510 from child file descriptors. If the child closes a descriptor
7511 before it execs or exits, this munges the parent's descriptor
7512 as well. Test for this by closing stdout in the child. */
7513 _exit(close(fileno(stdout)) != 0);
7514 } else {
7515 int status;
7516 struct stat st;
7517
7518 while (wait(&status) != child)
7519 ;
7a197a62 7520 return (
ad6254c5
AK
7521 /* Was there some problem with vforking? */
7522 child < 0
7523
7524 /* Did the child fail? (This shouldn't happen.) */
7525 || status
7526
7527 /* Did the vfork/compiler bug occur? */
7528 || parent != getpid()
7529
7530 /* Did the file descriptor bug occur? */
7531 || fstat(fileno(stdout), &st) != 0
7532 );
7533 }
7534}
7535_ACEOF
7536rm -f conftest$ac_exeext
7a197a62
AK
7537if { (ac_try="$ac_link"
7538case "(($ac_try" in
7539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7540 *) ac_try_echo=$ac_try;;
7541esac
ec6a6fbe
AK
7542eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7543$as_echo "$ac_try_echo") >&5
7a197a62 7544 (eval "$ac_link") 2>&5
ad6254c5 7545 ac_status=$?
ec6a6fbe 7546 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7547 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7548 { (case "(($ac_try" in
7549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7550 *) ac_try_echo=$ac_try;;
7551esac
ec6a6fbe
AK
7552eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7553$as_echo "$ac_try_echo") >&5
7a197a62 7554 (eval "$ac_try") 2>&5
ad6254c5 7555 ac_status=$?
ec6a6fbe 7556 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7557 (exit $ac_status); }; }; then
7558 ac_cv_func_vfork_works=yes
7559else
ec6a6fbe
AK
7560 $as_echo "$as_me: program exited with status $ac_status" >&5
7561$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7562sed 's/^/| /' conftest.$ac_ext >&5
7563
7564( exit $ac_status )
7565ac_cv_func_vfork_works=no
7566fi
ec6a6fbe 7567rm -rf conftest.dSYM
7a197a62 7568rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7569fi
7a197a62
AK
7570
7571
ad6254c5 7572fi
ec6a6fbe
AK
7573{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
7574$as_echo "$ac_cv_func_vfork_works" >&6; }
ad6254c5
AK
7575
7576fi;
7577if test "x$ac_cv_func_fork_works" = xcross; then
8a2fc586 7578 ac_cv_func_vfork_works=$ac_cv_func_vfork
ec6a6fbe
AK
7579 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
7580$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
ad6254c5
AK
7581fi
7582
7583if test "x$ac_cv_func_vfork_works" = xyes; then
7584
7585cat >>confdefs.h <<\_ACEOF
7586#define HAVE_WORKING_VFORK 1
7587_ACEOF
7588
7589else
7590
7591cat >>confdefs.h <<\_ACEOF
7592#define vfork fork
7593_ACEOF
7594
7595fi
7596if test "x$ac_cv_func_fork_works" = xyes; then
7597
7598cat >>confdefs.h <<\_ACEOF
7599#define HAVE_WORKING_FORK 1
7600_ACEOF
7601
7602fi
7603
ec6a6fbe
AK
7604{ $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
7605$as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
ad6254c5 7606if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
ec6a6fbe 7607 $as_echo_n "(cached) " >&6
ad6254c5
AK
7608else
7609 rm -f conftest.sym conftest.file
7610echo >conftest.file
7611if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
7612 if test "$cross_compiling" = yes; then
7613 ac_cv_func_lstat_dereferences_slashed_symlink=no
7614else
7615 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7616/* confdefs.h. */
7617_ACEOF
7618cat confdefs.h >>conftest.$ac_ext
7619cat >>conftest.$ac_ext <<_ACEOF
7620/* end confdefs.h. */
7621$ac_includes_default
7622int
7623main ()
7624{
7625struct stat sbuf;
7626 /* Linux will dereference the symlink and fail.
8a2fc586
AK
7627 That is better in the sense that it means we will not
7628 have to compile and use the lstat wrapper. */
7a197a62 7629 return lstat ("conftest.sym/", &sbuf) == 0;
ad6254c5
AK
7630 ;
7631 return 0;
7632}
7633_ACEOF
7634rm -f conftest$ac_exeext
7a197a62
AK
7635if { (ac_try="$ac_link"
7636case "(($ac_try" in
7637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7638 *) ac_try_echo=$ac_try;;
7639esac
ec6a6fbe
AK
7640eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7641$as_echo "$ac_try_echo") >&5
7a197a62 7642 (eval "$ac_link") 2>&5
ad6254c5 7643 ac_status=$?
ec6a6fbe 7644 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7645 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7646 { (case "(($ac_try" in
7647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7648 *) ac_try_echo=$ac_try;;
7649esac
ec6a6fbe
AK
7650eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7651$as_echo "$ac_try_echo") >&5
7a197a62 7652 (eval "$ac_try") 2>&5
ad6254c5 7653 ac_status=$?
ec6a6fbe 7654 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7655 (exit $ac_status); }; }; then
7656 ac_cv_func_lstat_dereferences_slashed_symlink=yes
7657else
ec6a6fbe
AK
7658 $as_echo "$as_me: program exited with status $ac_status" >&5
7659$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7660sed 's/^/| /' conftest.$ac_ext >&5
7661
7662( exit $ac_status )
7663ac_cv_func_lstat_dereferences_slashed_symlink=no
7664fi
ec6a6fbe 7665rm -rf conftest.dSYM
7a197a62 7666rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7667fi
7a197a62
AK
7668
7669
ad6254c5
AK
7670else
7671 # If the `ln -s' command failed, then we probably don't even
7672 # have an lstat function.
7673 ac_cv_func_lstat_dereferences_slashed_symlink=no
7674fi
7675rm -f conftest.sym conftest.file
7676
7677fi
ec6a6fbe
AK
7678{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
7679$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
ad6254c5
AK
7680
7681test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
7682
7683cat >>confdefs.h <<_ACEOF
7684#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
7685_ACEOF
7686
7687
7688if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
7a197a62 7689 case " $LIBOBJS " in
8a2fc586 7690 *" lstat.$ac_objext "* ) ;;
7a197a62
AK
7691 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
7692 ;;
8a2fc586
AK
7693esac
7694
ad6254c5
AK
7695fi
7696
ec6a6fbe
AK
7697{ $as_echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
7698$as_echo_n "checking whether lstat accepts an empty string... " >&6; }
ad6254c5 7699if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
ec6a6fbe 7700 $as_echo_n "(cached) " >&6
ad6254c5
AK
7701else
7702 if test "$cross_compiling" = yes; then
7703 ac_cv_func_lstat_empty_string_bug=yes
7704else
7705 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7706/* confdefs.h. */
7707_ACEOF
7708cat confdefs.h >>conftest.$ac_ext
7709cat >>conftest.$ac_ext <<_ACEOF
7710/* end confdefs.h. */
7711$ac_includes_default
7712int
7713main ()
7714{
7715struct stat sbuf;
7a197a62 7716 return lstat ("", &sbuf) == 0;
ad6254c5
AK
7717 ;
7718 return 0;
7719}
7720_ACEOF
7721rm -f conftest$ac_exeext
7a197a62
AK
7722if { (ac_try="$ac_link"
7723case "(($ac_try" in
7724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7725 *) ac_try_echo=$ac_try;;
7726esac
ec6a6fbe
AK
7727eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7728$as_echo "$ac_try_echo") >&5
7a197a62 7729 (eval "$ac_link") 2>&5
ad6254c5 7730 ac_status=$?
ec6a6fbe 7731 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7732 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7733 { (case "(($ac_try" in
7734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7735 *) ac_try_echo=$ac_try;;
7736esac
ec6a6fbe
AK
7737eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7738$as_echo "$ac_try_echo") >&5
7a197a62 7739 (eval "$ac_try") 2>&5
ad6254c5 7740 ac_status=$?
ec6a6fbe 7741 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7742 (exit $ac_status); }; }; then
7a197a62 7743 ac_cv_func_lstat_empty_string_bug=no
ad6254c5 7744else
ec6a6fbe
AK
7745 $as_echo "$as_me: program exited with status $ac_status" >&5
7746$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7747sed 's/^/| /' conftest.$ac_ext >&5
7748
7749( exit $ac_status )
7a197a62 7750ac_cv_func_lstat_empty_string_bug=yes
ad6254c5 7751fi
ec6a6fbe 7752rm -rf conftest.dSYM
7a197a62 7753rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7754fi
7a197a62
AK
7755
7756
ad6254c5 7757fi
ec6a6fbe
AK
7758{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
7759$as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
ad6254c5 7760if test $ac_cv_func_lstat_empty_string_bug = yes; then
7a197a62 7761 case " $LIBOBJS " in
8a2fc586 7762 *" lstat.$ac_objext "* ) ;;
7a197a62
AK
7763 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
7764 ;;
8a2fc586
AK
7765esac
7766
ad6254c5
AK
7767
7768cat >>confdefs.h <<_ACEOF
7769#define HAVE_LSTAT_EMPTY_STRING_BUG 1
7770_ACEOF
7771
7772fi
7773
7774
7775for ac_header in stdlib.h
7776do
ec6a6fbe 7777as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 7778if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
7779 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7780$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 7781if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 7782 $as_echo_n "(cached) " >&6
ad6254c5 7783fi
ec6a6fbe
AK
7784ac_res=`eval 'as_val=${'$as_ac_Header'}
7785 $as_echo "$as_val"'`
7786 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7787$as_echo "$ac_res" >&6; }
ad6254c5
AK
7788else
7789 # Is the header compilable?
ec6a6fbe
AK
7790{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7791$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 7792cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7793/* confdefs.h. */
7794_ACEOF
7795cat confdefs.h >>conftest.$ac_ext
7796cat >>conftest.$ac_ext <<_ACEOF
7797/* end confdefs.h. */
7798$ac_includes_default
7799#include <$ac_header>
7800_ACEOF
7801rm -f conftest.$ac_objext
7a197a62
AK
7802if { (ac_try="$ac_compile"
7803case "(($ac_try" in
7804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7805 *) ac_try_echo=$ac_try;;
7806esac
ec6a6fbe
AK
7807eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7808$as_echo "$ac_try_echo") >&5
7a197a62 7809 (eval "$ac_compile") 2>conftest.er1
ad6254c5 7810 ac_status=$?
8a2fc586
AK
7811 grep -v '^ *+' conftest.er1 >conftest.err
7812 rm -f conftest.er1
7813 cat conftest.err >&5
ec6a6fbe 7814 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7815 (exit $ac_status); } && {
7816 test -z "$ac_c_werror_flag" ||
7817 test ! -s conftest.err
7818 } && test -s conftest.$ac_objext; then
ad6254c5
AK
7819 ac_header_compiler=yes
7820else
ec6a6fbe 7821 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7822sed 's/^/| /' conftest.$ac_ext >&5
7823
7a197a62 7824 ac_header_compiler=no
ad6254c5 7825fi
7a197a62
AK
7826
7827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
7828{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7829$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
7830
7831# Is the header present?
ec6a6fbe
AK
7832{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7833$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 7834cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7835/* confdefs.h. */
7836_ACEOF
7837cat confdefs.h >>conftest.$ac_ext
7838cat >>conftest.$ac_ext <<_ACEOF
7839/* end confdefs.h. */
7840#include <$ac_header>
7841_ACEOF
7a197a62
AK
7842if { (ac_try="$ac_cpp conftest.$ac_ext"
7843case "(($ac_try" in
7844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7845 *) ac_try_echo=$ac_try;;
7846esac
ec6a6fbe
AK
7847eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7848$as_echo "$ac_try_echo") >&5
7a197a62 7849 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
7850 ac_status=$?
7851 grep -v '^ *+' conftest.er1 >conftest.err
7852 rm -f conftest.er1
7853 cat conftest.err >&5
ec6a6fbe 7854 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7855 (exit $ac_status); } >/dev/null && {
7856 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7857 test ! -s conftest.err
7858 }; then
ad6254c5
AK
7859 ac_header_preproc=yes
7860else
ec6a6fbe 7861 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7862sed 's/^/| /' conftest.$ac_ext >&5
7863
7864 ac_header_preproc=no
7865fi
7a197a62 7866
ad6254c5 7867rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
7868{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7869$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
7870
7871# So? What about this header?
8a2fc586
AK
7872case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7873 yes:no: )
ec6a6fbe
AK
7874 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7875$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7876 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7877$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 7878 ac_header_preproc=yes
ad6254c5 7879 ;;
8a2fc586 7880 no:yes:* )
ec6a6fbe
AK
7881 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7882$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7883 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7884$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7885 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7886$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7887 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7888$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7889 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7890$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7891 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7892$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 7893
ad6254c5
AK
7894 ;;
7895esac
ec6a6fbe
AK
7896{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7897$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 7898if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 7899 $as_echo_n "(cached) " >&6
ad6254c5 7900else
8a2fc586 7901 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 7902fi
ec6a6fbe
AK
7903ac_res=`eval 'as_val=${'$as_ac_Header'}
7904 $as_echo "$as_val"'`
7905 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7906$as_echo "$ac_res" >&6; }
ad6254c5
AK
7907
7908fi
ec6a6fbe
AK
7909as_val=`eval 'as_val=${'$as_ac_Header'}
7910 $as_echo "$as_val"'`
7911 if test "x$as_val" = x""yes; then
ad6254c5 7912 cat >>confdefs.h <<_ACEOF
ec6a6fbe 7913#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
7914_ACEOF
7915
7916fi
7917
7918done
7919
ec6a6fbe
AK
7920{ $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
7921$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
ad6254c5 7922if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
ec6a6fbe 7923 $as_echo_n "(cached) " >&6
ad6254c5
AK
7924else
7925 if test "$cross_compiling" = yes; then
7926 ac_cv_func_malloc_0_nonnull=no
7927else
7928 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7929/* confdefs.h. */
7930_ACEOF
7931cat confdefs.h >>conftest.$ac_ext
7932cat >>conftest.$ac_ext <<_ACEOF
7933/* end confdefs.h. */
25fbec5b 7934#if defined STDC_HEADERS || defined HAVE_STDLIB_H
ad6254c5
AK
7935# include <stdlib.h>
7936#else
7937char *malloc ();
7938#endif
7939
7940int
7941main ()
7942{
7a197a62 7943return ! malloc (0);
ad6254c5
AK
7944 ;
7945 return 0;
7946}
7947_ACEOF
7948rm -f conftest$ac_exeext
7a197a62
AK
7949if { (ac_try="$ac_link"
7950case "(($ac_try" in
7951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7952 *) ac_try_echo=$ac_try;;
7953esac
ec6a6fbe
AK
7954eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7955$as_echo "$ac_try_echo") >&5
7a197a62 7956 (eval "$ac_link") 2>&5
ad6254c5 7957 ac_status=$?
ec6a6fbe 7958 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7959 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7960 { (case "(($ac_try" in
7961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7962 *) ac_try_echo=$ac_try;;
7963esac
ec6a6fbe
AK
7964eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7965$as_echo "$ac_try_echo") >&5
7a197a62 7966 (eval "$ac_try") 2>&5
ad6254c5 7967 ac_status=$?
ec6a6fbe 7968 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7969 (exit $ac_status); }; }; then
7970 ac_cv_func_malloc_0_nonnull=yes
7971else
ec6a6fbe
AK
7972 $as_echo "$as_me: program exited with status $ac_status" >&5
7973$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7974sed 's/^/| /' conftest.$ac_ext >&5
7975
7976( exit $ac_status )
7977ac_cv_func_malloc_0_nonnull=no
7978fi
ec6a6fbe 7979rm -rf conftest.dSYM
7a197a62 7980rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7981fi
7a197a62
AK
7982
7983
ad6254c5 7984fi
ec6a6fbe
AK
7985{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
7986$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
ad6254c5
AK
7987if test $ac_cv_func_malloc_0_nonnull = yes; then
7988
7989cat >>confdefs.h <<\_ACEOF
7990#define HAVE_MALLOC 1
7991_ACEOF
7992
7993else
7994 cat >>confdefs.h <<\_ACEOF
7995#define HAVE_MALLOC 0
7996_ACEOF
7997
7a197a62 7998 case " $LIBOBJS " in
8a2fc586 7999 *" malloc.$ac_objext "* ) ;;
7a197a62
AK
8000 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
8001 ;;
8a2fc586
AK
8002esac
8003
ad6254c5
AK
8004
8005cat >>confdefs.h <<\_ACEOF
8006#define malloc rpl_malloc
8007_ACEOF
8008
8009fi
8010
8011
8012
ec6a6fbe
AK
8013{ $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
8014$as_echo_n "checking for working memcmp... " >&6; }
ad6254c5 8015if test "${ac_cv_func_memcmp_working+set}" = set; then
ec6a6fbe 8016 $as_echo_n "(cached) " >&6
ad6254c5
AK
8017else
8018 if test "$cross_compiling" = yes; then
8019 ac_cv_func_memcmp_working=no
8020else
8021 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8022/* confdefs.h. */
8023_ACEOF
8024cat confdefs.h >>conftest.$ac_ext
8025cat >>conftest.$ac_ext <<_ACEOF
8026/* end confdefs.h. */
8a2fc586 8027$ac_includes_default
ad6254c5
AK
8028int
8029main ()
8030{
8031
8032 /* Some versions of memcmp are not 8-bit clean. */
7a197a62 8033 char c0 = '\100', c1 = '\200', c2 = '\201';
ad6254c5 8034 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
7a197a62 8035 return 1;
ad6254c5
AK
8036
8037 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
8038 or more and with at least one buffer not starting on a 4-byte boundary.
8039 William Lewis provided this test program. */
8040 {
8041 char foo[21];
8042 char bar[21];
8043 int i;
8044 for (i = 0; i < 4; i++)
8045 {
8a2fc586
AK
8046 char *a = foo + i;
8047 char *b = bar + i;
8048 strcpy (a, "--------01111111");
8049 strcpy (b, "--------10000000");
8050 if (memcmp (a, b, 16) >= 0)
7a197a62 8051 return 1;
ad6254c5 8052 }
7a197a62 8053 return 0;
ad6254c5
AK
8054 }
8055
8056 ;
8057 return 0;
8058}
8059_ACEOF
8060rm -f conftest$ac_exeext
7a197a62
AK
8061if { (ac_try="$ac_link"
8062case "(($ac_try" in
8063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8064 *) ac_try_echo=$ac_try;;
8065esac
ec6a6fbe
AK
8066eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8067$as_echo "$ac_try_echo") >&5
7a197a62 8068 (eval "$ac_link") 2>&5
ad6254c5 8069 ac_status=$?
ec6a6fbe 8070 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 8071 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
8072 { (case "(($ac_try" in
8073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8074 *) ac_try_echo=$ac_try;;
8075esac
ec6a6fbe
AK
8076eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8077$as_echo "$ac_try_echo") >&5
7a197a62 8078 (eval "$ac_try") 2>&5
ad6254c5 8079 ac_status=$?
ec6a6fbe 8080 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
8081 (exit $ac_status); }; }; then
8082 ac_cv_func_memcmp_working=yes
8083else
ec6a6fbe
AK
8084 $as_echo "$as_me: program exited with status $ac_status" >&5
8085$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8086sed 's/^/| /' conftest.$ac_ext >&5
8087
8088( exit $ac_status )
8089ac_cv_func_memcmp_working=no
8090fi
ec6a6fbe 8091rm -rf conftest.dSYM
7a197a62 8092rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 8093fi
7a197a62
AK
8094
8095
ad6254c5 8096fi
ec6a6fbe
AK
8097{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
8098$as_echo "$ac_cv_func_memcmp_working" >&6; }
7a197a62 8099test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
8a2fc586 8100 *" memcmp.$ac_objext "* ) ;;
7a197a62
AK
8101 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
8102 ;;
8a2fc586
AK
8103esac
8104
ad6254c5
AK
8105
8106
8107
8108for ac_header in stdlib.h unistd.h
8109do
ec6a6fbe 8110as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 8111if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
8112 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8113$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 8114if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 8115 $as_echo_n "(cached) " >&6
ad6254c5 8116fi
ec6a6fbe
AK
8117ac_res=`eval 'as_val=${'$as_ac_Header'}
8118 $as_echo "$as_val"'`
8119 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8120$as_echo "$ac_res" >&6; }
ad6254c5
AK
8121else
8122 # Is the header compilable?
ec6a6fbe
AK
8123{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8124$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 8125cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8126/* confdefs.h. */
8127_ACEOF
8128cat confdefs.h >>conftest.$ac_ext
8129cat >>conftest.$ac_ext <<_ACEOF
8130/* end confdefs.h. */
8131$ac_includes_default
8132#include <$ac_header>
8133_ACEOF
8134rm -f conftest.$ac_objext
7a197a62
AK
8135if { (ac_try="$ac_compile"
8136case "(($ac_try" in
8137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8138 *) ac_try_echo=$ac_try;;
8139esac
ec6a6fbe
AK
8140eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8141$as_echo "$ac_try_echo") >&5
7a197a62 8142 (eval "$ac_compile") 2>conftest.er1
ad6254c5 8143 ac_status=$?
8a2fc586
AK
8144 grep -v '^ *+' conftest.er1 >conftest.err
8145 rm -f conftest.er1
8146 cat conftest.err >&5
ec6a6fbe 8147 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8148 (exit $ac_status); } && {
8149 test -z "$ac_c_werror_flag" ||
8150 test ! -s conftest.err
8151 } && test -s conftest.$ac_objext; then
ad6254c5
AK
8152 ac_header_compiler=yes
8153else
ec6a6fbe 8154 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8155sed 's/^/| /' conftest.$ac_ext >&5
8156
7a197a62 8157 ac_header_compiler=no
ad6254c5 8158fi
7a197a62
AK
8159
8160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
8161{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8162$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
8163
8164# Is the header present?
ec6a6fbe
AK
8165{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8166$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 8167cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8168/* confdefs.h. */
8169_ACEOF
8170cat confdefs.h >>conftest.$ac_ext
8171cat >>conftest.$ac_ext <<_ACEOF
8172/* end confdefs.h. */
8173#include <$ac_header>
8174_ACEOF
7a197a62
AK
8175if { (ac_try="$ac_cpp conftest.$ac_ext"
8176case "(($ac_try" in
8177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8178 *) ac_try_echo=$ac_try;;
8179esac
ec6a6fbe
AK
8180eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8181$as_echo "$ac_try_echo") >&5
7a197a62 8182 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
8183 ac_status=$?
8184 grep -v '^ *+' conftest.er1 >conftest.err
8185 rm -f conftest.er1
8186 cat conftest.err >&5
ec6a6fbe 8187 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8188 (exit $ac_status); } >/dev/null && {
8189 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8190 test ! -s conftest.err
8191 }; then
ad6254c5
AK
8192 ac_header_preproc=yes
8193else
ec6a6fbe 8194 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8195sed 's/^/| /' conftest.$ac_ext >&5
8196
8197 ac_header_preproc=no
8198fi
7a197a62 8199
ad6254c5 8200rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
8201{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8202$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
8203
8204# So? What about this header?
8a2fc586
AK
8205case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8206 yes:no: )
ec6a6fbe
AK
8207 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8208$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8209 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8210$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 8211 ac_header_preproc=yes
ad6254c5 8212 ;;
8a2fc586 8213 no:yes:* )
ec6a6fbe
AK
8214 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8215$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8216 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8217$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8218 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8219$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8220 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8221$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8222 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8223$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8224 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8225$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 8226
ad6254c5
AK
8227 ;;
8228esac
ec6a6fbe
AK
8229{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8230$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 8231if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 8232 $as_echo_n "(cached) " >&6
ad6254c5 8233else
8a2fc586 8234 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 8235fi
ec6a6fbe
AK
8236ac_res=`eval 'as_val=${'$as_ac_Header'}
8237 $as_echo "$as_val"'`
8238 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8239$as_echo "$ac_res" >&6; }
ad6254c5
AK
8240
8241fi
ec6a6fbe
AK
8242as_val=`eval 'as_val=${'$as_ac_Header'}
8243 $as_echo "$as_val"'`
8244 if test "x$as_val" = x""yes; then
ad6254c5 8245 cat >>confdefs.h <<_ACEOF
ec6a6fbe 8246#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
8247_ACEOF
8248
8249fi
8250
8251done
8252
8253
8254for ac_func in getpagesize
8255do
ec6a6fbe
AK
8256as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8257{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8258$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 8259if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 8260 $as_echo_n "(cached) " >&6
ad6254c5
AK
8261else
8262 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8263/* confdefs.h. */
8264_ACEOF
8265cat confdefs.h >>conftest.$ac_ext
8266cat >>conftest.$ac_ext <<_ACEOF
8267/* end confdefs.h. */
8a2fc586
AK
8268/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8269 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8270#define $ac_func innocuous_$ac_func
8271
ad6254c5
AK
8272/* System header to define __stub macros and hopefully few prototypes,
8273 which can conflict with char $ac_func (); below.
8274 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8275 <limits.h> exists even on freestanding compilers. */
8a2fc586 8276
ad6254c5
AK
8277#ifdef __STDC__
8278# include <limits.h>
8279#else
8280# include <assert.h>
8281#endif
8a2fc586
AK
8282
8283#undef $ac_func
8284
7a197a62
AK
8285/* Override any GCC internal prototype to avoid an error.
8286 Use char because int might match the return type of a GCC
8287 builtin and then its argument prototype would still apply. */
ad6254c5
AK
8288#ifdef __cplusplus
8289extern "C"
ad6254c5 8290#endif
ad6254c5
AK
8291char $ac_func ();
8292/* The GNU C library defines this for functions which it implements
8293 to always fail with ENOSYS. Some functions are actually named
8294 something starting with __ and the normal name is an alias. */
7a197a62 8295#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 8296choke me
ad6254c5
AK
8297#endif
8298
8299int
8300main ()
8301{
7a197a62 8302return $ac_func ();
ad6254c5
AK
8303 ;
8304 return 0;
8305}
8306_ACEOF
8307rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
8308if { (ac_try="$ac_link"
8309case "(($ac_try" in
8310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8311 *) ac_try_echo=$ac_try;;
8312esac
ec6a6fbe
AK
8313eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8314$as_echo "$ac_try_echo") >&5
7a197a62 8315 (eval "$ac_link") 2>conftest.er1
ad6254c5 8316 ac_status=$?
8a2fc586
AK
8317 grep -v '^ *+' conftest.er1 >conftest.err
8318 rm -f conftest.er1
8319 cat conftest.err >&5
ec6a6fbe 8320 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8321 (exit $ac_status); } && {
8322 test -z "$ac_c_werror_flag" ||
8323 test ! -s conftest.err
ec6a6fbe
AK
8324 } && test -s conftest$ac_exeext && {
8325 test "$cross_compiling" = yes ||
8326 $as_test_x conftest$ac_exeext
8327 }; then
ad6254c5
AK
8328 eval "$as_ac_var=yes"
8329else
ec6a6fbe 8330 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8331sed 's/^/| /' conftest.$ac_ext >&5
8332
7a197a62 8333 eval "$as_ac_var=no"
ad6254c5 8334fi
7a197a62 8335
ec6a6fbe 8336rm -rf conftest.dSYM
25fbec5b 8337rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 8338 conftest$ac_exeext conftest.$ac_ext
ad6254c5 8339fi
ec6a6fbe
AK
8340ac_res=`eval 'as_val=${'$as_ac_var'}
8341 $as_echo "$as_val"'`
8342 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8343$as_echo "$ac_res" >&6; }
8344as_val=`eval 'as_val=${'$as_ac_var'}
8345 $as_echo "$as_val"'`
8346 if test "x$as_val" = x""yes; then
ad6254c5 8347 cat >>confdefs.h <<_ACEOF
ec6a6fbe 8348#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
8349_ACEOF
8350
8351fi
8352done
8353
ec6a6fbe
AK
8354{ $as_echo "$as_me:$LINENO: checking for working mmap" >&5
8355$as_echo_n "checking for working mmap... " >&6; }
ad6254c5 8356if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
ec6a6fbe 8357 $as_echo_n "(cached) " >&6
ad6254c5
AK
8358else
8359 if test "$cross_compiling" = yes; then
8360 ac_cv_func_mmap_fixed_mapped=no
8361else
8362 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8363/* confdefs.h. */
8364_ACEOF
8365cat confdefs.h >>conftest.$ac_ext
8366cat >>conftest.$ac_ext <<_ACEOF
8367/* end confdefs.h. */
8368$ac_includes_default
8369/* malloc might have been renamed as rpl_malloc. */
8370#undef malloc
8371
8372/* Thanks to Mike Haertel and Jim Avera for this test.
8373 Here is a matrix of mmap possibilities:
8374 mmap private not fixed
8375 mmap private fixed at somewhere currently unmapped
8376 mmap private fixed at somewhere already mapped
8377 mmap shared not fixed
8378 mmap shared fixed at somewhere currently unmapped
8379 mmap shared fixed at somewhere already mapped
8380 For private mappings, we should verify that changes cannot be read()
8381 back from the file, nor mmap's back from the file at a different
8382 address. (There have been systems where private was not correctly
8383 implemented like the infamous i386 svr4.0, and systems where the
8384 VM page cache was not coherent with the file system buffer cache
8385 like early versions of FreeBSD and possibly contemporary NetBSD.)
8386 For shared mappings, we should conversely verify that changes get
8387 propagated back to all the places they're supposed to be.
8388
8389 Grep wants private fixed already mapped.
8390 The main things grep needs to know about mmap are:
8391 * does it exist and is it safe to write into the mmap'd area
8392 * how to use it (BSD variants) */
8393
8394#include <fcntl.h>
8395#include <sys/mman.h>
8396
25fbec5b 8397#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
ad6254c5
AK
8398char *malloc ();
8399#endif
8400
8401/* This mess was copied from the GNU getpagesize.h. */
25fbec5b 8402#ifndef HAVE_GETPAGESIZE
ad6254c5 8403/* Assume that all systems that can run configure have sys/param.h. */
25fbec5b 8404# ifndef HAVE_SYS_PARAM_H
ad6254c5
AK
8405# define HAVE_SYS_PARAM_H 1
8406# endif
8407
8408# ifdef _SC_PAGESIZE
8409# define getpagesize() sysconf(_SC_PAGESIZE)
8410# else /* no _SC_PAGESIZE */
25fbec5b 8411# ifdef HAVE_SYS_PARAM_H
ad6254c5
AK
8412# include <sys/param.h>
8413# ifdef EXEC_PAGESIZE
8414# define getpagesize() EXEC_PAGESIZE
8415# else /* no EXEC_PAGESIZE */
8416# ifdef NBPG
8417# define getpagesize() NBPG * CLSIZE
8418# ifndef CLSIZE
8419# define CLSIZE 1
8420# endif /* no CLSIZE */
8421# else /* no NBPG */
8422# ifdef NBPC
8423# define getpagesize() NBPC
8424# else /* no NBPC */
8425# ifdef PAGESIZE
8426# define getpagesize() PAGESIZE
8427# endif /* PAGESIZE */
8428# endif /* no NBPC */
8429# endif /* no NBPG */
8430# endif /* no EXEC_PAGESIZE */
8431# else /* no HAVE_SYS_PARAM_H */
8432# define getpagesize() 8192 /* punt totally */
8433# endif /* no HAVE_SYS_PARAM_H */
8434# endif /* no _SC_PAGESIZE */
8435
8436#endif /* no HAVE_GETPAGESIZE */
8437
8438int
8439main ()
8440{
8441 char *data, *data2, *data3;
8442 int i, pagesize;
8443 int fd;
8444
8445 pagesize = getpagesize ();
8446
8447 /* First, make a file with some known garbage in it. */
8448 data = (char *) malloc (pagesize);
8449 if (!data)
7a197a62 8450 return 1;
ad6254c5
AK
8451 for (i = 0; i < pagesize; ++i)
8452 *(data + i) = rand ();
8453 umask (0);
8454 fd = creat ("conftest.mmap", 0600);
8455 if (fd < 0)
7a197a62 8456 return 1;
ad6254c5 8457 if (write (fd, data, pagesize) != pagesize)
7a197a62 8458 return 1;
ad6254c5
AK
8459 close (fd);
8460
8461 /* Next, try to mmap the file at a fixed address which already has
8462 something else allocated at it. If we can, also make sure that
8463 we see the same garbage. */
8464 fd = open ("conftest.mmap", O_RDWR);
8465 if (fd < 0)
7a197a62 8466 return 1;
ad6254c5
AK
8467 data2 = (char *) malloc (2 * pagesize);
8468 if (!data2)
7a197a62
AK
8469 return 1;
8470 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
ad6254c5 8471 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8a2fc586 8472 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7a197a62 8473 return 1;
ad6254c5
AK
8474 for (i = 0; i < pagesize; ++i)
8475 if (*(data + i) != *(data2 + i))
7a197a62 8476 return 1;
ad6254c5
AK
8477
8478 /* Finally, make sure that changes to the mapped area do not
8479 percolate back to the file as seen by read(). (This is a bug on
8480 some variants of i386 svr4.0.) */
8481 for (i = 0; i < pagesize; ++i)
8482 *(data2 + i) = *(data2 + i) + 1;
8483 data3 = (char *) malloc (pagesize);
8484 if (!data3)
7a197a62 8485 return 1;
ad6254c5 8486 if (read (fd, data3, pagesize) != pagesize)
7a197a62 8487 return 1;
ad6254c5
AK
8488 for (i = 0; i < pagesize; ++i)
8489 if (*(data + i) != *(data3 + i))
7a197a62 8490 return 1;
ad6254c5 8491 close (fd);
7a197a62 8492 return 0;
ad6254c5
AK
8493}
8494_ACEOF
8495rm -f conftest$ac_exeext
7a197a62
AK
8496if { (ac_try="$ac_link"
8497case "(($ac_try" in
8498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8499 *) ac_try_echo=$ac_try;;
8500esac
ec6a6fbe
AK
8501eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8502$as_echo "$ac_try_echo") >&5
7a197a62 8503 (eval "$ac_link") 2>&5
ad6254c5 8504 ac_status=$?
ec6a6fbe 8505 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 8506 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
8507 { (case "(($ac_try" in
8508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8509 *) ac_try_echo=$ac_try;;
8510esac
ec6a6fbe
AK
8511eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8512$as_echo "$ac_try_echo") >&5
7a197a62 8513 (eval "$ac_try") 2>&5
ad6254c5 8514 ac_status=$?
ec6a6fbe 8515 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
8516 (exit $ac_status); }; }; then
8517 ac_cv_func_mmap_fixed_mapped=yes
8518else
ec6a6fbe
AK
8519 $as_echo "$as_me: program exited with status $ac_status" >&5
8520$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8521sed 's/^/| /' conftest.$ac_ext >&5
8522
8523( exit $ac_status )
8524ac_cv_func_mmap_fixed_mapped=no
8525fi
ec6a6fbe 8526rm -rf conftest.dSYM
7a197a62 8527rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 8528fi
7a197a62
AK
8529
8530
ad6254c5 8531fi
ec6a6fbe
AK
8532{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8533$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
ad6254c5
AK
8534if test $ac_cv_func_mmap_fixed_mapped = yes; then
8535
8536cat >>confdefs.h <<\_ACEOF
8537#define HAVE_MMAP 1
8538_ACEOF
8539
8540fi
8541rm -f conftest.mmap
8542
ec6a6fbe
AK
8543{ $as_echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
8544$as_echo_n "checking whether stat accepts an empty string... " >&6; }
ad6254c5 8545if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
ec6a6fbe 8546 $as_echo_n "(cached) " >&6
ad6254c5
AK
8547else
8548 if test "$cross_compiling" = yes; then
8549 ac_cv_func_stat_empty_string_bug=yes
8550else
8551 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8552/* confdefs.h. */
8553_ACEOF
8554cat confdefs.h >>conftest.$ac_ext
8555cat >>conftest.$ac_ext <<_ACEOF
8556/* end confdefs.h. */
8557$ac_includes_default
8558int
8559main ()
8560{
8561struct stat sbuf;
7a197a62 8562 return stat ("", &sbuf) == 0;
ad6254c5
AK
8563 ;
8564 return 0;
8565}
8566_ACEOF
8567rm -f conftest$ac_exeext
7a197a62
AK
8568if { (ac_try="$ac_link"
8569case "(($ac_try" in
8570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8571 *) ac_try_echo=$ac_try;;
8572esac
ec6a6fbe
AK
8573eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8574$as_echo "$ac_try_echo") >&5
7a197a62 8575 (eval "$ac_link") 2>&5
ad6254c5 8576 ac_status=$?
ec6a6fbe 8577 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 8578 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
8579 { (case "(($ac_try" in
8580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8581 *) ac_try_echo=$ac_try;;
8582esac
ec6a6fbe
AK
8583eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8584$as_echo "$ac_try_echo") >&5
7a197a62 8585 (eval "$ac_try") 2>&5
ad6254c5 8586 ac_status=$?
ec6a6fbe 8587 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 8588 (exit $ac_status); }; }; then
7a197a62 8589 ac_cv_func_stat_empty_string_bug=no
ad6254c5 8590else
ec6a6fbe
AK
8591 $as_echo "$as_me: program exited with status $ac_status" >&5
8592$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8593sed 's/^/| /' conftest.$ac_ext >&5
8594
8595( exit $ac_status )
7a197a62 8596ac_cv_func_stat_empty_string_bug=yes
ad6254c5 8597fi
ec6a6fbe 8598rm -rf conftest.dSYM
7a197a62 8599rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 8600fi
7a197a62
AK
8601
8602
ad6254c5 8603fi
ec6a6fbe
AK
8604{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
8605$as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
ad6254c5 8606if test $ac_cv_func_stat_empty_string_bug = yes; then
7a197a62 8607 case " $LIBOBJS " in
8a2fc586 8608 *" stat.$ac_objext "* ) ;;
7a197a62
AK
8609 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
8610 ;;
8a2fc586
AK
8611esac
8612
ad6254c5
AK
8613
8614cat >>confdefs.h <<_ACEOF
8615#define HAVE_STAT_EMPTY_STRING_BUG 1
8616_ACEOF
8617
8618fi
8619
ec6a6fbe
AK
8620{ $as_echo "$as_me:$LINENO: checking for working strtod" >&5
8621$as_echo_n "checking for working strtod... " >&6; }
ad6254c5 8622if test "${ac_cv_func_strtod+set}" = set; then
ec6a6fbe 8623 $as_echo_n "(cached) " >&6
ad6254c5
AK
8624else
8625 if test "$cross_compiling" = yes; then
8626 ac_cv_func_strtod=no
8627else
8628 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8629/* confdefs.h. */
8630_ACEOF
8631cat confdefs.h >>conftest.$ac_ext
8632cat >>conftest.$ac_ext <<_ACEOF
8633/* end confdefs.h. */
8634
7a197a62
AK
8635$ac_includes_default
8636#ifndef strtod
ad6254c5 8637double strtod ();
7a197a62 8638#endif
ad6254c5
AK
8639int
8640main()
8641{
8642 {
8643 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
8644 char *string = " +69";
8645 char *term;
8646 double value;
8647 value = strtod (string, &term);
8648 if (value != 69 || term != (string + 4))
7a197a62 8649 return 1;
ad6254c5
AK
8650 }
8651
8652 {
8653 /* Under Solaris 2.4, strtod returns the wrong value for the
8654 terminating character under some conditions. */
8655 char *string = "NaN";
8656 char *term;
8657 strtod (string, &term);
8658 if (term != string && *(term - 1) == 0)
7a197a62 8659 return 1;
ad6254c5 8660 }
7a197a62 8661 return 0;
ad6254c5
AK
8662}
8663
8664_ACEOF
8665rm -f conftest$ac_exeext
7a197a62
AK
8666if { (ac_try="$ac_link"
8667case "(($ac_try" in
8668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8669 *) ac_try_echo=$ac_try;;
8670esac
ec6a6fbe
AK
8671eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8672$as_echo "$ac_try_echo") >&5
7a197a62 8673 (eval "$ac_link") 2>&5
ad6254c5 8674 ac_status=$?
ec6a6fbe 8675 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 8676 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
8677 { (case "(($ac_try" in
8678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8679 *) ac_try_echo=$ac_try;;
8680esac
ec6a6fbe
AK
8681eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8682$as_echo "$ac_try_echo") >&5
7a197a62 8683 (eval "$ac_try") 2>&5
ad6254c5 8684 ac_status=$?
ec6a6fbe 8685 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
8686 (exit $ac_status); }; }; then
8687 ac_cv_func_strtod=yes
8688else
ec6a6fbe
AK
8689 $as_echo "$as_me: program exited with status $ac_status" >&5
8690$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8691sed 's/^/| /' conftest.$ac_ext >&5
8692
8693( exit $ac_status )
8694ac_cv_func_strtod=no
8695fi
ec6a6fbe 8696rm -rf conftest.dSYM
7a197a62 8697rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 8698fi
7a197a62
AK
8699
8700
ad6254c5 8701fi
ec6a6fbe
AK
8702{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
8703$as_echo "$ac_cv_func_strtod" >&6; }
ad6254c5 8704if test $ac_cv_func_strtod = no; then
7a197a62 8705 case " $LIBOBJS " in
8a2fc586 8706 *" strtod.$ac_objext "* ) ;;
7a197a62
AK
8707 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
8708 ;;
8a2fc586
AK
8709esac
8710
ec6a6fbe
AK
8711{ $as_echo "$as_me:$LINENO: checking for pow" >&5
8712$as_echo_n "checking for pow... " >&6; }
ad6254c5 8713if test "${ac_cv_func_pow+set}" = set; then
ec6a6fbe 8714 $as_echo_n "(cached) " >&6
ad6254c5
AK
8715else
8716 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8717/* confdefs.h. */
8718_ACEOF
8719cat confdefs.h >>conftest.$ac_ext
8720cat >>conftest.$ac_ext <<_ACEOF
8721/* end confdefs.h. */
8a2fc586
AK
8722/* Define pow to an innocuous variant, in case <limits.h> declares pow.
8723 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8724#define pow innocuous_pow
8725
ad6254c5
AK
8726/* System header to define __stub macros and hopefully few prototypes,
8727 which can conflict with char pow (); below.
8728 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8729 <limits.h> exists even on freestanding compilers. */
8a2fc586 8730
ad6254c5
AK
8731#ifdef __STDC__
8732# include <limits.h>
8733#else
8734# include <assert.h>
8735#endif
8a2fc586
AK
8736
8737#undef pow
8738
7a197a62
AK
8739/* Override any GCC internal prototype to avoid an error.
8740 Use char because int might match the return type of a GCC
8741 builtin and then its argument prototype would still apply. */
ad6254c5
AK
8742#ifdef __cplusplus
8743extern "C"
ad6254c5 8744#endif
ad6254c5
AK
8745char pow ();
8746/* The GNU C library defines this for functions which it implements
8747 to always fail with ENOSYS. Some functions are actually named
8748 something starting with __ and the normal name is an alias. */
7a197a62 8749#if defined __stub_pow || defined __stub___pow
ad6254c5 8750choke me
ad6254c5
AK
8751#endif
8752
8753int
8754main ()
8755{
7a197a62 8756return pow ();
ad6254c5
AK
8757 ;
8758 return 0;
8759}
8760_ACEOF
8761rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
8762if { (ac_try="$ac_link"
8763case "(($ac_try" in
8764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8765 *) ac_try_echo=$ac_try;;
8766esac
ec6a6fbe
AK
8767eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8768$as_echo "$ac_try_echo") >&5
7a197a62 8769 (eval "$ac_link") 2>conftest.er1
ad6254c5 8770 ac_status=$?
8a2fc586
AK
8771 grep -v '^ *+' conftest.er1 >conftest.err
8772 rm -f conftest.er1
8773 cat conftest.err >&5
ec6a6fbe 8774 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8775 (exit $ac_status); } && {
8776 test -z "$ac_c_werror_flag" ||
8777 test ! -s conftest.err
ec6a6fbe
AK
8778 } && test -s conftest$ac_exeext && {
8779 test "$cross_compiling" = yes ||
8780 $as_test_x conftest$ac_exeext
8781 }; then
ad6254c5
AK
8782 ac_cv_func_pow=yes
8783else
ec6a6fbe 8784 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8785sed 's/^/| /' conftest.$ac_ext >&5
8786
7a197a62 8787 ac_cv_func_pow=no
ad6254c5 8788fi
7a197a62 8789
ec6a6fbe 8790rm -rf conftest.dSYM
25fbec5b 8791rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 8792 conftest$ac_exeext conftest.$ac_ext
ad6254c5 8793fi
ec6a6fbe
AK
8794{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
8795$as_echo "$ac_cv_func_pow" >&6; }
ad6254c5
AK
8796
8797if test $ac_cv_func_pow = no; then
ec6a6fbe
AK
8798 { $as_echo "$as_me:$LINENO: checking for pow in -lm" >&5
8799$as_echo_n "checking for pow in -lm... " >&6; }
ad6254c5 8800if test "${ac_cv_lib_m_pow+set}" = set; then
ec6a6fbe 8801 $as_echo_n "(cached) " >&6
ad6254c5
AK
8802else
8803 ac_check_lib_save_LIBS=$LIBS
8804LIBS="-lm $LIBS"
8805cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8806/* confdefs.h. */
8807_ACEOF
8808cat confdefs.h >>conftest.$ac_ext
8809cat >>conftest.$ac_ext <<_ACEOF
8810/* end confdefs.h. */
8811
7a197a62
AK
8812/* Override any GCC internal prototype to avoid an error.
8813 Use char because int might match the return type of a GCC
8814 builtin and then its argument prototype would still apply. */
ad6254c5
AK
8815#ifdef __cplusplus
8816extern "C"
8817#endif
ad6254c5
AK
8818char pow ();
8819int
8820main ()
8821{
7a197a62 8822return pow ();
ad6254c5
AK
8823 ;
8824 return 0;
8825}
8826_ACEOF
8827rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
8828if { (ac_try="$ac_link"
8829case "(($ac_try" in
8830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8831 *) ac_try_echo=$ac_try;;
8832esac
ec6a6fbe
AK
8833eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8834$as_echo "$ac_try_echo") >&5
7a197a62 8835 (eval "$ac_link") 2>conftest.er1
ad6254c5 8836 ac_status=$?
8a2fc586
AK
8837 grep -v '^ *+' conftest.er1 >conftest.err
8838 rm -f conftest.er1
8839 cat conftest.err >&5
ec6a6fbe 8840 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8841 (exit $ac_status); } && {
8842 test -z "$ac_c_werror_flag" ||
8843 test ! -s conftest.err
ec6a6fbe
AK
8844 } && test -s conftest$ac_exeext && {
8845 test "$cross_compiling" = yes ||
8846 $as_test_x conftest$ac_exeext
8847 }; then
ad6254c5
AK
8848 ac_cv_lib_m_pow=yes
8849else
ec6a6fbe 8850 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8851sed 's/^/| /' conftest.$ac_ext >&5
8852
7a197a62 8853 ac_cv_lib_m_pow=no
ad6254c5 8854fi
7a197a62 8855
ec6a6fbe 8856rm -rf conftest.dSYM
25fbec5b 8857rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 8858 conftest$ac_exeext conftest.$ac_ext
ad6254c5 8859LIBS=$ac_check_lib_save_LIBS
d0191583 8860fi
ec6a6fbe
AK
8861{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
8862$as_echo "$ac_cv_lib_m_pow" >&6; }
8863if test "x$ac_cv_lib_m_pow" = x""yes; then
d0191583
JM
8864 POW_LIB=-lm
8865else
ec6a6fbe
AK
8866 { $as_echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
8867$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
d0191583 8868fi
72b2cb61 8869
d0191583 8870fi
72b2cb61 8871
ad6254c5
AK
8872fi
8873
ad6254c5 8874
d0191583
JM
8875for ac_func in vprintf
8876do
ec6a6fbe
AK
8877as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8878{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8879$as_echo_n "checking for $ac_func... " >&6; }
d0191583 8880if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 8881 $as_echo_n "(cached) " >&6
ad6254c5 8882else
d0191583
JM
8883 cat >conftest.$ac_ext <<_ACEOF
8884/* confdefs.h. */
8885_ACEOF
8886cat confdefs.h >>conftest.$ac_ext
8887cat >>conftest.$ac_ext <<_ACEOF
8888/* end confdefs.h. */
8889/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8890 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8891#define $ac_func innocuous_$ac_func
7a197a62 8892
d0191583
JM
8893/* System header to define __stub macros and hopefully few prototypes,
8894 which can conflict with char $ac_func (); below.
8895 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8896 <limits.h> exists even on freestanding compilers. */
ad6254c5 8897
d0191583
JM
8898#ifdef __STDC__
8899# include <limits.h>
8900#else
8901# include <assert.h>
8902#endif
ad6254c5 8903
d0191583 8904#undef $ac_func
72b2cb61 8905
d0191583
JM
8906/* Override any GCC internal prototype to avoid an error.
8907 Use char because int might match the return type of a GCC
8908 builtin and then its argument prototype would still apply. */
8909#ifdef __cplusplus
8910extern "C"
8911#endif
8912char $ac_func ();
8913/* The GNU C library defines this for functions which it implements
8914 to always fail with ENOSYS. Some functions are actually named
8915 something starting with __ and the normal name is an alias. */
8916#if defined __stub_$ac_func || defined __stub___$ac_func
8917choke me
8918#endif
8919
8920int
8921main ()
8922{
8923return $ac_func ();
8924 ;
8925 return 0;
8926}
72b2cb61 8927_ACEOF
d0191583
JM
8928rm -f conftest.$ac_objext conftest$ac_exeext
8929if { (ac_try="$ac_link"
8930case "(($ac_try" in
8931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8932 *) ac_try_echo=$ac_try;;
8933esac
ec6a6fbe
AK
8934eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8935$as_echo "$ac_try_echo") >&5
d0191583
JM
8936 (eval "$ac_link") 2>conftest.er1
8937 ac_status=$?
8938 grep -v '^ *+' conftest.er1 >conftest.err
8939 rm -f conftest.er1
8940 cat conftest.err >&5
ec6a6fbe 8941 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
8942 (exit $ac_status); } && {
8943 test -z "$ac_c_werror_flag" ||
8944 test ! -s conftest.err
ec6a6fbe
AK
8945 } && test -s conftest$ac_exeext && {
8946 test "$cross_compiling" = yes ||
8947 $as_test_x conftest$ac_exeext
8948 }; then
d0191583
JM
8949 eval "$as_ac_var=yes"
8950else
ec6a6fbe 8951 $as_echo "$as_me: failed program was:" >&5
d0191583 8952sed 's/^/| /' conftest.$ac_ext >&5
72b2cb61 8953
d0191583 8954 eval "$as_ac_var=no"
ad6254c5
AK
8955fi
8956
ec6a6fbe 8957rm -rf conftest.dSYM
d0191583
JM
8958rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8959 conftest$ac_exeext conftest.$ac_ext
7a197a62 8960fi
ec6a6fbe
AK
8961ac_res=`eval 'as_val=${'$as_ac_var'}
8962 $as_echo "$as_val"'`
8963 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8964$as_echo "$ac_res" >&6; }
8965as_val=`eval 'as_val=${'$as_ac_var'}
8966 $as_echo "$as_val"'`
8967 if test "x$as_val" = x""yes; then
d0191583 8968 cat >>confdefs.h <<_ACEOF
ec6a6fbe 8969#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
d0191583 8970_ACEOF
7a197a62 8971
ec6a6fbe
AK
8972{ $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
8973$as_echo_n "checking for _doprnt... " >&6; }
d0191583 8974if test "${ac_cv_func__doprnt+set}" = set; then
ec6a6fbe 8975 $as_echo_n "(cached) " >&6
ad6254c5 8976else
d0191583
JM
8977 cat >conftest.$ac_ext <<_ACEOF
8978/* confdefs.h. */
8979_ACEOF
8980cat confdefs.h >>conftest.$ac_ext
8981cat >>conftest.$ac_ext <<_ACEOF
8982/* end confdefs.h. */
8983/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
8984 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8985#define _doprnt innocuous__doprnt
7a197a62 8986
d0191583
JM
8987/* System header to define __stub macros and hopefully few prototypes,
8988 which can conflict with char _doprnt (); below.
8989 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8990 <limits.h> exists even on freestanding compilers. */
ad6254c5 8991
d0191583
JM
8992#ifdef __STDC__
8993# include <limits.h>
8994#else
8995# include <assert.h>
8996#endif
72b2cb61 8997
d0191583
JM
8998#undef _doprnt
8999
9000/* Override any GCC internal prototype to avoid an error.
9001 Use char because int might match the return type of a GCC
9002 builtin and then its argument prototype would still apply. */
9003#ifdef __cplusplus
9004extern "C"
9005#endif
9006char _doprnt ();
9007/* The GNU C library defines this for functions which it implements
9008 to always fail with ENOSYS. Some functions are actually named
9009 something starting with __ and the normal name is an alias. */
9010#if defined __stub__doprnt || defined __stub____doprnt
9011choke me
9012#endif
9013
9014int
9015main ()
9016{
9017return _doprnt ();
9018 ;
9019 return 0;
9020}
72b2cb61 9021_ACEOF
d0191583
JM
9022rm -f conftest.$ac_objext conftest$ac_exeext
9023if { (ac_try="$ac_link"
9024case "(($ac_try" in
9025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9026 *) ac_try_echo=$ac_try;;
9027esac
ec6a6fbe
AK
9028eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9029$as_echo "$ac_try_echo") >&5
d0191583
JM
9030 (eval "$ac_link") 2>conftest.er1
9031 ac_status=$?
9032 grep -v '^ *+' conftest.er1 >conftest.err
9033 rm -f conftest.er1
9034 cat conftest.err >&5
ec6a6fbe 9035 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
9036 (exit $ac_status); } && {
9037 test -z "$ac_c_werror_flag" ||
9038 test ! -s conftest.err
ec6a6fbe
AK
9039 } && test -s conftest$ac_exeext && {
9040 test "$cross_compiling" = yes ||
9041 $as_test_x conftest$ac_exeext
9042 }; then
d0191583
JM
9043 ac_cv_func__doprnt=yes
9044else
ec6a6fbe 9045 $as_echo "$as_me: failed program was:" >&5
d0191583 9046sed 's/^/| /' conftest.$ac_ext >&5
72b2cb61 9047
d0191583 9048 ac_cv_func__doprnt=no
ad6254c5
AK
9049fi
9050
ec6a6fbe 9051rm -rf conftest.dSYM
d0191583
JM
9052rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9053 conftest$ac_exeext conftest.$ac_ext
7a197a62 9054fi
ec6a6fbe
AK
9055{ $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
9056$as_echo "$ac_cv_func__doprnt" >&6; }
9057if test "x$ac_cv_func__doprnt" = x""yes; then
7a197a62 9058
d0191583
JM
9059cat >>confdefs.h <<\_ACEOF
9060#define HAVE_DOPRNT 1
9061_ACEOF
ad6254c5 9062
7a197a62
AK
9063fi
9064
d0191583
JM
9065fi
9066done
8b1a3214 9067
ad6254c5 9068
7a197a62 9069
9c961554 9070################################################################################
ec6a6fbe
AK
9071{ $as_echo "$as_me:$LINENO: checking whether to use static linking" >&5
9072$as_echo_n "checking whether to use static linking... " >&6; }
9c961554
MB
9073# Check whether --enable-static_link was given.
9074if test "${enable_static_link+set}" = set; then
9075 enableval=$enable_static_link; STATIC_LINK=$enableval
9076else
9077 STATIC_LINK=no
9078fi
9079
ec6a6fbe
AK
9080{ $as_echo "$as_me:$LINENO: result: $STATIC_LINK" >&5
9081$as_echo "$STATIC_LINK" >&6; }
9c961554 9082
d0191583 9083################################################################################
ad6254c5 9084
ad6254c5
AK
9085
9086################################################################################
ec6a6fbe
AK
9087{ $as_echo "$as_me:$LINENO: checking file owner" >&5
9088$as_echo_n "checking file owner... " >&6; }
d0191583
JM
9089
9090# Check whether --with-user was given.
9091if test "${with_user+set}" = set; then
9092 withval=$with_user; OWNER="$withval"
7a197a62
AK
9093fi
9094
ec6a6fbe
AK
9095{ $as_echo "$as_me:$LINENO: result: $OWNER" >&5
9096$as_echo "$OWNER" >&6; }
ad6254c5 9097
d0191583 9098if test x$OWNER != x; then
23b059e7 9099 INSTALL="$INSTALL -o $OWNER"
ad6254c5
AK
9100fi
9101
9102################################################################################
ec6a6fbe
AK
9103{ $as_echo "$as_me:$LINENO: checking group owner" >&5
9104$as_echo_n "checking group owner... " >&6; }
ad6254c5 9105
d0191583
JM
9106# Check whether --with-group was given.
9107if test "${with_group+set}" = set; then
9108 withval=$with_group; GROUP="$withval"
7a197a62
AK
9109fi
9110
ec6a6fbe
AK
9111{ $as_echo "$as_me:$LINENO: result: $GROUP" >&5
9112$as_echo "$GROUP" >&6; }
d0191583
JM
9113
9114if test x$GROUP != x; then
23b059e7 9115 INSTALL="$INSTALL -g $GROUP"
d0191583 9116fi
ad6254c5 9117
24bbc4d7 9118################################################################################
ec6a6fbe
AK
9119{ $as_echo "$as_me:$LINENO: checking device node uid" >&5
9120$as_echo_n "checking device node uid... " >&6; }
24bbc4d7
AK
9121
9122
9123# Check whether --with-device-uid was given.
9124if test "${with_device_uid+set}" = set; then
9125 withval=$with_device_uid; DM_DEVICE_UID="$withval"
9126else
9127 DM_DEVICE_UID="0"
9128fi
9129
ec6a6fbe
AK
9130{ $as_echo "$as_me:$LINENO: result: $DM_DEVICE_UID" >&5
9131$as_echo "$DM_DEVICE_UID" >&6; }
24bbc4d7
AK
9132
9133################################################################################
ec6a6fbe
AK
9134{ $as_echo "$as_me:$LINENO: checking device node gid" >&5
9135$as_echo_n "checking device node gid... " >&6; }
24bbc4d7
AK
9136
9137
9138# Check whether --with-device-gid was given.
9139if test "${with_device_gid+set}" = set; then
9140 withval=$with_device_gid; DM_DEVICE_GID="$withval"
9141else
9142 DM_DEVICE_GID="0"
9143fi
9144
ec6a6fbe
AK
9145{ $as_echo "$as_me:$LINENO: result: $DM_DEVICE_GID" >&5
9146$as_echo "$DM_DEVICE_GID" >&6; }
24bbc4d7 9147
93bd259b 9148################################################################################
ec6a6fbe
AK
9149{ $as_echo "$as_me:$LINENO: checking device node mode" >&5
9150$as_echo_n "checking device node mode... " >&6; }
93bd259b
AK
9151
9152
9153# Check whether --with-device-mode was given.
9154if test "${with_device_mode+set}" = set; then
9155 withval=$with_device_mode; DM_DEVICE_MODE="$withval"
9156else
9157 DM_DEVICE_MODE="0600"
9158fi
9159
ec6a6fbe
AK
9160{ $as_echo "$as_me:$LINENO: result: $DM_DEVICE_MODE" >&5
9161$as_echo "$DM_DEVICE_MODE" >&6; }
93bd259b 9162
ad6254c5 9163################################################################################
ec6a6fbe
AK
9164{ $as_echo "$as_me:$LINENO: checking whether to enable lvm1 fallback" >&5
9165$as_echo_n "checking whether to enable lvm1 fallback... " >&6; }
d0191583
JM
9166# Check whether --enable-lvm1_fallback was given.
9167if test "${enable_lvm1_fallback+set}" = set; then
9168 enableval=$enable_lvm1_fallback; LVM1_FALLBACK=$enableval
9169else
9170 LVM1_FALLBACK=no
7a197a62
AK
9171fi
9172
ec6a6fbe
AK
9173{ $as_echo "$as_me:$LINENO: result: $LVM1_FALLBACK" >&5
9174$as_echo "$LVM1_FALLBACK" >&6; }
ad6254c5 9175
d0191583 9176if test x$LVM1_FALLBACK = xyes; then
72b2cb61
AK
9177
9178cat >>confdefs.h <<\_ACEOF
d0191583 9179#define LVM1_FALLBACK 1
72b2cb61
AK
9180_ACEOF
9181
ad6254c5
AK
9182fi
9183
9184################################################################################
ec6a6fbe
AK
9185{ $as_echo "$as_me:$LINENO: checking whether to include support for lvm1 metadata" >&5
9186$as_echo_n "checking whether to include support for lvm1 metadata... " >&6; }
d0191583
JM
9187
9188# Check whether --with-lvm1 was given.
9189if test "${with_lvm1+set}" = set; then
9190 withval=$with_lvm1; LVM1="$withval"
9191else
9192 LVM1="internal"
7a197a62
AK
9193fi
9194
ec6a6fbe
AK
9195{ $as_echo "$as_me:$LINENO: result: $LVM1" >&5
9196$as_echo "$LVM1" >&6; }
ad6254c5 9197
d0191583 9198if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ];
ec6a6fbe 9199 then { { $as_echo "$as_me:$LINENO: error: --with-lvm1 parameter invalid
d0191583 9200" >&5
ec6a6fbe 9201$as_echo "$as_me: error: --with-lvm1 parameter invalid
d0191583
JM
9202" >&2;}
9203 { (exit 1); exit 1; }; }
9204fi;
9205
9206if test x$LVM1 = xinternal; then
72b2cb61
AK
9207
9208cat >>confdefs.h <<\_ACEOF
d0191583 9209#define LVM1_INTERNAL 1
72b2cb61
AK
9210_ACEOF
9211
ad6254c5
AK
9212fi
9213
9214################################################################################
ec6a6fbe
AK
9215{ $as_echo "$as_me:$LINENO: checking whether to include support for GFS pool metadata" >&5
9216$as_echo_n "checking whether to include support for GFS pool metadata... " >&6; }
d0191583
JM
9217
9218# Check whether --with-pool was given.
9219if test "${with_pool+set}" = set; then
9220 withval=$with_pool; POOL="$withval"
ad6254c5 9221else
d0191583 9222 POOL="internal"
7a197a62
AK
9223fi
9224
ec6a6fbe
AK
9225{ $as_echo "$as_me:$LINENO: result: $POOL" >&5
9226$as_echo "$POOL" >&6; }
ad6254c5 9227
d0191583 9228if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ];
ec6a6fbe 9229 then { { $as_echo "$as_me:$LINENO: error: --with-pool parameter invalid
d0191583 9230" >&5
ec6a6fbe 9231$as_echo "$as_me: error: --with-pool parameter invalid
d0191583
JM
9232" >&2;}
9233 { (exit 1); exit 1; }; }
9234fi;
7a197a62 9235
d0191583
JM
9236if test x$POOL = xinternal; then
9237
9238cat >>confdefs.h <<\_ACEOF
9239#define POOL_INTERNAL 1
9240_ACEOF
9241
9242fi
ad6254c5 9243
06f62ad1 9244################################################################################
ec6a6fbe
AK
9245{ $as_echo "$as_me:$LINENO: checking whether to include support for cluster locking" >&5
9246$as_echo_n "checking whether to include support for cluster locking... " >&6; }
d0191583
JM
9247
9248# Check whether --with-cluster was given.
9249if test "${with_cluster+set}" = set; then
9250 withval=$with_cluster; CLUSTER="$withval"
7a197a62
AK
9251fi
9252
ec6a6fbe
AK
9253{ $as_echo "$as_me:$LINENO: result: $CLUSTER" >&5
9254$as_echo "$CLUSTER" >&6; }
06f62ad1 9255
d0191583 9256if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ];
ec6a6fbe 9257 then { { $as_echo "$as_me:$LINENO: error: --with-cluster parameter invalid
06f62ad1 9258" >&5
ec6a6fbe 9259$as_echo "$as_me: error: --with-cluster parameter invalid
06f62ad1
AK
9260" >&2;}
9261 { (exit 1); exit 1; }; }
d0191583 9262fi;
06f62ad1 9263
d0191583 9264if test x$CLUSTER = xinternal; then
72b2cb61
AK
9265
9266cat >>confdefs.h <<\_ACEOF
d0191583 9267#define CLUSTER_LOCKING_INTERNAL 1
72b2cb61
AK
9268_ACEOF
9269
15d91f5a 9270fi
ad6254c5
AK
9271
9272################################################################################
ec6a6fbe
AK
9273{ $as_echo "$as_me:$LINENO: checking whether to include snapshots" >&5
9274$as_echo_n "checking whether to include snapshots... " >&6; }
ad6254c5 9275
d0191583
JM
9276# Check whether --with-snapshots was given.
9277if test "${with_snapshots+set}" = set; then
9278 withval=$with_snapshots; SNAPSHOTS="$withval"
9279else
9280 SNAPSHOTS="internal"
ad6254c5
AK
9281fi
9282
ec6a6fbe
AK
9283{ $as_echo "$as_me:$LINENO: result: $SNAPSHOTS" >&5
9284$as_echo "$SNAPSHOTS" >&6; }
ad6254c5 9285
d0191583 9286if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ];
ec6a6fbe 9287 then { { $as_echo "$as_me:$LINENO: error: --with-snapshots parameter invalid
d0191583 9288" >&5
ec6a6fbe 9289$as_echo "$as_me: error: --with-snapshots parameter invalid
d0191583
JM
9290" >&2;}
9291 { (exit 1); exit 1; }; }
9292fi;
9293
9294if test x$SNAPSHOTS = xinternal; then
9295
9296cat >>confdefs.h <<\_ACEOF
9297#define SNAPSHOT_INTERNAL 1
9298_ACEOF
ad6254c5 9299
ad6254c5 9300fi
7a197a62 9301
d0191583 9302################################################################################
ec6a6fbe
AK
9303{ $as_echo "$as_me:$LINENO: checking whether to include mirrors" >&5
9304$as_echo_n "checking whether to include mirrors... " >&6; }
d0191583
JM
9305
9306# Check whether --with-mirrors was given.
9307if test "${with_mirrors+set}" = set; then
9308 withval=$with_mirrors; MIRRORS="$withval"
9309else
9310 MIRRORS="internal"
ad6254c5 9311fi
ad6254c5 9312
ec6a6fbe
AK
9313{ $as_echo "$as_me:$LINENO: result: $MIRRORS" >&5
9314$as_echo "$MIRRORS" >&6; }
ad6254c5 9315
d0191583 9316if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ];
ec6a6fbe 9317 then { { $as_echo "$as_me:$LINENO: error: --with-mirrors parameter invalid
d0191583 9318" >&5
ec6a6fbe 9319$as_echo "$as_me: error: --with-mirrors parameter invalid
d0191583
JM
9320" >&2;}
9321 { (exit 1); exit 1; }; }
9322fi;
ad6254c5 9323
d0191583 9324if test x$MIRRORS = xinternal; then
ad6254c5 9325
d0191583
JM
9326cat >>confdefs.h <<\_ACEOF
9327#define MIRRORED_INTERNAL 1
ad6254c5 9328_ACEOF
8a2fc586 9329
d0191583 9330fi
8a2fc586 9331
d0191583 9332################################################################################
ec6a6fbe
AK
9333{ $as_echo "$as_me:$LINENO: checking whether to enable readline" >&5
9334$as_echo_n "checking whether to enable readline... " >&6; }
d0191583
JM
9335# Check whether --enable-readline was given.
9336if test "${enable_readline+set}" = set; then
9337 enableval=$enable_readline; READLINE=$enableval
9338else
06e459df 9339 READLINE=maybe
d0191583 9340fi
8a2fc586 9341
ec6a6fbe
AK
9342{ $as_echo "$as_me:$LINENO: result: $READLINE" >&5
9343$as_echo "$READLINE" >&6; }
8a2fc586 9344
d0191583 9345################################################################################
ec6a6fbe
AK
9346{ $as_echo "$as_me:$LINENO: checking whether to enable realtime support" >&5
9347$as_echo_n "checking whether to enable realtime support... " >&6; }
d0191583
JM
9348# Check whether --enable-realtime was given.
9349if test "${enable_realtime+set}" = set; then
9350 enableval=$enable_realtime; REALTIME=$enableval
ad6254c5 9351fi
ad6254c5 9352
ec6a6fbe
AK
9353{ $as_echo "$as_me:$LINENO: result: $REALTIME" >&5
9354$as_echo "$REALTIME" >&6; }
d0191583
JM
9355
9356################################################################################
90c80887 9357pkg_config_init() {
e2997b73
AK
9358
9359
9360if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
9361 if test -n "$ac_tool_prefix"; then
9362 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
9363set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
9364{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9365$as_echo_n "checking for $ac_word... " >&6; }
9366if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9367 $as_echo_n "(cached) " >&6
9368else
9369 case $PKG_CONFIG in
9370 [\\/]* | ?:[\\/]*)
9371 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9372 ;;
9373 *)
9374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9375for as_dir in $PATH
9376do
9377 IFS=$as_save_IFS
9378 test -z "$as_dir" && as_dir=.
9379 for ac_exec_ext in '' $ac_executable_extensions; do
9380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9381 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9382 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9383 break 2
9384 fi
9385done
9386done
9387IFS=$as_save_IFS
9388
9389 ;;
9390esac
9391fi
9392PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9393if test -n "$PKG_CONFIG"; then
9394 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9395$as_echo "$PKG_CONFIG" >&6; }
9396else
9397 { $as_echo "$as_me:$LINENO: result: no" >&5
9398$as_echo "no" >&6; }
9399fi
9400
9401
9402fi
9403if test -z "$ac_cv_path_PKG_CONFIG"; then
9404 ac_pt_PKG_CONFIG=$PKG_CONFIG
9405 # Extract the first word of "pkg-config", so it can be a program name with args.
9406set dummy pkg-config; ac_word=$2
9407{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9408$as_echo_n "checking for $ac_word... " >&6; }
9409if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
9410 $as_echo_n "(cached) " >&6
9411else
9412 case $ac_pt_PKG_CONFIG in
9413 [\\/]* | ?:[\\/]*)
9414 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
9415 ;;
9416 *)
9417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9418for as_dir in $PATH
9419do
9420 IFS=$as_save_IFS
9421 test -z "$as_dir" && as_dir=.
9422 for ac_exec_ext in '' $ac_executable_extensions; do
9423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9424 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9425 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9426 break 2
9427 fi
9428done
9429done
9430IFS=$as_save_IFS
9431
9432 ;;
9433esac
9434fi
9435ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
9436if test -n "$ac_pt_PKG_CONFIG"; then
9437 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
9438$as_echo "$ac_pt_PKG_CONFIG" >&6; }
9439else
9440 { $as_echo "$as_me:$LINENO: result: no" >&5
9441$as_echo "no" >&6; }
9442fi
9443
9444 if test "x$ac_pt_PKG_CONFIG" = x; then
9445 PKG_CONFIG=""
9446 else
9447 case $cross_compiling:$ac_tool_warned in
9448yes:)
9449{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9450$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9451ac_tool_warned=yes ;;
9452esac
9453 PKG_CONFIG=$ac_pt_PKG_CONFIG
9454 fi
9455else
9456 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
9457fi
9458
9459fi
9460if test -n "$PKG_CONFIG"; then
9461 _pkg_min_version=0.9.0
9462 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
9463$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
9464 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
9465 { $as_echo "$as_me:$LINENO: result: yes" >&5
9466$as_echo "yes" >&6; }
9467 else
9468 { $as_echo "$as_me:$LINENO: result: no" >&5
9469$as_echo "no" >&6; }
9470 PKG_CONFIG=""
9471 fi
9472
9473fi
9474
9475pkg_failed=no
a946372e
AK
9476{ $as_echo "$as_me:$LINENO: checking for PKGCONFIGINIT" >&5
9477$as_echo_n "checking for PKGCONFIGINIT... " >&6; }
e2997b73 9478
a946372e
AK
9479if test -n "$PKGCONFIGINIT_CFLAGS"; then
9480 pkg_cv_PKGCONFIGINIT_CFLAGS="$PKGCONFIGINIT_CFLAGS"
e2997b73
AK
9481 elif test -n "$PKG_CONFIG"; then
9482 if test -n "$PKG_CONFIG" && \
a946372e
AK
9483 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\"") >&5
9484 ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5
e2997b73
AK
9485 ac_status=$?
9486 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9487 (exit $ac_status); }; then
a946372e 9488 pkg_cv_PKGCONFIGINIT_CFLAGS=`$PKG_CONFIG --cflags "pkgconfiginit" 2>/dev/null`
e2997b73
AK
9489else
9490 pkg_failed=yes
9491fi
9492 else
9493 pkg_failed=untried
9494fi
a946372e
AK
9495if test -n "$PKGCONFIGINIT_LIBS"; then
9496 pkg_cv_PKGCONFIGINIT_LIBS="$PKGCONFIGINIT_LIBS"
e2997b73
AK
9497 elif test -n "$PKG_CONFIG"; then
9498 if test -n "$PKG_CONFIG" && \
a946372e
AK
9499 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\"") >&5
9500 ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5
e2997b73
AK
9501 ac_status=$?
9502 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9503 (exit $ac_status); }; then
a946372e 9504 pkg_cv_PKGCONFIGINIT_LIBS=`$PKG_CONFIG --libs "pkgconfiginit" 2>/dev/null`
e2997b73
AK
9505else
9506 pkg_failed=yes
9507fi
9508 else
9509 pkg_failed=untried
9510fi
9511
9512
9513
9514if test $pkg_failed = yes; then
9515
9516if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9517 _pkg_short_errors_supported=yes
9518else
9519 _pkg_short_errors_supported=no
9520fi
9521 if test $_pkg_short_errors_supported = yes; then
a946372e 9522 PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pkgconfiginit" 2>&1`
e2997b73 9523 else
a946372e 9524 PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "pkgconfiginit" 2>&1`
e2997b73
AK
9525 fi
9526 # Put the nasty error message in config.log where it belongs
a946372e 9527 echo "$PKGCONFIGINIT_PKG_ERRORS" >&5
e2997b73
AK
9528
9529 { $as_echo "$as_me:$LINENO: result: no" >&5
9530$as_echo "no" >&6; }
a946372e
AK
9531 { $as_echo "$as_me:$LINENO: result: pkg-config initialized" >&5
9532$as_echo "pkg-config initialized" >&6; }
e2997b73 9533elif test $pkg_failed = untried; then
a946372e
AK
9534 { $as_echo "$as_me:$LINENO: result: pkg-config initialized" >&5
9535$as_echo "pkg-config initialized" >&6; }
e2997b73 9536else
a946372e
AK
9537 PKGCONFIGINIT_CFLAGS=$pkg_cv_PKGCONFIGINIT_CFLAGS
9538 PKGCONFIGINIT_LIBS=$pkg_cv_PKGCONFIGINIT_LIBS
e2997b73
AK
9539 { $as_echo "$as_me:$LINENO: result: yes" >&5
9540$as_echo "yes" >&6; }
9541 :
9542fi
90c80887
AK
9543 PKGCONFIG_INIT=1
9544}
9545
9546################################################################################
9547{ $as_echo "$as_me:$LINENO: checking whether to build cluster LVM daemon" >&5
9548$as_echo_n "checking whether to build cluster LVM daemon... " >&6; }
9549
9550# Check whether --with-clvmd was given.
9551if test "${with_clvmd+set}" = set; then
9552 withval=$with_clvmd; CLVMD="$withval"
9553else
9554 CLVMD="none"
9555fi
9556
9557if test x$CLVMD = xyes; then
9558 CLVMD=all
9559fi
9560{ $as_echo "$as_me:$LINENO: result: $CLVMD" >&5
9561$as_echo "$CLVMD" >&6; }
9562
9563if test x$CLVMD != xnone && test x$CLUSTER = xnone; then
9564 CLUSTER=internal
9565fi
9566
9567if test x$CLVMD != xnone && test x$PKGCONFIG_INIT != x1; then
9568 pkg_config_init
9569fi
9570
9571
9572if [ `expr x"$CLVMD" : '.*gulm.*'` != 0 ]; then
9573 BUILDGULM=yes
9574fi
9575if [ `expr x"$CLVMD" : '.*corosync.*'` != 0 ]; then
9576 BUILDCOROSYNC=yes
9577fi
9578if [ `expr x"$CLVMD" : '.*openais.*'` != 0 ]; then
9579 BUILDOPENAIS=yes
9580fi
9581if [ `expr x"$CLVMD" : '.*cman.*'` != 0 ]; then
9582 BUILDCMAN=yes
9583fi
9584
9585if test x$BUILDGULM = xyes; then
9586 if test x$BUILDCOROSYNC = xyes || \
9587 test x$BUILDOPENAIS = xyes; then
9588 { { $as_echo "$as_me:$LINENO: error: requested clvmd configuration is not valid" >&5
9589$as_echo "$as_me: error: requested clvmd configuration is not valid" >&2;}
9590 { (exit 1); exit 1; }; }
9591 fi
a946372e 9592fi
e2997b73 9593
a946372e
AK
9594soft_bailout() {
9595 NOTFOUND=1
9596}
e2997b73 9597
a946372e
AK
9598hard_bailout() {
9599 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
9600$as_echo "$as_me: error: bailing out" >&2;}
9601 { (exit 1); exit 1; }; }
9602}
9603
9604if test x$CLVMD = xall; then
9605 bailout=soft_bailout
9606 BUILDGULM=yes
9607 BUILDCMAN=yes
9608 BUILDCOROSYNC=yes
9609 BUILDOPENAIS=yes
e2997b73 9610else
a946372e 9611 bailout=hard_bailout
e2997b73 9612fi
a946372e
AK
9613
9614check_lib_no_libs() {
9615 lib_no_libs_arg1=$1
9616 shift
9617 lib_no_libs_arg2=$1
9618 shift
9619 lib_no_libs_args=$@
9620
9621as_ac_Lib=`$as_echo "ac_cv_lib_$lib_no_libs_arg1''_$lib_no_libs_arg2" | $as_tr_sh`
9622{ $as_echo "$as_me:$LINENO: checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1" >&5
9623$as_echo_n "checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1... " >&6; }
9624if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
9625 $as_echo_n "(cached) " >&6
9626else
9627 ac_check_lib_save_LIBS=$LIBS
9628LIBS="-l$lib_no_libs_arg1 $lib_no_libs_args $LIBS"
9629cat >conftest.$ac_ext <<_ACEOF
9630/* confdefs.h. */
9631_ACEOF
9632cat confdefs.h >>conftest.$ac_ext
9633cat >>conftest.$ac_ext <<_ACEOF
9634/* end confdefs.h. */
9635
9636/* Override any GCC internal prototype to avoid an error.
9637 Use char because int might match the return type of a GCC
9638 builtin and then its argument prototype would still apply. */
9639#ifdef __cplusplus
9640extern "C"
9641#endif
9642char $lib_no_libs_arg2 ();
9643int
9644main ()
9645{
9646return $lib_no_libs_arg2 ();
9647 ;
9648 return 0;
9649}
9650_ACEOF
9651rm -f conftest.$ac_objext conftest$ac_exeext
9652if { (ac_try="$ac_link"
9653case "(($ac_try" in
9654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9655 *) ac_try_echo=$ac_try;;
9656esac
9657eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9658$as_echo "$ac_try_echo") >&5
9659 (eval "$ac_link") 2>conftest.er1
e2997b73 9660 ac_status=$?
a946372e
AK
9661 grep -v '^ *+' conftest.er1 >conftest.err
9662 rm -f conftest.er1
9663 cat conftest.err >&5
e2997b73 9664 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
a946372e
AK
9665 (exit $ac_status); } && {
9666 test -z "$ac_c_werror_flag" ||
9667 test ! -s conftest.err
9668 } && test -s conftest$ac_exeext && {
9669 test "$cross_compiling" = yes ||
9670 $as_test_x conftest$ac_exeext
9671 }; then
9672 eval "$as_ac_Lib=yes"
e2997b73 9673else
a946372e
AK
9674 $as_echo "$as_me: failed program was:" >&5
9675sed 's/^/| /' conftest.$ac_ext >&5
e2997b73 9676
a946372e
AK
9677 eval "$as_ac_Lib=no"
9678fi
e2997b73 9679
a946372e
AK
9680rm -rf conftest.dSYM
9681rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9682 conftest$ac_exeext conftest.$ac_ext
9683LIBS=$ac_check_lib_save_LIBS
9684fi
9685ac_res=`eval 'as_val=${'$as_ac_Lib'}
9686 $as_echo "$as_val"'`
9687 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9688$as_echo "$ac_res" >&6; }
9689as_val=`eval 'as_val=${'$as_ac_Lib'}
9690 $as_echo "$as_val"'`
9691 if test "x$as_val" = x""yes; then
9692 cat >>confdefs.h <<_ACEOF
9693#define `$as_echo "HAVE_LIB$lib_no_libs_arg1" | $as_tr_cpp` 1
9694_ACEOF
e2997b73 9695
a946372e 9696 LIBS="-l$lib_no_libs_arg1 $LIBS"
e2997b73 9697
e2997b73 9698else
a946372e 9699 $bailout
e2997b73 9700fi
e2997b73 9701
a946372e
AK
9702 LIBS=$ac_check_lib_save_LIBS
9703}
9704
9705if test x$BUILDGULM = xyes; then
e2997b73
AK
9706
9707pkg_failed=no
a946372e
AK
9708{ $as_echo "$as_me:$LINENO: checking for CCS" >&5
9709$as_echo_n "checking for CCS... " >&6; }
e2997b73 9710
a946372e
AK
9711if test -n "$CCS_CFLAGS"; then
9712 pkg_cv_CCS_CFLAGS="$CCS_CFLAGS"
e2997b73
AK
9713 elif test -n "$PKG_CONFIG"; then
9714 if test -n "$PKG_CONFIG" && \
a946372e
AK
9715 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libccs\"") >&5
9716 ($PKG_CONFIG --exists --print-errors "libccs") 2>&5
e2997b73
AK
9717 ac_status=$?
9718 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9719 (exit $ac_status); }; then
a946372e 9720 pkg_cv_CCS_CFLAGS=`$PKG_CONFIG --cflags "libccs" 2>/dev/null`
e2997b73
AK
9721else
9722 pkg_failed=yes
9723fi
9724 else
9725 pkg_failed=untried
9726fi
a946372e
AK
9727if test -n "$CCS_LIBS"; then
9728 pkg_cv_CCS_LIBS="$CCS_LIBS"
e2997b73
AK
9729 elif test -n "$PKG_CONFIG"; then
9730 if test -n "$PKG_CONFIG" && \
a946372e
AK
9731 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libccs\"") >&5
9732 ($PKG_CONFIG --exists --print-errors "libccs") 2>&5
e2997b73
AK
9733 ac_status=$?
9734 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9735 (exit $ac_status); }; then
a946372e 9736 pkg_cv_CCS_LIBS=`$PKG_CONFIG --libs "libccs" 2>/dev/null`
e2997b73
AK
9737else
9738 pkg_failed=yes
9739fi
9740 else
9741 pkg_failed=untried
9742fi
9743
9744
9745
9746if test $pkg_failed = yes; then
9747
9748if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9749 _pkg_short_errors_supported=yes
9750else
9751 _pkg_short_errors_supported=no
9752fi
9753 if test $_pkg_short_errors_supported = yes; then
a946372e 9754 CCS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libccs" 2>&1`
e2997b73 9755 else
a946372e 9756 CCS_PKG_ERRORS=`$PKG_CONFIG --print-errors "libccs" 2>&1`
e2997b73
AK
9757 fi
9758 # Put the nasty error message in config.log where it belongs
a946372e 9759 echo "$CCS_PKG_ERRORS" >&5
e2997b73
AK
9760
9761 { $as_echo "$as_me:$LINENO: result: no" >&5
9762$as_echo "no" >&6; }
a946372e 9763 NOTFOUND=0
e2997b73 9764
a946372e
AK
9765for ac_header in ccs.h
9766do
9767as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9768if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9769 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9770$as_echo_n "checking for $ac_header... " >&6; }
9771if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9772 $as_echo_n "(cached) " >&6
d0191583 9773fi
a946372e
AK
9774ac_res=`eval 'as_val=${'$as_ac_Header'}
9775 $as_echo "$as_val"'`
9776 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9777$as_echo "$ac_res" >&6; }
fc54be10 9778else
a946372e
AK
9779 # Is the header compilable?
9780{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9781$as_echo_n "checking $ac_header usability... " >&6; }
9782cat >conftest.$ac_ext <<_ACEOF
9783/* confdefs.h. */
9784_ACEOF
9785cat confdefs.h >>conftest.$ac_ext
9786cat >>conftest.$ac_ext <<_ACEOF
9787/* end confdefs.h. */
9788$ac_includes_default
9789#include <$ac_header>
9790_ACEOF
9791rm -f conftest.$ac_objext
9792if { (ac_try="$ac_compile"
9793case "(($ac_try" in
9794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9795 *) ac_try_echo=$ac_try;;
9796esac
9797eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9798$as_echo "$ac_try_echo") >&5
9799 (eval "$ac_compile") 2>conftest.er1
9800 ac_status=$?
9801 grep -v '^ *+' conftest.er1 >conftest.err
9802 rm -f conftest.er1
9803 cat conftest.err >&5
9804 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9805 (exit $ac_status); } && {
9806 test -z "$ac_c_werror_flag" ||
9807 test ! -s conftest.err
9808 } && test -s conftest.$ac_objext; then
9809 ac_header_compiler=yes
9810else
9811 $as_echo "$as_me: failed program was:" >&5
9812sed 's/^/| /' conftest.$ac_ext >&5
d0191583 9813
a946372e 9814 ac_header_compiler=no
d0191583
JM
9815fi
9816
a946372e
AK
9817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9818{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9819$as_echo "$ac_header_compiler" >&6; }
fddafd51 9820
a946372e
AK
9821# Is the header present?
9822{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9823$as_echo_n "checking $ac_header presence... " >&6; }
9824cat >conftest.$ac_ext <<_ACEOF
9825/* confdefs.h. */
9826_ACEOF
9827cat confdefs.h >>conftest.$ac_ext
9828cat >>conftest.$ac_ext <<_ACEOF
9829/* end confdefs.h. */
9830#include <$ac_header>
9831_ACEOF
9832if { (ac_try="$ac_cpp conftest.$ac_ext"
9833case "(($ac_try" in
9834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9835 *) ac_try_echo=$ac_try;;
9836esac
9837eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9838$as_echo "$ac_try_echo") >&5
9839 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9840 ac_status=$?
9841 grep -v '^ *+' conftest.er1 >conftest.err
9842 rm -f conftest.er1
9843 cat conftest.err >&5
9844 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9845 (exit $ac_status); } >/dev/null && {
9846 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9847 test ! -s conftest.err
9848 }; then
9849 ac_header_preproc=yes
9850else
9851 $as_echo "$as_me: failed program was:" >&5
9852sed 's/^/| /' conftest.$ac_ext >&5
9853
9854 ac_header_preproc=no
9855fi
9856
9857rm -f conftest.err conftest.$ac_ext
9858{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9859$as_echo "$ac_header_preproc" >&6; }
9860
9861# So? What about this header?
9862case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9863 yes:no: )
9864 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9865$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9866 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9867$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9868 ac_header_preproc=yes
9869 ;;
9870 no:yes:* )
9871 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9872$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9873 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9874$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9875 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9876$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9877 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9878$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9879 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9880$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9881 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9882$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9883
9884 ;;
9885esac
9886{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9887$as_echo_n "checking for $ac_header... " >&6; }
9888if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9889 $as_echo_n "(cached) " >&6
9890else
9891 eval "$as_ac_Header=\$ac_header_preproc"
9892fi
9893ac_res=`eval 'as_val=${'$as_ac_Header'}
9894 $as_echo "$as_val"'`
9895 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9896$as_echo "$ac_res" >&6; }
9897
9898fi
9899as_val=`eval 'as_val=${'$as_ac_Header'}
9900 $as_echo "$as_val"'`
9901 if test "x$as_val" = x""yes; then
9902 cat >>confdefs.h <<_ACEOF
9903#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9904_ACEOF
9905
9906else
9907 $bailout
9908fi
9909
9910done
9911
9912 check_lib_no_libs ccs ccs_connect
9913 if test $NOTFOUND = 0; then
9914 { $as_echo "$as_me:$LINENO: result: no pkg for libccs, using -lccs" >&5
9915$as_echo "no pkg for libccs, using -lccs" >&6; }
9916 CCS_LIBS="-lccs"
9917 HAVE_CCS=yes
9918 fi
9919elif test $pkg_failed = untried; then
9920 NOTFOUND=0
9921
9922for ac_header in ccs.h
9923do
9924as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9925if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9926 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9927$as_echo_n "checking for $ac_header... " >&6; }
9928if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9929 $as_echo_n "(cached) " >&6
9930fi
9931ac_res=`eval 'as_val=${'$as_ac_Header'}
9932 $as_echo "$as_val"'`
9933 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9934$as_echo "$ac_res" >&6; }
9935else
9936 # Is the header compilable?
9937{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9938$as_echo_n "checking $ac_header usability... " >&6; }
9939cat >conftest.$ac_ext <<_ACEOF
9940/* confdefs.h. */
9941_ACEOF
9942cat confdefs.h >>conftest.$ac_ext
9943cat >>conftest.$ac_ext <<_ACEOF
9944/* end confdefs.h. */
9945$ac_includes_default
9946#include <$ac_header>
9947_ACEOF
9948rm -f conftest.$ac_objext
9949if { (ac_try="$ac_compile"
9950case "(($ac_try" in
9951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9952 *) ac_try_echo=$ac_try;;
9953esac
9954eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9955$as_echo "$ac_try_echo") >&5
9956 (eval "$ac_compile") 2>conftest.er1
9957 ac_status=$?
9958 grep -v '^ *+' conftest.er1 >conftest.err
9959 rm -f conftest.er1
9960 cat conftest.err >&5
9961 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9962 (exit $ac_status); } && {
9963 test -z "$ac_c_werror_flag" ||
9964 test ! -s conftest.err
9965 } && test -s conftest.$ac_objext; then
9966 ac_header_compiler=yes
9967else
9968 $as_echo "$as_me: failed program was:" >&5
9969sed 's/^/| /' conftest.$ac_ext >&5
9970
9971 ac_header_compiler=no
9972fi
9973
9974rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9975{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9976$as_echo "$ac_header_compiler" >&6; }
9977
9978# Is the header present?
9979{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9980$as_echo_n "checking $ac_header presence... " >&6; }
9981cat >conftest.$ac_ext <<_ACEOF
9982/* confdefs.h. */
9983_ACEOF
9984cat confdefs.h >>conftest.$ac_ext
9985cat >>conftest.$ac_ext <<_ACEOF
9986/* end confdefs.h. */
9987#include <$ac_header>
9988_ACEOF
9989if { (ac_try="$ac_cpp conftest.$ac_ext"
9990case "(($ac_try" in
9991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9992 *) ac_try_echo=$ac_try;;
9993esac
9994eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9995$as_echo "$ac_try_echo") >&5
9996 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9997 ac_status=$?
9998 grep -v '^ *+' conftest.er1 >conftest.err
9999 rm -f conftest.er1
10000 cat conftest.err >&5
10001 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10002 (exit $ac_status); } >/dev/null && {
10003 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10004 test ! -s conftest.err
10005 }; then
10006 ac_header_preproc=yes
10007else
10008 $as_echo "$as_me: failed program was:" >&5
10009sed 's/^/| /' conftest.$ac_ext >&5
10010
10011 ac_header_preproc=no
10012fi
10013
10014rm -f conftest.err conftest.$ac_ext
10015{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10016$as_echo "$ac_header_preproc" >&6; }
10017
10018# So? What about this header?
10019case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10020 yes:no: )
10021 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10022$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10023 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10024$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10025 ac_header_preproc=yes
10026 ;;
10027 no:yes:* )
10028 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10029$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10030 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10031$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10032 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10033$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10034 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10035$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10036 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10037$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10038 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10039$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10040
10041 ;;
10042esac
10043{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10044$as_echo_n "checking for $ac_header... " >&6; }
10045if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10046 $as_echo_n "(cached) " >&6
10047else
10048 eval "$as_ac_Header=\$ac_header_preproc"
10049fi
10050ac_res=`eval 'as_val=${'$as_ac_Header'}
10051 $as_echo "$as_val"'`
10052 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10053$as_echo "$ac_res" >&6; }
10054
10055fi
10056as_val=`eval 'as_val=${'$as_ac_Header'}
10057 $as_echo "$as_val"'`
10058 if test "x$as_val" = x""yes; then
10059 cat >>confdefs.h <<_ACEOF
10060#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10061_ACEOF
10062
10063else
10064 $bailout
10065fi
10066
10067done
10068
10069 check_lib_no_libs ccs ccs_connect
10070 if test $NOTFOUND = 0; then
10071 { $as_echo "$as_me:$LINENO: result: no pkg for libccs, using -lccs" >&5
10072$as_echo "no pkg for libccs, using -lccs" >&6; }
10073 CCS_LIBS="-lccs"
10074 HAVE_CCS=yes
10075 fi
10076else
10077 CCS_CFLAGS=$pkg_cv_CCS_CFLAGS
10078 CCS_LIBS=$pkg_cv_CCS_LIBS
10079 { $as_echo "$as_me:$LINENO: result: yes" >&5
10080$as_echo "yes" >&6; }
10081 HAVE_CCS=yes
10082fi
10083
10084pkg_failed=no
10085{ $as_echo "$as_me:$LINENO: checking for GULM" >&5
10086$as_echo_n "checking for GULM... " >&6; }
10087
10088if test -n "$GULM_CFLAGS"; then
10089 pkg_cv_GULM_CFLAGS="$GULM_CFLAGS"
10090 elif test -n "$PKG_CONFIG"; then
10091 if test -n "$PKG_CONFIG" && \
10092 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgulm\"") >&5
10093 ($PKG_CONFIG --exists --print-errors "libgulm") 2>&5
10094 ac_status=$?
10095 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10096 (exit $ac_status); }; then
10097 pkg_cv_GULM_CFLAGS=`$PKG_CONFIG --cflags "libgulm" 2>/dev/null`
10098else
10099 pkg_failed=yes
10100fi
10101 else
10102 pkg_failed=untried
10103fi
10104if test -n "$GULM_LIBS"; then
10105 pkg_cv_GULM_LIBS="$GULM_LIBS"
10106 elif test -n "$PKG_CONFIG"; then
10107 if test -n "$PKG_CONFIG" && \
10108 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgulm\"") >&5
10109 ($PKG_CONFIG --exists --print-errors "libgulm") 2>&5
10110 ac_status=$?
10111 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10112 (exit $ac_status); }; then
10113 pkg_cv_GULM_LIBS=`$PKG_CONFIG --libs "libgulm" 2>/dev/null`
10114else
10115 pkg_failed=yes
10116fi
10117 else
10118 pkg_failed=untried
10119fi
10120
10121
10122
10123if test $pkg_failed = yes; then
10124
10125if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10126 _pkg_short_errors_supported=yes
10127else
10128 _pkg_short_errors_supported=no
10129fi
10130 if test $_pkg_short_errors_supported = yes; then
10131 GULM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgulm" 2>&1`
10132 else
10133 GULM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgulm" 2>&1`
10134 fi
10135 # Put the nasty error message in config.log where it belongs
10136 echo "$GULM_PKG_ERRORS" >&5
10137
10138 { $as_echo "$as_me:$LINENO: result: no" >&5
10139$as_echo "no" >&6; }
10140 NOTFOUND=0
10141
10142for ac_header in libgulm.h
10143do
10144as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10145if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10146 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10147$as_echo_n "checking for $ac_header... " >&6; }
10148if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10149 $as_echo_n "(cached) " >&6
10150fi
10151ac_res=`eval 'as_val=${'$as_ac_Header'}
10152 $as_echo "$as_val"'`
10153 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10154$as_echo "$ac_res" >&6; }
10155else
10156 # Is the header compilable?
10157{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10158$as_echo_n "checking $ac_header usability... " >&6; }
10159cat >conftest.$ac_ext <<_ACEOF
10160/* confdefs.h. */
10161_ACEOF
10162cat confdefs.h >>conftest.$ac_ext
10163cat >>conftest.$ac_ext <<_ACEOF
10164/* end confdefs.h. */
10165$ac_includes_default
10166#include <$ac_header>
10167_ACEOF
10168rm -f conftest.$ac_objext
10169if { (ac_try="$ac_compile"
10170case "(($ac_try" in
10171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10172 *) ac_try_echo=$ac_try;;
10173esac
10174eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10175$as_echo "$ac_try_echo") >&5
10176 (eval "$ac_compile") 2>conftest.er1
10177 ac_status=$?
10178 grep -v '^ *+' conftest.er1 >conftest.err
10179 rm -f conftest.er1
10180 cat conftest.err >&5
10181 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10182 (exit $ac_status); } && {
10183 test -z "$ac_c_werror_flag" ||
10184 test ! -s conftest.err
10185 } && test -s conftest.$ac_objext; then
10186 ac_header_compiler=yes
10187else
10188 $as_echo "$as_me: failed program was:" >&5
10189sed 's/^/| /' conftest.$ac_ext >&5
10190
10191 ac_header_compiler=no
10192fi
10193
10194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10195{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10196$as_echo "$ac_header_compiler" >&6; }
10197
10198# Is the header present?
10199{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10200$as_echo_n "checking $ac_header presence... " >&6; }
10201cat >conftest.$ac_ext <<_ACEOF
10202/* confdefs.h. */
10203_ACEOF
10204cat confdefs.h >>conftest.$ac_ext
10205cat >>conftest.$ac_ext <<_ACEOF
10206/* end confdefs.h. */
10207#include <$ac_header>
10208_ACEOF
10209if { (ac_try="$ac_cpp conftest.$ac_ext"
10210case "(($ac_try" in
10211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10212 *) ac_try_echo=$ac_try;;
10213esac
10214eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10215$as_echo "$ac_try_echo") >&5
10216 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10217 ac_status=$?
10218 grep -v '^ *+' conftest.er1 >conftest.err
10219 rm -f conftest.er1
10220 cat conftest.err >&5
10221 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10222 (exit $ac_status); } >/dev/null && {
10223 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10224 test ! -s conftest.err
10225 }; then
10226 ac_header_preproc=yes
10227else
10228 $as_echo "$as_me: failed program was:" >&5
10229sed 's/^/| /' conftest.$ac_ext >&5
10230
10231 ac_header_preproc=no
10232fi
10233
10234rm -f conftest.err conftest.$ac_ext
10235{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10236$as_echo "$ac_header_preproc" >&6; }
10237
10238# So? What about this header?
10239case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10240 yes:no: )
10241 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10242$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10243 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10244$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10245 ac_header_preproc=yes
10246 ;;
10247 no:yes:* )
10248 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10249$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10250 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10251$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10252 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10253$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10254 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10255$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10256 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10257$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10258 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10259$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10260
10261 ;;
10262esac
10263{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10264$as_echo_n "checking for $ac_header... " >&6; }
10265if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10266 $as_echo_n "(cached) " >&6
10267else
10268 eval "$as_ac_Header=\$ac_header_preproc"
10269fi
10270ac_res=`eval 'as_val=${'$as_ac_Header'}
10271 $as_echo "$as_val"'`
10272 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10273$as_echo "$ac_res" >&6; }
10274
10275fi
10276as_val=`eval 'as_val=${'$as_ac_Header'}
10277 $as_echo "$as_val"'`
10278 if test "x$as_val" = x""yes; then
10279 cat >>confdefs.h <<_ACEOF
10280#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10281_ACEOF
10282
10283else
10284 $bailout
10285fi
10286
10287done
10288
10289 check_lib_no_libs gulm lg_core_login
10290 if test $NOTFOUND = 0; then
10291 { $as_echo "$as_me:$LINENO: result: no pkg for libgulm, using -lgulm" >&5
10292$as_echo "no pkg for libgulm, using -lgulm" >&6; }
10293 GULM_LIBS="-lgulm"
10294 HAVE_GULM=yes
10295 fi
10296elif test $pkg_failed = untried; then
10297 NOTFOUND=0
10298
10299for ac_header in libgulm.h
10300do
10301as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10302if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10303 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10304$as_echo_n "checking for $ac_header... " >&6; }
10305if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10306 $as_echo_n "(cached) " >&6
10307fi
10308ac_res=`eval 'as_val=${'$as_ac_Header'}
10309 $as_echo "$as_val"'`
10310 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10311$as_echo "$ac_res" >&6; }
10312else
10313 # Is the header compilable?
10314{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10315$as_echo_n "checking $ac_header usability... " >&6; }
10316cat >conftest.$ac_ext <<_ACEOF
10317/* confdefs.h. */
10318_ACEOF
10319cat confdefs.h >>conftest.$ac_ext
10320cat >>conftest.$ac_ext <<_ACEOF
10321/* end confdefs.h. */
10322$ac_includes_default
10323#include <$ac_header>
10324_ACEOF
10325rm -f conftest.$ac_objext
10326if { (ac_try="$ac_compile"
10327case "(($ac_try" in
10328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10329 *) ac_try_echo=$ac_try;;
10330esac
10331eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10332$as_echo "$ac_try_echo") >&5
10333 (eval "$ac_compile") 2>conftest.er1
10334 ac_status=$?
10335 grep -v '^ *+' conftest.er1 >conftest.err
10336 rm -f conftest.er1
10337 cat conftest.err >&5
10338 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10339 (exit $ac_status); } && {
10340 test -z "$ac_c_werror_flag" ||
10341 test ! -s conftest.err
10342 } && test -s conftest.$ac_objext; then
10343 ac_header_compiler=yes
10344else
10345 $as_echo "$as_me: failed program was:" >&5
10346sed 's/^/| /' conftest.$ac_ext >&5
10347
10348 ac_header_compiler=no
10349fi
10350
10351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10352{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10353$as_echo "$ac_header_compiler" >&6; }
10354
10355# Is the header present?
10356{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10357$as_echo_n "checking $ac_header presence... " >&6; }
10358cat >conftest.$ac_ext <<_ACEOF
10359/* confdefs.h. */
10360_ACEOF
10361cat confdefs.h >>conftest.$ac_ext
10362cat >>conftest.$ac_ext <<_ACEOF
10363/* end confdefs.h. */
10364#include <$ac_header>
10365_ACEOF
10366if { (ac_try="$ac_cpp conftest.$ac_ext"
10367case "(($ac_try" in
10368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10369 *) ac_try_echo=$ac_try;;
10370esac
10371eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10372$as_echo "$ac_try_echo") >&5
10373 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10374 ac_status=$?
10375 grep -v '^ *+' conftest.er1 >conftest.err
10376 rm -f conftest.er1
10377 cat conftest.err >&5
10378 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10379 (exit $ac_status); } >/dev/null && {
10380 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10381 test ! -s conftest.err
10382 }; then
10383 ac_header_preproc=yes
10384else
10385 $as_echo "$as_me: failed program was:" >&5
10386sed 's/^/| /' conftest.$ac_ext >&5
10387
10388 ac_header_preproc=no
10389fi
10390
10391rm -f conftest.err conftest.$ac_ext
10392{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10393$as_echo "$ac_header_preproc" >&6; }
10394
10395# So? What about this header?
10396case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10397 yes:no: )
10398 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10399$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10400 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10401$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10402 ac_header_preproc=yes
10403 ;;
10404 no:yes:* )
10405 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10406$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10407 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10408$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10409 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10410$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10411 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10412$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10413 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10414$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10415 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10416$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10417
10418 ;;
10419esac
10420{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10421$as_echo_n "checking for $ac_header... " >&6; }
10422if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10423 $as_echo_n "(cached) " >&6
10424else
10425 eval "$as_ac_Header=\$ac_header_preproc"
10426fi
10427ac_res=`eval 'as_val=${'$as_ac_Header'}
10428 $as_echo "$as_val"'`
10429 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10430$as_echo "$ac_res" >&6; }
10431
10432fi
10433as_val=`eval 'as_val=${'$as_ac_Header'}
10434 $as_echo "$as_val"'`
10435 if test "x$as_val" = x""yes; then
10436 cat >>confdefs.h <<_ACEOF
10437#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10438_ACEOF
10439
10440else
10441 $bailout
10442fi
10443
10444done
10445
10446 check_lib_no_libs gulm lg_core_login
10447 if test $NOTFOUND = 0; then
10448 { $as_echo "$as_me:$LINENO: result: no pkg for libgulm, using -lgulm" >&5
10449$as_echo "no pkg for libgulm, using -lgulm" >&6; }
10450 GULM_LIBS="-lgulm"
10451 HAVE_GULM=yes
10452 fi
10453else
10454 GULM_CFLAGS=$pkg_cv_GULM_CFLAGS
10455 GULM_LIBS=$pkg_cv_GULM_LIBS
10456 { $as_echo "$as_me:$LINENO: result: yes" >&5
10457$as_echo "yes" >&6; }
10458 HAVE_GULM=yes
10459fi
10460fi
10461
10462if test x$BUILDCMAN = xyes; then
10463
10464pkg_failed=no
10465{ $as_echo "$as_me:$LINENO: checking for CMAN" >&5
10466$as_echo_n "checking for CMAN... " >&6; }
10467
10468if test -n "$CMAN_CFLAGS"; then
10469 pkg_cv_CMAN_CFLAGS="$CMAN_CFLAGS"
10470 elif test -n "$PKG_CONFIG"; then
10471 if test -n "$PKG_CONFIG" && \
10472 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcman\"") >&5
10473 ($PKG_CONFIG --exists --print-errors "libcman") 2>&5
10474 ac_status=$?
10475 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10476 (exit $ac_status); }; then
10477 pkg_cv_CMAN_CFLAGS=`$PKG_CONFIG --cflags "libcman" 2>/dev/null`
10478else
10479 pkg_failed=yes
10480fi
10481 else
10482 pkg_failed=untried
10483fi
10484if test -n "$CMAN_LIBS"; then
10485 pkg_cv_CMAN_LIBS="$CMAN_LIBS"
10486 elif test -n "$PKG_CONFIG"; then
10487 if test -n "$PKG_CONFIG" && \
10488 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcman\"") >&5
10489 ($PKG_CONFIG --exists --print-errors "libcman") 2>&5
10490 ac_status=$?
10491 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10492 (exit $ac_status); }; then
10493 pkg_cv_CMAN_LIBS=`$PKG_CONFIG --libs "libcman" 2>/dev/null`
10494else
10495 pkg_failed=yes
10496fi
10497 else
10498 pkg_failed=untried
10499fi
10500
10501
10502
10503if test $pkg_failed = yes; then
10504
10505if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10506 _pkg_short_errors_supported=yes
10507else
10508 _pkg_short_errors_supported=no
10509fi
10510 if test $_pkg_short_errors_supported = yes; then
10511 CMAN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcman" 2>&1`
10512 else
10513 CMAN_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcman" 2>&1`
10514 fi
10515 # Put the nasty error message in config.log where it belongs
10516 echo "$CMAN_PKG_ERRORS" >&5
10517
10518 { $as_echo "$as_me:$LINENO: result: no" >&5
10519$as_echo "no" >&6; }
10520 NOTFOUND=0
10521
10522for ac_header in libcman.h
10523do
10524as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10525if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10526 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10527$as_echo_n "checking for $ac_header... " >&6; }
10528if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10529 $as_echo_n "(cached) " >&6
10530fi
10531ac_res=`eval 'as_val=${'$as_ac_Header'}
10532 $as_echo "$as_val"'`
10533 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10534$as_echo "$ac_res" >&6; }
10535else
10536 # Is the header compilable?
10537{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10538$as_echo_n "checking $ac_header usability... " >&6; }
10539cat >conftest.$ac_ext <<_ACEOF
10540/* confdefs.h. */
10541_ACEOF
10542cat confdefs.h >>conftest.$ac_ext
10543cat >>conftest.$ac_ext <<_ACEOF
10544/* end confdefs.h. */
10545$ac_includes_default
10546#include <$ac_header>
10547_ACEOF
10548rm -f conftest.$ac_objext
10549if { (ac_try="$ac_compile"
10550case "(($ac_try" in
10551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10552 *) ac_try_echo=$ac_try;;
10553esac
10554eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10555$as_echo "$ac_try_echo") >&5
10556 (eval "$ac_compile") 2>conftest.er1
10557 ac_status=$?
10558 grep -v '^ *+' conftest.er1 >conftest.err
10559 rm -f conftest.er1
10560 cat conftest.err >&5
10561 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10562 (exit $ac_status); } && {
10563 test -z "$ac_c_werror_flag" ||
10564 test ! -s conftest.err
10565 } && test -s conftest.$ac_objext; then
10566 ac_header_compiler=yes
10567else
10568 $as_echo "$as_me: failed program was:" >&5
10569sed 's/^/| /' conftest.$ac_ext >&5
10570
10571 ac_header_compiler=no
10572fi
10573
10574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10575{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10576$as_echo "$ac_header_compiler" >&6; }
10577
10578# Is the header present?
10579{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10580$as_echo_n "checking $ac_header presence... " >&6; }
10581cat >conftest.$ac_ext <<_ACEOF
10582/* confdefs.h. */
10583_ACEOF
10584cat confdefs.h >>conftest.$ac_ext
10585cat >>conftest.$ac_ext <<_ACEOF
10586/* end confdefs.h. */
10587#include <$ac_header>
10588_ACEOF
10589if { (ac_try="$ac_cpp conftest.$ac_ext"
10590case "(($ac_try" in
10591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10592 *) ac_try_echo=$ac_try;;
10593esac
10594eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10595$as_echo "$ac_try_echo") >&5
10596 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10597 ac_status=$?
10598 grep -v '^ *+' conftest.er1 >conftest.err
10599 rm -f conftest.er1
10600 cat conftest.err >&5
10601 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10602 (exit $ac_status); } >/dev/null && {
10603 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10604 test ! -s conftest.err
10605 }; then
10606 ac_header_preproc=yes
10607else
10608 $as_echo "$as_me: failed program was:" >&5
10609sed 's/^/| /' conftest.$ac_ext >&5
10610
10611 ac_header_preproc=no
10612fi
10613
10614rm -f conftest.err conftest.$ac_ext
10615{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10616$as_echo "$ac_header_preproc" >&6; }
10617
10618# So? What about this header?
10619case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10620 yes:no: )
10621 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10622$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10623 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10624$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10625 ac_header_preproc=yes
10626 ;;
10627 no:yes:* )
10628 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10629$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10630 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10631$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10632 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10633$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10634 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10635$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10636 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10637$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10638 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10639$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10640
10641 ;;
10642esac
10643{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10644$as_echo_n "checking for $ac_header... " >&6; }
10645if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10646 $as_echo_n "(cached) " >&6
10647else
10648 eval "$as_ac_Header=\$ac_header_preproc"
10649fi
10650ac_res=`eval 'as_val=${'$as_ac_Header'}
10651 $as_echo "$as_val"'`
10652 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10653$as_echo "$ac_res" >&6; }
10654
10655fi
10656as_val=`eval 'as_val=${'$as_ac_Header'}
10657 $as_echo "$as_val"'`
10658 if test "x$as_val" = x""yes; then
10659 cat >>confdefs.h <<_ACEOF
10660#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10661_ACEOF
10662
10663else
10664 $bailout
10665fi
10666
10667done
10668
10669 check_lib_no_libs cman cman_init
10670 if test $NOTFOUND = 0; then
10671 { $as_echo "$as_me:$LINENO: result: no pkg for libcman, using -lcman" >&5
10672$as_echo "no pkg for libcman, using -lcman" >&6; }
10673 CMAN_LIBS="-lcman"
10674 HAVE_CMAN=yes
10675 fi
10676elif test $pkg_failed = untried; then
10677 NOTFOUND=0
10678
10679for ac_header in libcman.h
10680do
10681as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10682if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10683 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10684$as_echo_n "checking for $ac_header... " >&6; }
10685if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10686 $as_echo_n "(cached) " >&6
10687fi
10688ac_res=`eval 'as_val=${'$as_ac_Header'}
10689 $as_echo "$as_val"'`
10690 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10691$as_echo "$ac_res" >&6; }
10692else
10693 # Is the header compilable?
10694{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10695$as_echo_n "checking $ac_header usability... " >&6; }
10696cat >conftest.$ac_ext <<_ACEOF
10697/* confdefs.h. */
10698_ACEOF
10699cat confdefs.h >>conftest.$ac_ext
10700cat >>conftest.$ac_ext <<_ACEOF
10701/* end confdefs.h. */
10702$ac_includes_default
10703#include <$ac_header>
10704_ACEOF
10705rm -f conftest.$ac_objext
10706if { (ac_try="$ac_compile"
10707case "(($ac_try" in
10708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10709 *) ac_try_echo=$ac_try;;
10710esac
10711eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10712$as_echo "$ac_try_echo") >&5
10713 (eval "$ac_compile") 2>conftest.er1
10714 ac_status=$?
10715 grep -v '^ *+' conftest.er1 >conftest.err
10716 rm -f conftest.er1
10717 cat conftest.err >&5
10718 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10719 (exit $ac_status); } && {
10720 test -z "$ac_c_werror_flag" ||
10721 test ! -s conftest.err
10722 } && test -s conftest.$ac_objext; then
10723 ac_header_compiler=yes
10724else
10725 $as_echo "$as_me: failed program was:" >&5
10726sed 's/^/| /' conftest.$ac_ext >&5
10727
10728 ac_header_compiler=no
10729fi
10730
10731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10732{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10733$as_echo "$ac_header_compiler" >&6; }
10734
10735# Is the header present?
10736{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10737$as_echo_n "checking $ac_header presence... " >&6; }
10738cat >conftest.$ac_ext <<_ACEOF
10739/* confdefs.h. */
10740_ACEOF
10741cat confdefs.h >>conftest.$ac_ext
10742cat >>conftest.$ac_ext <<_ACEOF
10743/* end confdefs.h. */
10744#include <$ac_header>
10745_ACEOF
10746if { (ac_try="$ac_cpp conftest.$ac_ext"
10747case "(($ac_try" in
10748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10749 *) ac_try_echo=$ac_try;;
10750esac
10751eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10752$as_echo "$ac_try_echo") >&5
10753 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10754 ac_status=$?
10755 grep -v '^ *+' conftest.er1 >conftest.err
10756 rm -f conftest.er1
10757 cat conftest.err >&5
10758 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10759 (exit $ac_status); } >/dev/null && {
10760 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10761 test ! -s conftest.err
10762 }; then
10763 ac_header_preproc=yes
10764else
10765 $as_echo "$as_me: failed program was:" >&5
10766sed 's/^/| /' conftest.$ac_ext >&5
10767
10768 ac_header_preproc=no
10769fi
10770
10771rm -f conftest.err conftest.$ac_ext
10772{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10773$as_echo "$ac_header_preproc" >&6; }
10774
10775# So? What about this header?
10776case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10777 yes:no: )
10778 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10779$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10780 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10781$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10782 ac_header_preproc=yes
10783 ;;
10784 no:yes:* )
10785 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10786$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10787 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10788$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10789 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10790$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10791 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10792$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10793 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10794$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10795 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10796$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10797
10798 ;;
10799esac
10800{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10801$as_echo_n "checking for $ac_header... " >&6; }
10802if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10803 $as_echo_n "(cached) " >&6
10804else
10805 eval "$as_ac_Header=\$ac_header_preproc"
10806fi
10807ac_res=`eval 'as_val=${'$as_ac_Header'}
10808 $as_echo "$as_val"'`
10809 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10810$as_echo "$ac_res" >&6; }
10811
10812fi
10813as_val=`eval 'as_val=${'$as_ac_Header'}
10814 $as_echo "$as_val"'`
10815 if test "x$as_val" = x""yes; then
10816 cat >>confdefs.h <<_ACEOF
10817#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10818_ACEOF
10819
10820else
10821 $bailout
10822fi
10823
10824done
10825
10826 check_lib_no_libs cman cman_init
10827 if test $NOTFOUND = 0; then
10828 { $as_echo "$as_me:$LINENO: result: no pkg for libcman, using -lcman" >&5
10829$as_echo "no pkg for libcman, using -lcman" >&6; }
10830 CMAN_LIBS="-lcman"
10831 HAVE_CMAN=yes
10832 fi
10833else
10834 CMAN_CFLAGS=$pkg_cv_CMAN_CFLAGS
10835 CMAN_LIBS=$pkg_cv_CMAN_LIBS
10836 { $as_echo "$as_me:$LINENO: result: yes" >&5
10837$as_echo "yes" >&6; }
10838 HAVE_CMAN=yes
10839fi
10840 CHECKCONFDB=yes
10841 CHECKDLM=yes
10842fi
10843
10844if test x$BUILDCOROSYNC = xyes || \
10845 test x$BUILDOPENAIS = xyes; then
10846
10847pkg_failed=no
10848{ $as_echo "$as_me:$LINENO: checking for COROSYNC" >&5
10849$as_echo_n "checking for COROSYNC... " >&6; }
10850
10851if test -n "$COROSYNC_CFLAGS"; then
10852 pkg_cv_COROSYNC_CFLAGS="$COROSYNC_CFLAGS"
10853 elif test -n "$PKG_CONFIG"; then
10854 if test -n "$PKG_CONFIG" && \
10855 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"corosync\"") >&5
10856 ($PKG_CONFIG --exists --print-errors "corosync") 2>&5
10857 ac_status=$?
10858 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10859 (exit $ac_status); }; then
10860 pkg_cv_COROSYNC_CFLAGS=`$PKG_CONFIG --cflags "corosync" 2>/dev/null`
10861else
10862 pkg_failed=yes
10863fi
10864 else
10865 pkg_failed=untried
10866fi
10867if test -n "$COROSYNC_LIBS"; then
10868 pkg_cv_COROSYNC_LIBS="$COROSYNC_LIBS"
10869 elif test -n "$PKG_CONFIG"; then
10870 if test -n "$PKG_CONFIG" && \
10871 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"corosync\"") >&5
10872 ($PKG_CONFIG --exists --print-errors "corosync") 2>&5
10873 ac_status=$?
10874 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10875 (exit $ac_status); }; then
10876 pkg_cv_COROSYNC_LIBS=`$PKG_CONFIG --libs "corosync" 2>/dev/null`
10877else
10878 pkg_failed=yes
10879fi
10880 else
10881 pkg_failed=untried
10882fi
10883
10884
10885
10886if test $pkg_failed = yes; then
10887
10888if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10889 _pkg_short_errors_supported=yes
10890else
10891 _pkg_short_errors_supported=no
10892fi
10893 if test $_pkg_short_errors_supported = yes; then
10894 COROSYNC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "corosync" 2>&1`
10895 else
10896 COROSYNC_PKG_ERRORS=`$PKG_CONFIG --print-errors "corosync" 2>&1`
10897 fi
10898 # Put the nasty error message in config.log where it belongs
10899 echo "$COROSYNC_PKG_ERRORS" >&5
10900
10901 { $as_echo "$as_me:$LINENO: result: no" >&5
10902$as_echo "no" >&6; }
10903 $bailout
10904elif test $pkg_failed = untried; then
10905 $bailout
10906else
10907 COROSYNC_CFLAGS=$pkg_cv_COROSYNC_CFLAGS
10908 COROSYNC_LIBS=$pkg_cv_COROSYNC_LIBS
10909 { $as_echo "$as_me:$LINENO: result: yes" >&5
10910$as_echo "yes" >&6; }
10911 HAVE_COROSYNC=yes
10912fi
10913 CHECKCONFDB=yes
10914fi
10915
10916if test x$BUILDCOROSYNC = xyes; then
10917
10918pkg_failed=no
10919{ $as_echo "$as_me:$LINENO: checking for QUORUM" >&5
10920$as_echo_n "checking for QUORUM... " >&6; }
10921
10922if test -n "$QUORUM_CFLAGS"; then
10923 pkg_cv_QUORUM_CFLAGS="$QUORUM_CFLAGS"
10924 elif test -n "$PKG_CONFIG"; then
10925 if test -n "$PKG_CONFIG" && \
10926 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libquorum\"") >&5
10927 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
10928 ac_status=$?
10929 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10930 (exit $ac_status); }; then
10931 pkg_cv_QUORUM_CFLAGS=`$PKG_CONFIG --cflags "libquorum" 2>/dev/null`
10932else
10933 pkg_failed=yes
10934fi
10935 else
10936 pkg_failed=untried
10937fi
10938if test -n "$QUORUM_LIBS"; then
10939 pkg_cv_QUORUM_LIBS="$QUORUM_LIBS"
10940 elif test -n "$PKG_CONFIG"; then
10941 if test -n "$PKG_CONFIG" && \
10942 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libquorum\"") >&5
10943 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
10944 ac_status=$?
10945 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10946 (exit $ac_status); }; then
10947 pkg_cv_QUORUM_LIBS=`$PKG_CONFIG --libs "libquorum" 2>/dev/null`
10948else
10949 pkg_failed=yes
10950fi
10951 else
10952 pkg_failed=untried
10953fi
10954
10955
10956
10957if test $pkg_failed = yes; then
10958
10959if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10960 _pkg_short_errors_supported=yes
10961else
10962 _pkg_short_errors_supported=no
10963fi
10964 if test $_pkg_short_errors_supported = yes; then
10965 QUORUM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libquorum" 2>&1`
10966 else
10967 QUORUM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libquorum" 2>&1`
10968 fi
10969 # Put the nasty error message in config.log where it belongs
10970 echo "$QUORUM_PKG_ERRORS" >&5
10971
10972 { $as_echo "$as_me:$LINENO: result: no" >&5
10973$as_echo "no" >&6; }
10974 $bailout
10975elif test $pkg_failed = untried; then
10976 $bailout
10977else
10978 QUORUM_CFLAGS=$pkg_cv_QUORUM_CFLAGS
10979 QUORUM_LIBS=$pkg_cv_QUORUM_LIBS
10980 { $as_echo "$as_me:$LINENO: result: yes" >&5
10981$as_echo "yes" >&6; }
10982 HAVE_QUORUM=yes
10983fi
10984 CHECKCPG=yes
10985 CHECKDLM=yes
10986fi
10987
10988if test x$BUILDOPENAIS = xyes; then
10989
10990pkg_failed=no
10991{ $as_echo "$as_me:$LINENO: checking for SALCK" >&5
10992$as_echo_n "checking for SALCK... " >&6; }
10993
10994if test -n "$SALCK_CFLAGS"; then
10995 pkg_cv_SALCK_CFLAGS="$SALCK_CFLAGS"
10996 elif test -n "$PKG_CONFIG"; then
10997 if test -n "$PKG_CONFIG" && \
10998 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaLck\"") >&5
10999 ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5
11000 ac_status=$?
11001 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11002 (exit $ac_status); }; then
11003 pkg_cv_SALCK_CFLAGS=`$PKG_CONFIG --cflags "libSaLck" 2>/dev/null`
11004else
11005 pkg_failed=yes
11006fi
11007 else
11008 pkg_failed=untried
11009fi
11010if test -n "$SALCK_LIBS"; then
11011 pkg_cv_SALCK_LIBS="$SALCK_LIBS"
11012 elif test -n "$PKG_CONFIG"; then
11013 if test -n "$PKG_CONFIG" && \
11014 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaLck\"") >&5
11015 ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5
11016 ac_status=$?
11017 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11018 (exit $ac_status); }; then
11019 pkg_cv_SALCK_LIBS=`$PKG_CONFIG --libs "libSaLck" 2>/dev/null`
11020else
11021 pkg_failed=yes
11022fi
11023 else
11024 pkg_failed=untried
11025fi
11026
11027
11028
11029if test $pkg_failed = yes; then
11030
11031if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11032 _pkg_short_errors_supported=yes
11033else
11034 _pkg_short_errors_supported=no
11035fi
11036 if test $_pkg_short_errors_supported = yes; then
11037 SALCK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaLck" 2>&1`
11038 else
11039 SALCK_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaLck" 2>&1`
11040 fi
11041 # Put the nasty error message in config.log where it belongs
11042 echo "$SALCK_PKG_ERRORS" >&5
11043
11044 { $as_echo "$as_me:$LINENO: result: no" >&5
11045$as_echo "no" >&6; }
11046 $bailout
11047elif test $pkg_failed = untried; then
11048 $bailout
11049else
11050 SALCK_CFLAGS=$pkg_cv_SALCK_CFLAGS
11051 SALCK_LIBS=$pkg_cv_SALCK_LIBS
11052 { $as_echo "$as_me:$LINENO: result: yes" >&5
11053$as_echo "yes" >&6; }
11054 HAVE_SALCK=yes
11055fi
11056 CHECKCPG=yes
11057fi
11058
11059
11060
11061if test x$CHECKCONFDB = xyes; then
11062
11063pkg_failed=no
11064{ $as_echo "$as_me:$LINENO: checking for CONFDB" >&5
11065$as_echo_n "checking for CONFDB... " >&6; }
11066
11067if test -n "$CONFDB_CFLAGS"; then
11068 pkg_cv_CONFDB_CFLAGS="$CONFDB_CFLAGS"
11069 elif test -n "$PKG_CONFIG"; then
11070 if test -n "$PKG_CONFIG" && \
11071 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libconfdb\"") >&5
11072 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
11073 ac_status=$?
11074 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11075 (exit $ac_status); }; then
11076 pkg_cv_CONFDB_CFLAGS=`$PKG_CONFIG --cflags "libconfdb" 2>/dev/null`
11077else
11078 pkg_failed=yes
11079fi
11080 else
11081 pkg_failed=untried
11082fi
11083if test -n "$CONFDB_LIBS"; then
11084 pkg_cv_CONFDB_LIBS="$CONFDB_LIBS"
11085 elif test -n "$PKG_CONFIG"; then
11086 if test -n "$PKG_CONFIG" && \
11087 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libconfdb\"") >&5
11088 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
11089 ac_status=$?
11090 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11091 (exit $ac_status); }; then
11092 pkg_cv_CONFDB_LIBS=`$PKG_CONFIG --libs "libconfdb" 2>/dev/null`
11093else
11094 pkg_failed=yes
11095fi
11096 else
11097 pkg_failed=untried
11098fi
11099
11100
11101
11102if test $pkg_failed = yes; then
11103
11104if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11105 _pkg_short_errors_supported=yes
11106else
11107 _pkg_short_errors_supported=no
11108fi
11109 if test $_pkg_short_errors_supported = yes; then
11110 CONFDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libconfdb" 2>&1`
11111 else
11112 CONFDB_PKG_ERRORS=`$PKG_CONFIG --print-errors "libconfdb" 2>&1`
11113 fi
11114 # Put the nasty error message in config.log where it belongs
11115 echo "$CONFDB_PKG_ERRORS" >&5
11116
11117 { $as_echo "$as_me:$LINENO: result: no" >&5
11118$as_echo "no" >&6; }
11119 HAVE_CONFDB=no
11120elif test $pkg_failed = untried; then
11121 HAVE_CONFDB=no
11122else
11123 CONFDB_CFLAGS=$pkg_cv_CONFDB_CFLAGS
11124 CONFDB_LIBS=$pkg_cv_CONFDB_LIBS
11125 { $as_echo "$as_me:$LINENO: result: yes" >&5
11126$as_echo "yes" >&6; }
11127 HAVE_CONFDB=yes
11128fi
11129
11130
11131for ac_header in corosync/confdb.h
11132do
11133as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11134if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11135 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11136$as_echo_n "checking for $ac_header... " >&6; }
11137if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11138 $as_echo_n "(cached) " >&6
11139fi
11140ac_res=`eval 'as_val=${'$as_ac_Header'}
11141 $as_echo "$as_val"'`
11142 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11143$as_echo "$ac_res" >&6; }
11144else
11145 # Is the header compilable?
11146{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11147$as_echo_n "checking $ac_header usability... " >&6; }
11148cat >conftest.$ac_ext <<_ACEOF
11149/* confdefs.h. */
11150_ACEOF
11151cat confdefs.h >>conftest.$ac_ext
11152cat >>conftest.$ac_ext <<_ACEOF
11153/* end confdefs.h. */
11154$ac_includes_default
11155#include <$ac_header>
11156_ACEOF
11157rm -f conftest.$ac_objext
11158if { (ac_try="$ac_compile"
11159case "(($ac_try" in
11160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11161 *) ac_try_echo=$ac_try;;
11162esac
11163eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11164$as_echo "$ac_try_echo") >&5
11165 (eval "$ac_compile") 2>conftest.er1
11166 ac_status=$?
11167 grep -v '^ *+' conftest.er1 >conftest.err
11168 rm -f conftest.er1
11169 cat conftest.err >&5
11170 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11171 (exit $ac_status); } && {
11172 test -z "$ac_c_werror_flag" ||
11173 test ! -s conftest.err
11174 } && test -s conftest.$ac_objext; then
11175 ac_header_compiler=yes
11176else
11177 $as_echo "$as_me: failed program was:" >&5
11178sed 's/^/| /' conftest.$ac_ext >&5
11179
11180 ac_header_compiler=no
11181fi
11182
11183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11184{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11185$as_echo "$ac_header_compiler" >&6; }
11186
11187# Is the header present?
11188{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11189$as_echo_n "checking $ac_header presence... " >&6; }
11190cat >conftest.$ac_ext <<_ACEOF
11191/* confdefs.h. */
11192_ACEOF
11193cat confdefs.h >>conftest.$ac_ext
11194cat >>conftest.$ac_ext <<_ACEOF
11195/* end confdefs.h. */
11196#include <$ac_header>
11197_ACEOF
11198if { (ac_try="$ac_cpp conftest.$ac_ext"
11199case "(($ac_try" in
11200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11201 *) ac_try_echo=$ac_try;;
11202esac
11203eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11204$as_echo "$ac_try_echo") >&5
11205 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11206 ac_status=$?
11207 grep -v '^ *+' conftest.er1 >conftest.err
11208 rm -f conftest.er1
11209 cat conftest.err >&5
11210 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11211 (exit $ac_status); } >/dev/null && {
11212 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11213 test ! -s conftest.err
11214 }; then
11215 ac_header_preproc=yes
11216else
11217 $as_echo "$as_me: failed program was:" >&5
11218sed 's/^/| /' conftest.$ac_ext >&5
11219
11220 ac_header_preproc=no
11221fi
11222
11223rm -f conftest.err conftest.$ac_ext
11224{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11225$as_echo "$ac_header_preproc" >&6; }
11226
11227# So? What about this header?
11228case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11229 yes:no: )
11230 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11231$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11232 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11233$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11234 ac_header_preproc=yes
11235 ;;
11236 no:yes:* )
11237 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11238$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11239 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11240$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11241 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11242$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11243 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11244$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11245 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11246$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11247 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11248$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11249
11250 ;;
11251esac
11252{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11253$as_echo_n "checking for $ac_header... " >&6; }
11254if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11255 $as_echo_n "(cached) " >&6
11256else
11257 eval "$as_ac_Header=\$ac_header_preproc"
11258fi
11259ac_res=`eval 'as_val=${'$as_ac_Header'}
11260 $as_echo "$as_val"'`
11261 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11262$as_echo "$ac_res" >&6; }
11263
11264fi
11265as_val=`eval 'as_val=${'$as_ac_Header'}
11266 $as_echo "$as_val"'`
11267 if test "x$as_val" = x""yes; then
11268 cat >>confdefs.h <<_ACEOF
11269#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11270_ACEOF
11271 HAVE_CONFDB_H=yes
11272else
11273 HAVE_CONFDB_H=no
11274fi
11275
11276done
11277
11278
11279 if test x$HAVE_CONFDB != xyes && \
11280 test x$HAVE_CONFDB_H = xyes; then
11281 check_lib_no_libs confdb confdb_initialize
11282 { $as_echo "$as_me:$LINENO: result: no pkg for confdb, using -lconfdb" >&5
11283$as_echo "no pkg for confdb, using -lconfdb" >&6; }
11284 CONFDB_LIBS="-lconfdb"
11285 HAVE_CONFDB=yes
11286 fi
11287
11288 if test x$BUILDCOROSYNC = xyes && \
11289 test x$HAVE_CONFDB != xyes &&
11290 test x$CLVMD != xall; then
11291 { { $as_echo "$as_me:$LINENO: error: bailing out... confdb library is required" >&5
11292$as_echo "$as_me: error: bailing out... confdb library is required" >&2;}
11293 { (exit 1); exit 1; }; }
11294 fi
11295fi
11296
11297if test x$CHECKCPG = xyes; then
11298
11299pkg_failed=no
11300{ $as_echo "$as_me:$LINENO: checking for CPG" >&5
11301$as_echo_n "checking for CPG... " >&6; }
11302
11303if test -n "$CPG_CFLAGS"; then
11304 pkg_cv_CPG_CFLAGS="$CPG_CFLAGS"
11305 elif test -n "$PKG_CONFIG"; then
11306 if test -n "$PKG_CONFIG" && \
11307 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
11308 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
11309 ac_status=$?
11310 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11311 (exit $ac_status); }; then
11312 pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
11313else
11314 pkg_failed=yes
11315fi
11316 else
11317 pkg_failed=untried
11318fi
11319if test -n "$CPG_LIBS"; then
11320 pkg_cv_CPG_LIBS="$CPG_LIBS"
11321 elif test -n "$PKG_CONFIG"; then
11322 if test -n "$PKG_CONFIG" && \
11323 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
11324 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
11325 ac_status=$?
11326 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11327 (exit $ac_status); }; then
11328 pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
11329else
11330 pkg_failed=yes
11331fi
11332 else
11333 pkg_failed=untried
11334fi
11335
11336
11337
11338if test $pkg_failed = yes; then
11339
11340if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11341 _pkg_short_errors_supported=yes
11342else
11343 _pkg_short_errors_supported=no
11344fi
11345 if test $_pkg_short_errors_supported = yes; then
11346 CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
11347 else
11348 CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
11349 fi
11350 # Put the nasty error message in config.log where it belongs
11351 echo "$CPG_PKG_ERRORS" >&5
11352
11353 { $as_echo "$as_me:$LINENO: result: no" >&5
11354$as_echo "no" >&6; }
11355 $bailout
11356elif test $pkg_failed = untried; then
11357 $bailout
11358else
11359 CPG_CFLAGS=$pkg_cv_CPG_CFLAGS
11360 CPG_LIBS=$pkg_cv_CPG_LIBS
11361 { $as_echo "$as_me:$LINENO: result: yes" >&5
11362$as_echo "yes" >&6; }
11363 HAVE_CPG=yes
11364fi
11365fi
11366
11367if test x$CHECKDLM = xyes; then
11368
11369pkg_failed=no
11370{ $as_echo "$as_me:$LINENO: checking for DLM" >&5
11371$as_echo_n "checking for DLM... " >&6; }
11372
11373if test -n "$DLM_CFLAGS"; then
11374 pkg_cv_DLM_CFLAGS="$DLM_CFLAGS"
11375 elif test -n "$PKG_CONFIG"; then
11376 if test -n "$PKG_CONFIG" && \
11377 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdlm\"") >&5
11378 ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5
11379 ac_status=$?
11380 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11381 (exit $ac_status); }; then
11382 pkg_cv_DLM_CFLAGS=`$PKG_CONFIG --cflags "libdlm" 2>/dev/null`
11383else
11384 pkg_failed=yes
11385fi
11386 else
11387 pkg_failed=untried
11388fi
11389if test -n "$DLM_LIBS"; then
11390 pkg_cv_DLM_LIBS="$DLM_LIBS"
11391 elif test -n "$PKG_CONFIG"; then
11392 if test -n "$PKG_CONFIG" && \
11393 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdlm\"") >&5
11394 ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5
11395 ac_status=$?
11396 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11397 (exit $ac_status); }; then
11398 pkg_cv_DLM_LIBS=`$PKG_CONFIG --libs "libdlm" 2>/dev/null`
11399else
11400 pkg_failed=yes
11401fi
11402 else
11403 pkg_failed=untried
11404fi
11405
11406
11407
11408if test $pkg_failed = yes; then
11409
11410if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11411 _pkg_short_errors_supported=yes
11412else
11413 _pkg_short_errors_supported=no
11414fi
11415 if test $_pkg_short_errors_supported = yes; then
11416 DLM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdlm" 2>&1`
11417 else
11418 DLM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdlm" 2>&1`
11419 fi
11420 # Put the nasty error message in config.log where it belongs
11421 echo "$DLM_PKG_ERRORS" >&5
11422
11423 { $as_echo "$as_me:$LINENO: result: no" >&5
11424$as_echo "no" >&6; }
11425 NOTFOUND=0
11426
11427for ac_header in libdlm.h
11428do
11429as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11430if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11431 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11432$as_echo_n "checking for $ac_header... " >&6; }
11433if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11434 $as_echo_n "(cached) " >&6
11435fi
11436ac_res=`eval 'as_val=${'$as_ac_Header'}
11437 $as_echo "$as_val"'`
11438 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11439$as_echo "$ac_res" >&6; }
11440else
11441 # Is the header compilable?
11442{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11443$as_echo_n "checking $ac_header usability... " >&6; }
11444cat >conftest.$ac_ext <<_ACEOF
11445/* confdefs.h. */
11446_ACEOF
11447cat confdefs.h >>conftest.$ac_ext
11448cat >>conftest.$ac_ext <<_ACEOF
11449/* end confdefs.h. */
11450$ac_includes_default
11451#include <$ac_header>
11452_ACEOF
11453rm -f conftest.$ac_objext
11454if { (ac_try="$ac_compile"
11455case "(($ac_try" in
11456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11457 *) ac_try_echo=$ac_try;;
11458esac
11459eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11460$as_echo "$ac_try_echo") >&5
11461 (eval "$ac_compile") 2>conftest.er1
11462 ac_status=$?
11463 grep -v '^ *+' conftest.er1 >conftest.err
11464 rm -f conftest.er1
11465 cat conftest.err >&5
11466 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11467 (exit $ac_status); } && {
11468 test -z "$ac_c_werror_flag" ||
11469 test ! -s conftest.err
11470 } && test -s conftest.$ac_objext; then
11471 ac_header_compiler=yes
11472else
11473 $as_echo "$as_me: failed program was:" >&5
11474sed 's/^/| /' conftest.$ac_ext >&5
11475
11476 ac_header_compiler=no
11477fi
11478
11479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11480{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11481$as_echo "$ac_header_compiler" >&6; }
11482
11483# Is the header present?
11484{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11485$as_echo_n "checking $ac_header presence... " >&6; }
11486cat >conftest.$ac_ext <<_ACEOF
11487/* confdefs.h. */
11488_ACEOF
11489cat confdefs.h >>conftest.$ac_ext
11490cat >>conftest.$ac_ext <<_ACEOF
11491/* end confdefs.h. */
11492#include <$ac_header>
11493_ACEOF
11494if { (ac_try="$ac_cpp conftest.$ac_ext"
11495case "(($ac_try" in
11496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11497 *) ac_try_echo=$ac_try;;
11498esac
11499eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11500$as_echo "$ac_try_echo") >&5
11501 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11502 ac_status=$?
11503 grep -v '^ *+' conftest.er1 >conftest.err
11504 rm -f conftest.er1
11505 cat conftest.err >&5
11506 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11507 (exit $ac_status); } >/dev/null && {
11508 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11509 test ! -s conftest.err
11510 }; then
11511 ac_header_preproc=yes
11512else
11513 $as_echo "$as_me: failed program was:" >&5
11514sed 's/^/| /' conftest.$ac_ext >&5
11515
11516 ac_header_preproc=no
11517fi
11518
11519rm -f conftest.err conftest.$ac_ext
11520{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11521$as_echo "$ac_header_preproc" >&6; }
11522
11523# So? What about this header?
11524case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11525 yes:no: )
11526 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11527$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11528 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11529$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11530 ac_header_preproc=yes
11531 ;;
11532 no:yes:* )
11533 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11534$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11535 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11536$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11537 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11538$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11539 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11540$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11541 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11542$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11543 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11544$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11545
11546 ;;
11547esac
11548{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11549$as_echo_n "checking for $ac_header... " >&6; }
11550if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11551 $as_echo_n "(cached) " >&6
11552else
11553 eval "$as_ac_Header=\$ac_header_preproc"
11554fi
11555ac_res=`eval 'as_val=${'$as_ac_Header'}
11556 $as_echo "$as_val"'`
11557 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11558$as_echo "$ac_res" >&6; }
11559
11560fi
11561as_val=`eval 'as_val=${'$as_ac_Header'}
11562 $as_echo "$as_val"'`
11563 if test "x$as_val" = x""yes; then
11564 cat >>confdefs.h <<_ACEOF
11565#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11566_ACEOF
11567
11568else
11569 $bailout
11570fi
11571
11572done
11573
11574 check_lib_no_libs dlm dlm_lock -lpthread
11575 if test $NOTFOUND = 0; then
11576 { $as_echo "$as_me:$LINENO: result: no pkg for libdlm, using -ldlm" >&5
11577$as_echo "no pkg for libdlm, using -ldlm" >&6; }
11578 DLM_LIBS="-ldlm -lpthread"
11579 HAVE_DLM=yes
11580 fi
11581elif test $pkg_failed = untried; then
11582 NOTFOUND=0
11583
11584for ac_header in libdlm.h
11585do
11586as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11587if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11588 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11589$as_echo_n "checking for $ac_header... " >&6; }
11590if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11591 $as_echo_n "(cached) " >&6
11592fi
11593ac_res=`eval 'as_val=${'$as_ac_Header'}
11594 $as_echo "$as_val"'`
11595 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11596$as_echo "$ac_res" >&6; }
11597else
11598 # Is the header compilable?
11599{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11600$as_echo_n "checking $ac_header usability... " >&6; }
11601cat >conftest.$ac_ext <<_ACEOF
11602/* confdefs.h. */
11603_ACEOF
11604cat confdefs.h >>conftest.$ac_ext
11605cat >>conftest.$ac_ext <<_ACEOF
11606/* end confdefs.h. */
11607$ac_includes_default
11608#include <$ac_header>
11609_ACEOF
11610rm -f conftest.$ac_objext
11611if { (ac_try="$ac_compile"
11612case "(($ac_try" in
11613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11614 *) ac_try_echo=$ac_try;;
11615esac
11616eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11617$as_echo "$ac_try_echo") >&5
11618 (eval "$ac_compile") 2>conftest.er1
11619 ac_status=$?
11620 grep -v '^ *+' conftest.er1 >conftest.err
11621 rm -f conftest.er1
11622 cat conftest.err >&5
11623 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11624 (exit $ac_status); } && {
11625 test -z "$ac_c_werror_flag" ||
11626 test ! -s conftest.err
11627 } && test -s conftest.$ac_objext; then
11628 ac_header_compiler=yes
11629else
11630 $as_echo "$as_me: failed program was:" >&5
11631sed 's/^/| /' conftest.$ac_ext >&5
11632
11633 ac_header_compiler=no
11634fi
11635
11636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11637{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11638$as_echo "$ac_header_compiler" >&6; }
11639
11640# Is the header present?
11641{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11642$as_echo_n "checking $ac_header presence... " >&6; }
11643cat >conftest.$ac_ext <<_ACEOF
11644/* confdefs.h. */
11645_ACEOF
11646cat confdefs.h >>conftest.$ac_ext
11647cat >>conftest.$ac_ext <<_ACEOF
11648/* end confdefs.h. */
11649#include <$ac_header>
11650_ACEOF
11651if { (ac_try="$ac_cpp conftest.$ac_ext"
11652case "(($ac_try" in
11653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11654 *) ac_try_echo=$ac_try;;
11655esac
11656eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11657$as_echo "$ac_try_echo") >&5
11658 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11659 ac_status=$?
11660 grep -v '^ *+' conftest.er1 >conftest.err
11661 rm -f conftest.er1
11662 cat conftest.err >&5
11663 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11664 (exit $ac_status); } >/dev/null && {
11665 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11666 test ! -s conftest.err
11667 }; then
11668 ac_header_preproc=yes
11669else
11670 $as_echo "$as_me: failed program was:" >&5
11671sed 's/^/| /' conftest.$ac_ext >&5
11672
11673 ac_header_preproc=no
11674fi
11675
11676rm -f conftest.err conftest.$ac_ext
11677{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11678$as_echo "$ac_header_preproc" >&6; }
11679
11680# So? What about this header?
11681case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11682 yes:no: )
11683 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11684$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11685 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11686$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11687 ac_header_preproc=yes
11688 ;;
11689 no:yes:* )
11690 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11691$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11692 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11693$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11694 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11695$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11696 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11697$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11698 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11699$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11700 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11701$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11702
11703 ;;
11704esac
11705{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11706$as_echo_n "checking for $ac_header... " >&6; }
11707if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11708 $as_echo_n "(cached) " >&6
11709else
11710 eval "$as_ac_Header=\$ac_header_preproc"
11711fi
11712ac_res=`eval 'as_val=${'$as_ac_Header'}
11713 $as_echo "$as_val"'`
11714 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11715$as_echo "$ac_res" >&6; }
11716
11717fi
11718as_val=`eval 'as_val=${'$as_ac_Header'}
11719 $as_echo "$as_val"'`
11720 if test "x$as_val" = x""yes; then
11721 cat >>confdefs.h <<_ACEOF
11722#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11723_ACEOF
11724
11725else
11726 $bailout
11727fi
11728
11729done
11730
11731 check_lib_no_libs dlm dlm_lock -lpthread
11732 if test $NOTFOUND = 0; then
11733 { $as_echo "$as_me:$LINENO: result: no pkg for libdlm, using -ldlm" >&5
11734$as_echo "no pkg for libdlm, using -ldlm" >&6; }
11735 DLM_LIBS="-ldlm -lpthread"
11736 HAVE_DLM=yes
11737 fi
11738else
11739 DLM_CFLAGS=$pkg_cv_DLM_CFLAGS
11740 DLM_LIBS=$pkg_cv_DLM_LIBS
11741 { $as_echo "$as_me:$LINENO: result: yes" >&5
11742$as_echo "yes" >&6; }
11743 HAVE_DLM=yes
11744fi
11745fi
11746
11747if test x$CLVMD = xall; then
8c222979 11748 CLVMD=none
a946372e
AK
11749 if test x$HAVE_CCS = xyes && \
11750 test x$HAVE_GULM = xyes; then
8c222979
FDN
11751 { $as_echo "$as_me:$LINENO: result: Enabling clvmd gulm cluster manager" >&5
11752$as_echo "Enabling clvmd gulm cluster manager" >&6; }
11753 CLVMD="$CLVMD,gulm"
a946372e
AK
11754 fi
11755 if test x$HAVE_CMAN = xyes && \
11756 test x$HAVE_DLM = xyes; then
8c222979
FDN
11757 { $as_echo "$as_me:$LINENO: result: Enabling clvmd cman cluster manager" >&5
11758$as_echo "Enabling clvmd cman cluster manager" >&6; }
11759 CLVMD="$CLVMD,cman"
a946372e
AK
11760 fi
11761 if test x$HAVE_COROSYNC = xyes && \
11762 test x$HAVE_QUORUM = xyes && \
11763 test x$HAVE_CPG = xyes && \
11764 test x$HAVE_DLM = xyes && \
11765 test x$HAVE_CONFDB = xyes; then
8c222979
FDN
11766 { $as_echo "$as_me:$LINENO: result: Enabling clvmd corosync cluster manager" >&5
11767$as_echo "Enabling clvmd corosync cluster manager" >&6; }
11768 CLVMD="$CLVMD,corosync"
a946372e
AK
11769 fi
11770 if test x$HAVE_COROSYNC = xyes && \
11771 test x$HAVE_CPG = xyes && \
11772 test x$HAVE_SALCK = xyes; then
8c222979
FDN
11773 { $as_echo "$as_me:$LINENO: result: Enabling clvmd openais cluster manager" >&5
11774$as_echo "Enabling clvmd openais cluster manager" >&6; }
11775 CLVMD="$CLVMD,openais"
11776 fi
11777 if test x$CLVMD = xnone; then
11778 { $as_echo "$as_me:$LINENO: result: Disabling clvmd build. No cluster manager detected." >&5
11779$as_echo "Disabling clvmd build. No cluster manager detected." >&6; }
a946372e 11780 fi
a946372e
AK
11781fi
11782
11783################################################################################
66fd4529
AK
11784{ $as_echo "$as_me:$LINENO: checking whether to build cluster mirror log daemon" >&5
11785$as_echo_n "checking whether to build cluster mirror log daemon... " >&6; }
11786# Check whether --enable-cmirrord was given.
11787if test "${enable_cmirrord+set}" = set; then
11788 enableval=$enable_cmirrord; CMIRRORD=$enableval
11789else
11790 CMIRRORD=no
11791fi
11792
11793{ $as_echo "$as_me:$LINENO: result: $CMIRRORD" >&5
11794$as_echo "$CMIRRORD" >&6; }
11795
11796BUILD_CMIRRORD=$CMIRRORD
11797
11798################################################################################
11799
11800
11801if test "x$BUILD_CMIRRORD" = xyes; then
11802
11803# Check whether --with-cmirrord-pidfile was given.
11804if test "${with_cmirrord_pidfile+set}" = set; then
11805 withval=$with_cmirrord_pidfile; cat >>confdefs.h <<_ACEOF
11806#define CMIRRORD_PIDFILE "$withval"
11807_ACEOF
11808
11809else
11810 cat >>confdefs.h <<_ACEOF
11811#define CMIRRORD_PIDFILE "/var/run/cmirrord.pid"
11812_ACEOF
11813
a946372e
AK
11814fi
11815
66fd4529 11816fi
a946372e 11817
66fd4529
AK
11818################################################################################
11819if [ "x$BUILD_CMIRRORD" = xyes ]; then
90c80887
AK
11820 if test x$PKGCONFIG_INIT != x1; then
11821 pkg_config_init
11822 fi
11823
11824pkg_failed=no
11825{ $as_echo "$as_me:$LINENO: checking for SACKPT" >&5
11826$as_echo_n "checking for SACKPT... " >&6; }
11827
11828if test -n "$SACKPT_CFLAGS"; then
11829 pkg_cv_SACKPT_CFLAGS="$SACKPT_CFLAGS"
11830 elif test -n "$PKG_CONFIG"; then
11831 if test -n "$PKG_CONFIG" && \
11832 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\"") >&5
11833 ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5
11834 ac_status=$?
11835 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11836 (exit $ac_status); }; then
11837 pkg_cv_SACKPT_CFLAGS=`$PKG_CONFIG --cflags "libSaCkpt" 2>/dev/null`
11838else
11839 pkg_failed=yes
11840fi
11841 else
11842 pkg_failed=untried
11843fi
11844if test -n "$SACKPT_LIBS"; then
11845 pkg_cv_SACKPT_LIBS="$SACKPT_LIBS"
11846 elif test -n "$PKG_CONFIG"; then
11847 if test -n "$PKG_CONFIG" && \
11848 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\"") >&5
11849 ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5
11850 ac_status=$?
11851 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11852 (exit $ac_status); }; then
11853 pkg_cv_SACKPT_LIBS=`$PKG_CONFIG --libs "libSaCkpt" 2>/dev/null`
11854else
11855 pkg_failed=yes
11856fi
11857 else
11858 pkg_failed=untried
11859fi
11860
11861
11862
11863if test $pkg_failed = yes; then
11864
11865if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11866 _pkg_short_errors_supported=yes
11867else
11868 _pkg_short_errors_supported=no
11869fi
11870 if test $_pkg_short_errors_supported = yes; then
11871 SACKPT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaCkpt" 2>&1`
11872 else
11873 SACKPT_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaCkpt" 2>&1`
11874 fi
11875 # Put the nasty error message in config.log where it belongs
11876 echo "$SACKPT_PKG_ERRORS" >&5
11877
11878 { { $as_echo "$as_me:$LINENO: error: Package requirements (libSaCkpt) were not met:
11879
11880$SACKPT_PKG_ERRORS
11881
11882Consider adjusting the PKG_CONFIG_PATH environment variable if you
11883installed software in a non-standard prefix.
11884
11885Alternatively, you may set the environment variables SACKPT_CFLAGS
11886and SACKPT_LIBS to avoid the need to call pkg-config.
11887See the pkg-config man page for more details.
11888" >&5
11889$as_echo "$as_me: error: Package requirements (libSaCkpt) were not met:
11890
11891$SACKPT_PKG_ERRORS
11892
11893Consider adjusting the PKG_CONFIG_PATH environment variable if you
11894installed software in a non-standard prefix.
11895
11896Alternatively, you may set the environment variables SACKPT_CFLAGS
11897and SACKPT_LIBS to avoid the need to call pkg-config.
11898See the pkg-config man page for more details.
11899" >&2;}
11900 { (exit 1); exit 1; }; }
11901elif test $pkg_failed = untried; then
11902 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11903$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11904{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
11905is in your PATH or set the PKG_CONFIG environment variable to the full
11906path to pkg-config.
11907
11908Alternatively, you may set the environment variables SACKPT_CFLAGS
11909and SACKPT_LIBS to avoid the need to call pkg-config.
11910See the pkg-config man page for more details.
11911
11912To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11913See \`config.log' for more details." >&5
11914$as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
11915is in your PATH or set the PKG_CONFIG environment variable to the full
11916path to pkg-config.
11917
11918Alternatively, you may set the environment variables SACKPT_CFLAGS
11919and SACKPT_LIBS to avoid the need to call pkg-config.
11920See the pkg-config man page for more details.
11921
11922To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11923See \`config.log' for more details." >&2;}
11924 { (exit 1); exit 1; }; }; }
11925else
11926 SACKPT_CFLAGS=$pkg_cv_SACKPT_CFLAGS
11927 SACKPT_LIBS=$pkg_cv_SACKPT_LIBS
11928 { $as_echo "$as_me:$LINENO: result: yes" >&5
11929$as_echo "yes" >&6; }
11930 :
11931fi
11932 if test x$HAVE_CPG != xyes; then
a946372e
AK
11933
11934pkg_failed=no
11935{ $as_echo "$as_me:$LINENO: checking for CPG" >&5
11936$as_echo_n "checking for CPG... " >&6; }
11937
11938if test -n "$CPG_CFLAGS"; then
11939 pkg_cv_CPG_CFLAGS="$CPG_CFLAGS"
11940 elif test -n "$PKG_CONFIG"; then
11941 if test -n "$PKG_CONFIG" && \
11942 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
11943 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
11944 ac_status=$?
11945 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11946 (exit $ac_status); }; then
11947 pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
11948else
11949 pkg_failed=yes
11950fi
11951 else
11952 pkg_failed=untried
11953fi
11954if test -n "$CPG_LIBS"; then
11955 pkg_cv_CPG_LIBS="$CPG_LIBS"
11956 elif test -n "$PKG_CONFIG"; then
11957 if test -n "$PKG_CONFIG" && \
11958 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
11959 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
11960 ac_status=$?
11961 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11962 (exit $ac_status); }; then
11963 pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
11964else
11965 pkg_failed=yes
11966fi
11967 else
11968 pkg_failed=untried
11969fi
11970
11971
11972
11973if test $pkg_failed = yes; then
11974
11975if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11976 _pkg_short_errors_supported=yes
11977else
11978 _pkg_short_errors_supported=no
11979fi
11980 if test $_pkg_short_errors_supported = yes; then
11981 CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
11982 else
11983 CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
11984 fi
11985 # Put the nasty error message in config.log where it belongs
11986 echo "$CPG_PKG_ERRORS" >&5
11987
90c80887
AK
11988 { { $as_echo "$as_me:$LINENO: error: Package requirements (libcpg) were not met:
11989
11990$CPG_PKG_ERRORS
11991
11992Consider adjusting the PKG_CONFIG_PATH environment variable if you
11993installed software in a non-standard prefix.
11994
11995Alternatively, you may set the environment variables CPG_CFLAGS
11996and CPG_LIBS to avoid the need to call pkg-config.
11997See the pkg-config man page for more details.
11998" >&5
11999$as_echo "$as_me: error: Package requirements (libcpg) were not met:
12000
12001$CPG_PKG_ERRORS
12002
12003Consider adjusting the PKG_CONFIG_PATH environment variable if you
12004installed software in a non-standard prefix.
12005
12006Alternatively, you may set the environment variables CPG_CFLAGS
12007and CPG_LIBS to avoid the need to call pkg-config.
12008See the pkg-config man page for more details.
12009" >&2;}
12010 { (exit 1); exit 1; }; }
a946372e 12011elif test $pkg_failed = untried; then
90c80887
AK
12012 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12013$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12014{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
12015is in your PATH or set the PKG_CONFIG environment variable to the full
12016path to pkg-config.
12017
12018Alternatively, you may set the environment variables CPG_CFLAGS
12019and CPG_LIBS to avoid the need to call pkg-config.
12020See the pkg-config man page for more details.
12021
12022To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12023See \`config.log' for more details." >&5
12024$as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
12025is in your PATH or set the PKG_CONFIG environment variable to the full
12026path to pkg-config.
12027
12028Alternatively, you may set the environment variables CPG_CFLAGS
12029and CPG_LIBS to avoid the need to call pkg-config.
12030See the pkg-config man page for more details.
12031
12032To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12033See \`config.log' for more details." >&2;}
12034 { (exit 1); exit 1; }; }; }
a946372e
AK
12035else
12036 CPG_CFLAGS=$pkg_cv_CPG_CFLAGS
12037 CPG_LIBS=$pkg_cv_CPG_LIBS
12038 { $as_echo "$as_me:$LINENO: result: yes" >&5
12039$as_echo "yes" >&6; }
12040 :
12041fi
90c80887 12042 fi
a946372e
AK
12043fi
12044
12045################################################################################
12046{ $as_echo "$as_me:$LINENO: checking whether to enable debugging" >&5
12047$as_echo_n "checking whether to enable debugging... " >&6; }
12048# Check whether --enable-debug was given.
12049if test "${enable_debug+set}" = set; then
12050 enableval=$enable_debug; DEBUG=$enableval
12051else
12052 DEBUG=no
12053fi
12054
12055{ $as_echo "$as_me:$LINENO: result: $DEBUG" >&5
12056$as_echo "$DEBUG" >&6; }
12057
12058if test x$DEBUG = xyes; then
12059 COPTIMISE_FLAG=
12060else
12061 CSCOPE_CMD=
12062fi
12063
12064################################################################################
12065{ $as_echo "$as_me:$LINENO: checking for C optimisation flag" >&5
12066$as_echo_n "checking for C optimisation flag... " >&6; }
12067
12068# Check whether --with-optimisation was given.
12069if test "${with_optimisation+set}" = set; then
12070 withval=$with_optimisation; COPTIMISE_FLAG="$withval"
12071fi
12072
12073{ $as_echo "$as_me:$LINENO: result: $COPTIMISE_FLAG" >&5
12074$as_echo "$COPTIMISE_FLAG" >&6; }
12075
12076################################################################################
12077{ $as_echo "$as_me:$LINENO: checking whether to gather gcov profiling data" >&5
12078$as_echo_n "checking whether to gather gcov profiling data... " >&6; }
12079# Check whether --enable-profiling was given.
12080if test "${enable_profiling+set}" = set; then
5556819a 12081 enableval=$enable_profiling; PROFILING=$enableval
fddafd51 12082else
5556819a 12083 PROFILING=no
fddafd51
ZK
12084fi
12085
ec6a6fbe
AK
12086{ $as_echo "$as_me:$LINENO: result: $PROFILING" >&5
12087$as_echo "$PROFILING" >&6; }
5556819a
AK
12088
12089if test "x$PROFILING" = xyes; then
12090 COPTIMISE_FLAG="$COPTIMISE_FLAG -fprofile-arcs -ftest-coverage"
12091 # Extract the first word of "lcov", so it can be a program name with args.
fddafd51 12092set dummy lcov; ac_word=$2
ec6a6fbe
AK
12093{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12094$as_echo_n "checking for $ac_word... " >&6; }
fddafd51 12095if test "${ac_cv_path_LCOV+set}" = set; then
ec6a6fbe 12096 $as_echo_n "(cached) " >&6
fddafd51
ZK
12097else
12098 case $LCOV in
12099 [\\/]* | ?:[\\/]*)
12100 ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path.
12101 ;;
12102 *)
12103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12104for as_dir in $PATH
12105do
12106 IFS=$as_save_IFS
12107 test -z "$as_dir" && as_dir=.
12108 for ac_exec_ext in '' $ac_executable_extensions; do
12109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12110 ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 12111 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
fddafd51
ZK
12112 break 2
12113 fi
12114done
12115done
12116IFS=$as_save_IFS
12117
12118 ;;
12119esac
12120fi
12121LCOV=$ac_cv_path_LCOV
12122if test -n "$LCOV"; then
ec6a6fbe
AK
12123 { $as_echo "$as_me:$LINENO: result: $LCOV" >&5
12124$as_echo "$LCOV" >&6; }
fddafd51 12125else
ec6a6fbe
AK
12126 { $as_echo "$as_me:$LINENO: result: no" >&5
12127$as_echo "no" >&6; }
fddafd51
ZK
12128fi
12129
12130
5556819a 12131 # Extract the first word of "genhtml", so it can be a program name with args.
fddafd51 12132set dummy genhtml; ac_word=$2
ec6a6fbe
AK
12133{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12134$as_echo_n "checking for $ac_word... " >&6; }
fddafd51 12135if test "${ac_cv_path_GENHTML+set}" = set; then
ec6a6fbe 12136 $as_echo_n "(cached) " >&6
fddafd51
ZK
12137else
12138 case $GENHTML in
12139 [\\/]* | ?:[\\/]*)
12140 ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path.
12141 ;;
12142 *)
12143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12144for as_dir in $PATH
12145do
12146 IFS=$as_save_IFS
12147 test -z "$as_dir" && as_dir=.
12148 for ac_exec_ext in '' $ac_executable_extensions; do
12149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12150 ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 12151 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
fddafd51
ZK
12152 break 2
12153 fi
12154done
12155done
12156IFS=$as_save_IFS
12157
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
fd4728e1 12171 if test -z "$LCOV" -o -z "$GENHTML"; 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
fd4728e1
ZK
12176 # Extract the first word of "genpng", so it can be a program name with args.
12177set dummy genpng; ac_word=$2
12178{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12179$as_echo_n "checking for $ac_word... " >&6; }
12180if test "${ac_cv_path_GENPNG+set}" = set; then
12181 $as_echo_n "(cached) " >&6
12182else
12183 case $GENPNG in
12184 [\\/]* | ?:[\\/]*)
12185 ac_cv_path_GENPNG="$GENPNG" # Let the user override the test with a path.
12186 ;;
12187 *)
12188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12189for as_dir in $PATH
12190do
12191 IFS=$as_save_IFS
12192 test -z "$as_dir" && as_dir=.
12193 for ac_exec_ext in '' $ac_executable_extensions; do
12194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12195 ac_cv_path_GENPNG="$as_dir/$ac_word$ac_exec_ext"
12196 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12197 break 2
12198 fi
12199done
12200done
12201IFS=$as_save_IFS
12202
12203 ;;
12204esac
12205fi
12206GENPNG=$ac_cv_path_GENPNG
12207if test -n "$GENPNG"; then
12208 { $as_echo "$as_me:$LINENO: result: $GENPNG" >&5
12209$as_echo "$GENPNG" >&6; }
12210else
12211 { $as_echo "$as_me:$LINENO: result: no" >&5
12212$as_echo "no" >&6; }
12213fi
12214
12215
12216 if test -n "$GENPNG"; then
12217 { $as_echo "$as_me:$LINENO: checking whether $GENPNG has all required modules" >&5
12218$as_echo_n "checking whether $GENPNG has all required modules... " >&6; }
12219 if $GENPNG --help > /dev/null 2>&1 ; then
12220 { $as_echo "$as_me:$LINENO: result: ok" >&5
12221$as_echo "ok" >&6; }
12222 GENHTML="$GENHTML --frames"
12223 else
12224 { $as_echo "$as_me:$LINENO: result: not supported" >&5
12225$as_echo "not supported" >&6; }
12226 { $as_echo "$as_me:$LINENO: WARNING: GD.pm perl module is not installed" >&5
12227$as_echo "$as_me: WARNING: GD.pm perl module is not installed" >&2;}
12228 GENPNG=
12229 fi
12230 fi
5556819a 12231fi
d0191583
JM
12232
12233################################################################################
ec6a6fbe
AK
12234{ $as_echo "$as_me:$LINENO: checking whether to use device-mapper" >&5
12235$as_echo_n "checking whether to use device-mapper... " >&6; }
d0191583
JM
12236# Check whether --enable-devmapper was given.
12237if test "${enable_devmapper+set}" = set; then
12238 enableval=$enable_devmapper; DEVMAPPER=$enableval
fc54be10
AK
12239fi
12240
ec6a6fbe
AK
12241{ $as_echo "$as_me:$LINENO: result: $DEVMAPPER" >&5
12242$as_echo "$DEVMAPPER" >&6; }
d0191583
JM
12243
12244if test x$DEVMAPPER = xyes; then
ad6254c5
AK
12245
12246cat >>confdefs.h <<\_ACEOF
d0191583 12247#define DEVMAPPER_SUPPORT 1
ad6254c5
AK
12248_ACEOF
12249
12250fi
12251
a5f46f6a
AK
12252################################################################################
12253{ $as_echo "$as_me:$LINENO: checking whether to enable synchronisation with udev processing" >&5
12254$as_echo_n "checking whether to enable synchronisation with udev processing... " >&6; }
12255# Check whether --enable-udev_sync was given.
12256if test "${enable_udev_sync+set}" = set; then
12257 enableval=$enable_udev_sync; UDEV_SYNC=$enableval
12258else
12259 UDEV_SYNC=no
12260fi
12261
12262{ $as_echo "$as_me:$LINENO: result: $UDEV_SYNC" >&5
12263$as_echo "$UDEV_SYNC" >&6; }
12264
90c80887
AK
12265if test x$UDEV_SYNC = xyes; then
12266 { $as_echo "$as_me:$LINENO: checking for udev_queue_get_udev_is_active in -ludev" >&5
12267$as_echo_n "checking for udev_queue_get_udev_is_active in -ludev... " >&6; }
12268if test "${ac_cv_lib_udev_udev_queue_get_udev_is_active+set}" = set; then
12269 $as_echo_n "(cached) " >&6
12270else
12271 ac_check_lib_save_LIBS=$LIBS
12272LIBS="-ludev $LIBS"
12273cat >conftest.$ac_ext <<_ACEOF
12274/* confdefs.h. */
12275_ACEOF
12276cat confdefs.h >>conftest.$ac_ext
12277cat >>conftest.$ac_ext <<_ACEOF
12278/* end confdefs.h. */
12279
12280/* Override any GCC internal prototype to avoid an error.
12281 Use char because int might match the return type of a GCC
12282 builtin and then its argument prototype would still apply. */
12283#ifdef __cplusplus
12284extern "C"
12285#endif
12286char udev_queue_get_udev_is_active ();
12287int
12288main ()
12289{
12290return udev_queue_get_udev_is_active ();
12291 ;
12292 return 0;
12293}
12294_ACEOF
12295rm -f conftest.$ac_objext conftest$ac_exeext
12296if { (ac_try="$ac_link"
12297case "(($ac_try" in
12298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12299 *) ac_try_echo=$ac_try;;
12300esac
12301eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12302$as_echo "$ac_try_echo") >&5
12303 (eval "$ac_link") 2>conftest.er1
12304 ac_status=$?
12305 grep -v '^ *+' conftest.er1 >conftest.err
12306 rm -f conftest.er1
12307 cat conftest.err >&5
12308 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12309 (exit $ac_status); } && {
12310 test -z "$ac_c_werror_flag" ||
12311 test ! -s conftest.err
12312 } && test -s conftest$ac_exeext && {
12313 test "$cross_compiling" = yes ||
12314 $as_test_x conftest$ac_exeext
12315 }; then
12316 ac_cv_lib_udev_udev_queue_get_udev_is_active=yes
12317else
12318 $as_echo "$as_me: failed program was:" >&5
12319sed 's/^/| /' conftest.$ac_ext >&5
12320
12321 ac_cv_lib_udev_udev_queue_get_udev_is_active=no
12322fi
12323
12324rm -rf conftest.dSYM
12325rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12326 conftest$ac_exeext conftest.$ac_ext
12327LIBS=$ac_check_lib_save_LIBS
12328fi
12329{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_udev_udev_queue_get_udev_is_active" >&5
12330$as_echo "$ac_cv_lib_udev_udev_queue_get_udev_is_active" >&6; }
12331if test "x$ac_cv_lib_udev_udev_queue_get_udev_is_active" = x""yes; then
f7f0854e 12332 UDEV_PC="libudev"; UDEV_LIBS="-ludev"
90c80887 12333else
5161ecb9
PR
12334 { { $as_echo "$as_me:$LINENO: error: bailing out... libudev library is required" >&5
12335$as_echo "$as_me: error: bailing out... libudev library is required" >&2;}
12336 { (exit 1); exit 1; }; }
90c80887
AK
12337fi
12338
12339
90c80887 12340cat >>confdefs.h <<\_ACEOF
5161ecb9 12341#define UDEV_SYNC_SUPPORT 1
90c80887
AK
12342_ACEOF
12343
90c80887
AK
12344fi
12345
5161ecb9
PR
12346{ $as_echo "$as_me:$LINENO: checking whether to enable installation of udev rules required for synchronisation" >&5
12347$as_echo_n "checking whether to enable installation of udev rules required for synchronisation... " >&6; }
12348# Check whether --enable-udev_rules was given.
12349if test "${enable_udev_rules+set}" = set; then
12350 enableval=$enable_udev_rules; UDEV_RULES=$enableval
12351else
12352 UDEV_RULES=$UDEV_SYNC
12353fi
12354
12355{ $as_echo "$as_me:$LINENO: result: $UDEV_RULES" >&5
12356$as_echo "$UDEV_RULES" >&6; }
12357
93bd259b
AK
12358################################################################################
12359# Check whether --enable-compat was given.
12360if test "${enable_compat+set}" = set; then
12361 enableval=$enable_compat; DM_COMPAT=$enableval
12362else
12363 DM_COMPAT=no
12364fi
12365
12366
95eaa683
AK
12367################################################################################
12368# Check whether --enable-units-compat was given.
12369if test "${enable_units_compat+set}" = set; then
12370 enableval=$enable_units_compat; UNITS_COMPAT=$enableval
12371else
12372 UNITS_COMPAT=no
12373fi
12374
12375
12376if test x$UNITS_COMPAT = xyes; then
12377
12378cat >>confdefs.h <<\_ACEOF
12379#define DEFAULT_SI_UNIT_CONSISTENCY 0
12380_ACEOF
12381
12382fi
12383
93bd259b
AK
12384################################################################################
12385# Check whether --enable-ioctl was given.
12386if test "${enable_ioctl+set}" = set; then
12387 enableval=$enable_ioctl; DM_IOCTLS=$enableval
12388fi
12389
12390
d0191583 12391################################################################################
ec6a6fbe
AK
12392{ $as_echo "$as_me:$LINENO: checking whether to enable O_DIRECT" >&5
12393$as_echo_n "checking whether to enable O_DIRECT... " >&6; }
d0191583
JM
12394# Check whether --enable-o_direct was given.
12395if test "${enable_o_direct+set}" = set; then
12396 enableval=$enable_o_direct; ODIRECT=$enableval
ad6254c5 12397fi
ad6254c5 12398
ec6a6fbe
AK
12399{ $as_echo "$as_me:$LINENO: result: $ODIRECT" >&5
12400$as_echo "$ODIRECT" >&6; }
ad6254c5 12401
d0191583 12402if test x$ODIRECT = xyes; then
ad6254c5 12403
d0191583
JM
12404cat >>confdefs.h <<\_ACEOF
12405#define O_DIRECT_SUPPORT 1
12406_ACEOF
ad6254c5 12407
d0191583 12408fi
ad6254c5 12409
572fefeb
AK
12410################################################################################
12411{ $as_echo "$as_me:$LINENO: checking whether to build liblvm2app.so application library" >&5
12412$as_echo_n "checking whether to build liblvm2app.so application library... " >&6; }
12413# Check whether --enable-applib was given.
12414if test "${enable_applib+set}" = set; then
12415 enableval=$enable_applib; APPLIB=$enableval
12416else
12417 APPLIB=no
12418fi
12419
12420{ $as_echo "$as_me:$LINENO: result: $APPLIB" >&5
12421$as_echo "$APPLIB" >&6; }
12422
12423test x$APPLIB = xyes \
12424 && LVM2APP_LIB=-llvm2app \
12425 || LVM2APP_LIB=
12426
d0191583 12427################################################################################
ec6a6fbe
AK
12428{ $as_echo "$as_me:$LINENO: checking whether to compile liblvm2cmd.so" >&5
12429$as_echo_n "checking whether to compile liblvm2cmd.so... " >&6; }
d0191583
JM
12430# Check whether --enable-cmdlib was given.
12431if test "${enable_cmdlib+set}" = set; then
12432 enableval=$enable_cmdlib; CMDLIB=$enableval
ad6254c5 12433else
d0191583
JM
12434 CMDLIB=no
12435fi
8a2fc586 12436
ec6a6fbe
AK
12437{ $as_echo "$as_me:$LINENO: result: $CMDLIB" >&5
12438$as_echo "$CMDLIB" >&6; }
8a2fc586 12439
2a9a80c9 12440test x$CMDLIB = xyes \
d179cc7a
JM
12441 && LVM2CMD_LIB=-llvm2cmd \
12442 || LVM2CMD_LIB=
12443
93bd259b
AK
12444################################################################################
12445# Check whether --enable-pkgconfig was given.
12446if test "${enable_pkgconfig+set}" = set; then
12447 enableval=$enable_pkgconfig; PKGCONFIG=$enableval
12448else
12449 PKGCONFIG=no
12450fi
12451
2a9a80c9 12452
23b059e7
ZK
12453################################################################################
12454# Check whether --enable-write_install was given.
12455if test "${enable_write_install+set}" = set; then
12456 enableval=$enable_write_install; WRITE_INSTALL=$enableval
12457else
12458 WRITE_INSTALL=no
12459fi
12460
12461
d0191583 12462################################################################################
ec6a6fbe
AK
12463{ $as_echo "$as_me:$LINENO: checking whether to install fsadm" >&5
12464$as_echo_n "checking whether to install fsadm... " >&6; }
d0191583
JM
12465# Check whether --enable-fsadm was given.
12466if test "${enable_fsadm+set}" = set; then
12467 enableval=$enable_fsadm; FSADM=$enableval
12468fi
8a2fc586 12469
ec6a6fbe
AK
12470{ $as_echo "$as_me:$LINENO: result: $FSADM" >&5
12471$as_echo "$FSADM" >&6; }
8a2fc586 12472
d0191583 12473################################################################################
ec6a6fbe
AK
12474{ $as_echo "$as_me:$LINENO: checking whether to use dmeventd" >&5
12475$as_echo_n "checking whether to use dmeventd... " >&6; }
d0191583
JM
12476# Check whether --enable-dmeventd was given.
12477if test "${enable_dmeventd+set}" = set; then
12478 enableval=$enable_dmeventd; DMEVENTD=$enableval
12479fi
ad6254c5 12480
ec6a6fbe
AK
12481{ $as_echo "$as_me:$LINENO: result: $DMEVENTD" >&5
12482$as_echo "$DMEVENTD" >&6; }
ad6254c5 12483
93bd259b
AK
12484BUILD_DMEVENTD=$DMEVENTD
12485
2a9a80c9
PR
12486if test x$DMEVENTD = xyes; then
12487 if test x$MIRRORS != xinternal; then
ec6a6fbe 12488 { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd currently requires --with-mirrors=internal
2a9a80c9 12489 " >&5
ec6a6fbe 12490$as_echo "$as_me: error: --enable-dmeventd currently requires --with-mirrors=internal
2a9a80c9 12491 " >&2;}
d0191583 12492 { (exit 1); exit 1; }; }
2a9a80c9
PR
12493 fi
12494 if test x$CMDLIB = xno; then
ec6a6fbe 12495 { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd requires --enable-cmdlib to be used as well
2a9a80c9 12496 " >&5
ec6a6fbe 12497$as_echo "$as_me: error: --enable-dmeventd requires --enable-cmdlib to be used as well
2a9a80c9
PR
12498 " >&2;}
12499 { (exit 1); exit 1; }; }
12500 fi
ad6254c5 12501fi
7a197a62 12502
d0191583
JM
12503if test x$DMEVENTD = xyes; then
12504
12505cat >>confdefs.h <<\_ACEOF
12506#define DMEVENTD 1
ad6254c5
AK
12507_ACEOF
12508
ad6254c5 12509fi
93bd259b
AK
12510
12511################################################################################
12512
ec6a6fbe
AK
12513{ $as_echo "$as_me:$LINENO: checking for getline in -lc" >&5
12514$as_echo_n "checking for getline in -lc... " >&6; }
93bd259b 12515if test "${ac_cv_lib_c_getline+set}" = set; then
ec6a6fbe 12516 $as_echo_n "(cached) " >&6
93bd259b
AK
12517else
12518 ac_check_lib_save_LIBS=$LIBS
12519LIBS="-lc $LIBS"
12520cat >conftest.$ac_ext <<_ACEOF
12521/* confdefs.h. */
12522_ACEOF
12523cat confdefs.h >>conftest.$ac_ext
12524cat >>conftest.$ac_ext <<_ACEOF
12525/* end confdefs.h. */
12526
12527/* Override any GCC internal prototype to avoid an error.
12528 Use char because int might match the return type of a GCC
12529 builtin and then its argument prototype would still apply. */
12530#ifdef __cplusplus
12531extern "C"
12532#endif
12533char getline ();
12534int
12535main ()
12536{
12537return getline ();
12538 ;
12539 return 0;
12540}
12541_ACEOF
12542rm -f conftest.$ac_objext conftest$ac_exeext
12543if { (ac_try="$ac_link"
12544case "(($ac_try" in
12545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12546 *) ac_try_echo=$ac_try;;
12547esac
ec6a6fbe
AK
12548eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12549$as_echo "$ac_try_echo") >&5
93bd259b
AK
12550 (eval "$ac_link") 2>conftest.er1
12551 ac_status=$?
12552 grep -v '^ *+' conftest.er1 >conftest.err
12553 rm -f conftest.er1
12554 cat conftest.err >&5
ec6a6fbe 12555 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
93bd259b
AK
12556 (exit $ac_status); } && {
12557 test -z "$ac_c_werror_flag" ||
12558 test ! -s conftest.err
ec6a6fbe
AK
12559 } && test -s conftest$ac_exeext && {
12560 test "$cross_compiling" = yes ||
12561 $as_test_x conftest$ac_exeext
12562 }; then
93bd259b
AK
12563 ac_cv_lib_c_getline=yes
12564else
ec6a6fbe 12565 $as_echo "$as_me: failed program was:" >&5
93bd259b
AK
12566sed 's/^/| /' conftest.$ac_ext >&5
12567
12568 ac_cv_lib_c_getline=no
12569fi
12570
ec6a6fbe 12571rm -rf conftest.dSYM
93bd259b
AK
12572rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12573 conftest$ac_exeext conftest.$ac_ext
12574LIBS=$ac_check_lib_save_LIBS
12575fi
ec6a6fbe
AK
12576{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_getline" >&5
12577$as_echo "$ac_cv_lib_c_getline" >&6; }
12578if test "x$ac_cv_lib_c_getline" = x""yes; then
93bd259b
AK
12579
12580cat >>confdefs.h <<\_ACEOF
12581#define HAVE_GETLINE 1
12582_ACEOF
12583
12584fi
12585
12586
12587################################################################################
12588
ec6a6fbe
AK
12589{ $as_echo "$as_me:$LINENO: checking for canonicalize_file_name in -lc" >&5
12590$as_echo_n "checking for canonicalize_file_name in -lc... " >&6; }
93bd259b 12591if test "${ac_cv_lib_c_canonicalize_file_name+set}" = set; then
ec6a6fbe 12592 $as_echo_n "(cached) " >&6
93bd259b
AK
12593else
12594 ac_check_lib_save_LIBS=$LIBS
12595LIBS="-lc $LIBS"
12596cat >conftest.$ac_ext <<_ACEOF
12597/* confdefs.h. */
12598_ACEOF
12599cat confdefs.h >>conftest.$ac_ext
12600cat >>conftest.$ac_ext <<_ACEOF
12601/* end confdefs.h. */
12602
12603/* Override any GCC internal prototype to avoid an error.
12604 Use char because int might match the return type of a GCC
12605 builtin and then its argument prototype would still apply. */
12606#ifdef __cplusplus
12607extern "C"
12608#endif
12609char canonicalize_file_name ();
12610int
12611main ()
12612{
12613return canonicalize_file_name ();
12614 ;
12615 return 0;
12616}
12617_ACEOF
12618rm -f conftest.$ac_objext conftest$ac_exeext
12619if { (ac_try="$ac_link"
12620case "(($ac_try" in
12621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12622 *) ac_try_echo=$ac_try;;
12623esac
ec6a6fbe
AK
12624eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12625$as_echo "$ac_try_echo") >&5
93bd259b
AK
12626 (eval "$ac_link") 2>conftest.er1
12627 ac_status=$?
12628 grep -v '^ *+' conftest.er1 >conftest.err
12629 rm -f conftest.er1
12630 cat conftest.err >&5
ec6a6fbe 12631 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
93bd259b
AK
12632 (exit $ac_status); } && {
12633 test -z "$ac_c_werror_flag" ||
12634 test ! -s conftest.err
ec6a6fbe
AK
12635 } && test -s conftest$ac_exeext && {
12636 test "$cross_compiling" = yes ||
12637 $as_test_x conftest$ac_exeext
12638 }; then
93bd259b
AK
12639 ac_cv_lib_c_canonicalize_file_name=yes
12640else
ec6a6fbe 12641 $as_echo "$as_me: failed program was:" >&5
93bd259b
AK
12642sed 's/^/| /' conftest.$ac_ext >&5
12643
12644 ac_cv_lib_c_canonicalize_file_name=no
12645fi
12646
ec6a6fbe 12647rm -rf conftest.dSYM
93bd259b
AK
12648rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12649 conftest$ac_exeext conftest.$ac_ext
12650LIBS=$ac_check_lib_save_LIBS
12651fi
ec6a6fbe
AK
12652{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_canonicalize_file_name" >&5
12653$as_echo "$ac_cv_lib_c_canonicalize_file_name" >&6; }
12654if test "x$ac_cv_lib_c_canonicalize_file_name" = x""yes; then
93bd259b
AK
12655
12656cat >>confdefs.h <<\_ACEOF
12657#define HAVE_CANONICALIZE_FILE_NAME 1
12658_ACEOF
12659
12660fi
12661
12662
d0191583
JM
12663################################################################################
12664if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ];
12665 then exec_prefix="";
12666fi;
ad6254c5 12667
ad6254c5 12668################################################################################
ec6a6fbe
AK
12669{ $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12670$as_echo_n "checking for dlopen in -ldl... " >&6; }
ad6254c5 12671if test "${ac_cv_lib_dl_dlopen+set}" = set; then
ec6a6fbe 12672 $as_echo_n "(cached) " >&6
ad6254c5
AK
12673else
12674 ac_check_lib_save_LIBS=$LIBS
12675LIBS="-ldl $LIBS"
12676cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
12677/* confdefs.h. */
12678_ACEOF
12679cat confdefs.h >>conftest.$ac_ext
12680cat >>conftest.$ac_ext <<_ACEOF
12681/* end confdefs.h. */
12682
7a197a62
AK
12683/* Override any GCC internal prototype to avoid an error.
12684 Use char because int might match the return type of a GCC
12685 builtin and then its argument prototype would still apply. */
ad6254c5
AK
12686#ifdef __cplusplus
12687extern "C"
12688#endif
ad6254c5
AK
12689char dlopen ();
12690int
12691main ()
12692{
7a197a62 12693return dlopen ();
ad6254c5
AK
12694 ;
12695 return 0;
12696}
12697_ACEOF
12698rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
12699if { (ac_try="$ac_link"
12700case "(($ac_try" in
12701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12702 *) ac_try_echo=$ac_try;;
12703esac
ec6a6fbe
AK
12704eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12705$as_echo "$ac_try_echo") >&5
7a197a62 12706 (eval "$ac_link") 2>conftest.er1
ad6254c5 12707 ac_status=$?
8a2fc586
AK
12708 grep -v '^ *+' conftest.er1 >conftest.err
12709 rm -f conftest.er1
12710 cat conftest.err >&5
ec6a6fbe 12711 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
12712 (exit $ac_status); } && {
12713 test -z "$ac_c_werror_flag" ||
12714 test ! -s conftest.err
ec6a6fbe
AK
12715 } && test -s conftest$ac_exeext && {
12716 test "$cross_compiling" = yes ||
12717 $as_test_x conftest$ac_exeext
12718 }; then
ad6254c5
AK
12719 ac_cv_lib_dl_dlopen=yes
12720else
ec6a6fbe 12721 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
12722sed 's/^/| /' conftest.$ac_ext >&5
12723
7a197a62 12724 ac_cv_lib_dl_dlopen=no
ad6254c5 12725fi
7a197a62 12726
ec6a6fbe 12727rm -rf conftest.dSYM
25fbec5b 12728rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 12729 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
12730LIBS=$ac_check_lib_save_LIBS
12731fi
ec6a6fbe
AK
12732{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12733$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12734if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
ad6254c5 12735
72b2cb61
AK
12736
12737cat >>confdefs.h <<\_ACEOF
12738#define HAVE_LIBDL 1
12739_ACEOF
12740
19a2c6e0
ZK
12741 DL_LIBS="-ldl"
12742 HAVE_LIBDL=yes
ad6254c5 12743else
19a2c6e0
ZK
12744
12745 DL_LIBS=
ad6254c5
AK
12746 HAVE_LIBDL=no
12747fi
12748
19a2c6e0 12749
ad6254c5
AK
12750################################################################################
12751if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \
12752 -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \
12753 \) -a "x$STATIC_LINK" = xyes ];
ec6a6fbe 12754 then { { $as_echo "$as_me:$LINENO: error: Features cannot be 'shared' when building statically
ad6254c5 12755" >&5
ec6a6fbe 12756$as_echo "$as_me: error: Features cannot be 'shared' when building statically
ad6254c5
AK
12757" >&2;}
12758 { (exit 1); exit 1; }; }
12759fi
12760
f30875db
ZK
12761################################################################################
12762if [ "$DMEVENTD" = yes -o "$CLVMD" != none ] ; then
12763 { $as_echo "$as_me:$LINENO: checking for pthread_mutex_lock in -lpthread" >&5
12764$as_echo_n "checking for pthread_mutex_lock in -lpthread... " >&6; }
12765if test "${ac_cv_lib_pthread_pthread_mutex_lock+set}" = set; then
12766 $as_echo_n "(cached) " >&6
12767else
12768 ac_check_lib_save_LIBS=$LIBS
12769LIBS="-lpthread $LIBS"
12770cat >conftest.$ac_ext <<_ACEOF
12771/* confdefs.h. */
12772_ACEOF
12773cat confdefs.h >>conftest.$ac_ext
12774cat >>conftest.$ac_ext <<_ACEOF
12775/* end confdefs.h. */
12776
12777/* Override any GCC internal prototype to avoid an error.
12778 Use char because int might match the return type of a GCC
12779 builtin and then its argument prototype would still apply. */
12780#ifdef __cplusplus
12781extern "C"
12782#endif
12783char pthread_mutex_lock ();
12784int
12785main ()
12786{
12787return pthread_mutex_lock ();
12788 ;
12789 return 0;
12790}
12791_ACEOF
12792rm -f conftest.$ac_objext conftest$ac_exeext
12793if { (ac_try="$ac_link"
12794case "(($ac_try" in
12795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12796 *) ac_try_echo=$ac_try;;
12797esac
12798eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12799$as_echo "$ac_try_echo") >&5
12800 (eval "$ac_link") 2>conftest.er1
12801 ac_status=$?
12802 grep -v '^ *+' conftest.er1 >conftest.err
12803 rm -f conftest.er1
12804 cat conftest.err >&5
12805 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12806 (exit $ac_status); } && {
12807 test -z "$ac_c_werror_flag" ||
12808 test ! -s conftest.err
12809 } && test -s conftest$ac_exeext && {
12810 test "$cross_compiling" = yes ||
12811 $as_test_x conftest$ac_exeext
12812 }; then
12813 ac_cv_lib_pthread_pthread_mutex_lock=yes
12814else
12815 $as_echo "$as_me: failed program was:" >&5
12816sed 's/^/| /' conftest.$ac_ext >&5
12817
12818 ac_cv_lib_pthread_pthread_mutex_lock=no
12819fi
12820
12821rm -rf conftest.dSYM
12822rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12823 conftest$ac_exeext conftest.$ac_ext
12824LIBS=$ac_check_lib_save_LIBS
12825fi
12826{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_lock" >&5
12827$as_echo "$ac_cv_lib_pthread_pthread_mutex_lock" >&6; }
12828if test "x$ac_cv_lib_pthread_pthread_mutex_lock" = x""yes; then
12829 PTHREAD_LIBS="-lpthread"
12830else
12831 hard_bailout
12832fi
12833
12834fi
12835
d0191583 12836################################################################################
ec6a6fbe
AK
12837{ $as_echo "$as_me:$LINENO: checking whether to enable selinux support" >&5
12838$as_echo_n "checking whether to enable selinux support... " >&6; }
d0191583
JM
12839# Check whether --enable-selinux was given.
12840if test "${enable_selinux+set}" = set; then
12841 enableval=$enable_selinux; SELINUX=$enableval
12842fi
12843
ec6a6fbe
AK
12844{ $as_echo "$as_me:$LINENO: result: $SELINUX" >&5
12845$as_echo "$SELINUX" >&6; }
d0191583 12846
ad6254c5
AK
12847################################################################################
12848if test x$SELINUX = xyes; then
ec6a6fbe
AK
12849 { $as_echo "$as_me:$LINENO: checking for sepol_check_context in -lsepol" >&5
12850$as_echo_n "checking for sepol_check_context in -lsepol... " >&6; }
8a2fc586 12851if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then
ec6a6fbe 12852 $as_echo_n "(cached) " >&6
8a2fc586
AK
12853else
12854 ac_check_lib_save_LIBS=$LIBS
12855LIBS="-lsepol $LIBS"
12856cat >conftest.$ac_ext <<_ACEOF
12857/* confdefs.h. */
12858_ACEOF
12859cat confdefs.h >>conftest.$ac_ext
12860cat >>conftest.$ac_ext <<_ACEOF
12861/* end confdefs.h. */
12862
7a197a62
AK
12863/* Override any GCC internal prototype to avoid an error.
12864 Use char because int might match the return type of a GCC
12865 builtin and then its argument prototype would still apply. */
8a2fc586
AK
12866#ifdef __cplusplus
12867extern "C"
12868#endif
8a2fc586
AK
12869char sepol_check_context ();
12870int
12871main ()
12872{
7a197a62 12873return sepol_check_context ();
8a2fc586
AK
12874 ;
12875 return 0;
12876}
12877_ACEOF
12878rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
12879if { (ac_try="$ac_link"
12880case "(($ac_try" in
12881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12882 *) ac_try_echo=$ac_try;;
12883esac
ec6a6fbe
AK
12884eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12885$as_echo "$ac_try_echo") >&5
7a197a62 12886 (eval "$ac_link") 2>conftest.er1
8a2fc586
AK
12887 ac_status=$?
12888 grep -v '^ *+' conftest.er1 >conftest.err
12889 rm -f conftest.er1
12890 cat conftest.err >&5
ec6a6fbe 12891 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
12892 (exit $ac_status); } && {
12893 test -z "$ac_c_werror_flag" ||
12894 test ! -s conftest.err
ec6a6fbe
AK
12895 } && test -s conftest$ac_exeext && {
12896 test "$cross_compiling" = yes ||
12897 $as_test_x conftest$ac_exeext
12898 }; then
8a2fc586
AK
12899 ac_cv_lib_sepol_sepol_check_context=yes
12900else
ec6a6fbe 12901 $as_echo "$as_me: failed program was:" >&5
8a2fc586
AK
12902sed 's/^/| /' conftest.$ac_ext >&5
12903
7a197a62 12904 ac_cv_lib_sepol_sepol_check_context=no
8a2fc586 12905fi
7a197a62 12906
ec6a6fbe 12907rm -rf conftest.dSYM
25fbec5b 12908rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586
AK
12909 conftest$ac_exeext conftest.$ac_ext
12910LIBS=$ac_check_lib_save_LIBS
12911fi
ec6a6fbe
AK
12912{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sepol_sepol_check_context" >&5
12913$as_echo "$ac_cv_lib_sepol_sepol_check_context" >&6; }
12914if test "x$ac_cv_lib_sepol_sepol_check_context" = x""yes; then
8a2fc586 12915
d0191583
JM
12916
12917cat >>confdefs.h <<\_ACEOF
12918#define HAVE_SEPOL 1
12919_ACEOF
12920
f8f6ec92
ZK
12921 SELINUX_LIBS="-lsepol"
12922fi
12923
8a2fc586 12924
ec6a6fbe
AK
12925 { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
12926$as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
ad6254c5 12927if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
ec6a6fbe 12928 $as_echo_n "(cached) " >&6
ad6254c5
AK
12929else
12930 ac_check_lib_save_LIBS=$LIBS
12931LIBS="-lselinux $LIBS"
12932cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
12933/* confdefs.h. */
12934_ACEOF
12935cat confdefs.h >>conftest.$ac_ext
12936cat >>conftest.$ac_ext <<_ACEOF
12937/* end confdefs.h. */
12938
7a197a62
AK
12939/* Override any GCC internal prototype to avoid an error.
12940 Use char because int might match the return type of a GCC
12941 builtin and then its argument prototype would still apply. */
ad6254c5
AK
12942#ifdef __cplusplus
12943extern "C"
12944#endif
ad6254c5
AK
12945char is_selinux_enabled ();
12946int
12947main ()
12948{
7a197a62 12949return is_selinux_enabled ();
ad6254c5
AK
12950 ;
12951 return 0;
12952}
12953_ACEOF
12954rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
12955if { (ac_try="$ac_link"
12956case "(($ac_try" in
12957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12958 *) ac_try_echo=$ac_try;;
12959esac
ec6a6fbe
AK
12960eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12961$as_echo "$ac_try_echo") >&5
7a197a62 12962 (eval "$ac_link") 2>conftest.er1
ad6254c5 12963 ac_status=$?
8a2fc586
AK
12964 grep -v '^ *+' conftest.er1 >conftest.err
12965 rm -f conftest.er1
12966 cat conftest.err >&5
ec6a6fbe 12967 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
12968 (exit $ac_status); } && {
12969 test -z "$ac_c_werror_flag" ||
12970 test ! -s conftest.err
ec6a6fbe
AK
12971 } && test -s conftest$ac_exeext && {
12972 test "$cross_compiling" = yes ||
12973 $as_test_x conftest$ac_exeext
12974 }; then
ad6254c5
AK
12975 ac_cv_lib_selinux_is_selinux_enabled=yes
12976else
ec6a6fbe 12977 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
12978sed 's/^/| /' conftest.$ac_ext >&5
12979
7a197a62 12980 ac_cv_lib_selinux_is_selinux_enabled=no
ad6254c5 12981fi
7a197a62 12982
ec6a6fbe 12983rm -rf conftest.dSYM
25fbec5b 12984rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 12985 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
12986LIBS=$ac_check_lib_save_LIBS
12987fi
ec6a6fbe
AK
12988{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
12989$as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
12990if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then
ad6254c5 12991
72b2cb61 12992
f8f6ec92
ZK
12993for ac_header in selinux/selinux.h
12994do
12995as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12996if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12997 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12998$as_echo_n "checking for $ac_header... " >&6; }
12999if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 13000 $as_echo_n "(cached) " >&6
f8f6ec92
ZK
13001fi
13002ac_res=`eval 'as_val=${'$as_ac_Header'}
13003 $as_echo "$as_val"'`
13004 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13005$as_echo "$ac_res" >&6; }
66e941e8 13006else
f8f6ec92
ZK
13007 # Is the header compilable?
13008{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13009$as_echo_n "checking $ac_header usability... " >&6; }
66e941e8
JM
13010cat >conftest.$ac_ext <<_ACEOF
13011/* confdefs.h. */
13012_ACEOF
13013cat confdefs.h >>conftest.$ac_ext
13014cat >>conftest.$ac_ext <<_ACEOF
13015/* end confdefs.h. */
f8f6ec92
ZK
13016$ac_includes_default
13017#include <$ac_header>
66e941e8 13018_ACEOF
f8f6ec92
ZK
13019rm -f conftest.$ac_objext
13020if { (ac_try="$ac_compile"
66e941e8
JM
13021case "(($ac_try" in
13022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13023 *) ac_try_echo=$ac_try;;
13024esac
ec6a6fbe
AK
13025eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13026$as_echo "$ac_try_echo") >&5
f8f6ec92 13027 (eval "$ac_compile") 2>conftest.er1
66e941e8
JM
13028 ac_status=$?
13029 grep -v '^ *+' conftest.er1 >conftest.err
13030 rm -f conftest.er1
13031 cat conftest.err >&5
ec6a6fbe 13032 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
13033 (exit $ac_status); } && {
13034 test -z "$ac_c_werror_flag" ||
13035 test ! -s conftest.err
f8f6ec92
ZK
13036 } && test -s conftest.$ac_objext; then
13037 ac_header_compiler=yes
13038else
13039 $as_echo "$as_me: failed program was:" >&5
13040sed 's/^/| /' conftest.$ac_ext >&5
13041
13042 ac_header_compiler=no
13043fi
13044
13045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13046{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13047$as_echo "$ac_header_compiler" >&6; }
13048
13049# Is the header present?
13050{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13051$as_echo_n "checking $ac_header presence... " >&6; }
13052cat >conftest.$ac_ext <<_ACEOF
13053/* confdefs.h. */
13054_ACEOF
13055cat confdefs.h >>conftest.$ac_ext
13056cat >>conftest.$ac_ext <<_ACEOF
13057/* end confdefs.h. */
13058#include <$ac_header>
13059_ACEOF
13060if { (ac_try="$ac_cpp conftest.$ac_ext"
13061case "(($ac_try" in
13062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13063 *) ac_try_echo=$ac_try;;
13064esac
13065eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13066$as_echo "$ac_try_echo") >&5
13067 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13068 ac_status=$?
13069 grep -v '^ *+' conftest.er1 >conftest.err
13070 rm -f conftest.er1
13071 cat conftest.err >&5
13072 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13073 (exit $ac_status); } >/dev/null && {
13074 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13075 test ! -s conftest.err
ec6a6fbe 13076 }; then
f8f6ec92 13077 ac_header_preproc=yes
66e941e8 13078else
ec6a6fbe 13079 $as_echo "$as_me: failed program was:" >&5
66e941e8
JM
13080sed 's/^/| /' conftest.$ac_ext >&5
13081
f8f6ec92
ZK
13082 ac_header_preproc=no
13083fi
13084
13085rm -f conftest.err conftest.$ac_ext
13086{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13087$as_echo "$ac_header_preproc" >&6; }
13088
13089# So? What about this header?
13090case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13091 yes:no: )
13092 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13093$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13094 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13095$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13096 ac_header_preproc=yes
13097 ;;
13098 no:yes:* )
13099 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13100$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13101 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13102$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13103 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13104$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13105 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13106$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13107 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13108$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13109 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13110$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
66e941e8 13111
f8f6ec92
ZK
13112 ;;
13113esac
13114{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13115$as_echo_n "checking for $ac_header... " >&6; }
13116if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13117 $as_echo_n "(cached) " >&6
13118else
13119 eval "$as_ac_Header=\$ac_header_preproc"
66e941e8 13120fi
f8f6ec92
ZK
13121ac_res=`eval 'as_val=${'$as_ac_Header'}
13122 $as_echo "$as_val"'`
13123 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13124$as_echo "$ac_res" >&6; }
66e941e8 13125
66e941e8 13126fi
f8f6ec92
ZK
13127as_val=`eval 'as_val=${'$as_ac_Header'}
13128 $as_echo "$as_val"'`
13129 if test "x$as_val" = x""yes; then
13130 cat >>confdefs.h <<_ACEOF
13131#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13132_ACEOF
13133
66e941e8 13134else
f8f6ec92 13135 hard_bailout
66e941e8 13136fi
f8f6ec92
ZK
13137
13138done
13139
13140
13141cat >>confdefs.h <<\_ACEOF
13142#define HAVE_SELINUX 1
13143_ACEOF
13144
13145 SELINUX_LIBS="-lselinux $SELINUX_LIBS"
f7f0854e 13146 SELINUX_PC="libselinux"
f8f6ec92
ZK
13147 HAVE_SELINUX=yes
13148else
13149
13150 { $as_echo "$as_me:$LINENO: WARNING: Disabling selinux" >&5
13151$as_echo "$as_me: WARNING: Disabling selinux" >&2;}
13152 SELINUX_LIBS=
f7f0854e 13153 SELINUX_PC=
f8f6ec92 13154 HAVE_SELINUX=no
66e941e8
JM
13155fi
13156
ad6254c5
AK
13157fi
13158
8b1a3214
AK
13159################################################################################
13160if test x$REALTIME = xyes; then
ec6a6fbe
AK
13161 { $as_echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
13162$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
8b1a3214 13163if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
ec6a6fbe 13164 $as_echo_n "(cached) " >&6
8b1a3214
AK
13165else
13166 ac_check_lib_save_LIBS=$LIBS
13167LIBS="-lrt $LIBS"
13168cat >conftest.$ac_ext <<_ACEOF
13169/* confdefs.h. */
13170_ACEOF
13171cat confdefs.h >>conftest.$ac_ext
13172cat >>conftest.$ac_ext <<_ACEOF
13173/* end confdefs.h. */
13174
7a197a62
AK
13175/* Override any GCC internal prototype to avoid an error.
13176 Use char because int might match the return type of a GCC
13177 builtin and then its argument prototype would still apply. */
8b1a3214
AK
13178#ifdef __cplusplus
13179extern "C"
13180#endif
8b1a3214
AK
13181char clock_gettime ();
13182int
13183main ()
13184{
7a197a62 13185return clock_gettime ();
8b1a3214
AK
13186 ;
13187 return 0;
13188}
13189_ACEOF
13190rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
13191if { (ac_try="$ac_link"
13192case "(($ac_try" in
13193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13194 *) ac_try_echo=$ac_try;;
13195esac
ec6a6fbe
AK
13196eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13197$as_echo "$ac_try_echo") >&5
7a197a62 13198 (eval "$ac_link") 2>conftest.er1
8b1a3214
AK
13199 ac_status=$?
13200 grep -v '^ *+' conftest.er1 >conftest.err
13201 rm -f conftest.er1
13202 cat conftest.err >&5
ec6a6fbe 13203 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
13204 (exit $ac_status); } && {
13205 test -z "$ac_c_werror_flag" ||
13206 test ! -s conftest.err
ec6a6fbe
AK
13207 } && test -s conftest$ac_exeext && {
13208 test "$cross_compiling" = yes ||
13209 $as_test_x conftest$ac_exeext
13210 }; then
8b1a3214
AK
13211 ac_cv_lib_rt_clock_gettime=yes
13212else
ec6a6fbe 13213 $as_echo "$as_me: failed program was:" >&5
8b1a3214
AK
13214sed 's/^/| /' conftest.$ac_ext >&5
13215
7a197a62 13216 ac_cv_lib_rt_clock_gettime=no
8b1a3214 13217fi
7a197a62 13218
ec6a6fbe 13219rm -rf conftest.dSYM
25fbec5b 13220rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8b1a3214
AK
13221 conftest$ac_exeext conftest.$ac_ext
13222LIBS=$ac_check_lib_save_LIBS
13223fi
ec6a6fbe
AK
13224{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
13225$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
13226if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then
8b1a3214
AK
13227 HAVE_REALTIME=yes
13228else
13229 HAVE_REALTIME=no
13230fi
13231
8b1a3214
AK
13232
13233 if test x$HAVE_REALTIME = xyes; then
13234
13235cat >>confdefs.h <<\_ACEOF
13236#define HAVE_REALTIME 1
13237_ACEOF
13238
13239 LIBS="-lrt $LIBS"
13240 else
ec6a6fbe
AK
13241 { $as_echo "$as_me:$LINENO: WARNING: Disabling realtime clock" >&5
13242$as_echo "$as_me: WARNING: Disabling realtime clock" >&2;}
8b1a3214
AK
13243 fi
13244fi
13245
ad6254c5
AK
13246################################################################################
13247
13248for ac_header in getopt.h
13249do
ec6a6fbe 13250as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 13251if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
13252 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13253$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 13254if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 13255 $as_echo_n "(cached) " >&6
ad6254c5 13256fi
ec6a6fbe
AK
13257ac_res=`eval 'as_val=${'$as_ac_Header'}
13258 $as_echo "$as_val"'`
13259 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13260$as_echo "$ac_res" >&6; }
ad6254c5
AK
13261else
13262 # Is the header compilable?
ec6a6fbe
AK
13263{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13264$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 13265cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
13266/* confdefs.h. */
13267_ACEOF
13268cat confdefs.h >>conftest.$ac_ext
13269cat >>conftest.$ac_ext <<_ACEOF
13270/* end confdefs.h. */
13271$ac_includes_default
13272#include <$ac_header>
13273_ACEOF
13274rm -f conftest.$ac_objext
7a197a62
AK
13275if { (ac_try="$ac_compile"
13276case "(($ac_try" in
13277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13278 *) ac_try_echo=$ac_try;;
13279esac
ec6a6fbe
AK
13280eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13281$as_echo "$ac_try_echo") >&5
7a197a62 13282 (eval "$ac_compile") 2>conftest.er1
ad6254c5 13283 ac_status=$?
8a2fc586
AK
13284 grep -v '^ *+' conftest.er1 >conftest.err
13285 rm -f conftest.er1
13286 cat conftest.err >&5
ec6a6fbe 13287 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
13288 (exit $ac_status); } && {
13289 test -z "$ac_c_werror_flag" ||
13290 test ! -s conftest.err
13291 } && test -s conftest.$ac_objext; then
ad6254c5
AK
13292 ac_header_compiler=yes
13293else
ec6a6fbe 13294 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
13295sed 's/^/| /' conftest.$ac_ext >&5
13296
7a197a62 13297 ac_header_compiler=no
ad6254c5 13298fi
7a197a62
AK
13299
13300rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
13301{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13302$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
13303
13304# Is the header present?
ec6a6fbe
AK
13305{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13306$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 13307cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
13308/* confdefs.h. */
13309_ACEOF
13310cat confdefs.h >>conftest.$ac_ext
13311cat >>conftest.$ac_ext <<_ACEOF
13312/* end confdefs.h. */
13313#include <$ac_header>
13314_ACEOF
7a197a62
AK
13315if { (ac_try="$ac_cpp conftest.$ac_ext"
13316case "(($ac_try" in
13317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13318 *) ac_try_echo=$ac_try;;
13319esac
ec6a6fbe
AK
13320eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13321$as_echo "$ac_try_echo") >&5
7a197a62 13322 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
13323 ac_status=$?
13324 grep -v '^ *+' conftest.er1 >conftest.err
13325 rm -f conftest.er1
13326 cat conftest.err >&5
ec6a6fbe 13327 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
13328 (exit $ac_status); } >/dev/null && {
13329 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13330 test ! -s conftest.err
13331 }; then
ad6254c5
AK
13332 ac_header_preproc=yes
13333else
ec6a6fbe 13334 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
13335sed 's/^/| /' conftest.$ac_ext >&5
13336
13337 ac_header_preproc=no
13338fi
7a197a62 13339
ad6254c5 13340rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
13341{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13342$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
13343
13344# So? What about this header?
8a2fc586
AK
13345case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13346 yes:no: )
ec6a6fbe
AK
13347 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13348$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13349 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13350$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 13351 ac_header_preproc=yes
ad6254c5 13352 ;;
8a2fc586 13353 no:yes:* )
ec6a6fbe
AK
13354 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13355$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13356 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13357$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13358 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13359$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13360 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13361$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13362 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13363$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13364 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13365$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 13366
ad6254c5
AK
13367 ;;
13368esac
ec6a6fbe
AK
13369{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13370$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 13371if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 13372 $as_echo_n "(cached) " >&6
ad6254c5 13373else
8a2fc586 13374 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 13375fi
ec6a6fbe
AK
13376ac_res=`eval 'as_val=${'$as_ac_Header'}
13377 $as_echo "$as_val"'`
13378 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13379$as_echo "$ac_res" >&6; }
ad6254c5
AK
13380
13381fi
ec6a6fbe
AK
13382as_val=`eval 'as_val=${'$as_ac_Header'}
13383 $as_echo "$as_val"'`
13384 if test "x$as_val" = x""yes; then
ad6254c5 13385 cat >>confdefs.h <<_ACEOF
ec6a6fbe 13386#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 13387_ACEOF
72b2cb61
AK
13388
13389cat >>confdefs.h <<\_ACEOF
13390#define HAVE_GETOPTLONG 1
13391_ACEOF
13392
ad6254c5
AK
13393fi
13394
13395done
13396
13397
13398################################################################################
06e459df 13399if test x$READLINE != xno; then
539f4a77
ZK
13400 lvm_saved_libs=$LIBS
13401 { $as_echo "$as_me:$LINENO: checking for library containing tgetent" >&5
13402$as_echo_n "checking for library containing tgetent... " >&6; }
13403if test "${ac_cv_search_tgetent+set}" = set; then
13404 $as_echo_n "(cached) " >&6
13405else
13406 ac_func_search_save_LIBS=$LIBS
13407cat >conftest.$ac_ext <<_ACEOF
13408/* confdefs.h. */
13409_ACEOF
13410cat confdefs.h >>conftest.$ac_ext
13411cat >>conftest.$ac_ext <<_ACEOF
13412/* end confdefs.h. */
bc1024f8 13413
539f4a77
ZK
13414/* Override any GCC internal prototype to avoid an error.
13415 Use char because int might match the return type of a GCC
13416 builtin and then its argument prototype would still apply. */
13417#ifdef __cplusplus
13418extern "C"
13419#endif
13420char tgetent ();
13421int
13422main ()
13423{
13424return tgetent ();
13425 ;
13426 return 0;
13427}
13428_ACEOF
13429for ac_lib in '' tinfo ncurses curses termcap termlib; do
13430 if test -z "$ac_lib"; then
13431 ac_res="none required"
13432 else
13433 ac_res=-l$ac_lib
13434 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13435 fi
13436 rm -f conftest.$ac_objext conftest$ac_exeext
13437if { (ac_try="$ac_link"
13438case "(($ac_try" in
13439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13440 *) ac_try_echo=$ac_try;;
13441esac
13442eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13443$as_echo "$ac_try_echo") >&5
13444 (eval "$ac_link") 2>conftest.er1
13445 ac_status=$?
13446 grep -v '^ *+' conftest.er1 >conftest.err
13447 rm -f conftest.er1
13448 cat conftest.err >&5
13449 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13450 (exit $ac_status); } && {
13451 test -z "$ac_c_werror_flag" ||
13452 test ! -s conftest.err
13453 } && test -s conftest$ac_exeext && {
13454 test "$cross_compiling" = yes ||
13455 $as_test_x conftest$ac_exeext
13456 }; then
13457 ac_cv_search_tgetent=$ac_res
13458else
13459 $as_echo "$as_me: failed program was:" >&5
13460sed 's/^/| /' conftest.$ac_ext >&5
13461
13462
13463fi
13464
13465rm -rf conftest.dSYM
13466rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13467 conftest$ac_exeext
13468 if test "${ac_cv_search_tgetent+set}" = set; then
13469 break
13470fi
13471done
13472if test "${ac_cv_search_tgetent+set}" = set; then
13473 :
13474else
13475 ac_cv_search_tgetent=no
13476fi
13477rm conftest.$ac_ext
13478LIBS=$ac_func_search_save_LIBS
13479fi
13480{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
13481$as_echo "$ac_cv_search_tgetent" >&6; }
13482ac_res=$ac_cv_search_tgetent
13483if test "$ac_res" != no; then
13484 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13485 READLINE_LIBS=$ac_cv_search_tgetent
13486else
13487
13488 if test "$READLINE" = yes; then
13489 { { $as_echo "$as_me:$LINENO: error: termcap could not be found which is required for the
13490--enable-readline option (which is enabled by default). Either disable readline
13491support with --disable-readline or download and install termcap from:
13492 ftp.gnu.org/gnu/termcap
13493Note: if you are using precompiled packages you will also need the development
13494 package as well (which may be called termcap-devel or something similar).
13495Note: (n)curses also seems to work as a substitute for termcap. This was
13496 not found either - but you could try installing that as well." >&5
13497$as_echo "$as_me: error: termcap could not be found which is required for the
13498--enable-readline option (which is enabled by default). Either disable readline
13499support with --disable-readline or download and install termcap from:
13500 ftp.gnu.org/gnu/termcap
13501Note: if you are using precompiled packages you will also need the development
13502 package as well (which may be called termcap-devel or something similar).
13503Note: (n)curses also seems to work as a substitute for termcap. This was
13504 not found either - but you could try installing that as well." >&2;}
13505 { (exit 1); exit 1; }; }
13506 fi
13507fi
13508
13509 { $as_echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
ec6a6fbe 13510$as_echo_n "checking for readline in -lreadline... " >&6; }
ad6254c5 13511if test "${ac_cv_lib_readline_readline+set}" = set; then
ec6a6fbe 13512 $as_echo_n "(cached) " >&6
ad6254c5
AK
13513else
13514 ac_check_lib_save_LIBS=$LIBS
13515LIBS="-lreadline $LIBS"
13516cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
13517/* confdefs.h. */
13518_ACEOF
13519cat confdefs.h >>conftest.$ac_ext
13520cat >>conftest.$ac_ext <<_ACEOF
13521/* end confdefs.h. */
13522
7a197a62
AK
13523/* Override any GCC internal prototype to avoid an error.
13524 Use char because int might match the return type of a GCC
13525 builtin and then its argument prototype would still apply. */
ad6254c5
AK
13526#ifdef __cplusplus
13527extern "C"
13528#endif
ad6254c5
AK
13529char readline ();
13530int
13531main ()
13532{
7a197a62 13533return readline ();
ad6254c5
AK
13534 ;
13535 return 0;
13536}
13537_ACEOF
13538rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
13539if { (ac_try="$ac_link"
13540case "(($ac_try" in
13541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13542 *) ac_try_echo=$ac_try;;
13543esac
ec6a6fbe
AK
13544eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13545$as_echo "$ac_try_echo") >&5
7a197a62 13546 (eval "$ac_link") 2>conftest.er1
ad6254c5 13547 ac_status=$?
8a2fc586
AK
13548 grep -v '^ *+' conftest.er1 >conftest.err
13549 rm -f conftest.er1
13550 cat conftest.err >&5
ec6a6fbe 13551 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
13552 (exit $ac_status); } && {
13553 test -z "$ac_c_werror_flag" ||
13554 test ! -s conftest.err
ec6a6fbe
AK
13555 } && test -s conftest$ac_exeext && {
13556 test "$cross_compiling" = yes ||
13557 $as_test_x conftest$ac_exeext
13558 }; then
ad6254c5
AK
13559 ac_cv_lib_readline_readline=yes
13560else
ec6a6fbe 13561 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
13562sed 's/^/| /' conftest.$ac_ext >&5
13563
7a197a62 13564 ac_cv_lib_readline_readline=no
ad6254c5 13565fi
7a197a62 13566
ec6a6fbe 13567rm -rf conftest.dSYM
25fbec5b 13568rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 13569 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
13570LIBS=$ac_check_lib_save_LIBS
13571fi
ec6a6fbe
AK
13572{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
13573$as_echo "$ac_cv_lib_readline_readline" >&6; }
13574if test "x$ac_cv_lib_readline_readline" = x""yes; then
539f4a77
ZK
13575
13576
13577cat >>confdefs.h <<\_ACEOF
13578#define READLINE_SUPPORT 1
bc1024f8
JM
13579_ACEOF
13580
539f4a77
ZK
13581 LIBS=$lvm_saved_libs
13582 { $as_echo "$as_me:$LINENO: checking for rl_line_buffer in -lreadline" >&5
13583$as_echo_n "checking for rl_line_buffer in -lreadline... " >&6; }
13584if test "${ac_cv_lib_readline_rl_line_buffer+set}" = set; then
13585 $as_echo_n "(cached) " >&6
13586else
13587 ac_check_lib_save_LIBS=$LIBS
13588LIBS="-lreadline $LIBS"
13589cat >conftest.$ac_ext <<_ACEOF
13590/* confdefs.h. */
13591_ACEOF
13592cat confdefs.h >>conftest.$ac_ext
13593cat >>conftest.$ac_ext <<_ACEOF
13594/* end confdefs.h. */
bc1024f8 13595
539f4a77
ZK
13596/* Override any GCC internal prototype to avoid an error.
13597 Use char because int might match the return type of a GCC
13598 builtin and then its argument prototype would still apply. */
13599#ifdef __cplusplus
13600extern "C"
13601#endif
13602char rl_line_buffer ();
13603int
13604main ()
13605{
13606return rl_line_buffer ();
13607 ;
13608 return 0;
13609}
13610_ACEOF
13611rm -f conftest.$ac_objext conftest$ac_exeext
13612if { (ac_try="$ac_link"
13613case "(($ac_try" in
13614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13615 *) ac_try_echo=$ac_try;;
13616esac
13617eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13618$as_echo "$ac_try_echo") >&5
13619 (eval "$ac_link") 2>conftest.er1
13620 ac_status=$?
13621 grep -v '^ *+' conftest.er1 >conftest.err
13622 rm -f conftest.er1
13623 cat conftest.err >&5
13624 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13625 (exit $ac_status); } && {
13626 test -z "$ac_c_werror_flag" ||
13627 test ! -s conftest.err
13628 } && test -s conftest$ac_exeext && {
13629 test "$cross_compiling" = yes ||
13630 $as_test_x conftest$ac_exeext
13631 }; then
13632 ac_cv_lib_readline_rl_line_buffer=yes
ad6254c5 13633else
539f4a77
ZK
13634 $as_echo "$as_me: failed program was:" >&5
13635sed 's/^/| /' conftest.$ac_ext >&5
13636
13637 ac_cv_lib_readline_rl_line_buffer=no
06e459df
JM
13638fi
13639
539f4a77
ZK
13640rm -rf conftest.dSYM
13641rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13642 conftest$ac_exeext conftest.$ac_ext
13643LIBS=$ac_check_lib_save_LIBS
13644fi
13645{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_line_buffer" >&5
13646$as_echo "$ac_cv_lib_readline_rl_line_buffer" >&6; }
13647if test "x$ac_cv_lib_readline_rl_line_buffer" = x""yes; then
13648 READLINE_LIBS="-lreadline"
13649else
13650
13651 { $as_echo "$as_me:$LINENO: result: linking -lreadline with $READLINE_LIBS needed" >&5
13652$as_echo "linking -lreadline with $READLINE_LIBS needed" >&6; }
13653 READLINE_LIBS="-lreadline $READLINE_LIBS"
13654
13655fi
13656
13657else
13658
13659 READLINE_LIBS=
13660 if test "$READLINE" = yes; then
13661 { { $as_echo "$as_me:$LINENO: error: GNU Readline could not be found which is required for the
ad6254c5
AK
13662--enable-readline option (which is enabled by default). Either disable readline
13663support with --disable-readline or download and install readline from:
13664 ftp.gnu.org/gnu/readline
13665Note: if you are using precompiled packages you will also need the development
539f4a77 13666package as well (which may be called readline-devel or something similar)." >&5
ec6a6fbe 13667$as_echo "$as_me: error: GNU Readline could not be found which is required for the
ad6254c5
AK
13668--enable-readline option (which is enabled by default). Either disable readline
13669support with --disable-readline or download and install readline from:
13670 ftp.gnu.org/gnu/readline
13671Note: if you are using precompiled packages you will also need the development
539f4a77 13672package as well (which may be called readline-devel or something similar)." >&2;}
ad6254c5 13673 { (exit 1); exit 1; }; }
539f4a77
ZK
13674 fi
13675fi
13676
13677 LIBS="$READLINE_LIBS $lvm_saved_libs"
bc1024f8
JM
13678
13679for ac_func in rl_completion_matches
13680do
ec6a6fbe
AK
13681as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13682{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13683$as_echo_n "checking for $ac_func... " >&6; }
bc1024f8 13684if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 13685 $as_echo_n "(cached) " >&6
ad6254c5
AK
13686else
13687 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
13688/* confdefs.h. */
13689_ACEOF
13690cat confdefs.h >>conftest.$ac_ext
13691cat >>conftest.$ac_ext <<_ACEOF
13692/* end confdefs.h. */
bc1024f8 13693/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8a2fc586 13694 For example, HP-UX 11i <limits.h> declares gettimeofday. */
bc1024f8 13695#define $ac_func innocuous_$ac_func
8a2fc586 13696
ad6254c5 13697/* System header to define __stub macros and hopefully few prototypes,
bc1024f8 13698 which can conflict with char $ac_func (); below.
ad6254c5
AK
13699 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13700 <limits.h> exists even on freestanding compilers. */
8a2fc586 13701
ad6254c5
AK
13702#ifdef __STDC__
13703# include <limits.h>
13704#else
13705# include <assert.h>
13706#endif
8a2fc586 13707
bc1024f8 13708#undef $ac_func
8a2fc586 13709
7a197a62
AK
13710/* Override any GCC internal prototype to avoid an error.
13711 Use char because int might match the return type of a GCC
13712 builtin and then its argument prototype would still apply. */
ad6254c5
AK
13713#ifdef __cplusplus
13714extern "C"
ad6254c5 13715#endif
bc1024f8 13716char $ac_func ();
ad6254c5
AK
13717/* The GNU C library defines this for functions which it implements
13718 to always fail with ENOSYS. Some functions are actually named
13719 something starting with __ and the normal name is an alias. */
bc1024f8 13720#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 13721choke me
ad6254c5
AK
13722#endif
13723
13724int
13725main ()
13726{
bc1024f8 13727return $ac_func ();
ad6254c5
AK
13728 ;
13729 return 0;
13730}
13731_ACEOF
13732rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
13733if { (ac_try="$ac_link"
13734case "(($ac_try" in
13735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13736 *) ac_try_echo=$ac_try;;
13737esac
ec6a6fbe
AK
13738eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13739$as_echo "$ac_try_echo") >&5
7a197a62 13740 (eval "$ac_link") 2>conftest.er1
ad6254c5 13741 ac_status=$?
8a2fc586
AK
13742 grep -v '^ *+' conftest.er1 >conftest.err
13743 rm -f conftest.er1
13744 cat conftest.err >&5
ec6a6fbe 13745 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
13746 (exit $ac_status); } && {
13747 test -z "$ac_c_werror_flag" ||
13748 test ! -s conftest.err
ec6a6fbe
AK
13749 } && test -s conftest$ac_exeext && {
13750 test "$cross_compiling" = yes ||
13751 $as_test_x conftest$ac_exeext
13752 }; then
bc1024f8 13753 eval "$as_ac_var=yes"
ad6254c5 13754else
ec6a6fbe 13755 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
13756sed 's/^/| /' conftest.$ac_ext >&5
13757
bc1024f8 13758 eval "$as_ac_var=no"
ad6254c5 13759fi
7a197a62 13760
ec6a6fbe 13761rm -rf conftest.dSYM
25fbec5b 13762rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 13763 conftest$ac_exeext conftest.$ac_ext
ad6254c5 13764fi
ec6a6fbe
AK
13765ac_res=`eval 'as_val=${'$as_ac_var'}
13766 $as_echo "$as_val"'`
13767 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13768$as_echo "$ac_res" >&6; }
13769as_val=`eval 'as_val=${'$as_ac_var'}
13770 $as_echo "$as_val"'`
13771 if test "x$as_val" = x""yes; then
bc1024f8 13772 cat >>confdefs.h <<_ACEOF
ec6a6fbe 13773#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
72b2cb61
AK
13774_ACEOF
13775
13776fi
bc1024f8 13777done
ad6254c5 13778
539f4a77 13779 LIBS=$lvm_saved_libs
ad6254c5
AK
13780fi
13781
13782################################################################################
ec6a6fbe
AK
13783{ $as_echo "$as_me:$LINENO: checking whether to enable internationalisation" >&5
13784$as_echo_n "checking whether to enable internationalisation... " >&6; }
7a197a62 13785# Check whether --enable-nls was given.
ad6254c5 13786if test "${enable_nls+set}" = set; then
7a197a62 13787 enableval=$enable_nls; INTL=$enableval
ad6254c5
AK
13788else
13789 INTL=no
7a197a62
AK
13790fi
13791
ec6a6fbe
AK
13792{ $as_echo "$as_me:$LINENO: result: $INTL" >&5
13793$as_echo "$INTL" >&6; }
ad6254c5
AK
13794
13795if test x$INTL = xyes; then
93bd259b 13796# FIXME - Move this - can be device-mapper too
ad6254c5
AK
13797 INTL_PACKAGE="lvm2"
13798 # Extract the first word of "msgfmt", so it can be a program name with args.
13799set dummy msgfmt; ac_word=$2
ec6a6fbe
AK
13800{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13801$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 13802if test "${ac_cv_path_MSGFMT+set}" = set; then
ec6a6fbe 13803 $as_echo_n "(cached) " >&6
ad6254c5
AK
13804else
13805 case $MSGFMT in
13806 [\\/]* | ?:[\\/]*)
13807 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
13808 ;;
13809 *)
13810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13811for as_dir in $PATH
13812do
13813 IFS=$as_save_IFS
13814 test -z "$as_dir" && as_dir=.
13815 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 13816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 13817 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 13818 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
13819 break 2
13820 fi
13821done
13822done
7a197a62 13823IFS=$as_save_IFS
ad6254c5
AK
13824
13825 ;;
13826esac
13827fi
13828MSGFMT=$ac_cv_path_MSGFMT
ad6254c5 13829if test -n "$MSGFMT"; then
ec6a6fbe
AK
13830 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
13831$as_echo "$MSGFMT" >&6; }
ad6254c5 13832else
ec6a6fbe
AK
13833 { $as_echo "$as_me:$LINENO: result: no" >&5
13834$as_echo "no" >&6; }
ad6254c5
AK
13835fi
13836
7a197a62 13837
ad6254c5 13838 if [ "x$MSGFMT" == x ];
ec6a6fbe 13839 then { { $as_echo "$as_me:$LINENO: error: msgfmt not found in path $PATH
ad6254c5 13840 " >&5
ec6a6fbe 13841$as_echo "$as_me: error: msgfmt not found in path $PATH
ad6254c5
AK
13842 " >&2;}
13843 { (exit 1); exit 1; }; }
13844 fi;
13845
13846
7a197a62 13847# Check whether --with-localedir was given.
ad6254c5 13848if test "${with_localedir+set}" = set; then
7a197a62 13849 withval=$with_localedir; LOCALEDIR="$withval"
ad6254c5
AK
13850else
13851 LOCALEDIR='${prefix}/share/locale'
7a197a62
AK
13852fi
13853
ad6254c5
AK
13854fi
13855
13856################################################################################
13857
7a197a62 13858# Check whether --with-confdir was given.
ad6254c5 13859if test "${with_confdir+set}" = set; then
7a197a62 13860 withval=$with_confdir; CONFDIR="$withval"
ad6254c5
AK
13861else
13862 CONFDIR='/etc'
7a197a62
AK
13863fi
13864
ad6254c5
AK
13865
13866
7a197a62 13867# Check whether --with-staticdir was given.
ad6254c5 13868if test "${with_staticdir+set}" = set; then
7a197a62 13869 withval=$with_staticdir; STATICDIR="$withval"
ad6254c5
AK
13870else
13871 STATICDIR='${exec_prefix}/sbin'
7a197a62 13872fi
ad6254c5 13873
33f732c5 13874
7a197a62 13875
68f2de6d
AK
13876# Check whether --with-usrlibdir was given.
13877if test "${with_usrlibdir+set}" = set; then
13878 withval=$with_usrlibdir; usrlibdir="$withval"
13879else
13880 usrlibdir='${prefix}/lib'
13881fi
13882
13883
13884
13885# Check whether --with-usrsbindir was given.
13886if test "${with_usrsbindir+set}" = set; then
13887 withval=$with_usrsbindir; usrsbindir="$withval"
13888else
13889 usrsbindir='${prefix}/sbin'
13890fi
13891
13892
a5f46f6a
AK
13893################################################################################
13894
13895# Check whether --with-udev_prefix was given.
13896if test "${with_udev_prefix+set}" = set; then
13897 withval=$with_udev_prefix; udev_prefix="$withval"
13898else
13899 udev_prefix='${exec_prefix}'
13900fi
13901
13902
78ce7acc
AK
13903
13904# Check whether --with-udevdir was given.
13905if test "${with_udevdir+set}" = set; then
13906 withval=$with_udevdir; udevdir="$withval"
13907else
13908 udevdir='${udev_prefix}/lib/udev/rules.d'
13909fi
13910
a5f46f6a 13911
ad6254c5
AK
13912################################################################################
13913if test x$READLINE = xyes; then
13914
13915
13916for ac_header in readline/readline.h readline/history.h
13917do
ec6a6fbe 13918as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 13919if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
13920 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13921$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 13922if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 13923 $as_echo_n "(cached) " >&6
ad6254c5 13924fi
ec6a6fbe
AK
13925ac_res=`eval 'as_val=${'$as_ac_Header'}
13926 $as_echo "$as_val"'`
13927 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13928$as_echo "$ac_res" >&6; }
ad6254c5
AK
13929else
13930 # Is the header compilable?
ec6a6fbe
AK
13931{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13932$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 13933cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
13934/* confdefs.h. */
13935_ACEOF
13936cat confdefs.h >>conftest.$ac_ext
13937cat >>conftest.$ac_ext <<_ACEOF
13938/* end confdefs.h. */
13939$ac_includes_default
13940#include <$ac_header>
13941_ACEOF
13942rm -f conftest.$ac_objext
7a197a62
AK
13943if { (ac_try="$ac_compile"
13944case "(($ac_try" in
13945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13946 *) ac_try_echo=$ac_try;;
13947esac
ec6a6fbe
AK
13948eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13949$as_echo "$ac_try_echo") >&5
7a197a62 13950 (eval "$ac_compile") 2>conftest.er1
ad6254c5 13951 ac_status=$?
8a2fc586
AK
13952 grep -v '^ *+' conftest.er1 >conftest.err
13953 rm -f conftest.er1
13954 cat conftest.err >&5
ec6a6fbe 13955 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
13956 (exit $ac_status); } && {
13957 test -z "$ac_c_werror_flag" ||
13958 test ! -s conftest.err
13959 } && test -s conftest.$ac_objext; then
ad6254c5
AK
13960 ac_header_compiler=yes
13961else
ec6a6fbe 13962 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
13963sed 's/^/| /' conftest.$ac_ext >&5
13964
7a197a62 13965 ac_header_compiler=no
ad6254c5 13966fi
7a197a62
AK
13967
13968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
13969{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13970$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
13971
13972# Is the header present?
ec6a6fbe
AK
13973{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13974$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 13975cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
13976/* confdefs.h. */
13977_ACEOF
13978cat confdefs.h >>conftest.$ac_ext
13979cat >>conftest.$ac_ext <<_ACEOF
13980/* end confdefs.h. */
13981#include <$ac_header>
13982_ACEOF
7a197a62
AK
13983if { (ac_try="$ac_cpp conftest.$ac_ext"
13984case "(($ac_try" in
13985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13986 *) ac_try_echo=$ac_try;;
13987esac
ec6a6fbe
AK
13988eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13989$as_echo "$ac_try_echo") >&5
7a197a62 13990 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
13991 ac_status=$?
13992 grep -v '^ *+' conftest.er1 >conftest.err
13993 rm -f conftest.er1
13994 cat conftest.err >&5
ec6a6fbe 13995 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
13996 (exit $ac_status); } >/dev/null && {
13997 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13998 test ! -s conftest.err
13999 }; then
ad6254c5
AK
14000 ac_header_preproc=yes
14001else
ec6a6fbe 14002 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14003sed 's/^/| /' conftest.$ac_ext >&5
14004
14005 ac_header_preproc=no
14006fi
7a197a62 14007
ad6254c5 14008rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
14009{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14010$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
14011
14012# So? What about this header?
8a2fc586
AK
14013case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14014 yes:no: )
ec6a6fbe
AK
14015 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14016$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14017 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14018$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 14019 ac_header_preproc=yes
ad6254c5 14020 ;;
8a2fc586 14021 no:yes:* )
ec6a6fbe
AK
14022 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14023$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14024 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14025$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14026 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14027$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14028 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14029$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14030 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14031$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14032 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14033$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 14034
ad6254c5
AK
14035 ;;
14036esac
ec6a6fbe
AK
14037{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14038$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 14039if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 14040 $as_echo_n "(cached) " >&6
ad6254c5 14041else
8a2fc586 14042 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 14043fi
ec6a6fbe
AK
14044ac_res=`eval 'as_val=${'$as_ac_Header'}
14045 $as_echo "$as_val"'`
14046 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14047$as_echo "$ac_res" >&6; }
ad6254c5
AK
14048
14049fi
ec6a6fbe
AK
14050as_val=`eval 'as_val=${'$as_ac_Header'}
14051 $as_echo "$as_val"'`
14052 if test "x$as_val" = x""yes; then
ad6254c5 14053 cat >>confdefs.h <<_ACEOF
ec6a6fbe 14054#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
14055_ACEOF
14056
14057else
ec6a6fbe
AK
14058 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
14059$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5
AK
14060 { (exit 1); exit 1; }; }
14061fi
14062
14063done
14064
14065fi
14066
5c7fc7c4 14067if test x$CLVMD != xnone; then
ad6254c5
AK
14068
14069
14070
14071
14072
14073
14074
14075
14076
14077
14078for 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
14079do
ec6a6fbe 14080as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 14081if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
14082 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14083$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 14084if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 14085 $as_echo_n "(cached) " >&6
ad6254c5 14086fi
ec6a6fbe
AK
14087ac_res=`eval 'as_val=${'$as_ac_Header'}
14088 $as_echo "$as_val"'`
14089 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14090$as_echo "$ac_res" >&6; }
ad6254c5
AK
14091else
14092 # Is the header compilable?
ec6a6fbe
AK
14093{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14094$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 14095cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14096/* confdefs.h. */
14097_ACEOF
14098cat confdefs.h >>conftest.$ac_ext
14099cat >>conftest.$ac_ext <<_ACEOF
14100/* end confdefs.h. */
14101$ac_includes_default
14102#include <$ac_header>
14103_ACEOF
14104rm -f conftest.$ac_objext
7a197a62
AK
14105if { (ac_try="$ac_compile"
14106case "(($ac_try" in
14107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14108 *) ac_try_echo=$ac_try;;
14109esac
ec6a6fbe
AK
14110eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14111$as_echo "$ac_try_echo") >&5
7a197a62 14112 (eval "$ac_compile") 2>conftest.er1
ad6254c5 14113 ac_status=$?
8a2fc586
AK
14114 grep -v '^ *+' conftest.er1 >conftest.err
14115 rm -f conftest.er1
14116 cat conftest.err >&5
ec6a6fbe 14117 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14118 (exit $ac_status); } && {
14119 test -z "$ac_c_werror_flag" ||
14120 test ! -s conftest.err
14121 } && test -s conftest.$ac_objext; then
ad6254c5
AK
14122 ac_header_compiler=yes
14123else
ec6a6fbe 14124 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14125sed 's/^/| /' conftest.$ac_ext >&5
14126
7a197a62 14127 ac_header_compiler=no
ad6254c5 14128fi
7a197a62
AK
14129
14130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
14131{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14132$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
14133
14134# Is the header present?
ec6a6fbe
AK
14135{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14136$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 14137cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14138/* confdefs.h. */
14139_ACEOF
14140cat confdefs.h >>conftest.$ac_ext
14141cat >>conftest.$ac_ext <<_ACEOF
14142/* end confdefs.h. */
14143#include <$ac_header>
14144_ACEOF
7a197a62
AK
14145if { (ac_try="$ac_cpp conftest.$ac_ext"
14146case "(($ac_try" in
14147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14148 *) ac_try_echo=$ac_try;;
14149esac
ec6a6fbe
AK
14150eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14151$as_echo "$ac_try_echo") >&5
7a197a62 14152 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
14153 ac_status=$?
14154 grep -v '^ *+' conftest.er1 >conftest.err
14155 rm -f conftest.er1
14156 cat conftest.err >&5
ec6a6fbe 14157 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14158 (exit $ac_status); } >/dev/null && {
14159 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14160 test ! -s conftest.err
14161 }; then
ad6254c5
AK
14162 ac_header_preproc=yes
14163else
ec6a6fbe 14164 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14165sed 's/^/| /' conftest.$ac_ext >&5
14166
14167 ac_header_preproc=no
14168fi
7a197a62 14169
ad6254c5 14170rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
14171{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14172$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
14173
14174# So? What about this header?
8a2fc586
AK
14175case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14176 yes:no: )
ec6a6fbe
AK
14177 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14178$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14179 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14180$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 14181 ac_header_preproc=yes
ad6254c5 14182 ;;
8a2fc586 14183 no:yes:* )
ec6a6fbe
AK
14184 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14185$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14186 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14187$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14188 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14189$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14190 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14191$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14192 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14193$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14194 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14195$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 14196
ad6254c5
AK
14197 ;;
14198esac
ec6a6fbe
AK
14199{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14200$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 14201if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 14202 $as_echo_n "(cached) " >&6
ad6254c5 14203else
8a2fc586 14204 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 14205fi
ec6a6fbe
AK
14206ac_res=`eval 'as_val=${'$as_ac_Header'}
14207 $as_echo "$as_val"'`
14208 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14209$as_echo "$ac_res" >&6; }
ad6254c5
AK
14210
14211fi
ec6a6fbe
AK
14212as_val=`eval 'as_val=${'$as_ac_Header'}
14213 $as_echo "$as_val"'`
14214 if test "x$as_val" = x""yes; then
ad6254c5 14215 cat >>confdefs.h <<_ACEOF
ec6a6fbe 14216#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
14217_ACEOF
14218
14219else
ec6a6fbe
AK
14220 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
14221$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 14222 { (exit 1); exit 1; }; }
795ca3e5
AK
14223fi
14224
ad6254c5
AK
14225done
14226
14227
795ca3e5 14228
8106cdd5 14229
ad6254c5
AK
14230
14231
14232for ac_func in dup2 getmntent memmove select socket
14233do
ec6a6fbe
AK
14234as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14235{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14236$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 14237if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 14238 $as_echo_n "(cached) " >&6
795ca3e5 14239else
ad6254c5 14240 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14241/* confdefs.h. */
14242_ACEOF
14243cat confdefs.h >>conftest.$ac_ext
14244cat >>conftest.$ac_ext <<_ACEOF
14245/* end confdefs.h. */
8a2fc586
AK
14246/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14247 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14248#define $ac_func innocuous_$ac_func
14249
795ca3e5 14250/* System header to define __stub macros and hopefully few prototypes,
ad6254c5
AK
14251 which can conflict with char $ac_func (); below.
14252 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14253 <limits.h> exists even on freestanding compilers. */
8a2fc586 14254
ad6254c5
AK
14255#ifdef __STDC__
14256# include <limits.h>
14257#else
14258# include <assert.h>
14259#endif
8a2fc586
AK
14260
14261#undef $ac_func
14262
7a197a62
AK
14263/* Override any GCC internal prototype to avoid an error.
14264 Use char because int might match the return type of a GCC
14265 builtin and then its argument prototype would still apply. */
ad6254c5
AK
14266#ifdef __cplusplus
14267extern "C"
ad6254c5 14268#endif
ad6254c5 14269char $ac_func ();
795ca3e5
AK
14270/* The GNU C library defines this for functions which it implements
14271 to always fail with ENOSYS. Some functions are actually named
14272 something starting with __ and the normal name is an alias. */
7a197a62 14273#if defined __stub_$ac_func || defined __stub___$ac_func
795ca3e5 14274choke me
795ca3e5
AK
14275#endif
14276
ad6254c5
AK
14277int
14278main ()
14279{
7a197a62 14280return $ac_func ();
ad6254c5
AK
14281 ;
14282 return 0;
14283}
14284_ACEOF
14285rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
14286if { (ac_try="$ac_link"
14287case "(($ac_try" in
14288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14289 *) ac_try_echo=$ac_try;;
14290esac
ec6a6fbe
AK
14291eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14292$as_echo "$ac_try_echo") >&5
7a197a62 14293 (eval "$ac_link") 2>conftest.er1
ad6254c5 14294 ac_status=$?
8a2fc586
AK
14295 grep -v '^ *+' conftest.er1 >conftest.err
14296 rm -f conftest.er1
14297 cat conftest.err >&5
ec6a6fbe 14298 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14299 (exit $ac_status); } && {
14300 test -z "$ac_c_werror_flag" ||
14301 test ! -s conftest.err
ec6a6fbe
AK
14302 } && test -s conftest$ac_exeext && {
14303 test "$cross_compiling" = yes ||
14304 $as_test_x conftest$ac_exeext
14305 }; then
ad6254c5 14306 eval "$as_ac_var=yes"
795ca3e5 14307else
ec6a6fbe 14308 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14309sed 's/^/| /' conftest.$ac_ext >&5
14310
7a197a62 14311 eval "$as_ac_var=no"
80992638 14312fi
7a197a62 14313
ec6a6fbe 14314rm -rf conftest.dSYM
25fbec5b 14315rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 14316 conftest$ac_exeext conftest.$ac_ext
795ca3e5 14317fi
ec6a6fbe
AK
14318ac_res=`eval 'as_val=${'$as_ac_var'}
14319 $as_echo "$as_val"'`
14320 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14321$as_echo "$ac_res" >&6; }
14322as_val=`eval 'as_val=${'$as_ac_var'}
14323 $as_echo "$as_val"'`
14324 if test "x$as_val" = x""yes; then
ad6254c5 14325 cat >>confdefs.h <<_ACEOF
ec6a6fbe 14326#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5 14327_ACEOF
80992638
AK
14328
14329else
ec6a6fbe
AK
14330 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
14331$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 14332 { (exit 1); exit 1; }; }
8106cdd5 14333fi
ad6254c5 14334done
795ca3e5 14335
25fbec5b
AK
14336 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
14337# -lseq on Dynix/PTX, -lgen on Unixware.
ec6a6fbe
AK
14338{ $as_echo "$as_me:$LINENO: checking for library containing getmntent" >&5
14339$as_echo_n "checking for library containing getmntent... " >&6; }
25fbec5b 14340if test "${ac_cv_search_getmntent+set}" = set; then
ec6a6fbe 14341 $as_echo_n "(cached) " >&6
25fbec5b
AK
14342else
14343 ac_func_search_save_LIBS=$LIBS
14344cat >conftest.$ac_ext <<_ACEOF
14345/* confdefs.h. */
14346_ACEOF
14347cat confdefs.h >>conftest.$ac_ext
14348cat >>conftest.$ac_ext <<_ACEOF
14349/* end confdefs.h. */
80992638 14350
7a197a62
AK
14351/* Override any GCC internal prototype to avoid an error.
14352 Use char because int might match the return type of a GCC
ad6254c5 14353 builtin and then its argument prototype would still apply. */
ad6254c5
AK
14354#ifdef __cplusplus
14355extern "C"
14356#endif
25fbec5b 14357char getmntent ();
ad6254c5
AK
14358int
14359main ()
14360{
25fbec5b 14361return getmntent ();
ad6254c5
AK
14362 ;
14363 return 0;
14364}
14365_ACEOF
25fbec5b
AK
14366for ac_lib in '' sun seq gen; do
14367 if test -z "$ac_lib"; then
14368 ac_res="none required"
14369 else
14370 ac_res=-l$ac_lib
14371 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14372 fi
14373 rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
14374if { (ac_try="$ac_link"
14375case "(($ac_try" in
14376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14377 *) ac_try_echo=$ac_try;;
14378esac
ec6a6fbe
AK
14379eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14380$as_echo "$ac_try_echo") >&5
7a197a62 14381 (eval "$ac_link") 2>conftest.er1
ad6254c5 14382 ac_status=$?
8a2fc586
AK
14383 grep -v '^ *+' conftest.er1 >conftest.err
14384 rm -f conftest.er1
14385 cat conftest.err >&5
ec6a6fbe 14386 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14387 (exit $ac_status); } && {
14388 test -z "$ac_c_werror_flag" ||
14389 test ! -s conftest.err
ec6a6fbe
AK
14390 } && test -s conftest$ac_exeext && {
14391 test "$cross_compiling" = yes ||
14392 $as_test_x conftest$ac_exeext
14393 }; then
25fbec5b 14394 ac_cv_search_getmntent=$ac_res
80992638 14395else
ec6a6fbe 14396 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14397sed 's/^/| /' conftest.$ac_ext >&5
14398
25fbec5b 14399
795ca3e5
AK
14400fi
14401
ec6a6fbe 14402rm -rf conftest.dSYM
25fbec5b
AK
14403rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14404 conftest$ac_exeext
14405 if test "${ac_cv_search_getmntent+set}" = set; then
14406 break
795ca3e5 14407fi
25fbec5b
AK
14408done
14409if test "${ac_cv_search_getmntent+set}" = set; then
14410 :
14411else
14412 ac_cv_search_getmntent=no
14413fi
14414rm conftest.$ac_ext
14415LIBS=$ac_func_search_save_LIBS
14416fi
ec6a6fbe
AK
14417{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
14418$as_echo "$ac_cv_search_getmntent" >&6; }
25fbec5b
AK
14419ac_res=$ac_cv_search_getmntent
14420if test "$ac_res" != no; then
14421 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14422 ac_cv_func_getmntent=yes
14423
14424cat >>confdefs.h <<\_ACEOF
9c961554 14425#define HAVE_GETMNTENT 1
ad6254c5 14426_ACEOF
795ca3e5 14427
25fbec5b
AK
14428else
14429 ac_cv_func_getmntent=no
795ca3e5 14430fi
795ca3e5
AK
14431
14432
ad6254c5
AK
14433# AC_FUNC_REALLOC
14434
14435
14436for ac_header in sys/select.h sys/socket.h
14437do
ec6a6fbe 14438as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 14439if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
14440 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14441$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 14442if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 14443 $as_echo_n "(cached) " >&6
ad6254c5 14444fi
ec6a6fbe
AK
14445ac_res=`eval 'as_val=${'$as_ac_Header'}
14446 $as_echo "$as_val"'`
14447 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14448$as_echo "$ac_res" >&6; }
795ca3e5 14449else
ad6254c5 14450 # Is the header compilable?
ec6a6fbe
AK
14451{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14452$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 14453cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14454/* confdefs.h. */
14455_ACEOF
14456cat confdefs.h >>conftest.$ac_ext
14457cat >>conftest.$ac_ext <<_ACEOF
14458/* end confdefs.h. */
14459$ac_includes_default
14460#include <$ac_header>
14461_ACEOF
14462rm -f conftest.$ac_objext
7a197a62
AK
14463if { (ac_try="$ac_compile"
14464case "(($ac_try" in
14465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14466 *) ac_try_echo=$ac_try;;
14467esac
ec6a6fbe
AK
14468eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14469$as_echo "$ac_try_echo") >&5
7a197a62 14470 (eval "$ac_compile") 2>conftest.er1
ad6254c5 14471 ac_status=$?
8a2fc586
AK
14472 grep -v '^ *+' conftest.er1 >conftest.err
14473 rm -f conftest.er1
14474 cat conftest.err >&5
ec6a6fbe 14475 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14476 (exit $ac_status); } && {
14477 test -z "$ac_c_werror_flag" ||
14478 test ! -s conftest.err
14479 } && test -s conftest.$ac_objext; then
ad6254c5 14480 ac_header_compiler=yes
80992638 14481else
ec6a6fbe 14482 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14483sed 's/^/| /' conftest.$ac_ext >&5
14484
7a197a62 14485 ac_header_compiler=no
ad6254c5 14486fi
7a197a62
AK
14487
14488rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
14489{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14490$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
14491
14492# Is the header present?
ec6a6fbe
AK
14493{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14494$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 14495cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14496/* confdefs.h. */
14497_ACEOF
14498cat confdefs.h >>conftest.$ac_ext
14499cat >>conftest.$ac_ext <<_ACEOF
14500/* end confdefs.h. */
14501#include <$ac_header>
14502_ACEOF
7a197a62
AK
14503if { (ac_try="$ac_cpp conftest.$ac_ext"
14504case "(($ac_try" in
14505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14506 *) ac_try_echo=$ac_try;;
14507esac
ec6a6fbe
AK
14508eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14509$as_echo "$ac_try_echo") >&5
7a197a62 14510 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
14511 ac_status=$?
14512 grep -v '^ *+' conftest.er1 >conftest.err
14513 rm -f conftest.er1
14514 cat conftest.err >&5
ec6a6fbe 14515 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14516 (exit $ac_status); } >/dev/null && {
14517 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14518 test ! -s conftest.err
14519 }; then
ad6254c5
AK
14520 ac_header_preproc=yes
14521else
ec6a6fbe 14522 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14523sed 's/^/| /' conftest.$ac_ext >&5
14524
14525 ac_header_preproc=no
14526fi
7a197a62 14527
ad6254c5 14528rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
14529{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14530$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
14531
14532# So? What about this header?
8a2fc586
AK
14533case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14534 yes:no: )
ec6a6fbe
AK
14535 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14536$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14537 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14538$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 14539 ac_header_preproc=yes
ad6254c5 14540 ;;
8a2fc586 14541 no:yes:* )
ec6a6fbe
AK
14542 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14543$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14544 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14545$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14546 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14547$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14548 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14549$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14550 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14551$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14552 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14553$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 14554
ad6254c5
AK
14555 ;;
14556esac
ec6a6fbe
AK
14557{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14558$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 14559if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 14560 $as_echo_n "(cached) " >&6
ad6254c5 14561else
8a2fc586 14562 eval "$as_ac_Header=\$ac_header_preproc"
8106cdd5 14563fi
ec6a6fbe
AK
14564ac_res=`eval 'as_val=${'$as_ac_Header'}
14565 $as_echo "$as_val"'`
14566 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14567$as_echo "$ac_res" >&6; }
8106cdd5 14568
795ca3e5 14569fi
ec6a6fbe
AK
14570as_val=`eval 'as_val=${'$as_ac_Header'}
14571 $as_echo "$as_val"'`
14572 if test "x$as_val" = x""yes; then
ad6254c5 14573 cat >>confdefs.h <<_ACEOF
ec6a6fbe 14574#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
14575_ACEOF
14576
795ca3e5
AK
14577fi
14578
ad6254c5
AK
14579done
14580
ec6a6fbe
AK
14581{ $as_echo "$as_me:$LINENO: checking types of arguments for select" >&5
14582$as_echo_n "checking types of arguments for select... " >&6; }
ad6254c5 14583if test "${ac_cv_func_select_args+set}" = set; then
ec6a6fbe 14584 $as_echo_n "(cached) " >&6
26e7f2e0 14585else
ad6254c5 14586 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
7a197a62 14587 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
ad6254c5
AK
14588 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
14589 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14590/* confdefs.h. */
14591_ACEOF
14592cat confdefs.h >>conftest.$ac_ext
14593cat >>conftest.$ac_ext <<_ACEOF
14594/* end confdefs.h. */
14595$ac_includes_default
25fbec5b 14596#ifdef HAVE_SYS_SELECT_H
ad6254c5
AK
14597# include <sys/select.h>
14598#endif
25fbec5b 14599#ifdef HAVE_SYS_SOCKET_H
ad6254c5
AK
14600# include <sys/socket.h>
14601#endif
14602
14603int
14604main ()
14605{
14606extern int select ($ac_arg1,
8a2fc586
AK
14607 $ac_arg234, $ac_arg234, $ac_arg234,
14608 $ac_arg5);
ad6254c5
AK
14609 ;
14610 return 0;
14611}
14612_ACEOF
14613rm -f conftest.$ac_objext
7a197a62
AK
14614if { (ac_try="$ac_compile"
14615case "(($ac_try" in
14616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14617 *) ac_try_echo=$ac_try;;
14618esac
ec6a6fbe
AK
14619eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14620$as_echo "$ac_try_echo") >&5
7a197a62 14621 (eval "$ac_compile") 2>conftest.er1
ad6254c5 14622 ac_status=$?
8a2fc586
AK
14623 grep -v '^ *+' conftest.er1 >conftest.err
14624 rm -f conftest.er1
14625 cat conftest.err >&5
ec6a6fbe 14626 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14627 (exit $ac_status); } && {
14628 test -z "$ac_c_werror_flag" ||
14629 test ! -s conftest.err
14630 } && test -s conftest.$ac_objext; then
ad6254c5
AK
14631 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
14632else
ec6a6fbe 14633 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14634sed 's/^/| /' conftest.$ac_ext >&5
14635
7a197a62 14636
ad6254c5 14637fi
7a197a62
AK
14638
14639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
14640 done
14641 done
14642done
14643# Provide a safe default value.
14644: ${ac_cv_func_select_args='int,int *,struct timeval *'}
14645
26e7f2e0 14646fi
ec6a6fbe
AK
14647{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
14648$as_echo "$ac_cv_func_select_args" >&6; }
ad6254c5
AK
14649ac_save_IFS=$IFS; IFS=','
14650set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
14651IFS=$ac_save_IFS
14652shift
14653
14654cat >>confdefs.h <<_ACEOF
14655#define SELECT_TYPE_ARG1 $1
14656_ACEOF
14657
14658
14659cat >>confdefs.h <<_ACEOF
14660#define SELECT_TYPE_ARG234 ($2)
14661_ACEOF
14662
14663
14664cat >>confdefs.h <<_ACEOF
14665#define SELECT_TYPE_ARG5 ($3)
14666_ACEOF
14667
80992638 14668rm -f conftest*
80992638 14669
8106cdd5 14670fi
ad6254c5 14671
ad6254c5
AK
14672if test x$CLUSTER != xnone; then
14673
14674
14675for ac_header in sys/socket.h sys/un.h
b896caa1 14676do
ec6a6fbe 14677as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 14678if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
14679 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14680$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 14681if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 14682 $as_echo_n "(cached) " >&6
ad6254c5 14683fi
ec6a6fbe
AK
14684ac_res=`eval 'as_val=${'$as_ac_Header'}
14685 $as_echo "$as_val"'`
14686 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14687$as_echo "$ac_res" >&6; }
ad6254c5
AK
14688else
14689 # Is the header compilable?
ec6a6fbe
AK
14690{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14691$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 14692cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14693/* confdefs.h. */
14694_ACEOF
14695cat confdefs.h >>conftest.$ac_ext
14696cat >>conftest.$ac_ext <<_ACEOF
14697/* end confdefs.h. */
14698$ac_includes_default
14699#include <$ac_header>
14700_ACEOF
14701rm -f conftest.$ac_objext
7a197a62
AK
14702if { (ac_try="$ac_compile"
14703case "(($ac_try" in
14704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14705 *) ac_try_echo=$ac_try;;
14706esac
ec6a6fbe
AK
14707eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14708$as_echo "$ac_try_echo") >&5
7a197a62 14709 (eval "$ac_compile") 2>conftest.er1
ad6254c5 14710 ac_status=$?
8a2fc586
AK
14711 grep -v '^ *+' conftest.er1 >conftest.err
14712 rm -f conftest.er1
14713 cat conftest.err >&5
ec6a6fbe 14714 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14715 (exit $ac_status); } && {
14716 test -z "$ac_c_werror_flag" ||
14717 test ! -s conftest.err
14718 } && test -s conftest.$ac_objext; then
ad6254c5
AK
14719 ac_header_compiler=yes
14720else
ec6a6fbe 14721 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14722sed 's/^/| /' conftest.$ac_ext >&5
14723
7a197a62 14724 ac_header_compiler=no
ad6254c5 14725fi
7a197a62
AK
14726
14727rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
14728{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14729$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
14730
14731# Is the header present?
ec6a6fbe
AK
14732{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14733$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 14734cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14735/* confdefs.h. */
14736_ACEOF
14737cat confdefs.h >>conftest.$ac_ext
14738cat >>conftest.$ac_ext <<_ACEOF
14739/* end confdefs.h. */
14740#include <$ac_header>
14741_ACEOF
7a197a62
AK
14742if { (ac_try="$ac_cpp conftest.$ac_ext"
14743case "(($ac_try" in
14744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14745 *) ac_try_echo=$ac_try;;
14746esac
ec6a6fbe
AK
14747eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14748$as_echo "$ac_try_echo") >&5
7a197a62 14749 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
14750 ac_status=$?
14751 grep -v '^ *+' conftest.er1 >conftest.err
14752 rm -f conftest.er1
14753 cat conftest.err >&5
ec6a6fbe 14754 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14755 (exit $ac_status); } >/dev/null && {
14756 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14757 test ! -s conftest.err
14758 }; then
ad6254c5
AK
14759 ac_header_preproc=yes
14760else
ec6a6fbe 14761 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14762sed 's/^/| /' conftest.$ac_ext >&5
14763
14764 ac_header_preproc=no
14765fi
7a197a62 14766
ad6254c5 14767rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
14768{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14769$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
14770
14771# So? What about this header?
8a2fc586
AK
14772case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14773 yes:no: )
ec6a6fbe
AK
14774 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14775$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14776 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14777$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 14778 ac_header_preproc=yes
ad6254c5 14779 ;;
8a2fc586 14780 no:yes:* )
ec6a6fbe
AK
14781 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14782$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14783 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14784$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14785 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14786$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14787 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14788$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14789 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14790$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14791 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14792$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 14793
ad6254c5
AK
14794 ;;
14795esac
ec6a6fbe
AK
14796{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14797$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 14798if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 14799 $as_echo_n "(cached) " >&6
ad6254c5 14800else
8a2fc586 14801 eval "$as_ac_Header=\$ac_header_preproc"
b896caa1 14802fi
ec6a6fbe
AK
14803ac_res=`eval 'as_val=${'$as_ac_Header'}
14804 $as_echo "$as_val"'`
14805 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14806$as_echo "$ac_res" >&6; }
ad6254c5
AK
14807
14808fi
ec6a6fbe
AK
14809as_val=`eval 'as_val=${'$as_ac_Header'}
14810 $as_echo "$as_val"'`
14811 if test "x$as_val" = x""yes; then
ad6254c5 14812 cat >>confdefs.h <<_ACEOF
ec6a6fbe 14813#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
14814_ACEOF
14815
80992638 14816else
ec6a6fbe
AK
14817 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
14818$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 14819 { (exit 1); exit 1; }; }
b896caa1 14820fi
ad6254c5 14821
b896caa1
AK
14822done
14823
14824
ad6254c5
AK
14825for ac_func in socket
14826do
ec6a6fbe
AK
14827as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14828{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14829$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 14830if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 14831 $as_echo_n "(cached) " >&6
795ca3e5 14832else
ad6254c5 14833 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14834/* confdefs.h. */
14835_ACEOF
14836cat confdefs.h >>conftest.$ac_ext
14837cat >>conftest.$ac_ext <<_ACEOF
14838/* end confdefs.h. */
8a2fc586
AK
14839/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14840 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14841#define $ac_func innocuous_$ac_func
14842
ad6254c5
AK
14843/* System header to define __stub macros and hopefully few prototypes,
14844 which can conflict with char $ac_func (); below.
14845 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14846 <limits.h> exists even on freestanding compilers. */
8a2fc586 14847
ad6254c5
AK
14848#ifdef __STDC__
14849# include <limits.h>
14850#else
14851# include <assert.h>
14852#endif
8a2fc586
AK
14853
14854#undef $ac_func
14855
7a197a62
AK
14856/* Override any GCC internal prototype to avoid an error.
14857 Use char because int might match the return type of a GCC
14858 builtin and then its argument prototype would still apply. */
ad6254c5
AK
14859#ifdef __cplusplus
14860extern "C"
ad6254c5 14861#endif
ad6254c5
AK
14862char $ac_func ();
14863/* The GNU C library defines this for functions which it implements
14864 to always fail with ENOSYS. Some functions are actually named
14865 something starting with __ and the normal name is an alias. */
7a197a62 14866#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 14867choke me
ad6254c5
AK
14868#endif
14869
14870int
14871main ()
14872{
7a197a62 14873return $ac_func ();
ad6254c5
AK
14874 ;
14875 return 0;
14876}
14877_ACEOF
14878rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
14879if { (ac_try="$ac_link"
14880case "(($ac_try" in
14881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14882 *) ac_try_echo=$ac_try;;
14883esac
ec6a6fbe
AK
14884eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14885$as_echo "$ac_try_echo") >&5
7a197a62 14886 (eval "$ac_link") 2>conftest.er1
ad6254c5 14887 ac_status=$?
8a2fc586
AK
14888 grep -v '^ *+' conftest.er1 >conftest.err
14889 rm -f conftest.er1
14890 cat conftest.err >&5
ec6a6fbe 14891 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14892 (exit $ac_status); } && {
14893 test -z "$ac_c_werror_flag" ||
14894 test ! -s conftest.err
ec6a6fbe
AK
14895 } && test -s conftest$ac_exeext && {
14896 test "$cross_compiling" = yes ||
14897 $as_test_x conftest$ac_exeext
14898 }; then
ad6254c5
AK
14899 eval "$as_ac_var=yes"
14900else
ec6a6fbe 14901 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14902sed 's/^/| /' conftest.$ac_ext >&5
14903
7a197a62 14904 eval "$as_ac_var=no"
ad6254c5 14905fi
7a197a62 14906
ec6a6fbe 14907rm -rf conftest.dSYM
25fbec5b 14908rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 14909 conftest$ac_exeext conftest.$ac_ext
ad6254c5 14910fi
ec6a6fbe
AK
14911ac_res=`eval 'as_val=${'$as_ac_var'}
14912 $as_echo "$as_val"'`
14913 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14914$as_echo "$ac_res" >&6; }
14915as_val=`eval 'as_val=${'$as_ac_var'}
14916 $as_echo "$as_val"'`
14917 if test "x$as_val" = x""yes; then
ad6254c5 14918 cat >>confdefs.h <<_ACEOF
ec6a6fbe 14919#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
14920_ACEOF
14921
14922else
ec6a6fbe
AK
14923 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
14924$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5
AK
14925 { (exit 1); exit 1; }; }
14926fi
14927done
14928
14929fi
14930
14931if test x$HAVE_LIBDL = xyes; then
14932
14933for ac_header in dlfcn.h
14934do
ec6a6fbe 14935as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 14936if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
14937 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14938$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 14939if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 14940 $as_echo_n "(cached) " >&6
ad6254c5 14941fi
ec6a6fbe
AK
14942ac_res=`eval 'as_val=${'$as_ac_Header'}
14943 $as_echo "$as_val"'`
14944 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14945$as_echo "$ac_res" >&6; }
ad6254c5
AK
14946else
14947 # Is the header compilable?
ec6a6fbe
AK
14948{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14949$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 14950cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14951/* confdefs.h. */
14952_ACEOF
14953cat confdefs.h >>conftest.$ac_ext
14954cat >>conftest.$ac_ext <<_ACEOF
14955/* end confdefs.h. */
14956$ac_includes_default
14957#include <$ac_header>
14958_ACEOF
14959rm -f conftest.$ac_objext
7a197a62
AK
14960if { (ac_try="$ac_compile"
14961case "(($ac_try" in
14962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14963 *) ac_try_echo=$ac_try;;
14964esac
ec6a6fbe
AK
14965eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14966$as_echo "$ac_try_echo") >&5
7a197a62 14967 (eval "$ac_compile") 2>conftest.er1
ad6254c5 14968 ac_status=$?
8a2fc586
AK
14969 grep -v '^ *+' conftest.er1 >conftest.err
14970 rm -f conftest.er1
14971 cat conftest.err >&5
ec6a6fbe 14972 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14973 (exit $ac_status); } && {
14974 test -z "$ac_c_werror_flag" ||
14975 test ! -s conftest.err
14976 } && test -s conftest.$ac_objext; then
ad6254c5
AK
14977 ac_header_compiler=yes
14978else
ec6a6fbe 14979 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14980sed 's/^/| /' conftest.$ac_ext >&5
14981
7a197a62 14982 ac_header_compiler=no
ad6254c5 14983fi
7a197a62
AK
14984
14985rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
14986{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14987$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
14988
14989# Is the header present?
ec6a6fbe
AK
14990{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14991$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 14992cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14993/* confdefs.h. */
14994_ACEOF
14995cat confdefs.h >>conftest.$ac_ext
14996cat >>conftest.$ac_ext <<_ACEOF
14997/* end confdefs.h. */
14998#include <$ac_header>
14999_ACEOF
7a197a62
AK
15000if { (ac_try="$ac_cpp conftest.$ac_ext"
15001case "(($ac_try" in
15002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15003 *) ac_try_echo=$ac_try;;
15004esac
ec6a6fbe
AK
15005eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15006$as_echo "$ac_try_echo") >&5
7a197a62 15007 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
15008 ac_status=$?
15009 grep -v '^ *+' conftest.er1 >conftest.err
15010 rm -f conftest.er1
15011 cat conftest.err >&5
ec6a6fbe 15012 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
15013 (exit $ac_status); } >/dev/null && {
15014 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15015 test ! -s conftest.err
15016 }; then
ad6254c5
AK
15017 ac_header_preproc=yes
15018else
ec6a6fbe 15019 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
15020sed 's/^/| /' conftest.$ac_ext >&5
15021
15022 ac_header_preproc=no
15023fi
7a197a62 15024
ad6254c5 15025rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
15026{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15027$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
15028
15029# So? What about this header?
8a2fc586
AK
15030case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15031 yes:no: )
ec6a6fbe
AK
15032 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15033$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15034 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15035$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 15036 ac_header_preproc=yes
ad6254c5 15037 ;;
8a2fc586 15038 no:yes:* )
ec6a6fbe
AK
15039 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15040$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15041 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15042$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15043 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15044$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15045 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15046$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15047 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15048$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15049 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15050$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 15051
ad6254c5
AK
15052 ;;
15053esac
ec6a6fbe
AK
15054{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15055$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 15056if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 15057 $as_echo_n "(cached) " >&6
ad6254c5 15058else
8a2fc586 15059 eval "$as_ac_Header=\$ac_header_preproc"
795ca3e5 15060fi
ec6a6fbe
AK
15061ac_res=`eval 'as_val=${'$as_ac_Header'}
15062 $as_echo "$as_val"'`
15063 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15064$as_echo "$ac_res" >&6; }
80992638 15065
8106cdd5 15066fi
ec6a6fbe
AK
15067as_val=`eval 'as_val=${'$as_ac_Header'}
15068 $as_echo "$as_val"'`
15069 if test "x$as_val" = x""yes; then
ad6254c5 15070 cat >>confdefs.h <<_ACEOF
ec6a6fbe 15071#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 15072_ACEOF
795ca3e5
AK
15073
15074else
ec6a6fbe
AK
15075 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
15076$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 15077 { (exit 1); exit 1; }; }
795ca3e5
AK
15078fi
15079
ad6254c5 15080done
80992638 15081
ad6254c5 15082fi
80992638 15083
ad6254c5 15084if test x$INTL = xyes; then
83912faa 15085
ad6254c5
AK
15086for ac_header in libintl.h
15087do
ec6a6fbe 15088as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 15089if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
15090 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15091$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 15092if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 15093 $as_echo_n "(cached) " >&6
ad6254c5 15094fi
ec6a6fbe
AK
15095ac_res=`eval 'as_val=${'$as_ac_Header'}
15096 $as_echo "$as_val"'`
15097 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15098$as_echo "$ac_res" >&6; }
83912faa 15099else
ad6254c5 15100 # Is the header compilable?
ec6a6fbe
AK
15101{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15102$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 15103cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
15104/* confdefs.h. */
15105_ACEOF
15106cat confdefs.h >>conftest.$ac_ext
15107cat >>conftest.$ac_ext <<_ACEOF
15108/* end confdefs.h. */
15109$ac_includes_default
15110#include <$ac_header>
15111_ACEOF
15112rm -f conftest.$ac_objext
7a197a62
AK
15113if { (ac_try="$ac_compile"
15114case "(($ac_try" in
15115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15116 *) ac_try_echo=$ac_try;;
15117esac
ec6a6fbe
AK
15118eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15119$as_echo "$ac_try_echo") >&5
7a197a62 15120 (eval "$ac_compile") 2>conftest.er1
ad6254c5 15121 ac_status=$?
8a2fc586
AK
15122 grep -v '^ *+' conftest.er1 >conftest.err
15123 rm -f conftest.er1
15124 cat conftest.err >&5
ec6a6fbe 15125 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
15126 (exit $ac_status); } && {
15127 test -z "$ac_c_werror_flag" ||
15128 test ! -s conftest.err
15129 } && test -s conftest.$ac_objext; then
ad6254c5
AK
15130 ac_header_compiler=yes
15131else
ec6a6fbe 15132 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
15133sed 's/^/| /' conftest.$ac_ext >&5
15134
7a197a62 15135 ac_header_compiler=no
ad6254c5 15136fi
7a197a62
AK
15137
15138rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
15139{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15140$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
15141
15142# Is the header present?
ec6a6fbe
AK
15143{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15144$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 15145cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
15146/* confdefs.h. */
15147_ACEOF
15148cat confdefs.h >>conftest.$ac_ext
15149cat >>conftest.$ac_ext <<_ACEOF
15150/* end confdefs.h. */
15151#include <$ac_header>
15152_ACEOF
7a197a62
AK
15153if { (ac_try="$ac_cpp conftest.$ac_ext"
15154case "(($ac_try" in
15155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15156 *) ac_try_echo=$ac_try;;
15157esac
ec6a6fbe
AK
15158eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15159$as_echo "$ac_try_echo") >&5
7a197a62 15160 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
15161 ac_status=$?
15162 grep -v '^ *+' conftest.er1 >conftest.err
15163 rm -f conftest.er1
15164 cat conftest.err >&5
ec6a6fbe 15165 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
15166 (exit $ac_status); } >/dev/null && {
15167 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15168 test ! -s conftest.err
15169 }; then
ad6254c5
AK
15170 ac_header_preproc=yes
15171else
ec6a6fbe 15172 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
15173sed 's/^/| /' conftest.$ac_ext >&5
15174
15175 ac_header_preproc=no
15176fi
7a197a62 15177
ad6254c5 15178rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
15179{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15180$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
15181
15182# So? What about this header?
8a2fc586
AK
15183case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15184 yes:no: )
ec6a6fbe
AK
15185 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15186$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15187 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15188$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 15189 ac_header_preproc=yes
ad6254c5 15190 ;;
8a2fc586 15191 no:yes:* )
ec6a6fbe
AK
15192 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15193$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15194 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15195$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15196 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15197$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15198 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15199$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15200 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15201$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15202 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15203$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 15204
ad6254c5
AK
15205 ;;
15206esac
ec6a6fbe
AK
15207{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15208$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 15209if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 15210 $as_echo_n "(cached) " >&6
80992638 15211else
8a2fc586 15212 eval "$as_ac_Header=\$ac_header_preproc"
83912faa 15213fi
ec6a6fbe
AK
15214ac_res=`eval 'as_val=${'$as_ac_Header'}
15215 $as_echo "$as_val"'`
15216 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15217$as_echo "$ac_res" >&6; }
83912faa 15218
69792976 15219fi
ec6a6fbe
AK
15220as_val=`eval 'as_val=${'$as_ac_Header'}
15221 $as_echo "$as_val"'`
15222 if test "x$as_val" = x""yes; then
ad6254c5 15223 cat >>confdefs.h <<_ACEOF
ec6a6fbe 15224#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 15225_ACEOF
69792976 15226
69792976 15227else
ec6a6fbe
AK
15228 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
15229$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 15230 { (exit 1); exit 1; }; }
80992638
AK
15231fi
15232
ad6254c5 15233done
69792976 15234
ad6254c5
AK
15235fi
15236
a5f46f6a
AK
15237if test x$UDEV_SYNC = xyes; then
15238
15239
15240for ac_header in sys/ipc.h sys/sem.h
15241do
15242as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15243if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15244 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15245$as_echo_n "checking for $ac_header... " >&6; }
15246if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15247 $as_echo_n "(cached) " >&6
15248fi
15249ac_res=`eval 'as_val=${'$as_ac_Header'}
15250 $as_echo "$as_val"'`
15251 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15252$as_echo "$ac_res" >&6; }
15253else
15254 # Is the header compilable?
15255{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15256$as_echo_n "checking $ac_header usability... " >&6; }
15257cat >conftest.$ac_ext <<_ACEOF
15258/* confdefs.h. */
15259_ACEOF
15260cat confdefs.h >>conftest.$ac_ext
15261cat >>conftest.$ac_ext <<_ACEOF
15262/* end confdefs.h. */
15263$ac_includes_default
15264#include <$ac_header>
15265_ACEOF
15266rm -f conftest.$ac_objext
15267if { (ac_try="$ac_compile"
15268case "(($ac_try" in
15269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15270 *) ac_try_echo=$ac_try;;
15271esac
15272eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15273$as_echo "$ac_try_echo") >&5
15274 (eval "$ac_compile") 2>conftest.er1
15275 ac_status=$?
15276 grep -v '^ *+' conftest.er1 >conftest.err
15277 rm -f conftest.er1
15278 cat conftest.err >&5
15279 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15280 (exit $ac_status); } && {
15281 test -z "$ac_c_werror_flag" ||
15282 test ! -s conftest.err
15283 } && test -s conftest.$ac_objext; then
15284 ac_header_compiler=yes
15285else
15286 $as_echo "$as_me: failed program was:" >&5
15287sed 's/^/| /' conftest.$ac_ext >&5
15288
15289 ac_header_compiler=no
15290fi
15291
15292rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15293{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15294$as_echo "$ac_header_compiler" >&6; }
15295
15296# Is the header present?
15297{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15298$as_echo_n "checking $ac_header presence... " >&6; }
15299cat >conftest.$ac_ext <<_ACEOF
15300/* confdefs.h. */
15301_ACEOF
15302cat confdefs.h >>conftest.$ac_ext
15303cat >>conftest.$ac_ext <<_ACEOF
15304/* end confdefs.h. */
15305#include <$ac_header>
15306_ACEOF
15307if { (ac_try="$ac_cpp conftest.$ac_ext"
15308case "(($ac_try" in
15309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15310 *) ac_try_echo=$ac_try;;
15311esac
15312eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15313$as_echo "$ac_try_echo") >&5
15314 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15315 ac_status=$?
15316 grep -v '^ *+' conftest.er1 >conftest.err
15317 rm -f conftest.er1
15318 cat conftest.err >&5
15319 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15320 (exit $ac_status); } >/dev/null && {
15321 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15322 test ! -s conftest.err
15323 }; then
15324 ac_header_preproc=yes
15325else
15326 $as_echo "$as_me: failed program was:" >&5
15327sed 's/^/| /' conftest.$ac_ext >&5
15328
15329 ac_header_preproc=no
15330fi
15331
15332rm -f conftest.err conftest.$ac_ext
15333{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15334$as_echo "$ac_header_preproc" >&6; }
15335
15336# So? What about this header?
15337case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15338 yes:no: )
15339 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15340$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15341 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15342$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15343 ac_header_preproc=yes
15344 ;;
15345 no:yes:* )
15346 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15347$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15348 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15349$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15350 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15351$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15352 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15353$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15354 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15355$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15356 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15357$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15358
15359 ;;
15360esac
15361{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15362$as_echo_n "checking for $ac_header... " >&6; }
15363if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15364 $as_echo_n "(cached) " >&6
15365else
15366 eval "$as_ac_Header=\$ac_header_preproc"
15367fi
15368ac_res=`eval 'as_val=${'$as_ac_Header'}
15369 $as_echo "$as_val"'`
15370 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15371$as_echo "$ac_res" >&6; }
15372
15373fi
15374as_val=`eval 'as_val=${'$as_ac_Header'}
15375 $as_echo "$as_val"'`
15376 if test "x$as_val" = x""yes; then
15377 cat >>confdefs.h <<_ACEOF
15378#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15379_ACEOF
15380
15381else
15382 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
15383$as_echo "$as_me: error: bailing out" >&2;}
15384 { (exit 1); exit 1; }; }
15385fi
15386
15387done
15388
15389fi
15390
a653923f
AK
15391################################################################################
15392# Extract the first word of "modprobe", so it can be a program name with args.
15393set dummy modprobe; ac_word=$2
ec6a6fbe
AK
15394{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
15395$as_echo_n "checking for $ac_word... " >&6; }
72b2cb61 15396if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then
ec6a6fbe 15397 $as_echo_n "(cached) " >&6
72b2cb61
AK
15398else
15399 case $MODPROBE_CMD in
15400 [\\/]* | ?:[\\/]*)
15401 ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path.
15402 ;;
15403 *)
15404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15405for as_dir in $PATH
15406do
15407 IFS=$as_save_IFS
15408 test -z "$as_dir" && as_dir=.
15409 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 15410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
72b2cb61 15411 ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 15412 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
72b2cb61
AK
15413 break 2
15414 fi
15415done
15416done
7a197a62 15417IFS=$as_save_IFS
72b2cb61
AK
15418
15419 ;;
15420esac
15421fi
15422MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD
72b2cb61 15423if test -n "$MODPROBE_CMD"; then
ec6a6fbe
AK
15424 { $as_echo "$as_me:$LINENO: result: $MODPROBE_CMD" >&5
15425$as_echo "$MODPROBE_CMD" >&6; }
72b2cb61 15426else
ec6a6fbe
AK
15427 { $as_echo "$as_me:$LINENO: result: no" >&5
15428$as_echo "no" >&6; }
72b2cb61
AK
15429fi
15430
a653923f 15431
7a197a62 15432
a653923f 15433if test x$MODPROBE_CMD != x; then
72b2cb61
AK
15434
15435cat >>confdefs.h <<_ACEOF
15436#define MODPROBE_CMD "$MODPROBE_CMD"
15437_ACEOF
15438
a653923f
AK
15439fi
15440
80992638 15441################################################################################
93bd259b
AK
15442
15443
15444if test "$BUILD_DMEVENTD" = yes; then
15445
15446# Check whether --with-dmeventd-pidfile was given.
15447if test "${with_dmeventd_pidfile+set}" = set; then
15448 withval=$with_dmeventd_pidfile; cat >>confdefs.h <<_ACEOF
15449#define DMEVENTD_PIDFILE "$withval"
15450_ACEOF
15451
15452else
15453 cat >>confdefs.h <<_ACEOF
15454#define DMEVENTD_PIDFILE "/var/run/dmeventd.pid"
15455_ACEOF
15456
15457fi
15458
15459fi
15460
15461
15462
15463if test "$BUILD_DMEVENTD" = yes; then
15464 dmeventd_prefix="$exec_prefix"
15465 if test "x$dmeventd_prefix" = "xNONE"; then
15466 dmeventd_prefix="$prefix"
15467 fi
15468 if test "x$dmeventd_prefix" = "xNONE"; then
15469 dmeventd_prefix=""
15470 fi
15471
15472# Check whether --with-dmeventd-path was given.
15473if test "${with_dmeventd_path+set}" = set; then
15474 withval=$with_dmeventd_path; cat >>confdefs.h <<_ACEOF
15475#define DMEVENTD_PATH "$withval"
15476_ACEOF
15477
15478else
15479 cat >>confdefs.h <<_ACEOF
15480#define DMEVENTD_PATH "$dmeventd_prefix/sbin/dmeventd"
15481_ACEOF
15482
15483fi
15484
15485fi
15486
15487################################################################################
ec6a6fbe
AK
15488{ $as_echo "$as_me:$LINENO: checking for kernel interface choice" >&5
15489$as_echo_n "checking for kernel interface choice... " >&6; }
93bd259b
AK
15490
15491# Check whether --with-interface was given.
15492if test "${with_interface+set}" = set; then
15493 withval=$with_interface; interface="$withval"
15494else
15495 interface=ioctl
15496fi
15497
15498if [ "x$interface" != xioctl ];
15499then
ec6a6fbe
AK
15500 { { $as_echo "$as_me:$LINENO: error: --with-interface=ioctl required. fs no longer supported." >&5
15501$as_echo "$as_me: error: --with-interface=ioctl required. fs no longer supported." >&2;}
93bd259b
AK
15502 { (exit 1); exit 1; }; }
15503fi
ec6a6fbe
AK
15504{ $as_echo "$as_me:$LINENO: result: $interface" >&5
15505$as_echo "$interface" >&6; }
93bd259b
AK
15506
15507################################################################################
db8b5af9 15508DM_LIB_VERSION="\"`cat "$srcdir"/VERSION_DM 2>/dev/null || echo Unknown`\""
24bbc4d7
AK
15509
15510cat >>confdefs.h <<_ACEOF
15511#define DM_LIB_VERSION $DM_LIB_VERSION
15512_ACEOF
15513
15514
db8b5af9 15515DM_LIB_PATCHLEVEL=`cat "$srcdir"/VERSION_DM | $AWK -F '[-. ]' '{printf "%s.%s.%s",$1,$2,$3}'`
7e3fe830 15516
db8b5af9 15517LVM_VERSION="\"`cat "$srcdir"/VERSION 2>/dev/null || echo Unknown`\""
fae0c576 15518
db8b5af9 15519VER=`cat "$srcdir"/VERSION`
bf456146 15520LVM_RELEASE_DATE="\"`echo $VER | $SED 's/.* (//;s/).*//'`\""
ec6a6fbe
AK
15521VER=`echo "$VER" | $AWK '{print $1}'`
15522LVM_RELEASE="\"`echo "$VER" | $AWK -F '-' '{print $2}'`\""
15523VER=`echo "$VER" | $AWK -F '-' '{print $1}'`
15524LVM_MAJOR=`echo "$VER" | $AWK -F '.' '{print $1}'`
15525LVM_MINOR=`echo "$VER" | $AWK -F '.' '{print $2}'`
bf456146
AK
15526LVM_PATCHLEVEL=`echo "$VER" | $AWK -F '[(.]' '{print $3}'`
15527LVM_LIBAPI=`echo "$VER" | $AWK -F '[()]' '{print $2}'`
ec6a6fbe 15528
80992638 15529################################################################################
fae0c576 15530
83912faa 15531
795ca3e5
AK
15532
15533
15534
15535
15536
15537
5a52dca9 15538
8ef2b021 15539
199e490e 15540
69792976
AK
15541
15542
15543
d0191583 15544
69792976 15545
8106cdd5
AK
15546
15547
15548
15549
15550
d68a82ec 15551
036f273a 15552
7d1552c9 15553
8106cdd5 15554
0a62c911 15555
8106cdd5 15556
4a7f3eb2 15557
4922197a
AK
15558
15559
d8ac0fbc 15560
1a9ea74d 15561
8a2fc586
AK
15562
15563
d0191583 15564
93bd259b
AK
15565
15566
15567
15568
15569
d0191583
JM
15570
15571
15572
15573
15574
8a2fc586 15575
19a2c6e0 15576
f7f0854e
ZK
15577
15578
3ceb7608 15579
8ce0cbda 15580
8b1a3214 15581
ec6a6fbe
AK
15582
15583
15584
15585
e2997b73
AK
15586
15587
15588
15589
15590
15591
a946372e
AK
15592
15593
15594
15595
15596
15597
15598
15599
15600
15601
15602
ec6a6fbe 15603
33f732c5 15604
66e941e8 15605
d3c8211f 15606
7e3fe830 15607
a5f46f6a
AK
15608
15609
15610
572fefeb 15611
90c80887
AK
15612
15613
bf456146 15614
e1b8a236 15615
0878503f 15616
68f2de6d
AK
15617
15618
80992638 15619################################################################################
d3d98fdc 15620ac_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 15621
ad6254c5 15622cat >confcache <<\_ACEOF
795ca3e5
AK
15623# This file is a shell script that caches the results of configure
15624# tests run on this system so they can be shared between configure
ad6254c5
AK
15625# scripts and configure runs, see configure's option --config-cache.
15626# It is not useful on other systems. If it contains results you don't
15627# want to keep, you may remove or edit it.
795ca3e5 15628#
ad6254c5
AK
15629# config.status only pays attention to the cache file if you give it
15630# the --recheck option to rerun configure.
795ca3e5 15631#
ad6254c5
AK
15632# `ac_cv_env_foo' variables (set or unset) will be overridden when
15633# loading this file, other *unset* `ac_cv_foo' will be assigned the
15634# following values.
15635
15636_ACEOF
15637
795ca3e5
AK
15638# The following way of writing the cache mishandles newlines in values,
15639# but we know of no workaround that is simple, portable, and efficient.
7a197a62 15640# So, we kill variables containing newlines.
795ca3e5
AK
15641# Ultrix sh set writes to stderr and can't be redirected directly,
15642# and sets the high bit in the cache file unless we assign to the vars.
7a197a62
AK
15643(
15644 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15645 eval ac_val=\$$ac_var
15646 case $ac_val in #(
15647 *${as_nl}*)
15648 case $ac_var in #(
ec6a6fbe
AK
15649 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
15650$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7a197a62
AK
15651 esac
15652 case $ac_var in #(
15653 _ | IFS | as_nl) ;; #(
ec6a6fbe 15654 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7a197a62
AK
15655 *) $as_unset $ac_var ;;
15656 esac ;;
15657 esac
15658 done
15659
ad6254c5 15660 (set) 2>&1 |
7a197a62
AK
15661 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15662 *${as_nl}ac_space=\ *)
ad6254c5
AK
15663 # `set' does not quote correctly, so add quotes (double-quote
15664 # substitution turns \\\\ into \\, and sed turns \\ into \).
15665 sed -n \
8a2fc586
AK
15666 "s/'/'\\\\''/g;
15667 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7a197a62 15668 ;; #(
ad6254c5
AK
15669 *)
15670 # `set' quotes correctly as required by POSIX, so do not add quotes.
7a197a62 15671 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
ad6254c5 15672 ;;
7a197a62
AK
15673 esac |
15674 sort
15675) |
ad6254c5 15676 sed '
7a197a62 15677 /^ac_cv_env_/b end
ad6254c5 15678 t clear
7a197a62 15679 :clear
ad6254c5
AK
15680 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15681 t end
7a197a62
AK
15682 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15683 :end' >>confcache
15684if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15685 if test -w "$cache_file"; then
15686 test "x$cache_file" != "x/dev/null" &&
ec6a6fbe
AK
15687 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
15688$as_echo "$as_me: updating cache $cache_file" >&6;}
ad6254c5 15689 cat confcache >$cache_file
795ca3e5 15690 else
ec6a6fbe
AK
15691 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
15692$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
795ca3e5
AK
15693 fi
15694fi
15695rm -f confcache
15696
795ca3e5
AK
15697test "x$prefix" = xNONE && prefix=$ac_default_prefix
15698# Let make expand exec_prefix.
15699test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15700
72b2cb61 15701DEFS=-DHAVE_CONFIG_H
ad6254c5
AK
15702
15703ac_libobjs=
15704ac_ltlibobjs=
15705for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15706 # 1. Remove the extension, and $U if already installed.
7a197a62 15707 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
ec6a6fbe 15708 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7a197a62
AK
15709 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15710 # will be set to the directory where LIBOBJS objects are built.
15711 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15712 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
ad6254c5
AK
15713done
15714LIBOBJS=$ac_libobjs
80992638 15715
ad6254c5
AK
15716LTLIBOBJS=$ac_ltlibobjs
15717
15718
15719
15720: ${CONFIG_STATUS=./config.status}
ec6a6fbe 15721ac_write_fail=0
ad6254c5
AK
15722ac_clean_files_save=$ac_clean_files
15723ac_clean_files="$ac_clean_files $CONFIG_STATUS"
ec6a6fbe
AK
15724{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15725$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15726cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5
AK
15727#! $SHELL
15728# Generated by $as_me.
795ca3e5 15729# Run this file to recreate the current configuration.
795ca3e5 15730# Compiler output produced by configure, useful for debugging
ad6254c5
AK
15731# configure, is in config.log if it exists.
15732
15733debug=false
15734ac_cs_recheck=false
15735ac_cs_silent=false
15736SHELL=\${CONFIG_SHELL-$SHELL}
15737_ACEOF
15738
ec6a6fbe 15739cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ad6254c5
AK
15740## --------------------- ##
15741## M4sh Initialization. ##
15742## --------------------- ##
15743
25fbec5b
AK
15744# Be more Bourne compatible
15745DUALCASE=1; export DUALCASE # for MKS sh
ad6254c5
AK
15746if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15747 emulate sh
15748 NULLCMD=:
ec6a6fbe 15749 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
ad6254c5
AK
15750 # is contrary to our usage. Disable this feature.
15751 alias -g '${1+"$@"}'='"$@"'
7a197a62
AK
15752 setopt NO_GLOB_SUBST
15753else
25fbec5b
AK
15754 case `(set -o) 2>/dev/null` in
15755 *posix*) set -o posix ;;
15756esac
15757
7a197a62 15758fi
25fbec5b
AK
15759
15760
7a197a62
AK
15761
15762
15763# PATH needs CR
15764# Avoid depending upon Character Ranges.
15765as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15766as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15767as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15768as_cr_digits='0123456789'
15769as_cr_alnum=$as_cr_Letters$as_cr_digits
15770
ec6a6fbe
AK
15771as_nl='
15772'
15773export as_nl
15774# Printing a long string crashes Solaris 7 /usr/bin/printf.
15775as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15776as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15777as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15778if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15779 as_echo='printf %s\n'
15780 as_echo_n='printf %s'
15781else
15782 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15783 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15784 as_echo_n='/usr/ucb/echo -n'
68f2de6d 15785 else
ec6a6fbe
AK
15786 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15787 as_echo_n_body='eval
15788 arg=$1;
15789 case $arg in
15790 *"$as_nl"*)
15791 expr "X$arg" : "X\\(.*\\)$as_nl";
15792 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15793 esac;
15794 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15795 '
15796 export as_echo_n_body
15797 as_echo_n='sh -c $as_echo_n_body as_echo'
68f2de6d 15798 fi
ec6a6fbe
AK
15799 export as_echo_body
15800 as_echo='sh -c $as_echo_body as_echo'
15801fi
15802
15803# The user is always right.
15804if test "${PATH_SEPARATOR+set}" != set; then
15805 PATH_SEPARATOR=:
15806 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15807 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15808 PATH_SEPARATOR=';'
15809 }
ad6254c5
AK
15810fi
15811
15812# Support unset when possible.
8a2fc586 15813if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
ad6254c5
AK
15814 as_unset=unset
15815else
15816 as_unset=false
15817fi
8106cdd5 15818
ad6254c5 15819
7a197a62
AK
15820# IFS
15821# We need space, tab and new line, in precisely that order. Quoting is
15822# there to prevent editors from complaining about space-tab.
15823# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15824# splitting by setting IFS to empty value.)
7a197a62
AK
15825IFS=" "" $as_nl"
15826
15827# Find who we are. Look in the path if we contain no directory separator.
15828case $0 in
15829 *[\\/]* ) as_myself=$0 ;;
15830 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15831for as_dir in $PATH
15832do
15833 IFS=$as_save_IFS
15834 test -z "$as_dir" && as_dir=.
15835 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15836done
15837IFS=$as_save_IFS
15838
15839 ;;
15840esac
15841# We did not find ourselves, most probably we were run as `sh COMMAND'
15842# in which case we are not to be found in the path.
15843if test "x$as_myself" = x; then
15844 as_myself=$0
15845fi
15846if test ! -f "$as_myself"; then
ec6a6fbe 15847 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7a197a62
AK
15848 { (exit 1); exit 1; }
15849fi
15850
ad6254c5 15851# Work around bugs in pre-3.0 UWIN ksh.
7a197a62
AK
15852for as_var in ENV MAIL MAILPATH
15853do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15854done
ad6254c5
AK
15855PS1='$ '
15856PS2='> '
15857PS4='+ '
15858
15859# NLS nuisances.
ec6a6fbe
AK
15860LC_ALL=C
15861export LC_ALL
15862LANGUAGE=C
15863export LANGUAGE
8106cdd5 15864
ad6254c5 15865# Required to use basename.
7a197a62
AK
15866if expr a : '\(a\)' >/dev/null 2>&1 &&
15867 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
15868 as_expr=expr
15869else
15870 as_expr=false
15871fi
8106cdd5 15872
7a197a62 15873if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
ad6254c5
AK
15874 as_basename=basename
15875else
15876 as_basename=false
15877fi
15878
15879
15880# Name of the executable.
7a197a62 15881as_me=`$as_basename -- "$0" ||
ad6254c5
AK
15882$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15883 X"$0" : 'X\(//\)$' \| \
7a197a62 15884 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 15885$as_echo X/"$0" |
7a197a62
AK
15886 sed '/^.*\/\([^/][^/]*\)\/*$/{
15887 s//\1/
15888 q
15889 }
15890 /^X\/\(\/\/\)$/{
15891 s//\1/
15892 q
15893 }
15894 /^X\/\(\/\).*/{
15895 s//\1/
15896 q
15897 }
15898 s/.*/./; q'`
ad6254c5 15899
7a197a62
AK
15900# CDPATH.
15901$as_unset CDPATH
ad6254c5
AK
15902
15903
ad6254c5 15904
ad6254c5
AK
15905 as_lineno_1=$LINENO
15906 as_lineno_2=$LINENO
ad6254c5 15907 test "x$as_lineno_1" != "x$as_lineno_2" &&
7a197a62 15908 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
795ca3e5 15909
ad6254c5
AK
15910 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15911 # uniformly replaced by the line number. The first 'sed' inserts a
7a197a62
AK
15912 # line-number line after each line using $LINENO; the second 'sed'
15913 # does the real work. The second script uses 'N' to pair each
15914 # line-number line with the line containing $LINENO, and appends
15915 # trailing '-' during substitution so that $LINENO is not a special
15916 # case at line end.
ad6254c5 15917 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7a197a62
AK
15918 # scripts with optimization help from Paolo Bonzini. Blame Lee
15919 # E. McMahon (1931-1989) for sed's syntax. :-)
15920 sed -n '
15921 p
15922 /[$]LINENO/=
15923 ' <$as_myself |
ad6254c5 15924 sed '
7a197a62
AK
15925 s/[$]LINENO.*/&-/
15926 t lineno
15927 b
15928 :lineno
ad6254c5 15929 N
7a197a62
AK
15930 :loop
15931 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
ad6254c5 15932 t loop
7a197a62 15933 s/-\n.*//
ad6254c5 15934 ' >$as_me.lineno &&
7a197a62 15935 chmod +x "$as_me.lineno" ||
ec6a6fbe 15936 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
ad6254c5
AK
15937 { (exit 1); exit 1; }; }
15938
15939 # Don't try to exec as it changes $[0], causing all sort of problems
15940 # (the dirname of $[0] is not the place where we might find the
7a197a62
AK
15941 # original and so on. Autoconf is especially sensitive to this).
15942 . "./$as_me.lineno"
ad6254c5
AK
15943 # Exit status is that of the last command.
15944 exit
15945}
15946
15947
7a197a62
AK
15948if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15949 as_dirname=dirname
15950else
15951 as_dirname=false
15952fi
15953
15954ECHO_C= ECHO_N= ECHO_T=
15955case `echo -n x` in
15956-n*)
15957 case `echo 'x\c'` in
15958 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15959 *) ECHO_C='\c';;
15960 esac;;
15961*)
15962 ECHO_N='-n';;
ad6254c5 15963esac
7a197a62
AK
15964if expr a : '\(a\)' >/dev/null 2>&1 &&
15965 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
15966 as_expr=expr
15967else
15968 as_expr=false
15969fi
80992638 15970
ad6254c5 15971rm -f conf$$ conf$$.exe conf$$.file
7a197a62
AK
15972if test -d conf$$.dir; then
15973 rm -f conf$$.dir/conf$$.file
15974else
15975 rm -f conf$$.dir
ec6a6fbe
AK
15976 mkdir conf$$.dir 2>/dev/null
15977fi
15978if (echo >conf$$.file) 2>/dev/null; then
15979 if ln -s conf$$.file conf$$ 2>/dev/null; then
15980 as_ln_s='ln -s'
15981 # ... but there are two gotchas:
15982 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15983 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15984 # In both cases, we have to default to `cp -p'.
15985 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15986 as_ln_s='cp -p'
15987 elif ln conf$$.file conf$$ 2>/dev/null; then
15988 as_ln_s=ln
15989 else
ad6254c5 15990 as_ln_s='cp -p'
ec6a6fbe 15991 fi
ad6254c5
AK
15992else
15993 as_ln_s='cp -p'
15994fi
7a197a62
AK
15995rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15996rmdir conf$$.dir 2>/dev/null
8106cdd5 15997
ad6254c5
AK
15998if mkdir -p . 2>/dev/null; then
15999 as_mkdir_p=:
16000else
8a2fc586 16001 test -d ./-p && rmdir ./-p
ad6254c5
AK
16002 as_mkdir_p=false
16003fi
16004
25fbec5b
AK
16005if test -x / >/dev/null 2>&1; then
16006 as_test_x='test -x'
7a197a62 16007else
25fbec5b
AK
16008 if ls -dL / >/dev/null 2>&1; then
16009 as_ls_L_option=L
16010 else
16011 as_ls_L_option=
16012 fi
16013 as_test_x='
16014 eval sh -c '\''
16015 if test -d "$1"; then
ec6a6fbe 16016 test -d "$1/.";
25fbec5b
AK
16017 else
16018 case $1 in
ec6a6fbe 16019 -*)set "./$1";;
25fbec5b
AK
16020 esac;
16021 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
16022 ???[sx]*):;;*)false;;esac;fi
16023 '\'' sh
16024 '
7a197a62 16025fi
25fbec5b 16026as_executable_p=$as_test_x
ad6254c5
AK
16027
16028# Sed expression to map a string onto a valid CPP name.
8a2fc586 16029as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
16030
16031# Sed expression to map a string onto a valid variable name.
8a2fc586 16032as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
16033
16034
ad6254c5
AK
16035exec 6>&1
16036
7a197a62 16037# Save the log message, to keep $[0] and so on meaningful, and to
ad6254c5 16038# report actual input values of CONFIG_FILES etc. instead of their
7a197a62
AK
16039# values after options handling.
16040ac_log="
ad6254c5 16041This file was extended by $as_me, which was
ec6a6fbe 16042generated by GNU Autoconf 2.63. Invocation command line was
ad6254c5
AK
16043
16044 CONFIG_FILES = $CONFIG_FILES
16045 CONFIG_HEADERS = $CONFIG_HEADERS
16046 CONFIG_LINKS = $CONFIG_LINKS
16047 CONFIG_COMMANDS = $CONFIG_COMMANDS
16048 $ $0 $@
16049
7a197a62
AK
16050on `(hostname || uname -n) 2>/dev/null | sed 1q`
16051"
16052
ad6254c5
AK
16053_ACEOF
16054
ec6a6fbe
AK
16055case $ac_config_files in *"
16056"*) set x $ac_config_files; shift; ac_config_files=$*;;
16057esac
16058
16059case $ac_config_headers in *"
16060"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16061esac
16062
16063
16064cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5 16065# Files that config.status was made for.
68f2de6d
AK
16066config_files="$ac_config_files"
16067config_headers="$ac_config_headers"
ad6254c5 16068
7a197a62 16069_ACEOF
ad6254c5 16070
ec6a6fbe 16071cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ad6254c5
AK
16072ac_cs_usage="\
16073\`$as_me' instantiates files from templates according to the
16074current configuration.
16075
ec6a6fbe 16076Usage: $0 [OPTION]... [FILE]...
ad6254c5
AK
16077
16078 -h, --help print this help, then exit
25fbec5b 16079 -V, --version print version number and configuration settings, then exit
ec6a6fbe
AK
16080 -q, --quiet, --silent
16081 do not print progress messages
ad6254c5
AK
16082 -d, --debug don't remove temporary files
16083 --recheck update $as_me by reconfiguring in the same conditions
ec6a6fbe
AK
16084 --file=FILE[:TEMPLATE]
16085 instantiate the configuration file FILE
16086 --header=FILE[:TEMPLATE]
16087 instantiate the configuration header FILE
ad6254c5
AK
16088
16089Configuration files:
16090$config_files
16091
72b2cb61
AK
16092Configuration headers:
16093$config_headers
16094
ad6254c5 16095Report bugs to <bug-autoconf@gnu.org>."
ad6254c5 16096
7a197a62 16097_ACEOF
ec6a6fbe 16098cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5
AK
16099ac_cs_version="\\
16100config.status
ec6a6fbe
AK
16101configured by $0, generated by GNU Autoconf 2.63,
16102 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
ad6254c5 16103
ec6a6fbe 16104Copyright (C) 2008 Free Software Foundation, Inc.
ad6254c5
AK
16105This config.status script is free software; the Free Software Foundation
16106gives unlimited permission to copy, distribute and modify it."
7a197a62
AK
16107
16108ac_pwd='$ac_pwd'
16109srcdir='$srcdir'
16110INSTALL='$INSTALL'
fddafd51 16111MKDIR_P='$MKDIR_P'
ec6a6fbe
AK
16112AWK='$AWK'
16113test -n "\$AWK" || AWK=awk
ad6254c5
AK
16114_ACEOF
16115
ec6a6fbe
AK
16116cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16117# The default lists apply if the user does not specify any file.
ad6254c5
AK
16118ac_need_defaults=:
16119while test $# != 0
16120do
16121 case $1 in
16122 --*=*)
7a197a62
AK
16123 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16124 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
ad6254c5
AK
16125 ac_shift=:
16126 ;;
7a197a62 16127 *)
ad6254c5
AK
16128 ac_option=$1
16129 ac_optarg=$2
16130 ac_shift=shift
16131 ;;
ad6254c5
AK
16132 esac
16133
16134 case $ac_option in
16135 # Handling of the options.
ad6254c5
AK
16136 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16137 ac_cs_recheck=: ;;
7a197a62 16138 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
ec6a6fbe 16139 $as_echo "$ac_cs_version"; exit ;;
7a197a62 16140 --debug | --debu | --deb | --de | --d | -d )
ad6254c5
AK
16141 debug=: ;;
16142 --file | --fil | --fi | --f )
16143 $ac_shift
ec6a6fbe
AK
16144 case $ac_optarg in
16145 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16146 esac
16147 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
ad6254c5
AK
16148 ac_need_defaults=false;;
16149 --header | --heade | --head | --hea )
16150 $ac_shift
ec6a6fbe
AK
16151 case $ac_optarg in
16152 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16153 esac
16154 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
ad6254c5 16155 ac_need_defaults=false;;
7a197a62
AK
16156 --he | --h)
16157 # Conflict between --help and --header
ec6a6fbe 16158 { $as_echo "$as_me: error: ambiguous option: $1
7a197a62
AK
16159Try \`$0 --help' for more information." >&2
16160 { (exit 1); exit 1; }; };;
16161 --help | --hel | -h )
ec6a6fbe 16162 $as_echo "$ac_cs_usage"; exit ;;
ad6254c5
AK
16163 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16164 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16165 ac_cs_silent=: ;;
16166
16167 # This is an error.
ec6a6fbe 16168 -*) { $as_echo "$as_me: error: unrecognized option: $1
7a197a62 16169Try \`$0 --help' for more information." >&2
ad6254c5
AK
16170 { (exit 1); exit 1; }; } ;;
16171
7a197a62
AK
16172 *) ac_config_targets="$ac_config_targets $1"
16173 ac_need_defaults=false ;;
ad6254c5
AK
16174
16175 esac
16176 shift
16177done
16178
16179ac_configure_extra_args=
16180
16181if $ac_cs_silent; then
16182 exec 6>/dev/null
16183 ac_configure_extra_args="$ac_configure_extra_args --silent"
16184fi
16185
16186_ACEOF
ec6a6fbe 16187cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5 16188if \$ac_cs_recheck; then
ec6a6fbe
AK
16189 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16190 shift
16191 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16192 CONFIG_SHELL='$SHELL'
7a197a62 16193 export CONFIG_SHELL
ec6a6fbe 16194 exec "\$@"
ad6254c5
AK
16195fi
16196
16197_ACEOF
ec6a6fbe 16198cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
16199exec 5>>config.log
16200{
16201 echo
16202 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16203## Running $as_me. ##
16204_ASBOX
ec6a6fbe 16205 $as_echo "$ac_log"
7a197a62 16206} >&5
ad6254c5 16207
7a197a62 16208_ACEOF
ec6a6fbe 16209cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7a197a62 16210_ACEOF
ad6254c5 16211
ec6a6fbe 16212cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
16213
16214# Handling of arguments.
ad6254c5
AK
16215for ac_config_target in $ac_config_targets
16216do
7a197a62
AK
16217 case $ac_config_target in
16218 "lib/misc/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;;
16219 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16220 "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;;
16221 "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;;
16222 "daemons/clvmd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;;
5d311afb 16223 "daemons/cmirrord/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/cmirrord/Makefile" ;;
93bd259b
AK
16224 "daemons/dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/Makefile" ;;
16225 "daemons/dmeventd/libdevmapper-event.pc") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/libdevmapper-event.pc" ;;
04f06bc9 16226 "daemons/dmeventd/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/Makefile" ;;
d3d98fdc 16227 "daemons/dmeventd/plugins/lvm2/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/lvm2/Makefile" ;;
93bd259b
AK
16228 "daemons/dmeventd/plugins/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/mirror/Makefile" ;;
16229 "daemons/dmeventd/plugins/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/snapshot/Makefile" ;;
7a197a62 16230 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
db8b5af9 16231 "include/.symlinks") CONFIG_FILES="$CONFIG_FILES include/.symlinks" ;;
93bd259b
AK
16232 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
16233 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
7a197a62
AK
16234 "lib/format1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;;
16235 "lib/format_pool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;;
16236 "lib/locking/Makefile") CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;;
16237 "lib/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;;
ec6a6fbe 16238 "lib/misc/lvm-version.h") CONFIG_FILES="$CONFIG_FILES lib/misc/lvm-version.h" ;;
7a197a62 16239 "lib/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;;
93bd259b
AK
16240 "libdm/Makefile") CONFIG_FILES="$CONFIG_FILES libdm/Makefile" ;;
16241 "libdm/libdevmapper.pc") CONFIG_FILES="$CONFIG_FILES libdm/libdevmapper.pc" ;;
e0c64c6c 16242 "liblvm/Makefile") CONFIG_FILES="$CONFIG_FILES liblvm/Makefile" ;;
70046623 16243 "liblvm/liblvm2app.pc") CONFIG_FILES="$CONFIG_FILES liblvm/liblvm2app.pc" ;;
93bd259b
AK
16244 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
16245 "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
75ad7143 16246 "scripts/clvmd_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/clvmd_init_red_hat" ;;
81410c8f 16247 "scripts/cmirrord_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/cmirrord_init_red_hat" ;;
595eaf92 16248 "scripts/lvm2_monitoring_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_monitoring_init_red_hat" ;;
7a197a62 16249 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
93bd259b 16250 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
c7e363f9 16251 "test/api/Makefile") CONFIG_FILES="$CONFIG_FILES test/api/Makefile" ;;
7a197a62 16252 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
a5f46f6a 16253 "udev/Makefile") CONFIG_FILES="$CONFIG_FILES udev/Makefile" ;;
7a197a62 16254
ec6a6fbe
AK
16255 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16256$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
ad6254c5 16257 { (exit 1); exit 1; }; };;
80992638 16258 esac
ad6254c5
AK
16259done
16260
7a197a62 16261
ad6254c5
AK
16262# If the user did not use the arguments to specify the items to instantiate,
16263# then the envvar interface is used. Set only those that are not.
16264# We use the long form for the default assignment because of an extremely
16265# bizarre bug on SunOS 4.1.3.
16266if $ac_need_defaults; then
16267 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
72b2cb61 16268 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
ad6254c5
AK
16269fi
16270
16271# Have a temporary directory for convenience. Make it in the build tree
7a197a62 16272# simply because there is no reason against having it here, and in addition,
ad6254c5 16273# creating and moving files from /tmp can sometimes cause problems.
7a197a62
AK
16274# Hook for its removal unless debugging.
16275# Note that there is a small window in which the directory will not be cleaned:
16276# after its creation but before its name has been assigned to `$tmp'.
ad6254c5
AK
16277$debug ||
16278{
7a197a62
AK
16279 tmp=
16280 trap 'exit_status=$?
16281 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16282' 0
ad6254c5
AK
16283 trap '{ (exit 1); exit 1; }' 1 2 13 15
16284}
ad6254c5
AK
16285# Create a (secure) tmp directory for tmp files.
16286
16287{
7a197a62 16288 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
ad6254c5
AK
16289 test -n "$tmp" && test -d "$tmp"
16290} ||
16291{
7a197a62
AK
16292 tmp=./conf$$-$RANDOM
16293 (umask 077 && mkdir "$tmp")
ad6254c5
AK
16294} ||
16295{
ec6a6fbe 16296 $as_echo "$as_me: cannot create a temporary directory in ." >&2
ad6254c5
AK
16297 { (exit 1); exit 1; }
16298}
16299
ec6a6fbe
AK
16300# Set up the scripts for CONFIG_FILES section.
16301# No need to generate them if there are no CONFIG_FILES.
16302# This happens for instance with `./config.status config.h'.
1995c9ff 16303if test -n "$CONFIG_FILES"; then
7a197a62 16304
68f2de6d 16305
ec6a6fbe
AK
16306ac_cr='\r'
16307ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16308if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16309 ac_cs_awk_cr='\\r'
16310else
16311 ac_cs_awk_cr=$ac_cr
1995c9ff 16312fi
7a197a62 16313
ec6a6fbe 16314echo 'BEGIN {' >"$tmp/subs1.awk" &&
1995c9ff 16315_ACEOF
7a197a62 16316
8106cdd5 16317
ec6a6fbe
AK
16318{
16319 echo "cat >conf$$subs.awk <<_ACEOF" &&
16320 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16321 echo "_ACEOF"
16322} >conf$$subs.sh ||
16323 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16324$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16325 { (exit 1); exit 1; }; }
16326ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
1995c9ff
AK
16327ac_delim='%!_!# '
16328for ac_last_try in false false false false false :; do
ec6a6fbe
AK
16329 . ./conf$$subs.sh ||
16330 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16331$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16332 { (exit 1); exit 1; }; }
16333
16334 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16335 if test $ac_delim_n = $ac_delim_num; then
1995c9ff
AK
16336 break
16337 elif $ac_last_try; then
ec6a6fbe
AK
16338 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16339$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
1995c9ff
AK
16340 { (exit 1); exit 1; }; }
16341 else
16342 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16343 fi
16344done
ec6a6fbe
AK
16345rm -f conf$$subs.sh
16346
16347cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16348cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16349_ACEOF
16350sed -n '
16351h
16352s/^/S["/; s/!.*/"]=/
16353p
16354g
16355s/^[^!]*!//
16356:repl
16357t repl
16358s/'"$ac_delim"'$//
16359t delim
16360:nl
16361h
16362s/\(.\{148\}\).*/\1/
16363t more1
16364s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16365p
16366n
16367b repl
16368:more1
16369s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16370p
16371g
16372s/.\{148\}//
16373t nl
16374:delim
16375h
16376s/\(.\{148\}\).*/\1/
16377t more2
16378s/["\\]/\\&/g; s/^/"/; s/$/"/
16379p
16380b
16381:more2
16382s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16383p
16384g
16385s/.\{148\}//
16386t delim
16387' <conf$$subs.awk | sed '
16388/^[^""]/{
16389 N
16390 s/\n//
16391}
16392' >>$CONFIG_STATUS || ac_write_fail=1
16393rm -f conf$$subs.awk
16394cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16395_ACAWK
16396cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16397 for (key in S) S_is_set[key] = 1
16398 FS = "\a"
7a197a62 16399
ec6a6fbe
AK
16400}
16401{
16402 line = $ 0
16403 nfields = split(line, field, "@")
16404 substed = 0
16405 len = length(field[1])
16406 for (i = 2; i < nfields; i++) {
16407 key = field[i]
16408 keylen = length(key)
16409 if (S_is_set[key]) {
16410 value = S[key]
16411 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16412 len += length(value) + length(field[++i])
16413 substed = 1
16414 } else
16415 len += 1 + keylen
16416 }
16417
16418 print line
16419}
fddafd51 16420
ec6a6fbe 16421_ACAWK
1995c9ff 16422_ACEOF
ec6a6fbe
AK
16423cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16424if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16425 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16426else
16427 cat
16428fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16429 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
16430$as_echo "$as_me: error: could not setup config files machinery" >&2;}
16431 { (exit 1); exit 1; }; }
7a197a62
AK
16432_ACEOF
16433
7a197a62
AK
16434# VPATH may cause trouble with some makes, so we remove $(srcdir),
16435# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16436# trailing colons and then remove the whole line if VPATH becomes empty
16437# (actually we leave an empty line to preserve line numbers).
16438if test "x$srcdir" = x.; then
16439 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16440s/:*\$(srcdir):*/:/
16441s/:*\${srcdir}:*/:/
16442s/:*@srcdir@:*/:/
16443s/^\([^=]*=[ ]*\):*/\1/
16444s/:*$//
16445s/^[^=]*=[ ]*$//
16446}'
16447fi
16448
ec6a6fbe 16449cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
16450fi # test -n "$CONFIG_FILES"
16451
ec6a6fbe
AK
16452# Set up the scripts for CONFIG_HEADERS section.
16453# No need to generate them if there are no CONFIG_HEADERS.
16454# This happens for instance with `./config.status Makefile'.
16455if test -n "$CONFIG_HEADERS"; then
16456cat >"$tmp/defines.awk" <<\_ACAWK ||
16457BEGIN {
16458_ACEOF
16459
16460# Transform confdefs.h into an awk script `defines.awk', embedded as
16461# here-document in config.status, that substitutes the proper values into
16462# config.h.in to produce config.h.
16463
16464# Create a delimiter string that does not exist in confdefs.h, to ease
16465# handling of long lines.
16466ac_delim='%!_!# '
16467for ac_last_try in false false :; do
16468 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16469 if test -z "$ac_t"; then
16470 break
16471 elif $ac_last_try; then
16472 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
16473$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
16474 { (exit 1); exit 1; }; }
16475 else
16476 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16477 fi
16478done
16479
16480# For the awk script, D is an array of macro values keyed by name,
16481# likewise P contains macro parameters if any. Preserve backslash
16482# newline sequences.
16483
16484ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16485sed -n '
16486s/.\{148\}/&'"$ac_delim"'/g
16487t rset
16488:rset
16489s/^[ ]*#[ ]*define[ ][ ]*/ /
16490t def
16491d
16492:def
16493s/\\$//
16494t bsnl
16495s/["\\]/\\&/g
16496s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16497D["\1"]=" \3"/p
16498s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16499d
16500:bsnl
16501s/["\\]/\\&/g
16502s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16503D["\1"]=" \3\\\\\\n"\\/p
16504t cont
16505s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16506t cont
16507d
16508:cont
16509n
16510s/.\{148\}/&'"$ac_delim"'/g
16511t clear
16512:clear
16513s/\\$//
16514t bsnlc
16515s/["\\]/\\&/g; s/^/"/; s/$/"/p
16516d
16517:bsnlc
16518s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16519b cont
16520' <confdefs.h | sed '
16521s/'"$ac_delim"'/"\\\
16522"/g' >>$CONFIG_STATUS || ac_write_fail=1
16523
16524cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16525 for (key in D) D_is_set[key] = 1
16526 FS = "\a"
16527}
16528/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16529 line = \$ 0
16530 split(line, arg, " ")
16531 if (arg[1] == "#") {
16532 defundef = arg[2]
16533 mac1 = arg[3]
16534 } else {
16535 defundef = substr(arg[1], 2)
16536 mac1 = arg[2]
16537 }
16538 split(mac1, mac2, "(") #)
16539 macro = mac2[1]
16540 prefix = substr(line, 1, index(line, defundef) - 1)
16541 if (D_is_set[macro]) {
16542 # Preserve the white space surrounding the "#".
16543 print prefix "define", macro P[macro] D[macro]
16544 next
16545 } else {
16546 # Replace #undef with comments. This is necessary, for example,
16547 # in the case of _POSIX_SOURCE, which is predefined and required
16548 # on some systems where configure will not decide to define it.
16549 if (defundef == "undef") {
16550 print "/*", prefix defundef, macro, "*/"
16551 next
16552 }
16553 }
16554}
16555{ print }
16556_ACAWK
16557_ACEOF
16558cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16559 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
16560$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
16561 { (exit 1); exit 1; }; }
16562fi # test -n "$CONFIG_HEADERS"
16563
7a197a62 16564
ec6a6fbe
AK
16565eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
16566shift
16567for ac_tag
7a197a62
AK
16568do
16569 case $ac_tag in
16570 :[FHLC]) ac_mode=$ac_tag; continue;;
16571 esac
16572 case $ac_mode$ac_tag in
16573 :[FHL]*:*);;
ec6a6fbe
AK
16574 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
16575$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
7a197a62
AK
16576 { (exit 1); exit 1; }; };;
16577 :[FH]-) ac_tag=-:-;;
16578 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16579 esac
16580 ac_save_IFS=$IFS
16581 IFS=:
16582 set x $ac_tag
16583 IFS=$ac_save_IFS
16584 shift
16585 ac_file=$1
16586 shift
16587
16588 case $ac_mode in
16589 :L) ac_source=$1;;
16590 :[FH])
16591 ac_file_inputs=
16592 for ac_f
16593 do
16594 case $ac_f in
16595 -) ac_f="$tmp/stdin";;
16596 *) # Look for the file first in the build tree, then in the source tree
16597 # (if the path is not absolute). The absolute path cannot be DOS-style,
16598 # because $ac_f cannot contain `:'.
16599 test -f "$ac_f" ||
16600 case $ac_f in
16601 [\\/$]*) false;;
16602 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16603 esac ||
ec6a6fbe
AK
16604 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
16605$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
7a197a62
AK
16606 { (exit 1); exit 1; }; };;
16607 esac
ec6a6fbe
AK
16608 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16609 ac_file_inputs="$ac_file_inputs '$ac_f'"
7a197a62
AK
16610 done
16611
16612 # Let's still pretend it is `configure' which instantiates (i.e., don't
16613 # use $as_me), people would be surprised to read:
16614 # /* config.h. Generated by config.status. */
ec6a6fbe
AK
16615 configure_input='Generated from '`
16616 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16617 `' by configure.'
7a197a62
AK
16618 if test x"$ac_file" != x-; then
16619 configure_input="$ac_file. $configure_input"
ec6a6fbe
AK
16620 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
16621$as_echo "$as_me: creating $ac_file" >&6;}
7a197a62 16622 fi
ec6a6fbe
AK
16623 # Neutralize special characters interpreted by sed in replacement strings.
16624 case $configure_input in #(
16625 *\&* | *\|* | *\\* )
16626 ac_sed_conf_input=`$as_echo "$configure_input" |
16627 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16628 *) ac_sed_conf_input=$configure_input;;
16629 esac
7a197a62
AK
16630
16631 case $ac_tag in
ec6a6fbe
AK
16632 *:-:* | *:-) cat >"$tmp/stdin" \
16633 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16634$as_echo "$as_me: error: could not create $ac_file" >&2;}
16635 { (exit 1); exit 1; }; } ;;
7a197a62
AK
16636 esac
16637 ;;
80992638 16638 esac
8106cdd5 16639
7a197a62 16640 ac_dir=`$as_dirname -- "$ac_file" ||
ad6254c5 16641$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8a2fc586
AK
16642 X"$ac_file" : 'X\(//\)[^/]' \| \
16643 X"$ac_file" : 'X\(//\)$' \| \
7a197a62 16644 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 16645$as_echo X"$ac_file" |
7a197a62
AK
16646 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16647 s//\1/
16648 q
16649 }
16650 /^X\(\/\/\)[^/].*/{
16651 s//\1/
16652 q
16653 }
16654 /^X\(\/\/\)$/{
16655 s//\1/
16656 q
16657 }
16658 /^X\(\/\).*/{
16659 s//\1/
16660 q
16661 }
16662 s/.*/./; q'`
16663 { as_dir="$ac_dir"
16664 case $as_dir in #(
16665 -*) as_dir=./$as_dir;;
16666 esac
16667 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
ad6254c5 16668 as_dirs=
7a197a62
AK
16669 while :; do
16670 case $as_dir in #(
ec6a6fbe 16671 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7a197a62
AK
16672 *) as_qdir=$as_dir;;
16673 esac
16674 as_dirs="'$as_qdir' $as_dirs"
16675 as_dir=`$as_dirname -- "$as_dir" ||
ad6254c5 16676$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8a2fc586
AK
16677 X"$as_dir" : 'X\(//\)[^/]' \| \
16678 X"$as_dir" : 'X\(//\)$' \| \
7a197a62 16679 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 16680$as_echo X"$as_dir" |
7a197a62
AK
16681 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16682 s//\1/
16683 q
16684 }
16685 /^X\(\/\/\)[^/].*/{
16686 s//\1/
16687 q
16688 }
16689 /^X\(\/\/\)$/{
16690 s//\1/
16691 q
16692 }
16693 /^X\(\/\).*/{
16694 s//\1/
16695 q
16696 }
16697 s/.*/./; q'`
16698 test -d "$as_dir" && break
ad6254c5 16699 done
7a197a62 16700 test -z "$as_dirs" || eval "mkdir $as_dirs"
ec6a6fbe
AK
16701 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16702$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
ad6254c5 16703 { (exit 1); exit 1; }; }; }
ad6254c5
AK
16704 ac_builddir=.
16705
7a197a62
AK
16706case "$ac_dir" in
16707.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16708*)
ec6a6fbe 16709 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7a197a62 16710 # A ".." for each directory in $ac_dir_suffix.
ec6a6fbe 16711 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7a197a62
AK
16712 case $ac_top_builddir_sub in
16713 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16714 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16715 esac ;;
16716esac
16717ac_abs_top_builddir=$ac_pwd
16718ac_abs_builddir=$ac_pwd$ac_dir_suffix
16719# for backward compatibility:
16720ac_top_builddir=$ac_top_build_prefix
ad6254c5
AK
16721
16722case $srcdir in
7a197a62 16723 .) # We are building in place.
ad6254c5 16724 ac_srcdir=.
7a197a62
AK
16725 ac_top_srcdir=$ac_top_builddir_sub
16726 ac_abs_top_srcdir=$ac_pwd ;;
16727 [\\/]* | ?:[\\/]* ) # Absolute name.
ad6254c5 16728 ac_srcdir=$srcdir$ac_dir_suffix;
7a197a62
AK
16729 ac_top_srcdir=$srcdir
16730 ac_abs_top_srcdir=$srcdir ;;
16731 *) # Relative name.
16732 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16733 ac_top_srcdir=$ac_top_build_prefix$srcdir
16734 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
ad6254c5 16735esac
7a197a62 16736ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8a2fc586 16737
ad6254c5 16738
7a197a62
AK
16739 case $ac_mode in
16740 :F)
16741 #
16742 # CONFIG_FILE
16743 #
ad6254c5
AK
16744
16745 case $INSTALL in
16746 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7a197a62 16747 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
795ca3e5 16748 esac
fddafd51
ZK
16749 ac_MKDIR_P=$MKDIR_P
16750 case $MKDIR_P in
16751 [\\/$]* | ?:[\\/]* ) ;;
16752 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16753 esac
7a197a62 16754_ACEOF
795ca3e5 16755
ec6a6fbe 16756cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
16757# If the template does not know about datarootdir, expand it.
16758# FIXME: This hack should be removed a few years after 2.60.
16759ac_datarootdir_hack=; ac_datarootdir_seen=
16760
ec6a6fbe
AK
16761ac_sed_dataroot='
16762/datarootdir/ {
7a197a62
AK
16763 p
16764 q
16765}
16766/@datadir@/p
16767/@docdir@/p
16768/@infodir@/p
16769/@localedir@/p
16770/@mandir@/p
ec6a6fbe
AK
16771'
16772case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7a197a62
AK
16773*datarootdir*) ac_datarootdir_seen=yes;;
16774*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
ec6a6fbe
AK
16775 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16776$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
ad6254c5 16777_ACEOF
ec6a6fbe 16778cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7a197a62
AK
16779 ac_datarootdir_hack='
16780 s&@datadir@&$datadir&g
16781 s&@docdir@&$docdir&g
16782 s&@infodir@&$infodir&g
16783 s&@localedir@&$localedir&g
16784 s&@mandir@&$mandir&g
16785 s&\\\${datarootdir}&$datarootdir&g' ;;
16786esac
16787_ACEOF
16788
16789# Neutralize VPATH when `$srcdir' = `.'.
16790# Shell code in configure.ac might set extrasub.
16791# FIXME: do we really want to maintain this feature?
ec6a6fbe
AK
16792cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16793ac_sed_extra="$ac_vpsub
ad6254c5
AK
16794$extrasub
16795_ACEOF
ec6a6fbe 16796cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ad6254c5
AK
16797:t
16798/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
ec6a6fbe 16799s|@configure_input@|$ac_sed_conf_input|;t t
7a197a62 16800s&@top_builddir@&$ac_top_builddir_sub&;t t
ec6a6fbe 16801s&@top_build_prefix@&$ac_top_build_prefix&;t t
7a197a62
AK
16802s&@srcdir@&$ac_srcdir&;t t
16803s&@abs_srcdir@&$ac_abs_srcdir&;t t
16804s&@top_srcdir@&$ac_top_srcdir&;t t
16805s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16806s&@builddir@&$ac_builddir&;t t
16807s&@abs_builddir@&$ac_abs_builddir&;t t
16808s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16809s&@INSTALL@&$ac_INSTALL&;t t
fddafd51 16810s&@MKDIR_P@&$ac_MKDIR_P&;t t
7a197a62 16811$ac_datarootdir_hack
ec6a6fbe
AK
16812"
16813eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16814 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16815$as_echo "$as_me: error: could not create $ac_file" >&2;}
16816 { (exit 1); exit 1; }; }
7a197a62
AK
16817
16818test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16819 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16820 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
ec6a6fbe 16821 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7a197a62 16822which seems to be undefined. Please make sure it is defined." >&5
ec6a6fbe 16823$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7a197a62
AK
16824which seems to be undefined. Please make sure it is defined." >&2;}
16825
16826 rm -f "$tmp/stdin"
72b2cb61 16827 case $ac_file in
ec6a6fbe
AK
16828 -) cat "$tmp/out" && rm -f "$tmp/out";;
16829 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16830 esac \
16831 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16832$as_echo "$as_me: error: could not create $ac_file" >&2;}
16833 { (exit 1); exit 1; }; }
7a197a62
AK
16834 ;;
16835 :H)
16836 #
16837 # CONFIG_HEADER
16838 #
72b2cb61 16839 if test x"$ac_file" != x-; then
ec6a6fbe
AK
16840 {
16841 $as_echo "/* $configure_input */" \
16842 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16843 } >"$tmp/config.h" \
16844 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16845$as_echo "$as_me: error: could not create $ac_file" >&2;}
16846 { (exit 1); exit 1; }; }
16847 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16848 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16849$as_echo "$as_me: $ac_file is unchanged" >&6;}
72b2cb61 16850 else
ec6a6fbe
AK
16851 rm -f "$ac_file"
16852 mv "$tmp/config.h" "$ac_file" \
16853 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16854$as_echo "$as_me: error: could not create $ac_file" >&2;}
16855 { (exit 1); exit 1; }; }
72b2cb61
AK
16856 fi
16857 else
ec6a6fbe
AK
16858 $as_echo "/* $configure_input */" \
16859 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16860 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
16861$as_echo "$as_me: error: could not create -" >&2;}
16862 { (exit 1); exit 1; }; }
72b2cb61 16863 fi
7a197a62
AK
16864 ;;
16865
16866
16867 esac
16868
16869done # for ac_tag
795ca3e5 16870
795ca3e5 16871
ad6254c5
AK
16872{ (exit 0); exit 0; }
16873_ACEOF
795ca3e5 16874chmod +x $CONFIG_STATUS
ad6254c5
AK
16875ac_clean_files=$ac_clean_files_save
16876
ec6a6fbe
AK
16877test $ac_write_fail = 0 ||
16878 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
16879$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
16880 { (exit 1); exit 1; }; }
16881
ad6254c5
AK
16882
16883# configure is writing to config.log, and then calls config.status.
16884# config.status does its own redirection, appending to config.log.
16885# Unfortunately, on DOS this fails, as config.log is still kept open
16886# by configure, so config.status won't be able to write to it; its
16887# output is simply discarded. So we exec the FD to /dev/null,
16888# effectively closing config.log, so it can be properly (re)opened and
16889# appended to by config.status. When coming back to configure, we
16890# need to make the FD available again.
16891if test "$no_create" != yes; then
16892 ac_cs_success=:
16893 ac_config_status_args=
16894 test "$silent" = yes &&
16895 ac_config_status_args="$ac_config_status_args --quiet"
16896 exec 5>/dev/null
16897 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16898 exec 5>>config.log
16899 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16900 # would make configure fail if this is the last instruction.
16901 $ac_cs_success || { (exit 1); exit 1; }
16902fi
ec6a6fbe
AK
16903if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16904 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16905$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16906fi
795ca3e5 16907
2dc95e1c
AK
16908
16909if test x$ODIRECT != xyes; then
ec6a6fbe
AK
16910 { $as_echo "$as_me:$LINENO: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5
16911$as_echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;}
2dc95e1c 16912fi
This page took 2.213204 seconds and 5 git commands to generate.