]> sourceware.org Git - lvm2.git/blame - configure
Distcleanup config files only in toplevel directory.
[lvm2.git] / configure
CommitLineData
795ca3e5 1#! /bin/sh
795ca3e5 2# Guess values for system-dependent variables and create Makefiles.
ec6a6fbe 3# Generated by GNU Autoconf 2.63.
795ca3e5 4#
7a197a62 5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
ec6a6fbe 6# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
795ca3e5
AK
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
ad6254c5
AK
9## --------------------- ##
10## M4sh Initialization. ##
11## --------------------- ##
12
25fbec5b
AK
13# Be more Bourne compatible
14DUALCASE=1; export DUALCASE # for MKS sh
ad6254c5
AK
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
ec6a6fbe 18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
ad6254c5
AK
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
7a197a62
AK
21 setopt NO_GLOB_SUBST
22else
25fbec5b
AK
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25esac
26
7a197a62 27fi
25fbec5b
AK
28
29
7a197a62
AK
30
31
32# PATH needs CR
33# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
39
ec6a6fbe
AK
40as_nl='
41'
42export as_nl
43# Printing a long string crashes Solaris 7 /usr/bin/printf.
44as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
68f2de6d 54 else
ec6a6fbe
AK
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68f2de6d 67 fi
ec6a6fbe
AK
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
ad6254c5
AK
79fi
80
81# Support unset when possible.
8a2fc586 82if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
ad6254c5
AK
83 as_unset=unset
84else
85 as_unset=false
86fi
87
88
7a197a62
AK
89# IFS
90# We need space, tab and new line, in precisely that order. Quoting is
91# there to prevent editors from complaining about space-tab.
92# (If _AS_PATH_WALK were called with IFS unset, it would disable word
93# splitting by setting IFS to empty value.)
7a197a62
AK
94IFS=" "" $as_nl"
95
96# Find who we are. Look in the path if we contain no directory separator.
97case $0 in
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100for as_dir in $PATH
101do
102 IFS=$as_save_IFS
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105done
106IFS=$as_save_IFS
107
108 ;;
109esac
110# We did not find ourselves, most probably we were run as `sh COMMAND'
111# in which case we are not to be found in the path.
112if test "x$as_myself" = x; then
113 as_myself=$0
114fi
115if test ! -f "$as_myself"; then
ec6a6fbe 116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7a197a62
AK
117 { (exit 1); exit 1; }
118fi
119
ad6254c5 120# Work around bugs in pre-3.0 UWIN ksh.
7a197a62
AK
121for as_var in ENV MAIL MAILPATH
122do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123done
ad6254c5
AK
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
ec6a6fbe
AK
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
ad6254c5
AK
133
134# Required to use basename.
7a197a62
AK
135if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
137 as_expr=expr
138else
139 as_expr=false
140fi
141
7a197a62 142if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
ad6254c5
AK
143 as_basename=basename
144else
145 as_basename=false
146fi
147
148
149# Name of the executable.
7a197a62 150as_me=`$as_basename -- "$0" ||
ad6254c5
AK
151$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
7a197a62 153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 154$as_echo X/"$0" |
7a197a62
AK
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 s//\1/
157 q
158 }
159 /^X\/\(\/\/\)$/{
160 s//\1/
161 q
162 }
163 /^X\/\(\/\).*/{
164 s//\1/
165 q
166 }
167 s/.*/./; q'`
ad6254c5 168
7a197a62
AK
169# CDPATH.
170$as_unset CDPATH
ad6254c5 171
ad6254c5 172
7a197a62
AK
173if test "x$CONFIG_SHELL" = x; then
174 if (eval ":") 2>/dev/null; then
175 as_have_required=yes
176else
177 as_have_required=no
ad6254c5
AK
178fi
179
ec6a6fbe 180 if test $as_have_required = yes && (eval ":
7a197a62
AK
181(as_func_return () {
182 (exit \$1)
183}
184as_func_success () {
185 as_func_return 0
186}
187as_func_failure () {
188 as_func_return 1
189}
190as_func_ret_success () {
191 return 0
192}
193as_func_ret_failure () {
194 return 1
195}
ad6254c5 196
7a197a62
AK
197exitcode=0
198if as_func_success; then
199 :
200else
201 exitcode=1
202 echo as_func_success failed.
203fi
ad6254c5 204
7a197a62
AK
205if as_func_failure; then
206 exitcode=1
207 echo as_func_failure succeeded.
208fi
209
210if as_func_ret_success; then
211 :
212else
213 exitcode=1
214 echo as_func_ret_success failed.
215fi
216
217if as_func_ret_failure; then
218 exitcode=1
219 echo as_func_ret_failure succeeded.
220fi
221
222if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223 :
224else
225 exitcode=1
226 echo positional parameters were not saved.
227fi
228
229test \$exitcode = 0) || { (exit 1); exit 1; }
230
231(
232 as_lineno_1=\$LINENO
233 as_lineno_2=\$LINENO
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236") 2> /dev/null; then
237 :
238else
239 as_candidate_shells=
ad6254c5 240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25fbec5b 241for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
ad6254c5
AK
242do
243 IFS=$as_save_IFS
244 test -z "$as_dir" && as_dir=.
7a197a62 245 case $as_dir in
ad6254c5 246 /*)
7a197a62
AK
247 for as_base in sh bash ksh sh5; do
248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249 done;;
250 esac
251done
252IFS=$as_save_IFS
253
254
255 for as_shell in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev/null <<\_ASEOF
259if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 emulate sh
261 NULLCMD=:
ec6a6fbe 262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7a197a62
AK
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
265 setopt NO_GLOB_SUBST
266else
25fbec5b
AK
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
269esac
270
7a197a62 271fi
25fbec5b 272
7a197a62
AK
273
274:
275_ASEOF
276}; then
277 CONFIG_SHELL=$as_shell
278 as_have_required=yes
279 if { "$as_shell" 2> /dev/null <<\_ASEOF
280if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281 emulate sh
282 NULLCMD=:
ec6a6fbe 283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7a197a62
AK
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
286 setopt NO_GLOB_SUBST
287else
25fbec5b
AK
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
290esac
291
7a197a62 292fi
25fbec5b 293
7a197a62
AK
294
295:
296(as_func_return () {
297 (exit $1)
298}
299as_func_success () {
300 as_func_return 0
301}
302as_func_failure () {
303 as_func_return 1
304}
305as_func_ret_success () {
306 return 0
307}
308as_func_ret_failure () {
309 return 1
310}
311
312exitcode=0
313if as_func_success; then
314 :
315else
316 exitcode=1
317 echo as_func_success failed.
318fi
319
320if as_func_failure; then
321 exitcode=1
322 echo as_func_failure succeeded.
323fi
324
325if as_func_ret_success; then
326 :
327else
328 exitcode=1
329 echo as_func_ret_success failed.
330fi
331
332if as_func_ret_failure; then
333 exitcode=1
334 echo as_func_ret_failure succeeded.
335fi
336
337if ( set x; as_func_ret_success y && test x = "$1" ); then
338 :
339else
340 exitcode=1
341 echo positional parameters were not saved.
342fi
343
344test $exitcode = 0) || { (exit 1); exit 1; }
345
346(
ad6254c5
AK
347 as_lineno_1=$LINENO
348 as_lineno_2=$LINENO
ad6254c5 349 test "x$as_lineno_1" != "x$as_lineno_2" &&
7a197a62
AK
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
351
352_ASEOF
353}; then
354 break
355fi
356
357fi
358
359 done
360
361 if test "x$CONFIG_SHELL" != x; then
362 for as_var in BASH_ENV ENV
ec6a6fbe
AK
363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364 done
365 export CONFIG_SHELL
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
7a197a62
AK
367fi
368
369
370 if test $as_have_required = no; then
371 echo This script requires a shell more modern than all the
372 echo shells that I found on your system. Please install a
373 echo modern shell, or manually run the script under such a
374 echo shell if you do have one.
375 { (exit 1); exit 1; }
376fi
377
378
379fi
380
381fi
382
383
384
385(eval "as_func_return () {
386 (exit \$1)
387}
388as_func_success () {
389 as_func_return 0
390}
391as_func_failure () {
392 as_func_return 1
393}
394as_func_ret_success () {
395 return 0
396}
397as_func_ret_failure () {
398 return 1
399}
400
401exitcode=0
402if as_func_success; then
403 :
404else
405 exitcode=1
406 echo as_func_success failed.
407fi
408
409if as_func_failure; then
410 exitcode=1
411 echo as_func_failure succeeded.
412fi
413
414if as_func_ret_success; then
415 :
416else
417 exitcode=1
418 echo as_func_ret_success failed.
419fi
420
421if as_func_ret_failure; then
422 exitcode=1
423 echo as_func_ret_failure succeeded.
424fi
425
426if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
427 :
428else
429 exitcode=1
430 echo positional parameters were not saved.
431fi
432
433test \$exitcode = 0") || {
434 echo No shell found that supports shell functions.
ec6a6fbe
AK
435 echo Please tell bug-autoconf@gnu.org about your system,
436 echo including any error possibly output before this message.
437 echo This can help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
7a197a62
AK
439}
440
441
442
443 as_lineno_1=$LINENO
444 as_lineno_2=$LINENO
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
ad6254c5
AK
447
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
7a197a62
AK
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
454 # case at line end.
ad6254c5 455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7a197a62
AK
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
458 sed -n '
459 p
460 /[$]LINENO/=
461 ' <$as_myself |
ad6254c5 462 sed '
7a197a62
AK
463 s/[$]LINENO.*/&-/
464 t lineno
465 b
466 :lineno
ad6254c5 467 N
7a197a62
AK
468 :loop
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
ad6254c5 470 t loop
7a197a62 471 s/-\n.*//
ad6254c5 472 ' >$as_me.lineno &&
7a197a62 473 chmod +x "$as_me.lineno" ||
ec6a6fbe 474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
ad6254c5
AK
475 { (exit 1); exit 1; }; }
476
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
7a197a62
AK
479 # original and so on. Autoconf is especially sensitive to this).
480 . "./$as_me.lineno"
ad6254c5
AK
481 # Exit status is that of the last command.
482 exit
483}
795ca3e5 484
ad6254c5 485
7a197a62
AK
486if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487 as_dirname=dirname
488else
489 as_dirname=false
490fi
491
492ECHO_C= ECHO_N= ECHO_T=
493case `echo -n x` in
494-n*)
495 case `echo 'x\c'` in
496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
497 *) ECHO_C='\c';;
498 esac;;
499*)
500 ECHO_N='-n';;
ad6254c5 501esac
7a197a62
AK
502if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
504 as_expr=expr
505else
506 as_expr=false
507fi
508
509rm -f conf$$ conf$$.exe conf$$.file
7a197a62
AK
510if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
512else
513 rm -f conf$$.dir
ec6a6fbe
AK
514 mkdir conf$$.dir 2>/dev/null
515fi
516if (echo >conf$$.file) 2>/dev/null; then
517 if ln -s conf$$.file conf$$ 2>/dev/null; then
518 as_ln_s='ln -s'
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524 as_ln_s='cp -p'
525 elif ln conf$$.file conf$$ 2>/dev/null; then
526 as_ln_s=ln
527 else
ad6254c5 528 as_ln_s='cp -p'
ec6a6fbe 529 fi
ad6254c5
AK
530else
531 as_ln_s='cp -p'
532fi
7a197a62
AK
533rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534rmdir conf$$.dir 2>/dev/null
ad6254c5
AK
535
536if mkdir -p . 2>/dev/null; then
537 as_mkdir_p=:
538else
8a2fc586 539 test -d ./-p && rmdir ./-p
ad6254c5
AK
540 as_mkdir_p=false
541fi
542
25fbec5b
AK
543if test -x / >/dev/null 2>&1; then
544 as_test_x='test -x'
7a197a62 545else
25fbec5b
AK
546 if ls -dL / >/dev/null 2>&1; then
547 as_ls_L_option=L
548 else
549 as_ls_L_option=
550 fi
551 as_test_x='
552 eval sh -c '\''
553 if test -d "$1"; then
ec6a6fbe 554 test -d "$1/.";
25fbec5b
AK
555 else
556 case $1 in
ec6a6fbe 557 -*)set "./$1";;
25fbec5b
AK
558 esac;
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
561 '\'' sh
562 '
7a197a62 563fi
25fbec5b 564as_executable_p=$as_test_x
ad6254c5
AK
565
566# Sed expression to map a string onto a valid CPP name.
8a2fc586 567as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
568
569# Sed expression to map a string onto a valid variable name.
8a2fc586 570as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
571
572
ad6254c5 573
7a197a62 574exec 7<&0 </dev/null 6>&1
ad6254c5
AK
575
576# Name of the host.
577# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578# so uname gets run too.
579ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
580
ad6254c5
AK
581#
582# Initializations.
583#
795ca3e5 584ac_default_prefix=/usr/local
7a197a62 585ac_clean_files=
ad6254c5 586ac_config_libobj_dir=.
7a197a62 587LIBOBJS=
ad6254c5
AK
588cross_compiling=no
589subdirs=
590MFLAGS=
591MAKEFLAGS=
592SHELL=${CONFIG_SHELL-/bin/sh}
593
ad6254c5
AK
594# Identity of this package.
595PACKAGE_NAME=
596PACKAGE_TARNAME=
597PACKAGE_VERSION=
598PACKAGE_STRING=
599PACKAGE_BUGREPORT=
600
601ac_unique_file="lib/device/dev-cache.h"
602# Factoring default headers for most tests.
603ac_includes_default="\
604#include <stdio.h>
25fbec5b 605#ifdef HAVE_SYS_TYPES_H
ad6254c5
AK
606# include <sys/types.h>
607#endif
25fbec5b 608#ifdef HAVE_SYS_STAT_H
ad6254c5
AK
609# include <sys/stat.h>
610#endif
25fbec5b 611#ifdef STDC_HEADERS
ad6254c5
AK
612# include <stdlib.h>
613# include <stddef.h>
614#else
25fbec5b 615# ifdef HAVE_STDLIB_H
ad6254c5
AK
616# include <stdlib.h>
617# endif
618#endif
25fbec5b
AK
619#ifdef HAVE_STRING_H
620# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
ad6254c5
AK
621# include <memory.h>
622# endif
623# include <string.h>
624#endif
25fbec5b 625#ifdef HAVE_STRINGS_H
ad6254c5
AK
626# include <strings.h>
627#endif
25fbec5b 628#ifdef HAVE_INTTYPES_H
ad6254c5 629# include <inttypes.h>
ad6254c5 630#endif
25fbec5b 631#ifdef HAVE_STDINT_H
7a197a62
AK
632# include <stdint.h>
633#endif
25fbec5b 634#ifdef HAVE_UNISTD_H
ad6254c5
AK
635# include <unistd.h>
636#endif"
637
795ca3e5 638ac_default_prefix=/usr
ec6a6fbe 639ac_subst_vars='LTLIBOBJS
68f2de6d 640usrsbindir
ec6a6fbe 641usrlibdir
a5f46f6a
AK
642udevdir
643udev_prefix
ec6a6fbe
AK
644tmpdir
645kernelvsn
646missingkernel
647kerneldir
648interface
0878503f 649UDEV_SYNC
a5f46f6a 650UDEV_RULES
db724a44 651UDEV_LIBS
ec6a6fbe
AK
652STATIC_LINK
653STATICDIR
654SNAPSHOTS
e1b8a236 655SELINUX_LIBS
539f4a77 656READLINE_LIBS
f30875db 657PTHREAD_LIBS
ec6a6fbe
AK
658POOL
659PKGCONFIG
660OWNER
661MIRRORS
662LVM_RELEASE_DATE
663LVM_RELEASE
664LVM_PATCHLEVEL
665LVM_MINOR
666LVM_MAJOR
bf456146 667LVM_LIBAPI
ec6a6fbe 668LVM_VERSION
ec6a6fbe
AK
669LVM1_FALLBACK
670LVM1
671LOCALEDIR
672LIB_SUFFIX
673LDDEPS
674JOBS
675INTL_PACKAGE
676INTL
ec6a6fbe
AK
677HAVE_REALTIME
678HAVE_LIBDL
679GROUP
680FSADM
681DM_LIB_PATCHLEVEL
682DM_LIB_VERSION
683DM_IOCTLS
684DM_DEVICE_UID
685DM_DEVICE_MODE
686DM_DEVICE_GID
687DM_COMPAT
688DMEVENTD
19a2c6e0 689DL_LIBS
ec6a6fbe
AK
690DEVMAPPER
691DEBUG
692COPTIMISE_FLAG
e2997b73 693CONFDIR
ec6a6fbe
AK
694CMDLIB
695CLVMD
696CLUSTER
697CLDWHOLEARCHIVE
698CLDNOWHOLEARCHIVE
699CLDFLAGS
700BUILD_DMEVENTD
66fd4529 701BUILD_CMIRRORD
572fefeb 702APPLIB
ec6a6fbe
AK
703MODPROBE_CMD
704MSGFMT
705LVM2CMD_LIB
572fefeb 706LVM2APP_LIB
ec6a6fbe
AK
707GENHTML
708LCOV
90c80887
AK
709SACKPT_LIBS
710SACKPT_CFLAGS
a946372e
AK
711DLM_LIBS
712DLM_CFLAGS
e2997b73
AK
713CPG_LIBS
714CPG_CFLAGS
715CONFDB_LIBS
716CONFDB_CFLAGS
a946372e
AK
717SALCK_LIBS
718SALCK_CFLAGS
e2997b73
AK
719QUORUM_LIBS
720QUORUM_CFLAGS
a946372e
AK
721COROSYNC_LIBS
722COROSYNC_CFLAGS
723CMAN_LIBS
724CMAN_CFLAGS
725GULM_LIBS
726GULM_CFLAGS
727CCS_LIBS
728CCS_CFLAGS
729PKGCONFIGINIT_LIBS
730PKGCONFIGINIT_CFLAGS
e2997b73 731PKG_CONFIG
ec6a6fbe
AK
732POW_LIB
733LIBOBJS
734ALLOCA
735CSCOPE_CMD
736CFLOW_CMD
737RANLIB
738MKDIR_P
739SET_MAKE
740LN_S
741INSTALL_DATA
742INSTALL_SCRIPT
743INSTALL_PROGRAM
744EGREP
745GREP
746CPP
747OBJEXT
748EXEEXT
749ac_ct_CC
750CPPFLAGS
751LDFLAGS
752CFLAGS
753CC
754AWK
755SED
756target_os
757target_vendor
758target_cpu
759target
760host_os
761host_vendor
762host_cpu
763host
764build_os
765build_vendor
766build_cpu
767build
768target_alias
769host_alias
770build_alias
771LIBS
772ECHO_T
773ECHO_N
774ECHO_C
775DEFS
776mandir
777localedir
778libdir
779psdir
780pdfdir
781dvidir
782htmldir
783infodir
784docdir
785oldincludedir
786includedir
787localstatedir
788sharedstatedir
789sysconfdir
790datadir
791datarootdir
792libexecdir
793sbindir
794bindir
795program_transform_name
796prefix
797exec_prefix
798PACKAGE_BUGREPORT
799PACKAGE_STRING
800PACKAGE_VERSION
801PACKAGE_TARNAME
802PACKAGE_NAME
803PATH_SEPARATOR
804SHELL'
ad6254c5 805ac_subst_files=''
ec6a6fbe
AK
806ac_user_opts='
807enable_option_checking
808enable_static_link
809with_user
810with_group
811with_device_uid
812with_device_gid
813with_device_mode
814enable_lvm1_fallback
815with_lvm1
816with_pool
817with_cluster
818with_snapshots
819with_mirrors
820enable_readline
821enable_realtime
822with_clvmd
66fd4529
AK
823enable_cmirrord
824with_cmirrord_pidfile
ec6a6fbe
AK
825enable_debug
826with_optimisation
827enable_profiling
828enable_devmapper
a5f46f6a
AK
829enable_udev_sync
830enable_udev_rules
ec6a6fbe 831enable_compat
95eaa683 832enable_units_compat
ec6a6fbe
AK
833enable_ioctl
834enable_o_direct
572fefeb 835enable_applib
ec6a6fbe
AK
836enable_cmdlib
837enable_pkgconfig
838enable_fsadm
839enable_dmeventd
840enable_selinux
841enable_nls
842with_localedir
843with_confdir
844with_staticdir
845with_usrlibdir
846with_usrsbindir
a5f46f6a 847with_udev_prefix
78ce7acc 848with_udevdir
ec6a6fbe
AK
849with_dmeventd_pidfile
850with_dmeventd_path
851with_interface
852'
7a197a62
AK
853 ac_precious_vars='build_alias
854host_alias
855target_alias
856CC
857CFLAGS
858LDFLAGS
25fbec5b 859LIBS
7a197a62 860CPPFLAGS
e2997b73
AK
861CPP
862PKG_CONFIG
a946372e
AK
863PKGCONFIGINIT_CFLAGS
864PKGCONFIGINIT_LIBS
865CCS_CFLAGS
866CCS_LIBS
867GULM_CFLAGS
868GULM_LIBS
869CMAN_CFLAGS
870CMAN_LIBS
871COROSYNC_CFLAGS
872COROSYNC_LIBS
e2997b73
AK
873QUORUM_CFLAGS
874QUORUM_LIBS
a946372e
AK
875SALCK_CFLAGS
876SALCK_LIBS
e2997b73
AK
877CONFDB_CFLAGS
878CONFDB_LIBS
879CPG_CFLAGS
a946372e
AK
880CPG_LIBS
881DLM_CFLAGS
90c80887
AK
882DLM_LIBS
883SACKPT_CFLAGS
884SACKPT_LIBS'
7a197a62 885
795ca3e5
AK
886
887# Initialize some variables set by options.
ad6254c5
AK
888ac_init_help=
889ac_init_version=false
ec6a6fbe
AK
890ac_unrecognized_opts=
891ac_unrecognized_sep=
795ca3e5
AK
892# The variables have the same names as the options, with
893# dashes changed to underlines.
ad6254c5 894cache_file=/dev/null
795ca3e5 895exec_prefix=NONE
795ca3e5 896no_create=
795ca3e5
AK
897no_recursion=
898prefix=NONE
899program_prefix=NONE
900program_suffix=NONE
901program_transform_name=s,x,x,
902silent=
903site=
904srcdir=
795ca3e5
AK
905verbose=
906x_includes=NONE
907x_libraries=NONE
ad6254c5
AK
908
909# Installation directory options.
910# These are left unexpanded so users can "make install exec_prefix=/foo"
911# and all the variables that are supposed to be based on exec_prefix
912# by default will actually change.
913# Use braces instead of parens because sh, perl, etc. also accept them.
7a197a62 914# (The list follows the same order as the GNU Coding Standards.)
795ca3e5
AK
915bindir='${exec_prefix}/bin'
916sbindir='${exec_prefix}/sbin'
917libexecdir='${exec_prefix}/libexec'
7a197a62
AK
918datarootdir='${prefix}/share'
919datadir='${datarootdir}'
795ca3e5
AK
920sysconfdir='${prefix}/etc'
921sharedstatedir='${prefix}/com'
922localstatedir='${prefix}/var'
795ca3e5
AK
923includedir='${prefix}/include'
924oldincludedir='/usr/include'
7a197a62
AK
925docdir='${datarootdir}/doc/${PACKAGE}'
926infodir='${datarootdir}/info'
927htmldir='${docdir}'
928dvidir='${docdir}'
929pdfdir='${docdir}'
930psdir='${docdir}'
931libdir='${exec_prefix}/lib'
932localedir='${datarootdir}/locale'
933mandir='${datarootdir}/man'
795ca3e5 934
795ca3e5 935ac_prev=
7a197a62 936ac_dashdash=
795ca3e5
AK
937for ac_option
938do
795ca3e5
AK
939 # If the previous option needs an argument, assign it.
940 if test -n "$ac_prev"; then
7a197a62 941 eval $ac_prev=\$ac_option
795ca3e5
AK
942 ac_prev=
943 continue
944 fi
945
7a197a62
AK
946 case $ac_option in
947 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
948 *) ac_optarg=yes ;;
949 esac
795ca3e5
AK
950
951 # Accept the important Cygnus configure options, so we can diagnose typos.
952
7a197a62
AK
953 case $ac_dashdash$ac_option in
954 --)
955 ac_dashdash=yes ;;
795ca3e5
AK
956
957 -bindir | --bindir | --bindi | --bind | --bin | --bi)
958 ac_prev=bindir ;;
959 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
ad6254c5 960 bindir=$ac_optarg ;;
795ca3e5
AK
961
962 -build | --build | --buil | --bui | --bu)
ad6254c5 963 ac_prev=build_alias ;;
795ca3e5 964 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
ad6254c5 965 build_alias=$ac_optarg ;;
795ca3e5
AK
966
967 -cache-file | --cache-file | --cache-fil | --cache-fi \
968 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
969 ac_prev=cache_file ;;
970 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
971 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
ad6254c5
AK
972 cache_file=$ac_optarg ;;
973
974 --config-cache | -C)
975 cache_file=config.cache ;;
795ca3e5 976
7a197a62 977 -datadir | --datadir | --datadi | --datad)
795ca3e5 978 ac_prev=datadir ;;
7a197a62 979 -datadir=* | --datadir=* | --datadi=* | --datad=*)
ad6254c5 980 datadir=$ac_optarg ;;
795ca3e5 981
7a197a62
AK
982 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
983 | --dataroo | --dataro | --datar)
984 ac_prev=datarootdir ;;
985 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
986 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
987 datarootdir=$ac_optarg ;;
988
795ca3e5 989 -disable-* | --disable-*)
ec6a6fbe 990 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
795ca3e5 991 # Reject names that are not valid shell variable names.
ec6a6fbe
AK
992 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
993 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
ad6254c5 994 { (exit 1); exit 1; }; }
ec6a6fbe
AK
995 ac_useropt_orig=$ac_useropt
996 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
997 case $ac_user_opts in
998 *"
999"enable_$ac_useropt"
1000"*) ;;
1001 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1002 ac_unrecognized_sep=', ';;
1003 esac
1004 eval enable_$ac_useropt=no ;;
7a197a62
AK
1005
1006 -docdir | --docdir | --docdi | --doc | --do)
1007 ac_prev=docdir ;;
1008 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1009 docdir=$ac_optarg ;;
1010
1011 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1012 ac_prev=dvidir ;;
1013 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1014 dvidir=$ac_optarg ;;
795ca3e5
AK
1015
1016 -enable-* | --enable-*)
ec6a6fbe 1017 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
795ca3e5 1018 # Reject names that are not valid shell variable names.
ec6a6fbe
AK
1019 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1020 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
ad6254c5 1021 { (exit 1); exit 1; }; }
ec6a6fbe
AK
1022 ac_useropt_orig=$ac_useropt
1023 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1024 case $ac_user_opts in
1025 *"
1026"enable_$ac_useropt"
1027"*) ;;
1028 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1029 ac_unrecognized_sep=', ';;
1030 esac
1031 eval enable_$ac_useropt=\$ac_optarg ;;
795ca3e5
AK
1032
1033 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1034 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1035 | --exec | --exe | --ex)
1036 ac_prev=exec_prefix ;;
1037 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1038 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1039 | --exec=* | --exe=* | --ex=*)
ad6254c5 1040 exec_prefix=$ac_optarg ;;
795ca3e5
AK
1041
1042 -gas | --gas | --ga | --g)
1043 # Obsolete; use --with-gas.
1044 with_gas=yes ;;
1045
ad6254c5
AK
1046 -help | --help | --hel | --he | -h)
1047 ac_init_help=long ;;
1048 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1049 ac_init_help=recursive ;;
1050 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1051 ac_init_help=short ;;
795ca3e5
AK
1052
1053 -host | --host | --hos | --ho)
ad6254c5 1054 ac_prev=host_alias ;;
795ca3e5 1055 -host=* | --host=* | --hos=* | --ho=*)
ad6254c5 1056 host_alias=$ac_optarg ;;
795ca3e5 1057
7a197a62
AK
1058 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1059 ac_prev=htmldir ;;
1060 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1061 | --ht=*)
1062 htmldir=$ac_optarg ;;
1063
795ca3e5
AK
1064 -includedir | --includedir | --includedi | --included | --include \
1065 | --includ | --inclu | --incl | --inc)
1066 ac_prev=includedir ;;
1067 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1068 | --includ=* | --inclu=* | --incl=* | --inc=*)
ad6254c5 1069 includedir=$ac_optarg ;;
795ca3e5
AK
1070
1071 -infodir | --infodir | --infodi | --infod | --info | --inf)
1072 ac_prev=infodir ;;
1073 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
ad6254c5 1074 infodir=$ac_optarg ;;
795ca3e5
AK
1075
1076 -libdir | --libdir | --libdi | --libd)
1077 ac_prev=libdir ;;
1078 -libdir=* | --libdir=* | --libdi=* | --libd=*)
ad6254c5 1079 libdir=$ac_optarg ;;
795ca3e5
AK
1080
1081 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1082 | --libexe | --libex | --libe)
1083 ac_prev=libexecdir ;;
1084 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1085 | --libexe=* | --libex=* | --libe=*)
ad6254c5 1086 libexecdir=$ac_optarg ;;
795ca3e5 1087
7a197a62
AK
1088 -localedir | --localedir | --localedi | --localed | --locale)
1089 ac_prev=localedir ;;
1090 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1091 localedir=$ac_optarg ;;
1092
795ca3e5 1093 -localstatedir | --localstatedir | --localstatedi | --localstated \
7a197a62 1094 | --localstate | --localstat | --localsta | --localst | --locals)
795ca3e5
AK
1095 ac_prev=localstatedir ;;
1096 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
7a197a62 1097 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
ad6254c5 1098 localstatedir=$ac_optarg ;;
795ca3e5
AK
1099
1100 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1101 ac_prev=mandir ;;
1102 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
ad6254c5 1103 mandir=$ac_optarg ;;
795ca3e5
AK
1104
1105 -nfp | --nfp | --nf)
1106 # Obsolete; use --without-fp.
1107 with_fp=no ;;
1108
1109 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
ad6254c5 1110 | --no-cr | --no-c | -n)
795ca3e5
AK
1111 no_create=yes ;;
1112
1113 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1114 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1115 no_recursion=yes ;;
1116
1117 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1118 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1119 | --oldin | --oldi | --old | --ol | --o)
1120 ac_prev=oldincludedir ;;
1121 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1122 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1123 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
ad6254c5 1124 oldincludedir=$ac_optarg ;;
795ca3e5
AK
1125
1126 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1127 ac_prev=prefix ;;
1128 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
ad6254c5 1129 prefix=$ac_optarg ;;
795ca3e5
AK
1130
1131 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1132 | --program-pre | --program-pr | --program-p)
1133 ac_prev=program_prefix ;;
1134 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1135 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
ad6254c5 1136 program_prefix=$ac_optarg ;;
795ca3e5
AK
1137
1138 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1139 | --program-suf | --program-su | --program-s)
1140 ac_prev=program_suffix ;;
1141 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1142 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
ad6254c5 1143 program_suffix=$ac_optarg ;;
795ca3e5
AK
1144
1145 -program-transform-name | --program-transform-name \
1146 | --program-transform-nam | --program-transform-na \
1147 | --program-transform-n | --program-transform- \
1148 | --program-transform | --program-transfor \
1149 | --program-transfo | --program-transf \
1150 | --program-trans | --program-tran \
1151 | --progr-tra | --program-tr | --program-t)
1152 ac_prev=program_transform_name ;;
1153 -program-transform-name=* | --program-transform-name=* \
1154 | --program-transform-nam=* | --program-transform-na=* \
1155 | --program-transform-n=* | --program-transform-=* \
1156 | --program-transform=* | --program-transfor=* \
1157 | --program-transfo=* | --program-transf=* \
1158 | --program-trans=* | --program-tran=* \
1159 | --progr-tra=* | --program-tr=* | --program-t=*)
ad6254c5 1160 program_transform_name=$ac_optarg ;;
795ca3e5 1161
7a197a62
AK
1162 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1163 ac_prev=pdfdir ;;
1164 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1165 pdfdir=$ac_optarg ;;
1166
1167 -psdir | --psdir | --psdi | --psd | --ps)
1168 ac_prev=psdir ;;
1169 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1170 psdir=$ac_optarg ;;
1171
795ca3e5
AK
1172 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1173 | -silent | --silent | --silen | --sile | --sil)
1174 silent=yes ;;
1175
1176 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1177 ac_prev=sbindir ;;
1178 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1179 | --sbi=* | --sb=*)
ad6254c5 1180 sbindir=$ac_optarg ;;
795ca3e5
AK
1181
1182 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1183 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1184 | --sharedst | --shareds | --shared | --share | --shar \
1185 | --sha | --sh)
1186 ac_prev=sharedstatedir ;;
1187 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1188 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1189 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1190 | --sha=* | --sh=*)
ad6254c5 1191 sharedstatedir=$ac_optarg ;;
795ca3e5
AK
1192
1193 -site | --site | --sit)
1194 ac_prev=site ;;
1195 -site=* | --site=* | --sit=*)
ad6254c5 1196 site=$ac_optarg ;;
795ca3e5
AK
1197
1198 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1199 ac_prev=srcdir ;;
1200 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
ad6254c5 1201 srcdir=$ac_optarg ;;
795ca3e5
AK
1202
1203 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1204 | --syscon | --sysco | --sysc | --sys | --sy)
1205 ac_prev=sysconfdir ;;
1206 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1207 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
ad6254c5 1208 sysconfdir=$ac_optarg ;;
795ca3e5
AK
1209
1210 -target | --target | --targe | --targ | --tar | --ta | --t)
ad6254c5 1211 ac_prev=target_alias ;;
795ca3e5 1212 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
ad6254c5 1213 target_alias=$ac_optarg ;;
795ca3e5
AK
1214
1215 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1216 verbose=yes ;;
1217
ad6254c5
AK
1218 -version | --version | --versio | --versi | --vers | -V)
1219 ac_init_version=: ;;
795ca3e5
AK
1220
1221 -with-* | --with-*)
ec6a6fbe 1222 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
795ca3e5 1223 # Reject names that are not valid shell variable names.
ec6a6fbe
AK
1224 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1225 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
ad6254c5 1226 { (exit 1); exit 1; }; }
ec6a6fbe
AK
1227 ac_useropt_orig=$ac_useropt
1228 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1229 case $ac_user_opts in
1230 *"
1231"with_$ac_useropt"
1232"*) ;;
1233 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1234 ac_unrecognized_sep=', ';;
1235 esac
1236 eval with_$ac_useropt=\$ac_optarg ;;
795ca3e5
AK
1237
1238 -without-* | --without-*)
ec6a6fbe 1239 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
795ca3e5 1240 # Reject names that are not valid shell variable names.
ec6a6fbe
AK
1241 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1242 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
ad6254c5 1243 { (exit 1); exit 1; }; }
ec6a6fbe
AK
1244 ac_useropt_orig=$ac_useropt
1245 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1246 case $ac_user_opts in
1247 *"
1248"with_$ac_useropt"
1249"*) ;;
1250 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1251 ac_unrecognized_sep=', ';;
1252 esac
1253 eval with_$ac_useropt=no ;;
795ca3e5
AK
1254
1255 --x)
1256 # Obsolete; use --with-x.
1257 with_x=yes ;;
1258
1259 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1260 | --x-incl | --x-inc | --x-in | --x-i)
1261 ac_prev=x_includes ;;
1262 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1263 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
ad6254c5 1264 x_includes=$ac_optarg ;;
795ca3e5
AK
1265
1266 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1267 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1268 ac_prev=x_libraries ;;
1269 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1270 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
ad6254c5 1271 x_libraries=$ac_optarg ;;
795ca3e5 1272
ec6a6fbe 1273 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
ad6254c5
AK
1274Try \`$0 --help' for more information." >&2
1275 { (exit 1); exit 1; }; }
795ca3e5
AK
1276 ;;
1277
ad6254c5
AK
1278 *=*)
1279 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1280 # Reject names that are not valid shell variable names.
1281 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
ec6a6fbe 1282 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
ad6254c5 1283 { (exit 1); exit 1; }; }
7a197a62 1284 eval $ac_envvar=\$ac_optarg
ad6254c5
AK
1285 export $ac_envvar ;;
1286
795ca3e5 1287 *)
ad6254c5 1288 # FIXME: should be removed in autoconf 3.0.
ec6a6fbe 1289 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
ad6254c5 1290 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
ec6a6fbe 1291 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
ad6254c5 1292 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
795ca3e5
AK
1293 ;;
1294
1295 esac
1296done
1297
1298if test -n "$ac_prev"; then
ad6254c5 1299 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
ec6a6fbe 1300 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
ad6254c5 1301 { (exit 1); exit 1; }; }
795ca3e5 1302fi
795ca3e5 1303
ec6a6fbe
AK
1304if test -n "$ac_unrecognized_opts"; then
1305 case $enable_option_checking in
1306 no) ;;
1307 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1308 { (exit 1); exit 1; }; } ;;
1309 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1310 esac
1311fi
1312
1313# Check all directory arguments for consistency.
7a197a62
AK
1314for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1315 datadir sysconfdir sharedstatedir localstatedir includedir \
1316 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1317 libdir localedir mandir
795ca3e5 1318do
7a197a62 1319 eval ac_val=\$$ac_var
ec6a6fbe
AK
1320 # Remove trailing slashes.
1321 case $ac_val in
1322 */ )
1323 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1324 eval $ac_var=\$ac_val;;
1325 esac
1326 # Be sure to have absolute directory names.
ad6254c5 1327 case $ac_val in
7a197a62
AK
1328 [\\/$]* | ?:[\\/]* ) continue;;
1329 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
795ca3e5 1330 esac
ec6a6fbe 1331 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
7a197a62 1332 { (exit 1); exit 1; }; }
795ca3e5
AK
1333done
1334
ad6254c5
AK
1335# There might be people who depend on the old broken behavior: `$host'
1336# used to hold the argument of --host etc.
1337# FIXME: To remove some day.
1338build=$build_alias
1339host=$host_alias
1340target=$target_alias
1341
1342# FIXME: To remove some day.
1343if test "x$host_alias" != x; then
1344 if test "x$build_alias" = x; then
1345 cross_compiling=maybe
ec6a6fbe 1346 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
ad6254c5
AK
1347 If a cross compiler is detected then cross compile mode will be used." >&2
1348 elif test "x$build_alias" != "x$host_alias"; then
1349 cross_compiling=yes
1350 fi
1351fi
8106cdd5 1352
ad6254c5
AK
1353ac_tool_prefix=
1354test -n "$host_alias" && ac_tool_prefix=$host_alias-
1355
1356test "$silent" = yes && exec 6>/dev/null
795ca3e5 1357
795ca3e5 1358
7a197a62
AK
1359ac_pwd=`pwd` && test -n "$ac_pwd" &&
1360ac_ls_di=`ls -di .` &&
1361ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
ec6a6fbe 1362 { $as_echo "$as_me: error: working directory cannot be determined" >&2
7a197a62
AK
1363 { (exit 1); exit 1; }; }
1364test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
ec6a6fbe 1365 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
7a197a62
AK
1366 { (exit 1); exit 1; }; }
1367
1368
795ca3e5
AK
1369# Find the source files, if location was not specified.
1370if test -z "$srcdir"; then
1371 ac_srcdir_defaulted=yes
7a197a62 1372 # Try the directory containing this script, then the parent directory.
ec6a6fbe
AK
1373 ac_confdir=`$as_dirname -- "$as_myself" ||
1374$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1375 X"$as_myself" : 'X\(//\)[^/]' \| \
1376 X"$as_myself" : 'X\(//\)$' \| \
1377 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1378$as_echo X"$as_myself" |
7a197a62
AK
1379 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1380 s//\1/
1381 q
1382 }
1383 /^X\(\/\/\)[^/].*/{
1384 s//\1/
1385 q
1386 }
1387 /^X\(\/\/\)$/{
1388 s//\1/
1389 q
1390 }
1391 /^X\(\/\).*/{
1392 s//\1/
1393 q
1394 }
1395 s/.*/./; q'`
795ca3e5 1396 srcdir=$ac_confdir
7a197a62 1397 if test ! -r "$srcdir/$ac_unique_file"; then
795ca3e5
AK
1398 srcdir=..
1399 fi
1400else
1401 ac_srcdir_defaulted=no
1402fi
7a197a62
AK
1403if test ! -r "$srcdir/$ac_unique_file"; then
1404 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
ec6a6fbe 1405 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
ad6254c5 1406 { (exit 1); exit 1; }; }
795ca3e5 1407fi
7a197a62
AK
1408ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1409ac_abs_confdir=`(
ec6a6fbe 1410 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
ad6254c5 1411 { (exit 1); exit 1; }; }
7a197a62
AK
1412 pwd)`
1413# When building in place, set srcdir=.
1414if test "$ac_abs_confdir" = "$ac_pwd"; then
1415 srcdir=.
1416fi
1417# Remove unnecessary trailing slashes from srcdir.
1418# Double slashes in file names in object file debugging info
1419# mess up M-x gdb in Emacs.
1420case $srcdir in
1421*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1422esac
1423for ac_var in $ac_precious_vars; do
1424 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1425 eval ac_env_${ac_var}_value=\$${ac_var}
1426 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1427 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1428done
ad6254c5
AK
1429
1430#
1431# Report the --help message.
1432#
1433if test "$ac_init_help" = "long"; then
1434 # Omit some internal or obsolete options to make the list less imposing.
1435 # This message is too long to be a string in the A/UX 3.1 sh.
1436 cat <<_ACEOF
1437\`configure' configures this package to adapt to many kinds of systems.
1438
1439Usage: $0 [OPTION]... [VAR=VALUE]...
1440
1441To assign environment variables (e.g., CC, CFLAGS...), specify them as
1442VAR=VALUE. See below for descriptions of some of the useful variables.
1443
1444Defaults for the options are specified in brackets.
1445
1446Configuration:
1447 -h, --help display this help and exit
1448 --help=short display options specific to this package
1449 --help=recursive display the short help of all the included packages
1450 -V, --version display version information and exit
1451 -q, --quiet, --silent do not print \`checking...' messages
1452 --cache-file=FILE cache test results in FILE [disabled]
1453 -C, --config-cache alias for \`--cache-file=config.cache'
1454 -n, --no-create do not create output files
1455 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1456
ad6254c5
AK
1457Installation directories:
1458 --prefix=PREFIX install architecture-independent files in PREFIX
ec6a6fbe 1459 [$ac_default_prefix]
ad6254c5 1460 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
ec6a6fbe 1461 [PREFIX]
ad6254c5
AK
1462
1463By default, \`make install' will install all the files in
1464\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1465an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1466for instance \`--prefix=\$HOME'.
1467
1468For better control, use the options below.
1469
1470Fine tuning of the installation directories:
ec6a6fbe
AK
1471 --bindir=DIR user executables [EPREFIX/bin]
1472 --sbindir=DIR system admin executables [EPREFIX/sbin]
1473 --libexecdir=DIR program executables [EPREFIX/libexec]
1474 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1475 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1476 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1477 --libdir=DIR object code libraries [EPREFIX/lib]
1478 --includedir=DIR C header files [PREFIX/include]
1479 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1480 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1481 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1482 --infodir=DIR info documentation [DATAROOTDIR/info]
1483 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1484 --mandir=DIR man documentation [DATAROOTDIR/man]
1485 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1486 --htmldir=DIR html documentation [DOCDIR]
1487 --dvidir=DIR dvi documentation [DOCDIR]
1488 --pdfdir=DIR pdf documentation [DOCDIR]
1489 --psdir=DIR ps documentation [DOCDIR]
ad6254c5
AK
1490_ACEOF
1491
1492 cat <<\_ACEOF
1493
1494System types:
1495 --build=BUILD configure for building on BUILD [guessed]
1496 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1497 --target=TARGET configure for building compilers for TARGET [HOST]
1498_ACEOF
1499fi
1500
1501if test -n "$ac_init_help"; then
1502
1503 cat <<\_ACEOF
1504
1505Optional Features:
ec6a6fbe 1506 --disable-option-checking ignore unrecognized --enable/--with options
ad6254c5
AK
1507 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1508 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
9c961554
MB
1509 --enable-static_link Use this to link the tools to their libraries
1510 statically. Default is dynamic linking
ad6254c5
AK
1511 --enable-lvm1_fallback Use this to fall back and use LVM1 binaries if
1512 device-mapper is missing from the kernel
1b523347 1513 --disable-readline Disable readline support
89044bc0 1514 --enable-realtime Enable realtime clock support
66fd4529 1515 --enable-cmirrord Enable the cluster mirror log daemon
ad6254c5 1516 --enable-debug Enable debugging
5556819a 1517 --enable-profiling Gather gcov profiling data
93bd259b 1518 --disable-devmapper Disable LVM2 device-mapper interaction
a5f46f6a
AK
1519 --enable-udev_sync Enable synchronisation with udev processing
1520 --enable-udev_rules Install rule files needed for udev synchronisation
93bd259b 1521 --enable-compat Enable support for old device-mapper versions
95eaa683
AK
1522 --enable-units-compat Enable output compatibility with old versions that
1523 that don't use KiB-style unit suffixes
93bd259b 1524 --disable-driver Disable calls to device-mapper in the kernel
ad6254c5 1525 --disable-o_direct Disable O_DIRECT
572fefeb 1526 --enable-applib Build application library
ad6254c5 1527 --enable-cmdlib Build shared command library
93bd259b 1528 --enable-pkgconfig Install pkgconfig support
c9274524 1529 --disable-fsadm Disable fsadm
15d91f5a 1530 --enable-dmeventd Enable the device-mapper event daemon
d0191583 1531 --disable-selinux Disable selinux support
ad6254c5
AK
1532 --enable-nls Enable Native Language Support
1533
1534Optional Packages:
1535 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1536 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
39dabc84
FDN
1537 --with-user=USER Set the owner of installed files [USER=]
1538 --with-group=GROUP Set the group owner of installed files [GROUP=]
24bbc4d7
AK
1539 --with-device-uid=UID Set the owner used for new device nodes [UID=0]
1540 --with-device-gid=UID Set the group used for new device nodes [GID=0]
93bd259b 1541 --with-device-mode=MODE Set the mode used for new device nodes [MODE=0600]
ad6254c5
AK
1542 --with-lvm1=TYPE LVM1 metadata support: internal/shared/none
1543 TYPE=internal
1544 --with-pool=TYPE GFS pool read-only support: internal/shared/none
1545 TYPE=internal
1546 --with-cluster=TYPE Cluster LVM locking support: internal/shared/none
1547 TYPE=internal
1548 --with-snapshots=TYPE Snapshot support: internal/shared/none
1549 TYPE=internal
1550 --with-mirrors=TYPE Mirror support: internal/shared/none
1551 TYPE=internal
a946372e 1552 --with-clvmd=TYPE Build cluster LVM Daemon.
8c222979 1553 The following cluster manager combinations are valid:
a946372e
AK
1554 * cman,gulm (RHEL4 or equivalent)
1555 * cman (RHEL5 or equivalent)
1556 * cman,corosync,openais (or selection of them)
1091650a 1557 * singlenode (localhost only)
a946372e
AK
1558 * all (autodetect)
1559 * none (disable build)
a266258f 1560 TYPE=none
66fd4529 1561 --with-cmirrord-pidfile=PATH cmirrord pidfile [/var/run/cmirrord.pid]
d0191583
JM
1562 --with-optimisation=OPT C optimisation flag [OPT=-O2]
1563 --with-localedir=DIR Translation files in DIR [PREFIX/share/locale]
a5f46f6a
AK
1564 --with-confdir=DIR Configuration files in DIR [/etc]
1565 --with-staticdir=DIR Static binary in DIR [EPREFIX/sbin]
68f2de6d
AK
1566 --with-usrlibdir=DIR
1567 --with-usrsbindir=DIR
a5f46f6a 1568 --with-udev-prefix=UPREFIX Install udev rule files in UPREFIX [EPREFIX]
78ce7acc 1569 --with-udevdir=DIR udev rules in DIR [UPREFIX/lib/udev/rules.d]
93bd259b 1570 --with-dmeventd-pidfile=PATH dmeventd pidfile [/var/run/dmeventd.pid]
a5f46f6a 1571 --with-dmeventd-path=PATH dmeventd path [EPREFIX/sbin/dmeventd]
93bd259b 1572 --with-interface=IFACE Choose kernel interface (ioctl) [ioctl]
ad6254c5
AK
1573
1574Some influential environment variables:
1575 CC C compiler command
1576 CFLAGS C compiler flags
1577 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1578 nonstandard directory <lib dir>
25fbec5b 1579 LIBS libraries to pass to the linker, e.g. -l<library>
7a197a62
AK
1580 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1581 you have headers in a nonstandard directory <include dir>
ad6254c5 1582 CPP C preprocessor
e2997b73 1583 PKG_CONFIG path to pkg-config utility
a946372e
AK
1584 PKGCONFIGINIT_CFLAGS
1585 C compiler flags for PKGCONFIGINIT, overriding pkg-config
1586 PKGCONFIGINIT_LIBS
1587 linker flags for PKGCONFIGINIT, overriding pkg-config
1588 CCS_CFLAGS C compiler flags for CCS, overriding pkg-config
1589 CCS_LIBS linker flags for CCS, overriding pkg-config
1590 GULM_CFLAGS C compiler flags for GULM, overriding pkg-config
1591 GULM_LIBS linker flags for GULM, overriding pkg-config
1592 CMAN_CFLAGS C compiler flags for CMAN, overriding pkg-config
1593 CMAN_LIBS linker flags for CMAN, overriding pkg-config
1594 COROSYNC_CFLAGS
1595 C compiler flags for COROSYNC, overriding pkg-config
1596 COROSYNC_LIBS
1597 linker flags for COROSYNC, overriding pkg-config
e2997b73
AK
1598 QUORUM_CFLAGS
1599 C compiler flags for QUORUM, overriding pkg-config
1600 QUORUM_LIBS linker flags for QUORUM, overriding pkg-config
a946372e
AK
1601 SALCK_CFLAGS
1602 C compiler flags for SALCK, overriding pkg-config
1603 SALCK_LIBS linker flags for SALCK, overriding pkg-config
e2997b73
AK
1604 CONFDB_CFLAGS
1605 C compiler flags for CONFDB, overriding pkg-config
1606 CONFDB_LIBS linker flags for CONFDB, overriding pkg-config
1607 CPG_CFLAGS C compiler flags for CPG, overriding pkg-config
1608 CPG_LIBS linker flags for CPG, overriding pkg-config
a946372e
AK
1609 DLM_CFLAGS C compiler flags for DLM, overriding pkg-config
1610 DLM_LIBS linker flags for DLM, overriding pkg-config
90c80887
AK
1611 SACKPT_CFLAGS
1612 C compiler flags for SACKPT, overriding pkg-config
1613 SACKPT_LIBS linker flags for SACKPT, overriding pkg-config
ad6254c5
AK
1614
1615Use these variables to override the choices made by `configure' or to help
1616it to find libraries and programs with nonstandard names/locations.
1617
1618_ACEOF
7a197a62 1619ac_status=$?
ad6254c5
AK
1620fi
1621
1622if test "$ac_init_help" = "recursive"; then
1623 # If there are subdirs, report their specific --help.
ad6254c5 1624 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
ec6a6fbe
AK
1625 test -d "$ac_dir" ||
1626 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1627 continue
ad6254c5
AK
1628 ac_builddir=.
1629
7a197a62
AK
1630case "$ac_dir" in
1631.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1632*)
ec6a6fbe 1633 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7a197a62 1634 # A ".." for each directory in $ac_dir_suffix.
ec6a6fbe 1635 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7a197a62
AK
1636 case $ac_top_builddir_sub in
1637 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1638 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1639 esac ;;
1640esac
1641ac_abs_top_builddir=$ac_pwd
1642ac_abs_builddir=$ac_pwd$ac_dir_suffix
1643# for backward compatibility:
1644ac_top_builddir=$ac_top_build_prefix
ad6254c5
AK
1645
1646case $srcdir in
7a197a62 1647 .) # We are building in place.
ad6254c5 1648 ac_srcdir=.
7a197a62
AK
1649 ac_top_srcdir=$ac_top_builddir_sub
1650 ac_abs_top_srcdir=$ac_pwd ;;
1651 [\\/]* | ?:[\\/]* ) # Absolute name.
ad6254c5 1652 ac_srcdir=$srcdir$ac_dir_suffix;
7a197a62
AK
1653 ac_top_srcdir=$srcdir
1654 ac_abs_top_srcdir=$srcdir ;;
1655 *) # Relative name.
1656 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1657 ac_top_srcdir=$ac_top_build_prefix$srcdir
1658 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8a2fc586 1659esac
7a197a62
AK
1660ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1661
1662 cd "$ac_dir" || { ac_status=$?; continue; }
1663 # Check for guested configure.
1664 if test -f "$ac_srcdir/configure.gnu"; then
1665 echo &&
1666 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1667 elif test -f "$ac_srcdir/configure"; then
1668 echo &&
1669 $SHELL "$ac_srcdir/configure" --help=recursive
ad6254c5 1670 else
ec6a6fbe 1671 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
7a197a62
AK
1672 fi || ac_status=$?
1673 cd "$ac_pwd" || { ac_status=$?; break; }
ad6254c5
AK
1674 done
1675fi
1676
7a197a62 1677test -n "$ac_init_help" && exit $ac_status
ad6254c5
AK
1678if $ac_init_version; then
1679 cat <<\_ACEOF
7a197a62 1680configure
ec6a6fbe 1681generated by GNU Autoconf 2.63
ad6254c5 1682
7a197a62 1683Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
ec6a6fbe 16842002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
ad6254c5
AK
1685This configure script is free software; the Free Software Foundation
1686gives unlimited permission to copy, distribute and modify it.
1687_ACEOF
7a197a62 1688 exit
ad6254c5 1689fi
7a197a62 1690cat >config.log <<_ACEOF
ad6254c5
AK
1691This file contains any messages produced by compilers while
1692running configure, to aid debugging if configure makes a mistake.
1693
1694It was created by $as_me, which was
ec6a6fbe 1695generated by GNU Autoconf 2.63. Invocation command line was
ad6254c5
AK
1696
1697 $ $0 $@
1698
1699_ACEOF
7a197a62 1700exec 5>>config.log
ad6254c5
AK
1701{
1702cat <<_ASUNAME
1703## --------- ##
1704## Platform. ##
1705## --------- ##
1706
1707hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1708uname -m = `(uname -m) 2>/dev/null || echo unknown`
1709uname -r = `(uname -r) 2>/dev/null || echo unknown`
1710uname -s = `(uname -s) 2>/dev/null || echo unknown`
1711uname -v = `(uname -v) 2>/dev/null || echo unknown`
1712
1713/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1714/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1715
1716/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1717/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1718/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
7a197a62 1719/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
ad6254c5
AK
1720/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1721/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1722/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1723
1724_ASUNAME
1725
1726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1727for as_dir in $PATH
1728do
1729 IFS=$as_save_IFS
1730 test -z "$as_dir" && as_dir=.
ec6a6fbe 1731 $as_echo "PATH: $as_dir"
ad6254c5 1732done
7a197a62 1733IFS=$as_save_IFS
ad6254c5
AK
1734
1735} >&5
1736
1737cat >&5 <<_ACEOF
1738
1739
1740## ----------- ##
1741## Core tests. ##
1742## ----------- ##
1743
1744_ACEOF
1745
1746
1747# Keep a trace of the command line.
1748# Strip out --no-create and --no-recursion so they do not pile up.
1749# Strip out --silent because we don't want to record it for future runs.
1750# Also quote any args containing shell meta-characters.
1751# Make two passes to allow for proper duplicate-argument suppression.
1752ac_configure_args=
1753ac_configure_args0=
1754ac_configure_args1=
ad6254c5
AK
1755ac_must_keep_next=false
1756for ac_pass in 1 2
1757do
1758 for ac_arg
1759 do
1760 case $ac_arg in
1761 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1762 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1763 | -silent | --silent | --silen | --sile | --sil)
1764 continue ;;
7a197a62 1765 *\'*)
ec6a6fbe 1766 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
ad6254c5
AK
1767 esac
1768 case $ac_pass in
1769 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1770 2)
1771 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1772 if test $ac_must_keep_next = true; then
8a2fc586 1773 ac_must_keep_next=false # Got value, back to normal.
ad6254c5 1774 else
8a2fc586
AK
1775 case $ac_arg in
1776 *=* | --config-cache | -C | -disable-* | --disable-* \
1777 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1778 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1779 | -with-* | --with-* | -without-* | --without-* | --x)
1780 case "$ac_configure_args0 " in
1781 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1782 esac
1783 ;;
1784 -* ) ac_must_keep_next=true ;;
1785 esac
ad6254c5 1786 fi
7a197a62 1787 ac_configure_args="$ac_configure_args '$ac_arg'"
ad6254c5
AK
1788 ;;
1789 esac
1790 done
1791done
1792$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1793$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1794
1795# When interrupted or exit'd, cleanup temporary files, and complete
1796# config.log. We remove comments because anyway the quotes in there
1797# would cause problems or look ugly.
7a197a62
AK
1798# WARNING: Use '\'' to represent an apostrophe within the trap.
1799# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
ad6254c5
AK
1800trap 'exit_status=$?
1801 # Save into config.log some information that might help in debugging.
1802 {
1803 echo
1804
1805 cat <<\_ASBOX
1806## ---------------- ##
1807## Cache variables. ##
1808## ---------------- ##
1809_ASBOX
1810 echo
1811 # The following way of writing the cache mishandles newlines in values,
7a197a62
AK
1812(
1813 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1814 eval ac_val=\$$ac_var
1815 case $ac_val in #(
1816 *${as_nl}*)
1817 case $ac_var in #(
ec6a6fbe
AK
1818 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1819$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7a197a62
AK
1820 esac
1821 case $ac_var in #(
1822 _ | IFS | as_nl) ;; #(
ec6a6fbe 1823 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7a197a62
AK
1824 *) $as_unset $ac_var ;;
1825 esac ;;
1826 esac
1827 done
ad6254c5 1828 (set) 2>&1 |
7a197a62
AK
1829 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1830 *${as_nl}ac_space=\ *)
ad6254c5 1831 sed -n \
7a197a62
AK
1832 "s/'\''/'\''\\\\'\'''\''/g;
1833 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1834 ;; #(
ad6254c5 1835 *)
7a197a62 1836 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
ad6254c5 1837 ;;
7a197a62
AK
1838 esac |
1839 sort
1840)
ad6254c5
AK
1841 echo
1842
1843 cat <<\_ASBOX
1844## ----------------- ##
1845## Output variables. ##
1846## ----------------- ##
1847_ASBOX
1848 echo
1849 for ac_var in $ac_subst_vars
1850 do
7a197a62
AK
1851 eval ac_val=\$$ac_var
1852 case $ac_val in
ec6a6fbe 1853 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
7a197a62 1854 esac
ec6a6fbe 1855 $as_echo "$ac_var='\''$ac_val'\''"
ad6254c5
AK
1856 done | sort
1857 echo
1858
1859 if test -n "$ac_subst_files"; then
1860 cat <<\_ASBOX
7a197a62
AK
1861## ------------------- ##
1862## File substitutions. ##
1863## ------------------- ##
ad6254c5
AK
1864_ASBOX
1865 echo
1866 for ac_var in $ac_subst_files
1867 do
7a197a62
AK
1868 eval ac_val=\$$ac_var
1869 case $ac_val in
ec6a6fbe 1870 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
7a197a62 1871 esac
ec6a6fbe 1872 $as_echo "$ac_var='\''$ac_val'\''"
ad6254c5
AK
1873 done | sort
1874 echo
1875 fi
1876
1877 if test -s confdefs.h; then
1878 cat <<\_ASBOX
1879## ----------- ##
1880## confdefs.h. ##
1881## ----------- ##
1882_ASBOX
1883 echo
7a197a62 1884 cat confdefs.h
ad6254c5
AK
1885 echo
1886 fi
1887 test "$ac_signal" != 0 &&
ec6a6fbe
AK
1888 $as_echo "$as_me: caught signal $ac_signal"
1889 $as_echo "$as_me: exit $exit_status"
ad6254c5 1890 } >&5
7a197a62
AK
1891 rm -f core *.core core.conftest.* &&
1892 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
ad6254c5 1893 exit $exit_status
7a197a62 1894' 0
ad6254c5
AK
1895for ac_signal in 1 2 13 15; do
1896 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1897done
1898ac_signal=0
1899
1900# confdefs.h avoids OS command line length limits that DEFS can exceed.
7a197a62 1901rm -f -r conftest* confdefs.h
ad6254c5
AK
1902
1903# Predefined preprocessor variables.
1904
1905cat >>confdefs.h <<_ACEOF
1906#define PACKAGE_NAME "$PACKAGE_NAME"
1907_ACEOF
1908
1909
1910cat >>confdefs.h <<_ACEOF
1911#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1912_ACEOF
1913
1914
1915cat >>confdefs.h <<_ACEOF
1916#define PACKAGE_VERSION "$PACKAGE_VERSION"
1917_ACEOF
8106cdd5 1918
ad6254c5
AK
1919
1920cat >>confdefs.h <<_ACEOF
1921#define PACKAGE_STRING "$PACKAGE_STRING"
1922_ACEOF
1923
1924
1925cat >>confdefs.h <<_ACEOF
1926#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1927_ACEOF
1928
1929
1930# Let the site file select an alternate cache file if it wants to.
ec6a6fbe
AK
1931# Prefer an explicitly selected file to automatically selected ones.
1932ac_site_file1=NONE
1933ac_site_file2=NONE
7a197a62 1934if test -n "$CONFIG_SITE"; then
ec6a6fbe 1935 ac_site_file1=$CONFIG_SITE
7a197a62 1936elif test "x$prefix" != xNONE; then
ec6a6fbe
AK
1937 ac_site_file1=$prefix/share/config.site
1938 ac_site_file2=$prefix/etc/config.site
7a197a62 1939else
ec6a6fbe
AK
1940 ac_site_file1=$ac_default_prefix/share/config.site
1941 ac_site_file2=$ac_default_prefix/etc/config.site
795ca3e5 1942fi
ec6a6fbe 1943for ac_site_file in "$ac_site_file1" "$ac_site_file2"
7a197a62 1944do
ec6a6fbe 1945 test "x$ac_site_file" = xNONE && continue
795ca3e5 1946 if test -r "$ac_site_file"; then
ec6a6fbe
AK
1947 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1948$as_echo "$as_me: loading site script $ac_site_file" >&6;}
ad6254c5 1949 sed 's/^/| /' "$ac_site_file" >&5
795ca3e5
AK
1950 . "$ac_site_file"
1951 fi
1952done
1953
1954if test -r "$cache_file"; then
ad6254c5
AK
1955 # Some versions of bash will fail to source /dev/null (special
1956 # files actually), so we avoid doing that.
1957 if test -f "$cache_file"; then
ec6a6fbe
AK
1958 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1959$as_echo "$as_me: loading cache $cache_file" >&6;}
ad6254c5 1960 case $cache_file in
7a197a62
AK
1961 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1962 *) . "./$cache_file";;
ad6254c5
AK
1963 esac
1964 fi
795ca3e5 1965else
ec6a6fbe
AK
1966 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1967$as_echo "$as_me: creating cache $cache_file" >&6;}
ad6254c5
AK
1968 >$cache_file
1969fi
1970
1971# Check that the precious variables saved in the cache have kept the same
1972# value.
1973ac_cache_corrupted=false
7a197a62 1974for ac_var in $ac_precious_vars; do
ad6254c5
AK
1975 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1976 eval ac_new_set=\$ac_env_${ac_var}_set
7a197a62
AK
1977 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1978 eval ac_new_val=\$ac_env_${ac_var}_value
ad6254c5
AK
1979 case $ac_old_set,$ac_new_set in
1980 set,)
ec6a6fbe
AK
1981 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1982$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
ad6254c5
AK
1983 ac_cache_corrupted=: ;;
1984 ,set)
ec6a6fbe
AK
1985 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1986$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
ad6254c5
AK
1987 ac_cache_corrupted=: ;;
1988 ,);;
1989 *)
1990 if test "x$ac_old_val" != "x$ac_new_val"; then
ec6a6fbe
AK
1991 # differences in whitespace do not lead to failure.
1992 ac_old_val_w=`echo x $ac_old_val`
1993 ac_new_val_w=`echo x $ac_new_val`
1994 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1995 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1996$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1997 ac_cache_corrupted=:
1998 else
1999 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2000$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2001 eval $ac_var=\$ac_old_val
2002 fi
2003 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2004$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2005 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2006$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
ad6254c5
AK
2007 fi;;
2008 esac
2009 # Pass precious variables to config.status.
2010 if test "$ac_new_set" = set; then
2011 case $ac_new_val in
ec6a6fbe 2012 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
ad6254c5
AK
2013 *) ac_arg=$ac_var=$ac_new_val ;;
2014 esac
2015 case " $ac_configure_args " in
2016 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2017 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2018 esac
2019 fi
2020done
2021if $ac_cache_corrupted; then
ec6a6fbe
AK
2022 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2023$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2024 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2025$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2026 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2027$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
ad6254c5 2028 { (exit 1); exit 1; }; }
795ca3e5
AK
2029fi
2030
ad6254c5
AK
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
7a197a62
AK
2047ac_ext=c
2048ac_cpp='$CPP $CPPFLAGS'
2049ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2050ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2051ac_compiler_gnu=$ac_cv_c_compiler_gnu
ad6254c5 2052
795ca3e5
AK
2053
2054
7a197a62 2055ac_config_headers="$ac_config_headers lib/misc/configure.h"
72b2cb61
AK
2056
2057
80992638 2058################################################################################
795ca3e5 2059ac_aux_dir=
7a197a62
AK
2060for ac_dir in autoconf "$srcdir"/autoconf; do
2061 if test -f "$ac_dir/install-sh"; then
795ca3e5
AK
2062 ac_aux_dir=$ac_dir
2063 ac_install_sh="$ac_aux_dir/install-sh -c"
2064 break
7a197a62 2065 elif 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/shtool"; then
ad6254c5
AK
2070 ac_aux_dir=$ac_dir
2071 ac_install_sh="$ac_aux_dir/shtool install -c"
2072 break
795ca3e5
AK
2073 fi
2074done
2075if test -z "$ac_aux_dir"; then
ec6a6fbe
AK
2076 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2077$as_echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
ad6254c5 2078 { (exit 1); exit 1; }; }
795ca3e5 2079fi
7a197a62
AK
2080
2081# These three variables are undocumented and unsupported,
2082# and are intended to be withdrawn in a future Autoconf release.
2083# They can cause serious problems if a builder's source tree is in a directory
2084# whose full name contains unusual characters.
2085ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2086ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2087ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2088
8ce0cbda
AK
2089
2090
ad6254c5 2091################################################################################
8ce0cbda 2092# Make sure we can run config.sub.
7a197a62 2093$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
ec6a6fbe
AK
2094 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2095$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
ad6254c5
AK
2096 { (exit 1); exit 1; }; }
2097
ec6a6fbe
AK
2098{ $as_echo "$as_me:$LINENO: checking build system type" >&5
2099$as_echo_n "checking build system type... " >&6; }
ad6254c5 2100if test "${ac_cv_build+set}" = set; then
ec6a6fbe 2101 $as_echo_n "(cached) " >&6
ad6254c5 2102else
7a197a62
AK
2103 ac_build_alias=$build_alias
2104test "x$ac_build_alias" = x &&
2105 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2106test "x$ac_build_alias" = x &&
ec6a6fbe
AK
2107 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2108$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
ad6254c5 2109 { (exit 1); exit 1; }; }
7a197a62 2110ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
ec6a6fbe
AK
2111 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2112$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
ad6254c5
AK
2113 { (exit 1); exit 1; }; }
2114
2115fi
ec6a6fbe
AK
2116{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2117$as_echo "$ac_cv_build" >&6; }
7a197a62
AK
2118case $ac_cv_build in
2119*-*-*) ;;
ec6a6fbe
AK
2120*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2121$as_echo "$as_me: error: invalid value of canonical build" >&2;}
7a197a62
AK
2122 { (exit 1); exit 1; }; };;
2123esac
ad6254c5 2124build=$ac_cv_build
7a197a62
AK
2125ac_save_IFS=$IFS; IFS='-'
2126set x $ac_cv_build
2127shift
2128build_cpu=$1
2129build_vendor=$2
2130shift; shift
2131# Remember, the first character of IFS is used to create $*,
2132# except with old shells:
2133build_os=$*
2134IFS=$ac_save_IFS
2135case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
ad6254c5
AK
2136
2137
ec6a6fbe
AK
2138{ $as_echo "$as_me:$LINENO: checking host system type" >&5
2139$as_echo_n "checking host system type... " >&6; }
ad6254c5 2140if test "${ac_cv_host+set}" = set; then
ec6a6fbe 2141 $as_echo_n "(cached) " >&6
ad6254c5 2142else
7a197a62
AK
2143 if test "x$host_alias" = x; then
2144 ac_cv_host=$ac_cv_build
2145else
2146 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
ec6a6fbe
AK
2147 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2148$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
ad6254c5 2149 { (exit 1); exit 1; }; }
7a197a62 2150fi
ad6254c5
AK
2151
2152fi
ec6a6fbe
AK
2153{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2154$as_echo "$ac_cv_host" >&6; }
7a197a62
AK
2155case $ac_cv_host in
2156*-*-*) ;;
ec6a6fbe
AK
2157*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2158$as_echo "$as_me: error: invalid value of canonical host" >&2;}
7a197a62
AK
2159 { (exit 1); exit 1; }; };;
2160esac
ad6254c5 2161host=$ac_cv_host
7a197a62
AK
2162ac_save_IFS=$IFS; IFS='-'
2163set x $ac_cv_host
2164shift
2165host_cpu=$1
2166host_vendor=$2
2167shift; shift
2168# Remember, the first character of IFS is used to create $*,
2169# except with old shells:
2170host_os=$*
2171IFS=$ac_save_IFS
2172case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
ad6254c5
AK
2173
2174
ec6a6fbe
AK
2175{ $as_echo "$as_me:$LINENO: checking target system type" >&5
2176$as_echo_n "checking target system type... " >&6; }
ad6254c5 2177if test "${ac_cv_target+set}" = set; then
ec6a6fbe 2178 $as_echo_n "(cached) " >&6
ad6254c5 2179else
7a197a62
AK
2180 if test "x$target_alias" = x; then
2181 ac_cv_target=$ac_cv_host
2182else
2183 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
ec6a6fbe
AK
2184 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2185$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
ad6254c5 2186 { (exit 1); exit 1; }; }
7a197a62 2187fi
8ce0cbda 2188
ad6254c5 2189fi
ec6a6fbe
AK
2190{ $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2191$as_echo "$ac_cv_target" >&6; }
7a197a62
AK
2192case $ac_cv_target in
2193*-*-*) ;;
ec6a6fbe
AK
2194*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2195$as_echo "$as_me: error: invalid value of canonical target" >&2;}
7a197a62
AK
2196 { (exit 1); exit 1; }; };;
2197esac
ad6254c5 2198target=$ac_cv_target
7a197a62
AK
2199ac_save_IFS=$IFS; IFS='-'
2200set x $ac_cv_target
2201shift
2202target_cpu=$1
2203target_vendor=$2
2204shift; shift
2205# Remember, the first character of IFS is used to create $*,
2206# except with old shells:
2207target_os=$*
2208IFS=$ac_save_IFS
2209case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
8ce0cbda 2210
8ce0cbda 2211
ad6254c5
AK
2212# The aliases save the names the user supplied, while $host etc.
2213# will get canonicalized.
2214test -n "$target_alias" &&
8ce0cbda
AK
2215 test "$program_prefix$program_suffix$program_transform_name" = \
2216 NONENONEs,x,x, &&
2217 program_prefix=${target_alias}-
2218
8ce0cbda
AK
2219case "$host_os" in
2220 linux*)
7f54ef36 2221 CFLAGS="$CFLAGS"
8ce0cbda
AK
2222 COPTIMISE_FLAG="-O2"
2223 CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym"
2224 CLDWHOLEARCHIVE="-Wl,-whole-archive"
2225 CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive"
2226 LDDEPS="$LDDEPS .export.sym"
2227 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
d0191583 2228 LIB_SUFFIX=so
8ce0cbda
AK
2229 DEVMAPPER=yes
2230 ODIRECT=yes
d0191583 2231 DM_IOCTLS=yes
8ce0cbda
AK
2232 SELINUX=yes
2233 CLUSTER=internal
93bd259b 2234 FSADM=yes
d0191583 2235 ;;
8ce0cbda
AK
2236 darwin*)
2237 CFLAGS="$CFLAGS -no-cpp-precomp -fno-common"
2238 COPTIMISE_FLAG="-O2"
2239 CLDFLAGS="$CLDFLAGS"
2240 CLDWHOLEARCHIVE="-all_load"
2241 CLDNOWHOLEARCHIVE=
d0191583 2242 LIB_SUFFIX=dylib
a653923f 2243 DEVMAPPER=yes
8ce0cbda 2244 ODIRECT=no
d0191583 2245 DM_IOCTLS=no
8ce0cbda
AK
2246 SELINUX=no
2247 CLUSTER=none
d0191583
JM
2248 FSADM=no
2249 ;;
8ce0cbda
AK
2250esac
2251
80992638 2252################################################################################
ec6a6fbe
AK
2253{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
2254$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5951ef33 2255if test "${ac_cv_path_SED+set}" = set; then
ec6a6fbe 2256 $as_echo_n "(cached) " >&6
5951ef33
AK
2257else
2258 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2259 for ac_i in 1 2 3 4 5 6 7; do
2260 ac_script="$ac_script$as_nl$ac_script"
2261 done
ec6a6fbe 2262 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5951ef33 2263 $as_unset ac_script || ac_script=
ec6a6fbe 2264 if test -z "$SED"; then
5951ef33 2265 ac_path_SED_found=false
ec6a6fbe
AK
2266 # Loop through the user's path and test for each of PROGNAME-LIST
2267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5951ef33
AK
2268for as_dir in $PATH
2269do
2270 IFS=$as_save_IFS
2271 test -z "$as_dir" && as_dir=.
2272 for ac_prog in sed gsed; do
ec6a6fbe
AK
2273 for ac_exec_ext in '' $ac_executable_extensions; do
2274 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2275 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2276# Check for GNU ac_path_SED and select it if it is found.
5951ef33
AK
2277 # Check for GNU $ac_path_SED
2278case `"$ac_path_SED" --version 2>&1` in
2279*GNU*)
2280 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2281*)
2282 ac_count=0
ec6a6fbe 2283 $as_echo_n 0123456789 >"conftest.in"
5951ef33
AK
2284 while :
2285 do
2286 cat "conftest.in" "conftest.in" >"conftest.tmp"
2287 mv "conftest.tmp" "conftest.in"
2288 cp "conftest.in" "conftest.nl"
ec6a6fbe 2289 $as_echo '' >> "conftest.nl"
5951ef33
AK
2290 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2291 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2292 ac_count=`expr $ac_count + 1`
2293 if test $ac_count -gt ${ac_path_SED_max-0}; then
2294 # Best one so far, save it but keep looking for a better one
2295 ac_cv_path_SED="$ac_path_SED"
2296 ac_path_SED_max=$ac_count
2297 fi
2298 # 10*(2^10) chars as input seems more than enough
2299 test $ac_count -gt 10 && break
2300 done
2301 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2302esac
2303
ec6a6fbe
AK
2304 $ac_path_SED_found && break 3
2305 done
5951ef33
AK
2306 done
2307done
5951ef33 2308IFS=$as_save_IFS
ec6a6fbe
AK
2309 if test -z "$ac_cv_path_SED"; then
2310 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
2311$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
5951ef33 2312 { (exit 1); exit 1; }; }
ec6a6fbe 2313 fi
5951ef33
AK
2314else
2315 ac_cv_path_SED=$SED
2316fi
2317
2318fi
ec6a6fbe
AK
2319{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
2320$as_echo "$ac_cv_path_SED" >&6; }
5951ef33
AK
2321 SED="$ac_cv_path_SED"
2322 rm -f conftest.sed
2323
ad6254c5 2324for ac_prog in gawk mawk nawk awk
795ca3e5 2325do
ad6254c5 2326 # Extract the first word of "$ac_prog", so it can be a program name with args.
795ca3e5 2327set dummy $ac_prog; ac_word=$2
ec6a6fbe
AK
2328{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2329$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2330if test "${ac_cv_prog_AWK+set}" = set; then
ec6a6fbe 2331 $as_echo_n "(cached) " >&6
795ca3e5
AK
2332else
2333 if test -n "$AWK"; then
2334 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2335else
ad6254c5
AK
2336as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2337for as_dir in $PATH
2338do
2339 IFS=$as_save_IFS
2340 test -z "$as_dir" && as_dir=.
2341 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2342 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2343 ac_cv_prog_AWK="$ac_prog"
ec6a6fbe 2344 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2345 break 2
2346 fi
2347done
2348done
7a197a62 2349IFS=$as_save_IFS
ad6254c5 2350
795ca3e5
AK
2351fi
2352fi
ad6254c5 2353AWK=$ac_cv_prog_AWK
795ca3e5 2354if test -n "$AWK"; then
ec6a6fbe
AK
2355 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2356$as_echo "$AWK" >&6; }
795ca3e5 2357else
ec6a6fbe
AK
2358 { $as_echo "$as_me:$LINENO: result: no" >&5
2359$as_echo "no" >&6; }
795ca3e5
AK
2360fi
2361
7a197a62 2362
ad6254c5
AK
2363 test -n "$AWK" && break
2364done
2365
2366ac_ext=c
2367ac_cpp='$CPP $CPPFLAGS'
2368ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2369ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2370ac_compiler_gnu=$ac_cv_c_compiler_gnu
2371if test -n "$ac_tool_prefix"; then
2372 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2373set dummy ${ac_tool_prefix}gcc; ac_word=$2
ec6a6fbe
AK
2374{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2375$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2376if test "${ac_cv_prog_CC+set}" = set; then
ec6a6fbe 2377 $as_echo_n "(cached) " >&6
ad6254c5
AK
2378else
2379 if test -n "$CC"; then
2380 ac_cv_prog_CC="$CC" # Let the user override the test.
2381else
2382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2383for as_dir in $PATH
2384do
2385 IFS=$as_save_IFS
2386 test -z "$as_dir" && as_dir=.
2387 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2389 ac_cv_prog_CC="${ac_tool_prefix}gcc"
ec6a6fbe 2390 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2391 break 2
2392 fi
2393done
8106cdd5 2394done
7a197a62 2395IFS=$as_save_IFS
8106cdd5 2396
ad6254c5
AK
2397fi
2398fi
2399CC=$ac_cv_prog_CC
2400if test -n "$CC"; then
ec6a6fbe
AK
2401 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2402$as_echo "$CC" >&6; }
ad6254c5 2403else
ec6a6fbe
AK
2404 { $as_echo "$as_me:$LINENO: result: no" >&5
2405$as_echo "no" >&6; }
ad6254c5
AK
2406fi
2407
7a197a62 2408
ad6254c5
AK
2409fi
2410if test -z "$ac_cv_prog_CC"; then
2411 ac_ct_CC=$CC
2412 # Extract the first word of "gcc", so it can be a program name with args.
8106cdd5 2413set dummy gcc; ac_word=$2
ec6a6fbe
AK
2414{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2415$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2416if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
ec6a6fbe 2417 $as_echo_n "(cached) " >&6
ad6254c5
AK
2418else
2419 if test -n "$ac_ct_CC"; then
2420 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2421else
2422as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2423for as_dir in $PATH
2424do
2425 IFS=$as_save_IFS
2426 test -z "$as_dir" && as_dir=.
2427 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2429 ac_cv_prog_ac_ct_CC="gcc"
ec6a6fbe 2430 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2431 break 2
2432 fi
2433done
2434done
7a197a62 2435IFS=$as_save_IFS
ad6254c5
AK
2436
2437fi
2438fi
2439ac_ct_CC=$ac_cv_prog_ac_ct_CC
2440if test -n "$ac_ct_CC"; then
ec6a6fbe
AK
2441 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2442$as_echo "$ac_ct_CC" >&6; }
ad6254c5 2443else
ec6a6fbe
AK
2444 { $as_echo "$as_me:$LINENO: result: no" >&5
2445$as_echo "no" >&6; }
ad6254c5
AK
2446fi
2447
7a197a62
AK
2448 if test "x$ac_ct_CC" = x; then
2449 CC=""
2450 else
2451 case $cross_compiling:$ac_tool_warned in
2452yes:)
ec6a6fbe
AK
2453{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2454$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7a197a62
AK
2455ac_tool_warned=yes ;;
2456esac
2457 CC=$ac_ct_CC
2458 fi
ad6254c5
AK
2459else
2460 CC="$ac_cv_prog_CC"
2461fi
2462
2463if test -z "$CC"; then
7a197a62
AK
2464 if test -n "$ac_tool_prefix"; then
2465 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
ad6254c5 2466set dummy ${ac_tool_prefix}cc; ac_word=$2
ec6a6fbe
AK
2467{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2468$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2469if test "${ac_cv_prog_CC+set}" = set; then
ec6a6fbe 2470 $as_echo_n "(cached) " >&6
8106cdd5
AK
2471else
2472 if test -n "$CC"; then
2473 ac_cv_prog_CC="$CC" # Let the user override the test.
2474else
ad6254c5
AK
2475as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2476for as_dir in $PATH
2477do
2478 IFS=$as_save_IFS
2479 test -z "$as_dir" && as_dir=.
2480 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2482 ac_cv_prog_CC="${ac_tool_prefix}cc"
ec6a6fbe 2483 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2484 break 2
2485 fi
2486done
2487done
7a197a62 2488IFS=$as_save_IFS
ad6254c5 2489
8106cdd5
AK
2490fi
2491fi
ad6254c5 2492CC=$ac_cv_prog_CC
8106cdd5 2493if test -n "$CC"; then
ec6a6fbe
AK
2494 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2495$as_echo "$CC" >&6; }
ad6254c5 2496else
ec6a6fbe
AK
2497 { $as_echo "$as_me:$LINENO: result: no" >&5
2498$as_echo "no" >&6; }
ad6254c5
AK
2499fi
2500
8106cdd5 2501
7a197a62 2502 fi
ad6254c5 2503fi
795ca3e5
AK
2504if test -z "$CC"; then
2505 # Extract the first word of "cc", so it can be a program name with args.
2506set dummy cc; ac_word=$2
ec6a6fbe
AK
2507{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2508$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2509if test "${ac_cv_prog_CC+set}" = set; then
ec6a6fbe 2510 $as_echo_n "(cached) " >&6
795ca3e5
AK
2511else
2512 if test -n "$CC"; then
2513 ac_cv_prog_CC="$CC" # Let the user override the test.
2514else
795ca3e5 2515 ac_prog_rejected=no
ad6254c5
AK
2516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2517for as_dir in $PATH
2518do
2519 IFS=$as_save_IFS
2520 test -z "$as_dir" && as_dir=.
2521 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5
AK
2523 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2524 ac_prog_rejected=yes
2525 continue
2526 fi
2527 ac_cv_prog_CC="cc"
ec6a6fbe 2528 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2529 break 2
2530 fi
2531done
2532done
7a197a62 2533IFS=$as_save_IFS
ad6254c5 2534
795ca3e5
AK
2535if test $ac_prog_rejected = yes; then
2536 # We found a bogon in the path, so make sure we never use it.
2537 set dummy $ac_cv_prog_CC
2538 shift
ad6254c5 2539 if test $# != 0; then
795ca3e5
AK
2540 # We chose a different compiler from the bogus one.
2541 # However, it has the same basename, so the bogon will be chosen
2542 # first if we set CC to just the basename; use the full file name.
2543 shift
ad6254c5 2544 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
795ca3e5
AK
2545 fi
2546fi
2547fi
2548fi
ad6254c5 2549CC=$ac_cv_prog_CC
795ca3e5 2550if test -n "$CC"; then
ec6a6fbe
AK
2551 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2552$as_echo "$CC" >&6; }
795ca3e5 2553else
ec6a6fbe
AK
2554 { $as_echo "$as_me:$LINENO: result: no" >&5
2555$as_echo "no" >&6; }
795ca3e5
AK
2556fi
2557
7a197a62 2558
ad6254c5
AK
2559fi
2560if test -z "$CC"; then
2561 if test -n "$ac_tool_prefix"; then
7a197a62 2562 for ac_prog in cl.exe
ad6254c5
AK
2563 do
2564 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2565set dummy $ac_tool_prefix$ac_prog; ac_word=$2
ec6a6fbe
AK
2566{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2567$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2568if test "${ac_cv_prog_CC+set}" = set; then
ec6a6fbe 2569 $as_echo_n "(cached) " >&6
795ca3e5
AK
2570else
2571 if test -n "$CC"; then
2572 ac_cv_prog_CC="$CC" # Let the user override the test.
2573else
ad6254c5
AK
2574as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2575for as_dir in $PATH
2576do
2577 IFS=$as_save_IFS
2578 test -z "$as_dir" && as_dir=.
2579 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2581 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
ec6a6fbe 2582 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2583 break 2
2584 fi
2585done
2586done
7a197a62 2587IFS=$as_save_IFS
ad6254c5 2588
795ca3e5
AK
2589fi
2590fi
ad6254c5 2591CC=$ac_cv_prog_CC
795ca3e5 2592if test -n "$CC"; then
ec6a6fbe
AK
2593 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2594$as_echo "$CC" >&6; }
795ca3e5 2595else
ec6a6fbe
AK
2596 { $as_echo "$as_me:$LINENO: result: no" >&5
2597$as_echo "no" >&6; }
795ca3e5 2598fi
ad6254c5 2599
7a197a62 2600
ad6254c5
AK
2601 test -n "$CC" && break
2602 done
2603fi
2604if test -z "$CC"; then
2605 ac_ct_CC=$CC
7a197a62 2606 for ac_prog in cl.exe
ad6254c5
AK
2607do
2608 # Extract the first word of "$ac_prog", so it can be a program name with args.
2609set dummy $ac_prog; ac_word=$2
ec6a6fbe
AK
2610{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2611$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2612if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
ec6a6fbe 2613 $as_echo_n "(cached) " >&6
ad6254c5
AK
2614else
2615 if test -n "$ac_ct_CC"; then
2616 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2617else
2618as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2619for as_dir in $PATH
2620do
2621 IFS=$as_save_IFS
2622 test -z "$as_dir" && as_dir=.
2623 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2625 ac_cv_prog_ac_ct_CC="$ac_prog"
ec6a6fbe 2626 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5 2627 break 2
795ca3e5 2628 fi
ad6254c5
AK
2629done
2630done
7a197a62 2631IFS=$as_save_IFS
ad6254c5
AK
2632
2633fi
2634fi
2635ac_ct_CC=$ac_cv_prog_ac_ct_CC
2636if test -n "$ac_ct_CC"; then
ec6a6fbe
AK
2637 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2638$as_echo "$ac_ct_CC" >&6; }
ad6254c5 2639else
ec6a6fbe
AK
2640 { $as_echo "$as_me:$LINENO: result: no" >&5
2641$as_echo "no" >&6; }
795ca3e5
AK
2642fi
2643
7a197a62 2644
ad6254c5
AK
2645 test -n "$ac_ct_CC" && break
2646done
795ca3e5 2647
7a197a62
AK
2648 if test "x$ac_ct_CC" = x; then
2649 CC=""
2650 else
2651 case $cross_compiling:$ac_tool_warned in
2652yes:)
ec6a6fbe
AK
2653{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2654$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7a197a62
AK
2655ac_tool_warned=yes ;;
2656esac
2657 CC=$ac_ct_CC
2658 fi
ad6254c5
AK
2659fi
2660
2661fi
2662
2663
ec6a6fbe
AK
2664test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2665$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2666{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
ad6254c5 2667See \`config.log' for more details." >&5
ec6a6fbe 2668$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
ad6254c5 2669See \`config.log' for more details." >&2;}
ec6a6fbe 2670 { (exit 1); exit 1; }; }; }
ad6254c5
AK
2671
2672# Provide some information about the compiler.
ec6a6fbe
AK
2673$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2674set X $ac_compile
2675ac_compiler=$2
7a197a62
AK
2676{ (ac_try="$ac_compiler --version >&5"
2677case "(($ac_try" in
2678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2679 *) ac_try_echo=$ac_try;;
2680esac
ec6a6fbe
AK
2681eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2682$as_echo "$ac_try_echo") >&5
7a197a62 2683 (eval "$ac_compiler --version >&5") 2>&5
ad6254c5 2684 ac_status=$?
ec6a6fbe 2685 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2686 (exit $ac_status); }
7a197a62
AK
2687{ (ac_try="$ac_compiler -v >&5"
2688case "(($ac_try" in
2689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2690 *) ac_try_echo=$ac_try;;
2691esac
ec6a6fbe
AK
2692eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2693$as_echo "$ac_try_echo") >&5
7a197a62 2694 (eval "$ac_compiler -v >&5") 2>&5
ad6254c5 2695 ac_status=$?
ec6a6fbe 2696 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2697 (exit $ac_status); }
7a197a62
AK
2698{ (ac_try="$ac_compiler -V >&5"
2699case "(($ac_try" in
2700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2701 *) ac_try_echo=$ac_try;;
2702esac
ec6a6fbe
AK
2703eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2704$as_echo "$ac_try_echo") >&5
7a197a62 2705 (eval "$ac_compiler -V >&5") 2>&5
ad6254c5 2706 ac_status=$?
ec6a6fbe 2707 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
2708 (exit $ac_status); }
2709
2710cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2711/* confdefs.h. */
2712_ACEOF
2713cat confdefs.h >>conftest.$ac_ext
2714cat >>conftest.$ac_ext <<_ACEOF
2715/* end confdefs.h. */
2716
2717int
2718main ()
2719{
2720
2721 ;
2722 return 0;
2723}
2724_ACEOF
2725ac_clean_files_save=$ac_clean_files
ec6a6fbe 2726ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
ad6254c5
AK
2727# Try to create an executable without -o first, disregard a.out.
2728# It will help us diagnose broken compilers, and finding out an intuition
2729# of exeext.
ec6a6fbe
AK
2730{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2731$as_echo_n "checking for C compiler default output file name... " >&6; }
2732ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2733
2734# The possible output files:
2735ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2736
7a197a62
AK
2737ac_rmfiles=
2738for ac_file in $ac_files
2739do
2740 case $ac_file in
ec6a6fbe 2741 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
7a197a62
AK
2742 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2743 esac
2744done
2745rm -f $ac_rmfiles
2746
2747if { (ac_try="$ac_link_default"
2748case "(($ac_try" in
2749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2750 *) ac_try_echo=$ac_try;;
2751esac
ec6a6fbe
AK
2752eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2753$as_echo "$ac_try_echo") >&5
7a197a62 2754 (eval "$ac_link_default") 2>&5
ad6254c5 2755 ac_status=$?
ec6a6fbe 2756 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2757 (exit $ac_status); }; then
7a197a62
AK
2758 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2759# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2760# in a Makefile. We should not override ac_cv_exeext if it was cached,
2761# so that the user can short-circuit this test for compilers unknown to
2762# Autoconf.
25fbec5b 2763for ac_file in $ac_files ''
ad6254c5
AK
2764do
2765 test -f "$ac_file" || continue
2766 case $ac_file in
ec6a6fbe 2767 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
8a2fc586 2768 ;;
ad6254c5 2769 [ab].out )
8a2fc586
AK
2770 # We found the default executable, but exeext='' is most
2771 # certainly right.
2772 break;;
ad6254c5 2773 *.* )
7a197a62
AK
2774 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2775 then :; else
2776 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2777 fi
2778 # We set ac_cv_exeext here because the later test for it is not
2779 # safe: cross compilers may not add the suffix if given an `-o'
2780 # argument, so we may need to know it at that point already.
2781 # Even if this section looks crufty: it has the advantage of
2782 # actually working.
8a2fc586 2783 break;;
ad6254c5 2784 * )
8a2fc586 2785 break;;
ad6254c5
AK
2786 esac
2787done
7a197a62
AK
2788test "$ac_cv_exeext" = no && ac_cv_exeext=
2789
ad6254c5 2790else
25fbec5b
AK
2791 ac_file=''
2792fi
2793
ec6a6fbe
AK
2794{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2795$as_echo "$ac_file" >&6; }
25fbec5b 2796if test -z "$ac_file"; then
ec6a6fbe 2797 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
2798sed 's/^/| /' conftest.$ac_ext >&5
2799
ec6a6fbe
AK
2800{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2801$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2802{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
ad6254c5 2803See \`config.log' for more details." >&5
ec6a6fbe 2804$as_echo "$as_me: error: C compiler cannot create executables
ad6254c5 2805See \`config.log' for more details." >&2;}
ec6a6fbe 2806 { (exit 77); exit 77; }; }; }
ad6254c5
AK
2807fi
2808
2809ac_exeext=$ac_cv_exeext
ad6254c5 2810
7a197a62 2811# Check that the compiler produces executables we can run. If not, either
ad6254c5 2812# the compiler is broken, or we cross compile.
ec6a6fbe
AK
2813{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2814$as_echo_n "checking whether the C compiler works... " >&6; }
ad6254c5
AK
2815# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2816# If not cross compiling, check that we can run a simple program.
2817if test "$cross_compiling" != yes; then
2818 if { ac_try='./$ac_file'
7a197a62
AK
2819 { (case "(($ac_try" in
2820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2821 *) ac_try_echo=$ac_try;;
2822esac
ec6a6fbe
AK
2823eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2824$as_echo "$ac_try_echo") >&5
7a197a62 2825 (eval "$ac_try") 2>&5
ad6254c5 2826 ac_status=$?
ec6a6fbe 2827 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
2828 (exit $ac_status); }; }; then
2829 cross_compiling=no
795ca3e5 2830 else
ad6254c5
AK
2831 if test "$cross_compiling" = maybe; then
2832 cross_compiling=yes
2833 else
ec6a6fbe
AK
2834 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2835$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2836{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
ad6254c5
AK
2837If you meant to cross compile, use \`--host'.
2838See \`config.log' for more details." >&5
ec6a6fbe 2839$as_echo "$as_me: error: cannot run C compiled programs.
ad6254c5
AK
2840If you meant to cross compile, use \`--host'.
2841See \`config.log' for more details." >&2;}
ec6a6fbe 2842 { (exit 1); exit 1; }; }; }
ad6254c5 2843 fi
795ca3e5 2844 fi
80992638 2845fi
ec6a6fbe
AK
2846{ $as_echo "$as_me:$LINENO: result: yes" >&5
2847$as_echo "yes" >&6; }
ad6254c5 2848
ec6a6fbe 2849rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
ad6254c5 2850ac_clean_files=$ac_clean_files_save
7a197a62 2851# Check that the compiler produces executables we can run. If not, either
ad6254c5 2852# the compiler is broken, or we cross compile.
ec6a6fbe
AK
2853{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2854$as_echo_n "checking whether we are cross compiling... " >&6; }
2855{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2856$as_echo "$cross_compiling" >&6; }
7a197a62 2857
ec6a6fbe
AK
2858{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2859$as_echo_n "checking for suffix of executables... " >&6; }
7a197a62
AK
2860if { (ac_try="$ac_link"
2861case "(($ac_try" in
2862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2863 *) ac_try_echo=$ac_try;;
2864esac
ec6a6fbe
AK
2865eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2866$as_echo "$ac_try_echo") >&5
7a197a62 2867 (eval "$ac_link") 2>&5
ad6254c5 2868 ac_status=$?
ec6a6fbe 2869 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
2870 (exit $ac_status); }; then
2871 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2872# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2873# work properly (i.e., refer to `conftest.exe'), while it won't with
2874# `rm'.
2875for ac_file in conftest.exe conftest conftest.*; do
2876 test -f "$ac_file" || continue
2877 case $ac_file in
ec6a6fbe 2878 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
ad6254c5 2879 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
8a2fc586 2880 break;;
ad6254c5
AK
2881 * ) break;;
2882 esac
2883done
80992638 2884else
ec6a6fbe
AK
2885 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2886$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2887{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
ad6254c5 2888See \`config.log' for more details." >&5
ec6a6fbe 2889$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
ad6254c5 2890See \`config.log' for more details." >&2;}
ec6a6fbe 2891 { (exit 1); exit 1; }; }; }
ad6254c5
AK
2892fi
2893
2894rm -f conftest$ac_cv_exeext
ec6a6fbe
AK
2895{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2896$as_echo "$ac_cv_exeext" >&6; }
ad6254c5
AK
2897
2898rm -f conftest.$ac_ext
2899EXEEXT=$ac_cv_exeext
2900ac_exeext=$EXEEXT
ec6a6fbe
AK
2901{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2902$as_echo_n "checking for suffix of object files... " >&6; }
ad6254c5 2903if test "${ac_cv_objext+set}" = set; then
ec6a6fbe 2904 $as_echo_n "(cached) " >&6
795ca3e5 2905else
ad6254c5 2906 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2907/* confdefs.h. */
2908_ACEOF
2909cat confdefs.h >>conftest.$ac_ext
2910cat >>conftest.$ac_ext <<_ACEOF
2911/* end confdefs.h. */
2912
2913int
2914main ()
2915{
2916
2917 ;
2918 return 0;
2919}
2920_ACEOF
2921rm -f conftest.o conftest.obj
7a197a62
AK
2922if { (ac_try="$ac_compile"
2923case "(($ac_try" in
2924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2925 *) ac_try_echo=$ac_try;;
2926esac
ec6a6fbe
AK
2927eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2928$as_echo "$ac_try_echo") >&5
7a197a62 2929 (eval "$ac_compile") 2>&5
ad6254c5 2930 ac_status=$?
ec6a6fbe 2931 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2932 (exit $ac_status); }; then
7a197a62
AK
2933 for ac_file in conftest.o conftest.obj conftest.*; do
2934 test -f "$ac_file" || continue;
ad6254c5 2935 case $ac_file in
ec6a6fbe 2936 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
ad6254c5
AK
2937 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2938 break;;
2939 esac
2940done
2941else
ec6a6fbe 2942 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
2943sed 's/^/| /' conftest.$ac_ext >&5
2944
ec6a6fbe
AK
2945{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2946$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2947{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
ad6254c5 2948See \`config.log' for more details." >&5
ec6a6fbe 2949$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
ad6254c5 2950See \`config.log' for more details." >&2;}
ec6a6fbe 2951 { (exit 1); exit 1; }; }; }
ad6254c5
AK
2952fi
2953
2954rm -f conftest.$ac_cv_objext conftest.$ac_ext
2955fi
ec6a6fbe
AK
2956{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2957$as_echo "$ac_cv_objext" >&6; }
ad6254c5
AK
2958OBJEXT=$ac_cv_objext
2959ac_objext=$OBJEXT
ec6a6fbe
AK
2960{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2961$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
ad6254c5 2962if test "${ac_cv_c_compiler_gnu+set}" = set; then
ec6a6fbe 2963 $as_echo_n "(cached) " >&6
ad6254c5
AK
2964else
2965 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2966/* confdefs.h. */
2967_ACEOF
2968cat confdefs.h >>conftest.$ac_ext
2969cat >>conftest.$ac_ext <<_ACEOF
2970/* end confdefs.h. */
2971
2972int
2973main ()
2974{
2975#ifndef __GNUC__
2976 choke me
2977#endif
80992638 2978
ad6254c5
AK
2979 ;
2980 return 0;
2981}
2982_ACEOF
2983rm -f conftest.$ac_objext
7a197a62
AK
2984if { (ac_try="$ac_compile"
2985case "(($ac_try" in
2986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2987 *) ac_try_echo=$ac_try;;
2988esac
ec6a6fbe
AK
2989eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2990$as_echo "$ac_try_echo") >&5
7a197a62 2991 (eval "$ac_compile") 2>conftest.er1
ad6254c5 2992 ac_status=$?
8a2fc586
AK
2993 grep -v '^ *+' conftest.er1 >conftest.err
2994 rm -f conftest.er1
2995 cat conftest.err >&5
ec6a6fbe 2996 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
2997 (exit $ac_status); } && {
2998 test -z "$ac_c_werror_flag" ||
2999 test ! -s conftest.err
3000 } && test -s conftest.$ac_objext; then
ad6254c5 3001 ac_compiler_gnu=yes
80992638 3002else
ec6a6fbe 3003 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
3004sed 's/^/| /' conftest.$ac_ext >&5
3005
7a197a62 3006 ac_compiler_gnu=no
8106cdd5 3007fi
7a197a62
AK
3008
3009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 3010ac_cv_c_compiler_gnu=$ac_compiler_gnu
80992638 3011
ad6254c5 3012fi
ec6a6fbe
AK
3013{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3014$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3015if test $ac_compiler_gnu = yes; then
3016 GCC=yes
3017else
3018 GCC=
3019fi
ad6254c5
AK
3020ac_test_CFLAGS=${CFLAGS+set}
3021ac_save_CFLAGS=$CFLAGS
ec6a6fbe
AK
3022{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3023$as_echo_n "checking whether $CC accepts -g... " >&6; }
ad6254c5 3024if test "${ac_cv_prog_cc_g+set}" = set; then
ec6a6fbe 3025 $as_echo_n "(cached) " >&6
795ca3e5 3026else
7a197a62
AK
3027 ac_save_c_werror_flag=$ac_c_werror_flag
3028 ac_c_werror_flag=yes
3029 ac_cv_prog_cc_g=no
3030 CFLAGS="-g"
3031 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3032/* confdefs.h. */
3033_ACEOF
3034cat confdefs.h >>conftest.$ac_ext
3035cat >>conftest.$ac_ext <<_ACEOF
3036/* end confdefs.h. */
3037
3038int
3039main ()
3040{
3041
3042 ;
3043 return 0;
3044}
3045_ACEOF
3046rm -f conftest.$ac_objext
7a197a62
AK
3047if { (ac_try="$ac_compile"
3048case "(($ac_try" in
3049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3050 *) ac_try_echo=$ac_try;;
3051esac
ec6a6fbe
AK
3052eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3053$as_echo "$ac_try_echo") >&5
7a197a62 3054 (eval "$ac_compile") 2>conftest.er1
ad6254c5 3055 ac_status=$?
8a2fc586
AK
3056 grep -v '^ *+' conftest.er1 >conftest.err
3057 rm -f conftest.er1
3058 cat conftest.err >&5
ec6a6fbe 3059 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
3060 (exit $ac_status); } && {
3061 test -z "$ac_c_werror_flag" ||
3062 test ! -s conftest.err
3063 } && test -s conftest.$ac_objext; then
7a197a62
AK
3064 ac_cv_prog_cc_g=yes
3065else
ec6a6fbe 3066 $as_echo "$as_me: failed program was:" >&5
7a197a62
AK
3067sed 's/^/| /' conftest.$ac_ext >&5
3068
3069 CFLAGS=""
3070 cat >conftest.$ac_ext <<_ACEOF
3071/* confdefs.h. */
3072_ACEOF
3073cat confdefs.h >>conftest.$ac_ext
3074cat >>conftest.$ac_ext <<_ACEOF
3075/* end confdefs.h. */
3076
3077int
3078main ()
3079{
3080
3081 ;
3082 return 0;
3083}
3084_ACEOF
3085rm -f conftest.$ac_objext
3086if { (ac_try="$ac_compile"
3087case "(($ac_try" in
3088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3089 *) ac_try_echo=$ac_try;;
3090esac
ec6a6fbe
AK
3091eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3092$as_echo "$ac_try_echo") >&5
7a197a62 3093 (eval "$ac_compile") 2>conftest.er1
8a2fc586 3094 ac_status=$?
7a197a62
AK
3095 grep -v '^ *+' conftest.er1 >conftest.err
3096 rm -f conftest.er1
3097 cat conftest.err >&5
ec6a6fbe 3098 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
3099 (exit $ac_status); } && {
3100 test -z "$ac_c_werror_flag" ||
3101 test ! -s conftest.err
3102 } && test -s conftest.$ac_objext; then
7a197a62
AK
3103 :
3104else
ec6a6fbe 3105 $as_echo "$as_me: failed program was:" >&5
7a197a62
AK
3106sed 's/^/| /' conftest.$ac_ext >&5
3107
3108 ac_c_werror_flag=$ac_save_c_werror_flag
3109 CFLAGS="-g"
3110 cat >conftest.$ac_ext <<_ACEOF
3111/* confdefs.h. */
3112_ACEOF
3113cat confdefs.h >>conftest.$ac_ext
3114cat >>conftest.$ac_ext <<_ACEOF
3115/* end confdefs.h. */
3116
3117int
3118main ()
3119{
3120
3121 ;
3122 return 0;
3123}
3124_ACEOF
3125rm -f conftest.$ac_objext
3126if { (ac_try="$ac_compile"
3127case "(($ac_try" in
3128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3129 *) ac_try_echo=$ac_try;;
3130esac
ec6a6fbe
AK
3131eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3132$as_echo "$ac_try_echo") >&5
7a197a62 3133 (eval "$ac_compile") 2>conftest.er1
ad6254c5 3134 ac_status=$?
7a197a62
AK
3135 grep -v '^ *+' conftest.er1 >conftest.err
3136 rm -f conftest.er1
3137 cat conftest.err >&5
ec6a6fbe 3138 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
3139 (exit $ac_status); } && {
3140 test -z "$ac_c_werror_flag" ||
3141 test ! -s conftest.err
3142 } && test -s conftest.$ac_objext; then
795ca3e5
AK
3143 ac_cv_prog_cc_g=yes
3144else
ec6a6fbe 3145 $as_echo "$as_me: failed program was:" >&5
ad6254c5 3146sed 's/^/| /' conftest.$ac_ext >&5
80992638 3147
7a197a62
AK
3148
3149fi
3150
3151rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3152fi
3153
3154rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8106cdd5 3155fi
7a197a62
AK
3156
3157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3158 ac_c_werror_flag=$ac_save_c_werror_flag
ad6254c5 3159fi
ec6a6fbe
AK
3160{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3161$as_echo "$ac_cv_prog_cc_g" >&6; }
795ca3e5 3162if test "$ac_test_CFLAGS" = set; then
ad6254c5 3163 CFLAGS=$ac_save_CFLAGS
795ca3e5
AK
3164elif test $ac_cv_prog_cc_g = yes; then
3165 if test "$GCC" = yes; then
3166 CFLAGS="-g -O2"
3167 else
3168 CFLAGS="-g"
3169 fi
3170else
3171 if test "$GCC" = yes; then
3172 CFLAGS="-O2"
3173 else
3174 CFLAGS=
3175 fi
3176fi
ec6a6fbe
AK
3177{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3178$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
7a197a62 3179if test "${ac_cv_prog_cc_c89+set}" = set; then
ec6a6fbe 3180 $as_echo_n "(cached) " >&6
ad6254c5 3181else
7a197a62 3182 ac_cv_prog_cc_c89=no
ad6254c5
AK
3183ac_save_CC=$CC
3184cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3185/* confdefs.h. */
3186_ACEOF
3187cat confdefs.h >>conftest.$ac_ext
3188cat >>conftest.$ac_ext <<_ACEOF
3189/* end confdefs.h. */
3190#include <stdarg.h>
3191#include <stdio.h>
3192#include <sys/types.h>
3193#include <sys/stat.h>
3194/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3195struct buf { int x; };
3196FILE * (*rcsopen) (struct buf *, struct stat *, int);
3197static char *e (p, i)
3198 char **p;
3199 int i;
3200{
3201 return p[i];
3202}
3203static char *f (char * (*g) (char **, int), char **p, ...)
3204{
3205 char *s;
3206 va_list v;
3207 va_start (v,p);
3208 s = g (p, va_arg (v,int));
3209 va_end (v);
3210 return s;
3211}
8a2fc586
AK
3212
3213/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3214 function prototypes and stuff, but not '\xHH' hex character constants.
3215 These don't provoke an error unfortunately, instead are silently treated
7a197a62 3216 as 'x'. The following induces an error, until -std is added to get
8a2fc586
AK
3217 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3218 array size at least. It's necessary to write '\x00'==0 to get something
7a197a62 3219 that's true only with -std. */
8a2fc586
AK
3220int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3221
7a197a62
AK
3222/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3223 inside strings and character constants. */
3224#define FOO(x) 'x'
3225int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3226
ad6254c5
AK
3227int test (int i, double x);
3228struct s1 {int (*f) (int a);};
3229struct s2 {int (*f) (double a);};
3230int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3231int argc;
3232char **argv;
3233int
3234main ()
3235{
3236return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3237 ;
3238 return 0;
3239}
3240_ACEOF
7a197a62
AK
3241for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3242 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
ad6254c5
AK
3243do
3244 CC="$ac_save_CC $ac_arg"
3245 rm -f conftest.$ac_objext
7a197a62
AK
3246if { (ac_try="$ac_compile"
3247case "(($ac_try" in
3248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3249 *) ac_try_echo=$ac_try;;
3250esac
ec6a6fbe
AK
3251eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3252$as_echo "$ac_try_echo") >&5
7a197a62 3253 (eval "$ac_compile") 2>conftest.er1
ad6254c5 3254 ac_status=$?
8a2fc586
AK
3255 grep -v '^ *+' conftest.er1 >conftest.err
3256 rm -f conftest.er1
3257 cat conftest.err >&5
ec6a6fbe 3258 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
3259 (exit $ac_status); } && {
3260 test -z "$ac_c_werror_flag" ||
3261 test ! -s conftest.err
3262 } && test -s conftest.$ac_objext; then
7a197a62 3263 ac_cv_prog_cc_c89=$ac_arg
ad6254c5 3264else
ec6a6fbe 3265 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
3266sed 's/^/| /' conftest.$ac_ext >&5
3267
7a197a62 3268
ad6254c5 3269fi
7a197a62
AK
3270
3271rm -f core conftest.err conftest.$ac_objext
3272 test "x$ac_cv_prog_cc_c89" != "xno" && break
ad6254c5 3273done
7a197a62 3274rm -f conftest.$ac_ext
ad6254c5
AK
3275CC=$ac_save_CC
3276
3277fi
7a197a62
AK
3278# AC_CACHE_VAL
3279case "x$ac_cv_prog_cc_c89" in
3280 x)
ec6a6fbe
AK
3281 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3282$as_echo "none needed" >&6; } ;;
7a197a62 3283 xno)
ec6a6fbe
AK
3284 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3285$as_echo "unsupported" >&6; } ;;
ad6254c5 3286 *)
7a197a62 3287 CC="$CC $ac_cv_prog_cc_c89"
ec6a6fbe
AK
3288 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3289$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
ad6254c5
AK
3290esac
3291
ad6254c5 3292
ad6254c5
AK
3293ac_ext=c
3294ac_cpp='$CPP $CPPFLAGS'
3295ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3296ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3297ac_compiler_gnu=$ac_cv_c_compiler_gnu
795ca3e5 3298
d0191583
JM
3299
3300
3301ac_ext=c
3302ac_cpp='$CPP $CPPFLAGS'
3303ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3304ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3305ac_compiler_gnu=$ac_cv_c_compiler_gnu
ec6a6fbe
AK
3306{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3307$as_echo_n "checking how to run the C preprocessor... " >&6; }
d0191583
JM
3308# On Suns, sometimes $CPP names a directory.
3309if test -n "$CPP" && test -d "$CPP"; then
3310 CPP=
3311fi
3312if test -z "$CPP"; then
3313 if test "${ac_cv_prog_CPP+set}" = set; then
ec6a6fbe 3314 $as_echo_n "(cached) " >&6
ad6254c5 3315else
d0191583
JM
3316 # Double quotes because CPP needs to be expanded
3317 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3318 do
3319 ac_preproc_ok=false
3320for ac_c_preproc_warn_flag in '' yes
ad6254c5 3321do
d0191583
JM
3322 # Use a header file that comes with gcc, so configuring glibc
3323 # with a fresh cross-compiler works.
3324 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3325 # <limits.h> exists even on freestanding compilers.
3326 # On the NeXT, cc -E runs the code through the compiler's parser,
3327 # not just through cpp. "Syntax error" is here to catch this case.
3328 cat >conftest.$ac_ext <<_ACEOF
3329/* confdefs.h. */
3330_ACEOF
3331cat confdefs.h >>conftest.$ac_ext
3332cat >>conftest.$ac_ext <<_ACEOF
3333/* end confdefs.h. */
3334#ifdef __STDC__
3335# include <limits.h>
3336#else
3337# include <assert.h>
3338#endif
3339 Syntax error
3340_ACEOF
3341if { (ac_try="$ac_cpp conftest.$ac_ext"
3342case "(($ac_try" in
3343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3344 *) ac_try_echo=$ac_try;;
ad6254c5 3345esac
ec6a6fbe
AK
3346eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3347$as_echo "$ac_try_echo") >&5
d0191583
JM
3348 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3349 ac_status=$?
3350 grep -v '^ *+' conftest.er1 >conftest.err
3351 rm -f conftest.er1
3352 cat conftest.err >&5
ec6a6fbe 3353 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3354 (exit $ac_status); } >/dev/null && {
3355 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3356 test ! -s conftest.err
3357 }; then
3358 :
3359else
ec6a6fbe 3360 $as_echo "$as_me: failed program was:" >&5
d0191583 3361sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 3362
d0191583
JM
3363 # Broken: fails on valid input.
3364continue
795ca3e5 3365fi
795ca3e5 3366
d0191583 3367rm -f conftest.err conftest.$ac_ext
795ca3e5 3368
d0191583
JM
3369 # OK, works on sane cases. Now check whether nonexistent headers
3370 # can be detected and how.
3371 cat >conftest.$ac_ext <<_ACEOF
3372/* confdefs.h. */
3373_ACEOF
3374cat confdefs.h >>conftest.$ac_ext
3375cat >>conftest.$ac_ext <<_ACEOF
3376/* end confdefs.h. */
3377#include <ac_nonexistent.h>
3378_ACEOF
3379if { (ac_try="$ac_cpp conftest.$ac_ext"
3380case "(($ac_try" in
3381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3382 *) ac_try_echo=$ac_try;;
3383esac
ec6a6fbe
AK
3384eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3385$as_echo "$ac_try_echo") >&5
d0191583
JM
3386 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3387 ac_status=$?
3388 grep -v '^ *+' conftest.er1 >conftest.err
3389 rm -f conftest.er1
3390 cat conftest.err >&5
ec6a6fbe 3391 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3392 (exit $ac_status); } >/dev/null && {
3393 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3394 test ! -s conftest.err
3395 }; then
3396 # Broken: success on invalid input.
3397continue
3398else
ec6a6fbe 3399 $as_echo "$as_me: failed program was:" >&5
d0191583 3400sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 3401
d0191583
JM
3402 # Passes both tests.
3403ac_preproc_ok=:
3404break
3405fi
795ca3e5 3406
d0191583
JM
3407rm -f conftest.err conftest.$ac_ext
3408
3409done
3410# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3411rm -f conftest.err conftest.$ac_ext
3412if $ac_preproc_ok; then
3413 break
795ca3e5
AK
3414fi
3415
d0191583
JM
3416 done
3417 ac_cv_prog_CPP=$CPP
3418
3419fi
3420 CPP=$ac_cv_prog_CPP
795ca3e5 3421else
d0191583
JM
3422 ac_cv_prog_CPP=$CPP
3423fi
ec6a6fbe
AK
3424{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
3425$as_echo "$CPP" >&6; }
d0191583
JM
3426ac_preproc_ok=false
3427for ac_c_preproc_warn_flag in '' yes
3428do
3429 # Use a header file that comes with gcc, so configuring glibc
3430 # with a fresh cross-compiler works.
3431 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3432 # <limits.h> exists even on freestanding compilers.
3433 # On the NeXT, cc -E runs the code through the compiler's parser,
3434 # not just through cpp. "Syntax error" is here to catch this case.
3435 cat >conftest.$ac_ext <<_ACEOF
3436/* confdefs.h. */
ad6254c5 3437_ACEOF
d0191583
JM
3438cat confdefs.h >>conftest.$ac_ext
3439cat >>conftest.$ac_ext <<_ACEOF
3440/* end confdefs.h. */
3441#ifdef __STDC__
3442# include <limits.h>
3443#else
3444# include <assert.h>
3445#endif
3446 Syntax error
3447_ACEOF
3448if { (ac_try="$ac_cpp conftest.$ac_ext"
3449case "(($ac_try" in
3450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3451 *) ac_try_echo=$ac_try;;
7a197a62 3452esac
ec6a6fbe
AK
3453eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3454$as_echo "$ac_try_echo") >&5
d0191583
JM
3455 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3456 ac_status=$?
3457 grep -v '^ *+' conftest.er1 >conftest.err
3458 rm -f conftest.er1
3459 cat conftest.err >&5
ec6a6fbe 3460 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3461 (exit $ac_status); } >/dev/null && {
3462 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3463 test ! -s conftest.err
3464 }; then
3465 :
795ca3e5 3466else
ec6a6fbe 3467 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
3468sed 's/^/| /' conftest.$ac_ext >&5
3469
3470 # Broken: fails on valid input.
3471continue
795ca3e5
AK
3472fi
3473
d0191583
JM
3474rm -f conftest.err conftest.$ac_ext
3475
3476 # OK, works on sane cases. Now check whether nonexistent headers
3477 # can be detected and how.
3478 cat >conftest.$ac_ext <<_ACEOF
3479/* confdefs.h. */
3480_ACEOF
3481cat confdefs.h >>conftest.$ac_ext
3482cat >>conftest.$ac_ext <<_ACEOF
3483/* end confdefs.h. */
3484#include <ac_nonexistent.h>
3485_ACEOF
3486if { (ac_try="$ac_cpp conftest.$ac_ext"
3487case "(($ac_try" in
3488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3489 *) ac_try_echo=$ac_try;;
3490esac
ec6a6fbe
AK
3491eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3492$as_echo "$ac_try_echo") >&5
d0191583
JM
3493 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3494 ac_status=$?
3495 grep -v '^ *+' conftest.er1 >conftest.err
3496 rm -f conftest.er1
3497 cat conftest.err >&5
ec6a6fbe 3498 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3499 (exit $ac_status); } >/dev/null && {
3500 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3501 test ! -s conftest.err
3502 }; then
3503 # Broken: success on invalid input.
3504continue
795ca3e5 3505else
ec6a6fbe 3506 $as_echo "$as_me: failed program was:" >&5
d0191583 3507sed 's/^/| /' conftest.$ac_ext >&5
ad6254c5 3508
d0191583
JM
3509 # Passes both tests.
3510ac_preproc_ok=:
3511break
795ca3e5 3512fi
d0191583
JM
3513
3514rm -f conftest.err conftest.$ac_ext
3515
3516done
3517# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3518rm -f conftest.err conftest.$ac_ext
3519if $ac_preproc_ok; then
3520 :
8106cdd5 3521else
ec6a6fbe
AK
3522 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3523$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3524{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
d0191583 3525See \`config.log' for more details." >&5
ec6a6fbe 3526$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
d0191583 3527See \`config.log' for more details." >&2;}
ec6a6fbe 3528 { (exit 1); exit 1; }; }; }
8106cdd5
AK
3529fi
3530
d0191583
JM
3531ac_ext=c
3532ac_cpp='$CPP $CPPFLAGS'
3533ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3534ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3535ac_compiler_gnu=$ac_cv_c_compiler_gnu
3536
7a197a62 3537
ec6a6fbe
AK
3538{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3539$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5556819a 3540if test "${ac_cv_path_GREP+set}" = set; then
ec6a6fbe 3541 $as_echo_n "(cached) " >&6
ad6254c5 3542else
ec6a6fbe 3543 if test -z "$GREP"; then
d0191583 3544 ac_path_GREP_found=false
ec6a6fbe
AK
3545 # Loop through the user's path and test for each of PROGNAME-LIST
3546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
d0191583 3547for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
ad6254c5
AK
3548do
3549 IFS=$as_save_IFS
3550 test -z "$as_dir" && as_dir=.
d0191583 3551 for ac_prog in grep ggrep; do
ec6a6fbe
AK
3552 for ac_exec_ext in '' $ac_executable_extensions; do
3553 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3554 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3555# Check for GNU ac_path_GREP and select it if it is found.
d0191583
JM
3556 # Check for GNU $ac_path_GREP
3557case `"$ac_path_GREP" --version 2>&1` in
3558*GNU*)
3559 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3560*)
3561 ac_count=0
ec6a6fbe 3562 $as_echo_n 0123456789 >"conftest.in"
d0191583
JM
3563 while :
3564 do
3565 cat "conftest.in" "conftest.in" >"conftest.tmp"
3566 mv "conftest.tmp" "conftest.in"
3567 cp "conftest.in" "conftest.nl"
ec6a6fbe 3568 $as_echo 'GREP' >> "conftest.nl"
d0191583
JM
3569 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3570 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3571 ac_count=`expr $ac_count + 1`
3572 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3573 # Best one so far, save it but keep looking for a better one
3574 ac_cv_path_GREP="$ac_path_GREP"
3575 ac_path_GREP_max=$ac_count
3576 fi
3577 # 10*(2^10) chars as input seems more than enough
3578 test $ac_count -gt 10 && break
3579 done
3580 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3581esac
3582
ec6a6fbe
AK
3583 $ac_path_GREP_found && break 3
3584 done
d0191583 3585 done
ad6254c5 3586done
7a197a62 3587IFS=$as_save_IFS
ec6a6fbe
AK
3588 if test -z "$ac_cv_path_GREP"; then
3589 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3590$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
d0191583 3591 { (exit 1); exit 1; }; }
ec6a6fbe 3592 fi
80992638 3593else
d0191583 3594 ac_cv_path_GREP=$GREP
8106cdd5 3595fi
8106cdd5 3596
80992638 3597fi
ec6a6fbe
AK
3598{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3599$as_echo "$ac_cv_path_GREP" >&6; }
d0191583 3600 GREP="$ac_cv_path_GREP"
795ca3e5 3601
d0191583 3602
ec6a6fbe
AK
3603{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
3604$as_echo_n "checking for egrep... " >&6; }
d0191583 3605if test "${ac_cv_path_EGREP+set}" = set; then
ec6a6fbe 3606 $as_echo_n "(cached) " >&6
8a2fc586 3607else
d0191583
JM
3608 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3609 then ac_cv_path_EGREP="$GREP -E"
3610 else
ec6a6fbe 3611 if test -z "$EGREP"; then
d0191583 3612 ac_path_EGREP_found=false
ec6a6fbe
AK
3613 # Loop through the user's path and test for each of PROGNAME-LIST
3614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
d0191583 3615for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8a2fc586
AK
3616do
3617 IFS=$as_save_IFS
3618 test -z "$as_dir" && as_dir=.
d0191583 3619 for ac_prog in egrep; do
ec6a6fbe
AK
3620 for ac_exec_ext in '' $ac_executable_extensions; do
3621 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3622 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3623# Check for GNU ac_path_EGREP and select it if it is found.
d0191583
JM
3624 # Check for GNU $ac_path_EGREP
3625case `"$ac_path_EGREP" --version 2>&1` in
3626*GNU*)
3627 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3628*)
3629 ac_count=0
ec6a6fbe 3630 $as_echo_n 0123456789 >"conftest.in"
d0191583
JM
3631 while :
3632 do
3633 cat "conftest.in" "conftest.in" >"conftest.tmp"
3634 mv "conftest.tmp" "conftest.in"
3635 cp "conftest.in" "conftest.nl"
ec6a6fbe 3636 $as_echo 'EGREP' >> "conftest.nl"
d0191583
JM
3637 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3638 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3639 ac_count=`expr $ac_count + 1`
3640 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3641 # Best one so far, save it but keep looking for a better one
3642 ac_cv_path_EGREP="$ac_path_EGREP"
3643 ac_path_EGREP_max=$ac_count
3644 fi
3645 # 10*(2^10) chars as input seems more than enough
3646 test $ac_count -gt 10 && break
3647 done
3648 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8a2fc586 3649esac
8a2fc586 3650
ec6a6fbe
AK
3651 $ac_path_EGREP_found && break 3
3652 done
d0191583 3653 done
8a2fc586 3654done
7a197a62 3655IFS=$as_save_IFS
ec6a6fbe
AK
3656 if test -z "$ac_cv_path_EGREP"; then
3657 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3658$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
d0191583 3659 { (exit 1); exit 1; }; }
ec6a6fbe 3660 fi
d0191583
JM
3661else
3662 ac_cv_path_EGREP=$EGREP
3663fi
ad6254c5 3664
d0191583
JM
3665 fi
3666fi
ec6a6fbe
AK
3667{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3668$as_echo "$ac_cv_path_EGREP" >&6; }
d0191583 3669 EGREP="$ac_cv_path_EGREP"
ad6254c5
AK
3670
3671
d0191583 3672if test $ac_cv_c_compiler_gnu = yes; then
ec6a6fbe
AK
3673 { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3674$as_echo_n "checking whether $CC needs -traditional... " >&6; }
d0191583 3675if test "${ac_cv_prog_gcc_traditional+set}" = set; then
ec6a6fbe 3676 $as_echo_n "(cached) " >&6
8106cdd5 3677else
d0191583 3678 ac_pattern="Autoconf.*'x'"
ad6254c5 3679 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3680/* confdefs.h. */
3681_ACEOF
3682cat confdefs.h >>conftest.$ac_ext
3683cat >>conftest.$ac_ext <<_ACEOF
3684/* end confdefs.h. */
d0191583
JM
3685#include <sgtty.h>
3686Autoconf TIOCGETP
ad6254c5 3687_ACEOF
d0191583
JM
3688if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3689 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3690 ac_cv_prog_gcc_traditional=yes
8106cdd5 3691else
d0191583 3692 ac_cv_prog_gcc_traditional=no
80992638 3693fi
d0191583 3694rm -f conftest*
ad6254c5 3695
8106cdd5 3696
d0191583
JM
3697 if test $ac_cv_prog_gcc_traditional = no; then
3698 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3699/* confdefs.h. */
3700_ACEOF
3701cat confdefs.h >>conftest.$ac_ext
3702cat >>conftest.$ac_ext <<_ACEOF
3703/* end confdefs.h. */
d0191583
JM
3704#include <termio.h>
3705Autoconf TCGETA
ad6254c5 3706_ACEOF
d0191583
JM
3707if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3708 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3709 ac_cv_prog_gcc_traditional=yes
7a197a62 3710fi
d0191583 3711rm -f conftest*
795ca3e5 3712
d0191583 3713 fi
795ca3e5 3714fi
ec6a6fbe
AK
3715{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3716$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
d0191583
JM
3717 if test $ac_cv_prog_gcc_traditional = yes; then
3718 CC="$CC -traditional"
3719 fi
795ca3e5
AK
3720fi
3721
d0191583
JM
3722# Find a good install program. We prefer a C program (faster),
3723# so one script is as good as another. But avoid the broken or
3724# incompatible versions:
3725# SysV /etc/install, /usr/sbin/install
3726# SunOS /usr/etc/install
3727# IRIX /sbin/install
3728# AIX /bin/install
3729# AmigaOS /C/install, which installs bootblocks on floppy discs
3730# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3731# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3732# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3733# OS/2's system install, which has a completely different semantic
3734# ./install, which can be erroneously created by make from ./install.sh.
ec6a6fbe
AK
3735# Reject install programs that cannot install multiple files.
3736{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3737$as_echo_n "checking for a BSD-compatible install... " >&6; }
d0191583
JM
3738if test -z "$INSTALL"; then
3739if test "${ac_cv_path_install+set}" = set; then
ec6a6fbe 3740 $as_echo_n "(cached) " >&6
ad6254c5 3741else
d0191583
JM
3742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3743for as_dir in $PATH
3744do
3745 IFS=$as_save_IFS
3746 test -z "$as_dir" && as_dir=.
3747 # Account for people who put trailing slashes in PATH elements.
3748case $as_dir/ in
3749 ./ | .// | /cC/* | \
3750 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3751 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3752 /usr/ucb/* ) ;;
3753 *)
3754 # OSF1 and SCO ODT 3.0 have their own names for install.
3755 # Don't use installbsd from OSF since it installs stuff as root
3756 # by default.
3757 for ac_prog in ginstall scoinst install; do
3758 for ac_exec_ext in '' $ac_executable_extensions; do
3759 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3760 if test $ac_prog = install &&
3761 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3762 # AIX install. It has an incompatible calling convention.
3763 :
3764 elif test $ac_prog = install &&
3765 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3766 # program-specific install script used by HP pwplus--don't use.
3767 :
3768 else
ec6a6fbe
AK
3769 rm -rf conftest.one conftest.two conftest.dir
3770 echo one > conftest.one
3771 echo two > conftest.two
3772 mkdir conftest.dir
3773 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3774 test -s conftest.one && test -s conftest.two &&
3775 test -s conftest.dir/conftest.one &&
3776 test -s conftest.dir/conftest.two
3777 then
3778 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3779 break 3
3780 fi
d0191583
JM
3781 fi
3782 fi
3783 done
3784 done
3785 ;;
3786esac
ec6a6fbe 3787
d0191583
JM
3788done
3789IFS=$as_save_IFS
80992638 3790
ec6a6fbe 3791rm -rf conftest.one conftest.two conftest.dir
d0191583
JM
3792
3793fi
3794 if test "${ac_cv_path_install+set}" = set; then
3795 INSTALL=$ac_cv_path_install
7a197a62 3796 else
d0191583
JM
3797 # As a last resort, use the slow shell script. Don't cache a
3798 # value for INSTALL within a source directory, because that will
3799 # break other packages using the cache if that directory is
3800 # removed, or if the value is a relative name.
3801 INSTALL=$ac_install_sh
7a197a62 3802 fi
d0191583 3803fi
ec6a6fbe
AK
3804{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3805$as_echo "$INSTALL" >&6; }
ad6254c5 3806
d0191583
JM
3807# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3808# It thinks the first close brace ends the variable substitution.
3809test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
ad6254c5 3810
d0191583 3811test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
80992638 3812
d0191583
JM
3813test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3814
ec6a6fbe
AK
3815{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
3816$as_echo_n "checking whether ln -s works... " >&6; }
d0191583
JM
3817LN_S=$as_ln_s
3818if test "$LN_S" = "ln -s"; then
ec6a6fbe
AK
3819 { $as_echo "$as_me:$LINENO: result: yes" >&5
3820$as_echo "yes" >&6; }
d0191583 3821else
ec6a6fbe
AK
3822 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3823$as_echo "no, using $LN_S" >&6; }
795ca3e5 3824fi
d0191583 3825
ec6a6fbe
AK
3826{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3827$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3828set x ${MAKE-make}
3829ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
d0191583 3830if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 3831 $as_echo_n "(cached) " >&6
7a197a62 3832else
d0191583
JM
3833 cat >conftest.make <<\_ACEOF
3834SHELL = /bin/sh
3835all:
3836 @echo '@@@%%%=$(MAKE)=@@@%%%'
3837_ACEOF
3838# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3839case `${MAKE-make} -f conftest.make 2>/dev/null` in
3840 *@@@%%%=?*=@@@%%%*)
3841 eval ac_cv_prog_make_${ac_make}_set=yes;;
3842 *)
3843 eval ac_cv_prog_make_${ac_make}_set=no;;
3844esac
3845rm -f conftest.make
ad6254c5 3846fi
d0191583 3847if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
ec6a6fbe
AK
3848 { $as_echo "$as_me:$LINENO: result: yes" >&5
3849$as_echo "yes" >&6; }
d0191583
JM
3850 SET_MAKE=
3851else
ec6a6fbe
AK
3852 { $as_echo "$as_me:$LINENO: result: no" >&5
3853$as_echo "no" >&6; }
d0191583 3854 SET_MAKE="MAKE=${MAKE-make}"
795ca3e5 3855fi
8106cdd5 3856
ec6a6fbe
AK
3857{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
3858$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
5556819a
AK
3859if test -z "$MKDIR_P"; then
3860 if test "${ac_cv_path_mkdir+set}" = set; then
ec6a6fbe 3861 $as_echo_n "(cached) " >&6
5556819a
AK
3862else
3863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3864for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3865do
3866 IFS=$as_save_IFS
3867 test -z "$as_dir" && as_dir=.
3868 for ac_prog in mkdir gmkdir; do
3869 for ac_exec_ext in '' $ac_executable_extensions; do
3870 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3871 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3872 'mkdir (GNU coreutils) '* | \
3873 'mkdir (coreutils) '* | \
3874 'mkdir (fileutils) '4.1*)
3875 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3876 break 3;;
3877 esac
3878 done
3879 done
3880done
3881IFS=$as_save_IFS
3882
3883fi
3884
3885 if test "${ac_cv_path_mkdir+set}" = set; then
3886 MKDIR_P="$ac_cv_path_mkdir -p"
3887 else
3888 # As a last resort, use the slow shell script. Don't cache a
3889 # value for MKDIR_P within a source directory, because that will
3890 # break other packages using the cache if that directory is
3891 # removed, or if the value is a relative name.
3892 test -d ./--version && rmdir ./--version
3893 MKDIR_P="$ac_install_sh -d"
3894 fi
3895fi
ec6a6fbe
AK
3896{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
3897$as_echo "$MKDIR_P" >&6; }
5556819a 3898
d0191583
JM
3899if test -n "$ac_tool_prefix"; then
3900 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3901set dummy ${ac_tool_prefix}ranlib; ac_word=$2
ec6a6fbe
AK
3902{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3903$as_echo_n "checking for $ac_word... " >&6; }
d0191583 3904if test "${ac_cv_prog_RANLIB+set}" = set; then
ec6a6fbe 3905 $as_echo_n "(cached) " >&6
d0191583
JM
3906else
3907 if test -n "$RANLIB"; then
3908 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3909else
3910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3911for as_dir in $PATH
3912do
3913 IFS=$as_save_IFS
3914 test -z "$as_dir" && as_dir=.
3915 for ac_exec_ext in '' $ac_executable_extensions; do
3916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3917 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
ec6a6fbe 3918 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
3919 break 2
3920 fi
3921done
3922done
3923IFS=$as_save_IFS
8106cdd5 3924
795ca3e5 3925fi
d0191583
JM
3926fi
3927RANLIB=$ac_cv_prog_RANLIB
3928if test -n "$RANLIB"; then
ec6a6fbe
AK
3929 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
3930$as_echo "$RANLIB" >&6; }
d0191583 3931else
ec6a6fbe
AK
3932 { $as_echo "$as_me:$LINENO: result: no" >&5
3933$as_echo "no" >&6; }
d0191583
JM
3934fi
3935
8106cdd5 3936
ad6254c5 3937fi
d0191583
JM
3938if test -z "$ac_cv_prog_RANLIB"; then
3939 ac_ct_RANLIB=$RANLIB
3940 # Extract the first word of "ranlib", so it can be a program name with args.
3941set dummy ranlib; ac_word=$2
ec6a6fbe
AK
3942{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3943$as_echo_n "checking for $ac_word... " >&6; }
d0191583 3944if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
ec6a6fbe 3945 $as_echo_n "(cached) " >&6
ad6254c5 3946else
d0191583
JM
3947 if test -n "$ac_ct_RANLIB"; then
3948 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3949else
3950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3951for as_dir in $PATH
8106cdd5 3952do
d0191583
JM
3953 IFS=$as_save_IFS
3954 test -z "$as_dir" && as_dir=.
3955 for ac_exec_ext in '' $ac_executable_extensions; do
3956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3957 ac_cv_prog_ac_ct_RANLIB="ranlib"
ec6a6fbe 3958 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
3959 break 2
3960 fi
3961done
3962done
3963IFS=$as_save_IFS
3964
3965fi
3966fi
3967ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3968if test -n "$ac_ct_RANLIB"; then
ec6a6fbe
AK
3969 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3970$as_echo "$ac_ct_RANLIB" >&6; }
ad6254c5 3971else
ec6a6fbe
AK
3972 { $as_echo "$as_me:$LINENO: result: no" >&5
3973$as_echo "no" >&6; }
d0191583 3974fi
ad6254c5 3975
d0191583
JM
3976 if test "x$ac_ct_RANLIB" = x; then
3977 RANLIB=":"
3978 else
3979 case $cross_compiling:$ac_tool_warned in
3980yes:)
ec6a6fbe
AK
3981{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3982$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
d0191583
JM
3983ac_tool_warned=yes ;;
3984esac
3985 RANLIB=$ac_ct_RANLIB
3986 fi
3987else
3988 RANLIB="$ac_cv_prog_RANLIB"
ad6254c5 3989fi
7a197a62 3990
d0191583
JM
3991# Extract the first word of "cflow", so it can be a program name with args.
3992set dummy cflow; ac_word=$2
ec6a6fbe
AK
3993{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3994$as_echo_n "checking for $ac_word... " >&6; }
d0191583 3995if test "${ac_cv_path_CFLOW_CMD+set}" = set; then
ec6a6fbe 3996 $as_echo_n "(cached) " >&6
d0191583
JM
3997else
3998 case $CFLOW_CMD in
3999 [\\/]* | ?:[\\/]*)
4000 ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path.
4001 ;;
4002 *)
4003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4004for as_dir in $PATH
4005do
4006 IFS=$as_save_IFS
4007 test -z "$as_dir" && as_dir=.
4008 for ac_exec_ext in '' $ac_executable_extensions; do
4009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4010 ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 4011 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
4012 break 2
4013 fi
4014done
4015done
4016IFS=$as_save_IFS
ad6254c5 4017
d0191583 4018 ;;
7a197a62 4019esac
d0191583
JM
4020fi
4021CFLOW_CMD=$ac_cv_path_CFLOW_CMD
4022if test -n "$CFLOW_CMD"; then
ec6a6fbe
AK
4023 { $as_echo "$as_me:$LINENO: result: $CFLOW_CMD" >&5
4024$as_echo "$CFLOW_CMD" >&6; }
80992638 4025else
ec6a6fbe
AK
4026 { $as_echo "$as_me:$LINENO: result: no" >&5
4027$as_echo "no" >&6; }
795ca3e5 4028fi
7a197a62 4029
ad6254c5 4030
d0191583
JM
4031# Extract the first word of "cscope", so it can be a program name with args.
4032set dummy cscope; ac_word=$2
ec6a6fbe
AK
4033{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4034$as_echo_n "checking for $ac_word... " >&6; }
d0191583 4035if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then
ec6a6fbe 4036 $as_echo_n "(cached) " >&6
d0191583
JM
4037else
4038 case $CSCOPE_CMD in
4039 [\\/]* | ?:[\\/]*)
4040 ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path.
4041 ;;
4042 *)
4043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4044for as_dir in $PATH
4045do
4046 IFS=$as_save_IFS
4047 test -z "$as_dir" && as_dir=.
4048 for ac_exec_ext in '' $ac_executable_extensions; do
4049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4050 ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 4051 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
4052 break 2
4053 fi
795ca3e5 4054done
d0191583
JM
4055done
4056IFS=$as_save_IFS
795ca3e5 4057
d0191583
JM
4058 ;;
4059esac
ad6254c5 4060fi
d0191583
JM
4061CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD
4062if test -n "$CSCOPE_CMD"; then
ec6a6fbe
AK
4063 { $as_echo "$as_me:$LINENO: result: $CSCOPE_CMD" >&5
4064$as_echo "$CSCOPE_CMD" >&6; }
795ca3e5 4065else
ec6a6fbe
AK
4066 { $as_echo "$as_me:$LINENO: result: no" >&5
4067$as_echo "no" >&6; }
795ca3e5 4068fi
ad6254c5 4069
7a197a62 4070
ad6254c5 4071
d0191583
JM
4072################################################################################
4073
4074
4075
4076
4077
4078ac_header_dirent=no
4079for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
ec6a6fbe
AK
4080 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4081{ $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4082$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
d0191583 4083if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 4084 $as_echo_n "(cached) " >&6
d0191583 4085else
ad6254c5 4086 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4087/* confdefs.h. */
4088_ACEOF
4089cat confdefs.h >>conftest.$ac_ext
4090cat >>conftest.$ac_ext <<_ACEOF
4091/* end confdefs.h. */
d0191583
JM
4092#include <sys/types.h>
4093#include <$ac_hdr>
4094
4095int
4096main ()
4097{
4098if ((DIR *) 0)
4099return 0;
4100 ;
4101 return 0;
4102}
ad6254c5 4103_ACEOF
d0191583
JM
4104rm -f conftest.$ac_objext
4105if { (ac_try="$ac_compile"
7a197a62
AK
4106case "(($ac_try" in
4107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4108 *) ac_try_echo=$ac_try;;
4109esac
ec6a6fbe
AK
4110eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4111$as_echo "$ac_try_echo") >&5
d0191583 4112 (eval "$ac_compile") 2>conftest.er1
ad6254c5
AK
4113 ac_status=$?
4114 grep -v '^ *+' conftest.er1 >conftest.err
4115 rm -f conftest.er1
4116 cat conftest.err >&5
ec6a6fbe 4117 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4118 (exit $ac_status); } && {
4119 test -z "$ac_c_werror_flag" ||
25fbec5b 4120 test ! -s conftest.err
d0191583
JM
4121 } && test -s conftest.$ac_objext; then
4122 eval "$as_ac_Header=yes"
ad6254c5 4123else
ec6a6fbe 4124 $as_echo "$as_me: failed program was:" >&5
ad6254c5 4125sed 's/^/| /' conftest.$ac_ext >&5
8106cdd5 4126
d0191583 4127 eval "$as_ac_Header=no"
795ca3e5 4128fi
7a197a62 4129
d0191583 4130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
795ca3e5 4131fi
ec6a6fbe
AK
4132ac_res=`eval 'as_val=${'$as_ac_Header'}
4133 $as_echo "$as_val"'`
4134 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4135$as_echo "$ac_res" >&6; }
4136as_val=`eval 'as_val=${'$as_ac_Header'}
4137 $as_echo "$as_val"'`
4138 if test "x$as_val" = x""yes; then
d0191583 4139 cat >>confdefs.h <<_ACEOF
ec6a6fbe 4140#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
d0191583 4141_ACEOF
795ca3e5 4142
d0191583
JM
4143ac_header_dirent=$ac_hdr; break
4144fi
ad6254c5 4145
d0191583
JM
4146done
4147# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4148if test $ac_header_dirent = dirent.h; then
ec6a6fbe
AK
4149 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
4150$as_echo_n "checking for library containing opendir... " >&6; }
d0191583 4151if test "${ac_cv_search_opendir+set}" = set; then
ec6a6fbe 4152 $as_echo_n "(cached) " >&6
ad6254c5 4153else
d0191583
JM
4154 ac_func_search_save_LIBS=$LIBS
4155cat >conftest.$ac_ext <<_ACEOF
4156/* confdefs.h. */
4157_ACEOF
4158cat confdefs.h >>conftest.$ac_ext
4159cat >>conftest.$ac_ext <<_ACEOF
4160/* end confdefs.h. */
ad6254c5 4161
d0191583
JM
4162/* Override any GCC internal prototype to avoid an error.
4163 Use char because int might match the return type of a GCC
4164 builtin and then its argument prototype would still apply. */
4165#ifdef __cplusplus
4166extern "C"
4167#endif
4168char opendir ();
4169int
4170main ()
4171{
4172return opendir ();
4173 ;
4174 return 0;
4175}
4176_ACEOF
4177for ac_lib in '' dir; do
4178 if test -z "$ac_lib"; then
4179 ac_res="none required"
4180 else
4181 ac_res=-l$ac_lib
4182 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4183 fi
4184 rm -f conftest.$ac_objext conftest$ac_exeext
4185if { (ac_try="$ac_link"
4186case "(($ac_try" in
4187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4188 *) ac_try_echo=$ac_try;;
4189esac
ec6a6fbe
AK
4190eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4191$as_echo "$ac_try_echo") >&5
d0191583
JM
4192 (eval "$ac_link") 2>conftest.er1
4193 ac_status=$?
4194 grep -v '^ *+' conftest.er1 >conftest.err
4195 rm -f conftest.er1
4196 cat conftest.err >&5
ec6a6fbe 4197 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4198 (exit $ac_status); } && {
4199 test -z "$ac_c_werror_flag" ||
4200 test ! -s conftest.err
ec6a6fbe
AK
4201 } && test -s conftest$ac_exeext && {
4202 test "$cross_compiling" = yes ||
4203 $as_test_x conftest$ac_exeext
4204 }; then
d0191583
JM
4205 ac_cv_search_opendir=$ac_res
4206else
ec6a6fbe 4207 $as_echo "$as_me: failed program was:" >&5
d0191583 4208sed 's/^/| /' conftest.$ac_ext >&5
ad6254c5 4209
ad6254c5 4210
795ca3e5 4211fi
ad6254c5 4212
ec6a6fbe 4213rm -rf conftest.dSYM
d0191583
JM
4214rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4215 conftest$ac_exeext
4216 if test "${ac_cv_search_opendir+set}" = set; then
4217 break
7a197a62 4218fi
d0191583
JM
4219done
4220if test "${ac_cv_search_opendir+set}" = set; then
4221 :
7a197a62 4222else
d0191583 4223 ac_cv_search_opendir=no
7a197a62 4224fi
d0191583
JM
4225rm conftest.$ac_ext
4226LIBS=$ac_func_search_save_LIBS
7a197a62 4227fi
ec6a6fbe
AK
4228{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4229$as_echo "$ac_cv_search_opendir" >&6; }
d0191583
JM
4230ac_res=$ac_cv_search_opendir
4231if test "$ac_res" != no; then
4232 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7a197a62 4233
d0191583 4234fi
7a197a62 4235
7a197a62 4236else
ec6a6fbe
AK
4237 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
4238$as_echo_n "checking for library containing opendir... " >&6; }
d0191583 4239if test "${ac_cv_search_opendir+set}" = set; then
ec6a6fbe 4240 $as_echo_n "(cached) " >&6
7a197a62 4241else
d0191583
JM
4242 ac_func_search_save_LIBS=$LIBS
4243cat >conftest.$ac_ext <<_ACEOF
4244/* confdefs.h. */
4245_ACEOF
4246cat confdefs.h >>conftest.$ac_ext
4247cat >>conftest.$ac_ext <<_ACEOF
4248/* end confdefs.h. */
7a197a62 4249
d0191583
JM
4250/* Override any GCC internal prototype to avoid an error.
4251 Use char because int might match the return type of a GCC
4252 builtin and then its argument prototype would still apply. */
4253#ifdef __cplusplus
4254extern "C"
4255#endif
4256char opendir ();
4257int
4258main ()
4259{
4260return opendir ();
4261 ;
4262 return 0;
4263}
4264_ACEOF
4265for ac_lib in '' x; do
4266 if test -z "$ac_lib"; then
4267 ac_res="none required"
4268 else
4269 ac_res=-l$ac_lib
4270 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4271 fi
4272 rm -f conftest.$ac_objext conftest$ac_exeext
4273if { (ac_try="$ac_link"
4274case "(($ac_try" in
4275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4276 *) ac_try_echo=$ac_try;;
4277esac
ec6a6fbe
AK
4278eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4279$as_echo "$ac_try_echo") >&5
d0191583
JM
4280 (eval "$ac_link") 2>conftest.er1
4281 ac_status=$?
4282 grep -v '^ *+' conftest.er1 >conftest.err
4283 rm -f conftest.er1
4284 cat conftest.err >&5
ec6a6fbe 4285 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4286 (exit $ac_status); } && {
4287 test -z "$ac_c_werror_flag" ||
4288 test ! -s conftest.err
ec6a6fbe
AK
4289 } && test -s conftest$ac_exeext && {
4290 test "$cross_compiling" = yes ||
4291 $as_test_x conftest$ac_exeext
4292 }; then
d0191583
JM
4293 ac_cv_search_opendir=$ac_res
4294else
ec6a6fbe 4295 $as_echo "$as_me: failed program was:" >&5
d0191583 4296sed 's/^/| /' conftest.$ac_ext >&5
7a197a62
AK
4297
4298
4299fi
4300
ec6a6fbe 4301rm -rf conftest.dSYM
d0191583
JM
4302rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4303 conftest$ac_exeext
4304 if test "${ac_cv_search_opendir+set}" = set; then
4305 break
7a197a62 4306fi
d0191583
JM
4307done
4308if test "${ac_cv_search_opendir+set}" = set; then
4309 :
7a197a62 4310else
d0191583 4311 ac_cv_search_opendir=no
7a197a62 4312fi
d0191583
JM
4313rm conftest.$ac_ext
4314LIBS=$ac_func_search_save_LIBS
4315fi
ec6a6fbe
AK
4316{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4317$as_echo "$ac_cv_search_opendir" >&6; }
d0191583
JM
4318ac_res=$ac_cv_search_opendir
4319if test "$ac_res" != no; then
4320 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7a197a62 4321
7a197a62 4322fi
7a197a62 4323
d0191583 4324fi
7a197a62 4325
ec6a6fbe
AK
4326{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4327$as_echo_n "checking for ANSI C header files... " >&6; }
7a197a62 4328if test "${ac_cv_header_stdc+set}" = set; then
ec6a6fbe 4329 $as_echo_n "(cached) " >&6
7a197a62
AK
4330else
4331 cat >conftest.$ac_ext <<_ACEOF
4332/* confdefs.h. */
4333_ACEOF
4334cat confdefs.h >>conftest.$ac_ext
4335cat >>conftest.$ac_ext <<_ACEOF
4336/* end confdefs.h. */
4337#include <stdlib.h>
4338#include <stdarg.h>
4339#include <string.h>
4340#include <float.h>
4341
4342int
4343main ()
4344{
4345
4346 ;
4347 return 0;
4348}
4349_ACEOF
4350rm -f conftest.$ac_objext
4351if { (ac_try="$ac_compile"
4352case "(($ac_try" in
4353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4354 *) ac_try_echo=$ac_try;;
4355esac
ec6a6fbe
AK
4356eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4357$as_echo "$ac_try_echo") >&5
7a197a62
AK
4358 (eval "$ac_compile") 2>conftest.er1
4359 ac_status=$?
4360 grep -v '^ *+' conftest.er1 >conftest.err
4361 rm -f conftest.er1
4362 cat conftest.err >&5
ec6a6fbe 4363 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4364 (exit $ac_status); } && {
4365 test -z "$ac_c_werror_flag" ||
4366 test ! -s conftest.err
4367 } && test -s conftest.$ac_objext; then
7a197a62
AK
4368 ac_cv_header_stdc=yes
4369else
ec6a6fbe 4370 $as_echo "$as_me: failed program was:" >&5
7a197a62
AK
4371sed 's/^/| /' conftest.$ac_ext >&5
4372
4373 ac_cv_header_stdc=no
4374fi
4375
4376rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4377
4378if test $ac_cv_header_stdc = yes; then
4379 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
ad6254c5 4380 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4381/* confdefs.h. */
4382_ACEOF
4383cat confdefs.h >>conftest.$ac_ext
4384cat >>conftest.$ac_ext <<_ACEOF
4385/* end confdefs.h. */
4386#include <string.h>
8106cdd5 4387
ad6254c5
AK
4388_ACEOF
4389if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4390 $EGREP "memchr" >/dev/null 2>&1; then
4391 :
4392else
4393 ac_cv_header_stdc=no
80992638 4394fi
ad6254c5 4395rm -f conftest*
795ca3e5
AK
4396
4397fi
4398
ad6254c5
AK
4399if test $ac_cv_header_stdc = yes; then
4400 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4401 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4402/* confdefs.h. */
4403_ACEOF
4404cat confdefs.h >>conftest.$ac_ext
4405cat >>conftest.$ac_ext <<_ACEOF
4406/* end confdefs.h. */
80992638 4407#include <stdlib.h>
ad6254c5
AK
4408
4409_ACEOF
80992638 4410if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ad6254c5
AK
4411 $EGREP "free" >/dev/null 2>&1; then
4412 :
795ca3e5 4413else
ad6254c5 4414 ac_cv_header_stdc=no
795ca3e5 4415fi
80992638 4416rm -f conftest*
8106cdd5 4417
795ca3e5
AK
4418fi
4419
ad6254c5
AK
4420if test $ac_cv_header_stdc = yes; then
4421 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4422 if test "$cross_compiling" = yes; then
4423 :
795ca3e5 4424else
ad6254c5 4425 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4426/* confdefs.h. */
4427_ACEOF
4428cat confdefs.h >>conftest.$ac_ext
4429cat >>conftest.$ac_ext <<_ACEOF
4430/* end confdefs.h. */
4431#include <ctype.h>
7a197a62 4432#include <stdlib.h>
ad6254c5
AK
4433#if ((' ' & 0x0FF) == 0x020)
4434# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4435# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4436#else
4437# define ISLOWER(c) \
8a2fc586
AK
4438 (('a' <= (c) && (c) <= 'i') \
4439 || ('j' <= (c) && (c) <= 'r') \
4440 || ('s' <= (c) && (c) <= 'z'))
ad6254c5 4441# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
80992638 4442#endif
ad6254c5
AK
4443
4444#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4445int
4446main ()
4447{
4448 int i;
4449 for (i = 0; i < 256; i++)
4450 if (XOR (islower (i), ISLOWER (i))
8a2fc586 4451 || toupper (i) != TOUPPER (i))
7a197a62
AK
4452 return 2;
4453 return 0;
ad6254c5
AK
4454}
4455_ACEOF
4456rm -f conftest$ac_exeext
7a197a62
AK
4457if { (ac_try="$ac_link"
4458case "(($ac_try" in
4459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4460 *) ac_try_echo=$ac_try;;
4461esac
ec6a6fbe
AK
4462eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4463$as_echo "$ac_try_echo") >&5
7a197a62 4464 (eval "$ac_link") 2>&5
ad6254c5 4465 ac_status=$?
ec6a6fbe 4466 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 4467 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
4468 { (case "(($ac_try" in
4469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4470 *) ac_try_echo=$ac_try;;
4471esac
ec6a6fbe
AK
4472eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4473$as_echo "$ac_try_echo") >&5
7a197a62 4474 (eval "$ac_try") 2>&5
ad6254c5 4475 ac_status=$?
ec6a6fbe 4476 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
4477 (exit $ac_status); }; }; then
4478 :
795ca3e5 4479else
ec6a6fbe
AK
4480 $as_echo "$as_me: program exited with status $ac_status" >&5
4481$as_echo "$as_me: failed program was:" >&5
ad6254c5 4482sed 's/^/| /' conftest.$ac_ext >&5
8106cdd5 4483
ad6254c5
AK
4484( exit $ac_status )
4485ac_cv_header_stdc=no
80992638 4486fi
ec6a6fbe 4487rm -rf conftest.dSYM
7a197a62 4488rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 4489fi
7a197a62
AK
4490
4491
ad6254c5
AK
4492fi
4493fi
ec6a6fbe
AK
4494{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4495$as_echo "$ac_cv_header_stdc" >&6; }
ad6254c5
AK
4496if test $ac_cv_header_stdc = yes; then
4497
4498cat >>confdefs.h <<\_ACEOF
4499#define STDC_HEADERS 1
4500_ACEOF
795ca3e5
AK
4501
4502fi
4503
ec6a6fbe
AK
4504{ $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
4505$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
ad6254c5 4506if test "${ac_cv_header_sys_wait_h+set}" = set; then
ec6a6fbe 4507 $as_echo_n "(cached) " >&6
8106cdd5 4508else
ad6254c5 4509 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4510/* confdefs.h. */
4511_ACEOF
4512cat confdefs.h >>conftest.$ac_ext
4513cat >>conftest.$ac_ext <<_ACEOF
4514/* end confdefs.h. */
80992638 4515#include <sys/types.h>
ad6254c5
AK
4516#include <sys/wait.h>
4517#ifndef WEXITSTATUS
7a197a62 4518# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
ad6254c5
AK
4519#endif
4520#ifndef WIFEXITED
4521# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4522#endif
4523
4524int
4525main ()
4526{
4527 int s;
4528 wait (&s);
4529 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4530 ;
4531 return 0;
4532}
4533_ACEOF
4534rm -f conftest.$ac_objext
7a197a62
AK
4535if { (ac_try="$ac_compile"
4536case "(($ac_try" in
4537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4538 *) ac_try_echo=$ac_try;;
4539esac
ec6a6fbe
AK
4540eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4541$as_echo "$ac_try_echo") >&5
7a197a62 4542 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4543 ac_status=$?
8a2fc586
AK
4544 grep -v '^ *+' conftest.er1 >conftest.err
4545 rm -f conftest.er1
4546 cat conftest.err >&5
ec6a6fbe 4547 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4548 (exit $ac_status); } && {
4549 test -z "$ac_c_werror_flag" ||
4550 test ! -s conftest.err
4551 } && test -s conftest.$ac_objext; then
ad6254c5
AK
4552 ac_cv_header_sys_wait_h=yes
4553else
ec6a6fbe 4554 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
4555sed 's/^/| /' conftest.$ac_ext >&5
4556
7a197a62 4557 ac_cv_header_sys_wait_h=no
8106cdd5 4558fi
7a197a62
AK
4559
4560rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
795ca3e5 4561fi
ec6a6fbe
AK
4562{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
4563$as_echo "$ac_cv_header_sys_wait_h" >&6; }
ad6254c5 4564if test $ac_cv_header_sys_wait_h = yes; then
8106cdd5 4565
ad6254c5
AK
4566cat >>confdefs.h <<\_ACEOF
4567#define HAVE_SYS_WAIT_H 1
4568_ACEOF
795ca3e5
AK
4569
4570fi
4571
ec6a6fbe
AK
4572{ $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4573$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
ad6254c5 4574if test "${ac_cv_header_time+set}" = set; then
ec6a6fbe 4575 $as_echo_n "(cached) " >&6
795ca3e5 4576else
ad6254c5 4577 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4578/* confdefs.h. */
4579_ACEOF
4580cat confdefs.h >>conftest.$ac_ext
4581cat >>conftest.$ac_ext <<_ACEOF
4582/* end confdefs.h. */
795ca3e5
AK
4583#include <sys/types.h>
4584#include <sys/time.h>
4585#include <time.h>
ad6254c5
AK
4586
4587int
4588main ()
4589{
4590if ((struct tm *) 0)
4591return 0;
4592 ;
4593 return 0;
4594}
4595_ACEOF
4596rm -f conftest.$ac_objext
7a197a62
AK
4597if { (ac_try="$ac_compile"
4598case "(($ac_try" in
4599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4600 *) ac_try_echo=$ac_try;;
4601esac
ec6a6fbe
AK
4602eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4603$as_echo "$ac_try_echo") >&5
7a197a62 4604 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4605 ac_status=$?
8a2fc586
AK
4606 grep -v '^ *+' conftest.er1 >conftest.err
4607 rm -f conftest.er1
4608 cat conftest.err >&5
ec6a6fbe 4609 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4610 (exit $ac_status); } && {
4611 test -z "$ac_c_werror_flag" ||
4612 test ! -s conftest.err
4613 } && test -s conftest.$ac_objext; then
795ca3e5
AK
4614 ac_cv_header_time=yes
4615else
ec6a6fbe 4616 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
4617sed 's/^/| /' conftest.$ac_ext >&5
4618
7a197a62 4619 ac_cv_header_time=no
795ca3e5 4620fi
7a197a62
AK
4621
4622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
795ca3e5 4623fi
ec6a6fbe
AK
4624{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4625$as_echo "$ac_cv_header_time" >&6; }
80992638 4626if test $ac_cv_header_time = yes; then
ad6254c5
AK
4627
4628cat >>confdefs.h <<\_ACEOF
795ca3e5 4629#define TIME_WITH_SYS_TIME 1
ad6254c5 4630_ACEOF
b896caa1 4631
8106cdd5 4632fi
b896caa1 4633
b896caa1 4634
d0191583
JM
4635# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4646 inttypes.h stdint.h unistd.h
4647do
ec6a6fbe
AK
4648as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4649{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4650$as_echo_n "checking for $ac_header... " >&6; }
d0191583 4651if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 4652 $as_echo_n "(cached) " >&6
d0191583
JM
4653else
4654 cat >conftest.$ac_ext <<_ACEOF
4655/* confdefs.h. */
4656_ACEOF
4657cat confdefs.h >>conftest.$ac_ext
4658cat >>conftest.$ac_ext <<_ACEOF
4659/* end confdefs.h. */
4660$ac_includes_default
4661
4662#include <$ac_header>
4663_ACEOF
4664rm -f conftest.$ac_objext
4665if { (ac_try="$ac_compile"
4666case "(($ac_try" in
4667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4668 *) ac_try_echo=$ac_try;;
4669esac
ec6a6fbe
AK
4670eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4671$as_echo "$ac_try_echo") >&5
d0191583
JM
4672 (eval "$ac_compile") 2>conftest.er1
4673 ac_status=$?
4674 grep -v '^ *+' conftest.er1 >conftest.err
4675 rm -f conftest.er1
4676 cat conftest.err >&5
ec6a6fbe 4677 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4678 (exit $ac_status); } && {
4679 test -z "$ac_c_werror_flag" ||
4680 test ! -s conftest.err
4681 } && test -s conftest.$ac_objext; then
4682 eval "$as_ac_Header=yes"
4683else
ec6a6fbe 4684 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
4685sed 's/^/| /' conftest.$ac_ext >&5
4686
4687 eval "$as_ac_Header=no"
4688fi
4689
4690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4691fi
ec6a6fbe
AK
4692ac_res=`eval 'as_val=${'$as_ac_Header'}
4693 $as_echo "$as_val"'`
4694 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4695$as_echo "$ac_res" >&6; }
4696as_val=`eval 'as_val=${'$as_ac_Header'}
4697 $as_echo "$as_val"'`
4698 if test "x$as_val" = x""yes; then
d0191583 4699 cat >>confdefs.h <<_ACEOF
ec6a6fbe 4700#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
d0191583
JM
4701_ACEOF
4702
4703fi
4704
4705done
4706
b896caa1 4707
b896caa1
AK
4708
4709
795ca3e5 4710
8106cdd5 4711
80992638 4712
795ca3e5 4713
a38df97f 4714
80992638 4715
d0191583
JM
4716
4717
4718
4719
4720
4721for ac_header in locale.h stddef.h syslog.h sys/file.h sys/time.h assert.h \
4722 libgen.h signal.h sys/mman.h sys/resource.h sys/utsname.h sys/wait.h time.h
ad6254c5 4723do
ec6a6fbe 4724as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
d0191583 4725if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
4726 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4727$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 4728if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 4729 $as_echo_n "(cached) " >&6
d0191583 4730fi
ec6a6fbe
AK
4731ac_res=`eval 'as_val=${'$as_ac_Header'}
4732 $as_echo "$as_val"'`
4733 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4734$as_echo "$ac_res" >&6; }
ad6254c5 4735else
d0191583 4736 # Is the header compilable?
ec6a6fbe
AK
4737{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4738$as_echo_n "checking $ac_header usability... " >&6; }
d0191583 4739cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4740/* confdefs.h. */
4741_ACEOF
4742cat confdefs.h >>conftest.$ac_ext
4743cat >>conftest.$ac_ext <<_ACEOF
4744/* end confdefs.h. */
4745$ac_includes_default
ad6254c5
AK
4746#include <$ac_header>
4747_ACEOF
4748rm -f conftest.$ac_objext
7a197a62
AK
4749if { (ac_try="$ac_compile"
4750case "(($ac_try" in
4751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4752 *) ac_try_echo=$ac_try;;
4753esac
ec6a6fbe
AK
4754eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4755$as_echo "$ac_try_echo") >&5
7a197a62 4756 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4757 ac_status=$?
8a2fc586
AK
4758 grep -v '^ *+' conftest.er1 >conftest.err
4759 rm -f conftest.er1
4760 cat conftest.err >&5
ec6a6fbe 4761 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4762 (exit $ac_status); } && {
4763 test -z "$ac_c_werror_flag" ||
4764 test ! -s conftest.err
4765 } && test -s conftest.$ac_objext; then
d0191583 4766 ac_header_compiler=yes
ad6254c5 4767else
ec6a6fbe 4768 $as_echo "$as_me: failed program was:" >&5
ad6254c5 4769sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 4770
d0191583 4771 ac_header_compiler=no
ad6254c5 4772fi
7a197a62
AK
4773
4774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
4775{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4776$as_echo "$ac_header_compiler" >&6; }
d0191583
JM
4777
4778# Is the header present?
ec6a6fbe
AK
4779{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4780$as_echo_n "checking $ac_header presence... " >&6; }
d0191583
JM
4781cat >conftest.$ac_ext <<_ACEOF
4782/* confdefs.h. */
4783_ACEOF
4784cat confdefs.h >>conftest.$ac_ext
4785cat >>conftest.$ac_ext <<_ACEOF
4786/* end confdefs.h. */
4787#include <$ac_header>
4788_ACEOF
4789if { (ac_try="$ac_cpp conftest.$ac_ext"
4790case "(($ac_try" in
4791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4792 *) ac_try_echo=$ac_try;;
4793esac
ec6a6fbe
AK
4794eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4795$as_echo "$ac_try_echo") >&5
d0191583
JM
4796 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4797 ac_status=$?
4798 grep -v '^ *+' conftest.er1 >conftest.err
4799 rm -f conftest.er1
4800 cat conftest.err >&5
ec6a6fbe 4801 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4802 (exit $ac_status); } >/dev/null && {
4803 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4804 test ! -s conftest.err
4805 }; then
4806 ac_header_preproc=yes
4807else
ec6a6fbe 4808 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
4809sed 's/^/| /' conftest.$ac_ext >&5
4810
4811 ac_header_preproc=no
4812fi
4813
4814rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
4815{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4816$as_echo "$ac_header_preproc" >&6; }
d0191583
JM
4817
4818# So? What about this header?
4819case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4820 yes:no: )
ec6a6fbe
AK
4821 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4822$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4823 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4824$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
d0191583
JM
4825 ac_header_preproc=yes
4826 ;;
4827 no:yes:* )
ec6a6fbe
AK
4828 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4829$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4830 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4831$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4832 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4833$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4834 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4835$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4836 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4837$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4838 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4839$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
d0191583
JM
4840
4841 ;;
4842esac
ec6a6fbe
AK
4843{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4844$as_echo_n "checking for $ac_header... " >&6; }
d0191583 4845if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 4846 $as_echo_n "(cached) " >&6
d0191583
JM
4847else
4848 eval "$as_ac_Header=\$ac_header_preproc"
a38df97f 4849fi
ec6a6fbe
AK
4850ac_res=`eval 'as_val=${'$as_ac_Header'}
4851 $as_echo "$as_val"'`
4852 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4853$as_echo "$ac_res" >&6; }
d0191583
JM
4854
4855fi
ec6a6fbe
AK
4856as_val=`eval 'as_val=${'$as_ac_Header'}
4857 $as_echo "$as_val"'`
4858 if test "x$as_val" = x""yes; then
ad6254c5 4859 cat >>confdefs.h <<_ACEOF
ec6a6fbe 4860#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 4861_ACEOF
a38df97f 4862
d0191583 4863else
ec6a6fbe
AK
4864 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
4865$as_echo "$as_me: error: bailing out" >&2;}
d0191583 4866 { (exit 1); exit 1; }; }
80992638
AK
4867fi
4868
ad6254c5
AK
4869done
4870
7d1552c9 4871
d0191583
JM
4872case "$host_os" in
4873 linux*)
7d1552c9 4874
80992638 4875
5a52dca9 4876
d0191583 4877for ac_header in asm/byteorder.h linux/fs.h malloc.h
ad6254c5 4878do
ec6a6fbe 4879as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 4880if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
4881 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4882$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 4883if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 4884 $as_echo_n "(cached) " >&6
ad6254c5 4885fi
ec6a6fbe
AK
4886ac_res=`eval 'as_val=${'$as_ac_Header'}
4887 $as_echo "$as_val"'`
4888 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4889$as_echo "$ac_res" >&6; }
ad6254c5
AK
4890else
4891 # Is the header compilable?
ec6a6fbe
AK
4892{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4893$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 4894cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4895/* confdefs.h. */
4896_ACEOF
4897cat confdefs.h >>conftest.$ac_ext
4898cat >>conftest.$ac_ext <<_ACEOF
4899/* end confdefs.h. */
4900$ac_includes_default
4901#include <$ac_header>
4902_ACEOF
4903rm -f conftest.$ac_objext
7a197a62
AK
4904if { (ac_try="$ac_compile"
4905case "(($ac_try" in
4906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4907 *) ac_try_echo=$ac_try;;
4908esac
ec6a6fbe
AK
4909eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4910$as_echo "$ac_try_echo") >&5
7a197a62 4911 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4912 ac_status=$?
8a2fc586
AK
4913 grep -v '^ *+' conftest.er1 >conftest.err
4914 rm -f conftest.er1
4915 cat conftest.err >&5
ec6a6fbe 4916 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4917 (exit $ac_status); } && {
4918 test -z "$ac_c_werror_flag" ||
4919 test ! -s conftest.err
4920 } && test -s conftest.$ac_objext; then
fc54be10
AK
4921 ac_header_compiler=yes
4922else
ec6a6fbe 4923 $as_echo "$as_me: failed program was:" >&5
fc54be10
AK
4924sed 's/^/| /' conftest.$ac_ext >&5
4925
4926 ac_header_compiler=no
4927fi
4928
4929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
4930{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4931$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
4932
4933# Is the header present?
ec6a6fbe
AK
4934{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4935$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 4936cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4937/* confdefs.h. */
4938_ACEOF
4939cat confdefs.h >>conftest.$ac_ext
4940cat >>conftest.$ac_ext <<_ACEOF
4941/* end confdefs.h. */
4942#include <$ac_header>
4943_ACEOF
7a197a62
AK
4944if { (ac_try="$ac_cpp conftest.$ac_ext"
4945case "(($ac_try" in
4946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4947 *) ac_try_echo=$ac_try;;
4948esac
ec6a6fbe
AK
4949eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4950$as_echo "$ac_try_echo") >&5
7a197a62 4951 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
4952 ac_status=$?
4953 grep -v '^ *+' conftest.er1 >conftest.err
4954 rm -f conftest.er1
4955 cat conftest.err >&5
ec6a6fbe 4956 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4957 (exit $ac_status); } >/dev/null && {
4958 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4959 test ! -s conftest.err
4960 }; then
ad6254c5
AK
4961 ac_header_preproc=yes
4962else
ec6a6fbe 4963 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
4964sed 's/^/| /' conftest.$ac_ext >&5
4965
4966 ac_header_preproc=no
4967fi
7a197a62 4968
ad6254c5 4969rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
4970{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4971$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
4972
4973# So? What about this header?
8a2fc586
AK
4974case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4975 yes:no: )
ec6a6fbe
AK
4976 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4977$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4978 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4979$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 4980 ac_header_preproc=yes
ad6254c5 4981 ;;
8a2fc586 4982 no:yes:* )
ec6a6fbe
AK
4983 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4984$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4985 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4986$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4987 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4988$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4989 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4990$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4991 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4992$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4993 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4994$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 4995
ad6254c5
AK
4996 ;;
4997esac
ec6a6fbe
AK
4998{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4999$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 5000if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 5001 $as_echo_n "(cached) " >&6
ad6254c5 5002else
8a2fc586 5003 eval "$as_ac_Header=\$ac_header_preproc"
b896caa1 5004fi
ec6a6fbe
AK
5005ac_res=`eval 'as_val=${'$as_ac_Header'}
5006 $as_echo "$as_val"'`
5007 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5008$as_echo "$ac_res" >&6; }
ad6254c5
AK
5009
5010fi
ec6a6fbe
AK
5011as_val=`eval 'as_val=${'$as_ac_Header'}
5012 $as_echo "$as_val"'`
5013 if test "x$as_val" = x""yes; then
ad6254c5 5014 cat >>confdefs.h <<_ACEOF
ec6a6fbe 5015#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 5016_ACEOF
b896caa1 5017
d8ac0fbc 5018else
ec6a6fbe
AK
5019 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5020$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 5021 { (exit 1); exit 1; }; }
80992638
AK
5022fi
5023
ad6254c5 5024done
d0191583
JM
5025 ;;
5026 darwin*)
d8ac0fbc 5027
d8ac0fbc 5028
d0191583 5029for ac_header in machine/endian.h sys/disk.h
ad6254c5 5030do
ec6a6fbe 5031as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 5032if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
5033 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5034$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 5035if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 5036 $as_echo_n "(cached) " >&6
ad6254c5 5037fi
ec6a6fbe
AK
5038ac_res=`eval 'as_val=${'$as_ac_Header'}
5039 $as_echo "$as_val"'`
5040 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5041$as_echo "$ac_res" >&6; }
ad6254c5
AK
5042else
5043 # Is the header compilable?
ec6a6fbe
AK
5044{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5045$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 5046cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5047/* confdefs.h. */
5048_ACEOF
5049cat confdefs.h >>conftest.$ac_ext
5050cat >>conftest.$ac_ext <<_ACEOF
5051/* end confdefs.h. */
5052$ac_includes_default
5053#include <$ac_header>
5054_ACEOF
5055rm -f conftest.$ac_objext
7a197a62
AK
5056if { (ac_try="$ac_compile"
5057case "(($ac_try" in
5058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5059 *) ac_try_echo=$ac_try;;
5060esac
ec6a6fbe
AK
5061eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5062$as_echo "$ac_try_echo") >&5
7a197a62 5063 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5064 ac_status=$?
8a2fc586
AK
5065 grep -v '^ *+' conftest.er1 >conftest.err
5066 rm -f conftest.er1
5067 cat conftest.err >&5
ec6a6fbe 5068 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5069 (exit $ac_status); } && {
5070 test -z "$ac_c_werror_flag" ||
5071 test ! -s conftest.err
5072 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5073 ac_header_compiler=yes
5074else
ec6a6fbe 5075 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5076sed 's/^/| /' conftest.$ac_ext >&5
5077
7a197a62 5078 ac_header_compiler=no
ad6254c5 5079fi
7a197a62
AK
5080
5081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
5082{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5083$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
5084
5085# Is the header present?
ec6a6fbe
AK
5086{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5087$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 5088cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5089/* confdefs.h. */
5090_ACEOF
5091cat confdefs.h >>conftest.$ac_ext
5092cat >>conftest.$ac_ext <<_ACEOF
5093/* end confdefs.h. */
5094#include <$ac_header>
5095_ACEOF
7a197a62
AK
5096if { (ac_try="$ac_cpp conftest.$ac_ext"
5097case "(($ac_try" in
5098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5099 *) ac_try_echo=$ac_try;;
5100esac
ec6a6fbe
AK
5101eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5102$as_echo "$ac_try_echo") >&5
7a197a62 5103 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
5104 ac_status=$?
5105 grep -v '^ *+' conftest.er1 >conftest.err
5106 rm -f conftest.er1
5107 cat conftest.err >&5
ec6a6fbe 5108 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5109 (exit $ac_status); } >/dev/null && {
5110 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5111 test ! -s conftest.err
5112 }; then
ad6254c5
AK
5113 ac_header_preproc=yes
5114else
ec6a6fbe 5115 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5116sed 's/^/| /' conftest.$ac_ext >&5
5117
5118 ac_header_preproc=no
5119fi
7a197a62 5120
ad6254c5 5121rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
5122{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5123$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
5124
5125# So? What about this header?
8a2fc586
AK
5126case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5127 yes:no: )
ec6a6fbe
AK
5128 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5129$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5130 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5131$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 5132 ac_header_preproc=yes
ad6254c5 5133 ;;
8a2fc586 5134 no:yes:* )
ec6a6fbe
AK
5135 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5136$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5137 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5138$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5139 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5140$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5141 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5142$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5143 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5144$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5145 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5146$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 5147
ad6254c5
AK
5148 ;;
5149esac
ec6a6fbe
AK
5150{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5151$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 5152if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 5153 $as_echo_n "(cached) " >&6
ad6254c5 5154else
8a2fc586 5155 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 5156fi
ec6a6fbe
AK
5157ac_res=`eval 'as_val=${'$as_ac_Header'}
5158 $as_echo "$as_val"'`
5159 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5160$as_echo "$ac_res" >&6; }
ad6254c5
AK
5161
5162fi
ec6a6fbe
AK
5163as_val=`eval 'as_val=${'$as_ac_Header'}
5164 $as_echo "$as_val"'`
5165 if test "x$as_val" = x""yes; then
ad6254c5 5166 cat >>confdefs.h <<_ACEOF
ec6a6fbe 5167#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 5168_ACEOF
4922197a 5169
4922197a 5170else
ec6a6fbe
AK
5171 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5172$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 5173 { (exit 1); exit 1; }; }
80992638
AK
5174fi
5175
ad6254c5 5176done
d0191583
JM
5177 ;;
5178esac
4922197a 5179
4922197a 5180
4922197a 5181
ad6254c5
AK
5182
5183
d0191583
JM
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196for ac_header in ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h \
5197 stdarg.h stdio.h stdlib.h string.h sys/ioctl.h sys/param.h sys/stat.h \
5198 sys/types.h unistd.h
ad6254c5 5199do
ec6a6fbe 5200as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 5201if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
5202 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5203$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 5204if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 5205 $as_echo_n "(cached) " >&6
ad6254c5 5206fi
ec6a6fbe
AK
5207ac_res=`eval 'as_val=${'$as_ac_Header'}
5208 $as_echo "$as_val"'`
5209 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5210$as_echo "$ac_res" >&6; }
795ca3e5 5211else
ad6254c5 5212 # Is the header compilable?
ec6a6fbe
AK
5213{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5214$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 5215cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5216/* confdefs.h. */
5217_ACEOF
5218cat confdefs.h >>conftest.$ac_ext
5219cat >>conftest.$ac_ext <<_ACEOF
5220/* end confdefs.h. */
5221$ac_includes_default
5222#include <$ac_header>
5223_ACEOF
5224rm -f conftest.$ac_objext
7a197a62
AK
5225if { (ac_try="$ac_compile"
5226case "(($ac_try" in
5227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5228 *) ac_try_echo=$ac_try;;
5229esac
ec6a6fbe
AK
5230eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5231$as_echo "$ac_try_echo") >&5
7a197a62 5232 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5233 ac_status=$?
8a2fc586
AK
5234 grep -v '^ *+' conftest.er1 >conftest.err
5235 rm -f conftest.er1
5236 cat conftest.err >&5
ec6a6fbe 5237 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5238 (exit $ac_status); } && {
5239 test -z "$ac_c_werror_flag" ||
5240 test ! -s conftest.err
5241 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5242 ac_header_compiler=yes
5243else
ec6a6fbe 5244 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5245sed 's/^/| /' conftest.$ac_ext >&5
5246
7a197a62 5247 ac_header_compiler=no
ad6254c5 5248fi
7a197a62
AK
5249
5250rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
5251{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5252$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
5253
5254# Is the header present?
ec6a6fbe
AK
5255{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5256$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 5257cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5258/* confdefs.h. */
5259_ACEOF
5260cat confdefs.h >>conftest.$ac_ext
5261cat >>conftest.$ac_ext <<_ACEOF
5262/* end confdefs.h. */
5263#include <$ac_header>
5264_ACEOF
7a197a62
AK
5265if { (ac_try="$ac_cpp conftest.$ac_ext"
5266case "(($ac_try" in
5267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5268 *) ac_try_echo=$ac_try;;
5269esac
ec6a6fbe
AK
5270eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5271$as_echo "$ac_try_echo") >&5
7a197a62 5272 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
5273 ac_status=$?
5274 grep -v '^ *+' conftest.er1 >conftest.err
5275 rm -f conftest.er1
5276 cat conftest.err >&5
ec6a6fbe 5277 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5278 (exit $ac_status); } >/dev/null && {
5279 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5280 test ! -s conftest.err
5281 }; then
ad6254c5
AK
5282 ac_header_preproc=yes
5283else
ec6a6fbe 5284 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5285sed 's/^/| /' conftest.$ac_ext >&5
5286
5287 ac_header_preproc=no
5288fi
7a197a62 5289
ad6254c5 5290rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
5291{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5292$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
5293
5294# So? What about this header?
8a2fc586
AK
5295case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5296 yes:no: )
ec6a6fbe
AK
5297 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5298$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5299 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5300$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 5301 ac_header_preproc=yes
ad6254c5 5302 ;;
8a2fc586 5303 no:yes:* )
ec6a6fbe
AK
5304 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5305$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5306 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5307$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5308 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5309$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5310 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5311$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5312 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5313$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5314 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5315$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 5316
ad6254c5
AK
5317 ;;
5318esac
ec6a6fbe
AK
5319{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5320$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 5321if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 5322 $as_echo_n "(cached) " >&6
ad6254c5 5323else
8a2fc586 5324 eval "$as_ac_Header=\$ac_header_preproc"
80992638 5325fi
ec6a6fbe
AK
5326ac_res=`eval 'as_val=${'$as_ac_Header'}
5327 $as_echo "$as_val"'`
5328 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5329$as_echo "$ac_res" >&6; }
80992638 5330
ad6254c5 5331fi
ec6a6fbe
AK
5332as_val=`eval 'as_val=${'$as_ac_Header'}
5333 $as_echo "$as_val"'`
5334 if test "x$as_val" = x""yes; then
ad6254c5 5335 cat >>confdefs.h <<_ACEOF
ec6a6fbe 5336#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 5337_ACEOF
795ca3e5 5338
795ca3e5 5339else
ec6a6fbe
AK
5340 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5341$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 5342 { (exit 1); exit 1; }; }
80992638
AK
5343fi
5344
ad6254c5 5345done
ad6254c5 5346
795ca3e5 5347
d0191583
JM
5348
5349for ac_header in termios.h sys/statvfs.h
ad6254c5 5350do
ec6a6fbe 5351as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 5352if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
5353 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5354$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 5355if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 5356 $as_echo_n "(cached) " >&6
ad6254c5 5357fi
ec6a6fbe
AK
5358ac_res=`eval 'as_val=${'$as_ac_Header'}
5359 $as_echo "$as_val"'`
5360 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5361$as_echo "$ac_res" >&6; }
ad6254c5
AK
5362else
5363 # Is the header compilable?
ec6a6fbe
AK
5364{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5365$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 5366cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5367/* confdefs.h. */
5368_ACEOF
5369cat confdefs.h >>conftest.$ac_ext
5370cat >>conftest.$ac_ext <<_ACEOF
5371/* end confdefs.h. */
5372$ac_includes_default
5373#include <$ac_header>
5374_ACEOF
5375rm -f conftest.$ac_objext
7a197a62
AK
5376if { (ac_try="$ac_compile"
5377case "(($ac_try" in
5378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5379 *) ac_try_echo=$ac_try;;
5380esac
ec6a6fbe
AK
5381eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5382$as_echo "$ac_try_echo") >&5
7a197a62 5383 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5384 ac_status=$?
8a2fc586
AK
5385 grep -v '^ *+' conftest.er1 >conftest.err
5386 rm -f conftest.er1
5387 cat conftest.err >&5
ec6a6fbe 5388 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5389 (exit $ac_status); } && {
5390 test -z "$ac_c_werror_flag" ||
5391 test ! -s conftest.err
5392 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5393 ac_header_compiler=yes
5394else
ec6a6fbe 5395 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5396sed 's/^/| /' conftest.$ac_ext >&5
5397
7a197a62 5398 ac_header_compiler=no
ad6254c5 5399fi
7a197a62
AK
5400
5401rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
5402{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5403$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
5404
5405# Is the header present?
ec6a6fbe
AK
5406{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5407$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 5408cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5409/* confdefs.h. */
5410_ACEOF
5411cat confdefs.h >>conftest.$ac_ext
5412cat >>conftest.$ac_ext <<_ACEOF
5413/* end confdefs.h. */
5414#include <$ac_header>
5415_ACEOF
7a197a62
AK
5416if { (ac_try="$ac_cpp conftest.$ac_ext"
5417case "(($ac_try" in
5418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5419 *) ac_try_echo=$ac_try;;
5420esac
ec6a6fbe
AK
5421eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5422$as_echo "$ac_try_echo") >&5
7a197a62 5423 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
5424 ac_status=$?
5425 grep -v '^ *+' conftest.er1 >conftest.err
5426 rm -f conftest.er1
5427 cat conftest.err >&5
ec6a6fbe 5428 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5429 (exit $ac_status); } >/dev/null && {
5430 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5431 test ! -s conftest.err
5432 }; then
ad6254c5
AK
5433 ac_header_preproc=yes
5434else
ec6a6fbe 5435 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5436sed 's/^/| /' conftest.$ac_ext >&5
5437
5438 ac_header_preproc=no
5439fi
7a197a62 5440
ad6254c5 5441rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
5442{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5443$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
5444
5445# So? What about this header?
8a2fc586
AK
5446case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5447 yes:no: )
ec6a6fbe
AK
5448 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5449$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5450 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5451$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 5452 ac_header_preproc=yes
ad6254c5 5453 ;;
8a2fc586 5454 no:yes:* )
ec6a6fbe
AK
5455 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5456$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5457 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5458$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5459 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5460$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5461 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5462$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5463 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5464$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5465 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5466$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 5467
ad6254c5
AK
5468 ;;
5469esac
ec6a6fbe
AK
5470{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5471$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 5472if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 5473 $as_echo_n "(cached) " >&6
ad6254c5 5474else
8a2fc586 5475 eval "$as_ac_Header=\$ac_header_preproc"
b896caa1 5476fi
ec6a6fbe
AK
5477ac_res=`eval 'as_val=${'$as_ac_Header'}
5478 $as_echo "$as_val"'`
5479 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5480$as_echo "$ac_res" >&6; }
b896caa1 5481
ad6254c5 5482fi
ec6a6fbe
AK
5483as_val=`eval 'as_val=${'$as_ac_Header'}
5484 $as_echo "$as_val"'`
5485 if test "x$as_val" = x""yes; then
ad6254c5 5486 cat >>confdefs.h <<_ACEOF
ec6a6fbe 5487#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
5488_ACEOF
5489
80992638
AK
5490fi
5491
ad6254c5 5492done
d0191583 5493
d3c8211f 5494
80992638 5495################################################################################
ec6a6fbe
AK
5496{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5497$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
ad6254c5 5498if test "${ac_cv_c_const+set}" = set; then
ec6a6fbe 5499 $as_echo_n "(cached) " >&6
d3c8211f 5500else
ad6254c5 5501 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5502/* confdefs.h. */
5503_ACEOF
5504cat confdefs.h >>conftest.$ac_ext
5505cat >>conftest.$ac_ext <<_ACEOF
5506/* end confdefs.h. */
5507
5508int
5509main ()
5510{
5511/* FIXME: Include the comments suggested by Paul. */
5512#ifndef __cplusplus
5513 /* Ultrix mips cc rejects this. */
5514 typedef int charset[2];
25fbec5b 5515 const charset cs;
ad6254c5 5516 /* SunOS 4.1.1 cc rejects this. */
25fbec5b
AK
5517 char const *const *pcpcc;
5518 char **ppc;
ad6254c5
AK
5519 /* NEC SVR4.0.2 mips cc rejects this. */
5520 struct point {int x, y;};
5521 static struct point const zero = {0,0};
5522 /* AIX XL C 1.02.0.0 rejects this.
5523 It does not let you subtract one const X* pointer from another in
5524 an arm of an if-expression whose if-part is not a constant
5525 expression */
5526 const char *g = "string";
25fbec5b 5527 pcpcc = &g + (g ? g-g : 0);
ad6254c5 5528 /* HPUX 7.0 cc rejects these. */
25fbec5b
AK
5529 ++pcpcc;
5530 ppc = (char**) pcpcc;
5531 pcpcc = (char const *const *) ppc;
ad6254c5
AK
5532 { /* SCO 3.2v4 cc rejects this. */
5533 char *t;
5534 char const *s = 0 ? (char *) 0 : (char const *) 0;
5535
5536 *t++ = 0;
7a197a62 5537 if (s) return 0;
ad6254c5
AK
5538 }
5539 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5540 int x[] = {25, 17};
5541 const int *foo = &x[0];
5542 ++foo;
5543 }
5544 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5545 typedef const int *iptr;
5546 iptr p = 0;
5547 ++p;
5548 }
5549 { /* AIX XL C 1.02.0.0 rejects this saying
5550 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5551 struct s { int j; const int *ap[3]; };
5552 struct s *b; b->j = 5;
5553 }
5554 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5555 const int foo = 10;
7a197a62 5556 if (!foo) return 0;
ad6254c5 5557 }
25fbec5b 5558 return !cs[0] && !zero.x;
ad6254c5
AK
5559#endif
5560
5561 ;
5562 return 0;
5563}
5564_ACEOF
5565rm -f conftest.$ac_objext
7a197a62
AK
5566if { (ac_try="$ac_compile"
5567case "(($ac_try" in
5568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5569 *) ac_try_echo=$ac_try;;
5570esac
ec6a6fbe
AK
5571eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5572$as_echo "$ac_try_echo") >&5
7a197a62 5573 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5574 ac_status=$?
8a2fc586
AK
5575 grep -v '^ *+' conftest.er1 >conftest.err
5576 rm -f conftest.er1
5577 cat conftest.err >&5
ec6a6fbe 5578 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5579 (exit $ac_status); } && {
5580 test -z "$ac_c_werror_flag" ||
5581 test ! -s conftest.err
5582 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5583 ac_cv_c_const=yes
5584else
ec6a6fbe 5585 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5586sed 's/^/| /' conftest.$ac_ext >&5
5587
7a197a62 5588 ac_cv_c_const=no
ad6254c5 5589fi
7a197a62
AK
5590
5591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
80992638 5592fi
ec6a6fbe
AK
5593{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5594$as_echo "$ac_cv_c_const" >&6; }
ad6254c5 5595if test $ac_cv_c_const = no; then
80992638 5596
ad6254c5 5597cat >>confdefs.h <<\_ACEOF
ec6a6fbe 5598#define const /**/
ad6254c5 5599_ACEOF
80992638 5600
d3c8211f 5601fi
d3c8211f 5602
ec6a6fbe
AK
5603{ $as_echo "$as_me:$LINENO: checking for inline" >&5
5604$as_echo_n "checking for inline... " >&6; }
ad6254c5 5605if test "${ac_cv_c_inline+set}" = set; then
ec6a6fbe 5606 $as_echo_n "(cached) " >&6
8ef2b021 5607else
ad6254c5
AK
5608 ac_cv_c_inline=no
5609for ac_kw in inline __inline__ __inline; do
5610 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5611/* confdefs.h. */
5612_ACEOF
5613cat confdefs.h >>conftest.$ac_ext
5614cat >>conftest.$ac_ext <<_ACEOF
5615/* end confdefs.h. */
5616#ifndef __cplusplus
5617typedef int foo_t;
5618static $ac_kw foo_t static_foo () {return 0; }
5619$ac_kw foo_t foo () {return 0; }
5620#endif
80992638 5621
ad6254c5
AK
5622_ACEOF
5623rm -f conftest.$ac_objext
7a197a62
AK
5624if { (ac_try="$ac_compile"
5625case "(($ac_try" in
5626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5627 *) ac_try_echo=$ac_try;;
5628esac
ec6a6fbe
AK
5629eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5630$as_echo "$ac_try_echo") >&5
7a197a62 5631 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5632 ac_status=$?
8a2fc586
AK
5633 grep -v '^ *+' conftest.er1 >conftest.err
5634 rm -f conftest.er1
5635 cat conftest.err >&5
ec6a6fbe 5636 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5637 (exit $ac_status); } && {
5638 test -z "$ac_c_werror_flag" ||
5639 test ! -s conftest.err
5640 } && test -s conftest.$ac_objext; then
7a197a62 5641 ac_cv_c_inline=$ac_kw
ad6254c5 5642else
ec6a6fbe 5643 $as_echo "$as_me: failed program was:" >&5
ad6254c5 5644sed 's/^/| /' conftest.$ac_ext >&5
8ef2b021 5645
7a197a62 5646
8ce0cbda 5647fi
7a197a62
AK
5648
5649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5650 test "$ac_cv_c_inline" != no && break
ad6254c5 5651done
8ce0cbda 5652
8ce0cbda 5653fi
ec6a6fbe
AK
5654{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5655$as_echo "$ac_cv_c_inline" >&6; }
8a2fc586
AK
5656
5657
ad6254c5
AK
5658case $ac_cv_c_inline in
5659 inline | yes) ;;
8a2fc586
AK
5660 *)
5661 case $ac_cv_c_inline in
5662 no) ac_val=;;
5663 *) ac_val=$ac_cv_c_inline;;
5664 esac
5665 cat >>confdefs.h <<_ACEOF
5666#ifndef __cplusplus
5667#define inline $ac_val
5668#endif
c1c065a3 5669_ACEOF
d0191583
JM
5670 ;;
5671esac
5672
ec6a6fbe
AK
5673{ $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
5674$as_echo_n "checking for struct stat.st_rdev... " >&6; }
d0191583 5675if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
ec6a6fbe 5676 $as_echo_n "(cached) " >&6
d0191583
JM
5677else
5678 cat >conftest.$ac_ext <<_ACEOF
5679/* confdefs.h. */
5680_ACEOF
5681cat confdefs.h >>conftest.$ac_ext
5682cat >>conftest.$ac_ext <<_ACEOF
5683/* end confdefs.h. */
5684$ac_includes_default
5685int
5686main ()
5687{
5688static struct stat ac_aggr;
5689if (ac_aggr.st_rdev)
5690return 0;
5691 ;
5692 return 0;
5693}
5694_ACEOF
5695rm -f conftest.$ac_objext
5696if { (ac_try="$ac_compile"
5697case "(($ac_try" in
5698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5699 *) ac_try_echo=$ac_try;;
5700esac
ec6a6fbe
AK
5701eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5702$as_echo "$ac_try_echo") >&5
5703 (eval "$ac_compile") 2>conftest.er1
5704 ac_status=$?
5705 grep -v '^ *+' conftest.er1 >conftest.err
5706 rm -f conftest.er1
5707 cat conftest.err >&5
5708 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5709 (exit $ac_status); } && {
5710 test -z "$ac_c_werror_flag" ||
5711 test ! -s conftest.err
5712 } && test -s conftest.$ac_objext; then
5713 ac_cv_member_struct_stat_st_rdev=yes
5714else
5715 $as_echo "$as_me: failed program was:" >&5
5716sed 's/^/| /' conftest.$ac_ext >&5
5717
5718 cat >conftest.$ac_ext <<_ACEOF
5719/* confdefs.h. */
5720_ACEOF
5721cat confdefs.h >>conftest.$ac_ext
5722cat >>conftest.$ac_ext <<_ACEOF
5723/* end confdefs.h. */
5724$ac_includes_default
5725int
5726main ()
5727{
5728static struct stat ac_aggr;
5729if (sizeof ac_aggr.st_rdev)
5730return 0;
5731 ;
5732 return 0;
5733}
5734_ACEOF
5735rm -f conftest.$ac_objext
5736if { (ac_try="$ac_compile"
5737case "(($ac_try" in
5738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5739 *) ac_try_echo=$ac_try;;
5740esac
5741eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5742$as_echo "$ac_try_echo") >&5
5743 (eval "$ac_compile") 2>conftest.er1
5744 ac_status=$?
5745 grep -v '^ *+' conftest.er1 >conftest.err
5746 rm -f conftest.er1
5747 cat conftest.err >&5
5748 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5749 (exit $ac_status); } && {
5750 test -z "$ac_c_werror_flag" ||
5751 test ! -s conftest.err
5752 } && test -s conftest.$ac_objext; then
5753 ac_cv_member_struct_stat_st_rdev=yes
5754else
5755 $as_echo "$as_me: failed program was:" >&5
5756sed 's/^/| /' conftest.$ac_ext >&5
5757
5758 ac_cv_member_struct_stat_st_rdev=no
5759fi
5760
5761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5762fi
5763
5764rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5765fi
5766{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
5767$as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; }
5768if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then
5769
5770cat >>confdefs.h <<_ACEOF
5771#define HAVE_STRUCT_STAT_ST_RDEV 1
5772_ACEOF
5773
5774
5775fi
5776
5777{ $as_echo "$as_me:$LINENO: checking for off_t" >&5
5778$as_echo_n "checking for off_t... " >&6; }
5779if test "${ac_cv_type_off_t+set}" = set; then
5780 $as_echo_n "(cached) " >&6
5781else
5782 ac_cv_type_off_t=no
5783cat >conftest.$ac_ext <<_ACEOF
5784/* confdefs.h. */
5785_ACEOF
5786cat confdefs.h >>conftest.$ac_ext
5787cat >>conftest.$ac_ext <<_ACEOF
5788/* end confdefs.h. */
5789$ac_includes_default
5790int
5791main ()
5792{
5793if (sizeof (off_t))
5794 return 0;
5795 ;
5796 return 0;
5797}
5798_ACEOF
5799rm -f conftest.$ac_objext
5800if { (ac_try="$ac_compile"
5801case "(($ac_try" in
5802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5803 *) ac_try_echo=$ac_try;;
5804esac
5805eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5806$as_echo "$ac_try_echo") >&5
5807 (eval "$ac_compile") 2>conftest.er1
5808 ac_status=$?
5809 grep -v '^ *+' conftest.er1 >conftest.err
5810 rm -f conftest.er1
5811 cat conftest.err >&5
5812 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5813 (exit $ac_status); } && {
5814 test -z "$ac_c_werror_flag" ||
5815 test ! -s conftest.err
5816 } && test -s conftest.$ac_objext; then
5817 cat >conftest.$ac_ext <<_ACEOF
5818/* confdefs.h. */
5819_ACEOF
5820cat confdefs.h >>conftest.$ac_ext
5821cat >>conftest.$ac_ext <<_ACEOF
5822/* end confdefs.h. */
5823$ac_includes_default
5824int
5825main ()
5826{
5827if (sizeof ((off_t)))
5828 return 0;
5829 ;
5830 return 0;
5831}
5832_ACEOF
5833rm -f conftest.$ac_objext
5834if { (ac_try="$ac_compile"
5835case "(($ac_try" in
5836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5837 *) ac_try_echo=$ac_try;;
5838esac
5839eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5840$as_echo "$ac_try_echo") >&5
5841 (eval "$ac_compile") 2>conftest.er1
5842 ac_status=$?
5843 grep -v '^ *+' conftest.er1 >conftest.err
5844 rm -f conftest.er1
5845 cat conftest.err >&5
5846 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5847 (exit $ac_status); } && {
5848 test -z "$ac_c_werror_flag" ||
5849 test ! -s conftest.err
5850 } && test -s conftest.$ac_objext; then
5851 :
5852else
5853 $as_echo "$as_me: failed program was:" >&5
5854sed 's/^/| /' conftest.$ac_ext >&5
5855
5856 ac_cv_type_off_t=yes
5857fi
5858
5859rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5860else
5861 $as_echo "$as_me: failed program was:" >&5
5862sed 's/^/| /' conftest.$ac_ext >&5
5863
5864
5865fi
5866
5867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5868fi
5869{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5870$as_echo "$ac_cv_type_off_t" >&6; }
5871if test "x$ac_cv_type_off_t" = x""yes; then
5872 :
5873else
5874
5875cat >>confdefs.h <<_ACEOF
5876#define off_t long int
5877_ACEOF
5878
5879fi
5880
5881{ $as_echo "$as_me:$LINENO: checking for pid_t" >&5
5882$as_echo_n "checking for pid_t... " >&6; }
5883if test "${ac_cv_type_pid_t+set}" = set; then
5884 $as_echo_n "(cached) " >&6
5885else
5886 ac_cv_type_pid_t=no
5887cat >conftest.$ac_ext <<_ACEOF
5888/* confdefs.h. */
5889_ACEOF
5890cat confdefs.h >>conftest.$ac_ext
5891cat >>conftest.$ac_ext <<_ACEOF
5892/* end confdefs.h. */
5893$ac_includes_default
5894int
5895main ()
5896{
5897if (sizeof (pid_t))
5898 return 0;
5899 ;
5900 return 0;
5901}
5902_ACEOF
5903rm -f conftest.$ac_objext
5904if { (ac_try="$ac_compile"
5905case "(($ac_try" in
5906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5907 *) ac_try_echo=$ac_try;;
5908esac
5909eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5910$as_echo "$ac_try_echo") >&5
d0191583
JM
5911 (eval "$ac_compile") 2>conftest.er1
5912 ac_status=$?
5913 grep -v '^ *+' conftest.er1 >conftest.err
5914 rm -f conftest.er1
5915 cat conftest.err >&5
ec6a6fbe 5916 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
5917 (exit $ac_status); } && {
5918 test -z "$ac_c_werror_flag" ||
5919 test ! -s conftest.err
5920 } && test -s conftest.$ac_objext; then
ec6a6fbe 5921 cat >conftest.$ac_ext <<_ACEOF
d0191583
JM
5922/* confdefs.h. */
5923_ACEOF
5924cat confdefs.h >>conftest.$ac_ext
5925cat >>conftest.$ac_ext <<_ACEOF
5926/* end confdefs.h. */
5927$ac_includes_default
5928int
5929main ()
5930{
ec6a6fbe
AK
5931if (sizeof ((pid_t)))
5932 return 0;
d0191583
JM
5933 ;
5934 return 0;
5935}
5936_ACEOF
5937rm -f conftest.$ac_objext
5938if { (ac_try="$ac_compile"
5939case "(($ac_try" in
5940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5941 *) ac_try_echo=$ac_try;;
5942esac
ec6a6fbe
AK
5943eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5944$as_echo "$ac_try_echo") >&5
d0191583
JM
5945 (eval "$ac_compile") 2>conftest.er1
5946 ac_status=$?
5947 grep -v '^ *+' conftest.er1 >conftest.err
5948 rm -f conftest.er1
5949 cat conftest.err >&5
ec6a6fbe 5950 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
5951 (exit $ac_status); } && {
5952 test -z "$ac_c_werror_flag" ||
5953 test ! -s conftest.err
5954 } && test -s conftest.$ac_objext; then
ec6a6fbe 5955 :
d0191583 5956else
ec6a6fbe 5957 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
5958sed 's/^/| /' conftest.$ac_ext >&5
5959
ec6a6fbe 5960 ac_cv_type_pid_t=yes
d0191583
JM
5961fi
5962
5963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
5964else
5965 $as_echo "$as_me: failed program was:" >&5
5966sed 's/^/| /' conftest.$ac_ext >&5
5967
5968
d0191583
JM
5969fi
5970
5971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5972fi
ec6a6fbe
AK
5973{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
5974$as_echo "$ac_cv_type_pid_t" >&6; }
5975if test "x$ac_cv_type_pid_t" = x""yes; then
5976 :
5977else
d0191583
JM
5978
5979cat >>confdefs.h <<_ACEOF
ec6a6fbe 5980#define pid_t int
d0191583
JM
5981_ACEOF
5982
d0191583 5983fi
8ce0cbda 5984
ec6a6fbe
AK
5985{ $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5986$as_echo_n "checking return type of signal handlers... " >&6; }
5987if test "${ac_cv_type_signal+set}" = set; then
5988 $as_echo_n "(cached) " >&6
ad6254c5 5989else
b145d876
ZK
5990 cat >conftest.$ac_ext <<_ACEOF
5991/* confdefs.h. */
5992_ACEOF
5993cat confdefs.h >>conftest.$ac_ext
5994cat >>conftest.$ac_ext <<_ACEOF
5995/* end confdefs.h. */
ec6a6fbe
AK
5996#include <sys/types.h>
5997#include <signal.h>
5998
b145d876
ZK
5999int
6000main ()
6001{
ec6a6fbe 6002return *(signal (0, 0)) (0) == 1;
ad6254c5
AK
6003 ;
6004 return 0;
6005}
6006_ACEOF
6007rm -f conftest.$ac_objext
7a197a62
AK
6008if { (ac_try="$ac_compile"
6009case "(($ac_try" in
6010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6011 *) ac_try_echo=$ac_try;;
6012esac
ec6a6fbe
AK
6013eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6014$as_echo "$ac_try_echo") >&5
7a197a62 6015 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6016 ac_status=$?
8a2fc586
AK
6017 grep -v '^ *+' conftest.er1 >conftest.err
6018 rm -f conftest.er1
6019 cat conftest.err >&5
ec6a6fbe 6020 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6021 (exit $ac_status); } && {
6022 test -z "$ac_c_werror_flag" ||
6023 test ! -s conftest.err
6024 } && test -s conftest.$ac_objext; then
ec6a6fbe 6025 ac_cv_type_signal=int
b145d876 6026else
ec6a6fbe 6027 $as_echo "$as_me: failed program was:" >&5
b145d876
ZK
6028sed 's/^/| /' conftest.$ac_ext >&5
6029
ec6a6fbe 6030 ac_cv_type_signal=void
ad6254c5 6031fi
b145d876
ZK
6032
6033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6034fi
ec6a6fbe
AK
6035{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6036$as_echo "$ac_cv_type_signal" >&6; }
80992638 6037
ad6254c5 6038cat >>confdefs.h <<_ACEOF
ec6a6fbe 6039#define RETSIGTYPE $ac_cv_type_signal
ad6254c5 6040_ACEOF
199e490e 6041
b896caa1 6042
ec6a6fbe
AK
6043{ $as_echo "$as_me:$LINENO: checking for size_t" >&5
6044$as_echo_n "checking for size_t... " >&6; }
6045if test "${ac_cv_type_size_t+set}" = set; then
6046 $as_echo_n "(cached) " >&6
ad6254c5 6047else
ec6a6fbe
AK
6048 ac_cv_type_size_t=no
6049cat >conftest.$ac_ext <<_ACEOF
b145d876
ZK
6050/* confdefs.h. */
6051_ACEOF
6052cat confdefs.h >>conftest.$ac_ext
6053cat >>conftest.$ac_ext <<_ACEOF
6054/* end confdefs.h. */
6055$ac_includes_default
6056int
6057main ()
6058{
ec6a6fbe
AK
6059if (sizeof (size_t))
6060 return 0;
ad6254c5
AK
6061 ;
6062 return 0;
6063}
6064_ACEOF
6065rm -f conftest.$ac_objext
7a197a62
AK
6066if { (ac_try="$ac_compile"
6067case "(($ac_try" in
6068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6069 *) ac_try_echo=$ac_try;;
6070esac
ec6a6fbe
AK
6071eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6072$as_echo "$ac_try_echo") >&5
7a197a62 6073 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6074 ac_status=$?
8a2fc586
AK
6075 grep -v '^ *+' conftest.er1 >conftest.err
6076 rm -f conftest.er1
6077 cat conftest.err >&5
ec6a6fbe 6078 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6079 (exit $ac_status); } && {
6080 test -z "$ac_c_werror_flag" ||
6081 test ! -s conftest.err
6082 } && test -s conftest.$ac_objext; then
d0191583
JM
6083 cat >conftest.$ac_ext <<_ACEOF
6084/* confdefs.h. */
6085_ACEOF
6086cat confdefs.h >>conftest.$ac_ext
6087cat >>conftest.$ac_ext <<_ACEOF
6088/* end confdefs.h. */
ec6a6fbe 6089$ac_includes_default
d0191583
JM
6090int
6091main ()
6092{
ec6a6fbe
AK
6093if (sizeof ((size_t)))
6094 return 0;
d0191583
JM
6095 ;
6096 return 0;
6097}
6098_ACEOF
6099rm -f conftest.$ac_objext
6100if { (ac_try="$ac_compile"
6101case "(($ac_try" in
6102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6103 *) ac_try_echo=$ac_try;;
6104esac
ec6a6fbe
AK
6105eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6106$as_echo "$ac_try_echo") >&5
d0191583
JM
6107 (eval "$ac_compile") 2>conftest.er1
6108 ac_status=$?
6109 grep -v '^ *+' conftest.er1 >conftest.err
6110 rm -f conftest.er1
6111 cat conftest.err >&5
ec6a6fbe 6112 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
6113 (exit $ac_status); } && {
6114 test -z "$ac_c_werror_flag" ||
6115 test ! -s conftest.err
6116 } && test -s conftest.$ac_objext; then
ec6a6fbe 6117 :
d0191583 6118else
ec6a6fbe 6119 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
6120sed 's/^/| /' conftest.$ac_ext >&5
6121
ec6a6fbe
AK
6122 ac_cv_type_size_t=yes
6123fi
6124
6125rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6126else
6127 $as_echo "$as_me: failed program was:" >&5
6128sed 's/^/| /' conftest.$ac_ext >&5
6129
6130
d0191583
JM
6131fi
6132
6133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6134fi
ec6a6fbe
AK
6135{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6136$as_echo "$ac_cv_type_size_t" >&6; }
6137if test "x$ac_cv_type_size_t" = x""yes; then
6138 :
6139else
d0191583
JM
6140
6141cat >>confdefs.h <<_ACEOF
ec6a6fbe 6142#define size_t unsigned int
d0191583
JM
6143_ACEOF
6144
ec6a6fbe 6145fi
d0191583 6146
ec6a6fbe
AK
6147{ $as_echo "$as_me:$LINENO: checking for mode_t" >&5
6148$as_echo_n "checking for mode_t... " >&6; }
6149if test "${ac_cv_type_mode_t+set}" = set; then
6150 $as_echo_n "(cached) " >&6
8106cdd5 6151else
ec6a6fbe
AK
6152 ac_cv_type_mode_t=no
6153cat >conftest.$ac_ext <<_ACEOF
b145d876
ZK
6154/* confdefs.h. */
6155_ACEOF
6156cat confdefs.h >>conftest.$ac_ext
6157cat >>conftest.$ac_ext <<_ACEOF
6158/* end confdefs.h. */
6159$ac_includes_default
6160int
6161main ()
6162{
ec6a6fbe
AK
6163if (sizeof (mode_t))
6164 return 0;
ad6254c5
AK
6165 ;
6166 return 0;
6167}
6168_ACEOF
6169rm -f conftest.$ac_objext
7a197a62
AK
6170if { (ac_try="$ac_compile"
6171case "(($ac_try" in
6172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6173 *) ac_try_echo=$ac_try;;
6174esac
ec6a6fbe
AK
6175eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6176$as_echo "$ac_try_echo") >&5
7a197a62 6177 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6178 ac_status=$?
8a2fc586
AK
6179 grep -v '^ *+' conftest.er1 >conftest.err
6180 rm -f conftest.er1
6181 cat conftest.err >&5
ec6a6fbe 6182 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6183 (exit $ac_status); } && {
6184 test -z "$ac_c_werror_flag" ||
6185 test ! -s conftest.err
6186 } && test -s conftest.$ac_objext; then
b145d876
ZK
6187 cat >conftest.$ac_ext <<_ACEOF
6188/* confdefs.h. */
6189_ACEOF
6190cat confdefs.h >>conftest.$ac_ext
6191cat >>conftest.$ac_ext <<_ACEOF
6192/* end confdefs.h. */
6193$ac_includes_default
6194int
6195main ()
6196{
ec6a6fbe
AK
6197if (sizeof ((mode_t)))
6198 return 0;
ad6254c5
AK
6199 ;
6200 return 0;
6201}
6202_ACEOF
6203rm -f conftest.$ac_objext
7a197a62
AK
6204if { (ac_try="$ac_compile"
6205case "(($ac_try" in
6206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6207 *) ac_try_echo=$ac_try;;
6208esac
ec6a6fbe
AK
6209eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6210$as_echo "$ac_try_echo") >&5
7a197a62 6211 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6212 ac_status=$?
8a2fc586
AK
6213 grep -v '^ *+' conftest.er1 >conftest.err
6214 rm -f conftest.er1
6215 cat conftest.err >&5
ec6a6fbe 6216 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6217 (exit $ac_status); } && {
6218 test -z "$ac_c_werror_flag" ||
6219 test ! -s conftest.err
6220 } && test -s conftest.$ac_objext; then
ec6a6fbe
AK
6221 :
6222else
6223 $as_echo "$as_me: failed program was:" >&5
6224sed 's/^/| /' conftest.$ac_ext >&5
6225
6226 ac_cv_type_mode_t=yes
6227fi
6228
6229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fddafd51 6230else
ec6a6fbe 6231 $as_echo "$as_me: failed program was:" >&5
fddafd51
ZK
6232sed 's/^/| /' conftest.$ac_ext >&5
6233
ec6a6fbe 6234
80992638 6235fi
7a197a62
AK
6236
6237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 6238fi
ec6a6fbe
AK
6239{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6240$as_echo "$ac_cv_type_mode_t" >&6; }
6241if test "x$ac_cv_type_mode_t" = x""yes; then
ad6254c5
AK
6242 :
6243else
80992638 6244
ad6254c5
AK
6245cat >>confdefs.h <<_ACEOF
6246#define mode_t int
6247_ACEOF
6248
6249fi
6250
ec6a6fbe
AK
6251{ $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
6252$as_echo_n "checking for struct stat.st_rdev... " >&6; }
ad6254c5 6253if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
ec6a6fbe 6254 $as_echo_n "(cached) " >&6
ad6254c5
AK
6255else
6256 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6257/* confdefs.h. */
6258_ACEOF
6259cat confdefs.h >>conftest.$ac_ext
6260cat >>conftest.$ac_ext <<_ACEOF
6261/* end confdefs.h. */
6262$ac_includes_default
6263int
6264main ()
6265{
6266static struct stat ac_aggr;
6267if (ac_aggr.st_rdev)
6268return 0;
6269 ;
6270 return 0;
6271}
6272_ACEOF
6273rm -f conftest.$ac_objext
7a197a62
AK
6274if { (ac_try="$ac_compile"
6275case "(($ac_try" in
6276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6277 *) ac_try_echo=$ac_try;;
6278esac
ec6a6fbe
AK
6279eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6280$as_echo "$ac_try_echo") >&5
7a197a62 6281 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6282 ac_status=$?
8a2fc586
AK
6283 grep -v '^ *+' conftest.er1 >conftest.err
6284 rm -f conftest.er1
6285 cat conftest.err >&5
ec6a6fbe 6286 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6287 (exit $ac_status); } && {
6288 test -z "$ac_c_werror_flag" ||
6289 test ! -s conftest.err
6290 } && test -s conftest.$ac_objext; then
ad6254c5
AK
6291 ac_cv_member_struct_stat_st_rdev=yes
6292else
ec6a6fbe 6293 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6294sed 's/^/| /' conftest.$ac_ext >&5
6295
7a197a62 6296 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6297/* confdefs.h. */
6298_ACEOF
6299cat confdefs.h >>conftest.$ac_ext
6300cat >>conftest.$ac_ext <<_ACEOF
6301/* end confdefs.h. */
6302$ac_includes_default
6303int
6304main ()
6305{
6306static struct stat ac_aggr;
6307if (sizeof ac_aggr.st_rdev)
6308return 0;
6309 ;
6310 return 0;
6311}
6312_ACEOF
6313rm -f conftest.$ac_objext
7a197a62
AK
6314if { (ac_try="$ac_compile"
6315case "(($ac_try" in
6316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6317 *) ac_try_echo=$ac_try;;
6318esac
ec6a6fbe
AK
6319eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6320$as_echo "$ac_try_echo") >&5
7a197a62 6321 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6322 ac_status=$?
8a2fc586
AK
6323 grep -v '^ *+' conftest.er1 >conftest.err
6324 rm -f conftest.er1
6325 cat conftest.err >&5
ec6a6fbe 6326 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6327 (exit $ac_status); } && {
6328 test -z "$ac_c_werror_flag" ||
6329 test ! -s conftest.err
6330 } && test -s conftest.$ac_objext; then
ad6254c5
AK
6331 ac_cv_member_struct_stat_st_rdev=yes
6332else
ec6a6fbe 6333 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6334sed 's/^/| /' conftest.$ac_ext >&5
6335
7a197a62 6336 ac_cv_member_struct_stat_st_rdev=no
ad6254c5 6337fi
7a197a62
AK
6338
6339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 6340fi
7a197a62
AK
6341
6342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 6343fi
ec6a6fbe
AK
6344{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
6345$as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; }
6346if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then
ad6254c5
AK
6347
6348cat >>confdefs.h <<_ACEOF
6349#define HAVE_STRUCT_STAT_ST_RDEV 1
6350_ACEOF
6351
6352
ad6254c5
AK
6353fi
6354
ec6a6fbe
AK
6355{ $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6356$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
ad6254c5 6357if test "${ac_cv_struct_tm+set}" = set; then
ec6a6fbe 6358 $as_echo_n "(cached) " >&6
ad6254c5
AK
6359else
6360 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6361/* confdefs.h. */
6362_ACEOF
6363cat confdefs.h >>conftest.$ac_ext
6364cat >>conftest.$ac_ext <<_ACEOF
6365/* end confdefs.h. */
6366#include <sys/types.h>
6367#include <time.h>
6368
6369int
6370main ()
6371{
25fbec5b
AK
6372struct tm tm;
6373 int *p = &tm.tm_sec;
ec6a6fbe 6374 return !p;
ad6254c5
AK
6375 ;
6376 return 0;
6377}
6378_ACEOF
6379rm -f conftest.$ac_objext
7a197a62
AK
6380if { (ac_try="$ac_compile"
6381case "(($ac_try" in
6382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6383 *) ac_try_echo=$ac_try;;
6384esac
ec6a6fbe
AK
6385eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6386$as_echo "$ac_try_echo") >&5
7a197a62 6387 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6388 ac_status=$?
8a2fc586
AK
6389 grep -v '^ *+' conftest.er1 >conftest.err
6390 rm -f conftest.er1
6391 cat conftest.err >&5
ec6a6fbe 6392 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6393 (exit $ac_status); } && {
6394 test -z "$ac_c_werror_flag" ||
6395 test ! -s conftest.err
6396 } && test -s conftest.$ac_objext; then
ad6254c5
AK
6397 ac_cv_struct_tm=time.h
6398else
ec6a6fbe 6399 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6400sed 's/^/| /' conftest.$ac_ext >&5
6401
7a197a62 6402 ac_cv_struct_tm=sys/time.h
ad6254c5 6403fi
7a197a62
AK
6404
6405rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 6406fi
ec6a6fbe
AK
6407{ $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6408$as_echo "$ac_cv_struct_tm" >&6; }
ad6254c5
AK
6409if test $ac_cv_struct_tm = sys/time.h; then
6410
6411cat >>confdefs.h <<\_ACEOF
6412#define TM_IN_SYS_TIME 1
6413_ACEOF
6414
6415fi
809fae91 6416
795ca3e5 6417
80992638 6418################################################################################
ad6254c5
AK
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
d0191583
JM
6433
6434
6435
6436for ac_func in gethostname getpagesize memset mkdir rmdir munmap setlocale \
6437 strcasecmp strchr strdup strncasecmp strerror strrchr strstr strtol strtoul \
6438 uname
ad6254c5 6439do
ec6a6fbe
AK
6440as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6441{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6442$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 6443if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 6444 $as_echo_n "(cached) " >&6
795ca3e5 6445else
ad6254c5 6446 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6447/* confdefs.h. */
6448_ACEOF
6449cat confdefs.h >>conftest.$ac_ext
6450cat >>conftest.$ac_ext <<_ACEOF
6451/* end confdefs.h. */
8a2fc586
AK
6452/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6453 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6454#define $ac_func innocuous_$ac_func
6455
ad6254c5
AK
6456/* System header to define __stub macros and hopefully few prototypes,
6457 which can conflict with char $ac_func (); below.
6458 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6459 <limits.h> exists even on freestanding compilers. */
8a2fc586 6460
ad6254c5
AK
6461#ifdef __STDC__
6462# include <limits.h>
6463#else
6464# include <assert.h>
6465#endif
8a2fc586
AK
6466
6467#undef $ac_func
6468
7a197a62
AK
6469/* Override any GCC internal prototype to avoid an error.
6470 Use char because int might match the return type of a GCC
6471 builtin and then its argument prototype would still apply. */
ad6254c5
AK
6472#ifdef __cplusplus
6473extern "C"
ad6254c5 6474#endif
ad6254c5
AK
6475char $ac_func ();
6476/* The GNU C library defines this for functions which it implements
6477 to always fail with ENOSYS. Some functions are actually named
6478 something starting with __ and the normal name is an alias. */
7a197a62 6479#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 6480choke me
ad6254c5
AK
6481#endif
6482
6483int
6484main ()
6485{
7a197a62 6486return $ac_func ();
ad6254c5
AK
6487 ;
6488 return 0;
6489}
6490_ACEOF
6491rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
6492if { (ac_try="$ac_link"
6493case "(($ac_try" in
6494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6495 *) ac_try_echo=$ac_try;;
6496esac
ec6a6fbe
AK
6497eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6498$as_echo "$ac_try_echo") >&5
7a197a62 6499 (eval "$ac_link") 2>conftest.er1
ad6254c5 6500 ac_status=$?
8a2fc586
AK
6501 grep -v '^ *+' conftest.er1 >conftest.err
6502 rm -f conftest.er1
6503 cat conftest.err >&5
ec6a6fbe 6504 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6505 (exit $ac_status); } && {
6506 test -z "$ac_c_werror_flag" ||
6507 test ! -s conftest.err
ec6a6fbe
AK
6508 } && test -s conftest$ac_exeext && {
6509 test "$cross_compiling" = yes ||
6510 $as_test_x conftest$ac_exeext
6511 }; then
fc54be10
AK
6512 eval "$as_ac_var=yes"
6513else
ec6a6fbe 6514 $as_echo "$as_me: failed program was:" >&5
fc54be10
AK
6515sed 's/^/| /' conftest.$ac_ext >&5
6516
6517 eval "$as_ac_var=no"
6518fi
6519
ec6a6fbe 6520rm -rf conftest.dSYM
25fbec5b 6521rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
fc54be10
AK
6522 conftest$ac_exeext conftest.$ac_ext
6523fi
ec6a6fbe
AK
6524ac_res=`eval 'as_val=${'$as_ac_var'}
6525 $as_echo "$as_val"'`
6526 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6527$as_echo "$ac_res" >&6; }
6528as_val=`eval 'as_val=${'$as_ac_var'}
6529 $as_echo "$as_val"'`
6530 if test "x$as_val" = x""yes; then
ad6254c5 6531 cat >>confdefs.h <<_ACEOF
ec6a6fbe 6532#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
6533_ACEOF
6534
6535else
ec6a6fbe
AK
6536 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
6537$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5
AK
6538 { (exit 1); exit 1; }; }
6539fi
6540done
795ca3e5 6541
a0f9708e
AK
6542
6543for ac_func in siginterrupt
6544do
6545as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6546{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6547$as_echo_n "checking for $ac_func... " >&6; }
6548if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6549 $as_echo_n "(cached) " >&6
6550else
6551 cat >conftest.$ac_ext <<_ACEOF
6552/* confdefs.h. */
6553_ACEOF
6554cat confdefs.h >>conftest.$ac_ext
6555cat >>conftest.$ac_ext <<_ACEOF
6556/* end confdefs.h. */
6557/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6558 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6559#define $ac_func innocuous_$ac_func
6560
6561/* System header to define __stub macros and hopefully few prototypes,
6562 which can conflict with char $ac_func (); below.
6563 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6564 <limits.h> exists even on freestanding compilers. */
6565
6566#ifdef __STDC__
6567# include <limits.h>
6568#else
6569# include <assert.h>
6570#endif
6571
6572#undef $ac_func
6573
6574/* Override any GCC internal prototype to avoid an error.
6575 Use char because int might match the return type of a GCC
6576 builtin and then its argument prototype would still apply. */
6577#ifdef __cplusplus
6578extern "C"
6579#endif
6580char $ac_func ();
6581/* The GNU C library defines this for functions which it implements
6582 to always fail with ENOSYS. Some functions are actually named
6583 something starting with __ and the normal name is an alias. */
6584#if defined __stub_$ac_func || defined __stub___$ac_func
6585choke me
6586#endif
6587
6588int
6589main ()
6590{
6591return $ac_func ();
6592 ;
6593 return 0;
6594}
6595_ACEOF
6596rm -f conftest.$ac_objext conftest$ac_exeext
6597if { (ac_try="$ac_link"
6598case "(($ac_try" in
6599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6600 *) ac_try_echo=$ac_try;;
6601esac
6602eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6603$as_echo "$ac_try_echo") >&5
6604 (eval "$ac_link") 2>conftest.er1
6605 ac_status=$?
6606 grep -v '^ *+' conftest.er1 >conftest.err
6607 rm -f conftest.er1
6608 cat conftest.err >&5
6609 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6610 (exit $ac_status); } && {
6611 test -z "$ac_c_werror_flag" ||
6612 test ! -s conftest.err
6613 } && test -s conftest$ac_exeext && {
6614 test "$cross_compiling" = yes ||
6615 $as_test_x conftest$ac_exeext
6616 }; then
6617 eval "$as_ac_var=yes"
6618else
6619 $as_echo "$as_me: failed program was:" >&5
6620sed 's/^/| /' conftest.$ac_ext >&5
6621
6622 eval "$as_ac_var=no"
6623fi
6624
6625rm -rf conftest.dSYM
6626rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6627 conftest$ac_exeext conftest.$ac_ext
6628fi
6629ac_res=`eval 'as_val=${'$as_ac_var'}
6630 $as_echo "$as_val"'`
6631 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6632$as_echo "$ac_res" >&6; }
6633as_val=`eval 'as_val=${'$as_ac_var'}
6634 $as_echo "$as_val"'`
6635 if test "x$as_val" = x""yes; then
6636 cat >>confdefs.h <<_ACEOF
6637#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6638_ACEOF
6639
6640fi
6641done
6642
ad6254c5
AK
6643# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6644# for constant arguments. Useless!
ec6a6fbe
AK
6645{ $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
6646$as_echo_n "checking for working alloca.h... " >&6; }
ad6254c5 6647if test "${ac_cv_working_alloca_h+set}" = set; then
ec6a6fbe 6648 $as_echo_n "(cached) " >&6
ad6254c5
AK
6649else
6650 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6651/* confdefs.h. */
6652_ACEOF
6653cat confdefs.h >>conftest.$ac_ext
6654cat >>conftest.$ac_ext <<_ACEOF
6655/* end confdefs.h. */
6656#include <alloca.h>
6657int
6658main ()
6659{
6660char *p = (char *) alloca (2 * sizeof (int));
7a197a62 6661 if (p) return 0;
ad6254c5
AK
6662 ;
6663 return 0;
6664}
6665_ACEOF
6666rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
6667if { (ac_try="$ac_link"
6668case "(($ac_try" in
6669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6670 *) ac_try_echo=$ac_try;;
6671esac
ec6a6fbe
AK
6672eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6673$as_echo "$ac_try_echo") >&5
7a197a62 6674 (eval "$ac_link") 2>conftest.er1
ad6254c5 6675 ac_status=$?
8a2fc586
AK
6676 grep -v '^ *+' conftest.er1 >conftest.err
6677 rm -f conftest.er1
6678 cat conftest.err >&5
ec6a6fbe 6679 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6680 (exit $ac_status); } && {
6681 test -z "$ac_c_werror_flag" ||
6682 test ! -s conftest.err
ec6a6fbe
AK
6683 } && test -s conftest$ac_exeext && {
6684 test "$cross_compiling" = yes ||
6685 $as_test_x conftest$ac_exeext
6686 }; then
ad6254c5
AK
6687 ac_cv_working_alloca_h=yes
6688else
ec6a6fbe 6689 $as_echo "$as_me: failed program was:" >&5
ad6254c5 6690sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 6691
7a197a62 6692 ac_cv_working_alloca_h=no
ad6254c5 6693fi
7a197a62 6694
ec6a6fbe 6695rm -rf conftest.dSYM
25fbec5b 6696rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 6697 conftest$ac_exeext conftest.$ac_ext
ad6254c5 6698fi
ec6a6fbe
AK
6699{ $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6700$as_echo "$ac_cv_working_alloca_h" >&6; }
ad6254c5
AK
6701if test $ac_cv_working_alloca_h = yes; then
6702
6703cat >>confdefs.h <<\_ACEOF
6704#define HAVE_ALLOCA_H 1
6705_ACEOF
6706
6707fi
6708
ec6a6fbe
AK
6709{ $as_echo "$as_me:$LINENO: checking for alloca" >&5
6710$as_echo_n "checking for alloca... " >&6; }
ad6254c5 6711if test "${ac_cv_func_alloca_works+set}" = set; then
ec6a6fbe 6712 $as_echo_n "(cached) " >&6
ad6254c5
AK
6713else
6714 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6715/* confdefs.h. */
6716_ACEOF
6717cat confdefs.h >>conftest.$ac_ext
6718cat >>conftest.$ac_ext <<_ACEOF
6719/* end confdefs.h. */
6720#ifdef __GNUC__
6721# define alloca __builtin_alloca
6722#else
6723# ifdef _MSC_VER
6724# include <malloc.h>
6725# define alloca _alloca
6726# else
25fbec5b 6727# ifdef HAVE_ALLOCA_H
ad6254c5
AK
6728# include <alloca.h>
6729# else
6730# ifdef _AIX
6731 #pragma alloca
6732# else
6733# ifndef alloca /* predefined by HP cc +Olibcalls */
6734char *alloca ();
6735# endif
6736# endif
6737# endif
6738# endif
6739#endif
6740
6741int
6742main ()
6743{
6744char *p = (char *) alloca (1);
7a197a62 6745 if (p) return 0;
ad6254c5
AK
6746 ;
6747 return 0;
6748}
6749_ACEOF
6750rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
6751if { (ac_try="$ac_link"
6752case "(($ac_try" in
6753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6754 *) ac_try_echo=$ac_try;;
6755esac
ec6a6fbe
AK
6756eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6757$as_echo "$ac_try_echo") >&5
7a197a62 6758 (eval "$ac_link") 2>conftest.er1
ad6254c5 6759 ac_status=$?
8a2fc586
AK
6760 grep -v '^ *+' conftest.er1 >conftest.err
6761 rm -f conftest.er1
6762 cat conftest.err >&5
ec6a6fbe 6763 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6764 (exit $ac_status); } && {
6765 test -z "$ac_c_werror_flag" ||
6766 test ! -s conftest.err
ec6a6fbe
AK
6767 } && test -s conftest$ac_exeext && {
6768 test "$cross_compiling" = yes ||
6769 $as_test_x conftest$ac_exeext
6770 }; then
ad6254c5
AK
6771 ac_cv_func_alloca_works=yes
6772else
ec6a6fbe 6773 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6774sed 's/^/| /' conftest.$ac_ext >&5
6775
7a197a62 6776 ac_cv_func_alloca_works=no
ad6254c5 6777fi
7a197a62 6778
ec6a6fbe 6779rm -rf conftest.dSYM
25fbec5b 6780rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 6781 conftest$ac_exeext conftest.$ac_ext
ad6254c5 6782fi
ec6a6fbe
AK
6783{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6784$as_echo "$ac_cv_func_alloca_works" >&6; }
ad6254c5
AK
6785
6786if test $ac_cv_func_alloca_works = yes; then
6787
6788cat >>confdefs.h <<\_ACEOF
6789#define HAVE_ALLOCA 1
6790_ACEOF
6791
6792else
6793 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6794# that cause trouble. Some versions do not even contain alloca or
6795# contain a buggy version. If you still want to use their alloca,
6796# use ar to extract alloca.o from them instead of compiling alloca.c.
6797
7a197a62 6798ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
ad6254c5
AK
6799
6800cat >>confdefs.h <<\_ACEOF
6801#define C_ALLOCA 1
6802_ACEOF
6803
6804
ec6a6fbe
AK
6805{ $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6806$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
ad6254c5 6807if test "${ac_cv_os_cray+set}" = set; then
ec6a6fbe 6808 $as_echo_n "(cached) " >&6
ad6254c5
AK
6809else
6810 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6811/* confdefs.h. */
6812_ACEOF
6813cat confdefs.h >>conftest.$ac_ext
6814cat >>conftest.$ac_ext <<_ACEOF
6815/* end confdefs.h. */
7a197a62 6816#if defined CRAY && ! defined CRAY2
ad6254c5
AK
6817webecray
6818#else
6819wenotbecray
6820#endif
6821
6822_ACEOF
795ca3e5 6823if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ad6254c5
AK
6824 $EGREP "webecray" >/dev/null 2>&1; then
6825 ac_cv_os_cray=yes
6826else
6827 ac_cv_os_cray=no
795ca3e5
AK
6828fi
6829rm -f conftest*
6830
795ca3e5 6831fi
ec6a6fbe
AK
6832{ $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6833$as_echo "$ac_cv_os_cray" >&6; }
ad6254c5
AK
6834if test $ac_cv_os_cray = yes; then
6835 for ac_func in _getb67 GETB67 getb67; do
ec6a6fbe
AK
6836 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6837{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6838$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 6839if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 6840 $as_echo_n "(cached) " >&6
ad6254c5
AK
6841else
6842 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6843/* confdefs.h. */
6844_ACEOF
6845cat confdefs.h >>conftest.$ac_ext
6846cat >>conftest.$ac_ext <<_ACEOF
6847/* end confdefs.h. */
8a2fc586
AK
6848/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6849 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6850#define $ac_func innocuous_$ac_func
6851
ad6254c5
AK
6852/* System header to define __stub macros and hopefully few prototypes,
6853 which can conflict with char $ac_func (); below.
6854 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6855 <limits.h> exists even on freestanding compilers. */
8a2fc586 6856
ad6254c5
AK
6857#ifdef __STDC__
6858# include <limits.h>
6859#else
6860# include <assert.h>
6861#endif
8a2fc586
AK
6862
6863#undef $ac_func
6864
7a197a62
AK
6865/* Override any GCC internal prototype to avoid an error.
6866 Use char because int might match the return type of a GCC
6867 builtin and then its argument prototype would still apply. */
ad6254c5
AK
6868#ifdef __cplusplus
6869extern "C"
ad6254c5 6870#endif
ad6254c5
AK
6871char $ac_func ();
6872/* The GNU C library defines this for functions which it implements
6873 to always fail with ENOSYS. Some functions are actually named
6874 something starting with __ and the normal name is an alias. */
7a197a62 6875#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 6876choke me
ad6254c5
AK
6877#endif
6878
6879int
6880main ()
6881{
7a197a62 6882return $ac_func ();
ad6254c5
AK
6883 ;
6884 return 0;
6885}
6886_ACEOF
6887rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
6888if { (ac_try="$ac_link"
6889case "(($ac_try" in
6890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6891 *) ac_try_echo=$ac_try;;
6892esac
ec6a6fbe
AK
6893eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6894$as_echo "$ac_try_echo") >&5
7a197a62 6895 (eval "$ac_link") 2>conftest.er1
ad6254c5 6896 ac_status=$?
8a2fc586
AK
6897 grep -v '^ *+' conftest.er1 >conftest.err
6898 rm -f conftest.er1
6899 cat conftest.err >&5
ec6a6fbe 6900 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6901 (exit $ac_status); } && {
6902 test -z "$ac_c_werror_flag" ||
6903 test ! -s conftest.err
ec6a6fbe
AK
6904 } && test -s conftest$ac_exeext && {
6905 test "$cross_compiling" = yes ||
6906 $as_test_x conftest$ac_exeext
6907 }; then
ad6254c5
AK
6908 eval "$as_ac_var=yes"
6909else
ec6a6fbe 6910 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6911sed 's/^/| /' conftest.$ac_ext >&5
6912
7a197a62 6913 eval "$as_ac_var=no"
ad6254c5 6914fi
7a197a62 6915
ec6a6fbe 6916rm -rf conftest.dSYM
25fbec5b 6917rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 6918 conftest$ac_exeext conftest.$ac_ext
ad6254c5 6919fi
ec6a6fbe
AK
6920ac_res=`eval 'as_val=${'$as_ac_var'}
6921 $as_echo "$as_val"'`
6922 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6923$as_echo "$ac_res" >&6; }
6924as_val=`eval 'as_val=${'$as_ac_var'}
6925 $as_echo "$as_val"'`
6926 if test "x$as_val" = x""yes; then
80992638 6927
ad6254c5
AK
6928cat >>confdefs.h <<_ACEOF
6929#define CRAY_STACKSEG_END $ac_func
6930_ACEOF
6931
6932 break
6933fi
6934
6935 done
6936fi
6937
ec6a6fbe
AK
6938{ $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6939$as_echo_n "checking stack direction for C alloca... " >&6; }
ad6254c5 6940if test "${ac_cv_c_stack_direction+set}" = set; then
ec6a6fbe 6941 $as_echo_n "(cached) " >&6
ad6254c5
AK
6942else
6943 if test "$cross_compiling" = yes; then
6944 ac_cv_c_stack_direction=0
6945else
6946 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6947/* confdefs.h. */
6948_ACEOF
6949cat confdefs.h >>conftest.$ac_ext
6950cat >>conftest.$ac_ext <<_ACEOF
6951/* end confdefs.h. */
7a197a62 6952$ac_includes_default
ad6254c5
AK
6953int
6954find_stack_direction ()
6955{
6956 static char *addr = 0;
6957 auto char dummy;
6958 if (addr == 0)
6959 {
6960 addr = &dummy;
6961 return find_stack_direction ();
6962 }
6963 else
6964 return (&dummy > addr) ? 1 : -1;
6965}
6966
6967int
6968main ()
6969{
7a197a62 6970 return find_stack_direction () < 0;
ad6254c5
AK
6971}
6972_ACEOF
6973rm -f conftest$ac_exeext
7a197a62
AK
6974if { (ac_try="$ac_link"
6975case "(($ac_try" in
6976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6977 *) ac_try_echo=$ac_try;;
6978esac
ec6a6fbe
AK
6979eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6980$as_echo "$ac_try_echo") >&5
7a197a62 6981 (eval "$ac_link") 2>&5
ad6254c5 6982 ac_status=$?
ec6a6fbe 6983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 6984 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
6985 { (case "(($ac_try" in
6986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6987 *) ac_try_echo=$ac_try;;
6988esac
ec6a6fbe
AK
6989eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6990$as_echo "$ac_try_echo") >&5
7a197a62 6991 (eval "$ac_try") 2>&5
ad6254c5 6992 ac_status=$?
ec6a6fbe 6993 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
6994 (exit $ac_status); }; }; then
6995 ac_cv_c_stack_direction=1
6996else
ec6a6fbe
AK
6997 $as_echo "$as_me: program exited with status $ac_status" >&5
6998$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6999sed 's/^/| /' conftest.$ac_ext >&5
7000
7001( exit $ac_status )
7002ac_cv_c_stack_direction=-1
7003fi
ec6a6fbe 7004rm -rf conftest.dSYM
7a197a62 7005rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7006fi
7a197a62
AK
7007
7008
ad6254c5 7009fi
ec6a6fbe
AK
7010{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
7011$as_echo "$ac_cv_c_stack_direction" >&6; }
ad6254c5
AK
7012
7013cat >>confdefs.h <<_ACEOF
7014#define STACK_DIRECTION $ac_cv_c_stack_direction
7015_ACEOF
7016
7017
7018fi
7019
ec6a6fbe
AK
7020{ $as_echo "$as_me:$LINENO: checking whether closedir returns void" >&5
7021$as_echo_n "checking whether closedir returns void... " >&6; }
ad6254c5 7022if test "${ac_cv_func_closedir_void+set}" = set; then
ec6a6fbe 7023 $as_echo_n "(cached) " >&6
ad6254c5
AK
7024else
7025 if test "$cross_compiling" = yes; then
7026 ac_cv_func_closedir_void=yes
7027else
7028 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7029/* confdefs.h. */
7030_ACEOF
7031cat confdefs.h >>conftest.$ac_ext
7032cat >>conftest.$ac_ext <<_ACEOF
7033/* end confdefs.h. */
7034$ac_includes_default
7035#include <$ac_header_dirent>
7036#ifndef __cplusplus
7037int closedir ();
7038#endif
7039
7040int
7041main ()
7042{
7a197a62 7043return closedir (opendir (".")) != 0;
ad6254c5
AK
7044 ;
7045 return 0;
7046}
7047_ACEOF
7048rm -f conftest$ac_exeext
7a197a62
AK
7049if { (ac_try="$ac_link"
7050case "(($ac_try" in
7051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7052 *) ac_try_echo=$ac_try;;
7053esac
ec6a6fbe
AK
7054eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7055$as_echo "$ac_try_echo") >&5
7a197a62 7056 (eval "$ac_link") 2>&5
ad6254c5 7057 ac_status=$?
ec6a6fbe 7058 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7059 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7060 { (case "(($ac_try" in
7061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7062 *) ac_try_echo=$ac_try;;
7063esac
ec6a6fbe
AK
7064eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7065$as_echo "$ac_try_echo") >&5
7a197a62 7066 (eval "$ac_try") 2>&5
ad6254c5 7067 ac_status=$?
ec6a6fbe 7068 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7069 (exit $ac_status); }; }; then
7070 ac_cv_func_closedir_void=no
7071else
ec6a6fbe
AK
7072 $as_echo "$as_me: program exited with status $ac_status" >&5
7073$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7074sed 's/^/| /' conftest.$ac_ext >&5
7075
7076( exit $ac_status )
7077ac_cv_func_closedir_void=yes
7078fi
ec6a6fbe 7079rm -rf conftest.dSYM
7a197a62 7080rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7081fi
7a197a62
AK
7082
7083
ad6254c5 7084fi
ec6a6fbe
AK
7085{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
7086$as_echo "$ac_cv_func_closedir_void" >&6; }
ad6254c5
AK
7087if test $ac_cv_func_closedir_void = yes; then
7088
7089cat >>confdefs.h <<\_ACEOF
7090#define CLOSEDIR_VOID 1
7091_ACEOF
7092
7093fi
7094
7095
7a197a62 7096for ac_header in vfork.h
ad6254c5 7097do
ec6a6fbe 7098as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 7099if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
7100 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7101$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 7102if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 7103 $as_echo_n "(cached) " >&6
ad6254c5 7104fi
ec6a6fbe
AK
7105ac_res=`eval 'as_val=${'$as_ac_Header'}
7106 $as_echo "$as_val"'`
7107 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7108$as_echo "$ac_res" >&6; }
ad6254c5
AK
7109else
7110 # Is the header compilable?
ec6a6fbe
AK
7111{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7112$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 7113cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7114/* confdefs.h. */
7115_ACEOF
7116cat confdefs.h >>conftest.$ac_ext
7117cat >>conftest.$ac_ext <<_ACEOF
7118/* end confdefs.h. */
7119$ac_includes_default
7120#include <$ac_header>
7121_ACEOF
7122rm -f conftest.$ac_objext
7a197a62
AK
7123if { (ac_try="$ac_compile"
7124case "(($ac_try" in
7125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7126 *) ac_try_echo=$ac_try;;
7127esac
ec6a6fbe
AK
7128eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7129$as_echo "$ac_try_echo") >&5
7a197a62 7130 (eval "$ac_compile") 2>conftest.er1
ad6254c5 7131 ac_status=$?
8a2fc586
AK
7132 grep -v '^ *+' conftest.er1 >conftest.err
7133 rm -f conftest.er1
7134 cat conftest.err >&5
ec6a6fbe 7135 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7136 (exit $ac_status); } && {
7137 test -z "$ac_c_werror_flag" ||
7138 test ! -s conftest.err
7139 } && test -s conftest.$ac_objext; then
ad6254c5
AK
7140 ac_header_compiler=yes
7141else
ec6a6fbe 7142 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7143sed 's/^/| /' conftest.$ac_ext >&5
7144
7a197a62 7145 ac_header_compiler=no
ad6254c5 7146fi
7a197a62
AK
7147
7148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
7149{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7150$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
7151
7152# Is the header present?
ec6a6fbe
AK
7153{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7154$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 7155cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7156/* confdefs.h. */
7157_ACEOF
7158cat confdefs.h >>conftest.$ac_ext
7159cat >>conftest.$ac_ext <<_ACEOF
7160/* end confdefs.h. */
7161#include <$ac_header>
7162_ACEOF
7a197a62
AK
7163if { (ac_try="$ac_cpp conftest.$ac_ext"
7164case "(($ac_try" in
7165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7166 *) ac_try_echo=$ac_try;;
7167esac
ec6a6fbe
AK
7168eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7169$as_echo "$ac_try_echo") >&5
7a197a62 7170 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
7171 ac_status=$?
7172 grep -v '^ *+' conftest.er1 >conftest.err
7173 rm -f conftest.er1
7174 cat conftest.err >&5
ec6a6fbe 7175 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7176 (exit $ac_status); } >/dev/null && {
7177 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7178 test ! -s conftest.err
7179 }; then
ad6254c5
AK
7180 ac_header_preproc=yes
7181else
ec6a6fbe 7182 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7183sed 's/^/| /' conftest.$ac_ext >&5
7184
7185 ac_header_preproc=no
7186fi
7a197a62 7187
ad6254c5 7188rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
7189{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7190$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
7191
7192# So? What about this header?
8a2fc586
AK
7193case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7194 yes:no: )
ec6a6fbe
AK
7195 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7196$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7197 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7198$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 7199 ac_header_preproc=yes
ad6254c5 7200 ;;
8a2fc586 7201 no:yes:* )
ec6a6fbe
AK
7202 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7203$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7204 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7205$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7206 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7207$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7208 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7209$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7210 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7211$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7212 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7213$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 7214
ad6254c5
AK
7215 ;;
7216esac
ec6a6fbe
AK
7217{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7218$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 7219if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 7220 $as_echo_n "(cached) " >&6
ad6254c5 7221else
8a2fc586 7222 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 7223fi
ec6a6fbe
AK
7224ac_res=`eval 'as_val=${'$as_ac_Header'}
7225 $as_echo "$as_val"'`
7226 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7227$as_echo "$ac_res" >&6; }
ad6254c5 7228
795ca3e5 7229fi
ec6a6fbe
AK
7230as_val=`eval 'as_val=${'$as_ac_Header'}
7231 $as_echo "$as_val"'`
7232 if test "x$as_val" = x""yes; then
ad6254c5 7233 cat >>confdefs.h <<_ACEOF
ec6a6fbe 7234#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
7235_ACEOF
7236
7237fi
7238
7239done
795ca3e5 7240
ad6254c5
AK
7241
7242
7243for ac_func in fork vfork
7244do
ec6a6fbe
AK
7245as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7246{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7247$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 7248if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 7249 $as_echo_n "(cached) " >&6
795ca3e5 7250else
ad6254c5 7251 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7252/* confdefs.h. */
7253_ACEOF
7254cat confdefs.h >>conftest.$ac_ext
7255cat >>conftest.$ac_ext <<_ACEOF
7256/* end confdefs.h. */
8a2fc586
AK
7257/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7258 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7259#define $ac_func innocuous_$ac_func
7260
ad6254c5
AK
7261/* System header to define __stub macros and hopefully few prototypes,
7262 which can conflict with char $ac_func (); below.
7263 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7264 <limits.h> exists even on freestanding compilers. */
8a2fc586 7265
ad6254c5
AK
7266#ifdef __STDC__
7267# include <limits.h>
7268#else
7269# include <assert.h>
795ca3e5 7270#endif
8a2fc586
AK
7271
7272#undef $ac_func
7273
7a197a62
AK
7274/* Override any GCC internal prototype to avoid an error.
7275 Use char because int might match the return type of a GCC
7276 builtin and then its argument prototype would still apply. */
795ca3e5 7277#ifdef __cplusplus
ad6254c5 7278extern "C"
ad6254c5 7279#endif
ad6254c5
AK
7280char $ac_func ();
7281/* The GNU C library defines this for functions which it implements
7282 to always fail with ENOSYS. Some functions are actually named
7283 something starting with __ and the normal name is an alias. */
7a197a62 7284#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 7285choke me
795ca3e5
AK
7286#endif
7287
ad6254c5
AK
7288int
7289main ()
7290{
7a197a62 7291return $ac_func ();
ad6254c5
AK
7292 ;
7293 return 0;
7294}
7295_ACEOF
7296rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
7297if { (ac_try="$ac_link"
7298case "(($ac_try" in
7299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7300 *) ac_try_echo=$ac_try;;
7301esac
ec6a6fbe
AK
7302eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7303$as_echo "$ac_try_echo") >&5
7a197a62 7304 (eval "$ac_link") 2>conftest.er1
ad6254c5 7305 ac_status=$?
8a2fc586
AK
7306 grep -v '^ *+' conftest.er1 >conftest.err
7307 rm -f conftest.er1
7308 cat conftest.err >&5
ec6a6fbe 7309 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7310 (exit $ac_status); } && {
7311 test -z "$ac_c_werror_flag" ||
7312 test ! -s conftest.err
ec6a6fbe
AK
7313 } && test -s conftest$ac_exeext && {
7314 test "$cross_compiling" = yes ||
7315 $as_test_x conftest$ac_exeext
7316 }; then
ad6254c5 7317 eval "$as_ac_var=yes"
795ca3e5 7318else
ec6a6fbe 7319 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7320sed 's/^/| /' conftest.$ac_ext >&5
7321
7a197a62 7322 eval "$as_ac_var=no"
795ca3e5 7323fi
7a197a62 7324
ec6a6fbe 7325rm -rf conftest.dSYM
25fbec5b 7326rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 7327 conftest$ac_exeext conftest.$ac_ext
ad6254c5 7328fi
ec6a6fbe
AK
7329ac_res=`eval 'as_val=${'$as_ac_var'}
7330 $as_echo "$as_val"'`
7331 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7332$as_echo "$ac_res" >&6; }
7333as_val=`eval 'as_val=${'$as_ac_var'}
7334 $as_echo "$as_val"'`
7335 if test "x$as_val" = x""yes; then
ad6254c5 7336 cat >>confdefs.h <<_ACEOF
ec6a6fbe 7337#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
7338_ACEOF
7339
7340fi
7341done
7342
7343if test "x$ac_cv_func_fork" = xyes; then
ec6a6fbe
AK
7344 { $as_echo "$as_me:$LINENO: checking for working fork" >&5
7345$as_echo_n "checking for working fork... " >&6; }
ad6254c5 7346if test "${ac_cv_func_fork_works+set}" = set; then
ec6a6fbe 7347 $as_echo_n "(cached) " >&6
ad6254c5
AK
7348else
7349 if test "$cross_compiling" = yes; then
7350 ac_cv_func_fork_works=cross
7351else
7352 cat >conftest.$ac_ext <<_ACEOF
7a197a62
AK
7353/* confdefs.h. */
7354_ACEOF
7355cat confdefs.h >>conftest.$ac_ext
7356cat >>conftest.$ac_ext <<_ACEOF
7357/* end confdefs.h. */
7358$ac_includes_default
7359int
7360main ()
7361{
7362
7363 /* By Ruediger Kuhlmann. */
7364 return fork () < 0;
7365
7366 ;
7367 return 0;
7368}
ad6254c5
AK
7369_ACEOF
7370rm -f conftest$ac_exeext
7a197a62
AK
7371if { (ac_try="$ac_link"
7372case "(($ac_try" in
7373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7374 *) ac_try_echo=$ac_try;;
7375esac
ec6a6fbe
AK
7376eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7377$as_echo "$ac_try_echo") >&5
7a197a62 7378 (eval "$ac_link") 2>&5
ad6254c5 7379 ac_status=$?
ec6a6fbe 7380 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7381 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7382 { (case "(($ac_try" in
7383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7384 *) ac_try_echo=$ac_try;;
7385esac
ec6a6fbe
AK
7386eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7387$as_echo "$ac_try_echo") >&5
7a197a62 7388 (eval "$ac_try") 2>&5
ad6254c5 7389 ac_status=$?
ec6a6fbe 7390 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7391 (exit $ac_status); }; }; then
7392 ac_cv_func_fork_works=yes
7393else
ec6a6fbe
AK
7394 $as_echo "$as_me: program exited with status $ac_status" >&5
7395$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7396sed 's/^/| /' conftest.$ac_ext >&5
7397
7398( exit $ac_status )
7399ac_cv_func_fork_works=no
7400fi
ec6a6fbe 7401rm -rf conftest.dSYM
7a197a62 7402rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7403fi
7a197a62
AK
7404
7405
ad6254c5 7406fi
ec6a6fbe
AK
7407{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
7408$as_echo "$ac_cv_func_fork_works" >&6; }
ad6254c5
AK
7409
7410else
7411 ac_cv_func_fork_works=$ac_cv_func_fork
7412fi
7413if test "x$ac_cv_func_fork_works" = xcross; then
7414 case $host in
7415 *-*-amigaos* | *-*-msdosdjgpp*)
7416 # Override, as these systems have only a dummy fork() stub
7417 ac_cv_func_fork_works=no
7418 ;;
7419 *)
7420 ac_cv_func_fork_works=yes
7421 ;;
7422 esac
ec6a6fbe
AK
7423 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
7424$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
ad6254c5
AK
7425fi
7426ac_cv_func_vfork_works=$ac_cv_func_vfork
7427if test "x$ac_cv_func_vfork" = xyes; then
ec6a6fbe
AK
7428 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
7429$as_echo_n "checking for working vfork... " >&6; }
ad6254c5 7430if test "${ac_cv_func_vfork_works+set}" = set; then
ec6a6fbe 7431 $as_echo_n "(cached) " >&6
ad6254c5
AK
7432else
7433 if test "$cross_compiling" = yes; then
7434 ac_cv_func_vfork_works=cross
7435else
7436 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7437/* confdefs.h. */
7438_ACEOF
7439cat confdefs.h >>conftest.$ac_ext
7440cat >>conftest.$ac_ext <<_ACEOF
7441/* end confdefs.h. */
7442/* Thanks to Paul Eggert for this test. */
7a197a62 7443$ac_includes_default
ad6254c5 7444#include <sys/wait.h>
25fbec5b 7445#ifdef HAVE_VFORK_H
ad6254c5
AK
7446# include <vfork.h>
7447#endif
7448/* On some sparc systems, changes by the child to local and incoming
7449 argument registers are propagated back to the parent. The compiler
7450 is told about this with #include <vfork.h>, but some compilers
7451 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
7452 static variable whose address is put into a register that is
7453 clobbered by the vfork. */
7454static void
7455#ifdef __cplusplus
7456sparc_address_test (int arg)
7457# else
7458sparc_address_test (arg) int arg;
7459#endif
7460{
7461 static pid_t child;
7462 if (!child) {
7463 child = vfork ();
7464 if (child < 0) {
7465 perror ("vfork");
7466 _exit(2);
7467 }
7468 if (!child) {
7469 arg = getpid();
7470 write(-1, "", 0);
7471 _exit (arg);
7472 }
7473 }
7474}
7475
7476int
7477main ()
7478{
7479 pid_t parent = getpid ();
7480 pid_t child;
7481
7482 sparc_address_test (0);
7483
7484 child = vfork ();
7485
7486 if (child == 0) {
7487 /* Here is another test for sparc vfork register problems. This
7488 test uses lots of local variables, at least as many local
7489 variables as main has allocated so far including compiler
7490 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
7491 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
7492 reuse the register of parent for one of the local variables,
7493 since it will think that parent can't possibly be used any more
7494 in this routine. Assigning to the local variable will thus
7495 munge parent in the parent process. */
7496 pid_t
7497 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
7498 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
7499 /* Convince the compiler that p..p7 are live; otherwise, it might
7500 use the same hardware register for all 8 local variables. */
7501 if (p != p1 || p != p2 || p != p3 || p != p4
7502 || p != p5 || p != p6 || p != p7)
7503 _exit(1);
7504
7505 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
7506 from child file descriptors. If the child closes a descriptor
7507 before it execs or exits, this munges the parent's descriptor
7508 as well. Test for this by closing stdout in the child. */
7509 _exit(close(fileno(stdout)) != 0);
7510 } else {
7511 int status;
7512 struct stat st;
7513
7514 while (wait(&status) != child)
7515 ;
7a197a62 7516 return (
ad6254c5
AK
7517 /* Was there some problem with vforking? */
7518 child < 0
7519
7520 /* Did the child fail? (This shouldn't happen.) */
7521 || status
7522
7523 /* Did the vfork/compiler bug occur? */
7524 || parent != getpid()
7525
7526 /* Did the file descriptor bug occur? */
7527 || fstat(fileno(stdout), &st) != 0
7528 );
7529 }
7530}
7531_ACEOF
7532rm -f conftest$ac_exeext
7a197a62
AK
7533if { (ac_try="$ac_link"
7534case "(($ac_try" in
7535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7536 *) ac_try_echo=$ac_try;;
7537esac
ec6a6fbe
AK
7538eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7539$as_echo "$ac_try_echo") >&5
7a197a62 7540 (eval "$ac_link") 2>&5
ad6254c5 7541 ac_status=$?
ec6a6fbe 7542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7543 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7544 { (case "(($ac_try" in
7545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7546 *) ac_try_echo=$ac_try;;
7547esac
ec6a6fbe
AK
7548eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7549$as_echo "$ac_try_echo") >&5
7a197a62 7550 (eval "$ac_try") 2>&5
ad6254c5 7551 ac_status=$?
ec6a6fbe 7552 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7553 (exit $ac_status); }; }; then
7554 ac_cv_func_vfork_works=yes
7555else
ec6a6fbe
AK
7556 $as_echo "$as_me: program exited with status $ac_status" >&5
7557$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7558sed 's/^/| /' conftest.$ac_ext >&5
7559
7560( exit $ac_status )
7561ac_cv_func_vfork_works=no
7562fi
ec6a6fbe 7563rm -rf conftest.dSYM
7a197a62 7564rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7565fi
7a197a62
AK
7566
7567
ad6254c5 7568fi
ec6a6fbe
AK
7569{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
7570$as_echo "$ac_cv_func_vfork_works" >&6; }
ad6254c5
AK
7571
7572fi;
7573if test "x$ac_cv_func_fork_works" = xcross; then
8a2fc586 7574 ac_cv_func_vfork_works=$ac_cv_func_vfork
ec6a6fbe
AK
7575 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
7576$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
ad6254c5
AK
7577fi
7578
7579if test "x$ac_cv_func_vfork_works" = xyes; then
7580
7581cat >>confdefs.h <<\_ACEOF
7582#define HAVE_WORKING_VFORK 1
7583_ACEOF
7584
7585else
7586
7587cat >>confdefs.h <<\_ACEOF
7588#define vfork fork
7589_ACEOF
7590
7591fi
7592if test "x$ac_cv_func_fork_works" = xyes; then
7593
7594cat >>confdefs.h <<\_ACEOF
7595#define HAVE_WORKING_FORK 1
7596_ACEOF
7597
7598fi
7599
ec6a6fbe
AK
7600{ $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
7601$as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
ad6254c5 7602if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
ec6a6fbe 7603 $as_echo_n "(cached) " >&6
ad6254c5
AK
7604else
7605 rm -f conftest.sym conftest.file
7606echo >conftest.file
7607if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
7608 if test "$cross_compiling" = yes; then
7609 ac_cv_func_lstat_dereferences_slashed_symlink=no
7610else
7611 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7612/* confdefs.h. */
7613_ACEOF
7614cat confdefs.h >>conftest.$ac_ext
7615cat >>conftest.$ac_ext <<_ACEOF
7616/* end confdefs.h. */
7617$ac_includes_default
7618int
7619main ()
7620{
7621struct stat sbuf;
7622 /* Linux will dereference the symlink and fail.
8a2fc586
AK
7623 That is better in the sense that it means we will not
7624 have to compile and use the lstat wrapper. */
7a197a62 7625 return lstat ("conftest.sym/", &sbuf) == 0;
ad6254c5
AK
7626 ;
7627 return 0;
7628}
7629_ACEOF
7630rm -f conftest$ac_exeext
7a197a62
AK
7631if { (ac_try="$ac_link"
7632case "(($ac_try" in
7633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7634 *) ac_try_echo=$ac_try;;
7635esac
ec6a6fbe
AK
7636eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7637$as_echo "$ac_try_echo") >&5
7a197a62 7638 (eval "$ac_link") 2>&5
ad6254c5 7639 ac_status=$?
ec6a6fbe 7640 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7641 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7642 { (case "(($ac_try" in
7643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7644 *) ac_try_echo=$ac_try;;
7645esac
ec6a6fbe
AK
7646eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7647$as_echo "$ac_try_echo") >&5
7a197a62 7648 (eval "$ac_try") 2>&5
ad6254c5 7649 ac_status=$?
ec6a6fbe 7650 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7651 (exit $ac_status); }; }; then
7652 ac_cv_func_lstat_dereferences_slashed_symlink=yes
7653else
ec6a6fbe
AK
7654 $as_echo "$as_me: program exited with status $ac_status" >&5
7655$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7656sed 's/^/| /' conftest.$ac_ext >&5
7657
7658( exit $ac_status )
7659ac_cv_func_lstat_dereferences_slashed_symlink=no
7660fi
ec6a6fbe 7661rm -rf conftest.dSYM
7a197a62 7662rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7663fi
7a197a62
AK
7664
7665
ad6254c5
AK
7666else
7667 # If the `ln -s' command failed, then we probably don't even
7668 # have an lstat function.
7669 ac_cv_func_lstat_dereferences_slashed_symlink=no
7670fi
7671rm -f conftest.sym conftest.file
7672
7673fi
ec6a6fbe
AK
7674{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
7675$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
ad6254c5
AK
7676
7677test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
7678
7679cat >>confdefs.h <<_ACEOF
7680#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
7681_ACEOF
7682
7683
7684if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
7a197a62 7685 case " $LIBOBJS " in
8a2fc586 7686 *" lstat.$ac_objext "* ) ;;
7a197a62
AK
7687 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
7688 ;;
8a2fc586
AK
7689esac
7690
ad6254c5
AK
7691fi
7692
ec6a6fbe
AK
7693{ $as_echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
7694$as_echo_n "checking whether lstat accepts an empty string... " >&6; }
ad6254c5 7695if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
ec6a6fbe 7696 $as_echo_n "(cached) " >&6
ad6254c5
AK
7697else
7698 if test "$cross_compiling" = yes; then
7699 ac_cv_func_lstat_empty_string_bug=yes
7700else
7701 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7702/* confdefs.h. */
7703_ACEOF
7704cat confdefs.h >>conftest.$ac_ext
7705cat >>conftest.$ac_ext <<_ACEOF
7706/* end confdefs.h. */
7707$ac_includes_default
7708int
7709main ()
7710{
7711struct stat sbuf;
7a197a62 7712 return lstat ("", &sbuf) == 0;
ad6254c5
AK
7713 ;
7714 return 0;
7715}
7716_ACEOF
7717rm -f conftest$ac_exeext
7a197a62
AK
7718if { (ac_try="$ac_link"
7719case "(($ac_try" in
7720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7721 *) ac_try_echo=$ac_try;;
7722esac
ec6a6fbe
AK
7723eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7724$as_echo "$ac_try_echo") >&5
7a197a62 7725 (eval "$ac_link") 2>&5
ad6254c5 7726 ac_status=$?
ec6a6fbe 7727 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7728 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7729 { (case "(($ac_try" in
7730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7731 *) ac_try_echo=$ac_try;;
7732esac
ec6a6fbe
AK
7733eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7734$as_echo "$ac_try_echo") >&5
7a197a62 7735 (eval "$ac_try") 2>&5
ad6254c5 7736 ac_status=$?
ec6a6fbe 7737 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7738 (exit $ac_status); }; }; then
7a197a62 7739 ac_cv_func_lstat_empty_string_bug=no
ad6254c5 7740else
ec6a6fbe
AK
7741 $as_echo "$as_me: program exited with status $ac_status" >&5
7742$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7743sed 's/^/| /' conftest.$ac_ext >&5
7744
7745( exit $ac_status )
7a197a62 7746ac_cv_func_lstat_empty_string_bug=yes
ad6254c5 7747fi
ec6a6fbe 7748rm -rf conftest.dSYM
7a197a62 7749rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7750fi
7a197a62
AK
7751
7752
ad6254c5 7753fi
ec6a6fbe
AK
7754{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
7755$as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
ad6254c5 7756if test $ac_cv_func_lstat_empty_string_bug = yes; then
7a197a62 7757 case " $LIBOBJS " in
8a2fc586 7758 *" lstat.$ac_objext "* ) ;;
7a197a62
AK
7759 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
7760 ;;
8a2fc586
AK
7761esac
7762
ad6254c5
AK
7763
7764cat >>confdefs.h <<_ACEOF
7765#define HAVE_LSTAT_EMPTY_STRING_BUG 1
7766_ACEOF
7767
7768fi
7769
7770
7771for ac_header in stdlib.h
7772do
ec6a6fbe 7773as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 7774if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
7775 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7776$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 7777if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 7778 $as_echo_n "(cached) " >&6
ad6254c5 7779fi
ec6a6fbe
AK
7780ac_res=`eval 'as_val=${'$as_ac_Header'}
7781 $as_echo "$as_val"'`
7782 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7783$as_echo "$ac_res" >&6; }
ad6254c5
AK
7784else
7785 # Is the header compilable?
ec6a6fbe
AK
7786{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7787$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 7788cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7789/* confdefs.h. */
7790_ACEOF
7791cat confdefs.h >>conftest.$ac_ext
7792cat >>conftest.$ac_ext <<_ACEOF
7793/* end confdefs.h. */
7794$ac_includes_default
7795#include <$ac_header>
7796_ACEOF
7797rm -f conftest.$ac_objext
7a197a62
AK
7798if { (ac_try="$ac_compile"
7799case "(($ac_try" in
7800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7801 *) ac_try_echo=$ac_try;;
7802esac
ec6a6fbe
AK
7803eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7804$as_echo "$ac_try_echo") >&5
7a197a62 7805 (eval "$ac_compile") 2>conftest.er1
ad6254c5 7806 ac_status=$?
8a2fc586
AK
7807 grep -v '^ *+' conftest.er1 >conftest.err
7808 rm -f conftest.er1
7809 cat conftest.err >&5
ec6a6fbe 7810 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7811 (exit $ac_status); } && {
7812 test -z "$ac_c_werror_flag" ||
7813 test ! -s conftest.err
7814 } && test -s conftest.$ac_objext; then
ad6254c5
AK
7815 ac_header_compiler=yes
7816else
ec6a6fbe 7817 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7818sed 's/^/| /' conftest.$ac_ext >&5
7819
7a197a62 7820 ac_header_compiler=no
ad6254c5 7821fi
7a197a62
AK
7822
7823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
7824{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7825$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
7826
7827# Is the header present?
ec6a6fbe
AK
7828{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7829$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 7830cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7831/* confdefs.h. */
7832_ACEOF
7833cat confdefs.h >>conftest.$ac_ext
7834cat >>conftest.$ac_ext <<_ACEOF
7835/* end confdefs.h. */
7836#include <$ac_header>
7837_ACEOF
7a197a62
AK
7838if { (ac_try="$ac_cpp conftest.$ac_ext"
7839case "(($ac_try" in
7840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7841 *) ac_try_echo=$ac_try;;
7842esac
ec6a6fbe
AK
7843eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7844$as_echo "$ac_try_echo") >&5
7a197a62 7845 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
7846 ac_status=$?
7847 grep -v '^ *+' conftest.er1 >conftest.err
7848 rm -f conftest.er1
7849 cat conftest.err >&5
ec6a6fbe 7850 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7851 (exit $ac_status); } >/dev/null && {
7852 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7853 test ! -s conftest.err
7854 }; then
ad6254c5
AK
7855 ac_header_preproc=yes
7856else
ec6a6fbe 7857 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7858sed 's/^/| /' conftest.$ac_ext >&5
7859
7860 ac_header_preproc=no
7861fi
7a197a62 7862
ad6254c5 7863rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
7864{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7865$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
7866
7867# So? What about this header?
8a2fc586
AK
7868case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7869 yes:no: )
ec6a6fbe
AK
7870 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7871$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7872 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7873$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 7874 ac_header_preproc=yes
ad6254c5 7875 ;;
8a2fc586 7876 no:yes:* )
ec6a6fbe
AK
7877 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7878$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7879 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7880$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7881 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7882$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7883 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7884$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7885 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7886$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7887 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7888$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 7889
ad6254c5
AK
7890 ;;
7891esac
ec6a6fbe
AK
7892{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7893$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 7894if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 7895 $as_echo_n "(cached) " >&6
ad6254c5 7896else
8a2fc586 7897 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 7898fi
ec6a6fbe
AK
7899ac_res=`eval 'as_val=${'$as_ac_Header'}
7900 $as_echo "$as_val"'`
7901 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7902$as_echo "$ac_res" >&6; }
ad6254c5
AK
7903
7904fi
ec6a6fbe
AK
7905as_val=`eval 'as_val=${'$as_ac_Header'}
7906 $as_echo "$as_val"'`
7907 if test "x$as_val" = x""yes; then
ad6254c5 7908 cat >>confdefs.h <<_ACEOF
ec6a6fbe 7909#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
7910_ACEOF
7911
7912fi
7913
7914done
7915
ec6a6fbe
AK
7916{ $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
7917$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
ad6254c5 7918if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
ec6a6fbe 7919 $as_echo_n "(cached) " >&6
ad6254c5
AK
7920else
7921 if test "$cross_compiling" = yes; then
7922 ac_cv_func_malloc_0_nonnull=no
7923else
7924 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7925/* confdefs.h. */
7926_ACEOF
7927cat confdefs.h >>conftest.$ac_ext
7928cat >>conftest.$ac_ext <<_ACEOF
7929/* end confdefs.h. */
25fbec5b 7930#if defined STDC_HEADERS || defined HAVE_STDLIB_H
ad6254c5
AK
7931# include <stdlib.h>
7932#else
7933char *malloc ();
7934#endif
7935
7936int
7937main ()
7938{
7a197a62 7939return ! malloc (0);
ad6254c5
AK
7940 ;
7941 return 0;
7942}
7943_ACEOF
7944rm -f conftest$ac_exeext
7a197a62
AK
7945if { (ac_try="$ac_link"
7946case "(($ac_try" in
7947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7948 *) ac_try_echo=$ac_try;;
7949esac
ec6a6fbe
AK
7950eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7951$as_echo "$ac_try_echo") >&5
7a197a62 7952 (eval "$ac_link") 2>&5
ad6254c5 7953 ac_status=$?
ec6a6fbe 7954 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7955 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7956 { (case "(($ac_try" in
7957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7958 *) ac_try_echo=$ac_try;;
7959esac
ec6a6fbe
AK
7960eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7961$as_echo "$ac_try_echo") >&5
7a197a62 7962 (eval "$ac_try") 2>&5
ad6254c5 7963 ac_status=$?
ec6a6fbe 7964 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7965 (exit $ac_status); }; }; then
7966 ac_cv_func_malloc_0_nonnull=yes
7967else
ec6a6fbe
AK
7968 $as_echo "$as_me: program exited with status $ac_status" >&5
7969$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7970sed 's/^/| /' conftest.$ac_ext >&5
7971
7972( exit $ac_status )
7973ac_cv_func_malloc_0_nonnull=no
7974fi
ec6a6fbe 7975rm -rf conftest.dSYM
7a197a62 7976rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7977fi
7a197a62
AK
7978
7979
ad6254c5 7980fi
ec6a6fbe
AK
7981{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
7982$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
ad6254c5
AK
7983if test $ac_cv_func_malloc_0_nonnull = yes; then
7984
7985cat >>confdefs.h <<\_ACEOF
7986#define HAVE_MALLOC 1
7987_ACEOF
7988
7989else
7990 cat >>confdefs.h <<\_ACEOF
7991#define HAVE_MALLOC 0
7992_ACEOF
7993
7a197a62 7994 case " $LIBOBJS " in
8a2fc586 7995 *" malloc.$ac_objext "* ) ;;
7a197a62
AK
7996 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
7997 ;;
8a2fc586
AK
7998esac
7999
ad6254c5
AK
8000
8001cat >>confdefs.h <<\_ACEOF
8002#define malloc rpl_malloc
8003_ACEOF
8004
8005fi
8006
8007
8008
ec6a6fbe
AK
8009{ $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
8010$as_echo_n "checking for working memcmp... " >&6; }
ad6254c5 8011if test "${ac_cv_func_memcmp_working+set}" = set; then
ec6a6fbe 8012 $as_echo_n "(cached) " >&6
ad6254c5
AK
8013else
8014 if test "$cross_compiling" = yes; then
8015 ac_cv_func_memcmp_working=no
8016else
8017 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8018/* confdefs.h. */
8019_ACEOF
8020cat confdefs.h >>conftest.$ac_ext
8021cat >>conftest.$ac_ext <<_ACEOF
8022/* end confdefs.h. */
8a2fc586 8023$ac_includes_default
ad6254c5
AK
8024int
8025main ()
8026{
8027
8028 /* Some versions of memcmp are not 8-bit clean. */
7a197a62 8029 char c0 = '\100', c1 = '\200', c2 = '\201';
ad6254c5 8030 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
7a197a62 8031 return 1;
ad6254c5
AK
8032
8033 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
8034 or more and with at least one buffer not starting on a 4-byte boundary.
8035 William Lewis provided this test program. */
8036 {
8037 char foo[21];
8038 char bar[21];
8039 int i;
8040 for (i = 0; i < 4; i++)
8041 {
8a2fc586
AK
8042 char *a = foo + i;
8043 char *b = bar + i;
8044 strcpy (a, "--------01111111");
8045 strcpy (b, "--------10000000");
8046 if (memcmp (a, b, 16) >= 0)
7a197a62 8047 return 1;
ad6254c5 8048 }
7a197a62 8049 return 0;
ad6254c5
AK
8050 }
8051
8052 ;
8053 return 0;
8054}
8055_ACEOF
8056rm -f conftest$ac_exeext
7a197a62
AK
8057if { (ac_try="$ac_link"
8058case "(($ac_try" in
8059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8060 *) ac_try_echo=$ac_try;;
8061esac
ec6a6fbe
AK
8062eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8063$as_echo "$ac_try_echo") >&5
7a197a62 8064 (eval "$ac_link") 2>&5
ad6254c5 8065 ac_status=$?
ec6a6fbe 8066 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 8067 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
8068 { (case "(($ac_try" in
8069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8070 *) ac_try_echo=$ac_try;;
8071esac
ec6a6fbe
AK
8072eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8073$as_echo "$ac_try_echo") >&5
7a197a62 8074 (eval "$ac_try") 2>&5
ad6254c5 8075 ac_status=$?
ec6a6fbe 8076 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
8077 (exit $ac_status); }; }; then
8078 ac_cv_func_memcmp_working=yes
8079else
ec6a6fbe
AK
8080 $as_echo "$as_me: program exited with status $ac_status" >&5
8081$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8082sed 's/^/| /' conftest.$ac_ext >&5
8083
8084( exit $ac_status )
8085ac_cv_func_memcmp_working=no
8086fi
ec6a6fbe 8087rm -rf conftest.dSYM
7a197a62 8088rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 8089fi
7a197a62
AK
8090
8091
ad6254c5 8092fi
ec6a6fbe
AK
8093{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
8094$as_echo "$ac_cv_func_memcmp_working" >&6; }
7a197a62 8095test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
8a2fc586 8096 *" memcmp.$ac_objext "* ) ;;
7a197a62
AK
8097 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
8098 ;;
8a2fc586
AK
8099esac
8100
ad6254c5
AK
8101
8102
8103
8104for ac_header in stdlib.h unistd.h
8105do
ec6a6fbe 8106as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 8107if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
8108 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8109$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 8110if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 8111 $as_echo_n "(cached) " >&6
ad6254c5 8112fi
ec6a6fbe
AK
8113ac_res=`eval 'as_val=${'$as_ac_Header'}
8114 $as_echo "$as_val"'`
8115 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8116$as_echo "$ac_res" >&6; }
ad6254c5
AK
8117else
8118 # Is the header compilable?
ec6a6fbe
AK
8119{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8120$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 8121cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8122/* confdefs.h. */
8123_ACEOF
8124cat confdefs.h >>conftest.$ac_ext
8125cat >>conftest.$ac_ext <<_ACEOF
8126/* end confdefs.h. */
8127$ac_includes_default
8128#include <$ac_header>
8129_ACEOF
8130rm -f conftest.$ac_objext
7a197a62
AK
8131if { (ac_try="$ac_compile"
8132case "(($ac_try" in
8133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8134 *) ac_try_echo=$ac_try;;
8135esac
ec6a6fbe
AK
8136eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8137$as_echo "$ac_try_echo") >&5
7a197a62 8138 (eval "$ac_compile") 2>conftest.er1
ad6254c5 8139 ac_status=$?
8a2fc586
AK
8140 grep -v '^ *+' conftest.er1 >conftest.err
8141 rm -f conftest.er1
8142 cat conftest.err >&5
ec6a6fbe 8143 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8144 (exit $ac_status); } && {
8145 test -z "$ac_c_werror_flag" ||
8146 test ! -s conftest.err
8147 } && test -s conftest.$ac_objext; then
ad6254c5
AK
8148 ac_header_compiler=yes
8149else
ec6a6fbe 8150 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8151sed 's/^/| /' conftest.$ac_ext >&5
8152
7a197a62 8153 ac_header_compiler=no
ad6254c5 8154fi
7a197a62
AK
8155
8156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
8157{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8158$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
8159
8160# Is the header present?
ec6a6fbe
AK
8161{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8162$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 8163cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8164/* confdefs.h. */
8165_ACEOF
8166cat confdefs.h >>conftest.$ac_ext
8167cat >>conftest.$ac_ext <<_ACEOF
8168/* end confdefs.h. */
8169#include <$ac_header>
8170_ACEOF
7a197a62
AK
8171if { (ac_try="$ac_cpp conftest.$ac_ext"
8172case "(($ac_try" in
8173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8174 *) ac_try_echo=$ac_try;;
8175esac
ec6a6fbe
AK
8176eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8177$as_echo "$ac_try_echo") >&5
7a197a62 8178 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
8179 ac_status=$?
8180 grep -v '^ *+' conftest.er1 >conftest.err
8181 rm -f conftest.er1
8182 cat conftest.err >&5
ec6a6fbe 8183 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8184 (exit $ac_status); } >/dev/null && {
8185 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8186 test ! -s conftest.err
8187 }; then
ad6254c5
AK
8188 ac_header_preproc=yes
8189else
ec6a6fbe 8190 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8191sed 's/^/| /' conftest.$ac_ext >&5
8192
8193 ac_header_preproc=no
8194fi
7a197a62 8195
ad6254c5 8196rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
8197{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8198$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
8199
8200# So? What about this header?
8a2fc586
AK
8201case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8202 yes:no: )
ec6a6fbe
AK
8203 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8204$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8205 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8206$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 8207 ac_header_preproc=yes
ad6254c5 8208 ;;
8a2fc586 8209 no:yes:* )
ec6a6fbe
AK
8210 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8211$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8212 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8213$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8214 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8215$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8216 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8217$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8218 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8219$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8220 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8221$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 8222
ad6254c5
AK
8223 ;;
8224esac
ec6a6fbe
AK
8225{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8226$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 8227if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 8228 $as_echo_n "(cached) " >&6
ad6254c5 8229else
8a2fc586 8230 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 8231fi
ec6a6fbe
AK
8232ac_res=`eval 'as_val=${'$as_ac_Header'}
8233 $as_echo "$as_val"'`
8234 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8235$as_echo "$ac_res" >&6; }
ad6254c5
AK
8236
8237fi
ec6a6fbe
AK
8238as_val=`eval 'as_val=${'$as_ac_Header'}
8239 $as_echo "$as_val"'`
8240 if test "x$as_val" = x""yes; then
ad6254c5 8241 cat >>confdefs.h <<_ACEOF
ec6a6fbe 8242#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
8243_ACEOF
8244
8245fi
8246
8247done
8248
8249
8250for ac_func in getpagesize
8251do
ec6a6fbe
AK
8252as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8253{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8254$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 8255if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 8256 $as_echo_n "(cached) " >&6
ad6254c5
AK
8257else
8258 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8259/* confdefs.h. */
8260_ACEOF
8261cat confdefs.h >>conftest.$ac_ext
8262cat >>conftest.$ac_ext <<_ACEOF
8263/* end confdefs.h. */
8a2fc586
AK
8264/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8265 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8266#define $ac_func innocuous_$ac_func
8267
ad6254c5
AK
8268/* System header to define __stub macros and hopefully few prototypes,
8269 which can conflict with char $ac_func (); below.
8270 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8271 <limits.h> exists even on freestanding compilers. */
8a2fc586 8272
ad6254c5
AK
8273#ifdef __STDC__
8274# include <limits.h>
8275#else
8276# include <assert.h>
8277#endif
8a2fc586
AK
8278
8279#undef $ac_func
8280
7a197a62
AK
8281/* Override any GCC internal prototype to avoid an error.
8282 Use char because int might match the return type of a GCC
8283 builtin and then its argument prototype would still apply. */
ad6254c5
AK
8284#ifdef __cplusplus
8285extern "C"
ad6254c5 8286#endif
ad6254c5
AK
8287char $ac_func ();
8288/* The GNU C library defines this for functions which it implements
8289 to always fail with ENOSYS. Some functions are actually named
8290 something starting with __ and the normal name is an alias. */
7a197a62 8291#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 8292choke me
ad6254c5
AK
8293#endif
8294
8295int
8296main ()
8297{
7a197a62 8298return $ac_func ();
ad6254c5
AK
8299 ;
8300 return 0;
8301}
8302_ACEOF
8303rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
8304if { (ac_try="$ac_link"
8305case "(($ac_try" in
8306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8307 *) ac_try_echo=$ac_try;;
8308esac
ec6a6fbe
AK
8309eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8310$as_echo "$ac_try_echo") >&5
7a197a62 8311 (eval "$ac_link") 2>conftest.er1
ad6254c5 8312 ac_status=$?
8a2fc586
AK
8313 grep -v '^ *+' conftest.er1 >conftest.err
8314 rm -f conftest.er1
8315 cat conftest.err >&5
ec6a6fbe 8316 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8317 (exit $ac_status); } && {
8318 test -z "$ac_c_werror_flag" ||
8319 test ! -s conftest.err
ec6a6fbe
AK
8320 } && test -s conftest$ac_exeext && {
8321 test "$cross_compiling" = yes ||
8322 $as_test_x conftest$ac_exeext
8323 }; then
ad6254c5
AK
8324 eval "$as_ac_var=yes"
8325else
ec6a6fbe 8326 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8327sed 's/^/| /' conftest.$ac_ext >&5
8328
7a197a62 8329 eval "$as_ac_var=no"
ad6254c5 8330fi
7a197a62 8331
ec6a6fbe 8332rm -rf conftest.dSYM
25fbec5b 8333rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 8334 conftest$ac_exeext conftest.$ac_ext
ad6254c5 8335fi
ec6a6fbe
AK
8336ac_res=`eval 'as_val=${'$as_ac_var'}
8337 $as_echo "$as_val"'`
8338 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8339$as_echo "$ac_res" >&6; }
8340as_val=`eval 'as_val=${'$as_ac_var'}
8341 $as_echo "$as_val"'`
8342 if test "x$as_val" = x""yes; then
ad6254c5 8343 cat >>confdefs.h <<_ACEOF
ec6a6fbe 8344#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
8345_ACEOF
8346
8347fi
8348done
8349
ec6a6fbe
AK
8350{ $as_echo "$as_me:$LINENO: checking for working mmap" >&5
8351$as_echo_n "checking for working mmap... " >&6; }
ad6254c5 8352if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
ec6a6fbe 8353 $as_echo_n "(cached) " >&6
ad6254c5
AK
8354else
8355 if test "$cross_compiling" = yes; then
8356 ac_cv_func_mmap_fixed_mapped=no
8357else
8358 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8359/* confdefs.h. */
8360_ACEOF
8361cat confdefs.h >>conftest.$ac_ext
8362cat >>conftest.$ac_ext <<_ACEOF
8363/* end confdefs.h. */
8364$ac_includes_default
8365/* malloc might have been renamed as rpl_malloc. */
8366#undef malloc
8367
8368/* Thanks to Mike Haertel and Jim Avera for this test.
8369 Here is a matrix of mmap possibilities:
8370 mmap private not fixed
8371 mmap private fixed at somewhere currently unmapped
8372 mmap private fixed at somewhere already mapped
8373 mmap shared not fixed
8374 mmap shared fixed at somewhere currently unmapped
8375 mmap shared fixed at somewhere already mapped
8376 For private mappings, we should verify that changes cannot be read()
8377 back from the file, nor mmap's back from the file at a different
8378 address. (There have been systems where private was not correctly
8379 implemented like the infamous i386 svr4.0, and systems where the
8380 VM page cache was not coherent with the file system buffer cache
8381 like early versions of FreeBSD and possibly contemporary NetBSD.)
8382 For shared mappings, we should conversely verify that changes get
8383 propagated back to all the places they're supposed to be.
8384
8385 Grep wants private fixed already mapped.
8386 The main things grep needs to know about mmap are:
8387 * does it exist and is it safe to write into the mmap'd area
8388 * how to use it (BSD variants) */
8389
8390#include <fcntl.h>
8391#include <sys/mman.h>
8392
25fbec5b 8393#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
ad6254c5
AK
8394char *malloc ();
8395#endif
8396
8397/* This mess was copied from the GNU getpagesize.h. */
25fbec5b 8398#ifndef HAVE_GETPAGESIZE
ad6254c5 8399/* Assume that all systems that can run configure have sys/param.h. */
25fbec5b 8400# ifndef HAVE_SYS_PARAM_H
ad6254c5
AK
8401# define HAVE_SYS_PARAM_H 1
8402# endif
8403
8404# ifdef _SC_PAGESIZE
8405# define getpagesize() sysconf(_SC_PAGESIZE)
8406# else /* no _SC_PAGESIZE */
25fbec5b 8407# ifdef HAVE_SYS_PARAM_H
ad6254c5
AK
8408# include <sys/param.h>
8409# ifdef EXEC_PAGESIZE
8410# define getpagesize() EXEC_PAGESIZE
8411# else /* no EXEC_PAGESIZE */
8412# ifdef NBPG
8413# define getpagesize() NBPG * CLSIZE
8414# ifndef CLSIZE
8415# define CLSIZE 1
8416# endif /* no CLSIZE */
8417# else /* no NBPG */
8418# ifdef NBPC
8419# define getpagesize() NBPC
8420# else /* no NBPC */
8421# ifdef PAGESIZE
8422# define getpagesize() PAGESIZE
8423# endif /* PAGESIZE */
8424# endif /* no NBPC */
8425# endif /* no NBPG */
8426# endif /* no EXEC_PAGESIZE */
8427# else /* no HAVE_SYS_PARAM_H */
8428# define getpagesize() 8192 /* punt totally */
8429# endif /* no HAVE_SYS_PARAM_H */
8430# endif /* no _SC_PAGESIZE */
8431
8432#endif /* no HAVE_GETPAGESIZE */
8433
8434int
8435main ()
8436{
8437 char *data, *data2, *data3;
8438 int i, pagesize;
8439 int fd;
8440
8441 pagesize = getpagesize ();
8442
8443 /* First, make a file with some known garbage in it. */
8444 data = (char *) malloc (pagesize);
8445 if (!data)
7a197a62 8446 return 1;
ad6254c5
AK
8447 for (i = 0; i < pagesize; ++i)
8448 *(data + i) = rand ();
8449 umask (0);
8450 fd = creat ("conftest.mmap", 0600);
8451 if (fd < 0)
7a197a62 8452 return 1;
ad6254c5 8453 if (write (fd, data, pagesize) != pagesize)
7a197a62 8454 return 1;
ad6254c5
AK
8455 close (fd);
8456
8457 /* Next, try to mmap the file at a fixed address which already has
8458 something else allocated at it. If we can, also make sure that
8459 we see the same garbage. */
8460 fd = open ("conftest.mmap", O_RDWR);
8461 if (fd < 0)
7a197a62 8462 return 1;
ad6254c5
AK
8463 data2 = (char *) malloc (2 * pagesize);
8464 if (!data2)
7a197a62
AK
8465 return 1;
8466 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
ad6254c5 8467 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8a2fc586 8468 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7a197a62 8469 return 1;
ad6254c5
AK
8470 for (i = 0; i < pagesize; ++i)
8471 if (*(data + i) != *(data2 + i))
7a197a62 8472 return 1;
ad6254c5
AK
8473
8474 /* Finally, make sure that changes to the mapped area do not
8475 percolate back to the file as seen by read(). (This is a bug on
8476 some variants of i386 svr4.0.) */
8477 for (i = 0; i < pagesize; ++i)
8478 *(data2 + i) = *(data2 + i) + 1;
8479 data3 = (char *) malloc (pagesize);
8480 if (!data3)
7a197a62 8481 return 1;
ad6254c5 8482 if (read (fd, data3, pagesize) != pagesize)
7a197a62 8483 return 1;
ad6254c5
AK
8484 for (i = 0; i < pagesize; ++i)
8485 if (*(data + i) != *(data3 + i))
7a197a62 8486 return 1;
ad6254c5 8487 close (fd);
7a197a62 8488 return 0;
ad6254c5
AK
8489}
8490_ACEOF
8491rm -f conftest$ac_exeext
7a197a62
AK
8492if { (ac_try="$ac_link"
8493case "(($ac_try" in
8494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8495 *) ac_try_echo=$ac_try;;
8496esac
ec6a6fbe
AK
8497eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8498$as_echo "$ac_try_echo") >&5
7a197a62 8499 (eval "$ac_link") 2>&5
ad6254c5 8500 ac_status=$?
ec6a6fbe 8501 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 8502 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
8503 { (case "(($ac_try" in
8504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8505 *) ac_try_echo=$ac_try;;
8506esac
ec6a6fbe
AK
8507eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8508$as_echo "$ac_try_echo") >&5
7a197a62 8509 (eval "$ac_try") 2>&5
ad6254c5 8510 ac_status=$?
ec6a6fbe 8511 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
8512 (exit $ac_status); }; }; then
8513 ac_cv_func_mmap_fixed_mapped=yes
8514else
ec6a6fbe
AK
8515 $as_echo "$as_me: program exited with status $ac_status" >&5
8516$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8517sed 's/^/| /' conftest.$ac_ext >&5
8518
8519( exit $ac_status )
8520ac_cv_func_mmap_fixed_mapped=no
8521fi
ec6a6fbe 8522rm -rf conftest.dSYM
7a197a62 8523rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 8524fi
7a197a62
AK
8525
8526
ad6254c5 8527fi
ec6a6fbe
AK
8528{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8529$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
ad6254c5
AK
8530if test $ac_cv_func_mmap_fixed_mapped = yes; then
8531
8532cat >>confdefs.h <<\_ACEOF
8533#define HAVE_MMAP 1
8534_ACEOF
8535
8536fi
8537rm -f conftest.mmap
8538
ec6a6fbe
AK
8539{ $as_echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
8540$as_echo_n "checking whether stat accepts an empty string... " >&6; }
ad6254c5 8541if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
ec6a6fbe 8542 $as_echo_n "(cached) " >&6
ad6254c5
AK
8543else
8544 if test "$cross_compiling" = yes; then
8545 ac_cv_func_stat_empty_string_bug=yes
8546else
8547 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8548/* confdefs.h. */
8549_ACEOF
8550cat confdefs.h >>conftest.$ac_ext
8551cat >>conftest.$ac_ext <<_ACEOF
8552/* end confdefs.h. */
8553$ac_includes_default
8554int
8555main ()
8556{
8557struct stat sbuf;
7a197a62 8558 return stat ("", &sbuf) == 0;
ad6254c5
AK
8559 ;
8560 return 0;
8561}
8562_ACEOF
8563rm -f conftest$ac_exeext
7a197a62
AK
8564if { (ac_try="$ac_link"
8565case "(($ac_try" in
8566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8567 *) ac_try_echo=$ac_try;;
8568esac
ec6a6fbe
AK
8569eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8570$as_echo "$ac_try_echo") >&5
7a197a62 8571 (eval "$ac_link") 2>&5
ad6254c5 8572 ac_status=$?
ec6a6fbe 8573 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 8574 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
8575 { (case "(($ac_try" in
8576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8577 *) ac_try_echo=$ac_try;;
8578esac
ec6a6fbe
AK
8579eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8580$as_echo "$ac_try_echo") >&5
7a197a62 8581 (eval "$ac_try") 2>&5
ad6254c5 8582 ac_status=$?
ec6a6fbe 8583 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 8584 (exit $ac_status); }; }; then
7a197a62 8585 ac_cv_func_stat_empty_string_bug=no
ad6254c5 8586else
ec6a6fbe
AK
8587 $as_echo "$as_me: program exited with status $ac_status" >&5
8588$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8589sed 's/^/| /' conftest.$ac_ext >&5
8590
8591( exit $ac_status )
7a197a62 8592ac_cv_func_stat_empty_string_bug=yes
ad6254c5 8593fi
ec6a6fbe 8594rm -rf conftest.dSYM
7a197a62 8595rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 8596fi
7a197a62
AK
8597
8598
ad6254c5 8599fi
ec6a6fbe
AK
8600{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
8601$as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
ad6254c5 8602if test $ac_cv_func_stat_empty_string_bug = yes; then
7a197a62 8603 case " $LIBOBJS " in
8a2fc586 8604 *" stat.$ac_objext "* ) ;;
7a197a62
AK
8605 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
8606 ;;
8a2fc586
AK
8607esac
8608
ad6254c5
AK
8609
8610cat >>confdefs.h <<_ACEOF
8611#define HAVE_STAT_EMPTY_STRING_BUG 1
8612_ACEOF
8613
8614fi
8615
ec6a6fbe
AK
8616{ $as_echo "$as_me:$LINENO: checking for working strtod" >&5
8617$as_echo_n "checking for working strtod... " >&6; }
ad6254c5 8618if test "${ac_cv_func_strtod+set}" = set; then
ec6a6fbe 8619 $as_echo_n "(cached) " >&6
ad6254c5
AK
8620else
8621 if test "$cross_compiling" = yes; then
8622 ac_cv_func_strtod=no
8623else
8624 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8625/* confdefs.h. */
8626_ACEOF
8627cat confdefs.h >>conftest.$ac_ext
8628cat >>conftest.$ac_ext <<_ACEOF
8629/* end confdefs.h. */
8630
7a197a62
AK
8631$ac_includes_default
8632#ifndef strtod
ad6254c5 8633double strtod ();
7a197a62 8634#endif
ad6254c5
AK
8635int
8636main()
8637{
8638 {
8639 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
8640 char *string = " +69";
8641 char *term;
8642 double value;
8643 value = strtod (string, &term);
8644 if (value != 69 || term != (string + 4))
7a197a62 8645 return 1;
ad6254c5
AK
8646 }
8647
8648 {
8649 /* Under Solaris 2.4, strtod returns the wrong value for the
8650 terminating character under some conditions. */
8651 char *string = "NaN";
8652 char *term;
8653 strtod (string, &term);
8654 if (term != string && *(term - 1) == 0)
7a197a62 8655 return 1;
ad6254c5 8656 }
7a197a62 8657 return 0;
ad6254c5
AK
8658}
8659
8660_ACEOF
8661rm -f conftest$ac_exeext
7a197a62
AK
8662if { (ac_try="$ac_link"
8663case "(($ac_try" in
8664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8665 *) ac_try_echo=$ac_try;;
8666esac
ec6a6fbe
AK
8667eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8668$as_echo "$ac_try_echo") >&5
7a197a62 8669 (eval "$ac_link") 2>&5
ad6254c5 8670 ac_status=$?
ec6a6fbe 8671 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 8672 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
8673 { (case "(($ac_try" in
8674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8675 *) ac_try_echo=$ac_try;;
8676esac
ec6a6fbe
AK
8677eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8678$as_echo "$ac_try_echo") >&5
7a197a62 8679 (eval "$ac_try") 2>&5
ad6254c5 8680 ac_status=$?
ec6a6fbe 8681 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
8682 (exit $ac_status); }; }; then
8683 ac_cv_func_strtod=yes
8684else
ec6a6fbe
AK
8685 $as_echo "$as_me: program exited with status $ac_status" >&5
8686$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8687sed 's/^/| /' conftest.$ac_ext >&5
8688
8689( exit $ac_status )
8690ac_cv_func_strtod=no
8691fi
ec6a6fbe 8692rm -rf conftest.dSYM
7a197a62 8693rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 8694fi
7a197a62
AK
8695
8696
ad6254c5 8697fi
ec6a6fbe
AK
8698{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
8699$as_echo "$ac_cv_func_strtod" >&6; }
ad6254c5 8700if test $ac_cv_func_strtod = no; then
7a197a62 8701 case " $LIBOBJS " in
8a2fc586 8702 *" strtod.$ac_objext "* ) ;;
7a197a62
AK
8703 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
8704 ;;
8a2fc586
AK
8705esac
8706
ec6a6fbe
AK
8707{ $as_echo "$as_me:$LINENO: checking for pow" >&5
8708$as_echo_n "checking for pow... " >&6; }
ad6254c5 8709if test "${ac_cv_func_pow+set}" = set; then
ec6a6fbe 8710 $as_echo_n "(cached) " >&6
ad6254c5
AK
8711else
8712 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8713/* confdefs.h. */
8714_ACEOF
8715cat confdefs.h >>conftest.$ac_ext
8716cat >>conftest.$ac_ext <<_ACEOF
8717/* end confdefs.h. */
8a2fc586
AK
8718/* Define pow to an innocuous variant, in case <limits.h> declares pow.
8719 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8720#define pow innocuous_pow
8721
ad6254c5
AK
8722/* System header to define __stub macros and hopefully few prototypes,
8723 which can conflict with char pow (); below.
8724 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8725 <limits.h> exists even on freestanding compilers. */
8a2fc586 8726
ad6254c5
AK
8727#ifdef __STDC__
8728# include <limits.h>
8729#else
8730# include <assert.h>
8731#endif
8a2fc586
AK
8732
8733#undef pow
8734
7a197a62
AK
8735/* Override any GCC internal prototype to avoid an error.
8736 Use char because int might match the return type of a GCC
8737 builtin and then its argument prototype would still apply. */
ad6254c5
AK
8738#ifdef __cplusplus
8739extern "C"
ad6254c5 8740#endif
ad6254c5
AK
8741char pow ();
8742/* The GNU C library defines this for functions which it implements
8743 to always fail with ENOSYS. Some functions are actually named
8744 something starting with __ and the normal name is an alias. */
7a197a62 8745#if defined __stub_pow || defined __stub___pow
ad6254c5 8746choke me
ad6254c5
AK
8747#endif
8748
8749int
8750main ()
8751{
7a197a62 8752return pow ();
ad6254c5
AK
8753 ;
8754 return 0;
8755}
8756_ACEOF
8757rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
8758if { (ac_try="$ac_link"
8759case "(($ac_try" in
8760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8761 *) ac_try_echo=$ac_try;;
8762esac
ec6a6fbe
AK
8763eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8764$as_echo "$ac_try_echo") >&5
7a197a62 8765 (eval "$ac_link") 2>conftest.er1
ad6254c5 8766 ac_status=$?
8a2fc586
AK
8767 grep -v '^ *+' conftest.er1 >conftest.err
8768 rm -f conftest.er1
8769 cat conftest.err >&5
ec6a6fbe 8770 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8771 (exit $ac_status); } && {
8772 test -z "$ac_c_werror_flag" ||
8773 test ! -s conftest.err
ec6a6fbe
AK
8774 } && test -s conftest$ac_exeext && {
8775 test "$cross_compiling" = yes ||
8776 $as_test_x conftest$ac_exeext
8777 }; then
ad6254c5
AK
8778 ac_cv_func_pow=yes
8779else
ec6a6fbe 8780 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8781sed 's/^/| /' conftest.$ac_ext >&5
8782
7a197a62 8783 ac_cv_func_pow=no
ad6254c5 8784fi
7a197a62 8785
ec6a6fbe 8786rm -rf conftest.dSYM
25fbec5b 8787rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 8788 conftest$ac_exeext conftest.$ac_ext
ad6254c5 8789fi
ec6a6fbe
AK
8790{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
8791$as_echo "$ac_cv_func_pow" >&6; }
ad6254c5
AK
8792
8793if test $ac_cv_func_pow = no; then
ec6a6fbe
AK
8794 { $as_echo "$as_me:$LINENO: checking for pow in -lm" >&5
8795$as_echo_n "checking for pow in -lm... " >&6; }
ad6254c5 8796if test "${ac_cv_lib_m_pow+set}" = set; then
ec6a6fbe 8797 $as_echo_n "(cached) " >&6
ad6254c5
AK
8798else
8799 ac_check_lib_save_LIBS=$LIBS
8800LIBS="-lm $LIBS"
8801cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8802/* confdefs.h. */
8803_ACEOF
8804cat confdefs.h >>conftest.$ac_ext
8805cat >>conftest.$ac_ext <<_ACEOF
8806/* end confdefs.h. */
8807
7a197a62
AK
8808/* Override any GCC internal prototype to avoid an error.
8809 Use char because int might match the return type of a GCC
8810 builtin and then its argument prototype would still apply. */
ad6254c5
AK
8811#ifdef __cplusplus
8812extern "C"
8813#endif
ad6254c5
AK
8814char pow ();
8815int
8816main ()
8817{
7a197a62 8818return pow ();
ad6254c5
AK
8819 ;
8820 return 0;
8821}
8822_ACEOF
8823rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
8824if { (ac_try="$ac_link"
8825case "(($ac_try" in
8826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8827 *) ac_try_echo=$ac_try;;
8828esac
ec6a6fbe
AK
8829eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8830$as_echo "$ac_try_echo") >&5
7a197a62 8831 (eval "$ac_link") 2>conftest.er1
ad6254c5 8832 ac_status=$?
8a2fc586
AK
8833 grep -v '^ *+' conftest.er1 >conftest.err
8834 rm -f conftest.er1
8835 cat conftest.err >&5
ec6a6fbe 8836 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8837 (exit $ac_status); } && {
8838 test -z "$ac_c_werror_flag" ||
8839 test ! -s conftest.err
ec6a6fbe
AK
8840 } && test -s conftest$ac_exeext && {
8841 test "$cross_compiling" = yes ||
8842 $as_test_x conftest$ac_exeext
8843 }; then
ad6254c5
AK
8844 ac_cv_lib_m_pow=yes
8845else
ec6a6fbe 8846 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8847sed 's/^/| /' conftest.$ac_ext >&5
8848
7a197a62 8849 ac_cv_lib_m_pow=no
ad6254c5 8850fi
7a197a62 8851
ec6a6fbe 8852rm -rf conftest.dSYM
25fbec5b 8853rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 8854 conftest$ac_exeext conftest.$ac_ext
ad6254c5 8855LIBS=$ac_check_lib_save_LIBS
d0191583 8856fi
ec6a6fbe
AK
8857{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
8858$as_echo "$ac_cv_lib_m_pow" >&6; }
8859if test "x$ac_cv_lib_m_pow" = x""yes; then
d0191583
JM
8860 POW_LIB=-lm
8861else
ec6a6fbe
AK
8862 { $as_echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
8863$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
d0191583 8864fi
72b2cb61 8865
d0191583 8866fi
72b2cb61 8867
ad6254c5
AK
8868fi
8869
ad6254c5 8870
d0191583
JM
8871for ac_func in vprintf
8872do
ec6a6fbe
AK
8873as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8874{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8875$as_echo_n "checking for $ac_func... " >&6; }
d0191583 8876if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 8877 $as_echo_n "(cached) " >&6
ad6254c5 8878else
d0191583
JM
8879 cat >conftest.$ac_ext <<_ACEOF
8880/* confdefs.h. */
8881_ACEOF
8882cat confdefs.h >>conftest.$ac_ext
8883cat >>conftest.$ac_ext <<_ACEOF
8884/* end confdefs.h. */
8885/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8886 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8887#define $ac_func innocuous_$ac_func
7a197a62 8888
d0191583
JM
8889/* System header to define __stub macros and hopefully few prototypes,
8890 which can conflict with char $ac_func (); below.
8891 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8892 <limits.h> exists even on freestanding compilers. */
ad6254c5 8893
d0191583
JM
8894#ifdef __STDC__
8895# include <limits.h>
8896#else
8897# include <assert.h>
8898#endif
ad6254c5 8899
d0191583 8900#undef $ac_func
72b2cb61 8901
d0191583
JM
8902/* Override any GCC internal prototype to avoid an error.
8903 Use char because int might match the return type of a GCC
8904 builtin and then its argument prototype would still apply. */
8905#ifdef __cplusplus
8906extern "C"
8907#endif
8908char $ac_func ();
8909/* The GNU C library defines this for functions which it implements
8910 to always fail with ENOSYS. Some functions are actually named
8911 something starting with __ and the normal name is an alias. */
8912#if defined __stub_$ac_func || defined __stub___$ac_func
8913choke me
8914#endif
8915
8916int
8917main ()
8918{
8919return $ac_func ();
8920 ;
8921 return 0;
8922}
72b2cb61 8923_ACEOF
d0191583
JM
8924rm -f conftest.$ac_objext conftest$ac_exeext
8925if { (ac_try="$ac_link"
8926case "(($ac_try" in
8927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8928 *) ac_try_echo=$ac_try;;
8929esac
ec6a6fbe
AK
8930eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8931$as_echo "$ac_try_echo") >&5
d0191583
JM
8932 (eval "$ac_link") 2>conftest.er1
8933 ac_status=$?
8934 grep -v '^ *+' conftest.er1 >conftest.err
8935 rm -f conftest.er1
8936 cat conftest.err >&5
ec6a6fbe 8937 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
8938 (exit $ac_status); } && {
8939 test -z "$ac_c_werror_flag" ||
8940 test ! -s conftest.err
ec6a6fbe
AK
8941 } && test -s conftest$ac_exeext && {
8942 test "$cross_compiling" = yes ||
8943 $as_test_x conftest$ac_exeext
8944 }; then
d0191583
JM
8945 eval "$as_ac_var=yes"
8946else
ec6a6fbe 8947 $as_echo "$as_me: failed program was:" >&5
d0191583 8948sed 's/^/| /' conftest.$ac_ext >&5
72b2cb61 8949
d0191583 8950 eval "$as_ac_var=no"
ad6254c5
AK
8951fi
8952
ec6a6fbe 8953rm -rf conftest.dSYM
d0191583
JM
8954rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8955 conftest$ac_exeext conftest.$ac_ext
7a197a62 8956fi
ec6a6fbe
AK
8957ac_res=`eval 'as_val=${'$as_ac_var'}
8958 $as_echo "$as_val"'`
8959 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8960$as_echo "$ac_res" >&6; }
8961as_val=`eval 'as_val=${'$as_ac_var'}
8962 $as_echo "$as_val"'`
8963 if test "x$as_val" = x""yes; then
d0191583 8964 cat >>confdefs.h <<_ACEOF
ec6a6fbe 8965#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
d0191583 8966_ACEOF
7a197a62 8967
ec6a6fbe
AK
8968{ $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
8969$as_echo_n "checking for _doprnt... " >&6; }
d0191583 8970if test "${ac_cv_func__doprnt+set}" = set; then
ec6a6fbe 8971 $as_echo_n "(cached) " >&6
ad6254c5 8972else
d0191583
JM
8973 cat >conftest.$ac_ext <<_ACEOF
8974/* confdefs.h. */
8975_ACEOF
8976cat confdefs.h >>conftest.$ac_ext
8977cat >>conftest.$ac_ext <<_ACEOF
8978/* end confdefs.h. */
8979/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
8980 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8981#define _doprnt innocuous__doprnt
7a197a62 8982
d0191583
JM
8983/* System header to define __stub macros and hopefully few prototypes,
8984 which can conflict with char _doprnt (); below.
8985 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8986 <limits.h> exists even on freestanding compilers. */
ad6254c5 8987
d0191583
JM
8988#ifdef __STDC__
8989# include <limits.h>
8990#else
8991# include <assert.h>
8992#endif
72b2cb61 8993
d0191583
JM
8994#undef _doprnt
8995
8996/* Override any GCC internal prototype to avoid an error.
8997 Use char because int might match the return type of a GCC
8998 builtin and then its argument prototype would still apply. */
8999#ifdef __cplusplus
9000extern "C"
9001#endif
9002char _doprnt ();
9003/* The GNU C library defines this for functions which it implements
9004 to always fail with ENOSYS. Some functions are actually named
9005 something starting with __ and the normal name is an alias. */
9006#if defined __stub__doprnt || defined __stub____doprnt
9007choke me
9008#endif
9009
9010int
9011main ()
9012{
9013return _doprnt ();
9014 ;
9015 return 0;
9016}
72b2cb61 9017_ACEOF
d0191583
JM
9018rm -f conftest.$ac_objext conftest$ac_exeext
9019if { (ac_try="$ac_link"
9020case "(($ac_try" in
9021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9022 *) ac_try_echo=$ac_try;;
9023esac
ec6a6fbe
AK
9024eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9025$as_echo "$ac_try_echo") >&5
d0191583
JM
9026 (eval "$ac_link") 2>conftest.er1
9027 ac_status=$?
9028 grep -v '^ *+' conftest.er1 >conftest.err
9029 rm -f conftest.er1
9030 cat conftest.err >&5
ec6a6fbe 9031 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
9032 (exit $ac_status); } && {
9033 test -z "$ac_c_werror_flag" ||
9034 test ! -s conftest.err
ec6a6fbe
AK
9035 } && test -s conftest$ac_exeext && {
9036 test "$cross_compiling" = yes ||
9037 $as_test_x conftest$ac_exeext
9038 }; then
d0191583
JM
9039 ac_cv_func__doprnt=yes
9040else
ec6a6fbe 9041 $as_echo "$as_me: failed program was:" >&5
d0191583 9042sed 's/^/| /' conftest.$ac_ext >&5
72b2cb61 9043
d0191583 9044 ac_cv_func__doprnt=no
ad6254c5
AK
9045fi
9046
ec6a6fbe 9047rm -rf conftest.dSYM
d0191583
JM
9048rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9049 conftest$ac_exeext conftest.$ac_ext
7a197a62 9050fi
ec6a6fbe
AK
9051{ $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
9052$as_echo "$ac_cv_func__doprnt" >&6; }
9053if test "x$ac_cv_func__doprnt" = x""yes; then
7a197a62 9054
d0191583
JM
9055cat >>confdefs.h <<\_ACEOF
9056#define HAVE_DOPRNT 1
9057_ACEOF
ad6254c5 9058
7a197a62
AK
9059fi
9060
d0191583
JM
9061fi
9062done
8b1a3214 9063
ad6254c5 9064
7a197a62 9065
9c961554 9066################################################################################
ec6a6fbe
AK
9067{ $as_echo "$as_me:$LINENO: checking whether to use static linking" >&5
9068$as_echo_n "checking whether to use static linking... " >&6; }
9c961554
MB
9069# Check whether --enable-static_link was given.
9070if test "${enable_static_link+set}" = set; then
9071 enableval=$enable_static_link; STATIC_LINK=$enableval
9072else
9073 STATIC_LINK=no
9074fi
9075
ec6a6fbe
AK
9076{ $as_echo "$as_me:$LINENO: result: $STATIC_LINK" >&5
9077$as_echo "$STATIC_LINK" >&6; }
9c961554 9078
d0191583 9079################################################################################
ad6254c5 9080
ad6254c5
AK
9081
9082################################################################################
ec6a6fbe
AK
9083{ $as_echo "$as_me:$LINENO: checking file owner" >&5
9084$as_echo_n "checking file owner... " >&6; }
39dabc84 9085OWNER=""
d0191583
JM
9086
9087
9088# Check whether --with-user was given.
9089if test "${with_user+set}" = set; then
9090 withval=$with_user; OWNER="$withval"
7a197a62
AK
9091fi
9092
ec6a6fbe
AK
9093{ $as_echo "$as_me:$LINENO: result: $OWNER" >&5
9094$as_echo "$OWNER" >&6; }
ad6254c5 9095
d0191583
JM
9096if test x$OWNER != x; then
9097 OWNER="-o $OWNER"
ad6254c5
AK
9098fi
9099
9100################################################################################
ec6a6fbe
AK
9101{ $as_echo "$as_me:$LINENO: checking group owner" >&5
9102$as_echo_n "checking group owner... " >&6; }
39dabc84 9103GROUP=""
ad6254c5 9104
d0191583
JM
9105# Check whether --with-group was given.
9106if test "${with_group+set}" = set; then
9107 withval=$with_group; GROUP="$withval"
7a197a62
AK
9108fi
9109
ec6a6fbe
AK
9110{ $as_echo "$as_me:$LINENO: result: $GROUP" >&5
9111$as_echo "$GROUP" >&6; }
d0191583
JM
9112
9113if test x$GROUP != x; then
9114 GROUP="-g $GROUP"
9115fi
ad6254c5 9116
24bbc4d7 9117################################################################################
ec6a6fbe
AK
9118{ $as_echo "$as_me:$LINENO: checking device node uid" >&5
9119$as_echo_n "checking device node uid... " >&6; }
24bbc4d7
AK
9120
9121
9122# Check whether --with-device-uid was given.
9123if test "${with_device_uid+set}" = set; then
9124 withval=$with_device_uid; DM_DEVICE_UID="$withval"
9125else
9126 DM_DEVICE_UID="0"
9127fi
9128
ec6a6fbe
AK
9129{ $as_echo "$as_me:$LINENO: result: $DM_DEVICE_UID" >&5
9130$as_echo "$DM_DEVICE_UID" >&6; }
24bbc4d7
AK
9131
9132################################################################################
ec6a6fbe
AK
9133{ $as_echo "$as_me:$LINENO: checking device node gid" >&5
9134$as_echo_n "checking device node gid... " >&6; }
24bbc4d7
AK
9135
9136
9137# Check whether --with-device-gid was given.
9138if test "${with_device_gid+set}" = set; then
9139 withval=$with_device_gid; DM_DEVICE_GID="$withval"
9140else
9141 DM_DEVICE_GID="0"
9142fi
9143
ec6a6fbe
AK
9144{ $as_echo "$as_me:$LINENO: result: $DM_DEVICE_GID" >&5
9145$as_echo "$DM_DEVICE_GID" >&6; }
24bbc4d7 9146
93bd259b 9147################################################################################
ec6a6fbe
AK
9148{ $as_echo "$as_me:$LINENO: checking device node mode" >&5
9149$as_echo_n "checking device node mode... " >&6; }
93bd259b
AK
9150
9151
9152# Check whether --with-device-mode was given.
9153if test "${with_device_mode+set}" = set; then
9154 withval=$with_device_mode; DM_DEVICE_MODE="$withval"
9155else
9156 DM_DEVICE_MODE="0600"
9157fi
9158
ec6a6fbe
AK
9159{ $as_echo "$as_me:$LINENO: result: $DM_DEVICE_MODE" >&5
9160$as_echo "$DM_DEVICE_MODE" >&6; }
93bd259b 9161
ad6254c5 9162################################################################################
ec6a6fbe
AK
9163{ $as_echo "$as_me:$LINENO: checking whether to enable lvm1 fallback" >&5
9164$as_echo_n "checking whether to enable lvm1 fallback... " >&6; }
d0191583
JM
9165# Check whether --enable-lvm1_fallback was given.
9166if test "${enable_lvm1_fallback+set}" = set; then
9167 enableval=$enable_lvm1_fallback; LVM1_FALLBACK=$enableval
9168else
9169 LVM1_FALLBACK=no
7a197a62
AK
9170fi
9171
ec6a6fbe
AK
9172{ $as_echo "$as_me:$LINENO: result: $LVM1_FALLBACK" >&5
9173$as_echo "$LVM1_FALLBACK" >&6; }
ad6254c5 9174
d0191583 9175if test x$LVM1_FALLBACK = xyes; then
72b2cb61
AK
9176
9177cat >>confdefs.h <<\_ACEOF
d0191583 9178#define LVM1_FALLBACK 1
72b2cb61
AK
9179_ACEOF
9180
ad6254c5
AK
9181fi
9182
9183################################################################################
ec6a6fbe
AK
9184{ $as_echo "$as_me:$LINENO: checking whether to include support for lvm1 metadata" >&5
9185$as_echo_n "checking whether to include support for lvm1 metadata... " >&6; }
d0191583
JM
9186
9187# Check whether --with-lvm1 was given.
9188if test "${with_lvm1+set}" = set; then
9189 withval=$with_lvm1; LVM1="$withval"
9190else
9191 LVM1="internal"
7a197a62
AK
9192fi
9193
ec6a6fbe
AK
9194{ $as_echo "$as_me:$LINENO: result: $LVM1" >&5
9195$as_echo "$LVM1" >&6; }
ad6254c5 9196
d0191583 9197if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ];
ec6a6fbe 9198 then { { $as_echo "$as_me:$LINENO: error: --with-lvm1 parameter invalid
d0191583 9199" >&5
ec6a6fbe 9200$as_echo "$as_me: error: --with-lvm1 parameter invalid
d0191583
JM
9201" >&2;}
9202 { (exit 1); exit 1; }; }
9203fi;
9204
9205if test x$LVM1 = xinternal; then
72b2cb61
AK
9206
9207cat >>confdefs.h <<\_ACEOF
d0191583 9208#define LVM1_INTERNAL 1
72b2cb61
AK
9209_ACEOF
9210
ad6254c5
AK
9211fi
9212
9213################################################################################
ec6a6fbe
AK
9214{ $as_echo "$as_me:$LINENO: checking whether to include support for GFS pool metadata" >&5
9215$as_echo_n "checking whether to include support for GFS pool metadata... " >&6; }
d0191583
JM
9216
9217# Check whether --with-pool was given.
9218if test "${with_pool+set}" = set; then
9219 withval=$with_pool; POOL="$withval"
ad6254c5 9220else
d0191583 9221 POOL="internal"
7a197a62
AK
9222fi
9223
ec6a6fbe
AK
9224{ $as_echo "$as_me:$LINENO: result: $POOL" >&5
9225$as_echo "$POOL" >&6; }
ad6254c5 9226
d0191583 9227if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ];
ec6a6fbe 9228 then { { $as_echo "$as_me:$LINENO: error: --with-pool parameter invalid
d0191583 9229" >&5
ec6a6fbe 9230$as_echo "$as_me: error: --with-pool parameter invalid
d0191583
JM
9231" >&2;}
9232 { (exit 1); exit 1; }; }
9233fi;
7a197a62 9234
d0191583
JM
9235if test x$POOL = xinternal; then
9236
9237cat >>confdefs.h <<\_ACEOF
9238#define POOL_INTERNAL 1
9239_ACEOF
9240
9241fi
ad6254c5 9242
06f62ad1 9243################################################################################
ec6a6fbe
AK
9244{ $as_echo "$as_me:$LINENO: checking whether to include support for cluster locking" >&5
9245$as_echo_n "checking whether to include support for cluster locking... " >&6; }
d0191583
JM
9246
9247# Check whether --with-cluster was given.
9248if test "${with_cluster+set}" = set; then
9249 withval=$with_cluster; CLUSTER="$withval"
7a197a62
AK
9250fi
9251
ec6a6fbe
AK
9252{ $as_echo "$as_me:$LINENO: result: $CLUSTER" >&5
9253$as_echo "$CLUSTER" >&6; }
06f62ad1 9254
d0191583 9255if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ];
ec6a6fbe 9256 then { { $as_echo "$as_me:$LINENO: error: --with-cluster parameter invalid
06f62ad1 9257" >&5
ec6a6fbe 9258$as_echo "$as_me: error: --with-cluster parameter invalid
06f62ad1
AK
9259" >&2;}
9260 { (exit 1); exit 1; }; }
d0191583 9261fi;
06f62ad1 9262
d0191583 9263if test x$CLUSTER = xinternal; then
72b2cb61
AK
9264
9265cat >>confdefs.h <<\_ACEOF
d0191583 9266#define CLUSTER_LOCKING_INTERNAL 1
72b2cb61
AK
9267_ACEOF
9268
15d91f5a 9269fi
ad6254c5
AK
9270
9271################################################################################
ec6a6fbe
AK
9272{ $as_echo "$as_me:$LINENO: checking whether to include snapshots" >&5
9273$as_echo_n "checking whether to include snapshots... " >&6; }
ad6254c5 9274
d0191583
JM
9275# Check whether --with-snapshots was given.
9276if test "${with_snapshots+set}" = set; then
9277 withval=$with_snapshots; SNAPSHOTS="$withval"
9278else
9279 SNAPSHOTS="internal"
ad6254c5
AK
9280fi
9281
ec6a6fbe
AK
9282{ $as_echo "$as_me:$LINENO: result: $SNAPSHOTS" >&5
9283$as_echo "$SNAPSHOTS" >&6; }
ad6254c5 9284
d0191583 9285if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ];
ec6a6fbe 9286 then { { $as_echo "$as_me:$LINENO: error: --with-snapshots parameter invalid
d0191583 9287" >&5
ec6a6fbe 9288$as_echo "$as_me: error: --with-snapshots parameter invalid
d0191583
JM
9289" >&2;}
9290 { (exit 1); exit 1; }; }
9291fi;
9292
9293if test x$SNAPSHOTS = xinternal; then
9294
9295cat >>confdefs.h <<\_ACEOF
9296#define SNAPSHOT_INTERNAL 1
9297_ACEOF
ad6254c5 9298
ad6254c5 9299fi
7a197a62 9300
d0191583 9301################################################################################
ec6a6fbe
AK
9302{ $as_echo "$as_me:$LINENO: checking whether to include mirrors" >&5
9303$as_echo_n "checking whether to include mirrors... " >&6; }
d0191583
JM
9304
9305# Check whether --with-mirrors was given.
9306if test "${with_mirrors+set}" = set; then
9307 withval=$with_mirrors; MIRRORS="$withval"
9308else
9309 MIRRORS="internal"
ad6254c5 9310fi
ad6254c5 9311
ec6a6fbe
AK
9312{ $as_echo "$as_me:$LINENO: result: $MIRRORS" >&5
9313$as_echo "$MIRRORS" >&6; }
ad6254c5 9314
d0191583 9315if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ];
ec6a6fbe 9316 then { { $as_echo "$as_me:$LINENO: error: --with-mirrors parameter invalid
d0191583 9317" >&5
ec6a6fbe 9318$as_echo "$as_me: error: --with-mirrors parameter invalid
d0191583
JM
9319" >&2;}
9320 { (exit 1); exit 1; }; }
9321fi;
ad6254c5 9322
d0191583 9323if test x$MIRRORS = xinternal; then
ad6254c5 9324
d0191583
JM
9325cat >>confdefs.h <<\_ACEOF
9326#define MIRRORED_INTERNAL 1
ad6254c5 9327_ACEOF
8a2fc586 9328
d0191583 9329fi
8a2fc586 9330
d0191583 9331################################################################################
ec6a6fbe
AK
9332{ $as_echo "$as_me:$LINENO: checking whether to enable readline" >&5
9333$as_echo_n "checking whether to enable readline... " >&6; }
d0191583
JM
9334# Check whether --enable-readline was given.
9335if test "${enable_readline+set}" = set; then
9336 enableval=$enable_readline; READLINE=$enableval
9337else
06e459df 9338 READLINE=maybe
d0191583 9339fi
8a2fc586 9340
ec6a6fbe
AK
9341{ $as_echo "$as_me:$LINENO: result: $READLINE" >&5
9342$as_echo "$READLINE" >&6; }
8a2fc586 9343
d0191583 9344################################################################################
ec6a6fbe
AK
9345{ $as_echo "$as_me:$LINENO: checking whether to enable realtime support" >&5
9346$as_echo_n "checking whether to enable realtime support... " >&6; }
d0191583
JM
9347# Check whether --enable-realtime was given.
9348if test "${enable_realtime+set}" = set; then
9349 enableval=$enable_realtime; REALTIME=$enableval
ad6254c5 9350fi
ad6254c5 9351
ec6a6fbe
AK
9352{ $as_echo "$as_me:$LINENO: result: $REALTIME" >&5
9353$as_echo "$REALTIME" >&6; }
d0191583
JM
9354
9355################################################################################
90c80887 9356pkg_config_init() {
e2997b73
AK
9357
9358
9359if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
9360 if test -n "$ac_tool_prefix"; then
9361 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
9362set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
9363{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9364$as_echo_n "checking for $ac_word... " >&6; }
9365if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9366 $as_echo_n "(cached) " >&6
9367else
9368 case $PKG_CONFIG in
9369 [\\/]* | ?:[\\/]*)
9370 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9371 ;;
9372 *)
9373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9374for as_dir in $PATH
9375do
9376 IFS=$as_save_IFS
9377 test -z "$as_dir" && as_dir=.
9378 for ac_exec_ext in '' $ac_executable_extensions; do
9379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9380 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9381 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9382 break 2
9383 fi
9384done
9385done
9386IFS=$as_save_IFS
9387
9388 ;;
9389esac
9390fi
9391PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9392if test -n "$PKG_CONFIG"; then
9393 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9394$as_echo "$PKG_CONFIG" >&6; }
9395else
9396 { $as_echo "$as_me:$LINENO: result: no" >&5
9397$as_echo "no" >&6; }
9398fi
9399
9400
9401fi
9402if test -z "$ac_cv_path_PKG_CONFIG"; then
9403 ac_pt_PKG_CONFIG=$PKG_CONFIG
9404 # Extract the first word of "pkg-config", so it can be a program name with args.
9405set dummy pkg-config; ac_word=$2
9406{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9407$as_echo_n "checking for $ac_word... " >&6; }
9408if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
9409 $as_echo_n "(cached) " >&6
9410else
9411 case $ac_pt_PKG_CONFIG in
9412 [\\/]* | ?:[\\/]*)
9413 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
9414 ;;
9415 *)
9416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9417for as_dir in $PATH
9418do
9419 IFS=$as_save_IFS
9420 test -z "$as_dir" && as_dir=.
9421 for ac_exec_ext in '' $ac_executable_extensions; do
9422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9423 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9424 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9425 break 2
9426 fi
9427done
9428done
9429IFS=$as_save_IFS
9430
9431 ;;
9432esac
9433fi
9434ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
9435if test -n "$ac_pt_PKG_CONFIG"; then
9436 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
9437$as_echo "$ac_pt_PKG_CONFIG" >&6; }
9438else
9439 { $as_echo "$as_me:$LINENO: result: no" >&5
9440$as_echo "no" >&6; }
9441fi
9442
9443 if test "x$ac_pt_PKG_CONFIG" = x; then
9444 PKG_CONFIG=""
9445 else
9446 case $cross_compiling:$ac_tool_warned in
9447yes:)
9448{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9449$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9450ac_tool_warned=yes ;;
9451esac
9452 PKG_CONFIG=$ac_pt_PKG_CONFIG
9453 fi
9454else
9455 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
9456fi
9457
9458fi
9459if test -n "$PKG_CONFIG"; then
9460 _pkg_min_version=0.9.0
9461 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
9462$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
9463 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
9464 { $as_echo "$as_me:$LINENO: result: yes" >&5
9465$as_echo "yes" >&6; }
9466 else
9467 { $as_echo "$as_me:$LINENO: result: no" >&5
9468$as_echo "no" >&6; }
9469 PKG_CONFIG=""
9470 fi
9471
9472fi
9473
9474pkg_failed=no
a946372e
AK
9475{ $as_echo "$as_me:$LINENO: checking for PKGCONFIGINIT" >&5
9476$as_echo_n "checking for PKGCONFIGINIT... " >&6; }
e2997b73 9477
a946372e
AK
9478if test -n "$PKGCONFIGINIT_CFLAGS"; then
9479 pkg_cv_PKGCONFIGINIT_CFLAGS="$PKGCONFIGINIT_CFLAGS"
e2997b73
AK
9480 elif test -n "$PKG_CONFIG"; then
9481 if test -n "$PKG_CONFIG" && \
a946372e
AK
9482 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\"") >&5
9483 ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5
e2997b73
AK
9484 ac_status=$?
9485 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9486 (exit $ac_status); }; then
a946372e 9487 pkg_cv_PKGCONFIGINIT_CFLAGS=`$PKG_CONFIG --cflags "pkgconfiginit" 2>/dev/null`
e2997b73
AK
9488else
9489 pkg_failed=yes
9490fi
9491 else
9492 pkg_failed=untried
9493fi
a946372e
AK
9494if test -n "$PKGCONFIGINIT_LIBS"; then
9495 pkg_cv_PKGCONFIGINIT_LIBS="$PKGCONFIGINIT_LIBS"
e2997b73
AK
9496 elif test -n "$PKG_CONFIG"; then
9497 if test -n "$PKG_CONFIG" && \
a946372e
AK
9498 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\"") >&5
9499 ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5
e2997b73
AK
9500 ac_status=$?
9501 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9502 (exit $ac_status); }; then
a946372e 9503 pkg_cv_PKGCONFIGINIT_LIBS=`$PKG_CONFIG --libs "pkgconfiginit" 2>/dev/null`
e2997b73
AK
9504else
9505 pkg_failed=yes
9506fi
9507 else
9508 pkg_failed=untried
9509fi
9510
9511
9512
9513if test $pkg_failed = yes; then
9514
9515if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9516 _pkg_short_errors_supported=yes
9517else
9518 _pkg_short_errors_supported=no
9519fi
9520 if test $_pkg_short_errors_supported = yes; then
a946372e 9521 PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pkgconfiginit" 2>&1`
e2997b73 9522 else
a946372e 9523 PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "pkgconfiginit" 2>&1`
e2997b73
AK
9524 fi
9525 # Put the nasty error message in config.log where it belongs
a946372e 9526 echo "$PKGCONFIGINIT_PKG_ERRORS" >&5
e2997b73
AK
9527
9528 { $as_echo "$as_me:$LINENO: result: no" >&5
9529$as_echo "no" >&6; }
a946372e
AK
9530 { $as_echo "$as_me:$LINENO: result: pkg-config initialized" >&5
9531$as_echo "pkg-config initialized" >&6; }
e2997b73 9532elif test $pkg_failed = untried; then
a946372e
AK
9533 { $as_echo "$as_me:$LINENO: result: pkg-config initialized" >&5
9534$as_echo "pkg-config initialized" >&6; }
e2997b73 9535else
a946372e
AK
9536 PKGCONFIGINIT_CFLAGS=$pkg_cv_PKGCONFIGINIT_CFLAGS
9537 PKGCONFIGINIT_LIBS=$pkg_cv_PKGCONFIGINIT_LIBS
e2997b73
AK
9538 { $as_echo "$as_me:$LINENO: result: yes" >&5
9539$as_echo "yes" >&6; }
9540 :
9541fi
90c80887
AK
9542 PKGCONFIG_INIT=1
9543}
9544
9545################################################################################
9546{ $as_echo "$as_me:$LINENO: checking whether to build cluster LVM daemon" >&5
9547$as_echo_n "checking whether to build cluster LVM daemon... " >&6; }
9548
9549# Check whether --with-clvmd was given.
9550if test "${with_clvmd+set}" = set; then
9551 withval=$with_clvmd; CLVMD="$withval"
9552else
9553 CLVMD="none"
9554fi
9555
9556if test x$CLVMD = xyes; then
9557 CLVMD=all
9558fi
9559{ $as_echo "$as_me:$LINENO: result: $CLVMD" >&5
9560$as_echo "$CLVMD" >&6; }
9561
9562if test x$CLVMD != xnone && test x$CLUSTER = xnone; then
9563 CLUSTER=internal
9564fi
9565
9566if test x$CLVMD != xnone && test x$PKGCONFIG_INIT != x1; then
9567 pkg_config_init
9568fi
9569
9570
9571if [ `expr x"$CLVMD" : '.*gulm.*'` != 0 ]; then
9572 BUILDGULM=yes
9573fi
9574if [ `expr x"$CLVMD" : '.*corosync.*'` != 0 ]; then
9575 BUILDCOROSYNC=yes
9576fi
9577if [ `expr x"$CLVMD" : '.*openais.*'` != 0 ]; then
9578 BUILDOPENAIS=yes
9579fi
9580if [ `expr x"$CLVMD" : '.*cman.*'` != 0 ]; then
9581 BUILDCMAN=yes
9582fi
9583
9584if test x$BUILDGULM = xyes; then
9585 if test x$BUILDCOROSYNC = xyes || \
9586 test x$BUILDOPENAIS = xyes; then
9587 { { $as_echo "$as_me:$LINENO: error: requested clvmd configuration is not valid" >&5
9588$as_echo "$as_me: error: requested clvmd configuration is not valid" >&2;}
9589 { (exit 1); exit 1; }; }
9590 fi
a946372e 9591fi
e2997b73 9592
a946372e
AK
9593soft_bailout() {
9594 NOTFOUND=1
9595}
e2997b73 9596
a946372e
AK
9597hard_bailout() {
9598 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
9599$as_echo "$as_me: error: bailing out" >&2;}
9600 { (exit 1); exit 1; }; }
9601}
9602
9603if test x$CLVMD = xall; then
9604 bailout=soft_bailout
9605 BUILDGULM=yes
9606 BUILDCMAN=yes
9607 BUILDCOROSYNC=yes
9608 BUILDOPENAIS=yes
e2997b73 9609else
a946372e 9610 bailout=hard_bailout
e2997b73 9611fi
a946372e
AK
9612
9613check_lib_no_libs() {
9614 lib_no_libs_arg1=$1
9615 shift
9616 lib_no_libs_arg2=$1
9617 shift
9618 lib_no_libs_args=$@
9619
9620as_ac_Lib=`$as_echo "ac_cv_lib_$lib_no_libs_arg1''_$lib_no_libs_arg2" | $as_tr_sh`
9621{ $as_echo "$as_me:$LINENO: checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1" >&5
9622$as_echo_n "checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1... " >&6; }
9623if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
9624 $as_echo_n "(cached) " >&6
9625else
9626 ac_check_lib_save_LIBS=$LIBS
9627LIBS="-l$lib_no_libs_arg1 $lib_no_libs_args $LIBS"
9628cat >conftest.$ac_ext <<_ACEOF
9629/* confdefs.h. */
9630_ACEOF
9631cat confdefs.h >>conftest.$ac_ext
9632cat >>conftest.$ac_ext <<_ACEOF
9633/* end confdefs.h. */
9634
9635/* Override any GCC internal prototype to avoid an error.
9636 Use char because int might match the return type of a GCC
9637 builtin and then its argument prototype would still apply. */
9638#ifdef __cplusplus
9639extern "C"
9640#endif
9641char $lib_no_libs_arg2 ();
9642int
9643main ()
9644{
9645return $lib_no_libs_arg2 ();
9646 ;
9647 return 0;
9648}
9649_ACEOF
9650rm -f conftest.$ac_objext conftest$ac_exeext
9651if { (ac_try="$ac_link"
9652case "(($ac_try" in
9653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9654 *) ac_try_echo=$ac_try;;
9655esac
9656eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9657$as_echo "$ac_try_echo") >&5
9658 (eval "$ac_link") 2>conftest.er1
e2997b73 9659 ac_status=$?
a946372e
AK
9660 grep -v '^ *+' conftest.er1 >conftest.err
9661 rm -f conftest.er1
9662 cat conftest.err >&5
e2997b73 9663 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
a946372e
AK
9664 (exit $ac_status); } && {
9665 test -z "$ac_c_werror_flag" ||
9666 test ! -s conftest.err
9667 } && test -s conftest$ac_exeext && {
9668 test "$cross_compiling" = yes ||
9669 $as_test_x conftest$ac_exeext
9670 }; then
9671 eval "$as_ac_Lib=yes"
e2997b73 9672else
a946372e
AK
9673 $as_echo "$as_me: failed program was:" >&5
9674sed 's/^/| /' conftest.$ac_ext >&5
e2997b73 9675
a946372e
AK
9676 eval "$as_ac_Lib=no"
9677fi
e2997b73 9678
a946372e
AK
9679rm -rf conftest.dSYM
9680rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9681 conftest$ac_exeext conftest.$ac_ext
9682LIBS=$ac_check_lib_save_LIBS
9683fi
9684ac_res=`eval 'as_val=${'$as_ac_Lib'}
9685 $as_echo "$as_val"'`
9686 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9687$as_echo "$ac_res" >&6; }
9688as_val=`eval 'as_val=${'$as_ac_Lib'}
9689 $as_echo "$as_val"'`
9690 if test "x$as_val" = x""yes; then
9691 cat >>confdefs.h <<_ACEOF
9692#define `$as_echo "HAVE_LIB$lib_no_libs_arg1" | $as_tr_cpp` 1
9693_ACEOF
e2997b73 9694
a946372e 9695 LIBS="-l$lib_no_libs_arg1 $LIBS"
e2997b73 9696
e2997b73 9697else
a946372e 9698 $bailout
e2997b73 9699fi
e2997b73 9700
a946372e
AK
9701 LIBS=$ac_check_lib_save_LIBS
9702}
9703
9704if test x$BUILDGULM = xyes; then
e2997b73
AK
9705
9706pkg_failed=no
a946372e
AK
9707{ $as_echo "$as_me:$LINENO: checking for CCS" >&5
9708$as_echo_n "checking for CCS... " >&6; }
e2997b73 9709
a946372e
AK
9710if test -n "$CCS_CFLAGS"; then
9711 pkg_cv_CCS_CFLAGS="$CCS_CFLAGS"
e2997b73
AK
9712 elif test -n "$PKG_CONFIG"; then
9713 if test -n "$PKG_CONFIG" && \
a946372e
AK
9714 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libccs\"") >&5
9715 ($PKG_CONFIG --exists --print-errors "libccs") 2>&5
e2997b73
AK
9716 ac_status=$?
9717 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9718 (exit $ac_status); }; then
a946372e 9719 pkg_cv_CCS_CFLAGS=`$PKG_CONFIG --cflags "libccs" 2>/dev/null`
e2997b73
AK
9720else
9721 pkg_failed=yes
9722fi
9723 else
9724 pkg_failed=untried
9725fi
a946372e
AK
9726if test -n "$CCS_LIBS"; then
9727 pkg_cv_CCS_LIBS="$CCS_LIBS"
e2997b73
AK
9728 elif test -n "$PKG_CONFIG"; then
9729 if test -n "$PKG_CONFIG" && \
a946372e
AK
9730 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libccs\"") >&5
9731 ($PKG_CONFIG --exists --print-errors "libccs") 2>&5
e2997b73
AK
9732 ac_status=$?
9733 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9734 (exit $ac_status); }; then
a946372e 9735 pkg_cv_CCS_LIBS=`$PKG_CONFIG --libs "libccs" 2>/dev/null`
e2997b73
AK
9736else
9737 pkg_failed=yes
9738fi
9739 else
9740 pkg_failed=untried
9741fi
9742
9743
9744
9745if test $pkg_failed = yes; then
9746
9747if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9748 _pkg_short_errors_supported=yes
9749else
9750 _pkg_short_errors_supported=no
9751fi
9752 if test $_pkg_short_errors_supported = yes; then
a946372e 9753 CCS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libccs" 2>&1`
e2997b73 9754 else
a946372e 9755 CCS_PKG_ERRORS=`$PKG_CONFIG --print-errors "libccs" 2>&1`
e2997b73
AK
9756 fi
9757 # Put the nasty error message in config.log where it belongs
a946372e 9758 echo "$CCS_PKG_ERRORS" >&5
e2997b73
AK
9759
9760 { $as_echo "$as_me:$LINENO: result: no" >&5
9761$as_echo "no" >&6; }
a946372e 9762 NOTFOUND=0
e2997b73 9763
a946372e
AK
9764for ac_header in ccs.h
9765do
9766as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9767if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9768 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9769$as_echo_n "checking for $ac_header... " >&6; }
9770if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9771 $as_echo_n "(cached) " >&6
d0191583 9772fi
a946372e
AK
9773ac_res=`eval 'as_val=${'$as_ac_Header'}
9774 $as_echo "$as_val"'`
9775 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9776$as_echo "$ac_res" >&6; }
fc54be10 9777else
a946372e
AK
9778 # Is the header compilable?
9779{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9780$as_echo_n "checking $ac_header usability... " >&6; }
9781cat >conftest.$ac_ext <<_ACEOF
9782/* confdefs.h. */
9783_ACEOF
9784cat confdefs.h >>conftest.$ac_ext
9785cat >>conftest.$ac_ext <<_ACEOF
9786/* end confdefs.h. */
9787$ac_includes_default
9788#include <$ac_header>
9789_ACEOF
9790rm -f conftest.$ac_objext
9791if { (ac_try="$ac_compile"
9792case "(($ac_try" in
9793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9794 *) ac_try_echo=$ac_try;;
9795esac
9796eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9797$as_echo "$ac_try_echo") >&5
9798 (eval "$ac_compile") 2>conftest.er1
9799 ac_status=$?
9800 grep -v '^ *+' conftest.er1 >conftest.err
9801 rm -f conftest.er1
9802 cat conftest.err >&5
9803 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9804 (exit $ac_status); } && {
9805 test -z "$ac_c_werror_flag" ||
9806 test ! -s conftest.err
9807 } && test -s conftest.$ac_objext; then
9808 ac_header_compiler=yes
9809else
9810 $as_echo "$as_me: failed program was:" >&5
9811sed 's/^/| /' conftest.$ac_ext >&5
d0191583 9812
a946372e 9813 ac_header_compiler=no
d0191583
JM
9814fi
9815
a946372e
AK
9816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9817{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9818$as_echo "$ac_header_compiler" >&6; }
fddafd51 9819
a946372e
AK
9820# Is the header present?
9821{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9822$as_echo_n "checking $ac_header presence... " >&6; }
9823cat >conftest.$ac_ext <<_ACEOF
9824/* confdefs.h. */
9825_ACEOF
9826cat confdefs.h >>conftest.$ac_ext
9827cat >>conftest.$ac_ext <<_ACEOF
9828/* end confdefs.h. */
9829#include <$ac_header>
9830_ACEOF
9831if { (ac_try="$ac_cpp conftest.$ac_ext"
9832case "(($ac_try" in
9833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9834 *) ac_try_echo=$ac_try;;
9835esac
9836eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9837$as_echo "$ac_try_echo") >&5
9838 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9839 ac_status=$?
9840 grep -v '^ *+' conftest.er1 >conftest.err
9841 rm -f conftest.er1
9842 cat conftest.err >&5
9843 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9844 (exit $ac_status); } >/dev/null && {
9845 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9846 test ! -s conftest.err
9847 }; then
9848 ac_header_preproc=yes
9849else
9850 $as_echo "$as_me: failed program was:" >&5
9851sed 's/^/| /' conftest.$ac_ext >&5
9852
9853 ac_header_preproc=no
9854fi
9855
9856rm -f conftest.err conftest.$ac_ext
9857{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9858$as_echo "$ac_header_preproc" >&6; }
9859
9860# So? What about this header?
9861case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9862 yes:no: )
9863 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9864$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9865 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9866$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9867 ac_header_preproc=yes
9868 ;;
9869 no:yes:* )
9870 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9871$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9872 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9873$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9874 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9875$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9876 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9877$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9878 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9879$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9880 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9881$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9882
9883 ;;
9884esac
9885{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9886$as_echo_n "checking for $ac_header... " >&6; }
9887if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9888 $as_echo_n "(cached) " >&6
9889else
9890 eval "$as_ac_Header=\$ac_header_preproc"
9891fi
9892ac_res=`eval 'as_val=${'$as_ac_Header'}
9893 $as_echo "$as_val"'`
9894 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9895$as_echo "$ac_res" >&6; }
9896
9897fi
9898as_val=`eval 'as_val=${'$as_ac_Header'}
9899 $as_echo "$as_val"'`
9900 if test "x$as_val" = x""yes; then
9901 cat >>confdefs.h <<_ACEOF
9902#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9903_ACEOF
9904
9905else
9906 $bailout
9907fi
9908
9909done
9910
9911 check_lib_no_libs ccs ccs_connect
9912 if test $NOTFOUND = 0; then
9913 { $as_echo "$as_me:$LINENO: result: no pkg for libccs, using -lccs" >&5
9914$as_echo "no pkg for libccs, using -lccs" >&6; }
9915 CCS_LIBS="-lccs"
9916 HAVE_CCS=yes
9917 fi
9918elif test $pkg_failed = untried; then
9919 NOTFOUND=0
9920
9921for ac_header in ccs.h
9922do
9923as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9924if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9925 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9926$as_echo_n "checking for $ac_header... " >&6; }
9927if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9928 $as_echo_n "(cached) " >&6
9929fi
9930ac_res=`eval 'as_val=${'$as_ac_Header'}
9931 $as_echo "$as_val"'`
9932 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9933$as_echo "$ac_res" >&6; }
9934else
9935 # Is the header compilable?
9936{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9937$as_echo_n "checking $ac_header usability... " >&6; }
9938cat >conftest.$ac_ext <<_ACEOF
9939/* confdefs.h. */
9940_ACEOF
9941cat confdefs.h >>conftest.$ac_ext
9942cat >>conftest.$ac_ext <<_ACEOF
9943/* end confdefs.h. */
9944$ac_includes_default
9945#include <$ac_header>
9946_ACEOF
9947rm -f conftest.$ac_objext
9948if { (ac_try="$ac_compile"
9949case "(($ac_try" in
9950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9951 *) ac_try_echo=$ac_try;;
9952esac
9953eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9954$as_echo "$ac_try_echo") >&5
9955 (eval "$ac_compile") 2>conftest.er1
9956 ac_status=$?
9957 grep -v '^ *+' conftest.er1 >conftest.err
9958 rm -f conftest.er1
9959 cat conftest.err >&5
9960 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9961 (exit $ac_status); } && {
9962 test -z "$ac_c_werror_flag" ||
9963 test ! -s conftest.err
9964 } && test -s conftest.$ac_objext; then
9965 ac_header_compiler=yes
9966else
9967 $as_echo "$as_me: failed program was:" >&5
9968sed 's/^/| /' conftest.$ac_ext >&5
9969
9970 ac_header_compiler=no
9971fi
9972
9973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9974{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9975$as_echo "$ac_header_compiler" >&6; }
9976
9977# Is the header present?
9978{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9979$as_echo_n "checking $ac_header presence... " >&6; }
9980cat >conftest.$ac_ext <<_ACEOF
9981/* confdefs.h. */
9982_ACEOF
9983cat confdefs.h >>conftest.$ac_ext
9984cat >>conftest.$ac_ext <<_ACEOF
9985/* end confdefs.h. */
9986#include <$ac_header>
9987_ACEOF
9988if { (ac_try="$ac_cpp conftest.$ac_ext"
9989case "(($ac_try" in
9990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9991 *) ac_try_echo=$ac_try;;
9992esac
9993eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9994$as_echo "$ac_try_echo") >&5
9995 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9996 ac_status=$?
9997 grep -v '^ *+' conftest.er1 >conftest.err
9998 rm -f conftest.er1
9999 cat conftest.err >&5
10000 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10001 (exit $ac_status); } >/dev/null && {
10002 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10003 test ! -s conftest.err
10004 }; then
10005 ac_header_preproc=yes
10006else
10007 $as_echo "$as_me: failed program was:" >&5
10008sed 's/^/| /' conftest.$ac_ext >&5
10009
10010 ac_header_preproc=no
10011fi
10012
10013rm -f conftest.err conftest.$ac_ext
10014{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10015$as_echo "$ac_header_preproc" >&6; }
10016
10017# So? What about this header?
10018case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10019 yes:no: )
10020 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10021$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10022 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10023$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10024 ac_header_preproc=yes
10025 ;;
10026 no:yes:* )
10027 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10028$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10029 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10030$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10031 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10032$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10033 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10034$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10035 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10036$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10037 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10038$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10039
10040 ;;
10041esac
10042{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10043$as_echo_n "checking for $ac_header... " >&6; }
10044if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10045 $as_echo_n "(cached) " >&6
10046else
10047 eval "$as_ac_Header=\$ac_header_preproc"
10048fi
10049ac_res=`eval 'as_val=${'$as_ac_Header'}
10050 $as_echo "$as_val"'`
10051 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10052$as_echo "$ac_res" >&6; }
10053
10054fi
10055as_val=`eval 'as_val=${'$as_ac_Header'}
10056 $as_echo "$as_val"'`
10057 if test "x$as_val" = x""yes; then
10058 cat >>confdefs.h <<_ACEOF
10059#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10060_ACEOF
10061
10062else
10063 $bailout
10064fi
10065
10066done
10067
10068 check_lib_no_libs ccs ccs_connect
10069 if test $NOTFOUND = 0; then
10070 { $as_echo "$as_me:$LINENO: result: no pkg for libccs, using -lccs" >&5
10071$as_echo "no pkg for libccs, using -lccs" >&6; }
10072 CCS_LIBS="-lccs"
10073 HAVE_CCS=yes
10074 fi
10075else
10076 CCS_CFLAGS=$pkg_cv_CCS_CFLAGS
10077 CCS_LIBS=$pkg_cv_CCS_LIBS
10078 { $as_echo "$as_me:$LINENO: result: yes" >&5
10079$as_echo "yes" >&6; }
10080 HAVE_CCS=yes
10081fi
10082
10083pkg_failed=no
10084{ $as_echo "$as_me:$LINENO: checking for GULM" >&5
10085$as_echo_n "checking for GULM... " >&6; }
10086
10087if test -n "$GULM_CFLAGS"; then
10088 pkg_cv_GULM_CFLAGS="$GULM_CFLAGS"
10089 elif test -n "$PKG_CONFIG"; then
10090 if test -n "$PKG_CONFIG" && \
10091 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgulm\"") >&5
10092 ($PKG_CONFIG --exists --print-errors "libgulm") 2>&5
10093 ac_status=$?
10094 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10095 (exit $ac_status); }; then
10096 pkg_cv_GULM_CFLAGS=`$PKG_CONFIG --cflags "libgulm" 2>/dev/null`
10097else
10098 pkg_failed=yes
10099fi
10100 else
10101 pkg_failed=untried
10102fi
10103if test -n "$GULM_LIBS"; then
10104 pkg_cv_GULM_LIBS="$GULM_LIBS"
10105 elif test -n "$PKG_CONFIG"; then
10106 if test -n "$PKG_CONFIG" && \
10107 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgulm\"") >&5
10108 ($PKG_CONFIG --exists --print-errors "libgulm") 2>&5
10109 ac_status=$?
10110 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10111 (exit $ac_status); }; then
10112 pkg_cv_GULM_LIBS=`$PKG_CONFIG --libs "libgulm" 2>/dev/null`
10113else
10114 pkg_failed=yes
10115fi
10116 else
10117 pkg_failed=untried
10118fi
10119
10120
10121
10122if test $pkg_failed = yes; then
10123
10124if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10125 _pkg_short_errors_supported=yes
10126else
10127 _pkg_short_errors_supported=no
10128fi
10129 if test $_pkg_short_errors_supported = yes; then
10130 GULM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgulm" 2>&1`
10131 else
10132 GULM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgulm" 2>&1`
10133 fi
10134 # Put the nasty error message in config.log where it belongs
10135 echo "$GULM_PKG_ERRORS" >&5
10136
10137 { $as_echo "$as_me:$LINENO: result: no" >&5
10138$as_echo "no" >&6; }
10139 NOTFOUND=0
10140
10141for ac_header in libgulm.h
10142do
10143as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10144if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10145 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10146$as_echo_n "checking for $ac_header... " >&6; }
10147if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10148 $as_echo_n "(cached) " >&6
10149fi
10150ac_res=`eval 'as_val=${'$as_ac_Header'}
10151 $as_echo "$as_val"'`
10152 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10153$as_echo "$ac_res" >&6; }
10154else
10155 # Is the header compilable?
10156{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10157$as_echo_n "checking $ac_header usability... " >&6; }
10158cat >conftest.$ac_ext <<_ACEOF
10159/* confdefs.h. */
10160_ACEOF
10161cat confdefs.h >>conftest.$ac_ext
10162cat >>conftest.$ac_ext <<_ACEOF
10163/* end confdefs.h. */
10164$ac_includes_default
10165#include <$ac_header>
10166_ACEOF
10167rm -f conftest.$ac_objext
10168if { (ac_try="$ac_compile"
10169case "(($ac_try" in
10170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10171 *) ac_try_echo=$ac_try;;
10172esac
10173eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10174$as_echo "$ac_try_echo") >&5
10175 (eval "$ac_compile") 2>conftest.er1
10176 ac_status=$?
10177 grep -v '^ *+' conftest.er1 >conftest.err
10178 rm -f conftest.er1
10179 cat conftest.err >&5
10180 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10181 (exit $ac_status); } && {
10182 test -z "$ac_c_werror_flag" ||
10183 test ! -s conftest.err
10184 } && test -s conftest.$ac_objext; then
10185 ac_header_compiler=yes
10186else
10187 $as_echo "$as_me: failed program was:" >&5
10188sed 's/^/| /' conftest.$ac_ext >&5
10189
10190 ac_header_compiler=no
10191fi
10192
10193rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10194{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10195$as_echo "$ac_header_compiler" >&6; }
10196
10197# Is the header present?
10198{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10199$as_echo_n "checking $ac_header presence... " >&6; }
10200cat >conftest.$ac_ext <<_ACEOF
10201/* confdefs.h. */
10202_ACEOF
10203cat confdefs.h >>conftest.$ac_ext
10204cat >>conftest.$ac_ext <<_ACEOF
10205/* end confdefs.h. */
10206#include <$ac_header>
10207_ACEOF
10208if { (ac_try="$ac_cpp conftest.$ac_ext"
10209case "(($ac_try" in
10210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10211 *) ac_try_echo=$ac_try;;
10212esac
10213eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10214$as_echo "$ac_try_echo") >&5
10215 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10216 ac_status=$?
10217 grep -v '^ *+' conftest.er1 >conftest.err
10218 rm -f conftest.er1
10219 cat conftest.err >&5
10220 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10221 (exit $ac_status); } >/dev/null && {
10222 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10223 test ! -s conftest.err
10224 }; then
10225 ac_header_preproc=yes
10226else
10227 $as_echo "$as_me: failed program was:" >&5
10228sed 's/^/| /' conftest.$ac_ext >&5
10229
10230 ac_header_preproc=no
10231fi
10232
10233rm -f conftest.err conftest.$ac_ext
10234{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10235$as_echo "$ac_header_preproc" >&6; }
10236
10237# So? What about this header?
10238case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10239 yes:no: )
10240 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10241$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10242 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10243$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10244 ac_header_preproc=yes
10245 ;;
10246 no:yes:* )
10247 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10248$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10249 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10250$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10251 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10252$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10253 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10254$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10255 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10256$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10257 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10258$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10259
10260 ;;
10261esac
10262{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10263$as_echo_n "checking for $ac_header... " >&6; }
10264if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10265 $as_echo_n "(cached) " >&6
10266else
10267 eval "$as_ac_Header=\$ac_header_preproc"
10268fi
10269ac_res=`eval 'as_val=${'$as_ac_Header'}
10270 $as_echo "$as_val"'`
10271 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10272$as_echo "$ac_res" >&6; }
10273
10274fi
10275as_val=`eval 'as_val=${'$as_ac_Header'}
10276 $as_echo "$as_val"'`
10277 if test "x$as_val" = x""yes; then
10278 cat >>confdefs.h <<_ACEOF
10279#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10280_ACEOF
10281
10282else
10283 $bailout
10284fi
10285
10286done
10287
10288 check_lib_no_libs gulm lg_core_login
10289 if test $NOTFOUND = 0; then
10290 { $as_echo "$as_me:$LINENO: result: no pkg for libgulm, using -lgulm" >&5
10291$as_echo "no pkg for libgulm, using -lgulm" >&6; }
10292 GULM_LIBS="-lgulm"
10293 HAVE_GULM=yes
10294 fi
10295elif test $pkg_failed = untried; then
10296 NOTFOUND=0
10297
10298for ac_header in libgulm.h
10299do
10300as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10301if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10302 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10303$as_echo_n "checking for $ac_header... " >&6; }
10304if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10305 $as_echo_n "(cached) " >&6
10306fi
10307ac_res=`eval 'as_val=${'$as_ac_Header'}
10308 $as_echo "$as_val"'`
10309 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10310$as_echo "$ac_res" >&6; }
10311else
10312 # Is the header compilable?
10313{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10314$as_echo_n "checking $ac_header usability... " >&6; }
10315cat >conftest.$ac_ext <<_ACEOF
10316/* confdefs.h. */
10317_ACEOF
10318cat confdefs.h >>conftest.$ac_ext
10319cat >>conftest.$ac_ext <<_ACEOF
10320/* end confdefs.h. */
10321$ac_includes_default
10322#include <$ac_header>
10323_ACEOF
10324rm -f conftest.$ac_objext
10325if { (ac_try="$ac_compile"
10326case "(($ac_try" in
10327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10328 *) ac_try_echo=$ac_try;;
10329esac
10330eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10331$as_echo "$ac_try_echo") >&5
10332 (eval "$ac_compile") 2>conftest.er1
10333 ac_status=$?
10334 grep -v '^ *+' conftest.er1 >conftest.err
10335 rm -f conftest.er1
10336 cat conftest.err >&5
10337 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10338 (exit $ac_status); } && {
10339 test -z "$ac_c_werror_flag" ||
10340 test ! -s conftest.err
10341 } && test -s conftest.$ac_objext; then
10342 ac_header_compiler=yes
10343else
10344 $as_echo "$as_me: failed program was:" >&5
10345sed 's/^/| /' conftest.$ac_ext >&5
10346
10347 ac_header_compiler=no
10348fi
10349
10350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10351{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10352$as_echo "$ac_header_compiler" >&6; }
10353
10354# Is the header present?
10355{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10356$as_echo_n "checking $ac_header presence... " >&6; }
10357cat >conftest.$ac_ext <<_ACEOF
10358/* confdefs.h. */
10359_ACEOF
10360cat confdefs.h >>conftest.$ac_ext
10361cat >>conftest.$ac_ext <<_ACEOF
10362/* end confdefs.h. */
10363#include <$ac_header>
10364_ACEOF
10365if { (ac_try="$ac_cpp conftest.$ac_ext"
10366case "(($ac_try" in
10367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10368 *) ac_try_echo=$ac_try;;
10369esac
10370eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10371$as_echo "$ac_try_echo") >&5
10372 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10373 ac_status=$?
10374 grep -v '^ *+' conftest.er1 >conftest.err
10375 rm -f conftest.er1
10376 cat conftest.err >&5
10377 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10378 (exit $ac_status); } >/dev/null && {
10379 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10380 test ! -s conftest.err
10381 }; then
10382 ac_header_preproc=yes
10383else
10384 $as_echo "$as_me: failed program was:" >&5
10385sed 's/^/| /' conftest.$ac_ext >&5
10386
10387 ac_header_preproc=no
10388fi
10389
10390rm -f conftest.err conftest.$ac_ext
10391{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10392$as_echo "$ac_header_preproc" >&6; }
10393
10394# So? What about this header?
10395case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10396 yes:no: )
10397 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10398$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10399 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10400$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10401 ac_header_preproc=yes
10402 ;;
10403 no:yes:* )
10404 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10405$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10406 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10407$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10408 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10409$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10410 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10411$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10412 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10413$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10414 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10415$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10416
10417 ;;
10418esac
10419{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10420$as_echo_n "checking for $ac_header... " >&6; }
10421if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10422 $as_echo_n "(cached) " >&6
10423else
10424 eval "$as_ac_Header=\$ac_header_preproc"
10425fi
10426ac_res=`eval 'as_val=${'$as_ac_Header'}
10427 $as_echo "$as_val"'`
10428 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10429$as_echo "$ac_res" >&6; }
10430
10431fi
10432as_val=`eval 'as_val=${'$as_ac_Header'}
10433 $as_echo "$as_val"'`
10434 if test "x$as_val" = x""yes; then
10435 cat >>confdefs.h <<_ACEOF
10436#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10437_ACEOF
10438
10439else
10440 $bailout
10441fi
10442
10443done
10444
10445 check_lib_no_libs gulm lg_core_login
10446 if test $NOTFOUND = 0; then
10447 { $as_echo "$as_me:$LINENO: result: no pkg for libgulm, using -lgulm" >&5
10448$as_echo "no pkg for libgulm, using -lgulm" >&6; }
10449 GULM_LIBS="-lgulm"
10450 HAVE_GULM=yes
10451 fi
10452else
10453 GULM_CFLAGS=$pkg_cv_GULM_CFLAGS
10454 GULM_LIBS=$pkg_cv_GULM_LIBS
10455 { $as_echo "$as_me:$LINENO: result: yes" >&5
10456$as_echo "yes" >&6; }
10457 HAVE_GULM=yes
10458fi
10459fi
10460
10461if test x$BUILDCMAN = xyes; then
10462
10463pkg_failed=no
10464{ $as_echo "$as_me:$LINENO: checking for CMAN" >&5
10465$as_echo_n "checking for CMAN... " >&6; }
10466
10467if test -n "$CMAN_CFLAGS"; then
10468 pkg_cv_CMAN_CFLAGS="$CMAN_CFLAGS"
10469 elif test -n "$PKG_CONFIG"; then
10470 if test -n "$PKG_CONFIG" && \
10471 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcman\"") >&5
10472 ($PKG_CONFIG --exists --print-errors "libcman") 2>&5
10473 ac_status=$?
10474 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10475 (exit $ac_status); }; then
10476 pkg_cv_CMAN_CFLAGS=`$PKG_CONFIG --cflags "libcman" 2>/dev/null`
10477else
10478 pkg_failed=yes
10479fi
10480 else
10481 pkg_failed=untried
10482fi
10483if test -n "$CMAN_LIBS"; then
10484 pkg_cv_CMAN_LIBS="$CMAN_LIBS"
10485 elif test -n "$PKG_CONFIG"; then
10486 if test -n "$PKG_CONFIG" && \
10487 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcman\"") >&5
10488 ($PKG_CONFIG --exists --print-errors "libcman") 2>&5
10489 ac_status=$?
10490 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10491 (exit $ac_status); }; then
10492 pkg_cv_CMAN_LIBS=`$PKG_CONFIG --libs "libcman" 2>/dev/null`
10493else
10494 pkg_failed=yes
10495fi
10496 else
10497 pkg_failed=untried
10498fi
10499
10500
10501
10502if test $pkg_failed = yes; then
10503
10504if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10505 _pkg_short_errors_supported=yes
10506else
10507 _pkg_short_errors_supported=no
10508fi
10509 if test $_pkg_short_errors_supported = yes; then
10510 CMAN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcman" 2>&1`
10511 else
10512 CMAN_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcman" 2>&1`
10513 fi
10514 # Put the nasty error message in config.log where it belongs
10515 echo "$CMAN_PKG_ERRORS" >&5
10516
10517 { $as_echo "$as_me:$LINENO: result: no" >&5
10518$as_echo "no" >&6; }
10519 NOTFOUND=0
10520
10521for ac_header in libcman.h
10522do
10523as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10524if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10525 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10526$as_echo_n "checking for $ac_header... " >&6; }
10527if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10528 $as_echo_n "(cached) " >&6
10529fi
10530ac_res=`eval 'as_val=${'$as_ac_Header'}
10531 $as_echo "$as_val"'`
10532 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10533$as_echo "$ac_res" >&6; }
10534else
10535 # Is the header compilable?
10536{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10537$as_echo_n "checking $ac_header usability... " >&6; }
10538cat >conftest.$ac_ext <<_ACEOF
10539/* confdefs.h. */
10540_ACEOF
10541cat confdefs.h >>conftest.$ac_ext
10542cat >>conftest.$ac_ext <<_ACEOF
10543/* end confdefs.h. */
10544$ac_includes_default
10545#include <$ac_header>
10546_ACEOF
10547rm -f conftest.$ac_objext
10548if { (ac_try="$ac_compile"
10549case "(($ac_try" in
10550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10551 *) ac_try_echo=$ac_try;;
10552esac
10553eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10554$as_echo "$ac_try_echo") >&5
10555 (eval "$ac_compile") 2>conftest.er1
10556 ac_status=$?
10557 grep -v '^ *+' conftest.er1 >conftest.err
10558 rm -f conftest.er1
10559 cat conftest.err >&5
10560 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10561 (exit $ac_status); } && {
10562 test -z "$ac_c_werror_flag" ||
10563 test ! -s conftest.err
10564 } && test -s conftest.$ac_objext; then
10565 ac_header_compiler=yes
10566else
10567 $as_echo "$as_me: failed program was:" >&5
10568sed 's/^/| /' conftest.$ac_ext >&5
10569
10570 ac_header_compiler=no
10571fi
10572
10573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10574{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10575$as_echo "$ac_header_compiler" >&6; }
10576
10577# Is the header present?
10578{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10579$as_echo_n "checking $ac_header presence... " >&6; }
10580cat >conftest.$ac_ext <<_ACEOF
10581/* confdefs.h. */
10582_ACEOF
10583cat confdefs.h >>conftest.$ac_ext
10584cat >>conftest.$ac_ext <<_ACEOF
10585/* end confdefs.h. */
10586#include <$ac_header>
10587_ACEOF
10588if { (ac_try="$ac_cpp conftest.$ac_ext"
10589case "(($ac_try" in
10590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10591 *) ac_try_echo=$ac_try;;
10592esac
10593eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10594$as_echo "$ac_try_echo") >&5
10595 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10596 ac_status=$?
10597 grep -v '^ *+' conftest.er1 >conftest.err
10598 rm -f conftest.er1
10599 cat conftest.err >&5
10600 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10601 (exit $ac_status); } >/dev/null && {
10602 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10603 test ! -s conftest.err
10604 }; then
10605 ac_header_preproc=yes
10606else
10607 $as_echo "$as_me: failed program was:" >&5
10608sed 's/^/| /' conftest.$ac_ext >&5
10609
10610 ac_header_preproc=no
10611fi
10612
10613rm -f conftest.err conftest.$ac_ext
10614{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10615$as_echo "$ac_header_preproc" >&6; }
10616
10617# So? What about this header?
10618case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10619 yes:no: )
10620 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10621$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10622 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10623$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10624 ac_header_preproc=yes
10625 ;;
10626 no:yes:* )
10627 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10628$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10629 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10630$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10631 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10632$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10633 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10634$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10635 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10636$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10637 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10638$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10639
10640 ;;
10641esac
10642{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10643$as_echo_n "checking for $ac_header... " >&6; }
10644if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10645 $as_echo_n "(cached) " >&6
10646else
10647 eval "$as_ac_Header=\$ac_header_preproc"
10648fi
10649ac_res=`eval 'as_val=${'$as_ac_Header'}
10650 $as_echo "$as_val"'`
10651 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10652$as_echo "$ac_res" >&6; }
10653
10654fi
10655as_val=`eval 'as_val=${'$as_ac_Header'}
10656 $as_echo "$as_val"'`
10657 if test "x$as_val" = x""yes; then
10658 cat >>confdefs.h <<_ACEOF
10659#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10660_ACEOF
10661
10662else
10663 $bailout
10664fi
10665
10666done
10667
10668 check_lib_no_libs cman cman_init
10669 if test $NOTFOUND = 0; then
10670 { $as_echo "$as_me:$LINENO: result: no pkg for libcman, using -lcman" >&5
10671$as_echo "no pkg for libcman, using -lcman" >&6; }
10672 CMAN_LIBS="-lcman"
10673 HAVE_CMAN=yes
10674 fi
10675elif test $pkg_failed = untried; then
10676 NOTFOUND=0
10677
10678for ac_header in libcman.h
10679do
10680as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10681if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10682 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10683$as_echo_n "checking for $ac_header... " >&6; }
10684if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10685 $as_echo_n "(cached) " >&6
10686fi
10687ac_res=`eval 'as_val=${'$as_ac_Header'}
10688 $as_echo "$as_val"'`
10689 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10690$as_echo "$ac_res" >&6; }
10691else
10692 # Is the header compilable?
10693{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10694$as_echo_n "checking $ac_header usability... " >&6; }
10695cat >conftest.$ac_ext <<_ACEOF
10696/* confdefs.h. */
10697_ACEOF
10698cat confdefs.h >>conftest.$ac_ext
10699cat >>conftest.$ac_ext <<_ACEOF
10700/* end confdefs.h. */
10701$ac_includes_default
10702#include <$ac_header>
10703_ACEOF
10704rm -f conftest.$ac_objext
10705if { (ac_try="$ac_compile"
10706case "(($ac_try" in
10707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10708 *) ac_try_echo=$ac_try;;
10709esac
10710eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10711$as_echo "$ac_try_echo") >&5
10712 (eval "$ac_compile") 2>conftest.er1
10713 ac_status=$?
10714 grep -v '^ *+' conftest.er1 >conftest.err
10715 rm -f conftest.er1
10716 cat conftest.err >&5
10717 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10718 (exit $ac_status); } && {
10719 test -z "$ac_c_werror_flag" ||
10720 test ! -s conftest.err
10721 } && test -s conftest.$ac_objext; then
10722 ac_header_compiler=yes
10723else
10724 $as_echo "$as_me: failed program was:" >&5
10725sed 's/^/| /' conftest.$ac_ext >&5
10726
10727 ac_header_compiler=no
10728fi
10729
10730rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10731{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10732$as_echo "$ac_header_compiler" >&6; }
10733
10734# Is the header present?
10735{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10736$as_echo_n "checking $ac_header presence... " >&6; }
10737cat >conftest.$ac_ext <<_ACEOF
10738/* confdefs.h. */
10739_ACEOF
10740cat confdefs.h >>conftest.$ac_ext
10741cat >>conftest.$ac_ext <<_ACEOF
10742/* end confdefs.h. */
10743#include <$ac_header>
10744_ACEOF
10745if { (ac_try="$ac_cpp conftest.$ac_ext"
10746case "(($ac_try" in
10747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10748 *) ac_try_echo=$ac_try;;
10749esac
10750eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10751$as_echo "$ac_try_echo") >&5
10752 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10753 ac_status=$?
10754 grep -v '^ *+' conftest.er1 >conftest.err
10755 rm -f conftest.er1
10756 cat conftest.err >&5
10757 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10758 (exit $ac_status); } >/dev/null && {
10759 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10760 test ! -s conftest.err
10761 }; then
10762 ac_header_preproc=yes
10763else
10764 $as_echo "$as_me: failed program was:" >&5
10765sed 's/^/| /' conftest.$ac_ext >&5
10766
10767 ac_header_preproc=no
10768fi
10769
10770rm -f conftest.err conftest.$ac_ext
10771{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10772$as_echo "$ac_header_preproc" >&6; }
10773
10774# So? What about this header?
10775case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10776 yes:no: )
10777 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10778$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10779 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10780$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10781 ac_header_preproc=yes
10782 ;;
10783 no:yes:* )
10784 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10785$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10786 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10787$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10788 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10789$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10790 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10791$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10792 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10793$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10794 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10795$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10796
10797 ;;
10798esac
10799{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10800$as_echo_n "checking for $ac_header... " >&6; }
10801if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10802 $as_echo_n "(cached) " >&6
10803else
10804 eval "$as_ac_Header=\$ac_header_preproc"
10805fi
10806ac_res=`eval 'as_val=${'$as_ac_Header'}
10807 $as_echo "$as_val"'`
10808 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10809$as_echo "$ac_res" >&6; }
10810
10811fi
10812as_val=`eval 'as_val=${'$as_ac_Header'}
10813 $as_echo "$as_val"'`
10814 if test "x$as_val" = x""yes; then
10815 cat >>confdefs.h <<_ACEOF
10816#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10817_ACEOF
10818
10819else
10820 $bailout
10821fi
10822
10823done
10824
10825 check_lib_no_libs cman cman_init
10826 if test $NOTFOUND = 0; then
10827 { $as_echo "$as_me:$LINENO: result: no pkg for libcman, using -lcman" >&5
10828$as_echo "no pkg for libcman, using -lcman" >&6; }
10829 CMAN_LIBS="-lcman"
10830 HAVE_CMAN=yes
10831 fi
10832else
10833 CMAN_CFLAGS=$pkg_cv_CMAN_CFLAGS
10834 CMAN_LIBS=$pkg_cv_CMAN_LIBS
10835 { $as_echo "$as_me:$LINENO: result: yes" >&5
10836$as_echo "yes" >&6; }
10837 HAVE_CMAN=yes
10838fi
10839 CHECKCONFDB=yes
10840 CHECKDLM=yes
10841fi
10842
10843if test x$BUILDCOROSYNC = xyes || \
10844 test x$BUILDOPENAIS = xyes; then
10845
10846pkg_failed=no
10847{ $as_echo "$as_me:$LINENO: checking for COROSYNC" >&5
10848$as_echo_n "checking for COROSYNC... " >&6; }
10849
10850if test -n "$COROSYNC_CFLAGS"; then
10851 pkg_cv_COROSYNC_CFLAGS="$COROSYNC_CFLAGS"
10852 elif test -n "$PKG_CONFIG"; then
10853 if test -n "$PKG_CONFIG" && \
10854 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"corosync\"") >&5
10855 ($PKG_CONFIG --exists --print-errors "corosync") 2>&5
10856 ac_status=$?
10857 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10858 (exit $ac_status); }; then
10859 pkg_cv_COROSYNC_CFLAGS=`$PKG_CONFIG --cflags "corosync" 2>/dev/null`
10860else
10861 pkg_failed=yes
10862fi
10863 else
10864 pkg_failed=untried
10865fi
10866if test -n "$COROSYNC_LIBS"; then
10867 pkg_cv_COROSYNC_LIBS="$COROSYNC_LIBS"
10868 elif test -n "$PKG_CONFIG"; then
10869 if test -n "$PKG_CONFIG" && \
10870 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"corosync\"") >&5
10871 ($PKG_CONFIG --exists --print-errors "corosync") 2>&5
10872 ac_status=$?
10873 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10874 (exit $ac_status); }; then
10875 pkg_cv_COROSYNC_LIBS=`$PKG_CONFIG --libs "corosync" 2>/dev/null`
10876else
10877 pkg_failed=yes
10878fi
10879 else
10880 pkg_failed=untried
10881fi
10882
10883
10884
10885if test $pkg_failed = yes; then
10886
10887if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10888 _pkg_short_errors_supported=yes
10889else
10890 _pkg_short_errors_supported=no
10891fi
10892 if test $_pkg_short_errors_supported = yes; then
10893 COROSYNC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "corosync" 2>&1`
10894 else
10895 COROSYNC_PKG_ERRORS=`$PKG_CONFIG --print-errors "corosync" 2>&1`
10896 fi
10897 # Put the nasty error message in config.log where it belongs
10898 echo "$COROSYNC_PKG_ERRORS" >&5
10899
10900 { $as_echo "$as_me:$LINENO: result: no" >&5
10901$as_echo "no" >&6; }
10902 $bailout
10903elif test $pkg_failed = untried; then
10904 $bailout
10905else
10906 COROSYNC_CFLAGS=$pkg_cv_COROSYNC_CFLAGS
10907 COROSYNC_LIBS=$pkg_cv_COROSYNC_LIBS
10908 { $as_echo "$as_me:$LINENO: result: yes" >&5
10909$as_echo "yes" >&6; }
10910 HAVE_COROSYNC=yes
10911fi
10912 CHECKCONFDB=yes
10913fi
10914
10915if test x$BUILDCOROSYNC = xyes; then
10916
10917pkg_failed=no
10918{ $as_echo "$as_me:$LINENO: checking for QUORUM" >&5
10919$as_echo_n "checking for QUORUM... " >&6; }
10920
10921if test -n "$QUORUM_CFLAGS"; then
10922 pkg_cv_QUORUM_CFLAGS="$QUORUM_CFLAGS"
10923 elif test -n "$PKG_CONFIG"; then
10924 if test -n "$PKG_CONFIG" && \
10925 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libquorum\"") >&5
10926 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
10927 ac_status=$?
10928 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10929 (exit $ac_status); }; then
10930 pkg_cv_QUORUM_CFLAGS=`$PKG_CONFIG --cflags "libquorum" 2>/dev/null`
10931else
10932 pkg_failed=yes
10933fi
10934 else
10935 pkg_failed=untried
10936fi
10937if test -n "$QUORUM_LIBS"; then
10938 pkg_cv_QUORUM_LIBS="$QUORUM_LIBS"
10939 elif test -n "$PKG_CONFIG"; then
10940 if test -n "$PKG_CONFIG" && \
10941 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libquorum\"") >&5
10942 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
10943 ac_status=$?
10944 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10945 (exit $ac_status); }; then
10946 pkg_cv_QUORUM_LIBS=`$PKG_CONFIG --libs "libquorum" 2>/dev/null`
10947else
10948 pkg_failed=yes
10949fi
10950 else
10951 pkg_failed=untried
10952fi
10953
10954
10955
10956if test $pkg_failed = yes; then
10957
10958if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10959 _pkg_short_errors_supported=yes
10960else
10961 _pkg_short_errors_supported=no
10962fi
10963 if test $_pkg_short_errors_supported = yes; then
10964 QUORUM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libquorum" 2>&1`
10965 else
10966 QUORUM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libquorum" 2>&1`
10967 fi
10968 # Put the nasty error message in config.log where it belongs
10969 echo "$QUORUM_PKG_ERRORS" >&5
10970
10971 { $as_echo "$as_me:$LINENO: result: no" >&5
10972$as_echo "no" >&6; }
10973 $bailout
10974elif test $pkg_failed = untried; then
10975 $bailout
10976else
10977 QUORUM_CFLAGS=$pkg_cv_QUORUM_CFLAGS
10978 QUORUM_LIBS=$pkg_cv_QUORUM_LIBS
10979 { $as_echo "$as_me:$LINENO: result: yes" >&5
10980$as_echo "yes" >&6; }
10981 HAVE_QUORUM=yes
10982fi
10983 CHECKCPG=yes
10984 CHECKDLM=yes
10985fi
10986
10987if test x$BUILDOPENAIS = xyes; then
10988
10989pkg_failed=no
10990{ $as_echo "$as_me:$LINENO: checking for SALCK" >&5
10991$as_echo_n "checking for SALCK... " >&6; }
10992
10993if test -n "$SALCK_CFLAGS"; then
10994 pkg_cv_SALCK_CFLAGS="$SALCK_CFLAGS"
10995 elif test -n "$PKG_CONFIG"; then
10996 if test -n "$PKG_CONFIG" && \
10997 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaLck\"") >&5
10998 ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5
10999 ac_status=$?
11000 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11001 (exit $ac_status); }; then
11002 pkg_cv_SALCK_CFLAGS=`$PKG_CONFIG --cflags "libSaLck" 2>/dev/null`
11003else
11004 pkg_failed=yes
11005fi
11006 else
11007 pkg_failed=untried
11008fi
11009if test -n "$SALCK_LIBS"; then
11010 pkg_cv_SALCK_LIBS="$SALCK_LIBS"
11011 elif test -n "$PKG_CONFIG"; then
11012 if test -n "$PKG_CONFIG" && \
11013 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaLck\"") >&5
11014 ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5
11015 ac_status=$?
11016 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11017 (exit $ac_status); }; then
11018 pkg_cv_SALCK_LIBS=`$PKG_CONFIG --libs "libSaLck" 2>/dev/null`
11019else
11020 pkg_failed=yes
11021fi
11022 else
11023 pkg_failed=untried
11024fi
11025
11026
11027
11028if test $pkg_failed = yes; then
11029
11030if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11031 _pkg_short_errors_supported=yes
11032else
11033 _pkg_short_errors_supported=no
11034fi
11035 if test $_pkg_short_errors_supported = yes; then
11036 SALCK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaLck" 2>&1`
11037 else
11038 SALCK_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaLck" 2>&1`
11039 fi
11040 # Put the nasty error message in config.log where it belongs
11041 echo "$SALCK_PKG_ERRORS" >&5
11042
11043 { $as_echo "$as_me:$LINENO: result: no" >&5
11044$as_echo "no" >&6; }
11045 $bailout
11046elif test $pkg_failed = untried; then
11047 $bailout
11048else
11049 SALCK_CFLAGS=$pkg_cv_SALCK_CFLAGS
11050 SALCK_LIBS=$pkg_cv_SALCK_LIBS
11051 { $as_echo "$as_me:$LINENO: result: yes" >&5
11052$as_echo "yes" >&6; }
11053 HAVE_SALCK=yes
11054fi
11055 CHECKCPG=yes
11056fi
11057
11058
11059
11060if test x$CHECKCONFDB = xyes; then
11061
11062pkg_failed=no
11063{ $as_echo "$as_me:$LINENO: checking for CONFDB" >&5
11064$as_echo_n "checking for CONFDB... " >&6; }
11065
11066if test -n "$CONFDB_CFLAGS"; then
11067 pkg_cv_CONFDB_CFLAGS="$CONFDB_CFLAGS"
11068 elif test -n "$PKG_CONFIG"; then
11069 if test -n "$PKG_CONFIG" && \
11070 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libconfdb\"") >&5
11071 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
11072 ac_status=$?
11073 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11074 (exit $ac_status); }; then
11075 pkg_cv_CONFDB_CFLAGS=`$PKG_CONFIG --cflags "libconfdb" 2>/dev/null`
11076else
11077 pkg_failed=yes
11078fi
11079 else
11080 pkg_failed=untried
11081fi
11082if test -n "$CONFDB_LIBS"; then
11083 pkg_cv_CONFDB_LIBS="$CONFDB_LIBS"
11084 elif test -n "$PKG_CONFIG"; then
11085 if test -n "$PKG_CONFIG" && \
11086 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libconfdb\"") >&5
11087 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
11088 ac_status=$?
11089 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11090 (exit $ac_status); }; then
11091 pkg_cv_CONFDB_LIBS=`$PKG_CONFIG --libs "libconfdb" 2>/dev/null`
11092else
11093 pkg_failed=yes
11094fi
11095 else
11096 pkg_failed=untried
11097fi
11098
11099
11100
11101if test $pkg_failed = yes; then
11102
11103if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11104 _pkg_short_errors_supported=yes
11105else
11106 _pkg_short_errors_supported=no
11107fi
11108 if test $_pkg_short_errors_supported = yes; then
11109 CONFDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libconfdb" 2>&1`
11110 else
11111 CONFDB_PKG_ERRORS=`$PKG_CONFIG --print-errors "libconfdb" 2>&1`
11112 fi
11113 # Put the nasty error message in config.log where it belongs
11114 echo "$CONFDB_PKG_ERRORS" >&5
11115
11116 { $as_echo "$as_me:$LINENO: result: no" >&5
11117$as_echo "no" >&6; }
11118 HAVE_CONFDB=no
11119elif test $pkg_failed = untried; then
11120 HAVE_CONFDB=no
11121else
11122 CONFDB_CFLAGS=$pkg_cv_CONFDB_CFLAGS
11123 CONFDB_LIBS=$pkg_cv_CONFDB_LIBS
11124 { $as_echo "$as_me:$LINENO: result: yes" >&5
11125$as_echo "yes" >&6; }
11126 HAVE_CONFDB=yes
11127fi
11128
11129
11130for ac_header in corosync/confdb.h
11131do
11132as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11133if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11134 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11135$as_echo_n "checking for $ac_header... " >&6; }
11136if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11137 $as_echo_n "(cached) " >&6
11138fi
11139ac_res=`eval 'as_val=${'$as_ac_Header'}
11140 $as_echo "$as_val"'`
11141 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11142$as_echo "$ac_res" >&6; }
11143else
11144 # Is the header compilable?
11145{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11146$as_echo_n "checking $ac_header usability... " >&6; }
11147cat >conftest.$ac_ext <<_ACEOF
11148/* confdefs.h. */
11149_ACEOF
11150cat confdefs.h >>conftest.$ac_ext
11151cat >>conftest.$ac_ext <<_ACEOF
11152/* end confdefs.h. */
11153$ac_includes_default
11154#include <$ac_header>
11155_ACEOF
11156rm -f conftest.$ac_objext
11157if { (ac_try="$ac_compile"
11158case "(($ac_try" in
11159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11160 *) ac_try_echo=$ac_try;;
11161esac
11162eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11163$as_echo "$ac_try_echo") >&5
11164 (eval "$ac_compile") 2>conftest.er1
11165 ac_status=$?
11166 grep -v '^ *+' conftest.er1 >conftest.err
11167 rm -f conftest.er1
11168 cat conftest.err >&5
11169 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11170 (exit $ac_status); } && {
11171 test -z "$ac_c_werror_flag" ||
11172 test ! -s conftest.err
11173 } && test -s conftest.$ac_objext; then
11174 ac_header_compiler=yes
11175else
11176 $as_echo "$as_me: failed program was:" >&5
11177sed 's/^/| /' conftest.$ac_ext >&5
11178
11179 ac_header_compiler=no
11180fi
11181
11182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11183{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11184$as_echo "$ac_header_compiler" >&6; }
11185
11186# Is the header present?
11187{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11188$as_echo_n "checking $ac_header presence... " >&6; }
11189cat >conftest.$ac_ext <<_ACEOF
11190/* confdefs.h. */
11191_ACEOF
11192cat confdefs.h >>conftest.$ac_ext
11193cat >>conftest.$ac_ext <<_ACEOF
11194/* end confdefs.h. */
11195#include <$ac_header>
11196_ACEOF
11197if { (ac_try="$ac_cpp conftest.$ac_ext"
11198case "(($ac_try" in
11199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11200 *) ac_try_echo=$ac_try;;
11201esac
11202eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11203$as_echo "$ac_try_echo") >&5
11204 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11205 ac_status=$?
11206 grep -v '^ *+' conftest.er1 >conftest.err
11207 rm -f conftest.er1
11208 cat conftest.err >&5
11209 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11210 (exit $ac_status); } >/dev/null && {
11211 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11212 test ! -s conftest.err
11213 }; then
11214 ac_header_preproc=yes
11215else
11216 $as_echo "$as_me: failed program was:" >&5
11217sed 's/^/| /' conftest.$ac_ext >&5
11218
11219 ac_header_preproc=no
11220fi
11221
11222rm -f conftest.err conftest.$ac_ext
11223{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11224$as_echo "$ac_header_preproc" >&6; }
11225
11226# So? What about this header?
11227case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11228 yes:no: )
11229 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11230$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11231 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11232$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11233 ac_header_preproc=yes
11234 ;;
11235 no:yes:* )
11236 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11237$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11238 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11239$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11240 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11241$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11242 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11243$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11244 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11245$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11246 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11247$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11248
11249 ;;
11250esac
11251{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11252$as_echo_n "checking for $ac_header... " >&6; }
11253if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11254 $as_echo_n "(cached) " >&6
11255else
11256 eval "$as_ac_Header=\$ac_header_preproc"
11257fi
11258ac_res=`eval 'as_val=${'$as_ac_Header'}
11259 $as_echo "$as_val"'`
11260 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11261$as_echo "$ac_res" >&6; }
11262
11263fi
11264as_val=`eval 'as_val=${'$as_ac_Header'}
11265 $as_echo "$as_val"'`
11266 if test "x$as_val" = x""yes; then
11267 cat >>confdefs.h <<_ACEOF
11268#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11269_ACEOF
11270 HAVE_CONFDB_H=yes
11271else
11272 HAVE_CONFDB_H=no
11273fi
11274
11275done
11276
11277
11278 if test x$HAVE_CONFDB != xyes && \
11279 test x$HAVE_CONFDB_H = xyes; then
11280 check_lib_no_libs confdb confdb_initialize
11281 { $as_echo "$as_me:$LINENO: result: no pkg for confdb, using -lconfdb" >&5
11282$as_echo "no pkg for confdb, using -lconfdb" >&6; }
11283 CONFDB_LIBS="-lconfdb"
11284 HAVE_CONFDB=yes
11285 fi
11286
11287 if test x$BUILDCOROSYNC = xyes && \
11288 test x$HAVE_CONFDB != xyes &&
11289 test x$CLVMD != xall; then
11290 { { $as_echo "$as_me:$LINENO: error: bailing out... confdb library is required" >&5
11291$as_echo "$as_me: error: bailing out... confdb library is required" >&2;}
11292 { (exit 1); exit 1; }; }
11293 fi
11294fi
11295
11296if test x$CHECKCPG = xyes; then
11297
11298pkg_failed=no
11299{ $as_echo "$as_me:$LINENO: checking for CPG" >&5
11300$as_echo_n "checking for CPG... " >&6; }
11301
11302if test -n "$CPG_CFLAGS"; then
11303 pkg_cv_CPG_CFLAGS="$CPG_CFLAGS"
11304 elif test -n "$PKG_CONFIG"; then
11305 if test -n "$PKG_CONFIG" && \
11306 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
11307 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
11308 ac_status=$?
11309 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11310 (exit $ac_status); }; then
11311 pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
11312else
11313 pkg_failed=yes
11314fi
11315 else
11316 pkg_failed=untried
11317fi
11318if test -n "$CPG_LIBS"; then
11319 pkg_cv_CPG_LIBS="$CPG_LIBS"
11320 elif test -n "$PKG_CONFIG"; then
11321 if test -n "$PKG_CONFIG" && \
11322 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
11323 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
11324 ac_status=$?
11325 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11326 (exit $ac_status); }; then
11327 pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
11328else
11329 pkg_failed=yes
11330fi
11331 else
11332 pkg_failed=untried
11333fi
11334
11335
11336
11337if test $pkg_failed = yes; then
11338
11339if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11340 _pkg_short_errors_supported=yes
11341else
11342 _pkg_short_errors_supported=no
11343fi
11344 if test $_pkg_short_errors_supported = yes; then
11345 CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
11346 else
11347 CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
11348 fi
11349 # Put the nasty error message in config.log where it belongs
11350 echo "$CPG_PKG_ERRORS" >&5
11351
11352 { $as_echo "$as_me:$LINENO: result: no" >&5
11353$as_echo "no" >&6; }
11354 $bailout
11355elif test $pkg_failed = untried; then
11356 $bailout
11357else
11358 CPG_CFLAGS=$pkg_cv_CPG_CFLAGS
11359 CPG_LIBS=$pkg_cv_CPG_LIBS
11360 { $as_echo "$as_me:$LINENO: result: yes" >&5
11361$as_echo "yes" >&6; }
11362 HAVE_CPG=yes
11363fi
11364fi
11365
11366if test x$CHECKDLM = xyes; then
11367
11368pkg_failed=no
11369{ $as_echo "$as_me:$LINENO: checking for DLM" >&5
11370$as_echo_n "checking for DLM... " >&6; }
11371
11372if test -n "$DLM_CFLAGS"; then
11373 pkg_cv_DLM_CFLAGS="$DLM_CFLAGS"
11374 elif test -n "$PKG_CONFIG"; then
11375 if test -n "$PKG_CONFIG" && \
11376 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdlm\"") >&5
11377 ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5
11378 ac_status=$?
11379 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11380 (exit $ac_status); }; then
11381 pkg_cv_DLM_CFLAGS=`$PKG_CONFIG --cflags "libdlm" 2>/dev/null`
11382else
11383 pkg_failed=yes
11384fi
11385 else
11386 pkg_failed=untried
11387fi
11388if test -n "$DLM_LIBS"; then
11389 pkg_cv_DLM_LIBS="$DLM_LIBS"
11390 elif test -n "$PKG_CONFIG"; then
11391 if test -n "$PKG_CONFIG" && \
11392 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdlm\"") >&5
11393 ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5
11394 ac_status=$?
11395 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11396 (exit $ac_status); }; then
11397 pkg_cv_DLM_LIBS=`$PKG_CONFIG --libs "libdlm" 2>/dev/null`
11398else
11399 pkg_failed=yes
11400fi
11401 else
11402 pkg_failed=untried
11403fi
11404
11405
11406
11407if test $pkg_failed = yes; then
11408
11409if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11410 _pkg_short_errors_supported=yes
11411else
11412 _pkg_short_errors_supported=no
11413fi
11414 if test $_pkg_short_errors_supported = yes; then
11415 DLM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdlm" 2>&1`
11416 else
11417 DLM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdlm" 2>&1`
11418 fi
11419 # Put the nasty error message in config.log where it belongs
11420 echo "$DLM_PKG_ERRORS" >&5
11421
11422 { $as_echo "$as_me:$LINENO: result: no" >&5
11423$as_echo "no" >&6; }
11424 NOTFOUND=0
11425
11426for ac_header in libdlm.h
11427do
11428as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11429if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11430 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11431$as_echo_n "checking for $ac_header... " >&6; }
11432if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11433 $as_echo_n "(cached) " >&6
11434fi
11435ac_res=`eval 'as_val=${'$as_ac_Header'}
11436 $as_echo "$as_val"'`
11437 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11438$as_echo "$ac_res" >&6; }
11439else
11440 # Is the header compilable?
11441{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11442$as_echo_n "checking $ac_header usability... " >&6; }
11443cat >conftest.$ac_ext <<_ACEOF
11444/* confdefs.h. */
11445_ACEOF
11446cat confdefs.h >>conftest.$ac_ext
11447cat >>conftest.$ac_ext <<_ACEOF
11448/* end confdefs.h. */
11449$ac_includes_default
11450#include <$ac_header>
11451_ACEOF
11452rm -f conftest.$ac_objext
11453if { (ac_try="$ac_compile"
11454case "(($ac_try" in
11455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11456 *) ac_try_echo=$ac_try;;
11457esac
11458eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11459$as_echo "$ac_try_echo") >&5
11460 (eval "$ac_compile") 2>conftest.er1
11461 ac_status=$?
11462 grep -v '^ *+' conftest.er1 >conftest.err
11463 rm -f conftest.er1
11464 cat conftest.err >&5
11465 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11466 (exit $ac_status); } && {
11467 test -z "$ac_c_werror_flag" ||
11468 test ! -s conftest.err
11469 } && test -s conftest.$ac_objext; then
11470 ac_header_compiler=yes
11471else
11472 $as_echo "$as_me: failed program was:" >&5
11473sed 's/^/| /' conftest.$ac_ext >&5
11474
11475 ac_header_compiler=no
11476fi
11477
11478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11479{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11480$as_echo "$ac_header_compiler" >&6; }
11481
11482# Is the header present?
11483{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11484$as_echo_n "checking $ac_header presence... " >&6; }
11485cat >conftest.$ac_ext <<_ACEOF
11486/* confdefs.h. */
11487_ACEOF
11488cat confdefs.h >>conftest.$ac_ext
11489cat >>conftest.$ac_ext <<_ACEOF
11490/* end confdefs.h. */
11491#include <$ac_header>
11492_ACEOF
11493if { (ac_try="$ac_cpp conftest.$ac_ext"
11494case "(($ac_try" in
11495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11496 *) ac_try_echo=$ac_try;;
11497esac
11498eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11499$as_echo "$ac_try_echo") >&5
11500 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11501 ac_status=$?
11502 grep -v '^ *+' conftest.er1 >conftest.err
11503 rm -f conftest.er1
11504 cat conftest.err >&5
11505 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11506 (exit $ac_status); } >/dev/null && {
11507 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11508 test ! -s conftest.err
11509 }; then
11510 ac_header_preproc=yes
11511else
11512 $as_echo "$as_me: failed program was:" >&5
11513sed 's/^/| /' conftest.$ac_ext >&5
11514
11515 ac_header_preproc=no
11516fi
11517
11518rm -f conftest.err conftest.$ac_ext
11519{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11520$as_echo "$ac_header_preproc" >&6; }
11521
11522# So? What about this header?
11523case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11524 yes:no: )
11525 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11526$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11527 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11528$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11529 ac_header_preproc=yes
11530 ;;
11531 no:yes:* )
11532 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11533$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11534 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11535$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11536 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11537$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11538 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11539$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11540 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11541$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11542 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11543$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11544
11545 ;;
11546esac
11547{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11548$as_echo_n "checking for $ac_header... " >&6; }
11549if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11550 $as_echo_n "(cached) " >&6
11551else
11552 eval "$as_ac_Header=\$ac_header_preproc"
11553fi
11554ac_res=`eval 'as_val=${'$as_ac_Header'}
11555 $as_echo "$as_val"'`
11556 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11557$as_echo "$ac_res" >&6; }
11558
11559fi
11560as_val=`eval 'as_val=${'$as_ac_Header'}
11561 $as_echo "$as_val"'`
11562 if test "x$as_val" = x""yes; then
11563 cat >>confdefs.h <<_ACEOF
11564#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11565_ACEOF
11566
11567else
11568 $bailout
11569fi
11570
11571done
11572
11573 check_lib_no_libs dlm dlm_lock -lpthread
11574 if test $NOTFOUND = 0; then
11575 { $as_echo "$as_me:$LINENO: result: no pkg for libdlm, using -ldlm" >&5
11576$as_echo "no pkg for libdlm, using -ldlm" >&6; }
11577 DLM_LIBS="-ldlm -lpthread"
11578 HAVE_DLM=yes
11579 fi
11580elif test $pkg_failed = untried; then
11581 NOTFOUND=0
11582
11583for ac_header in libdlm.h
11584do
11585as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11586if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11587 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11588$as_echo_n "checking for $ac_header... " >&6; }
11589if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11590 $as_echo_n "(cached) " >&6
11591fi
11592ac_res=`eval 'as_val=${'$as_ac_Header'}
11593 $as_echo "$as_val"'`
11594 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11595$as_echo "$ac_res" >&6; }
11596else
11597 # Is the header compilable?
11598{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11599$as_echo_n "checking $ac_header usability... " >&6; }
11600cat >conftest.$ac_ext <<_ACEOF
11601/* confdefs.h. */
11602_ACEOF
11603cat confdefs.h >>conftest.$ac_ext
11604cat >>conftest.$ac_ext <<_ACEOF
11605/* end confdefs.h. */
11606$ac_includes_default
11607#include <$ac_header>
11608_ACEOF
11609rm -f conftest.$ac_objext
11610if { (ac_try="$ac_compile"
11611case "(($ac_try" in
11612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11613 *) ac_try_echo=$ac_try;;
11614esac
11615eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11616$as_echo "$ac_try_echo") >&5
11617 (eval "$ac_compile") 2>conftest.er1
11618 ac_status=$?
11619 grep -v '^ *+' conftest.er1 >conftest.err
11620 rm -f conftest.er1
11621 cat conftest.err >&5
11622 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11623 (exit $ac_status); } && {
11624 test -z "$ac_c_werror_flag" ||
11625 test ! -s conftest.err
11626 } && test -s conftest.$ac_objext; then
11627 ac_header_compiler=yes
11628else
11629 $as_echo "$as_me: failed program was:" >&5
11630sed 's/^/| /' conftest.$ac_ext >&5
11631
11632 ac_header_compiler=no
11633fi
11634
11635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11636{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11637$as_echo "$ac_header_compiler" >&6; }
11638
11639# Is the header present?
11640{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11641$as_echo_n "checking $ac_header presence... " >&6; }
11642cat >conftest.$ac_ext <<_ACEOF
11643/* confdefs.h. */
11644_ACEOF
11645cat confdefs.h >>conftest.$ac_ext
11646cat >>conftest.$ac_ext <<_ACEOF
11647/* end confdefs.h. */
11648#include <$ac_header>
11649_ACEOF
11650if { (ac_try="$ac_cpp conftest.$ac_ext"
11651case "(($ac_try" in
11652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11653 *) ac_try_echo=$ac_try;;
11654esac
11655eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11656$as_echo "$ac_try_echo") >&5
11657 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11658 ac_status=$?
11659 grep -v '^ *+' conftest.er1 >conftest.err
11660 rm -f conftest.er1
11661 cat conftest.err >&5
11662 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11663 (exit $ac_status); } >/dev/null && {
11664 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11665 test ! -s conftest.err
11666 }; then
11667 ac_header_preproc=yes
11668else
11669 $as_echo "$as_me: failed program was:" >&5
11670sed 's/^/| /' conftest.$ac_ext >&5
11671
11672 ac_header_preproc=no
11673fi
11674
11675rm -f conftest.err conftest.$ac_ext
11676{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11677$as_echo "$ac_header_preproc" >&6; }
11678
11679# So? What about this header?
11680case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11681 yes:no: )
11682 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11683$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11684 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11685$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11686 ac_header_preproc=yes
11687 ;;
11688 no:yes:* )
11689 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11690$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11691 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11692$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11693 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11694$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11695 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11696$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11697 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11698$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11699 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11700$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11701
11702 ;;
11703esac
11704{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11705$as_echo_n "checking for $ac_header... " >&6; }
11706if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11707 $as_echo_n "(cached) " >&6
11708else
11709 eval "$as_ac_Header=\$ac_header_preproc"
11710fi
11711ac_res=`eval 'as_val=${'$as_ac_Header'}
11712 $as_echo "$as_val"'`
11713 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11714$as_echo "$ac_res" >&6; }
11715
11716fi
11717as_val=`eval 'as_val=${'$as_ac_Header'}
11718 $as_echo "$as_val"'`
11719 if test "x$as_val" = x""yes; then
11720 cat >>confdefs.h <<_ACEOF
11721#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11722_ACEOF
11723
11724else
11725 $bailout
11726fi
11727
11728done
11729
11730 check_lib_no_libs dlm dlm_lock -lpthread
11731 if test $NOTFOUND = 0; then
11732 { $as_echo "$as_me:$LINENO: result: no pkg for libdlm, using -ldlm" >&5
11733$as_echo "no pkg for libdlm, using -ldlm" >&6; }
11734 DLM_LIBS="-ldlm -lpthread"
11735 HAVE_DLM=yes
11736 fi
11737else
11738 DLM_CFLAGS=$pkg_cv_DLM_CFLAGS
11739 DLM_LIBS=$pkg_cv_DLM_LIBS
11740 { $as_echo "$as_me:$LINENO: result: yes" >&5
11741$as_echo "yes" >&6; }
11742 HAVE_DLM=yes
11743fi
11744fi
11745
11746if test x$CLVMD = xall; then
8c222979 11747 CLVMD=none
a946372e
AK
11748 if test x$HAVE_CCS = xyes && \
11749 test x$HAVE_GULM = xyes; then
8c222979
FDN
11750 { $as_echo "$as_me:$LINENO: result: Enabling clvmd gulm cluster manager" >&5
11751$as_echo "Enabling clvmd gulm cluster manager" >&6; }
11752 CLVMD="$CLVMD,gulm"
a946372e
AK
11753 fi
11754 if test x$HAVE_CMAN = xyes && \
11755 test x$HAVE_DLM = xyes; then
8c222979
FDN
11756 { $as_echo "$as_me:$LINENO: result: Enabling clvmd cman cluster manager" >&5
11757$as_echo "Enabling clvmd cman cluster manager" >&6; }
11758 CLVMD="$CLVMD,cman"
a946372e
AK
11759 fi
11760 if test x$HAVE_COROSYNC = xyes && \
11761 test x$HAVE_QUORUM = xyes && \
11762 test x$HAVE_CPG = xyes && \
11763 test x$HAVE_DLM = xyes && \
11764 test x$HAVE_CONFDB = xyes; then
8c222979
FDN
11765 { $as_echo "$as_me:$LINENO: result: Enabling clvmd corosync cluster manager" >&5
11766$as_echo "Enabling clvmd corosync cluster manager" >&6; }
11767 CLVMD="$CLVMD,corosync"
a946372e
AK
11768 fi
11769 if test x$HAVE_COROSYNC = xyes && \
11770 test x$HAVE_CPG = xyes && \
11771 test x$HAVE_SALCK = xyes; then
8c222979
FDN
11772 { $as_echo "$as_me:$LINENO: result: Enabling clvmd openais cluster manager" >&5
11773$as_echo "Enabling clvmd openais cluster manager" >&6; }
11774 CLVMD="$CLVMD,openais"
11775 fi
11776 if test x$CLVMD = xnone; then
11777 { $as_echo "$as_me:$LINENO: result: Disabling clvmd build. No cluster manager detected." >&5
11778$as_echo "Disabling clvmd build. No cluster manager detected." >&6; }
a946372e 11779 fi
a946372e
AK
11780fi
11781
11782################################################################################
66fd4529
AK
11783{ $as_echo "$as_me:$LINENO: checking whether to build cluster mirror log daemon" >&5
11784$as_echo_n "checking whether to build cluster mirror log daemon... " >&6; }
11785# Check whether --enable-cmirrord was given.
11786if test "${enable_cmirrord+set}" = set; then
11787 enableval=$enable_cmirrord; CMIRRORD=$enableval
11788else
11789 CMIRRORD=no
11790fi
11791
11792{ $as_echo "$as_me:$LINENO: result: $CMIRRORD" >&5
11793$as_echo "$CMIRRORD" >&6; }
11794
11795BUILD_CMIRRORD=$CMIRRORD
11796
11797################################################################################
11798
11799
11800if test "x$BUILD_CMIRRORD" = xyes; then
11801
11802# Check whether --with-cmirrord-pidfile was given.
11803if test "${with_cmirrord_pidfile+set}" = set; then
11804 withval=$with_cmirrord_pidfile; cat >>confdefs.h <<_ACEOF
11805#define CMIRRORD_PIDFILE "$withval"
11806_ACEOF
11807
11808else
11809 cat >>confdefs.h <<_ACEOF
11810#define CMIRRORD_PIDFILE "/var/run/cmirrord.pid"
11811_ACEOF
11812
a946372e
AK
11813fi
11814
66fd4529 11815fi
a946372e 11816
66fd4529
AK
11817################################################################################
11818if [ "x$BUILD_CMIRRORD" = xyes ]; then
90c80887
AK
11819 if test x$PKGCONFIG_INIT != x1; then
11820 pkg_config_init
11821 fi
11822
11823pkg_failed=no
11824{ $as_echo "$as_me:$LINENO: checking for SACKPT" >&5
11825$as_echo_n "checking for SACKPT... " >&6; }
11826
11827if test -n "$SACKPT_CFLAGS"; then
11828 pkg_cv_SACKPT_CFLAGS="$SACKPT_CFLAGS"
11829 elif test -n "$PKG_CONFIG"; then
11830 if test -n "$PKG_CONFIG" && \
11831 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\"") >&5
11832 ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5
11833 ac_status=$?
11834 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11835 (exit $ac_status); }; then
11836 pkg_cv_SACKPT_CFLAGS=`$PKG_CONFIG --cflags "libSaCkpt" 2>/dev/null`
11837else
11838 pkg_failed=yes
11839fi
11840 else
11841 pkg_failed=untried
11842fi
11843if test -n "$SACKPT_LIBS"; then
11844 pkg_cv_SACKPT_LIBS="$SACKPT_LIBS"
11845 elif test -n "$PKG_CONFIG"; then
11846 if test -n "$PKG_CONFIG" && \
11847 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\"") >&5
11848 ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5
11849 ac_status=$?
11850 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11851 (exit $ac_status); }; then
11852 pkg_cv_SACKPT_LIBS=`$PKG_CONFIG --libs "libSaCkpt" 2>/dev/null`
11853else
11854 pkg_failed=yes
11855fi
11856 else
11857 pkg_failed=untried
11858fi
11859
11860
11861
11862if test $pkg_failed = yes; then
11863
11864if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11865 _pkg_short_errors_supported=yes
11866else
11867 _pkg_short_errors_supported=no
11868fi
11869 if test $_pkg_short_errors_supported = yes; then
11870 SACKPT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaCkpt" 2>&1`
11871 else
11872 SACKPT_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaCkpt" 2>&1`
11873 fi
11874 # Put the nasty error message in config.log where it belongs
11875 echo "$SACKPT_PKG_ERRORS" >&5
11876
11877 { { $as_echo "$as_me:$LINENO: error: Package requirements (libSaCkpt) were not met:
11878
11879$SACKPT_PKG_ERRORS
11880
11881Consider adjusting the PKG_CONFIG_PATH environment variable if you
11882installed software in a non-standard prefix.
11883
11884Alternatively, you may set the environment variables SACKPT_CFLAGS
11885and SACKPT_LIBS to avoid the need to call pkg-config.
11886See the pkg-config man page for more details.
11887" >&5
11888$as_echo "$as_me: error: Package requirements (libSaCkpt) were not met:
11889
11890$SACKPT_PKG_ERRORS
11891
11892Consider adjusting the PKG_CONFIG_PATH environment variable if you
11893installed software in a non-standard prefix.
11894
11895Alternatively, you may set the environment variables SACKPT_CFLAGS
11896and SACKPT_LIBS to avoid the need to call pkg-config.
11897See the pkg-config man page for more details.
11898" >&2;}
11899 { (exit 1); exit 1; }; }
11900elif test $pkg_failed = untried; then
11901 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11902$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11903{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
11904is in your PATH or set the PKG_CONFIG environment variable to the full
11905path to pkg-config.
11906
11907Alternatively, you may set the environment variables SACKPT_CFLAGS
11908and SACKPT_LIBS to avoid the need to call pkg-config.
11909See the pkg-config man page for more details.
11910
11911To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11912See \`config.log' for more details." >&5
11913$as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
11914is in your PATH or set the PKG_CONFIG environment variable to the full
11915path to pkg-config.
11916
11917Alternatively, you may set the environment variables SACKPT_CFLAGS
11918and SACKPT_LIBS to avoid the need to call pkg-config.
11919See the pkg-config man page for more details.
11920
11921To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11922See \`config.log' for more details." >&2;}
11923 { (exit 1); exit 1; }; }; }
11924else
11925 SACKPT_CFLAGS=$pkg_cv_SACKPT_CFLAGS
11926 SACKPT_LIBS=$pkg_cv_SACKPT_LIBS
11927 { $as_echo "$as_me:$LINENO: result: yes" >&5
11928$as_echo "yes" >&6; }
11929 :
11930fi
11931 if test x$HAVE_CPG != xyes; then
a946372e
AK
11932
11933pkg_failed=no
11934{ $as_echo "$as_me:$LINENO: checking for CPG" >&5
11935$as_echo_n "checking for CPG... " >&6; }
11936
11937if test -n "$CPG_CFLAGS"; then
11938 pkg_cv_CPG_CFLAGS="$CPG_CFLAGS"
11939 elif test -n "$PKG_CONFIG"; then
11940 if test -n "$PKG_CONFIG" && \
11941 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
11942 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
11943 ac_status=$?
11944 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11945 (exit $ac_status); }; then
11946 pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
11947else
11948 pkg_failed=yes
11949fi
11950 else
11951 pkg_failed=untried
11952fi
11953if test -n "$CPG_LIBS"; then
11954 pkg_cv_CPG_LIBS="$CPG_LIBS"
11955 elif test -n "$PKG_CONFIG"; then
11956 if test -n "$PKG_CONFIG" && \
11957 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
11958 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
11959 ac_status=$?
11960 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11961 (exit $ac_status); }; then
11962 pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
11963else
11964 pkg_failed=yes
11965fi
11966 else
11967 pkg_failed=untried
11968fi
11969
11970
11971
11972if test $pkg_failed = yes; then
11973
11974if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11975 _pkg_short_errors_supported=yes
11976else
11977 _pkg_short_errors_supported=no
11978fi
11979 if test $_pkg_short_errors_supported = yes; then
11980 CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
11981 else
11982 CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
11983 fi
11984 # Put the nasty error message in config.log where it belongs
11985 echo "$CPG_PKG_ERRORS" >&5
11986
90c80887
AK
11987 { { $as_echo "$as_me:$LINENO: error: Package requirements (libcpg) were not met:
11988
11989$CPG_PKG_ERRORS
11990
11991Consider adjusting the PKG_CONFIG_PATH environment variable if you
11992installed software in a non-standard prefix.
11993
11994Alternatively, you may set the environment variables CPG_CFLAGS
11995and CPG_LIBS to avoid the need to call pkg-config.
11996See the pkg-config man page for more details.
11997" >&5
11998$as_echo "$as_me: error: Package requirements (libcpg) were not met:
11999
12000$CPG_PKG_ERRORS
12001
12002Consider adjusting the PKG_CONFIG_PATH environment variable if you
12003installed software in a non-standard prefix.
12004
12005Alternatively, you may set the environment variables CPG_CFLAGS
12006and CPG_LIBS to avoid the need to call pkg-config.
12007See the pkg-config man page for more details.
12008" >&2;}
12009 { (exit 1); exit 1; }; }
a946372e 12010elif test $pkg_failed = untried; then
90c80887
AK
12011 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12012$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12013{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
12014is in your PATH or set the PKG_CONFIG environment variable to the full
12015path to pkg-config.
12016
12017Alternatively, you may set the environment variables CPG_CFLAGS
12018and CPG_LIBS to avoid the need to call pkg-config.
12019See the pkg-config man page for more details.
12020
12021To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12022See \`config.log' for more details." >&5
12023$as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
12024is in your PATH or set the PKG_CONFIG environment variable to the full
12025path to pkg-config.
12026
12027Alternatively, you may set the environment variables CPG_CFLAGS
12028and CPG_LIBS to avoid the need to call pkg-config.
12029See the pkg-config man page for more details.
12030
12031To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12032See \`config.log' for more details." >&2;}
12033 { (exit 1); exit 1; }; }; }
a946372e
AK
12034else
12035 CPG_CFLAGS=$pkg_cv_CPG_CFLAGS
12036 CPG_LIBS=$pkg_cv_CPG_LIBS
12037 { $as_echo "$as_me:$LINENO: result: yes" >&5
12038$as_echo "yes" >&6; }
12039 :
12040fi
90c80887 12041 fi
a946372e
AK
12042fi
12043
12044################################################################################
12045{ $as_echo "$as_me:$LINENO: checking whether to enable debugging" >&5
12046$as_echo_n "checking whether to enable debugging... " >&6; }
12047# Check whether --enable-debug was given.
12048if test "${enable_debug+set}" = set; then
12049 enableval=$enable_debug; DEBUG=$enableval
12050else
12051 DEBUG=no
12052fi
12053
12054{ $as_echo "$as_me:$LINENO: result: $DEBUG" >&5
12055$as_echo "$DEBUG" >&6; }
12056
12057if test x$DEBUG = xyes; then
12058 COPTIMISE_FLAG=
12059else
12060 CSCOPE_CMD=
12061fi
12062
12063################################################################################
12064{ $as_echo "$as_me:$LINENO: checking for C optimisation flag" >&5
12065$as_echo_n "checking for C optimisation flag... " >&6; }
12066
12067# Check whether --with-optimisation was given.
12068if test "${with_optimisation+set}" = set; then
12069 withval=$with_optimisation; COPTIMISE_FLAG="$withval"
12070fi
12071
12072{ $as_echo "$as_me:$LINENO: result: $COPTIMISE_FLAG" >&5
12073$as_echo "$COPTIMISE_FLAG" >&6; }
12074
12075################################################################################
12076{ $as_echo "$as_me:$LINENO: checking whether to gather gcov profiling data" >&5
12077$as_echo_n "checking whether to gather gcov profiling data... " >&6; }
12078# Check whether --enable-profiling was given.
12079if test "${enable_profiling+set}" = set; then
5556819a 12080 enableval=$enable_profiling; PROFILING=$enableval
fddafd51 12081else
5556819a 12082 PROFILING=no
fddafd51
ZK
12083fi
12084
ec6a6fbe
AK
12085{ $as_echo "$as_me:$LINENO: result: $PROFILING" >&5
12086$as_echo "$PROFILING" >&6; }
5556819a
AK
12087
12088if test "x$PROFILING" = xyes; then
12089 COPTIMISE_FLAG="$COPTIMISE_FLAG -fprofile-arcs -ftest-coverage"
12090 # Extract the first word of "lcov", so it can be a program name with args.
fddafd51 12091set dummy lcov; ac_word=$2
ec6a6fbe
AK
12092{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12093$as_echo_n "checking for $ac_word... " >&6; }
fddafd51 12094if test "${ac_cv_path_LCOV+set}" = set; then
ec6a6fbe 12095 $as_echo_n "(cached) " >&6
fddafd51
ZK
12096else
12097 case $LCOV in
12098 [\\/]* | ?:[\\/]*)
12099 ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path.
12100 ;;
12101 *)
12102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12103for as_dir in $PATH
12104do
12105 IFS=$as_save_IFS
12106 test -z "$as_dir" && as_dir=.
12107 for ac_exec_ext in '' $ac_executable_extensions; do
12108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12109 ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 12110 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
fddafd51
ZK
12111 break 2
12112 fi
12113done
12114done
12115IFS=$as_save_IFS
12116
b145d876 12117 test -z "$ac_cv_path_LCOV" && ac_cv_path_LCOV="no"
fddafd51
ZK
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
b145d876 12158 test -z "$ac_cv_path_GENHTML" && ac_cv_path_GENHTML="no"
fddafd51
ZK
12159 ;;
12160esac
12161fi
12162GENHTML=$ac_cv_path_GENHTML
12163if test -n "$GENHTML"; then
ec6a6fbe
AK
12164 { $as_echo "$as_me:$LINENO: result: $GENHTML" >&5
12165$as_echo "$GENHTML" >&6; }
fddafd51 12166else
ec6a6fbe
AK
12167 { $as_echo "$as_me:$LINENO: result: no" >&5
12168$as_echo "no" >&6; }
fddafd51
ZK
12169fi
12170
12171
b145d876 12172 if test "$LCOV" = no -o "$GENHTML" = no ; then
ec6a6fbe
AK
12173 { { $as_echo "$as_me:$LINENO: error: lcov and genhtml are required for profiling" >&5
12174$as_echo "$as_me: error: lcov and genhtml are required for profiling" >&2;}
b145d876
ZK
12175 { (exit 1); exit 1; }; }
12176 fi
5556819a 12177fi
d0191583
JM
12178
12179################################################################################
ec6a6fbe
AK
12180{ $as_echo "$as_me:$LINENO: checking whether to use device-mapper" >&5
12181$as_echo_n "checking whether to use device-mapper... " >&6; }
d0191583
JM
12182# Check whether --enable-devmapper was given.
12183if test "${enable_devmapper+set}" = set; then
12184 enableval=$enable_devmapper; DEVMAPPER=$enableval
fc54be10
AK
12185fi
12186
ec6a6fbe
AK
12187{ $as_echo "$as_me:$LINENO: result: $DEVMAPPER" >&5
12188$as_echo "$DEVMAPPER" >&6; }
d0191583
JM
12189
12190if test x$DEVMAPPER = xyes; then
ad6254c5
AK
12191
12192cat >>confdefs.h <<\_ACEOF
d0191583 12193#define DEVMAPPER_SUPPORT 1
ad6254c5
AK
12194_ACEOF
12195
12196fi
12197
a5f46f6a
AK
12198################################################################################
12199{ $as_echo "$as_me:$LINENO: checking whether to enable synchronisation with udev processing" >&5
12200$as_echo_n "checking whether to enable synchronisation with udev processing... " >&6; }
12201# Check whether --enable-udev_sync was given.
12202if test "${enable_udev_sync+set}" = set; then
12203 enableval=$enable_udev_sync; UDEV_SYNC=$enableval
12204else
12205 UDEV_SYNC=no
12206fi
12207
12208{ $as_echo "$as_me:$LINENO: result: $UDEV_SYNC" >&5
12209$as_echo "$UDEV_SYNC" >&6; }
12210
90c80887
AK
12211if test x$UDEV_SYNC = xyes; then
12212 { $as_echo "$as_me:$LINENO: checking for udev_queue_get_udev_is_active in -ludev" >&5
12213$as_echo_n "checking for udev_queue_get_udev_is_active in -ludev... " >&6; }
12214if test "${ac_cv_lib_udev_udev_queue_get_udev_is_active+set}" = set; then
12215 $as_echo_n "(cached) " >&6
12216else
12217 ac_check_lib_save_LIBS=$LIBS
12218LIBS="-ludev $LIBS"
12219cat >conftest.$ac_ext <<_ACEOF
12220/* confdefs.h. */
12221_ACEOF
12222cat confdefs.h >>conftest.$ac_ext
12223cat >>conftest.$ac_ext <<_ACEOF
12224/* end confdefs.h. */
12225
12226/* Override any GCC internal prototype to avoid an error.
12227 Use char because int might match the return type of a GCC
12228 builtin and then its argument prototype would still apply. */
12229#ifdef __cplusplus
12230extern "C"
12231#endif
12232char udev_queue_get_udev_is_active ();
12233int
12234main ()
12235{
12236return udev_queue_get_udev_is_active ();
12237 ;
12238 return 0;
12239}
12240_ACEOF
12241rm -f conftest.$ac_objext conftest$ac_exeext
12242if { (ac_try="$ac_link"
12243case "(($ac_try" in
12244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12245 *) ac_try_echo=$ac_try;;
12246esac
12247eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12248$as_echo "$ac_try_echo") >&5
12249 (eval "$ac_link") 2>conftest.er1
12250 ac_status=$?
12251 grep -v '^ *+' conftest.er1 >conftest.err
12252 rm -f conftest.er1
12253 cat conftest.err >&5
12254 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12255 (exit $ac_status); } && {
12256 test -z "$ac_c_werror_flag" ||
12257 test ! -s conftest.err
12258 } && test -s conftest$ac_exeext && {
12259 test "$cross_compiling" = yes ||
12260 $as_test_x conftest$ac_exeext
12261 }; then
12262 ac_cv_lib_udev_udev_queue_get_udev_is_active=yes
12263else
12264 $as_echo "$as_me: failed program was:" >&5
12265sed 's/^/| /' conftest.$ac_ext >&5
12266
12267 ac_cv_lib_udev_udev_queue_get_udev_is_active=no
12268fi
12269
12270rm -rf conftest.dSYM
12271rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12272 conftest$ac_exeext conftest.$ac_ext
12273LIBS=$ac_check_lib_save_LIBS
12274fi
12275{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_udev_udev_queue_get_udev_is_active" >&5
12276$as_echo "$ac_cv_lib_udev_udev_queue_get_udev_is_active" >&6; }
12277if test "x$ac_cv_lib_udev_udev_queue_get_udev_is_active" = x""yes; then
5161ecb9 12278 UDEV_LIBS="-ludev"
90c80887 12279else
5161ecb9
PR
12280 { { $as_echo "$as_me:$LINENO: error: bailing out... libudev library is required" >&5
12281$as_echo "$as_me: error: bailing out... libudev library is required" >&2;}
12282 { (exit 1); exit 1; }; }
90c80887
AK
12283fi
12284
12285
90c80887 12286cat >>confdefs.h <<\_ACEOF
5161ecb9 12287#define UDEV_SYNC_SUPPORT 1
90c80887
AK
12288_ACEOF
12289
90c80887
AK
12290fi
12291
5161ecb9
PR
12292{ $as_echo "$as_me:$LINENO: checking whether to enable installation of udev rules required for synchronisation" >&5
12293$as_echo_n "checking whether to enable installation of udev rules required for synchronisation... " >&6; }
12294# Check whether --enable-udev_rules was given.
12295if test "${enable_udev_rules+set}" = set; then
12296 enableval=$enable_udev_rules; UDEV_RULES=$enableval
12297else
12298 UDEV_RULES=$UDEV_SYNC
12299fi
12300
12301{ $as_echo "$as_me:$LINENO: result: $UDEV_RULES" >&5
12302$as_echo "$UDEV_RULES" >&6; }
12303
93bd259b
AK
12304################################################################################
12305# Check whether --enable-compat was given.
12306if test "${enable_compat+set}" = set; then
12307 enableval=$enable_compat; DM_COMPAT=$enableval
12308else
12309 DM_COMPAT=no
12310fi
12311
12312
95eaa683
AK
12313################################################################################
12314# Check whether --enable-units-compat was given.
12315if test "${enable_units_compat+set}" = set; then
12316 enableval=$enable_units_compat; UNITS_COMPAT=$enableval
12317else
12318 UNITS_COMPAT=no
12319fi
12320
12321
12322if test x$UNITS_COMPAT = xyes; then
12323
12324cat >>confdefs.h <<\_ACEOF
12325#define DEFAULT_SI_UNIT_CONSISTENCY 0
12326_ACEOF
12327
12328fi
12329
93bd259b
AK
12330################################################################################
12331# Check whether --enable-ioctl was given.
12332if test "${enable_ioctl+set}" = set; then
12333 enableval=$enable_ioctl; DM_IOCTLS=$enableval
12334fi
12335
12336
d0191583 12337################################################################################
ec6a6fbe
AK
12338{ $as_echo "$as_me:$LINENO: checking whether to enable O_DIRECT" >&5
12339$as_echo_n "checking whether to enable O_DIRECT... " >&6; }
d0191583
JM
12340# Check whether --enable-o_direct was given.
12341if test "${enable_o_direct+set}" = set; then
12342 enableval=$enable_o_direct; ODIRECT=$enableval
ad6254c5 12343fi
ad6254c5 12344
ec6a6fbe
AK
12345{ $as_echo "$as_me:$LINENO: result: $ODIRECT" >&5
12346$as_echo "$ODIRECT" >&6; }
ad6254c5 12347
d0191583 12348if test x$ODIRECT = xyes; then
ad6254c5 12349
d0191583
JM
12350cat >>confdefs.h <<\_ACEOF
12351#define O_DIRECT_SUPPORT 1
12352_ACEOF
ad6254c5 12353
d0191583 12354fi
ad6254c5 12355
572fefeb
AK
12356################################################################################
12357{ $as_echo "$as_me:$LINENO: checking whether to build liblvm2app.so application library" >&5
12358$as_echo_n "checking whether to build liblvm2app.so application library... " >&6; }
12359# Check whether --enable-applib was given.
12360if test "${enable_applib+set}" = set; then
12361 enableval=$enable_applib; APPLIB=$enableval
12362else
12363 APPLIB=no
12364fi
12365
12366{ $as_echo "$as_me:$LINENO: result: $APPLIB" >&5
12367$as_echo "$APPLIB" >&6; }
12368
12369test x$APPLIB = xyes \
12370 && LVM2APP_LIB=-llvm2app \
12371 || LVM2APP_LIB=
12372
d0191583 12373################################################################################
ec6a6fbe
AK
12374{ $as_echo "$as_me:$LINENO: checking whether to compile liblvm2cmd.so" >&5
12375$as_echo_n "checking whether to compile liblvm2cmd.so... " >&6; }
d0191583
JM
12376# Check whether --enable-cmdlib was given.
12377if test "${enable_cmdlib+set}" = set; then
12378 enableval=$enable_cmdlib; CMDLIB=$enableval
ad6254c5 12379else
d0191583
JM
12380 CMDLIB=no
12381fi
8a2fc586 12382
ec6a6fbe
AK
12383{ $as_echo "$as_me:$LINENO: result: $CMDLIB" >&5
12384$as_echo "$CMDLIB" >&6; }
8a2fc586 12385
2a9a80c9 12386test x$CMDLIB = xyes \
d179cc7a
JM
12387 && LVM2CMD_LIB=-llvm2cmd \
12388 || LVM2CMD_LIB=
12389
93bd259b
AK
12390################################################################################
12391# Check whether --enable-pkgconfig was given.
12392if test "${enable_pkgconfig+set}" = set; then
12393 enableval=$enable_pkgconfig; PKGCONFIG=$enableval
12394else
12395 PKGCONFIG=no
12396fi
12397
2a9a80c9 12398
d0191583 12399################################################################################
ec6a6fbe
AK
12400{ $as_echo "$as_me:$LINENO: checking whether to install fsadm" >&5
12401$as_echo_n "checking whether to install fsadm... " >&6; }
d0191583
JM
12402# Check whether --enable-fsadm was given.
12403if test "${enable_fsadm+set}" = set; then
12404 enableval=$enable_fsadm; FSADM=$enableval
12405fi
8a2fc586 12406
ec6a6fbe
AK
12407{ $as_echo "$as_me:$LINENO: result: $FSADM" >&5
12408$as_echo "$FSADM" >&6; }
8a2fc586 12409
d0191583 12410################################################################################
ec6a6fbe
AK
12411{ $as_echo "$as_me:$LINENO: checking whether to use dmeventd" >&5
12412$as_echo_n "checking whether to use dmeventd... " >&6; }
d0191583
JM
12413# Check whether --enable-dmeventd was given.
12414if test "${enable_dmeventd+set}" = set; then
12415 enableval=$enable_dmeventd; DMEVENTD=$enableval
12416fi
ad6254c5 12417
ec6a6fbe
AK
12418{ $as_echo "$as_me:$LINENO: result: $DMEVENTD" >&5
12419$as_echo "$DMEVENTD" >&6; }
ad6254c5 12420
93bd259b
AK
12421BUILD_DMEVENTD=$DMEVENTD
12422
2a9a80c9
PR
12423if test x$DMEVENTD = xyes; then
12424 if test x$MIRRORS != xinternal; then
ec6a6fbe 12425 { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd currently requires --with-mirrors=internal
2a9a80c9 12426 " >&5
ec6a6fbe 12427$as_echo "$as_me: error: --enable-dmeventd currently requires --with-mirrors=internal
2a9a80c9 12428 " >&2;}
d0191583 12429 { (exit 1); exit 1; }; }
2a9a80c9
PR
12430 fi
12431 if test x$CMDLIB = xno; then
ec6a6fbe 12432 { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd requires --enable-cmdlib to be used as well
2a9a80c9 12433 " >&5
ec6a6fbe 12434$as_echo "$as_me: error: --enable-dmeventd requires --enable-cmdlib to be used as well
2a9a80c9
PR
12435 " >&2;}
12436 { (exit 1); exit 1; }; }
12437 fi
ad6254c5 12438fi
7a197a62 12439
d0191583
JM
12440if test x$DMEVENTD = xyes; then
12441
12442cat >>confdefs.h <<\_ACEOF
12443#define DMEVENTD 1
ad6254c5
AK
12444_ACEOF
12445
ad6254c5 12446fi
93bd259b
AK
12447
12448################################################################################
12449
ec6a6fbe
AK
12450{ $as_echo "$as_me:$LINENO: checking for getline in -lc" >&5
12451$as_echo_n "checking for getline in -lc... " >&6; }
93bd259b 12452if test "${ac_cv_lib_c_getline+set}" = set; then
ec6a6fbe 12453 $as_echo_n "(cached) " >&6
93bd259b
AK
12454else
12455 ac_check_lib_save_LIBS=$LIBS
12456LIBS="-lc $LIBS"
12457cat >conftest.$ac_ext <<_ACEOF
12458/* confdefs.h. */
12459_ACEOF
12460cat confdefs.h >>conftest.$ac_ext
12461cat >>conftest.$ac_ext <<_ACEOF
12462/* end confdefs.h. */
12463
12464/* Override any GCC internal prototype to avoid an error.
12465 Use char because int might match the return type of a GCC
12466 builtin and then its argument prototype would still apply. */
12467#ifdef __cplusplus
12468extern "C"
12469#endif
12470char getline ();
12471int
12472main ()
12473{
12474return getline ();
12475 ;
12476 return 0;
12477}
12478_ACEOF
12479rm -f conftest.$ac_objext conftest$ac_exeext
12480if { (ac_try="$ac_link"
12481case "(($ac_try" in
12482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12483 *) ac_try_echo=$ac_try;;
12484esac
ec6a6fbe
AK
12485eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12486$as_echo "$ac_try_echo") >&5
93bd259b
AK
12487 (eval "$ac_link") 2>conftest.er1
12488 ac_status=$?
12489 grep -v '^ *+' conftest.er1 >conftest.err
12490 rm -f conftest.er1
12491 cat conftest.err >&5
ec6a6fbe 12492 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
93bd259b
AK
12493 (exit $ac_status); } && {
12494 test -z "$ac_c_werror_flag" ||
12495 test ! -s conftest.err
ec6a6fbe
AK
12496 } && test -s conftest$ac_exeext && {
12497 test "$cross_compiling" = yes ||
12498 $as_test_x conftest$ac_exeext
12499 }; then
93bd259b
AK
12500 ac_cv_lib_c_getline=yes
12501else
ec6a6fbe 12502 $as_echo "$as_me: failed program was:" >&5
93bd259b
AK
12503sed 's/^/| /' conftest.$ac_ext >&5
12504
12505 ac_cv_lib_c_getline=no
12506fi
12507
ec6a6fbe 12508rm -rf conftest.dSYM
93bd259b
AK
12509rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12510 conftest$ac_exeext conftest.$ac_ext
12511LIBS=$ac_check_lib_save_LIBS
12512fi
ec6a6fbe
AK
12513{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_getline" >&5
12514$as_echo "$ac_cv_lib_c_getline" >&6; }
12515if test "x$ac_cv_lib_c_getline" = x""yes; then
93bd259b
AK
12516
12517cat >>confdefs.h <<\_ACEOF
12518#define HAVE_GETLINE 1
12519_ACEOF
12520
12521fi
12522
12523
12524################################################################################
12525
ec6a6fbe
AK
12526{ $as_echo "$as_me:$LINENO: checking for canonicalize_file_name in -lc" >&5
12527$as_echo_n "checking for canonicalize_file_name in -lc... " >&6; }
93bd259b 12528if test "${ac_cv_lib_c_canonicalize_file_name+set}" = set; then
ec6a6fbe 12529 $as_echo_n "(cached) " >&6
93bd259b
AK
12530else
12531 ac_check_lib_save_LIBS=$LIBS
12532LIBS="-lc $LIBS"
12533cat >conftest.$ac_ext <<_ACEOF
12534/* confdefs.h. */
12535_ACEOF
12536cat confdefs.h >>conftest.$ac_ext
12537cat >>conftest.$ac_ext <<_ACEOF
12538/* end confdefs.h. */
12539
12540/* Override any GCC internal prototype to avoid an error.
12541 Use char because int might match the return type of a GCC
12542 builtin and then its argument prototype would still apply. */
12543#ifdef __cplusplus
12544extern "C"
12545#endif
12546char canonicalize_file_name ();
12547int
12548main ()
12549{
12550return canonicalize_file_name ();
12551 ;
12552 return 0;
12553}
12554_ACEOF
12555rm -f conftest.$ac_objext conftest$ac_exeext
12556if { (ac_try="$ac_link"
12557case "(($ac_try" in
12558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12559 *) ac_try_echo=$ac_try;;
12560esac
ec6a6fbe
AK
12561eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12562$as_echo "$ac_try_echo") >&5
93bd259b
AK
12563 (eval "$ac_link") 2>conftest.er1
12564 ac_status=$?
12565 grep -v '^ *+' conftest.er1 >conftest.err
12566 rm -f conftest.er1
12567 cat conftest.err >&5
ec6a6fbe 12568 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
93bd259b
AK
12569 (exit $ac_status); } && {
12570 test -z "$ac_c_werror_flag" ||
12571 test ! -s conftest.err
ec6a6fbe
AK
12572 } && test -s conftest$ac_exeext && {
12573 test "$cross_compiling" = yes ||
12574 $as_test_x conftest$ac_exeext
12575 }; then
93bd259b
AK
12576 ac_cv_lib_c_canonicalize_file_name=yes
12577else
ec6a6fbe 12578 $as_echo "$as_me: failed program was:" >&5
93bd259b
AK
12579sed 's/^/| /' conftest.$ac_ext >&5
12580
12581 ac_cv_lib_c_canonicalize_file_name=no
12582fi
12583
ec6a6fbe 12584rm -rf conftest.dSYM
93bd259b
AK
12585rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12586 conftest$ac_exeext conftest.$ac_ext
12587LIBS=$ac_check_lib_save_LIBS
12588fi
ec6a6fbe
AK
12589{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_canonicalize_file_name" >&5
12590$as_echo "$ac_cv_lib_c_canonicalize_file_name" >&6; }
12591if test "x$ac_cv_lib_c_canonicalize_file_name" = x""yes; then
93bd259b
AK
12592
12593cat >>confdefs.h <<\_ACEOF
12594#define HAVE_CANONICALIZE_FILE_NAME 1
12595_ACEOF
12596
12597fi
12598
12599
d0191583
JM
12600################################################################################
12601if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ];
12602 then exec_prefix="";
12603fi;
ad6254c5 12604
ad6254c5 12605################################################################################
ec6a6fbe
AK
12606{ $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12607$as_echo_n "checking for dlopen in -ldl... " >&6; }
ad6254c5 12608if test "${ac_cv_lib_dl_dlopen+set}" = set; then
ec6a6fbe 12609 $as_echo_n "(cached) " >&6
ad6254c5
AK
12610else
12611 ac_check_lib_save_LIBS=$LIBS
12612LIBS="-ldl $LIBS"
12613cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
12614/* confdefs.h. */
12615_ACEOF
12616cat confdefs.h >>conftest.$ac_ext
12617cat >>conftest.$ac_ext <<_ACEOF
12618/* end confdefs.h. */
12619
7a197a62
AK
12620/* Override any GCC internal prototype to avoid an error.
12621 Use char because int might match the return type of a GCC
12622 builtin and then its argument prototype would still apply. */
ad6254c5
AK
12623#ifdef __cplusplus
12624extern "C"
12625#endif
ad6254c5
AK
12626char dlopen ();
12627int
12628main ()
12629{
7a197a62 12630return dlopen ();
ad6254c5
AK
12631 ;
12632 return 0;
12633}
12634_ACEOF
12635rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
12636if { (ac_try="$ac_link"
12637case "(($ac_try" in
12638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12639 *) ac_try_echo=$ac_try;;
12640esac
ec6a6fbe
AK
12641eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12642$as_echo "$ac_try_echo") >&5
7a197a62 12643 (eval "$ac_link") 2>conftest.er1
ad6254c5 12644 ac_status=$?
8a2fc586
AK
12645 grep -v '^ *+' conftest.er1 >conftest.err
12646 rm -f conftest.er1
12647 cat conftest.err >&5
ec6a6fbe 12648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
12649 (exit $ac_status); } && {
12650 test -z "$ac_c_werror_flag" ||
12651 test ! -s conftest.err
ec6a6fbe
AK
12652 } && test -s conftest$ac_exeext && {
12653 test "$cross_compiling" = yes ||
12654 $as_test_x conftest$ac_exeext
12655 }; then
ad6254c5
AK
12656 ac_cv_lib_dl_dlopen=yes
12657else
ec6a6fbe 12658 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
12659sed 's/^/| /' conftest.$ac_ext >&5
12660
7a197a62 12661 ac_cv_lib_dl_dlopen=no
ad6254c5 12662fi
7a197a62 12663
ec6a6fbe 12664rm -rf conftest.dSYM
25fbec5b 12665rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 12666 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
12667LIBS=$ac_check_lib_save_LIBS
12668fi
ec6a6fbe
AK
12669{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12670$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12671if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
ad6254c5 12672
72b2cb61
AK
12673
12674cat >>confdefs.h <<\_ACEOF
12675#define HAVE_LIBDL 1
12676_ACEOF
12677
19a2c6e0
ZK
12678 DL_LIBS="-ldl"
12679 HAVE_LIBDL=yes
ad6254c5 12680else
19a2c6e0
ZK
12681
12682 DL_LIBS=
ad6254c5
AK
12683 HAVE_LIBDL=no
12684fi
12685
19a2c6e0 12686
ad6254c5
AK
12687################################################################################
12688if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \
12689 -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \
12690 \) -a "x$STATIC_LINK" = xyes ];
ec6a6fbe 12691 then { { $as_echo "$as_me:$LINENO: error: Features cannot be 'shared' when building statically
ad6254c5 12692" >&5
ec6a6fbe 12693$as_echo "$as_me: error: Features cannot be 'shared' when building statically
ad6254c5
AK
12694" >&2;}
12695 { (exit 1); exit 1; }; }
12696fi
12697
f30875db
ZK
12698################################################################################
12699if [ "$DMEVENTD" = yes -o "$CLVMD" != none ] ; then
12700 { $as_echo "$as_me:$LINENO: checking for pthread_mutex_lock in -lpthread" >&5
12701$as_echo_n "checking for pthread_mutex_lock in -lpthread... " >&6; }
12702if test "${ac_cv_lib_pthread_pthread_mutex_lock+set}" = set; then
12703 $as_echo_n "(cached) " >&6
12704else
12705 ac_check_lib_save_LIBS=$LIBS
12706LIBS="-lpthread $LIBS"
12707cat >conftest.$ac_ext <<_ACEOF
12708/* confdefs.h. */
12709_ACEOF
12710cat confdefs.h >>conftest.$ac_ext
12711cat >>conftest.$ac_ext <<_ACEOF
12712/* end confdefs.h. */
12713
12714/* Override any GCC internal prototype to avoid an error.
12715 Use char because int might match the return type of a GCC
12716 builtin and then its argument prototype would still apply. */
12717#ifdef __cplusplus
12718extern "C"
12719#endif
12720char pthread_mutex_lock ();
12721int
12722main ()
12723{
12724return pthread_mutex_lock ();
12725 ;
12726 return 0;
12727}
12728_ACEOF
12729rm -f conftest.$ac_objext conftest$ac_exeext
12730if { (ac_try="$ac_link"
12731case "(($ac_try" in
12732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12733 *) ac_try_echo=$ac_try;;
12734esac
12735eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12736$as_echo "$ac_try_echo") >&5
12737 (eval "$ac_link") 2>conftest.er1
12738 ac_status=$?
12739 grep -v '^ *+' conftest.er1 >conftest.err
12740 rm -f conftest.er1
12741 cat conftest.err >&5
12742 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12743 (exit $ac_status); } && {
12744 test -z "$ac_c_werror_flag" ||
12745 test ! -s conftest.err
12746 } && test -s conftest$ac_exeext && {
12747 test "$cross_compiling" = yes ||
12748 $as_test_x conftest$ac_exeext
12749 }; then
12750 ac_cv_lib_pthread_pthread_mutex_lock=yes
12751else
12752 $as_echo "$as_me: failed program was:" >&5
12753sed 's/^/| /' conftest.$ac_ext >&5
12754
12755 ac_cv_lib_pthread_pthread_mutex_lock=no
12756fi
12757
12758rm -rf conftest.dSYM
12759rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12760 conftest$ac_exeext conftest.$ac_ext
12761LIBS=$ac_check_lib_save_LIBS
12762fi
12763{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_lock" >&5
12764$as_echo "$ac_cv_lib_pthread_pthread_mutex_lock" >&6; }
12765if test "x$ac_cv_lib_pthread_pthread_mutex_lock" = x""yes; then
12766 PTHREAD_LIBS="-lpthread"
12767else
12768 hard_bailout
12769fi
12770
12771fi
12772
d0191583 12773################################################################################
ec6a6fbe
AK
12774{ $as_echo "$as_me:$LINENO: checking whether to enable selinux support" >&5
12775$as_echo_n "checking whether to enable selinux support... " >&6; }
d0191583
JM
12776# Check whether --enable-selinux was given.
12777if test "${enable_selinux+set}" = set; then
12778 enableval=$enable_selinux; SELINUX=$enableval
12779fi
12780
ec6a6fbe
AK
12781{ $as_echo "$as_me:$LINENO: result: $SELINUX" >&5
12782$as_echo "$SELINUX" >&6; }
d0191583 12783
ad6254c5
AK
12784################################################################################
12785if test x$SELINUX = xyes; then
ec6a6fbe
AK
12786 { $as_echo "$as_me:$LINENO: checking for sepol_check_context in -lsepol" >&5
12787$as_echo_n "checking for sepol_check_context in -lsepol... " >&6; }
8a2fc586 12788if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then
ec6a6fbe 12789 $as_echo_n "(cached) " >&6
8a2fc586
AK
12790else
12791 ac_check_lib_save_LIBS=$LIBS
12792LIBS="-lsepol $LIBS"
12793cat >conftest.$ac_ext <<_ACEOF
12794/* confdefs.h. */
12795_ACEOF
12796cat confdefs.h >>conftest.$ac_ext
12797cat >>conftest.$ac_ext <<_ACEOF
12798/* end confdefs.h. */
12799
7a197a62
AK
12800/* Override any GCC internal prototype to avoid an error.
12801 Use char because int might match the return type of a GCC
12802 builtin and then its argument prototype would still apply. */
8a2fc586
AK
12803#ifdef __cplusplus
12804extern "C"
12805#endif
8a2fc586
AK
12806char sepol_check_context ();
12807int
12808main ()
12809{
7a197a62 12810return sepol_check_context ();
8a2fc586
AK
12811 ;
12812 return 0;
12813}
12814_ACEOF
12815rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
12816if { (ac_try="$ac_link"
12817case "(($ac_try" in
12818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12819 *) ac_try_echo=$ac_try;;
12820esac
ec6a6fbe
AK
12821eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12822$as_echo "$ac_try_echo") >&5
7a197a62 12823 (eval "$ac_link") 2>conftest.er1
8a2fc586
AK
12824 ac_status=$?
12825 grep -v '^ *+' conftest.er1 >conftest.err
12826 rm -f conftest.er1
12827 cat conftest.err >&5
ec6a6fbe 12828 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
12829 (exit $ac_status); } && {
12830 test -z "$ac_c_werror_flag" ||
12831 test ! -s conftest.err
ec6a6fbe
AK
12832 } && test -s conftest$ac_exeext && {
12833 test "$cross_compiling" = yes ||
12834 $as_test_x conftest$ac_exeext
12835 }; then
8a2fc586
AK
12836 ac_cv_lib_sepol_sepol_check_context=yes
12837else
ec6a6fbe 12838 $as_echo "$as_me: failed program was:" >&5
8a2fc586
AK
12839sed 's/^/| /' conftest.$ac_ext >&5
12840
7a197a62 12841 ac_cv_lib_sepol_sepol_check_context=no
8a2fc586 12842fi
7a197a62 12843
ec6a6fbe 12844rm -rf conftest.dSYM
25fbec5b 12845rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586
AK
12846 conftest$ac_exeext conftest.$ac_ext
12847LIBS=$ac_check_lib_save_LIBS
12848fi
ec6a6fbe
AK
12849{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sepol_sepol_check_context" >&5
12850$as_echo "$ac_cv_lib_sepol_sepol_check_context" >&6; }
12851if test "x$ac_cv_lib_sepol_sepol_check_context" = x""yes; then
8a2fc586 12852
d0191583
JM
12853
12854cat >>confdefs.h <<\_ACEOF
12855#define HAVE_SEPOL 1
12856_ACEOF
12857
f8f6ec92
ZK
12858 SELINUX_LIBS="-lsepol"
12859fi
12860
8a2fc586 12861
ec6a6fbe
AK
12862 { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
12863$as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
ad6254c5 12864if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
ec6a6fbe 12865 $as_echo_n "(cached) " >&6
ad6254c5
AK
12866else
12867 ac_check_lib_save_LIBS=$LIBS
12868LIBS="-lselinux $LIBS"
12869cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
12870/* confdefs.h. */
12871_ACEOF
12872cat confdefs.h >>conftest.$ac_ext
12873cat >>conftest.$ac_ext <<_ACEOF
12874/* end confdefs.h. */
12875
7a197a62
AK
12876/* Override any GCC internal prototype to avoid an error.
12877 Use char because int might match the return type of a GCC
12878 builtin and then its argument prototype would still apply. */
ad6254c5
AK
12879#ifdef __cplusplus
12880extern "C"
12881#endif
ad6254c5
AK
12882char is_selinux_enabled ();
12883int
12884main ()
12885{
7a197a62 12886return is_selinux_enabled ();
ad6254c5
AK
12887 ;
12888 return 0;
12889}
12890_ACEOF
12891rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
12892if { (ac_try="$ac_link"
12893case "(($ac_try" in
12894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12895 *) ac_try_echo=$ac_try;;
12896esac
ec6a6fbe
AK
12897eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12898$as_echo "$ac_try_echo") >&5
7a197a62 12899 (eval "$ac_link") 2>conftest.er1
ad6254c5 12900 ac_status=$?
8a2fc586
AK
12901 grep -v '^ *+' conftest.er1 >conftest.err
12902 rm -f conftest.er1
12903 cat conftest.err >&5
ec6a6fbe 12904 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
12905 (exit $ac_status); } && {
12906 test -z "$ac_c_werror_flag" ||
12907 test ! -s conftest.err
ec6a6fbe
AK
12908 } && test -s conftest$ac_exeext && {
12909 test "$cross_compiling" = yes ||
12910 $as_test_x conftest$ac_exeext
12911 }; then
ad6254c5
AK
12912 ac_cv_lib_selinux_is_selinux_enabled=yes
12913else
ec6a6fbe 12914 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
12915sed 's/^/| /' conftest.$ac_ext >&5
12916
7a197a62 12917 ac_cv_lib_selinux_is_selinux_enabled=no
ad6254c5 12918fi
7a197a62 12919
ec6a6fbe 12920rm -rf conftest.dSYM
25fbec5b 12921rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 12922 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
12923LIBS=$ac_check_lib_save_LIBS
12924fi
ec6a6fbe
AK
12925{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
12926$as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
12927if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then
ad6254c5 12928
72b2cb61 12929
f8f6ec92
ZK
12930for ac_header in selinux/selinux.h
12931do
12932as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12933if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12934 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12935$as_echo_n "checking for $ac_header... " >&6; }
12936if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 12937 $as_echo_n "(cached) " >&6
f8f6ec92
ZK
12938fi
12939ac_res=`eval 'as_val=${'$as_ac_Header'}
12940 $as_echo "$as_val"'`
12941 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12942$as_echo "$ac_res" >&6; }
66e941e8 12943else
f8f6ec92
ZK
12944 # Is the header compilable?
12945{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12946$as_echo_n "checking $ac_header usability... " >&6; }
66e941e8
JM
12947cat >conftest.$ac_ext <<_ACEOF
12948/* confdefs.h. */
12949_ACEOF
12950cat confdefs.h >>conftest.$ac_ext
12951cat >>conftest.$ac_ext <<_ACEOF
12952/* end confdefs.h. */
f8f6ec92
ZK
12953$ac_includes_default
12954#include <$ac_header>
66e941e8 12955_ACEOF
f8f6ec92
ZK
12956rm -f conftest.$ac_objext
12957if { (ac_try="$ac_compile"
66e941e8
JM
12958case "(($ac_try" in
12959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12960 *) ac_try_echo=$ac_try;;
12961esac
ec6a6fbe
AK
12962eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12963$as_echo "$ac_try_echo") >&5
f8f6ec92 12964 (eval "$ac_compile") 2>conftest.er1
66e941e8
JM
12965 ac_status=$?
12966 grep -v '^ *+' conftest.er1 >conftest.err
12967 rm -f conftest.er1
12968 cat conftest.err >&5
ec6a6fbe 12969 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
12970 (exit $ac_status); } && {
12971 test -z "$ac_c_werror_flag" ||
12972 test ! -s conftest.err
f8f6ec92
ZK
12973 } && test -s conftest.$ac_objext; then
12974 ac_header_compiler=yes
12975else
12976 $as_echo "$as_me: failed program was:" >&5
12977sed 's/^/| /' conftest.$ac_ext >&5
12978
12979 ac_header_compiler=no
12980fi
12981
12982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12983{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12984$as_echo "$ac_header_compiler" >&6; }
12985
12986# Is the header present?
12987{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12988$as_echo_n "checking $ac_header presence... " >&6; }
12989cat >conftest.$ac_ext <<_ACEOF
12990/* confdefs.h. */
12991_ACEOF
12992cat confdefs.h >>conftest.$ac_ext
12993cat >>conftest.$ac_ext <<_ACEOF
12994/* end confdefs.h. */
12995#include <$ac_header>
12996_ACEOF
12997if { (ac_try="$ac_cpp conftest.$ac_ext"
12998case "(($ac_try" in
12999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13000 *) ac_try_echo=$ac_try;;
13001esac
13002eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13003$as_echo "$ac_try_echo") >&5
13004 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13005 ac_status=$?
13006 grep -v '^ *+' conftest.er1 >conftest.err
13007 rm -f conftest.er1
13008 cat conftest.err >&5
13009 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13010 (exit $ac_status); } >/dev/null && {
13011 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13012 test ! -s conftest.err
ec6a6fbe 13013 }; then
f8f6ec92 13014 ac_header_preproc=yes
66e941e8 13015else
ec6a6fbe 13016 $as_echo "$as_me: failed program was:" >&5
66e941e8
JM
13017sed 's/^/| /' conftest.$ac_ext >&5
13018
f8f6ec92
ZK
13019 ac_header_preproc=no
13020fi
13021
13022rm -f conftest.err conftest.$ac_ext
13023{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13024$as_echo "$ac_header_preproc" >&6; }
13025
13026# So? What about this header?
13027case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13028 yes:no: )
13029 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13030$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13031 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13032$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13033 ac_header_preproc=yes
13034 ;;
13035 no:yes:* )
13036 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13037$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13038 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13039$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13040 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13041$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13042 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13043$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13044 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13045$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13046 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13047$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
66e941e8 13048
f8f6ec92
ZK
13049 ;;
13050esac
13051{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13052$as_echo_n "checking for $ac_header... " >&6; }
13053if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13054 $as_echo_n "(cached) " >&6
13055else
13056 eval "$as_ac_Header=\$ac_header_preproc"
66e941e8 13057fi
f8f6ec92
ZK
13058ac_res=`eval 'as_val=${'$as_ac_Header'}
13059 $as_echo "$as_val"'`
13060 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13061$as_echo "$ac_res" >&6; }
66e941e8 13062
66e941e8 13063fi
f8f6ec92
ZK
13064as_val=`eval 'as_val=${'$as_ac_Header'}
13065 $as_echo "$as_val"'`
13066 if test "x$as_val" = x""yes; then
13067 cat >>confdefs.h <<_ACEOF
13068#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13069_ACEOF
13070
66e941e8 13071else
f8f6ec92 13072 hard_bailout
66e941e8 13073fi
f8f6ec92
ZK
13074
13075done
13076
13077
13078cat >>confdefs.h <<\_ACEOF
13079#define HAVE_SELINUX 1
13080_ACEOF
13081
13082 SELINUX_LIBS="-lselinux $SELINUX_LIBS"
13083 HAVE_SELINUX=yes
13084else
13085
13086 { $as_echo "$as_me:$LINENO: WARNING: Disabling selinux" >&5
13087$as_echo "$as_me: WARNING: Disabling selinux" >&2;}
13088 SELINUX_LIBS=
13089 HAVE_SELINUX=no
66e941e8
JM
13090fi
13091
ad6254c5
AK
13092fi
13093
8b1a3214
AK
13094################################################################################
13095if test x$REALTIME = xyes; then
ec6a6fbe
AK
13096 { $as_echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
13097$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
8b1a3214 13098if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
ec6a6fbe 13099 $as_echo_n "(cached) " >&6
8b1a3214
AK
13100else
13101 ac_check_lib_save_LIBS=$LIBS
13102LIBS="-lrt $LIBS"
13103cat >conftest.$ac_ext <<_ACEOF
13104/* confdefs.h. */
13105_ACEOF
13106cat confdefs.h >>conftest.$ac_ext
13107cat >>conftest.$ac_ext <<_ACEOF
13108/* end confdefs.h. */
13109
7a197a62
AK
13110/* Override any GCC internal prototype to avoid an error.
13111 Use char because int might match the return type of a GCC
13112 builtin and then its argument prototype would still apply. */
8b1a3214
AK
13113#ifdef __cplusplus
13114extern "C"
13115#endif
8b1a3214
AK
13116char clock_gettime ();
13117int
13118main ()
13119{
7a197a62 13120return clock_gettime ();
8b1a3214
AK
13121 ;
13122 return 0;
13123}
13124_ACEOF
13125rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
13126if { (ac_try="$ac_link"
13127case "(($ac_try" in
13128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13129 *) ac_try_echo=$ac_try;;
13130esac
ec6a6fbe
AK
13131eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13132$as_echo "$ac_try_echo") >&5
7a197a62 13133 (eval "$ac_link") 2>conftest.er1
8b1a3214
AK
13134 ac_status=$?
13135 grep -v '^ *+' conftest.er1 >conftest.err
13136 rm -f conftest.er1
13137 cat conftest.err >&5
ec6a6fbe 13138 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
13139 (exit $ac_status); } && {
13140 test -z "$ac_c_werror_flag" ||
13141 test ! -s conftest.err
ec6a6fbe
AK
13142 } && test -s conftest$ac_exeext && {
13143 test "$cross_compiling" = yes ||
13144 $as_test_x conftest$ac_exeext
13145 }; then
8b1a3214
AK
13146 ac_cv_lib_rt_clock_gettime=yes
13147else
ec6a6fbe 13148 $as_echo "$as_me: failed program was:" >&5
8b1a3214
AK
13149sed 's/^/| /' conftest.$ac_ext >&5
13150
7a197a62 13151 ac_cv_lib_rt_clock_gettime=no
8b1a3214 13152fi
7a197a62 13153
ec6a6fbe 13154rm -rf conftest.dSYM
25fbec5b 13155rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8b1a3214
AK
13156 conftest$ac_exeext conftest.$ac_ext
13157LIBS=$ac_check_lib_save_LIBS
13158fi
ec6a6fbe
AK
13159{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
13160$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
13161if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then
8b1a3214
AK
13162 HAVE_REALTIME=yes
13163else
13164 HAVE_REALTIME=no
13165fi
13166
8b1a3214
AK
13167
13168 if test x$HAVE_REALTIME = xyes; then
13169
13170cat >>confdefs.h <<\_ACEOF
13171#define HAVE_REALTIME 1
13172_ACEOF
13173
13174 LIBS="-lrt $LIBS"
13175 else
ec6a6fbe
AK
13176 { $as_echo "$as_me:$LINENO: WARNING: Disabling realtime clock" >&5
13177$as_echo "$as_me: WARNING: Disabling realtime clock" >&2;}
8b1a3214
AK
13178 fi
13179fi
13180
ad6254c5
AK
13181################################################################################
13182
13183for ac_header in getopt.h
13184do
ec6a6fbe 13185as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 13186if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
13187 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13188$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 13189if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 13190 $as_echo_n "(cached) " >&6
ad6254c5 13191fi
ec6a6fbe
AK
13192ac_res=`eval 'as_val=${'$as_ac_Header'}
13193 $as_echo "$as_val"'`
13194 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13195$as_echo "$ac_res" >&6; }
ad6254c5
AK
13196else
13197 # Is the header compilable?
ec6a6fbe
AK
13198{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13199$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 13200cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
13201/* confdefs.h. */
13202_ACEOF
13203cat confdefs.h >>conftest.$ac_ext
13204cat >>conftest.$ac_ext <<_ACEOF
13205/* end confdefs.h. */
13206$ac_includes_default
13207#include <$ac_header>
13208_ACEOF
13209rm -f conftest.$ac_objext
7a197a62
AK
13210if { (ac_try="$ac_compile"
13211case "(($ac_try" in
13212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13213 *) ac_try_echo=$ac_try;;
13214esac
ec6a6fbe
AK
13215eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13216$as_echo "$ac_try_echo") >&5
7a197a62 13217 (eval "$ac_compile") 2>conftest.er1
ad6254c5 13218 ac_status=$?
8a2fc586
AK
13219 grep -v '^ *+' conftest.er1 >conftest.err
13220 rm -f conftest.er1
13221 cat conftest.err >&5
ec6a6fbe 13222 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
13223 (exit $ac_status); } && {
13224 test -z "$ac_c_werror_flag" ||
13225 test ! -s conftest.err
13226 } && test -s conftest.$ac_objext; then
ad6254c5
AK
13227 ac_header_compiler=yes
13228else
ec6a6fbe 13229 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
13230sed 's/^/| /' conftest.$ac_ext >&5
13231
7a197a62 13232 ac_header_compiler=no
ad6254c5 13233fi
7a197a62
AK
13234
13235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
13236{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13237$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
13238
13239# Is the header present?
ec6a6fbe
AK
13240{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13241$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 13242cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
13243/* confdefs.h. */
13244_ACEOF
13245cat confdefs.h >>conftest.$ac_ext
13246cat >>conftest.$ac_ext <<_ACEOF
13247/* end confdefs.h. */
13248#include <$ac_header>
13249_ACEOF
7a197a62
AK
13250if { (ac_try="$ac_cpp conftest.$ac_ext"
13251case "(($ac_try" in
13252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13253 *) ac_try_echo=$ac_try;;
13254esac
ec6a6fbe
AK
13255eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13256$as_echo "$ac_try_echo") >&5
7a197a62 13257 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
13258 ac_status=$?
13259 grep -v '^ *+' conftest.er1 >conftest.err
13260 rm -f conftest.er1
13261 cat conftest.err >&5
ec6a6fbe 13262 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
13263 (exit $ac_status); } >/dev/null && {
13264 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13265 test ! -s conftest.err
13266 }; then
ad6254c5
AK
13267 ac_header_preproc=yes
13268else
ec6a6fbe 13269 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
13270sed 's/^/| /' conftest.$ac_ext >&5
13271
13272 ac_header_preproc=no
13273fi
7a197a62 13274
ad6254c5 13275rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
13276{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13277$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
13278
13279# So? What about this header?
8a2fc586
AK
13280case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13281 yes:no: )
ec6a6fbe
AK
13282 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13283$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13284 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13285$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 13286 ac_header_preproc=yes
ad6254c5 13287 ;;
8a2fc586 13288 no:yes:* )
ec6a6fbe
AK
13289 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13290$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13291 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13292$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13293 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13294$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13295 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13296$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13297 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13298$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13299 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13300$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 13301
ad6254c5
AK
13302 ;;
13303esac
ec6a6fbe
AK
13304{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13305$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 13306if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 13307 $as_echo_n "(cached) " >&6
ad6254c5 13308else
8a2fc586 13309 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 13310fi
ec6a6fbe
AK
13311ac_res=`eval 'as_val=${'$as_ac_Header'}
13312 $as_echo "$as_val"'`
13313 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13314$as_echo "$ac_res" >&6; }
ad6254c5
AK
13315
13316fi
ec6a6fbe
AK
13317as_val=`eval 'as_val=${'$as_ac_Header'}
13318 $as_echo "$as_val"'`
13319 if test "x$as_val" = x""yes; then
ad6254c5 13320 cat >>confdefs.h <<_ACEOF
ec6a6fbe 13321#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 13322_ACEOF
72b2cb61
AK
13323
13324cat >>confdefs.h <<\_ACEOF
13325#define HAVE_GETOPTLONG 1
13326_ACEOF
13327
ad6254c5
AK
13328fi
13329
13330done
13331
13332
13333################################################################################
06e459df 13334if test x$READLINE != xno; then
539f4a77
ZK
13335 lvm_saved_libs=$LIBS
13336 { $as_echo "$as_me:$LINENO: checking for library containing tgetent" >&5
13337$as_echo_n "checking for library containing tgetent... " >&6; }
13338if test "${ac_cv_search_tgetent+set}" = set; then
13339 $as_echo_n "(cached) " >&6
13340else
13341 ac_func_search_save_LIBS=$LIBS
13342cat >conftest.$ac_ext <<_ACEOF
13343/* confdefs.h. */
13344_ACEOF
13345cat confdefs.h >>conftest.$ac_ext
13346cat >>conftest.$ac_ext <<_ACEOF
13347/* end confdefs.h. */
bc1024f8 13348
539f4a77
ZK
13349/* Override any GCC internal prototype to avoid an error.
13350 Use char because int might match the return type of a GCC
13351 builtin and then its argument prototype would still apply. */
13352#ifdef __cplusplus
13353extern "C"
13354#endif
13355char tgetent ();
13356int
13357main ()
13358{
13359return tgetent ();
13360 ;
13361 return 0;
13362}
13363_ACEOF
13364for ac_lib in '' tinfo ncurses curses termcap termlib; do
13365 if test -z "$ac_lib"; then
13366 ac_res="none required"
13367 else
13368 ac_res=-l$ac_lib
13369 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13370 fi
13371 rm -f conftest.$ac_objext conftest$ac_exeext
13372if { (ac_try="$ac_link"
13373case "(($ac_try" in
13374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13375 *) ac_try_echo=$ac_try;;
13376esac
13377eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13378$as_echo "$ac_try_echo") >&5
13379 (eval "$ac_link") 2>conftest.er1
13380 ac_status=$?
13381 grep -v '^ *+' conftest.er1 >conftest.err
13382 rm -f conftest.er1
13383 cat conftest.err >&5
13384 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13385 (exit $ac_status); } && {
13386 test -z "$ac_c_werror_flag" ||
13387 test ! -s conftest.err
13388 } && test -s conftest$ac_exeext && {
13389 test "$cross_compiling" = yes ||
13390 $as_test_x conftest$ac_exeext
13391 }; then
13392 ac_cv_search_tgetent=$ac_res
13393else
13394 $as_echo "$as_me: failed program was:" >&5
13395sed 's/^/| /' conftest.$ac_ext >&5
13396
13397
13398fi
13399
13400rm -rf conftest.dSYM
13401rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13402 conftest$ac_exeext
13403 if test "${ac_cv_search_tgetent+set}" = set; then
13404 break
13405fi
13406done
13407if test "${ac_cv_search_tgetent+set}" = set; then
13408 :
13409else
13410 ac_cv_search_tgetent=no
13411fi
13412rm conftest.$ac_ext
13413LIBS=$ac_func_search_save_LIBS
13414fi
13415{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
13416$as_echo "$ac_cv_search_tgetent" >&6; }
13417ac_res=$ac_cv_search_tgetent
13418if test "$ac_res" != no; then
13419 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13420 READLINE_LIBS=$ac_cv_search_tgetent
13421else
13422
13423 if test "$READLINE" = yes; then
13424 { { $as_echo "$as_me:$LINENO: error: termcap could not be found which is required for the
13425--enable-readline option (which is enabled by default). Either disable readline
13426support with --disable-readline or download and install termcap from:
13427 ftp.gnu.org/gnu/termcap
13428Note: if you are using precompiled packages you will also need the development
13429 package as well (which may be called termcap-devel or something similar).
13430Note: (n)curses also seems to work as a substitute for termcap. This was
13431 not found either - but you could try installing that as well." >&5
13432$as_echo "$as_me: error: termcap could not be found which is required for the
13433--enable-readline option (which is enabled by default). Either disable readline
13434support with --disable-readline or download and install termcap from:
13435 ftp.gnu.org/gnu/termcap
13436Note: if you are using precompiled packages you will also need the development
13437 package as well (which may be called termcap-devel or something similar).
13438Note: (n)curses also seems to work as a substitute for termcap. This was
13439 not found either - but you could try installing that as well." >&2;}
13440 { (exit 1); exit 1; }; }
13441 fi
13442fi
13443
13444 { $as_echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
ec6a6fbe 13445$as_echo_n "checking for readline in -lreadline... " >&6; }
ad6254c5 13446if test "${ac_cv_lib_readline_readline+set}" = set; then
ec6a6fbe 13447 $as_echo_n "(cached) " >&6
ad6254c5
AK
13448else
13449 ac_check_lib_save_LIBS=$LIBS
13450LIBS="-lreadline $LIBS"
13451cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
13452/* confdefs.h. */
13453_ACEOF
13454cat confdefs.h >>conftest.$ac_ext
13455cat >>conftest.$ac_ext <<_ACEOF
13456/* end confdefs.h. */
13457
7a197a62
AK
13458/* Override any GCC internal prototype to avoid an error.
13459 Use char because int might match the return type of a GCC
13460 builtin and then its argument prototype would still apply. */
ad6254c5
AK
13461#ifdef __cplusplus
13462extern "C"
13463#endif
ad6254c5
AK
13464char readline ();
13465int
13466main ()
13467{
7a197a62 13468return readline ();
ad6254c5
AK
13469 ;
13470 return 0;
13471}
13472_ACEOF
13473rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
13474if { (ac_try="$ac_link"
13475case "(($ac_try" in
13476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13477 *) ac_try_echo=$ac_try;;
13478esac
ec6a6fbe
AK
13479eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13480$as_echo "$ac_try_echo") >&5
7a197a62 13481 (eval "$ac_link") 2>conftest.er1
ad6254c5 13482 ac_status=$?
8a2fc586
AK
13483 grep -v '^ *+' conftest.er1 >conftest.err
13484 rm -f conftest.er1
13485 cat conftest.err >&5
ec6a6fbe 13486 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
13487 (exit $ac_status); } && {
13488 test -z "$ac_c_werror_flag" ||
13489 test ! -s conftest.err
ec6a6fbe
AK
13490 } && test -s conftest$ac_exeext && {
13491 test "$cross_compiling" = yes ||
13492 $as_test_x conftest$ac_exeext
13493 }; then
ad6254c5
AK
13494 ac_cv_lib_readline_readline=yes
13495else
ec6a6fbe 13496 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
13497sed 's/^/| /' conftest.$ac_ext >&5
13498
7a197a62 13499 ac_cv_lib_readline_readline=no
ad6254c5 13500fi
7a197a62 13501
ec6a6fbe 13502rm -rf conftest.dSYM
25fbec5b 13503rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 13504 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
13505LIBS=$ac_check_lib_save_LIBS
13506fi
ec6a6fbe
AK
13507{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
13508$as_echo "$ac_cv_lib_readline_readline" >&6; }
13509if test "x$ac_cv_lib_readline_readline" = x""yes; then
539f4a77
ZK
13510
13511
13512cat >>confdefs.h <<\_ACEOF
13513#define READLINE_SUPPORT 1
bc1024f8
JM
13514_ACEOF
13515
539f4a77
ZK
13516 LIBS=$lvm_saved_libs
13517 { $as_echo "$as_me:$LINENO: checking for rl_line_buffer in -lreadline" >&5
13518$as_echo_n "checking for rl_line_buffer in -lreadline... " >&6; }
13519if test "${ac_cv_lib_readline_rl_line_buffer+set}" = set; then
13520 $as_echo_n "(cached) " >&6
13521else
13522 ac_check_lib_save_LIBS=$LIBS
13523LIBS="-lreadline $LIBS"
13524cat >conftest.$ac_ext <<_ACEOF
13525/* confdefs.h. */
13526_ACEOF
13527cat confdefs.h >>conftest.$ac_ext
13528cat >>conftest.$ac_ext <<_ACEOF
13529/* end confdefs.h. */
bc1024f8 13530
539f4a77
ZK
13531/* Override any GCC internal prototype to avoid an error.
13532 Use char because int might match the return type of a GCC
13533 builtin and then its argument prototype would still apply. */
13534#ifdef __cplusplus
13535extern "C"
13536#endif
13537char rl_line_buffer ();
13538int
13539main ()
13540{
13541return rl_line_buffer ();
13542 ;
13543 return 0;
13544}
13545_ACEOF
13546rm -f conftest.$ac_objext conftest$ac_exeext
13547if { (ac_try="$ac_link"
13548case "(($ac_try" in
13549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13550 *) ac_try_echo=$ac_try;;
13551esac
13552eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13553$as_echo "$ac_try_echo") >&5
13554 (eval "$ac_link") 2>conftest.er1
13555 ac_status=$?
13556 grep -v '^ *+' conftest.er1 >conftest.err
13557 rm -f conftest.er1
13558 cat conftest.err >&5
13559 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13560 (exit $ac_status); } && {
13561 test -z "$ac_c_werror_flag" ||
13562 test ! -s conftest.err
13563 } && test -s conftest$ac_exeext && {
13564 test "$cross_compiling" = yes ||
13565 $as_test_x conftest$ac_exeext
13566 }; then
13567 ac_cv_lib_readline_rl_line_buffer=yes
ad6254c5 13568else
539f4a77
ZK
13569 $as_echo "$as_me: failed program was:" >&5
13570sed 's/^/| /' conftest.$ac_ext >&5
13571
13572 ac_cv_lib_readline_rl_line_buffer=no
06e459df
JM
13573fi
13574
539f4a77
ZK
13575rm -rf conftest.dSYM
13576rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13577 conftest$ac_exeext conftest.$ac_ext
13578LIBS=$ac_check_lib_save_LIBS
13579fi
13580{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_line_buffer" >&5
13581$as_echo "$ac_cv_lib_readline_rl_line_buffer" >&6; }
13582if test "x$ac_cv_lib_readline_rl_line_buffer" = x""yes; then
13583 READLINE_LIBS="-lreadline"
13584else
13585
13586 { $as_echo "$as_me:$LINENO: result: linking -lreadline with $READLINE_LIBS needed" >&5
13587$as_echo "linking -lreadline with $READLINE_LIBS needed" >&6; }
13588 READLINE_LIBS="-lreadline $READLINE_LIBS"
13589
13590fi
13591
13592else
13593
13594 READLINE_LIBS=
13595 if test "$READLINE" = yes; then
13596 { { $as_echo "$as_me:$LINENO: error: GNU Readline could not be found which is required for the
ad6254c5
AK
13597--enable-readline option (which is enabled by default). Either disable readline
13598support with --disable-readline or download and install readline from:
13599 ftp.gnu.org/gnu/readline
13600Note: if you are using precompiled packages you will also need the development
539f4a77 13601package as well (which may be called readline-devel or something similar)." >&5
ec6a6fbe 13602$as_echo "$as_me: error: GNU Readline could not be found which is required for the
ad6254c5
AK
13603--enable-readline option (which is enabled by default). Either disable readline
13604support with --disable-readline or download and install readline from:
13605 ftp.gnu.org/gnu/readline
13606Note: if you are using precompiled packages you will also need the development
539f4a77 13607package as well (which may be called readline-devel or something similar)." >&2;}
ad6254c5 13608 { (exit 1); exit 1; }; }
539f4a77
ZK
13609 fi
13610fi
13611
13612 LIBS="$READLINE_LIBS $lvm_saved_libs"
bc1024f8
JM
13613
13614for ac_func in rl_completion_matches
13615do
ec6a6fbe
AK
13616as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13617{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13618$as_echo_n "checking for $ac_func... " >&6; }
bc1024f8 13619if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 13620 $as_echo_n "(cached) " >&6
ad6254c5
AK
13621else
13622 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
13623/* confdefs.h. */
13624_ACEOF
13625cat confdefs.h >>conftest.$ac_ext
13626cat >>conftest.$ac_ext <<_ACEOF
13627/* end confdefs.h. */
bc1024f8 13628/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8a2fc586 13629 For example, HP-UX 11i <limits.h> declares gettimeofday. */
bc1024f8 13630#define $ac_func innocuous_$ac_func
8a2fc586 13631
ad6254c5 13632/* System header to define __stub macros and hopefully few prototypes,
bc1024f8 13633 which can conflict with char $ac_func (); below.
ad6254c5
AK
13634 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13635 <limits.h> exists even on freestanding compilers. */
8a2fc586 13636
ad6254c5
AK
13637#ifdef __STDC__
13638# include <limits.h>
13639#else
13640# include <assert.h>
13641#endif
8a2fc586 13642
bc1024f8 13643#undef $ac_func
8a2fc586 13644
7a197a62
AK
13645/* Override any GCC internal prototype to avoid an error.
13646 Use char because int might match the return type of a GCC
13647 builtin and then its argument prototype would still apply. */
ad6254c5
AK
13648#ifdef __cplusplus
13649extern "C"
ad6254c5 13650#endif
bc1024f8 13651char $ac_func ();
ad6254c5
AK
13652/* The GNU C library defines this for functions which it implements
13653 to always fail with ENOSYS. Some functions are actually named
13654 something starting with __ and the normal name is an alias. */
bc1024f8 13655#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 13656choke me
ad6254c5
AK
13657#endif
13658
13659int
13660main ()
13661{
bc1024f8 13662return $ac_func ();
ad6254c5
AK
13663 ;
13664 return 0;
13665}
13666_ACEOF
13667rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
13668if { (ac_try="$ac_link"
13669case "(($ac_try" in
13670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13671 *) ac_try_echo=$ac_try;;
13672esac
ec6a6fbe
AK
13673eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13674$as_echo "$ac_try_echo") >&5
7a197a62 13675 (eval "$ac_link") 2>conftest.er1
ad6254c5 13676 ac_status=$?
8a2fc586
AK
13677 grep -v '^ *+' conftest.er1 >conftest.err
13678 rm -f conftest.er1
13679 cat conftest.err >&5
ec6a6fbe 13680 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
13681 (exit $ac_status); } && {
13682 test -z "$ac_c_werror_flag" ||
13683 test ! -s conftest.err
ec6a6fbe
AK
13684 } && test -s conftest$ac_exeext && {
13685 test "$cross_compiling" = yes ||
13686 $as_test_x conftest$ac_exeext
13687 }; then
bc1024f8 13688 eval "$as_ac_var=yes"
ad6254c5 13689else
ec6a6fbe 13690 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
13691sed 's/^/| /' conftest.$ac_ext >&5
13692
bc1024f8 13693 eval "$as_ac_var=no"
ad6254c5 13694fi
7a197a62 13695
ec6a6fbe 13696rm -rf conftest.dSYM
25fbec5b 13697rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 13698 conftest$ac_exeext conftest.$ac_ext
ad6254c5 13699fi
ec6a6fbe
AK
13700ac_res=`eval 'as_val=${'$as_ac_var'}
13701 $as_echo "$as_val"'`
13702 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13703$as_echo "$ac_res" >&6; }
13704as_val=`eval 'as_val=${'$as_ac_var'}
13705 $as_echo "$as_val"'`
13706 if test "x$as_val" = x""yes; then
bc1024f8 13707 cat >>confdefs.h <<_ACEOF
ec6a6fbe 13708#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
72b2cb61
AK
13709_ACEOF
13710
13711fi
bc1024f8 13712done
ad6254c5 13713
539f4a77 13714 LIBS=$lvm_saved_libs
ad6254c5
AK
13715fi
13716
13717################################################################################
ec6a6fbe
AK
13718{ $as_echo "$as_me:$LINENO: checking whether to enable internationalisation" >&5
13719$as_echo_n "checking whether to enable internationalisation... " >&6; }
7a197a62 13720# Check whether --enable-nls was given.
ad6254c5 13721if test "${enable_nls+set}" = set; then
7a197a62 13722 enableval=$enable_nls; INTL=$enableval
ad6254c5
AK
13723else
13724 INTL=no
7a197a62
AK
13725fi
13726
ec6a6fbe
AK
13727{ $as_echo "$as_me:$LINENO: result: $INTL" >&5
13728$as_echo "$INTL" >&6; }
ad6254c5
AK
13729
13730if test x$INTL = xyes; then
93bd259b 13731# FIXME - Move this - can be device-mapper too
ad6254c5
AK
13732 INTL_PACKAGE="lvm2"
13733 # Extract the first word of "msgfmt", so it can be a program name with args.
13734set dummy msgfmt; ac_word=$2
ec6a6fbe
AK
13735{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13736$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 13737if test "${ac_cv_path_MSGFMT+set}" = set; then
ec6a6fbe 13738 $as_echo_n "(cached) " >&6
ad6254c5
AK
13739else
13740 case $MSGFMT in
13741 [\\/]* | ?:[\\/]*)
13742 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
13743 ;;
13744 *)
13745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13746for as_dir in $PATH
13747do
13748 IFS=$as_save_IFS
13749 test -z "$as_dir" && as_dir=.
13750 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 13751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 13752 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 13753 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
13754 break 2
13755 fi
13756done
13757done
7a197a62 13758IFS=$as_save_IFS
ad6254c5
AK
13759
13760 ;;
13761esac
13762fi
13763MSGFMT=$ac_cv_path_MSGFMT
ad6254c5 13764if test -n "$MSGFMT"; then
ec6a6fbe
AK
13765 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
13766$as_echo "$MSGFMT" >&6; }
ad6254c5 13767else
ec6a6fbe
AK
13768 { $as_echo "$as_me:$LINENO: result: no" >&5
13769$as_echo "no" >&6; }
ad6254c5
AK
13770fi
13771
7a197a62 13772
ad6254c5 13773 if [ "x$MSGFMT" == x ];
ec6a6fbe 13774 then { { $as_echo "$as_me:$LINENO: error: msgfmt not found in path $PATH
ad6254c5 13775 " >&5
ec6a6fbe 13776$as_echo "$as_me: error: msgfmt not found in path $PATH
ad6254c5
AK
13777 " >&2;}
13778 { (exit 1); exit 1; }; }
13779 fi;
13780
13781
7a197a62 13782# Check whether --with-localedir was given.
ad6254c5 13783if test "${with_localedir+set}" = set; then
7a197a62 13784 withval=$with_localedir; LOCALEDIR="$withval"
ad6254c5
AK
13785else
13786 LOCALEDIR='${prefix}/share/locale'
7a197a62
AK
13787fi
13788
ad6254c5
AK
13789fi
13790
13791################################################################################
13792
7a197a62 13793# Check whether --with-confdir was given.
ad6254c5 13794if test "${with_confdir+set}" = set; then
7a197a62 13795 withval=$with_confdir; CONFDIR="$withval"
ad6254c5
AK
13796else
13797 CONFDIR='/etc'
7a197a62
AK
13798fi
13799
ad6254c5
AK
13800
13801
7a197a62 13802# Check whether --with-staticdir was given.
ad6254c5 13803if test "${with_staticdir+set}" = set; then
7a197a62 13804 withval=$with_staticdir; STATICDIR="$withval"
ad6254c5
AK
13805else
13806 STATICDIR='${exec_prefix}/sbin'
7a197a62 13807fi
ad6254c5 13808
33f732c5 13809
7a197a62 13810
68f2de6d
AK
13811# Check whether --with-usrlibdir was given.
13812if test "${with_usrlibdir+set}" = set; then
13813 withval=$with_usrlibdir; usrlibdir="$withval"
13814else
13815 usrlibdir='${prefix}/lib'
13816fi
13817
13818
13819
13820# Check whether --with-usrsbindir was given.
13821if test "${with_usrsbindir+set}" = set; then
13822 withval=$with_usrsbindir; usrsbindir="$withval"
13823else
13824 usrsbindir='${prefix}/sbin'
13825fi
13826
13827
a5f46f6a
AK
13828################################################################################
13829
13830# Check whether --with-udev_prefix was given.
13831if test "${with_udev_prefix+set}" = set; then
13832 withval=$with_udev_prefix; udev_prefix="$withval"
13833else
13834 udev_prefix='${exec_prefix}'
13835fi
13836
13837
78ce7acc
AK
13838
13839# Check whether --with-udevdir was given.
13840if test "${with_udevdir+set}" = set; then
13841 withval=$with_udevdir; udevdir="$withval"
13842else
13843 udevdir='${udev_prefix}/lib/udev/rules.d'
13844fi
13845
a5f46f6a 13846
ad6254c5
AK
13847################################################################################
13848if test x$READLINE = xyes; then
13849
13850
13851for ac_header in readline/readline.h readline/history.h
13852do
ec6a6fbe 13853as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 13854if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
13855 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13856$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 13857if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 13858 $as_echo_n "(cached) " >&6
ad6254c5 13859fi
ec6a6fbe
AK
13860ac_res=`eval 'as_val=${'$as_ac_Header'}
13861 $as_echo "$as_val"'`
13862 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13863$as_echo "$ac_res" >&6; }
ad6254c5
AK
13864else
13865 # Is the header compilable?
ec6a6fbe
AK
13866{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13867$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 13868cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
13869/* confdefs.h. */
13870_ACEOF
13871cat confdefs.h >>conftest.$ac_ext
13872cat >>conftest.$ac_ext <<_ACEOF
13873/* end confdefs.h. */
13874$ac_includes_default
13875#include <$ac_header>
13876_ACEOF
13877rm -f conftest.$ac_objext
7a197a62
AK
13878if { (ac_try="$ac_compile"
13879case "(($ac_try" in
13880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13881 *) ac_try_echo=$ac_try;;
13882esac
ec6a6fbe
AK
13883eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13884$as_echo "$ac_try_echo") >&5
7a197a62 13885 (eval "$ac_compile") 2>conftest.er1
ad6254c5 13886 ac_status=$?
8a2fc586
AK
13887 grep -v '^ *+' conftest.er1 >conftest.err
13888 rm -f conftest.er1
13889 cat conftest.err >&5
ec6a6fbe 13890 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
13891 (exit $ac_status); } && {
13892 test -z "$ac_c_werror_flag" ||
13893 test ! -s conftest.err
13894 } && test -s conftest.$ac_objext; then
ad6254c5
AK
13895 ac_header_compiler=yes
13896else
ec6a6fbe 13897 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
13898sed 's/^/| /' conftest.$ac_ext >&5
13899
7a197a62 13900 ac_header_compiler=no
ad6254c5 13901fi
7a197a62
AK
13902
13903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
13904{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13905$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
13906
13907# Is the header present?
ec6a6fbe
AK
13908{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13909$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 13910cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
13911/* confdefs.h. */
13912_ACEOF
13913cat confdefs.h >>conftest.$ac_ext
13914cat >>conftest.$ac_ext <<_ACEOF
13915/* end confdefs.h. */
13916#include <$ac_header>
13917_ACEOF
7a197a62
AK
13918if { (ac_try="$ac_cpp conftest.$ac_ext"
13919case "(($ac_try" in
13920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13921 *) ac_try_echo=$ac_try;;
13922esac
ec6a6fbe
AK
13923eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13924$as_echo "$ac_try_echo") >&5
7a197a62 13925 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
13926 ac_status=$?
13927 grep -v '^ *+' conftest.er1 >conftest.err
13928 rm -f conftest.er1
13929 cat conftest.err >&5
ec6a6fbe 13930 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
13931 (exit $ac_status); } >/dev/null && {
13932 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13933 test ! -s conftest.err
13934 }; then
ad6254c5
AK
13935 ac_header_preproc=yes
13936else
ec6a6fbe 13937 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
13938sed 's/^/| /' conftest.$ac_ext >&5
13939
13940 ac_header_preproc=no
13941fi
7a197a62 13942
ad6254c5 13943rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
13944{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13945$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
13946
13947# So? What about this header?
8a2fc586
AK
13948case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13949 yes:no: )
ec6a6fbe
AK
13950 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13951$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13952 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13953$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 13954 ac_header_preproc=yes
ad6254c5 13955 ;;
8a2fc586 13956 no:yes:* )
ec6a6fbe
AK
13957 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13958$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13959 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13960$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13961 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13962$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13963 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13964$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13965 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13966$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13967 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13968$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 13969
ad6254c5
AK
13970 ;;
13971esac
ec6a6fbe
AK
13972{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13973$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 13974if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 13975 $as_echo_n "(cached) " >&6
ad6254c5 13976else
8a2fc586 13977 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 13978fi
ec6a6fbe
AK
13979ac_res=`eval 'as_val=${'$as_ac_Header'}
13980 $as_echo "$as_val"'`
13981 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13982$as_echo "$ac_res" >&6; }
ad6254c5
AK
13983
13984fi
ec6a6fbe
AK
13985as_val=`eval 'as_val=${'$as_ac_Header'}
13986 $as_echo "$as_val"'`
13987 if test "x$as_val" = x""yes; then
ad6254c5 13988 cat >>confdefs.h <<_ACEOF
ec6a6fbe 13989#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
13990_ACEOF
13991
13992else
ec6a6fbe
AK
13993 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
13994$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5
AK
13995 { (exit 1); exit 1; }; }
13996fi
13997
13998done
13999
14000fi
14001
5c7fc7c4 14002if test x$CLVMD != xnone; then
ad6254c5
AK
14003
14004
14005
14006
14007
14008
14009
14010
14011
14012
14013for 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
14014do
ec6a6fbe 14015as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 14016if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
14017 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14018$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 14019if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 14020 $as_echo_n "(cached) " >&6
ad6254c5 14021fi
ec6a6fbe
AK
14022ac_res=`eval 'as_val=${'$as_ac_Header'}
14023 $as_echo "$as_val"'`
14024 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14025$as_echo "$ac_res" >&6; }
ad6254c5
AK
14026else
14027 # Is the header compilable?
ec6a6fbe
AK
14028{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14029$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 14030cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14031/* confdefs.h. */
14032_ACEOF
14033cat confdefs.h >>conftest.$ac_ext
14034cat >>conftest.$ac_ext <<_ACEOF
14035/* end confdefs.h. */
14036$ac_includes_default
14037#include <$ac_header>
14038_ACEOF
14039rm -f conftest.$ac_objext
7a197a62
AK
14040if { (ac_try="$ac_compile"
14041case "(($ac_try" in
14042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14043 *) ac_try_echo=$ac_try;;
14044esac
ec6a6fbe
AK
14045eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14046$as_echo "$ac_try_echo") >&5
7a197a62 14047 (eval "$ac_compile") 2>conftest.er1
ad6254c5 14048 ac_status=$?
8a2fc586
AK
14049 grep -v '^ *+' conftest.er1 >conftest.err
14050 rm -f conftest.er1
14051 cat conftest.err >&5
ec6a6fbe 14052 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14053 (exit $ac_status); } && {
14054 test -z "$ac_c_werror_flag" ||
14055 test ! -s conftest.err
14056 } && test -s conftest.$ac_objext; then
ad6254c5
AK
14057 ac_header_compiler=yes
14058else
ec6a6fbe 14059 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14060sed 's/^/| /' conftest.$ac_ext >&5
14061
7a197a62 14062 ac_header_compiler=no
ad6254c5 14063fi
7a197a62
AK
14064
14065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
14066{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14067$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
14068
14069# Is the header present?
ec6a6fbe
AK
14070{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14071$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 14072cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14073/* confdefs.h. */
14074_ACEOF
14075cat confdefs.h >>conftest.$ac_ext
14076cat >>conftest.$ac_ext <<_ACEOF
14077/* end confdefs.h. */
14078#include <$ac_header>
14079_ACEOF
7a197a62
AK
14080if { (ac_try="$ac_cpp conftest.$ac_ext"
14081case "(($ac_try" in
14082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14083 *) ac_try_echo=$ac_try;;
14084esac
ec6a6fbe
AK
14085eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14086$as_echo "$ac_try_echo") >&5
7a197a62 14087 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
14088 ac_status=$?
14089 grep -v '^ *+' conftest.er1 >conftest.err
14090 rm -f conftest.er1
14091 cat conftest.err >&5
ec6a6fbe 14092 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14093 (exit $ac_status); } >/dev/null && {
14094 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14095 test ! -s conftest.err
14096 }; then
ad6254c5
AK
14097 ac_header_preproc=yes
14098else
ec6a6fbe 14099 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14100sed 's/^/| /' conftest.$ac_ext >&5
14101
14102 ac_header_preproc=no
14103fi
7a197a62 14104
ad6254c5 14105rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
14106{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14107$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
14108
14109# So? What about this header?
8a2fc586
AK
14110case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14111 yes:no: )
ec6a6fbe
AK
14112 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14113$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14114 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14115$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 14116 ac_header_preproc=yes
ad6254c5 14117 ;;
8a2fc586 14118 no:yes:* )
ec6a6fbe
AK
14119 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14120$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14121 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14122$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14123 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14124$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14125 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14126$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14127 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14128$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14129 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14130$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 14131
ad6254c5
AK
14132 ;;
14133esac
ec6a6fbe
AK
14134{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14135$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 14136if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 14137 $as_echo_n "(cached) " >&6
ad6254c5 14138else
8a2fc586 14139 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 14140fi
ec6a6fbe
AK
14141ac_res=`eval 'as_val=${'$as_ac_Header'}
14142 $as_echo "$as_val"'`
14143 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14144$as_echo "$ac_res" >&6; }
ad6254c5
AK
14145
14146fi
ec6a6fbe
AK
14147as_val=`eval 'as_val=${'$as_ac_Header'}
14148 $as_echo "$as_val"'`
14149 if test "x$as_val" = x""yes; then
ad6254c5 14150 cat >>confdefs.h <<_ACEOF
ec6a6fbe 14151#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
14152_ACEOF
14153
14154else
ec6a6fbe
AK
14155 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
14156$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 14157 { (exit 1); exit 1; }; }
795ca3e5
AK
14158fi
14159
ad6254c5
AK
14160done
14161
14162
795ca3e5 14163
8106cdd5 14164
ad6254c5
AK
14165
14166
14167for ac_func in dup2 getmntent memmove select socket
14168do
ec6a6fbe
AK
14169as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14170{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14171$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 14172if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 14173 $as_echo_n "(cached) " >&6
795ca3e5 14174else
ad6254c5 14175 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14176/* confdefs.h. */
14177_ACEOF
14178cat confdefs.h >>conftest.$ac_ext
14179cat >>conftest.$ac_ext <<_ACEOF
14180/* end confdefs.h. */
8a2fc586
AK
14181/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14182 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14183#define $ac_func innocuous_$ac_func
14184
795ca3e5 14185/* System header to define __stub macros and hopefully few prototypes,
ad6254c5
AK
14186 which can conflict with char $ac_func (); below.
14187 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14188 <limits.h> exists even on freestanding compilers. */
8a2fc586 14189
ad6254c5
AK
14190#ifdef __STDC__
14191# include <limits.h>
14192#else
14193# include <assert.h>
14194#endif
8a2fc586
AK
14195
14196#undef $ac_func
14197
7a197a62
AK
14198/* Override any GCC internal prototype to avoid an error.
14199 Use char because int might match the return type of a GCC
14200 builtin and then its argument prototype would still apply. */
ad6254c5
AK
14201#ifdef __cplusplus
14202extern "C"
ad6254c5 14203#endif
ad6254c5 14204char $ac_func ();
795ca3e5
AK
14205/* The GNU C library defines this for functions which it implements
14206 to always fail with ENOSYS. Some functions are actually named
14207 something starting with __ and the normal name is an alias. */
7a197a62 14208#if defined __stub_$ac_func || defined __stub___$ac_func
795ca3e5 14209choke me
795ca3e5
AK
14210#endif
14211
ad6254c5
AK
14212int
14213main ()
14214{
7a197a62 14215return $ac_func ();
ad6254c5
AK
14216 ;
14217 return 0;
14218}
14219_ACEOF
14220rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
14221if { (ac_try="$ac_link"
14222case "(($ac_try" in
14223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14224 *) ac_try_echo=$ac_try;;
14225esac
ec6a6fbe
AK
14226eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14227$as_echo "$ac_try_echo") >&5
7a197a62 14228 (eval "$ac_link") 2>conftest.er1
ad6254c5 14229 ac_status=$?
8a2fc586
AK
14230 grep -v '^ *+' conftest.er1 >conftest.err
14231 rm -f conftest.er1
14232 cat conftest.err >&5
ec6a6fbe 14233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14234 (exit $ac_status); } && {
14235 test -z "$ac_c_werror_flag" ||
14236 test ! -s conftest.err
ec6a6fbe
AK
14237 } && test -s conftest$ac_exeext && {
14238 test "$cross_compiling" = yes ||
14239 $as_test_x conftest$ac_exeext
14240 }; then
ad6254c5 14241 eval "$as_ac_var=yes"
795ca3e5 14242else
ec6a6fbe 14243 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14244sed 's/^/| /' conftest.$ac_ext >&5
14245
7a197a62 14246 eval "$as_ac_var=no"
80992638 14247fi
7a197a62 14248
ec6a6fbe 14249rm -rf conftest.dSYM
25fbec5b 14250rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 14251 conftest$ac_exeext conftest.$ac_ext
795ca3e5 14252fi
ec6a6fbe
AK
14253ac_res=`eval 'as_val=${'$as_ac_var'}
14254 $as_echo "$as_val"'`
14255 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14256$as_echo "$ac_res" >&6; }
14257as_val=`eval 'as_val=${'$as_ac_var'}
14258 $as_echo "$as_val"'`
14259 if test "x$as_val" = x""yes; then
ad6254c5 14260 cat >>confdefs.h <<_ACEOF
ec6a6fbe 14261#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5 14262_ACEOF
80992638
AK
14263
14264else
ec6a6fbe
AK
14265 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
14266$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 14267 { (exit 1); exit 1; }; }
8106cdd5 14268fi
ad6254c5 14269done
795ca3e5 14270
25fbec5b
AK
14271 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
14272# -lseq on Dynix/PTX, -lgen on Unixware.
ec6a6fbe
AK
14273{ $as_echo "$as_me:$LINENO: checking for library containing getmntent" >&5
14274$as_echo_n "checking for library containing getmntent... " >&6; }
25fbec5b 14275if test "${ac_cv_search_getmntent+set}" = set; then
ec6a6fbe 14276 $as_echo_n "(cached) " >&6
25fbec5b
AK
14277else
14278 ac_func_search_save_LIBS=$LIBS
14279cat >conftest.$ac_ext <<_ACEOF
14280/* confdefs.h. */
14281_ACEOF
14282cat confdefs.h >>conftest.$ac_ext
14283cat >>conftest.$ac_ext <<_ACEOF
14284/* end confdefs.h. */
80992638 14285
7a197a62
AK
14286/* Override any GCC internal prototype to avoid an error.
14287 Use char because int might match the return type of a GCC
ad6254c5 14288 builtin and then its argument prototype would still apply. */
ad6254c5
AK
14289#ifdef __cplusplus
14290extern "C"
14291#endif
25fbec5b 14292char getmntent ();
ad6254c5
AK
14293int
14294main ()
14295{
25fbec5b 14296return getmntent ();
ad6254c5
AK
14297 ;
14298 return 0;
14299}
14300_ACEOF
25fbec5b
AK
14301for ac_lib in '' sun seq gen; do
14302 if test -z "$ac_lib"; then
14303 ac_res="none required"
14304 else
14305 ac_res=-l$ac_lib
14306 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14307 fi
14308 rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
14309if { (ac_try="$ac_link"
14310case "(($ac_try" in
14311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14312 *) ac_try_echo=$ac_try;;
14313esac
ec6a6fbe
AK
14314eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14315$as_echo "$ac_try_echo") >&5
7a197a62 14316 (eval "$ac_link") 2>conftest.er1
ad6254c5 14317 ac_status=$?
8a2fc586
AK
14318 grep -v '^ *+' conftest.er1 >conftest.err
14319 rm -f conftest.er1
14320 cat conftest.err >&5
ec6a6fbe 14321 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14322 (exit $ac_status); } && {
14323 test -z "$ac_c_werror_flag" ||
14324 test ! -s conftest.err
ec6a6fbe
AK
14325 } && test -s conftest$ac_exeext && {
14326 test "$cross_compiling" = yes ||
14327 $as_test_x conftest$ac_exeext
14328 }; then
25fbec5b 14329 ac_cv_search_getmntent=$ac_res
80992638 14330else
ec6a6fbe 14331 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14332sed 's/^/| /' conftest.$ac_ext >&5
14333
25fbec5b 14334
795ca3e5
AK
14335fi
14336
ec6a6fbe 14337rm -rf conftest.dSYM
25fbec5b
AK
14338rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14339 conftest$ac_exeext
14340 if test "${ac_cv_search_getmntent+set}" = set; then
14341 break
795ca3e5 14342fi
25fbec5b
AK
14343done
14344if test "${ac_cv_search_getmntent+set}" = set; then
14345 :
14346else
14347 ac_cv_search_getmntent=no
14348fi
14349rm conftest.$ac_ext
14350LIBS=$ac_func_search_save_LIBS
14351fi
ec6a6fbe
AK
14352{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
14353$as_echo "$ac_cv_search_getmntent" >&6; }
25fbec5b
AK
14354ac_res=$ac_cv_search_getmntent
14355if test "$ac_res" != no; then
14356 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14357 ac_cv_func_getmntent=yes
14358
14359cat >>confdefs.h <<\_ACEOF
9c961554 14360#define HAVE_GETMNTENT 1
ad6254c5 14361_ACEOF
795ca3e5 14362
25fbec5b
AK
14363else
14364 ac_cv_func_getmntent=no
795ca3e5 14365fi
795ca3e5
AK
14366
14367
ad6254c5
AK
14368# AC_FUNC_REALLOC
14369
14370
14371for ac_header in sys/select.h sys/socket.h
14372do
ec6a6fbe 14373as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 14374if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
14375 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14376$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 14377if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 14378 $as_echo_n "(cached) " >&6
ad6254c5 14379fi
ec6a6fbe
AK
14380ac_res=`eval 'as_val=${'$as_ac_Header'}
14381 $as_echo "$as_val"'`
14382 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14383$as_echo "$ac_res" >&6; }
795ca3e5 14384else
ad6254c5 14385 # Is the header compilable?
ec6a6fbe
AK
14386{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14387$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 14388cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14389/* confdefs.h. */
14390_ACEOF
14391cat confdefs.h >>conftest.$ac_ext
14392cat >>conftest.$ac_ext <<_ACEOF
14393/* end confdefs.h. */
14394$ac_includes_default
14395#include <$ac_header>
14396_ACEOF
14397rm -f conftest.$ac_objext
7a197a62
AK
14398if { (ac_try="$ac_compile"
14399case "(($ac_try" in
14400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14401 *) ac_try_echo=$ac_try;;
14402esac
ec6a6fbe
AK
14403eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14404$as_echo "$ac_try_echo") >&5
7a197a62 14405 (eval "$ac_compile") 2>conftest.er1
ad6254c5 14406 ac_status=$?
8a2fc586
AK
14407 grep -v '^ *+' conftest.er1 >conftest.err
14408 rm -f conftest.er1
14409 cat conftest.err >&5
ec6a6fbe 14410 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14411 (exit $ac_status); } && {
14412 test -z "$ac_c_werror_flag" ||
14413 test ! -s conftest.err
14414 } && test -s conftest.$ac_objext; then
ad6254c5 14415 ac_header_compiler=yes
80992638 14416else
ec6a6fbe 14417 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14418sed 's/^/| /' conftest.$ac_ext >&5
14419
7a197a62 14420 ac_header_compiler=no
ad6254c5 14421fi
7a197a62
AK
14422
14423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
14424{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14425$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
14426
14427# Is the header present?
ec6a6fbe
AK
14428{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14429$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 14430cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14431/* confdefs.h. */
14432_ACEOF
14433cat confdefs.h >>conftest.$ac_ext
14434cat >>conftest.$ac_ext <<_ACEOF
14435/* end confdefs.h. */
14436#include <$ac_header>
14437_ACEOF
7a197a62
AK
14438if { (ac_try="$ac_cpp conftest.$ac_ext"
14439case "(($ac_try" in
14440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14441 *) ac_try_echo=$ac_try;;
14442esac
ec6a6fbe
AK
14443eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14444$as_echo "$ac_try_echo") >&5
7a197a62 14445 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
14446 ac_status=$?
14447 grep -v '^ *+' conftest.er1 >conftest.err
14448 rm -f conftest.er1
14449 cat conftest.err >&5
ec6a6fbe 14450 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14451 (exit $ac_status); } >/dev/null && {
14452 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14453 test ! -s conftest.err
14454 }; then
ad6254c5
AK
14455 ac_header_preproc=yes
14456else
ec6a6fbe 14457 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14458sed 's/^/| /' conftest.$ac_ext >&5
14459
14460 ac_header_preproc=no
14461fi
7a197a62 14462
ad6254c5 14463rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
14464{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14465$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
14466
14467# So? What about this header?
8a2fc586
AK
14468case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14469 yes:no: )
ec6a6fbe
AK
14470 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14471$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14472 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14473$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 14474 ac_header_preproc=yes
ad6254c5 14475 ;;
8a2fc586 14476 no:yes:* )
ec6a6fbe
AK
14477 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14478$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14479 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14480$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14481 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14482$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14483 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14484$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14485 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14486$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14487 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14488$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 14489
ad6254c5
AK
14490 ;;
14491esac
ec6a6fbe
AK
14492{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14493$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 14494if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 14495 $as_echo_n "(cached) " >&6
ad6254c5 14496else
8a2fc586 14497 eval "$as_ac_Header=\$ac_header_preproc"
8106cdd5 14498fi
ec6a6fbe
AK
14499ac_res=`eval 'as_val=${'$as_ac_Header'}
14500 $as_echo "$as_val"'`
14501 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14502$as_echo "$ac_res" >&6; }
8106cdd5 14503
795ca3e5 14504fi
ec6a6fbe
AK
14505as_val=`eval 'as_val=${'$as_ac_Header'}
14506 $as_echo "$as_val"'`
14507 if test "x$as_val" = x""yes; then
ad6254c5 14508 cat >>confdefs.h <<_ACEOF
ec6a6fbe 14509#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
14510_ACEOF
14511
795ca3e5
AK
14512fi
14513
ad6254c5
AK
14514done
14515
ec6a6fbe
AK
14516{ $as_echo "$as_me:$LINENO: checking types of arguments for select" >&5
14517$as_echo_n "checking types of arguments for select... " >&6; }
ad6254c5 14518if test "${ac_cv_func_select_args+set}" = set; then
ec6a6fbe 14519 $as_echo_n "(cached) " >&6
26e7f2e0 14520else
ad6254c5 14521 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
7a197a62 14522 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
ad6254c5
AK
14523 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
14524 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14525/* confdefs.h. */
14526_ACEOF
14527cat confdefs.h >>conftest.$ac_ext
14528cat >>conftest.$ac_ext <<_ACEOF
14529/* end confdefs.h. */
14530$ac_includes_default
25fbec5b 14531#ifdef HAVE_SYS_SELECT_H
ad6254c5
AK
14532# include <sys/select.h>
14533#endif
25fbec5b 14534#ifdef HAVE_SYS_SOCKET_H
ad6254c5
AK
14535# include <sys/socket.h>
14536#endif
14537
14538int
14539main ()
14540{
14541extern int select ($ac_arg1,
8a2fc586
AK
14542 $ac_arg234, $ac_arg234, $ac_arg234,
14543 $ac_arg5);
ad6254c5
AK
14544 ;
14545 return 0;
14546}
14547_ACEOF
14548rm -f conftest.$ac_objext
7a197a62
AK
14549if { (ac_try="$ac_compile"
14550case "(($ac_try" in
14551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14552 *) ac_try_echo=$ac_try;;
14553esac
ec6a6fbe
AK
14554eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14555$as_echo "$ac_try_echo") >&5
7a197a62 14556 (eval "$ac_compile") 2>conftest.er1
ad6254c5 14557 ac_status=$?
8a2fc586
AK
14558 grep -v '^ *+' conftest.er1 >conftest.err
14559 rm -f conftest.er1
14560 cat conftest.err >&5
ec6a6fbe 14561 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14562 (exit $ac_status); } && {
14563 test -z "$ac_c_werror_flag" ||
14564 test ! -s conftest.err
14565 } && test -s conftest.$ac_objext; then
ad6254c5
AK
14566 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
14567else
ec6a6fbe 14568 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14569sed 's/^/| /' conftest.$ac_ext >&5
14570
7a197a62 14571
ad6254c5 14572fi
7a197a62
AK
14573
14574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
14575 done
14576 done
14577done
14578# Provide a safe default value.
14579: ${ac_cv_func_select_args='int,int *,struct timeval *'}
14580
26e7f2e0 14581fi
ec6a6fbe
AK
14582{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
14583$as_echo "$ac_cv_func_select_args" >&6; }
ad6254c5
AK
14584ac_save_IFS=$IFS; IFS=','
14585set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
14586IFS=$ac_save_IFS
14587shift
14588
14589cat >>confdefs.h <<_ACEOF
14590#define SELECT_TYPE_ARG1 $1
14591_ACEOF
14592
14593
14594cat >>confdefs.h <<_ACEOF
14595#define SELECT_TYPE_ARG234 ($2)
14596_ACEOF
14597
14598
14599cat >>confdefs.h <<_ACEOF
14600#define SELECT_TYPE_ARG5 ($3)
14601_ACEOF
14602
80992638 14603rm -f conftest*
80992638 14604
8106cdd5 14605fi
ad6254c5 14606
ad6254c5
AK
14607if test x$CLUSTER != xnone; then
14608
14609
14610for ac_header in sys/socket.h sys/un.h
b896caa1 14611do
ec6a6fbe 14612as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 14613if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
14614 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14615$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 14616if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 14617 $as_echo_n "(cached) " >&6
ad6254c5 14618fi
ec6a6fbe
AK
14619ac_res=`eval 'as_val=${'$as_ac_Header'}
14620 $as_echo "$as_val"'`
14621 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14622$as_echo "$ac_res" >&6; }
ad6254c5
AK
14623else
14624 # Is the header compilable?
ec6a6fbe
AK
14625{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14626$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 14627cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14628/* confdefs.h. */
14629_ACEOF
14630cat confdefs.h >>conftest.$ac_ext
14631cat >>conftest.$ac_ext <<_ACEOF
14632/* end confdefs.h. */
14633$ac_includes_default
14634#include <$ac_header>
14635_ACEOF
14636rm -f conftest.$ac_objext
7a197a62
AK
14637if { (ac_try="$ac_compile"
14638case "(($ac_try" in
14639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14640 *) ac_try_echo=$ac_try;;
14641esac
ec6a6fbe
AK
14642eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14643$as_echo "$ac_try_echo") >&5
7a197a62 14644 (eval "$ac_compile") 2>conftest.er1
ad6254c5 14645 ac_status=$?
8a2fc586
AK
14646 grep -v '^ *+' conftest.er1 >conftest.err
14647 rm -f conftest.er1
14648 cat conftest.err >&5
ec6a6fbe 14649 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14650 (exit $ac_status); } && {
14651 test -z "$ac_c_werror_flag" ||
14652 test ! -s conftest.err
14653 } && test -s conftest.$ac_objext; then
ad6254c5
AK
14654 ac_header_compiler=yes
14655else
ec6a6fbe 14656 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14657sed 's/^/| /' conftest.$ac_ext >&5
14658
7a197a62 14659 ac_header_compiler=no
ad6254c5 14660fi
7a197a62
AK
14661
14662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
14663{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14664$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
14665
14666# Is the header present?
ec6a6fbe
AK
14667{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14668$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 14669cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14670/* confdefs.h. */
14671_ACEOF
14672cat confdefs.h >>conftest.$ac_ext
14673cat >>conftest.$ac_ext <<_ACEOF
14674/* end confdefs.h. */
14675#include <$ac_header>
14676_ACEOF
7a197a62
AK
14677if { (ac_try="$ac_cpp conftest.$ac_ext"
14678case "(($ac_try" in
14679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14680 *) ac_try_echo=$ac_try;;
14681esac
ec6a6fbe
AK
14682eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14683$as_echo "$ac_try_echo") >&5
7a197a62 14684 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
14685 ac_status=$?
14686 grep -v '^ *+' conftest.er1 >conftest.err
14687 rm -f conftest.er1
14688 cat conftest.err >&5
ec6a6fbe 14689 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14690 (exit $ac_status); } >/dev/null && {
14691 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14692 test ! -s conftest.err
14693 }; then
ad6254c5
AK
14694 ac_header_preproc=yes
14695else
ec6a6fbe 14696 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14697sed 's/^/| /' conftest.$ac_ext >&5
14698
14699 ac_header_preproc=no
14700fi
7a197a62 14701
ad6254c5 14702rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
14703{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14704$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
14705
14706# So? What about this header?
8a2fc586
AK
14707case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14708 yes:no: )
ec6a6fbe
AK
14709 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14710$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14711 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14712$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 14713 ac_header_preproc=yes
ad6254c5 14714 ;;
8a2fc586 14715 no:yes:* )
ec6a6fbe
AK
14716 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14717$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14718 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14719$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14720 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14721$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14722 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14723$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14724 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14725$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14726 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14727$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 14728
ad6254c5
AK
14729 ;;
14730esac
ec6a6fbe
AK
14731{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14732$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 14733if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 14734 $as_echo_n "(cached) " >&6
ad6254c5 14735else
8a2fc586 14736 eval "$as_ac_Header=\$ac_header_preproc"
b896caa1 14737fi
ec6a6fbe
AK
14738ac_res=`eval 'as_val=${'$as_ac_Header'}
14739 $as_echo "$as_val"'`
14740 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14741$as_echo "$ac_res" >&6; }
ad6254c5
AK
14742
14743fi
ec6a6fbe
AK
14744as_val=`eval 'as_val=${'$as_ac_Header'}
14745 $as_echo "$as_val"'`
14746 if test "x$as_val" = x""yes; then
ad6254c5 14747 cat >>confdefs.h <<_ACEOF
ec6a6fbe 14748#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
14749_ACEOF
14750
80992638 14751else
ec6a6fbe
AK
14752 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
14753$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 14754 { (exit 1); exit 1; }; }
b896caa1 14755fi
ad6254c5 14756
b896caa1
AK
14757done
14758
14759
ad6254c5
AK
14760for ac_func in socket
14761do
ec6a6fbe
AK
14762as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14763{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14764$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 14765if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 14766 $as_echo_n "(cached) " >&6
795ca3e5 14767else
ad6254c5 14768 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14769/* confdefs.h. */
14770_ACEOF
14771cat confdefs.h >>conftest.$ac_ext
14772cat >>conftest.$ac_ext <<_ACEOF
14773/* end confdefs.h. */
8a2fc586
AK
14774/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14775 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14776#define $ac_func innocuous_$ac_func
14777
ad6254c5
AK
14778/* System header to define __stub macros and hopefully few prototypes,
14779 which can conflict with char $ac_func (); below.
14780 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14781 <limits.h> exists even on freestanding compilers. */
8a2fc586 14782
ad6254c5
AK
14783#ifdef __STDC__
14784# include <limits.h>
14785#else
14786# include <assert.h>
14787#endif
8a2fc586
AK
14788
14789#undef $ac_func
14790
7a197a62
AK
14791/* Override any GCC internal prototype to avoid an error.
14792 Use char because int might match the return type of a GCC
14793 builtin and then its argument prototype would still apply. */
ad6254c5
AK
14794#ifdef __cplusplus
14795extern "C"
ad6254c5 14796#endif
ad6254c5
AK
14797char $ac_func ();
14798/* The GNU C library defines this for functions which it implements
14799 to always fail with ENOSYS. Some functions are actually named
14800 something starting with __ and the normal name is an alias. */
7a197a62 14801#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 14802choke me
ad6254c5
AK
14803#endif
14804
14805int
14806main ()
14807{
7a197a62 14808return $ac_func ();
ad6254c5
AK
14809 ;
14810 return 0;
14811}
14812_ACEOF
14813rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
14814if { (ac_try="$ac_link"
14815case "(($ac_try" in
14816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14817 *) ac_try_echo=$ac_try;;
14818esac
ec6a6fbe
AK
14819eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14820$as_echo "$ac_try_echo") >&5
7a197a62 14821 (eval "$ac_link") 2>conftest.er1
ad6254c5 14822 ac_status=$?
8a2fc586
AK
14823 grep -v '^ *+' conftest.er1 >conftest.err
14824 rm -f conftest.er1
14825 cat conftest.err >&5
ec6a6fbe 14826 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14827 (exit $ac_status); } && {
14828 test -z "$ac_c_werror_flag" ||
14829 test ! -s conftest.err
ec6a6fbe
AK
14830 } && test -s conftest$ac_exeext && {
14831 test "$cross_compiling" = yes ||
14832 $as_test_x conftest$ac_exeext
14833 }; then
ad6254c5
AK
14834 eval "$as_ac_var=yes"
14835else
ec6a6fbe 14836 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14837sed 's/^/| /' conftest.$ac_ext >&5
14838
7a197a62 14839 eval "$as_ac_var=no"
ad6254c5 14840fi
7a197a62 14841
ec6a6fbe 14842rm -rf conftest.dSYM
25fbec5b 14843rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 14844 conftest$ac_exeext conftest.$ac_ext
ad6254c5 14845fi
ec6a6fbe
AK
14846ac_res=`eval 'as_val=${'$as_ac_var'}
14847 $as_echo "$as_val"'`
14848 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14849$as_echo "$ac_res" >&6; }
14850as_val=`eval 'as_val=${'$as_ac_var'}
14851 $as_echo "$as_val"'`
14852 if test "x$as_val" = x""yes; then
ad6254c5 14853 cat >>confdefs.h <<_ACEOF
ec6a6fbe 14854#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
14855_ACEOF
14856
14857else
ec6a6fbe
AK
14858 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
14859$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5
AK
14860 { (exit 1); exit 1; }; }
14861fi
14862done
14863
14864fi
14865
14866if test x$HAVE_LIBDL = xyes; then
14867
14868for ac_header in dlfcn.h
14869do
ec6a6fbe 14870as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 14871if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
14872 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14873$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 14874if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 14875 $as_echo_n "(cached) " >&6
ad6254c5 14876fi
ec6a6fbe
AK
14877ac_res=`eval 'as_val=${'$as_ac_Header'}
14878 $as_echo "$as_val"'`
14879 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14880$as_echo "$ac_res" >&6; }
ad6254c5
AK
14881else
14882 # Is the header compilable?
ec6a6fbe
AK
14883{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14884$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 14885cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14886/* confdefs.h. */
14887_ACEOF
14888cat confdefs.h >>conftest.$ac_ext
14889cat >>conftest.$ac_ext <<_ACEOF
14890/* end confdefs.h. */
14891$ac_includes_default
14892#include <$ac_header>
14893_ACEOF
14894rm -f conftest.$ac_objext
7a197a62
AK
14895if { (ac_try="$ac_compile"
14896case "(($ac_try" in
14897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14898 *) ac_try_echo=$ac_try;;
14899esac
ec6a6fbe
AK
14900eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14901$as_echo "$ac_try_echo") >&5
7a197a62 14902 (eval "$ac_compile") 2>conftest.er1
ad6254c5 14903 ac_status=$?
8a2fc586
AK
14904 grep -v '^ *+' conftest.er1 >conftest.err
14905 rm -f conftest.er1
14906 cat conftest.err >&5
ec6a6fbe 14907 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14908 (exit $ac_status); } && {
14909 test -z "$ac_c_werror_flag" ||
14910 test ! -s conftest.err
14911 } && test -s conftest.$ac_objext; then
ad6254c5
AK
14912 ac_header_compiler=yes
14913else
ec6a6fbe 14914 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14915sed 's/^/| /' conftest.$ac_ext >&5
14916
7a197a62 14917 ac_header_compiler=no
ad6254c5 14918fi
7a197a62
AK
14919
14920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
14921{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14922$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
14923
14924# Is the header present?
ec6a6fbe
AK
14925{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14926$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 14927cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14928/* confdefs.h. */
14929_ACEOF
14930cat confdefs.h >>conftest.$ac_ext
14931cat >>conftest.$ac_ext <<_ACEOF
14932/* end confdefs.h. */
14933#include <$ac_header>
14934_ACEOF
7a197a62
AK
14935if { (ac_try="$ac_cpp conftest.$ac_ext"
14936case "(($ac_try" in
14937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14938 *) ac_try_echo=$ac_try;;
14939esac
ec6a6fbe
AK
14940eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14941$as_echo "$ac_try_echo") >&5
7a197a62 14942 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
14943 ac_status=$?
14944 grep -v '^ *+' conftest.er1 >conftest.err
14945 rm -f conftest.er1
14946 cat conftest.err >&5
ec6a6fbe 14947 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14948 (exit $ac_status); } >/dev/null && {
14949 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14950 test ! -s conftest.err
14951 }; then
ad6254c5
AK
14952 ac_header_preproc=yes
14953else
ec6a6fbe 14954 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14955sed 's/^/| /' conftest.$ac_ext >&5
14956
14957 ac_header_preproc=no
14958fi
7a197a62 14959
ad6254c5 14960rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
14961{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14962$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
14963
14964# So? What about this header?
8a2fc586
AK
14965case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14966 yes:no: )
ec6a6fbe
AK
14967 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14968$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14969 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14970$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 14971 ac_header_preproc=yes
ad6254c5 14972 ;;
8a2fc586 14973 no:yes:* )
ec6a6fbe
AK
14974 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14975$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14976 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14977$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14978 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14979$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14980 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14981$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14982 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14983$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14984 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14985$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 14986
ad6254c5
AK
14987 ;;
14988esac
ec6a6fbe
AK
14989{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14990$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 14991if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 14992 $as_echo_n "(cached) " >&6
ad6254c5 14993else
8a2fc586 14994 eval "$as_ac_Header=\$ac_header_preproc"
795ca3e5 14995fi
ec6a6fbe
AK
14996ac_res=`eval 'as_val=${'$as_ac_Header'}
14997 $as_echo "$as_val"'`
14998 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14999$as_echo "$ac_res" >&6; }
80992638 15000
8106cdd5 15001fi
ec6a6fbe
AK
15002as_val=`eval 'as_val=${'$as_ac_Header'}
15003 $as_echo "$as_val"'`
15004 if test "x$as_val" = x""yes; then
ad6254c5 15005 cat >>confdefs.h <<_ACEOF
ec6a6fbe 15006#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 15007_ACEOF
795ca3e5
AK
15008
15009else
ec6a6fbe
AK
15010 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
15011$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 15012 { (exit 1); exit 1; }; }
795ca3e5
AK
15013fi
15014
ad6254c5 15015done
80992638 15016
ad6254c5 15017fi
80992638 15018
ad6254c5 15019if test x$INTL = xyes; then
83912faa 15020
ad6254c5
AK
15021for ac_header in libintl.h
15022do
ec6a6fbe 15023as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 15024if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
15025 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15026$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 15027if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 15028 $as_echo_n "(cached) " >&6
ad6254c5 15029fi
ec6a6fbe
AK
15030ac_res=`eval 'as_val=${'$as_ac_Header'}
15031 $as_echo "$as_val"'`
15032 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15033$as_echo "$ac_res" >&6; }
83912faa 15034else
ad6254c5 15035 # Is the header compilable?
ec6a6fbe
AK
15036{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15037$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 15038cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
15039/* confdefs.h. */
15040_ACEOF
15041cat confdefs.h >>conftest.$ac_ext
15042cat >>conftest.$ac_ext <<_ACEOF
15043/* end confdefs.h. */
15044$ac_includes_default
15045#include <$ac_header>
15046_ACEOF
15047rm -f conftest.$ac_objext
7a197a62
AK
15048if { (ac_try="$ac_compile"
15049case "(($ac_try" in
15050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15051 *) ac_try_echo=$ac_try;;
15052esac
ec6a6fbe
AK
15053eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15054$as_echo "$ac_try_echo") >&5
7a197a62 15055 (eval "$ac_compile") 2>conftest.er1
ad6254c5 15056 ac_status=$?
8a2fc586
AK
15057 grep -v '^ *+' conftest.er1 >conftest.err
15058 rm -f conftest.er1
15059 cat conftest.err >&5
ec6a6fbe 15060 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
15061 (exit $ac_status); } && {
15062 test -z "$ac_c_werror_flag" ||
15063 test ! -s conftest.err
15064 } && test -s conftest.$ac_objext; then
ad6254c5
AK
15065 ac_header_compiler=yes
15066else
ec6a6fbe 15067 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
15068sed 's/^/| /' conftest.$ac_ext >&5
15069
7a197a62 15070 ac_header_compiler=no
ad6254c5 15071fi
7a197a62
AK
15072
15073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
15074{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15075$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
15076
15077# Is the header present?
ec6a6fbe
AK
15078{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15079$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 15080cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
15081/* confdefs.h. */
15082_ACEOF
15083cat confdefs.h >>conftest.$ac_ext
15084cat >>conftest.$ac_ext <<_ACEOF
15085/* end confdefs.h. */
15086#include <$ac_header>
15087_ACEOF
7a197a62
AK
15088if { (ac_try="$ac_cpp conftest.$ac_ext"
15089case "(($ac_try" in
15090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15091 *) ac_try_echo=$ac_try;;
15092esac
ec6a6fbe
AK
15093eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15094$as_echo "$ac_try_echo") >&5
7a197a62 15095 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
15096 ac_status=$?
15097 grep -v '^ *+' conftest.er1 >conftest.err
15098 rm -f conftest.er1
15099 cat conftest.err >&5
ec6a6fbe 15100 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
15101 (exit $ac_status); } >/dev/null && {
15102 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15103 test ! -s conftest.err
15104 }; then
ad6254c5
AK
15105 ac_header_preproc=yes
15106else
ec6a6fbe 15107 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
15108sed 's/^/| /' conftest.$ac_ext >&5
15109
15110 ac_header_preproc=no
15111fi
7a197a62 15112
ad6254c5 15113rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
15114{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15115$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
15116
15117# So? What about this header?
8a2fc586
AK
15118case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15119 yes:no: )
ec6a6fbe
AK
15120 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15121$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15122 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15123$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 15124 ac_header_preproc=yes
ad6254c5 15125 ;;
8a2fc586 15126 no:yes:* )
ec6a6fbe
AK
15127 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15128$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15129 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15130$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15131 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15132$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15133 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15134$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15135 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15136$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15137 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15138$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 15139
ad6254c5
AK
15140 ;;
15141esac
ec6a6fbe
AK
15142{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15143$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 15144if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 15145 $as_echo_n "(cached) " >&6
80992638 15146else
8a2fc586 15147 eval "$as_ac_Header=\$ac_header_preproc"
83912faa 15148fi
ec6a6fbe
AK
15149ac_res=`eval 'as_val=${'$as_ac_Header'}
15150 $as_echo "$as_val"'`
15151 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15152$as_echo "$ac_res" >&6; }
83912faa 15153
69792976 15154fi
ec6a6fbe
AK
15155as_val=`eval 'as_val=${'$as_ac_Header'}
15156 $as_echo "$as_val"'`
15157 if test "x$as_val" = x""yes; then
ad6254c5 15158 cat >>confdefs.h <<_ACEOF
ec6a6fbe 15159#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 15160_ACEOF
69792976 15161
69792976 15162else
ec6a6fbe
AK
15163 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
15164$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 15165 { (exit 1); exit 1; }; }
80992638
AK
15166fi
15167
ad6254c5 15168done
69792976 15169
ad6254c5
AK
15170fi
15171
a5f46f6a
AK
15172if test x$UDEV_SYNC = xyes; then
15173
15174
15175for ac_header in sys/ipc.h sys/sem.h
15176do
15177as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15178if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15179 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15180$as_echo_n "checking for $ac_header... " >&6; }
15181if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15182 $as_echo_n "(cached) " >&6
15183fi
15184ac_res=`eval 'as_val=${'$as_ac_Header'}
15185 $as_echo "$as_val"'`
15186 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15187$as_echo "$ac_res" >&6; }
15188else
15189 # Is the header compilable?
15190{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15191$as_echo_n "checking $ac_header usability... " >&6; }
15192cat >conftest.$ac_ext <<_ACEOF
15193/* confdefs.h. */
15194_ACEOF
15195cat confdefs.h >>conftest.$ac_ext
15196cat >>conftest.$ac_ext <<_ACEOF
15197/* end confdefs.h. */
15198$ac_includes_default
15199#include <$ac_header>
15200_ACEOF
15201rm -f conftest.$ac_objext
15202if { (ac_try="$ac_compile"
15203case "(($ac_try" in
15204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15205 *) ac_try_echo=$ac_try;;
15206esac
15207eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15208$as_echo "$ac_try_echo") >&5
15209 (eval "$ac_compile") 2>conftest.er1
15210 ac_status=$?
15211 grep -v '^ *+' conftest.er1 >conftest.err
15212 rm -f conftest.er1
15213 cat conftest.err >&5
15214 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15215 (exit $ac_status); } && {
15216 test -z "$ac_c_werror_flag" ||
15217 test ! -s conftest.err
15218 } && test -s conftest.$ac_objext; then
15219 ac_header_compiler=yes
15220else
15221 $as_echo "$as_me: failed program was:" >&5
15222sed 's/^/| /' conftest.$ac_ext >&5
15223
15224 ac_header_compiler=no
15225fi
15226
15227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15228{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15229$as_echo "$ac_header_compiler" >&6; }
15230
15231# Is the header present?
15232{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15233$as_echo_n "checking $ac_header presence... " >&6; }
15234cat >conftest.$ac_ext <<_ACEOF
15235/* confdefs.h. */
15236_ACEOF
15237cat confdefs.h >>conftest.$ac_ext
15238cat >>conftest.$ac_ext <<_ACEOF
15239/* end confdefs.h. */
15240#include <$ac_header>
15241_ACEOF
15242if { (ac_try="$ac_cpp conftest.$ac_ext"
15243case "(($ac_try" in
15244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15245 *) ac_try_echo=$ac_try;;
15246esac
15247eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15248$as_echo "$ac_try_echo") >&5
15249 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15250 ac_status=$?
15251 grep -v '^ *+' conftest.er1 >conftest.err
15252 rm -f conftest.er1
15253 cat conftest.err >&5
15254 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15255 (exit $ac_status); } >/dev/null && {
15256 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15257 test ! -s conftest.err
15258 }; then
15259 ac_header_preproc=yes
15260else
15261 $as_echo "$as_me: failed program was:" >&5
15262sed 's/^/| /' conftest.$ac_ext >&5
15263
15264 ac_header_preproc=no
15265fi
15266
15267rm -f conftest.err conftest.$ac_ext
15268{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15269$as_echo "$ac_header_preproc" >&6; }
15270
15271# So? What about this header?
15272case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15273 yes:no: )
15274 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15275$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15276 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15277$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15278 ac_header_preproc=yes
15279 ;;
15280 no:yes:* )
15281 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15282$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15283 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15284$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15285 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15286$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15287 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15288$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15289 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15290$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15291 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15292$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15293
15294 ;;
15295esac
15296{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15297$as_echo_n "checking for $ac_header... " >&6; }
15298if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15299 $as_echo_n "(cached) " >&6
15300else
15301 eval "$as_ac_Header=\$ac_header_preproc"
15302fi
15303ac_res=`eval 'as_val=${'$as_ac_Header'}
15304 $as_echo "$as_val"'`
15305 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15306$as_echo "$ac_res" >&6; }
15307
15308fi
15309as_val=`eval 'as_val=${'$as_ac_Header'}
15310 $as_echo "$as_val"'`
15311 if test "x$as_val" = x""yes; then
15312 cat >>confdefs.h <<_ACEOF
15313#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15314_ACEOF
15315
15316else
15317 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
15318$as_echo "$as_me: error: bailing out" >&2;}
15319 { (exit 1); exit 1; }; }
15320fi
15321
15322done
15323
15324fi
15325
a653923f
AK
15326################################################################################
15327# Extract the first word of "modprobe", so it can be a program name with args.
15328set dummy modprobe; ac_word=$2
ec6a6fbe
AK
15329{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
15330$as_echo_n "checking for $ac_word... " >&6; }
72b2cb61 15331if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then
ec6a6fbe 15332 $as_echo_n "(cached) " >&6
72b2cb61
AK
15333else
15334 case $MODPROBE_CMD in
15335 [\\/]* | ?:[\\/]*)
15336 ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path.
15337 ;;
15338 *)
15339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15340for as_dir in $PATH
15341do
15342 IFS=$as_save_IFS
15343 test -z "$as_dir" && as_dir=.
15344 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 15345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
72b2cb61 15346 ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 15347 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
72b2cb61
AK
15348 break 2
15349 fi
15350done
15351done
7a197a62 15352IFS=$as_save_IFS
72b2cb61
AK
15353
15354 ;;
15355esac
15356fi
15357MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD
72b2cb61 15358if test -n "$MODPROBE_CMD"; then
ec6a6fbe
AK
15359 { $as_echo "$as_me:$LINENO: result: $MODPROBE_CMD" >&5
15360$as_echo "$MODPROBE_CMD" >&6; }
72b2cb61 15361else
ec6a6fbe
AK
15362 { $as_echo "$as_me:$LINENO: result: no" >&5
15363$as_echo "no" >&6; }
72b2cb61
AK
15364fi
15365
a653923f 15366
7a197a62 15367
a653923f 15368if test x$MODPROBE_CMD != x; then
72b2cb61
AK
15369
15370cat >>confdefs.h <<_ACEOF
15371#define MODPROBE_CMD "$MODPROBE_CMD"
15372_ACEOF
15373
a653923f
AK
15374fi
15375
80992638 15376################################################################################
93bd259b
AK
15377
15378
15379if test "$BUILD_DMEVENTD" = yes; then
15380
15381# Check whether --with-dmeventd-pidfile was given.
15382if test "${with_dmeventd_pidfile+set}" = set; then
15383 withval=$with_dmeventd_pidfile; cat >>confdefs.h <<_ACEOF
15384#define DMEVENTD_PIDFILE "$withval"
15385_ACEOF
15386
15387else
15388 cat >>confdefs.h <<_ACEOF
15389#define DMEVENTD_PIDFILE "/var/run/dmeventd.pid"
15390_ACEOF
15391
15392fi
15393
15394fi
15395
15396
15397
15398if test "$BUILD_DMEVENTD" = yes; then
15399 dmeventd_prefix="$exec_prefix"
15400 if test "x$dmeventd_prefix" = "xNONE"; then
15401 dmeventd_prefix="$prefix"
15402 fi
15403 if test "x$dmeventd_prefix" = "xNONE"; then
15404 dmeventd_prefix=""
15405 fi
15406
15407# Check whether --with-dmeventd-path was given.
15408if test "${with_dmeventd_path+set}" = set; then
15409 withval=$with_dmeventd_path; cat >>confdefs.h <<_ACEOF
15410#define DMEVENTD_PATH "$withval"
15411_ACEOF
15412
15413else
15414 cat >>confdefs.h <<_ACEOF
15415#define DMEVENTD_PATH "$dmeventd_prefix/sbin/dmeventd"
15416_ACEOF
15417
15418fi
15419
15420fi
15421
15422################################################################################
ec6a6fbe
AK
15423{ $as_echo "$as_me:$LINENO: checking for kernel interface choice" >&5
15424$as_echo_n "checking for kernel interface choice... " >&6; }
93bd259b
AK
15425
15426# Check whether --with-interface was given.
15427if test "${with_interface+set}" = set; then
15428 withval=$with_interface; interface="$withval"
15429else
15430 interface=ioctl
15431fi
15432
15433if [ "x$interface" != xioctl ];
15434then
ec6a6fbe
AK
15435 { { $as_echo "$as_me:$LINENO: error: --with-interface=ioctl required. fs no longer supported." >&5
15436$as_echo "$as_me: error: --with-interface=ioctl required. fs no longer supported." >&2;}
93bd259b
AK
15437 { (exit 1); exit 1; }; }
15438fi
ec6a6fbe
AK
15439{ $as_echo "$as_me:$LINENO: result: $interface" >&5
15440$as_echo "$interface" >&6; }
93bd259b
AK
15441
15442################################################################################
db8b5af9 15443DM_LIB_VERSION="\"`cat "$srcdir"/VERSION_DM 2>/dev/null || echo Unknown`\""
24bbc4d7
AK
15444
15445cat >>confdefs.h <<_ACEOF
15446#define DM_LIB_VERSION $DM_LIB_VERSION
15447_ACEOF
15448
15449
db8b5af9 15450DM_LIB_PATCHLEVEL=`cat "$srcdir"/VERSION_DM | $AWK -F '[-. ]' '{printf "%s.%s.%s",$1,$2,$3}'`
7e3fe830 15451
db8b5af9 15452LVM_VERSION="\"`cat "$srcdir"/VERSION 2>/dev/null || echo Unknown`\""
fae0c576 15453
db8b5af9 15454VER=`cat "$srcdir"/VERSION`
bf456146 15455LVM_RELEASE_DATE="\"`echo $VER | $SED 's/.* (//;s/).*//'`\""
ec6a6fbe
AK
15456VER=`echo "$VER" | $AWK '{print $1}'`
15457LVM_RELEASE="\"`echo "$VER" | $AWK -F '-' '{print $2}'`\""
15458VER=`echo "$VER" | $AWK -F '-' '{print $1}'`
15459LVM_MAJOR=`echo "$VER" | $AWK -F '.' '{print $1}'`
15460LVM_MINOR=`echo "$VER" | $AWK -F '.' '{print $2}'`
bf456146
AK
15461LVM_PATCHLEVEL=`echo "$VER" | $AWK -F '[(.]' '{print $3}'`
15462LVM_LIBAPI=`echo "$VER" | $AWK -F '[()]' '{print $2}'`
ec6a6fbe 15463
80992638 15464################################################################################
fae0c576 15465
83912faa 15466
795ca3e5
AK
15467
15468
15469
15470
15471
15472
5a52dca9 15473
8ef2b021 15474
199e490e 15475
69792976
AK
15476
15477
15478
d0191583 15479
69792976 15480
8106cdd5
AK
15481
15482
15483
15484
15485
d68a82ec 15486
036f273a 15487
7d1552c9 15488
8106cdd5 15489
0a62c911 15490
8106cdd5 15491
4a7f3eb2 15492
4922197a
AK
15493
15494
d8ac0fbc 15495
1a9ea74d 15496
8a2fc586
AK
15497
15498
d0191583 15499
93bd259b
AK
15500
15501
15502
15503
15504
d0191583
JM
15505
15506
15507
15508
15509
8a2fc586 15510
19a2c6e0 15511
db724a44 15512
8ce0cbda 15513
8b1a3214 15514
ec6a6fbe
AK
15515
15516
15517
15518
e2997b73
AK
15519
15520
15521
15522
15523
15524
a946372e
AK
15525
15526
15527
15528
15529
15530
15531
15532
15533
15534
15535
ec6a6fbe 15536
33f732c5 15537
66e941e8 15538
d3c8211f 15539
7e3fe830 15540
a5f46f6a
AK
15541
15542
15543
572fefeb 15544
90c80887
AK
15545
15546
bf456146 15547
e1b8a236 15548
0878503f 15549
68f2de6d
AK
15550
15551
80992638 15552################################################################################
d3d98fdc 15553ac_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 15554
ad6254c5 15555cat >confcache <<\_ACEOF
795ca3e5
AK
15556# This file is a shell script that caches the results of configure
15557# tests run on this system so they can be shared between configure
ad6254c5
AK
15558# scripts and configure runs, see configure's option --config-cache.
15559# It is not useful on other systems. If it contains results you don't
15560# want to keep, you may remove or edit it.
795ca3e5 15561#
ad6254c5
AK
15562# config.status only pays attention to the cache file if you give it
15563# the --recheck option to rerun configure.
795ca3e5 15564#
ad6254c5
AK
15565# `ac_cv_env_foo' variables (set or unset) will be overridden when
15566# loading this file, other *unset* `ac_cv_foo' will be assigned the
15567# following values.
15568
15569_ACEOF
15570
795ca3e5
AK
15571# The following way of writing the cache mishandles newlines in values,
15572# but we know of no workaround that is simple, portable, and efficient.
7a197a62 15573# So, we kill variables containing newlines.
795ca3e5
AK
15574# Ultrix sh set writes to stderr and can't be redirected directly,
15575# and sets the high bit in the cache file unless we assign to the vars.
7a197a62
AK
15576(
15577 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15578 eval ac_val=\$$ac_var
15579 case $ac_val in #(
15580 *${as_nl}*)
15581 case $ac_var in #(
ec6a6fbe
AK
15582 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
15583$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7a197a62
AK
15584 esac
15585 case $ac_var in #(
15586 _ | IFS | as_nl) ;; #(
ec6a6fbe 15587 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7a197a62
AK
15588 *) $as_unset $ac_var ;;
15589 esac ;;
15590 esac
15591 done
15592
ad6254c5 15593 (set) 2>&1 |
7a197a62
AK
15594 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15595 *${as_nl}ac_space=\ *)
ad6254c5
AK
15596 # `set' does not quote correctly, so add quotes (double-quote
15597 # substitution turns \\\\ into \\, and sed turns \\ into \).
15598 sed -n \
8a2fc586
AK
15599 "s/'/'\\\\''/g;
15600 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7a197a62 15601 ;; #(
ad6254c5
AK
15602 *)
15603 # `set' quotes correctly as required by POSIX, so do not add quotes.
7a197a62 15604 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
ad6254c5 15605 ;;
7a197a62
AK
15606 esac |
15607 sort
15608) |
ad6254c5 15609 sed '
7a197a62 15610 /^ac_cv_env_/b end
ad6254c5 15611 t clear
7a197a62 15612 :clear
ad6254c5
AK
15613 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15614 t end
7a197a62
AK
15615 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15616 :end' >>confcache
15617if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15618 if test -w "$cache_file"; then
15619 test "x$cache_file" != "x/dev/null" &&
ec6a6fbe
AK
15620 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
15621$as_echo "$as_me: updating cache $cache_file" >&6;}
ad6254c5 15622 cat confcache >$cache_file
795ca3e5 15623 else
ec6a6fbe
AK
15624 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
15625$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
795ca3e5
AK
15626 fi
15627fi
15628rm -f confcache
15629
795ca3e5
AK
15630test "x$prefix" = xNONE && prefix=$ac_default_prefix
15631# Let make expand exec_prefix.
15632test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15633
72b2cb61 15634DEFS=-DHAVE_CONFIG_H
ad6254c5
AK
15635
15636ac_libobjs=
15637ac_ltlibobjs=
15638for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15639 # 1. Remove the extension, and $U if already installed.
7a197a62 15640 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
ec6a6fbe 15641 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7a197a62
AK
15642 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15643 # will be set to the directory where LIBOBJS objects are built.
15644 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15645 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
ad6254c5
AK
15646done
15647LIBOBJS=$ac_libobjs
80992638 15648
ad6254c5
AK
15649LTLIBOBJS=$ac_ltlibobjs
15650
15651
15652
15653: ${CONFIG_STATUS=./config.status}
ec6a6fbe 15654ac_write_fail=0
ad6254c5
AK
15655ac_clean_files_save=$ac_clean_files
15656ac_clean_files="$ac_clean_files $CONFIG_STATUS"
ec6a6fbe
AK
15657{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15658$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15659cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5
AK
15660#! $SHELL
15661# Generated by $as_me.
795ca3e5 15662# Run this file to recreate the current configuration.
795ca3e5 15663# Compiler output produced by configure, useful for debugging
ad6254c5
AK
15664# configure, is in config.log if it exists.
15665
15666debug=false
15667ac_cs_recheck=false
15668ac_cs_silent=false
15669SHELL=\${CONFIG_SHELL-$SHELL}
15670_ACEOF
15671
ec6a6fbe 15672cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ad6254c5
AK
15673## --------------------- ##
15674## M4sh Initialization. ##
15675## --------------------- ##
15676
25fbec5b
AK
15677# Be more Bourne compatible
15678DUALCASE=1; export DUALCASE # for MKS sh
ad6254c5
AK
15679if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15680 emulate sh
15681 NULLCMD=:
ec6a6fbe 15682 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
ad6254c5
AK
15683 # is contrary to our usage. Disable this feature.
15684 alias -g '${1+"$@"}'='"$@"'
7a197a62
AK
15685 setopt NO_GLOB_SUBST
15686else
25fbec5b
AK
15687 case `(set -o) 2>/dev/null` in
15688 *posix*) set -o posix ;;
15689esac
15690
7a197a62 15691fi
25fbec5b
AK
15692
15693
7a197a62
AK
15694
15695
15696# PATH needs CR
15697# Avoid depending upon Character Ranges.
15698as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15699as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15700as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15701as_cr_digits='0123456789'
15702as_cr_alnum=$as_cr_Letters$as_cr_digits
15703
ec6a6fbe
AK
15704as_nl='
15705'
15706export as_nl
15707# Printing a long string crashes Solaris 7 /usr/bin/printf.
15708as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15709as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15710as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15711if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15712 as_echo='printf %s\n'
15713 as_echo_n='printf %s'
15714else
15715 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15716 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15717 as_echo_n='/usr/ucb/echo -n'
68f2de6d 15718 else
ec6a6fbe
AK
15719 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15720 as_echo_n_body='eval
15721 arg=$1;
15722 case $arg in
15723 *"$as_nl"*)
15724 expr "X$arg" : "X\\(.*\\)$as_nl";
15725 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15726 esac;
15727 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15728 '
15729 export as_echo_n_body
15730 as_echo_n='sh -c $as_echo_n_body as_echo'
68f2de6d 15731 fi
ec6a6fbe
AK
15732 export as_echo_body
15733 as_echo='sh -c $as_echo_body as_echo'
15734fi
15735
15736# The user is always right.
15737if test "${PATH_SEPARATOR+set}" != set; then
15738 PATH_SEPARATOR=:
15739 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15740 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15741 PATH_SEPARATOR=';'
15742 }
ad6254c5
AK
15743fi
15744
15745# Support unset when possible.
8a2fc586 15746if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
ad6254c5
AK
15747 as_unset=unset
15748else
15749 as_unset=false
15750fi
8106cdd5 15751
ad6254c5 15752
7a197a62
AK
15753# IFS
15754# We need space, tab and new line, in precisely that order. Quoting is
15755# there to prevent editors from complaining about space-tab.
15756# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15757# splitting by setting IFS to empty value.)
7a197a62
AK
15758IFS=" "" $as_nl"
15759
15760# Find who we are. Look in the path if we contain no directory separator.
15761case $0 in
15762 *[\\/]* ) as_myself=$0 ;;
15763 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15764for as_dir in $PATH
15765do
15766 IFS=$as_save_IFS
15767 test -z "$as_dir" && as_dir=.
15768 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15769done
15770IFS=$as_save_IFS
15771
15772 ;;
15773esac
15774# We did not find ourselves, most probably we were run as `sh COMMAND'
15775# in which case we are not to be found in the path.
15776if test "x$as_myself" = x; then
15777 as_myself=$0
15778fi
15779if test ! -f "$as_myself"; then
ec6a6fbe 15780 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7a197a62
AK
15781 { (exit 1); exit 1; }
15782fi
15783
ad6254c5 15784# Work around bugs in pre-3.0 UWIN ksh.
7a197a62
AK
15785for as_var in ENV MAIL MAILPATH
15786do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15787done
ad6254c5
AK
15788PS1='$ '
15789PS2='> '
15790PS4='+ '
15791
15792# NLS nuisances.
ec6a6fbe
AK
15793LC_ALL=C
15794export LC_ALL
15795LANGUAGE=C
15796export LANGUAGE
8106cdd5 15797
ad6254c5 15798# Required to use basename.
7a197a62
AK
15799if expr a : '\(a\)' >/dev/null 2>&1 &&
15800 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
15801 as_expr=expr
15802else
15803 as_expr=false
15804fi
8106cdd5 15805
7a197a62 15806if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
ad6254c5
AK
15807 as_basename=basename
15808else
15809 as_basename=false
15810fi
15811
15812
15813# Name of the executable.
7a197a62 15814as_me=`$as_basename -- "$0" ||
ad6254c5
AK
15815$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15816 X"$0" : 'X\(//\)$' \| \
7a197a62 15817 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 15818$as_echo X/"$0" |
7a197a62
AK
15819 sed '/^.*\/\([^/][^/]*\)\/*$/{
15820 s//\1/
15821 q
15822 }
15823 /^X\/\(\/\/\)$/{
15824 s//\1/
15825 q
15826 }
15827 /^X\/\(\/\).*/{
15828 s//\1/
15829 q
15830 }
15831 s/.*/./; q'`
ad6254c5 15832
7a197a62
AK
15833# CDPATH.
15834$as_unset CDPATH
ad6254c5
AK
15835
15836
ad6254c5 15837
ad6254c5
AK
15838 as_lineno_1=$LINENO
15839 as_lineno_2=$LINENO
ad6254c5 15840 test "x$as_lineno_1" != "x$as_lineno_2" &&
7a197a62 15841 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
795ca3e5 15842
ad6254c5
AK
15843 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15844 # uniformly replaced by the line number. The first 'sed' inserts a
7a197a62
AK
15845 # line-number line after each line using $LINENO; the second 'sed'
15846 # does the real work. The second script uses 'N' to pair each
15847 # line-number line with the line containing $LINENO, and appends
15848 # trailing '-' during substitution so that $LINENO is not a special
15849 # case at line end.
ad6254c5 15850 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7a197a62
AK
15851 # scripts with optimization help from Paolo Bonzini. Blame Lee
15852 # E. McMahon (1931-1989) for sed's syntax. :-)
15853 sed -n '
15854 p
15855 /[$]LINENO/=
15856 ' <$as_myself |
ad6254c5 15857 sed '
7a197a62
AK
15858 s/[$]LINENO.*/&-/
15859 t lineno
15860 b
15861 :lineno
ad6254c5 15862 N
7a197a62
AK
15863 :loop
15864 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
ad6254c5 15865 t loop
7a197a62 15866 s/-\n.*//
ad6254c5 15867 ' >$as_me.lineno &&
7a197a62 15868 chmod +x "$as_me.lineno" ||
ec6a6fbe 15869 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
ad6254c5
AK
15870 { (exit 1); exit 1; }; }
15871
15872 # Don't try to exec as it changes $[0], causing all sort of problems
15873 # (the dirname of $[0] is not the place where we might find the
7a197a62
AK
15874 # original and so on. Autoconf is especially sensitive to this).
15875 . "./$as_me.lineno"
ad6254c5
AK
15876 # Exit status is that of the last command.
15877 exit
15878}
15879
15880
7a197a62
AK
15881if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15882 as_dirname=dirname
15883else
15884 as_dirname=false
15885fi
15886
15887ECHO_C= ECHO_N= ECHO_T=
15888case `echo -n x` in
15889-n*)
15890 case `echo 'x\c'` in
15891 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15892 *) ECHO_C='\c';;
15893 esac;;
15894*)
15895 ECHO_N='-n';;
ad6254c5 15896esac
7a197a62
AK
15897if expr a : '\(a\)' >/dev/null 2>&1 &&
15898 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
15899 as_expr=expr
15900else
15901 as_expr=false
15902fi
80992638 15903
ad6254c5 15904rm -f conf$$ conf$$.exe conf$$.file
7a197a62
AK
15905if test -d conf$$.dir; then
15906 rm -f conf$$.dir/conf$$.file
15907else
15908 rm -f conf$$.dir
ec6a6fbe
AK
15909 mkdir conf$$.dir 2>/dev/null
15910fi
15911if (echo >conf$$.file) 2>/dev/null; then
15912 if ln -s conf$$.file conf$$ 2>/dev/null; then
15913 as_ln_s='ln -s'
15914 # ... but there are two gotchas:
15915 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15916 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15917 # In both cases, we have to default to `cp -p'.
15918 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15919 as_ln_s='cp -p'
15920 elif ln conf$$.file conf$$ 2>/dev/null; then
15921 as_ln_s=ln
15922 else
ad6254c5 15923 as_ln_s='cp -p'
ec6a6fbe 15924 fi
ad6254c5
AK
15925else
15926 as_ln_s='cp -p'
15927fi
7a197a62
AK
15928rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15929rmdir conf$$.dir 2>/dev/null
8106cdd5 15930
ad6254c5
AK
15931if mkdir -p . 2>/dev/null; then
15932 as_mkdir_p=:
15933else
8a2fc586 15934 test -d ./-p && rmdir ./-p
ad6254c5
AK
15935 as_mkdir_p=false
15936fi
15937
25fbec5b
AK
15938if test -x / >/dev/null 2>&1; then
15939 as_test_x='test -x'
7a197a62 15940else
25fbec5b
AK
15941 if ls -dL / >/dev/null 2>&1; then
15942 as_ls_L_option=L
15943 else
15944 as_ls_L_option=
15945 fi
15946 as_test_x='
15947 eval sh -c '\''
15948 if test -d "$1"; then
ec6a6fbe 15949 test -d "$1/.";
25fbec5b
AK
15950 else
15951 case $1 in
ec6a6fbe 15952 -*)set "./$1";;
25fbec5b
AK
15953 esac;
15954 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
15955 ???[sx]*):;;*)false;;esac;fi
15956 '\'' sh
15957 '
7a197a62 15958fi
25fbec5b 15959as_executable_p=$as_test_x
ad6254c5
AK
15960
15961# Sed expression to map a string onto a valid CPP name.
8a2fc586 15962as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
15963
15964# Sed expression to map a string onto a valid variable name.
8a2fc586 15965as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
15966
15967
ad6254c5
AK
15968exec 6>&1
15969
7a197a62 15970# Save the log message, to keep $[0] and so on meaningful, and to
ad6254c5 15971# report actual input values of CONFIG_FILES etc. instead of their
7a197a62
AK
15972# values after options handling.
15973ac_log="
ad6254c5 15974This file was extended by $as_me, which was
ec6a6fbe 15975generated by GNU Autoconf 2.63. Invocation command line was
ad6254c5
AK
15976
15977 CONFIG_FILES = $CONFIG_FILES
15978 CONFIG_HEADERS = $CONFIG_HEADERS
15979 CONFIG_LINKS = $CONFIG_LINKS
15980 CONFIG_COMMANDS = $CONFIG_COMMANDS
15981 $ $0 $@
15982
7a197a62
AK
15983on `(hostname || uname -n) 2>/dev/null | sed 1q`
15984"
15985
ad6254c5
AK
15986_ACEOF
15987
ec6a6fbe
AK
15988case $ac_config_files in *"
15989"*) set x $ac_config_files; shift; ac_config_files=$*;;
15990esac
15991
15992case $ac_config_headers in *"
15993"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15994esac
15995
15996
15997cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5 15998# Files that config.status was made for.
68f2de6d
AK
15999config_files="$ac_config_files"
16000config_headers="$ac_config_headers"
ad6254c5 16001
7a197a62 16002_ACEOF
ad6254c5 16003
ec6a6fbe 16004cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ad6254c5
AK
16005ac_cs_usage="\
16006\`$as_me' instantiates files from templates according to the
16007current configuration.
16008
ec6a6fbe 16009Usage: $0 [OPTION]... [FILE]...
ad6254c5
AK
16010
16011 -h, --help print this help, then exit
25fbec5b 16012 -V, --version print version number and configuration settings, then exit
ec6a6fbe
AK
16013 -q, --quiet, --silent
16014 do not print progress messages
ad6254c5
AK
16015 -d, --debug don't remove temporary files
16016 --recheck update $as_me by reconfiguring in the same conditions
ec6a6fbe
AK
16017 --file=FILE[:TEMPLATE]
16018 instantiate the configuration file FILE
16019 --header=FILE[:TEMPLATE]
16020 instantiate the configuration header FILE
ad6254c5
AK
16021
16022Configuration files:
16023$config_files
16024
72b2cb61
AK
16025Configuration headers:
16026$config_headers
16027
ad6254c5 16028Report bugs to <bug-autoconf@gnu.org>."
ad6254c5 16029
7a197a62 16030_ACEOF
ec6a6fbe 16031cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5
AK
16032ac_cs_version="\\
16033config.status
ec6a6fbe
AK
16034configured by $0, generated by GNU Autoconf 2.63,
16035 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
ad6254c5 16036
ec6a6fbe 16037Copyright (C) 2008 Free Software Foundation, Inc.
ad6254c5
AK
16038This config.status script is free software; the Free Software Foundation
16039gives unlimited permission to copy, distribute and modify it."
7a197a62
AK
16040
16041ac_pwd='$ac_pwd'
16042srcdir='$srcdir'
16043INSTALL='$INSTALL'
fddafd51 16044MKDIR_P='$MKDIR_P'
ec6a6fbe
AK
16045AWK='$AWK'
16046test -n "\$AWK" || AWK=awk
ad6254c5
AK
16047_ACEOF
16048
ec6a6fbe
AK
16049cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16050# The default lists apply if the user does not specify any file.
ad6254c5
AK
16051ac_need_defaults=:
16052while test $# != 0
16053do
16054 case $1 in
16055 --*=*)
7a197a62
AK
16056 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16057 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
ad6254c5
AK
16058 ac_shift=:
16059 ;;
7a197a62 16060 *)
ad6254c5
AK
16061 ac_option=$1
16062 ac_optarg=$2
16063 ac_shift=shift
16064 ;;
ad6254c5
AK
16065 esac
16066
16067 case $ac_option in
16068 # Handling of the options.
ad6254c5
AK
16069 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16070 ac_cs_recheck=: ;;
7a197a62 16071 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
ec6a6fbe 16072 $as_echo "$ac_cs_version"; exit ;;
7a197a62 16073 --debug | --debu | --deb | --de | --d | -d )
ad6254c5
AK
16074 debug=: ;;
16075 --file | --fil | --fi | --f )
16076 $ac_shift
ec6a6fbe
AK
16077 case $ac_optarg in
16078 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16079 esac
16080 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
ad6254c5
AK
16081 ac_need_defaults=false;;
16082 --header | --heade | --head | --hea )
16083 $ac_shift
ec6a6fbe
AK
16084 case $ac_optarg in
16085 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16086 esac
16087 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
ad6254c5 16088 ac_need_defaults=false;;
7a197a62
AK
16089 --he | --h)
16090 # Conflict between --help and --header
ec6a6fbe 16091 { $as_echo "$as_me: error: ambiguous option: $1
7a197a62
AK
16092Try \`$0 --help' for more information." >&2
16093 { (exit 1); exit 1; }; };;
16094 --help | --hel | -h )
ec6a6fbe 16095 $as_echo "$ac_cs_usage"; exit ;;
ad6254c5
AK
16096 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16097 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16098 ac_cs_silent=: ;;
16099
16100 # This is an error.
ec6a6fbe 16101 -*) { $as_echo "$as_me: error: unrecognized option: $1
7a197a62 16102Try \`$0 --help' for more information." >&2
ad6254c5
AK
16103 { (exit 1); exit 1; }; } ;;
16104
7a197a62
AK
16105 *) ac_config_targets="$ac_config_targets $1"
16106 ac_need_defaults=false ;;
ad6254c5
AK
16107
16108 esac
16109 shift
16110done
16111
16112ac_configure_extra_args=
16113
16114if $ac_cs_silent; then
16115 exec 6>/dev/null
16116 ac_configure_extra_args="$ac_configure_extra_args --silent"
16117fi
16118
16119_ACEOF
ec6a6fbe 16120cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5 16121if \$ac_cs_recheck; then
ec6a6fbe
AK
16122 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16123 shift
16124 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16125 CONFIG_SHELL='$SHELL'
7a197a62 16126 export CONFIG_SHELL
ec6a6fbe 16127 exec "\$@"
ad6254c5
AK
16128fi
16129
16130_ACEOF
ec6a6fbe 16131cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
16132exec 5>>config.log
16133{
16134 echo
16135 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16136## Running $as_me. ##
16137_ASBOX
ec6a6fbe 16138 $as_echo "$ac_log"
7a197a62 16139} >&5
ad6254c5 16140
7a197a62 16141_ACEOF
ec6a6fbe 16142cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7a197a62 16143_ACEOF
ad6254c5 16144
ec6a6fbe 16145cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
16146
16147# Handling of arguments.
ad6254c5
AK
16148for ac_config_target in $ac_config_targets
16149do
7a197a62
AK
16150 case $ac_config_target in
16151 "lib/misc/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;;
16152 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16153 "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;;
16154 "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;;
16155 "daemons/clvmd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;;
5d311afb 16156 "daemons/cmirrord/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/cmirrord/Makefile" ;;
93bd259b
AK
16157 "daemons/dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/Makefile" ;;
16158 "daemons/dmeventd/libdevmapper-event.pc") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/libdevmapper-event.pc" ;;
04f06bc9 16159 "daemons/dmeventd/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/Makefile" ;;
d3d98fdc 16160 "daemons/dmeventd/plugins/lvm2/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/lvm2/Makefile" ;;
93bd259b
AK
16161 "daemons/dmeventd/plugins/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/mirror/Makefile" ;;
16162 "daemons/dmeventd/plugins/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/snapshot/Makefile" ;;
7a197a62 16163 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
db8b5af9 16164 "include/.symlinks") CONFIG_FILES="$CONFIG_FILES include/.symlinks" ;;
93bd259b
AK
16165 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
16166 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
7a197a62
AK
16167 "lib/format1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;;
16168 "lib/format_pool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;;
16169 "lib/locking/Makefile") CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;;
16170 "lib/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;;
ec6a6fbe 16171 "lib/misc/lvm-version.h") CONFIG_FILES="$CONFIG_FILES lib/misc/lvm-version.h" ;;
7a197a62 16172 "lib/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;;
93bd259b
AK
16173 "libdm/Makefile") CONFIG_FILES="$CONFIG_FILES libdm/Makefile" ;;
16174 "libdm/libdevmapper.pc") CONFIG_FILES="$CONFIG_FILES libdm/libdevmapper.pc" ;;
e0c64c6c 16175 "liblvm/Makefile") CONFIG_FILES="$CONFIG_FILES liblvm/Makefile" ;;
70046623 16176 "liblvm/liblvm2app.pc") CONFIG_FILES="$CONFIG_FILES liblvm/liblvm2app.pc" ;;
93bd259b
AK
16177 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
16178 "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
75ad7143 16179 "scripts/clvmd_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/clvmd_init_red_hat" ;;
81410c8f 16180 "scripts/cmirrord_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/cmirrord_init_red_hat" ;;
595eaf92 16181 "scripts/lvm2_monitoring_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_monitoring_init_red_hat" ;;
7a197a62 16182 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
93bd259b 16183 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
c7e363f9 16184 "test/api/Makefile") CONFIG_FILES="$CONFIG_FILES test/api/Makefile" ;;
7a197a62 16185 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
a5f46f6a 16186 "udev/Makefile") CONFIG_FILES="$CONFIG_FILES udev/Makefile" ;;
7a197a62 16187
ec6a6fbe
AK
16188 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16189$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
ad6254c5 16190 { (exit 1); exit 1; }; };;
80992638 16191 esac
ad6254c5
AK
16192done
16193
7a197a62 16194
ad6254c5
AK
16195# If the user did not use the arguments to specify the items to instantiate,
16196# then the envvar interface is used. Set only those that are not.
16197# We use the long form for the default assignment because of an extremely
16198# bizarre bug on SunOS 4.1.3.
16199if $ac_need_defaults; then
16200 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
72b2cb61 16201 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
ad6254c5
AK
16202fi
16203
16204# Have a temporary directory for convenience. Make it in the build tree
7a197a62 16205# simply because there is no reason against having it here, and in addition,
ad6254c5 16206# creating and moving files from /tmp can sometimes cause problems.
7a197a62
AK
16207# Hook for its removal unless debugging.
16208# Note that there is a small window in which the directory will not be cleaned:
16209# after its creation but before its name has been assigned to `$tmp'.
ad6254c5
AK
16210$debug ||
16211{
7a197a62
AK
16212 tmp=
16213 trap 'exit_status=$?
16214 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16215' 0
ad6254c5
AK
16216 trap '{ (exit 1); exit 1; }' 1 2 13 15
16217}
ad6254c5
AK
16218# Create a (secure) tmp directory for tmp files.
16219
16220{
7a197a62 16221 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
ad6254c5
AK
16222 test -n "$tmp" && test -d "$tmp"
16223} ||
16224{
7a197a62
AK
16225 tmp=./conf$$-$RANDOM
16226 (umask 077 && mkdir "$tmp")
ad6254c5
AK
16227} ||
16228{
ec6a6fbe 16229 $as_echo "$as_me: cannot create a temporary directory in ." >&2
ad6254c5
AK
16230 { (exit 1); exit 1; }
16231}
16232
ec6a6fbe
AK
16233# Set up the scripts for CONFIG_FILES section.
16234# No need to generate them if there are no CONFIG_FILES.
16235# This happens for instance with `./config.status config.h'.
1995c9ff 16236if test -n "$CONFIG_FILES"; then
7a197a62 16237
68f2de6d 16238
ec6a6fbe
AK
16239ac_cr='\r'
16240ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16241if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16242 ac_cs_awk_cr='\\r'
16243else
16244 ac_cs_awk_cr=$ac_cr
1995c9ff 16245fi
7a197a62 16246
ec6a6fbe 16247echo 'BEGIN {' >"$tmp/subs1.awk" &&
1995c9ff 16248_ACEOF
7a197a62 16249
8106cdd5 16250
ec6a6fbe
AK
16251{
16252 echo "cat >conf$$subs.awk <<_ACEOF" &&
16253 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16254 echo "_ACEOF"
16255} >conf$$subs.sh ||
16256 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16257$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16258 { (exit 1); exit 1; }; }
16259ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
1995c9ff
AK
16260ac_delim='%!_!# '
16261for ac_last_try in false false false false false :; do
ec6a6fbe
AK
16262 . ./conf$$subs.sh ||
16263 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16264$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16265 { (exit 1); exit 1; }; }
16266
16267 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16268 if test $ac_delim_n = $ac_delim_num; then
1995c9ff
AK
16269 break
16270 elif $ac_last_try; then
ec6a6fbe
AK
16271 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16272$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
1995c9ff
AK
16273 { (exit 1); exit 1; }; }
16274 else
16275 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16276 fi
16277done
ec6a6fbe
AK
16278rm -f conf$$subs.sh
16279
16280cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16281cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16282_ACEOF
16283sed -n '
16284h
16285s/^/S["/; s/!.*/"]=/
16286p
16287g
16288s/^[^!]*!//
16289:repl
16290t repl
16291s/'"$ac_delim"'$//
16292t delim
16293:nl
16294h
16295s/\(.\{148\}\).*/\1/
16296t more1
16297s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16298p
16299n
16300b repl
16301:more1
16302s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16303p
16304g
16305s/.\{148\}//
16306t nl
16307:delim
16308h
16309s/\(.\{148\}\).*/\1/
16310t more2
16311s/["\\]/\\&/g; s/^/"/; s/$/"/
16312p
16313b
16314:more2
16315s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16316p
16317g
16318s/.\{148\}//
16319t delim
16320' <conf$$subs.awk | sed '
16321/^[^""]/{
16322 N
16323 s/\n//
16324}
16325' >>$CONFIG_STATUS || ac_write_fail=1
16326rm -f conf$$subs.awk
16327cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16328_ACAWK
16329cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16330 for (key in S) S_is_set[key] = 1
16331 FS = "\a"
7a197a62 16332
ec6a6fbe
AK
16333}
16334{
16335 line = $ 0
16336 nfields = split(line, field, "@")
16337 substed = 0
16338 len = length(field[1])
16339 for (i = 2; i < nfields; i++) {
16340 key = field[i]
16341 keylen = length(key)
16342 if (S_is_set[key]) {
16343 value = S[key]
16344 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16345 len += length(value) + length(field[++i])
16346 substed = 1
16347 } else
16348 len += 1 + keylen
16349 }
16350
16351 print line
16352}
fddafd51 16353
ec6a6fbe 16354_ACAWK
1995c9ff 16355_ACEOF
ec6a6fbe
AK
16356cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16357if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16358 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16359else
16360 cat
16361fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16362 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
16363$as_echo "$as_me: error: could not setup config files machinery" >&2;}
16364 { (exit 1); exit 1; }; }
7a197a62
AK
16365_ACEOF
16366
7a197a62
AK
16367# VPATH may cause trouble with some makes, so we remove $(srcdir),
16368# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16369# trailing colons and then remove the whole line if VPATH becomes empty
16370# (actually we leave an empty line to preserve line numbers).
16371if test "x$srcdir" = x.; then
16372 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16373s/:*\$(srcdir):*/:/
16374s/:*\${srcdir}:*/:/
16375s/:*@srcdir@:*/:/
16376s/^\([^=]*=[ ]*\):*/\1/
16377s/:*$//
16378s/^[^=]*=[ ]*$//
16379}'
16380fi
16381
ec6a6fbe 16382cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
16383fi # test -n "$CONFIG_FILES"
16384
ec6a6fbe
AK
16385# Set up the scripts for CONFIG_HEADERS section.
16386# No need to generate them if there are no CONFIG_HEADERS.
16387# This happens for instance with `./config.status Makefile'.
16388if test -n "$CONFIG_HEADERS"; then
16389cat >"$tmp/defines.awk" <<\_ACAWK ||
16390BEGIN {
16391_ACEOF
16392
16393# Transform confdefs.h into an awk script `defines.awk', embedded as
16394# here-document in config.status, that substitutes the proper values into
16395# config.h.in to produce config.h.
16396
16397# Create a delimiter string that does not exist in confdefs.h, to ease
16398# handling of long lines.
16399ac_delim='%!_!# '
16400for ac_last_try in false false :; do
16401 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16402 if test -z "$ac_t"; then
16403 break
16404 elif $ac_last_try; then
16405 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
16406$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
16407 { (exit 1); exit 1; }; }
16408 else
16409 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16410 fi
16411done
16412
16413# For the awk script, D is an array of macro values keyed by name,
16414# likewise P contains macro parameters if any. Preserve backslash
16415# newline sequences.
16416
16417ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16418sed -n '
16419s/.\{148\}/&'"$ac_delim"'/g
16420t rset
16421:rset
16422s/^[ ]*#[ ]*define[ ][ ]*/ /
16423t def
16424d
16425:def
16426s/\\$//
16427t bsnl
16428s/["\\]/\\&/g
16429s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16430D["\1"]=" \3"/p
16431s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16432d
16433:bsnl
16434s/["\\]/\\&/g
16435s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16436D["\1"]=" \3\\\\\\n"\\/p
16437t cont
16438s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16439t cont
16440d
16441:cont
16442n
16443s/.\{148\}/&'"$ac_delim"'/g
16444t clear
16445:clear
16446s/\\$//
16447t bsnlc
16448s/["\\]/\\&/g; s/^/"/; s/$/"/p
16449d
16450:bsnlc
16451s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16452b cont
16453' <confdefs.h | sed '
16454s/'"$ac_delim"'/"\\\
16455"/g' >>$CONFIG_STATUS || ac_write_fail=1
16456
16457cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16458 for (key in D) D_is_set[key] = 1
16459 FS = "\a"
16460}
16461/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16462 line = \$ 0
16463 split(line, arg, " ")
16464 if (arg[1] == "#") {
16465 defundef = arg[2]
16466 mac1 = arg[3]
16467 } else {
16468 defundef = substr(arg[1], 2)
16469 mac1 = arg[2]
16470 }
16471 split(mac1, mac2, "(") #)
16472 macro = mac2[1]
16473 prefix = substr(line, 1, index(line, defundef) - 1)
16474 if (D_is_set[macro]) {
16475 # Preserve the white space surrounding the "#".
16476 print prefix "define", macro P[macro] D[macro]
16477 next
16478 } else {
16479 # Replace #undef with comments. This is necessary, for example,
16480 # in the case of _POSIX_SOURCE, which is predefined and required
16481 # on some systems where configure will not decide to define it.
16482 if (defundef == "undef") {
16483 print "/*", prefix defundef, macro, "*/"
16484 next
16485 }
16486 }
16487}
16488{ print }
16489_ACAWK
16490_ACEOF
16491cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16492 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
16493$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
16494 { (exit 1); exit 1; }; }
16495fi # test -n "$CONFIG_HEADERS"
16496
7a197a62 16497
ec6a6fbe
AK
16498eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
16499shift
16500for ac_tag
7a197a62
AK
16501do
16502 case $ac_tag in
16503 :[FHLC]) ac_mode=$ac_tag; continue;;
16504 esac
16505 case $ac_mode$ac_tag in
16506 :[FHL]*:*);;
ec6a6fbe
AK
16507 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
16508$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
7a197a62
AK
16509 { (exit 1); exit 1; }; };;
16510 :[FH]-) ac_tag=-:-;;
16511 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16512 esac
16513 ac_save_IFS=$IFS
16514 IFS=:
16515 set x $ac_tag
16516 IFS=$ac_save_IFS
16517 shift
16518 ac_file=$1
16519 shift
16520
16521 case $ac_mode in
16522 :L) ac_source=$1;;
16523 :[FH])
16524 ac_file_inputs=
16525 for ac_f
16526 do
16527 case $ac_f in
16528 -) ac_f="$tmp/stdin";;
16529 *) # Look for the file first in the build tree, then in the source tree
16530 # (if the path is not absolute). The absolute path cannot be DOS-style,
16531 # because $ac_f cannot contain `:'.
16532 test -f "$ac_f" ||
16533 case $ac_f in
16534 [\\/$]*) false;;
16535 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16536 esac ||
ec6a6fbe
AK
16537 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
16538$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
7a197a62
AK
16539 { (exit 1); exit 1; }; };;
16540 esac
ec6a6fbe
AK
16541 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16542 ac_file_inputs="$ac_file_inputs '$ac_f'"
7a197a62
AK
16543 done
16544
16545 # Let's still pretend it is `configure' which instantiates (i.e., don't
16546 # use $as_me), people would be surprised to read:
16547 # /* config.h. Generated by config.status. */
ec6a6fbe
AK
16548 configure_input='Generated from '`
16549 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16550 `' by configure.'
7a197a62
AK
16551 if test x"$ac_file" != x-; then
16552 configure_input="$ac_file. $configure_input"
ec6a6fbe
AK
16553 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
16554$as_echo "$as_me: creating $ac_file" >&6;}
7a197a62 16555 fi
ec6a6fbe
AK
16556 # Neutralize special characters interpreted by sed in replacement strings.
16557 case $configure_input in #(
16558 *\&* | *\|* | *\\* )
16559 ac_sed_conf_input=`$as_echo "$configure_input" |
16560 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16561 *) ac_sed_conf_input=$configure_input;;
16562 esac
7a197a62
AK
16563
16564 case $ac_tag in
ec6a6fbe
AK
16565 *:-:* | *:-) cat >"$tmp/stdin" \
16566 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16567$as_echo "$as_me: error: could not create $ac_file" >&2;}
16568 { (exit 1); exit 1; }; } ;;
7a197a62
AK
16569 esac
16570 ;;
80992638 16571 esac
8106cdd5 16572
7a197a62 16573 ac_dir=`$as_dirname -- "$ac_file" ||
ad6254c5 16574$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8a2fc586
AK
16575 X"$ac_file" : 'X\(//\)[^/]' \| \
16576 X"$ac_file" : 'X\(//\)$' \| \
7a197a62 16577 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 16578$as_echo X"$ac_file" |
7a197a62
AK
16579 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16580 s//\1/
16581 q
16582 }
16583 /^X\(\/\/\)[^/].*/{
16584 s//\1/
16585 q
16586 }
16587 /^X\(\/\/\)$/{
16588 s//\1/
16589 q
16590 }
16591 /^X\(\/\).*/{
16592 s//\1/
16593 q
16594 }
16595 s/.*/./; q'`
16596 { as_dir="$ac_dir"
16597 case $as_dir in #(
16598 -*) as_dir=./$as_dir;;
16599 esac
16600 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
ad6254c5 16601 as_dirs=
7a197a62
AK
16602 while :; do
16603 case $as_dir in #(
ec6a6fbe 16604 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7a197a62
AK
16605 *) as_qdir=$as_dir;;
16606 esac
16607 as_dirs="'$as_qdir' $as_dirs"
16608 as_dir=`$as_dirname -- "$as_dir" ||
ad6254c5 16609$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8a2fc586
AK
16610 X"$as_dir" : 'X\(//\)[^/]' \| \
16611 X"$as_dir" : 'X\(//\)$' \| \
7a197a62 16612 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 16613$as_echo X"$as_dir" |
7a197a62
AK
16614 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16615 s//\1/
16616 q
16617 }
16618 /^X\(\/\/\)[^/].*/{
16619 s//\1/
16620 q
16621 }
16622 /^X\(\/\/\)$/{
16623 s//\1/
16624 q
16625 }
16626 /^X\(\/\).*/{
16627 s//\1/
16628 q
16629 }
16630 s/.*/./; q'`
16631 test -d "$as_dir" && break
ad6254c5 16632 done
7a197a62 16633 test -z "$as_dirs" || eval "mkdir $as_dirs"
ec6a6fbe
AK
16634 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16635$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
ad6254c5 16636 { (exit 1); exit 1; }; }; }
ad6254c5
AK
16637 ac_builddir=.
16638
7a197a62
AK
16639case "$ac_dir" in
16640.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16641*)
ec6a6fbe 16642 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7a197a62 16643 # A ".." for each directory in $ac_dir_suffix.
ec6a6fbe 16644 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7a197a62
AK
16645 case $ac_top_builddir_sub in
16646 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16647 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16648 esac ;;
16649esac
16650ac_abs_top_builddir=$ac_pwd
16651ac_abs_builddir=$ac_pwd$ac_dir_suffix
16652# for backward compatibility:
16653ac_top_builddir=$ac_top_build_prefix
ad6254c5
AK
16654
16655case $srcdir in
7a197a62 16656 .) # We are building in place.
ad6254c5 16657 ac_srcdir=.
7a197a62
AK
16658 ac_top_srcdir=$ac_top_builddir_sub
16659 ac_abs_top_srcdir=$ac_pwd ;;
16660 [\\/]* | ?:[\\/]* ) # Absolute name.
ad6254c5 16661 ac_srcdir=$srcdir$ac_dir_suffix;
7a197a62
AK
16662 ac_top_srcdir=$srcdir
16663 ac_abs_top_srcdir=$srcdir ;;
16664 *) # Relative name.
16665 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16666 ac_top_srcdir=$ac_top_build_prefix$srcdir
16667 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
ad6254c5 16668esac
7a197a62 16669ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8a2fc586 16670
ad6254c5 16671
7a197a62
AK
16672 case $ac_mode in
16673 :F)
16674 #
16675 # CONFIG_FILE
16676 #
ad6254c5
AK
16677
16678 case $INSTALL in
16679 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7a197a62 16680 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
795ca3e5 16681 esac
fddafd51
ZK
16682 ac_MKDIR_P=$MKDIR_P
16683 case $MKDIR_P in
16684 [\\/$]* | ?:[\\/]* ) ;;
16685 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16686 esac
7a197a62 16687_ACEOF
795ca3e5 16688
ec6a6fbe 16689cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
16690# If the template does not know about datarootdir, expand it.
16691# FIXME: This hack should be removed a few years after 2.60.
16692ac_datarootdir_hack=; ac_datarootdir_seen=
16693
ec6a6fbe
AK
16694ac_sed_dataroot='
16695/datarootdir/ {
7a197a62
AK
16696 p
16697 q
16698}
16699/@datadir@/p
16700/@docdir@/p
16701/@infodir@/p
16702/@localedir@/p
16703/@mandir@/p
ec6a6fbe
AK
16704'
16705case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7a197a62
AK
16706*datarootdir*) ac_datarootdir_seen=yes;;
16707*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
ec6a6fbe
AK
16708 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16709$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
ad6254c5 16710_ACEOF
ec6a6fbe 16711cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7a197a62
AK
16712 ac_datarootdir_hack='
16713 s&@datadir@&$datadir&g
16714 s&@docdir@&$docdir&g
16715 s&@infodir@&$infodir&g
16716 s&@localedir@&$localedir&g
16717 s&@mandir@&$mandir&g
16718 s&\\\${datarootdir}&$datarootdir&g' ;;
16719esac
16720_ACEOF
16721
16722# Neutralize VPATH when `$srcdir' = `.'.
16723# Shell code in configure.ac might set extrasub.
16724# FIXME: do we really want to maintain this feature?
ec6a6fbe
AK
16725cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16726ac_sed_extra="$ac_vpsub
ad6254c5
AK
16727$extrasub
16728_ACEOF
ec6a6fbe 16729cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ad6254c5
AK
16730:t
16731/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
ec6a6fbe 16732s|@configure_input@|$ac_sed_conf_input|;t t
7a197a62 16733s&@top_builddir@&$ac_top_builddir_sub&;t t
ec6a6fbe 16734s&@top_build_prefix@&$ac_top_build_prefix&;t t
7a197a62
AK
16735s&@srcdir@&$ac_srcdir&;t t
16736s&@abs_srcdir@&$ac_abs_srcdir&;t t
16737s&@top_srcdir@&$ac_top_srcdir&;t t
16738s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16739s&@builddir@&$ac_builddir&;t t
16740s&@abs_builddir@&$ac_abs_builddir&;t t
16741s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16742s&@INSTALL@&$ac_INSTALL&;t t
fddafd51 16743s&@MKDIR_P@&$ac_MKDIR_P&;t t
7a197a62 16744$ac_datarootdir_hack
ec6a6fbe
AK
16745"
16746eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16747 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16748$as_echo "$as_me: error: could not create $ac_file" >&2;}
16749 { (exit 1); exit 1; }; }
7a197a62
AK
16750
16751test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16752 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16753 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
ec6a6fbe 16754 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7a197a62 16755which seems to be undefined. Please make sure it is defined." >&5
ec6a6fbe 16756$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7a197a62
AK
16757which seems to be undefined. Please make sure it is defined." >&2;}
16758
16759 rm -f "$tmp/stdin"
72b2cb61 16760 case $ac_file in
ec6a6fbe
AK
16761 -) cat "$tmp/out" && rm -f "$tmp/out";;
16762 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16763 esac \
16764 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16765$as_echo "$as_me: error: could not create $ac_file" >&2;}
16766 { (exit 1); exit 1; }; }
7a197a62
AK
16767 ;;
16768 :H)
16769 #
16770 # CONFIG_HEADER
16771 #
72b2cb61 16772 if test x"$ac_file" != x-; then
ec6a6fbe
AK
16773 {
16774 $as_echo "/* $configure_input */" \
16775 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16776 } >"$tmp/config.h" \
16777 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16778$as_echo "$as_me: error: could not create $ac_file" >&2;}
16779 { (exit 1); exit 1; }; }
16780 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16781 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16782$as_echo "$as_me: $ac_file is unchanged" >&6;}
72b2cb61 16783 else
ec6a6fbe
AK
16784 rm -f "$ac_file"
16785 mv "$tmp/config.h" "$ac_file" \
16786 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16787$as_echo "$as_me: error: could not create $ac_file" >&2;}
16788 { (exit 1); exit 1; }; }
72b2cb61
AK
16789 fi
16790 else
ec6a6fbe
AK
16791 $as_echo "/* $configure_input */" \
16792 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16793 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
16794$as_echo "$as_me: error: could not create -" >&2;}
16795 { (exit 1); exit 1; }; }
72b2cb61 16796 fi
7a197a62
AK
16797 ;;
16798
16799
16800 esac
16801
16802done # for ac_tag
795ca3e5 16803
795ca3e5 16804
ad6254c5
AK
16805{ (exit 0); exit 0; }
16806_ACEOF
795ca3e5 16807chmod +x $CONFIG_STATUS
ad6254c5
AK
16808ac_clean_files=$ac_clean_files_save
16809
ec6a6fbe
AK
16810test $ac_write_fail = 0 ||
16811 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
16812$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
16813 { (exit 1); exit 1; }; }
16814
ad6254c5
AK
16815
16816# configure is writing to config.log, and then calls config.status.
16817# config.status does its own redirection, appending to config.log.
16818# Unfortunately, on DOS this fails, as config.log is still kept open
16819# by configure, so config.status won't be able to write to it; its
16820# output is simply discarded. So we exec the FD to /dev/null,
16821# effectively closing config.log, so it can be properly (re)opened and
16822# appended to by config.status. When coming back to configure, we
16823# need to make the FD available again.
16824if test "$no_create" != yes; then
16825 ac_cs_success=:
16826 ac_config_status_args=
16827 test "$silent" = yes &&
16828 ac_config_status_args="$ac_config_status_args --quiet"
16829 exec 5>/dev/null
16830 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16831 exec 5>>config.log
16832 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16833 # would make configure fail if this is the last instruction.
16834 $ac_cs_success || { (exit 1); exit 1; }
16835fi
ec6a6fbe
AK
16836if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16837 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16838$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16839fi
795ca3e5 16840
2dc95e1c
AK
16841
16842if test x$ODIRECT != xyes; then
ec6a6fbe
AK
16843 { $as_echo "$as_me:$LINENO: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5
16844$as_echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;}
2dc95e1c 16845fi
This page took 2.104971 seconds and 5 git commands to generate.