]> sourceware.org Git - lvm2.git/blame - configure
Fix segfault in clvmd -R if no response from daemon received.
[lvm2.git] / configure
CommitLineData
795ca3e5 1#! /bin/sh
795ca3e5 2# Guess values for system-dependent variables and create Makefiles.
ec6a6fbe 3# Generated by GNU Autoconf 2.63.
795ca3e5 4#
7a197a62 5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
ec6a6fbe 6# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
795ca3e5
AK
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
ad6254c5
AK
9## --------------------- ##
10## M4sh Initialization. ##
11## --------------------- ##
12
25fbec5b
AK
13# Be more Bourne compatible
14DUALCASE=1; export DUALCASE # for MKS sh
ad6254c5
AK
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
ec6a6fbe 18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
ad6254c5
AK
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
7a197a62
AK
21 setopt NO_GLOB_SUBST
22else
25fbec5b
AK
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25esac
26
7a197a62 27fi
25fbec5b
AK
28
29
7a197a62
AK
30
31
32# PATH needs CR
33# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
39
ec6a6fbe
AK
40as_nl='
41'
42export as_nl
43# Printing a long string crashes Solaris 7 /usr/bin/printf.
44as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
68f2de6d 54 else
ec6a6fbe
AK
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68f2de6d 67 fi
ec6a6fbe
AK
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
ad6254c5
AK
79fi
80
81# Support unset when possible.
8a2fc586 82if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
ad6254c5
AK
83 as_unset=unset
84else
85 as_unset=false
86fi
87
88
7a197a62
AK
89# IFS
90# We need space, tab and new line, in precisely that order. Quoting is
91# there to prevent editors from complaining about space-tab.
92# (If _AS_PATH_WALK were called with IFS unset, it would disable word
93# splitting by setting IFS to empty value.)
7a197a62
AK
94IFS=" "" $as_nl"
95
96# Find who we are. Look in the path if we contain no directory separator.
97case $0 in
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100for as_dir in $PATH
101do
102 IFS=$as_save_IFS
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105done
106IFS=$as_save_IFS
107
108 ;;
109esac
110# We did not find ourselves, most probably we were run as `sh COMMAND'
111# in which case we are not to be found in the path.
112if test "x$as_myself" = x; then
113 as_myself=$0
114fi
115if test ! -f "$as_myself"; then
ec6a6fbe 116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7a197a62
AK
117 { (exit 1); exit 1; }
118fi
119
ad6254c5 120# Work around bugs in pre-3.0 UWIN ksh.
7a197a62
AK
121for as_var in ENV MAIL MAILPATH
122do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123done
ad6254c5
AK
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
ec6a6fbe
AK
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
ad6254c5
AK
133
134# Required to use basename.
7a197a62
AK
135if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
137 as_expr=expr
138else
139 as_expr=false
140fi
141
7a197a62 142if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
ad6254c5
AK
143 as_basename=basename
144else
145 as_basename=false
146fi
147
148
149# Name of the executable.
7a197a62 150as_me=`$as_basename -- "$0" ||
ad6254c5
AK
151$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
7a197a62 153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 154$as_echo X/"$0" |
7a197a62
AK
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 s//\1/
157 q
158 }
159 /^X\/\(\/\/\)$/{
160 s//\1/
161 q
162 }
163 /^X\/\(\/\).*/{
164 s//\1/
165 q
166 }
167 s/.*/./; q'`
ad6254c5 168
7a197a62
AK
169# CDPATH.
170$as_unset CDPATH
ad6254c5 171
ad6254c5 172
7a197a62
AK
173if test "x$CONFIG_SHELL" = x; then
174 if (eval ":") 2>/dev/null; then
175 as_have_required=yes
176else
177 as_have_required=no
ad6254c5
AK
178fi
179
ec6a6fbe 180 if test $as_have_required = yes && (eval ":
7a197a62
AK
181(as_func_return () {
182 (exit \$1)
183}
184as_func_success () {
185 as_func_return 0
186}
187as_func_failure () {
188 as_func_return 1
189}
190as_func_ret_success () {
191 return 0
192}
193as_func_ret_failure () {
194 return 1
195}
ad6254c5 196
7a197a62
AK
197exitcode=0
198if as_func_success; then
199 :
200else
201 exitcode=1
202 echo as_func_success failed.
203fi
ad6254c5 204
7a197a62
AK
205if as_func_failure; then
206 exitcode=1
207 echo as_func_failure succeeded.
208fi
209
210if as_func_ret_success; then
211 :
212else
213 exitcode=1
214 echo as_func_ret_success failed.
215fi
216
217if as_func_ret_failure; then
218 exitcode=1
219 echo as_func_ret_failure succeeded.
220fi
221
222if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223 :
224else
225 exitcode=1
226 echo positional parameters were not saved.
227fi
228
229test \$exitcode = 0) || { (exit 1); exit 1; }
230
231(
232 as_lineno_1=\$LINENO
233 as_lineno_2=\$LINENO
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236") 2> /dev/null; then
237 :
238else
239 as_candidate_shells=
ad6254c5 240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25fbec5b 241for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
ad6254c5
AK
242do
243 IFS=$as_save_IFS
244 test -z "$as_dir" && as_dir=.
7a197a62 245 case $as_dir in
ad6254c5 246 /*)
7a197a62
AK
247 for as_base in sh bash ksh sh5; do
248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249 done;;
250 esac
251done
252IFS=$as_save_IFS
253
254
255 for as_shell in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev/null <<\_ASEOF
259if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 emulate sh
261 NULLCMD=:
ec6a6fbe 262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7a197a62
AK
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
265 setopt NO_GLOB_SUBST
266else
25fbec5b
AK
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
269esac
270
7a197a62 271fi
25fbec5b 272
7a197a62
AK
273
274:
275_ASEOF
276}; then
277 CONFIG_SHELL=$as_shell
278 as_have_required=yes
279 if { "$as_shell" 2> /dev/null <<\_ASEOF
280if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281 emulate sh
282 NULLCMD=:
ec6a6fbe 283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7a197a62
AK
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
286 setopt NO_GLOB_SUBST
287else
25fbec5b
AK
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
290esac
291
7a197a62 292fi
25fbec5b 293
7a197a62
AK
294
295:
296(as_func_return () {
297 (exit $1)
298}
299as_func_success () {
300 as_func_return 0
301}
302as_func_failure () {
303 as_func_return 1
304}
305as_func_ret_success () {
306 return 0
307}
308as_func_ret_failure () {
309 return 1
310}
311
312exitcode=0
313if as_func_success; then
314 :
315else
316 exitcode=1
317 echo as_func_success failed.
318fi
319
320if as_func_failure; then
321 exitcode=1
322 echo as_func_failure succeeded.
323fi
324
325if as_func_ret_success; then
326 :
327else
328 exitcode=1
329 echo as_func_ret_success failed.
330fi
331
332if as_func_ret_failure; then
333 exitcode=1
334 echo as_func_ret_failure succeeded.
335fi
336
337if ( set x; as_func_ret_success y && test x = "$1" ); then
338 :
339else
340 exitcode=1
341 echo positional parameters were not saved.
342fi
343
344test $exitcode = 0) || { (exit 1); exit 1; }
345
346(
ad6254c5
AK
347 as_lineno_1=$LINENO
348 as_lineno_2=$LINENO
ad6254c5 349 test "x$as_lineno_1" != "x$as_lineno_2" &&
7a197a62
AK
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
351
352_ASEOF
353}; then
354 break
355fi
356
357fi
358
359 done
360
361 if test "x$CONFIG_SHELL" != x; then
362 for as_var in BASH_ENV ENV
ec6a6fbe
AK
363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364 done
365 export CONFIG_SHELL
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
7a197a62
AK
367fi
368
369
370 if test $as_have_required = no; then
371 echo This script requires a shell more modern than all the
372 echo shells that I found on your system. Please install a
373 echo modern shell, or manually run the script under such a
374 echo shell if you do have one.
375 { (exit 1); exit 1; }
376fi
377
378
379fi
380
381fi
382
383
384
385(eval "as_func_return () {
386 (exit \$1)
387}
388as_func_success () {
389 as_func_return 0
390}
391as_func_failure () {
392 as_func_return 1
393}
394as_func_ret_success () {
395 return 0
396}
397as_func_ret_failure () {
398 return 1
399}
400
401exitcode=0
402if as_func_success; then
403 :
404else
405 exitcode=1
406 echo as_func_success failed.
407fi
408
409if as_func_failure; then
410 exitcode=1
411 echo as_func_failure succeeded.
412fi
413
414if as_func_ret_success; then
415 :
416else
417 exitcode=1
418 echo as_func_ret_success failed.
419fi
420
421if as_func_ret_failure; then
422 exitcode=1
423 echo as_func_ret_failure succeeded.
424fi
425
426if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
427 :
428else
429 exitcode=1
430 echo positional parameters were not saved.
431fi
432
433test \$exitcode = 0") || {
434 echo No shell found that supports shell functions.
ec6a6fbe
AK
435 echo Please tell bug-autoconf@gnu.org about your system,
436 echo including any error possibly output before this message.
437 echo This can help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
7a197a62
AK
439}
440
441
442
443 as_lineno_1=$LINENO
444 as_lineno_2=$LINENO
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
ad6254c5
AK
447
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
7a197a62
AK
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
454 # case at line end.
ad6254c5 455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7a197a62
AK
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
458 sed -n '
459 p
460 /[$]LINENO/=
461 ' <$as_myself |
ad6254c5 462 sed '
7a197a62
AK
463 s/[$]LINENO.*/&-/
464 t lineno
465 b
466 :lineno
ad6254c5 467 N
7a197a62
AK
468 :loop
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
ad6254c5 470 t loop
7a197a62 471 s/-\n.*//
ad6254c5 472 ' >$as_me.lineno &&
7a197a62 473 chmod +x "$as_me.lineno" ||
ec6a6fbe 474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
ad6254c5
AK
475 { (exit 1); exit 1; }; }
476
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
7a197a62
AK
479 # original and so on. Autoconf is especially sensitive to this).
480 . "./$as_me.lineno"
ad6254c5
AK
481 # Exit status is that of the last command.
482 exit
483}
795ca3e5 484
ad6254c5 485
7a197a62
AK
486if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487 as_dirname=dirname
488else
489 as_dirname=false
490fi
491
492ECHO_C= ECHO_N= ECHO_T=
493case `echo -n x` in
494-n*)
495 case `echo 'x\c'` in
496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
497 *) ECHO_C='\c';;
498 esac;;
499*)
500 ECHO_N='-n';;
ad6254c5 501esac
7a197a62
AK
502if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
504 as_expr=expr
505else
506 as_expr=false
507fi
508
509rm -f conf$$ conf$$.exe conf$$.file
7a197a62
AK
510if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
512else
513 rm -f conf$$.dir
ec6a6fbe
AK
514 mkdir conf$$.dir 2>/dev/null
515fi
516if (echo >conf$$.file) 2>/dev/null; then
517 if ln -s conf$$.file conf$$ 2>/dev/null; then
518 as_ln_s='ln -s'
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524 as_ln_s='cp -p'
525 elif ln conf$$.file conf$$ 2>/dev/null; then
526 as_ln_s=ln
527 else
ad6254c5 528 as_ln_s='cp -p'
ec6a6fbe 529 fi
ad6254c5
AK
530else
531 as_ln_s='cp -p'
532fi
7a197a62
AK
533rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534rmdir conf$$.dir 2>/dev/null
ad6254c5
AK
535
536if mkdir -p . 2>/dev/null; then
537 as_mkdir_p=:
538else
8a2fc586 539 test -d ./-p && rmdir ./-p
ad6254c5
AK
540 as_mkdir_p=false
541fi
542
25fbec5b
AK
543if test -x / >/dev/null 2>&1; then
544 as_test_x='test -x'
7a197a62 545else
25fbec5b
AK
546 if ls -dL / >/dev/null 2>&1; then
547 as_ls_L_option=L
548 else
549 as_ls_L_option=
550 fi
551 as_test_x='
552 eval sh -c '\''
553 if test -d "$1"; then
ec6a6fbe 554 test -d "$1/.";
25fbec5b
AK
555 else
556 case $1 in
ec6a6fbe 557 -*)set "./$1";;
25fbec5b
AK
558 esac;
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
561 '\'' sh
562 '
7a197a62 563fi
25fbec5b 564as_executable_p=$as_test_x
ad6254c5
AK
565
566# Sed expression to map a string onto a valid CPP name.
8a2fc586 567as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
568
569# Sed expression to map a string onto a valid variable name.
8a2fc586 570as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
571
572
ad6254c5 573
7a197a62 574exec 7<&0 </dev/null 6>&1
ad6254c5
AK
575
576# Name of the host.
577# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578# so uname gets run too.
579ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
580
ad6254c5
AK
581#
582# Initializations.
583#
795ca3e5 584ac_default_prefix=/usr/local
7a197a62 585ac_clean_files=
ad6254c5 586ac_config_libobj_dir=.
7a197a62 587LIBOBJS=
ad6254c5
AK
588cross_compiling=no
589subdirs=
590MFLAGS=
591MAKEFLAGS=
592SHELL=${CONFIG_SHELL-/bin/sh}
593
ad6254c5
AK
594# Identity of this package.
595PACKAGE_NAME=
596PACKAGE_TARNAME=
597PACKAGE_VERSION=
598PACKAGE_STRING=
599PACKAGE_BUGREPORT=
600
601ac_unique_file="lib/device/dev-cache.h"
602# Factoring default headers for most tests.
603ac_includes_default="\
604#include <stdio.h>
25fbec5b 605#ifdef HAVE_SYS_TYPES_H
ad6254c5
AK
606# include <sys/types.h>
607#endif
25fbec5b 608#ifdef HAVE_SYS_STAT_H
ad6254c5
AK
609# include <sys/stat.h>
610#endif
25fbec5b 611#ifdef STDC_HEADERS
ad6254c5
AK
612# include <stdlib.h>
613# include <stddef.h>
614#else
25fbec5b 615# ifdef HAVE_STDLIB_H
ad6254c5
AK
616# include <stdlib.h>
617# endif
618#endif
25fbec5b
AK
619#ifdef HAVE_STRING_H
620# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
ad6254c5
AK
621# include <memory.h>
622# endif
623# include <string.h>
624#endif
25fbec5b 625#ifdef HAVE_STRINGS_H
ad6254c5
AK
626# include <strings.h>
627#endif
25fbec5b 628#ifdef HAVE_INTTYPES_H
ad6254c5 629# include <inttypes.h>
ad6254c5 630#endif
25fbec5b 631#ifdef HAVE_STDINT_H
7a197a62
AK
632# include <stdint.h>
633#endif
25fbec5b 634#ifdef HAVE_UNISTD_H
ad6254c5
AK
635# include <unistd.h>
636#endif"
637
795ca3e5 638ac_default_prefix=/usr
ec6a6fbe 639ac_subst_vars='LTLIBOBJS
68f2de6d 640usrsbindir
ec6a6fbe 641usrlibdir
a5f46f6a
AK
642udevdir
643udev_prefix
ec6a6fbe
AK
644tmpdir
645kernelvsn
646missingkernel
647kerneldir
648interface
23b059e7 649WRITE_INSTALL
0878503f 650UDEV_SYNC
a5f46f6a 651UDEV_RULES
f7f0854e 652UDEV_PC
db724a44 653UDEV_LIBS
ec6a6fbe
AK
654STATIC_LINK
655STATICDIR
656SNAPSHOTS
f7f0854e 657SELINUX_PC
e1b8a236 658SELINUX_LIBS
539f4a77 659READLINE_LIBS
f30875db 660PTHREAD_LIBS
ec6a6fbe
AK
661POOL
662PKGCONFIG
8fea97b7 663REPLICATORS
ec6a6fbe
AK
664MIRRORS
665LVM_RELEASE_DATE
666LVM_RELEASE
667LVM_PATCHLEVEL
668LVM_MINOR
669LVM_MAJOR
bf456146 670LVM_LIBAPI
ec6a6fbe 671LVM_VERSION
ec6a6fbe
AK
672LVM1_FALLBACK
673LVM1
674LOCALEDIR
675LIB_SUFFIX
676LDDEPS
677JOBS
678INTL_PACKAGE
679INTL
ec6a6fbe
AK
680HAVE_REALTIME
681HAVE_LIBDL
ec6a6fbe
AK
682FSADM
683DM_LIB_PATCHLEVEL
684DM_LIB_VERSION
685DM_IOCTLS
686DM_DEVICE_UID
687DM_DEVICE_MODE
688DM_DEVICE_GID
689DM_COMPAT
690DMEVENTD
19a2c6e0 691DL_LIBS
ec6a6fbe 692DEVMAPPER
3399ae32
AK
693DEFAULT_LOCK_DIR
694DEFAULT_CACHE_SUBDIR
695DEFAULT_BACKUP_SUBDIR
696DEFAULT_ARCHIVE_SUBDIR
697DEFAULT_SYS_DIR
ec6a6fbe
AK
698DEBUG
699COPTIMISE_FLAG
e2997b73 700CONFDIR
ec6a6fbe
AK
701CMDLIB
702CLVMD
703CLUSTER
704CLDWHOLEARCHIVE
705CLDNOWHOLEARCHIVE
706CLDFLAGS
707BUILD_DMEVENTD
66fd4529 708BUILD_CMIRRORD
572fefeb 709APPLIB
ec6a6fbe
AK
710MODPROBE_CMD
711MSGFMT
712LVM2CMD_LIB
572fefeb 713LVM2APP_LIB
fd4728e1 714GENPNG
ec6a6fbe
AK
715GENHTML
716LCOV
90c80887
AK
717SACKPT_LIBS
718SACKPT_CFLAGS
a946372e
AK
719DLM_LIBS
720DLM_CFLAGS
e2997b73
AK
721CPG_LIBS
722CPG_CFLAGS
723CONFDB_LIBS
724CONFDB_CFLAGS
a946372e
AK
725SALCK_LIBS
726SALCK_CFLAGS
e2997b73
AK
727QUORUM_LIBS
728QUORUM_CFLAGS
a946372e
AK
729COROSYNC_LIBS
730COROSYNC_CFLAGS
731CMAN_LIBS
732CMAN_CFLAGS
733GULM_LIBS
734GULM_CFLAGS
735CCS_LIBS
736CCS_CFLAGS
737PKGCONFIGINIT_LIBS
738PKGCONFIGINIT_CFLAGS
b5c2529b
ZK
739PKG_CONFIG_LIBDIR
740PKG_CONFIG_PATH
e2997b73 741PKG_CONFIG
ec6a6fbe
AK
742POW_LIB
743LIBOBJS
744ALLOCA
745CSCOPE_CMD
746CFLOW_CMD
747RANLIB
748MKDIR_P
749SET_MAKE
750LN_S
751INSTALL_DATA
752INSTALL_SCRIPT
753INSTALL_PROGRAM
754EGREP
755GREP
756CPP
757OBJEXT
758EXEEXT
759ac_ct_CC
760CPPFLAGS
761LDFLAGS
762CFLAGS
763CC
764AWK
765SED
766target_os
767target_vendor
768target_cpu
769target
770host_os
771host_vendor
772host_cpu
773host
774build_os
775build_vendor
776build_cpu
777build
778target_alias
779host_alias
780build_alias
781LIBS
782ECHO_T
783ECHO_N
784ECHO_C
785DEFS
786mandir
787localedir
788libdir
789psdir
790pdfdir
791dvidir
792htmldir
793infodir
794docdir
795oldincludedir
796includedir
797localstatedir
798sharedstatedir
799sysconfdir
800datadir
801datarootdir
802libexecdir
803sbindir
804bindir
805program_transform_name
806prefix
807exec_prefix
808PACKAGE_BUGREPORT
809PACKAGE_STRING
810PACKAGE_VERSION
811PACKAGE_TARNAME
812PACKAGE_NAME
813PATH_SEPARATOR
814SHELL'
ad6254c5 815ac_subst_files=''
ec6a6fbe
AK
816ac_user_opts='
817enable_option_checking
818enable_static_link
819with_user
820with_group
821with_device_uid
822with_device_gid
823with_device_mode
824enable_lvm1_fallback
825with_lvm1
826with_pool
827with_cluster
828with_snapshots
829with_mirrors
8fea97b7 830with_replicators
ec6a6fbe
AK
831enable_readline
832enable_realtime
833with_clvmd
66fd4529
AK
834enable_cmirrord
835with_cmirrord_pidfile
ec6a6fbe
AK
836enable_debug
837with_optimisation
838enable_profiling
839enable_devmapper
a5f46f6a
AK
840enable_udev_sync
841enable_udev_rules
ec6a6fbe 842enable_compat
95eaa683 843enable_units_compat
ec6a6fbe
AK
844enable_ioctl
845enable_o_direct
572fefeb 846enable_applib
ec6a6fbe
AK
847enable_cmdlib
848enable_pkgconfig
23b059e7 849enable_write_install
ec6a6fbe
AK
850enable_fsadm
851enable_dmeventd
852enable_selinux
853enable_nls
854with_localedir
855with_confdir
856with_staticdir
857with_usrlibdir
858with_usrsbindir
a5f46f6a 859with_udev_prefix
78ce7acc 860with_udevdir
ec6a6fbe
AK
861with_dmeventd_pidfile
862with_dmeventd_path
3399ae32
AK
863with_default_system_dir
864with_default_archive_subdir
865with_default_backup_subdir
866with_default_cache_subdir
867with_default_locking_dir
ec6a6fbe
AK
868with_interface
869'
7a197a62
AK
870 ac_precious_vars='build_alias
871host_alias
872target_alias
873CC
874CFLAGS
875LDFLAGS
25fbec5b 876LIBS
7a197a62 877CPPFLAGS
e2997b73
AK
878CPP
879PKG_CONFIG
b5c2529b
ZK
880PKG_CONFIG_PATH
881PKG_CONFIG_LIBDIR
a946372e
AK
882PKGCONFIGINIT_CFLAGS
883PKGCONFIGINIT_LIBS
884CCS_CFLAGS
885CCS_LIBS
886GULM_CFLAGS
887GULM_LIBS
888CMAN_CFLAGS
889CMAN_LIBS
890COROSYNC_CFLAGS
891COROSYNC_LIBS
e2997b73
AK
892QUORUM_CFLAGS
893QUORUM_LIBS
a946372e
AK
894SALCK_CFLAGS
895SALCK_LIBS
e2997b73
AK
896CONFDB_CFLAGS
897CONFDB_LIBS
898CPG_CFLAGS
a946372e
AK
899CPG_LIBS
900DLM_CFLAGS
90c80887
AK
901DLM_LIBS
902SACKPT_CFLAGS
903SACKPT_LIBS'
7a197a62 904
795ca3e5
AK
905
906# Initialize some variables set by options.
ad6254c5
AK
907ac_init_help=
908ac_init_version=false
ec6a6fbe
AK
909ac_unrecognized_opts=
910ac_unrecognized_sep=
795ca3e5
AK
911# The variables have the same names as the options, with
912# dashes changed to underlines.
ad6254c5 913cache_file=/dev/null
795ca3e5 914exec_prefix=NONE
795ca3e5 915no_create=
795ca3e5
AK
916no_recursion=
917prefix=NONE
918program_prefix=NONE
919program_suffix=NONE
920program_transform_name=s,x,x,
921silent=
922site=
923srcdir=
795ca3e5
AK
924verbose=
925x_includes=NONE
926x_libraries=NONE
ad6254c5
AK
927
928# Installation directory options.
929# These are left unexpanded so users can "make install exec_prefix=/foo"
930# and all the variables that are supposed to be based on exec_prefix
931# by default will actually change.
932# Use braces instead of parens because sh, perl, etc. also accept them.
7a197a62 933# (The list follows the same order as the GNU Coding Standards.)
795ca3e5
AK
934bindir='${exec_prefix}/bin'
935sbindir='${exec_prefix}/sbin'
936libexecdir='${exec_prefix}/libexec'
7a197a62
AK
937datarootdir='${prefix}/share'
938datadir='${datarootdir}'
795ca3e5
AK
939sysconfdir='${prefix}/etc'
940sharedstatedir='${prefix}/com'
941localstatedir='${prefix}/var'
795ca3e5
AK
942includedir='${prefix}/include'
943oldincludedir='/usr/include'
7a197a62
AK
944docdir='${datarootdir}/doc/${PACKAGE}'
945infodir='${datarootdir}/info'
946htmldir='${docdir}'
947dvidir='${docdir}'
948pdfdir='${docdir}'
949psdir='${docdir}'
950libdir='${exec_prefix}/lib'
951localedir='${datarootdir}/locale'
952mandir='${datarootdir}/man'
795ca3e5 953
795ca3e5 954ac_prev=
7a197a62 955ac_dashdash=
795ca3e5
AK
956for ac_option
957do
795ca3e5
AK
958 # If the previous option needs an argument, assign it.
959 if test -n "$ac_prev"; then
7a197a62 960 eval $ac_prev=\$ac_option
795ca3e5
AK
961 ac_prev=
962 continue
963 fi
964
7a197a62
AK
965 case $ac_option in
966 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
967 *) ac_optarg=yes ;;
968 esac
795ca3e5
AK
969
970 # Accept the important Cygnus configure options, so we can diagnose typos.
971
7a197a62
AK
972 case $ac_dashdash$ac_option in
973 --)
974 ac_dashdash=yes ;;
795ca3e5
AK
975
976 -bindir | --bindir | --bindi | --bind | --bin | --bi)
977 ac_prev=bindir ;;
978 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
ad6254c5 979 bindir=$ac_optarg ;;
795ca3e5
AK
980
981 -build | --build | --buil | --bui | --bu)
ad6254c5 982 ac_prev=build_alias ;;
795ca3e5 983 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
ad6254c5 984 build_alias=$ac_optarg ;;
795ca3e5
AK
985
986 -cache-file | --cache-file | --cache-fil | --cache-fi \
987 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
988 ac_prev=cache_file ;;
989 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
990 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
ad6254c5
AK
991 cache_file=$ac_optarg ;;
992
993 --config-cache | -C)
994 cache_file=config.cache ;;
795ca3e5 995
7a197a62 996 -datadir | --datadir | --datadi | --datad)
795ca3e5 997 ac_prev=datadir ;;
7a197a62 998 -datadir=* | --datadir=* | --datadi=* | --datad=*)
ad6254c5 999 datadir=$ac_optarg ;;
795ca3e5 1000
7a197a62
AK
1001 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1002 | --dataroo | --dataro | --datar)
1003 ac_prev=datarootdir ;;
1004 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1005 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1006 datarootdir=$ac_optarg ;;
1007
795ca3e5 1008 -disable-* | --disable-*)
ec6a6fbe 1009 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
795ca3e5 1010 # Reject names that are not valid shell variable names.
ec6a6fbe
AK
1011 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1012 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
ad6254c5 1013 { (exit 1); exit 1; }; }
ec6a6fbe
AK
1014 ac_useropt_orig=$ac_useropt
1015 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1016 case $ac_user_opts in
1017 *"
1018"enable_$ac_useropt"
1019"*) ;;
1020 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1021 ac_unrecognized_sep=', ';;
1022 esac
1023 eval enable_$ac_useropt=no ;;
7a197a62
AK
1024
1025 -docdir | --docdir | --docdi | --doc | --do)
1026 ac_prev=docdir ;;
1027 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1028 docdir=$ac_optarg ;;
1029
1030 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1031 ac_prev=dvidir ;;
1032 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1033 dvidir=$ac_optarg ;;
795ca3e5
AK
1034
1035 -enable-* | --enable-*)
ec6a6fbe 1036 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
795ca3e5 1037 # Reject names that are not valid shell variable names.
ec6a6fbe
AK
1038 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1039 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
ad6254c5 1040 { (exit 1); exit 1; }; }
ec6a6fbe
AK
1041 ac_useropt_orig=$ac_useropt
1042 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1043 case $ac_user_opts in
1044 *"
1045"enable_$ac_useropt"
1046"*) ;;
1047 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1048 ac_unrecognized_sep=', ';;
1049 esac
1050 eval enable_$ac_useropt=\$ac_optarg ;;
795ca3e5
AK
1051
1052 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1053 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1054 | --exec | --exe | --ex)
1055 ac_prev=exec_prefix ;;
1056 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1057 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1058 | --exec=* | --exe=* | --ex=*)
ad6254c5 1059 exec_prefix=$ac_optarg ;;
795ca3e5
AK
1060
1061 -gas | --gas | --ga | --g)
1062 # Obsolete; use --with-gas.
1063 with_gas=yes ;;
1064
ad6254c5
AK
1065 -help | --help | --hel | --he | -h)
1066 ac_init_help=long ;;
1067 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1068 ac_init_help=recursive ;;
1069 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1070 ac_init_help=short ;;
795ca3e5
AK
1071
1072 -host | --host | --hos | --ho)
ad6254c5 1073 ac_prev=host_alias ;;
795ca3e5 1074 -host=* | --host=* | --hos=* | --ho=*)
ad6254c5 1075 host_alias=$ac_optarg ;;
795ca3e5 1076
7a197a62
AK
1077 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1078 ac_prev=htmldir ;;
1079 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1080 | --ht=*)
1081 htmldir=$ac_optarg ;;
1082
795ca3e5
AK
1083 -includedir | --includedir | --includedi | --included | --include \
1084 | --includ | --inclu | --incl | --inc)
1085 ac_prev=includedir ;;
1086 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1087 | --includ=* | --inclu=* | --incl=* | --inc=*)
ad6254c5 1088 includedir=$ac_optarg ;;
795ca3e5
AK
1089
1090 -infodir | --infodir | --infodi | --infod | --info | --inf)
1091 ac_prev=infodir ;;
1092 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
ad6254c5 1093 infodir=$ac_optarg ;;
795ca3e5
AK
1094
1095 -libdir | --libdir | --libdi | --libd)
1096 ac_prev=libdir ;;
1097 -libdir=* | --libdir=* | --libdi=* | --libd=*)
ad6254c5 1098 libdir=$ac_optarg ;;
795ca3e5
AK
1099
1100 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1101 | --libexe | --libex | --libe)
1102 ac_prev=libexecdir ;;
1103 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1104 | --libexe=* | --libex=* | --libe=*)
ad6254c5 1105 libexecdir=$ac_optarg ;;
795ca3e5 1106
7a197a62
AK
1107 -localedir | --localedir | --localedi | --localed | --locale)
1108 ac_prev=localedir ;;
1109 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1110 localedir=$ac_optarg ;;
1111
795ca3e5 1112 -localstatedir | --localstatedir | --localstatedi | --localstated \
7a197a62 1113 | --localstate | --localstat | --localsta | --localst | --locals)
795ca3e5
AK
1114 ac_prev=localstatedir ;;
1115 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
7a197a62 1116 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
ad6254c5 1117 localstatedir=$ac_optarg ;;
795ca3e5
AK
1118
1119 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1120 ac_prev=mandir ;;
1121 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
ad6254c5 1122 mandir=$ac_optarg ;;
795ca3e5
AK
1123
1124 -nfp | --nfp | --nf)
1125 # Obsolete; use --without-fp.
1126 with_fp=no ;;
1127
1128 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
ad6254c5 1129 | --no-cr | --no-c | -n)
795ca3e5
AK
1130 no_create=yes ;;
1131
1132 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1133 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1134 no_recursion=yes ;;
1135
1136 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1137 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1138 | --oldin | --oldi | --old | --ol | --o)
1139 ac_prev=oldincludedir ;;
1140 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1141 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1142 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
ad6254c5 1143 oldincludedir=$ac_optarg ;;
795ca3e5
AK
1144
1145 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1146 ac_prev=prefix ;;
1147 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
ad6254c5 1148 prefix=$ac_optarg ;;
795ca3e5
AK
1149
1150 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1151 | --program-pre | --program-pr | --program-p)
1152 ac_prev=program_prefix ;;
1153 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1154 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
ad6254c5 1155 program_prefix=$ac_optarg ;;
795ca3e5
AK
1156
1157 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1158 | --program-suf | --program-su | --program-s)
1159 ac_prev=program_suffix ;;
1160 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1161 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
ad6254c5 1162 program_suffix=$ac_optarg ;;
795ca3e5
AK
1163
1164 -program-transform-name | --program-transform-name \
1165 | --program-transform-nam | --program-transform-na \
1166 | --program-transform-n | --program-transform- \
1167 | --program-transform | --program-transfor \
1168 | --program-transfo | --program-transf \
1169 | --program-trans | --program-tran \
1170 | --progr-tra | --program-tr | --program-t)
1171 ac_prev=program_transform_name ;;
1172 -program-transform-name=* | --program-transform-name=* \
1173 | --program-transform-nam=* | --program-transform-na=* \
1174 | --program-transform-n=* | --program-transform-=* \
1175 | --program-transform=* | --program-transfor=* \
1176 | --program-transfo=* | --program-transf=* \
1177 | --program-trans=* | --program-tran=* \
1178 | --progr-tra=* | --program-tr=* | --program-t=*)
ad6254c5 1179 program_transform_name=$ac_optarg ;;
795ca3e5 1180
7a197a62
AK
1181 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1182 ac_prev=pdfdir ;;
1183 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1184 pdfdir=$ac_optarg ;;
1185
1186 -psdir | --psdir | --psdi | --psd | --ps)
1187 ac_prev=psdir ;;
1188 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1189 psdir=$ac_optarg ;;
1190
795ca3e5
AK
1191 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1192 | -silent | --silent | --silen | --sile | --sil)
1193 silent=yes ;;
1194
1195 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1196 ac_prev=sbindir ;;
1197 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1198 | --sbi=* | --sb=*)
ad6254c5 1199 sbindir=$ac_optarg ;;
795ca3e5
AK
1200
1201 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1202 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1203 | --sharedst | --shareds | --shared | --share | --shar \
1204 | --sha | --sh)
1205 ac_prev=sharedstatedir ;;
1206 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1207 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1208 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1209 | --sha=* | --sh=*)
ad6254c5 1210 sharedstatedir=$ac_optarg ;;
795ca3e5
AK
1211
1212 -site | --site | --sit)
1213 ac_prev=site ;;
1214 -site=* | --site=* | --sit=*)
ad6254c5 1215 site=$ac_optarg ;;
795ca3e5
AK
1216
1217 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1218 ac_prev=srcdir ;;
1219 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
ad6254c5 1220 srcdir=$ac_optarg ;;
795ca3e5
AK
1221
1222 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1223 | --syscon | --sysco | --sysc | --sys | --sy)
1224 ac_prev=sysconfdir ;;
1225 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1226 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
ad6254c5 1227 sysconfdir=$ac_optarg ;;
795ca3e5
AK
1228
1229 -target | --target | --targe | --targ | --tar | --ta | --t)
ad6254c5 1230 ac_prev=target_alias ;;
795ca3e5 1231 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
ad6254c5 1232 target_alias=$ac_optarg ;;
795ca3e5
AK
1233
1234 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1235 verbose=yes ;;
1236
ad6254c5
AK
1237 -version | --version | --versio | --versi | --vers | -V)
1238 ac_init_version=: ;;
795ca3e5
AK
1239
1240 -with-* | --with-*)
ec6a6fbe 1241 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
795ca3e5 1242 # Reject names that are not valid shell variable names.
ec6a6fbe
AK
1243 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1244 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
ad6254c5 1245 { (exit 1); exit 1; }; }
ec6a6fbe
AK
1246 ac_useropt_orig=$ac_useropt
1247 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1248 case $ac_user_opts in
1249 *"
1250"with_$ac_useropt"
1251"*) ;;
1252 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1253 ac_unrecognized_sep=', ';;
1254 esac
1255 eval with_$ac_useropt=\$ac_optarg ;;
795ca3e5
AK
1256
1257 -without-* | --without-*)
ec6a6fbe 1258 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
795ca3e5 1259 # Reject names that are not valid shell variable names.
ec6a6fbe
AK
1260 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1261 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
ad6254c5 1262 { (exit 1); exit 1; }; }
ec6a6fbe
AK
1263 ac_useropt_orig=$ac_useropt
1264 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1265 case $ac_user_opts in
1266 *"
1267"with_$ac_useropt"
1268"*) ;;
1269 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1270 ac_unrecognized_sep=', ';;
1271 esac
1272 eval with_$ac_useropt=no ;;
795ca3e5
AK
1273
1274 --x)
1275 # Obsolete; use --with-x.
1276 with_x=yes ;;
1277
1278 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1279 | --x-incl | --x-inc | --x-in | --x-i)
1280 ac_prev=x_includes ;;
1281 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1282 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
ad6254c5 1283 x_includes=$ac_optarg ;;
795ca3e5
AK
1284
1285 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1286 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1287 ac_prev=x_libraries ;;
1288 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1289 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
ad6254c5 1290 x_libraries=$ac_optarg ;;
795ca3e5 1291
ec6a6fbe 1292 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
ad6254c5
AK
1293Try \`$0 --help' for more information." >&2
1294 { (exit 1); exit 1; }; }
795ca3e5
AK
1295 ;;
1296
ad6254c5
AK
1297 *=*)
1298 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1299 # Reject names that are not valid shell variable names.
1300 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
ec6a6fbe 1301 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
ad6254c5 1302 { (exit 1); exit 1; }; }
7a197a62 1303 eval $ac_envvar=\$ac_optarg
ad6254c5
AK
1304 export $ac_envvar ;;
1305
795ca3e5 1306 *)
ad6254c5 1307 # FIXME: should be removed in autoconf 3.0.
ec6a6fbe 1308 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
ad6254c5 1309 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
ec6a6fbe 1310 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
ad6254c5 1311 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
795ca3e5
AK
1312 ;;
1313
1314 esac
1315done
1316
1317if test -n "$ac_prev"; then
ad6254c5 1318 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
ec6a6fbe 1319 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
ad6254c5 1320 { (exit 1); exit 1; }; }
795ca3e5 1321fi
795ca3e5 1322
ec6a6fbe
AK
1323if test -n "$ac_unrecognized_opts"; then
1324 case $enable_option_checking in
1325 no) ;;
1326 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1327 { (exit 1); exit 1; }; } ;;
1328 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1329 esac
1330fi
1331
1332# Check all directory arguments for consistency.
7a197a62
AK
1333for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1334 datadir sysconfdir sharedstatedir localstatedir includedir \
1335 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1336 libdir localedir mandir
795ca3e5 1337do
7a197a62 1338 eval ac_val=\$$ac_var
ec6a6fbe
AK
1339 # Remove trailing slashes.
1340 case $ac_val in
1341 */ )
1342 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1343 eval $ac_var=\$ac_val;;
1344 esac
1345 # Be sure to have absolute directory names.
ad6254c5 1346 case $ac_val in
7a197a62
AK
1347 [\\/$]* | ?:[\\/]* ) continue;;
1348 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
795ca3e5 1349 esac
ec6a6fbe 1350 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
7a197a62 1351 { (exit 1); exit 1; }; }
795ca3e5
AK
1352done
1353
ad6254c5
AK
1354# There might be people who depend on the old broken behavior: `$host'
1355# used to hold the argument of --host etc.
1356# FIXME: To remove some day.
1357build=$build_alias
1358host=$host_alias
1359target=$target_alias
1360
1361# FIXME: To remove some day.
1362if test "x$host_alias" != x; then
1363 if test "x$build_alias" = x; then
1364 cross_compiling=maybe
ec6a6fbe 1365 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
ad6254c5
AK
1366 If a cross compiler is detected then cross compile mode will be used." >&2
1367 elif test "x$build_alias" != "x$host_alias"; then
1368 cross_compiling=yes
1369 fi
1370fi
8106cdd5 1371
ad6254c5
AK
1372ac_tool_prefix=
1373test -n "$host_alias" && ac_tool_prefix=$host_alias-
1374
1375test "$silent" = yes && exec 6>/dev/null
795ca3e5 1376
795ca3e5 1377
7a197a62
AK
1378ac_pwd=`pwd` && test -n "$ac_pwd" &&
1379ac_ls_di=`ls -di .` &&
1380ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
ec6a6fbe 1381 { $as_echo "$as_me: error: working directory cannot be determined" >&2
7a197a62
AK
1382 { (exit 1); exit 1; }; }
1383test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
ec6a6fbe 1384 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
7a197a62
AK
1385 { (exit 1); exit 1; }; }
1386
1387
795ca3e5
AK
1388# Find the source files, if location was not specified.
1389if test -z "$srcdir"; then
1390 ac_srcdir_defaulted=yes
7a197a62 1391 # Try the directory containing this script, then the parent directory.
ec6a6fbe
AK
1392 ac_confdir=`$as_dirname -- "$as_myself" ||
1393$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1394 X"$as_myself" : 'X\(//\)[^/]' \| \
1395 X"$as_myself" : 'X\(//\)$' \| \
1396 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1397$as_echo X"$as_myself" |
7a197a62
AK
1398 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1399 s//\1/
1400 q
1401 }
1402 /^X\(\/\/\)[^/].*/{
1403 s//\1/
1404 q
1405 }
1406 /^X\(\/\/\)$/{
1407 s//\1/
1408 q
1409 }
1410 /^X\(\/\).*/{
1411 s//\1/
1412 q
1413 }
1414 s/.*/./; q'`
795ca3e5 1415 srcdir=$ac_confdir
7a197a62 1416 if test ! -r "$srcdir/$ac_unique_file"; then
795ca3e5
AK
1417 srcdir=..
1418 fi
1419else
1420 ac_srcdir_defaulted=no
1421fi
7a197a62
AK
1422if test ! -r "$srcdir/$ac_unique_file"; then
1423 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
ec6a6fbe 1424 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
ad6254c5 1425 { (exit 1); exit 1; }; }
795ca3e5 1426fi
7a197a62
AK
1427ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1428ac_abs_confdir=`(
ec6a6fbe 1429 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
ad6254c5 1430 { (exit 1); exit 1; }; }
7a197a62
AK
1431 pwd)`
1432# When building in place, set srcdir=.
1433if test "$ac_abs_confdir" = "$ac_pwd"; then
1434 srcdir=.
1435fi
1436# Remove unnecessary trailing slashes from srcdir.
1437# Double slashes in file names in object file debugging info
1438# mess up M-x gdb in Emacs.
1439case $srcdir in
1440*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1441esac
1442for ac_var in $ac_precious_vars; do
1443 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1444 eval ac_env_${ac_var}_value=\$${ac_var}
1445 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1446 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1447done
ad6254c5
AK
1448
1449#
1450# Report the --help message.
1451#
1452if test "$ac_init_help" = "long"; then
1453 # Omit some internal or obsolete options to make the list less imposing.
1454 # This message is too long to be a string in the A/UX 3.1 sh.
1455 cat <<_ACEOF
1456\`configure' configures this package to adapt to many kinds of systems.
1457
1458Usage: $0 [OPTION]... [VAR=VALUE]...
1459
1460To assign environment variables (e.g., CC, CFLAGS...), specify them as
1461VAR=VALUE. See below for descriptions of some of the useful variables.
1462
1463Defaults for the options are specified in brackets.
1464
1465Configuration:
1466 -h, --help display this help and exit
1467 --help=short display options specific to this package
1468 --help=recursive display the short help of all the included packages
1469 -V, --version display version information and exit
1470 -q, --quiet, --silent do not print \`checking...' messages
1471 --cache-file=FILE cache test results in FILE [disabled]
1472 -C, --config-cache alias for \`--cache-file=config.cache'
1473 -n, --no-create do not create output files
1474 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1475
ad6254c5
AK
1476Installation directories:
1477 --prefix=PREFIX install architecture-independent files in PREFIX
ec6a6fbe 1478 [$ac_default_prefix]
ad6254c5 1479 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
ec6a6fbe 1480 [PREFIX]
ad6254c5
AK
1481
1482By default, \`make install' will install all the files in
1483\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1484an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1485for instance \`--prefix=\$HOME'.
1486
1487For better control, use the options below.
1488
1489Fine tuning of the installation directories:
ec6a6fbe
AK
1490 --bindir=DIR user executables [EPREFIX/bin]
1491 --sbindir=DIR system admin executables [EPREFIX/sbin]
1492 --libexecdir=DIR program executables [EPREFIX/libexec]
1493 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1494 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1495 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1496 --libdir=DIR object code libraries [EPREFIX/lib]
1497 --includedir=DIR C header files [PREFIX/include]
1498 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1499 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1500 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1501 --infodir=DIR info documentation [DATAROOTDIR/info]
1502 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1503 --mandir=DIR man documentation [DATAROOTDIR/man]
1504 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1505 --htmldir=DIR html documentation [DOCDIR]
1506 --dvidir=DIR dvi documentation [DOCDIR]
1507 --pdfdir=DIR pdf documentation [DOCDIR]
1508 --psdir=DIR ps documentation [DOCDIR]
ad6254c5
AK
1509_ACEOF
1510
1511 cat <<\_ACEOF
1512
1513System types:
1514 --build=BUILD configure for building on BUILD [guessed]
1515 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1516 --target=TARGET configure for building compilers for TARGET [HOST]
1517_ACEOF
1518fi
1519
1520if test -n "$ac_init_help"; then
1521
1522 cat <<\_ACEOF
1523
1524Optional Features:
ec6a6fbe 1525 --disable-option-checking ignore unrecognized --enable/--with options
ad6254c5
AK
1526 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1527 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
9c961554
MB
1528 --enable-static_link Use this to link the tools to their libraries
1529 statically. Default is dynamic linking
ad6254c5
AK
1530 --enable-lvm1_fallback Use this to fall back and use LVM1 binaries if
1531 device-mapper is missing from the kernel
1b523347 1532 --disable-readline Disable readline support
89044bc0 1533 --enable-realtime Enable realtime clock support
66fd4529 1534 --enable-cmirrord Enable the cluster mirror log daemon
ad6254c5 1535 --enable-debug Enable debugging
5556819a 1536 --enable-profiling Gather gcov profiling data
93bd259b 1537 --disable-devmapper Disable LVM2 device-mapper interaction
a5f46f6a
AK
1538 --enable-udev_sync Enable synchronisation with udev processing
1539 --enable-udev_rules Install rule files needed for udev synchronisation
93bd259b 1540 --enable-compat Enable support for old device-mapper versions
95eaa683
AK
1541 --enable-units-compat Enable output compatibility with old versions that
1542 that don't use KiB-style unit suffixes
93bd259b 1543 --disable-driver Disable calls to device-mapper in the kernel
ad6254c5 1544 --disable-o_direct Disable O_DIRECT
572fefeb 1545 --enable-applib Build application library
ad6254c5 1546 --enable-cmdlib Build shared command library
93bd259b 1547 --enable-pkgconfig Install pkgconfig support
23b059e7 1548 --enable-write_install Install user writable files
c9274524 1549 --disable-fsadm Disable fsadm
15d91f5a 1550 --enable-dmeventd Enable the device-mapper event daemon
d0191583 1551 --disable-selinux Disable selinux support
ad6254c5
AK
1552 --enable-nls Enable Native Language Support
1553
1554Optional Packages:
1555 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1556 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
39dabc84
FDN
1557 --with-user=USER Set the owner of installed files [USER=]
1558 --with-group=GROUP Set the group owner of installed files [GROUP=]
24bbc4d7
AK
1559 --with-device-uid=UID Set the owner used for new device nodes [UID=0]
1560 --with-device-gid=UID Set the group used for new device nodes [GID=0]
93bd259b 1561 --with-device-mode=MODE Set the mode used for new device nodes [MODE=0600]
ad6254c5
AK
1562 --with-lvm1=TYPE LVM1 metadata support: internal/shared/none
1563 TYPE=internal
1564 --with-pool=TYPE GFS pool read-only support: internal/shared/none
1565 TYPE=internal
1566 --with-cluster=TYPE Cluster LVM locking support: internal/shared/none
1567 TYPE=internal
1568 --with-snapshots=TYPE Snapshot support: internal/shared/none
1569 TYPE=internal
1570 --with-mirrors=TYPE Mirror support: internal/shared/none
1571 TYPE=internal
8fea97b7 1572 --with-replicators=TYPE Replicator support: internal/shared/none TYPE=none
a946372e 1573 --with-clvmd=TYPE Build cluster LVM Daemon.
8c222979 1574 The following cluster manager combinations are valid:
a946372e
AK
1575 * cman,gulm (RHEL4 or equivalent)
1576 * cman (RHEL5 or equivalent)
1577 * cman,corosync,openais (or selection of them)
1091650a 1578 * singlenode (localhost only)
a946372e
AK
1579 * all (autodetect)
1580 * none (disable build)
a266258f 1581 TYPE=none
66fd4529 1582 --with-cmirrord-pidfile=PATH cmirrord pidfile [/var/run/cmirrord.pid]
d0191583
JM
1583 --with-optimisation=OPT C optimisation flag [OPT=-O2]
1584 --with-localedir=DIR Translation files in DIR [PREFIX/share/locale]
a5f46f6a
AK
1585 --with-confdir=DIR Configuration files in DIR [/etc]
1586 --with-staticdir=DIR Static binary in DIR [EPREFIX/sbin]
68f2de6d
AK
1587 --with-usrlibdir=DIR
1588 --with-usrsbindir=DIR
a5f46f6a 1589 --with-udev-prefix=UPREFIX Install udev rule files in UPREFIX [EPREFIX]
78ce7acc 1590 --with-udevdir=DIR udev rules in DIR [UPREFIX/lib/udev/rules.d]
93bd259b 1591 --with-dmeventd-pidfile=PATH dmeventd pidfile [/var/run/dmeventd.pid]
a5f46f6a 1592 --with-dmeventd-path=PATH dmeventd path [EPREFIX/sbin/dmeventd]
3399ae32
AK
1593 --with-default-system-dir=DIR Default LVM system directory [/etc/lvm]
1594 --with-default-archive-subdir=SUBDIR Default metadata archive subdir [archive]
1595 --with-default-backup-subdir=SUBDIR Default metadata backup subdir [backup]
1596 --with-default-cache-subdir=SUBDIR Default metadata cache subdir [cache]
1597 --with-default-locking-dir=DIR Default locking directory [/var/lock/lvm]
93bd259b 1598 --with-interface=IFACE Choose kernel interface (ioctl) [ioctl]
ad6254c5
AK
1599
1600Some influential environment variables:
1601 CC C compiler command
1602 CFLAGS C compiler flags
1603 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1604 nonstandard directory <lib dir>
25fbec5b 1605 LIBS libraries to pass to the linker, e.g. -l<library>
7a197a62
AK
1606 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1607 you have headers in a nonstandard directory <include dir>
ad6254c5 1608 CPP C preprocessor
e2997b73 1609 PKG_CONFIG path to pkg-config utility
b5c2529b
ZK
1610 PKG_CONFIG_PATH
1611 directories to add to pkg-config's search path
1612 PKG_CONFIG_LIBDIR
1613 path overriding pkg-config's built-in search path
a946372e
AK
1614 PKGCONFIGINIT_CFLAGS
1615 C compiler flags for PKGCONFIGINIT, overriding pkg-config
1616 PKGCONFIGINIT_LIBS
1617 linker flags for PKGCONFIGINIT, overriding pkg-config
1618 CCS_CFLAGS C compiler flags for CCS, overriding pkg-config
1619 CCS_LIBS linker flags for CCS, overriding pkg-config
1620 GULM_CFLAGS C compiler flags for GULM, overriding pkg-config
1621 GULM_LIBS linker flags for GULM, overriding pkg-config
1622 CMAN_CFLAGS C compiler flags for CMAN, overriding pkg-config
1623 CMAN_LIBS linker flags for CMAN, overriding pkg-config
1624 COROSYNC_CFLAGS
1625 C compiler flags for COROSYNC, overriding pkg-config
1626 COROSYNC_LIBS
1627 linker flags for COROSYNC, overriding pkg-config
e2997b73
AK
1628 QUORUM_CFLAGS
1629 C compiler flags for QUORUM, overriding pkg-config
1630 QUORUM_LIBS linker flags for QUORUM, overriding pkg-config
a946372e
AK
1631 SALCK_CFLAGS
1632 C compiler flags for SALCK, overriding pkg-config
1633 SALCK_LIBS linker flags for SALCK, overriding pkg-config
e2997b73
AK
1634 CONFDB_CFLAGS
1635 C compiler flags for CONFDB, overriding pkg-config
1636 CONFDB_LIBS linker flags for CONFDB, overriding pkg-config
1637 CPG_CFLAGS C compiler flags for CPG, overriding pkg-config
1638 CPG_LIBS linker flags for CPG, overriding pkg-config
a946372e
AK
1639 DLM_CFLAGS C compiler flags for DLM, overriding pkg-config
1640 DLM_LIBS linker flags for DLM, overriding pkg-config
90c80887
AK
1641 SACKPT_CFLAGS
1642 C compiler flags for SACKPT, overriding pkg-config
1643 SACKPT_LIBS linker flags for SACKPT, overriding pkg-config
ad6254c5
AK
1644
1645Use these variables to override the choices made by `configure' or to help
1646it to find libraries and programs with nonstandard names/locations.
1647
1648_ACEOF
7a197a62 1649ac_status=$?
ad6254c5
AK
1650fi
1651
1652if test "$ac_init_help" = "recursive"; then
1653 # If there are subdirs, report their specific --help.
ad6254c5 1654 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
ec6a6fbe
AK
1655 test -d "$ac_dir" ||
1656 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1657 continue
ad6254c5
AK
1658 ac_builddir=.
1659
7a197a62
AK
1660case "$ac_dir" in
1661.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1662*)
ec6a6fbe 1663 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7a197a62 1664 # A ".." for each directory in $ac_dir_suffix.
ec6a6fbe 1665 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7a197a62
AK
1666 case $ac_top_builddir_sub in
1667 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1668 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1669 esac ;;
1670esac
1671ac_abs_top_builddir=$ac_pwd
1672ac_abs_builddir=$ac_pwd$ac_dir_suffix
1673# for backward compatibility:
1674ac_top_builddir=$ac_top_build_prefix
ad6254c5
AK
1675
1676case $srcdir in
7a197a62 1677 .) # We are building in place.
ad6254c5 1678 ac_srcdir=.
7a197a62
AK
1679 ac_top_srcdir=$ac_top_builddir_sub
1680 ac_abs_top_srcdir=$ac_pwd ;;
1681 [\\/]* | ?:[\\/]* ) # Absolute name.
ad6254c5 1682 ac_srcdir=$srcdir$ac_dir_suffix;
7a197a62
AK
1683 ac_top_srcdir=$srcdir
1684 ac_abs_top_srcdir=$srcdir ;;
1685 *) # Relative name.
1686 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1687 ac_top_srcdir=$ac_top_build_prefix$srcdir
1688 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8a2fc586 1689esac
7a197a62
AK
1690ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1691
1692 cd "$ac_dir" || { ac_status=$?; continue; }
1693 # Check for guested configure.
1694 if test -f "$ac_srcdir/configure.gnu"; then
1695 echo &&
1696 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1697 elif test -f "$ac_srcdir/configure"; then
1698 echo &&
1699 $SHELL "$ac_srcdir/configure" --help=recursive
ad6254c5 1700 else
ec6a6fbe 1701 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
7a197a62
AK
1702 fi || ac_status=$?
1703 cd "$ac_pwd" || { ac_status=$?; break; }
ad6254c5
AK
1704 done
1705fi
1706
7a197a62 1707test -n "$ac_init_help" && exit $ac_status
ad6254c5
AK
1708if $ac_init_version; then
1709 cat <<\_ACEOF
7a197a62 1710configure
ec6a6fbe 1711generated by GNU Autoconf 2.63
ad6254c5 1712
7a197a62 1713Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
ec6a6fbe 17142002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
ad6254c5
AK
1715This configure script is free software; the Free Software Foundation
1716gives unlimited permission to copy, distribute and modify it.
1717_ACEOF
7a197a62 1718 exit
ad6254c5 1719fi
7a197a62 1720cat >config.log <<_ACEOF
ad6254c5
AK
1721This file contains any messages produced by compilers while
1722running configure, to aid debugging if configure makes a mistake.
1723
1724It was created by $as_me, which was
ec6a6fbe 1725generated by GNU Autoconf 2.63. Invocation command line was
ad6254c5
AK
1726
1727 $ $0 $@
1728
1729_ACEOF
7a197a62 1730exec 5>>config.log
ad6254c5
AK
1731{
1732cat <<_ASUNAME
1733## --------- ##
1734## Platform. ##
1735## --------- ##
1736
1737hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1738uname -m = `(uname -m) 2>/dev/null || echo unknown`
1739uname -r = `(uname -r) 2>/dev/null || echo unknown`
1740uname -s = `(uname -s) 2>/dev/null || echo unknown`
1741uname -v = `(uname -v) 2>/dev/null || echo unknown`
1742
1743/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1744/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1745
1746/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1747/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1748/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
7a197a62 1749/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
ad6254c5
AK
1750/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1751/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1752/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1753
1754_ASUNAME
1755
1756as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1757for as_dir in $PATH
1758do
1759 IFS=$as_save_IFS
1760 test -z "$as_dir" && as_dir=.
ec6a6fbe 1761 $as_echo "PATH: $as_dir"
ad6254c5 1762done
7a197a62 1763IFS=$as_save_IFS
ad6254c5
AK
1764
1765} >&5
1766
1767cat >&5 <<_ACEOF
1768
1769
1770## ----------- ##
1771## Core tests. ##
1772## ----------- ##
1773
1774_ACEOF
1775
1776
1777# Keep a trace of the command line.
1778# Strip out --no-create and --no-recursion so they do not pile up.
1779# Strip out --silent because we don't want to record it for future runs.
1780# Also quote any args containing shell meta-characters.
1781# Make two passes to allow for proper duplicate-argument suppression.
1782ac_configure_args=
1783ac_configure_args0=
1784ac_configure_args1=
ad6254c5
AK
1785ac_must_keep_next=false
1786for ac_pass in 1 2
1787do
1788 for ac_arg
1789 do
1790 case $ac_arg in
1791 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1792 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1793 | -silent | --silent | --silen | --sile | --sil)
1794 continue ;;
7a197a62 1795 *\'*)
ec6a6fbe 1796 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
ad6254c5
AK
1797 esac
1798 case $ac_pass in
1799 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1800 2)
1801 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1802 if test $ac_must_keep_next = true; then
8a2fc586 1803 ac_must_keep_next=false # Got value, back to normal.
ad6254c5 1804 else
8a2fc586
AK
1805 case $ac_arg in
1806 *=* | --config-cache | -C | -disable-* | --disable-* \
1807 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1808 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1809 | -with-* | --with-* | -without-* | --without-* | --x)
1810 case "$ac_configure_args0 " in
1811 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1812 esac
1813 ;;
1814 -* ) ac_must_keep_next=true ;;
1815 esac
ad6254c5 1816 fi
7a197a62 1817 ac_configure_args="$ac_configure_args '$ac_arg'"
ad6254c5
AK
1818 ;;
1819 esac
1820 done
1821done
1822$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1823$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1824
1825# When interrupted or exit'd, cleanup temporary files, and complete
1826# config.log. We remove comments because anyway the quotes in there
1827# would cause problems or look ugly.
7a197a62
AK
1828# WARNING: Use '\'' to represent an apostrophe within the trap.
1829# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
ad6254c5
AK
1830trap 'exit_status=$?
1831 # Save into config.log some information that might help in debugging.
1832 {
1833 echo
1834
1835 cat <<\_ASBOX
1836## ---------------- ##
1837## Cache variables. ##
1838## ---------------- ##
1839_ASBOX
1840 echo
1841 # The following way of writing the cache mishandles newlines in values,
7a197a62
AK
1842(
1843 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1844 eval ac_val=\$$ac_var
1845 case $ac_val in #(
1846 *${as_nl}*)
1847 case $ac_var in #(
ec6a6fbe
AK
1848 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1849$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7a197a62
AK
1850 esac
1851 case $ac_var in #(
1852 _ | IFS | as_nl) ;; #(
ec6a6fbe 1853 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7a197a62
AK
1854 *) $as_unset $ac_var ;;
1855 esac ;;
1856 esac
1857 done
ad6254c5 1858 (set) 2>&1 |
7a197a62
AK
1859 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1860 *${as_nl}ac_space=\ *)
ad6254c5 1861 sed -n \
7a197a62
AK
1862 "s/'\''/'\''\\\\'\'''\''/g;
1863 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1864 ;; #(
ad6254c5 1865 *)
7a197a62 1866 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
ad6254c5 1867 ;;
7a197a62
AK
1868 esac |
1869 sort
1870)
ad6254c5
AK
1871 echo
1872
1873 cat <<\_ASBOX
1874## ----------------- ##
1875## Output variables. ##
1876## ----------------- ##
1877_ASBOX
1878 echo
1879 for ac_var in $ac_subst_vars
1880 do
7a197a62
AK
1881 eval ac_val=\$$ac_var
1882 case $ac_val in
ec6a6fbe 1883 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
7a197a62 1884 esac
ec6a6fbe 1885 $as_echo "$ac_var='\''$ac_val'\''"
ad6254c5
AK
1886 done | sort
1887 echo
1888
1889 if test -n "$ac_subst_files"; then
1890 cat <<\_ASBOX
7a197a62
AK
1891## ------------------- ##
1892## File substitutions. ##
1893## ------------------- ##
ad6254c5
AK
1894_ASBOX
1895 echo
1896 for ac_var in $ac_subst_files
1897 do
7a197a62
AK
1898 eval ac_val=\$$ac_var
1899 case $ac_val in
ec6a6fbe 1900 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
7a197a62 1901 esac
ec6a6fbe 1902 $as_echo "$ac_var='\''$ac_val'\''"
ad6254c5
AK
1903 done | sort
1904 echo
1905 fi
1906
1907 if test -s confdefs.h; then
1908 cat <<\_ASBOX
1909## ----------- ##
1910## confdefs.h. ##
1911## ----------- ##
1912_ASBOX
1913 echo
7a197a62 1914 cat confdefs.h
ad6254c5
AK
1915 echo
1916 fi
1917 test "$ac_signal" != 0 &&
ec6a6fbe
AK
1918 $as_echo "$as_me: caught signal $ac_signal"
1919 $as_echo "$as_me: exit $exit_status"
ad6254c5 1920 } >&5
7a197a62
AK
1921 rm -f core *.core core.conftest.* &&
1922 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
ad6254c5 1923 exit $exit_status
7a197a62 1924' 0
ad6254c5
AK
1925for ac_signal in 1 2 13 15; do
1926 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1927done
1928ac_signal=0
1929
1930# confdefs.h avoids OS command line length limits that DEFS can exceed.
7a197a62 1931rm -f -r conftest* confdefs.h
ad6254c5
AK
1932
1933# Predefined preprocessor variables.
1934
1935cat >>confdefs.h <<_ACEOF
1936#define PACKAGE_NAME "$PACKAGE_NAME"
1937_ACEOF
1938
1939
1940cat >>confdefs.h <<_ACEOF
1941#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1942_ACEOF
1943
1944
1945cat >>confdefs.h <<_ACEOF
1946#define PACKAGE_VERSION "$PACKAGE_VERSION"
1947_ACEOF
8106cdd5 1948
ad6254c5
AK
1949
1950cat >>confdefs.h <<_ACEOF
1951#define PACKAGE_STRING "$PACKAGE_STRING"
1952_ACEOF
1953
1954
1955cat >>confdefs.h <<_ACEOF
1956#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1957_ACEOF
1958
1959
1960# Let the site file select an alternate cache file if it wants to.
ec6a6fbe
AK
1961# Prefer an explicitly selected file to automatically selected ones.
1962ac_site_file1=NONE
1963ac_site_file2=NONE
7a197a62 1964if test -n "$CONFIG_SITE"; then
ec6a6fbe 1965 ac_site_file1=$CONFIG_SITE
7a197a62 1966elif test "x$prefix" != xNONE; then
ec6a6fbe
AK
1967 ac_site_file1=$prefix/share/config.site
1968 ac_site_file2=$prefix/etc/config.site
7a197a62 1969else
ec6a6fbe
AK
1970 ac_site_file1=$ac_default_prefix/share/config.site
1971 ac_site_file2=$ac_default_prefix/etc/config.site
795ca3e5 1972fi
ec6a6fbe 1973for ac_site_file in "$ac_site_file1" "$ac_site_file2"
7a197a62 1974do
ec6a6fbe 1975 test "x$ac_site_file" = xNONE && continue
795ca3e5 1976 if test -r "$ac_site_file"; then
ec6a6fbe
AK
1977 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1978$as_echo "$as_me: loading site script $ac_site_file" >&6;}
ad6254c5 1979 sed 's/^/| /' "$ac_site_file" >&5
795ca3e5
AK
1980 . "$ac_site_file"
1981 fi
1982done
1983
1984if test -r "$cache_file"; then
ad6254c5
AK
1985 # Some versions of bash will fail to source /dev/null (special
1986 # files actually), so we avoid doing that.
1987 if test -f "$cache_file"; then
ec6a6fbe
AK
1988 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1989$as_echo "$as_me: loading cache $cache_file" >&6;}
ad6254c5 1990 case $cache_file in
7a197a62
AK
1991 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1992 *) . "./$cache_file";;
ad6254c5
AK
1993 esac
1994 fi
795ca3e5 1995else
ec6a6fbe
AK
1996 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1997$as_echo "$as_me: creating cache $cache_file" >&6;}
ad6254c5
AK
1998 >$cache_file
1999fi
2000
2001# Check that the precious variables saved in the cache have kept the same
2002# value.
2003ac_cache_corrupted=false
7a197a62 2004for ac_var in $ac_precious_vars; do
ad6254c5
AK
2005 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2006 eval ac_new_set=\$ac_env_${ac_var}_set
7a197a62
AK
2007 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2008 eval ac_new_val=\$ac_env_${ac_var}_value
ad6254c5
AK
2009 case $ac_old_set,$ac_new_set in
2010 set,)
ec6a6fbe
AK
2011 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2012$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
ad6254c5
AK
2013 ac_cache_corrupted=: ;;
2014 ,set)
ec6a6fbe
AK
2015 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2016$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
ad6254c5
AK
2017 ac_cache_corrupted=: ;;
2018 ,);;
2019 *)
2020 if test "x$ac_old_val" != "x$ac_new_val"; then
ec6a6fbe
AK
2021 # differences in whitespace do not lead to failure.
2022 ac_old_val_w=`echo x $ac_old_val`
2023 ac_new_val_w=`echo x $ac_new_val`
2024 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2025 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2026$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2027 ac_cache_corrupted=:
2028 else
2029 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2030$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2031 eval $ac_var=\$ac_old_val
2032 fi
2033 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2034$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2035 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2036$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
ad6254c5
AK
2037 fi;;
2038 esac
2039 # Pass precious variables to config.status.
2040 if test "$ac_new_set" = set; then
2041 case $ac_new_val in
ec6a6fbe 2042 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
ad6254c5
AK
2043 *) ac_arg=$ac_var=$ac_new_val ;;
2044 esac
2045 case " $ac_configure_args " in
2046 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2047 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2048 esac
2049 fi
2050done
2051if $ac_cache_corrupted; then
ec6a6fbe
AK
2052 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2053$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2054 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2055$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2056 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2057$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
ad6254c5 2058 { (exit 1); exit 1; }; }
795ca3e5
AK
2059fi
2060
ad6254c5
AK
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
7a197a62
AK
2077ac_ext=c
2078ac_cpp='$CPP $CPPFLAGS'
2079ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2080ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2081ac_compiler_gnu=$ac_cv_c_compiler_gnu
ad6254c5 2082
795ca3e5
AK
2083
2084
7a197a62 2085ac_config_headers="$ac_config_headers lib/misc/configure.h"
72b2cb61
AK
2086
2087
80992638 2088################################################################################
795ca3e5 2089ac_aux_dir=
7a197a62
AK
2090for ac_dir in autoconf "$srcdir"/autoconf; do
2091 if test -f "$ac_dir/install-sh"; then
795ca3e5
AK
2092 ac_aux_dir=$ac_dir
2093 ac_install_sh="$ac_aux_dir/install-sh -c"
2094 break
7a197a62 2095 elif test -f "$ac_dir/install.sh"; then
795ca3e5
AK
2096 ac_aux_dir=$ac_dir
2097 ac_install_sh="$ac_aux_dir/install.sh -c"
2098 break
7a197a62 2099 elif test -f "$ac_dir/shtool"; then
ad6254c5
AK
2100 ac_aux_dir=$ac_dir
2101 ac_install_sh="$ac_aux_dir/shtool install -c"
2102 break
795ca3e5
AK
2103 fi
2104done
2105if test -z "$ac_aux_dir"; then
ec6a6fbe
AK
2106 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2107$as_echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
ad6254c5 2108 { (exit 1); exit 1; }; }
795ca3e5 2109fi
7a197a62
AK
2110
2111# These three variables are undocumented and unsupported,
2112# and are intended to be withdrawn in a future Autoconf release.
2113# They can cause serious problems if a builder's source tree is in a directory
2114# whose full name contains unusual characters.
2115ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2116ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2117ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2118
8ce0cbda
AK
2119
2120
ad6254c5 2121################################################################################
8ce0cbda 2122# Make sure we can run config.sub.
7a197a62 2123$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
ec6a6fbe
AK
2124 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2125$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
ad6254c5
AK
2126 { (exit 1); exit 1; }; }
2127
ec6a6fbe
AK
2128{ $as_echo "$as_me:$LINENO: checking build system type" >&5
2129$as_echo_n "checking build system type... " >&6; }
ad6254c5 2130if test "${ac_cv_build+set}" = set; then
ec6a6fbe 2131 $as_echo_n "(cached) " >&6
ad6254c5 2132else
7a197a62
AK
2133 ac_build_alias=$build_alias
2134test "x$ac_build_alias" = x &&
2135 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2136test "x$ac_build_alias" = x &&
ec6a6fbe
AK
2137 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2138$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
ad6254c5 2139 { (exit 1); exit 1; }; }
7a197a62 2140ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
ec6a6fbe
AK
2141 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2142$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
ad6254c5
AK
2143 { (exit 1); exit 1; }; }
2144
2145fi
ec6a6fbe
AK
2146{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2147$as_echo "$ac_cv_build" >&6; }
7a197a62
AK
2148case $ac_cv_build in
2149*-*-*) ;;
ec6a6fbe
AK
2150*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2151$as_echo "$as_me: error: invalid value of canonical build" >&2;}
7a197a62
AK
2152 { (exit 1); exit 1; }; };;
2153esac
ad6254c5 2154build=$ac_cv_build
7a197a62
AK
2155ac_save_IFS=$IFS; IFS='-'
2156set x $ac_cv_build
2157shift
2158build_cpu=$1
2159build_vendor=$2
2160shift; shift
2161# Remember, the first character of IFS is used to create $*,
2162# except with old shells:
2163build_os=$*
2164IFS=$ac_save_IFS
2165case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
ad6254c5
AK
2166
2167
ec6a6fbe
AK
2168{ $as_echo "$as_me:$LINENO: checking host system type" >&5
2169$as_echo_n "checking host system type... " >&6; }
ad6254c5 2170if test "${ac_cv_host+set}" = set; then
ec6a6fbe 2171 $as_echo_n "(cached) " >&6
ad6254c5 2172else
7a197a62
AK
2173 if test "x$host_alias" = x; then
2174 ac_cv_host=$ac_cv_build
2175else
2176 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
ec6a6fbe
AK
2177 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2178$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
ad6254c5 2179 { (exit 1); exit 1; }; }
7a197a62 2180fi
ad6254c5
AK
2181
2182fi
ec6a6fbe
AK
2183{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2184$as_echo "$ac_cv_host" >&6; }
7a197a62
AK
2185case $ac_cv_host in
2186*-*-*) ;;
ec6a6fbe
AK
2187*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2188$as_echo "$as_me: error: invalid value of canonical host" >&2;}
7a197a62
AK
2189 { (exit 1); exit 1; }; };;
2190esac
ad6254c5 2191host=$ac_cv_host
7a197a62
AK
2192ac_save_IFS=$IFS; IFS='-'
2193set x $ac_cv_host
2194shift
2195host_cpu=$1
2196host_vendor=$2
2197shift; shift
2198# Remember, the first character of IFS is used to create $*,
2199# except with old shells:
2200host_os=$*
2201IFS=$ac_save_IFS
2202case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
ad6254c5
AK
2203
2204
ec6a6fbe
AK
2205{ $as_echo "$as_me:$LINENO: checking target system type" >&5
2206$as_echo_n "checking target system type... " >&6; }
ad6254c5 2207if test "${ac_cv_target+set}" = set; then
ec6a6fbe 2208 $as_echo_n "(cached) " >&6
ad6254c5 2209else
7a197a62
AK
2210 if test "x$target_alias" = x; then
2211 ac_cv_target=$ac_cv_host
2212else
2213 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
ec6a6fbe
AK
2214 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2215$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
ad6254c5 2216 { (exit 1); exit 1; }; }
7a197a62 2217fi
8ce0cbda 2218
ad6254c5 2219fi
ec6a6fbe
AK
2220{ $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2221$as_echo "$ac_cv_target" >&6; }
7a197a62
AK
2222case $ac_cv_target in
2223*-*-*) ;;
ec6a6fbe
AK
2224*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2225$as_echo "$as_me: error: invalid value of canonical target" >&2;}
7a197a62
AK
2226 { (exit 1); exit 1; }; };;
2227esac
ad6254c5 2228target=$ac_cv_target
7a197a62
AK
2229ac_save_IFS=$IFS; IFS='-'
2230set x $ac_cv_target
2231shift
2232target_cpu=$1
2233target_vendor=$2
2234shift; shift
2235# Remember, the first character of IFS is used to create $*,
2236# except with old shells:
2237target_os=$*
2238IFS=$ac_save_IFS
2239case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
8ce0cbda 2240
8ce0cbda 2241
ad6254c5
AK
2242# The aliases save the names the user supplied, while $host etc.
2243# will get canonicalized.
2244test -n "$target_alias" &&
8ce0cbda
AK
2245 test "$program_prefix$program_suffix$program_transform_name" = \
2246 NONENONEs,x,x, &&
2247 program_prefix=${target_alias}-
2248
8ce0cbda
AK
2249case "$host_os" in
2250 linux*)
7f54ef36 2251 CFLAGS="$CFLAGS"
8ce0cbda
AK
2252 COPTIMISE_FLAG="-O2"
2253 CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym"
2254 CLDWHOLEARCHIVE="-Wl,-whole-archive"
2255 CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive"
2256 LDDEPS="$LDDEPS .export.sym"
2257 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
d0191583 2258 LIB_SUFFIX=so
8ce0cbda
AK
2259 DEVMAPPER=yes
2260 ODIRECT=yes
d0191583 2261 DM_IOCTLS=yes
8ce0cbda
AK
2262 SELINUX=yes
2263 CLUSTER=internal
93bd259b 2264 FSADM=yes
d0191583 2265 ;;
8ce0cbda
AK
2266 darwin*)
2267 CFLAGS="$CFLAGS -no-cpp-precomp -fno-common"
2268 COPTIMISE_FLAG="-O2"
2269 CLDFLAGS="$CLDFLAGS"
2270 CLDWHOLEARCHIVE="-all_load"
2271 CLDNOWHOLEARCHIVE=
d0191583 2272 LIB_SUFFIX=dylib
a653923f 2273 DEVMAPPER=yes
8ce0cbda 2274 ODIRECT=no
d0191583 2275 DM_IOCTLS=no
8ce0cbda
AK
2276 SELINUX=no
2277 CLUSTER=none
d0191583
JM
2278 FSADM=no
2279 ;;
8ce0cbda
AK
2280esac
2281
80992638 2282################################################################################
ec6a6fbe
AK
2283{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
2284$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5951ef33 2285if test "${ac_cv_path_SED+set}" = set; then
ec6a6fbe 2286 $as_echo_n "(cached) " >&6
5951ef33
AK
2287else
2288 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2289 for ac_i in 1 2 3 4 5 6 7; do
2290 ac_script="$ac_script$as_nl$ac_script"
2291 done
ec6a6fbe 2292 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5951ef33 2293 $as_unset ac_script || ac_script=
ec6a6fbe 2294 if test -z "$SED"; then
5951ef33 2295 ac_path_SED_found=false
ec6a6fbe
AK
2296 # Loop through the user's path and test for each of PROGNAME-LIST
2297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5951ef33
AK
2298for as_dir in $PATH
2299do
2300 IFS=$as_save_IFS
2301 test -z "$as_dir" && as_dir=.
2302 for ac_prog in sed gsed; do
ec6a6fbe
AK
2303 for ac_exec_ext in '' $ac_executable_extensions; do
2304 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2305 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2306# Check for GNU ac_path_SED and select it if it is found.
5951ef33
AK
2307 # Check for GNU $ac_path_SED
2308case `"$ac_path_SED" --version 2>&1` in
2309*GNU*)
2310 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2311*)
2312 ac_count=0
ec6a6fbe 2313 $as_echo_n 0123456789 >"conftest.in"
5951ef33
AK
2314 while :
2315 do
2316 cat "conftest.in" "conftest.in" >"conftest.tmp"
2317 mv "conftest.tmp" "conftest.in"
2318 cp "conftest.in" "conftest.nl"
ec6a6fbe 2319 $as_echo '' >> "conftest.nl"
5951ef33
AK
2320 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2321 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2322 ac_count=`expr $ac_count + 1`
2323 if test $ac_count -gt ${ac_path_SED_max-0}; then
2324 # Best one so far, save it but keep looking for a better one
2325 ac_cv_path_SED="$ac_path_SED"
2326 ac_path_SED_max=$ac_count
2327 fi
2328 # 10*(2^10) chars as input seems more than enough
2329 test $ac_count -gt 10 && break
2330 done
2331 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2332esac
2333
ec6a6fbe
AK
2334 $ac_path_SED_found && break 3
2335 done
5951ef33
AK
2336 done
2337done
5951ef33 2338IFS=$as_save_IFS
ec6a6fbe
AK
2339 if test -z "$ac_cv_path_SED"; then
2340 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
2341$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
5951ef33 2342 { (exit 1); exit 1; }; }
ec6a6fbe 2343 fi
5951ef33
AK
2344else
2345 ac_cv_path_SED=$SED
2346fi
2347
2348fi
ec6a6fbe
AK
2349{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
2350$as_echo "$ac_cv_path_SED" >&6; }
5951ef33
AK
2351 SED="$ac_cv_path_SED"
2352 rm -f conftest.sed
2353
ad6254c5 2354for ac_prog in gawk mawk nawk awk
795ca3e5 2355do
ad6254c5 2356 # Extract the first word of "$ac_prog", so it can be a program name with args.
795ca3e5 2357set dummy $ac_prog; ac_word=$2
ec6a6fbe
AK
2358{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2359$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2360if test "${ac_cv_prog_AWK+set}" = set; then
ec6a6fbe 2361 $as_echo_n "(cached) " >&6
795ca3e5
AK
2362else
2363 if test -n "$AWK"; then
2364 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2365else
ad6254c5
AK
2366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2367for as_dir in $PATH
2368do
2369 IFS=$as_save_IFS
2370 test -z "$as_dir" && as_dir=.
2371 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2373 ac_cv_prog_AWK="$ac_prog"
ec6a6fbe 2374 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2375 break 2
2376 fi
2377done
2378done
7a197a62 2379IFS=$as_save_IFS
ad6254c5 2380
795ca3e5
AK
2381fi
2382fi
ad6254c5 2383AWK=$ac_cv_prog_AWK
795ca3e5 2384if test -n "$AWK"; then
ec6a6fbe
AK
2385 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2386$as_echo "$AWK" >&6; }
795ca3e5 2387else
ec6a6fbe
AK
2388 { $as_echo "$as_me:$LINENO: result: no" >&5
2389$as_echo "no" >&6; }
795ca3e5
AK
2390fi
2391
7a197a62 2392
ad6254c5
AK
2393 test -n "$AWK" && break
2394done
2395
2396ac_ext=c
2397ac_cpp='$CPP $CPPFLAGS'
2398ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2399ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2400ac_compiler_gnu=$ac_cv_c_compiler_gnu
2401if test -n "$ac_tool_prefix"; then
2402 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2403set dummy ${ac_tool_prefix}gcc; ac_word=$2
ec6a6fbe
AK
2404{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2405$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2406if test "${ac_cv_prog_CC+set}" = set; then
ec6a6fbe 2407 $as_echo_n "(cached) " >&6
ad6254c5
AK
2408else
2409 if test -n "$CC"; then
2410 ac_cv_prog_CC="$CC" # Let the user override the test.
2411else
2412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2413for as_dir in $PATH
2414do
2415 IFS=$as_save_IFS
2416 test -z "$as_dir" && as_dir=.
2417 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2419 ac_cv_prog_CC="${ac_tool_prefix}gcc"
ec6a6fbe 2420 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2421 break 2
2422 fi
2423done
8106cdd5 2424done
7a197a62 2425IFS=$as_save_IFS
8106cdd5 2426
ad6254c5
AK
2427fi
2428fi
2429CC=$ac_cv_prog_CC
2430if test -n "$CC"; then
ec6a6fbe
AK
2431 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2432$as_echo "$CC" >&6; }
ad6254c5 2433else
ec6a6fbe
AK
2434 { $as_echo "$as_me:$LINENO: result: no" >&5
2435$as_echo "no" >&6; }
ad6254c5
AK
2436fi
2437
7a197a62 2438
ad6254c5
AK
2439fi
2440if test -z "$ac_cv_prog_CC"; then
2441 ac_ct_CC=$CC
2442 # Extract the first word of "gcc", so it can be a program name with args.
8106cdd5 2443set dummy gcc; ac_word=$2
ec6a6fbe
AK
2444{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2445$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2446if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
ec6a6fbe 2447 $as_echo_n "(cached) " >&6
ad6254c5
AK
2448else
2449 if test -n "$ac_ct_CC"; then
2450 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2451else
2452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2453for as_dir in $PATH
2454do
2455 IFS=$as_save_IFS
2456 test -z "$as_dir" && as_dir=.
2457 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2459 ac_cv_prog_ac_ct_CC="gcc"
ec6a6fbe 2460 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2461 break 2
2462 fi
2463done
2464done
7a197a62 2465IFS=$as_save_IFS
ad6254c5
AK
2466
2467fi
2468fi
2469ac_ct_CC=$ac_cv_prog_ac_ct_CC
2470if test -n "$ac_ct_CC"; then
ec6a6fbe
AK
2471 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2472$as_echo "$ac_ct_CC" >&6; }
ad6254c5 2473else
ec6a6fbe
AK
2474 { $as_echo "$as_me:$LINENO: result: no" >&5
2475$as_echo "no" >&6; }
ad6254c5
AK
2476fi
2477
7a197a62
AK
2478 if test "x$ac_ct_CC" = x; then
2479 CC=""
2480 else
2481 case $cross_compiling:$ac_tool_warned in
2482yes:)
ec6a6fbe
AK
2483{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2484$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7a197a62
AK
2485ac_tool_warned=yes ;;
2486esac
2487 CC=$ac_ct_CC
2488 fi
ad6254c5
AK
2489else
2490 CC="$ac_cv_prog_CC"
2491fi
2492
2493if test -z "$CC"; then
7a197a62
AK
2494 if test -n "$ac_tool_prefix"; then
2495 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
ad6254c5 2496set dummy ${ac_tool_prefix}cc; ac_word=$2
ec6a6fbe
AK
2497{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2498$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2499if test "${ac_cv_prog_CC+set}" = set; then
ec6a6fbe 2500 $as_echo_n "(cached) " >&6
8106cdd5
AK
2501else
2502 if test -n "$CC"; then
2503 ac_cv_prog_CC="$CC" # Let the user override the test.
2504else
ad6254c5
AK
2505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2506for as_dir in $PATH
2507do
2508 IFS=$as_save_IFS
2509 test -z "$as_dir" && as_dir=.
2510 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2512 ac_cv_prog_CC="${ac_tool_prefix}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
8106cdd5
AK
2520fi
2521fi
ad6254c5 2522CC=$ac_cv_prog_CC
8106cdd5 2523if test -n "$CC"; then
ec6a6fbe
AK
2524 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2525$as_echo "$CC" >&6; }
ad6254c5 2526else
ec6a6fbe
AK
2527 { $as_echo "$as_me:$LINENO: result: no" >&5
2528$as_echo "no" >&6; }
ad6254c5
AK
2529fi
2530
8106cdd5 2531
7a197a62 2532 fi
ad6254c5 2533fi
795ca3e5
AK
2534if test -z "$CC"; then
2535 # Extract the first word of "cc", so it can be a program name with args.
2536set dummy cc; ac_word=$2
ec6a6fbe
AK
2537{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2538$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2539if test "${ac_cv_prog_CC+set}" = set; then
ec6a6fbe 2540 $as_echo_n "(cached) " >&6
795ca3e5
AK
2541else
2542 if test -n "$CC"; then
2543 ac_cv_prog_CC="$CC" # Let the user override the test.
2544else
795ca3e5 2545 ac_prog_rejected=no
ad6254c5
AK
2546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2547for as_dir in $PATH
2548do
2549 IFS=$as_save_IFS
2550 test -z "$as_dir" && as_dir=.
2551 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5
AK
2553 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2554 ac_prog_rejected=yes
2555 continue
2556 fi
2557 ac_cv_prog_CC="cc"
ec6a6fbe 2558 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2559 break 2
2560 fi
2561done
2562done
7a197a62 2563IFS=$as_save_IFS
ad6254c5 2564
795ca3e5
AK
2565if test $ac_prog_rejected = yes; then
2566 # We found a bogon in the path, so make sure we never use it.
2567 set dummy $ac_cv_prog_CC
2568 shift
ad6254c5 2569 if test $# != 0; then
795ca3e5
AK
2570 # We chose a different compiler from the bogus one.
2571 # However, it has the same basename, so the bogon will be chosen
2572 # first if we set CC to just the basename; use the full file name.
2573 shift
ad6254c5 2574 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
795ca3e5
AK
2575 fi
2576fi
2577fi
2578fi
ad6254c5 2579CC=$ac_cv_prog_CC
795ca3e5 2580if test -n "$CC"; then
ec6a6fbe
AK
2581 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2582$as_echo "$CC" >&6; }
795ca3e5 2583else
ec6a6fbe
AK
2584 { $as_echo "$as_me:$LINENO: result: no" >&5
2585$as_echo "no" >&6; }
795ca3e5
AK
2586fi
2587
7a197a62 2588
ad6254c5
AK
2589fi
2590if test -z "$CC"; then
2591 if test -n "$ac_tool_prefix"; then
7a197a62 2592 for ac_prog in cl.exe
ad6254c5
AK
2593 do
2594 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2595set dummy $ac_tool_prefix$ac_prog; ac_word=$2
ec6a6fbe
AK
2596{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2597$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2598if test "${ac_cv_prog_CC+set}" = set; then
ec6a6fbe 2599 $as_echo_n "(cached) " >&6
795ca3e5
AK
2600else
2601 if test -n "$CC"; then
2602 ac_cv_prog_CC="$CC" # Let the user override the test.
2603else
ad6254c5
AK
2604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2605for as_dir in $PATH
2606do
2607 IFS=$as_save_IFS
2608 test -z "$as_dir" && as_dir=.
2609 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2611 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
ec6a6fbe 2612 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2613 break 2
2614 fi
2615done
2616done
7a197a62 2617IFS=$as_save_IFS
ad6254c5 2618
795ca3e5
AK
2619fi
2620fi
ad6254c5 2621CC=$ac_cv_prog_CC
795ca3e5 2622if test -n "$CC"; then
ec6a6fbe
AK
2623 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2624$as_echo "$CC" >&6; }
795ca3e5 2625else
ec6a6fbe
AK
2626 { $as_echo "$as_me:$LINENO: result: no" >&5
2627$as_echo "no" >&6; }
795ca3e5 2628fi
ad6254c5 2629
7a197a62 2630
ad6254c5
AK
2631 test -n "$CC" && break
2632 done
2633fi
2634if test -z "$CC"; then
2635 ac_ct_CC=$CC
7a197a62 2636 for ac_prog in cl.exe
ad6254c5
AK
2637do
2638 # Extract the first word of "$ac_prog", so it can be a program name with args.
2639set dummy $ac_prog; ac_word=$2
ec6a6fbe
AK
2640{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2641$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2642if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
ec6a6fbe 2643 $as_echo_n "(cached) " >&6
ad6254c5
AK
2644else
2645 if test -n "$ac_ct_CC"; then
2646 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2647else
2648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2649for as_dir in $PATH
2650do
2651 IFS=$as_save_IFS
2652 test -z "$as_dir" && as_dir=.
2653 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2655 ac_cv_prog_ac_ct_CC="$ac_prog"
ec6a6fbe 2656 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5 2657 break 2
795ca3e5 2658 fi
ad6254c5
AK
2659done
2660done
7a197a62 2661IFS=$as_save_IFS
ad6254c5
AK
2662
2663fi
2664fi
2665ac_ct_CC=$ac_cv_prog_ac_ct_CC
2666if test -n "$ac_ct_CC"; then
ec6a6fbe
AK
2667 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2668$as_echo "$ac_ct_CC" >&6; }
ad6254c5 2669else
ec6a6fbe
AK
2670 { $as_echo "$as_me:$LINENO: result: no" >&5
2671$as_echo "no" >&6; }
795ca3e5
AK
2672fi
2673
7a197a62 2674
ad6254c5
AK
2675 test -n "$ac_ct_CC" && break
2676done
795ca3e5 2677
7a197a62
AK
2678 if test "x$ac_ct_CC" = x; then
2679 CC=""
2680 else
2681 case $cross_compiling:$ac_tool_warned in
2682yes:)
ec6a6fbe
AK
2683{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2684$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7a197a62
AK
2685ac_tool_warned=yes ;;
2686esac
2687 CC=$ac_ct_CC
2688 fi
ad6254c5
AK
2689fi
2690
2691fi
2692
2693
ec6a6fbe
AK
2694test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2695$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2696{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
ad6254c5 2697See \`config.log' for more details." >&5
ec6a6fbe 2698$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
ad6254c5 2699See \`config.log' for more details." >&2;}
ec6a6fbe 2700 { (exit 1); exit 1; }; }; }
ad6254c5
AK
2701
2702# Provide some information about the compiler.
ec6a6fbe
AK
2703$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2704set X $ac_compile
2705ac_compiler=$2
7a197a62
AK
2706{ (ac_try="$ac_compiler --version >&5"
2707case "(($ac_try" in
2708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2709 *) ac_try_echo=$ac_try;;
2710esac
ec6a6fbe
AK
2711eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2712$as_echo "$ac_try_echo") >&5
7a197a62 2713 (eval "$ac_compiler --version >&5") 2>&5
ad6254c5 2714 ac_status=$?
ec6a6fbe 2715 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2716 (exit $ac_status); }
7a197a62
AK
2717{ (ac_try="$ac_compiler -v >&5"
2718case "(($ac_try" in
2719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2720 *) ac_try_echo=$ac_try;;
2721esac
ec6a6fbe
AK
2722eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2723$as_echo "$ac_try_echo") >&5
7a197a62 2724 (eval "$ac_compiler -v >&5") 2>&5
ad6254c5 2725 ac_status=$?
ec6a6fbe 2726 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2727 (exit $ac_status); }
7a197a62
AK
2728{ (ac_try="$ac_compiler -V >&5"
2729case "(($ac_try" in
2730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2731 *) ac_try_echo=$ac_try;;
2732esac
ec6a6fbe
AK
2733eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2734$as_echo "$ac_try_echo") >&5
7a197a62 2735 (eval "$ac_compiler -V >&5") 2>&5
ad6254c5 2736 ac_status=$?
ec6a6fbe 2737 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
2738 (exit $ac_status); }
2739
2740cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2741/* confdefs.h. */
2742_ACEOF
2743cat confdefs.h >>conftest.$ac_ext
2744cat >>conftest.$ac_ext <<_ACEOF
2745/* end confdefs.h. */
2746
2747int
2748main ()
2749{
2750
2751 ;
2752 return 0;
2753}
2754_ACEOF
2755ac_clean_files_save=$ac_clean_files
ec6a6fbe 2756ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
ad6254c5
AK
2757# Try to create an executable without -o first, disregard a.out.
2758# It will help us diagnose broken compilers, and finding out an intuition
2759# of exeext.
ec6a6fbe
AK
2760{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2761$as_echo_n "checking for C compiler default output file name... " >&6; }
2762ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2763
2764# The possible output files:
2765ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2766
7a197a62
AK
2767ac_rmfiles=
2768for ac_file in $ac_files
2769do
2770 case $ac_file in
ec6a6fbe 2771 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
7a197a62
AK
2772 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2773 esac
2774done
2775rm -f $ac_rmfiles
2776
2777if { (ac_try="$ac_link_default"
2778case "(($ac_try" in
2779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2780 *) ac_try_echo=$ac_try;;
2781esac
ec6a6fbe
AK
2782eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2783$as_echo "$ac_try_echo") >&5
7a197a62 2784 (eval "$ac_link_default") 2>&5
ad6254c5 2785 ac_status=$?
ec6a6fbe 2786 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2787 (exit $ac_status); }; then
7a197a62
AK
2788 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2789# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2790# in a Makefile. We should not override ac_cv_exeext if it was cached,
2791# so that the user can short-circuit this test for compilers unknown to
2792# Autoconf.
25fbec5b 2793for ac_file in $ac_files ''
ad6254c5
AK
2794do
2795 test -f "$ac_file" || continue
2796 case $ac_file in
ec6a6fbe 2797 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
8a2fc586 2798 ;;
ad6254c5 2799 [ab].out )
8a2fc586
AK
2800 # We found the default executable, but exeext='' is most
2801 # certainly right.
2802 break;;
ad6254c5 2803 *.* )
7a197a62
AK
2804 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2805 then :; else
2806 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2807 fi
2808 # We set ac_cv_exeext here because the later test for it is not
2809 # safe: cross compilers may not add the suffix if given an `-o'
2810 # argument, so we may need to know it at that point already.
2811 # Even if this section looks crufty: it has the advantage of
2812 # actually working.
8a2fc586 2813 break;;
ad6254c5 2814 * )
8a2fc586 2815 break;;
ad6254c5
AK
2816 esac
2817done
7a197a62
AK
2818test "$ac_cv_exeext" = no && ac_cv_exeext=
2819
ad6254c5 2820else
25fbec5b
AK
2821 ac_file=''
2822fi
2823
ec6a6fbe
AK
2824{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2825$as_echo "$ac_file" >&6; }
25fbec5b 2826if test -z "$ac_file"; then
ec6a6fbe 2827 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
2828sed 's/^/| /' conftest.$ac_ext >&5
2829
ec6a6fbe
AK
2830{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2831$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2832{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
ad6254c5 2833See \`config.log' for more details." >&5
ec6a6fbe 2834$as_echo "$as_me: error: C compiler cannot create executables
ad6254c5 2835See \`config.log' for more details." >&2;}
ec6a6fbe 2836 { (exit 77); exit 77; }; }; }
ad6254c5
AK
2837fi
2838
2839ac_exeext=$ac_cv_exeext
ad6254c5 2840
7a197a62 2841# Check that the compiler produces executables we can run. If not, either
ad6254c5 2842# the compiler is broken, or we cross compile.
ec6a6fbe
AK
2843{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2844$as_echo_n "checking whether the C compiler works... " >&6; }
ad6254c5
AK
2845# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2846# If not cross compiling, check that we can run a simple program.
2847if test "$cross_compiling" != yes; then
2848 if { ac_try='./$ac_file'
7a197a62
AK
2849 { (case "(($ac_try" in
2850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2851 *) ac_try_echo=$ac_try;;
2852esac
ec6a6fbe
AK
2853eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2854$as_echo "$ac_try_echo") >&5
7a197a62 2855 (eval "$ac_try") 2>&5
ad6254c5 2856 ac_status=$?
ec6a6fbe 2857 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
2858 (exit $ac_status); }; }; then
2859 cross_compiling=no
795ca3e5 2860 else
ad6254c5
AK
2861 if test "$cross_compiling" = maybe; then
2862 cross_compiling=yes
2863 else
ec6a6fbe
AK
2864 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2865$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2866{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
ad6254c5
AK
2867If you meant to cross compile, use \`--host'.
2868See \`config.log' for more details." >&5
ec6a6fbe 2869$as_echo "$as_me: error: cannot run C compiled programs.
ad6254c5
AK
2870If you meant to cross compile, use \`--host'.
2871See \`config.log' for more details." >&2;}
ec6a6fbe 2872 { (exit 1); exit 1; }; }; }
ad6254c5 2873 fi
795ca3e5 2874 fi
80992638 2875fi
ec6a6fbe
AK
2876{ $as_echo "$as_me:$LINENO: result: yes" >&5
2877$as_echo "yes" >&6; }
ad6254c5 2878
ec6a6fbe 2879rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
ad6254c5 2880ac_clean_files=$ac_clean_files_save
7a197a62 2881# Check that the compiler produces executables we can run. If not, either
ad6254c5 2882# the compiler is broken, or we cross compile.
ec6a6fbe
AK
2883{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2884$as_echo_n "checking whether we are cross compiling... " >&6; }
2885{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2886$as_echo "$cross_compiling" >&6; }
7a197a62 2887
ec6a6fbe
AK
2888{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2889$as_echo_n "checking for suffix of executables... " >&6; }
7a197a62
AK
2890if { (ac_try="$ac_link"
2891case "(($ac_try" in
2892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2893 *) ac_try_echo=$ac_try;;
2894esac
ec6a6fbe
AK
2895eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2896$as_echo "$ac_try_echo") >&5
7a197a62 2897 (eval "$ac_link") 2>&5
ad6254c5 2898 ac_status=$?
ec6a6fbe 2899 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
2900 (exit $ac_status); }; then
2901 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2902# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2903# work properly (i.e., refer to `conftest.exe'), while it won't with
2904# `rm'.
2905for ac_file in conftest.exe conftest conftest.*; do
2906 test -f "$ac_file" || continue
2907 case $ac_file in
ec6a6fbe 2908 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
ad6254c5 2909 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
8a2fc586 2910 break;;
ad6254c5
AK
2911 * ) break;;
2912 esac
2913done
80992638 2914else
ec6a6fbe
AK
2915 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2916$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2917{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
ad6254c5 2918See \`config.log' for more details." >&5
ec6a6fbe 2919$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
ad6254c5 2920See \`config.log' for more details." >&2;}
ec6a6fbe 2921 { (exit 1); exit 1; }; }; }
ad6254c5
AK
2922fi
2923
2924rm -f conftest$ac_cv_exeext
ec6a6fbe
AK
2925{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2926$as_echo "$ac_cv_exeext" >&6; }
ad6254c5
AK
2927
2928rm -f conftest.$ac_ext
2929EXEEXT=$ac_cv_exeext
2930ac_exeext=$EXEEXT
ec6a6fbe
AK
2931{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2932$as_echo_n "checking for suffix of object files... " >&6; }
ad6254c5 2933if test "${ac_cv_objext+set}" = set; then
ec6a6fbe 2934 $as_echo_n "(cached) " >&6
795ca3e5 2935else
ad6254c5 2936 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2937/* confdefs.h. */
2938_ACEOF
2939cat confdefs.h >>conftest.$ac_ext
2940cat >>conftest.$ac_ext <<_ACEOF
2941/* end confdefs.h. */
2942
2943int
2944main ()
2945{
2946
2947 ;
2948 return 0;
2949}
2950_ACEOF
2951rm -f conftest.o conftest.obj
7a197a62
AK
2952if { (ac_try="$ac_compile"
2953case "(($ac_try" in
2954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2955 *) ac_try_echo=$ac_try;;
2956esac
ec6a6fbe
AK
2957eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2958$as_echo "$ac_try_echo") >&5
7a197a62 2959 (eval "$ac_compile") 2>&5
ad6254c5 2960 ac_status=$?
ec6a6fbe 2961 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2962 (exit $ac_status); }; then
7a197a62
AK
2963 for ac_file in conftest.o conftest.obj conftest.*; do
2964 test -f "$ac_file" || continue;
ad6254c5 2965 case $ac_file in
ec6a6fbe 2966 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
ad6254c5
AK
2967 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2968 break;;
2969 esac
2970done
2971else
ec6a6fbe 2972 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
2973sed 's/^/| /' conftest.$ac_ext >&5
2974
ec6a6fbe
AK
2975{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2976$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2977{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
ad6254c5 2978See \`config.log' for more details." >&5
ec6a6fbe 2979$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
ad6254c5 2980See \`config.log' for more details." >&2;}
ec6a6fbe 2981 { (exit 1); exit 1; }; }; }
ad6254c5
AK
2982fi
2983
2984rm -f conftest.$ac_cv_objext conftest.$ac_ext
2985fi
ec6a6fbe
AK
2986{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2987$as_echo "$ac_cv_objext" >&6; }
ad6254c5
AK
2988OBJEXT=$ac_cv_objext
2989ac_objext=$OBJEXT
ec6a6fbe
AK
2990{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2991$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
ad6254c5 2992if test "${ac_cv_c_compiler_gnu+set}" = set; then
ec6a6fbe 2993 $as_echo_n "(cached) " >&6
ad6254c5
AK
2994else
2995 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2996/* confdefs.h. */
2997_ACEOF
2998cat confdefs.h >>conftest.$ac_ext
2999cat >>conftest.$ac_ext <<_ACEOF
3000/* end confdefs.h. */
3001
3002int
3003main ()
3004{
3005#ifndef __GNUC__
3006 choke me
3007#endif
80992638 3008
ad6254c5
AK
3009 ;
3010 return 0;
3011}
3012_ACEOF
3013rm -f conftest.$ac_objext
7a197a62
AK
3014if { (ac_try="$ac_compile"
3015case "(($ac_try" in
3016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3017 *) ac_try_echo=$ac_try;;
3018esac
ec6a6fbe
AK
3019eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3020$as_echo "$ac_try_echo") >&5
7a197a62 3021 (eval "$ac_compile") 2>conftest.er1
ad6254c5 3022 ac_status=$?
8a2fc586
AK
3023 grep -v '^ *+' conftest.er1 >conftest.err
3024 rm -f conftest.er1
3025 cat conftest.err >&5
ec6a6fbe 3026 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
3027 (exit $ac_status); } && {
3028 test -z "$ac_c_werror_flag" ||
3029 test ! -s conftest.err
3030 } && test -s conftest.$ac_objext; then
ad6254c5 3031 ac_compiler_gnu=yes
80992638 3032else
ec6a6fbe 3033 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
3034sed 's/^/| /' conftest.$ac_ext >&5
3035
7a197a62 3036 ac_compiler_gnu=no
8106cdd5 3037fi
7a197a62
AK
3038
3039rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 3040ac_cv_c_compiler_gnu=$ac_compiler_gnu
80992638 3041
ad6254c5 3042fi
ec6a6fbe
AK
3043{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3044$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3045if test $ac_compiler_gnu = yes; then
3046 GCC=yes
3047else
3048 GCC=
3049fi
ad6254c5
AK
3050ac_test_CFLAGS=${CFLAGS+set}
3051ac_save_CFLAGS=$CFLAGS
ec6a6fbe
AK
3052{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3053$as_echo_n "checking whether $CC accepts -g... " >&6; }
ad6254c5 3054if test "${ac_cv_prog_cc_g+set}" = set; then
ec6a6fbe 3055 $as_echo_n "(cached) " >&6
795ca3e5 3056else
7a197a62
AK
3057 ac_save_c_werror_flag=$ac_c_werror_flag
3058 ac_c_werror_flag=yes
3059 ac_cv_prog_cc_g=no
3060 CFLAGS="-g"
3061 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3062/* confdefs.h. */
3063_ACEOF
3064cat confdefs.h >>conftest.$ac_ext
3065cat >>conftest.$ac_ext <<_ACEOF
3066/* end confdefs.h. */
3067
3068int
3069main ()
3070{
3071
3072 ;
3073 return 0;
3074}
3075_ACEOF
3076rm -f conftest.$ac_objext
7a197a62
AK
3077if { (ac_try="$ac_compile"
3078case "(($ac_try" in
3079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3080 *) ac_try_echo=$ac_try;;
3081esac
ec6a6fbe
AK
3082eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3083$as_echo "$ac_try_echo") >&5
7a197a62 3084 (eval "$ac_compile") 2>conftest.er1
ad6254c5 3085 ac_status=$?
8a2fc586
AK
3086 grep -v '^ *+' conftest.er1 >conftest.err
3087 rm -f conftest.er1
3088 cat conftest.err >&5
ec6a6fbe 3089 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
3090 (exit $ac_status); } && {
3091 test -z "$ac_c_werror_flag" ||
3092 test ! -s conftest.err
3093 } && test -s conftest.$ac_objext; then
7a197a62
AK
3094 ac_cv_prog_cc_g=yes
3095else
ec6a6fbe 3096 $as_echo "$as_me: failed program was:" >&5
7a197a62
AK
3097sed 's/^/| /' conftest.$ac_ext >&5
3098
3099 CFLAGS=""
3100 cat >conftest.$ac_ext <<_ACEOF
3101/* confdefs.h. */
3102_ACEOF
3103cat confdefs.h >>conftest.$ac_ext
3104cat >>conftest.$ac_ext <<_ACEOF
3105/* end confdefs.h. */
3106
3107int
3108main ()
3109{
3110
3111 ;
3112 return 0;
3113}
3114_ACEOF
3115rm -f conftest.$ac_objext
3116if { (ac_try="$ac_compile"
3117case "(($ac_try" in
3118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3119 *) ac_try_echo=$ac_try;;
3120esac
ec6a6fbe
AK
3121eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3122$as_echo "$ac_try_echo") >&5
7a197a62 3123 (eval "$ac_compile") 2>conftest.er1
8a2fc586 3124 ac_status=$?
7a197a62
AK
3125 grep -v '^ *+' conftest.er1 >conftest.err
3126 rm -f conftest.er1
3127 cat conftest.err >&5
ec6a6fbe 3128 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
3129 (exit $ac_status); } && {
3130 test -z "$ac_c_werror_flag" ||
3131 test ! -s conftest.err
3132 } && test -s conftest.$ac_objext; then
7a197a62
AK
3133 :
3134else
ec6a6fbe 3135 $as_echo "$as_me: failed program was:" >&5
7a197a62
AK
3136sed 's/^/| /' conftest.$ac_ext >&5
3137
3138 ac_c_werror_flag=$ac_save_c_werror_flag
3139 CFLAGS="-g"
3140 cat >conftest.$ac_ext <<_ACEOF
3141/* confdefs.h. */
3142_ACEOF
3143cat confdefs.h >>conftest.$ac_ext
3144cat >>conftest.$ac_ext <<_ACEOF
3145/* end confdefs.h. */
3146
3147int
3148main ()
3149{
3150
3151 ;
3152 return 0;
3153}
3154_ACEOF
3155rm -f conftest.$ac_objext
3156if { (ac_try="$ac_compile"
3157case "(($ac_try" in
3158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3159 *) ac_try_echo=$ac_try;;
3160esac
ec6a6fbe
AK
3161eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3162$as_echo "$ac_try_echo") >&5
7a197a62 3163 (eval "$ac_compile") 2>conftest.er1
ad6254c5 3164 ac_status=$?
7a197a62
AK
3165 grep -v '^ *+' conftest.er1 >conftest.err
3166 rm -f conftest.er1
3167 cat conftest.err >&5
ec6a6fbe 3168 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
3169 (exit $ac_status); } && {
3170 test -z "$ac_c_werror_flag" ||
3171 test ! -s conftest.err
3172 } && test -s conftest.$ac_objext; then
795ca3e5
AK
3173 ac_cv_prog_cc_g=yes
3174else
ec6a6fbe 3175 $as_echo "$as_me: failed program was:" >&5
ad6254c5 3176sed 's/^/| /' conftest.$ac_ext >&5
80992638 3177
7a197a62
AK
3178
3179fi
3180
3181rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3182fi
3183
3184rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8106cdd5 3185fi
7a197a62
AK
3186
3187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3188 ac_c_werror_flag=$ac_save_c_werror_flag
ad6254c5 3189fi
ec6a6fbe
AK
3190{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3191$as_echo "$ac_cv_prog_cc_g" >&6; }
795ca3e5 3192if test "$ac_test_CFLAGS" = set; then
ad6254c5 3193 CFLAGS=$ac_save_CFLAGS
795ca3e5
AK
3194elif test $ac_cv_prog_cc_g = yes; then
3195 if test "$GCC" = yes; then
3196 CFLAGS="-g -O2"
3197 else
3198 CFLAGS="-g"
3199 fi
3200else
3201 if test "$GCC" = yes; then
3202 CFLAGS="-O2"
3203 else
3204 CFLAGS=
3205 fi
3206fi
ec6a6fbe
AK
3207{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3208$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
7a197a62 3209if test "${ac_cv_prog_cc_c89+set}" = set; then
ec6a6fbe 3210 $as_echo_n "(cached) " >&6
ad6254c5 3211else
7a197a62 3212 ac_cv_prog_cc_c89=no
ad6254c5
AK
3213ac_save_CC=$CC
3214cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3215/* confdefs.h. */
3216_ACEOF
3217cat confdefs.h >>conftest.$ac_ext
3218cat >>conftest.$ac_ext <<_ACEOF
3219/* end confdefs.h. */
3220#include <stdarg.h>
3221#include <stdio.h>
3222#include <sys/types.h>
3223#include <sys/stat.h>
3224/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3225struct buf { int x; };
3226FILE * (*rcsopen) (struct buf *, struct stat *, int);
3227static char *e (p, i)
3228 char **p;
3229 int i;
3230{
3231 return p[i];
3232}
3233static char *f (char * (*g) (char **, int), char **p, ...)
3234{
3235 char *s;
3236 va_list v;
3237 va_start (v,p);
3238 s = g (p, va_arg (v,int));
3239 va_end (v);
3240 return s;
3241}
8a2fc586
AK
3242
3243/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3244 function prototypes and stuff, but not '\xHH' hex character constants.
3245 These don't provoke an error unfortunately, instead are silently treated
7a197a62 3246 as 'x'. The following induces an error, until -std is added to get
8a2fc586
AK
3247 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3248 array size at least. It's necessary to write '\x00'==0 to get something
7a197a62 3249 that's true only with -std. */
8a2fc586
AK
3250int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3251
7a197a62
AK
3252/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3253 inside strings and character constants. */
3254#define FOO(x) 'x'
3255int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3256
ad6254c5
AK
3257int test (int i, double x);
3258struct s1 {int (*f) (int a);};
3259struct s2 {int (*f) (double a);};
3260int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3261int argc;
3262char **argv;
3263int
3264main ()
3265{
3266return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3267 ;
3268 return 0;
3269}
3270_ACEOF
7a197a62
AK
3271for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3272 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
ad6254c5
AK
3273do
3274 CC="$ac_save_CC $ac_arg"
3275 rm -f conftest.$ac_objext
7a197a62
AK
3276if { (ac_try="$ac_compile"
3277case "(($ac_try" in
3278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3279 *) ac_try_echo=$ac_try;;
3280esac
ec6a6fbe
AK
3281eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3282$as_echo "$ac_try_echo") >&5
7a197a62 3283 (eval "$ac_compile") 2>conftest.er1
ad6254c5 3284 ac_status=$?
8a2fc586
AK
3285 grep -v '^ *+' conftest.er1 >conftest.err
3286 rm -f conftest.er1
3287 cat conftest.err >&5
ec6a6fbe 3288 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
3289 (exit $ac_status); } && {
3290 test -z "$ac_c_werror_flag" ||
3291 test ! -s conftest.err
3292 } && test -s conftest.$ac_objext; then
7a197a62 3293 ac_cv_prog_cc_c89=$ac_arg
ad6254c5 3294else
ec6a6fbe 3295 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
3296sed 's/^/| /' conftest.$ac_ext >&5
3297
7a197a62 3298
ad6254c5 3299fi
7a197a62
AK
3300
3301rm -f core conftest.err conftest.$ac_objext
3302 test "x$ac_cv_prog_cc_c89" != "xno" && break
ad6254c5 3303done
7a197a62 3304rm -f conftest.$ac_ext
ad6254c5
AK
3305CC=$ac_save_CC
3306
3307fi
7a197a62
AK
3308# AC_CACHE_VAL
3309case "x$ac_cv_prog_cc_c89" in
3310 x)
ec6a6fbe
AK
3311 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3312$as_echo "none needed" >&6; } ;;
7a197a62 3313 xno)
ec6a6fbe
AK
3314 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3315$as_echo "unsupported" >&6; } ;;
ad6254c5 3316 *)
7a197a62 3317 CC="$CC $ac_cv_prog_cc_c89"
ec6a6fbe
AK
3318 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3319$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
ad6254c5
AK
3320esac
3321
ad6254c5 3322
ad6254c5
AK
3323ac_ext=c
3324ac_cpp='$CPP $CPPFLAGS'
3325ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3326ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3327ac_compiler_gnu=$ac_cv_c_compiler_gnu
795ca3e5 3328
d0191583
JM
3329
3330
3331ac_ext=c
3332ac_cpp='$CPP $CPPFLAGS'
3333ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3334ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3335ac_compiler_gnu=$ac_cv_c_compiler_gnu
ec6a6fbe
AK
3336{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3337$as_echo_n "checking how to run the C preprocessor... " >&6; }
d0191583
JM
3338# On Suns, sometimes $CPP names a directory.
3339if test -n "$CPP" && test -d "$CPP"; then
3340 CPP=
3341fi
3342if test -z "$CPP"; then
3343 if test "${ac_cv_prog_CPP+set}" = set; then
ec6a6fbe 3344 $as_echo_n "(cached) " >&6
ad6254c5 3345else
d0191583
JM
3346 # Double quotes because CPP needs to be expanded
3347 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3348 do
3349 ac_preproc_ok=false
3350for ac_c_preproc_warn_flag in '' yes
ad6254c5 3351do
d0191583
JM
3352 # Use a header file that comes with gcc, so configuring glibc
3353 # with a fresh cross-compiler works.
3354 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3355 # <limits.h> exists even on freestanding compilers.
3356 # On the NeXT, cc -E runs the code through the compiler's parser,
3357 # not just through cpp. "Syntax error" is here to catch this case.
3358 cat >conftest.$ac_ext <<_ACEOF
3359/* confdefs.h. */
3360_ACEOF
3361cat confdefs.h >>conftest.$ac_ext
3362cat >>conftest.$ac_ext <<_ACEOF
3363/* end confdefs.h. */
3364#ifdef __STDC__
3365# include <limits.h>
3366#else
3367# include <assert.h>
3368#endif
3369 Syntax error
3370_ACEOF
3371if { (ac_try="$ac_cpp conftest.$ac_ext"
3372case "(($ac_try" in
3373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3374 *) ac_try_echo=$ac_try;;
ad6254c5 3375esac
ec6a6fbe
AK
3376eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3377$as_echo "$ac_try_echo") >&5
d0191583
JM
3378 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3379 ac_status=$?
3380 grep -v '^ *+' conftest.er1 >conftest.err
3381 rm -f conftest.er1
3382 cat conftest.err >&5
ec6a6fbe 3383 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3384 (exit $ac_status); } >/dev/null && {
3385 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3386 test ! -s conftest.err
3387 }; then
3388 :
3389else
ec6a6fbe 3390 $as_echo "$as_me: failed program was:" >&5
d0191583 3391sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 3392
d0191583
JM
3393 # Broken: fails on valid input.
3394continue
795ca3e5 3395fi
795ca3e5 3396
d0191583 3397rm -f conftest.err conftest.$ac_ext
795ca3e5 3398
d0191583
JM
3399 # OK, works on sane cases. Now check whether nonexistent headers
3400 # can be detected and how.
3401 cat >conftest.$ac_ext <<_ACEOF
3402/* confdefs.h. */
3403_ACEOF
3404cat confdefs.h >>conftest.$ac_ext
3405cat >>conftest.$ac_ext <<_ACEOF
3406/* end confdefs.h. */
3407#include <ac_nonexistent.h>
3408_ACEOF
3409if { (ac_try="$ac_cpp conftest.$ac_ext"
3410case "(($ac_try" in
3411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3412 *) ac_try_echo=$ac_try;;
3413esac
ec6a6fbe
AK
3414eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3415$as_echo "$ac_try_echo") >&5
d0191583
JM
3416 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3417 ac_status=$?
3418 grep -v '^ *+' conftest.er1 >conftest.err
3419 rm -f conftest.er1
3420 cat conftest.err >&5
ec6a6fbe 3421 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3422 (exit $ac_status); } >/dev/null && {
3423 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3424 test ! -s conftest.err
3425 }; then
3426 # Broken: success on invalid input.
3427continue
3428else
ec6a6fbe 3429 $as_echo "$as_me: failed program was:" >&5
d0191583 3430sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 3431
d0191583
JM
3432 # Passes both tests.
3433ac_preproc_ok=:
3434break
3435fi
795ca3e5 3436
d0191583
JM
3437rm -f conftest.err conftest.$ac_ext
3438
3439done
3440# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3441rm -f conftest.err conftest.$ac_ext
3442if $ac_preproc_ok; then
3443 break
795ca3e5
AK
3444fi
3445
d0191583
JM
3446 done
3447 ac_cv_prog_CPP=$CPP
3448
3449fi
3450 CPP=$ac_cv_prog_CPP
795ca3e5 3451else
d0191583
JM
3452 ac_cv_prog_CPP=$CPP
3453fi
ec6a6fbe
AK
3454{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
3455$as_echo "$CPP" >&6; }
d0191583
JM
3456ac_preproc_ok=false
3457for ac_c_preproc_warn_flag in '' yes
3458do
3459 # Use a header file that comes with gcc, so configuring glibc
3460 # with a fresh cross-compiler works.
3461 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3462 # <limits.h> exists even on freestanding compilers.
3463 # On the NeXT, cc -E runs the code through the compiler's parser,
3464 # not just through cpp. "Syntax error" is here to catch this case.
3465 cat >conftest.$ac_ext <<_ACEOF
3466/* confdefs.h. */
ad6254c5 3467_ACEOF
d0191583
JM
3468cat confdefs.h >>conftest.$ac_ext
3469cat >>conftest.$ac_ext <<_ACEOF
3470/* end confdefs.h. */
3471#ifdef __STDC__
3472# include <limits.h>
3473#else
3474# include <assert.h>
3475#endif
3476 Syntax error
3477_ACEOF
3478if { (ac_try="$ac_cpp conftest.$ac_ext"
3479case "(($ac_try" in
3480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3481 *) ac_try_echo=$ac_try;;
7a197a62 3482esac
ec6a6fbe
AK
3483eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3484$as_echo "$ac_try_echo") >&5
d0191583
JM
3485 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3486 ac_status=$?
3487 grep -v '^ *+' conftest.er1 >conftest.err
3488 rm -f conftest.er1
3489 cat conftest.err >&5
ec6a6fbe 3490 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3491 (exit $ac_status); } >/dev/null && {
3492 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3493 test ! -s conftest.err
3494 }; then
3495 :
795ca3e5 3496else
ec6a6fbe 3497 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
3498sed 's/^/| /' conftest.$ac_ext >&5
3499
3500 # Broken: fails on valid input.
3501continue
795ca3e5
AK
3502fi
3503
d0191583
JM
3504rm -f conftest.err conftest.$ac_ext
3505
3506 # OK, works on sane cases. Now check whether nonexistent headers
3507 # can be detected and how.
3508 cat >conftest.$ac_ext <<_ACEOF
3509/* confdefs.h. */
3510_ACEOF
3511cat confdefs.h >>conftest.$ac_ext
3512cat >>conftest.$ac_ext <<_ACEOF
3513/* end confdefs.h. */
3514#include <ac_nonexistent.h>
3515_ACEOF
3516if { (ac_try="$ac_cpp conftest.$ac_ext"
3517case "(($ac_try" in
3518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3519 *) ac_try_echo=$ac_try;;
3520esac
ec6a6fbe
AK
3521eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3522$as_echo "$ac_try_echo") >&5
d0191583
JM
3523 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3524 ac_status=$?
3525 grep -v '^ *+' conftest.er1 >conftest.err
3526 rm -f conftest.er1
3527 cat conftest.err >&5
ec6a6fbe 3528 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3529 (exit $ac_status); } >/dev/null && {
3530 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3531 test ! -s conftest.err
3532 }; then
3533 # Broken: success on invalid input.
3534continue
795ca3e5 3535else
ec6a6fbe 3536 $as_echo "$as_me: failed program was:" >&5
d0191583 3537sed 's/^/| /' conftest.$ac_ext >&5
ad6254c5 3538
d0191583
JM
3539 # Passes both tests.
3540ac_preproc_ok=:
3541break
795ca3e5 3542fi
d0191583
JM
3543
3544rm -f conftest.err conftest.$ac_ext
3545
3546done
3547# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3548rm -f conftest.err conftest.$ac_ext
3549if $ac_preproc_ok; then
3550 :
8106cdd5 3551else
ec6a6fbe
AK
3552 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3553$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3554{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
d0191583 3555See \`config.log' for more details." >&5
ec6a6fbe 3556$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
d0191583 3557See \`config.log' for more details." >&2;}
ec6a6fbe 3558 { (exit 1); exit 1; }; }; }
8106cdd5
AK
3559fi
3560
d0191583
JM
3561ac_ext=c
3562ac_cpp='$CPP $CPPFLAGS'
3563ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3564ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3565ac_compiler_gnu=$ac_cv_c_compiler_gnu
3566
7a197a62 3567
ec6a6fbe
AK
3568{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3569$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5556819a 3570if test "${ac_cv_path_GREP+set}" = set; then
ec6a6fbe 3571 $as_echo_n "(cached) " >&6
ad6254c5 3572else
ec6a6fbe 3573 if test -z "$GREP"; then
d0191583 3574 ac_path_GREP_found=false
ec6a6fbe
AK
3575 # Loop through the user's path and test for each of PROGNAME-LIST
3576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
d0191583 3577for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
ad6254c5
AK
3578do
3579 IFS=$as_save_IFS
3580 test -z "$as_dir" && as_dir=.
d0191583 3581 for ac_prog in grep ggrep; do
ec6a6fbe
AK
3582 for ac_exec_ext in '' $ac_executable_extensions; do
3583 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3584 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3585# Check for GNU ac_path_GREP and select it if it is found.
d0191583
JM
3586 # Check for GNU $ac_path_GREP
3587case `"$ac_path_GREP" --version 2>&1` in
3588*GNU*)
3589 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3590*)
3591 ac_count=0
ec6a6fbe 3592 $as_echo_n 0123456789 >"conftest.in"
d0191583
JM
3593 while :
3594 do
3595 cat "conftest.in" "conftest.in" >"conftest.tmp"
3596 mv "conftest.tmp" "conftest.in"
3597 cp "conftest.in" "conftest.nl"
ec6a6fbe 3598 $as_echo 'GREP' >> "conftest.nl"
d0191583
JM
3599 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3600 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3601 ac_count=`expr $ac_count + 1`
3602 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3603 # Best one so far, save it but keep looking for a better one
3604 ac_cv_path_GREP="$ac_path_GREP"
3605 ac_path_GREP_max=$ac_count
3606 fi
3607 # 10*(2^10) chars as input seems more than enough
3608 test $ac_count -gt 10 && break
3609 done
3610 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3611esac
3612
ec6a6fbe
AK
3613 $ac_path_GREP_found && break 3
3614 done
d0191583 3615 done
ad6254c5 3616done
7a197a62 3617IFS=$as_save_IFS
ec6a6fbe
AK
3618 if test -z "$ac_cv_path_GREP"; then
3619 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3620$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
d0191583 3621 { (exit 1); exit 1; }; }
ec6a6fbe 3622 fi
80992638 3623else
d0191583 3624 ac_cv_path_GREP=$GREP
8106cdd5 3625fi
8106cdd5 3626
80992638 3627fi
ec6a6fbe
AK
3628{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3629$as_echo "$ac_cv_path_GREP" >&6; }
d0191583 3630 GREP="$ac_cv_path_GREP"
795ca3e5 3631
d0191583 3632
ec6a6fbe
AK
3633{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
3634$as_echo_n "checking for egrep... " >&6; }
d0191583 3635if test "${ac_cv_path_EGREP+set}" = set; then
ec6a6fbe 3636 $as_echo_n "(cached) " >&6
8a2fc586 3637else
d0191583
JM
3638 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3639 then ac_cv_path_EGREP="$GREP -E"
3640 else
ec6a6fbe 3641 if test -z "$EGREP"; then
d0191583 3642 ac_path_EGREP_found=false
ec6a6fbe
AK
3643 # Loop through the user's path and test for each of PROGNAME-LIST
3644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
d0191583 3645for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8a2fc586
AK
3646do
3647 IFS=$as_save_IFS
3648 test -z "$as_dir" && as_dir=.
d0191583 3649 for ac_prog in egrep; do
ec6a6fbe
AK
3650 for ac_exec_ext in '' $ac_executable_extensions; do
3651 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3652 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3653# Check for GNU ac_path_EGREP and select it if it is found.
d0191583
JM
3654 # Check for GNU $ac_path_EGREP
3655case `"$ac_path_EGREP" --version 2>&1` in
3656*GNU*)
3657 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3658*)
3659 ac_count=0
ec6a6fbe 3660 $as_echo_n 0123456789 >"conftest.in"
d0191583
JM
3661 while :
3662 do
3663 cat "conftest.in" "conftest.in" >"conftest.tmp"
3664 mv "conftest.tmp" "conftest.in"
3665 cp "conftest.in" "conftest.nl"
ec6a6fbe 3666 $as_echo 'EGREP' >> "conftest.nl"
d0191583
JM
3667 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3668 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3669 ac_count=`expr $ac_count + 1`
3670 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3671 # Best one so far, save it but keep looking for a better one
3672 ac_cv_path_EGREP="$ac_path_EGREP"
3673 ac_path_EGREP_max=$ac_count
3674 fi
3675 # 10*(2^10) chars as input seems more than enough
3676 test $ac_count -gt 10 && break
3677 done
3678 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8a2fc586 3679esac
8a2fc586 3680
ec6a6fbe
AK
3681 $ac_path_EGREP_found && break 3
3682 done
d0191583 3683 done
8a2fc586 3684done
7a197a62 3685IFS=$as_save_IFS
ec6a6fbe
AK
3686 if test -z "$ac_cv_path_EGREP"; then
3687 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3688$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
d0191583 3689 { (exit 1); exit 1; }; }
ec6a6fbe 3690 fi
d0191583
JM
3691else
3692 ac_cv_path_EGREP=$EGREP
3693fi
ad6254c5 3694
d0191583
JM
3695 fi
3696fi
ec6a6fbe
AK
3697{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3698$as_echo "$ac_cv_path_EGREP" >&6; }
d0191583 3699 EGREP="$ac_cv_path_EGREP"
ad6254c5
AK
3700
3701
d0191583 3702if test $ac_cv_c_compiler_gnu = yes; then
ec6a6fbe
AK
3703 { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3704$as_echo_n "checking whether $CC needs -traditional... " >&6; }
d0191583 3705if test "${ac_cv_prog_gcc_traditional+set}" = set; then
ec6a6fbe 3706 $as_echo_n "(cached) " >&6
8106cdd5 3707else
d0191583 3708 ac_pattern="Autoconf.*'x'"
ad6254c5 3709 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3710/* confdefs.h. */
3711_ACEOF
3712cat confdefs.h >>conftest.$ac_ext
3713cat >>conftest.$ac_ext <<_ACEOF
3714/* end confdefs.h. */
d0191583
JM
3715#include <sgtty.h>
3716Autoconf TIOCGETP
ad6254c5 3717_ACEOF
d0191583
JM
3718if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3719 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3720 ac_cv_prog_gcc_traditional=yes
8106cdd5 3721else
d0191583 3722 ac_cv_prog_gcc_traditional=no
80992638 3723fi
d0191583 3724rm -f conftest*
ad6254c5 3725
8106cdd5 3726
d0191583
JM
3727 if test $ac_cv_prog_gcc_traditional = no; then
3728 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3729/* confdefs.h. */
3730_ACEOF
3731cat confdefs.h >>conftest.$ac_ext
3732cat >>conftest.$ac_ext <<_ACEOF
3733/* end confdefs.h. */
d0191583
JM
3734#include <termio.h>
3735Autoconf TCGETA
ad6254c5 3736_ACEOF
d0191583
JM
3737if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3738 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3739 ac_cv_prog_gcc_traditional=yes
7a197a62 3740fi
d0191583 3741rm -f conftest*
795ca3e5 3742
d0191583 3743 fi
795ca3e5 3744fi
ec6a6fbe
AK
3745{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3746$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
d0191583
JM
3747 if test $ac_cv_prog_gcc_traditional = yes; then
3748 CC="$CC -traditional"
3749 fi
795ca3e5
AK
3750fi
3751
d0191583
JM
3752# Find a good install program. We prefer a C program (faster),
3753# so one script is as good as another. But avoid the broken or
3754# incompatible versions:
3755# SysV /etc/install, /usr/sbin/install
3756# SunOS /usr/etc/install
3757# IRIX /sbin/install
3758# AIX /bin/install
3759# AmigaOS /C/install, which installs bootblocks on floppy discs
3760# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3761# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3762# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3763# OS/2's system install, which has a completely different semantic
3764# ./install, which can be erroneously created by make from ./install.sh.
ec6a6fbe
AK
3765# Reject install programs that cannot install multiple files.
3766{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3767$as_echo_n "checking for a BSD-compatible install... " >&6; }
d0191583
JM
3768if test -z "$INSTALL"; then
3769if test "${ac_cv_path_install+set}" = set; then
ec6a6fbe 3770 $as_echo_n "(cached) " >&6
ad6254c5 3771else
d0191583
JM
3772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3773for as_dir in $PATH
3774do
3775 IFS=$as_save_IFS
3776 test -z "$as_dir" && as_dir=.
3777 # Account for people who put trailing slashes in PATH elements.
3778case $as_dir/ in
3779 ./ | .// | /cC/* | \
3780 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3781 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3782 /usr/ucb/* ) ;;
3783 *)
3784 # OSF1 and SCO ODT 3.0 have their own names for install.
3785 # Don't use installbsd from OSF since it installs stuff as root
3786 # by default.
3787 for ac_prog in ginstall scoinst install; do
3788 for ac_exec_ext in '' $ac_executable_extensions; do
3789 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3790 if test $ac_prog = install &&
3791 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3792 # AIX install. It has an incompatible calling convention.
3793 :
3794 elif test $ac_prog = install &&
3795 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3796 # program-specific install script used by HP pwplus--don't use.
3797 :
3798 else
ec6a6fbe
AK
3799 rm -rf conftest.one conftest.two conftest.dir
3800 echo one > conftest.one
3801 echo two > conftest.two
3802 mkdir conftest.dir
3803 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3804 test -s conftest.one && test -s conftest.two &&
3805 test -s conftest.dir/conftest.one &&
3806 test -s conftest.dir/conftest.two
3807 then
3808 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3809 break 3
3810 fi
d0191583
JM
3811 fi
3812 fi
3813 done
3814 done
3815 ;;
3816esac
ec6a6fbe 3817
d0191583
JM
3818done
3819IFS=$as_save_IFS
80992638 3820
ec6a6fbe 3821rm -rf conftest.one conftest.two conftest.dir
d0191583
JM
3822
3823fi
3824 if test "${ac_cv_path_install+set}" = set; then
3825 INSTALL=$ac_cv_path_install
7a197a62 3826 else
d0191583
JM
3827 # As a last resort, use the slow shell script. Don't cache a
3828 # value for INSTALL within a source directory, because that will
3829 # break other packages using the cache if that directory is
3830 # removed, or if the value is a relative name.
3831 INSTALL=$ac_install_sh
7a197a62 3832 fi
d0191583 3833fi
ec6a6fbe
AK
3834{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3835$as_echo "$INSTALL" >&6; }
ad6254c5 3836
d0191583
JM
3837# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3838# It thinks the first close brace ends the variable substitution.
3839test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
ad6254c5 3840
d0191583 3841test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
80992638 3842
d0191583
JM
3843test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3844
ec6a6fbe
AK
3845{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
3846$as_echo_n "checking whether ln -s works... " >&6; }
d0191583
JM
3847LN_S=$as_ln_s
3848if test "$LN_S" = "ln -s"; then
ec6a6fbe
AK
3849 { $as_echo "$as_me:$LINENO: result: yes" >&5
3850$as_echo "yes" >&6; }
d0191583 3851else
ec6a6fbe
AK
3852 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3853$as_echo "no, using $LN_S" >&6; }
795ca3e5 3854fi
d0191583 3855
ec6a6fbe
AK
3856{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3857$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3858set x ${MAKE-make}
3859ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
d0191583 3860if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 3861 $as_echo_n "(cached) " >&6
7a197a62 3862else
d0191583
JM
3863 cat >conftest.make <<\_ACEOF
3864SHELL = /bin/sh
3865all:
3866 @echo '@@@%%%=$(MAKE)=@@@%%%'
3867_ACEOF
3868# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3869case `${MAKE-make} -f conftest.make 2>/dev/null` in
3870 *@@@%%%=?*=@@@%%%*)
3871 eval ac_cv_prog_make_${ac_make}_set=yes;;
3872 *)
3873 eval ac_cv_prog_make_${ac_make}_set=no;;
3874esac
3875rm -f conftest.make
ad6254c5 3876fi
d0191583 3877if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
ec6a6fbe
AK
3878 { $as_echo "$as_me:$LINENO: result: yes" >&5
3879$as_echo "yes" >&6; }
d0191583
JM
3880 SET_MAKE=
3881else
ec6a6fbe
AK
3882 { $as_echo "$as_me:$LINENO: result: no" >&5
3883$as_echo "no" >&6; }
d0191583 3884 SET_MAKE="MAKE=${MAKE-make}"
795ca3e5 3885fi
8106cdd5 3886
ec6a6fbe
AK
3887{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
3888$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
5556819a
AK
3889if test -z "$MKDIR_P"; then
3890 if test "${ac_cv_path_mkdir+set}" = set; then
ec6a6fbe 3891 $as_echo_n "(cached) " >&6
5556819a
AK
3892else
3893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3894for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3895do
3896 IFS=$as_save_IFS
3897 test -z "$as_dir" && as_dir=.
3898 for ac_prog in mkdir gmkdir; do
3899 for ac_exec_ext in '' $ac_executable_extensions; do
3900 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3901 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3902 'mkdir (GNU coreutils) '* | \
3903 'mkdir (coreutils) '* | \
3904 'mkdir (fileutils) '4.1*)
3905 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3906 break 3;;
3907 esac
3908 done
3909 done
3910done
3911IFS=$as_save_IFS
3912
3913fi
3914
3915 if test "${ac_cv_path_mkdir+set}" = set; then
3916 MKDIR_P="$ac_cv_path_mkdir -p"
3917 else
3918 # As a last resort, use the slow shell script. Don't cache a
3919 # value for MKDIR_P within a source directory, because that will
3920 # break other packages using the cache if that directory is
3921 # removed, or if the value is a relative name.
3922 test -d ./--version && rmdir ./--version
3923 MKDIR_P="$ac_install_sh -d"
3924 fi
3925fi
ec6a6fbe
AK
3926{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
3927$as_echo "$MKDIR_P" >&6; }
5556819a 3928
d0191583
JM
3929if test -n "$ac_tool_prefix"; then
3930 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3931set dummy ${ac_tool_prefix}ranlib; ac_word=$2
ec6a6fbe
AK
3932{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3933$as_echo_n "checking for $ac_word... " >&6; }
d0191583 3934if test "${ac_cv_prog_RANLIB+set}" = set; then
ec6a6fbe 3935 $as_echo_n "(cached) " >&6
d0191583
JM
3936else
3937 if test -n "$RANLIB"; then
3938 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3939else
3940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3941for as_dir in $PATH
3942do
3943 IFS=$as_save_IFS
3944 test -z "$as_dir" && as_dir=.
3945 for ac_exec_ext in '' $ac_executable_extensions; do
3946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3947 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
ec6a6fbe 3948 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
3949 break 2
3950 fi
3951done
3952done
3953IFS=$as_save_IFS
8106cdd5 3954
795ca3e5 3955fi
d0191583
JM
3956fi
3957RANLIB=$ac_cv_prog_RANLIB
3958if test -n "$RANLIB"; then
ec6a6fbe
AK
3959 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
3960$as_echo "$RANLIB" >&6; }
d0191583 3961else
ec6a6fbe
AK
3962 { $as_echo "$as_me:$LINENO: result: no" >&5
3963$as_echo "no" >&6; }
d0191583
JM
3964fi
3965
8106cdd5 3966
ad6254c5 3967fi
d0191583
JM
3968if test -z "$ac_cv_prog_RANLIB"; then
3969 ac_ct_RANLIB=$RANLIB
3970 # Extract the first word of "ranlib", so it can be a program name with args.
3971set dummy ranlib; ac_word=$2
ec6a6fbe
AK
3972{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3973$as_echo_n "checking for $ac_word... " >&6; }
d0191583 3974if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
ec6a6fbe 3975 $as_echo_n "(cached) " >&6
ad6254c5 3976else
d0191583
JM
3977 if test -n "$ac_ct_RANLIB"; then
3978 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3979else
3980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3981for as_dir in $PATH
8106cdd5 3982do
d0191583
JM
3983 IFS=$as_save_IFS
3984 test -z "$as_dir" && as_dir=.
3985 for ac_exec_ext in '' $ac_executable_extensions; do
3986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3987 ac_cv_prog_ac_ct_RANLIB="ranlib"
ec6a6fbe 3988 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
3989 break 2
3990 fi
3991done
3992done
3993IFS=$as_save_IFS
3994
3995fi
3996fi
3997ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3998if test -n "$ac_ct_RANLIB"; then
ec6a6fbe
AK
3999 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4000$as_echo "$ac_ct_RANLIB" >&6; }
ad6254c5 4001else
ec6a6fbe
AK
4002 { $as_echo "$as_me:$LINENO: result: no" >&5
4003$as_echo "no" >&6; }
d0191583 4004fi
ad6254c5 4005
d0191583
JM
4006 if test "x$ac_ct_RANLIB" = x; then
4007 RANLIB=":"
4008 else
4009 case $cross_compiling:$ac_tool_warned in
4010yes:)
ec6a6fbe
AK
4011{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4012$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
d0191583
JM
4013ac_tool_warned=yes ;;
4014esac
4015 RANLIB=$ac_ct_RANLIB
4016 fi
4017else
4018 RANLIB="$ac_cv_prog_RANLIB"
ad6254c5 4019fi
7a197a62 4020
d0191583
JM
4021# Extract the first word of "cflow", so it can be a program name with args.
4022set dummy cflow; ac_word=$2
ec6a6fbe
AK
4023{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4024$as_echo_n "checking for $ac_word... " >&6; }
d0191583 4025if test "${ac_cv_path_CFLOW_CMD+set}" = set; then
ec6a6fbe 4026 $as_echo_n "(cached) " >&6
d0191583
JM
4027else
4028 case $CFLOW_CMD in
4029 [\\/]* | ?:[\\/]*)
4030 ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path.
4031 ;;
4032 *)
4033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4034for as_dir in $PATH
4035do
4036 IFS=$as_save_IFS
4037 test -z "$as_dir" && as_dir=.
4038 for ac_exec_ext in '' $ac_executable_extensions; do
4039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4040 ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 4041 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
4042 break 2
4043 fi
4044done
4045done
4046IFS=$as_save_IFS
ad6254c5 4047
d0191583 4048 ;;
7a197a62 4049esac
d0191583
JM
4050fi
4051CFLOW_CMD=$ac_cv_path_CFLOW_CMD
4052if test -n "$CFLOW_CMD"; then
ec6a6fbe
AK
4053 { $as_echo "$as_me:$LINENO: result: $CFLOW_CMD" >&5
4054$as_echo "$CFLOW_CMD" >&6; }
80992638 4055else
ec6a6fbe
AK
4056 { $as_echo "$as_me:$LINENO: result: no" >&5
4057$as_echo "no" >&6; }
795ca3e5 4058fi
7a197a62 4059
ad6254c5 4060
d0191583
JM
4061# Extract the first word of "cscope", so it can be a program name with args.
4062set dummy cscope; ac_word=$2
ec6a6fbe
AK
4063{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4064$as_echo_n "checking for $ac_word... " >&6; }
d0191583 4065if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then
ec6a6fbe 4066 $as_echo_n "(cached) " >&6
d0191583
JM
4067else
4068 case $CSCOPE_CMD in
4069 [\\/]* | ?:[\\/]*)
4070 ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path.
4071 ;;
4072 *)
4073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4074for as_dir in $PATH
4075do
4076 IFS=$as_save_IFS
4077 test -z "$as_dir" && as_dir=.
4078 for ac_exec_ext in '' $ac_executable_extensions; do
4079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4080 ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 4081 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
4082 break 2
4083 fi
795ca3e5 4084done
d0191583
JM
4085done
4086IFS=$as_save_IFS
795ca3e5 4087
d0191583
JM
4088 ;;
4089esac
ad6254c5 4090fi
d0191583
JM
4091CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD
4092if test -n "$CSCOPE_CMD"; then
ec6a6fbe
AK
4093 { $as_echo "$as_me:$LINENO: result: $CSCOPE_CMD" >&5
4094$as_echo "$CSCOPE_CMD" >&6; }
795ca3e5 4095else
ec6a6fbe
AK
4096 { $as_echo "$as_me:$LINENO: result: no" >&5
4097$as_echo "no" >&6; }
795ca3e5 4098fi
ad6254c5 4099
7a197a62 4100
ad6254c5 4101
d0191583
JM
4102################################################################################
4103
4104
4105
4106
4107
4108ac_header_dirent=no
4109for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
ec6a6fbe
AK
4110 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4111{ $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4112$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
d0191583 4113if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 4114 $as_echo_n "(cached) " >&6
d0191583 4115else
ad6254c5 4116 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4117/* confdefs.h. */
4118_ACEOF
4119cat confdefs.h >>conftest.$ac_ext
4120cat >>conftest.$ac_ext <<_ACEOF
4121/* end confdefs.h. */
d0191583
JM
4122#include <sys/types.h>
4123#include <$ac_hdr>
4124
4125int
4126main ()
4127{
4128if ((DIR *) 0)
4129return 0;
4130 ;
4131 return 0;
4132}
ad6254c5 4133_ACEOF
d0191583
JM
4134rm -f conftest.$ac_objext
4135if { (ac_try="$ac_compile"
7a197a62
AK
4136case "(($ac_try" in
4137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4138 *) ac_try_echo=$ac_try;;
4139esac
ec6a6fbe
AK
4140eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4141$as_echo "$ac_try_echo") >&5
d0191583 4142 (eval "$ac_compile") 2>conftest.er1
ad6254c5
AK
4143 ac_status=$?
4144 grep -v '^ *+' conftest.er1 >conftest.err
4145 rm -f conftest.er1
4146 cat conftest.err >&5
ec6a6fbe 4147 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4148 (exit $ac_status); } && {
4149 test -z "$ac_c_werror_flag" ||
25fbec5b 4150 test ! -s conftest.err
d0191583
JM
4151 } && test -s conftest.$ac_objext; then
4152 eval "$as_ac_Header=yes"
ad6254c5 4153else
ec6a6fbe 4154 $as_echo "$as_me: failed program was:" >&5
ad6254c5 4155sed 's/^/| /' conftest.$ac_ext >&5
8106cdd5 4156
d0191583 4157 eval "$as_ac_Header=no"
795ca3e5 4158fi
7a197a62 4159
d0191583 4160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
795ca3e5 4161fi
ec6a6fbe
AK
4162ac_res=`eval 'as_val=${'$as_ac_Header'}
4163 $as_echo "$as_val"'`
4164 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4165$as_echo "$ac_res" >&6; }
4166as_val=`eval 'as_val=${'$as_ac_Header'}
4167 $as_echo "$as_val"'`
4168 if test "x$as_val" = x""yes; then
d0191583 4169 cat >>confdefs.h <<_ACEOF
ec6a6fbe 4170#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
d0191583 4171_ACEOF
795ca3e5 4172
d0191583
JM
4173ac_header_dirent=$ac_hdr; break
4174fi
ad6254c5 4175
d0191583
JM
4176done
4177# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4178if test $ac_header_dirent = dirent.h; then
ec6a6fbe
AK
4179 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
4180$as_echo_n "checking for library containing opendir... " >&6; }
d0191583 4181if test "${ac_cv_search_opendir+set}" = set; then
ec6a6fbe 4182 $as_echo_n "(cached) " >&6
ad6254c5 4183else
d0191583
JM
4184 ac_func_search_save_LIBS=$LIBS
4185cat >conftest.$ac_ext <<_ACEOF
4186/* confdefs.h. */
4187_ACEOF
4188cat confdefs.h >>conftest.$ac_ext
4189cat >>conftest.$ac_ext <<_ACEOF
4190/* end confdefs.h. */
ad6254c5 4191
d0191583
JM
4192/* Override any GCC internal prototype to avoid an error.
4193 Use char because int might match the return type of a GCC
4194 builtin and then its argument prototype would still apply. */
4195#ifdef __cplusplus
4196extern "C"
4197#endif
4198char opendir ();
4199int
4200main ()
4201{
4202return opendir ();
4203 ;
4204 return 0;
4205}
4206_ACEOF
4207for ac_lib in '' dir; do
4208 if test -z "$ac_lib"; then
4209 ac_res="none required"
4210 else
4211 ac_res=-l$ac_lib
4212 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4213 fi
4214 rm -f conftest.$ac_objext conftest$ac_exeext
4215if { (ac_try="$ac_link"
4216case "(($ac_try" in
4217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4218 *) ac_try_echo=$ac_try;;
4219esac
ec6a6fbe
AK
4220eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4221$as_echo "$ac_try_echo") >&5
d0191583
JM
4222 (eval "$ac_link") 2>conftest.er1
4223 ac_status=$?
4224 grep -v '^ *+' conftest.er1 >conftest.err
4225 rm -f conftest.er1
4226 cat conftest.err >&5
ec6a6fbe 4227 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4228 (exit $ac_status); } && {
4229 test -z "$ac_c_werror_flag" ||
4230 test ! -s conftest.err
ec6a6fbe
AK
4231 } && test -s conftest$ac_exeext && {
4232 test "$cross_compiling" = yes ||
4233 $as_test_x conftest$ac_exeext
4234 }; then
d0191583
JM
4235 ac_cv_search_opendir=$ac_res
4236else
ec6a6fbe 4237 $as_echo "$as_me: failed program was:" >&5
d0191583 4238sed 's/^/| /' conftest.$ac_ext >&5
ad6254c5 4239
ad6254c5 4240
795ca3e5 4241fi
ad6254c5 4242
ec6a6fbe 4243rm -rf conftest.dSYM
d0191583
JM
4244rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4245 conftest$ac_exeext
4246 if test "${ac_cv_search_opendir+set}" = set; then
4247 break
7a197a62 4248fi
d0191583
JM
4249done
4250if test "${ac_cv_search_opendir+set}" = set; then
4251 :
7a197a62 4252else
d0191583 4253 ac_cv_search_opendir=no
7a197a62 4254fi
d0191583
JM
4255rm conftest.$ac_ext
4256LIBS=$ac_func_search_save_LIBS
7a197a62 4257fi
ec6a6fbe
AK
4258{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4259$as_echo "$ac_cv_search_opendir" >&6; }
d0191583
JM
4260ac_res=$ac_cv_search_opendir
4261if test "$ac_res" != no; then
4262 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7a197a62 4263
d0191583 4264fi
7a197a62 4265
7a197a62 4266else
ec6a6fbe
AK
4267 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
4268$as_echo_n "checking for library containing opendir... " >&6; }
d0191583 4269if test "${ac_cv_search_opendir+set}" = set; then
ec6a6fbe 4270 $as_echo_n "(cached) " >&6
7a197a62 4271else
d0191583
JM
4272 ac_func_search_save_LIBS=$LIBS
4273cat >conftest.$ac_ext <<_ACEOF
4274/* confdefs.h. */
4275_ACEOF
4276cat confdefs.h >>conftest.$ac_ext
4277cat >>conftest.$ac_ext <<_ACEOF
4278/* end confdefs.h. */
7a197a62 4279
d0191583
JM
4280/* Override any GCC internal prototype to avoid an error.
4281 Use char because int might match the return type of a GCC
4282 builtin and then its argument prototype would still apply. */
4283#ifdef __cplusplus
4284extern "C"
4285#endif
4286char opendir ();
4287int
4288main ()
4289{
4290return opendir ();
4291 ;
4292 return 0;
4293}
4294_ACEOF
4295for ac_lib in '' x; do
4296 if test -z "$ac_lib"; then
4297 ac_res="none required"
4298 else
4299 ac_res=-l$ac_lib
4300 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4301 fi
4302 rm -f conftest.$ac_objext conftest$ac_exeext
4303if { (ac_try="$ac_link"
4304case "(($ac_try" in
4305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4306 *) ac_try_echo=$ac_try;;
4307esac
ec6a6fbe
AK
4308eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4309$as_echo "$ac_try_echo") >&5
d0191583
JM
4310 (eval "$ac_link") 2>conftest.er1
4311 ac_status=$?
4312 grep -v '^ *+' conftest.er1 >conftest.err
4313 rm -f conftest.er1
4314 cat conftest.err >&5
ec6a6fbe 4315 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4316 (exit $ac_status); } && {
4317 test -z "$ac_c_werror_flag" ||
4318 test ! -s conftest.err
ec6a6fbe
AK
4319 } && test -s conftest$ac_exeext && {
4320 test "$cross_compiling" = yes ||
4321 $as_test_x conftest$ac_exeext
4322 }; then
d0191583
JM
4323 ac_cv_search_opendir=$ac_res
4324else
ec6a6fbe 4325 $as_echo "$as_me: failed program was:" >&5
d0191583 4326sed 's/^/| /' conftest.$ac_ext >&5
7a197a62
AK
4327
4328
4329fi
4330
ec6a6fbe 4331rm -rf conftest.dSYM
d0191583
JM
4332rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4333 conftest$ac_exeext
4334 if test "${ac_cv_search_opendir+set}" = set; then
4335 break
7a197a62 4336fi
d0191583
JM
4337done
4338if test "${ac_cv_search_opendir+set}" = set; then
4339 :
7a197a62 4340else
d0191583 4341 ac_cv_search_opendir=no
7a197a62 4342fi
d0191583
JM
4343rm conftest.$ac_ext
4344LIBS=$ac_func_search_save_LIBS
4345fi
ec6a6fbe
AK
4346{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4347$as_echo "$ac_cv_search_opendir" >&6; }
d0191583
JM
4348ac_res=$ac_cv_search_opendir
4349if test "$ac_res" != no; then
4350 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7a197a62 4351
7a197a62 4352fi
7a197a62 4353
d0191583 4354fi
7a197a62 4355
ec6a6fbe
AK
4356{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4357$as_echo_n "checking for ANSI C header files... " >&6; }
7a197a62 4358if test "${ac_cv_header_stdc+set}" = set; then
ec6a6fbe 4359 $as_echo_n "(cached) " >&6
7a197a62
AK
4360else
4361 cat >conftest.$ac_ext <<_ACEOF
4362/* confdefs.h. */
4363_ACEOF
4364cat confdefs.h >>conftest.$ac_ext
4365cat >>conftest.$ac_ext <<_ACEOF
4366/* end confdefs.h. */
4367#include <stdlib.h>
4368#include <stdarg.h>
4369#include <string.h>
4370#include <float.h>
4371
4372int
4373main ()
4374{
4375
4376 ;
4377 return 0;
4378}
4379_ACEOF
4380rm -f conftest.$ac_objext
4381if { (ac_try="$ac_compile"
4382case "(($ac_try" in
4383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4384 *) ac_try_echo=$ac_try;;
4385esac
ec6a6fbe
AK
4386eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4387$as_echo "$ac_try_echo") >&5
7a197a62
AK
4388 (eval "$ac_compile") 2>conftest.er1
4389 ac_status=$?
4390 grep -v '^ *+' conftest.er1 >conftest.err
4391 rm -f conftest.er1
4392 cat conftest.err >&5
ec6a6fbe 4393 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4394 (exit $ac_status); } && {
4395 test -z "$ac_c_werror_flag" ||
4396 test ! -s conftest.err
4397 } && test -s conftest.$ac_objext; then
7a197a62
AK
4398 ac_cv_header_stdc=yes
4399else
ec6a6fbe 4400 $as_echo "$as_me: failed program was:" >&5
7a197a62
AK
4401sed 's/^/| /' conftest.$ac_ext >&5
4402
4403 ac_cv_header_stdc=no
4404fi
4405
4406rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4407
4408if test $ac_cv_header_stdc = yes; then
4409 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
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 <string.h>
8106cdd5 4417
ad6254c5
AK
4418_ACEOF
4419if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4420 $EGREP "memchr" >/dev/null 2>&1; then
4421 :
4422else
4423 ac_cv_header_stdc=no
80992638 4424fi
ad6254c5 4425rm -f conftest*
795ca3e5
AK
4426
4427fi
4428
ad6254c5
AK
4429if test $ac_cv_header_stdc = yes; then
4430 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4431 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4432/* confdefs.h. */
4433_ACEOF
4434cat confdefs.h >>conftest.$ac_ext
4435cat >>conftest.$ac_ext <<_ACEOF
4436/* end confdefs.h. */
80992638 4437#include <stdlib.h>
ad6254c5
AK
4438
4439_ACEOF
80992638 4440if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ad6254c5
AK
4441 $EGREP "free" >/dev/null 2>&1; then
4442 :
795ca3e5 4443else
ad6254c5 4444 ac_cv_header_stdc=no
795ca3e5 4445fi
80992638 4446rm -f conftest*
8106cdd5 4447
795ca3e5
AK
4448fi
4449
ad6254c5
AK
4450if test $ac_cv_header_stdc = yes; then
4451 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4452 if test "$cross_compiling" = yes; then
4453 :
795ca3e5 4454else
ad6254c5 4455 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4456/* confdefs.h. */
4457_ACEOF
4458cat confdefs.h >>conftest.$ac_ext
4459cat >>conftest.$ac_ext <<_ACEOF
4460/* end confdefs.h. */
4461#include <ctype.h>
7a197a62 4462#include <stdlib.h>
ad6254c5
AK
4463#if ((' ' & 0x0FF) == 0x020)
4464# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4465# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4466#else
4467# define ISLOWER(c) \
8a2fc586
AK
4468 (('a' <= (c) && (c) <= 'i') \
4469 || ('j' <= (c) && (c) <= 'r') \
4470 || ('s' <= (c) && (c) <= 'z'))
ad6254c5 4471# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
80992638 4472#endif
ad6254c5
AK
4473
4474#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4475int
4476main ()
4477{
4478 int i;
4479 for (i = 0; i < 256; i++)
4480 if (XOR (islower (i), ISLOWER (i))
8a2fc586 4481 || toupper (i) != TOUPPER (i))
7a197a62
AK
4482 return 2;
4483 return 0;
ad6254c5
AK
4484}
4485_ACEOF
4486rm -f conftest$ac_exeext
7a197a62
AK
4487if { (ac_try="$ac_link"
4488case "(($ac_try" in
4489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4490 *) ac_try_echo=$ac_try;;
4491esac
ec6a6fbe
AK
4492eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4493$as_echo "$ac_try_echo") >&5
7a197a62 4494 (eval "$ac_link") 2>&5
ad6254c5 4495 ac_status=$?
ec6a6fbe 4496 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 4497 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
4498 { (case "(($ac_try" in
4499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4500 *) ac_try_echo=$ac_try;;
4501esac
ec6a6fbe
AK
4502eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4503$as_echo "$ac_try_echo") >&5
7a197a62 4504 (eval "$ac_try") 2>&5
ad6254c5 4505 ac_status=$?
ec6a6fbe 4506 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
4507 (exit $ac_status); }; }; then
4508 :
795ca3e5 4509else
ec6a6fbe
AK
4510 $as_echo "$as_me: program exited with status $ac_status" >&5
4511$as_echo "$as_me: failed program was:" >&5
ad6254c5 4512sed 's/^/| /' conftest.$ac_ext >&5
8106cdd5 4513
ad6254c5
AK
4514( exit $ac_status )
4515ac_cv_header_stdc=no
80992638 4516fi
ec6a6fbe 4517rm -rf conftest.dSYM
7a197a62 4518rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 4519fi
7a197a62
AK
4520
4521
ad6254c5
AK
4522fi
4523fi
ec6a6fbe
AK
4524{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4525$as_echo "$ac_cv_header_stdc" >&6; }
ad6254c5
AK
4526if test $ac_cv_header_stdc = yes; then
4527
4528cat >>confdefs.h <<\_ACEOF
4529#define STDC_HEADERS 1
4530_ACEOF
795ca3e5
AK
4531
4532fi
4533
ec6a6fbe
AK
4534{ $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
4535$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
ad6254c5 4536if test "${ac_cv_header_sys_wait_h+set}" = set; then
ec6a6fbe 4537 $as_echo_n "(cached) " >&6
8106cdd5 4538else
ad6254c5 4539 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4540/* confdefs.h. */
4541_ACEOF
4542cat confdefs.h >>conftest.$ac_ext
4543cat >>conftest.$ac_ext <<_ACEOF
4544/* end confdefs.h. */
80992638 4545#include <sys/types.h>
ad6254c5
AK
4546#include <sys/wait.h>
4547#ifndef WEXITSTATUS
7a197a62 4548# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
ad6254c5
AK
4549#endif
4550#ifndef WIFEXITED
4551# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4552#endif
4553
4554int
4555main ()
4556{
4557 int s;
4558 wait (&s);
4559 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4560 ;
4561 return 0;
4562}
4563_ACEOF
4564rm -f conftest.$ac_objext
7a197a62
AK
4565if { (ac_try="$ac_compile"
4566case "(($ac_try" in
4567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4568 *) ac_try_echo=$ac_try;;
4569esac
ec6a6fbe
AK
4570eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4571$as_echo "$ac_try_echo") >&5
7a197a62 4572 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4573 ac_status=$?
8a2fc586
AK
4574 grep -v '^ *+' conftest.er1 >conftest.err
4575 rm -f conftest.er1
4576 cat conftest.err >&5
ec6a6fbe 4577 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4578 (exit $ac_status); } && {
4579 test -z "$ac_c_werror_flag" ||
4580 test ! -s conftest.err
4581 } && test -s conftest.$ac_objext; then
ad6254c5
AK
4582 ac_cv_header_sys_wait_h=yes
4583else
ec6a6fbe 4584 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
4585sed 's/^/| /' conftest.$ac_ext >&5
4586
7a197a62 4587 ac_cv_header_sys_wait_h=no
8106cdd5 4588fi
7a197a62
AK
4589
4590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
795ca3e5 4591fi
ec6a6fbe
AK
4592{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
4593$as_echo "$ac_cv_header_sys_wait_h" >&6; }
ad6254c5 4594if test $ac_cv_header_sys_wait_h = yes; then
8106cdd5 4595
ad6254c5
AK
4596cat >>confdefs.h <<\_ACEOF
4597#define HAVE_SYS_WAIT_H 1
4598_ACEOF
795ca3e5
AK
4599
4600fi
4601
ec6a6fbe
AK
4602{ $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4603$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
ad6254c5 4604if test "${ac_cv_header_time+set}" = set; then
ec6a6fbe 4605 $as_echo_n "(cached) " >&6
795ca3e5 4606else
ad6254c5 4607 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4608/* confdefs.h. */
4609_ACEOF
4610cat confdefs.h >>conftest.$ac_ext
4611cat >>conftest.$ac_ext <<_ACEOF
4612/* end confdefs.h. */
795ca3e5
AK
4613#include <sys/types.h>
4614#include <sys/time.h>
4615#include <time.h>
ad6254c5
AK
4616
4617int
4618main ()
4619{
4620if ((struct tm *) 0)
4621return 0;
4622 ;
4623 return 0;
4624}
4625_ACEOF
4626rm -f conftest.$ac_objext
7a197a62
AK
4627if { (ac_try="$ac_compile"
4628case "(($ac_try" in
4629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4630 *) ac_try_echo=$ac_try;;
4631esac
ec6a6fbe
AK
4632eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4633$as_echo "$ac_try_echo") >&5
7a197a62 4634 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4635 ac_status=$?
8a2fc586
AK
4636 grep -v '^ *+' conftest.er1 >conftest.err
4637 rm -f conftest.er1
4638 cat conftest.err >&5
ec6a6fbe 4639 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4640 (exit $ac_status); } && {
4641 test -z "$ac_c_werror_flag" ||
4642 test ! -s conftest.err
4643 } && test -s conftest.$ac_objext; then
795ca3e5
AK
4644 ac_cv_header_time=yes
4645else
ec6a6fbe 4646 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
4647sed 's/^/| /' conftest.$ac_ext >&5
4648
7a197a62 4649 ac_cv_header_time=no
795ca3e5 4650fi
7a197a62
AK
4651
4652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
795ca3e5 4653fi
ec6a6fbe
AK
4654{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4655$as_echo "$ac_cv_header_time" >&6; }
80992638 4656if test $ac_cv_header_time = yes; then
ad6254c5
AK
4657
4658cat >>confdefs.h <<\_ACEOF
795ca3e5 4659#define TIME_WITH_SYS_TIME 1
ad6254c5 4660_ACEOF
b896caa1 4661
8106cdd5 4662fi
b896caa1 4663
b896caa1 4664
d0191583
JM
4665# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4676 inttypes.h stdint.h unistd.h
4677do
ec6a6fbe
AK
4678as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4679{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4680$as_echo_n "checking for $ac_header... " >&6; }
d0191583 4681if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 4682 $as_echo_n "(cached) " >&6
d0191583
JM
4683else
4684 cat >conftest.$ac_ext <<_ACEOF
4685/* confdefs.h. */
4686_ACEOF
4687cat confdefs.h >>conftest.$ac_ext
4688cat >>conftest.$ac_ext <<_ACEOF
4689/* end confdefs.h. */
4690$ac_includes_default
4691
4692#include <$ac_header>
4693_ACEOF
4694rm -f conftest.$ac_objext
4695if { (ac_try="$ac_compile"
4696case "(($ac_try" in
4697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4698 *) ac_try_echo=$ac_try;;
4699esac
ec6a6fbe
AK
4700eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4701$as_echo "$ac_try_echo") >&5
d0191583
JM
4702 (eval "$ac_compile") 2>conftest.er1
4703 ac_status=$?
4704 grep -v '^ *+' conftest.er1 >conftest.err
4705 rm -f conftest.er1
4706 cat conftest.err >&5
ec6a6fbe 4707 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4708 (exit $ac_status); } && {
4709 test -z "$ac_c_werror_flag" ||
4710 test ! -s conftest.err
4711 } && test -s conftest.$ac_objext; then
4712 eval "$as_ac_Header=yes"
4713else
ec6a6fbe 4714 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
4715sed 's/^/| /' conftest.$ac_ext >&5
4716
4717 eval "$as_ac_Header=no"
4718fi
4719
4720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4721fi
ec6a6fbe
AK
4722ac_res=`eval 'as_val=${'$as_ac_Header'}
4723 $as_echo "$as_val"'`
4724 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4725$as_echo "$ac_res" >&6; }
4726as_val=`eval 'as_val=${'$as_ac_Header'}
4727 $as_echo "$as_val"'`
4728 if test "x$as_val" = x""yes; then
d0191583 4729 cat >>confdefs.h <<_ACEOF
ec6a6fbe 4730#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
d0191583
JM
4731_ACEOF
4732
4733fi
4734
4735done
4736
b896caa1 4737
b896caa1
AK
4738
4739
795ca3e5 4740
8106cdd5 4741
80992638 4742
795ca3e5 4743
a38df97f 4744
80992638 4745
d0191583
JM
4746
4747
4748
4749
4750
4751for ac_header in locale.h stddef.h syslog.h sys/file.h sys/time.h assert.h \
4752 libgen.h signal.h sys/mman.h sys/resource.h sys/utsname.h sys/wait.h time.h
ad6254c5 4753do
ec6a6fbe 4754as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
d0191583 4755if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
4756 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4757$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 4758if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 4759 $as_echo_n "(cached) " >&6
d0191583 4760fi
ec6a6fbe
AK
4761ac_res=`eval 'as_val=${'$as_ac_Header'}
4762 $as_echo "$as_val"'`
4763 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4764$as_echo "$ac_res" >&6; }
ad6254c5 4765else
d0191583 4766 # Is the header compilable?
ec6a6fbe
AK
4767{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4768$as_echo_n "checking $ac_header usability... " >&6; }
d0191583 4769cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4770/* confdefs.h. */
4771_ACEOF
4772cat confdefs.h >>conftest.$ac_ext
4773cat >>conftest.$ac_ext <<_ACEOF
4774/* end confdefs.h. */
4775$ac_includes_default
ad6254c5
AK
4776#include <$ac_header>
4777_ACEOF
4778rm -f conftest.$ac_objext
7a197a62
AK
4779if { (ac_try="$ac_compile"
4780case "(($ac_try" in
4781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4782 *) ac_try_echo=$ac_try;;
4783esac
ec6a6fbe
AK
4784eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4785$as_echo "$ac_try_echo") >&5
7a197a62 4786 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4787 ac_status=$?
8a2fc586
AK
4788 grep -v '^ *+' conftest.er1 >conftest.err
4789 rm -f conftest.er1
4790 cat conftest.err >&5
ec6a6fbe 4791 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4792 (exit $ac_status); } && {
4793 test -z "$ac_c_werror_flag" ||
4794 test ! -s conftest.err
4795 } && test -s conftest.$ac_objext; then
d0191583 4796 ac_header_compiler=yes
ad6254c5 4797else
ec6a6fbe 4798 $as_echo "$as_me: failed program was:" >&5
ad6254c5 4799sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 4800
d0191583 4801 ac_header_compiler=no
ad6254c5 4802fi
7a197a62
AK
4803
4804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
4805{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4806$as_echo "$ac_header_compiler" >&6; }
d0191583
JM
4807
4808# Is the header present?
ec6a6fbe
AK
4809{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4810$as_echo_n "checking $ac_header presence... " >&6; }
d0191583
JM
4811cat >conftest.$ac_ext <<_ACEOF
4812/* confdefs.h. */
4813_ACEOF
4814cat confdefs.h >>conftest.$ac_ext
4815cat >>conftest.$ac_ext <<_ACEOF
4816/* end confdefs.h. */
4817#include <$ac_header>
4818_ACEOF
4819if { (ac_try="$ac_cpp conftest.$ac_ext"
4820case "(($ac_try" in
4821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4822 *) ac_try_echo=$ac_try;;
4823esac
ec6a6fbe
AK
4824eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4825$as_echo "$ac_try_echo") >&5
d0191583
JM
4826 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4827 ac_status=$?
4828 grep -v '^ *+' conftest.er1 >conftest.err
4829 rm -f conftest.er1
4830 cat conftest.err >&5
ec6a6fbe 4831 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4832 (exit $ac_status); } >/dev/null && {
4833 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4834 test ! -s conftest.err
4835 }; then
4836 ac_header_preproc=yes
4837else
ec6a6fbe 4838 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
4839sed 's/^/| /' conftest.$ac_ext >&5
4840
4841 ac_header_preproc=no
4842fi
4843
4844rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
4845{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4846$as_echo "$ac_header_preproc" >&6; }
d0191583
JM
4847
4848# So? What about this header?
4849case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4850 yes:no: )
ec6a6fbe
AK
4851 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4852$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4853 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4854$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
d0191583
JM
4855 ac_header_preproc=yes
4856 ;;
4857 no:yes:* )
ec6a6fbe
AK
4858 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4859$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4860 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4861$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4862 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4863$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4864 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4865$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4866 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4867$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4868 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4869$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
d0191583
JM
4870
4871 ;;
4872esac
ec6a6fbe
AK
4873{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4874$as_echo_n "checking for $ac_header... " >&6; }
d0191583 4875if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 4876 $as_echo_n "(cached) " >&6
d0191583
JM
4877else
4878 eval "$as_ac_Header=\$ac_header_preproc"
a38df97f 4879fi
ec6a6fbe
AK
4880ac_res=`eval 'as_val=${'$as_ac_Header'}
4881 $as_echo "$as_val"'`
4882 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4883$as_echo "$ac_res" >&6; }
d0191583
JM
4884
4885fi
ec6a6fbe
AK
4886as_val=`eval 'as_val=${'$as_ac_Header'}
4887 $as_echo "$as_val"'`
4888 if test "x$as_val" = x""yes; then
ad6254c5 4889 cat >>confdefs.h <<_ACEOF
ec6a6fbe 4890#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 4891_ACEOF
a38df97f 4892
d0191583 4893else
ec6a6fbe
AK
4894 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
4895$as_echo "$as_me: error: bailing out" >&2;}
d0191583 4896 { (exit 1); exit 1; }; }
80992638
AK
4897fi
4898
ad6254c5
AK
4899done
4900
7d1552c9 4901
d0191583
JM
4902case "$host_os" in
4903 linux*)
7d1552c9 4904
80992638 4905
5a52dca9 4906
d0191583 4907for ac_header in asm/byteorder.h linux/fs.h malloc.h
ad6254c5 4908do
ec6a6fbe 4909as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 4910if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
4911 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4912$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 4913if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 4914 $as_echo_n "(cached) " >&6
ad6254c5 4915fi
ec6a6fbe
AK
4916ac_res=`eval 'as_val=${'$as_ac_Header'}
4917 $as_echo "$as_val"'`
4918 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4919$as_echo "$ac_res" >&6; }
ad6254c5
AK
4920else
4921 # Is the header compilable?
ec6a6fbe
AK
4922{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4923$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 4924cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4925/* confdefs.h. */
4926_ACEOF
4927cat confdefs.h >>conftest.$ac_ext
4928cat >>conftest.$ac_ext <<_ACEOF
4929/* end confdefs.h. */
4930$ac_includes_default
4931#include <$ac_header>
4932_ACEOF
4933rm -f conftest.$ac_objext
7a197a62
AK
4934if { (ac_try="$ac_compile"
4935case "(($ac_try" in
4936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4937 *) ac_try_echo=$ac_try;;
4938esac
ec6a6fbe
AK
4939eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4940$as_echo "$ac_try_echo") >&5
7a197a62 4941 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4942 ac_status=$?
8a2fc586
AK
4943 grep -v '^ *+' conftest.er1 >conftest.err
4944 rm -f conftest.er1
4945 cat conftest.err >&5
ec6a6fbe 4946 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4947 (exit $ac_status); } && {
4948 test -z "$ac_c_werror_flag" ||
4949 test ! -s conftest.err
4950 } && test -s conftest.$ac_objext; then
fc54be10
AK
4951 ac_header_compiler=yes
4952else
ec6a6fbe 4953 $as_echo "$as_me: failed program was:" >&5
fc54be10
AK
4954sed 's/^/| /' conftest.$ac_ext >&5
4955
4956 ac_header_compiler=no
4957fi
4958
4959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
4960{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4961$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
4962
4963# Is the header present?
ec6a6fbe
AK
4964{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4965$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 4966cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4967/* confdefs.h. */
4968_ACEOF
4969cat confdefs.h >>conftest.$ac_ext
4970cat >>conftest.$ac_ext <<_ACEOF
4971/* end confdefs.h. */
4972#include <$ac_header>
4973_ACEOF
7a197a62
AK
4974if { (ac_try="$ac_cpp conftest.$ac_ext"
4975case "(($ac_try" in
4976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4977 *) ac_try_echo=$ac_try;;
4978esac
ec6a6fbe
AK
4979eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4980$as_echo "$ac_try_echo") >&5
7a197a62 4981 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
4982 ac_status=$?
4983 grep -v '^ *+' conftest.er1 >conftest.err
4984 rm -f conftest.er1
4985 cat conftest.err >&5
ec6a6fbe 4986 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4987 (exit $ac_status); } >/dev/null && {
4988 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4989 test ! -s conftest.err
4990 }; then
ad6254c5
AK
4991 ac_header_preproc=yes
4992else
ec6a6fbe 4993 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
4994sed 's/^/| /' conftest.$ac_ext >&5
4995
4996 ac_header_preproc=no
4997fi
7a197a62 4998
ad6254c5 4999rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
5000{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5001$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
5002
5003# So? What about this header?
8a2fc586
AK
5004case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5005 yes:no: )
ec6a6fbe
AK
5006 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5007$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5008 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5009$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 5010 ac_header_preproc=yes
ad6254c5 5011 ;;
8a2fc586 5012 no:yes:* )
ec6a6fbe
AK
5013 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5014$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5015 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5016$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5017 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5018$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5019 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5020$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5021 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5022$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5023 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5024$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 5025
ad6254c5
AK
5026 ;;
5027esac
ec6a6fbe
AK
5028{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5029$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 5030if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 5031 $as_echo_n "(cached) " >&6
ad6254c5 5032else
8a2fc586 5033 eval "$as_ac_Header=\$ac_header_preproc"
b896caa1 5034fi
ec6a6fbe
AK
5035ac_res=`eval 'as_val=${'$as_ac_Header'}
5036 $as_echo "$as_val"'`
5037 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5038$as_echo "$ac_res" >&6; }
ad6254c5
AK
5039
5040fi
ec6a6fbe
AK
5041as_val=`eval 'as_val=${'$as_ac_Header'}
5042 $as_echo "$as_val"'`
5043 if test "x$as_val" = x""yes; then
ad6254c5 5044 cat >>confdefs.h <<_ACEOF
ec6a6fbe 5045#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 5046_ACEOF
b896caa1 5047
d8ac0fbc 5048else
ec6a6fbe
AK
5049 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5050$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 5051 { (exit 1); exit 1; }; }
80992638
AK
5052fi
5053
ad6254c5 5054done
d0191583
JM
5055 ;;
5056 darwin*)
d8ac0fbc 5057
d8ac0fbc 5058
d0191583 5059for ac_header in machine/endian.h sys/disk.h
ad6254c5 5060do
ec6a6fbe 5061as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 5062if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
5063 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5064$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 5065if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 5066 $as_echo_n "(cached) " >&6
ad6254c5 5067fi
ec6a6fbe
AK
5068ac_res=`eval 'as_val=${'$as_ac_Header'}
5069 $as_echo "$as_val"'`
5070 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5071$as_echo "$ac_res" >&6; }
ad6254c5
AK
5072else
5073 # Is the header compilable?
ec6a6fbe
AK
5074{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5075$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 5076cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5077/* confdefs.h. */
5078_ACEOF
5079cat confdefs.h >>conftest.$ac_ext
5080cat >>conftest.$ac_ext <<_ACEOF
5081/* end confdefs.h. */
5082$ac_includes_default
5083#include <$ac_header>
5084_ACEOF
5085rm -f conftest.$ac_objext
7a197a62
AK
5086if { (ac_try="$ac_compile"
5087case "(($ac_try" in
5088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5089 *) ac_try_echo=$ac_try;;
5090esac
ec6a6fbe
AK
5091eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5092$as_echo "$ac_try_echo") >&5
7a197a62 5093 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5094 ac_status=$?
8a2fc586
AK
5095 grep -v '^ *+' conftest.er1 >conftest.err
5096 rm -f conftest.er1
5097 cat conftest.err >&5
ec6a6fbe 5098 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5099 (exit $ac_status); } && {
5100 test -z "$ac_c_werror_flag" ||
5101 test ! -s conftest.err
5102 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5103 ac_header_compiler=yes
5104else
ec6a6fbe 5105 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5106sed 's/^/| /' conftest.$ac_ext >&5
5107
7a197a62 5108 ac_header_compiler=no
ad6254c5 5109fi
7a197a62
AK
5110
5111rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
5112{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5113$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
5114
5115# Is the header present?
ec6a6fbe
AK
5116{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5117$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 5118cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5119/* confdefs.h. */
5120_ACEOF
5121cat confdefs.h >>conftest.$ac_ext
5122cat >>conftest.$ac_ext <<_ACEOF
5123/* end confdefs.h. */
5124#include <$ac_header>
5125_ACEOF
7a197a62
AK
5126if { (ac_try="$ac_cpp conftest.$ac_ext"
5127case "(($ac_try" in
5128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5129 *) ac_try_echo=$ac_try;;
5130esac
ec6a6fbe
AK
5131eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5132$as_echo "$ac_try_echo") >&5
7a197a62 5133 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
5134 ac_status=$?
5135 grep -v '^ *+' conftest.er1 >conftest.err
5136 rm -f conftest.er1
5137 cat conftest.err >&5
ec6a6fbe 5138 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5139 (exit $ac_status); } >/dev/null && {
5140 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5141 test ! -s conftest.err
5142 }; then
ad6254c5
AK
5143 ac_header_preproc=yes
5144else
ec6a6fbe 5145 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5146sed 's/^/| /' conftest.$ac_ext >&5
5147
5148 ac_header_preproc=no
5149fi
7a197a62 5150
ad6254c5 5151rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
5152{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5153$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
5154
5155# So? What about this header?
8a2fc586
AK
5156case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5157 yes:no: )
ec6a6fbe
AK
5158 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5159$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5160 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5161$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 5162 ac_header_preproc=yes
ad6254c5 5163 ;;
8a2fc586 5164 no:yes:* )
ec6a6fbe
AK
5165 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5166$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5167 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5168$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5169 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5170$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5171 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5172$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5173 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5174$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5175 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5176$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 5177
ad6254c5
AK
5178 ;;
5179esac
ec6a6fbe
AK
5180{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5181$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 5182if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 5183 $as_echo_n "(cached) " >&6
ad6254c5 5184else
8a2fc586 5185 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 5186fi
ec6a6fbe
AK
5187ac_res=`eval 'as_val=${'$as_ac_Header'}
5188 $as_echo "$as_val"'`
5189 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5190$as_echo "$ac_res" >&6; }
ad6254c5
AK
5191
5192fi
ec6a6fbe
AK
5193as_val=`eval 'as_val=${'$as_ac_Header'}
5194 $as_echo "$as_val"'`
5195 if test "x$as_val" = x""yes; then
ad6254c5 5196 cat >>confdefs.h <<_ACEOF
ec6a6fbe 5197#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 5198_ACEOF
4922197a 5199
4922197a 5200else
ec6a6fbe
AK
5201 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5202$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 5203 { (exit 1); exit 1; }; }
80992638
AK
5204fi
5205
ad6254c5 5206done
d0191583
JM
5207 ;;
5208esac
4922197a 5209
4922197a 5210
4922197a 5211
ad6254c5
AK
5212
5213
d0191583
JM
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226for ac_header in ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h \
5227 stdarg.h stdio.h stdlib.h string.h sys/ioctl.h sys/param.h sys/stat.h \
5228 sys/types.h unistd.h
ad6254c5 5229do
ec6a6fbe 5230as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 5231if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
5232 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5233$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 5234if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 5235 $as_echo_n "(cached) " >&6
ad6254c5 5236fi
ec6a6fbe
AK
5237ac_res=`eval 'as_val=${'$as_ac_Header'}
5238 $as_echo "$as_val"'`
5239 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5240$as_echo "$ac_res" >&6; }
795ca3e5 5241else
ad6254c5 5242 # Is the header compilable?
ec6a6fbe
AK
5243{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5244$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 5245cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5246/* confdefs.h. */
5247_ACEOF
5248cat confdefs.h >>conftest.$ac_ext
5249cat >>conftest.$ac_ext <<_ACEOF
5250/* end confdefs.h. */
5251$ac_includes_default
5252#include <$ac_header>
5253_ACEOF
5254rm -f conftest.$ac_objext
7a197a62
AK
5255if { (ac_try="$ac_compile"
5256case "(($ac_try" in
5257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5258 *) ac_try_echo=$ac_try;;
5259esac
ec6a6fbe
AK
5260eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5261$as_echo "$ac_try_echo") >&5
7a197a62 5262 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5263 ac_status=$?
8a2fc586
AK
5264 grep -v '^ *+' conftest.er1 >conftest.err
5265 rm -f conftest.er1
5266 cat conftest.err >&5
ec6a6fbe 5267 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5268 (exit $ac_status); } && {
5269 test -z "$ac_c_werror_flag" ||
5270 test ! -s conftest.err
5271 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5272 ac_header_compiler=yes
5273else
ec6a6fbe 5274 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5275sed 's/^/| /' conftest.$ac_ext >&5
5276
7a197a62 5277 ac_header_compiler=no
ad6254c5 5278fi
7a197a62
AK
5279
5280rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
5281{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5282$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
5283
5284# Is the header present?
ec6a6fbe
AK
5285{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5286$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 5287cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5288/* confdefs.h. */
5289_ACEOF
5290cat confdefs.h >>conftest.$ac_ext
5291cat >>conftest.$ac_ext <<_ACEOF
5292/* end confdefs.h. */
5293#include <$ac_header>
5294_ACEOF
7a197a62
AK
5295if { (ac_try="$ac_cpp conftest.$ac_ext"
5296case "(($ac_try" in
5297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5298 *) ac_try_echo=$ac_try;;
5299esac
ec6a6fbe
AK
5300eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5301$as_echo "$ac_try_echo") >&5
7a197a62 5302 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
5303 ac_status=$?
5304 grep -v '^ *+' conftest.er1 >conftest.err
5305 rm -f conftest.er1
5306 cat conftest.err >&5
ec6a6fbe 5307 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5308 (exit $ac_status); } >/dev/null && {
5309 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5310 test ! -s conftest.err
5311 }; then
ad6254c5
AK
5312 ac_header_preproc=yes
5313else
ec6a6fbe 5314 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5315sed 's/^/| /' conftest.$ac_ext >&5
5316
5317 ac_header_preproc=no
5318fi
7a197a62 5319
ad6254c5 5320rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
5321{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5322$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
5323
5324# So? What about this header?
8a2fc586
AK
5325case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5326 yes:no: )
ec6a6fbe
AK
5327 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5328$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5329 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5330$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 5331 ac_header_preproc=yes
ad6254c5 5332 ;;
8a2fc586 5333 no:yes:* )
ec6a6fbe
AK
5334 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5335$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5336 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5337$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5338 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5339$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5340 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5341$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5342 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5343$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5344 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5345$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 5346
ad6254c5
AK
5347 ;;
5348esac
ec6a6fbe
AK
5349{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5350$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 5351if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 5352 $as_echo_n "(cached) " >&6
ad6254c5 5353else
8a2fc586 5354 eval "$as_ac_Header=\$ac_header_preproc"
80992638 5355fi
ec6a6fbe
AK
5356ac_res=`eval 'as_val=${'$as_ac_Header'}
5357 $as_echo "$as_val"'`
5358 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5359$as_echo "$ac_res" >&6; }
80992638 5360
ad6254c5 5361fi
ec6a6fbe
AK
5362as_val=`eval 'as_val=${'$as_ac_Header'}
5363 $as_echo "$as_val"'`
5364 if test "x$as_val" = x""yes; then
ad6254c5 5365 cat >>confdefs.h <<_ACEOF
ec6a6fbe 5366#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 5367_ACEOF
795ca3e5 5368
795ca3e5 5369else
ec6a6fbe
AK
5370 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5371$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 5372 { (exit 1); exit 1; }; }
80992638
AK
5373fi
5374
ad6254c5 5375done
ad6254c5 5376
795ca3e5 5377
d0191583
JM
5378
5379for ac_header in termios.h sys/statvfs.h
ad6254c5 5380do
ec6a6fbe 5381as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 5382if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
5383 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5384$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 5385if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 5386 $as_echo_n "(cached) " >&6
ad6254c5 5387fi
ec6a6fbe
AK
5388ac_res=`eval 'as_val=${'$as_ac_Header'}
5389 $as_echo "$as_val"'`
5390 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5391$as_echo "$ac_res" >&6; }
ad6254c5
AK
5392else
5393 # Is the header compilable?
ec6a6fbe
AK
5394{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5395$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 5396cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5397/* confdefs.h. */
5398_ACEOF
5399cat confdefs.h >>conftest.$ac_ext
5400cat >>conftest.$ac_ext <<_ACEOF
5401/* end confdefs.h. */
5402$ac_includes_default
5403#include <$ac_header>
5404_ACEOF
5405rm -f conftest.$ac_objext
7a197a62
AK
5406if { (ac_try="$ac_compile"
5407case "(($ac_try" in
5408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5409 *) ac_try_echo=$ac_try;;
5410esac
ec6a6fbe
AK
5411eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5412$as_echo "$ac_try_echo") >&5
7a197a62 5413 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5414 ac_status=$?
8a2fc586
AK
5415 grep -v '^ *+' conftest.er1 >conftest.err
5416 rm -f conftest.er1
5417 cat conftest.err >&5
ec6a6fbe 5418 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5419 (exit $ac_status); } && {
5420 test -z "$ac_c_werror_flag" ||
5421 test ! -s conftest.err
5422 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5423 ac_header_compiler=yes
5424else
ec6a6fbe 5425 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5426sed 's/^/| /' conftest.$ac_ext >&5
5427
7a197a62 5428 ac_header_compiler=no
ad6254c5 5429fi
7a197a62
AK
5430
5431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
5432{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5433$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
5434
5435# Is the header present?
ec6a6fbe
AK
5436{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5437$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 5438cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5439/* confdefs.h. */
5440_ACEOF
5441cat confdefs.h >>conftest.$ac_ext
5442cat >>conftest.$ac_ext <<_ACEOF
5443/* end confdefs.h. */
5444#include <$ac_header>
5445_ACEOF
7a197a62
AK
5446if { (ac_try="$ac_cpp conftest.$ac_ext"
5447case "(($ac_try" in
5448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5449 *) ac_try_echo=$ac_try;;
5450esac
ec6a6fbe
AK
5451eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5452$as_echo "$ac_try_echo") >&5
7a197a62 5453 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
5454 ac_status=$?
5455 grep -v '^ *+' conftest.er1 >conftest.err
5456 rm -f conftest.er1
5457 cat conftest.err >&5
ec6a6fbe 5458 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5459 (exit $ac_status); } >/dev/null && {
5460 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5461 test ! -s conftest.err
5462 }; then
ad6254c5
AK
5463 ac_header_preproc=yes
5464else
ec6a6fbe 5465 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5466sed 's/^/| /' conftest.$ac_ext >&5
5467
5468 ac_header_preproc=no
5469fi
7a197a62 5470
ad6254c5 5471rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
5472{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5473$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
5474
5475# So? What about this header?
8a2fc586
AK
5476case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5477 yes:no: )
ec6a6fbe
AK
5478 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5479$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5480 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5481$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 5482 ac_header_preproc=yes
ad6254c5 5483 ;;
8a2fc586 5484 no:yes:* )
ec6a6fbe
AK
5485 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5486$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5487 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5488$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5489 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5490$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5491 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5492$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5493 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5494$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5495 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5496$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 5497
ad6254c5
AK
5498 ;;
5499esac
ec6a6fbe
AK
5500{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5501$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 5502if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 5503 $as_echo_n "(cached) " >&6
ad6254c5 5504else
8a2fc586 5505 eval "$as_ac_Header=\$ac_header_preproc"
b896caa1 5506fi
ec6a6fbe
AK
5507ac_res=`eval 'as_val=${'$as_ac_Header'}
5508 $as_echo "$as_val"'`
5509 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5510$as_echo "$ac_res" >&6; }
b896caa1 5511
ad6254c5 5512fi
ec6a6fbe
AK
5513as_val=`eval 'as_val=${'$as_ac_Header'}
5514 $as_echo "$as_val"'`
5515 if test "x$as_val" = x""yes; then
ad6254c5 5516 cat >>confdefs.h <<_ACEOF
ec6a6fbe 5517#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
5518_ACEOF
5519
80992638
AK
5520fi
5521
ad6254c5 5522done
d0191583 5523
d3c8211f 5524
80992638 5525################################################################################
ec6a6fbe
AK
5526{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5527$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
ad6254c5 5528if test "${ac_cv_c_const+set}" = set; then
ec6a6fbe 5529 $as_echo_n "(cached) " >&6
d3c8211f 5530else
ad6254c5 5531 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5532/* confdefs.h. */
5533_ACEOF
5534cat confdefs.h >>conftest.$ac_ext
5535cat >>conftest.$ac_ext <<_ACEOF
5536/* end confdefs.h. */
5537
5538int
5539main ()
5540{
5541/* FIXME: Include the comments suggested by Paul. */
5542#ifndef __cplusplus
5543 /* Ultrix mips cc rejects this. */
5544 typedef int charset[2];
25fbec5b 5545 const charset cs;
ad6254c5 5546 /* SunOS 4.1.1 cc rejects this. */
25fbec5b
AK
5547 char const *const *pcpcc;
5548 char **ppc;
ad6254c5
AK
5549 /* NEC SVR4.0.2 mips cc rejects this. */
5550 struct point {int x, y;};
5551 static struct point const zero = {0,0};
5552 /* AIX XL C 1.02.0.0 rejects this.
5553 It does not let you subtract one const X* pointer from another in
5554 an arm of an if-expression whose if-part is not a constant
5555 expression */
5556 const char *g = "string";
25fbec5b 5557 pcpcc = &g + (g ? g-g : 0);
ad6254c5 5558 /* HPUX 7.0 cc rejects these. */
25fbec5b
AK
5559 ++pcpcc;
5560 ppc = (char**) pcpcc;
5561 pcpcc = (char const *const *) ppc;
ad6254c5
AK
5562 { /* SCO 3.2v4 cc rejects this. */
5563 char *t;
5564 char const *s = 0 ? (char *) 0 : (char const *) 0;
5565
5566 *t++ = 0;
7a197a62 5567 if (s) return 0;
ad6254c5
AK
5568 }
5569 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5570 int x[] = {25, 17};
5571 const int *foo = &x[0];
5572 ++foo;
5573 }
5574 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5575 typedef const int *iptr;
5576 iptr p = 0;
5577 ++p;
5578 }
5579 { /* AIX XL C 1.02.0.0 rejects this saying
5580 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5581 struct s { int j; const int *ap[3]; };
5582 struct s *b; b->j = 5;
5583 }
5584 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5585 const int foo = 10;
7a197a62 5586 if (!foo) return 0;
ad6254c5 5587 }
25fbec5b 5588 return !cs[0] && !zero.x;
ad6254c5
AK
5589#endif
5590
5591 ;
5592 return 0;
5593}
5594_ACEOF
5595rm -f conftest.$ac_objext
7a197a62
AK
5596if { (ac_try="$ac_compile"
5597case "(($ac_try" in
5598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5599 *) ac_try_echo=$ac_try;;
5600esac
ec6a6fbe
AK
5601eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5602$as_echo "$ac_try_echo") >&5
7a197a62 5603 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5604 ac_status=$?
8a2fc586
AK
5605 grep -v '^ *+' conftest.er1 >conftest.err
5606 rm -f conftest.er1
5607 cat conftest.err >&5
ec6a6fbe 5608 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5609 (exit $ac_status); } && {
5610 test -z "$ac_c_werror_flag" ||
5611 test ! -s conftest.err
5612 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5613 ac_cv_c_const=yes
5614else
ec6a6fbe 5615 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5616sed 's/^/| /' conftest.$ac_ext >&5
5617
7a197a62 5618 ac_cv_c_const=no
ad6254c5 5619fi
7a197a62
AK
5620
5621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
80992638 5622fi
ec6a6fbe
AK
5623{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5624$as_echo "$ac_cv_c_const" >&6; }
ad6254c5 5625if test $ac_cv_c_const = no; then
80992638 5626
ad6254c5 5627cat >>confdefs.h <<\_ACEOF
ec6a6fbe 5628#define const /**/
ad6254c5 5629_ACEOF
80992638 5630
d3c8211f 5631fi
d3c8211f 5632
ec6a6fbe
AK
5633{ $as_echo "$as_me:$LINENO: checking for inline" >&5
5634$as_echo_n "checking for inline... " >&6; }
ad6254c5 5635if test "${ac_cv_c_inline+set}" = set; then
ec6a6fbe 5636 $as_echo_n "(cached) " >&6
8ef2b021 5637else
ad6254c5
AK
5638 ac_cv_c_inline=no
5639for ac_kw in inline __inline__ __inline; do
5640 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5641/* confdefs.h. */
5642_ACEOF
5643cat confdefs.h >>conftest.$ac_ext
5644cat >>conftest.$ac_ext <<_ACEOF
5645/* end confdefs.h. */
5646#ifndef __cplusplus
5647typedef int foo_t;
5648static $ac_kw foo_t static_foo () {return 0; }
5649$ac_kw foo_t foo () {return 0; }
5650#endif
80992638 5651
ad6254c5
AK
5652_ACEOF
5653rm -f conftest.$ac_objext
7a197a62
AK
5654if { (ac_try="$ac_compile"
5655case "(($ac_try" in
5656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5657 *) ac_try_echo=$ac_try;;
5658esac
ec6a6fbe
AK
5659eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5660$as_echo "$ac_try_echo") >&5
7a197a62 5661 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5662 ac_status=$?
8a2fc586
AK
5663 grep -v '^ *+' conftest.er1 >conftest.err
5664 rm -f conftest.er1
5665 cat conftest.err >&5
ec6a6fbe 5666 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5667 (exit $ac_status); } && {
5668 test -z "$ac_c_werror_flag" ||
5669 test ! -s conftest.err
5670 } && test -s conftest.$ac_objext; then
7a197a62 5671 ac_cv_c_inline=$ac_kw
ad6254c5 5672else
ec6a6fbe 5673 $as_echo "$as_me: failed program was:" >&5
ad6254c5 5674sed 's/^/| /' conftest.$ac_ext >&5
8ef2b021 5675
7a197a62 5676
8ce0cbda 5677fi
7a197a62
AK
5678
5679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5680 test "$ac_cv_c_inline" != no && break
ad6254c5 5681done
8ce0cbda 5682
8ce0cbda 5683fi
ec6a6fbe
AK
5684{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5685$as_echo "$ac_cv_c_inline" >&6; }
8a2fc586
AK
5686
5687
ad6254c5
AK
5688case $ac_cv_c_inline in
5689 inline | yes) ;;
8a2fc586
AK
5690 *)
5691 case $ac_cv_c_inline in
5692 no) ac_val=;;
5693 *) ac_val=$ac_cv_c_inline;;
5694 esac
5695 cat >>confdefs.h <<_ACEOF
5696#ifndef __cplusplus
5697#define inline $ac_val
5698#endif
c1c065a3 5699_ACEOF
d0191583
JM
5700 ;;
5701esac
5702
ec6a6fbe
AK
5703{ $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
5704$as_echo_n "checking for struct stat.st_rdev... " >&6; }
d0191583 5705if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
ec6a6fbe 5706 $as_echo_n "(cached) " >&6
d0191583
JM
5707else
5708 cat >conftest.$ac_ext <<_ACEOF
5709/* confdefs.h. */
5710_ACEOF
5711cat confdefs.h >>conftest.$ac_ext
5712cat >>conftest.$ac_ext <<_ACEOF
5713/* end confdefs.h. */
5714$ac_includes_default
5715int
5716main ()
5717{
5718static struct stat ac_aggr;
5719if (ac_aggr.st_rdev)
5720return 0;
5721 ;
5722 return 0;
5723}
5724_ACEOF
5725rm -f conftest.$ac_objext
5726if { (ac_try="$ac_compile"
5727case "(($ac_try" in
5728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5729 *) ac_try_echo=$ac_try;;
5730esac
ec6a6fbe
AK
5731eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5732$as_echo "$ac_try_echo") >&5
5733 (eval "$ac_compile") 2>conftest.er1
5734 ac_status=$?
5735 grep -v '^ *+' conftest.er1 >conftest.err
5736 rm -f conftest.er1
5737 cat conftest.err >&5
5738 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5739 (exit $ac_status); } && {
5740 test -z "$ac_c_werror_flag" ||
5741 test ! -s conftest.err
5742 } && test -s conftest.$ac_objext; then
5743 ac_cv_member_struct_stat_st_rdev=yes
5744else
5745 $as_echo "$as_me: failed program was:" >&5
5746sed 's/^/| /' conftest.$ac_ext >&5
5747
5748 cat >conftest.$ac_ext <<_ACEOF
5749/* confdefs.h. */
5750_ACEOF
5751cat confdefs.h >>conftest.$ac_ext
5752cat >>conftest.$ac_ext <<_ACEOF
5753/* end confdefs.h. */
5754$ac_includes_default
5755int
5756main ()
5757{
5758static struct stat ac_aggr;
5759if (sizeof ac_aggr.st_rdev)
5760return 0;
5761 ;
5762 return 0;
5763}
5764_ACEOF
5765rm -f conftest.$ac_objext
5766if { (ac_try="$ac_compile"
5767case "(($ac_try" in
5768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5769 *) ac_try_echo=$ac_try;;
5770esac
5771eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5772$as_echo "$ac_try_echo") >&5
5773 (eval "$ac_compile") 2>conftest.er1
5774 ac_status=$?
5775 grep -v '^ *+' conftest.er1 >conftest.err
5776 rm -f conftest.er1
5777 cat conftest.err >&5
5778 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5779 (exit $ac_status); } && {
5780 test -z "$ac_c_werror_flag" ||
5781 test ! -s conftest.err
5782 } && test -s conftest.$ac_objext; then
5783 ac_cv_member_struct_stat_st_rdev=yes
5784else
5785 $as_echo "$as_me: failed program was:" >&5
5786sed 's/^/| /' conftest.$ac_ext >&5
5787
5788 ac_cv_member_struct_stat_st_rdev=no
5789fi
5790
5791rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5792fi
5793
5794rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5795fi
5796{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
5797$as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; }
5798if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then
5799
5800cat >>confdefs.h <<_ACEOF
5801#define HAVE_STRUCT_STAT_ST_RDEV 1
5802_ACEOF
5803
5804
5805fi
5806
5807{ $as_echo "$as_me:$LINENO: checking for off_t" >&5
5808$as_echo_n "checking for off_t... " >&6; }
5809if test "${ac_cv_type_off_t+set}" = set; then
5810 $as_echo_n "(cached) " >&6
5811else
5812 ac_cv_type_off_t=no
5813cat >conftest.$ac_ext <<_ACEOF
5814/* confdefs.h. */
5815_ACEOF
5816cat confdefs.h >>conftest.$ac_ext
5817cat >>conftest.$ac_ext <<_ACEOF
5818/* end confdefs.h. */
5819$ac_includes_default
5820int
5821main ()
5822{
5823if (sizeof (off_t))
5824 return 0;
5825 ;
5826 return 0;
5827}
5828_ACEOF
5829rm -f conftest.$ac_objext
5830if { (ac_try="$ac_compile"
5831case "(($ac_try" in
5832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5833 *) ac_try_echo=$ac_try;;
5834esac
5835eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5836$as_echo "$ac_try_echo") >&5
5837 (eval "$ac_compile") 2>conftest.er1
5838 ac_status=$?
5839 grep -v '^ *+' conftest.er1 >conftest.err
5840 rm -f conftest.er1
5841 cat conftest.err >&5
5842 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5843 (exit $ac_status); } && {
5844 test -z "$ac_c_werror_flag" ||
5845 test ! -s conftest.err
5846 } && test -s conftest.$ac_objext; then
5847 cat >conftest.$ac_ext <<_ACEOF
5848/* confdefs.h. */
5849_ACEOF
5850cat confdefs.h >>conftest.$ac_ext
5851cat >>conftest.$ac_ext <<_ACEOF
5852/* end confdefs.h. */
5853$ac_includes_default
5854int
5855main ()
5856{
5857if (sizeof ((off_t)))
5858 return 0;
5859 ;
5860 return 0;
5861}
5862_ACEOF
5863rm -f conftest.$ac_objext
5864if { (ac_try="$ac_compile"
5865case "(($ac_try" in
5866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5867 *) ac_try_echo=$ac_try;;
5868esac
5869eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5870$as_echo "$ac_try_echo") >&5
5871 (eval "$ac_compile") 2>conftest.er1
5872 ac_status=$?
5873 grep -v '^ *+' conftest.er1 >conftest.err
5874 rm -f conftest.er1
5875 cat conftest.err >&5
5876 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5877 (exit $ac_status); } && {
5878 test -z "$ac_c_werror_flag" ||
5879 test ! -s conftest.err
5880 } && test -s conftest.$ac_objext; then
5881 :
5882else
5883 $as_echo "$as_me: failed program was:" >&5
5884sed 's/^/| /' conftest.$ac_ext >&5
5885
5886 ac_cv_type_off_t=yes
5887fi
5888
5889rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5890else
5891 $as_echo "$as_me: failed program was:" >&5
5892sed 's/^/| /' conftest.$ac_ext >&5
5893
5894
5895fi
5896
5897rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5898fi
5899{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5900$as_echo "$ac_cv_type_off_t" >&6; }
5901if test "x$ac_cv_type_off_t" = x""yes; then
5902 :
5903else
5904
5905cat >>confdefs.h <<_ACEOF
5906#define off_t long int
5907_ACEOF
5908
5909fi
5910
5911{ $as_echo "$as_me:$LINENO: checking for pid_t" >&5
5912$as_echo_n "checking for pid_t... " >&6; }
5913if test "${ac_cv_type_pid_t+set}" = set; then
5914 $as_echo_n "(cached) " >&6
5915else
5916 ac_cv_type_pid_t=no
5917cat >conftest.$ac_ext <<_ACEOF
5918/* confdefs.h. */
5919_ACEOF
5920cat confdefs.h >>conftest.$ac_ext
5921cat >>conftest.$ac_ext <<_ACEOF
5922/* end confdefs.h. */
5923$ac_includes_default
5924int
5925main ()
5926{
5927if (sizeof (pid_t))
5928 return 0;
5929 ;
5930 return 0;
5931}
5932_ACEOF
5933rm -f conftest.$ac_objext
5934if { (ac_try="$ac_compile"
5935case "(($ac_try" in
5936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5937 *) ac_try_echo=$ac_try;;
5938esac
5939eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5940$as_echo "$ac_try_echo") >&5
d0191583
JM
5941 (eval "$ac_compile") 2>conftest.er1
5942 ac_status=$?
5943 grep -v '^ *+' conftest.er1 >conftest.err
5944 rm -f conftest.er1
5945 cat conftest.err >&5
ec6a6fbe 5946 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
5947 (exit $ac_status); } && {
5948 test -z "$ac_c_werror_flag" ||
5949 test ! -s conftest.err
5950 } && test -s conftest.$ac_objext; then
ec6a6fbe 5951 cat >conftest.$ac_ext <<_ACEOF
d0191583
JM
5952/* confdefs.h. */
5953_ACEOF
5954cat confdefs.h >>conftest.$ac_ext
5955cat >>conftest.$ac_ext <<_ACEOF
5956/* end confdefs.h. */
5957$ac_includes_default
5958int
5959main ()
5960{
ec6a6fbe
AK
5961if (sizeof ((pid_t)))
5962 return 0;
d0191583
JM
5963 ;
5964 return 0;
5965}
5966_ACEOF
5967rm -f conftest.$ac_objext
5968if { (ac_try="$ac_compile"
5969case "(($ac_try" in
5970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5971 *) ac_try_echo=$ac_try;;
5972esac
ec6a6fbe
AK
5973eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5974$as_echo "$ac_try_echo") >&5
d0191583
JM
5975 (eval "$ac_compile") 2>conftest.er1
5976 ac_status=$?
5977 grep -v '^ *+' conftest.er1 >conftest.err
5978 rm -f conftest.er1
5979 cat conftest.err >&5
ec6a6fbe 5980 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
5981 (exit $ac_status); } && {
5982 test -z "$ac_c_werror_flag" ||
5983 test ! -s conftest.err
5984 } && test -s conftest.$ac_objext; then
ec6a6fbe 5985 :
d0191583 5986else
ec6a6fbe 5987 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
5988sed 's/^/| /' conftest.$ac_ext >&5
5989
ec6a6fbe 5990 ac_cv_type_pid_t=yes
d0191583
JM
5991fi
5992
5993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
5994else
5995 $as_echo "$as_me: failed program was:" >&5
5996sed 's/^/| /' conftest.$ac_ext >&5
5997
5998
d0191583
JM
5999fi
6000
6001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6002fi
ec6a6fbe
AK
6003{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6004$as_echo "$ac_cv_type_pid_t" >&6; }
6005if test "x$ac_cv_type_pid_t" = x""yes; then
6006 :
6007else
d0191583
JM
6008
6009cat >>confdefs.h <<_ACEOF
ec6a6fbe 6010#define pid_t int
d0191583
JM
6011_ACEOF
6012
d0191583 6013fi
8ce0cbda 6014
ec6a6fbe
AK
6015{ $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6016$as_echo_n "checking return type of signal handlers... " >&6; }
6017if test "${ac_cv_type_signal+set}" = set; then
6018 $as_echo_n "(cached) " >&6
ad6254c5 6019else
b145d876
ZK
6020 cat >conftest.$ac_ext <<_ACEOF
6021/* confdefs.h. */
6022_ACEOF
6023cat confdefs.h >>conftest.$ac_ext
6024cat >>conftest.$ac_ext <<_ACEOF
6025/* end confdefs.h. */
ec6a6fbe
AK
6026#include <sys/types.h>
6027#include <signal.h>
6028
b145d876
ZK
6029int
6030main ()
6031{
ec6a6fbe 6032return *(signal (0, 0)) (0) == 1;
ad6254c5
AK
6033 ;
6034 return 0;
6035}
6036_ACEOF
6037rm -f conftest.$ac_objext
7a197a62
AK
6038if { (ac_try="$ac_compile"
6039case "(($ac_try" in
6040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6041 *) ac_try_echo=$ac_try;;
6042esac
ec6a6fbe
AK
6043eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6044$as_echo "$ac_try_echo") >&5
7a197a62 6045 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6046 ac_status=$?
8a2fc586
AK
6047 grep -v '^ *+' conftest.er1 >conftest.err
6048 rm -f conftest.er1
6049 cat conftest.err >&5
ec6a6fbe 6050 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6051 (exit $ac_status); } && {
6052 test -z "$ac_c_werror_flag" ||
6053 test ! -s conftest.err
6054 } && test -s conftest.$ac_objext; then
ec6a6fbe 6055 ac_cv_type_signal=int
b145d876 6056else
ec6a6fbe 6057 $as_echo "$as_me: failed program was:" >&5
b145d876
ZK
6058sed 's/^/| /' conftest.$ac_ext >&5
6059
ec6a6fbe 6060 ac_cv_type_signal=void
ad6254c5 6061fi
b145d876
ZK
6062
6063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6064fi
ec6a6fbe
AK
6065{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6066$as_echo "$ac_cv_type_signal" >&6; }
80992638 6067
ad6254c5 6068cat >>confdefs.h <<_ACEOF
ec6a6fbe 6069#define RETSIGTYPE $ac_cv_type_signal
ad6254c5 6070_ACEOF
199e490e 6071
b896caa1 6072
ec6a6fbe
AK
6073{ $as_echo "$as_me:$LINENO: checking for size_t" >&5
6074$as_echo_n "checking for size_t... " >&6; }
6075if test "${ac_cv_type_size_t+set}" = set; then
6076 $as_echo_n "(cached) " >&6
ad6254c5 6077else
ec6a6fbe
AK
6078 ac_cv_type_size_t=no
6079cat >conftest.$ac_ext <<_ACEOF
b145d876
ZK
6080/* confdefs.h. */
6081_ACEOF
6082cat confdefs.h >>conftest.$ac_ext
6083cat >>conftest.$ac_ext <<_ACEOF
6084/* end confdefs.h. */
6085$ac_includes_default
6086int
6087main ()
6088{
ec6a6fbe
AK
6089if (sizeof (size_t))
6090 return 0;
ad6254c5
AK
6091 ;
6092 return 0;
6093}
6094_ACEOF
6095rm -f conftest.$ac_objext
7a197a62
AK
6096if { (ac_try="$ac_compile"
6097case "(($ac_try" in
6098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6099 *) ac_try_echo=$ac_try;;
6100esac
ec6a6fbe
AK
6101eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6102$as_echo "$ac_try_echo") >&5
7a197a62 6103 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6104 ac_status=$?
8a2fc586
AK
6105 grep -v '^ *+' conftest.er1 >conftest.err
6106 rm -f conftest.er1
6107 cat conftest.err >&5
ec6a6fbe 6108 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6109 (exit $ac_status); } && {
6110 test -z "$ac_c_werror_flag" ||
6111 test ! -s conftest.err
6112 } && test -s conftest.$ac_objext; then
d0191583
JM
6113 cat >conftest.$ac_ext <<_ACEOF
6114/* confdefs.h. */
6115_ACEOF
6116cat confdefs.h >>conftest.$ac_ext
6117cat >>conftest.$ac_ext <<_ACEOF
6118/* end confdefs.h. */
ec6a6fbe 6119$ac_includes_default
d0191583
JM
6120int
6121main ()
6122{
ec6a6fbe
AK
6123if (sizeof ((size_t)))
6124 return 0;
d0191583
JM
6125 ;
6126 return 0;
6127}
6128_ACEOF
6129rm -f conftest.$ac_objext
6130if { (ac_try="$ac_compile"
6131case "(($ac_try" in
6132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6133 *) ac_try_echo=$ac_try;;
6134esac
ec6a6fbe
AK
6135eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6136$as_echo "$ac_try_echo") >&5
d0191583
JM
6137 (eval "$ac_compile") 2>conftest.er1
6138 ac_status=$?
6139 grep -v '^ *+' conftest.er1 >conftest.err
6140 rm -f conftest.er1
6141 cat conftest.err >&5
ec6a6fbe 6142 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
6143 (exit $ac_status); } && {
6144 test -z "$ac_c_werror_flag" ||
6145 test ! -s conftest.err
6146 } && test -s conftest.$ac_objext; then
ec6a6fbe 6147 :
d0191583 6148else
ec6a6fbe 6149 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
6150sed 's/^/| /' conftest.$ac_ext >&5
6151
ec6a6fbe
AK
6152 ac_cv_type_size_t=yes
6153fi
6154
6155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6156else
6157 $as_echo "$as_me: failed program was:" >&5
6158sed 's/^/| /' conftest.$ac_ext >&5
6159
6160
d0191583
JM
6161fi
6162
6163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6164fi
ec6a6fbe
AK
6165{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6166$as_echo "$ac_cv_type_size_t" >&6; }
6167if test "x$ac_cv_type_size_t" = x""yes; then
6168 :
6169else
d0191583
JM
6170
6171cat >>confdefs.h <<_ACEOF
ec6a6fbe 6172#define size_t unsigned int
d0191583
JM
6173_ACEOF
6174
ec6a6fbe 6175fi
d0191583 6176
ec6a6fbe
AK
6177{ $as_echo "$as_me:$LINENO: checking for mode_t" >&5
6178$as_echo_n "checking for mode_t... " >&6; }
6179if test "${ac_cv_type_mode_t+set}" = set; then
6180 $as_echo_n "(cached) " >&6
8106cdd5 6181else
ec6a6fbe
AK
6182 ac_cv_type_mode_t=no
6183cat >conftest.$ac_ext <<_ACEOF
b145d876
ZK
6184/* confdefs.h. */
6185_ACEOF
6186cat confdefs.h >>conftest.$ac_ext
6187cat >>conftest.$ac_ext <<_ACEOF
6188/* end confdefs.h. */
6189$ac_includes_default
6190int
6191main ()
6192{
ec6a6fbe
AK
6193if (sizeof (mode_t))
6194 return 0;
ad6254c5
AK
6195 ;
6196 return 0;
6197}
6198_ACEOF
6199rm -f conftest.$ac_objext
7a197a62
AK
6200if { (ac_try="$ac_compile"
6201case "(($ac_try" in
6202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6203 *) ac_try_echo=$ac_try;;
6204esac
ec6a6fbe
AK
6205eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6206$as_echo "$ac_try_echo") >&5
7a197a62 6207 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6208 ac_status=$?
8a2fc586
AK
6209 grep -v '^ *+' conftest.er1 >conftest.err
6210 rm -f conftest.er1
6211 cat conftest.err >&5
ec6a6fbe 6212 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6213 (exit $ac_status); } && {
6214 test -z "$ac_c_werror_flag" ||
6215 test ! -s conftest.err
6216 } && test -s conftest.$ac_objext; then
b145d876
ZK
6217 cat >conftest.$ac_ext <<_ACEOF
6218/* confdefs.h. */
6219_ACEOF
6220cat confdefs.h >>conftest.$ac_ext
6221cat >>conftest.$ac_ext <<_ACEOF
6222/* end confdefs.h. */
6223$ac_includes_default
6224int
6225main ()
6226{
ec6a6fbe
AK
6227if (sizeof ((mode_t)))
6228 return 0;
ad6254c5
AK
6229 ;
6230 return 0;
6231}
6232_ACEOF
6233rm -f conftest.$ac_objext
7a197a62
AK
6234if { (ac_try="$ac_compile"
6235case "(($ac_try" in
6236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6237 *) ac_try_echo=$ac_try;;
6238esac
ec6a6fbe
AK
6239eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6240$as_echo "$ac_try_echo") >&5
7a197a62 6241 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6242 ac_status=$?
8a2fc586
AK
6243 grep -v '^ *+' conftest.er1 >conftest.err
6244 rm -f conftest.er1
6245 cat conftest.err >&5
ec6a6fbe 6246 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6247 (exit $ac_status); } && {
6248 test -z "$ac_c_werror_flag" ||
6249 test ! -s conftest.err
6250 } && test -s conftest.$ac_objext; then
ec6a6fbe
AK
6251 :
6252else
6253 $as_echo "$as_me: failed program was:" >&5
6254sed 's/^/| /' conftest.$ac_ext >&5
6255
6256 ac_cv_type_mode_t=yes
6257fi
6258
6259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fddafd51 6260else
ec6a6fbe 6261 $as_echo "$as_me: failed program was:" >&5
fddafd51
ZK
6262sed 's/^/| /' conftest.$ac_ext >&5
6263
ec6a6fbe 6264
80992638 6265fi
7a197a62
AK
6266
6267rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 6268fi
ec6a6fbe
AK
6269{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6270$as_echo "$ac_cv_type_mode_t" >&6; }
6271if test "x$ac_cv_type_mode_t" = x""yes; then
ad6254c5
AK
6272 :
6273else
80992638 6274
ad6254c5
AK
6275cat >>confdefs.h <<_ACEOF
6276#define mode_t int
6277_ACEOF
6278
6279fi
6280
ec6a6fbe
AK
6281{ $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
6282$as_echo_n "checking for struct stat.st_rdev... " >&6; }
ad6254c5 6283if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
ec6a6fbe 6284 $as_echo_n "(cached) " >&6
ad6254c5
AK
6285else
6286 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6287/* confdefs.h. */
6288_ACEOF
6289cat confdefs.h >>conftest.$ac_ext
6290cat >>conftest.$ac_ext <<_ACEOF
6291/* end confdefs.h. */
6292$ac_includes_default
6293int
6294main ()
6295{
6296static struct stat ac_aggr;
6297if (ac_aggr.st_rdev)
6298return 0;
6299 ;
6300 return 0;
6301}
6302_ACEOF
6303rm -f conftest.$ac_objext
7a197a62
AK
6304if { (ac_try="$ac_compile"
6305case "(($ac_try" in
6306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6307 *) ac_try_echo=$ac_try;;
6308esac
ec6a6fbe
AK
6309eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6310$as_echo "$ac_try_echo") >&5
7a197a62 6311 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6312 ac_status=$?
8a2fc586
AK
6313 grep -v '^ *+' conftest.er1 >conftest.err
6314 rm -f conftest.er1
6315 cat conftest.err >&5
ec6a6fbe 6316 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6317 (exit $ac_status); } && {
6318 test -z "$ac_c_werror_flag" ||
6319 test ! -s conftest.err
6320 } && test -s conftest.$ac_objext; then
ad6254c5
AK
6321 ac_cv_member_struct_stat_st_rdev=yes
6322else
ec6a6fbe 6323 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6324sed 's/^/| /' conftest.$ac_ext >&5
6325
7a197a62 6326 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6327/* confdefs.h. */
6328_ACEOF
6329cat confdefs.h >>conftest.$ac_ext
6330cat >>conftest.$ac_ext <<_ACEOF
6331/* end confdefs.h. */
6332$ac_includes_default
6333int
6334main ()
6335{
6336static struct stat ac_aggr;
6337if (sizeof ac_aggr.st_rdev)
6338return 0;
6339 ;
6340 return 0;
6341}
6342_ACEOF
6343rm -f conftest.$ac_objext
7a197a62
AK
6344if { (ac_try="$ac_compile"
6345case "(($ac_try" in
6346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6347 *) ac_try_echo=$ac_try;;
6348esac
ec6a6fbe
AK
6349eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6350$as_echo "$ac_try_echo") >&5
7a197a62 6351 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6352 ac_status=$?
8a2fc586
AK
6353 grep -v '^ *+' conftest.er1 >conftest.err
6354 rm -f conftest.er1
6355 cat conftest.err >&5
ec6a6fbe 6356 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6357 (exit $ac_status); } && {
6358 test -z "$ac_c_werror_flag" ||
6359 test ! -s conftest.err
6360 } && test -s conftest.$ac_objext; then
ad6254c5
AK
6361 ac_cv_member_struct_stat_st_rdev=yes
6362else
ec6a6fbe 6363 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6364sed 's/^/| /' conftest.$ac_ext >&5
6365
7a197a62 6366 ac_cv_member_struct_stat_st_rdev=no
ad6254c5 6367fi
7a197a62
AK
6368
6369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 6370fi
7a197a62
AK
6371
6372rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 6373fi
ec6a6fbe
AK
6374{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
6375$as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; }
6376if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then
ad6254c5
AK
6377
6378cat >>confdefs.h <<_ACEOF
6379#define HAVE_STRUCT_STAT_ST_RDEV 1
6380_ACEOF
6381
6382
ad6254c5
AK
6383fi
6384
ec6a6fbe
AK
6385{ $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6386$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
ad6254c5 6387if test "${ac_cv_struct_tm+set}" = set; then
ec6a6fbe 6388 $as_echo_n "(cached) " >&6
ad6254c5
AK
6389else
6390 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6391/* confdefs.h. */
6392_ACEOF
6393cat confdefs.h >>conftest.$ac_ext
6394cat >>conftest.$ac_ext <<_ACEOF
6395/* end confdefs.h. */
6396#include <sys/types.h>
6397#include <time.h>
6398
6399int
6400main ()
6401{
25fbec5b
AK
6402struct tm tm;
6403 int *p = &tm.tm_sec;
ec6a6fbe 6404 return !p;
ad6254c5
AK
6405 ;
6406 return 0;
6407}
6408_ACEOF
6409rm -f conftest.$ac_objext
7a197a62
AK
6410if { (ac_try="$ac_compile"
6411case "(($ac_try" in
6412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6413 *) ac_try_echo=$ac_try;;
6414esac
ec6a6fbe
AK
6415eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6416$as_echo "$ac_try_echo") >&5
7a197a62 6417 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6418 ac_status=$?
8a2fc586
AK
6419 grep -v '^ *+' conftest.er1 >conftest.err
6420 rm -f conftest.er1
6421 cat conftest.err >&5
ec6a6fbe 6422 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6423 (exit $ac_status); } && {
6424 test -z "$ac_c_werror_flag" ||
6425 test ! -s conftest.err
6426 } && test -s conftest.$ac_objext; then
ad6254c5
AK
6427 ac_cv_struct_tm=time.h
6428else
ec6a6fbe 6429 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6430sed 's/^/| /' conftest.$ac_ext >&5
6431
7a197a62 6432 ac_cv_struct_tm=sys/time.h
ad6254c5 6433fi
7a197a62
AK
6434
6435rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 6436fi
ec6a6fbe
AK
6437{ $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6438$as_echo "$ac_cv_struct_tm" >&6; }
ad6254c5
AK
6439if test $ac_cv_struct_tm = sys/time.h; then
6440
6441cat >>confdefs.h <<\_ACEOF
6442#define TM_IN_SYS_TIME 1
6443_ACEOF
6444
6445fi
809fae91 6446
795ca3e5 6447
80992638 6448################################################################################
ad6254c5
AK
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
d0191583
JM
6463
6464
6465
6466for ac_func in gethostname getpagesize memset mkdir rmdir munmap setlocale \
6467 strcasecmp strchr strdup strncasecmp strerror strrchr strstr strtol strtoul \
6468 uname
ad6254c5 6469do
ec6a6fbe
AK
6470as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6471{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6472$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 6473if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 6474 $as_echo_n "(cached) " >&6
795ca3e5 6475else
ad6254c5 6476 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6477/* confdefs.h. */
6478_ACEOF
6479cat confdefs.h >>conftest.$ac_ext
6480cat >>conftest.$ac_ext <<_ACEOF
6481/* end confdefs.h. */
8a2fc586
AK
6482/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6483 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6484#define $ac_func innocuous_$ac_func
6485
ad6254c5
AK
6486/* System header to define __stub macros and hopefully few prototypes,
6487 which can conflict with char $ac_func (); below.
6488 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6489 <limits.h> exists even on freestanding compilers. */
8a2fc586 6490
ad6254c5
AK
6491#ifdef __STDC__
6492# include <limits.h>
6493#else
6494# include <assert.h>
6495#endif
8a2fc586
AK
6496
6497#undef $ac_func
6498
7a197a62
AK
6499/* Override any GCC internal prototype to avoid an error.
6500 Use char because int might match the return type of a GCC
6501 builtin and then its argument prototype would still apply. */
ad6254c5
AK
6502#ifdef __cplusplus
6503extern "C"
ad6254c5 6504#endif
ad6254c5
AK
6505char $ac_func ();
6506/* The GNU C library defines this for functions which it implements
6507 to always fail with ENOSYS. Some functions are actually named
6508 something starting with __ and the normal name is an alias. */
7a197a62 6509#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 6510choke me
ad6254c5
AK
6511#endif
6512
6513int
6514main ()
6515{
7a197a62 6516return $ac_func ();
ad6254c5
AK
6517 ;
6518 return 0;
6519}
6520_ACEOF
6521rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
6522if { (ac_try="$ac_link"
6523case "(($ac_try" in
6524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6525 *) ac_try_echo=$ac_try;;
6526esac
ec6a6fbe
AK
6527eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6528$as_echo "$ac_try_echo") >&5
7a197a62 6529 (eval "$ac_link") 2>conftest.er1
ad6254c5 6530 ac_status=$?
8a2fc586
AK
6531 grep -v '^ *+' conftest.er1 >conftest.err
6532 rm -f conftest.er1
6533 cat conftest.err >&5
ec6a6fbe 6534 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6535 (exit $ac_status); } && {
6536 test -z "$ac_c_werror_flag" ||
6537 test ! -s conftest.err
ec6a6fbe
AK
6538 } && test -s conftest$ac_exeext && {
6539 test "$cross_compiling" = yes ||
6540 $as_test_x conftest$ac_exeext
6541 }; then
fc54be10
AK
6542 eval "$as_ac_var=yes"
6543else
ec6a6fbe 6544 $as_echo "$as_me: failed program was:" >&5
fc54be10
AK
6545sed 's/^/| /' conftest.$ac_ext >&5
6546
6547 eval "$as_ac_var=no"
6548fi
6549
ec6a6fbe 6550rm -rf conftest.dSYM
25fbec5b 6551rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
fc54be10
AK
6552 conftest$ac_exeext conftest.$ac_ext
6553fi
ec6a6fbe
AK
6554ac_res=`eval 'as_val=${'$as_ac_var'}
6555 $as_echo "$as_val"'`
6556 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6557$as_echo "$ac_res" >&6; }
6558as_val=`eval 'as_val=${'$as_ac_var'}
6559 $as_echo "$as_val"'`
6560 if test "x$as_val" = x""yes; then
ad6254c5 6561 cat >>confdefs.h <<_ACEOF
ec6a6fbe 6562#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
6563_ACEOF
6564
6565else
ec6a6fbe
AK
6566 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
6567$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5
AK
6568 { (exit 1); exit 1; }; }
6569fi
6570done
795ca3e5 6571
a0f9708e
AK
6572
6573for ac_func in siginterrupt
6574do
6575as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6576{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6577$as_echo_n "checking for $ac_func... " >&6; }
6578if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6579 $as_echo_n "(cached) " >&6
6580else
6581 cat >conftest.$ac_ext <<_ACEOF
6582/* confdefs.h. */
6583_ACEOF
6584cat confdefs.h >>conftest.$ac_ext
6585cat >>conftest.$ac_ext <<_ACEOF
6586/* end confdefs.h. */
6587/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6588 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6589#define $ac_func innocuous_$ac_func
6590
6591/* System header to define __stub macros and hopefully few prototypes,
6592 which can conflict with char $ac_func (); below.
6593 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6594 <limits.h> exists even on freestanding compilers. */
6595
6596#ifdef __STDC__
6597# include <limits.h>
6598#else
6599# include <assert.h>
6600#endif
6601
6602#undef $ac_func
6603
6604/* Override any GCC internal prototype to avoid an error.
6605 Use char because int might match the return type of a GCC
6606 builtin and then its argument prototype would still apply. */
6607#ifdef __cplusplus
6608extern "C"
6609#endif
6610char $ac_func ();
6611/* The GNU C library defines this for functions which it implements
6612 to always fail with ENOSYS. Some functions are actually named
6613 something starting with __ and the normal name is an alias. */
6614#if defined __stub_$ac_func || defined __stub___$ac_func
6615choke me
6616#endif
6617
6618int
6619main ()
6620{
6621return $ac_func ();
6622 ;
6623 return 0;
6624}
6625_ACEOF
6626rm -f conftest.$ac_objext conftest$ac_exeext
6627if { (ac_try="$ac_link"
6628case "(($ac_try" in
6629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6630 *) ac_try_echo=$ac_try;;
6631esac
6632eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6633$as_echo "$ac_try_echo") >&5
6634 (eval "$ac_link") 2>conftest.er1
6635 ac_status=$?
6636 grep -v '^ *+' conftest.er1 >conftest.err
6637 rm -f conftest.er1
6638 cat conftest.err >&5
6639 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6640 (exit $ac_status); } && {
6641 test -z "$ac_c_werror_flag" ||
6642 test ! -s conftest.err
6643 } && test -s conftest$ac_exeext && {
6644 test "$cross_compiling" = yes ||
6645 $as_test_x conftest$ac_exeext
6646 }; then
6647 eval "$as_ac_var=yes"
6648else
6649 $as_echo "$as_me: failed program was:" >&5
6650sed 's/^/| /' conftest.$ac_ext >&5
6651
6652 eval "$as_ac_var=no"
6653fi
6654
6655rm -rf conftest.dSYM
6656rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6657 conftest$ac_exeext conftest.$ac_ext
6658fi
6659ac_res=`eval 'as_val=${'$as_ac_var'}
6660 $as_echo "$as_val"'`
6661 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6662$as_echo "$ac_res" >&6; }
6663as_val=`eval 'as_val=${'$as_ac_var'}
6664 $as_echo "$as_val"'`
6665 if test "x$as_val" = x""yes; then
6666 cat >>confdefs.h <<_ACEOF
6667#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6668_ACEOF
6669
6670fi
6671done
6672
ad6254c5
AK
6673# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6674# for constant arguments. Useless!
ec6a6fbe
AK
6675{ $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
6676$as_echo_n "checking for working alloca.h... " >&6; }
ad6254c5 6677if test "${ac_cv_working_alloca_h+set}" = set; then
ec6a6fbe 6678 $as_echo_n "(cached) " >&6
ad6254c5
AK
6679else
6680 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6681/* confdefs.h. */
6682_ACEOF
6683cat confdefs.h >>conftest.$ac_ext
6684cat >>conftest.$ac_ext <<_ACEOF
6685/* end confdefs.h. */
6686#include <alloca.h>
6687int
6688main ()
6689{
6690char *p = (char *) alloca (2 * sizeof (int));
7a197a62 6691 if (p) return 0;
ad6254c5
AK
6692 ;
6693 return 0;
6694}
6695_ACEOF
6696rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
6697if { (ac_try="$ac_link"
6698case "(($ac_try" in
6699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6700 *) ac_try_echo=$ac_try;;
6701esac
ec6a6fbe
AK
6702eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6703$as_echo "$ac_try_echo") >&5
7a197a62 6704 (eval "$ac_link") 2>conftest.er1
ad6254c5 6705 ac_status=$?
8a2fc586
AK
6706 grep -v '^ *+' conftest.er1 >conftest.err
6707 rm -f conftest.er1
6708 cat conftest.err >&5
ec6a6fbe 6709 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6710 (exit $ac_status); } && {
6711 test -z "$ac_c_werror_flag" ||
6712 test ! -s conftest.err
ec6a6fbe
AK
6713 } && test -s conftest$ac_exeext && {
6714 test "$cross_compiling" = yes ||
6715 $as_test_x conftest$ac_exeext
6716 }; then
ad6254c5
AK
6717 ac_cv_working_alloca_h=yes
6718else
ec6a6fbe 6719 $as_echo "$as_me: failed program was:" >&5
ad6254c5 6720sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 6721
7a197a62 6722 ac_cv_working_alloca_h=no
ad6254c5 6723fi
7a197a62 6724
ec6a6fbe 6725rm -rf conftest.dSYM
25fbec5b 6726rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 6727 conftest$ac_exeext conftest.$ac_ext
ad6254c5 6728fi
ec6a6fbe
AK
6729{ $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6730$as_echo "$ac_cv_working_alloca_h" >&6; }
ad6254c5
AK
6731if test $ac_cv_working_alloca_h = yes; then
6732
6733cat >>confdefs.h <<\_ACEOF
6734#define HAVE_ALLOCA_H 1
6735_ACEOF
6736
6737fi
6738
ec6a6fbe
AK
6739{ $as_echo "$as_me:$LINENO: checking for alloca" >&5
6740$as_echo_n "checking for alloca... " >&6; }
ad6254c5 6741if test "${ac_cv_func_alloca_works+set}" = set; then
ec6a6fbe 6742 $as_echo_n "(cached) " >&6
ad6254c5
AK
6743else
6744 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6745/* confdefs.h. */
6746_ACEOF
6747cat confdefs.h >>conftest.$ac_ext
6748cat >>conftest.$ac_ext <<_ACEOF
6749/* end confdefs.h. */
6750#ifdef __GNUC__
6751# define alloca __builtin_alloca
6752#else
6753# ifdef _MSC_VER
6754# include <malloc.h>
6755# define alloca _alloca
6756# else
25fbec5b 6757# ifdef HAVE_ALLOCA_H
ad6254c5
AK
6758# include <alloca.h>
6759# else
6760# ifdef _AIX
6761 #pragma alloca
6762# else
6763# ifndef alloca /* predefined by HP cc +Olibcalls */
6764char *alloca ();
6765# endif
6766# endif
6767# endif
6768# endif
6769#endif
6770
6771int
6772main ()
6773{
6774char *p = (char *) alloca (1);
7a197a62 6775 if (p) return 0;
ad6254c5
AK
6776 ;
6777 return 0;
6778}
6779_ACEOF
6780rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
6781if { (ac_try="$ac_link"
6782case "(($ac_try" in
6783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6784 *) ac_try_echo=$ac_try;;
6785esac
ec6a6fbe
AK
6786eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6787$as_echo "$ac_try_echo") >&5
7a197a62 6788 (eval "$ac_link") 2>conftest.er1
ad6254c5 6789 ac_status=$?
8a2fc586
AK
6790 grep -v '^ *+' conftest.er1 >conftest.err
6791 rm -f conftest.er1
6792 cat conftest.err >&5
ec6a6fbe 6793 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6794 (exit $ac_status); } && {
6795 test -z "$ac_c_werror_flag" ||
6796 test ! -s conftest.err
ec6a6fbe
AK
6797 } && test -s conftest$ac_exeext && {
6798 test "$cross_compiling" = yes ||
6799 $as_test_x conftest$ac_exeext
6800 }; then
ad6254c5
AK
6801 ac_cv_func_alloca_works=yes
6802else
ec6a6fbe 6803 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6804sed 's/^/| /' conftest.$ac_ext >&5
6805
7a197a62 6806 ac_cv_func_alloca_works=no
ad6254c5 6807fi
7a197a62 6808
ec6a6fbe 6809rm -rf conftest.dSYM
25fbec5b 6810rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 6811 conftest$ac_exeext conftest.$ac_ext
ad6254c5 6812fi
ec6a6fbe
AK
6813{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6814$as_echo "$ac_cv_func_alloca_works" >&6; }
ad6254c5
AK
6815
6816if test $ac_cv_func_alloca_works = yes; then
6817
6818cat >>confdefs.h <<\_ACEOF
6819#define HAVE_ALLOCA 1
6820_ACEOF
6821
6822else
6823 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6824# that cause trouble. Some versions do not even contain alloca or
6825# contain a buggy version. If you still want to use their alloca,
6826# use ar to extract alloca.o from them instead of compiling alloca.c.
6827
7a197a62 6828ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
ad6254c5
AK
6829
6830cat >>confdefs.h <<\_ACEOF
6831#define C_ALLOCA 1
6832_ACEOF
6833
6834
ec6a6fbe
AK
6835{ $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6836$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
ad6254c5 6837if test "${ac_cv_os_cray+set}" = set; then
ec6a6fbe 6838 $as_echo_n "(cached) " >&6
ad6254c5
AK
6839else
6840 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6841/* confdefs.h. */
6842_ACEOF
6843cat confdefs.h >>conftest.$ac_ext
6844cat >>conftest.$ac_ext <<_ACEOF
6845/* end confdefs.h. */
7a197a62 6846#if defined CRAY && ! defined CRAY2
ad6254c5
AK
6847webecray
6848#else
6849wenotbecray
6850#endif
6851
6852_ACEOF
795ca3e5 6853if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ad6254c5
AK
6854 $EGREP "webecray" >/dev/null 2>&1; then
6855 ac_cv_os_cray=yes
6856else
6857 ac_cv_os_cray=no
795ca3e5
AK
6858fi
6859rm -f conftest*
6860
795ca3e5 6861fi
ec6a6fbe
AK
6862{ $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6863$as_echo "$ac_cv_os_cray" >&6; }
ad6254c5
AK
6864if test $ac_cv_os_cray = yes; then
6865 for ac_func in _getb67 GETB67 getb67; do
ec6a6fbe
AK
6866 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6867{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6868$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 6869if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 6870 $as_echo_n "(cached) " >&6
ad6254c5
AK
6871else
6872 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6873/* confdefs.h. */
6874_ACEOF
6875cat confdefs.h >>conftest.$ac_ext
6876cat >>conftest.$ac_ext <<_ACEOF
6877/* end confdefs.h. */
8a2fc586
AK
6878/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6879 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6880#define $ac_func innocuous_$ac_func
6881
ad6254c5
AK
6882/* System header to define __stub macros and hopefully few prototypes,
6883 which can conflict with char $ac_func (); below.
6884 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6885 <limits.h> exists even on freestanding compilers. */
8a2fc586 6886
ad6254c5
AK
6887#ifdef __STDC__
6888# include <limits.h>
6889#else
6890# include <assert.h>
6891#endif
8a2fc586
AK
6892
6893#undef $ac_func
6894
7a197a62
AK
6895/* Override any GCC internal prototype to avoid an error.
6896 Use char because int might match the return type of a GCC
6897 builtin and then its argument prototype would still apply. */
ad6254c5
AK
6898#ifdef __cplusplus
6899extern "C"
ad6254c5 6900#endif
ad6254c5
AK
6901char $ac_func ();
6902/* The GNU C library defines this for functions which it implements
6903 to always fail with ENOSYS. Some functions are actually named
6904 something starting with __ and the normal name is an alias. */
7a197a62 6905#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 6906choke me
ad6254c5
AK
6907#endif
6908
6909int
6910main ()
6911{
7a197a62 6912return $ac_func ();
ad6254c5
AK
6913 ;
6914 return 0;
6915}
6916_ACEOF
6917rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
6918if { (ac_try="$ac_link"
6919case "(($ac_try" in
6920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6921 *) ac_try_echo=$ac_try;;
6922esac
ec6a6fbe
AK
6923eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6924$as_echo "$ac_try_echo") >&5
7a197a62 6925 (eval "$ac_link") 2>conftest.er1
ad6254c5 6926 ac_status=$?
8a2fc586
AK
6927 grep -v '^ *+' conftest.er1 >conftest.err
6928 rm -f conftest.er1
6929 cat conftest.err >&5
ec6a6fbe 6930 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6931 (exit $ac_status); } && {
6932 test -z "$ac_c_werror_flag" ||
6933 test ! -s conftest.err
ec6a6fbe
AK
6934 } && test -s conftest$ac_exeext && {
6935 test "$cross_compiling" = yes ||
6936 $as_test_x conftest$ac_exeext
6937 }; then
ad6254c5
AK
6938 eval "$as_ac_var=yes"
6939else
ec6a6fbe 6940 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6941sed 's/^/| /' conftest.$ac_ext >&5
6942
7a197a62 6943 eval "$as_ac_var=no"
ad6254c5 6944fi
7a197a62 6945
ec6a6fbe 6946rm -rf conftest.dSYM
25fbec5b 6947rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 6948 conftest$ac_exeext conftest.$ac_ext
ad6254c5 6949fi
ec6a6fbe
AK
6950ac_res=`eval 'as_val=${'$as_ac_var'}
6951 $as_echo "$as_val"'`
6952 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6953$as_echo "$ac_res" >&6; }
6954as_val=`eval 'as_val=${'$as_ac_var'}
6955 $as_echo "$as_val"'`
6956 if test "x$as_val" = x""yes; then
80992638 6957
ad6254c5
AK
6958cat >>confdefs.h <<_ACEOF
6959#define CRAY_STACKSEG_END $ac_func
6960_ACEOF
6961
6962 break
6963fi
6964
6965 done
6966fi
6967
ec6a6fbe
AK
6968{ $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6969$as_echo_n "checking stack direction for C alloca... " >&6; }
ad6254c5 6970if test "${ac_cv_c_stack_direction+set}" = set; then
ec6a6fbe 6971 $as_echo_n "(cached) " >&6
ad6254c5
AK
6972else
6973 if test "$cross_compiling" = yes; then
6974 ac_cv_c_stack_direction=0
6975else
6976 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6977/* confdefs.h. */
6978_ACEOF
6979cat confdefs.h >>conftest.$ac_ext
6980cat >>conftest.$ac_ext <<_ACEOF
6981/* end confdefs.h. */
7a197a62 6982$ac_includes_default
ad6254c5
AK
6983int
6984find_stack_direction ()
6985{
6986 static char *addr = 0;
6987 auto char dummy;
6988 if (addr == 0)
6989 {
6990 addr = &dummy;
6991 return find_stack_direction ();
6992 }
6993 else
6994 return (&dummy > addr) ? 1 : -1;
6995}
6996
6997int
6998main ()
6999{
7a197a62 7000 return find_stack_direction () < 0;
ad6254c5
AK
7001}
7002_ACEOF
7003rm -f conftest$ac_exeext
7a197a62
AK
7004if { (ac_try="$ac_link"
7005case "(($ac_try" in
7006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7007 *) ac_try_echo=$ac_try;;
7008esac
ec6a6fbe
AK
7009eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7010$as_echo "$ac_try_echo") >&5
7a197a62 7011 (eval "$ac_link") 2>&5
ad6254c5 7012 ac_status=$?
ec6a6fbe 7013 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7014 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7015 { (case "(($ac_try" in
7016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7017 *) ac_try_echo=$ac_try;;
7018esac
ec6a6fbe
AK
7019eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7020$as_echo "$ac_try_echo") >&5
7a197a62 7021 (eval "$ac_try") 2>&5
ad6254c5 7022 ac_status=$?
ec6a6fbe 7023 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7024 (exit $ac_status); }; }; then
7025 ac_cv_c_stack_direction=1
7026else
ec6a6fbe
AK
7027 $as_echo "$as_me: program exited with status $ac_status" >&5
7028$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7029sed 's/^/| /' conftest.$ac_ext >&5
7030
7031( exit $ac_status )
7032ac_cv_c_stack_direction=-1
7033fi
ec6a6fbe 7034rm -rf conftest.dSYM
7a197a62 7035rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7036fi
7a197a62
AK
7037
7038
ad6254c5 7039fi
ec6a6fbe
AK
7040{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
7041$as_echo "$ac_cv_c_stack_direction" >&6; }
ad6254c5
AK
7042
7043cat >>confdefs.h <<_ACEOF
7044#define STACK_DIRECTION $ac_cv_c_stack_direction
7045_ACEOF
7046
7047
7048fi
7049
ec6a6fbe
AK
7050{ $as_echo "$as_me:$LINENO: checking whether closedir returns void" >&5
7051$as_echo_n "checking whether closedir returns void... " >&6; }
ad6254c5 7052if test "${ac_cv_func_closedir_void+set}" = set; then
ec6a6fbe 7053 $as_echo_n "(cached) " >&6
ad6254c5
AK
7054else
7055 if test "$cross_compiling" = yes; then
7056 ac_cv_func_closedir_void=yes
7057else
7058 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7059/* confdefs.h. */
7060_ACEOF
7061cat confdefs.h >>conftest.$ac_ext
7062cat >>conftest.$ac_ext <<_ACEOF
7063/* end confdefs.h. */
7064$ac_includes_default
7065#include <$ac_header_dirent>
7066#ifndef __cplusplus
7067int closedir ();
7068#endif
7069
7070int
7071main ()
7072{
7a197a62 7073return closedir (opendir (".")) != 0;
ad6254c5
AK
7074 ;
7075 return 0;
7076}
7077_ACEOF
7078rm -f conftest$ac_exeext
7a197a62
AK
7079if { (ac_try="$ac_link"
7080case "(($ac_try" in
7081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7082 *) ac_try_echo=$ac_try;;
7083esac
ec6a6fbe
AK
7084eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7085$as_echo "$ac_try_echo") >&5
7a197a62 7086 (eval "$ac_link") 2>&5
ad6254c5 7087 ac_status=$?
ec6a6fbe 7088 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7089 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7090 { (case "(($ac_try" in
7091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7092 *) ac_try_echo=$ac_try;;
7093esac
ec6a6fbe
AK
7094eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7095$as_echo "$ac_try_echo") >&5
7a197a62 7096 (eval "$ac_try") 2>&5
ad6254c5 7097 ac_status=$?
ec6a6fbe 7098 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7099 (exit $ac_status); }; }; then
7100 ac_cv_func_closedir_void=no
7101else
ec6a6fbe
AK
7102 $as_echo "$as_me: program exited with status $ac_status" >&5
7103$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7104sed 's/^/| /' conftest.$ac_ext >&5
7105
7106( exit $ac_status )
7107ac_cv_func_closedir_void=yes
7108fi
ec6a6fbe 7109rm -rf conftest.dSYM
7a197a62 7110rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7111fi
7a197a62
AK
7112
7113
ad6254c5 7114fi
ec6a6fbe
AK
7115{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
7116$as_echo "$ac_cv_func_closedir_void" >&6; }
ad6254c5
AK
7117if test $ac_cv_func_closedir_void = yes; then
7118
7119cat >>confdefs.h <<\_ACEOF
7120#define CLOSEDIR_VOID 1
7121_ACEOF
7122
7123fi
7124
7125
7a197a62 7126for ac_header in vfork.h
ad6254c5 7127do
ec6a6fbe 7128as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 7129if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
7130 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7131$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 7132if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 7133 $as_echo_n "(cached) " >&6
ad6254c5 7134fi
ec6a6fbe
AK
7135ac_res=`eval 'as_val=${'$as_ac_Header'}
7136 $as_echo "$as_val"'`
7137 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7138$as_echo "$ac_res" >&6; }
ad6254c5
AK
7139else
7140 # Is the header compilable?
ec6a6fbe
AK
7141{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7142$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 7143cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7144/* confdefs.h. */
7145_ACEOF
7146cat confdefs.h >>conftest.$ac_ext
7147cat >>conftest.$ac_ext <<_ACEOF
7148/* end confdefs.h. */
7149$ac_includes_default
7150#include <$ac_header>
7151_ACEOF
7152rm -f conftest.$ac_objext
7a197a62
AK
7153if { (ac_try="$ac_compile"
7154case "(($ac_try" in
7155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7156 *) ac_try_echo=$ac_try;;
7157esac
ec6a6fbe
AK
7158eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7159$as_echo "$ac_try_echo") >&5
7a197a62 7160 (eval "$ac_compile") 2>conftest.er1
ad6254c5 7161 ac_status=$?
8a2fc586
AK
7162 grep -v '^ *+' conftest.er1 >conftest.err
7163 rm -f conftest.er1
7164 cat conftest.err >&5
ec6a6fbe 7165 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7166 (exit $ac_status); } && {
7167 test -z "$ac_c_werror_flag" ||
7168 test ! -s conftest.err
7169 } && test -s conftest.$ac_objext; then
ad6254c5
AK
7170 ac_header_compiler=yes
7171else
ec6a6fbe 7172 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7173sed 's/^/| /' conftest.$ac_ext >&5
7174
7a197a62 7175 ac_header_compiler=no
ad6254c5 7176fi
7a197a62
AK
7177
7178rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
7179{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7180$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
7181
7182# Is the header present?
ec6a6fbe
AK
7183{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7184$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 7185cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7186/* confdefs.h. */
7187_ACEOF
7188cat confdefs.h >>conftest.$ac_ext
7189cat >>conftest.$ac_ext <<_ACEOF
7190/* end confdefs.h. */
7191#include <$ac_header>
7192_ACEOF
7a197a62
AK
7193if { (ac_try="$ac_cpp conftest.$ac_ext"
7194case "(($ac_try" in
7195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7196 *) ac_try_echo=$ac_try;;
7197esac
ec6a6fbe
AK
7198eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7199$as_echo "$ac_try_echo") >&5
7a197a62 7200 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
7201 ac_status=$?
7202 grep -v '^ *+' conftest.er1 >conftest.err
7203 rm -f conftest.er1
7204 cat conftest.err >&5
ec6a6fbe 7205 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7206 (exit $ac_status); } >/dev/null && {
7207 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7208 test ! -s conftest.err
7209 }; then
ad6254c5
AK
7210 ac_header_preproc=yes
7211else
ec6a6fbe 7212 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7213sed 's/^/| /' conftest.$ac_ext >&5
7214
7215 ac_header_preproc=no
7216fi
7a197a62 7217
ad6254c5 7218rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
7219{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7220$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
7221
7222# So? What about this header?
8a2fc586
AK
7223case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7224 yes:no: )
ec6a6fbe
AK
7225 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7226$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7227 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7228$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 7229 ac_header_preproc=yes
ad6254c5 7230 ;;
8a2fc586 7231 no:yes:* )
ec6a6fbe
AK
7232 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7233$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7234 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7235$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7236 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7237$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7238 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7239$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7240 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7241$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7242 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7243$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 7244
ad6254c5
AK
7245 ;;
7246esac
ec6a6fbe
AK
7247{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7248$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 7249if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 7250 $as_echo_n "(cached) " >&6
ad6254c5 7251else
8a2fc586 7252 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 7253fi
ec6a6fbe
AK
7254ac_res=`eval 'as_val=${'$as_ac_Header'}
7255 $as_echo "$as_val"'`
7256 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7257$as_echo "$ac_res" >&6; }
ad6254c5 7258
795ca3e5 7259fi
ec6a6fbe
AK
7260as_val=`eval 'as_val=${'$as_ac_Header'}
7261 $as_echo "$as_val"'`
7262 if test "x$as_val" = x""yes; then
ad6254c5 7263 cat >>confdefs.h <<_ACEOF
ec6a6fbe 7264#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
7265_ACEOF
7266
7267fi
7268
7269done
795ca3e5 7270
ad6254c5
AK
7271
7272
7273for ac_func in fork vfork
7274do
ec6a6fbe
AK
7275as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7276{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7277$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 7278if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 7279 $as_echo_n "(cached) " >&6
795ca3e5 7280else
ad6254c5 7281 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7282/* confdefs.h. */
7283_ACEOF
7284cat confdefs.h >>conftest.$ac_ext
7285cat >>conftest.$ac_ext <<_ACEOF
7286/* end confdefs.h. */
8a2fc586
AK
7287/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7288 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7289#define $ac_func innocuous_$ac_func
7290
ad6254c5
AK
7291/* System header to define __stub macros and hopefully few prototypes,
7292 which can conflict with char $ac_func (); below.
7293 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7294 <limits.h> exists even on freestanding compilers. */
8a2fc586 7295
ad6254c5
AK
7296#ifdef __STDC__
7297# include <limits.h>
7298#else
7299# include <assert.h>
795ca3e5 7300#endif
8a2fc586
AK
7301
7302#undef $ac_func
7303
7a197a62
AK
7304/* Override any GCC internal prototype to avoid an error.
7305 Use char because int might match the return type of a GCC
7306 builtin and then its argument prototype would still apply. */
795ca3e5 7307#ifdef __cplusplus
ad6254c5 7308extern "C"
ad6254c5 7309#endif
ad6254c5
AK
7310char $ac_func ();
7311/* The GNU C library defines this for functions which it implements
7312 to always fail with ENOSYS. Some functions are actually named
7313 something starting with __ and the normal name is an alias. */
7a197a62 7314#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 7315choke me
795ca3e5
AK
7316#endif
7317
ad6254c5
AK
7318int
7319main ()
7320{
7a197a62 7321return $ac_func ();
ad6254c5
AK
7322 ;
7323 return 0;
7324}
7325_ACEOF
7326rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
7327if { (ac_try="$ac_link"
7328case "(($ac_try" in
7329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7330 *) ac_try_echo=$ac_try;;
7331esac
ec6a6fbe
AK
7332eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7333$as_echo "$ac_try_echo") >&5
7a197a62 7334 (eval "$ac_link") 2>conftest.er1
ad6254c5 7335 ac_status=$?
8a2fc586
AK
7336 grep -v '^ *+' conftest.er1 >conftest.err
7337 rm -f conftest.er1
7338 cat conftest.err >&5
ec6a6fbe 7339 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7340 (exit $ac_status); } && {
7341 test -z "$ac_c_werror_flag" ||
7342 test ! -s conftest.err
ec6a6fbe
AK
7343 } && test -s conftest$ac_exeext && {
7344 test "$cross_compiling" = yes ||
7345 $as_test_x conftest$ac_exeext
7346 }; then
ad6254c5 7347 eval "$as_ac_var=yes"
795ca3e5 7348else
ec6a6fbe 7349 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7350sed 's/^/| /' conftest.$ac_ext >&5
7351
7a197a62 7352 eval "$as_ac_var=no"
795ca3e5 7353fi
7a197a62 7354
ec6a6fbe 7355rm -rf conftest.dSYM
25fbec5b 7356rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 7357 conftest$ac_exeext conftest.$ac_ext
ad6254c5 7358fi
ec6a6fbe
AK
7359ac_res=`eval 'as_val=${'$as_ac_var'}
7360 $as_echo "$as_val"'`
7361 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7362$as_echo "$ac_res" >&6; }
7363as_val=`eval 'as_val=${'$as_ac_var'}
7364 $as_echo "$as_val"'`
7365 if test "x$as_val" = x""yes; then
ad6254c5 7366 cat >>confdefs.h <<_ACEOF
ec6a6fbe 7367#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
7368_ACEOF
7369
7370fi
7371done
7372
7373if test "x$ac_cv_func_fork" = xyes; then
ec6a6fbe
AK
7374 { $as_echo "$as_me:$LINENO: checking for working fork" >&5
7375$as_echo_n "checking for working fork... " >&6; }
ad6254c5 7376if test "${ac_cv_func_fork_works+set}" = set; then
ec6a6fbe 7377 $as_echo_n "(cached) " >&6
ad6254c5
AK
7378else
7379 if test "$cross_compiling" = yes; then
7380 ac_cv_func_fork_works=cross
7381else
7382 cat >conftest.$ac_ext <<_ACEOF
7a197a62
AK
7383/* confdefs.h. */
7384_ACEOF
7385cat confdefs.h >>conftest.$ac_ext
7386cat >>conftest.$ac_ext <<_ACEOF
7387/* end confdefs.h. */
7388$ac_includes_default
7389int
7390main ()
7391{
7392
7393 /* By Ruediger Kuhlmann. */
7394 return fork () < 0;
7395
7396 ;
7397 return 0;
7398}
ad6254c5
AK
7399_ACEOF
7400rm -f conftest$ac_exeext
7a197a62
AK
7401if { (ac_try="$ac_link"
7402case "(($ac_try" in
7403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7404 *) ac_try_echo=$ac_try;;
7405esac
ec6a6fbe
AK
7406eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7407$as_echo "$ac_try_echo") >&5
7a197a62 7408 (eval "$ac_link") 2>&5
ad6254c5 7409 ac_status=$?
ec6a6fbe 7410 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7411 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7412 { (case "(($ac_try" in
7413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7414 *) ac_try_echo=$ac_try;;
7415esac
ec6a6fbe
AK
7416eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7417$as_echo "$ac_try_echo") >&5
7a197a62 7418 (eval "$ac_try") 2>&5
ad6254c5 7419 ac_status=$?
ec6a6fbe 7420 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7421 (exit $ac_status); }; }; then
7422 ac_cv_func_fork_works=yes
7423else
ec6a6fbe
AK
7424 $as_echo "$as_me: program exited with status $ac_status" >&5
7425$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7426sed 's/^/| /' conftest.$ac_ext >&5
7427
7428( exit $ac_status )
7429ac_cv_func_fork_works=no
7430fi
ec6a6fbe 7431rm -rf conftest.dSYM
7a197a62 7432rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7433fi
7a197a62
AK
7434
7435
ad6254c5 7436fi
ec6a6fbe
AK
7437{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
7438$as_echo "$ac_cv_func_fork_works" >&6; }
ad6254c5
AK
7439
7440else
7441 ac_cv_func_fork_works=$ac_cv_func_fork
7442fi
7443if test "x$ac_cv_func_fork_works" = xcross; then
7444 case $host in
7445 *-*-amigaos* | *-*-msdosdjgpp*)
7446 # Override, as these systems have only a dummy fork() stub
7447 ac_cv_func_fork_works=no
7448 ;;
7449 *)
7450 ac_cv_func_fork_works=yes
7451 ;;
7452 esac
ec6a6fbe
AK
7453 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
7454$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
ad6254c5
AK
7455fi
7456ac_cv_func_vfork_works=$ac_cv_func_vfork
7457if test "x$ac_cv_func_vfork" = xyes; then
ec6a6fbe
AK
7458 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
7459$as_echo_n "checking for working vfork... " >&6; }
ad6254c5 7460if test "${ac_cv_func_vfork_works+set}" = set; then
ec6a6fbe 7461 $as_echo_n "(cached) " >&6
ad6254c5
AK
7462else
7463 if test "$cross_compiling" = yes; then
7464 ac_cv_func_vfork_works=cross
7465else
7466 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7467/* confdefs.h. */
7468_ACEOF
7469cat confdefs.h >>conftest.$ac_ext
7470cat >>conftest.$ac_ext <<_ACEOF
7471/* end confdefs.h. */
7472/* Thanks to Paul Eggert for this test. */
7a197a62 7473$ac_includes_default
ad6254c5 7474#include <sys/wait.h>
25fbec5b 7475#ifdef HAVE_VFORK_H
ad6254c5
AK
7476# include <vfork.h>
7477#endif
7478/* On some sparc systems, changes by the child to local and incoming
7479 argument registers are propagated back to the parent. The compiler
7480 is told about this with #include <vfork.h>, but some compilers
7481 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
7482 static variable whose address is put into a register that is
7483 clobbered by the vfork. */
7484static void
7485#ifdef __cplusplus
7486sparc_address_test (int arg)
7487# else
7488sparc_address_test (arg) int arg;
7489#endif
7490{
7491 static pid_t child;
7492 if (!child) {
7493 child = vfork ();
7494 if (child < 0) {
7495 perror ("vfork");
7496 _exit(2);
7497 }
7498 if (!child) {
7499 arg = getpid();
7500 write(-1, "", 0);
7501 _exit (arg);
7502 }
7503 }
7504}
7505
7506int
7507main ()
7508{
7509 pid_t parent = getpid ();
7510 pid_t child;
7511
7512 sparc_address_test (0);
7513
7514 child = vfork ();
7515
7516 if (child == 0) {
7517 /* Here is another test for sparc vfork register problems. This
7518 test uses lots of local variables, at least as many local
7519 variables as main has allocated so far including compiler
7520 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
7521 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
7522 reuse the register of parent for one of the local variables,
7523 since it will think that parent can't possibly be used any more
7524 in this routine. Assigning to the local variable will thus
7525 munge parent in the parent process. */
7526 pid_t
7527 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
7528 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
7529 /* Convince the compiler that p..p7 are live; otherwise, it might
7530 use the same hardware register for all 8 local variables. */
7531 if (p != p1 || p != p2 || p != p3 || p != p4
7532 || p != p5 || p != p6 || p != p7)
7533 _exit(1);
7534
7535 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
7536 from child file descriptors. If the child closes a descriptor
7537 before it execs or exits, this munges the parent's descriptor
7538 as well. Test for this by closing stdout in the child. */
7539 _exit(close(fileno(stdout)) != 0);
7540 } else {
7541 int status;
7542 struct stat st;
7543
7544 while (wait(&status) != child)
7545 ;
7a197a62 7546 return (
ad6254c5
AK
7547 /* Was there some problem with vforking? */
7548 child < 0
7549
7550 /* Did the child fail? (This shouldn't happen.) */
7551 || status
7552
7553 /* Did the vfork/compiler bug occur? */
7554 || parent != getpid()
7555
7556 /* Did the file descriptor bug occur? */
7557 || fstat(fileno(stdout), &st) != 0
7558 );
7559 }
7560}
7561_ACEOF
7562rm -f conftest$ac_exeext
7a197a62
AK
7563if { (ac_try="$ac_link"
7564case "(($ac_try" in
7565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7566 *) ac_try_echo=$ac_try;;
7567esac
ec6a6fbe
AK
7568eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7569$as_echo "$ac_try_echo") >&5
7a197a62 7570 (eval "$ac_link") 2>&5
ad6254c5 7571 ac_status=$?
ec6a6fbe 7572 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7573 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7574 { (case "(($ac_try" in
7575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7576 *) ac_try_echo=$ac_try;;
7577esac
ec6a6fbe
AK
7578eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7579$as_echo "$ac_try_echo") >&5
7a197a62 7580 (eval "$ac_try") 2>&5
ad6254c5 7581 ac_status=$?
ec6a6fbe 7582 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7583 (exit $ac_status); }; }; then
7584 ac_cv_func_vfork_works=yes
7585else
ec6a6fbe
AK
7586 $as_echo "$as_me: program exited with status $ac_status" >&5
7587$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7588sed 's/^/| /' conftest.$ac_ext >&5
7589
7590( exit $ac_status )
7591ac_cv_func_vfork_works=no
7592fi
ec6a6fbe 7593rm -rf conftest.dSYM
7a197a62 7594rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7595fi
7a197a62
AK
7596
7597
ad6254c5 7598fi
ec6a6fbe
AK
7599{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
7600$as_echo "$ac_cv_func_vfork_works" >&6; }
ad6254c5
AK
7601
7602fi;
7603if test "x$ac_cv_func_fork_works" = xcross; then
8a2fc586 7604 ac_cv_func_vfork_works=$ac_cv_func_vfork
ec6a6fbe
AK
7605 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
7606$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
ad6254c5
AK
7607fi
7608
7609if test "x$ac_cv_func_vfork_works" = xyes; then
7610
7611cat >>confdefs.h <<\_ACEOF
7612#define HAVE_WORKING_VFORK 1
7613_ACEOF
7614
7615else
7616
7617cat >>confdefs.h <<\_ACEOF
7618#define vfork fork
7619_ACEOF
7620
7621fi
7622if test "x$ac_cv_func_fork_works" = xyes; then
7623
7624cat >>confdefs.h <<\_ACEOF
7625#define HAVE_WORKING_FORK 1
7626_ACEOF
7627
7628fi
7629
ec6a6fbe
AK
7630{ $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
7631$as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
ad6254c5 7632if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
ec6a6fbe 7633 $as_echo_n "(cached) " >&6
ad6254c5
AK
7634else
7635 rm -f conftest.sym conftest.file
7636echo >conftest.file
7637if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
7638 if test "$cross_compiling" = yes; then
7639 ac_cv_func_lstat_dereferences_slashed_symlink=no
7640else
7641 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7642/* confdefs.h. */
7643_ACEOF
7644cat confdefs.h >>conftest.$ac_ext
7645cat >>conftest.$ac_ext <<_ACEOF
7646/* end confdefs.h. */
7647$ac_includes_default
7648int
7649main ()
7650{
7651struct stat sbuf;
7652 /* Linux will dereference the symlink and fail.
8a2fc586
AK
7653 That is better in the sense that it means we will not
7654 have to compile and use the lstat wrapper. */
7a197a62 7655 return lstat ("conftest.sym/", &sbuf) == 0;
ad6254c5
AK
7656 ;
7657 return 0;
7658}
7659_ACEOF
7660rm -f conftest$ac_exeext
7a197a62
AK
7661if { (ac_try="$ac_link"
7662case "(($ac_try" in
7663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7664 *) ac_try_echo=$ac_try;;
7665esac
ec6a6fbe
AK
7666eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7667$as_echo "$ac_try_echo") >&5
7a197a62 7668 (eval "$ac_link") 2>&5
ad6254c5 7669 ac_status=$?
ec6a6fbe 7670 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7671 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7672 { (case "(($ac_try" in
7673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7674 *) ac_try_echo=$ac_try;;
7675esac
ec6a6fbe
AK
7676eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7677$as_echo "$ac_try_echo") >&5
7a197a62 7678 (eval "$ac_try") 2>&5
ad6254c5 7679 ac_status=$?
ec6a6fbe 7680 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7681 (exit $ac_status); }; }; then
7682 ac_cv_func_lstat_dereferences_slashed_symlink=yes
7683else
ec6a6fbe
AK
7684 $as_echo "$as_me: program exited with status $ac_status" >&5
7685$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7686sed 's/^/| /' conftest.$ac_ext >&5
7687
7688( exit $ac_status )
7689ac_cv_func_lstat_dereferences_slashed_symlink=no
7690fi
ec6a6fbe 7691rm -rf conftest.dSYM
7a197a62 7692rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7693fi
7a197a62
AK
7694
7695
ad6254c5
AK
7696else
7697 # If the `ln -s' command failed, then we probably don't even
7698 # have an lstat function.
7699 ac_cv_func_lstat_dereferences_slashed_symlink=no
7700fi
7701rm -f conftest.sym conftest.file
7702
7703fi
ec6a6fbe
AK
7704{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
7705$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
ad6254c5
AK
7706
7707test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
7708
7709cat >>confdefs.h <<_ACEOF
7710#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
7711_ACEOF
7712
7713
7714if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
7a197a62 7715 case " $LIBOBJS " in
8a2fc586 7716 *" lstat.$ac_objext "* ) ;;
7a197a62
AK
7717 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
7718 ;;
8a2fc586
AK
7719esac
7720
ad6254c5
AK
7721fi
7722
ec6a6fbe
AK
7723{ $as_echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
7724$as_echo_n "checking whether lstat accepts an empty string... " >&6; }
ad6254c5 7725if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
ec6a6fbe 7726 $as_echo_n "(cached) " >&6
ad6254c5
AK
7727else
7728 if test "$cross_compiling" = yes; then
7729 ac_cv_func_lstat_empty_string_bug=yes
7730else
7731 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7732/* confdefs.h. */
7733_ACEOF
7734cat confdefs.h >>conftest.$ac_ext
7735cat >>conftest.$ac_ext <<_ACEOF
7736/* end confdefs.h. */
7737$ac_includes_default
7738int
7739main ()
7740{
7741struct stat sbuf;
7a197a62 7742 return lstat ("", &sbuf) == 0;
ad6254c5
AK
7743 ;
7744 return 0;
7745}
7746_ACEOF
7747rm -f conftest$ac_exeext
7a197a62
AK
7748if { (ac_try="$ac_link"
7749case "(($ac_try" in
7750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7751 *) ac_try_echo=$ac_try;;
7752esac
ec6a6fbe
AK
7753eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7754$as_echo "$ac_try_echo") >&5
7a197a62 7755 (eval "$ac_link") 2>&5
ad6254c5 7756 ac_status=$?
ec6a6fbe 7757 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7758 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7759 { (case "(($ac_try" in
7760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7761 *) ac_try_echo=$ac_try;;
7762esac
ec6a6fbe
AK
7763eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7764$as_echo "$ac_try_echo") >&5
7a197a62 7765 (eval "$ac_try") 2>&5
ad6254c5 7766 ac_status=$?
ec6a6fbe 7767 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7768 (exit $ac_status); }; }; then
7a197a62 7769 ac_cv_func_lstat_empty_string_bug=no
ad6254c5 7770else
ec6a6fbe
AK
7771 $as_echo "$as_me: program exited with status $ac_status" >&5
7772$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7773sed 's/^/| /' conftest.$ac_ext >&5
7774
7775( exit $ac_status )
7a197a62 7776ac_cv_func_lstat_empty_string_bug=yes
ad6254c5 7777fi
ec6a6fbe 7778rm -rf conftest.dSYM
7a197a62 7779rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7780fi
7a197a62
AK
7781
7782
ad6254c5 7783fi
ec6a6fbe
AK
7784{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
7785$as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
ad6254c5 7786if test $ac_cv_func_lstat_empty_string_bug = yes; then
7a197a62 7787 case " $LIBOBJS " in
8a2fc586 7788 *" lstat.$ac_objext "* ) ;;
7a197a62
AK
7789 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
7790 ;;
8a2fc586
AK
7791esac
7792
ad6254c5
AK
7793
7794cat >>confdefs.h <<_ACEOF
7795#define HAVE_LSTAT_EMPTY_STRING_BUG 1
7796_ACEOF
7797
7798fi
7799
7800
7801for ac_header in stdlib.h
7802do
ec6a6fbe 7803as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 7804if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
7805 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7806$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 7807if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 7808 $as_echo_n "(cached) " >&6
ad6254c5 7809fi
ec6a6fbe
AK
7810ac_res=`eval 'as_val=${'$as_ac_Header'}
7811 $as_echo "$as_val"'`
7812 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7813$as_echo "$ac_res" >&6; }
ad6254c5
AK
7814else
7815 # Is the header compilable?
ec6a6fbe
AK
7816{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7817$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 7818cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7819/* confdefs.h. */
7820_ACEOF
7821cat confdefs.h >>conftest.$ac_ext
7822cat >>conftest.$ac_ext <<_ACEOF
7823/* end confdefs.h. */
7824$ac_includes_default
7825#include <$ac_header>
7826_ACEOF
7827rm -f conftest.$ac_objext
7a197a62
AK
7828if { (ac_try="$ac_compile"
7829case "(($ac_try" in
7830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7831 *) ac_try_echo=$ac_try;;
7832esac
ec6a6fbe
AK
7833eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7834$as_echo "$ac_try_echo") >&5
7a197a62 7835 (eval "$ac_compile") 2>conftest.er1
ad6254c5 7836 ac_status=$?
8a2fc586
AK
7837 grep -v '^ *+' conftest.er1 >conftest.err
7838 rm -f conftest.er1
7839 cat conftest.err >&5
ec6a6fbe 7840 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7841 (exit $ac_status); } && {
7842 test -z "$ac_c_werror_flag" ||
7843 test ! -s conftest.err
7844 } && test -s conftest.$ac_objext; then
ad6254c5
AK
7845 ac_header_compiler=yes
7846else
ec6a6fbe 7847 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7848sed 's/^/| /' conftest.$ac_ext >&5
7849
7a197a62 7850 ac_header_compiler=no
ad6254c5 7851fi
7a197a62
AK
7852
7853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
7854{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7855$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
7856
7857# Is the header present?
ec6a6fbe
AK
7858{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7859$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 7860cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7861/* confdefs.h. */
7862_ACEOF
7863cat confdefs.h >>conftest.$ac_ext
7864cat >>conftest.$ac_ext <<_ACEOF
7865/* end confdefs.h. */
7866#include <$ac_header>
7867_ACEOF
7a197a62
AK
7868if { (ac_try="$ac_cpp conftest.$ac_ext"
7869case "(($ac_try" in
7870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7871 *) ac_try_echo=$ac_try;;
7872esac
ec6a6fbe
AK
7873eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7874$as_echo "$ac_try_echo") >&5
7a197a62 7875 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
7876 ac_status=$?
7877 grep -v '^ *+' conftest.er1 >conftest.err
7878 rm -f conftest.er1
7879 cat conftest.err >&5
ec6a6fbe 7880 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7881 (exit $ac_status); } >/dev/null && {
7882 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7883 test ! -s conftest.err
7884 }; then
ad6254c5
AK
7885 ac_header_preproc=yes
7886else
ec6a6fbe 7887 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7888sed 's/^/| /' conftest.$ac_ext >&5
7889
7890 ac_header_preproc=no
7891fi
7a197a62 7892
ad6254c5 7893rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
7894{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7895$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
7896
7897# So? What about this header?
8a2fc586
AK
7898case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7899 yes:no: )
ec6a6fbe
AK
7900 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7901$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7902 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7903$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 7904 ac_header_preproc=yes
ad6254c5 7905 ;;
8a2fc586 7906 no:yes:* )
ec6a6fbe
AK
7907 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7908$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7909 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7910$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7911 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7912$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7913 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7914$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7915 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7916$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7917 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7918$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 7919
ad6254c5
AK
7920 ;;
7921esac
ec6a6fbe
AK
7922{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7923$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 7924if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 7925 $as_echo_n "(cached) " >&6
ad6254c5 7926else
8a2fc586 7927 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 7928fi
ec6a6fbe
AK
7929ac_res=`eval 'as_val=${'$as_ac_Header'}
7930 $as_echo "$as_val"'`
7931 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7932$as_echo "$ac_res" >&6; }
ad6254c5
AK
7933
7934fi
ec6a6fbe
AK
7935as_val=`eval 'as_val=${'$as_ac_Header'}
7936 $as_echo "$as_val"'`
7937 if test "x$as_val" = x""yes; then
ad6254c5 7938 cat >>confdefs.h <<_ACEOF
ec6a6fbe 7939#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
7940_ACEOF
7941
7942fi
7943
7944done
7945
ec6a6fbe
AK
7946{ $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
7947$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
ad6254c5 7948if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
ec6a6fbe 7949 $as_echo_n "(cached) " >&6
ad6254c5
AK
7950else
7951 if test "$cross_compiling" = yes; then
7952 ac_cv_func_malloc_0_nonnull=no
7953else
7954 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7955/* confdefs.h. */
7956_ACEOF
7957cat confdefs.h >>conftest.$ac_ext
7958cat >>conftest.$ac_ext <<_ACEOF
7959/* end confdefs.h. */
25fbec5b 7960#if defined STDC_HEADERS || defined HAVE_STDLIB_H
ad6254c5
AK
7961# include <stdlib.h>
7962#else
7963char *malloc ();
7964#endif
7965
7966int
7967main ()
7968{
7a197a62 7969return ! malloc (0);
ad6254c5
AK
7970 ;
7971 return 0;
7972}
7973_ACEOF
7974rm -f conftest$ac_exeext
7a197a62
AK
7975if { (ac_try="$ac_link"
7976case "(($ac_try" in
7977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7978 *) ac_try_echo=$ac_try;;
7979esac
ec6a6fbe
AK
7980eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7981$as_echo "$ac_try_echo") >&5
7a197a62 7982 (eval "$ac_link") 2>&5
ad6254c5 7983 ac_status=$?
ec6a6fbe 7984 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7985 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7986 { (case "(($ac_try" in
7987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7988 *) ac_try_echo=$ac_try;;
7989esac
ec6a6fbe
AK
7990eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7991$as_echo "$ac_try_echo") >&5
7a197a62 7992 (eval "$ac_try") 2>&5
ad6254c5 7993 ac_status=$?
ec6a6fbe 7994 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7995 (exit $ac_status); }; }; then
7996 ac_cv_func_malloc_0_nonnull=yes
7997else
ec6a6fbe
AK
7998 $as_echo "$as_me: program exited with status $ac_status" >&5
7999$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8000sed 's/^/| /' conftest.$ac_ext >&5
8001
8002( exit $ac_status )
8003ac_cv_func_malloc_0_nonnull=no
8004fi
ec6a6fbe 8005rm -rf conftest.dSYM
7a197a62 8006rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 8007fi
7a197a62
AK
8008
8009
ad6254c5 8010fi
ec6a6fbe
AK
8011{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
8012$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
ad6254c5
AK
8013if test $ac_cv_func_malloc_0_nonnull = yes; then
8014
8015cat >>confdefs.h <<\_ACEOF
8016#define HAVE_MALLOC 1
8017_ACEOF
8018
8019else
8020 cat >>confdefs.h <<\_ACEOF
8021#define HAVE_MALLOC 0
8022_ACEOF
8023
7a197a62 8024 case " $LIBOBJS " in
8a2fc586 8025 *" malloc.$ac_objext "* ) ;;
7a197a62
AK
8026 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
8027 ;;
8a2fc586
AK
8028esac
8029
ad6254c5
AK
8030
8031cat >>confdefs.h <<\_ACEOF
8032#define malloc rpl_malloc
8033_ACEOF
8034
8035fi
8036
8037
8038
ec6a6fbe
AK
8039{ $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
8040$as_echo_n "checking for working memcmp... " >&6; }
ad6254c5 8041if test "${ac_cv_func_memcmp_working+set}" = set; then
ec6a6fbe 8042 $as_echo_n "(cached) " >&6
ad6254c5
AK
8043else
8044 if test "$cross_compiling" = yes; then
8045 ac_cv_func_memcmp_working=no
8046else
8047 cat >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. */
8a2fc586 8053$ac_includes_default
ad6254c5
AK
8054int
8055main ()
8056{
8057
8058 /* Some versions of memcmp are not 8-bit clean. */
7a197a62 8059 char c0 = '\100', c1 = '\200', c2 = '\201';
ad6254c5 8060 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
7a197a62 8061 return 1;
ad6254c5
AK
8062
8063 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
8064 or more and with at least one buffer not starting on a 4-byte boundary.
8065 William Lewis provided this test program. */
8066 {
8067 char foo[21];
8068 char bar[21];
8069 int i;
8070 for (i = 0; i < 4; i++)
8071 {
8a2fc586
AK
8072 char *a = foo + i;
8073 char *b = bar + i;
8074 strcpy (a, "--------01111111");
8075 strcpy (b, "--------10000000");
8076 if (memcmp (a, b, 16) >= 0)
7a197a62 8077 return 1;
ad6254c5 8078 }
7a197a62 8079 return 0;
ad6254c5
AK
8080 }
8081
8082 ;
8083 return 0;
8084}
8085_ACEOF
8086rm -f conftest$ac_exeext
7a197a62
AK
8087if { (ac_try="$ac_link"
8088case "(($ac_try" in
8089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8090 *) ac_try_echo=$ac_try;;
8091esac
ec6a6fbe
AK
8092eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8093$as_echo "$ac_try_echo") >&5
7a197a62 8094 (eval "$ac_link") 2>&5
ad6254c5 8095 ac_status=$?
ec6a6fbe 8096 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 8097 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
8098 { (case "(($ac_try" in
8099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8100 *) ac_try_echo=$ac_try;;
8101esac
ec6a6fbe
AK
8102eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8103$as_echo "$ac_try_echo") >&5
7a197a62 8104 (eval "$ac_try") 2>&5
ad6254c5 8105 ac_status=$?
ec6a6fbe 8106 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
8107 (exit $ac_status); }; }; then
8108 ac_cv_func_memcmp_working=yes
8109else
ec6a6fbe
AK
8110 $as_echo "$as_me: program exited with status $ac_status" >&5
8111$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8112sed 's/^/| /' conftest.$ac_ext >&5
8113
8114( exit $ac_status )
8115ac_cv_func_memcmp_working=no
8116fi
ec6a6fbe 8117rm -rf conftest.dSYM
7a197a62 8118rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 8119fi
7a197a62
AK
8120
8121
ad6254c5 8122fi
ec6a6fbe
AK
8123{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
8124$as_echo "$ac_cv_func_memcmp_working" >&6; }
7a197a62 8125test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
8a2fc586 8126 *" memcmp.$ac_objext "* ) ;;
7a197a62
AK
8127 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
8128 ;;
8a2fc586
AK
8129esac
8130
ad6254c5
AK
8131
8132
8133
8134for ac_header in stdlib.h unistd.h
8135do
ec6a6fbe 8136as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 8137if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
8138 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8139$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 8140if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 8141 $as_echo_n "(cached) " >&6
ad6254c5 8142fi
ec6a6fbe
AK
8143ac_res=`eval 'as_val=${'$as_ac_Header'}
8144 $as_echo "$as_val"'`
8145 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8146$as_echo "$ac_res" >&6; }
ad6254c5
AK
8147else
8148 # Is the header compilable?
ec6a6fbe
AK
8149{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8150$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 8151cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8152/* confdefs.h. */
8153_ACEOF
8154cat confdefs.h >>conftest.$ac_ext
8155cat >>conftest.$ac_ext <<_ACEOF
8156/* end confdefs.h. */
8157$ac_includes_default
8158#include <$ac_header>
8159_ACEOF
8160rm -f conftest.$ac_objext
7a197a62
AK
8161if { (ac_try="$ac_compile"
8162case "(($ac_try" in
8163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8164 *) ac_try_echo=$ac_try;;
8165esac
ec6a6fbe
AK
8166eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8167$as_echo "$ac_try_echo") >&5
7a197a62 8168 (eval "$ac_compile") 2>conftest.er1
ad6254c5 8169 ac_status=$?
8a2fc586
AK
8170 grep -v '^ *+' conftest.er1 >conftest.err
8171 rm -f conftest.er1
8172 cat conftest.err >&5
ec6a6fbe 8173 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8174 (exit $ac_status); } && {
8175 test -z "$ac_c_werror_flag" ||
8176 test ! -s conftest.err
8177 } && test -s conftest.$ac_objext; then
ad6254c5
AK
8178 ac_header_compiler=yes
8179else
ec6a6fbe 8180 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8181sed 's/^/| /' conftest.$ac_ext >&5
8182
7a197a62 8183 ac_header_compiler=no
ad6254c5 8184fi
7a197a62
AK
8185
8186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
8187{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8188$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
8189
8190# Is the header present?
ec6a6fbe
AK
8191{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8192$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 8193cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8194/* confdefs.h. */
8195_ACEOF
8196cat confdefs.h >>conftest.$ac_ext
8197cat >>conftest.$ac_ext <<_ACEOF
8198/* end confdefs.h. */
8199#include <$ac_header>
8200_ACEOF
7a197a62
AK
8201if { (ac_try="$ac_cpp conftest.$ac_ext"
8202case "(($ac_try" in
8203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8204 *) ac_try_echo=$ac_try;;
8205esac
ec6a6fbe
AK
8206eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8207$as_echo "$ac_try_echo") >&5
7a197a62 8208 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
8209 ac_status=$?
8210 grep -v '^ *+' conftest.er1 >conftest.err
8211 rm -f conftest.er1
8212 cat conftest.err >&5
ec6a6fbe 8213 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8214 (exit $ac_status); } >/dev/null && {
8215 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8216 test ! -s conftest.err
8217 }; then
ad6254c5
AK
8218 ac_header_preproc=yes
8219else
ec6a6fbe 8220 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8221sed 's/^/| /' conftest.$ac_ext >&5
8222
8223 ac_header_preproc=no
8224fi
7a197a62 8225
ad6254c5 8226rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
8227{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8228$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
8229
8230# So? What about this header?
8a2fc586
AK
8231case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8232 yes:no: )
ec6a6fbe
AK
8233 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8234$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8235 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8236$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 8237 ac_header_preproc=yes
ad6254c5 8238 ;;
8a2fc586 8239 no:yes:* )
ec6a6fbe
AK
8240 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8241$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8242 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8243$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8244 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8245$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8246 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8247$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8248 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8249$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8250 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8251$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 8252
ad6254c5
AK
8253 ;;
8254esac
ec6a6fbe
AK
8255{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8256$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 8257if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 8258 $as_echo_n "(cached) " >&6
ad6254c5 8259else
8a2fc586 8260 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 8261fi
ec6a6fbe
AK
8262ac_res=`eval 'as_val=${'$as_ac_Header'}
8263 $as_echo "$as_val"'`
8264 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8265$as_echo "$ac_res" >&6; }
ad6254c5
AK
8266
8267fi
ec6a6fbe
AK
8268as_val=`eval 'as_val=${'$as_ac_Header'}
8269 $as_echo "$as_val"'`
8270 if test "x$as_val" = x""yes; then
ad6254c5 8271 cat >>confdefs.h <<_ACEOF
ec6a6fbe 8272#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
8273_ACEOF
8274
8275fi
8276
8277done
8278
8279
8280for ac_func in getpagesize
8281do
ec6a6fbe
AK
8282as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8283{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8284$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 8285if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 8286 $as_echo_n "(cached) " >&6
ad6254c5
AK
8287else
8288 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8289/* confdefs.h. */
8290_ACEOF
8291cat confdefs.h >>conftest.$ac_ext
8292cat >>conftest.$ac_ext <<_ACEOF
8293/* end confdefs.h. */
8a2fc586
AK
8294/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8295 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8296#define $ac_func innocuous_$ac_func
8297
ad6254c5
AK
8298/* System header to define __stub macros and hopefully few prototypes,
8299 which can conflict with char $ac_func (); below.
8300 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8301 <limits.h> exists even on freestanding compilers. */
8a2fc586 8302
ad6254c5
AK
8303#ifdef __STDC__
8304# include <limits.h>
8305#else
8306# include <assert.h>
8307#endif
8a2fc586
AK
8308
8309#undef $ac_func
8310
7a197a62
AK
8311/* Override any GCC internal prototype to avoid an error.
8312 Use char because int might match the return type of a GCC
8313 builtin and then its argument prototype would still apply. */
ad6254c5
AK
8314#ifdef __cplusplus
8315extern "C"
ad6254c5 8316#endif
ad6254c5
AK
8317char $ac_func ();
8318/* The GNU C library defines this for functions which it implements
8319 to always fail with ENOSYS. Some functions are actually named
8320 something starting with __ and the normal name is an alias. */
7a197a62 8321#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 8322choke me
ad6254c5
AK
8323#endif
8324
8325int
8326main ()
8327{
7a197a62 8328return $ac_func ();
ad6254c5
AK
8329 ;
8330 return 0;
8331}
8332_ACEOF
8333rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
8334if { (ac_try="$ac_link"
8335case "(($ac_try" in
8336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8337 *) ac_try_echo=$ac_try;;
8338esac
ec6a6fbe
AK
8339eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8340$as_echo "$ac_try_echo") >&5
7a197a62 8341 (eval "$ac_link") 2>conftest.er1
ad6254c5 8342 ac_status=$?
8a2fc586
AK
8343 grep -v '^ *+' conftest.er1 >conftest.err
8344 rm -f conftest.er1
8345 cat conftest.err >&5
ec6a6fbe 8346 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8347 (exit $ac_status); } && {
8348 test -z "$ac_c_werror_flag" ||
8349 test ! -s conftest.err
ec6a6fbe
AK
8350 } && test -s conftest$ac_exeext && {
8351 test "$cross_compiling" = yes ||
8352 $as_test_x conftest$ac_exeext
8353 }; then
ad6254c5
AK
8354 eval "$as_ac_var=yes"
8355else
ec6a6fbe 8356 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8357sed 's/^/| /' conftest.$ac_ext >&5
8358
7a197a62 8359 eval "$as_ac_var=no"
ad6254c5 8360fi
7a197a62 8361
ec6a6fbe 8362rm -rf conftest.dSYM
25fbec5b 8363rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 8364 conftest$ac_exeext conftest.$ac_ext
ad6254c5 8365fi
ec6a6fbe
AK
8366ac_res=`eval 'as_val=${'$as_ac_var'}
8367 $as_echo "$as_val"'`
8368 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8369$as_echo "$ac_res" >&6; }
8370as_val=`eval 'as_val=${'$as_ac_var'}
8371 $as_echo "$as_val"'`
8372 if test "x$as_val" = x""yes; then
ad6254c5 8373 cat >>confdefs.h <<_ACEOF
ec6a6fbe 8374#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
8375_ACEOF
8376
8377fi
8378done
8379
ec6a6fbe
AK
8380{ $as_echo "$as_me:$LINENO: checking for working mmap" >&5
8381$as_echo_n "checking for working mmap... " >&6; }
ad6254c5 8382if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
ec6a6fbe 8383 $as_echo_n "(cached) " >&6
ad6254c5
AK
8384else
8385 if test "$cross_compiling" = yes; then
8386 ac_cv_func_mmap_fixed_mapped=no
8387else
8388 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8389/* confdefs.h. */
8390_ACEOF
8391cat confdefs.h >>conftest.$ac_ext
8392cat >>conftest.$ac_ext <<_ACEOF
8393/* end confdefs.h. */
8394$ac_includes_default
8395/* malloc might have been renamed as rpl_malloc. */
8396#undef malloc
8397
8398/* Thanks to Mike Haertel and Jim Avera for this test.
8399 Here is a matrix of mmap possibilities:
8400 mmap private not fixed
8401 mmap private fixed at somewhere currently unmapped
8402 mmap private fixed at somewhere already mapped
8403 mmap shared not fixed
8404 mmap shared fixed at somewhere currently unmapped
8405 mmap shared fixed at somewhere already mapped
8406 For private mappings, we should verify that changes cannot be read()
8407 back from the file, nor mmap's back from the file at a different
8408 address. (There have been systems where private was not correctly
8409 implemented like the infamous i386 svr4.0, and systems where the
8410 VM page cache was not coherent with the file system buffer cache
8411 like early versions of FreeBSD and possibly contemporary NetBSD.)
8412 For shared mappings, we should conversely verify that changes get
8413 propagated back to all the places they're supposed to be.
8414
8415 Grep wants private fixed already mapped.
8416 The main things grep needs to know about mmap are:
8417 * does it exist and is it safe to write into the mmap'd area
8418 * how to use it (BSD variants) */
8419
8420#include <fcntl.h>
8421#include <sys/mman.h>
8422
25fbec5b 8423#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
ad6254c5
AK
8424char *malloc ();
8425#endif
8426
8427/* This mess was copied from the GNU getpagesize.h. */
25fbec5b 8428#ifndef HAVE_GETPAGESIZE
ad6254c5 8429/* Assume that all systems that can run configure have sys/param.h. */
25fbec5b 8430# ifndef HAVE_SYS_PARAM_H
ad6254c5
AK
8431# define HAVE_SYS_PARAM_H 1
8432# endif
8433
8434# ifdef _SC_PAGESIZE
8435# define getpagesize() sysconf(_SC_PAGESIZE)
8436# else /* no _SC_PAGESIZE */
25fbec5b 8437# ifdef HAVE_SYS_PARAM_H
ad6254c5
AK
8438# include <sys/param.h>
8439# ifdef EXEC_PAGESIZE
8440# define getpagesize() EXEC_PAGESIZE
8441# else /* no EXEC_PAGESIZE */
8442# ifdef NBPG
8443# define getpagesize() NBPG * CLSIZE
8444# ifndef CLSIZE
8445# define CLSIZE 1
8446# endif /* no CLSIZE */
8447# else /* no NBPG */
8448# ifdef NBPC
8449# define getpagesize() NBPC
8450# else /* no NBPC */
8451# ifdef PAGESIZE
8452# define getpagesize() PAGESIZE
8453# endif /* PAGESIZE */
8454# endif /* no NBPC */
8455# endif /* no NBPG */
8456# endif /* no EXEC_PAGESIZE */
8457# else /* no HAVE_SYS_PARAM_H */
8458# define getpagesize() 8192 /* punt totally */
8459# endif /* no HAVE_SYS_PARAM_H */
8460# endif /* no _SC_PAGESIZE */
8461
8462#endif /* no HAVE_GETPAGESIZE */
8463
8464int
8465main ()
8466{
8467 char *data, *data2, *data3;
8468 int i, pagesize;
8469 int fd;
8470
8471 pagesize = getpagesize ();
8472
8473 /* First, make a file with some known garbage in it. */
8474 data = (char *) malloc (pagesize);
8475 if (!data)
7a197a62 8476 return 1;
ad6254c5
AK
8477 for (i = 0; i < pagesize; ++i)
8478 *(data + i) = rand ();
8479 umask (0);
8480 fd = creat ("conftest.mmap", 0600);
8481 if (fd < 0)
7a197a62 8482 return 1;
ad6254c5 8483 if (write (fd, data, pagesize) != pagesize)
7a197a62 8484 return 1;
ad6254c5
AK
8485 close (fd);
8486
8487 /* Next, try to mmap the file at a fixed address which already has
8488 something else allocated at it. If we can, also make sure that
8489 we see the same garbage. */
8490 fd = open ("conftest.mmap", O_RDWR);
8491 if (fd < 0)
7a197a62 8492 return 1;
ad6254c5
AK
8493 data2 = (char *) malloc (2 * pagesize);
8494 if (!data2)
7a197a62
AK
8495 return 1;
8496 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
ad6254c5 8497 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8a2fc586 8498 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7a197a62 8499 return 1;
ad6254c5
AK
8500 for (i = 0; i < pagesize; ++i)
8501 if (*(data + i) != *(data2 + i))
7a197a62 8502 return 1;
ad6254c5
AK
8503
8504 /* Finally, make sure that changes to the mapped area do not
8505 percolate back to the file as seen by read(). (This is a bug on
8506 some variants of i386 svr4.0.) */
8507 for (i = 0; i < pagesize; ++i)
8508 *(data2 + i) = *(data2 + i) + 1;
8509 data3 = (char *) malloc (pagesize);
8510 if (!data3)
7a197a62 8511 return 1;
ad6254c5 8512 if (read (fd, data3, pagesize) != pagesize)
7a197a62 8513 return 1;
ad6254c5
AK
8514 for (i = 0; i < pagesize; ++i)
8515 if (*(data + i) != *(data3 + i))
7a197a62 8516 return 1;
ad6254c5 8517 close (fd);
7a197a62 8518 return 0;
ad6254c5
AK
8519}
8520_ACEOF
8521rm -f conftest$ac_exeext
7a197a62
AK
8522if { (ac_try="$ac_link"
8523case "(($ac_try" in
8524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8525 *) ac_try_echo=$ac_try;;
8526esac
ec6a6fbe
AK
8527eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8528$as_echo "$ac_try_echo") >&5
7a197a62 8529 (eval "$ac_link") 2>&5
ad6254c5 8530 ac_status=$?
ec6a6fbe 8531 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 8532 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
8533 { (case "(($ac_try" in
8534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8535 *) ac_try_echo=$ac_try;;
8536esac
ec6a6fbe
AK
8537eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8538$as_echo "$ac_try_echo") >&5
7a197a62 8539 (eval "$ac_try") 2>&5
ad6254c5 8540 ac_status=$?
ec6a6fbe 8541 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
8542 (exit $ac_status); }; }; then
8543 ac_cv_func_mmap_fixed_mapped=yes
8544else
ec6a6fbe
AK
8545 $as_echo "$as_me: program exited with status $ac_status" >&5
8546$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8547sed 's/^/| /' conftest.$ac_ext >&5
8548
8549( exit $ac_status )
8550ac_cv_func_mmap_fixed_mapped=no
8551fi
ec6a6fbe 8552rm -rf conftest.dSYM
7a197a62 8553rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 8554fi
7a197a62
AK
8555
8556
ad6254c5 8557fi
ec6a6fbe
AK
8558{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8559$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
ad6254c5
AK
8560if test $ac_cv_func_mmap_fixed_mapped = yes; then
8561
8562cat >>confdefs.h <<\_ACEOF
8563#define HAVE_MMAP 1
8564_ACEOF
8565
8566fi
8567rm -f conftest.mmap
8568
ec6a6fbe
AK
8569{ $as_echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
8570$as_echo_n "checking whether stat accepts an empty string... " >&6; }
ad6254c5 8571if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
ec6a6fbe 8572 $as_echo_n "(cached) " >&6
ad6254c5
AK
8573else
8574 if test "$cross_compiling" = yes; then
8575 ac_cv_func_stat_empty_string_bug=yes
8576else
8577 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8578/* confdefs.h. */
8579_ACEOF
8580cat confdefs.h >>conftest.$ac_ext
8581cat >>conftest.$ac_ext <<_ACEOF
8582/* end confdefs.h. */
8583$ac_includes_default
8584int
8585main ()
8586{
8587struct stat sbuf;
7a197a62 8588 return stat ("", &sbuf) == 0;
ad6254c5
AK
8589 ;
8590 return 0;
8591}
8592_ACEOF
8593rm -f conftest$ac_exeext
7a197a62
AK
8594if { (ac_try="$ac_link"
8595case "(($ac_try" in
8596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8597 *) ac_try_echo=$ac_try;;
8598esac
ec6a6fbe
AK
8599eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8600$as_echo "$ac_try_echo") >&5
7a197a62 8601 (eval "$ac_link") 2>&5
ad6254c5 8602 ac_status=$?
ec6a6fbe 8603 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 8604 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
8605 { (case "(($ac_try" in
8606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8607 *) ac_try_echo=$ac_try;;
8608esac
ec6a6fbe
AK
8609eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8610$as_echo "$ac_try_echo") >&5
7a197a62 8611 (eval "$ac_try") 2>&5
ad6254c5 8612 ac_status=$?
ec6a6fbe 8613 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 8614 (exit $ac_status); }; }; then
7a197a62 8615 ac_cv_func_stat_empty_string_bug=no
ad6254c5 8616else
ec6a6fbe
AK
8617 $as_echo "$as_me: program exited with status $ac_status" >&5
8618$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8619sed 's/^/| /' conftest.$ac_ext >&5
8620
8621( exit $ac_status )
7a197a62 8622ac_cv_func_stat_empty_string_bug=yes
ad6254c5 8623fi
ec6a6fbe 8624rm -rf conftest.dSYM
7a197a62 8625rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 8626fi
7a197a62
AK
8627
8628
ad6254c5 8629fi
ec6a6fbe
AK
8630{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
8631$as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
ad6254c5 8632if test $ac_cv_func_stat_empty_string_bug = yes; then
7a197a62 8633 case " $LIBOBJS " in
8a2fc586 8634 *" stat.$ac_objext "* ) ;;
7a197a62
AK
8635 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
8636 ;;
8a2fc586
AK
8637esac
8638
ad6254c5
AK
8639
8640cat >>confdefs.h <<_ACEOF
8641#define HAVE_STAT_EMPTY_STRING_BUG 1
8642_ACEOF
8643
8644fi
8645
ec6a6fbe
AK
8646{ $as_echo "$as_me:$LINENO: checking for working strtod" >&5
8647$as_echo_n "checking for working strtod... " >&6; }
ad6254c5 8648if test "${ac_cv_func_strtod+set}" = set; then
ec6a6fbe 8649 $as_echo_n "(cached) " >&6
ad6254c5
AK
8650else
8651 if test "$cross_compiling" = yes; then
8652 ac_cv_func_strtod=no
8653else
8654 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8655/* confdefs.h. */
8656_ACEOF
8657cat confdefs.h >>conftest.$ac_ext
8658cat >>conftest.$ac_ext <<_ACEOF
8659/* end confdefs.h. */
8660
7a197a62
AK
8661$ac_includes_default
8662#ifndef strtod
ad6254c5 8663double strtod ();
7a197a62 8664#endif
ad6254c5
AK
8665int
8666main()
8667{
8668 {
8669 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
8670 char *string = " +69";
8671 char *term;
8672 double value;
8673 value = strtod (string, &term);
8674 if (value != 69 || term != (string + 4))
7a197a62 8675 return 1;
ad6254c5
AK
8676 }
8677
8678 {
8679 /* Under Solaris 2.4, strtod returns the wrong value for the
8680 terminating character under some conditions. */
8681 char *string = "NaN";
8682 char *term;
8683 strtod (string, &term);
8684 if (term != string && *(term - 1) == 0)
7a197a62 8685 return 1;
ad6254c5 8686 }
7a197a62 8687 return 0;
ad6254c5
AK
8688}
8689
8690_ACEOF
8691rm -f conftest$ac_exeext
7a197a62
AK
8692if { (ac_try="$ac_link"
8693case "(($ac_try" in
8694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8695 *) ac_try_echo=$ac_try;;
8696esac
ec6a6fbe
AK
8697eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8698$as_echo "$ac_try_echo") >&5
7a197a62 8699 (eval "$ac_link") 2>&5
ad6254c5 8700 ac_status=$?
ec6a6fbe 8701 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 8702 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
8703 { (case "(($ac_try" in
8704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8705 *) ac_try_echo=$ac_try;;
8706esac
ec6a6fbe
AK
8707eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8708$as_echo "$ac_try_echo") >&5
7a197a62 8709 (eval "$ac_try") 2>&5
ad6254c5 8710 ac_status=$?
ec6a6fbe 8711 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
8712 (exit $ac_status); }; }; then
8713 ac_cv_func_strtod=yes
8714else
ec6a6fbe
AK
8715 $as_echo "$as_me: program exited with status $ac_status" >&5
8716$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8717sed 's/^/| /' conftest.$ac_ext >&5
8718
8719( exit $ac_status )
8720ac_cv_func_strtod=no
8721fi
ec6a6fbe 8722rm -rf conftest.dSYM
7a197a62 8723rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 8724fi
7a197a62
AK
8725
8726
ad6254c5 8727fi
ec6a6fbe
AK
8728{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
8729$as_echo "$ac_cv_func_strtod" >&6; }
ad6254c5 8730if test $ac_cv_func_strtod = no; then
7a197a62 8731 case " $LIBOBJS " in
8a2fc586 8732 *" strtod.$ac_objext "* ) ;;
7a197a62
AK
8733 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
8734 ;;
8a2fc586
AK
8735esac
8736
ec6a6fbe
AK
8737{ $as_echo "$as_me:$LINENO: checking for pow" >&5
8738$as_echo_n "checking for pow... " >&6; }
ad6254c5 8739if test "${ac_cv_func_pow+set}" = set; then
ec6a6fbe 8740 $as_echo_n "(cached) " >&6
ad6254c5
AK
8741else
8742 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8743/* confdefs.h. */
8744_ACEOF
8745cat confdefs.h >>conftest.$ac_ext
8746cat >>conftest.$ac_ext <<_ACEOF
8747/* end confdefs.h. */
8a2fc586
AK
8748/* Define pow to an innocuous variant, in case <limits.h> declares pow.
8749 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8750#define pow innocuous_pow
8751
ad6254c5
AK
8752/* System header to define __stub macros and hopefully few prototypes,
8753 which can conflict with char pow (); below.
8754 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8755 <limits.h> exists even on freestanding compilers. */
8a2fc586 8756
ad6254c5
AK
8757#ifdef __STDC__
8758# include <limits.h>
8759#else
8760# include <assert.h>
8761#endif
8a2fc586
AK
8762
8763#undef pow
8764
7a197a62
AK
8765/* Override any GCC internal prototype to avoid an error.
8766 Use char because int might match the return type of a GCC
8767 builtin and then its argument prototype would still apply. */
ad6254c5
AK
8768#ifdef __cplusplus
8769extern "C"
ad6254c5 8770#endif
ad6254c5
AK
8771char pow ();
8772/* The GNU C library defines this for functions which it implements
8773 to always fail with ENOSYS. Some functions are actually named
8774 something starting with __ and the normal name is an alias. */
7a197a62 8775#if defined __stub_pow || defined __stub___pow
ad6254c5 8776choke me
ad6254c5
AK
8777#endif
8778
8779int
8780main ()
8781{
7a197a62 8782return pow ();
ad6254c5
AK
8783 ;
8784 return 0;
8785}
8786_ACEOF
8787rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
8788if { (ac_try="$ac_link"
8789case "(($ac_try" in
8790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8791 *) ac_try_echo=$ac_try;;
8792esac
ec6a6fbe
AK
8793eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8794$as_echo "$ac_try_echo") >&5
7a197a62 8795 (eval "$ac_link") 2>conftest.er1
ad6254c5 8796 ac_status=$?
8a2fc586
AK
8797 grep -v '^ *+' conftest.er1 >conftest.err
8798 rm -f conftest.er1
8799 cat conftest.err >&5
ec6a6fbe 8800 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8801 (exit $ac_status); } && {
8802 test -z "$ac_c_werror_flag" ||
8803 test ! -s conftest.err
ec6a6fbe
AK
8804 } && test -s conftest$ac_exeext && {
8805 test "$cross_compiling" = yes ||
8806 $as_test_x conftest$ac_exeext
8807 }; then
ad6254c5
AK
8808 ac_cv_func_pow=yes
8809else
ec6a6fbe 8810 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8811sed 's/^/| /' conftest.$ac_ext >&5
8812
7a197a62 8813 ac_cv_func_pow=no
ad6254c5 8814fi
7a197a62 8815
ec6a6fbe 8816rm -rf conftest.dSYM
25fbec5b 8817rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 8818 conftest$ac_exeext conftest.$ac_ext
ad6254c5 8819fi
ec6a6fbe
AK
8820{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
8821$as_echo "$ac_cv_func_pow" >&6; }
ad6254c5
AK
8822
8823if test $ac_cv_func_pow = no; then
ec6a6fbe
AK
8824 { $as_echo "$as_me:$LINENO: checking for pow in -lm" >&5
8825$as_echo_n "checking for pow in -lm... " >&6; }
ad6254c5 8826if test "${ac_cv_lib_m_pow+set}" = set; then
ec6a6fbe 8827 $as_echo_n "(cached) " >&6
ad6254c5
AK
8828else
8829 ac_check_lib_save_LIBS=$LIBS
8830LIBS="-lm $LIBS"
8831cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8832/* confdefs.h. */
8833_ACEOF
8834cat confdefs.h >>conftest.$ac_ext
8835cat >>conftest.$ac_ext <<_ACEOF
8836/* end confdefs.h. */
8837
7a197a62
AK
8838/* Override any GCC internal prototype to avoid an error.
8839 Use char because int might match the return type of a GCC
8840 builtin and then its argument prototype would still apply. */
ad6254c5
AK
8841#ifdef __cplusplus
8842extern "C"
8843#endif
ad6254c5
AK
8844char pow ();
8845int
8846main ()
8847{
7a197a62 8848return pow ();
ad6254c5
AK
8849 ;
8850 return 0;
8851}
8852_ACEOF
8853rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
8854if { (ac_try="$ac_link"
8855case "(($ac_try" in
8856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8857 *) ac_try_echo=$ac_try;;
8858esac
ec6a6fbe
AK
8859eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8860$as_echo "$ac_try_echo") >&5
7a197a62 8861 (eval "$ac_link") 2>conftest.er1
ad6254c5 8862 ac_status=$?
8a2fc586
AK
8863 grep -v '^ *+' conftest.er1 >conftest.err
8864 rm -f conftest.er1
8865 cat conftest.err >&5
ec6a6fbe 8866 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8867 (exit $ac_status); } && {
8868 test -z "$ac_c_werror_flag" ||
8869 test ! -s conftest.err
ec6a6fbe
AK
8870 } && test -s conftest$ac_exeext && {
8871 test "$cross_compiling" = yes ||
8872 $as_test_x conftest$ac_exeext
8873 }; then
ad6254c5
AK
8874 ac_cv_lib_m_pow=yes
8875else
ec6a6fbe 8876 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8877sed 's/^/| /' conftest.$ac_ext >&5
8878
7a197a62 8879 ac_cv_lib_m_pow=no
ad6254c5 8880fi
7a197a62 8881
ec6a6fbe 8882rm -rf conftest.dSYM
25fbec5b 8883rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 8884 conftest$ac_exeext conftest.$ac_ext
ad6254c5 8885LIBS=$ac_check_lib_save_LIBS
d0191583 8886fi
ec6a6fbe
AK
8887{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
8888$as_echo "$ac_cv_lib_m_pow" >&6; }
8889if test "x$ac_cv_lib_m_pow" = x""yes; then
d0191583
JM
8890 POW_LIB=-lm
8891else
ec6a6fbe
AK
8892 { $as_echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
8893$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
d0191583 8894fi
72b2cb61 8895
d0191583 8896fi
72b2cb61 8897
ad6254c5
AK
8898fi
8899
ad6254c5 8900
d0191583
JM
8901for ac_func in vprintf
8902do
ec6a6fbe
AK
8903as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8904{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8905$as_echo_n "checking for $ac_func... " >&6; }
d0191583 8906if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 8907 $as_echo_n "(cached) " >&6
ad6254c5 8908else
d0191583
JM
8909 cat >conftest.$ac_ext <<_ACEOF
8910/* confdefs.h. */
8911_ACEOF
8912cat confdefs.h >>conftest.$ac_ext
8913cat >>conftest.$ac_ext <<_ACEOF
8914/* end confdefs.h. */
8915/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8916 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8917#define $ac_func innocuous_$ac_func
7a197a62 8918
d0191583
JM
8919/* System header to define __stub macros and hopefully few prototypes,
8920 which can conflict with char $ac_func (); below.
8921 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8922 <limits.h> exists even on freestanding compilers. */
ad6254c5 8923
d0191583
JM
8924#ifdef __STDC__
8925# include <limits.h>
8926#else
8927# include <assert.h>
8928#endif
ad6254c5 8929
d0191583 8930#undef $ac_func
72b2cb61 8931
d0191583
JM
8932/* Override any GCC internal prototype to avoid an error.
8933 Use char because int might match the return type of a GCC
8934 builtin and then its argument prototype would still apply. */
8935#ifdef __cplusplus
8936extern "C"
8937#endif
8938char $ac_func ();
8939/* The GNU C library defines this for functions which it implements
8940 to always fail with ENOSYS. Some functions are actually named
8941 something starting with __ and the normal name is an alias. */
8942#if defined __stub_$ac_func || defined __stub___$ac_func
8943choke me
8944#endif
8945
8946int
8947main ()
8948{
8949return $ac_func ();
8950 ;
8951 return 0;
8952}
72b2cb61 8953_ACEOF
d0191583
JM
8954rm -f conftest.$ac_objext conftest$ac_exeext
8955if { (ac_try="$ac_link"
8956case "(($ac_try" in
8957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8958 *) ac_try_echo=$ac_try;;
8959esac
ec6a6fbe
AK
8960eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8961$as_echo "$ac_try_echo") >&5
d0191583
JM
8962 (eval "$ac_link") 2>conftest.er1
8963 ac_status=$?
8964 grep -v '^ *+' conftest.er1 >conftest.err
8965 rm -f conftest.er1
8966 cat conftest.err >&5
ec6a6fbe 8967 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
8968 (exit $ac_status); } && {
8969 test -z "$ac_c_werror_flag" ||
8970 test ! -s conftest.err
ec6a6fbe
AK
8971 } && test -s conftest$ac_exeext && {
8972 test "$cross_compiling" = yes ||
8973 $as_test_x conftest$ac_exeext
8974 }; then
d0191583
JM
8975 eval "$as_ac_var=yes"
8976else
ec6a6fbe 8977 $as_echo "$as_me: failed program was:" >&5
d0191583 8978sed 's/^/| /' conftest.$ac_ext >&5
72b2cb61 8979
d0191583 8980 eval "$as_ac_var=no"
ad6254c5
AK
8981fi
8982
ec6a6fbe 8983rm -rf conftest.dSYM
d0191583
JM
8984rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8985 conftest$ac_exeext conftest.$ac_ext
7a197a62 8986fi
ec6a6fbe
AK
8987ac_res=`eval 'as_val=${'$as_ac_var'}
8988 $as_echo "$as_val"'`
8989 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8990$as_echo "$ac_res" >&6; }
8991as_val=`eval 'as_val=${'$as_ac_var'}
8992 $as_echo "$as_val"'`
8993 if test "x$as_val" = x""yes; then
d0191583 8994 cat >>confdefs.h <<_ACEOF
ec6a6fbe 8995#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
d0191583 8996_ACEOF
7a197a62 8997
ec6a6fbe
AK
8998{ $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
8999$as_echo_n "checking for _doprnt... " >&6; }
d0191583 9000if test "${ac_cv_func__doprnt+set}" = set; then
ec6a6fbe 9001 $as_echo_n "(cached) " >&6
ad6254c5 9002else
d0191583
JM
9003 cat >conftest.$ac_ext <<_ACEOF
9004/* confdefs.h. */
9005_ACEOF
9006cat confdefs.h >>conftest.$ac_ext
9007cat >>conftest.$ac_ext <<_ACEOF
9008/* end confdefs.h. */
9009/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
9010 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9011#define _doprnt innocuous__doprnt
7a197a62 9012
d0191583
JM
9013/* System header to define __stub macros and hopefully few prototypes,
9014 which can conflict with char _doprnt (); below.
9015 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9016 <limits.h> exists even on freestanding compilers. */
ad6254c5 9017
d0191583
JM
9018#ifdef __STDC__
9019# include <limits.h>
9020#else
9021# include <assert.h>
9022#endif
72b2cb61 9023
d0191583
JM
9024#undef _doprnt
9025
9026/* Override any GCC internal prototype to avoid an error.
9027 Use char because int might match the return type of a GCC
9028 builtin and then its argument prototype would still apply. */
9029#ifdef __cplusplus
9030extern "C"
9031#endif
9032char _doprnt ();
9033/* The GNU C library defines this for functions which it implements
9034 to always fail with ENOSYS. Some functions are actually named
9035 something starting with __ and the normal name is an alias. */
9036#if defined __stub__doprnt || defined __stub____doprnt
9037choke me
9038#endif
9039
9040int
9041main ()
9042{
9043return _doprnt ();
9044 ;
9045 return 0;
9046}
72b2cb61 9047_ACEOF
d0191583
JM
9048rm -f conftest.$ac_objext conftest$ac_exeext
9049if { (ac_try="$ac_link"
9050case "(($ac_try" in
9051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9052 *) ac_try_echo=$ac_try;;
9053esac
ec6a6fbe
AK
9054eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9055$as_echo "$ac_try_echo") >&5
d0191583
JM
9056 (eval "$ac_link") 2>conftest.er1
9057 ac_status=$?
9058 grep -v '^ *+' conftest.er1 >conftest.err
9059 rm -f conftest.er1
9060 cat conftest.err >&5
ec6a6fbe 9061 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
9062 (exit $ac_status); } && {
9063 test -z "$ac_c_werror_flag" ||
9064 test ! -s conftest.err
ec6a6fbe
AK
9065 } && test -s conftest$ac_exeext && {
9066 test "$cross_compiling" = yes ||
9067 $as_test_x conftest$ac_exeext
9068 }; then
d0191583
JM
9069 ac_cv_func__doprnt=yes
9070else
ec6a6fbe 9071 $as_echo "$as_me: failed program was:" >&5
d0191583 9072sed 's/^/| /' conftest.$ac_ext >&5
72b2cb61 9073
d0191583 9074 ac_cv_func__doprnt=no
ad6254c5
AK
9075fi
9076
ec6a6fbe 9077rm -rf conftest.dSYM
d0191583
JM
9078rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9079 conftest$ac_exeext conftest.$ac_ext
7a197a62 9080fi
ec6a6fbe
AK
9081{ $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
9082$as_echo "$ac_cv_func__doprnt" >&6; }
9083if test "x$ac_cv_func__doprnt" = x""yes; then
7a197a62 9084
d0191583
JM
9085cat >>confdefs.h <<\_ACEOF
9086#define HAVE_DOPRNT 1
9087_ACEOF
ad6254c5 9088
7a197a62
AK
9089fi
9090
d0191583
JM
9091fi
9092done
8b1a3214 9093
ad6254c5 9094
7a197a62 9095
9c961554 9096################################################################################
ec6a6fbe
AK
9097{ $as_echo "$as_me:$LINENO: checking whether to use static linking" >&5
9098$as_echo_n "checking whether to use static linking... " >&6; }
9c961554
MB
9099# Check whether --enable-static_link was given.
9100if test "${enable_static_link+set}" = set; then
9101 enableval=$enable_static_link; STATIC_LINK=$enableval
9102else
9103 STATIC_LINK=no
9104fi
9105
ec6a6fbe
AK
9106{ $as_echo "$as_me:$LINENO: result: $STATIC_LINK" >&5
9107$as_echo "$STATIC_LINK" >&6; }
9c961554 9108
d0191583 9109################################################################################
ad6254c5 9110
ad6254c5
AK
9111
9112################################################################################
ec6a6fbe
AK
9113{ $as_echo "$as_me:$LINENO: checking file owner" >&5
9114$as_echo_n "checking file owner... " >&6; }
d0191583
JM
9115
9116# Check whether --with-user was given.
9117if test "${with_user+set}" = set; then
9118 withval=$with_user; OWNER="$withval"
7a197a62
AK
9119fi
9120
ec6a6fbe
AK
9121{ $as_echo "$as_me:$LINENO: result: $OWNER" >&5
9122$as_echo "$OWNER" >&6; }
ad6254c5 9123
d0191583 9124if test x$OWNER != x; then
23b059e7 9125 INSTALL="$INSTALL -o $OWNER"
ad6254c5
AK
9126fi
9127
9128################################################################################
ec6a6fbe
AK
9129{ $as_echo "$as_me:$LINENO: checking group owner" >&5
9130$as_echo_n "checking group owner... " >&6; }
ad6254c5 9131
d0191583
JM
9132# Check whether --with-group was given.
9133if test "${with_group+set}" = set; then
9134 withval=$with_group; GROUP="$withval"
7a197a62
AK
9135fi
9136
ec6a6fbe
AK
9137{ $as_echo "$as_me:$LINENO: result: $GROUP" >&5
9138$as_echo "$GROUP" >&6; }
d0191583
JM
9139
9140if test x$GROUP != x; then
23b059e7 9141 INSTALL="$INSTALL -g $GROUP"
d0191583 9142fi
ad6254c5 9143
24bbc4d7 9144################################################################################
ec6a6fbe
AK
9145{ $as_echo "$as_me:$LINENO: checking device node uid" >&5
9146$as_echo_n "checking device node uid... " >&6; }
24bbc4d7
AK
9147
9148
9149# Check whether --with-device-uid was given.
9150if test "${with_device_uid+set}" = set; then
9151 withval=$with_device_uid; DM_DEVICE_UID="$withval"
9152else
9153 DM_DEVICE_UID="0"
9154fi
9155
ec6a6fbe
AK
9156{ $as_echo "$as_me:$LINENO: result: $DM_DEVICE_UID" >&5
9157$as_echo "$DM_DEVICE_UID" >&6; }
24bbc4d7
AK
9158
9159################################################################################
ec6a6fbe
AK
9160{ $as_echo "$as_me:$LINENO: checking device node gid" >&5
9161$as_echo_n "checking device node gid... " >&6; }
24bbc4d7
AK
9162
9163
9164# Check whether --with-device-gid was given.
9165if test "${with_device_gid+set}" = set; then
9166 withval=$with_device_gid; DM_DEVICE_GID="$withval"
9167else
9168 DM_DEVICE_GID="0"
9169fi
9170
ec6a6fbe
AK
9171{ $as_echo "$as_me:$LINENO: result: $DM_DEVICE_GID" >&5
9172$as_echo "$DM_DEVICE_GID" >&6; }
24bbc4d7 9173
93bd259b 9174################################################################################
ec6a6fbe
AK
9175{ $as_echo "$as_me:$LINENO: checking device node mode" >&5
9176$as_echo_n "checking device node mode... " >&6; }
93bd259b
AK
9177
9178
9179# Check whether --with-device-mode was given.
9180if test "${with_device_mode+set}" = set; then
9181 withval=$with_device_mode; DM_DEVICE_MODE="$withval"
9182else
9183 DM_DEVICE_MODE="0600"
9184fi
9185
ec6a6fbe
AK
9186{ $as_echo "$as_me:$LINENO: result: $DM_DEVICE_MODE" >&5
9187$as_echo "$DM_DEVICE_MODE" >&6; }
93bd259b 9188
ad6254c5 9189################################################################################
ec6a6fbe
AK
9190{ $as_echo "$as_me:$LINENO: checking whether to enable lvm1 fallback" >&5
9191$as_echo_n "checking whether to enable lvm1 fallback... " >&6; }
d0191583
JM
9192# Check whether --enable-lvm1_fallback was given.
9193if test "${enable_lvm1_fallback+set}" = set; then
9194 enableval=$enable_lvm1_fallback; LVM1_FALLBACK=$enableval
9195else
9196 LVM1_FALLBACK=no
7a197a62
AK
9197fi
9198
ec6a6fbe
AK
9199{ $as_echo "$as_me:$LINENO: result: $LVM1_FALLBACK" >&5
9200$as_echo "$LVM1_FALLBACK" >&6; }
ad6254c5 9201
d0191583 9202if test x$LVM1_FALLBACK = xyes; then
72b2cb61
AK
9203
9204cat >>confdefs.h <<\_ACEOF
d0191583 9205#define LVM1_FALLBACK 1
72b2cb61
AK
9206_ACEOF
9207
ad6254c5
AK
9208fi
9209
9210################################################################################
ec6a6fbe
AK
9211{ $as_echo "$as_me:$LINENO: checking whether to include support for lvm1 metadata" >&5
9212$as_echo_n "checking whether to include support for lvm1 metadata... " >&6; }
d0191583
JM
9213
9214# Check whether --with-lvm1 was given.
9215if test "${with_lvm1+set}" = set; then
9216 withval=$with_lvm1; LVM1="$withval"
9217else
9218 LVM1="internal"
7a197a62
AK
9219fi
9220
ec6a6fbe
AK
9221{ $as_echo "$as_me:$LINENO: result: $LVM1" >&5
9222$as_echo "$LVM1" >&6; }
ad6254c5 9223
d0191583 9224if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ];
ec6a6fbe 9225 then { { $as_echo "$as_me:$LINENO: error: --with-lvm1 parameter invalid
d0191583 9226" >&5
ec6a6fbe 9227$as_echo "$as_me: error: --with-lvm1 parameter invalid
d0191583
JM
9228" >&2;}
9229 { (exit 1); exit 1; }; }
9230fi;
9231
9232if test x$LVM1 = xinternal; then
72b2cb61
AK
9233
9234cat >>confdefs.h <<\_ACEOF
d0191583 9235#define LVM1_INTERNAL 1
72b2cb61
AK
9236_ACEOF
9237
ad6254c5
AK
9238fi
9239
9240################################################################################
ec6a6fbe
AK
9241{ $as_echo "$as_me:$LINENO: checking whether to include support for GFS pool metadata" >&5
9242$as_echo_n "checking whether to include support for GFS pool metadata... " >&6; }
d0191583
JM
9243
9244# Check whether --with-pool was given.
9245if test "${with_pool+set}" = set; then
9246 withval=$with_pool; POOL="$withval"
ad6254c5 9247else
d0191583 9248 POOL="internal"
7a197a62
AK
9249fi
9250
ec6a6fbe
AK
9251{ $as_echo "$as_me:$LINENO: result: $POOL" >&5
9252$as_echo "$POOL" >&6; }
ad6254c5 9253
d0191583 9254if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ];
ec6a6fbe 9255 then { { $as_echo "$as_me:$LINENO: error: --with-pool parameter invalid
d0191583 9256" >&5
ec6a6fbe 9257$as_echo "$as_me: error: --with-pool parameter invalid
d0191583
JM
9258" >&2;}
9259 { (exit 1); exit 1; }; }
9260fi;
7a197a62 9261
d0191583
JM
9262if test x$POOL = xinternal; then
9263
9264cat >>confdefs.h <<\_ACEOF
9265#define POOL_INTERNAL 1
9266_ACEOF
9267
9268fi
ad6254c5 9269
06f62ad1 9270################################################################################
ec6a6fbe
AK
9271{ $as_echo "$as_me:$LINENO: checking whether to include support for cluster locking" >&5
9272$as_echo_n "checking whether to include support for cluster locking... " >&6; }
d0191583
JM
9273
9274# Check whether --with-cluster was given.
9275if test "${with_cluster+set}" = set; then
9276 withval=$with_cluster; CLUSTER="$withval"
7a197a62
AK
9277fi
9278
ec6a6fbe
AK
9279{ $as_echo "$as_me:$LINENO: result: $CLUSTER" >&5
9280$as_echo "$CLUSTER" >&6; }
06f62ad1 9281
d0191583 9282if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ];
ec6a6fbe 9283 then { { $as_echo "$as_me:$LINENO: error: --with-cluster parameter invalid
06f62ad1 9284" >&5
ec6a6fbe 9285$as_echo "$as_me: error: --with-cluster parameter invalid
06f62ad1
AK
9286" >&2;}
9287 { (exit 1); exit 1; }; }
d0191583 9288fi;
06f62ad1 9289
d0191583 9290if test x$CLUSTER = xinternal; then
72b2cb61
AK
9291
9292cat >>confdefs.h <<\_ACEOF
d0191583 9293#define CLUSTER_LOCKING_INTERNAL 1
72b2cb61
AK
9294_ACEOF
9295
15d91f5a 9296fi
ad6254c5
AK
9297
9298################################################################################
ec6a6fbe
AK
9299{ $as_echo "$as_me:$LINENO: checking whether to include snapshots" >&5
9300$as_echo_n "checking whether to include snapshots... " >&6; }
ad6254c5 9301
d0191583
JM
9302# Check whether --with-snapshots was given.
9303if test "${with_snapshots+set}" = set; then
9304 withval=$with_snapshots; SNAPSHOTS="$withval"
9305else
9306 SNAPSHOTS="internal"
ad6254c5
AK
9307fi
9308
ec6a6fbe
AK
9309{ $as_echo "$as_me:$LINENO: result: $SNAPSHOTS" >&5
9310$as_echo "$SNAPSHOTS" >&6; }
ad6254c5 9311
d0191583 9312if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ];
ec6a6fbe 9313 then { { $as_echo "$as_me:$LINENO: error: --with-snapshots parameter invalid
d0191583 9314" >&5
ec6a6fbe 9315$as_echo "$as_me: error: --with-snapshots parameter invalid
d0191583
JM
9316" >&2;}
9317 { (exit 1); exit 1; }; }
9318fi;
9319
9320if test x$SNAPSHOTS = xinternal; then
9321
9322cat >>confdefs.h <<\_ACEOF
9323#define SNAPSHOT_INTERNAL 1
9324_ACEOF
ad6254c5 9325
ad6254c5 9326fi
7a197a62 9327
d0191583 9328################################################################################
ec6a6fbe
AK
9329{ $as_echo "$as_me:$LINENO: checking whether to include mirrors" >&5
9330$as_echo_n "checking whether to include mirrors... " >&6; }
d0191583
JM
9331
9332# Check whether --with-mirrors was given.
9333if test "${with_mirrors+set}" = set; then
9334 withval=$with_mirrors; MIRRORS="$withval"
9335else
9336 MIRRORS="internal"
ad6254c5 9337fi
ad6254c5 9338
ec6a6fbe
AK
9339{ $as_echo "$as_me:$LINENO: result: $MIRRORS" >&5
9340$as_echo "$MIRRORS" >&6; }
ad6254c5 9341
d0191583 9342if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ];
ec6a6fbe 9343 then { { $as_echo "$as_me:$LINENO: error: --with-mirrors parameter invalid
d0191583 9344" >&5
ec6a6fbe 9345$as_echo "$as_me: error: --with-mirrors parameter invalid
d0191583
JM
9346" >&2;}
9347 { (exit 1); exit 1; }; }
9348fi;
ad6254c5 9349
d0191583 9350if test x$MIRRORS = xinternal; then
ad6254c5 9351
d0191583
JM
9352cat >>confdefs.h <<\_ACEOF
9353#define MIRRORED_INTERNAL 1
ad6254c5 9354_ACEOF
8a2fc586 9355
d0191583 9356fi
8a2fc586 9357
8fea97b7
ZK
9358################################################################################
9359{ $as_echo "$as_me:$LINENO: checking whether to include replicators" >&5
9360$as_echo_n "checking whether to include replicators... " >&6; }
9361
9362# Check whether --with-replicators was given.
9363if test "${with_replicators+set}" = set; then
9364 withval=$with_replicators; REPLICATORS=$withval
9365else
9366 REPLICATORS="none"
9367fi
9368
9369{ $as_echo "$as_me:$LINENO: result: $REPLICATORS" >&5
9370$as_echo "$REPLICATORS" >&6; }
9371
9372case "$REPLICATORS" in
9373 none|shared) ;;
9374 internal)
9375cat >>confdefs.h <<\_ACEOF
9376#define REPLICATOR_INTERNAL 1
9377_ACEOF
9378 ;;
9379 *) { { $as_echo "$as_me:$LINENO: error: --with-replicators parameter invalid ($REPLICATORS)" >&5
9380$as_echo "$as_me: error: --with-replicators parameter invalid ($REPLICATORS)" >&2;}
9381 { (exit 1); exit 1; }; } ;;
9382esac
9383
d0191583 9384################################################################################
ec6a6fbe
AK
9385{ $as_echo "$as_me:$LINENO: checking whether to enable readline" >&5
9386$as_echo_n "checking whether to enable readline... " >&6; }
d0191583
JM
9387# Check whether --enable-readline was given.
9388if test "${enable_readline+set}" = set; then
9389 enableval=$enable_readline; READLINE=$enableval
9390else
06e459df 9391 READLINE=maybe
d0191583 9392fi
8a2fc586 9393
ec6a6fbe
AK
9394{ $as_echo "$as_me:$LINENO: result: $READLINE" >&5
9395$as_echo "$READLINE" >&6; }
8a2fc586 9396
d0191583 9397################################################################################
ec6a6fbe
AK
9398{ $as_echo "$as_me:$LINENO: checking whether to enable realtime support" >&5
9399$as_echo_n "checking whether to enable realtime support... " >&6; }
d0191583
JM
9400# Check whether --enable-realtime was given.
9401if test "${enable_realtime+set}" = set; then
9402 enableval=$enable_realtime; REALTIME=$enableval
ad6254c5 9403fi
ad6254c5 9404
ec6a6fbe
AK
9405{ $as_echo "$as_me:$LINENO: result: $REALTIME" >&5
9406$as_echo "$REALTIME" >&6; }
d0191583
JM
9407
9408################################################################################
90c80887 9409pkg_config_init() {
e2997b73
AK
9410
9411
b5c2529b
ZK
9412
9413
9414
9415
e2997b73
AK
9416if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
9417 if test -n "$ac_tool_prefix"; then
9418 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
9419set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
9420{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9421$as_echo_n "checking for $ac_word... " >&6; }
9422if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9423 $as_echo_n "(cached) " >&6
9424else
9425 case $PKG_CONFIG in
9426 [\\/]* | ?:[\\/]*)
9427 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9428 ;;
9429 *)
9430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9431for as_dir in $PATH
9432do
9433 IFS=$as_save_IFS
9434 test -z "$as_dir" && as_dir=.
9435 for ac_exec_ext in '' $ac_executable_extensions; do
9436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9437 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9438 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9439 break 2
9440 fi
9441done
9442done
9443IFS=$as_save_IFS
9444
9445 ;;
9446esac
9447fi
9448PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9449if test -n "$PKG_CONFIG"; then
9450 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9451$as_echo "$PKG_CONFIG" >&6; }
9452else
9453 { $as_echo "$as_me:$LINENO: result: no" >&5
9454$as_echo "no" >&6; }
9455fi
9456
9457
9458fi
9459if test -z "$ac_cv_path_PKG_CONFIG"; then
9460 ac_pt_PKG_CONFIG=$PKG_CONFIG
9461 # Extract the first word of "pkg-config", so it can be a program name with args.
9462set dummy pkg-config; ac_word=$2
9463{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9464$as_echo_n "checking for $ac_word... " >&6; }
9465if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
9466 $as_echo_n "(cached) " >&6
9467else
9468 case $ac_pt_PKG_CONFIG in
9469 [\\/]* | ?:[\\/]*)
9470 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
9471 ;;
9472 *)
9473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9474for as_dir in $PATH
9475do
9476 IFS=$as_save_IFS
9477 test -z "$as_dir" && as_dir=.
9478 for ac_exec_ext in '' $ac_executable_extensions; do
9479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9480 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9481 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9482 break 2
9483 fi
9484done
9485done
9486IFS=$as_save_IFS
9487
9488 ;;
9489esac
9490fi
9491ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
9492if test -n "$ac_pt_PKG_CONFIG"; then
9493 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
9494$as_echo "$ac_pt_PKG_CONFIG" >&6; }
9495else
9496 { $as_echo "$as_me:$LINENO: result: no" >&5
9497$as_echo "no" >&6; }
9498fi
9499
9500 if test "x$ac_pt_PKG_CONFIG" = x; then
9501 PKG_CONFIG=""
9502 else
9503 case $cross_compiling:$ac_tool_warned in
9504yes:)
9505{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9506$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9507ac_tool_warned=yes ;;
9508esac
9509 PKG_CONFIG=$ac_pt_PKG_CONFIG
9510 fi
9511else
9512 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
9513fi
9514
9515fi
9516if test -n "$PKG_CONFIG"; then
9517 _pkg_min_version=0.9.0
9518 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
9519$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
9520 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
9521 { $as_echo "$as_me:$LINENO: result: yes" >&5
9522$as_echo "yes" >&6; }
9523 else
9524 { $as_echo "$as_me:$LINENO: result: no" >&5
9525$as_echo "no" >&6; }
9526 PKG_CONFIG=""
9527 fi
e2997b73
AK
9528fi
9529
9530pkg_failed=no
a946372e
AK
9531{ $as_echo "$as_me:$LINENO: checking for PKGCONFIGINIT" >&5
9532$as_echo_n "checking for PKGCONFIGINIT... " >&6; }
e2997b73 9533
a946372e
AK
9534if test -n "$PKGCONFIGINIT_CFLAGS"; then
9535 pkg_cv_PKGCONFIGINIT_CFLAGS="$PKGCONFIGINIT_CFLAGS"
e2997b73
AK
9536 elif test -n "$PKG_CONFIG"; then
9537 if test -n "$PKG_CONFIG" && \
a946372e
AK
9538 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\"") >&5
9539 ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5
e2997b73
AK
9540 ac_status=$?
9541 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9542 (exit $ac_status); }; then
a946372e 9543 pkg_cv_PKGCONFIGINIT_CFLAGS=`$PKG_CONFIG --cflags "pkgconfiginit" 2>/dev/null`
e2997b73
AK
9544else
9545 pkg_failed=yes
9546fi
9547 else
9548 pkg_failed=untried
9549fi
a946372e
AK
9550if test -n "$PKGCONFIGINIT_LIBS"; then
9551 pkg_cv_PKGCONFIGINIT_LIBS="$PKGCONFIGINIT_LIBS"
e2997b73
AK
9552 elif test -n "$PKG_CONFIG"; then
9553 if test -n "$PKG_CONFIG" && \
a946372e
AK
9554 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\"") >&5
9555 ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5
e2997b73
AK
9556 ac_status=$?
9557 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9558 (exit $ac_status); }; then
a946372e 9559 pkg_cv_PKGCONFIGINIT_LIBS=`$PKG_CONFIG --libs "pkgconfiginit" 2>/dev/null`
e2997b73
AK
9560else
9561 pkg_failed=yes
9562fi
9563 else
9564 pkg_failed=untried
9565fi
9566
9567
9568
9569if test $pkg_failed = yes; then
b5c2529b
ZK
9570 { $as_echo "$as_me:$LINENO: result: no" >&5
9571$as_echo "no" >&6; }
e2997b73
AK
9572
9573if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9574 _pkg_short_errors_supported=yes
9575else
9576 _pkg_short_errors_supported=no
9577fi
9578 if test $_pkg_short_errors_supported = yes; then
a946372e 9579 PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pkgconfiginit" 2>&1`
e2997b73 9580 else
a946372e 9581 PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "pkgconfiginit" 2>&1`
e2997b73
AK
9582 fi
9583 # Put the nasty error message in config.log where it belongs
a946372e 9584 echo "$PKGCONFIGINIT_PKG_ERRORS" >&5
e2997b73 9585
b5c2529b 9586 { $as_echo "$as_me:$LINENO: result: pkg-config initialized" >&5
a946372e 9587$as_echo "pkg-config initialized" >&6; }
e2997b73 9588elif test $pkg_failed = untried; then
b5c2529b
ZK
9589 { $as_echo "$as_me:$LINENO: result: no" >&5
9590$as_echo "no" >&6; }
a946372e
AK
9591 { $as_echo "$as_me:$LINENO: result: pkg-config initialized" >&5
9592$as_echo "pkg-config initialized" >&6; }
e2997b73 9593else
a946372e
AK
9594 PKGCONFIGINIT_CFLAGS=$pkg_cv_PKGCONFIGINIT_CFLAGS
9595 PKGCONFIGINIT_LIBS=$pkg_cv_PKGCONFIGINIT_LIBS
e2997b73
AK
9596 { $as_echo "$as_me:$LINENO: result: yes" >&5
9597$as_echo "yes" >&6; }
b5c2529b 9598
e2997b73 9599fi
90c80887
AK
9600 PKGCONFIG_INIT=1
9601}
9602
9603################################################################################
9604{ $as_echo "$as_me:$LINENO: checking whether to build cluster LVM daemon" >&5
9605$as_echo_n "checking whether to build cluster LVM daemon... " >&6; }
9606
9607# Check whether --with-clvmd was given.
9608if test "${with_clvmd+set}" = set; then
9609 withval=$with_clvmd; CLVMD="$withval"
9610else
9611 CLVMD="none"
9612fi
9613
9614if test x$CLVMD = xyes; then
9615 CLVMD=all
9616fi
9617{ $as_echo "$as_me:$LINENO: result: $CLVMD" >&5
9618$as_echo "$CLVMD" >&6; }
9619
9620if test x$CLVMD != xnone && test x$CLUSTER = xnone; then
9621 CLUSTER=internal
9622fi
9623
9624if test x$CLVMD != xnone && test x$PKGCONFIG_INIT != x1; then
9625 pkg_config_init
9626fi
9627
9628
9629if [ `expr x"$CLVMD" : '.*gulm.*'` != 0 ]; then
9630 BUILDGULM=yes
9631fi
9632if [ `expr x"$CLVMD" : '.*corosync.*'` != 0 ]; then
9633 BUILDCOROSYNC=yes
9634fi
9635if [ `expr x"$CLVMD" : '.*openais.*'` != 0 ]; then
9636 BUILDOPENAIS=yes
9637fi
9638if [ `expr x"$CLVMD" : '.*cman.*'` != 0 ]; then
9639 BUILDCMAN=yes
9640fi
9641
9642if test x$BUILDGULM = xyes; then
9643 if test x$BUILDCOROSYNC = xyes || \
9644 test x$BUILDOPENAIS = xyes; then
9645 { { $as_echo "$as_me:$LINENO: error: requested clvmd configuration is not valid" >&5
9646$as_echo "$as_me: error: requested clvmd configuration is not valid" >&2;}
9647 { (exit 1); exit 1; }; }
9648 fi
a946372e 9649fi
e2997b73 9650
a946372e
AK
9651soft_bailout() {
9652 NOTFOUND=1
9653}
e2997b73 9654
a946372e
AK
9655hard_bailout() {
9656 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
9657$as_echo "$as_me: error: bailing out" >&2;}
9658 { (exit 1); exit 1; }; }
9659}
9660
9661if test x$CLVMD = xall; then
9662 bailout=soft_bailout
9663 BUILDGULM=yes
9664 BUILDCMAN=yes
9665 BUILDCOROSYNC=yes
9666 BUILDOPENAIS=yes
e2997b73 9667else
a946372e 9668 bailout=hard_bailout
e2997b73 9669fi
a946372e
AK
9670
9671check_lib_no_libs() {
9672 lib_no_libs_arg1=$1
9673 shift
9674 lib_no_libs_arg2=$1
9675 shift
9676 lib_no_libs_args=$@
9677
9678as_ac_Lib=`$as_echo "ac_cv_lib_$lib_no_libs_arg1''_$lib_no_libs_arg2" | $as_tr_sh`
9679{ $as_echo "$as_me:$LINENO: checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1" >&5
9680$as_echo_n "checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1... " >&6; }
9681if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
9682 $as_echo_n "(cached) " >&6
9683else
9684 ac_check_lib_save_LIBS=$LIBS
9685LIBS="-l$lib_no_libs_arg1 $lib_no_libs_args $LIBS"
9686cat >conftest.$ac_ext <<_ACEOF
9687/* confdefs.h. */
9688_ACEOF
9689cat confdefs.h >>conftest.$ac_ext
9690cat >>conftest.$ac_ext <<_ACEOF
9691/* end confdefs.h. */
9692
9693/* Override any GCC internal prototype to avoid an error.
9694 Use char because int might match the return type of a GCC
9695 builtin and then its argument prototype would still apply. */
9696#ifdef __cplusplus
9697extern "C"
9698#endif
9699char $lib_no_libs_arg2 ();
9700int
9701main ()
9702{
9703return $lib_no_libs_arg2 ();
9704 ;
9705 return 0;
9706}
9707_ACEOF
9708rm -f conftest.$ac_objext conftest$ac_exeext
9709if { (ac_try="$ac_link"
9710case "(($ac_try" in
9711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9712 *) ac_try_echo=$ac_try;;
9713esac
9714eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9715$as_echo "$ac_try_echo") >&5
9716 (eval "$ac_link") 2>conftest.er1
e2997b73 9717 ac_status=$?
a946372e
AK
9718 grep -v '^ *+' conftest.er1 >conftest.err
9719 rm -f conftest.er1
9720 cat conftest.err >&5
e2997b73 9721 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
a946372e
AK
9722 (exit $ac_status); } && {
9723 test -z "$ac_c_werror_flag" ||
9724 test ! -s conftest.err
9725 } && test -s conftest$ac_exeext && {
9726 test "$cross_compiling" = yes ||
9727 $as_test_x conftest$ac_exeext
9728 }; then
9729 eval "$as_ac_Lib=yes"
e2997b73 9730else
a946372e
AK
9731 $as_echo "$as_me: failed program was:" >&5
9732sed 's/^/| /' conftest.$ac_ext >&5
e2997b73 9733
a946372e
AK
9734 eval "$as_ac_Lib=no"
9735fi
e2997b73 9736
a946372e
AK
9737rm -rf conftest.dSYM
9738rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9739 conftest$ac_exeext conftest.$ac_ext
9740LIBS=$ac_check_lib_save_LIBS
9741fi
9742ac_res=`eval 'as_val=${'$as_ac_Lib'}
9743 $as_echo "$as_val"'`
9744 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9745$as_echo "$ac_res" >&6; }
9746as_val=`eval 'as_val=${'$as_ac_Lib'}
9747 $as_echo "$as_val"'`
9748 if test "x$as_val" = x""yes; then
9749 cat >>confdefs.h <<_ACEOF
9750#define `$as_echo "HAVE_LIB$lib_no_libs_arg1" | $as_tr_cpp` 1
9751_ACEOF
e2997b73 9752
a946372e 9753 LIBS="-l$lib_no_libs_arg1 $LIBS"
e2997b73 9754
e2997b73 9755else
a946372e 9756 $bailout
e2997b73 9757fi
e2997b73 9758
a946372e
AK
9759 LIBS=$ac_check_lib_save_LIBS
9760}
9761
9762if test x$BUILDGULM = xyes; then
e2997b73
AK
9763
9764pkg_failed=no
a946372e
AK
9765{ $as_echo "$as_me:$LINENO: checking for CCS" >&5
9766$as_echo_n "checking for CCS... " >&6; }
e2997b73 9767
a946372e
AK
9768if test -n "$CCS_CFLAGS"; then
9769 pkg_cv_CCS_CFLAGS="$CCS_CFLAGS"
e2997b73
AK
9770 elif test -n "$PKG_CONFIG"; then
9771 if test -n "$PKG_CONFIG" && \
a946372e
AK
9772 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libccs\"") >&5
9773 ($PKG_CONFIG --exists --print-errors "libccs") 2>&5
e2997b73
AK
9774 ac_status=$?
9775 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9776 (exit $ac_status); }; then
a946372e 9777 pkg_cv_CCS_CFLAGS=`$PKG_CONFIG --cflags "libccs" 2>/dev/null`
e2997b73
AK
9778else
9779 pkg_failed=yes
9780fi
9781 else
9782 pkg_failed=untried
9783fi
a946372e
AK
9784if test -n "$CCS_LIBS"; then
9785 pkg_cv_CCS_LIBS="$CCS_LIBS"
e2997b73
AK
9786 elif test -n "$PKG_CONFIG"; then
9787 if test -n "$PKG_CONFIG" && \
a946372e
AK
9788 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libccs\"") >&5
9789 ($PKG_CONFIG --exists --print-errors "libccs") 2>&5
e2997b73
AK
9790 ac_status=$?
9791 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9792 (exit $ac_status); }; then
a946372e 9793 pkg_cv_CCS_LIBS=`$PKG_CONFIG --libs "libccs" 2>/dev/null`
e2997b73
AK
9794else
9795 pkg_failed=yes
9796fi
9797 else
9798 pkg_failed=untried
9799fi
9800
9801
9802
9803if test $pkg_failed = yes; then
b5c2529b
ZK
9804 { $as_echo "$as_me:$LINENO: result: no" >&5
9805$as_echo "no" >&6; }
e2997b73
AK
9806
9807if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9808 _pkg_short_errors_supported=yes
9809else
9810 _pkg_short_errors_supported=no
9811fi
9812 if test $_pkg_short_errors_supported = yes; then
a946372e 9813 CCS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libccs" 2>&1`
e2997b73 9814 else
a946372e 9815 CCS_PKG_ERRORS=`$PKG_CONFIG --print-errors "libccs" 2>&1`
e2997b73
AK
9816 fi
9817 # Put the nasty error message in config.log where it belongs
a946372e 9818 echo "$CCS_PKG_ERRORS" >&5
e2997b73 9819
b5c2529b 9820 NOTFOUND=0
e2997b73 9821
a946372e
AK
9822for ac_header in ccs.h
9823do
9824as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9825if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9826 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9827$as_echo_n "checking for $ac_header... " >&6; }
9828if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9829 $as_echo_n "(cached) " >&6
d0191583 9830fi
a946372e
AK
9831ac_res=`eval 'as_val=${'$as_ac_Header'}
9832 $as_echo "$as_val"'`
9833 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9834$as_echo "$ac_res" >&6; }
fc54be10 9835else
a946372e
AK
9836 # Is the header compilable?
9837{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9838$as_echo_n "checking $ac_header usability... " >&6; }
9839cat >conftest.$ac_ext <<_ACEOF
9840/* confdefs.h. */
9841_ACEOF
9842cat confdefs.h >>conftest.$ac_ext
9843cat >>conftest.$ac_ext <<_ACEOF
9844/* end confdefs.h. */
9845$ac_includes_default
9846#include <$ac_header>
9847_ACEOF
9848rm -f conftest.$ac_objext
9849if { (ac_try="$ac_compile"
9850case "(($ac_try" in
9851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9852 *) ac_try_echo=$ac_try;;
9853esac
9854eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9855$as_echo "$ac_try_echo") >&5
9856 (eval "$ac_compile") 2>conftest.er1
9857 ac_status=$?
9858 grep -v '^ *+' conftest.er1 >conftest.err
9859 rm -f conftest.er1
9860 cat conftest.err >&5
9861 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9862 (exit $ac_status); } && {
9863 test -z "$ac_c_werror_flag" ||
9864 test ! -s conftest.err
9865 } && test -s conftest.$ac_objext; then
9866 ac_header_compiler=yes
9867else
9868 $as_echo "$as_me: failed program was:" >&5
9869sed 's/^/| /' conftest.$ac_ext >&5
d0191583 9870
a946372e 9871 ac_header_compiler=no
d0191583
JM
9872fi
9873
a946372e
AK
9874rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9875{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9876$as_echo "$ac_header_compiler" >&6; }
fddafd51 9877
a946372e
AK
9878# Is the header present?
9879{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9880$as_echo_n "checking $ac_header presence... " >&6; }
9881cat >conftest.$ac_ext <<_ACEOF
9882/* confdefs.h. */
9883_ACEOF
9884cat confdefs.h >>conftest.$ac_ext
9885cat >>conftest.$ac_ext <<_ACEOF
9886/* end confdefs.h. */
9887#include <$ac_header>
9888_ACEOF
9889if { (ac_try="$ac_cpp conftest.$ac_ext"
9890case "(($ac_try" in
9891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9892 *) ac_try_echo=$ac_try;;
9893esac
9894eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9895$as_echo "$ac_try_echo") >&5
9896 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9897 ac_status=$?
9898 grep -v '^ *+' conftest.er1 >conftest.err
9899 rm -f conftest.er1
9900 cat conftest.err >&5
9901 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9902 (exit $ac_status); } >/dev/null && {
9903 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9904 test ! -s conftest.err
9905 }; then
9906 ac_header_preproc=yes
9907else
9908 $as_echo "$as_me: failed program was:" >&5
9909sed 's/^/| /' conftest.$ac_ext >&5
9910
9911 ac_header_preproc=no
9912fi
9913
9914rm -f conftest.err conftest.$ac_ext
9915{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9916$as_echo "$ac_header_preproc" >&6; }
9917
9918# So? What about this header?
9919case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9920 yes:no: )
9921 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9922$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9923 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9924$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9925 ac_header_preproc=yes
9926 ;;
9927 no:yes:* )
9928 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9929$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9930 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9931$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9932 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9933$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9934 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9935$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9936 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9937$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9938 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9939$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9940
9941 ;;
9942esac
9943{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9944$as_echo_n "checking for $ac_header... " >&6; }
9945if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9946 $as_echo_n "(cached) " >&6
9947else
9948 eval "$as_ac_Header=\$ac_header_preproc"
9949fi
9950ac_res=`eval 'as_val=${'$as_ac_Header'}
9951 $as_echo "$as_val"'`
9952 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9953$as_echo "$ac_res" >&6; }
9954
9955fi
9956as_val=`eval 'as_val=${'$as_ac_Header'}
9957 $as_echo "$as_val"'`
9958 if test "x$as_val" = x""yes; then
9959 cat >>confdefs.h <<_ACEOF
9960#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9961_ACEOF
9962
9963else
9964 $bailout
9965fi
9966
9967done
9968
9969 check_lib_no_libs ccs ccs_connect
9970 if test $NOTFOUND = 0; then
9971 { $as_echo "$as_me:$LINENO: result: no pkg for libccs, using -lccs" >&5
9972$as_echo "no pkg for libccs, using -lccs" >&6; }
9973 CCS_LIBS="-lccs"
9974 HAVE_CCS=yes
9975 fi
9976elif test $pkg_failed = untried; then
b5c2529b
ZK
9977 { $as_echo "$as_me:$LINENO: result: no" >&5
9978$as_echo "no" >&6; }
a946372e
AK
9979 NOTFOUND=0
9980
9981for ac_header in ccs.h
9982do
9983as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9984if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9985 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9986$as_echo_n "checking for $ac_header... " >&6; }
9987if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9988 $as_echo_n "(cached) " >&6
9989fi
9990ac_res=`eval 'as_val=${'$as_ac_Header'}
9991 $as_echo "$as_val"'`
9992 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9993$as_echo "$ac_res" >&6; }
9994else
9995 # Is the header compilable?
9996{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9997$as_echo_n "checking $ac_header usability... " >&6; }
9998cat >conftest.$ac_ext <<_ACEOF
9999/* confdefs.h. */
10000_ACEOF
10001cat confdefs.h >>conftest.$ac_ext
10002cat >>conftest.$ac_ext <<_ACEOF
10003/* end confdefs.h. */
10004$ac_includes_default
10005#include <$ac_header>
10006_ACEOF
10007rm -f conftest.$ac_objext
10008if { (ac_try="$ac_compile"
10009case "(($ac_try" in
10010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10011 *) ac_try_echo=$ac_try;;
10012esac
10013eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10014$as_echo "$ac_try_echo") >&5
10015 (eval "$ac_compile") 2>conftest.er1
10016 ac_status=$?
10017 grep -v '^ *+' conftest.er1 >conftest.err
10018 rm -f conftest.er1
10019 cat conftest.err >&5
10020 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10021 (exit $ac_status); } && {
10022 test -z "$ac_c_werror_flag" ||
10023 test ! -s conftest.err
10024 } && test -s conftest.$ac_objext; then
10025 ac_header_compiler=yes
10026else
10027 $as_echo "$as_me: failed program was:" >&5
10028sed 's/^/| /' conftest.$ac_ext >&5
10029
10030 ac_header_compiler=no
10031fi
10032
10033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10034{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10035$as_echo "$ac_header_compiler" >&6; }
10036
10037# Is the header present?
10038{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10039$as_echo_n "checking $ac_header presence... " >&6; }
10040cat >conftest.$ac_ext <<_ACEOF
10041/* confdefs.h. */
10042_ACEOF
10043cat confdefs.h >>conftest.$ac_ext
10044cat >>conftest.$ac_ext <<_ACEOF
10045/* end confdefs.h. */
10046#include <$ac_header>
10047_ACEOF
10048if { (ac_try="$ac_cpp conftest.$ac_ext"
10049case "(($ac_try" in
10050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10051 *) ac_try_echo=$ac_try;;
10052esac
10053eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10054$as_echo "$ac_try_echo") >&5
10055 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10056 ac_status=$?
10057 grep -v '^ *+' conftest.er1 >conftest.err
10058 rm -f conftest.er1
10059 cat conftest.err >&5
10060 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10061 (exit $ac_status); } >/dev/null && {
10062 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10063 test ! -s conftest.err
10064 }; then
10065 ac_header_preproc=yes
10066else
10067 $as_echo "$as_me: failed program was:" >&5
10068sed 's/^/| /' conftest.$ac_ext >&5
10069
10070 ac_header_preproc=no
10071fi
10072
10073rm -f conftest.err conftest.$ac_ext
10074{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10075$as_echo "$ac_header_preproc" >&6; }
10076
10077# So? What about this header?
10078case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10079 yes:no: )
10080 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10081$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10082 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10083$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10084 ac_header_preproc=yes
10085 ;;
10086 no:yes:* )
10087 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10088$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10089 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10090$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10091 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10092$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10093 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10094$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10095 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10096$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10097 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10098$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10099
10100 ;;
10101esac
10102{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10103$as_echo_n "checking for $ac_header... " >&6; }
10104if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10105 $as_echo_n "(cached) " >&6
10106else
10107 eval "$as_ac_Header=\$ac_header_preproc"
10108fi
10109ac_res=`eval 'as_val=${'$as_ac_Header'}
10110 $as_echo "$as_val"'`
10111 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10112$as_echo "$ac_res" >&6; }
10113
10114fi
10115as_val=`eval 'as_val=${'$as_ac_Header'}
10116 $as_echo "$as_val"'`
10117 if test "x$as_val" = x""yes; then
10118 cat >>confdefs.h <<_ACEOF
10119#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10120_ACEOF
10121
10122else
10123 $bailout
10124fi
10125
10126done
10127
10128 check_lib_no_libs ccs ccs_connect
10129 if test $NOTFOUND = 0; then
10130 { $as_echo "$as_me:$LINENO: result: no pkg for libccs, using -lccs" >&5
10131$as_echo "no pkg for libccs, using -lccs" >&6; }
10132 CCS_LIBS="-lccs"
10133 HAVE_CCS=yes
10134 fi
10135else
10136 CCS_CFLAGS=$pkg_cv_CCS_CFLAGS
10137 CCS_LIBS=$pkg_cv_CCS_LIBS
10138 { $as_echo "$as_me:$LINENO: result: yes" >&5
10139$as_echo "yes" >&6; }
10140 HAVE_CCS=yes
10141fi
10142
10143pkg_failed=no
10144{ $as_echo "$as_me:$LINENO: checking for GULM" >&5
10145$as_echo_n "checking for GULM... " >&6; }
10146
10147if test -n "$GULM_CFLAGS"; then
10148 pkg_cv_GULM_CFLAGS="$GULM_CFLAGS"
10149 elif test -n "$PKG_CONFIG"; then
10150 if test -n "$PKG_CONFIG" && \
10151 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgulm\"") >&5
10152 ($PKG_CONFIG --exists --print-errors "libgulm") 2>&5
10153 ac_status=$?
10154 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10155 (exit $ac_status); }; then
10156 pkg_cv_GULM_CFLAGS=`$PKG_CONFIG --cflags "libgulm" 2>/dev/null`
10157else
10158 pkg_failed=yes
10159fi
10160 else
10161 pkg_failed=untried
10162fi
10163if test -n "$GULM_LIBS"; then
10164 pkg_cv_GULM_LIBS="$GULM_LIBS"
10165 elif test -n "$PKG_CONFIG"; then
10166 if test -n "$PKG_CONFIG" && \
10167 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgulm\"") >&5
10168 ($PKG_CONFIG --exists --print-errors "libgulm") 2>&5
10169 ac_status=$?
10170 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10171 (exit $ac_status); }; then
10172 pkg_cv_GULM_LIBS=`$PKG_CONFIG --libs "libgulm" 2>/dev/null`
10173else
10174 pkg_failed=yes
10175fi
10176 else
10177 pkg_failed=untried
10178fi
10179
10180
10181
10182if test $pkg_failed = yes; then
b5c2529b
ZK
10183 { $as_echo "$as_me:$LINENO: result: no" >&5
10184$as_echo "no" >&6; }
a946372e
AK
10185
10186if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10187 _pkg_short_errors_supported=yes
10188else
10189 _pkg_short_errors_supported=no
10190fi
10191 if test $_pkg_short_errors_supported = yes; then
10192 GULM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgulm" 2>&1`
10193 else
10194 GULM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgulm" 2>&1`
10195 fi
10196 # Put the nasty error message in config.log where it belongs
10197 echo "$GULM_PKG_ERRORS" >&5
10198
b5c2529b 10199 NOTFOUND=0
a946372e
AK
10200
10201for ac_header in libgulm.h
10202do
10203as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10204if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10205 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10206$as_echo_n "checking for $ac_header... " >&6; }
10207if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10208 $as_echo_n "(cached) " >&6
10209fi
10210ac_res=`eval 'as_val=${'$as_ac_Header'}
10211 $as_echo "$as_val"'`
10212 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10213$as_echo "$ac_res" >&6; }
10214else
10215 # Is the header compilable?
10216{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10217$as_echo_n "checking $ac_header usability... " >&6; }
10218cat >conftest.$ac_ext <<_ACEOF
10219/* confdefs.h. */
10220_ACEOF
10221cat confdefs.h >>conftest.$ac_ext
10222cat >>conftest.$ac_ext <<_ACEOF
10223/* end confdefs.h. */
10224$ac_includes_default
10225#include <$ac_header>
10226_ACEOF
10227rm -f conftest.$ac_objext
10228if { (ac_try="$ac_compile"
10229case "(($ac_try" in
10230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10231 *) ac_try_echo=$ac_try;;
10232esac
10233eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10234$as_echo "$ac_try_echo") >&5
10235 (eval "$ac_compile") 2>conftest.er1
10236 ac_status=$?
10237 grep -v '^ *+' conftest.er1 >conftest.err
10238 rm -f conftest.er1
10239 cat conftest.err >&5
10240 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10241 (exit $ac_status); } && {
10242 test -z "$ac_c_werror_flag" ||
10243 test ! -s conftest.err
10244 } && test -s conftest.$ac_objext; then
10245 ac_header_compiler=yes
10246else
10247 $as_echo "$as_me: failed program was:" >&5
10248sed 's/^/| /' conftest.$ac_ext >&5
10249
10250 ac_header_compiler=no
10251fi
10252
10253rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10254{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10255$as_echo "$ac_header_compiler" >&6; }
10256
10257# Is the header present?
10258{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10259$as_echo_n "checking $ac_header presence... " >&6; }
10260cat >conftest.$ac_ext <<_ACEOF
10261/* confdefs.h. */
10262_ACEOF
10263cat confdefs.h >>conftest.$ac_ext
10264cat >>conftest.$ac_ext <<_ACEOF
10265/* end confdefs.h. */
10266#include <$ac_header>
10267_ACEOF
10268if { (ac_try="$ac_cpp conftest.$ac_ext"
10269case "(($ac_try" in
10270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10271 *) ac_try_echo=$ac_try;;
10272esac
10273eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10274$as_echo "$ac_try_echo") >&5
10275 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10276 ac_status=$?
10277 grep -v '^ *+' conftest.er1 >conftest.err
10278 rm -f conftest.er1
10279 cat conftest.err >&5
10280 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10281 (exit $ac_status); } >/dev/null && {
10282 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10283 test ! -s conftest.err
10284 }; then
10285 ac_header_preproc=yes
10286else
10287 $as_echo "$as_me: failed program was:" >&5
10288sed 's/^/| /' conftest.$ac_ext >&5
10289
10290 ac_header_preproc=no
10291fi
10292
10293rm -f conftest.err conftest.$ac_ext
10294{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10295$as_echo "$ac_header_preproc" >&6; }
10296
10297# So? What about this header?
10298case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10299 yes:no: )
10300 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10301$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10302 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10303$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10304 ac_header_preproc=yes
10305 ;;
10306 no:yes:* )
10307 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10308$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10309 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10310$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10311 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10312$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10313 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10314$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10315 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10316$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10317 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10318$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10319
10320 ;;
10321esac
10322{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10323$as_echo_n "checking for $ac_header... " >&6; }
10324if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10325 $as_echo_n "(cached) " >&6
10326else
10327 eval "$as_ac_Header=\$ac_header_preproc"
10328fi
10329ac_res=`eval 'as_val=${'$as_ac_Header'}
10330 $as_echo "$as_val"'`
10331 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10332$as_echo "$ac_res" >&6; }
10333
10334fi
10335as_val=`eval 'as_val=${'$as_ac_Header'}
10336 $as_echo "$as_val"'`
10337 if test "x$as_val" = x""yes; then
10338 cat >>confdefs.h <<_ACEOF
10339#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10340_ACEOF
10341
10342else
10343 $bailout
10344fi
10345
10346done
10347
10348 check_lib_no_libs gulm lg_core_login
10349 if test $NOTFOUND = 0; then
10350 { $as_echo "$as_me:$LINENO: result: no pkg for libgulm, using -lgulm" >&5
10351$as_echo "no pkg for libgulm, using -lgulm" >&6; }
10352 GULM_LIBS="-lgulm"
10353 HAVE_GULM=yes
10354 fi
10355elif test $pkg_failed = untried; then
b5c2529b
ZK
10356 { $as_echo "$as_me:$LINENO: result: no" >&5
10357$as_echo "no" >&6; }
a946372e
AK
10358 NOTFOUND=0
10359
10360for ac_header in libgulm.h
10361do
10362as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10363if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10364 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10365$as_echo_n "checking for $ac_header... " >&6; }
10366if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10367 $as_echo_n "(cached) " >&6
10368fi
10369ac_res=`eval 'as_val=${'$as_ac_Header'}
10370 $as_echo "$as_val"'`
10371 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10372$as_echo "$ac_res" >&6; }
10373else
10374 # Is the header compilable?
10375{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10376$as_echo_n "checking $ac_header usability... " >&6; }
10377cat >conftest.$ac_ext <<_ACEOF
10378/* confdefs.h. */
10379_ACEOF
10380cat confdefs.h >>conftest.$ac_ext
10381cat >>conftest.$ac_ext <<_ACEOF
10382/* end confdefs.h. */
10383$ac_includes_default
10384#include <$ac_header>
10385_ACEOF
10386rm -f conftest.$ac_objext
10387if { (ac_try="$ac_compile"
10388case "(($ac_try" in
10389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10390 *) ac_try_echo=$ac_try;;
10391esac
10392eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10393$as_echo "$ac_try_echo") >&5
10394 (eval "$ac_compile") 2>conftest.er1
10395 ac_status=$?
10396 grep -v '^ *+' conftest.er1 >conftest.err
10397 rm -f conftest.er1
10398 cat conftest.err >&5
10399 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10400 (exit $ac_status); } && {
10401 test -z "$ac_c_werror_flag" ||
10402 test ! -s conftest.err
10403 } && test -s conftest.$ac_objext; then
10404 ac_header_compiler=yes
10405else
10406 $as_echo "$as_me: failed program was:" >&5
10407sed 's/^/| /' conftest.$ac_ext >&5
10408
10409 ac_header_compiler=no
10410fi
10411
10412rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10413{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10414$as_echo "$ac_header_compiler" >&6; }
10415
10416# Is the header present?
10417{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10418$as_echo_n "checking $ac_header presence... " >&6; }
10419cat >conftest.$ac_ext <<_ACEOF
10420/* confdefs.h. */
10421_ACEOF
10422cat confdefs.h >>conftest.$ac_ext
10423cat >>conftest.$ac_ext <<_ACEOF
10424/* end confdefs.h. */
10425#include <$ac_header>
10426_ACEOF
10427if { (ac_try="$ac_cpp conftest.$ac_ext"
10428case "(($ac_try" in
10429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10430 *) ac_try_echo=$ac_try;;
10431esac
10432eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10433$as_echo "$ac_try_echo") >&5
10434 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10435 ac_status=$?
10436 grep -v '^ *+' conftest.er1 >conftest.err
10437 rm -f conftest.er1
10438 cat conftest.err >&5
10439 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10440 (exit $ac_status); } >/dev/null && {
10441 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10442 test ! -s conftest.err
10443 }; then
10444 ac_header_preproc=yes
10445else
10446 $as_echo "$as_me: failed program was:" >&5
10447sed 's/^/| /' conftest.$ac_ext >&5
10448
10449 ac_header_preproc=no
10450fi
10451
10452rm -f conftest.err conftest.$ac_ext
10453{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10454$as_echo "$ac_header_preproc" >&6; }
10455
10456# So? What about this header?
10457case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10458 yes:no: )
10459 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10460$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10461 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10462$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10463 ac_header_preproc=yes
10464 ;;
10465 no:yes:* )
10466 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10467$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10468 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10469$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10470 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10471$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10472 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10473$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10474 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10475$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10476 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10477$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10478
10479 ;;
10480esac
10481{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10482$as_echo_n "checking for $ac_header... " >&6; }
10483if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10484 $as_echo_n "(cached) " >&6
10485else
10486 eval "$as_ac_Header=\$ac_header_preproc"
10487fi
10488ac_res=`eval 'as_val=${'$as_ac_Header'}
10489 $as_echo "$as_val"'`
10490 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10491$as_echo "$ac_res" >&6; }
10492
10493fi
10494as_val=`eval 'as_val=${'$as_ac_Header'}
10495 $as_echo "$as_val"'`
10496 if test "x$as_val" = x""yes; then
10497 cat >>confdefs.h <<_ACEOF
10498#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10499_ACEOF
10500
10501else
10502 $bailout
10503fi
10504
10505done
10506
10507 check_lib_no_libs gulm lg_core_login
10508 if test $NOTFOUND = 0; then
10509 { $as_echo "$as_me:$LINENO: result: no pkg for libgulm, using -lgulm" >&5
10510$as_echo "no pkg for libgulm, using -lgulm" >&6; }
10511 GULM_LIBS="-lgulm"
10512 HAVE_GULM=yes
10513 fi
10514else
10515 GULM_CFLAGS=$pkg_cv_GULM_CFLAGS
10516 GULM_LIBS=$pkg_cv_GULM_LIBS
10517 { $as_echo "$as_me:$LINENO: result: yes" >&5
10518$as_echo "yes" >&6; }
10519 HAVE_GULM=yes
10520fi
10521fi
10522
10523if test x$BUILDCMAN = xyes; then
10524
10525pkg_failed=no
10526{ $as_echo "$as_me:$LINENO: checking for CMAN" >&5
10527$as_echo_n "checking for CMAN... " >&6; }
10528
10529if test -n "$CMAN_CFLAGS"; then
10530 pkg_cv_CMAN_CFLAGS="$CMAN_CFLAGS"
10531 elif test -n "$PKG_CONFIG"; then
10532 if test -n "$PKG_CONFIG" && \
10533 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcman\"") >&5
10534 ($PKG_CONFIG --exists --print-errors "libcman") 2>&5
10535 ac_status=$?
10536 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10537 (exit $ac_status); }; then
10538 pkg_cv_CMAN_CFLAGS=`$PKG_CONFIG --cflags "libcman" 2>/dev/null`
10539else
10540 pkg_failed=yes
10541fi
10542 else
10543 pkg_failed=untried
10544fi
10545if test -n "$CMAN_LIBS"; then
10546 pkg_cv_CMAN_LIBS="$CMAN_LIBS"
10547 elif test -n "$PKG_CONFIG"; then
10548 if test -n "$PKG_CONFIG" && \
10549 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcman\"") >&5
10550 ($PKG_CONFIG --exists --print-errors "libcman") 2>&5
10551 ac_status=$?
10552 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10553 (exit $ac_status); }; then
10554 pkg_cv_CMAN_LIBS=`$PKG_CONFIG --libs "libcman" 2>/dev/null`
10555else
10556 pkg_failed=yes
10557fi
10558 else
10559 pkg_failed=untried
10560fi
10561
10562
10563
10564if test $pkg_failed = yes; then
b5c2529b
ZK
10565 { $as_echo "$as_me:$LINENO: result: no" >&5
10566$as_echo "no" >&6; }
a946372e
AK
10567
10568if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10569 _pkg_short_errors_supported=yes
10570else
10571 _pkg_short_errors_supported=no
10572fi
10573 if test $_pkg_short_errors_supported = yes; then
10574 CMAN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcman" 2>&1`
10575 else
10576 CMAN_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcman" 2>&1`
10577 fi
10578 # Put the nasty error message in config.log where it belongs
10579 echo "$CMAN_PKG_ERRORS" >&5
10580
b5c2529b 10581 NOTFOUND=0
a946372e
AK
10582
10583for ac_header in libcman.h
10584do
10585as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10586if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10587 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10588$as_echo_n "checking for $ac_header... " >&6; }
10589if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10590 $as_echo_n "(cached) " >&6
10591fi
10592ac_res=`eval 'as_val=${'$as_ac_Header'}
10593 $as_echo "$as_val"'`
10594 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10595$as_echo "$ac_res" >&6; }
10596else
10597 # Is the header compilable?
10598{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10599$as_echo_n "checking $ac_header usability... " >&6; }
10600cat >conftest.$ac_ext <<_ACEOF
10601/* confdefs.h. */
10602_ACEOF
10603cat confdefs.h >>conftest.$ac_ext
10604cat >>conftest.$ac_ext <<_ACEOF
10605/* end confdefs.h. */
10606$ac_includes_default
10607#include <$ac_header>
10608_ACEOF
10609rm -f conftest.$ac_objext
10610if { (ac_try="$ac_compile"
10611case "(($ac_try" in
10612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10613 *) ac_try_echo=$ac_try;;
10614esac
10615eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10616$as_echo "$ac_try_echo") >&5
10617 (eval "$ac_compile") 2>conftest.er1
10618 ac_status=$?
10619 grep -v '^ *+' conftest.er1 >conftest.err
10620 rm -f conftest.er1
10621 cat conftest.err >&5
10622 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10623 (exit $ac_status); } && {
10624 test -z "$ac_c_werror_flag" ||
10625 test ! -s conftest.err
10626 } && test -s conftest.$ac_objext; then
10627 ac_header_compiler=yes
10628else
10629 $as_echo "$as_me: failed program was:" >&5
10630sed 's/^/| /' conftest.$ac_ext >&5
10631
10632 ac_header_compiler=no
10633fi
10634
10635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10636{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10637$as_echo "$ac_header_compiler" >&6; }
10638
10639# Is the header present?
10640{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10641$as_echo_n "checking $ac_header presence... " >&6; }
10642cat >conftest.$ac_ext <<_ACEOF
10643/* confdefs.h. */
10644_ACEOF
10645cat confdefs.h >>conftest.$ac_ext
10646cat >>conftest.$ac_ext <<_ACEOF
10647/* end confdefs.h. */
10648#include <$ac_header>
10649_ACEOF
10650if { (ac_try="$ac_cpp conftest.$ac_ext"
10651case "(($ac_try" in
10652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10653 *) ac_try_echo=$ac_try;;
10654esac
10655eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10656$as_echo "$ac_try_echo") >&5
10657 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10658 ac_status=$?
10659 grep -v '^ *+' conftest.er1 >conftest.err
10660 rm -f conftest.er1
10661 cat conftest.err >&5
10662 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10663 (exit $ac_status); } >/dev/null && {
10664 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10665 test ! -s conftest.err
10666 }; then
10667 ac_header_preproc=yes
10668else
10669 $as_echo "$as_me: failed program was:" >&5
10670sed 's/^/| /' conftest.$ac_ext >&5
10671
10672 ac_header_preproc=no
10673fi
10674
10675rm -f conftest.err conftest.$ac_ext
10676{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10677$as_echo "$ac_header_preproc" >&6; }
10678
10679# So? What about this header?
10680case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10681 yes:no: )
10682 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10683$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10684 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10685$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10686 ac_header_preproc=yes
10687 ;;
10688 no:yes:* )
10689 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10690$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10691 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10692$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10693 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10694$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10695 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10696$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10697 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10698$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10699 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10700$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10701
10702 ;;
10703esac
10704{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10705$as_echo_n "checking for $ac_header... " >&6; }
10706if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10707 $as_echo_n "(cached) " >&6
10708else
10709 eval "$as_ac_Header=\$ac_header_preproc"
10710fi
10711ac_res=`eval 'as_val=${'$as_ac_Header'}
10712 $as_echo "$as_val"'`
10713 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10714$as_echo "$ac_res" >&6; }
10715
10716fi
10717as_val=`eval 'as_val=${'$as_ac_Header'}
10718 $as_echo "$as_val"'`
10719 if test "x$as_val" = x""yes; then
10720 cat >>confdefs.h <<_ACEOF
10721#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10722_ACEOF
10723
10724else
10725 $bailout
10726fi
10727
10728done
10729
10730 check_lib_no_libs cman cman_init
10731 if test $NOTFOUND = 0; then
10732 { $as_echo "$as_me:$LINENO: result: no pkg for libcman, using -lcman" >&5
10733$as_echo "no pkg for libcman, using -lcman" >&6; }
10734 CMAN_LIBS="-lcman"
10735 HAVE_CMAN=yes
10736 fi
10737elif test $pkg_failed = untried; then
b5c2529b
ZK
10738 { $as_echo "$as_me:$LINENO: result: no" >&5
10739$as_echo "no" >&6; }
a946372e
AK
10740 NOTFOUND=0
10741
10742for ac_header in libcman.h
10743do
10744as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10745if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10746 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10747$as_echo_n "checking for $ac_header... " >&6; }
10748if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10749 $as_echo_n "(cached) " >&6
10750fi
10751ac_res=`eval 'as_val=${'$as_ac_Header'}
10752 $as_echo "$as_val"'`
10753 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10754$as_echo "$ac_res" >&6; }
10755else
10756 # Is the header compilable?
10757{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10758$as_echo_n "checking $ac_header usability... " >&6; }
10759cat >conftest.$ac_ext <<_ACEOF
10760/* confdefs.h. */
10761_ACEOF
10762cat confdefs.h >>conftest.$ac_ext
10763cat >>conftest.$ac_ext <<_ACEOF
10764/* end confdefs.h. */
10765$ac_includes_default
10766#include <$ac_header>
10767_ACEOF
10768rm -f conftest.$ac_objext
10769if { (ac_try="$ac_compile"
10770case "(($ac_try" in
10771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10772 *) ac_try_echo=$ac_try;;
10773esac
10774eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10775$as_echo "$ac_try_echo") >&5
10776 (eval "$ac_compile") 2>conftest.er1
10777 ac_status=$?
10778 grep -v '^ *+' conftest.er1 >conftest.err
10779 rm -f conftest.er1
10780 cat conftest.err >&5
10781 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10782 (exit $ac_status); } && {
10783 test -z "$ac_c_werror_flag" ||
10784 test ! -s conftest.err
10785 } && test -s conftest.$ac_objext; then
10786 ac_header_compiler=yes
10787else
10788 $as_echo "$as_me: failed program was:" >&5
10789sed 's/^/| /' conftest.$ac_ext >&5
10790
10791 ac_header_compiler=no
10792fi
10793
10794rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10795{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10796$as_echo "$ac_header_compiler" >&6; }
10797
10798# Is the header present?
10799{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10800$as_echo_n "checking $ac_header presence... " >&6; }
10801cat >conftest.$ac_ext <<_ACEOF
10802/* confdefs.h. */
10803_ACEOF
10804cat confdefs.h >>conftest.$ac_ext
10805cat >>conftest.$ac_ext <<_ACEOF
10806/* end confdefs.h. */
10807#include <$ac_header>
10808_ACEOF
10809if { (ac_try="$ac_cpp conftest.$ac_ext"
10810case "(($ac_try" in
10811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10812 *) ac_try_echo=$ac_try;;
10813esac
10814eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10815$as_echo "$ac_try_echo") >&5
10816 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10817 ac_status=$?
10818 grep -v '^ *+' conftest.er1 >conftest.err
10819 rm -f conftest.er1
10820 cat conftest.err >&5
10821 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10822 (exit $ac_status); } >/dev/null && {
10823 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10824 test ! -s conftest.err
10825 }; then
10826 ac_header_preproc=yes
10827else
10828 $as_echo "$as_me: failed program was:" >&5
10829sed 's/^/| /' conftest.$ac_ext >&5
10830
10831 ac_header_preproc=no
10832fi
10833
10834rm -f conftest.err conftest.$ac_ext
10835{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10836$as_echo "$ac_header_preproc" >&6; }
10837
10838# So? What about this header?
10839case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10840 yes:no: )
10841 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10842$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10843 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10844$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10845 ac_header_preproc=yes
10846 ;;
10847 no:yes:* )
10848 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10849$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10850 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10851$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10852 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10853$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10854 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10855$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10856 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10857$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10858 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10859$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10860
10861 ;;
10862esac
10863{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10864$as_echo_n "checking for $ac_header... " >&6; }
10865if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10866 $as_echo_n "(cached) " >&6
10867else
10868 eval "$as_ac_Header=\$ac_header_preproc"
10869fi
10870ac_res=`eval 'as_val=${'$as_ac_Header'}
10871 $as_echo "$as_val"'`
10872 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10873$as_echo "$ac_res" >&6; }
10874
10875fi
10876as_val=`eval 'as_val=${'$as_ac_Header'}
10877 $as_echo "$as_val"'`
10878 if test "x$as_val" = x""yes; then
10879 cat >>confdefs.h <<_ACEOF
10880#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10881_ACEOF
10882
10883else
10884 $bailout
10885fi
10886
10887done
10888
10889 check_lib_no_libs cman cman_init
10890 if test $NOTFOUND = 0; then
10891 { $as_echo "$as_me:$LINENO: result: no pkg for libcman, using -lcman" >&5
10892$as_echo "no pkg for libcman, using -lcman" >&6; }
10893 CMAN_LIBS="-lcman"
10894 HAVE_CMAN=yes
10895 fi
10896else
10897 CMAN_CFLAGS=$pkg_cv_CMAN_CFLAGS
10898 CMAN_LIBS=$pkg_cv_CMAN_LIBS
10899 { $as_echo "$as_me:$LINENO: result: yes" >&5
10900$as_echo "yes" >&6; }
10901 HAVE_CMAN=yes
10902fi
10903 CHECKCONFDB=yes
10904 CHECKDLM=yes
10905fi
10906
10907if test x$BUILDCOROSYNC = xyes || \
10908 test x$BUILDOPENAIS = xyes; then
10909
10910pkg_failed=no
10911{ $as_echo "$as_me:$LINENO: checking for COROSYNC" >&5
10912$as_echo_n "checking for COROSYNC... " >&6; }
10913
10914if test -n "$COROSYNC_CFLAGS"; then
10915 pkg_cv_COROSYNC_CFLAGS="$COROSYNC_CFLAGS"
10916 elif test -n "$PKG_CONFIG"; then
10917 if test -n "$PKG_CONFIG" && \
10918 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"corosync\"") >&5
10919 ($PKG_CONFIG --exists --print-errors "corosync") 2>&5
10920 ac_status=$?
10921 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10922 (exit $ac_status); }; then
10923 pkg_cv_COROSYNC_CFLAGS=`$PKG_CONFIG --cflags "corosync" 2>/dev/null`
10924else
10925 pkg_failed=yes
10926fi
10927 else
10928 pkg_failed=untried
10929fi
10930if test -n "$COROSYNC_LIBS"; then
10931 pkg_cv_COROSYNC_LIBS="$COROSYNC_LIBS"
10932 elif test -n "$PKG_CONFIG"; then
10933 if test -n "$PKG_CONFIG" && \
10934 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"corosync\"") >&5
10935 ($PKG_CONFIG --exists --print-errors "corosync") 2>&5
10936 ac_status=$?
10937 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10938 (exit $ac_status); }; then
10939 pkg_cv_COROSYNC_LIBS=`$PKG_CONFIG --libs "corosync" 2>/dev/null`
10940else
10941 pkg_failed=yes
10942fi
10943 else
10944 pkg_failed=untried
10945fi
10946
10947
10948
10949if test $pkg_failed = yes; then
b5c2529b
ZK
10950 { $as_echo "$as_me:$LINENO: result: no" >&5
10951$as_echo "no" >&6; }
a946372e
AK
10952
10953if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10954 _pkg_short_errors_supported=yes
10955else
10956 _pkg_short_errors_supported=no
10957fi
10958 if test $_pkg_short_errors_supported = yes; then
10959 COROSYNC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "corosync" 2>&1`
10960 else
10961 COROSYNC_PKG_ERRORS=`$PKG_CONFIG --print-errors "corosync" 2>&1`
10962 fi
10963 # Put the nasty error message in config.log where it belongs
10964 echo "$COROSYNC_PKG_ERRORS" >&5
10965
b5c2529b 10966 $bailout
a946372e 10967elif test $pkg_failed = untried; then
b5c2529b
ZK
10968 { $as_echo "$as_me:$LINENO: result: no" >&5
10969$as_echo "no" >&6; }
a946372e
AK
10970 $bailout
10971else
10972 COROSYNC_CFLAGS=$pkg_cv_COROSYNC_CFLAGS
10973 COROSYNC_LIBS=$pkg_cv_COROSYNC_LIBS
10974 { $as_echo "$as_me:$LINENO: result: yes" >&5
10975$as_echo "yes" >&6; }
10976 HAVE_COROSYNC=yes
10977fi
10978 CHECKCONFDB=yes
10979fi
10980
10981if test x$BUILDCOROSYNC = xyes; then
10982
10983pkg_failed=no
10984{ $as_echo "$as_me:$LINENO: checking for QUORUM" >&5
10985$as_echo_n "checking for QUORUM... " >&6; }
10986
10987if test -n "$QUORUM_CFLAGS"; then
10988 pkg_cv_QUORUM_CFLAGS="$QUORUM_CFLAGS"
10989 elif test -n "$PKG_CONFIG"; then
10990 if test -n "$PKG_CONFIG" && \
10991 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libquorum\"") >&5
10992 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
10993 ac_status=$?
10994 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10995 (exit $ac_status); }; then
10996 pkg_cv_QUORUM_CFLAGS=`$PKG_CONFIG --cflags "libquorum" 2>/dev/null`
10997else
10998 pkg_failed=yes
10999fi
11000 else
11001 pkg_failed=untried
11002fi
11003if test -n "$QUORUM_LIBS"; then
11004 pkg_cv_QUORUM_LIBS="$QUORUM_LIBS"
11005 elif test -n "$PKG_CONFIG"; then
11006 if test -n "$PKG_CONFIG" && \
11007 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libquorum\"") >&5
11008 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
11009 ac_status=$?
11010 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11011 (exit $ac_status); }; then
11012 pkg_cv_QUORUM_LIBS=`$PKG_CONFIG --libs "libquorum" 2>/dev/null`
11013else
11014 pkg_failed=yes
11015fi
11016 else
11017 pkg_failed=untried
11018fi
11019
11020
11021
11022if test $pkg_failed = yes; then
b5c2529b
ZK
11023 { $as_echo "$as_me:$LINENO: result: no" >&5
11024$as_echo "no" >&6; }
a946372e
AK
11025
11026if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11027 _pkg_short_errors_supported=yes
11028else
11029 _pkg_short_errors_supported=no
11030fi
11031 if test $_pkg_short_errors_supported = yes; then
11032 QUORUM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libquorum" 2>&1`
11033 else
11034 QUORUM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libquorum" 2>&1`
11035 fi
11036 # Put the nasty error message in config.log where it belongs
11037 echo "$QUORUM_PKG_ERRORS" >&5
11038
b5c2529b 11039 $bailout
a946372e 11040elif test $pkg_failed = untried; then
b5c2529b
ZK
11041 { $as_echo "$as_me:$LINENO: result: no" >&5
11042$as_echo "no" >&6; }
a946372e
AK
11043 $bailout
11044else
11045 QUORUM_CFLAGS=$pkg_cv_QUORUM_CFLAGS
11046 QUORUM_LIBS=$pkg_cv_QUORUM_LIBS
11047 { $as_echo "$as_me:$LINENO: result: yes" >&5
11048$as_echo "yes" >&6; }
11049 HAVE_QUORUM=yes
11050fi
11051 CHECKCPG=yes
11052 CHECKDLM=yes
11053fi
11054
11055if test x$BUILDOPENAIS = xyes; then
11056
11057pkg_failed=no
11058{ $as_echo "$as_me:$LINENO: checking for SALCK" >&5
11059$as_echo_n "checking for SALCK... " >&6; }
11060
11061if test -n "$SALCK_CFLAGS"; then
11062 pkg_cv_SALCK_CFLAGS="$SALCK_CFLAGS"
11063 elif test -n "$PKG_CONFIG"; then
11064 if test -n "$PKG_CONFIG" && \
11065 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaLck\"") >&5
11066 ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5
11067 ac_status=$?
11068 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11069 (exit $ac_status); }; then
11070 pkg_cv_SALCK_CFLAGS=`$PKG_CONFIG --cflags "libSaLck" 2>/dev/null`
11071else
11072 pkg_failed=yes
11073fi
11074 else
11075 pkg_failed=untried
11076fi
11077if test -n "$SALCK_LIBS"; then
11078 pkg_cv_SALCK_LIBS="$SALCK_LIBS"
11079 elif test -n "$PKG_CONFIG"; then
11080 if test -n "$PKG_CONFIG" && \
11081 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaLck\"") >&5
11082 ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5
11083 ac_status=$?
11084 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11085 (exit $ac_status); }; then
11086 pkg_cv_SALCK_LIBS=`$PKG_CONFIG --libs "libSaLck" 2>/dev/null`
11087else
11088 pkg_failed=yes
11089fi
11090 else
11091 pkg_failed=untried
11092fi
11093
11094
11095
11096if test $pkg_failed = yes; then
b5c2529b
ZK
11097 { $as_echo "$as_me:$LINENO: result: no" >&5
11098$as_echo "no" >&6; }
a946372e
AK
11099
11100if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11101 _pkg_short_errors_supported=yes
11102else
11103 _pkg_short_errors_supported=no
11104fi
11105 if test $_pkg_short_errors_supported = yes; then
11106 SALCK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaLck" 2>&1`
11107 else
11108 SALCK_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaLck" 2>&1`
11109 fi
11110 # Put the nasty error message in config.log where it belongs
11111 echo "$SALCK_PKG_ERRORS" >&5
11112
b5c2529b 11113 $bailout
a946372e 11114elif test $pkg_failed = untried; then
b5c2529b
ZK
11115 { $as_echo "$as_me:$LINENO: result: no" >&5
11116$as_echo "no" >&6; }
a946372e
AK
11117 $bailout
11118else
11119 SALCK_CFLAGS=$pkg_cv_SALCK_CFLAGS
11120 SALCK_LIBS=$pkg_cv_SALCK_LIBS
11121 { $as_echo "$as_me:$LINENO: result: yes" >&5
11122$as_echo "yes" >&6; }
11123 HAVE_SALCK=yes
11124fi
11125 CHECKCPG=yes
11126fi
11127
11128
11129
11130if test x$CHECKCONFDB = xyes; then
11131
11132pkg_failed=no
11133{ $as_echo "$as_me:$LINENO: checking for CONFDB" >&5
11134$as_echo_n "checking for CONFDB... " >&6; }
11135
11136if test -n "$CONFDB_CFLAGS"; then
11137 pkg_cv_CONFDB_CFLAGS="$CONFDB_CFLAGS"
11138 elif test -n "$PKG_CONFIG"; then
11139 if test -n "$PKG_CONFIG" && \
11140 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libconfdb\"") >&5
11141 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
11142 ac_status=$?
11143 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11144 (exit $ac_status); }; then
11145 pkg_cv_CONFDB_CFLAGS=`$PKG_CONFIG --cflags "libconfdb" 2>/dev/null`
11146else
11147 pkg_failed=yes
11148fi
11149 else
11150 pkg_failed=untried
11151fi
11152if test -n "$CONFDB_LIBS"; then
11153 pkg_cv_CONFDB_LIBS="$CONFDB_LIBS"
11154 elif test -n "$PKG_CONFIG"; then
11155 if test -n "$PKG_CONFIG" && \
11156 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libconfdb\"") >&5
11157 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
11158 ac_status=$?
11159 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11160 (exit $ac_status); }; then
11161 pkg_cv_CONFDB_LIBS=`$PKG_CONFIG --libs "libconfdb" 2>/dev/null`
11162else
11163 pkg_failed=yes
11164fi
11165 else
11166 pkg_failed=untried
11167fi
11168
11169
11170
11171if test $pkg_failed = yes; then
b5c2529b
ZK
11172 { $as_echo "$as_me:$LINENO: result: no" >&5
11173$as_echo "no" >&6; }
a946372e
AK
11174
11175if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11176 _pkg_short_errors_supported=yes
11177else
11178 _pkg_short_errors_supported=no
11179fi
11180 if test $_pkg_short_errors_supported = yes; then
11181 CONFDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libconfdb" 2>&1`
11182 else
11183 CONFDB_PKG_ERRORS=`$PKG_CONFIG --print-errors "libconfdb" 2>&1`
11184 fi
11185 # Put the nasty error message in config.log where it belongs
11186 echo "$CONFDB_PKG_ERRORS" >&5
11187
b5c2529b 11188 HAVE_CONFDB=no
a946372e 11189elif test $pkg_failed = untried; then
b5c2529b
ZK
11190 { $as_echo "$as_me:$LINENO: result: no" >&5
11191$as_echo "no" >&6; }
a946372e
AK
11192 HAVE_CONFDB=no
11193else
11194 CONFDB_CFLAGS=$pkg_cv_CONFDB_CFLAGS
11195 CONFDB_LIBS=$pkg_cv_CONFDB_LIBS
11196 { $as_echo "$as_me:$LINENO: result: yes" >&5
11197$as_echo "yes" >&6; }
11198 HAVE_CONFDB=yes
11199fi
11200
11201
11202for ac_header in corosync/confdb.h
11203do
11204as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11205if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11206 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11207$as_echo_n "checking for $ac_header... " >&6; }
11208if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11209 $as_echo_n "(cached) " >&6
11210fi
11211ac_res=`eval 'as_val=${'$as_ac_Header'}
11212 $as_echo "$as_val"'`
11213 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11214$as_echo "$ac_res" >&6; }
11215else
11216 # Is the header compilable?
11217{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11218$as_echo_n "checking $ac_header usability... " >&6; }
11219cat >conftest.$ac_ext <<_ACEOF
11220/* confdefs.h. */
11221_ACEOF
11222cat confdefs.h >>conftest.$ac_ext
11223cat >>conftest.$ac_ext <<_ACEOF
11224/* end confdefs.h. */
11225$ac_includes_default
11226#include <$ac_header>
11227_ACEOF
11228rm -f conftest.$ac_objext
11229if { (ac_try="$ac_compile"
11230case "(($ac_try" in
11231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11232 *) ac_try_echo=$ac_try;;
11233esac
11234eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11235$as_echo "$ac_try_echo") >&5
11236 (eval "$ac_compile") 2>conftest.er1
11237 ac_status=$?
11238 grep -v '^ *+' conftest.er1 >conftest.err
11239 rm -f conftest.er1
11240 cat conftest.err >&5
11241 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11242 (exit $ac_status); } && {
11243 test -z "$ac_c_werror_flag" ||
11244 test ! -s conftest.err
11245 } && test -s conftest.$ac_objext; then
11246 ac_header_compiler=yes
11247else
11248 $as_echo "$as_me: failed program was:" >&5
11249sed 's/^/| /' conftest.$ac_ext >&5
11250
11251 ac_header_compiler=no
11252fi
11253
11254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11255{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11256$as_echo "$ac_header_compiler" >&6; }
11257
11258# Is the header present?
11259{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11260$as_echo_n "checking $ac_header presence... " >&6; }
11261cat >conftest.$ac_ext <<_ACEOF
11262/* confdefs.h. */
11263_ACEOF
11264cat confdefs.h >>conftest.$ac_ext
11265cat >>conftest.$ac_ext <<_ACEOF
11266/* end confdefs.h. */
11267#include <$ac_header>
11268_ACEOF
11269if { (ac_try="$ac_cpp conftest.$ac_ext"
11270case "(($ac_try" in
11271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11272 *) ac_try_echo=$ac_try;;
11273esac
11274eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11275$as_echo "$ac_try_echo") >&5
11276 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11277 ac_status=$?
11278 grep -v '^ *+' conftest.er1 >conftest.err
11279 rm -f conftest.er1
11280 cat conftest.err >&5
11281 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11282 (exit $ac_status); } >/dev/null && {
11283 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11284 test ! -s conftest.err
11285 }; then
11286 ac_header_preproc=yes
11287else
11288 $as_echo "$as_me: failed program was:" >&5
11289sed 's/^/| /' conftest.$ac_ext >&5
11290
11291 ac_header_preproc=no
11292fi
11293
11294rm -f conftest.err conftest.$ac_ext
11295{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11296$as_echo "$ac_header_preproc" >&6; }
11297
11298# So? What about this header?
11299case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11300 yes:no: )
11301 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11302$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11303 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11304$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11305 ac_header_preproc=yes
11306 ;;
11307 no:yes:* )
11308 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11309$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11310 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11311$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11312 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11313$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11314 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11315$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11316 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11317$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11318 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11319$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11320
11321 ;;
11322esac
11323{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11324$as_echo_n "checking for $ac_header... " >&6; }
11325if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11326 $as_echo_n "(cached) " >&6
11327else
11328 eval "$as_ac_Header=\$ac_header_preproc"
11329fi
11330ac_res=`eval 'as_val=${'$as_ac_Header'}
11331 $as_echo "$as_val"'`
11332 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11333$as_echo "$ac_res" >&6; }
11334
11335fi
11336as_val=`eval 'as_val=${'$as_ac_Header'}
11337 $as_echo "$as_val"'`
11338 if test "x$as_val" = x""yes; then
11339 cat >>confdefs.h <<_ACEOF
11340#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11341_ACEOF
11342 HAVE_CONFDB_H=yes
11343else
11344 HAVE_CONFDB_H=no
11345fi
11346
11347done
11348
11349
11350 if test x$HAVE_CONFDB != xyes && \
11351 test x$HAVE_CONFDB_H = xyes; then
11352 check_lib_no_libs confdb confdb_initialize
11353 { $as_echo "$as_me:$LINENO: result: no pkg for confdb, using -lconfdb" >&5
11354$as_echo "no pkg for confdb, using -lconfdb" >&6; }
11355 CONFDB_LIBS="-lconfdb"
11356 HAVE_CONFDB=yes
11357 fi
11358
11359 if test x$BUILDCOROSYNC = xyes && \
11360 test x$HAVE_CONFDB != xyes &&
11361 test x$CLVMD != xall; then
11362 { { $as_echo "$as_me:$LINENO: error: bailing out... confdb library is required" >&5
11363$as_echo "$as_me: error: bailing out... confdb library is required" >&2;}
11364 { (exit 1); exit 1; }; }
11365 fi
11366fi
11367
11368if test x$CHECKCPG = xyes; then
11369
11370pkg_failed=no
11371{ $as_echo "$as_me:$LINENO: checking for CPG" >&5
11372$as_echo_n "checking for CPG... " >&6; }
11373
11374if test -n "$CPG_CFLAGS"; then
11375 pkg_cv_CPG_CFLAGS="$CPG_CFLAGS"
11376 elif test -n "$PKG_CONFIG"; then
11377 if test -n "$PKG_CONFIG" && \
11378 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
11379 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
11380 ac_status=$?
11381 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11382 (exit $ac_status); }; then
11383 pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
11384else
11385 pkg_failed=yes
11386fi
11387 else
11388 pkg_failed=untried
11389fi
11390if test -n "$CPG_LIBS"; then
11391 pkg_cv_CPG_LIBS="$CPG_LIBS"
11392 elif test -n "$PKG_CONFIG"; then
11393 if test -n "$PKG_CONFIG" && \
11394 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
11395 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
11396 ac_status=$?
11397 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11398 (exit $ac_status); }; then
11399 pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
11400else
11401 pkg_failed=yes
11402fi
11403 else
11404 pkg_failed=untried
11405fi
11406
11407
11408
11409if test $pkg_failed = yes; then
b5c2529b
ZK
11410 { $as_echo "$as_me:$LINENO: result: no" >&5
11411$as_echo "no" >&6; }
a946372e
AK
11412
11413if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11414 _pkg_short_errors_supported=yes
11415else
11416 _pkg_short_errors_supported=no
11417fi
11418 if test $_pkg_short_errors_supported = yes; then
11419 CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
11420 else
11421 CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
11422 fi
11423 # Put the nasty error message in config.log where it belongs
11424 echo "$CPG_PKG_ERRORS" >&5
11425
b5c2529b 11426 $bailout
a946372e 11427elif test $pkg_failed = untried; then
b5c2529b
ZK
11428 { $as_echo "$as_me:$LINENO: result: no" >&5
11429$as_echo "no" >&6; }
a946372e
AK
11430 $bailout
11431else
11432 CPG_CFLAGS=$pkg_cv_CPG_CFLAGS
11433 CPG_LIBS=$pkg_cv_CPG_LIBS
11434 { $as_echo "$as_me:$LINENO: result: yes" >&5
11435$as_echo "yes" >&6; }
11436 HAVE_CPG=yes
11437fi
11438fi
11439
11440if test x$CHECKDLM = xyes; then
11441
11442pkg_failed=no
11443{ $as_echo "$as_me:$LINENO: checking for DLM" >&5
11444$as_echo_n "checking for DLM... " >&6; }
11445
11446if test -n "$DLM_CFLAGS"; then
11447 pkg_cv_DLM_CFLAGS="$DLM_CFLAGS"
11448 elif test -n "$PKG_CONFIG"; then
11449 if test -n "$PKG_CONFIG" && \
11450 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdlm\"") >&5
11451 ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5
11452 ac_status=$?
11453 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11454 (exit $ac_status); }; then
11455 pkg_cv_DLM_CFLAGS=`$PKG_CONFIG --cflags "libdlm" 2>/dev/null`
11456else
11457 pkg_failed=yes
11458fi
11459 else
11460 pkg_failed=untried
11461fi
11462if test -n "$DLM_LIBS"; then
11463 pkg_cv_DLM_LIBS="$DLM_LIBS"
11464 elif test -n "$PKG_CONFIG"; then
11465 if test -n "$PKG_CONFIG" && \
11466 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdlm\"") >&5
11467 ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5
11468 ac_status=$?
11469 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11470 (exit $ac_status); }; then
11471 pkg_cv_DLM_LIBS=`$PKG_CONFIG --libs "libdlm" 2>/dev/null`
11472else
11473 pkg_failed=yes
11474fi
11475 else
11476 pkg_failed=untried
11477fi
11478
11479
11480
11481if test $pkg_failed = yes; then
b5c2529b
ZK
11482 { $as_echo "$as_me:$LINENO: result: no" >&5
11483$as_echo "no" >&6; }
a946372e
AK
11484
11485if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11486 _pkg_short_errors_supported=yes
11487else
11488 _pkg_short_errors_supported=no
11489fi
11490 if test $_pkg_short_errors_supported = yes; then
11491 DLM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdlm" 2>&1`
11492 else
11493 DLM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdlm" 2>&1`
11494 fi
11495 # Put the nasty error message in config.log where it belongs
11496 echo "$DLM_PKG_ERRORS" >&5
11497
b5c2529b 11498 NOTFOUND=0
a946372e
AK
11499
11500for ac_header in libdlm.h
11501do
11502as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11503if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11504 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11505$as_echo_n "checking for $ac_header... " >&6; }
11506if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11507 $as_echo_n "(cached) " >&6
11508fi
11509ac_res=`eval 'as_val=${'$as_ac_Header'}
11510 $as_echo "$as_val"'`
11511 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11512$as_echo "$ac_res" >&6; }
11513else
11514 # Is the header compilable?
11515{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11516$as_echo_n "checking $ac_header usability... " >&6; }
11517cat >conftest.$ac_ext <<_ACEOF
11518/* confdefs.h. */
11519_ACEOF
11520cat confdefs.h >>conftest.$ac_ext
11521cat >>conftest.$ac_ext <<_ACEOF
11522/* end confdefs.h. */
11523$ac_includes_default
11524#include <$ac_header>
11525_ACEOF
11526rm -f conftest.$ac_objext
11527if { (ac_try="$ac_compile"
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_compile") 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); } && {
11541 test -z "$ac_c_werror_flag" ||
11542 test ! -s conftest.err
11543 } && test -s conftest.$ac_objext; then
11544 ac_header_compiler=yes
11545else
11546 $as_echo "$as_me: failed program was:" >&5
11547sed 's/^/| /' conftest.$ac_ext >&5
11548
11549 ac_header_compiler=no
11550fi
11551
11552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11553{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11554$as_echo "$ac_header_compiler" >&6; }
11555
11556# Is the header present?
11557{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11558$as_echo_n "checking $ac_header presence... " >&6; }
11559cat >conftest.$ac_ext <<_ACEOF
11560/* confdefs.h. */
11561_ACEOF
11562cat confdefs.h >>conftest.$ac_ext
11563cat >>conftest.$ac_ext <<_ACEOF
11564/* end confdefs.h. */
11565#include <$ac_header>
11566_ACEOF
11567if { (ac_try="$ac_cpp conftest.$ac_ext"
11568case "(($ac_try" in
11569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11570 *) ac_try_echo=$ac_try;;
11571esac
11572eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11573$as_echo "$ac_try_echo") >&5
11574 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11575 ac_status=$?
11576 grep -v '^ *+' conftest.er1 >conftest.err
11577 rm -f conftest.er1
11578 cat conftest.err >&5
11579 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11580 (exit $ac_status); } >/dev/null && {
11581 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11582 test ! -s conftest.err
11583 }; then
11584 ac_header_preproc=yes
11585else
11586 $as_echo "$as_me: failed program was:" >&5
11587sed 's/^/| /' conftest.$ac_ext >&5
11588
11589 ac_header_preproc=no
11590fi
11591
11592rm -f conftest.err conftest.$ac_ext
11593{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11594$as_echo "$ac_header_preproc" >&6; }
11595
11596# So? What about this header?
11597case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11598 yes:no: )
11599 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11600$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11601 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11602$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11603 ac_header_preproc=yes
11604 ;;
11605 no:yes:* )
11606 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11607$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11608 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11609$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11610 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11611$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11612 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11613$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11614 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11615$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11616 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11617$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11618
11619 ;;
11620esac
11621{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11622$as_echo_n "checking for $ac_header... " >&6; }
11623if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11624 $as_echo_n "(cached) " >&6
11625else
11626 eval "$as_ac_Header=\$ac_header_preproc"
11627fi
11628ac_res=`eval 'as_val=${'$as_ac_Header'}
11629 $as_echo "$as_val"'`
11630 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11631$as_echo "$ac_res" >&6; }
11632
11633fi
11634as_val=`eval 'as_val=${'$as_ac_Header'}
11635 $as_echo "$as_val"'`
11636 if test "x$as_val" = x""yes; then
11637 cat >>confdefs.h <<_ACEOF
11638#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11639_ACEOF
11640
11641else
11642 $bailout
11643fi
11644
11645done
11646
11647 check_lib_no_libs dlm dlm_lock -lpthread
11648 if test $NOTFOUND = 0; then
11649 { $as_echo "$as_me:$LINENO: result: no pkg for libdlm, using -ldlm" >&5
11650$as_echo "no pkg for libdlm, using -ldlm" >&6; }
11651 DLM_LIBS="-ldlm -lpthread"
11652 HAVE_DLM=yes
11653 fi
11654elif test $pkg_failed = untried; then
b5c2529b
ZK
11655 { $as_echo "$as_me:$LINENO: result: no" >&5
11656$as_echo "no" >&6; }
a946372e
AK
11657 NOTFOUND=0
11658
11659for ac_header in libdlm.h
11660do
11661as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11662if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11663 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11664$as_echo_n "checking for $ac_header... " >&6; }
11665if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11666 $as_echo_n "(cached) " >&6
11667fi
11668ac_res=`eval 'as_val=${'$as_ac_Header'}
11669 $as_echo "$as_val"'`
11670 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11671$as_echo "$ac_res" >&6; }
11672else
11673 # Is the header compilable?
11674{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11675$as_echo_n "checking $ac_header usability... " >&6; }
11676cat >conftest.$ac_ext <<_ACEOF
11677/* confdefs.h. */
11678_ACEOF
11679cat confdefs.h >>conftest.$ac_ext
11680cat >>conftest.$ac_ext <<_ACEOF
11681/* end confdefs.h. */
11682$ac_includes_default
11683#include <$ac_header>
11684_ACEOF
11685rm -f conftest.$ac_objext
11686if { (ac_try="$ac_compile"
11687case "(($ac_try" in
11688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11689 *) ac_try_echo=$ac_try;;
11690esac
11691eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11692$as_echo "$ac_try_echo") >&5
11693 (eval "$ac_compile") 2>conftest.er1
11694 ac_status=$?
11695 grep -v '^ *+' conftest.er1 >conftest.err
11696 rm -f conftest.er1
11697 cat conftest.err >&5
11698 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11699 (exit $ac_status); } && {
11700 test -z "$ac_c_werror_flag" ||
11701 test ! -s conftest.err
11702 } && test -s conftest.$ac_objext; then
11703 ac_header_compiler=yes
11704else
11705 $as_echo "$as_me: failed program was:" >&5
11706sed 's/^/| /' conftest.$ac_ext >&5
11707
11708 ac_header_compiler=no
11709fi
11710
11711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11712{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11713$as_echo "$ac_header_compiler" >&6; }
11714
11715# Is the header present?
11716{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11717$as_echo_n "checking $ac_header presence... " >&6; }
11718cat >conftest.$ac_ext <<_ACEOF
11719/* confdefs.h. */
11720_ACEOF
11721cat confdefs.h >>conftest.$ac_ext
11722cat >>conftest.$ac_ext <<_ACEOF
11723/* end confdefs.h. */
11724#include <$ac_header>
11725_ACEOF
11726if { (ac_try="$ac_cpp conftest.$ac_ext"
11727case "(($ac_try" in
11728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11729 *) ac_try_echo=$ac_try;;
11730esac
11731eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11732$as_echo "$ac_try_echo") >&5
11733 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11734 ac_status=$?
11735 grep -v '^ *+' conftest.er1 >conftest.err
11736 rm -f conftest.er1
11737 cat conftest.err >&5
11738 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11739 (exit $ac_status); } >/dev/null && {
11740 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11741 test ! -s conftest.err
11742 }; then
11743 ac_header_preproc=yes
11744else
11745 $as_echo "$as_me: failed program was:" >&5
11746sed 's/^/| /' conftest.$ac_ext >&5
11747
11748 ac_header_preproc=no
11749fi
11750
11751rm -f conftest.err conftest.$ac_ext
11752{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11753$as_echo "$ac_header_preproc" >&6; }
11754
11755# So? What about this header?
11756case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11757 yes:no: )
11758 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11759$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11760 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11761$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11762 ac_header_preproc=yes
11763 ;;
11764 no:yes:* )
11765 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11766$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11767 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11768$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11769 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11770$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11771 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11772$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11773 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11774$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11775 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11776$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11777
11778 ;;
11779esac
11780{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11781$as_echo_n "checking for $ac_header... " >&6; }
11782if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11783 $as_echo_n "(cached) " >&6
11784else
11785 eval "$as_ac_Header=\$ac_header_preproc"
11786fi
11787ac_res=`eval 'as_val=${'$as_ac_Header'}
11788 $as_echo "$as_val"'`
11789 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11790$as_echo "$ac_res" >&6; }
11791
11792fi
11793as_val=`eval 'as_val=${'$as_ac_Header'}
11794 $as_echo "$as_val"'`
11795 if test "x$as_val" = x""yes; then
11796 cat >>confdefs.h <<_ACEOF
11797#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11798_ACEOF
11799
11800else
11801 $bailout
11802fi
11803
11804done
11805
11806 check_lib_no_libs dlm dlm_lock -lpthread
11807 if test $NOTFOUND = 0; then
11808 { $as_echo "$as_me:$LINENO: result: no pkg for libdlm, using -ldlm" >&5
11809$as_echo "no pkg for libdlm, using -ldlm" >&6; }
11810 DLM_LIBS="-ldlm -lpthread"
11811 HAVE_DLM=yes
11812 fi
11813else
11814 DLM_CFLAGS=$pkg_cv_DLM_CFLAGS
11815 DLM_LIBS=$pkg_cv_DLM_LIBS
11816 { $as_echo "$as_me:$LINENO: result: yes" >&5
11817$as_echo "yes" >&6; }
11818 HAVE_DLM=yes
11819fi
11820fi
11821
11822if test x$CLVMD = xall; then
8c222979 11823 CLVMD=none
a946372e
AK
11824 if test x$HAVE_CCS = xyes && \
11825 test x$HAVE_GULM = xyes; then
8c222979
FDN
11826 { $as_echo "$as_me:$LINENO: result: Enabling clvmd gulm cluster manager" >&5
11827$as_echo "Enabling clvmd gulm cluster manager" >&6; }
11828 CLVMD="$CLVMD,gulm"
a946372e
AK
11829 fi
11830 if test x$HAVE_CMAN = xyes && \
11831 test x$HAVE_DLM = xyes; then
8c222979
FDN
11832 { $as_echo "$as_me:$LINENO: result: Enabling clvmd cman cluster manager" >&5
11833$as_echo "Enabling clvmd cman cluster manager" >&6; }
11834 CLVMD="$CLVMD,cman"
a946372e
AK
11835 fi
11836 if test x$HAVE_COROSYNC = xyes && \
11837 test x$HAVE_QUORUM = xyes && \
11838 test x$HAVE_CPG = xyes && \
11839 test x$HAVE_DLM = xyes && \
11840 test x$HAVE_CONFDB = xyes; then
8c222979
FDN
11841 { $as_echo "$as_me:$LINENO: result: Enabling clvmd corosync cluster manager" >&5
11842$as_echo "Enabling clvmd corosync cluster manager" >&6; }
11843 CLVMD="$CLVMD,corosync"
a946372e
AK
11844 fi
11845 if test x$HAVE_COROSYNC = xyes && \
11846 test x$HAVE_CPG = xyes && \
11847 test x$HAVE_SALCK = xyes; then
8c222979
FDN
11848 { $as_echo "$as_me:$LINENO: result: Enabling clvmd openais cluster manager" >&5
11849$as_echo "Enabling clvmd openais cluster manager" >&6; }
11850 CLVMD="$CLVMD,openais"
11851 fi
11852 if test x$CLVMD = xnone; then
11853 { $as_echo "$as_me:$LINENO: result: Disabling clvmd build. No cluster manager detected." >&5
11854$as_echo "Disabling clvmd build. No cluster manager detected." >&6; }
a946372e 11855 fi
a946372e
AK
11856fi
11857
11858################################################################################
66fd4529
AK
11859{ $as_echo "$as_me:$LINENO: checking whether to build cluster mirror log daemon" >&5
11860$as_echo_n "checking whether to build cluster mirror log daemon... " >&6; }
11861# Check whether --enable-cmirrord was given.
11862if test "${enable_cmirrord+set}" = set; then
11863 enableval=$enable_cmirrord; CMIRRORD=$enableval
11864else
11865 CMIRRORD=no
11866fi
11867
11868{ $as_echo "$as_me:$LINENO: result: $CMIRRORD" >&5
11869$as_echo "$CMIRRORD" >&6; }
11870
11871BUILD_CMIRRORD=$CMIRRORD
11872
11873################################################################################
11874
11875
11876if test "x$BUILD_CMIRRORD" = xyes; then
11877
11878# Check whether --with-cmirrord-pidfile was given.
11879if test "${with_cmirrord_pidfile+set}" = set; then
11880 withval=$with_cmirrord_pidfile; cat >>confdefs.h <<_ACEOF
11881#define CMIRRORD_PIDFILE "$withval"
11882_ACEOF
11883
11884else
11885 cat >>confdefs.h <<_ACEOF
11886#define CMIRRORD_PIDFILE "/var/run/cmirrord.pid"
11887_ACEOF
11888
a946372e
AK
11889fi
11890
66fd4529 11891fi
a946372e 11892
66fd4529
AK
11893################################################################################
11894if [ "x$BUILD_CMIRRORD" = xyes ]; then
90c80887
AK
11895 if test x$PKGCONFIG_INIT != x1; then
11896 pkg_config_init
11897 fi
11898
11899pkg_failed=no
11900{ $as_echo "$as_me:$LINENO: checking for SACKPT" >&5
11901$as_echo_n "checking for SACKPT... " >&6; }
11902
11903if test -n "$SACKPT_CFLAGS"; then
11904 pkg_cv_SACKPT_CFLAGS="$SACKPT_CFLAGS"
11905 elif test -n "$PKG_CONFIG"; then
11906 if test -n "$PKG_CONFIG" && \
11907 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\"") >&5
11908 ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5
11909 ac_status=$?
11910 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11911 (exit $ac_status); }; then
11912 pkg_cv_SACKPT_CFLAGS=`$PKG_CONFIG --cflags "libSaCkpt" 2>/dev/null`
11913else
11914 pkg_failed=yes
11915fi
11916 else
11917 pkg_failed=untried
11918fi
11919if test -n "$SACKPT_LIBS"; then
11920 pkg_cv_SACKPT_LIBS="$SACKPT_LIBS"
11921 elif test -n "$PKG_CONFIG"; then
11922 if test -n "$PKG_CONFIG" && \
11923 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\"") >&5
11924 ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5
11925 ac_status=$?
11926 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11927 (exit $ac_status); }; then
11928 pkg_cv_SACKPT_LIBS=`$PKG_CONFIG --libs "libSaCkpt" 2>/dev/null`
11929else
11930 pkg_failed=yes
11931fi
11932 else
11933 pkg_failed=untried
11934fi
11935
11936
11937
11938if test $pkg_failed = yes; then
b5c2529b
ZK
11939 { $as_echo "$as_me:$LINENO: result: no" >&5
11940$as_echo "no" >&6; }
90c80887
AK
11941
11942if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11943 _pkg_short_errors_supported=yes
11944else
11945 _pkg_short_errors_supported=no
11946fi
11947 if test $_pkg_short_errors_supported = yes; then
11948 SACKPT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaCkpt" 2>&1`
11949 else
11950 SACKPT_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaCkpt" 2>&1`
11951 fi
11952 # Put the nasty error message in config.log where it belongs
11953 echo "$SACKPT_PKG_ERRORS" >&5
11954
11955 { { $as_echo "$as_me:$LINENO: error: Package requirements (libSaCkpt) were not met:
11956
11957$SACKPT_PKG_ERRORS
11958
11959Consider adjusting the PKG_CONFIG_PATH environment variable if you
11960installed software in a non-standard prefix.
11961
11962Alternatively, you may set the environment variables SACKPT_CFLAGS
11963and SACKPT_LIBS to avoid the need to call pkg-config.
b5c2529b 11964See the pkg-config man page for more details." >&5
90c80887
AK
11965$as_echo "$as_me: error: Package requirements (libSaCkpt) were not met:
11966
11967$SACKPT_PKG_ERRORS
11968
11969Consider adjusting the PKG_CONFIG_PATH environment variable if you
11970installed software in a non-standard prefix.
11971
11972Alternatively, you may set the environment variables SACKPT_CFLAGS
11973and SACKPT_LIBS to avoid the need to call pkg-config.
b5c2529b 11974See the pkg-config man page for more details." >&2;}
90c80887
AK
11975 { (exit 1); exit 1; }; }
11976elif test $pkg_failed = untried; then
b5c2529b
ZK
11977 { $as_echo "$as_me:$LINENO: result: no" >&5
11978$as_echo "no" >&6; }
90c80887
AK
11979 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11980$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11981{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
11982is in your PATH or set the PKG_CONFIG environment variable to the full
11983path to pkg-config.
11984
11985Alternatively, you may set the environment variables SACKPT_CFLAGS
11986and SACKPT_LIBS to avoid the need to call pkg-config.
11987See the pkg-config man page for more details.
11988
11989To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11990See \`config.log' for more details." >&5
11991$as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
11992is in your PATH or set the PKG_CONFIG environment variable to the full
11993path to pkg-config.
11994
11995Alternatively, you may set the environment variables SACKPT_CFLAGS
11996and SACKPT_LIBS to avoid the need to call pkg-config.
11997See the pkg-config man page for more details.
11998
11999To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12000See \`config.log' for more details." >&2;}
12001 { (exit 1); exit 1; }; }; }
12002else
12003 SACKPT_CFLAGS=$pkg_cv_SACKPT_CFLAGS
12004 SACKPT_LIBS=$pkg_cv_SACKPT_LIBS
12005 { $as_echo "$as_me:$LINENO: result: yes" >&5
12006$as_echo "yes" >&6; }
b5c2529b 12007
90c80887
AK
12008fi
12009 if test x$HAVE_CPG != xyes; then
a946372e
AK
12010
12011pkg_failed=no
12012{ $as_echo "$as_me:$LINENO: checking for CPG" >&5
12013$as_echo_n "checking for CPG... " >&6; }
12014
12015if test -n "$CPG_CFLAGS"; then
12016 pkg_cv_CPG_CFLAGS="$CPG_CFLAGS"
12017 elif test -n "$PKG_CONFIG"; then
12018 if test -n "$PKG_CONFIG" && \
12019 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
12020 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
12021 ac_status=$?
12022 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12023 (exit $ac_status); }; then
12024 pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
12025else
12026 pkg_failed=yes
12027fi
12028 else
12029 pkg_failed=untried
12030fi
12031if test -n "$CPG_LIBS"; then
12032 pkg_cv_CPG_LIBS="$CPG_LIBS"
12033 elif test -n "$PKG_CONFIG"; then
12034 if test -n "$PKG_CONFIG" && \
12035 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
12036 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
12037 ac_status=$?
12038 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12039 (exit $ac_status); }; then
12040 pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
12041else
12042 pkg_failed=yes
12043fi
12044 else
12045 pkg_failed=untried
12046fi
12047
12048
12049
12050if test $pkg_failed = yes; then
b5c2529b
ZK
12051 { $as_echo "$as_me:$LINENO: result: no" >&5
12052$as_echo "no" >&6; }
a946372e
AK
12053
12054if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12055 _pkg_short_errors_supported=yes
12056else
12057 _pkg_short_errors_supported=no
12058fi
12059 if test $_pkg_short_errors_supported = yes; then
12060 CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
12061 else
12062 CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
12063 fi
12064 # Put the nasty error message in config.log where it belongs
12065 echo "$CPG_PKG_ERRORS" >&5
12066
90c80887
AK
12067 { { $as_echo "$as_me:$LINENO: error: Package requirements (libcpg) were not met:
12068
12069$CPG_PKG_ERRORS
12070
12071Consider adjusting the PKG_CONFIG_PATH environment variable if you
12072installed software in a non-standard prefix.
12073
12074Alternatively, you may set the environment variables CPG_CFLAGS
12075and CPG_LIBS to avoid the need to call pkg-config.
b5c2529b 12076See the pkg-config man page for more details." >&5
90c80887
AK
12077$as_echo "$as_me: error: Package requirements (libcpg) were not met:
12078
12079$CPG_PKG_ERRORS
12080
12081Consider adjusting the PKG_CONFIG_PATH environment variable if you
12082installed software in a non-standard prefix.
12083
12084Alternatively, you may set the environment variables CPG_CFLAGS
12085and CPG_LIBS to avoid the need to call pkg-config.
b5c2529b 12086See the pkg-config man page for more details." >&2;}
90c80887 12087 { (exit 1); exit 1; }; }
a946372e 12088elif test $pkg_failed = untried; then
b5c2529b
ZK
12089 { $as_echo "$as_me:$LINENO: result: no" >&5
12090$as_echo "no" >&6; }
90c80887
AK
12091 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12092$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12093{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
12094is in your PATH or set the PKG_CONFIG environment variable to the full
12095path to pkg-config.
12096
12097Alternatively, you may set the environment variables CPG_CFLAGS
12098and CPG_LIBS to avoid the need to call pkg-config.
12099See the pkg-config man page for more details.
12100
12101To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12102See \`config.log' for more details." >&5
12103$as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
12104is in your PATH or set the PKG_CONFIG environment variable to the full
12105path to pkg-config.
12106
12107Alternatively, you may set the environment variables CPG_CFLAGS
12108and CPG_LIBS to avoid the need to call pkg-config.
12109See the pkg-config man page for more details.
12110
12111To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12112See \`config.log' for more details." >&2;}
12113 { (exit 1); exit 1; }; }; }
a946372e
AK
12114else
12115 CPG_CFLAGS=$pkg_cv_CPG_CFLAGS
12116 CPG_LIBS=$pkg_cv_CPG_LIBS
12117 { $as_echo "$as_me:$LINENO: result: yes" >&5
12118$as_echo "yes" >&6; }
b5c2529b 12119
a946372e 12120fi
90c80887 12121 fi
a946372e
AK
12122fi
12123
12124################################################################################
12125{ $as_echo "$as_me:$LINENO: checking whether to enable debugging" >&5
12126$as_echo_n "checking whether to enable debugging... " >&6; }
12127# Check whether --enable-debug was given.
12128if test "${enable_debug+set}" = set; then
12129 enableval=$enable_debug; DEBUG=$enableval
12130else
12131 DEBUG=no
12132fi
12133
12134{ $as_echo "$as_me:$LINENO: result: $DEBUG" >&5
12135$as_echo "$DEBUG" >&6; }
12136
12137if test x$DEBUG = xyes; then
12138 COPTIMISE_FLAG=
12139else
12140 CSCOPE_CMD=
12141fi
12142
12143################################################################################
12144{ $as_echo "$as_me:$LINENO: checking for C optimisation flag" >&5
12145$as_echo_n "checking for C optimisation flag... " >&6; }
12146
12147# Check whether --with-optimisation was given.
12148if test "${with_optimisation+set}" = set; then
12149 withval=$with_optimisation; COPTIMISE_FLAG="$withval"
12150fi
12151
12152{ $as_echo "$as_me:$LINENO: result: $COPTIMISE_FLAG" >&5
12153$as_echo "$COPTIMISE_FLAG" >&6; }
12154
12155################################################################################
12156{ $as_echo "$as_me:$LINENO: checking whether to gather gcov profiling data" >&5
12157$as_echo_n "checking whether to gather gcov profiling data... " >&6; }
12158# Check whether --enable-profiling was given.
12159if test "${enable_profiling+set}" = set; then
5556819a 12160 enableval=$enable_profiling; PROFILING=$enableval
fddafd51 12161else
5556819a 12162 PROFILING=no
fddafd51
ZK
12163fi
12164
ec6a6fbe
AK
12165{ $as_echo "$as_me:$LINENO: result: $PROFILING" >&5
12166$as_echo "$PROFILING" >&6; }
5556819a
AK
12167
12168if test "x$PROFILING" = xyes; then
12169 COPTIMISE_FLAG="$COPTIMISE_FLAG -fprofile-arcs -ftest-coverage"
12170 # Extract the first word of "lcov", so it can be a program name with args.
fddafd51 12171set dummy lcov; ac_word=$2
ec6a6fbe
AK
12172{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12173$as_echo_n "checking for $ac_word... " >&6; }
fddafd51 12174if test "${ac_cv_path_LCOV+set}" = set; then
ec6a6fbe 12175 $as_echo_n "(cached) " >&6
fddafd51
ZK
12176else
12177 case $LCOV in
12178 [\\/]* | ?:[\\/]*)
12179 ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path.
12180 ;;
12181 *)
12182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12183for as_dir in $PATH
12184do
12185 IFS=$as_save_IFS
12186 test -z "$as_dir" && as_dir=.
12187 for ac_exec_ext in '' $ac_executable_extensions; do
12188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12189 ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 12190 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
fddafd51
ZK
12191 break 2
12192 fi
12193done
12194done
12195IFS=$as_save_IFS
12196
12197 ;;
12198esac
12199fi
12200LCOV=$ac_cv_path_LCOV
12201if test -n "$LCOV"; then
ec6a6fbe
AK
12202 { $as_echo "$as_me:$LINENO: result: $LCOV" >&5
12203$as_echo "$LCOV" >&6; }
fddafd51 12204else
ec6a6fbe
AK
12205 { $as_echo "$as_me:$LINENO: result: no" >&5
12206$as_echo "no" >&6; }
fddafd51
ZK
12207fi
12208
12209
5556819a 12210 # Extract the first word of "genhtml", so it can be a program name with args.
fddafd51 12211set dummy genhtml; ac_word=$2
ec6a6fbe
AK
12212{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12213$as_echo_n "checking for $ac_word... " >&6; }
fddafd51 12214if test "${ac_cv_path_GENHTML+set}" = set; then
ec6a6fbe 12215 $as_echo_n "(cached) " >&6
fddafd51
ZK
12216else
12217 case $GENHTML in
12218 [\\/]* | ?:[\\/]*)
12219 ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path.
12220 ;;
12221 *)
12222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12223for as_dir in $PATH
12224do
12225 IFS=$as_save_IFS
12226 test -z "$as_dir" && as_dir=.
12227 for ac_exec_ext in '' $ac_executable_extensions; do
12228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12229 ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 12230 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
fddafd51
ZK
12231 break 2
12232 fi
12233done
12234done
12235IFS=$as_save_IFS
12236
12237 ;;
12238esac
12239fi
12240GENHTML=$ac_cv_path_GENHTML
12241if test -n "$GENHTML"; then
ec6a6fbe
AK
12242 { $as_echo "$as_me:$LINENO: result: $GENHTML" >&5
12243$as_echo "$GENHTML" >&6; }
fddafd51 12244else
ec6a6fbe
AK
12245 { $as_echo "$as_me:$LINENO: result: no" >&5
12246$as_echo "no" >&6; }
fddafd51
ZK
12247fi
12248
12249
fd4728e1 12250 if test -z "$LCOV" -o -z "$GENHTML"; then
ec6a6fbe
AK
12251 { { $as_echo "$as_me:$LINENO: error: lcov and genhtml are required for profiling" >&5
12252$as_echo "$as_me: error: lcov and genhtml are required for profiling" >&2;}
b145d876
ZK
12253 { (exit 1); exit 1; }; }
12254 fi
fd4728e1
ZK
12255 # Extract the first word of "genpng", so it can be a program name with args.
12256set dummy genpng; ac_word=$2
12257{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12258$as_echo_n "checking for $ac_word... " >&6; }
12259if test "${ac_cv_path_GENPNG+set}" = set; then
12260 $as_echo_n "(cached) " >&6
12261else
12262 case $GENPNG in
12263 [\\/]* | ?:[\\/]*)
12264 ac_cv_path_GENPNG="$GENPNG" # Let the user override the test with a path.
12265 ;;
12266 *)
12267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12268for as_dir in $PATH
12269do
12270 IFS=$as_save_IFS
12271 test -z "$as_dir" && as_dir=.
12272 for ac_exec_ext in '' $ac_executable_extensions; do
12273 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12274 ac_cv_path_GENPNG="$as_dir/$ac_word$ac_exec_ext"
12275 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12276 break 2
12277 fi
12278done
12279done
12280IFS=$as_save_IFS
12281
12282 ;;
12283esac
12284fi
12285GENPNG=$ac_cv_path_GENPNG
12286if test -n "$GENPNG"; then
12287 { $as_echo "$as_me:$LINENO: result: $GENPNG" >&5
12288$as_echo "$GENPNG" >&6; }
12289else
12290 { $as_echo "$as_me:$LINENO: result: no" >&5
12291$as_echo "no" >&6; }
12292fi
12293
12294
12295 if test -n "$GENPNG"; then
12296 { $as_echo "$as_me:$LINENO: checking whether $GENPNG has all required modules" >&5
12297$as_echo_n "checking whether $GENPNG has all required modules... " >&6; }
12298 if $GENPNG --help > /dev/null 2>&1 ; then
12299 { $as_echo "$as_me:$LINENO: result: ok" >&5
12300$as_echo "ok" >&6; }
12301 GENHTML="$GENHTML --frames"
12302 else
12303 { $as_echo "$as_me:$LINENO: result: not supported" >&5
12304$as_echo "not supported" >&6; }
12305 { $as_echo "$as_me:$LINENO: WARNING: GD.pm perl module is not installed" >&5
12306$as_echo "$as_me: WARNING: GD.pm perl module is not installed" >&2;}
12307 GENPNG=
12308 fi
12309 fi
5556819a 12310fi
d0191583
JM
12311
12312################################################################################
ec6a6fbe
AK
12313{ $as_echo "$as_me:$LINENO: checking whether to use device-mapper" >&5
12314$as_echo_n "checking whether to use device-mapper... " >&6; }
d0191583
JM
12315# Check whether --enable-devmapper was given.
12316if test "${enable_devmapper+set}" = set; then
12317 enableval=$enable_devmapper; DEVMAPPER=$enableval
fc54be10
AK
12318fi
12319
ec6a6fbe
AK
12320{ $as_echo "$as_me:$LINENO: result: $DEVMAPPER" >&5
12321$as_echo "$DEVMAPPER" >&6; }
d0191583
JM
12322
12323if test x$DEVMAPPER = xyes; then
ad6254c5
AK
12324
12325cat >>confdefs.h <<\_ACEOF
d0191583 12326#define DEVMAPPER_SUPPORT 1
ad6254c5
AK
12327_ACEOF
12328
12329fi
12330
a5f46f6a
AK
12331################################################################################
12332{ $as_echo "$as_me:$LINENO: checking whether to enable synchronisation with udev processing" >&5
12333$as_echo_n "checking whether to enable synchronisation with udev processing... " >&6; }
12334# Check whether --enable-udev_sync was given.
12335if test "${enable_udev_sync+set}" = set; then
12336 enableval=$enable_udev_sync; UDEV_SYNC=$enableval
12337else
12338 UDEV_SYNC=no
12339fi
12340
12341{ $as_echo "$as_me:$LINENO: result: $UDEV_SYNC" >&5
12342$as_echo "$UDEV_SYNC" >&6; }
12343
90c80887
AK
12344if test x$UDEV_SYNC = xyes; then
12345 { $as_echo "$as_me:$LINENO: checking for udev_queue_get_udev_is_active in -ludev" >&5
12346$as_echo_n "checking for udev_queue_get_udev_is_active in -ludev... " >&6; }
12347if test "${ac_cv_lib_udev_udev_queue_get_udev_is_active+set}" = set; then
12348 $as_echo_n "(cached) " >&6
12349else
12350 ac_check_lib_save_LIBS=$LIBS
12351LIBS="-ludev $LIBS"
12352cat >conftest.$ac_ext <<_ACEOF
12353/* confdefs.h. */
12354_ACEOF
12355cat confdefs.h >>conftest.$ac_ext
12356cat >>conftest.$ac_ext <<_ACEOF
12357/* end confdefs.h. */
12358
12359/* Override any GCC internal prototype to avoid an error.
12360 Use char because int might match the return type of a GCC
12361 builtin and then its argument prototype would still apply. */
12362#ifdef __cplusplus
12363extern "C"
12364#endif
12365char udev_queue_get_udev_is_active ();
12366int
12367main ()
12368{
12369return udev_queue_get_udev_is_active ();
12370 ;
12371 return 0;
12372}
12373_ACEOF
12374rm -f conftest.$ac_objext conftest$ac_exeext
12375if { (ac_try="$ac_link"
12376case "(($ac_try" in
12377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12378 *) ac_try_echo=$ac_try;;
12379esac
12380eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12381$as_echo "$ac_try_echo") >&5
12382 (eval "$ac_link") 2>conftest.er1
12383 ac_status=$?
12384 grep -v '^ *+' conftest.er1 >conftest.err
12385 rm -f conftest.er1
12386 cat conftest.err >&5
12387 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12388 (exit $ac_status); } && {
12389 test -z "$ac_c_werror_flag" ||
12390 test ! -s conftest.err
12391 } && test -s conftest$ac_exeext && {
12392 test "$cross_compiling" = yes ||
12393 $as_test_x conftest$ac_exeext
12394 }; then
12395 ac_cv_lib_udev_udev_queue_get_udev_is_active=yes
12396else
12397 $as_echo "$as_me: failed program was:" >&5
12398sed 's/^/| /' conftest.$ac_ext >&5
12399
12400 ac_cv_lib_udev_udev_queue_get_udev_is_active=no
12401fi
12402
12403rm -rf conftest.dSYM
12404rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12405 conftest$ac_exeext conftest.$ac_ext
12406LIBS=$ac_check_lib_save_LIBS
12407fi
12408{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_udev_udev_queue_get_udev_is_active" >&5
12409$as_echo "$ac_cv_lib_udev_udev_queue_get_udev_is_active" >&6; }
12410if test "x$ac_cv_lib_udev_udev_queue_get_udev_is_active" = x""yes; then
f7f0854e 12411 UDEV_PC="libudev"; UDEV_LIBS="-ludev"
90c80887 12412else
5161ecb9
PR
12413 { { $as_echo "$as_me:$LINENO: error: bailing out... libudev library is required" >&5
12414$as_echo "$as_me: error: bailing out... libudev library is required" >&2;}
12415 { (exit 1); exit 1; }; }
90c80887
AK
12416fi
12417
12418
90c80887 12419cat >>confdefs.h <<\_ACEOF
5161ecb9 12420#define UDEV_SYNC_SUPPORT 1
90c80887
AK
12421_ACEOF
12422
90c80887
AK
12423fi
12424
5161ecb9
PR
12425{ $as_echo "$as_me:$LINENO: checking whether to enable installation of udev rules required for synchronisation" >&5
12426$as_echo_n "checking whether to enable installation of udev rules required for synchronisation... " >&6; }
12427# Check whether --enable-udev_rules was given.
12428if test "${enable_udev_rules+set}" = set; then
12429 enableval=$enable_udev_rules; UDEV_RULES=$enableval
12430else
12431 UDEV_RULES=$UDEV_SYNC
12432fi
12433
12434{ $as_echo "$as_me:$LINENO: result: $UDEV_RULES" >&5
12435$as_echo "$UDEV_RULES" >&6; }
12436
93bd259b
AK
12437################################################################################
12438# Check whether --enable-compat was given.
12439if test "${enable_compat+set}" = set; then
12440 enableval=$enable_compat; DM_COMPAT=$enableval
12441else
12442 DM_COMPAT=no
12443fi
12444
12445
95eaa683
AK
12446################################################################################
12447# Check whether --enable-units-compat was given.
12448if test "${enable_units_compat+set}" = set; then
12449 enableval=$enable_units_compat; UNITS_COMPAT=$enableval
12450else
12451 UNITS_COMPAT=no
12452fi
12453
12454
12455if test x$UNITS_COMPAT = xyes; then
12456
12457cat >>confdefs.h <<\_ACEOF
12458#define DEFAULT_SI_UNIT_CONSISTENCY 0
12459_ACEOF
12460
12461fi
12462
93bd259b
AK
12463################################################################################
12464# Check whether --enable-ioctl was given.
12465if test "${enable_ioctl+set}" = set; then
12466 enableval=$enable_ioctl; DM_IOCTLS=$enableval
12467fi
12468
12469
d0191583 12470################################################################################
ec6a6fbe
AK
12471{ $as_echo "$as_me:$LINENO: checking whether to enable O_DIRECT" >&5
12472$as_echo_n "checking whether to enable O_DIRECT... " >&6; }
d0191583
JM
12473# Check whether --enable-o_direct was given.
12474if test "${enable_o_direct+set}" = set; then
12475 enableval=$enable_o_direct; ODIRECT=$enableval
ad6254c5 12476fi
ad6254c5 12477
ec6a6fbe
AK
12478{ $as_echo "$as_me:$LINENO: result: $ODIRECT" >&5
12479$as_echo "$ODIRECT" >&6; }
ad6254c5 12480
d0191583 12481if test x$ODIRECT = xyes; then
ad6254c5 12482
d0191583
JM
12483cat >>confdefs.h <<\_ACEOF
12484#define O_DIRECT_SUPPORT 1
12485_ACEOF
ad6254c5 12486
d0191583 12487fi
ad6254c5 12488
572fefeb
AK
12489################################################################################
12490{ $as_echo "$as_me:$LINENO: checking whether to build liblvm2app.so application library" >&5
12491$as_echo_n "checking whether to build liblvm2app.so application library... " >&6; }
12492# Check whether --enable-applib was given.
12493if test "${enable_applib+set}" = set; then
12494 enableval=$enable_applib; APPLIB=$enableval
12495else
12496 APPLIB=no
12497fi
12498
12499{ $as_echo "$as_me:$LINENO: result: $APPLIB" >&5
12500$as_echo "$APPLIB" >&6; }
12501
12502test x$APPLIB = xyes \
12503 && LVM2APP_LIB=-llvm2app \
12504 || LVM2APP_LIB=
12505
d0191583 12506################################################################################
ec6a6fbe
AK
12507{ $as_echo "$as_me:$LINENO: checking whether to compile liblvm2cmd.so" >&5
12508$as_echo_n "checking whether to compile liblvm2cmd.so... " >&6; }
d0191583
JM
12509# Check whether --enable-cmdlib was given.
12510if test "${enable_cmdlib+set}" = set; then
12511 enableval=$enable_cmdlib; CMDLIB=$enableval
ad6254c5 12512else
d0191583
JM
12513 CMDLIB=no
12514fi
8a2fc586 12515
ec6a6fbe
AK
12516{ $as_echo "$as_me:$LINENO: result: $CMDLIB" >&5
12517$as_echo "$CMDLIB" >&6; }
8a2fc586 12518
2a9a80c9 12519test x$CMDLIB = xyes \
d179cc7a
JM
12520 && LVM2CMD_LIB=-llvm2cmd \
12521 || LVM2CMD_LIB=
12522
93bd259b
AK
12523################################################################################
12524# Check whether --enable-pkgconfig was given.
12525if test "${enable_pkgconfig+set}" = set; then
12526 enableval=$enable_pkgconfig; PKGCONFIG=$enableval
12527else
12528 PKGCONFIG=no
12529fi
12530
2a9a80c9 12531
23b059e7
ZK
12532################################################################################
12533# Check whether --enable-write_install was given.
12534if test "${enable_write_install+set}" = set; then
12535 enableval=$enable_write_install; WRITE_INSTALL=$enableval
12536else
12537 WRITE_INSTALL=no
12538fi
12539
12540
d0191583 12541################################################################################
ec6a6fbe
AK
12542{ $as_echo "$as_me:$LINENO: checking whether to install fsadm" >&5
12543$as_echo_n "checking whether to install fsadm... " >&6; }
d0191583
JM
12544# Check whether --enable-fsadm was given.
12545if test "${enable_fsadm+set}" = set; then
12546 enableval=$enable_fsadm; FSADM=$enableval
12547fi
8a2fc586 12548
ec6a6fbe
AK
12549{ $as_echo "$as_me:$LINENO: result: $FSADM" >&5
12550$as_echo "$FSADM" >&6; }
8a2fc586 12551
d0191583 12552################################################################################
ec6a6fbe
AK
12553{ $as_echo "$as_me:$LINENO: checking whether to use dmeventd" >&5
12554$as_echo_n "checking whether to use dmeventd... " >&6; }
d0191583
JM
12555# Check whether --enable-dmeventd was given.
12556if test "${enable_dmeventd+set}" = set; then
12557 enableval=$enable_dmeventd; DMEVENTD=$enableval
12558fi
ad6254c5 12559
ec6a6fbe
AK
12560{ $as_echo "$as_me:$LINENO: result: $DMEVENTD" >&5
12561$as_echo "$DMEVENTD" >&6; }
ad6254c5 12562
93bd259b
AK
12563BUILD_DMEVENTD=$DMEVENTD
12564
2a9a80c9
PR
12565if test x$DMEVENTD = xyes; then
12566 if test x$MIRRORS != xinternal; then
ec6a6fbe 12567 { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd currently requires --with-mirrors=internal
2a9a80c9 12568 " >&5
ec6a6fbe 12569$as_echo "$as_me: error: --enable-dmeventd currently requires --with-mirrors=internal
2a9a80c9 12570 " >&2;}
d0191583 12571 { (exit 1); exit 1; }; }
2a9a80c9
PR
12572 fi
12573 if test x$CMDLIB = xno; then
ec6a6fbe 12574 { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd requires --enable-cmdlib to be used as well
2a9a80c9 12575 " >&5
ec6a6fbe 12576$as_echo "$as_me: error: --enable-dmeventd requires --enable-cmdlib to be used as well
2a9a80c9
PR
12577 " >&2;}
12578 { (exit 1); exit 1; }; }
12579 fi
ad6254c5 12580fi
7a197a62 12581
d0191583
JM
12582if test x$DMEVENTD = xyes; then
12583
12584cat >>confdefs.h <<\_ACEOF
12585#define DMEVENTD 1
ad6254c5
AK
12586_ACEOF
12587
ad6254c5 12588fi
93bd259b
AK
12589
12590################################################################################
12591
ec6a6fbe
AK
12592{ $as_echo "$as_me:$LINENO: checking for getline in -lc" >&5
12593$as_echo_n "checking for getline in -lc... " >&6; }
93bd259b 12594if test "${ac_cv_lib_c_getline+set}" = set; then
ec6a6fbe 12595 $as_echo_n "(cached) " >&6
93bd259b
AK
12596else
12597 ac_check_lib_save_LIBS=$LIBS
12598LIBS="-lc $LIBS"
12599cat >conftest.$ac_ext <<_ACEOF
12600/* confdefs.h. */
12601_ACEOF
12602cat confdefs.h >>conftest.$ac_ext
12603cat >>conftest.$ac_ext <<_ACEOF
12604/* end confdefs.h. */
12605
12606/* Override any GCC internal prototype to avoid an error.
12607 Use char because int might match the return type of a GCC
12608 builtin and then its argument prototype would still apply. */
12609#ifdef __cplusplus
12610extern "C"
12611#endif
12612char getline ();
12613int
12614main ()
12615{
12616return getline ();
12617 ;
12618 return 0;
12619}
12620_ACEOF
12621rm -f conftest.$ac_objext conftest$ac_exeext
12622if { (ac_try="$ac_link"
12623case "(($ac_try" in
12624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12625 *) ac_try_echo=$ac_try;;
12626esac
ec6a6fbe
AK
12627eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12628$as_echo "$ac_try_echo") >&5
93bd259b
AK
12629 (eval "$ac_link") 2>conftest.er1
12630 ac_status=$?
12631 grep -v '^ *+' conftest.er1 >conftest.err
12632 rm -f conftest.er1
12633 cat conftest.err >&5
ec6a6fbe 12634 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
93bd259b
AK
12635 (exit $ac_status); } && {
12636 test -z "$ac_c_werror_flag" ||
12637 test ! -s conftest.err
ec6a6fbe
AK
12638 } && test -s conftest$ac_exeext && {
12639 test "$cross_compiling" = yes ||
12640 $as_test_x conftest$ac_exeext
12641 }; then
93bd259b
AK
12642 ac_cv_lib_c_getline=yes
12643else
ec6a6fbe 12644 $as_echo "$as_me: failed program was:" >&5
93bd259b
AK
12645sed 's/^/| /' conftest.$ac_ext >&5
12646
12647 ac_cv_lib_c_getline=no
12648fi
12649
ec6a6fbe 12650rm -rf conftest.dSYM
93bd259b
AK
12651rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12652 conftest$ac_exeext conftest.$ac_ext
12653LIBS=$ac_check_lib_save_LIBS
12654fi
ec6a6fbe
AK
12655{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_getline" >&5
12656$as_echo "$ac_cv_lib_c_getline" >&6; }
12657if test "x$ac_cv_lib_c_getline" = x""yes; then
93bd259b
AK
12658
12659cat >>confdefs.h <<\_ACEOF
12660#define HAVE_GETLINE 1
12661_ACEOF
12662
12663fi
12664
12665
12666################################################################################
12667
ec6a6fbe
AK
12668{ $as_echo "$as_me:$LINENO: checking for canonicalize_file_name in -lc" >&5
12669$as_echo_n "checking for canonicalize_file_name in -lc... " >&6; }
93bd259b 12670if test "${ac_cv_lib_c_canonicalize_file_name+set}" = set; then
ec6a6fbe 12671 $as_echo_n "(cached) " >&6
93bd259b
AK
12672else
12673 ac_check_lib_save_LIBS=$LIBS
12674LIBS="-lc $LIBS"
12675cat >conftest.$ac_ext <<_ACEOF
12676/* confdefs.h. */
12677_ACEOF
12678cat confdefs.h >>conftest.$ac_ext
12679cat >>conftest.$ac_ext <<_ACEOF
12680/* end confdefs.h. */
12681
12682/* Override any GCC internal prototype to avoid an error.
12683 Use char because int might match the return type of a GCC
12684 builtin and then its argument prototype would still apply. */
12685#ifdef __cplusplus
12686extern "C"
12687#endif
12688char canonicalize_file_name ();
12689int
12690main ()
12691{
12692return canonicalize_file_name ();
12693 ;
12694 return 0;
12695}
12696_ACEOF
12697rm -f conftest.$ac_objext conftest$ac_exeext
12698if { (ac_try="$ac_link"
12699case "(($ac_try" in
12700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12701 *) ac_try_echo=$ac_try;;
12702esac
ec6a6fbe
AK
12703eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12704$as_echo "$ac_try_echo") >&5
93bd259b
AK
12705 (eval "$ac_link") 2>conftest.er1
12706 ac_status=$?
12707 grep -v '^ *+' conftest.er1 >conftest.err
12708 rm -f conftest.er1
12709 cat conftest.err >&5
ec6a6fbe 12710 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
93bd259b
AK
12711 (exit $ac_status); } && {
12712 test -z "$ac_c_werror_flag" ||
12713 test ! -s conftest.err
ec6a6fbe
AK
12714 } && test -s conftest$ac_exeext && {
12715 test "$cross_compiling" = yes ||
12716 $as_test_x conftest$ac_exeext
12717 }; then
93bd259b
AK
12718 ac_cv_lib_c_canonicalize_file_name=yes
12719else
ec6a6fbe 12720 $as_echo "$as_me: failed program was:" >&5
93bd259b
AK
12721sed 's/^/| /' conftest.$ac_ext >&5
12722
12723 ac_cv_lib_c_canonicalize_file_name=no
12724fi
12725
ec6a6fbe 12726rm -rf conftest.dSYM
93bd259b
AK
12727rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12728 conftest$ac_exeext conftest.$ac_ext
12729LIBS=$ac_check_lib_save_LIBS
12730fi
ec6a6fbe
AK
12731{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_canonicalize_file_name" >&5
12732$as_echo "$ac_cv_lib_c_canonicalize_file_name" >&6; }
12733if test "x$ac_cv_lib_c_canonicalize_file_name" = x""yes; then
93bd259b
AK
12734
12735cat >>confdefs.h <<\_ACEOF
12736#define HAVE_CANONICALIZE_FILE_NAME 1
12737_ACEOF
12738
12739fi
12740
12741
d0191583
JM
12742################################################################################
12743if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ];
12744 then exec_prefix="";
12745fi;
ad6254c5 12746
ad6254c5 12747################################################################################
ec6a6fbe
AK
12748{ $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12749$as_echo_n "checking for dlopen in -ldl... " >&6; }
ad6254c5 12750if test "${ac_cv_lib_dl_dlopen+set}" = set; then
ec6a6fbe 12751 $as_echo_n "(cached) " >&6
ad6254c5
AK
12752else
12753 ac_check_lib_save_LIBS=$LIBS
12754LIBS="-ldl $LIBS"
12755cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
12756/* confdefs.h. */
12757_ACEOF
12758cat confdefs.h >>conftest.$ac_ext
12759cat >>conftest.$ac_ext <<_ACEOF
12760/* end confdefs.h. */
12761
7a197a62
AK
12762/* Override any GCC internal prototype to avoid an error.
12763 Use char because int might match the return type of a GCC
12764 builtin and then its argument prototype would still apply. */
ad6254c5
AK
12765#ifdef __cplusplus
12766extern "C"
12767#endif
ad6254c5
AK
12768char dlopen ();
12769int
12770main ()
12771{
7a197a62 12772return dlopen ();
ad6254c5
AK
12773 ;
12774 return 0;
12775}
12776_ACEOF
12777rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
12778if { (ac_try="$ac_link"
12779case "(($ac_try" in
12780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12781 *) ac_try_echo=$ac_try;;
12782esac
ec6a6fbe
AK
12783eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12784$as_echo "$ac_try_echo") >&5
7a197a62 12785 (eval "$ac_link") 2>conftest.er1
ad6254c5 12786 ac_status=$?
8a2fc586
AK
12787 grep -v '^ *+' conftest.er1 >conftest.err
12788 rm -f conftest.er1
12789 cat conftest.err >&5
ec6a6fbe 12790 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
12791 (exit $ac_status); } && {
12792 test -z "$ac_c_werror_flag" ||
12793 test ! -s conftest.err
ec6a6fbe
AK
12794 } && test -s conftest$ac_exeext && {
12795 test "$cross_compiling" = yes ||
12796 $as_test_x conftest$ac_exeext
12797 }; then
ad6254c5
AK
12798 ac_cv_lib_dl_dlopen=yes
12799else
ec6a6fbe 12800 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
12801sed 's/^/| /' conftest.$ac_ext >&5
12802
7a197a62 12803 ac_cv_lib_dl_dlopen=no
ad6254c5 12804fi
7a197a62 12805
ec6a6fbe 12806rm -rf conftest.dSYM
25fbec5b 12807rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 12808 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
12809LIBS=$ac_check_lib_save_LIBS
12810fi
ec6a6fbe
AK
12811{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12812$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12813if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
ad6254c5 12814
72b2cb61
AK
12815
12816cat >>confdefs.h <<\_ACEOF
12817#define HAVE_LIBDL 1
12818_ACEOF
12819
19a2c6e0
ZK
12820 DL_LIBS="-ldl"
12821 HAVE_LIBDL=yes
ad6254c5 12822else
19a2c6e0
ZK
12823
12824 DL_LIBS=
ad6254c5
AK
12825 HAVE_LIBDL=no
12826fi
12827
19a2c6e0 12828
ad6254c5
AK
12829################################################################################
12830if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \
12831 -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \
12832 \) -a "x$STATIC_LINK" = xyes ];
ec6a6fbe 12833 then { { $as_echo "$as_me:$LINENO: error: Features cannot be 'shared' when building statically
ad6254c5 12834" >&5
ec6a6fbe 12835$as_echo "$as_me: error: Features cannot be 'shared' when building statically
ad6254c5
AK
12836" >&2;}
12837 { (exit 1); exit 1; }; }
12838fi
12839
f30875db
ZK
12840################################################################################
12841if [ "$DMEVENTD" = yes -o "$CLVMD" != none ] ; then
12842 { $as_echo "$as_me:$LINENO: checking for pthread_mutex_lock in -lpthread" >&5
12843$as_echo_n "checking for pthread_mutex_lock in -lpthread... " >&6; }
12844if test "${ac_cv_lib_pthread_pthread_mutex_lock+set}" = set; then
12845 $as_echo_n "(cached) " >&6
12846else
12847 ac_check_lib_save_LIBS=$LIBS
12848LIBS="-lpthread $LIBS"
12849cat >conftest.$ac_ext <<_ACEOF
12850/* confdefs.h. */
12851_ACEOF
12852cat confdefs.h >>conftest.$ac_ext
12853cat >>conftest.$ac_ext <<_ACEOF
12854/* end confdefs.h. */
12855
12856/* Override any GCC internal prototype to avoid an error.
12857 Use char because int might match the return type of a GCC
12858 builtin and then its argument prototype would still apply. */
12859#ifdef __cplusplus
12860extern "C"
12861#endif
12862char pthread_mutex_lock ();
12863int
12864main ()
12865{
12866return pthread_mutex_lock ();
12867 ;
12868 return 0;
12869}
12870_ACEOF
12871rm -f conftest.$ac_objext conftest$ac_exeext
12872if { (ac_try="$ac_link"
12873case "(($ac_try" in
12874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12875 *) ac_try_echo=$ac_try;;
12876esac
12877eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12878$as_echo "$ac_try_echo") >&5
12879 (eval "$ac_link") 2>conftest.er1
12880 ac_status=$?
12881 grep -v '^ *+' conftest.er1 >conftest.err
12882 rm -f conftest.er1
12883 cat conftest.err >&5
12884 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12885 (exit $ac_status); } && {
12886 test -z "$ac_c_werror_flag" ||
12887 test ! -s conftest.err
12888 } && test -s conftest$ac_exeext && {
12889 test "$cross_compiling" = yes ||
12890 $as_test_x conftest$ac_exeext
12891 }; then
12892 ac_cv_lib_pthread_pthread_mutex_lock=yes
12893else
12894 $as_echo "$as_me: failed program was:" >&5
12895sed 's/^/| /' conftest.$ac_ext >&5
12896
12897 ac_cv_lib_pthread_pthread_mutex_lock=no
12898fi
12899
12900rm -rf conftest.dSYM
12901rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12902 conftest$ac_exeext conftest.$ac_ext
12903LIBS=$ac_check_lib_save_LIBS
12904fi
12905{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_lock" >&5
12906$as_echo "$ac_cv_lib_pthread_pthread_mutex_lock" >&6; }
12907if test "x$ac_cv_lib_pthread_pthread_mutex_lock" = x""yes; then
12908 PTHREAD_LIBS="-lpthread"
12909else
12910 hard_bailout
12911fi
12912
12913fi
12914
d0191583 12915################################################################################
ec6a6fbe
AK
12916{ $as_echo "$as_me:$LINENO: checking whether to enable selinux support" >&5
12917$as_echo_n "checking whether to enable selinux support... " >&6; }
d0191583
JM
12918# Check whether --enable-selinux was given.
12919if test "${enable_selinux+set}" = set; then
12920 enableval=$enable_selinux; SELINUX=$enableval
12921fi
12922
ec6a6fbe
AK
12923{ $as_echo "$as_me:$LINENO: result: $SELINUX" >&5
12924$as_echo "$SELINUX" >&6; }
d0191583 12925
ad6254c5
AK
12926################################################################################
12927if test x$SELINUX = xyes; then
ec6a6fbe
AK
12928 { $as_echo "$as_me:$LINENO: checking for sepol_check_context in -lsepol" >&5
12929$as_echo_n "checking for sepol_check_context in -lsepol... " >&6; }
8a2fc586 12930if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then
ec6a6fbe 12931 $as_echo_n "(cached) " >&6
8a2fc586
AK
12932else
12933 ac_check_lib_save_LIBS=$LIBS
12934LIBS="-lsepol $LIBS"
12935cat >conftest.$ac_ext <<_ACEOF
12936/* confdefs.h. */
12937_ACEOF
12938cat confdefs.h >>conftest.$ac_ext
12939cat >>conftest.$ac_ext <<_ACEOF
12940/* end confdefs.h. */
12941
7a197a62
AK
12942/* Override any GCC internal prototype to avoid an error.
12943 Use char because int might match the return type of a GCC
12944 builtin and then its argument prototype would still apply. */
8a2fc586
AK
12945#ifdef __cplusplus
12946extern "C"
12947#endif
8a2fc586
AK
12948char sepol_check_context ();
12949int
12950main ()
12951{
7a197a62 12952return sepol_check_context ();
8a2fc586
AK
12953 ;
12954 return 0;
12955}
12956_ACEOF
12957rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
12958if { (ac_try="$ac_link"
12959case "(($ac_try" in
12960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12961 *) ac_try_echo=$ac_try;;
12962esac
ec6a6fbe
AK
12963eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12964$as_echo "$ac_try_echo") >&5
7a197a62 12965 (eval "$ac_link") 2>conftest.er1
8a2fc586
AK
12966 ac_status=$?
12967 grep -v '^ *+' conftest.er1 >conftest.err
12968 rm -f conftest.er1
12969 cat conftest.err >&5
ec6a6fbe 12970 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
12971 (exit $ac_status); } && {
12972 test -z "$ac_c_werror_flag" ||
12973 test ! -s conftest.err
ec6a6fbe
AK
12974 } && test -s conftest$ac_exeext && {
12975 test "$cross_compiling" = yes ||
12976 $as_test_x conftest$ac_exeext
12977 }; then
8a2fc586
AK
12978 ac_cv_lib_sepol_sepol_check_context=yes
12979else
ec6a6fbe 12980 $as_echo "$as_me: failed program was:" >&5
8a2fc586
AK
12981sed 's/^/| /' conftest.$ac_ext >&5
12982
7a197a62 12983 ac_cv_lib_sepol_sepol_check_context=no
8a2fc586 12984fi
7a197a62 12985
ec6a6fbe 12986rm -rf conftest.dSYM
25fbec5b 12987rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586
AK
12988 conftest$ac_exeext conftest.$ac_ext
12989LIBS=$ac_check_lib_save_LIBS
12990fi
ec6a6fbe
AK
12991{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sepol_sepol_check_context" >&5
12992$as_echo "$ac_cv_lib_sepol_sepol_check_context" >&6; }
12993if test "x$ac_cv_lib_sepol_sepol_check_context" = x""yes; then
8a2fc586 12994
d0191583
JM
12995
12996cat >>confdefs.h <<\_ACEOF
12997#define HAVE_SEPOL 1
12998_ACEOF
12999
f8f6ec92
ZK
13000 SELINUX_LIBS="-lsepol"
13001fi
13002
8a2fc586 13003
ec6a6fbe
AK
13004 { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
13005$as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
ad6254c5 13006if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
ec6a6fbe 13007 $as_echo_n "(cached) " >&6
ad6254c5
AK
13008else
13009 ac_check_lib_save_LIBS=$LIBS
13010LIBS="-lselinux $LIBS"
13011cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
13012/* confdefs.h. */
13013_ACEOF
13014cat confdefs.h >>conftest.$ac_ext
13015cat >>conftest.$ac_ext <<_ACEOF
13016/* end confdefs.h. */
13017
7a197a62
AK
13018/* Override any GCC internal prototype to avoid an error.
13019 Use char because int might match the return type of a GCC
13020 builtin and then its argument prototype would still apply. */
ad6254c5
AK
13021#ifdef __cplusplus
13022extern "C"
13023#endif
ad6254c5
AK
13024char is_selinux_enabled ();
13025int
13026main ()
13027{
7a197a62 13028return is_selinux_enabled ();
ad6254c5
AK
13029 ;
13030 return 0;
13031}
13032_ACEOF
13033rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
13034if { (ac_try="$ac_link"
13035case "(($ac_try" in
13036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13037 *) ac_try_echo=$ac_try;;
13038esac
ec6a6fbe
AK
13039eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13040$as_echo "$ac_try_echo") >&5
7a197a62 13041 (eval "$ac_link") 2>conftest.er1
ad6254c5 13042 ac_status=$?
8a2fc586
AK
13043 grep -v '^ *+' conftest.er1 >conftest.err
13044 rm -f conftest.er1
13045 cat conftest.err >&5
ec6a6fbe 13046 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
13047 (exit $ac_status); } && {
13048 test -z "$ac_c_werror_flag" ||
13049 test ! -s conftest.err
ec6a6fbe
AK
13050 } && test -s conftest$ac_exeext && {
13051 test "$cross_compiling" = yes ||
13052 $as_test_x conftest$ac_exeext
13053 }; then
ad6254c5
AK
13054 ac_cv_lib_selinux_is_selinux_enabled=yes
13055else
ec6a6fbe 13056 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
13057sed 's/^/| /' conftest.$ac_ext >&5
13058
7a197a62 13059 ac_cv_lib_selinux_is_selinux_enabled=no
ad6254c5 13060fi
7a197a62 13061
ec6a6fbe 13062rm -rf conftest.dSYM
25fbec5b 13063rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 13064 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
13065LIBS=$ac_check_lib_save_LIBS
13066fi
ec6a6fbe
AK
13067{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
13068$as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
13069if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then
ad6254c5 13070
72b2cb61 13071
f8f6ec92
ZK
13072for ac_header in selinux/selinux.h
13073do
13074as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13075if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13076 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13077$as_echo_n "checking for $ac_header... " >&6; }
13078if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 13079 $as_echo_n "(cached) " >&6
f8f6ec92
ZK
13080fi
13081ac_res=`eval 'as_val=${'$as_ac_Header'}
13082 $as_echo "$as_val"'`
13083 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13084$as_echo "$ac_res" >&6; }
66e941e8 13085else
f8f6ec92
ZK
13086 # Is the header compilable?
13087{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13088$as_echo_n "checking $ac_header usability... " >&6; }
66e941e8
JM
13089cat >conftest.$ac_ext <<_ACEOF
13090/* confdefs.h. */
13091_ACEOF
13092cat confdefs.h >>conftest.$ac_ext
13093cat >>conftest.$ac_ext <<_ACEOF
13094/* end confdefs.h. */
f8f6ec92
ZK
13095$ac_includes_default
13096#include <$ac_header>
66e941e8 13097_ACEOF
f8f6ec92
ZK
13098rm -f conftest.$ac_objext
13099if { (ac_try="$ac_compile"
66e941e8
JM
13100case "(($ac_try" in
13101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13102 *) ac_try_echo=$ac_try;;
13103esac
ec6a6fbe
AK
13104eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13105$as_echo "$ac_try_echo") >&5
f8f6ec92 13106 (eval "$ac_compile") 2>conftest.er1
66e941e8
JM
13107 ac_status=$?
13108 grep -v '^ *+' conftest.er1 >conftest.err
13109 rm -f conftest.er1
13110 cat conftest.err >&5
ec6a6fbe 13111 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
13112 (exit $ac_status); } && {
13113 test -z "$ac_c_werror_flag" ||
13114 test ! -s conftest.err
f8f6ec92
ZK
13115 } && test -s conftest.$ac_objext; then
13116 ac_header_compiler=yes
13117else
13118 $as_echo "$as_me: failed program was:" >&5
13119sed 's/^/| /' conftest.$ac_ext >&5
13120
13121 ac_header_compiler=no
13122fi
13123
13124rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13125{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13126$as_echo "$ac_header_compiler" >&6; }
13127
13128# Is the header present?
13129{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13130$as_echo_n "checking $ac_header presence... " >&6; }
13131cat >conftest.$ac_ext <<_ACEOF
13132/* confdefs.h. */
13133_ACEOF
13134cat confdefs.h >>conftest.$ac_ext
13135cat >>conftest.$ac_ext <<_ACEOF
13136/* end confdefs.h. */
13137#include <$ac_header>
13138_ACEOF
13139if { (ac_try="$ac_cpp conftest.$ac_ext"
13140case "(($ac_try" in
13141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13142 *) ac_try_echo=$ac_try;;
13143esac
13144eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13145$as_echo "$ac_try_echo") >&5
13146 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13147 ac_status=$?
13148 grep -v '^ *+' conftest.er1 >conftest.err
13149 rm -f conftest.er1
13150 cat conftest.err >&5
13151 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13152 (exit $ac_status); } >/dev/null && {
13153 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13154 test ! -s conftest.err
ec6a6fbe 13155 }; then
f8f6ec92 13156 ac_header_preproc=yes
66e941e8 13157else
ec6a6fbe 13158 $as_echo "$as_me: failed program was:" >&5
66e941e8
JM
13159sed 's/^/| /' conftest.$ac_ext >&5
13160
f8f6ec92
ZK
13161 ac_header_preproc=no
13162fi
13163
13164rm -f conftest.err conftest.$ac_ext
13165{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13166$as_echo "$ac_header_preproc" >&6; }
13167
13168# So? What about this header?
13169case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13170 yes:no: )
13171 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13172$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13173 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13174$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13175 ac_header_preproc=yes
13176 ;;
13177 no:yes:* )
13178 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13179$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13180 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13181$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13182 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13183$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13184 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13185$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13186 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13187$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13188 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13189$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
66e941e8 13190
f8f6ec92
ZK
13191 ;;
13192esac
13193{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13194$as_echo_n "checking for $ac_header... " >&6; }
13195if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13196 $as_echo_n "(cached) " >&6
13197else
13198 eval "$as_ac_Header=\$ac_header_preproc"
66e941e8 13199fi
f8f6ec92
ZK
13200ac_res=`eval 'as_val=${'$as_ac_Header'}
13201 $as_echo "$as_val"'`
13202 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13203$as_echo "$ac_res" >&6; }
66e941e8 13204
66e941e8 13205fi
f8f6ec92
ZK
13206as_val=`eval 'as_val=${'$as_ac_Header'}
13207 $as_echo "$as_val"'`
13208 if test "x$as_val" = x""yes; then
13209 cat >>confdefs.h <<_ACEOF
13210#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13211_ACEOF
13212
66e941e8 13213else
f8f6ec92 13214 hard_bailout
66e941e8 13215fi
f8f6ec92
ZK
13216
13217done
13218
13219
13220cat >>confdefs.h <<\_ACEOF
13221#define HAVE_SELINUX 1
13222_ACEOF
13223
13224 SELINUX_LIBS="-lselinux $SELINUX_LIBS"
f7f0854e 13225 SELINUX_PC="libselinux"
f8f6ec92
ZK
13226 HAVE_SELINUX=yes
13227else
13228
13229 { $as_echo "$as_me:$LINENO: WARNING: Disabling selinux" >&5
13230$as_echo "$as_me: WARNING: Disabling selinux" >&2;}
13231 SELINUX_LIBS=
f7f0854e 13232 SELINUX_PC=
f8f6ec92 13233 HAVE_SELINUX=no
66e941e8
JM
13234fi
13235
ad6254c5
AK
13236fi
13237
8b1a3214
AK
13238################################################################################
13239if test x$REALTIME = xyes; then
ec6a6fbe
AK
13240 { $as_echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
13241$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
8b1a3214 13242if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
ec6a6fbe 13243 $as_echo_n "(cached) " >&6
8b1a3214
AK
13244else
13245 ac_check_lib_save_LIBS=$LIBS
13246LIBS="-lrt $LIBS"
13247cat >conftest.$ac_ext <<_ACEOF
13248/* confdefs.h. */
13249_ACEOF
13250cat confdefs.h >>conftest.$ac_ext
13251cat >>conftest.$ac_ext <<_ACEOF
13252/* end confdefs.h. */
13253
7a197a62
AK
13254/* Override any GCC internal prototype to avoid an error.
13255 Use char because int might match the return type of a GCC
13256 builtin and then its argument prototype would still apply. */
8b1a3214
AK
13257#ifdef __cplusplus
13258extern "C"
13259#endif
8b1a3214
AK
13260char clock_gettime ();
13261int
13262main ()
13263{
7a197a62 13264return clock_gettime ();
8b1a3214
AK
13265 ;
13266 return 0;
13267}
13268_ACEOF
13269rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
13270if { (ac_try="$ac_link"
13271case "(($ac_try" in
13272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13273 *) ac_try_echo=$ac_try;;
13274esac
ec6a6fbe
AK
13275eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13276$as_echo "$ac_try_echo") >&5
7a197a62 13277 (eval "$ac_link") 2>conftest.er1
8b1a3214
AK
13278 ac_status=$?
13279 grep -v '^ *+' conftest.er1 >conftest.err
13280 rm -f conftest.er1
13281 cat conftest.err >&5
ec6a6fbe 13282 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
13283 (exit $ac_status); } && {
13284 test -z "$ac_c_werror_flag" ||
13285 test ! -s conftest.err
ec6a6fbe
AK
13286 } && test -s conftest$ac_exeext && {
13287 test "$cross_compiling" = yes ||
13288 $as_test_x conftest$ac_exeext
13289 }; then
8b1a3214
AK
13290 ac_cv_lib_rt_clock_gettime=yes
13291else
ec6a6fbe 13292 $as_echo "$as_me: failed program was:" >&5
8b1a3214
AK
13293sed 's/^/| /' conftest.$ac_ext >&5
13294
7a197a62 13295 ac_cv_lib_rt_clock_gettime=no
8b1a3214 13296fi
7a197a62 13297
ec6a6fbe 13298rm -rf conftest.dSYM
25fbec5b 13299rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8b1a3214
AK
13300 conftest$ac_exeext conftest.$ac_ext
13301LIBS=$ac_check_lib_save_LIBS
13302fi
ec6a6fbe
AK
13303{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
13304$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
13305if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then
8b1a3214
AK
13306 HAVE_REALTIME=yes
13307else
13308 HAVE_REALTIME=no
13309fi
13310
8b1a3214
AK
13311
13312 if test x$HAVE_REALTIME = xyes; then
13313
13314cat >>confdefs.h <<\_ACEOF
13315#define HAVE_REALTIME 1
13316_ACEOF
13317
13318 LIBS="-lrt $LIBS"
13319 else
ec6a6fbe
AK
13320 { $as_echo "$as_me:$LINENO: WARNING: Disabling realtime clock" >&5
13321$as_echo "$as_me: WARNING: Disabling realtime clock" >&2;}
8b1a3214
AK
13322 fi
13323fi
13324
ad6254c5
AK
13325################################################################################
13326
13327for ac_header in getopt.h
13328do
ec6a6fbe 13329as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 13330if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
13331 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13332$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 13333if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 13334 $as_echo_n "(cached) " >&6
ad6254c5 13335fi
ec6a6fbe
AK
13336ac_res=`eval 'as_val=${'$as_ac_Header'}
13337 $as_echo "$as_val"'`
13338 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13339$as_echo "$ac_res" >&6; }
ad6254c5
AK
13340else
13341 # Is the header compilable?
ec6a6fbe
AK
13342{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13343$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 13344cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
13345/* confdefs.h. */
13346_ACEOF
13347cat confdefs.h >>conftest.$ac_ext
13348cat >>conftest.$ac_ext <<_ACEOF
13349/* end confdefs.h. */
13350$ac_includes_default
13351#include <$ac_header>
13352_ACEOF
13353rm -f conftest.$ac_objext
7a197a62
AK
13354if { (ac_try="$ac_compile"
13355case "(($ac_try" in
13356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13357 *) ac_try_echo=$ac_try;;
13358esac
ec6a6fbe
AK
13359eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13360$as_echo "$ac_try_echo") >&5
7a197a62 13361 (eval "$ac_compile") 2>conftest.er1
ad6254c5 13362 ac_status=$?
8a2fc586
AK
13363 grep -v '^ *+' conftest.er1 >conftest.err
13364 rm -f conftest.er1
13365 cat conftest.err >&5
ec6a6fbe 13366 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
13367 (exit $ac_status); } && {
13368 test -z "$ac_c_werror_flag" ||
13369 test ! -s conftest.err
13370 } && test -s conftest.$ac_objext; then
ad6254c5
AK
13371 ac_header_compiler=yes
13372else
ec6a6fbe 13373 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
13374sed 's/^/| /' conftest.$ac_ext >&5
13375
7a197a62 13376 ac_header_compiler=no
ad6254c5 13377fi
7a197a62
AK
13378
13379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
13380{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13381$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
13382
13383# Is the header present?
ec6a6fbe
AK
13384{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13385$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 13386cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
13387/* confdefs.h. */
13388_ACEOF
13389cat confdefs.h >>conftest.$ac_ext
13390cat >>conftest.$ac_ext <<_ACEOF
13391/* end confdefs.h. */
13392#include <$ac_header>
13393_ACEOF
7a197a62
AK
13394if { (ac_try="$ac_cpp conftest.$ac_ext"
13395case "(($ac_try" in
13396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13397 *) ac_try_echo=$ac_try;;
13398esac
ec6a6fbe
AK
13399eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13400$as_echo "$ac_try_echo") >&5
7a197a62 13401 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
13402 ac_status=$?
13403 grep -v '^ *+' conftest.er1 >conftest.err
13404 rm -f conftest.er1
13405 cat conftest.err >&5
ec6a6fbe 13406 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
13407 (exit $ac_status); } >/dev/null && {
13408 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13409 test ! -s conftest.err
13410 }; then
ad6254c5
AK
13411 ac_header_preproc=yes
13412else
ec6a6fbe 13413 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
13414sed 's/^/| /' conftest.$ac_ext >&5
13415
13416 ac_header_preproc=no
13417fi
7a197a62 13418
ad6254c5 13419rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
13420{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13421$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
13422
13423# So? What about this header?
8a2fc586
AK
13424case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13425 yes:no: )
ec6a6fbe
AK
13426 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13427$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13428 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13429$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 13430 ac_header_preproc=yes
ad6254c5 13431 ;;
8a2fc586 13432 no:yes:* )
ec6a6fbe
AK
13433 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13434$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13435 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13436$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13437 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13438$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13439 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13440$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13441 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13442$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13443 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13444$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 13445
ad6254c5
AK
13446 ;;
13447esac
ec6a6fbe
AK
13448{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13449$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 13450if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 13451 $as_echo_n "(cached) " >&6
ad6254c5 13452else
8a2fc586 13453 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 13454fi
ec6a6fbe
AK
13455ac_res=`eval 'as_val=${'$as_ac_Header'}
13456 $as_echo "$as_val"'`
13457 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13458$as_echo "$ac_res" >&6; }
ad6254c5
AK
13459
13460fi
ec6a6fbe
AK
13461as_val=`eval 'as_val=${'$as_ac_Header'}
13462 $as_echo "$as_val"'`
13463 if test "x$as_val" = x""yes; then
ad6254c5 13464 cat >>confdefs.h <<_ACEOF
ec6a6fbe 13465#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 13466_ACEOF
72b2cb61
AK
13467
13468cat >>confdefs.h <<\_ACEOF
13469#define HAVE_GETOPTLONG 1
13470_ACEOF
13471
ad6254c5
AK
13472fi
13473
13474done
13475
13476
13477################################################################################
06e459df 13478if test x$READLINE != xno; then
539f4a77
ZK
13479 lvm_saved_libs=$LIBS
13480 { $as_echo "$as_me:$LINENO: checking for library containing tgetent" >&5
13481$as_echo_n "checking for library containing tgetent... " >&6; }
13482if test "${ac_cv_search_tgetent+set}" = set; then
13483 $as_echo_n "(cached) " >&6
13484else
13485 ac_func_search_save_LIBS=$LIBS
13486cat >conftest.$ac_ext <<_ACEOF
13487/* confdefs.h. */
13488_ACEOF
13489cat confdefs.h >>conftest.$ac_ext
13490cat >>conftest.$ac_ext <<_ACEOF
13491/* end confdefs.h. */
bc1024f8 13492
539f4a77
ZK
13493/* Override any GCC internal prototype to avoid an error.
13494 Use char because int might match the return type of a GCC
13495 builtin and then its argument prototype would still apply. */
13496#ifdef __cplusplus
13497extern "C"
13498#endif
13499char tgetent ();
13500int
13501main ()
13502{
13503return tgetent ();
13504 ;
13505 return 0;
13506}
13507_ACEOF
13508for ac_lib in '' tinfo ncurses curses termcap termlib; do
13509 if test -z "$ac_lib"; then
13510 ac_res="none required"
13511 else
13512 ac_res=-l$ac_lib
13513 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13514 fi
13515 rm -f conftest.$ac_objext conftest$ac_exeext
13516if { (ac_try="$ac_link"
13517case "(($ac_try" in
13518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13519 *) ac_try_echo=$ac_try;;
13520esac
13521eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13522$as_echo "$ac_try_echo") >&5
13523 (eval "$ac_link") 2>conftest.er1
13524 ac_status=$?
13525 grep -v '^ *+' conftest.er1 >conftest.err
13526 rm -f conftest.er1
13527 cat conftest.err >&5
13528 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13529 (exit $ac_status); } && {
13530 test -z "$ac_c_werror_flag" ||
13531 test ! -s conftest.err
13532 } && test -s conftest$ac_exeext && {
13533 test "$cross_compiling" = yes ||
13534 $as_test_x conftest$ac_exeext
13535 }; then
13536 ac_cv_search_tgetent=$ac_res
13537else
13538 $as_echo "$as_me: failed program was:" >&5
13539sed 's/^/| /' conftest.$ac_ext >&5
13540
13541
13542fi
13543
13544rm -rf conftest.dSYM
13545rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13546 conftest$ac_exeext
13547 if test "${ac_cv_search_tgetent+set}" = set; then
13548 break
13549fi
13550done
13551if test "${ac_cv_search_tgetent+set}" = set; then
13552 :
13553else
13554 ac_cv_search_tgetent=no
13555fi
13556rm conftest.$ac_ext
13557LIBS=$ac_func_search_save_LIBS
13558fi
13559{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
13560$as_echo "$ac_cv_search_tgetent" >&6; }
13561ac_res=$ac_cv_search_tgetent
13562if test "$ac_res" != no; then
13563 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13564 READLINE_LIBS=$ac_cv_search_tgetent
13565else
13566
13567 if test "$READLINE" = yes; then
13568 { { $as_echo "$as_me:$LINENO: error: termcap could not be found which is required for the
13569--enable-readline option (which is enabled by default). Either disable readline
13570support with --disable-readline or download and install termcap from:
13571 ftp.gnu.org/gnu/termcap
13572Note: if you are using precompiled packages you will also need the development
13573 package as well (which may be called termcap-devel or something similar).
13574Note: (n)curses also seems to work as a substitute for termcap. This was
13575 not found either - but you could try installing that as well." >&5
13576$as_echo "$as_me: error: termcap could not be found which is required for the
13577--enable-readline option (which is enabled by default). Either disable readline
13578support with --disable-readline or download and install termcap from:
13579 ftp.gnu.org/gnu/termcap
13580Note: if you are using precompiled packages you will also need the development
13581 package as well (which may be called termcap-devel or something similar).
13582Note: (n)curses also seems to work as a substitute for termcap. This was
13583 not found either - but you could try installing that as well." >&2;}
13584 { (exit 1); exit 1; }; }
13585 fi
13586fi
13587
13588 { $as_echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
ec6a6fbe 13589$as_echo_n "checking for readline in -lreadline... " >&6; }
ad6254c5 13590if test "${ac_cv_lib_readline_readline+set}" = set; then
ec6a6fbe 13591 $as_echo_n "(cached) " >&6
ad6254c5
AK
13592else
13593 ac_check_lib_save_LIBS=$LIBS
13594LIBS="-lreadline $LIBS"
13595cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
13596/* confdefs.h. */
13597_ACEOF
13598cat confdefs.h >>conftest.$ac_ext
13599cat >>conftest.$ac_ext <<_ACEOF
13600/* end confdefs.h. */
13601
7a197a62
AK
13602/* Override any GCC internal prototype to avoid an error.
13603 Use char because int might match the return type of a GCC
13604 builtin and then its argument prototype would still apply. */
ad6254c5
AK
13605#ifdef __cplusplus
13606extern "C"
13607#endif
ad6254c5
AK
13608char readline ();
13609int
13610main ()
13611{
7a197a62 13612return readline ();
ad6254c5
AK
13613 ;
13614 return 0;
13615}
13616_ACEOF
13617rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
13618if { (ac_try="$ac_link"
13619case "(($ac_try" in
13620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13621 *) ac_try_echo=$ac_try;;
13622esac
ec6a6fbe
AK
13623eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13624$as_echo "$ac_try_echo") >&5
7a197a62 13625 (eval "$ac_link") 2>conftest.er1
ad6254c5 13626 ac_status=$?
8a2fc586
AK
13627 grep -v '^ *+' conftest.er1 >conftest.err
13628 rm -f conftest.er1
13629 cat conftest.err >&5
ec6a6fbe 13630 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
13631 (exit $ac_status); } && {
13632 test -z "$ac_c_werror_flag" ||
13633 test ! -s conftest.err
ec6a6fbe
AK
13634 } && test -s conftest$ac_exeext && {
13635 test "$cross_compiling" = yes ||
13636 $as_test_x conftest$ac_exeext
13637 }; then
ad6254c5
AK
13638 ac_cv_lib_readline_readline=yes
13639else
ec6a6fbe 13640 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
13641sed 's/^/| /' conftest.$ac_ext >&5
13642
7a197a62 13643 ac_cv_lib_readline_readline=no
ad6254c5 13644fi
7a197a62 13645
ec6a6fbe 13646rm -rf conftest.dSYM
25fbec5b 13647rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 13648 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
13649LIBS=$ac_check_lib_save_LIBS
13650fi
ec6a6fbe
AK
13651{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
13652$as_echo "$ac_cv_lib_readline_readline" >&6; }
13653if test "x$ac_cv_lib_readline_readline" = x""yes; then
539f4a77
ZK
13654
13655
13656cat >>confdefs.h <<\_ACEOF
13657#define READLINE_SUPPORT 1
bc1024f8
JM
13658_ACEOF
13659
539f4a77
ZK
13660 LIBS=$lvm_saved_libs
13661 { $as_echo "$as_me:$LINENO: checking for rl_line_buffer in -lreadline" >&5
13662$as_echo_n "checking for rl_line_buffer in -lreadline... " >&6; }
13663if test "${ac_cv_lib_readline_rl_line_buffer+set}" = set; then
13664 $as_echo_n "(cached) " >&6
13665else
13666 ac_check_lib_save_LIBS=$LIBS
13667LIBS="-lreadline $LIBS"
13668cat >conftest.$ac_ext <<_ACEOF
13669/* confdefs.h. */
13670_ACEOF
13671cat confdefs.h >>conftest.$ac_ext
13672cat >>conftest.$ac_ext <<_ACEOF
13673/* end confdefs.h. */
bc1024f8 13674
539f4a77
ZK
13675/* Override any GCC internal prototype to avoid an error.
13676 Use char because int might match the return type of a GCC
13677 builtin and then its argument prototype would still apply. */
13678#ifdef __cplusplus
13679extern "C"
13680#endif
13681char rl_line_buffer ();
13682int
13683main ()
13684{
13685return rl_line_buffer ();
13686 ;
13687 return 0;
13688}
13689_ACEOF
13690rm -f conftest.$ac_objext conftest$ac_exeext
13691if { (ac_try="$ac_link"
13692case "(($ac_try" in
13693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13694 *) ac_try_echo=$ac_try;;
13695esac
13696eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13697$as_echo "$ac_try_echo") >&5
13698 (eval "$ac_link") 2>conftest.er1
13699 ac_status=$?
13700 grep -v '^ *+' conftest.er1 >conftest.err
13701 rm -f conftest.er1
13702 cat conftest.err >&5
13703 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13704 (exit $ac_status); } && {
13705 test -z "$ac_c_werror_flag" ||
13706 test ! -s conftest.err
13707 } && test -s conftest$ac_exeext && {
13708 test "$cross_compiling" = yes ||
13709 $as_test_x conftest$ac_exeext
13710 }; then
13711 ac_cv_lib_readline_rl_line_buffer=yes
ad6254c5 13712else
539f4a77
ZK
13713 $as_echo "$as_me: failed program was:" >&5
13714sed 's/^/| /' conftest.$ac_ext >&5
13715
13716 ac_cv_lib_readline_rl_line_buffer=no
06e459df
JM
13717fi
13718
539f4a77
ZK
13719rm -rf conftest.dSYM
13720rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13721 conftest$ac_exeext conftest.$ac_ext
13722LIBS=$ac_check_lib_save_LIBS
13723fi
13724{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_line_buffer" >&5
13725$as_echo "$ac_cv_lib_readline_rl_line_buffer" >&6; }
13726if test "x$ac_cv_lib_readline_rl_line_buffer" = x""yes; then
13727 READLINE_LIBS="-lreadline"
13728else
13729
13730 { $as_echo "$as_me:$LINENO: result: linking -lreadline with $READLINE_LIBS needed" >&5
13731$as_echo "linking -lreadline with $READLINE_LIBS needed" >&6; }
13732 READLINE_LIBS="-lreadline $READLINE_LIBS"
13733
13734fi
13735
13736else
13737
13738 READLINE_LIBS=
13739 if test "$READLINE" = yes; then
13740 { { $as_echo "$as_me:$LINENO: error: GNU Readline could not be found which is required for the
ad6254c5
AK
13741--enable-readline option (which is enabled by default). Either disable readline
13742support with --disable-readline or download and install readline from:
13743 ftp.gnu.org/gnu/readline
13744Note: if you are using precompiled packages you will also need the development
539f4a77 13745package as well (which may be called readline-devel or something similar)." >&5
ec6a6fbe 13746$as_echo "$as_me: error: GNU Readline could not be found which is required for the
ad6254c5
AK
13747--enable-readline option (which is enabled by default). Either disable readline
13748support with --disable-readline or download and install readline from:
13749 ftp.gnu.org/gnu/readline
13750Note: if you are using precompiled packages you will also need the development
539f4a77 13751package as well (which may be called readline-devel or something similar)." >&2;}
ad6254c5 13752 { (exit 1); exit 1; }; }
539f4a77
ZK
13753 fi
13754fi
13755
13756 LIBS="$READLINE_LIBS $lvm_saved_libs"
bc1024f8
JM
13757
13758for ac_func in rl_completion_matches
13759do
ec6a6fbe
AK
13760as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13761{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13762$as_echo_n "checking for $ac_func... " >&6; }
bc1024f8 13763if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 13764 $as_echo_n "(cached) " >&6
ad6254c5
AK
13765else
13766 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
13767/* confdefs.h. */
13768_ACEOF
13769cat confdefs.h >>conftest.$ac_ext
13770cat >>conftest.$ac_ext <<_ACEOF
13771/* end confdefs.h. */
bc1024f8 13772/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8a2fc586 13773 For example, HP-UX 11i <limits.h> declares gettimeofday. */
bc1024f8 13774#define $ac_func innocuous_$ac_func
8a2fc586 13775
ad6254c5 13776/* System header to define __stub macros and hopefully few prototypes,
bc1024f8 13777 which can conflict with char $ac_func (); below.
ad6254c5
AK
13778 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13779 <limits.h> exists even on freestanding compilers. */
8a2fc586 13780
ad6254c5
AK
13781#ifdef __STDC__
13782# include <limits.h>
13783#else
13784# include <assert.h>
13785#endif
8a2fc586 13786
bc1024f8 13787#undef $ac_func
8a2fc586 13788
7a197a62
AK
13789/* Override any GCC internal prototype to avoid an error.
13790 Use char because int might match the return type of a GCC
13791 builtin and then its argument prototype would still apply. */
ad6254c5
AK
13792#ifdef __cplusplus
13793extern "C"
ad6254c5 13794#endif
bc1024f8 13795char $ac_func ();
ad6254c5
AK
13796/* The GNU C library defines this for functions which it implements
13797 to always fail with ENOSYS. Some functions are actually named
13798 something starting with __ and the normal name is an alias. */
bc1024f8 13799#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 13800choke me
ad6254c5
AK
13801#endif
13802
13803int
13804main ()
13805{
bc1024f8 13806return $ac_func ();
ad6254c5
AK
13807 ;
13808 return 0;
13809}
13810_ACEOF
13811rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
13812if { (ac_try="$ac_link"
13813case "(($ac_try" in
13814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13815 *) ac_try_echo=$ac_try;;
13816esac
ec6a6fbe
AK
13817eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13818$as_echo "$ac_try_echo") >&5
7a197a62 13819 (eval "$ac_link") 2>conftest.er1
ad6254c5 13820 ac_status=$?
8a2fc586
AK
13821 grep -v '^ *+' conftest.er1 >conftest.err
13822 rm -f conftest.er1
13823 cat conftest.err >&5
ec6a6fbe 13824 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
13825 (exit $ac_status); } && {
13826 test -z "$ac_c_werror_flag" ||
13827 test ! -s conftest.err
ec6a6fbe
AK
13828 } && test -s conftest$ac_exeext && {
13829 test "$cross_compiling" = yes ||
13830 $as_test_x conftest$ac_exeext
13831 }; then
bc1024f8 13832 eval "$as_ac_var=yes"
ad6254c5 13833else
ec6a6fbe 13834 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
13835sed 's/^/| /' conftest.$ac_ext >&5
13836
bc1024f8 13837 eval "$as_ac_var=no"
ad6254c5 13838fi
7a197a62 13839
ec6a6fbe 13840rm -rf conftest.dSYM
25fbec5b 13841rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 13842 conftest$ac_exeext conftest.$ac_ext
ad6254c5 13843fi
ec6a6fbe
AK
13844ac_res=`eval 'as_val=${'$as_ac_var'}
13845 $as_echo "$as_val"'`
13846 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13847$as_echo "$ac_res" >&6; }
13848as_val=`eval 'as_val=${'$as_ac_var'}
13849 $as_echo "$as_val"'`
13850 if test "x$as_val" = x""yes; then
bc1024f8 13851 cat >>confdefs.h <<_ACEOF
ec6a6fbe 13852#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
72b2cb61
AK
13853_ACEOF
13854
13855fi
bc1024f8 13856done
ad6254c5 13857
539f4a77 13858 LIBS=$lvm_saved_libs
ad6254c5
AK
13859fi
13860
13861################################################################################
ec6a6fbe
AK
13862{ $as_echo "$as_me:$LINENO: checking whether to enable internationalisation" >&5
13863$as_echo_n "checking whether to enable internationalisation... " >&6; }
7a197a62 13864# Check whether --enable-nls was given.
ad6254c5 13865if test "${enable_nls+set}" = set; then
7a197a62 13866 enableval=$enable_nls; INTL=$enableval
ad6254c5
AK
13867else
13868 INTL=no
7a197a62
AK
13869fi
13870
ec6a6fbe
AK
13871{ $as_echo "$as_me:$LINENO: result: $INTL" >&5
13872$as_echo "$INTL" >&6; }
ad6254c5
AK
13873
13874if test x$INTL = xyes; then
93bd259b 13875# FIXME - Move this - can be device-mapper too
ad6254c5
AK
13876 INTL_PACKAGE="lvm2"
13877 # Extract the first word of "msgfmt", so it can be a program name with args.
13878set dummy msgfmt; ac_word=$2
ec6a6fbe
AK
13879{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13880$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 13881if test "${ac_cv_path_MSGFMT+set}" = set; then
ec6a6fbe 13882 $as_echo_n "(cached) " >&6
ad6254c5
AK
13883else
13884 case $MSGFMT in
13885 [\\/]* | ?:[\\/]*)
13886 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
13887 ;;
13888 *)
13889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13890for as_dir in $PATH
13891do
13892 IFS=$as_save_IFS
13893 test -z "$as_dir" && as_dir=.
13894 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 13895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 13896 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 13897 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
13898 break 2
13899 fi
13900done
13901done
7a197a62 13902IFS=$as_save_IFS
ad6254c5
AK
13903
13904 ;;
13905esac
13906fi
13907MSGFMT=$ac_cv_path_MSGFMT
ad6254c5 13908if test -n "$MSGFMT"; then
ec6a6fbe
AK
13909 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
13910$as_echo "$MSGFMT" >&6; }
ad6254c5 13911else
ec6a6fbe
AK
13912 { $as_echo "$as_me:$LINENO: result: no" >&5
13913$as_echo "no" >&6; }
ad6254c5
AK
13914fi
13915
7a197a62 13916
ad6254c5 13917 if [ "x$MSGFMT" == x ];
ec6a6fbe 13918 then { { $as_echo "$as_me:$LINENO: error: msgfmt not found in path $PATH
ad6254c5 13919 " >&5
ec6a6fbe 13920$as_echo "$as_me: error: msgfmt not found in path $PATH
ad6254c5
AK
13921 " >&2;}
13922 { (exit 1); exit 1; }; }
13923 fi;
13924
13925
7a197a62 13926# Check whether --with-localedir was given.
ad6254c5 13927if test "${with_localedir+set}" = set; then
7a197a62 13928 withval=$with_localedir; LOCALEDIR="$withval"
ad6254c5
AK
13929else
13930 LOCALEDIR='${prefix}/share/locale'
7a197a62
AK
13931fi
13932
ad6254c5
AK
13933fi
13934
13935################################################################################
13936
7a197a62 13937# Check whether --with-confdir was given.
ad6254c5 13938if test "${with_confdir+set}" = set; then
7a197a62 13939 withval=$with_confdir; CONFDIR="$withval"
ad6254c5
AK
13940else
13941 CONFDIR='/etc'
7a197a62
AK
13942fi
13943
ad6254c5
AK
13944
13945
7a197a62 13946# Check whether --with-staticdir was given.
ad6254c5 13947if test "${with_staticdir+set}" = set; then
7a197a62 13948 withval=$with_staticdir; STATICDIR="$withval"
ad6254c5
AK
13949else
13950 STATICDIR='${exec_prefix}/sbin'
7a197a62 13951fi
ad6254c5 13952
33f732c5 13953
7a197a62 13954
68f2de6d
AK
13955# Check whether --with-usrlibdir was given.
13956if test "${with_usrlibdir+set}" = set; then
13957 withval=$with_usrlibdir; usrlibdir="$withval"
13958else
13959 usrlibdir='${prefix}/lib'
13960fi
13961
13962
13963
13964# Check whether --with-usrsbindir was given.
13965if test "${with_usrsbindir+set}" = set; then
13966 withval=$with_usrsbindir; usrsbindir="$withval"
13967else
13968 usrsbindir='${prefix}/sbin'
13969fi
13970
13971
a5f46f6a
AK
13972################################################################################
13973
13974# Check whether --with-udev_prefix was given.
13975if test "${with_udev_prefix+set}" = set; then
13976 withval=$with_udev_prefix; udev_prefix="$withval"
13977else
13978 udev_prefix='${exec_prefix}'
13979fi
13980
13981
78ce7acc
AK
13982
13983# Check whether --with-udevdir was given.
13984if test "${with_udevdir+set}" = set; then
13985 withval=$with_udevdir; udevdir="$withval"
13986else
13987 udevdir='${udev_prefix}/lib/udev/rules.d'
13988fi
13989
a5f46f6a 13990
ad6254c5
AK
13991################################################################################
13992if test x$READLINE = xyes; then
13993
13994
13995for ac_header in readline/readline.h readline/history.h
13996do
ec6a6fbe 13997as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 13998if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
13999 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14000$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 14001if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 14002 $as_echo_n "(cached) " >&6
ad6254c5 14003fi
ec6a6fbe
AK
14004ac_res=`eval 'as_val=${'$as_ac_Header'}
14005 $as_echo "$as_val"'`
14006 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14007$as_echo "$ac_res" >&6; }
ad6254c5
AK
14008else
14009 # Is the header compilable?
ec6a6fbe
AK
14010{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14011$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 14012cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14013/* confdefs.h. */
14014_ACEOF
14015cat confdefs.h >>conftest.$ac_ext
14016cat >>conftest.$ac_ext <<_ACEOF
14017/* end confdefs.h. */
14018$ac_includes_default
14019#include <$ac_header>
14020_ACEOF
14021rm -f conftest.$ac_objext
7a197a62
AK
14022if { (ac_try="$ac_compile"
14023case "(($ac_try" in
14024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14025 *) ac_try_echo=$ac_try;;
14026esac
ec6a6fbe
AK
14027eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14028$as_echo "$ac_try_echo") >&5
7a197a62 14029 (eval "$ac_compile") 2>conftest.er1
ad6254c5 14030 ac_status=$?
8a2fc586
AK
14031 grep -v '^ *+' conftest.er1 >conftest.err
14032 rm -f conftest.er1
14033 cat conftest.err >&5
ec6a6fbe 14034 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14035 (exit $ac_status); } && {
14036 test -z "$ac_c_werror_flag" ||
14037 test ! -s conftest.err
14038 } && test -s conftest.$ac_objext; then
ad6254c5
AK
14039 ac_header_compiler=yes
14040else
ec6a6fbe 14041 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14042sed 's/^/| /' conftest.$ac_ext >&5
14043
7a197a62 14044 ac_header_compiler=no
ad6254c5 14045fi
7a197a62
AK
14046
14047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
14048{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14049$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
14050
14051# Is the header present?
ec6a6fbe
AK
14052{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14053$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 14054cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14055/* confdefs.h. */
14056_ACEOF
14057cat confdefs.h >>conftest.$ac_ext
14058cat >>conftest.$ac_ext <<_ACEOF
14059/* end confdefs.h. */
14060#include <$ac_header>
14061_ACEOF
7a197a62
AK
14062if { (ac_try="$ac_cpp conftest.$ac_ext"
14063case "(($ac_try" in
14064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14065 *) ac_try_echo=$ac_try;;
14066esac
ec6a6fbe
AK
14067eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14068$as_echo "$ac_try_echo") >&5
7a197a62 14069 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
14070 ac_status=$?
14071 grep -v '^ *+' conftest.er1 >conftest.err
14072 rm -f conftest.er1
14073 cat conftest.err >&5
ec6a6fbe 14074 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14075 (exit $ac_status); } >/dev/null && {
14076 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14077 test ! -s conftest.err
14078 }; then
ad6254c5
AK
14079 ac_header_preproc=yes
14080else
ec6a6fbe 14081 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14082sed 's/^/| /' conftest.$ac_ext >&5
14083
14084 ac_header_preproc=no
14085fi
7a197a62 14086
ad6254c5 14087rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
14088{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14089$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
14090
14091# So? What about this header?
8a2fc586
AK
14092case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14093 yes:no: )
ec6a6fbe
AK
14094 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14095$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14096 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14097$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 14098 ac_header_preproc=yes
ad6254c5 14099 ;;
8a2fc586 14100 no:yes:* )
ec6a6fbe
AK
14101 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14102$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14103 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14104$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14105 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14106$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14107 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14108$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14109 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14110$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14111 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14112$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 14113
ad6254c5
AK
14114 ;;
14115esac
ec6a6fbe
AK
14116{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14117$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 14118if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 14119 $as_echo_n "(cached) " >&6
ad6254c5 14120else
8a2fc586 14121 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 14122fi
ec6a6fbe
AK
14123ac_res=`eval 'as_val=${'$as_ac_Header'}
14124 $as_echo "$as_val"'`
14125 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14126$as_echo "$ac_res" >&6; }
ad6254c5
AK
14127
14128fi
ec6a6fbe
AK
14129as_val=`eval 'as_val=${'$as_ac_Header'}
14130 $as_echo "$as_val"'`
14131 if test "x$as_val" = x""yes; then
ad6254c5 14132 cat >>confdefs.h <<_ACEOF
ec6a6fbe 14133#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
14134_ACEOF
14135
14136else
ec6a6fbe
AK
14137 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
14138$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5
AK
14139 { (exit 1); exit 1; }; }
14140fi
14141
14142done
14143
14144fi
14145
5c7fc7c4 14146if test x$CLVMD != xnone; then
ad6254c5
AK
14147
14148
14149
14150
14151
14152
14153
14154
14155
14156
14157for 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
14158do
ec6a6fbe 14159as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 14160if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
14161 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14162$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 14163if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 14164 $as_echo_n "(cached) " >&6
ad6254c5 14165fi
ec6a6fbe
AK
14166ac_res=`eval 'as_val=${'$as_ac_Header'}
14167 $as_echo "$as_val"'`
14168 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14169$as_echo "$ac_res" >&6; }
ad6254c5
AK
14170else
14171 # Is the header compilable?
ec6a6fbe
AK
14172{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14173$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 14174cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14175/* confdefs.h. */
14176_ACEOF
14177cat confdefs.h >>conftest.$ac_ext
14178cat >>conftest.$ac_ext <<_ACEOF
14179/* end confdefs.h. */
14180$ac_includes_default
14181#include <$ac_header>
14182_ACEOF
14183rm -f conftest.$ac_objext
7a197a62
AK
14184if { (ac_try="$ac_compile"
14185case "(($ac_try" in
14186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14187 *) ac_try_echo=$ac_try;;
14188esac
ec6a6fbe
AK
14189eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14190$as_echo "$ac_try_echo") >&5
7a197a62 14191 (eval "$ac_compile") 2>conftest.er1
ad6254c5 14192 ac_status=$?
8a2fc586
AK
14193 grep -v '^ *+' conftest.er1 >conftest.err
14194 rm -f conftest.er1
14195 cat conftest.err >&5
ec6a6fbe 14196 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14197 (exit $ac_status); } && {
14198 test -z "$ac_c_werror_flag" ||
14199 test ! -s conftest.err
14200 } && test -s conftest.$ac_objext; then
ad6254c5
AK
14201 ac_header_compiler=yes
14202else
ec6a6fbe 14203 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14204sed 's/^/| /' conftest.$ac_ext >&5
14205
7a197a62 14206 ac_header_compiler=no
ad6254c5 14207fi
7a197a62
AK
14208
14209rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
14210{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14211$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
14212
14213# Is the header present?
ec6a6fbe
AK
14214{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14215$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 14216cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14217/* confdefs.h. */
14218_ACEOF
14219cat confdefs.h >>conftest.$ac_ext
14220cat >>conftest.$ac_ext <<_ACEOF
14221/* end confdefs.h. */
14222#include <$ac_header>
14223_ACEOF
7a197a62
AK
14224if { (ac_try="$ac_cpp conftest.$ac_ext"
14225case "(($ac_try" in
14226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14227 *) ac_try_echo=$ac_try;;
14228esac
ec6a6fbe
AK
14229eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14230$as_echo "$ac_try_echo") >&5
7a197a62 14231 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
14232 ac_status=$?
14233 grep -v '^ *+' conftest.er1 >conftest.err
14234 rm -f conftest.er1
14235 cat conftest.err >&5
ec6a6fbe 14236 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14237 (exit $ac_status); } >/dev/null && {
14238 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14239 test ! -s conftest.err
14240 }; then
ad6254c5
AK
14241 ac_header_preproc=yes
14242else
ec6a6fbe 14243 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14244sed 's/^/| /' conftest.$ac_ext >&5
14245
14246 ac_header_preproc=no
14247fi
7a197a62 14248
ad6254c5 14249rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
14250{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14251$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
14252
14253# So? What about this header?
8a2fc586
AK
14254case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14255 yes:no: )
ec6a6fbe
AK
14256 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14257$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14258 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14259$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 14260 ac_header_preproc=yes
ad6254c5 14261 ;;
8a2fc586 14262 no:yes:* )
ec6a6fbe
AK
14263 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14264$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14265 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14266$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14267 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14268$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14269 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14270$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14271 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14272$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14273 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14274$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 14275
ad6254c5
AK
14276 ;;
14277esac
ec6a6fbe
AK
14278{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14279$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 14280if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 14281 $as_echo_n "(cached) " >&6
ad6254c5 14282else
8a2fc586 14283 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 14284fi
ec6a6fbe
AK
14285ac_res=`eval 'as_val=${'$as_ac_Header'}
14286 $as_echo "$as_val"'`
14287 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14288$as_echo "$ac_res" >&6; }
ad6254c5
AK
14289
14290fi
ec6a6fbe
AK
14291as_val=`eval 'as_val=${'$as_ac_Header'}
14292 $as_echo "$as_val"'`
14293 if test "x$as_val" = x""yes; then
ad6254c5 14294 cat >>confdefs.h <<_ACEOF
ec6a6fbe 14295#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
14296_ACEOF
14297
14298else
ec6a6fbe
AK
14299 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
14300$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 14301 { (exit 1); exit 1; }; }
795ca3e5
AK
14302fi
14303
ad6254c5
AK
14304done
14305
14306
795ca3e5 14307
8106cdd5 14308
ad6254c5
AK
14309
14310
14311for ac_func in dup2 getmntent memmove select socket
14312do
ec6a6fbe
AK
14313as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14314{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14315$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 14316if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 14317 $as_echo_n "(cached) " >&6
795ca3e5 14318else
ad6254c5 14319 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14320/* confdefs.h. */
14321_ACEOF
14322cat confdefs.h >>conftest.$ac_ext
14323cat >>conftest.$ac_ext <<_ACEOF
14324/* end confdefs.h. */
8a2fc586
AK
14325/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14326 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14327#define $ac_func innocuous_$ac_func
14328
795ca3e5 14329/* System header to define __stub macros and hopefully few prototypes,
ad6254c5
AK
14330 which can conflict with char $ac_func (); below.
14331 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14332 <limits.h> exists even on freestanding compilers. */
8a2fc586 14333
ad6254c5
AK
14334#ifdef __STDC__
14335# include <limits.h>
14336#else
14337# include <assert.h>
14338#endif
8a2fc586
AK
14339
14340#undef $ac_func
14341
7a197a62
AK
14342/* Override any GCC internal prototype to avoid an error.
14343 Use char because int might match the return type of a GCC
14344 builtin and then its argument prototype would still apply. */
ad6254c5
AK
14345#ifdef __cplusplus
14346extern "C"
ad6254c5 14347#endif
ad6254c5 14348char $ac_func ();
795ca3e5
AK
14349/* The GNU C library defines this for functions which it implements
14350 to always fail with ENOSYS. Some functions are actually named
14351 something starting with __ and the normal name is an alias. */
7a197a62 14352#if defined __stub_$ac_func || defined __stub___$ac_func
795ca3e5 14353choke me
795ca3e5
AK
14354#endif
14355
ad6254c5
AK
14356int
14357main ()
14358{
7a197a62 14359return $ac_func ();
ad6254c5
AK
14360 ;
14361 return 0;
14362}
14363_ACEOF
14364rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
14365if { (ac_try="$ac_link"
14366case "(($ac_try" in
14367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14368 *) ac_try_echo=$ac_try;;
14369esac
ec6a6fbe
AK
14370eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14371$as_echo "$ac_try_echo") >&5
7a197a62 14372 (eval "$ac_link") 2>conftest.er1
ad6254c5 14373 ac_status=$?
8a2fc586
AK
14374 grep -v '^ *+' conftest.er1 >conftest.err
14375 rm -f conftest.er1
14376 cat conftest.err >&5
ec6a6fbe 14377 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14378 (exit $ac_status); } && {
14379 test -z "$ac_c_werror_flag" ||
14380 test ! -s conftest.err
ec6a6fbe
AK
14381 } && test -s conftest$ac_exeext && {
14382 test "$cross_compiling" = yes ||
14383 $as_test_x conftest$ac_exeext
14384 }; then
ad6254c5 14385 eval "$as_ac_var=yes"
795ca3e5 14386else
ec6a6fbe 14387 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14388sed 's/^/| /' conftest.$ac_ext >&5
14389
7a197a62 14390 eval "$as_ac_var=no"
80992638 14391fi
7a197a62 14392
ec6a6fbe 14393rm -rf conftest.dSYM
25fbec5b 14394rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 14395 conftest$ac_exeext conftest.$ac_ext
795ca3e5 14396fi
ec6a6fbe
AK
14397ac_res=`eval 'as_val=${'$as_ac_var'}
14398 $as_echo "$as_val"'`
14399 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14400$as_echo "$ac_res" >&6; }
14401as_val=`eval 'as_val=${'$as_ac_var'}
14402 $as_echo "$as_val"'`
14403 if test "x$as_val" = x""yes; then
ad6254c5 14404 cat >>confdefs.h <<_ACEOF
ec6a6fbe 14405#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5 14406_ACEOF
80992638
AK
14407
14408else
ec6a6fbe
AK
14409 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
14410$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 14411 { (exit 1); exit 1; }; }
8106cdd5 14412fi
ad6254c5 14413done
795ca3e5 14414
25fbec5b
AK
14415 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
14416# -lseq on Dynix/PTX, -lgen on Unixware.
ec6a6fbe
AK
14417{ $as_echo "$as_me:$LINENO: checking for library containing getmntent" >&5
14418$as_echo_n "checking for library containing getmntent... " >&6; }
25fbec5b 14419if test "${ac_cv_search_getmntent+set}" = set; then
ec6a6fbe 14420 $as_echo_n "(cached) " >&6
25fbec5b
AK
14421else
14422 ac_func_search_save_LIBS=$LIBS
14423cat >conftest.$ac_ext <<_ACEOF
14424/* confdefs.h. */
14425_ACEOF
14426cat confdefs.h >>conftest.$ac_ext
14427cat >>conftest.$ac_ext <<_ACEOF
14428/* end confdefs.h. */
80992638 14429
7a197a62
AK
14430/* Override any GCC internal prototype to avoid an error.
14431 Use char because int might match the return type of a GCC
ad6254c5 14432 builtin and then its argument prototype would still apply. */
ad6254c5
AK
14433#ifdef __cplusplus
14434extern "C"
14435#endif
25fbec5b 14436char getmntent ();
ad6254c5
AK
14437int
14438main ()
14439{
25fbec5b 14440return getmntent ();
ad6254c5
AK
14441 ;
14442 return 0;
14443}
14444_ACEOF
25fbec5b
AK
14445for ac_lib in '' sun seq gen; do
14446 if test -z "$ac_lib"; then
14447 ac_res="none required"
14448 else
14449 ac_res=-l$ac_lib
14450 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14451 fi
14452 rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
14453if { (ac_try="$ac_link"
14454case "(($ac_try" in
14455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14456 *) ac_try_echo=$ac_try;;
14457esac
ec6a6fbe
AK
14458eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14459$as_echo "$ac_try_echo") >&5
7a197a62 14460 (eval "$ac_link") 2>conftest.er1
ad6254c5 14461 ac_status=$?
8a2fc586
AK
14462 grep -v '^ *+' conftest.er1 >conftest.err
14463 rm -f conftest.er1
14464 cat conftest.err >&5
ec6a6fbe 14465 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14466 (exit $ac_status); } && {
14467 test -z "$ac_c_werror_flag" ||
14468 test ! -s conftest.err
ec6a6fbe
AK
14469 } && test -s conftest$ac_exeext && {
14470 test "$cross_compiling" = yes ||
14471 $as_test_x conftest$ac_exeext
14472 }; then
25fbec5b 14473 ac_cv_search_getmntent=$ac_res
80992638 14474else
ec6a6fbe 14475 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14476sed 's/^/| /' conftest.$ac_ext >&5
14477
25fbec5b 14478
795ca3e5
AK
14479fi
14480
ec6a6fbe 14481rm -rf conftest.dSYM
25fbec5b
AK
14482rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14483 conftest$ac_exeext
14484 if test "${ac_cv_search_getmntent+set}" = set; then
14485 break
795ca3e5 14486fi
25fbec5b
AK
14487done
14488if test "${ac_cv_search_getmntent+set}" = set; then
14489 :
14490else
14491 ac_cv_search_getmntent=no
14492fi
14493rm conftest.$ac_ext
14494LIBS=$ac_func_search_save_LIBS
14495fi
ec6a6fbe
AK
14496{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
14497$as_echo "$ac_cv_search_getmntent" >&6; }
25fbec5b
AK
14498ac_res=$ac_cv_search_getmntent
14499if test "$ac_res" != no; then
14500 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14501 ac_cv_func_getmntent=yes
14502
14503cat >>confdefs.h <<\_ACEOF
9c961554 14504#define HAVE_GETMNTENT 1
ad6254c5 14505_ACEOF
795ca3e5 14506
25fbec5b
AK
14507else
14508 ac_cv_func_getmntent=no
795ca3e5 14509fi
795ca3e5
AK
14510
14511
ad6254c5
AK
14512# AC_FUNC_REALLOC
14513
14514
14515for ac_header in sys/select.h sys/socket.h
14516do
ec6a6fbe 14517as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 14518if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
14519 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14520$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 14521if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 14522 $as_echo_n "(cached) " >&6
ad6254c5 14523fi
ec6a6fbe
AK
14524ac_res=`eval 'as_val=${'$as_ac_Header'}
14525 $as_echo "$as_val"'`
14526 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14527$as_echo "$ac_res" >&6; }
795ca3e5 14528else
ad6254c5 14529 # Is the header compilable?
ec6a6fbe
AK
14530{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14531$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 14532cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14533/* confdefs.h. */
14534_ACEOF
14535cat confdefs.h >>conftest.$ac_ext
14536cat >>conftest.$ac_ext <<_ACEOF
14537/* end confdefs.h. */
14538$ac_includes_default
14539#include <$ac_header>
14540_ACEOF
14541rm -f conftest.$ac_objext
7a197a62
AK
14542if { (ac_try="$ac_compile"
14543case "(($ac_try" in
14544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14545 *) ac_try_echo=$ac_try;;
14546esac
ec6a6fbe
AK
14547eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14548$as_echo "$ac_try_echo") >&5
7a197a62 14549 (eval "$ac_compile") 2>conftest.er1
ad6254c5 14550 ac_status=$?
8a2fc586
AK
14551 grep -v '^ *+' conftest.er1 >conftest.err
14552 rm -f conftest.er1
14553 cat conftest.err >&5
ec6a6fbe 14554 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14555 (exit $ac_status); } && {
14556 test -z "$ac_c_werror_flag" ||
14557 test ! -s conftest.err
14558 } && test -s conftest.$ac_objext; then
ad6254c5 14559 ac_header_compiler=yes
80992638 14560else
ec6a6fbe 14561 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14562sed 's/^/| /' conftest.$ac_ext >&5
14563
7a197a62 14564 ac_header_compiler=no
ad6254c5 14565fi
7a197a62
AK
14566
14567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
14568{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14569$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
14570
14571# Is the header present?
ec6a6fbe
AK
14572{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14573$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 14574cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14575/* confdefs.h. */
14576_ACEOF
14577cat confdefs.h >>conftest.$ac_ext
14578cat >>conftest.$ac_ext <<_ACEOF
14579/* end confdefs.h. */
14580#include <$ac_header>
14581_ACEOF
7a197a62
AK
14582if { (ac_try="$ac_cpp conftest.$ac_ext"
14583case "(($ac_try" in
14584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14585 *) ac_try_echo=$ac_try;;
14586esac
ec6a6fbe
AK
14587eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14588$as_echo "$ac_try_echo") >&5
7a197a62 14589 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
14590 ac_status=$?
14591 grep -v '^ *+' conftest.er1 >conftest.err
14592 rm -f conftest.er1
14593 cat conftest.err >&5
ec6a6fbe 14594 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14595 (exit $ac_status); } >/dev/null && {
14596 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14597 test ! -s conftest.err
14598 }; then
ad6254c5
AK
14599 ac_header_preproc=yes
14600else
ec6a6fbe 14601 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14602sed 's/^/| /' conftest.$ac_ext >&5
14603
14604 ac_header_preproc=no
14605fi
7a197a62 14606
ad6254c5 14607rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
14608{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14609$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
14610
14611# So? What about this header?
8a2fc586
AK
14612case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14613 yes:no: )
ec6a6fbe
AK
14614 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14615$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14616 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14617$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 14618 ac_header_preproc=yes
ad6254c5 14619 ;;
8a2fc586 14620 no:yes:* )
ec6a6fbe
AK
14621 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14622$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14623 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14624$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14625 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14626$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14627 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14628$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14629 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14630$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14631 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14632$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 14633
ad6254c5
AK
14634 ;;
14635esac
ec6a6fbe
AK
14636{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14637$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 14638if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 14639 $as_echo_n "(cached) " >&6
ad6254c5 14640else
8a2fc586 14641 eval "$as_ac_Header=\$ac_header_preproc"
8106cdd5 14642fi
ec6a6fbe
AK
14643ac_res=`eval 'as_val=${'$as_ac_Header'}
14644 $as_echo "$as_val"'`
14645 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14646$as_echo "$ac_res" >&6; }
8106cdd5 14647
795ca3e5 14648fi
ec6a6fbe
AK
14649as_val=`eval 'as_val=${'$as_ac_Header'}
14650 $as_echo "$as_val"'`
14651 if test "x$as_val" = x""yes; then
ad6254c5 14652 cat >>confdefs.h <<_ACEOF
ec6a6fbe 14653#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
14654_ACEOF
14655
795ca3e5
AK
14656fi
14657
ad6254c5
AK
14658done
14659
ec6a6fbe
AK
14660{ $as_echo "$as_me:$LINENO: checking types of arguments for select" >&5
14661$as_echo_n "checking types of arguments for select... " >&6; }
ad6254c5 14662if test "${ac_cv_func_select_args+set}" = set; then
ec6a6fbe 14663 $as_echo_n "(cached) " >&6
26e7f2e0 14664else
ad6254c5 14665 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
7a197a62 14666 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
ad6254c5
AK
14667 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
14668 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14669/* confdefs.h. */
14670_ACEOF
14671cat confdefs.h >>conftest.$ac_ext
14672cat >>conftest.$ac_ext <<_ACEOF
14673/* end confdefs.h. */
14674$ac_includes_default
25fbec5b 14675#ifdef HAVE_SYS_SELECT_H
ad6254c5
AK
14676# include <sys/select.h>
14677#endif
25fbec5b 14678#ifdef HAVE_SYS_SOCKET_H
ad6254c5
AK
14679# include <sys/socket.h>
14680#endif
14681
14682int
14683main ()
14684{
14685extern int select ($ac_arg1,
8a2fc586
AK
14686 $ac_arg234, $ac_arg234, $ac_arg234,
14687 $ac_arg5);
ad6254c5
AK
14688 ;
14689 return 0;
14690}
14691_ACEOF
14692rm -f conftest.$ac_objext
7a197a62
AK
14693if { (ac_try="$ac_compile"
14694case "(($ac_try" in
14695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14696 *) ac_try_echo=$ac_try;;
14697esac
ec6a6fbe
AK
14698eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14699$as_echo "$ac_try_echo") >&5
7a197a62 14700 (eval "$ac_compile") 2>conftest.er1
ad6254c5 14701 ac_status=$?
8a2fc586
AK
14702 grep -v '^ *+' conftest.er1 >conftest.err
14703 rm -f conftest.er1
14704 cat conftest.err >&5
ec6a6fbe 14705 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14706 (exit $ac_status); } && {
14707 test -z "$ac_c_werror_flag" ||
14708 test ! -s conftest.err
14709 } && test -s conftest.$ac_objext; then
ad6254c5
AK
14710 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
14711else
ec6a6fbe 14712 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14713sed 's/^/| /' conftest.$ac_ext >&5
14714
7a197a62 14715
ad6254c5 14716fi
7a197a62
AK
14717
14718rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
14719 done
14720 done
14721done
14722# Provide a safe default value.
14723: ${ac_cv_func_select_args='int,int *,struct timeval *'}
14724
26e7f2e0 14725fi
ec6a6fbe
AK
14726{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
14727$as_echo "$ac_cv_func_select_args" >&6; }
ad6254c5
AK
14728ac_save_IFS=$IFS; IFS=','
14729set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
14730IFS=$ac_save_IFS
14731shift
14732
14733cat >>confdefs.h <<_ACEOF
14734#define SELECT_TYPE_ARG1 $1
14735_ACEOF
14736
14737
14738cat >>confdefs.h <<_ACEOF
14739#define SELECT_TYPE_ARG234 ($2)
14740_ACEOF
14741
14742
14743cat >>confdefs.h <<_ACEOF
14744#define SELECT_TYPE_ARG5 ($3)
14745_ACEOF
14746
80992638 14747rm -f conftest*
80992638 14748
8106cdd5 14749fi
ad6254c5 14750
ad6254c5
AK
14751if test x$CLUSTER != xnone; then
14752
14753
14754for ac_header in sys/socket.h sys/un.h
b896caa1 14755do
ec6a6fbe 14756as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 14757if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
14758 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14759$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 14760if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 14761 $as_echo_n "(cached) " >&6
ad6254c5 14762fi
ec6a6fbe
AK
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; }
ad6254c5
AK
14767else
14768 # Is the header compilable?
ec6a6fbe
AK
14769{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14770$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 14771cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
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
7a197a62
AK
14781if { (ac_try="$ac_compile"
14782case "(($ac_try" in
14783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14784 *) ac_try_echo=$ac_try;;
14785esac
ec6a6fbe
AK
14786eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14787$as_echo "$ac_try_echo") >&5
7a197a62 14788 (eval "$ac_compile") 2>conftest.er1
ad6254c5 14789 ac_status=$?
8a2fc586
AK
14790 grep -v '^ *+' conftest.er1 >conftest.err
14791 rm -f conftest.er1
14792 cat conftest.err >&5
ec6a6fbe 14793 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14794 (exit $ac_status); } && {
14795 test -z "$ac_c_werror_flag" ||
14796 test ! -s conftest.err
14797 } && test -s conftest.$ac_objext; then
ad6254c5
AK
14798 ac_header_compiler=yes
14799else
ec6a6fbe 14800 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14801sed 's/^/| /' conftest.$ac_ext >&5
14802
7a197a62 14803 ac_header_compiler=no
ad6254c5 14804fi
7a197a62
AK
14805
14806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
14807{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14808$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
14809
14810# Is the header present?
ec6a6fbe
AK
14811{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14812$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 14813cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
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
7a197a62
AK
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
ec6a6fbe
AK
14826eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14827$as_echo "$ac_try_echo") >&5
7a197a62 14828 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
14829 ac_status=$?
14830 grep -v '^ *+' conftest.er1 >conftest.err
14831 rm -f conftest.er1
14832 cat conftest.err >&5
ec6a6fbe 14833 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
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
ad6254c5
AK
14838 ac_header_preproc=yes
14839else
ec6a6fbe 14840 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14841sed 's/^/| /' conftest.$ac_ext >&5
14842
14843 ac_header_preproc=no
14844fi
7a197a62 14845
ad6254c5 14846rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
14847{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14848$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
14849
14850# So? What about this header?
8a2fc586
AK
14851case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14852 yes:no: )
ec6a6fbe
AK
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;}
8a2fc586 14857 ac_header_preproc=yes
ad6254c5 14858 ;;
8a2fc586 14859 no:yes:* )
ec6a6fbe
AK
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;}
7a197a62 14872
ad6254c5
AK
14873 ;;
14874esac
ec6a6fbe
AK
14875{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14876$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 14877if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 14878 $as_echo_n "(cached) " >&6
ad6254c5 14879else
8a2fc586 14880 eval "$as_ac_Header=\$ac_header_preproc"
b896caa1 14881fi
ec6a6fbe
AK
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; }
ad6254c5
AK
14886
14887fi
ec6a6fbe
AK
14888as_val=`eval 'as_val=${'$as_ac_Header'}
14889 $as_echo "$as_val"'`
14890 if test "x$as_val" = x""yes; then
ad6254c5 14891 cat >>confdefs.h <<_ACEOF
ec6a6fbe 14892#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
14893_ACEOF
14894
80992638 14895else
ec6a6fbe
AK
14896 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
14897$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 14898 { (exit 1); exit 1; }; }
b896caa1 14899fi
ad6254c5 14900
b896caa1
AK
14901done
14902
14903
ad6254c5
AK
14904for ac_func in socket
14905do
ec6a6fbe
AK
14906as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14907{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14908$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 14909if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 14910 $as_echo_n "(cached) " >&6
795ca3e5 14911else
ad6254c5 14912 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14913/* confdefs.h. */
14914_ACEOF
14915cat confdefs.h >>conftest.$ac_ext
14916cat >>conftest.$ac_ext <<_ACEOF
14917/* end confdefs.h. */
8a2fc586
AK
14918/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14919 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14920#define $ac_func innocuous_$ac_func
14921
ad6254c5
AK
14922/* System header to define __stub macros and hopefully few prototypes,
14923 which can conflict with char $ac_func (); below.
14924 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14925 <limits.h> exists even on freestanding compilers. */
8a2fc586 14926
ad6254c5
AK
14927#ifdef __STDC__
14928# include <limits.h>
14929#else
14930# include <assert.h>
14931#endif
8a2fc586
AK
14932
14933#undef $ac_func
14934
7a197a62
AK
14935/* Override any GCC internal prototype to avoid an error.
14936 Use char because int might match the return type of a GCC
14937 builtin and then its argument prototype would still apply. */
ad6254c5
AK
14938#ifdef __cplusplus
14939extern "C"
ad6254c5 14940#endif
ad6254c5
AK
14941char $ac_func ();
14942/* The GNU C library defines this for functions which it implements
14943 to always fail with ENOSYS. Some functions are actually named
14944 something starting with __ and the normal name is an alias. */
7a197a62 14945#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 14946choke me
ad6254c5
AK
14947#endif
14948
14949int
14950main ()
14951{
7a197a62 14952return $ac_func ();
ad6254c5
AK
14953 ;
14954 return 0;
14955}
14956_ACEOF
14957rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
14958if { (ac_try="$ac_link"
14959case "(($ac_try" in
14960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14961 *) ac_try_echo=$ac_try;;
14962esac
ec6a6fbe
AK
14963eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14964$as_echo "$ac_try_echo") >&5
7a197a62 14965 (eval "$ac_link") 2>conftest.er1
ad6254c5 14966 ac_status=$?
8a2fc586
AK
14967 grep -v '^ *+' conftest.er1 >conftest.err
14968 rm -f conftest.er1
14969 cat conftest.err >&5
ec6a6fbe 14970 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14971 (exit $ac_status); } && {
14972 test -z "$ac_c_werror_flag" ||
14973 test ! -s conftest.err
ec6a6fbe
AK
14974 } && test -s conftest$ac_exeext && {
14975 test "$cross_compiling" = yes ||
14976 $as_test_x conftest$ac_exeext
14977 }; then
ad6254c5
AK
14978 eval "$as_ac_var=yes"
14979else
ec6a6fbe 14980 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14981sed 's/^/| /' conftest.$ac_ext >&5
14982
7a197a62 14983 eval "$as_ac_var=no"
ad6254c5 14984fi
7a197a62 14985
ec6a6fbe 14986rm -rf conftest.dSYM
25fbec5b 14987rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 14988 conftest$ac_exeext conftest.$ac_ext
ad6254c5 14989fi
ec6a6fbe
AK
14990ac_res=`eval 'as_val=${'$as_ac_var'}
14991 $as_echo "$as_val"'`
14992 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14993$as_echo "$ac_res" >&6; }
14994as_val=`eval 'as_val=${'$as_ac_var'}
14995 $as_echo "$as_val"'`
14996 if test "x$as_val" = x""yes; then
ad6254c5 14997 cat >>confdefs.h <<_ACEOF
ec6a6fbe 14998#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
14999_ACEOF
15000
15001else
ec6a6fbe
AK
15002 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
15003$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5
AK
15004 { (exit 1); exit 1; }; }
15005fi
15006done
15007
15008fi
15009
15010if test x$HAVE_LIBDL = xyes; then
15011
15012for ac_header in dlfcn.h
15013do
ec6a6fbe 15014as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 15015if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
15016 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15017$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 15018if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 15019 $as_echo_n "(cached) " >&6
ad6254c5 15020fi
ec6a6fbe
AK
15021ac_res=`eval 'as_val=${'$as_ac_Header'}
15022 $as_echo "$as_val"'`
15023 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15024$as_echo "$ac_res" >&6; }
ad6254c5
AK
15025else
15026 # Is the header compilable?
ec6a6fbe
AK
15027{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15028$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 15029cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
15030/* confdefs.h. */
15031_ACEOF
15032cat confdefs.h >>conftest.$ac_ext
15033cat >>conftest.$ac_ext <<_ACEOF
15034/* end confdefs.h. */
15035$ac_includes_default
15036#include <$ac_header>
15037_ACEOF
15038rm -f conftest.$ac_objext
7a197a62
AK
15039if { (ac_try="$ac_compile"
15040case "(($ac_try" in
15041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15042 *) ac_try_echo=$ac_try;;
15043esac
ec6a6fbe
AK
15044eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15045$as_echo "$ac_try_echo") >&5
7a197a62 15046 (eval "$ac_compile") 2>conftest.er1
ad6254c5 15047 ac_status=$?
8a2fc586
AK
15048 grep -v '^ *+' conftest.er1 >conftest.err
15049 rm -f conftest.er1
15050 cat conftest.err >&5
ec6a6fbe 15051 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
15052 (exit $ac_status); } && {
15053 test -z "$ac_c_werror_flag" ||
15054 test ! -s conftest.err
15055 } && test -s conftest.$ac_objext; then
ad6254c5
AK
15056 ac_header_compiler=yes
15057else
ec6a6fbe 15058 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
15059sed 's/^/| /' conftest.$ac_ext >&5
15060
7a197a62 15061 ac_header_compiler=no
ad6254c5 15062fi
7a197a62
AK
15063
15064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
15065{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15066$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
15067
15068# Is the header present?
ec6a6fbe
AK
15069{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15070$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 15071cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
15072/* confdefs.h. */
15073_ACEOF
15074cat confdefs.h >>conftest.$ac_ext
15075cat >>conftest.$ac_ext <<_ACEOF
15076/* end confdefs.h. */
15077#include <$ac_header>
15078_ACEOF
7a197a62
AK
15079if { (ac_try="$ac_cpp conftest.$ac_ext"
15080case "(($ac_try" in
15081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15082 *) ac_try_echo=$ac_try;;
15083esac
ec6a6fbe
AK
15084eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15085$as_echo "$ac_try_echo") >&5
7a197a62 15086 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
15087 ac_status=$?
15088 grep -v '^ *+' conftest.er1 >conftest.err
15089 rm -f conftest.er1
15090 cat conftest.err >&5
ec6a6fbe 15091 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
15092 (exit $ac_status); } >/dev/null && {
15093 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15094 test ! -s conftest.err
15095 }; then
ad6254c5
AK
15096 ac_header_preproc=yes
15097else
ec6a6fbe 15098 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
15099sed 's/^/| /' conftest.$ac_ext >&5
15100
15101 ac_header_preproc=no
15102fi
7a197a62 15103
ad6254c5 15104rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
15105{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15106$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
15107
15108# So? What about this header?
8a2fc586
AK
15109case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15110 yes:no: )
ec6a6fbe
AK
15111 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15112$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15113 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15114$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 15115 ac_header_preproc=yes
ad6254c5 15116 ;;
8a2fc586 15117 no:yes:* )
ec6a6fbe
AK
15118 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15119$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15120 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15121$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15122 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15123$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15124 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15125$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15126 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15127$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15128 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15129$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 15130
ad6254c5
AK
15131 ;;
15132esac
ec6a6fbe
AK
15133{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15134$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 15135if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 15136 $as_echo_n "(cached) " >&6
ad6254c5 15137else
8a2fc586 15138 eval "$as_ac_Header=\$ac_header_preproc"
795ca3e5 15139fi
ec6a6fbe
AK
15140ac_res=`eval 'as_val=${'$as_ac_Header'}
15141 $as_echo "$as_val"'`
15142 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15143$as_echo "$ac_res" >&6; }
80992638 15144
8106cdd5 15145fi
ec6a6fbe
AK
15146as_val=`eval 'as_val=${'$as_ac_Header'}
15147 $as_echo "$as_val"'`
15148 if test "x$as_val" = x""yes; then
ad6254c5 15149 cat >>confdefs.h <<_ACEOF
ec6a6fbe 15150#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 15151_ACEOF
795ca3e5
AK
15152
15153else
ec6a6fbe
AK
15154 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
15155$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 15156 { (exit 1); exit 1; }; }
795ca3e5
AK
15157fi
15158
ad6254c5 15159done
80992638 15160
ad6254c5 15161fi
80992638 15162
ad6254c5 15163if test x$INTL = xyes; then
83912faa 15164
ad6254c5
AK
15165for ac_header in libintl.h
15166do
ec6a6fbe 15167as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 15168if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
15169 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15170$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 15171if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 15172 $as_echo_n "(cached) " >&6
ad6254c5 15173fi
ec6a6fbe
AK
15174ac_res=`eval 'as_val=${'$as_ac_Header'}
15175 $as_echo "$as_val"'`
15176 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15177$as_echo "$ac_res" >&6; }
83912faa 15178else
ad6254c5 15179 # Is the header compilable?
ec6a6fbe
AK
15180{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15181$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 15182cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
15183/* confdefs.h. */
15184_ACEOF
15185cat confdefs.h >>conftest.$ac_ext
15186cat >>conftest.$ac_ext <<_ACEOF
15187/* end confdefs.h. */
15188$ac_includes_default
15189#include <$ac_header>
15190_ACEOF
15191rm -f conftest.$ac_objext
7a197a62
AK
15192if { (ac_try="$ac_compile"
15193case "(($ac_try" in
15194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15195 *) ac_try_echo=$ac_try;;
15196esac
ec6a6fbe
AK
15197eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15198$as_echo "$ac_try_echo") >&5
7a197a62 15199 (eval "$ac_compile") 2>conftest.er1
ad6254c5 15200 ac_status=$?
8a2fc586
AK
15201 grep -v '^ *+' conftest.er1 >conftest.err
15202 rm -f conftest.er1
15203 cat conftest.err >&5
ec6a6fbe 15204 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
15205 (exit $ac_status); } && {
15206 test -z "$ac_c_werror_flag" ||
15207 test ! -s conftest.err
15208 } && test -s conftest.$ac_objext; then
ad6254c5
AK
15209 ac_header_compiler=yes
15210else
ec6a6fbe 15211 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
15212sed 's/^/| /' conftest.$ac_ext >&5
15213
7a197a62 15214 ac_header_compiler=no
ad6254c5 15215fi
7a197a62
AK
15216
15217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
15218{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15219$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
15220
15221# Is the header present?
ec6a6fbe
AK
15222{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15223$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 15224cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
15225/* confdefs.h. */
15226_ACEOF
15227cat confdefs.h >>conftest.$ac_ext
15228cat >>conftest.$ac_ext <<_ACEOF
15229/* end confdefs.h. */
15230#include <$ac_header>
15231_ACEOF
7a197a62
AK
15232if { (ac_try="$ac_cpp conftest.$ac_ext"
15233case "(($ac_try" in
15234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15235 *) ac_try_echo=$ac_try;;
15236esac
ec6a6fbe
AK
15237eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15238$as_echo "$ac_try_echo") >&5
7a197a62 15239 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
15240 ac_status=$?
15241 grep -v '^ *+' conftest.er1 >conftest.err
15242 rm -f conftest.er1
15243 cat conftest.err >&5
ec6a6fbe 15244 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
15245 (exit $ac_status); } >/dev/null && {
15246 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15247 test ! -s conftest.err
15248 }; then
ad6254c5
AK
15249 ac_header_preproc=yes
15250else
ec6a6fbe 15251 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
15252sed 's/^/| /' conftest.$ac_ext >&5
15253
15254 ac_header_preproc=no
15255fi
7a197a62 15256
ad6254c5 15257rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
15258{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15259$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
15260
15261# So? What about this header?
8a2fc586
AK
15262case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15263 yes:no: )
ec6a6fbe
AK
15264 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15265$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15266 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15267$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 15268 ac_header_preproc=yes
ad6254c5 15269 ;;
8a2fc586 15270 no:yes:* )
ec6a6fbe
AK
15271 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15272$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15273 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15274$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15275 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15276$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15277 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15278$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15279 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15280$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15281 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15282$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 15283
ad6254c5
AK
15284 ;;
15285esac
ec6a6fbe
AK
15286{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15287$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 15288if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 15289 $as_echo_n "(cached) " >&6
80992638 15290else
8a2fc586 15291 eval "$as_ac_Header=\$ac_header_preproc"
83912faa 15292fi
ec6a6fbe
AK
15293ac_res=`eval 'as_val=${'$as_ac_Header'}
15294 $as_echo "$as_val"'`
15295 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15296$as_echo "$ac_res" >&6; }
83912faa 15297
69792976 15298fi
ec6a6fbe
AK
15299as_val=`eval 'as_val=${'$as_ac_Header'}
15300 $as_echo "$as_val"'`
15301 if test "x$as_val" = x""yes; then
ad6254c5 15302 cat >>confdefs.h <<_ACEOF
ec6a6fbe 15303#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 15304_ACEOF
69792976 15305
69792976 15306else
ec6a6fbe
AK
15307 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
15308$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 15309 { (exit 1); exit 1; }; }
80992638
AK
15310fi
15311
ad6254c5 15312done
69792976 15313
ad6254c5
AK
15314fi
15315
a5f46f6a
AK
15316if test x$UDEV_SYNC = xyes; then
15317
15318
15319for ac_header in sys/ipc.h sys/sem.h
15320do
15321as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15322if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15323 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15324$as_echo_n "checking for $ac_header... " >&6; }
15325if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15326 $as_echo_n "(cached) " >&6
15327fi
15328ac_res=`eval 'as_val=${'$as_ac_Header'}
15329 $as_echo "$as_val"'`
15330 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15331$as_echo "$ac_res" >&6; }
15332else
15333 # Is the header compilable?
15334{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15335$as_echo_n "checking $ac_header usability... " >&6; }
15336cat >conftest.$ac_ext <<_ACEOF
15337/* confdefs.h. */
15338_ACEOF
15339cat confdefs.h >>conftest.$ac_ext
15340cat >>conftest.$ac_ext <<_ACEOF
15341/* end confdefs.h. */
15342$ac_includes_default
15343#include <$ac_header>
15344_ACEOF
15345rm -f conftest.$ac_objext
15346if { (ac_try="$ac_compile"
15347case "(($ac_try" in
15348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15349 *) ac_try_echo=$ac_try;;
15350esac
15351eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15352$as_echo "$ac_try_echo") >&5
15353 (eval "$ac_compile") 2>conftest.er1
15354 ac_status=$?
15355 grep -v '^ *+' conftest.er1 >conftest.err
15356 rm -f conftest.er1
15357 cat conftest.err >&5
15358 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15359 (exit $ac_status); } && {
15360 test -z "$ac_c_werror_flag" ||
15361 test ! -s conftest.err
15362 } && test -s conftest.$ac_objext; then
15363 ac_header_compiler=yes
15364else
15365 $as_echo "$as_me: failed program was:" >&5
15366sed 's/^/| /' conftest.$ac_ext >&5
15367
15368 ac_header_compiler=no
15369fi
15370
15371rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15372{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15373$as_echo "$ac_header_compiler" >&6; }
15374
15375# Is the header present?
15376{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15377$as_echo_n "checking $ac_header presence... " >&6; }
15378cat >conftest.$ac_ext <<_ACEOF
15379/* confdefs.h. */
15380_ACEOF
15381cat confdefs.h >>conftest.$ac_ext
15382cat >>conftest.$ac_ext <<_ACEOF
15383/* end confdefs.h. */
15384#include <$ac_header>
15385_ACEOF
15386if { (ac_try="$ac_cpp conftest.$ac_ext"
15387case "(($ac_try" in
15388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15389 *) ac_try_echo=$ac_try;;
15390esac
15391eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15392$as_echo "$ac_try_echo") >&5
15393 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15394 ac_status=$?
15395 grep -v '^ *+' conftest.er1 >conftest.err
15396 rm -f conftest.er1
15397 cat conftest.err >&5
15398 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15399 (exit $ac_status); } >/dev/null && {
15400 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15401 test ! -s conftest.err
15402 }; then
15403 ac_header_preproc=yes
15404else
15405 $as_echo "$as_me: failed program was:" >&5
15406sed 's/^/| /' conftest.$ac_ext >&5
15407
15408 ac_header_preproc=no
15409fi
15410
15411rm -f conftest.err conftest.$ac_ext
15412{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15413$as_echo "$ac_header_preproc" >&6; }
15414
15415# So? What about this header?
15416case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15417 yes:no: )
15418 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15419$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15420 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15421$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15422 ac_header_preproc=yes
15423 ;;
15424 no:yes:* )
15425 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15426$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15427 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15428$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15429 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15430$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15431 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15432$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15433 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15434$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15435 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15436$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15437
15438 ;;
15439esac
15440{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15441$as_echo_n "checking for $ac_header... " >&6; }
15442if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15443 $as_echo_n "(cached) " >&6
15444else
15445 eval "$as_ac_Header=\$ac_header_preproc"
15446fi
15447ac_res=`eval 'as_val=${'$as_ac_Header'}
15448 $as_echo "$as_val"'`
15449 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15450$as_echo "$ac_res" >&6; }
15451
15452fi
15453as_val=`eval 'as_val=${'$as_ac_Header'}
15454 $as_echo "$as_val"'`
15455 if test "x$as_val" = x""yes; then
15456 cat >>confdefs.h <<_ACEOF
15457#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15458_ACEOF
15459
15460else
15461 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
15462$as_echo "$as_me: error: bailing out" >&2;}
15463 { (exit 1); exit 1; }; }
15464fi
15465
15466done
15467
15468fi
15469
a653923f
AK
15470################################################################################
15471# Extract the first word of "modprobe", so it can be a program name with args.
15472set dummy modprobe; ac_word=$2
ec6a6fbe
AK
15473{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
15474$as_echo_n "checking for $ac_word... " >&6; }
72b2cb61 15475if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then
ec6a6fbe 15476 $as_echo_n "(cached) " >&6
72b2cb61
AK
15477else
15478 case $MODPROBE_CMD in
15479 [\\/]* | ?:[\\/]*)
15480 ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path.
15481 ;;
15482 *)
15483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15484for as_dir in $PATH
15485do
15486 IFS=$as_save_IFS
15487 test -z "$as_dir" && as_dir=.
15488 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 15489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
72b2cb61 15490 ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 15491 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
72b2cb61
AK
15492 break 2
15493 fi
15494done
15495done
7a197a62 15496IFS=$as_save_IFS
72b2cb61
AK
15497
15498 ;;
15499esac
15500fi
15501MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD
72b2cb61 15502if test -n "$MODPROBE_CMD"; then
ec6a6fbe
AK
15503 { $as_echo "$as_me:$LINENO: result: $MODPROBE_CMD" >&5
15504$as_echo "$MODPROBE_CMD" >&6; }
72b2cb61 15505else
ec6a6fbe
AK
15506 { $as_echo "$as_me:$LINENO: result: no" >&5
15507$as_echo "no" >&6; }
72b2cb61
AK
15508fi
15509
a653923f 15510
7a197a62 15511
a653923f 15512if test x$MODPROBE_CMD != x; then
72b2cb61
AK
15513
15514cat >>confdefs.h <<_ACEOF
15515#define MODPROBE_CMD "$MODPROBE_CMD"
15516_ACEOF
15517
a653923f
AK
15518fi
15519
b5c2529b
ZK
15520
15521cat >>confdefs.h <<_ACEOF
15522#define LVM_PATH "$exec_prefix/sbin/lvm"
15523_ACEOF
15524
15525
15526if test "$CLVMD" != none; then
15527 clvmd_prefix=$ac_default_prefix
15528 test "$prefix" != NONE && clvmd_prefix=$prefix
15529
15530cat >>confdefs.h <<_ACEOF
15531#define CLVMD_PATH "$clvmd_prefix/sbin/clvmd"
15532_ACEOF
15533
15534fi
15535
80992638 15536################################################################################
93bd259b
AK
15537
15538
15539if test "$BUILD_DMEVENTD" = yes; then
15540
15541# Check whether --with-dmeventd-pidfile was given.
15542if test "${with_dmeventd_pidfile+set}" = set; then
15543 withval=$with_dmeventd_pidfile; cat >>confdefs.h <<_ACEOF
15544#define DMEVENTD_PIDFILE "$withval"
15545_ACEOF
15546
15547else
15548 cat >>confdefs.h <<_ACEOF
15549#define DMEVENTD_PIDFILE "/var/run/dmeventd.pid"
15550_ACEOF
15551
15552fi
15553
15554fi
15555
15556
15557
15558if test "$BUILD_DMEVENTD" = yes; then
15559 dmeventd_prefix="$exec_prefix"
15560 if test "x$dmeventd_prefix" = "xNONE"; then
15561 dmeventd_prefix="$prefix"
15562 fi
15563 if test "x$dmeventd_prefix" = "xNONE"; then
15564 dmeventd_prefix=""
15565 fi
15566
15567# Check whether --with-dmeventd-path was given.
15568if test "${with_dmeventd_path+set}" = set; then
15569 withval=$with_dmeventd_path; cat >>confdefs.h <<_ACEOF
15570#define DMEVENTD_PATH "$withval"
15571_ACEOF
15572
15573else
15574 cat >>confdefs.h <<_ACEOF
15575#define DMEVENTD_PATH "$dmeventd_prefix/sbin/dmeventd"
15576_ACEOF
15577
15578fi
15579
15580fi
15581
3399ae32
AK
15582################################################################################
15583
15584
15585
15586# Check whether --with-default-system-dir was given.
15587if test "${with_default_system_dir+set}" = set; then
15588 withval=$with_default_system_dir; DEFAULT_SYS_DIR="$withval"
15589else
15590 DEFAULT_SYS_DIR="/etc/lvm"
15591fi
15592
15593cat >>confdefs.h <<_ACEOF
15594#define DEFAULT_SYS_DIR "$DEFAULT_SYS_DIR"
15595_ACEOF
15596
15597
15598
15599
15600
15601# Check whether --with-default-archive-subdir was given.
15602if test "${with_default_archive_subdir+set}" = set; then
15603 withval=$with_default_archive_subdir; DEFAULT_ARCHIVE_SUBDIR="$withval"
15604else
15605 DEFAULT_ARCHIVE_SUBDIR="archive"
15606fi
15607
15608cat >>confdefs.h <<_ACEOF
15609#define DEFAULT_ARCHIVE_SUBDIR "$DEFAULT_ARCHIVE_SUBDIR"
15610_ACEOF
15611
15612
15613
15614
15615
15616# Check whether --with-default-backup-subdir was given.
15617if test "${with_default_backup_subdir+set}" = set; then
15618 withval=$with_default_backup_subdir; DEFAULT_BACKUP_SUBDIR="$withval"
15619else
15620 DEFAULT_BACKUP_SUBDIR="backup"
15621fi
15622
15623cat >>confdefs.h <<_ACEOF
15624#define DEFAULT_BACKUP_SUBDIR "$DEFAULT_BACKUP_SUBDIR"
15625_ACEOF
15626
15627
15628
15629
15630
15631# Check whether --with-default-cache-subdir was given.
15632if test "${with_default_cache_subdir+set}" = set; then
15633 withval=$with_default_cache_subdir; DEFAULT_CACHE_SUBDIR="$withval"
15634else
15635 DEFAULT_CACHE_SUBDIR="cache"
15636fi
15637
15638cat >>confdefs.h <<_ACEOF
15639#define DEFAULT_CACHE_SUBDIR "$DEFAULT_CACHE_SUBDIR"
15640_ACEOF
15641
15642
15643
15644
15645
15646# Check whether --with-default-locking-dir was given.
15647if test "${with_default_locking_dir+set}" = set; then
15648 withval=$with_default_locking_dir; DEFAULT_LOCK_DIR="$withval"
15649else
15650 DEFAULT_LOCK_DIR="/var/lock/lvm"
15651fi
15652
15653cat >>confdefs.h <<_ACEOF
15654#define DEFAULT_LOCK_DIR "$DEFAULT_LOCK_DIR"
15655_ACEOF
15656
15657
93bd259b 15658################################################################################
ec6a6fbe
AK
15659{ $as_echo "$as_me:$LINENO: checking for kernel interface choice" >&5
15660$as_echo_n "checking for kernel interface choice... " >&6; }
93bd259b
AK
15661
15662# Check whether --with-interface was given.
15663if test "${with_interface+set}" = set; then
15664 withval=$with_interface; interface="$withval"
15665else
15666 interface=ioctl
15667fi
15668
15669if [ "x$interface" != xioctl ];
15670then
ec6a6fbe
AK
15671 { { $as_echo "$as_me:$LINENO: error: --with-interface=ioctl required. fs no longer supported." >&5
15672$as_echo "$as_me: error: --with-interface=ioctl required. fs no longer supported." >&2;}
93bd259b
AK
15673 { (exit 1); exit 1; }; }
15674fi
ec6a6fbe
AK
15675{ $as_echo "$as_me:$LINENO: result: $interface" >&5
15676$as_echo "$interface" >&6; }
93bd259b
AK
15677
15678################################################################################
db8b5af9 15679DM_LIB_VERSION="\"`cat "$srcdir"/VERSION_DM 2>/dev/null || echo Unknown`\""
24bbc4d7
AK
15680
15681cat >>confdefs.h <<_ACEOF
15682#define DM_LIB_VERSION $DM_LIB_VERSION
15683_ACEOF
15684
15685
db8b5af9 15686DM_LIB_PATCHLEVEL=`cat "$srcdir"/VERSION_DM | $AWK -F '[-. ]' '{printf "%s.%s.%s",$1,$2,$3}'`
7e3fe830 15687
db8b5af9 15688LVM_VERSION="\"`cat "$srcdir"/VERSION 2>/dev/null || echo Unknown`\""
fae0c576 15689
db8b5af9 15690VER=`cat "$srcdir"/VERSION`
bf456146 15691LVM_RELEASE_DATE="\"`echo $VER | $SED 's/.* (//;s/).*//'`\""
ec6a6fbe
AK
15692VER=`echo "$VER" | $AWK '{print $1}'`
15693LVM_RELEASE="\"`echo "$VER" | $AWK -F '-' '{print $2}'`\""
15694VER=`echo "$VER" | $AWK -F '-' '{print $1}'`
15695LVM_MAJOR=`echo "$VER" | $AWK -F '.' '{print $1}'`
15696LVM_MINOR=`echo "$VER" | $AWK -F '.' '{print $2}'`
bf456146
AK
15697LVM_PATCHLEVEL=`echo "$VER" | $AWK -F '[(.]' '{print $3}'`
15698LVM_LIBAPI=`echo "$VER" | $AWK -F '[()]' '{print $2}'`
ec6a6fbe 15699
80992638 15700################################################################################
fae0c576 15701
83912faa 15702
795ca3e5
AK
15703
15704
15705
15706
15707
15708
5a52dca9 15709
8ef2b021 15710
199e490e 15711
69792976
AK
15712
15713
15714
d0191583 15715
69792976 15716
8106cdd5
AK
15717
15718
15719
15720
15721
d68a82ec 15722
036f273a 15723
7d1552c9 15724
8106cdd5 15725
0a62c911 15726
8106cdd5 15727
4a7f3eb2 15728
4922197a
AK
15729
15730
d8ac0fbc 15731
1a9ea74d 15732
8a2fc586
AK
15733
15734
d0191583 15735
93bd259b
AK
15736
15737
15738
15739
15740
d0191583
JM
15741
15742
15743
15744
15745
8a2fc586 15746
19a2c6e0 15747
f7f0854e
ZK
15748
15749
3ceb7608 15750
8ce0cbda 15751
8b1a3214 15752
ec6a6fbe
AK
15753
15754
15755
15756
e2997b73
AK
15757
15758
15759
15760
15761
15762
a946372e
AK
15763
15764
15765
15766
15767
15768
15769
15770
15771
15772
15773
ec6a6fbe 15774
33f732c5 15775
66e941e8 15776
d3c8211f 15777
7e3fe830 15778
a5f46f6a
AK
15779
15780
15781
572fefeb 15782
90c80887 15783
3399ae32
AK
15784
15785
15786
15787
15788
90c80887 15789
bf456146 15790
e1b8a236 15791
0878503f 15792
8fea97b7 15793
68f2de6d
AK
15794
15795
80992638 15796################################################################################
8fea97b7 15797ac_config_files="$ac_config_files Makefile make.tmpl daemons/Makefile daemons/clvmd/Makefile daemons/cmirrord/Makefile daemons/dmeventd/Makefile daemons/dmeventd/libdevmapper-event.pc daemons/dmeventd/plugins/Makefile daemons/dmeventd/plugins/lvm2/Makefile daemons/dmeventd/plugins/mirror/Makefile daemons/dmeventd/plugins/snapshot/Makefile doc/Makefile doc/example.conf include/.symlinks include/Makefile lib/Makefile lib/format1/Makefile lib/format_pool/Makefile lib/locking/Makefile lib/mirror/Makefile lib/replicator/Makefile lib/misc/lvm-version.h lib/snapshot/Makefile libdm/Makefile libdm/libdevmapper.pc liblvm/Makefile liblvm/liblvm2app.pc man/Makefile po/Makefile scripts/clvmd_init_red_hat scripts/cmirrord_init_red_hat scripts/lvm2_monitoring_init_red_hat scripts/Makefile test/Makefile test/api/Makefile tools/Makefile udev/Makefile"
7a197a62 15798
ad6254c5 15799cat >confcache <<\_ACEOF
795ca3e5
AK
15800# This file is a shell script that caches the results of configure
15801# tests run on this system so they can be shared between configure
ad6254c5
AK
15802# scripts and configure runs, see configure's option --config-cache.
15803# It is not useful on other systems. If it contains results you don't
15804# want to keep, you may remove or edit it.
795ca3e5 15805#
ad6254c5
AK
15806# config.status only pays attention to the cache file if you give it
15807# the --recheck option to rerun configure.
795ca3e5 15808#
ad6254c5
AK
15809# `ac_cv_env_foo' variables (set or unset) will be overridden when
15810# loading this file, other *unset* `ac_cv_foo' will be assigned the
15811# following values.
15812
15813_ACEOF
15814
795ca3e5
AK
15815# The following way of writing the cache mishandles newlines in values,
15816# but we know of no workaround that is simple, portable, and efficient.
7a197a62 15817# So, we kill variables containing newlines.
795ca3e5
AK
15818# Ultrix sh set writes to stderr and can't be redirected directly,
15819# and sets the high bit in the cache file unless we assign to the vars.
7a197a62
AK
15820(
15821 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15822 eval ac_val=\$$ac_var
15823 case $ac_val in #(
15824 *${as_nl}*)
15825 case $ac_var in #(
ec6a6fbe
AK
15826 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
15827$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7a197a62
AK
15828 esac
15829 case $ac_var in #(
15830 _ | IFS | as_nl) ;; #(
ec6a6fbe 15831 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7a197a62
AK
15832 *) $as_unset $ac_var ;;
15833 esac ;;
15834 esac
15835 done
15836
ad6254c5 15837 (set) 2>&1 |
7a197a62
AK
15838 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15839 *${as_nl}ac_space=\ *)
ad6254c5
AK
15840 # `set' does not quote correctly, so add quotes (double-quote
15841 # substitution turns \\\\ into \\, and sed turns \\ into \).
15842 sed -n \
8a2fc586
AK
15843 "s/'/'\\\\''/g;
15844 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7a197a62 15845 ;; #(
ad6254c5
AK
15846 *)
15847 # `set' quotes correctly as required by POSIX, so do not add quotes.
7a197a62 15848 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
ad6254c5 15849 ;;
7a197a62
AK
15850 esac |
15851 sort
15852) |
ad6254c5 15853 sed '
7a197a62 15854 /^ac_cv_env_/b end
ad6254c5 15855 t clear
7a197a62 15856 :clear
ad6254c5
AK
15857 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15858 t end
7a197a62
AK
15859 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15860 :end' >>confcache
15861if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15862 if test -w "$cache_file"; then
15863 test "x$cache_file" != "x/dev/null" &&
ec6a6fbe
AK
15864 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
15865$as_echo "$as_me: updating cache $cache_file" >&6;}
ad6254c5 15866 cat confcache >$cache_file
795ca3e5 15867 else
ec6a6fbe
AK
15868 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
15869$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
795ca3e5
AK
15870 fi
15871fi
15872rm -f confcache
15873
795ca3e5
AK
15874test "x$prefix" = xNONE && prefix=$ac_default_prefix
15875# Let make expand exec_prefix.
15876test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15877
72b2cb61 15878DEFS=-DHAVE_CONFIG_H
ad6254c5
AK
15879
15880ac_libobjs=
15881ac_ltlibobjs=
15882for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15883 # 1. Remove the extension, and $U if already installed.
7a197a62 15884 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
ec6a6fbe 15885 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7a197a62
AK
15886 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15887 # will be set to the directory where LIBOBJS objects are built.
15888 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15889 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
ad6254c5
AK
15890done
15891LIBOBJS=$ac_libobjs
80992638 15892
ad6254c5
AK
15893LTLIBOBJS=$ac_ltlibobjs
15894
15895
15896
15897: ${CONFIG_STATUS=./config.status}
ec6a6fbe 15898ac_write_fail=0
ad6254c5
AK
15899ac_clean_files_save=$ac_clean_files
15900ac_clean_files="$ac_clean_files $CONFIG_STATUS"
ec6a6fbe
AK
15901{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15902$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15903cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5
AK
15904#! $SHELL
15905# Generated by $as_me.
795ca3e5 15906# Run this file to recreate the current configuration.
795ca3e5 15907# Compiler output produced by configure, useful for debugging
ad6254c5
AK
15908# configure, is in config.log if it exists.
15909
15910debug=false
15911ac_cs_recheck=false
15912ac_cs_silent=false
15913SHELL=\${CONFIG_SHELL-$SHELL}
15914_ACEOF
15915
ec6a6fbe 15916cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ad6254c5
AK
15917## --------------------- ##
15918## M4sh Initialization. ##
15919## --------------------- ##
15920
25fbec5b
AK
15921# Be more Bourne compatible
15922DUALCASE=1; export DUALCASE # for MKS sh
ad6254c5
AK
15923if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15924 emulate sh
15925 NULLCMD=:
ec6a6fbe 15926 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
ad6254c5
AK
15927 # is contrary to our usage. Disable this feature.
15928 alias -g '${1+"$@"}'='"$@"'
7a197a62
AK
15929 setopt NO_GLOB_SUBST
15930else
25fbec5b
AK
15931 case `(set -o) 2>/dev/null` in
15932 *posix*) set -o posix ;;
15933esac
15934
7a197a62 15935fi
25fbec5b
AK
15936
15937
7a197a62
AK
15938
15939
15940# PATH needs CR
15941# Avoid depending upon Character Ranges.
15942as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15943as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15944as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15945as_cr_digits='0123456789'
15946as_cr_alnum=$as_cr_Letters$as_cr_digits
15947
ec6a6fbe
AK
15948as_nl='
15949'
15950export as_nl
15951# Printing a long string crashes Solaris 7 /usr/bin/printf.
15952as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15953as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15954as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15955if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15956 as_echo='printf %s\n'
15957 as_echo_n='printf %s'
15958else
15959 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15960 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15961 as_echo_n='/usr/ucb/echo -n'
68f2de6d 15962 else
ec6a6fbe
AK
15963 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15964 as_echo_n_body='eval
15965 arg=$1;
15966 case $arg in
15967 *"$as_nl"*)
15968 expr "X$arg" : "X\\(.*\\)$as_nl";
15969 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15970 esac;
15971 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15972 '
15973 export as_echo_n_body
15974 as_echo_n='sh -c $as_echo_n_body as_echo'
68f2de6d 15975 fi
ec6a6fbe
AK
15976 export as_echo_body
15977 as_echo='sh -c $as_echo_body as_echo'
15978fi
15979
15980# The user is always right.
15981if test "${PATH_SEPARATOR+set}" != set; then
15982 PATH_SEPARATOR=:
15983 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15984 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15985 PATH_SEPARATOR=';'
15986 }
ad6254c5
AK
15987fi
15988
15989# Support unset when possible.
8a2fc586 15990if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
ad6254c5
AK
15991 as_unset=unset
15992else
15993 as_unset=false
15994fi
8106cdd5 15995
ad6254c5 15996
7a197a62
AK
15997# IFS
15998# We need space, tab and new line, in precisely that order. Quoting is
15999# there to prevent editors from complaining about space-tab.
16000# (If _AS_PATH_WALK were called with IFS unset, it would disable word
16001# splitting by setting IFS to empty value.)
7a197a62
AK
16002IFS=" "" $as_nl"
16003
16004# Find who we are. Look in the path if we contain no directory separator.
16005case $0 in
16006 *[\\/]* ) as_myself=$0 ;;
16007 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16008for as_dir in $PATH
16009do
16010 IFS=$as_save_IFS
16011 test -z "$as_dir" && as_dir=.
16012 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16013done
16014IFS=$as_save_IFS
16015
16016 ;;
16017esac
16018# We did not find ourselves, most probably we were run as `sh COMMAND'
16019# in which case we are not to be found in the path.
16020if test "x$as_myself" = x; then
16021 as_myself=$0
16022fi
16023if test ! -f "$as_myself"; then
ec6a6fbe 16024 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7a197a62
AK
16025 { (exit 1); exit 1; }
16026fi
16027
ad6254c5 16028# Work around bugs in pre-3.0 UWIN ksh.
7a197a62
AK
16029for as_var in ENV MAIL MAILPATH
16030do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
16031done
ad6254c5
AK
16032PS1='$ '
16033PS2='> '
16034PS4='+ '
16035
16036# NLS nuisances.
ec6a6fbe
AK
16037LC_ALL=C
16038export LC_ALL
16039LANGUAGE=C
16040export LANGUAGE
8106cdd5 16041
ad6254c5 16042# Required to use basename.
7a197a62
AK
16043if expr a : '\(a\)' >/dev/null 2>&1 &&
16044 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
16045 as_expr=expr
16046else
16047 as_expr=false
16048fi
8106cdd5 16049
7a197a62 16050if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
ad6254c5
AK
16051 as_basename=basename
16052else
16053 as_basename=false
16054fi
16055
16056
16057# Name of the executable.
7a197a62 16058as_me=`$as_basename -- "$0" ||
ad6254c5
AK
16059$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16060 X"$0" : 'X\(//\)$' \| \
7a197a62 16061 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 16062$as_echo X/"$0" |
7a197a62
AK
16063 sed '/^.*\/\([^/][^/]*\)\/*$/{
16064 s//\1/
16065 q
16066 }
16067 /^X\/\(\/\/\)$/{
16068 s//\1/
16069 q
16070 }
16071 /^X\/\(\/\).*/{
16072 s//\1/
16073 q
16074 }
16075 s/.*/./; q'`
ad6254c5 16076
7a197a62
AK
16077# CDPATH.
16078$as_unset CDPATH
ad6254c5
AK
16079
16080
ad6254c5 16081
ad6254c5
AK
16082 as_lineno_1=$LINENO
16083 as_lineno_2=$LINENO
ad6254c5 16084 test "x$as_lineno_1" != "x$as_lineno_2" &&
7a197a62 16085 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
795ca3e5 16086
ad6254c5
AK
16087 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16088 # uniformly replaced by the line number. The first 'sed' inserts a
7a197a62
AK
16089 # line-number line after each line using $LINENO; the second 'sed'
16090 # does the real work. The second script uses 'N' to pair each
16091 # line-number line with the line containing $LINENO, and appends
16092 # trailing '-' during substitution so that $LINENO is not a special
16093 # case at line end.
ad6254c5 16094 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7a197a62
AK
16095 # scripts with optimization help from Paolo Bonzini. Blame Lee
16096 # E. McMahon (1931-1989) for sed's syntax. :-)
16097 sed -n '
16098 p
16099 /[$]LINENO/=
16100 ' <$as_myself |
ad6254c5 16101 sed '
7a197a62
AK
16102 s/[$]LINENO.*/&-/
16103 t lineno
16104 b
16105 :lineno
ad6254c5 16106 N
7a197a62
AK
16107 :loop
16108 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
ad6254c5 16109 t loop
7a197a62 16110 s/-\n.*//
ad6254c5 16111 ' >$as_me.lineno &&
7a197a62 16112 chmod +x "$as_me.lineno" ||
ec6a6fbe 16113 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
ad6254c5
AK
16114 { (exit 1); exit 1; }; }
16115
16116 # Don't try to exec as it changes $[0], causing all sort of problems
16117 # (the dirname of $[0] is not the place where we might find the
7a197a62
AK
16118 # original and so on. Autoconf is especially sensitive to this).
16119 . "./$as_me.lineno"
ad6254c5
AK
16120 # Exit status is that of the last command.
16121 exit
16122}
16123
16124
7a197a62
AK
16125if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16126 as_dirname=dirname
16127else
16128 as_dirname=false
16129fi
16130
16131ECHO_C= ECHO_N= ECHO_T=
16132case `echo -n x` in
16133-n*)
16134 case `echo 'x\c'` in
16135 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16136 *) ECHO_C='\c';;
16137 esac;;
16138*)
16139 ECHO_N='-n';;
ad6254c5 16140esac
7a197a62
AK
16141if expr a : '\(a\)' >/dev/null 2>&1 &&
16142 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
16143 as_expr=expr
16144else
16145 as_expr=false
16146fi
80992638 16147
ad6254c5 16148rm -f conf$$ conf$$.exe conf$$.file
7a197a62
AK
16149if test -d conf$$.dir; then
16150 rm -f conf$$.dir/conf$$.file
16151else
16152 rm -f conf$$.dir
ec6a6fbe
AK
16153 mkdir conf$$.dir 2>/dev/null
16154fi
16155if (echo >conf$$.file) 2>/dev/null; then
16156 if ln -s conf$$.file conf$$ 2>/dev/null; then
16157 as_ln_s='ln -s'
16158 # ... but there are two gotchas:
16159 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16160 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16161 # In both cases, we have to default to `cp -p'.
16162 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16163 as_ln_s='cp -p'
16164 elif ln conf$$.file conf$$ 2>/dev/null; then
16165 as_ln_s=ln
16166 else
ad6254c5 16167 as_ln_s='cp -p'
ec6a6fbe 16168 fi
ad6254c5
AK
16169else
16170 as_ln_s='cp -p'
16171fi
7a197a62
AK
16172rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16173rmdir conf$$.dir 2>/dev/null
8106cdd5 16174
ad6254c5
AK
16175if mkdir -p . 2>/dev/null; then
16176 as_mkdir_p=:
16177else
8a2fc586 16178 test -d ./-p && rmdir ./-p
ad6254c5
AK
16179 as_mkdir_p=false
16180fi
16181
25fbec5b
AK
16182if test -x / >/dev/null 2>&1; then
16183 as_test_x='test -x'
7a197a62 16184else
25fbec5b
AK
16185 if ls -dL / >/dev/null 2>&1; then
16186 as_ls_L_option=L
16187 else
16188 as_ls_L_option=
16189 fi
16190 as_test_x='
16191 eval sh -c '\''
16192 if test -d "$1"; then
ec6a6fbe 16193 test -d "$1/.";
25fbec5b
AK
16194 else
16195 case $1 in
ec6a6fbe 16196 -*)set "./$1";;
25fbec5b
AK
16197 esac;
16198 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
16199 ???[sx]*):;;*)false;;esac;fi
16200 '\'' sh
16201 '
7a197a62 16202fi
25fbec5b 16203as_executable_p=$as_test_x
ad6254c5
AK
16204
16205# Sed expression to map a string onto a valid CPP name.
8a2fc586 16206as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
16207
16208# Sed expression to map a string onto a valid variable name.
8a2fc586 16209as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
16210
16211
ad6254c5
AK
16212exec 6>&1
16213
7a197a62 16214# Save the log message, to keep $[0] and so on meaningful, and to
ad6254c5 16215# report actual input values of CONFIG_FILES etc. instead of their
7a197a62
AK
16216# values after options handling.
16217ac_log="
ad6254c5 16218This file was extended by $as_me, which was
ec6a6fbe 16219generated by GNU Autoconf 2.63. Invocation command line was
ad6254c5
AK
16220
16221 CONFIG_FILES = $CONFIG_FILES
16222 CONFIG_HEADERS = $CONFIG_HEADERS
16223 CONFIG_LINKS = $CONFIG_LINKS
16224 CONFIG_COMMANDS = $CONFIG_COMMANDS
16225 $ $0 $@
16226
7a197a62
AK
16227on `(hostname || uname -n) 2>/dev/null | sed 1q`
16228"
16229
ad6254c5
AK
16230_ACEOF
16231
ec6a6fbe
AK
16232case $ac_config_files in *"
16233"*) set x $ac_config_files; shift; ac_config_files=$*;;
16234esac
16235
16236case $ac_config_headers in *"
16237"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16238esac
16239
16240
16241cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5 16242# Files that config.status was made for.
68f2de6d
AK
16243config_files="$ac_config_files"
16244config_headers="$ac_config_headers"
ad6254c5 16245
7a197a62 16246_ACEOF
ad6254c5 16247
ec6a6fbe 16248cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ad6254c5
AK
16249ac_cs_usage="\
16250\`$as_me' instantiates files from templates according to the
16251current configuration.
16252
ec6a6fbe 16253Usage: $0 [OPTION]... [FILE]...
ad6254c5
AK
16254
16255 -h, --help print this help, then exit
25fbec5b 16256 -V, --version print version number and configuration settings, then exit
ec6a6fbe
AK
16257 -q, --quiet, --silent
16258 do not print progress messages
ad6254c5
AK
16259 -d, --debug don't remove temporary files
16260 --recheck update $as_me by reconfiguring in the same conditions
ec6a6fbe
AK
16261 --file=FILE[:TEMPLATE]
16262 instantiate the configuration file FILE
16263 --header=FILE[:TEMPLATE]
16264 instantiate the configuration header FILE
ad6254c5
AK
16265
16266Configuration files:
16267$config_files
16268
72b2cb61
AK
16269Configuration headers:
16270$config_headers
16271
ad6254c5 16272Report bugs to <bug-autoconf@gnu.org>."
ad6254c5 16273
7a197a62 16274_ACEOF
ec6a6fbe 16275cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5
AK
16276ac_cs_version="\\
16277config.status
ec6a6fbe
AK
16278configured by $0, generated by GNU Autoconf 2.63,
16279 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
ad6254c5 16280
ec6a6fbe 16281Copyright (C) 2008 Free Software Foundation, Inc.
ad6254c5
AK
16282This config.status script is free software; the Free Software Foundation
16283gives unlimited permission to copy, distribute and modify it."
7a197a62
AK
16284
16285ac_pwd='$ac_pwd'
16286srcdir='$srcdir'
16287INSTALL='$INSTALL'
fddafd51 16288MKDIR_P='$MKDIR_P'
ec6a6fbe
AK
16289AWK='$AWK'
16290test -n "\$AWK" || AWK=awk
ad6254c5
AK
16291_ACEOF
16292
ec6a6fbe
AK
16293cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16294# The default lists apply if the user does not specify any file.
ad6254c5
AK
16295ac_need_defaults=:
16296while test $# != 0
16297do
16298 case $1 in
16299 --*=*)
7a197a62
AK
16300 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16301 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
ad6254c5
AK
16302 ac_shift=:
16303 ;;
7a197a62 16304 *)
ad6254c5
AK
16305 ac_option=$1
16306 ac_optarg=$2
16307 ac_shift=shift
16308 ;;
ad6254c5
AK
16309 esac
16310
16311 case $ac_option in
16312 # Handling of the options.
ad6254c5
AK
16313 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16314 ac_cs_recheck=: ;;
7a197a62 16315 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
ec6a6fbe 16316 $as_echo "$ac_cs_version"; exit ;;
7a197a62 16317 --debug | --debu | --deb | --de | --d | -d )
ad6254c5
AK
16318 debug=: ;;
16319 --file | --fil | --fi | --f )
16320 $ac_shift
ec6a6fbe
AK
16321 case $ac_optarg in
16322 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16323 esac
16324 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
ad6254c5
AK
16325 ac_need_defaults=false;;
16326 --header | --heade | --head | --hea )
16327 $ac_shift
ec6a6fbe
AK
16328 case $ac_optarg in
16329 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16330 esac
16331 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
ad6254c5 16332 ac_need_defaults=false;;
7a197a62
AK
16333 --he | --h)
16334 # Conflict between --help and --header
ec6a6fbe 16335 { $as_echo "$as_me: error: ambiguous option: $1
7a197a62
AK
16336Try \`$0 --help' for more information." >&2
16337 { (exit 1); exit 1; }; };;
16338 --help | --hel | -h )
ec6a6fbe 16339 $as_echo "$ac_cs_usage"; exit ;;
ad6254c5
AK
16340 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16341 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16342 ac_cs_silent=: ;;
16343
16344 # This is an error.
ec6a6fbe 16345 -*) { $as_echo "$as_me: error: unrecognized option: $1
7a197a62 16346Try \`$0 --help' for more information." >&2
ad6254c5
AK
16347 { (exit 1); exit 1; }; } ;;
16348
7a197a62
AK
16349 *) ac_config_targets="$ac_config_targets $1"
16350 ac_need_defaults=false ;;
ad6254c5
AK
16351
16352 esac
16353 shift
16354done
16355
16356ac_configure_extra_args=
16357
16358if $ac_cs_silent; then
16359 exec 6>/dev/null
16360 ac_configure_extra_args="$ac_configure_extra_args --silent"
16361fi
16362
16363_ACEOF
ec6a6fbe 16364cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5 16365if \$ac_cs_recheck; then
ec6a6fbe
AK
16366 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16367 shift
16368 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16369 CONFIG_SHELL='$SHELL'
7a197a62 16370 export CONFIG_SHELL
ec6a6fbe 16371 exec "\$@"
ad6254c5
AK
16372fi
16373
16374_ACEOF
ec6a6fbe 16375cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
16376exec 5>>config.log
16377{
16378 echo
16379 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16380## Running $as_me. ##
16381_ASBOX
ec6a6fbe 16382 $as_echo "$ac_log"
7a197a62 16383} >&5
ad6254c5 16384
7a197a62 16385_ACEOF
ec6a6fbe 16386cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7a197a62 16387_ACEOF
ad6254c5 16388
ec6a6fbe 16389cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
16390
16391# Handling of arguments.
ad6254c5
AK
16392for ac_config_target in $ac_config_targets
16393do
7a197a62
AK
16394 case $ac_config_target in
16395 "lib/misc/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;;
16396 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16397 "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;;
16398 "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;;
16399 "daemons/clvmd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;;
5d311afb 16400 "daemons/cmirrord/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/cmirrord/Makefile" ;;
93bd259b
AK
16401 "daemons/dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/Makefile" ;;
16402 "daemons/dmeventd/libdevmapper-event.pc") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/libdevmapper-event.pc" ;;
04f06bc9 16403 "daemons/dmeventd/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/Makefile" ;;
d3d98fdc 16404 "daemons/dmeventd/plugins/lvm2/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/lvm2/Makefile" ;;
93bd259b
AK
16405 "daemons/dmeventd/plugins/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/mirror/Makefile" ;;
16406 "daemons/dmeventd/plugins/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/snapshot/Makefile" ;;
7a197a62 16407 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
da05c479 16408 "doc/example.conf") CONFIG_FILES="$CONFIG_FILES doc/example.conf" ;;
db8b5af9 16409 "include/.symlinks") CONFIG_FILES="$CONFIG_FILES include/.symlinks" ;;
93bd259b
AK
16410 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
16411 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
7a197a62
AK
16412 "lib/format1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;;
16413 "lib/format_pool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;;
16414 "lib/locking/Makefile") CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;;
16415 "lib/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;;
8fea97b7 16416 "lib/replicator/Makefile") CONFIG_FILES="$CONFIG_FILES lib/replicator/Makefile" ;;
ec6a6fbe 16417 "lib/misc/lvm-version.h") CONFIG_FILES="$CONFIG_FILES lib/misc/lvm-version.h" ;;
7a197a62 16418 "lib/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;;
93bd259b
AK
16419 "libdm/Makefile") CONFIG_FILES="$CONFIG_FILES libdm/Makefile" ;;
16420 "libdm/libdevmapper.pc") CONFIG_FILES="$CONFIG_FILES libdm/libdevmapper.pc" ;;
e0c64c6c 16421 "liblvm/Makefile") CONFIG_FILES="$CONFIG_FILES liblvm/Makefile" ;;
70046623 16422 "liblvm/liblvm2app.pc") CONFIG_FILES="$CONFIG_FILES liblvm/liblvm2app.pc" ;;
93bd259b
AK
16423 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
16424 "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
75ad7143 16425 "scripts/clvmd_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/clvmd_init_red_hat" ;;
81410c8f 16426 "scripts/cmirrord_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/cmirrord_init_red_hat" ;;
595eaf92 16427 "scripts/lvm2_monitoring_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_monitoring_init_red_hat" ;;
7a197a62 16428 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
93bd259b 16429 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
c7e363f9 16430 "test/api/Makefile") CONFIG_FILES="$CONFIG_FILES test/api/Makefile" ;;
7a197a62 16431 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
a5f46f6a 16432 "udev/Makefile") CONFIG_FILES="$CONFIG_FILES udev/Makefile" ;;
7a197a62 16433
ec6a6fbe
AK
16434 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16435$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
ad6254c5 16436 { (exit 1); exit 1; }; };;
80992638 16437 esac
ad6254c5
AK
16438done
16439
7a197a62 16440
ad6254c5
AK
16441# If the user did not use the arguments to specify the items to instantiate,
16442# then the envvar interface is used. Set only those that are not.
16443# We use the long form for the default assignment because of an extremely
16444# bizarre bug on SunOS 4.1.3.
16445if $ac_need_defaults; then
16446 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
72b2cb61 16447 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
ad6254c5
AK
16448fi
16449
16450# Have a temporary directory for convenience. Make it in the build tree
7a197a62 16451# simply because there is no reason against having it here, and in addition,
ad6254c5 16452# creating and moving files from /tmp can sometimes cause problems.
7a197a62
AK
16453# Hook for its removal unless debugging.
16454# Note that there is a small window in which the directory will not be cleaned:
16455# after its creation but before its name has been assigned to `$tmp'.
ad6254c5
AK
16456$debug ||
16457{
7a197a62
AK
16458 tmp=
16459 trap 'exit_status=$?
16460 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16461' 0
ad6254c5
AK
16462 trap '{ (exit 1); exit 1; }' 1 2 13 15
16463}
ad6254c5
AK
16464# Create a (secure) tmp directory for tmp files.
16465
16466{
7a197a62 16467 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
ad6254c5
AK
16468 test -n "$tmp" && test -d "$tmp"
16469} ||
16470{
7a197a62
AK
16471 tmp=./conf$$-$RANDOM
16472 (umask 077 && mkdir "$tmp")
ad6254c5
AK
16473} ||
16474{
ec6a6fbe 16475 $as_echo "$as_me: cannot create a temporary directory in ." >&2
ad6254c5
AK
16476 { (exit 1); exit 1; }
16477}
16478
ec6a6fbe
AK
16479# Set up the scripts for CONFIG_FILES section.
16480# No need to generate them if there are no CONFIG_FILES.
16481# This happens for instance with `./config.status config.h'.
1995c9ff 16482if test -n "$CONFIG_FILES"; then
7a197a62 16483
68f2de6d 16484
ec6a6fbe
AK
16485ac_cr='\r'
16486ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16487if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16488 ac_cs_awk_cr='\\r'
16489else
16490 ac_cs_awk_cr=$ac_cr
1995c9ff 16491fi
7a197a62 16492
ec6a6fbe 16493echo 'BEGIN {' >"$tmp/subs1.awk" &&
1995c9ff 16494_ACEOF
7a197a62 16495
8106cdd5 16496
ec6a6fbe
AK
16497{
16498 echo "cat >conf$$subs.awk <<_ACEOF" &&
16499 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16500 echo "_ACEOF"
16501} >conf$$subs.sh ||
16502 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16503$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16504 { (exit 1); exit 1; }; }
16505ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
1995c9ff
AK
16506ac_delim='%!_!# '
16507for ac_last_try in false false false false false :; do
ec6a6fbe
AK
16508 . ./conf$$subs.sh ||
16509 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16510$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16511 { (exit 1); exit 1; }; }
16512
16513 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16514 if test $ac_delim_n = $ac_delim_num; then
1995c9ff
AK
16515 break
16516 elif $ac_last_try; then
ec6a6fbe
AK
16517 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16518$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
1995c9ff
AK
16519 { (exit 1); exit 1; }; }
16520 else
16521 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16522 fi
16523done
ec6a6fbe
AK
16524rm -f conf$$subs.sh
16525
16526cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16527cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16528_ACEOF
16529sed -n '
16530h
16531s/^/S["/; s/!.*/"]=/
16532p
16533g
16534s/^[^!]*!//
16535:repl
16536t repl
16537s/'"$ac_delim"'$//
16538t delim
16539:nl
16540h
16541s/\(.\{148\}\).*/\1/
16542t more1
16543s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16544p
16545n
16546b repl
16547:more1
16548s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16549p
16550g
16551s/.\{148\}//
16552t nl
16553:delim
16554h
16555s/\(.\{148\}\).*/\1/
16556t more2
16557s/["\\]/\\&/g; s/^/"/; s/$/"/
16558p
16559b
16560:more2
16561s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16562p
16563g
16564s/.\{148\}//
16565t delim
16566' <conf$$subs.awk | sed '
16567/^[^""]/{
16568 N
16569 s/\n//
16570}
16571' >>$CONFIG_STATUS || ac_write_fail=1
16572rm -f conf$$subs.awk
16573cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16574_ACAWK
16575cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16576 for (key in S) S_is_set[key] = 1
16577 FS = "\a"
7a197a62 16578
ec6a6fbe
AK
16579}
16580{
16581 line = $ 0
16582 nfields = split(line, field, "@")
16583 substed = 0
16584 len = length(field[1])
16585 for (i = 2; i < nfields; i++) {
16586 key = field[i]
16587 keylen = length(key)
16588 if (S_is_set[key]) {
16589 value = S[key]
16590 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16591 len += length(value) + length(field[++i])
16592 substed = 1
16593 } else
16594 len += 1 + keylen
16595 }
16596
16597 print line
16598}
fddafd51 16599
ec6a6fbe 16600_ACAWK
1995c9ff 16601_ACEOF
ec6a6fbe
AK
16602cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16603if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16604 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16605else
16606 cat
16607fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16608 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
16609$as_echo "$as_me: error: could not setup config files machinery" >&2;}
16610 { (exit 1); exit 1; }; }
7a197a62
AK
16611_ACEOF
16612
7a197a62
AK
16613# VPATH may cause trouble with some makes, so we remove $(srcdir),
16614# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16615# trailing colons and then remove the whole line if VPATH becomes empty
16616# (actually we leave an empty line to preserve line numbers).
16617if test "x$srcdir" = x.; then
16618 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16619s/:*\$(srcdir):*/:/
16620s/:*\${srcdir}:*/:/
16621s/:*@srcdir@:*/:/
16622s/^\([^=]*=[ ]*\):*/\1/
16623s/:*$//
16624s/^[^=]*=[ ]*$//
16625}'
16626fi
16627
ec6a6fbe 16628cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
16629fi # test -n "$CONFIG_FILES"
16630
ec6a6fbe
AK
16631# Set up the scripts for CONFIG_HEADERS section.
16632# No need to generate them if there are no CONFIG_HEADERS.
16633# This happens for instance with `./config.status Makefile'.
16634if test -n "$CONFIG_HEADERS"; then
16635cat >"$tmp/defines.awk" <<\_ACAWK ||
16636BEGIN {
16637_ACEOF
16638
16639# Transform confdefs.h into an awk script `defines.awk', embedded as
16640# here-document in config.status, that substitutes the proper values into
16641# config.h.in to produce config.h.
16642
16643# Create a delimiter string that does not exist in confdefs.h, to ease
16644# handling of long lines.
16645ac_delim='%!_!# '
16646for ac_last_try in false false :; do
16647 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16648 if test -z "$ac_t"; then
16649 break
16650 elif $ac_last_try; then
16651 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
16652$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
16653 { (exit 1); exit 1; }; }
16654 else
16655 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16656 fi
16657done
16658
16659# For the awk script, D is an array of macro values keyed by name,
16660# likewise P contains macro parameters if any. Preserve backslash
16661# newline sequences.
16662
16663ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16664sed -n '
16665s/.\{148\}/&'"$ac_delim"'/g
16666t rset
16667:rset
16668s/^[ ]*#[ ]*define[ ][ ]*/ /
16669t def
16670d
16671:def
16672s/\\$//
16673t bsnl
16674s/["\\]/\\&/g
16675s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16676D["\1"]=" \3"/p
16677s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16678d
16679:bsnl
16680s/["\\]/\\&/g
16681s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16682D["\1"]=" \3\\\\\\n"\\/p
16683t cont
16684s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16685t cont
16686d
16687:cont
16688n
16689s/.\{148\}/&'"$ac_delim"'/g
16690t clear
16691:clear
16692s/\\$//
16693t bsnlc
16694s/["\\]/\\&/g; s/^/"/; s/$/"/p
16695d
16696:bsnlc
16697s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16698b cont
16699' <confdefs.h | sed '
16700s/'"$ac_delim"'/"\\\
16701"/g' >>$CONFIG_STATUS || ac_write_fail=1
16702
16703cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16704 for (key in D) D_is_set[key] = 1
16705 FS = "\a"
16706}
16707/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16708 line = \$ 0
16709 split(line, arg, " ")
16710 if (arg[1] == "#") {
16711 defundef = arg[2]
16712 mac1 = arg[3]
16713 } else {
16714 defundef = substr(arg[1], 2)
16715 mac1 = arg[2]
16716 }
16717 split(mac1, mac2, "(") #)
16718 macro = mac2[1]
16719 prefix = substr(line, 1, index(line, defundef) - 1)
16720 if (D_is_set[macro]) {
16721 # Preserve the white space surrounding the "#".
16722 print prefix "define", macro P[macro] D[macro]
16723 next
16724 } else {
16725 # Replace #undef with comments. This is necessary, for example,
16726 # in the case of _POSIX_SOURCE, which is predefined and required
16727 # on some systems where configure will not decide to define it.
16728 if (defundef == "undef") {
16729 print "/*", prefix defundef, macro, "*/"
16730 next
16731 }
16732 }
16733}
16734{ print }
16735_ACAWK
16736_ACEOF
16737cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16738 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
16739$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
16740 { (exit 1); exit 1; }; }
16741fi # test -n "$CONFIG_HEADERS"
16742
7a197a62 16743
ec6a6fbe
AK
16744eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
16745shift
16746for ac_tag
7a197a62
AK
16747do
16748 case $ac_tag in
16749 :[FHLC]) ac_mode=$ac_tag; continue;;
16750 esac
16751 case $ac_mode$ac_tag in
16752 :[FHL]*:*);;
ec6a6fbe
AK
16753 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
16754$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
7a197a62
AK
16755 { (exit 1); exit 1; }; };;
16756 :[FH]-) ac_tag=-:-;;
16757 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16758 esac
16759 ac_save_IFS=$IFS
16760 IFS=:
16761 set x $ac_tag
16762 IFS=$ac_save_IFS
16763 shift
16764 ac_file=$1
16765 shift
16766
16767 case $ac_mode in
16768 :L) ac_source=$1;;
16769 :[FH])
16770 ac_file_inputs=
16771 for ac_f
16772 do
16773 case $ac_f in
16774 -) ac_f="$tmp/stdin";;
16775 *) # Look for the file first in the build tree, then in the source tree
16776 # (if the path is not absolute). The absolute path cannot be DOS-style,
16777 # because $ac_f cannot contain `:'.
16778 test -f "$ac_f" ||
16779 case $ac_f in
16780 [\\/$]*) false;;
16781 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16782 esac ||
ec6a6fbe
AK
16783 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
16784$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
7a197a62
AK
16785 { (exit 1); exit 1; }; };;
16786 esac
ec6a6fbe
AK
16787 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16788 ac_file_inputs="$ac_file_inputs '$ac_f'"
7a197a62
AK
16789 done
16790
16791 # Let's still pretend it is `configure' which instantiates (i.e., don't
16792 # use $as_me), people would be surprised to read:
16793 # /* config.h. Generated by config.status. */
ec6a6fbe
AK
16794 configure_input='Generated from '`
16795 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16796 `' by configure.'
7a197a62
AK
16797 if test x"$ac_file" != x-; then
16798 configure_input="$ac_file. $configure_input"
ec6a6fbe
AK
16799 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
16800$as_echo "$as_me: creating $ac_file" >&6;}
7a197a62 16801 fi
ec6a6fbe
AK
16802 # Neutralize special characters interpreted by sed in replacement strings.
16803 case $configure_input in #(
16804 *\&* | *\|* | *\\* )
16805 ac_sed_conf_input=`$as_echo "$configure_input" |
16806 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16807 *) ac_sed_conf_input=$configure_input;;
16808 esac
7a197a62
AK
16809
16810 case $ac_tag in
ec6a6fbe
AK
16811 *:-:* | *:-) cat >"$tmp/stdin" \
16812 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16813$as_echo "$as_me: error: could not create $ac_file" >&2;}
16814 { (exit 1); exit 1; }; } ;;
7a197a62
AK
16815 esac
16816 ;;
80992638 16817 esac
8106cdd5 16818
7a197a62 16819 ac_dir=`$as_dirname -- "$ac_file" ||
ad6254c5 16820$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8a2fc586
AK
16821 X"$ac_file" : 'X\(//\)[^/]' \| \
16822 X"$ac_file" : 'X\(//\)$' \| \
7a197a62 16823 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 16824$as_echo X"$ac_file" |
7a197a62
AK
16825 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16826 s//\1/
16827 q
16828 }
16829 /^X\(\/\/\)[^/].*/{
16830 s//\1/
16831 q
16832 }
16833 /^X\(\/\/\)$/{
16834 s//\1/
16835 q
16836 }
16837 /^X\(\/\).*/{
16838 s//\1/
16839 q
16840 }
16841 s/.*/./; q'`
16842 { as_dir="$ac_dir"
16843 case $as_dir in #(
16844 -*) as_dir=./$as_dir;;
16845 esac
16846 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
ad6254c5 16847 as_dirs=
7a197a62
AK
16848 while :; do
16849 case $as_dir in #(
ec6a6fbe 16850 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7a197a62
AK
16851 *) as_qdir=$as_dir;;
16852 esac
16853 as_dirs="'$as_qdir' $as_dirs"
16854 as_dir=`$as_dirname -- "$as_dir" ||
ad6254c5 16855$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8a2fc586
AK
16856 X"$as_dir" : 'X\(//\)[^/]' \| \
16857 X"$as_dir" : 'X\(//\)$' \| \
7a197a62 16858 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 16859$as_echo X"$as_dir" |
7a197a62
AK
16860 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16861 s//\1/
16862 q
16863 }
16864 /^X\(\/\/\)[^/].*/{
16865 s//\1/
16866 q
16867 }
16868 /^X\(\/\/\)$/{
16869 s//\1/
16870 q
16871 }
16872 /^X\(\/\).*/{
16873 s//\1/
16874 q
16875 }
16876 s/.*/./; q'`
16877 test -d "$as_dir" && break
ad6254c5 16878 done
7a197a62 16879 test -z "$as_dirs" || eval "mkdir $as_dirs"
ec6a6fbe
AK
16880 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16881$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
ad6254c5 16882 { (exit 1); exit 1; }; }; }
ad6254c5
AK
16883 ac_builddir=.
16884
7a197a62
AK
16885case "$ac_dir" in
16886.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16887*)
ec6a6fbe 16888 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7a197a62 16889 # A ".." for each directory in $ac_dir_suffix.
ec6a6fbe 16890 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7a197a62
AK
16891 case $ac_top_builddir_sub in
16892 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16893 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16894 esac ;;
16895esac
16896ac_abs_top_builddir=$ac_pwd
16897ac_abs_builddir=$ac_pwd$ac_dir_suffix
16898# for backward compatibility:
16899ac_top_builddir=$ac_top_build_prefix
ad6254c5
AK
16900
16901case $srcdir in
7a197a62 16902 .) # We are building in place.
ad6254c5 16903 ac_srcdir=.
7a197a62
AK
16904 ac_top_srcdir=$ac_top_builddir_sub
16905 ac_abs_top_srcdir=$ac_pwd ;;
16906 [\\/]* | ?:[\\/]* ) # Absolute name.
ad6254c5 16907 ac_srcdir=$srcdir$ac_dir_suffix;
7a197a62
AK
16908 ac_top_srcdir=$srcdir
16909 ac_abs_top_srcdir=$srcdir ;;
16910 *) # Relative name.
16911 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16912 ac_top_srcdir=$ac_top_build_prefix$srcdir
16913 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
ad6254c5 16914esac
7a197a62 16915ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8a2fc586 16916
ad6254c5 16917
7a197a62
AK
16918 case $ac_mode in
16919 :F)
16920 #
16921 # CONFIG_FILE
16922 #
ad6254c5
AK
16923
16924 case $INSTALL in
16925 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7a197a62 16926 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
795ca3e5 16927 esac
fddafd51
ZK
16928 ac_MKDIR_P=$MKDIR_P
16929 case $MKDIR_P in
16930 [\\/$]* | ?:[\\/]* ) ;;
16931 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16932 esac
7a197a62 16933_ACEOF
795ca3e5 16934
ec6a6fbe 16935cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
16936# If the template does not know about datarootdir, expand it.
16937# FIXME: This hack should be removed a few years after 2.60.
16938ac_datarootdir_hack=; ac_datarootdir_seen=
16939
ec6a6fbe
AK
16940ac_sed_dataroot='
16941/datarootdir/ {
7a197a62
AK
16942 p
16943 q
16944}
16945/@datadir@/p
16946/@docdir@/p
16947/@infodir@/p
16948/@localedir@/p
16949/@mandir@/p
ec6a6fbe
AK
16950'
16951case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7a197a62
AK
16952*datarootdir*) ac_datarootdir_seen=yes;;
16953*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
ec6a6fbe
AK
16954 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16955$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
ad6254c5 16956_ACEOF
ec6a6fbe 16957cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7a197a62
AK
16958 ac_datarootdir_hack='
16959 s&@datadir@&$datadir&g
16960 s&@docdir@&$docdir&g
16961 s&@infodir@&$infodir&g
16962 s&@localedir@&$localedir&g
16963 s&@mandir@&$mandir&g
16964 s&\\\${datarootdir}&$datarootdir&g' ;;
16965esac
16966_ACEOF
16967
16968# Neutralize VPATH when `$srcdir' = `.'.
16969# Shell code in configure.ac might set extrasub.
16970# FIXME: do we really want to maintain this feature?
ec6a6fbe
AK
16971cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16972ac_sed_extra="$ac_vpsub
ad6254c5
AK
16973$extrasub
16974_ACEOF
ec6a6fbe 16975cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ad6254c5
AK
16976:t
16977/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
ec6a6fbe 16978s|@configure_input@|$ac_sed_conf_input|;t t
7a197a62 16979s&@top_builddir@&$ac_top_builddir_sub&;t t
ec6a6fbe 16980s&@top_build_prefix@&$ac_top_build_prefix&;t t
7a197a62
AK
16981s&@srcdir@&$ac_srcdir&;t t
16982s&@abs_srcdir@&$ac_abs_srcdir&;t t
16983s&@top_srcdir@&$ac_top_srcdir&;t t
16984s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16985s&@builddir@&$ac_builddir&;t t
16986s&@abs_builddir@&$ac_abs_builddir&;t t
16987s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16988s&@INSTALL@&$ac_INSTALL&;t t
fddafd51 16989s&@MKDIR_P@&$ac_MKDIR_P&;t t
7a197a62 16990$ac_datarootdir_hack
ec6a6fbe
AK
16991"
16992eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16993 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16994$as_echo "$as_me: error: could not create $ac_file" >&2;}
16995 { (exit 1); exit 1; }; }
7a197a62
AK
16996
16997test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16998 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16999 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
ec6a6fbe 17000 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7a197a62 17001which seems to be undefined. Please make sure it is defined." >&5
ec6a6fbe 17002$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7a197a62
AK
17003which seems to be undefined. Please make sure it is defined." >&2;}
17004
17005 rm -f "$tmp/stdin"
72b2cb61 17006 case $ac_file in
ec6a6fbe
AK
17007 -) cat "$tmp/out" && rm -f "$tmp/out";;
17008 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17009 esac \
17010 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
17011$as_echo "$as_me: error: could not create $ac_file" >&2;}
17012 { (exit 1); exit 1; }; }
7a197a62
AK
17013 ;;
17014 :H)
17015 #
17016 # CONFIG_HEADER
17017 #
72b2cb61 17018 if test x"$ac_file" != x-; then
ec6a6fbe
AK
17019 {
17020 $as_echo "/* $configure_input */" \
17021 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17022 } >"$tmp/config.h" \
17023 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
17024$as_echo "$as_me: error: could not create $ac_file" >&2;}
17025 { (exit 1); exit 1; }; }
17026 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17027 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17028$as_echo "$as_me: $ac_file is unchanged" >&6;}
72b2cb61 17029 else
ec6a6fbe
AK
17030 rm -f "$ac_file"
17031 mv "$tmp/config.h" "$ac_file" \
17032 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
17033$as_echo "$as_me: error: could not create $ac_file" >&2;}
17034 { (exit 1); exit 1; }; }
72b2cb61
AK
17035 fi
17036 else
ec6a6fbe
AK
17037 $as_echo "/* $configure_input */" \
17038 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17039 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
17040$as_echo "$as_me: error: could not create -" >&2;}
17041 { (exit 1); exit 1; }; }
72b2cb61 17042 fi
7a197a62
AK
17043 ;;
17044
17045
17046 esac
17047
17048done # for ac_tag
795ca3e5 17049
795ca3e5 17050
ad6254c5
AK
17051{ (exit 0); exit 0; }
17052_ACEOF
795ca3e5 17053chmod +x $CONFIG_STATUS
ad6254c5
AK
17054ac_clean_files=$ac_clean_files_save
17055
ec6a6fbe
AK
17056test $ac_write_fail = 0 ||
17057 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
17058$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
17059 { (exit 1); exit 1; }; }
17060
ad6254c5
AK
17061
17062# configure is writing to config.log, and then calls config.status.
17063# config.status does its own redirection, appending to config.log.
17064# Unfortunately, on DOS this fails, as config.log is still kept open
17065# by configure, so config.status won't be able to write to it; its
17066# output is simply discarded. So we exec the FD to /dev/null,
17067# effectively closing config.log, so it can be properly (re)opened and
17068# appended to by config.status. When coming back to configure, we
17069# need to make the FD available again.
17070if test "$no_create" != yes; then
17071 ac_cs_success=:
17072 ac_config_status_args=
17073 test "$silent" = yes &&
17074 ac_config_status_args="$ac_config_status_args --quiet"
17075 exec 5>/dev/null
17076 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17077 exec 5>>config.log
17078 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17079 # would make configure fail if this is the last instruction.
17080 $ac_cs_success || { (exit 1); exit 1; }
17081fi
ec6a6fbe
AK
17082if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17083 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17084$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17085fi
795ca3e5 17086
2dc95e1c
AK
17087
17088if test x$ODIRECT != xyes; then
ec6a6fbe
AK
17089 { $as_echo "$as_me:$LINENO: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5
17090$as_echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;}
2dc95e1c 17091fi
This page took 2.193142 seconds and 5 git commands to generate.