]> sourceware.org Git - lvm2.git/blame - configure
Rewrite clvmd configuration code.
[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
654POOL
655PKGCONFIG
656OWNER
657MIRRORS
658LVM_RELEASE_DATE
659LVM_RELEASE
660LVM_PATCHLEVEL
661LVM_MINOR
662LVM_MAJOR
bf456146 663LVM_LIBAPI
ec6a6fbe 664LVM_VERSION
ec6a6fbe
AK
665LVM1_FALLBACK
666LVM1
667LOCALEDIR
668LIB_SUFFIX
669LDDEPS
670JOBS
671INTL_PACKAGE
672INTL
673HAVE_SELINUX
674HAVE_REALTIME
675HAVE_LIBDL
676GROUP
677FSADM
678DM_LIB_PATCHLEVEL
679DM_LIB_VERSION
680DM_IOCTLS
681DM_DEVICE_UID
682DM_DEVICE_MODE
683DM_DEVICE_GID
684DM_COMPAT
685DMEVENTD
686DEVMAPPER
687DEBUG
688COPTIMISE_FLAG
e2997b73 689CONFDIR
ec6a6fbe 690CMDLIB
a946372e 691CLOGD
ec6a6fbe
AK
692CLVMD
693CLUSTER
694CLDWHOLEARCHIVE
695CLDNOWHOLEARCHIVE
696CLDFLAGS
697BUILD_DMEVENTD
572fefeb 698APPLIB
ec6a6fbe
AK
699MODPROBE_CMD
700MSGFMT
701LVM2CMD_LIB
572fefeb 702LVM2APP_LIB
ec6a6fbe
AK
703GENHTML
704LCOV
a946372e
AK
705DLM_LIBS
706DLM_CFLAGS
e2997b73
AK
707CPG_LIBS
708CPG_CFLAGS
709CONFDB_LIBS
710CONFDB_CFLAGS
a946372e
AK
711SALCK_LIBS
712SALCK_CFLAGS
e2997b73
AK
713QUORUM_LIBS
714QUORUM_CFLAGS
a946372e
AK
715COROSYNC_LIBS
716COROSYNC_CFLAGS
717CMAN_LIBS
718CMAN_CFLAGS
719GULM_LIBS
720GULM_CFLAGS
721CCS_LIBS
722CCS_CFLAGS
723PKGCONFIGINIT_LIBS
724PKGCONFIGINIT_CFLAGS
e2997b73 725PKG_CONFIG
ec6a6fbe
AK
726POW_LIB
727LIBOBJS
728ALLOCA
729CSCOPE_CMD
730CFLOW_CMD
731RANLIB
732MKDIR_P
733SET_MAKE
734LN_S
735INSTALL_DATA
736INSTALL_SCRIPT
737INSTALL_PROGRAM
738EGREP
739GREP
740CPP
741OBJEXT
742EXEEXT
743ac_ct_CC
744CPPFLAGS
745LDFLAGS
746CFLAGS
747CC
748AWK
749SED
750target_os
751target_vendor
752target_cpu
753target
754host_os
755host_vendor
756host_cpu
757host
758build_os
759build_vendor
760build_cpu
761build
762target_alias
763host_alias
764build_alias
765LIBS
766ECHO_T
767ECHO_N
768ECHO_C
769DEFS
770mandir
771localedir
772libdir
773psdir
774pdfdir
775dvidir
776htmldir
777infodir
778docdir
779oldincludedir
780includedir
781localstatedir
782sharedstatedir
783sysconfdir
784datadir
785datarootdir
786libexecdir
787sbindir
788bindir
789program_transform_name
790prefix
791exec_prefix
792PACKAGE_BUGREPORT
793PACKAGE_STRING
794PACKAGE_VERSION
795PACKAGE_TARNAME
796PACKAGE_NAME
797PATH_SEPARATOR
798SHELL'
ad6254c5 799ac_subst_files=''
ec6a6fbe
AK
800ac_user_opts='
801enable_option_checking
802enable_static_link
803with_user
804with_group
805with_device_uid
806with_device_gid
807with_device_mode
808enable_lvm1_fallback
809with_lvm1
810with_pool
811with_cluster
812with_snapshots
813with_mirrors
814enable_readline
815enable_realtime
816with_clvmd
a946372e 817enable_clogd
ec6a6fbe
AK
818enable_debug
819with_optimisation
820enable_profiling
821enable_devmapper
a5f46f6a
AK
822enable_udev_sync
823enable_udev_rules
ec6a6fbe
AK
824enable_compat
825enable_ioctl
826enable_o_direct
572fefeb 827enable_applib
ec6a6fbe
AK
828enable_cmdlib
829enable_pkgconfig
830enable_fsadm
831enable_dmeventd
832enable_selinux
833enable_nls
834with_localedir
835with_confdir
836with_staticdir
837with_usrlibdir
838with_usrsbindir
a5f46f6a 839with_udev_prefix
78ce7acc 840with_udevdir
ec6a6fbe
AK
841with_dmeventd_pidfile
842with_dmeventd_path
843with_interface
844'
7a197a62
AK
845 ac_precious_vars='build_alias
846host_alias
847target_alias
848CC
849CFLAGS
850LDFLAGS
25fbec5b 851LIBS
7a197a62 852CPPFLAGS
e2997b73
AK
853CPP
854PKG_CONFIG
a946372e
AK
855PKGCONFIGINIT_CFLAGS
856PKGCONFIGINIT_LIBS
857CCS_CFLAGS
858CCS_LIBS
859GULM_CFLAGS
860GULM_LIBS
861CMAN_CFLAGS
862CMAN_LIBS
863COROSYNC_CFLAGS
864COROSYNC_LIBS
e2997b73
AK
865QUORUM_CFLAGS
866QUORUM_LIBS
a946372e
AK
867SALCK_CFLAGS
868SALCK_LIBS
e2997b73
AK
869CONFDB_CFLAGS
870CONFDB_LIBS
871CPG_CFLAGS
a946372e
AK
872CPG_LIBS
873DLM_CFLAGS
874DLM_LIBS'
7a197a62 875
795ca3e5
AK
876
877# Initialize some variables set by options.
ad6254c5
AK
878ac_init_help=
879ac_init_version=false
ec6a6fbe
AK
880ac_unrecognized_opts=
881ac_unrecognized_sep=
795ca3e5
AK
882# The variables have the same names as the options, with
883# dashes changed to underlines.
ad6254c5 884cache_file=/dev/null
795ca3e5 885exec_prefix=NONE
795ca3e5 886no_create=
795ca3e5
AK
887no_recursion=
888prefix=NONE
889program_prefix=NONE
890program_suffix=NONE
891program_transform_name=s,x,x,
892silent=
893site=
894srcdir=
795ca3e5
AK
895verbose=
896x_includes=NONE
897x_libraries=NONE
ad6254c5
AK
898
899# Installation directory options.
900# These are left unexpanded so users can "make install exec_prefix=/foo"
901# and all the variables that are supposed to be based on exec_prefix
902# by default will actually change.
903# Use braces instead of parens because sh, perl, etc. also accept them.
7a197a62 904# (The list follows the same order as the GNU Coding Standards.)
795ca3e5
AK
905bindir='${exec_prefix}/bin'
906sbindir='${exec_prefix}/sbin'
907libexecdir='${exec_prefix}/libexec'
7a197a62
AK
908datarootdir='${prefix}/share'
909datadir='${datarootdir}'
795ca3e5
AK
910sysconfdir='${prefix}/etc'
911sharedstatedir='${prefix}/com'
912localstatedir='${prefix}/var'
795ca3e5
AK
913includedir='${prefix}/include'
914oldincludedir='/usr/include'
7a197a62
AK
915docdir='${datarootdir}/doc/${PACKAGE}'
916infodir='${datarootdir}/info'
917htmldir='${docdir}'
918dvidir='${docdir}'
919pdfdir='${docdir}'
920psdir='${docdir}'
921libdir='${exec_prefix}/lib'
922localedir='${datarootdir}/locale'
923mandir='${datarootdir}/man'
795ca3e5 924
795ca3e5 925ac_prev=
7a197a62 926ac_dashdash=
795ca3e5
AK
927for ac_option
928do
795ca3e5
AK
929 # If the previous option needs an argument, assign it.
930 if test -n "$ac_prev"; then
7a197a62 931 eval $ac_prev=\$ac_option
795ca3e5
AK
932 ac_prev=
933 continue
934 fi
935
7a197a62
AK
936 case $ac_option in
937 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
938 *) ac_optarg=yes ;;
939 esac
795ca3e5
AK
940
941 # Accept the important Cygnus configure options, so we can diagnose typos.
942
7a197a62
AK
943 case $ac_dashdash$ac_option in
944 --)
945 ac_dashdash=yes ;;
795ca3e5
AK
946
947 -bindir | --bindir | --bindi | --bind | --bin | --bi)
948 ac_prev=bindir ;;
949 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
ad6254c5 950 bindir=$ac_optarg ;;
795ca3e5
AK
951
952 -build | --build | --buil | --bui | --bu)
ad6254c5 953 ac_prev=build_alias ;;
795ca3e5 954 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
ad6254c5 955 build_alias=$ac_optarg ;;
795ca3e5
AK
956
957 -cache-file | --cache-file | --cache-fil | --cache-fi \
958 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
959 ac_prev=cache_file ;;
960 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
961 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
ad6254c5
AK
962 cache_file=$ac_optarg ;;
963
964 --config-cache | -C)
965 cache_file=config.cache ;;
795ca3e5 966
7a197a62 967 -datadir | --datadir | --datadi | --datad)
795ca3e5 968 ac_prev=datadir ;;
7a197a62 969 -datadir=* | --datadir=* | --datadi=* | --datad=*)
ad6254c5 970 datadir=$ac_optarg ;;
795ca3e5 971
7a197a62
AK
972 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
973 | --dataroo | --dataro | --datar)
974 ac_prev=datarootdir ;;
975 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
976 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
977 datarootdir=$ac_optarg ;;
978
795ca3e5 979 -disable-* | --disable-*)
ec6a6fbe 980 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
795ca3e5 981 # Reject names that are not valid shell variable names.
ec6a6fbe
AK
982 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
983 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
ad6254c5 984 { (exit 1); exit 1; }; }
ec6a6fbe
AK
985 ac_useropt_orig=$ac_useropt
986 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
987 case $ac_user_opts in
988 *"
989"enable_$ac_useropt"
990"*) ;;
991 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
992 ac_unrecognized_sep=', ';;
993 esac
994 eval enable_$ac_useropt=no ;;
7a197a62
AK
995
996 -docdir | --docdir | --docdi | --doc | --do)
997 ac_prev=docdir ;;
998 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
999 docdir=$ac_optarg ;;
1000
1001 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1002 ac_prev=dvidir ;;
1003 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1004 dvidir=$ac_optarg ;;
795ca3e5
AK
1005
1006 -enable-* | --enable-*)
ec6a6fbe 1007 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
795ca3e5 1008 # Reject names that are not valid shell variable names.
ec6a6fbe
AK
1009 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1010 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
ad6254c5 1011 { (exit 1); exit 1; }; }
ec6a6fbe
AK
1012 ac_useropt_orig=$ac_useropt
1013 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1014 case $ac_user_opts in
1015 *"
1016"enable_$ac_useropt"
1017"*) ;;
1018 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1019 ac_unrecognized_sep=', ';;
1020 esac
1021 eval enable_$ac_useropt=\$ac_optarg ;;
795ca3e5
AK
1022
1023 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1024 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1025 | --exec | --exe | --ex)
1026 ac_prev=exec_prefix ;;
1027 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1028 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1029 | --exec=* | --exe=* | --ex=*)
ad6254c5 1030 exec_prefix=$ac_optarg ;;
795ca3e5
AK
1031
1032 -gas | --gas | --ga | --g)
1033 # Obsolete; use --with-gas.
1034 with_gas=yes ;;
1035
ad6254c5
AK
1036 -help | --help | --hel | --he | -h)
1037 ac_init_help=long ;;
1038 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1039 ac_init_help=recursive ;;
1040 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1041 ac_init_help=short ;;
795ca3e5
AK
1042
1043 -host | --host | --hos | --ho)
ad6254c5 1044 ac_prev=host_alias ;;
795ca3e5 1045 -host=* | --host=* | --hos=* | --ho=*)
ad6254c5 1046 host_alias=$ac_optarg ;;
795ca3e5 1047
7a197a62
AK
1048 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1049 ac_prev=htmldir ;;
1050 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1051 | --ht=*)
1052 htmldir=$ac_optarg ;;
1053
795ca3e5
AK
1054 -includedir | --includedir | --includedi | --included | --include \
1055 | --includ | --inclu | --incl | --inc)
1056 ac_prev=includedir ;;
1057 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1058 | --includ=* | --inclu=* | --incl=* | --inc=*)
ad6254c5 1059 includedir=$ac_optarg ;;
795ca3e5
AK
1060
1061 -infodir | --infodir | --infodi | --infod | --info | --inf)
1062 ac_prev=infodir ;;
1063 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
ad6254c5 1064 infodir=$ac_optarg ;;
795ca3e5
AK
1065
1066 -libdir | --libdir | --libdi | --libd)
1067 ac_prev=libdir ;;
1068 -libdir=* | --libdir=* | --libdi=* | --libd=*)
ad6254c5 1069 libdir=$ac_optarg ;;
795ca3e5
AK
1070
1071 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1072 | --libexe | --libex | --libe)
1073 ac_prev=libexecdir ;;
1074 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1075 | --libexe=* | --libex=* | --libe=*)
ad6254c5 1076 libexecdir=$ac_optarg ;;
795ca3e5 1077
7a197a62
AK
1078 -localedir | --localedir | --localedi | --localed | --locale)
1079 ac_prev=localedir ;;
1080 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1081 localedir=$ac_optarg ;;
1082
795ca3e5 1083 -localstatedir | --localstatedir | --localstatedi | --localstated \
7a197a62 1084 | --localstate | --localstat | --localsta | --localst | --locals)
795ca3e5
AK
1085 ac_prev=localstatedir ;;
1086 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
7a197a62 1087 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
ad6254c5 1088 localstatedir=$ac_optarg ;;
795ca3e5
AK
1089
1090 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1091 ac_prev=mandir ;;
1092 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
ad6254c5 1093 mandir=$ac_optarg ;;
795ca3e5
AK
1094
1095 -nfp | --nfp | --nf)
1096 # Obsolete; use --without-fp.
1097 with_fp=no ;;
1098
1099 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
ad6254c5 1100 | --no-cr | --no-c | -n)
795ca3e5
AK
1101 no_create=yes ;;
1102
1103 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1104 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1105 no_recursion=yes ;;
1106
1107 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1108 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1109 | --oldin | --oldi | --old | --ol | --o)
1110 ac_prev=oldincludedir ;;
1111 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1112 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1113 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
ad6254c5 1114 oldincludedir=$ac_optarg ;;
795ca3e5
AK
1115
1116 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1117 ac_prev=prefix ;;
1118 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
ad6254c5 1119 prefix=$ac_optarg ;;
795ca3e5
AK
1120
1121 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1122 | --program-pre | --program-pr | --program-p)
1123 ac_prev=program_prefix ;;
1124 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1125 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
ad6254c5 1126 program_prefix=$ac_optarg ;;
795ca3e5
AK
1127
1128 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1129 | --program-suf | --program-su | --program-s)
1130 ac_prev=program_suffix ;;
1131 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1132 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
ad6254c5 1133 program_suffix=$ac_optarg ;;
795ca3e5
AK
1134
1135 -program-transform-name | --program-transform-name \
1136 | --program-transform-nam | --program-transform-na \
1137 | --program-transform-n | --program-transform- \
1138 | --program-transform | --program-transfor \
1139 | --program-transfo | --program-transf \
1140 | --program-trans | --program-tran \
1141 | --progr-tra | --program-tr | --program-t)
1142 ac_prev=program_transform_name ;;
1143 -program-transform-name=* | --program-transform-name=* \
1144 | --program-transform-nam=* | --program-transform-na=* \
1145 | --program-transform-n=* | --program-transform-=* \
1146 | --program-transform=* | --program-transfor=* \
1147 | --program-transfo=* | --program-transf=* \
1148 | --program-trans=* | --program-tran=* \
1149 | --progr-tra=* | --program-tr=* | --program-t=*)
ad6254c5 1150 program_transform_name=$ac_optarg ;;
795ca3e5 1151
7a197a62
AK
1152 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1153 ac_prev=pdfdir ;;
1154 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1155 pdfdir=$ac_optarg ;;
1156
1157 -psdir | --psdir | --psdi | --psd | --ps)
1158 ac_prev=psdir ;;
1159 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1160 psdir=$ac_optarg ;;
1161
795ca3e5
AK
1162 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1163 | -silent | --silent | --silen | --sile | --sil)
1164 silent=yes ;;
1165
1166 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1167 ac_prev=sbindir ;;
1168 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1169 | --sbi=* | --sb=*)
ad6254c5 1170 sbindir=$ac_optarg ;;
795ca3e5
AK
1171
1172 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1173 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1174 | --sharedst | --shareds | --shared | --share | --shar \
1175 | --sha | --sh)
1176 ac_prev=sharedstatedir ;;
1177 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1178 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1179 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1180 | --sha=* | --sh=*)
ad6254c5 1181 sharedstatedir=$ac_optarg ;;
795ca3e5
AK
1182
1183 -site | --site | --sit)
1184 ac_prev=site ;;
1185 -site=* | --site=* | --sit=*)
ad6254c5 1186 site=$ac_optarg ;;
795ca3e5
AK
1187
1188 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1189 ac_prev=srcdir ;;
1190 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
ad6254c5 1191 srcdir=$ac_optarg ;;
795ca3e5
AK
1192
1193 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1194 | --syscon | --sysco | --sysc | --sys | --sy)
1195 ac_prev=sysconfdir ;;
1196 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1197 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
ad6254c5 1198 sysconfdir=$ac_optarg ;;
795ca3e5
AK
1199
1200 -target | --target | --targe | --targ | --tar | --ta | --t)
ad6254c5 1201 ac_prev=target_alias ;;
795ca3e5 1202 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
ad6254c5 1203 target_alias=$ac_optarg ;;
795ca3e5
AK
1204
1205 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1206 verbose=yes ;;
1207
ad6254c5
AK
1208 -version | --version | --versio | --versi | --vers | -V)
1209 ac_init_version=: ;;
795ca3e5
AK
1210
1211 -with-* | --with-*)
ec6a6fbe 1212 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
795ca3e5 1213 # Reject names that are not valid shell variable names.
ec6a6fbe
AK
1214 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1215 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
ad6254c5 1216 { (exit 1); exit 1; }; }
ec6a6fbe
AK
1217 ac_useropt_orig=$ac_useropt
1218 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1219 case $ac_user_opts in
1220 *"
1221"with_$ac_useropt"
1222"*) ;;
1223 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1224 ac_unrecognized_sep=', ';;
1225 esac
1226 eval with_$ac_useropt=\$ac_optarg ;;
795ca3e5
AK
1227
1228 -without-* | --without-*)
ec6a6fbe 1229 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
795ca3e5 1230 # Reject names that are not valid shell variable names.
ec6a6fbe
AK
1231 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1232 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
ad6254c5 1233 { (exit 1); exit 1; }; }
ec6a6fbe
AK
1234 ac_useropt_orig=$ac_useropt
1235 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1236 case $ac_user_opts in
1237 *"
1238"with_$ac_useropt"
1239"*) ;;
1240 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1241 ac_unrecognized_sep=', ';;
1242 esac
1243 eval with_$ac_useropt=no ;;
795ca3e5
AK
1244
1245 --x)
1246 # Obsolete; use --with-x.
1247 with_x=yes ;;
1248
1249 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1250 | --x-incl | --x-inc | --x-in | --x-i)
1251 ac_prev=x_includes ;;
1252 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1253 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
ad6254c5 1254 x_includes=$ac_optarg ;;
795ca3e5
AK
1255
1256 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1257 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1258 ac_prev=x_libraries ;;
1259 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1260 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
ad6254c5 1261 x_libraries=$ac_optarg ;;
795ca3e5 1262
ec6a6fbe 1263 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
ad6254c5
AK
1264Try \`$0 --help' for more information." >&2
1265 { (exit 1); exit 1; }; }
795ca3e5
AK
1266 ;;
1267
ad6254c5
AK
1268 *=*)
1269 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1270 # Reject names that are not valid shell variable names.
1271 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
ec6a6fbe 1272 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
ad6254c5 1273 { (exit 1); exit 1; }; }
7a197a62 1274 eval $ac_envvar=\$ac_optarg
ad6254c5
AK
1275 export $ac_envvar ;;
1276
795ca3e5 1277 *)
ad6254c5 1278 # FIXME: should be removed in autoconf 3.0.
ec6a6fbe 1279 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
ad6254c5 1280 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
ec6a6fbe 1281 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
ad6254c5 1282 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
795ca3e5
AK
1283 ;;
1284
1285 esac
1286done
1287
1288if test -n "$ac_prev"; then
ad6254c5 1289 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
ec6a6fbe 1290 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
ad6254c5 1291 { (exit 1); exit 1; }; }
795ca3e5 1292fi
795ca3e5 1293
ec6a6fbe
AK
1294if test -n "$ac_unrecognized_opts"; then
1295 case $enable_option_checking in
1296 no) ;;
1297 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1298 { (exit 1); exit 1; }; } ;;
1299 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1300 esac
1301fi
1302
1303# Check all directory arguments for consistency.
7a197a62
AK
1304for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1305 datadir sysconfdir sharedstatedir localstatedir includedir \
1306 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1307 libdir localedir mandir
795ca3e5 1308do
7a197a62 1309 eval ac_val=\$$ac_var
ec6a6fbe
AK
1310 # Remove trailing slashes.
1311 case $ac_val in
1312 */ )
1313 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1314 eval $ac_var=\$ac_val;;
1315 esac
1316 # Be sure to have absolute directory names.
ad6254c5 1317 case $ac_val in
7a197a62
AK
1318 [\\/$]* | ?:[\\/]* ) continue;;
1319 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
795ca3e5 1320 esac
ec6a6fbe 1321 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
7a197a62 1322 { (exit 1); exit 1; }; }
795ca3e5
AK
1323done
1324
ad6254c5
AK
1325# There might be people who depend on the old broken behavior: `$host'
1326# used to hold the argument of --host etc.
1327# FIXME: To remove some day.
1328build=$build_alias
1329host=$host_alias
1330target=$target_alias
1331
1332# FIXME: To remove some day.
1333if test "x$host_alias" != x; then
1334 if test "x$build_alias" = x; then
1335 cross_compiling=maybe
ec6a6fbe 1336 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
ad6254c5
AK
1337 If a cross compiler is detected then cross compile mode will be used." >&2
1338 elif test "x$build_alias" != "x$host_alias"; then
1339 cross_compiling=yes
1340 fi
1341fi
8106cdd5 1342
ad6254c5
AK
1343ac_tool_prefix=
1344test -n "$host_alias" && ac_tool_prefix=$host_alias-
1345
1346test "$silent" = yes && exec 6>/dev/null
795ca3e5 1347
795ca3e5 1348
7a197a62
AK
1349ac_pwd=`pwd` && test -n "$ac_pwd" &&
1350ac_ls_di=`ls -di .` &&
1351ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
ec6a6fbe 1352 { $as_echo "$as_me: error: working directory cannot be determined" >&2
7a197a62
AK
1353 { (exit 1); exit 1; }; }
1354test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
ec6a6fbe 1355 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
7a197a62
AK
1356 { (exit 1); exit 1; }; }
1357
1358
795ca3e5
AK
1359# Find the source files, if location was not specified.
1360if test -z "$srcdir"; then
1361 ac_srcdir_defaulted=yes
7a197a62 1362 # Try the directory containing this script, then the parent directory.
ec6a6fbe
AK
1363 ac_confdir=`$as_dirname -- "$as_myself" ||
1364$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1365 X"$as_myself" : 'X\(//\)[^/]' \| \
1366 X"$as_myself" : 'X\(//\)$' \| \
1367 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1368$as_echo X"$as_myself" |
7a197a62
AK
1369 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1370 s//\1/
1371 q
1372 }
1373 /^X\(\/\/\)[^/].*/{
1374 s//\1/
1375 q
1376 }
1377 /^X\(\/\/\)$/{
1378 s//\1/
1379 q
1380 }
1381 /^X\(\/\).*/{
1382 s//\1/
1383 q
1384 }
1385 s/.*/./; q'`
795ca3e5 1386 srcdir=$ac_confdir
7a197a62 1387 if test ! -r "$srcdir/$ac_unique_file"; then
795ca3e5
AK
1388 srcdir=..
1389 fi
1390else
1391 ac_srcdir_defaulted=no
1392fi
7a197a62
AK
1393if test ! -r "$srcdir/$ac_unique_file"; then
1394 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
ec6a6fbe 1395 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
ad6254c5 1396 { (exit 1); exit 1; }; }
795ca3e5 1397fi
7a197a62
AK
1398ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1399ac_abs_confdir=`(
ec6a6fbe 1400 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
ad6254c5 1401 { (exit 1); exit 1; }; }
7a197a62
AK
1402 pwd)`
1403# When building in place, set srcdir=.
1404if test "$ac_abs_confdir" = "$ac_pwd"; then
1405 srcdir=.
1406fi
1407# Remove unnecessary trailing slashes from srcdir.
1408# Double slashes in file names in object file debugging info
1409# mess up M-x gdb in Emacs.
1410case $srcdir in
1411*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1412esac
1413for ac_var in $ac_precious_vars; do
1414 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1415 eval ac_env_${ac_var}_value=\$${ac_var}
1416 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1417 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1418done
ad6254c5
AK
1419
1420#
1421# Report the --help message.
1422#
1423if test "$ac_init_help" = "long"; then
1424 # Omit some internal or obsolete options to make the list less imposing.
1425 # This message is too long to be a string in the A/UX 3.1 sh.
1426 cat <<_ACEOF
1427\`configure' configures this package to adapt to many kinds of systems.
1428
1429Usage: $0 [OPTION]... [VAR=VALUE]...
1430
1431To assign environment variables (e.g., CC, CFLAGS...), specify them as
1432VAR=VALUE. See below for descriptions of some of the useful variables.
1433
1434Defaults for the options are specified in brackets.
1435
1436Configuration:
1437 -h, --help display this help and exit
1438 --help=short display options specific to this package
1439 --help=recursive display the short help of all the included packages
1440 -V, --version display version information and exit
1441 -q, --quiet, --silent do not print \`checking...' messages
1442 --cache-file=FILE cache test results in FILE [disabled]
1443 -C, --config-cache alias for \`--cache-file=config.cache'
1444 -n, --no-create do not create output files
1445 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1446
ad6254c5
AK
1447Installation directories:
1448 --prefix=PREFIX install architecture-independent files in PREFIX
ec6a6fbe 1449 [$ac_default_prefix]
ad6254c5 1450 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
ec6a6fbe 1451 [PREFIX]
ad6254c5
AK
1452
1453By default, \`make install' will install all the files in
1454\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1455an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1456for instance \`--prefix=\$HOME'.
1457
1458For better control, use the options below.
1459
1460Fine tuning of the installation directories:
ec6a6fbe
AK
1461 --bindir=DIR user executables [EPREFIX/bin]
1462 --sbindir=DIR system admin executables [EPREFIX/sbin]
1463 --libexecdir=DIR program executables [EPREFIX/libexec]
1464 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1465 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1466 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1467 --libdir=DIR object code libraries [EPREFIX/lib]
1468 --includedir=DIR C header files [PREFIX/include]
1469 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1470 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1471 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1472 --infodir=DIR info documentation [DATAROOTDIR/info]
1473 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1474 --mandir=DIR man documentation [DATAROOTDIR/man]
1475 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1476 --htmldir=DIR html documentation [DOCDIR]
1477 --dvidir=DIR dvi documentation [DOCDIR]
1478 --pdfdir=DIR pdf documentation [DOCDIR]
1479 --psdir=DIR ps documentation [DOCDIR]
ad6254c5
AK
1480_ACEOF
1481
1482 cat <<\_ACEOF
1483
1484System types:
1485 --build=BUILD configure for building on BUILD [guessed]
1486 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1487 --target=TARGET configure for building compilers for TARGET [HOST]
1488_ACEOF
1489fi
1490
1491if test -n "$ac_init_help"; then
1492
1493 cat <<\_ACEOF
1494
1495Optional Features:
ec6a6fbe 1496 --disable-option-checking ignore unrecognized --enable/--with options
ad6254c5
AK
1497 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1498 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
9c961554
MB
1499 --enable-static_link Use this to link the tools to their libraries
1500 statically. Default is dynamic linking
ad6254c5
AK
1501 --enable-lvm1_fallback Use this to fall back and use LVM1 binaries if
1502 device-mapper is missing from the kernel
1b523347 1503 --disable-readline Disable readline support
3d978351 1504 --disable-realtime Disable realtime clock support
a946372e 1505 --enable-clogd Enable the cluster log daemon
ad6254c5 1506 --enable-debug Enable debugging
5556819a 1507 --enable-profiling Gather gcov profiling data
93bd259b 1508 --disable-devmapper Disable LVM2 device-mapper interaction
a5f46f6a
AK
1509 --enable-udev_sync Enable synchronisation with udev processing
1510 --enable-udev_rules Install rule files needed for udev synchronisation
93bd259b
AK
1511 --enable-compat Enable support for old device-mapper versions
1512 --disable-driver Disable calls to device-mapper in the kernel
ad6254c5 1513 --disable-o_direct Disable O_DIRECT
572fefeb 1514 --enable-applib Build application library
ad6254c5 1515 --enable-cmdlib Build shared command library
93bd259b 1516 --enable-pkgconfig Install pkgconfig support
ad6254c5 1517 --enable-fsadm Enable fsadm
15d91f5a 1518 --enable-dmeventd Enable the device-mapper event daemon
d0191583 1519 --disable-selinux Disable selinux support
ad6254c5
AK
1520 --enable-nls Enable Native Language Support
1521
1522Optional Packages:
1523 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1524 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
d0191583
JM
1525 --with-user=USER Set the owner of installed files [USER=root]
1526 --with-group=GROUP Set the group owner of installed files [GROUP=root]
24bbc4d7
AK
1527 --with-device-uid=UID Set the owner used for new device nodes [UID=0]
1528 --with-device-gid=UID Set the group used for new device nodes [GID=0]
93bd259b 1529 --with-device-mode=MODE Set the mode used for new device nodes [MODE=0600]
ad6254c5
AK
1530 --with-lvm1=TYPE LVM1 metadata support: internal/shared/none
1531 TYPE=internal
1532 --with-pool=TYPE GFS pool read-only support: internal/shared/none
1533 TYPE=internal
1534 --with-cluster=TYPE Cluster LVM locking support: internal/shared/none
1535 TYPE=internal
1536 --with-snapshots=TYPE Snapshot support: internal/shared/none
1537 TYPE=internal
1538 --with-mirrors=TYPE Mirror support: internal/shared/none
1539 TYPE=internal
a946372e
AK
1540 --with-clvmd=TYPE Build cluster LVM Daemon.
1541 The following locking combinations are valid:
1542 * cman,gulm (RHEL4 or equivalent)
1543 * cman (RHEL5 or equivalent)
1544 * cman,corosync,openais (or selection of them)
1545 * all (autodetect)
1546 * none (disable build)
a266258f 1547 TYPE=none
d0191583
JM
1548 --with-optimisation=OPT C optimisation flag [OPT=-O2]
1549 --with-localedir=DIR Translation files in DIR [PREFIX/share/locale]
a5f46f6a
AK
1550 --with-confdir=DIR Configuration files in DIR [/etc]
1551 --with-staticdir=DIR Static binary in DIR [EPREFIX/sbin]
68f2de6d
AK
1552 --with-usrlibdir=DIR
1553 --with-usrsbindir=DIR
a5f46f6a 1554 --with-udev-prefix=UPREFIX Install udev rule files in UPREFIX [EPREFIX]
78ce7acc 1555 --with-udevdir=DIR udev rules in DIR [UPREFIX/lib/udev/rules.d]
93bd259b 1556 --with-dmeventd-pidfile=PATH dmeventd pidfile [/var/run/dmeventd.pid]
a5f46f6a 1557 --with-dmeventd-path=PATH dmeventd path [EPREFIX/sbin/dmeventd]
93bd259b 1558 --with-interface=IFACE Choose kernel interface (ioctl) [ioctl]
ad6254c5
AK
1559
1560Some influential environment variables:
1561 CC C compiler command
1562 CFLAGS C compiler flags
1563 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1564 nonstandard directory <lib dir>
25fbec5b 1565 LIBS libraries to pass to the linker, e.g. -l<library>
7a197a62
AK
1566 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1567 you have headers in a nonstandard directory <include dir>
ad6254c5 1568 CPP C preprocessor
e2997b73 1569 PKG_CONFIG path to pkg-config utility
a946372e
AK
1570 PKGCONFIGINIT_CFLAGS
1571 C compiler flags for PKGCONFIGINIT, overriding pkg-config
1572 PKGCONFIGINIT_LIBS
1573 linker flags for PKGCONFIGINIT, overriding pkg-config
1574 CCS_CFLAGS C compiler flags for CCS, overriding pkg-config
1575 CCS_LIBS linker flags for CCS, overriding pkg-config
1576 GULM_CFLAGS C compiler flags for GULM, overriding pkg-config
1577 GULM_LIBS linker flags for GULM, overriding pkg-config
1578 CMAN_CFLAGS C compiler flags for CMAN, overriding pkg-config
1579 CMAN_LIBS linker flags for CMAN, overriding pkg-config
1580 COROSYNC_CFLAGS
1581 C compiler flags for COROSYNC, overriding pkg-config
1582 COROSYNC_LIBS
1583 linker flags for COROSYNC, overriding pkg-config
e2997b73
AK
1584 QUORUM_CFLAGS
1585 C compiler flags for QUORUM, overriding pkg-config
1586 QUORUM_LIBS linker flags for QUORUM, overriding pkg-config
a946372e
AK
1587 SALCK_CFLAGS
1588 C compiler flags for SALCK, overriding pkg-config
1589 SALCK_LIBS linker flags for SALCK, overriding pkg-config
e2997b73
AK
1590 CONFDB_CFLAGS
1591 C compiler flags for CONFDB, overriding pkg-config
1592 CONFDB_LIBS linker flags for CONFDB, overriding pkg-config
1593 CPG_CFLAGS C compiler flags for CPG, overriding pkg-config
1594 CPG_LIBS linker flags for CPG, overriding pkg-config
a946372e
AK
1595 DLM_CFLAGS C compiler flags for DLM, overriding pkg-config
1596 DLM_LIBS linker flags for DLM, overriding pkg-config
ad6254c5
AK
1597
1598Use these variables to override the choices made by `configure' or to help
1599it to find libraries and programs with nonstandard names/locations.
1600
1601_ACEOF
7a197a62 1602ac_status=$?
ad6254c5
AK
1603fi
1604
1605if test "$ac_init_help" = "recursive"; then
1606 # If there are subdirs, report their specific --help.
ad6254c5 1607 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
ec6a6fbe
AK
1608 test -d "$ac_dir" ||
1609 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1610 continue
ad6254c5
AK
1611 ac_builddir=.
1612
7a197a62
AK
1613case "$ac_dir" in
1614.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1615*)
ec6a6fbe 1616 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7a197a62 1617 # A ".." for each directory in $ac_dir_suffix.
ec6a6fbe 1618 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7a197a62
AK
1619 case $ac_top_builddir_sub in
1620 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1621 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1622 esac ;;
1623esac
1624ac_abs_top_builddir=$ac_pwd
1625ac_abs_builddir=$ac_pwd$ac_dir_suffix
1626# for backward compatibility:
1627ac_top_builddir=$ac_top_build_prefix
ad6254c5
AK
1628
1629case $srcdir in
7a197a62 1630 .) # We are building in place.
ad6254c5 1631 ac_srcdir=.
7a197a62
AK
1632 ac_top_srcdir=$ac_top_builddir_sub
1633 ac_abs_top_srcdir=$ac_pwd ;;
1634 [\\/]* | ?:[\\/]* ) # Absolute name.
ad6254c5 1635 ac_srcdir=$srcdir$ac_dir_suffix;
7a197a62
AK
1636 ac_top_srcdir=$srcdir
1637 ac_abs_top_srcdir=$srcdir ;;
1638 *) # Relative name.
1639 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1640 ac_top_srcdir=$ac_top_build_prefix$srcdir
1641 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8a2fc586 1642esac
7a197a62
AK
1643ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1644
1645 cd "$ac_dir" || { ac_status=$?; continue; }
1646 # Check for guested configure.
1647 if test -f "$ac_srcdir/configure.gnu"; then
1648 echo &&
1649 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1650 elif test -f "$ac_srcdir/configure"; then
1651 echo &&
1652 $SHELL "$ac_srcdir/configure" --help=recursive
ad6254c5 1653 else
ec6a6fbe 1654 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
7a197a62
AK
1655 fi || ac_status=$?
1656 cd "$ac_pwd" || { ac_status=$?; break; }
ad6254c5
AK
1657 done
1658fi
1659
7a197a62 1660test -n "$ac_init_help" && exit $ac_status
ad6254c5
AK
1661if $ac_init_version; then
1662 cat <<\_ACEOF
7a197a62 1663configure
ec6a6fbe 1664generated by GNU Autoconf 2.63
ad6254c5 1665
7a197a62 1666Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
ec6a6fbe 16672002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
ad6254c5
AK
1668This configure script is free software; the Free Software Foundation
1669gives unlimited permission to copy, distribute and modify it.
1670_ACEOF
7a197a62 1671 exit
ad6254c5 1672fi
7a197a62 1673cat >config.log <<_ACEOF
ad6254c5
AK
1674This file contains any messages produced by compilers while
1675running configure, to aid debugging if configure makes a mistake.
1676
1677It was created by $as_me, which was
ec6a6fbe 1678generated by GNU Autoconf 2.63. Invocation command line was
ad6254c5
AK
1679
1680 $ $0 $@
1681
1682_ACEOF
7a197a62 1683exec 5>>config.log
ad6254c5
AK
1684{
1685cat <<_ASUNAME
1686## --------- ##
1687## Platform. ##
1688## --------- ##
1689
1690hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1691uname -m = `(uname -m) 2>/dev/null || echo unknown`
1692uname -r = `(uname -r) 2>/dev/null || echo unknown`
1693uname -s = `(uname -s) 2>/dev/null || echo unknown`
1694uname -v = `(uname -v) 2>/dev/null || echo unknown`
1695
1696/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1697/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1698
1699/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1700/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1701/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
7a197a62 1702/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
ad6254c5
AK
1703/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1704/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1705/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1706
1707_ASUNAME
1708
1709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1710for as_dir in $PATH
1711do
1712 IFS=$as_save_IFS
1713 test -z "$as_dir" && as_dir=.
ec6a6fbe 1714 $as_echo "PATH: $as_dir"
ad6254c5 1715done
7a197a62 1716IFS=$as_save_IFS
ad6254c5
AK
1717
1718} >&5
1719
1720cat >&5 <<_ACEOF
1721
1722
1723## ----------- ##
1724## Core tests. ##
1725## ----------- ##
1726
1727_ACEOF
1728
1729
1730# Keep a trace of the command line.
1731# Strip out --no-create and --no-recursion so they do not pile up.
1732# Strip out --silent because we don't want to record it for future runs.
1733# Also quote any args containing shell meta-characters.
1734# Make two passes to allow for proper duplicate-argument suppression.
1735ac_configure_args=
1736ac_configure_args0=
1737ac_configure_args1=
ad6254c5
AK
1738ac_must_keep_next=false
1739for ac_pass in 1 2
1740do
1741 for ac_arg
1742 do
1743 case $ac_arg in
1744 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1745 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1746 | -silent | --silent | --silen | --sile | --sil)
1747 continue ;;
7a197a62 1748 *\'*)
ec6a6fbe 1749 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
ad6254c5
AK
1750 esac
1751 case $ac_pass in
1752 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1753 2)
1754 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1755 if test $ac_must_keep_next = true; then
8a2fc586 1756 ac_must_keep_next=false # Got value, back to normal.
ad6254c5 1757 else
8a2fc586
AK
1758 case $ac_arg in
1759 *=* | --config-cache | -C | -disable-* | --disable-* \
1760 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1761 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1762 | -with-* | --with-* | -without-* | --without-* | --x)
1763 case "$ac_configure_args0 " in
1764 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1765 esac
1766 ;;
1767 -* ) ac_must_keep_next=true ;;
1768 esac
ad6254c5 1769 fi
7a197a62 1770 ac_configure_args="$ac_configure_args '$ac_arg'"
ad6254c5
AK
1771 ;;
1772 esac
1773 done
1774done
1775$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1776$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1777
1778# When interrupted or exit'd, cleanup temporary files, and complete
1779# config.log. We remove comments because anyway the quotes in there
1780# would cause problems or look ugly.
7a197a62
AK
1781# WARNING: Use '\'' to represent an apostrophe within the trap.
1782# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
ad6254c5
AK
1783trap 'exit_status=$?
1784 # Save into config.log some information that might help in debugging.
1785 {
1786 echo
1787
1788 cat <<\_ASBOX
1789## ---------------- ##
1790## Cache variables. ##
1791## ---------------- ##
1792_ASBOX
1793 echo
1794 # The following way of writing the cache mishandles newlines in values,
7a197a62
AK
1795(
1796 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1797 eval ac_val=\$$ac_var
1798 case $ac_val in #(
1799 *${as_nl}*)
1800 case $ac_var in #(
ec6a6fbe
AK
1801 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1802$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7a197a62
AK
1803 esac
1804 case $ac_var in #(
1805 _ | IFS | as_nl) ;; #(
ec6a6fbe 1806 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7a197a62
AK
1807 *) $as_unset $ac_var ;;
1808 esac ;;
1809 esac
1810 done
ad6254c5 1811 (set) 2>&1 |
7a197a62
AK
1812 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1813 *${as_nl}ac_space=\ *)
ad6254c5 1814 sed -n \
7a197a62
AK
1815 "s/'\''/'\''\\\\'\'''\''/g;
1816 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1817 ;; #(
ad6254c5 1818 *)
7a197a62 1819 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
ad6254c5 1820 ;;
7a197a62
AK
1821 esac |
1822 sort
1823)
ad6254c5
AK
1824 echo
1825
1826 cat <<\_ASBOX
1827## ----------------- ##
1828## Output variables. ##
1829## ----------------- ##
1830_ASBOX
1831 echo
1832 for ac_var in $ac_subst_vars
1833 do
7a197a62
AK
1834 eval ac_val=\$$ac_var
1835 case $ac_val in
ec6a6fbe 1836 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
7a197a62 1837 esac
ec6a6fbe 1838 $as_echo "$ac_var='\''$ac_val'\''"
ad6254c5
AK
1839 done | sort
1840 echo
1841
1842 if test -n "$ac_subst_files"; then
1843 cat <<\_ASBOX
7a197a62
AK
1844## ------------------- ##
1845## File substitutions. ##
1846## ------------------- ##
ad6254c5
AK
1847_ASBOX
1848 echo
1849 for ac_var in $ac_subst_files
1850 do
7a197a62
AK
1851 eval ac_val=\$$ac_var
1852 case $ac_val in
ec6a6fbe 1853 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
7a197a62 1854 esac
ec6a6fbe 1855 $as_echo "$ac_var='\''$ac_val'\''"
ad6254c5
AK
1856 done | sort
1857 echo
1858 fi
1859
1860 if test -s confdefs.h; then
1861 cat <<\_ASBOX
1862## ----------- ##
1863## confdefs.h. ##
1864## ----------- ##
1865_ASBOX
1866 echo
7a197a62 1867 cat confdefs.h
ad6254c5
AK
1868 echo
1869 fi
1870 test "$ac_signal" != 0 &&
ec6a6fbe
AK
1871 $as_echo "$as_me: caught signal $ac_signal"
1872 $as_echo "$as_me: exit $exit_status"
ad6254c5 1873 } >&5
7a197a62
AK
1874 rm -f core *.core core.conftest.* &&
1875 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
ad6254c5 1876 exit $exit_status
7a197a62 1877' 0
ad6254c5
AK
1878for ac_signal in 1 2 13 15; do
1879 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1880done
1881ac_signal=0
1882
1883# confdefs.h avoids OS command line length limits that DEFS can exceed.
7a197a62 1884rm -f -r conftest* confdefs.h
ad6254c5
AK
1885
1886# Predefined preprocessor variables.
1887
1888cat >>confdefs.h <<_ACEOF
1889#define PACKAGE_NAME "$PACKAGE_NAME"
1890_ACEOF
1891
1892
1893cat >>confdefs.h <<_ACEOF
1894#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1895_ACEOF
1896
1897
1898cat >>confdefs.h <<_ACEOF
1899#define PACKAGE_VERSION "$PACKAGE_VERSION"
1900_ACEOF
8106cdd5 1901
ad6254c5
AK
1902
1903cat >>confdefs.h <<_ACEOF
1904#define PACKAGE_STRING "$PACKAGE_STRING"
1905_ACEOF
1906
1907
1908cat >>confdefs.h <<_ACEOF
1909#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1910_ACEOF
1911
1912
1913# Let the site file select an alternate cache file if it wants to.
ec6a6fbe
AK
1914# Prefer an explicitly selected file to automatically selected ones.
1915ac_site_file1=NONE
1916ac_site_file2=NONE
7a197a62 1917if test -n "$CONFIG_SITE"; then
ec6a6fbe 1918 ac_site_file1=$CONFIG_SITE
7a197a62 1919elif test "x$prefix" != xNONE; then
ec6a6fbe
AK
1920 ac_site_file1=$prefix/share/config.site
1921 ac_site_file2=$prefix/etc/config.site
7a197a62 1922else
ec6a6fbe
AK
1923 ac_site_file1=$ac_default_prefix/share/config.site
1924 ac_site_file2=$ac_default_prefix/etc/config.site
795ca3e5 1925fi
ec6a6fbe 1926for ac_site_file in "$ac_site_file1" "$ac_site_file2"
7a197a62 1927do
ec6a6fbe 1928 test "x$ac_site_file" = xNONE && continue
795ca3e5 1929 if test -r "$ac_site_file"; then
ec6a6fbe
AK
1930 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1931$as_echo "$as_me: loading site script $ac_site_file" >&6;}
ad6254c5 1932 sed 's/^/| /' "$ac_site_file" >&5
795ca3e5
AK
1933 . "$ac_site_file"
1934 fi
1935done
1936
1937if test -r "$cache_file"; then
ad6254c5
AK
1938 # Some versions of bash will fail to source /dev/null (special
1939 # files actually), so we avoid doing that.
1940 if test -f "$cache_file"; then
ec6a6fbe
AK
1941 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1942$as_echo "$as_me: loading cache $cache_file" >&6;}
ad6254c5 1943 case $cache_file in
7a197a62
AK
1944 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1945 *) . "./$cache_file";;
ad6254c5
AK
1946 esac
1947 fi
795ca3e5 1948else
ec6a6fbe
AK
1949 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1950$as_echo "$as_me: creating cache $cache_file" >&6;}
ad6254c5
AK
1951 >$cache_file
1952fi
1953
1954# Check that the precious variables saved in the cache have kept the same
1955# value.
1956ac_cache_corrupted=false
7a197a62 1957for ac_var in $ac_precious_vars; do
ad6254c5
AK
1958 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1959 eval ac_new_set=\$ac_env_${ac_var}_set
7a197a62
AK
1960 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1961 eval ac_new_val=\$ac_env_${ac_var}_value
ad6254c5
AK
1962 case $ac_old_set,$ac_new_set in
1963 set,)
ec6a6fbe
AK
1964 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1965$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
ad6254c5
AK
1966 ac_cache_corrupted=: ;;
1967 ,set)
ec6a6fbe
AK
1968 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1969$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
ad6254c5
AK
1970 ac_cache_corrupted=: ;;
1971 ,);;
1972 *)
1973 if test "x$ac_old_val" != "x$ac_new_val"; then
ec6a6fbe
AK
1974 # differences in whitespace do not lead to failure.
1975 ac_old_val_w=`echo x $ac_old_val`
1976 ac_new_val_w=`echo x $ac_new_val`
1977 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1978 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1979$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1980 ac_cache_corrupted=:
1981 else
1982 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1983$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1984 eval $ac_var=\$ac_old_val
1985 fi
1986 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1987$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1988 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1989$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
ad6254c5
AK
1990 fi;;
1991 esac
1992 # Pass precious variables to config.status.
1993 if test "$ac_new_set" = set; then
1994 case $ac_new_val in
ec6a6fbe 1995 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
ad6254c5
AK
1996 *) ac_arg=$ac_var=$ac_new_val ;;
1997 esac
1998 case " $ac_configure_args " in
1999 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2000 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2001 esac
2002 fi
2003done
2004if $ac_cache_corrupted; then
ec6a6fbe
AK
2005 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2006$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2007 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2008$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2009 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2010$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
ad6254c5 2011 { (exit 1); exit 1; }; }
795ca3e5
AK
2012fi
2013
ad6254c5
AK
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
7a197a62
AK
2030ac_ext=c
2031ac_cpp='$CPP $CPPFLAGS'
2032ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2033ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2034ac_compiler_gnu=$ac_cv_c_compiler_gnu
ad6254c5 2035
795ca3e5
AK
2036
2037
7a197a62 2038ac_config_headers="$ac_config_headers lib/misc/configure.h"
72b2cb61
AK
2039
2040
80992638 2041################################################################################
795ca3e5 2042ac_aux_dir=
7a197a62
AK
2043for ac_dir in autoconf "$srcdir"/autoconf; do
2044 if test -f "$ac_dir/install-sh"; then
795ca3e5
AK
2045 ac_aux_dir=$ac_dir
2046 ac_install_sh="$ac_aux_dir/install-sh -c"
2047 break
7a197a62 2048 elif test -f "$ac_dir/install.sh"; then
795ca3e5
AK
2049 ac_aux_dir=$ac_dir
2050 ac_install_sh="$ac_aux_dir/install.sh -c"
2051 break
7a197a62 2052 elif test -f "$ac_dir/shtool"; then
ad6254c5
AK
2053 ac_aux_dir=$ac_dir
2054 ac_install_sh="$ac_aux_dir/shtool install -c"
2055 break
795ca3e5
AK
2056 fi
2057done
2058if test -z "$ac_aux_dir"; then
ec6a6fbe
AK
2059 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2060$as_echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
ad6254c5 2061 { (exit 1); exit 1; }; }
795ca3e5 2062fi
7a197a62
AK
2063
2064# These three variables are undocumented and unsupported,
2065# and are intended to be withdrawn in a future Autoconf release.
2066# They can cause serious problems if a builder's source tree is in a directory
2067# whose full name contains unusual characters.
2068ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2069ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2070ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2071
8ce0cbda
AK
2072
2073
ad6254c5 2074################################################################################
8ce0cbda 2075# Make sure we can run config.sub.
7a197a62 2076$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
ec6a6fbe
AK
2077 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2078$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
ad6254c5
AK
2079 { (exit 1); exit 1; }; }
2080
ec6a6fbe
AK
2081{ $as_echo "$as_me:$LINENO: checking build system type" >&5
2082$as_echo_n "checking build system type... " >&6; }
ad6254c5 2083if test "${ac_cv_build+set}" = set; then
ec6a6fbe 2084 $as_echo_n "(cached) " >&6
ad6254c5 2085else
7a197a62
AK
2086 ac_build_alias=$build_alias
2087test "x$ac_build_alias" = x &&
2088 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2089test "x$ac_build_alias" = x &&
ec6a6fbe
AK
2090 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2091$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
ad6254c5 2092 { (exit 1); exit 1; }; }
7a197a62 2093ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
ec6a6fbe
AK
2094 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2095$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
ad6254c5
AK
2096 { (exit 1); exit 1; }; }
2097
2098fi
ec6a6fbe
AK
2099{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2100$as_echo "$ac_cv_build" >&6; }
7a197a62
AK
2101case $ac_cv_build in
2102*-*-*) ;;
ec6a6fbe
AK
2103*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2104$as_echo "$as_me: error: invalid value of canonical build" >&2;}
7a197a62
AK
2105 { (exit 1); exit 1; }; };;
2106esac
ad6254c5 2107build=$ac_cv_build
7a197a62
AK
2108ac_save_IFS=$IFS; IFS='-'
2109set x $ac_cv_build
2110shift
2111build_cpu=$1
2112build_vendor=$2
2113shift; shift
2114# Remember, the first character of IFS is used to create $*,
2115# except with old shells:
2116build_os=$*
2117IFS=$ac_save_IFS
2118case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
ad6254c5
AK
2119
2120
ec6a6fbe
AK
2121{ $as_echo "$as_me:$LINENO: checking host system type" >&5
2122$as_echo_n "checking host system type... " >&6; }
ad6254c5 2123if test "${ac_cv_host+set}" = set; then
ec6a6fbe 2124 $as_echo_n "(cached) " >&6
ad6254c5 2125else
7a197a62
AK
2126 if test "x$host_alias" = x; then
2127 ac_cv_host=$ac_cv_build
2128else
2129 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
ec6a6fbe
AK
2130 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2131$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
ad6254c5 2132 { (exit 1); exit 1; }; }
7a197a62 2133fi
ad6254c5
AK
2134
2135fi
ec6a6fbe
AK
2136{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2137$as_echo "$ac_cv_host" >&6; }
7a197a62
AK
2138case $ac_cv_host in
2139*-*-*) ;;
ec6a6fbe
AK
2140*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2141$as_echo "$as_me: error: invalid value of canonical host" >&2;}
7a197a62
AK
2142 { (exit 1); exit 1; }; };;
2143esac
ad6254c5 2144host=$ac_cv_host
7a197a62
AK
2145ac_save_IFS=$IFS; IFS='-'
2146set x $ac_cv_host
2147shift
2148host_cpu=$1
2149host_vendor=$2
2150shift; shift
2151# Remember, the first character of IFS is used to create $*,
2152# except with old shells:
2153host_os=$*
2154IFS=$ac_save_IFS
2155case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
ad6254c5
AK
2156
2157
ec6a6fbe
AK
2158{ $as_echo "$as_me:$LINENO: checking target system type" >&5
2159$as_echo_n "checking target system type... " >&6; }
ad6254c5 2160if test "${ac_cv_target+set}" = set; then
ec6a6fbe 2161 $as_echo_n "(cached) " >&6
ad6254c5 2162else
7a197a62
AK
2163 if test "x$target_alias" = x; then
2164 ac_cv_target=$ac_cv_host
2165else
2166 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
ec6a6fbe
AK
2167 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2168$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
ad6254c5 2169 { (exit 1); exit 1; }; }
7a197a62 2170fi
8ce0cbda 2171
ad6254c5 2172fi
ec6a6fbe
AK
2173{ $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2174$as_echo "$ac_cv_target" >&6; }
7a197a62
AK
2175case $ac_cv_target in
2176*-*-*) ;;
ec6a6fbe
AK
2177*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2178$as_echo "$as_me: error: invalid value of canonical target" >&2;}
7a197a62
AK
2179 { (exit 1); exit 1; }; };;
2180esac
ad6254c5 2181target=$ac_cv_target
7a197a62
AK
2182ac_save_IFS=$IFS; IFS='-'
2183set x $ac_cv_target
2184shift
2185target_cpu=$1
2186target_vendor=$2
2187shift; shift
2188# Remember, the first character of IFS is used to create $*,
2189# except with old shells:
2190target_os=$*
2191IFS=$ac_save_IFS
2192case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
8ce0cbda 2193
8ce0cbda 2194
ad6254c5
AK
2195# The aliases save the names the user supplied, while $host etc.
2196# will get canonicalized.
2197test -n "$target_alias" &&
8ce0cbda
AK
2198 test "$program_prefix$program_suffix$program_transform_name" = \
2199 NONENONEs,x,x, &&
2200 program_prefix=${target_alias}-
2201
8ce0cbda
AK
2202case "$host_os" in
2203 linux*)
7f54ef36 2204 CFLAGS="$CFLAGS"
8ce0cbda
AK
2205 COPTIMISE_FLAG="-O2"
2206 CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym"
2207 CLDWHOLEARCHIVE="-Wl,-whole-archive"
2208 CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive"
2209 LDDEPS="$LDDEPS .export.sym"
2210 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
d0191583 2211 LIB_SUFFIX=so
8ce0cbda
AK
2212 DEVMAPPER=yes
2213 ODIRECT=yes
d0191583 2214 DM_IOCTLS=yes
8ce0cbda 2215 SELINUX=yes
8b1a3214 2216 REALTIME=yes
8ce0cbda 2217 CLUSTER=internal
93bd259b 2218 FSADM=yes
d0191583 2219 ;;
8ce0cbda
AK
2220 darwin*)
2221 CFLAGS="$CFLAGS -no-cpp-precomp -fno-common"
2222 COPTIMISE_FLAG="-O2"
2223 CLDFLAGS="$CLDFLAGS"
2224 CLDWHOLEARCHIVE="-all_load"
2225 CLDNOWHOLEARCHIVE=
d0191583 2226 LIB_SUFFIX=dylib
a653923f 2227 DEVMAPPER=yes
8ce0cbda 2228 ODIRECT=no
d0191583 2229 DM_IOCTLS=no
8ce0cbda 2230 SELINUX=no
8b1a3214 2231 REALTIME=no
8ce0cbda 2232 CLUSTER=none
d0191583
JM
2233 FSADM=no
2234 ;;
8ce0cbda
AK
2235esac
2236
80992638 2237################################################################################
ec6a6fbe
AK
2238{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
2239$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5951ef33 2240if test "${ac_cv_path_SED+set}" = set; then
ec6a6fbe 2241 $as_echo_n "(cached) " >&6
5951ef33
AK
2242else
2243 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2244 for ac_i in 1 2 3 4 5 6 7; do
2245 ac_script="$ac_script$as_nl$ac_script"
2246 done
ec6a6fbe 2247 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5951ef33 2248 $as_unset ac_script || ac_script=
ec6a6fbe 2249 if test -z "$SED"; then
5951ef33 2250 ac_path_SED_found=false
ec6a6fbe
AK
2251 # Loop through the user's path and test for each of PROGNAME-LIST
2252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5951ef33
AK
2253for as_dir in $PATH
2254do
2255 IFS=$as_save_IFS
2256 test -z "$as_dir" && as_dir=.
2257 for ac_prog in sed gsed; do
ec6a6fbe
AK
2258 for ac_exec_ext in '' $ac_executable_extensions; do
2259 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2260 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2261# Check for GNU ac_path_SED and select it if it is found.
5951ef33
AK
2262 # Check for GNU $ac_path_SED
2263case `"$ac_path_SED" --version 2>&1` in
2264*GNU*)
2265 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2266*)
2267 ac_count=0
ec6a6fbe 2268 $as_echo_n 0123456789 >"conftest.in"
5951ef33
AK
2269 while :
2270 do
2271 cat "conftest.in" "conftest.in" >"conftest.tmp"
2272 mv "conftest.tmp" "conftest.in"
2273 cp "conftest.in" "conftest.nl"
ec6a6fbe 2274 $as_echo '' >> "conftest.nl"
5951ef33
AK
2275 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2276 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2277 ac_count=`expr $ac_count + 1`
2278 if test $ac_count -gt ${ac_path_SED_max-0}; then
2279 # Best one so far, save it but keep looking for a better one
2280 ac_cv_path_SED="$ac_path_SED"
2281 ac_path_SED_max=$ac_count
2282 fi
2283 # 10*(2^10) chars as input seems more than enough
2284 test $ac_count -gt 10 && break
2285 done
2286 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2287esac
2288
ec6a6fbe
AK
2289 $ac_path_SED_found && break 3
2290 done
5951ef33
AK
2291 done
2292done
5951ef33 2293IFS=$as_save_IFS
ec6a6fbe
AK
2294 if test -z "$ac_cv_path_SED"; then
2295 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
2296$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
5951ef33 2297 { (exit 1); exit 1; }; }
ec6a6fbe 2298 fi
5951ef33
AK
2299else
2300 ac_cv_path_SED=$SED
2301fi
2302
2303fi
ec6a6fbe
AK
2304{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
2305$as_echo "$ac_cv_path_SED" >&6; }
5951ef33
AK
2306 SED="$ac_cv_path_SED"
2307 rm -f conftest.sed
2308
ad6254c5 2309for ac_prog in gawk mawk nawk awk
795ca3e5 2310do
ad6254c5 2311 # Extract the first word of "$ac_prog", so it can be a program name with args.
795ca3e5 2312set dummy $ac_prog; ac_word=$2
ec6a6fbe
AK
2313{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2314$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2315if test "${ac_cv_prog_AWK+set}" = set; then
ec6a6fbe 2316 $as_echo_n "(cached) " >&6
795ca3e5
AK
2317else
2318 if test -n "$AWK"; then
2319 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2320else
ad6254c5
AK
2321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2322for as_dir in $PATH
2323do
2324 IFS=$as_save_IFS
2325 test -z "$as_dir" && as_dir=.
2326 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2328 ac_cv_prog_AWK="$ac_prog"
ec6a6fbe 2329 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2330 break 2
2331 fi
2332done
2333done
7a197a62 2334IFS=$as_save_IFS
ad6254c5 2335
795ca3e5
AK
2336fi
2337fi
ad6254c5 2338AWK=$ac_cv_prog_AWK
795ca3e5 2339if test -n "$AWK"; then
ec6a6fbe
AK
2340 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2341$as_echo "$AWK" >&6; }
795ca3e5 2342else
ec6a6fbe
AK
2343 { $as_echo "$as_me:$LINENO: result: no" >&5
2344$as_echo "no" >&6; }
795ca3e5
AK
2345fi
2346
7a197a62 2347
ad6254c5
AK
2348 test -n "$AWK" && break
2349done
2350
2351ac_ext=c
2352ac_cpp='$CPP $CPPFLAGS'
2353ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2354ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2355ac_compiler_gnu=$ac_cv_c_compiler_gnu
2356if test -n "$ac_tool_prefix"; then
2357 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2358set dummy ${ac_tool_prefix}gcc; ac_word=$2
ec6a6fbe
AK
2359{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2360$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2361if test "${ac_cv_prog_CC+set}" = set; then
ec6a6fbe 2362 $as_echo_n "(cached) " >&6
ad6254c5
AK
2363else
2364 if test -n "$CC"; then
2365 ac_cv_prog_CC="$CC" # Let the user override the test.
2366else
2367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2368for as_dir in $PATH
2369do
2370 IFS=$as_save_IFS
2371 test -z "$as_dir" && as_dir=.
2372 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2374 ac_cv_prog_CC="${ac_tool_prefix}gcc"
ec6a6fbe 2375 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2376 break 2
2377 fi
2378done
8106cdd5 2379done
7a197a62 2380IFS=$as_save_IFS
8106cdd5 2381
ad6254c5
AK
2382fi
2383fi
2384CC=$ac_cv_prog_CC
2385if test -n "$CC"; then
ec6a6fbe
AK
2386 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2387$as_echo "$CC" >&6; }
ad6254c5 2388else
ec6a6fbe
AK
2389 { $as_echo "$as_me:$LINENO: result: no" >&5
2390$as_echo "no" >&6; }
ad6254c5
AK
2391fi
2392
7a197a62 2393
ad6254c5
AK
2394fi
2395if test -z "$ac_cv_prog_CC"; then
2396 ac_ct_CC=$CC
2397 # Extract the first word of "gcc", so it can be a program name with args.
8106cdd5 2398set dummy gcc; ac_word=$2
ec6a6fbe
AK
2399{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2400$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2401if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
ec6a6fbe 2402 $as_echo_n "(cached) " >&6
ad6254c5
AK
2403else
2404 if test -n "$ac_ct_CC"; then
2405 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2406else
2407as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2408for as_dir in $PATH
2409do
2410 IFS=$as_save_IFS
2411 test -z "$as_dir" && as_dir=.
2412 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2414 ac_cv_prog_ac_ct_CC="gcc"
ec6a6fbe 2415 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2416 break 2
2417 fi
2418done
2419done
7a197a62 2420IFS=$as_save_IFS
ad6254c5
AK
2421
2422fi
2423fi
2424ac_ct_CC=$ac_cv_prog_ac_ct_CC
2425if test -n "$ac_ct_CC"; then
ec6a6fbe
AK
2426 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2427$as_echo "$ac_ct_CC" >&6; }
ad6254c5 2428else
ec6a6fbe
AK
2429 { $as_echo "$as_me:$LINENO: result: no" >&5
2430$as_echo "no" >&6; }
ad6254c5
AK
2431fi
2432
7a197a62
AK
2433 if test "x$ac_ct_CC" = x; then
2434 CC=""
2435 else
2436 case $cross_compiling:$ac_tool_warned in
2437yes:)
ec6a6fbe
AK
2438{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2439$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7a197a62
AK
2440ac_tool_warned=yes ;;
2441esac
2442 CC=$ac_ct_CC
2443 fi
ad6254c5
AK
2444else
2445 CC="$ac_cv_prog_CC"
2446fi
2447
2448if test -z "$CC"; then
7a197a62
AK
2449 if test -n "$ac_tool_prefix"; then
2450 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
ad6254c5 2451set dummy ${ac_tool_prefix}cc; ac_word=$2
ec6a6fbe
AK
2452{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2453$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2454if test "${ac_cv_prog_CC+set}" = set; then
ec6a6fbe 2455 $as_echo_n "(cached) " >&6
8106cdd5
AK
2456else
2457 if test -n "$CC"; then
2458 ac_cv_prog_CC="$CC" # Let the user override the test.
2459else
ad6254c5
AK
2460as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2461for as_dir in $PATH
2462do
2463 IFS=$as_save_IFS
2464 test -z "$as_dir" && as_dir=.
2465 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2467 ac_cv_prog_CC="${ac_tool_prefix}cc"
ec6a6fbe 2468 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2469 break 2
2470 fi
2471done
2472done
7a197a62 2473IFS=$as_save_IFS
ad6254c5 2474
8106cdd5
AK
2475fi
2476fi
ad6254c5 2477CC=$ac_cv_prog_CC
8106cdd5 2478if test -n "$CC"; then
ec6a6fbe
AK
2479 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2480$as_echo "$CC" >&6; }
ad6254c5 2481else
ec6a6fbe
AK
2482 { $as_echo "$as_me:$LINENO: result: no" >&5
2483$as_echo "no" >&6; }
ad6254c5
AK
2484fi
2485
8106cdd5 2486
7a197a62 2487 fi
ad6254c5 2488fi
795ca3e5
AK
2489if test -z "$CC"; then
2490 # Extract the first word of "cc", so it can be a program name with args.
2491set dummy cc; ac_word=$2
ec6a6fbe
AK
2492{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2493$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2494if test "${ac_cv_prog_CC+set}" = set; then
ec6a6fbe 2495 $as_echo_n "(cached) " >&6
795ca3e5
AK
2496else
2497 if test -n "$CC"; then
2498 ac_cv_prog_CC="$CC" # Let the user override the test.
2499else
795ca3e5 2500 ac_prog_rejected=no
ad6254c5
AK
2501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2502for as_dir in $PATH
2503do
2504 IFS=$as_save_IFS
2505 test -z "$as_dir" && as_dir=.
2506 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5
AK
2508 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2509 ac_prog_rejected=yes
2510 continue
2511 fi
2512 ac_cv_prog_CC="cc"
ec6a6fbe 2513 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2514 break 2
2515 fi
2516done
2517done
7a197a62 2518IFS=$as_save_IFS
ad6254c5 2519
795ca3e5
AK
2520if test $ac_prog_rejected = yes; then
2521 # We found a bogon in the path, so make sure we never use it.
2522 set dummy $ac_cv_prog_CC
2523 shift
ad6254c5 2524 if test $# != 0; then
795ca3e5
AK
2525 # We chose a different compiler from the bogus one.
2526 # However, it has the same basename, so the bogon will be chosen
2527 # first if we set CC to just the basename; use the full file name.
2528 shift
ad6254c5 2529 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
795ca3e5
AK
2530 fi
2531fi
2532fi
2533fi
ad6254c5 2534CC=$ac_cv_prog_CC
795ca3e5 2535if test -n "$CC"; then
ec6a6fbe
AK
2536 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2537$as_echo "$CC" >&6; }
795ca3e5 2538else
ec6a6fbe
AK
2539 { $as_echo "$as_me:$LINENO: result: no" >&5
2540$as_echo "no" >&6; }
795ca3e5
AK
2541fi
2542
7a197a62 2543
ad6254c5
AK
2544fi
2545if test -z "$CC"; then
2546 if test -n "$ac_tool_prefix"; then
7a197a62 2547 for ac_prog in cl.exe
ad6254c5
AK
2548 do
2549 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2550set dummy $ac_tool_prefix$ac_prog; ac_word=$2
ec6a6fbe
AK
2551{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2552$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2553if test "${ac_cv_prog_CC+set}" = set; then
ec6a6fbe 2554 $as_echo_n "(cached) " >&6
795ca3e5
AK
2555else
2556 if test -n "$CC"; then
2557 ac_cv_prog_CC="$CC" # Let the user override the test.
2558else
ad6254c5
AK
2559as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2560for as_dir in $PATH
2561do
2562 IFS=$as_save_IFS
2563 test -z "$as_dir" && as_dir=.
2564 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2566 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
ec6a6fbe 2567 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2568 break 2
2569 fi
2570done
2571done
7a197a62 2572IFS=$as_save_IFS
ad6254c5 2573
795ca3e5
AK
2574fi
2575fi
ad6254c5 2576CC=$ac_cv_prog_CC
795ca3e5 2577if test -n "$CC"; then
ec6a6fbe
AK
2578 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2579$as_echo "$CC" >&6; }
795ca3e5 2580else
ec6a6fbe
AK
2581 { $as_echo "$as_me:$LINENO: result: no" >&5
2582$as_echo "no" >&6; }
795ca3e5 2583fi
ad6254c5 2584
7a197a62 2585
ad6254c5
AK
2586 test -n "$CC" && break
2587 done
2588fi
2589if test -z "$CC"; then
2590 ac_ct_CC=$CC
7a197a62 2591 for ac_prog in cl.exe
ad6254c5
AK
2592do
2593 # Extract the first word of "$ac_prog", so it can be a program name with args.
2594set dummy $ac_prog; ac_word=$2
ec6a6fbe
AK
2595{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2596$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2597if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
ec6a6fbe 2598 $as_echo_n "(cached) " >&6
ad6254c5
AK
2599else
2600 if test -n "$ac_ct_CC"; then
2601 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2602else
2603as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2604for as_dir in $PATH
2605do
2606 IFS=$as_save_IFS
2607 test -z "$as_dir" && as_dir=.
2608 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2610 ac_cv_prog_ac_ct_CC="$ac_prog"
ec6a6fbe 2611 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5 2612 break 2
795ca3e5 2613 fi
ad6254c5
AK
2614done
2615done
7a197a62 2616IFS=$as_save_IFS
ad6254c5
AK
2617
2618fi
2619fi
2620ac_ct_CC=$ac_cv_prog_ac_ct_CC
2621if test -n "$ac_ct_CC"; then
ec6a6fbe
AK
2622 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2623$as_echo "$ac_ct_CC" >&6; }
ad6254c5 2624else
ec6a6fbe
AK
2625 { $as_echo "$as_me:$LINENO: result: no" >&5
2626$as_echo "no" >&6; }
795ca3e5
AK
2627fi
2628
7a197a62 2629
ad6254c5
AK
2630 test -n "$ac_ct_CC" && break
2631done
795ca3e5 2632
7a197a62
AK
2633 if test "x$ac_ct_CC" = x; then
2634 CC=""
2635 else
2636 case $cross_compiling:$ac_tool_warned in
2637yes:)
ec6a6fbe
AK
2638{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2639$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7a197a62
AK
2640ac_tool_warned=yes ;;
2641esac
2642 CC=$ac_ct_CC
2643 fi
ad6254c5
AK
2644fi
2645
2646fi
2647
2648
ec6a6fbe
AK
2649test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2650$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2651{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
ad6254c5 2652See \`config.log' for more details." >&5
ec6a6fbe 2653$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
ad6254c5 2654See \`config.log' for more details." >&2;}
ec6a6fbe 2655 { (exit 1); exit 1; }; }; }
ad6254c5
AK
2656
2657# Provide some information about the compiler.
ec6a6fbe
AK
2658$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2659set X $ac_compile
2660ac_compiler=$2
7a197a62
AK
2661{ (ac_try="$ac_compiler --version >&5"
2662case "(($ac_try" in
2663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2664 *) ac_try_echo=$ac_try;;
2665esac
ec6a6fbe
AK
2666eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2667$as_echo "$ac_try_echo") >&5
7a197a62 2668 (eval "$ac_compiler --version >&5") 2>&5
ad6254c5 2669 ac_status=$?
ec6a6fbe 2670 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2671 (exit $ac_status); }
7a197a62
AK
2672{ (ac_try="$ac_compiler -v >&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 -v >&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
AK
2693 (exit $ac_status); }
2694
2695cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2696/* confdefs.h. */
2697_ACEOF
2698cat confdefs.h >>conftest.$ac_ext
2699cat >>conftest.$ac_ext <<_ACEOF
2700/* end confdefs.h. */
2701
2702int
2703main ()
2704{
2705
2706 ;
2707 return 0;
2708}
2709_ACEOF
2710ac_clean_files_save=$ac_clean_files
ec6a6fbe 2711ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
ad6254c5
AK
2712# Try to create an executable without -o first, disregard a.out.
2713# It will help us diagnose broken compilers, and finding out an intuition
2714# of exeext.
ec6a6fbe
AK
2715{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2716$as_echo_n "checking for C compiler default output file name... " >&6; }
2717ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2718
2719# The possible output files:
2720ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2721
7a197a62
AK
2722ac_rmfiles=
2723for ac_file in $ac_files
2724do
2725 case $ac_file in
ec6a6fbe 2726 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
7a197a62
AK
2727 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2728 esac
2729done
2730rm -f $ac_rmfiles
2731
2732if { (ac_try="$ac_link_default"
2733case "(($ac_try" in
2734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2735 *) ac_try_echo=$ac_try;;
2736esac
ec6a6fbe
AK
2737eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2738$as_echo "$ac_try_echo") >&5
7a197a62 2739 (eval "$ac_link_default") 2>&5
ad6254c5 2740 ac_status=$?
ec6a6fbe 2741 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2742 (exit $ac_status); }; then
7a197a62
AK
2743 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2744# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2745# in a Makefile. We should not override ac_cv_exeext if it was cached,
2746# so that the user can short-circuit this test for compilers unknown to
2747# Autoconf.
25fbec5b 2748for ac_file in $ac_files ''
ad6254c5
AK
2749do
2750 test -f "$ac_file" || continue
2751 case $ac_file in
ec6a6fbe 2752 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
8a2fc586 2753 ;;
ad6254c5 2754 [ab].out )
8a2fc586
AK
2755 # We found the default executable, but exeext='' is most
2756 # certainly right.
2757 break;;
ad6254c5 2758 *.* )
7a197a62
AK
2759 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2760 then :; else
2761 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2762 fi
2763 # We set ac_cv_exeext here because the later test for it is not
2764 # safe: cross compilers may not add the suffix if given an `-o'
2765 # argument, so we may need to know it at that point already.
2766 # Even if this section looks crufty: it has the advantage of
2767 # actually working.
8a2fc586 2768 break;;
ad6254c5 2769 * )
8a2fc586 2770 break;;
ad6254c5
AK
2771 esac
2772done
7a197a62
AK
2773test "$ac_cv_exeext" = no && ac_cv_exeext=
2774
ad6254c5 2775else
25fbec5b
AK
2776 ac_file=''
2777fi
2778
ec6a6fbe
AK
2779{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2780$as_echo "$ac_file" >&6; }
25fbec5b 2781if test -z "$ac_file"; then
ec6a6fbe 2782 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
2783sed 's/^/| /' conftest.$ac_ext >&5
2784
ec6a6fbe
AK
2785{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2786$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2787{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
ad6254c5 2788See \`config.log' for more details." >&5
ec6a6fbe 2789$as_echo "$as_me: error: C compiler cannot create executables
ad6254c5 2790See \`config.log' for more details." >&2;}
ec6a6fbe 2791 { (exit 77); exit 77; }; }; }
ad6254c5
AK
2792fi
2793
2794ac_exeext=$ac_cv_exeext
ad6254c5 2795
7a197a62 2796# Check that the compiler produces executables we can run. If not, either
ad6254c5 2797# the compiler is broken, or we cross compile.
ec6a6fbe
AK
2798{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2799$as_echo_n "checking whether the C compiler works... " >&6; }
ad6254c5
AK
2800# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2801# If not cross compiling, check that we can run a simple program.
2802if test "$cross_compiling" != yes; then
2803 if { ac_try='./$ac_file'
7a197a62
AK
2804 { (case "(($ac_try" in
2805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2806 *) ac_try_echo=$ac_try;;
2807esac
ec6a6fbe
AK
2808eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2809$as_echo "$ac_try_echo") >&5
7a197a62 2810 (eval "$ac_try") 2>&5
ad6254c5 2811 ac_status=$?
ec6a6fbe 2812 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
2813 (exit $ac_status); }; }; then
2814 cross_compiling=no
795ca3e5 2815 else
ad6254c5
AK
2816 if test "$cross_compiling" = maybe; then
2817 cross_compiling=yes
2818 else
ec6a6fbe
AK
2819 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2820$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2821{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
ad6254c5
AK
2822If you meant to cross compile, use \`--host'.
2823See \`config.log' for more details." >&5
ec6a6fbe 2824$as_echo "$as_me: error: cannot run C compiled programs.
ad6254c5
AK
2825If you meant to cross compile, use \`--host'.
2826See \`config.log' for more details." >&2;}
ec6a6fbe 2827 { (exit 1); exit 1; }; }; }
ad6254c5 2828 fi
795ca3e5 2829 fi
80992638 2830fi
ec6a6fbe
AK
2831{ $as_echo "$as_me:$LINENO: result: yes" >&5
2832$as_echo "yes" >&6; }
ad6254c5 2833
ec6a6fbe 2834rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
ad6254c5 2835ac_clean_files=$ac_clean_files_save
7a197a62 2836# Check that the compiler produces executables we can run. If not, either
ad6254c5 2837# the compiler is broken, or we cross compile.
ec6a6fbe
AK
2838{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2839$as_echo_n "checking whether we are cross compiling... " >&6; }
2840{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2841$as_echo "$cross_compiling" >&6; }
7a197a62 2842
ec6a6fbe
AK
2843{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2844$as_echo_n "checking for suffix of executables... " >&6; }
7a197a62
AK
2845if { (ac_try="$ac_link"
2846case "(($ac_try" in
2847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2848 *) ac_try_echo=$ac_try;;
2849esac
ec6a6fbe
AK
2850eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2851$as_echo "$ac_try_echo") >&5
7a197a62 2852 (eval "$ac_link") 2>&5
ad6254c5 2853 ac_status=$?
ec6a6fbe 2854 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
2855 (exit $ac_status); }; then
2856 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2857# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2858# work properly (i.e., refer to `conftest.exe'), while it won't with
2859# `rm'.
2860for ac_file in conftest.exe conftest conftest.*; do
2861 test -f "$ac_file" || continue
2862 case $ac_file in
ec6a6fbe 2863 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
ad6254c5 2864 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
8a2fc586 2865 break;;
ad6254c5
AK
2866 * ) break;;
2867 esac
2868done
80992638 2869else
ec6a6fbe
AK
2870 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2871$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2872{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
ad6254c5 2873See \`config.log' for more details." >&5
ec6a6fbe 2874$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
ad6254c5 2875See \`config.log' for more details." >&2;}
ec6a6fbe 2876 { (exit 1); exit 1; }; }; }
ad6254c5
AK
2877fi
2878
2879rm -f conftest$ac_cv_exeext
ec6a6fbe
AK
2880{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2881$as_echo "$ac_cv_exeext" >&6; }
ad6254c5
AK
2882
2883rm -f conftest.$ac_ext
2884EXEEXT=$ac_cv_exeext
2885ac_exeext=$EXEEXT
ec6a6fbe
AK
2886{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2887$as_echo_n "checking for suffix of object files... " >&6; }
ad6254c5 2888if test "${ac_cv_objext+set}" = set; then
ec6a6fbe 2889 $as_echo_n "(cached) " >&6
795ca3e5 2890else
ad6254c5 2891 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2892/* confdefs.h. */
2893_ACEOF
2894cat confdefs.h >>conftest.$ac_ext
2895cat >>conftest.$ac_ext <<_ACEOF
2896/* end confdefs.h. */
2897
2898int
2899main ()
2900{
2901
2902 ;
2903 return 0;
2904}
2905_ACEOF
2906rm -f conftest.o conftest.obj
7a197a62
AK
2907if { (ac_try="$ac_compile"
2908case "(($ac_try" in
2909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2910 *) ac_try_echo=$ac_try;;
2911esac
ec6a6fbe
AK
2912eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2913$as_echo "$ac_try_echo") >&5
7a197a62 2914 (eval "$ac_compile") 2>&5
ad6254c5 2915 ac_status=$?
ec6a6fbe 2916 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2917 (exit $ac_status); }; then
7a197a62
AK
2918 for ac_file in conftest.o conftest.obj conftest.*; do
2919 test -f "$ac_file" || continue;
ad6254c5 2920 case $ac_file in
ec6a6fbe 2921 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
ad6254c5
AK
2922 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2923 break;;
2924 esac
2925done
2926else
ec6a6fbe 2927 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
2928sed 's/^/| /' conftest.$ac_ext >&5
2929
ec6a6fbe
AK
2930{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2931$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2932{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
ad6254c5 2933See \`config.log' for more details." >&5
ec6a6fbe 2934$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
ad6254c5 2935See \`config.log' for more details." >&2;}
ec6a6fbe 2936 { (exit 1); exit 1; }; }; }
ad6254c5
AK
2937fi
2938
2939rm -f conftest.$ac_cv_objext conftest.$ac_ext
2940fi
ec6a6fbe
AK
2941{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2942$as_echo "$ac_cv_objext" >&6; }
ad6254c5
AK
2943OBJEXT=$ac_cv_objext
2944ac_objext=$OBJEXT
ec6a6fbe
AK
2945{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2946$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
ad6254c5 2947if test "${ac_cv_c_compiler_gnu+set}" = set; then
ec6a6fbe 2948 $as_echo_n "(cached) " >&6
ad6254c5
AK
2949else
2950 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2951/* confdefs.h. */
2952_ACEOF
2953cat confdefs.h >>conftest.$ac_ext
2954cat >>conftest.$ac_ext <<_ACEOF
2955/* end confdefs.h. */
2956
2957int
2958main ()
2959{
2960#ifndef __GNUC__
2961 choke me
2962#endif
80992638 2963
ad6254c5
AK
2964 ;
2965 return 0;
2966}
2967_ACEOF
2968rm -f conftest.$ac_objext
7a197a62
AK
2969if { (ac_try="$ac_compile"
2970case "(($ac_try" in
2971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2972 *) ac_try_echo=$ac_try;;
2973esac
ec6a6fbe
AK
2974eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2975$as_echo "$ac_try_echo") >&5
7a197a62 2976 (eval "$ac_compile") 2>conftest.er1
ad6254c5 2977 ac_status=$?
8a2fc586
AK
2978 grep -v '^ *+' conftest.er1 >conftest.err
2979 rm -f conftest.er1
2980 cat conftest.err >&5
ec6a6fbe 2981 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
2982 (exit $ac_status); } && {
2983 test -z "$ac_c_werror_flag" ||
2984 test ! -s conftest.err
2985 } && test -s conftest.$ac_objext; then
ad6254c5 2986 ac_compiler_gnu=yes
80992638 2987else
ec6a6fbe 2988 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
2989sed 's/^/| /' conftest.$ac_ext >&5
2990
7a197a62 2991 ac_compiler_gnu=no
8106cdd5 2992fi
7a197a62
AK
2993
2994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 2995ac_cv_c_compiler_gnu=$ac_compiler_gnu
80992638 2996
ad6254c5 2997fi
ec6a6fbe
AK
2998{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2999$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3000if test $ac_compiler_gnu = yes; then
3001 GCC=yes
3002else
3003 GCC=
3004fi
ad6254c5
AK
3005ac_test_CFLAGS=${CFLAGS+set}
3006ac_save_CFLAGS=$CFLAGS
ec6a6fbe
AK
3007{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3008$as_echo_n "checking whether $CC accepts -g... " >&6; }
ad6254c5 3009if test "${ac_cv_prog_cc_g+set}" = set; then
ec6a6fbe 3010 $as_echo_n "(cached) " >&6
795ca3e5 3011else
7a197a62
AK
3012 ac_save_c_werror_flag=$ac_c_werror_flag
3013 ac_c_werror_flag=yes
3014 ac_cv_prog_cc_g=no
3015 CFLAGS="-g"
3016 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3017/* confdefs.h. */
3018_ACEOF
3019cat confdefs.h >>conftest.$ac_ext
3020cat >>conftest.$ac_ext <<_ACEOF
3021/* end confdefs.h. */
3022
3023int
3024main ()
3025{
3026
3027 ;
3028 return 0;
3029}
3030_ACEOF
3031rm -f conftest.$ac_objext
7a197a62
AK
3032if { (ac_try="$ac_compile"
3033case "(($ac_try" in
3034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3035 *) ac_try_echo=$ac_try;;
3036esac
ec6a6fbe
AK
3037eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3038$as_echo "$ac_try_echo") >&5
7a197a62 3039 (eval "$ac_compile") 2>conftest.er1
ad6254c5 3040 ac_status=$?
8a2fc586
AK
3041 grep -v '^ *+' conftest.er1 >conftest.err
3042 rm -f conftest.er1
3043 cat conftest.err >&5
ec6a6fbe 3044 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
3045 (exit $ac_status); } && {
3046 test -z "$ac_c_werror_flag" ||
3047 test ! -s conftest.err
3048 } && test -s conftest.$ac_objext; then
7a197a62
AK
3049 ac_cv_prog_cc_g=yes
3050else
ec6a6fbe 3051 $as_echo "$as_me: failed program was:" >&5
7a197a62
AK
3052sed 's/^/| /' conftest.$ac_ext >&5
3053
3054 CFLAGS=""
3055 cat >conftest.$ac_ext <<_ACEOF
3056/* confdefs.h. */
3057_ACEOF
3058cat confdefs.h >>conftest.$ac_ext
3059cat >>conftest.$ac_ext <<_ACEOF
3060/* end confdefs.h. */
3061
3062int
3063main ()
3064{
3065
3066 ;
3067 return 0;
3068}
3069_ACEOF
3070rm -f conftest.$ac_objext
3071if { (ac_try="$ac_compile"
3072case "(($ac_try" in
3073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3074 *) ac_try_echo=$ac_try;;
3075esac
ec6a6fbe
AK
3076eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3077$as_echo "$ac_try_echo") >&5
7a197a62 3078 (eval "$ac_compile") 2>conftest.er1
8a2fc586 3079 ac_status=$?
7a197a62
AK
3080 grep -v '^ *+' conftest.er1 >conftest.err
3081 rm -f conftest.er1
3082 cat conftest.err >&5
ec6a6fbe 3083 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
3084 (exit $ac_status); } && {
3085 test -z "$ac_c_werror_flag" ||
3086 test ! -s conftest.err
3087 } && test -s conftest.$ac_objext; then
7a197a62
AK
3088 :
3089else
ec6a6fbe 3090 $as_echo "$as_me: failed program was:" >&5
7a197a62
AK
3091sed 's/^/| /' conftest.$ac_ext >&5
3092
3093 ac_c_werror_flag=$ac_save_c_werror_flag
3094 CFLAGS="-g"
3095 cat >conftest.$ac_ext <<_ACEOF
3096/* confdefs.h. */
3097_ACEOF
3098cat confdefs.h >>conftest.$ac_ext
3099cat >>conftest.$ac_ext <<_ACEOF
3100/* end confdefs.h. */
3101
3102int
3103main ()
3104{
3105
3106 ;
3107 return 0;
3108}
3109_ACEOF
3110rm -f conftest.$ac_objext
3111if { (ac_try="$ac_compile"
3112case "(($ac_try" in
3113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3114 *) ac_try_echo=$ac_try;;
3115esac
ec6a6fbe
AK
3116eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3117$as_echo "$ac_try_echo") >&5
7a197a62 3118 (eval "$ac_compile") 2>conftest.er1
ad6254c5 3119 ac_status=$?
7a197a62
AK
3120 grep -v '^ *+' conftest.er1 >conftest.err
3121 rm -f conftest.er1
3122 cat conftest.err >&5
ec6a6fbe 3123 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
3124 (exit $ac_status); } && {
3125 test -z "$ac_c_werror_flag" ||
3126 test ! -s conftest.err
3127 } && test -s conftest.$ac_objext; then
795ca3e5
AK
3128 ac_cv_prog_cc_g=yes
3129else
ec6a6fbe 3130 $as_echo "$as_me: failed program was:" >&5
ad6254c5 3131sed 's/^/| /' conftest.$ac_ext >&5
80992638 3132
7a197a62
AK
3133
3134fi
3135
3136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3137fi
3138
3139rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8106cdd5 3140fi
7a197a62
AK
3141
3142rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3143 ac_c_werror_flag=$ac_save_c_werror_flag
ad6254c5 3144fi
ec6a6fbe
AK
3145{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3146$as_echo "$ac_cv_prog_cc_g" >&6; }
795ca3e5 3147if test "$ac_test_CFLAGS" = set; then
ad6254c5 3148 CFLAGS=$ac_save_CFLAGS
795ca3e5
AK
3149elif test $ac_cv_prog_cc_g = yes; then
3150 if test "$GCC" = yes; then
3151 CFLAGS="-g -O2"
3152 else
3153 CFLAGS="-g"
3154 fi
3155else
3156 if test "$GCC" = yes; then
3157 CFLAGS="-O2"
3158 else
3159 CFLAGS=
3160 fi
3161fi
ec6a6fbe
AK
3162{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3163$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
7a197a62 3164if test "${ac_cv_prog_cc_c89+set}" = set; then
ec6a6fbe 3165 $as_echo_n "(cached) " >&6
ad6254c5 3166else
7a197a62 3167 ac_cv_prog_cc_c89=no
ad6254c5
AK
3168ac_save_CC=$CC
3169cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3170/* confdefs.h. */
3171_ACEOF
3172cat confdefs.h >>conftest.$ac_ext
3173cat >>conftest.$ac_ext <<_ACEOF
3174/* end confdefs.h. */
3175#include <stdarg.h>
3176#include <stdio.h>
3177#include <sys/types.h>
3178#include <sys/stat.h>
3179/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3180struct buf { int x; };
3181FILE * (*rcsopen) (struct buf *, struct stat *, int);
3182static char *e (p, i)
3183 char **p;
3184 int i;
3185{
3186 return p[i];
3187}
3188static char *f (char * (*g) (char **, int), char **p, ...)
3189{
3190 char *s;
3191 va_list v;
3192 va_start (v,p);
3193 s = g (p, va_arg (v,int));
3194 va_end (v);
3195 return s;
3196}
8a2fc586
AK
3197
3198/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3199 function prototypes and stuff, but not '\xHH' hex character constants.
3200 These don't provoke an error unfortunately, instead are silently treated
7a197a62 3201 as 'x'. The following induces an error, until -std is added to get
8a2fc586
AK
3202 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3203 array size at least. It's necessary to write '\x00'==0 to get something
7a197a62 3204 that's true only with -std. */
8a2fc586
AK
3205int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3206
7a197a62
AK
3207/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3208 inside strings and character constants. */
3209#define FOO(x) 'x'
3210int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3211
ad6254c5
AK
3212int test (int i, double x);
3213struct s1 {int (*f) (int a);};
3214struct s2 {int (*f) (double a);};
3215int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3216int argc;
3217char **argv;
3218int
3219main ()
3220{
3221return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3222 ;
3223 return 0;
3224}
3225_ACEOF
7a197a62
AK
3226for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3227 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
ad6254c5
AK
3228do
3229 CC="$ac_save_CC $ac_arg"
3230 rm -f conftest.$ac_objext
7a197a62
AK
3231if { (ac_try="$ac_compile"
3232case "(($ac_try" in
3233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3234 *) ac_try_echo=$ac_try;;
3235esac
ec6a6fbe
AK
3236eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3237$as_echo "$ac_try_echo") >&5
7a197a62 3238 (eval "$ac_compile") 2>conftest.er1
ad6254c5 3239 ac_status=$?
8a2fc586
AK
3240 grep -v '^ *+' conftest.er1 >conftest.err
3241 rm -f conftest.er1
3242 cat conftest.err >&5
ec6a6fbe 3243 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
3244 (exit $ac_status); } && {
3245 test -z "$ac_c_werror_flag" ||
3246 test ! -s conftest.err
3247 } && test -s conftest.$ac_objext; then
7a197a62 3248 ac_cv_prog_cc_c89=$ac_arg
ad6254c5 3249else
ec6a6fbe 3250 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
3251sed 's/^/| /' conftest.$ac_ext >&5
3252
7a197a62 3253
ad6254c5 3254fi
7a197a62
AK
3255
3256rm -f core conftest.err conftest.$ac_objext
3257 test "x$ac_cv_prog_cc_c89" != "xno" && break
ad6254c5 3258done
7a197a62 3259rm -f conftest.$ac_ext
ad6254c5
AK
3260CC=$ac_save_CC
3261
3262fi
7a197a62
AK
3263# AC_CACHE_VAL
3264case "x$ac_cv_prog_cc_c89" in
3265 x)
ec6a6fbe
AK
3266 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3267$as_echo "none needed" >&6; } ;;
7a197a62 3268 xno)
ec6a6fbe
AK
3269 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3270$as_echo "unsupported" >&6; } ;;
ad6254c5 3271 *)
7a197a62 3272 CC="$CC $ac_cv_prog_cc_c89"
ec6a6fbe
AK
3273 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3274$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
ad6254c5
AK
3275esac
3276
ad6254c5 3277
ad6254c5
AK
3278ac_ext=c
3279ac_cpp='$CPP $CPPFLAGS'
3280ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3281ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3282ac_compiler_gnu=$ac_cv_c_compiler_gnu
795ca3e5 3283
d0191583
JM
3284
3285
3286ac_ext=c
3287ac_cpp='$CPP $CPPFLAGS'
3288ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3289ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3290ac_compiler_gnu=$ac_cv_c_compiler_gnu
ec6a6fbe
AK
3291{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3292$as_echo_n "checking how to run the C preprocessor... " >&6; }
d0191583
JM
3293# On Suns, sometimes $CPP names a directory.
3294if test -n "$CPP" && test -d "$CPP"; then
3295 CPP=
3296fi
3297if test -z "$CPP"; then
3298 if test "${ac_cv_prog_CPP+set}" = set; then
ec6a6fbe 3299 $as_echo_n "(cached) " >&6
ad6254c5 3300else
d0191583
JM
3301 # Double quotes because CPP needs to be expanded
3302 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3303 do
3304 ac_preproc_ok=false
3305for ac_c_preproc_warn_flag in '' yes
ad6254c5 3306do
d0191583
JM
3307 # Use a header file that comes with gcc, so configuring glibc
3308 # with a fresh cross-compiler works.
3309 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3310 # <limits.h> exists even on freestanding compilers.
3311 # On the NeXT, cc -E runs the code through the compiler's parser,
3312 # not just through cpp. "Syntax error" is here to catch this case.
3313 cat >conftest.$ac_ext <<_ACEOF
3314/* confdefs.h. */
3315_ACEOF
3316cat confdefs.h >>conftest.$ac_ext
3317cat >>conftest.$ac_ext <<_ACEOF
3318/* end confdefs.h. */
3319#ifdef __STDC__
3320# include <limits.h>
3321#else
3322# include <assert.h>
3323#endif
3324 Syntax error
3325_ACEOF
3326if { (ac_try="$ac_cpp conftest.$ac_ext"
3327case "(($ac_try" in
3328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3329 *) ac_try_echo=$ac_try;;
ad6254c5 3330esac
ec6a6fbe
AK
3331eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3332$as_echo "$ac_try_echo") >&5
d0191583
JM
3333 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3334 ac_status=$?
3335 grep -v '^ *+' conftest.er1 >conftest.err
3336 rm -f conftest.er1
3337 cat conftest.err >&5
ec6a6fbe 3338 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3339 (exit $ac_status); } >/dev/null && {
3340 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3341 test ! -s conftest.err
3342 }; then
3343 :
3344else
ec6a6fbe 3345 $as_echo "$as_me: failed program was:" >&5
d0191583 3346sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 3347
d0191583
JM
3348 # Broken: fails on valid input.
3349continue
795ca3e5 3350fi
795ca3e5 3351
d0191583 3352rm -f conftest.err conftest.$ac_ext
795ca3e5 3353
d0191583
JM
3354 # OK, works on sane cases. Now check whether nonexistent headers
3355 # can be detected and how.
3356 cat >conftest.$ac_ext <<_ACEOF
3357/* confdefs.h. */
3358_ACEOF
3359cat confdefs.h >>conftest.$ac_ext
3360cat >>conftest.$ac_ext <<_ACEOF
3361/* end confdefs.h. */
3362#include <ac_nonexistent.h>
3363_ACEOF
3364if { (ac_try="$ac_cpp conftest.$ac_ext"
3365case "(($ac_try" in
3366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3367 *) ac_try_echo=$ac_try;;
3368esac
ec6a6fbe
AK
3369eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3370$as_echo "$ac_try_echo") >&5
d0191583
JM
3371 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3372 ac_status=$?
3373 grep -v '^ *+' conftest.er1 >conftest.err
3374 rm -f conftest.er1
3375 cat conftest.err >&5
ec6a6fbe 3376 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3377 (exit $ac_status); } >/dev/null && {
3378 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3379 test ! -s conftest.err
3380 }; then
3381 # Broken: success on invalid input.
3382continue
3383else
ec6a6fbe 3384 $as_echo "$as_me: failed program was:" >&5
d0191583 3385sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 3386
d0191583
JM
3387 # Passes both tests.
3388ac_preproc_ok=:
3389break
3390fi
795ca3e5 3391
d0191583
JM
3392rm -f conftest.err conftest.$ac_ext
3393
3394done
3395# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3396rm -f conftest.err conftest.$ac_ext
3397if $ac_preproc_ok; then
3398 break
795ca3e5
AK
3399fi
3400
d0191583
JM
3401 done
3402 ac_cv_prog_CPP=$CPP
3403
3404fi
3405 CPP=$ac_cv_prog_CPP
795ca3e5 3406else
d0191583
JM
3407 ac_cv_prog_CPP=$CPP
3408fi
ec6a6fbe
AK
3409{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
3410$as_echo "$CPP" >&6; }
d0191583
JM
3411ac_preproc_ok=false
3412for ac_c_preproc_warn_flag in '' yes
3413do
3414 # Use a header file that comes with gcc, so configuring glibc
3415 # with a fresh cross-compiler works.
3416 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3417 # <limits.h> exists even on freestanding compilers.
3418 # On the NeXT, cc -E runs the code through the compiler's parser,
3419 # not just through cpp. "Syntax error" is here to catch this case.
3420 cat >conftest.$ac_ext <<_ACEOF
3421/* confdefs.h. */
ad6254c5 3422_ACEOF
d0191583
JM
3423cat confdefs.h >>conftest.$ac_ext
3424cat >>conftest.$ac_ext <<_ACEOF
3425/* end confdefs.h. */
3426#ifdef __STDC__
3427# include <limits.h>
3428#else
3429# include <assert.h>
3430#endif
3431 Syntax error
3432_ACEOF
3433if { (ac_try="$ac_cpp conftest.$ac_ext"
3434case "(($ac_try" in
3435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3436 *) ac_try_echo=$ac_try;;
7a197a62 3437esac
ec6a6fbe
AK
3438eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3439$as_echo "$ac_try_echo") >&5
d0191583
JM
3440 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3441 ac_status=$?
3442 grep -v '^ *+' conftest.er1 >conftest.err
3443 rm -f conftest.er1
3444 cat conftest.err >&5
ec6a6fbe 3445 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3446 (exit $ac_status); } >/dev/null && {
3447 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3448 test ! -s conftest.err
3449 }; then
3450 :
795ca3e5 3451else
ec6a6fbe 3452 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
3453sed 's/^/| /' conftest.$ac_ext >&5
3454
3455 # Broken: fails on valid input.
3456continue
795ca3e5
AK
3457fi
3458
d0191583
JM
3459rm -f conftest.err conftest.$ac_ext
3460
3461 # OK, works on sane cases. Now check whether nonexistent headers
3462 # can be detected and how.
3463 cat >conftest.$ac_ext <<_ACEOF
3464/* confdefs.h. */
3465_ACEOF
3466cat confdefs.h >>conftest.$ac_ext
3467cat >>conftest.$ac_ext <<_ACEOF
3468/* end confdefs.h. */
3469#include <ac_nonexistent.h>
3470_ACEOF
3471if { (ac_try="$ac_cpp conftest.$ac_ext"
3472case "(($ac_try" in
3473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3474 *) ac_try_echo=$ac_try;;
3475esac
ec6a6fbe
AK
3476eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3477$as_echo "$ac_try_echo") >&5
d0191583
JM
3478 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3479 ac_status=$?
3480 grep -v '^ *+' conftest.er1 >conftest.err
3481 rm -f conftest.er1
3482 cat conftest.err >&5
ec6a6fbe 3483 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3484 (exit $ac_status); } >/dev/null && {
3485 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3486 test ! -s conftest.err
3487 }; then
3488 # Broken: success on invalid input.
3489continue
795ca3e5 3490else
ec6a6fbe 3491 $as_echo "$as_me: failed program was:" >&5
d0191583 3492sed 's/^/| /' conftest.$ac_ext >&5
ad6254c5 3493
d0191583
JM
3494 # Passes both tests.
3495ac_preproc_ok=:
3496break
795ca3e5 3497fi
d0191583
JM
3498
3499rm -f conftest.err conftest.$ac_ext
3500
3501done
3502# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3503rm -f conftest.err conftest.$ac_ext
3504if $ac_preproc_ok; then
3505 :
8106cdd5 3506else
ec6a6fbe
AK
3507 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3508$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3509{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
d0191583 3510See \`config.log' for more details." >&5
ec6a6fbe 3511$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
d0191583 3512See \`config.log' for more details." >&2;}
ec6a6fbe 3513 { (exit 1); exit 1; }; }; }
8106cdd5
AK
3514fi
3515
d0191583
JM
3516ac_ext=c
3517ac_cpp='$CPP $CPPFLAGS'
3518ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3519ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3520ac_compiler_gnu=$ac_cv_c_compiler_gnu
3521
7a197a62 3522
ec6a6fbe
AK
3523{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3524$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5556819a 3525if test "${ac_cv_path_GREP+set}" = set; then
ec6a6fbe 3526 $as_echo_n "(cached) " >&6
ad6254c5 3527else
ec6a6fbe 3528 if test -z "$GREP"; then
d0191583 3529 ac_path_GREP_found=false
ec6a6fbe
AK
3530 # Loop through the user's path and test for each of PROGNAME-LIST
3531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
d0191583 3532for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
ad6254c5
AK
3533do
3534 IFS=$as_save_IFS
3535 test -z "$as_dir" && as_dir=.
d0191583 3536 for ac_prog in grep ggrep; do
ec6a6fbe
AK
3537 for ac_exec_ext in '' $ac_executable_extensions; do
3538 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3539 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3540# Check for GNU ac_path_GREP and select it if it is found.
d0191583
JM
3541 # Check for GNU $ac_path_GREP
3542case `"$ac_path_GREP" --version 2>&1` in
3543*GNU*)
3544 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3545*)
3546 ac_count=0
ec6a6fbe 3547 $as_echo_n 0123456789 >"conftest.in"
d0191583
JM
3548 while :
3549 do
3550 cat "conftest.in" "conftest.in" >"conftest.tmp"
3551 mv "conftest.tmp" "conftest.in"
3552 cp "conftest.in" "conftest.nl"
ec6a6fbe 3553 $as_echo 'GREP' >> "conftest.nl"
d0191583
JM
3554 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3555 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3556 ac_count=`expr $ac_count + 1`
3557 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3558 # Best one so far, save it but keep looking for a better one
3559 ac_cv_path_GREP="$ac_path_GREP"
3560 ac_path_GREP_max=$ac_count
3561 fi
3562 # 10*(2^10) chars as input seems more than enough
3563 test $ac_count -gt 10 && break
3564 done
3565 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3566esac
3567
ec6a6fbe
AK
3568 $ac_path_GREP_found && break 3
3569 done
d0191583 3570 done
ad6254c5 3571done
7a197a62 3572IFS=$as_save_IFS
ec6a6fbe
AK
3573 if test -z "$ac_cv_path_GREP"; then
3574 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3575$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
d0191583 3576 { (exit 1); exit 1; }; }
ec6a6fbe 3577 fi
80992638 3578else
d0191583 3579 ac_cv_path_GREP=$GREP
8106cdd5 3580fi
8106cdd5 3581
80992638 3582fi
ec6a6fbe
AK
3583{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3584$as_echo "$ac_cv_path_GREP" >&6; }
d0191583 3585 GREP="$ac_cv_path_GREP"
795ca3e5 3586
d0191583 3587
ec6a6fbe
AK
3588{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
3589$as_echo_n "checking for egrep... " >&6; }
d0191583 3590if test "${ac_cv_path_EGREP+set}" = set; then
ec6a6fbe 3591 $as_echo_n "(cached) " >&6
8a2fc586 3592else
d0191583
JM
3593 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3594 then ac_cv_path_EGREP="$GREP -E"
3595 else
ec6a6fbe 3596 if test -z "$EGREP"; then
d0191583 3597 ac_path_EGREP_found=false
ec6a6fbe
AK
3598 # Loop through the user's path and test for each of PROGNAME-LIST
3599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
d0191583 3600for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8a2fc586
AK
3601do
3602 IFS=$as_save_IFS
3603 test -z "$as_dir" && as_dir=.
d0191583 3604 for ac_prog in egrep; do
ec6a6fbe
AK
3605 for ac_exec_ext in '' $ac_executable_extensions; do
3606 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3607 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3608# Check for GNU ac_path_EGREP and select it if it is found.
d0191583
JM
3609 # Check for GNU $ac_path_EGREP
3610case `"$ac_path_EGREP" --version 2>&1` in
3611*GNU*)
3612 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3613*)
3614 ac_count=0
ec6a6fbe 3615 $as_echo_n 0123456789 >"conftest.in"
d0191583
JM
3616 while :
3617 do
3618 cat "conftest.in" "conftest.in" >"conftest.tmp"
3619 mv "conftest.tmp" "conftest.in"
3620 cp "conftest.in" "conftest.nl"
ec6a6fbe 3621 $as_echo 'EGREP' >> "conftest.nl"
d0191583
JM
3622 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3623 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3624 ac_count=`expr $ac_count + 1`
3625 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3626 # Best one so far, save it but keep looking for a better one
3627 ac_cv_path_EGREP="$ac_path_EGREP"
3628 ac_path_EGREP_max=$ac_count
3629 fi
3630 # 10*(2^10) chars as input seems more than enough
3631 test $ac_count -gt 10 && break
3632 done
3633 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8a2fc586 3634esac
8a2fc586 3635
ec6a6fbe
AK
3636 $ac_path_EGREP_found && break 3
3637 done
d0191583 3638 done
8a2fc586 3639done
7a197a62 3640IFS=$as_save_IFS
ec6a6fbe
AK
3641 if test -z "$ac_cv_path_EGREP"; then
3642 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3643$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
d0191583 3644 { (exit 1); exit 1; }; }
ec6a6fbe 3645 fi
d0191583
JM
3646else
3647 ac_cv_path_EGREP=$EGREP
3648fi
ad6254c5 3649
d0191583
JM
3650 fi
3651fi
ec6a6fbe
AK
3652{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3653$as_echo "$ac_cv_path_EGREP" >&6; }
d0191583 3654 EGREP="$ac_cv_path_EGREP"
ad6254c5
AK
3655
3656
d0191583 3657if test $ac_cv_c_compiler_gnu = yes; then
ec6a6fbe
AK
3658 { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3659$as_echo_n "checking whether $CC needs -traditional... " >&6; }
d0191583 3660if test "${ac_cv_prog_gcc_traditional+set}" = set; then
ec6a6fbe 3661 $as_echo_n "(cached) " >&6
8106cdd5 3662else
d0191583 3663 ac_pattern="Autoconf.*'x'"
ad6254c5 3664 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3665/* confdefs.h. */
3666_ACEOF
3667cat confdefs.h >>conftest.$ac_ext
3668cat >>conftest.$ac_ext <<_ACEOF
3669/* end confdefs.h. */
d0191583
JM
3670#include <sgtty.h>
3671Autoconf TIOCGETP
ad6254c5 3672_ACEOF
d0191583
JM
3673if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3674 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3675 ac_cv_prog_gcc_traditional=yes
8106cdd5 3676else
d0191583 3677 ac_cv_prog_gcc_traditional=no
80992638 3678fi
d0191583 3679rm -f conftest*
ad6254c5 3680
8106cdd5 3681
d0191583
JM
3682 if test $ac_cv_prog_gcc_traditional = no; then
3683 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3684/* confdefs.h. */
3685_ACEOF
3686cat confdefs.h >>conftest.$ac_ext
3687cat >>conftest.$ac_ext <<_ACEOF
3688/* end confdefs.h. */
d0191583
JM
3689#include <termio.h>
3690Autoconf TCGETA
ad6254c5 3691_ACEOF
d0191583
JM
3692if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3693 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3694 ac_cv_prog_gcc_traditional=yes
7a197a62 3695fi
d0191583 3696rm -f conftest*
795ca3e5 3697
d0191583 3698 fi
795ca3e5 3699fi
ec6a6fbe
AK
3700{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3701$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
d0191583
JM
3702 if test $ac_cv_prog_gcc_traditional = yes; then
3703 CC="$CC -traditional"
3704 fi
795ca3e5
AK
3705fi
3706
d0191583
JM
3707# Find a good install program. We prefer a C program (faster),
3708# so one script is as good as another. But avoid the broken or
3709# incompatible versions:
3710# SysV /etc/install, /usr/sbin/install
3711# SunOS /usr/etc/install
3712# IRIX /sbin/install
3713# AIX /bin/install
3714# AmigaOS /C/install, which installs bootblocks on floppy discs
3715# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3716# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3717# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3718# OS/2's system install, which has a completely different semantic
3719# ./install, which can be erroneously created by make from ./install.sh.
ec6a6fbe
AK
3720# Reject install programs that cannot install multiple files.
3721{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3722$as_echo_n "checking for a BSD-compatible install... " >&6; }
d0191583
JM
3723if test -z "$INSTALL"; then
3724if test "${ac_cv_path_install+set}" = set; then
ec6a6fbe 3725 $as_echo_n "(cached) " >&6
ad6254c5 3726else
d0191583
JM
3727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3728for as_dir in $PATH
3729do
3730 IFS=$as_save_IFS
3731 test -z "$as_dir" && as_dir=.
3732 # Account for people who put trailing slashes in PATH elements.
3733case $as_dir/ in
3734 ./ | .// | /cC/* | \
3735 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3736 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3737 /usr/ucb/* ) ;;
3738 *)
3739 # OSF1 and SCO ODT 3.0 have their own names for install.
3740 # Don't use installbsd from OSF since it installs stuff as root
3741 # by default.
3742 for ac_prog in ginstall scoinst install; do
3743 for ac_exec_ext in '' $ac_executable_extensions; do
3744 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3745 if test $ac_prog = install &&
3746 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3747 # AIX install. It has an incompatible calling convention.
3748 :
3749 elif test $ac_prog = install &&
3750 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3751 # program-specific install script used by HP pwplus--don't use.
3752 :
3753 else
ec6a6fbe
AK
3754 rm -rf conftest.one conftest.two conftest.dir
3755 echo one > conftest.one
3756 echo two > conftest.two
3757 mkdir conftest.dir
3758 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3759 test -s conftest.one && test -s conftest.two &&
3760 test -s conftest.dir/conftest.one &&
3761 test -s conftest.dir/conftest.two
3762 then
3763 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3764 break 3
3765 fi
d0191583
JM
3766 fi
3767 fi
3768 done
3769 done
3770 ;;
3771esac
ec6a6fbe 3772
d0191583
JM
3773done
3774IFS=$as_save_IFS
80992638 3775
ec6a6fbe 3776rm -rf conftest.one conftest.two conftest.dir
d0191583
JM
3777
3778fi
3779 if test "${ac_cv_path_install+set}" = set; then
3780 INSTALL=$ac_cv_path_install
7a197a62 3781 else
d0191583
JM
3782 # As a last resort, use the slow shell script. Don't cache a
3783 # value for INSTALL within a source directory, because that will
3784 # break other packages using the cache if that directory is
3785 # removed, or if the value is a relative name.
3786 INSTALL=$ac_install_sh
7a197a62 3787 fi
d0191583 3788fi
ec6a6fbe
AK
3789{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3790$as_echo "$INSTALL" >&6; }
ad6254c5 3791
d0191583
JM
3792# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3793# It thinks the first close brace ends the variable substitution.
3794test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
ad6254c5 3795
d0191583 3796test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
80992638 3797
d0191583
JM
3798test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3799
ec6a6fbe
AK
3800{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
3801$as_echo_n "checking whether ln -s works... " >&6; }
d0191583
JM
3802LN_S=$as_ln_s
3803if test "$LN_S" = "ln -s"; then
ec6a6fbe
AK
3804 { $as_echo "$as_me:$LINENO: result: yes" >&5
3805$as_echo "yes" >&6; }
d0191583 3806else
ec6a6fbe
AK
3807 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3808$as_echo "no, using $LN_S" >&6; }
795ca3e5 3809fi
d0191583 3810
ec6a6fbe
AK
3811{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3812$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3813set x ${MAKE-make}
3814ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
d0191583 3815if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 3816 $as_echo_n "(cached) " >&6
7a197a62 3817else
d0191583
JM
3818 cat >conftest.make <<\_ACEOF
3819SHELL = /bin/sh
3820all:
3821 @echo '@@@%%%=$(MAKE)=@@@%%%'
3822_ACEOF
3823# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3824case `${MAKE-make} -f conftest.make 2>/dev/null` in
3825 *@@@%%%=?*=@@@%%%*)
3826 eval ac_cv_prog_make_${ac_make}_set=yes;;
3827 *)
3828 eval ac_cv_prog_make_${ac_make}_set=no;;
3829esac
3830rm -f conftest.make
ad6254c5 3831fi
d0191583 3832if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
ec6a6fbe
AK
3833 { $as_echo "$as_me:$LINENO: result: yes" >&5
3834$as_echo "yes" >&6; }
d0191583
JM
3835 SET_MAKE=
3836else
ec6a6fbe
AK
3837 { $as_echo "$as_me:$LINENO: result: no" >&5
3838$as_echo "no" >&6; }
d0191583 3839 SET_MAKE="MAKE=${MAKE-make}"
795ca3e5 3840fi
8106cdd5 3841
ec6a6fbe
AK
3842{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
3843$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
5556819a
AK
3844if test -z "$MKDIR_P"; then
3845 if test "${ac_cv_path_mkdir+set}" = set; then
ec6a6fbe 3846 $as_echo_n "(cached) " >&6
5556819a
AK
3847else
3848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3849for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3850do
3851 IFS=$as_save_IFS
3852 test -z "$as_dir" && as_dir=.
3853 for ac_prog in mkdir gmkdir; do
3854 for ac_exec_ext in '' $ac_executable_extensions; do
3855 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3856 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3857 'mkdir (GNU coreutils) '* | \
3858 'mkdir (coreutils) '* | \
3859 'mkdir (fileutils) '4.1*)
3860 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3861 break 3;;
3862 esac
3863 done
3864 done
3865done
3866IFS=$as_save_IFS
3867
3868fi
3869
3870 if test "${ac_cv_path_mkdir+set}" = set; then
3871 MKDIR_P="$ac_cv_path_mkdir -p"
3872 else
3873 # As a last resort, use the slow shell script. Don't cache a
3874 # value for MKDIR_P within a source directory, because that will
3875 # break other packages using the cache if that directory is
3876 # removed, or if the value is a relative name.
3877 test -d ./--version && rmdir ./--version
3878 MKDIR_P="$ac_install_sh -d"
3879 fi
3880fi
ec6a6fbe
AK
3881{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
3882$as_echo "$MKDIR_P" >&6; }
5556819a 3883
d0191583
JM
3884if test -n "$ac_tool_prefix"; then
3885 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3886set dummy ${ac_tool_prefix}ranlib; ac_word=$2
ec6a6fbe
AK
3887{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3888$as_echo_n "checking for $ac_word... " >&6; }
d0191583 3889if test "${ac_cv_prog_RANLIB+set}" = set; then
ec6a6fbe 3890 $as_echo_n "(cached) " >&6
d0191583
JM
3891else
3892 if test -n "$RANLIB"; then
3893 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3894else
3895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3896for as_dir in $PATH
3897do
3898 IFS=$as_save_IFS
3899 test -z "$as_dir" && as_dir=.
3900 for ac_exec_ext in '' $ac_executable_extensions; do
3901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3902 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
ec6a6fbe 3903 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
3904 break 2
3905 fi
3906done
3907done
3908IFS=$as_save_IFS
8106cdd5 3909
795ca3e5 3910fi
d0191583
JM
3911fi
3912RANLIB=$ac_cv_prog_RANLIB
3913if test -n "$RANLIB"; then
ec6a6fbe
AK
3914 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
3915$as_echo "$RANLIB" >&6; }
d0191583 3916else
ec6a6fbe
AK
3917 { $as_echo "$as_me:$LINENO: result: no" >&5
3918$as_echo "no" >&6; }
d0191583
JM
3919fi
3920
8106cdd5 3921
ad6254c5 3922fi
d0191583
JM
3923if test -z "$ac_cv_prog_RANLIB"; then
3924 ac_ct_RANLIB=$RANLIB
3925 # Extract the first word of "ranlib", so it can be a program name with args.
3926set dummy ranlib; ac_word=$2
ec6a6fbe
AK
3927{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3928$as_echo_n "checking for $ac_word... " >&6; }
d0191583 3929if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
ec6a6fbe 3930 $as_echo_n "(cached) " >&6
ad6254c5 3931else
d0191583
JM
3932 if test -n "$ac_ct_RANLIB"; then
3933 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3934else
3935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3936for as_dir in $PATH
8106cdd5 3937do
d0191583
JM
3938 IFS=$as_save_IFS
3939 test -z "$as_dir" && as_dir=.
3940 for ac_exec_ext in '' $ac_executable_extensions; do
3941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3942 ac_cv_prog_ac_ct_RANLIB="ranlib"
ec6a6fbe 3943 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
3944 break 2
3945 fi
3946done
3947done
3948IFS=$as_save_IFS
3949
3950fi
3951fi
3952ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3953if test -n "$ac_ct_RANLIB"; then
ec6a6fbe
AK
3954 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3955$as_echo "$ac_ct_RANLIB" >&6; }
ad6254c5 3956else
ec6a6fbe
AK
3957 { $as_echo "$as_me:$LINENO: result: no" >&5
3958$as_echo "no" >&6; }
d0191583 3959fi
ad6254c5 3960
d0191583
JM
3961 if test "x$ac_ct_RANLIB" = x; then
3962 RANLIB=":"
3963 else
3964 case $cross_compiling:$ac_tool_warned in
3965yes:)
ec6a6fbe
AK
3966{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3967$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
d0191583
JM
3968ac_tool_warned=yes ;;
3969esac
3970 RANLIB=$ac_ct_RANLIB
3971 fi
3972else
3973 RANLIB="$ac_cv_prog_RANLIB"
ad6254c5 3974fi
7a197a62 3975
d0191583
JM
3976# Extract the first word of "cflow", so it can be a program name with args.
3977set dummy cflow; ac_word=$2
ec6a6fbe
AK
3978{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3979$as_echo_n "checking for $ac_word... " >&6; }
d0191583 3980if test "${ac_cv_path_CFLOW_CMD+set}" = set; then
ec6a6fbe 3981 $as_echo_n "(cached) " >&6
d0191583
JM
3982else
3983 case $CFLOW_CMD in
3984 [\\/]* | ?:[\\/]*)
3985 ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path.
3986 ;;
3987 *)
3988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3989for as_dir in $PATH
3990do
3991 IFS=$as_save_IFS
3992 test -z "$as_dir" && as_dir=.
3993 for ac_exec_ext in '' $ac_executable_extensions; do
3994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3995 ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 3996 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
3997 break 2
3998 fi
3999done
4000done
4001IFS=$as_save_IFS
ad6254c5 4002
d0191583 4003 ;;
7a197a62 4004esac
d0191583
JM
4005fi
4006CFLOW_CMD=$ac_cv_path_CFLOW_CMD
4007if test -n "$CFLOW_CMD"; then
ec6a6fbe
AK
4008 { $as_echo "$as_me:$LINENO: result: $CFLOW_CMD" >&5
4009$as_echo "$CFLOW_CMD" >&6; }
80992638 4010else
ec6a6fbe
AK
4011 { $as_echo "$as_me:$LINENO: result: no" >&5
4012$as_echo "no" >&6; }
795ca3e5 4013fi
7a197a62 4014
ad6254c5 4015
d0191583
JM
4016# Extract the first word of "cscope", so it can be a program name with args.
4017set dummy cscope; ac_word=$2
ec6a6fbe
AK
4018{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4019$as_echo_n "checking for $ac_word... " >&6; }
d0191583 4020if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then
ec6a6fbe 4021 $as_echo_n "(cached) " >&6
d0191583
JM
4022else
4023 case $CSCOPE_CMD in
4024 [\\/]* | ?:[\\/]*)
4025 ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path.
4026 ;;
4027 *)
4028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4029for as_dir in $PATH
4030do
4031 IFS=$as_save_IFS
4032 test -z "$as_dir" && as_dir=.
4033 for ac_exec_ext in '' $ac_executable_extensions; do
4034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4035 ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 4036 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
4037 break 2
4038 fi
795ca3e5 4039done
d0191583
JM
4040done
4041IFS=$as_save_IFS
795ca3e5 4042
d0191583
JM
4043 ;;
4044esac
ad6254c5 4045fi
d0191583
JM
4046CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD
4047if test -n "$CSCOPE_CMD"; then
ec6a6fbe
AK
4048 { $as_echo "$as_me:$LINENO: result: $CSCOPE_CMD" >&5
4049$as_echo "$CSCOPE_CMD" >&6; }
795ca3e5 4050else
ec6a6fbe
AK
4051 { $as_echo "$as_me:$LINENO: result: no" >&5
4052$as_echo "no" >&6; }
795ca3e5 4053fi
ad6254c5 4054
7a197a62 4055
ad6254c5 4056
d0191583
JM
4057################################################################################
4058
4059
4060
4061
4062
4063ac_header_dirent=no
4064for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
ec6a6fbe
AK
4065 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4066{ $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4067$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
d0191583 4068if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 4069 $as_echo_n "(cached) " >&6
d0191583 4070else
ad6254c5 4071 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4072/* confdefs.h. */
4073_ACEOF
4074cat confdefs.h >>conftest.$ac_ext
4075cat >>conftest.$ac_ext <<_ACEOF
4076/* end confdefs.h. */
d0191583
JM
4077#include <sys/types.h>
4078#include <$ac_hdr>
4079
4080int
4081main ()
4082{
4083if ((DIR *) 0)
4084return 0;
4085 ;
4086 return 0;
4087}
ad6254c5 4088_ACEOF
d0191583
JM
4089rm -f conftest.$ac_objext
4090if { (ac_try="$ac_compile"
7a197a62
AK
4091case "(($ac_try" in
4092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4093 *) ac_try_echo=$ac_try;;
4094esac
ec6a6fbe
AK
4095eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4096$as_echo "$ac_try_echo") >&5
d0191583 4097 (eval "$ac_compile") 2>conftest.er1
ad6254c5
AK
4098 ac_status=$?
4099 grep -v '^ *+' conftest.er1 >conftest.err
4100 rm -f conftest.er1
4101 cat conftest.err >&5
ec6a6fbe 4102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4103 (exit $ac_status); } && {
4104 test -z "$ac_c_werror_flag" ||
25fbec5b 4105 test ! -s conftest.err
d0191583
JM
4106 } && test -s conftest.$ac_objext; then
4107 eval "$as_ac_Header=yes"
ad6254c5 4108else
ec6a6fbe 4109 $as_echo "$as_me: failed program was:" >&5
ad6254c5 4110sed 's/^/| /' conftest.$ac_ext >&5
8106cdd5 4111
d0191583 4112 eval "$as_ac_Header=no"
795ca3e5 4113fi
7a197a62 4114
d0191583 4115rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
795ca3e5 4116fi
ec6a6fbe
AK
4117ac_res=`eval 'as_val=${'$as_ac_Header'}
4118 $as_echo "$as_val"'`
4119 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4120$as_echo "$ac_res" >&6; }
4121as_val=`eval 'as_val=${'$as_ac_Header'}
4122 $as_echo "$as_val"'`
4123 if test "x$as_val" = x""yes; then
d0191583 4124 cat >>confdefs.h <<_ACEOF
ec6a6fbe 4125#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
d0191583 4126_ACEOF
795ca3e5 4127
d0191583
JM
4128ac_header_dirent=$ac_hdr; break
4129fi
ad6254c5 4130
d0191583
JM
4131done
4132# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4133if test $ac_header_dirent = dirent.h; then
ec6a6fbe
AK
4134 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
4135$as_echo_n "checking for library containing opendir... " >&6; }
d0191583 4136if test "${ac_cv_search_opendir+set}" = set; then
ec6a6fbe 4137 $as_echo_n "(cached) " >&6
ad6254c5 4138else
d0191583
JM
4139 ac_func_search_save_LIBS=$LIBS
4140cat >conftest.$ac_ext <<_ACEOF
4141/* confdefs.h. */
4142_ACEOF
4143cat confdefs.h >>conftest.$ac_ext
4144cat >>conftest.$ac_ext <<_ACEOF
4145/* end confdefs.h. */
ad6254c5 4146
d0191583
JM
4147/* Override any GCC internal prototype to avoid an error.
4148 Use char because int might match the return type of a GCC
4149 builtin and then its argument prototype would still apply. */
4150#ifdef __cplusplus
4151extern "C"
4152#endif
4153char opendir ();
4154int
4155main ()
4156{
4157return opendir ();
4158 ;
4159 return 0;
4160}
4161_ACEOF
4162for ac_lib in '' dir; do
4163 if test -z "$ac_lib"; then
4164 ac_res="none required"
4165 else
4166 ac_res=-l$ac_lib
4167 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4168 fi
4169 rm -f conftest.$ac_objext conftest$ac_exeext
4170if { (ac_try="$ac_link"
4171case "(($ac_try" in
4172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4173 *) ac_try_echo=$ac_try;;
4174esac
ec6a6fbe
AK
4175eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4176$as_echo "$ac_try_echo") >&5
d0191583
JM
4177 (eval "$ac_link") 2>conftest.er1
4178 ac_status=$?
4179 grep -v '^ *+' conftest.er1 >conftest.err
4180 rm -f conftest.er1
4181 cat conftest.err >&5
ec6a6fbe 4182 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4183 (exit $ac_status); } && {
4184 test -z "$ac_c_werror_flag" ||
4185 test ! -s conftest.err
ec6a6fbe
AK
4186 } && test -s conftest$ac_exeext && {
4187 test "$cross_compiling" = yes ||
4188 $as_test_x conftest$ac_exeext
4189 }; then
d0191583
JM
4190 ac_cv_search_opendir=$ac_res
4191else
ec6a6fbe 4192 $as_echo "$as_me: failed program was:" >&5
d0191583 4193sed 's/^/| /' conftest.$ac_ext >&5
ad6254c5 4194
ad6254c5 4195
795ca3e5 4196fi
ad6254c5 4197
ec6a6fbe 4198rm -rf conftest.dSYM
d0191583
JM
4199rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4200 conftest$ac_exeext
4201 if test "${ac_cv_search_opendir+set}" = set; then
4202 break
7a197a62 4203fi
d0191583
JM
4204done
4205if test "${ac_cv_search_opendir+set}" = set; then
4206 :
7a197a62 4207else
d0191583 4208 ac_cv_search_opendir=no
7a197a62 4209fi
d0191583
JM
4210rm conftest.$ac_ext
4211LIBS=$ac_func_search_save_LIBS
7a197a62 4212fi
ec6a6fbe
AK
4213{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4214$as_echo "$ac_cv_search_opendir" >&6; }
d0191583
JM
4215ac_res=$ac_cv_search_opendir
4216if test "$ac_res" != no; then
4217 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7a197a62 4218
d0191583 4219fi
7a197a62 4220
7a197a62 4221else
ec6a6fbe
AK
4222 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
4223$as_echo_n "checking for library containing opendir... " >&6; }
d0191583 4224if test "${ac_cv_search_opendir+set}" = set; then
ec6a6fbe 4225 $as_echo_n "(cached) " >&6
7a197a62 4226else
d0191583
JM
4227 ac_func_search_save_LIBS=$LIBS
4228cat >conftest.$ac_ext <<_ACEOF
4229/* confdefs.h. */
4230_ACEOF
4231cat confdefs.h >>conftest.$ac_ext
4232cat >>conftest.$ac_ext <<_ACEOF
4233/* end confdefs.h. */
7a197a62 4234
d0191583
JM
4235/* Override any GCC internal prototype to avoid an error.
4236 Use char because int might match the return type of a GCC
4237 builtin and then its argument prototype would still apply. */
4238#ifdef __cplusplus
4239extern "C"
4240#endif
4241char opendir ();
4242int
4243main ()
4244{
4245return opendir ();
4246 ;
4247 return 0;
4248}
4249_ACEOF
4250for ac_lib in '' x; do
4251 if test -z "$ac_lib"; then
4252 ac_res="none required"
4253 else
4254 ac_res=-l$ac_lib
4255 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4256 fi
4257 rm -f conftest.$ac_objext conftest$ac_exeext
4258if { (ac_try="$ac_link"
4259case "(($ac_try" in
4260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4261 *) ac_try_echo=$ac_try;;
4262esac
ec6a6fbe
AK
4263eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4264$as_echo "$ac_try_echo") >&5
d0191583
JM
4265 (eval "$ac_link") 2>conftest.er1
4266 ac_status=$?
4267 grep -v '^ *+' conftest.er1 >conftest.err
4268 rm -f conftest.er1
4269 cat conftest.err >&5
ec6a6fbe 4270 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4271 (exit $ac_status); } && {
4272 test -z "$ac_c_werror_flag" ||
4273 test ! -s conftest.err
ec6a6fbe
AK
4274 } && test -s conftest$ac_exeext && {
4275 test "$cross_compiling" = yes ||
4276 $as_test_x conftest$ac_exeext
4277 }; then
d0191583
JM
4278 ac_cv_search_opendir=$ac_res
4279else
ec6a6fbe 4280 $as_echo "$as_me: failed program was:" >&5
d0191583 4281sed 's/^/| /' conftest.$ac_ext >&5
7a197a62
AK
4282
4283
4284fi
4285
ec6a6fbe 4286rm -rf conftest.dSYM
d0191583
JM
4287rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4288 conftest$ac_exeext
4289 if test "${ac_cv_search_opendir+set}" = set; then
4290 break
7a197a62 4291fi
d0191583
JM
4292done
4293if test "${ac_cv_search_opendir+set}" = set; then
4294 :
7a197a62 4295else
d0191583 4296 ac_cv_search_opendir=no
7a197a62 4297fi
d0191583
JM
4298rm conftest.$ac_ext
4299LIBS=$ac_func_search_save_LIBS
4300fi
ec6a6fbe
AK
4301{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4302$as_echo "$ac_cv_search_opendir" >&6; }
d0191583
JM
4303ac_res=$ac_cv_search_opendir
4304if test "$ac_res" != no; then
4305 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7a197a62 4306
7a197a62 4307fi
7a197a62 4308
d0191583 4309fi
7a197a62 4310
ec6a6fbe
AK
4311{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4312$as_echo_n "checking for ANSI C header files... " >&6; }
7a197a62 4313if test "${ac_cv_header_stdc+set}" = set; then
ec6a6fbe 4314 $as_echo_n "(cached) " >&6
7a197a62
AK
4315else
4316 cat >conftest.$ac_ext <<_ACEOF
4317/* confdefs.h. */
4318_ACEOF
4319cat confdefs.h >>conftest.$ac_ext
4320cat >>conftest.$ac_ext <<_ACEOF
4321/* end confdefs.h. */
4322#include <stdlib.h>
4323#include <stdarg.h>
4324#include <string.h>
4325#include <float.h>
4326
4327int
4328main ()
4329{
4330
4331 ;
4332 return 0;
4333}
4334_ACEOF
4335rm -f conftest.$ac_objext
4336if { (ac_try="$ac_compile"
4337case "(($ac_try" in
4338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4339 *) ac_try_echo=$ac_try;;
4340esac
ec6a6fbe
AK
4341eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4342$as_echo "$ac_try_echo") >&5
7a197a62
AK
4343 (eval "$ac_compile") 2>conftest.er1
4344 ac_status=$?
4345 grep -v '^ *+' conftest.er1 >conftest.err
4346 rm -f conftest.er1
4347 cat conftest.err >&5
ec6a6fbe 4348 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4349 (exit $ac_status); } && {
4350 test -z "$ac_c_werror_flag" ||
4351 test ! -s conftest.err
4352 } && test -s conftest.$ac_objext; then
7a197a62
AK
4353 ac_cv_header_stdc=yes
4354else
ec6a6fbe 4355 $as_echo "$as_me: failed program was:" >&5
7a197a62
AK
4356sed 's/^/| /' conftest.$ac_ext >&5
4357
4358 ac_cv_header_stdc=no
4359fi
4360
4361rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4362
4363if test $ac_cv_header_stdc = yes; then
4364 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
ad6254c5 4365 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4366/* confdefs.h. */
4367_ACEOF
4368cat confdefs.h >>conftest.$ac_ext
4369cat >>conftest.$ac_ext <<_ACEOF
4370/* end confdefs.h. */
4371#include <string.h>
8106cdd5 4372
ad6254c5
AK
4373_ACEOF
4374if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4375 $EGREP "memchr" >/dev/null 2>&1; then
4376 :
4377else
4378 ac_cv_header_stdc=no
80992638 4379fi
ad6254c5 4380rm -f conftest*
795ca3e5
AK
4381
4382fi
4383
ad6254c5
AK
4384if test $ac_cv_header_stdc = yes; then
4385 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4386 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4387/* confdefs.h. */
4388_ACEOF
4389cat confdefs.h >>conftest.$ac_ext
4390cat >>conftest.$ac_ext <<_ACEOF
4391/* end confdefs.h. */
80992638 4392#include <stdlib.h>
ad6254c5
AK
4393
4394_ACEOF
80992638 4395if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ad6254c5
AK
4396 $EGREP "free" >/dev/null 2>&1; then
4397 :
795ca3e5 4398else
ad6254c5 4399 ac_cv_header_stdc=no
795ca3e5 4400fi
80992638 4401rm -f conftest*
8106cdd5 4402
795ca3e5
AK
4403fi
4404
ad6254c5
AK
4405if test $ac_cv_header_stdc = yes; then
4406 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4407 if test "$cross_compiling" = yes; then
4408 :
795ca3e5 4409else
ad6254c5 4410 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4411/* confdefs.h. */
4412_ACEOF
4413cat confdefs.h >>conftest.$ac_ext
4414cat >>conftest.$ac_ext <<_ACEOF
4415/* end confdefs.h. */
4416#include <ctype.h>
7a197a62 4417#include <stdlib.h>
ad6254c5
AK
4418#if ((' ' & 0x0FF) == 0x020)
4419# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4420# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4421#else
4422# define ISLOWER(c) \
8a2fc586
AK
4423 (('a' <= (c) && (c) <= 'i') \
4424 || ('j' <= (c) && (c) <= 'r') \
4425 || ('s' <= (c) && (c) <= 'z'))
ad6254c5 4426# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
80992638 4427#endif
ad6254c5
AK
4428
4429#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4430int
4431main ()
4432{
4433 int i;
4434 for (i = 0; i < 256; i++)
4435 if (XOR (islower (i), ISLOWER (i))
8a2fc586 4436 || toupper (i) != TOUPPER (i))
7a197a62
AK
4437 return 2;
4438 return 0;
ad6254c5
AK
4439}
4440_ACEOF
4441rm -f conftest$ac_exeext
7a197a62
AK
4442if { (ac_try="$ac_link"
4443case "(($ac_try" in
4444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4445 *) ac_try_echo=$ac_try;;
4446esac
ec6a6fbe
AK
4447eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4448$as_echo "$ac_try_echo") >&5
7a197a62 4449 (eval "$ac_link") 2>&5
ad6254c5 4450 ac_status=$?
ec6a6fbe 4451 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 4452 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
4453 { (case "(($ac_try" in
4454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4455 *) ac_try_echo=$ac_try;;
4456esac
ec6a6fbe
AK
4457eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4458$as_echo "$ac_try_echo") >&5
7a197a62 4459 (eval "$ac_try") 2>&5
ad6254c5 4460 ac_status=$?
ec6a6fbe 4461 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
4462 (exit $ac_status); }; }; then
4463 :
795ca3e5 4464else
ec6a6fbe
AK
4465 $as_echo "$as_me: program exited with status $ac_status" >&5
4466$as_echo "$as_me: failed program was:" >&5
ad6254c5 4467sed 's/^/| /' conftest.$ac_ext >&5
8106cdd5 4468
ad6254c5
AK
4469( exit $ac_status )
4470ac_cv_header_stdc=no
80992638 4471fi
ec6a6fbe 4472rm -rf conftest.dSYM
7a197a62 4473rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 4474fi
7a197a62
AK
4475
4476
ad6254c5
AK
4477fi
4478fi
ec6a6fbe
AK
4479{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4480$as_echo "$ac_cv_header_stdc" >&6; }
ad6254c5
AK
4481if test $ac_cv_header_stdc = yes; then
4482
4483cat >>confdefs.h <<\_ACEOF
4484#define STDC_HEADERS 1
4485_ACEOF
795ca3e5
AK
4486
4487fi
4488
ec6a6fbe
AK
4489{ $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
4490$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
ad6254c5 4491if test "${ac_cv_header_sys_wait_h+set}" = set; then
ec6a6fbe 4492 $as_echo_n "(cached) " >&6
8106cdd5 4493else
ad6254c5 4494 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4495/* confdefs.h. */
4496_ACEOF
4497cat confdefs.h >>conftest.$ac_ext
4498cat >>conftest.$ac_ext <<_ACEOF
4499/* end confdefs.h. */
80992638 4500#include <sys/types.h>
ad6254c5
AK
4501#include <sys/wait.h>
4502#ifndef WEXITSTATUS
7a197a62 4503# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
ad6254c5
AK
4504#endif
4505#ifndef WIFEXITED
4506# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4507#endif
4508
4509int
4510main ()
4511{
4512 int s;
4513 wait (&s);
4514 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4515 ;
4516 return 0;
4517}
4518_ACEOF
4519rm -f conftest.$ac_objext
7a197a62
AK
4520if { (ac_try="$ac_compile"
4521case "(($ac_try" in
4522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4523 *) ac_try_echo=$ac_try;;
4524esac
ec6a6fbe
AK
4525eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4526$as_echo "$ac_try_echo") >&5
7a197a62 4527 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4528 ac_status=$?
8a2fc586
AK
4529 grep -v '^ *+' conftest.er1 >conftest.err
4530 rm -f conftest.er1
4531 cat conftest.err >&5
ec6a6fbe 4532 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4533 (exit $ac_status); } && {
4534 test -z "$ac_c_werror_flag" ||
4535 test ! -s conftest.err
4536 } && test -s conftest.$ac_objext; then
ad6254c5
AK
4537 ac_cv_header_sys_wait_h=yes
4538else
ec6a6fbe 4539 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
4540sed 's/^/| /' conftest.$ac_ext >&5
4541
7a197a62 4542 ac_cv_header_sys_wait_h=no
8106cdd5 4543fi
7a197a62
AK
4544
4545rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
795ca3e5 4546fi
ec6a6fbe
AK
4547{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
4548$as_echo "$ac_cv_header_sys_wait_h" >&6; }
ad6254c5 4549if test $ac_cv_header_sys_wait_h = yes; then
8106cdd5 4550
ad6254c5
AK
4551cat >>confdefs.h <<\_ACEOF
4552#define HAVE_SYS_WAIT_H 1
4553_ACEOF
795ca3e5
AK
4554
4555fi
4556
ec6a6fbe
AK
4557{ $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4558$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
ad6254c5 4559if test "${ac_cv_header_time+set}" = set; then
ec6a6fbe 4560 $as_echo_n "(cached) " >&6
795ca3e5 4561else
ad6254c5 4562 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4563/* confdefs.h. */
4564_ACEOF
4565cat confdefs.h >>conftest.$ac_ext
4566cat >>conftest.$ac_ext <<_ACEOF
4567/* end confdefs.h. */
795ca3e5
AK
4568#include <sys/types.h>
4569#include <sys/time.h>
4570#include <time.h>
ad6254c5
AK
4571
4572int
4573main ()
4574{
4575if ((struct tm *) 0)
4576return 0;
4577 ;
4578 return 0;
4579}
4580_ACEOF
4581rm -f conftest.$ac_objext
7a197a62
AK
4582if { (ac_try="$ac_compile"
4583case "(($ac_try" in
4584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4585 *) ac_try_echo=$ac_try;;
4586esac
ec6a6fbe
AK
4587eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4588$as_echo "$ac_try_echo") >&5
7a197a62 4589 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4590 ac_status=$?
8a2fc586
AK
4591 grep -v '^ *+' conftest.er1 >conftest.err
4592 rm -f conftest.er1
4593 cat conftest.err >&5
ec6a6fbe 4594 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4595 (exit $ac_status); } && {
4596 test -z "$ac_c_werror_flag" ||
4597 test ! -s conftest.err
4598 } && test -s conftest.$ac_objext; then
795ca3e5
AK
4599 ac_cv_header_time=yes
4600else
ec6a6fbe 4601 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
4602sed 's/^/| /' conftest.$ac_ext >&5
4603
7a197a62 4604 ac_cv_header_time=no
795ca3e5 4605fi
7a197a62
AK
4606
4607rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
795ca3e5 4608fi
ec6a6fbe
AK
4609{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4610$as_echo "$ac_cv_header_time" >&6; }
80992638 4611if test $ac_cv_header_time = yes; then
ad6254c5
AK
4612
4613cat >>confdefs.h <<\_ACEOF
795ca3e5 4614#define TIME_WITH_SYS_TIME 1
ad6254c5 4615_ACEOF
b896caa1 4616
8106cdd5 4617fi
b896caa1 4618
b896caa1 4619
d0191583
JM
4620# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4631 inttypes.h stdint.h unistd.h
4632do
ec6a6fbe
AK
4633as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4634{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4635$as_echo_n "checking for $ac_header... " >&6; }
d0191583 4636if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 4637 $as_echo_n "(cached) " >&6
d0191583
JM
4638else
4639 cat >conftest.$ac_ext <<_ACEOF
4640/* confdefs.h. */
4641_ACEOF
4642cat confdefs.h >>conftest.$ac_ext
4643cat >>conftest.$ac_ext <<_ACEOF
4644/* end confdefs.h. */
4645$ac_includes_default
4646
4647#include <$ac_header>
4648_ACEOF
4649rm -f conftest.$ac_objext
4650if { (ac_try="$ac_compile"
4651case "(($ac_try" in
4652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4653 *) ac_try_echo=$ac_try;;
4654esac
ec6a6fbe
AK
4655eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4656$as_echo "$ac_try_echo") >&5
d0191583
JM
4657 (eval "$ac_compile") 2>conftest.er1
4658 ac_status=$?
4659 grep -v '^ *+' conftest.er1 >conftest.err
4660 rm -f conftest.er1
4661 cat conftest.err >&5
ec6a6fbe 4662 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4663 (exit $ac_status); } && {
4664 test -z "$ac_c_werror_flag" ||
4665 test ! -s conftest.err
4666 } && test -s conftest.$ac_objext; then
4667 eval "$as_ac_Header=yes"
4668else
ec6a6fbe 4669 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
4670sed 's/^/| /' conftest.$ac_ext >&5
4671
4672 eval "$as_ac_Header=no"
4673fi
4674
4675rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4676fi
ec6a6fbe
AK
4677ac_res=`eval 'as_val=${'$as_ac_Header'}
4678 $as_echo "$as_val"'`
4679 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4680$as_echo "$ac_res" >&6; }
4681as_val=`eval 'as_val=${'$as_ac_Header'}
4682 $as_echo "$as_val"'`
4683 if test "x$as_val" = x""yes; then
d0191583 4684 cat >>confdefs.h <<_ACEOF
ec6a6fbe 4685#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
d0191583
JM
4686_ACEOF
4687
4688fi
4689
4690done
4691
b896caa1 4692
b896caa1
AK
4693
4694
795ca3e5 4695
8106cdd5 4696
80992638 4697
795ca3e5 4698
a38df97f 4699
80992638 4700
d0191583
JM
4701
4702
4703
4704
4705
4706for ac_header in locale.h stddef.h syslog.h sys/file.h sys/time.h assert.h \
4707 libgen.h signal.h sys/mman.h sys/resource.h sys/utsname.h sys/wait.h time.h
ad6254c5 4708do
ec6a6fbe 4709as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
d0191583 4710if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
4711 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4712$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 4713if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 4714 $as_echo_n "(cached) " >&6
d0191583 4715fi
ec6a6fbe
AK
4716ac_res=`eval 'as_val=${'$as_ac_Header'}
4717 $as_echo "$as_val"'`
4718 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4719$as_echo "$ac_res" >&6; }
ad6254c5 4720else
d0191583 4721 # Is the header compilable?
ec6a6fbe
AK
4722{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4723$as_echo_n "checking $ac_header usability... " >&6; }
d0191583 4724cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4725/* confdefs.h. */
4726_ACEOF
4727cat confdefs.h >>conftest.$ac_ext
4728cat >>conftest.$ac_ext <<_ACEOF
4729/* end confdefs.h. */
4730$ac_includes_default
ad6254c5
AK
4731#include <$ac_header>
4732_ACEOF
4733rm -f conftest.$ac_objext
7a197a62
AK
4734if { (ac_try="$ac_compile"
4735case "(($ac_try" in
4736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4737 *) ac_try_echo=$ac_try;;
4738esac
ec6a6fbe
AK
4739eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4740$as_echo "$ac_try_echo") >&5
7a197a62 4741 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4742 ac_status=$?
8a2fc586
AK
4743 grep -v '^ *+' conftest.er1 >conftest.err
4744 rm -f conftest.er1
4745 cat conftest.err >&5
ec6a6fbe 4746 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4747 (exit $ac_status); } && {
4748 test -z "$ac_c_werror_flag" ||
4749 test ! -s conftest.err
4750 } && test -s conftest.$ac_objext; then
d0191583 4751 ac_header_compiler=yes
ad6254c5 4752else
ec6a6fbe 4753 $as_echo "$as_me: failed program was:" >&5
ad6254c5 4754sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 4755
d0191583 4756 ac_header_compiler=no
ad6254c5 4757fi
7a197a62
AK
4758
4759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
4760{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4761$as_echo "$ac_header_compiler" >&6; }
d0191583
JM
4762
4763# Is the header present?
ec6a6fbe
AK
4764{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4765$as_echo_n "checking $ac_header presence... " >&6; }
d0191583
JM
4766cat >conftest.$ac_ext <<_ACEOF
4767/* confdefs.h. */
4768_ACEOF
4769cat confdefs.h >>conftest.$ac_ext
4770cat >>conftest.$ac_ext <<_ACEOF
4771/* end confdefs.h. */
4772#include <$ac_header>
4773_ACEOF
4774if { (ac_try="$ac_cpp conftest.$ac_ext"
4775case "(($ac_try" in
4776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4777 *) ac_try_echo=$ac_try;;
4778esac
ec6a6fbe
AK
4779eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4780$as_echo "$ac_try_echo") >&5
d0191583
JM
4781 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4782 ac_status=$?
4783 grep -v '^ *+' conftest.er1 >conftest.err
4784 rm -f conftest.er1
4785 cat conftest.err >&5
ec6a6fbe 4786 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4787 (exit $ac_status); } >/dev/null && {
4788 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4789 test ! -s conftest.err
4790 }; then
4791 ac_header_preproc=yes
4792else
ec6a6fbe 4793 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
4794sed 's/^/| /' conftest.$ac_ext >&5
4795
4796 ac_header_preproc=no
4797fi
4798
4799rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
4800{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4801$as_echo "$ac_header_preproc" >&6; }
d0191583
JM
4802
4803# So? What about this header?
4804case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4805 yes:no: )
ec6a6fbe
AK
4806 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4807$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4808 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4809$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
d0191583
JM
4810 ac_header_preproc=yes
4811 ;;
4812 no:yes:* )
ec6a6fbe
AK
4813 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4814$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4815 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4816$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4817 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4818$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4819 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4820$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4821 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4822$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4823 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4824$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
d0191583
JM
4825
4826 ;;
4827esac
ec6a6fbe
AK
4828{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4829$as_echo_n "checking for $ac_header... " >&6; }
d0191583 4830if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 4831 $as_echo_n "(cached) " >&6
d0191583
JM
4832else
4833 eval "$as_ac_Header=\$ac_header_preproc"
a38df97f 4834fi
ec6a6fbe
AK
4835ac_res=`eval 'as_val=${'$as_ac_Header'}
4836 $as_echo "$as_val"'`
4837 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4838$as_echo "$ac_res" >&6; }
d0191583
JM
4839
4840fi
ec6a6fbe
AK
4841as_val=`eval 'as_val=${'$as_ac_Header'}
4842 $as_echo "$as_val"'`
4843 if test "x$as_val" = x""yes; then
ad6254c5 4844 cat >>confdefs.h <<_ACEOF
ec6a6fbe 4845#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 4846_ACEOF
a38df97f 4847
d0191583 4848else
ec6a6fbe
AK
4849 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
4850$as_echo "$as_me: error: bailing out" >&2;}
d0191583 4851 { (exit 1); exit 1; }; }
80992638
AK
4852fi
4853
ad6254c5
AK
4854done
4855
7d1552c9 4856
d0191583
JM
4857case "$host_os" in
4858 linux*)
7d1552c9 4859
80992638 4860
5a52dca9 4861
d0191583 4862for ac_header in asm/byteorder.h linux/fs.h malloc.h
ad6254c5 4863do
ec6a6fbe 4864as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 4865if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
4866 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4867$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 4868if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 4869 $as_echo_n "(cached) " >&6
ad6254c5 4870fi
ec6a6fbe
AK
4871ac_res=`eval 'as_val=${'$as_ac_Header'}
4872 $as_echo "$as_val"'`
4873 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4874$as_echo "$ac_res" >&6; }
ad6254c5
AK
4875else
4876 # Is the header compilable?
ec6a6fbe
AK
4877{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4878$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 4879cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4880/* confdefs.h. */
4881_ACEOF
4882cat confdefs.h >>conftest.$ac_ext
4883cat >>conftest.$ac_ext <<_ACEOF
4884/* end confdefs.h. */
4885$ac_includes_default
4886#include <$ac_header>
4887_ACEOF
4888rm -f conftest.$ac_objext
7a197a62
AK
4889if { (ac_try="$ac_compile"
4890case "(($ac_try" in
4891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4892 *) ac_try_echo=$ac_try;;
4893esac
ec6a6fbe
AK
4894eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4895$as_echo "$ac_try_echo") >&5
7a197a62 4896 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4897 ac_status=$?
8a2fc586
AK
4898 grep -v '^ *+' conftest.er1 >conftest.err
4899 rm -f conftest.er1
4900 cat conftest.err >&5
ec6a6fbe 4901 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4902 (exit $ac_status); } && {
4903 test -z "$ac_c_werror_flag" ||
4904 test ! -s conftest.err
4905 } && test -s conftest.$ac_objext; then
fc54be10
AK
4906 ac_header_compiler=yes
4907else
ec6a6fbe 4908 $as_echo "$as_me: failed program was:" >&5
fc54be10
AK
4909sed 's/^/| /' conftest.$ac_ext >&5
4910
4911 ac_header_compiler=no
4912fi
4913
4914rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
4915{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4916$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
4917
4918# Is the header present?
ec6a6fbe
AK
4919{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4920$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 4921cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4922/* confdefs.h. */
4923_ACEOF
4924cat confdefs.h >>conftest.$ac_ext
4925cat >>conftest.$ac_ext <<_ACEOF
4926/* end confdefs.h. */
4927#include <$ac_header>
4928_ACEOF
7a197a62
AK
4929if { (ac_try="$ac_cpp conftest.$ac_ext"
4930case "(($ac_try" in
4931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4932 *) ac_try_echo=$ac_try;;
4933esac
ec6a6fbe
AK
4934eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4935$as_echo "$ac_try_echo") >&5
7a197a62 4936 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
4937 ac_status=$?
4938 grep -v '^ *+' conftest.er1 >conftest.err
4939 rm -f conftest.er1
4940 cat conftest.err >&5
ec6a6fbe 4941 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4942 (exit $ac_status); } >/dev/null && {
4943 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4944 test ! -s conftest.err
4945 }; then
ad6254c5
AK
4946 ac_header_preproc=yes
4947else
ec6a6fbe 4948 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
4949sed 's/^/| /' conftest.$ac_ext >&5
4950
4951 ac_header_preproc=no
4952fi
7a197a62 4953
ad6254c5 4954rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
4955{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4956$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
4957
4958# So? What about this header?
8a2fc586
AK
4959case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4960 yes:no: )
ec6a6fbe
AK
4961 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4962$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4963 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4964$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 4965 ac_header_preproc=yes
ad6254c5 4966 ;;
8a2fc586 4967 no:yes:* )
ec6a6fbe
AK
4968 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4969$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4970 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4971$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4972 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4973$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4974 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4975$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4976 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4977$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4978 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4979$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 4980
ad6254c5
AK
4981 ;;
4982esac
ec6a6fbe
AK
4983{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4984$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 4985if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 4986 $as_echo_n "(cached) " >&6
ad6254c5 4987else
8a2fc586 4988 eval "$as_ac_Header=\$ac_header_preproc"
b896caa1 4989fi
ec6a6fbe
AK
4990ac_res=`eval 'as_val=${'$as_ac_Header'}
4991 $as_echo "$as_val"'`
4992 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4993$as_echo "$ac_res" >&6; }
ad6254c5
AK
4994
4995fi
ec6a6fbe
AK
4996as_val=`eval 'as_val=${'$as_ac_Header'}
4997 $as_echo "$as_val"'`
4998 if test "x$as_val" = x""yes; then
ad6254c5 4999 cat >>confdefs.h <<_ACEOF
ec6a6fbe 5000#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 5001_ACEOF
b896caa1 5002
d8ac0fbc 5003else
ec6a6fbe
AK
5004 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5005$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 5006 { (exit 1); exit 1; }; }
80992638
AK
5007fi
5008
ad6254c5 5009done
d0191583
JM
5010 ;;
5011 darwin*)
d8ac0fbc 5012
d8ac0fbc 5013
d0191583 5014for ac_header in machine/endian.h sys/disk.h
ad6254c5 5015do
ec6a6fbe 5016as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 5017if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
5018 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5019$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 5020if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 5021 $as_echo_n "(cached) " >&6
ad6254c5 5022fi
ec6a6fbe
AK
5023ac_res=`eval 'as_val=${'$as_ac_Header'}
5024 $as_echo "$as_val"'`
5025 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5026$as_echo "$ac_res" >&6; }
ad6254c5
AK
5027else
5028 # Is the header compilable?
ec6a6fbe
AK
5029{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5030$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 5031cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5032/* confdefs.h. */
5033_ACEOF
5034cat confdefs.h >>conftest.$ac_ext
5035cat >>conftest.$ac_ext <<_ACEOF
5036/* end confdefs.h. */
5037$ac_includes_default
5038#include <$ac_header>
5039_ACEOF
5040rm -f conftest.$ac_objext
7a197a62
AK
5041if { (ac_try="$ac_compile"
5042case "(($ac_try" in
5043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5044 *) ac_try_echo=$ac_try;;
5045esac
ec6a6fbe
AK
5046eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5047$as_echo "$ac_try_echo") >&5
7a197a62 5048 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5049 ac_status=$?
8a2fc586
AK
5050 grep -v '^ *+' conftest.er1 >conftest.err
5051 rm -f conftest.er1
5052 cat conftest.err >&5
ec6a6fbe 5053 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5054 (exit $ac_status); } && {
5055 test -z "$ac_c_werror_flag" ||
5056 test ! -s conftest.err
5057 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5058 ac_header_compiler=yes
5059else
ec6a6fbe 5060 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5061sed 's/^/| /' conftest.$ac_ext >&5
5062
7a197a62 5063 ac_header_compiler=no
ad6254c5 5064fi
7a197a62
AK
5065
5066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
5067{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5068$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
5069
5070# Is the header present?
ec6a6fbe
AK
5071{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5072$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 5073cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5074/* confdefs.h. */
5075_ACEOF
5076cat confdefs.h >>conftest.$ac_ext
5077cat >>conftest.$ac_ext <<_ACEOF
5078/* end confdefs.h. */
5079#include <$ac_header>
5080_ACEOF
7a197a62
AK
5081if { (ac_try="$ac_cpp conftest.$ac_ext"
5082case "(($ac_try" in
5083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5084 *) ac_try_echo=$ac_try;;
5085esac
ec6a6fbe
AK
5086eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5087$as_echo "$ac_try_echo") >&5
7a197a62 5088 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
5089 ac_status=$?
5090 grep -v '^ *+' conftest.er1 >conftest.err
5091 rm -f conftest.er1
5092 cat conftest.err >&5
ec6a6fbe 5093 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5094 (exit $ac_status); } >/dev/null && {
5095 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5096 test ! -s conftest.err
5097 }; then
ad6254c5
AK
5098 ac_header_preproc=yes
5099else
ec6a6fbe 5100 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5101sed 's/^/| /' conftest.$ac_ext >&5
5102
5103 ac_header_preproc=no
5104fi
7a197a62 5105
ad6254c5 5106rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
5107{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5108$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
5109
5110# So? What about this header?
8a2fc586
AK
5111case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5112 yes:no: )
ec6a6fbe
AK
5113 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5114$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5115 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5116$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 5117 ac_header_preproc=yes
ad6254c5 5118 ;;
8a2fc586 5119 no:yes:* )
ec6a6fbe
AK
5120 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5121$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5122 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5123$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5124 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5125$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5126 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5127$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5128 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5129$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5130 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5131$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 5132
ad6254c5
AK
5133 ;;
5134esac
ec6a6fbe
AK
5135{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5136$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 5137if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 5138 $as_echo_n "(cached) " >&6
ad6254c5 5139else
8a2fc586 5140 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 5141fi
ec6a6fbe
AK
5142ac_res=`eval 'as_val=${'$as_ac_Header'}
5143 $as_echo "$as_val"'`
5144 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5145$as_echo "$ac_res" >&6; }
ad6254c5
AK
5146
5147fi
ec6a6fbe
AK
5148as_val=`eval 'as_val=${'$as_ac_Header'}
5149 $as_echo "$as_val"'`
5150 if test "x$as_val" = x""yes; then
ad6254c5 5151 cat >>confdefs.h <<_ACEOF
ec6a6fbe 5152#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 5153_ACEOF
4922197a 5154
4922197a 5155else
ec6a6fbe
AK
5156 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5157$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 5158 { (exit 1); exit 1; }; }
80992638
AK
5159fi
5160
ad6254c5 5161done
d0191583
JM
5162 ;;
5163esac
4922197a 5164
4922197a 5165
4922197a 5166
ad6254c5
AK
5167
5168
d0191583
JM
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181for ac_header in ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h \
5182 stdarg.h stdio.h stdlib.h string.h sys/ioctl.h sys/param.h sys/stat.h \
5183 sys/types.h unistd.h
ad6254c5 5184do
ec6a6fbe 5185as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 5186if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
5187 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5188$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 5189if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 5190 $as_echo_n "(cached) " >&6
ad6254c5 5191fi
ec6a6fbe
AK
5192ac_res=`eval 'as_val=${'$as_ac_Header'}
5193 $as_echo "$as_val"'`
5194 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5195$as_echo "$ac_res" >&6; }
795ca3e5 5196else
ad6254c5 5197 # Is the header compilable?
ec6a6fbe
AK
5198{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5199$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 5200cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5201/* confdefs.h. */
5202_ACEOF
5203cat confdefs.h >>conftest.$ac_ext
5204cat >>conftest.$ac_ext <<_ACEOF
5205/* end confdefs.h. */
5206$ac_includes_default
5207#include <$ac_header>
5208_ACEOF
5209rm -f conftest.$ac_objext
7a197a62
AK
5210if { (ac_try="$ac_compile"
5211case "(($ac_try" in
5212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5213 *) ac_try_echo=$ac_try;;
5214esac
ec6a6fbe
AK
5215eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5216$as_echo "$ac_try_echo") >&5
7a197a62 5217 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5218 ac_status=$?
8a2fc586
AK
5219 grep -v '^ *+' conftest.er1 >conftest.err
5220 rm -f conftest.er1
5221 cat conftest.err >&5
ec6a6fbe 5222 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5223 (exit $ac_status); } && {
5224 test -z "$ac_c_werror_flag" ||
5225 test ! -s conftest.err
5226 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5227 ac_header_compiler=yes
5228else
ec6a6fbe 5229 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5230sed 's/^/| /' conftest.$ac_ext >&5
5231
7a197a62 5232 ac_header_compiler=no
ad6254c5 5233fi
7a197a62
AK
5234
5235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
5236{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5237$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
5238
5239# Is the header present?
ec6a6fbe
AK
5240{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5241$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 5242cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5243/* confdefs.h. */
5244_ACEOF
5245cat confdefs.h >>conftest.$ac_ext
5246cat >>conftest.$ac_ext <<_ACEOF
5247/* end confdefs.h. */
5248#include <$ac_header>
5249_ACEOF
7a197a62
AK
5250if { (ac_try="$ac_cpp conftest.$ac_ext"
5251case "(($ac_try" in
5252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5253 *) ac_try_echo=$ac_try;;
5254esac
ec6a6fbe
AK
5255eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5256$as_echo "$ac_try_echo") >&5
7a197a62 5257 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
5258 ac_status=$?
5259 grep -v '^ *+' conftest.er1 >conftest.err
5260 rm -f conftest.er1
5261 cat conftest.err >&5
ec6a6fbe 5262 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5263 (exit $ac_status); } >/dev/null && {
5264 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5265 test ! -s conftest.err
5266 }; then
ad6254c5
AK
5267 ac_header_preproc=yes
5268else
ec6a6fbe 5269 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5270sed 's/^/| /' conftest.$ac_ext >&5
5271
5272 ac_header_preproc=no
5273fi
7a197a62 5274
ad6254c5 5275rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
5276{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5277$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
5278
5279# So? What about this header?
8a2fc586
AK
5280case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5281 yes:no: )
ec6a6fbe
AK
5282 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5283$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5284 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5285$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 5286 ac_header_preproc=yes
ad6254c5 5287 ;;
8a2fc586 5288 no:yes:* )
ec6a6fbe
AK
5289 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5290$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5291 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5292$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5293 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5294$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5295 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5296$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5297 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5298$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5299 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5300$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 5301
ad6254c5
AK
5302 ;;
5303esac
ec6a6fbe
AK
5304{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5305$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 5306if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 5307 $as_echo_n "(cached) " >&6
ad6254c5 5308else
8a2fc586 5309 eval "$as_ac_Header=\$ac_header_preproc"
80992638 5310fi
ec6a6fbe
AK
5311ac_res=`eval 'as_val=${'$as_ac_Header'}
5312 $as_echo "$as_val"'`
5313 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5314$as_echo "$ac_res" >&6; }
80992638 5315
ad6254c5 5316fi
ec6a6fbe
AK
5317as_val=`eval 'as_val=${'$as_ac_Header'}
5318 $as_echo "$as_val"'`
5319 if test "x$as_val" = x""yes; then
ad6254c5 5320 cat >>confdefs.h <<_ACEOF
ec6a6fbe 5321#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 5322_ACEOF
795ca3e5 5323
795ca3e5 5324else
ec6a6fbe
AK
5325 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5326$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 5327 { (exit 1); exit 1; }; }
80992638
AK
5328fi
5329
ad6254c5 5330done
ad6254c5 5331
795ca3e5 5332
d0191583
JM
5333
5334for ac_header in termios.h sys/statvfs.h
ad6254c5 5335do
ec6a6fbe 5336as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 5337if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
5338 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5339$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 5340if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 5341 $as_echo_n "(cached) " >&6
ad6254c5 5342fi
ec6a6fbe
AK
5343ac_res=`eval 'as_val=${'$as_ac_Header'}
5344 $as_echo "$as_val"'`
5345 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5346$as_echo "$ac_res" >&6; }
ad6254c5
AK
5347else
5348 # Is the header compilable?
ec6a6fbe
AK
5349{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5350$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 5351cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5352/* confdefs.h. */
5353_ACEOF
5354cat confdefs.h >>conftest.$ac_ext
5355cat >>conftest.$ac_ext <<_ACEOF
5356/* end confdefs.h. */
5357$ac_includes_default
5358#include <$ac_header>
5359_ACEOF
5360rm -f conftest.$ac_objext
7a197a62
AK
5361if { (ac_try="$ac_compile"
5362case "(($ac_try" in
5363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5364 *) ac_try_echo=$ac_try;;
5365esac
ec6a6fbe
AK
5366eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5367$as_echo "$ac_try_echo") >&5
7a197a62 5368 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5369 ac_status=$?
8a2fc586
AK
5370 grep -v '^ *+' conftest.er1 >conftest.err
5371 rm -f conftest.er1
5372 cat conftest.err >&5
ec6a6fbe 5373 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5374 (exit $ac_status); } && {
5375 test -z "$ac_c_werror_flag" ||
5376 test ! -s conftest.err
5377 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5378 ac_header_compiler=yes
5379else
ec6a6fbe 5380 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5381sed 's/^/| /' conftest.$ac_ext >&5
5382
7a197a62 5383 ac_header_compiler=no
ad6254c5 5384fi
7a197a62
AK
5385
5386rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
5387{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5388$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
5389
5390# Is the header present?
ec6a6fbe
AK
5391{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5392$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 5393cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5394/* confdefs.h. */
5395_ACEOF
5396cat confdefs.h >>conftest.$ac_ext
5397cat >>conftest.$ac_ext <<_ACEOF
5398/* end confdefs.h. */
5399#include <$ac_header>
5400_ACEOF
7a197a62
AK
5401if { (ac_try="$ac_cpp conftest.$ac_ext"
5402case "(($ac_try" in
5403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5404 *) ac_try_echo=$ac_try;;
5405esac
ec6a6fbe
AK
5406eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5407$as_echo "$ac_try_echo") >&5
7a197a62 5408 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
5409 ac_status=$?
5410 grep -v '^ *+' conftest.er1 >conftest.err
5411 rm -f conftest.er1
5412 cat conftest.err >&5
ec6a6fbe 5413 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5414 (exit $ac_status); } >/dev/null && {
5415 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5416 test ! -s conftest.err
5417 }; then
ad6254c5
AK
5418 ac_header_preproc=yes
5419else
ec6a6fbe 5420 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5421sed 's/^/| /' conftest.$ac_ext >&5
5422
5423 ac_header_preproc=no
5424fi
7a197a62 5425
ad6254c5 5426rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
5427{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5428$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
5429
5430# So? What about this header?
8a2fc586
AK
5431case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5432 yes:no: )
ec6a6fbe
AK
5433 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5434$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5435 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5436$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 5437 ac_header_preproc=yes
ad6254c5 5438 ;;
8a2fc586 5439 no:yes:* )
ec6a6fbe
AK
5440 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5441$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5442 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5443$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5444 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5445$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5446 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5447$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5448 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5449$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5450 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5451$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 5452
ad6254c5
AK
5453 ;;
5454esac
ec6a6fbe
AK
5455{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5456$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 5457if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 5458 $as_echo_n "(cached) " >&6
ad6254c5 5459else
8a2fc586 5460 eval "$as_ac_Header=\$ac_header_preproc"
b896caa1 5461fi
ec6a6fbe
AK
5462ac_res=`eval 'as_val=${'$as_ac_Header'}
5463 $as_echo "$as_val"'`
5464 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5465$as_echo "$ac_res" >&6; }
b896caa1 5466
ad6254c5 5467fi
ec6a6fbe
AK
5468as_val=`eval 'as_val=${'$as_ac_Header'}
5469 $as_echo "$as_val"'`
5470 if test "x$as_val" = x""yes; then
ad6254c5 5471 cat >>confdefs.h <<_ACEOF
ec6a6fbe 5472#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
5473_ACEOF
5474
80992638
AK
5475fi
5476
ad6254c5 5477done
d0191583 5478
d3c8211f 5479
80992638 5480################################################################################
ec6a6fbe
AK
5481{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5482$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
ad6254c5 5483if test "${ac_cv_c_const+set}" = set; then
ec6a6fbe 5484 $as_echo_n "(cached) " >&6
d3c8211f 5485else
ad6254c5 5486 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5487/* confdefs.h. */
5488_ACEOF
5489cat confdefs.h >>conftest.$ac_ext
5490cat >>conftest.$ac_ext <<_ACEOF
5491/* end confdefs.h. */
5492
5493int
5494main ()
5495{
5496/* FIXME: Include the comments suggested by Paul. */
5497#ifndef __cplusplus
5498 /* Ultrix mips cc rejects this. */
5499 typedef int charset[2];
25fbec5b 5500 const charset cs;
ad6254c5 5501 /* SunOS 4.1.1 cc rejects this. */
25fbec5b
AK
5502 char const *const *pcpcc;
5503 char **ppc;
ad6254c5
AK
5504 /* NEC SVR4.0.2 mips cc rejects this. */
5505 struct point {int x, y;};
5506 static struct point const zero = {0,0};
5507 /* AIX XL C 1.02.0.0 rejects this.
5508 It does not let you subtract one const X* pointer from another in
5509 an arm of an if-expression whose if-part is not a constant
5510 expression */
5511 const char *g = "string";
25fbec5b 5512 pcpcc = &g + (g ? g-g : 0);
ad6254c5 5513 /* HPUX 7.0 cc rejects these. */
25fbec5b
AK
5514 ++pcpcc;
5515 ppc = (char**) pcpcc;
5516 pcpcc = (char const *const *) ppc;
ad6254c5
AK
5517 { /* SCO 3.2v4 cc rejects this. */
5518 char *t;
5519 char const *s = 0 ? (char *) 0 : (char const *) 0;
5520
5521 *t++ = 0;
7a197a62 5522 if (s) return 0;
ad6254c5
AK
5523 }
5524 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5525 int x[] = {25, 17};
5526 const int *foo = &x[0];
5527 ++foo;
5528 }
5529 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5530 typedef const int *iptr;
5531 iptr p = 0;
5532 ++p;
5533 }
5534 { /* AIX XL C 1.02.0.0 rejects this saying
5535 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5536 struct s { int j; const int *ap[3]; };
5537 struct s *b; b->j = 5;
5538 }
5539 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5540 const int foo = 10;
7a197a62 5541 if (!foo) return 0;
ad6254c5 5542 }
25fbec5b 5543 return !cs[0] && !zero.x;
ad6254c5
AK
5544#endif
5545
5546 ;
5547 return 0;
5548}
5549_ACEOF
5550rm -f conftest.$ac_objext
7a197a62
AK
5551if { (ac_try="$ac_compile"
5552case "(($ac_try" in
5553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5554 *) ac_try_echo=$ac_try;;
5555esac
ec6a6fbe
AK
5556eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5557$as_echo "$ac_try_echo") >&5
7a197a62 5558 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5559 ac_status=$?
8a2fc586
AK
5560 grep -v '^ *+' conftest.er1 >conftest.err
5561 rm -f conftest.er1
5562 cat conftest.err >&5
ec6a6fbe 5563 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5564 (exit $ac_status); } && {
5565 test -z "$ac_c_werror_flag" ||
5566 test ! -s conftest.err
5567 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5568 ac_cv_c_const=yes
5569else
ec6a6fbe 5570 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5571sed 's/^/| /' conftest.$ac_ext >&5
5572
7a197a62 5573 ac_cv_c_const=no
ad6254c5 5574fi
7a197a62
AK
5575
5576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
80992638 5577fi
ec6a6fbe
AK
5578{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5579$as_echo "$ac_cv_c_const" >&6; }
ad6254c5 5580if test $ac_cv_c_const = no; then
80992638 5581
ad6254c5 5582cat >>confdefs.h <<\_ACEOF
ec6a6fbe 5583#define const /**/
ad6254c5 5584_ACEOF
80992638 5585
d3c8211f 5586fi
d3c8211f 5587
ec6a6fbe
AK
5588{ $as_echo "$as_me:$LINENO: checking for inline" >&5
5589$as_echo_n "checking for inline... " >&6; }
ad6254c5 5590if test "${ac_cv_c_inline+set}" = set; then
ec6a6fbe 5591 $as_echo_n "(cached) " >&6
8ef2b021 5592else
ad6254c5
AK
5593 ac_cv_c_inline=no
5594for ac_kw in inline __inline__ __inline; do
5595 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5596/* confdefs.h. */
5597_ACEOF
5598cat confdefs.h >>conftest.$ac_ext
5599cat >>conftest.$ac_ext <<_ACEOF
5600/* end confdefs.h. */
5601#ifndef __cplusplus
5602typedef int foo_t;
5603static $ac_kw foo_t static_foo () {return 0; }
5604$ac_kw foo_t foo () {return 0; }
5605#endif
80992638 5606
ad6254c5
AK
5607_ACEOF
5608rm -f conftest.$ac_objext
7a197a62
AK
5609if { (ac_try="$ac_compile"
5610case "(($ac_try" in
5611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5612 *) ac_try_echo=$ac_try;;
5613esac
ec6a6fbe
AK
5614eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5615$as_echo "$ac_try_echo") >&5
7a197a62 5616 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5617 ac_status=$?
8a2fc586
AK
5618 grep -v '^ *+' conftest.er1 >conftest.err
5619 rm -f conftest.er1
5620 cat conftest.err >&5
ec6a6fbe 5621 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5622 (exit $ac_status); } && {
5623 test -z "$ac_c_werror_flag" ||
5624 test ! -s conftest.err
5625 } && test -s conftest.$ac_objext; then
7a197a62 5626 ac_cv_c_inline=$ac_kw
ad6254c5 5627else
ec6a6fbe 5628 $as_echo "$as_me: failed program was:" >&5
ad6254c5 5629sed 's/^/| /' conftest.$ac_ext >&5
8ef2b021 5630
7a197a62 5631
8ce0cbda 5632fi
7a197a62
AK
5633
5634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5635 test "$ac_cv_c_inline" != no && break
ad6254c5 5636done
8ce0cbda 5637
8ce0cbda 5638fi
ec6a6fbe
AK
5639{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5640$as_echo "$ac_cv_c_inline" >&6; }
8a2fc586
AK
5641
5642
ad6254c5
AK
5643case $ac_cv_c_inline in
5644 inline | yes) ;;
8a2fc586
AK
5645 *)
5646 case $ac_cv_c_inline in
5647 no) ac_val=;;
5648 *) ac_val=$ac_cv_c_inline;;
5649 esac
5650 cat >>confdefs.h <<_ACEOF
5651#ifndef __cplusplus
5652#define inline $ac_val
5653#endif
c1c065a3 5654_ACEOF
d0191583
JM
5655 ;;
5656esac
5657
ec6a6fbe
AK
5658{ $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
5659$as_echo_n "checking for struct stat.st_rdev... " >&6; }
d0191583 5660if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
ec6a6fbe 5661 $as_echo_n "(cached) " >&6
d0191583
JM
5662else
5663 cat >conftest.$ac_ext <<_ACEOF
5664/* confdefs.h. */
5665_ACEOF
5666cat confdefs.h >>conftest.$ac_ext
5667cat >>conftest.$ac_ext <<_ACEOF
5668/* end confdefs.h. */
5669$ac_includes_default
5670int
5671main ()
5672{
5673static struct stat ac_aggr;
5674if (ac_aggr.st_rdev)
5675return 0;
5676 ;
5677 return 0;
5678}
5679_ACEOF
5680rm -f conftest.$ac_objext
5681if { (ac_try="$ac_compile"
5682case "(($ac_try" in
5683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5684 *) ac_try_echo=$ac_try;;
5685esac
ec6a6fbe
AK
5686eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5687$as_echo "$ac_try_echo") >&5
5688 (eval "$ac_compile") 2>conftest.er1
5689 ac_status=$?
5690 grep -v '^ *+' conftest.er1 >conftest.err
5691 rm -f conftest.er1
5692 cat conftest.err >&5
5693 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5694 (exit $ac_status); } && {
5695 test -z "$ac_c_werror_flag" ||
5696 test ! -s conftest.err
5697 } && test -s conftest.$ac_objext; then
5698 ac_cv_member_struct_stat_st_rdev=yes
5699else
5700 $as_echo "$as_me: failed program was:" >&5
5701sed 's/^/| /' conftest.$ac_ext >&5
5702
5703 cat >conftest.$ac_ext <<_ACEOF
5704/* confdefs.h. */
5705_ACEOF
5706cat confdefs.h >>conftest.$ac_ext
5707cat >>conftest.$ac_ext <<_ACEOF
5708/* end confdefs.h. */
5709$ac_includes_default
5710int
5711main ()
5712{
5713static struct stat ac_aggr;
5714if (sizeof ac_aggr.st_rdev)
5715return 0;
5716 ;
5717 return 0;
5718}
5719_ACEOF
5720rm -f conftest.$ac_objext
5721if { (ac_try="$ac_compile"
5722case "(($ac_try" in
5723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5724 *) ac_try_echo=$ac_try;;
5725esac
5726eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5727$as_echo "$ac_try_echo") >&5
5728 (eval "$ac_compile") 2>conftest.er1
5729 ac_status=$?
5730 grep -v '^ *+' conftest.er1 >conftest.err
5731 rm -f conftest.er1
5732 cat conftest.err >&5
5733 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5734 (exit $ac_status); } && {
5735 test -z "$ac_c_werror_flag" ||
5736 test ! -s conftest.err
5737 } && test -s conftest.$ac_objext; then
5738 ac_cv_member_struct_stat_st_rdev=yes
5739else
5740 $as_echo "$as_me: failed program was:" >&5
5741sed 's/^/| /' conftest.$ac_ext >&5
5742
5743 ac_cv_member_struct_stat_st_rdev=no
5744fi
5745
5746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5747fi
5748
5749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5750fi
5751{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
5752$as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; }
5753if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then
5754
5755cat >>confdefs.h <<_ACEOF
5756#define HAVE_STRUCT_STAT_ST_RDEV 1
5757_ACEOF
5758
5759
5760fi
5761
5762{ $as_echo "$as_me:$LINENO: checking for off_t" >&5
5763$as_echo_n "checking for off_t... " >&6; }
5764if test "${ac_cv_type_off_t+set}" = set; then
5765 $as_echo_n "(cached) " >&6
5766else
5767 ac_cv_type_off_t=no
5768cat >conftest.$ac_ext <<_ACEOF
5769/* confdefs.h. */
5770_ACEOF
5771cat confdefs.h >>conftest.$ac_ext
5772cat >>conftest.$ac_ext <<_ACEOF
5773/* end confdefs.h. */
5774$ac_includes_default
5775int
5776main ()
5777{
5778if (sizeof (off_t))
5779 return 0;
5780 ;
5781 return 0;
5782}
5783_ACEOF
5784rm -f conftest.$ac_objext
5785if { (ac_try="$ac_compile"
5786case "(($ac_try" in
5787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5788 *) ac_try_echo=$ac_try;;
5789esac
5790eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5791$as_echo "$ac_try_echo") >&5
5792 (eval "$ac_compile") 2>conftest.er1
5793 ac_status=$?
5794 grep -v '^ *+' conftest.er1 >conftest.err
5795 rm -f conftest.er1
5796 cat conftest.err >&5
5797 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5798 (exit $ac_status); } && {
5799 test -z "$ac_c_werror_flag" ||
5800 test ! -s conftest.err
5801 } && test -s conftest.$ac_objext; then
5802 cat >conftest.$ac_ext <<_ACEOF
5803/* confdefs.h. */
5804_ACEOF
5805cat confdefs.h >>conftest.$ac_ext
5806cat >>conftest.$ac_ext <<_ACEOF
5807/* end confdefs.h. */
5808$ac_includes_default
5809int
5810main ()
5811{
5812if (sizeof ((off_t)))
5813 return 0;
5814 ;
5815 return 0;
5816}
5817_ACEOF
5818rm -f conftest.$ac_objext
5819if { (ac_try="$ac_compile"
5820case "(($ac_try" in
5821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5822 *) ac_try_echo=$ac_try;;
5823esac
5824eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5825$as_echo "$ac_try_echo") >&5
5826 (eval "$ac_compile") 2>conftest.er1
5827 ac_status=$?
5828 grep -v '^ *+' conftest.er1 >conftest.err
5829 rm -f conftest.er1
5830 cat conftest.err >&5
5831 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5832 (exit $ac_status); } && {
5833 test -z "$ac_c_werror_flag" ||
5834 test ! -s conftest.err
5835 } && test -s conftest.$ac_objext; then
5836 :
5837else
5838 $as_echo "$as_me: failed program was:" >&5
5839sed 's/^/| /' conftest.$ac_ext >&5
5840
5841 ac_cv_type_off_t=yes
5842fi
5843
5844rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5845else
5846 $as_echo "$as_me: failed program was:" >&5
5847sed 's/^/| /' conftest.$ac_ext >&5
5848
5849
5850fi
5851
5852rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5853fi
5854{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5855$as_echo "$ac_cv_type_off_t" >&6; }
5856if test "x$ac_cv_type_off_t" = x""yes; then
5857 :
5858else
5859
5860cat >>confdefs.h <<_ACEOF
5861#define off_t long int
5862_ACEOF
5863
5864fi
5865
5866{ $as_echo "$as_me:$LINENO: checking for pid_t" >&5
5867$as_echo_n "checking for pid_t... " >&6; }
5868if test "${ac_cv_type_pid_t+set}" = set; then
5869 $as_echo_n "(cached) " >&6
5870else
5871 ac_cv_type_pid_t=no
5872cat >conftest.$ac_ext <<_ACEOF
5873/* confdefs.h. */
5874_ACEOF
5875cat confdefs.h >>conftest.$ac_ext
5876cat >>conftest.$ac_ext <<_ACEOF
5877/* end confdefs.h. */
5878$ac_includes_default
5879int
5880main ()
5881{
5882if (sizeof (pid_t))
5883 return 0;
5884 ;
5885 return 0;
5886}
5887_ACEOF
5888rm -f conftest.$ac_objext
5889if { (ac_try="$ac_compile"
5890case "(($ac_try" in
5891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5892 *) ac_try_echo=$ac_try;;
5893esac
5894eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5895$as_echo "$ac_try_echo") >&5
d0191583
JM
5896 (eval "$ac_compile") 2>conftest.er1
5897 ac_status=$?
5898 grep -v '^ *+' conftest.er1 >conftest.err
5899 rm -f conftest.er1
5900 cat conftest.err >&5
ec6a6fbe 5901 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
5902 (exit $ac_status); } && {
5903 test -z "$ac_c_werror_flag" ||
5904 test ! -s conftest.err
5905 } && test -s conftest.$ac_objext; then
ec6a6fbe 5906 cat >conftest.$ac_ext <<_ACEOF
d0191583
JM
5907/* confdefs.h. */
5908_ACEOF
5909cat confdefs.h >>conftest.$ac_ext
5910cat >>conftest.$ac_ext <<_ACEOF
5911/* end confdefs.h. */
5912$ac_includes_default
5913int
5914main ()
5915{
ec6a6fbe
AK
5916if (sizeof ((pid_t)))
5917 return 0;
d0191583
JM
5918 ;
5919 return 0;
5920}
5921_ACEOF
5922rm -f conftest.$ac_objext
5923if { (ac_try="$ac_compile"
5924case "(($ac_try" in
5925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5926 *) ac_try_echo=$ac_try;;
5927esac
ec6a6fbe
AK
5928eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5929$as_echo "$ac_try_echo") >&5
d0191583
JM
5930 (eval "$ac_compile") 2>conftest.er1
5931 ac_status=$?
5932 grep -v '^ *+' conftest.er1 >conftest.err
5933 rm -f conftest.er1
5934 cat conftest.err >&5
ec6a6fbe 5935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
5936 (exit $ac_status); } && {
5937 test -z "$ac_c_werror_flag" ||
5938 test ! -s conftest.err
5939 } && test -s conftest.$ac_objext; then
ec6a6fbe 5940 :
d0191583 5941else
ec6a6fbe 5942 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
5943sed 's/^/| /' conftest.$ac_ext >&5
5944
ec6a6fbe 5945 ac_cv_type_pid_t=yes
d0191583
JM
5946fi
5947
5948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
5949else
5950 $as_echo "$as_me: failed program was:" >&5
5951sed 's/^/| /' conftest.$ac_ext >&5
5952
5953
d0191583
JM
5954fi
5955
5956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5957fi
ec6a6fbe
AK
5958{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
5959$as_echo "$ac_cv_type_pid_t" >&6; }
5960if test "x$ac_cv_type_pid_t" = x""yes; then
5961 :
5962else
d0191583
JM
5963
5964cat >>confdefs.h <<_ACEOF
ec6a6fbe 5965#define pid_t int
d0191583
JM
5966_ACEOF
5967
d0191583 5968fi
8ce0cbda 5969
ec6a6fbe
AK
5970{ $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5971$as_echo_n "checking return type of signal handlers... " >&6; }
5972if test "${ac_cv_type_signal+set}" = set; then
5973 $as_echo_n "(cached) " >&6
ad6254c5 5974else
b145d876
ZK
5975 cat >conftest.$ac_ext <<_ACEOF
5976/* confdefs.h. */
5977_ACEOF
5978cat confdefs.h >>conftest.$ac_ext
5979cat >>conftest.$ac_ext <<_ACEOF
5980/* end confdefs.h. */
ec6a6fbe
AK
5981#include <sys/types.h>
5982#include <signal.h>
5983
b145d876
ZK
5984int
5985main ()
5986{
ec6a6fbe 5987return *(signal (0, 0)) (0) == 1;
ad6254c5
AK
5988 ;
5989 return 0;
5990}
5991_ACEOF
5992rm -f conftest.$ac_objext
7a197a62
AK
5993if { (ac_try="$ac_compile"
5994case "(($ac_try" in
5995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5996 *) ac_try_echo=$ac_try;;
5997esac
ec6a6fbe
AK
5998eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5999$as_echo "$ac_try_echo") >&5
7a197a62 6000 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6001 ac_status=$?
8a2fc586
AK
6002 grep -v '^ *+' conftest.er1 >conftest.err
6003 rm -f conftest.er1
6004 cat conftest.err >&5
ec6a6fbe 6005 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6006 (exit $ac_status); } && {
6007 test -z "$ac_c_werror_flag" ||
6008 test ! -s conftest.err
6009 } && test -s conftest.$ac_objext; then
ec6a6fbe 6010 ac_cv_type_signal=int
b145d876 6011else
ec6a6fbe 6012 $as_echo "$as_me: failed program was:" >&5
b145d876
ZK
6013sed 's/^/| /' conftest.$ac_ext >&5
6014
ec6a6fbe 6015 ac_cv_type_signal=void
ad6254c5 6016fi
b145d876
ZK
6017
6018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6019fi
ec6a6fbe
AK
6020{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6021$as_echo "$ac_cv_type_signal" >&6; }
80992638 6022
ad6254c5 6023cat >>confdefs.h <<_ACEOF
ec6a6fbe 6024#define RETSIGTYPE $ac_cv_type_signal
ad6254c5 6025_ACEOF
199e490e 6026
b896caa1 6027
ec6a6fbe
AK
6028{ $as_echo "$as_me:$LINENO: checking for size_t" >&5
6029$as_echo_n "checking for size_t... " >&6; }
6030if test "${ac_cv_type_size_t+set}" = set; then
6031 $as_echo_n "(cached) " >&6
ad6254c5 6032else
ec6a6fbe
AK
6033 ac_cv_type_size_t=no
6034cat >conftest.$ac_ext <<_ACEOF
b145d876
ZK
6035/* confdefs.h. */
6036_ACEOF
6037cat confdefs.h >>conftest.$ac_ext
6038cat >>conftest.$ac_ext <<_ACEOF
6039/* end confdefs.h. */
6040$ac_includes_default
6041int
6042main ()
6043{
ec6a6fbe
AK
6044if (sizeof (size_t))
6045 return 0;
ad6254c5
AK
6046 ;
6047 return 0;
6048}
6049_ACEOF
6050rm -f conftest.$ac_objext
7a197a62
AK
6051if { (ac_try="$ac_compile"
6052case "(($ac_try" in
6053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6054 *) ac_try_echo=$ac_try;;
6055esac
ec6a6fbe
AK
6056eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6057$as_echo "$ac_try_echo") >&5
7a197a62 6058 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6059 ac_status=$?
8a2fc586
AK
6060 grep -v '^ *+' conftest.er1 >conftest.err
6061 rm -f conftest.er1
6062 cat conftest.err >&5
ec6a6fbe 6063 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6064 (exit $ac_status); } && {
6065 test -z "$ac_c_werror_flag" ||
6066 test ! -s conftest.err
6067 } && test -s conftest.$ac_objext; then
d0191583
JM
6068 cat >conftest.$ac_ext <<_ACEOF
6069/* confdefs.h. */
6070_ACEOF
6071cat confdefs.h >>conftest.$ac_ext
6072cat >>conftest.$ac_ext <<_ACEOF
6073/* end confdefs.h. */
ec6a6fbe 6074$ac_includes_default
d0191583
JM
6075int
6076main ()
6077{
ec6a6fbe
AK
6078if (sizeof ((size_t)))
6079 return 0;
d0191583
JM
6080 ;
6081 return 0;
6082}
6083_ACEOF
6084rm -f conftest.$ac_objext
6085if { (ac_try="$ac_compile"
6086case "(($ac_try" in
6087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6088 *) ac_try_echo=$ac_try;;
6089esac
ec6a6fbe
AK
6090eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6091$as_echo "$ac_try_echo") >&5
d0191583
JM
6092 (eval "$ac_compile") 2>conftest.er1
6093 ac_status=$?
6094 grep -v '^ *+' conftest.er1 >conftest.err
6095 rm -f conftest.er1
6096 cat conftest.err >&5
ec6a6fbe 6097 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
6098 (exit $ac_status); } && {
6099 test -z "$ac_c_werror_flag" ||
6100 test ! -s conftest.err
6101 } && test -s conftest.$ac_objext; then
ec6a6fbe 6102 :
d0191583 6103else
ec6a6fbe 6104 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
6105sed 's/^/| /' conftest.$ac_ext >&5
6106
ec6a6fbe
AK
6107 ac_cv_type_size_t=yes
6108fi
6109
6110rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6111else
6112 $as_echo "$as_me: failed program was:" >&5
6113sed 's/^/| /' conftest.$ac_ext >&5
6114
6115
d0191583
JM
6116fi
6117
6118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6119fi
ec6a6fbe
AK
6120{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6121$as_echo "$ac_cv_type_size_t" >&6; }
6122if test "x$ac_cv_type_size_t" = x""yes; then
6123 :
6124else
d0191583
JM
6125
6126cat >>confdefs.h <<_ACEOF
ec6a6fbe 6127#define size_t unsigned int
d0191583
JM
6128_ACEOF
6129
ec6a6fbe 6130fi
d0191583 6131
ec6a6fbe
AK
6132{ $as_echo "$as_me:$LINENO: checking for mode_t" >&5
6133$as_echo_n "checking for mode_t... " >&6; }
6134if test "${ac_cv_type_mode_t+set}" = set; then
6135 $as_echo_n "(cached) " >&6
8106cdd5 6136else
ec6a6fbe
AK
6137 ac_cv_type_mode_t=no
6138cat >conftest.$ac_ext <<_ACEOF
b145d876
ZK
6139/* confdefs.h. */
6140_ACEOF
6141cat confdefs.h >>conftest.$ac_ext
6142cat >>conftest.$ac_ext <<_ACEOF
6143/* end confdefs.h. */
6144$ac_includes_default
6145int
6146main ()
6147{
ec6a6fbe
AK
6148if (sizeof (mode_t))
6149 return 0;
ad6254c5
AK
6150 ;
6151 return 0;
6152}
6153_ACEOF
6154rm -f conftest.$ac_objext
7a197a62
AK
6155if { (ac_try="$ac_compile"
6156case "(($ac_try" in
6157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6158 *) ac_try_echo=$ac_try;;
6159esac
ec6a6fbe
AK
6160eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6161$as_echo "$ac_try_echo") >&5
7a197a62 6162 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6163 ac_status=$?
8a2fc586
AK
6164 grep -v '^ *+' conftest.er1 >conftest.err
6165 rm -f conftest.er1
6166 cat conftest.err >&5
ec6a6fbe 6167 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6168 (exit $ac_status); } && {
6169 test -z "$ac_c_werror_flag" ||
6170 test ! -s conftest.err
6171 } && test -s conftest.$ac_objext; then
b145d876
ZK
6172 cat >conftest.$ac_ext <<_ACEOF
6173/* confdefs.h. */
6174_ACEOF
6175cat confdefs.h >>conftest.$ac_ext
6176cat >>conftest.$ac_ext <<_ACEOF
6177/* end confdefs.h. */
6178$ac_includes_default
6179int
6180main ()
6181{
ec6a6fbe
AK
6182if (sizeof ((mode_t)))
6183 return 0;
ad6254c5
AK
6184 ;
6185 return 0;
6186}
6187_ACEOF
6188rm -f conftest.$ac_objext
7a197a62
AK
6189if { (ac_try="$ac_compile"
6190case "(($ac_try" in
6191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6192 *) ac_try_echo=$ac_try;;
6193esac
ec6a6fbe
AK
6194eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6195$as_echo "$ac_try_echo") >&5
7a197a62 6196 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6197 ac_status=$?
8a2fc586
AK
6198 grep -v '^ *+' conftest.er1 >conftest.err
6199 rm -f conftest.er1
6200 cat conftest.err >&5
ec6a6fbe 6201 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6202 (exit $ac_status); } && {
6203 test -z "$ac_c_werror_flag" ||
6204 test ! -s conftest.err
6205 } && test -s conftest.$ac_objext; then
ec6a6fbe
AK
6206 :
6207else
6208 $as_echo "$as_me: failed program was:" >&5
6209sed 's/^/| /' conftest.$ac_ext >&5
6210
6211 ac_cv_type_mode_t=yes
6212fi
6213
6214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fddafd51 6215else
ec6a6fbe 6216 $as_echo "$as_me: failed program was:" >&5
fddafd51
ZK
6217sed 's/^/| /' conftest.$ac_ext >&5
6218
ec6a6fbe 6219
80992638 6220fi
7a197a62
AK
6221
6222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 6223fi
ec6a6fbe
AK
6224{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6225$as_echo "$ac_cv_type_mode_t" >&6; }
6226if test "x$ac_cv_type_mode_t" = x""yes; then
ad6254c5
AK
6227 :
6228else
80992638 6229
ad6254c5
AK
6230cat >>confdefs.h <<_ACEOF
6231#define mode_t int
6232_ACEOF
6233
6234fi
6235
ec6a6fbe
AK
6236{ $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
6237$as_echo_n "checking for struct stat.st_rdev... " >&6; }
ad6254c5 6238if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
ec6a6fbe 6239 $as_echo_n "(cached) " >&6
ad6254c5
AK
6240else
6241 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6242/* confdefs.h. */
6243_ACEOF
6244cat confdefs.h >>conftest.$ac_ext
6245cat >>conftest.$ac_ext <<_ACEOF
6246/* end confdefs.h. */
6247$ac_includes_default
6248int
6249main ()
6250{
6251static struct stat ac_aggr;
6252if (ac_aggr.st_rdev)
6253return 0;
6254 ;
6255 return 0;
6256}
6257_ACEOF
6258rm -f conftest.$ac_objext
7a197a62
AK
6259if { (ac_try="$ac_compile"
6260case "(($ac_try" in
6261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6262 *) ac_try_echo=$ac_try;;
6263esac
ec6a6fbe
AK
6264eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6265$as_echo "$ac_try_echo") >&5
7a197a62 6266 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6267 ac_status=$?
8a2fc586
AK
6268 grep -v '^ *+' conftest.er1 >conftest.err
6269 rm -f conftest.er1
6270 cat conftest.err >&5
ec6a6fbe 6271 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6272 (exit $ac_status); } && {
6273 test -z "$ac_c_werror_flag" ||
6274 test ! -s conftest.err
6275 } && test -s conftest.$ac_objext; then
ad6254c5
AK
6276 ac_cv_member_struct_stat_st_rdev=yes
6277else
ec6a6fbe 6278 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6279sed 's/^/| /' conftest.$ac_ext >&5
6280
7a197a62 6281 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6282/* confdefs.h. */
6283_ACEOF
6284cat confdefs.h >>conftest.$ac_ext
6285cat >>conftest.$ac_ext <<_ACEOF
6286/* end confdefs.h. */
6287$ac_includes_default
6288int
6289main ()
6290{
6291static struct stat ac_aggr;
6292if (sizeof ac_aggr.st_rdev)
6293return 0;
6294 ;
6295 return 0;
6296}
6297_ACEOF
6298rm -f conftest.$ac_objext
7a197a62
AK
6299if { (ac_try="$ac_compile"
6300case "(($ac_try" in
6301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6302 *) ac_try_echo=$ac_try;;
6303esac
ec6a6fbe
AK
6304eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6305$as_echo "$ac_try_echo") >&5
7a197a62 6306 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6307 ac_status=$?
8a2fc586
AK
6308 grep -v '^ *+' conftest.er1 >conftest.err
6309 rm -f conftest.er1
6310 cat conftest.err >&5
ec6a6fbe 6311 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6312 (exit $ac_status); } && {
6313 test -z "$ac_c_werror_flag" ||
6314 test ! -s conftest.err
6315 } && test -s conftest.$ac_objext; then
ad6254c5
AK
6316 ac_cv_member_struct_stat_st_rdev=yes
6317else
ec6a6fbe 6318 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6319sed 's/^/| /' conftest.$ac_ext >&5
6320
7a197a62 6321 ac_cv_member_struct_stat_st_rdev=no
ad6254c5 6322fi
7a197a62
AK
6323
6324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 6325fi
7a197a62
AK
6326
6327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 6328fi
ec6a6fbe
AK
6329{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
6330$as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; }
6331if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then
ad6254c5
AK
6332
6333cat >>confdefs.h <<_ACEOF
6334#define HAVE_STRUCT_STAT_ST_RDEV 1
6335_ACEOF
6336
6337
ad6254c5
AK
6338fi
6339
ec6a6fbe
AK
6340{ $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6341$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
ad6254c5 6342if test "${ac_cv_struct_tm+set}" = set; then
ec6a6fbe 6343 $as_echo_n "(cached) " >&6
ad6254c5
AK
6344else
6345 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6346/* confdefs.h. */
6347_ACEOF
6348cat confdefs.h >>conftest.$ac_ext
6349cat >>conftest.$ac_ext <<_ACEOF
6350/* end confdefs.h. */
6351#include <sys/types.h>
6352#include <time.h>
6353
6354int
6355main ()
6356{
25fbec5b
AK
6357struct tm tm;
6358 int *p = &tm.tm_sec;
ec6a6fbe 6359 return !p;
ad6254c5
AK
6360 ;
6361 return 0;
6362}
6363_ACEOF
6364rm -f conftest.$ac_objext
7a197a62
AK
6365if { (ac_try="$ac_compile"
6366case "(($ac_try" in
6367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6368 *) ac_try_echo=$ac_try;;
6369esac
ec6a6fbe
AK
6370eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6371$as_echo "$ac_try_echo") >&5
7a197a62 6372 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6373 ac_status=$?
8a2fc586
AK
6374 grep -v '^ *+' conftest.er1 >conftest.err
6375 rm -f conftest.er1
6376 cat conftest.err >&5
ec6a6fbe 6377 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6378 (exit $ac_status); } && {
6379 test -z "$ac_c_werror_flag" ||
6380 test ! -s conftest.err
6381 } && test -s conftest.$ac_objext; then
ad6254c5
AK
6382 ac_cv_struct_tm=time.h
6383else
ec6a6fbe 6384 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6385sed 's/^/| /' conftest.$ac_ext >&5
6386
7a197a62 6387 ac_cv_struct_tm=sys/time.h
ad6254c5 6388fi
7a197a62
AK
6389
6390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 6391fi
ec6a6fbe
AK
6392{ $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6393$as_echo "$ac_cv_struct_tm" >&6; }
ad6254c5
AK
6394if test $ac_cv_struct_tm = sys/time.h; then
6395
6396cat >>confdefs.h <<\_ACEOF
6397#define TM_IN_SYS_TIME 1
6398_ACEOF
6399
6400fi
809fae91 6401
795ca3e5 6402
80992638 6403################################################################################
ad6254c5
AK
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
d0191583
JM
6418
6419
6420
6421for ac_func in gethostname getpagesize memset mkdir rmdir munmap setlocale \
6422 strcasecmp strchr strdup strncasecmp strerror strrchr strstr strtol strtoul \
6423 uname
ad6254c5 6424do
ec6a6fbe
AK
6425as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6426{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6427$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 6428if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 6429 $as_echo_n "(cached) " >&6
795ca3e5 6430else
ad6254c5 6431 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6432/* confdefs.h. */
6433_ACEOF
6434cat confdefs.h >>conftest.$ac_ext
6435cat >>conftest.$ac_ext <<_ACEOF
6436/* end confdefs.h. */
8a2fc586
AK
6437/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6438 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6439#define $ac_func innocuous_$ac_func
6440
ad6254c5
AK
6441/* System header to define __stub macros and hopefully few prototypes,
6442 which can conflict with char $ac_func (); below.
6443 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6444 <limits.h> exists even on freestanding compilers. */
8a2fc586 6445
ad6254c5
AK
6446#ifdef __STDC__
6447# include <limits.h>
6448#else
6449# include <assert.h>
6450#endif
8a2fc586
AK
6451
6452#undef $ac_func
6453
7a197a62
AK
6454/* Override any GCC internal prototype to avoid an error.
6455 Use char because int might match the return type of a GCC
6456 builtin and then its argument prototype would still apply. */
ad6254c5
AK
6457#ifdef __cplusplus
6458extern "C"
ad6254c5 6459#endif
ad6254c5
AK
6460char $ac_func ();
6461/* The GNU C library defines this for functions which it implements
6462 to always fail with ENOSYS. Some functions are actually named
6463 something starting with __ and the normal name is an alias. */
7a197a62 6464#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 6465choke me
ad6254c5
AK
6466#endif
6467
6468int
6469main ()
6470{
7a197a62 6471return $ac_func ();
ad6254c5
AK
6472 ;
6473 return 0;
6474}
6475_ACEOF
6476rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
6477if { (ac_try="$ac_link"
6478case "(($ac_try" in
6479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6480 *) ac_try_echo=$ac_try;;
6481esac
ec6a6fbe
AK
6482eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6483$as_echo "$ac_try_echo") >&5
7a197a62 6484 (eval "$ac_link") 2>conftest.er1
ad6254c5 6485 ac_status=$?
8a2fc586
AK
6486 grep -v '^ *+' conftest.er1 >conftest.err
6487 rm -f conftest.er1
6488 cat conftest.err >&5
ec6a6fbe 6489 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6490 (exit $ac_status); } && {
6491 test -z "$ac_c_werror_flag" ||
6492 test ! -s conftest.err
ec6a6fbe
AK
6493 } && test -s conftest$ac_exeext && {
6494 test "$cross_compiling" = yes ||
6495 $as_test_x conftest$ac_exeext
6496 }; then
fc54be10
AK
6497 eval "$as_ac_var=yes"
6498else
ec6a6fbe 6499 $as_echo "$as_me: failed program was:" >&5
fc54be10
AK
6500sed 's/^/| /' conftest.$ac_ext >&5
6501
6502 eval "$as_ac_var=no"
6503fi
6504
ec6a6fbe 6505rm -rf conftest.dSYM
25fbec5b 6506rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
fc54be10
AK
6507 conftest$ac_exeext conftest.$ac_ext
6508fi
ec6a6fbe
AK
6509ac_res=`eval 'as_val=${'$as_ac_var'}
6510 $as_echo "$as_val"'`
6511 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6512$as_echo "$ac_res" >&6; }
6513as_val=`eval 'as_val=${'$as_ac_var'}
6514 $as_echo "$as_val"'`
6515 if test "x$as_val" = x""yes; then
ad6254c5 6516 cat >>confdefs.h <<_ACEOF
ec6a6fbe 6517#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
6518_ACEOF
6519
6520else
ec6a6fbe
AK
6521 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
6522$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5
AK
6523 { (exit 1); exit 1; }; }
6524fi
6525done
795ca3e5 6526
ad6254c5
AK
6527# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6528# for constant arguments. Useless!
ec6a6fbe
AK
6529{ $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
6530$as_echo_n "checking for working alloca.h... " >&6; }
ad6254c5 6531if test "${ac_cv_working_alloca_h+set}" = set; then
ec6a6fbe 6532 $as_echo_n "(cached) " >&6
ad6254c5
AK
6533else
6534 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6535/* confdefs.h. */
6536_ACEOF
6537cat confdefs.h >>conftest.$ac_ext
6538cat >>conftest.$ac_ext <<_ACEOF
6539/* end confdefs.h. */
6540#include <alloca.h>
6541int
6542main ()
6543{
6544char *p = (char *) alloca (2 * sizeof (int));
7a197a62 6545 if (p) return 0;
ad6254c5
AK
6546 ;
6547 return 0;
6548}
6549_ACEOF
6550rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
6551if { (ac_try="$ac_link"
6552case "(($ac_try" in
6553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6554 *) ac_try_echo=$ac_try;;
6555esac
ec6a6fbe
AK
6556eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6557$as_echo "$ac_try_echo") >&5
7a197a62 6558 (eval "$ac_link") 2>conftest.er1
ad6254c5 6559 ac_status=$?
8a2fc586
AK
6560 grep -v '^ *+' conftest.er1 >conftest.err
6561 rm -f conftest.er1
6562 cat conftest.err >&5
ec6a6fbe 6563 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6564 (exit $ac_status); } && {
6565 test -z "$ac_c_werror_flag" ||
6566 test ! -s conftest.err
ec6a6fbe
AK
6567 } && test -s conftest$ac_exeext && {
6568 test "$cross_compiling" = yes ||
6569 $as_test_x conftest$ac_exeext
6570 }; then
ad6254c5
AK
6571 ac_cv_working_alloca_h=yes
6572else
ec6a6fbe 6573 $as_echo "$as_me: failed program was:" >&5
ad6254c5 6574sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 6575
7a197a62 6576 ac_cv_working_alloca_h=no
ad6254c5 6577fi
7a197a62 6578
ec6a6fbe 6579rm -rf conftest.dSYM
25fbec5b 6580rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 6581 conftest$ac_exeext conftest.$ac_ext
ad6254c5 6582fi
ec6a6fbe
AK
6583{ $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6584$as_echo "$ac_cv_working_alloca_h" >&6; }
ad6254c5
AK
6585if test $ac_cv_working_alloca_h = yes; then
6586
6587cat >>confdefs.h <<\_ACEOF
6588#define HAVE_ALLOCA_H 1
6589_ACEOF
6590
6591fi
6592
ec6a6fbe
AK
6593{ $as_echo "$as_me:$LINENO: checking for alloca" >&5
6594$as_echo_n "checking for alloca... " >&6; }
ad6254c5 6595if test "${ac_cv_func_alloca_works+set}" = set; then
ec6a6fbe 6596 $as_echo_n "(cached) " >&6
ad6254c5
AK
6597else
6598 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6599/* confdefs.h. */
6600_ACEOF
6601cat confdefs.h >>conftest.$ac_ext
6602cat >>conftest.$ac_ext <<_ACEOF
6603/* end confdefs.h. */
6604#ifdef __GNUC__
6605# define alloca __builtin_alloca
6606#else
6607# ifdef _MSC_VER
6608# include <malloc.h>
6609# define alloca _alloca
6610# else
25fbec5b 6611# ifdef HAVE_ALLOCA_H
ad6254c5
AK
6612# include <alloca.h>
6613# else
6614# ifdef _AIX
6615 #pragma alloca
6616# else
6617# ifndef alloca /* predefined by HP cc +Olibcalls */
6618char *alloca ();
6619# endif
6620# endif
6621# endif
6622# endif
6623#endif
6624
6625int
6626main ()
6627{
6628char *p = (char *) alloca (1);
7a197a62 6629 if (p) return 0;
ad6254c5
AK
6630 ;
6631 return 0;
6632}
6633_ACEOF
6634rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
6635if { (ac_try="$ac_link"
6636case "(($ac_try" in
6637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6638 *) ac_try_echo=$ac_try;;
6639esac
ec6a6fbe
AK
6640eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6641$as_echo "$ac_try_echo") >&5
7a197a62 6642 (eval "$ac_link") 2>conftest.er1
ad6254c5 6643 ac_status=$?
8a2fc586
AK
6644 grep -v '^ *+' conftest.er1 >conftest.err
6645 rm -f conftest.er1
6646 cat conftest.err >&5
ec6a6fbe 6647 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6648 (exit $ac_status); } && {
6649 test -z "$ac_c_werror_flag" ||
6650 test ! -s conftest.err
ec6a6fbe
AK
6651 } && test -s conftest$ac_exeext && {
6652 test "$cross_compiling" = yes ||
6653 $as_test_x conftest$ac_exeext
6654 }; then
ad6254c5
AK
6655 ac_cv_func_alloca_works=yes
6656else
ec6a6fbe 6657 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6658sed 's/^/| /' conftest.$ac_ext >&5
6659
7a197a62 6660 ac_cv_func_alloca_works=no
ad6254c5 6661fi
7a197a62 6662
ec6a6fbe 6663rm -rf conftest.dSYM
25fbec5b 6664rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 6665 conftest$ac_exeext conftest.$ac_ext
ad6254c5 6666fi
ec6a6fbe
AK
6667{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6668$as_echo "$ac_cv_func_alloca_works" >&6; }
ad6254c5
AK
6669
6670if test $ac_cv_func_alloca_works = yes; then
6671
6672cat >>confdefs.h <<\_ACEOF
6673#define HAVE_ALLOCA 1
6674_ACEOF
6675
6676else
6677 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6678# that cause trouble. Some versions do not even contain alloca or
6679# contain a buggy version. If you still want to use their alloca,
6680# use ar to extract alloca.o from them instead of compiling alloca.c.
6681
7a197a62 6682ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
ad6254c5
AK
6683
6684cat >>confdefs.h <<\_ACEOF
6685#define C_ALLOCA 1
6686_ACEOF
6687
6688
ec6a6fbe
AK
6689{ $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6690$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
ad6254c5 6691if test "${ac_cv_os_cray+set}" = set; then
ec6a6fbe 6692 $as_echo_n "(cached) " >&6
ad6254c5
AK
6693else
6694 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6695/* confdefs.h. */
6696_ACEOF
6697cat confdefs.h >>conftest.$ac_ext
6698cat >>conftest.$ac_ext <<_ACEOF
6699/* end confdefs.h. */
7a197a62 6700#if defined CRAY && ! defined CRAY2
ad6254c5
AK
6701webecray
6702#else
6703wenotbecray
6704#endif
6705
6706_ACEOF
795ca3e5 6707if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ad6254c5
AK
6708 $EGREP "webecray" >/dev/null 2>&1; then
6709 ac_cv_os_cray=yes
6710else
6711 ac_cv_os_cray=no
795ca3e5
AK
6712fi
6713rm -f conftest*
6714
795ca3e5 6715fi
ec6a6fbe
AK
6716{ $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6717$as_echo "$ac_cv_os_cray" >&6; }
ad6254c5
AK
6718if test $ac_cv_os_cray = yes; then
6719 for ac_func in _getb67 GETB67 getb67; do
ec6a6fbe
AK
6720 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6721{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6722$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 6723if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 6724 $as_echo_n "(cached) " >&6
ad6254c5
AK
6725else
6726 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6727/* confdefs.h. */
6728_ACEOF
6729cat confdefs.h >>conftest.$ac_ext
6730cat >>conftest.$ac_ext <<_ACEOF
6731/* end confdefs.h. */
8a2fc586
AK
6732/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6733 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6734#define $ac_func innocuous_$ac_func
6735
ad6254c5
AK
6736/* System header to define __stub macros and hopefully few prototypes,
6737 which can conflict with char $ac_func (); below.
6738 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6739 <limits.h> exists even on freestanding compilers. */
8a2fc586 6740
ad6254c5
AK
6741#ifdef __STDC__
6742# include <limits.h>
6743#else
6744# include <assert.h>
6745#endif
8a2fc586
AK
6746
6747#undef $ac_func
6748
7a197a62
AK
6749/* Override any GCC internal prototype to avoid an error.
6750 Use char because int might match the return type of a GCC
6751 builtin and then its argument prototype would still apply. */
ad6254c5
AK
6752#ifdef __cplusplus
6753extern "C"
ad6254c5 6754#endif
ad6254c5
AK
6755char $ac_func ();
6756/* The GNU C library defines this for functions which it implements
6757 to always fail with ENOSYS. Some functions are actually named
6758 something starting with __ and the normal name is an alias. */
7a197a62 6759#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 6760choke me
ad6254c5
AK
6761#endif
6762
6763int
6764main ()
6765{
7a197a62 6766return $ac_func ();
ad6254c5
AK
6767 ;
6768 return 0;
6769}
6770_ACEOF
6771rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
6772if { (ac_try="$ac_link"
6773case "(($ac_try" in
6774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6775 *) ac_try_echo=$ac_try;;
6776esac
ec6a6fbe
AK
6777eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6778$as_echo "$ac_try_echo") >&5
7a197a62 6779 (eval "$ac_link") 2>conftest.er1
ad6254c5 6780 ac_status=$?
8a2fc586
AK
6781 grep -v '^ *+' conftest.er1 >conftest.err
6782 rm -f conftest.er1
6783 cat conftest.err >&5
ec6a6fbe 6784 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6785 (exit $ac_status); } && {
6786 test -z "$ac_c_werror_flag" ||
6787 test ! -s conftest.err
ec6a6fbe
AK
6788 } && test -s conftest$ac_exeext && {
6789 test "$cross_compiling" = yes ||
6790 $as_test_x conftest$ac_exeext
6791 }; then
ad6254c5
AK
6792 eval "$as_ac_var=yes"
6793else
ec6a6fbe 6794 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6795sed 's/^/| /' conftest.$ac_ext >&5
6796
7a197a62 6797 eval "$as_ac_var=no"
ad6254c5 6798fi
7a197a62 6799
ec6a6fbe 6800rm -rf conftest.dSYM
25fbec5b 6801rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 6802 conftest$ac_exeext conftest.$ac_ext
ad6254c5 6803fi
ec6a6fbe
AK
6804ac_res=`eval 'as_val=${'$as_ac_var'}
6805 $as_echo "$as_val"'`
6806 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6807$as_echo "$ac_res" >&6; }
6808as_val=`eval 'as_val=${'$as_ac_var'}
6809 $as_echo "$as_val"'`
6810 if test "x$as_val" = x""yes; then
80992638 6811
ad6254c5
AK
6812cat >>confdefs.h <<_ACEOF
6813#define CRAY_STACKSEG_END $ac_func
6814_ACEOF
6815
6816 break
6817fi
6818
6819 done
6820fi
6821
ec6a6fbe
AK
6822{ $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6823$as_echo_n "checking stack direction for C alloca... " >&6; }
ad6254c5 6824if test "${ac_cv_c_stack_direction+set}" = set; then
ec6a6fbe 6825 $as_echo_n "(cached) " >&6
ad6254c5
AK
6826else
6827 if test "$cross_compiling" = yes; then
6828 ac_cv_c_stack_direction=0
6829else
6830 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6831/* confdefs.h. */
6832_ACEOF
6833cat confdefs.h >>conftest.$ac_ext
6834cat >>conftest.$ac_ext <<_ACEOF
6835/* end confdefs.h. */
7a197a62 6836$ac_includes_default
ad6254c5
AK
6837int
6838find_stack_direction ()
6839{
6840 static char *addr = 0;
6841 auto char dummy;
6842 if (addr == 0)
6843 {
6844 addr = &dummy;
6845 return find_stack_direction ();
6846 }
6847 else
6848 return (&dummy > addr) ? 1 : -1;
6849}
6850
6851int
6852main ()
6853{
7a197a62 6854 return find_stack_direction () < 0;
ad6254c5
AK
6855}
6856_ACEOF
6857rm -f conftest$ac_exeext
7a197a62
AK
6858if { (ac_try="$ac_link"
6859case "(($ac_try" in
6860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6861 *) ac_try_echo=$ac_try;;
6862esac
ec6a6fbe
AK
6863eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6864$as_echo "$ac_try_echo") >&5
7a197a62 6865 (eval "$ac_link") 2>&5
ad6254c5 6866 ac_status=$?
ec6a6fbe 6867 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 6868 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
6869 { (case "(($ac_try" in
6870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6871 *) ac_try_echo=$ac_try;;
6872esac
ec6a6fbe
AK
6873eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6874$as_echo "$ac_try_echo") >&5
7a197a62 6875 (eval "$ac_try") 2>&5
ad6254c5 6876 ac_status=$?
ec6a6fbe 6877 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
6878 (exit $ac_status); }; }; then
6879 ac_cv_c_stack_direction=1
6880else
ec6a6fbe
AK
6881 $as_echo "$as_me: program exited with status $ac_status" >&5
6882$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6883sed 's/^/| /' conftest.$ac_ext >&5
6884
6885( exit $ac_status )
6886ac_cv_c_stack_direction=-1
6887fi
ec6a6fbe 6888rm -rf conftest.dSYM
7a197a62 6889rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 6890fi
7a197a62
AK
6891
6892
ad6254c5 6893fi
ec6a6fbe
AK
6894{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6895$as_echo "$ac_cv_c_stack_direction" >&6; }
ad6254c5
AK
6896
6897cat >>confdefs.h <<_ACEOF
6898#define STACK_DIRECTION $ac_cv_c_stack_direction
6899_ACEOF
6900
6901
6902fi
6903
ec6a6fbe
AK
6904{ $as_echo "$as_me:$LINENO: checking whether closedir returns void" >&5
6905$as_echo_n "checking whether closedir returns void... " >&6; }
ad6254c5 6906if test "${ac_cv_func_closedir_void+set}" = set; then
ec6a6fbe 6907 $as_echo_n "(cached) " >&6
ad6254c5
AK
6908else
6909 if test "$cross_compiling" = yes; then
6910 ac_cv_func_closedir_void=yes
6911else
6912 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6913/* confdefs.h. */
6914_ACEOF
6915cat confdefs.h >>conftest.$ac_ext
6916cat >>conftest.$ac_ext <<_ACEOF
6917/* end confdefs.h. */
6918$ac_includes_default
6919#include <$ac_header_dirent>
6920#ifndef __cplusplus
6921int closedir ();
6922#endif
6923
6924int
6925main ()
6926{
7a197a62 6927return closedir (opendir (".")) != 0;
ad6254c5
AK
6928 ;
6929 return 0;
6930}
6931_ACEOF
6932rm -f conftest$ac_exeext
7a197a62
AK
6933if { (ac_try="$ac_link"
6934case "(($ac_try" in
6935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6936 *) ac_try_echo=$ac_try;;
6937esac
ec6a6fbe
AK
6938eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6939$as_echo "$ac_try_echo") >&5
7a197a62 6940 (eval "$ac_link") 2>&5
ad6254c5 6941 ac_status=$?
ec6a6fbe 6942 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 6943 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
6944 { (case "(($ac_try" in
6945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6946 *) ac_try_echo=$ac_try;;
6947esac
ec6a6fbe
AK
6948eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6949$as_echo "$ac_try_echo") >&5
7a197a62 6950 (eval "$ac_try") 2>&5
ad6254c5 6951 ac_status=$?
ec6a6fbe 6952 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
6953 (exit $ac_status); }; }; then
6954 ac_cv_func_closedir_void=no
6955else
ec6a6fbe
AK
6956 $as_echo "$as_me: program exited with status $ac_status" >&5
6957$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6958sed 's/^/| /' conftest.$ac_ext >&5
6959
6960( exit $ac_status )
6961ac_cv_func_closedir_void=yes
6962fi
ec6a6fbe 6963rm -rf conftest.dSYM
7a197a62 6964rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 6965fi
7a197a62
AK
6966
6967
ad6254c5 6968fi
ec6a6fbe
AK
6969{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
6970$as_echo "$ac_cv_func_closedir_void" >&6; }
ad6254c5
AK
6971if test $ac_cv_func_closedir_void = yes; then
6972
6973cat >>confdefs.h <<\_ACEOF
6974#define CLOSEDIR_VOID 1
6975_ACEOF
6976
6977fi
6978
6979
7a197a62 6980for ac_header in vfork.h
ad6254c5 6981do
ec6a6fbe 6982as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 6983if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
6984 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6985$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 6986if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 6987 $as_echo_n "(cached) " >&6
ad6254c5 6988fi
ec6a6fbe
AK
6989ac_res=`eval 'as_val=${'$as_ac_Header'}
6990 $as_echo "$as_val"'`
6991 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6992$as_echo "$ac_res" >&6; }
ad6254c5
AK
6993else
6994 # Is the header compilable?
ec6a6fbe
AK
6995{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6996$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 6997cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6998/* confdefs.h. */
6999_ACEOF
7000cat confdefs.h >>conftest.$ac_ext
7001cat >>conftest.$ac_ext <<_ACEOF
7002/* end confdefs.h. */
7003$ac_includes_default
7004#include <$ac_header>
7005_ACEOF
7006rm -f conftest.$ac_objext
7a197a62
AK
7007if { (ac_try="$ac_compile"
7008case "(($ac_try" in
7009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7010 *) ac_try_echo=$ac_try;;
7011esac
ec6a6fbe
AK
7012eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7013$as_echo "$ac_try_echo") >&5
7a197a62 7014 (eval "$ac_compile") 2>conftest.er1
ad6254c5 7015 ac_status=$?
8a2fc586
AK
7016 grep -v '^ *+' conftest.er1 >conftest.err
7017 rm -f conftest.er1
7018 cat conftest.err >&5
ec6a6fbe 7019 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7020 (exit $ac_status); } && {
7021 test -z "$ac_c_werror_flag" ||
7022 test ! -s conftest.err
7023 } && test -s conftest.$ac_objext; then
ad6254c5
AK
7024 ac_header_compiler=yes
7025else
ec6a6fbe 7026 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7027sed 's/^/| /' conftest.$ac_ext >&5
7028
7a197a62 7029 ac_header_compiler=no
ad6254c5 7030fi
7a197a62
AK
7031
7032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
7033{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7034$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
7035
7036# Is the header present?
ec6a6fbe
AK
7037{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7038$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 7039cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7040/* confdefs.h. */
7041_ACEOF
7042cat confdefs.h >>conftest.$ac_ext
7043cat >>conftest.$ac_ext <<_ACEOF
7044/* end confdefs.h. */
7045#include <$ac_header>
7046_ACEOF
7a197a62
AK
7047if { (ac_try="$ac_cpp conftest.$ac_ext"
7048case "(($ac_try" in
7049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7050 *) ac_try_echo=$ac_try;;
7051esac
ec6a6fbe
AK
7052eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7053$as_echo "$ac_try_echo") >&5
7a197a62 7054 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
7055 ac_status=$?
7056 grep -v '^ *+' conftest.er1 >conftest.err
7057 rm -f conftest.er1
7058 cat conftest.err >&5
ec6a6fbe 7059 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7060 (exit $ac_status); } >/dev/null && {
7061 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7062 test ! -s conftest.err
7063 }; then
ad6254c5
AK
7064 ac_header_preproc=yes
7065else
ec6a6fbe 7066 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7067sed 's/^/| /' conftest.$ac_ext >&5
7068
7069 ac_header_preproc=no
7070fi
7a197a62 7071
ad6254c5 7072rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
7073{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7074$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
7075
7076# So? What about this header?
8a2fc586
AK
7077case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7078 yes:no: )
ec6a6fbe
AK
7079 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7080$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7081 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7082$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 7083 ac_header_preproc=yes
ad6254c5 7084 ;;
8a2fc586 7085 no:yes:* )
ec6a6fbe
AK
7086 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7087$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7088 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7089$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7090 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7091$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7092 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7093$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7094 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7095$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7096 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7097$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 7098
ad6254c5
AK
7099 ;;
7100esac
ec6a6fbe
AK
7101{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7102$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 7103if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 7104 $as_echo_n "(cached) " >&6
ad6254c5 7105else
8a2fc586 7106 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 7107fi
ec6a6fbe
AK
7108ac_res=`eval 'as_val=${'$as_ac_Header'}
7109 $as_echo "$as_val"'`
7110 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7111$as_echo "$ac_res" >&6; }
ad6254c5 7112
795ca3e5 7113fi
ec6a6fbe
AK
7114as_val=`eval 'as_val=${'$as_ac_Header'}
7115 $as_echo "$as_val"'`
7116 if test "x$as_val" = x""yes; then
ad6254c5 7117 cat >>confdefs.h <<_ACEOF
ec6a6fbe 7118#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
7119_ACEOF
7120
7121fi
7122
7123done
795ca3e5 7124
ad6254c5
AK
7125
7126
7127for ac_func in fork vfork
7128do
ec6a6fbe
AK
7129as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7130{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7131$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 7132if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 7133 $as_echo_n "(cached) " >&6
795ca3e5 7134else
ad6254c5 7135 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7136/* confdefs.h. */
7137_ACEOF
7138cat confdefs.h >>conftest.$ac_ext
7139cat >>conftest.$ac_ext <<_ACEOF
7140/* end confdefs.h. */
8a2fc586
AK
7141/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7142 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7143#define $ac_func innocuous_$ac_func
7144
ad6254c5
AK
7145/* System header to define __stub macros and hopefully few prototypes,
7146 which can conflict with char $ac_func (); below.
7147 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7148 <limits.h> exists even on freestanding compilers. */
8a2fc586 7149
ad6254c5
AK
7150#ifdef __STDC__
7151# include <limits.h>
7152#else
7153# include <assert.h>
795ca3e5 7154#endif
8a2fc586
AK
7155
7156#undef $ac_func
7157
7a197a62
AK
7158/* Override any GCC internal prototype to avoid an error.
7159 Use char because int might match the return type of a GCC
7160 builtin and then its argument prototype would still apply. */
795ca3e5 7161#ifdef __cplusplus
ad6254c5 7162extern "C"
ad6254c5 7163#endif
ad6254c5
AK
7164char $ac_func ();
7165/* The GNU C library defines this for functions which it implements
7166 to always fail with ENOSYS. Some functions are actually named
7167 something starting with __ and the normal name is an alias. */
7a197a62 7168#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 7169choke me
795ca3e5
AK
7170#endif
7171
ad6254c5
AK
7172int
7173main ()
7174{
7a197a62 7175return $ac_func ();
ad6254c5
AK
7176 ;
7177 return 0;
7178}
7179_ACEOF
7180rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
7181if { (ac_try="$ac_link"
7182case "(($ac_try" in
7183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7184 *) ac_try_echo=$ac_try;;
7185esac
ec6a6fbe
AK
7186eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7187$as_echo "$ac_try_echo") >&5
7a197a62 7188 (eval "$ac_link") 2>conftest.er1
ad6254c5 7189 ac_status=$?
8a2fc586
AK
7190 grep -v '^ *+' conftest.er1 >conftest.err
7191 rm -f conftest.er1
7192 cat conftest.err >&5
ec6a6fbe 7193 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7194 (exit $ac_status); } && {
7195 test -z "$ac_c_werror_flag" ||
7196 test ! -s conftest.err
ec6a6fbe
AK
7197 } && test -s conftest$ac_exeext && {
7198 test "$cross_compiling" = yes ||
7199 $as_test_x conftest$ac_exeext
7200 }; then
ad6254c5 7201 eval "$as_ac_var=yes"
795ca3e5 7202else
ec6a6fbe 7203 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7204sed 's/^/| /' conftest.$ac_ext >&5
7205
7a197a62 7206 eval "$as_ac_var=no"
795ca3e5 7207fi
7a197a62 7208
ec6a6fbe 7209rm -rf conftest.dSYM
25fbec5b 7210rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 7211 conftest$ac_exeext conftest.$ac_ext
ad6254c5 7212fi
ec6a6fbe
AK
7213ac_res=`eval 'as_val=${'$as_ac_var'}
7214 $as_echo "$as_val"'`
7215 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7216$as_echo "$ac_res" >&6; }
7217as_val=`eval 'as_val=${'$as_ac_var'}
7218 $as_echo "$as_val"'`
7219 if test "x$as_val" = x""yes; then
ad6254c5 7220 cat >>confdefs.h <<_ACEOF
ec6a6fbe 7221#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
7222_ACEOF
7223
7224fi
7225done
7226
7227if test "x$ac_cv_func_fork" = xyes; then
ec6a6fbe
AK
7228 { $as_echo "$as_me:$LINENO: checking for working fork" >&5
7229$as_echo_n "checking for working fork... " >&6; }
ad6254c5 7230if test "${ac_cv_func_fork_works+set}" = set; then
ec6a6fbe 7231 $as_echo_n "(cached) " >&6
ad6254c5
AK
7232else
7233 if test "$cross_compiling" = yes; then
7234 ac_cv_func_fork_works=cross
7235else
7236 cat >conftest.$ac_ext <<_ACEOF
7a197a62
AK
7237/* confdefs.h. */
7238_ACEOF
7239cat confdefs.h >>conftest.$ac_ext
7240cat >>conftest.$ac_ext <<_ACEOF
7241/* end confdefs.h. */
7242$ac_includes_default
7243int
7244main ()
7245{
7246
7247 /* By Ruediger Kuhlmann. */
7248 return fork () < 0;
7249
7250 ;
7251 return 0;
7252}
ad6254c5
AK
7253_ACEOF
7254rm -f conftest$ac_exeext
7a197a62
AK
7255if { (ac_try="$ac_link"
7256case "(($ac_try" in
7257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7258 *) ac_try_echo=$ac_try;;
7259esac
ec6a6fbe
AK
7260eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7261$as_echo "$ac_try_echo") >&5
7a197a62 7262 (eval "$ac_link") 2>&5
ad6254c5 7263 ac_status=$?
ec6a6fbe 7264 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7265 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7266 { (case "(($ac_try" in
7267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7268 *) ac_try_echo=$ac_try;;
7269esac
ec6a6fbe
AK
7270eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7271$as_echo "$ac_try_echo") >&5
7a197a62 7272 (eval "$ac_try") 2>&5
ad6254c5 7273 ac_status=$?
ec6a6fbe 7274 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7275 (exit $ac_status); }; }; then
7276 ac_cv_func_fork_works=yes
7277else
ec6a6fbe
AK
7278 $as_echo "$as_me: program exited with status $ac_status" >&5
7279$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7280sed 's/^/| /' conftest.$ac_ext >&5
7281
7282( exit $ac_status )
7283ac_cv_func_fork_works=no
7284fi
ec6a6fbe 7285rm -rf conftest.dSYM
7a197a62 7286rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7287fi
7a197a62
AK
7288
7289
ad6254c5 7290fi
ec6a6fbe
AK
7291{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
7292$as_echo "$ac_cv_func_fork_works" >&6; }
ad6254c5
AK
7293
7294else
7295 ac_cv_func_fork_works=$ac_cv_func_fork
7296fi
7297if test "x$ac_cv_func_fork_works" = xcross; then
7298 case $host in
7299 *-*-amigaos* | *-*-msdosdjgpp*)
7300 # Override, as these systems have only a dummy fork() stub
7301 ac_cv_func_fork_works=no
7302 ;;
7303 *)
7304 ac_cv_func_fork_works=yes
7305 ;;
7306 esac
ec6a6fbe
AK
7307 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
7308$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
ad6254c5
AK
7309fi
7310ac_cv_func_vfork_works=$ac_cv_func_vfork
7311if test "x$ac_cv_func_vfork" = xyes; then
ec6a6fbe
AK
7312 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
7313$as_echo_n "checking for working vfork... " >&6; }
ad6254c5 7314if test "${ac_cv_func_vfork_works+set}" = set; then
ec6a6fbe 7315 $as_echo_n "(cached) " >&6
ad6254c5
AK
7316else
7317 if test "$cross_compiling" = yes; then
7318 ac_cv_func_vfork_works=cross
7319else
7320 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7321/* confdefs.h. */
7322_ACEOF
7323cat confdefs.h >>conftest.$ac_ext
7324cat >>conftest.$ac_ext <<_ACEOF
7325/* end confdefs.h. */
7326/* Thanks to Paul Eggert for this test. */
7a197a62 7327$ac_includes_default
ad6254c5 7328#include <sys/wait.h>
25fbec5b 7329#ifdef HAVE_VFORK_H
ad6254c5
AK
7330# include <vfork.h>
7331#endif
7332/* On some sparc systems, changes by the child to local and incoming
7333 argument registers are propagated back to the parent. The compiler
7334 is told about this with #include <vfork.h>, but some compilers
7335 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
7336 static variable whose address is put into a register that is
7337 clobbered by the vfork. */
7338static void
7339#ifdef __cplusplus
7340sparc_address_test (int arg)
7341# else
7342sparc_address_test (arg) int arg;
7343#endif
7344{
7345 static pid_t child;
7346 if (!child) {
7347 child = vfork ();
7348 if (child < 0) {
7349 perror ("vfork");
7350 _exit(2);
7351 }
7352 if (!child) {
7353 arg = getpid();
7354 write(-1, "", 0);
7355 _exit (arg);
7356 }
7357 }
7358}
7359
7360int
7361main ()
7362{
7363 pid_t parent = getpid ();
7364 pid_t child;
7365
7366 sparc_address_test (0);
7367
7368 child = vfork ();
7369
7370 if (child == 0) {
7371 /* Here is another test for sparc vfork register problems. This
7372 test uses lots of local variables, at least as many local
7373 variables as main has allocated so far including compiler
7374 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
7375 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
7376 reuse the register of parent for one of the local variables,
7377 since it will think that parent can't possibly be used any more
7378 in this routine. Assigning to the local variable will thus
7379 munge parent in the parent process. */
7380 pid_t
7381 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
7382 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
7383 /* Convince the compiler that p..p7 are live; otherwise, it might
7384 use the same hardware register for all 8 local variables. */
7385 if (p != p1 || p != p2 || p != p3 || p != p4
7386 || p != p5 || p != p6 || p != p7)
7387 _exit(1);
7388
7389 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
7390 from child file descriptors. If the child closes a descriptor
7391 before it execs or exits, this munges the parent's descriptor
7392 as well. Test for this by closing stdout in the child. */
7393 _exit(close(fileno(stdout)) != 0);
7394 } else {
7395 int status;
7396 struct stat st;
7397
7398 while (wait(&status) != child)
7399 ;
7a197a62 7400 return (
ad6254c5
AK
7401 /* Was there some problem with vforking? */
7402 child < 0
7403
7404 /* Did the child fail? (This shouldn't happen.) */
7405 || status
7406
7407 /* Did the vfork/compiler bug occur? */
7408 || parent != getpid()
7409
7410 /* Did the file descriptor bug occur? */
7411 || fstat(fileno(stdout), &st) != 0
7412 );
7413 }
7414}
7415_ACEOF
7416rm -f conftest$ac_exeext
7a197a62
AK
7417if { (ac_try="$ac_link"
7418case "(($ac_try" in
7419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7420 *) ac_try_echo=$ac_try;;
7421esac
ec6a6fbe
AK
7422eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7423$as_echo "$ac_try_echo") >&5
7a197a62 7424 (eval "$ac_link") 2>&5
ad6254c5 7425 ac_status=$?
ec6a6fbe 7426 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7427 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7428 { (case "(($ac_try" in
7429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7430 *) ac_try_echo=$ac_try;;
7431esac
ec6a6fbe
AK
7432eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7433$as_echo "$ac_try_echo") >&5
7a197a62 7434 (eval "$ac_try") 2>&5
ad6254c5 7435 ac_status=$?
ec6a6fbe 7436 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7437 (exit $ac_status); }; }; then
7438 ac_cv_func_vfork_works=yes
7439else
ec6a6fbe
AK
7440 $as_echo "$as_me: program exited with status $ac_status" >&5
7441$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7442sed 's/^/| /' conftest.$ac_ext >&5
7443
7444( exit $ac_status )
7445ac_cv_func_vfork_works=no
7446fi
ec6a6fbe 7447rm -rf conftest.dSYM
7a197a62 7448rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7449fi
7a197a62
AK
7450
7451
ad6254c5 7452fi
ec6a6fbe
AK
7453{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
7454$as_echo "$ac_cv_func_vfork_works" >&6; }
ad6254c5
AK
7455
7456fi;
7457if test "x$ac_cv_func_fork_works" = xcross; then
8a2fc586 7458 ac_cv_func_vfork_works=$ac_cv_func_vfork
ec6a6fbe
AK
7459 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
7460$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
ad6254c5
AK
7461fi
7462
7463if test "x$ac_cv_func_vfork_works" = xyes; then
7464
7465cat >>confdefs.h <<\_ACEOF
7466#define HAVE_WORKING_VFORK 1
7467_ACEOF
7468
7469else
7470
7471cat >>confdefs.h <<\_ACEOF
7472#define vfork fork
7473_ACEOF
7474
7475fi
7476if test "x$ac_cv_func_fork_works" = xyes; then
7477
7478cat >>confdefs.h <<\_ACEOF
7479#define HAVE_WORKING_FORK 1
7480_ACEOF
7481
7482fi
7483
ec6a6fbe
AK
7484{ $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
7485$as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
ad6254c5 7486if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
ec6a6fbe 7487 $as_echo_n "(cached) " >&6
ad6254c5
AK
7488else
7489 rm -f conftest.sym conftest.file
7490echo >conftest.file
7491if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
7492 if test "$cross_compiling" = yes; then
7493 ac_cv_func_lstat_dereferences_slashed_symlink=no
7494else
7495 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7496/* confdefs.h. */
7497_ACEOF
7498cat confdefs.h >>conftest.$ac_ext
7499cat >>conftest.$ac_ext <<_ACEOF
7500/* end confdefs.h. */
7501$ac_includes_default
7502int
7503main ()
7504{
7505struct stat sbuf;
7506 /* Linux will dereference the symlink and fail.
8a2fc586
AK
7507 That is better in the sense that it means we will not
7508 have to compile and use the lstat wrapper. */
7a197a62 7509 return lstat ("conftest.sym/", &sbuf) == 0;
ad6254c5
AK
7510 ;
7511 return 0;
7512}
7513_ACEOF
7514rm -f conftest$ac_exeext
7a197a62
AK
7515if { (ac_try="$ac_link"
7516case "(($ac_try" in
7517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7518 *) ac_try_echo=$ac_try;;
7519esac
ec6a6fbe
AK
7520eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7521$as_echo "$ac_try_echo") >&5
7a197a62 7522 (eval "$ac_link") 2>&5
ad6254c5 7523 ac_status=$?
ec6a6fbe 7524 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7525 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7526 { (case "(($ac_try" in
7527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7528 *) ac_try_echo=$ac_try;;
7529esac
ec6a6fbe
AK
7530eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7531$as_echo "$ac_try_echo") >&5
7a197a62 7532 (eval "$ac_try") 2>&5
ad6254c5 7533 ac_status=$?
ec6a6fbe 7534 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7535 (exit $ac_status); }; }; then
7536 ac_cv_func_lstat_dereferences_slashed_symlink=yes
7537else
ec6a6fbe
AK
7538 $as_echo "$as_me: program exited with status $ac_status" >&5
7539$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7540sed 's/^/| /' conftest.$ac_ext >&5
7541
7542( exit $ac_status )
7543ac_cv_func_lstat_dereferences_slashed_symlink=no
7544fi
ec6a6fbe 7545rm -rf conftest.dSYM
7a197a62 7546rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7547fi
7a197a62
AK
7548
7549
ad6254c5
AK
7550else
7551 # If the `ln -s' command failed, then we probably don't even
7552 # have an lstat function.
7553 ac_cv_func_lstat_dereferences_slashed_symlink=no
7554fi
7555rm -f conftest.sym conftest.file
7556
7557fi
ec6a6fbe
AK
7558{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
7559$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
ad6254c5
AK
7560
7561test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
7562
7563cat >>confdefs.h <<_ACEOF
7564#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
7565_ACEOF
7566
7567
7568if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
7a197a62 7569 case " $LIBOBJS " in
8a2fc586 7570 *" lstat.$ac_objext "* ) ;;
7a197a62
AK
7571 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
7572 ;;
8a2fc586
AK
7573esac
7574
ad6254c5
AK
7575fi
7576
ec6a6fbe
AK
7577{ $as_echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
7578$as_echo_n "checking whether lstat accepts an empty string... " >&6; }
ad6254c5 7579if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
ec6a6fbe 7580 $as_echo_n "(cached) " >&6
ad6254c5
AK
7581else
7582 if test "$cross_compiling" = yes; then
7583 ac_cv_func_lstat_empty_string_bug=yes
7584else
7585 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7586/* confdefs.h. */
7587_ACEOF
7588cat confdefs.h >>conftest.$ac_ext
7589cat >>conftest.$ac_ext <<_ACEOF
7590/* end confdefs.h. */
7591$ac_includes_default
7592int
7593main ()
7594{
7595struct stat sbuf;
7a197a62 7596 return lstat ("", &sbuf) == 0;
ad6254c5
AK
7597 ;
7598 return 0;
7599}
7600_ACEOF
7601rm -f conftest$ac_exeext
7a197a62
AK
7602if { (ac_try="$ac_link"
7603case "(($ac_try" in
7604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7605 *) ac_try_echo=$ac_try;;
7606esac
ec6a6fbe
AK
7607eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7608$as_echo "$ac_try_echo") >&5
7a197a62 7609 (eval "$ac_link") 2>&5
ad6254c5 7610 ac_status=$?
ec6a6fbe 7611 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7612 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7613 { (case "(($ac_try" in
7614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7615 *) ac_try_echo=$ac_try;;
7616esac
ec6a6fbe
AK
7617eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7618$as_echo "$ac_try_echo") >&5
7a197a62 7619 (eval "$ac_try") 2>&5
ad6254c5 7620 ac_status=$?
ec6a6fbe 7621 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7622 (exit $ac_status); }; }; then
7a197a62 7623 ac_cv_func_lstat_empty_string_bug=no
ad6254c5 7624else
ec6a6fbe
AK
7625 $as_echo "$as_me: program exited with status $ac_status" >&5
7626$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7627sed 's/^/| /' conftest.$ac_ext >&5
7628
7629( exit $ac_status )
7a197a62 7630ac_cv_func_lstat_empty_string_bug=yes
ad6254c5 7631fi
ec6a6fbe 7632rm -rf conftest.dSYM
7a197a62 7633rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7634fi
7a197a62
AK
7635
7636
ad6254c5 7637fi
ec6a6fbe
AK
7638{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
7639$as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
ad6254c5 7640if test $ac_cv_func_lstat_empty_string_bug = yes; then
7a197a62 7641 case " $LIBOBJS " in
8a2fc586 7642 *" lstat.$ac_objext "* ) ;;
7a197a62
AK
7643 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
7644 ;;
8a2fc586
AK
7645esac
7646
ad6254c5
AK
7647
7648cat >>confdefs.h <<_ACEOF
7649#define HAVE_LSTAT_EMPTY_STRING_BUG 1
7650_ACEOF
7651
7652fi
7653
7654
7655for ac_header in stdlib.h
7656do
ec6a6fbe 7657as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 7658if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
7659 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7660$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 7661if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 7662 $as_echo_n "(cached) " >&6
ad6254c5 7663fi
ec6a6fbe
AK
7664ac_res=`eval 'as_val=${'$as_ac_Header'}
7665 $as_echo "$as_val"'`
7666 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7667$as_echo "$ac_res" >&6; }
ad6254c5
AK
7668else
7669 # Is the header compilable?
ec6a6fbe
AK
7670{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7671$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 7672cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7673/* confdefs.h. */
7674_ACEOF
7675cat confdefs.h >>conftest.$ac_ext
7676cat >>conftest.$ac_ext <<_ACEOF
7677/* end confdefs.h. */
7678$ac_includes_default
7679#include <$ac_header>
7680_ACEOF
7681rm -f conftest.$ac_objext
7a197a62
AK
7682if { (ac_try="$ac_compile"
7683case "(($ac_try" in
7684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7685 *) ac_try_echo=$ac_try;;
7686esac
ec6a6fbe
AK
7687eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7688$as_echo "$ac_try_echo") >&5
7a197a62 7689 (eval "$ac_compile") 2>conftest.er1
ad6254c5 7690 ac_status=$?
8a2fc586
AK
7691 grep -v '^ *+' conftest.er1 >conftest.err
7692 rm -f conftest.er1
7693 cat conftest.err >&5
ec6a6fbe 7694 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7695 (exit $ac_status); } && {
7696 test -z "$ac_c_werror_flag" ||
7697 test ! -s conftest.err
7698 } && test -s conftest.$ac_objext; then
ad6254c5
AK
7699 ac_header_compiler=yes
7700else
ec6a6fbe 7701 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7702sed 's/^/| /' conftest.$ac_ext >&5
7703
7a197a62 7704 ac_header_compiler=no
ad6254c5 7705fi
7a197a62
AK
7706
7707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
7708{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7709$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
7710
7711# Is the header present?
ec6a6fbe
AK
7712{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7713$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 7714cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7715/* confdefs.h. */
7716_ACEOF
7717cat confdefs.h >>conftest.$ac_ext
7718cat >>conftest.$ac_ext <<_ACEOF
7719/* end confdefs.h. */
7720#include <$ac_header>
7721_ACEOF
7a197a62
AK
7722if { (ac_try="$ac_cpp conftest.$ac_ext"
7723case "(($ac_try" in
7724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7725 *) ac_try_echo=$ac_try;;
7726esac
ec6a6fbe
AK
7727eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7728$as_echo "$ac_try_echo") >&5
7a197a62 7729 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
7730 ac_status=$?
7731 grep -v '^ *+' conftest.er1 >conftest.err
7732 rm -f conftest.er1
7733 cat conftest.err >&5
ec6a6fbe 7734 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7735 (exit $ac_status); } >/dev/null && {
7736 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7737 test ! -s conftest.err
7738 }; then
ad6254c5
AK
7739 ac_header_preproc=yes
7740else
ec6a6fbe 7741 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7742sed 's/^/| /' conftest.$ac_ext >&5
7743
7744 ac_header_preproc=no
7745fi
7a197a62 7746
ad6254c5 7747rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
7748{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7749$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
7750
7751# So? What about this header?
8a2fc586
AK
7752case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7753 yes:no: )
ec6a6fbe
AK
7754 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7755$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7756 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7757$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 7758 ac_header_preproc=yes
ad6254c5 7759 ;;
8a2fc586 7760 no:yes:* )
ec6a6fbe
AK
7761 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7762$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7763 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7764$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7765 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7766$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7767 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7768$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7769 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7770$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7771 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7772$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 7773
ad6254c5
AK
7774 ;;
7775esac
ec6a6fbe
AK
7776{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7777$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 7778if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 7779 $as_echo_n "(cached) " >&6
ad6254c5 7780else
8a2fc586 7781 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 7782fi
ec6a6fbe
AK
7783ac_res=`eval 'as_val=${'$as_ac_Header'}
7784 $as_echo "$as_val"'`
7785 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7786$as_echo "$ac_res" >&6; }
ad6254c5
AK
7787
7788fi
ec6a6fbe
AK
7789as_val=`eval 'as_val=${'$as_ac_Header'}
7790 $as_echo "$as_val"'`
7791 if test "x$as_val" = x""yes; then
ad6254c5 7792 cat >>confdefs.h <<_ACEOF
ec6a6fbe 7793#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
7794_ACEOF
7795
7796fi
7797
7798done
7799
ec6a6fbe
AK
7800{ $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
7801$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
ad6254c5 7802if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
ec6a6fbe 7803 $as_echo_n "(cached) " >&6
ad6254c5
AK
7804else
7805 if test "$cross_compiling" = yes; then
7806 ac_cv_func_malloc_0_nonnull=no
7807else
7808 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7809/* confdefs.h. */
7810_ACEOF
7811cat confdefs.h >>conftest.$ac_ext
7812cat >>conftest.$ac_ext <<_ACEOF
7813/* end confdefs.h. */
25fbec5b 7814#if defined STDC_HEADERS || defined HAVE_STDLIB_H
ad6254c5
AK
7815# include <stdlib.h>
7816#else
7817char *malloc ();
7818#endif
7819
7820int
7821main ()
7822{
7a197a62 7823return ! malloc (0);
ad6254c5
AK
7824 ;
7825 return 0;
7826}
7827_ACEOF
7828rm -f conftest$ac_exeext
7a197a62
AK
7829if { (ac_try="$ac_link"
7830case "(($ac_try" in
7831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7832 *) ac_try_echo=$ac_try;;
7833esac
ec6a6fbe
AK
7834eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7835$as_echo "$ac_try_echo") >&5
7a197a62 7836 (eval "$ac_link") 2>&5
ad6254c5 7837 ac_status=$?
ec6a6fbe 7838 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7839 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7840 { (case "(($ac_try" in
7841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7842 *) ac_try_echo=$ac_try;;
7843esac
ec6a6fbe
AK
7844eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7845$as_echo "$ac_try_echo") >&5
7a197a62 7846 (eval "$ac_try") 2>&5
ad6254c5 7847 ac_status=$?
ec6a6fbe 7848 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7849 (exit $ac_status); }; }; then
7850 ac_cv_func_malloc_0_nonnull=yes
7851else
ec6a6fbe
AK
7852 $as_echo "$as_me: program exited with status $ac_status" >&5
7853$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7854sed 's/^/| /' conftest.$ac_ext >&5
7855
7856( exit $ac_status )
7857ac_cv_func_malloc_0_nonnull=no
7858fi
ec6a6fbe 7859rm -rf conftest.dSYM
7a197a62 7860rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7861fi
7a197a62
AK
7862
7863
ad6254c5 7864fi
ec6a6fbe
AK
7865{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
7866$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
ad6254c5
AK
7867if test $ac_cv_func_malloc_0_nonnull = yes; then
7868
7869cat >>confdefs.h <<\_ACEOF
7870#define HAVE_MALLOC 1
7871_ACEOF
7872
7873else
7874 cat >>confdefs.h <<\_ACEOF
7875#define HAVE_MALLOC 0
7876_ACEOF
7877
7a197a62 7878 case " $LIBOBJS " in
8a2fc586 7879 *" malloc.$ac_objext "* ) ;;
7a197a62
AK
7880 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
7881 ;;
8a2fc586
AK
7882esac
7883
ad6254c5
AK
7884
7885cat >>confdefs.h <<\_ACEOF
7886#define malloc rpl_malloc
7887_ACEOF
7888
7889fi
7890
7891
7892
ec6a6fbe
AK
7893{ $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
7894$as_echo_n "checking for working memcmp... " >&6; }
ad6254c5 7895if test "${ac_cv_func_memcmp_working+set}" = set; then
ec6a6fbe 7896 $as_echo_n "(cached) " >&6
ad6254c5
AK
7897else
7898 if test "$cross_compiling" = yes; then
7899 ac_cv_func_memcmp_working=no
7900else
7901 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7902/* confdefs.h. */
7903_ACEOF
7904cat confdefs.h >>conftest.$ac_ext
7905cat >>conftest.$ac_ext <<_ACEOF
7906/* end confdefs.h. */
8a2fc586 7907$ac_includes_default
ad6254c5
AK
7908int
7909main ()
7910{
7911
7912 /* Some versions of memcmp are not 8-bit clean. */
7a197a62 7913 char c0 = '\100', c1 = '\200', c2 = '\201';
ad6254c5 7914 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
7a197a62 7915 return 1;
ad6254c5
AK
7916
7917 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
7918 or more and with at least one buffer not starting on a 4-byte boundary.
7919 William Lewis provided this test program. */
7920 {
7921 char foo[21];
7922 char bar[21];
7923 int i;
7924 for (i = 0; i < 4; i++)
7925 {
8a2fc586
AK
7926 char *a = foo + i;
7927 char *b = bar + i;
7928 strcpy (a, "--------01111111");
7929 strcpy (b, "--------10000000");
7930 if (memcmp (a, b, 16) >= 0)
7a197a62 7931 return 1;
ad6254c5 7932 }
7a197a62 7933 return 0;
ad6254c5
AK
7934 }
7935
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_memcmp_working=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_memcmp_working=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_memcmp_working" >&5
7978$as_echo "$ac_cv_func_memcmp_working" >&6; }
7a197a62 7979test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
8a2fc586 7980 *" memcmp.$ac_objext "* ) ;;
7a197a62
AK
7981 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
7982 ;;
8a2fc586
AK
7983esac
7984
ad6254c5
AK
7985
7986
7987
7988for ac_header in stdlib.h unistd.h
7989do
ec6a6fbe 7990as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 7991if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
7992 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7993$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 7994if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 7995 $as_echo_n "(cached) " >&6
ad6254c5 7996fi
ec6a6fbe
AK
7997ac_res=`eval 'as_val=${'$as_ac_Header'}
7998 $as_echo "$as_val"'`
7999 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8000$as_echo "$ac_res" >&6; }
ad6254c5
AK
8001else
8002 # Is the header compilable?
ec6a6fbe
AK
8003{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8004$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 8005cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8006/* confdefs.h. */
8007_ACEOF
8008cat confdefs.h >>conftest.$ac_ext
8009cat >>conftest.$ac_ext <<_ACEOF
8010/* end confdefs.h. */
8011$ac_includes_default
8012#include <$ac_header>
8013_ACEOF
8014rm -f conftest.$ac_objext
7a197a62
AK
8015if { (ac_try="$ac_compile"
8016case "(($ac_try" in
8017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8018 *) ac_try_echo=$ac_try;;
8019esac
ec6a6fbe
AK
8020eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8021$as_echo "$ac_try_echo") >&5
7a197a62 8022 (eval "$ac_compile") 2>conftest.er1
ad6254c5 8023 ac_status=$?
8a2fc586
AK
8024 grep -v '^ *+' conftest.er1 >conftest.err
8025 rm -f conftest.er1
8026 cat conftest.err >&5
ec6a6fbe 8027 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8028 (exit $ac_status); } && {
8029 test -z "$ac_c_werror_flag" ||
8030 test ! -s conftest.err
8031 } && test -s conftest.$ac_objext; then
ad6254c5
AK
8032 ac_header_compiler=yes
8033else
ec6a6fbe 8034 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8035sed 's/^/| /' conftest.$ac_ext >&5
8036
7a197a62 8037 ac_header_compiler=no
ad6254c5 8038fi
7a197a62
AK
8039
8040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
8041{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8042$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
8043
8044# Is the header present?
ec6a6fbe
AK
8045{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8046$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 8047cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8048/* confdefs.h. */
8049_ACEOF
8050cat confdefs.h >>conftest.$ac_ext
8051cat >>conftest.$ac_ext <<_ACEOF
8052/* end confdefs.h. */
8053#include <$ac_header>
8054_ACEOF
7a197a62
AK
8055if { (ac_try="$ac_cpp conftest.$ac_ext"
8056case "(($ac_try" in
8057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8058 *) ac_try_echo=$ac_try;;
8059esac
ec6a6fbe
AK
8060eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8061$as_echo "$ac_try_echo") >&5
7a197a62 8062 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
8063 ac_status=$?
8064 grep -v '^ *+' conftest.er1 >conftest.err
8065 rm -f conftest.er1
8066 cat conftest.err >&5
ec6a6fbe 8067 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8068 (exit $ac_status); } >/dev/null && {
8069 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8070 test ! -s conftest.err
8071 }; then
ad6254c5
AK
8072 ac_header_preproc=yes
8073else
ec6a6fbe 8074 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8075sed 's/^/| /' conftest.$ac_ext >&5
8076
8077 ac_header_preproc=no
8078fi
7a197a62 8079
ad6254c5 8080rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
8081{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8082$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
8083
8084# So? What about this header?
8a2fc586
AK
8085case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8086 yes:no: )
ec6a6fbe
AK
8087 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8088$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8089 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8090$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 8091 ac_header_preproc=yes
ad6254c5 8092 ;;
8a2fc586 8093 no:yes:* )
ec6a6fbe
AK
8094 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8095$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8096 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8097$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8098 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8099$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8100 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8101$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8102 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8103$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8104 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8105$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 8106
ad6254c5
AK
8107 ;;
8108esac
ec6a6fbe
AK
8109{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8110$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 8111if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 8112 $as_echo_n "(cached) " >&6
ad6254c5 8113else
8a2fc586 8114 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 8115fi
ec6a6fbe
AK
8116ac_res=`eval 'as_val=${'$as_ac_Header'}
8117 $as_echo "$as_val"'`
8118 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8119$as_echo "$ac_res" >&6; }
ad6254c5
AK
8120
8121fi
ec6a6fbe
AK
8122as_val=`eval 'as_val=${'$as_ac_Header'}
8123 $as_echo "$as_val"'`
8124 if test "x$as_val" = x""yes; then
ad6254c5 8125 cat >>confdefs.h <<_ACEOF
ec6a6fbe 8126#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
8127_ACEOF
8128
8129fi
8130
8131done
8132
8133
8134for ac_func in getpagesize
8135do
ec6a6fbe
AK
8136as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8137{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8138$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 8139if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 8140 $as_echo_n "(cached) " >&6
ad6254c5
AK
8141else
8142 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8143/* confdefs.h. */
8144_ACEOF
8145cat confdefs.h >>conftest.$ac_ext
8146cat >>conftest.$ac_ext <<_ACEOF
8147/* end confdefs.h. */
8a2fc586
AK
8148/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8149 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8150#define $ac_func innocuous_$ac_func
8151
ad6254c5
AK
8152/* System header to define __stub macros and hopefully few prototypes,
8153 which can conflict with char $ac_func (); below.
8154 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8155 <limits.h> exists even on freestanding compilers. */
8a2fc586 8156
ad6254c5
AK
8157#ifdef __STDC__
8158# include <limits.h>
8159#else
8160# include <assert.h>
8161#endif
8a2fc586
AK
8162
8163#undef $ac_func
8164
7a197a62
AK
8165/* Override any GCC internal prototype to avoid an error.
8166 Use char because int might match the return type of a GCC
8167 builtin and then its argument prototype would still apply. */
ad6254c5
AK
8168#ifdef __cplusplus
8169extern "C"
ad6254c5 8170#endif
ad6254c5
AK
8171char $ac_func ();
8172/* The GNU C library defines this for functions which it implements
8173 to always fail with ENOSYS. Some functions are actually named
8174 something starting with __ and the normal name is an alias. */
7a197a62 8175#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 8176choke me
ad6254c5
AK
8177#endif
8178
8179int
8180main ()
8181{
7a197a62 8182return $ac_func ();
ad6254c5
AK
8183 ;
8184 return 0;
8185}
8186_ACEOF
8187rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
8188if { (ac_try="$ac_link"
8189case "(($ac_try" in
8190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8191 *) ac_try_echo=$ac_try;;
8192esac
ec6a6fbe
AK
8193eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8194$as_echo "$ac_try_echo") >&5
7a197a62 8195 (eval "$ac_link") 2>conftest.er1
ad6254c5 8196 ac_status=$?
8a2fc586
AK
8197 grep -v '^ *+' conftest.er1 >conftest.err
8198 rm -f conftest.er1
8199 cat conftest.err >&5
ec6a6fbe 8200 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8201 (exit $ac_status); } && {
8202 test -z "$ac_c_werror_flag" ||
8203 test ! -s conftest.err
ec6a6fbe
AK
8204 } && test -s conftest$ac_exeext && {
8205 test "$cross_compiling" = yes ||
8206 $as_test_x conftest$ac_exeext
8207 }; then
ad6254c5
AK
8208 eval "$as_ac_var=yes"
8209else
ec6a6fbe 8210 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8211sed 's/^/| /' conftest.$ac_ext >&5
8212
7a197a62 8213 eval "$as_ac_var=no"
ad6254c5 8214fi
7a197a62 8215
ec6a6fbe 8216rm -rf conftest.dSYM
25fbec5b 8217rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 8218 conftest$ac_exeext conftest.$ac_ext
ad6254c5 8219fi
ec6a6fbe
AK
8220ac_res=`eval 'as_val=${'$as_ac_var'}
8221 $as_echo "$as_val"'`
8222 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8223$as_echo "$ac_res" >&6; }
8224as_val=`eval 'as_val=${'$as_ac_var'}
8225 $as_echo "$as_val"'`
8226 if test "x$as_val" = x""yes; then
ad6254c5 8227 cat >>confdefs.h <<_ACEOF
ec6a6fbe 8228#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
8229_ACEOF
8230
8231fi
8232done
8233
ec6a6fbe
AK
8234{ $as_echo "$as_me:$LINENO: checking for working mmap" >&5
8235$as_echo_n "checking for working mmap... " >&6; }
ad6254c5 8236if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
ec6a6fbe 8237 $as_echo_n "(cached) " >&6
ad6254c5
AK
8238else
8239 if test "$cross_compiling" = yes; then
8240 ac_cv_func_mmap_fixed_mapped=no
8241else
8242 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8243/* confdefs.h. */
8244_ACEOF
8245cat confdefs.h >>conftest.$ac_ext
8246cat >>conftest.$ac_ext <<_ACEOF
8247/* end confdefs.h. */
8248$ac_includes_default
8249/* malloc might have been renamed as rpl_malloc. */
8250#undef malloc
8251
8252/* Thanks to Mike Haertel and Jim Avera for this test.
8253 Here is a matrix of mmap possibilities:
8254 mmap private not fixed
8255 mmap private fixed at somewhere currently unmapped
8256 mmap private fixed at somewhere already mapped
8257 mmap shared not fixed
8258 mmap shared fixed at somewhere currently unmapped
8259 mmap shared fixed at somewhere already mapped
8260 For private mappings, we should verify that changes cannot be read()
8261 back from the file, nor mmap's back from the file at a different
8262 address. (There have been systems where private was not correctly
8263 implemented like the infamous i386 svr4.0, and systems where the
8264 VM page cache was not coherent with the file system buffer cache
8265 like early versions of FreeBSD and possibly contemporary NetBSD.)
8266 For shared mappings, we should conversely verify that changes get
8267 propagated back to all the places they're supposed to be.
8268
8269 Grep wants private fixed already mapped.
8270 The main things grep needs to know about mmap are:
8271 * does it exist and is it safe to write into the mmap'd area
8272 * how to use it (BSD variants) */
8273
8274#include <fcntl.h>
8275#include <sys/mman.h>
8276
25fbec5b 8277#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
ad6254c5
AK
8278char *malloc ();
8279#endif
8280
8281/* This mess was copied from the GNU getpagesize.h. */
25fbec5b 8282#ifndef HAVE_GETPAGESIZE
ad6254c5 8283/* Assume that all systems that can run configure have sys/param.h. */
25fbec5b 8284# ifndef HAVE_SYS_PARAM_H
ad6254c5
AK
8285# define HAVE_SYS_PARAM_H 1
8286# endif
8287
8288# ifdef _SC_PAGESIZE
8289# define getpagesize() sysconf(_SC_PAGESIZE)
8290# else /* no _SC_PAGESIZE */
25fbec5b 8291# ifdef HAVE_SYS_PARAM_H
ad6254c5
AK
8292# include <sys/param.h>
8293# ifdef EXEC_PAGESIZE
8294# define getpagesize() EXEC_PAGESIZE
8295# else /* no EXEC_PAGESIZE */
8296# ifdef NBPG
8297# define getpagesize() NBPG * CLSIZE
8298# ifndef CLSIZE
8299# define CLSIZE 1
8300# endif /* no CLSIZE */
8301# else /* no NBPG */
8302# ifdef NBPC
8303# define getpagesize() NBPC
8304# else /* no NBPC */
8305# ifdef PAGESIZE
8306# define getpagesize() PAGESIZE
8307# endif /* PAGESIZE */
8308# endif /* no NBPC */
8309# endif /* no NBPG */
8310# endif /* no EXEC_PAGESIZE */
8311# else /* no HAVE_SYS_PARAM_H */
8312# define getpagesize() 8192 /* punt totally */
8313# endif /* no HAVE_SYS_PARAM_H */
8314# endif /* no _SC_PAGESIZE */
8315
8316#endif /* no HAVE_GETPAGESIZE */
8317
8318int
8319main ()
8320{
8321 char *data, *data2, *data3;
8322 int i, pagesize;
8323 int fd;
8324
8325 pagesize = getpagesize ();
8326
8327 /* First, make a file with some known garbage in it. */
8328 data = (char *) malloc (pagesize);
8329 if (!data)
7a197a62 8330 return 1;
ad6254c5
AK
8331 for (i = 0; i < pagesize; ++i)
8332 *(data + i) = rand ();
8333 umask (0);
8334 fd = creat ("conftest.mmap", 0600);
8335 if (fd < 0)
7a197a62 8336 return 1;
ad6254c5 8337 if (write (fd, data, pagesize) != pagesize)
7a197a62 8338 return 1;
ad6254c5
AK
8339 close (fd);
8340
8341 /* Next, try to mmap the file at a fixed address which already has
8342 something else allocated at it. If we can, also make sure that
8343 we see the same garbage. */
8344 fd = open ("conftest.mmap", O_RDWR);
8345 if (fd < 0)
7a197a62 8346 return 1;
ad6254c5
AK
8347 data2 = (char *) malloc (2 * pagesize);
8348 if (!data2)
7a197a62
AK
8349 return 1;
8350 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
ad6254c5 8351 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8a2fc586 8352 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7a197a62 8353 return 1;
ad6254c5
AK
8354 for (i = 0; i < pagesize; ++i)
8355 if (*(data + i) != *(data2 + i))
7a197a62 8356 return 1;
ad6254c5
AK
8357
8358 /* Finally, make sure that changes to the mapped area do not
8359 percolate back to the file as seen by read(). (This is a bug on
8360 some variants of i386 svr4.0.) */
8361 for (i = 0; i < pagesize; ++i)
8362 *(data2 + i) = *(data2 + i) + 1;
8363 data3 = (char *) malloc (pagesize);
8364 if (!data3)
7a197a62 8365 return 1;
ad6254c5 8366 if (read (fd, data3, pagesize) != pagesize)
7a197a62 8367 return 1;
ad6254c5
AK
8368 for (i = 0; i < pagesize; ++i)
8369 if (*(data + i) != *(data3 + i))
7a197a62 8370 return 1;
ad6254c5 8371 close (fd);
7a197a62 8372 return 0;
ad6254c5
AK
8373}
8374_ACEOF
8375rm -f conftest$ac_exeext
7a197a62
AK
8376if { (ac_try="$ac_link"
8377case "(($ac_try" in
8378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8379 *) ac_try_echo=$ac_try;;
8380esac
ec6a6fbe
AK
8381eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8382$as_echo "$ac_try_echo") >&5
7a197a62 8383 (eval "$ac_link") 2>&5
ad6254c5 8384 ac_status=$?
ec6a6fbe 8385 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 8386 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
8387 { (case "(($ac_try" in
8388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8389 *) ac_try_echo=$ac_try;;
8390esac
ec6a6fbe
AK
8391eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8392$as_echo "$ac_try_echo") >&5
7a197a62 8393 (eval "$ac_try") 2>&5
ad6254c5 8394 ac_status=$?
ec6a6fbe 8395 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
8396 (exit $ac_status); }; }; then
8397 ac_cv_func_mmap_fixed_mapped=yes
8398else
ec6a6fbe
AK
8399 $as_echo "$as_me: program exited with status $ac_status" >&5
8400$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8401sed 's/^/| /' conftest.$ac_ext >&5
8402
8403( exit $ac_status )
8404ac_cv_func_mmap_fixed_mapped=no
8405fi
ec6a6fbe 8406rm -rf conftest.dSYM
7a197a62 8407rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 8408fi
7a197a62
AK
8409
8410
ad6254c5 8411fi
ec6a6fbe
AK
8412{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8413$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
ad6254c5
AK
8414if test $ac_cv_func_mmap_fixed_mapped = yes; then
8415
8416cat >>confdefs.h <<\_ACEOF
8417#define HAVE_MMAP 1
8418_ACEOF
8419
8420fi
8421rm -f conftest.mmap
8422
ec6a6fbe
AK
8423{ $as_echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
8424$as_echo_n "checking whether stat accepts an empty string... " >&6; }
ad6254c5 8425if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
ec6a6fbe 8426 $as_echo_n "(cached) " >&6
ad6254c5
AK
8427else
8428 if test "$cross_compiling" = yes; then
8429 ac_cv_func_stat_empty_string_bug=yes
8430else
8431 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8432/* confdefs.h. */
8433_ACEOF
8434cat confdefs.h >>conftest.$ac_ext
8435cat >>conftest.$ac_ext <<_ACEOF
8436/* end confdefs.h. */
8437$ac_includes_default
8438int
8439main ()
8440{
8441struct stat sbuf;
7a197a62 8442 return stat ("", &sbuf) == 0;
ad6254c5
AK
8443 ;
8444 return 0;
8445}
8446_ACEOF
8447rm -f conftest$ac_exeext
7a197a62
AK
8448if { (ac_try="$ac_link"
8449case "(($ac_try" in
8450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8451 *) ac_try_echo=$ac_try;;
8452esac
ec6a6fbe
AK
8453eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8454$as_echo "$ac_try_echo") >&5
7a197a62 8455 (eval "$ac_link") 2>&5
ad6254c5 8456 ac_status=$?
ec6a6fbe 8457 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 8458 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
8459 { (case "(($ac_try" in
8460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8461 *) ac_try_echo=$ac_try;;
8462esac
ec6a6fbe
AK
8463eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8464$as_echo "$ac_try_echo") >&5
7a197a62 8465 (eval "$ac_try") 2>&5
ad6254c5 8466 ac_status=$?
ec6a6fbe 8467 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 8468 (exit $ac_status); }; }; then
7a197a62 8469 ac_cv_func_stat_empty_string_bug=no
ad6254c5 8470else
ec6a6fbe
AK
8471 $as_echo "$as_me: program exited with status $ac_status" >&5
8472$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8473sed 's/^/| /' conftest.$ac_ext >&5
8474
8475( exit $ac_status )
7a197a62 8476ac_cv_func_stat_empty_string_bug=yes
ad6254c5 8477fi
ec6a6fbe 8478rm -rf conftest.dSYM
7a197a62 8479rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 8480fi
7a197a62
AK
8481
8482
ad6254c5 8483fi
ec6a6fbe
AK
8484{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
8485$as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
ad6254c5 8486if test $ac_cv_func_stat_empty_string_bug = yes; then
7a197a62 8487 case " $LIBOBJS " in
8a2fc586 8488 *" stat.$ac_objext "* ) ;;
7a197a62
AK
8489 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
8490 ;;
8a2fc586
AK
8491esac
8492
ad6254c5
AK
8493
8494cat >>confdefs.h <<_ACEOF
8495#define HAVE_STAT_EMPTY_STRING_BUG 1
8496_ACEOF
8497
8498fi
8499
ec6a6fbe
AK
8500{ $as_echo "$as_me:$LINENO: checking for working strtod" >&5
8501$as_echo_n "checking for working strtod... " >&6; }
ad6254c5 8502if test "${ac_cv_func_strtod+set}" = set; then
ec6a6fbe 8503 $as_echo_n "(cached) " >&6
ad6254c5
AK
8504else
8505 if test "$cross_compiling" = yes; then
8506 ac_cv_func_strtod=no
8507else
8508 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8509/* confdefs.h. */
8510_ACEOF
8511cat confdefs.h >>conftest.$ac_ext
8512cat >>conftest.$ac_ext <<_ACEOF
8513/* end confdefs.h. */
8514
7a197a62
AK
8515$ac_includes_default
8516#ifndef strtod
ad6254c5 8517double strtod ();
7a197a62 8518#endif
ad6254c5
AK
8519int
8520main()
8521{
8522 {
8523 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
8524 char *string = " +69";
8525 char *term;
8526 double value;
8527 value = strtod (string, &term);
8528 if (value != 69 || term != (string + 4))
7a197a62 8529 return 1;
ad6254c5
AK
8530 }
8531
8532 {
8533 /* Under Solaris 2.4, strtod returns the wrong value for the
8534 terminating character under some conditions. */
8535 char *string = "NaN";
8536 char *term;
8537 strtod (string, &term);
8538 if (term != string && *(term - 1) == 0)
7a197a62 8539 return 1;
ad6254c5 8540 }
7a197a62 8541 return 0;
ad6254c5
AK
8542}
8543
8544_ACEOF
8545rm -f conftest$ac_exeext
7a197a62
AK
8546if { (ac_try="$ac_link"
8547case "(($ac_try" in
8548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8549 *) ac_try_echo=$ac_try;;
8550esac
ec6a6fbe
AK
8551eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8552$as_echo "$ac_try_echo") >&5
7a197a62 8553 (eval "$ac_link") 2>&5
ad6254c5 8554 ac_status=$?
ec6a6fbe 8555 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 8556 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
8557 { (case "(($ac_try" in
8558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8559 *) ac_try_echo=$ac_try;;
8560esac
ec6a6fbe
AK
8561eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8562$as_echo "$ac_try_echo") >&5
7a197a62 8563 (eval "$ac_try") 2>&5
ad6254c5 8564 ac_status=$?
ec6a6fbe 8565 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
8566 (exit $ac_status); }; }; then
8567 ac_cv_func_strtod=yes
8568else
ec6a6fbe
AK
8569 $as_echo "$as_me: program exited with status $ac_status" >&5
8570$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8571sed 's/^/| /' conftest.$ac_ext >&5
8572
8573( exit $ac_status )
8574ac_cv_func_strtod=no
8575fi
ec6a6fbe 8576rm -rf conftest.dSYM
7a197a62 8577rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 8578fi
7a197a62
AK
8579
8580
ad6254c5 8581fi
ec6a6fbe
AK
8582{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
8583$as_echo "$ac_cv_func_strtod" >&6; }
ad6254c5 8584if test $ac_cv_func_strtod = no; then
7a197a62 8585 case " $LIBOBJS " in
8a2fc586 8586 *" strtod.$ac_objext "* ) ;;
7a197a62
AK
8587 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
8588 ;;
8a2fc586
AK
8589esac
8590
ec6a6fbe
AK
8591{ $as_echo "$as_me:$LINENO: checking for pow" >&5
8592$as_echo_n "checking for pow... " >&6; }
ad6254c5 8593if test "${ac_cv_func_pow+set}" = set; then
ec6a6fbe 8594 $as_echo_n "(cached) " >&6
ad6254c5
AK
8595else
8596 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8597/* confdefs.h. */
8598_ACEOF
8599cat confdefs.h >>conftest.$ac_ext
8600cat >>conftest.$ac_ext <<_ACEOF
8601/* end confdefs.h. */
8a2fc586
AK
8602/* Define pow to an innocuous variant, in case <limits.h> declares pow.
8603 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8604#define pow innocuous_pow
8605
ad6254c5
AK
8606/* System header to define __stub macros and hopefully few prototypes,
8607 which can conflict with char pow (); below.
8608 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8609 <limits.h> exists even on freestanding compilers. */
8a2fc586 8610
ad6254c5
AK
8611#ifdef __STDC__
8612# include <limits.h>
8613#else
8614# include <assert.h>
8615#endif
8a2fc586
AK
8616
8617#undef pow
8618
7a197a62
AK
8619/* Override any GCC internal prototype to avoid an error.
8620 Use char because int might match the return type of a GCC
8621 builtin and then its argument prototype would still apply. */
ad6254c5
AK
8622#ifdef __cplusplus
8623extern "C"
ad6254c5 8624#endif
ad6254c5
AK
8625char pow ();
8626/* The GNU C library defines this for functions which it implements
8627 to always fail with ENOSYS. Some functions are actually named
8628 something starting with __ and the normal name is an alias. */
7a197a62 8629#if defined __stub_pow || defined __stub___pow
ad6254c5 8630choke me
ad6254c5
AK
8631#endif
8632
8633int
8634main ()
8635{
7a197a62 8636return pow ();
ad6254c5
AK
8637 ;
8638 return 0;
8639}
8640_ACEOF
8641rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
8642if { (ac_try="$ac_link"
8643case "(($ac_try" in
8644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8645 *) ac_try_echo=$ac_try;;
8646esac
ec6a6fbe
AK
8647eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8648$as_echo "$ac_try_echo") >&5
7a197a62 8649 (eval "$ac_link") 2>conftest.er1
ad6254c5 8650 ac_status=$?
8a2fc586
AK
8651 grep -v '^ *+' conftest.er1 >conftest.err
8652 rm -f conftest.er1
8653 cat conftest.err >&5
ec6a6fbe 8654 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8655 (exit $ac_status); } && {
8656 test -z "$ac_c_werror_flag" ||
8657 test ! -s conftest.err
ec6a6fbe
AK
8658 } && test -s conftest$ac_exeext && {
8659 test "$cross_compiling" = yes ||
8660 $as_test_x conftest$ac_exeext
8661 }; then
ad6254c5
AK
8662 ac_cv_func_pow=yes
8663else
ec6a6fbe 8664 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8665sed 's/^/| /' conftest.$ac_ext >&5
8666
7a197a62 8667 ac_cv_func_pow=no
ad6254c5 8668fi
7a197a62 8669
ec6a6fbe 8670rm -rf conftest.dSYM
25fbec5b 8671rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 8672 conftest$ac_exeext conftest.$ac_ext
ad6254c5 8673fi
ec6a6fbe
AK
8674{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
8675$as_echo "$ac_cv_func_pow" >&6; }
ad6254c5
AK
8676
8677if test $ac_cv_func_pow = no; then
ec6a6fbe
AK
8678 { $as_echo "$as_me:$LINENO: checking for pow in -lm" >&5
8679$as_echo_n "checking for pow in -lm... " >&6; }
ad6254c5 8680if test "${ac_cv_lib_m_pow+set}" = set; then
ec6a6fbe 8681 $as_echo_n "(cached) " >&6
ad6254c5
AK
8682else
8683 ac_check_lib_save_LIBS=$LIBS
8684LIBS="-lm $LIBS"
8685cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8686/* confdefs.h. */
8687_ACEOF
8688cat confdefs.h >>conftest.$ac_ext
8689cat >>conftest.$ac_ext <<_ACEOF
8690/* end confdefs.h. */
8691
7a197a62
AK
8692/* Override any GCC internal prototype to avoid an error.
8693 Use char because int might match the return type of a GCC
8694 builtin and then its argument prototype would still apply. */
ad6254c5
AK
8695#ifdef __cplusplus
8696extern "C"
8697#endif
ad6254c5
AK
8698char pow ();
8699int
8700main ()
8701{
7a197a62 8702return pow ();
ad6254c5
AK
8703 ;
8704 return 0;
8705}
8706_ACEOF
8707rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
8708if { (ac_try="$ac_link"
8709case "(($ac_try" in
8710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8711 *) ac_try_echo=$ac_try;;
8712esac
ec6a6fbe
AK
8713eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8714$as_echo "$ac_try_echo") >&5
7a197a62 8715 (eval "$ac_link") 2>conftest.er1
ad6254c5 8716 ac_status=$?
8a2fc586
AK
8717 grep -v '^ *+' conftest.er1 >conftest.err
8718 rm -f conftest.er1
8719 cat conftest.err >&5
ec6a6fbe 8720 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8721 (exit $ac_status); } && {
8722 test -z "$ac_c_werror_flag" ||
8723 test ! -s conftest.err
ec6a6fbe
AK
8724 } && test -s conftest$ac_exeext && {
8725 test "$cross_compiling" = yes ||
8726 $as_test_x conftest$ac_exeext
8727 }; then
ad6254c5
AK
8728 ac_cv_lib_m_pow=yes
8729else
ec6a6fbe 8730 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8731sed 's/^/| /' conftest.$ac_ext >&5
8732
7a197a62 8733 ac_cv_lib_m_pow=no
ad6254c5 8734fi
7a197a62 8735
ec6a6fbe 8736rm -rf conftest.dSYM
25fbec5b 8737rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 8738 conftest$ac_exeext conftest.$ac_ext
ad6254c5 8739LIBS=$ac_check_lib_save_LIBS
d0191583 8740fi
ec6a6fbe
AK
8741{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
8742$as_echo "$ac_cv_lib_m_pow" >&6; }
8743if test "x$ac_cv_lib_m_pow" = x""yes; then
d0191583
JM
8744 POW_LIB=-lm
8745else
ec6a6fbe
AK
8746 { $as_echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
8747$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
d0191583 8748fi
72b2cb61 8749
d0191583 8750fi
72b2cb61 8751
ad6254c5
AK
8752fi
8753
ad6254c5 8754
d0191583
JM
8755for ac_func in vprintf
8756do
ec6a6fbe
AK
8757as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8758{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8759$as_echo_n "checking for $ac_func... " >&6; }
d0191583 8760if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 8761 $as_echo_n "(cached) " >&6
ad6254c5 8762else
d0191583
JM
8763 cat >conftest.$ac_ext <<_ACEOF
8764/* confdefs.h. */
8765_ACEOF
8766cat confdefs.h >>conftest.$ac_ext
8767cat >>conftest.$ac_ext <<_ACEOF
8768/* end confdefs.h. */
8769/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8770 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8771#define $ac_func innocuous_$ac_func
7a197a62 8772
d0191583
JM
8773/* System header to define __stub macros and hopefully few prototypes,
8774 which can conflict with char $ac_func (); below.
8775 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8776 <limits.h> exists even on freestanding compilers. */
ad6254c5 8777
d0191583
JM
8778#ifdef __STDC__
8779# include <limits.h>
8780#else
8781# include <assert.h>
8782#endif
ad6254c5 8783
d0191583 8784#undef $ac_func
72b2cb61 8785
d0191583
JM
8786/* Override any GCC internal prototype to avoid an error.
8787 Use char because int might match the return type of a GCC
8788 builtin and then its argument prototype would still apply. */
8789#ifdef __cplusplus
8790extern "C"
8791#endif
8792char $ac_func ();
8793/* The GNU C library defines this for functions which it implements
8794 to always fail with ENOSYS. Some functions are actually named
8795 something starting with __ and the normal name is an alias. */
8796#if defined __stub_$ac_func || defined __stub___$ac_func
8797choke me
8798#endif
8799
8800int
8801main ()
8802{
8803return $ac_func ();
8804 ;
8805 return 0;
8806}
72b2cb61 8807_ACEOF
d0191583
JM
8808rm -f conftest.$ac_objext conftest$ac_exeext
8809if { (ac_try="$ac_link"
8810case "(($ac_try" in
8811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8812 *) ac_try_echo=$ac_try;;
8813esac
ec6a6fbe
AK
8814eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8815$as_echo "$ac_try_echo") >&5
d0191583
JM
8816 (eval "$ac_link") 2>conftest.er1
8817 ac_status=$?
8818 grep -v '^ *+' conftest.er1 >conftest.err
8819 rm -f conftest.er1
8820 cat conftest.err >&5
ec6a6fbe 8821 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
8822 (exit $ac_status); } && {
8823 test -z "$ac_c_werror_flag" ||
8824 test ! -s conftest.err
ec6a6fbe
AK
8825 } && test -s conftest$ac_exeext && {
8826 test "$cross_compiling" = yes ||
8827 $as_test_x conftest$ac_exeext
8828 }; then
d0191583
JM
8829 eval "$as_ac_var=yes"
8830else
ec6a6fbe 8831 $as_echo "$as_me: failed program was:" >&5
d0191583 8832sed 's/^/| /' conftest.$ac_ext >&5
72b2cb61 8833
d0191583 8834 eval "$as_ac_var=no"
ad6254c5
AK
8835fi
8836
ec6a6fbe 8837rm -rf conftest.dSYM
d0191583
JM
8838rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8839 conftest$ac_exeext conftest.$ac_ext
7a197a62 8840fi
ec6a6fbe
AK
8841ac_res=`eval 'as_val=${'$as_ac_var'}
8842 $as_echo "$as_val"'`
8843 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8844$as_echo "$ac_res" >&6; }
8845as_val=`eval 'as_val=${'$as_ac_var'}
8846 $as_echo "$as_val"'`
8847 if test "x$as_val" = x""yes; then
d0191583 8848 cat >>confdefs.h <<_ACEOF
ec6a6fbe 8849#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
d0191583 8850_ACEOF
7a197a62 8851
ec6a6fbe
AK
8852{ $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
8853$as_echo_n "checking for _doprnt... " >&6; }
d0191583 8854if test "${ac_cv_func__doprnt+set}" = set; then
ec6a6fbe 8855 $as_echo_n "(cached) " >&6
ad6254c5 8856else
d0191583
JM
8857 cat >conftest.$ac_ext <<_ACEOF
8858/* confdefs.h. */
8859_ACEOF
8860cat confdefs.h >>conftest.$ac_ext
8861cat >>conftest.$ac_ext <<_ACEOF
8862/* end confdefs.h. */
8863/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
8864 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8865#define _doprnt innocuous__doprnt
7a197a62 8866
d0191583
JM
8867/* System header to define __stub macros and hopefully few prototypes,
8868 which can conflict with char _doprnt (); below.
8869 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8870 <limits.h> exists even on freestanding compilers. */
ad6254c5 8871
d0191583
JM
8872#ifdef __STDC__
8873# include <limits.h>
8874#else
8875# include <assert.h>
8876#endif
72b2cb61 8877
d0191583
JM
8878#undef _doprnt
8879
8880/* Override any GCC internal prototype to avoid an error.
8881 Use char because int might match the return type of a GCC
8882 builtin and then its argument prototype would still apply. */
8883#ifdef __cplusplus
8884extern "C"
8885#endif
8886char _doprnt ();
8887/* The GNU C library defines this for functions which it implements
8888 to always fail with ENOSYS. Some functions are actually named
8889 something starting with __ and the normal name is an alias. */
8890#if defined __stub__doprnt || defined __stub____doprnt
8891choke me
8892#endif
8893
8894int
8895main ()
8896{
8897return _doprnt ();
8898 ;
8899 return 0;
8900}
72b2cb61 8901_ACEOF
d0191583
JM
8902rm -f conftest.$ac_objext conftest$ac_exeext
8903if { (ac_try="$ac_link"
8904case "(($ac_try" in
8905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8906 *) ac_try_echo=$ac_try;;
8907esac
ec6a6fbe
AK
8908eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8909$as_echo "$ac_try_echo") >&5
d0191583
JM
8910 (eval "$ac_link") 2>conftest.er1
8911 ac_status=$?
8912 grep -v '^ *+' conftest.er1 >conftest.err
8913 rm -f conftest.er1
8914 cat conftest.err >&5
ec6a6fbe 8915 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
8916 (exit $ac_status); } && {
8917 test -z "$ac_c_werror_flag" ||
8918 test ! -s conftest.err
ec6a6fbe
AK
8919 } && test -s conftest$ac_exeext && {
8920 test "$cross_compiling" = yes ||
8921 $as_test_x conftest$ac_exeext
8922 }; then
d0191583
JM
8923 ac_cv_func__doprnt=yes
8924else
ec6a6fbe 8925 $as_echo "$as_me: failed program was:" >&5
d0191583 8926sed 's/^/| /' conftest.$ac_ext >&5
72b2cb61 8927
d0191583 8928 ac_cv_func__doprnt=no
ad6254c5
AK
8929fi
8930
ec6a6fbe 8931rm -rf conftest.dSYM
d0191583
JM
8932rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8933 conftest$ac_exeext conftest.$ac_ext
7a197a62 8934fi
ec6a6fbe
AK
8935{ $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
8936$as_echo "$ac_cv_func__doprnt" >&6; }
8937if test "x$ac_cv_func__doprnt" = x""yes; then
7a197a62 8938
d0191583
JM
8939cat >>confdefs.h <<\_ACEOF
8940#define HAVE_DOPRNT 1
8941_ACEOF
ad6254c5 8942
7a197a62
AK
8943fi
8944
d0191583
JM
8945fi
8946done
8b1a3214 8947
ad6254c5 8948
7a197a62 8949
9c961554 8950################################################################################
ec6a6fbe
AK
8951{ $as_echo "$as_me:$LINENO: checking whether to use static linking" >&5
8952$as_echo_n "checking whether to use static linking... " >&6; }
9c961554
MB
8953# Check whether --enable-static_link was given.
8954if test "${enable_static_link+set}" = set; then
8955 enableval=$enable_static_link; STATIC_LINK=$enableval
8956else
8957 STATIC_LINK=no
8958fi
8959
ec6a6fbe
AK
8960{ $as_echo "$as_me:$LINENO: result: $STATIC_LINK" >&5
8961$as_echo "$STATIC_LINK" >&6; }
9c961554 8962
d0191583 8963################################################################################
ad6254c5 8964
ad6254c5
AK
8965
8966################################################################################
ec6a6fbe
AK
8967{ $as_echo "$as_me:$LINENO: checking file owner" >&5
8968$as_echo_n "checking file owner... " >&6; }
d0191583
JM
8969OWNER="root"
8970
8971
8972# Check whether --with-user was given.
8973if test "${with_user+set}" = set; then
8974 withval=$with_user; OWNER="$withval"
7a197a62
AK
8975fi
8976
ec6a6fbe
AK
8977{ $as_echo "$as_me:$LINENO: result: $OWNER" >&5
8978$as_echo "$OWNER" >&6; }
ad6254c5 8979
d0191583
JM
8980if test x$OWNER != x; then
8981 OWNER="-o $OWNER"
ad6254c5
AK
8982fi
8983
8984################################################################################
ec6a6fbe
AK
8985{ $as_echo "$as_me:$LINENO: checking group owner" >&5
8986$as_echo_n "checking group owner... " >&6; }
d0191583 8987GROUP="root"
ad6254c5 8988
d0191583
JM
8989# Check whether --with-group was given.
8990if test "${with_group+set}" = set; then
8991 withval=$with_group; GROUP="$withval"
7a197a62
AK
8992fi
8993
ec6a6fbe
AK
8994{ $as_echo "$as_me:$LINENO: result: $GROUP" >&5
8995$as_echo "$GROUP" >&6; }
d0191583
JM
8996
8997if test x$GROUP != x; then
8998 GROUP="-g $GROUP"
8999fi
ad6254c5 9000
24bbc4d7 9001################################################################################
ec6a6fbe
AK
9002{ $as_echo "$as_me:$LINENO: checking device node uid" >&5
9003$as_echo_n "checking device node uid... " >&6; }
24bbc4d7
AK
9004
9005
9006# Check whether --with-device-uid was given.
9007if test "${with_device_uid+set}" = set; then
9008 withval=$with_device_uid; DM_DEVICE_UID="$withval"
9009else
9010 DM_DEVICE_UID="0"
9011fi
9012
ec6a6fbe
AK
9013{ $as_echo "$as_me:$LINENO: result: $DM_DEVICE_UID" >&5
9014$as_echo "$DM_DEVICE_UID" >&6; }
24bbc4d7
AK
9015
9016################################################################################
ec6a6fbe
AK
9017{ $as_echo "$as_me:$LINENO: checking device node gid" >&5
9018$as_echo_n "checking device node gid... " >&6; }
24bbc4d7
AK
9019
9020
9021# Check whether --with-device-gid was given.
9022if test "${with_device_gid+set}" = set; then
9023 withval=$with_device_gid; DM_DEVICE_GID="$withval"
9024else
9025 DM_DEVICE_GID="0"
9026fi
9027
ec6a6fbe
AK
9028{ $as_echo "$as_me:$LINENO: result: $DM_DEVICE_GID" >&5
9029$as_echo "$DM_DEVICE_GID" >&6; }
24bbc4d7 9030
93bd259b 9031################################################################################
ec6a6fbe
AK
9032{ $as_echo "$as_me:$LINENO: checking device node mode" >&5
9033$as_echo_n "checking device node mode... " >&6; }
93bd259b
AK
9034
9035
9036# Check whether --with-device-mode was given.
9037if test "${with_device_mode+set}" = set; then
9038 withval=$with_device_mode; DM_DEVICE_MODE="$withval"
9039else
9040 DM_DEVICE_MODE="0600"
9041fi
9042
ec6a6fbe
AK
9043{ $as_echo "$as_me:$LINENO: result: $DM_DEVICE_MODE" >&5
9044$as_echo "$DM_DEVICE_MODE" >&6; }
93bd259b 9045
ad6254c5 9046################################################################################
ec6a6fbe
AK
9047{ $as_echo "$as_me:$LINENO: checking whether to enable lvm1 fallback" >&5
9048$as_echo_n "checking whether to enable lvm1 fallback... " >&6; }
d0191583
JM
9049# Check whether --enable-lvm1_fallback was given.
9050if test "${enable_lvm1_fallback+set}" = set; then
9051 enableval=$enable_lvm1_fallback; LVM1_FALLBACK=$enableval
9052else
9053 LVM1_FALLBACK=no
7a197a62
AK
9054fi
9055
ec6a6fbe
AK
9056{ $as_echo "$as_me:$LINENO: result: $LVM1_FALLBACK" >&5
9057$as_echo "$LVM1_FALLBACK" >&6; }
ad6254c5 9058
d0191583 9059if test x$LVM1_FALLBACK = xyes; then
72b2cb61
AK
9060
9061cat >>confdefs.h <<\_ACEOF
d0191583 9062#define LVM1_FALLBACK 1
72b2cb61
AK
9063_ACEOF
9064
ad6254c5
AK
9065fi
9066
9067################################################################################
ec6a6fbe
AK
9068{ $as_echo "$as_me:$LINENO: checking whether to include support for lvm1 metadata" >&5
9069$as_echo_n "checking whether to include support for lvm1 metadata... " >&6; }
d0191583
JM
9070
9071# Check whether --with-lvm1 was given.
9072if test "${with_lvm1+set}" = set; then
9073 withval=$with_lvm1; LVM1="$withval"
9074else
9075 LVM1="internal"
7a197a62
AK
9076fi
9077
ec6a6fbe
AK
9078{ $as_echo "$as_me:$LINENO: result: $LVM1" >&5
9079$as_echo "$LVM1" >&6; }
ad6254c5 9080
d0191583 9081if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ];
ec6a6fbe 9082 then { { $as_echo "$as_me:$LINENO: error: --with-lvm1 parameter invalid
d0191583 9083" >&5
ec6a6fbe 9084$as_echo "$as_me: error: --with-lvm1 parameter invalid
d0191583
JM
9085" >&2;}
9086 { (exit 1); exit 1; }; }
9087fi;
9088
9089if test x$LVM1 = xinternal; then
72b2cb61
AK
9090
9091cat >>confdefs.h <<\_ACEOF
d0191583 9092#define LVM1_INTERNAL 1
72b2cb61
AK
9093_ACEOF
9094
ad6254c5
AK
9095fi
9096
9097################################################################################
ec6a6fbe
AK
9098{ $as_echo "$as_me:$LINENO: checking whether to include support for GFS pool metadata" >&5
9099$as_echo_n "checking whether to include support for GFS pool metadata... " >&6; }
d0191583
JM
9100
9101# Check whether --with-pool was given.
9102if test "${with_pool+set}" = set; then
9103 withval=$with_pool; POOL="$withval"
ad6254c5 9104else
d0191583 9105 POOL="internal"
7a197a62
AK
9106fi
9107
ec6a6fbe
AK
9108{ $as_echo "$as_me:$LINENO: result: $POOL" >&5
9109$as_echo "$POOL" >&6; }
ad6254c5 9110
d0191583 9111if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ];
ec6a6fbe 9112 then { { $as_echo "$as_me:$LINENO: error: --with-pool parameter invalid
d0191583 9113" >&5
ec6a6fbe 9114$as_echo "$as_me: error: --with-pool parameter invalid
d0191583
JM
9115" >&2;}
9116 { (exit 1); exit 1; }; }
9117fi;
7a197a62 9118
d0191583
JM
9119if test x$POOL = xinternal; then
9120
9121cat >>confdefs.h <<\_ACEOF
9122#define POOL_INTERNAL 1
9123_ACEOF
9124
9125fi
ad6254c5 9126
06f62ad1 9127################################################################################
ec6a6fbe
AK
9128{ $as_echo "$as_me:$LINENO: checking whether to include support for cluster locking" >&5
9129$as_echo_n "checking whether to include support for cluster locking... " >&6; }
d0191583
JM
9130
9131# Check whether --with-cluster was given.
9132if test "${with_cluster+set}" = set; then
9133 withval=$with_cluster; CLUSTER="$withval"
7a197a62
AK
9134fi
9135
ec6a6fbe
AK
9136{ $as_echo "$as_me:$LINENO: result: $CLUSTER" >&5
9137$as_echo "$CLUSTER" >&6; }
06f62ad1 9138
d0191583 9139if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ];
ec6a6fbe 9140 then { { $as_echo "$as_me:$LINENO: error: --with-cluster parameter invalid
06f62ad1 9141" >&5
ec6a6fbe 9142$as_echo "$as_me: error: --with-cluster parameter invalid
06f62ad1
AK
9143" >&2;}
9144 { (exit 1); exit 1; }; }
d0191583 9145fi;
06f62ad1 9146
d0191583 9147if test x$CLUSTER = xinternal; then
72b2cb61
AK
9148
9149cat >>confdefs.h <<\_ACEOF
d0191583 9150#define CLUSTER_LOCKING_INTERNAL 1
72b2cb61
AK
9151_ACEOF
9152
15d91f5a 9153fi
ad6254c5
AK
9154
9155################################################################################
ec6a6fbe
AK
9156{ $as_echo "$as_me:$LINENO: checking whether to include snapshots" >&5
9157$as_echo_n "checking whether to include snapshots... " >&6; }
ad6254c5 9158
d0191583
JM
9159# Check whether --with-snapshots was given.
9160if test "${with_snapshots+set}" = set; then
9161 withval=$with_snapshots; SNAPSHOTS="$withval"
9162else
9163 SNAPSHOTS="internal"
ad6254c5
AK
9164fi
9165
ec6a6fbe
AK
9166{ $as_echo "$as_me:$LINENO: result: $SNAPSHOTS" >&5
9167$as_echo "$SNAPSHOTS" >&6; }
ad6254c5 9168
d0191583 9169if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ];
ec6a6fbe 9170 then { { $as_echo "$as_me:$LINENO: error: --with-snapshots parameter invalid
d0191583 9171" >&5
ec6a6fbe 9172$as_echo "$as_me: error: --with-snapshots parameter invalid
d0191583
JM
9173" >&2;}
9174 { (exit 1); exit 1; }; }
9175fi;
9176
9177if test x$SNAPSHOTS = xinternal; then
9178
9179cat >>confdefs.h <<\_ACEOF
9180#define SNAPSHOT_INTERNAL 1
9181_ACEOF
ad6254c5 9182
ad6254c5 9183fi
7a197a62 9184
d0191583 9185################################################################################
ec6a6fbe
AK
9186{ $as_echo "$as_me:$LINENO: checking whether to include mirrors" >&5
9187$as_echo_n "checking whether to include mirrors... " >&6; }
d0191583
JM
9188
9189# Check whether --with-mirrors was given.
9190if test "${with_mirrors+set}" = set; then
9191 withval=$with_mirrors; MIRRORS="$withval"
9192else
9193 MIRRORS="internal"
ad6254c5 9194fi
ad6254c5 9195
ec6a6fbe
AK
9196{ $as_echo "$as_me:$LINENO: result: $MIRRORS" >&5
9197$as_echo "$MIRRORS" >&6; }
ad6254c5 9198
d0191583 9199if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ];
ec6a6fbe 9200 then { { $as_echo "$as_me:$LINENO: error: --with-mirrors parameter invalid
d0191583 9201" >&5
ec6a6fbe 9202$as_echo "$as_me: error: --with-mirrors parameter invalid
d0191583
JM
9203" >&2;}
9204 { (exit 1); exit 1; }; }
9205fi;
ad6254c5 9206
d0191583 9207if test x$MIRRORS = xinternal; then
ad6254c5 9208
d0191583
JM
9209cat >>confdefs.h <<\_ACEOF
9210#define MIRRORED_INTERNAL 1
ad6254c5 9211_ACEOF
8a2fc586 9212
d0191583 9213fi
8a2fc586 9214
d0191583 9215################################################################################
ec6a6fbe
AK
9216{ $as_echo "$as_me:$LINENO: checking whether to enable readline" >&5
9217$as_echo_n "checking whether to enable readline... " >&6; }
d0191583
JM
9218# Check whether --enable-readline was given.
9219if test "${enable_readline+set}" = set; then
9220 enableval=$enable_readline; READLINE=$enableval
9221else
06e459df 9222 READLINE=maybe
d0191583 9223fi
8a2fc586 9224
ec6a6fbe
AK
9225{ $as_echo "$as_me:$LINENO: result: $READLINE" >&5
9226$as_echo "$READLINE" >&6; }
8a2fc586 9227
d0191583 9228################################################################################
ec6a6fbe
AK
9229{ $as_echo "$as_me:$LINENO: checking whether to enable realtime support" >&5
9230$as_echo_n "checking whether to enable realtime support... " >&6; }
d0191583
JM
9231# Check whether --enable-realtime was given.
9232if test "${enable_realtime+set}" = set; then
9233 enableval=$enable_realtime; REALTIME=$enableval
ad6254c5 9234fi
ad6254c5 9235
ec6a6fbe
AK
9236{ $as_echo "$as_me:$LINENO: result: $REALTIME" >&5
9237$as_echo "$REALTIME" >&6; }
d0191583
JM
9238
9239################################################################################
ec6a6fbe
AK
9240{ $as_echo "$as_me:$LINENO: checking whether to build cluster LVM daemon" >&5
9241$as_echo_n "checking whether to build cluster LVM daemon... " >&6; }
d0191583
JM
9242
9243# Check whether --with-clvmd was given.
9244if test "${with_clvmd+set}" = set; then
9245 withval=$with_clvmd; CLVMD="$withval"
ad6254c5 9246else
d0191583
JM
9247 CLVMD="none"
9248fi
8a2fc586 9249
d0191583
JM
9250if test x$CLVMD = xyes; then
9251 CLVMD=all
9252fi
ec6a6fbe
AK
9253{ $as_echo "$as_me:$LINENO: result: $CLVMD" >&5
9254$as_echo "$CLVMD" >&6; }
8a2fc586 9255
d0191583
JM
9256if test x$CLVMD != xnone && test x$CLUSTER = xnone; then
9257 CLUSTER=internal
9258fi
8a2fc586 9259
a946372e
AK
9260if [ `expr x"$CLVMD" : '.*gulm.*'` != 0 ]; then
9261 BUILDGULM=yes
9262fi
9263if [ `expr x"$CLVMD" : '.*corosync.*'` != 0 ]; then
9264 BUILDCOROSYNC=yes
9265fi
9266if [ `expr x"$CLVMD" : '.*openais.*'` != 0 ]; then
9267 BUILDOPENAIS=yes
9268fi
9269if [ `expr x"$CLVMD" : '.*cman.*'` != 0 ]; then
9270 BUILDCMAN=yes
9271fi
9272
9273if test x$BUILDGULM = xyes; then
9274 if test x$BUILDCOROSYNC = xyes || \
9275 test x$BUILDOPENAIS = xyes; then
9276 { { $as_echo "$as_me:$LINENO: error: requested clvmd configuration is not valid" >&5
9277$as_echo "$as_me: error: requested clvmd configuration is not valid" >&2;}
9278 { (exit 1); exit 1; }; }
9279 fi
9280fi
9281
9282if test x$CLVMD != xnone; then
e2997b73
AK
9283
9284
9285if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
9286 if test -n "$ac_tool_prefix"; then
9287 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
9288set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
9289{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9290$as_echo_n "checking for $ac_word... " >&6; }
9291if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9292 $as_echo_n "(cached) " >&6
9293else
9294 case $PKG_CONFIG in
9295 [\\/]* | ?:[\\/]*)
9296 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9297 ;;
9298 *)
9299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9300for as_dir in $PATH
9301do
9302 IFS=$as_save_IFS
9303 test -z "$as_dir" && as_dir=.
9304 for ac_exec_ext in '' $ac_executable_extensions; do
9305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9306 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9307 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9308 break 2
9309 fi
9310done
9311done
9312IFS=$as_save_IFS
9313
9314 ;;
9315esac
9316fi
9317PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9318if test -n "$PKG_CONFIG"; then
9319 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9320$as_echo "$PKG_CONFIG" >&6; }
9321else
9322 { $as_echo "$as_me:$LINENO: result: no" >&5
9323$as_echo "no" >&6; }
9324fi
9325
9326
9327fi
9328if test -z "$ac_cv_path_PKG_CONFIG"; then
9329 ac_pt_PKG_CONFIG=$PKG_CONFIG
9330 # Extract the first word of "pkg-config", so it can be a program name with args.
9331set dummy pkg-config; ac_word=$2
9332{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9333$as_echo_n "checking for $ac_word... " >&6; }
9334if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
9335 $as_echo_n "(cached) " >&6
9336else
9337 case $ac_pt_PKG_CONFIG in
9338 [\\/]* | ?:[\\/]*)
9339 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
9340 ;;
9341 *)
9342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9343for as_dir in $PATH
9344do
9345 IFS=$as_save_IFS
9346 test -z "$as_dir" && as_dir=.
9347 for ac_exec_ext in '' $ac_executable_extensions; do
9348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9349 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9350 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9351 break 2
9352 fi
9353done
9354done
9355IFS=$as_save_IFS
9356
9357 ;;
9358esac
9359fi
9360ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
9361if test -n "$ac_pt_PKG_CONFIG"; then
9362 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
9363$as_echo "$ac_pt_PKG_CONFIG" >&6; }
9364else
9365 { $as_echo "$as_me:$LINENO: result: no" >&5
9366$as_echo "no" >&6; }
9367fi
9368
9369 if test "x$ac_pt_PKG_CONFIG" = x; then
9370 PKG_CONFIG=""
9371 else
9372 case $cross_compiling:$ac_tool_warned in
9373yes:)
9374{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9375$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9376ac_tool_warned=yes ;;
9377esac
9378 PKG_CONFIG=$ac_pt_PKG_CONFIG
9379 fi
9380else
9381 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
9382fi
9383
9384fi
9385if test -n "$PKG_CONFIG"; then
9386 _pkg_min_version=0.9.0
9387 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
9388$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
9389 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
9390 { $as_echo "$as_me:$LINENO: result: yes" >&5
9391$as_echo "yes" >&6; }
9392 else
9393 { $as_echo "$as_me:$LINENO: result: no" >&5
9394$as_echo "no" >&6; }
9395 PKG_CONFIG=""
9396 fi
9397
9398fi
9399
9400pkg_failed=no
a946372e
AK
9401{ $as_echo "$as_me:$LINENO: checking for PKGCONFIGINIT" >&5
9402$as_echo_n "checking for PKGCONFIGINIT... " >&6; }
e2997b73 9403
a946372e
AK
9404if test -n "$PKGCONFIGINIT_CFLAGS"; then
9405 pkg_cv_PKGCONFIGINIT_CFLAGS="$PKGCONFIGINIT_CFLAGS"
e2997b73
AK
9406 elif test -n "$PKG_CONFIG"; then
9407 if test -n "$PKG_CONFIG" && \
a946372e
AK
9408 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\"") >&5
9409 ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5
e2997b73
AK
9410 ac_status=$?
9411 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9412 (exit $ac_status); }; then
a946372e 9413 pkg_cv_PKGCONFIGINIT_CFLAGS=`$PKG_CONFIG --cflags "pkgconfiginit" 2>/dev/null`
e2997b73
AK
9414else
9415 pkg_failed=yes
9416fi
9417 else
9418 pkg_failed=untried
9419fi
a946372e
AK
9420if test -n "$PKGCONFIGINIT_LIBS"; then
9421 pkg_cv_PKGCONFIGINIT_LIBS="$PKGCONFIGINIT_LIBS"
e2997b73
AK
9422 elif test -n "$PKG_CONFIG"; then
9423 if test -n "$PKG_CONFIG" && \
a946372e
AK
9424 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\"") >&5
9425 ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5
e2997b73
AK
9426 ac_status=$?
9427 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9428 (exit $ac_status); }; then
a946372e 9429 pkg_cv_PKGCONFIGINIT_LIBS=`$PKG_CONFIG --libs "pkgconfiginit" 2>/dev/null`
e2997b73
AK
9430else
9431 pkg_failed=yes
9432fi
9433 else
9434 pkg_failed=untried
9435fi
9436
9437
9438
9439if test $pkg_failed = yes; then
9440
9441if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9442 _pkg_short_errors_supported=yes
9443else
9444 _pkg_short_errors_supported=no
9445fi
9446 if test $_pkg_short_errors_supported = yes; then
a946372e 9447 PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pkgconfiginit" 2>&1`
e2997b73 9448 else
a946372e 9449 PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "pkgconfiginit" 2>&1`
e2997b73
AK
9450 fi
9451 # Put the nasty error message in config.log where it belongs
a946372e 9452 echo "$PKGCONFIGINIT_PKG_ERRORS" >&5
e2997b73
AK
9453
9454 { $as_echo "$as_me:$LINENO: result: no" >&5
9455$as_echo "no" >&6; }
a946372e
AK
9456 { $as_echo "$as_me:$LINENO: result: pkg-config initialized" >&5
9457$as_echo "pkg-config initialized" >&6; }
e2997b73 9458elif test $pkg_failed = untried; then
a946372e
AK
9459 { $as_echo "$as_me:$LINENO: result: pkg-config initialized" >&5
9460$as_echo "pkg-config initialized" >&6; }
e2997b73 9461else
a946372e
AK
9462 PKGCONFIGINIT_CFLAGS=$pkg_cv_PKGCONFIGINIT_CFLAGS
9463 PKGCONFIGINIT_LIBS=$pkg_cv_PKGCONFIGINIT_LIBS
e2997b73
AK
9464 { $as_echo "$as_me:$LINENO: result: yes" >&5
9465$as_echo "yes" >&6; }
9466 :
9467fi
a946372e 9468fi
e2997b73 9469
a946372e
AK
9470soft_bailout() {
9471 NOTFOUND=1
9472}
e2997b73 9473
a946372e
AK
9474hard_bailout() {
9475 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
9476$as_echo "$as_me: error: bailing out" >&2;}
9477 { (exit 1); exit 1; }; }
9478}
9479
9480if test x$CLVMD = xall; then
9481 bailout=soft_bailout
9482 BUILDGULM=yes
9483 BUILDCMAN=yes
9484 BUILDCOROSYNC=yes
9485 BUILDOPENAIS=yes
e2997b73 9486else
a946372e 9487 bailout=hard_bailout
e2997b73 9488fi
a946372e
AK
9489
9490check_lib_no_libs() {
9491 lib_no_libs_arg1=$1
9492 shift
9493 lib_no_libs_arg2=$1
9494 shift
9495 lib_no_libs_args=$@
9496
9497as_ac_Lib=`$as_echo "ac_cv_lib_$lib_no_libs_arg1''_$lib_no_libs_arg2" | $as_tr_sh`
9498{ $as_echo "$as_me:$LINENO: checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1" >&5
9499$as_echo_n "checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1... " >&6; }
9500if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
9501 $as_echo_n "(cached) " >&6
9502else
9503 ac_check_lib_save_LIBS=$LIBS
9504LIBS="-l$lib_no_libs_arg1 $lib_no_libs_args $LIBS"
9505cat >conftest.$ac_ext <<_ACEOF
9506/* confdefs.h. */
9507_ACEOF
9508cat confdefs.h >>conftest.$ac_ext
9509cat >>conftest.$ac_ext <<_ACEOF
9510/* end confdefs.h. */
9511
9512/* Override any GCC internal prototype to avoid an error.
9513 Use char because int might match the return type of a GCC
9514 builtin and then its argument prototype would still apply. */
9515#ifdef __cplusplus
9516extern "C"
9517#endif
9518char $lib_no_libs_arg2 ();
9519int
9520main ()
9521{
9522return $lib_no_libs_arg2 ();
9523 ;
9524 return 0;
9525}
9526_ACEOF
9527rm -f conftest.$ac_objext conftest$ac_exeext
9528if { (ac_try="$ac_link"
9529case "(($ac_try" in
9530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9531 *) ac_try_echo=$ac_try;;
9532esac
9533eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9534$as_echo "$ac_try_echo") >&5
9535 (eval "$ac_link") 2>conftest.er1
e2997b73 9536 ac_status=$?
a946372e
AK
9537 grep -v '^ *+' conftest.er1 >conftest.err
9538 rm -f conftest.er1
9539 cat conftest.err >&5
e2997b73 9540 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
a946372e
AK
9541 (exit $ac_status); } && {
9542 test -z "$ac_c_werror_flag" ||
9543 test ! -s conftest.err
9544 } && test -s conftest$ac_exeext && {
9545 test "$cross_compiling" = yes ||
9546 $as_test_x conftest$ac_exeext
9547 }; then
9548 eval "$as_ac_Lib=yes"
e2997b73 9549else
a946372e
AK
9550 $as_echo "$as_me: failed program was:" >&5
9551sed 's/^/| /' conftest.$ac_ext >&5
e2997b73 9552
a946372e
AK
9553 eval "$as_ac_Lib=no"
9554fi
e2997b73 9555
a946372e
AK
9556rm -rf conftest.dSYM
9557rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9558 conftest$ac_exeext conftest.$ac_ext
9559LIBS=$ac_check_lib_save_LIBS
9560fi
9561ac_res=`eval 'as_val=${'$as_ac_Lib'}
9562 $as_echo "$as_val"'`
9563 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9564$as_echo "$ac_res" >&6; }
9565as_val=`eval 'as_val=${'$as_ac_Lib'}
9566 $as_echo "$as_val"'`
9567 if test "x$as_val" = x""yes; then
9568 cat >>confdefs.h <<_ACEOF
9569#define `$as_echo "HAVE_LIB$lib_no_libs_arg1" | $as_tr_cpp` 1
9570_ACEOF
e2997b73 9571
a946372e 9572 LIBS="-l$lib_no_libs_arg1 $LIBS"
e2997b73 9573
e2997b73 9574else
a946372e 9575 $bailout
e2997b73 9576fi
e2997b73 9577
a946372e
AK
9578 LIBS=$ac_check_lib_save_LIBS
9579}
9580
9581if test x$BUILDGULM = xyes; then
e2997b73
AK
9582
9583pkg_failed=no
a946372e
AK
9584{ $as_echo "$as_me:$LINENO: checking for CCS" >&5
9585$as_echo_n "checking for CCS... " >&6; }
e2997b73 9586
a946372e
AK
9587if test -n "$CCS_CFLAGS"; then
9588 pkg_cv_CCS_CFLAGS="$CCS_CFLAGS"
e2997b73
AK
9589 elif test -n "$PKG_CONFIG"; then
9590 if test -n "$PKG_CONFIG" && \
a946372e
AK
9591 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libccs\"") >&5
9592 ($PKG_CONFIG --exists --print-errors "libccs") 2>&5
e2997b73
AK
9593 ac_status=$?
9594 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9595 (exit $ac_status); }; then
a946372e 9596 pkg_cv_CCS_CFLAGS=`$PKG_CONFIG --cflags "libccs" 2>/dev/null`
e2997b73
AK
9597else
9598 pkg_failed=yes
9599fi
9600 else
9601 pkg_failed=untried
9602fi
a946372e
AK
9603if test -n "$CCS_LIBS"; then
9604 pkg_cv_CCS_LIBS="$CCS_LIBS"
e2997b73
AK
9605 elif test -n "$PKG_CONFIG"; then
9606 if test -n "$PKG_CONFIG" && \
a946372e
AK
9607 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libccs\"") >&5
9608 ($PKG_CONFIG --exists --print-errors "libccs") 2>&5
e2997b73
AK
9609 ac_status=$?
9610 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9611 (exit $ac_status); }; then
a946372e 9612 pkg_cv_CCS_LIBS=`$PKG_CONFIG --libs "libccs" 2>/dev/null`
e2997b73
AK
9613else
9614 pkg_failed=yes
9615fi
9616 else
9617 pkg_failed=untried
9618fi
9619
9620
9621
9622if test $pkg_failed = yes; then
9623
9624if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9625 _pkg_short_errors_supported=yes
9626else
9627 _pkg_short_errors_supported=no
9628fi
9629 if test $_pkg_short_errors_supported = yes; then
a946372e 9630 CCS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libccs" 2>&1`
e2997b73 9631 else
a946372e 9632 CCS_PKG_ERRORS=`$PKG_CONFIG --print-errors "libccs" 2>&1`
e2997b73
AK
9633 fi
9634 # Put the nasty error message in config.log where it belongs
a946372e 9635 echo "$CCS_PKG_ERRORS" >&5
e2997b73
AK
9636
9637 { $as_echo "$as_me:$LINENO: result: no" >&5
9638$as_echo "no" >&6; }
a946372e 9639 NOTFOUND=0
e2997b73 9640
a946372e
AK
9641for ac_header in ccs.h
9642do
9643as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9644if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9645 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9646$as_echo_n "checking for $ac_header... " >&6; }
9647if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9648 $as_echo_n "(cached) " >&6
d0191583 9649fi
a946372e
AK
9650ac_res=`eval 'as_val=${'$as_ac_Header'}
9651 $as_echo "$as_val"'`
9652 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9653$as_echo "$ac_res" >&6; }
fc54be10 9654else
a946372e
AK
9655 # Is the header compilable?
9656{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9657$as_echo_n "checking $ac_header usability... " >&6; }
9658cat >conftest.$ac_ext <<_ACEOF
9659/* confdefs.h. */
9660_ACEOF
9661cat confdefs.h >>conftest.$ac_ext
9662cat >>conftest.$ac_ext <<_ACEOF
9663/* end confdefs.h. */
9664$ac_includes_default
9665#include <$ac_header>
9666_ACEOF
9667rm -f conftest.$ac_objext
9668if { (ac_try="$ac_compile"
9669case "(($ac_try" in
9670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9671 *) ac_try_echo=$ac_try;;
9672esac
9673eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9674$as_echo "$ac_try_echo") >&5
9675 (eval "$ac_compile") 2>conftest.er1
9676 ac_status=$?
9677 grep -v '^ *+' conftest.er1 >conftest.err
9678 rm -f conftest.er1
9679 cat conftest.err >&5
9680 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9681 (exit $ac_status); } && {
9682 test -z "$ac_c_werror_flag" ||
9683 test ! -s conftest.err
9684 } && test -s conftest.$ac_objext; then
9685 ac_header_compiler=yes
9686else
9687 $as_echo "$as_me: failed program was:" >&5
9688sed 's/^/| /' conftest.$ac_ext >&5
d0191583 9689
a946372e 9690 ac_header_compiler=no
d0191583
JM
9691fi
9692
a946372e
AK
9693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9694{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9695$as_echo "$ac_header_compiler" >&6; }
fddafd51 9696
a946372e
AK
9697# Is the header present?
9698{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9699$as_echo_n "checking $ac_header presence... " >&6; }
9700cat >conftest.$ac_ext <<_ACEOF
9701/* confdefs.h. */
9702_ACEOF
9703cat confdefs.h >>conftest.$ac_ext
9704cat >>conftest.$ac_ext <<_ACEOF
9705/* end confdefs.h. */
9706#include <$ac_header>
9707_ACEOF
9708if { (ac_try="$ac_cpp conftest.$ac_ext"
9709case "(($ac_try" in
9710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9711 *) ac_try_echo=$ac_try;;
9712esac
9713eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9714$as_echo "$ac_try_echo") >&5
9715 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9716 ac_status=$?
9717 grep -v '^ *+' conftest.er1 >conftest.err
9718 rm -f conftest.er1
9719 cat conftest.err >&5
9720 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9721 (exit $ac_status); } >/dev/null && {
9722 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9723 test ! -s conftest.err
9724 }; then
9725 ac_header_preproc=yes
9726else
9727 $as_echo "$as_me: failed program was:" >&5
9728sed 's/^/| /' conftest.$ac_ext >&5
9729
9730 ac_header_preproc=no
9731fi
9732
9733rm -f conftest.err conftest.$ac_ext
9734{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9735$as_echo "$ac_header_preproc" >&6; }
9736
9737# So? What about this header?
9738case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9739 yes:no: )
9740 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9741$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9742 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9743$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9744 ac_header_preproc=yes
9745 ;;
9746 no:yes:* )
9747 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9748$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9749 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9750$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9751 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9752$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9753 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9754$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9755 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9756$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9757 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9758$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9759
9760 ;;
9761esac
9762{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9763$as_echo_n "checking for $ac_header... " >&6; }
9764if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9765 $as_echo_n "(cached) " >&6
9766else
9767 eval "$as_ac_Header=\$ac_header_preproc"
9768fi
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; }
9773
9774fi
9775as_val=`eval 'as_val=${'$as_ac_Header'}
9776 $as_echo "$as_val"'`
9777 if test "x$as_val" = x""yes; then
9778 cat >>confdefs.h <<_ACEOF
9779#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9780_ACEOF
9781
9782else
9783 $bailout
9784fi
9785
9786done
9787
9788 check_lib_no_libs ccs ccs_connect
9789 if test $NOTFOUND = 0; then
9790 { $as_echo "$as_me:$LINENO: result: no pkg for libccs, using -lccs" >&5
9791$as_echo "no pkg for libccs, using -lccs" >&6; }
9792 CCS_LIBS="-lccs"
9793 HAVE_CCS=yes
9794 fi
9795elif test $pkg_failed = untried; then
9796 NOTFOUND=0
9797
9798for ac_header in ccs.h
9799do
9800as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9801if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9802 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9803$as_echo_n "checking for $ac_header... " >&6; }
9804if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9805 $as_echo_n "(cached) " >&6
9806fi
9807ac_res=`eval 'as_val=${'$as_ac_Header'}
9808 $as_echo "$as_val"'`
9809 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9810$as_echo "$ac_res" >&6; }
9811else
9812 # Is the header compilable?
9813{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9814$as_echo_n "checking $ac_header usability... " >&6; }
9815cat >conftest.$ac_ext <<_ACEOF
9816/* confdefs.h. */
9817_ACEOF
9818cat confdefs.h >>conftest.$ac_ext
9819cat >>conftest.$ac_ext <<_ACEOF
9820/* end confdefs.h. */
9821$ac_includes_default
9822#include <$ac_header>
9823_ACEOF
9824rm -f conftest.$ac_objext
9825if { (ac_try="$ac_compile"
9826case "(($ac_try" in
9827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9828 *) ac_try_echo=$ac_try;;
9829esac
9830eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9831$as_echo "$ac_try_echo") >&5
9832 (eval "$ac_compile") 2>conftest.er1
9833 ac_status=$?
9834 grep -v '^ *+' conftest.er1 >conftest.err
9835 rm -f conftest.er1
9836 cat conftest.err >&5
9837 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9838 (exit $ac_status); } && {
9839 test -z "$ac_c_werror_flag" ||
9840 test ! -s conftest.err
9841 } && test -s conftest.$ac_objext; then
9842 ac_header_compiler=yes
9843else
9844 $as_echo "$as_me: failed program was:" >&5
9845sed 's/^/| /' conftest.$ac_ext >&5
9846
9847 ac_header_compiler=no
9848fi
9849
9850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9851{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9852$as_echo "$ac_header_compiler" >&6; }
9853
9854# Is the header present?
9855{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9856$as_echo_n "checking $ac_header presence... " >&6; }
9857cat >conftest.$ac_ext <<_ACEOF
9858/* confdefs.h. */
9859_ACEOF
9860cat confdefs.h >>conftest.$ac_ext
9861cat >>conftest.$ac_ext <<_ACEOF
9862/* end confdefs.h. */
9863#include <$ac_header>
9864_ACEOF
9865if { (ac_try="$ac_cpp conftest.$ac_ext"
9866case "(($ac_try" in
9867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9868 *) ac_try_echo=$ac_try;;
9869esac
9870eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9871$as_echo "$ac_try_echo") >&5
9872 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9873 ac_status=$?
9874 grep -v '^ *+' conftest.er1 >conftest.err
9875 rm -f conftest.er1
9876 cat conftest.err >&5
9877 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9878 (exit $ac_status); } >/dev/null && {
9879 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9880 test ! -s conftest.err
9881 }; then
9882 ac_header_preproc=yes
9883else
9884 $as_echo "$as_me: failed program was:" >&5
9885sed 's/^/| /' conftest.$ac_ext >&5
9886
9887 ac_header_preproc=no
9888fi
9889
9890rm -f conftest.err conftest.$ac_ext
9891{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9892$as_echo "$ac_header_preproc" >&6; }
9893
9894# So? What about this header?
9895case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9896 yes:no: )
9897 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9898$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9899 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9900$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9901 ac_header_preproc=yes
9902 ;;
9903 no:yes:* )
9904 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9905$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9906 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9907$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9908 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9909$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9910 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9911$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9912 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9913$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9914 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9915$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9916
9917 ;;
9918esac
9919{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9920$as_echo_n "checking for $ac_header... " >&6; }
9921if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9922 $as_echo_n "(cached) " >&6
9923else
9924 eval "$as_ac_Header=\$ac_header_preproc"
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; }
9930
9931fi
9932as_val=`eval 'as_val=${'$as_ac_Header'}
9933 $as_echo "$as_val"'`
9934 if test "x$as_val" = x""yes; then
9935 cat >>confdefs.h <<_ACEOF
9936#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9937_ACEOF
9938
9939else
9940 $bailout
9941fi
9942
9943done
9944
9945 check_lib_no_libs ccs ccs_connect
9946 if test $NOTFOUND = 0; then
9947 { $as_echo "$as_me:$LINENO: result: no pkg for libccs, using -lccs" >&5
9948$as_echo "no pkg for libccs, using -lccs" >&6; }
9949 CCS_LIBS="-lccs"
9950 HAVE_CCS=yes
9951 fi
9952else
9953 CCS_CFLAGS=$pkg_cv_CCS_CFLAGS
9954 CCS_LIBS=$pkg_cv_CCS_LIBS
9955 { $as_echo "$as_me:$LINENO: result: yes" >&5
9956$as_echo "yes" >&6; }
9957 HAVE_CCS=yes
9958fi
9959
9960pkg_failed=no
9961{ $as_echo "$as_me:$LINENO: checking for GULM" >&5
9962$as_echo_n "checking for GULM... " >&6; }
9963
9964if test -n "$GULM_CFLAGS"; then
9965 pkg_cv_GULM_CFLAGS="$GULM_CFLAGS"
9966 elif test -n "$PKG_CONFIG"; then
9967 if test -n "$PKG_CONFIG" && \
9968 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgulm\"") >&5
9969 ($PKG_CONFIG --exists --print-errors "libgulm") 2>&5
9970 ac_status=$?
9971 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9972 (exit $ac_status); }; then
9973 pkg_cv_GULM_CFLAGS=`$PKG_CONFIG --cflags "libgulm" 2>/dev/null`
9974else
9975 pkg_failed=yes
9976fi
9977 else
9978 pkg_failed=untried
9979fi
9980if test -n "$GULM_LIBS"; then
9981 pkg_cv_GULM_LIBS="$GULM_LIBS"
9982 elif test -n "$PKG_CONFIG"; then
9983 if test -n "$PKG_CONFIG" && \
9984 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgulm\"") >&5
9985 ($PKG_CONFIG --exists --print-errors "libgulm") 2>&5
9986 ac_status=$?
9987 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9988 (exit $ac_status); }; then
9989 pkg_cv_GULM_LIBS=`$PKG_CONFIG --libs "libgulm" 2>/dev/null`
9990else
9991 pkg_failed=yes
9992fi
9993 else
9994 pkg_failed=untried
9995fi
9996
9997
9998
9999if test $pkg_failed = yes; then
10000
10001if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10002 _pkg_short_errors_supported=yes
10003else
10004 _pkg_short_errors_supported=no
10005fi
10006 if test $_pkg_short_errors_supported = yes; then
10007 GULM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgulm" 2>&1`
10008 else
10009 GULM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgulm" 2>&1`
10010 fi
10011 # Put the nasty error message in config.log where it belongs
10012 echo "$GULM_PKG_ERRORS" >&5
10013
10014 { $as_echo "$as_me:$LINENO: result: no" >&5
10015$as_echo "no" >&6; }
10016 NOTFOUND=0
10017
10018for ac_header in libgulm.h
10019do
10020as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10021if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10022 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10023$as_echo_n "checking for $ac_header... " >&6; }
10024if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10025 $as_echo_n "(cached) " >&6
10026fi
10027ac_res=`eval 'as_val=${'$as_ac_Header'}
10028 $as_echo "$as_val"'`
10029 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10030$as_echo "$ac_res" >&6; }
10031else
10032 # Is the header compilable?
10033{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10034$as_echo_n "checking $ac_header usability... " >&6; }
10035cat >conftest.$ac_ext <<_ACEOF
10036/* confdefs.h. */
10037_ACEOF
10038cat confdefs.h >>conftest.$ac_ext
10039cat >>conftest.$ac_ext <<_ACEOF
10040/* end confdefs.h. */
10041$ac_includes_default
10042#include <$ac_header>
10043_ACEOF
10044rm -f conftest.$ac_objext
10045if { (ac_try="$ac_compile"
10046case "(($ac_try" in
10047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10048 *) ac_try_echo=$ac_try;;
10049esac
10050eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10051$as_echo "$ac_try_echo") >&5
10052 (eval "$ac_compile") 2>conftest.er1
10053 ac_status=$?
10054 grep -v '^ *+' conftest.er1 >conftest.err
10055 rm -f conftest.er1
10056 cat conftest.err >&5
10057 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10058 (exit $ac_status); } && {
10059 test -z "$ac_c_werror_flag" ||
10060 test ! -s conftest.err
10061 } && test -s conftest.$ac_objext; then
10062 ac_header_compiler=yes
10063else
10064 $as_echo "$as_me: failed program was:" >&5
10065sed 's/^/| /' conftest.$ac_ext >&5
10066
10067 ac_header_compiler=no
10068fi
10069
10070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10071{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10072$as_echo "$ac_header_compiler" >&6; }
10073
10074# Is the header present?
10075{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10076$as_echo_n "checking $ac_header presence... " >&6; }
10077cat >conftest.$ac_ext <<_ACEOF
10078/* confdefs.h. */
10079_ACEOF
10080cat confdefs.h >>conftest.$ac_ext
10081cat >>conftest.$ac_ext <<_ACEOF
10082/* end confdefs.h. */
10083#include <$ac_header>
10084_ACEOF
10085if { (ac_try="$ac_cpp conftest.$ac_ext"
10086case "(($ac_try" in
10087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10088 *) ac_try_echo=$ac_try;;
10089esac
10090eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10091$as_echo "$ac_try_echo") >&5
10092 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10093 ac_status=$?
10094 grep -v '^ *+' conftest.er1 >conftest.err
10095 rm -f conftest.er1
10096 cat conftest.err >&5
10097 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10098 (exit $ac_status); } >/dev/null && {
10099 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10100 test ! -s conftest.err
10101 }; then
10102 ac_header_preproc=yes
10103else
10104 $as_echo "$as_me: failed program was:" >&5
10105sed 's/^/| /' conftest.$ac_ext >&5
10106
10107 ac_header_preproc=no
10108fi
10109
10110rm -f conftest.err conftest.$ac_ext
10111{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10112$as_echo "$ac_header_preproc" >&6; }
10113
10114# So? What about this header?
10115case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10116 yes:no: )
10117 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10118$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10119 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10120$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10121 ac_header_preproc=yes
10122 ;;
10123 no:yes:* )
10124 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10125$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10126 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10127$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10128 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10129$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10130 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10131$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10132 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10133$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10134 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10135$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10136
10137 ;;
10138esac
10139{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10140$as_echo_n "checking for $ac_header... " >&6; }
10141if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10142 $as_echo_n "(cached) " >&6
10143else
10144 eval "$as_ac_Header=\$ac_header_preproc"
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; }
10150
10151fi
10152as_val=`eval 'as_val=${'$as_ac_Header'}
10153 $as_echo "$as_val"'`
10154 if test "x$as_val" = x""yes; then
10155 cat >>confdefs.h <<_ACEOF
10156#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10157_ACEOF
10158
10159else
10160 $bailout
10161fi
10162
10163done
10164
10165 check_lib_no_libs gulm lg_core_login
10166 if test $NOTFOUND = 0; then
10167 { $as_echo "$as_me:$LINENO: result: no pkg for libgulm, using -lgulm" >&5
10168$as_echo "no pkg for libgulm, using -lgulm" >&6; }
10169 GULM_LIBS="-lgulm"
10170 HAVE_GULM=yes
10171 fi
10172elif test $pkg_failed = untried; then
10173 NOTFOUND=0
10174
10175for ac_header in libgulm.h
10176do
10177as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10178if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10179 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10180$as_echo_n "checking for $ac_header... " >&6; }
10181if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10182 $as_echo_n "(cached) " >&6
10183fi
10184ac_res=`eval 'as_val=${'$as_ac_Header'}
10185 $as_echo "$as_val"'`
10186 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10187$as_echo "$ac_res" >&6; }
10188else
10189 # Is the header compilable?
10190{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10191$as_echo_n "checking $ac_header usability... " >&6; }
10192cat >conftest.$ac_ext <<_ACEOF
10193/* confdefs.h. */
10194_ACEOF
10195cat confdefs.h >>conftest.$ac_ext
10196cat >>conftest.$ac_ext <<_ACEOF
10197/* end confdefs.h. */
10198$ac_includes_default
10199#include <$ac_header>
10200_ACEOF
10201rm -f conftest.$ac_objext
10202if { (ac_try="$ac_compile"
10203case "(($ac_try" in
10204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10205 *) ac_try_echo=$ac_try;;
10206esac
10207eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10208$as_echo "$ac_try_echo") >&5
10209 (eval "$ac_compile") 2>conftest.er1
10210 ac_status=$?
10211 grep -v '^ *+' conftest.er1 >conftest.err
10212 rm -f conftest.er1
10213 cat conftest.err >&5
10214 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10215 (exit $ac_status); } && {
10216 test -z "$ac_c_werror_flag" ||
10217 test ! -s conftest.err
10218 } && test -s conftest.$ac_objext; then
10219 ac_header_compiler=yes
10220else
10221 $as_echo "$as_me: failed program was:" >&5
10222sed 's/^/| /' conftest.$ac_ext >&5
10223
10224 ac_header_compiler=no
10225fi
10226
10227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10228{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10229$as_echo "$ac_header_compiler" >&6; }
10230
10231# Is the header present?
10232{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10233$as_echo_n "checking $ac_header presence... " >&6; }
10234cat >conftest.$ac_ext <<_ACEOF
10235/* confdefs.h. */
10236_ACEOF
10237cat confdefs.h >>conftest.$ac_ext
10238cat >>conftest.$ac_ext <<_ACEOF
10239/* end confdefs.h. */
10240#include <$ac_header>
10241_ACEOF
10242if { (ac_try="$ac_cpp conftest.$ac_ext"
10243case "(($ac_try" in
10244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10245 *) ac_try_echo=$ac_try;;
10246esac
10247eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10248$as_echo "$ac_try_echo") >&5
10249 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10250 ac_status=$?
10251 grep -v '^ *+' conftest.er1 >conftest.err
10252 rm -f conftest.er1
10253 cat conftest.err >&5
10254 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10255 (exit $ac_status); } >/dev/null && {
10256 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10257 test ! -s conftest.err
10258 }; then
10259 ac_header_preproc=yes
10260else
10261 $as_echo "$as_me: failed program was:" >&5
10262sed 's/^/| /' conftest.$ac_ext >&5
10263
10264 ac_header_preproc=no
10265fi
10266
10267rm -f conftest.err conftest.$ac_ext
10268{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10269$as_echo "$ac_header_preproc" >&6; }
10270
10271# So? What about this header?
10272case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10273 yes:no: )
10274 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10275$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10276 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10277$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10278 ac_header_preproc=yes
10279 ;;
10280 no:yes:* )
10281 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10282$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10283 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10284$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10285 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10286$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10287 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10288$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10289 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10290$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10291 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10292$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10293
10294 ;;
10295esac
10296{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10297$as_echo_n "checking for $ac_header... " >&6; }
10298if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10299 $as_echo_n "(cached) " >&6
10300else
10301 eval "$as_ac_Header=\$ac_header_preproc"
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; }
10307
10308fi
10309as_val=`eval 'as_val=${'$as_ac_Header'}
10310 $as_echo "$as_val"'`
10311 if test "x$as_val" = x""yes; then
10312 cat >>confdefs.h <<_ACEOF
10313#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10314_ACEOF
10315
10316else
10317 $bailout
10318fi
10319
10320done
10321
10322 check_lib_no_libs gulm lg_core_login
10323 if test $NOTFOUND = 0; then
10324 { $as_echo "$as_me:$LINENO: result: no pkg for libgulm, using -lgulm" >&5
10325$as_echo "no pkg for libgulm, using -lgulm" >&6; }
10326 GULM_LIBS="-lgulm"
10327 HAVE_GULM=yes
10328 fi
10329else
10330 GULM_CFLAGS=$pkg_cv_GULM_CFLAGS
10331 GULM_LIBS=$pkg_cv_GULM_LIBS
10332 { $as_echo "$as_me:$LINENO: result: yes" >&5
10333$as_echo "yes" >&6; }
10334 HAVE_GULM=yes
10335fi
10336fi
10337
10338if test x$BUILDCMAN = xyes; then
10339
10340pkg_failed=no
10341{ $as_echo "$as_me:$LINENO: checking for CMAN" >&5
10342$as_echo_n "checking for CMAN... " >&6; }
10343
10344if test -n "$CMAN_CFLAGS"; then
10345 pkg_cv_CMAN_CFLAGS="$CMAN_CFLAGS"
10346 elif test -n "$PKG_CONFIG"; then
10347 if test -n "$PKG_CONFIG" && \
10348 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcman\"") >&5
10349 ($PKG_CONFIG --exists --print-errors "libcman") 2>&5
10350 ac_status=$?
10351 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10352 (exit $ac_status); }; then
10353 pkg_cv_CMAN_CFLAGS=`$PKG_CONFIG --cflags "libcman" 2>/dev/null`
10354else
10355 pkg_failed=yes
10356fi
10357 else
10358 pkg_failed=untried
10359fi
10360if test -n "$CMAN_LIBS"; then
10361 pkg_cv_CMAN_LIBS="$CMAN_LIBS"
10362 elif test -n "$PKG_CONFIG"; then
10363 if test -n "$PKG_CONFIG" && \
10364 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcman\"") >&5
10365 ($PKG_CONFIG --exists --print-errors "libcman") 2>&5
10366 ac_status=$?
10367 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10368 (exit $ac_status); }; then
10369 pkg_cv_CMAN_LIBS=`$PKG_CONFIG --libs "libcman" 2>/dev/null`
10370else
10371 pkg_failed=yes
10372fi
10373 else
10374 pkg_failed=untried
10375fi
10376
10377
10378
10379if test $pkg_failed = yes; then
10380
10381if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10382 _pkg_short_errors_supported=yes
10383else
10384 _pkg_short_errors_supported=no
10385fi
10386 if test $_pkg_short_errors_supported = yes; then
10387 CMAN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcman" 2>&1`
10388 else
10389 CMAN_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcman" 2>&1`
10390 fi
10391 # Put the nasty error message in config.log where it belongs
10392 echo "$CMAN_PKG_ERRORS" >&5
10393
10394 { $as_echo "$as_me:$LINENO: result: no" >&5
10395$as_echo "no" >&6; }
10396 NOTFOUND=0
10397
10398for ac_header in libcman.h
10399do
10400as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10401if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10402 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10403$as_echo_n "checking for $ac_header... " >&6; }
10404if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10405 $as_echo_n "(cached) " >&6
10406fi
10407ac_res=`eval 'as_val=${'$as_ac_Header'}
10408 $as_echo "$as_val"'`
10409 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10410$as_echo "$ac_res" >&6; }
10411else
10412 # Is the header compilable?
10413{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10414$as_echo_n "checking $ac_header usability... " >&6; }
10415cat >conftest.$ac_ext <<_ACEOF
10416/* confdefs.h. */
10417_ACEOF
10418cat confdefs.h >>conftest.$ac_ext
10419cat >>conftest.$ac_ext <<_ACEOF
10420/* end confdefs.h. */
10421$ac_includes_default
10422#include <$ac_header>
10423_ACEOF
10424rm -f conftest.$ac_objext
10425if { (ac_try="$ac_compile"
10426case "(($ac_try" in
10427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10428 *) ac_try_echo=$ac_try;;
10429esac
10430eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10431$as_echo "$ac_try_echo") >&5
10432 (eval "$ac_compile") 2>conftest.er1
10433 ac_status=$?
10434 grep -v '^ *+' conftest.er1 >conftest.err
10435 rm -f conftest.er1
10436 cat conftest.err >&5
10437 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10438 (exit $ac_status); } && {
10439 test -z "$ac_c_werror_flag" ||
10440 test ! -s conftest.err
10441 } && test -s conftest.$ac_objext; then
10442 ac_header_compiler=yes
10443else
10444 $as_echo "$as_me: failed program was:" >&5
10445sed 's/^/| /' conftest.$ac_ext >&5
10446
10447 ac_header_compiler=no
10448fi
10449
10450rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10451{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10452$as_echo "$ac_header_compiler" >&6; }
10453
10454# Is the header present?
10455{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10456$as_echo_n "checking $ac_header presence... " >&6; }
10457cat >conftest.$ac_ext <<_ACEOF
10458/* confdefs.h. */
10459_ACEOF
10460cat confdefs.h >>conftest.$ac_ext
10461cat >>conftest.$ac_ext <<_ACEOF
10462/* end confdefs.h. */
10463#include <$ac_header>
10464_ACEOF
10465if { (ac_try="$ac_cpp conftest.$ac_ext"
10466case "(($ac_try" in
10467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10468 *) ac_try_echo=$ac_try;;
10469esac
10470eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10471$as_echo "$ac_try_echo") >&5
10472 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10473 ac_status=$?
10474 grep -v '^ *+' conftest.er1 >conftest.err
10475 rm -f conftest.er1
10476 cat conftest.err >&5
10477 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10478 (exit $ac_status); } >/dev/null && {
10479 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10480 test ! -s conftest.err
10481 }; then
10482 ac_header_preproc=yes
10483else
10484 $as_echo "$as_me: failed program was:" >&5
10485sed 's/^/| /' conftest.$ac_ext >&5
10486
10487 ac_header_preproc=no
10488fi
10489
10490rm -f conftest.err conftest.$ac_ext
10491{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10492$as_echo "$ac_header_preproc" >&6; }
10493
10494# So? What about this header?
10495case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10496 yes:no: )
10497 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10498$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10499 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10500$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10501 ac_header_preproc=yes
10502 ;;
10503 no:yes:* )
10504 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10505$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10506 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10507$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10508 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10509$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10510 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10511$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10512 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10513$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10514 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10515$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10516
10517 ;;
10518esac
10519{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10520$as_echo_n "checking for $ac_header... " >&6; }
10521if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10522 $as_echo_n "(cached) " >&6
10523else
10524 eval "$as_ac_Header=\$ac_header_preproc"
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; }
10530
10531fi
10532as_val=`eval 'as_val=${'$as_ac_Header'}
10533 $as_echo "$as_val"'`
10534 if test "x$as_val" = x""yes; then
10535 cat >>confdefs.h <<_ACEOF
10536#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10537_ACEOF
10538
10539else
10540 $bailout
10541fi
10542
10543done
10544
10545 check_lib_no_libs cman cman_init
10546 if test $NOTFOUND = 0; then
10547 { $as_echo "$as_me:$LINENO: result: no pkg for libcman, using -lcman" >&5
10548$as_echo "no pkg for libcman, using -lcman" >&6; }
10549 CMAN_LIBS="-lcman"
10550 HAVE_CMAN=yes
10551 fi
10552elif test $pkg_failed = untried; then
10553 NOTFOUND=0
10554
10555for ac_header in libcman.h
10556do
10557as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10558if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10559 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10560$as_echo_n "checking for $ac_header... " >&6; }
10561if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10562 $as_echo_n "(cached) " >&6
10563fi
10564ac_res=`eval 'as_val=${'$as_ac_Header'}
10565 $as_echo "$as_val"'`
10566 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10567$as_echo "$ac_res" >&6; }
10568else
10569 # Is the header compilable?
10570{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10571$as_echo_n "checking $ac_header usability... " >&6; }
10572cat >conftest.$ac_ext <<_ACEOF
10573/* confdefs.h. */
10574_ACEOF
10575cat confdefs.h >>conftest.$ac_ext
10576cat >>conftest.$ac_ext <<_ACEOF
10577/* end confdefs.h. */
10578$ac_includes_default
10579#include <$ac_header>
10580_ACEOF
10581rm -f conftest.$ac_objext
10582if { (ac_try="$ac_compile"
10583case "(($ac_try" in
10584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10585 *) ac_try_echo=$ac_try;;
10586esac
10587eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10588$as_echo "$ac_try_echo") >&5
10589 (eval "$ac_compile") 2>conftest.er1
10590 ac_status=$?
10591 grep -v '^ *+' conftest.er1 >conftest.err
10592 rm -f conftest.er1
10593 cat conftest.err >&5
10594 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10595 (exit $ac_status); } && {
10596 test -z "$ac_c_werror_flag" ||
10597 test ! -s conftest.err
10598 } && test -s conftest.$ac_objext; then
10599 ac_header_compiler=yes
10600else
10601 $as_echo "$as_me: failed program was:" >&5
10602sed 's/^/| /' conftest.$ac_ext >&5
10603
10604 ac_header_compiler=no
10605fi
10606
10607rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10608{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10609$as_echo "$ac_header_compiler" >&6; }
10610
10611# Is the header present?
10612{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10613$as_echo_n "checking $ac_header presence... " >&6; }
10614cat >conftest.$ac_ext <<_ACEOF
10615/* confdefs.h. */
10616_ACEOF
10617cat confdefs.h >>conftest.$ac_ext
10618cat >>conftest.$ac_ext <<_ACEOF
10619/* end confdefs.h. */
10620#include <$ac_header>
10621_ACEOF
10622if { (ac_try="$ac_cpp conftest.$ac_ext"
10623case "(($ac_try" in
10624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10625 *) ac_try_echo=$ac_try;;
10626esac
10627eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10628$as_echo "$ac_try_echo") >&5
10629 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10630 ac_status=$?
10631 grep -v '^ *+' conftest.er1 >conftest.err
10632 rm -f conftest.er1
10633 cat conftest.err >&5
10634 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10635 (exit $ac_status); } >/dev/null && {
10636 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10637 test ! -s conftest.err
10638 }; then
10639 ac_header_preproc=yes
10640else
10641 $as_echo "$as_me: failed program was:" >&5
10642sed 's/^/| /' conftest.$ac_ext >&5
10643
10644 ac_header_preproc=no
10645fi
10646
10647rm -f conftest.err conftest.$ac_ext
10648{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10649$as_echo "$ac_header_preproc" >&6; }
10650
10651# So? What about this header?
10652case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10653 yes:no: )
10654 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10655$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10656 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10657$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10658 ac_header_preproc=yes
10659 ;;
10660 no:yes:* )
10661 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10662$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10663 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10664$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10665 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10666$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10667 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10668$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10669 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10670$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10671 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10672$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10673
10674 ;;
10675esac
10676{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10677$as_echo_n "checking for $ac_header... " >&6; }
10678if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10679 $as_echo_n "(cached) " >&6
10680else
10681 eval "$as_ac_Header=\$ac_header_preproc"
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; }
10687
10688fi
10689as_val=`eval 'as_val=${'$as_ac_Header'}
10690 $as_echo "$as_val"'`
10691 if test "x$as_val" = x""yes; then
10692 cat >>confdefs.h <<_ACEOF
10693#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10694_ACEOF
10695
10696else
10697 $bailout
10698fi
10699
10700done
10701
10702 check_lib_no_libs cman cman_init
10703 if test $NOTFOUND = 0; then
10704 { $as_echo "$as_me:$LINENO: result: no pkg for libcman, using -lcman" >&5
10705$as_echo "no pkg for libcman, using -lcman" >&6; }
10706 CMAN_LIBS="-lcman"
10707 HAVE_CMAN=yes
10708 fi
10709else
10710 CMAN_CFLAGS=$pkg_cv_CMAN_CFLAGS
10711 CMAN_LIBS=$pkg_cv_CMAN_LIBS
10712 { $as_echo "$as_me:$LINENO: result: yes" >&5
10713$as_echo "yes" >&6; }
10714 HAVE_CMAN=yes
10715fi
10716 CHECKCONFDB=yes
10717 CHECKDLM=yes
10718fi
10719
10720if test x$BUILDCOROSYNC = xyes || \
10721 test x$BUILDOPENAIS = xyes; then
10722
10723pkg_failed=no
10724{ $as_echo "$as_me:$LINENO: checking for COROSYNC" >&5
10725$as_echo_n "checking for COROSYNC... " >&6; }
10726
10727if test -n "$COROSYNC_CFLAGS"; then
10728 pkg_cv_COROSYNC_CFLAGS="$COROSYNC_CFLAGS"
10729 elif test -n "$PKG_CONFIG"; then
10730 if test -n "$PKG_CONFIG" && \
10731 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"corosync\"") >&5
10732 ($PKG_CONFIG --exists --print-errors "corosync") 2>&5
10733 ac_status=$?
10734 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10735 (exit $ac_status); }; then
10736 pkg_cv_COROSYNC_CFLAGS=`$PKG_CONFIG --cflags "corosync" 2>/dev/null`
10737else
10738 pkg_failed=yes
10739fi
10740 else
10741 pkg_failed=untried
10742fi
10743if test -n "$COROSYNC_LIBS"; then
10744 pkg_cv_COROSYNC_LIBS="$COROSYNC_LIBS"
10745 elif test -n "$PKG_CONFIG"; then
10746 if test -n "$PKG_CONFIG" && \
10747 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"corosync\"") >&5
10748 ($PKG_CONFIG --exists --print-errors "corosync") 2>&5
10749 ac_status=$?
10750 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10751 (exit $ac_status); }; then
10752 pkg_cv_COROSYNC_LIBS=`$PKG_CONFIG --libs "corosync" 2>/dev/null`
10753else
10754 pkg_failed=yes
10755fi
10756 else
10757 pkg_failed=untried
10758fi
10759
10760
10761
10762if test $pkg_failed = yes; then
10763
10764if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10765 _pkg_short_errors_supported=yes
10766else
10767 _pkg_short_errors_supported=no
10768fi
10769 if test $_pkg_short_errors_supported = yes; then
10770 COROSYNC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "corosync" 2>&1`
10771 else
10772 COROSYNC_PKG_ERRORS=`$PKG_CONFIG --print-errors "corosync" 2>&1`
10773 fi
10774 # Put the nasty error message in config.log where it belongs
10775 echo "$COROSYNC_PKG_ERRORS" >&5
10776
10777 { $as_echo "$as_me:$LINENO: result: no" >&5
10778$as_echo "no" >&6; }
10779 $bailout
10780elif test $pkg_failed = untried; then
10781 $bailout
10782else
10783 COROSYNC_CFLAGS=$pkg_cv_COROSYNC_CFLAGS
10784 COROSYNC_LIBS=$pkg_cv_COROSYNC_LIBS
10785 { $as_echo "$as_me:$LINENO: result: yes" >&5
10786$as_echo "yes" >&6; }
10787 HAVE_COROSYNC=yes
10788fi
10789 CHECKCONFDB=yes
10790fi
10791
10792if test x$BUILDCOROSYNC = xyes; then
10793
10794pkg_failed=no
10795{ $as_echo "$as_me:$LINENO: checking for QUORUM" >&5
10796$as_echo_n "checking for QUORUM... " >&6; }
10797
10798if test -n "$QUORUM_CFLAGS"; then
10799 pkg_cv_QUORUM_CFLAGS="$QUORUM_CFLAGS"
10800 elif test -n "$PKG_CONFIG"; then
10801 if test -n "$PKG_CONFIG" && \
10802 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libquorum\"") >&5
10803 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
10804 ac_status=$?
10805 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10806 (exit $ac_status); }; then
10807 pkg_cv_QUORUM_CFLAGS=`$PKG_CONFIG --cflags "libquorum" 2>/dev/null`
10808else
10809 pkg_failed=yes
10810fi
10811 else
10812 pkg_failed=untried
10813fi
10814if test -n "$QUORUM_LIBS"; then
10815 pkg_cv_QUORUM_LIBS="$QUORUM_LIBS"
10816 elif test -n "$PKG_CONFIG"; then
10817 if test -n "$PKG_CONFIG" && \
10818 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libquorum\"") >&5
10819 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
10820 ac_status=$?
10821 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10822 (exit $ac_status); }; then
10823 pkg_cv_QUORUM_LIBS=`$PKG_CONFIG --libs "libquorum" 2>/dev/null`
10824else
10825 pkg_failed=yes
10826fi
10827 else
10828 pkg_failed=untried
10829fi
10830
10831
10832
10833if test $pkg_failed = yes; then
10834
10835if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10836 _pkg_short_errors_supported=yes
10837else
10838 _pkg_short_errors_supported=no
10839fi
10840 if test $_pkg_short_errors_supported = yes; then
10841 QUORUM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libquorum" 2>&1`
10842 else
10843 QUORUM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libquorum" 2>&1`
10844 fi
10845 # Put the nasty error message in config.log where it belongs
10846 echo "$QUORUM_PKG_ERRORS" >&5
10847
10848 { $as_echo "$as_me:$LINENO: result: no" >&5
10849$as_echo "no" >&6; }
10850 $bailout
10851elif test $pkg_failed = untried; then
10852 $bailout
10853else
10854 QUORUM_CFLAGS=$pkg_cv_QUORUM_CFLAGS
10855 QUORUM_LIBS=$pkg_cv_QUORUM_LIBS
10856 { $as_echo "$as_me:$LINENO: result: yes" >&5
10857$as_echo "yes" >&6; }
10858 HAVE_QUORUM=yes
10859fi
10860 CHECKCPG=yes
10861 CHECKDLM=yes
10862fi
10863
10864if test x$BUILDOPENAIS = xyes; then
10865
10866pkg_failed=no
10867{ $as_echo "$as_me:$LINENO: checking for SALCK" >&5
10868$as_echo_n "checking for SALCK... " >&6; }
10869
10870if test -n "$SALCK_CFLAGS"; then
10871 pkg_cv_SALCK_CFLAGS="$SALCK_CFLAGS"
10872 elif test -n "$PKG_CONFIG"; then
10873 if test -n "$PKG_CONFIG" && \
10874 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaLck\"") >&5
10875 ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5
10876 ac_status=$?
10877 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10878 (exit $ac_status); }; then
10879 pkg_cv_SALCK_CFLAGS=`$PKG_CONFIG --cflags "libSaLck" 2>/dev/null`
10880else
10881 pkg_failed=yes
10882fi
10883 else
10884 pkg_failed=untried
10885fi
10886if test -n "$SALCK_LIBS"; then
10887 pkg_cv_SALCK_LIBS="$SALCK_LIBS"
10888 elif test -n "$PKG_CONFIG"; then
10889 if test -n "$PKG_CONFIG" && \
10890 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaLck\"") >&5
10891 ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5
10892 ac_status=$?
10893 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10894 (exit $ac_status); }; then
10895 pkg_cv_SALCK_LIBS=`$PKG_CONFIG --libs "libSaLck" 2>/dev/null`
10896else
10897 pkg_failed=yes
10898fi
10899 else
10900 pkg_failed=untried
10901fi
10902
10903
10904
10905if test $pkg_failed = yes; then
10906
10907if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10908 _pkg_short_errors_supported=yes
10909else
10910 _pkg_short_errors_supported=no
10911fi
10912 if test $_pkg_short_errors_supported = yes; then
10913 SALCK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaLck" 2>&1`
10914 else
10915 SALCK_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaLck" 2>&1`
10916 fi
10917 # Put the nasty error message in config.log where it belongs
10918 echo "$SALCK_PKG_ERRORS" >&5
10919
10920 { $as_echo "$as_me:$LINENO: result: no" >&5
10921$as_echo "no" >&6; }
10922 $bailout
10923elif test $pkg_failed = untried; then
10924 $bailout
10925else
10926 SALCK_CFLAGS=$pkg_cv_SALCK_CFLAGS
10927 SALCK_LIBS=$pkg_cv_SALCK_LIBS
10928 { $as_echo "$as_me:$LINENO: result: yes" >&5
10929$as_echo "yes" >&6; }
10930 HAVE_SALCK=yes
10931fi
10932 CHECKCPG=yes
10933fi
10934
10935
10936
10937if test x$CHECKCONFDB = xyes; then
10938
10939pkg_failed=no
10940{ $as_echo "$as_me:$LINENO: checking for CONFDB" >&5
10941$as_echo_n "checking for CONFDB... " >&6; }
10942
10943if test -n "$CONFDB_CFLAGS"; then
10944 pkg_cv_CONFDB_CFLAGS="$CONFDB_CFLAGS"
10945 elif test -n "$PKG_CONFIG"; then
10946 if test -n "$PKG_CONFIG" && \
10947 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libconfdb\"") >&5
10948 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
10949 ac_status=$?
10950 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10951 (exit $ac_status); }; then
10952 pkg_cv_CONFDB_CFLAGS=`$PKG_CONFIG --cflags "libconfdb" 2>/dev/null`
10953else
10954 pkg_failed=yes
10955fi
10956 else
10957 pkg_failed=untried
10958fi
10959if test -n "$CONFDB_LIBS"; then
10960 pkg_cv_CONFDB_LIBS="$CONFDB_LIBS"
10961 elif test -n "$PKG_CONFIG"; then
10962 if test -n "$PKG_CONFIG" && \
10963 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libconfdb\"") >&5
10964 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
10965 ac_status=$?
10966 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10967 (exit $ac_status); }; then
10968 pkg_cv_CONFDB_LIBS=`$PKG_CONFIG --libs "libconfdb" 2>/dev/null`
10969else
10970 pkg_failed=yes
10971fi
10972 else
10973 pkg_failed=untried
10974fi
10975
10976
10977
10978if test $pkg_failed = yes; then
10979
10980if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10981 _pkg_short_errors_supported=yes
10982else
10983 _pkg_short_errors_supported=no
10984fi
10985 if test $_pkg_short_errors_supported = yes; then
10986 CONFDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libconfdb" 2>&1`
10987 else
10988 CONFDB_PKG_ERRORS=`$PKG_CONFIG --print-errors "libconfdb" 2>&1`
10989 fi
10990 # Put the nasty error message in config.log where it belongs
10991 echo "$CONFDB_PKG_ERRORS" >&5
10992
10993 { $as_echo "$as_me:$LINENO: result: no" >&5
10994$as_echo "no" >&6; }
10995 HAVE_CONFDB=no
10996elif test $pkg_failed = untried; then
10997 HAVE_CONFDB=no
10998else
10999 CONFDB_CFLAGS=$pkg_cv_CONFDB_CFLAGS
11000 CONFDB_LIBS=$pkg_cv_CONFDB_LIBS
11001 { $as_echo "$as_me:$LINENO: result: yes" >&5
11002$as_echo "yes" >&6; }
11003 HAVE_CONFDB=yes
11004fi
11005
11006
11007for ac_header in corosync/confdb.h
11008do
11009as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11010if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11011 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11012$as_echo_n "checking for $ac_header... " >&6; }
11013if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11014 $as_echo_n "(cached) " >&6
11015fi
11016ac_res=`eval 'as_val=${'$as_ac_Header'}
11017 $as_echo "$as_val"'`
11018 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11019$as_echo "$ac_res" >&6; }
11020else
11021 # Is the header compilable?
11022{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11023$as_echo_n "checking $ac_header usability... " >&6; }
11024cat >conftest.$ac_ext <<_ACEOF
11025/* confdefs.h. */
11026_ACEOF
11027cat confdefs.h >>conftest.$ac_ext
11028cat >>conftest.$ac_ext <<_ACEOF
11029/* end confdefs.h. */
11030$ac_includes_default
11031#include <$ac_header>
11032_ACEOF
11033rm -f conftest.$ac_objext
11034if { (ac_try="$ac_compile"
11035case "(($ac_try" in
11036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11037 *) ac_try_echo=$ac_try;;
11038esac
11039eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11040$as_echo "$ac_try_echo") >&5
11041 (eval "$ac_compile") 2>conftest.er1
11042 ac_status=$?
11043 grep -v '^ *+' conftest.er1 >conftest.err
11044 rm -f conftest.er1
11045 cat conftest.err >&5
11046 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11047 (exit $ac_status); } && {
11048 test -z "$ac_c_werror_flag" ||
11049 test ! -s conftest.err
11050 } && test -s conftest.$ac_objext; then
11051 ac_header_compiler=yes
11052else
11053 $as_echo "$as_me: failed program was:" >&5
11054sed 's/^/| /' conftest.$ac_ext >&5
11055
11056 ac_header_compiler=no
11057fi
11058
11059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11060{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11061$as_echo "$ac_header_compiler" >&6; }
11062
11063# Is the header present?
11064{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11065$as_echo_n "checking $ac_header presence... " >&6; }
11066cat >conftest.$ac_ext <<_ACEOF
11067/* confdefs.h. */
11068_ACEOF
11069cat confdefs.h >>conftest.$ac_ext
11070cat >>conftest.$ac_ext <<_ACEOF
11071/* end confdefs.h. */
11072#include <$ac_header>
11073_ACEOF
11074if { (ac_try="$ac_cpp conftest.$ac_ext"
11075case "(($ac_try" in
11076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11077 *) ac_try_echo=$ac_try;;
11078esac
11079eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11080$as_echo "$ac_try_echo") >&5
11081 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11082 ac_status=$?
11083 grep -v '^ *+' conftest.er1 >conftest.err
11084 rm -f conftest.er1
11085 cat conftest.err >&5
11086 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11087 (exit $ac_status); } >/dev/null && {
11088 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11089 test ! -s conftest.err
11090 }; then
11091 ac_header_preproc=yes
11092else
11093 $as_echo "$as_me: failed program was:" >&5
11094sed 's/^/| /' conftest.$ac_ext >&5
11095
11096 ac_header_preproc=no
11097fi
11098
11099rm -f conftest.err conftest.$ac_ext
11100{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11101$as_echo "$ac_header_preproc" >&6; }
11102
11103# So? What about this header?
11104case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11105 yes:no: )
11106 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11107$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11108 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11109$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11110 ac_header_preproc=yes
11111 ;;
11112 no:yes:* )
11113 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11114$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11115 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11116$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11117 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11118$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11119 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11120$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11121 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11122$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11123 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11124$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11125
11126 ;;
11127esac
11128{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11129$as_echo_n "checking for $ac_header... " >&6; }
11130if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11131 $as_echo_n "(cached) " >&6
11132else
11133 eval "$as_ac_Header=\$ac_header_preproc"
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; }
11139
11140fi
11141as_val=`eval 'as_val=${'$as_ac_Header'}
11142 $as_echo "$as_val"'`
11143 if test "x$as_val" = x""yes; then
11144 cat >>confdefs.h <<_ACEOF
11145#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11146_ACEOF
11147 HAVE_CONFDB_H=yes
11148else
11149 HAVE_CONFDB_H=no
11150fi
11151
11152done
11153
11154
11155 if test x$HAVE_CONFDB != xyes && \
11156 test x$HAVE_CONFDB_H = xyes; then
11157 check_lib_no_libs confdb confdb_initialize
11158 { $as_echo "$as_me:$LINENO: result: no pkg for confdb, using -lconfdb" >&5
11159$as_echo "no pkg for confdb, using -lconfdb" >&6; }
11160 CONFDB_LIBS="-lconfdb"
11161 HAVE_CONFDB=yes
11162 fi
11163
11164 if test x$BUILDCOROSYNC = xyes && \
11165 test x$HAVE_CONFDB != xyes &&
11166 test x$CLVMD != xall; then
11167 { { $as_echo "$as_me:$LINENO: error: bailing out... confdb library is required" >&5
11168$as_echo "$as_me: error: bailing out... confdb library is required" >&2;}
11169 { (exit 1); exit 1; }; }
11170 fi
11171fi
11172
11173if test x$CHECKCPG = xyes; then
11174
11175pkg_failed=no
11176{ $as_echo "$as_me:$LINENO: checking for CPG" >&5
11177$as_echo_n "checking for CPG... " >&6; }
11178
11179if test -n "$CPG_CFLAGS"; then
11180 pkg_cv_CPG_CFLAGS="$CPG_CFLAGS"
11181 elif test -n "$PKG_CONFIG"; then
11182 if test -n "$PKG_CONFIG" && \
11183 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
11184 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
11185 ac_status=$?
11186 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11187 (exit $ac_status); }; then
11188 pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
11189else
11190 pkg_failed=yes
11191fi
11192 else
11193 pkg_failed=untried
11194fi
11195if test -n "$CPG_LIBS"; then
11196 pkg_cv_CPG_LIBS="$CPG_LIBS"
11197 elif test -n "$PKG_CONFIG"; then
11198 if test -n "$PKG_CONFIG" && \
11199 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
11200 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
11201 ac_status=$?
11202 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11203 (exit $ac_status); }; then
11204 pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
11205else
11206 pkg_failed=yes
11207fi
11208 else
11209 pkg_failed=untried
11210fi
11211
11212
11213
11214if test $pkg_failed = yes; then
11215
11216if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11217 _pkg_short_errors_supported=yes
11218else
11219 _pkg_short_errors_supported=no
11220fi
11221 if test $_pkg_short_errors_supported = yes; then
11222 CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
11223 else
11224 CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
11225 fi
11226 # Put the nasty error message in config.log where it belongs
11227 echo "$CPG_PKG_ERRORS" >&5
11228
11229 { $as_echo "$as_me:$LINENO: result: no" >&5
11230$as_echo "no" >&6; }
11231 $bailout
11232elif test $pkg_failed = untried; then
11233 $bailout
11234else
11235 CPG_CFLAGS=$pkg_cv_CPG_CFLAGS
11236 CPG_LIBS=$pkg_cv_CPG_LIBS
11237 { $as_echo "$as_me:$LINENO: result: yes" >&5
11238$as_echo "yes" >&6; }
11239 HAVE_CPG=yes
11240fi
11241fi
11242
11243if test x$CHECKDLM = xyes; then
11244
11245pkg_failed=no
11246{ $as_echo "$as_me:$LINENO: checking for DLM" >&5
11247$as_echo_n "checking for DLM... " >&6; }
11248
11249if test -n "$DLM_CFLAGS"; then
11250 pkg_cv_DLM_CFLAGS="$DLM_CFLAGS"
11251 elif test -n "$PKG_CONFIG"; then
11252 if test -n "$PKG_CONFIG" && \
11253 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdlm\"") >&5
11254 ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5
11255 ac_status=$?
11256 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11257 (exit $ac_status); }; then
11258 pkg_cv_DLM_CFLAGS=`$PKG_CONFIG --cflags "libdlm" 2>/dev/null`
11259else
11260 pkg_failed=yes
11261fi
11262 else
11263 pkg_failed=untried
11264fi
11265if test -n "$DLM_LIBS"; then
11266 pkg_cv_DLM_LIBS="$DLM_LIBS"
11267 elif test -n "$PKG_CONFIG"; then
11268 if test -n "$PKG_CONFIG" && \
11269 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdlm\"") >&5
11270 ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5
11271 ac_status=$?
11272 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11273 (exit $ac_status); }; then
11274 pkg_cv_DLM_LIBS=`$PKG_CONFIG --libs "libdlm" 2>/dev/null`
11275else
11276 pkg_failed=yes
11277fi
11278 else
11279 pkg_failed=untried
11280fi
11281
11282
11283
11284if test $pkg_failed = yes; then
11285
11286if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11287 _pkg_short_errors_supported=yes
11288else
11289 _pkg_short_errors_supported=no
11290fi
11291 if test $_pkg_short_errors_supported = yes; then
11292 DLM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdlm" 2>&1`
11293 else
11294 DLM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdlm" 2>&1`
11295 fi
11296 # Put the nasty error message in config.log where it belongs
11297 echo "$DLM_PKG_ERRORS" >&5
11298
11299 { $as_echo "$as_me:$LINENO: result: no" >&5
11300$as_echo "no" >&6; }
11301 NOTFOUND=0
11302
11303for ac_header in libdlm.h
11304do
11305as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11306if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11307 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11308$as_echo_n "checking for $ac_header... " >&6; }
11309if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11310 $as_echo_n "(cached) " >&6
11311fi
11312ac_res=`eval 'as_val=${'$as_ac_Header'}
11313 $as_echo "$as_val"'`
11314 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11315$as_echo "$ac_res" >&6; }
11316else
11317 # Is the header compilable?
11318{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11319$as_echo_n "checking $ac_header usability... " >&6; }
11320cat >conftest.$ac_ext <<_ACEOF
11321/* confdefs.h. */
11322_ACEOF
11323cat confdefs.h >>conftest.$ac_ext
11324cat >>conftest.$ac_ext <<_ACEOF
11325/* end confdefs.h. */
11326$ac_includes_default
11327#include <$ac_header>
11328_ACEOF
11329rm -f conftest.$ac_objext
11330if { (ac_try="$ac_compile"
11331case "(($ac_try" in
11332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11333 *) ac_try_echo=$ac_try;;
11334esac
11335eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11336$as_echo "$ac_try_echo") >&5
11337 (eval "$ac_compile") 2>conftest.er1
11338 ac_status=$?
11339 grep -v '^ *+' conftest.er1 >conftest.err
11340 rm -f conftest.er1
11341 cat conftest.err >&5
11342 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11343 (exit $ac_status); } && {
11344 test -z "$ac_c_werror_flag" ||
11345 test ! -s conftest.err
11346 } && test -s conftest.$ac_objext; then
11347 ac_header_compiler=yes
11348else
11349 $as_echo "$as_me: failed program was:" >&5
11350sed 's/^/| /' conftest.$ac_ext >&5
11351
11352 ac_header_compiler=no
11353fi
11354
11355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11356{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11357$as_echo "$ac_header_compiler" >&6; }
11358
11359# Is the header present?
11360{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11361$as_echo_n "checking $ac_header presence... " >&6; }
11362cat >conftest.$ac_ext <<_ACEOF
11363/* confdefs.h. */
11364_ACEOF
11365cat confdefs.h >>conftest.$ac_ext
11366cat >>conftest.$ac_ext <<_ACEOF
11367/* end confdefs.h. */
11368#include <$ac_header>
11369_ACEOF
11370if { (ac_try="$ac_cpp conftest.$ac_ext"
11371case "(($ac_try" in
11372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11373 *) ac_try_echo=$ac_try;;
11374esac
11375eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11376$as_echo "$ac_try_echo") >&5
11377 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11378 ac_status=$?
11379 grep -v '^ *+' conftest.er1 >conftest.err
11380 rm -f conftest.er1
11381 cat conftest.err >&5
11382 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11383 (exit $ac_status); } >/dev/null && {
11384 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11385 test ! -s conftest.err
11386 }; then
11387 ac_header_preproc=yes
11388else
11389 $as_echo "$as_me: failed program was:" >&5
11390sed 's/^/| /' conftest.$ac_ext >&5
11391
11392 ac_header_preproc=no
11393fi
11394
11395rm -f conftest.err conftest.$ac_ext
11396{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11397$as_echo "$ac_header_preproc" >&6; }
11398
11399# So? What about this header?
11400case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11401 yes:no: )
11402 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11403$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11404 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11405$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11406 ac_header_preproc=yes
11407 ;;
11408 no:yes:* )
11409 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11410$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11411 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11412$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11413 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11414$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11415 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11416$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11417 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11418$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11419 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11420$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11421
11422 ;;
11423esac
11424{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11425$as_echo_n "checking for $ac_header... " >&6; }
11426if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11427 $as_echo_n "(cached) " >&6
11428else
11429 eval "$as_ac_Header=\$ac_header_preproc"
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; }
11435
11436fi
11437as_val=`eval 'as_val=${'$as_ac_Header'}
11438 $as_echo "$as_val"'`
11439 if test "x$as_val" = x""yes; then
11440 cat >>confdefs.h <<_ACEOF
11441#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11442_ACEOF
11443
11444else
11445 $bailout
11446fi
11447
11448done
11449
11450 check_lib_no_libs dlm dlm_lock -lpthread
11451 if test $NOTFOUND = 0; then
11452 { $as_echo "$as_me:$LINENO: result: no pkg for libdlm, using -ldlm" >&5
11453$as_echo "no pkg for libdlm, using -ldlm" >&6; }
11454 DLM_LIBS="-ldlm -lpthread"
11455 HAVE_DLM=yes
11456 fi
11457elif test $pkg_failed = untried; then
11458 NOTFOUND=0
11459
11460for ac_header in libdlm.h
11461do
11462as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11463if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11464 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11465$as_echo_n "checking for $ac_header... " >&6; }
11466if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11467 $as_echo_n "(cached) " >&6
11468fi
11469ac_res=`eval 'as_val=${'$as_ac_Header'}
11470 $as_echo "$as_val"'`
11471 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11472$as_echo "$ac_res" >&6; }
11473else
11474 # Is the header compilable?
11475{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11476$as_echo_n "checking $ac_header usability... " >&6; }
11477cat >conftest.$ac_ext <<_ACEOF
11478/* confdefs.h. */
11479_ACEOF
11480cat confdefs.h >>conftest.$ac_ext
11481cat >>conftest.$ac_ext <<_ACEOF
11482/* end confdefs.h. */
11483$ac_includes_default
11484#include <$ac_header>
11485_ACEOF
11486rm -f conftest.$ac_objext
11487if { (ac_try="$ac_compile"
11488case "(($ac_try" in
11489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11490 *) ac_try_echo=$ac_try;;
11491esac
11492eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11493$as_echo "$ac_try_echo") >&5
11494 (eval "$ac_compile") 2>conftest.er1
11495 ac_status=$?
11496 grep -v '^ *+' conftest.er1 >conftest.err
11497 rm -f conftest.er1
11498 cat conftest.err >&5
11499 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11500 (exit $ac_status); } && {
11501 test -z "$ac_c_werror_flag" ||
11502 test ! -s conftest.err
11503 } && test -s conftest.$ac_objext; then
11504 ac_header_compiler=yes
11505else
11506 $as_echo "$as_me: failed program was:" >&5
11507sed 's/^/| /' conftest.$ac_ext >&5
11508
11509 ac_header_compiler=no
11510fi
11511
11512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11513{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11514$as_echo "$ac_header_compiler" >&6; }
11515
11516# Is the header present?
11517{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11518$as_echo_n "checking $ac_header presence... " >&6; }
11519cat >conftest.$ac_ext <<_ACEOF
11520/* confdefs.h. */
11521_ACEOF
11522cat confdefs.h >>conftest.$ac_ext
11523cat >>conftest.$ac_ext <<_ACEOF
11524/* end confdefs.h. */
11525#include <$ac_header>
11526_ACEOF
11527if { (ac_try="$ac_cpp conftest.$ac_ext"
11528case "(($ac_try" in
11529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11530 *) ac_try_echo=$ac_try;;
11531esac
11532eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11533$as_echo "$ac_try_echo") >&5
11534 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11535 ac_status=$?
11536 grep -v '^ *+' conftest.er1 >conftest.err
11537 rm -f conftest.er1
11538 cat conftest.err >&5
11539 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11540 (exit $ac_status); } >/dev/null && {
11541 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11542 test ! -s conftest.err
11543 }; then
11544 ac_header_preproc=yes
11545else
11546 $as_echo "$as_me: failed program was:" >&5
11547sed 's/^/| /' conftest.$ac_ext >&5
11548
11549 ac_header_preproc=no
11550fi
11551
11552rm -f conftest.err conftest.$ac_ext
11553{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11554$as_echo "$ac_header_preproc" >&6; }
11555
11556# So? What about this header?
11557case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11558 yes:no: )
11559 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11560$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11561 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11562$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11563 ac_header_preproc=yes
11564 ;;
11565 no:yes:* )
11566 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11567$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11568 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11569$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11570 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11571$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11572 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11573$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11574 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11575$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11576 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11577$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11578
11579 ;;
11580esac
11581{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11582$as_echo_n "checking for $ac_header... " >&6; }
11583if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11584 $as_echo_n "(cached) " >&6
11585else
11586 eval "$as_ac_Header=\$ac_header_preproc"
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; }
11592
11593fi
11594as_val=`eval 'as_val=${'$as_ac_Header'}
11595 $as_echo "$as_val"'`
11596 if test "x$as_val" = x""yes; then
11597 cat >>confdefs.h <<_ACEOF
11598#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11599_ACEOF
11600
11601else
11602 $bailout
11603fi
11604
11605done
11606
11607 check_lib_no_libs dlm dlm_lock -lpthread
11608 if test $NOTFOUND = 0; then
11609 { $as_echo "$as_me:$LINENO: result: no pkg for libdlm, using -ldlm" >&5
11610$as_echo "no pkg for libdlm, using -ldlm" >&6; }
11611 DLM_LIBS="-ldlm -lpthread"
11612 HAVE_DLM=yes
11613 fi
11614else
11615 DLM_CFLAGS=$pkg_cv_DLM_CFLAGS
11616 DLM_LIBS=$pkg_cv_DLM_LIBS
11617 { $as_echo "$as_me:$LINENO: result: yes" >&5
11618$as_echo "yes" >&6; }
11619 HAVE_DLM=yes
11620fi
11621fi
11622
11623if test x$CLVMD = xall; then
11624 if test x$HAVE_CCS = xyes && \
11625 test x$HAVE_GULM = xyes; then
11626 { $as_echo "$as_me:$LINENO: result: Enabling clvmd gulm backend" >&5
11627$as_echo "Enabling clvmd gulm backend" >&6; }
11628 NEWCLVMD="$NEWCLVMD,gulm"
11629 fi
11630 if test x$HAVE_CMAN = xyes && \
11631 test x$HAVE_DLM = xyes; then
11632 { $as_echo "$as_me:$LINENO: result: Enabling clvmd cman backend" >&5
11633$as_echo "Enabling clvmd cman backend" >&6; }
11634 NEWCLVMD="$NEWCLVMD,cman"
11635 fi
11636 if test x$HAVE_COROSYNC = xyes && \
11637 test x$HAVE_QUORUM = xyes && \
11638 test x$HAVE_CPG = xyes && \
11639 test x$HAVE_DLM = xyes && \
11640 test x$HAVE_CONFDB = xyes; then
11641 { $as_echo "$as_me:$LINENO: result: Enabling clvmd corosync backend" >&5
11642$as_echo "Enabling clvmd corosync backend" >&6; }
11643 NEWCLVMD="$NEWCLVMD,corosync"
11644 fi
11645 if test x$HAVE_COROSYNC = xyes && \
11646 test x$HAVE_CPG = xyes && \
11647 test x$HAVE_SALCK = xyes; then
11648 { $as_echo "$as_me:$LINENO: result: Enabling clvmd openais backend" >&5
11649$as_echo "Enabling clvmd openais backend" >&6; }
11650 NEWCLVMD="$NEWCLVMD,openais"
11651 fi
11652 CLVMD="$NEWCLVMD"
11653fi
11654
11655################################################################################
11656{ $as_echo "$as_me:$LINENO: checking whether to build cluster log daemon" >&5
11657$as_echo_n "checking whether to build cluster log daemon... " >&6; }
11658# Check whether --enable-clogd was given.
11659if test "${enable_clogd+set}" = set; then
11660 enableval=$enable_clogd; CLOGD=$enableval
11661fi
11662
11663{ $as_echo "$as_me:$LINENO: result: $CLOGD" >&5
11664$as_echo "$CLOGD" >&6; }
11665
11666if [ "x$CLOGD" = xall -o `expr x"$CLOGD" : '.*corosync.*'` != 0 ]; then
11667#
11668# FIXME: ALSO NEED TO CHECK FOR CHECKPOINT MODULE
11669#
11670
11671pkg_failed=no
11672{ $as_echo "$as_me:$LINENO: checking for CPG" >&5
11673$as_echo_n "checking for CPG... " >&6; }
11674
11675if test -n "$CPG_CFLAGS"; then
11676 pkg_cv_CPG_CFLAGS="$CPG_CFLAGS"
11677 elif test -n "$PKG_CONFIG"; then
11678 if test -n "$PKG_CONFIG" && \
11679 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
11680 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
11681 ac_status=$?
11682 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11683 (exit $ac_status); }; then
11684 pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
11685else
11686 pkg_failed=yes
11687fi
11688 else
11689 pkg_failed=untried
11690fi
11691if test -n "$CPG_LIBS"; then
11692 pkg_cv_CPG_LIBS="$CPG_LIBS"
11693 elif test -n "$PKG_CONFIG"; then
11694 if test -n "$PKG_CONFIG" && \
11695 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
11696 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
11697 ac_status=$?
11698 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11699 (exit $ac_status); }; then
11700 pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
11701else
11702 pkg_failed=yes
11703fi
11704 else
11705 pkg_failed=untried
11706fi
11707
11708
11709
11710if test $pkg_failed = yes; then
11711
11712if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11713 _pkg_short_errors_supported=yes
11714else
11715 _pkg_short_errors_supported=no
11716fi
11717 if test $_pkg_short_errors_supported = yes; then
11718 CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
11719 else
11720 CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
11721 fi
11722 # Put the nasty error message in config.log where it belongs
11723 echo "$CPG_PKG_ERRORS" >&5
11724
11725 { $as_echo "$as_me:$LINENO: result: no" >&5
11726$as_echo "no" >&6; }
11727 { $as_echo "$as_me:$LINENO: result: no pkg for libcpg library, using -lcpg" >&5
11728$as_echo "no pkg for libcpg library, using -lcpg" >&6; };
11729 CPG_LIBS="-lcpg"
11730elif test $pkg_failed = untried; then
11731 { $as_echo "$as_me:$LINENO: result: no pkg for libcpg library, using -lcpg" >&5
11732$as_echo "no pkg for libcpg library, using -lcpg" >&6; };
11733 CPG_LIBS="-lcpg"
11734else
11735 CPG_CFLAGS=$pkg_cv_CPG_CFLAGS
11736 CPG_LIBS=$pkg_cv_CPG_LIBS
11737 { $as_echo "$as_me:$LINENO: result: yes" >&5
11738$as_echo "yes" >&6; }
11739 :
11740fi
11741fi
11742
11743################################################################################
11744{ $as_echo "$as_me:$LINENO: checking whether to enable debugging" >&5
11745$as_echo_n "checking whether to enable debugging... " >&6; }
11746# Check whether --enable-debug was given.
11747if test "${enable_debug+set}" = set; then
11748 enableval=$enable_debug; DEBUG=$enableval
11749else
11750 DEBUG=no
11751fi
11752
11753{ $as_echo "$as_me:$LINENO: result: $DEBUG" >&5
11754$as_echo "$DEBUG" >&6; }
11755
11756if test x$DEBUG = xyes; then
11757 COPTIMISE_FLAG=
11758else
11759 CSCOPE_CMD=
11760fi
11761
11762################################################################################
11763{ $as_echo "$as_me:$LINENO: checking for C optimisation flag" >&5
11764$as_echo_n "checking for C optimisation flag... " >&6; }
11765
11766# Check whether --with-optimisation was given.
11767if test "${with_optimisation+set}" = set; then
11768 withval=$with_optimisation; COPTIMISE_FLAG="$withval"
11769fi
11770
11771{ $as_echo "$as_me:$LINENO: result: $COPTIMISE_FLAG" >&5
11772$as_echo "$COPTIMISE_FLAG" >&6; }
11773
11774################################################################################
11775{ $as_echo "$as_me:$LINENO: checking whether to gather gcov profiling data" >&5
11776$as_echo_n "checking whether to gather gcov profiling data... " >&6; }
11777# Check whether --enable-profiling was given.
11778if test "${enable_profiling+set}" = set; then
5556819a 11779 enableval=$enable_profiling; PROFILING=$enableval
fddafd51 11780else
5556819a 11781 PROFILING=no
fddafd51
ZK
11782fi
11783
ec6a6fbe
AK
11784{ $as_echo "$as_me:$LINENO: result: $PROFILING" >&5
11785$as_echo "$PROFILING" >&6; }
5556819a
AK
11786
11787if test "x$PROFILING" = xyes; then
11788 COPTIMISE_FLAG="$COPTIMISE_FLAG -fprofile-arcs -ftest-coverage"
11789 # Extract the first word of "lcov", so it can be a program name with args.
fddafd51 11790set dummy lcov; ac_word=$2
ec6a6fbe
AK
11791{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11792$as_echo_n "checking for $ac_word... " >&6; }
fddafd51 11793if test "${ac_cv_path_LCOV+set}" = set; then
ec6a6fbe 11794 $as_echo_n "(cached) " >&6
fddafd51
ZK
11795else
11796 case $LCOV in
11797 [\\/]* | ?:[\\/]*)
11798 ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path.
11799 ;;
11800 *)
11801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11802for as_dir in $PATH
11803do
11804 IFS=$as_save_IFS
11805 test -z "$as_dir" && as_dir=.
11806 for ac_exec_ext in '' $ac_executable_extensions; do
11807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11808 ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 11809 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
fddafd51
ZK
11810 break 2
11811 fi
11812done
11813done
11814IFS=$as_save_IFS
11815
b145d876 11816 test -z "$ac_cv_path_LCOV" && ac_cv_path_LCOV="no"
fddafd51
ZK
11817 ;;
11818esac
11819fi
11820LCOV=$ac_cv_path_LCOV
11821if test -n "$LCOV"; then
ec6a6fbe
AK
11822 { $as_echo "$as_me:$LINENO: result: $LCOV" >&5
11823$as_echo "$LCOV" >&6; }
fddafd51 11824else
ec6a6fbe
AK
11825 { $as_echo "$as_me:$LINENO: result: no" >&5
11826$as_echo "no" >&6; }
fddafd51
ZK
11827fi
11828
11829
5556819a 11830 # Extract the first word of "genhtml", so it can be a program name with args.
fddafd51 11831set dummy genhtml; ac_word=$2
ec6a6fbe
AK
11832{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11833$as_echo_n "checking for $ac_word... " >&6; }
fddafd51 11834if test "${ac_cv_path_GENHTML+set}" = set; then
ec6a6fbe 11835 $as_echo_n "(cached) " >&6
fddafd51
ZK
11836else
11837 case $GENHTML in
11838 [\\/]* | ?:[\\/]*)
11839 ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path.
11840 ;;
11841 *)
11842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11843for as_dir in $PATH
11844do
11845 IFS=$as_save_IFS
11846 test -z "$as_dir" && as_dir=.
11847 for ac_exec_ext in '' $ac_executable_extensions; do
11848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11849 ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 11850 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
fddafd51
ZK
11851 break 2
11852 fi
11853done
11854done
11855IFS=$as_save_IFS
11856
b145d876 11857 test -z "$ac_cv_path_GENHTML" && ac_cv_path_GENHTML="no"
fddafd51
ZK
11858 ;;
11859esac
11860fi
11861GENHTML=$ac_cv_path_GENHTML
11862if test -n "$GENHTML"; then
ec6a6fbe
AK
11863 { $as_echo "$as_me:$LINENO: result: $GENHTML" >&5
11864$as_echo "$GENHTML" >&6; }
fddafd51 11865else
ec6a6fbe
AK
11866 { $as_echo "$as_me:$LINENO: result: no" >&5
11867$as_echo "no" >&6; }
fddafd51
ZK
11868fi
11869
11870
b145d876 11871 if test "$LCOV" = no -o "$GENHTML" = no ; then
ec6a6fbe
AK
11872 { { $as_echo "$as_me:$LINENO: error: lcov and genhtml are required for profiling" >&5
11873$as_echo "$as_me: error: lcov and genhtml are required for profiling" >&2;}
b145d876
ZK
11874 { (exit 1); exit 1; }; }
11875 fi
5556819a 11876fi
d0191583
JM
11877
11878################################################################################
ec6a6fbe
AK
11879{ $as_echo "$as_me:$LINENO: checking whether to use device-mapper" >&5
11880$as_echo_n "checking whether to use device-mapper... " >&6; }
d0191583
JM
11881# Check whether --enable-devmapper was given.
11882if test "${enable_devmapper+set}" = set; then
11883 enableval=$enable_devmapper; DEVMAPPER=$enableval
fc54be10
AK
11884fi
11885
ec6a6fbe
AK
11886{ $as_echo "$as_me:$LINENO: result: $DEVMAPPER" >&5
11887$as_echo "$DEVMAPPER" >&6; }
d0191583
JM
11888
11889if test x$DEVMAPPER = xyes; then
ad6254c5
AK
11890
11891cat >>confdefs.h <<\_ACEOF
d0191583 11892#define DEVMAPPER_SUPPORT 1
ad6254c5
AK
11893_ACEOF
11894
11895fi
11896
a5f46f6a
AK
11897################################################################################
11898{ $as_echo "$as_me:$LINENO: checking whether to enable synchronisation with udev processing" >&5
11899$as_echo_n "checking whether to enable synchronisation with udev processing... " >&6; }
11900# Check whether --enable-udev_sync was given.
11901if test "${enable_udev_sync+set}" = set; then
11902 enableval=$enable_udev_sync; UDEV_SYNC=$enableval
11903else
11904 UDEV_SYNC=no
11905fi
11906
11907{ $as_echo "$as_me:$LINENO: result: $UDEV_SYNC" >&5
11908$as_echo "$UDEV_SYNC" >&6; }
11909
11910if test x$UDEV_SYNC = xyes; then
11911
11912cat >>confdefs.h <<\_ACEOF
11913#define UDEV_SYNC_SUPPORT 1
11914_ACEOF
11915
11916fi
11917
11918{ $as_echo "$as_me:$LINENO: checking whether to enable installation of udev rules required for synchronisation" >&5
11919$as_echo_n "checking whether to enable installation of udev rules required for synchronisation... " >&6; }
11920# Check whether --enable-udev_rules was given.
11921if test "${enable_udev_rules+set}" = set; then
11922 enableval=$enable_udev_rules; UDEV_RULES=$enableval
11923else
11924 UDEV_RULES=$UDEV_SYNC
11925fi
11926
11927{ $as_echo "$as_me:$LINENO: result: $UDEV_RULES" >&5
11928$as_echo "$UDEV_RULES" >&6; }
11929
93bd259b
AK
11930################################################################################
11931# Check whether --enable-compat was given.
11932if test "${enable_compat+set}" = set; then
11933 enableval=$enable_compat; DM_COMPAT=$enableval
11934else
11935 DM_COMPAT=no
11936fi
11937
11938
11939################################################################################
11940# Check whether --enable-ioctl was given.
11941if test "${enable_ioctl+set}" = set; then
11942 enableval=$enable_ioctl; DM_IOCTLS=$enableval
11943fi
11944
11945
d0191583 11946################################################################################
ec6a6fbe
AK
11947{ $as_echo "$as_me:$LINENO: checking whether to enable O_DIRECT" >&5
11948$as_echo_n "checking whether to enable O_DIRECT... " >&6; }
d0191583
JM
11949# Check whether --enable-o_direct was given.
11950if test "${enable_o_direct+set}" = set; then
11951 enableval=$enable_o_direct; ODIRECT=$enableval
ad6254c5 11952fi
ad6254c5 11953
ec6a6fbe
AK
11954{ $as_echo "$as_me:$LINENO: result: $ODIRECT" >&5
11955$as_echo "$ODIRECT" >&6; }
ad6254c5 11956
d0191583 11957if test x$ODIRECT = xyes; then
ad6254c5 11958
d0191583
JM
11959cat >>confdefs.h <<\_ACEOF
11960#define O_DIRECT_SUPPORT 1
11961_ACEOF
ad6254c5 11962
d0191583 11963fi
ad6254c5 11964
572fefeb
AK
11965################################################################################
11966{ $as_echo "$as_me:$LINENO: checking whether to build liblvm2app.so application library" >&5
11967$as_echo_n "checking whether to build liblvm2app.so application library... " >&6; }
11968# Check whether --enable-applib was given.
11969if test "${enable_applib+set}" = set; then
11970 enableval=$enable_applib; APPLIB=$enableval
11971else
11972 APPLIB=no
11973fi
11974
11975{ $as_echo "$as_me:$LINENO: result: $APPLIB" >&5
11976$as_echo "$APPLIB" >&6; }
11977
11978test x$APPLIB = xyes \
11979 && LVM2APP_LIB=-llvm2app \
11980 || LVM2APP_LIB=
11981
d0191583 11982################################################################################
ec6a6fbe
AK
11983{ $as_echo "$as_me:$LINENO: checking whether to compile liblvm2cmd.so" >&5
11984$as_echo_n "checking whether to compile liblvm2cmd.so... " >&6; }
d0191583
JM
11985# Check whether --enable-cmdlib was given.
11986if test "${enable_cmdlib+set}" = set; then
11987 enableval=$enable_cmdlib; CMDLIB=$enableval
ad6254c5 11988else
d0191583
JM
11989 CMDLIB=no
11990fi
8a2fc586 11991
ec6a6fbe
AK
11992{ $as_echo "$as_me:$LINENO: result: $CMDLIB" >&5
11993$as_echo "$CMDLIB" >&6; }
8a2fc586 11994
2a9a80c9 11995test x$CMDLIB = xyes \
d179cc7a
JM
11996 && LVM2CMD_LIB=-llvm2cmd \
11997 || LVM2CMD_LIB=
11998
93bd259b
AK
11999################################################################################
12000# Check whether --enable-pkgconfig was given.
12001if test "${enable_pkgconfig+set}" = set; then
12002 enableval=$enable_pkgconfig; PKGCONFIG=$enableval
12003else
12004 PKGCONFIG=no
12005fi
12006
2a9a80c9 12007
d0191583 12008################################################################################
ec6a6fbe
AK
12009{ $as_echo "$as_me:$LINENO: checking whether to install fsadm" >&5
12010$as_echo_n "checking whether to install fsadm... " >&6; }
d0191583
JM
12011# Check whether --enable-fsadm was given.
12012if test "${enable_fsadm+set}" = set; then
12013 enableval=$enable_fsadm; FSADM=$enableval
12014fi
8a2fc586 12015
ec6a6fbe
AK
12016{ $as_echo "$as_me:$LINENO: result: $FSADM" >&5
12017$as_echo "$FSADM" >&6; }
8a2fc586 12018
d0191583 12019################################################################################
ec6a6fbe
AK
12020{ $as_echo "$as_me:$LINENO: checking whether to use dmeventd" >&5
12021$as_echo_n "checking whether to use dmeventd... " >&6; }
d0191583
JM
12022# Check whether --enable-dmeventd was given.
12023if test "${enable_dmeventd+set}" = set; then
12024 enableval=$enable_dmeventd; DMEVENTD=$enableval
12025fi
ad6254c5 12026
ec6a6fbe
AK
12027{ $as_echo "$as_me:$LINENO: result: $DMEVENTD" >&5
12028$as_echo "$DMEVENTD" >&6; }
ad6254c5 12029
93bd259b
AK
12030BUILD_DMEVENTD=$DMEVENTD
12031
2a9a80c9
PR
12032if test x$DMEVENTD = xyes; then
12033 if test x$MIRRORS != xinternal; then
ec6a6fbe 12034 { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd currently requires --with-mirrors=internal
2a9a80c9 12035 " >&5
ec6a6fbe 12036$as_echo "$as_me: error: --enable-dmeventd currently requires --with-mirrors=internal
2a9a80c9 12037 " >&2;}
d0191583 12038 { (exit 1); exit 1; }; }
2a9a80c9
PR
12039 fi
12040 if test x$CMDLIB = xno; then
ec6a6fbe 12041 { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd requires --enable-cmdlib to be used as well
2a9a80c9 12042 " >&5
ec6a6fbe 12043$as_echo "$as_me: error: --enable-dmeventd requires --enable-cmdlib to be used as well
2a9a80c9
PR
12044 " >&2;}
12045 { (exit 1); exit 1; }; }
12046 fi
ad6254c5 12047fi
7a197a62 12048
d0191583
JM
12049if test x$DMEVENTD = xyes; then
12050
12051cat >>confdefs.h <<\_ACEOF
12052#define DMEVENTD 1
ad6254c5
AK
12053_ACEOF
12054
ad6254c5 12055fi
93bd259b
AK
12056
12057################################################################################
12058
ec6a6fbe
AK
12059{ $as_echo "$as_me:$LINENO: checking for getline in -lc" >&5
12060$as_echo_n "checking for getline in -lc... " >&6; }
93bd259b 12061if test "${ac_cv_lib_c_getline+set}" = set; then
ec6a6fbe 12062 $as_echo_n "(cached) " >&6
93bd259b
AK
12063else
12064 ac_check_lib_save_LIBS=$LIBS
12065LIBS="-lc $LIBS"
12066cat >conftest.$ac_ext <<_ACEOF
12067/* confdefs.h. */
12068_ACEOF
12069cat confdefs.h >>conftest.$ac_ext
12070cat >>conftest.$ac_ext <<_ACEOF
12071/* end confdefs.h. */
12072
12073/* Override any GCC internal prototype to avoid an error.
12074 Use char because int might match the return type of a GCC
12075 builtin and then its argument prototype would still apply. */
12076#ifdef __cplusplus
12077extern "C"
12078#endif
12079char getline ();
12080int
12081main ()
12082{
12083return getline ();
12084 ;
12085 return 0;
12086}
12087_ACEOF
12088rm -f conftest.$ac_objext conftest$ac_exeext
12089if { (ac_try="$ac_link"
12090case "(($ac_try" in
12091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12092 *) ac_try_echo=$ac_try;;
12093esac
ec6a6fbe
AK
12094eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12095$as_echo "$ac_try_echo") >&5
93bd259b
AK
12096 (eval "$ac_link") 2>conftest.er1
12097 ac_status=$?
12098 grep -v '^ *+' conftest.er1 >conftest.err
12099 rm -f conftest.er1
12100 cat conftest.err >&5
ec6a6fbe 12101 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
93bd259b
AK
12102 (exit $ac_status); } && {
12103 test -z "$ac_c_werror_flag" ||
12104 test ! -s conftest.err
ec6a6fbe
AK
12105 } && test -s conftest$ac_exeext && {
12106 test "$cross_compiling" = yes ||
12107 $as_test_x conftest$ac_exeext
12108 }; then
93bd259b
AK
12109 ac_cv_lib_c_getline=yes
12110else
ec6a6fbe 12111 $as_echo "$as_me: failed program was:" >&5
93bd259b
AK
12112sed 's/^/| /' conftest.$ac_ext >&5
12113
12114 ac_cv_lib_c_getline=no
12115fi
12116
ec6a6fbe 12117rm -rf conftest.dSYM
93bd259b
AK
12118rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12119 conftest$ac_exeext conftest.$ac_ext
12120LIBS=$ac_check_lib_save_LIBS
12121fi
ec6a6fbe
AK
12122{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_getline" >&5
12123$as_echo "$ac_cv_lib_c_getline" >&6; }
12124if test "x$ac_cv_lib_c_getline" = x""yes; then
93bd259b
AK
12125
12126cat >>confdefs.h <<\_ACEOF
12127#define HAVE_GETLINE 1
12128_ACEOF
12129
12130fi
12131
12132
12133################################################################################
12134
ec6a6fbe
AK
12135{ $as_echo "$as_me:$LINENO: checking for canonicalize_file_name in -lc" >&5
12136$as_echo_n "checking for canonicalize_file_name in -lc... " >&6; }
93bd259b 12137if test "${ac_cv_lib_c_canonicalize_file_name+set}" = set; then
ec6a6fbe 12138 $as_echo_n "(cached) " >&6
93bd259b
AK
12139else
12140 ac_check_lib_save_LIBS=$LIBS
12141LIBS="-lc $LIBS"
12142cat >conftest.$ac_ext <<_ACEOF
12143/* confdefs.h. */
12144_ACEOF
12145cat confdefs.h >>conftest.$ac_ext
12146cat >>conftest.$ac_ext <<_ACEOF
12147/* end confdefs.h. */
12148
12149/* Override any GCC internal prototype to avoid an error.
12150 Use char because int might match the return type of a GCC
12151 builtin and then its argument prototype would still apply. */
12152#ifdef __cplusplus
12153extern "C"
12154#endif
12155char canonicalize_file_name ();
12156int
12157main ()
12158{
12159return canonicalize_file_name ();
12160 ;
12161 return 0;
12162}
12163_ACEOF
12164rm -f conftest.$ac_objext conftest$ac_exeext
12165if { (ac_try="$ac_link"
12166case "(($ac_try" in
12167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12168 *) ac_try_echo=$ac_try;;
12169esac
ec6a6fbe
AK
12170eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12171$as_echo "$ac_try_echo") >&5
93bd259b
AK
12172 (eval "$ac_link") 2>conftest.er1
12173 ac_status=$?
12174 grep -v '^ *+' conftest.er1 >conftest.err
12175 rm -f conftest.er1
12176 cat conftest.err >&5
ec6a6fbe 12177 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
93bd259b
AK
12178 (exit $ac_status); } && {
12179 test -z "$ac_c_werror_flag" ||
12180 test ! -s conftest.err
ec6a6fbe
AK
12181 } && test -s conftest$ac_exeext && {
12182 test "$cross_compiling" = yes ||
12183 $as_test_x conftest$ac_exeext
12184 }; then
93bd259b
AK
12185 ac_cv_lib_c_canonicalize_file_name=yes
12186else
ec6a6fbe 12187 $as_echo "$as_me: failed program was:" >&5
93bd259b
AK
12188sed 's/^/| /' conftest.$ac_ext >&5
12189
12190 ac_cv_lib_c_canonicalize_file_name=no
12191fi
12192
ec6a6fbe 12193rm -rf conftest.dSYM
93bd259b
AK
12194rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12195 conftest$ac_exeext conftest.$ac_ext
12196LIBS=$ac_check_lib_save_LIBS
12197fi
ec6a6fbe
AK
12198{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_canonicalize_file_name" >&5
12199$as_echo "$ac_cv_lib_c_canonicalize_file_name" >&6; }
12200if test "x$ac_cv_lib_c_canonicalize_file_name" = x""yes; then
93bd259b
AK
12201
12202cat >>confdefs.h <<\_ACEOF
12203#define HAVE_CANONICALIZE_FILE_NAME 1
12204_ACEOF
12205
12206fi
12207
12208
d0191583
JM
12209################################################################################
12210if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ];
12211 then exec_prefix="";
12212fi;
ad6254c5
AK
12213
12214################################################################################
06e459df 12215if test x$READLINE != xno; then
ec6a6fbe
AK
12216 { $as_echo "$as_me:$LINENO: checking for library containing tgetent" >&5
12217$as_echo_n "checking for library containing tgetent... " >&6; }
ad6254c5 12218if test "${ac_cv_search_tgetent+set}" = set; then
ec6a6fbe 12219 $as_echo_n "(cached) " >&6
ad6254c5
AK
12220else
12221 ac_func_search_save_LIBS=$LIBS
ad6254c5 12222cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
12223/* confdefs.h. */
12224_ACEOF
12225cat confdefs.h >>conftest.$ac_ext
12226cat >>conftest.$ac_ext <<_ACEOF
12227/* end confdefs.h. */
12228
7a197a62
AK
12229/* Override any GCC internal prototype to avoid an error.
12230 Use char because int might match the return type of a GCC
12231 builtin and then its argument prototype would still apply. */
ad6254c5
AK
12232#ifdef __cplusplus
12233extern "C"
12234#endif
ad6254c5
AK
12235char tgetent ();
12236int
12237main ()
12238{
7a197a62 12239return tgetent ();
ad6254c5
AK
12240 ;
12241 return 0;
12242}
12243_ACEOF
18dcfb69 12244for ac_lib in '' tinfo ncurses curses termcap termlib; do
7a197a62
AK
12245 if test -z "$ac_lib"; then
12246 ac_res="none required"
12247 else
12248 ac_res=-l$ac_lib
12249 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12250 fi
12251 rm -f conftest.$ac_objext conftest$ac_exeext
12252if { (ac_try="$ac_link"
12253case "(($ac_try" in
12254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12255 *) ac_try_echo=$ac_try;;
12256esac
ec6a6fbe
AK
12257eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12258$as_echo "$ac_try_echo") >&5
7a197a62 12259 (eval "$ac_link") 2>conftest.er1
ad6254c5 12260 ac_status=$?
8a2fc586
AK
12261 grep -v '^ *+' conftest.er1 >conftest.err
12262 rm -f conftest.er1
12263 cat conftest.err >&5
ec6a6fbe 12264 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
12265 (exit $ac_status); } && {
12266 test -z "$ac_c_werror_flag" ||
12267 test ! -s conftest.err
ec6a6fbe
AK
12268 } && test -s conftest$ac_exeext && {
12269 test "$cross_compiling" = yes ||
12270 $as_test_x conftest$ac_exeext
12271 }; then
7a197a62 12272 ac_cv_search_tgetent=$ac_res
ad6254c5 12273else
ec6a6fbe 12274 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
12275sed 's/^/| /' conftest.$ac_ext >&5
12276
ad6254c5 12277
7a197a62 12278fi
ad6254c5 12279
ec6a6fbe 12280rm -rf conftest.dSYM
25fbec5b 12281rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7a197a62
AK
12282 conftest$ac_exeext
12283 if test "${ac_cv_search_tgetent+set}" = set; then
12284 break
ad6254c5 12285fi
7a197a62
AK
12286done
12287if test "${ac_cv_search_tgetent+set}" = set; then
12288 :
12289else
12290 ac_cv_search_tgetent=no
ad6254c5 12291fi
7a197a62 12292rm conftest.$ac_ext
ad6254c5
AK
12293LIBS=$ac_func_search_save_LIBS
12294fi
ec6a6fbe
AK
12295{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
12296$as_echo "$ac_cv_search_tgetent" >&6; }
7a197a62
AK
12297ac_res=$ac_cv_search_tgetent
12298if test "$ac_res" != no; then
12299 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
06e459df 12300 tg_found=yes
ad6254c5 12301else
06e459df
JM
12302 tg_found=no
12303fi
12304
12305 test x$READLINE:$tg_found = xyes:no &&
ec6a6fbe 12306 { { $as_echo "$as_me:$LINENO: error: termcap could not be found which is required for the
ad6254c5
AK
12307--enable-readline option (which is enabled by default). Either disable readline
12308support with --disable-readline or download and install termcap from:
12309 ftp.gnu.org/gnu/termcap
12310Note: if you are using precompiled packages you will also need the development
12311 package as well (which may be called termcap-devel or something similar).
12312Note: (n)curses also seems to work as a substitute for termcap. This was
12313 not found either - but you could try installing that as well.
12314" >&5
ec6a6fbe 12315$as_echo "$as_me: error: termcap could not be found which is required for the
ad6254c5
AK
12316--enable-readline option (which is enabled by default). Either disable readline
12317support with --disable-readline or download and install termcap from:
12318 ftp.gnu.org/gnu/termcap
12319Note: if you are using precompiled packages you will also need the development
12320 package as well (which may be called termcap-devel or something similar).
12321Note: (n)curses also seems to work as a substitute for termcap. This was
12322 not found either - but you could try installing that as well.
12323" >&2;}
12324 { (exit 1); exit 1; }; }
ad6254c5
AK
12325fi
12326
12327################################################################################
ec6a6fbe
AK
12328{ $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12329$as_echo_n "checking for dlopen in -ldl... " >&6; }
ad6254c5 12330if test "${ac_cv_lib_dl_dlopen+set}" = set; then
ec6a6fbe 12331 $as_echo_n "(cached) " >&6
ad6254c5
AK
12332else
12333 ac_check_lib_save_LIBS=$LIBS
12334LIBS="-ldl $LIBS"
12335cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
12336/* confdefs.h. */
12337_ACEOF
12338cat confdefs.h >>conftest.$ac_ext
12339cat >>conftest.$ac_ext <<_ACEOF
12340/* end confdefs.h. */
12341
7a197a62
AK
12342/* Override any GCC internal prototype to avoid an error.
12343 Use char because int might match the return type of a GCC
12344 builtin and then its argument prototype would still apply. */
ad6254c5
AK
12345#ifdef __cplusplus
12346extern "C"
12347#endif
ad6254c5
AK
12348char dlopen ();
12349int
12350main ()
12351{
7a197a62 12352return dlopen ();
ad6254c5
AK
12353 ;
12354 return 0;
12355}
12356_ACEOF
12357rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
12358if { (ac_try="$ac_link"
12359case "(($ac_try" in
12360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12361 *) ac_try_echo=$ac_try;;
12362esac
ec6a6fbe
AK
12363eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12364$as_echo "$ac_try_echo") >&5
7a197a62 12365 (eval "$ac_link") 2>conftest.er1
ad6254c5 12366 ac_status=$?
8a2fc586
AK
12367 grep -v '^ *+' conftest.er1 >conftest.err
12368 rm -f conftest.er1
12369 cat conftest.err >&5
ec6a6fbe 12370 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
12371 (exit $ac_status); } && {
12372 test -z "$ac_c_werror_flag" ||
12373 test ! -s conftest.err
ec6a6fbe
AK
12374 } && test -s conftest$ac_exeext && {
12375 test "$cross_compiling" = yes ||
12376 $as_test_x conftest$ac_exeext
12377 }; then
ad6254c5
AK
12378 ac_cv_lib_dl_dlopen=yes
12379else
ec6a6fbe 12380 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
12381sed 's/^/| /' conftest.$ac_ext >&5
12382
7a197a62 12383 ac_cv_lib_dl_dlopen=no
ad6254c5 12384fi
7a197a62 12385
ec6a6fbe 12386rm -rf conftest.dSYM
25fbec5b 12387rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 12388 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
12389LIBS=$ac_check_lib_save_LIBS
12390fi
ec6a6fbe
AK
12391{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12392$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12393if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
ad6254c5
AK
12394 HAVE_LIBDL=yes
12395else
12396 HAVE_LIBDL=no
12397fi
12398
12399
7e9e9502 12400if [ "x$HAVE_LIBDL" = xyes ]; then
72b2cb61
AK
12401
12402cat >>confdefs.h <<\_ACEOF
12403#define HAVE_LIBDL 1
12404_ACEOF
12405
ad6254c5
AK
12406 LIBS="-ldl $LIBS"
12407else
12408 HAVE_LIBDL=no
12409fi
12410
12411################################################################################
12412if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \
12413 -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \
12414 \) -a "x$STATIC_LINK" = xyes ];
ec6a6fbe 12415 then { { $as_echo "$as_me:$LINENO: error: Features cannot be 'shared' when building statically
ad6254c5 12416" >&5
ec6a6fbe 12417$as_echo "$as_me: error: Features cannot be 'shared' when building statically
ad6254c5
AK
12418" >&2;}
12419 { (exit 1); exit 1; }; }
12420fi
12421
d0191583 12422################################################################################
ec6a6fbe
AK
12423{ $as_echo "$as_me:$LINENO: checking whether to enable selinux support" >&5
12424$as_echo_n "checking whether to enable selinux support... " >&6; }
d0191583
JM
12425# Check whether --enable-selinux was given.
12426if test "${enable_selinux+set}" = set; then
12427 enableval=$enable_selinux; SELINUX=$enableval
12428fi
12429
ec6a6fbe
AK
12430{ $as_echo "$as_me:$LINENO: result: $SELINUX" >&5
12431$as_echo "$SELINUX" >&6; }
d0191583 12432
ad6254c5
AK
12433################################################################################
12434if test x$SELINUX = xyes; then
ec6a6fbe
AK
12435 { $as_echo "$as_me:$LINENO: checking for sepol_check_context in -lsepol" >&5
12436$as_echo_n "checking for sepol_check_context in -lsepol... " >&6; }
8a2fc586 12437if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then
ec6a6fbe 12438 $as_echo_n "(cached) " >&6
8a2fc586
AK
12439else
12440 ac_check_lib_save_LIBS=$LIBS
12441LIBS="-lsepol $LIBS"
12442cat >conftest.$ac_ext <<_ACEOF
12443/* confdefs.h. */
12444_ACEOF
12445cat confdefs.h >>conftest.$ac_ext
12446cat >>conftest.$ac_ext <<_ACEOF
12447/* end confdefs.h. */
12448
7a197a62
AK
12449/* Override any GCC internal prototype to avoid an error.
12450 Use char because int might match the return type of a GCC
12451 builtin and then its argument prototype would still apply. */
8a2fc586
AK
12452#ifdef __cplusplus
12453extern "C"
12454#endif
8a2fc586
AK
12455char sepol_check_context ();
12456int
12457main ()
12458{
7a197a62 12459return sepol_check_context ();
8a2fc586
AK
12460 ;
12461 return 0;
12462}
12463_ACEOF
12464rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
12465if { (ac_try="$ac_link"
12466case "(($ac_try" in
12467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12468 *) ac_try_echo=$ac_try;;
12469esac
ec6a6fbe
AK
12470eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12471$as_echo "$ac_try_echo") >&5
7a197a62 12472 (eval "$ac_link") 2>conftest.er1
8a2fc586
AK
12473 ac_status=$?
12474 grep -v '^ *+' conftest.er1 >conftest.err
12475 rm -f conftest.er1
12476 cat conftest.err >&5
ec6a6fbe 12477 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
12478 (exit $ac_status); } && {
12479 test -z "$ac_c_werror_flag" ||
12480 test ! -s conftest.err
ec6a6fbe
AK
12481 } && test -s conftest$ac_exeext && {
12482 test "$cross_compiling" = yes ||
12483 $as_test_x conftest$ac_exeext
12484 }; then
8a2fc586
AK
12485 ac_cv_lib_sepol_sepol_check_context=yes
12486else
ec6a6fbe 12487 $as_echo "$as_me: failed program was:" >&5
8a2fc586
AK
12488sed 's/^/| /' conftest.$ac_ext >&5
12489
7a197a62 12490 ac_cv_lib_sepol_sepol_check_context=no
8a2fc586 12491fi
7a197a62 12492
ec6a6fbe 12493rm -rf conftest.dSYM
25fbec5b 12494rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586
AK
12495 conftest$ac_exeext conftest.$ac_ext
12496LIBS=$ac_check_lib_save_LIBS
12497fi
ec6a6fbe
AK
12498{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sepol_sepol_check_context" >&5
12499$as_echo "$ac_cv_lib_sepol_sepol_check_context" >&6; }
12500if test "x$ac_cv_lib_sepol_sepol_check_context" = x""yes; then
8a2fc586
AK
12501 HAVE_SEPOL=yes
12502else
12503 HAVE_SEPOL=no
12504fi
12505
8a2fc586
AK
12506
12507 if test x$HAVE_SEPOL = xyes; then
d0191583
JM
12508
12509cat >>confdefs.h <<\_ACEOF
12510#define HAVE_SEPOL 1
12511_ACEOF
12512
8a2fc586
AK
12513 LIBS="-lsepol $LIBS"
12514 fi
12515
ec6a6fbe
AK
12516 { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
12517$as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
ad6254c5 12518if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
ec6a6fbe 12519 $as_echo_n "(cached) " >&6
ad6254c5
AK
12520else
12521 ac_check_lib_save_LIBS=$LIBS
12522LIBS="-lselinux $LIBS"
12523cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
12524/* confdefs.h. */
12525_ACEOF
12526cat confdefs.h >>conftest.$ac_ext
12527cat >>conftest.$ac_ext <<_ACEOF
12528/* end confdefs.h. */
12529
7a197a62
AK
12530/* Override any GCC internal prototype to avoid an error.
12531 Use char because int might match the return type of a GCC
12532 builtin and then its argument prototype would still apply. */
ad6254c5
AK
12533#ifdef __cplusplus
12534extern "C"
12535#endif
ad6254c5
AK
12536char is_selinux_enabled ();
12537int
12538main ()
12539{
7a197a62 12540return is_selinux_enabled ();
ad6254c5
AK
12541 ;
12542 return 0;
12543}
12544_ACEOF
12545rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
12546if { (ac_try="$ac_link"
12547case "(($ac_try" in
12548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12549 *) ac_try_echo=$ac_try;;
12550esac
ec6a6fbe
AK
12551eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12552$as_echo "$ac_try_echo") >&5
7a197a62 12553 (eval "$ac_link") 2>conftest.er1
ad6254c5 12554 ac_status=$?
8a2fc586
AK
12555 grep -v '^ *+' conftest.er1 >conftest.err
12556 rm -f conftest.er1
12557 cat conftest.err >&5
ec6a6fbe 12558 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
12559 (exit $ac_status); } && {
12560 test -z "$ac_c_werror_flag" ||
12561 test ! -s conftest.err
ec6a6fbe
AK
12562 } && test -s conftest$ac_exeext && {
12563 test "$cross_compiling" = yes ||
12564 $as_test_x conftest$ac_exeext
12565 }; then
ad6254c5
AK
12566 ac_cv_lib_selinux_is_selinux_enabled=yes
12567else
ec6a6fbe 12568 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
12569sed 's/^/| /' conftest.$ac_ext >&5
12570
7a197a62 12571 ac_cv_lib_selinux_is_selinux_enabled=no
ad6254c5 12572fi
7a197a62 12573
ec6a6fbe 12574rm -rf conftest.dSYM
25fbec5b 12575rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 12576 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
12577LIBS=$ac_check_lib_save_LIBS
12578fi
ec6a6fbe
AK
12579{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
12580$as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
12581if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then
ad6254c5
AK
12582 HAVE_SELINUX=yes
12583else
12584 HAVE_SELINUX=no
12585fi
12586
ad6254c5
AK
12587
12588 if test x$HAVE_SELINUX = xyes; then
72b2cb61
AK
12589
12590cat >>confdefs.h <<\_ACEOF
12591#define HAVE_SELINUX 1
12592_ACEOF
12593
ad6254c5
AK
12594 LIBS="-lselinux $LIBS"
12595 else
ec6a6fbe
AK
12596 { $as_echo "$as_me:$LINENO: WARNING: Disabling selinux" >&5
12597$as_echo "$as_me: WARNING: Disabling selinux" >&2;}
66e941e8
JM
12598 fi
12599
d0191583 12600 # With --enable-static_link and selinux enabled, linking
66e941e8
JM
12601 # fails on at least Debian unstable due to unsatisfied references
12602 # to pthread_mutex_lock and _unlock. See if we need -lpthread.
12603 if test "$STATIC_LINK-$HAVE_SELINUX" = yes-yes; then
12604 lvm_saved_libs=$LIBS
12605 LIBS="$LIBS -static"
ec6a6fbe
AK
12606 { $as_echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12607$as_echo_n "checking for library containing pthread_mutex_lock... " >&6; }
66e941e8 12608if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
ec6a6fbe 12609 $as_echo_n "(cached) " >&6
66e941e8
JM
12610else
12611 ac_func_search_save_LIBS=$LIBS
12612cat >conftest.$ac_ext <<_ACEOF
12613/* confdefs.h. */
12614_ACEOF
12615cat confdefs.h >>conftest.$ac_ext
12616cat >>conftest.$ac_ext <<_ACEOF
12617/* end confdefs.h. */
12618
12619/* Override any GCC internal prototype to avoid an error.
12620 Use char because int might match the return type of a GCC
12621 builtin and then its argument prototype would still apply. */
12622#ifdef __cplusplus
12623extern "C"
12624#endif
12625char pthread_mutex_lock ();
12626int
12627main ()
12628{
12629return pthread_mutex_lock ();
12630 ;
12631 return 0;
12632}
12633_ACEOF
12634for ac_lib in '' pthread; do
12635 if test -z "$ac_lib"; then
12636 ac_res="none required"
12637 else
12638 ac_res=-l$ac_lib
12639 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12640 fi
12641 rm -f conftest.$ac_objext conftest$ac_exeext
12642if { (ac_try="$ac_link"
12643case "(($ac_try" in
12644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12645 *) ac_try_echo=$ac_try;;
12646esac
ec6a6fbe
AK
12647eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12648$as_echo "$ac_try_echo") >&5
66e941e8
JM
12649 (eval "$ac_link") 2>conftest.er1
12650 ac_status=$?
12651 grep -v '^ *+' conftest.er1 >conftest.err
12652 rm -f conftest.er1
12653 cat conftest.err >&5
ec6a6fbe 12654 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
12655 (exit $ac_status); } && {
12656 test -z "$ac_c_werror_flag" ||
12657 test ! -s conftest.err
ec6a6fbe
AK
12658 } && test -s conftest$ac_exeext && {
12659 test "$cross_compiling" = yes ||
12660 $as_test_x conftest$ac_exeext
12661 }; then
66e941e8
JM
12662 ac_cv_search_pthread_mutex_lock=$ac_res
12663else
ec6a6fbe 12664 $as_echo "$as_me: failed program was:" >&5
66e941e8
JM
12665sed 's/^/| /' conftest.$ac_ext >&5
12666
12667
12668fi
12669
ec6a6fbe 12670rm -rf conftest.dSYM
25fbec5b 12671rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
66e941e8
JM
12672 conftest$ac_exeext
12673 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12674 break
12675fi
12676done
12677if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12678 :
12679else
12680 ac_cv_search_pthread_mutex_lock=no
12681fi
12682rm conftest.$ac_ext
12683LIBS=$ac_func_search_save_LIBS
12684fi
ec6a6fbe
AK
12685{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12686$as_echo "$ac_cv_search_pthread_mutex_lock" >&6; }
66e941e8
JM
12687ac_res=$ac_cv_search_pthread_mutex_lock
12688if test "$ac_res" != no; then
12689 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12690 test "$ac_cv_search_pthread_mutex_lock" = "none required" ||
12691 LIB_PTHREAD=-lpthread
12692fi
12693
12694 LIBS=$lvm_saved_libs
ad6254c5
AK
12695 fi
12696fi
12697
8b1a3214
AK
12698################################################################################
12699if test x$REALTIME = xyes; then
ec6a6fbe
AK
12700 { $as_echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
12701$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
8b1a3214 12702if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
ec6a6fbe 12703 $as_echo_n "(cached) " >&6
8b1a3214
AK
12704else
12705 ac_check_lib_save_LIBS=$LIBS
12706LIBS="-lrt $LIBS"
12707cat >conftest.$ac_ext <<_ACEOF
12708/* confdefs.h. */
12709_ACEOF
12710cat confdefs.h >>conftest.$ac_ext
12711cat >>conftest.$ac_ext <<_ACEOF
12712/* end confdefs.h. */
12713
7a197a62
AK
12714/* Override any GCC internal prototype to avoid an error.
12715 Use char because int might match the return type of a GCC
12716 builtin and then its argument prototype would still apply. */
8b1a3214
AK
12717#ifdef __cplusplus
12718extern "C"
12719#endif
8b1a3214
AK
12720char clock_gettime ();
12721int
12722main ()
12723{
7a197a62 12724return clock_gettime ();
8b1a3214
AK
12725 ;
12726 return 0;
12727}
12728_ACEOF
12729rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
12730if { (ac_try="$ac_link"
12731case "(($ac_try" in
12732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12733 *) ac_try_echo=$ac_try;;
12734esac
ec6a6fbe
AK
12735eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12736$as_echo "$ac_try_echo") >&5
7a197a62 12737 (eval "$ac_link") 2>conftest.er1
8b1a3214
AK
12738 ac_status=$?
12739 grep -v '^ *+' conftest.er1 >conftest.err
12740 rm -f conftest.er1
12741 cat conftest.err >&5
ec6a6fbe 12742 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
12743 (exit $ac_status); } && {
12744 test -z "$ac_c_werror_flag" ||
12745 test ! -s conftest.err
ec6a6fbe
AK
12746 } && test -s conftest$ac_exeext && {
12747 test "$cross_compiling" = yes ||
12748 $as_test_x conftest$ac_exeext
12749 }; then
8b1a3214
AK
12750 ac_cv_lib_rt_clock_gettime=yes
12751else
ec6a6fbe 12752 $as_echo "$as_me: failed program was:" >&5
8b1a3214
AK
12753sed 's/^/| /' conftest.$ac_ext >&5
12754
7a197a62 12755 ac_cv_lib_rt_clock_gettime=no
8b1a3214 12756fi
7a197a62 12757
ec6a6fbe 12758rm -rf conftest.dSYM
25fbec5b 12759rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8b1a3214
AK
12760 conftest$ac_exeext conftest.$ac_ext
12761LIBS=$ac_check_lib_save_LIBS
12762fi
ec6a6fbe
AK
12763{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
12764$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
12765if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then
8b1a3214
AK
12766 HAVE_REALTIME=yes
12767else
12768 HAVE_REALTIME=no
12769fi
12770
8b1a3214
AK
12771
12772 if test x$HAVE_REALTIME = xyes; then
12773
12774cat >>confdefs.h <<\_ACEOF
12775#define HAVE_REALTIME 1
12776_ACEOF
12777
12778 LIBS="-lrt $LIBS"
12779 else
ec6a6fbe
AK
12780 { $as_echo "$as_me:$LINENO: WARNING: Disabling realtime clock" >&5
12781$as_echo "$as_me: WARNING: Disabling realtime clock" >&2;}
8b1a3214
AK
12782 fi
12783fi
12784
ad6254c5
AK
12785################################################################################
12786
12787for ac_header in getopt.h
12788do
ec6a6fbe 12789as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 12790if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
12791 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12792$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 12793if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 12794 $as_echo_n "(cached) " >&6
ad6254c5 12795fi
ec6a6fbe
AK
12796ac_res=`eval 'as_val=${'$as_ac_Header'}
12797 $as_echo "$as_val"'`
12798 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12799$as_echo "$ac_res" >&6; }
ad6254c5
AK
12800else
12801 # Is the header compilable?
ec6a6fbe
AK
12802{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12803$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 12804cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
12805/* confdefs.h. */
12806_ACEOF
12807cat confdefs.h >>conftest.$ac_ext
12808cat >>conftest.$ac_ext <<_ACEOF
12809/* end confdefs.h. */
12810$ac_includes_default
12811#include <$ac_header>
12812_ACEOF
12813rm -f conftest.$ac_objext
7a197a62
AK
12814if { (ac_try="$ac_compile"
12815case "(($ac_try" in
12816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12817 *) ac_try_echo=$ac_try;;
12818esac
ec6a6fbe
AK
12819eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12820$as_echo "$ac_try_echo") >&5
7a197a62 12821 (eval "$ac_compile") 2>conftest.er1
ad6254c5 12822 ac_status=$?
8a2fc586
AK
12823 grep -v '^ *+' conftest.er1 >conftest.err
12824 rm -f conftest.er1
12825 cat conftest.err >&5
ec6a6fbe 12826 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
12827 (exit $ac_status); } && {
12828 test -z "$ac_c_werror_flag" ||
12829 test ! -s conftest.err
12830 } && test -s conftest.$ac_objext; then
ad6254c5
AK
12831 ac_header_compiler=yes
12832else
ec6a6fbe 12833 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
12834sed 's/^/| /' conftest.$ac_ext >&5
12835
7a197a62 12836 ac_header_compiler=no
ad6254c5 12837fi
7a197a62
AK
12838
12839rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
12840{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12841$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
12842
12843# Is the header present?
ec6a6fbe
AK
12844{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12845$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 12846cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
12847/* confdefs.h. */
12848_ACEOF
12849cat confdefs.h >>conftest.$ac_ext
12850cat >>conftest.$ac_ext <<_ACEOF
12851/* end confdefs.h. */
12852#include <$ac_header>
12853_ACEOF
7a197a62
AK
12854if { (ac_try="$ac_cpp conftest.$ac_ext"
12855case "(($ac_try" in
12856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12857 *) ac_try_echo=$ac_try;;
12858esac
ec6a6fbe
AK
12859eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12860$as_echo "$ac_try_echo") >&5
7a197a62 12861 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
12862 ac_status=$?
12863 grep -v '^ *+' conftest.er1 >conftest.err
12864 rm -f conftest.er1
12865 cat conftest.err >&5
ec6a6fbe 12866 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
12867 (exit $ac_status); } >/dev/null && {
12868 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12869 test ! -s conftest.err
12870 }; then
ad6254c5
AK
12871 ac_header_preproc=yes
12872else
ec6a6fbe 12873 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
12874sed 's/^/| /' conftest.$ac_ext >&5
12875
12876 ac_header_preproc=no
12877fi
7a197a62 12878
ad6254c5 12879rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
12880{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12881$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
12882
12883# So? What about this header?
8a2fc586
AK
12884case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12885 yes:no: )
ec6a6fbe
AK
12886 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12887$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12888 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12889$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 12890 ac_header_preproc=yes
ad6254c5 12891 ;;
8a2fc586 12892 no:yes:* )
ec6a6fbe
AK
12893 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12894$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12895 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12896$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12897 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12898$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12899 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12900$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12901 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12902$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12903 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12904$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 12905
ad6254c5
AK
12906 ;;
12907esac
ec6a6fbe
AK
12908{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12909$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 12910if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 12911 $as_echo_n "(cached) " >&6
ad6254c5 12912else
8a2fc586 12913 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 12914fi
ec6a6fbe
AK
12915ac_res=`eval 'as_val=${'$as_ac_Header'}
12916 $as_echo "$as_val"'`
12917 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12918$as_echo "$ac_res" >&6; }
ad6254c5
AK
12919
12920fi
ec6a6fbe
AK
12921as_val=`eval 'as_val=${'$as_ac_Header'}
12922 $as_echo "$as_val"'`
12923 if test "x$as_val" = x""yes; then
ad6254c5 12924 cat >>confdefs.h <<_ACEOF
ec6a6fbe 12925#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 12926_ACEOF
72b2cb61
AK
12927
12928cat >>confdefs.h <<\_ACEOF
12929#define HAVE_GETOPTLONG 1
12930_ACEOF
12931
ad6254c5
AK
12932fi
12933
12934done
12935
12936
12937################################################################################
06e459df 12938if test x$READLINE != xno; then
bc1024f8
JM
12939 rl_found=yes
12940
ec6a6fbe
AK
12941{ $as_echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
12942$as_echo_n "checking for readline in -lreadline... " >&6; }
ad6254c5 12943if test "${ac_cv_lib_readline_readline+set}" = set; then
ec6a6fbe 12944 $as_echo_n "(cached) " >&6
ad6254c5
AK
12945else
12946 ac_check_lib_save_LIBS=$LIBS
12947LIBS="-lreadline $LIBS"
12948cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
12949/* confdefs.h. */
12950_ACEOF
12951cat confdefs.h >>conftest.$ac_ext
12952cat >>conftest.$ac_ext <<_ACEOF
12953/* end confdefs.h. */
12954
7a197a62
AK
12955/* Override any GCC internal prototype to avoid an error.
12956 Use char because int might match the return type of a GCC
12957 builtin and then its argument prototype would still apply. */
ad6254c5
AK
12958#ifdef __cplusplus
12959extern "C"
12960#endif
ad6254c5
AK
12961char readline ();
12962int
12963main ()
12964{
7a197a62 12965return readline ();
ad6254c5
AK
12966 ;
12967 return 0;
12968}
12969_ACEOF
12970rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
12971if { (ac_try="$ac_link"
12972case "(($ac_try" in
12973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12974 *) ac_try_echo=$ac_try;;
12975esac
ec6a6fbe
AK
12976eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12977$as_echo "$ac_try_echo") >&5
7a197a62 12978 (eval "$ac_link") 2>conftest.er1
ad6254c5 12979 ac_status=$?
8a2fc586
AK
12980 grep -v '^ *+' conftest.er1 >conftest.err
12981 rm -f conftest.er1
12982 cat conftest.err >&5
ec6a6fbe 12983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
12984 (exit $ac_status); } && {
12985 test -z "$ac_c_werror_flag" ||
12986 test ! -s conftest.err
ec6a6fbe
AK
12987 } && test -s conftest$ac_exeext && {
12988 test "$cross_compiling" = yes ||
12989 $as_test_x conftest$ac_exeext
12990 }; then
ad6254c5
AK
12991 ac_cv_lib_readline_readline=yes
12992else
ec6a6fbe 12993 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
12994sed 's/^/| /' conftest.$ac_ext >&5
12995
7a197a62 12996 ac_cv_lib_readline_readline=no
ad6254c5 12997fi
7a197a62 12998
ec6a6fbe 12999rm -rf conftest.dSYM
25fbec5b 13000rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 13001 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
13002LIBS=$ac_check_lib_save_LIBS
13003fi
ec6a6fbe
AK
13004{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
13005$as_echo "$ac_cv_lib_readline_readline" >&6; }
13006if test "x$ac_cv_lib_readline_readline" = x""yes; then
bc1024f8
JM
13007 cat >>confdefs.h <<_ACEOF
13008#define HAVE_LIBREADLINE 1
13009_ACEOF
13010
13011 LIBS="-lreadline $LIBS"
13012
ad6254c5 13013else
06e459df
JM
13014 rl_found=no
13015fi
13016
13017 test x$READLINE:$rl_found = xyes:no &&
ec6a6fbe 13018 { { $as_echo "$as_me:$LINENO: error: GNU Readline could not be found which is required for the
ad6254c5
AK
13019--enable-readline option (which is enabled by default). Either disable readline
13020support with --disable-readline or download and install readline from:
13021 ftp.gnu.org/gnu/readline
13022Note: if you are using precompiled packages you will also need the development
13023package as well (which may be called readline-devel or something similar).
13024" >&5
ec6a6fbe 13025$as_echo "$as_me: error: GNU Readline could not be found which is required for the
ad6254c5
AK
13026--enable-readline option (which is enabled by default). Either disable readline
13027support with --disable-readline or download and install readline from:
13028 ftp.gnu.org/gnu/readline
13029Note: if you are using precompiled packages you will also need the development
13030package as well (which may be called readline-devel or something similar).
13031" >&2;}
13032 { (exit 1); exit 1; }; }
06e459df 13033 if test $rl_found = yes; then
bc1024f8
JM
13034
13035for ac_func in rl_completion_matches
13036do
ec6a6fbe
AK
13037as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13038{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13039$as_echo_n "checking for $ac_func... " >&6; }
bc1024f8 13040if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 13041 $as_echo_n "(cached) " >&6
ad6254c5
AK
13042else
13043 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
13044/* confdefs.h. */
13045_ACEOF
13046cat confdefs.h >>conftest.$ac_ext
13047cat >>conftest.$ac_ext <<_ACEOF
13048/* end confdefs.h. */
bc1024f8 13049/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8a2fc586 13050 For example, HP-UX 11i <limits.h> declares gettimeofday. */
bc1024f8 13051#define $ac_func innocuous_$ac_func
8a2fc586 13052
ad6254c5 13053/* System header to define __stub macros and hopefully few prototypes,
bc1024f8 13054 which can conflict with char $ac_func (); below.
ad6254c5
AK
13055 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13056 <limits.h> exists even on freestanding compilers. */
8a2fc586 13057
ad6254c5
AK
13058#ifdef __STDC__
13059# include <limits.h>
13060#else
13061# include <assert.h>
13062#endif
8a2fc586 13063
bc1024f8 13064#undef $ac_func
8a2fc586 13065
7a197a62
AK
13066/* Override any GCC internal prototype to avoid an error.
13067 Use char because int might match the return type of a GCC
13068 builtin and then its argument prototype would still apply. */
ad6254c5
AK
13069#ifdef __cplusplus
13070extern "C"
ad6254c5 13071#endif
bc1024f8 13072char $ac_func ();
ad6254c5
AK
13073/* The GNU C library defines this for functions which it implements
13074 to always fail with ENOSYS. Some functions are actually named
13075 something starting with __ and the normal name is an alias. */
bc1024f8 13076#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 13077choke me
ad6254c5
AK
13078#endif
13079
13080int
13081main ()
13082{
bc1024f8 13083return $ac_func ();
ad6254c5
AK
13084 ;
13085 return 0;
13086}
13087_ACEOF
13088rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
13089if { (ac_try="$ac_link"
13090case "(($ac_try" in
13091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13092 *) ac_try_echo=$ac_try;;
13093esac
ec6a6fbe
AK
13094eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13095$as_echo "$ac_try_echo") >&5
7a197a62 13096 (eval "$ac_link") 2>conftest.er1
ad6254c5 13097 ac_status=$?
8a2fc586
AK
13098 grep -v '^ *+' conftest.er1 >conftest.err
13099 rm -f conftest.er1
13100 cat conftest.err >&5
ec6a6fbe 13101 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
13102 (exit $ac_status); } && {
13103 test -z "$ac_c_werror_flag" ||
13104 test ! -s conftest.err
ec6a6fbe
AK
13105 } && test -s conftest$ac_exeext && {
13106 test "$cross_compiling" = yes ||
13107 $as_test_x conftest$ac_exeext
13108 }; then
bc1024f8 13109 eval "$as_ac_var=yes"
ad6254c5 13110else
ec6a6fbe 13111 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
13112sed 's/^/| /' conftest.$ac_ext >&5
13113
bc1024f8 13114 eval "$as_ac_var=no"
ad6254c5 13115fi
7a197a62 13116
ec6a6fbe 13117rm -rf conftest.dSYM
25fbec5b 13118rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 13119 conftest$ac_exeext conftest.$ac_ext
ad6254c5 13120fi
ec6a6fbe
AK
13121ac_res=`eval 'as_val=${'$as_ac_var'}
13122 $as_echo "$as_val"'`
13123 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13124$as_echo "$ac_res" >&6; }
13125as_val=`eval 'as_val=${'$as_ac_var'}
13126 $as_echo "$as_val"'`
13127 if test "x$as_val" = x""yes; then
bc1024f8 13128 cat >>confdefs.h <<_ACEOF
ec6a6fbe 13129#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
72b2cb61
AK
13130_ACEOF
13131
13132fi
bc1024f8 13133done
ad6254c5 13134
d179cc7a
JM
13135
13136cat >>confdefs.h <<\_ACEOF
13137#define READLINE_SUPPORT 1
13138_ACEOF
13139
06e459df 13140 fi
ad6254c5
AK
13141fi
13142
13143################################################################################
ec6a6fbe
AK
13144{ $as_echo "$as_me:$LINENO: checking whether to enable internationalisation" >&5
13145$as_echo_n "checking whether to enable internationalisation... " >&6; }
7a197a62 13146# Check whether --enable-nls was given.
ad6254c5 13147if test "${enable_nls+set}" = set; then
7a197a62 13148 enableval=$enable_nls; INTL=$enableval
ad6254c5
AK
13149else
13150 INTL=no
7a197a62
AK
13151fi
13152
ec6a6fbe
AK
13153{ $as_echo "$as_me:$LINENO: result: $INTL" >&5
13154$as_echo "$INTL" >&6; }
ad6254c5
AK
13155
13156if test x$INTL = xyes; then
93bd259b 13157# FIXME - Move this - can be device-mapper too
ad6254c5
AK
13158 INTL_PACKAGE="lvm2"
13159 # Extract the first word of "msgfmt", so it can be a program name with args.
13160set dummy msgfmt; ac_word=$2
ec6a6fbe
AK
13161{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13162$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 13163if test "${ac_cv_path_MSGFMT+set}" = set; then
ec6a6fbe 13164 $as_echo_n "(cached) " >&6
ad6254c5
AK
13165else
13166 case $MSGFMT in
13167 [\\/]* | ?:[\\/]*)
13168 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
13169 ;;
13170 *)
13171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13172for as_dir in $PATH
13173do
13174 IFS=$as_save_IFS
13175 test -z "$as_dir" && as_dir=.
13176 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 13177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 13178 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 13179 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
13180 break 2
13181 fi
13182done
13183done
7a197a62 13184IFS=$as_save_IFS
ad6254c5
AK
13185
13186 ;;
13187esac
13188fi
13189MSGFMT=$ac_cv_path_MSGFMT
ad6254c5 13190if test -n "$MSGFMT"; then
ec6a6fbe
AK
13191 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
13192$as_echo "$MSGFMT" >&6; }
ad6254c5 13193else
ec6a6fbe
AK
13194 { $as_echo "$as_me:$LINENO: result: no" >&5
13195$as_echo "no" >&6; }
ad6254c5
AK
13196fi
13197
7a197a62 13198
ad6254c5 13199 if [ "x$MSGFMT" == x ];
ec6a6fbe 13200 then { { $as_echo "$as_me:$LINENO: error: msgfmt not found in path $PATH
ad6254c5 13201 " >&5
ec6a6fbe 13202$as_echo "$as_me: error: msgfmt not found in path $PATH
ad6254c5
AK
13203 " >&2;}
13204 { (exit 1); exit 1; }; }
13205 fi;
13206
13207
7a197a62 13208# Check whether --with-localedir was given.
ad6254c5 13209if test "${with_localedir+set}" = set; then
7a197a62 13210 withval=$with_localedir; LOCALEDIR="$withval"
ad6254c5
AK
13211else
13212 LOCALEDIR='${prefix}/share/locale'
7a197a62
AK
13213fi
13214
ad6254c5
AK
13215fi
13216
13217################################################################################
13218
7a197a62 13219# Check whether --with-confdir was given.
ad6254c5 13220if test "${with_confdir+set}" = set; then
7a197a62 13221 withval=$with_confdir; CONFDIR="$withval"
ad6254c5
AK
13222else
13223 CONFDIR='/etc'
7a197a62
AK
13224fi
13225
ad6254c5
AK
13226
13227
7a197a62 13228# Check whether --with-staticdir was given.
ad6254c5 13229if test "${with_staticdir+set}" = set; then
7a197a62 13230 withval=$with_staticdir; STATICDIR="$withval"
ad6254c5
AK
13231else
13232 STATICDIR='${exec_prefix}/sbin'
7a197a62 13233fi
ad6254c5 13234
33f732c5 13235
7a197a62 13236
68f2de6d
AK
13237# Check whether --with-usrlibdir was given.
13238if test "${with_usrlibdir+set}" = set; then
13239 withval=$with_usrlibdir; usrlibdir="$withval"
13240else
13241 usrlibdir='${prefix}/lib'
13242fi
13243
13244
13245
13246# Check whether --with-usrsbindir was given.
13247if test "${with_usrsbindir+set}" = set; then
13248 withval=$with_usrsbindir; usrsbindir="$withval"
13249else
13250 usrsbindir='${prefix}/sbin'
13251fi
13252
13253
a5f46f6a
AK
13254################################################################################
13255
13256# Check whether --with-udev_prefix was given.
13257if test "${with_udev_prefix+set}" = set; then
13258 withval=$with_udev_prefix; udev_prefix="$withval"
13259else
13260 udev_prefix='${exec_prefix}'
13261fi
13262
13263
78ce7acc
AK
13264
13265# Check whether --with-udevdir was given.
13266if test "${with_udevdir+set}" = set; then
13267 withval=$with_udevdir; udevdir="$withval"
13268else
13269 udevdir='${udev_prefix}/lib/udev/rules.d'
13270fi
13271
a5f46f6a 13272
ad6254c5
AK
13273################################################################################
13274if test x$READLINE = xyes; then
13275
13276
13277for ac_header in readline/readline.h readline/history.h
13278do
ec6a6fbe 13279as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 13280if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
13281 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13282$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 13283if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 13284 $as_echo_n "(cached) " >&6
ad6254c5 13285fi
ec6a6fbe
AK
13286ac_res=`eval 'as_val=${'$as_ac_Header'}
13287 $as_echo "$as_val"'`
13288 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13289$as_echo "$ac_res" >&6; }
ad6254c5
AK
13290else
13291 # Is the header compilable?
ec6a6fbe
AK
13292{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13293$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 13294cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
13295/* confdefs.h. */
13296_ACEOF
13297cat confdefs.h >>conftest.$ac_ext
13298cat >>conftest.$ac_ext <<_ACEOF
13299/* end confdefs.h. */
13300$ac_includes_default
13301#include <$ac_header>
13302_ACEOF
13303rm -f conftest.$ac_objext
7a197a62
AK
13304if { (ac_try="$ac_compile"
13305case "(($ac_try" in
13306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13307 *) ac_try_echo=$ac_try;;
13308esac
ec6a6fbe
AK
13309eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13310$as_echo "$ac_try_echo") >&5
7a197a62 13311 (eval "$ac_compile") 2>conftest.er1
ad6254c5 13312 ac_status=$?
8a2fc586
AK
13313 grep -v '^ *+' conftest.er1 >conftest.err
13314 rm -f conftest.er1
13315 cat conftest.err >&5
ec6a6fbe 13316 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
13317 (exit $ac_status); } && {
13318 test -z "$ac_c_werror_flag" ||
13319 test ! -s conftest.err
13320 } && test -s conftest.$ac_objext; then
ad6254c5
AK
13321 ac_header_compiler=yes
13322else
ec6a6fbe 13323 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
13324sed 's/^/| /' conftest.$ac_ext >&5
13325
7a197a62 13326 ac_header_compiler=no
ad6254c5 13327fi
7a197a62
AK
13328
13329rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
13330{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13331$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
13332
13333# Is the header present?
ec6a6fbe
AK
13334{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13335$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 13336cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
13337/* confdefs.h. */
13338_ACEOF
13339cat confdefs.h >>conftest.$ac_ext
13340cat >>conftest.$ac_ext <<_ACEOF
13341/* end confdefs.h. */
13342#include <$ac_header>
13343_ACEOF
7a197a62
AK
13344if { (ac_try="$ac_cpp conftest.$ac_ext"
13345case "(($ac_try" in
13346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13347 *) ac_try_echo=$ac_try;;
13348esac
ec6a6fbe
AK
13349eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13350$as_echo "$ac_try_echo") >&5
7a197a62 13351 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
13352 ac_status=$?
13353 grep -v '^ *+' conftest.er1 >conftest.err
13354 rm -f conftest.er1
13355 cat conftest.err >&5
ec6a6fbe 13356 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
13357 (exit $ac_status); } >/dev/null && {
13358 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13359 test ! -s conftest.err
13360 }; then
ad6254c5
AK
13361 ac_header_preproc=yes
13362else
ec6a6fbe 13363 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
13364sed 's/^/| /' conftest.$ac_ext >&5
13365
13366 ac_header_preproc=no
13367fi
7a197a62 13368
ad6254c5 13369rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
13370{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13371$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
13372
13373# So? What about this header?
8a2fc586
AK
13374case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13375 yes:no: )
ec6a6fbe
AK
13376 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13377$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13378 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13379$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 13380 ac_header_preproc=yes
ad6254c5 13381 ;;
8a2fc586 13382 no:yes:* )
ec6a6fbe
AK
13383 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13384$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13385 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13386$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13387 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13388$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13389 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13390$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13391 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13392$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13393 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13394$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 13395
ad6254c5
AK
13396 ;;
13397esac
ec6a6fbe
AK
13398{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13399$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 13400if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 13401 $as_echo_n "(cached) " >&6
ad6254c5 13402else
8a2fc586 13403 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 13404fi
ec6a6fbe
AK
13405ac_res=`eval 'as_val=${'$as_ac_Header'}
13406 $as_echo "$as_val"'`
13407 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13408$as_echo "$ac_res" >&6; }
ad6254c5
AK
13409
13410fi
ec6a6fbe
AK
13411as_val=`eval 'as_val=${'$as_ac_Header'}
13412 $as_echo "$as_val"'`
13413 if test "x$as_val" = x""yes; then
ad6254c5 13414 cat >>confdefs.h <<_ACEOF
ec6a6fbe 13415#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
13416_ACEOF
13417
13418else
ec6a6fbe
AK
13419 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
13420$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5
AK
13421 { (exit 1); exit 1; }; }
13422fi
13423
13424done
13425
13426fi
13427
5c7fc7c4 13428if test x$CLVMD != xnone; then
ad6254c5
AK
13429
13430
13431
13432
13433
13434
13435
13436
13437
13438
13439for 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
13440do
ec6a6fbe 13441as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 13442if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
13443 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13444$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 13445if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 13446 $as_echo_n "(cached) " >&6
ad6254c5 13447fi
ec6a6fbe
AK
13448ac_res=`eval 'as_val=${'$as_ac_Header'}
13449 $as_echo "$as_val"'`
13450 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13451$as_echo "$ac_res" >&6; }
ad6254c5
AK
13452else
13453 # Is the header compilable?
ec6a6fbe
AK
13454{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13455$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 13456cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
13457/* confdefs.h. */
13458_ACEOF
13459cat confdefs.h >>conftest.$ac_ext
13460cat >>conftest.$ac_ext <<_ACEOF
13461/* end confdefs.h. */
13462$ac_includes_default
13463#include <$ac_header>
13464_ACEOF
13465rm -f conftest.$ac_objext
7a197a62
AK
13466if { (ac_try="$ac_compile"
13467case "(($ac_try" in
13468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13469 *) ac_try_echo=$ac_try;;
13470esac
ec6a6fbe
AK
13471eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13472$as_echo "$ac_try_echo") >&5
7a197a62 13473 (eval "$ac_compile") 2>conftest.er1
ad6254c5 13474 ac_status=$?
8a2fc586
AK
13475 grep -v '^ *+' conftest.er1 >conftest.err
13476 rm -f conftest.er1
13477 cat conftest.err >&5
ec6a6fbe 13478 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
13479 (exit $ac_status); } && {
13480 test -z "$ac_c_werror_flag" ||
13481 test ! -s conftest.err
13482 } && test -s conftest.$ac_objext; then
ad6254c5
AK
13483 ac_header_compiler=yes
13484else
ec6a6fbe 13485 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
13486sed 's/^/| /' conftest.$ac_ext >&5
13487
7a197a62 13488 ac_header_compiler=no
ad6254c5 13489fi
7a197a62
AK
13490
13491rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
13492{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13493$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
13494
13495# Is the header present?
ec6a6fbe
AK
13496{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13497$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 13498cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
13499/* confdefs.h. */
13500_ACEOF
13501cat confdefs.h >>conftest.$ac_ext
13502cat >>conftest.$ac_ext <<_ACEOF
13503/* end confdefs.h. */
13504#include <$ac_header>
13505_ACEOF
7a197a62
AK
13506if { (ac_try="$ac_cpp conftest.$ac_ext"
13507case "(($ac_try" in
13508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13509 *) ac_try_echo=$ac_try;;
13510esac
ec6a6fbe
AK
13511eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13512$as_echo "$ac_try_echo") >&5
7a197a62 13513 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
13514 ac_status=$?
13515 grep -v '^ *+' conftest.er1 >conftest.err
13516 rm -f conftest.er1
13517 cat conftest.err >&5
ec6a6fbe 13518 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
13519 (exit $ac_status); } >/dev/null && {
13520 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13521 test ! -s conftest.err
13522 }; then
ad6254c5
AK
13523 ac_header_preproc=yes
13524else
ec6a6fbe 13525 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
13526sed 's/^/| /' conftest.$ac_ext >&5
13527
13528 ac_header_preproc=no
13529fi
7a197a62 13530
ad6254c5 13531rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
13532{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13533$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
13534
13535# So? What about this header?
8a2fc586
AK
13536case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13537 yes:no: )
ec6a6fbe
AK
13538 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13539$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13540 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13541$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 13542 ac_header_preproc=yes
ad6254c5 13543 ;;
8a2fc586 13544 no:yes:* )
ec6a6fbe
AK
13545 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13546$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13547 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13548$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13549 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13550$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13551 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13552$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13553 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13554$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13555 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13556$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 13557
ad6254c5
AK
13558 ;;
13559esac
ec6a6fbe
AK
13560{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13561$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 13562if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 13563 $as_echo_n "(cached) " >&6
ad6254c5 13564else
8a2fc586 13565 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 13566fi
ec6a6fbe
AK
13567ac_res=`eval 'as_val=${'$as_ac_Header'}
13568 $as_echo "$as_val"'`
13569 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13570$as_echo "$ac_res" >&6; }
ad6254c5
AK
13571
13572fi
ec6a6fbe
AK
13573as_val=`eval 'as_val=${'$as_ac_Header'}
13574 $as_echo "$as_val"'`
13575 if test "x$as_val" = x""yes; then
ad6254c5 13576 cat >>confdefs.h <<_ACEOF
ec6a6fbe 13577#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
13578_ACEOF
13579
13580else
ec6a6fbe
AK
13581 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
13582$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 13583 { (exit 1); exit 1; }; }
795ca3e5
AK
13584fi
13585
ad6254c5
AK
13586done
13587
13588
795ca3e5 13589
8106cdd5 13590
ad6254c5
AK
13591
13592
13593for ac_func in dup2 getmntent memmove select socket
13594do
ec6a6fbe
AK
13595as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13596{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13597$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 13598if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 13599 $as_echo_n "(cached) " >&6
795ca3e5 13600else
ad6254c5 13601 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
13602/* confdefs.h. */
13603_ACEOF
13604cat confdefs.h >>conftest.$ac_ext
13605cat >>conftest.$ac_ext <<_ACEOF
13606/* end confdefs.h. */
8a2fc586
AK
13607/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13608 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13609#define $ac_func innocuous_$ac_func
13610
795ca3e5 13611/* System header to define __stub macros and hopefully few prototypes,
ad6254c5
AK
13612 which can conflict with char $ac_func (); below.
13613 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13614 <limits.h> exists even on freestanding compilers. */
8a2fc586 13615
ad6254c5
AK
13616#ifdef __STDC__
13617# include <limits.h>
13618#else
13619# include <assert.h>
13620#endif
8a2fc586
AK
13621
13622#undef $ac_func
13623
7a197a62
AK
13624/* Override any GCC internal prototype to avoid an error.
13625 Use char because int might match the return type of a GCC
13626 builtin and then its argument prototype would still apply. */
ad6254c5
AK
13627#ifdef __cplusplus
13628extern "C"
ad6254c5 13629#endif
ad6254c5 13630char $ac_func ();
795ca3e5
AK
13631/* The GNU C library defines this for functions which it implements
13632 to always fail with ENOSYS. Some functions are actually named
13633 something starting with __ and the normal name is an alias. */
7a197a62 13634#if defined __stub_$ac_func || defined __stub___$ac_func
795ca3e5 13635choke me
795ca3e5
AK
13636#endif
13637
ad6254c5
AK
13638int
13639main ()
13640{
7a197a62 13641return $ac_func ();
ad6254c5
AK
13642 ;
13643 return 0;
13644}
13645_ACEOF
13646rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
13647if { (ac_try="$ac_link"
13648case "(($ac_try" in
13649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13650 *) ac_try_echo=$ac_try;;
13651esac
ec6a6fbe
AK
13652eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13653$as_echo "$ac_try_echo") >&5
7a197a62 13654 (eval "$ac_link") 2>conftest.er1
ad6254c5 13655 ac_status=$?
8a2fc586
AK
13656 grep -v '^ *+' conftest.er1 >conftest.err
13657 rm -f conftest.er1
13658 cat conftest.err >&5
ec6a6fbe 13659 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
13660 (exit $ac_status); } && {
13661 test -z "$ac_c_werror_flag" ||
13662 test ! -s conftest.err
ec6a6fbe
AK
13663 } && test -s conftest$ac_exeext && {
13664 test "$cross_compiling" = yes ||
13665 $as_test_x conftest$ac_exeext
13666 }; then
ad6254c5 13667 eval "$as_ac_var=yes"
795ca3e5 13668else
ec6a6fbe 13669 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
13670sed 's/^/| /' conftest.$ac_ext >&5
13671
7a197a62 13672 eval "$as_ac_var=no"
80992638 13673fi
7a197a62 13674
ec6a6fbe 13675rm -rf conftest.dSYM
25fbec5b 13676rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 13677 conftest$ac_exeext conftest.$ac_ext
795ca3e5 13678fi
ec6a6fbe
AK
13679ac_res=`eval 'as_val=${'$as_ac_var'}
13680 $as_echo "$as_val"'`
13681 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13682$as_echo "$ac_res" >&6; }
13683as_val=`eval 'as_val=${'$as_ac_var'}
13684 $as_echo "$as_val"'`
13685 if test "x$as_val" = x""yes; then
ad6254c5 13686 cat >>confdefs.h <<_ACEOF
ec6a6fbe 13687#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5 13688_ACEOF
80992638
AK
13689
13690else
ec6a6fbe
AK
13691 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
13692$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 13693 { (exit 1); exit 1; }; }
8106cdd5 13694fi
ad6254c5 13695done
795ca3e5 13696
25fbec5b
AK
13697 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
13698# -lseq on Dynix/PTX, -lgen on Unixware.
ec6a6fbe
AK
13699{ $as_echo "$as_me:$LINENO: checking for library containing getmntent" >&5
13700$as_echo_n "checking for library containing getmntent... " >&6; }
25fbec5b 13701if test "${ac_cv_search_getmntent+set}" = set; then
ec6a6fbe 13702 $as_echo_n "(cached) " >&6
25fbec5b
AK
13703else
13704 ac_func_search_save_LIBS=$LIBS
13705cat >conftest.$ac_ext <<_ACEOF
13706/* confdefs.h. */
13707_ACEOF
13708cat confdefs.h >>conftest.$ac_ext
13709cat >>conftest.$ac_ext <<_ACEOF
13710/* end confdefs.h. */
80992638 13711
7a197a62
AK
13712/* Override any GCC internal prototype to avoid an error.
13713 Use char because int might match the return type of a GCC
ad6254c5 13714 builtin and then its argument prototype would still apply. */
ad6254c5
AK
13715#ifdef __cplusplus
13716extern "C"
13717#endif
25fbec5b 13718char getmntent ();
ad6254c5
AK
13719int
13720main ()
13721{
25fbec5b 13722return getmntent ();
ad6254c5
AK
13723 ;
13724 return 0;
13725}
13726_ACEOF
25fbec5b
AK
13727for ac_lib in '' sun seq gen; do
13728 if test -z "$ac_lib"; then
13729 ac_res="none required"
13730 else
13731 ac_res=-l$ac_lib
13732 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13733 fi
13734 rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
13735if { (ac_try="$ac_link"
13736case "(($ac_try" in
13737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13738 *) ac_try_echo=$ac_try;;
13739esac
ec6a6fbe
AK
13740eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13741$as_echo "$ac_try_echo") >&5
7a197a62 13742 (eval "$ac_link") 2>conftest.er1
ad6254c5 13743 ac_status=$?
8a2fc586
AK
13744 grep -v '^ *+' conftest.er1 >conftest.err
13745 rm -f conftest.er1
13746 cat conftest.err >&5
ec6a6fbe 13747 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
13748 (exit $ac_status); } && {
13749 test -z "$ac_c_werror_flag" ||
13750 test ! -s conftest.err
ec6a6fbe
AK
13751 } && test -s conftest$ac_exeext && {
13752 test "$cross_compiling" = yes ||
13753 $as_test_x conftest$ac_exeext
13754 }; then
25fbec5b 13755 ac_cv_search_getmntent=$ac_res
80992638 13756else
ec6a6fbe 13757 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
13758sed 's/^/| /' conftest.$ac_ext >&5
13759
25fbec5b 13760
795ca3e5
AK
13761fi
13762
ec6a6fbe 13763rm -rf conftest.dSYM
25fbec5b
AK
13764rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13765 conftest$ac_exeext
13766 if test "${ac_cv_search_getmntent+set}" = set; then
13767 break
795ca3e5 13768fi
25fbec5b
AK
13769done
13770if test "${ac_cv_search_getmntent+set}" = set; then
13771 :
13772else
13773 ac_cv_search_getmntent=no
13774fi
13775rm conftest.$ac_ext
13776LIBS=$ac_func_search_save_LIBS
13777fi
ec6a6fbe
AK
13778{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
13779$as_echo "$ac_cv_search_getmntent" >&6; }
25fbec5b
AK
13780ac_res=$ac_cv_search_getmntent
13781if test "$ac_res" != no; then
13782 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13783 ac_cv_func_getmntent=yes
13784
13785cat >>confdefs.h <<\_ACEOF
9c961554 13786#define HAVE_GETMNTENT 1
ad6254c5 13787_ACEOF
795ca3e5 13788
25fbec5b
AK
13789else
13790 ac_cv_func_getmntent=no
795ca3e5 13791fi
795ca3e5
AK
13792
13793
ad6254c5
AK
13794# AC_FUNC_REALLOC
13795
13796
13797for ac_header in sys/select.h sys/socket.h
13798do
ec6a6fbe 13799as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 13800if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
13801 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13802$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 13803if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 13804 $as_echo_n "(cached) " >&6
ad6254c5 13805fi
ec6a6fbe
AK
13806ac_res=`eval 'as_val=${'$as_ac_Header'}
13807 $as_echo "$as_val"'`
13808 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13809$as_echo "$ac_res" >&6; }
795ca3e5 13810else
ad6254c5 13811 # Is the header compilable?
ec6a6fbe
AK
13812{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13813$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 13814cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
13815/* confdefs.h. */
13816_ACEOF
13817cat confdefs.h >>conftest.$ac_ext
13818cat >>conftest.$ac_ext <<_ACEOF
13819/* end confdefs.h. */
13820$ac_includes_default
13821#include <$ac_header>
13822_ACEOF
13823rm -f conftest.$ac_objext
7a197a62
AK
13824if { (ac_try="$ac_compile"
13825case "(($ac_try" in
13826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13827 *) ac_try_echo=$ac_try;;
13828esac
ec6a6fbe
AK
13829eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13830$as_echo "$ac_try_echo") >&5
7a197a62 13831 (eval "$ac_compile") 2>conftest.er1
ad6254c5 13832 ac_status=$?
8a2fc586
AK
13833 grep -v '^ *+' conftest.er1 >conftest.err
13834 rm -f conftest.er1
13835 cat conftest.err >&5
ec6a6fbe 13836 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
13837 (exit $ac_status); } && {
13838 test -z "$ac_c_werror_flag" ||
13839 test ! -s conftest.err
13840 } && test -s conftest.$ac_objext; then
ad6254c5 13841 ac_header_compiler=yes
80992638 13842else
ec6a6fbe 13843 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
13844sed 's/^/| /' conftest.$ac_ext >&5
13845
7a197a62 13846 ac_header_compiler=no
ad6254c5 13847fi
7a197a62
AK
13848
13849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
13850{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13851$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
13852
13853# Is the header present?
ec6a6fbe
AK
13854{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13855$as_echo_n "checking $ac_header presence... " >&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#include <$ac_header>
13863_ACEOF
7a197a62
AK
13864if { (ac_try="$ac_cpp conftest.$ac_ext"
13865case "(($ac_try" in
13866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13867 *) ac_try_echo=$ac_try;;
13868esac
ec6a6fbe
AK
13869eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13870$as_echo "$ac_try_echo") >&5
7a197a62 13871 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
13872 ac_status=$?
13873 grep -v '^ *+' conftest.er1 >conftest.err
13874 rm -f conftest.er1
13875 cat conftest.err >&5
ec6a6fbe 13876 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
13877 (exit $ac_status); } >/dev/null && {
13878 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13879 test ! -s conftest.err
13880 }; then
ad6254c5
AK
13881 ac_header_preproc=yes
13882else
ec6a6fbe 13883 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
13884sed 's/^/| /' conftest.$ac_ext >&5
13885
13886 ac_header_preproc=no
13887fi
7a197a62 13888
ad6254c5 13889rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
13890{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13891$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
13892
13893# So? What about this header?
8a2fc586
AK
13894case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13895 yes:no: )
ec6a6fbe
AK
13896 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13897$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13898 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13899$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 13900 ac_header_preproc=yes
ad6254c5 13901 ;;
8a2fc586 13902 no:yes:* )
ec6a6fbe
AK
13903 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13904$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13905 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13906$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13907 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13908$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13909 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13910$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13911 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13912$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13913 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13914$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 13915
ad6254c5
AK
13916 ;;
13917esac
ec6a6fbe
AK
13918{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13919$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 13920if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 13921 $as_echo_n "(cached) " >&6
ad6254c5 13922else
8a2fc586 13923 eval "$as_ac_Header=\$ac_header_preproc"
8106cdd5 13924fi
ec6a6fbe
AK
13925ac_res=`eval 'as_val=${'$as_ac_Header'}
13926 $as_echo "$as_val"'`
13927 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13928$as_echo "$ac_res" >&6; }
8106cdd5 13929
795ca3e5 13930fi
ec6a6fbe
AK
13931as_val=`eval 'as_val=${'$as_ac_Header'}
13932 $as_echo "$as_val"'`
13933 if test "x$as_val" = x""yes; then
ad6254c5 13934 cat >>confdefs.h <<_ACEOF
ec6a6fbe 13935#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
13936_ACEOF
13937
795ca3e5
AK
13938fi
13939
ad6254c5
AK
13940done
13941
ec6a6fbe
AK
13942{ $as_echo "$as_me:$LINENO: checking types of arguments for select" >&5
13943$as_echo_n "checking types of arguments for select... " >&6; }
ad6254c5 13944if test "${ac_cv_func_select_args+set}" = set; then
ec6a6fbe 13945 $as_echo_n "(cached) " >&6
26e7f2e0 13946else
ad6254c5 13947 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
7a197a62 13948 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
ad6254c5
AK
13949 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
13950 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
13951/* confdefs.h. */
13952_ACEOF
13953cat confdefs.h >>conftest.$ac_ext
13954cat >>conftest.$ac_ext <<_ACEOF
13955/* end confdefs.h. */
13956$ac_includes_default
25fbec5b 13957#ifdef HAVE_SYS_SELECT_H
ad6254c5
AK
13958# include <sys/select.h>
13959#endif
25fbec5b 13960#ifdef HAVE_SYS_SOCKET_H
ad6254c5
AK
13961# include <sys/socket.h>
13962#endif
13963
13964int
13965main ()
13966{
13967extern int select ($ac_arg1,
8a2fc586
AK
13968 $ac_arg234, $ac_arg234, $ac_arg234,
13969 $ac_arg5);
ad6254c5
AK
13970 ;
13971 return 0;
13972}
13973_ACEOF
13974rm -f conftest.$ac_objext
7a197a62
AK
13975if { (ac_try="$ac_compile"
13976case "(($ac_try" in
13977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13978 *) ac_try_echo=$ac_try;;
13979esac
ec6a6fbe
AK
13980eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13981$as_echo "$ac_try_echo") >&5
7a197a62 13982 (eval "$ac_compile") 2>conftest.er1
ad6254c5 13983 ac_status=$?
8a2fc586
AK
13984 grep -v '^ *+' conftest.er1 >conftest.err
13985 rm -f conftest.er1
13986 cat conftest.err >&5
ec6a6fbe 13987 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
13988 (exit $ac_status); } && {
13989 test -z "$ac_c_werror_flag" ||
13990 test ! -s conftest.err
13991 } && test -s conftest.$ac_objext; then
ad6254c5
AK
13992 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
13993else
ec6a6fbe 13994 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
13995sed 's/^/| /' conftest.$ac_ext >&5
13996
7a197a62 13997
ad6254c5 13998fi
7a197a62
AK
13999
14000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
14001 done
14002 done
14003done
14004# Provide a safe default value.
14005: ${ac_cv_func_select_args='int,int *,struct timeval *'}
14006
26e7f2e0 14007fi
ec6a6fbe
AK
14008{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
14009$as_echo "$ac_cv_func_select_args" >&6; }
ad6254c5
AK
14010ac_save_IFS=$IFS; IFS=','
14011set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
14012IFS=$ac_save_IFS
14013shift
14014
14015cat >>confdefs.h <<_ACEOF
14016#define SELECT_TYPE_ARG1 $1
14017_ACEOF
14018
14019
14020cat >>confdefs.h <<_ACEOF
14021#define SELECT_TYPE_ARG234 ($2)
14022_ACEOF
14023
14024
14025cat >>confdefs.h <<_ACEOF
14026#define SELECT_TYPE_ARG5 ($3)
14027_ACEOF
14028
80992638 14029rm -f conftest*
80992638 14030
8106cdd5 14031fi
ad6254c5 14032
ad6254c5
AK
14033if test x$CLUSTER != xnone; then
14034
14035
14036for ac_header in sys/socket.h sys/un.h
b896caa1 14037do
ec6a6fbe 14038as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 14039if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
14040 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14041$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 14042if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 14043 $as_echo_n "(cached) " >&6
ad6254c5 14044fi
ec6a6fbe
AK
14045ac_res=`eval 'as_val=${'$as_ac_Header'}
14046 $as_echo "$as_val"'`
14047 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14048$as_echo "$ac_res" >&6; }
ad6254c5
AK
14049else
14050 # Is the header compilable?
ec6a6fbe
AK
14051{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14052$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 14053cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14054/* confdefs.h. */
14055_ACEOF
14056cat confdefs.h >>conftest.$ac_ext
14057cat >>conftest.$ac_ext <<_ACEOF
14058/* end confdefs.h. */
14059$ac_includes_default
14060#include <$ac_header>
14061_ACEOF
14062rm -f conftest.$ac_objext
7a197a62
AK
14063if { (ac_try="$ac_compile"
14064case "(($ac_try" in
14065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14066 *) ac_try_echo=$ac_try;;
14067esac
ec6a6fbe
AK
14068eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14069$as_echo "$ac_try_echo") >&5
7a197a62 14070 (eval "$ac_compile") 2>conftest.er1
ad6254c5 14071 ac_status=$?
8a2fc586
AK
14072 grep -v '^ *+' conftest.er1 >conftest.err
14073 rm -f conftest.er1
14074 cat conftest.err >&5
ec6a6fbe 14075 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14076 (exit $ac_status); } && {
14077 test -z "$ac_c_werror_flag" ||
14078 test ! -s conftest.err
14079 } && test -s conftest.$ac_objext; then
ad6254c5
AK
14080 ac_header_compiler=yes
14081else
ec6a6fbe 14082 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14083sed 's/^/| /' conftest.$ac_ext >&5
14084
7a197a62 14085 ac_header_compiler=no
ad6254c5 14086fi
7a197a62
AK
14087
14088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
14089{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14090$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
14091
14092# Is the header present?
ec6a6fbe
AK
14093{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14094$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 14095cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14096/* confdefs.h. */
14097_ACEOF
14098cat confdefs.h >>conftest.$ac_ext
14099cat >>conftest.$ac_ext <<_ACEOF
14100/* end confdefs.h. */
14101#include <$ac_header>
14102_ACEOF
7a197a62
AK
14103if { (ac_try="$ac_cpp conftest.$ac_ext"
14104case "(($ac_try" in
14105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14106 *) ac_try_echo=$ac_try;;
14107esac
ec6a6fbe
AK
14108eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14109$as_echo "$ac_try_echo") >&5
7a197a62 14110 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
14111 ac_status=$?
14112 grep -v '^ *+' conftest.er1 >conftest.err
14113 rm -f conftest.er1
14114 cat conftest.err >&5
ec6a6fbe 14115 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14116 (exit $ac_status); } >/dev/null && {
14117 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14118 test ! -s conftest.err
14119 }; then
ad6254c5
AK
14120 ac_header_preproc=yes
14121else
ec6a6fbe 14122 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14123sed 's/^/| /' conftest.$ac_ext >&5
14124
14125 ac_header_preproc=no
14126fi
7a197a62 14127
ad6254c5 14128rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
14129{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14130$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
14131
14132# So? What about this header?
8a2fc586
AK
14133case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14134 yes:no: )
ec6a6fbe
AK
14135 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14136$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14137 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14138$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 14139 ac_header_preproc=yes
ad6254c5 14140 ;;
8a2fc586 14141 no:yes:* )
ec6a6fbe
AK
14142 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14143$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14144 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14145$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14146 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14147$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14148 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14149$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14150 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14151$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14152 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14153$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 14154
ad6254c5
AK
14155 ;;
14156esac
ec6a6fbe
AK
14157{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14158$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 14159if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 14160 $as_echo_n "(cached) " >&6
ad6254c5 14161else
8a2fc586 14162 eval "$as_ac_Header=\$ac_header_preproc"
b896caa1 14163fi
ec6a6fbe
AK
14164ac_res=`eval 'as_val=${'$as_ac_Header'}
14165 $as_echo "$as_val"'`
14166 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14167$as_echo "$ac_res" >&6; }
ad6254c5
AK
14168
14169fi
ec6a6fbe
AK
14170as_val=`eval 'as_val=${'$as_ac_Header'}
14171 $as_echo "$as_val"'`
14172 if test "x$as_val" = x""yes; then
ad6254c5 14173 cat >>confdefs.h <<_ACEOF
ec6a6fbe 14174#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
14175_ACEOF
14176
80992638 14177else
ec6a6fbe
AK
14178 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
14179$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 14180 { (exit 1); exit 1; }; }
b896caa1 14181fi
ad6254c5 14182
b896caa1
AK
14183done
14184
14185
ad6254c5
AK
14186for ac_func in socket
14187do
ec6a6fbe
AK
14188as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14189{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14190$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 14191if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 14192 $as_echo_n "(cached) " >&6
795ca3e5 14193else
ad6254c5 14194 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14195/* confdefs.h. */
14196_ACEOF
14197cat confdefs.h >>conftest.$ac_ext
14198cat >>conftest.$ac_ext <<_ACEOF
14199/* end confdefs.h. */
8a2fc586
AK
14200/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14201 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14202#define $ac_func innocuous_$ac_func
14203
ad6254c5
AK
14204/* System header to define __stub macros and hopefully few prototypes,
14205 which can conflict with char $ac_func (); below.
14206 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14207 <limits.h> exists even on freestanding compilers. */
8a2fc586 14208
ad6254c5
AK
14209#ifdef __STDC__
14210# include <limits.h>
14211#else
14212# include <assert.h>
14213#endif
8a2fc586
AK
14214
14215#undef $ac_func
14216
7a197a62
AK
14217/* Override any GCC internal prototype to avoid an error.
14218 Use char because int might match the return type of a GCC
14219 builtin and then its argument prototype would still apply. */
ad6254c5
AK
14220#ifdef __cplusplus
14221extern "C"
ad6254c5 14222#endif
ad6254c5
AK
14223char $ac_func ();
14224/* The GNU C library defines this for functions which it implements
14225 to always fail with ENOSYS. Some functions are actually named
14226 something starting with __ and the normal name is an alias. */
7a197a62 14227#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 14228choke me
ad6254c5
AK
14229#endif
14230
14231int
14232main ()
14233{
7a197a62 14234return $ac_func ();
ad6254c5
AK
14235 ;
14236 return 0;
14237}
14238_ACEOF
14239rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
14240if { (ac_try="$ac_link"
14241case "(($ac_try" in
14242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14243 *) ac_try_echo=$ac_try;;
14244esac
ec6a6fbe
AK
14245eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14246$as_echo "$ac_try_echo") >&5
7a197a62 14247 (eval "$ac_link") 2>conftest.er1
ad6254c5 14248 ac_status=$?
8a2fc586
AK
14249 grep -v '^ *+' conftest.er1 >conftest.err
14250 rm -f conftest.er1
14251 cat conftest.err >&5
ec6a6fbe 14252 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14253 (exit $ac_status); } && {
14254 test -z "$ac_c_werror_flag" ||
14255 test ! -s conftest.err
ec6a6fbe
AK
14256 } && test -s conftest$ac_exeext && {
14257 test "$cross_compiling" = yes ||
14258 $as_test_x conftest$ac_exeext
14259 }; then
ad6254c5
AK
14260 eval "$as_ac_var=yes"
14261else
ec6a6fbe 14262 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14263sed 's/^/| /' conftest.$ac_ext >&5
14264
7a197a62 14265 eval "$as_ac_var=no"
ad6254c5 14266fi
7a197a62 14267
ec6a6fbe 14268rm -rf conftest.dSYM
25fbec5b 14269rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 14270 conftest$ac_exeext conftest.$ac_ext
ad6254c5 14271fi
ec6a6fbe
AK
14272ac_res=`eval 'as_val=${'$as_ac_var'}
14273 $as_echo "$as_val"'`
14274 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14275$as_echo "$ac_res" >&6; }
14276as_val=`eval 'as_val=${'$as_ac_var'}
14277 $as_echo "$as_val"'`
14278 if test "x$as_val" = x""yes; then
ad6254c5 14279 cat >>confdefs.h <<_ACEOF
ec6a6fbe 14280#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
14281_ACEOF
14282
14283else
ec6a6fbe
AK
14284 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
14285$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5
AK
14286 { (exit 1); exit 1; }; }
14287fi
14288done
14289
14290fi
14291
14292if test x$HAVE_LIBDL = xyes; then
14293
14294for ac_header in dlfcn.h
14295do
ec6a6fbe 14296as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 14297if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
14298 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14299$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 14300if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 14301 $as_echo_n "(cached) " >&6
ad6254c5 14302fi
ec6a6fbe
AK
14303ac_res=`eval 'as_val=${'$as_ac_Header'}
14304 $as_echo "$as_val"'`
14305 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14306$as_echo "$ac_res" >&6; }
ad6254c5
AK
14307else
14308 # Is the header compilable?
ec6a6fbe
AK
14309{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14310$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 14311cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14312/* confdefs.h. */
14313_ACEOF
14314cat confdefs.h >>conftest.$ac_ext
14315cat >>conftest.$ac_ext <<_ACEOF
14316/* end confdefs.h. */
14317$ac_includes_default
14318#include <$ac_header>
14319_ACEOF
14320rm -f conftest.$ac_objext
7a197a62
AK
14321if { (ac_try="$ac_compile"
14322case "(($ac_try" in
14323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14324 *) ac_try_echo=$ac_try;;
14325esac
ec6a6fbe
AK
14326eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14327$as_echo "$ac_try_echo") >&5
7a197a62 14328 (eval "$ac_compile") 2>conftest.er1
ad6254c5 14329 ac_status=$?
8a2fc586
AK
14330 grep -v '^ *+' conftest.er1 >conftest.err
14331 rm -f conftest.er1
14332 cat conftest.err >&5
ec6a6fbe 14333 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14334 (exit $ac_status); } && {
14335 test -z "$ac_c_werror_flag" ||
14336 test ! -s conftest.err
14337 } && test -s conftest.$ac_objext; then
ad6254c5
AK
14338 ac_header_compiler=yes
14339else
ec6a6fbe 14340 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14341sed 's/^/| /' conftest.$ac_ext >&5
14342
7a197a62 14343 ac_header_compiler=no
ad6254c5 14344fi
7a197a62
AK
14345
14346rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
14347{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14348$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
14349
14350# Is the header present?
ec6a6fbe
AK
14351{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14352$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 14353cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14354/* confdefs.h. */
14355_ACEOF
14356cat confdefs.h >>conftest.$ac_ext
14357cat >>conftest.$ac_ext <<_ACEOF
14358/* end confdefs.h. */
14359#include <$ac_header>
14360_ACEOF
7a197a62
AK
14361if { (ac_try="$ac_cpp conftest.$ac_ext"
14362case "(($ac_try" in
14363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14364 *) ac_try_echo=$ac_try;;
14365esac
ec6a6fbe
AK
14366eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14367$as_echo "$ac_try_echo") >&5
7a197a62 14368 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
14369 ac_status=$?
14370 grep -v '^ *+' conftest.er1 >conftest.err
14371 rm -f conftest.er1
14372 cat conftest.err >&5
ec6a6fbe 14373 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14374 (exit $ac_status); } >/dev/null && {
14375 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14376 test ! -s conftest.err
14377 }; then
ad6254c5
AK
14378 ac_header_preproc=yes
14379else
ec6a6fbe 14380 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14381sed 's/^/| /' conftest.$ac_ext >&5
14382
14383 ac_header_preproc=no
14384fi
7a197a62 14385
ad6254c5 14386rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
14387{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14388$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
14389
14390# So? What about this header?
8a2fc586
AK
14391case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14392 yes:no: )
ec6a6fbe
AK
14393 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14394$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14395 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14396$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 14397 ac_header_preproc=yes
ad6254c5 14398 ;;
8a2fc586 14399 no:yes:* )
ec6a6fbe
AK
14400 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14401$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14402 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14403$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14404 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14405$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14406 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14407$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14408 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14409$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14410 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14411$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 14412
ad6254c5
AK
14413 ;;
14414esac
ec6a6fbe
AK
14415{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14416$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 14417if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 14418 $as_echo_n "(cached) " >&6
ad6254c5 14419else
8a2fc586 14420 eval "$as_ac_Header=\$ac_header_preproc"
795ca3e5 14421fi
ec6a6fbe
AK
14422ac_res=`eval 'as_val=${'$as_ac_Header'}
14423 $as_echo "$as_val"'`
14424 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14425$as_echo "$ac_res" >&6; }
80992638 14426
8106cdd5 14427fi
ec6a6fbe
AK
14428as_val=`eval 'as_val=${'$as_ac_Header'}
14429 $as_echo "$as_val"'`
14430 if test "x$as_val" = x""yes; then
ad6254c5 14431 cat >>confdefs.h <<_ACEOF
ec6a6fbe 14432#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 14433_ACEOF
795ca3e5
AK
14434
14435else
ec6a6fbe
AK
14436 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
14437$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 14438 { (exit 1); exit 1; }; }
795ca3e5
AK
14439fi
14440
ad6254c5 14441done
80992638 14442
ad6254c5 14443fi
80992638 14444
ad6254c5 14445if test x$INTL = xyes; then
83912faa 14446
ad6254c5
AK
14447for ac_header in libintl.h
14448do
ec6a6fbe 14449as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 14450if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
14451 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14452$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 14453if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 14454 $as_echo_n "(cached) " >&6
ad6254c5 14455fi
ec6a6fbe
AK
14456ac_res=`eval 'as_val=${'$as_ac_Header'}
14457 $as_echo "$as_val"'`
14458 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14459$as_echo "$ac_res" >&6; }
83912faa 14460else
ad6254c5 14461 # Is the header compilable?
ec6a6fbe
AK
14462{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14463$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 14464cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14465/* confdefs.h. */
14466_ACEOF
14467cat confdefs.h >>conftest.$ac_ext
14468cat >>conftest.$ac_ext <<_ACEOF
14469/* end confdefs.h. */
14470$ac_includes_default
14471#include <$ac_header>
14472_ACEOF
14473rm -f conftest.$ac_objext
7a197a62
AK
14474if { (ac_try="$ac_compile"
14475case "(($ac_try" in
14476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14477 *) ac_try_echo=$ac_try;;
14478esac
ec6a6fbe
AK
14479eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14480$as_echo "$ac_try_echo") >&5
7a197a62 14481 (eval "$ac_compile") 2>conftest.er1
ad6254c5 14482 ac_status=$?
8a2fc586
AK
14483 grep -v '^ *+' conftest.er1 >conftest.err
14484 rm -f conftest.er1
14485 cat conftest.err >&5
ec6a6fbe 14486 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14487 (exit $ac_status); } && {
14488 test -z "$ac_c_werror_flag" ||
14489 test ! -s conftest.err
14490 } && test -s conftest.$ac_objext; then
ad6254c5
AK
14491 ac_header_compiler=yes
14492else
ec6a6fbe 14493 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14494sed 's/^/| /' conftest.$ac_ext >&5
14495
7a197a62 14496 ac_header_compiler=no
ad6254c5 14497fi
7a197a62
AK
14498
14499rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
14500{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14501$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
14502
14503# Is the header present?
ec6a6fbe
AK
14504{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14505$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 14506cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14507/* confdefs.h. */
14508_ACEOF
14509cat confdefs.h >>conftest.$ac_ext
14510cat >>conftest.$ac_ext <<_ACEOF
14511/* end confdefs.h. */
14512#include <$ac_header>
14513_ACEOF
7a197a62
AK
14514if { (ac_try="$ac_cpp conftest.$ac_ext"
14515case "(($ac_try" in
14516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14517 *) ac_try_echo=$ac_try;;
14518esac
ec6a6fbe
AK
14519eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14520$as_echo "$ac_try_echo") >&5
7a197a62 14521 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
14522 ac_status=$?
14523 grep -v '^ *+' conftest.er1 >conftest.err
14524 rm -f conftest.er1
14525 cat conftest.err >&5
ec6a6fbe 14526 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14527 (exit $ac_status); } >/dev/null && {
14528 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14529 test ! -s conftest.err
14530 }; then
ad6254c5
AK
14531 ac_header_preproc=yes
14532else
ec6a6fbe 14533 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14534sed 's/^/| /' conftest.$ac_ext >&5
14535
14536 ac_header_preproc=no
14537fi
7a197a62 14538
ad6254c5 14539rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
14540{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14541$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
14542
14543# So? What about this header?
8a2fc586
AK
14544case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14545 yes:no: )
ec6a6fbe
AK
14546 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14547$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14548 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14549$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 14550 ac_header_preproc=yes
ad6254c5 14551 ;;
8a2fc586 14552 no:yes:* )
ec6a6fbe
AK
14553 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14554$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14555 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14556$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14557 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14558$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14559 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14560$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14561 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14562$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14563 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14564$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 14565
ad6254c5
AK
14566 ;;
14567esac
ec6a6fbe
AK
14568{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14569$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 14570if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 14571 $as_echo_n "(cached) " >&6
80992638 14572else
8a2fc586 14573 eval "$as_ac_Header=\$ac_header_preproc"
83912faa 14574fi
ec6a6fbe
AK
14575ac_res=`eval 'as_val=${'$as_ac_Header'}
14576 $as_echo "$as_val"'`
14577 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14578$as_echo "$ac_res" >&6; }
83912faa 14579
69792976 14580fi
ec6a6fbe
AK
14581as_val=`eval 'as_val=${'$as_ac_Header'}
14582 $as_echo "$as_val"'`
14583 if test "x$as_val" = x""yes; then
ad6254c5 14584 cat >>confdefs.h <<_ACEOF
ec6a6fbe 14585#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 14586_ACEOF
69792976 14587
69792976 14588else
ec6a6fbe
AK
14589 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
14590$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 14591 { (exit 1); exit 1; }; }
80992638
AK
14592fi
14593
ad6254c5 14594done
69792976 14595
ad6254c5
AK
14596fi
14597
ad6254c5
AK
14598if test x$HAVE_SELINUX = xyes; then
14599
14600for ac_header in selinux/selinux.h
14601do
ec6a6fbe 14602as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 14603if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
14604 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14605$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 14606if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 14607 $as_echo_n "(cached) " >&6
ad6254c5 14608fi
ec6a6fbe
AK
14609ac_res=`eval 'as_val=${'$as_ac_Header'}
14610 $as_echo "$as_val"'`
14611 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14612$as_echo "$ac_res" >&6; }
4a7f3eb2 14613else
ad6254c5 14614 # Is the header compilable?
ec6a6fbe
AK
14615{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14616$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 14617cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14618/* confdefs.h. */
14619_ACEOF
14620cat confdefs.h >>conftest.$ac_ext
14621cat >>conftest.$ac_ext <<_ACEOF
14622/* end confdefs.h. */
14623$ac_includes_default
14624#include <$ac_header>
14625_ACEOF
14626rm -f conftest.$ac_objext
7a197a62
AK
14627if { (ac_try="$ac_compile"
14628case "(($ac_try" in
14629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14630 *) ac_try_echo=$ac_try;;
14631esac
ec6a6fbe
AK
14632eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14633$as_echo "$ac_try_echo") >&5
7a197a62 14634 (eval "$ac_compile") 2>conftest.er1
ad6254c5 14635 ac_status=$?
8a2fc586
AK
14636 grep -v '^ *+' conftest.er1 >conftest.err
14637 rm -f conftest.er1
14638 cat conftest.err >&5
ec6a6fbe 14639 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14640 (exit $ac_status); } && {
14641 test -z "$ac_c_werror_flag" ||
14642 test ! -s conftest.err
14643 } && test -s conftest.$ac_objext; then
ad6254c5
AK
14644 ac_header_compiler=yes
14645else
ec6a6fbe 14646 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14647sed 's/^/| /' conftest.$ac_ext >&5
14648
7a197a62 14649 ac_header_compiler=no
ad6254c5 14650fi
7a197a62
AK
14651
14652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
14653{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14654$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
14655
14656# Is the header present?
ec6a6fbe
AK
14657{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14658$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 14659cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14660/* confdefs.h. */
14661_ACEOF
14662cat confdefs.h >>conftest.$ac_ext
14663cat >>conftest.$ac_ext <<_ACEOF
14664/* end confdefs.h. */
14665#include <$ac_header>
14666_ACEOF
7a197a62
AK
14667if { (ac_try="$ac_cpp conftest.$ac_ext"
14668case "(($ac_try" in
14669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14670 *) ac_try_echo=$ac_try;;
14671esac
ec6a6fbe
AK
14672eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14673$as_echo "$ac_try_echo") >&5
7a197a62 14674 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
14675 ac_status=$?
14676 grep -v '^ *+' conftest.er1 >conftest.err
14677 rm -f conftest.er1
14678 cat conftest.err >&5
ec6a6fbe 14679 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14680 (exit $ac_status); } >/dev/null && {
14681 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14682 test ! -s conftest.err
14683 }; then
ad6254c5
AK
14684 ac_header_preproc=yes
14685else
ec6a6fbe 14686 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14687sed 's/^/| /' conftest.$ac_ext >&5
14688
14689 ac_header_preproc=no
14690fi
7a197a62 14691
ad6254c5 14692rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
14693{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14694$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
14695
14696# So? What about this header?
8a2fc586
AK
14697case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14698 yes:no: )
ec6a6fbe
AK
14699 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14700$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14701 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14702$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 14703 ac_header_preproc=yes
ad6254c5 14704 ;;
8a2fc586 14705 no:yes:* )
ec6a6fbe
AK
14706 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14707$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14708 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14709$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14710 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14711$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14712 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14713$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14714 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14715$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14716 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14717$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 14718
ad6254c5
AK
14719 ;;
14720esac
ec6a6fbe
AK
14721{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14722$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 14723if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 14724 $as_echo_n "(cached) " >&6
ad6254c5 14725else
8a2fc586 14726 eval "$as_ac_Header=\$ac_header_preproc"
80992638 14727fi
ec6a6fbe
AK
14728ac_res=`eval 'as_val=${'$as_ac_Header'}
14729 $as_echo "$as_val"'`
14730 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14731$as_echo "$ac_res" >&6; }
4a7f3eb2 14732
ad6254c5 14733fi
ec6a6fbe
AK
14734as_val=`eval 'as_val=${'$as_ac_Header'}
14735 $as_echo "$as_val"'`
14736 if test "x$as_val" = x""yes; then
ad6254c5 14737 cat >>confdefs.h <<_ACEOF
ec6a6fbe 14738#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 14739_ACEOF
0a62c911 14740
0a62c911 14741else
ec6a6fbe
AK
14742 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
14743$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 14744 { (exit 1); exit 1; }; }
80992638
AK
14745fi
14746
ad6254c5 14747done
0a62c911 14748
ad6254c5 14749fi
0a62c911 14750
a5f46f6a
AK
14751if test x$UDEV_SYNC = xyes; then
14752
14753
14754for ac_header in sys/ipc.h sys/sem.h
14755do
14756as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14757if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14758 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14759$as_echo_n "checking for $ac_header... " >&6; }
14760if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14761 $as_echo_n "(cached) " >&6
14762fi
14763ac_res=`eval 'as_val=${'$as_ac_Header'}
14764 $as_echo "$as_val"'`
14765 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14766$as_echo "$ac_res" >&6; }
14767else
14768 # Is the header compilable?
14769{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14770$as_echo_n "checking $ac_header usability... " >&6; }
14771cat >conftest.$ac_ext <<_ACEOF
14772/* confdefs.h. */
14773_ACEOF
14774cat confdefs.h >>conftest.$ac_ext
14775cat >>conftest.$ac_ext <<_ACEOF
14776/* end confdefs.h. */
14777$ac_includes_default
14778#include <$ac_header>
14779_ACEOF
14780rm -f conftest.$ac_objext
14781if { (ac_try="$ac_compile"
14782case "(($ac_try" in
14783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14784 *) ac_try_echo=$ac_try;;
14785esac
14786eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14787$as_echo "$ac_try_echo") >&5
14788 (eval "$ac_compile") 2>conftest.er1
14789 ac_status=$?
14790 grep -v '^ *+' conftest.er1 >conftest.err
14791 rm -f conftest.er1
14792 cat conftest.err >&5
14793 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14794 (exit $ac_status); } && {
14795 test -z "$ac_c_werror_flag" ||
14796 test ! -s conftest.err
14797 } && test -s conftest.$ac_objext; then
14798 ac_header_compiler=yes
14799else
14800 $as_echo "$as_me: failed program was:" >&5
14801sed 's/^/| /' conftest.$ac_ext >&5
14802
14803 ac_header_compiler=no
14804fi
14805
14806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14807{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14808$as_echo "$ac_header_compiler" >&6; }
14809
14810# Is the header present?
14811{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14812$as_echo_n "checking $ac_header presence... " >&6; }
14813cat >conftest.$ac_ext <<_ACEOF
14814/* confdefs.h. */
14815_ACEOF
14816cat confdefs.h >>conftest.$ac_ext
14817cat >>conftest.$ac_ext <<_ACEOF
14818/* end confdefs.h. */
14819#include <$ac_header>
14820_ACEOF
14821if { (ac_try="$ac_cpp conftest.$ac_ext"
14822case "(($ac_try" in
14823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14824 *) ac_try_echo=$ac_try;;
14825esac
14826eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14827$as_echo "$ac_try_echo") >&5
14828 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14829 ac_status=$?
14830 grep -v '^ *+' conftest.er1 >conftest.err
14831 rm -f conftest.er1
14832 cat conftest.err >&5
14833 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14834 (exit $ac_status); } >/dev/null && {
14835 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14836 test ! -s conftest.err
14837 }; then
14838 ac_header_preproc=yes
14839else
14840 $as_echo "$as_me: failed program was:" >&5
14841sed 's/^/| /' conftest.$ac_ext >&5
14842
14843 ac_header_preproc=no
14844fi
14845
14846rm -f conftest.err conftest.$ac_ext
14847{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14848$as_echo "$ac_header_preproc" >&6; }
14849
14850# So? What about this header?
14851case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14852 yes:no: )
14853 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14854$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14855 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14856$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14857 ac_header_preproc=yes
14858 ;;
14859 no:yes:* )
14860 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14861$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14862 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14863$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14864 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14865$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14866 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14867$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14868 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14869$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14870 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14871$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14872
14873 ;;
14874esac
14875{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14876$as_echo_n "checking for $ac_header... " >&6; }
14877if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14878 $as_echo_n "(cached) " >&6
14879else
14880 eval "$as_ac_Header=\$ac_header_preproc"
14881fi
14882ac_res=`eval 'as_val=${'$as_ac_Header'}
14883 $as_echo "$as_val"'`
14884 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14885$as_echo "$ac_res" >&6; }
14886
14887fi
14888as_val=`eval 'as_val=${'$as_ac_Header'}
14889 $as_echo "$as_val"'`
14890 if test "x$as_val" = x""yes; then
14891 cat >>confdefs.h <<_ACEOF
14892#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14893_ACEOF
14894
14895else
14896 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
14897$as_echo "$as_me: error: bailing out" >&2;}
14898 { (exit 1); exit 1; }; }
14899fi
14900
14901done
14902
14903fi
14904
a653923f
AK
14905################################################################################
14906# Extract the first word of "modprobe", so it can be a program name with args.
14907set dummy modprobe; ac_word=$2
ec6a6fbe
AK
14908{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14909$as_echo_n "checking for $ac_word... " >&6; }
72b2cb61 14910if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then
ec6a6fbe 14911 $as_echo_n "(cached) " >&6
72b2cb61
AK
14912else
14913 case $MODPROBE_CMD in
14914 [\\/]* | ?:[\\/]*)
14915 ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path.
14916 ;;
14917 *)
14918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14919for as_dir in $PATH
14920do
14921 IFS=$as_save_IFS
14922 test -z "$as_dir" && as_dir=.
14923 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 14924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
72b2cb61 14925 ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 14926 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
72b2cb61
AK
14927 break 2
14928 fi
14929done
14930done
7a197a62 14931IFS=$as_save_IFS
72b2cb61
AK
14932
14933 ;;
14934esac
14935fi
14936MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD
72b2cb61 14937if test -n "$MODPROBE_CMD"; then
ec6a6fbe
AK
14938 { $as_echo "$as_me:$LINENO: result: $MODPROBE_CMD" >&5
14939$as_echo "$MODPROBE_CMD" >&6; }
72b2cb61 14940else
ec6a6fbe
AK
14941 { $as_echo "$as_me:$LINENO: result: no" >&5
14942$as_echo "no" >&6; }
72b2cb61
AK
14943fi
14944
a653923f 14945
7a197a62 14946
a653923f 14947if test x$MODPROBE_CMD != x; then
72b2cb61
AK
14948
14949cat >>confdefs.h <<_ACEOF
14950#define MODPROBE_CMD "$MODPROBE_CMD"
14951_ACEOF
14952
a653923f
AK
14953fi
14954
80992638 14955################################################################################
93bd259b
AK
14956
14957
14958if test "$BUILD_DMEVENTD" = yes; then
14959
14960# Check whether --with-dmeventd-pidfile was given.
14961if test "${with_dmeventd_pidfile+set}" = set; then
14962 withval=$with_dmeventd_pidfile; cat >>confdefs.h <<_ACEOF
14963#define DMEVENTD_PIDFILE "$withval"
14964_ACEOF
14965
14966else
14967 cat >>confdefs.h <<_ACEOF
14968#define DMEVENTD_PIDFILE "/var/run/dmeventd.pid"
14969_ACEOF
14970
14971fi
14972
14973fi
14974
14975
14976
14977if test "$BUILD_DMEVENTD" = yes; then
14978 dmeventd_prefix="$exec_prefix"
14979 if test "x$dmeventd_prefix" = "xNONE"; then
14980 dmeventd_prefix="$prefix"
14981 fi
14982 if test "x$dmeventd_prefix" = "xNONE"; then
14983 dmeventd_prefix=""
14984 fi
14985
14986# Check whether --with-dmeventd-path was given.
14987if test "${with_dmeventd_path+set}" = set; then
14988 withval=$with_dmeventd_path; cat >>confdefs.h <<_ACEOF
14989#define DMEVENTD_PATH "$withval"
14990_ACEOF
14991
14992else
14993 cat >>confdefs.h <<_ACEOF
14994#define DMEVENTD_PATH "$dmeventd_prefix/sbin/dmeventd"
14995_ACEOF
14996
14997fi
14998
14999fi
15000
15001################################################################################
ec6a6fbe
AK
15002{ $as_echo "$as_me:$LINENO: checking for kernel interface choice" >&5
15003$as_echo_n "checking for kernel interface choice... " >&6; }
93bd259b
AK
15004
15005# Check whether --with-interface was given.
15006if test "${with_interface+set}" = set; then
15007 withval=$with_interface; interface="$withval"
15008else
15009 interface=ioctl
15010fi
15011
15012if [ "x$interface" != xioctl ];
15013then
ec6a6fbe
AK
15014 { { $as_echo "$as_me:$LINENO: error: --with-interface=ioctl required. fs no longer supported." >&5
15015$as_echo "$as_me: error: --with-interface=ioctl required. fs no longer supported." >&2;}
93bd259b
AK
15016 { (exit 1); exit 1; }; }
15017fi
ec6a6fbe
AK
15018{ $as_echo "$as_me:$LINENO: result: $interface" >&5
15019$as_echo "$interface" >&6; }
93bd259b
AK
15020
15021################################################################################
2c44337b 15022DM_LIB_VERSION="\"`cat VERSION_DM 2>/dev/null || echo Unknown`\""
24bbc4d7
AK
15023
15024cat >>confdefs.h <<_ACEOF
15025#define DM_LIB_VERSION $DM_LIB_VERSION
15026_ACEOF
15027
15028
ec6a6fbe 15029DM_LIB_PATCHLEVEL=`cat VERSION_DM | $AWK -F '[-. ]' '{printf "%s.%s.%s",$1,$2,$3}'`
7e3fe830 15030
d0191583 15031LVM_VERSION="\"`cat VERSION 2>/dev/null || echo Unknown`\""
fae0c576 15032
ec6a6fbe 15033VER=`cat VERSION`
bf456146 15034LVM_RELEASE_DATE="\"`echo $VER | $SED 's/.* (//;s/).*//'`\""
ec6a6fbe
AK
15035VER=`echo "$VER" | $AWK '{print $1}'`
15036LVM_RELEASE="\"`echo "$VER" | $AWK -F '-' '{print $2}'`\""
15037VER=`echo "$VER" | $AWK -F '-' '{print $1}'`
15038LVM_MAJOR=`echo "$VER" | $AWK -F '.' '{print $1}'`
15039LVM_MINOR=`echo "$VER" | $AWK -F '.' '{print $2}'`
bf456146
AK
15040LVM_PATCHLEVEL=`echo "$VER" | $AWK -F '[(.]' '{print $3}'`
15041LVM_LIBAPI=`echo "$VER" | $AWK -F '[()]' '{print $2}'`
ec6a6fbe 15042
80992638 15043################################################################################
fae0c576 15044
83912faa 15045
795ca3e5
AK
15046
15047
15048
15049
15050
15051
5a52dca9 15052
8ef2b021 15053
199e490e 15054
69792976
AK
15055
15056
15057
d0191583 15058
69792976 15059
8106cdd5
AK
15060
15061
15062
15063
15064
d68a82ec 15065
036f273a 15066
7d1552c9 15067
8106cdd5 15068
0a62c911 15069
8106cdd5 15070
4a7f3eb2 15071
4922197a
AK
15072
15073
d8ac0fbc 15074
1a9ea74d 15075
8a2fc586
AK
15076
15077
d0191583 15078
93bd259b
AK
15079
15080
15081
15082
15083
d0191583
JM
15084
15085
15086
15087
15088
8a2fc586 15089
8ce0cbda 15090
8b1a3214 15091
ec6a6fbe
AK
15092
15093
15094
15095
e2997b73
AK
15096
15097
15098
15099
15100
15101
a946372e
AK
15102
15103
15104
15105
15106
15107
15108
15109
15110
15111
15112
ec6a6fbe 15113
33f732c5 15114
66e941e8 15115
d3c8211f 15116
7e3fe830 15117
a5f46f6a
AK
15118
15119
15120
572fefeb 15121
bf456146 15122
68f2de6d
AK
15123
15124
80992638 15125################################################################################
a946372e 15126ac_config_files="$ac_config_files Makefile make.tmpl daemons/Makefile daemons/clvmd/Makefile daemons/clogd/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/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/Makefile test/Makefile test/api/Makefile tools/Makefile udev/Makefile"
7a197a62 15127
ad6254c5 15128cat >confcache <<\_ACEOF
795ca3e5
AK
15129# This file is a shell script that caches the results of configure
15130# tests run on this system so they can be shared between configure
ad6254c5
AK
15131# scripts and configure runs, see configure's option --config-cache.
15132# It is not useful on other systems. If it contains results you don't
15133# want to keep, you may remove or edit it.
795ca3e5 15134#
ad6254c5
AK
15135# config.status only pays attention to the cache file if you give it
15136# the --recheck option to rerun configure.
795ca3e5 15137#
ad6254c5
AK
15138# `ac_cv_env_foo' variables (set or unset) will be overridden when
15139# loading this file, other *unset* `ac_cv_foo' will be assigned the
15140# following values.
15141
15142_ACEOF
15143
795ca3e5
AK
15144# The following way of writing the cache mishandles newlines in values,
15145# but we know of no workaround that is simple, portable, and efficient.
7a197a62 15146# So, we kill variables containing newlines.
795ca3e5
AK
15147# Ultrix sh set writes to stderr and can't be redirected directly,
15148# and sets the high bit in the cache file unless we assign to the vars.
7a197a62
AK
15149(
15150 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15151 eval ac_val=\$$ac_var
15152 case $ac_val in #(
15153 *${as_nl}*)
15154 case $ac_var in #(
ec6a6fbe
AK
15155 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
15156$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7a197a62
AK
15157 esac
15158 case $ac_var in #(
15159 _ | IFS | as_nl) ;; #(
ec6a6fbe 15160 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7a197a62
AK
15161 *) $as_unset $ac_var ;;
15162 esac ;;
15163 esac
15164 done
15165
ad6254c5 15166 (set) 2>&1 |
7a197a62
AK
15167 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15168 *${as_nl}ac_space=\ *)
ad6254c5
AK
15169 # `set' does not quote correctly, so add quotes (double-quote
15170 # substitution turns \\\\ into \\, and sed turns \\ into \).
15171 sed -n \
8a2fc586
AK
15172 "s/'/'\\\\''/g;
15173 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7a197a62 15174 ;; #(
ad6254c5
AK
15175 *)
15176 # `set' quotes correctly as required by POSIX, so do not add quotes.
7a197a62 15177 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
ad6254c5 15178 ;;
7a197a62
AK
15179 esac |
15180 sort
15181) |
ad6254c5 15182 sed '
7a197a62 15183 /^ac_cv_env_/b end
ad6254c5 15184 t clear
7a197a62 15185 :clear
ad6254c5
AK
15186 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15187 t end
7a197a62
AK
15188 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15189 :end' >>confcache
15190if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15191 if test -w "$cache_file"; then
15192 test "x$cache_file" != "x/dev/null" &&
ec6a6fbe
AK
15193 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
15194$as_echo "$as_me: updating cache $cache_file" >&6;}
ad6254c5 15195 cat confcache >$cache_file
795ca3e5 15196 else
ec6a6fbe
AK
15197 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
15198$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
795ca3e5
AK
15199 fi
15200fi
15201rm -f confcache
15202
795ca3e5
AK
15203test "x$prefix" = xNONE && prefix=$ac_default_prefix
15204# Let make expand exec_prefix.
15205test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15206
72b2cb61 15207DEFS=-DHAVE_CONFIG_H
ad6254c5
AK
15208
15209ac_libobjs=
15210ac_ltlibobjs=
15211for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15212 # 1. Remove the extension, and $U if already installed.
7a197a62 15213 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
ec6a6fbe 15214 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7a197a62
AK
15215 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15216 # will be set to the directory where LIBOBJS objects are built.
15217 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15218 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
ad6254c5
AK
15219done
15220LIBOBJS=$ac_libobjs
80992638 15221
ad6254c5
AK
15222LTLIBOBJS=$ac_ltlibobjs
15223
15224
15225
15226: ${CONFIG_STATUS=./config.status}
ec6a6fbe 15227ac_write_fail=0
ad6254c5
AK
15228ac_clean_files_save=$ac_clean_files
15229ac_clean_files="$ac_clean_files $CONFIG_STATUS"
ec6a6fbe
AK
15230{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15231$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15232cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5
AK
15233#! $SHELL
15234# Generated by $as_me.
795ca3e5 15235# Run this file to recreate the current configuration.
795ca3e5 15236# Compiler output produced by configure, useful for debugging
ad6254c5
AK
15237# configure, is in config.log if it exists.
15238
15239debug=false
15240ac_cs_recheck=false
15241ac_cs_silent=false
15242SHELL=\${CONFIG_SHELL-$SHELL}
15243_ACEOF
15244
ec6a6fbe 15245cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ad6254c5
AK
15246## --------------------- ##
15247## M4sh Initialization. ##
15248## --------------------- ##
15249
25fbec5b
AK
15250# Be more Bourne compatible
15251DUALCASE=1; export DUALCASE # for MKS sh
ad6254c5
AK
15252if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15253 emulate sh
15254 NULLCMD=:
ec6a6fbe 15255 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
ad6254c5
AK
15256 # is contrary to our usage. Disable this feature.
15257 alias -g '${1+"$@"}'='"$@"'
7a197a62
AK
15258 setopt NO_GLOB_SUBST
15259else
25fbec5b
AK
15260 case `(set -o) 2>/dev/null` in
15261 *posix*) set -o posix ;;
15262esac
15263
7a197a62 15264fi
25fbec5b
AK
15265
15266
7a197a62
AK
15267
15268
15269# PATH needs CR
15270# Avoid depending upon Character Ranges.
15271as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15272as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15273as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15274as_cr_digits='0123456789'
15275as_cr_alnum=$as_cr_Letters$as_cr_digits
15276
ec6a6fbe
AK
15277as_nl='
15278'
15279export as_nl
15280# Printing a long string crashes Solaris 7 /usr/bin/printf.
15281as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15282as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15283as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15284if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15285 as_echo='printf %s\n'
15286 as_echo_n='printf %s'
15287else
15288 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15289 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15290 as_echo_n='/usr/ucb/echo -n'
68f2de6d 15291 else
ec6a6fbe
AK
15292 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15293 as_echo_n_body='eval
15294 arg=$1;
15295 case $arg in
15296 *"$as_nl"*)
15297 expr "X$arg" : "X\\(.*\\)$as_nl";
15298 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15299 esac;
15300 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15301 '
15302 export as_echo_n_body
15303 as_echo_n='sh -c $as_echo_n_body as_echo'
68f2de6d 15304 fi
ec6a6fbe
AK
15305 export as_echo_body
15306 as_echo='sh -c $as_echo_body as_echo'
15307fi
15308
15309# The user is always right.
15310if test "${PATH_SEPARATOR+set}" != set; then
15311 PATH_SEPARATOR=:
15312 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15313 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15314 PATH_SEPARATOR=';'
15315 }
ad6254c5
AK
15316fi
15317
15318# Support unset when possible.
8a2fc586 15319if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
ad6254c5
AK
15320 as_unset=unset
15321else
15322 as_unset=false
15323fi
8106cdd5 15324
ad6254c5 15325
7a197a62
AK
15326# IFS
15327# We need space, tab and new line, in precisely that order. Quoting is
15328# there to prevent editors from complaining about space-tab.
15329# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15330# splitting by setting IFS to empty value.)
7a197a62
AK
15331IFS=" "" $as_nl"
15332
15333# Find who we are. Look in the path if we contain no directory separator.
15334case $0 in
15335 *[\\/]* ) as_myself=$0 ;;
15336 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15337for as_dir in $PATH
15338do
15339 IFS=$as_save_IFS
15340 test -z "$as_dir" && as_dir=.
15341 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15342done
15343IFS=$as_save_IFS
15344
15345 ;;
15346esac
15347# We did not find ourselves, most probably we were run as `sh COMMAND'
15348# in which case we are not to be found in the path.
15349if test "x$as_myself" = x; then
15350 as_myself=$0
15351fi
15352if test ! -f "$as_myself"; then
ec6a6fbe 15353 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7a197a62
AK
15354 { (exit 1); exit 1; }
15355fi
15356
ad6254c5 15357# Work around bugs in pre-3.0 UWIN ksh.
7a197a62
AK
15358for as_var in ENV MAIL MAILPATH
15359do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15360done
ad6254c5
AK
15361PS1='$ '
15362PS2='> '
15363PS4='+ '
15364
15365# NLS nuisances.
ec6a6fbe
AK
15366LC_ALL=C
15367export LC_ALL
15368LANGUAGE=C
15369export LANGUAGE
8106cdd5 15370
ad6254c5 15371# Required to use basename.
7a197a62
AK
15372if expr a : '\(a\)' >/dev/null 2>&1 &&
15373 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
15374 as_expr=expr
15375else
15376 as_expr=false
15377fi
8106cdd5 15378
7a197a62 15379if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
ad6254c5
AK
15380 as_basename=basename
15381else
15382 as_basename=false
15383fi
15384
15385
15386# Name of the executable.
7a197a62 15387as_me=`$as_basename -- "$0" ||
ad6254c5
AK
15388$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15389 X"$0" : 'X\(//\)$' \| \
7a197a62 15390 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 15391$as_echo X/"$0" |
7a197a62
AK
15392 sed '/^.*\/\([^/][^/]*\)\/*$/{
15393 s//\1/
15394 q
15395 }
15396 /^X\/\(\/\/\)$/{
15397 s//\1/
15398 q
15399 }
15400 /^X\/\(\/\).*/{
15401 s//\1/
15402 q
15403 }
15404 s/.*/./; q'`
ad6254c5 15405
7a197a62
AK
15406# CDPATH.
15407$as_unset CDPATH
ad6254c5
AK
15408
15409
ad6254c5 15410
ad6254c5
AK
15411 as_lineno_1=$LINENO
15412 as_lineno_2=$LINENO
ad6254c5 15413 test "x$as_lineno_1" != "x$as_lineno_2" &&
7a197a62 15414 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
795ca3e5 15415
ad6254c5
AK
15416 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15417 # uniformly replaced by the line number. The first 'sed' inserts a
7a197a62
AK
15418 # line-number line after each line using $LINENO; the second 'sed'
15419 # does the real work. The second script uses 'N' to pair each
15420 # line-number line with the line containing $LINENO, and appends
15421 # trailing '-' during substitution so that $LINENO is not a special
15422 # case at line end.
ad6254c5 15423 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7a197a62
AK
15424 # scripts with optimization help from Paolo Bonzini. Blame Lee
15425 # E. McMahon (1931-1989) for sed's syntax. :-)
15426 sed -n '
15427 p
15428 /[$]LINENO/=
15429 ' <$as_myself |
ad6254c5 15430 sed '
7a197a62
AK
15431 s/[$]LINENO.*/&-/
15432 t lineno
15433 b
15434 :lineno
ad6254c5 15435 N
7a197a62
AK
15436 :loop
15437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
ad6254c5 15438 t loop
7a197a62 15439 s/-\n.*//
ad6254c5 15440 ' >$as_me.lineno &&
7a197a62 15441 chmod +x "$as_me.lineno" ||
ec6a6fbe 15442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
ad6254c5
AK
15443 { (exit 1); exit 1; }; }
15444
15445 # Don't try to exec as it changes $[0], causing all sort of problems
15446 # (the dirname of $[0] is not the place where we might find the
7a197a62
AK
15447 # original and so on. Autoconf is especially sensitive to this).
15448 . "./$as_me.lineno"
ad6254c5
AK
15449 # Exit status is that of the last command.
15450 exit
15451}
15452
15453
7a197a62
AK
15454if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15455 as_dirname=dirname
15456else
15457 as_dirname=false
15458fi
15459
15460ECHO_C= ECHO_N= ECHO_T=
15461case `echo -n x` in
15462-n*)
15463 case `echo 'x\c'` in
15464 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15465 *) ECHO_C='\c';;
15466 esac;;
15467*)
15468 ECHO_N='-n';;
ad6254c5 15469esac
7a197a62
AK
15470if expr a : '\(a\)' >/dev/null 2>&1 &&
15471 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
15472 as_expr=expr
15473else
15474 as_expr=false
15475fi
80992638 15476
ad6254c5 15477rm -f conf$$ conf$$.exe conf$$.file
7a197a62
AK
15478if test -d conf$$.dir; then
15479 rm -f conf$$.dir/conf$$.file
15480else
15481 rm -f conf$$.dir
ec6a6fbe
AK
15482 mkdir conf$$.dir 2>/dev/null
15483fi
15484if (echo >conf$$.file) 2>/dev/null; then
15485 if ln -s conf$$.file conf$$ 2>/dev/null; then
15486 as_ln_s='ln -s'
15487 # ... but there are two gotchas:
15488 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15489 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15490 # In both cases, we have to default to `cp -p'.
15491 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15492 as_ln_s='cp -p'
15493 elif ln conf$$.file conf$$ 2>/dev/null; then
15494 as_ln_s=ln
15495 else
ad6254c5 15496 as_ln_s='cp -p'
ec6a6fbe 15497 fi
ad6254c5
AK
15498else
15499 as_ln_s='cp -p'
15500fi
7a197a62
AK
15501rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15502rmdir conf$$.dir 2>/dev/null
8106cdd5 15503
ad6254c5
AK
15504if mkdir -p . 2>/dev/null; then
15505 as_mkdir_p=:
15506else
8a2fc586 15507 test -d ./-p && rmdir ./-p
ad6254c5
AK
15508 as_mkdir_p=false
15509fi
15510
25fbec5b
AK
15511if test -x / >/dev/null 2>&1; then
15512 as_test_x='test -x'
7a197a62 15513else
25fbec5b
AK
15514 if ls -dL / >/dev/null 2>&1; then
15515 as_ls_L_option=L
15516 else
15517 as_ls_L_option=
15518 fi
15519 as_test_x='
15520 eval sh -c '\''
15521 if test -d "$1"; then
ec6a6fbe 15522 test -d "$1/.";
25fbec5b
AK
15523 else
15524 case $1 in
ec6a6fbe 15525 -*)set "./$1";;
25fbec5b
AK
15526 esac;
15527 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
15528 ???[sx]*):;;*)false;;esac;fi
15529 '\'' sh
15530 '
7a197a62 15531fi
25fbec5b 15532as_executable_p=$as_test_x
ad6254c5
AK
15533
15534# Sed expression to map a string onto a valid CPP name.
8a2fc586 15535as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
15536
15537# Sed expression to map a string onto a valid variable name.
8a2fc586 15538as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
15539
15540
ad6254c5
AK
15541exec 6>&1
15542
7a197a62 15543# Save the log message, to keep $[0] and so on meaningful, and to
ad6254c5 15544# report actual input values of CONFIG_FILES etc. instead of their
7a197a62
AK
15545# values after options handling.
15546ac_log="
ad6254c5 15547This file was extended by $as_me, which was
ec6a6fbe 15548generated by GNU Autoconf 2.63. Invocation command line was
ad6254c5
AK
15549
15550 CONFIG_FILES = $CONFIG_FILES
15551 CONFIG_HEADERS = $CONFIG_HEADERS
15552 CONFIG_LINKS = $CONFIG_LINKS
15553 CONFIG_COMMANDS = $CONFIG_COMMANDS
15554 $ $0 $@
15555
7a197a62
AK
15556on `(hostname || uname -n) 2>/dev/null | sed 1q`
15557"
15558
ad6254c5
AK
15559_ACEOF
15560
ec6a6fbe
AK
15561case $ac_config_files in *"
15562"*) set x $ac_config_files; shift; ac_config_files=$*;;
15563esac
15564
15565case $ac_config_headers in *"
15566"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15567esac
15568
15569
15570cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5 15571# Files that config.status was made for.
68f2de6d
AK
15572config_files="$ac_config_files"
15573config_headers="$ac_config_headers"
ad6254c5 15574
7a197a62 15575_ACEOF
ad6254c5 15576
ec6a6fbe 15577cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ad6254c5
AK
15578ac_cs_usage="\
15579\`$as_me' instantiates files from templates according to the
15580current configuration.
15581
ec6a6fbe 15582Usage: $0 [OPTION]... [FILE]...
ad6254c5
AK
15583
15584 -h, --help print this help, then exit
25fbec5b 15585 -V, --version print version number and configuration settings, then exit
ec6a6fbe
AK
15586 -q, --quiet, --silent
15587 do not print progress messages
ad6254c5
AK
15588 -d, --debug don't remove temporary files
15589 --recheck update $as_me by reconfiguring in the same conditions
ec6a6fbe
AK
15590 --file=FILE[:TEMPLATE]
15591 instantiate the configuration file FILE
15592 --header=FILE[:TEMPLATE]
15593 instantiate the configuration header FILE
ad6254c5
AK
15594
15595Configuration files:
15596$config_files
15597
72b2cb61
AK
15598Configuration headers:
15599$config_headers
15600
ad6254c5 15601Report bugs to <bug-autoconf@gnu.org>."
ad6254c5 15602
7a197a62 15603_ACEOF
ec6a6fbe 15604cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5
AK
15605ac_cs_version="\\
15606config.status
ec6a6fbe
AK
15607configured by $0, generated by GNU Autoconf 2.63,
15608 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
ad6254c5 15609
ec6a6fbe 15610Copyright (C) 2008 Free Software Foundation, Inc.
ad6254c5
AK
15611This config.status script is free software; the Free Software Foundation
15612gives unlimited permission to copy, distribute and modify it."
7a197a62
AK
15613
15614ac_pwd='$ac_pwd'
15615srcdir='$srcdir'
15616INSTALL='$INSTALL'
fddafd51 15617MKDIR_P='$MKDIR_P'
ec6a6fbe
AK
15618AWK='$AWK'
15619test -n "\$AWK" || AWK=awk
ad6254c5
AK
15620_ACEOF
15621
ec6a6fbe
AK
15622cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15623# The default lists apply if the user does not specify any file.
ad6254c5
AK
15624ac_need_defaults=:
15625while test $# != 0
15626do
15627 case $1 in
15628 --*=*)
7a197a62
AK
15629 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15630 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
ad6254c5
AK
15631 ac_shift=:
15632 ;;
7a197a62 15633 *)
ad6254c5
AK
15634 ac_option=$1
15635 ac_optarg=$2
15636 ac_shift=shift
15637 ;;
ad6254c5
AK
15638 esac
15639
15640 case $ac_option in
15641 # Handling of the options.
ad6254c5
AK
15642 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15643 ac_cs_recheck=: ;;
7a197a62 15644 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
ec6a6fbe 15645 $as_echo "$ac_cs_version"; exit ;;
7a197a62 15646 --debug | --debu | --deb | --de | --d | -d )
ad6254c5
AK
15647 debug=: ;;
15648 --file | --fil | --fi | --f )
15649 $ac_shift
ec6a6fbe
AK
15650 case $ac_optarg in
15651 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15652 esac
15653 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
ad6254c5
AK
15654 ac_need_defaults=false;;
15655 --header | --heade | --head | --hea )
15656 $ac_shift
ec6a6fbe
AK
15657 case $ac_optarg in
15658 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15659 esac
15660 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
ad6254c5 15661 ac_need_defaults=false;;
7a197a62
AK
15662 --he | --h)
15663 # Conflict between --help and --header
ec6a6fbe 15664 { $as_echo "$as_me: error: ambiguous option: $1
7a197a62
AK
15665Try \`$0 --help' for more information." >&2
15666 { (exit 1); exit 1; }; };;
15667 --help | --hel | -h )
ec6a6fbe 15668 $as_echo "$ac_cs_usage"; exit ;;
ad6254c5
AK
15669 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15670 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15671 ac_cs_silent=: ;;
15672
15673 # This is an error.
ec6a6fbe 15674 -*) { $as_echo "$as_me: error: unrecognized option: $1
7a197a62 15675Try \`$0 --help' for more information." >&2
ad6254c5
AK
15676 { (exit 1); exit 1; }; } ;;
15677
7a197a62
AK
15678 *) ac_config_targets="$ac_config_targets $1"
15679 ac_need_defaults=false ;;
ad6254c5
AK
15680
15681 esac
15682 shift
15683done
15684
15685ac_configure_extra_args=
15686
15687if $ac_cs_silent; then
15688 exec 6>/dev/null
15689 ac_configure_extra_args="$ac_configure_extra_args --silent"
15690fi
15691
15692_ACEOF
ec6a6fbe 15693cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5 15694if \$ac_cs_recheck; then
ec6a6fbe
AK
15695 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15696 shift
15697 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15698 CONFIG_SHELL='$SHELL'
7a197a62 15699 export CONFIG_SHELL
ec6a6fbe 15700 exec "\$@"
ad6254c5
AK
15701fi
15702
15703_ACEOF
ec6a6fbe 15704cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
15705exec 5>>config.log
15706{
15707 echo
15708 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15709## Running $as_me. ##
15710_ASBOX
ec6a6fbe 15711 $as_echo "$ac_log"
7a197a62 15712} >&5
ad6254c5 15713
7a197a62 15714_ACEOF
ec6a6fbe 15715cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7a197a62 15716_ACEOF
ad6254c5 15717
ec6a6fbe 15718cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
15719
15720# Handling of arguments.
ad6254c5
AK
15721for ac_config_target in $ac_config_targets
15722do
7a197a62
AK
15723 case $ac_config_target in
15724 "lib/misc/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;;
15725 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15726 "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;;
15727 "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;;
15728 "daemons/clvmd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;;
a946372e 15729 "daemons/clogd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clogd/Makefile" ;;
93bd259b
AK
15730 "daemons/dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/Makefile" ;;
15731 "daemons/dmeventd/libdevmapper-event.pc") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/libdevmapper-event.pc" ;;
04f06bc9 15732 "daemons/dmeventd/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/Makefile" ;;
93bd259b
AK
15733 "daemons/dmeventd/plugins/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/mirror/Makefile" ;;
15734 "daemons/dmeventd/plugins/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/snapshot/Makefile" ;;
7a197a62 15735 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
93bd259b
AK
15736 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
15737 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
7a197a62
AK
15738 "lib/format1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;;
15739 "lib/format_pool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;;
15740 "lib/locking/Makefile") CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;;
15741 "lib/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;;
ec6a6fbe 15742 "lib/misc/lvm-version.h") CONFIG_FILES="$CONFIG_FILES lib/misc/lvm-version.h" ;;
7a197a62 15743 "lib/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;;
93bd259b
AK
15744 "libdm/Makefile") CONFIG_FILES="$CONFIG_FILES libdm/Makefile" ;;
15745 "libdm/libdevmapper.pc") CONFIG_FILES="$CONFIG_FILES libdm/libdevmapper.pc" ;;
e0c64c6c 15746 "liblvm/Makefile") CONFIG_FILES="$CONFIG_FILES liblvm/Makefile" ;;
70046623 15747 "liblvm/liblvm2app.pc") CONFIG_FILES="$CONFIG_FILES liblvm/liblvm2app.pc" ;;
93bd259b
AK
15748 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
15749 "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
75ad7143 15750 "scripts/clvmd_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/clvmd_init_red_hat" ;;
7a197a62 15751 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
93bd259b 15752 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
c7e363f9 15753 "test/api/Makefile") CONFIG_FILES="$CONFIG_FILES test/api/Makefile" ;;
7a197a62 15754 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
a5f46f6a 15755 "udev/Makefile") CONFIG_FILES="$CONFIG_FILES udev/Makefile" ;;
7a197a62 15756
ec6a6fbe
AK
15757 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15758$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
ad6254c5 15759 { (exit 1); exit 1; }; };;
80992638 15760 esac
ad6254c5
AK
15761done
15762
7a197a62 15763
ad6254c5
AK
15764# If the user did not use the arguments to specify the items to instantiate,
15765# then the envvar interface is used. Set only those that are not.
15766# We use the long form for the default assignment because of an extremely
15767# bizarre bug on SunOS 4.1.3.
15768if $ac_need_defaults; then
15769 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
72b2cb61 15770 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
ad6254c5
AK
15771fi
15772
15773# Have a temporary directory for convenience. Make it in the build tree
7a197a62 15774# simply because there is no reason against having it here, and in addition,
ad6254c5 15775# creating and moving files from /tmp can sometimes cause problems.
7a197a62
AK
15776# Hook for its removal unless debugging.
15777# Note that there is a small window in which the directory will not be cleaned:
15778# after its creation but before its name has been assigned to `$tmp'.
ad6254c5
AK
15779$debug ||
15780{
7a197a62
AK
15781 tmp=
15782 trap 'exit_status=$?
15783 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15784' 0
ad6254c5
AK
15785 trap '{ (exit 1); exit 1; }' 1 2 13 15
15786}
ad6254c5
AK
15787# Create a (secure) tmp directory for tmp files.
15788
15789{
7a197a62 15790 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
ad6254c5
AK
15791 test -n "$tmp" && test -d "$tmp"
15792} ||
15793{
7a197a62
AK
15794 tmp=./conf$$-$RANDOM
15795 (umask 077 && mkdir "$tmp")
ad6254c5
AK
15796} ||
15797{
ec6a6fbe 15798 $as_echo "$as_me: cannot create a temporary directory in ." >&2
ad6254c5
AK
15799 { (exit 1); exit 1; }
15800}
15801
ec6a6fbe
AK
15802# Set up the scripts for CONFIG_FILES section.
15803# No need to generate them if there are no CONFIG_FILES.
15804# This happens for instance with `./config.status config.h'.
1995c9ff 15805if test -n "$CONFIG_FILES"; then
7a197a62 15806
68f2de6d 15807
ec6a6fbe
AK
15808ac_cr='\r'
15809ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15810if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15811 ac_cs_awk_cr='\\r'
15812else
15813 ac_cs_awk_cr=$ac_cr
1995c9ff 15814fi
7a197a62 15815
ec6a6fbe 15816echo 'BEGIN {' >"$tmp/subs1.awk" &&
1995c9ff 15817_ACEOF
7a197a62 15818
8106cdd5 15819
ec6a6fbe
AK
15820{
15821 echo "cat >conf$$subs.awk <<_ACEOF" &&
15822 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15823 echo "_ACEOF"
15824} >conf$$subs.sh ||
15825 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
15826$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
15827 { (exit 1); exit 1; }; }
15828ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
1995c9ff
AK
15829ac_delim='%!_!# '
15830for ac_last_try in false false false false false :; do
ec6a6fbe
AK
15831 . ./conf$$subs.sh ||
15832 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
15833$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
15834 { (exit 1); exit 1; }; }
15835
15836 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15837 if test $ac_delim_n = $ac_delim_num; then
1995c9ff
AK
15838 break
15839 elif $ac_last_try; then
ec6a6fbe
AK
15840 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
15841$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
1995c9ff
AK
15842 { (exit 1); exit 1; }; }
15843 else
15844 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15845 fi
15846done
ec6a6fbe
AK
15847rm -f conf$$subs.sh
15848
15849cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15850cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15851_ACEOF
15852sed -n '
15853h
15854s/^/S["/; s/!.*/"]=/
15855p
15856g
15857s/^[^!]*!//
15858:repl
15859t repl
15860s/'"$ac_delim"'$//
15861t delim
15862:nl
15863h
15864s/\(.\{148\}\).*/\1/
15865t more1
15866s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15867p
15868n
15869b repl
15870:more1
15871s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15872p
15873g
15874s/.\{148\}//
15875t nl
15876:delim
15877h
15878s/\(.\{148\}\).*/\1/
15879t more2
15880s/["\\]/\\&/g; s/^/"/; s/$/"/
15881p
15882b
15883:more2
15884s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15885p
15886g
15887s/.\{148\}//
15888t delim
15889' <conf$$subs.awk | sed '
15890/^[^""]/{
15891 N
15892 s/\n//
15893}
15894' >>$CONFIG_STATUS || ac_write_fail=1
15895rm -f conf$$subs.awk
15896cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15897_ACAWK
15898cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15899 for (key in S) S_is_set[key] = 1
15900 FS = "\a"
7a197a62 15901
ec6a6fbe
AK
15902}
15903{
15904 line = $ 0
15905 nfields = split(line, field, "@")
15906 substed = 0
15907 len = length(field[1])
15908 for (i = 2; i < nfields; i++) {
15909 key = field[i]
15910 keylen = length(key)
15911 if (S_is_set[key]) {
15912 value = S[key]
15913 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15914 len += length(value) + length(field[++i])
15915 substed = 1
15916 } else
15917 len += 1 + keylen
15918 }
15919
15920 print line
15921}
fddafd51 15922
ec6a6fbe 15923_ACAWK
1995c9ff 15924_ACEOF
ec6a6fbe
AK
15925cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15926if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15927 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15928else
15929 cat
15930fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15931 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
15932$as_echo "$as_me: error: could not setup config files machinery" >&2;}
15933 { (exit 1); exit 1; }; }
7a197a62
AK
15934_ACEOF
15935
7a197a62
AK
15936# VPATH may cause trouble with some makes, so we remove $(srcdir),
15937# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15938# trailing colons and then remove the whole line if VPATH becomes empty
15939# (actually we leave an empty line to preserve line numbers).
15940if test "x$srcdir" = x.; then
15941 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15942s/:*\$(srcdir):*/:/
15943s/:*\${srcdir}:*/:/
15944s/:*@srcdir@:*/:/
15945s/^\([^=]*=[ ]*\):*/\1/
15946s/:*$//
15947s/^[^=]*=[ ]*$//
15948}'
15949fi
15950
ec6a6fbe 15951cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
15952fi # test -n "$CONFIG_FILES"
15953
ec6a6fbe
AK
15954# Set up the scripts for CONFIG_HEADERS section.
15955# No need to generate them if there are no CONFIG_HEADERS.
15956# This happens for instance with `./config.status Makefile'.
15957if test -n "$CONFIG_HEADERS"; then
15958cat >"$tmp/defines.awk" <<\_ACAWK ||
15959BEGIN {
15960_ACEOF
15961
15962# Transform confdefs.h into an awk script `defines.awk', embedded as
15963# here-document in config.status, that substitutes the proper values into
15964# config.h.in to produce config.h.
15965
15966# Create a delimiter string that does not exist in confdefs.h, to ease
15967# handling of long lines.
15968ac_delim='%!_!# '
15969for ac_last_try in false false :; do
15970 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15971 if test -z "$ac_t"; then
15972 break
15973 elif $ac_last_try; then
15974 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
15975$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
15976 { (exit 1); exit 1; }; }
15977 else
15978 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15979 fi
15980done
15981
15982# For the awk script, D is an array of macro values keyed by name,
15983# likewise P contains macro parameters if any. Preserve backslash
15984# newline sequences.
15985
15986ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15987sed -n '
15988s/.\{148\}/&'"$ac_delim"'/g
15989t rset
15990:rset
15991s/^[ ]*#[ ]*define[ ][ ]*/ /
15992t def
15993d
15994:def
15995s/\\$//
15996t bsnl
15997s/["\\]/\\&/g
15998s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15999D["\1"]=" \3"/p
16000s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16001d
16002:bsnl
16003s/["\\]/\\&/g
16004s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16005D["\1"]=" \3\\\\\\n"\\/p
16006t cont
16007s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16008t cont
16009d
16010:cont
16011n
16012s/.\{148\}/&'"$ac_delim"'/g
16013t clear
16014:clear
16015s/\\$//
16016t bsnlc
16017s/["\\]/\\&/g; s/^/"/; s/$/"/p
16018d
16019:bsnlc
16020s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16021b cont
16022' <confdefs.h | sed '
16023s/'"$ac_delim"'/"\\\
16024"/g' >>$CONFIG_STATUS || ac_write_fail=1
16025
16026cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16027 for (key in D) D_is_set[key] = 1
16028 FS = "\a"
16029}
16030/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16031 line = \$ 0
16032 split(line, arg, " ")
16033 if (arg[1] == "#") {
16034 defundef = arg[2]
16035 mac1 = arg[3]
16036 } else {
16037 defundef = substr(arg[1], 2)
16038 mac1 = arg[2]
16039 }
16040 split(mac1, mac2, "(") #)
16041 macro = mac2[1]
16042 prefix = substr(line, 1, index(line, defundef) - 1)
16043 if (D_is_set[macro]) {
16044 # Preserve the white space surrounding the "#".
16045 print prefix "define", macro P[macro] D[macro]
16046 next
16047 } else {
16048 # Replace #undef with comments. This is necessary, for example,
16049 # in the case of _POSIX_SOURCE, which is predefined and required
16050 # on some systems where configure will not decide to define it.
16051 if (defundef == "undef") {
16052 print "/*", prefix defundef, macro, "*/"
16053 next
16054 }
16055 }
16056}
16057{ print }
16058_ACAWK
16059_ACEOF
16060cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16061 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
16062$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
16063 { (exit 1); exit 1; }; }
16064fi # test -n "$CONFIG_HEADERS"
16065
7a197a62 16066
ec6a6fbe
AK
16067eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
16068shift
16069for ac_tag
7a197a62
AK
16070do
16071 case $ac_tag in
16072 :[FHLC]) ac_mode=$ac_tag; continue;;
16073 esac
16074 case $ac_mode$ac_tag in
16075 :[FHL]*:*);;
ec6a6fbe
AK
16076 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
16077$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
7a197a62
AK
16078 { (exit 1); exit 1; }; };;
16079 :[FH]-) ac_tag=-:-;;
16080 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16081 esac
16082 ac_save_IFS=$IFS
16083 IFS=:
16084 set x $ac_tag
16085 IFS=$ac_save_IFS
16086 shift
16087 ac_file=$1
16088 shift
16089
16090 case $ac_mode in
16091 :L) ac_source=$1;;
16092 :[FH])
16093 ac_file_inputs=
16094 for ac_f
16095 do
16096 case $ac_f in
16097 -) ac_f="$tmp/stdin";;
16098 *) # Look for the file first in the build tree, then in the source tree
16099 # (if the path is not absolute). The absolute path cannot be DOS-style,
16100 # because $ac_f cannot contain `:'.
16101 test -f "$ac_f" ||
16102 case $ac_f in
16103 [\\/$]*) false;;
16104 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16105 esac ||
ec6a6fbe
AK
16106 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
16107$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
7a197a62
AK
16108 { (exit 1); exit 1; }; };;
16109 esac
ec6a6fbe
AK
16110 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16111 ac_file_inputs="$ac_file_inputs '$ac_f'"
7a197a62
AK
16112 done
16113
16114 # Let's still pretend it is `configure' which instantiates (i.e., don't
16115 # use $as_me), people would be surprised to read:
16116 # /* config.h. Generated by config.status. */
ec6a6fbe
AK
16117 configure_input='Generated from '`
16118 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16119 `' by configure.'
7a197a62
AK
16120 if test x"$ac_file" != x-; then
16121 configure_input="$ac_file. $configure_input"
ec6a6fbe
AK
16122 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
16123$as_echo "$as_me: creating $ac_file" >&6;}
7a197a62 16124 fi
ec6a6fbe
AK
16125 # Neutralize special characters interpreted by sed in replacement strings.
16126 case $configure_input in #(
16127 *\&* | *\|* | *\\* )
16128 ac_sed_conf_input=`$as_echo "$configure_input" |
16129 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16130 *) ac_sed_conf_input=$configure_input;;
16131 esac
7a197a62
AK
16132
16133 case $ac_tag in
ec6a6fbe
AK
16134 *:-:* | *:-) cat >"$tmp/stdin" \
16135 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16136$as_echo "$as_me: error: could not create $ac_file" >&2;}
16137 { (exit 1); exit 1; }; } ;;
7a197a62
AK
16138 esac
16139 ;;
80992638 16140 esac
8106cdd5 16141
7a197a62 16142 ac_dir=`$as_dirname -- "$ac_file" ||
ad6254c5 16143$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8a2fc586
AK
16144 X"$ac_file" : 'X\(//\)[^/]' \| \
16145 X"$ac_file" : 'X\(//\)$' \| \
7a197a62 16146 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 16147$as_echo X"$ac_file" |
7a197a62
AK
16148 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16149 s//\1/
16150 q
16151 }
16152 /^X\(\/\/\)[^/].*/{
16153 s//\1/
16154 q
16155 }
16156 /^X\(\/\/\)$/{
16157 s//\1/
16158 q
16159 }
16160 /^X\(\/\).*/{
16161 s//\1/
16162 q
16163 }
16164 s/.*/./; q'`
16165 { as_dir="$ac_dir"
16166 case $as_dir in #(
16167 -*) as_dir=./$as_dir;;
16168 esac
16169 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
ad6254c5 16170 as_dirs=
7a197a62
AK
16171 while :; do
16172 case $as_dir in #(
ec6a6fbe 16173 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7a197a62
AK
16174 *) as_qdir=$as_dir;;
16175 esac
16176 as_dirs="'$as_qdir' $as_dirs"
16177 as_dir=`$as_dirname -- "$as_dir" ||
ad6254c5 16178$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8a2fc586
AK
16179 X"$as_dir" : 'X\(//\)[^/]' \| \
16180 X"$as_dir" : 'X\(//\)$' \| \
7a197a62 16181 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 16182$as_echo X"$as_dir" |
7a197a62
AK
16183 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16184 s//\1/
16185 q
16186 }
16187 /^X\(\/\/\)[^/].*/{
16188 s//\1/
16189 q
16190 }
16191 /^X\(\/\/\)$/{
16192 s//\1/
16193 q
16194 }
16195 /^X\(\/\).*/{
16196 s//\1/
16197 q
16198 }
16199 s/.*/./; q'`
16200 test -d "$as_dir" && break
ad6254c5 16201 done
7a197a62 16202 test -z "$as_dirs" || eval "mkdir $as_dirs"
ec6a6fbe
AK
16203 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16204$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
ad6254c5 16205 { (exit 1); exit 1; }; }; }
ad6254c5
AK
16206 ac_builddir=.
16207
7a197a62
AK
16208case "$ac_dir" in
16209.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16210*)
ec6a6fbe 16211 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7a197a62 16212 # A ".." for each directory in $ac_dir_suffix.
ec6a6fbe 16213 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7a197a62
AK
16214 case $ac_top_builddir_sub in
16215 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16216 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16217 esac ;;
16218esac
16219ac_abs_top_builddir=$ac_pwd
16220ac_abs_builddir=$ac_pwd$ac_dir_suffix
16221# for backward compatibility:
16222ac_top_builddir=$ac_top_build_prefix
ad6254c5
AK
16223
16224case $srcdir in
7a197a62 16225 .) # We are building in place.
ad6254c5 16226 ac_srcdir=.
7a197a62
AK
16227 ac_top_srcdir=$ac_top_builddir_sub
16228 ac_abs_top_srcdir=$ac_pwd ;;
16229 [\\/]* | ?:[\\/]* ) # Absolute name.
ad6254c5 16230 ac_srcdir=$srcdir$ac_dir_suffix;
7a197a62
AK
16231 ac_top_srcdir=$srcdir
16232 ac_abs_top_srcdir=$srcdir ;;
16233 *) # Relative name.
16234 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16235 ac_top_srcdir=$ac_top_build_prefix$srcdir
16236 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
ad6254c5 16237esac
7a197a62 16238ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8a2fc586 16239
ad6254c5 16240
7a197a62
AK
16241 case $ac_mode in
16242 :F)
16243 #
16244 # CONFIG_FILE
16245 #
ad6254c5
AK
16246
16247 case $INSTALL in
16248 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7a197a62 16249 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
795ca3e5 16250 esac
fddafd51
ZK
16251 ac_MKDIR_P=$MKDIR_P
16252 case $MKDIR_P in
16253 [\\/$]* | ?:[\\/]* ) ;;
16254 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16255 esac
7a197a62 16256_ACEOF
795ca3e5 16257
ec6a6fbe 16258cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
16259# If the template does not know about datarootdir, expand it.
16260# FIXME: This hack should be removed a few years after 2.60.
16261ac_datarootdir_hack=; ac_datarootdir_seen=
16262
ec6a6fbe
AK
16263ac_sed_dataroot='
16264/datarootdir/ {
7a197a62
AK
16265 p
16266 q
16267}
16268/@datadir@/p
16269/@docdir@/p
16270/@infodir@/p
16271/@localedir@/p
16272/@mandir@/p
ec6a6fbe
AK
16273'
16274case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7a197a62
AK
16275*datarootdir*) ac_datarootdir_seen=yes;;
16276*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
ec6a6fbe
AK
16277 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16278$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
ad6254c5 16279_ACEOF
ec6a6fbe 16280cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7a197a62
AK
16281 ac_datarootdir_hack='
16282 s&@datadir@&$datadir&g
16283 s&@docdir@&$docdir&g
16284 s&@infodir@&$infodir&g
16285 s&@localedir@&$localedir&g
16286 s&@mandir@&$mandir&g
16287 s&\\\${datarootdir}&$datarootdir&g' ;;
16288esac
16289_ACEOF
16290
16291# Neutralize VPATH when `$srcdir' = `.'.
16292# Shell code in configure.ac might set extrasub.
16293# FIXME: do we really want to maintain this feature?
ec6a6fbe
AK
16294cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16295ac_sed_extra="$ac_vpsub
ad6254c5
AK
16296$extrasub
16297_ACEOF
ec6a6fbe 16298cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ad6254c5
AK
16299:t
16300/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
ec6a6fbe 16301s|@configure_input@|$ac_sed_conf_input|;t t
7a197a62 16302s&@top_builddir@&$ac_top_builddir_sub&;t t
ec6a6fbe 16303s&@top_build_prefix@&$ac_top_build_prefix&;t t
7a197a62
AK
16304s&@srcdir@&$ac_srcdir&;t t
16305s&@abs_srcdir@&$ac_abs_srcdir&;t t
16306s&@top_srcdir@&$ac_top_srcdir&;t t
16307s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16308s&@builddir@&$ac_builddir&;t t
16309s&@abs_builddir@&$ac_abs_builddir&;t t
16310s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16311s&@INSTALL@&$ac_INSTALL&;t t
fddafd51 16312s&@MKDIR_P@&$ac_MKDIR_P&;t t
7a197a62 16313$ac_datarootdir_hack
ec6a6fbe
AK
16314"
16315eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16316 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16317$as_echo "$as_me: error: could not create $ac_file" >&2;}
16318 { (exit 1); exit 1; }; }
7a197a62
AK
16319
16320test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16321 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16322 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
ec6a6fbe 16323 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7a197a62 16324which seems to be undefined. Please make sure it is defined." >&5
ec6a6fbe 16325$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7a197a62
AK
16326which seems to be undefined. Please make sure it is defined." >&2;}
16327
16328 rm -f "$tmp/stdin"
72b2cb61 16329 case $ac_file in
ec6a6fbe
AK
16330 -) cat "$tmp/out" && rm -f "$tmp/out";;
16331 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16332 esac \
16333 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16334$as_echo "$as_me: error: could not create $ac_file" >&2;}
16335 { (exit 1); exit 1; }; }
7a197a62
AK
16336 ;;
16337 :H)
16338 #
16339 # CONFIG_HEADER
16340 #
72b2cb61 16341 if test x"$ac_file" != x-; then
ec6a6fbe
AK
16342 {
16343 $as_echo "/* $configure_input */" \
16344 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16345 } >"$tmp/config.h" \
16346 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16347$as_echo "$as_me: error: could not create $ac_file" >&2;}
16348 { (exit 1); exit 1; }; }
16349 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16350 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16351$as_echo "$as_me: $ac_file is unchanged" >&6;}
72b2cb61 16352 else
ec6a6fbe
AK
16353 rm -f "$ac_file"
16354 mv "$tmp/config.h" "$ac_file" \
16355 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16356$as_echo "$as_me: error: could not create $ac_file" >&2;}
16357 { (exit 1); exit 1; }; }
72b2cb61
AK
16358 fi
16359 else
ec6a6fbe
AK
16360 $as_echo "/* $configure_input */" \
16361 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16362 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
16363$as_echo "$as_me: error: could not create -" >&2;}
16364 { (exit 1); exit 1; }; }
72b2cb61 16365 fi
7a197a62
AK
16366 ;;
16367
16368
16369 esac
16370
16371done # for ac_tag
795ca3e5 16372
795ca3e5 16373
ad6254c5
AK
16374{ (exit 0); exit 0; }
16375_ACEOF
795ca3e5 16376chmod +x $CONFIG_STATUS
ad6254c5
AK
16377ac_clean_files=$ac_clean_files_save
16378
ec6a6fbe
AK
16379test $ac_write_fail = 0 ||
16380 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
16381$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
16382 { (exit 1); exit 1; }; }
16383
ad6254c5
AK
16384
16385# configure is writing to config.log, and then calls config.status.
16386# config.status does its own redirection, appending to config.log.
16387# Unfortunately, on DOS this fails, as config.log is still kept open
16388# by configure, so config.status won't be able to write to it; its
16389# output is simply discarded. So we exec the FD to /dev/null,
16390# effectively closing config.log, so it can be properly (re)opened and
16391# appended to by config.status. When coming back to configure, we
16392# need to make the FD available again.
16393if test "$no_create" != yes; then
16394 ac_cs_success=:
16395 ac_config_status_args=
16396 test "$silent" = yes &&
16397 ac_config_status_args="$ac_config_status_args --quiet"
16398 exec 5>/dev/null
16399 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16400 exec 5>>config.log
16401 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16402 # would make configure fail if this is the last instruction.
16403 $ac_cs_success || { (exit 1); exit 1; }
16404fi
ec6a6fbe
AK
16405if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16406 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16407$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16408fi
795ca3e5 16409
2dc95e1c
AK
16410
16411if test x$ODIRECT != xyes; then
ec6a6fbe
AK
16412 { $as_echo "$as_me:$LINENO: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5
16413$as_echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;}
2dc95e1c 16414fi
This page took 1.962058 seconds and 5 git commands to generate.