]> sourceware.org Git - lvm2.git/blame - configure
Show a warning message when libudev not found and we're using --enable-udev_sync.
[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
649LIB_PTHREAD
a5f46f6a 650UDEV_RULES
ec6a6fbe
AK
651STATIC_LINK
652STATICDIR
653SNAPSHOTS
e1b8a236 654SELINUX_LIBS
ec6a6fbe
AK
655POOL
656PKGCONFIG
657OWNER
658MIRRORS
659LVM_RELEASE_DATE
660LVM_RELEASE
661LVM_PATCHLEVEL
662LVM_MINOR
663LVM_MAJOR
bf456146 664LVM_LIBAPI
ec6a6fbe 665LVM_VERSION
ec6a6fbe
AK
666LVM1_FALLBACK
667LVM1
668LOCALEDIR
669LIB_SUFFIX
670LDDEPS
671JOBS
672INTL_PACKAGE
673INTL
674HAVE_SELINUX
675HAVE_REALTIME
676HAVE_LIBDL
677GROUP
678FSADM
679DM_LIB_PATCHLEVEL
680DM_LIB_VERSION
681DM_IOCTLS
682DM_DEVICE_UID
683DM_DEVICE_MODE
684DM_DEVICE_GID
685DM_COMPAT
686DMEVENTD
687DEVMAPPER
688DEBUG
689COPTIMISE_FLAG
e2997b73 690CONFDIR
ec6a6fbe
AK
691CMDLIB
692CLVMD
693CLUSTER
694CLDWHOLEARCHIVE
695CLDNOWHOLEARCHIVE
696CLDFLAGS
697BUILD_DMEVENTD
66fd4529 698BUILD_CMIRRORD
572fefeb 699APPLIB
ec6a6fbe
AK
700MODPROBE_CMD
701MSGFMT
702LVM2CMD_LIB
572fefeb 703LVM2APP_LIB
ec6a6fbe
AK
704GENHTML
705LCOV
90c80887
AK
706SACKPT_LIBS
707SACKPT_CFLAGS
a946372e
AK
708DLM_LIBS
709DLM_CFLAGS
e2997b73
AK
710CPG_LIBS
711CPG_CFLAGS
712CONFDB_LIBS
713CONFDB_CFLAGS
a946372e
AK
714SALCK_LIBS
715SALCK_CFLAGS
e2997b73
AK
716QUORUM_LIBS
717QUORUM_CFLAGS
a946372e
AK
718COROSYNC_LIBS
719COROSYNC_CFLAGS
720CMAN_LIBS
721CMAN_CFLAGS
722GULM_LIBS
723GULM_CFLAGS
724CCS_LIBS
725CCS_CFLAGS
726PKGCONFIGINIT_LIBS
727PKGCONFIGINIT_CFLAGS
e2997b73 728PKG_CONFIG
ec6a6fbe
AK
729POW_LIB
730LIBOBJS
731ALLOCA
732CSCOPE_CMD
733CFLOW_CMD
734RANLIB
735MKDIR_P
736SET_MAKE
737LN_S
738INSTALL_DATA
739INSTALL_SCRIPT
740INSTALL_PROGRAM
741EGREP
742GREP
743CPP
744OBJEXT
745EXEEXT
746ac_ct_CC
747CPPFLAGS
748LDFLAGS
749CFLAGS
750CC
751AWK
752SED
753target_os
754target_vendor
755target_cpu
756target
757host_os
758host_vendor
759host_cpu
760host
761build_os
762build_vendor
763build_cpu
764build
765target_alias
766host_alias
767build_alias
768LIBS
769ECHO_T
770ECHO_N
771ECHO_C
772DEFS
773mandir
774localedir
775libdir
776psdir
777pdfdir
778dvidir
779htmldir
780infodir
781docdir
782oldincludedir
783includedir
784localstatedir
785sharedstatedir
786sysconfdir
787datadir
788datarootdir
789libexecdir
790sbindir
791bindir
792program_transform_name
793prefix
794exec_prefix
795PACKAGE_BUGREPORT
796PACKAGE_STRING
797PACKAGE_VERSION
798PACKAGE_TARNAME
799PACKAGE_NAME
800PATH_SEPARATOR
801SHELL'
ad6254c5 802ac_subst_files=''
ec6a6fbe
AK
803ac_user_opts='
804enable_option_checking
805enable_static_link
806with_user
807with_group
808with_device_uid
809with_device_gid
810with_device_mode
811enable_lvm1_fallback
812with_lvm1
813with_pool
814with_cluster
815with_snapshots
816with_mirrors
817enable_readline
818enable_realtime
819with_clvmd
66fd4529
AK
820enable_cmirrord
821with_cmirrord_pidfile
ec6a6fbe
AK
822enable_debug
823with_optimisation
824enable_profiling
825enable_devmapper
a5f46f6a
AK
826enable_udev_sync
827enable_udev_rules
ec6a6fbe 828enable_compat
95eaa683 829enable_units_compat
ec6a6fbe
AK
830enable_ioctl
831enable_o_direct
572fefeb 832enable_applib
ec6a6fbe
AK
833enable_cmdlib
834enable_pkgconfig
835enable_fsadm
836enable_dmeventd
837enable_selinux
838enable_nls
839with_localedir
840with_confdir
841with_staticdir
842with_usrlibdir
843with_usrsbindir
a5f46f6a 844with_udev_prefix
78ce7acc 845with_udevdir
ec6a6fbe
AK
846with_dmeventd_pidfile
847with_dmeventd_path
848with_interface
849'
7a197a62
AK
850 ac_precious_vars='build_alias
851host_alias
852target_alias
853CC
854CFLAGS
855LDFLAGS
25fbec5b 856LIBS
7a197a62 857CPPFLAGS
e2997b73
AK
858CPP
859PKG_CONFIG
a946372e
AK
860PKGCONFIGINIT_CFLAGS
861PKGCONFIGINIT_LIBS
862CCS_CFLAGS
863CCS_LIBS
864GULM_CFLAGS
865GULM_LIBS
866CMAN_CFLAGS
867CMAN_LIBS
868COROSYNC_CFLAGS
869COROSYNC_LIBS
e2997b73
AK
870QUORUM_CFLAGS
871QUORUM_LIBS
a946372e
AK
872SALCK_CFLAGS
873SALCK_LIBS
e2997b73
AK
874CONFDB_CFLAGS
875CONFDB_LIBS
876CPG_CFLAGS
a946372e
AK
877CPG_LIBS
878DLM_CFLAGS
90c80887
AK
879DLM_LIBS
880SACKPT_CFLAGS
881SACKPT_LIBS'
7a197a62 882
795ca3e5
AK
883
884# Initialize some variables set by options.
ad6254c5
AK
885ac_init_help=
886ac_init_version=false
ec6a6fbe
AK
887ac_unrecognized_opts=
888ac_unrecognized_sep=
795ca3e5
AK
889# The variables have the same names as the options, with
890# dashes changed to underlines.
ad6254c5 891cache_file=/dev/null
795ca3e5 892exec_prefix=NONE
795ca3e5 893no_create=
795ca3e5
AK
894no_recursion=
895prefix=NONE
896program_prefix=NONE
897program_suffix=NONE
898program_transform_name=s,x,x,
899silent=
900site=
901srcdir=
795ca3e5
AK
902verbose=
903x_includes=NONE
904x_libraries=NONE
ad6254c5
AK
905
906# Installation directory options.
907# These are left unexpanded so users can "make install exec_prefix=/foo"
908# and all the variables that are supposed to be based on exec_prefix
909# by default will actually change.
910# Use braces instead of parens because sh, perl, etc. also accept them.
7a197a62 911# (The list follows the same order as the GNU Coding Standards.)
795ca3e5
AK
912bindir='${exec_prefix}/bin'
913sbindir='${exec_prefix}/sbin'
914libexecdir='${exec_prefix}/libexec'
7a197a62
AK
915datarootdir='${prefix}/share'
916datadir='${datarootdir}'
795ca3e5
AK
917sysconfdir='${prefix}/etc'
918sharedstatedir='${prefix}/com'
919localstatedir='${prefix}/var'
795ca3e5
AK
920includedir='${prefix}/include'
921oldincludedir='/usr/include'
7a197a62
AK
922docdir='${datarootdir}/doc/${PACKAGE}'
923infodir='${datarootdir}/info'
924htmldir='${docdir}'
925dvidir='${docdir}'
926pdfdir='${docdir}'
927psdir='${docdir}'
928libdir='${exec_prefix}/lib'
929localedir='${datarootdir}/locale'
930mandir='${datarootdir}/man'
795ca3e5 931
795ca3e5 932ac_prev=
7a197a62 933ac_dashdash=
795ca3e5
AK
934for ac_option
935do
795ca3e5
AK
936 # If the previous option needs an argument, assign it.
937 if test -n "$ac_prev"; then
7a197a62 938 eval $ac_prev=\$ac_option
795ca3e5
AK
939 ac_prev=
940 continue
941 fi
942
7a197a62
AK
943 case $ac_option in
944 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
945 *) ac_optarg=yes ;;
946 esac
795ca3e5
AK
947
948 # Accept the important Cygnus configure options, so we can diagnose typos.
949
7a197a62
AK
950 case $ac_dashdash$ac_option in
951 --)
952 ac_dashdash=yes ;;
795ca3e5
AK
953
954 -bindir | --bindir | --bindi | --bind | --bin | --bi)
955 ac_prev=bindir ;;
956 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
ad6254c5 957 bindir=$ac_optarg ;;
795ca3e5
AK
958
959 -build | --build | --buil | --bui | --bu)
ad6254c5 960 ac_prev=build_alias ;;
795ca3e5 961 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
ad6254c5 962 build_alias=$ac_optarg ;;
795ca3e5
AK
963
964 -cache-file | --cache-file | --cache-fil | --cache-fi \
965 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
966 ac_prev=cache_file ;;
967 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
968 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
ad6254c5
AK
969 cache_file=$ac_optarg ;;
970
971 --config-cache | -C)
972 cache_file=config.cache ;;
795ca3e5 973
7a197a62 974 -datadir | --datadir | --datadi | --datad)
795ca3e5 975 ac_prev=datadir ;;
7a197a62 976 -datadir=* | --datadir=* | --datadi=* | --datad=*)
ad6254c5 977 datadir=$ac_optarg ;;
795ca3e5 978
7a197a62
AK
979 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
980 | --dataroo | --dataro | --datar)
981 ac_prev=datarootdir ;;
982 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
983 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
984 datarootdir=$ac_optarg ;;
985
795ca3e5 986 -disable-* | --disable-*)
ec6a6fbe 987 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
795ca3e5 988 # Reject names that are not valid shell variable names.
ec6a6fbe
AK
989 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
990 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
ad6254c5 991 { (exit 1); exit 1; }; }
ec6a6fbe
AK
992 ac_useropt_orig=$ac_useropt
993 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
994 case $ac_user_opts in
995 *"
996"enable_$ac_useropt"
997"*) ;;
998 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
999 ac_unrecognized_sep=', ';;
1000 esac
1001 eval enable_$ac_useropt=no ;;
7a197a62
AK
1002
1003 -docdir | --docdir | --docdi | --doc | --do)
1004 ac_prev=docdir ;;
1005 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1006 docdir=$ac_optarg ;;
1007
1008 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1009 ac_prev=dvidir ;;
1010 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1011 dvidir=$ac_optarg ;;
795ca3e5
AK
1012
1013 -enable-* | --enable-*)
ec6a6fbe 1014 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
795ca3e5 1015 # Reject names that are not valid shell variable names.
ec6a6fbe
AK
1016 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1017 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
ad6254c5 1018 { (exit 1); exit 1; }; }
ec6a6fbe
AK
1019 ac_useropt_orig=$ac_useropt
1020 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1021 case $ac_user_opts in
1022 *"
1023"enable_$ac_useropt"
1024"*) ;;
1025 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1026 ac_unrecognized_sep=', ';;
1027 esac
1028 eval enable_$ac_useropt=\$ac_optarg ;;
795ca3e5
AK
1029
1030 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1031 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1032 | --exec | --exe | --ex)
1033 ac_prev=exec_prefix ;;
1034 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1035 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1036 | --exec=* | --exe=* | --ex=*)
ad6254c5 1037 exec_prefix=$ac_optarg ;;
795ca3e5
AK
1038
1039 -gas | --gas | --ga | --g)
1040 # Obsolete; use --with-gas.
1041 with_gas=yes ;;
1042
ad6254c5
AK
1043 -help | --help | --hel | --he | -h)
1044 ac_init_help=long ;;
1045 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1046 ac_init_help=recursive ;;
1047 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1048 ac_init_help=short ;;
795ca3e5
AK
1049
1050 -host | --host | --hos | --ho)
ad6254c5 1051 ac_prev=host_alias ;;
795ca3e5 1052 -host=* | --host=* | --hos=* | --ho=*)
ad6254c5 1053 host_alias=$ac_optarg ;;
795ca3e5 1054
7a197a62
AK
1055 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1056 ac_prev=htmldir ;;
1057 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1058 | --ht=*)
1059 htmldir=$ac_optarg ;;
1060
795ca3e5
AK
1061 -includedir | --includedir | --includedi | --included | --include \
1062 | --includ | --inclu | --incl | --inc)
1063 ac_prev=includedir ;;
1064 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1065 | --includ=* | --inclu=* | --incl=* | --inc=*)
ad6254c5 1066 includedir=$ac_optarg ;;
795ca3e5
AK
1067
1068 -infodir | --infodir | --infodi | --infod | --info | --inf)
1069 ac_prev=infodir ;;
1070 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
ad6254c5 1071 infodir=$ac_optarg ;;
795ca3e5
AK
1072
1073 -libdir | --libdir | --libdi | --libd)
1074 ac_prev=libdir ;;
1075 -libdir=* | --libdir=* | --libdi=* | --libd=*)
ad6254c5 1076 libdir=$ac_optarg ;;
795ca3e5
AK
1077
1078 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1079 | --libexe | --libex | --libe)
1080 ac_prev=libexecdir ;;
1081 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1082 | --libexe=* | --libex=* | --libe=*)
ad6254c5 1083 libexecdir=$ac_optarg ;;
795ca3e5 1084
7a197a62
AK
1085 -localedir | --localedir | --localedi | --localed | --locale)
1086 ac_prev=localedir ;;
1087 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1088 localedir=$ac_optarg ;;
1089
795ca3e5 1090 -localstatedir | --localstatedir | --localstatedi | --localstated \
7a197a62 1091 | --localstate | --localstat | --localsta | --localst | --locals)
795ca3e5
AK
1092 ac_prev=localstatedir ;;
1093 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
7a197a62 1094 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
ad6254c5 1095 localstatedir=$ac_optarg ;;
795ca3e5
AK
1096
1097 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1098 ac_prev=mandir ;;
1099 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
ad6254c5 1100 mandir=$ac_optarg ;;
795ca3e5
AK
1101
1102 -nfp | --nfp | --nf)
1103 # Obsolete; use --without-fp.
1104 with_fp=no ;;
1105
1106 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
ad6254c5 1107 | --no-cr | --no-c | -n)
795ca3e5
AK
1108 no_create=yes ;;
1109
1110 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1111 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1112 no_recursion=yes ;;
1113
1114 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1115 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1116 | --oldin | --oldi | --old | --ol | --o)
1117 ac_prev=oldincludedir ;;
1118 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1119 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1120 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
ad6254c5 1121 oldincludedir=$ac_optarg ;;
795ca3e5
AK
1122
1123 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1124 ac_prev=prefix ;;
1125 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
ad6254c5 1126 prefix=$ac_optarg ;;
795ca3e5
AK
1127
1128 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1129 | --program-pre | --program-pr | --program-p)
1130 ac_prev=program_prefix ;;
1131 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1132 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
ad6254c5 1133 program_prefix=$ac_optarg ;;
795ca3e5
AK
1134
1135 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1136 | --program-suf | --program-su | --program-s)
1137 ac_prev=program_suffix ;;
1138 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1139 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
ad6254c5 1140 program_suffix=$ac_optarg ;;
795ca3e5
AK
1141
1142 -program-transform-name | --program-transform-name \
1143 | --program-transform-nam | --program-transform-na \
1144 | --program-transform-n | --program-transform- \
1145 | --program-transform | --program-transfor \
1146 | --program-transfo | --program-transf \
1147 | --program-trans | --program-tran \
1148 | --progr-tra | --program-tr | --program-t)
1149 ac_prev=program_transform_name ;;
1150 -program-transform-name=* | --program-transform-name=* \
1151 | --program-transform-nam=* | --program-transform-na=* \
1152 | --program-transform-n=* | --program-transform-=* \
1153 | --program-transform=* | --program-transfor=* \
1154 | --program-transfo=* | --program-transf=* \
1155 | --program-trans=* | --program-tran=* \
1156 | --progr-tra=* | --program-tr=* | --program-t=*)
ad6254c5 1157 program_transform_name=$ac_optarg ;;
795ca3e5 1158
7a197a62
AK
1159 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1160 ac_prev=pdfdir ;;
1161 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1162 pdfdir=$ac_optarg ;;
1163
1164 -psdir | --psdir | --psdi | --psd | --ps)
1165 ac_prev=psdir ;;
1166 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1167 psdir=$ac_optarg ;;
1168
795ca3e5
AK
1169 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1170 | -silent | --silent | --silen | --sile | --sil)
1171 silent=yes ;;
1172
1173 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1174 ac_prev=sbindir ;;
1175 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1176 | --sbi=* | --sb=*)
ad6254c5 1177 sbindir=$ac_optarg ;;
795ca3e5
AK
1178
1179 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1180 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1181 | --sharedst | --shareds | --shared | --share | --shar \
1182 | --sha | --sh)
1183 ac_prev=sharedstatedir ;;
1184 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1185 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1186 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1187 | --sha=* | --sh=*)
ad6254c5 1188 sharedstatedir=$ac_optarg ;;
795ca3e5
AK
1189
1190 -site | --site | --sit)
1191 ac_prev=site ;;
1192 -site=* | --site=* | --sit=*)
ad6254c5 1193 site=$ac_optarg ;;
795ca3e5
AK
1194
1195 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1196 ac_prev=srcdir ;;
1197 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
ad6254c5 1198 srcdir=$ac_optarg ;;
795ca3e5
AK
1199
1200 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1201 | --syscon | --sysco | --sysc | --sys | --sy)
1202 ac_prev=sysconfdir ;;
1203 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1204 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
ad6254c5 1205 sysconfdir=$ac_optarg ;;
795ca3e5
AK
1206
1207 -target | --target | --targe | --targ | --tar | --ta | --t)
ad6254c5 1208 ac_prev=target_alias ;;
795ca3e5 1209 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
ad6254c5 1210 target_alias=$ac_optarg ;;
795ca3e5
AK
1211
1212 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1213 verbose=yes ;;
1214
ad6254c5
AK
1215 -version | --version | --versio | --versi | --vers | -V)
1216 ac_init_version=: ;;
795ca3e5
AK
1217
1218 -with-* | --with-*)
ec6a6fbe 1219 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
795ca3e5 1220 # Reject names that are not valid shell variable names.
ec6a6fbe
AK
1221 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1222 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
ad6254c5 1223 { (exit 1); exit 1; }; }
ec6a6fbe
AK
1224 ac_useropt_orig=$ac_useropt
1225 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1226 case $ac_user_opts in
1227 *"
1228"with_$ac_useropt"
1229"*) ;;
1230 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1231 ac_unrecognized_sep=', ';;
1232 esac
1233 eval with_$ac_useropt=\$ac_optarg ;;
795ca3e5
AK
1234
1235 -without-* | --without-*)
ec6a6fbe 1236 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
795ca3e5 1237 # Reject names that are not valid shell variable names.
ec6a6fbe
AK
1238 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1239 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
ad6254c5 1240 { (exit 1); exit 1; }; }
ec6a6fbe
AK
1241 ac_useropt_orig=$ac_useropt
1242 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1243 case $ac_user_opts in
1244 *"
1245"with_$ac_useropt"
1246"*) ;;
1247 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1248 ac_unrecognized_sep=', ';;
1249 esac
1250 eval with_$ac_useropt=no ;;
795ca3e5
AK
1251
1252 --x)
1253 # Obsolete; use --with-x.
1254 with_x=yes ;;
1255
1256 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1257 | --x-incl | --x-inc | --x-in | --x-i)
1258 ac_prev=x_includes ;;
1259 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1260 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
ad6254c5 1261 x_includes=$ac_optarg ;;
795ca3e5
AK
1262
1263 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1264 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1265 ac_prev=x_libraries ;;
1266 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1267 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
ad6254c5 1268 x_libraries=$ac_optarg ;;
795ca3e5 1269
ec6a6fbe 1270 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
ad6254c5
AK
1271Try \`$0 --help' for more information." >&2
1272 { (exit 1); exit 1; }; }
795ca3e5
AK
1273 ;;
1274
ad6254c5
AK
1275 *=*)
1276 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1277 # Reject names that are not valid shell variable names.
1278 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
ec6a6fbe 1279 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
ad6254c5 1280 { (exit 1); exit 1; }; }
7a197a62 1281 eval $ac_envvar=\$ac_optarg
ad6254c5
AK
1282 export $ac_envvar ;;
1283
795ca3e5 1284 *)
ad6254c5 1285 # FIXME: should be removed in autoconf 3.0.
ec6a6fbe 1286 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
ad6254c5 1287 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
ec6a6fbe 1288 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
ad6254c5 1289 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
795ca3e5
AK
1290 ;;
1291
1292 esac
1293done
1294
1295if test -n "$ac_prev"; then
ad6254c5 1296 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
ec6a6fbe 1297 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
ad6254c5 1298 { (exit 1); exit 1; }; }
795ca3e5 1299fi
795ca3e5 1300
ec6a6fbe
AK
1301if test -n "$ac_unrecognized_opts"; then
1302 case $enable_option_checking in
1303 no) ;;
1304 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1305 { (exit 1); exit 1; }; } ;;
1306 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1307 esac
1308fi
1309
1310# Check all directory arguments for consistency.
7a197a62
AK
1311for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1312 datadir sysconfdir sharedstatedir localstatedir includedir \
1313 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1314 libdir localedir mandir
795ca3e5 1315do
7a197a62 1316 eval ac_val=\$$ac_var
ec6a6fbe
AK
1317 # Remove trailing slashes.
1318 case $ac_val in
1319 */ )
1320 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1321 eval $ac_var=\$ac_val;;
1322 esac
1323 # Be sure to have absolute directory names.
ad6254c5 1324 case $ac_val in
7a197a62
AK
1325 [\\/$]* | ?:[\\/]* ) continue;;
1326 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
795ca3e5 1327 esac
ec6a6fbe 1328 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
7a197a62 1329 { (exit 1); exit 1; }; }
795ca3e5
AK
1330done
1331
ad6254c5
AK
1332# There might be people who depend on the old broken behavior: `$host'
1333# used to hold the argument of --host etc.
1334# FIXME: To remove some day.
1335build=$build_alias
1336host=$host_alias
1337target=$target_alias
1338
1339# FIXME: To remove some day.
1340if test "x$host_alias" != x; then
1341 if test "x$build_alias" = x; then
1342 cross_compiling=maybe
ec6a6fbe 1343 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
ad6254c5
AK
1344 If a cross compiler is detected then cross compile mode will be used." >&2
1345 elif test "x$build_alias" != "x$host_alias"; then
1346 cross_compiling=yes
1347 fi
1348fi
8106cdd5 1349
ad6254c5
AK
1350ac_tool_prefix=
1351test -n "$host_alias" && ac_tool_prefix=$host_alias-
1352
1353test "$silent" = yes && exec 6>/dev/null
795ca3e5 1354
795ca3e5 1355
7a197a62
AK
1356ac_pwd=`pwd` && test -n "$ac_pwd" &&
1357ac_ls_di=`ls -di .` &&
1358ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
ec6a6fbe 1359 { $as_echo "$as_me: error: working directory cannot be determined" >&2
7a197a62
AK
1360 { (exit 1); exit 1; }; }
1361test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
ec6a6fbe 1362 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
7a197a62
AK
1363 { (exit 1); exit 1; }; }
1364
1365
795ca3e5
AK
1366# Find the source files, if location was not specified.
1367if test -z "$srcdir"; then
1368 ac_srcdir_defaulted=yes
7a197a62 1369 # Try the directory containing this script, then the parent directory.
ec6a6fbe
AK
1370 ac_confdir=`$as_dirname -- "$as_myself" ||
1371$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1372 X"$as_myself" : 'X\(//\)[^/]' \| \
1373 X"$as_myself" : 'X\(//\)$' \| \
1374 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1375$as_echo X"$as_myself" |
7a197a62
AK
1376 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1377 s//\1/
1378 q
1379 }
1380 /^X\(\/\/\)[^/].*/{
1381 s//\1/
1382 q
1383 }
1384 /^X\(\/\/\)$/{
1385 s//\1/
1386 q
1387 }
1388 /^X\(\/\).*/{
1389 s//\1/
1390 q
1391 }
1392 s/.*/./; q'`
795ca3e5 1393 srcdir=$ac_confdir
7a197a62 1394 if test ! -r "$srcdir/$ac_unique_file"; then
795ca3e5
AK
1395 srcdir=..
1396 fi
1397else
1398 ac_srcdir_defaulted=no
1399fi
7a197a62
AK
1400if test ! -r "$srcdir/$ac_unique_file"; then
1401 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
ec6a6fbe 1402 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
ad6254c5 1403 { (exit 1); exit 1; }; }
795ca3e5 1404fi
7a197a62
AK
1405ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1406ac_abs_confdir=`(
ec6a6fbe 1407 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
ad6254c5 1408 { (exit 1); exit 1; }; }
7a197a62
AK
1409 pwd)`
1410# When building in place, set srcdir=.
1411if test "$ac_abs_confdir" = "$ac_pwd"; then
1412 srcdir=.
1413fi
1414# Remove unnecessary trailing slashes from srcdir.
1415# Double slashes in file names in object file debugging info
1416# mess up M-x gdb in Emacs.
1417case $srcdir in
1418*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1419esac
1420for ac_var in $ac_precious_vars; do
1421 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1422 eval ac_env_${ac_var}_value=\$${ac_var}
1423 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1424 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1425done
ad6254c5
AK
1426
1427#
1428# Report the --help message.
1429#
1430if test "$ac_init_help" = "long"; then
1431 # Omit some internal or obsolete options to make the list less imposing.
1432 # This message is too long to be a string in the A/UX 3.1 sh.
1433 cat <<_ACEOF
1434\`configure' configures this package to adapt to many kinds of systems.
1435
1436Usage: $0 [OPTION]... [VAR=VALUE]...
1437
1438To assign environment variables (e.g., CC, CFLAGS...), specify them as
1439VAR=VALUE. See below for descriptions of some of the useful variables.
1440
1441Defaults for the options are specified in brackets.
1442
1443Configuration:
1444 -h, --help display this help and exit
1445 --help=short display options specific to this package
1446 --help=recursive display the short help of all the included packages
1447 -V, --version display version information and exit
1448 -q, --quiet, --silent do not print \`checking...' messages
1449 --cache-file=FILE cache test results in FILE [disabled]
1450 -C, --config-cache alias for \`--cache-file=config.cache'
1451 -n, --no-create do not create output files
1452 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1453
ad6254c5
AK
1454Installation directories:
1455 --prefix=PREFIX install architecture-independent files in PREFIX
ec6a6fbe 1456 [$ac_default_prefix]
ad6254c5 1457 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
ec6a6fbe 1458 [PREFIX]
ad6254c5
AK
1459
1460By default, \`make install' will install all the files in
1461\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1462an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1463for instance \`--prefix=\$HOME'.
1464
1465For better control, use the options below.
1466
1467Fine tuning of the installation directories:
ec6a6fbe
AK
1468 --bindir=DIR user executables [EPREFIX/bin]
1469 --sbindir=DIR system admin executables [EPREFIX/sbin]
1470 --libexecdir=DIR program executables [EPREFIX/libexec]
1471 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1472 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1473 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1474 --libdir=DIR object code libraries [EPREFIX/lib]
1475 --includedir=DIR C header files [PREFIX/include]
1476 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1477 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1478 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1479 --infodir=DIR info documentation [DATAROOTDIR/info]
1480 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1481 --mandir=DIR man documentation [DATAROOTDIR/man]
1482 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1483 --htmldir=DIR html documentation [DOCDIR]
1484 --dvidir=DIR dvi documentation [DOCDIR]
1485 --pdfdir=DIR pdf documentation [DOCDIR]
1486 --psdir=DIR ps documentation [DOCDIR]
ad6254c5
AK
1487_ACEOF
1488
1489 cat <<\_ACEOF
1490
1491System types:
1492 --build=BUILD configure for building on BUILD [guessed]
1493 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1494 --target=TARGET configure for building compilers for TARGET [HOST]
1495_ACEOF
1496fi
1497
1498if test -n "$ac_init_help"; then
1499
1500 cat <<\_ACEOF
1501
1502Optional Features:
ec6a6fbe 1503 --disable-option-checking ignore unrecognized --enable/--with options
ad6254c5
AK
1504 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1505 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
9c961554
MB
1506 --enable-static_link Use this to link the tools to their libraries
1507 statically. Default is dynamic linking
ad6254c5
AK
1508 --enable-lvm1_fallback Use this to fall back and use LVM1 binaries if
1509 device-mapper is missing from the kernel
1b523347 1510 --disable-readline Disable readline support
89044bc0 1511 --enable-realtime Enable realtime clock support
66fd4529 1512 --enable-cmirrord Enable the cluster mirror log daemon
ad6254c5 1513 --enable-debug Enable debugging
5556819a 1514 --enable-profiling Gather gcov profiling data
93bd259b 1515 --disable-devmapper Disable LVM2 device-mapper interaction
a5f46f6a
AK
1516 --enable-udev_sync Enable synchronisation with udev processing
1517 --enable-udev_rules Install rule files needed for udev synchronisation
93bd259b 1518 --enable-compat Enable support for old device-mapper versions
95eaa683
AK
1519 --enable-units-compat Enable output compatibility with old versions that
1520 that don't use KiB-style unit suffixes
93bd259b 1521 --disable-driver Disable calls to device-mapper in the kernel
ad6254c5 1522 --disable-o_direct Disable O_DIRECT
572fefeb 1523 --enable-applib Build application library
ad6254c5 1524 --enable-cmdlib Build shared command library
93bd259b 1525 --enable-pkgconfig Install pkgconfig support
ad6254c5 1526 --enable-fsadm Enable fsadm
15d91f5a 1527 --enable-dmeventd Enable the device-mapper event daemon
d0191583 1528 --disable-selinux Disable selinux support
ad6254c5
AK
1529 --enable-nls Enable Native Language Support
1530
1531Optional Packages:
1532 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1533 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
39dabc84
FDN
1534 --with-user=USER Set the owner of installed files [USER=]
1535 --with-group=GROUP Set the group owner of installed files [GROUP=]
24bbc4d7
AK
1536 --with-device-uid=UID Set the owner used for new device nodes [UID=0]
1537 --with-device-gid=UID Set the group used for new device nodes [GID=0]
93bd259b 1538 --with-device-mode=MODE Set the mode used for new device nodes [MODE=0600]
ad6254c5
AK
1539 --with-lvm1=TYPE LVM1 metadata support: internal/shared/none
1540 TYPE=internal
1541 --with-pool=TYPE GFS pool read-only support: internal/shared/none
1542 TYPE=internal
1543 --with-cluster=TYPE Cluster LVM locking support: internal/shared/none
1544 TYPE=internal
1545 --with-snapshots=TYPE Snapshot support: internal/shared/none
1546 TYPE=internal
1547 --with-mirrors=TYPE Mirror support: internal/shared/none
1548 TYPE=internal
a946372e 1549 --with-clvmd=TYPE Build cluster LVM Daemon.
8c222979 1550 The following cluster manager combinations are valid:
a946372e
AK
1551 * cman,gulm (RHEL4 or equivalent)
1552 * cman (RHEL5 or equivalent)
1553 * cman,corosync,openais (or selection of them)
1554 * all (autodetect)
1555 * none (disable build)
a266258f 1556 TYPE=none
66fd4529 1557 --with-cmirrord-pidfile=PATH cmirrord pidfile [/var/run/cmirrord.pid]
d0191583
JM
1558 --with-optimisation=OPT C optimisation flag [OPT=-O2]
1559 --with-localedir=DIR Translation files in DIR [PREFIX/share/locale]
a5f46f6a
AK
1560 --with-confdir=DIR Configuration files in DIR [/etc]
1561 --with-staticdir=DIR Static binary in DIR [EPREFIX/sbin]
68f2de6d
AK
1562 --with-usrlibdir=DIR
1563 --with-usrsbindir=DIR
a5f46f6a 1564 --with-udev-prefix=UPREFIX Install udev rule files in UPREFIX [EPREFIX]
78ce7acc 1565 --with-udevdir=DIR udev rules in DIR [UPREFIX/lib/udev/rules.d]
93bd259b 1566 --with-dmeventd-pidfile=PATH dmeventd pidfile [/var/run/dmeventd.pid]
a5f46f6a 1567 --with-dmeventd-path=PATH dmeventd path [EPREFIX/sbin/dmeventd]
93bd259b 1568 --with-interface=IFACE Choose kernel interface (ioctl) [ioctl]
ad6254c5
AK
1569
1570Some influential environment variables:
1571 CC C compiler command
1572 CFLAGS C compiler flags
1573 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1574 nonstandard directory <lib dir>
25fbec5b 1575 LIBS libraries to pass to the linker, e.g. -l<library>
7a197a62
AK
1576 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1577 you have headers in a nonstandard directory <include dir>
ad6254c5 1578 CPP C preprocessor
e2997b73 1579 PKG_CONFIG path to pkg-config utility
a946372e
AK
1580 PKGCONFIGINIT_CFLAGS
1581 C compiler flags for PKGCONFIGINIT, overriding pkg-config
1582 PKGCONFIGINIT_LIBS
1583 linker flags for PKGCONFIGINIT, overriding pkg-config
1584 CCS_CFLAGS C compiler flags for CCS, overriding pkg-config
1585 CCS_LIBS linker flags for CCS, overriding pkg-config
1586 GULM_CFLAGS C compiler flags for GULM, overriding pkg-config
1587 GULM_LIBS linker flags for GULM, overriding pkg-config
1588 CMAN_CFLAGS C compiler flags for CMAN, overriding pkg-config
1589 CMAN_LIBS linker flags for CMAN, overriding pkg-config
1590 COROSYNC_CFLAGS
1591 C compiler flags for COROSYNC, overriding pkg-config
1592 COROSYNC_LIBS
1593 linker flags for COROSYNC, overriding pkg-config
e2997b73
AK
1594 QUORUM_CFLAGS
1595 C compiler flags for QUORUM, overriding pkg-config
1596 QUORUM_LIBS linker flags for QUORUM, overriding pkg-config
a946372e
AK
1597 SALCK_CFLAGS
1598 C compiler flags for SALCK, overriding pkg-config
1599 SALCK_LIBS linker flags for SALCK, overriding pkg-config
e2997b73
AK
1600 CONFDB_CFLAGS
1601 C compiler flags for CONFDB, overriding pkg-config
1602 CONFDB_LIBS linker flags for CONFDB, overriding pkg-config
1603 CPG_CFLAGS C compiler flags for CPG, overriding pkg-config
1604 CPG_LIBS linker flags for CPG, overriding pkg-config
a946372e
AK
1605 DLM_CFLAGS C compiler flags for DLM, overriding pkg-config
1606 DLM_LIBS linker flags for DLM, overriding pkg-config
90c80887
AK
1607 SACKPT_CFLAGS
1608 C compiler flags for SACKPT, overriding pkg-config
1609 SACKPT_LIBS linker flags for SACKPT, overriding pkg-config
ad6254c5
AK
1610
1611Use these variables to override the choices made by `configure' or to help
1612it to find libraries and programs with nonstandard names/locations.
1613
1614_ACEOF
7a197a62 1615ac_status=$?
ad6254c5
AK
1616fi
1617
1618if test "$ac_init_help" = "recursive"; then
1619 # If there are subdirs, report their specific --help.
ad6254c5 1620 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
ec6a6fbe
AK
1621 test -d "$ac_dir" ||
1622 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1623 continue
ad6254c5
AK
1624 ac_builddir=.
1625
7a197a62
AK
1626case "$ac_dir" in
1627.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1628*)
ec6a6fbe 1629 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7a197a62 1630 # A ".." for each directory in $ac_dir_suffix.
ec6a6fbe 1631 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7a197a62
AK
1632 case $ac_top_builddir_sub in
1633 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1634 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1635 esac ;;
1636esac
1637ac_abs_top_builddir=$ac_pwd
1638ac_abs_builddir=$ac_pwd$ac_dir_suffix
1639# for backward compatibility:
1640ac_top_builddir=$ac_top_build_prefix
ad6254c5
AK
1641
1642case $srcdir in
7a197a62 1643 .) # We are building in place.
ad6254c5 1644 ac_srcdir=.
7a197a62
AK
1645 ac_top_srcdir=$ac_top_builddir_sub
1646 ac_abs_top_srcdir=$ac_pwd ;;
1647 [\\/]* | ?:[\\/]* ) # Absolute name.
ad6254c5 1648 ac_srcdir=$srcdir$ac_dir_suffix;
7a197a62
AK
1649 ac_top_srcdir=$srcdir
1650 ac_abs_top_srcdir=$srcdir ;;
1651 *) # Relative name.
1652 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1653 ac_top_srcdir=$ac_top_build_prefix$srcdir
1654 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8a2fc586 1655esac
7a197a62
AK
1656ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1657
1658 cd "$ac_dir" || { ac_status=$?; continue; }
1659 # Check for guested configure.
1660 if test -f "$ac_srcdir/configure.gnu"; then
1661 echo &&
1662 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1663 elif test -f "$ac_srcdir/configure"; then
1664 echo &&
1665 $SHELL "$ac_srcdir/configure" --help=recursive
ad6254c5 1666 else
ec6a6fbe 1667 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
7a197a62
AK
1668 fi || ac_status=$?
1669 cd "$ac_pwd" || { ac_status=$?; break; }
ad6254c5
AK
1670 done
1671fi
1672
7a197a62 1673test -n "$ac_init_help" && exit $ac_status
ad6254c5
AK
1674if $ac_init_version; then
1675 cat <<\_ACEOF
7a197a62 1676configure
ec6a6fbe 1677generated by GNU Autoconf 2.63
ad6254c5 1678
7a197a62 1679Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
ec6a6fbe 16802002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
ad6254c5
AK
1681This configure script is free software; the Free Software Foundation
1682gives unlimited permission to copy, distribute and modify it.
1683_ACEOF
7a197a62 1684 exit
ad6254c5 1685fi
7a197a62 1686cat >config.log <<_ACEOF
ad6254c5
AK
1687This file contains any messages produced by compilers while
1688running configure, to aid debugging if configure makes a mistake.
1689
1690It was created by $as_me, which was
ec6a6fbe 1691generated by GNU Autoconf 2.63. Invocation command line was
ad6254c5
AK
1692
1693 $ $0 $@
1694
1695_ACEOF
7a197a62 1696exec 5>>config.log
ad6254c5
AK
1697{
1698cat <<_ASUNAME
1699## --------- ##
1700## Platform. ##
1701## --------- ##
1702
1703hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1704uname -m = `(uname -m) 2>/dev/null || echo unknown`
1705uname -r = `(uname -r) 2>/dev/null || echo unknown`
1706uname -s = `(uname -s) 2>/dev/null || echo unknown`
1707uname -v = `(uname -v) 2>/dev/null || echo unknown`
1708
1709/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1710/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1711
1712/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1713/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1714/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
7a197a62 1715/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
ad6254c5
AK
1716/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1717/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1718/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1719
1720_ASUNAME
1721
1722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1723for as_dir in $PATH
1724do
1725 IFS=$as_save_IFS
1726 test -z "$as_dir" && as_dir=.
ec6a6fbe 1727 $as_echo "PATH: $as_dir"
ad6254c5 1728done
7a197a62 1729IFS=$as_save_IFS
ad6254c5
AK
1730
1731} >&5
1732
1733cat >&5 <<_ACEOF
1734
1735
1736## ----------- ##
1737## Core tests. ##
1738## ----------- ##
1739
1740_ACEOF
1741
1742
1743# Keep a trace of the command line.
1744# Strip out --no-create and --no-recursion so they do not pile up.
1745# Strip out --silent because we don't want to record it for future runs.
1746# Also quote any args containing shell meta-characters.
1747# Make two passes to allow for proper duplicate-argument suppression.
1748ac_configure_args=
1749ac_configure_args0=
1750ac_configure_args1=
ad6254c5
AK
1751ac_must_keep_next=false
1752for ac_pass in 1 2
1753do
1754 for ac_arg
1755 do
1756 case $ac_arg in
1757 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1758 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1759 | -silent | --silent | --silen | --sile | --sil)
1760 continue ;;
7a197a62 1761 *\'*)
ec6a6fbe 1762 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
ad6254c5
AK
1763 esac
1764 case $ac_pass in
1765 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1766 2)
1767 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1768 if test $ac_must_keep_next = true; then
8a2fc586 1769 ac_must_keep_next=false # Got value, back to normal.
ad6254c5 1770 else
8a2fc586
AK
1771 case $ac_arg in
1772 *=* | --config-cache | -C | -disable-* | --disable-* \
1773 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1774 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1775 | -with-* | --with-* | -without-* | --without-* | --x)
1776 case "$ac_configure_args0 " in
1777 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1778 esac
1779 ;;
1780 -* ) ac_must_keep_next=true ;;
1781 esac
ad6254c5 1782 fi
7a197a62 1783 ac_configure_args="$ac_configure_args '$ac_arg'"
ad6254c5
AK
1784 ;;
1785 esac
1786 done
1787done
1788$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1789$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1790
1791# When interrupted or exit'd, cleanup temporary files, and complete
1792# config.log. We remove comments because anyway the quotes in there
1793# would cause problems or look ugly.
7a197a62
AK
1794# WARNING: Use '\'' to represent an apostrophe within the trap.
1795# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
ad6254c5
AK
1796trap 'exit_status=$?
1797 # Save into config.log some information that might help in debugging.
1798 {
1799 echo
1800
1801 cat <<\_ASBOX
1802## ---------------- ##
1803## Cache variables. ##
1804## ---------------- ##
1805_ASBOX
1806 echo
1807 # The following way of writing the cache mishandles newlines in values,
7a197a62
AK
1808(
1809 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1810 eval ac_val=\$$ac_var
1811 case $ac_val in #(
1812 *${as_nl}*)
1813 case $ac_var in #(
ec6a6fbe
AK
1814 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1815$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7a197a62
AK
1816 esac
1817 case $ac_var in #(
1818 _ | IFS | as_nl) ;; #(
ec6a6fbe 1819 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7a197a62
AK
1820 *) $as_unset $ac_var ;;
1821 esac ;;
1822 esac
1823 done
ad6254c5 1824 (set) 2>&1 |
7a197a62
AK
1825 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1826 *${as_nl}ac_space=\ *)
ad6254c5 1827 sed -n \
7a197a62
AK
1828 "s/'\''/'\''\\\\'\'''\''/g;
1829 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1830 ;; #(
ad6254c5 1831 *)
7a197a62 1832 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
ad6254c5 1833 ;;
7a197a62
AK
1834 esac |
1835 sort
1836)
ad6254c5
AK
1837 echo
1838
1839 cat <<\_ASBOX
1840## ----------------- ##
1841## Output variables. ##
1842## ----------------- ##
1843_ASBOX
1844 echo
1845 for ac_var in $ac_subst_vars
1846 do
7a197a62
AK
1847 eval ac_val=\$$ac_var
1848 case $ac_val in
ec6a6fbe 1849 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
7a197a62 1850 esac
ec6a6fbe 1851 $as_echo "$ac_var='\''$ac_val'\''"
ad6254c5
AK
1852 done | sort
1853 echo
1854
1855 if test -n "$ac_subst_files"; then
1856 cat <<\_ASBOX
7a197a62
AK
1857## ------------------- ##
1858## File substitutions. ##
1859## ------------------- ##
ad6254c5
AK
1860_ASBOX
1861 echo
1862 for ac_var in $ac_subst_files
1863 do
7a197a62
AK
1864 eval ac_val=\$$ac_var
1865 case $ac_val in
ec6a6fbe 1866 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
7a197a62 1867 esac
ec6a6fbe 1868 $as_echo "$ac_var='\''$ac_val'\''"
ad6254c5
AK
1869 done | sort
1870 echo
1871 fi
1872
1873 if test -s confdefs.h; then
1874 cat <<\_ASBOX
1875## ----------- ##
1876## confdefs.h. ##
1877## ----------- ##
1878_ASBOX
1879 echo
7a197a62 1880 cat confdefs.h
ad6254c5
AK
1881 echo
1882 fi
1883 test "$ac_signal" != 0 &&
ec6a6fbe
AK
1884 $as_echo "$as_me: caught signal $ac_signal"
1885 $as_echo "$as_me: exit $exit_status"
ad6254c5 1886 } >&5
7a197a62
AK
1887 rm -f core *.core core.conftest.* &&
1888 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
ad6254c5 1889 exit $exit_status
7a197a62 1890' 0
ad6254c5
AK
1891for ac_signal in 1 2 13 15; do
1892 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1893done
1894ac_signal=0
1895
1896# confdefs.h avoids OS command line length limits that DEFS can exceed.
7a197a62 1897rm -f -r conftest* confdefs.h
ad6254c5
AK
1898
1899# Predefined preprocessor variables.
1900
1901cat >>confdefs.h <<_ACEOF
1902#define PACKAGE_NAME "$PACKAGE_NAME"
1903_ACEOF
1904
1905
1906cat >>confdefs.h <<_ACEOF
1907#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1908_ACEOF
1909
1910
1911cat >>confdefs.h <<_ACEOF
1912#define PACKAGE_VERSION "$PACKAGE_VERSION"
1913_ACEOF
8106cdd5 1914
ad6254c5
AK
1915
1916cat >>confdefs.h <<_ACEOF
1917#define PACKAGE_STRING "$PACKAGE_STRING"
1918_ACEOF
1919
1920
1921cat >>confdefs.h <<_ACEOF
1922#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1923_ACEOF
1924
1925
1926# Let the site file select an alternate cache file if it wants to.
ec6a6fbe
AK
1927# Prefer an explicitly selected file to automatically selected ones.
1928ac_site_file1=NONE
1929ac_site_file2=NONE
7a197a62 1930if test -n "$CONFIG_SITE"; then
ec6a6fbe 1931 ac_site_file1=$CONFIG_SITE
7a197a62 1932elif test "x$prefix" != xNONE; then
ec6a6fbe
AK
1933 ac_site_file1=$prefix/share/config.site
1934 ac_site_file2=$prefix/etc/config.site
7a197a62 1935else
ec6a6fbe
AK
1936 ac_site_file1=$ac_default_prefix/share/config.site
1937 ac_site_file2=$ac_default_prefix/etc/config.site
795ca3e5 1938fi
ec6a6fbe 1939for ac_site_file in "$ac_site_file1" "$ac_site_file2"
7a197a62 1940do
ec6a6fbe 1941 test "x$ac_site_file" = xNONE && continue
795ca3e5 1942 if test -r "$ac_site_file"; then
ec6a6fbe
AK
1943 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1944$as_echo "$as_me: loading site script $ac_site_file" >&6;}
ad6254c5 1945 sed 's/^/| /' "$ac_site_file" >&5
795ca3e5
AK
1946 . "$ac_site_file"
1947 fi
1948done
1949
1950if test -r "$cache_file"; then
ad6254c5
AK
1951 # Some versions of bash will fail to source /dev/null (special
1952 # files actually), so we avoid doing that.
1953 if test -f "$cache_file"; then
ec6a6fbe
AK
1954 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1955$as_echo "$as_me: loading cache $cache_file" >&6;}
ad6254c5 1956 case $cache_file in
7a197a62
AK
1957 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1958 *) . "./$cache_file";;
ad6254c5
AK
1959 esac
1960 fi
795ca3e5 1961else
ec6a6fbe
AK
1962 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1963$as_echo "$as_me: creating cache $cache_file" >&6;}
ad6254c5
AK
1964 >$cache_file
1965fi
1966
1967# Check that the precious variables saved in the cache have kept the same
1968# value.
1969ac_cache_corrupted=false
7a197a62 1970for ac_var in $ac_precious_vars; do
ad6254c5
AK
1971 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1972 eval ac_new_set=\$ac_env_${ac_var}_set
7a197a62
AK
1973 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1974 eval ac_new_val=\$ac_env_${ac_var}_value
ad6254c5
AK
1975 case $ac_old_set,$ac_new_set in
1976 set,)
ec6a6fbe
AK
1977 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1978$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
ad6254c5
AK
1979 ac_cache_corrupted=: ;;
1980 ,set)
ec6a6fbe
AK
1981 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1982$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
ad6254c5
AK
1983 ac_cache_corrupted=: ;;
1984 ,);;
1985 *)
1986 if test "x$ac_old_val" != "x$ac_new_val"; then
ec6a6fbe
AK
1987 # differences in whitespace do not lead to failure.
1988 ac_old_val_w=`echo x $ac_old_val`
1989 ac_new_val_w=`echo x $ac_new_val`
1990 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1991 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1992$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1993 ac_cache_corrupted=:
1994 else
1995 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1996$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1997 eval $ac_var=\$ac_old_val
1998 fi
1999 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2000$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2001 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2002$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
ad6254c5
AK
2003 fi;;
2004 esac
2005 # Pass precious variables to config.status.
2006 if test "$ac_new_set" = set; then
2007 case $ac_new_val in
ec6a6fbe 2008 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
ad6254c5
AK
2009 *) ac_arg=$ac_var=$ac_new_val ;;
2010 esac
2011 case " $ac_configure_args " in
2012 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2013 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2014 esac
2015 fi
2016done
2017if $ac_cache_corrupted; then
ec6a6fbe
AK
2018 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2019$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2020 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2021$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2022 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2023$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
ad6254c5 2024 { (exit 1); exit 1; }; }
795ca3e5
AK
2025fi
2026
ad6254c5
AK
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
7a197a62
AK
2043ac_ext=c
2044ac_cpp='$CPP $CPPFLAGS'
2045ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2046ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2047ac_compiler_gnu=$ac_cv_c_compiler_gnu
ad6254c5 2048
795ca3e5
AK
2049
2050
7a197a62 2051ac_config_headers="$ac_config_headers lib/misc/configure.h"
72b2cb61
AK
2052
2053
80992638 2054################################################################################
795ca3e5 2055ac_aux_dir=
7a197a62
AK
2056for ac_dir in autoconf "$srcdir"/autoconf; do
2057 if test -f "$ac_dir/install-sh"; then
795ca3e5
AK
2058 ac_aux_dir=$ac_dir
2059 ac_install_sh="$ac_aux_dir/install-sh -c"
2060 break
7a197a62 2061 elif 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/shtool"; then
ad6254c5
AK
2066 ac_aux_dir=$ac_dir
2067 ac_install_sh="$ac_aux_dir/shtool install -c"
2068 break
795ca3e5
AK
2069 fi
2070done
2071if test -z "$ac_aux_dir"; then
ec6a6fbe
AK
2072 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2073$as_echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
ad6254c5 2074 { (exit 1); exit 1; }; }
795ca3e5 2075fi
7a197a62
AK
2076
2077# These three variables are undocumented and unsupported,
2078# and are intended to be withdrawn in a future Autoconf release.
2079# They can cause serious problems if a builder's source tree is in a directory
2080# whose full name contains unusual characters.
2081ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2082ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2083ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2084
8ce0cbda
AK
2085
2086
ad6254c5 2087################################################################################
8ce0cbda 2088# Make sure we can run config.sub.
7a197a62 2089$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
ec6a6fbe
AK
2090 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2091$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
ad6254c5
AK
2092 { (exit 1); exit 1; }; }
2093
ec6a6fbe
AK
2094{ $as_echo "$as_me:$LINENO: checking build system type" >&5
2095$as_echo_n "checking build system type... " >&6; }
ad6254c5 2096if test "${ac_cv_build+set}" = set; then
ec6a6fbe 2097 $as_echo_n "(cached) " >&6
ad6254c5 2098else
7a197a62
AK
2099 ac_build_alias=$build_alias
2100test "x$ac_build_alias" = x &&
2101 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2102test "x$ac_build_alias" = x &&
ec6a6fbe
AK
2103 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2104$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
ad6254c5 2105 { (exit 1); exit 1; }; }
7a197a62 2106ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
ec6a6fbe
AK
2107 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2108$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
ad6254c5
AK
2109 { (exit 1); exit 1; }; }
2110
2111fi
ec6a6fbe
AK
2112{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2113$as_echo "$ac_cv_build" >&6; }
7a197a62
AK
2114case $ac_cv_build in
2115*-*-*) ;;
ec6a6fbe
AK
2116*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2117$as_echo "$as_me: error: invalid value of canonical build" >&2;}
7a197a62
AK
2118 { (exit 1); exit 1; }; };;
2119esac
ad6254c5 2120build=$ac_cv_build
7a197a62
AK
2121ac_save_IFS=$IFS; IFS='-'
2122set x $ac_cv_build
2123shift
2124build_cpu=$1
2125build_vendor=$2
2126shift; shift
2127# Remember, the first character of IFS is used to create $*,
2128# except with old shells:
2129build_os=$*
2130IFS=$ac_save_IFS
2131case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
ad6254c5
AK
2132
2133
ec6a6fbe
AK
2134{ $as_echo "$as_me:$LINENO: checking host system type" >&5
2135$as_echo_n "checking host system type... " >&6; }
ad6254c5 2136if test "${ac_cv_host+set}" = set; then
ec6a6fbe 2137 $as_echo_n "(cached) " >&6
ad6254c5 2138else
7a197a62
AK
2139 if test "x$host_alias" = x; then
2140 ac_cv_host=$ac_cv_build
2141else
2142 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
ec6a6fbe
AK
2143 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2144$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
ad6254c5 2145 { (exit 1); exit 1; }; }
7a197a62 2146fi
ad6254c5
AK
2147
2148fi
ec6a6fbe
AK
2149{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2150$as_echo "$ac_cv_host" >&6; }
7a197a62
AK
2151case $ac_cv_host in
2152*-*-*) ;;
ec6a6fbe
AK
2153*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2154$as_echo "$as_me: error: invalid value of canonical host" >&2;}
7a197a62
AK
2155 { (exit 1); exit 1; }; };;
2156esac
ad6254c5 2157host=$ac_cv_host
7a197a62
AK
2158ac_save_IFS=$IFS; IFS='-'
2159set x $ac_cv_host
2160shift
2161host_cpu=$1
2162host_vendor=$2
2163shift; shift
2164# Remember, the first character of IFS is used to create $*,
2165# except with old shells:
2166host_os=$*
2167IFS=$ac_save_IFS
2168case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
ad6254c5
AK
2169
2170
ec6a6fbe
AK
2171{ $as_echo "$as_me:$LINENO: checking target system type" >&5
2172$as_echo_n "checking target system type... " >&6; }
ad6254c5 2173if test "${ac_cv_target+set}" = set; then
ec6a6fbe 2174 $as_echo_n "(cached) " >&6
ad6254c5 2175else
7a197a62
AK
2176 if test "x$target_alias" = x; then
2177 ac_cv_target=$ac_cv_host
2178else
2179 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
ec6a6fbe
AK
2180 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2181$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
ad6254c5 2182 { (exit 1); exit 1; }; }
7a197a62 2183fi
8ce0cbda 2184
ad6254c5 2185fi
ec6a6fbe
AK
2186{ $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2187$as_echo "$ac_cv_target" >&6; }
7a197a62
AK
2188case $ac_cv_target in
2189*-*-*) ;;
ec6a6fbe
AK
2190*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2191$as_echo "$as_me: error: invalid value of canonical target" >&2;}
7a197a62
AK
2192 { (exit 1); exit 1; }; };;
2193esac
ad6254c5 2194target=$ac_cv_target
7a197a62
AK
2195ac_save_IFS=$IFS; IFS='-'
2196set x $ac_cv_target
2197shift
2198target_cpu=$1
2199target_vendor=$2
2200shift; shift
2201# Remember, the first character of IFS is used to create $*,
2202# except with old shells:
2203target_os=$*
2204IFS=$ac_save_IFS
2205case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
8ce0cbda 2206
8ce0cbda 2207
ad6254c5
AK
2208# The aliases save the names the user supplied, while $host etc.
2209# will get canonicalized.
2210test -n "$target_alias" &&
8ce0cbda
AK
2211 test "$program_prefix$program_suffix$program_transform_name" = \
2212 NONENONEs,x,x, &&
2213 program_prefix=${target_alias}-
2214
8ce0cbda
AK
2215case "$host_os" in
2216 linux*)
7f54ef36 2217 CFLAGS="$CFLAGS"
8ce0cbda
AK
2218 COPTIMISE_FLAG="-O2"
2219 CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym"
2220 CLDWHOLEARCHIVE="-Wl,-whole-archive"
2221 CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive"
2222 LDDEPS="$LDDEPS .export.sym"
2223 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
d0191583 2224 LIB_SUFFIX=so
8ce0cbda
AK
2225 DEVMAPPER=yes
2226 ODIRECT=yes
d0191583 2227 DM_IOCTLS=yes
8ce0cbda
AK
2228 SELINUX=yes
2229 CLUSTER=internal
93bd259b 2230 FSADM=yes
d0191583 2231 ;;
8ce0cbda
AK
2232 darwin*)
2233 CFLAGS="$CFLAGS -no-cpp-precomp -fno-common"
2234 COPTIMISE_FLAG="-O2"
2235 CLDFLAGS="$CLDFLAGS"
2236 CLDWHOLEARCHIVE="-all_load"
2237 CLDNOWHOLEARCHIVE=
d0191583 2238 LIB_SUFFIX=dylib
a653923f 2239 DEVMAPPER=yes
8ce0cbda 2240 ODIRECT=no
d0191583 2241 DM_IOCTLS=no
8ce0cbda
AK
2242 SELINUX=no
2243 CLUSTER=none
d0191583
JM
2244 FSADM=no
2245 ;;
8ce0cbda
AK
2246esac
2247
80992638 2248################################################################################
ec6a6fbe
AK
2249{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
2250$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5951ef33 2251if test "${ac_cv_path_SED+set}" = set; then
ec6a6fbe 2252 $as_echo_n "(cached) " >&6
5951ef33
AK
2253else
2254 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2255 for ac_i in 1 2 3 4 5 6 7; do
2256 ac_script="$ac_script$as_nl$ac_script"
2257 done
ec6a6fbe 2258 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5951ef33 2259 $as_unset ac_script || ac_script=
ec6a6fbe 2260 if test -z "$SED"; then
5951ef33 2261 ac_path_SED_found=false
ec6a6fbe
AK
2262 # Loop through the user's path and test for each of PROGNAME-LIST
2263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5951ef33
AK
2264for as_dir in $PATH
2265do
2266 IFS=$as_save_IFS
2267 test -z "$as_dir" && as_dir=.
2268 for ac_prog in sed gsed; do
ec6a6fbe
AK
2269 for ac_exec_ext in '' $ac_executable_extensions; do
2270 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2271 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2272# Check for GNU ac_path_SED and select it if it is found.
5951ef33
AK
2273 # Check for GNU $ac_path_SED
2274case `"$ac_path_SED" --version 2>&1` in
2275*GNU*)
2276 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2277*)
2278 ac_count=0
ec6a6fbe 2279 $as_echo_n 0123456789 >"conftest.in"
5951ef33
AK
2280 while :
2281 do
2282 cat "conftest.in" "conftest.in" >"conftest.tmp"
2283 mv "conftest.tmp" "conftest.in"
2284 cp "conftest.in" "conftest.nl"
ec6a6fbe 2285 $as_echo '' >> "conftest.nl"
5951ef33
AK
2286 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2287 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2288 ac_count=`expr $ac_count + 1`
2289 if test $ac_count -gt ${ac_path_SED_max-0}; then
2290 # Best one so far, save it but keep looking for a better one
2291 ac_cv_path_SED="$ac_path_SED"
2292 ac_path_SED_max=$ac_count
2293 fi
2294 # 10*(2^10) chars as input seems more than enough
2295 test $ac_count -gt 10 && break
2296 done
2297 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2298esac
2299
ec6a6fbe
AK
2300 $ac_path_SED_found && break 3
2301 done
5951ef33
AK
2302 done
2303done
5951ef33 2304IFS=$as_save_IFS
ec6a6fbe
AK
2305 if test -z "$ac_cv_path_SED"; then
2306 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
2307$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
5951ef33 2308 { (exit 1); exit 1; }; }
ec6a6fbe 2309 fi
5951ef33
AK
2310else
2311 ac_cv_path_SED=$SED
2312fi
2313
2314fi
ec6a6fbe
AK
2315{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
2316$as_echo "$ac_cv_path_SED" >&6; }
5951ef33
AK
2317 SED="$ac_cv_path_SED"
2318 rm -f conftest.sed
2319
ad6254c5 2320for ac_prog in gawk mawk nawk awk
795ca3e5 2321do
ad6254c5 2322 # Extract the first word of "$ac_prog", so it can be a program name with args.
795ca3e5 2323set dummy $ac_prog; ac_word=$2
ec6a6fbe
AK
2324{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2325$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2326if test "${ac_cv_prog_AWK+set}" = set; then
ec6a6fbe 2327 $as_echo_n "(cached) " >&6
795ca3e5
AK
2328else
2329 if test -n "$AWK"; then
2330 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2331else
ad6254c5
AK
2332as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2333for as_dir in $PATH
2334do
2335 IFS=$as_save_IFS
2336 test -z "$as_dir" && as_dir=.
2337 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2339 ac_cv_prog_AWK="$ac_prog"
ec6a6fbe 2340 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2341 break 2
2342 fi
2343done
2344done
7a197a62 2345IFS=$as_save_IFS
ad6254c5 2346
795ca3e5
AK
2347fi
2348fi
ad6254c5 2349AWK=$ac_cv_prog_AWK
795ca3e5 2350if test -n "$AWK"; then
ec6a6fbe
AK
2351 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2352$as_echo "$AWK" >&6; }
795ca3e5 2353else
ec6a6fbe
AK
2354 { $as_echo "$as_me:$LINENO: result: no" >&5
2355$as_echo "no" >&6; }
795ca3e5
AK
2356fi
2357
7a197a62 2358
ad6254c5
AK
2359 test -n "$AWK" && break
2360done
2361
2362ac_ext=c
2363ac_cpp='$CPP $CPPFLAGS'
2364ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2365ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2366ac_compiler_gnu=$ac_cv_c_compiler_gnu
2367if test -n "$ac_tool_prefix"; then
2368 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2369set dummy ${ac_tool_prefix}gcc; ac_word=$2
ec6a6fbe
AK
2370{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2371$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2372if test "${ac_cv_prog_CC+set}" = set; then
ec6a6fbe 2373 $as_echo_n "(cached) " >&6
ad6254c5
AK
2374else
2375 if test -n "$CC"; then
2376 ac_cv_prog_CC="$CC" # Let the user override the test.
2377else
2378as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2379for as_dir in $PATH
2380do
2381 IFS=$as_save_IFS
2382 test -z "$as_dir" && as_dir=.
2383 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2385 ac_cv_prog_CC="${ac_tool_prefix}gcc"
ec6a6fbe 2386 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2387 break 2
2388 fi
2389done
8106cdd5 2390done
7a197a62 2391IFS=$as_save_IFS
8106cdd5 2392
ad6254c5
AK
2393fi
2394fi
2395CC=$ac_cv_prog_CC
2396if test -n "$CC"; then
ec6a6fbe
AK
2397 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2398$as_echo "$CC" >&6; }
ad6254c5 2399else
ec6a6fbe
AK
2400 { $as_echo "$as_me:$LINENO: result: no" >&5
2401$as_echo "no" >&6; }
ad6254c5
AK
2402fi
2403
7a197a62 2404
ad6254c5
AK
2405fi
2406if test -z "$ac_cv_prog_CC"; then
2407 ac_ct_CC=$CC
2408 # Extract the first word of "gcc", so it can be a program name with args.
8106cdd5 2409set dummy gcc; ac_word=$2
ec6a6fbe
AK
2410{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2411$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2412if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
ec6a6fbe 2413 $as_echo_n "(cached) " >&6
ad6254c5
AK
2414else
2415 if test -n "$ac_ct_CC"; then
2416 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2417else
2418as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2419for as_dir in $PATH
2420do
2421 IFS=$as_save_IFS
2422 test -z "$as_dir" && as_dir=.
2423 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2425 ac_cv_prog_ac_ct_CC="gcc"
ec6a6fbe 2426 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2427 break 2
2428 fi
2429done
2430done
7a197a62 2431IFS=$as_save_IFS
ad6254c5
AK
2432
2433fi
2434fi
2435ac_ct_CC=$ac_cv_prog_ac_ct_CC
2436if test -n "$ac_ct_CC"; then
ec6a6fbe
AK
2437 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2438$as_echo "$ac_ct_CC" >&6; }
ad6254c5 2439else
ec6a6fbe
AK
2440 { $as_echo "$as_me:$LINENO: result: no" >&5
2441$as_echo "no" >&6; }
ad6254c5
AK
2442fi
2443
7a197a62
AK
2444 if test "x$ac_ct_CC" = x; then
2445 CC=""
2446 else
2447 case $cross_compiling:$ac_tool_warned in
2448yes:)
ec6a6fbe
AK
2449{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2450$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7a197a62
AK
2451ac_tool_warned=yes ;;
2452esac
2453 CC=$ac_ct_CC
2454 fi
ad6254c5
AK
2455else
2456 CC="$ac_cv_prog_CC"
2457fi
2458
2459if test -z "$CC"; then
7a197a62
AK
2460 if test -n "$ac_tool_prefix"; then
2461 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
ad6254c5 2462set dummy ${ac_tool_prefix}cc; ac_word=$2
ec6a6fbe
AK
2463{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2464$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2465if test "${ac_cv_prog_CC+set}" = set; then
ec6a6fbe 2466 $as_echo_n "(cached) " >&6
8106cdd5
AK
2467else
2468 if test -n "$CC"; then
2469 ac_cv_prog_CC="$CC" # Let the user override the test.
2470else
ad6254c5
AK
2471as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2472for as_dir in $PATH
2473do
2474 IFS=$as_save_IFS
2475 test -z "$as_dir" && as_dir=.
2476 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2478 ac_cv_prog_CC="${ac_tool_prefix}cc"
ec6a6fbe 2479 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2480 break 2
2481 fi
2482done
2483done
7a197a62 2484IFS=$as_save_IFS
ad6254c5 2485
8106cdd5
AK
2486fi
2487fi
ad6254c5 2488CC=$ac_cv_prog_CC
8106cdd5 2489if test -n "$CC"; then
ec6a6fbe
AK
2490 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2491$as_echo "$CC" >&6; }
ad6254c5 2492else
ec6a6fbe
AK
2493 { $as_echo "$as_me:$LINENO: result: no" >&5
2494$as_echo "no" >&6; }
ad6254c5
AK
2495fi
2496
8106cdd5 2497
7a197a62 2498 fi
ad6254c5 2499fi
795ca3e5
AK
2500if test -z "$CC"; then
2501 # Extract the first word of "cc", so it can be a program name with args.
2502set dummy cc; ac_word=$2
ec6a6fbe
AK
2503{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2504$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2505if test "${ac_cv_prog_CC+set}" = set; then
ec6a6fbe 2506 $as_echo_n "(cached) " >&6
795ca3e5
AK
2507else
2508 if test -n "$CC"; then
2509 ac_cv_prog_CC="$CC" # Let the user override the test.
2510else
795ca3e5 2511 ac_prog_rejected=no
ad6254c5
AK
2512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2513for as_dir in $PATH
2514do
2515 IFS=$as_save_IFS
2516 test -z "$as_dir" && as_dir=.
2517 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5
AK
2519 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2520 ac_prog_rejected=yes
2521 continue
2522 fi
2523 ac_cv_prog_CC="cc"
ec6a6fbe 2524 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2525 break 2
2526 fi
2527done
2528done
7a197a62 2529IFS=$as_save_IFS
ad6254c5 2530
795ca3e5
AK
2531if test $ac_prog_rejected = yes; then
2532 # We found a bogon in the path, so make sure we never use it.
2533 set dummy $ac_cv_prog_CC
2534 shift
ad6254c5 2535 if test $# != 0; then
795ca3e5
AK
2536 # We chose a different compiler from the bogus one.
2537 # However, it has the same basename, so the bogon will be chosen
2538 # first if we set CC to just the basename; use the full file name.
2539 shift
ad6254c5 2540 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
795ca3e5
AK
2541 fi
2542fi
2543fi
2544fi
ad6254c5 2545CC=$ac_cv_prog_CC
795ca3e5 2546if test -n "$CC"; then
ec6a6fbe
AK
2547 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2548$as_echo "$CC" >&6; }
795ca3e5 2549else
ec6a6fbe
AK
2550 { $as_echo "$as_me:$LINENO: result: no" >&5
2551$as_echo "no" >&6; }
795ca3e5
AK
2552fi
2553
7a197a62 2554
ad6254c5
AK
2555fi
2556if test -z "$CC"; then
2557 if test -n "$ac_tool_prefix"; then
7a197a62 2558 for ac_prog in cl.exe
ad6254c5
AK
2559 do
2560 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2561set dummy $ac_tool_prefix$ac_prog; ac_word=$2
ec6a6fbe
AK
2562{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2563$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2564if test "${ac_cv_prog_CC+set}" = set; then
ec6a6fbe 2565 $as_echo_n "(cached) " >&6
795ca3e5
AK
2566else
2567 if test -n "$CC"; then
2568 ac_cv_prog_CC="$CC" # Let the user override the test.
2569else
ad6254c5
AK
2570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2571for as_dir in $PATH
2572do
2573 IFS=$as_save_IFS
2574 test -z "$as_dir" && as_dir=.
2575 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2577 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
ec6a6fbe 2578 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2579 break 2
2580 fi
2581done
2582done
7a197a62 2583IFS=$as_save_IFS
ad6254c5 2584
795ca3e5
AK
2585fi
2586fi
ad6254c5 2587CC=$ac_cv_prog_CC
795ca3e5 2588if test -n "$CC"; then
ec6a6fbe
AK
2589 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2590$as_echo "$CC" >&6; }
795ca3e5 2591else
ec6a6fbe
AK
2592 { $as_echo "$as_me:$LINENO: result: no" >&5
2593$as_echo "no" >&6; }
795ca3e5 2594fi
ad6254c5 2595
7a197a62 2596
ad6254c5
AK
2597 test -n "$CC" && break
2598 done
2599fi
2600if test -z "$CC"; then
2601 ac_ct_CC=$CC
7a197a62 2602 for ac_prog in cl.exe
ad6254c5
AK
2603do
2604 # Extract the first word of "$ac_prog", so it can be a program name with args.
2605set dummy $ac_prog; ac_word=$2
ec6a6fbe
AK
2606{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2607$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2608if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
ec6a6fbe 2609 $as_echo_n "(cached) " >&6
ad6254c5
AK
2610else
2611 if test -n "$ac_ct_CC"; then
2612 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2613else
2614as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2615for as_dir in $PATH
2616do
2617 IFS=$as_save_IFS
2618 test -z "$as_dir" && as_dir=.
2619 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2621 ac_cv_prog_ac_ct_CC="$ac_prog"
ec6a6fbe 2622 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5 2623 break 2
795ca3e5 2624 fi
ad6254c5
AK
2625done
2626done
7a197a62 2627IFS=$as_save_IFS
ad6254c5
AK
2628
2629fi
2630fi
2631ac_ct_CC=$ac_cv_prog_ac_ct_CC
2632if test -n "$ac_ct_CC"; then
ec6a6fbe
AK
2633 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2634$as_echo "$ac_ct_CC" >&6; }
ad6254c5 2635else
ec6a6fbe
AK
2636 { $as_echo "$as_me:$LINENO: result: no" >&5
2637$as_echo "no" >&6; }
795ca3e5
AK
2638fi
2639
7a197a62 2640
ad6254c5
AK
2641 test -n "$ac_ct_CC" && break
2642done
795ca3e5 2643
7a197a62
AK
2644 if test "x$ac_ct_CC" = x; then
2645 CC=""
2646 else
2647 case $cross_compiling:$ac_tool_warned in
2648yes:)
ec6a6fbe
AK
2649{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2650$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7a197a62
AK
2651ac_tool_warned=yes ;;
2652esac
2653 CC=$ac_ct_CC
2654 fi
ad6254c5
AK
2655fi
2656
2657fi
2658
2659
ec6a6fbe
AK
2660test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2661$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2662{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
ad6254c5 2663See \`config.log' for more details." >&5
ec6a6fbe 2664$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
ad6254c5 2665See \`config.log' for more details." >&2;}
ec6a6fbe 2666 { (exit 1); exit 1; }; }; }
ad6254c5
AK
2667
2668# Provide some information about the compiler.
ec6a6fbe
AK
2669$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2670set X $ac_compile
2671ac_compiler=$2
7a197a62
AK
2672{ (ac_try="$ac_compiler --version >&5"
2673case "(($ac_try" in
2674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2675 *) ac_try_echo=$ac_try;;
2676esac
ec6a6fbe
AK
2677eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2678$as_echo "$ac_try_echo") >&5
7a197a62 2679 (eval "$ac_compiler --version >&5") 2>&5
ad6254c5 2680 ac_status=$?
ec6a6fbe 2681 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2682 (exit $ac_status); }
7a197a62
AK
2683{ (ac_try="$ac_compiler -v >&5"
2684case "(($ac_try" in
2685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2686 *) ac_try_echo=$ac_try;;
2687esac
ec6a6fbe
AK
2688eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2689$as_echo "$ac_try_echo") >&5
7a197a62 2690 (eval "$ac_compiler -v >&5") 2>&5
ad6254c5 2691 ac_status=$?
ec6a6fbe 2692 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2693 (exit $ac_status); }
7a197a62
AK
2694{ (ac_try="$ac_compiler -V >&5"
2695case "(($ac_try" in
2696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2697 *) ac_try_echo=$ac_try;;
2698esac
ec6a6fbe
AK
2699eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2700$as_echo "$ac_try_echo") >&5
7a197a62 2701 (eval "$ac_compiler -V >&5") 2>&5
ad6254c5 2702 ac_status=$?
ec6a6fbe 2703 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
2704 (exit $ac_status); }
2705
2706cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2707/* confdefs.h. */
2708_ACEOF
2709cat confdefs.h >>conftest.$ac_ext
2710cat >>conftest.$ac_ext <<_ACEOF
2711/* end confdefs.h. */
2712
2713int
2714main ()
2715{
2716
2717 ;
2718 return 0;
2719}
2720_ACEOF
2721ac_clean_files_save=$ac_clean_files
ec6a6fbe 2722ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
ad6254c5
AK
2723# Try to create an executable without -o first, disregard a.out.
2724# It will help us diagnose broken compilers, and finding out an intuition
2725# of exeext.
ec6a6fbe
AK
2726{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2727$as_echo_n "checking for C compiler default output file name... " >&6; }
2728ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2729
2730# The possible output files:
2731ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2732
7a197a62
AK
2733ac_rmfiles=
2734for ac_file in $ac_files
2735do
2736 case $ac_file in
ec6a6fbe 2737 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
7a197a62
AK
2738 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2739 esac
2740done
2741rm -f $ac_rmfiles
2742
2743if { (ac_try="$ac_link_default"
2744case "(($ac_try" in
2745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2746 *) ac_try_echo=$ac_try;;
2747esac
ec6a6fbe
AK
2748eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2749$as_echo "$ac_try_echo") >&5
7a197a62 2750 (eval "$ac_link_default") 2>&5
ad6254c5 2751 ac_status=$?
ec6a6fbe 2752 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2753 (exit $ac_status); }; then
7a197a62
AK
2754 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2755# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2756# in a Makefile. We should not override ac_cv_exeext if it was cached,
2757# so that the user can short-circuit this test for compilers unknown to
2758# Autoconf.
25fbec5b 2759for ac_file in $ac_files ''
ad6254c5
AK
2760do
2761 test -f "$ac_file" || continue
2762 case $ac_file in
ec6a6fbe 2763 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
8a2fc586 2764 ;;
ad6254c5 2765 [ab].out )
8a2fc586
AK
2766 # We found the default executable, but exeext='' is most
2767 # certainly right.
2768 break;;
ad6254c5 2769 *.* )
7a197a62
AK
2770 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2771 then :; else
2772 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2773 fi
2774 # We set ac_cv_exeext here because the later test for it is not
2775 # safe: cross compilers may not add the suffix if given an `-o'
2776 # argument, so we may need to know it at that point already.
2777 # Even if this section looks crufty: it has the advantage of
2778 # actually working.
8a2fc586 2779 break;;
ad6254c5 2780 * )
8a2fc586 2781 break;;
ad6254c5
AK
2782 esac
2783done
7a197a62
AK
2784test "$ac_cv_exeext" = no && ac_cv_exeext=
2785
ad6254c5 2786else
25fbec5b
AK
2787 ac_file=''
2788fi
2789
ec6a6fbe
AK
2790{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2791$as_echo "$ac_file" >&6; }
25fbec5b 2792if test -z "$ac_file"; then
ec6a6fbe 2793 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
2794sed 's/^/| /' conftest.$ac_ext >&5
2795
ec6a6fbe
AK
2796{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2797$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2798{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
ad6254c5 2799See \`config.log' for more details." >&5
ec6a6fbe 2800$as_echo "$as_me: error: C compiler cannot create executables
ad6254c5 2801See \`config.log' for more details." >&2;}
ec6a6fbe 2802 { (exit 77); exit 77; }; }; }
ad6254c5
AK
2803fi
2804
2805ac_exeext=$ac_cv_exeext
ad6254c5 2806
7a197a62 2807# Check that the compiler produces executables we can run. If not, either
ad6254c5 2808# the compiler is broken, or we cross compile.
ec6a6fbe
AK
2809{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2810$as_echo_n "checking whether the C compiler works... " >&6; }
ad6254c5
AK
2811# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2812# If not cross compiling, check that we can run a simple program.
2813if test "$cross_compiling" != yes; then
2814 if { ac_try='./$ac_file'
7a197a62
AK
2815 { (case "(($ac_try" in
2816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2817 *) ac_try_echo=$ac_try;;
2818esac
ec6a6fbe
AK
2819eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2820$as_echo "$ac_try_echo") >&5
7a197a62 2821 (eval "$ac_try") 2>&5
ad6254c5 2822 ac_status=$?
ec6a6fbe 2823 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
2824 (exit $ac_status); }; }; then
2825 cross_compiling=no
795ca3e5 2826 else
ad6254c5
AK
2827 if test "$cross_compiling" = maybe; then
2828 cross_compiling=yes
2829 else
ec6a6fbe
AK
2830 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2831$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2832{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
ad6254c5
AK
2833If you meant to cross compile, use \`--host'.
2834See \`config.log' for more details." >&5
ec6a6fbe 2835$as_echo "$as_me: error: cannot run C compiled programs.
ad6254c5
AK
2836If you meant to cross compile, use \`--host'.
2837See \`config.log' for more details." >&2;}
ec6a6fbe 2838 { (exit 1); exit 1; }; }; }
ad6254c5 2839 fi
795ca3e5 2840 fi
80992638 2841fi
ec6a6fbe
AK
2842{ $as_echo "$as_me:$LINENO: result: yes" >&5
2843$as_echo "yes" >&6; }
ad6254c5 2844
ec6a6fbe 2845rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
ad6254c5 2846ac_clean_files=$ac_clean_files_save
7a197a62 2847# Check that the compiler produces executables we can run. If not, either
ad6254c5 2848# the compiler is broken, or we cross compile.
ec6a6fbe
AK
2849{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2850$as_echo_n "checking whether we are cross compiling... " >&6; }
2851{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2852$as_echo "$cross_compiling" >&6; }
7a197a62 2853
ec6a6fbe
AK
2854{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2855$as_echo_n "checking for suffix of executables... " >&6; }
7a197a62
AK
2856if { (ac_try="$ac_link"
2857case "(($ac_try" in
2858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2859 *) ac_try_echo=$ac_try;;
2860esac
ec6a6fbe
AK
2861eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2862$as_echo "$ac_try_echo") >&5
7a197a62 2863 (eval "$ac_link") 2>&5
ad6254c5 2864 ac_status=$?
ec6a6fbe 2865 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
2866 (exit $ac_status); }; then
2867 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2868# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2869# work properly (i.e., refer to `conftest.exe'), while it won't with
2870# `rm'.
2871for ac_file in conftest.exe conftest conftest.*; do
2872 test -f "$ac_file" || continue
2873 case $ac_file in
ec6a6fbe 2874 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
ad6254c5 2875 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
8a2fc586 2876 break;;
ad6254c5
AK
2877 * ) break;;
2878 esac
2879done
80992638 2880else
ec6a6fbe
AK
2881 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2882$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2883{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
ad6254c5 2884See \`config.log' for more details." >&5
ec6a6fbe 2885$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
ad6254c5 2886See \`config.log' for more details." >&2;}
ec6a6fbe 2887 { (exit 1); exit 1; }; }; }
ad6254c5
AK
2888fi
2889
2890rm -f conftest$ac_cv_exeext
ec6a6fbe
AK
2891{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2892$as_echo "$ac_cv_exeext" >&6; }
ad6254c5
AK
2893
2894rm -f conftest.$ac_ext
2895EXEEXT=$ac_cv_exeext
2896ac_exeext=$EXEEXT
ec6a6fbe
AK
2897{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2898$as_echo_n "checking for suffix of object files... " >&6; }
ad6254c5 2899if test "${ac_cv_objext+set}" = set; then
ec6a6fbe 2900 $as_echo_n "(cached) " >&6
795ca3e5 2901else
ad6254c5 2902 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2903/* confdefs.h. */
2904_ACEOF
2905cat confdefs.h >>conftest.$ac_ext
2906cat >>conftest.$ac_ext <<_ACEOF
2907/* end confdefs.h. */
2908
2909int
2910main ()
2911{
2912
2913 ;
2914 return 0;
2915}
2916_ACEOF
2917rm -f conftest.o conftest.obj
7a197a62
AK
2918if { (ac_try="$ac_compile"
2919case "(($ac_try" in
2920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2921 *) ac_try_echo=$ac_try;;
2922esac
ec6a6fbe
AK
2923eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2924$as_echo "$ac_try_echo") >&5
7a197a62 2925 (eval "$ac_compile") 2>&5
ad6254c5 2926 ac_status=$?
ec6a6fbe 2927 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2928 (exit $ac_status); }; then
7a197a62
AK
2929 for ac_file in conftest.o conftest.obj conftest.*; do
2930 test -f "$ac_file" || continue;
ad6254c5 2931 case $ac_file in
ec6a6fbe 2932 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
ad6254c5
AK
2933 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2934 break;;
2935 esac
2936done
2937else
ec6a6fbe 2938 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
2939sed 's/^/| /' conftest.$ac_ext >&5
2940
ec6a6fbe
AK
2941{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2942$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2943{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
ad6254c5 2944See \`config.log' for more details." >&5
ec6a6fbe 2945$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
ad6254c5 2946See \`config.log' for more details." >&2;}
ec6a6fbe 2947 { (exit 1); exit 1; }; }; }
ad6254c5
AK
2948fi
2949
2950rm -f conftest.$ac_cv_objext conftest.$ac_ext
2951fi
ec6a6fbe
AK
2952{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2953$as_echo "$ac_cv_objext" >&6; }
ad6254c5
AK
2954OBJEXT=$ac_cv_objext
2955ac_objext=$OBJEXT
ec6a6fbe
AK
2956{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2957$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
ad6254c5 2958if test "${ac_cv_c_compiler_gnu+set}" = set; then
ec6a6fbe 2959 $as_echo_n "(cached) " >&6
ad6254c5
AK
2960else
2961 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2962/* confdefs.h. */
2963_ACEOF
2964cat confdefs.h >>conftest.$ac_ext
2965cat >>conftest.$ac_ext <<_ACEOF
2966/* end confdefs.h. */
2967
2968int
2969main ()
2970{
2971#ifndef __GNUC__
2972 choke me
2973#endif
80992638 2974
ad6254c5
AK
2975 ;
2976 return 0;
2977}
2978_ACEOF
2979rm -f conftest.$ac_objext
7a197a62
AK
2980if { (ac_try="$ac_compile"
2981case "(($ac_try" in
2982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2983 *) ac_try_echo=$ac_try;;
2984esac
ec6a6fbe
AK
2985eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2986$as_echo "$ac_try_echo") >&5
7a197a62 2987 (eval "$ac_compile") 2>conftest.er1
ad6254c5 2988 ac_status=$?
8a2fc586
AK
2989 grep -v '^ *+' conftest.er1 >conftest.err
2990 rm -f conftest.er1
2991 cat conftest.err >&5
ec6a6fbe 2992 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
2993 (exit $ac_status); } && {
2994 test -z "$ac_c_werror_flag" ||
2995 test ! -s conftest.err
2996 } && test -s conftest.$ac_objext; then
ad6254c5 2997 ac_compiler_gnu=yes
80992638 2998else
ec6a6fbe 2999 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
3000sed 's/^/| /' conftest.$ac_ext >&5
3001
7a197a62 3002 ac_compiler_gnu=no
8106cdd5 3003fi
7a197a62
AK
3004
3005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 3006ac_cv_c_compiler_gnu=$ac_compiler_gnu
80992638 3007
ad6254c5 3008fi
ec6a6fbe
AK
3009{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3010$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3011if test $ac_compiler_gnu = yes; then
3012 GCC=yes
3013else
3014 GCC=
3015fi
ad6254c5
AK
3016ac_test_CFLAGS=${CFLAGS+set}
3017ac_save_CFLAGS=$CFLAGS
ec6a6fbe
AK
3018{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3019$as_echo_n "checking whether $CC accepts -g... " >&6; }
ad6254c5 3020if test "${ac_cv_prog_cc_g+set}" = set; then
ec6a6fbe 3021 $as_echo_n "(cached) " >&6
795ca3e5 3022else
7a197a62
AK
3023 ac_save_c_werror_flag=$ac_c_werror_flag
3024 ac_c_werror_flag=yes
3025 ac_cv_prog_cc_g=no
3026 CFLAGS="-g"
3027 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3028/* confdefs.h. */
3029_ACEOF
3030cat confdefs.h >>conftest.$ac_ext
3031cat >>conftest.$ac_ext <<_ACEOF
3032/* end confdefs.h. */
3033
3034int
3035main ()
3036{
3037
3038 ;
3039 return 0;
3040}
3041_ACEOF
3042rm -f conftest.$ac_objext
7a197a62
AK
3043if { (ac_try="$ac_compile"
3044case "(($ac_try" in
3045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3046 *) ac_try_echo=$ac_try;;
3047esac
ec6a6fbe
AK
3048eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3049$as_echo "$ac_try_echo") >&5
7a197a62 3050 (eval "$ac_compile") 2>conftest.er1
ad6254c5 3051 ac_status=$?
8a2fc586
AK
3052 grep -v '^ *+' conftest.er1 >conftest.err
3053 rm -f conftest.er1
3054 cat conftest.err >&5
ec6a6fbe 3055 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
3056 (exit $ac_status); } && {
3057 test -z "$ac_c_werror_flag" ||
3058 test ! -s conftest.err
3059 } && test -s conftest.$ac_objext; then
7a197a62
AK
3060 ac_cv_prog_cc_g=yes
3061else
ec6a6fbe 3062 $as_echo "$as_me: failed program was:" >&5
7a197a62
AK
3063sed 's/^/| /' conftest.$ac_ext >&5
3064
3065 CFLAGS=""
3066 cat >conftest.$ac_ext <<_ACEOF
3067/* confdefs.h. */
3068_ACEOF
3069cat confdefs.h >>conftest.$ac_ext
3070cat >>conftest.$ac_ext <<_ACEOF
3071/* end confdefs.h. */
3072
3073int
3074main ()
3075{
3076
3077 ;
3078 return 0;
3079}
3080_ACEOF
3081rm -f conftest.$ac_objext
3082if { (ac_try="$ac_compile"
3083case "(($ac_try" in
3084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3085 *) ac_try_echo=$ac_try;;
3086esac
ec6a6fbe
AK
3087eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3088$as_echo "$ac_try_echo") >&5
7a197a62 3089 (eval "$ac_compile") 2>conftest.er1
8a2fc586 3090 ac_status=$?
7a197a62
AK
3091 grep -v '^ *+' conftest.er1 >conftest.err
3092 rm -f conftest.er1
3093 cat conftest.err >&5
ec6a6fbe 3094 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
3095 (exit $ac_status); } && {
3096 test -z "$ac_c_werror_flag" ||
3097 test ! -s conftest.err
3098 } && test -s conftest.$ac_objext; then
7a197a62
AK
3099 :
3100else
ec6a6fbe 3101 $as_echo "$as_me: failed program was:" >&5
7a197a62
AK
3102sed 's/^/| /' conftest.$ac_ext >&5
3103
3104 ac_c_werror_flag=$ac_save_c_werror_flag
3105 CFLAGS="-g"
3106 cat >conftest.$ac_ext <<_ACEOF
3107/* confdefs.h. */
3108_ACEOF
3109cat confdefs.h >>conftest.$ac_ext
3110cat >>conftest.$ac_ext <<_ACEOF
3111/* end confdefs.h. */
3112
3113int
3114main ()
3115{
3116
3117 ;
3118 return 0;
3119}
3120_ACEOF
3121rm -f conftest.$ac_objext
3122if { (ac_try="$ac_compile"
3123case "(($ac_try" in
3124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3125 *) ac_try_echo=$ac_try;;
3126esac
ec6a6fbe
AK
3127eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3128$as_echo "$ac_try_echo") >&5
7a197a62 3129 (eval "$ac_compile") 2>conftest.er1
ad6254c5 3130 ac_status=$?
7a197a62
AK
3131 grep -v '^ *+' conftest.er1 >conftest.err
3132 rm -f conftest.er1
3133 cat conftest.err >&5
ec6a6fbe 3134 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
3135 (exit $ac_status); } && {
3136 test -z "$ac_c_werror_flag" ||
3137 test ! -s conftest.err
3138 } && test -s conftest.$ac_objext; then
795ca3e5
AK
3139 ac_cv_prog_cc_g=yes
3140else
ec6a6fbe 3141 $as_echo "$as_me: failed program was:" >&5
ad6254c5 3142sed 's/^/| /' conftest.$ac_ext >&5
80992638 3143
7a197a62
AK
3144
3145fi
3146
3147rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3148fi
3149
3150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8106cdd5 3151fi
7a197a62
AK
3152
3153rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3154 ac_c_werror_flag=$ac_save_c_werror_flag
ad6254c5 3155fi
ec6a6fbe
AK
3156{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3157$as_echo "$ac_cv_prog_cc_g" >&6; }
795ca3e5 3158if test "$ac_test_CFLAGS" = set; then
ad6254c5 3159 CFLAGS=$ac_save_CFLAGS
795ca3e5
AK
3160elif test $ac_cv_prog_cc_g = yes; then
3161 if test "$GCC" = yes; then
3162 CFLAGS="-g -O2"
3163 else
3164 CFLAGS="-g"
3165 fi
3166else
3167 if test "$GCC" = yes; then
3168 CFLAGS="-O2"
3169 else
3170 CFLAGS=
3171 fi
3172fi
ec6a6fbe
AK
3173{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3174$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
7a197a62 3175if test "${ac_cv_prog_cc_c89+set}" = set; then
ec6a6fbe 3176 $as_echo_n "(cached) " >&6
ad6254c5 3177else
7a197a62 3178 ac_cv_prog_cc_c89=no
ad6254c5
AK
3179ac_save_CC=$CC
3180cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3181/* confdefs.h. */
3182_ACEOF
3183cat confdefs.h >>conftest.$ac_ext
3184cat >>conftest.$ac_ext <<_ACEOF
3185/* end confdefs.h. */
3186#include <stdarg.h>
3187#include <stdio.h>
3188#include <sys/types.h>
3189#include <sys/stat.h>
3190/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3191struct buf { int x; };
3192FILE * (*rcsopen) (struct buf *, struct stat *, int);
3193static char *e (p, i)
3194 char **p;
3195 int i;
3196{
3197 return p[i];
3198}
3199static char *f (char * (*g) (char **, int), char **p, ...)
3200{
3201 char *s;
3202 va_list v;
3203 va_start (v,p);
3204 s = g (p, va_arg (v,int));
3205 va_end (v);
3206 return s;
3207}
8a2fc586
AK
3208
3209/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3210 function prototypes and stuff, but not '\xHH' hex character constants.
3211 These don't provoke an error unfortunately, instead are silently treated
7a197a62 3212 as 'x'. The following induces an error, until -std is added to get
8a2fc586
AK
3213 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3214 array size at least. It's necessary to write '\x00'==0 to get something
7a197a62 3215 that's true only with -std. */
8a2fc586
AK
3216int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3217
7a197a62
AK
3218/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3219 inside strings and character constants. */
3220#define FOO(x) 'x'
3221int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3222
ad6254c5
AK
3223int test (int i, double x);
3224struct s1 {int (*f) (int a);};
3225struct s2 {int (*f) (double a);};
3226int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3227int argc;
3228char **argv;
3229int
3230main ()
3231{
3232return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3233 ;
3234 return 0;
3235}
3236_ACEOF
7a197a62
AK
3237for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3238 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
ad6254c5
AK
3239do
3240 CC="$ac_save_CC $ac_arg"
3241 rm -f conftest.$ac_objext
7a197a62
AK
3242if { (ac_try="$ac_compile"
3243case "(($ac_try" in
3244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3245 *) ac_try_echo=$ac_try;;
3246esac
ec6a6fbe
AK
3247eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3248$as_echo "$ac_try_echo") >&5
7a197a62 3249 (eval "$ac_compile") 2>conftest.er1
ad6254c5 3250 ac_status=$?
8a2fc586
AK
3251 grep -v '^ *+' conftest.er1 >conftest.err
3252 rm -f conftest.er1
3253 cat conftest.err >&5
ec6a6fbe 3254 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
3255 (exit $ac_status); } && {
3256 test -z "$ac_c_werror_flag" ||
3257 test ! -s conftest.err
3258 } && test -s conftest.$ac_objext; then
7a197a62 3259 ac_cv_prog_cc_c89=$ac_arg
ad6254c5 3260else
ec6a6fbe 3261 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
3262sed 's/^/| /' conftest.$ac_ext >&5
3263
7a197a62 3264
ad6254c5 3265fi
7a197a62
AK
3266
3267rm -f core conftest.err conftest.$ac_objext
3268 test "x$ac_cv_prog_cc_c89" != "xno" && break
ad6254c5 3269done
7a197a62 3270rm -f conftest.$ac_ext
ad6254c5
AK
3271CC=$ac_save_CC
3272
3273fi
7a197a62
AK
3274# AC_CACHE_VAL
3275case "x$ac_cv_prog_cc_c89" in
3276 x)
ec6a6fbe
AK
3277 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3278$as_echo "none needed" >&6; } ;;
7a197a62 3279 xno)
ec6a6fbe
AK
3280 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3281$as_echo "unsupported" >&6; } ;;
ad6254c5 3282 *)
7a197a62 3283 CC="$CC $ac_cv_prog_cc_c89"
ec6a6fbe
AK
3284 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3285$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
ad6254c5
AK
3286esac
3287
ad6254c5 3288
ad6254c5
AK
3289ac_ext=c
3290ac_cpp='$CPP $CPPFLAGS'
3291ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3292ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3293ac_compiler_gnu=$ac_cv_c_compiler_gnu
795ca3e5 3294
d0191583
JM
3295
3296
3297ac_ext=c
3298ac_cpp='$CPP $CPPFLAGS'
3299ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3300ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3301ac_compiler_gnu=$ac_cv_c_compiler_gnu
ec6a6fbe
AK
3302{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3303$as_echo_n "checking how to run the C preprocessor... " >&6; }
d0191583
JM
3304# On Suns, sometimes $CPP names a directory.
3305if test -n "$CPP" && test -d "$CPP"; then
3306 CPP=
3307fi
3308if test -z "$CPP"; then
3309 if test "${ac_cv_prog_CPP+set}" = set; then
ec6a6fbe 3310 $as_echo_n "(cached) " >&6
ad6254c5 3311else
d0191583
JM
3312 # Double quotes because CPP needs to be expanded
3313 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3314 do
3315 ac_preproc_ok=false
3316for ac_c_preproc_warn_flag in '' yes
ad6254c5 3317do
d0191583
JM
3318 # Use a header file that comes with gcc, so configuring glibc
3319 # with a fresh cross-compiler works.
3320 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3321 # <limits.h> exists even on freestanding compilers.
3322 # On the NeXT, cc -E runs the code through the compiler's parser,
3323 # not just through cpp. "Syntax error" is here to catch this case.
3324 cat >conftest.$ac_ext <<_ACEOF
3325/* confdefs.h. */
3326_ACEOF
3327cat confdefs.h >>conftest.$ac_ext
3328cat >>conftest.$ac_ext <<_ACEOF
3329/* end confdefs.h. */
3330#ifdef __STDC__
3331# include <limits.h>
3332#else
3333# include <assert.h>
3334#endif
3335 Syntax error
3336_ACEOF
3337if { (ac_try="$ac_cpp conftest.$ac_ext"
3338case "(($ac_try" in
3339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3340 *) ac_try_echo=$ac_try;;
ad6254c5 3341esac
ec6a6fbe
AK
3342eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3343$as_echo "$ac_try_echo") >&5
d0191583
JM
3344 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3345 ac_status=$?
3346 grep -v '^ *+' conftest.er1 >conftest.err
3347 rm -f conftest.er1
3348 cat conftest.err >&5
ec6a6fbe 3349 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3350 (exit $ac_status); } >/dev/null && {
3351 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3352 test ! -s conftest.err
3353 }; then
3354 :
3355else
ec6a6fbe 3356 $as_echo "$as_me: failed program was:" >&5
d0191583 3357sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 3358
d0191583
JM
3359 # Broken: fails on valid input.
3360continue
795ca3e5 3361fi
795ca3e5 3362
d0191583 3363rm -f conftest.err conftest.$ac_ext
795ca3e5 3364
d0191583
JM
3365 # OK, works on sane cases. Now check whether nonexistent headers
3366 # can be detected and how.
3367 cat >conftest.$ac_ext <<_ACEOF
3368/* confdefs.h. */
3369_ACEOF
3370cat confdefs.h >>conftest.$ac_ext
3371cat >>conftest.$ac_ext <<_ACEOF
3372/* end confdefs.h. */
3373#include <ac_nonexistent.h>
3374_ACEOF
3375if { (ac_try="$ac_cpp conftest.$ac_ext"
3376case "(($ac_try" in
3377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3378 *) ac_try_echo=$ac_try;;
3379esac
ec6a6fbe
AK
3380eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3381$as_echo "$ac_try_echo") >&5
d0191583
JM
3382 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3383 ac_status=$?
3384 grep -v '^ *+' conftest.er1 >conftest.err
3385 rm -f conftest.er1
3386 cat conftest.err >&5
ec6a6fbe 3387 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3388 (exit $ac_status); } >/dev/null && {
3389 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3390 test ! -s conftest.err
3391 }; then
3392 # Broken: success on invalid input.
3393continue
3394else
ec6a6fbe 3395 $as_echo "$as_me: failed program was:" >&5
d0191583 3396sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 3397
d0191583
JM
3398 # Passes both tests.
3399ac_preproc_ok=:
3400break
3401fi
795ca3e5 3402
d0191583
JM
3403rm -f conftest.err conftest.$ac_ext
3404
3405done
3406# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3407rm -f conftest.err conftest.$ac_ext
3408if $ac_preproc_ok; then
3409 break
795ca3e5
AK
3410fi
3411
d0191583
JM
3412 done
3413 ac_cv_prog_CPP=$CPP
3414
3415fi
3416 CPP=$ac_cv_prog_CPP
795ca3e5 3417else
d0191583
JM
3418 ac_cv_prog_CPP=$CPP
3419fi
ec6a6fbe
AK
3420{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
3421$as_echo "$CPP" >&6; }
d0191583
JM
3422ac_preproc_ok=false
3423for ac_c_preproc_warn_flag in '' yes
3424do
3425 # Use a header file that comes with gcc, so configuring glibc
3426 # with a fresh cross-compiler works.
3427 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3428 # <limits.h> exists even on freestanding compilers.
3429 # On the NeXT, cc -E runs the code through the compiler's parser,
3430 # not just through cpp. "Syntax error" is here to catch this case.
3431 cat >conftest.$ac_ext <<_ACEOF
3432/* confdefs.h. */
ad6254c5 3433_ACEOF
d0191583
JM
3434cat confdefs.h >>conftest.$ac_ext
3435cat >>conftest.$ac_ext <<_ACEOF
3436/* end confdefs.h. */
3437#ifdef __STDC__
3438# include <limits.h>
3439#else
3440# include <assert.h>
3441#endif
3442 Syntax error
3443_ACEOF
3444if { (ac_try="$ac_cpp conftest.$ac_ext"
3445case "(($ac_try" in
3446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3447 *) ac_try_echo=$ac_try;;
7a197a62 3448esac
ec6a6fbe
AK
3449eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3450$as_echo "$ac_try_echo") >&5
d0191583
JM
3451 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3452 ac_status=$?
3453 grep -v '^ *+' conftest.er1 >conftest.err
3454 rm -f conftest.er1
3455 cat conftest.err >&5
ec6a6fbe 3456 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3457 (exit $ac_status); } >/dev/null && {
3458 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3459 test ! -s conftest.err
3460 }; then
3461 :
795ca3e5 3462else
ec6a6fbe 3463 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
3464sed 's/^/| /' conftest.$ac_ext >&5
3465
3466 # Broken: fails on valid input.
3467continue
795ca3e5
AK
3468fi
3469
d0191583
JM
3470rm -f conftest.err conftest.$ac_ext
3471
3472 # OK, works on sane cases. Now check whether nonexistent headers
3473 # can be detected and how.
3474 cat >conftest.$ac_ext <<_ACEOF
3475/* confdefs.h. */
3476_ACEOF
3477cat confdefs.h >>conftest.$ac_ext
3478cat >>conftest.$ac_ext <<_ACEOF
3479/* end confdefs.h. */
3480#include <ac_nonexistent.h>
3481_ACEOF
3482if { (ac_try="$ac_cpp conftest.$ac_ext"
3483case "(($ac_try" in
3484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3485 *) ac_try_echo=$ac_try;;
3486esac
ec6a6fbe
AK
3487eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3488$as_echo "$ac_try_echo") >&5
d0191583
JM
3489 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3490 ac_status=$?
3491 grep -v '^ *+' conftest.er1 >conftest.err
3492 rm -f conftest.er1
3493 cat conftest.err >&5
ec6a6fbe 3494 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3495 (exit $ac_status); } >/dev/null && {
3496 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3497 test ! -s conftest.err
3498 }; then
3499 # Broken: success on invalid input.
3500continue
795ca3e5 3501else
ec6a6fbe 3502 $as_echo "$as_me: failed program was:" >&5
d0191583 3503sed 's/^/| /' conftest.$ac_ext >&5
ad6254c5 3504
d0191583
JM
3505 # Passes both tests.
3506ac_preproc_ok=:
3507break
795ca3e5 3508fi
d0191583
JM
3509
3510rm -f conftest.err conftest.$ac_ext
3511
3512done
3513# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3514rm -f conftest.err conftest.$ac_ext
3515if $ac_preproc_ok; then
3516 :
8106cdd5 3517else
ec6a6fbe
AK
3518 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3519$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3520{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
d0191583 3521See \`config.log' for more details." >&5
ec6a6fbe 3522$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
d0191583 3523See \`config.log' for more details." >&2;}
ec6a6fbe 3524 { (exit 1); exit 1; }; }; }
8106cdd5
AK
3525fi
3526
d0191583
JM
3527ac_ext=c
3528ac_cpp='$CPP $CPPFLAGS'
3529ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3530ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3531ac_compiler_gnu=$ac_cv_c_compiler_gnu
3532
7a197a62 3533
ec6a6fbe
AK
3534{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3535$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5556819a 3536if test "${ac_cv_path_GREP+set}" = set; then
ec6a6fbe 3537 $as_echo_n "(cached) " >&6
ad6254c5 3538else
ec6a6fbe 3539 if test -z "$GREP"; then
d0191583 3540 ac_path_GREP_found=false
ec6a6fbe
AK
3541 # Loop through the user's path and test for each of PROGNAME-LIST
3542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
d0191583 3543for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
ad6254c5
AK
3544do
3545 IFS=$as_save_IFS
3546 test -z "$as_dir" && as_dir=.
d0191583 3547 for ac_prog in grep ggrep; do
ec6a6fbe
AK
3548 for ac_exec_ext in '' $ac_executable_extensions; do
3549 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3550 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3551# Check for GNU ac_path_GREP and select it if it is found.
d0191583
JM
3552 # Check for GNU $ac_path_GREP
3553case `"$ac_path_GREP" --version 2>&1` in
3554*GNU*)
3555 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3556*)
3557 ac_count=0
ec6a6fbe 3558 $as_echo_n 0123456789 >"conftest.in"
d0191583
JM
3559 while :
3560 do
3561 cat "conftest.in" "conftest.in" >"conftest.tmp"
3562 mv "conftest.tmp" "conftest.in"
3563 cp "conftest.in" "conftest.nl"
ec6a6fbe 3564 $as_echo 'GREP' >> "conftest.nl"
d0191583
JM
3565 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3566 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3567 ac_count=`expr $ac_count + 1`
3568 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3569 # Best one so far, save it but keep looking for a better one
3570 ac_cv_path_GREP="$ac_path_GREP"
3571 ac_path_GREP_max=$ac_count
3572 fi
3573 # 10*(2^10) chars as input seems more than enough
3574 test $ac_count -gt 10 && break
3575 done
3576 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3577esac
3578
ec6a6fbe
AK
3579 $ac_path_GREP_found && break 3
3580 done
d0191583 3581 done
ad6254c5 3582done
7a197a62 3583IFS=$as_save_IFS
ec6a6fbe
AK
3584 if test -z "$ac_cv_path_GREP"; then
3585 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3586$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
d0191583 3587 { (exit 1); exit 1; }; }
ec6a6fbe 3588 fi
80992638 3589else
d0191583 3590 ac_cv_path_GREP=$GREP
8106cdd5 3591fi
8106cdd5 3592
80992638 3593fi
ec6a6fbe
AK
3594{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3595$as_echo "$ac_cv_path_GREP" >&6; }
d0191583 3596 GREP="$ac_cv_path_GREP"
795ca3e5 3597
d0191583 3598
ec6a6fbe
AK
3599{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
3600$as_echo_n "checking for egrep... " >&6; }
d0191583 3601if test "${ac_cv_path_EGREP+set}" = set; then
ec6a6fbe 3602 $as_echo_n "(cached) " >&6
8a2fc586 3603else
d0191583
JM
3604 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3605 then ac_cv_path_EGREP="$GREP -E"
3606 else
ec6a6fbe 3607 if test -z "$EGREP"; then
d0191583 3608 ac_path_EGREP_found=false
ec6a6fbe
AK
3609 # Loop through the user's path and test for each of PROGNAME-LIST
3610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
d0191583 3611for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8a2fc586
AK
3612do
3613 IFS=$as_save_IFS
3614 test -z "$as_dir" && as_dir=.
d0191583 3615 for ac_prog in egrep; do
ec6a6fbe
AK
3616 for ac_exec_ext in '' $ac_executable_extensions; do
3617 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3618 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3619# Check for GNU ac_path_EGREP and select it if it is found.
d0191583
JM
3620 # Check for GNU $ac_path_EGREP
3621case `"$ac_path_EGREP" --version 2>&1` in
3622*GNU*)
3623 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3624*)
3625 ac_count=0
ec6a6fbe 3626 $as_echo_n 0123456789 >"conftest.in"
d0191583
JM
3627 while :
3628 do
3629 cat "conftest.in" "conftest.in" >"conftest.tmp"
3630 mv "conftest.tmp" "conftest.in"
3631 cp "conftest.in" "conftest.nl"
ec6a6fbe 3632 $as_echo 'EGREP' >> "conftest.nl"
d0191583
JM
3633 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3634 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3635 ac_count=`expr $ac_count + 1`
3636 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3637 # Best one so far, save it but keep looking for a better one
3638 ac_cv_path_EGREP="$ac_path_EGREP"
3639 ac_path_EGREP_max=$ac_count
3640 fi
3641 # 10*(2^10) chars as input seems more than enough
3642 test $ac_count -gt 10 && break
3643 done
3644 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8a2fc586 3645esac
8a2fc586 3646
ec6a6fbe
AK
3647 $ac_path_EGREP_found && break 3
3648 done
d0191583 3649 done
8a2fc586 3650done
7a197a62 3651IFS=$as_save_IFS
ec6a6fbe
AK
3652 if test -z "$ac_cv_path_EGREP"; then
3653 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3654$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
d0191583 3655 { (exit 1); exit 1; }; }
ec6a6fbe 3656 fi
d0191583
JM
3657else
3658 ac_cv_path_EGREP=$EGREP
3659fi
ad6254c5 3660
d0191583
JM
3661 fi
3662fi
ec6a6fbe
AK
3663{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3664$as_echo "$ac_cv_path_EGREP" >&6; }
d0191583 3665 EGREP="$ac_cv_path_EGREP"
ad6254c5
AK
3666
3667
d0191583 3668if test $ac_cv_c_compiler_gnu = yes; then
ec6a6fbe
AK
3669 { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3670$as_echo_n "checking whether $CC needs -traditional... " >&6; }
d0191583 3671if test "${ac_cv_prog_gcc_traditional+set}" = set; then
ec6a6fbe 3672 $as_echo_n "(cached) " >&6
8106cdd5 3673else
d0191583 3674 ac_pattern="Autoconf.*'x'"
ad6254c5 3675 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3676/* confdefs.h. */
3677_ACEOF
3678cat confdefs.h >>conftest.$ac_ext
3679cat >>conftest.$ac_ext <<_ACEOF
3680/* end confdefs.h. */
d0191583
JM
3681#include <sgtty.h>
3682Autoconf TIOCGETP
ad6254c5 3683_ACEOF
d0191583
JM
3684if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3685 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3686 ac_cv_prog_gcc_traditional=yes
8106cdd5 3687else
d0191583 3688 ac_cv_prog_gcc_traditional=no
80992638 3689fi
d0191583 3690rm -f conftest*
ad6254c5 3691
8106cdd5 3692
d0191583
JM
3693 if test $ac_cv_prog_gcc_traditional = no; then
3694 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3695/* confdefs.h. */
3696_ACEOF
3697cat confdefs.h >>conftest.$ac_ext
3698cat >>conftest.$ac_ext <<_ACEOF
3699/* end confdefs.h. */
d0191583
JM
3700#include <termio.h>
3701Autoconf TCGETA
ad6254c5 3702_ACEOF
d0191583
JM
3703if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3704 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3705 ac_cv_prog_gcc_traditional=yes
7a197a62 3706fi
d0191583 3707rm -f conftest*
795ca3e5 3708
d0191583 3709 fi
795ca3e5 3710fi
ec6a6fbe
AK
3711{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3712$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
d0191583
JM
3713 if test $ac_cv_prog_gcc_traditional = yes; then
3714 CC="$CC -traditional"
3715 fi
795ca3e5
AK
3716fi
3717
d0191583
JM
3718# Find a good install program. We prefer a C program (faster),
3719# so one script is as good as another. But avoid the broken or
3720# incompatible versions:
3721# SysV /etc/install, /usr/sbin/install
3722# SunOS /usr/etc/install
3723# IRIX /sbin/install
3724# AIX /bin/install
3725# AmigaOS /C/install, which installs bootblocks on floppy discs
3726# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3727# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3728# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3729# OS/2's system install, which has a completely different semantic
3730# ./install, which can be erroneously created by make from ./install.sh.
ec6a6fbe
AK
3731# Reject install programs that cannot install multiple files.
3732{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3733$as_echo_n "checking for a BSD-compatible install... " >&6; }
d0191583
JM
3734if test -z "$INSTALL"; then
3735if test "${ac_cv_path_install+set}" = set; then
ec6a6fbe 3736 $as_echo_n "(cached) " >&6
ad6254c5 3737else
d0191583
JM
3738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3739for as_dir in $PATH
3740do
3741 IFS=$as_save_IFS
3742 test -z "$as_dir" && as_dir=.
3743 # Account for people who put trailing slashes in PATH elements.
3744case $as_dir/ in
3745 ./ | .// | /cC/* | \
3746 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3747 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3748 /usr/ucb/* ) ;;
3749 *)
3750 # OSF1 and SCO ODT 3.0 have their own names for install.
3751 # Don't use installbsd from OSF since it installs stuff as root
3752 # by default.
3753 for ac_prog in ginstall scoinst install; do
3754 for ac_exec_ext in '' $ac_executable_extensions; do
3755 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3756 if test $ac_prog = install &&
3757 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3758 # AIX install. It has an incompatible calling convention.
3759 :
3760 elif test $ac_prog = install &&
3761 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3762 # program-specific install script used by HP pwplus--don't use.
3763 :
3764 else
ec6a6fbe
AK
3765 rm -rf conftest.one conftest.two conftest.dir
3766 echo one > conftest.one
3767 echo two > conftest.two
3768 mkdir conftest.dir
3769 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3770 test -s conftest.one && test -s conftest.two &&
3771 test -s conftest.dir/conftest.one &&
3772 test -s conftest.dir/conftest.two
3773 then
3774 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3775 break 3
3776 fi
d0191583
JM
3777 fi
3778 fi
3779 done
3780 done
3781 ;;
3782esac
ec6a6fbe 3783
d0191583
JM
3784done
3785IFS=$as_save_IFS
80992638 3786
ec6a6fbe 3787rm -rf conftest.one conftest.two conftest.dir
d0191583
JM
3788
3789fi
3790 if test "${ac_cv_path_install+set}" = set; then
3791 INSTALL=$ac_cv_path_install
7a197a62 3792 else
d0191583
JM
3793 # As a last resort, use the slow shell script. Don't cache a
3794 # value for INSTALL within a source directory, because that will
3795 # break other packages using the cache if that directory is
3796 # removed, or if the value is a relative name.
3797 INSTALL=$ac_install_sh
7a197a62 3798 fi
d0191583 3799fi
ec6a6fbe
AK
3800{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3801$as_echo "$INSTALL" >&6; }
ad6254c5 3802
d0191583
JM
3803# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3804# It thinks the first close brace ends the variable substitution.
3805test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
ad6254c5 3806
d0191583 3807test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
80992638 3808
d0191583
JM
3809test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3810
ec6a6fbe
AK
3811{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
3812$as_echo_n "checking whether ln -s works... " >&6; }
d0191583
JM
3813LN_S=$as_ln_s
3814if test "$LN_S" = "ln -s"; then
ec6a6fbe
AK
3815 { $as_echo "$as_me:$LINENO: result: yes" >&5
3816$as_echo "yes" >&6; }
d0191583 3817else
ec6a6fbe
AK
3818 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3819$as_echo "no, using $LN_S" >&6; }
795ca3e5 3820fi
d0191583 3821
ec6a6fbe
AK
3822{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3823$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3824set x ${MAKE-make}
3825ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
d0191583 3826if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 3827 $as_echo_n "(cached) " >&6
7a197a62 3828else
d0191583
JM
3829 cat >conftest.make <<\_ACEOF
3830SHELL = /bin/sh
3831all:
3832 @echo '@@@%%%=$(MAKE)=@@@%%%'
3833_ACEOF
3834# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3835case `${MAKE-make} -f conftest.make 2>/dev/null` in
3836 *@@@%%%=?*=@@@%%%*)
3837 eval ac_cv_prog_make_${ac_make}_set=yes;;
3838 *)
3839 eval ac_cv_prog_make_${ac_make}_set=no;;
3840esac
3841rm -f conftest.make
ad6254c5 3842fi
d0191583 3843if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
ec6a6fbe
AK
3844 { $as_echo "$as_me:$LINENO: result: yes" >&5
3845$as_echo "yes" >&6; }
d0191583
JM
3846 SET_MAKE=
3847else
ec6a6fbe
AK
3848 { $as_echo "$as_me:$LINENO: result: no" >&5
3849$as_echo "no" >&6; }
d0191583 3850 SET_MAKE="MAKE=${MAKE-make}"
795ca3e5 3851fi
8106cdd5 3852
ec6a6fbe
AK
3853{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
3854$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
5556819a
AK
3855if test -z "$MKDIR_P"; then
3856 if test "${ac_cv_path_mkdir+set}" = set; then
ec6a6fbe 3857 $as_echo_n "(cached) " >&6
5556819a
AK
3858else
3859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3860for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3861do
3862 IFS=$as_save_IFS
3863 test -z "$as_dir" && as_dir=.
3864 for ac_prog in mkdir gmkdir; do
3865 for ac_exec_ext in '' $ac_executable_extensions; do
3866 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3867 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3868 'mkdir (GNU coreutils) '* | \
3869 'mkdir (coreutils) '* | \
3870 'mkdir (fileutils) '4.1*)
3871 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3872 break 3;;
3873 esac
3874 done
3875 done
3876done
3877IFS=$as_save_IFS
3878
3879fi
3880
3881 if test "${ac_cv_path_mkdir+set}" = set; then
3882 MKDIR_P="$ac_cv_path_mkdir -p"
3883 else
3884 # As a last resort, use the slow shell script. Don't cache a
3885 # value for MKDIR_P within a source directory, because that will
3886 # break other packages using the cache if that directory is
3887 # removed, or if the value is a relative name.
3888 test -d ./--version && rmdir ./--version
3889 MKDIR_P="$ac_install_sh -d"
3890 fi
3891fi
ec6a6fbe
AK
3892{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
3893$as_echo "$MKDIR_P" >&6; }
5556819a 3894
d0191583
JM
3895if test -n "$ac_tool_prefix"; then
3896 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3897set dummy ${ac_tool_prefix}ranlib; ac_word=$2
ec6a6fbe
AK
3898{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3899$as_echo_n "checking for $ac_word... " >&6; }
d0191583 3900if test "${ac_cv_prog_RANLIB+set}" = set; then
ec6a6fbe 3901 $as_echo_n "(cached) " >&6
d0191583
JM
3902else
3903 if test -n "$RANLIB"; then
3904 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3905else
3906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3907for as_dir in $PATH
3908do
3909 IFS=$as_save_IFS
3910 test -z "$as_dir" && as_dir=.
3911 for ac_exec_ext in '' $ac_executable_extensions; do
3912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3913 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
ec6a6fbe 3914 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
3915 break 2
3916 fi
3917done
3918done
3919IFS=$as_save_IFS
8106cdd5 3920
795ca3e5 3921fi
d0191583
JM
3922fi
3923RANLIB=$ac_cv_prog_RANLIB
3924if test -n "$RANLIB"; then
ec6a6fbe
AK
3925 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
3926$as_echo "$RANLIB" >&6; }
d0191583 3927else
ec6a6fbe
AK
3928 { $as_echo "$as_me:$LINENO: result: no" >&5
3929$as_echo "no" >&6; }
d0191583
JM
3930fi
3931
8106cdd5 3932
ad6254c5 3933fi
d0191583
JM
3934if test -z "$ac_cv_prog_RANLIB"; then
3935 ac_ct_RANLIB=$RANLIB
3936 # Extract the first word of "ranlib", so it can be a program name with args.
3937set dummy ranlib; ac_word=$2
ec6a6fbe
AK
3938{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3939$as_echo_n "checking for $ac_word... " >&6; }
d0191583 3940if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
ec6a6fbe 3941 $as_echo_n "(cached) " >&6
ad6254c5 3942else
d0191583
JM
3943 if test -n "$ac_ct_RANLIB"; then
3944 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3945else
3946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3947for as_dir in $PATH
8106cdd5 3948do
d0191583
JM
3949 IFS=$as_save_IFS
3950 test -z "$as_dir" && as_dir=.
3951 for ac_exec_ext in '' $ac_executable_extensions; do
3952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3953 ac_cv_prog_ac_ct_RANLIB="ranlib"
ec6a6fbe 3954 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
3955 break 2
3956 fi
3957done
3958done
3959IFS=$as_save_IFS
3960
3961fi
3962fi
3963ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3964if test -n "$ac_ct_RANLIB"; then
ec6a6fbe
AK
3965 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3966$as_echo "$ac_ct_RANLIB" >&6; }
ad6254c5 3967else
ec6a6fbe
AK
3968 { $as_echo "$as_me:$LINENO: result: no" >&5
3969$as_echo "no" >&6; }
d0191583 3970fi
ad6254c5 3971
d0191583
JM
3972 if test "x$ac_ct_RANLIB" = x; then
3973 RANLIB=":"
3974 else
3975 case $cross_compiling:$ac_tool_warned in
3976yes:)
ec6a6fbe
AK
3977{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3978$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
d0191583
JM
3979ac_tool_warned=yes ;;
3980esac
3981 RANLIB=$ac_ct_RANLIB
3982 fi
3983else
3984 RANLIB="$ac_cv_prog_RANLIB"
ad6254c5 3985fi
7a197a62 3986
d0191583
JM
3987# Extract the first word of "cflow", so it can be a program name with args.
3988set dummy cflow; ac_word=$2
ec6a6fbe
AK
3989{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3990$as_echo_n "checking for $ac_word... " >&6; }
d0191583 3991if test "${ac_cv_path_CFLOW_CMD+set}" = set; then
ec6a6fbe 3992 $as_echo_n "(cached) " >&6
d0191583
JM
3993else
3994 case $CFLOW_CMD in
3995 [\\/]* | ?:[\\/]*)
3996 ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path.
3997 ;;
3998 *)
3999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4000for as_dir in $PATH
4001do
4002 IFS=$as_save_IFS
4003 test -z "$as_dir" && as_dir=.
4004 for ac_exec_ext in '' $ac_executable_extensions; do
4005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4006 ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 4007 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
4008 break 2
4009 fi
4010done
4011done
4012IFS=$as_save_IFS
ad6254c5 4013
d0191583 4014 ;;
7a197a62 4015esac
d0191583
JM
4016fi
4017CFLOW_CMD=$ac_cv_path_CFLOW_CMD
4018if test -n "$CFLOW_CMD"; then
ec6a6fbe
AK
4019 { $as_echo "$as_me:$LINENO: result: $CFLOW_CMD" >&5
4020$as_echo "$CFLOW_CMD" >&6; }
80992638 4021else
ec6a6fbe
AK
4022 { $as_echo "$as_me:$LINENO: result: no" >&5
4023$as_echo "no" >&6; }
795ca3e5 4024fi
7a197a62 4025
ad6254c5 4026
d0191583
JM
4027# Extract the first word of "cscope", so it can be a program name with args.
4028set dummy cscope; ac_word=$2
ec6a6fbe
AK
4029{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4030$as_echo_n "checking for $ac_word... " >&6; }
d0191583 4031if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then
ec6a6fbe 4032 $as_echo_n "(cached) " >&6
d0191583
JM
4033else
4034 case $CSCOPE_CMD in
4035 [\\/]* | ?:[\\/]*)
4036 ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path.
4037 ;;
4038 *)
4039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4040for as_dir in $PATH
4041do
4042 IFS=$as_save_IFS
4043 test -z "$as_dir" && as_dir=.
4044 for ac_exec_ext in '' $ac_executable_extensions; do
4045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4046 ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 4047 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
4048 break 2
4049 fi
795ca3e5 4050done
d0191583
JM
4051done
4052IFS=$as_save_IFS
795ca3e5 4053
d0191583
JM
4054 ;;
4055esac
ad6254c5 4056fi
d0191583
JM
4057CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD
4058if test -n "$CSCOPE_CMD"; then
ec6a6fbe
AK
4059 { $as_echo "$as_me:$LINENO: result: $CSCOPE_CMD" >&5
4060$as_echo "$CSCOPE_CMD" >&6; }
795ca3e5 4061else
ec6a6fbe
AK
4062 { $as_echo "$as_me:$LINENO: result: no" >&5
4063$as_echo "no" >&6; }
795ca3e5 4064fi
ad6254c5 4065
7a197a62 4066
ad6254c5 4067
d0191583
JM
4068################################################################################
4069
4070
4071
4072
4073
4074ac_header_dirent=no
4075for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
ec6a6fbe
AK
4076 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4077{ $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4078$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
d0191583 4079if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 4080 $as_echo_n "(cached) " >&6
d0191583 4081else
ad6254c5 4082 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4083/* confdefs.h. */
4084_ACEOF
4085cat confdefs.h >>conftest.$ac_ext
4086cat >>conftest.$ac_ext <<_ACEOF
4087/* end confdefs.h. */
d0191583
JM
4088#include <sys/types.h>
4089#include <$ac_hdr>
4090
4091int
4092main ()
4093{
4094if ((DIR *) 0)
4095return 0;
4096 ;
4097 return 0;
4098}
ad6254c5 4099_ACEOF
d0191583
JM
4100rm -f conftest.$ac_objext
4101if { (ac_try="$ac_compile"
7a197a62
AK
4102case "(($ac_try" in
4103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4104 *) ac_try_echo=$ac_try;;
4105esac
ec6a6fbe
AK
4106eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4107$as_echo "$ac_try_echo") >&5
d0191583 4108 (eval "$ac_compile") 2>conftest.er1
ad6254c5
AK
4109 ac_status=$?
4110 grep -v '^ *+' conftest.er1 >conftest.err
4111 rm -f conftest.er1
4112 cat conftest.err >&5
ec6a6fbe 4113 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4114 (exit $ac_status); } && {
4115 test -z "$ac_c_werror_flag" ||
25fbec5b 4116 test ! -s conftest.err
d0191583
JM
4117 } && test -s conftest.$ac_objext; then
4118 eval "$as_ac_Header=yes"
ad6254c5 4119else
ec6a6fbe 4120 $as_echo "$as_me: failed program was:" >&5
ad6254c5 4121sed 's/^/| /' conftest.$ac_ext >&5
8106cdd5 4122
d0191583 4123 eval "$as_ac_Header=no"
795ca3e5 4124fi
7a197a62 4125
d0191583 4126rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
795ca3e5 4127fi
ec6a6fbe
AK
4128ac_res=`eval 'as_val=${'$as_ac_Header'}
4129 $as_echo "$as_val"'`
4130 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4131$as_echo "$ac_res" >&6; }
4132as_val=`eval 'as_val=${'$as_ac_Header'}
4133 $as_echo "$as_val"'`
4134 if test "x$as_val" = x""yes; then
d0191583 4135 cat >>confdefs.h <<_ACEOF
ec6a6fbe 4136#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
d0191583 4137_ACEOF
795ca3e5 4138
d0191583
JM
4139ac_header_dirent=$ac_hdr; break
4140fi
ad6254c5 4141
d0191583
JM
4142done
4143# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4144if test $ac_header_dirent = dirent.h; then
ec6a6fbe
AK
4145 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
4146$as_echo_n "checking for library containing opendir... " >&6; }
d0191583 4147if test "${ac_cv_search_opendir+set}" = set; then
ec6a6fbe 4148 $as_echo_n "(cached) " >&6
ad6254c5 4149else
d0191583
JM
4150 ac_func_search_save_LIBS=$LIBS
4151cat >conftest.$ac_ext <<_ACEOF
4152/* confdefs.h. */
4153_ACEOF
4154cat confdefs.h >>conftest.$ac_ext
4155cat >>conftest.$ac_ext <<_ACEOF
4156/* end confdefs.h. */
ad6254c5 4157
d0191583
JM
4158/* Override any GCC internal prototype to avoid an error.
4159 Use char because int might match the return type of a GCC
4160 builtin and then its argument prototype would still apply. */
4161#ifdef __cplusplus
4162extern "C"
4163#endif
4164char opendir ();
4165int
4166main ()
4167{
4168return opendir ();
4169 ;
4170 return 0;
4171}
4172_ACEOF
4173for ac_lib in '' dir; do
4174 if test -z "$ac_lib"; then
4175 ac_res="none required"
4176 else
4177 ac_res=-l$ac_lib
4178 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4179 fi
4180 rm -f conftest.$ac_objext conftest$ac_exeext
4181if { (ac_try="$ac_link"
4182case "(($ac_try" in
4183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4184 *) ac_try_echo=$ac_try;;
4185esac
ec6a6fbe
AK
4186eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4187$as_echo "$ac_try_echo") >&5
d0191583
JM
4188 (eval "$ac_link") 2>conftest.er1
4189 ac_status=$?
4190 grep -v '^ *+' conftest.er1 >conftest.err
4191 rm -f conftest.er1
4192 cat conftest.err >&5
ec6a6fbe 4193 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4194 (exit $ac_status); } && {
4195 test -z "$ac_c_werror_flag" ||
4196 test ! -s conftest.err
ec6a6fbe
AK
4197 } && test -s conftest$ac_exeext && {
4198 test "$cross_compiling" = yes ||
4199 $as_test_x conftest$ac_exeext
4200 }; then
d0191583
JM
4201 ac_cv_search_opendir=$ac_res
4202else
ec6a6fbe 4203 $as_echo "$as_me: failed program was:" >&5
d0191583 4204sed 's/^/| /' conftest.$ac_ext >&5
ad6254c5 4205
ad6254c5 4206
795ca3e5 4207fi
ad6254c5 4208
ec6a6fbe 4209rm -rf conftest.dSYM
d0191583
JM
4210rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4211 conftest$ac_exeext
4212 if test "${ac_cv_search_opendir+set}" = set; then
4213 break
7a197a62 4214fi
d0191583
JM
4215done
4216if test "${ac_cv_search_opendir+set}" = set; then
4217 :
7a197a62 4218else
d0191583 4219 ac_cv_search_opendir=no
7a197a62 4220fi
d0191583
JM
4221rm conftest.$ac_ext
4222LIBS=$ac_func_search_save_LIBS
7a197a62 4223fi
ec6a6fbe
AK
4224{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4225$as_echo "$ac_cv_search_opendir" >&6; }
d0191583
JM
4226ac_res=$ac_cv_search_opendir
4227if test "$ac_res" != no; then
4228 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7a197a62 4229
d0191583 4230fi
7a197a62 4231
7a197a62 4232else
ec6a6fbe
AK
4233 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
4234$as_echo_n "checking for library containing opendir... " >&6; }
d0191583 4235if test "${ac_cv_search_opendir+set}" = set; then
ec6a6fbe 4236 $as_echo_n "(cached) " >&6
7a197a62 4237else
d0191583
JM
4238 ac_func_search_save_LIBS=$LIBS
4239cat >conftest.$ac_ext <<_ACEOF
4240/* confdefs.h. */
4241_ACEOF
4242cat confdefs.h >>conftest.$ac_ext
4243cat >>conftest.$ac_ext <<_ACEOF
4244/* end confdefs.h. */
7a197a62 4245
d0191583
JM
4246/* Override any GCC internal prototype to avoid an error.
4247 Use char because int might match the return type of a GCC
4248 builtin and then its argument prototype would still apply. */
4249#ifdef __cplusplus
4250extern "C"
4251#endif
4252char opendir ();
4253int
4254main ()
4255{
4256return opendir ();
4257 ;
4258 return 0;
4259}
4260_ACEOF
4261for ac_lib in '' x; do
4262 if test -z "$ac_lib"; then
4263 ac_res="none required"
4264 else
4265 ac_res=-l$ac_lib
4266 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4267 fi
4268 rm -f conftest.$ac_objext conftest$ac_exeext
4269if { (ac_try="$ac_link"
4270case "(($ac_try" in
4271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4272 *) ac_try_echo=$ac_try;;
4273esac
ec6a6fbe
AK
4274eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4275$as_echo "$ac_try_echo") >&5
d0191583
JM
4276 (eval "$ac_link") 2>conftest.er1
4277 ac_status=$?
4278 grep -v '^ *+' conftest.er1 >conftest.err
4279 rm -f conftest.er1
4280 cat conftest.err >&5
ec6a6fbe 4281 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4282 (exit $ac_status); } && {
4283 test -z "$ac_c_werror_flag" ||
4284 test ! -s conftest.err
ec6a6fbe
AK
4285 } && test -s conftest$ac_exeext && {
4286 test "$cross_compiling" = yes ||
4287 $as_test_x conftest$ac_exeext
4288 }; then
d0191583
JM
4289 ac_cv_search_opendir=$ac_res
4290else
ec6a6fbe 4291 $as_echo "$as_me: failed program was:" >&5
d0191583 4292sed 's/^/| /' conftest.$ac_ext >&5
7a197a62
AK
4293
4294
4295fi
4296
ec6a6fbe 4297rm -rf conftest.dSYM
d0191583
JM
4298rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4299 conftest$ac_exeext
4300 if test "${ac_cv_search_opendir+set}" = set; then
4301 break
7a197a62 4302fi
d0191583
JM
4303done
4304if test "${ac_cv_search_opendir+set}" = set; then
4305 :
7a197a62 4306else
d0191583 4307 ac_cv_search_opendir=no
7a197a62 4308fi
d0191583
JM
4309rm conftest.$ac_ext
4310LIBS=$ac_func_search_save_LIBS
4311fi
ec6a6fbe
AK
4312{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4313$as_echo "$ac_cv_search_opendir" >&6; }
d0191583
JM
4314ac_res=$ac_cv_search_opendir
4315if test "$ac_res" != no; then
4316 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7a197a62 4317
7a197a62 4318fi
7a197a62 4319
d0191583 4320fi
7a197a62 4321
ec6a6fbe
AK
4322{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4323$as_echo_n "checking for ANSI C header files... " >&6; }
7a197a62 4324if test "${ac_cv_header_stdc+set}" = set; then
ec6a6fbe 4325 $as_echo_n "(cached) " >&6
7a197a62
AK
4326else
4327 cat >conftest.$ac_ext <<_ACEOF
4328/* confdefs.h. */
4329_ACEOF
4330cat confdefs.h >>conftest.$ac_ext
4331cat >>conftest.$ac_ext <<_ACEOF
4332/* end confdefs.h. */
4333#include <stdlib.h>
4334#include <stdarg.h>
4335#include <string.h>
4336#include <float.h>
4337
4338int
4339main ()
4340{
4341
4342 ;
4343 return 0;
4344}
4345_ACEOF
4346rm -f conftest.$ac_objext
4347if { (ac_try="$ac_compile"
4348case "(($ac_try" in
4349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4350 *) ac_try_echo=$ac_try;;
4351esac
ec6a6fbe
AK
4352eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4353$as_echo "$ac_try_echo") >&5
7a197a62
AK
4354 (eval "$ac_compile") 2>conftest.er1
4355 ac_status=$?
4356 grep -v '^ *+' conftest.er1 >conftest.err
4357 rm -f conftest.er1
4358 cat conftest.err >&5
ec6a6fbe 4359 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4360 (exit $ac_status); } && {
4361 test -z "$ac_c_werror_flag" ||
4362 test ! -s conftest.err
4363 } && test -s conftest.$ac_objext; then
7a197a62
AK
4364 ac_cv_header_stdc=yes
4365else
ec6a6fbe 4366 $as_echo "$as_me: failed program was:" >&5
7a197a62
AK
4367sed 's/^/| /' conftest.$ac_ext >&5
4368
4369 ac_cv_header_stdc=no
4370fi
4371
4372rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4373
4374if test $ac_cv_header_stdc = yes; then
4375 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
ad6254c5 4376 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4377/* confdefs.h. */
4378_ACEOF
4379cat confdefs.h >>conftest.$ac_ext
4380cat >>conftest.$ac_ext <<_ACEOF
4381/* end confdefs.h. */
4382#include <string.h>
8106cdd5 4383
ad6254c5
AK
4384_ACEOF
4385if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4386 $EGREP "memchr" >/dev/null 2>&1; then
4387 :
4388else
4389 ac_cv_header_stdc=no
80992638 4390fi
ad6254c5 4391rm -f conftest*
795ca3e5
AK
4392
4393fi
4394
ad6254c5
AK
4395if test $ac_cv_header_stdc = yes; then
4396 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4397 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4398/* confdefs.h. */
4399_ACEOF
4400cat confdefs.h >>conftest.$ac_ext
4401cat >>conftest.$ac_ext <<_ACEOF
4402/* end confdefs.h. */
80992638 4403#include <stdlib.h>
ad6254c5
AK
4404
4405_ACEOF
80992638 4406if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ad6254c5
AK
4407 $EGREP "free" >/dev/null 2>&1; then
4408 :
795ca3e5 4409else
ad6254c5 4410 ac_cv_header_stdc=no
795ca3e5 4411fi
80992638 4412rm -f conftest*
8106cdd5 4413
795ca3e5
AK
4414fi
4415
ad6254c5
AK
4416if test $ac_cv_header_stdc = yes; then
4417 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4418 if test "$cross_compiling" = yes; then
4419 :
795ca3e5 4420else
ad6254c5 4421 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4422/* confdefs.h. */
4423_ACEOF
4424cat confdefs.h >>conftest.$ac_ext
4425cat >>conftest.$ac_ext <<_ACEOF
4426/* end confdefs.h. */
4427#include <ctype.h>
7a197a62 4428#include <stdlib.h>
ad6254c5
AK
4429#if ((' ' & 0x0FF) == 0x020)
4430# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4431# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4432#else
4433# define ISLOWER(c) \
8a2fc586
AK
4434 (('a' <= (c) && (c) <= 'i') \
4435 || ('j' <= (c) && (c) <= 'r') \
4436 || ('s' <= (c) && (c) <= 'z'))
ad6254c5 4437# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
80992638 4438#endif
ad6254c5
AK
4439
4440#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4441int
4442main ()
4443{
4444 int i;
4445 for (i = 0; i < 256; i++)
4446 if (XOR (islower (i), ISLOWER (i))
8a2fc586 4447 || toupper (i) != TOUPPER (i))
7a197a62
AK
4448 return 2;
4449 return 0;
ad6254c5
AK
4450}
4451_ACEOF
4452rm -f conftest$ac_exeext
7a197a62
AK
4453if { (ac_try="$ac_link"
4454case "(($ac_try" in
4455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4456 *) ac_try_echo=$ac_try;;
4457esac
ec6a6fbe
AK
4458eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4459$as_echo "$ac_try_echo") >&5
7a197a62 4460 (eval "$ac_link") 2>&5
ad6254c5 4461 ac_status=$?
ec6a6fbe 4462 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 4463 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
4464 { (case "(($ac_try" in
4465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4466 *) ac_try_echo=$ac_try;;
4467esac
ec6a6fbe
AK
4468eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4469$as_echo "$ac_try_echo") >&5
7a197a62 4470 (eval "$ac_try") 2>&5
ad6254c5 4471 ac_status=$?
ec6a6fbe 4472 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
4473 (exit $ac_status); }; }; then
4474 :
795ca3e5 4475else
ec6a6fbe
AK
4476 $as_echo "$as_me: program exited with status $ac_status" >&5
4477$as_echo "$as_me: failed program was:" >&5
ad6254c5 4478sed 's/^/| /' conftest.$ac_ext >&5
8106cdd5 4479
ad6254c5
AK
4480( exit $ac_status )
4481ac_cv_header_stdc=no
80992638 4482fi
ec6a6fbe 4483rm -rf conftest.dSYM
7a197a62 4484rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 4485fi
7a197a62
AK
4486
4487
ad6254c5
AK
4488fi
4489fi
ec6a6fbe
AK
4490{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4491$as_echo "$ac_cv_header_stdc" >&6; }
ad6254c5
AK
4492if test $ac_cv_header_stdc = yes; then
4493
4494cat >>confdefs.h <<\_ACEOF
4495#define STDC_HEADERS 1
4496_ACEOF
795ca3e5
AK
4497
4498fi
4499
ec6a6fbe
AK
4500{ $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
4501$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
ad6254c5 4502if test "${ac_cv_header_sys_wait_h+set}" = set; then
ec6a6fbe 4503 $as_echo_n "(cached) " >&6
8106cdd5 4504else
ad6254c5 4505 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4506/* confdefs.h. */
4507_ACEOF
4508cat confdefs.h >>conftest.$ac_ext
4509cat >>conftest.$ac_ext <<_ACEOF
4510/* end confdefs.h. */
80992638 4511#include <sys/types.h>
ad6254c5
AK
4512#include <sys/wait.h>
4513#ifndef WEXITSTATUS
7a197a62 4514# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
ad6254c5
AK
4515#endif
4516#ifndef WIFEXITED
4517# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4518#endif
4519
4520int
4521main ()
4522{
4523 int s;
4524 wait (&s);
4525 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4526 ;
4527 return 0;
4528}
4529_ACEOF
4530rm -f conftest.$ac_objext
7a197a62
AK
4531if { (ac_try="$ac_compile"
4532case "(($ac_try" in
4533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4534 *) ac_try_echo=$ac_try;;
4535esac
ec6a6fbe
AK
4536eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4537$as_echo "$ac_try_echo") >&5
7a197a62 4538 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4539 ac_status=$?
8a2fc586
AK
4540 grep -v '^ *+' conftest.er1 >conftest.err
4541 rm -f conftest.er1
4542 cat conftest.err >&5
ec6a6fbe 4543 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4544 (exit $ac_status); } && {
4545 test -z "$ac_c_werror_flag" ||
4546 test ! -s conftest.err
4547 } && test -s conftest.$ac_objext; then
ad6254c5
AK
4548 ac_cv_header_sys_wait_h=yes
4549else
ec6a6fbe 4550 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
4551sed 's/^/| /' conftest.$ac_ext >&5
4552
7a197a62 4553 ac_cv_header_sys_wait_h=no
8106cdd5 4554fi
7a197a62
AK
4555
4556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
795ca3e5 4557fi
ec6a6fbe
AK
4558{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
4559$as_echo "$ac_cv_header_sys_wait_h" >&6; }
ad6254c5 4560if test $ac_cv_header_sys_wait_h = yes; then
8106cdd5 4561
ad6254c5
AK
4562cat >>confdefs.h <<\_ACEOF
4563#define HAVE_SYS_WAIT_H 1
4564_ACEOF
795ca3e5
AK
4565
4566fi
4567
ec6a6fbe
AK
4568{ $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4569$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
ad6254c5 4570if test "${ac_cv_header_time+set}" = set; then
ec6a6fbe 4571 $as_echo_n "(cached) " >&6
795ca3e5 4572else
ad6254c5 4573 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4574/* confdefs.h. */
4575_ACEOF
4576cat confdefs.h >>conftest.$ac_ext
4577cat >>conftest.$ac_ext <<_ACEOF
4578/* end confdefs.h. */
795ca3e5
AK
4579#include <sys/types.h>
4580#include <sys/time.h>
4581#include <time.h>
ad6254c5
AK
4582
4583int
4584main ()
4585{
4586if ((struct tm *) 0)
4587return 0;
4588 ;
4589 return 0;
4590}
4591_ACEOF
4592rm -f conftest.$ac_objext
7a197a62
AK
4593if { (ac_try="$ac_compile"
4594case "(($ac_try" in
4595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4596 *) ac_try_echo=$ac_try;;
4597esac
ec6a6fbe
AK
4598eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4599$as_echo "$ac_try_echo") >&5
7a197a62 4600 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4601 ac_status=$?
8a2fc586
AK
4602 grep -v '^ *+' conftest.er1 >conftest.err
4603 rm -f conftest.er1
4604 cat conftest.err >&5
ec6a6fbe 4605 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4606 (exit $ac_status); } && {
4607 test -z "$ac_c_werror_flag" ||
4608 test ! -s conftest.err
4609 } && test -s conftest.$ac_objext; then
795ca3e5
AK
4610 ac_cv_header_time=yes
4611else
ec6a6fbe 4612 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
4613sed 's/^/| /' conftest.$ac_ext >&5
4614
7a197a62 4615 ac_cv_header_time=no
795ca3e5 4616fi
7a197a62
AK
4617
4618rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
795ca3e5 4619fi
ec6a6fbe
AK
4620{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4621$as_echo "$ac_cv_header_time" >&6; }
80992638 4622if test $ac_cv_header_time = yes; then
ad6254c5
AK
4623
4624cat >>confdefs.h <<\_ACEOF
795ca3e5 4625#define TIME_WITH_SYS_TIME 1
ad6254c5 4626_ACEOF
b896caa1 4627
8106cdd5 4628fi
b896caa1 4629
b896caa1 4630
d0191583
JM
4631# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4642 inttypes.h stdint.h unistd.h
4643do
ec6a6fbe
AK
4644as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4645{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4646$as_echo_n "checking for $ac_header... " >&6; }
d0191583 4647if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 4648 $as_echo_n "(cached) " >&6
d0191583
JM
4649else
4650 cat >conftest.$ac_ext <<_ACEOF
4651/* confdefs.h. */
4652_ACEOF
4653cat confdefs.h >>conftest.$ac_ext
4654cat >>conftest.$ac_ext <<_ACEOF
4655/* end confdefs.h. */
4656$ac_includes_default
4657
4658#include <$ac_header>
4659_ACEOF
4660rm -f conftest.$ac_objext
4661if { (ac_try="$ac_compile"
4662case "(($ac_try" in
4663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4664 *) ac_try_echo=$ac_try;;
4665esac
ec6a6fbe
AK
4666eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4667$as_echo "$ac_try_echo") >&5
d0191583
JM
4668 (eval "$ac_compile") 2>conftest.er1
4669 ac_status=$?
4670 grep -v '^ *+' conftest.er1 >conftest.err
4671 rm -f conftest.er1
4672 cat conftest.err >&5
ec6a6fbe 4673 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4674 (exit $ac_status); } && {
4675 test -z "$ac_c_werror_flag" ||
4676 test ! -s conftest.err
4677 } && test -s conftest.$ac_objext; then
4678 eval "$as_ac_Header=yes"
4679else
ec6a6fbe 4680 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
4681sed 's/^/| /' conftest.$ac_ext >&5
4682
4683 eval "$as_ac_Header=no"
4684fi
4685
4686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4687fi
ec6a6fbe
AK
4688ac_res=`eval 'as_val=${'$as_ac_Header'}
4689 $as_echo "$as_val"'`
4690 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4691$as_echo "$ac_res" >&6; }
4692as_val=`eval 'as_val=${'$as_ac_Header'}
4693 $as_echo "$as_val"'`
4694 if test "x$as_val" = x""yes; then
d0191583 4695 cat >>confdefs.h <<_ACEOF
ec6a6fbe 4696#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
d0191583
JM
4697_ACEOF
4698
4699fi
4700
4701done
4702
b896caa1 4703
b896caa1
AK
4704
4705
795ca3e5 4706
8106cdd5 4707
80992638 4708
795ca3e5 4709
a38df97f 4710
80992638 4711
d0191583
JM
4712
4713
4714
4715
4716
4717for ac_header in locale.h stddef.h syslog.h sys/file.h sys/time.h assert.h \
4718 libgen.h signal.h sys/mman.h sys/resource.h sys/utsname.h sys/wait.h time.h
ad6254c5 4719do
ec6a6fbe 4720as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
d0191583 4721if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
4722 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4723$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 4724if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 4725 $as_echo_n "(cached) " >&6
d0191583 4726fi
ec6a6fbe
AK
4727ac_res=`eval 'as_val=${'$as_ac_Header'}
4728 $as_echo "$as_val"'`
4729 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4730$as_echo "$ac_res" >&6; }
ad6254c5 4731else
d0191583 4732 # Is the header compilable?
ec6a6fbe
AK
4733{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4734$as_echo_n "checking $ac_header usability... " >&6; }
d0191583 4735cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4736/* confdefs.h. */
4737_ACEOF
4738cat confdefs.h >>conftest.$ac_ext
4739cat >>conftest.$ac_ext <<_ACEOF
4740/* end confdefs.h. */
4741$ac_includes_default
ad6254c5
AK
4742#include <$ac_header>
4743_ACEOF
4744rm -f conftest.$ac_objext
7a197a62
AK
4745if { (ac_try="$ac_compile"
4746case "(($ac_try" in
4747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4748 *) ac_try_echo=$ac_try;;
4749esac
ec6a6fbe
AK
4750eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4751$as_echo "$ac_try_echo") >&5
7a197a62 4752 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4753 ac_status=$?
8a2fc586
AK
4754 grep -v '^ *+' conftest.er1 >conftest.err
4755 rm -f conftest.er1
4756 cat conftest.err >&5
ec6a6fbe 4757 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4758 (exit $ac_status); } && {
4759 test -z "$ac_c_werror_flag" ||
4760 test ! -s conftest.err
4761 } && test -s conftest.$ac_objext; then
d0191583 4762 ac_header_compiler=yes
ad6254c5 4763else
ec6a6fbe 4764 $as_echo "$as_me: failed program was:" >&5
ad6254c5 4765sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 4766
d0191583 4767 ac_header_compiler=no
ad6254c5 4768fi
7a197a62
AK
4769
4770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
4771{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4772$as_echo "$ac_header_compiler" >&6; }
d0191583
JM
4773
4774# Is the header present?
ec6a6fbe
AK
4775{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4776$as_echo_n "checking $ac_header presence... " >&6; }
d0191583
JM
4777cat >conftest.$ac_ext <<_ACEOF
4778/* confdefs.h. */
4779_ACEOF
4780cat confdefs.h >>conftest.$ac_ext
4781cat >>conftest.$ac_ext <<_ACEOF
4782/* end confdefs.h. */
4783#include <$ac_header>
4784_ACEOF
4785if { (ac_try="$ac_cpp conftest.$ac_ext"
4786case "(($ac_try" in
4787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4788 *) ac_try_echo=$ac_try;;
4789esac
ec6a6fbe
AK
4790eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4791$as_echo "$ac_try_echo") >&5
d0191583
JM
4792 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4793 ac_status=$?
4794 grep -v '^ *+' conftest.er1 >conftest.err
4795 rm -f conftest.er1
4796 cat conftest.err >&5
ec6a6fbe 4797 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4798 (exit $ac_status); } >/dev/null && {
4799 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4800 test ! -s conftest.err
4801 }; then
4802 ac_header_preproc=yes
4803else
ec6a6fbe 4804 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
4805sed 's/^/| /' conftest.$ac_ext >&5
4806
4807 ac_header_preproc=no
4808fi
4809
4810rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
4811{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4812$as_echo "$ac_header_preproc" >&6; }
d0191583
JM
4813
4814# So? What about this header?
4815case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4816 yes:no: )
ec6a6fbe
AK
4817 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4818$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4819 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4820$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
d0191583
JM
4821 ac_header_preproc=yes
4822 ;;
4823 no:yes:* )
ec6a6fbe
AK
4824 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4825$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4826 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4827$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4828 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4829$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4830 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4831$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4832 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4833$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4834 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4835$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
d0191583
JM
4836
4837 ;;
4838esac
ec6a6fbe
AK
4839{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4840$as_echo_n "checking for $ac_header... " >&6; }
d0191583 4841if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 4842 $as_echo_n "(cached) " >&6
d0191583
JM
4843else
4844 eval "$as_ac_Header=\$ac_header_preproc"
a38df97f 4845fi
ec6a6fbe
AK
4846ac_res=`eval 'as_val=${'$as_ac_Header'}
4847 $as_echo "$as_val"'`
4848 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4849$as_echo "$ac_res" >&6; }
d0191583
JM
4850
4851fi
ec6a6fbe
AK
4852as_val=`eval 'as_val=${'$as_ac_Header'}
4853 $as_echo "$as_val"'`
4854 if test "x$as_val" = x""yes; then
ad6254c5 4855 cat >>confdefs.h <<_ACEOF
ec6a6fbe 4856#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 4857_ACEOF
a38df97f 4858
d0191583 4859else
ec6a6fbe
AK
4860 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
4861$as_echo "$as_me: error: bailing out" >&2;}
d0191583 4862 { (exit 1); exit 1; }; }
80992638
AK
4863fi
4864
ad6254c5
AK
4865done
4866
7d1552c9 4867
d0191583
JM
4868case "$host_os" in
4869 linux*)
7d1552c9 4870
80992638 4871
5a52dca9 4872
d0191583 4873for ac_header in asm/byteorder.h linux/fs.h malloc.h
ad6254c5 4874do
ec6a6fbe 4875as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 4876if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
4877 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4878$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 4879if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 4880 $as_echo_n "(cached) " >&6
ad6254c5 4881fi
ec6a6fbe
AK
4882ac_res=`eval 'as_val=${'$as_ac_Header'}
4883 $as_echo "$as_val"'`
4884 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4885$as_echo "$ac_res" >&6; }
ad6254c5
AK
4886else
4887 # Is the header compilable?
ec6a6fbe
AK
4888{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4889$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 4890cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4891/* confdefs.h. */
4892_ACEOF
4893cat confdefs.h >>conftest.$ac_ext
4894cat >>conftest.$ac_ext <<_ACEOF
4895/* end confdefs.h. */
4896$ac_includes_default
4897#include <$ac_header>
4898_ACEOF
4899rm -f conftest.$ac_objext
7a197a62
AK
4900if { (ac_try="$ac_compile"
4901case "(($ac_try" in
4902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4903 *) ac_try_echo=$ac_try;;
4904esac
ec6a6fbe
AK
4905eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4906$as_echo "$ac_try_echo") >&5
7a197a62 4907 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4908 ac_status=$?
8a2fc586
AK
4909 grep -v '^ *+' conftest.er1 >conftest.err
4910 rm -f conftest.er1
4911 cat conftest.err >&5
ec6a6fbe 4912 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4913 (exit $ac_status); } && {
4914 test -z "$ac_c_werror_flag" ||
4915 test ! -s conftest.err
4916 } && test -s conftest.$ac_objext; then
fc54be10
AK
4917 ac_header_compiler=yes
4918else
ec6a6fbe 4919 $as_echo "$as_me: failed program was:" >&5
fc54be10
AK
4920sed 's/^/| /' conftest.$ac_ext >&5
4921
4922 ac_header_compiler=no
4923fi
4924
4925rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
4926{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4927$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
4928
4929# Is the header present?
ec6a6fbe
AK
4930{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4931$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 4932cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4933/* confdefs.h. */
4934_ACEOF
4935cat confdefs.h >>conftest.$ac_ext
4936cat >>conftest.$ac_ext <<_ACEOF
4937/* end confdefs.h. */
4938#include <$ac_header>
4939_ACEOF
7a197a62
AK
4940if { (ac_try="$ac_cpp conftest.$ac_ext"
4941case "(($ac_try" in
4942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4943 *) ac_try_echo=$ac_try;;
4944esac
ec6a6fbe
AK
4945eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4946$as_echo "$ac_try_echo") >&5
7a197a62 4947 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
4948 ac_status=$?
4949 grep -v '^ *+' conftest.er1 >conftest.err
4950 rm -f conftest.er1
4951 cat conftest.err >&5
ec6a6fbe 4952 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4953 (exit $ac_status); } >/dev/null && {
4954 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4955 test ! -s conftest.err
4956 }; then
ad6254c5
AK
4957 ac_header_preproc=yes
4958else
ec6a6fbe 4959 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
4960sed 's/^/| /' conftest.$ac_ext >&5
4961
4962 ac_header_preproc=no
4963fi
7a197a62 4964
ad6254c5 4965rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
4966{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4967$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
4968
4969# So? What about this header?
8a2fc586
AK
4970case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4971 yes:no: )
ec6a6fbe
AK
4972 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4973$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4974 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4975$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 4976 ac_header_preproc=yes
ad6254c5 4977 ;;
8a2fc586 4978 no:yes:* )
ec6a6fbe
AK
4979 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4980$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4981 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4982$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4983 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4984$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4985 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4986$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4987 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4988$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4989 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4990$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 4991
ad6254c5
AK
4992 ;;
4993esac
ec6a6fbe
AK
4994{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4995$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 4996if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 4997 $as_echo_n "(cached) " >&6
ad6254c5 4998else
8a2fc586 4999 eval "$as_ac_Header=\$ac_header_preproc"
b896caa1 5000fi
ec6a6fbe
AK
5001ac_res=`eval 'as_val=${'$as_ac_Header'}
5002 $as_echo "$as_val"'`
5003 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5004$as_echo "$ac_res" >&6; }
ad6254c5
AK
5005
5006fi
ec6a6fbe
AK
5007as_val=`eval 'as_val=${'$as_ac_Header'}
5008 $as_echo "$as_val"'`
5009 if test "x$as_val" = x""yes; then
ad6254c5 5010 cat >>confdefs.h <<_ACEOF
ec6a6fbe 5011#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 5012_ACEOF
b896caa1 5013
d8ac0fbc 5014else
ec6a6fbe
AK
5015 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5016$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 5017 { (exit 1); exit 1; }; }
80992638
AK
5018fi
5019
ad6254c5 5020done
d0191583
JM
5021 ;;
5022 darwin*)
d8ac0fbc 5023
d8ac0fbc 5024
d0191583 5025for ac_header in machine/endian.h sys/disk.h
ad6254c5 5026do
ec6a6fbe 5027as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 5028if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
5029 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5030$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 5031if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 5032 $as_echo_n "(cached) " >&6
ad6254c5 5033fi
ec6a6fbe
AK
5034ac_res=`eval 'as_val=${'$as_ac_Header'}
5035 $as_echo "$as_val"'`
5036 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5037$as_echo "$ac_res" >&6; }
ad6254c5
AK
5038else
5039 # Is the header compilable?
ec6a6fbe
AK
5040{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5041$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 5042cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5043/* confdefs.h. */
5044_ACEOF
5045cat confdefs.h >>conftest.$ac_ext
5046cat >>conftest.$ac_ext <<_ACEOF
5047/* end confdefs.h. */
5048$ac_includes_default
5049#include <$ac_header>
5050_ACEOF
5051rm -f conftest.$ac_objext
7a197a62
AK
5052if { (ac_try="$ac_compile"
5053case "(($ac_try" in
5054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5055 *) ac_try_echo=$ac_try;;
5056esac
ec6a6fbe
AK
5057eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5058$as_echo "$ac_try_echo") >&5
7a197a62 5059 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5060 ac_status=$?
8a2fc586
AK
5061 grep -v '^ *+' conftest.er1 >conftest.err
5062 rm -f conftest.er1
5063 cat conftest.err >&5
ec6a6fbe 5064 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5065 (exit $ac_status); } && {
5066 test -z "$ac_c_werror_flag" ||
5067 test ! -s conftest.err
5068 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5069 ac_header_compiler=yes
5070else
ec6a6fbe 5071 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5072sed 's/^/| /' conftest.$ac_ext >&5
5073
7a197a62 5074 ac_header_compiler=no
ad6254c5 5075fi
7a197a62
AK
5076
5077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
5078{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5079$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
5080
5081# Is the header present?
ec6a6fbe
AK
5082{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5083$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 5084cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5085/* confdefs.h. */
5086_ACEOF
5087cat confdefs.h >>conftest.$ac_ext
5088cat >>conftest.$ac_ext <<_ACEOF
5089/* end confdefs.h. */
5090#include <$ac_header>
5091_ACEOF
7a197a62
AK
5092if { (ac_try="$ac_cpp conftest.$ac_ext"
5093case "(($ac_try" in
5094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5095 *) ac_try_echo=$ac_try;;
5096esac
ec6a6fbe
AK
5097eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5098$as_echo "$ac_try_echo") >&5
7a197a62 5099 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
5100 ac_status=$?
5101 grep -v '^ *+' conftest.er1 >conftest.err
5102 rm -f conftest.er1
5103 cat conftest.err >&5
ec6a6fbe 5104 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5105 (exit $ac_status); } >/dev/null && {
5106 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5107 test ! -s conftest.err
5108 }; then
ad6254c5
AK
5109 ac_header_preproc=yes
5110else
ec6a6fbe 5111 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5112sed 's/^/| /' conftest.$ac_ext >&5
5113
5114 ac_header_preproc=no
5115fi
7a197a62 5116
ad6254c5 5117rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
5118{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5119$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
5120
5121# So? What about this header?
8a2fc586
AK
5122case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5123 yes:no: )
ec6a6fbe
AK
5124 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5125$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5126 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5127$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 5128 ac_header_preproc=yes
ad6254c5 5129 ;;
8a2fc586 5130 no:yes:* )
ec6a6fbe
AK
5131 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5132$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5133 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5134$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5135 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5136$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5137 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5138$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5139 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5140$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5141 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5142$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 5143
ad6254c5
AK
5144 ;;
5145esac
ec6a6fbe
AK
5146{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5147$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 5148if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 5149 $as_echo_n "(cached) " >&6
ad6254c5 5150else
8a2fc586 5151 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 5152fi
ec6a6fbe
AK
5153ac_res=`eval 'as_val=${'$as_ac_Header'}
5154 $as_echo "$as_val"'`
5155 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5156$as_echo "$ac_res" >&6; }
ad6254c5
AK
5157
5158fi
ec6a6fbe
AK
5159as_val=`eval 'as_val=${'$as_ac_Header'}
5160 $as_echo "$as_val"'`
5161 if test "x$as_val" = x""yes; then
ad6254c5 5162 cat >>confdefs.h <<_ACEOF
ec6a6fbe 5163#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 5164_ACEOF
4922197a 5165
4922197a 5166else
ec6a6fbe
AK
5167 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5168$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 5169 { (exit 1); exit 1; }; }
80992638
AK
5170fi
5171
ad6254c5 5172done
d0191583
JM
5173 ;;
5174esac
4922197a 5175
4922197a 5176
4922197a 5177
ad6254c5
AK
5178
5179
d0191583
JM
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192for ac_header in ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h \
5193 stdarg.h stdio.h stdlib.h string.h sys/ioctl.h sys/param.h sys/stat.h \
5194 sys/types.h unistd.h
ad6254c5 5195do
ec6a6fbe 5196as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 5197if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
5198 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5199$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 5200if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 5201 $as_echo_n "(cached) " >&6
ad6254c5 5202fi
ec6a6fbe
AK
5203ac_res=`eval 'as_val=${'$as_ac_Header'}
5204 $as_echo "$as_val"'`
5205 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5206$as_echo "$ac_res" >&6; }
795ca3e5 5207else
ad6254c5 5208 # Is the header compilable?
ec6a6fbe
AK
5209{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5210$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 5211cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5212/* confdefs.h. */
5213_ACEOF
5214cat confdefs.h >>conftest.$ac_ext
5215cat >>conftest.$ac_ext <<_ACEOF
5216/* end confdefs.h. */
5217$ac_includes_default
5218#include <$ac_header>
5219_ACEOF
5220rm -f conftest.$ac_objext
7a197a62
AK
5221if { (ac_try="$ac_compile"
5222case "(($ac_try" in
5223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5224 *) ac_try_echo=$ac_try;;
5225esac
ec6a6fbe
AK
5226eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5227$as_echo "$ac_try_echo") >&5
7a197a62 5228 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5229 ac_status=$?
8a2fc586
AK
5230 grep -v '^ *+' conftest.er1 >conftest.err
5231 rm -f conftest.er1
5232 cat conftest.err >&5
ec6a6fbe 5233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5234 (exit $ac_status); } && {
5235 test -z "$ac_c_werror_flag" ||
5236 test ! -s conftest.err
5237 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5238 ac_header_compiler=yes
5239else
ec6a6fbe 5240 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5241sed 's/^/| /' conftest.$ac_ext >&5
5242
7a197a62 5243 ac_header_compiler=no
ad6254c5 5244fi
7a197a62
AK
5245
5246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
5247{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5248$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
5249
5250# Is the header present?
ec6a6fbe
AK
5251{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5252$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 5253cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5254/* confdefs.h. */
5255_ACEOF
5256cat confdefs.h >>conftest.$ac_ext
5257cat >>conftest.$ac_ext <<_ACEOF
5258/* end confdefs.h. */
5259#include <$ac_header>
5260_ACEOF
7a197a62
AK
5261if { (ac_try="$ac_cpp conftest.$ac_ext"
5262case "(($ac_try" in
5263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5264 *) ac_try_echo=$ac_try;;
5265esac
ec6a6fbe
AK
5266eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5267$as_echo "$ac_try_echo") >&5
7a197a62 5268 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
5269 ac_status=$?
5270 grep -v '^ *+' conftest.er1 >conftest.err
5271 rm -f conftest.er1
5272 cat conftest.err >&5
ec6a6fbe 5273 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5274 (exit $ac_status); } >/dev/null && {
5275 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5276 test ! -s conftest.err
5277 }; then
ad6254c5
AK
5278 ac_header_preproc=yes
5279else
ec6a6fbe 5280 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5281sed 's/^/| /' conftest.$ac_ext >&5
5282
5283 ac_header_preproc=no
5284fi
7a197a62 5285
ad6254c5 5286rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
5287{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5288$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
5289
5290# So? What about this header?
8a2fc586
AK
5291case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5292 yes:no: )
ec6a6fbe
AK
5293 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5294$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5295 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5296$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 5297 ac_header_preproc=yes
ad6254c5 5298 ;;
8a2fc586 5299 no:yes:* )
ec6a6fbe
AK
5300 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5301$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5302 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5303$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5304 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5305$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5306 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5307$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5308 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5309$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5310 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5311$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 5312
ad6254c5
AK
5313 ;;
5314esac
ec6a6fbe
AK
5315{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5316$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 5317if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 5318 $as_echo_n "(cached) " >&6
ad6254c5 5319else
8a2fc586 5320 eval "$as_ac_Header=\$ac_header_preproc"
80992638 5321fi
ec6a6fbe
AK
5322ac_res=`eval 'as_val=${'$as_ac_Header'}
5323 $as_echo "$as_val"'`
5324 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5325$as_echo "$ac_res" >&6; }
80992638 5326
ad6254c5 5327fi
ec6a6fbe
AK
5328as_val=`eval 'as_val=${'$as_ac_Header'}
5329 $as_echo "$as_val"'`
5330 if test "x$as_val" = x""yes; then
ad6254c5 5331 cat >>confdefs.h <<_ACEOF
ec6a6fbe 5332#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 5333_ACEOF
795ca3e5 5334
795ca3e5 5335else
ec6a6fbe
AK
5336 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5337$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 5338 { (exit 1); exit 1; }; }
80992638
AK
5339fi
5340
ad6254c5 5341done
ad6254c5 5342
795ca3e5 5343
d0191583
JM
5344
5345for ac_header in termios.h sys/statvfs.h
ad6254c5 5346do
ec6a6fbe 5347as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 5348if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
5349 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5350$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 5351if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 5352 $as_echo_n "(cached) " >&6
ad6254c5 5353fi
ec6a6fbe
AK
5354ac_res=`eval 'as_val=${'$as_ac_Header'}
5355 $as_echo "$as_val"'`
5356 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5357$as_echo "$ac_res" >&6; }
ad6254c5
AK
5358else
5359 # Is the header compilable?
ec6a6fbe
AK
5360{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5361$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 5362cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5363/* confdefs.h. */
5364_ACEOF
5365cat confdefs.h >>conftest.$ac_ext
5366cat >>conftest.$ac_ext <<_ACEOF
5367/* end confdefs.h. */
5368$ac_includes_default
5369#include <$ac_header>
5370_ACEOF
5371rm -f conftest.$ac_objext
7a197a62
AK
5372if { (ac_try="$ac_compile"
5373case "(($ac_try" in
5374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5375 *) ac_try_echo=$ac_try;;
5376esac
ec6a6fbe
AK
5377eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5378$as_echo "$ac_try_echo") >&5
7a197a62 5379 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5380 ac_status=$?
8a2fc586
AK
5381 grep -v '^ *+' conftest.er1 >conftest.err
5382 rm -f conftest.er1
5383 cat conftest.err >&5
ec6a6fbe 5384 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5385 (exit $ac_status); } && {
5386 test -z "$ac_c_werror_flag" ||
5387 test ! -s conftest.err
5388 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5389 ac_header_compiler=yes
5390else
ec6a6fbe 5391 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5392sed 's/^/| /' conftest.$ac_ext >&5
5393
7a197a62 5394 ac_header_compiler=no
ad6254c5 5395fi
7a197a62
AK
5396
5397rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
5398{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5399$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
5400
5401# Is the header present?
ec6a6fbe
AK
5402{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5403$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 5404cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5405/* confdefs.h. */
5406_ACEOF
5407cat confdefs.h >>conftest.$ac_ext
5408cat >>conftest.$ac_ext <<_ACEOF
5409/* end confdefs.h. */
5410#include <$ac_header>
5411_ACEOF
7a197a62
AK
5412if { (ac_try="$ac_cpp conftest.$ac_ext"
5413case "(($ac_try" in
5414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5415 *) ac_try_echo=$ac_try;;
5416esac
ec6a6fbe
AK
5417eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5418$as_echo "$ac_try_echo") >&5
7a197a62 5419 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
5420 ac_status=$?
5421 grep -v '^ *+' conftest.er1 >conftest.err
5422 rm -f conftest.er1
5423 cat conftest.err >&5
ec6a6fbe 5424 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5425 (exit $ac_status); } >/dev/null && {
5426 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5427 test ! -s conftest.err
5428 }; then
ad6254c5
AK
5429 ac_header_preproc=yes
5430else
ec6a6fbe 5431 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5432sed 's/^/| /' conftest.$ac_ext >&5
5433
5434 ac_header_preproc=no
5435fi
7a197a62 5436
ad6254c5 5437rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
5438{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5439$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
5440
5441# So? What about this header?
8a2fc586
AK
5442case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5443 yes:no: )
ec6a6fbe
AK
5444 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5445$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5446 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5447$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 5448 ac_header_preproc=yes
ad6254c5 5449 ;;
8a2fc586 5450 no:yes:* )
ec6a6fbe
AK
5451 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5452$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5453 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5454$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5455 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5456$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5457 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5458$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5459 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5460$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5461 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5462$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 5463
ad6254c5
AK
5464 ;;
5465esac
ec6a6fbe
AK
5466{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5467$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 5468if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 5469 $as_echo_n "(cached) " >&6
ad6254c5 5470else
8a2fc586 5471 eval "$as_ac_Header=\$ac_header_preproc"
b896caa1 5472fi
ec6a6fbe
AK
5473ac_res=`eval 'as_val=${'$as_ac_Header'}
5474 $as_echo "$as_val"'`
5475 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5476$as_echo "$ac_res" >&6; }
b896caa1 5477
ad6254c5 5478fi
ec6a6fbe
AK
5479as_val=`eval 'as_val=${'$as_ac_Header'}
5480 $as_echo "$as_val"'`
5481 if test "x$as_val" = x""yes; then
ad6254c5 5482 cat >>confdefs.h <<_ACEOF
ec6a6fbe 5483#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
5484_ACEOF
5485
80992638
AK
5486fi
5487
ad6254c5 5488done
d0191583 5489
d3c8211f 5490
80992638 5491################################################################################
ec6a6fbe
AK
5492{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5493$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
ad6254c5 5494if test "${ac_cv_c_const+set}" = set; then
ec6a6fbe 5495 $as_echo_n "(cached) " >&6
d3c8211f 5496else
ad6254c5 5497 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5498/* confdefs.h. */
5499_ACEOF
5500cat confdefs.h >>conftest.$ac_ext
5501cat >>conftest.$ac_ext <<_ACEOF
5502/* end confdefs.h. */
5503
5504int
5505main ()
5506{
5507/* FIXME: Include the comments suggested by Paul. */
5508#ifndef __cplusplus
5509 /* Ultrix mips cc rejects this. */
5510 typedef int charset[2];
25fbec5b 5511 const charset cs;
ad6254c5 5512 /* SunOS 4.1.1 cc rejects this. */
25fbec5b
AK
5513 char const *const *pcpcc;
5514 char **ppc;
ad6254c5
AK
5515 /* NEC SVR4.0.2 mips cc rejects this. */
5516 struct point {int x, y;};
5517 static struct point const zero = {0,0};
5518 /* AIX XL C 1.02.0.0 rejects this.
5519 It does not let you subtract one const X* pointer from another in
5520 an arm of an if-expression whose if-part is not a constant
5521 expression */
5522 const char *g = "string";
25fbec5b 5523 pcpcc = &g + (g ? g-g : 0);
ad6254c5 5524 /* HPUX 7.0 cc rejects these. */
25fbec5b
AK
5525 ++pcpcc;
5526 ppc = (char**) pcpcc;
5527 pcpcc = (char const *const *) ppc;
ad6254c5
AK
5528 { /* SCO 3.2v4 cc rejects this. */
5529 char *t;
5530 char const *s = 0 ? (char *) 0 : (char const *) 0;
5531
5532 *t++ = 0;
7a197a62 5533 if (s) return 0;
ad6254c5
AK
5534 }
5535 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5536 int x[] = {25, 17};
5537 const int *foo = &x[0];
5538 ++foo;
5539 }
5540 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5541 typedef const int *iptr;
5542 iptr p = 0;
5543 ++p;
5544 }
5545 { /* AIX XL C 1.02.0.0 rejects this saying
5546 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5547 struct s { int j; const int *ap[3]; };
5548 struct s *b; b->j = 5;
5549 }
5550 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5551 const int foo = 10;
7a197a62 5552 if (!foo) return 0;
ad6254c5 5553 }
25fbec5b 5554 return !cs[0] && !zero.x;
ad6254c5
AK
5555#endif
5556
5557 ;
5558 return 0;
5559}
5560_ACEOF
5561rm -f conftest.$ac_objext
7a197a62
AK
5562if { (ac_try="$ac_compile"
5563case "(($ac_try" in
5564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5565 *) ac_try_echo=$ac_try;;
5566esac
ec6a6fbe
AK
5567eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5568$as_echo "$ac_try_echo") >&5
7a197a62 5569 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5570 ac_status=$?
8a2fc586
AK
5571 grep -v '^ *+' conftest.er1 >conftest.err
5572 rm -f conftest.er1
5573 cat conftest.err >&5
ec6a6fbe 5574 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5575 (exit $ac_status); } && {
5576 test -z "$ac_c_werror_flag" ||
5577 test ! -s conftest.err
5578 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5579 ac_cv_c_const=yes
5580else
ec6a6fbe 5581 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5582sed 's/^/| /' conftest.$ac_ext >&5
5583
7a197a62 5584 ac_cv_c_const=no
ad6254c5 5585fi
7a197a62
AK
5586
5587rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
80992638 5588fi
ec6a6fbe
AK
5589{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5590$as_echo "$ac_cv_c_const" >&6; }
ad6254c5 5591if test $ac_cv_c_const = no; then
80992638 5592
ad6254c5 5593cat >>confdefs.h <<\_ACEOF
ec6a6fbe 5594#define const /**/
ad6254c5 5595_ACEOF
80992638 5596
d3c8211f 5597fi
d3c8211f 5598
ec6a6fbe
AK
5599{ $as_echo "$as_me:$LINENO: checking for inline" >&5
5600$as_echo_n "checking for inline... " >&6; }
ad6254c5 5601if test "${ac_cv_c_inline+set}" = set; then
ec6a6fbe 5602 $as_echo_n "(cached) " >&6
8ef2b021 5603else
ad6254c5
AK
5604 ac_cv_c_inline=no
5605for ac_kw in inline __inline__ __inline; do
5606 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5607/* confdefs.h. */
5608_ACEOF
5609cat confdefs.h >>conftest.$ac_ext
5610cat >>conftest.$ac_ext <<_ACEOF
5611/* end confdefs.h. */
5612#ifndef __cplusplus
5613typedef int foo_t;
5614static $ac_kw foo_t static_foo () {return 0; }
5615$ac_kw foo_t foo () {return 0; }
5616#endif
80992638 5617
ad6254c5
AK
5618_ACEOF
5619rm -f conftest.$ac_objext
7a197a62
AK
5620if { (ac_try="$ac_compile"
5621case "(($ac_try" in
5622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5623 *) ac_try_echo=$ac_try;;
5624esac
ec6a6fbe
AK
5625eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5626$as_echo "$ac_try_echo") >&5
7a197a62 5627 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5628 ac_status=$?
8a2fc586
AK
5629 grep -v '^ *+' conftest.er1 >conftest.err
5630 rm -f conftest.er1
5631 cat conftest.err >&5
ec6a6fbe 5632 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5633 (exit $ac_status); } && {
5634 test -z "$ac_c_werror_flag" ||
5635 test ! -s conftest.err
5636 } && test -s conftest.$ac_objext; then
7a197a62 5637 ac_cv_c_inline=$ac_kw
ad6254c5 5638else
ec6a6fbe 5639 $as_echo "$as_me: failed program was:" >&5
ad6254c5 5640sed 's/^/| /' conftest.$ac_ext >&5
8ef2b021 5641
7a197a62 5642
8ce0cbda 5643fi
7a197a62
AK
5644
5645rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5646 test "$ac_cv_c_inline" != no && break
ad6254c5 5647done
8ce0cbda 5648
8ce0cbda 5649fi
ec6a6fbe
AK
5650{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5651$as_echo "$ac_cv_c_inline" >&6; }
8a2fc586
AK
5652
5653
ad6254c5
AK
5654case $ac_cv_c_inline in
5655 inline | yes) ;;
8a2fc586
AK
5656 *)
5657 case $ac_cv_c_inline in
5658 no) ac_val=;;
5659 *) ac_val=$ac_cv_c_inline;;
5660 esac
5661 cat >>confdefs.h <<_ACEOF
5662#ifndef __cplusplus
5663#define inline $ac_val
5664#endif
c1c065a3 5665_ACEOF
d0191583
JM
5666 ;;
5667esac
5668
ec6a6fbe
AK
5669{ $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
5670$as_echo_n "checking for struct stat.st_rdev... " >&6; }
d0191583 5671if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
ec6a6fbe 5672 $as_echo_n "(cached) " >&6
d0191583
JM
5673else
5674 cat >conftest.$ac_ext <<_ACEOF
5675/* confdefs.h. */
5676_ACEOF
5677cat confdefs.h >>conftest.$ac_ext
5678cat >>conftest.$ac_ext <<_ACEOF
5679/* end confdefs.h. */
5680$ac_includes_default
5681int
5682main ()
5683{
5684static struct stat ac_aggr;
5685if (ac_aggr.st_rdev)
5686return 0;
5687 ;
5688 return 0;
5689}
5690_ACEOF
5691rm -f conftest.$ac_objext
5692if { (ac_try="$ac_compile"
5693case "(($ac_try" in
5694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5695 *) ac_try_echo=$ac_try;;
5696esac
ec6a6fbe
AK
5697eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5698$as_echo "$ac_try_echo") >&5
5699 (eval "$ac_compile") 2>conftest.er1
5700 ac_status=$?
5701 grep -v '^ *+' conftest.er1 >conftest.err
5702 rm -f conftest.er1
5703 cat conftest.err >&5
5704 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5705 (exit $ac_status); } && {
5706 test -z "$ac_c_werror_flag" ||
5707 test ! -s conftest.err
5708 } && test -s conftest.$ac_objext; then
5709 ac_cv_member_struct_stat_st_rdev=yes
5710else
5711 $as_echo "$as_me: failed program was:" >&5
5712sed 's/^/| /' conftest.$ac_ext >&5
5713
5714 cat >conftest.$ac_ext <<_ACEOF
5715/* confdefs.h. */
5716_ACEOF
5717cat confdefs.h >>conftest.$ac_ext
5718cat >>conftest.$ac_ext <<_ACEOF
5719/* end confdefs.h. */
5720$ac_includes_default
5721int
5722main ()
5723{
5724static struct stat ac_aggr;
5725if (sizeof ac_aggr.st_rdev)
5726return 0;
5727 ;
5728 return 0;
5729}
5730_ACEOF
5731rm -f conftest.$ac_objext
5732if { (ac_try="$ac_compile"
5733case "(($ac_try" in
5734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5735 *) ac_try_echo=$ac_try;;
5736esac
5737eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5738$as_echo "$ac_try_echo") >&5
5739 (eval "$ac_compile") 2>conftest.er1
5740 ac_status=$?
5741 grep -v '^ *+' conftest.er1 >conftest.err
5742 rm -f conftest.er1
5743 cat conftest.err >&5
5744 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5745 (exit $ac_status); } && {
5746 test -z "$ac_c_werror_flag" ||
5747 test ! -s conftest.err
5748 } && test -s conftest.$ac_objext; then
5749 ac_cv_member_struct_stat_st_rdev=yes
5750else
5751 $as_echo "$as_me: failed program was:" >&5
5752sed 's/^/| /' conftest.$ac_ext >&5
5753
5754 ac_cv_member_struct_stat_st_rdev=no
5755fi
5756
5757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5758fi
5759
5760rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5761fi
5762{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
5763$as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; }
5764if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then
5765
5766cat >>confdefs.h <<_ACEOF
5767#define HAVE_STRUCT_STAT_ST_RDEV 1
5768_ACEOF
5769
5770
5771fi
5772
5773{ $as_echo "$as_me:$LINENO: checking for off_t" >&5
5774$as_echo_n "checking for off_t... " >&6; }
5775if test "${ac_cv_type_off_t+set}" = set; then
5776 $as_echo_n "(cached) " >&6
5777else
5778 ac_cv_type_off_t=no
5779cat >conftest.$ac_ext <<_ACEOF
5780/* confdefs.h. */
5781_ACEOF
5782cat confdefs.h >>conftest.$ac_ext
5783cat >>conftest.$ac_ext <<_ACEOF
5784/* end confdefs.h. */
5785$ac_includes_default
5786int
5787main ()
5788{
5789if (sizeof (off_t))
5790 return 0;
5791 ;
5792 return 0;
5793}
5794_ACEOF
5795rm -f conftest.$ac_objext
5796if { (ac_try="$ac_compile"
5797case "(($ac_try" in
5798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5799 *) ac_try_echo=$ac_try;;
5800esac
5801eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5802$as_echo "$ac_try_echo") >&5
5803 (eval "$ac_compile") 2>conftest.er1
5804 ac_status=$?
5805 grep -v '^ *+' conftest.er1 >conftest.err
5806 rm -f conftest.er1
5807 cat conftest.err >&5
5808 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5809 (exit $ac_status); } && {
5810 test -z "$ac_c_werror_flag" ||
5811 test ! -s conftest.err
5812 } && test -s conftest.$ac_objext; then
5813 cat >conftest.$ac_ext <<_ACEOF
5814/* confdefs.h. */
5815_ACEOF
5816cat confdefs.h >>conftest.$ac_ext
5817cat >>conftest.$ac_ext <<_ACEOF
5818/* end confdefs.h. */
5819$ac_includes_default
5820int
5821main ()
5822{
5823if (sizeof ((off_t)))
5824 return 0;
5825 ;
5826 return 0;
5827}
5828_ACEOF
5829rm -f conftest.$ac_objext
5830if { (ac_try="$ac_compile"
5831case "(($ac_try" in
5832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5833 *) ac_try_echo=$ac_try;;
5834esac
5835eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5836$as_echo "$ac_try_echo") >&5
5837 (eval "$ac_compile") 2>conftest.er1
5838 ac_status=$?
5839 grep -v '^ *+' conftest.er1 >conftest.err
5840 rm -f conftest.er1
5841 cat conftest.err >&5
5842 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5843 (exit $ac_status); } && {
5844 test -z "$ac_c_werror_flag" ||
5845 test ! -s conftest.err
5846 } && test -s conftest.$ac_objext; then
5847 :
5848else
5849 $as_echo "$as_me: failed program was:" >&5
5850sed 's/^/| /' conftest.$ac_ext >&5
5851
5852 ac_cv_type_off_t=yes
5853fi
5854
5855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5856else
5857 $as_echo "$as_me: failed program was:" >&5
5858sed 's/^/| /' conftest.$ac_ext >&5
5859
5860
5861fi
5862
5863rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5864fi
5865{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5866$as_echo "$ac_cv_type_off_t" >&6; }
5867if test "x$ac_cv_type_off_t" = x""yes; then
5868 :
5869else
5870
5871cat >>confdefs.h <<_ACEOF
5872#define off_t long int
5873_ACEOF
5874
5875fi
5876
5877{ $as_echo "$as_me:$LINENO: checking for pid_t" >&5
5878$as_echo_n "checking for pid_t... " >&6; }
5879if test "${ac_cv_type_pid_t+set}" = set; then
5880 $as_echo_n "(cached) " >&6
5881else
5882 ac_cv_type_pid_t=no
5883cat >conftest.$ac_ext <<_ACEOF
5884/* confdefs.h. */
5885_ACEOF
5886cat confdefs.h >>conftest.$ac_ext
5887cat >>conftest.$ac_ext <<_ACEOF
5888/* end confdefs.h. */
5889$ac_includes_default
5890int
5891main ()
5892{
5893if (sizeof (pid_t))
5894 return 0;
5895 ;
5896 return 0;
5897}
5898_ACEOF
5899rm -f conftest.$ac_objext
5900if { (ac_try="$ac_compile"
5901case "(($ac_try" in
5902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5903 *) ac_try_echo=$ac_try;;
5904esac
5905eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5906$as_echo "$ac_try_echo") >&5
d0191583
JM
5907 (eval "$ac_compile") 2>conftest.er1
5908 ac_status=$?
5909 grep -v '^ *+' conftest.er1 >conftest.err
5910 rm -f conftest.er1
5911 cat conftest.err >&5
ec6a6fbe 5912 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
5913 (exit $ac_status); } && {
5914 test -z "$ac_c_werror_flag" ||
5915 test ! -s conftest.err
5916 } && test -s conftest.$ac_objext; then
ec6a6fbe 5917 cat >conftest.$ac_ext <<_ACEOF
d0191583
JM
5918/* confdefs.h. */
5919_ACEOF
5920cat confdefs.h >>conftest.$ac_ext
5921cat >>conftest.$ac_ext <<_ACEOF
5922/* end confdefs.h. */
5923$ac_includes_default
5924int
5925main ()
5926{
ec6a6fbe
AK
5927if (sizeof ((pid_t)))
5928 return 0;
d0191583
JM
5929 ;
5930 return 0;
5931}
5932_ACEOF
5933rm -f conftest.$ac_objext
5934if { (ac_try="$ac_compile"
5935case "(($ac_try" in
5936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5937 *) ac_try_echo=$ac_try;;
5938esac
ec6a6fbe
AK
5939eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5940$as_echo "$ac_try_echo") >&5
d0191583
JM
5941 (eval "$ac_compile") 2>conftest.er1
5942 ac_status=$?
5943 grep -v '^ *+' conftest.er1 >conftest.err
5944 rm -f conftest.er1
5945 cat conftest.err >&5
ec6a6fbe 5946 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
5947 (exit $ac_status); } && {
5948 test -z "$ac_c_werror_flag" ||
5949 test ! -s conftest.err
5950 } && test -s conftest.$ac_objext; then
ec6a6fbe 5951 :
d0191583 5952else
ec6a6fbe 5953 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
5954sed 's/^/| /' conftest.$ac_ext >&5
5955
ec6a6fbe 5956 ac_cv_type_pid_t=yes
d0191583
JM
5957fi
5958
5959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
5960else
5961 $as_echo "$as_me: failed program was:" >&5
5962sed 's/^/| /' conftest.$ac_ext >&5
5963
5964
d0191583
JM
5965fi
5966
5967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5968fi
ec6a6fbe
AK
5969{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
5970$as_echo "$ac_cv_type_pid_t" >&6; }
5971if test "x$ac_cv_type_pid_t" = x""yes; then
5972 :
5973else
d0191583
JM
5974
5975cat >>confdefs.h <<_ACEOF
ec6a6fbe 5976#define pid_t int
d0191583
JM
5977_ACEOF
5978
d0191583 5979fi
8ce0cbda 5980
ec6a6fbe
AK
5981{ $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5982$as_echo_n "checking return type of signal handlers... " >&6; }
5983if test "${ac_cv_type_signal+set}" = set; then
5984 $as_echo_n "(cached) " >&6
ad6254c5 5985else
b145d876
ZK
5986 cat >conftest.$ac_ext <<_ACEOF
5987/* confdefs.h. */
5988_ACEOF
5989cat confdefs.h >>conftest.$ac_ext
5990cat >>conftest.$ac_ext <<_ACEOF
5991/* end confdefs.h. */
ec6a6fbe
AK
5992#include <sys/types.h>
5993#include <signal.h>
5994
b145d876
ZK
5995int
5996main ()
5997{
ec6a6fbe 5998return *(signal (0, 0)) (0) == 1;
ad6254c5
AK
5999 ;
6000 return 0;
6001}
6002_ACEOF
6003rm -f conftest.$ac_objext
7a197a62
AK
6004if { (ac_try="$ac_compile"
6005case "(($ac_try" in
6006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6007 *) ac_try_echo=$ac_try;;
6008esac
ec6a6fbe
AK
6009eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6010$as_echo "$ac_try_echo") >&5
7a197a62 6011 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6012 ac_status=$?
8a2fc586
AK
6013 grep -v '^ *+' conftest.er1 >conftest.err
6014 rm -f conftest.er1
6015 cat conftest.err >&5
ec6a6fbe 6016 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6017 (exit $ac_status); } && {
6018 test -z "$ac_c_werror_flag" ||
6019 test ! -s conftest.err
6020 } && test -s conftest.$ac_objext; then
ec6a6fbe 6021 ac_cv_type_signal=int
b145d876 6022else
ec6a6fbe 6023 $as_echo "$as_me: failed program was:" >&5
b145d876
ZK
6024sed 's/^/| /' conftest.$ac_ext >&5
6025
ec6a6fbe 6026 ac_cv_type_signal=void
ad6254c5 6027fi
b145d876
ZK
6028
6029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6030fi
ec6a6fbe
AK
6031{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6032$as_echo "$ac_cv_type_signal" >&6; }
80992638 6033
ad6254c5 6034cat >>confdefs.h <<_ACEOF
ec6a6fbe 6035#define RETSIGTYPE $ac_cv_type_signal
ad6254c5 6036_ACEOF
199e490e 6037
b896caa1 6038
ec6a6fbe
AK
6039{ $as_echo "$as_me:$LINENO: checking for size_t" >&5
6040$as_echo_n "checking for size_t... " >&6; }
6041if test "${ac_cv_type_size_t+set}" = set; then
6042 $as_echo_n "(cached) " >&6
ad6254c5 6043else
ec6a6fbe
AK
6044 ac_cv_type_size_t=no
6045cat >conftest.$ac_ext <<_ACEOF
b145d876
ZK
6046/* confdefs.h. */
6047_ACEOF
6048cat confdefs.h >>conftest.$ac_ext
6049cat >>conftest.$ac_ext <<_ACEOF
6050/* end confdefs.h. */
6051$ac_includes_default
6052int
6053main ()
6054{
ec6a6fbe
AK
6055if (sizeof (size_t))
6056 return 0;
ad6254c5
AK
6057 ;
6058 return 0;
6059}
6060_ACEOF
6061rm -f conftest.$ac_objext
7a197a62
AK
6062if { (ac_try="$ac_compile"
6063case "(($ac_try" in
6064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6065 *) ac_try_echo=$ac_try;;
6066esac
ec6a6fbe
AK
6067eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6068$as_echo "$ac_try_echo") >&5
7a197a62 6069 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6070 ac_status=$?
8a2fc586
AK
6071 grep -v '^ *+' conftest.er1 >conftest.err
6072 rm -f conftest.er1
6073 cat conftest.err >&5
ec6a6fbe 6074 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6075 (exit $ac_status); } && {
6076 test -z "$ac_c_werror_flag" ||
6077 test ! -s conftest.err
6078 } && test -s conftest.$ac_objext; then
d0191583
JM
6079 cat >conftest.$ac_ext <<_ACEOF
6080/* confdefs.h. */
6081_ACEOF
6082cat confdefs.h >>conftest.$ac_ext
6083cat >>conftest.$ac_ext <<_ACEOF
6084/* end confdefs.h. */
ec6a6fbe 6085$ac_includes_default
d0191583
JM
6086int
6087main ()
6088{
ec6a6fbe
AK
6089if (sizeof ((size_t)))
6090 return 0;
d0191583
JM
6091 ;
6092 return 0;
6093}
6094_ACEOF
6095rm -f conftest.$ac_objext
6096if { (ac_try="$ac_compile"
6097case "(($ac_try" in
6098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6099 *) ac_try_echo=$ac_try;;
6100esac
ec6a6fbe
AK
6101eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6102$as_echo "$ac_try_echo") >&5
d0191583
JM
6103 (eval "$ac_compile") 2>conftest.er1
6104 ac_status=$?
6105 grep -v '^ *+' conftest.er1 >conftest.err
6106 rm -f conftest.er1
6107 cat conftest.err >&5
ec6a6fbe 6108 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
6109 (exit $ac_status); } && {
6110 test -z "$ac_c_werror_flag" ||
6111 test ! -s conftest.err
6112 } && test -s conftest.$ac_objext; then
ec6a6fbe 6113 :
d0191583 6114else
ec6a6fbe 6115 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
6116sed 's/^/| /' conftest.$ac_ext >&5
6117
ec6a6fbe
AK
6118 ac_cv_type_size_t=yes
6119fi
6120
6121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6122else
6123 $as_echo "$as_me: failed program was:" >&5
6124sed 's/^/| /' conftest.$ac_ext >&5
6125
6126
d0191583
JM
6127fi
6128
6129rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6130fi
ec6a6fbe
AK
6131{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6132$as_echo "$ac_cv_type_size_t" >&6; }
6133if test "x$ac_cv_type_size_t" = x""yes; then
6134 :
6135else
d0191583
JM
6136
6137cat >>confdefs.h <<_ACEOF
ec6a6fbe 6138#define size_t unsigned int
d0191583
JM
6139_ACEOF
6140
ec6a6fbe 6141fi
d0191583 6142
ec6a6fbe
AK
6143{ $as_echo "$as_me:$LINENO: checking for mode_t" >&5
6144$as_echo_n "checking for mode_t... " >&6; }
6145if test "${ac_cv_type_mode_t+set}" = set; then
6146 $as_echo_n "(cached) " >&6
8106cdd5 6147else
ec6a6fbe
AK
6148 ac_cv_type_mode_t=no
6149cat >conftest.$ac_ext <<_ACEOF
b145d876
ZK
6150/* confdefs.h. */
6151_ACEOF
6152cat confdefs.h >>conftest.$ac_ext
6153cat >>conftest.$ac_ext <<_ACEOF
6154/* end confdefs.h. */
6155$ac_includes_default
6156int
6157main ()
6158{
ec6a6fbe
AK
6159if (sizeof (mode_t))
6160 return 0;
ad6254c5
AK
6161 ;
6162 return 0;
6163}
6164_ACEOF
6165rm -f conftest.$ac_objext
7a197a62
AK
6166if { (ac_try="$ac_compile"
6167case "(($ac_try" in
6168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6169 *) ac_try_echo=$ac_try;;
6170esac
ec6a6fbe
AK
6171eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6172$as_echo "$ac_try_echo") >&5
7a197a62 6173 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6174 ac_status=$?
8a2fc586
AK
6175 grep -v '^ *+' conftest.er1 >conftest.err
6176 rm -f conftest.er1
6177 cat conftest.err >&5
ec6a6fbe 6178 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6179 (exit $ac_status); } && {
6180 test -z "$ac_c_werror_flag" ||
6181 test ! -s conftest.err
6182 } && test -s conftest.$ac_objext; then
b145d876
ZK
6183 cat >conftest.$ac_ext <<_ACEOF
6184/* confdefs.h. */
6185_ACEOF
6186cat confdefs.h >>conftest.$ac_ext
6187cat >>conftest.$ac_ext <<_ACEOF
6188/* end confdefs.h. */
6189$ac_includes_default
6190int
6191main ()
6192{
ec6a6fbe
AK
6193if (sizeof ((mode_t)))
6194 return 0;
ad6254c5
AK
6195 ;
6196 return 0;
6197}
6198_ACEOF
6199rm -f conftest.$ac_objext
7a197a62
AK
6200if { (ac_try="$ac_compile"
6201case "(($ac_try" in
6202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6203 *) ac_try_echo=$ac_try;;
6204esac
ec6a6fbe
AK
6205eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6206$as_echo "$ac_try_echo") >&5
7a197a62 6207 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6208 ac_status=$?
8a2fc586
AK
6209 grep -v '^ *+' conftest.er1 >conftest.err
6210 rm -f conftest.er1
6211 cat conftest.err >&5
ec6a6fbe 6212 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6213 (exit $ac_status); } && {
6214 test -z "$ac_c_werror_flag" ||
6215 test ! -s conftest.err
6216 } && test -s conftest.$ac_objext; then
ec6a6fbe
AK
6217 :
6218else
6219 $as_echo "$as_me: failed program was:" >&5
6220sed 's/^/| /' conftest.$ac_ext >&5
6221
6222 ac_cv_type_mode_t=yes
6223fi
6224
6225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fddafd51 6226else
ec6a6fbe 6227 $as_echo "$as_me: failed program was:" >&5
fddafd51
ZK
6228sed 's/^/| /' conftest.$ac_ext >&5
6229
ec6a6fbe 6230
80992638 6231fi
7a197a62
AK
6232
6233rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 6234fi
ec6a6fbe
AK
6235{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6236$as_echo "$ac_cv_type_mode_t" >&6; }
6237if test "x$ac_cv_type_mode_t" = x""yes; then
ad6254c5
AK
6238 :
6239else
80992638 6240
ad6254c5
AK
6241cat >>confdefs.h <<_ACEOF
6242#define mode_t int
6243_ACEOF
6244
6245fi
6246
ec6a6fbe
AK
6247{ $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
6248$as_echo_n "checking for struct stat.st_rdev... " >&6; }
ad6254c5 6249if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
ec6a6fbe 6250 $as_echo_n "(cached) " >&6
ad6254c5
AK
6251else
6252 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6253/* confdefs.h. */
6254_ACEOF
6255cat confdefs.h >>conftest.$ac_ext
6256cat >>conftest.$ac_ext <<_ACEOF
6257/* end confdefs.h. */
6258$ac_includes_default
6259int
6260main ()
6261{
6262static struct stat ac_aggr;
6263if (ac_aggr.st_rdev)
6264return 0;
6265 ;
6266 return 0;
6267}
6268_ACEOF
6269rm -f conftest.$ac_objext
7a197a62
AK
6270if { (ac_try="$ac_compile"
6271case "(($ac_try" in
6272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6273 *) ac_try_echo=$ac_try;;
6274esac
ec6a6fbe
AK
6275eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6276$as_echo "$ac_try_echo") >&5
7a197a62 6277 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6278 ac_status=$?
8a2fc586
AK
6279 grep -v '^ *+' conftest.er1 >conftest.err
6280 rm -f conftest.er1
6281 cat conftest.err >&5
ec6a6fbe 6282 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6283 (exit $ac_status); } && {
6284 test -z "$ac_c_werror_flag" ||
6285 test ! -s conftest.err
6286 } && test -s conftest.$ac_objext; then
ad6254c5
AK
6287 ac_cv_member_struct_stat_st_rdev=yes
6288else
ec6a6fbe 6289 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6290sed 's/^/| /' conftest.$ac_ext >&5
6291
7a197a62 6292 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6293/* confdefs.h. */
6294_ACEOF
6295cat confdefs.h >>conftest.$ac_ext
6296cat >>conftest.$ac_ext <<_ACEOF
6297/* end confdefs.h. */
6298$ac_includes_default
6299int
6300main ()
6301{
6302static struct stat ac_aggr;
6303if (sizeof ac_aggr.st_rdev)
6304return 0;
6305 ;
6306 return 0;
6307}
6308_ACEOF
6309rm -f conftest.$ac_objext
7a197a62
AK
6310if { (ac_try="$ac_compile"
6311case "(($ac_try" in
6312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6313 *) ac_try_echo=$ac_try;;
6314esac
ec6a6fbe
AK
6315eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6316$as_echo "$ac_try_echo") >&5
7a197a62 6317 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6318 ac_status=$?
8a2fc586
AK
6319 grep -v '^ *+' conftest.er1 >conftest.err
6320 rm -f conftest.er1
6321 cat conftest.err >&5
ec6a6fbe 6322 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6323 (exit $ac_status); } && {
6324 test -z "$ac_c_werror_flag" ||
6325 test ! -s conftest.err
6326 } && test -s conftest.$ac_objext; then
ad6254c5
AK
6327 ac_cv_member_struct_stat_st_rdev=yes
6328else
ec6a6fbe 6329 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6330sed 's/^/| /' conftest.$ac_ext >&5
6331
7a197a62 6332 ac_cv_member_struct_stat_st_rdev=no
ad6254c5 6333fi
7a197a62
AK
6334
6335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 6336fi
7a197a62
AK
6337
6338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 6339fi
ec6a6fbe
AK
6340{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
6341$as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; }
6342if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then
ad6254c5
AK
6343
6344cat >>confdefs.h <<_ACEOF
6345#define HAVE_STRUCT_STAT_ST_RDEV 1
6346_ACEOF
6347
6348
ad6254c5
AK
6349fi
6350
ec6a6fbe
AK
6351{ $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6352$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
ad6254c5 6353if test "${ac_cv_struct_tm+set}" = set; then
ec6a6fbe 6354 $as_echo_n "(cached) " >&6
ad6254c5
AK
6355else
6356 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6357/* confdefs.h. */
6358_ACEOF
6359cat confdefs.h >>conftest.$ac_ext
6360cat >>conftest.$ac_ext <<_ACEOF
6361/* end confdefs.h. */
6362#include <sys/types.h>
6363#include <time.h>
6364
6365int
6366main ()
6367{
25fbec5b
AK
6368struct tm tm;
6369 int *p = &tm.tm_sec;
ec6a6fbe 6370 return !p;
ad6254c5
AK
6371 ;
6372 return 0;
6373}
6374_ACEOF
6375rm -f conftest.$ac_objext
7a197a62
AK
6376if { (ac_try="$ac_compile"
6377case "(($ac_try" in
6378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6379 *) ac_try_echo=$ac_try;;
6380esac
ec6a6fbe
AK
6381eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6382$as_echo "$ac_try_echo") >&5
7a197a62 6383 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6384 ac_status=$?
8a2fc586
AK
6385 grep -v '^ *+' conftest.er1 >conftest.err
6386 rm -f conftest.er1
6387 cat conftest.err >&5
ec6a6fbe 6388 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6389 (exit $ac_status); } && {
6390 test -z "$ac_c_werror_flag" ||
6391 test ! -s conftest.err
6392 } && test -s conftest.$ac_objext; then
ad6254c5
AK
6393 ac_cv_struct_tm=time.h
6394else
ec6a6fbe 6395 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6396sed 's/^/| /' conftest.$ac_ext >&5
6397
7a197a62 6398 ac_cv_struct_tm=sys/time.h
ad6254c5 6399fi
7a197a62
AK
6400
6401rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 6402fi
ec6a6fbe
AK
6403{ $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6404$as_echo "$ac_cv_struct_tm" >&6; }
ad6254c5
AK
6405if test $ac_cv_struct_tm = sys/time.h; then
6406
6407cat >>confdefs.h <<\_ACEOF
6408#define TM_IN_SYS_TIME 1
6409_ACEOF
6410
6411fi
809fae91 6412
795ca3e5 6413
80992638 6414################################################################################
ad6254c5
AK
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
d0191583
JM
6429
6430
6431
6432for ac_func in gethostname getpagesize memset mkdir rmdir munmap setlocale \
6433 strcasecmp strchr strdup strncasecmp strerror strrchr strstr strtol strtoul \
6434 uname
ad6254c5 6435do
ec6a6fbe
AK
6436as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6437{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6438$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 6439if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 6440 $as_echo_n "(cached) " >&6
795ca3e5 6441else
ad6254c5 6442 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6443/* confdefs.h. */
6444_ACEOF
6445cat confdefs.h >>conftest.$ac_ext
6446cat >>conftest.$ac_ext <<_ACEOF
6447/* end confdefs.h. */
8a2fc586
AK
6448/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6449 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6450#define $ac_func innocuous_$ac_func
6451
ad6254c5
AK
6452/* System header to define __stub macros and hopefully few prototypes,
6453 which can conflict with char $ac_func (); below.
6454 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6455 <limits.h> exists even on freestanding compilers. */
8a2fc586 6456
ad6254c5
AK
6457#ifdef __STDC__
6458# include <limits.h>
6459#else
6460# include <assert.h>
6461#endif
8a2fc586
AK
6462
6463#undef $ac_func
6464
7a197a62
AK
6465/* Override any GCC internal prototype to avoid an error.
6466 Use char because int might match the return type of a GCC
6467 builtin and then its argument prototype would still apply. */
ad6254c5
AK
6468#ifdef __cplusplus
6469extern "C"
ad6254c5 6470#endif
ad6254c5
AK
6471char $ac_func ();
6472/* The GNU C library defines this for functions which it implements
6473 to always fail with ENOSYS. Some functions are actually named
6474 something starting with __ and the normal name is an alias. */
7a197a62 6475#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 6476choke me
ad6254c5
AK
6477#endif
6478
6479int
6480main ()
6481{
7a197a62 6482return $ac_func ();
ad6254c5
AK
6483 ;
6484 return 0;
6485}
6486_ACEOF
6487rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
6488if { (ac_try="$ac_link"
6489case "(($ac_try" in
6490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6491 *) ac_try_echo=$ac_try;;
6492esac
ec6a6fbe
AK
6493eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6494$as_echo "$ac_try_echo") >&5
7a197a62 6495 (eval "$ac_link") 2>conftest.er1
ad6254c5 6496 ac_status=$?
8a2fc586
AK
6497 grep -v '^ *+' conftest.er1 >conftest.err
6498 rm -f conftest.er1
6499 cat conftest.err >&5
ec6a6fbe 6500 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6501 (exit $ac_status); } && {
6502 test -z "$ac_c_werror_flag" ||
6503 test ! -s conftest.err
ec6a6fbe
AK
6504 } && test -s conftest$ac_exeext && {
6505 test "$cross_compiling" = yes ||
6506 $as_test_x conftest$ac_exeext
6507 }; then
fc54be10
AK
6508 eval "$as_ac_var=yes"
6509else
ec6a6fbe 6510 $as_echo "$as_me: failed program was:" >&5
fc54be10
AK
6511sed 's/^/| /' conftest.$ac_ext >&5
6512
6513 eval "$as_ac_var=no"
6514fi
6515
ec6a6fbe 6516rm -rf conftest.dSYM
25fbec5b 6517rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
fc54be10
AK
6518 conftest$ac_exeext conftest.$ac_ext
6519fi
ec6a6fbe
AK
6520ac_res=`eval 'as_val=${'$as_ac_var'}
6521 $as_echo "$as_val"'`
6522 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6523$as_echo "$ac_res" >&6; }
6524as_val=`eval 'as_val=${'$as_ac_var'}
6525 $as_echo "$as_val"'`
6526 if test "x$as_val" = x""yes; then
ad6254c5 6527 cat >>confdefs.h <<_ACEOF
ec6a6fbe 6528#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
6529_ACEOF
6530
6531else
ec6a6fbe
AK
6532 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
6533$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5
AK
6534 { (exit 1); exit 1; }; }
6535fi
6536done
795ca3e5 6537
a0f9708e
AK
6538
6539for ac_func in siginterrupt
6540do
6541as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6542{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6543$as_echo_n "checking for $ac_func... " >&6; }
6544if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6545 $as_echo_n "(cached) " >&6
6546else
6547 cat >conftest.$ac_ext <<_ACEOF
6548/* confdefs.h. */
6549_ACEOF
6550cat confdefs.h >>conftest.$ac_ext
6551cat >>conftest.$ac_ext <<_ACEOF
6552/* end confdefs.h. */
6553/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6554 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6555#define $ac_func innocuous_$ac_func
6556
6557/* System header to define __stub macros and hopefully few prototypes,
6558 which can conflict with char $ac_func (); below.
6559 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6560 <limits.h> exists even on freestanding compilers. */
6561
6562#ifdef __STDC__
6563# include <limits.h>
6564#else
6565# include <assert.h>
6566#endif
6567
6568#undef $ac_func
6569
6570/* Override any GCC internal prototype to avoid an error.
6571 Use char because int might match the return type of a GCC
6572 builtin and then its argument prototype would still apply. */
6573#ifdef __cplusplus
6574extern "C"
6575#endif
6576char $ac_func ();
6577/* The GNU C library defines this for functions which it implements
6578 to always fail with ENOSYS. Some functions are actually named
6579 something starting with __ and the normal name is an alias. */
6580#if defined __stub_$ac_func || defined __stub___$ac_func
6581choke me
6582#endif
6583
6584int
6585main ()
6586{
6587return $ac_func ();
6588 ;
6589 return 0;
6590}
6591_ACEOF
6592rm -f conftest.$ac_objext conftest$ac_exeext
6593if { (ac_try="$ac_link"
6594case "(($ac_try" in
6595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6596 *) ac_try_echo=$ac_try;;
6597esac
6598eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6599$as_echo "$ac_try_echo") >&5
6600 (eval "$ac_link") 2>conftest.er1
6601 ac_status=$?
6602 grep -v '^ *+' conftest.er1 >conftest.err
6603 rm -f conftest.er1
6604 cat conftest.err >&5
6605 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6606 (exit $ac_status); } && {
6607 test -z "$ac_c_werror_flag" ||
6608 test ! -s conftest.err
6609 } && test -s conftest$ac_exeext && {
6610 test "$cross_compiling" = yes ||
6611 $as_test_x conftest$ac_exeext
6612 }; then
6613 eval "$as_ac_var=yes"
6614else
6615 $as_echo "$as_me: failed program was:" >&5
6616sed 's/^/| /' conftest.$ac_ext >&5
6617
6618 eval "$as_ac_var=no"
6619fi
6620
6621rm -rf conftest.dSYM
6622rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6623 conftest$ac_exeext conftest.$ac_ext
6624fi
6625ac_res=`eval 'as_val=${'$as_ac_var'}
6626 $as_echo "$as_val"'`
6627 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6628$as_echo "$ac_res" >&6; }
6629as_val=`eval 'as_val=${'$as_ac_var'}
6630 $as_echo "$as_val"'`
6631 if test "x$as_val" = x""yes; then
6632 cat >>confdefs.h <<_ACEOF
6633#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6634_ACEOF
6635
6636fi
6637done
6638
ad6254c5
AK
6639# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6640# for constant arguments. Useless!
ec6a6fbe
AK
6641{ $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
6642$as_echo_n "checking for working alloca.h... " >&6; }
ad6254c5 6643if test "${ac_cv_working_alloca_h+set}" = set; then
ec6a6fbe 6644 $as_echo_n "(cached) " >&6
ad6254c5
AK
6645else
6646 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6647/* confdefs.h. */
6648_ACEOF
6649cat confdefs.h >>conftest.$ac_ext
6650cat >>conftest.$ac_ext <<_ACEOF
6651/* end confdefs.h. */
6652#include <alloca.h>
6653int
6654main ()
6655{
6656char *p = (char *) alloca (2 * sizeof (int));
7a197a62 6657 if (p) return 0;
ad6254c5
AK
6658 ;
6659 return 0;
6660}
6661_ACEOF
6662rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
6663if { (ac_try="$ac_link"
6664case "(($ac_try" in
6665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6666 *) ac_try_echo=$ac_try;;
6667esac
ec6a6fbe
AK
6668eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6669$as_echo "$ac_try_echo") >&5
7a197a62 6670 (eval "$ac_link") 2>conftest.er1
ad6254c5 6671 ac_status=$?
8a2fc586
AK
6672 grep -v '^ *+' conftest.er1 >conftest.err
6673 rm -f conftest.er1
6674 cat conftest.err >&5
ec6a6fbe 6675 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6676 (exit $ac_status); } && {
6677 test -z "$ac_c_werror_flag" ||
6678 test ! -s conftest.err
ec6a6fbe
AK
6679 } && test -s conftest$ac_exeext && {
6680 test "$cross_compiling" = yes ||
6681 $as_test_x conftest$ac_exeext
6682 }; then
ad6254c5
AK
6683 ac_cv_working_alloca_h=yes
6684else
ec6a6fbe 6685 $as_echo "$as_me: failed program was:" >&5
ad6254c5 6686sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 6687
7a197a62 6688 ac_cv_working_alloca_h=no
ad6254c5 6689fi
7a197a62 6690
ec6a6fbe 6691rm -rf conftest.dSYM
25fbec5b 6692rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 6693 conftest$ac_exeext conftest.$ac_ext
ad6254c5 6694fi
ec6a6fbe
AK
6695{ $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6696$as_echo "$ac_cv_working_alloca_h" >&6; }
ad6254c5
AK
6697if test $ac_cv_working_alloca_h = yes; then
6698
6699cat >>confdefs.h <<\_ACEOF
6700#define HAVE_ALLOCA_H 1
6701_ACEOF
6702
6703fi
6704
ec6a6fbe
AK
6705{ $as_echo "$as_me:$LINENO: checking for alloca" >&5
6706$as_echo_n "checking for alloca... " >&6; }
ad6254c5 6707if test "${ac_cv_func_alloca_works+set}" = set; then
ec6a6fbe 6708 $as_echo_n "(cached) " >&6
ad6254c5
AK
6709else
6710 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6711/* confdefs.h. */
6712_ACEOF
6713cat confdefs.h >>conftest.$ac_ext
6714cat >>conftest.$ac_ext <<_ACEOF
6715/* end confdefs.h. */
6716#ifdef __GNUC__
6717# define alloca __builtin_alloca
6718#else
6719# ifdef _MSC_VER
6720# include <malloc.h>
6721# define alloca _alloca
6722# else
25fbec5b 6723# ifdef HAVE_ALLOCA_H
ad6254c5
AK
6724# include <alloca.h>
6725# else
6726# ifdef _AIX
6727 #pragma alloca
6728# else
6729# ifndef alloca /* predefined by HP cc +Olibcalls */
6730char *alloca ();
6731# endif
6732# endif
6733# endif
6734# endif
6735#endif
6736
6737int
6738main ()
6739{
6740char *p = (char *) alloca (1);
7a197a62 6741 if (p) return 0;
ad6254c5
AK
6742 ;
6743 return 0;
6744}
6745_ACEOF
6746rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
6747if { (ac_try="$ac_link"
6748case "(($ac_try" in
6749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6750 *) ac_try_echo=$ac_try;;
6751esac
ec6a6fbe
AK
6752eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6753$as_echo "$ac_try_echo") >&5
7a197a62 6754 (eval "$ac_link") 2>conftest.er1
ad6254c5 6755 ac_status=$?
8a2fc586
AK
6756 grep -v '^ *+' conftest.er1 >conftest.err
6757 rm -f conftest.er1
6758 cat conftest.err >&5
ec6a6fbe 6759 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6760 (exit $ac_status); } && {
6761 test -z "$ac_c_werror_flag" ||
6762 test ! -s conftest.err
ec6a6fbe
AK
6763 } && test -s conftest$ac_exeext && {
6764 test "$cross_compiling" = yes ||
6765 $as_test_x conftest$ac_exeext
6766 }; then
ad6254c5
AK
6767 ac_cv_func_alloca_works=yes
6768else
ec6a6fbe 6769 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6770sed 's/^/| /' conftest.$ac_ext >&5
6771
7a197a62 6772 ac_cv_func_alloca_works=no
ad6254c5 6773fi
7a197a62 6774
ec6a6fbe 6775rm -rf conftest.dSYM
25fbec5b 6776rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 6777 conftest$ac_exeext conftest.$ac_ext
ad6254c5 6778fi
ec6a6fbe
AK
6779{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6780$as_echo "$ac_cv_func_alloca_works" >&6; }
ad6254c5
AK
6781
6782if test $ac_cv_func_alloca_works = yes; then
6783
6784cat >>confdefs.h <<\_ACEOF
6785#define HAVE_ALLOCA 1
6786_ACEOF
6787
6788else
6789 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6790# that cause trouble. Some versions do not even contain alloca or
6791# contain a buggy version. If you still want to use their alloca,
6792# use ar to extract alloca.o from them instead of compiling alloca.c.
6793
7a197a62 6794ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
ad6254c5
AK
6795
6796cat >>confdefs.h <<\_ACEOF
6797#define C_ALLOCA 1
6798_ACEOF
6799
6800
ec6a6fbe
AK
6801{ $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6802$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
ad6254c5 6803if test "${ac_cv_os_cray+set}" = set; then
ec6a6fbe 6804 $as_echo_n "(cached) " >&6
ad6254c5
AK
6805else
6806 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6807/* confdefs.h. */
6808_ACEOF
6809cat confdefs.h >>conftest.$ac_ext
6810cat >>conftest.$ac_ext <<_ACEOF
6811/* end confdefs.h. */
7a197a62 6812#if defined CRAY && ! defined CRAY2
ad6254c5
AK
6813webecray
6814#else
6815wenotbecray
6816#endif
6817
6818_ACEOF
795ca3e5 6819if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ad6254c5
AK
6820 $EGREP "webecray" >/dev/null 2>&1; then
6821 ac_cv_os_cray=yes
6822else
6823 ac_cv_os_cray=no
795ca3e5
AK
6824fi
6825rm -f conftest*
6826
795ca3e5 6827fi
ec6a6fbe
AK
6828{ $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6829$as_echo "$ac_cv_os_cray" >&6; }
ad6254c5
AK
6830if test $ac_cv_os_cray = yes; then
6831 for ac_func in _getb67 GETB67 getb67; do
ec6a6fbe
AK
6832 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6833{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6834$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 6835if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 6836 $as_echo_n "(cached) " >&6
ad6254c5
AK
6837else
6838 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6839/* confdefs.h. */
6840_ACEOF
6841cat confdefs.h >>conftest.$ac_ext
6842cat >>conftest.$ac_ext <<_ACEOF
6843/* end confdefs.h. */
8a2fc586
AK
6844/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6845 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6846#define $ac_func innocuous_$ac_func
6847
ad6254c5
AK
6848/* System header to define __stub macros and hopefully few prototypes,
6849 which can conflict with char $ac_func (); below.
6850 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6851 <limits.h> exists even on freestanding compilers. */
8a2fc586 6852
ad6254c5
AK
6853#ifdef __STDC__
6854# include <limits.h>
6855#else
6856# include <assert.h>
6857#endif
8a2fc586
AK
6858
6859#undef $ac_func
6860
7a197a62
AK
6861/* Override any GCC internal prototype to avoid an error.
6862 Use char because int might match the return type of a GCC
6863 builtin and then its argument prototype would still apply. */
ad6254c5
AK
6864#ifdef __cplusplus
6865extern "C"
ad6254c5 6866#endif
ad6254c5
AK
6867char $ac_func ();
6868/* The GNU C library defines this for functions which it implements
6869 to always fail with ENOSYS. Some functions are actually named
6870 something starting with __ and the normal name is an alias. */
7a197a62 6871#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 6872choke me
ad6254c5
AK
6873#endif
6874
6875int
6876main ()
6877{
7a197a62 6878return $ac_func ();
ad6254c5
AK
6879 ;
6880 return 0;
6881}
6882_ACEOF
6883rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
6884if { (ac_try="$ac_link"
6885case "(($ac_try" in
6886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6887 *) ac_try_echo=$ac_try;;
6888esac
ec6a6fbe
AK
6889eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6890$as_echo "$ac_try_echo") >&5
7a197a62 6891 (eval "$ac_link") 2>conftest.er1
ad6254c5 6892 ac_status=$?
8a2fc586
AK
6893 grep -v '^ *+' conftest.er1 >conftest.err
6894 rm -f conftest.er1
6895 cat conftest.err >&5
ec6a6fbe 6896 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6897 (exit $ac_status); } && {
6898 test -z "$ac_c_werror_flag" ||
6899 test ! -s conftest.err
ec6a6fbe
AK
6900 } && test -s conftest$ac_exeext && {
6901 test "$cross_compiling" = yes ||
6902 $as_test_x conftest$ac_exeext
6903 }; then
ad6254c5
AK
6904 eval "$as_ac_var=yes"
6905else
ec6a6fbe 6906 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6907sed 's/^/| /' conftest.$ac_ext >&5
6908
7a197a62 6909 eval "$as_ac_var=no"
ad6254c5 6910fi
7a197a62 6911
ec6a6fbe 6912rm -rf conftest.dSYM
25fbec5b 6913rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 6914 conftest$ac_exeext conftest.$ac_ext
ad6254c5 6915fi
ec6a6fbe
AK
6916ac_res=`eval 'as_val=${'$as_ac_var'}
6917 $as_echo "$as_val"'`
6918 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6919$as_echo "$ac_res" >&6; }
6920as_val=`eval 'as_val=${'$as_ac_var'}
6921 $as_echo "$as_val"'`
6922 if test "x$as_val" = x""yes; then
80992638 6923
ad6254c5
AK
6924cat >>confdefs.h <<_ACEOF
6925#define CRAY_STACKSEG_END $ac_func
6926_ACEOF
6927
6928 break
6929fi
6930
6931 done
6932fi
6933
ec6a6fbe
AK
6934{ $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6935$as_echo_n "checking stack direction for C alloca... " >&6; }
ad6254c5 6936if test "${ac_cv_c_stack_direction+set}" = set; then
ec6a6fbe 6937 $as_echo_n "(cached) " >&6
ad6254c5
AK
6938else
6939 if test "$cross_compiling" = yes; then
6940 ac_cv_c_stack_direction=0
6941else
6942 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6943/* confdefs.h. */
6944_ACEOF
6945cat confdefs.h >>conftest.$ac_ext
6946cat >>conftest.$ac_ext <<_ACEOF
6947/* end confdefs.h. */
7a197a62 6948$ac_includes_default
ad6254c5
AK
6949int
6950find_stack_direction ()
6951{
6952 static char *addr = 0;
6953 auto char dummy;
6954 if (addr == 0)
6955 {
6956 addr = &dummy;
6957 return find_stack_direction ();
6958 }
6959 else
6960 return (&dummy > addr) ? 1 : -1;
6961}
6962
6963int
6964main ()
6965{
7a197a62 6966 return find_stack_direction () < 0;
ad6254c5
AK
6967}
6968_ACEOF
6969rm -f conftest$ac_exeext
7a197a62
AK
6970if { (ac_try="$ac_link"
6971case "(($ac_try" in
6972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6973 *) ac_try_echo=$ac_try;;
6974esac
ec6a6fbe
AK
6975eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6976$as_echo "$ac_try_echo") >&5
7a197a62 6977 (eval "$ac_link") 2>&5
ad6254c5 6978 ac_status=$?
ec6a6fbe 6979 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 6980 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
6981 { (case "(($ac_try" in
6982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6983 *) ac_try_echo=$ac_try;;
6984esac
ec6a6fbe
AK
6985eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6986$as_echo "$ac_try_echo") >&5
7a197a62 6987 (eval "$ac_try") 2>&5
ad6254c5 6988 ac_status=$?
ec6a6fbe 6989 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
6990 (exit $ac_status); }; }; then
6991 ac_cv_c_stack_direction=1
6992else
ec6a6fbe
AK
6993 $as_echo "$as_me: program exited with status $ac_status" >&5
6994$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6995sed 's/^/| /' conftest.$ac_ext >&5
6996
6997( exit $ac_status )
6998ac_cv_c_stack_direction=-1
6999fi
ec6a6fbe 7000rm -rf conftest.dSYM
7a197a62 7001rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7002fi
7a197a62
AK
7003
7004
ad6254c5 7005fi
ec6a6fbe
AK
7006{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
7007$as_echo "$ac_cv_c_stack_direction" >&6; }
ad6254c5
AK
7008
7009cat >>confdefs.h <<_ACEOF
7010#define STACK_DIRECTION $ac_cv_c_stack_direction
7011_ACEOF
7012
7013
7014fi
7015
ec6a6fbe
AK
7016{ $as_echo "$as_me:$LINENO: checking whether closedir returns void" >&5
7017$as_echo_n "checking whether closedir returns void... " >&6; }
ad6254c5 7018if test "${ac_cv_func_closedir_void+set}" = set; then
ec6a6fbe 7019 $as_echo_n "(cached) " >&6
ad6254c5
AK
7020else
7021 if test "$cross_compiling" = yes; then
7022 ac_cv_func_closedir_void=yes
7023else
7024 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7025/* confdefs.h. */
7026_ACEOF
7027cat confdefs.h >>conftest.$ac_ext
7028cat >>conftest.$ac_ext <<_ACEOF
7029/* end confdefs.h. */
7030$ac_includes_default
7031#include <$ac_header_dirent>
7032#ifndef __cplusplus
7033int closedir ();
7034#endif
7035
7036int
7037main ()
7038{
7a197a62 7039return closedir (opendir (".")) != 0;
ad6254c5
AK
7040 ;
7041 return 0;
7042}
7043_ACEOF
7044rm -f conftest$ac_exeext
7a197a62
AK
7045if { (ac_try="$ac_link"
7046case "(($ac_try" in
7047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7048 *) ac_try_echo=$ac_try;;
7049esac
ec6a6fbe
AK
7050eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7051$as_echo "$ac_try_echo") >&5
7a197a62 7052 (eval "$ac_link") 2>&5
ad6254c5 7053 ac_status=$?
ec6a6fbe 7054 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7055 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7056 { (case "(($ac_try" in
7057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7058 *) ac_try_echo=$ac_try;;
7059esac
ec6a6fbe
AK
7060eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7061$as_echo "$ac_try_echo") >&5
7a197a62 7062 (eval "$ac_try") 2>&5
ad6254c5 7063 ac_status=$?
ec6a6fbe 7064 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7065 (exit $ac_status); }; }; then
7066 ac_cv_func_closedir_void=no
7067else
ec6a6fbe
AK
7068 $as_echo "$as_me: program exited with status $ac_status" >&5
7069$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7070sed 's/^/| /' conftest.$ac_ext >&5
7071
7072( exit $ac_status )
7073ac_cv_func_closedir_void=yes
7074fi
ec6a6fbe 7075rm -rf conftest.dSYM
7a197a62 7076rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7077fi
7a197a62
AK
7078
7079
ad6254c5 7080fi
ec6a6fbe
AK
7081{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
7082$as_echo "$ac_cv_func_closedir_void" >&6; }
ad6254c5
AK
7083if test $ac_cv_func_closedir_void = yes; then
7084
7085cat >>confdefs.h <<\_ACEOF
7086#define CLOSEDIR_VOID 1
7087_ACEOF
7088
7089fi
7090
7091
7a197a62 7092for ac_header in vfork.h
ad6254c5 7093do
ec6a6fbe 7094as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 7095if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
7096 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7097$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 7098if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 7099 $as_echo_n "(cached) " >&6
ad6254c5 7100fi
ec6a6fbe
AK
7101ac_res=`eval 'as_val=${'$as_ac_Header'}
7102 $as_echo "$as_val"'`
7103 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7104$as_echo "$ac_res" >&6; }
ad6254c5
AK
7105else
7106 # Is the header compilable?
ec6a6fbe
AK
7107{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7108$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 7109cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7110/* confdefs.h. */
7111_ACEOF
7112cat confdefs.h >>conftest.$ac_ext
7113cat >>conftest.$ac_ext <<_ACEOF
7114/* end confdefs.h. */
7115$ac_includes_default
7116#include <$ac_header>
7117_ACEOF
7118rm -f conftest.$ac_objext
7a197a62
AK
7119if { (ac_try="$ac_compile"
7120case "(($ac_try" in
7121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7122 *) ac_try_echo=$ac_try;;
7123esac
ec6a6fbe
AK
7124eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7125$as_echo "$ac_try_echo") >&5
7a197a62 7126 (eval "$ac_compile") 2>conftest.er1
ad6254c5 7127 ac_status=$?
8a2fc586
AK
7128 grep -v '^ *+' conftest.er1 >conftest.err
7129 rm -f conftest.er1
7130 cat conftest.err >&5
ec6a6fbe 7131 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7132 (exit $ac_status); } && {
7133 test -z "$ac_c_werror_flag" ||
7134 test ! -s conftest.err
7135 } && test -s conftest.$ac_objext; then
ad6254c5
AK
7136 ac_header_compiler=yes
7137else
ec6a6fbe 7138 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7139sed 's/^/| /' conftest.$ac_ext >&5
7140
7a197a62 7141 ac_header_compiler=no
ad6254c5 7142fi
7a197a62
AK
7143
7144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
7145{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7146$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
7147
7148# Is the header present?
ec6a6fbe
AK
7149{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7150$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 7151cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7152/* confdefs.h. */
7153_ACEOF
7154cat confdefs.h >>conftest.$ac_ext
7155cat >>conftest.$ac_ext <<_ACEOF
7156/* end confdefs.h. */
7157#include <$ac_header>
7158_ACEOF
7a197a62
AK
7159if { (ac_try="$ac_cpp conftest.$ac_ext"
7160case "(($ac_try" in
7161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7162 *) ac_try_echo=$ac_try;;
7163esac
ec6a6fbe
AK
7164eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7165$as_echo "$ac_try_echo") >&5
7a197a62 7166 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
7167 ac_status=$?
7168 grep -v '^ *+' conftest.er1 >conftest.err
7169 rm -f conftest.er1
7170 cat conftest.err >&5
ec6a6fbe 7171 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7172 (exit $ac_status); } >/dev/null && {
7173 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7174 test ! -s conftest.err
7175 }; then
ad6254c5
AK
7176 ac_header_preproc=yes
7177else
ec6a6fbe 7178 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7179sed 's/^/| /' conftest.$ac_ext >&5
7180
7181 ac_header_preproc=no
7182fi
7a197a62 7183
ad6254c5 7184rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
7185{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7186$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
7187
7188# So? What about this header?
8a2fc586
AK
7189case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7190 yes:no: )
ec6a6fbe
AK
7191 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7192$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7193 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7194$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 7195 ac_header_preproc=yes
ad6254c5 7196 ;;
8a2fc586 7197 no:yes:* )
ec6a6fbe
AK
7198 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7199$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7200 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7201$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7202 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7203$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7204 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7205$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7206 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7207$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7208 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7209$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 7210
ad6254c5
AK
7211 ;;
7212esac
ec6a6fbe
AK
7213{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7214$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 7215if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 7216 $as_echo_n "(cached) " >&6
ad6254c5 7217else
8a2fc586 7218 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 7219fi
ec6a6fbe
AK
7220ac_res=`eval 'as_val=${'$as_ac_Header'}
7221 $as_echo "$as_val"'`
7222 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7223$as_echo "$ac_res" >&6; }
ad6254c5 7224
795ca3e5 7225fi
ec6a6fbe
AK
7226as_val=`eval 'as_val=${'$as_ac_Header'}
7227 $as_echo "$as_val"'`
7228 if test "x$as_val" = x""yes; then
ad6254c5 7229 cat >>confdefs.h <<_ACEOF
ec6a6fbe 7230#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
7231_ACEOF
7232
7233fi
7234
7235done
795ca3e5 7236
ad6254c5
AK
7237
7238
7239for ac_func in fork vfork
7240do
ec6a6fbe
AK
7241as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7242{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7243$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 7244if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 7245 $as_echo_n "(cached) " >&6
795ca3e5 7246else
ad6254c5 7247 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7248/* confdefs.h. */
7249_ACEOF
7250cat confdefs.h >>conftest.$ac_ext
7251cat >>conftest.$ac_ext <<_ACEOF
7252/* end confdefs.h. */
8a2fc586
AK
7253/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7254 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7255#define $ac_func innocuous_$ac_func
7256
ad6254c5
AK
7257/* System header to define __stub macros and hopefully few prototypes,
7258 which can conflict with char $ac_func (); below.
7259 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7260 <limits.h> exists even on freestanding compilers. */
8a2fc586 7261
ad6254c5
AK
7262#ifdef __STDC__
7263# include <limits.h>
7264#else
7265# include <assert.h>
795ca3e5 7266#endif
8a2fc586
AK
7267
7268#undef $ac_func
7269
7a197a62
AK
7270/* Override any GCC internal prototype to avoid an error.
7271 Use char because int might match the return type of a GCC
7272 builtin and then its argument prototype would still apply. */
795ca3e5 7273#ifdef __cplusplus
ad6254c5 7274extern "C"
ad6254c5 7275#endif
ad6254c5
AK
7276char $ac_func ();
7277/* The GNU C library defines this for functions which it implements
7278 to always fail with ENOSYS. Some functions are actually named
7279 something starting with __ and the normal name is an alias. */
7a197a62 7280#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 7281choke me
795ca3e5
AK
7282#endif
7283
ad6254c5
AK
7284int
7285main ()
7286{
7a197a62 7287return $ac_func ();
ad6254c5
AK
7288 ;
7289 return 0;
7290}
7291_ACEOF
7292rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
7293if { (ac_try="$ac_link"
7294case "(($ac_try" in
7295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7296 *) ac_try_echo=$ac_try;;
7297esac
ec6a6fbe
AK
7298eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7299$as_echo "$ac_try_echo") >&5
7a197a62 7300 (eval "$ac_link") 2>conftest.er1
ad6254c5 7301 ac_status=$?
8a2fc586
AK
7302 grep -v '^ *+' conftest.er1 >conftest.err
7303 rm -f conftest.er1
7304 cat conftest.err >&5
ec6a6fbe 7305 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7306 (exit $ac_status); } && {
7307 test -z "$ac_c_werror_flag" ||
7308 test ! -s conftest.err
ec6a6fbe
AK
7309 } && test -s conftest$ac_exeext && {
7310 test "$cross_compiling" = yes ||
7311 $as_test_x conftest$ac_exeext
7312 }; then
ad6254c5 7313 eval "$as_ac_var=yes"
795ca3e5 7314else
ec6a6fbe 7315 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7316sed 's/^/| /' conftest.$ac_ext >&5
7317
7a197a62 7318 eval "$as_ac_var=no"
795ca3e5 7319fi
7a197a62 7320
ec6a6fbe 7321rm -rf conftest.dSYM
25fbec5b 7322rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 7323 conftest$ac_exeext conftest.$ac_ext
ad6254c5 7324fi
ec6a6fbe
AK
7325ac_res=`eval 'as_val=${'$as_ac_var'}
7326 $as_echo "$as_val"'`
7327 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7328$as_echo "$ac_res" >&6; }
7329as_val=`eval 'as_val=${'$as_ac_var'}
7330 $as_echo "$as_val"'`
7331 if test "x$as_val" = x""yes; then
ad6254c5 7332 cat >>confdefs.h <<_ACEOF
ec6a6fbe 7333#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
7334_ACEOF
7335
7336fi
7337done
7338
7339if test "x$ac_cv_func_fork" = xyes; then
ec6a6fbe
AK
7340 { $as_echo "$as_me:$LINENO: checking for working fork" >&5
7341$as_echo_n "checking for working fork... " >&6; }
ad6254c5 7342if test "${ac_cv_func_fork_works+set}" = set; then
ec6a6fbe 7343 $as_echo_n "(cached) " >&6
ad6254c5
AK
7344else
7345 if test "$cross_compiling" = yes; then
7346 ac_cv_func_fork_works=cross
7347else
7348 cat >conftest.$ac_ext <<_ACEOF
7a197a62
AK
7349/* confdefs.h. */
7350_ACEOF
7351cat confdefs.h >>conftest.$ac_ext
7352cat >>conftest.$ac_ext <<_ACEOF
7353/* end confdefs.h. */
7354$ac_includes_default
7355int
7356main ()
7357{
7358
7359 /* By Ruediger Kuhlmann. */
7360 return fork () < 0;
7361
7362 ;
7363 return 0;
7364}
ad6254c5
AK
7365_ACEOF
7366rm -f conftest$ac_exeext
7a197a62
AK
7367if { (ac_try="$ac_link"
7368case "(($ac_try" in
7369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7370 *) ac_try_echo=$ac_try;;
7371esac
ec6a6fbe
AK
7372eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7373$as_echo "$ac_try_echo") >&5
7a197a62 7374 (eval "$ac_link") 2>&5
ad6254c5 7375 ac_status=$?
ec6a6fbe 7376 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7377 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7378 { (case "(($ac_try" in
7379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7380 *) ac_try_echo=$ac_try;;
7381esac
ec6a6fbe
AK
7382eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7383$as_echo "$ac_try_echo") >&5
7a197a62 7384 (eval "$ac_try") 2>&5
ad6254c5 7385 ac_status=$?
ec6a6fbe 7386 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7387 (exit $ac_status); }; }; then
7388 ac_cv_func_fork_works=yes
7389else
ec6a6fbe
AK
7390 $as_echo "$as_me: program exited with status $ac_status" >&5
7391$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7392sed 's/^/| /' conftest.$ac_ext >&5
7393
7394( exit $ac_status )
7395ac_cv_func_fork_works=no
7396fi
ec6a6fbe 7397rm -rf conftest.dSYM
7a197a62 7398rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7399fi
7a197a62
AK
7400
7401
ad6254c5 7402fi
ec6a6fbe
AK
7403{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
7404$as_echo "$ac_cv_func_fork_works" >&6; }
ad6254c5
AK
7405
7406else
7407 ac_cv_func_fork_works=$ac_cv_func_fork
7408fi
7409if test "x$ac_cv_func_fork_works" = xcross; then
7410 case $host in
7411 *-*-amigaos* | *-*-msdosdjgpp*)
7412 # Override, as these systems have only a dummy fork() stub
7413 ac_cv_func_fork_works=no
7414 ;;
7415 *)
7416 ac_cv_func_fork_works=yes
7417 ;;
7418 esac
ec6a6fbe
AK
7419 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
7420$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
ad6254c5
AK
7421fi
7422ac_cv_func_vfork_works=$ac_cv_func_vfork
7423if test "x$ac_cv_func_vfork" = xyes; then
ec6a6fbe
AK
7424 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
7425$as_echo_n "checking for working vfork... " >&6; }
ad6254c5 7426if test "${ac_cv_func_vfork_works+set}" = set; then
ec6a6fbe 7427 $as_echo_n "(cached) " >&6
ad6254c5
AK
7428else
7429 if test "$cross_compiling" = yes; then
7430 ac_cv_func_vfork_works=cross
7431else
7432 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7433/* confdefs.h. */
7434_ACEOF
7435cat confdefs.h >>conftest.$ac_ext
7436cat >>conftest.$ac_ext <<_ACEOF
7437/* end confdefs.h. */
7438/* Thanks to Paul Eggert for this test. */
7a197a62 7439$ac_includes_default
ad6254c5 7440#include <sys/wait.h>
25fbec5b 7441#ifdef HAVE_VFORK_H
ad6254c5
AK
7442# include <vfork.h>
7443#endif
7444/* On some sparc systems, changes by the child to local and incoming
7445 argument registers are propagated back to the parent. The compiler
7446 is told about this with #include <vfork.h>, but some compilers
7447 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
7448 static variable whose address is put into a register that is
7449 clobbered by the vfork. */
7450static void
7451#ifdef __cplusplus
7452sparc_address_test (int arg)
7453# else
7454sparc_address_test (arg) int arg;
7455#endif
7456{
7457 static pid_t child;
7458 if (!child) {
7459 child = vfork ();
7460 if (child < 0) {
7461 perror ("vfork");
7462 _exit(2);
7463 }
7464 if (!child) {
7465 arg = getpid();
7466 write(-1, "", 0);
7467 _exit (arg);
7468 }
7469 }
7470}
7471
7472int
7473main ()
7474{
7475 pid_t parent = getpid ();
7476 pid_t child;
7477
7478 sparc_address_test (0);
7479
7480 child = vfork ();
7481
7482 if (child == 0) {
7483 /* Here is another test for sparc vfork register problems. This
7484 test uses lots of local variables, at least as many local
7485 variables as main has allocated so far including compiler
7486 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
7487 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
7488 reuse the register of parent for one of the local variables,
7489 since it will think that parent can't possibly be used any more
7490 in this routine. Assigning to the local variable will thus
7491 munge parent in the parent process. */
7492 pid_t
7493 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
7494 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
7495 /* Convince the compiler that p..p7 are live; otherwise, it might
7496 use the same hardware register for all 8 local variables. */
7497 if (p != p1 || p != p2 || p != p3 || p != p4
7498 || p != p5 || p != p6 || p != p7)
7499 _exit(1);
7500
7501 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
7502 from child file descriptors. If the child closes a descriptor
7503 before it execs or exits, this munges the parent's descriptor
7504 as well. Test for this by closing stdout in the child. */
7505 _exit(close(fileno(stdout)) != 0);
7506 } else {
7507 int status;
7508 struct stat st;
7509
7510 while (wait(&status) != child)
7511 ;
7a197a62 7512 return (
ad6254c5
AK
7513 /* Was there some problem with vforking? */
7514 child < 0
7515
7516 /* Did the child fail? (This shouldn't happen.) */
7517 || status
7518
7519 /* Did the vfork/compiler bug occur? */
7520 || parent != getpid()
7521
7522 /* Did the file descriptor bug occur? */
7523 || fstat(fileno(stdout), &st) != 0
7524 );
7525 }
7526}
7527_ACEOF
7528rm -f conftest$ac_exeext
7a197a62
AK
7529if { (ac_try="$ac_link"
7530case "(($ac_try" in
7531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7532 *) ac_try_echo=$ac_try;;
7533esac
ec6a6fbe
AK
7534eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7535$as_echo "$ac_try_echo") >&5
7a197a62 7536 (eval "$ac_link") 2>&5
ad6254c5 7537 ac_status=$?
ec6a6fbe 7538 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7539 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7540 { (case "(($ac_try" in
7541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7542 *) ac_try_echo=$ac_try;;
7543esac
ec6a6fbe
AK
7544eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7545$as_echo "$ac_try_echo") >&5
7a197a62 7546 (eval "$ac_try") 2>&5
ad6254c5 7547 ac_status=$?
ec6a6fbe 7548 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7549 (exit $ac_status); }; }; then
7550 ac_cv_func_vfork_works=yes
7551else
ec6a6fbe
AK
7552 $as_echo "$as_me: program exited with status $ac_status" >&5
7553$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7554sed 's/^/| /' conftest.$ac_ext >&5
7555
7556( exit $ac_status )
7557ac_cv_func_vfork_works=no
7558fi
ec6a6fbe 7559rm -rf conftest.dSYM
7a197a62 7560rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7561fi
7a197a62
AK
7562
7563
ad6254c5 7564fi
ec6a6fbe
AK
7565{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
7566$as_echo "$ac_cv_func_vfork_works" >&6; }
ad6254c5
AK
7567
7568fi;
7569if test "x$ac_cv_func_fork_works" = xcross; then
8a2fc586 7570 ac_cv_func_vfork_works=$ac_cv_func_vfork
ec6a6fbe
AK
7571 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
7572$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
ad6254c5
AK
7573fi
7574
7575if test "x$ac_cv_func_vfork_works" = xyes; then
7576
7577cat >>confdefs.h <<\_ACEOF
7578#define HAVE_WORKING_VFORK 1
7579_ACEOF
7580
7581else
7582
7583cat >>confdefs.h <<\_ACEOF
7584#define vfork fork
7585_ACEOF
7586
7587fi
7588if test "x$ac_cv_func_fork_works" = xyes; then
7589
7590cat >>confdefs.h <<\_ACEOF
7591#define HAVE_WORKING_FORK 1
7592_ACEOF
7593
7594fi
7595
ec6a6fbe
AK
7596{ $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
7597$as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
ad6254c5 7598if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
ec6a6fbe 7599 $as_echo_n "(cached) " >&6
ad6254c5
AK
7600else
7601 rm -f conftest.sym conftest.file
7602echo >conftest.file
7603if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
7604 if test "$cross_compiling" = yes; then
7605 ac_cv_func_lstat_dereferences_slashed_symlink=no
7606else
7607 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7608/* confdefs.h. */
7609_ACEOF
7610cat confdefs.h >>conftest.$ac_ext
7611cat >>conftest.$ac_ext <<_ACEOF
7612/* end confdefs.h. */
7613$ac_includes_default
7614int
7615main ()
7616{
7617struct stat sbuf;
7618 /* Linux will dereference the symlink and fail.
8a2fc586
AK
7619 That is better in the sense that it means we will not
7620 have to compile and use the lstat wrapper. */
7a197a62 7621 return lstat ("conftest.sym/", &sbuf) == 0;
ad6254c5
AK
7622 ;
7623 return 0;
7624}
7625_ACEOF
7626rm -f conftest$ac_exeext
7a197a62
AK
7627if { (ac_try="$ac_link"
7628case "(($ac_try" in
7629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7630 *) ac_try_echo=$ac_try;;
7631esac
ec6a6fbe
AK
7632eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7633$as_echo "$ac_try_echo") >&5
7a197a62 7634 (eval "$ac_link") 2>&5
ad6254c5 7635 ac_status=$?
ec6a6fbe 7636 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7637 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7638 { (case "(($ac_try" in
7639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7640 *) ac_try_echo=$ac_try;;
7641esac
ec6a6fbe
AK
7642eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7643$as_echo "$ac_try_echo") >&5
7a197a62 7644 (eval "$ac_try") 2>&5
ad6254c5 7645 ac_status=$?
ec6a6fbe 7646 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7647 (exit $ac_status); }; }; then
7648 ac_cv_func_lstat_dereferences_slashed_symlink=yes
7649else
ec6a6fbe
AK
7650 $as_echo "$as_me: program exited with status $ac_status" >&5
7651$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7652sed 's/^/| /' conftest.$ac_ext >&5
7653
7654( exit $ac_status )
7655ac_cv_func_lstat_dereferences_slashed_symlink=no
7656fi
ec6a6fbe 7657rm -rf conftest.dSYM
7a197a62 7658rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7659fi
7a197a62
AK
7660
7661
ad6254c5
AK
7662else
7663 # If the `ln -s' command failed, then we probably don't even
7664 # have an lstat function.
7665 ac_cv_func_lstat_dereferences_slashed_symlink=no
7666fi
7667rm -f conftest.sym conftest.file
7668
7669fi
ec6a6fbe
AK
7670{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
7671$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
ad6254c5
AK
7672
7673test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
7674
7675cat >>confdefs.h <<_ACEOF
7676#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
7677_ACEOF
7678
7679
7680if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
7a197a62 7681 case " $LIBOBJS " in
8a2fc586 7682 *" lstat.$ac_objext "* ) ;;
7a197a62
AK
7683 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
7684 ;;
8a2fc586
AK
7685esac
7686
ad6254c5
AK
7687fi
7688
ec6a6fbe
AK
7689{ $as_echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
7690$as_echo_n "checking whether lstat accepts an empty string... " >&6; }
ad6254c5 7691if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
ec6a6fbe 7692 $as_echo_n "(cached) " >&6
ad6254c5
AK
7693else
7694 if test "$cross_compiling" = yes; then
7695 ac_cv_func_lstat_empty_string_bug=yes
7696else
7697 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7698/* confdefs.h. */
7699_ACEOF
7700cat confdefs.h >>conftest.$ac_ext
7701cat >>conftest.$ac_ext <<_ACEOF
7702/* end confdefs.h. */
7703$ac_includes_default
7704int
7705main ()
7706{
7707struct stat sbuf;
7a197a62 7708 return lstat ("", &sbuf) == 0;
ad6254c5
AK
7709 ;
7710 return 0;
7711}
7712_ACEOF
7713rm -f conftest$ac_exeext
7a197a62
AK
7714if { (ac_try="$ac_link"
7715case "(($ac_try" in
7716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7717 *) ac_try_echo=$ac_try;;
7718esac
ec6a6fbe
AK
7719eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7720$as_echo "$ac_try_echo") >&5
7a197a62 7721 (eval "$ac_link") 2>&5
ad6254c5 7722 ac_status=$?
ec6a6fbe 7723 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7724 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7725 { (case "(($ac_try" in
7726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7727 *) ac_try_echo=$ac_try;;
7728esac
ec6a6fbe
AK
7729eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7730$as_echo "$ac_try_echo") >&5
7a197a62 7731 (eval "$ac_try") 2>&5
ad6254c5 7732 ac_status=$?
ec6a6fbe 7733 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7734 (exit $ac_status); }; }; then
7a197a62 7735 ac_cv_func_lstat_empty_string_bug=no
ad6254c5 7736else
ec6a6fbe
AK
7737 $as_echo "$as_me: program exited with status $ac_status" >&5
7738$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7739sed 's/^/| /' conftest.$ac_ext >&5
7740
7741( exit $ac_status )
7a197a62 7742ac_cv_func_lstat_empty_string_bug=yes
ad6254c5 7743fi
ec6a6fbe 7744rm -rf conftest.dSYM
7a197a62 7745rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7746fi
7a197a62
AK
7747
7748
ad6254c5 7749fi
ec6a6fbe
AK
7750{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
7751$as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
ad6254c5 7752if test $ac_cv_func_lstat_empty_string_bug = yes; then
7a197a62 7753 case " $LIBOBJS " in
8a2fc586 7754 *" lstat.$ac_objext "* ) ;;
7a197a62
AK
7755 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
7756 ;;
8a2fc586
AK
7757esac
7758
ad6254c5
AK
7759
7760cat >>confdefs.h <<_ACEOF
7761#define HAVE_LSTAT_EMPTY_STRING_BUG 1
7762_ACEOF
7763
7764fi
7765
7766
7767for ac_header in stdlib.h
7768do
ec6a6fbe 7769as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 7770if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
7771 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7772$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 7773if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 7774 $as_echo_n "(cached) " >&6
ad6254c5 7775fi
ec6a6fbe
AK
7776ac_res=`eval 'as_val=${'$as_ac_Header'}
7777 $as_echo "$as_val"'`
7778 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7779$as_echo "$ac_res" >&6; }
ad6254c5
AK
7780else
7781 # Is the header compilable?
ec6a6fbe
AK
7782{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7783$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 7784cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7785/* confdefs.h. */
7786_ACEOF
7787cat confdefs.h >>conftest.$ac_ext
7788cat >>conftest.$ac_ext <<_ACEOF
7789/* end confdefs.h. */
7790$ac_includes_default
7791#include <$ac_header>
7792_ACEOF
7793rm -f conftest.$ac_objext
7a197a62
AK
7794if { (ac_try="$ac_compile"
7795case "(($ac_try" in
7796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7797 *) ac_try_echo=$ac_try;;
7798esac
ec6a6fbe
AK
7799eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7800$as_echo "$ac_try_echo") >&5
7a197a62 7801 (eval "$ac_compile") 2>conftest.er1
ad6254c5 7802 ac_status=$?
8a2fc586
AK
7803 grep -v '^ *+' conftest.er1 >conftest.err
7804 rm -f conftest.er1
7805 cat conftest.err >&5
ec6a6fbe 7806 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7807 (exit $ac_status); } && {
7808 test -z "$ac_c_werror_flag" ||
7809 test ! -s conftest.err
7810 } && test -s conftest.$ac_objext; then
ad6254c5
AK
7811 ac_header_compiler=yes
7812else
ec6a6fbe 7813 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7814sed 's/^/| /' conftest.$ac_ext >&5
7815
7a197a62 7816 ac_header_compiler=no
ad6254c5 7817fi
7a197a62
AK
7818
7819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
7820{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7821$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
7822
7823# Is the header present?
ec6a6fbe
AK
7824{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7825$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 7826cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7827/* confdefs.h. */
7828_ACEOF
7829cat confdefs.h >>conftest.$ac_ext
7830cat >>conftest.$ac_ext <<_ACEOF
7831/* end confdefs.h. */
7832#include <$ac_header>
7833_ACEOF
7a197a62
AK
7834if { (ac_try="$ac_cpp conftest.$ac_ext"
7835case "(($ac_try" in
7836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7837 *) ac_try_echo=$ac_try;;
7838esac
ec6a6fbe
AK
7839eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7840$as_echo "$ac_try_echo") >&5
7a197a62 7841 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
7842 ac_status=$?
7843 grep -v '^ *+' conftest.er1 >conftest.err
7844 rm -f conftest.er1
7845 cat conftest.err >&5
ec6a6fbe 7846 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7847 (exit $ac_status); } >/dev/null && {
7848 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7849 test ! -s conftest.err
7850 }; then
ad6254c5
AK
7851 ac_header_preproc=yes
7852else
ec6a6fbe 7853 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7854sed 's/^/| /' conftest.$ac_ext >&5
7855
7856 ac_header_preproc=no
7857fi
7a197a62 7858
ad6254c5 7859rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
7860{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7861$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
7862
7863# So? What about this header?
8a2fc586
AK
7864case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7865 yes:no: )
ec6a6fbe
AK
7866 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7867$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7868 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7869$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 7870 ac_header_preproc=yes
ad6254c5 7871 ;;
8a2fc586 7872 no:yes:* )
ec6a6fbe
AK
7873 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7874$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7875 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7876$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7877 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7878$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7879 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7880$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7881 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7882$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7883 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7884$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 7885
ad6254c5
AK
7886 ;;
7887esac
ec6a6fbe
AK
7888{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7889$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 7890if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 7891 $as_echo_n "(cached) " >&6
ad6254c5 7892else
8a2fc586 7893 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 7894fi
ec6a6fbe
AK
7895ac_res=`eval 'as_val=${'$as_ac_Header'}
7896 $as_echo "$as_val"'`
7897 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7898$as_echo "$ac_res" >&6; }
ad6254c5
AK
7899
7900fi
ec6a6fbe
AK
7901as_val=`eval 'as_val=${'$as_ac_Header'}
7902 $as_echo "$as_val"'`
7903 if test "x$as_val" = x""yes; then
ad6254c5 7904 cat >>confdefs.h <<_ACEOF
ec6a6fbe 7905#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
7906_ACEOF
7907
7908fi
7909
7910done
7911
ec6a6fbe
AK
7912{ $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
7913$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
ad6254c5 7914if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
ec6a6fbe 7915 $as_echo_n "(cached) " >&6
ad6254c5
AK
7916else
7917 if test "$cross_compiling" = yes; then
7918 ac_cv_func_malloc_0_nonnull=no
7919else
7920 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7921/* confdefs.h. */
7922_ACEOF
7923cat confdefs.h >>conftest.$ac_ext
7924cat >>conftest.$ac_ext <<_ACEOF
7925/* end confdefs.h. */
25fbec5b 7926#if defined STDC_HEADERS || defined HAVE_STDLIB_H
ad6254c5
AK
7927# include <stdlib.h>
7928#else
7929char *malloc ();
7930#endif
7931
7932int
7933main ()
7934{
7a197a62 7935return ! malloc (0);
ad6254c5
AK
7936 ;
7937 return 0;
7938}
7939_ACEOF
7940rm -f conftest$ac_exeext
7a197a62
AK
7941if { (ac_try="$ac_link"
7942case "(($ac_try" in
7943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7944 *) ac_try_echo=$ac_try;;
7945esac
ec6a6fbe
AK
7946eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7947$as_echo "$ac_try_echo") >&5
7a197a62 7948 (eval "$ac_link") 2>&5
ad6254c5 7949 ac_status=$?
ec6a6fbe 7950 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7951 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7952 { (case "(($ac_try" in
7953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7954 *) ac_try_echo=$ac_try;;
7955esac
ec6a6fbe
AK
7956eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7957$as_echo "$ac_try_echo") >&5
7a197a62 7958 (eval "$ac_try") 2>&5
ad6254c5 7959 ac_status=$?
ec6a6fbe 7960 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7961 (exit $ac_status); }; }; then
7962 ac_cv_func_malloc_0_nonnull=yes
7963else
ec6a6fbe
AK
7964 $as_echo "$as_me: program exited with status $ac_status" >&5
7965$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7966sed 's/^/| /' conftest.$ac_ext >&5
7967
7968( exit $ac_status )
7969ac_cv_func_malloc_0_nonnull=no
7970fi
ec6a6fbe 7971rm -rf conftest.dSYM
7a197a62 7972rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7973fi
7a197a62
AK
7974
7975
ad6254c5 7976fi
ec6a6fbe
AK
7977{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
7978$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
ad6254c5
AK
7979if test $ac_cv_func_malloc_0_nonnull = yes; then
7980
7981cat >>confdefs.h <<\_ACEOF
7982#define HAVE_MALLOC 1
7983_ACEOF
7984
7985else
7986 cat >>confdefs.h <<\_ACEOF
7987#define HAVE_MALLOC 0
7988_ACEOF
7989
7a197a62 7990 case " $LIBOBJS " in
8a2fc586 7991 *" malloc.$ac_objext "* ) ;;
7a197a62
AK
7992 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
7993 ;;
8a2fc586
AK
7994esac
7995
ad6254c5
AK
7996
7997cat >>confdefs.h <<\_ACEOF
7998#define malloc rpl_malloc
7999_ACEOF
8000
8001fi
8002
8003
8004
ec6a6fbe
AK
8005{ $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
8006$as_echo_n "checking for working memcmp... " >&6; }
ad6254c5 8007if test "${ac_cv_func_memcmp_working+set}" = set; then
ec6a6fbe 8008 $as_echo_n "(cached) " >&6
ad6254c5
AK
8009else
8010 if test "$cross_compiling" = yes; then
8011 ac_cv_func_memcmp_working=no
8012else
8013 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8014/* confdefs.h. */
8015_ACEOF
8016cat confdefs.h >>conftest.$ac_ext
8017cat >>conftest.$ac_ext <<_ACEOF
8018/* end confdefs.h. */
8a2fc586 8019$ac_includes_default
ad6254c5
AK
8020int
8021main ()
8022{
8023
8024 /* Some versions of memcmp are not 8-bit clean. */
7a197a62 8025 char c0 = '\100', c1 = '\200', c2 = '\201';
ad6254c5 8026 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
7a197a62 8027 return 1;
ad6254c5
AK
8028
8029 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
8030 or more and with at least one buffer not starting on a 4-byte boundary.
8031 William Lewis provided this test program. */
8032 {
8033 char foo[21];
8034 char bar[21];
8035 int i;
8036 for (i = 0; i < 4; i++)
8037 {
8a2fc586
AK
8038 char *a = foo + i;
8039 char *b = bar + i;
8040 strcpy (a, "--------01111111");
8041 strcpy (b, "--------10000000");
8042 if (memcmp (a, b, 16) >= 0)
7a197a62 8043 return 1;
ad6254c5 8044 }
7a197a62 8045 return 0;
ad6254c5
AK
8046 }
8047
8048 ;
8049 return 0;
8050}
8051_ACEOF
8052rm -f conftest$ac_exeext
7a197a62
AK
8053if { (ac_try="$ac_link"
8054case "(($ac_try" in
8055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8056 *) ac_try_echo=$ac_try;;
8057esac
ec6a6fbe
AK
8058eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8059$as_echo "$ac_try_echo") >&5
7a197a62 8060 (eval "$ac_link") 2>&5
ad6254c5 8061 ac_status=$?
ec6a6fbe 8062 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 8063 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
8064 { (case "(($ac_try" in
8065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8066 *) ac_try_echo=$ac_try;;
8067esac
ec6a6fbe
AK
8068eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8069$as_echo "$ac_try_echo") >&5
7a197a62 8070 (eval "$ac_try") 2>&5
ad6254c5 8071 ac_status=$?
ec6a6fbe 8072 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
8073 (exit $ac_status); }; }; then
8074 ac_cv_func_memcmp_working=yes
8075else
ec6a6fbe
AK
8076 $as_echo "$as_me: program exited with status $ac_status" >&5
8077$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8078sed 's/^/| /' conftest.$ac_ext >&5
8079
8080( exit $ac_status )
8081ac_cv_func_memcmp_working=no
8082fi
ec6a6fbe 8083rm -rf conftest.dSYM
7a197a62 8084rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 8085fi
7a197a62
AK
8086
8087
ad6254c5 8088fi
ec6a6fbe
AK
8089{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
8090$as_echo "$ac_cv_func_memcmp_working" >&6; }
7a197a62 8091test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
8a2fc586 8092 *" memcmp.$ac_objext "* ) ;;
7a197a62
AK
8093 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
8094 ;;
8a2fc586
AK
8095esac
8096
ad6254c5
AK
8097
8098
8099
8100for ac_header in stdlib.h unistd.h
8101do
ec6a6fbe 8102as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 8103if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
8104 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8105$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 8106if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 8107 $as_echo_n "(cached) " >&6
ad6254c5 8108fi
ec6a6fbe
AK
8109ac_res=`eval 'as_val=${'$as_ac_Header'}
8110 $as_echo "$as_val"'`
8111 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8112$as_echo "$ac_res" >&6; }
ad6254c5
AK
8113else
8114 # Is the header compilable?
ec6a6fbe
AK
8115{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8116$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 8117cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8118/* confdefs.h. */
8119_ACEOF
8120cat confdefs.h >>conftest.$ac_ext
8121cat >>conftest.$ac_ext <<_ACEOF
8122/* end confdefs.h. */
8123$ac_includes_default
8124#include <$ac_header>
8125_ACEOF
8126rm -f conftest.$ac_objext
7a197a62
AK
8127if { (ac_try="$ac_compile"
8128case "(($ac_try" in
8129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8130 *) ac_try_echo=$ac_try;;
8131esac
ec6a6fbe
AK
8132eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8133$as_echo "$ac_try_echo") >&5
7a197a62 8134 (eval "$ac_compile") 2>conftest.er1
ad6254c5 8135 ac_status=$?
8a2fc586
AK
8136 grep -v '^ *+' conftest.er1 >conftest.err
8137 rm -f conftest.er1
8138 cat conftest.err >&5
ec6a6fbe 8139 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8140 (exit $ac_status); } && {
8141 test -z "$ac_c_werror_flag" ||
8142 test ! -s conftest.err
8143 } && test -s conftest.$ac_objext; then
ad6254c5
AK
8144 ac_header_compiler=yes
8145else
ec6a6fbe 8146 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8147sed 's/^/| /' conftest.$ac_ext >&5
8148
7a197a62 8149 ac_header_compiler=no
ad6254c5 8150fi
7a197a62
AK
8151
8152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
8153{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8154$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
8155
8156# Is the header present?
ec6a6fbe
AK
8157{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8158$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 8159cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8160/* confdefs.h. */
8161_ACEOF
8162cat confdefs.h >>conftest.$ac_ext
8163cat >>conftest.$ac_ext <<_ACEOF
8164/* end confdefs.h. */
8165#include <$ac_header>
8166_ACEOF
7a197a62
AK
8167if { (ac_try="$ac_cpp conftest.$ac_ext"
8168case "(($ac_try" in
8169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8170 *) ac_try_echo=$ac_try;;
8171esac
ec6a6fbe
AK
8172eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8173$as_echo "$ac_try_echo") >&5
7a197a62 8174 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
8175 ac_status=$?
8176 grep -v '^ *+' conftest.er1 >conftest.err
8177 rm -f conftest.er1
8178 cat conftest.err >&5
ec6a6fbe 8179 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8180 (exit $ac_status); } >/dev/null && {
8181 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8182 test ! -s conftest.err
8183 }; then
ad6254c5
AK
8184 ac_header_preproc=yes
8185else
ec6a6fbe 8186 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8187sed 's/^/| /' conftest.$ac_ext >&5
8188
8189 ac_header_preproc=no
8190fi
7a197a62 8191
ad6254c5 8192rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
8193{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8194$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
8195
8196# So? What about this header?
8a2fc586
AK
8197case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8198 yes:no: )
ec6a6fbe
AK
8199 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8200$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8201 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8202$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 8203 ac_header_preproc=yes
ad6254c5 8204 ;;
8a2fc586 8205 no:yes:* )
ec6a6fbe
AK
8206 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8207$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8208 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8209$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8210 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8211$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8212 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8213$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8214 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8215$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8216 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8217$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 8218
ad6254c5
AK
8219 ;;
8220esac
ec6a6fbe
AK
8221{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8222$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 8223if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 8224 $as_echo_n "(cached) " >&6
ad6254c5 8225else
8a2fc586 8226 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 8227fi
ec6a6fbe
AK
8228ac_res=`eval 'as_val=${'$as_ac_Header'}
8229 $as_echo "$as_val"'`
8230 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8231$as_echo "$ac_res" >&6; }
ad6254c5
AK
8232
8233fi
ec6a6fbe
AK
8234as_val=`eval 'as_val=${'$as_ac_Header'}
8235 $as_echo "$as_val"'`
8236 if test "x$as_val" = x""yes; then
ad6254c5 8237 cat >>confdefs.h <<_ACEOF
ec6a6fbe 8238#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
8239_ACEOF
8240
8241fi
8242
8243done
8244
8245
8246for ac_func in getpagesize
8247do
ec6a6fbe
AK
8248as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8249{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8250$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 8251if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 8252 $as_echo_n "(cached) " >&6
ad6254c5
AK
8253else
8254 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8255/* confdefs.h. */
8256_ACEOF
8257cat confdefs.h >>conftest.$ac_ext
8258cat >>conftest.$ac_ext <<_ACEOF
8259/* end confdefs.h. */
8a2fc586
AK
8260/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8261 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8262#define $ac_func innocuous_$ac_func
8263
ad6254c5
AK
8264/* System header to define __stub macros and hopefully few prototypes,
8265 which can conflict with char $ac_func (); below.
8266 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8267 <limits.h> exists even on freestanding compilers. */
8a2fc586 8268
ad6254c5
AK
8269#ifdef __STDC__
8270# include <limits.h>
8271#else
8272# include <assert.h>
8273#endif
8a2fc586
AK
8274
8275#undef $ac_func
8276
7a197a62
AK
8277/* Override any GCC internal prototype to avoid an error.
8278 Use char because int might match the return type of a GCC
8279 builtin and then its argument prototype would still apply. */
ad6254c5
AK
8280#ifdef __cplusplus
8281extern "C"
ad6254c5 8282#endif
ad6254c5
AK
8283char $ac_func ();
8284/* The GNU C library defines this for functions which it implements
8285 to always fail with ENOSYS. Some functions are actually named
8286 something starting with __ and the normal name is an alias. */
7a197a62 8287#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 8288choke me
ad6254c5
AK
8289#endif
8290
8291int
8292main ()
8293{
7a197a62 8294return $ac_func ();
ad6254c5
AK
8295 ;
8296 return 0;
8297}
8298_ACEOF
8299rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
8300if { (ac_try="$ac_link"
8301case "(($ac_try" in
8302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8303 *) ac_try_echo=$ac_try;;
8304esac
ec6a6fbe
AK
8305eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8306$as_echo "$ac_try_echo") >&5
7a197a62 8307 (eval "$ac_link") 2>conftest.er1
ad6254c5 8308 ac_status=$?
8a2fc586
AK
8309 grep -v '^ *+' conftest.er1 >conftest.err
8310 rm -f conftest.er1
8311 cat conftest.err >&5
ec6a6fbe 8312 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8313 (exit $ac_status); } && {
8314 test -z "$ac_c_werror_flag" ||
8315 test ! -s conftest.err
ec6a6fbe
AK
8316 } && test -s conftest$ac_exeext && {
8317 test "$cross_compiling" = yes ||
8318 $as_test_x conftest$ac_exeext
8319 }; then
ad6254c5
AK
8320 eval "$as_ac_var=yes"
8321else
ec6a6fbe 8322 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8323sed 's/^/| /' conftest.$ac_ext >&5
8324
7a197a62 8325 eval "$as_ac_var=no"
ad6254c5 8326fi
7a197a62 8327
ec6a6fbe 8328rm -rf conftest.dSYM
25fbec5b 8329rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 8330 conftest$ac_exeext conftest.$ac_ext
ad6254c5 8331fi
ec6a6fbe
AK
8332ac_res=`eval 'as_val=${'$as_ac_var'}
8333 $as_echo "$as_val"'`
8334 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8335$as_echo "$ac_res" >&6; }
8336as_val=`eval 'as_val=${'$as_ac_var'}
8337 $as_echo "$as_val"'`
8338 if test "x$as_val" = x""yes; then
ad6254c5 8339 cat >>confdefs.h <<_ACEOF
ec6a6fbe 8340#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
8341_ACEOF
8342
8343fi
8344done
8345
ec6a6fbe
AK
8346{ $as_echo "$as_me:$LINENO: checking for working mmap" >&5
8347$as_echo_n "checking for working mmap... " >&6; }
ad6254c5 8348if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
ec6a6fbe 8349 $as_echo_n "(cached) " >&6
ad6254c5
AK
8350else
8351 if test "$cross_compiling" = yes; then
8352 ac_cv_func_mmap_fixed_mapped=no
8353else
8354 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8355/* confdefs.h. */
8356_ACEOF
8357cat confdefs.h >>conftest.$ac_ext
8358cat >>conftest.$ac_ext <<_ACEOF
8359/* end confdefs.h. */
8360$ac_includes_default
8361/* malloc might have been renamed as rpl_malloc. */
8362#undef malloc
8363
8364/* Thanks to Mike Haertel and Jim Avera for this test.
8365 Here is a matrix of mmap possibilities:
8366 mmap private not fixed
8367 mmap private fixed at somewhere currently unmapped
8368 mmap private fixed at somewhere already mapped
8369 mmap shared not fixed
8370 mmap shared fixed at somewhere currently unmapped
8371 mmap shared fixed at somewhere already mapped
8372 For private mappings, we should verify that changes cannot be read()
8373 back from the file, nor mmap's back from the file at a different
8374 address. (There have been systems where private was not correctly
8375 implemented like the infamous i386 svr4.0, and systems where the
8376 VM page cache was not coherent with the file system buffer cache
8377 like early versions of FreeBSD and possibly contemporary NetBSD.)
8378 For shared mappings, we should conversely verify that changes get
8379 propagated back to all the places they're supposed to be.
8380
8381 Grep wants private fixed already mapped.
8382 The main things grep needs to know about mmap are:
8383 * does it exist and is it safe to write into the mmap'd area
8384 * how to use it (BSD variants) */
8385
8386#include <fcntl.h>
8387#include <sys/mman.h>
8388
25fbec5b 8389#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
ad6254c5
AK
8390char *malloc ();
8391#endif
8392
8393/* This mess was copied from the GNU getpagesize.h. */
25fbec5b 8394#ifndef HAVE_GETPAGESIZE
ad6254c5 8395/* Assume that all systems that can run configure have sys/param.h. */
25fbec5b 8396# ifndef HAVE_SYS_PARAM_H
ad6254c5
AK
8397# define HAVE_SYS_PARAM_H 1
8398# endif
8399
8400# ifdef _SC_PAGESIZE
8401# define getpagesize() sysconf(_SC_PAGESIZE)
8402# else /* no _SC_PAGESIZE */
25fbec5b 8403# ifdef HAVE_SYS_PARAM_H
ad6254c5
AK
8404# include <sys/param.h>
8405# ifdef EXEC_PAGESIZE
8406# define getpagesize() EXEC_PAGESIZE
8407# else /* no EXEC_PAGESIZE */
8408# ifdef NBPG
8409# define getpagesize() NBPG * CLSIZE
8410# ifndef CLSIZE
8411# define CLSIZE 1
8412# endif /* no CLSIZE */
8413# else /* no NBPG */
8414# ifdef NBPC
8415# define getpagesize() NBPC
8416# else /* no NBPC */
8417# ifdef PAGESIZE
8418# define getpagesize() PAGESIZE
8419# endif /* PAGESIZE */
8420# endif /* no NBPC */
8421# endif /* no NBPG */
8422# endif /* no EXEC_PAGESIZE */
8423# else /* no HAVE_SYS_PARAM_H */
8424# define getpagesize() 8192 /* punt totally */
8425# endif /* no HAVE_SYS_PARAM_H */
8426# endif /* no _SC_PAGESIZE */
8427
8428#endif /* no HAVE_GETPAGESIZE */
8429
8430int
8431main ()
8432{
8433 char *data, *data2, *data3;
8434 int i, pagesize;
8435 int fd;
8436
8437 pagesize = getpagesize ();
8438
8439 /* First, make a file with some known garbage in it. */
8440 data = (char *) malloc (pagesize);
8441 if (!data)
7a197a62 8442 return 1;
ad6254c5
AK
8443 for (i = 0; i < pagesize; ++i)
8444 *(data + i) = rand ();
8445 umask (0);
8446 fd = creat ("conftest.mmap", 0600);
8447 if (fd < 0)
7a197a62 8448 return 1;
ad6254c5 8449 if (write (fd, data, pagesize) != pagesize)
7a197a62 8450 return 1;
ad6254c5
AK
8451 close (fd);
8452
8453 /* Next, try to mmap the file at a fixed address which already has
8454 something else allocated at it. If we can, also make sure that
8455 we see the same garbage. */
8456 fd = open ("conftest.mmap", O_RDWR);
8457 if (fd < 0)
7a197a62 8458 return 1;
ad6254c5
AK
8459 data2 = (char *) malloc (2 * pagesize);
8460 if (!data2)
7a197a62
AK
8461 return 1;
8462 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
ad6254c5 8463 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8a2fc586 8464 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7a197a62 8465 return 1;
ad6254c5
AK
8466 for (i = 0; i < pagesize; ++i)
8467 if (*(data + i) != *(data2 + i))
7a197a62 8468 return 1;
ad6254c5
AK
8469
8470 /* Finally, make sure that changes to the mapped area do not
8471 percolate back to the file as seen by read(). (This is a bug on
8472 some variants of i386 svr4.0.) */
8473 for (i = 0; i < pagesize; ++i)
8474 *(data2 + i) = *(data2 + i) + 1;
8475 data3 = (char *) malloc (pagesize);
8476 if (!data3)
7a197a62 8477 return 1;
ad6254c5 8478 if (read (fd, data3, pagesize) != pagesize)
7a197a62 8479 return 1;
ad6254c5
AK
8480 for (i = 0; i < pagesize; ++i)
8481 if (*(data + i) != *(data3 + i))
7a197a62 8482 return 1;
ad6254c5 8483 close (fd);
7a197a62 8484 return 0;
ad6254c5
AK
8485}
8486_ACEOF
8487rm -f conftest$ac_exeext
7a197a62
AK
8488if { (ac_try="$ac_link"
8489case "(($ac_try" in
8490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8491 *) ac_try_echo=$ac_try;;
8492esac
ec6a6fbe
AK
8493eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8494$as_echo "$ac_try_echo") >&5
7a197a62 8495 (eval "$ac_link") 2>&5
ad6254c5 8496 ac_status=$?
ec6a6fbe 8497 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 8498 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
8499 { (case "(($ac_try" in
8500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8501 *) ac_try_echo=$ac_try;;
8502esac
ec6a6fbe
AK
8503eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8504$as_echo "$ac_try_echo") >&5
7a197a62 8505 (eval "$ac_try") 2>&5
ad6254c5 8506 ac_status=$?
ec6a6fbe 8507 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
8508 (exit $ac_status); }; }; then
8509 ac_cv_func_mmap_fixed_mapped=yes
8510else
ec6a6fbe
AK
8511 $as_echo "$as_me: program exited with status $ac_status" >&5
8512$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8513sed 's/^/| /' conftest.$ac_ext >&5
8514
8515( exit $ac_status )
8516ac_cv_func_mmap_fixed_mapped=no
8517fi
ec6a6fbe 8518rm -rf conftest.dSYM
7a197a62 8519rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 8520fi
7a197a62
AK
8521
8522
ad6254c5 8523fi
ec6a6fbe
AK
8524{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8525$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
ad6254c5
AK
8526if test $ac_cv_func_mmap_fixed_mapped = yes; then
8527
8528cat >>confdefs.h <<\_ACEOF
8529#define HAVE_MMAP 1
8530_ACEOF
8531
8532fi
8533rm -f conftest.mmap
8534
ec6a6fbe
AK
8535{ $as_echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
8536$as_echo_n "checking whether stat accepts an empty string... " >&6; }
ad6254c5 8537if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
ec6a6fbe 8538 $as_echo_n "(cached) " >&6
ad6254c5
AK
8539else
8540 if test "$cross_compiling" = yes; then
8541 ac_cv_func_stat_empty_string_bug=yes
8542else
8543 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8544/* confdefs.h. */
8545_ACEOF
8546cat confdefs.h >>conftest.$ac_ext
8547cat >>conftest.$ac_ext <<_ACEOF
8548/* end confdefs.h. */
8549$ac_includes_default
8550int
8551main ()
8552{
8553struct stat sbuf;
7a197a62 8554 return stat ("", &sbuf) == 0;
ad6254c5
AK
8555 ;
8556 return 0;
8557}
8558_ACEOF
8559rm -f conftest$ac_exeext
7a197a62
AK
8560if { (ac_try="$ac_link"
8561case "(($ac_try" in
8562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8563 *) ac_try_echo=$ac_try;;
8564esac
ec6a6fbe
AK
8565eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8566$as_echo "$ac_try_echo") >&5
7a197a62 8567 (eval "$ac_link") 2>&5
ad6254c5 8568 ac_status=$?
ec6a6fbe 8569 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 8570 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
8571 { (case "(($ac_try" in
8572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8573 *) ac_try_echo=$ac_try;;
8574esac
ec6a6fbe
AK
8575eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8576$as_echo "$ac_try_echo") >&5
7a197a62 8577 (eval "$ac_try") 2>&5
ad6254c5 8578 ac_status=$?
ec6a6fbe 8579 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 8580 (exit $ac_status); }; }; then
7a197a62 8581 ac_cv_func_stat_empty_string_bug=no
ad6254c5 8582else
ec6a6fbe
AK
8583 $as_echo "$as_me: program exited with status $ac_status" >&5
8584$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8585sed 's/^/| /' conftest.$ac_ext >&5
8586
8587( exit $ac_status )
7a197a62 8588ac_cv_func_stat_empty_string_bug=yes
ad6254c5 8589fi
ec6a6fbe 8590rm -rf conftest.dSYM
7a197a62 8591rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 8592fi
7a197a62
AK
8593
8594
ad6254c5 8595fi
ec6a6fbe
AK
8596{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
8597$as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
ad6254c5 8598if test $ac_cv_func_stat_empty_string_bug = yes; then
7a197a62 8599 case " $LIBOBJS " in
8a2fc586 8600 *" stat.$ac_objext "* ) ;;
7a197a62
AK
8601 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
8602 ;;
8a2fc586
AK
8603esac
8604
ad6254c5
AK
8605
8606cat >>confdefs.h <<_ACEOF
8607#define HAVE_STAT_EMPTY_STRING_BUG 1
8608_ACEOF
8609
8610fi
8611
ec6a6fbe
AK
8612{ $as_echo "$as_me:$LINENO: checking for working strtod" >&5
8613$as_echo_n "checking for working strtod... " >&6; }
ad6254c5 8614if test "${ac_cv_func_strtod+set}" = set; then
ec6a6fbe 8615 $as_echo_n "(cached) " >&6
ad6254c5
AK
8616else
8617 if test "$cross_compiling" = yes; then
8618 ac_cv_func_strtod=no
8619else
8620 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8621/* confdefs.h. */
8622_ACEOF
8623cat confdefs.h >>conftest.$ac_ext
8624cat >>conftest.$ac_ext <<_ACEOF
8625/* end confdefs.h. */
8626
7a197a62
AK
8627$ac_includes_default
8628#ifndef strtod
ad6254c5 8629double strtod ();
7a197a62 8630#endif
ad6254c5
AK
8631int
8632main()
8633{
8634 {
8635 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
8636 char *string = " +69";
8637 char *term;
8638 double value;
8639 value = strtod (string, &term);
8640 if (value != 69 || term != (string + 4))
7a197a62 8641 return 1;
ad6254c5
AK
8642 }
8643
8644 {
8645 /* Under Solaris 2.4, strtod returns the wrong value for the
8646 terminating character under some conditions. */
8647 char *string = "NaN";
8648 char *term;
8649 strtod (string, &term);
8650 if (term != string && *(term - 1) == 0)
7a197a62 8651 return 1;
ad6254c5 8652 }
7a197a62 8653 return 0;
ad6254c5
AK
8654}
8655
8656_ACEOF
8657rm -f conftest$ac_exeext
7a197a62
AK
8658if { (ac_try="$ac_link"
8659case "(($ac_try" in
8660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8661 *) ac_try_echo=$ac_try;;
8662esac
ec6a6fbe
AK
8663eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8664$as_echo "$ac_try_echo") >&5
7a197a62 8665 (eval "$ac_link") 2>&5
ad6254c5 8666 ac_status=$?
ec6a6fbe 8667 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 8668 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
8669 { (case "(($ac_try" in
8670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8671 *) ac_try_echo=$ac_try;;
8672esac
ec6a6fbe
AK
8673eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8674$as_echo "$ac_try_echo") >&5
7a197a62 8675 (eval "$ac_try") 2>&5
ad6254c5 8676 ac_status=$?
ec6a6fbe 8677 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
8678 (exit $ac_status); }; }; then
8679 ac_cv_func_strtod=yes
8680else
ec6a6fbe
AK
8681 $as_echo "$as_me: program exited with status $ac_status" >&5
8682$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8683sed 's/^/| /' conftest.$ac_ext >&5
8684
8685( exit $ac_status )
8686ac_cv_func_strtod=no
8687fi
ec6a6fbe 8688rm -rf conftest.dSYM
7a197a62 8689rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 8690fi
7a197a62
AK
8691
8692
ad6254c5 8693fi
ec6a6fbe
AK
8694{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
8695$as_echo "$ac_cv_func_strtod" >&6; }
ad6254c5 8696if test $ac_cv_func_strtod = no; then
7a197a62 8697 case " $LIBOBJS " in
8a2fc586 8698 *" strtod.$ac_objext "* ) ;;
7a197a62
AK
8699 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
8700 ;;
8a2fc586
AK
8701esac
8702
ec6a6fbe
AK
8703{ $as_echo "$as_me:$LINENO: checking for pow" >&5
8704$as_echo_n "checking for pow... " >&6; }
ad6254c5 8705if test "${ac_cv_func_pow+set}" = set; then
ec6a6fbe 8706 $as_echo_n "(cached) " >&6
ad6254c5
AK
8707else
8708 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8709/* confdefs.h. */
8710_ACEOF
8711cat confdefs.h >>conftest.$ac_ext
8712cat >>conftest.$ac_ext <<_ACEOF
8713/* end confdefs.h. */
8a2fc586
AK
8714/* Define pow to an innocuous variant, in case <limits.h> declares pow.
8715 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8716#define pow innocuous_pow
8717
ad6254c5
AK
8718/* System header to define __stub macros and hopefully few prototypes,
8719 which can conflict with char pow (); below.
8720 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8721 <limits.h> exists even on freestanding compilers. */
8a2fc586 8722
ad6254c5
AK
8723#ifdef __STDC__
8724# include <limits.h>
8725#else
8726# include <assert.h>
8727#endif
8a2fc586
AK
8728
8729#undef pow
8730
7a197a62
AK
8731/* Override any GCC internal prototype to avoid an error.
8732 Use char because int might match the return type of a GCC
8733 builtin and then its argument prototype would still apply. */
ad6254c5
AK
8734#ifdef __cplusplus
8735extern "C"
ad6254c5 8736#endif
ad6254c5
AK
8737char pow ();
8738/* The GNU C library defines this for functions which it implements
8739 to always fail with ENOSYS. Some functions are actually named
8740 something starting with __ and the normal name is an alias. */
7a197a62 8741#if defined __stub_pow || defined __stub___pow
ad6254c5 8742choke me
ad6254c5
AK
8743#endif
8744
8745int
8746main ()
8747{
7a197a62 8748return pow ();
ad6254c5
AK
8749 ;
8750 return 0;
8751}
8752_ACEOF
8753rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
8754if { (ac_try="$ac_link"
8755case "(($ac_try" in
8756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8757 *) ac_try_echo=$ac_try;;
8758esac
ec6a6fbe
AK
8759eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8760$as_echo "$ac_try_echo") >&5
7a197a62 8761 (eval "$ac_link") 2>conftest.er1
ad6254c5 8762 ac_status=$?
8a2fc586
AK
8763 grep -v '^ *+' conftest.er1 >conftest.err
8764 rm -f conftest.er1
8765 cat conftest.err >&5
ec6a6fbe 8766 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8767 (exit $ac_status); } && {
8768 test -z "$ac_c_werror_flag" ||
8769 test ! -s conftest.err
ec6a6fbe
AK
8770 } && test -s conftest$ac_exeext && {
8771 test "$cross_compiling" = yes ||
8772 $as_test_x conftest$ac_exeext
8773 }; then
ad6254c5
AK
8774 ac_cv_func_pow=yes
8775else
ec6a6fbe 8776 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8777sed 's/^/| /' conftest.$ac_ext >&5
8778
7a197a62 8779 ac_cv_func_pow=no
ad6254c5 8780fi
7a197a62 8781
ec6a6fbe 8782rm -rf conftest.dSYM
25fbec5b 8783rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 8784 conftest$ac_exeext conftest.$ac_ext
ad6254c5 8785fi
ec6a6fbe
AK
8786{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
8787$as_echo "$ac_cv_func_pow" >&6; }
ad6254c5
AK
8788
8789if test $ac_cv_func_pow = no; then
ec6a6fbe
AK
8790 { $as_echo "$as_me:$LINENO: checking for pow in -lm" >&5
8791$as_echo_n "checking for pow in -lm... " >&6; }
ad6254c5 8792if test "${ac_cv_lib_m_pow+set}" = set; then
ec6a6fbe 8793 $as_echo_n "(cached) " >&6
ad6254c5
AK
8794else
8795 ac_check_lib_save_LIBS=$LIBS
8796LIBS="-lm $LIBS"
8797cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8798/* confdefs.h. */
8799_ACEOF
8800cat confdefs.h >>conftest.$ac_ext
8801cat >>conftest.$ac_ext <<_ACEOF
8802/* end confdefs.h. */
8803
7a197a62
AK
8804/* Override any GCC internal prototype to avoid an error.
8805 Use char because int might match the return type of a GCC
8806 builtin and then its argument prototype would still apply. */
ad6254c5
AK
8807#ifdef __cplusplus
8808extern "C"
8809#endif
ad6254c5
AK
8810char pow ();
8811int
8812main ()
8813{
7a197a62 8814return pow ();
ad6254c5
AK
8815 ;
8816 return 0;
8817}
8818_ACEOF
8819rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
8820if { (ac_try="$ac_link"
8821case "(($ac_try" in
8822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8823 *) ac_try_echo=$ac_try;;
8824esac
ec6a6fbe
AK
8825eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8826$as_echo "$ac_try_echo") >&5
7a197a62 8827 (eval "$ac_link") 2>conftest.er1
ad6254c5 8828 ac_status=$?
8a2fc586
AK
8829 grep -v '^ *+' conftest.er1 >conftest.err
8830 rm -f conftest.er1
8831 cat conftest.err >&5
ec6a6fbe 8832 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8833 (exit $ac_status); } && {
8834 test -z "$ac_c_werror_flag" ||
8835 test ! -s conftest.err
ec6a6fbe
AK
8836 } && test -s conftest$ac_exeext && {
8837 test "$cross_compiling" = yes ||
8838 $as_test_x conftest$ac_exeext
8839 }; then
ad6254c5
AK
8840 ac_cv_lib_m_pow=yes
8841else
ec6a6fbe 8842 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8843sed 's/^/| /' conftest.$ac_ext >&5
8844
7a197a62 8845 ac_cv_lib_m_pow=no
ad6254c5 8846fi
7a197a62 8847
ec6a6fbe 8848rm -rf conftest.dSYM
25fbec5b 8849rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 8850 conftest$ac_exeext conftest.$ac_ext
ad6254c5 8851LIBS=$ac_check_lib_save_LIBS
d0191583 8852fi
ec6a6fbe
AK
8853{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
8854$as_echo "$ac_cv_lib_m_pow" >&6; }
8855if test "x$ac_cv_lib_m_pow" = x""yes; then
d0191583
JM
8856 POW_LIB=-lm
8857else
ec6a6fbe
AK
8858 { $as_echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
8859$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
d0191583 8860fi
72b2cb61 8861
d0191583 8862fi
72b2cb61 8863
ad6254c5
AK
8864fi
8865
ad6254c5 8866
d0191583
JM
8867for ac_func in vprintf
8868do
ec6a6fbe
AK
8869as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8870{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8871$as_echo_n "checking for $ac_func... " >&6; }
d0191583 8872if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 8873 $as_echo_n "(cached) " >&6
ad6254c5 8874else
d0191583
JM
8875 cat >conftest.$ac_ext <<_ACEOF
8876/* confdefs.h. */
8877_ACEOF
8878cat confdefs.h >>conftest.$ac_ext
8879cat >>conftest.$ac_ext <<_ACEOF
8880/* end confdefs.h. */
8881/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8882 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8883#define $ac_func innocuous_$ac_func
7a197a62 8884
d0191583
JM
8885/* System header to define __stub macros and hopefully few prototypes,
8886 which can conflict with char $ac_func (); below.
8887 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8888 <limits.h> exists even on freestanding compilers. */
ad6254c5 8889
d0191583
JM
8890#ifdef __STDC__
8891# include <limits.h>
8892#else
8893# include <assert.h>
8894#endif
ad6254c5 8895
d0191583 8896#undef $ac_func
72b2cb61 8897
d0191583
JM
8898/* Override any GCC internal prototype to avoid an error.
8899 Use char because int might match the return type of a GCC
8900 builtin and then its argument prototype would still apply. */
8901#ifdef __cplusplus
8902extern "C"
8903#endif
8904char $ac_func ();
8905/* The GNU C library defines this for functions which it implements
8906 to always fail with ENOSYS. Some functions are actually named
8907 something starting with __ and the normal name is an alias. */
8908#if defined __stub_$ac_func || defined __stub___$ac_func
8909choke me
8910#endif
8911
8912int
8913main ()
8914{
8915return $ac_func ();
8916 ;
8917 return 0;
8918}
72b2cb61 8919_ACEOF
d0191583
JM
8920rm -f conftest.$ac_objext conftest$ac_exeext
8921if { (ac_try="$ac_link"
8922case "(($ac_try" in
8923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8924 *) ac_try_echo=$ac_try;;
8925esac
ec6a6fbe
AK
8926eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8927$as_echo "$ac_try_echo") >&5
d0191583
JM
8928 (eval "$ac_link") 2>conftest.er1
8929 ac_status=$?
8930 grep -v '^ *+' conftest.er1 >conftest.err
8931 rm -f conftest.er1
8932 cat conftest.err >&5
ec6a6fbe 8933 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
8934 (exit $ac_status); } && {
8935 test -z "$ac_c_werror_flag" ||
8936 test ! -s conftest.err
ec6a6fbe
AK
8937 } && test -s conftest$ac_exeext && {
8938 test "$cross_compiling" = yes ||
8939 $as_test_x conftest$ac_exeext
8940 }; then
d0191583
JM
8941 eval "$as_ac_var=yes"
8942else
ec6a6fbe 8943 $as_echo "$as_me: failed program was:" >&5
d0191583 8944sed 's/^/| /' conftest.$ac_ext >&5
72b2cb61 8945
d0191583 8946 eval "$as_ac_var=no"
ad6254c5
AK
8947fi
8948
ec6a6fbe 8949rm -rf conftest.dSYM
d0191583
JM
8950rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8951 conftest$ac_exeext conftest.$ac_ext
7a197a62 8952fi
ec6a6fbe
AK
8953ac_res=`eval 'as_val=${'$as_ac_var'}
8954 $as_echo "$as_val"'`
8955 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8956$as_echo "$ac_res" >&6; }
8957as_val=`eval 'as_val=${'$as_ac_var'}
8958 $as_echo "$as_val"'`
8959 if test "x$as_val" = x""yes; then
d0191583 8960 cat >>confdefs.h <<_ACEOF
ec6a6fbe 8961#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
d0191583 8962_ACEOF
7a197a62 8963
ec6a6fbe
AK
8964{ $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
8965$as_echo_n "checking for _doprnt... " >&6; }
d0191583 8966if test "${ac_cv_func__doprnt+set}" = set; then
ec6a6fbe 8967 $as_echo_n "(cached) " >&6
ad6254c5 8968else
d0191583
JM
8969 cat >conftest.$ac_ext <<_ACEOF
8970/* confdefs.h. */
8971_ACEOF
8972cat confdefs.h >>conftest.$ac_ext
8973cat >>conftest.$ac_ext <<_ACEOF
8974/* end confdefs.h. */
8975/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
8976 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8977#define _doprnt innocuous__doprnt
7a197a62 8978
d0191583
JM
8979/* System header to define __stub macros and hopefully few prototypes,
8980 which can conflict with char _doprnt (); below.
8981 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8982 <limits.h> exists even on freestanding compilers. */
ad6254c5 8983
d0191583
JM
8984#ifdef __STDC__
8985# include <limits.h>
8986#else
8987# include <assert.h>
8988#endif
72b2cb61 8989
d0191583
JM
8990#undef _doprnt
8991
8992/* Override any GCC internal prototype to avoid an error.
8993 Use char because int might match the return type of a GCC
8994 builtin and then its argument prototype would still apply. */
8995#ifdef __cplusplus
8996extern "C"
8997#endif
8998char _doprnt ();
8999/* The GNU C library defines this for functions which it implements
9000 to always fail with ENOSYS. Some functions are actually named
9001 something starting with __ and the normal name is an alias. */
9002#if defined __stub__doprnt || defined __stub____doprnt
9003choke me
9004#endif
9005
9006int
9007main ()
9008{
9009return _doprnt ();
9010 ;
9011 return 0;
9012}
72b2cb61 9013_ACEOF
d0191583
JM
9014rm -f conftest.$ac_objext conftest$ac_exeext
9015if { (ac_try="$ac_link"
9016case "(($ac_try" in
9017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9018 *) ac_try_echo=$ac_try;;
9019esac
ec6a6fbe
AK
9020eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9021$as_echo "$ac_try_echo") >&5
d0191583
JM
9022 (eval "$ac_link") 2>conftest.er1
9023 ac_status=$?
9024 grep -v '^ *+' conftest.er1 >conftest.err
9025 rm -f conftest.er1
9026 cat conftest.err >&5
ec6a6fbe 9027 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
9028 (exit $ac_status); } && {
9029 test -z "$ac_c_werror_flag" ||
9030 test ! -s conftest.err
ec6a6fbe
AK
9031 } && test -s conftest$ac_exeext && {
9032 test "$cross_compiling" = yes ||
9033 $as_test_x conftest$ac_exeext
9034 }; then
d0191583
JM
9035 ac_cv_func__doprnt=yes
9036else
ec6a6fbe 9037 $as_echo "$as_me: failed program was:" >&5
d0191583 9038sed 's/^/| /' conftest.$ac_ext >&5
72b2cb61 9039
d0191583 9040 ac_cv_func__doprnt=no
ad6254c5
AK
9041fi
9042
ec6a6fbe 9043rm -rf conftest.dSYM
d0191583
JM
9044rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9045 conftest$ac_exeext conftest.$ac_ext
7a197a62 9046fi
ec6a6fbe
AK
9047{ $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
9048$as_echo "$ac_cv_func__doprnt" >&6; }
9049if test "x$ac_cv_func__doprnt" = x""yes; then
7a197a62 9050
d0191583
JM
9051cat >>confdefs.h <<\_ACEOF
9052#define HAVE_DOPRNT 1
9053_ACEOF
ad6254c5 9054
7a197a62
AK
9055fi
9056
d0191583
JM
9057fi
9058done
8b1a3214 9059
ad6254c5 9060
7a197a62 9061
9c961554 9062################################################################################
ec6a6fbe
AK
9063{ $as_echo "$as_me:$LINENO: checking whether to use static linking" >&5
9064$as_echo_n "checking whether to use static linking... " >&6; }
9c961554
MB
9065# Check whether --enable-static_link was given.
9066if test "${enable_static_link+set}" = set; then
9067 enableval=$enable_static_link; STATIC_LINK=$enableval
9068else
9069 STATIC_LINK=no
9070fi
9071
ec6a6fbe
AK
9072{ $as_echo "$as_me:$LINENO: result: $STATIC_LINK" >&5
9073$as_echo "$STATIC_LINK" >&6; }
9c961554 9074
d0191583 9075################################################################################
ad6254c5 9076
ad6254c5
AK
9077
9078################################################################################
ec6a6fbe
AK
9079{ $as_echo "$as_me:$LINENO: checking file owner" >&5
9080$as_echo_n "checking file owner... " >&6; }
39dabc84 9081OWNER=""
d0191583
JM
9082
9083
9084# Check whether --with-user was given.
9085if test "${with_user+set}" = set; then
9086 withval=$with_user; OWNER="$withval"
7a197a62
AK
9087fi
9088
ec6a6fbe
AK
9089{ $as_echo "$as_me:$LINENO: result: $OWNER" >&5
9090$as_echo "$OWNER" >&6; }
ad6254c5 9091
d0191583
JM
9092if test x$OWNER != x; then
9093 OWNER="-o $OWNER"
ad6254c5
AK
9094fi
9095
9096################################################################################
ec6a6fbe
AK
9097{ $as_echo "$as_me:$LINENO: checking group owner" >&5
9098$as_echo_n "checking group owner... " >&6; }
39dabc84 9099GROUP=""
ad6254c5 9100
d0191583
JM
9101# Check whether --with-group was given.
9102if test "${with_group+set}" = set; then
9103 withval=$with_group; GROUP="$withval"
7a197a62
AK
9104fi
9105
ec6a6fbe
AK
9106{ $as_echo "$as_me:$LINENO: result: $GROUP" >&5
9107$as_echo "$GROUP" >&6; }
d0191583
JM
9108
9109if test x$GROUP != x; then
9110 GROUP="-g $GROUP"
9111fi
ad6254c5 9112
24bbc4d7 9113################################################################################
ec6a6fbe
AK
9114{ $as_echo "$as_me:$LINENO: checking device node uid" >&5
9115$as_echo_n "checking device node uid... " >&6; }
24bbc4d7
AK
9116
9117
9118# Check whether --with-device-uid was given.
9119if test "${with_device_uid+set}" = set; then
9120 withval=$with_device_uid; DM_DEVICE_UID="$withval"
9121else
9122 DM_DEVICE_UID="0"
9123fi
9124
ec6a6fbe
AK
9125{ $as_echo "$as_me:$LINENO: result: $DM_DEVICE_UID" >&5
9126$as_echo "$DM_DEVICE_UID" >&6; }
24bbc4d7
AK
9127
9128################################################################################
ec6a6fbe
AK
9129{ $as_echo "$as_me:$LINENO: checking device node gid" >&5
9130$as_echo_n "checking device node gid... " >&6; }
24bbc4d7
AK
9131
9132
9133# Check whether --with-device-gid was given.
9134if test "${with_device_gid+set}" = set; then
9135 withval=$with_device_gid; DM_DEVICE_GID="$withval"
9136else
9137 DM_DEVICE_GID="0"
9138fi
9139
ec6a6fbe
AK
9140{ $as_echo "$as_me:$LINENO: result: $DM_DEVICE_GID" >&5
9141$as_echo "$DM_DEVICE_GID" >&6; }
24bbc4d7 9142
93bd259b 9143################################################################################
ec6a6fbe
AK
9144{ $as_echo "$as_me:$LINENO: checking device node mode" >&5
9145$as_echo_n "checking device node mode... " >&6; }
93bd259b
AK
9146
9147
9148# Check whether --with-device-mode was given.
9149if test "${with_device_mode+set}" = set; then
9150 withval=$with_device_mode; DM_DEVICE_MODE="$withval"
9151else
9152 DM_DEVICE_MODE="0600"
9153fi
9154
ec6a6fbe
AK
9155{ $as_echo "$as_me:$LINENO: result: $DM_DEVICE_MODE" >&5
9156$as_echo "$DM_DEVICE_MODE" >&6; }
93bd259b 9157
ad6254c5 9158################################################################################
ec6a6fbe
AK
9159{ $as_echo "$as_me:$LINENO: checking whether to enable lvm1 fallback" >&5
9160$as_echo_n "checking whether to enable lvm1 fallback... " >&6; }
d0191583
JM
9161# Check whether --enable-lvm1_fallback was given.
9162if test "${enable_lvm1_fallback+set}" = set; then
9163 enableval=$enable_lvm1_fallback; LVM1_FALLBACK=$enableval
9164else
9165 LVM1_FALLBACK=no
7a197a62
AK
9166fi
9167
ec6a6fbe
AK
9168{ $as_echo "$as_me:$LINENO: result: $LVM1_FALLBACK" >&5
9169$as_echo "$LVM1_FALLBACK" >&6; }
ad6254c5 9170
d0191583 9171if test x$LVM1_FALLBACK = xyes; then
72b2cb61
AK
9172
9173cat >>confdefs.h <<\_ACEOF
d0191583 9174#define LVM1_FALLBACK 1
72b2cb61
AK
9175_ACEOF
9176
ad6254c5
AK
9177fi
9178
9179################################################################################
ec6a6fbe
AK
9180{ $as_echo "$as_me:$LINENO: checking whether to include support for lvm1 metadata" >&5
9181$as_echo_n "checking whether to include support for lvm1 metadata... " >&6; }
d0191583
JM
9182
9183# Check whether --with-lvm1 was given.
9184if test "${with_lvm1+set}" = set; then
9185 withval=$with_lvm1; LVM1="$withval"
9186else
9187 LVM1="internal"
7a197a62
AK
9188fi
9189
ec6a6fbe
AK
9190{ $as_echo "$as_me:$LINENO: result: $LVM1" >&5
9191$as_echo "$LVM1" >&6; }
ad6254c5 9192
d0191583 9193if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ];
ec6a6fbe 9194 then { { $as_echo "$as_me:$LINENO: error: --with-lvm1 parameter invalid
d0191583 9195" >&5
ec6a6fbe 9196$as_echo "$as_me: error: --with-lvm1 parameter invalid
d0191583
JM
9197" >&2;}
9198 { (exit 1); exit 1; }; }
9199fi;
9200
9201if test x$LVM1 = xinternal; then
72b2cb61
AK
9202
9203cat >>confdefs.h <<\_ACEOF
d0191583 9204#define LVM1_INTERNAL 1
72b2cb61
AK
9205_ACEOF
9206
ad6254c5
AK
9207fi
9208
9209################################################################################
ec6a6fbe
AK
9210{ $as_echo "$as_me:$LINENO: checking whether to include support for GFS pool metadata" >&5
9211$as_echo_n "checking whether to include support for GFS pool metadata... " >&6; }
d0191583
JM
9212
9213# Check whether --with-pool was given.
9214if test "${with_pool+set}" = set; then
9215 withval=$with_pool; POOL="$withval"
ad6254c5 9216else
d0191583 9217 POOL="internal"
7a197a62
AK
9218fi
9219
ec6a6fbe
AK
9220{ $as_echo "$as_me:$LINENO: result: $POOL" >&5
9221$as_echo "$POOL" >&6; }
ad6254c5 9222
d0191583 9223if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ];
ec6a6fbe 9224 then { { $as_echo "$as_me:$LINENO: error: --with-pool parameter invalid
d0191583 9225" >&5
ec6a6fbe 9226$as_echo "$as_me: error: --with-pool parameter invalid
d0191583
JM
9227" >&2;}
9228 { (exit 1); exit 1; }; }
9229fi;
7a197a62 9230
d0191583
JM
9231if test x$POOL = xinternal; then
9232
9233cat >>confdefs.h <<\_ACEOF
9234#define POOL_INTERNAL 1
9235_ACEOF
9236
9237fi
ad6254c5 9238
06f62ad1 9239################################################################################
ec6a6fbe
AK
9240{ $as_echo "$as_me:$LINENO: checking whether to include support for cluster locking" >&5
9241$as_echo_n "checking whether to include support for cluster locking... " >&6; }
d0191583
JM
9242
9243# Check whether --with-cluster was given.
9244if test "${with_cluster+set}" = set; then
9245 withval=$with_cluster; CLUSTER="$withval"
7a197a62
AK
9246fi
9247
ec6a6fbe
AK
9248{ $as_echo "$as_me:$LINENO: result: $CLUSTER" >&5
9249$as_echo "$CLUSTER" >&6; }
06f62ad1 9250
d0191583 9251if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ];
ec6a6fbe 9252 then { { $as_echo "$as_me:$LINENO: error: --with-cluster parameter invalid
06f62ad1 9253" >&5
ec6a6fbe 9254$as_echo "$as_me: error: --with-cluster parameter invalid
06f62ad1
AK
9255" >&2;}
9256 { (exit 1); exit 1; }; }
d0191583 9257fi;
06f62ad1 9258
d0191583 9259if test x$CLUSTER = xinternal; then
72b2cb61
AK
9260
9261cat >>confdefs.h <<\_ACEOF
d0191583 9262#define CLUSTER_LOCKING_INTERNAL 1
72b2cb61
AK
9263_ACEOF
9264
15d91f5a 9265fi
ad6254c5
AK
9266
9267################################################################################
ec6a6fbe
AK
9268{ $as_echo "$as_me:$LINENO: checking whether to include snapshots" >&5
9269$as_echo_n "checking whether to include snapshots... " >&6; }
ad6254c5 9270
d0191583
JM
9271# Check whether --with-snapshots was given.
9272if test "${with_snapshots+set}" = set; then
9273 withval=$with_snapshots; SNAPSHOTS="$withval"
9274else
9275 SNAPSHOTS="internal"
ad6254c5
AK
9276fi
9277
ec6a6fbe
AK
9278{ $as_echo "$as_me:$LINENO: result: $SNAPSHOTS" >&5
9279$as_echo "$SNAPSHOTS" >&6; }
ad6254c5 9280
d0191583 9281if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ];
ec6a6fbe 9282 then { { $as_echo "$as_me:$LINENO: error: --with-snapshots parameter invalid
d0191583 9283" >&5
ec6a6fbe 9284$as_echo "$as_me: error: --with-snapshots parameter invalid
d0191583
JM
9285" >&2;}
9286 { (exit 1); exit 1; }; }
9287fi;
9288
9289if test x$SNAPSHOTS = xinternal; then
9290
9291cat >>confdefs.h <<\_ACEOF
9292#define SNAPSHOT_INTERNAL 1
9293_ACEOF
ad6254c5 9294
ad6254c5 9295fi
7a197a62 9296
d0191583 9297################################################################################
ec6a6fbe
AK
9298{ $as_echo "$as_me:$LINENO: checking whether to include mirrors" >&5
9299$as_echo_n "checking whether to include mirrors... " >&6; }
d0191583
JM
9300
9301# Check whether --with-mirrors was given.
9302if test "${with_mirrors+set}" = set; then
9303 withval=$with_mirrors; MIRRORS="$withval"
9304else
9305 MIRRORS="internal"
ad6254c5 9306fi
ad6254c5 9307
ec6a6fbe
AK
9308{ $as_echo "$as_me:$LINENO: result: $MIRRORS" >&5
9309$as_echo "$MIRRORS" >&6; }
ad6254c5 9310
d0191583 9311if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ];
ec6a6fbe 9312 then { { $as_echo "$as_me:$LINENO: error: --with-mirrors parameter invalid
d0191583 9313" >&5
ec6a6fbe 9314$as_echo "$as_me: error: --with-mirrors parameter invalid
d0191583
JM
9315" >&2;}
9316 { (exit 1); exit 1; }; }
9317fi;
ad6254c5 9318
d0191583 9319if test x$MIRRORS = xinternal; then
ad6254c5 9320
d0191583
JM
9321cat >>confdefs.h <<\_ACEOF
9322#define MIRRORED_INTERNAL 1
ad6254c5 9323_ACEOF
8a2fc586 9324
d0191583 9325fi
8a2fc586 9326
d0191583 9327################################################################################
ec6a6fbe
AK
9328{ $as_echo "$as_me:$LINENO: checking whether to enable readline" >&5
9329$as_echo_n "checking whether to enable readline... " >&6; }
d0191583
JM
9330# Check whether --enable-readline was given.
9331if test "${enable_readline+set}" = set; then
9332 enableval=$enable_readline; READLINE=$enableval
9333else
06e459df 9334 READLINE=maybe
d0191583 9335fi
8a2fc586 9336
ec6a6fbe
AK
9337{ $as_echo "$as_me:$LINENO: result: $READLINE" >&5
9338$as_echo "$READLINE" >&6; }
8a2fc586 9339
d0191583 9340################################################################################
ec6a6fbe
AK
9341{ $as_echo "$as_me:$LINENO: checking whether to enable realtime support" >&5
9342$as_echo_n "checking whether to enable realtime support... " >&6; }
d0191583
JM
9343# Check whether --enable-realtime was given.
9344if test "${enable_realtime+set}" = set; then
9345 enableval=$enable_realtime; REALTIME=$enableval
ad6254c5 9346fi
ad6254c5 9347
ec6a6fbe
AK
9348{ $as_echo "$as_me:$LINENO: result: $REALTIME" >&5
9349$as_echo "$REALTIME" >&6; }
d0191583
JM
9350
9351################################################################################
90c80887 9352pkg_config_init() {
e2997b73
AK
9353
9354
9355if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
9356 if test -n "$ac_tool_prefix"; then
9357 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
9358set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
9359{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9360$as_echo_n "checking for $ac_word... " >&6; }
9361if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9362 $as_echo_n "(cached) " >&6
9363else
9364 case $PKG_CONFIG in
9365 [\\/]* | ?:[\\/]*)
9366 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9367 ;;
9368 *)
9369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9370for as_dir in $PATH
9371do
9372 IFS=$as_save_IFS
9373 test -z "$as_dir" && as_dir=.
9374 for ac_exec_ext in '' $ac_executable_extensions; do
9375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9376 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9377 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9378 break 2
9379 fi
9380done
9381done
9382IFS=$as_save_IFS
9383
9384 ;;
9385esac
9386fi
9387PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9388if test -n "$PKG_CONFIG"; then
9389 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9390$as_echo "$PKG_CONFIG" >&6; }
9391else
9392 { $as_echo "$as_me:$LINENO: result: no" >&5
9393$as_echo "no" >&6; }
9394fi
9395
9396
9397fi
9398if test -z "$ac_cv_path_PKG_CONFIG"; then
9399 ac_pt_PKG_CONFIG=$PKG_CONFIG
9400 # Extract the first word of "pkg-config", so it can be a program name with args.
9401set dummy pkg-config; ac_word=$2
9402{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9403$as_echo_n "checking for $ac_word... " >&6; }
9404if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
9405 $as_echo_n "(cached) " >&6
9406else
9407 case $ac_pt_PKG_CONFIG in
9408 [\\/]* | ?:[\\/]*)
9409 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
9410 ;;
9411 *)
9412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9413for as_dir in $PATH
9414do
9415 IFS=$as_save_IFS
9416 test -z "$as_dir" && as_dir=.
9417 for ac_exec_ext in '' $ac_executable_extensions; do
9418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9419 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9420 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9421 break 2
9422 fi
9423done
9424done
9425IFS=$as_save_IFS
9426
9427 ;;
9428esac
9429fi
9430ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
9431if test -n "$ac_pt_PKG_CONFIG"; then
9432 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
9433$as_echo "$ac_pt_PKG_CONFIG" >&6; }
9434else
9435 { $as_echo "$as_me:$LINENO: result: no" >&5
9436$as_echo "no" >&6; }
9437fi
9438
9439 if test "x$ac_pt_PKG_CONFIG" = x; then
9440 PKG_CONFIG=""
9441 else
9442 case $cross_compiling:$ac_tool_warned in
9443yes:)
9444{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9445$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9446ac_tool_warned=yes ;;
9447esac
9448 PKG_CONFIG=$ac_pt_PKG_CONFIG
9449 fi
9450else
9451 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
9452fi
9453
9454fi
9455if test -n "$PKG_CONFIG"; then
9456 _pkg_min_version=0.9.0
9457 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
9458$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
9459 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
9460 { $as_echo "$as_me:$LINENO: result: yes" >&5
9461$as_echo "yes" >&6; }
9462 else
9463 { $as_echo "$as_me:$LINENO: result: no" >&5
9464$as_echo "no" >&6; }
9465 PKG_CONFIG=""
9466 fi
9467
9468fi
9469
9470pkg_failed=no
a946372e
AK
9471{ $as_echo "$as_me:$LINENO: checking for PKGCONFIGINIT" >&5
9472$as_echo_n "checking for PKGCONFIGINIT... " >&6; }
e2997b73 9473
a946372e
AK
9474if test -n "$PKGCONFIGINIT_CFLAGS"; then
9475 pkg_cv_PKGCONFIGINIT_CFLAGS="$PKGCONFIGINIT_CFLAGS"
e2997b73
AK
9476 elif test -n "$PKG_CONFIG"; then
9477 if test -n "$PKG_CONFIG" && \
a946372e
AK
9478 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\"") >&5
9479 ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5
e2997b73
AK
9480 ac_status=$?
9481 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9482 (exit $ac_status); }; then
a946372e 9483 pkg_cv_PKGCONFIGINIT_CFLAGS=`$PKG_CONFIG --cflags "pkgconfiginit" 2>/dev/null`
e2997b73
AK
9484else
9485 pkg_failed=yes
9486fi
9487 else
9488 pkg_failed=untried
9489fi
a946372e
AK
9490if test -n "$PKGCONFIGINIT_LIBS"; then
9491 pkg_cv_PKGCONFIGINIT_LIBS="$PKGCONFIGINIT_LIBS"
e2997b73
AK
9492 elif test -n "$PKG_CONFIG"; then
9493 if test -n "$PKG_CONFIG" && \
a946372e
AK
9494 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\"") >&5
9495 ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5
e2997b73
AK
9496 ac_status=$?
9497 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9498 (exit $ac_status); }; then
a946372e 9499 pkg_cv_PKGCONFIGINIT_LIBS=`$PKG_CONFIG --libs "pkgconfiginit" 2>/dev/null`
e2997b73
AK
9500else
9501 pkg_failed=yes
9502fi
9503 else
9504 pkg_failed=untried
9505fi
9506
9507
9508
9509if test $pkg_failed = yes; then
9510
9511if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9512 _pkg_short_errors_supported=yes
9513else
9514 _pkg_short_errors_supported=no
9515fi
9516 if test $_pkg_short_errors_supported = yes; then
a946372e 9517 PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pkgconfiginit" 2>&1`
e2997b73 9518 else
a946372e 9519 PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "pkgconfiginit" 2>&1`
e2997b73
AK
9520 fi
9521 # Put the nasty error message in config.log where it belongs
a946372e 9522 echo "$PKGCONFIGINIT_PKG_ERRORS" >&5
e2997b73
AK
9523
9524 { $as_echo "$as_me:$LINENO: result: no" >&5
9525$as_echo "no" >&6; }
a946372e
AK
9526 { $as_echo "$as_me:$LINENO: result: pkg-config initialized" >&5
9527$as_echo "pkg-config initialized" >&6; }
e2997b73 9528elif test $pkg_failed = untried; then
a946372e
AK
9529 { $as_echo "$as_me:$LINENO: result: pkg-config initialized" >&5
9530$as_echo "pkg-config initialized" >&6; }
e2997b73 9531else
a946372e
AK
9532 PKGCONFIGINIT_CFLAGS=$pkg_cv_PKGCONFIGINIT_CFLAGS
9533 PKGCONFIGINIT_LIBS=$pkg_cv_PKGCONFIGINIT_LIBS
e2997b73
AK
9534 { $as_echo "$as_me:$LINENO: result: yes" >&5
9535$as_echo "yes" >&6; }
9536 :
9537fi
90c80887
AK
9538 PKGCONFIG_INIT=1
9539}
9540
9541################################################################################
9542{ $as_echo "$as_me:$LINENO: checking whether to build cluster LVM daemon" >&5
9543$as_echo_n "checking whether to build cluster LVM daemon... " >&6; }
9544
9545# Check whether --with-clvmd was given.
9546if test "${with_clvmd+set}" = set; then
9547 withval=$with_clvmd; CLVMD="$withval"
9548else
9549 CLVMD="none"
9550fi
9551
9552if test x$CLVMD = xyes; then
9553 CLVMD=all
9554fi
9555{ $as_echo "$as_me:$LINENO: result: $CLVMD" >&5
9556$as_echo "$CLVMD" >&6; }
9557
9558if test x$CLVMD != xnone && test x$CLUSTER = xnone; then
9559 CLUSTER=internal
9560fi
9561
9562if test x$CLVMD != xnone && test x$PKGCONFIG_INIT != x1; then
9563 pkg_config_init
9564fi
9565
9566
9567if [ `expr x"$CLVMD" : '.*gulm.*'` != 0 ]; then
9568 BUILDGULM=yes
9569fi
9570if [ `expr x"$CLVMD" : '.*corosync.*'` != 0 ]; then
9571 BUILDCOROSYNC=yes
9572fi
9573if [ `expr x"$CLVMD" : '.*openais.*'` != 0 ]; then
9574 BUILDOPENAIS=yes
9575fi
9576if [ `expr x"$CLVMD" : '.*cman.*'` != 0 ]; then
9577 BUILDCMAN=yes
9578fi
9579
9580if test x$BUILDGULM = xyes; then
9581 if test x$BUILDCOROSYNC = xyes || \
9582 test x$BUILDOPENAIS = xyes; then
9583 { { $as_echo "$as_me:$LINENO: error: requested clvmd configuration is not valid" >&5
9584$as_echo "$as_me: error: requested clvmd configuration is not valid" >&2;}
9585 { (exit 1); exit 1; }; }
9586 fi
a946372e 9587fi
e2997b73 9588
a946372e
AK
9589soft_bailout() {
9590 NOTFOUND=1
9591}
e2997b73 9592
a946372e
AK
9593hard_bailout() {
9594 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
9595$as_echo "$as_me: error: bailing out" >&2;}
9596 { (exit 1); exit 1; }; }
9597}
9598
9599if test x$CLVMD = xall; then
9600 bailout=soft_bailout
9601 BUILDGULM=yes
9602 BUILDCMAN=yes
9603 BUILDCOROSYNC=yes
9604 BUILDOPENAIS=yes
e2997b73 9605else
a946372e 9606 bailout=hard_bailout
e2997b73 9607fi
a946372e
AK
9608
9609check_lib_no_libs() {
9610 lib_no_libs_arg1=$1
9611 shift
9612 lib_no_libs_arg2=$1
9613 shift
9614 lib_no_libs_args=$@
9615
9616as_ac_Lib=`$as_echo "ac_cv_lib_$lib_no_libs_arg1''_$lib_no_libs_arg2" | $as_tr_sh`
9617{ $as_echo "$as_me:$LINENO: checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1" >&5
9618$as_echo_n "checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1... " >&6; }
9619if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
9620 $as_echo_n "(cached) " >&6
9621else
9622 ac_check_lib_save_LIBS=$LIBS
9623LIBS="-l$lib_no_libs_arg1 $lib_no_libs_args $LIBS"
9624cat >conftest.$ac_ext <<_ACEOF
9625/* confdefs.h. */
9626_ACEOF
9627cat confdefs.h >>conftest.$ac_ext
9628cat >>conftest.$ac_ext <<_ACEOF
9629/* end confdefs.h. */
9630
9631/* Override any GCC internal prototype to avoid an error.
9632 Use char because int might match the return type of a GCC
9633 builtin and then its argument prototype would still apply. */
9634#ifdef __cplusplus
9635extern "C"
9636#endif
9637char $lib_no_libs_arg2 ();
9638int
9639main ()
9640{
9641return $lib_no_libs_arg2 ();
9642 ;
9643 return 0;
9644}
9645_ACEOF
9646rm -f conftest.$ac_objext conftest$ac_exeext
9647if { (ac_try="$ac_link"
9648case "(($ac_try" in
9649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9650 *) ac_try_echo=$ac_try;;
9651esac
9652eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9653$as_echo "$ac_try_echo") >&5
9654 (eval "$ac_link") 2>conftest.er1
e2997b73 9655 ac_status=$?
a946372e
AK
9656 grep -v '^ *+' conftest.er1 >conftest.err
9657 rm -f conftest.er1
9658 cat conftest.err >&5
e2997b73 9659 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
a946372e
AK
9660 (exit $ac_status); } && {
9661 test -z "$ac_c_werror_flag" ||
9662 test ! -s conftest.err
9663 } && test -s conftest$ac_exeext && {
9664 test "$cross_compiling" = yes ||
9665 $as_test_x conftest$ac_exeext
9666 }; then
9667 eval "$as_ac_Lib=yes"
e2997b73 9668else
a946372e
AK
9669 $as_echo "$as_me: failed program was:" >&5
9670sed 's/^/| /' conftest.$ac_ext >&5
e2997b73 9671
a946372e
AK
9672 eval "$as_ac_Lib=no"
9673fi
e2997b73 9674
a946372e
AK
9675rm -rf conftest.dSYM
9676rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9677 conftest$ac_exeext conftest.$ac_ext
9678LIBS=$ac_check_lib_save_LIBS
9679fi
9680ac_res=`eval 'as_val=${'$as_ac_Lib'}
9681 $as_echo "$as_val"'`
9682 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9683$as_echo "$ac_res" >&6; }
9684as_val=`eval 'as_val=${'$as_ac_Lib'}
9685 $as_echo "$as_val"'`
9686 if test "x$as_val" = x""yes; then
9687 cat >>confdefs.h <<_ACEOF
9688#define `$as_echo "HAVE_LIB$lib_no_libs_arg1" | $as_tr_cpp` 1
9689_ACEOF
e2997b73 9690
a946372e 9691 LIBS="-l$lib_no_libs_arg1 $LIBS"
e2997b73 9692
e2997b73 9693else
a946372e 9694 $bailout
e2997b73 9695fi
e2997b73 9696
a946372e
AK
9697 LIBS=$ac_check_lib_save_LIBS
9698}
9699
9700if test x$BUILDGULM = xyes; then
e2997b73
AK
9701
9702pkg_failed=no
a946372e
AK
9703{ $as_echo "$as_me:$LINENO: checking for CCS" >&5
9704$as_echo_n "checking for CCS... " >&6; }
e2997b73 9705
a946372e
AK
9706if test -n "$CCS_CFLAGS"; then
9707 pkg_cv_CCS_CFLAGS="$CCS_CFLAGS"
e2997b73
AK
9708 elif test -n "$PKG_CONFIG"; then
9709 if test -n "$PKG_CONFIG" && \
a946372e
AK
9710 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libccs\"") >&5
9711 ($PKG_CONFIG --exists --print-errors "libccs") 2>&5
e2997b73
AK
9712 ac_status=$?
9713 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9714 (exit $ac_status); }; then
a946372e 9715 pkg_cv_CCS_CFLAGS=`$PKG_CONFIG --cflags "libccs" 2>/dev/null`
e2997b73
AK
9716else
9717 pkg_failed=yes
9718fi
9719 else
9720 pkg_failed=untried
9721fi
a946372e
AK
9722if test -n "$CCS_LIBS"; then
9723 pkg_cv_CCS_LIBS="$CCS_LIBS"
e2997b73
AK
9724 elif test -n "$PKG_CONFIG"; then
9725 if test -n "$PKG_CONFIG" && \
a946372e
AK
9726 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libccs\"") >&5
9727 ($PKG_CONFIG --exists --print-errors "libccs") 2>&5
e2997b73
AK
9728 ac_status=$?
9729 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9730 (exit $ac_status); }; then
a946372e 9731 pkg_cv_CCS_LIBS=`$PKG_CONFIG --libs "libccs" 2>/dev/null`
e2997b73
AK
9732else
9733 pkg_failed=yes
9734fi
9735 else
9736 pkg_failed=untried
9737fi
9738
9739
9740
9741if test $pkg_failed = yes; then
9742
9743if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9744 _pkg_short_errors_supported=yes
9745else
9746 _pkg_short_errors_supported=no
9747fi
9748 if test $_pkg_short_errors_supported = yes; then
a946372e 9749 CCS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libccs" 2>&1`
e2997b73 9750 else
a946372e 9751 CCS_PKG_ERRORS=`$PKG_CONFIG --print-errors "libccs" 2>&1`
e2997b73
AK
9752 fi
9753 # Put the nasty error message in config.log where it belongs
a946372e 9754 echo "$CCS_PKG_ERRORS" >&5
e2997b73
AK
9755
9756 { $as_echo "$as_me:$LINENO: result: no" >&5
9757$as_echo "no" >&6; }
a946372e 9758 NOTFOUND=0
e2997b73 9759
a946372e
AK
9760for ac_header in ccs.h
9761do
9762as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9763if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9764 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9765$as_echo_n "checking for $ac_header... " >&6; }
9766if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9767 $as_echo_n "(cached) " >&6
d0191583 9768fi
a946372e
AK
9769ac_res=`eval 'as_val=${'$as_ac_Header'}
9770 $as_echo "$as_val"'`
9771 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9772$as_echo "$ac_res" >&6; }
fc54be10 9773else
a946372e
AK
9774 # Is the header compilable?
9775{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9776$as_echo_n "checking $ac_header usability... " >&6; }
9777cat >conftest.$ac_ext <<_ACEOF
9778/* confdefs.h. */
9779_ACEOF
9780cat confdefs.h >>conftest.$ac_ext
9781cat >>conftest.$ac_ext <<_ACEOF
9782/* end confdefs.h. */
9783$ac_includes_default
9784#include <$ac_header>
9785_ACEOF
9786rm -f conftest.$ac_objext
9787if { (ac_try="$ac_compile"
9788case "(($ac_try" in
9789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9790 *) ac_try_echo=$ac_try;;
9791esac
9792eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9793$as_echo "$ac_try_echo") >&5
9794 (eval "$ac_compile") 2>conftest.er1
9795 ac_status=$?
9796 grep -v '^ *+' conftest.er1 >conftest.err
9797 rm -f conftest.er1
9798 cat conftest.err >&5
9799 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9800 (exit $ac_status); } && {
9801 test -z "$ac_c_werror_flag" ||
9802 test ! -s conftest.err
9803 } && test -s conftest.$ac_objext; then
9804 ac_header_compiler=yes
9805else
9806 $as_echo "$as_me: failed program was:" >&5
9807sed 's/^/| /' conftest.$ac_ext >&5
d0191583 9808
a946372e 9809 ac_header_compiler=no
d0191583
JM
9810fi
9811
a946372e
AK
9812rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9813{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9814$as_echo "$ac_header_compiler" >&6; }
fddafd51 9815
a946372e
AK
9816# Is the header present?
9817{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9818$as_echo_n "checking $ac_header presence... " >&6; }
9819cat >conftest.$ac_ext <<_ACEOF
9820/* confdefs.h. */
9821_ACEOF
9822cat confdefs.h >>conftest.$ac_ext
9823cat >>conftest.$ac_ext <<_ACEOF
9824/* end confdefs.h. */
9825#include <$ac_header>
9826_ACEOF
9827if { (ac_try="$ac_cpp conftest.$ac_ext"
9828case "(($ac_try" in
9829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9830 *) ac_try_echo=$ac_try;;
9831esac
9832eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9833$as_echo "$ac_try_echo") >&5
9834 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9835 ac_status=$?
9836 grep -v '^ *+' conftest.er1 >conftest.err
9837 rm -f conftest.er1
9838 cat conftest.err >&5
9839 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9840 (exit $ac_status); } >/dev/null && {
9841 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9842 test ! -s conftest.err
9843 }; then
9844 ac_header_preproc=yes
9845else
9846 $as_echo "$as_me: failed program was:" >&5
9847sed 's/^/| /' conftest.$ac_ext >&5
9848
9849 ac_header_preproc=no
9850fi
9851
9852rm -f conftest.err conftest.$ac_ext
9853{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9854$as_echo "$ac_header_preproc" >&6; }
9855
9856# So? What about this header?
9857case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9858 yes:no: )
9859 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9860$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9861 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9862$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9863 ac_header_preproc=yes
9864 ;;
9865 no:yes:* )
9866 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9867$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9868 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9869$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9870 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9871$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9872 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9873$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9874 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9875$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9876 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9877$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9878
9879 ;;
9880esac
9881{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9882$as_echo_n "checking for $ac_header... " >&6; }
9883if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9884 $as_echo_n "(cached) " >&6
9885else
9886 eval "$as_ac_Header=\$ac_header_preproc"
9887fi
9888ac_res=`eval 'as_val=${'$as_ac_Header'}
9889 $as_echo "$as_val"'`
9890 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9891$as_echo "$ac_res" >&6; }
9892
9893fi
9894as_val=`eval 'as_val=${'$as_ac_Header'}
9895 $as_echo "$as_val"'`
9896 if test "x$as_val" = x""yes; then
9897 cat >>confdefs.h <<_ACEOF
9898#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9899_ACEOF
9900
9901else
9902 $bailout
9903fi
9904
9905done
9906
9907 check_lib_no_libs ccs ccs_connect
9908 if test $NOTFOUND = 0; then
9909 { $as_echo "$as_me:$LINENO: result: no pkg for libccs, using -lccs" >&5
9910$as_echo "no pkg for libccs, using -lccs" >&6; }
9911 CCS_LIBS="-lccs"
9912 HAVE_CCS=yes
9913 fi
9914elif test $pkg_failed = untried; then
9915 NOTFOUND=0
9916
9917for ac_header in ccs.h
9918do
9919as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9920if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9921 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9922$as_echo_n "checking for $ac_header... " >&6; }
9923if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9924 $as_echo_n "(cached) " >&6
9925fi
9926ac_res=`eval 'as_val=${'$as_ac_Header'}
9927 $as_echo "$as_val"'`
9928 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9929$as_echo "$ac_res" >&6; }
9930else
9931 # Is the header compilable?
9932{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9933$as_echo_n "checking $ac_header usability... " >&6; }
9934cat >conftest.$ac_ext <<_ACEOF
9935/* confdefs.h. */
9936_ACEOF
9937cat confdefs.h >>conftest.$ac_ext
9938cat >>conftest.$ac_ext <<_ACEOF
9939/* end confdefs.h. */
9940$ac_includes_default
9941#include <$ac_header>
9942_ACEOF
9943rm -f conftest.$ac_objext
9944if { (ac_try="$ac_compile"
9945case "(($ac_try" in
9946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9947 *) ac_try_echo=$ac_try;;
9948esac
9949eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9950$as_echo "$ac_try_echo") >&5
9951 (eval "$ac_compile") 2>conftest.er1
9952 ac_status=$?
9953 grep -v '^ *+' conftest.er1 >conftest.err
9954 rm -f conftest.er1
9955 cat conftest.err >&5
9956 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9957 (exit $ac_status); } && {
9958 test -z "$ac_c_werror_flag" ||
9959 test ! -s conftest.err
9960 } && test -s conftest.$ac_objext; then
9961 ac_header_compiler=yes
9962else
9963 $as_echo "$as_me: failed program was:" >&5
9964sed 's/^/| /' conftest.$ac_ext >&5
9965
9966 ac_header_compiler=no
9967fi
9968
9969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9970{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9971$as_echo "$ac_header_compiler" >&6; }
9972
9973# Is the header present?
9974{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9975$as_echo_n "checking $ac_header presence... " >&6; }
9976cat >conftest.$ac_ext <<_ACEOF
9977/* confdefs.h. */
9978_ACEOF
9979cat confdefs.h >>conftest.$ac_ext
9980cat >>conftest.$ac_ext <<_ACEOF
9981/* end confdefs.h. */
9982#include <$ac_header>
9983_ACEOF
9984if { (ac_try="$ac_cpp conftest.$ac_ext"
9985case "(($ac_try" in
9986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9987 *) ac_try_echo=$ac_try;;
9988esac
9989eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9990$as_echo "$ac_try_echo") >&5
9991 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9992 ac_status=$?
9993 grep -v '^ *+' conftest.er1 >conftest.err
9994 rm -f conftest.er1
9995 cat conftest.err >&5
9996 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9997 (exit $ac_status); } >/dev/null && {
9998 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9999 test ! -s conftest.err
10000 }; then
10001 ac_header_preproc=yes
10002else
10003 $as_echo "$as_me: failed program was:" >&5
10004sed 's/^/| /' conftest.$ac_ext >&5
10005
10006 ac_header_preproc=no
10007fi
10008
10009rm -f conftest.err conftest.$ac_ext
10010{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10011$as_echo "$ac_header_preproc" >&6; }
10012
10013# So? What about this header?
10014case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10015 yes:no: )
10016 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10017$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10018 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10019$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10020 ac_header_preproc=yes
10021 ;;
10022 no:yes:* )
10023 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10024$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10025 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10026$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10027 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10028$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10029 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10030$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10031 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10032$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10033 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10034$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10035
10036 ;;
10037esac
10038{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10039$as_echo_n "checking for $ac_header... " >&6; }
10040if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10041 $as_echo_n "(cached) " >&6
10042else
10043 eval "$as_ac_Header=\$ac_header_preproc"
10044fi
10045ac_res=`eval 'as_val=${'$as_ac_Header'}
10046 $as_echo "$as_val"'`
10047 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10048$as_echo "$ac_res" >&6; }
10049
10050fi
10051as_val=`eval 'as_val=${'$as_ac_Header'}
10052 $as_echo "$as_val"'`
10053 if test "x$as_val" = x""yes; then
10054 cat >>confdefs.h <<_ACEOF
10055#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10056_ACEOF
10057
10058else
10059 $bailout
10060fi
10061
10062done
10063
10064 check_lib_no_libs ccs ccs_connect
10065 if test $NOTFOUND = 0; then
10066 { $as_echo "$as_me:$LINENO: result: no pkg for libccs, using -lccs" >&5
10067$as_echo "no pkg for libccs, using -lccs" >&6; }
10068 CCS_LIBS="-lccs"
10069 HAVE_CCS=yes
10070 fi
10071else
10072 CCS_CFLAGS=$pkg_cv_CCS_CFLAGS
10073 CCS_LIBS=$pkg_cv_CCS_LIBS
10074 { $as_echo "$as_me:$LINENO: result: yes" >&5
10075$as_echo "yes" >&6; }
10076 HAVE_CCS=yes
10077fi
10078
10079pkg_failed=no
10080{ $as_echo "$as_me:$LINENO: checking for GULM" >&5
10081$as_echo_n "checking for GULM... " >&6; }
10082
10083if test -n "$GULM_CFLAGS"; then
10084 pkg_cv_GULM_CFLAGS="$GULM_CFLAGS"
10085 elif test -n "$PKG_CONFIG"; then
10086 if test -n "$PKG_CONFIG" && \
10087 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgulm\"") >&5
10088 ($PKG_CONFIG --exists --print-errors "libgulm") 2>&5
10089 ac_status=$?
10090 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10091 (exit $ac_status); }; then
10092 pkg_cv_GULM_CFLAGS=`$PKG_CONFIG --cflags "libgulm" 2>/dev/null`
10093else
10094 pkg_failed=yes
10095fi
10096 else
10097 pkg_failed=untried
10098fi
10099if test -n "$GULM_LIBS"; then
10100 pkg_cv_GULM_LIBS="$GULM_LIBS"
10101 elif test -n "$PKG_CONFIG"; then
10102 if test -n "$PKG_CONFIG" && \
10103 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgulm\"") >&5
10104 ($PKG_CONFIG --exists --print-errors "libgulm") 2>&5
10105 ac_status=$?
10106 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10107 (exit $ac_status); }; then
10108 pkg_cv_GULM_LIBS=`$PKG_CONFIG --libs "libgulm" 2>/dev/null`
10109else
10110 pkg_failed=yes
10111fi
10112 else
10113 pkg_failed=untried
10114fi
10115
10116
10117
10118if test $pkg_failed = yes; then
10119
10120if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10121 _pkg_short_errors_supported=yes
10122else
10123 _pkg_short_errors_supported=no
10124fi
10125 if test $_pkg_short_errors_supported = yes; then
10126 GULM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgulm" 2>&1`
10127 else
10128 GULM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgulm" 2>&1`
10129 fi
10130 # Put the nasty error message in config.log where it belongs
10131 echo "$GULM_PKG_ERRORS" >&5
10132
10133 { $as_echo "$as_me:$LINENO: result: no" >&5
10134$as_echo "no" >&6; }
10135 NOTFOUND=0
10136
10137for ac_header in libgulm.h
10138do
10139as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10140if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10141 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10142$as_echo_n "checking for $ac_header... " >&6; }
10143if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10144 $as_echo_n "(cached) " >&6
10145fi
10146ac_res=`eval 'as_val=${'$as_ac_Header'}
10147 $as_echo "$as_val"'`
10148 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10149$as_echo "$ac_res" >&6; }
10150else
10151 # Is the header compilable?
10152{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10153$as_echo_n "checking $ac_header usability... " >&6; }
10154cat >conftest.$ac_ext <<_ACEOF
10155/* confdefs.h. */
10156_ACEOF
10157cat confdefs.h >>conftest.$ac_ext
10158cat >>conftest.$ac_ext <<_ACEOF
10159/* end confdefs.h. */
10160$ac_includes_default
10161#include <$ac_header>
10162_ACEOF
10163rm -f conftest.$ac_objext
10164if { (ac_try="$ac_compile"
10165case "(($ac_try" in
10166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10167 *) ac_try_echo=$ac_try;;
10168esac
10169eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10170$as_echo "$ac_try_echo") >&5
10171 (eval "$ac_compile") 2>conftest.er1
10172 ac_status=$?
10173 grep -v '^ *+' conftest.er1 >conftest.err
10174 rm -f conftest.er1
10175 cat conftest.err >&5
10176 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10177 (exit $ac_status); } && {
10178 test -z "$ac_c_werror_flag" ||
10179 test ! -s conftest.err
10180 } && test -s conftest.$ac_objext; then
10181 ac_header_compiler=yes
10182else
10183 $as_echo "$as_me: failed program was:" >&5
10184sed 's/^/| /' conftest.$ac_ext >&5
10185
10186 ac_header_compiler=no
10187fi
10188
10189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10190{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10191$as_echo "$ac_header_compiler" >&6; }
10192
10193# Is the header present?
10194{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10195$as_echo_n "checking $ac_header presence... " >&6; }
10196cat >conftest.$ac_ext <<_ACEOF
10197/* confdefs.h. */
10198_ACEOF
10199cat confdefs.h >>conftest.$ac_ext
10200cat >>conftest.$ac_ext <<_ACEOF
10201/* end confdefs.h. */
10202#include <$ac_header>
10203_ACEOF
10204if { (ac_try="$ac_cpp conftest.$ac_ext"
10205case "(($ac_try" in
10206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10207 *) ac_try_echo=$ac_try;;
10208esac
10209eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10210$as_echo "$ac_try_echo") >&5
10211 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10212 ac_status=$?
10213 grep -v '^ *+' conftest.er1 >conftest.err
10214 rm -f conftest.er1
10215 cat conftest.err >&5
10216 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10217 (exit $ac_status); } >/dev/null && {
10218 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10219 test ! -s conftest.err
10220 }; then
10221 ac_header_preproc=yes
10222else
10223 $as_echo "$as_me: failed program was:" >&5
10224sed 's/^/| /' conftest.$ac_ext >&5
10225
10226 ac_header_preproc=no
10227fi
10228
10229rm -f conftest.err conftest.$ac_ext
10230{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10231$as_echo "$ac_header_preproc" >&6; }
10232
10233# So? What about this header?
10234case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10235 yes:no: )
10236 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10237$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10238 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10239$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10240 ac_header_preproc=yes
10241 ;;
10242 no:yes:* )
10243 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10244$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10245 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10246$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10247 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10248$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10249 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10250$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10251 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10252$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10253 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10254$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10255
10256 ;;
10257esac
10258{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10259$as_echo_n "checking for $ac_header... " >&6; }
10260if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10261 $as_echo_n "(cached) " >&6
10262else
10263 eval "$as_ac_Header=\$ac_header_preproc"
10264fi
10265ac_res=`eval 'as_val=${'$as_ac_Header'}
10266 $as_echo "$as_val"'`
10267 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10268$as_echo "$ac_res" >&6; }
10269
10270fi
10271as_val=`eval 'as_val=${'$as_ac_Header'}
10272 $as_echo "$as_val"'`
10273 if test "x$as_val" = x""yes; then
10274 cat >>confdefs.h <<_ACEOF
10275#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10276_ACEOF
10277
10278else
10279 $bailout
10280fi
10281
10282done
10283
10284 check_lib_no_libs gulm lg_core_login
10285 if test $NOTFOUND = 0; then
10286 { $as_echo "$as_me:$LINENO: result: no pkg for libgulm, using -lgulm" >&5
10287$as_echo "no pkg for libgulm, using -lgulm" >&6; }
10288 GULM_LIBS="-lgulm"
10289 HAVE_GULM=yes
10290 fi
10291elif test $pkg_failed = untried; then
10292 NOTFOUND=0
10293
10294for ac_header in libgulm.h
10295do
10296as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10297if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10298 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10299$as_echo_n "checking for $ac_header... " >&6; }
10300if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10301 $as_echo_n "(cached) " >&6
10302fi
10303ac_res=`eval 'as_val=${'$as_ac_Header'}
10304 $as_echo "$as_val"'`
10305 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10306$as_echo "$ac_res" >&6; }
10307else
10308 # Is the header compilable?
10309{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10310$as_echo_n "checking $ac_header usability... " >&6; }
10311cat >conftest.$ac_ext <<_ACEOF
10312/* confdefs.h. */
10313_ACEOF
10314cat confdefs.h >>conftest.$ac_ext
10315cat >>conftest.$ac_ext <<_ACEOF
10316/* end confdefs.h. */
10317$ac_includes_default
10318#include <$ac_header>
10319_ACEOF
10320rm -f conftest.$ac_objext
10321if { (ac_try="$ac_compile"
10322case "(($ac_try" in
10323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10324 *) ac_try_echo=$ac_try;;
10325esac
10326eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10327$as_echo "$ac_try_echo") >&5
10328 (eval "$ac_compile") 2>conftest.er1
10329 ac_status=$?
10330 grep -v '^ *+' conftest.er1 >conftest.err
10331 rm -f conftest.er1
10332 cat conftest.err >&5
10333 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10334 (exit $ac_status); } && {
10335 test -z "$ac_c_werror_flag" ||
10336 test ! -s conftest.err
10337 } && test -s conftest.$ac_objext; then
10338 ac_header_compiler=yes
10339else
10340 $as_echo "$as_me: failed program was:" >&5
10341sed 's/^/| /' conftest.$ac_ext >&5
10342
10343 ac_header_compiler=no
10344fi
10345
10346rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10347{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10348$as_echo "$ac_header_compiler" >&6; }
10349
10350# Is the header present?
10351{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10352$as_echo_n "checking $ac_header presence... " >&6; }
10353cat >conftest.$ac_ext <<_ACEOF
10354/* confdefs.h. */
10355_ACEOF
10356cat confdefs.h >>conftest.$ac_ext
10357cat >>conftest.$ac_ext <<_ACEOF
10358/* end confdefs.h. */
10359#include <$ac_header>
10360_ACEOF
10361if { (ac_try="$ac_cpp conftest.$ac_ext"
10362case "(($ac_try" in
10363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10364 *) ac_try_echo=$ac_try;;
10365esac
10366eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10367$as_echo "$ac_try_echo") >&5
10368 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10369 ac_status=$?
10370 grep -v '^ *+' conftest.er1 >conftest.err
10371 rm -f conftest.er1
10372 cat conftest.err >&5
10373 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10374 (exit $ac_status); } >/dev/null && {
10375 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10376 test ! -s conftest.err
10377 }; then
10378 ac_header_preproc=yes
10379else
10380 $as_echo "$as_me: failed program was:" >&5
10381sed 's/^/| /' conftest.$ac_ext >&5
10382
10383 ac_header_preproc=no
10384fi
10385
10386rm -f conftest.err conftest.$ac_ext
10387{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10388$as_echo "$ac_header_preproc" >&6; }
10389
10390# So? What about this header?
10391case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10392 yes:no: )
10393 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10394$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10395 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10396$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10397 ac_header_preproc=yes
10398 ;;
10399 no:yes:* )
10400 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10401$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10402 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10403$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10404 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10405$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10406 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10407$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10408 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10409$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10410 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10411$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10412
10413 ;;
10414esac
10415{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10416$as_echo_n "checking for $ac_header... " >&6; }
10417if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10418 $as_echo_n "(cached) " >&6
10419else
10420 eval "$as_ac_Header=\$ac_header_preproc"
10421fi
10422ac_res=`eval 'as_val=${'$as_ac_Header'}
10423 $as_echo "$as_val"'`
10424 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10425$as_echo "$ac_res" >&6; }
10426
10427fi
10428as_val=`eval 'as_val=${'$as_ac_Header'}
10429 $as_echo "$as_val"'`
10430 if test "x$as_val" = x""yes; then
10431 cat >>confdefs.h <<_ACEOF
10432#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10433_ACEOF
10434
10435else
10436 $bailout
10437fi
10438
10439done
10440
10441 check_lib_no_libs gulm lg_core_login
10442 if test $NOTFOUND = 0; then
10443 { $as_echo "$as_me:$LINENO: result: no pkg for libgulm, using -lgulm" >&5
10444$as_echo "no pkg for libgulm, using -lgulm" >&6; }
10445 GULM_LIBS="-lgulm"
10446 HAVE_GULM=yes
10447 fi
10448else
10449 GULM_CFLAGS=$pkg_cv_GULM_CFLAGS
10450 GULM_LIBS=$pkg_cv_GULM_LIBS
10451 { $as_echo "$as_me:$LINENO: result: yes" >&5
10452$as_echo "yes" >&6; }
10453 HAVE_GULM=yes
10454fi
10455fi
10456
10457if test x$BUILDCMAN = xyes; then
10458
10459pkg_failed=no
10460{ $as_echo "$as_me:$LINENO: checking for CMAN" >&5
10461$as_echo_n "checking for CMAN... " >&6; }
10462
10463if test -n "$CMAN_CFLAGS"; then
10464 pkg_cv_CMAN_CFLAGS="$CMAN_CFLAGS"
10465 elif test -n "$PKG_CONFIG"; then
10466 if test -n "$PKG_CONFIG" && \
10467 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcman\"") >&5
10468 ($PKG_CONFIG --exists --print-errors "libcman") 2>&5
10469 ac_status=$?
10470 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10471 (exit $ac_status); }; then
10472 pkg_cv_CMAN_CFLAGS=`$PKG_CONFIG --cflags "libcman" 2>/dev/null`
10473else
10474 pkg_failed=yes
10475fi
10476 else
10477 pkg_failed=untried
10478fi
10479if test -n "$CMAN_LIBS"; then
10480 pkg_cv_CMAN_LIBS="$CMAN_LIBS"
10481 elif test -n "$PKG_CONFIG"; then
10482 if test -n "$PKG_CONFIG" && \
10483 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcman\"") >&5
10484 ($PKG_CONFIG --exists --print-errors "libcman") 2>&5
10485 ac_status=$?
10486 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10487 (exit $ac_status); }; then
10488 pkg_cv_CMAN_LIBS=`$PKG_CONFIG --libs "libcman" 2>/dev/null`
10489else
10490 pkg_failed=yes
10491fi
10492 else
10493 pkg_failed=untried
10494fi
10495
10496
10497
10498if test $pkg_failed = yes; then
10499
10500if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10501 _pkg_short_errors_supported=yes
10502else
10503 _pkg_short_errors_supported=no
10504fi
10505 if test $_pkg_short_errors_supported = yes; then
10506 CMAN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcman" 2>&1`
10507 else
10508 CMAN_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcman" 2>&1`
10509 fi
10510 # Put the nasty error message in config.log where it belongs
10511 echo "$CMAN_PKG_ERRORS" >&5
10512
10513 { $as_echo "$as_me:$LINENO: result: no" >&5
10514$as_echo "no" >&6; }
10515 NOTFOUND=0
10516
10517for ac_header in libcman.h
10518do
10519as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10520if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10521 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10522$as_echo_n "checking for $ac_header... " >&6; }
10523if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10524 $as_echo_n "(cached) " >&6
10525fi
10526ac_res=`eval 'as_val=${'$as_ac_Header'}
10527 $as_echo "$as_val"'`
10528 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10529$as_echo "$ac_res" >&6; }
10530else
10531 # Is the header compilable?
10532{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10533$as_echo_n "checking $ac_header usability... " >&6; }
10534cat >conftest.$ac_ext <<_ACEOF
10535/* confdefs.h. */
10536_ACEOF
10537cat confdefs.h >>conftest.$ac_ext
10538cat >>conftest.$ac_ext <<_ACEOF
10539/* end confdefs.h. */
10540$ac_includes_default
10541#include <$ac_header>
10542_ACEOF
10543rm -f conftest.$ac_objext
10544if { (ac_try="$ac_compile"
10545case "(($ac_try" in
10546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10547 *) ac_try_echo=$ac_try;;
10548esac
10549eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10550$as_echo "$ac_try_echo") >&5
10551 (eval "$ac_compile") 2>conftest.er1
10552 ac_status=$?
10553 grep -v '^ *+' conftest.er1 >conftest.err
10554 rm -f conftest.er1
10555 cat conftest.err >&5
10556 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10557 (exit $ac_status); } && {
10558 test -z "$ac_c_werror_flag" ||
10559 test ! -s conftest.err
10560 } && test -s conftest.$ac_objext; then
10561 ac_header_compiler=yes
10562else
10563 $as_echo "$as_me: failed program was:" >&5
10564sed 's/^/| /' conftest.$ac_ext >&5
10565
10566 ac_header_compiler=no
10567fi
10568
10569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10570{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10571$as_echo "$ac_header_compiler" >&6; }
10572
10573# Is the header present?
10574{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10575$as_echo_n "checking $ac_header presence... " >&6; }
10576cat >conftest.$ac_ext <<_ACEOF
10577/* confdefs.h. */
10578_ACEOF
10579cat confdefs.h >>conftest.$ac_ext
10580cat >>conftest.$ac_ext <<_ACEOF
10581/* end confdefs.h. */
10582#include <$ac_header>
10583_ACEOF
10584if { (ac_try="$ac_cpp conftest.$ac_ext"
10585case "(($ac_try" in
10586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10587 *) ac_try_echo=$ac_try;;
10588esac
10589eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10590$as_echo "$ac_try_echo") >&5
10591 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10592 ac_status=$?
10593 grep -v '^ *+' conftest.er1 >conftest.err
10594 rm -f conftest.er1
10595 cat conftest.err >&5
10596 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10597 (exit $ac_status); } >/dev/null && {
10598 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10599 test ! -s conftest.err
10600 }; then
10601 ac_header_preproc=yes
10602else
10603 $as_echo "$as_me: failed program was:" >&5
10604sed 's/^/| /' conftest.$ac_ext >&5
10605
10606 ac_header_preproc=no
10607fi
10608
10609rm -f conftest.err conftest.$ac_ext
10610{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10611$as_echo "$ac_header_preproc" >&6; }
10612
10613# So? What about this header?
10614case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10615 yes:no: )
10616 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10617$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10618 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10619$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10620 ac_header_preproc=yes
10621 ;;
10622 no:yes:* )
10623 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10624$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10625 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10626$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10627 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10628$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10629 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10630$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10631 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10632$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10633 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10634$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10635
10636 ;;
10637esac
10638{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10639$as_echo_n "checking for $ac_header... " >&6; }
10640if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10641 $as_echo_n "(cached) " >&6
10642else
10643 eval "$as_ac_Header=\$ac_header_preproc"
10644fi
10645ac_res=`eval 'as_val=${'$as_ac_Header'}
10646 $as_echo "$as_val"'`
10647 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10648$as_echo "$ac_res" >&6; }
10649
10650fi
10651as_val=`eval 'as_val=${'$as_ac_Header'}
10652 $as_echo "$as_val"'`
10653 if test "x$as_val" = x""yes; then
10654 cat >>confdefs.h <<_ACEOF
10655#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10656_ACEOF
10657
10658else
10659 $bailout
10660fi
10661
10662done
10663
10664 check_lib_no_libs cman cman_init
10665 if test $NOTFOUND = 0; then
10666 { $as_echo "$as_me:$LINENO: result: no pkg for libcman, using -lcman" >&5
10667$as_echo "no pkg for libcman, using -lcman" >&6; }
10668 CMAN_LIBS="-lcman"
10669 HAVE_CMAN=yes
10670 fi
10671elif test $pkg_failed = untried; then
10672 NOTFOUND=0
10673
10674for ac_header in libcman.h
10675do
10676as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10677if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10678 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10679$as_echo_n "checking for $ac_header... " >&6; }
10680if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10681 $as_echo_n "(cached) " >&6
10682fi
10683ac_res=`eval 'as_val=${'$as_ac_Header'}
10684 $as_echo "$as_val"'`
10685 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10686$as_echo "$ac_res" >&6; }
10687else
10688 # Is the header compilable?
10689{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10690$as_echo_n "checking $ac_header usability... " >&6; }
10691cat >conftest.$ac_ext <<_ACEOF
10692/* confdefs.h. */
10693_ACEOF
10694cat confdefs.h >>conftest.$ac_ext
10695cat >>conftest.$ac_ext <<_ACEOF
10696/* end confdefs.h. */
10697$ac_includes_default
10698#include <$ac_header>
10699_ACEOF
10700rm -f conftest.$ac_objext
10701if { (ac_try="$ac_compile"
10702case "(($ac_try" in
10703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10704 *) ac_try_echo=$ac_try;;
10705esac
10706eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10707$as_echo "$ac_try_echo") >&5
10708 (eval "$ac_compile") 2>conftest.er1
10709 ac_status=$?
10710 grep -v '^ *+' conftest.er1 >conftest.err
10711 rm -f conftest.er1
10712 cat conftest.err >&5
10713 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10714 (exit $ac_status); } && {
10715 test -z "$ac_c_werror_flag" ||
10716 test ! -s conftest.err
10717 } && test -s conftest.$ac_objext; then
10718 ac_header_compiler=yes
10719else
10720 $as_echo "$as_me: failed program was:" >&5
10721sed 's/^/| /' conftest.$ac_ext >&5
10722
10723 ac_header_compiler=no
10724fi
10725
10726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10727{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10728$as_echo "$ac_header_compiler" >&6; }
10729
10730# Is the header present?
10731{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10732$as_echo_n "checking $ac_header presence... " >&6; }
10733cat >conftest.$ac_ext <<_ACEOF
10734/* confdefs.h. */
10735_ACEOF
10736cat confdefs.h >>conftest.$ac_ext
10737cat >>conftest.$ac_ext <<_ACEOF
10738/* end confdefs.h. */
10739#include <$ac_header>
10740_ACEOF
10741if { (ac_try="$ac_cpp conftest.$ac_ext"
10742case "(($ac_try" in
10743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10744 *) ac_try_echo=$ac_try;;
10745esac
10746eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10747$as_echo "$ac_try_echo") >&5
10748 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10749 ac_status=$?
10750 grep -v '^ *+' conftest.er1 >conftest.err
10751 rm -f conftest.er1
10752 cat conftest.err >&5
10753 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10754 (exit $ac_status); } >/dev/null && {
10755 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10756 test ! -s conftest.err
10757 }; then
10758 ac_header_preproc=yes
10759else
10760 $as_echo "$as_me: failed program was:" >&5
10761sed 's/^/| /' conftest.$ac_ext >&5
10762
10763 ac_header_preproc=no
10764fi
10765
10766rm -f conftest.err conftest.$ac_ext
10767{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10768$as_echo "$ac_header_preproc" >&6; }
10769
10770# So? What about this header?
10771case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10772 yes:no: )
10773 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10774$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10775 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10776$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10777 ac_header_preproc=yes
10778 ;;
10779 no:yes:* )
10780 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10781$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10782 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10783$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10784 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10785$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10786 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10787$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10788 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10789$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10790 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10791$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10792
10793 ;;
10794esac
10795{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10796$as_echo_n "checking for $ac_header... " >&6; }
10797if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10798 $as_echo_n "(cached) " >&6
10799else
10800 eval "$as_ac_Header=\$ac_header_preproc"
10801fi
10802ac_res=`eval 'as_val=${'$as_ac_Header'}
10803 $as_echo "$as_val"'`
10804 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10805$as_echo "$ac_res" >&6; }
10806
10807fi
10808as_val=`eval 'as_val=${'$as_ac_Header'}
10809 $as_echo "$as_val"'`
10810 if test "x$as_val" = x""yes; then
10811 cat >>confdefs.h <<_ACEOF
10812#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10813_ACEOF
10814
10815else
10816 $bailout
10817fi
10818
10819done
10820
10821 check_lib_no_libs cman cman_init
10822 if test $NOTFOUND = 0; then
10823 { $as_echo "$as_me:$LINENO: result: no pkg for libcman, using -lcman" >&5
10824$as_echo "no pkg for libcman, using -lcman" >&6; }
10825 CMAN_LIBS="-lcman"
10826 HAVE_CMAN=yes
10827 fi
10828else
10829 CMAN_CFLAGS=$pkg_cv_CMAN_CFLAGS
10830 CMAN_LIBS=$pkg_cv_CMAN_LIBS
10831 { $as_echo "$as_me:$LINENO: result: yes" >&5
10832$as_echo "yes" >&6; }
10833 HAVE_CMAN=yes
10834fi
10835 CHECKCONFDB=yes
10836 CHECKDLM=yes
10837fi
10838
10839if test x$BUILDCOROSYNC = xyes || \
10840 test x$BUILDOPENAIS = xyes; then
10841
10842pkg_failed=no
10843{ $as_echo "$as_me:$LINENO: checking for COROSYNC" >&5
10844$as_echo_n "checking for COROSYNC... " >&6; }
10845
10846if test -n "$COROSYNC_CFLAGS"; then
10847 pkg_cv_COROSYNC_CFLAGS="$COROSYNC_CFLAGS"
10848 elif test -n "$PKG_CONFIG"; then
10849 if test -n "$PKG_CONFIG" && \
10850 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"corosync\"") >&5
10851 ($PKG_CONFIG --exists --print-errors "corosync") 2>&5
10852 ac_status=$?
10853 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10854 (exit $ac_status); }; then
10855 pkg_cv_COROSYNC_CFLAGS=`$PKG_CONFIG --cflags "corosync" 2>/dev/null`
10856else
10857 pkg_failed=yes
10858fi
10859 else
10860 pkg_failed=untried
10861fi
10862if test -n "$COROSYNC_LIBS"; then
10863 pkg_cv_COROSYNC_LIBS="$COROSYNC_LIBS"
10864 elif test -n "$PKG_CONFIG"; then
10865 if test -n "$PKG_CONFIG" && \
10866 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"corosync\"") >&5
10867 ($PKG_CONFIG --exists --print-errors "corosync") 2>&5
10868 ac_status=$?
10869 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10870 (exit $ac_status); }; then
10871 pkg_cv_COROSYNC_LIBS=`$PKG_CONFIG --libs "corosync" 2>/dev/null`
10872else
10873 pkg_failed=yes
10874fi
10875 else
10876 pkg_failed=untried
10877fi
10878
10879
10880
10881if test $pkg_failed = yes; then
10882
10883if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10884 _pkg_short_errors_supported=yes
10885else
10886 _pkg_short_errors_supported=no
10887fi
10888 if test $_pkg_short_errors_supported = yes; then
10889 COROSYNC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "corosync" 2>&1`
10890 else
10891 COROSYNC_PKG_ERRORS=`$PKG_CONFIG --print-errors "corosync" 2>&1`
10892 fi
10893 # Put the nasty error message in config.log where it belongs
10894 echo "$COROSYNC_PKG_ERRORS" >&5
10895
10896 { $as_echo "$as_me:$LINENO: result: no" >&5
10897$as_echo "no" >&6; }
10898 $bailout
10899elif test $pkg_failed = untried; then
10900 $bailout
10901else
10902 COROSYNC_CFLAGS=$pkg_cv_COROSYNC_CFLAGS
10903 COROSYNC_LIBS=$pkg_cv_COROSYNC_LIBS
10904 { $as_echo "$as_me:$LINENO: result: yes" >&5
10905$as_echo "yes" >&6; }
10906 HAVE_COROSYNC=yes
10907fi
10908 CHECKCONFDB=yes
10909fi
10910
10911if test x$BUILDCOROSYNC = xyes; then
10912
10913pkg_failed=no
10914{ $as_echo "$as_me:$LINENO: checking for QUORUM" >&5
10915$as_echo_n "checking for QUORUM... " >&6; }
10916
10917if test -n "$QUORUM_CFLAGS"; then
10918 pkg_cv_QUORUM_CFLAGS="$QUORUM_CFLAGS"
10919 elif test -n "$PKG_CONFIG"; then
10920 if test -n "$PKG_CONFIG" && \
10921 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libquorum\"") >&5
10922 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
10923 ac_status=$?
10924 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10925 (exit $ac_status); }; then
10926 pkg_cv_QUORUM_CFLAGS=`$PKG_CONFIG --cflags "libquorum" 2>/dev/null`
10927else
10928 pkg_failed=yes
10929fi
10930 else
10931 pkg_failed=untried
10932fi
10933if test -n "$QUORUM_LIBS"; then
10934 pkg_cv_QUORUM_LIBS="$QUORUM_LIBS"
10935 elif test -n "$PKG_CONFIG"; then
10936 if test -n "$PKG_CONFIG" && \
10937 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libquorum\"") >&5
10938 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
10939 ac_status=$?
10940 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10941 (exit $ac_status); }; then
10942 pkg_cv_QUORUM_LIBS=`$PKG_CONFIG --libs "libquorum" 2>/dev/null`
10943else
10944 pkg_failed=yes
10945fi
10946 else
10947 pkg_failed=untried
10948fi
10949
10950
10951
10952if test $pkg_failed = yes; then
10953
10954if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10955 _pkg_short_errors_supported=yes
10956else
10957 _pkg_short_errors_supported=no
10958fi
10959 if test $_pkg_short_errors_supported = yes; then
10960 QUORUM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libquorum" 2>&1`
10961 else
10962 QUORUM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libquorum" 2>&1`
10963 fi
10964 # Put the nasty error message in config.log where it belongs
10965 echo "$QUORUM_PKG_ERRORS" >&5
10966
10967 { $as_echo "$as_me:$LINENO: result: no" >&5
10968$as_echo "no" >&6; }
10969 $bailout
10970elif test $pkg_failed = untried; then
10971 $bailout
10972else
10973 QUORUM_CFLAGS=$pkg_cv_QUORUM_CFLAGS
10974 QUORUM_LIBS=$pkg_cv_QUORUM_LIBS
10975 { $as_echo "$as_me:$LINENO: result: yes" >&5
10976$as_echo "yes" >&6; }
10977 HAVE_QUORUM=yes
10978fi
10979 CHECKCPG=yes
10980 CHECKDLM=yes
10981fi
10982
10983if test x$BUILDOPENAIS = xyes; then
10984
10985pkg_failed=no
10986{ $as_echo "$as_me:$LINENO: checking for SALCK" >&5
10987$as_echo_n "checking for SALCK... " >&6; }
10988
10989if test -n "$SALCK_CFLAGS"; then
10990 pkg_cv_SALCK_CFLAGS="$SALCK_CFLAGS"
10991 elif test -n "$PKG_CONFIG"; then
10992 if test -n "$PKG_CONFIG" && \
10993 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaLck\"") >&5
10994 ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5
10995 ac_status=$?
10996 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10997 (exit $ac_status); }; then
10998 pkg_cv_SALCK_CFLAGS=`$PKG_CONFIG --cflags "libSaLck" 2>/dev/null`
10999else
11000 pkg_failed=yes
11001fi
11002 else
11003 pkg_failed=untried
11004fi
11005if test -n "$SALCK_LIBS"; then
11006 pkg_cv_SALCK_LIBS="$SALCK_LIBS"
11007 elif test -n "$PKG_CONFIG"; then
11008 if test -n "$PKG_CONFIG" && \
11009 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaLck\"") >&5
11010 ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5
11011 ac_status=$?
11012 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11013 (exit $ac_status); }; then
11014 pkg_cv_SALCK_LIBS=`$PKG_CONFIG --libs "libSaLck" 2>/dev/null`
11015else
11016 pkg_failed=yes
11017fi
11018 else
11019 pkg_failed=untried
11020fi
11021
11022
11023
11024if test $pkg_failed = yes; then
11025
11026if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11027 _pkg_short_errors_supported=yes
11028else
11029 _pkg_short_errors_supported=no
11030fi
11031 if test $_pkg_short_errors_supported = yes; then
11032 SALCK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaLck" 2>&1`
11033 else
11034 SALCK_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaLck" 2>&1`
11035 fi
11036 # Put the nasty error message in config.log where it belongs
11037 echo "$SALCK_PKG_ERRORS" >&5
11038
11039 { $as_echo "$as_me:$LINENO: result: no" >&5
11040$as_echo "no" >&6; }
11041 $bailout
11042elif test $pkg_failed = untried; then
11043 $bailout
11044else
11045 SALCK_CFLAGS=$pkg_cv_SALCK_CFLAGS
11046 SALCK_LIBS=$pkg_cv_SALCK_LIBS
11047 { $as_echo "$as_me:$LINENO: result: yes" >&5
11048$as_echo "yes" >&6; }
11049 HAVE_SALCK=yes
11050fi
11051 CHECKCPG=yes
11052fi
11053
11054
11055
11056if test x$CHECKCONFDB = xyes; then
11057
11058pkg_failed=no
11059{ $as_echo "$as_me:$LINENO: checking for CONFDB" >&5
11060$as_echo_n "checking for CONFDB... " >&6; }
11061
11062if test -n "$CONFDB_CFLAGS"; then
11063 pkg_cv_CONFDB_CFLAGS="$CONFDB_CFLAGS"
11064 elif test -n "$PKG_CONFIG"; then
11065 if test -n "$PKG_CONFIG" && \
11066 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libconfdb\"") >&5
11067 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
11068 ac_status=$?
11069 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11070 (exit $ac_status); }; then
11071 pkg_cv_CONFDB_CFLAGS=`$PKG_CONFIG --cflags "libconfdb" 2>/dev/null`
11072else
11073 pkg_failed=yes
11074fi
11075 else
11076 pkg_failed=untried
11077fi
11078if test -n "$CONFDB_LIBS"; then
11079 pkg_cv_CONFDB_LIBS="$CONFDB_LIBS"
11080 elif test -n "$PKG_CONFIG"; then
11081 if test -n "$PKG_CONFIG" && \
11082 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libconfdb\"") >&5
11083 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
11084 ac_status=$?
11085 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11086 (exit $ac_status); }; then
11087 pkg_cv_CONFDB_LIBS=`$PKG_CONFIG --libs "libconfdb" 2>/dev/null`
11088else
11089 pkg_failed=yes
11090fi
11091 else
11092 pkg_failed=untried
11093fi
11094
11095
11096
11097if test $pkg_failed = yes; then
11098
11099if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11100 _pkg_short_errors_supported=yes
11101else
11102 _pkg_short_errors_supported=no
11103fi
11104 if test $_pkg_short_errors_supported = yes; then
11105 CONFDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libconfdb" 2>&1`
11106 else
11107 CONFDB_PKG_ERRORS=`$PKG_CONFIG --print-errors "libconfdb" 2>&1`
11108 fi
11109 # Put the nasty error message in config.log where it belongs
11110 echo "$CONFDB_PKG_ERRORS" >&5
11111
11112 { $as_echo "$as_me:$LINENO: result: no" >&5
11113$as_echo "no" >&6; }
11114 HAVE_CONFDB=no
11115elif test $pkg_failed = untried; then
11116 HAVE_CONFDB=no
11117else
11118 CONFDB_CFLAGS=$pkg_cv_CONFDB_CFLAGS
11119 CONFDB_LIBS=$pkg_cv_CONFDB_LIBS
11120 { $as_echo "$as_me:$LINENO: result: yes" >&5
11121$as_echo "yes" >&6; }
11122 HAVE_CONFDB=yes
11123fi
11124
11125
11126for ac_header in corosync/confdb.h
11127do
11128as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11129if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11130 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11131$as_echo_n "checking for $ac_header... " >&6; }
11132if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11133 $as_echo_n "(cached) " >&6
11134fi
11135ac_res=`eval 'as_val=${'$as_ac_Header'}
11136 $as_echo "$as_val"'`
11137 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11138$as_echo "$ac_res" >&6; }
11139else
11140 # Is the header compilable?
11141{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11142$as_echo_n "checking $ac_header usability... " >&6; }
11143cat >conftest.$ac_ext <<_ACEOF
11144/* confdefs.h. */
11145_ACEOF
11146cat confdefs.h >>conftest.$ac_ext
11147cat >>conftest.$ac_ext <<_ACEOF
11148/* end confdefs.h. */
11149$ac_includes_default
11150#include <$ac_header>
11151_ACEOF
11152rm -f conftest.$ac_objext
11153if { (ac_try="$ac_compile"
11154case "(($ac_try" in
11155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11156 *) ac_try_echo=$ac_try;;
11157esac
11158eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11159$as_echo "$ac_try_echo") >&5
11160 (eval "$ac_compile") 2>conftest.er1
11161 ac_status=$?
11162 grep -v '^ *+' conftest.er1 >conftest.err
11163 rm -f conftest.er1
11164 cat conftest.err >&5
11165 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11166 (exit $ac_status); } && {
11167 test -z "$ac_c_werror_flag" ||
11168 test ! -s conftest.err
11169 } && test -s conftest.$ac_objext; then
11170 ac_header_compiler=yes
11171else
11172 $as_echo "$as_me: failed program was:" >&5
11173sed 's/^/| /' conftest.$ac_ext >&5
11174
11175 ac_header_compiler=no
11176fi
11177
11178rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11179{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11180$as_echo "$ac_header_compiler" >&6; }
11181
11182# Is the header present?
11183{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11184$as_echo_n "checking $ac_header presence... " >&6; }
11185cat >conftest.$ac_ext <<_ACEOF
11186/* confdefs.h. */
11187_ACEOF
11188cat confdefs.h >>conftest.$ac_ext
11189cat >>conftest.$ac_ext <<_ACEOF
11190/* end confdefs.h. */
11191#include <$ac_header>
11192_ACEOF
11193if { (ac_try="$ac_cpp conftest.$ac_ext"
11194case "(($ac_try" in
11195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11196 *) ac_try_echo=$ac_try;;
11197esac
11198eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11199$as_echo "$ac_try_echo") >&5
11200 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11201 ac_status=$?
11202 grep -v '^ *+' conftest.er1 >conftest.err
11203 rm -f conftest.er1
11204 cat conftest.err >&5
11205 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11206 (exit $ac_status); } >/dev/null && {
11207 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11208 test ! -s conftest.err
11209 }; then
11210 ac_header_preproc=yes
11211else
11212 $as_echo "$as_me: failed program was:" >&5
11213sed 's/^/| /' conftest.$ac_ext >&5
11214
11215 ac_header_preproc=no
11216fi
11217
11218rm -f conftest.err conftest.$ac_ext
11219{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11220$as_echo "$ac_header_preproc" >&6; }
11221
11222# So? What about this header?
11223case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11224 yes:no: )
11225 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11226$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11227 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11228$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11229 ac_header_preproc=yes
11230 ;;
11231 no:yes:* )
11232 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11233$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11234 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11235$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11236 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11237$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11238 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11239$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11240 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11241$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11242 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11243$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11244
11245 ;;
11246esac
11247{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11248$as_echo_n "checking for $ac_header... " >&6; }
11249if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11250 $as_echo_n "(cached) " >&6
11251else
11252 eval "$as_ac_Header=\$ac_header_preproc"
11253fi
11254ac_res=`eval 'as_val=${'$as_ac_Header'}
11255 $as_echo "$as_val"'`
11256 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11257$as_echo "$ac_res" >&6; }
11258
11259fi
11260as_val=`eval 'as_val=${'$as_ac_Header'}
11261 $as_echo "$as_val"'`
11262 if test "x$as_val" = x""yes; then
11263 cat >>confdefs.h <<_ACEOF
11264#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11265_ACEOF
11266 HAVE_CONFDB_H=yes
11267else
11268 HAVE_CONFDB_H=no
11269fi
11270
11271done
11272
11273
11274 if test x$HAVE_CONFDB != xyes && \
11275 test x$HAVE_CONFDB_H = xyes; then
11276 check_lib_no_libs confdb confdb_initialize
11277 { $as_echo "$as_me:$LINENO: result: no pkg for confdb, using -lconfdb" >&5
11278$as_echo "no pkg for confdb, using -lconfdb" >&6; }
11279 CONFDB_LIBS="-lconfdb"
11280 HAVE_CONFDB=yes
11281 fi
11282
11283 if test x$BUILDCOROSYNC = xyes && \
11284 test x$HAVE_CONFDB != xyes &&
11285 test x$CLVMD != xall; then
11286 { { $as_echo "$as_me:$LINENO: error: bailing out... confdb library is required" >&5
11287$as_echo "$as_me: error: bailing out... confdb library is required" >&2;}
11288 { (exit 1); exit 1; }; }
11289 fi
11290fi
11291
11292if test x$CHECKCPG = xyes; then
11293
11294pkg_failed=no
11295{ $as_echo "$as_me:$LINENO: checking for CPG" >&5
11296$as_echo_n "checking for CPG... " >&6; }
11297
11298if test -n "$CPG_CFLAGS"; then
11299 pkg_cv_CPG_CFLAGS="$CPG_CFLAGS"
11300 elif test -n "$PKG_CONFIG"; then
11301 if test -n "$PKG_CONFIG" && \
11302 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
11303 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
11304 ac_status=$?
11305 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11306 (exit $ac_status); }; then
11307 pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
11308else
11309 pkg_failed=yes
11310fi
11311 else
11312 pkg_failed=untried
11313fi
11314if test -n "$CPG_LIBS"; then
11315 pkg_cv_CPG_LIBS="$CPG_LIBS"
11316 elif test -n "$PKG_CONFIG"; then
11317 if test -n "$PKG_CONFIG" && \
11318 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
11319 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
11320 ac_status=$?
11321 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11322 (exit $ac_status); }; then
11323 pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
11324else
11325 pkg_failed=yes
11326fi
11327 else
11328 pkg_failed=untried
11329fi
11330
11331
11332
11333if test $pkg_failed = yes; then
11334
11335if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11336 _pkg_short_errors_supported=yes
11337else
11338 _pkg_short_errors_supported=no
11339fi
11340 if test $_pkg_short_errors_supported = yes; then
11341 CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
11342 else
11343 CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
11344 fi
11345 # Put the nasty error message in config.log where it belongs
11346 echo "$CPG_PKG_ERRORS" >&5
11347
11348 { $as_echo "$as_me:$LINENO: result: no" >&5
11349$as_echo "no" >&6; }
11350 $bailout
11351elif test $pkg_failed = untried; then
11352 $bailout
11353else
11354 CPG_CFLAGS=$pkg_cv_CPG_CFLAGS
11355 CPG_LIBS=$pkg_cv_CPG_LIBS
11356 { $as_echo "$as_me:$LINENO: result: yes" >&5
11357$as_echo "yes" >&6; }
11358 HAVE_CPG=yes
11359fi
11360fi
11361
11362if test x$CHECKDLM = xyes; then
11363
11364pkg_failed=no
11365{ $as_echo "$as_me:$LINENO: checking for DLM" >&5
11366$as_echo_n "checking for DLM... " >&6; }
11367
11368if test -n "$DLM_CFLAGS"; then
11369 pkg_cv_DLM_CFLAGS="$DLM_CFLAGS"
11370 elif test -n "$PKG_CONFIG"; then
11371 if test -n "$PKG_CONFIG" && \
11372 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdlm\"") >&5
11373 ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5
11374 ac_status=$?
11375 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11376 (exit $ac_status); }; then
11377 pkg_cv_DLM_CFLAGS=`$PKG_CONFIG --cflags "libdlm" 2>/dev/null`
11378else
11379 pkg_failed=yes
11380fi
11381 else
11382 pkg_failed=untried
11383fi
11384if test -n "$DLM_LIBS"; then
11385 pkg_cv_DLM_LIBS="$DLM_LIBS"
11386 elif test -n "$PKG_CONFIG"; then
11387 if test -n "$PKG_CONFIG" && \
11388 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdlm\"") >&5
11389 ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5
11390 ac_status=$?
11391 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11392 (exit $ac_status); }; then
11393 pkg_cv_DLM_LIBS=`$PKG_CONFIG --libs "libdlm" 2>/dev/null`
11394else
11395 pkg_failed=yes
11396fi
11397 else
11398 pkg_failed=untried
11399fi
11400
11401
11402
11403if test $pkg_failed = yes; then
11404
11405if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11406 _pkg_short_errors_supported=yes
11407else
11408 _pkg_short_errors_supported=no
11409fi
11410 if test $_pkg_short_errors_supported = yes; then
11411 DLM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdlm" 2>&1`
11412 else
11413 DLM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdlm" 2>&1`
11414 fi
11415 # Put the nasty error message in config.log where it belongs
11416 echo "$DLM_PKG_ERRORS" >&5
11417
11418 { $as_echo "$as_me:$LINENO: result: no" >&5
11419$as_echo "no" >&6; }
11420 NOTFOUND=0
11421
11422for ac_header in libdlm.h
11423do
11424as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11425if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11426 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11427$as_echo_n "checking for $ac_header... " >&6; }
11428if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11429 $as_echo_n "(cached) " >&6
11430fi
11431ac_res=`eval 'as_val=${'$as_ac_Header'}
11432 $as_echo "$as_val"'`
11433 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11434$as_echo "$ac_res" >&6; }
11435else
11436 # Is the header compilable?
11437{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11438$as_echo_n "checking $ac_header usability... " >&6; }
11439cat >conftest.$ac_ext <<_ACEOF
11440/* confdefs.h. */
11441_ACEOF
11442cat confdefs.h >>conftest.$ac_ext
11443cat >>conftest.$ac_ext <<_ACEOF
11444/* end confdefs.h. */
11445$ac_includes_default
11446#include <$ac_header>
11447_ACEOF
11448rm -f conftest.$ac_objext
11449if { (ac_try="$ac_compile"
11450case "(($ac_try" in
11451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11452 *) ac_try_echo=$ac_try;;
11453esac
11454eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11455$as_echo "$ac_try_echo") >&5
11456 (eval "$ac_compile") 2>conftest.er1
11457 ac_status=$?
11458 grep -v '^ *+' conftest.er1 >conftest.err
11459 rm -f conftest.er1
11460 cat conftest.err >&5
11461 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11462 (exit $ac_status); } && {
11463 test -z "$ac_c_werror_flag" ||
11464 test ! -s conftest.err
11465 } && test -s conftest.$ac_objext; then
11466 ac_header_compiler=yes
11467else
11468 $as_echo "$as_me: failed program was:" >&5
11469sed 's/^/| /' conftest.$ac_ext >&5
11470
11471 ac_header_compiler=no
11472fi
11473
11474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11475{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11476$as_echo "$ac_header_compiler" >&6; }
11477
11478# Is the header present?
11479{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11480$as_echo_n "checking $ac_header presence... " >&6; }
11481cat >conftest.$ac_ext <<_ACEOF
11482/* confdefs.h. */
11483_ACEOF
11484cat confdefs.h >>conftest.$ac_ext
11485cat >>conftest.$ac_ext <<_ACEOF
11486/* end confdefs.h. */
11487#include <$ac_header>
11488_ACEOF
11489if { (ac_try="$ac_cpp conftest.$ac_ext"
11490case "(($ac_try" in
11491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11492 *) ac_try_echo=$ac_try;;
11493esac
11494eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11495$as_echo "$ac_try_echo") >&5
11496 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11497 ac_status=$?
11498 grep -v '^ *+' conftest.er1 >conftest.err
11499 rm -f conftest.er1
11500 cat conftest.err >&5
11501 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11502 (exit $ac_status); } >/dev/null && {
11503 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11504 test ! -s conftest.err
11505 }; then
11506 ac_header_preproc=yes
11507else
11508 $as_echo "$as_me: failed program was:" >&5
11509sed 's/^/| /' conftest.$ac_ext >&5
11510
11511 ac_header_preproc=no
11512fi
11513
11514rm -f conftest.err conftest.$ac_ext
11515{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11516$as_echo "$ac_header_preproc" >&6; }
11517
11518# So? What about this header?
11519case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11520 yes:no: )
11521 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11522$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11523 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11524$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11525 ac_header_preproc=yes
11526 ;;
11527 no:yes:* )
11528 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11529$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11530 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11531$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11532 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11533$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11534 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11535$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11536 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11537$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11538 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11539$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11540
11541 ;;
11542esac
11543{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11544$as_echo_n "checking for $ac_header... " >&6; }
11545if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11546 $as_echo_n "(cached) " >&6
11547else
11548 eval "$as_ac_Header=\$ac_header_preproc"
11549fi
11550ac_res=`eval 'as_val=${'$as_ac_Header'}
11551 $as_echo "$as_val"'`
11552 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11553$as_echo "$ac_res" >&6; }
11554
11555fi
11556as_val=`eval 'as_val=${'$as_ac_Header'}
11557 $as_echo "$as_val"'`
11558 if test "x$as_val" = x""yes; then
11559 cat >>confdefs.h <<_ACEOF
11560#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11561_ACEOF
11562
11563else
11564 $bailout
11565fi
11566
11567done
11568
11569 check_lib_no_libs dlm dlm_lock -lpthread
11570 if test $NOTFOUND = 0; then
11571 { $as_echo "$as_me:$LINENO: result: no pkg for libdlm, using -ldlm" >&5
11572$as_echo "no pkg for libdlm, using -ldlm" >&6; }
11573 DLM_LIBS="-ldlm -lpthread"
11574 HAVE_DLM=yes
11575 fi
11576elif test $pkg_failed = untried; then
11577 NOTFOUND=0
11578
11579for ac_header in libdlm.h
11580do
11581as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11582if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11583 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11584$as_echo_n "checking for $ac_header... " >&6; }
11585if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11586 $as_echo_n "(cached) " >&6
11587fi
11588ac_res=`eval 'as_val=${'$as_ac_Header'}
11589 $as_echo "$as_val"'`
11590 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11591$as_echo "$ac_res" >&6; }
11592else
11593 # Is the header compilable?
11594{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11595$as_echo_n "checking $ac_header usability... " >&6; }
11596cat >conftest.$ac_ext <<_ACEOF
11597/* confdefs.h. */
11598_ACEOF
11599cat confdefs.h >>conftest.$ac_ext
11600cat >>conftest.$ac_ext <<_ACEOF
11601/* end confdefs.h. */
11602$ac_includes_default
11603#include <$ac_header>
11604_ACEOF
11605rm -f conftest.$ac_objext
11606if { (ac_try="$ac_compile"
11607case "(($ac_try" in
11608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11609 *) ac_try_echo=$ac_try;;
11610esac
11611eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11612$as_echo "$ac_try_echo") >&5
11613 (eval "$ac_compile") 2>conftest.er1
11614 ac_status=$?
11615 grep -v '^ *+' conftest.er1 >conftest.err
11616 rm -f conftest.er1
11617 cat conftest.err >&5
11618 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11619 (exit $ac_status); } && {
11620 test -z "$ac_c_werror_flag" ||
11621 test ! -s conftest.err
11622 } && test -s conftest.$ac_objext; then
11623 ac_header_compiler=yes
11624else
11625 $as_echo "$as_me: failed program was:" >&5
11626sed 's/^/| /' conftest.$ac_ext >&5
11627
11628 ac_header_compiler=no
11629fi
11630
11631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11632{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11633$as_echo "$ac_header_compiler" >&6; }
11634
11635# Is the header present?
11636{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11637$as_echo_n "checking $ac_header presence... " >&6; }
11638cat >conftest.$ac_ext <<_ACEOF
11639/* confdefs.h. */
11640_ACEOF
11641cat confdefs.h >>conftest.$ac_ext
11642cat >>conftest.$ac_ext <<_ACEOF
11643/* end confdefs.h. */
11644#include <$ac_header>
11645_ACEOF
11646if { (ac_try="$ac_cpp conftest.$ac_ext"
11647case "(($ac_try" in
11648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11649 *) ac_try_echo=$ac_try;;
11650esac
11651eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11652$as_echo "$ac_try_echo") >&5
11653 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11654 ac_status=$?
11655 grep -v '^ *+' conftest.er1 >conftest.err
11656 rm -f conftest.er1
11657 cat conftest.err >&5
11658 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11659 (exit $ac_status); } >/dev/null && {
11660 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11661 test ! -s conftest.err
11662 }; then
11663 ac_header_preproc=yes
11664else
11665 $as_echo "$as_me: failed program was:" >&5
11666sed 's/^/| /' conftest.$ac_ext >&5
11667
11668 ac_header_preproc=no
11669fi
11670
11671rm -f conftest.err conftest.$ac_ext
11672{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11673$as_echo "$ac_header_preproc" >&6; }
11674
11675# So? What about this header?
11676case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11677 yes:no: )
11678 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11679$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11680 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11681$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11682 ac_header_preproc=yes
11683 ;;
11684 no:yes:* )
11685 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11686$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11687 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11688$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11689 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11690$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11691 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11692$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11693 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11694$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11695 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11696$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11697
11698 ;;
11699esac
11700{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11701$as_echo_n "checking for $ac_header... " >&6; }
11702if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11703 $as_echo_n "(cached) " >&6
11704else
11705 eval "$as_ac_Header=\$ac_header_preproc"
11706fi
11707ac_res=`eval 'as_val=${'$as_ac_Header'}
11708 $as_echo "$as_val"'`
11709 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11710$as_echo "$ac_res" >&6; }
11711
11712fi
11713as_val=`eval 'as_val=${'$as_ac_Header'}
11714 $as_echo "$as_val"'`
11715 if test "x$as_val" = x""yes; then
11716 cat >>confdefs.h <<_ACEOF
11717#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11718_ACEOF
11719
11720else
11721 $bailout
11722fi
11723
11724done
11725
11726 check_lib_no_libs dlm dlm_lock -lpthread
11727 if test $NOTFOUND = 0; then
11728 { $as_echo "$as_me:$LINENO: result: no pkg for libdlm, using -ldlm" >&5
11729$as_echo "no pkg for libdlm, using -ldlm" >&6; }
11730 DLM_LIBS="-ldlm -lpthread"
11731 HAVE_DLM=yes
11732 fi
11733else
11734 DLM_CFLAGS=$pkg_cv_DLM_CFLAGS
11735 DLM_LIBS=$pkg_cv_DLM_LIBS
11736 { $as_echo "$as_me:$LINENO: result: yes" >&5
11737$as_echo "yes" >&6; }
11738 HAVE_DLM=yes
11739fi
11740fi
11741
11742if test x$CLVMD = xall; then
8c222979 11743 CLVMD=none
a946372e
AK
11744 if test x$HAVE_CCS = xyes && \
11745 test x$HAVE_GULM = xyes; then
8c222979
FDN
11746 { $as_echo "$as_me:$LINENO: result: Enabling clvmd gulm cluster manager" >&5
11747$as_echo "Enabling clvmd gulm cluster manager" >&6; }
11748 CLVMD="$CLVMD,gulm"
a946372e
AK
11749 fi
11750 if test x$HAVE_CMAN = xyes && \
11751 test x$HAVE_DLM = xyes; then
8c222979
FDN
11752 { $as_echo "$as_me:$LINENO: result: Enabling clvmd cman cluster manager" >&5
11753$as_echo "Enabling clvmd cman cluster manager" >&6; }
11754 CLVMD="$CLVMD,cman"
a946372e
AK
11755 fi
11756 if test x$HAVE_COROSYNC = xyes && \
11757 test x$HAVE_QUORUM = xyes && \
11758 test x$HAVE_CPG = xyes && \
11759 test x$HAVE_DLM = xyes && \
11760 test x$HAVE_CONFDB = xyes; then
8c222979
FDN
11761 { $as_echo "$as_me:$LINENO: result: Enabling clvmd corosync cluster manager" >&5
11762$as_echo "Enabling clvmd corosync cluster manager" >&6; }
11763 CLVMD="$CLVMD,corosync"
a946372e
AK
11764 fi
11765 if test x$HAVE_COROSYNC = xyes && \
11766 test x$HAVE_CPG = xyes && \
11767 test x$HAVE_SALCK = xyes; then
8c222979
FDN
11768 { $as_echo "$as_me:$LINENO: result: Enabling clvmd openais cluster manager" >&5
11769$as_echo "Enabling clvmd openais cluster manager" >&6; }
11770 CLVMD="$CLVMD,openais"
11771 fi
11772 if test x$CLVMD = xnone; then
11773 { $as_echo "$as_me:$LINENO: result: Disabling clvmd build. No cluster manager detected." >&5
11774$as_echo "Disabling clvmd build. No cluster manager detected." >&6; }
a946372e 11775 fi
a946372e
AK
11776fi
11777
11778################################################################################
66fd4529
AK
11779{ $as_echo "$as_me:$LINENO: checking whether to build cluster mirror log daemon" >&5
11780$as_echo_n "checking whether to build cluster mirror log daemon... " >&6; }
11781# Check whether --enable-cmirrord was given.
11782if test "${enable_cmirrord+set}" = set; then
11783 enableval=$enable_cmirrord; CMIRRORD=$enableval
11784else
11785 CMIRRORD=no
11786fi
11787
11788{ $as_echo "$as_me:$LINENO: result: $CMIRRORD" >&5
11789$as_echo "$CMIRRORD" >&6; }
11790
11791BUILD_CMIRRORD=$CMIRRORD
11792
11793################################################################################
11794
11795
11796if test "x$BUILD_CMIRRORD" = xyes; then
11797
11798# Check whether --with-cmirrord-pidfile was given.
11799if test "${with_cmirrord_pidfile+set}" = set; then
11800 withval=$with_cmirrord_pidfile; cat >>confdefs.h <<_ACEOF
11801#define CMIRRORD_PIDFILE "$withval"
11802_ACEOF
11803
11804else
11805 cat >>confdefs.h <<_ACEOF
11806#define CMIRRORD_PIDFILE "/var/run/cmirrord.pid"
11807_ACEOF
11808
a946372e
AK
11809fi
11810
66fd4529 11811fi
a946372e 11812
66fd4529
AK
11813################################################################################
11814if [ "x$BUILD_CMIRRORD" = xyes ]; then
90c80887
AK
11815 if test x$PKGCONFIG_INIT != x1; then
11816 pkg_config_init
11817 fi
11818
11819pkg_failed=no
11820{ $as_echo "$as_me:$LINENO: checking for SACKPT" >&5
11821$as_echo_n "checking for SACKPT... " >&6; }
11822
11823if test -n "$SACKPT_CFLAGS"; then
11824 pkg_cv_SACKPT_CFLAGS="$SACKPT_CFLAGS"
11825 elif test -n "$PKG_CONFIG"; then
11826 if test -n "$PKG_CONFIG" && \
11827 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\"") >&5
11828 ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5
11829 ac_status=$?
11830 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11831 (exit $ac_status); }; then
11832 pkg_cv_SACKPT_CFLAGS=`$PKG_CONFIG --cflags "libSaCkpt" 2>/dev/null`
11833else
11834 pkg_failed=yes
11835fi
11836 else
11837 pkg_failed=untried
11838fi
11839if test -n "$SACKPT_LIBS"; then
11840 pkg_cv_SACKPT_LIBS="$SACKPT_LIBS"
11841 elif test -n "$PKG_CONFIG"; then
11842 if test -n "$PKG_CONFIG" && \
11843 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\"") >&5
11844 ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5
11845 ac_status=$?
11846 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11847 (exit $ac_status); }; then
11848 pkg_cv_SACKPT_LIBS=`$PKG_CONFIG --libs "libSaCkpt" 2>/dev/null`
11849else
11850 pkg_failed=yes
11851fi
11852 else
11853 pkg_failed=untried
11854fi
11855
11856
11857
11858if test $pkg_failed = yes; then
11859
11860if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11861 _pkg_short_errors_supported=yes
11862else
11863 _pkg_short_errors_supported=no
11864fi
11865 if test $_pkg_short_errors_supported = yes; then
11866 SACKPT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaCkpt" 2>&1`
11867 else
11868 SACKPT_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaCkpt" 2>&1`
11869 fi
11870 # Put the nasty error message in config.log where it belongs
11871 echo "$SACKPT_PKG_ERRORS" >&5
11872
11873 { { $as_echo "$as_me:$LINENO: error: Package requirements (libSaCkpt) were not met:
11874
11875$SACKPT_PKG_ERRORS
11876
11877Consider adjusting the PKG_CONFIG_PATH environment variable if you
11878installed software in a non-standard prefix.
11879
11880Alternatively, you may set the environment variables SACKPT_CFLAGS
11881and SACKPT_LIBS to avoid the need to call pkg-config.
11882See the pkg-config man page for more details.
11883" >&5
11884$as_echo "$as_me: error: Package requirements (libSaCkpt) were not met:
11885
11886$SACKPT_PKG_ERRORS
11887
11888Consider adjusting the PKG_CONFIG_PATH environment variable if you
11889installed software in a non-standard prefix.
11890
11891Alternatively, you may set the environment variables SACKPT_CFLAGS
11892and SACKPT_LIBS to avoid the need to call pkg-config.
11893See the pkg-config man page for more details.
11894" >&2;}
11895 { (exit 1); exit 1; }; }
11896elif test $pkg_failed = untried; then
11897 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11898$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11899{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
11900is in your PATH or set the PKG_CONFIG environment variable to the full
11901path to pkg-config.
11902
11903Alternatively, you may set the environment variables SACKPT_CFLAGS
11904and SACKPT_LIBS to avoid the need to call pkg-config.
11905See the pkg-config man page for more details.
11906
11907To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11908See \`config.log' for more details." >&5
11909$as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
11910is in your PATH or set the PKG_CONFIG environment variable to the full
11911path to pkg-config.
11912
11913Alternatively, you may set the environment variables SACKPT_CFLAGS
11914and SACKPT_LIBS to avoid the need to call pkg-config.
11915See the pkg-config man page for more details.
11916
11917To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11918See \`config.log' for more details." >&2;}
11919 { (exit 1); exit 1; }; }; }
11920else
11921 SACKPT_CFLAGS=$pkg_cv_SACKPT_CFLAGS
11922 SACKPT_LIBS=$pkg_cv_SACKPT_LIBS
11923 { $as_echo "$as_me:$LINENO: result: yes" >&5
11924$as_echo "yes" >&6; }
11925 :
11926fi
11927 if test x$HAVE_CPG != xyes; then
a946372e
AK
11928
11929pkg_failed=no
11930{ $as_echo "$as_me:$LINENO: checking for CPG" >&5
11931$as_echo_n "checking for CPG... " >&6; }
11932
11933if test -n "$CPG_CFLAGS"; then
11934 pkg_cv_CPG_CFLAGS="$CPG_CFLAGS"
11935 elif test -n "$PKG_CONFIG"; then
11936 if test -n "$PKG_CONFIG" && \
11937 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
11938 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
11939 ac_status=$?
11940 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11941 (exit $ac_status); }; then
11942 pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
11943else
11944 pkg_failed=yes
11945fi
11946 else
11947 pkg_failed=untried
11948fi
11949if test -n "$CPG_LIBS"; then
11950 pkg_cv_CPG_LIBS="$CPG_LIBS"
11951 elif test -n "$PKG_CONFIG"; then
11952 if test -n "$PKG_CONFIG" && \
11953 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
11954 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
11955 ac_status=$?
11956 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11957 (exit $ac_status); }; then
11958 pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
11959else
11960 pkg_failed=yes
11961fi
11962 else
11963 pkg_failed=untried
11964fi
11965
11966
11967
11968if test $pkg_failed = yes; then
11969
11970if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11971 _pkg_short_errors_supported=yes
11972else
11973 _pkg_short_errors_supported=no
11974fi
11975 if test $_pkg_short_errors_supported = yes; then
11976 CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
11977 else
11978 CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
11979 fi
11980 # Put the nasty error message in config.log where it belongs
11981 echo "$CPG_PKG_ERRORS" >&5
11982
90c80887
AK
11983 { { $as_echo "$as_me:$LINENO: error: Package requirements (libcpg) were not met:
11984
11985$CPG_PKG_ERRORS
11986
11987Consider adjusting the PKG_CONFIG_PATH environment variable if you
11988installed software in a non-standard prefix.
11989
11990Alternatively, you may set the environment variables CPG_CFLAGS
11991and CPG_LIBS to avoid the need to call pkg-config.
11992See the pkg-config man page for more details.
11993" >&5
11994$as_echo "$as_me: error: Package requirements (libcpg) were not met:
11995
11996$CPG_PKG_ERRORS
11997
11998Consider adjusting the PKG_CONFIG_PATH environment variable if you
11999installed software in a non-standard prefix.
12000
12001Alternatively, you may set the environment variables CPG_CFLAGS
12002and CPG_LIBS to avoid the need to call pkg-config.
12003See the pkg-config man page for more details.
12004" >&2;}
12005 { (exit 1); exit 1; }; }
a946372e 12006elif test $pkg_failed = untried; then
90c80887
AK
12007 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12008$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12009{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
12010is in your PATH or set the PKG_CONFIG environment variable to the full
12011path to pkg-config.
12012
12013Alternatively, you may set the environment variables CPG_CFLAGS
12014and CPG_LIBS to avoid the need to call pkg-config.
12015See the pkg-config man page for more details.
12016
12017To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12018See \`config.log' for more details." >&5
12019$as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
12020is in your PATH or set the PKG_CONFIG environment variable to the full
12021path to pkg-config.
12022
12023Alternatively, you may set the environment variables CPG_CFLAGS
12024and CPG_LIBS to avoid the need to call pkg-config.
12025See the pkg-config man page for more details.
12026
12027To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12028See \`config.log' for more details." >&2;}
12029 { (exit 1); exit 1; }; }; }
a946372e
AK
12030else
12031 CPG_CFLAGS=$pkg_cv_CPG_CFLAGS
12032 CPG_LIBS=$pkg_cv_CPG_LIBS
12033 { $as_echo "$as_me:$LINENO: result: yes" >&5
12034$as_echo "yes" >&6; }
12035 :
12036fi
90c80887 12037 fi
a946372e
AK
12038fi
12039
12040################################################################################
12041{ $as_echo "$as_me:$LINENO: checking whether to enable debugging" >&5
12042$as_echo_n "checking whether to enable debugging... " >&6; }
12043# Check whether --enable-debug was given.
12044if test "${enable_debug+set}" = set; then
12045 enableval=$enable_debug; DEBUG=$enableval
12046else
12047 DEBUG=no
12048fi
12049
12050{ $as_echo "$as_me:$LINENO: result: $DEBUG" >&5
12051$as_echo "$DEBUG" >&6; }
12052
12053if test x$DEBUG = xyes; then
12054 COPTIMISE_FLAG=
12055else
12056 CSCOPE_CMD=
12057fi
12058
12059################################################################################
12060{ $as_echo "$as_me:$LINENO: checking for C optimisation flag" >&5
12061$as_echo_n "checking for C optimisation flag... " >&6; }
12062
12063# Check whether --with-optimisation was given.
12064if test "${with_optimisation+set}" = set; then
12065 withval=$with_optimisation; COPTIMISE_FLAG="$withval"
12066fi
12067
12068{ $as_echo "$as_me:$LINENO: result: $COPTIMISE_FLAG" >&5
12069$as_echo "$COPTIMISE_FLAG" >&6; }
12070
12071################################################################################
12072{ $as_echo "$as_me:$LINENO: checking whether to gather gcov profiling data" >&5
12073$as_echo_n "checking whether to gather gcov profiling data... " >&6; }
12074# Check whether --enable-profiling was given.
12075if test "${enable_profiling+set}" = set; then
5556819a 12076 enableval=$enable_profiling; PROFILING=$enableval
fddafd51 12077else
5556819a 12078 PROFILING=no
fddafd51
ZK
12079fi
12080
ec6a6fbe
AK
12081{ $as_echo "$as_me:$LINENO: result: $PROFILING" >&5
12082$as_echo "$PROFILING" >&6; }
5556819a
AK
12083
12084if test "x$PROFILING" = xyes; then
12085 COPTIMISE_FLAG="$COPTIMISE_FLAG -fprofile-arcs -ftest-coverage"
12086 # Extract the first word of "lcov", so it can be a program name with args.
fddafd51 12087set dummy lcov; ac_word=$2
ec6a6fbe
AK
12088{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12089$as_echo_n "checking for $ac_word... " >&6; }
fddafd51 12090if test "${ac_cv_path_LCOV+set}" = set; then
ec6a6fbe 12091 $as_echo_n "(cached) " >&6
fddafd51
ZK
12092else
12093 case $LCOV in
12094 [\\/]* | ?:[\\/]*)
12095 ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path.
12096 ;;
12097 *)
12098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12099for as_dir in $PATH
12100do
12101 IFS=$as_save_IFS
12102 test -z "$as_dir" && as_dir=.
12103 for ac_exec_ext in '' $ac_executable_extensions; do
12104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12105 ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 12106 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
fddafd51
ZK
12107 break 2
12108 fi
12109done
12110done
12111IFS=$as_save_IFS
12112
b145d876 12113 test -z "$ac_cv_path_LCOV" && ac_cv_path_LCOV="no"
fddafd51
ZK
12114 ;;
12115esac
12116fi
12117LCOV=$ac_cv_path_LCOV
12118if test -n "$LCOV"; then
ec6a6fbe
AK
12119 { $as_echo "$as_me:$LINENO: result: $LCOV" >&5
12120$as_echo "$LCOV" >&6; }
fddafd51 12121else
ec6a6fbe
AK
12122 { $as_echo "$as_me:$LINENO: result: no" >&5
12123$as_echo "no" >&6; }
fddafd51
ZK
12124fi
12125
12126
5556819a 12127 # Extract the first word of "genhtml", so it can be a program name with args.
fddafd51 12128set dummy genhtml; ac_word=$2
ec6a6fbe
AK
12129{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12130$as_echo_n "checking for $ac_word... " >&6; }
fddafd51 12131if test "${ac_cv_path_GENHTML+set}" = set; then
ec6a6fbe 12132 $as_echo_n "(cached) " >&6
fddafd51
ZK
12133else
12134 case $GENHTML in
12135 [\\/]* | ?:[\\/]*)
12136 ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path.
12137 ;;
12138 *)
12139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12140for as_dir in $PATH
12141do
12142 IFS=$as_save_IFS
12143 test -z "$as_dir" && as_dir=.
12144 for ac_exec_ext in '' $ac_executable_extensions; do
12145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12146 ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 12147 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
fddafd51
ZK
12148 break 2
12149 fi
12150done
12151done
12152IFS=$as_save_IFS
12153
b145d876 12154 test -z "$ac_cv_path_GENHTML" && ac_cv_path_GENHTML="no"
fddafd51
ZK
12155 ;;
12156esac
12157fi
12158GENHTML=$ac_cv_path_GENHTML
12159if test -n "$GENHTML"; then
ec6a6fbe
AK
12160 { $as_echo "$as_me:$LINENO: result: $GENHTML" >&5
12161$as_echo "$GENHTML" >&6; }
fddafd51 12162else
ec6a6fbe
AK
12163 { $as_echo "$as_me:$LINENO: result: no" >&5
12164$as_echo "no" >&6; }
fddafd51
ZK
12165fi
12166
12167
b145d876 12168 if test "$LCOV" = no -o "$GENHTML" = no ; then
ec6a6fbe
AK
12169 { { $as_echo "$as_me:$LINENO: error: lcov and genhtml are required for profiling" >&5
12170$as_echo "$as_me: error: lcov and genhtml are required for profiling" >&2;}
b145d876
ZK
12171 { (exit 1); exit 1; }; }
12172 fi
5556819a 12173fi
d0191583
JM
12174
12175################################################################################
ec6a6fbe
AK
12176{ $as_echo "$as_me:$LINENO: checking whether to use device-mapper" >&5
12177$as_echo_n "checking whether to use device-mapper... " >&6; }
d0191583
JM
12178# Check whether --enable-devmapper was given.
12179if test "${enable_devmapper+set}" = set; then
12180 enableval=$enable_devmapper; DEVMAPPER=$enableval
fc54be10
AK
12181fi
12182
ec6a6fbe
AK
12183{ $as_echo "$as_me:$LINENO: result: $DEVMAPPER" >&5
12184$as_echo "$DEVMAPPER" >&6; }
d0191583
JM
12185
12186if test x$DEVMAPPER = xyes; then
ad6254c5
AK
12187
12188cat >>confdefs.h <<\_ACEOF
d0191583 12189#define DEVMAPPER_SUPPORT 1
ad6254c5
AK
12190_ACEOF
12191
12192fi
12193
a5f46f6a
AK
12194################################################################################
12195{ $as_echo "$as_me:$LINENO: checking whether to enable synchronisation with udev processing" >&5
12196$as_echo_n "checking whether to enable synchronisation with udev processing... " >&6; }
12197# Check whether --enable-udev_sync was given.
12198if test "${enable_udev_sync+set}" = set; then
12199 enableval=$enable_udev_sync; UDEV_SYNC=$enableval
12200else
12201 UDEV_SYNC=no
12202fi
12203
12204{ $as_echo "$as_me:$LINENO: result: $UDEV_SYNC" >&5
12205$as_echo "$UDEV_SYNC" >&6; }
12206
12207if test x$UDEV_SYNC = xyes; then
12208
12209cat >>confdefs.h <<\_ACEOF
12210#define UDEV_SYNC_SUPPORT 1
12211_ACEOF
12212
12213fi
12214
12215{ $as_echo "$as_me:$LINENO: checking whether to enable installation of udev rules required for synchronisation" >&5
12216$as_echo_n "checking whether to enable installation of udev rules required for synchronisation... " >&6; }
12217# Check whether --enable-udev_rules was given.
12218if test "${enable_udev_rules+set}" = set; then
12219 enableval=$enable_udev_rules; UDEV_RULES=$enableval
12220else
12221 UDEV_RULES=$UDEV_SYNC
12222fi
12223
12224{ $as_echo "$as_me:$LINENO: result: $UDEV_RULES" >&5
12225$as_echo "$UDEV_RULES" >&6; }
12226
90c80887
AK
12227################################################################################
12228
12229if test x$UDEV_SYNC = xyes; then
12230 { $as_echo "$as_me:$LINENO: checking for udev_queue_get_udev_is_active in -ludev" >&5
12231$as_echo_n "checking for udev_queue_get_udev_is_active in -ludev... " >&6; }
12232if test "${ac_cv_lib_udev_udev_queue_get_udev_is_active+set}" = set; then
12233 $as_echo_n "(cached) " >&6
12234else
12235 ac_check_lib_save_LIBS=$LIBS
12236LIBS="-ludev $LIBS"
12237cat >conftest.$ac_ext <<_ACEOF
12238/* confdefs.h. */
12239_ACEOF
12240cat confdefs.h >>conftest.$ac_ext
12241cat >>conftest.$ac_ext <<_ACEOF
12242/* end confdefs.h. */
12243
12244/* Override any GCC internal prototype to avoid an error.
12245 Use char because int might match the return type of a GCC
12246 builtin and then its argument prototype would still apply. */
12247#ifdef __cplusplus
12248extern "C"
12249#endif
12250char udev_queue_get_udev_is_active ();
12251int
12252main ()
12253{
12254return udev_queue_get_udev_is_active ();
12255 ;
12256 return 0;
12257}
12258_ACEOF
12259rm -f conftest.$ac_objext conftest$ac_exeext
12260if { (ac_try="$ac_link"
12261case "(($ac_try" in
12262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12263 *) ac_try_echo=$ac_try;;
12264esac
12265eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12266$as_echo "$ac_try_echo") >&5
12267 (eval "$ac_link") 2>conftest.er1
12268 ac_status=$?
12269 grep -v '^ *+' conftest.er1 >conftest.err
12270 rm -f conftest.er1
12271 cat conftest.err >&5
12272 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12273 (exit $ac_status); } && {
12274 test -z "$ac_c_werror_flag" ||
12275 test ! -s conftest.err
12276 } && test -s conftest$ac_exeext && {
12277 test "$cross_compiling" = yes ||
12278 $as_test_x conftest$ac_exeext
12279 }; then
12280 ac_cv_lib_udev_udev_queue_get_udev_is_active=yes
12281else
12282 $as_echo "$as_me: failed program was:" >&5
12283sed 's/^/| /' conftest.$ac_ext >&5
12284
12285 ac_cv_lib_udev_udev_queue_get_udev_is_active=no
12286fi
12287
12288rm -rf conftest.dSYM
12289rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12290 conftest$ac_exeext conftest.$ac_ext
12291LIBS=$ac_check_lib_save_LIBS
12292fi
12293{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_udev_udev_queue_get_udev_is_active" >&5
12294$as_echo "$ac_cv_lib_udev_udev_queue_get_udev_is_active" >&6; }
12295if test "x$ac_cv_lib_udev_udev_queue_get_udev_is_active" = x""yes; then
12296 HAVE_UDEV_QUEUE_GET_UDEV_IS_ACTIVE=yes
12297else
12298 HAVE_UDEV_QUEUE_GET_UDEV_IS_ACTIVE=no
12299fi
12300
12301
12302 if test x$HAVE_UDEV_QUEUE_GET_UDEV_IS_ACTIVE = xyes; then
12303
12304cat >>confdefs.h <<\_ACEOF
12305#define HAVE_UDEV_QUEUE_GET_UDEV_IS_ACTIVE 1
12306_ACEOF
12307
12308 LIBS="-ludev $LIBS"
12309 fi
12310fi
12311
93bd259b
AK
12312################################################################################
12313# Check whether --enable-compat was given.
12314if test "${enable_compat+set}" = set; then
12315 enableval=$enable_compat; DM_COMPAT=$enableval
12316else
12317 DM_COMPAT=no
12318fi
12319
12320
95eaa683
AK
12321################################################################################
12322# Check whether --enable-units-compat was given.
12323if test "${enable_units_compat+set}" = set; then
12324 enableval=$enable_units_compat; UNITS_COMPAT=$enableval
12325else
12326 UNITS_COMPAT=no
12327fi
12328
12329
12330if test x$UNITS_COMPAT = xyes; then
12331
12332cat >>confdefs.h <<\_ACEOF
12333#define DEFAULT_SI_UNIT_CONSISTENCY 0
12334_ACEOF
12335
12336fi
12337
93bd259b
AK
12338################################################################################
12339# Check whether --enable-ioctl was given.
12340if test "${enable_ioctl+set}" = set; then
12341 enableval=$enable_ioctl; DM_IOCTLS=$enableval
12342fi
12343
12344
d0191583 12345################################################################################
ec6a6fbe
AK
12346{ $as_echo "$as_me:$LINENO: checking whether to enable O_DIRECT" >&5
12347$as_echo_n "checking whether to enable O_DIRECT... " >&6; }
d0191583
JM
12348# Check whether --enable-o_direct was given.
12349if test "${enable_o_direct+set}" = set; then
12350 enableval=$enable_o_direct; ODIRECT=$enableval
ad6254c5 12351fi
ad6254c5 12352
ec6a6fbe
AK
12353{ $as_echo "$as_me:$LINENO: result: $ODIRECT" >&5
12354$as_echo "$ODIRECT" >&6; }
ad6254c5 12355
d0191583 12356if test x$ODIRECT = xyes; then
ad6254c5 12357
d0191583
JM
12358cat >>confdefs.h <<\_ACEOF
12359#define O_DIRECT_SUPPORT 1
12360_ACEOF
ad6254c5 12361
d0191583 12362fi
ad6254c5 12363
572fefeb
AK
12364################################################################################
12365{ $as_echo "$as_me:$LINENO: checking whether to build liblvm2app.so application library" >&5
12366$as_echo_n "checking whether to build liblvm2app.so application library... " >&6; }
12367# Check whether --enable-applib was given.
12368if test "${enable_applib+set}" = set; then
12369 enableval=$enable_applib; APPLIB=$enableval
12370else
12371 APPLIB=no
12372fi
12373
12374{ $as_echo "$as_me:$LINENO: result: $APPLIB" >&5
12375$as_echo "$APPLIB" >&6; }
12376
12377test x$APPLIB = xyes \
12378 && LVM2APP_LIB=-llvm2app \
12379 || LVM2APP_LIB=
12380
d0191583 12381################################################################################
ec6a6fbe
AK
12382{ $as_echo "$as_me:$LINENO: checking whether to compile liblvm2cmd.so" >&5
12383$as_echo_n "checking whether to compile liblvm2cmd.so... " >&6; }
d0191583
JM
12384# Check whether --enable-cmdlib was given.
12385if test "${enable_cmdlib+set}" = set; then
12386 enableval=$enable_cmdlib; CMDLIB=$enableval
ad6254c5 12387else
d0191583
JM
12388 CMDLIB=no
12389fi
8a2fc586 12390
ec6a6fbe
AK
12391{ $as_echo "$as_me:$LINENO: result: $CMDLIB" >&5
12392$as_echo "$CMDLIB" >&6; }
8a2fc586 12393
2a9a80c9 12394test x$CMDLIB = xyes \
d179cc7a
JM
12395 && LVM2CMD_LIB=-llvm2cmd \
12396 || LVM2CMD_LIB=
12397
93bd259b
AK
12398################################################################################
12399# Check whether --enable-pkgconfig was given.
12400if test "${enable_pkgconfig+set}" = set; then
12401 enableval=$enable_pkgconfig; PKGCONFIG=$enableval
12402else
12403 PKGCONFIG=no
12404fi
12405
2a9a80c9 12406
d0191583 12407################################################################################
ec6a6fbe
AK
12408{ $as_echo "$as_me:$LINENO: checking whether to install fsadm" >&5
12409$as_echo_n "checking whether to install fsadm... " >&6; }
d0191583
JM
12410# Check whether --enable-fsadm was given.
12411if test "${enable_fsadm+set}" = set; then
12412 enableval=$enable_fsadm; FSADM=$enableval
12413fi
8a2fc586 12414
ec6a6fbe
AK
12415{ $as_echo "$as_me:$LINENO: result: $FSADM" >&5
12416$as_echo "$FSADM" >&6; }
8a2fc586 12417
d0191583 12418################################################################################
ec6a6fbe
AK
12419{ $as_echo "$as_me:$LINENO: checking whether to use dmeventd" >&5
12420$as_echo_n "checking whether to use dmeventd... " >&6; }
d0191583
JM
12421# Check whether --enable-dmeventd was given.
12422if test "${enable_dmeventd+set}" = set; then
12423 enableval=$enable_dmeventd; DMEVENTD=$enableval
12424fi
ad6254c5 12425
ec6a6fbe
AK
12426{ $as_echo "$as_me:$LINENO: result: $DMEVENTD" >&5
12427$as_echo "$DMEVENTD" >&6; }
ad6254c5 12428
93bd259b
AK
12429BUILD_DMEVENTD=$DMEVENTD
12430
2a9a80c9
PR
12431if test x$DMEVENTD = xyes; then
12432 if test x$MIRRORS != xinternal; then
ec6a6fbe 12433 { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd currently requires --with-mirrors=internal
2a9a80c9 12434 " >&5
ec6a6fbe 12435$as_echo "$as_me: error: --enable-dmeventd currently requires --with-mirrors=internal
2a9a80c9 12436 " >&2;}
d0191583 12437 { (exit 1); exit 1; }; }
2a9a80c9
PR
12438 fi
12439 if test x$CMDLIB = xno; then
ec6a6fbe 12440 { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd requires --enable-cmdlib to be used as well
2a9a80c9 12441 " >&5
ec6a6fbe 12442$as_echo "$as_me: error: --enable-dmeventd requires --enable-cmdlib to be used as well
2a9a80c9
PR
12443 " >&2;}
12444 { (exit 1); exit 1; }; }
12445 fi
ad6254c5 12446fi
7a197a62 12447
d0191583
JM
12448if test x$DMEVENTD = xyes; then
12449
12450cat >>confdefs.h <<\_ACEOF
12451#define DMEVENTD 1
ad6254c5
AK
12452_ACEOF
12453
ad6254c5 12454fi
93bd259b
AK
12455
12456################################################################################
12457
ec6a6fbe
AK
12458{ $as_echo "$as_me:$LINENO: checking for getline in -lc" >&5
12459$as_echo_n "checking for getline in -lc... " >&6; }
93bd259b 12460if test "${ac_cv_lib_c_getline+set}" = set; then
ec6a6fbe 12461 $as_echo_n "(cached) " >&6
93bd259b
AK
12462else
12463 ac_check_lib_save_LIBS=$LIBS
12464LIBS="-lc $LIBS"
12465cat >conftest.$ac_ext <<_ACEOF
12466/* confdefs.h. */
12467_ACEOF
12468cat confdefs.h >>conftest.$ac_ext
12469cat >>conftest.$ac_ext <<_ACEOF
12470/* end confdefs.h. */
12471
12472/* Override any GCC internal prototype to avoid an error.
12473 Use char because int might match the return type of a GCC
12474 builtin and then its argument prototype would still apply. */
12475#ifdef __cplusplus
12476extern "C"
12477#endif
12478char getline ();
12479int
12480main ()
12481{
12482return getline ();
12483 ;
12484 return 0;
12485}
12486_ACEOF
12487rm -f conftest.$ac_objext conftest$ac_exeext
12488if { (ac_try="$ac_link"
12489case "(($ac_try" in
12490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12491 *) ac_try_echo=$ac_try;;
12492esac
ec6a6fbe
AK
12493eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12494$as_echo "$ac_try_echo") >&5
93bd259b
AK
12495 (eval "$ac_link") 2>conftest.er1
12496 ac_status=$?
12497 grep -v '^ *+' conftest.er1 >conftest.err
12498 rm -f conftest.er1
12499 cat conftest.err >&5
ec6a6fbe 12500 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
93bd259b
AK
12501 (exit $ac_status); } && {
12502 test -z "$ac_c_werror_flag" ||
12503 test ! -s conftest.err
ec6a6fbe
AK
12504 } && test -s conftest$ac_exeext && {
12505 test "$cross_compiling" = yes ||
12506 $as_test_x conftest$ac_exeext
12507 }; then
93bd259b
AK
12508 ac_cv_lib_c_getline=yes
12509else
ec6a6fbe 12510 $as_echo "$as_me: failed program was:" >&5
93bd259b
AK
12511sed 's/^/| /' conftest.$ac_ext >&5
12512
12513 ac_cv_lib_c_getline=no
12514fi
12515
ec6a6fbe 12516rm -rf conftest.dSYM
93bd259b
AK
12517rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12518 conftest$ac_exeext conftest.$ac_ext
12519LIBS=$ac_check_lib_save_LIBS
12520fi
ec6a6fbe
AK
12521{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_getline" >&5
12522$as_echo "$ac_cv_lib_c_getline" >&6; }
12523if test "x$ac_cv_lib_c_getline" = x""yes; then
93bd259b
AK
12524
12525cat >>confdefs.h <<\_ACEOF
12526#define HAVE_GETLINE 1
12527_ACEOF
12528
12529fi
12530
12531
12532################################################################################
12533
ec6a6fbe
AK
12534{ $as_echo "$as_me:$LINENO: checking for canonicalize_file_name in -lc" >&5
12535$as_echo_n "checking for canonicalize_file_name in -lc... " >&6; }
93bd259b 12536if test "${ac_cv_lib_c_canonicalize_file_name+set}" = set; then
ec6a6fbe 12537 $as_echo_n "(cached) " >&6
93bd259b
AK
12538else
12539 ac_check_lib_save_LIBS=$LIBS
12540LIBS="-lc $LIBS"
12541cat >conftest.$ac_ext <<_ACEOF
12542/* confdefs.h. */
12543_ACEOF
12544cat confdefs.h >>conftest.$ac_ext
12545cat >>conftest.$ac_ext <<_ACEOF
12546/* end confdefs.h. */
12547
12548/* Override any GCC internal prototype to avoid an error.
12549 Use char because int might match the return type of a GCC
12550 builtin and then its argument prototype would still apply. */
12551#ifdef __cplusplus
12552extern "C"
12553#endif
12554char canonicalize_file_name ();
12555int
12556main ()
12557{
12558return canonicalize_file_name ();
12559 ;
12560 return 0;
12561}
12562_ACEOF
12563rm -f conftest.$ac_objext conftest$ac_exeext
12564if { (ac_try="$ac_link"
12565case "(($ac_try" in
12566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12567 *) ac_try_echo=$ac_try;;
12568esac
ec6a6fbe
AK
12569eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12570$as_echo "$ac_try_echo") >&5
93bd259b
AK
12571 (eval "$ac_link") 2>conftest.er1
12572 ac_status=$?
12573 grep -v '^ *+' conftest.er1 >conftest.err
12574 rm -f conftest.er1
12575 cat conftest.err >&5
ec6a6fbe 12576 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
93bd259b
AK
12577 (exit $ac_status); } && {
12578 test -z "$ac_c_werror_flag" ||
12579 test ! -s conftest.err
ec6a6fbe
AK
12580 } && test -s conftest$ac_exeext && {
12581 test "$cross_compiling" = yes ||
12582 $as_test_x conftest$ac_exeext
12583 }; then
93bd259b
AK
12584 ac_cv_lib_c_canonicalize_file_name=yes
12585else
ec6a6fbe 12586 $as_echo "$as_me: failed program was:" >&5
93bd259b
AK
12587sed 's/^/| /' conftest.$ac_ext >&5
12588
12589 ac_cv_lib_c_canonicalize_file_name=no
12590fi
12591
ec6a6fbe 12592rm -rf conftest.dSYM
93bd259b
AK
12593rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12594 conftest$ac_exeext conftest.$ac_ext
12595LIBS=$ac_check_lib_save_LIBS
12596fi
ec6a6fbe
AK
12597{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_canonicalize_file_name" >&5
12598$as_echo "$ac_cv_lib_c_canonicalize_file_name" >&6; }
12599if test "x$ac_cv_lib_c_canonicalize_file_name" = x""yes; then
93bd259b
AK
12600
12601cat >>confdefs.h <<\_ACEOF
12602#define HAVE_CANONICALIZE_FILE_NAME 1
12603_ACEOF
12604
12605fi
12606
12607
d0191583
JM
12608################################################################################
12609if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ];
12610 then exec_prefix="";
12611fi;
ad6254c5
AK
12612
12613################################################################################
06e459df 12614if test x$READLINE != xno; then
ec6a6fbe
AK
12615 { $as_echo "$as_me:$LINENO: checking for library containing tgetent" >&5
12616$as_echo_n "checking for library containing tgetent... " >&6; }
ad6254c5 12617if test "${ac_cv_search_tgetent+set}" = set; then
ec6a6fbe 12618 $as_echo_n "(cached) " >&6
ad6254c5
AK
12619else
12620 ac_func_search_save_LIBS=$LIBS
ad6254c5 12621cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
12622/* confdefs.h. */
12623_ACEOF
12624cat confdefs.h >>conftest.$ac_ext
12625cat >>conftest.$ac_ext <<_ACEOF
12626/* end confdefs.h. */
12627
7a197a62
AK
12628/* Override any GCC internal prototype to avoid an error.
12629 Use char because int might match the return type of a GCC
12630 builtin and then its argument prototype would still apply. */
ad6254c5
AK
12631#ifdef __cplusplus
12632extern "C"
12633#endif
ad6254c5
AK
12634char tgetent ();
12635int
12636main ()
12637{
7a197a62 12638return tgetent ();
ad6254c5
AK
12639 ;
12640 return 0;
12641}
12642_ACEOF
18dcfb69 12643for ac_lib in '' tinfo ncurses curses termcap termlib; do
7a197a62
AK
12644 if test -z "$ac_lib"; then
12645 ac_res="none required"
12646 else
12647 ac_res=-l$ac_lib
12648 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12649 fi
12650 rm -f conftest.$ac_objext conftest$ac_exeext
12651if { (ac_try="$ac_link"
12652case "(($ac_try" in
12653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12654 *) ac_try_echo=$ac_try;;
12655esac
ec6a6fbe
AK
12656eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12657$as_echo "$ac_try_echo") >&5
7a197a62 12658 (eval "$ac_link") 2>conftest.er1
ad6254c5 12659 ac_status=$?
8a2fc586
AK
12660 grep -v '^ *+' conftest.er1 >conftest.err
12661 rm -f conftest.er1
12662 cat conftest.err >&5
ec6a6fbe 12663 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
12664 (exit $ac_status); } && {
12665 test -z "$ac_c_werror_flag" ||
12666 test ! -s conftest.err
ec6a6fbe
AK
12667 } && test -s conftest$ac_exeext && {
12668 test "$cross_compiling" = yes ||
12669 $as_test_x conftest$ac_exeext
12670 }; then
7a197a62 12671 ac_cv_search_tgetent=$ac_res
ad6254c5 12672else
ec6a6fbe 12673 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
12674sed 's/^/| /' conftest.$ac_ext >&5
12675
ad6254c5 12676
7a197a62 12677fi
ad6254c5 12678
ec6a6fbe 12679rm -rf conftest.dSYM
25fbec5b 12680rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7a197a62
AK
12681 conftest$ac_exeext
12682 if test "${ac_cv_search_tgetent+set}" = set; then
12683 break
ad6254c5 12684fi
7a197a62
AK
12685done
12686if test "${ac_cv_search_tgetent+set}" = set; then
12687 :
12688else
12689 ac_cv_search_tgetent=no
ad6254c5 12690fi
7a197a62 12691rm conftest.$ac_ext
ad6254c5
AK
12692LIBS=$ac_func_search_save_LIBS
12693fi
ec6a6fbe
AK
12694{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
12695$as_echo "$ac_cv_search_tgetent" >&6; }
7a197a62
AK
12696ac_res=$ac_cv_search_tgetent
12697if test "$ac_res" != no; then
12698 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
06e459df 12699 tg_found=yes
ad6254c5 12700else
06e459df
JM
12701 tg_found=no
12702fi
12703
12704 test x$READLINE:$tg_found = xyes:no &&
ec6a6fbe 12705 { { $as_echo "$as_me:$LINENO: error: termcap could not be found which is required for the
ad6254c5
AK
12706--enable-readline option (which is enabled by default). Either disable readline
12707support with --disable-readline or download and install termcap from:
12708 ftp.gnu.org/gnu/termcap
12709Note: if you are using precompiled packages you will also need the development
12710 package as well (which may be called termcap-devel or something similar).
12711Note: (n)curses also seems to work as a substitute for termcap. This was
12712 not found either - but you could try installing that as well.
12713" >&5
ec6a6fbe 12714$as_echo "$as_me: error: termcap could not be found which is required for the
ad6254c5
AK
12715--enable-readline option (which is enabled by default). Either disable readline
12716support with --disable-readline or download and install termcap from:
12717 ftp.gnu.org/gnu/termcap
12718Note: if you are using precompiled packages you will also need the development
12719 package as well (which may be called termcap-devel or something similar).
12720Note: (n)curses also seems to work as a substitute for termcap. This was
12721 not found either - but you could try installing that as well.
12722" >&2;}
12723 { (exit 1); exit 1; }; }
ad6254c5
AK
12724fi
12725
12726################################################################################
ec6a6fbe
AK
12727{ $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12728$as_echo_n "checking for dlopen in -ldl... " >&6; }
ad6254c5 12729if test "${ac_cv_lib_dl_dlopen+set}" = set; then
ec6a6fbe 12730 $as_echo_n "(cached) " >&6
ad6254c5
AK
12731else
12732 ac_check_lib_save_LIBS=$LIBS
12733LIBS="-ldl $LIBS"
12734cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
12735/* confdefs.h. */
12736_ACEOF
12737cat confdefs.h >>conftest.$ac_ext
12738cat >>conftest.$ac_ext <<_ACEOF
12739/* end confdefs.h. */
12740
7a197a62
AK
12741/* Override any GCC internal prototype to avoid an error.
12742 Use char because int might match the return type of a GCC
12743 builtin and then its argument prototype would still apply. */
ad6254c5
AK
12744#ifdef __cplusplus
12745extern "C"
12746#endif
ad6254c5
AK
12747char dlopen ();
12748int
12749main ()
12750{
7a197a62 12751return dlopen ();
ad6254c5
AK
12752 ;
12753 return 0;
12754}
12755_ACEOF
12756rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
12757if { (ac_try="$ac_link"
12758case "(($ac_try" in
12759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12760 *) ac_try_echo=$ac_try;;
12761esac
ec6a6fbe
AK
12762eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12763$as_echo "$ac_try_echo") >&5
7a197a62 12764 (eval "$ac_link") 2>conftest.er1
ad6254c5 12765 ac_status=$?
8a2fc586
AK
12766 grep -v '^ *+' conftest.er1 >conftest.err
12767 rm -f conftest.er1
12768 cat conftest.err >&5
ec6a6fbe 12769 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
12770 (exit $ac_status); } && {
12771 test -z "$ac_c_werror_flag" ||
12772 test ! -s conftest.err
ec6a6fbe
AK
12773 } && test -s conftest$ac_exeext && {
12774 test "$cross_compiling" = yes ||
12775 $as_test_x conftest$ac_exeext
12776 }; then
ad6254c5
AK
12777 ac_cv_lib_dl_dlopen=yes
12778else
ec6a6fbe 12779 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
12780sed 's/^/| /' conftest.$ac_ext >&5
12781
7a197a62 12782 ac_cv_lib_dl_dlopen=no
ad6254c5 12783fi
7a197a62 12784
ec6a6fbe 12785rm -rf conftest.dSYM
25fbec5b 12786rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 12787 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
12788LIBS=$ac_check_lib_save_LIBS
12789fi
ec6a6fbe
AK
12790{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12791$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12792if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
ad6254c5
AK
12793 HAVE_LIBDL=yes
12794else
12795 HAVE_LIBDL=no
12796fi
12797
12798
7e9e9502 12799if [ "x$HAVE_LIBDL" = xyes ]; then
72b2cb61
AK
12800
12801cat >>confdefs.h <<\_ACEOF
12802#define HAVE_LIBDL 1
12803_ACEOF
12804
ad6254c5
AK
12805 LIBS="-ldl $LIBS"
12806else
12807 HAVE_LIBDL=no
12808fi
12809
12810################################################################################
12811if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \
12812 -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \
12813 \) -a "x$STATIC_LINK" = xyes ];
ec6a6fbe 12814 then { { $as_echo "$as_me:$LINENO: error: Features cannot be 'shared' when building statically
ad6254c5 12815" >&5
ec6a6fbe 12816$as_echo "$as_me: error: Features cannot be 'shared' when building statically
ad6254c5
AK
12817" >&2;}
12818 { (exit 1); exit 1; }; }
12819fi
12820
d0191583 12821################################################################################
ec6a6fbe
AK
12822{ $as_echo "$as_me:$LINENO: checking whether to enable selinux support" >&5
12823$as_echo_n "checking whether to enable selinux support... " >&6; }
d0191583
JM
12824# Check whether --enable-selinux was given.
12825if test "${enable_selinux+set}" = set; then
12826 enableval=$enable_selinux; SELINUX=$enableval
12827fi
12828
ec6a6fbe
AK
12829{ $as_echo "$as_me:$LINENO: result: $SELINUX" >&5
12830$as_echo "$SELINUX" >&6; }
d0191583 12831
ad6254c5
AK
12832################################################################################
12833if test x$SELINUX = xyes; then
ec6a6fbe
AK
12834 { $as_echo "$as_me:$LINENO: checking for sepol_check_context in -lsepol" >&5
12835$as_echo_n "checking for sepol_check_context in -lsepol... " >&6; }
8a2fc586 12836if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then
ec6a6fbe 12837 $as_echo_n "(cached) " >&6
8a2fc586
AK
12838else
12839 ac_check_lib_save_LIBS=$LIBS
12840LIBS="-lsepol $LIBS"
12841cat >conftest.$ac_ext <<_ACEOF
12842/* confdefs.h. */
12843_ACEOF
12844cat confdefs.h >>conftest.$ac_ext
12845cat >>conftest.$ac_ext <<_ACEOF
12846/* end confdefs.h. */
12847
7a197a62
AK
12848/* Override any GCC internal prototype to avoid an error.
12849 Use char because int might match the return type of a GCC
12850 builtin and then its argument prototype would still apply. */
8a2fc586
AK
12851#ifdef __cplusplus
12852extern "C"
12853#endif
8a2fc586
AK
12854char sepol_check_context ();
12855int
12856main ()
12857{
7a197a62 12858return sepol_check_context ();
8a2fc586
AK
12859 ;
12860 return 0;
12861}
12862_ACEOF
12863rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
12864if { (ac_try="$ac_link"
12865case "(($ac_try" in
12866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12867 *) ac_try_echo=$ac_try;;
12868esac
ec6a6fbe
AK
12869eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12870$as_echo "$ac_try_echo") >&5
7a197a62 12871 (eval "$ac_link") 2>conftest.er1
8a2fc586
AK
12872 ac_status=$?
12873 grep -v '^ *+' conftest.er1 >conftest.err
12874 rm -f conftest.er1
12875 cat conftest.err >&5
ec6a6fbe 12876 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
12877 (exit $ac_status); } && {
12878 test -z "$ac_c_werror_flag" ||
12879 test ! -s conftest.err
ec6a6fbe
AK
12880 } && test -s conftest$ac_exeext && {
12881 test "$cross_compiling" = yes ||
12882 $as_test_x conftest$ac_exeext
12883 }; then
8a2fc586
AK
12884 ac_cv_lib_sepol_sepol_check_context=yes
12885else
ec6a6fbe 12886 $as_echo "$as_me: failed program was:" >&5
8a2fc586
AK
12887sed 's/^/| /' conftest.$ac_ext >&5
12888
7a197a62 12889 ac_cv_lib_sepol_sepol_check_context=no
8a2fc586 12890fi
7a197a62 12891
ec6a6fbe 12892rm -rf conftest.dSYM
25fbec5b 12893rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586
AK
12894 conftest$ac_exeext conftest.$ac_ext
12895LIBS=$ac_check_lib_save_LIBS
12896fi
ec6a6fbe
AK
12897{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sepol_sepol_check_context" >&5
12898$as_echo "$ac_cv_lib_sepol_sepol_check_context" >&6; }
12899if test "x$ac_cv_lib_sepol_sepol_check_context" = x""yes; then
8a2fc586
AK
12900 HAVE_SEPOL=yes
12901else
12902 HAVE_SEPOL=no
12903fi
12904
8a2fc586
AK
12905
12906 if test x$HAVE_SEPOL = xyes; then
d0191583
JM
12907
12908cat >>confdefs.h <<\_ACEOF
12909#define HAVE_SEPOL 1
12910_ACEOF
12911
e1b8a236 12912 SELINUX_LIBS="-lsepol $SELINUX_LIBS"
8a2fc586
AK
12913 fi
12914
ec6a6fbe
AK
12915 { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
12916$as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
ad6254c5 12917if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
ec6a6fbe 12918 $as_echo_n "(cached) " >&6
ad6254c5
AK
12919else
12920 ac_check_lib_save_LIBS=$LIBS
12921LIBS="-lselinux $LIBS"
12922cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
12923/* confdefs.h. */
12924_ACEOF
12925cat confdefs.h >>conftest.$ac_ext
12926cat >>conftest.$ac_ext <<_ACEOF
12927/* end confdefs.h. */
12928
7a197a62
AK
12929/* Override any GCC internal prototype to avoid an error.
12930 Use char because int might match the return type of a GCC
12931 builtin and then its argument prototype would still apply. */
ad6254c5
AK
12932#ifdef __cplusplus
12933extern "C"
12934#endif
ad6254c5
AK
12935char is_selinux_enabled ();
12936int
12937main ()
12938{
7a197a62 12939return is_selinux_enabled ();
ad6254c5
AK
12940 ;
12941 return 0;
12942}
12943_ACEOF
12944rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
12945if { (ac_try="$ac_link"
12946case "(($ac_try" in
12947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12948 *) ac_try_echo=$ac_try;;
12949esac
ec6a6fbe
AK
12950eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12951$as_echo "$ac_try_echo") >&5
7a197a62 12952 (eval "$ac_link") 2>conftest.er1
ad6254c5 12953 ac_status=$?
8a2fc586
AK
12954 grep -v '^ *+' conftest.er1 >conftest.err
12955 rm -f conftest.er1
12956 cat conftest.err >&5
ec6a6fbe 12957 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
12958 (exit $ac_status); } && {
12959 test -z "$ac_c_werror_flag" ||
12960 test ! -s conftest.err
ec6a6fbe
AK
12961 } && test -s conftest$ac_exeext && {
12962 test "$cross_compiling" = yes ||
12963 $as_test_x conftest$ac_exeext
12964 }; then
ad6254c5
AK
12965 ac_cv_lib_selinux_is_selinux_enabled=yes
12966else
ec6a6fbe 12967 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
12968sed 's/^/| /' conftest.$ac_ext >&5
12969
7a197a62 12970 ac_cv_lib_selinux_is_selinux_enabled=no
ad6254c5 12971fi
7a197a62 12972
ec6a6fbe 12973rm -rf conftest.dSYM
25fbec5b 12974rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 12975 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
12976LIBS=$ac_check_lib_save_LIBS
12977fi
ec6a6fbe
AK
12978{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
12979$as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
12980if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then
ad6254c5
AK
12981 HAVE_SELINUX=yes
12982else
12983 HAVE_SELINUX=no
12984fi
12985
ad6254c5
AK
12986
12987 if test x$HAVE_SELINUX = xyes; then
72b2cb61
AK
12988
12989cat >>confdefs.h <<\_ACEOF
12990#define HAVE_SELINUX 1
12991_ACEOF
12992
e1b8a236 12993 SELINUX_LIBS="-lselinux $SELINUX_LIBS"
ad6254c5 12994 else
ec6a6fbe
AK
12995 { $as_echo "$as_me:$LINENO: WARNING: Disabling selinux" >&5
12996$as_echo "$as_me: WARNING: Disabling selinux" >&2;}
66e941e8 12997 fi
e1b8a236 12998 LIBS="$SELINUX_LIBS $LIBS"
66e941e8 12999
d0191583 13000 # With --enable-static_link and selinux enabled, linking
66e941e8
JM
13001 # fails on at least Debian unstable due to unsatisfied references
13002 # to pthread_mutex_lock and _unlock. See if we need -lpthread.
13003 if test "$STATIC_LINK-$HAVE_SELINUX" = yes-yes; then
13004 lvm_saved_libs=$LIBS
13005 LIBS="$LIBS -static"
ec6a6fbe
AK
13006 { $as_echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
13007$as_echo_n "checking for library containing pthread_mutex_lock... " >&6; }
66e941e8 13008if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
ec6a6fbe 13009 $as_echo_n "(cached) " >&6
66e941e8
JM
13010else
13011 ac_func_search_save_LIBS=$LIBS
13012cat >conftest.$ac_ext <<_ACEOF
13013/* confdefs.h. */
13014_ACEOF
13015cat confdefs.h >>conftest.$ac_ext
13016cat >>conftest.$ac_ext <<_ACEOF
13017/* end confdefs.h. */
13018
13019/* Override any GCC internal prototype to avoid an error.
13020 Use char because int might match the return type of a GCC
13021 builtin and then its argument prototype would still apply. */
13022#ifdef __cplusplus
13023extern "C"
13024#endif
13025char pthread_mutex_lock ();
13026int
13027main ()
13028{
13029return pthread_mutex_lock ();
13030 ;
13031 return 0;
13032}
13033_ACEOF
13034for ac_lib in '' pthread; do
13035 if test -z "$ac_lib"; then
13036 ac_res="none required"
13037 else
13038 ac_res=-l$ac_lib
13039 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13040 fi
13041 rm -f conftest.$ac_objext conftest$ac_exeext
13042if { (ac_try="$ac_link"
13043case "(($ac_try" in
13044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13045 *) ac_try_echo=$ac_try;;
13046esac
ec6a6fbe
AK
13047eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13048$as_echo "$ac_try_echo") >&5
66e941e8
JM
13049 (eval "$ac_link") 2>conftest.er1
13050 ac_status=$?
13051 grep -v '^ *+' conftest.er1 >conftest.err
13052 rm -f conftest.er1
13053 cat conftest.err >&5
ec6a6fbe 13054 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
13055 (exit $ac_status); } && {
13056 test -z "$ac_c_werror_flag" ||
13057 test ! -s conftest.err
ec6a6fbe
AK
13058 } && test -s conftest$ac_exeext && {
13059 test "$cross_compiling" = yes ||
13060 $as_test_x conftest$ac_exeext
13061 }; then
66e941e8
JM
13062 ac_cv_search_pthread_mutex_lock=$ac_res
13063else
ec6a6fbe 13064 $as_echo "$as_me: failed program was:" >&5
66e941e8
JM
13065sed 's/^/| /' conftest.$ac_ext >&5
13066
13067
13068fi
13069
ec6a6fbe 13070rm -rf conftest.dSYM
25fbec5b 13071rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
66e941e8
JM
13072 conftest$ac_exeext
13073 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13074 break
13075fi
13076done
13077if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13078 :
13079else
13080 ac_cv_search_pthread_mutex_lock=no
13081fi
13082rm conftest.$ac_ext
13083LIBS=$ac_func_search_save_LIBS
13084fi
ec6a6fbe
AK
13085{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13086$as_echo "$ac_cv_search_pthread_mutex_lock" >&6; }
66e941e8
JM
13087ac_res=$ac_cv_search_pthread_mutex_lock
13088if test "$ac_res" != no; then
13089 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13090 test "$ac_cv_search_pthread_mutex_lock" = "none required" ||
13091 LIB_PTHREAD=-lpthread
13092fi
13093
13094 LIBS=$lvm_saved_libs
ad6254c5
AK
13095 fi
13096fi
13097
8b1a3214
AK
13098################################################################################
13099if test x$REALTIME = xyes; then
ec6a6fbe
AK
13100 { $as_echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
13101$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
8b1a3214 13102if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
ec6a6fbe 13103 $as_echo_n "(cached) " >&6
8b1a3214
AK
13104else
13105 ac_check_lib_save_LIBS=$LIBS
13106LIBS="-lrt $LIBS"
13107cat >conftest.$ac_ext <<_ACEOF
13108/* confdefs.h. */
13109_ACEOF
13110cat confdefs.h >>conftest.$ac_ext
13111cat >>conftest.$ac_ext <<_ACEOF
13112/* end confdefs.h. */
13113
7a197a62
AK
13114/* Override any GCC internal prototype to avoid an error.
13115 Use char because int might match the return type of a GCC
13116 builtin and then its argument prototype would still apply. */
8b1a3214
AK
13117#ifdef __cplusplus
13118extern "C"
13119#endif
8b1a3214
AK
13120char clock_gettime ();
13121int
13122main ()
13123{
7a197a62 13124return clock_gettime ();
8b1a3214
AK
13125 ;
13126 return 0;
13127}
13128_ACEOF
13129rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
13130if { (ac_try="$ac_link"
13131case "(($ac_try" in
13132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13133 *) ac_try_echo=$ac_try;;
13134esac
ec6a6fbe
AK
13135eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13136$as_echo "$ac_try_echo") >&5
7a197a62 13137 (eval "$ac_link") 2>conftest.er1
8b1a3214
AK
13138 ac_status=$?
13139 grep -v '^ *+' conftest.er1 >conftest.err
13140 rm -f conftest.er1
13141 cat conftest.err >&5
ec6a6fbe 13142 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
13143 (exit $ac_status); } && {
13144 test -z "$ac_c_werror_flag" ||
13145 test ! -s conftest.err
ec6a6fbe
AK
13146 } && test -s conftest$ac_exeext && {
13147 test "$cross_compiling" = yes ||
13148 $as_test_x conftest$ac_exeext
13149 }; then
8b1a3214
AK
13150 ac_cv_lib_rt_clock_gettime=yes
13151else
ec6a6fbe 13152 $as_echo "$as_me: failed program was:" >&5
8b1a3214
AK
13153sed 's/^/| /' conftest.$ac_ext >&5
13154
7a197a62 13155 ac_cv_lib_rt_clock_gettime=no
8b1a3214 13156fi
7a197a62 13157
ec6a6fbe 13158rm -rf conftest.dSYM
25fbec5b 13159rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8b1a3214
AK
13160 conftest$ac_exeext conftest.$ac_ext
13161LIBS=$ac_check_lib_save_LIBS
13162fi
ec6a6fbe
AK
13163{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
13164$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
13165if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then
8b1a3214
AK
13166 HAVE_REALTIME=yes
13167else
13168 HAVE_REALTIME=no
13169fi
13170
8b1a3214
AK
13171
13172 if test x$HAVE_REALTIME = xyes; then
13173
13174cat >>confdefs.h <<\_ACEOF
13175#define HAVE_REALTIME 1
13176_ACEOF
13177
13178 LIBS="-lrt $LIBS"
13179 else
ec6a6fbe
AK
13180 { $as_echo "$as_me:$LINENO: WARNING: Disabling realtime clock" >&5
13181$as_echo "$as_me: WARNING: Disabling realtime clock" >&2;}
8b1a3214
AK
13182 fi
13183fi
13184
ad6254c5
AK
13185################################################################################
13186
13187for ac_header in getopt.h
13188do
ec6a6fbe 13189as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 13190if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
13191 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13192$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 13193if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 13194 $as_echo_n "(cached) " >&6
ad6254c5 13195fi
ec6a6fbe
AK
13196ac_res=`eval 'as_val=${'$as_ac_Header'}
13197 $as_echo "$as_val"'`
13198 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13199$as_echo "$ac_res" >&6; }
ad6254c5
AK
13200else
13201 # Is the header compilable?
ec6a6fbe
AK
13202{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13203$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 13204cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
13205/* confdefs.h. */
13206_ACEOF
13207cat confdefs.h >>conftest.$ac_ext
13208cat >>conftest.$ac_ext <<_ACEOF
13209/* end confdefs.h. */
13210$ac_includes_default
13211#include <$ac_header>
13212_ACEOF
13213rm -f conftest.$ac_objext
7a197a62
AK
13214if { (ac_try="$ac_compile"
13215case "(($ac_try" in
13216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13217 *) ac_try_echo=$ac_try;;
13218esac
ec6a6fbe
AK
13219eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13220$as_echo "$ac_try_echo") >&5
7a197a62 13221 (eval "$ac_compile") 2>conftest.er1
ad6254c5 13222 ac_status=$?
8a2fc586
AK
13223 grep -v '^ *+' conftest.er1 >conftest.err
13224 rm -f conftest.er1
13225 cat conftest.err >&5
ec6a6fbe 13226 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
13227 (exit $ac_status); } && {
13228 test -z "$ac_c_werror_flag" ||
13229 test ! -s conftest.err
13230 } && test -s conftest.$ac_objext; then
ad6254c5
AK
13231 ac_header_compiler=yes
13232else
ec6a6fbe 13233 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
13234sed 's/^/| /' conftest.$ac_ext >&5
13235
7a197a62 13236 ac_header_compiler=no
ad6254c5 13237fi
7a197a62
AK
13238
13239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
13240{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13241$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
13242
13243# Is the header present?
ec6a6fbe
AK
13244{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13245$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 13246cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
13247/* confdefs.h. */
13248_ACEOF
13249cat confdefs.h >>conftest.$ac_ext
13250cat >>conftest.$ac_ext <<_ACEOF
13251/* end confdefs.h. */
13252#include <$ac_header>
13253_ACEOF
7a197a62
AK
13254if { (ac_try="$ac_cpp conftest.$ac_ext"
13255case "(($ac_try" in
13256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13257 *) ac_try_echo=$ac_try;;
13258esac
ec6a6fbe
AK
13259eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13260$as_echo "$ac_try_echo") >&5
7a197a62 13261 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
13262 ac_status=$?
13263 grep -v '^ *+' conftest.er1 >conftest.err
13264 rm -f conftest.er1
13265 cat conftest.err >&5
ec6a6fbe 13266 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
13267 (exit $ac_status); } >/dev/null && {
13268 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13269 test ! -s conftest.err
13270 }; then
ad6254c5
AK
13271 ac_header_preproc=yes
13272else
ec6a6fbe 13273 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
13274sed 's/^/| /' conftest.$ac_ext >&5
13275
13276 ac_header_preproc=no
13277fi
7a197a62 13278
ad6254c5 13279rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
13280{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13281$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
13282
13283# So? What about this header?
8a2fc586
AK
13284case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13285 yes:no: )
ec6a6fbe
AK
13286 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13287$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13288 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13289$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 13290 ac_header_preproc=yes
ad6254c5 13291 ;;
8a2fc586 13292 no:yes:* )
ec6a6fbe
AK
13293 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13294$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13295 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13296$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13297 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13298$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13299 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13300$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13301 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13302$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13303 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13304$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 13305
ad6254c5
AK
13306 ;;
13307esac
ec6a6fbe
AK
13308{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13309$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 13310if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 13311 $as_echo_n "(cached) " >&6
ad6254c5 13312else
8a2fc586 13313 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 13314fi
ec6a6fbe
AK
13315ac_res=`eval 'as_val=${'$as_ac_Header'}
13316 $as_echo "$as_val"'`
13317 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13318$as_echo "$ac_res" >&6; }
ad6254c5
AK
13319
13320fi
ec6a6fbe
AK
13321as_val=`eval 'as_val=${'$as_ac_Header'}
13322 $as_echo "$as_val"'`
13323 if test "x$as_val" = x""yes; then
ad6254c5 13324 cat >>confdefs.h <<_ACEOF
ec6a6fbe 13325#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 13326_ACEOF
72b2cb61
AK
13327
13328cat >>confdefs.h <<\_ACEOF
13329#define HAVE_GETOPTLONG 1
13330_ACEOF
13331
ad6254c5
AK
13332fi
13333
13334done
13335
13336
13337################################################################################
06e459df 13338if test x$READLINE != xno; then
bc1024f8
JM
13339 rl_found=yes
13340
ec6a6fbe
AK
13341{ $as_echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
13342$as_echo_n "checking for readline in -lreadline... " >&6; }
ad6254c5 13343if test "${ac_cv_lib_readline_readline+set}" = set; then
ec6a6fbe 13344 $as_echo_n "(cached) " >&6
ad6254c5
AK
13345else
13346 ac_check_lib_save_LIBS=$LIBS
13347LIBS="-lreadline $LIBS"
13348cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
13349/* confdefs.h. */
13350_ACEOF
13351cat confdefs.h >>conftest.$ac_ext
13352cat >>conftest.$ac_ext <<_ACEOF
13353/* end confdefs.h. */
13354
7a197a62
AK
13355/* Override any GCC internal prototype to avoid an error.
13356 Use char because int might match the return type of a GCC
13357 builtin and then its argument prototype would still apply. */
ad6254c5
AK
13358#ifdef __cplusplus
13359extern "C"
13360#endif
ad6254c5
AK
13361char readline ();
13362int
13363main ()
13364{
7a197a62 13365return readline ();
ad6254c5
AK
13366 ;
13367 return 0;
13368}
13369_ACEOF
13370rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
13371if { (ac_try="$ac_link"
13372case "(($ac_try" in
13373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13374 *) ac_try_echo=$ac_try;;
13375esac
ec6a6fbe
AK
13376eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13377$as_echo "$ac_try_echo") >&5
7a197a62 13378 (eval "$ac_link") 2>conftest.er1
ad6254c5 13379 ac_status=$?
8a2fc586
AK
13380 grep -v '^ *+' conftest.er1 >conftest.err
13381 rm -f conftest.er1
13382 cat conftest.err >&5
ec6a6fbe 13383 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
13384 (exit $ac_status); } && {
13385 test -z "$ac_c_werror_flag" ||
13386 test ! -s conftest.err
ec6a6fbe
AK
13387 } && test -s conftest$ac_exeext && {
13388 test "$cross_compiling" = yes ||
13389 $as_test_x conftest$ac_exeext
13390 }; then
ad6254c5
AK
13391 ac_cv_lib_readline_readline=yes
13392else
ec6a6fbe 13393 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
13394sed 's/^/| /' conftest.$ac_ext >&5
13395
7a197a62 13396 ac_cv_lib_readline_readline=no
ad6254c5 13397fi
7a197a62 13398
ec6a6fbe 13399rm -rf conftest.dSYM
25fbec5b 13400rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 13401 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
13402LIBS=$ac_check_lib_save_LIBS
13403fi
ec6a6fbe
AK
13404{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
13405$as_echo "$ac_cv_lib_readline_readline" >&6; }
13406if test "x$ac_cv_lib_readline_readline" = x""yes; then
bc1024f8
JM
13407 cat >>confdefs.h <<_ACEOF
13408#define HAVE_LIBREADLINE 1
13409_ACEOF
13410
13411 LIBS="-lreadline $LIBS"
13412
ad6254c5 13413else
06e459df
JM
13414 rl_found=no
13415fi
13416
13417 test x$READLINE:$rl_found = xyes:no &&
ec6a6fbe 13418 { { $as_echo "$as_me:$LINENO: error: GNU Readline could not be found which is required for the
ad6254c5
AK
13419--enable-readline option (which is enabled by default). Either disable readline
13420support with --disable-readline or download and install readline from:
13421 ftp.gnu.org/gnu/readline
13422Note: if you are using precompiled packages you will also need the development
13423package as well (which may be called readline-devel or something similar).
13424" >&5
ec6a6fbe 13425$as_echo "$as_me: error: GNU Readline could not be found which is required for the
ad6254c5
AK
13426--enable-readline option (which is enabled by default). Either disable readline
13427support with --disable-readline or download and install readline from:
13428 ftp.gnu.org/gnu/readline
13429Note: if you are using precompiled packages you will also need the development
13430package as well (which may be called readline-devel or something similar).
13431" >&2;}
13432 { (exit 1); exit 1; }; }
06e459df 13433 if test $rl_found = yes; then
bc1024f8
JM
13434
13435for ac_func in rl_completion_matches
13436do
ec6a6fbe
AK
13437as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13438{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13439$as_echo_n "checking for $ac_func... " >&6; }
bc1024f8 13440if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 13441 $as_echo_n "(cached) " >&6
ad6254c5
AK
13442else
13443 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
13444/* confdefs.h. */
13445_ACEOF
13446cat confdefs.h >>conftest.$ac_ext
13447cat >>conftest.$ac_ext <<_ACEOF
13448/* end confdefs.h. */
bc1024f8 13449/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8a2fc586 13450 For example, HP-UX 11i <limits.h> declares gettimeofday. */
bc1024f8 13451#define $ac_func innocuous_$ac_func
8a2fc586 13452
ad6254c5 13453/* System header to define __stub macros and hopefully few prototypes,
bc1024f8 13454 which can conflict with char $ac_func (); below.
ad6254c5
AK
13455 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13456 <limits.h> exists even on freestanding compilers. */
8a2fc586 13457
ad6254c5
AK
13458#ifdef __STDC__
13459# include <limits.h>
13460#else
13461# include <assert.h>
13462#endif
8a2fc586 13463
bc1024f8 13464#undef $ac_func
8a2fc586 13465
7a197a62
AK
13466/* Override any GCC internal prototype to avoid an error.
13467 Use char because int might match the return type of a GCC
13468 builtin and then its argument prototype would still apply. */
ad6254c5
AK
13469#ifdef __cplusplus
13470extern "C"
ad6254c5 13471#endif
bc1024f8 13472char $ac_func ();
ad6254c5
AK
13473/* The GNU C library defines this for functions which it implements
13474 to always fail with ENOSYS. Some functions are actually named
13475 something starting with __ and the normal name is an alias. */
bc1024f8 13476#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 13477choke me
ad6254c5
AK
13478#endif
13479
13480int
13481main ()
13482{
bc1024f8 13483return $ac_func ();
ad6254c5
AK
13484 ;
13485 return 0;
13486}
13487_ACEOF
13488rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
13489if { (ac_try="$ac_link"
13490case "(($ac_try" in
13491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13492 *) ac_try_echo=$ac_try;;
13493esac
ec6a6fbe
AK
13494eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13495$as_echo "$ac_try_echo") >&5
7a197a62 13496 (eval "$ac_link") 2>conftest.er1
ad6254c5 13497 ac_status=$?
8a2fc586
AK
13498 grep -v '^ *+' conftest.er1 >conftest.err
13499 rm -f conftest.er1
13500 cat conftest.err >&5
ec6a6fbe 13501 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
13502 (exit $ac_status); } && {
13503 test -z "$ac_c_werror_flag" ||
13504 test ! -s conftest.err
ec6a6fbe
AK
13505 } && test -s conftest$ac_exeext && {
13506 test "$cross_compiling" = yes ||
13507 $as_test_x conftest$ac_exeext
13508 }; then
bc1024f8 13509 eval "$as_ac_var=yes"
ad6254c5 13510else
ec6a6fbe 13511 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
13512sed 's/^/| /' conftest.$ac_ext >&5
13513
bc1024f8 13514 eval "$as_ac_var=no"
ad6254c5 13515fi
7a197a62 13516
ec6a6fbe 13517rm -rf conftest.dSYM
25fbec5b 13518rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 13519 conftest$ac_exeext conftest.$ac_ext
ad6254c5 13520fi
ec6a6fbe
AK
13521ac_res=`eval 'as_val=${'$as_ac_var'}
13522 $as_echo "$as_val"'`
13523 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13524$as_echo "$ac_res" >&6; }
13525as_val=`eval 'as_val=${'$as_ac_var'}
13526 $as_echo "$as_val"'`
13527 if test "x$as_val" = x""yes; then
bc1024f8 13528 cat >>confdefs.h <<_ACEOF
ec6a6fbe 13529#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
72b2cb61
AK
13530_ACEOF
13531
13532fi
bc1024f8 13533done
ad6254c5 13534
d179cc7a
JM
13535
13536cat >>confdefs.h <<\_ACEOF
13537#define READLINE_SUPPORT 1
13538_ACEOF
13539
06e459df 13540 fi
ad6254c5
AK
13541fi
13542
13543################################################################################
ec6a6fbe
AK
13544{ $as_echo "$as_me:$LINENO: checking whether to enable internationalisation" >&5
13545$as_echo_n "checking whether to enable internationalisation... " >&6; }
7a197a62 13546# Check whether --enable-nls was given.
ad6254c5 13547if test "${enable_nls+set}" = set; then
7a197a62 13548 enableval=$enable_nls; INTL=$enableval
ad6254c5
AK
13549else
13550 INTL=no
7a197a62
AK
13551fi
13552
ec6a6fbe
AK
13553{ $as_echo "$as_me:$LINENO: result: $INTL" >&5
13554$as_echo "$INTL" >&6; }
ad6254c5
AK
13555
13556if test x$INTL = xyes; then
93bd259b 13557# FIXME - Move this - can be device-mapper too
ad6254c5
AK
13558 INTL_PACKAGE="lvm2"
13559 # Extract the first word of "msgfmt", so it can be a program name with args.
13560set dummy msgfmt; ac_word=$2
ec6a6fbe
AK
13561{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13562$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 13563if test "${ac_cv_path_MSGFMT+set}" = set; then
ec6a6fbe 13564 $as_echo_n "(cached) " >&6
ad6254c5
AK
13565else
13566 case $MSGFMT in
13567 [\\/]* | ?:[\\/]*)
13568 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
13569 ;;
13570 *)
13571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13572for as_dir in $PATH
13573do
13574 IFS=$as_save_IFS
13575 test -z "$as_dir" && as_dir=.
13576 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 13577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 13578 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 13579 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
13580 break 2
13581 fi
13582done
13583done
7a197a62 13584IFS=$as_save_IFS
ad6254c5
AK
13585
13586 ;;
13587esac
13588fi
13589MSGFMT=$ac_cv_path_MSGFMT
ad6254c5 13590if test -n "$MSGFMT"; then
ec6a6fbe
AK
13591 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
13592$as_echo "$MSGFMT" >&6; }
ad6254c5 13593else
ec6a6fbe
AK
13594 { $as_echo "$as_me:$LINENO: result: no" >&5
13595$as_echo "no" >&6; }
ad6254c5
AK
13596fi
13597
7a197a62 13598
ad6254c5 13599 if [ "x$MSGFMT" == x ];
ec6a6fbe 13600 then { { $as_echo "$as_me:$LINENO: error: msgfmt not found in path $PATH
ad6254c5 13601 " >&5
ec6a6fbe 13602$as_echo "$as_me: error: msgfmt not found in path $PATH
ad6254c5
AK
13603 " >&2;}
13604 { (exit 1); exit 1; }; }
13605 fi;
13606
13607
7a197a62 13608# Check whether --with-localedir was given.
ad6254c5 13609if test "${with_localedir+set}" = set; then
7a197a62 13610 withval=$with_localedir; LOCALEDIR="$withval"
ad6254c5
AK
13611else
13612 LOCALEDIR='${prefix}/share/locale'
7a197a62
AK
13613fi
13614
ad6254c5
AK
13615fi
13616
13617################################################################################
13618
7a197a62 13619# Check whether --with-confdir was given.
ad6254c5 13620if test "${with_confdir+set}" = set; then
7a197a62 13621 withval=$with_confdir; CONFDIR="$withval"
ad6254c5
AK
13622else
13623 CONFDIR='/etc'
7a197a62
AK
13624fi
13625
ad6254c5
AK
13626
13627
7a197a62 13628# Check whether --with-staticdir was given.
ad6254c5 13629if test "${with_staticdir+set}" = set; then
7a197a62 13630 withval=$with_staticdir; STATICDIR="$withval"
ad6254c5
AK
13631else
13632 STATICDIR='${exec_prefix}/sbin'
7a197a62 13633fi
ad6254c5 13634
33f732c5 13635
7a197a62 13636
68f2de6d
AK
13637# Check whether --with-usrlibdir was given.
13638if test "${with_usrlibdir+set}" = set; then
13639 withval=$with_usrlibdir; usrlibdir="$withval"
13640else
13641 usrlibdir='${prefix}/lib'
13642fi
13643
13644
13645
13646# Check whether --with-usrsbindir was given.
13647if test "${with_usrsbindir+set}" = set; then
13648 withval=$with_usrsbindir; usrsbindir="$withval"
13649else
13650 usrsbindir='${prefix}/sbin'
13651fi
13652
13653
a5f46f6a
AK
13654################################################################################
13655
13656# Check whether --with-udev_prefix was given.
13657if test "${with_udev_prefix+set}" = set; then
13658 withval=$with_udev_prefix; udev_prefix="$withval"
13659else
13660 udev_prefix='${exec_prefix}'
13661fi
13662
13663
78ce7acc
AK
13664
13665# Check whether --with-udevdir was given.
13666if test "${with_udevdir+set}" = set; then
13667 withval=$with_udevdir; udevdir="$withval"
13668else
13669 udevdir='${udev_prefix}/lib/udev/rules.d'
13670fi
13671
a5f46f6a 13672
ad6254c5
AK
13673################################################################################
13674if test x$READLINE = xyes; then
13675
13676
13677for ac_header in readline/readline.h readline/history.h
13678do
ec6a6fbe 13679as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 13680if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
13681 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13682$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 13683if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 13684 $as_echo_n "(cached) " >&6
ad6254c5 13685fi
ec6a6fbe
AK
13686ac_res=`eval 'as_val=${'$as_ac_Header'}
13687 $as_echo "$as_val"'`
13688 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13689$as_echo "$ac_res" >&6; }
ad6254c5
AK
13690else
13691 # Is the header compilable?
ec6a6fbe
AK
13692{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13693$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 13694cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
13695/* confdefs.h. */
13696_ACEOF
13697cat confdefs.h >>conftest.$ac_ext
13698cat >>conftest.$ac_ext <<_ACEOF
13699/* end confdefs.h. */
13700$ac_includes_default
13701#include <$ac_header>
13702_ACEOF
13703rm -f conftest.$ac_objext
7a197a62
AK
13704if { (ac_try="$ac_compile"
13705case "(($ac_try" in
13706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13707 *) ac_try_echo=$ac_try;;
13708esac
ec6a6fbe
AK
13709eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13710$as_echo "$ac_try_echo") >&5
7a197a62 13711 (eval "$ac_compile") 2>conftest.er1
ad6254c5 13712 ac_status=$?
8a2fc586
AK
13713 grep -v '^ *+' conftest.er1 >conftest.err
13714 rm -f conftest.er1
13715 cat conftest.err >&5
ec6a6fbe 13716 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
13717 (exit $ac_status); } && {
13718 test -z "$ac_c_werror_flag" ||
13719 test ! -s conftest.err
13720 } && test -s conftest.$ac_objext; then
ad6254c5
AK
13721 ac_header_compiler=yes
13722else
ec6a6fbe 13723 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
13724sed 's/^/| /' conftest.$ac_ext >&5
13725
7a197a62 13726 ac_header_compiler=no
ad6254c5 13727fi
7a197a62
AK
13728
13729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
13730{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13731$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
13732
13733# Is the header present?
ec6a6fbe
AK
13734{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13735$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 13736cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
13737/* confdefs.h. */
13738_ACEOF
13739cat confdefs.h >>conftest.$ac_ext
13740cat >>conftest.$ac_ext <<_ACEOF
13741/* end confdefs.h. */
13742#include <$ac_header>
13743_ACEOF
7a197a62
AK
13744if { (ac_try="$ac_cpp conftest.$ac_ext"
13745case "(($ac_try" in
13746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13747 *) ac_try_echo=$ac_try;;
13748esac
ec6a6fbe
AK
13749eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13750$as_echo "$ac_try_echo") >&5
7a197a62 13751 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
13752 ac_status=$?
13753 grep -v '^ *+' conftest.er1 >conftest.err
13754 rm -f conftest.er1
13755 cat conftest.err >&5
ec6a6fbe 13756 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
13757 (exit $ac_status); } >/dev/null && {
13758 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13759 test ! -s conftest.err
13760 }; then
ad6254c5
AK
13761 ac_header_preproc=yes
13762else
ec6a6fbe 13763 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
13764sed 's/^/| /' conftest.$ac_ext >&5
13765
13766 ac_header_preproc=no
13767fi
7a197a62 13768
ad6254c5 13769rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
13770{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13771$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
13772
13773# So? What about this header?
8a2fc586
AK
13774case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13775 yes:no: )
ec6a6fbe
AK
13776 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13777$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13778 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13779$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 13780 ac_header_preproc=yes
ad6254c5 13781 ;;
8a2fc586 13782 no:yes:* )
ec6a6fbe
AK
13783 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13784$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13785 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13786$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13787 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13788$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13789 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13790$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13791 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13792$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13793 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13794$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 13795
ad6254c5
AK
13796 ;;
13797esac
ec6a6fbe
AK
13798{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13799$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 13800if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 13801 $as_echo_n "(cached) " >&6
ad6254c5 13802else
8a2fc586 13803 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 13804fi
ec6a6fbe
AK
13805ac_res=`eval 'as_val=${'$as_ac_Header'}
13806 $as_echo "$as_val"'`
13807 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13808$as_echo "$ac_res" >&6; }
ad6254c5
AK
13809
13810fi
ec6a6fbe
AK
13811as_val=`eval 'as_val=${'$as_ac_Header'}
13812 $as_echo "$as_val"'`
13813 if test "x$as_val" = x""yes; then
ad6254c5 13814 cat >>confdefs.h <<_ACEOF
ec6a6fbe 13815#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
13816_ACEOF
13817
13818else
ec6a6fbe
AK
13819 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
13820$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5
AK
13821 { (exit 1); exit 1; }; }
13822fi
13823
13824done
13825
13826fi
13827
5c7fc7c4 13828if test x$CLVMD != xnone; then
ad6254c5
AK
13829
13830
13831
13832
13833
13834
13835
13836
13837
13838
13839for 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
13840do
ec6a6fbe 13841as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 13842if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
13843 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13844$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 13845if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 13846 $as_echo_n "(cached) " >&6
ad6254c5 13847fi
ec6a6fbe
AK
13848ac_res=`eval 'as_val=${'$as_ac_Header'}
13849 $as_echo "$as_val"'`
13850 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13851$as_echo "$ac_res" >&6; }
ad6254c5
AK
13852else
13853 # Is the header compilable?
ec6a6fbe
AK
13854{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13855$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 13856cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
13857/* confdefs.h. */
13858_ACEOF
13859cat confdefs.h >>conftest.$ac_ext
13860cat >>conftest.$ac_ext <<_ACEOF
13861/* end confdefs.h. */
13862$ac_includes_default
13863#include <$ac_header>
13864_ACEOF
13865rm -f conftest.$ac_objext
7a197a62
AK
13866if { (ac_try="$ac_compile"
13867case "(($ac_try" in
13868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13869 *) ac_try_echo=$ac_try;;
13870esac
ec6a6fbe
AK
13871eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13872$as_echo "$ac_try_echo") >&5
7a197a62 13873 (eval "$ac_compile") 2>conftest.er1
ad6254c5 13874 ac_status=$?
8a2fc586
AK
13875 grep -v '^ *+' conftest.er1 >conftest.err
13876 rm -f conftest.er1
13877 cat conftest.err >&5
ec6a6fbe 13878 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
13879 (exit $ac_status); } && {
13880 test -z "$ac_c_werror_flag" ||
13881 test ! -s conftest.err
13882 } && test -s conftest.$ac_objext; then
ad6254c5
AK
13883 ac_header_compiler=yes
13884else
ec6a6fbe 13885 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
13886sed 's/^/| /' conftest.$ac_ext >&5
13887
7a197a62 13888 ac_header_compiler=no
ad6254c5 13889fi
7a197a62
AK
13890
13891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
13892{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13893$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
13894
13895# Is the header present?
ec6a6fbe
AK
13896{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13897$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 13898cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
13899/* confdefs.h. */
13900_ACEOF
13901cat confdefs.h >>conftest.$ac_ext
13902cat >>conftest.$ac_ext <<_ACEOF
13903/* end confdefs.h. */
13904#include <$ac_header>
13905_ACEOF
7a197a62
AK
13906if { (ac_try="$ac_cpp conftest.$ac_ext"
13907case "(($ac_try" in
13908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13909 *) ac_try_echo=$ac_try;;
13910esac
ec6a6fbe
AK
13911eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13912$as_echo "$ac_try_echo") >&5
7a197a62 13913 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
13914 ac_status=$?
13915 grep -v '^ *+' conftest.er1 >conftest.err
13916 rm -f conftest.er1
13917 cat conftest.err >&5
ec6a6fbe 13918 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
13919 (exit $ac_status); } >/dev/null && {
13920 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13921 test ! -s conftest.err
13922 }; then
ad6254c5
AK
13923 ac_header_preproc=yes
13924else
ec6a6fbe 13925 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
13926sed 's/^/| /' conftest.$ac_ext >&5
13927
13928 ac_header_preproc=no
13929fi
7a197a62 13930
ad6254c5 13931rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
13932{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13933$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
13934
13935# So? What about this header?
8a2fc586
AK
13936case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13937 yes:no: )
ec6a6fbe
AK
13938 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13939$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13940 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13941$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 13942 ac_header_preproc=yes
ad6254c5 13943 ;;
8a2fc586 13944 no:yes:* )
ec6a6fbe
AK
13945 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13946$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13947 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13948$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13949 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13950$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13951 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13952$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13953 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13954$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13955 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13956$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 13957
ad6254c5
AK
13958 ;;
13959esac
ec6a6fbe
AK
13960{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13961$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 13962if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 13963 $as_echo_n "(cached) " >&6
ad6254c5 13964else
8a2fc586 13965 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 13966fi
ec6a6fbe
AK
13967ac_res=`eval 'as_val=${'$as_ac_Header'}
13968 $as_echo "$as_val"'`
13969 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13970$as_echo "$ac_res" >&6; }
ad6254c5
AK
13971
13972fi
ec6a6fbe
AK
13973as_val=`eval 'as_val=${'$as_ac_Header'}
13974 $as_echo "$as_val"'`
13975 if test "x$as_val" = x""yes; then
ad6254c5 13976 cat >>confdefs.h <<_ACEOF
ec6a6fbe 13977#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
13978_ACEOF
13979
13980else
ec6a6fbe
AK
13981 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
13982$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 13983 { (exit 1); exit 1; }; }
795ca3e5
AK
13984fi
13985
ad6254c5
AK
13986done
13987
13988
795ca3e5 13989
8106cdd5 13990
ad6254c5
AK
13991
13992
13993for ac_func in dup2 getmntent memmove select socket
13994do
ec6a6fbe
AK
13995as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13996{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13997$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 13998if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 13999 $as_echo_n "(cached) " >&6
795ca3e5 14000else
ad6254c5 14001 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14002/* confdefs.h. */
14003_ACEOF
14004cat confdefs.h >>conftest.$ac_ext
14005cat >>conftest.$ac_ext <<_ACEOF
14006/* end confdefs.h. */
8a2fc586
AK
14007/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14008 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14009#define $ac_func innocuous_$ac_func
14010
795ca3e5 14011/* System header to define __stub macros and hopefully few prototypes,
ad6254c5
AK
14012 which can conflict with char $ac_func (); below.
14013 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14014 <limits.h> exists even on freestanding compilers. */
8a2fc586 14015
ad6254c5
AK
14016#ifdef __STDC__
14017# include <limits.h>
14018#else
14019# include <assert.h>
14020#endif
8a2fc586
AK
14021
14022#undef $ac_func
14023
7a197a62
AK
14024/* Override any GCC internal prototype to avoid an error.
14025 Use char because int might match the return type of a GCC
14026 builtin and then its argument prototype would still apply. */
ad6254c5
AK
14027#ifdef __cplusplus
14028extern "C"
ad6254c5 14029#endif
ad6254c5 14030char $ac_func ();
795ca3e5
AK
14031/* The GNU C library defines this for functions which it implements
14032 to always fail with ENOSYS. Some functions are actually named
14033 something starting with __ and the normal name is an alias. */
7a197a62 14034#if defined __stub_$ac_func || defined __stub___$ac_func
795ca3e5 14035choke me
795ca3e5
AK
14036#endif
14037
ad6254c5
AK
14038int
14039main ()
14040{
7a197a62 14041return $ac_func ();
ad6254c5
AK
14042 ;
14043 return 0;
14044}
14045_ACEOF
14046rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
14047if { (ac_try="$ac_link"
14048case "(($ac_try" in
14049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14050 *) ac_try_echo=$ac_try;;
14051esac
ec6a6fbe
AK
14052eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14053$as_echo "$ac_try_echo") >&5
7a197a62 14054 (eval "$ac_link") 2>conftest.er1
ad6254c5 14055 ac_status=$?
8a2fc586
AK
14056 grep -v '^ *+' conftest.er1 >conftest.err
14057 rm -f conftest.er1
14058 cat conftest.err >&5
ec6a6fbe 14059 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14060 (exit $ac_status); } && {
14061 test -z "$ac_c_werror_flag" ||
14062 test ! -s conftest.err
ec6a6fbe
AK
14063 } && test -s conftest$ac_exeext && {
14064 test "$cross_compiling" = yes ||
14065 $as_test_x conftest$ac_exeext
14066 }; then
ad6254c5 14067 eval "$as_ac_var=yes"
795ca3e5 14068else
ec6a6fbe 14069 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14070sed 's/^/| /' conftest.$ac_ext >&5
14071
7a197a62 14072 eval "$as_ac_var=no"
80992638 14073fi
7a197a62 14074
ec6a6fbe 14075rm -rf conftest.dSYM
25fbec5b 14076rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 14077 conftest$ac_exeext conftest.$ac_ext
795ca3e5 14078fi
ec6a6fbe
AK
14079ac_res=`eval 'as_val=${'$as_ac_var'}
14080 $as_echo "$as_val"'`
14081 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14082$as_echo "$ac_res" >&6; }
14083as_val=`eval 'as_val=${'$as_ac_var'}
14084 $as_echo "$as_val"'`
14085 if test "x$as_val" = x""yes; then
ad6254c5 14086 cat >>confdefs.h <<_ACEOF
ec6a6fbe 14087#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5 14088_ACEOF
80992638
AK
14089
14090else
ec6a6fbe
AK
14091 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
14092$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 14093 { (exit 1); exit 1; }; }
8106cdd5 14094fi
ad6254c5 14095done
795ca3e5 14096
25fbec5b
AK
14097 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
14098# -lseq on Dynix/PTX, -lgen on Unixware.
ec6a6fbe
AK
14099{ $as_echo "$as_me:$LINENO: checking for library containing getmntent" >&5
14100$as_echo_n "checking for library containing getmntent... " >&6; }
25fbec5b 14101if test "${ac_cv_search_getmntent+set}" = set; then
ec6a6fbe 14102 $as_echo_n "(cached) " >&6
25fbec5b
AK
14103else
14104 ac_func_search_save_LIBS=$LIBS
14105cat >conftest.$ac_ext <<_ACEOF
14106/* confdefs.h. */
14107_ACEOF
14108cat confdefs.h >>conftest.$ac_ext
14109cat >>conftest.$ac_ext <<_ACEOF
14110/* end confdefs.h. */
80992638 14111
7a197a62
AK
14112/* Override any GCC internal prototype to avoid an error.
14113 Use char because int might match the return type of a GCC
ad6254c5 14114 builtin and then its argument prototype would still apply. */
ad6254c5
AK
14115#ifdef __cplusplus
14116extern "C"
14117#endif
25fbec5b 14118char getmntent ();
ad6254c5
AK
14119int
14120main ()
14121{
25fbec5b 14122return getmntent ();
ad6254c5
AK
14123 ;
14124 return 0;
14125}
14126_ACEOF
25fbec5b
AK
14127for ac_lib in '' sun seq gen; do
14128 if test -z "$ac_lib"; then
14129 ac_res="none required"
14130 else
14131 ac_res=-l$ac_lib
14132 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14133 fi
14134 rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
14135if { (ac_try="$ac_link"
14136case "(($ac_try" in
14137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14138 *) ac_try_echo=$ac_try;;
14139esac
ec6a6fbe
AK
14140eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14141$as_echo "$ac_try_echo") >&5
7a197a62 14142 (eval "$ac_link") 2>conftest.er1
ad6254c5 14143 ac_status=$?
8a2fc586
AK
14144 grep -v '^ *+' conftest.er1 >conftest.err
14145 rm -f conftest.er1
14146 cat conftest.err >&5
ec6a6fbe 14147 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14148 (exit $ac_status); } && {
14149 test -z "$ac_c_werror_flag" ||
14150 test ! -s conftest.err
ec6a6fbe
AK
14151 } && test -s conftest$ac_exeext && {
14152 test "$cross_compiling" = yes ||
14153 $as_test_x conftest$ac_exeext
14154 }; then
25fbec5b 14155 ac_cv_search_getmntent=$ac_res
80992638 14156else
ec6a6fbe 14157 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14158sed 's/^/| /' conftest.$ac_ext >&5
14159
25fbec5b 14160
795ca3e5
AK
14161fi
14162
ec6a6fbe 14163rm -rf conftest.dSYM
25fbec5b
AK
14164rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14165 conftest$ac_exeext
14166 if test "${ac_cv_search_getmntent+set}" = set; then
14167 break
795ca3e5 14168fi
25fbec5b
AK
14169done
14170if test "${ac_cv_search_getmntent+set}" = set; then
14171 :
14172else
14173 ac_cv_search_getmntent=no
14174fi
14175rm conftest.$ac_ext
14176LIBS=$ac_func_search_save_LIBS
14177fi
ec6a6fbe
AK
14178{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
14179$as_echo "$ac_cv_search_getmntent" >&6; }
25fbec5b
AK
14180ac_res=$ac_cv_search_getmntent
14181if test "$ac_res" != no; then
14182 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14183 ac_cv_func_getmntent=yes
14184
14185cat >>confdefs.h <<\_ACEOF
9c961554 14186#define HAVE_GETMNTENT 1
ad6254c5 14187_ACEOF
795ca3e5 14188
25fbec5b
AK
14189else
14190 ac_cv_func_getmntent=no
795ca3e5 14191fi
795ca3e5
AK
14192
14193
ad6254c5
AK
14194# AC_FUNC_REALLOC
14195
14196
14197for ac_header in sys/select.h sys/socket.h
14198do
ec6a6fbe 14199as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 14200if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
14201 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14202$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 14203if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 14204 $as_echo_n "(cached) " >&6
ad6254c5 14205fi
ec6a6fbe
AK
14206ac_res=`eval 'as_val=${'$as_ac_Header'}
14207 $as_echo "$as_val"'`
14208 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14209$as_echo "$ac_res" >&6; }
795ca3e5 14210else
ad6254c5 14211 # Is the header compilable?
ec6a6fbe
AK
14212{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14213$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 14214cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14215/* confdefs.h. */
14216_ACEOF
14217cat confdefs.h >>conftest.$ac_ext
14218cat >>conftest.$ac_ext <<_ACEOF
14219/* end confdefs.h. */
14220$ac_includes_default
14221#include <$ac_header>
14222_ACEOF
14223rm -f conftest.$ac_objext
7a197a62
AK
14224if { (ac_try="$ac_compile"
14225case "(($ac_try" in
14226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14227 *) ac_try_echo=$ac_try;;
14228esac
ec6a6fbe
AK
14229eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14230$as_echo "$ac_try_echo") >&5
7a197a62 14231 (eval "$ac_compile") 2>conftest.er1
ad6254c5 14232 ac_status=$?
8a2fc586
AK
14233 grep -v '^ *+' conftest.er1 >conftest.err
14234 rm -f conftest.er1
14235 cat conftest.err >&5
ec6a6fbe 14236 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14237 (exit $ac_status); } && {
14238 test -z "$ac_c_werror_flag" ||
14239 test ! -s conftest.err
14240 } && test -s conftest.$ac_objext; then
ad6254c5 14241 ac_header_compiler=yes
80992638 14242else
ec6a6fbe 14243 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14244sed 's/^/| /' conftest.$ac_ext >&5
14245
7a197a62 14246 ac_header_compiler=no
ad6254c5 14247fi
7a197a62
AK
14248
14249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
14250{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14251$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
14252
14253# Is the header present?
ec6a6fbe
AK
14254{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14255$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 14256cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14257/* confdefs.h. */
14258_ACEOF
14259cat confdefs.h >>conftest.$ac_ext
14260cat >>conftest.$ac_ext <<_ACEOF
14261/* end confdefs.h. */
14262#include <$ac_header>
14263_ACEOF
7a197a62
AK
14264if { (ac_try="$ac_cpp conftest.$ac_ext"
14265case "(($ac_try" in
14266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14267 *) ac_try_echo=$ac_try;;
14268esac
ec6a6fbe
AK
14269eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14270$as_echo "$ac_try_echo") >&5
7a197a62 14271 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
14272 ac_status=$?
14273 grep -v '^ *+' conftest.er1 >conftest.err
14274 rm -f conftest.er1
14275 cat conftest.err >&5
ec6a6fbe 14276 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14277 (exit $ac_status); } >/dev/null && {
14278 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14279 test ! -s conftest.err
14280 }; then
ad6254c5
AK
14281 ac_header_preproc=yes
14282else
ec6a6fbe 14283 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14284sed 's/^/| /' conftest.$ac_ext >&5
14285
14286 ac_header_preproc=no
14287fi
7a197a62 14288
ad6254c5 14289rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
14290{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14291$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
14292
14293# So? What about this header?
8a2fc586
AK
14294case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14295 yes:no: )
ec6a6fbe
AK
14296 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14297$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14298 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14299$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 14300 ac_header_preproc=yes
ad6254c5 14301 ;;
8a2fc586 14302 no:yes:* )
ec6a6fbe
AK
14303 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14304$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14305 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14306$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14307 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14308$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14309 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14310$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14311 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14312$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14313 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14314$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 14315
ad6254c5
AK
14316 ;;
14317esac
ec6a6fbe
AK
14318{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14319$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 14320if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 14321 $as_echo_n "(cached) " >&6
ad6254c5 14322else
8a2fc586 14323 eval "$as_ac_Header=\$ac_header_preproc"
8106cdd5 14324fi
ec6a6fbe
AK
14325ac_res=`eval 'as_val=${'$as_ac_Header'}
14326 $as_echo "$as_val"'`
14327 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14328$as_echo "$ac_res" >&6; }
8106cdd5 14329
795ca3e5 14330fi
ec6a6fbe
AK
14331as_val=`eval 'as_val=${'$as_ac_Header'}
14332 $as_echo "$as_val"'`
14333 if test "x$as_val" = x""yes; then
ad6254c5 14334 cat >>confdefs.h <<_ACEOF
ec6a6fbe 14335#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
14336_ACEOF
14337
795ca3e5
AK
14338fi
14339
ad6254c5
AK
14340done
14341
ec6a6fbe
AK
14342{ $as_echo "$as_me:$LINENO: checking types of arguments for select" >&5
14343$as_echo_n "checking types of arguments for select... " >&6; }
ad6254c5 14344if test "${ac_cv_func_select_args+set}" = set; then
ec6a6fbe 14345 $as_echo_n "(cached) " >&6
26e7f2e0 14346else
ad6254c5 14347 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
7a197a62 14348 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
ad6254c5
AK
14349 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
14350 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14351/* confdefs.h. */
14352_ACEOF
14353cat confdefs.h >>conftest.$ac_ext
14354cat >>conftest.$ac_ext <<_ACEOF
14355/* end confdefs.h. */
14356$ac_includes_default
25fbec5b 14357#ifdef HAVE_SYS_SELECT_H
ad6254c5
AK
14358# include <sys/select.h>
14359#endif
25fbec5b 14360#ifdef HAVE_SYS_SOCKET_H
ad6254c5
AK
14361# include <sys/socket.h>
14362#endif
14363
14364int
14365main ()
14366{
14367extern int select ($ac_arg1,
8a2fc586
AK
14368 $ac_arg234, $ac_arg234, $ac_arg234,
14369 $ac_arg5);
ad6254c5
AK
14370 ;
14371 return 0;
14372}
14373_ACEOF
14374rm -f conftest.$ac_objext
7a197a62
AK
14375if { (ac_try="$ac_compile"
14376case "(($ac_try" in
14377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14378 *) ac_try_echo=$ac_try;;
14379esac
ec6a6fbe
AK
14380eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14381$as_echo "$ac_try_echo") >&5
7a197a62 14382 (eval "$ac_compile") 2>conftest.er1
ad6254c5 14383 ac_status=$?
8a2fc586
AK
14384 grep -v '^ *+' conftest.er1 >conftest.err
14385 rm -f conftest.er1
14386 cat conftest.err >&5
ec6a6fbe 14387 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14388 (exit $ac_status); } && {
14389 test -z "$ac_c_werror_flag" ||
14390 test ! -s conftest.err
14391 } && test -s conftest.$ac_objext; then
ad6254c5
AK
14392 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
14393else
ec6a6fbe 14394 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14395sed 's/^/| /' conftest.$ac_ext >&5
14396
7a197a62 14397
ad6254c5 14398fi
7a197a62
AK
14399
14400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
14401 done
14402 done
14403done
14404# Provide a safe default value.
14405: ${ac_cv_func_select_args='int,int *,struct timeval *'}
14406
26e7f2e0 14407fi
ec6a6fbe
AK
14408{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
14409$as_echo "$ac_cv_func_select_args" >&6; }
ad6254c5
AK
14410ac_save_IFS=$IFS; IFS=','
14411set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
14412IFS=$ac_save_IFS
14413shift
14414
14415cat >>confdefs.h <<_ACEOF
14416#define SELECT_TYPE_ARG1 $1
14417_ACEOF
14418
14419
14420cat >>confdefs.h <<_ACEOF
14421#define SELECT_TYPE_ARG234 ($2)
14422_ACEOF
14423
14424
14425cat >>confdefs.h <<_ACEOF
14426#define SELECT_TYPE_ARG5 ($3)
14427_ACEOF
14428
80992638 14429rm -f conftest*
80992638 14430
8106cdd5 14431fi
ad6254c5 14432
ad6254c5
AK
14433if test x$CLUSTER != xnone; then
14434
14435
14436for ac_header in sys/socket.h sys/un.h
b896caa1 14437do
ec6a6fbe 14438as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 14439if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
14440 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14441$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 14442if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 14443 $as_echo_n "(cached) " >&6
ad6254c5 14444fi
ec6a6fbe
AK
14445ac_res=`eval 'as_val=${'$as_ac_Header'}
14446 $as_echo "$as_val"'`
14447 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14448$as_echo "$ac_res" >&6; }
ad6254c5
AK
14449else
14450 # Is the header compilable?
ec6a6fbe
AK
14451{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14452$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 14453cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14454/* confdefs.h. */
14455_ACEOF
14456cat confdefs.h >>conftest.$ac_ext
14457cat >>conftest.$ac_ext <<_ACEOF
14458/* end confdefs.h. */
14459$ac_includes_default
14460#include <$ac_header>
14461_ACEOF
14462rm -f conftest.$ac_objext
7a197a62
AK
14463if { (ac_try="$ac_compile"
14464case "(($ac_try" in
14465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14466 *) ac_try_echo=$ac_try;;
14467esac
ec6a6fbe
AK
14468eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14469$as_echo "$ac_try_echo") >&5
7a197a62 14470 (eval "$ac_compile") 2>conftest.er1
ad6254c5 14471 ac_status=$?
8a2fc586
AK
14472 grep -v '^ *+' conftest.er1 >conftest.err
14473 rm -f conftest.er1
14474 cat conftest.err >&5
ec6a6fbe 14475 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14476 (exit $ac_status); } && {
14477 test -z "$ac_c_werror_flag" ||
14478 test ! -s conftest.err
14479 } && test -s conftest.$ac_objext; then
ad6254c5
AK
14480 ac_header_compiler=yes
14481else
ec6a6fbe 14482 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14483sed 's/^/| /' conftest.$ac_ext >&5
14484
7a197a62 14485 ac_header_compiler=no
ad6254c5 14486fi
7a197a62
AK
14487
14488rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
14489{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14490$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
14491
14492# Is the header present?
ec6a6fbe
AK
14493{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14494$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 14495cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14496/* confdefs.h. */
14497_ACEOF
14498cat confdefs.h >>conftest.$ac_ext
14499cat >>conftest.$ac_ext <<_ACEOF
14500/* end confdefs.h. */
14501#include <$ac_header>
14502_ACEOF
7a197a62
AK
14503if { (ac_try="$ac_cpp conftest.$ac_ext"
14504case "(($ac_try" in
14505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14506 *) ac_try_echo=$ac_try;;
14507esac
ec6a6fbe
AK
14508eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14509$as_echo "$ac_try_echo") >&5
7a197a62 14510 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
14511 ac_status=$?
14512 grep -v '^ *+' conftest.er1 >conftest.err
14513 rm -f conftest.er1
14514 cat conftest.err >&5
ec6a6fbe 14515 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14516 (exit $ac_status); } >/dev/null && {
14517 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14518 test ! -s conftest.err
14519 }; then
ad6254c5
AK
14520 ac_header_preproc=yes
14521else
ec6a6fbe 14522 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14523sed 's/^/| /' conftest.$ac_ext >&5
14524
14525 ac_header_preproc=no
14526fi
7a197a62 14527
ad6254c5 14528rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
14529{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14530$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
14531
14532# So? What about this header?
8a2fc586
AK
14533case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14534 yes:no: )
ec6a6fbe
AK
14535 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14536$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14537 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14538$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 14539 ac_header_preproc=yes
ad6254c5 14540 ;;
8a2fc586 14541 no:yes:* )
ec6a6fbe
AK
14542 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14543$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14544 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14545$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14546 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14547$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14548 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14549$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14550 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14551$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14552 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14553$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 14554
ad6254c5
AK
14555 ;;
14556esac
ec6a6fbe
AK
14557{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14558$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 14559if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 14560 $as_echo_n "(cached) " >&6
ad6254c5 14561else
8a2fc586 14562 eval "$as_ac_Header=\$ac_header_preproc"
b896caa1 14563fi
ec6a6fbe
AK
14564ac_res=`eval 'as_val=${'$as_ac_Header'}
14565 $as_echo "$as_val"'`
14566 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14567$as_echo "$ac_res" >&6; }
ad6254c5
AK
14568
14569fi
ec6a6fbe
AK
14570as_val=`eval 'as_val=${'$as_ac_Header'}
14571 $as_echo "$as_val"'`
14572 if test "x$as_val" = x""yes; then
ad6254c5 14573 cat >>confdefs.h <<_ACEOF
ec6a6fbe 14574#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
14575_ACEOF
14576
80992638 14577else
ec6a6fbe
AK
14578 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
14579$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 14580 { (exit 1); exit 1; }; }
b896caa1 14581fi
ad6254c5 14582
b896caa1
AK
14583done
14584
14585
ad6254c5
AK
14586for ac_func in socket
14587do
ec6a6fbe
AK
14588as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14589{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14590$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 14591if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 14592 $as_echo_n "(cached) " >&6
795ca3e5 14593else
ad6254c5 14594 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14595/* confdefs.h. */
14596_ACEOF
14597cat confdefs.h >>conftest.$ac_ext
14598cat >>conftest.$ac_ext <<_ACEOF
14599/* end confdefs.h. */
8a2fc586
AK
14600/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14601 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14602#define $ac_func innocuous_$ac_func
14603
ad6254c5
AK
14604/* System header to define __stub macros and hopefully few prototypes,
14605 which can conflict with char $ac_func (); below.
14606 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14607 <limits.h> exists even on freestanding compilers. */
8a2fc586 14608
ad6254c5
AK
14609#ifdef __STDC__
14610# include <limits.h>
14611#else
14612# include <assert.h>
14613#endif
8a2fc586
AK
14614
14615#undef $ac_func
14616
7a197a62
AK
14617/* Override any GCC internal prototype to avoid an error.
14618 Use char because int might match the return type of a GCC
14619 builtin and then its argument prototype would still apply. */
ad6254c5
AK
14620#ifdef __cplusplus
14621extern "C"
ad6254c5 14622#endif
ad6254c5
AK
14623char $ac_func ();
14624/* The GNU C library defines this for functions which it implements
14625 to always fail with ENOSYS. Some functions are actually named
14626 something starting with __ and the normal name is an alias. */
7a197a62 14627#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 14628choke me
ad6254c5
AK
14629#endif
14630
14631int
14632main ()
14633{
7a197a62 14634return $ac_func ();
ad6254c5
AK
14635 ;
14636 return 0;
14637}
14638_ACEOF
14639rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
14640if { (ac_try="$ac_link"
14641case "(($ac_try" in
14642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14643 *) ac_try_echo=$ac_try;;
14644esac
ec6a6fbe
AK
14645eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14646$as_echo "$ac_try_echo") >&5
7a197a62 14647 (eval "$ac_link") 2>conftest.er1
ad6254c5 14648 ac_status=$?
8a2fc586
AK
14649 grep -v '^ *+' conftest.er1 >conftest.err
14650 rm -f conftest.er1
14651 cat conftest.err >&5
ec6a6fbe 14652 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14653 (exit $ac_status); } && {
14654 test -z "$ac_c_werror_flag" ||
14655 test ! -s conftest.err
ec6a6fbe
AK
14656 } && test -s conftest$ac_exeext && {
14657 test "$cross_compiling" = yes ||
14658 $as_test_x conftest$ac_exeext
14659 }; then
ad6254c5
AK
14660 eval "$as_ac_var=yes"
14661else
ec6a6fbe 14662 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14663sed 's/^/| /' conftest.$ac_ext >&5
14664
7a197a62 14665 eval "$as_ac_var=no"
ad6254c5 14666fi
7a197a62 14667
ec6a6fbe 14668rm -rf conftest.dSYM
25fbec5b 14669rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 14670 conftest$ac_exeext conftest.$ac_ext
ad6254c5 14671fi
ec6a6fbe
AK
14672ac_res=`eval 'as_val=${'$as_ac_var'}
14673 $as_echo "$as_val"'`
14674 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14675$as_echo "$ac_res" >&6; }
14676as_val=`eval 'as_val=${'$as_ac_var'}
14677 $as_echo "$as_val"'`
14678 if test "x$as_val" = x""yes; then
ad6254c5 14679 cat >>confdefs.h <<_ACEOF
ec6a6fbe 14680#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
14681_ACEOF
14682
14683else
ec6a6fbe
AK
14684 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
14685$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5
AK
14686 { (exit 1); exit 1; }; }
14687fi
14688done
14689
14690fi
14691
14692if test x$HAVE_LIBDL = xyes; then
14693
14694for ac_header in dlfcn.h
14695do
ec6a6fbe 14696as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 14697if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
14698 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14699$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 14700if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 14701 $as_echo_n "(cached) " >&6
ad6254c5 14702fi
ec6a6fbe
AK
14703ac_res=`eval 'as_val=${'$as_ac_Header'}
14704 $as_echo "$as_val"'`
14705 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14706$as_echo "$ac_res" >&6; }
ad6254c5
AK
14707else
14708 # Is the header compilable?
ec6a6fbe
AK
14709{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14710$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 14711cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14712/* confdefs.h. */
14713_ACEOF
14714cat confdefs.h >>conftest.$ac_ext
14715cat >>conftest.$ac_ext <<_ACEOF
14716/* end confdefs.h. */
14717$ac_includes_default
14718#include <$ac_header>
14719_ACEOF
14720rm -f conftest.$ac_objext
7a197a62
AK
14721if { (ac_try="$ac_compile"
14722case "(($ac_try" in
14723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14724 *) ac_try_echo=$ac_try;;
14725esac
ec6a6fbe
AK
14726eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14727$as_echo "$ac_try_echo") >&5
7a197a62 14728 (eval "$ac_compile") 2>conftest.er1
ad6254c5 14729 ac_status=$?
8a2fc586
AK
14730 grep -v '^ *+' conftest.er1 >conftest.err
14731 rm -f conftest.er1
14732 cat conftest.err >&5
ec6a6fbe 14733 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14734 (exit $ac_status); } && {
14735 test -z "$ac_c_werror_flag" ||
14736 test ! -s conftest.err
14737 } && test -s conftest.$ac_objext; then
ad6254c5
AK
14738 ac_header_compiler=yes
14739else
ec6a6fbe 14740 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14741sed 's/^/| /' conftest.$ac_ext >&5
14742
7a197a62 14743 ac_header_compiler=no
ad6254c5 14744fi
7a197a62
AK
14745
14746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
14747{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14748$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
14749
14750# Is the header present?
ec6a6fbe
AK
14751{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14752$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 14753cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14754/* confdefs.h. */
14755_ACEOF
14756cat confdefs.h >>conftest.$ac_ext
14757cat >>conftest.$ac_ext <<_ACEOF
14758/* end confdefs.h. */
14759#include <$ac_header>
14760_ACEOF
7a197a62
AK
14761if { (ac_try="$ac_cpp conftest.$ac_ext"
14762case "(($ac_try" in
14763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14764 *) ac_try_echo=$ac_try;;
14765esac
ec6a6fbe
AK
14766eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14767$as_echo "$ac_try_echo") >&5
7a197a62 14768 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
14769 ac_status=$?
14770 grep -v '^ *+' conftest.er1 >conftest.err
14771 rm -f conftest.er1
14772 cat conftest.err >&5
ec6a6fbe 14773 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14774 (exit $ac_status); } >/dev/null && {
14775 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14776 test ! -s conftest.err
14777 }; then
ad6254c5
AK
14778 ac_header_preproc=yes
14779else
ec6a6fbe 14780 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14781sed 's/^/| /' conftest.$ac_ext >&5
14782
14783 ac_header_preproc=no
14784fi
7a197a62 14785
ad6254c5 14786rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
14787{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14788$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
14789
14790# So? What about this header?
8a2fc586
AK
14791case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14792 yes:no: )
ec6a6fbe
AK
14793 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14794$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14795 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14796$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 14797 ac_header_preproc=yes
ad6254c5 14798 ;;
8a2fc586 14799 no:yes:* )
ec6a6fbe
AK
14800 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14801$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14802 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14803$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14804 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14805$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14806 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14807$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14808 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14809$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14810 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14811$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 14812
ad6254c5
AK
14813 ;;
14814esac
ec6a6fbe
AK
14815{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14816$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 14817if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 14818 $as_echo_n "(cached) " >&6
ad6254c5 14819else
8a2fc586 14820 eval "$as_ac_Header=\$ac_header_preproc"
795ca3e5 14821fi
ec6a6fbe
AK
14822ac_res=`eval 'as_val=${'$as_ac_Header'}
14823 $as_echo "$as_val"'`
14824 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14825$as_echo "$ac_res" >&6; }
80992638 14826
8106cdd5 14827fi
ec6a6fbe
AK
14828as_val=`eval 'as_val=${'$as_ac_Header'}
14829 $as_echo "$as_val"'`
14830 if test "x$as_val" = x""yes; then
ad6254c5 14831 cat >>confdefs.h <<_ACEOF
ec6a6fbe 14832#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 14833_ACEOF
795ca3e5
AK
14834
14835else
ec6a6fbe
AK
14836 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
14837$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 14838 { (exit 1); exit 1; }; }
795ca3e5
AK
14839fi
14840
ad6254c5 14841done
80992638 14842
ad6254c5 14843fi
80992638 14844
ad6254c5 14845if test x$INTL = xyes; then
83912faa 14846
ad6254c5
AK
14847for ac_header in libintl.h
14848do
ec6a6fbe 14849as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 14850if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
14851 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14852$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 14853if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 14854 $as_echo_n "(cached) " >&6
ad6254c5 14855fi
ec6a6fbe
AK
14856ac_res=`eval 'as_val=${'$as_ac_Header'}
14857 $as_echo "$as_val"'`
14858 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14859$as_echo "$ac_res" >&6; }
83912faa 14860else
ad6254c5 14861 # Is the header compilable?
ec6a6fbe
AK
14862{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14863$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 14864cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14865/* confdefs.h. */
14866_ACEOF
14867cat confdefs.h >>conftest.$ac_ext
14868cat >>conftest.$ac_ext <<_ACEOF
14869/* end confdefs.h. */
14870$ac_includes_default
14871#include <$ac_header>
14872_ACEOF
14873rm -f conftest.$ac_objext
7a197a62
AK
14874if { (ac_try="$ac_compile"
14875case "(($ac_try" in
14876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14877 *) ac_try_echo=$ac_try;;
14878esac
ec6a6fbe
AK
14879eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14880$as_echo "$ac_try_echo") >&5
7a197a62 14881 (eval "$ac_compile") 2>conftest.er1
ad6254c5 14882 ac_status=$?
8a2fc586
AK
14883 grep -v '^ *+' conftest.er1 >conftest.err
14884 rm -f conftest.er1
14885 cat conftest.err >&5
ec6a6fbe 14886 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14887 (exit $ac_status); } && {
14888 test -z "$ac_c_werror_flag" ||
14889 test ! -s conftest.err
14890 } && test -s conftest.$ac_objext; then
ad6254c5
AK
14891 ac_header_compiler=yes
14892else
ec6a6fbe 14893 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14894sed 's/^/| /' conftest.$ac_ext >&5
14895
7a197a62 14896 ac_header_compiler=no
ad6254c5 14897fi
7a197a62
AK
14898
14899rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
14900{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14901$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
14902
14903# Is the header present?
ec6a6fbe
AK
14904{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14905$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 14906cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14907/* confdefs.h. */
14908_ACEOF
14909cat confdefs.h >>conftest.$ac_ext
14910cat >>conftest.$ac_ext <<_ACEOF
14911/* end confdefs.h. */
14912#include <$ac_header>
14913_ACEOF
7a197a62
AK
14914if { (ac_try="$ac_cpp conftest.$ac_ext"
14915case "(($ac_try" in
14916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14917 *) ac_try_echo=$ac_try;;
14918esac
ec6a6fbe
AK
14919eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14920$as_echo "$ac_try_echo") >&5
7a197a62 14921 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
14922 ac_status=$?
14923 grep -v '^ *+' conftest.er1 >conftest.err
14924 rm -f conftest.er1
14925 cat conftest.err >&5
ec6a6fbe 14926 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14927 (exit $ac_status); } >/dev/null && {
14928 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14929 test ! -s conftest.err
14930 }; then
ad6254c5
AK
14931 ac_header_preproc=yes
14932else
ec6a6fbe 14933 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14934sed 's/^/| /' conftest.$ac_ext >&5
14935
14936 ac_header_preproc=no
14937fi
7a197a62 14938
ad6254c5 14939rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
14940{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14941$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
14942
14943# So? What about this header?
8a2fc586
AK
14944case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14945 yes:no: )
ec6a6fbe
AK
14946 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14947$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14948 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14949$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 14950 ac_header_preproc=yes
ad6254c5 14951 ;;
8a2fc586 14952 no:yes:* )
ec6a6fbe
AK
14953 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14954$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14955 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14956$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14957 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14958$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14959 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14960$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14961 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14962$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14963 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14964$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 14965
ad6254c5
AK
14966 ;;
14967esac
ec6a6fbe
AK
14968{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14969$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 14970if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 14971 $as_echo_n "(cached) " >&6
80992638 14972else
8a2fc586 14973 eval "$as_ac_Header=\$ac_header_preproc"
83912faa 14974fi
ec6a6fbe
AK
14975ac_res=`eval 'as_val=${'$as_ac_Header'}
14976 $as_echo "$as_val"'`
14977 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14978$as_echo "$ac_res" >&6; }
83912faa 14979
69792976 14980fi
ec6a6fbe
AK
14981as_val=`eval 'as_val=${'$as_ac_Header'}
14982 $as_echo "$as_val"'`
14983 if test "x$as_val" = x""yes; then
ad6254c5 14984 cat >>confdefs.h <<_ACEOF
ec6a6fbe 14985#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 14986_ACEOF
69792976 14987
69792976 14988else
ec6a6fbe
AK
14989 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
14990$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 14991 { (exit 1); exit 1; }; }
80992638
AK
14992fi
14993
ad6254c5 14994done
69792976 14995
ad6254c5
AK
14996fi
14997
ad6254c5
AK
14998if test x$HAVE_SELINUX = xyes; then
14999
15000for ac_header in selinux/selinux.h
15001do
ec6a6fbe 15002as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 15003if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
15004 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15005$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 15006if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 15007 $as_echo_n "(cached) " >&6
ad6254c5 15008fi
ec6a6fbe
AK
15009ac_res=`eval 'as_val=${'$as_ac_Header'}
15010 $as_echo "$as_val"'`
15011 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15012$as_echo "$ac_res" >&6; }
4a7f3eb2 15013else
ad6254c5 15014 # Is the header compilable?
ec6a6fbe
AK
15015{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15016$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 15017cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
15018/* confdefs.h. */
15019_ACEOF
15020cat confdefs.h >>conftest.$ac_ext
15021cat >>conftest.$ac_ext <<_ACEOF
15022/* end confdefs.h. */
15023$ac_includes_default
15024#include <$ac_header>
15025_ACEOF
15026rm -f conftest.$ac_objext
7a197a62
AK
15027if { (ac_try="$ac_compile"
15028case "(($ac_try" in
15029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15030 *) ac_try_echo=$ac_try;;
15031esac
ec6a6fbe
AK
15032eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15033$as_echo "$ac_try_echo") >&5
7a197a62 15034 (eval "$ac_compile") 2>conftest.er1
ad6254c5 15035 ac_status=$?
8a2fc586
AK
15036 grep -v '^ *+' conftest.er1 >conftest.err
15037 rm -f conftest.er1
15038 cat conftest.err >&5
ec6a6fbe 15039 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
15040 (exit $ac_status); } && {
15041 test -z "$ac_c_werror_flag" ||
15042 test ! -s conftest.err
15043 } && test -s conftest.$ac_objext; then
ad6254c5
AK
15044 ac_header_compiler=yes
15045else
ec6a6fbe 15046 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
15047sed 's/^/| /' conftest.$ac_ext >&5
15048
7a197a62 15049 ac_header_compiler=no
ad6254c5 15050fi
7a197a62
AK
15051
15052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
15053{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15054$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
15055
15056# Is the header present?
ec6a6fbe
AK
15057{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15058$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 15059cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
15060/* confdefs.h. */
15061_ACEOF
15062cat confdefs.h >>conftest.$ac_ext
15063cat >>conftest.$ac_ext <<_ACEOF
15064/* end confdefs.h. */
15065#include <$ac_header>
15066_ACEOF
7a197a62
AK
15067if { (ac_try="$ac_cpp conftest.$ac_ext"
15068case "(($ac_try" in
15069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15070 *) ac_try_echo=$ac_try;;
15071esac
ec6a6fbe
AK
15072eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15073$as_echo "$ac_try_echo") >&5
7a197a62 15074 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
15075 ac_status=$?
15076 grep -v '^ *+' conftest.er1 >conftest.err
15077 rm -f conftest.er1
15078 cat conftest.err >&5
ec6a6fbe 15079 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
15080 (exit $ac_status); } >/dev/null && {
15081 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15082 test ! -s conftest.err
15083 }; then
ad6254c5
AK
15084 ac_header_preproc=yes
15085else
ec6a6fbe 15086 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
15087sed 's/^/| /' conftest.$ac_ext >&5
15088
15089 ac_header_preproc=no
15090fi
7a197a62 15091
ad6254c5 15092rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
15093{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15094$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
15095
15096# So? What about this header?
8a2fc586
AK
15097case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15098 yes:no: )
ec6a6fbe
AK
15099 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15100$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15101 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15102$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 15103 ac_header_preproc=yes
ad6254c5 15104 ;;
8a2fc586 15105 no:yes:* )
ec6a6fbe
AK
15106 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15107$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15108 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15109$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15110 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15111$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15112 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15113$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15114 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15115$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15116 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15117$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 15118
ad6254c5
AK
15119 ;;
15120esac
ec6a6fbe
AK
15121{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15122$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 15123if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 15124 $as_echo_n "(cached) " >&6
ad6254c5 15125else
8a2fc586 15126 eval "$as_ac_Header=\$ac_header_preproc"
80992638 15127fi
ec6a6fbe
AK
15128ac_res=`eval 'as_val=${'$as_ac_Header'}
15129 $as_echo "$as_val"'`
15130 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15131$as_echo "$ac_res" >&6; }
4a7f3eb2 15132
ad6254c5 15133fi
ec6a6fbe
AK
15134as_val=`eval 'as_val=${'$as_ac_Header'}
15135 $as_echo "$as_val"'`
15136 if test "x$as_val" = x""yes; then
ad6254c5 15137 cat >>confdefs.h <<_ACEOF
ec6a6fbe 15138#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 15139_ACEOF
0a62c911 15140
0a62c911 15141else
ec6a6fbe
AK
15142 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
15143$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 15144 { (exit 1); exit 1; }; }
80992638
AK
15145fi
15146
ad6254c5 15147done
0a62c911 15148
ad6254c5 15149fi
0a62c911 15150
a5f46f6a
AK
15151if test x$UDEV_SYNC = xyes; then
15152
15153
15154for ac_header in sys/ipc.h sys/sem.h
15155do
15156as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15157if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15158 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15159$as_echo_n "checking for $ac_header... " >&6; }
15160if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15161 $as_echo_n "(cached) " >&6
15162fi
15163ac_res=`eval 'as_val=${'$as_ac_Header'}
15164 $as_echo "$as_val"'`
15165 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15166$as_echo "$ac_res" >&6; }
15167else
15168 # Is the header compilable?
15169{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15170$as_echo_n "checking $ac_header usability... " >&6; }
15171cat >conftest.$ac_ext <<_ACEOF
15172/* confdefs.h. */
15173_ACEOF
15174cat confdefs.h >>conftest.$ac_ext
15175cat >>conftest.$ac_ext <<_ACEOF
15176/* end confdefs.h. */
15177$ac_includes_default
15178#include <$ac_header>
15179_ACEOF
15180rm -f conftest.$ac_objext
15181if { (ac_try="$ac_compile"
15182case "(($ac_try" in
15183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15184 *) ac_try_echo=$ac_try;;
15185esac
15186eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15187$as_echo "$ac_try_echo") >&5
15188 (eval "$ac_compile") 2>conftest.er1
15189 ac_status=$?
15190 grep -v '^ *+' conftest.er1 >conftest.err
15191 rm -f conftest.er1
15192 cat conftest.err >&5
15193 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15194 (exit $ac_status); } && {
15195 test -z "$ac_c_werror_flag" ||
15196 test ! -s conftest.err
15197 } && test -s conftest.$ac_objext; then
15198 ac_header_compiler=yes
15199else
15200 $as_echo "$as_me: failed program was:" >&5
15201sed 's/^/| /' conftest.$ac_ext >&5
15202
15203 ac_header_compiler=no
15204fi
15205
15206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15207{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15208$as_echo "$ac_header_compiler" >&6; }
15209
15210# Is the header present?
15211{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15212$as_echo_n "checking $ac_header presence... " >&6; }
15213cat >conftest.$ac_ext <<_ACEOF
15214/* confdefs.h. */
15215_ACEOF
15216cat confdefs.h >>conftest.$ac_ext
15217cat >>conftest.$ac_ext <<_ACEOF
15218/* end confdefs.h. */
15219#include <$ac_header>
15220_ACEOF
15221if { (ac_try="$ac_cpp conftest.$ac_ext"
15222case "(($ac_try" in
15223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15224 *) ac_try_echo=$ac_try;;
15225esac
15226eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15227$as_echo "$ac_try_echo") >&5
15228 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15229 ac_status=$?
15230 grep -v '^ *+' conftest.er1 >conftest.err
15231 rm -f conftest.er1
15232 cat conftest.err >&5
15233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15234 (exit $ac_status); } >/dev/null && {
15235 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15236 test ! -s conftest.err
15237 }; then
15238 ac_header_preproc=yes
15239else
15240 $as_echo "$as_me: failed program was:" >&5
15241sed 's/^/| /' conftest.$ac_ext >&5
15242
15243 ac_header_preproc=no
15244fi
15245
15246rm -f conftest.err conftest.$ac_ext
15247{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15248$as_echo "$ac_header_preproc" >&6; }
15249
15250# So? What about this header?
15251case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15252 yes:no: )
15253 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15254$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15255 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15256$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15257 ac_header_preproc=yes
15258 ;;
15259 no:yes:* )
15260 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15261$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15262 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15263$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15264 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15265$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15266 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15267$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15268 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15269$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15270 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15271$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15272
15273 ;;
15274esac
15275{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15276$as_echo_n "checking for $ac_header... " >&6; }
15277if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15278 $as_echo_n "(cached) " >&6
15279else
15280 eval "$as_ac_Header=\$ac_header_preproc"
15281fi
15282ac_res=`eval 'as_val=${'$as_ac_Header'}
15283 $as_echo "$as_val"'`
15284 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15285$as_echo "$ac_res" >&6; }
15286
15287fi
15288as_val=`eval 'as_val=${'$as_ac_Header'}
15289 $as_echo "$as_val"'`
15290 if test "x$as_val" = x""yes; then
15291 cat >>confdefs.h <<_ACEOF
15292#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15293_ACEOF
15294
15295else
15296 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
15297$as_echo "$as_me: error: bailing out" >&2;}
15298 { (exit 1); exit 1; }; }
15299fi
15300
15301done
15302
15303fi
15304
a653923f
AK
15305################################################################################
15306# Extract the first word of "modprobe", so it can be a program name with args.
15307set dummy modprobe; ac_word=$2
ec6a6fbe
AK
15308{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
15309$as_echo_n "checking for $ac_word... " >&6; }
72b2cb61 15310if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then
ec6a6fbe 15311 $as_echo_n "(cached) " >&6
72b2cb61
AK
15312else
15313 case $MODPROBE_CMD in
15314 [\\/]* | ?:[\\/]*)
15315 ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path.
15316 ;;
15317 *)
15318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15319for as_dir in $PATH
15320do
15321 IFS=$as_save_IFS
15322 test -z "$as_dir" && as_dir=.
15323 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 15324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
72b2cb61 15325 ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 15326 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
72b2cb61
AK
15327 break 2
15328 fi
15329done
15330done
7a197a62 15331IFS=$as_save_IFS
72b2cb61
AK
15332
15333 ;;
15334esac
15335fi
15336MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD
72b2cb61 15337if test -n "$MODPROBE_CMD"; then
ec6a6fbe
AK
15338 { $as_echo "$as_me:$LINENO: result: $MODPROBE_CMD" >&5
15339$as_echo "$MODPROBE_CMD" >&6; }
72b2cb61 15340else
ec6a6fbe
AK
15341 { $as_echo "$as_me:$LINENO: result: no" >&5
15342$as_echo "no" >&6; }
72b2cb61
AK
15343fi
15344
a653923f 15345
7a197a62 15346
a653923f 15347if test x$MODPROBE_CMD != x; then
72b2cb61
AK
15348
15349cat >>confdefs.h <<_ACEOF
15350#define MODPROBE_CMD "$MODPROBE_CMD"
15351_ACEOF
15352
a653923f
AK
15353fi
15354
80992638 15355################################################################################
93bd259b
AK
15356
15357
15358if test "$BUILD_DMEVENTD" = yes; then
15359
15360# Check whether --with-dmeventd-pidfile was given.
15361if test "${with_dmeventd_pidfile+set}" = set; then
15362 withval=$with_dmeventd_pidfile; cat >>confdefs.h <<_ACEOF
15363#define DMEVENTD_PIDFILE "$withval"
15364_ACEOF
15365
15366else
15367 cat >>confdefs.h <<_ACEOF
15368#define DMEVENTD_PIDFILE "/var/run/dmeventd.pid"
15369_ACEOF
15370
15371fi
15372
15373fi
15374
15375
15376
15377if test "$BUILD_DMEVENTD" = yes; then
15378 dmeventd_prefix="$exec_prefix"
15379 if test "x$dmeventd_prefix" = "xNONE"; then
15380 dmeventd_prefix="$prefix"
15381 fi
15382 if test "x$dmeventd_prefix" = "xNONE"; then
15383 dmeventd_prefix=""
15384 fi
15385
15386# Check whether --with-dmeventd-path was given.
15387if test "${with_dmeventd_path+set}" = set; then
15388 withval=$with_dmeventd_path; cat >>confdefs.h <<_ACEOF
15389#define DMEVENTD_PATH "$withval"
15390_ACEOF
15391
15392else
15393 cat >>confdefs.h <<_ACEOF
15394#define DMEVENTD_PATH "$dmeventd_prefix/sbin/dmeventd"
15395_ACEOF
15396
15397fi
15398
15399fi
15400
15401################################################################################
ec6a6fbe
AK
15402{ $as_echo "$as_me:$LINENO: checking for kernel interface choice" >&5
15403$as_echo_n "checking for kernel interface choice... " >&6; }
93bd259b
AK
15404
15405# Check whether --with-interface was given.
15406if test "${with_interface+set}" = set; then
15407 withval=$with_interface; interface="$withval"
15408else
15409 interface=ioctl
15410fi
15411
15412if [ "x$interface" != xioctl ];
15413then
ec6a6fbe
AK
15414 { { $as_echo "$as_me:$LINENO: error: --with-interface=ioctl required. fs no longer supported." >&5
15415$as_echo "$as_me: error: --with-interface=ioctl required. fs no longer supported." >&2;}
93bd259b
AK
15416 { (exit 1); exit 1; }; }
15417fi
ec6a6fbe
AK
15418{ $as_echo "$as_me:$LINENO: result: $interface" >&5
15419$as_echo "$interface" >&6; }
93bd259b
AK
15420
15421################################################################################
db8b5af9 15422DM_LIB_VERSION="\"`cat "$srcdir"/VERSION_DM 2>/dev/null || echo Unknown`\""
24bbc4d7
AK
15423
15424cat >>confdefs.h <<_ACEOF
15425#define DM_LIB_VERSION $DM_LIB_VERSION
15426_ACEOF
15427
15428
db8b5af9 15429DM_LIB_PATCHLEVEL=`cat "$srcdir"/VERSION_DM | $AWK -F '[-. ]' '{printf "%s.%s.%s",$1,$2,$3}'`
7e3fe830 15430
db8b5af9 15431LVM_VERSION="\"`cat "$srcdir"/VERSION 2>/dev/null || echo Unknown`\""
fae0c576 15432
db8b5af9 15433VER=`cat "$srcdir"/VERSION`
bf456146 15434LVM_RELEASE_DATE="\"`echo $VER | $SED 's/.* (//;s/).*//'`\""
ec6a6fbe
AK
15435VER=`echo "$VER" | $AWK '{print $1}'`
15436LVM_RELEASE="\"`echo "$VER" | $AWK -F '-' '{print $2}'`\""
15437VER=`echo "$VER" | $AWK -F '-' '{print $1}'`
15438LVM_MAJOR=`echo "$VER" | $AWK -F '.' '{print $1}'`
15439LVM_MINOR=`echo "$VER" | $AWK -F '.' '{print $2}'`
bf456146
AK
15440LVM_PATCHLEVEL=`echo "$VER" | $AWK -F '[(.]' '{print $3}'`
15441LVM_LIBAPI=`echo "$VER" | $AWK -F '[()]' '{print $2}'`
ec6a6fbe 15442
80992638 15443################################################################################
fae0c576 15444
83912faa 15445
795ca3e5
AK
15446
15447
15448
15449
15450
15451
5a52dca9 15452
8ef2b021 15453
199e490e 15454
69792976
AK
15455
15456
15457
d0191583 15458
69792976 15459
8106cdd5
AK
15460
15461
15462
15463
15464
d68a82ec 15465
036f273a 15466
7d1552c9 15467
8106cdd5 15468
0a62c911 15469
8106cdd5 15470
4a7f3eb2 15471
4922197a
AK
15472
15473
d8ac0fbc 15474
1a9ea74d 15475
8a2fc586
AK
15476
15477
d0191583 15478
93bd259b
AK
15479
15480
15481
15482
15483
d0191583
JM
15484
15485
15486
15487
15488
8a2fc586 15489
8ce0cbda 15490
8b1a3214 15491
ec6a6fbe
AK
15492
15493
15494
15495
e2997b73
AK
15496
15497
15498
15499
15500
15501
a946372e
AK
15502
15503
15504
15505
15506
15507
15508
15509
15510
15511
15512
ec6a6fbe 15513
33f732c5 15514
66e941e8 15515
d3c8211f 15516
7e3fe830 15517
a5f46f6a
AK
15518
15519
15520
572fefeb 15521
90c80887
AK
15522
15523
bf456146 15524
e1b8a236 15525
68f2de6d
AK
15526
15527
80992638 15528################################################################################
db8b5af9 15529ac_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/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/lvm2_monitoring_init_red_hat scripts/Makefile test/Makefile test/api/Makefile tools/Makefile udev/Makefile"
7a197a62 15530
ad6254c5 15531cat >confcache <<\_ACEOF
795ca3e5
AK
15532# This file is a shell script that caches the results of configure
15533# tests run on this system so they can be shared between configure
ad6254c5
AK
15534# scripts and configure runs, see configure's option --config-cache.
15535# It is not useful on other systems. If it contains results you don't
15536# want to keep, you may remove or edit it.
795ca3e5 15537#
ad6254c5
AK
15538# config.status only pays attention to the cache file if you give it
15539# the --recheck option to rerun configure.
795ca3e5 15540#
ad6254c5
AK
15541# `ac_cv_env_foo' variables (set or unset) will be overridden when
15542# loading this file, other *unset* `ac_cv_foo' will be assigned the
15543# following values.
15544
15545_ACEOF
15546
795ca3e5
AK
15547# The following way of writing the cache mishandles newlines in values,
15548# but we know of no workaround that is simple, portable, and efficient.
7a197a62 15549# So, we kill variables containing newlines.
795ca3e5
AK
15550# Ultrix sh set writes to stderr and can't be redirected directly,
15551# and sets the high bit in the cache file unless we assign to the vars.
7a197a62
AK
15552(
15553 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15554 eval ac_val=\$$ac_var
15555 case $ac_val in #(
15556 *${as_nl}*)
15557 case $ac_var in #(
ec6a6fbe
AK
15558 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
15559$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7a197a62
AK
15560 esac
15561 case $ac_var in #(
15562 _ | IFS | as_nl) ;; #(
ec6a6fbe 15563 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7a197a62
AK
15564 *) $as_unset $ac_var ;;
15565 esac ;;
15566 esac
15567 done
15568
ad6254c5 15569 (set) 2>&1 |
7a197a62
AK
15570 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15571 *${as_nl}ac_space=\ *)
ad6254c5
AK
15572 # `set' does not quote correctly, so add quotes (double-quote
15573 # substitution turns \\\\ into \\, and sed turns \\ into \).
15574 sed -n \
8a2fc586
AK
15575 "s/'/'\\\\''/g;
15576 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7a197a62 15577 ;; #(
ad6254c5
AK
15578 *)
15579 # `set' quotes correctly as required by POSIX, so do not add quotes.
7a197a62 15580 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
ad6254c5 15581 ;;
7a197a62
AK
15582 esac |
15583 sort
15584) |
ad6254c5 15585 sed '
7a197a62 15586 /^ac_cv_env_/b end
ad6254c5 15587 t clear
7a197a62 15588 :clear
ad6254c5
AK
15589 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15590 t end
7a197a62
AK
15591 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15592 :end' >>confcache
15593if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15594 if test -w "$cache_file"; then
15595 test "x$cache_file" != "x/dev/null" &&
ec6a6fbe
AK
15596 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
15597$as_echo "$as_me: updating cache $cache_file" >&6;}
ad6254c5 15598 cat confcache >$cache_file
795ca3e5 15599 else
ec6a6fbe
AK
15600 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
15601$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
795ca3e5
AK
15602 fi
15603fi
15604rm -f confcache
15605
795ca3e5
AK
15606test "x$prefix" = xNONE && prefix=$ac_default_prefix
15607# Let make expand exec_prefix.
15608test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15609
72b2cb61 15610DEFS=-DHAVE_CONFIG_H
ad6254c5
AK
15611
15612ac_libobjs=
15613ac_ltlibobjs=
15614for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15615 # 1. Remove the extension, and $U if already installed.
7a197a62 15616 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
ec6a6fbe 15617 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7a197a62
AK
15618 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15619 # will be set to the directory where LIBOBJS objects are built.
15620 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15621 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
ad6254c5
AK
15622done
15623LIBOBJS=$ac_libobjs
80992638 15624
ad6254c5
AK
15625LTLIBOBJS=$ac_ltlibobjs
15626
15627
15628
15629: ${CONFIG_STATUS=./config.status}
ec6a6fbe 15630ac_write_fail=0
ad6254c5
AK
15631ac_clean_files_save=$ac_clean_files
15632ac_clean_files="$ac_clean_files $CONFIG_STATUS"
ec6a6fbe
AK
15633{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15634$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15635cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5
AK
15636#! $SHELL
15637# Generated by $as_me.
795ca3e5 15638# Run this file to recreate the current configuration.
795ca3e5 15639# Compiler output produced by configure, useful for debugging
ad6254c5
AK
15640# configure, is in config.log if it exists.
15641
15642debug=false
15643ac_cs_recheck=false
15644ac_cs_silent=false
15645SHELL=\${CONFIG_SHELL-$SHELL}
15646_ACEOF
15647
ec6a6fbe 15648cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ad6254c5
AK
15649## --------------------- ##
15650## M4sh Initialization. ##
15651## --------------------- ##
15652
25fbec5b
AK
15653# Be more Bourne compatible
15654DUALCASE=1; export DUALCASE # for MKS sh
ad6254c5
AK
15655if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15656 emulate sh
15657 NULLCMD=:
ec6a6fbe 15658 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
ad6254c5
AK
15659 # is contrary to our usage. Disable this feature.
15660 alias -g '${1+"$@"}'='"$@"'
7a197a62
AK
15661 setopt NO_GLOB_SUBST
15662else
25fbec5b
AK
15663 case `(set -o) 2>/dev/null` in
15664 *posix*) set -o posix ;;
15665esac
15666
7a197a62 15667fi
25fbec5b
AK
15668
15669
7a197a62
AK
15670
15671
15672# PATH needs CR
15673# Avoid depending upon Character Ranges.
15674as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15675as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15676as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15677as_cr_digits='0123456789'
15678as_cr_alnum=$as_cr_Letters$as_cr_digits
15679
ec6a6fbe
AK
15680as_nl='
15681'
15682export as_nl
15683# Printing a long string crashes Solaris 7 /usr/bin/printf.
15684as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15685as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15686as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15687if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15688 as_echo='printf %s\n'
15689 as_echo_n='printf %s'
15690else
15691 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15692 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15693 as_echo_n='/usr/ucb/echo -n'
68f2de6d 15694 else
ec6a6fbe
AK
15695 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15696 as_echo_n_body='eval
15697 arg=$1;
15698 case $arg in
15699 *"$as_nl"*)
15700 expr "X$arg" : "X\\(.*\\)$as_nl";
15701 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15702 esac;
15703 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15704 '
15705 export as_echo_n_body
15706 as_echo_n='sh -c $as_echo_n_body as_echo'
68f2de6d 15707 fi
ec6a6fbe
AK
15708 export as_echo_body
15709 as_echo='sh -c $as_echo_body as_echo'
15710fi
15711
15712# The user is always right.
15713if test "${PATH_SEPARATOR+set}" != set; then
15714 PATH_SEPARATOR=:
15715 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15716 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15717 PATH_SEPARATOR=';'
15718 }
ad6254c5
AK
15719fi
15720
15721# Support unset when possible.
8a2fc586 15722if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
ad6254c5
AK
15723 as_unset=unset
15724else
15725 as_unset=false
15726fi
8106cdd5 15727
ad6254c5 15728
7a197a62
AK
15729# IFS
15730# We need space, tab and new line, in precisely that order. Quoting is
15731# there to prevent editors from complaining about space-tab.
15732# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15733# splitting by setting IFS to empty value.)
7a197a62
AK
15734IFS=" "" $as_nl"
15735
15736# Find who we are. Look in the path if we contain no directory separator.
15737case $0 in
15738 *[\\/]* ) as_myself=$0 ;;
15739 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15740for as_dir in $PATH
15741do
15742 IFS=$as_save_IFS
15743 test -z "$as_dir" && as_dir=.
15744 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15745done
15746IFS=$as_save_IFS
15747
15748 ;;
15749esac
15750# We did not find ourselves, most probably we were run as `sh COMMAND'
15751# in which case we are not to be found in the path.
15752if test "x$as_myself" = x; then
15753 as_myself=$0
15754fi
15755if test ! -f "$as_myself"; then
ec6a6fbe 15756 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7a197a62
AK
15757 { (exit 1); exit 1; }
15758fi
15759
ad6254c5 15760# Work around bugs in pre-3.0 UWIN ksh.
7a197a62
AK
15761for as_var in ENV MAIL MAILPATH
15762do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15763done
ad6254c5
AK
15764PS1='$ '
15765PS2='> '
15766PS4='+ '
15767
15768# NLS nuisances.
ec6a6fbe
AK
15769LC_ALL=C
15770export LC_ALL
15771LANGUAGE=C
15772export LANGUAGE
8106cdd5 15773
ad6254c5 15774# Required to use basename.
7a197a62
AK
15775if expr a : '\(a\)' >/dev/null 2>&1 &&
15776 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
15777 as_expr=expr
15778else
15779 as_expr=false
15780fi
8106cdd5 15781
7a197a62 15782if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
ad6254c5
AK
15783 as_basename=basename
15784else
15785 as_basename=false
15786fi
15787
15788
15789# Name of the executable.
7a197a62 15790as_me=`$as_basename -- "$0" ||
ad6254c5
AK
15791$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15792 X"$0" : 'X\(//\)$' \| \
7a197a62 15793 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 15794$as_echo X/"$0" |
7a197a62
AK
15795 sed '/^.*\/\([^/][^/]*\)\/*$/{
15796 s//\1/
15797 q
15798 }
15799 /^X\/\(\/\/\)$/{
15800 s//\1/
15801 q
15802 }
15803 /^X\/\(\/\).*/{
15804 s//\1/
15805 q
15806 }
15807 s/.*/./; q'`
ad6254c5 15808
7a197a62
AK
15809# CDPATH.
15810$as_unset CDPATH
ad6254c5
AK
15811
15812
ad6254c5 15813
ad6254c5
AK
15814 as_lineno_1=$LINENO
15815 as_lineno_2=$LINENO
ad6254c5 15816 test "x$as_lineno_1" != "x$as_lineno_2" &&
7a197a62 15817 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
795ca3e5 15818
ad6254c5
AK
15819 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15820 # uniformly replaced by the line number. The first 'sed' inserts a
7a197a62
AK
15821 # line-number line after each line using $LINENO; the second 'sed'
15822 # does the real work. The second script uses 'N' to pair each
15823 # line-number line with the line containing $LINENO, and appends
15824 # trailing '-' during substitution so that $LINENO is not a special
15825 # case at line end.
ad6254c5 15826 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7a197a62
AK
15827 # scripts with optimization help from Paolo Bonzini. Blame Lee
15828 # E. McMahon (1931-1989) for sed's syntax. :-)
15829 sed -n '
15830 p
15831 /[$]LINENO/=
15832 ' <$as_myself |
ad6254c5 15833 sed '
7a197a62
AK
15834 s/[$]LINENO.*/&-/
15835 t lineno
15836 b
15837 :lineno
ad6254c5 15838 N
7a197a62
AK
15839 :loop
15840 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
ad6254c5 15841 t loop
7a197a62 15842 s/-\n.*//
ad6254c5 15843 ' >$as_me.lineno &&
7a197a62 15844 chmod +x "$as_me.lineno" ||
ec6a6fbe 15845 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
ad6254c5
AK
15846 { (exit 1); exit 1; }; }
15847
15848 # Don't try to exec as it changes $[0], causing all sort of problems
15849 # (the dirname of $[0] is not the place where we might find the
7a197a62
AK
15850 # original and so on. Autoconf is especially sensitive to this).
15851 . "./$as_me.lineno"
ad6254c5
AK
15852 # Exit status is that of the last command.
15853 exit
15854}
15855
15856
7a197a62
AK
15857if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15858 as_dirname=dirname
15859else
15860 as_dirname=false
15861fi
15862
15863ECHO_C= ECHO_N= ECHO_T=
15864case `echo -n x` in
15865-n*)
15866 case `echo 'x\c'` in
15867 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15868 *) ECHO_C='\c';;
15869 esac;;
15870*)
15871 ECHO_N='-n';;
ad6254c5 15872esac
7a197a62
AK
15873if expr a : '\(a\)' >/dev/null 2>&1 &&
15874 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
15875 as_expr=expr
15876else
15877 as_expr=false
15878fi
80992638 15879
ad6254c5 15880rm -f conf$$ conf$$.exe conf$$.file
7a197a62
AK
15881if test -d conf$$.dir; then
15882 rm -f conf$$.dir/conf$$.file
15883else
15884 rm -f conf$$.dir
ec6a6fbe
AK
15885 mkdir conf$$.dir 2>/dev/null
15886fi
15887if (echo >conf$$.file) 2>/dev/null; then
15888 if ln -s conf$$.file conf$$ 2>/dev/null; then
15889 as_ln_s='ln -s'
15890 # ... but there are two gotchas:
15891 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15892 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15893 # In both cases, we have to default to `cp -p'.
15894 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15895 as_ln_s='cp -p'
15896 elif ln conf$$.file conf$$ 2>/dev/null; then
15897 as_ln_s=ln
15898 else
ad6254c5 15899 as_ln_s='cp -p'
ec6a6fbe 15900 fi
ad6254c5
AK
15901else
15902 as_ln_s='cp -p'
15903fi
7a197a62
AK
15904rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15905rmdir conf$$.dir 2>/dev/null
8106cdd5 15906
ad6254c5
AK
15907if mkdir -p . 2>/dev/null; then
15908 as_mkdir_p=:
15909else
8a2fc586 15910 test -d ./-p && rmdir ./-p
ad6254c5
AK
15911 as_mkdir_p=false
15912fi
15913
25fbec5b
AK
15914if test -x / >/dev/null 2>&1; then
15915 as_test_x='test -x'
7a197a62 15916else
25fbec5b
AK
15917 if ls -dL / >/dev/null 2>&1; then
15918 as_ls_L_option=L
15919 else
15920 as_ls_L_option=
15921 fi
15922 as_test_x='
15923 eval sh -c '\''
15924 if test -d "$1"; then
ec6a6fbe 15925 test -d "$1/.";
25fbec5b
AK
15926 else
15927 case $1 in
ec6a6fbe 15928 -*)set "./$1";;
25fbec5b
AK
15929 esac;
15930 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
15931 ???[sx]*):;;*)false;;esac;fi
15932 '\'' sh
15933 '
7a197a62 15934fi
25fbec5b 15935as_executable_p=$as_test_x
ad6254c5
AK
15936
15937# Sed expression to map a string onto a valid CPP name.
8a2fc586 15938as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
15939
15940# Sed expression to map a string onto a valid variable name.
8a2fc586 15941as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
15942
15943
ad6254c5
AK
15944exec 6>&1
15945
7a197a62 15946# Save the log message, to keep $[0] and so on meaningful, and to
ad6254c5 15947# report actual input values of CONFIG_FILES etc. instead of their
7a197a62
AK
15948# values after options handling.
15949ac_log="
ad6254c5 15950This file was extended by $as_me, which was
ec6a6fbe 15951generated by GNU Autoconf 2.63. Invocation command line was
ad6254c5
AK
15952
15953 CONFIG_FILES = $CONFIG_FILES
15954 CONFIG_HEADERS = $CONFIG_HEADERS
15955 CONFIG_LINKS = $CONFIG_LINKS
15956 CONFIG_COMMANDS = $CONFIG_COMMANDS
15957 $ $0 $@
15958
7a197a62
AK
15959on `(hostname || uname -n) 2>/dev/null | sed 1q`
15960"
15961
ad6254c5
AK
15962_ACEOF
15963
ec6a6fbe
AK
15964case $ac_config_files in *"
15965"*) set x $ac_config_files; shift; ac_config_files=$*;;
15966esac
15967
15968case $ac_config_headers in *"
15969"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15970esac
15971
15972
15973cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5 15974# Files that config.status was made for.
68f2de6d
AK
15975config_files="$ac_config_files"
15976config_headers="$ac_config_headers"
ad6254c5 15977
7a197a62 15978_ACEOF
ad6254c5 15979
ec6a6fbe 15980cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ad6254c5
AK
15981ac_cs_usage="\
15982\`$as_me' instantiates files from templates according to the
15983current configuration.
15984
ec6a6fbe 15985Usage: $0 [OPTION]... [FILE]...
ad6254c5
AK
15986
15987 -h, --help print this help, then exit
25fbec5b 15988 -V, --version print version number and configuration settings, then exit
ec6a6fbe
AK
15989 -q, --quiet, --silent
15990 do not print progress messages
ad6254c5
AK
15991 -d, --debug don't remove temporary files
15992 --recheck update $as_me by reconfiguring in the same conditions
ec6a6fbe
AK
15993 --file=FILE[:TEMPLATE]
15994 instantiate the configuration file FILE
15995 --header=FILE[:TEMPLATE]
15996 instantiate the configuration header FILE
ad6254c5
AK
15997
15998Configuration files:
15999$config_files
16000
72b2cb61
AK
16001Configuration headers:
16002$config_headers
16003
ad6254c5 16004Report bugs to <bug-autoconf@gnu.org>."
ad6254c5 16005
7a197a62 16006_ACEOF
ec6a6fbe 16007cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5
AK
16008ac_cs_version="\\
16009config.status
ec6a6fbe
AK
16010configured by $0, generated by GNU Autoconf 2.63,
16011 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
ad6254c5 16012
ec6a6fbe 16013Copyright (C) 2008 Free Software Foundation, Inc.
ad6254c5
AK
16014This config.status script is free software; the Free Software Foundation
16015gives unlimited permission to copy, distribute and modify it."
7a197a62
AK
16016
16017ac_pwd='$ac_pwd'
16018srcdir='$srcdir'
16019INSTALL='$INSTALL'
fddafd51 16020MKDIR_P='$MKDIR_P'
ec6a6fbe
AK
16021AWK='$AWK'
16022test -n "\$AWK" || AWK=awk
ad6254c5
AK
16023_ACEOF
16024
ec6a6fbe
AK
16025cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16026# The default lists apply if the user does not specify any file.
ad6254c5
AK
16027ac_need_defaults=:
16028while test $# != 0
16029do
16030 case $1 in
16031 --*=*)
7a197a62
AK
16032 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16033 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
ad6254c5
AK
16034 ac_shift=:
16035 ;;
7a197a62 16036 *)
ad6254c5
AK
16037 ac_option=$1
16038 ac_optarg=$2
16039 ac_shift=shift
16040 ;;
ad6254c5
AK
16041 esac
16042
16043 case $ac_option in
16044 # Handling of the options.
ad6254c5
AK
16045 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16046 ac_cs_recheck=: ;;
7a197a62 16047 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
ec6a6fbe 16048 $as_echo "$ac_cs_version"; exit ;;
7a197a62 16049 --debug | --debu | --deb | --de | --d | -d )
ad6254c5
AK
16050 debug=: ;;
16051 --file | --fil | --fi | --f )
16052 $ac_shift
ec6a6fbe
AK
16053 case $ac_optarg in
16054 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16055 esac
16056 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
ad6254c5
AK
16057 ac_need_defaults=false;;
16058 --header | --heade | --head | --hea )
16059 $ac_shift
ec6a6fbe
AK
16060 case $ac_optarg in
16061 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16062 esac
16063 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
ad6254c5 16064 ac_need_defaults=false;;
7a197a62
AK
16065 --he | --h)
16066 # Conflict between --help and --header
ec6a6fbe 16067 { $as_echo "$as_me: error: ambiguous option: $1
7a197a62
AK
16068Try \`$0 --help' for more information." >&2
16069 { (exit 1); exit 1; }; };;
16070 --help | --hel | -h )
ec6a6fbe 16071 $as_echo "$ac_cs_usage"; exit ;;
ad6254c5
AK
16072 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16073 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16074 ac_cs_silent=: ;;
16075
16076 # This is an error.
ec6a6fbe 16077 -*) { $as_echo "$as_me: error: unrecognized option: $1
7a197a62 16078Try \`$0 --help' for more information." >&2
ad6254c5
AK
16079 { (exit 1); exit 1; }; } ;;
16080
7a197a62
AK
16081 *) ac_config_targets="$ac_config_targets $1"
16082 ac_need_defaults=false ;;
ad6254c5
AK
16083
16084 esac
16085 shift
16086done
16087
16088ac_configure_extra_args=
16089
16090if $ac_cs_silent; then
16091 exec 6>/dev/null
16092 ac_configure_extra_args="$ac_configure_extra_args --silent"
16093fi
16094
16095_ACEOF
ec6a6fbe 16096cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5 16097if \$ac_cs_recheck; then
ec6a6fbe
AK
16098 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16099 shift
16100 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16101 CONFIG_SHELL='$SHELL'
7a197a62 16102 export CONFIG_SHELL
ec6a6fbe 16103 exec "\$@"
ad6254c5
AK
16104fi
16105
16106_ACEOF
ec6a6fbe 16107cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
16108exec 5>>config.log
16109{
16110 echo
16111 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16112## Running $as_me. ##
16113_ASBOX
ec6a6fbe 16114 $as_echo "$ac_log"
7a197a62 16115} >&5
ad6254c5 16116
7a197a62 16117_ACEOF
ec6a6fbe 16118cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7a197a62 16119_ACEOF
ad6254c5 16120
ec6a6fbe 16121cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
16122
16123# Handling of arguments.
ad6254c5
AK
16124for ac_config_target in $ac_config_targets
16125do
7a197a62
AK
16126 case $ac_config_target in
16127 "lib/misc/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;;
16128 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16129 "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;;
16130 "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;;
16131 "daemons/clvmd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;;
5d311afb 16132 "daemons/cmirrord/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/cmirrord/Makefile" ;;
93bd259b
AK
16133 "daemons/dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/Makefile" ;;
16134 "daemons/dmeventd/libdevmapper-event.pc") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/libdevmapper-event.pc" ;;
04f06bc9 16135 "daemons/dmeventd/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/Makefile" ;;
93bd259b
AK
16136 "daemons/dmeventd/plugins/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/mirror/Makefile" ;;
16137 "daemons/dmeventd/plugins/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/snapshot/Makefile" ;;
7a197a62 16138 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
db8b5af9 16139 "include/.symlinks") CONFIG_FILES="$CONFIG_FILES include/.symlinks" ;;
93bd259b
AK
16140 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
16141 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
7a197a62
AK
16142 "lib/format1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;;
16143 "lib/format_pool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;;
16144 "lib/locking/Makefile") CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;;
16145 "lib/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;;
ec6a6fbe 16146 "lib/misc/lvm-version.h") CONFIG_FILES="$CONFIG_FILES lib/misc/lvm-version.h" ;;
7a197a62 16147 "lib/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;;
93bd259b
AK
16148 "libdm/Makefile") CONFIG_FILES="$CONFIG_FILES libdm/Makefile" ;;
16149 "libdm/libdevmapper.pc") CONFIG_FILES="$CONFIG_FILES libdm/libdevmapper.pc" ;;
e0c64c6c 16150 "liblvm/Makefile") CONFIG_FILES="$CONFIG_FILES liblvm/Makefile" ;;
70046623 16151 "liblvm/liblvm2app.pc") CONFIG_FILES="$CONFIG_FILES liblvm/liblvm2app.pc" ;;
93bd259b
AK
16152 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
16153 "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
75ad7143 16154 "scripts/clvmd_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/clvmd_init_red_hat" ;;
595eaf92 16155 "scripts/lvm2_monitoring_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_monitoring_init_red_hat" ;;
7a197a62 16156 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
93bd259b 16157 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
c7e363f9 16158 "test/api/Makefile") CONFIG_FILES="$CONFIG_FILES test/api/Makefile" ;;
7a197a62 16159 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
a5f46f6a 16160 "udev/Makefile") CONFIG_FILES="$CONFIG_FILES udev/Makefile" ;;
7a197a62 16161
ec6a6fbe
AK
16162 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16163$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
ad6254c5 16164 { (exit 1); exit 1; }; };;
80992638 16165 esac
ad6254c5
AK
16166done
16167
7a197a62 16168
ad6254c5
AK
16169# If the user did not use the arguments to specify the items to instantiate,
16170# then the envvar interface is used. Set only those that are not.
16171# We use the long form for the default assignment because of an extremely
16172# bizarre bug on SunOS 4.1.3.
16173if $ac_need_defaults; then
16174 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
72b2cb61 16175 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
ad6254c5
AK
16176fi
16177
16178# Have a temporary directory for convenience. Make it in the build tree
7a197a62 16179# simply because there is no reason against having it here, and in addition,
ad6254c5 16180# creating and moving files from /tmp can sometimes cause problems.
7a197a62
AK
16181# Hook for its removal unless debugging.
16182# Note that there is a small window in which the directory will not be cleaned:
16183# after its creation but before its name has been assigned to `$tmp'.
ad6254c5
AK
16184$debug ||
16185{
7a197a62
AK
16186 tmp=
16187 trap 'exit_status=$?
16188 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16189' 0
ad6254c5
AK
16190 trap '{ (exit 1); exit 1; }' 1 2 13 15
16191}
ad6254c5
AK
16192# Create a (secure) tmp directory for tmp files.
16193
16194{
7a197a62 16195 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
ad6254c5
AK
16196 test -n "$tmp" && test -d "$tmp"
16197} ||
16198{
7a197a62
AK
16199 tmp=./conf$$-$RANDOM
16200 (umask 077 && mkdir "$tmp")
ad6254c5
AK
16201} ||
16202{
ec6a6fbe 16203 $as_echo "$as_me: cannot create a temporary directory in ." >&2
ad6254c5
AK
16204 { (exit 1); exit 1; }
16205}
16206
ec6a6fbe
AK
16207# Set up the scripts for CONFIG_FILES section.
16208# No need to generate them if there are no CONFIG_FILES.
16209# This happens for instance with `./config.status config.h'.
1995c9ff 16210if test -n "$CONFIG_FILES"; then
7a197a62 16211
68f2de6d 16212
ec6a6fbe
AK
16213ac_cr='\r'
16214ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16215if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16216 ac_cs_awk_cr='\\r'
16217else
16218 ac_cs_awk_cr=$ac_cr
1995c9ff 16219fi
7a197a62 16220
ec6a6fbe 16221echo 'BEGIN {' >"$tmp/subs1.awk" &&
1995c9ff 16222_ACEOF
7a197a62 16223
8106cdd5 16224
ec6a6fbe
AK
16225{
16226 echo "cat >conf$$subs.awk <<_ACEOF" &&
16227 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16228 echo "_ACEOF"
16229} >conf$$subs.sh ||
16230 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16231$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16232 { (exit 1); exit 1; }; }
16233ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
1995c9ff
AK
16234ac_delim='%!_!# '
16235for ac_last_try in false false false false false :; do
ec6a6fbe
AK
16236 . ./conf$$subs.sh ||
16237 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16238$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16239 { (exit 1); exit 1; }; }
16240
16241 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16242 if test $ac_delim_n = $ac_delim_num; then
1995c9ff
AK
16243 break
16244 elif $ac_last_try; then
ec6a6fbe
AK
16245 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16246$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
1995c9ff
AK
16247 { (exit 1); exit 1; }; }
16248 else
16249 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16250 fi
16251done
ec6a6fbe
AK
16252rm -f conf$$subs.sh
16253
16254cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16255cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16256_ACEOF
16257sed -n '
16258h
16259s/^/S["/; s/!.*/"]=/
16260p
16261g
16262s/^[^!]*!//
16263:repl
16264t repl
16265s/'"$ac_delim"'$//
16266t delim
16267:nl
16268h
16269s/\(.\{148\}\).*/\1/
16270t more1
16271s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16272p
16273n
16274b repl
16275:more1
16276s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16277p
16278g
16279s/.\{148\}//
16280t nl
16281:delim
16282h
16283s/\(.\{148\}\).*/\1/
16284t more2
16285s/["\\]/\\&/g; s/^/"/; s/$/"/
16286p
16287b
16288:more2
16289s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16290p
16291g
16292s/.\{148\}//
16293t delim
16294' <conf$$subs.awk | sed '
16295/^[^""]/{
16296 N
16297 s/\n//
16298}
16299' >>$CONFIG_STATUS || ac_write_fail=1
16300rm -f conf$$subs.awk
16301cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16302_ACAWK
16303cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16304 for (key in S) S_is_set[key] = 1
16305 FS = "\a"
7a197a62 16306
ec6a6fbe
AK
16307}
16308{
16309 line = $ 0
16310 nfields = split(line, field, "@")
16311 substed = 0
16312 len = length(field[1])
16313 for (i = 2; i < nfields; i++) {
16314 key = field[i]
16315 keylen = length(key)
16316 if (S_is_set[key]) {
16317 value = S[key]
16318 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16319 len += length(value) + length(field[++i])
16320 substed = 1
16321 } else
16322 len += 1 + keylen
16323 }
16324
16325 print line
16326}
fddafd51 16327
ec6a6fbe 16328_ACAWK
1995c9ff 16329_ACEOF
ec6a6fbe
AK
16330cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16331if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16332 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16333else
16334 cat
16335fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16336 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
16337$as_echo "$as_me: error: could not setup config files machinery" >&2;}
16338 { (exit 1); exit 1; }; }
7a197a62
AK
16339_ACEOF
16340
7a197a62
AK
16341# VPATH may cause trouble with some makes, so we remove $(srcdir),
16342# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16343# trailing colons and then remove the whole line if VPATH becomes empty
16344# (actually we leave an empty line to preserve line numbers).
16345if test "x$srcdir" = x.; then
16346 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16347s/:*\$(srcdir):*/:/
16348s/:*\${srcdir}:*/:/
16349s/:*@srcdir@:*/:/
16350s/^\([^=]*=[ ]*\):*/\1/
16351s/:*$//
16352s/^[^=]*=[ ]*$//
16353}'
16354fi
16355
ec6a6fbe 16356cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
16357fi # test -n "$CONFIG_FILES"
16358
ec6a6fbe
AK
16359# Set up the scripts for CONFIG_HEADERS section.
16360# No need to generate them if there are no CONFIG_HEADERS.
16361# This happens for instance with `./config.status Makefile'.
16362if test -n "$CONFIG_HEADERS"; then
16363cat >"$tmp/defines.awk" <<\_ACAWK ||
16364BEGIN {
16365_ACEOF
16366
16367# Transform confdefs.h into an awk script `defines.awk', embedded as
16368# here-document in config.status, that substitutes the proper values into
16369# config.h.in to produce config.h.
16370
16371# Create a delimiter string that does not exist in confdefs.h, to ease
16372# handling of long lines.
16373ac_delim='%!_!# '
16374for ac_last_try in false false :; do
16375 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16376 if test -z "$ac_t"; then
16377 break
16378 elif $ac_last_try; then
16379 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
16380$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
16381 { (exit 1); exit 1; }; }
16382 else
16383 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16384 fi
16385done
16386
16387# For the awk script, D is an array of macro values keyed by name,
16388# likewise P contains macro parameters if any. Preserve backslash
16389# newline sequences.
16390
16391ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16392sed -n '
16393s/.\{148\}/&'"$ac_delim"'/g
16394t rset
16395:rset
16396s/^[ ]*#[ ]*define[ ][ ]*/ /
16397t def
16398d
16399:def
16400s/\\$//
16401t bsnl
16402s/["\\]/\\&/g
16403s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16404D["\1"]=" \3"/p
16405s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16406d
16407:bsnl
16408s/["\\]/\\&/g
16409s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16410D["\1"]=" \3\\\\\\n"\\/p
16411t cont
16412s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16413t cont
16414d
16415:cont
16416n
16417s/.\{148\}/&'"$ac_delim"'/g
16418t clear
16419:clear
16420s/\\$//
16421t bsnlc
16422s/["\\]/\\&/g; s/^/"/; s/$/"/p
16423d
16424:bsnlc
16425s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16426b cont
16427' <confdefs.h | sed '
16428s/'"$ac_delim"'/"\\\
16429"/g' >>$CONFIG_STATUS || ac_write_fail=1
16430
16431cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16432 for (key in D) D_is_set[key] = 1
16433 FS = "\a"
16434}
16435/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16436 line = \$ 0
16437 split(line, arg, " ")
16438 if (arg[1] == "#") {
16439 defundef = arg[2]
16440 mac1 = arg[3]
16441 } else {
16442 defundef = substr(arg[1], 2)
16443 mac1 = arg[2]
16444 }
16445 split(mac1, mac2, "(") #)
16446 macro = mac2[1]
16447 prefix = substr(line, 1, index(line, defundef) - 1)
16448 if (D_is_set[macro]) {
16449 # Preserve the white space surrounding the "#".
16450 print prefix "define", macro P[macro] D[macro]
16451 next
16452 } else {
16453 # Replace #undef with comments. This is necessary, for example,
16454 # in the case of _POSIX_SOURCE, which is predefined and required
16455 # on some systems where configure will not decide to define it.
16456 if (defundef == "undef") {
16457 print "/*", prefix defundef, macro, "*/"
16458 next
16459 }
16460 }
16461}
16462{ print }
16463_ACAWK
16464_ACEOF
16465cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16466 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
16467$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
16468 { (exit 1); exit 1; }; }
16469fi # test -n "$CONFIG_HEADERS"
16470
7a197a62 16471
ec6a6fbe
AK
16472eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
16473shift
16474for ac_tag
7a197a62
AK
16475do
16476 case $ac_tag in
16477 :[FHLC]) ac_mode=$ac_tag; continue;;
16478 esac
16479 case $ac_mode$ac_tag in
16480 :[FHL]*:*);;
ec6a6fbe
AK
16481 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
16482$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
7a197a62
AK
16483 { (exit 1); exit 1; }; };;
16484 :[FH]-) ac_tag=-:-;;
16485 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16486 esac
16487 ac_save_IFS=$IFS
16488 IFS=:
16489 set x $ac_tag
16490 IFS=$ac_save_IFS
16491 shift
16492 ac_file=$1
16493 shift
16494
16495 case $ac_mode in
16496 :L) ac_source=$1;;
16497 :[FH])
16498 ac_file_inputs=
16499 for ac_f
16500 do
16501 case $ac_f in
16502 -) ac_f="$tmp/stdin";;
16503 *) # Look for the file first in the build tree, then in the source tree
16504 # (if the path is not absolute). The absolute path cannot be DOS-style,
16505 # because $ac_f cannot contain `:'.
16506 test -f "$ac_f" ||
16507 case $ac_f in
16508 [\\/$]*) false;;
16509 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16510 esac ||
ec6a6fbe
AK
16511 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
16512$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
7a197a62
AK
16513 { (exit 1); exit 1; }; };;
16514 esac
ec6a6fbe
AK
16515 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16516 ac_file_inputs="$ac_file_inputs '$ac_f'"
7a197a62
AK
16517 done
16518
16519 # Let's still pretend it is `configure' which instantiates (i.e., don't
16520 # use $as_me), people would be surprised to read:
16521 # /* config.h. Generated by config.status. */
ec6a6fbe
AK
16522 configure_input='Generated from '`
16523 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16524 `' by configure.'
7a197a62
AK
16525 if test x"$ac_file" != x-; then
16526 configure_input="$ac_file. $configure_input"
ec6a6fbe
AK
16527 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
16528$as_echo "$as_me: creating $ac_file" >&6;}
7a197a62 16529 fi
ec6a6fbe
AK
16530 # Neutralize special characters interpreted by sed in replacement strings.
16531 case $configure_input in #(
16532 *\&* | *\|* | *\\* )
16533 ac_sed_conf_input=`$as_echo "$configure_input" |
16534 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16535 *) ac_sed_conf_input=$configure_input;;
16536 esac
7a197a62
AK
16537
16538 case $ac_tag in
ec6a6fbe
AK
16539 *:-:* | *:-) cat >"$tmp/stdin" \
16540 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16541$as_echo "$as_me: error: could not create $ac_file" >&2;}
16542 { (exit 1); exit 1; }; } ;;
7a197a62
AK
16543 esac
16544 ;;
80992638 16545 esac
8106cdd5 16546
7a197a62 16547 ac_dir=`$as_dirname -- "$ac_file" ||
ad6254c5 16548$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8a2fc586
AK
16549 X"$ac_file" : 'X\(//\)[^/]' \| \
16550 X"$ac_file" : 'X\(//\)$' \| \
7a197a62 16551 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 16552$as_echo X"$ac_file" |
7a197a62
AK
16553 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16554 s//\1/
16555 q
16556 }
16557 /^X\(\/\/\)[^/].*/{
16558 s//\1/
16559 q
16560 }
16561 /^X\(\/\/\)$/{
16562 s//\1/
16563 q
16564 }
16565 /^X\(\/\).*/{
16566 s//\1/
16567 q
16568 }
16569 s/.*/./; q'`
16570 { as_dir="$ac_dir"
16571 case $as_dir in #(
16572 -*) as_dir=./$as_dir;;
16573 esac
16574 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
ad6254c5 16575 as_dirs=
7a197a62
AK
16576 while :; do
16577 case $as_dir in #(
ec6a6fbe 16578 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7a197a62
AK
16579 *) as_qdir=$as_dir;;
16580 esac
16581 as_dirs="'$as_qdir' $as_dirs"
16582 as_dir=`$as_dirname -- "$as_dir" ||
ad6254c5 16583$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8a2fc586
AK
16584 X"$as_dir" : 'X\(//\)[^/]' \| \
16585 X"$as_dir" : 'X\(//\)$' \| \
7a197a62 16586 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 16587$as_echo X"$as_dir" |
7a197a62
AK
16588 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16589 s//\1/
16590 q
16591 }
16592 /^X\(\/\/\)[^/].*/{
16593 s//\1/
16594 q
16595 }
16596 /^X\(\/\/\)$/{
16597 s//\1/
16598 q
16599 }
16600 /^X\(\/\).*/{
16601 s//\1/
16602 q
16603 }
16604 s/.*/./; q'`
16605 test -d "$as_dir" && break
ad6254c5 16606 done
7a197a62 16607 test -z "$as_dirs" || eval "mkdir $as_dirs"
ec6a6fbe
AK
16608 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16609$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
ad6254c5 16610 { (exit 1); exit 1; }; }; }
ad6254c5
AK
16611 ac_builddir=.
16612
7a197a62
AK
16613case "$ac_dir" in
16614.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16615*)
ec6a6fbe 16616 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7a197a62 16617 # A ".." for each directory in $ac_dir_suffix.
ec6a6fbe 16618 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7a197a62
AK
16619 case $ac_top_builddir_sub in
16620 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16621 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16622 esac ;;
16623esac
16624ac_abs_top_builddir=$ac_pwd
16625ac_abs_builddir=$ac_pwd$ac_dir_suffix
16626# for backward compatibility:
16627ac_top_builddir=$ac_top_build_prefix
ad6254c5
AK
16628
16629case $srcdir in
7a197a62 16630 .) # We are building in place.
ad6254c5 16631 ac_srcdir=.
7a197a62
AK
16632 ac_top_srcdir=$ac_top_builddir_sub
16633 ac_abs_top_srcdir=$ac_pwd ;;
16634 [\\/]* | ?:[\\/]* ) # Absolute name.
ad6254c5 16635 ac_srcdir=$srcdir$ac_dir_suffix;
7a197a62
AK
16636 ac_top_srcdir=$srcdir
16637 ac_abs_top_srcdir=$srcdir ;;
16638 *) # Relative name.
16639 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16640 ac_top_srcdir=$ac_top_build_prefix$srcdir
16641 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
ad6254c5 16642esac
7a197a62 16643ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8a2fc586 16644
ad6254c5 16645
7a197a62
AK
16646 case $ac_mode in
16647 :F)
16648 #
16649 # CONFIG_FILE
16650 #
ad6254c5
AK
16651
16652 case $INSTALL in
16653 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7a197a62 16654 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
795ca3e5 16655 esac
fddafd51
ZK
16656 ac_MKDIR_P=$MKDIR_P
16657 case $MKDIR_P in
16658 [\\/$]* | ?:[\\/]* ) ;;
16659 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16660 esac
7a197a62 16661_ACEOF
795ca3e5 16662
ec6a6fbe 16663cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
16664# If the template does not know about datarootdir, expand it.
16665# FIXME: This hack should be removed a few years after 2.60.
16666ac_datarootdir_hack=; ac_datarootdir_seen=
16667
ec6a6fbe
AK
16668ac_sed_dataroot='
16669/datarootdir/ {
7a197a62
AK
16670 p
16671 q
16672}
16673/@datadir@/p
16674/@docdir@/p
16675/@infodir@/p
16676/@localedir@/p
16677/@mandir@/p
ec6a6fbe
AK
16678'
16679case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7a197a62
AK
16680*datarootdir*) ac_datarootdir_seen=yes;;
16681*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
ec6a6fbe
AK
16682 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16683$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
ad6254c5 16684_ACEOF
ec6a6fbe 16685cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7a197a62
AK
16686 ac_datarootdir_hack='
16687 s&@datadir@&$datadir&g
16688 s&@docdir@&$docdir&g
16689 s&@infodir@&$infodir&g
16690 s&@localedir@&$localedir&g
16691 s&@mandir@&$mandir&g
16692 s&\\\${datarootdir}&$datarootdir&g' ;;
16693esac
16694_ACEOF
16695
16696# Neutralize VPATH when `$srcdir' = `.'.
16697# Shell code in configure.ac might set extrasub.
16698# FIXME: do we really want to maintain this feature?
ec6a6fbe
AK
16699cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16700ac_sed_extra="$ac_vpsub
ad6254c5
AK
16701$extrasub
16702_ACEOF
ec6a6fbe 16703cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ad6254c5
AK
16704:t
16705/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
ec6a6fbe 16706s|@configure_input@|$ac_sed_conf_input|;t t
7a197a62 16707s&@top_builddir@&$ac_top_builddir_sub&;t t
ec6a6fbe 16708s&@top_build_prefix@&$ac_top_build_prefix&;t t
7a197a62
AK
16709s&@srcdir@&$ac_srcdir&;t t
16710s&@abs_srcdir@&$ac_abs_srcdir&;t t
16711s&@top_srcdir@&$ac_top_srcdir&;t t
16712s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16713s&@builddir@&$ac_builddir&;t t
16714s&@abs_builddir@&$ac_abs_builddir&;t t
16715s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16716s&@INSTALL@&$ac_INSTALL&;t t
fddafd51 16717s&@MKDIR_P@&$ac_MKDIR_P&;t t
7a197a62 16718$ac_datarootdir_hack
ec6a6fbe
AK
16719"
16720eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16721 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16722$as_echo "$as_me: error: could not create $ac_file" >&2;}
16723 { (exit 1); exit 1; }; }
7a197a62
AK
16724
16725test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16726 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16727 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
ec6a6fbe 16728 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7a197a62 16729which seems to be undefined. Please make sure it is defined." >&5
ec6a6fbe 16730$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7a197a62
AK
16731which seems to be undefined. Please make sure it is defined." >&2;}
16732
16733 rm -f "$tmp/stdin"
72b2cb61 16734 case $ac_file in
ec6a6fbe
AK
16735 -) cat "$tmp/out" && rm -f "$tmp/out";;
16736 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16737 esac \
16738 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16739$as_echo "$as_me: error: could not create $ac_file" >&2;}
16740 { (exit 1); exit 1; }; }
7a197a62
AK
16741 ;;
16742 :H)
16743 #
16744 # CONFIG_HEADER
16745 #
72b2cb61 16746 if test x"$ac_file" != x-; then
ec6a6fbe
AK
16747 {
16748 $as_echo "/* $configure_input */" \
16749 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16750 } >"$tmp/config.h" \
16751 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16752$as_echo "$as_me: error: could not create $ac_file" >&2;}
16753 { (exit 1); exit 1; }; }
16754 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16755 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16756$as_echo "$as_me: $ac_file is unchanged" >&6;}
72b2cb61 16757 else
ec6a6fbe
AK
16758 rm -f "$ac_file"
16759 mv "$tmp/config.h" "$ac_file" \
16760 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16761$as_echo "$as_me: error: could not create $ac_file" >&2;}
16762 { (exit 1); exit 1; }; }
72b2cb61
AK
16763 fi
16764 else
ec6a6fbe
AK
16765 $as_echo "/* $configure_input */" \
16766 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16767 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
16768$as_echo "$as_me: error: could not create -" >&2;}
16769 { (exit 1); exit 1; }; }
72b2cb61 16770 fi
7a197a62
AK
16771 ;;
16772
16773
16774 esac
16775
16776done # for ac_tag
795ca3e5 16777
795ca3e5 16778
ad6254c5
AK
16779{ (exit 0); exit 0; }
16780_ACEOF
795ca3e5 16781chmod +x $CONFIG_STATUS
ad6254c5
AK
16782ac_clean_files=$ac_clean_files_save
16783
ec6a6fbe
AK
16784test $ac_write_fail = 0 ||
16785 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
16786$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
16787 { (exit 1); exit 1; }; }
16788
ad6254c5
AK
16789
16790# configure is writing to config.log, and then calls config.status.
16791# config.status does its own redirection, appending to config.log.
16792# Unfortunately, on DOS this fails, as config.log is still kept open
16793# by configure, so config.status won't be able to write to it; its
16794# output is simply discarded. So we exec the FD to /dev/null,
16795# effectively closing config.log, so it can be properly (re)opened and
16796# appended to by config.status. When coming back to configure, we
16797# need to make the FD available again.
16798if test "$no_create" != yes; then
16799 ac_cs_success=:
16800 ac_config_status_args=
16801 test "$silent" = yes &&
16802 ac_config_status_args="$ac_config_status_args --quiet"
16803 exec 5>/dev/null
16804 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16805 exec 5>>config.log
16806 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16807 # would make configure fail if this is the last instruction.
16808 $ac_cs_success || { (exit 1); exit 1; }
16809fi
ec6a6fbe
AK
16810if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16811 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16812$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16813fi
795ca3e5 16814
2dc95e1c
AK
16815
16816if test x$ODIRECT != xyes; then
ec6a6fbe
AK
16817 { $as_echo "$as_me:$LINENO: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5
16818$as_echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;}
2dc95e1c 16819fi
This page took 2.200262 seconds and 5 git commands to generate.